@nebula.js/sn-text 1.4.8 → 1.5.0

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.
@@ -1,17 +1,17 @@
1
1
  /*
2
- * @nebula.js/sn-text v1.4.8
2
+ * @nebula.js/sn-text v1.5.0
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["@nebula.js/stardust","react-dom","react"],function(e){"use strict";var t,n,r,o,i,s,a,l,c,u,d,f,p,h,g,m,v,b,y,x,_,w,S,k,C,E,T,A,L,M,R,N,O;return{setters:[function(e){t=e.useMemo,n=e.useEffect,r=e.useState,o=e.usePromise,i=e.useElement,s=e.useStaleLayout,a=e.useModel,l=e.useInteractionState,c=e.useEmitter,u=e.useTranslator,d=e.useTheme,f=e.useImperativeHandle},function(e){p=e.default,h=e,g=e.flushSync,m=e.createPortal},function(e){v=e.createContext,b=e.useContext,y=e.default,x=e.useMemo,_=e.useLayoutEffect,w=e.useEffect,S=e.useState,k=e.useRef,C=e,E=e.forwardRef,T=e.isValidElement,A=e.cloneElement,L=e.Children,M=e.useCallback,R=e.Component,N=e.createElement,O=e.Suspense}],execute:function(){e("default",function(e){const t=new R$,{flags:o}=e;return{qae:{properties:P,data:I(t)},component(){const p=i(),h=$(p),g=s(),m=a(),v=l(),b=c(),[y,x]=r(null),_=u(),[w,S]=r(void 0),k=d(),{printingStatus:C}=N$({layout:g,flags:o});n(()=>{const e=e=>{!async function(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}})}(m,e)};return b.on("onNodeDestroyed",e),()=>{b.removeListener("onNodeDestroyed",e)}},[b,m]),n(()=>{g&&void 0===w&&(S(g.text||null),x(g?.text))},[g,w]);const{edit:E}=O$({propertyPanelHandlerData:t,flags:o});n(()=>{A$({rootElement:h,layout:g,model:m,element:p,edit:E,initialData:w,emitter:b,lang:_.language(),flags:o,theme:k,interactionState:v,printingStatus:C,showMediaLibrary:e.anything?.sense?.showMediaLibrary})},[g,h,m,p,E,p,w,b,o,k,v]),n(()=>{if(g){const e=g;e.text&&e.text!==y&&(x(e.text),b.emit("reloadData",e.text))}},[g,y,b]),f(()=>({updateActiveState(e){e?t.setSelectedModelId(m?.id):m?.id===t.getSelectedModelId()&&t.setSelectedModelId(void 0)}}),[])},ext:{definition:{type:"items",component:"accordion",items:{data:L$,settings:M$}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}}}});const P={version:"1.4.8",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!1,images:[]},I=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 z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function j(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 D,F={};var B=function(){if(D)return F;D=1;var e=p;return F.createRoot=e.createRoot,F.hydrateRoot=e.hydrateRoot,F}();const $=e=>{const r=t(()=>B.createRoot(e),[e]);return n(()=>()=>{r?.unmount()},[r]),r},H=v({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 W(e){throw new Error(e)}const K="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,U=K&&"documentMode"in document?document.documentMode:null,G=K&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Y=K&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),V=!(!K||!("InputEvent"in window)||U)&&"getTargetRanges"in new window.InputEvent("input"),J=K&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),q=K&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,X=K&&/Android/.test(navigator.userAgent),Q=K&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Z=K&&X&&Q,ee=K&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&G&&!Q,te=0,ne=1,re=2,oe=1,ie=2,se=3,ae=4,le=5,ce=6,ue=J||q||ee?" ":"​",de="\n\n",fe=Y?" ":ue,pe={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},he={directionless:1,unmergeable:2},ge={center:2,end:6,justify:4,left:1,right:3,start:5},me={[ie]:"center",[ce]:"end",[ae]:"justify",[oe]:"left",[se]:"right",[le]:"start"},ve={normal:0,segmented:2,token:1},be={[te]:"normal",[re]:"segmented",[ne]:"token"},ye="$config";function xe(e,t,n,r,o,i){let s=e.getFirstChild();for(;null!==s;){const e=s.__key;s.__parent===t&&(Xo(s)&&xe(s,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),s=s.getNextSibling()}}let _e=!1,we=0;function Se(e){we=e.timeStamp}function ke(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 Ce(e,t,n){const r=Rs(ks(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const s=e.nodeValue;null!==s&&rs(t,s,o,i,!1)}function Ee(e,t,n){if(Ur(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return Ni(t)&&n.isAttached()}function Te(e,t,n,r){for(let o=e;o&&!Gs(o);o=ys(o)){const e=Ki(o,t);if(void 0!==e){const t=Hi(e,n);if(t)return ei(t)||!Os(o)?void 0:[o,t]}else if(o===r)return[r,Ji(n)]}}function Ae(e,t,n){_e=!0;const r=performance.now()-we>100;try{Yo(e,()=>{const o=co()||function(e){return e.getEditorState().read(()=>{const e=co();return null!==e?e.clone():null})}(e),i=new Map,s=e.getRootElement(),a=e._editorState,l=e._blockCursorElement;let c=!1,u="";for(let n=0;n<t.length;n++){const d=t[n],f=d.type,p=d.target,h=Te(p,e,a,s);if(!h)continue;const[g,m]=h;if("characterData"===f)r&&Ir(m)&&Ni(p)&&Ee(o,p,m)&&Ce(p,m,e);else if("childList"===f){c=!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&&!ke(r,i,e)){if(Y){const e=(Os(r)?r.innerText:null)||r.nodeValue;e&&(u+=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];(ke(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||ke(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(c&&qi(o),Y&&ms(e)&&o.insertRawText(u))})}finally{_e=!1}}function Le(e){const t=e._observer;if(null!==t){Ae(e,t.takeRecords(),t)}}function Me(e){!function(e){0===we&&ks(e).addEventListener("textInput",Se,!0)}(e),e._observer=new MutationObserver((t,n)=>{Ae(e,t,n)})}function Re(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}=qs(r);if(e&&e.stateConfigs)for(const r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}class Ne{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,s=void 0!==o?o:function(e,t,n){let r=n.size;if(t)for(const o in t){const t=e.get(o);t&&n.has(t)||r++}return r}(i,n,r);void 0!==o&&s!==o&&W(`NodeState: size != computedSize (${String(o)} != ${String(s)})`);for(const e of r.keys())i.has(e.key)||W(`NodeState: sharedConfigMap missing knownState key ${e.key}`);this.size=s}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 Ie(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:n}=this,r=new Map(this.knownState);return new Ne(e,t,function(e,t,n){let r;if(n)for(const[o,i]of Object.entries(n)){const n=e.get(o);n?t.has(n)||t.set(n,n.parse(i)):(r=r||{},r[o]=i)}return r}(t.sharedConfigMap,r,n),r,this.size)}updateFromKnown(e,t){const n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);const{knownState:r,unknownState:o}=this;r.has(e)||o&&n in o||(o&&(delete o[n],this.unknownState=Ie(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 Oe(e){return e.__state?e.__state.sharedNodeState:_i(Fs(),e.getType()).sharedNodeState}function Pe(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of Oe(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 Ne(t,Oe(t));return t.__state=n,n}(e).updateFromJSON(o),n}function Ie(e){if(e)for(const t in e)return e}function ze(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 je(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r)for(const[t,n]of Object.entries(r)){if(e.has(t))continue;e.add(t);if(n!==(o?o[t]:void 0))return!0}return!1}function De(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Fe(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style,l=e.__state,c=t.__state;return(null===n||n===i)&&(null===r||r===s)&&(null===o||o===a)&&(null===e.__state||l===c||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;const n=new Set;return!(e&&ze(n,e,t)||t&&ze(n,t,e)||e&&je(n,e,t)||t&&je(n,t,e))}(l,c))}function Be(e,t){const n=e.mergeWithSibling(t),r=Oo()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function $e(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&Ir(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(Fe(t,r)){r=Be(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&Ir(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Fe(r,n)){r=Be(r,n);break}break}n.remove()}}else r.remove()}function He(e){return We(e.anchor),We(e.focus),e}function We(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),Ir(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!Xo(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Ke,Ue,Ge,Ye,Ve,Je,qe,Xe,Qe,Ze,et="",tt=null,nt=null,rt=!1,ot=!1;function it(e,t){const n=qe.get(e);if(null!==t){const n=St(e);n.parentNode===t&&t.removeChild(n)}if(Xe.has(e)||Ue._keyToDOMMap.delete(e),Xo(n)){const e=vt(n,qe);st(e,0,e.length-1,null)}void 0!==n&&fs(Ze,Ge,Ye,n,"destroyed")}function st(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&it(t,r)}}function at(e,t){e.setProperty("text-align",t)}const lt="40px";function ct(e,t){const n=Ke.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(Ue._rootElement||e).getPropertyValue("--lexical-indent-base-value")||lt;e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function ut(e,t){const n=e.style;0===t?at(n,""):1===t?at(n,"left"):2===t?at(n,"center"):3===t?at(n,"right"):4===t?at(n,"justify"):5===t?at(n,"start"):6===t&&at(n,"end")}function dt(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(ni(e))return null;const n=e.getParentOrThrow();return ni(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function ft(e,t){const n=Xe.get(e);void 0===n&&W("createNode: node does not exist in nodeMap");const r=n.createDOM(Ke,Ue);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){const r=`__lexicalKey_${t._key}`;e[r]=n})(t,n,e),r.set(e,t)}(e,r,Ue),Ir(n)?r.setAttribute("data-lexical-text","true"):ei(n)&&r.setAttribute("data-lexical-decorator","true"),Xo(n)){const e=n.__indent,t=n.__size;if(dt(r,n),0!==e&&ct(r,e),0!==t){const e=t-1;pt(vt(n,Xe),n,0,e,n.getDOMSlot(r))}const o=n.__format;0!==o&&ut(r,o),n.isInline()||gt(null,n,r)}else{const t=n.getTextContent();if(ei(n)){const t=n.decorate(Ue,Ke);null!==t&&yt(e,t),r.contentEditable="false"}et+=t}return null!==t&&t.insertChild(r),Object.freeze(n),fs(Ze,Ge,Ye,n,"created"),r}function pt(e,t,n,r,o){const i=et;et="";let s=n;for(;s<=r;++s){ft(e[s],o);const t=Xe.get(e[s]);null!==t&&Ir(t)?null===tt&&(tt=t.getFormat(),nt=t.getStyle()):Xo(t)&&s<r&&!t.isInline()&&(et+=de)}o.element.__lexicalTextContent=et,et=i+et}function ht(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return vr(e)?"line-break":ei(e)&&e.isInline()?"decorator":null}return"empty"}return null}function gt(e,t,n){const r=ht(e,qe),o=ht(t,Xe);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function mt(e,t,n){var r;tt=null,nt=null,function(e,t,n){const r=et,o=e.__size,i=t.__size;et="";const s=n.element;if(1===o&&1===i){const n=e.__first,r=t.__first;if(n===r)bt(n,s);else{const e=St(n),t=ft(r,null);try{s.replaceChild(t,e)}catch(o){if("object"==typeof o&&null!=o){const i=`${o.toString()} Parent: ${s.tagName}, new child: {tag: ${t.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(i)}throw o}it(n,null)}const o=Xe.get(r);Ir(o)&&null===tt&&(tt=o.getFormat(),nt=o.getStyle())}else{const r=vt(e,qe),a=vt(t,Xe);if(r.length!==o&&W("$reconcileChildren: prevChildren.length !== prevChildrenSize"),a.length!==i&&W("$reconcileChildren: nextChildren.length !== nextChildrenSize"),0===o)0!==i&&pt(a,0,0,i-1,n);else if(0===i){if(0!==o){const e=null==n.after&&null==n.before&&null==n.element.__lexicalLineBreak;st(r,0,o-1,e?null:s),e&&(s.textContent="")}}else!function(e,t,n,r,o,i){const s=r-1,a=o-1;let l,c,u=i.getFirstChild(),d=0,f=0;for(;d<=s&&f<=a;){const e=t[d],r=n[f];if(e===r)u=xt(bt(r,i.element)),d++,f++;else{if(void 0===c&&(c=_t(n,f)),void 0===l)l=_t(t,d);else if(!l.has(e)){d++;continue}if(!c.has(e)){u=xt(St(e)),it(e,i.element),d++,l.delete(e);continue}if(l.has(r)){const e=bs(Ue,r);e!==u&&i.withBefore(u).insertChild(e),u=xt(bt(r,i.element)),d++,f++}else ft(r,i.withBefore(u)),f++}const o=Xe.get(r);null!==o&&Ir(o)?null===tt&&(tt=o.getFormat(),nt=o.getStyle()):Xo(o)&&f<=a&&!o.isInline()&&(et+=de)}const p=d>s,h=f>a;if(p&&!h){const e=n[a+1],t=void 0===e?null:Ue.getElementByKey(e);pt(n,0,f,a,i.withBefore(t))}else h&&!p&&st(t,d,s,i.element)}(0,r,a,o,i,n)}s.__lexicalTextContent=et,et=r+et}(e,t,t.getDOMSlot(n)),r=t,null==tt||tt===r.__textFormat||ot||r.setTextFormat(tt),function(e){null==nt||nt===e.__textStyle||ot||e.setTextStyle(nt)}(t)}function vt(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&W("createChildrenArray: node does not exist in nodeMap"),n.push(r),r=e.__next}return n}function bt(e,t){const n=qe.get(e);let r=Xe.get(e);void 0!==n&&void 0!==r||W("reconcileNode: prevNode or nextNode does not exist in nodeMap");const o=rt||Je.has(e)||Ve.has(e),i=bs(Ue,e);if(n===r&&!o){let e;if(Xo(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return et+=e,i}if(n!==r&&o&&fs(Ze,Ge,Ye,r,"updated"),r.updateDOM(n,i,Ke)){const n=ft(e,null);return null===t&&W("reconcileNode: parentDOM is null"),t.replaceChild(n,i),it(e,null),n}if(Xo(n)){Xo(r)||W(`Node with key ${e} changed from ElementNode to !ElementNode`);const t=r.__indent;(rt||t!==n.__indent)&&ct(i,t);const s=r.__format;if((rt||s!==n.__format)&&ut(i,s),o)mt(n,r,i),ni(r)||r.isInline()||gt(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),et+=t}if((rt||r.__dir!==n.__dir)&&(dt(i,r),ni(r)&&!rt))for(const e of r.getChildren())if(Xo(e)){dt(bs(Ue,e.getKey()),e)}}else{const t=r.getTextContent();if(ei(r)){const t=r.decorate(Ue,Ke);null!==t&&yt(e,t)}et+=t}if(!ot&&ni(r)&&r.__cachedText!==et){const e=r.getWritable();e.__cachedText=et,r=e}return Object.freeze(r),i}function yt(e,t){let n=Ue._pendingDecorators;const r=Ue._decorators;if(null===n){if(r[e]===t)return;n=Gi(Ue)}n[e]=t}function xt(e){let t=e.nextSibling;return null!==t&&t===Ue._blockCursorElement&&(t=t.nextSibling),t}function _t(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function wt(e,t,n,r,o,i){et="",rt=2===r,Ue=n,Ke=n._config,Ge=n._nodes,Ye=Ue._listeners.mutation,Ve=o,Je=i,qe=e._nodeMap,Xe=t._nodeMap,ot=t._readOnly,Qe=new Map(n._keyToDOMMap);const s=new Map;return Ze=s,bt("root",null),Ue=void 0,Ge=void 0,Ve=void 0,Je=void 0,qe=void 0,Xe=void 0,Ke=void 0,Qe=void 0,Ze=void 0,s}function St(e){const t=Qe.get(e);return void 0===t&&W(`Reconciliation: could not find DOM element for node key ${e}`),t}function kt(e){return{type:e}}const Ct=kt("SELECTION_CHANGE_COMMAND"),Et=kt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Tt=kt("CLICK_COMMAND"),At=kt("BEFORE_INPUT_COMMAND"),Lt=kt("INPUT_COMMAND"),Mt=kt("COMPOSITION_START_COMMAND"),Rt=kt("COMPOSITION_END_COMMAND"),Nt=kt("DELETE_CHARACTER_COMMAND"),Ot=kt("INSERT_LINE_BREAK_COMMAND"),Pt=kt("INSERT_PARAGRAPH_COMMAND"),It=kt("CONTROLLED_TEXT_INSERTION_COMMAND"),zt=kt("PASTE_COMMAND"),jt=kt("REMOVE_TEXT_COMMAND"),Dt=kt("DELETE_WORD_COMMAND"),Ft=kt("DELETE_LINE_COMMAND"),Bt=kt("FORMAT_TEXT_COMMAND"),$t=kt("UNDO_COMMAND"),Ht=kt("REDO_COMMAND"),Wt=kt("KEYDOWN_COMMAND"),Kt=kt("KEY_ARROW_RIGHT_COMMAND"),Ut=kt("MOVE_TO_END"),Gt=kt("KEY_ARROW_LEFT_COMMAND"),Yt=kt("MOVE_TO_START"),Vt=kt("KEY_ARROW_UP_COMMAND"),Jt=kt("KEY_ARROW_DOWN_COMMAND"),qt=kt("KEY_ENTER_COMMAND"),Xt=kt("KEY_SPACE_COMMAND"),Qt=kt("KEY_BACKSPACE_COMMAND"),Zt=kt("KEY_ESCAPE_COMMAND"),en=kt("KEY_DELETE_COMMAND"),tn=kt("KEY_TAB_COMMAND"),nn=kt("INSERT_TAB_COMMAND"),rn=kt("INDENT_CONTENT_COMMAND"),on=kt("OUTDENT_CONTENT_COMMAND"),sn=kt("DROP_COMMAND"),an=kt("FORMAT_ELEMENT_COMMAND"),ln=kt("DRAGSTART_COMMAND"),cn=kt("DRAGOVER_COMMAND"),un=kt("DRAGEND_COMMAND"),dn=kt("COPY_COMMAND"),fn=kt("CUT_COMMAND"),pn=kt("SELECT_ALL_COMMAND"),hn=kt("CLEAR_EDITOR_COMMAND"),gn=kt("CLEAR_HISTORY_COMMAND"),mn=kt("CAN_REDO_COMMAND"),vn=kt("CAN_UNDO_COMMAND"),bn=kt("FOCUS_COMMAND"),yn=kt("BLUR_COMMAND"),xn=kt("KEY_MODIFIER_COMMAND"),_n=Object.freeze({}),wn=[["keydown",function(e,t){if(Sn=e.timeStamp,kn=e.key,t.isComposing())return;vs(t,Wt,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Ps(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&Yo(t,()=>{ki(n)||(Mn=!0)})}],["compositionstart",function(e,t){vs(t,Mt,e)}],["compositionend",function(e,t){Y?Nn=!0:q||!J&&!ee?vs(t,Rt,e):(On=!0,Pn=e.data)}],["input",function(e,t){e.stopPropagation(),Yo(t,()=>{t.dispatchCommand(Lt,e)},{event:e}),En=null}],["click",function(e,t){Yo(t,()=>{const n=co(),r=Rs(ks(t)),o=uo();if(r)if(Ur(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!ni(i)&&1===Vi().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()){if(i!==n.focus.getNode()){const e=Xs(i,e=>Xo(e)&&!e.isInline());Xo(e)&&e.select(0)}}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;if(Os(n)||Ni(n)){qi(ao(o,r,t,e))}}vs(t,Tt,e)})}],["cut",_n],["copy",_n],["dragstart",_n],["dragover",_n],["dragend",_n],["paste",_n],["focus",_n],["blur",_n],["drop",_n]];V&&wn.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;if("deleteCompositionText"===n||Y&&ms(t))return;if("insertCompositionText"===n)return;vs(t,At,e)}(e,t)]);let Sn=0,kn=null,Cn=0,En=null;const Tn=new WeakMap,An=new WeakMap;let Ln=!1,Mn=!1,Rn=!1,Nn=!1,On=!1,Pn="",In=null,zn=[0,"",0,"root",0];function jn(e,t,n,r,o){const i=e.anchor,s=e.focus,a=i.getNode(),l=Oo(),c=Rs(ks(l)),u=null!==c?c.anchorNode:null,d=i.key,f=l.getElementByKey(d),p=n.length;return d!==s.key||!Ir(a)||(!o&&(!V||Cn<r+50)||a.isDirty()&&p<2||Qi(n))&&i.offset!==s.offset&&!a.isComposing()||Ri(a)||a.isDirty()&&p>1||(o||!V)&&null!==f&&!a.isComposing()&&u!==Pi(f)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||!a.isComposing()&&(a.getFormat()!==e.format||a.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=Mi(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(Ir(t)||Xo(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,a)}function Dn(e,t){return Ni(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function Fn(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;Ln&&(Ln=!1,Dn(r,o)&&Dn(i,s)&&!In)||Yo(t,()=>{if(!n)return void qi(null);if(!Ei(t,r,i))return;let a=co();if(In&&Ur(a)&&a.isCollapsed()){const e=a.anchor,t=In.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(a=In.clone(),qi(a))}if(In=null,Ur(a)){const n=a.anchor,r=n.getNode();if(a.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(a.dirty=!0);const o=ks(t).event,i=o?o.timeStamp:performance.now(),[s,l,c,u,d]=zn,f=Vi(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===c&&n.key===u)Bn(a,s,l);else if("text"===n.type)Ir(r)||W("Point.getNode() must return TextNode when type is text"),$n(a,r);else if("element"===n.type&&!p){Xo(r)||W("Point.getNode() must return ElementNode when type is element");const e=n.getNode();e.isEmpty()?function(e,t){const n=t.getTextFormat(),r=t.getTextStyle();Bn(e,n,r)}(a,e):Bn(a,0,"")}}else{const e=n.key,t=a.focus.key,r=a.getNodes(),i=r.length,l=a.isBackward(),c=l?s:o,u=l?o:s,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(Ir(t)&&0!==n&&!(0===e&&t.__key===d&&c===n||e===i-1&&t.__key===f&&0===u)&&(h=!0,p&=t.getFormat(),0===p))break}a.format=h?p:0}}vs(t,Ct,void 0)})}function Bn(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function $n(e,t){Bn(e,t.getFormat(),t.getStyle())}function Hn(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function Wn(e){const t=e.inputType,n=Hn(e),r=Oo(),o=co();if("deleteContentBackward"===t){if(null===o){const e=uo();if(!Ur(e))return!0;qi(e.clone())}if(Ur(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===kn&&i<Sn+30&&r.isComposing()&&t){if(Bi(null),Sn=0,setTimeout(()=>{Yo(r,()=>{Bi(null)})},30),Ur(o)){const e=o.anchor.getNode();e.markDirty(),Ir(e)||W("Anchor node must be a TextNode"),$n(o,e)}}else{Bi(null),e.preventDefault();const n=o.anchor.getNode(),i=n.getTextContent(),s=n.canInsertTextAfter(),a=0===o.anchor.offset&&o.focus.offset===i.length;let l=Z&&t&&!a&&s;if(l&&o.isCollapsed()&&(l=!ei(gs(o.anchor,!0))),!l){vs(r,Nt,!0);const e=co();Z&&Ur(e)&&e.isCollapsed()&&(In=e,setTimeout(()=>In=null))}}return!0}}var i;if(!Ur(o))return!0;const s=e.data;null!==En&&ns(!1,r,En),o.dirty&&null===En||!o.isCollapsed()||ni(o.anchor.getNode())||null===n||o.applyDOMRange(n),En=null;const a=o.anchor,l=o.focus,c=a.getNode(),u=l.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===s)e.preventDefault(),vs(r,Ot,!1);else if(s===de)e.preventDefault(),vs(r,Pt,void 0);else if(null==s&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=s&&jn(o,n,s,e.timeStamp,!0)?(e.preventDefault(),vs(r,It,s)):En=s;return Cn=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":vs(r,It,e);break;case"insertFromComposition":Bi(null),vs(r,It,e);break;case"insertLineBreak":Bi(null),vs(r,Ot,!1);break;case"insertParagraph":Bi(null),Rn&&!q?(Rn=!1,vs(r,Ot,!1)):vs(r,Pt,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":vs(r,zt,e);break;case"deleteByComposition":(function(e,t){return e!==t||Xo(e)||Xo(t)||!Mi(e)||!Mi(t)})(c,u)&&vs(r,jt,e);break;case"deleteByDrag":case"deleteByCut":vs(r,jt,e);break;case"deleteContent":vs(r,Nt,!1);break;case"deleteWordBackward":vs(r,Dt,!0);break;case"deleteWordForward":vs(r,Dt,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":vs(r,Ft,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":vs(r,Ft,!1);break;case"formatStrikeThrough":vs(r,Bt,"strikethrough");break;case"formatBold":vs(r,Bt,"bold");break;case"formatItalic":vs(r,Bt,"italic");break;case"formatUnderline":vs(r,Bt,"underline");break;case"historyUndo":vs(r,$t,void 0);break;case"historyRedo":vs(r,Ht,void 0)}return!0}function Kn(e){if(Os(e.target)&&ki(e.target))return!0;const t=Oo(),n=co(),r=e.data,o=Hn(e);if(null!=r&&Ur(n)&&jn(n,o,r,e.timeStamp,!1)){Nn&&(Yn(t,r),Nn=!1);const o=n.anchor.getNode(),i=Rs(ks(t));if(null===i)return!0;const s=n.isBackward(),a=s?n.anchor.offset:n.focus.offset,l=s?n.focus.offset:n.anchor.offset;V&&!n.isCollapsed()&&Ir(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,a)+r+o.getTextContent().slice(a+l)===ts(i.anchorNode)||vs(t,It,r);const c=r.length;Y&&c>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=c),Z&&t.isComposing()&&(Sn=0,Bi(null))}else{ns(!1,t,null!==r?r:void 0),Nn&&(Yn(t,r||void 0),Nn=!1)}return function(){Mo();const e=Oo();Le(e)}(),!0}function Un(e){const t=Oo(),n=co();if(Ur(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();Bi(r.key),_s(fr),(e.timeStamp<Sn+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||Ir(o)&&o.getStyle()!==n.style)&&vs(t,It,fe)}return!0}function Gn(e){return Yn(Oo(),e.data),_s(pr),!0}function Yn(e,t){const n=e._compositionKey;if(Bi(null),null!==n&&null!=t){if(""===t){const t=Hi(n),r=Pi(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&Ir(t)){const n=Rs(ks(e));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),rs(t,r.nodeValue,o,i,!0)}return}if("\n"===t[t.length-1]){const t=co();if(Ur(t)||Yr(t)){if(Ur(t)){const e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void vs(e,qt,null)}}}ns(!0,e,t)}function Vn(e){const t=Oo();if(null==e.key)return!0;if(On){if(cs(e))return Yo(t,()=>{Yn(t,Pn)}),On=!1,Pn="",!0;On=!1,Pn=""}if(function(e){return ss(e,"ArrowRight",{shiftKey:"any"})}(e))vs(t,Kt,e);else if(function(e){return ss(e,"ArrowRight",as)}(e))vs(t,Ut,e);else if(function(e){return ss(e,"ArrowLeft",{shiftKey:"any"})}(e))vs(t,Gt,e);else if(function(e){return ss(e,"ArrowLeft",as)}(e))vs(t,Yt,e);else if(function(e){return ss(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))vs(t,Vt,e);else if(function(e){return ss(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))vs(t,Jt,e);else if(function(e){return ss(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))Rn=!0,vs(t,qt,e);else if(function(e){return" "===e.key}(e))vs(t,Xt,e);else if(function(e){return G&&ss(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),Rn=!0,vs(t,Ot,!0);else if(function(e){return ss(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))Rn=!1,vs(t,qt,e);else if(function(e){return ss(e,"Backspace",{shiftKey:"any"})||G&&ss(e,"h",{ctrlKey:!0})}(e))cs(e)?vs(t,Qt,e):(e.preventDefault(),vs(t,Nt,!0));else if(function(e){return"Escape"===e.key}(e))vs(t,Zt,e);else if(function(e){return ss(e,"Delete",{})||G&&ss(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),vs(t,Nt,!1)):vs(t,en,e);else if(function(e){return ss(e,"Backspace",ls)}(e))e.preventDefault(),vs(t,Dt,!0);else if(function(e){return ss(e,"Delete",ls)}(e))e.preventDefault(),vs(t,Dt,!1);else if(function(e){return G&&ss(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),vs(t,Ft,!0);else if(function(e){return G&&(ss(e,"Delete",{metaKey:!0})||ss(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),vs(t,Ft,!1);else if(function(e){return ss(e,"b",as)}(e))e.preventDefault(),vs(t,Bt,"bold");else if(function(e){return ss(e,"u",as)}(e))e.preventDefault(),vs(t,Bt,"underline");else if(function(e){return ss(e,"i",as)}(e))e.preventDefault(),vs(t,Bt,"italic");else if(function(e){return ss(e,"Tab",{shiftKey:"any"})}(e))vs(t,tn,e);else if(function(e){return ss(e,"z",as)}(e))e.preventDefault(),vs(t,$t,void 0);else if(function(e){if(G)return ss(e,"z",{metaKey:!0,shiftKey:!0});return ss(e,"y",{ctrlKey:!0})||ss(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),vs(t,Ht,void 0);else{const n=t._editorState._selection;null===n||Ur(n)?us(e)&&(e.preventDefault(),vs(t,pn,e)):!function(e){return ss(e,"c",as)}(e)?!function(e){return ss(e,"x",as)}(e)?us(e)&&(e.preventDefault(),vs(t,pn,e)):(e.preventDefault(),vs(t,fn,e)):(e.preventDefault(),vs(t,dn,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(xn,e),!0}function Jn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const qn=new Map;function Xn(e){const t=function(e){const t=Ss(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=Ai(t.anchorNode);if(null===n)return;Mn&&(Mn=!1,Yo(n,()=>{const r=uo(),o=t.anchorNode;if(Os(o)||Ni(o)){qi(ao(r,t,n,e))}}));const r=Zi(n),o=r[r.length-1],i=o._key,s=qn.get(i),a=s||o;a!==n&&Fn(t,a,!1),Fn(t,n,!0),n!==o?qn.set(i,n):s&&qn.delete(i)}function Qn(e){e._lexicalHandled=!0}function Zn(e){return!0===e._lexicalHandled}const er=function(e){{let t=!1;return()=>{t||console.warn(e),t=!0}}}("Root element not registered");function tr(e){const t=Tn.get(e);if(void 0===t)return void er();const n=An.get(t);if(void 0===n)return void er();const r=n-1;r>=0||W("Root element count less than 0"),Tn.delete(e),An.set(t,r),0===r&&t.removeEventListener("selectionchange",Xn);const o=Li(e);Ti(o)?(!function(e){if(null!==e._parentEditor){const t=Zi(e),n=t[t.length-1]._key;qn.get(n)===e&&qn.delete(n)}else qn.delete(e._key)}(o),e.__lexicalEditor=null):o&&W("Attempted to remove event handlers from a node that does not belong to this build of Lexical");const i=Jn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}function nr(e,t,n){Mo();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=co();if(!Ur(t)||!Xo(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();ws(o,e)&&n.set(e.__key,0,"element");ws(i,e)&&r.set(e.__key,0,"element");return t}(e);let s=!1;if(Ur(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(ho(t,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),n.key===r&&(ho(n,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else Yr(i)&&t&&e.isSelected()&&e.selectPrevious();if(Ur(i)&&t&&!s){const t=e.getIndexWithinParent();Di(e),fo(i,o,t,-1)}else Di(e);n||Cs(o)||o.canBeEmpty()||!o.isEmpty()||nr(o,t),t&&i&&ni(o)&&o.isEmpty()&&o.selectEnd()}const rr=Symbol.for("ephemeral");function or(e){return e[rr]||!1}class ir{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=qs(this);return void 0===e&&W(`LexicalNode: Node ${this.name} does not implement .getType().`),e}static clone(e){W(`LexicalNode: Node ${this.name} does not implement .clone().`)}$config(){return{}}config(e,t){const n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),ji(this,e),"root"!==this.__type&&function(e,t){const n=wi(Oo(),e);void 0===n&&W(`Create node: Attempted to create node ${t.name} that was not configured to be used on the editor.`);const r=n.klass;r!==t&&W(`Create node: Type ${e} in node ${t.name} does not match registered node ${r.name} with the same type`)}(this.__type,this.constructor)}getType(){return this.__type}isInline(){W(`LexicalNode: Node ${this.constructor.name} does not implement .isInline().`)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=Hi(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||co();if(null==t)return!1;const n=t.getNodes().some(e=>e.__key===this.__key);if(Ir(this))return n;if(Ur(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(ei(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:Hi(e)}getParentOrThrow(){const e=this.getParent();return null===e&&W(`Expected node ${this.__key} to have a parent.`),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(Cs(t))return Xo(e)||e===this&&ei(e)||W("Children of root nodes must be elements or decorators"),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&W(`Expected node ${this.__key} to have a top parent element.`),e}getParents(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return null===e?null:Hi(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:Hi(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=Xo(this)?this:this.getParent(),n=Xo(e)?e:e.getParent(),r=t&&n?Aa(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=Aa(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===Ca(t):("same"!==t.type&&"ancestor"!==t.type&&W("LexicalNode.isBefore: exhaustiveness check"),!1)))}isParentOf(e){const t=Aa(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 s=Xo(o)?t?o.getFirstChild():o.getLastChild():null;if(null!==s){o=s;continue}const a=t?o.getNextSibling():o.getPreviousSibling();if(null!==a){o=a;continue}const l=o.getParentOrThrow();if(r.has(l.__key)||n.push(l),l===e)break;let c=null,u=l;do{if(null===u&&W("getNodesBetween: ancestor is null"),c=t?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),null===u)break;null!==c||r.has(u.__key)||n.push(u)}while(null===c);o=c}return t||n.reverse(),n}isDirty(){const e=Oo()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(or(this))return this;const e=Hi(this.__key);return null===e&&W("Lexical node does not exist in active editor state. Avoid using the same node references between nested closures from editorState.read/editor.update."),e}getWritable(){if(or(this))return this;Mo();const e=No(),t=Oo(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,s=co();if(null!==s&&s.setCachedNodes(null),i.has(r))return Fi(o),o;const a=Ws(o);return i.add(r),Fi(a),n.set(r,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){W("createDOM: base method not extended")}updateDOM(e,t,n){W("updateDOM: base method not extended")}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){W(`LexicalNode: Node ${this.name} does not implement .importJSON().`)}updateFromJSON(e){return Pe(this,e)}static transform(){return null}remove(e){nr(this,!0,e)}replace(e,t){Mo();let n=co();null!==n&&(n=n.clone()),As(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,s=e.getWritable(),a=this.getParentOrThrow().getWritable(),l=a.__size;Di(s);const c=r.getPreviousSibling(),u=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(nr(r,!1,!0),null===c)a.__first=i;else{c.getWritable().__next=i}if(s.__prev=d,null===u)a.__last=i;else{u.getWritable().__prev=i}if(s.__next=f,s.__parent=p,a.__size=l,t&&(Xo(this)&&Xo(s)||W("includeChildren should only be true for ElementNodes"),this.getChildren().forEach(e=>{s.append(e)})),Ur(n)){qi(n);const e=n.anchor,t=n.focus;e.key===o&&Wr(e,s),t.key===o&&Wr(t,s)}return $i()===o&&Bi(i),s}insertAfter(e,t=!0){Mo(),As(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=co();let s=!1,a=!1;if(null!==o){const t=e.getIndexWithinParent();if(Di(r),Ur(i)){const e=o.__key,n=i.anchor,r=i.focus;s="element"===n.type&&n.key===e&&n.offset===t+1,a="element"===r.type&&r.key===e&&r.offset===t+1}}const l=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(null===l)c.__last=u;else{l.getWritable().__prev=u}if(c.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Ur(i)){const e=this.getIndexWithinParent();fo(i,c,e+1);const t=c.__key;s&&i.anchor.set(t,e+2,"element"),a&&i.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){Mo(),As(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;Di(r);const i=this.getPreviousSibling(),s=this.getParentOrThrow().getWritable(),a=n.__prev,l=this.getIndexWithinParent();if(null===i)s.__first=o;else{i.getWritable().__next=o}s.__size++,n.__prev=o,r.__prev=a,r.__next=n.__key,r.__parent=n.__parent;const c=co();if(t&&Ur(c)){fo(c,this.getParentOrThrow(),l)}return e}isParentRequired(){return!1}createParentElementNode(){return ui()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Mo();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(Xo(n))return n.select();if(!Ir(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){Mo();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(Xo(n))return n.select(0,0);if(!Ir(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}const sr="historic",ar="history-merge",lr="collaboration",cr="skip-scroll-into-view",ur="skip-dom-selection",dr="skip-selection-focus",fr="composition-start",pr="composition-end";class hr extends ir{static getType(){return"linebreak"}static clone(e){return new hr(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(e){const t=e.parentElement;if(null!==t&&js(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&br(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&br(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&js(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&br(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&br(r))return!0}return!1}(e)?null:{conversion:gr,priority:0}}}static importJSON(e){return mr().updateFromJSON(e)}}function gr(e){return{node:mr()}}function mr(){return Ts(new hr)}function vr(e){return e instanceof hr}function br(e){return Ni(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function yr(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function xr(e,t){return 1&t?"strong":2&t?"em":"span"}function _r(e,t,n,r,o){const i=r.classList;let s=ds(o,"base");void 0!==s&&i.add(...s),s=ds(o,"underlineStrikethrough");let a=!1;const l=8&t&&4&t;void 0!==s&&(8&n&&4&n?(a=!0,l||i.add(...s)):l&&i.remove(...s));for(const e in pe){const r=pe[e];if(s=ds(o,e),void 0!==s)if(n&r){if(a&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...s);continue}(0===(t&r)||l&&"underline"===e||"strikethrough"===e)&&i.add(...s)}else t&r&&i.remove(...s)}}function wr(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?ue:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||Y){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 Sr(e,t,n,r,o,i){wr(o,e,t);const s=i.theme.text;void 0!==s&&_r(0,0,r,e,s)}function kr(e,t){const n=document.createElement(t);return n.appendChild(e),n}class Cr extends ir{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new Cr(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return be[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===$i()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=pe[e];return 0!==(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Ii(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=yr(0,n),o=xr(0,n),i=null===r?o:r,s=document.createElement(i);let a=s;this.hasFormat("code")&&s.setAttribute("spellcheck","false"),null!==r&&(a=document.createElement(o),s.appendChild(a));Sr(a,this,0,n,this.__text,e);const l=this.__style;return""!==l&&(s.style.cssText=l),s}updateDOM(e,t,n){const r=this.__text,o=e.__format,i=this.__format,s=yr(0,o),a=yr(0,i),l=xr(0,o),c=xr(0,i);if((null===s?l:s)!==(null===a?c:a))return!0;if(s===a&&l!==c){const e=t.firstChild;null==e&&W("updateDOM: prevInnerDOM is null or undefined");const o=document.createElement(c);return Sr(o,this,0,i,r,n),t.replaceChild(o,e),!1}let u=t;null!==a&&null!==s&&(u=t.firstChild,null==u&&W("updateDOM: innerDOM is null or undefined")),wr(r,u,this);const d=n.theme.text;void 0!==d&&o!==i&&_r(0,o,i,u,d);const f=e.__style,p=this.__style;return f!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:Mr,priority:0}),b:()=>({conversion:Tr,priority:0}),code:()=>({conversion:Or,priority:0}),em:()=>({conversion:Or,priority:0}),i:()=>({conversion:Or,priority:0}),mark:()=>({conversion:Or,priority:0}),s:()=>({conversion:Or,priority:0}),span:()=>({conversion:Er,priority:0}),strong:()=>({conversion:Or,priority:0}),sub:()=>({conversion:Or,priority:0}),sup:()=>({conversion:Or,priority:0}),u:()=>({conversion:Or,priority:0})}}static importJSON(e){return Pr().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 Os(t)||W("Expected TextNode createDOM to always return a HTMLElement"),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=kr(t,"b")),this.hasFormat("italic")&&(t=kr(t,"i")),this.hasFormat("strikethrough")&&(t=kr(t,"s")),this.hasFormat("underline")&&(t=kr(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?pe[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?he[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=Ii(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=ve[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){Mo();let n=e,r=t;const o=co(),i=this.getTextContent(),s=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(!Ur(o))return oo(s,n,s,r,"text","text");{const e=$i();e!==o.anchor.key&&e!==o.focus.key||Bi(s),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,s=n.length;let a=e;a<0&&(a=s+a,a<0&&(a=0));const l=co();if(r&&Ur(l)){const t=e+s;l.setTextNodeRange(o,t,o,t)}const c=i.slice(0,a)+n+i.slice(a+t);return o.__text=c,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Mo();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=$i(),i=n.length;e.sort((e,t)=>e-t),e.push(i);const s=[],a=e.length;for(let t=0,r=0;t<i&&r<=a;r++){const o=e[r];o>t&&(s.push(n.slice(t,o)),t=o)}const l=s.length;if(1===l)return[t];const c=s[0],u=t.getParent();let d;const f=t.getFormat(),p=t.getStyle(),h=t.__detail;let g=!1,m=null,v=null;const b=co();if(Ur(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=Pr(c),d.__format=f,d.__style=p,d.__detail=h,d.__state=De(t,d),g=!0):d=t.setTextContent(c);const y=[d];for(let e=1;e<l;e++){const n=Pr(s[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=De(t,n);const i=n.__key;o===r&&Bi(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!==u){!function(e){const t=e.getPreviousSibling(),n=e.getNextSibling();null!==t&&Fi(t);null!==n&&Fi(n)}(this);const e=u.getWritable(),t=this.getIndexWithinParent();g?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),Ur(b)&&fo(b,u,t,l-1)}return y}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||W("mergeWithSibling: sibling must be a previous or next sibling");const n=this.__key,r=e.__key,o=this.__text,i=o.length;$i()===r&&Bi(n);const s=co();if(Ur(s)){const o=s.anchor,a=s.focus;null!==o&&o.key===r&&go(o,t,n,e,i),null!==a&&a.key===r&&go(a,t,n,e,i)}const a=e.__text,l=t?a+o:o+a;this.setTextContent(l);const c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function Er(e){return{forChild:zr(e.style),node:null}}function Tr(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:zr(t.style,n?void 0:"bold"),node:null}}const Ar=new WeakMap;function Lr(e){if(!Os(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function Mr(e){const t=e;null===e.parentElement&&W("Expected parentElement of Text not to be null");let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=Ar.get(n))&&!Lr(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e<r.length;e++)Ar.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(mr()):"\t"===r?t.push(Dr()):""!==r&&t.push(Pr(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=Rr(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=Rr(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:Pr(n)}}function Rr(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,Os(n)){const e=n.style.display;if(""===e&&!zs(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(Ni(n))return n;if("BR"===n.nodeName)return null}}const Nr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Or(e){const t=Nr[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:zr(e.style,t),node:null}}function Pr(e=""){return Ts(new Cr(e))}function Ir(e){return e instanceof Cr}function zr(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o="700"===n||"bold"===n,i=r.includes("line-through"),s="italic"===e.fontStyle,a=r.includes("underline"),l=e.verticalAlign;return e=>Ir(e)?(o&&!e.hasFormat("bold")&&e.toggleFormat("bold"),i&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),s&&!e.hasFormat("italic")&&e.toggleFormat("italic"),a&&!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 jr extends Cr{static getType(){return"tab"}static clone(e){return new jr(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=ds(e.theme,"tab");if(void 0!==n){t.classList.add(...n)}return t}static importJSON(e){return Dr().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&W("TabNode does not support setTextContent"),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||W("TabNode does not support spliceText"),this}setDetail(e){return 2!==e&&W("TabNode does not support setDetail"),this}setMode(e){return"normal"!==e&&W("TabNode does not support setMode"),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Dr(){return Ts(new jr)}function Fr(e){return e instanceof jr}class Br{key;offset;type;_selection;constructor(e,t,n){Object.defineProperty(this,"_selection",{enumerable:!1,writable:!0}),this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){if(this.key===e.key)return this.offset<e.offset;return ka(ja(La(this,"next")),ja(La(e,"next")))<0}getNode(){const e=Hi(this.key);return null===e&&W("Point.getNode: node not found"),e}set(e,t,n,r){const o=this._selection,i=this.key;if(!r||this.key!==e||this.offset!==t||this.type!==n){this.key=e,this.offset=t,this.type=n;{const t=Hi(e);("text"===n?Ir(t):Xo(t))||W(`PointType.set: node with key ${e} is ${t?t.__type:"[not found]"} and can not be used for a ${n} point`)}Lo()||($i()===i&&Bi(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0))}}}function $r(e,t,n){return new Br(e,t,n)}function Hr(e,t){let n=t.__key,r=e.offset,o="element";if(Ir(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!Xo(t)){const e=t.getNextSibling();if(Ir(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 Wr(e,t){if(Xo(t)){const n=t.getLastDescendant();Xo(n)||Ir(n)?Hr(e,n):Hr(e,t)}else Hr(e,t)}class Kr{_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(!Yr(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 Kr(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(Ir(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=Hi(e);null!==t&&n.push(t)}return Lo()||(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((co()||uo())===this&&e[0]){const t=fa(e[0],"next");Ra(wa(t,t))}for(const t of e)t.remove()}}function Ur(e){return e instanceof Gr}class Gr{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!!Ur(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(la(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;Xo(e)&&i.has(e)||t.push(e)}r&&t.push(r.caret.origin);if(aa(e.focus)&&Xo(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=ma(e.focus.origin,"previous");la(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(!Xo(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=ja(e.anchor),r=ja(e.anchor.getFlipped()),o=e=>sa(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(Ba(Oa(this),"next"));return this.isCollapsed()&&t.length>1&&W(`RangeSelection.getNodes() returned ${String(t.length)} > 1 nodes in a collapsed selection`),Lo()||(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),[s,a]=Jr(this);let l="",c=!0;for(let u=0;u<e.length;u++){const d=e[u];if(Xo(d)&&!d.isInline())c||(l+="\n"),c=!d.isEmpty();else if(c=!1,Ir(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=s<a?e.slice(s,a):e.slice(a,s)):e=i?e.slice(s):e.slice(a):d===n&&(e=i?e.slice(0,a):e.slice(0,s)),l+=e}else!ei(d)&&!vr(d)||d===n&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(e){const t=Oo(),n=t.getEditorState()._selection,r=no(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),He(this)}clone(){const e=this.anchor,t=this.focus;return new Gr($r(e.key,e.offset,e.type),$r(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Ii(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=pe[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(mr()):"\t"===r?n.push(Dr()):n.push(Pr(r))}this.insertNodes(n)}insertText(e){const t=this.anchor,n=this.focus,r=this.format,o=this.style;let i=t,s=n;!this.isCollapsed()&&n.isBefore(t)&&(i=n,s=t),"element"===i.type&&function(e,t,n,r){const o=e.getNode(),i=o.getChildAtIndex(e.offset),s=Pr();if(s.setFormat(n),s.setStyle(r),di(i))i.splice(0,0,[s]);else{const e=ni(o)?ui().append(s):s;null===i?o.append(e):i.insertBefore(e)}e.is(t)&&t.set(s.__key,0,"text"),e.set(s.__key,0,"text")}(i,s,r,o),"element"===s.type&&Ma(s,ja(La(s,"next")));const a=i.offset;let l=s.offset;const c=this.getNodes(),u=c.length;let d=c[0];Ir(d)||W("insertText: first node is not a text node");const f=d.getTextContent().length,p=d.getParentOrThrow();let h=c[u-1];if(1===u&&"element"===s.type&&(l=f,s.set(i.key,l,"text")),this.isCollapsed()&&a===f&&(Ri(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(Ir(t)&&t.canInsertTextBefore()&&!Ri(t)||(t=Pr(),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===a&&(Ri(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(Ir(t)&&!Ri(t)||(t=Pr(),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()&&a!==f){const e=Pr(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||Xo(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),to(this.anchor,this.focus),void this.insertText(e)}if(1===u){if(Mi(d)){const t=Pr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(a!==l||t===r&&n===o){if(Fr(d)){const t=Pr(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=Pr(e);if(t.setFormat(r),t.setStyle(o),t.select(),0===a)d.insertBefore(t,!1);else{const[e]=d.splitText(a);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-a;d=d.spliceText(a,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=Xo(d)?d:d.getParentOrThrow();let r=Xo(h)?h:h.getParentOrThrow(),o=h;if(!n.is(r)&&r.isInline())do{o=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===s.type&&(0!==l||""===h.getTextContent())||"element"===s.type&&h.getIndexWithinParent()<l)if(Ir(h)&&!Mi(h)&&l!==h.getTextContentSize()){if(h.isSegmented()){const e=Pr(h.getTextContent());h.replace(e),h=e}ni(s.getNode())||"text"!==s.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(c),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)||Xo(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(Mi(d))if(a===f)d.select();else{const t=Pr(e);t.select(),d.replace(t)}else d=d.spliceText(a,f-a,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<u;e++){const n=c[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const e=co()===this,t=function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=Ba(e,r),s=Ia(i.anchor,n),a=Ia(i.focus.getFlipped(),n),l=new Set,c=[];for(const e of i.iterNodeCarets(n))if(la(e))l.add(e.origin.getKey());else if(aa(e)){const{origin:t}=e;Xo(t)&&!l.has(t.getKey())||c.push(t)}for(const e of c)e.remove();for(const e of i.getTextSlices()){if(!e)continue;const{origin:t}=e.caret,n=t.getTextContentSize(),i=Pa(fa(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=Pr(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=pa(n,r,t.offset)}n.is(s[0].origin)&&(s[0]=t),n.is(a[0].origin)&&(a[0]=t.getFlipped())}}let u,d;for(const e of s)if(za(e)){u=ja(e);break}for(const e of a)if(za(e)){d=ja(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 s=o.getParents().reverse();s.push(o);const a=Math.min(i.length,s.length);let l;for(l=0;l<a&&i[l]===s[l];l++);const c=(e,t)=>{let n;for(let r=l;r<e.length;r++){const o=e[r];if(Cs(o))return;!n&&t(o)&&(n=o)}return n},u=c(i,Ds),d=u&&c(s,e=>n.has(e.getKey())&&Ds(e));return u&&d?[u,d]:null}(u,d,l);if(f){const[e,t]=f;ma(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=[u,d,...s,...a].find(za);if(p){return _a(Fa(ja(p),e.direction))}W(`$removeTextFromCaretRange: selection was lost, could not find a new anchor given candidates with keys: ${JSON.stringify(s.map(e=>e.origin.__key))}`)}(Oa(this));Na(this,t),e&&co()!==this&&qi(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void Bi(null);const n=this.getNodes(),r=[];for(const e of n)Ir(e)&&r.push(e);const o=t=>{n.forEach(n=>{if(Xo(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(e),Bi(null),void o(t);const s=this.anchor,a=this.focus,l=this.isBackward(),c=l?a:s,u=l?s:a;let d=0,f=r[0],p="element"===c.type?0:c.offset;if("text"===c.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"===u.type?u.offset:m.getTextContentSize();if(f.is(m)){if(p===v)return;if(Ri(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"===c.type&&c.set(t.__key,0,"text"),"text"===u.type&&u.set(t.__key,v-p,"text")}return void(this.format=h)}0===p||Ri(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const b=m.getFormatFlags(e,h);v>0&&(v===m.getTextContentSize()||Ri(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"===c.type&&c.set(f.__key,p,"text"),"text"===u.type&&u.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=co();return Ur(t)||W("Expected RangeSelection after insertParagraph"),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=Xs(t,Ds),r=e[e.length-1];if(Xo(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=xo(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(Xo(e)||ei(e))&&!e.isInline())){Xo(n)||W(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`);const o=xo(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=ui();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=vr(o);if(i||ei(o)&&o.isInline()||Xo(o)&&o.isInline()||Ir(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(),s=o.getChildren(),a=!Xo(n)||!n.isEmpty()?this.insertParagraph():null,l=s[s.length-1];let c=s[0];(e=>Xo(e)&&Ds(e)&&!e.isEmpty()&&Xo(n)&&(!n.isEmpty()||n.canMergeWhenEmpty()))(c)&&(Xo(n)||W(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`),n.append(...c.getChildren()),c=s[1]),c&&(null===n&&W(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ancestor`),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||W("insertRangeAfter: lastToInsert must be a later sibling of firstToInsert"),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(n,c));const u=Xs(i,Ds);a&&Xo(u)&&(a.canMergeWhenEmpty()||Ds(l))&&(u.append(...a.getChildren()),a.remove()),Xo(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const d=Xo(n)?n.getLastChild():null;vr(d)&&u!==n&&d.remove()}insertParagraph(){if("root"===this.anchor.key){const e=ui();return Vi().splice(this.anchor.offset,0,[e]),e.select(),e}const e=xo(this),t=Xs(this.anchor.getNode(),Ds);Xo(t)||W("Expected ancestor to be a block ElementNode");const n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],o=t.insertNewAfter(this,!1);return o?(o.append(...r),o.selectStart(),o):null}insertLineBreak(e){const t=mr();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]=Jr(this),s=this.isBackward(),[a,l]=s?[this.focus,this.anchor]:[this.anchor,this.focus],[c,u]=s?[i,o]:[o,i];if(0===t)return[];if(1===t){if(Ir(n)&&!this.isCollapsed()){const e=n.splitText(c,u),t=0===c?e[0]:e[1];return t?(a.set(t.getKey(),0,"text"),l.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[n]}if(Ir(n)&&(c===n.getTextContentSize()?e.shift():0!==c&&([,n]=n.splitText(c),e[0]=n,a.set(n.getKey(),0,"text"))),Ir(r)){const t=r.getTextContent().length;0===u?e.pop():u!==t&&([r]=r.splitText(u),e[e.length-1]=r,l.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,t,n){if(wo(this,e,t,n))return;const r="move"===e,o=Oo(),i=Rs(ks(o));if(!i)return;const s=o._blockCursorElement,a=o._rootElement,l=this.focus.getNode();if(null===a||null===s||!Xo(l)||l.isInline()||l.canBeEmpty()||Ms(s,o,a),this.dirty){let e=bs(o,this.anchor.key),t=bs(o,this.focus.key);"text"===this.anchor.type&&(e=Pi(e)),"text"===this.focus.type&&(t=Pi(t)),e&&t&&mo(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=ni(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(Cs(t))return t;t=t.getParentOrThrow()}return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!r){const n=this.getNodes(),r=[];let s=!1;for(let e=0;e<n.length;e++){const t=n[e];ws(t,o)?r.push(t):s=!0}if(s&&r.length>0)if(t){const e=r[0];Xo(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];Xo(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&&wo(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&Xo(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(Xo(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=xa(La(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(la(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(Xo(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=ja(t);Na(this,wa(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(aa(t)){if(Xo(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(ei(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&Xo(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=so();e.add(t.origin.getKey()),qi(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return Na(this,wa(!t.origin.isEmpty()&&n.isEmpty()?Pa(fa(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&&qr(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 Qr(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 Qr(n,e,o)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode(),i=r.getNode();if(o===i&&"text"===n.type&&"text"===r.type){const e=n.offset,i=r.offset,s=e<i,a=s?e:i,l=s?i:e,c=l-1;if(a!==c){(function(e){e.length>1||W("shouldDeleteExactlyOneCodeUnit: expecting to be called only with sequences of two or more code units");return!(Qi(e)||Xr(e))})(o.getTextContent().slice(a,l))&&(t?r.set(r.key,c,r.type):n.set(n.key,c,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()&&ni(e.getParent())&&null===e.getPreviousSibling()&&qr(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 Yr(e){return e instanceof Kr}function Vr(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Jr(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]:[Vr(n),Vr(r)]}function qr(e,t){for(let n=t;n;n=n.getParent()){if(Xo(n)){if(n.collapseAtStart(e))return!0;if(Cs(n))break}if(n.getPreviousSibling())break}return!1}const Xr=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Qr(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,a=0;for(let e=0;e<i;e++){const r=e===i-1;if(a=s,s+=o[e].length,t&&s===n||s>n||r){o.splice(e,1),r&&(a=void 0);break}}const l=o.join("").trim();""===l?r.remove():(r.setTextContent(l),r.select(a,a))}function Zr(e,t,n,r){let o,i=t;if(Os(e)){let s=!1;const a=e.childNodes,l=a.length,c=r._blockCursorElement;i===l&&(s=!0,i=l-1);let u=a[i],d=!1;if(u===c)u=a[i+1],d=!0;else if(null!==c){const n=c.parentNode;if(e===n){t>Array.prototype.indexOf.call(n.children,c)&&i--}}if(o=Xi(u),Ir(o))i=ha(o,s?"next":"previous");else{let a=Xi(e);if(null===a)return null;if(Xo(a)){const l=r.getElementByKey(a.getKey());null===l&&W("$internalResolveSelectionPoint: node in DOM but not keyToDOMMap");const c=a.getDOMSlot(l);[a,i]=c.resolveChildIndex(a,l,e,t),Xo(a)||W("$internalResolveSelectionPoint: resolvedElement is not an ElementNode"),s&&i>=a.getChildrenSize()&&(i=Math.max(0,a.getChildrenSize()-1));let u=a.getChildAtIndex(i);if(Xo(u)&&function(e,t,n){const r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(u,0,n)){const e=s?u.getLastDescendant():u.getFirstDescendant();null===e?a=u:(u=e,a=Xo(u)?u:u.getParentOrThrow()),i=0}Ir(u)?(o=u,a=null,i=ha(u,s?"next":"previous")):u!==a&&s&&!d&&(Xo(a)||W("invariant"),i=Math.min(a.getChildrenSize(),i+1))}else{const n=a.getIndexWithinParent();i=0===t&&ei(a)&&Xi(e)===a?n:n+1,a=a.getParentOrThrow()}if(Xo(a))return $r(a.__key,i,"element")}}else o=Xi(e);return Ir(o)?$r(o.__key,ha(o,i,"clamp"),"text"):null}function eo(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&&Xo(i)&&i.isInline()){const t=i.getPreviousSibling();Ir(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else Xo(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):Ir(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&Xo(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&Xo(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();Ir(t)&&e.set(t.__key,0,"text")}}}function to(e,t,n){if("text"===e.type&&"text"===t.type){const n=e.isBefore(t),r=e.is(t);eo(e,n,r),eo(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function no(e,t,n,r,o,i){if(null===e||null===n||!Ei(o,e,n))return null;const s=Zr(e,t,Ur(i)?i.anchor:null,o);if(null===s)return null;const a=Zr(n,r,Ur(i)?i.focus:null,o);if(null===a)return null;if(lo("anchor",s),lo("focus",a),"element"===s.type&&"element"===a.type){const t=Xi(e),r=Xi(n);if(ei(t)&&ei(r))return null}return to(s,a),[s,a]}function ro(e){return Xo(e)&&!e.isInline()}function oo(e,t,n,r,o,i){const s=No(),a=new Gr($r(e,t,o),$r(n,r,i),0,"");return a.dirty=!0,s._selection=a,a}function io(){const e=$r("root",0,"element"),t=$r("root",0,"element");return new Gr(e,t,0,"")}function so(){return new Kr(new Set)}function ao(e,t,n,r){const o=n._window;if(null===o)return null;const i=r||o.event,s=i?i.type:void 0,a="selectionchange"===s,l=!_e&&(a||"beforeinput"===s||"compositionstart"===s||"compositionend"===s||"click"===s&&i&&3===i.detail||"drop"===s||void 0===s);let c,u,d,f;if(Ur(e)&&!l)return e.clone();if(null===t)return null;if(c=t.anchorNode,u=t.focusNode,d=t.anchorOffset,f=t.focusOffset,(a||void 0===s)&&Ur(e)&&!Ei(n,c,u))return e.clone();const p=no(c,d,u,f,n,e);if(null===p)return null;const[h,g]=p;let m=0,v="";if(Ur(e)){const t=e.anchor;if(h.key===t.key)m=e.format,v=e.style;else{const e=h.getNode();Ir(e)?(m=e.getFormat(),v=e.getStyle()):Xo(e)&&(m=e.getTextFormat(),v=e.getTextStyle())}}return new Gr(h,g,m,v)}function lo(e,t){const n=Hi(t.key);if(void 0===n&&W(`$validatePoint: ${e} key ${t.key} not found in current editorState`),"text"===t.type){Ir(n)||W(`$validatePoint: ${e} key ${t.key} is not a TextNode`);const r=n.getTextContentSize();t.offset<=r||W(`$validatePoint: ${e} point.offset > node.getTextContentSize() (${String(t.offset)} > ${String(r)})`)}else{Xo(n)||W(`$validatePoint: ${e} key ${t.key} is not an ElementNode`);const r=n.getChildrenSize();t.offset<=r||W(`$validatePoint: ${e} point.offset > node.getChildrenSize() (${String(t.offset)} > ${String(r)})`)}}function co(){return No()._selection}function uo(){return Oo()._editorState._selection}function fo(e,t,n,r=1){const o=e.anchor,i=e.focus,s=o.getNode(),a=i.getNode();if(!t.is(s)&&!t.is(a))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"),po(e)}}else{const s=e.isBackward(),a=s?i:o,c=a.getNode(),u=s?o:i,d=u.getNode();if(t.is(c)){const e=a.offset;(n<=e&&r>0||n<e&&r<0)&&a.set(l,Math.max(0,e+r),"element")}if(t.is(d)){const e=u.offset;(n<=e&&r>0||n<e&&r<0)&&u.set(l,Math.max(0,e+r),"element")}}po(e)}function po(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),s=r.getNode();if(e.isCollapsed()){if(!Xo(i))return;const e=i.getChildrenSize(),o=n>=e,s=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Ir(s)){let e=0;o&&(e=s.getTextContentSize()),t.set(s.__key,e,"text"),r.set(s.__key,e,"text")}return}if(Xo(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Ir(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(Xo(s)){const e=s.getChildrenSize(),t=o>=e,n=t?s.getChildAtIndex(e-1):s.getChildAtIndex(o);if(Ir(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function ho(e,t,n,r,o){let i=null,s=0,a=null;null!==r?(i=r.__key,Ir(r)?(s=r.getTextContentSize(),a="text"):Xo(r)&&(s=r.getChildrenSize(),a="element")):null!==o&&(i=o.__key,Ir(o)?a="text":Xo(o)&&(a="element")),null!==i&&null!==a?e.set(i,s,a):(s=t.getIndexWithinParent(),-1===s&&(s=n.getChildrenSize()),e.set(n.__key,s,"element"))}function go(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 mo(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){console.warn(e)}}function vo(e,t,n){const r=bs(e,t.getKey());if(Xo(t)){const e=t.getDOMSlot(r);return[e.element,n+e.getFirstChildOffset()]}return[r,n]}function bo(e,t,n,r,o,i,s){const a=r.anchorNode,l=r.focusNode,c=r.anchorOffset,u=r.focusOffset,d=document.activeElement;if(o.has(lr)&&d!==i||null!==d&&Ci(d))return;if(!Ur(t))return void(null!==e&&Ei(n,a,l)&&r.removeAllRanges());const f=t.anchor,p=t.focus,h=f.getNode(),g=p.getNode(),[m,v]=vo(n,h,f.offset),[b,y]=vo(n,g,p.offset),x=t.format,_=t.style,w=t.isCollapsed();let S=m,k=b,C=!1;if("text"===f.type?(S=Pi(m),C=h.getFormat()!==x||h.getStyle()!==_):Ur(e)&&"text"===e.anchor.type&&(C=!0),"text"===p.type&&(k=Pi(b)),null!==S&&null!==k&&(w&&(null===e||C||Ur(e)&&(e.format!==x||e.style!==_))&&function(e,t,n,r,o){zn=[e,t,n,r,o]}(x,_,v,f.key,performance.now()),c!==v||u!==y||a!==S||l!==k||"Range"===r.type&&w||(null!==d&&i.contains(d)||o.has(dr)||i.focus({preventScroll:!0}),"element"===f.type))){if(mo(r,S,v,k,y),!Y||!t.isCollapsed()||null===i||o.has(dr)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(cr)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=Ur(t)&&"element"===t.anchor.type?S.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){const n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){const r=xs(n),o=Ss(r);if(null===r||null===o)return;let{top:i,bottom:s}=t,a=0,l=0,c=n;for(;null!==c;){const t=c===r.body;if(t)a=0,l=ks(e).innerHeight;else{const e=c.getBoundingClientRect();a=e.top,l=e.bottom}let n=0;if(i<a?n=-(a-i):s>l&&(n=s-l),0!==n)if(t)o.scrollBy(0,n);else{const e=c.scrollTop;c.scrollTop+=n;const t=c.scrollTop-e;i-=t,s-=t}if(t)break;c=ys(c)}}(n,t,i)}}Ln=!0}}function yo(e){let t=co()||uo();null===t&&(t=Vi().selectEnd()),t.insertNodes(e)}function xo(e){let t=e;e.isCollapsed()||t.removeText();const n=co();Ur(n)&&(t=n),Ur(t)||W("Unexpected dirty selection to be null");const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!Ds(o);){const e=o;if([o,i]=_o(o,i),e.is(o))break}return i}function _o(e,t){const n=e.getParent();if(!n){const e=ui();return Vi().append(e),e.select(),[Vi(),0]}if(Ir(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(!Xo(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Gr($r(e.__key,t,"element"),$r(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function wo(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=La(e.focus,n?"previous":"next"),s="lineboundary"===r,a="move"===t;let l=i,c="decorators-and-blocks"===o;if(!Da(l)){for(const e of l){c=!1;const{origin:t}=e;if(!ei(t)||t.isIsolated()||(l=e,!s||!t.isInline()))break}if(c)for(const e of xa(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(la(e))e.origin.isInline()||(l=e);else{if(Xo(e.origin))continue;ei(e.origin)&&!e.origin.isInline()&&(l=e)}break}}if(l===i)return!1;if(a&&!s&&ei(l.origin)&&l.origin.isKeyboardSelectable()){const e=so();return e.add(l.origin.getKey()),qi(e),!0}return l=ja(l),a&&Ma(e.anchor,l),Ma(e.focus,l),c||!s}let So=null,ko=null,Co=!1,Eo=!1,To=0;const Ao={characterData:!0,childList:!0,subtree:!0};function Lo(){return Co||null!==So&&So._readOnly}function Mo(){Co&&W("Cannot use method in read-only mode.")}function Ro(){To>99&&W("One or more transforms are endlessly triggering additional transforms. May have encountered infinite recursion caused by transforms that have their preconditions too lose and/or conflict with each other.")}function No(){return null===So&&W(`Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update(), editor.read(), or editorState.read().${Po()}`),So}function Oo(){return null===ko&&W(`Unable to find an active editor. This method can only be used synchronously during the callback of editor.update() or editor.read().${Po()}`),ko}function Po(){let e=0;const t=new Set,n=mi.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=Li(r);if(Ti(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 Io(){return ko}function zo(e,t,n){const r=t.__type,o=_i(e,r);let i=n.get(r);void 0===i&&(i=Array.from(o.transforms),n.set(r,i));const s=i.length;for(let e=0;e<s&&(i[e](t),t.isAttached());e++);}function jo(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function Do(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 Fo(e){return Bo(e,Oo()._nodes)}function Bo(e,t){const n=e.type,r=t.get(n);void 0===r&&W(`parseEditorState: type "${n}" + not found`);const o=r.klass;e.type!==o.getType()&&W(`LexicalNode: Node ${o.name} does not implement .importJSON().`);const i=o.importJSON(e),s=e.children;if(Xo(i)&&Array.isArray(s))for(let e=0;e<s.length;e++){const n=Bo(s[e],t);i.append(n)}return i}function $o(e,t,n){const r=So,o=Co,i=ko;So=t,Co=!0,ko=e;try{return n()}finally{So=r,Co=o,ko=i}}function Ho(e){const t=e._nodeMap;t.set=()=>{throw new Error("Cannot call set() on a frozen Lexical node map")},t.clear=()=>{throw new Error("Cannot call clear() on a frozen Lexical node map")},t.delete=()=>{throw new Error("Cannot call delete() on a frozen Lexical node map")}}function Wo(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||null===r;if(null===n)return;const i=e._editorState,s=i._selection,a=n._selection,l=0!==e._dirtyType,c=So,u=Co,d=ko,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&null!==p){ko=e,So=n,Co=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=wt(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),Eo)throw t;return pi(e,null,r,n),Me(e),e._dirtyType=2,Eo=!0,Wo(e,i),void(Eo=!1)}finally{p.observe(r,Ao),e._updating=f,So=c,Co=u,ko=d}}n._readOnly||(n._readOnly=!0,Ho(n),Ur(a)&&(Object.freeze(a.anchor),Object.freeze(a.focus)),Object.freeze(a));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=Gi(e)),delete r[i])}(e,n);const x=o?null:Rs(ks(e));if(e._editable&&null!==x&&(l||null===a||a.dirty||!a.is(s))&&null!==r&&!b.has(ur)){ko=e,So=n;try{if(null!==p&&p.disconnect(),l||null===a||a.dirty){const t=e._blockCursorElement;null!==t&&Ms(t,e,r),bo(s,a,e,x,b,r)}!function(e,t,n){let r=e._blockCursorElement;if(Ur(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){const o=n.anchor,i=o.getNode(),s=o.offset;let a=!1,l=null;if(s===i.getChildrenSize()){Ls(i.getChildAtIndex(s-1))&&(a=!0)}else{const t=i.getChildAtIndex(s);if(null!==t&&Ls(t)){const n=t.getPreviousSibling();(null===n||Ls(n))&&(a=!0,l=e.getElementByKey(t.__key))}}if(a){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=Ua(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&&Ms(r,e,t)}(e,r,a)}finally{null!==p&&p.observe(r,Ao),ko=d,So=c}}null!==h&&function(e,t,n,r,o){const i=Array.from(e._listeners.mutation),s=i.length;for(let e=0;e<s;e++){const[s,a]=i[e];for(const e of a){const i=t.get(e);void 0!==i&&s(i,{dirtyLeaves:r,prevEditorState:o,updateTags:n})}}}(e,h,b,g,i),Ur(a)||null===a||null!==s&&s.is(a)||e.dispatchCommand(Ct,void 0);const _=e._pendingDecorators;null!==_&&(e._decorators=_,e._pendingDecorators=null,Ko("decorator",e,!0,_)),function(e,t,n){const r=Yi(t),o=Yi(n);r!==o&&Ko("textcontent",e,!0,o)}(e,t||i,n),Ko("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;Go(e,t,r)}}}(e)}function Ko(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 Uo(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 s;void 0!==o&&(s=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete&&(null===i&&W("Unexpected empty pending editor state on discrete nested update"),i._flushSync=!0),s&&e._deferred.push(s),Do(e,o.tag)),null==i?Go(e,n,o):n()}}return r}function Go(e,t,n){const r=e._updateTags;let o,i=!1,s=!1;void 0!==n&&(o=n.onUpdate,Do(e,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),o&&e._deferred.push(o);const a=e._editorState;let l=e._pendingEditorState,c=!1;(null===l||l._readOnly)&&(l=e._pendingEditorState=ri(l||a),c=!0),l._flushSync=s;const u=So,d=Co,f=ko,p=e._updating;So=l,Co=!1,e._updating=!0,ko=e;const h=e._headless||null===e.getRootElement();yi(null);try{c&&(h?null!==a._selection&&(l._selection=a._selection.clone()):l._selection=function(e,t){const n=e.getEditorState()._selection,r=Rs(ks(e));return Ur(n)||null==n?ao(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=Uo(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(Ur(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);Ir(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&$e(t)}}(l,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=$i(),s=new Map;let a=n,l=a.size,c=r,u=c.size;for(;l>0||u>0;){if(l>0){t._dirtyLeaves=new Set;for(const e of a){const r=o.get(e);Ir(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&$e(r),void 0!==r&&jo(r,i)&&zo(t,r,s),n.add(e)}if(a=t._dirtyLeaves,l=a.size,l>0){To++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,c.delete("root")&&c.set("root",!0);for(const e of c){const n=e[0],a=e[1];if(r.set(n,a),!a)continue;const l=o.get(n);void 0!==l&&jo(l,i)&&zo(t,l,s)}a=t._dirtyLeaves,l=a.size,c=t._dirtyElements,u=c.size,To++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Uo(e),function(e,t,n,r){const o=e._nodeMap,i=t._nodeMap,s=[];for(const[e]of r){const t=i.get(e);void 0!==t&&(t.isAttached()||(Xo(t)&&xe(t,e,o,i,s,r),o.has(e)||r.delete(e),s.push(e)))}for(const e of s)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))}}(a,l,e._dirtyLeaves,e._dirtyElements));r!==e._compositionKey&&(l._flushSync=!0);const o=l._selection;if(Ur(o)){const e=l._nodeMap,t=o.anchor.key,n=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||W("updateEditor: selection has been lost because the previously selected nodes have been removed and selection wasn't moved to another node. Ensure selection changes after removing/replacing a selected node.")}else Yr(o)&&0===o._nodes.size&&(l._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=a,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Wo(e)}finally{So=u,Co=d,ko=f,e._updating=p,To=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,Wo(e)):c&&Si(()=>{Wo(e)}):(l._flushSync=!1,c&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Yo(e,t,n){ko===e&&void 0===n?t():Go(e,t,n)}class Vo{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new Vo(this.element,e,this.after)}withAfter(e){return new Vo(this.element,this.before,e)}withElement(e){return this.element===e?this:new Vo(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&W("ElementDOMSlot.insertChild: before is not in element"),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&W("ElementDOMSlot.removeChild: dom is not in element"),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&W("ElementDOMSlot.replaceChild: prevDom is not in element"),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(null===e)this.removeManagedLineBreak();else{const t="decorator"===e&&(ee||q||J);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=Jo(t,n);o.push(r);const i=Jo(t,this.element);let s=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){s+=1;break}}return[e.getParentOrThrow(),s]}}function Jo(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&&W("indexPath: root is not a parent of child"),n.reverse()}class qo extends ir{__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 me[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=Oo()._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(Ir(t)&&e.push(t),Xo(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;Xo(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;Xo(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 Xo(e)&&e.getLastDescendant()||e||null}const r=t[e];return Xo(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:Hi(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&W(`Expected node ${this.__key} to have a first child.`),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:Hi(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&W(`Expected node ${this.__key} to have a last child.`),e}getChildAtIndex(e){const t=this.getChildrenSize();let n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;null!==n&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e="";const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContent(),Xo(o)&&r!==n-1&&!o.isInline()&&(e+=de)}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(),Xo(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=ge[e];return 0!==(this.getFormat()&t)}return!1}hasTextFormat(e){const t=pe[e];return 0!==(this.getTextFormat()&t)}getFormatFlags(e,t){return Ii(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){Mo();const n=co();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(Ir(e)||Xo(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if(Ir(e)||Xo(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const s=this.__key;return Ur(n)?(n.anchor.set(s,r,"element"),n.focus.set(s,o,"element"),n.dirty=!0,n):oo(s,r,s,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?ge[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){or(this)&&W(`ElementNode.splice: Ephemeral nodes can not mutate their children (key ${this.__key} type ${this.__type})`);const r=this.getChildrenSize(),o=this.getWritable();e+t<=r||W(`ElementNode.splice: start + deleteCount > oldSize (${String(e)} + ${String(t)} > ${String(r)})`);const i=o.__key,s=[],a=[],l=this.getChildAtIndex(e+t);let c=null,u=r-t+n.length;if(0!==e)if(e===r)c=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(c=t.getPreviousSibling())}if(t>0){let e=null===c?this.getFirstChild():c.getNextSibling();for(let n=0;n<t;n++){null===e&&W("splice: sibling not found");const t=e.getNextSibling(),n=e.__key;Di(e.getWritable()),a.push(n),e=t}}let d=c;for(const e of n){null!==d&&e.is(d)&&(c=d=d.getPreviousSibling());const t=e.getWritable();t.__parent===i&&u--,Di(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&&W("append: attempting to append self"),t.__parent=i,s.push(n),d=e}if(e+t===r){if(null!==d){d.getWritable().__next=null,o.__last=d.__key}}else if(null!==l){const e=l.getWritable();if(null!==d){const t=d.getWritable();e.__prev=d.__key,t.__next=l.__key}else e.__prev=null}if(o.__size=u,a.length){const e=co();if(Ur(e)){const t=new Set(a),n=new Set(s),{anchor:r,focus:o}=e;Qo(r,t,n)&&ho(r,r.getNode(),this,c,l),Qo(o,t,n)&&ho(o,o.getNode(),this,c,l),0!==u||this.canBeEmpty()||Cs(this)||this.remove()}}return o}getDOMSlot(e){return new Vo(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(Os(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||Cs(this)||this.getChildren().some(Ir)||(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 Xo(e){return e instanceof qo}function Qo(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 Zo extends ir{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ei(e){return e instanceof Zo}class ti extends qo{__cachedText;static getType(){return"root"}static clone(){return new ti}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){W("getTopLevelElementOrThrow: root nodes are not top level elements")}getTextContent(){const e=this.__cachedText;return!Lo()&&0!==Oo()._dirtyType||null===e?super.getTextContent():e}remove(){W("remove: cannot be called on root nodes")}replace(e){W("replace: cannot be called on root nodes")}insertBefore(e){W("insertBefore: cannot be called on root nodes")}insertAfter(e){W("insertAfter: cannot be called on root nodes")}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)Xo(e)||ei(e)||W("rootNode.splice: Only element or decorator nodes can be inserted to the root node");return super.splice(e,t,n)}static importJSON(e){return Vi().updateFromJSON(e)}collapseAtStart(){return!0}}function ni(e){return e instanceof ti}function ri(e){return new si(new Map(e._nodeMap))}function oi(){return new si(new Map([["root",new ti]]))}function ii(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&W(`LexicalNode: Node ${n.name} does not match the serialized type. Check if .exportJSON() is implemented and it is returning the correct type.`),Xo(e)){const r=t.children;Array.isArray(r)||W(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`);const o=e.getChildren();for(let e=0;e<o.length;e++){const t=ii(o[e]);r.push(t)}}return t}class si{_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 $o(t&&t.editor||null,this,e)}clone(e){const t=new si(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return $o(null,this,()=>({root:ii(Vi())}))}}class ai extends qo{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class li extends qo{static getType(){return"paragraph"}static clone(e){return new li(e.__key)}createDOM(e){const t=document.createElement("p"),n=ds(e.theme,"paragraph");if(void 0!==n){t.classList.add(...n)}return t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:ci,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Os(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return ui().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(Ir);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=ui();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||Ir(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 ci(e){const t=ui();if(e.style&&(t.setFormat(e.style.textAlign),Us(e,t)),""===t.getFormatType()){const n=e.getAttribute("align");n&&n&&n in ge&&t.setFormat(n)}return{node:t}}function ui(){return Ts(new li)}function di(e){return e instanceof li}const fi=0;function pi(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=oi(),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 hi(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=qs(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 ir&&e!==ir?e:void 0}}return t}function gi(e){const t=e||{},n=Io(),r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,s=oi(),a=t.namespace||(null!==o?o._config.namespace:es()),l=t.editorState,c=[ti,Cr,hr,jr,li,ai,...t.nodes||[]],{onError:u,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<c.length;e++){let t=c[e],n=null,r=null;if("function"!=typeof t){const e=t;t=e.replace,n=e.with,r=e.withKlass||null}qs(t);{const e=t.name,o=Vs(t,"getType")&&t.getType();r?r.prototype instanceof t||W(`${r.name} doesn't extend the ${e}`):n&&console.warn(`Override for ${e} specifies 'replace' without 'withKlass'. 'withKlass' will be required in a future version.`),"RootNode"!==e&&"root"!==o&&"artificial"!==o&&t!==ir&&(["getType","clone"].forEach(n=>{Vs(t,n)||console.warn(`${e} must implement static "${n}" method`)}),!Vs(t,"importDOM")&&Js(t)&&console.warn(`${e} should implement "importDOM" if using a custom "exportDOM" method to ensure HTML serialization (important for copy & paste) works as expected`),Vs(t,"importJSON")||console.warn(`${e} should implement "importJSON" method to ensure JSON and default HTML serialization works as expected`))}const o=t.getType(),i=hi(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Re(c[e]),transforms:i})}}const h=new mi(s,o,p,{disableEvents:i,namespace:a,theme:r},u||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(At,Wn,fi),e.registerCommand(Lt,Kn,fi),e.registerCommand(Mt,Un,fi),e.registerCommand(Rt,Gn,fi),e.registerCommand(Wt,Vn,fi)}(h),h}class mi{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,s,a){this._createEditorArgs=a,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=es(),this._onError=o,this._htmlConversions=i,this._editable=s,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&&W('Listener for type "command" requires a "priority".');const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=r.get(e);void 0===o&&W(`registerCommand: Command ${String(e)} not found in command map`);const i=o[n];return i.add(t),()=>{i.delete(t),o.every(e=>0===e.size)&&r.delete(e)}}registerMutationListener(e,t,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,o=this._listeners.mutation;let i=o.get(t);void 0===i&&(i=new Set,o.set(t,i)),i.add(r);const s=n&&n.skipInitialization;return void 0!==s&&s||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&&W(`Node ${e.name} has not been registered. Ensure node has been passed to createEditor.`),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=Hs(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=Hs(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}if(0===r.length)return;e.update(()=>{for(const e of r)for(const t of e.keys()){const e=Hi(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:ar}: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 vs(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=ds(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,pi(this,t,e,r),null!==t&&(this._config.disableEvents||tr(t),null!=n&&t.classList.remove(...n)),null!==e){const t=Ss(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,Me(this),this._updateTags.add(ar),Wo(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;Tn.set(e,n);const r=An.get(n)??0;r<1&&n.addEventListener("selectionchange",Xn),An.set(n,r+1),e.__lexicalEditor=t;const o=Jn(e);for(let n=0;n<wn.length;n++){const[r,i]=wn[n],s="function"==typeof i?e=>{Zn(e)||(Qn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(Zn(e))return;Qn(e);const n=t.isEditable();switch(r){case"cut":return n&&vs(t,fn,e);case"copy":return vs(t,dn,e);case"paste":return n&&vs(t,zt,e);case"dragstart":return n&&vs(t,ln,e);case"dragover":return n&&vs(t,cn,e);case"dragend":return n&&vs(t,un,e);case"focus":return n&&vs(t,bn,e);case"blur":return n&&vs(t,yn,e);case"drop":return n&&vs(t,sn,e)}};e.addEventListener(r,s),o.push(()=>{e.removeEventListener(r,s)})}}(e,this),null!=n&&e.classList.add(...n);{const t=e.parentElement;null!=t&&["flex","inline-flex"].includes(getComputedStyle(t).display)&&console.warn('When using "display: flex" or "display: inline-flex" on an element containing content editable, Chrome may have unwanted focusing behavior when clicking outside of it. Consider wrapping the content editable within a non-flex element.')}}else this._window=null,this._updateTags.add(ar),Wo(this);Ko("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&W("setEditorState: the editor state is empty. Ensure the editor state's root node never becomes empty.");let n=e;n._readOnly&&(n=ri(e),n._selection=e._selection?e._selection.clone():null),Le(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),Wo(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||Wo(this)}parseEditorState(e,t){return function(e,t,n){const r=oi(),o=So,i=Co,s=ko,a=t._dirtyElements,l=t._dirtyLeaves,c=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,So=r,Co=!1,ko=t,yi(null);try{const o=t._nodes;Bo(e.root,o),n&&n(),r._readOnly=!0,Ho(r)}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=a,t._dirtyLeaves=l,t._cloneNotNeeded=c,t._dirtyType=u,So=o,Co=i,ko=s}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return Wo(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):Go(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Yo(this,()=>{const r=co(),o=Vi();null!==r?r.dirty||qi(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),_s("focus"),function(e){Mo();Oo()._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=Rs(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ko("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}mi.version="0.41.0+dev.esm";let bi=null;function yi(e){bi=e}let xi=1;function _i(e,t){const n=wi(e,t);return void 0===n&&W(`registeredNode: Type ${t} not found`),n}function wi(e,t){return e._nodes.get(t)}const Si="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function ki(e){return ei(Ui(e))}function Ci(e){const t=document.activeElement;if(!Os(t))return!1;const n=t.nodeName;return ei(Ui(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==Li(t))}function Ei(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!Ci(t)&&Ai(t)===e}catch(e){return!1}}function Ti(e){return e instanceof mi}function Ai(e){let t=e;for(;null!=t;){const e=Li(t);if(Ti(e))return e;t=ys(t)}return null}function Li(e){return e?e.__lexicalEditor:null}function Mi(e){return Fr(e)||e.isToken()}function Ri(e){return Mi(e)||e.isSegmented()}function Ni(e){return Ps(e)&&3===e.nodeType}function Oi(e){return Ps(e)&&9===e.nodeType}function Pi(e){let t=e;for(;null!=t;){if(Ni(t))return t;t=t.firstChild}return null}function Ii(e,t,n){const r=pe[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 zi(e){return Ir(e)||vr(e)||ei(e)}function ji(e,t){const n=function(){const e=bi;return bi=null,e}();if(null!=(t=t||n&&n.__key))return function(e,t,n){const r=So;if(!r)return;const o=r._nodeMap.get(t);n&&t!==n.__key&&W(`Lexical node with constructor ${e.constructor.name} (type ${e.getType()}) has an incorrect clone implementation, got ${String(t)} for nodeKey when expecting ${n.__key}`);o&&o.constructor!==e.constructor&&(e.constructor.name!==o.constructor.name?W(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with constructor ${o.constructor.name}. Keys must not be re-used when the type is changed.`):W(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with different constructor with the same name (possibly due to invalid Hot Module Replacement). Keys must not be re-used when the type is changed.`))}(e,t,n),void(e.__key=t);Mo(),Ro();const r=Oo(),o=No(),i=""+xi++;o._nodeMap.set(i,e),Xo(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function Di(e){const t=e.getParent();if(null!==t){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),s=null!==i?i.__key:null,a=null!==o?o.__key:null,l=null!==o?o.getWritable():null,c=null!==i?i.getWritable():null;null===o&&(r.__first=s),null===i&&(r.__last=a),null!==l&&(l.__next=s),null!==c&&(c.__prev=a),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Fi(e){Ro(),or(e)&&W(`internalMarkNodeAsDirty: Ephemeral nodes must not be marked as dirty (key ${e.__key} type ${e.__type})`);const t=e.getLatest(),n=t.__parent,r=No(),o=Oo(),i=r._nodeMap,s=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,s);const a=t.__key;o._dirtyType=1,Xo(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function Bi(e){Mo();const t=Oo(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=Hi(n);null!==e&&e.getWritable()}if(null!==e){const t=Hi(e);null!==t&&t.getWritable()}}}function $i(){if(Lo())return null;return Oo()._compositionKey}function Hi(e,t){const n=(t||No())._nodeMap.get(e);return void 0===n?null:n}function Wi(e,t){const n=Ki(e,Oo());return void 0!==n?Hi(n,t):null}function Ki(e,t){return e[`__lexicalKey_${t._key}`]}function Ui(e,t){let n=e;for(;null!=n;){const e=Wi(n,t);if(null!==e)return e;n=ys(n)}return null}function Gi(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Yi(e){return e.read(()=>Vi().getTextContent())}function Vi(){return Ji(No())}function Ji(e){return e._nodeMap.get("root")}function qi(e){Mo();const t=No();null!==e&&(Object.isFrozen(e)&&W("$setSelection called on frozen selection object. Ensure selection is cloned before passing in."),e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Xi(e){const t=Oo(),n=function(e,t){let n=e;for(;null!=n;){const e=Ki(n,t);if(void 0!==e)return e;n=ys(n)}return null}(e,t);if(null===n){return e===t.getRootElement()?Hi("root"):null}return Hi(n)}function Qi(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Zi(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function es(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function ts(e){return Ni(e)?e.nodeValue:null}function ns(e,t,n){const r=Rs(ks(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(null!==o){let t=ts(o);const r=Ui(o);if(null!==t&&Ir(r)){if((t===ue||t===fe)&&n){const e=n.length;t=n,i=e,s=e}null!==t&&rs(r,t,i,s,e)}}}function rs(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let a=t;if((s||o)&&(t.endsWith(ue)&&(a=t.slice(0,-ue.length)),o)){const e=fe;let t;for(;-1!==(t=a.indexOf(e));)a=a.slice(0,t)+a.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||a!==l){if(""===a){if(Bi(null),J||q||ee)i.remove();else{const e=Oo();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}const t=i.getParent(),o=uo(),l=i.getTextContentSize(),c=$i(),u=i.getKey();if(i.isToken()||null!==c&&u===c&&!s||Ur(o)&&(null!==t&&!t.canInsertTextBefore()&&0===o.anchor.offset||o.anchor.key===e.__key&&0===o.anchor.offset&&!i.canInsertTextBefore()&&!s||o.focus.key===e.__key&&o.focus.offset===l&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const d=co();if(!Ur(d)||null===n||null===r)return void os(i,a,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=Pr(i.getTextContent());i.replace(e),i=e}os(i,a,d)}}}function os(e,t,n){if(e.setTextContent(t),Ur(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=ha(e,o.offset,"clamp"))}}}function is(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function ss(e,t,n){if(!function(e,t){return is(e,t,"altKey")&&is(e,t,"ctrlKey")&&is(e,t,"shiftKey")&&is(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 as={ctrlKey:!G,metaKey:G},ls={altKey:G,ctrlKey:!G};function cs(e){return"Backspace"===e.key}function us(e){return ss(e,"a",as)}function ds(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=Ua(o);return n[t]=e,e}return o}function fs(e,t,n,r,o){if(0===n.size)return;const i=r.__type,s=r.__key,a=t.get(i);void 0===a&&W(`Type ${i} not in registeredNodes`);const l=a.klass;let c=e.get(l);void 0===c&&(c=new Map,e.set(l,c));const u=c.get(s),d="destroyed"===u&&"created"===o;(void 0===u||d)&&c.set(s,d?"updated":o)}function ps(e){const t=e.getType(),n=No();if(n._readOnly){const e=Hs(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 hs(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 gs(e,t){const n=e.offset;if("element"===e.type){return hs(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?hs(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function ms(e){const t=ks(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function vs(e,t,n){return function(e,t,n){const r=Zi(e);for(let o=4;o>=0;o--)for(let i=0;i<r.length;i++){const s=r[i],a=s._commands.get(t);if(void 0!==a){const t=a[o];if(void 0!==t){const r=Array.from(t),o=r.length;let i=!1;if(Yo(s,()=>{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 bs(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&W(`Reconciliation: could not find DOM element for node key ${t}`),n}function ys(e){const t=e.assignedSlot||e.parentElement;return Is(t)?t.host:t}function xs(e){return Oi(e)?e:Os(e)?e.ownerDocument:null}function _s(e){Mo();Oo()._updateTags.add(e)}function ws(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function Ss(e){const t=xs(e);return t?t.defaultView:null}function ks(e){const t=e._window;return null===t&&W("window object not found"),t}function Cs(e){return ni(e)||Xo(e)&&e.isShadowRoot()}function Es(e){const t=e.constructor.clone(e);return ji(t,null),t.afterCloneFrom(e),t}function Ts(e){const t=Oo(),n=e.getType(),r=wi(t,n);void 0===r&&W(`$applyNodeReplacement node ${e.constructor.name} with type ${n} must be registered to the editor. You can do this by passing the node class via the "nodes" array in the editor config.`);const{replace:o,replaceWithKlass:i}=r;if(null!==o){const t=o(e),r=t.constructor;return null!==i?t instanceof i||W(`$applyNodeReplacement failed. Expected replacement node to be an instance of ${i.name} with type ${i.getType()} but returned ${r.name} with type ${r.getType()} from original node ${e.constructor.name} with type ${n}`):t instanceof e.constructor&&r!==e.constructor||W(`$applyNodeReplacement failed. Ensure replacement node ${r.name} with type ${r.getType()} is a subclass of the original node ${e.constructor.name} with type ${n}.`),t.__key===e.__key&&W(`$applyNodeReplacement failed. Ensure that the key argument is *not* used in your replace function (from node ${e.constructor.name} with type ${n} to node ${r.name} with type ${r.getType()}), Node keys must never be re-used except by the static clone method.`),t}return e}function As(e,t){!ni(e.getParent())||Xo(t)||ei(t)||W("Only element or decorator nodes can be inserted in to the root node")}function Ls(e){return(ei(e)||Xo(e)&&!e.canBeEmpty())&&!e.isInline()}function Ms(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function Rs(e){return K?(e||window).getSelection():null}function Ns(e){return Os(e)&&"A"===e.tagName}function Os(e){return Ps(e)&&1===e.nodeType}function Ps(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function Is(e){return Ps(e)&&11===e.nodeType}function zs(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 js(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 Ds(e){if(ei(e)&&!e.isInline())return!0;if(!Xo(e)||Cs(e))return!1;const t=e.getFirstChild(),n=null===t||vr(t)||Ir(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Fs(){return Oo()}const Bs=new WeakMap,$s=new Map;function Hs(e){if(!e._readOnly&&e.isEmpty())return $s;e._readOnly||W("getCachedTypeToNodeMap called with a writable EditorState");let t=Bs.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),Bs.set(e,t)),t}function Ws(e){const t=e.constructor,n=t.clone(e);return n.afterCloneFrom(e),n.__key!==e.__key&&W(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') did not return a node with the same key, make sure to specify node.__key as the last argument to the constructor`),n.__parent===e.__parent&&n.__next===e.__next&&n.__prev===e.__prev||W(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') overrode afterCloneFrom but did not call super.afterCloneFrom(prevNode)`),n}function Ks(e){return function(e){return e[rr]=!0,e}(Ws(e))}function Us(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Gs(e){return!0===e.__lexicalUnmanaged}function Ys(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Vs(e,t){return Ys(e,t)&&e[t]!==ir[t]}function Js(e){return Ys(e.prototype,"exportDOM")}function qs(e){const t=ye in e.prototype?e.prototype[ye]():void 0,n=function(e){if(!(e===ir||e.prototype instanceof ir)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{mi.version&&(n=JSON.parse(mi.version))}catch(e){}W(`${e.name} (type ${t}) does not subclass LexicalNode from the lexical package used by this editor (version ${n}). All lexical and @lexical/* packages used by an editor must have identical versions. If you suspect the version does match, then the problem may be caused by multiple copies of the same lexical module (e.g. both esm and cjs, or included directly in multiple entrypoints).`)}return e===Zo||e===qo||e===ir}(e),r=!n&&Vs(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&&(Vs(e,"getType")||(e.getType=()=>i),Vs(e,"clone")||(0===Cr.length&&0!==e.length&&W(`${e.name} (type ${i}) must implement a static clone method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.clone=t=>(yi(t),new e)),Vs(e,"importJSON")||(0===Cr.length&&0!==e.length&&W(`${e.name} (type ${i}) must implement a static importJSON method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!Vs(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}const Xs=(e,t)=>{let n=e;for(;null!=n&&!ni(n);){if(t(n))return n;n=n.getParent()}return null},Qs={next:"previous",previous:"next"};class Zs{origin;constructor(e){this.origin=e}[Symbol.iterator](){return Sa({hasNext:aa,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return fa(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return fa(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(),s=new Map;for(let t=o.getAdjacentCaret();null!==t&&s.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();s.set(e.getKey(),e)}for(const e of r){if(s.size>0){const t=o.getNodeAtCaret();if(t)if(s.delete(t.getKey()),s.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&&W(`NodeCaret.splice: Underflow of expected nodesToRemove during splice (keys: ${Array.from(s).join(" ")})`)}else o.insert(e);o=fa(e,this.direction)}for(const e of s.values())e.remove();return this}}class ea extends Zs{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ma(e,this.direction)}getParentCaret(e="root"){return fa(ra(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=na(this.direction);return fa(this.getNodeAtCaret(),e)||ma(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof ea&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const ta={root:ni,shadowRoot:Cs};function na(e){return Qs[e]}function ra(e,t="root"){return ta[t](e)?null:e}class oa extends Zs{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:fa(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return Xo(this.origin)?ma(this.origin,this.direction):null}getParentCaret(e="root"){return fa(ra(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=na(this.direction);return fa(this.getNodeAtCaret(),e)||ma(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof oa&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof oa||e instanceof ia)&&this.direction===e.direction&&this.origin.is(e.origin)}}class ia extends Zs{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:pa(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return fa(ra(this.getParentAtCaret(),e),this.direction)}getFlipped(){return pa(this.origin,na(this.direction),this.offset)}isSamePointCaret(e){return e instanceof ia&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof oa||e instanceof ia)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return fa(this.origin,this.direction)}}function sa(e){return e instanceof ia}function aa(e){return e instanceof oa}function la(e){return e instanceof ea}const ca={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}}},ua={next:class extends oa{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends oa{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},da={next:class extends ea{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends ea{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function fa(e,t){return e?new ua[t](e):null}function pa(e,t,n){return e?new ca[t](e,ha(e,n)):null}function ha(e,t,n="error"){const r=e.getTextContentSize();let o="next"===t?r:"previous"===t?0:t;return(o<0||o>r)&&("clamp"!==n&&W(`$getTextNodeOffset: invalid offset ${String(t)} for size ${String(r)} at key ${e.getKey()}`),o=o<0?0:r),o}function ga(e,t){return new ya(e,t)}function ma(e,t){return Xo(e)?new da[t](e):null}function va(e){return e&&function(e){return e&&e.getChildCaret()||e}(e.getAdjacentCaret())}class ba{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 ba(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return sa(t)?function(e,t){const{direction:n,origin:r}=e,o=ha(r,"focus"===t?na(n):n);return ga(e,o-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){const{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[ga(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=sa(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=sa(n),o=t=>t.isSameNodeCaret(n)?null:va(t)||t.getParentCaret(e);return Sa({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:o(t),map:e=>e,step:o})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class ya{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 pa(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}}function xa(e){return wa(e,fa(Vi(),e.direction))}function _a(e){return wa(e,e)}function wa(e,t){return e.direction!==t.direction&&W("$getCaretRange: anchor and focus must be in the same direction"),new ba(e,t,e.direction)}function Sa(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 ka(e,t){const n=Aa(e.origin,t.origin);switch(null===n&&W(`$comparePointCaretNext: a (key ${e.origin.getKey()}) and b (key ${t.origin.getKey()}) do not have a common ancestor`),n.type){case"same":{const n="text"===e.type,r="text"===t.type;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return Ca(n)}}function Ca(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,s=n;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return null===i?1:-1}function Ea(e,t){return t.is(e)}function Ta(e){return Xo(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Aa(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=Ta(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=Ta(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(Ea(e,r)||W("$originComparison: ancestor logic error"),{commonAncestor:r,type:"ancestor"}):null===o?(Ea(t,r)||W("$originComparison: descendant logic error"),{commonAncestor:r,type:"descendant"}):((Xo(i)||Ea(e,i))&&(Xo(o)||Ea(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||W("$originComparison: branch logic error"),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function La(e,t){const{type:n,key:r,offset:o}=e,i=function(e){const t=Hi(e);return null===t&&W(`Expected node with key ${e} to exist but it's not in the nodeMap.`),t}(e.key);return"text"===n?(Ir(i)||W(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from TextNode encountered for text point`),pa(i,t,o)):(Xo(i)||W(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from ElementNode encountered for element point`),function(e,t,n){let r=ma(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return Fa(r,n)}(i,e.offset,t))}function Ma(e,t){const{origin:n,direction:r}=t,o="next"===r;sa(t)?e.set(n.getKey(),t.offset,"text"):aa(t)?Ir(n)?e.set(n.getKey(),ha(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(la(t)&&Xo(n)||W("$setPointFromCaret: exhaustiveness check"),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function Ra(e){const t=co(),n=Ur(t)?t:io();return Na(n,e),qi(n),n}function Na(e,t){Ma(e.anchor,t.anchor),Ma(e.focus,t.focus)}function Oa(e){const{anchor:t,focus:n}=e,r=La(t,"next"),o=La(n,"next"),i=ka(r,o)<=0?"next":"previous";return wa(Fa(r,i),Fa(o,i))}function Pa(e){const{direction:t,origin:n}=e,r=fa(n,na(t)).getNodeAtCaret();return r?fa(r,t):ma(n.getParentOrThrow(),t)}function Ia(e,t="root"){const n=[e];for(let r=la(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(Pa(r));return n}function za(e){return!!e&&e.origin.isAttached()}function ja(e){const t=function(e){let t=e;for(;la(t);){const e=va(t);if(!la(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(Ir(t.origin))return sa(t)?t:pa(t.origin,n,n);const r=t.getAdjacentCaret();return aa(r)&&Ir(r.origin)?pa(r.origin,n,na(n)):t}function Da(e){return sa(e)&&e.offset!==ha(e.origin,e.direction)}function Fa(e,t){return e.direction===t?e:e.getFlipped()}function Ba(e,t){return e.direction===t?e:wa(Fa(e.focus,t),Fa(e.anchor,t))}function $a(e){const{origin:t,offset:n,direction:r}=e;if(n===ha(t,r))return e.getSiblingCaret();if(n===ha(t,na(r)))return Pa(e.getSiblingCaret());const[o]=t.splitText(n);return Ir(o)||W("$splitTextPointCaret: splitText must return at least one TextNode"),Fa(fa(o,"next"),r)}function Ha(e,t){return!0}function Wa(e,{$copyElementNode:t=Es,$splitTextPointCaretNext:n=$a,rootMode:r="shadowRoot",$shouldSplit:o=Ha}={}){if(sa(e))return n(e);const i=e.getParentCaret(r);if(i){const{origin:n}=i;if(la(e)&&(!n.canBeEmpty()||!o(n,"first")))return Pa(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 Ka(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function Ua(...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 Ga(e,...t){const n=Ua(...t);n.length>0&&e.classList.add(...n)}function Ya(e,...t){const n=Ua(...t);n.length>0&&e.classList.remove(...n)}function Va(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function Ja(e){throw new Error(e)}const qa=new Map;function Xa(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 Qa(e){let t=qa.get(e);return void 0===t&&(t=Xa(e),qa.set(e,t)),Object.freeze(t),t}function Za(e){const t=Fs().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function el(e){return Za(ni(e)?e:e.getParentOrThrow())}function tl(e){const t=el(e);return null!==t&&"rtl"===t.direction}function nl(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Ri(t)&&null!==r){const[o,i]=r,s=e.isBackward(),a=o.getNode(),l=i.getNode(),c=t.is(a),u=t.is(l);if(c||u){const[r,o]=Jr(e),i=a.is(l),c=t.is(s?l:a),u=t.is(s?a:l);let d,f=0;if(i)f=r>o?o:r,d=r>o?r:o;else if(c){f=s?o:r,d=void 0}else if(u){f=0,d=s?r:o}const p=t.__text.slice(f,d);p!==t.__text&&("clone"===n&&(t=Ks(t)),t.__text=p)}}return t}function rl(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return Xo(t)||Ja("isAtNodeEnd: node must be a TextNode or ElementNode"),e.offset===t.getChildrenSize()}function ol(e){const t=e.getStyle(),n=Xa(t);qa.set(t,n)}function il(e,t){(Ur(e)?e.isCollapsed():Ir(e)||Xo(e))||Ja("$patchStyle must only be called with a TextNode, ElementNode, or collapsed RangeSelection");const n=Qa(Ur(e)?e.style:Ir(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);Ur(e)||Ir(e)?e.setStyle(o):e.setTextStyle(o),qa.set(o,r)}function sl(e,t){if(Ur(e)&&e.isCollapsed()){il(e,t);const n=e.anchor.getNode();Xo(n)&&n.isEmpty()&&il(n,t)}!function(e){const t=co();if(!t)return;const n=new Map,r=e=>n.get(e.getKey())||[0,e.getTextContentSize()];if(Ur(t))for(const e of Oa(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());const o=t.getNodes();for(const t of o){if(!Ir(t)||!t.canHaveFormat())continue;const[n,o]=r(t);if(o!==n)if(Ri(t)||0===n&&o===t.getTextContentSize())e(t);else{e(t.splitText(n,o)[0===n?0:1])}}Ur(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=>{il(e,t)});const n=e.getNodes();if(n.length>0){const e=new Set;for(const r of n){if(!Xo(r)||!r.canBeEmpty()||0!==r.getChildrenSize())continue;const n=r.getKey();e.has(n)||(e.add(n),il(r,t))}}}function al(e,t){const n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function ll(e){const t=cl(e);return null!==t&&"vertical-rl"===t.writingMode}function cl(e){const t=e.anchor.getNode();return Xo(t)?Za(t):el(t)}function ul(e,t){let n=ll(e)?!t:t;dl(e)&&(n=!n);const r=La(e.focus,n?"previous":"next");if(Da(r))return!1;for(const e of xa(r)){if(la(e))return!e.origin.isInline();if(!Xo(e.origin)){if(ei(e.origin))return!0;break}}return!1}function dl(e){const t=cl(e);return null!==t&&"rtl"===t.direction}function fl(e,t,n){const r=dl(e);let o;o=ll(e)||r?!n:n,function(e,t,n,r){e.modify(t?"extend":"move",n,r)}(e,t,o,"character")}function pl(e,t,n){const r=Qa(e.getStyle());return null!==r&&r[t]||n}function hl(e,t,n=""){let r=null;const o=e.getNodes(),i=e.anchor,s=e.focus,a=e.isBackward(),l=a?s.offset:i.offset,c=a?s.getNode():i.getNode();if(Ur(e)&&e.isCollapsed()&&""!==e.style){const n=Qa(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(c))&&Ir(i)){const e=pl(i,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}function gl(e){throw new Error(e)}const ml="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,vl=ml&&"documentMode"in document?document.documentMode:null;function bl(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function yl(e){const t=Xs(e,e=>Xo(e)&&!e.isInline());return Xo(t)||gl(`Expected node ${e.__key} to have closest block element node.`),t}function xl(e){const t=co()||uo();let n;if(Ur(t))n=La(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=fa(r,"next"))}n=n||ma(Vi(),"previous").getFlipped().insert(ui())}const r=_l(e,n),o=va(r);return Ra(_a(la(o)?ja(o):r)),e.getLatest()}function _l(e,t,n){let r=Fa(t,"next");for(let e=r;e;e=Wa(e,n))r=e;return sa(r)&&gl("$insertNodeToNearestRootAtCaret: An unattached TextNode can not be split"),r.insert(e.isInline()?ui().append(e):e),Fa(fa(e.getLatest(),"next"),t.direction)}function wl(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function Sl(e){const t=co();if(!Ur(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 s=Xs(o,e=>Xo(e)&&!e.isInline());if(null===s)continue;const a=s.getKey();s.canIndent()&&!n.has(a)&&(n.add(a),e(s))}return n.size>0}ml&&"InputEvent"in window&&!vl&&new window.InputEvent("input");const kl=Symbol.for("preact-signals");function Cl(){if(Ll>1)return void Ll--;let e,t=!1;for(;void 0!==Tl;){let n=Tl;for(Tl=void 0,Ml++;void 0!==n;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Il(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Ml=0,Ll--,t)throw e}let El,Tl;function Al(e){const t=El;El=void 0;try{return e()}finally{El=t}}let Ll=0,Ml=0,Rl=0;function Nl(e){if(void 0===El)return;let t=e.n;return void 0===t||t.t!==El?(t={i:0,S:e,p:El.s,n:void 0,t:El,e:void 0,x:void 0,r:t},void 0!==El.s&&(El.s.n=t),El.s=t,e.n=t,32&El.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=El.s,t.n=void 0,El.s.n=t,El.s=t),t):void 0}function Ol(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 Pl(e,t){return new Ol(e,t)}function Il(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 zl(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 jl(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 Dl(e,t){Ol.call(this,void 0),this.x=e,this.s=void 0,this.g=Rl-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 Fl(e){const t=e.u;if(e.u=void 0,"function"==typeof t){Ll++;const n=El;El=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Bl(e),t}finally{El=n,Cl()}}}function Bl(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Fl(e)}function $l(e){if(El!==this)throw new Error("Out-of-order effect");jl(this),El=e,this.f&=-2,8&this.f&&Bl(this),Cl()}function Hl(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 Wl(e,t){const n=new Hl(e,t);try{n.c()}catch(e){throw n.d(),e}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Kl(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function Ul(e){throw new Error(e)}function Gl(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]=Gl(n[e],r[e]);return e}return t}Ol.prototype.brand=kl,Ol.prototype.h=function(){return!0},Ol.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:Al(()=>{var e;null==(e=this.W)||e.call(this)}))},Ol.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&&Al(()=>{var e;null==(e=this.Z)||e.call(this)}))}},Ol.prototype.subscribe=function(e){return Wl(()=>{const t=this.value,n=El;El=void 0;try{e(t)}finally{El=n}},{name:"sub"})},Ol.prototype.valueOf=function(){return this.value},Ol.prototype.toString=function(){return this.value+""},Ol.prototype.toJSON=function(){return this.value},Ol.prototype.peek=function(){const e=El;El=void 0;try{return this.value}finally{El=e}},Object.defineProperty(Ol.prototype,"value",{get(){const e=Nl(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(Ml>100)throw new Error("Cycle detected");this.v=e,this.i++,Rl++,Ll++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{Cl()}}}}),Dl.prototype=new Ol,Dl.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===Rl)return!0;if(this.g=Rl,this.f|=1,this.i>0&&!Il(this))return this.f&=-2,!0;const e=El;try{zl(this),El=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 El=e,jl(this),this.f&=-2,!0},Dl.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)}Ol.prototype.S.call(this,e)},Dl.prototype.U=function(e){if(void 0!==this.t&&(Ol.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)}},Dl.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(Dl.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=Nl(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Hl.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()}},Hl.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Fl(this),zl(this),Ll++;const e=El;return El=this,$l.bind(this,e)},Hl.prototype.N=function(){2&this.f||(this.f|=2,this.o=Tl,Tl=this)},Hl.prototype.d=function(){this.f|=8,1&this.f||Bl(this)},Hl.prototype.dispose=function(){this.d()};const Yl=0,Vl=1,Jl=2,ql=3,Xl=4,Ql=5,Zl=6,ec=7;function tc(e){return e.id===Yl}function nc(e){return e.id===Jl}function rc(e){return function(e){return e.id===Vl}(e)||Ul(`LexicalBuilder: Can not apply a permanent mark from state id ${String(e.id)} (expected ${String(Vl)} temporary)`),Object.assign(e,{id:Jl})}const oc=new Set;class ic{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:Yl}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):Ka;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;nc(t)||Ul(`ExtensionRep: Can not configure from state id ${String(t.id)}`);const n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},o=function(e,t,n){return Object.assign(e,{config:t,id:ql,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:Xl,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;t.id!==Xl&&Ul(`ExtensionRep: register called in state id ${String(t.id)} (expected ${String(Ql)} initialized)`),this.extension.build&&(n=this.extension.build(e,t.config,t.registerState));const r={...t.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(e,t,n){return Object.assign(e,{id:Ql,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;n.id!==Ql&&Ul(`ExtensionRep: register called in state id ${String(n.id)} (expected ${String(Ql)} built)`);const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:Zl})}(n),()=>{const e=this.state;e.id!==ec&&Ul(`ExtensionRep: rollbackToBuiltState called in state id ${String(n.id)} (expected ${String(ec)} afterRegistration)`),this.state=function(e){return Object.assign(e,{id:Ql})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return t.id!==Zl&&Ul(`ExtensionRep: afterRegistration called in state id ${String(t.id)} (expected ${String(Zl)} registered)`),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:ec})}(t),n}getSignal(){return void 0===this._signal&&Ul("ExtensionRep.getSignal() called before register"),this._signal}getInitResult(){void 0===this.extension.init&&Ul(`ExtensionRep: getInitResult() called for Extension ${this.extension.name} that does not define init`);const e=this.state;return function(e){return e.id>=Xl}(e)||Ul(`ExtensionRep: getInitResult() called for ExtensionRep in state id ${String(e.id)} < ${String(Xl)} (initialized)`),e.initResult}getInitPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){const e=this.state;return function(e){return e.id>=ql}(e)||Ul(`ExtensionRep: getExtensionInitDependency called in state id ${String(e.id)} (expected >= ${String(ql)} configured)`),{config:e.config}}getPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Ul(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Ul(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=ec}(e)||Ul(`ExtensionRep getState called in state id ${String(e.id)} (expected ${String(ec)} afterRegistration)`),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||oc}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>=Ql})(e)||Ul(`Extension ${this.extension.name} used as a dependency before build`),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}}const sc={tag:ar};function ac(){const e=Vi();e.isEmpty()&&e.append(ui())}const lc={config:{setOptions:sc,updateOptions:sc},init:({$initialEditorState:e=ac})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:r}=o;if(r instanceof si)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:[ti,Cr,hr,jr,li]},cc=Symbol.for("@lexical/extension/LexicalBuilder");function uc(){}function dc(e){throw e}function fc(e){return Array.isArray(e)?e:[e]}const pc="0.41.0+dev.esm";class hc{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=pc,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(e){const t=[fc(lc)];for(const n of e)t.push(fc(n));return new hc(t)}static maybeFromEditor(e){const t=e[cc];return t&&(t.PACKAGE_VERSION!==pc&&Ul(`LexicalBuilder.fromEditor: The given editor was created with LexicalBuilder ${t.PACKAGE_VERSION} but this version is ${pc}. A project should have exactly one copy of LexicalBuilder`),t instanceof hc||Ul("LexicalBuilder.fromEditor: There are multiple copies of the same version of LexicalBuilder in your project, and this editor was created with another one. Your project, or one of its dependencies, has its package.json and/or bundler configured incorrectly.")),t}static fromEditor(e){const t=hc.maybeFromEditor(e);return void 0===t&&Ul("LexicalBuilder.fromEditor: The given editor was not created with LexicalBuilder"),t}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(gi({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[cc]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=uc;function t(){try{e()}finally{e=uc}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=Va(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&&Ul(`LexicalBuilder: A registered extension with name ${e.name} exists but does not match the given extension`),t}addEdge(e,t,n){const r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));const o=this.incomingEdges.get(t);o?o.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&Ul("LexicalBuilder: addExtension called after finalization");const t=fc(e),[n]=t;"string"!=typeof n.name&&Ul("LexicalBuilder: extension name must be string, not "+typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&Ul(`LexicalBuilder: Multiple extensions registered with name ${n.name}, names must be unique`),!r){r=new ic(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&Ul(`LexicalBuilder: extension ${n.name} conflicts with ${e}`);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&Ul(`LexicalBuilder: extension ${n.name} conflicts with ${e}`),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=fc(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(nc(o))return;const i=n.extension.name;var s;tc(o)||Ul(`LexicalBuilder: Circular dependency detected for Extension ${i} from ${r||"[unknown]"}`),tc(s=o)||Ul(`LexicalBuilder: Can not apply a temporary mark from state id ${String(s.id)} (expected ${String(Yl)} unmarked)`),o=Object.assign(s,{id:Vl}),n.state=o;const a=this.outgoingConfigEdges.get(i);if(a)for(const e of a.keys()){const n=this.extensionNameMap.get(e);n&&t(n,i)}o=rc(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())tc(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&&Ul(`LexicalBuilder: Expecting existing ExtensionRep for ${e.name}`);for(const e of t)n.configs.add(e)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){const t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],o=n.signal;for(const n of t){const t=n.register(e,o);t&&r.push(t)}for(const n of t){const t=n.afterRegistration(e);t&&r.push(t)}return Va(...r)}buildCreateEditorArgs(){const e={},t=new Set,n=new Map,r=new Map,o={},i={},s=this.sortedExtensionReps();for(const a of s){const{extension:s}=a;if(void 0!==s.onError&&(e.onError=s.onError),void 0!==s.disableEvents&&(e.disableEvents=s.disableEvents),void 0!==s.parentEditor&&(e.parentEditor=s.parentEditor),void 0!==s.editable&&(e.editable=s.editable),void 0!==s.namespace&&(e.namespace=s.namespace),void 0!==s.$initialEditorState&&(e.$initialEditorState=s.$initialEditorState),s.nodes)for(const e of Kl(s)){if("function"!=typeof e){const t=n.get(e.replace);t&&Ul(`LexicalBuilder: Extension ${s.name} can not register replacement for node ${e.replace.name} because ${t.extension.name} already did`),n.set(e.replace,a)}t.add(e)}if(s.html){if(s.html.export)for(const[e,t]of s.html.export.entries())r.set(e,t);s.html.import&&Object.assign(o,s.html.import)}s.theme&&Gl(i,s.theme)}Object.keys(i).length>0&&(e.theme=i),t.size&&(e.nodes=[...t]);const a=Object.keys(o).length>0,l=r.size>0;(a||l)&&(e.html={},a&&(e.html.import=o),l&&(e.html.export=r));for(const t of s)t.init(e);return e.onError||(e.onError=dc),e}}function gc(e){return e.canBeEmpty()}function mc(e,t,n=gc){return Va(e.registerCommand(tn,t=>{const n=co();if(!Ur(n))return!1;t.preventDefault();const r=function(e){const t=e.getNodes().filter(e=>ro(e)&&e.canIndent());if(t.length>0)return!0;const n=e.anchor,r=e.focus,o=r.isBefore(n)?r:n,i=yl(o.getNode());if(i.canIndent()){const e=i.getKey();let t=io();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),t=He(t),t.anchor.is(o))return!0}return!1}(n)?t.shiftKey?on:rn:nn;return e.dispatchCommand(r,void 0)},fi),e.registerCommand(rn,()=>{const e="number"==typeof t?t:t?t.peek():null;if(!Ur(co()))return!1;const r="function"==typeof n?n:n.peek();return Sl(t=>{if(r(t)){const n=t.getIndent()+1;(!e||n<e)&&t.setIndent(n)}})},4))}const vc=new Set(["http:","https:","mailto:","sms:","tel:"]);class bc extends qo{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new bc(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",t={},n){super(n);const{target:r=null,rel:o=null,title:i=null}=t;this.__url=e,this.__target=r,this.__rel=o,this.__title=i}createDOM(e){const t=document.createElement("a");return this.updateLinkDOM(null,t,e),Ga(t,e.theme.link),t}updateLinkDOM(e,t,n){if(Ns(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:wc,priority:1})}}static importJSON(e){return Sc().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=Nc(e);try{const t=new URL(Nc(e));if(!vc.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=Sc(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(!Ur(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 yc(e){const t=La(e,"next");return[t,t.getFlipped()]}function xc(e,t){for(const n of t)if(n.origin.isAttached()){return void Ma(e,ja(n))}}function _c(e){const t=co();let n=null,r=null;Ur(t)&&(n=yc(t.anchor),r=yc(t.focus));for(const t of ma(e,"next")){const n=t.origin;if(Xo(n)&&!n.isInline()){const r=n.getChildren();if(r.length>0){const t=Es(e);t.append(...r),n.append(t)}_l(n,Pa(t),{$shouldSplit:()=>!1})}}if(e.isEmpty()){const t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}Ur(t)&&(xc(t.anchor,n),xc(t.focus,r),He(t))}function wc(e){let t=null;if(Ns(e)){const n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=Sc(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Sc(e="",t){return Ts(new bc(e,t))}function kc(e){return e instanceof bc}class Cc extends bc{__isUnlinked;constructor(e="",t={},n){super(e,t,n),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new Cc(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return Ec().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=Ec(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}}function Ec(e="",t){return Ts(new Cc(e,t))}function Tc(e){return e instanceof Cc}const Ac=kt("TOGGLE_LINK_COMMAND");function Lc(e,t){if("element"===e.type){const n=e.getNode();Xo(n)||function(e){throw new Error(e)}("$getPointNode: element point is not an ElementNode");return n.getChildren()[e.offset+t]||null}return null}function Mc(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,s=co();if(null===s||!Ur(s)&&!Yr(s))return;if(Yr(s)){const e=s.getNodes();if(0===e.length)return;return void e.forEach(e=>{if(null===n){const t=Xs(e,e=>!Tc(e)&&kc(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{const t=Xs(e,e=>!Tc(e)&&kc(e));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==i&&t.setRel(i);else{const t=Sc(n,{rel:i,target:r});e.insertBefore(t),t.append(e)}}})}if(s.isCollapsed()&&null===n)for(const e of s.getNodes()){const t=Xs(e,e=>!Tc(e)&&kc(e));return void(null!==t&&(t.getChildren().forEach(e=>{t.insertBefore(e)}),t.remove()))}const a=s.extract();if(null===n){const e=new Set;return void a.forEach(t=>{const n=Xs(t,e=>!Tc(e)&&kc(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())||Xo(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 s=r.findIndex(o),a=r.findLastIndex(o),l=0===s,c=a===r.length-1;if(l)i.forEach(t=>e.insertBefore(t));else if(c)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(a+1);if(t.length>0){const n=Sc(e.getURL(),{rel:e.getRel(),target:e.getTarget(),title:e.getTitle()});i[i.length-1].insertAfter(n),t.forEach(e=>n.append(e))}}}(n,a),e.add(t)}})}const l=new Set,c=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===a.length){const e=a[0],t=Xs(e,kc);if(null!==t)return c(t)}!function(e){const t=co();if(!Ur(t))return e();const n=He(t),r=n.isBackward(),o=Lc(n.anchor,r?-1:0),i=Lc(n.focus,r?0:-1),s=e();if(o||i){const e=co();if(Ur(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")}qi(He(t))}}}(()=>{let e=null;for(const t of a){if(!t.isAttached())continue;const s=Xs(t,kc);if(s){c(s);continue}if(Xo(t)){if(!t.isInline())continue;if(kc(t)){if(!(Tc(t)||null!==e&&e.getParentOrThrow().isParentOf(t))){c(t),e=t;continue}for(const e of t.getChildren())t.insertBefore(e);t.remove();continue}}const a=t.getPreviousSibling();kc(a)&&a.is(e)?a.append(t):(e=Sc(n,{rel:i,target:r,title:o}),t.insertAfter(e),e.append(t))}})}const Rc=/^\+?[0-9\s()-]{5,}$/;function Nc(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:Rc.test(e)?`tel:${e}`:`https://${e}`}function Oc(e,t){for(let n=0;n<t.length;n++){const r=t[n](e);if(r)return r}return null}const Pc=/[.,;\s]/;function Ic(e){return Pc.test(e)}function zc(e){return Ic(e[e.length-1])}function jc(e){return Ic(e[0])}function Dc(e){let t=e.getPreviousSibling();return Xo(t)&&(t=t.getLastDescendant()),null===t||vr(t)||Ir(t)&&zc(t.getTextContent())}function Fc(e){let t=e.getNextSibling();return Xo(t)&&(t=t.getFirstDescendant()),null===t||vr(t)||Ir(t)&&jc(t.getTextContent())}function Bc(e,t,n,r){if(!(e>0?Ic(n[e-1]):Dc(r[0])))return!1;return t<n.length?Ic(n[t]):Fc(r[r.length-1])}function $c(e,t,n){const r=[],o=[],i=[];let s=0,a=0;const l=[...e];for(;l.length>0;){const e=l[0],c=e.getTextContent().length,u=a;a+c<=t?(r.push(e),s+=c):u>=n?i.push(e):o.push(e),a+=c,l.shift()}return[s,r,o,i]}function Hc(e,t,n,r){const o=Ec(r.url,r.attributes);if(1===e.length){let i,s=e[0];0===t?[i,s]=s.splitText(n):[,i,s]=s.splitText(t,n);const a=Pr(r.text);return a.setFormat(i.getFormat()),a.setDetail(i.getDetail()),a.setStyle(i.getStyle()),o.append(a),i.replace(o),s}if(e.length>1){const r=e[0];let i,s=r.getTextContent().length;0===t?i=r:[,i]=r.splitText(t);const a=[];let l;for(let t=1;t<e.length;t++){const r=e[t],o=r.getTextContent().length,i=s;if(i<n)if(s+o<=n)a.push(r);else{const[e,t]=r.splitText(n-i);a.push(e),l=t}s+=o}const c=co(),u=c?c.getNodes().find(Ir):void 0,d=Pr(i.getTextContent());return d.setFormat(i.getFormat()),d.setDetail(i.getDetail()),d.setStyle(i.getStyle()),o.append(d,...a),u&&u===i&&(Ur(c)?d.select(c.anchor.offset,c.focus.offset):Yr(c)&&d.select(0,d.getTextContent().length)),i.replace(o),l}}function Wc(e,t,n){const r=e.getChildren(),o=r.length;for(let t=0;t<o;t++){const o=r[t];if(!Ir(o)||!o.isSimpleText())return Kc(e),void n(null,e.getURL())}const i=e.getTextContent(),s=Oc(i,t);if(null===s||s.text!==i)return Kc(e),void n(null,e.getURL());if(!Dc(e)||!Fc(e))return Kc(e),void n(null,e.getURL());const a=e.getURL();if(a!==s.url&&(e.setURL(s.url),n(s.url,a)),s.attributes){const t=e.getRel();t!==s.attributes.rel&&(e.setRel(s.attributes.rel||null),n(s.attributes.rel||null,t));const r=e.getTarget();r!==s.attributes.target&&(e.setTarget(s.attributes.target||null),n(s.attributes.target||null,r))}}function Kc(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 Uc={changeHandlers:[],excludeParents:[],matchers:[]};function Gc(e,t=Uc){const{matchers:n,changeHandlers:r,excludeParents:o}=t,i=(e,t)=>{for(const n of r)n(e,t)};return Va(e.registerNodeTransform(Cr,e=>{const t=e.getParentOrThrow(),r=e.getPreviousSibling();if(Tc(t)&&!t.getIsUnlinked())Wc(t,n,i);else if(!kc(t)&&!o.some(e=>e(t))){if(e.isSimpleText()&&(jc(e.getTextContent())||!Tc(r))){const t=function(e){const t=[e];let n=e.getNextSibling();for(;null!==n&&Ir(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(Tc(e)&&!e.getIsUnlinked())return}let r=[...e];const o=r.map(e=>e.getTextContent()).join("");let i,s=o,a=0;for(;(i=Oc(s,t))&&null!==i;){const e=i.index,t=e+i.length;if(Bc(a+e,a+t,o,r)){const[o,,l,c]=$c(r,a+e,a+t);let u=!1;for(const e of l){const t=e.getParent();if(Tc(t)&&!t.getIsUnlinked()){u=!0;break}}if(u){a+=t,s=s.substring(t);continue}const d=Hc(l,a+e-o,a+t-o,i);r=d?[d,...c]:c,n(i.url,null),a=0}else a+=t;s=s.substring(t)}}(t,n,i)}!function(e,t,n){const r=e.getParent(),o=e.getPreviousSibling(),i=e.getNextSibling(),s=e.getTextContent();if(!Tc(r)||r.getIsUnlinked()){if(Tc(o)&&!o.getIsUnlinked()&&o.is(e.getPreviousSibling())&&e.getParent()===o.getParent()){if(!jc(s))return Kc(o),void n(null,o.getURL());if(a=s,o.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(a):/^\.[a-zA-Z0-9]{1,}/.test(a)){const r=o.getTextContent()+s,i=Oc(r,t);null!==i&&i.text===r&&(o.append(e),Wc(o,t,n),n(null,o.getURL()))}}var a;!Tc(i)||i.getIsUnlinked()||zc(s)||i.is(e.getNextSibling())&&e.getParent()===i.getParent()&&(Kc(i),n(null,i.getURL()))}}(e,n,i)}}),e.registerCommand(Ac,e=>{const t=co();if(null!==e||!Ur(t))return!1;return t.extract().forEach(e=>{const t=e.getParent();Tc(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1},1))}function Yc(e){throw new Error(e)}function Vc(e){let t=1,n=e.getParent();for(;null!=n;){if(fu(n)){const e=n.getParent();if(yu(e)){t++,n=e.getParent();continue}Yc("A ListItemNode must have a ListNode for a parent.")}return t}return t}function Jc(e){let t=e.getParent();yu(t)||Yc("A ListItemNode must have a ListNode for a parent.");let n=t;for(;null!==n;)n=n.getParent(),yu(n)&&(t=n);return t}function qc(e){let t=[];const n=e.getChildren().filter(fu);for(let e=0;e<n.length;e++){const r=n[e],o=r.getFirstChild();yu(o)?t=t.concat(qc(o)):t.push(r)}return t}function Xc(e){return fu(e)&&yu(e.getFirstChild())}function Qc(e){return du().append(e)}function Zc(e,t){return fu(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function eu(e){const t=co();if(null!==t){let n=t.getNodes();if(Ur(t)){const r=t.getStartEndPoints();null===r&&Yc("insertList: anchor should be defined");const[o]=r,i=o.getNode(),s=i.getParent();if(Cs(i)){const e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{const e=ui();i.append(e),n=e.select().getNodes()}}else if(Zc(i,n)){const t=bu(e);if(Cs(s)){i.replace(t);const e=du();Xo(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(fu(i)){const e=i.getParentOrThrow();tu(t,e.getChildren()),e.replace(t)}return}}const r=new Set;for(let t=0;t<n.length;t++){const o=n[t];if(Xo(o)&&o.isEmpty()&&!fu(o)&&!r.has(o.getKey())){nu(o,e);continue}let i=zi(o)?o.getParent():fu(o)&&o.isEmpty()?o:null;for(;null!=i;){const t=i.getKey();if(yu(i)){if(!r.has(t)){const n=bu(e);tu(n,i.getChildren()),i.replace(n),r.add(t)}break}{const n=i.getParent();if(Cs(n)&&!r.has(t)){r.add(t),nu(i,e);break}i=n}}}}}function tu(e,t){e.splice(e.getChildrenSize(),0,t)}function nu(e,t){if(yu(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=du();let i;if(tu(o,e.getChildren()),yu(n)&&t===n.getListType())n.append(o),yu(r)&&t===r.getListType()&&(tu(n,r.getChildren()),r.remove()),i=n;else if(yu(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const n=bu(t);n.append(o),e.replace(n),i=n}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());const s=co();return Ur(s)&&(i.getKey()===s.anchor.key&&s.anchor.set(o.getKey(),s.anchor.offset,"element"),i.getKey()===s.focus.key&&s.focus.set(o.getKey(),s.focus.offset,"element")),e.remove(),i}function ru(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&Xc(n)&&Xc(r)&&(ru(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function ou(e){const t="check"!==e.getListType();let n=e.getStart();for(const r of e.getChildren())fu(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),yu(r.getFirstChild())||n++)}function iu(e){const t=new Set;if(Xc(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(Xc(r)&&Xc(o)){const n=o.getFirstChild();if(yu(n)){n.append(e);const o=r.getFirstChild();if(yu(o)){tu(n,o.getChildren()),r.remove(),t.add(r.getKey())}}}else if(Xc(r)){const t=r.getFirstChild();if(yu(t)){const n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(Xc(o)){const t=o.getFirstChild();yu(t)&&t.append(e)}else if(yu(n)){const t=du().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),i=bu(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 su(e){if(Xc(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(yu(n?n.getParent():void 0)&&fu(n)&&yu(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=du(),i=bu(r);o.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));const s=du(),a=bu(r);s.append(a),tu(a,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(s),n.replace(e)}}}function au(e=!1){const t=co();if(!Ur(t)||!t.isCollapsed())return!1;const n=t.anchor.getNode();let r=null;if(fu(n)&&0===n.getChildrenSize())r=n;else if(Ir(n)){const e=n.getParent();fu(e)&&e.getChildren().every(e=>Ir(e)&&""===e.getTextContent().trim())&&(r=e)}if(null===r)return!1;const o=Jc(r),i=r.getParent();yu(i)||Yc("A ListItemNode must have a ListNode for a parent.");const s=i.getParent();let a;if(Cs(s))a=ui(),o.insertAfter(a);else{if(!fu(s))return!1;a=du(),s.insertAfter(a)}a.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=bu(i.getListType(),t);if(fu(a)){const e=du();e.append(n),a.insertAfter(e)}else a.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||!fu(e)&&!yu(e))break;t=e}t.remove()}(r),!0}class lu extends qo{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;const t=e.getParent();yu(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:qo,importDOM:{li:()=>({conversion:cu,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();!yu(r)||"check"!==r.getListType()||yu(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,s=i?i.listitem:void 0;let a;i&&i.nested&&(a=i.nested.listitem);void 0!==s&&r.push(...Ua(s));if(i){const e=n.getParent(),t=yu(e)&&"check"===e.getListType(),s=n.getChecked();t&&!s||o.push(i.listitemUnchecked),t&&s||o.push(i.listitemChecked),t&&r.push(s?i.listitemChecked:i.listitemUnchecked)}if(void 0!==a){const e=Ua(a);n.getChildren().some(e=>yu(e))?r.push(...e):o.push(...e)}o.length>0&&Ya(e,...o);r.length>0&&Ga(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=Qa(t.__textStyle);for(const t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(const t in Qa(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(Xo(n)&&this.canMergeWith(n)){const e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(fu(e))return super.replace(e);this.setIndent(0);const n=this.getParentOrThrow();if(!yu(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{const t=bu(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&&(Xo(e)||Yc("includeChildren should only be true for ElementNodes"),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){const n=this.getParentOrThrow();if(yu(n)||Yc("insertAfter: list node is not parent of list item node"),fu(e))return super.insertAfter(e,t);const r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){const o=bu(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&&Xc(t)&&Xc(n)&&(ru(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){const n=du().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){const t=ui();this.getChildren().forEach(e=>t.append(e));const n=this.getParentOrThrow(),r=n.getParentOrThrow(),o=fu(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 yu(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(;fu(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&Yc("Invalid indent value."),(e=Math.floor(e))>=0||Yc("Indent value must be non-negative.");let t=this.getIndent();for(;t!==e;)t<e?(iu(this),t++):(su(this),t--);return this}canInsertAfter(e){return fu(e)}canReplaceWith(e){return fu(e)}canMergeWith(e){return fu(e)||di(e)}extractWithChild(e,t){if(!Ur(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 bu("bullet")}canMergeWhenEmpty(){return!0}}function cu(e){if(e.classList.contains("task-list-item"))for(const t of e.children)if("INPUT"===t.tagName)return uu(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 uu(t.children[0]);const t=e.getAttribute("aria-checked");return{node:du("true"===t||"false"!==t&&void 0)}}function uu(e){if(!("checkbox"===e.getAttribute("type")))return{node:null};return{node:du(e.hasAttribute("checked"))}}function du(e){return Ts(new lu(void 0,e))}function fu(e){return e instanceof lu}class pu extends qo{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){const t=e.getNextSibling();yu(t)&&e.getListType()===t.getListType()&&ru(e,t)}(e),ou(e)},extends:qo,importDOM:{ol:()=>({conversion:mu,priority:0}),ul:()=>({conversion:mu,priority:0})}})}constructor(e="number",t=1,n){super(n);const r=vu[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,hu(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(hu(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 Os(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];fu(t)||(r===n&&(r=[...n]),r[e]=du().append(!Xo(t)||yu(t)||t.isInline()?t:Pr(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return fu(e)}}function hu(e,t,n){const r=[],o=[],i=t.list;if(void 0!==i){const e=i[`${n.__tag}Depth`]||[],t=Vc(n)-1,s=t%e.length,a=e[s],l=i[n.__tag];let c;const u=i.nested,d=i.checklist;if(void 0!==u&&u.list&&(c=u.list),void 0!==l&&r.push(l),void 0!==d&&"check"===n.__listType&&r.push(d),void 0!==a){r.push(...Ua(a));for(let t=0;t<e.length;t++)t!==s&&o.push(n.__tag+t)}if(void 0!==c){const e=Ua(c);t>1?r.push(...e):o.push(...e)}}o.length>0&&Ya(e,...o),r.length>0&&Ga(e,...r)}function gu(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(fu(r)){t.push(r);const e=r.getChildren();e.length>1&&e.forEach(e=>{yu(e)&&t.push(Qc(e))})}else t.push(Qc(r))}return t}function mu(e){const t=e.nodeName.toLowerCase();let n=null;if("ol"===t){n=bu("number",e.start)}else"ul"===t&&(n=function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list")||"1"===e.getAttribute("data-is-checklist"))return!0;for(const t of e.childNodes)if(Os(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?bu("check"):bu("bullet"));return{after:gu,node:n}}const vu={ol:"number",ul:"bullet"};function bu(e="number",t=1){return Ts(new pu(e,t))}function yu(e){return e instanceof pu}const xu=kt("UPDATE_LIST_START_COMMAND"),_u=kt("INSERT_UNORDERED_LIST_COMMAND"),wu=kt("INSERT_ORDERED_LIST_COMMAND"),Su=kt("REMOVE_LIST_COMMAND");function ku(e,t){const n=Va(e.registerCommand(wu,()=>(eu("number"),!0),1),e.registerCommand(xu,e=>{const{listNodeKey:t,newStart:n}=e,r=Hi(t);return!!yu(r)&&("number"===r.getListType()&&(r.setStart(n),ou(r)),!0)},1),e.registerCommand(_u,()=>(eu("bullet"),!0),1),e.registerCommand(Su,()=>(function(){const e=co();if(Ur(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(Zc(r,n))t.add(Jc(r));else for(let e=0;e<n.length;e++){const r=n[e];if(zi(r)){const e=bl(r,lu);null!=e&&t.add(Jc(e))}}for(const n of t){let t=n;const r=qc(n);for(const n of r){const r=ui().setTextStyle(e.style).setTextFormat(e.format);tu(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&Ma(e.anchor,ja(ma(r,"next"))),n.__key===e.focus.key&&Ma(e.focus,ja(ma(r,"next"))),n.remove()}n.remove()}}}(),!0),1),e.registerCommand(Pt,()=>au(!!(t&&t.restoreNumbering)),1),e.registerNodeTransform(lu,e=>{const t=e.getFirstChild();if(t){if(Ir(t)){const n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const t=co();Ur(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(fu(t)&&e.is(t.getFirstChild())){const n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}));return n}function Cu(e){const t=e=>{const t=e.getParent();if(yu(e.getFirstChild())||!yu(t))return;const n=Xs(e,e=>fu(e)&&yu(e.getParent())&&fu(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(fu(n)){const r=n.getPreviousSibling();if(fu(r)){const n=function(e){let t=e,n=t.getFirstChild();for(;yu(n);){const e=n.getLastChild();if(!fu(e))break;t=e,n=t.getFirstChild()}return t}(r),o=n.getParent();if(yu(o)){const n=Vc(o);n+1<Vc(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(pu,e=>{const n=[e];for(;n.length>0;){const e=n.shift();if(yu(e))for(const r of e.getChildren())if(fu(r)){t(r);const e=r.getFirstChild();yu(e)&&n.push(e)}}})}const Eu=v(null);function Tu(){const e=b(Eu);return null==e&&function(e){throw new Error(e)}("LexicalComposerContext.useLexicalComposerContext: cannot find a LexicalComposerContext"),e}var Au,Lu,Mu={exports:{}},Ru={};var Nu=(Lu||(Lu=1,Mu.exports=function(){if(Au)return Ru;Au=1;var e=y,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 s(e,n,s){var a,l={},c=null,u=null;for(a in void 0!==s&&(c=""+s),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,a)&&!i.hasOwnProperty(a)&&(l[a]=n[a]);if(e&&e.defaultProps)for(a in n=e.defaultProps)void 0===l[a]&&(l[a]=n[a]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return Ru.Fragment=n,Ru.jsx=s,Ru.jsxs=s,Ru}()),Mu.exports);const Ou="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Pu=Ou?_:w,Iu={tag:ar};function zu({initialConfig:e,children:t}){const n=x(()=>{const{theme:t,namespace:n,nodes:r,onError:o,editorState:i,html:s}=e,a=function(e,t){return{getTheme:function(){return null!=t?t:null}}}(0,t),l=gi({editable:e.editable,html:s,namespace:n,nodes:r,onError:e=>o(e,l),theme:t});return function(e,t){if(null===t)return;if(void 0===t)e.update(()=>{const t=Vi();if(t.isEmpty()){const n=ui();t.append(n);const r=Ou?document.activeElement:null;(null!==co()||null!==r&&r===e.getRootElement())&&n.select()}},Iu);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,Iu);break}case"object":e.setEditorState(t,Iu);break;case"function":e.update(()=>{Vi().isEmpty()&&t(e)},Iu)}}(l,i),[l,a]},[]);return Pu(()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),Nu.jsx(Eu.Provider,{value:n,children:t})}function ju(e,t,n,r,o){if(null===e||0===n.size&&0===r.size&&!o)return 0;const i=t._selection,s=e._selection;if(o)return 1;if(!(Ur(i)&&Ur(s)&&s.isCollapsed()&&i.isCollapsed()))return 0;const a=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||ni(n)||o.push(n)}return o}(t,n,r);if(0===a.length)return 0;if(a.length>1){const n=t._nodeMap,r=n.get(i.anchor.key),o=n.get(s.anchor.key);return r&&o&&!e._nodeMap.has(r.__key)&&Ir(r)&&1===r.__text.length&&1===i.anchor.offset?2:0}const l=a[0],c=e._nodeMap.get(l.__key);if(!Ir(c)||!Ir(l)||c.__mode!==l.__mode)return 0;const u=c.__text,d=l.__text;if(u===d)return 0;const f=i.anchor,p=s.anchor;if(f.key!==p.key||"text"!==f.type)return 0;const h=f.offset,g=p.offset,m=d.length-u.length;return 1===m&&g===h-1?2:-1===m&&g===h+1?3:-1===m&&g===h?4:0}function Du(e,t){let n=Date.now(),r=0,o=Date.now(),i=0,s=null;return(a,l,c,u,d,f)=>{const p=Date.now();if(f.has(fr)&&(o=n,i=r,s=a),f.has(sr))return r=0,n=p,2;f.has(pr)&&s&&(n=o,r=i,a=s);const h=ju(a,l,u,d,e.isComposing()),g=(()=>{const o=null===c||c.editor===e,i=f.has("history-push");if(!i&&o&&f.has(ar))return 0;if(1===h)return 2;if(null===a)return 1;const s=l._selection;if(!(u.size>0||d.size>0))return null!==s?0:2;const g="number"==typeof t?t:t.peek();if(!1===i&&0!==h&&h===r&&p<n+g&&o)return 0;if(1===u.size){if(function(e,t,n){const r=t._nodeMap.get(e),o=n._nodeMap.get(e),i=t._selection,s=n._selection;return!(Ur(i)&&Ur(s)&&"element"===i.anchor.type&&"element"===i.focus.type&&"text"===s.anchor.type&&"text"===s.focus.type||!Ir(r)||!Ir(o)||r.__parent!==o.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>o.exportJSON()))}(Array.from(u)[0],a,l))return 0}return 1})();return n=p,r=h,g}}function Fu(e){e.undoStack=[],e.redoStack=[],e.current=null}function Bu(e,t,n){const r=Du(e,n),o=Va(e.registerCommand($t,()=>(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(mn,!0)),0===r.length&&e.dispatchCommand(vn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:sr})}}(e,t),!0),fi),e.registerCommand(Ht,()=>(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(vn,!0));const i=n.pop();0===n.length&&e.dispatchCommand(mn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:sr})}}(e,t),!0),fi),e.registerCommand(hn,()=>(Fu(t),!1),fi),e.registerCommand(gn,()=>(Fu(t),e.dispatchCommand(mn,!1),e.dispatchCommand(vn,!1),!0),fi),e.registerUpdateListener(({editorState:n,prevEditorState:o,dirtyLeaves:i,dirtyElements:s,tags:a})=>{const l=t.current,c=t.redoStack,u=t.undoStack,d=null===l?null:l.editorState;if(null!==l&&n===d)return;const f=r(o,n,l,i,s,a);if(1===f)0!==c.length&&(t.redoStack=[],e.dispatchCommand(mn,!1)),null!==l&&(u.push({...l}),e.dispatchCommand(vn,!0));else if(2===f)return;t.current={editor:e,editorState:n}}));return o}function $u({delay:e,externalHistoryState:t}){const[n]=Tu();return function(e,t,n=1e3){const r=x(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);w(()=>Bu(e,r,n),[n,e,r])}(n,t,e),null}function Hu({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}){const[n]=Tu();return w(()=>{if(!n.hasNodes([pu,lu]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),w(()=>Va(ku(n,{restoreNumbering:t}),e?Cu(n):()=>{}),[n,e,t]),function(e){w(()=>ku(e),[e])}(n),null}function Wu({maxIndent:e,$canIndent:t}){const[n]=Tu();return w(()=>mc(n,e,t),[n,e,t]),null}function Ku(e,t){const n=Oi(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const t of n)if(!Gu.has(t.nodeName)){const n=Yu(t,e,o,!1);null!==n&&(r=r.concat(n))}return function(e){for(const t of e)t.getNextSibling()instanceof ai&&t.insertAfter(mr());for(const t of e){const e=t.getChildren();for(const n of e)t.insertBefore(n);t.remove()}}(o),r}function Uu(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=Xo(t)&&t.excludeFromCopy("html");let s=t;null!==r&&Ir(t)&&(s=nl(r,t,"clone"));const a=Xo(s)?s.getChildren():[],l=wi(e,s.getType());let c;c=l&&void 0!==l.exportDOM?l.exportDOM(e,s):s.exportDOM(e);const{element:u,after:d}=c;if(!u)return!1;const f=document.createDocumentFragment();for(let n=0;n<a.length;n++){const i=a[n],s=Uu(e,i,f,r);!o&&Xo(t)&&s&&t.extractWithChild(i,r,"html")&&(o=!0)}if(o&&!i){if((Os(u)||Is(u))&&u.append(f),n.append(u),d){const e=d.call(s,u);e&&(Is(u)?u.replaceChildren(e):u.replaceWith(e))}}else n.append(f);return o}const Gu=new Set(["STYLE","SCRIPT"]);function Yu(e,t,n,r,o=new Map,i){let s=[];if(Gu.has(e.nodeName))return s;let a=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),c=l?l(e):null;let u=null;if(null!==c){u=c.after;const t=c.node;if(a=Array.isArray(t)?t[t.length-1]:t,null!==a){for(const[,e]of o)if(a=e(a,i),!a)break;a&&s.push(...Array.isArray(t)?t:[a])}null!=c.forChild&&o.set(e.nodeName,c.forChild)}const d=e.childNodes;let f=[];const p=(null==a||!Cs(a))&&(null!=a&&ro(a)||r);for(let e=0;e<d.length;e++)f.push(...Yu(d[e],t,n,p,new Map(o),a));return null!=u&&(f=u(f)),js(e)&&(f=Vu(e,f,p?()=>{const e=new ai;return n.push(e),e}:ui)),null==a?f.length>0?s=s.concat(f):js(e)&&function(e){if(null==e.nextSibling||null==e.previousSibling)return!1;return zs(e.nextSibling)&&zs(e.previousSibling)}(e)&&(s=s.concat(mr())):Xo(a)&&a.append(...f),s}function Vu(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const s=t[e];if(ro(s))r&&!s.getFormat()&&s.setFormat(r),o.push(s);else if(i.push(s),e===t.length-1||e<t.length-1&&ro(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}function Ju(e){throw new Error(e)}function qu(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes)){const r=function(e){const t=[];for(let n=0;n<e.length;n++){const r=Fo(e[n]);Ir(r)&&ol(r),t.push(r)}return t}(e.nodes);return Xu(n,r,t)}}catch(e){console.error(e)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{const e=(new DOMParser).parseFromString(function(e){if(window.trustedTypes&&window.trustedTypes.createPolicy){return window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e)}return e}(o),"text/html");return Xu(n,Ku(n,e),t)}catch(e){console.error(e)}const s=i||e.getData("text/uri-list");if(null!=s)if(Ur(t)){const e=s.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=co();if(Ur(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([Dr()]):n.insertText(r)}}}else t.insertRawText(s)}function Xu(e,t,n){e.dispatchCommand(Et,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Ur(e)&&e.isCollapsed()){let t=null;const n=La(e.anchor,"previous");if(n)if(sa(n))t=n.origin;else{const e=wa(n,ma(Vi(),"next").getFlipped());for(const n of e){if(Ir(n.origin)){t=n.origin;break}if(Xo(n.origin)&&!n.origin.isInline())break}}if(t&&Ir(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 Qu(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=Xo(n)&&n.excludeFromCopy("html");let s=n;null!==t&&Ir(s)&&(s=nl(t,s,"clone"));const a=Xo(s)?s.getChildren():[],l=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&Ju(`LexicalNode: Node ${n.name} does not implement .exportJSON().`),Xo(e)){const e=t.children;Array.isArray(e)||Ju(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`)}return t}(s);Ir(s)&&0===s.getTextContentSize()&&(o=!1);for(let r=0;r<a.length;r++){const i=a[r],s=Qu(e,t,i,l.children);!o&&Xo(n)&&s&&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 Zu=null;async function ed(e,t,n){if(null!==Zu)return!1;if(null!==t)return new Promise((r,o)=>{e.update(()=>{r(td(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,s=Rs(o);if(null===r||null===s)return!1;const a=i.createElement("span");a.style.cssText="position: fixed; top: -1000px;",a.append(i.createTextNode("#")),r.append(a);const l=new Range;return l.setStart(a,0),l.setEnd(a,1),s.removeAllRanges(),s.addRange(l),new Promise((t,r)=>{const s=e.registerCommand(dn,r=>(wl(r,ClipboardEvent)&&(s(),null!==Zu&&(o.clearTimeout(Zu),Zu=null),t(td(e,r,n))),!0),4);Zu=o.setTimeout(()=>{s(),Zu=null,t(!1)},50),i.execCommand("copy"),a.remove()})}function td(e,t,n){if(void 0===n){const t=Rs(e._window),r=co();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!Ei(e,o,i))return!1;n=rd(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(function(e,t){for(const[n]of nd)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 nd=[["text/html",function(e,t=co()){return null==t&&Ju("Expected valid LexicalSelection"),Ur(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=Vi().getChildren();for(let o=0;o<r.length;o++)Uu(e,r[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=co()){return null==t&&Ju("Expected valid LexicalSelection"),Ur(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=Vi().getChildren();for(let o=0;o<r.length;o++){Qu(e,t,r[o],n)}return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function rd(e=co()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=Fs();for(const[r,o]of nd){const i=o(n,e);null!==i&&(t[r]=i)}}return t}function od(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 id="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,sd=id&&"documentMode"in document?document.documentMode:null,ad=id&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ld=!(!id||!("InputEvent"in window)||sd)&&"getTargetRanges"in new window.InputEvent("input"),cd=id&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ud=id&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,dd=id&&/^(?=.*Chrome).*/i.test(navigator.userAgent),fd=id&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&ad&&!dd,pd=kt("DRAG_DROP_PASTE_FILE");class hd extends qo{static getType(){return"quote"}static clone(e){return new hd(e.__key)}createDOM(e){const t=document.createElement("blockquote");return Ga(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:xd,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Os(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 gd().updateFromJSON(e)}insertNewAfter(e,t){const n=ui(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=ui();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function gd(){return Ts(new hd)}function md(e){return e instanceof hd}class vd extends qo{__tag;static getType(){return"heading"}static clone(e){return new vd(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){const t=this.getWritable();return this.__tag=e,t}createDOM(e){const t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){Ga(n,r[t])}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:yd,priority:0}),h2:e=>({conversion:yd,priority:0}),h3:e=>({conversion:yd,priority:0}),h4:e=>({conversion:yd,priority:0}),h5:e=>({conversion:yd,priority:0}),h6:e=>({conversion:yd,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&bd(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>bd(e)?{conversion:e=>({node:_d("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Os(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 _d(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?ui():_d(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=ui();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?ui():_d(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function bd(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function yd(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=_d(t),null!==e.style&&(Us(e,n),n.setFormat(e.style.textAlign))),{node:n}}function xd(e){const t=gd();return null!==e.style&&(t.setFormat(e.style.textAlign),Us(e,t)),{node:t}}function _d(e="h1"){return Ts(new vd(e))}function wd(e){return e instanceof vd}function Sd(e){let t=null;if(wl(e,DragEvent)?t=e.dataTransfer:wl(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 kd(e){return ei(Ui(e))}function Cd(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Ed(e){const t=Va(e.registerCommand(Tt,e=>{const t=co();return!!Yr(t)&&(t.clear(),!0)},fi),e.registerCommand(Nt,e=>{const t=co();return Ur(t)?(t.deleteCharacter(e),!0):!!Yr(t)&&(t.deleteNodes(),!0)},fi),e.registerCommand(Dt,e=>{const t=co();return!!Ur(t)&&(t.deleteWord(e),!0)},fi),e.registerCommand(Ft,e=>{const t=co();return!!Ur(t)&&(t.deleteLine(e),!0)},fi),e.registerCommand(It,t=>{const n=co();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)qu(r,n,e);else if(Ur(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0},fi),e.registerCommand(jt,()=>{const e=co();return!!Ur(e)&&(e.removeText(),!0)},fi),e.registerCommand(Bt,e=>{const t=co();return!!Ur(t)&&(t.formatText(e),!0)},fi),e.registerCommand(an,e=>{const t=co();if(!Ur(t)&&!Yr(t))return!1;const n=t.getNodes();for(const t of n){const n=Xs(t,e=>Xo(e)&&!e.isInline());null!==n&&n.setFormat(e)}return!0},fi),e.registerCommand(Ot,e=>{const t=co();return!!Ur(t)&&(t.insertLineBreak(e),!0)},fi),e.registerCommand(Pt,()=>{const e=co();return!!Ur(e)&&(e.insertParagraph(),!0)},fi),e.registerCommand(nn,()=>{const e=Dr(),t=co();return Ur(t)&&(e.setFormat(t.format),e.setStyle(t.style)),yo([e]),!0},fi),e.registerCommand(rn,()=>Sl(e=>{const t=e.getIndent();e.setIndent(t+1)}),fi),e.registerCommand(on,()=>Sl(e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),fi),e.registerCommand(Vt,e=>{const t=co();if(Yr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(Ur(t)){const n=gs(t.focus,!0);if(!e.shiftKey&&ei(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},fi),e.registerCommand(Jt,e=>{const t=co();if(Yr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(Ur(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===Vi().getChildrenSize()}(t))return e.preventDefault(),!0;const n=gs(t.focus,!1);if(!e.shiftKey&&ei(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},fi),e.registerCommand(Gt,e=>{const t=co();if(Yr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),tl(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!Ur(t))return!1;if(ul(t,!0)){const n=e.shiftKey;return e.preventDefault(),fl(t,n,!0),!0}return!1},fi),e.registerCommand(Kt,e=>{const t=co();if(Yr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),tl(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!Ur(t))return!1;const n=e.shiftKey;return!!ul(t,!1)&&(e.preventDefault(),fl(t,n,!1),!0)},fi),e.registerCommand(Qt,t=>{if(kd(t.target))return!1;const n=co();if(Ur(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(ni(n))return!1;const r=yl(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(on,void 0);if(ud&&"ko-KR"===navigator.language)return!1}else if(!Yr(n))return!1;return t.preventDefault(),e.dispatchCommand(Nt,!0)},fi),e.registerCommand(en,t=>{if(kd(t.target))return!1;const n=co();return!(!Ur(n)&&!Yr(n))&&(t.preventDefault(),e.dispatchCommand(Nt,!1))},fi),e.registerCommand(qt,t=>{const n=co();if(!Ur(n))return!1;if(Cd(n),null!==t){if((ud||cd||fd)&&ld)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(Ot,!1)}return e.dispatchCommand(Pt,void 0)},fi),e.registerCommand(Zt,()=>!!Ur(co())&&(e.blur(),!0),fi),e.registerCommand(sn,t=>{const[,n]=Sd(t);if(n.length>0){const r=od(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=Ui(o);if(null!==i){const e=io();if(Ir(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")}qi(He(e))}e.dispatchCommand(pd,n)}return t.preventDefault(),!0}return!!Ur(co())},fi),e.registerCommand(ln,e=>{const[t]=Sd(e),n=co();return!(t&&!Ur(n))},fi),e.registerCommand(cn,e=>{const[t]=Sd(e),n=co();if(t&&!Ur(n))return!1;const r=od(e.clientX,e.clientY);if(null!==r){ei(Ui(r.node))&&e.preventDefault()}return!0},fi),e.registerCommand(pn,()=>(function(e){const t=Vi();if(Ur(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"),He(e),e}{const e=t.select(0,t.getChildrenSize());qi(He(e))}}(),!0),fi),e.registerCommand(dn,t=>(ed(e,wl(t,ClipboardEvent)?t:null),!0),fi),e.registerCommand(fn,t=>(async function(e,t){await ed(t,wl(e,ClipboardEvent)?e:null),t.update(()=>{const e=co();Ur(e)?e.removeText():Yr(e)&&e.getNodes().forEach(e=>e.remove())})}(t,e),!0),fi),e.registerCommand(zt,t=>{const[,n,r]=Sd(t);if(n.length>0&&!r)return e.dispatchCommand(pd,n),!0;if(Ps(t.target)&&Ci(t.target))return!1;return null!==co()&&(function(e,t){e.preventDefault(),t.update(()=>{const n=co(),r=wl(e,InputEvent)||wl(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&qu(r,n,t)},{tag:"paste"})}(t,e),!0)},fi),e.registerCommand(Xt,e=>{const t=co();return Ur(t)&&Cd(t),!1},fi),e.registerCommand(tn,e=>{const t=co();return Ur(t)&&Cd(t),!1},fi));return t}function Td(e,t,n,r){w(()=>{e.hasNodes([Cc])||function(e){throw new Error(e)}("LexicalAutoLinkPlugin: AutoLinkNode not registered on editor")}),w(()=>Gc(e,{changeHandlers:n?[n]:[],excludeParents:r??[],matchers:t}),[e,t,n,r])}function Ad({matchers:e,onChange:t,excludeParents:n}){const[r]=Tu();return Td(r,e,t,n),null}const Ld="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_:w;function Md(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function Rd(){return function(e){const[t]=Tu(),n=x(()=>e(t),[t,e]),[r,o]=S(()=>n.initialValueFn()),i=k(r);return Ld(()=>{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}(Md)}const Nd={black:"#000",white:"#fff"},Od="#e57373",Pd="#ef5350",Id="#f44336",zd="#d32f2f",jd="#c62828",Dd="#f3e5f5",Fd="#ce93d8",Bd="#ba68c8",$d="#ab47bc",Hd="#9c27b0",Wd="#7b1fa2",Kd="#e3f2fd",Ud="#90caf9",Gd="#42a5f5",Yd="#1976d2",Vd="#1565c0",Jd="#4fc3f7",qd="#29b6f6",Xd="#03a9f4",Qd="#0288d1",Zd="#01579b",ef="#81c784",tf="#66bb6a",nf="#4caf50",rf="#388e3c",of="#2e7d32",sf="#1b5e20",af="#ffb74d",lf="#ffa726",cf="#ff9800",uf="#f57c00",df="#e65100",ff={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 pf(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 hf=Object.freeze({__proto__:null,default:pf}),gf="$$material";function mf(){return mf=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},mf.apply(null,arguments)}function vf(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 bf=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0!==e.speedy&&e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1],n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n,this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),yf="-ms-",xf="-moz-",_f="-webkit-",wf="comm",Sf="rule",kf="decl",Cf="@keyframes",Ef=Math.abs,Tf=String.fromCharCode,Af=Object.assign;function Lf(e){return e.trim()}function Mf(e,t,n){return e.replace(t,n)}function Rf(e,t){return e.indexOf(t)}function Nf(e,t){return 0|e.charCodeAt(t)}function Of(e,t,n){return e.slice(t,n)}function Pf(e){return e.length}function If(e){return e.length}function zf(e,t){return t.push(e),e}var jf=1,Df=1,Ff=0,Bf=0,$f=0,Hf="";function Wf(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:jf,column:Df,length:s,return:""}}function Kf(e,t){return Af(Wf("",null,null,"",null,null,0),e,{length:-e.length},t)}function Uf(){return $f=Bf>0?Nf(Hf,--Bf):0,Df--,10===$f&&(Df=1,jf--),$f}function Gf(){return $f=Bf<Ff?Nf(Hf,Bf++):0,Df++,10===$f&&(Df=1,jf++),$f}function Yf(){return Nf(Hf,Bf)}function Vf(){return Bf}function Jf(e,t){return Of(Hf,e,t)}function qf(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 Xf(e){return jf=Df=1,Ff=Pf(Hf=e),Bf=0,[]}function Qf(e){return Hf="",e}function Zf(e){return Lf(Jf(Bf-1,np(91===e?e+2:40===e?e+1:e)))}function ep(e){for(;($f=Yf())&&$f<33;)Gf();return qf(e)>2||qf($f)>3?"":" "}function tp(e,t){for(;--t&&Gf()&&!($f<48||$f>102||$f>57&&$f<65||$f>70&&$f<97););return Jf(e,Vf()+(t<6&&32==Yf()&&32==Gf()))}function np(e){for(;Gf();)switch($f){case e:return Bf;case 34:case 39:34!==e&&39!==e&&np($f);break;case 40:41===e&&np(e);break;case 92:Gf()}return Bf}function rp(e,t){for(;Gf()&&e+$f!==57&&(e+$f!==84||47!==Yf()););return"/*"+Jf(t,Bf-1)+"*"+Tf(47===e?e:Gf())}function op(e){for(;!qf(Yf());)Gf();return Jf(e,Bf)}function ip(e){return Qf(sp("",null,null,null,[""],e=Xf(e),0,[0],e))}function sp(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,p=0,h=0,g=1,m=1,v=1,b=0,y="",x=o,_=i,w=r,S=y;m;)switch(h=b,b=Gf()){case 40:if(108!=h&&58==Nf(S,d-1)){-1!=Rf(S+=Mf(Zf(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=Zf(b);break;case 9:case 10:case 13:case 32:S+=ep(h);break;case 92:S+=tp(Vf()-1,7);continue;case 47:switch(Yf()){case 42:case 47:zf(lp(rp(Gf(),Vf()),t,n),l);break;default:S+="/"}break;case 123*g:a[c++]=Pf(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(S=Mf(S,/\f/g,"")),p>0&&Pf(S)-d&&zf(p>32?cp(S+";",r,n,d-1):cp(Mf(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(zf(w=ap(S,t,n,c,u,o,a,y,x=[],_=[],d),i),123===b)if(0===u)sp(S,t,w,w,x,i,d,a,_);else switch(99===f&&110===Nf(S,3)?100:f){case 100:case 108:case 109:case 115:sp(e,w,w,r&&zf(ap(e,w,w,0,0,o,a,y,o,x=[],d),_),o,_,d,a,r?x:_);break;default:sp(S,w,w,w,[""],_,0,a,_)}}c=u=p=0,g=v=1,y=S="",d=s;break;case 58:d=1+Pf(S),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Uf())continue;switch(S+=Tf(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:a[c++]=(Pf(S)-1)*v,v=1;break;case 64:45===Yf()&&(S+=Zf(Gf())),f=Yf(),u=d=Pf(y=S+=op(Vf())),b++;break;case 45:45===h&&2==Pf(S)&&(g=0)}}return i}function ap(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,f=0===o?i:[""],p=If(f),h=0,g=0,m=0;h<r;++h)for(var v=0,b=Of(e,d+1,d=Ef(g=s[h])),y=e;v<p;++v)(y=Lf(g>0?f[v]+" "+b:Mf(b,/&\f/g,f[v])))&&(l[m++]=y);return Wf(e,t,n,0===o?Sf:a,l,c,u)}function lp(e,t,n){return Wf(e,t,n,wf,Tf($f),Of(e,2,-2),0)}function cp(e,t,n,r){return Wf(e,t,n,kf,Of(e,0,r),Of(e,r+1,-1),r)}function up(e,t){for(var n="",r=If(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function dp(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case kf:return e.return=e.return||e.value;case wf:return"";case Cf:return e.return=e.value+"{"+up(e.children,r)+"}";case Sf:e.value=e.props.join(",")}return Pf(n=up(e.children,r))?e.return=e.value+"{"+n+"}":""}function fp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pp=function(e,t,n){for(var r=0,o=0;r=o,o=Yf(),38===r&&12===o&&(t[n]=1),!qf(o);)Gf();return Jf(e,Bf)},hp=function(e,t){return Qf(function(e,t){var n=-1,r=44;do{switch(qf(r)){case 0:38===r&&12===Yf()&&(t[n]=1),e[n]+=pp(Bf-1,t,n);break;case 2:e[n]+=Zf(r);break;case 4:if(44===r){e[++n]=58===Yf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Tf(r)}}while(r=Gf());return e}(Xf(e),t))},gp=new WeakMap,mp=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)||gp.get(n))&&!r){gp.set(e,!0);for(var o=[],i=hp(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},vp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},bp=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},yp=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},xp=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},_p=function(e,t,n){yp(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),xp(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!yp(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),xp(e)))};function wp(e,t){switch(function(e,t){return 45^Nf(e,0)?(((t<<2^Nf(e,0))<<2^Nf(e,1))<<2^Nf(e,2))<<2^Nf(e,3):0}(e,t)){case 5103:return _f+"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 _f+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _f+e+xf+e+yf+e+e;case 6828:case 4268:return _f+e+yf+e+e;case 6165:return _f+e+yf+"flex-"+e+e;case 5187:return _f+e+Mf(e,/(\w+).+(:[^]+)/,_f+"box-$1$2"+yf+"flex-$1$2")+e;case 5443:return _f+e+yf+"flex-item-"+Mf(e,/flex-|-self/,"")+e;case 4675:return _f+e+yf+"flex-line-pack"+Mf(e,/align-content|flex-|-self/,"")+e;case 5548:return _f+e+yf+Mf(e,"shrink","negative")+e;case 5292:return _f+e+yf+Mf(e,"basis","preferred-size")+e;case 6060:return _f+"box-"+Mf(e,"-grow","")+_f+e+yf+Mf(e,"grow","positive")+e;case 4554:return _f+Mf(e,/([^-])(transform)/g,"$1"+_f+"$2")+e;case 6187:return Mf(Mf(Mf(e,/(zoom-|grab)/,_f+"$1"),/(image-set)/,_f+"$1"),e,"")+e;case 5495:case 3959:return Mf(e,/(image-set\([^]*)/,_f+"$1$`$1");case 4968:return Mf(Mf(e,/(.+:)(flex-)?(.*)/,_f+"box-pack:$3"+yf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_f+e+e;case 4095:case 3583:case 4068:case 2532:return Mf(e,/(.+)-inline(.+)/,_f+"$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(Pf(e)-1-t>6)switch(Nf(e,t+1)){case 109:if(45!==Nf(e,t+4))break;case 102:return Mf(e,/(.+:)(.+)-([^]+)/,"$1"+_f+"$2-$3$1"+xf+(108==Nf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Rf(e,"stretch")?wp(Mf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Nf(e,t+1))break;case 6444:switch(Nf(e,Pf(e)-3-(~Rf(e,"!important")&&10))){case 107:return Mf(e,":",":"+_f)+e;case 101:return Mf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_f+(45===Nf(e,14)?"inline-":"")+"box$3$1"+_f+"$2$3$1"+yf+"$2box$3")+e}break;case 5936:switch(Nf(e,t+11)){case 114:return _f+e+yf+Mf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _f+e+yf+Mf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _f+e+yf+Mf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _f+e+yf+e+e}return e}var Sp,kp=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case kf:e.return=wp(e.value,e.length);break;case Cf:return up([Kf(e,{value:Mf(e.value,"@","@"+_f)})],r);case Sf: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 up([Kf(e,{props:[Mf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return up([Kf(e,{props:[Mf(t,/:(plac\w+)/,":"+_f+"input-$1")]}),Kf(e,{props:[Mf(t,/:(plac\w+)/,":-moz-$1")]}),Kf(e,{props:[Mf(t,/:(plac\w+)/,yf+"input-$1")]})],r)}return""})}}],Cp=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;Sp=function(e){var t=e.match(Cp);if(t)return t[t.length-1]};var Ep,Tp,Ap,Lp,Mp=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||kp;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,s={},a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)});var l=[mp,vp];l.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:r,s=i.length-1;s>=0;s--){var a=i[s];if(a.line<t.line)break;if(a.column<t.column){if(bp(a))return;break}}o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return f.compat}}),_p);var c,u=[dp,function(e){e.root||(e.return?c.insert(e.return):e.value&&e.type!==wf&&c.insert(e.value+"{}"))}],d=function(e){var t=If(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}(l.concat(r,u));i=function(e,t,n,r){if(c=n,Sp){var o=Sp(t.styles);o&&(c={insert:function(e){n.insert(e+o)}})}!function(e){up(ip(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new bf({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return f.sheet.hydrate(a),f},Rp={exports:{}},Np={};function Op(){return Tp||(Tp=1,Rp.exports=function(){if(Ep)return Np;Ep=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,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=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 c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case a:case u:case h:case p:case s:return e;default:return f}}case n:return f}}}function x(e){return y(e)===c}return Np.AsyncMode=l,Np.ConcurrentMode=c,Np.ContextConsumer=a,Np.ContextProvider=s,Np.Element=t,Np.ForwardRef=u,Np.Fragment=r,Np.Lazy=h,Np.Memo=p,Np.Portal=n,Np.Profiler=i,Np.StrictMode=o,Np.Suspense=d,Np.isAsyncMode=function(e){return x(e)||y(e)===l},Np.isConcurrentMode=x,Np.isContextConsumer=function(e){return y(e)===a},Np.isContextProvider=function(e){return y(e)===s},Np.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Np.isForwardRef=function(e){return y(e)===u},Np.isFragment=function(e){return y(e)===r},Np.isLazy=function(e){return y(e)===h},Np.isMemo=function(e){return y(e)===p},Np.isPortal=function(e){return y(e)===n},Np.isProfiler=function(e){return y(e)===i},Np.isStrictMode=function(e){return y(e)===o},Np.isSuspense=function(e){return y(e)===d},Np.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},Np.typeOf=y,Np}()),Rp.exports}var Pp=function(){if(Lp)return Ap;Lp=1;var e=Op(),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 s=Object.defineProperty,a=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return Ap=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=a(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=c(r,v);try{s(t,v,b)}catch(e){}}}}return t},Ap}(),Ip=z(Pp);function zp(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var jp=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Dp=function(e,t,n){jp(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 Fp={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},Bp="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",$p="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Hp=/[A-Z]|^ms/g,Wp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kp=function(e){return 45===e.charCodeAt(1)},Up=function(e){return null!=e&&"boolean"!=typeof e},Gp=fp(function(e){return Kp(e)?e:e.replace(Hp,"-$&").toLowerCase()}),Yp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Wp,function(e,t,n){return nh={name:t,styles:n,next:nh},t})}return 1===Fp[e]||Kp(e)||"number"!=typeof t||0===t?t:t+"px"},Vp=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Jp=["normal","none","initial","inherit","unset"],qp=Yp,Xp=/^-ms-/,Qp=/-(.)/g,Zp={};Yp=function(e,t){if("content"===e&&("string"!=typeof t||-1===Jp.indexOf(t)&&!Vp.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=qp(e,t);return""===n||Kp(e)||-1===e.indexOf("-")||void 0!==Zp[e]||(Zp[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Xp,"ms-").replace(Qp,function(e,t){return t.toUpperCase()})+"?")),n};var eh="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function th(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(r))throw new Error(eh);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return nh={name:o.name,styles:o.styles,next:nh},o.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)nh={name:s.name,styles:s.styles,next:nh},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=th(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Up(a)&&(r+=Gp(i)+":"+Yp(i,a)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(eh);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=th(e,t,s);switch(i){case"animation":case"animationName":r+=Gp(i)+":"+l+";";break;default:"undefined"===i&&console.error($p),r+=i+"{"+l+"}"}}else for(var c=0;c<s.length;c++)Up(s[c])&&(r+=Gp(i)+":"+Yp(i,s[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=nh,l=n(e);return nh=a,th(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var c=[],u=n.replace(Wp,function(e,t,n){var r="animation"+c.length;return c.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+u+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+u+"`")}var d=n;if(null==t)return d;var f=t[d];return void 0!==f?f:d}var nh,rh=/label:\s*([^\s;{]+)\s*(;|$)/g;function oh(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="";nh=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=th(n,t,i);else{var s=i;void 0===s[0]&&console.error(Bp),o+=s[0]}for(var a=1;a<e.length;a++)if(o+=th(n,t,e[a]),r){var l=i;void 0===l[a]&&console.error(Bp),o+=l[a]}rh.lastIndex=0;for(var c,u="";null!==(c=rh.exec(o));)u+="-"+c[1];var d=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+u;return{name:d,styles:o,next:nh,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var ih=!!C.useInsertionEffect&&C.useInsertionEffect,sh=ih||function(e){return e()},ah=ih||C.useLayoutEffect,lh=C.createContext("undefined"!=typeof HTMLElement?Mp({key:"css"}):null);lh.displayName="EmotionCacheContext";var ch=lh.Provider,uh=function(e){return E(function(t,n){var r=b(lh);return e(t,r,n)})},dh=C.createContext({});dh.displayName="EmotionThemeContext";var fh={}.hasOwnProperty,ph=function(e){var t=e.split(".");return t[t.length-1]},hh=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?ph(t[1]):void 0},gh=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),mh=function(e){return e.replace(/\$/g,"-")},vh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",yh=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)fh.call(t,r)&&(n[r]=t[r]);if(n[vh]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=hh(t[n]);if(r){if(gh.has(r))break;if(/^[A-Z]/.test(r))return mh(r)}}}((new Error).stack);o&&(n[bh]=o)}return n},xh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return jp(t,n,r),sh(function(){return Dp(t,n,r)}),null},_h=uh(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[vh],i=[r],s="";"string"==typeof e.className?s=zp(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var a=oh(i,void 0,C.useContext(dh));if(-1===a.name.indexOf("-")){var l=e[bh];l&&(a=oh([a,"label:"+l+";"]))}s+=t.key+"-"+a.name;var c={};for(var u in e)fh.call(e,u)&&"css"!==u&&u!==vh&&u!==bh&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),C.createElement(C.Fragment,null,C.createElement(xh,{cache:t,serialized:a,isStringTag:"string"==typeof o}),C.createElement(o,c))});_h.displayName="EmotionCssPropInternal";var wh,Sh,kh=_h,Ch=function(e,t){var n=arguments;if(null==t||!fh.call(t,"css"))return C.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=kh,o[1]=yh(e,t);for(var i=2;i<r;i++)o[i]=n[i];return C.createElement.apply(null,o)};wh=Ch||(Ch={}),Sh||(Sh=wh.JSX||(wh.JSX={}));var Eh=!1,Th=uh(function(e,t){!Eh&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Eh=!0);var n=oh([e.styles],void 0,C.useContext(dh)),r=C.useRef();return ah(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,s=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==s&&(i=!0,s.setAttribute("data-emotion",e),o.hydrate([s])),r.current=[o,i],function(){o.flush()}},[t]),ah(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Dp(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 Ah(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return oh(t)}function Lh(){var e=Ah.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_"}}}Th.displayName="EmotionGlobal";var Mh=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var s=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))s=e(i);else for(var a in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),s="",i)i[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=i}s&&(o&&(o+=" "),o+=s)}}return o};var Rh=function(e){var t=e.cache,n=e.serializedArr;return sh(function(){for(var e=0;e<n.length;e++)Dp(t,n[e],!1)}),null},Nh=uh(function(e,t){var n=!1,r=[],o=function(){if(n)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var s=oh(o,t.registered);return r.push(s),jp(t,s,!1),t.key+"-"+s.name},i={css:o,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],o=zp(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,Mh(r))},theme:C.useContext(dh)},s=e.children(i);return n=!0,C.createElement(C.Fragment,null,C.createElement(Rh,{cache:t,serializedArr:r}),s)});Nh.displayName="EmotionClassNames";var Oh="undefined"!=typeof document,Ph="undefined"!=typeof jest||"undefined"!=typeof vi;if(Oh&&!Ph){var Ih="undefined"!=typeof globalThis?globalThis:Oh?window:global,zh="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";Ih[zh]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Ih[zh]=!0}var jh=/^((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)-.*))$/,Dh=fp(function(e){return jh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Fh=function(e){return"theme"!==e},Bh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Dh:Fh},$h=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},Hh="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Wh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return jp(t,n,r),sh(function(){return Dp(t,n,r)}),null},Kh=function e(t,n){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var a=$h(t,n,i),l=a||Bh(s),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];void 0===f[0]&&console.error(Hh),d.push(f[0]);for(var p=u.length,h=1;h<p;h++)void 0===f[h]&&console.error(Hh),d.push(u[h],f[h])}var g=uh(function(e,t,n){var r=c&&e.as||s,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=C.useContext(dh)}"string"==typeof e.className?i=zp(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=oh(d.concat(u),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var g=c&&void 0===a?Bh(r):l,m={};for(var v in e)c&&"as"===v||g(v)&&(m[v]=e[v]);return m.className=i,n&&(m.ref=n),C.createElement(C.Fragment,null,C.createElement(Wh,{cache:t,serialized:h,isStringTag:"string"==typeof r}),C.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=d,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),g.withComponent=function(t,r){return e(t,mf({},n,r,{shouldForwardProp:$h(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){Kh[e]=Kh(e)});var Uh,Gh,Yh,Vh,Jh,qh={exports:{}};function Xh(){if(Gh)return Uh;Gh=1;return Uh="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Qh(){if(Vh)return Yh;Vh=1;var e=Xh();function t(){}function n(){}return n.resetWarningCache=t,Yh=function(){function r(t,n,r,o,i,s){if(s!==e){var a=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 a.name="Invariant Violation",a}}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 Zh(){return Jh||(Jh=1,qh.exports=Qh()()),qh.exports}var eg=z(Zh());const tg=new Map;function ng(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 Nu.jsx(Th,{styles:r})}
7
+ System.register(["@nebula.js/stardust","react-dom","react"],function(e){"use strict";var t,n,r,o,i,s,a,l,c,u,d,f,p,h,g,m,v,b,y,x,_,w,k,S,C,E,T,A,L,M,R,N,O;return{setters:[function(e){t=e.useMemo,n=e.useEffect,r=e.useState,o=e.usePromise,i=e.useElement,s=e.useStaleLayout,a=e.useModel,l=e.useInteractionState,c=e.useEmitter,u=e.useTranslator,d=e.useTheme,f=e.useImperativeHandle},function(e){p=e.default,h=e,g=e.flushSync,m=e.createPortal},function(e){v=e.createContext,b=e.useContext,y=e.default,x=e.useMemo,_=e.useLayoutEffect,w=e.useEffect,k=e.useState,S=e.useRef,C=e,E=e.forwardRef,T=e.isValidElement,A=e.cloneElement,L=e.Children,M=e.useCallback,R=e.Component,N=e.createElement,O=e.Suspense}],execute:function(){e("default",function(e){const t=new R$,{flags:o}=e;return{qae:{properties:P,data:I(t)},component(){const p=i(),h=$(p),g=s(),m=a(),v=l(),b=c(),[y,x]=r(null),_=u(),[w,k]=r(void 0),S=d(),{printingStatus:C}=N$({layout:g,flags:o});n(()=>{const e=e=>{!async function(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}})}(m,e)};return b.on("onNodeDestroyed",e),()=>{b.removeListener("onNodeDestroyed",e)}},[b,m]),n(()=>{g&&void 0===w&&(k(g.text||null),x(g?.text))},[g,w]);const{edit:E}=O$({propertyPanelHandlerData:t,flags:o});n(()=>{A$({rootElement:h,layout:g,model:m,element:p,edit:E,initialData:w,emitter:b,lang:_.language(),flags:o,theme:S,interactionState:v,printingStatus:C,showMediaLibrary:e.anything?.sense?.showMediaLibrary})},[g,h,m,p,E,p,w,b,o,S,v]),n(()=>{if(g){const e=g;e.text&&e.text!==y&&(x(e.text),b.emit("reloadData",e.text))}},[g,y,b]),f(()=>({updateActiveState(e){e?t.setSelectedModelId(m?.id):m?.id===t.getSelectedModelId()&&t.setSelectedModelId(void 0)}}),[])},ext:{definition:{type:"items",component:"accordion",items:{data:L$,settings:M$}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}}}});const P={version:"1.5.0",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!0,images:[]},I=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 z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function j(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 D,F={};var B=function(){if(D)return F;D=1;var e=p;return F.createRoot=e.createRoot,F.hydrateRoot=e.hydrateRoot,F}();const $=e=>{const r=t(()=>B.createRoot(e),[e]);return n(()=>()=>{r?.unmount()},[r]),r},H=v({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 W(e){throw new Error(e)}const K="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,U=K&&"documentMode"in document?document.documentMode:null,G=K&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Y=K&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),V=!(!K||!("InputEvent"in window)||U)&&"getTargetRanges"in new window.InputEvent("input"),J=K&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),q=K&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,X=K&&/Android/.test(navigator.userAgent),Q=K&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Z=K&&X&&Q,ee=K&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&G&&!Q,te=0,ne=1,re=2,oe=1,ie=2,se=3,ae=4,le=5,ce=6,ue=J||q||ee?" ":"​",de="\n\n",fe=Y?" ":ue,pe={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},he={directionless:1,unmergeable:2},ge={center:2,end:6,justify:4,left:1,right:3,start:5},me={[ie]:"center",[ce]:"end",[ae]:"justify",[oe]:"left",[se]:"right",[le]:"start"},ve={normal:0,segmented:2,token:1},be={[te]:"normal",[re]:"segmented",[ne]:"token"},ye="$config";function xe(e,t,n,r,o,i){let s=e.getFirstChild();for(;null!==s;){const e=s.__key;s.__parent===t&&(Xo(s)&&xe(s,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),s=s.getNextSibling()}}let _e=!1,we=0;function ke(e){we=e.timeStamp}function Se(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 Ce(e,t,n){const r=Rs(Ss(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const s=e.nodeValue;null!==s&&rs(t,s,o,i,!1)}function Ee(e,t,n){if(Ur(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return Ni(t)&&n.isAttached()}function Te(e,t,n,r){for(let o=e;o&&!Gs(o);o=ys(o)){const e=Ki(o,t);if(void 0!==e){const t=Hi(e,n);if(t)return ei(t)||!Os(o)?void 0:[o,t]}else if(o===r)return[r,Ji(n)]}}function Ae(e,t,n){_e=!0;const r=performance.now()-we>100;try{Yo(e,()=>{const o=co()||function(e){return e.getEditorState().read(()=>{const e=co();return null!==e?e.clone():null})}(e),i=new Map,s=e.getRootElement(),a=e._editorState,l=e._blockCursorElement;let c=!1,u="";for(let n=0;n<t.length;n++){const d=t[n],f=d.type,p=d.target,h=Te(p,e,a,s);if(!h)continue;const[g,m]=h;if("characterData"===f)r&&Ir(m)&&Ni(p)&&Ee(o,p,m)&&Ce(p,m,e);else if("childList"===f){c=!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&&!Se(r,i,e)){if(Y){const e=(Os(r)?r.innerText:null)||r.nodeValue;e&&(u+=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];(Se(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||Se(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(c&&qi(o),Y&&ms(e)&&o.insertRawText(u))})}finally{_e=!1}}function Le(e){const t=e._observer;if(null!==t){Ae(e,t.takeRecords(),t)}}function Me(e){!function(e){0===we&&Ss(e).addEventListener("textInput",ke,!0)}(e),e._observer=new MutationObserver((t,n)=>{Ae(e,t,n)})}function Re(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}=qs(r);if(e&&e.stateConfigs)for(const r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}class Ne{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,s=void 0!==o?o:function(e,t,n){let r=n.size;if(t)for(const o in t){const t=e.get(o);t&&n.has(t)||r++}return r}(i,n,r);void 0!==o&&s!==o&&W(`NodeState: size != computedSize (${String(o)} != ${String(s)})`);for(const e of r.keys())i.has(e.key)||W(`NodeState: sharedConfigMap missing knownState key ${e.key}`);this.size=s}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 Ie(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:n}=this,r=new Map(this.knownState);return new Ne(e,t,function(e,t,n){let r;if(n)for(const[o,i]of Object.entries(n)){const n=e.get(o);n?t.has(n)||t.set(n,n.parse(i)):(r=r||{},r[o]=i)}return r}(t.sharedConfigMap,r,n),r,this.size)}updateFromKnown(e,t){const n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);const{knownState:r,unknownState:o}=this;r.has(e)||o&&n in o||(o&&(delete o[n],this.unknownState=Ie(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 Oe(e){return e.__state?e.__state.sharedNodeState:_i(Fs(),e.getType()).sharedNodeState}function Pe(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of Oe(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 Ne(t,Oe(t));return t.__state=n,n}(e).updateFromJSON(o),n}function Ie(e){if(e)for(const t in e)return e}function ze(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 je(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r)for(const[t,n]of Object.entries(r)){if(e.has(t))continue;e.add(t);if(n!==(o?o[t]:void 0))return!0}return!1}function De(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Fe(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style,l=e.__state,c=t.__state;return(null===n||n===i)&&(null===r||r===s)&&(null===o||o===a)&&(null===e.__state||l===c||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;const n=new Set;return!(e&&ze(n,e,t)||t&&ze(n,t,e)||e&&je(n,e,t)||t&&je(n,t,e))}(l,c))}function Be(e,t){const n=e.mergeWithSibling(t),r=Oo()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function $e(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&Ir(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(Fe(t,r)){r=Be(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&Ir(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Fe(r,n)){r=Be(r,n);break}break}n.remove()}}else r.remove()}function He(e){return We(e.anchor),We(e.focus),e}function We(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),Ir(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!Xo(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Ke,Ue,Ge,Ye,Ve,Je,qe,Xe,Qe,Ze,et="",tt=null,nt=null,rt=!1,ot=!1;function it(e,t){const n=qe.get(e);if(null!==t){const n=kt(e);n.parentNode===t&&t.removeChild(n)}if(Xe.has(e)||Ue._keyToDOMMap.delete(e),Xo(n)){const e=vt(n,qe);st(e,0,e.length-1,null)}void 0!==n&&fs(Ze,Ge,Ye,n,"destroyed")}function st(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&it(t,r)}}function at(e,t){e.setProperty("text-align",t)}const lt="40px";function ct(e,t){const n=Ke.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(Ue._rootElement||e).getPropertyValue("--lexical-indent-base-value")||lt;e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function ut(e,t){const n=e.style;0===t?at(n,""):1===t?at(n,"left"):2===t?at(n,"center"):3===t?at(n,"right"):4===t?at(n,"justify"):5===t?at(n,"start"):6===t&&at(n,"end")}function dt(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(ni(e))return null;const n=e.getParentOrThrow();return ni(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function ft(e,t){const n=Xe.get(e);void 0===n&&W("createNode: node does not exist in nodeMap");const r=n.createDOM(Ke,Ue);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){const r=`__lexicalKey_${t._key}`;e[r]=n})(t,n,e),r.set(e,t)}(e,r,Ue),Ir(n)?r.setAttribute("data-lexical-text","true"):ei(n)&&r.setAttribute("data-lexical-decorator","true"),Xo(n)){const e=n.__indent,t=n.__size;if(dt(r,n),0!==e&&ct(r,e),0!==t){const e=t-1;pt(vt(n,Xe),n,0,e,n.getDOMSlot(r))}const o=n.__format;0!==o&&ut(r,o),n.isInline()||gt(null,n,r)}else{const t=n.getTextContent();if(ei(n)){const t=n.decorate(Ue,Ke);null!==t&&yt(e,t),r.contentEditable="false"}et+=t}return null!==t&&t.insertChild(r),Object.freeze(n),fs(Ze,Ge,Ye,n,"created"),r}function pt(e,t,n,r,o){const i=et;et="";let s=n;for(;s<=r;++s){ft(e[s],o);const t=Xe.get(e[s]);null!==t&&Ir(t)?null===tt&&(tt=t.getFormat(),nt=t.getStyle()):Xo(t)&&s<r&&!t.isInline()&&(et+=de)}o.element.__lexicalTextContent=et,et=i+et}function ht(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return vr(e)?"line-break":ei(e)&&e.isInline()?"decorator":null}return"empty"}return null}function gt(e,t,n){const r=ht(e,qe),o=ht(t,Xe);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function mt(e,t,n){var r;tt=null,nt=null,function(e,t,n){const r=et,o=e.__size,i=t.__size;et="";const s=n.element;if(1===o&&1===i){const n=e.__first,r=t.__first;if(n===r)bt(n,s);else{const e=kt(n),t=ft(r,null);try{s.replaceChild(t,e)}catch(o){if("object"==typeof o&&null!=o){const i=`${o.toString()} Parent: ${s.tagName}, new child: {tag: ${t.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(i)}throw o}it(n,null)}const o=Xe.get(r);Ir(o)&&null===tt&&(tt=o.getFormat(),nt=o.getStyle())}else{const r=vt(e,qe),a=vt(t,Xe);if(r.length!==o&&W("$reconcileChildren: prevChildren.length !== prevChildrenSize"),a.length!==i&&W("$reconcileChildren: nextChildren.length !== nextChildrenSize"),0===o)0!==i&&pt(a,0,0,i-1,n);else if(0===i){if(0!==o){const e=null==n.after&&null==n.before&&null==n.element.__lexicalLineBreak;st(r,0,o-1,e?null:s),e&&(s.textContent="")}}else!function(e,t,n,r,o,i){const s=r-1,a=o-1;let l,c,u=i.getFirstChild(),d=0,f=0;for(;d<=s&&f<=a;){const e=t[d],r=n[f];if(e===r)u=xt(bt(r,i.element)),d++,f++;else{if(void 0===c&&(c=_t(n,f)),void 0===l)l=_t(t,d);else if(!l.has(e)){d++;continue}if(!c.has(e)){u=xt(kt(e)),it(e,i.element),d++,l.delete(e);continue}if(l.has(r)){const e=bs(Ue,r);e!==u&&i.withBefore(u).insertChild(e),u=xt(bt(r,i.element)),d++,f++}else ft(r,i.withBefore(u)),f++}const o=Xe.get(r);null!==o&&Ir(o)?null===tt&&(tt=o.getFormat(),nt=o.getStyle()):Xo(o)&&f<=a&&!o.isInline()&&(et+=de)}const p=d>s,h=f>a;if(p&&!h){const e=n[a+1],t=void 0===e?null:Ue.getElementByKey(e);pt(n,0,f,a,i.withBefore(t))}else h&&!p&&st(t,d,s,i.element)}(0,r,a,o,i,n)}s.__lexicalTextContent=et,et=r+et}(e,t,t.getDOMSlot(n)),r=t,null==tt||tt===r.__textFormat||ot||r.setTextFormat(tt),function(e){null==nt||nt===e.__textStyle||ot||e.setTextStyle(nt)}(t)}function vt(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&W("createChildrenArray: node does not exist in nodeMap"),n.push(r),r=e.__next}return n}function bt(e,t){const n=qe.get(e);let r=Xe.get(e);void 0!==n&&void 0!==r||W("reconcileNode: prevNode or nextNode does not exist in nodeMap");const o=rt||Je.has(e)||Ve.has(e),i=bs(Ue,e);if(n===r&&!o){let e;if(Xo(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return et+=e,i}if(n!==r&&o&&fs(Ze,Ge,Ye,r,"updated"),r.updateDOM(n,i,Ke)){const n=ft(e,null);return null===t&&W("reconcileNode: parentDOM is null"),t.replaceChild(n,i),it(e,null),n}if(Xo(n)){Xo(r)||W(`Node with key ${e} changed from ElementNode to !ElementNode`);const t=r.__indent;(rt||t!==n.__indent)&&ct(i,t);const s=r.__format;if((rt||s!==n.__format)&&ut(i,s),o)mt(n,r,i),ni(r)||r.isInline()||gt(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),et+=t}if((rt||r.__dir!==n.__dir)&&(dt(i,r),ni(r)&&!rt))for(const e of r.getChildren())if(Xo(e)){dt(bs(Ue,e.getKey()),e)}}else{const t=r.getTextContent();if(ei(r)){const t=r.decorate(Ue,Ke);null!==t&&yt(e,t)}et+=t}if(!ot&&ni(r)&&r.__cachedText!==et){const e=r.getWritable();e.__cachedText=et,r=e}return Object.freeze(r),i}function yt(e,t){let n=Ue._pendingDecorators;const r=Ue._decorators;if(null===n){if(r[e]===t)return;n=Gi(Ue)}n[e]=t}function xt(e){let t=e.nextSibling;return null!==t&&t===Ue._blockCursorElement&&(t=t.nextSibling),t}function _t(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function wt(e,t,n,r,o,i){et="",rt=2===r,Ue=n,Ke=n._config,Ge=n._nodes,Ye=Ue._listeners.mutation,Ve=o,Je=i,qe=e._nodeMap,Xe=t._nodeMap,ot=t._readOnly,Qe=new Map(n._keyToDOMMap);const s=new Map;return Ze=s,bt("root",null),Ue=void 0,Ge=void 0,Ve=void 0,Je=void 0,qe=void 0,Xe=void 0,Ke=void 0,Qe=void 0,Ze=void 0,s}function kt(e){const t=Qe.get(e);return void 0===t&&W(`Reconciliation: could not find DOM element for node key ${e}`),t}function St(e){return{type:e}}const Ct=St("SELECTION_CHANGE_COMMAND"),Et=St("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Tt=St("CLICK_COMMAND"),At=St("BEFORE_INPUT_COMMAND"),Lt=St("INPUT_COMMAND"),Mt=St("COMPOSITION_START_COMMAND"),Rt=St("COMPOSITION_END_COMMAND"),Nt=St("DELETE_CHARACTER_COMMAND"),Ot=St("INSERT_LINE_BREAK_COMMAND"),Pt=St("INSERT_PARAGRAPH_COMMAND"),It=St("CONTROLLED_TEXT_INSERTION_COMMAND"),zt=St("PASTE_COMMAND"),jt=St("REMOVE_TEXT_COMMAND"),Dt=St("DELETE_WORD_COMMAND"),Ft=St("DELETE_LINE_COMMAND"),Bt=St("FORMAT_TEXT_COMMAND"),$t=St("UNDO_COMMAND"),Ht=St("REDO_COMMAND"),Wt=St("KEYDOWN_COMMAND"),Kt=St("KEY_ARROW_RIGHT_COMMAND"),Ut=St("MOVE_TO_END"),Gt=St("KEY_ARROW_LEFT_COMMAND"),Yt=St("MOVE_TO_START"),Vt=St("KEY_ARROW_UP_COMMAND"),Jt=St("KEY_ARROW_DOWN_COMMAND"),qt=St("KEY_ENTER_COMMAND"),Xt=St("KEY_SPACE_COMMAND"),Qt=St("KEY_BACKSPACE_COMMAND"),Zt=St("KEY_ESCAPE_COMMAND"),en=St("KEY_DELETE_COMMAND"),tn=St("KEY_TAB_COMMAND"),nn=St("INSERT_TAB_COMMAND"),rn=St("INDENT_CONTENT_COMMAND"),on=St("OUTDENT_CONTENT_COMMAND"),sn=St("DROP_COMMAND"),an=St("FORMAT_ELEMENT_COMMAND"),ln=St("DRAGSTART_COMMAND"),cn=St("DRAGOVER_COMMAND"),un=St("DRAGEND_COMMAND"),dn=St("COPY_COMMAND"),fn=St("CUT_COMMAND"),pn=St("SELECT_ALL_COMMAND"),hn=St("CLEAR_EDITOR_COMMAND"),gn=St("CLEAR_HISTORY_COMMAND"),mn=St("CAN_REDO_COMMAND"),vn=St("CAN_UNDO_COMMAND"),bn=St("FOCUS_COMMAND"),yn=St("BLUR_COMMAND"),xn=St("KEY_MODIFIER_COMMAND"),_n=Object.freeze({}),wn=[["keydown",function(e,t){if(kn=e.timeStamp,Sn=e.key,t.isComposing())return;vs(t,Wt,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Ps(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&Yo(t,()=>{Si(n)||(Mn=!0)})}],["compositionstart",function(e,t){vs(t,Mt,e)}],["compositionend",function(e,t){Y?Nn=!0:q||!J&&!ee?vs(t,Rt,e):(On=!0,Pn=e.data)}],["input",function(e,t){e.stopPropagation(),Yo(t,()=>{t.dispatchCommand(Lt,e)},{event:e}),En=null}],["click",function(e,t){Yo(t,()=>{const n=co(),r=Rs(Ss(t)),o=uo();if(r)if(Ur(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!ni(i)&&1===Vi().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()){if(i!==n.focus.getNode()){const e=Xs(i,e=>Xo(e)&&!e.isInline());Xo(e)&&e.select(0)}}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;if(Os(n)||Ni(n)){qi(ao(o,r,t,e))}}vs(t,Tt,e)})}],["cut",_n],["copy",_n],["dragstart",_n],["dragover",_n],["dragend",_n],["paste",_n],["focus",_n],["blur",_n],["drop",_n]];V&&wn.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;if("deleteCompositionText"===n||Y&&ms(t))return;if("insertCompositionText"===n)return;vs(t,At,e)}(e,t)]);let kn=0,Sn=null,Cn=0,En=null;const Tn=new WeakMap,An=new WeakMap;let Ln=!1,Mn=!1,Rn=!1,Nn=!1,On=!1,Pn="",In=null,zn=[0,"",0,"root",0];function jn(e,t,n,r,o){const i=e.anchor,s=e.focus,a=i.getNode(),l=Oo(),c=Rs(Ss(l)),u=null!==c?c.anchorNode:null,d=i.key,f=l.getElementByKey(d),p=n.length;return d!==s.key||!Ir(a)||(!o&&(!V||Cn<r+50)||a.isDirty()&&p<2||Qi(n))&&i.offset!==s.offset&&!a.isComposing()||Ri(a)||a.isDirty()&&p>1||(o||!V)&&null!==f&&!a.isComposing()&&u!==Pi(f)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||!a.isComposing()&&(a.getFormat()!==e.format||a.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=Mi(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(Ir(t)||Xo(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,a)}function Dn(e,t){return Ni(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function Fn(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;Ln&&(Ln=!1,Dn(r,o)&&Dn(i,s)&&!In)||Yo(t,()=>{if(!n)return void qi(null);if(!Ei(t,r,i))return;let a=co();if(In&&Ur(a)&&a.isCollapsed()){const e=a.anchor,t=In.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(a=In.clone(),qi(a))}if(In=null,Ur(a)){const n=a.anchor,r=n.getNode();if(a.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(a.dirty=!0);const o=Ss(t).event,i=o?o.timeStamp:performance.now(),[s,l,c,u,d]=zn,f=Vi(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===c&&n.key===u)Bn(a,s,l);else if("text"===n.type)Ir(r)||W("Point.getNode() must return TextNode when type is text"),$n(a,r);else if("element"===n.type&&!p){Xo(r)||W("Point.getNode() must return ElementNode when type is element");const e=n.getNode();e.isEmpty()?function(e,t){const n=t.getTextFormat(),r=t.getTextStyle();Bn(e,n,r)}(a,e):Bn(a,0,"")}}else{const e=n.key,t=a.focus.key,r=a.getNodes(),i=r.length,l=a.isBackward(),c=l?s:o,u=l?o:s,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(Ir(t)&&0!==n&&!(0===e&&t.__key===d&&c===n||e===i-1&&t.__key===f&&0===u)&&(h=!0,p&=t.getFormat(),0===p))break}a.format=h?p:0}}vs(t,Ct,void 0)})}function Bn(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function $n(e,t){Bn(e,t.getFormat(),t.getStyle())}function Hn(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function Wn(e){const t=e.inputType,n=Hn(e),r=Oo(),o=co();if("deleteContentBackward"===t){if(null===o){const e=uo();if(!Ur(e))return!0;qi(e.clone())}if(Ur(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===Sn&&i<kn+30&&r.isComposing()&&t){if(Bi(null),kn=0,setTimeout(()=>{Yo(r,()=>{Bi(null)})},30),Ur(o)){const e=o.anchor.getNode();e.markDirty(),Ir(e)||W("Anchor node must be a TextNode"),$n(o,e)}}else{Bi(null),e.preventDefault();const n=o.anchor.getNode(),i=n.getTextContent(),s=n.canInsertTextAfter(),a=0===o.anchor.offset&&o.focus.offset===i.length;let l=Z&&t&&!a&&s;if(l&&o.isCollapsed()&&(l=!ei(gs(o.anchor,!0))),!l){vs(r,Nt,!0);const e=co();Z&&Ur(e)&&e.isCollapsed()&&(In=e,setTimeout(()=>In=null))}}return!0}}var i;if(!Ur(o))return!0;const s=e.data;null!==En&&ns(!1,r,En),o.dirty&&null===En||!o.isCollapsed()||ni(o.anchor.getNode())||null===n||o.applyDOMRange(n),En=null;const a=o.anchor,l=o.focus,c=a.getNode(),u=l.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===s)e.preventDefault(),vs(r,Ot,!1);else if(s===de)e.preventDefault(),vs(r,Pt,void 0);else if(null==s&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=s&&jn(o,n,s,e.timeStamp,!0)?(e.preventDefault(),vs(r,It,s)):En=s;return Cn=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":vs(r,It,e);break;case"insertFromComposition":Bi(null),vs(r,It,e);break;case"insertLineBreak":Bi(null),vs(r,Ot,!1);break;case"insertParagraph":Bi(null),Rn&&!q?(Rn=!1,vs(r,Ot,!1)):vs(r,Pt,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":vs(r,zt,e);break;case"deleteByComposition":(function(e,t){return e!==t||Xo(e)||Xo(t)||!Mi(e)||!Mi(t)})(c,u)&&vs(r,jt,e);break;case"deleteByDrag":case"deleteByCut":vs(r,jt,e);break;case"deleteContent":vs(r,Nt,!1);break;case"deleteWordBackward":vs(r,Dt,!0);break;case"deleteWordForward":vs(r,Dt,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":vs(r,Ft,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":vs(r,Ft,!1);break;case"formatStrikeThrough":vs(r,Bt,"strikethrough");break;case"formatBold":vs(r,Bt,"bold");break;case"formatItalic":vs(r,Bt,"italic");break;case"formatUnderline":vs(r,Bt,"underline");break;case"historyUndo":vs(r,$t,void 0);break;case"historyRedo":vs(r,Ht,void 0)}return!0}function Kn(e){if(Os(e.target)&&Si(e.target))return!0;const t=Oo(),n=co(),r=e.data,o=Hn(e);if(null!=r&&Ur(n)&&jn(n,o,r,e.timeStamp,!1)){Nn&&(Yn(t,r),Nn=!1);const o=n.anchor.getNode(),i=Rs(Ss(t));if(null===i)return!0;const s=n.isBackward(),a=s?n.anchor.offset:n.focus.offset,l=s?n.focus.offset:n.anchor.offset;V&&!n.isCollapsed()&&Ir(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,a)+r+o.getTextContent().slice(a+l)===ts(i.anchorNode)||vs(t,It,r);const c=r.length;Y&&c>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=c),Z&&t.isComposing()&&(kn=0,Bi(null))}else{ns(!1,t,null!==r?r:void 0),Nn&&(Yn(t,r||void 0),Nn=!1)}return function(){Mo();const e=Oo();Le(e)}(),!0}function Un(e){const t=Oo(),n=co();if(Ur(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();Bi(r.key),_s(fr),(e.timeStamp<kn+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||Ir(o)&&o.getStyle()!==n.style)&&vs(t,It,fe)}return!0}function Gn(e){return Yn(Oo(),e.data),_s(pr),!0}function Yn(e,t){const n=e._compositionKey;if(Bi(null),null!==n&&null!=t){if(""===t){const t=Hi(n),r=Pi(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&Ir(t)){const n=Rs(Ss(e));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),rs(t,r.nodeValue,o,i,!0)}return}if("\n"===t[t.length-1]){const t=co();if(Ur(t)||Yr(t)){if(Ur(t)){const e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void vs(e,qt,null)}}}ns(!0,e,t)}function Vn(e){const t=Oo();if(null==e.key)return!0;if(On){if(cs(e))return Yo(t,()=>{Yn(t,Pn)}),On=!1,Pn="",!0;On=!1,Pn=""}if(function(e){return ss(e,"ArrowRight",{shiftKey:"any"})}(e))vs(t,Kt,e);else if(function(e){return ss(e,"ArrowRight",as)}(e))vs(t,Ut,e);else if(function(e){return ss(e,"ArrowLeft",{shiftKey:"any"})}(e))vs(t,Gt,e);else if(function(e){return ss(e,"ArrowLeft",as)}(e))vs(t,Yt,e);else if(function(e){return ss(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))vs(t,Vt,e);else if(function(e){return ss(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))vs(t,Jt,e);else if(function(e){return ss(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))Rn=!0,vs(t,qt,e);else if(function(e){return" "===e.key}(e))vs(t,Xt,e);else if(function(e){return G&&ss(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),Rn=!0,vs(t,Ot,!0);else if(function(e){return ss(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))Rn=!1,vs(t,qt,e);else if(function(e){return ss(e,"Backspace",{shiftKey:"any"})||G&&ss(e,"h",{ctrlKey:!0})}(e))cs(e)?vs(t,Qt,e):(e.preventDefault(),vs(t,Nt,!0));else if(function(e){return"Escape"===e.key}(e))vs(t,Zt,e);else if(function(e){return ss(e,"Delete",{})||G&&ss(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),vs(t,Nt,!1)):vs(t,en,e);else if(function(e){return ss(e,"Backspace",ls)}(e))e.preventDefault(),vs(t,Dt,!0);else if(function(e){return ss(e,"Delete",ls)}(e))e.preventDefault(),vs(t,Dt,!1);else if(function(e){return G&&ss(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),vs(t,Ft,!0);else if(function(e){return G&&(ss(e,"Delete",{metaKey:!0})||ss(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),vs(t,Ft,!1);else if(function(e){return ss(e,"b",as)}(e))e.preventDefault(),vs(t,Bt,"bold");else if(function(e){return ss(e,"u",as)}(e))e.preventDefault(),vs(t,Bt,"underline");else if(function(e){return ss(e,"i",as)}(e))e.preventDefault(),vs(t,Bt,"italic");else if(function(e){return ss(e,"Tab",{shiftKey:"any"})}(e))vs(t,tn,e);else if(function(e){return ss(e,"z",as)}(e))e.preventDefault(),vs(t,$t,void 0);else if(function(e){if(G)return ss(e,"z",{metaKey:!0,shiftKey:!0});return ss(e,"y",{ctrlKey:!0})||ss(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),vs(t,Ht,void 0);else{const n=t._editorState._selection;null===n||Ur(n)?us(e)&&(e.preventDefault(),vs(t,pn,e)):!function(e){return ss(e,"c",as)}(e)?!function(e){return ss(e,"x",as)}(e)?us(e)&&(e.preventDefault(),vs(t,pn,e)):(e.preventDefault(),vs(t,fn,e)):(e.preventDefault(),vs(t,dn,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(xn,e),!0}function Jn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const qn=new Map;function Xn(e){const t=function(e){const t=ks(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=Ai(t.anchorNode);if(null===n)return;Mn&&(Mn=!1,Yo(n,()=>{const r=uo(),o=t.anchorNode;if(Os(o)||Ni(o)){qi(ao(r,t,n,e))}}));const r=Zi(n),o=r[r.length-1],i=o._key,s=qn.get(i),a=s||o;a!==n&&Fn(t,a,!1),Fn(t,n,!0),n!==o?qn.set(i,n):s&&qn.delete(i)}function Qn(e){e._lexicalHandled=!0}function Zn(e){return!0===e._lexicalHandled}const er=function(e){{let t=!1;return()=>{t||console.warn(e),t=!0}}}("Root element not registered");function tr(e){const t=Tn.get(e);if(void 0===t)return void er();const n=An.get(t);if(void 0===n)return void er();const r=n-1;r>=0||W("Root element count less than 0"),Tn.delete(e),An.set(t,r),0===r&&t.removeEventListener("selectionchange",Xn);const o=Li(e);Ti(o)?(!function(e){if(null!==e._parentEditor){const t=Zi(e),n=t[t.length-1]._key;qn.get(n)===e&&qn.delete(n)}else qn.delete(e._key)}(o),e.__lexicalEditor=null):o&&W("Attempted to remove event handlers from a node that does not belong to this build of Lexical");const i=Jn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}function nr(e,t,n){Mo();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=co();if(!Ur(t)||!Xo(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();ws(o,e)&&n.set(e.__key,0,"element");ws(i,e)&&r.set(e.__key,0,"element");return t}(e);let s=!1;if(Ur(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(ho(t,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),n.key===r&&(ho(n,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else Yr(i)&&t&&e.isSelected()&&e.selectPrevious();if(Ur(i)&&t&&!s){const t=e.getIndexWithinParent();Di(e),fo(i,o,t,-1)}else Di(e);n||Cs(o)||o.canBeEmpty()||!o.isEmpty()||nr(o,t),t&&i&&ni(o)&&o.isEmpty()&&o.selectEnd()}const rr=Symbol.for("ephemeral");function or(e){return e[rr]||!1}class ir{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=qs(this);return void 0===e&&W(`LexicalNode: Node ${this.name} does not implement .getType().`),e}static clone(e){W(`LexicalNode: Node ${this.name} does not implement .clone().`)}$config(){return{}}config(e,t){const n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),ji(this,e),"root"!==this.__type&&function(e,t){const n=wi(Oo(),e);void 0===n&&W(`Create node: Attempted to create node ${t.name} that was not configured to be used on the editor.`);const r=n.klass;r!==t&&W(`Create node: Type ${e} in node ${t.name} does not match registered node ${r.name} with the same type`)}(this.__type,this.constructor)}getType(){return this.__type}isInline(){W(`LexicalNode: Node ${this.constructor.name} does not implement .isInline().`)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=Hi(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||co();if(null==t)return!1;const n=t.getNodes().some(e=>e.__key===this.__key);if(Ir(this))return n;if(Ur(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(ei(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:Hi(e)}getParentOrThrow(){const e=this.getParent();return null===e&&W(`Expected node ${this.__key} to have a parent.`),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(Cs(t))return Xo(e)||e===this&&ei(e)||W("Children of root nodes must be elements or decorators"),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&W(`Expected node ${this.__key} to have a top parent element.`),e}getParents(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return null===e?null:Hi(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:Hi(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=Xo(this)?this:this.getParent(),n=Xo(e)?e:e.getParent(),r=t&&n?Aa(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=Aa(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===Ca(t):("same"!==t.type&&"ancestor"!==t.type&&W("LexicalNode.isBefore: exhaustiveness check"),!1)))}isParentOf(e){const t=Aa(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 s=Xo(o)?t?o.getFirstChild():o.getLastChild():null;if(null!==s){o=s;continue}const a=t?o.getNextSibling():o.getPreviousSibling();if(null!==a){o=a;continue}const l=o.getParentOrThrow();if(r.has(l.__key)||n.push(l),l===e)break;let c=null,u=l;do{if(null===u&&W("getNodesBetween: ancestor is null"),c=t?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),null===u)break;null!==c||r.has(u.__key)||n.push(u)}while(null===c);o=c}return t||n.reverse(),n}isDirty(){const e=Oo()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(or(this))return this;const e=Hi(this.__key);return null===e&&W("Lexical node does not exist in active editor state. Avoid using the same node references between nested closures from editorState.read/editor.update."),e}getWritable(){if(or(this))return this;Mo();const e=No(),t=Oo(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,s=co();if(null!==s&&s.setCachedNodes(null),i.has(r))return Fi(o),o;const a=Ws(o);return i.add(r),Fi(a),n.set(r,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){W("createDOM: base method not extended")}updateDOM(e,t,n){W("updateDOM: base method not extended")}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){W(`LexicalNode: Node ${this.name} does not implement .importJSON().`)}updateFromJSON(e){return Pe(this,e)}static transform(){return null}remove(e){nr(this,!0,e)}replace(e,t){Mo();let n=co();null!==n&&(n=n.clone()),As(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,s=e.getWritable(),a=this.getParentOrThrow().getWritable(),l=a.__size;Di(s);const c=r.getPreviousSibling(),u=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(nr(r,!1,!0),null===c)a.__first=i;else{c.getWritable().__next=i}if(s.__prev=d,null===u)a.__last=i;else{u.getWritable().__prev=i}if(s.__next=f,s.__parent=p,a.__size=l,t&&(Xo(this)&&Xo(s)||W("includeChildren should only be true for ElementNodes"),this.getChildren().forEach(e=>{s.append(e)})),Ur(n)){qi(n);const e=n.anchor,t=n.focus;e.key===o&&Wr(e,s),t.key===o&&Wr(t,s)}return $i()===o&&Bi(i),s}insertAfter(e,t=!0){Mo(),As(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=co();let s=!1,a=!1;if(null!==o){const t=e.getIndexWithinParent();if(Di(r),Ur(i)){const e=o.__key,n=i.anchor,r=i.focus;s="element"===n.type&&n.key===e&&n.offset===t+1,a="element"===r.type&&r.key===e&&r.offset===t+1}}const l=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(null===l)c.__last=u;else{l.getWritable().__prev=u}if(c.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Ur(i)){const e=this.getIndexWithinParent();fo(i,c,e+1);const t=c.__key;s&&i.anchor.set(t,e+2,"element"),a&&i.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){Mo(),As(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;Di(r);const i=this.getPreviousSibling(),s=this.getParentOrThrow().getWritable(),a=n.__prev,l=this.getIndexWithinParent();if(null===i)s.__first=o;else{i.getWritable().__next=o}s.__size++,n.__prev=o,r.__prev=a,r.__next=n.__key,r.__parent=n.__parent;const c=co();if(t&&Ur(c)){fo(c,this.getParentOrThrow(),l)}return e}isParentRequired(){return!1}createParentElementNode(){return ui()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Mo();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(Xo(n))return n.select();if(!Ir(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){Mo();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(Xo(n))return n.select(0,0);if(!Ir(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}const sr="historic",ar="history-merge",lr="collaboration",cr="skip-scroll-into-view",ur="skip-dom-selection",dr="skip-selection-focus",fr="composition-start",pr="composition-end";class hr extends ir{static getType(){return"linebreak"}static clone(e){return new hr(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(e){const t=e.parentElement;if(null!==t&&js(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&br(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&br(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&js(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&br(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&br(r))return!0}return!1}(e)?null:{conversion:gr,priority:0}}}static importJSON(e){return mr().updateFromJSON(e)}}function gr(e){return{node:mr()}}function mr(){return Ts(new hr)}function vr(e){return e instanceof hr}function br(e){return Ni(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function yr(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function xr(e,t){return 1&t?"strong":2&t?"em":"span"}function _r(e,t,n,r,o){const i=r.classList;let s=ds(o,"base");void 0!==s&&i.add(...s),s=ds(o,"underlineStrikethrough");let a=!1;const l=8&t&&4&t;void 0!==s&&(8&n&&4&n?(a=!0,l||i.add(...s)):l&&i.remove(...s));for(const e in pe){const r=pe[e];if(s=ds(o,e),void 0!==s)if(n&r){if(a&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...s);continue}(0===(t&r)||l&&"underline"===e||"strikethrough"===e)&&i.add(...s)}else t&r&&i.remove(...s)}}function wr(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?ue:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||Y){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 kr(e,t,n,r,o,i){wr(o,e,t);const s=i.theme.text;void 0!==s&&_r(0,0,r,e,s)}function Sr(e,t){const n=document.createElement(t);return n.appendChild(e),n}class Cr extends ir{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new Cr(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return be[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===$i()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=pe[e];return 0!==(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Ii(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=yr(0,n),o=xr(0,n),i=null===r?o:r,s=document.createElement(i);let a=s;this.hasFormat("code")&&s.setAttribute("spellcheck","false"),null!==r&&(a=document.createElement(o),s.appendChild(a));kr(a,this,0,n,this.__text,e);const l=this.__style;return""!==l&&(s.style.cssText=l),s}updateDOM(e,t,n){const r=this.__text,o=e.__format,i=this.__format,s=yr(0,o),a=yr(0,i),l=xr(0,o),c=xr(0,i);if((null===s?l:s)!==(null===a?c:a))return!0;if(s===a&&l!==c){const e=t.firstChild;null==e&&W("updateDOM: prevInnerDOM is null or undefined");const o=document.createElement(c);return kr(o,this,0,i,r,n),t.replaceChild(o,e),!1}let u=t;null!==a&&null!==s&&(u=t.firstChild,null==u&&W("updateDOM: innerDOM is null or undefined")),wr(r,u,this);const d=n.theme.text;void 0!==d&&o!==i&&_r(0,o,i,u,d);const f=e.__style,p=this.__style;return f!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:Mr,priority:0}),b:()=>({conversion:Tr,priority:0}),code:()=>({conversion:Or,priority:0}),em:()=>({conversion:Or,priority:0}),i:()=>({conversion:Or,priority:0}),mark:()=>({conversion:Or,priority:0}),s:()=>({conversion:Or,priority:0}),span:()=>({conversion:Er,priority:0}),strong:()=>({conversion:Or,priority:0}),sub:()=>({conversion:Or,priority:0}),sup:()=>({conversion:Or,priority:0}),u:()=>({conversion:Or,priority:0})}}static importJSON(e){return Pr().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 Os(t)||W("Expected TextNode createDOM to always return a HTMLElement"),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=Sr(t,"b")),this.hasFormat("italic")&&(t=Sr(t,"i")),this.hasFormat("strikethrough")&&(t=Sr(t,"s")),this.hasFormat("underline")&&(t=Sr(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?pe[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?he[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=Ii(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=ve[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){Mo();let n=e,r=t;const o=co(),i=this.getTextContent(),s=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(!Ur(o))return oo(s,n,s,r,"text","text");{const e=$i();e!==o.anchor.key&&e!==o.focus.key||Bi(s),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,s=n.length;let a=e;a<0&&(a=s+a,a<0&&(a=0));const l=co();if(r&&Ur(l)){const t=e+s;l.setTextNodeRange(o,t,o,t)}const c=i.slice(0,a)+n+i.slice(a+t);return o.__text=c,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Mo();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=$i(),i=n.length;e.sort((e,t)=>e-t),e.push(i);const s=[],a=e.length;for(let t=0,r=0;t<i&&r<=a;r++){const o=e[r];o>t&&(s.push(n.slice(t,o)),t=o)}const l=s.length;if(1===l)return[t];const c=s[0],u=t.getParent();let d;const f=t.getFormat(),p=t.getStyle(),h=t.__detail;let g=!1,m=null,v=null;const b=co();if(Ur(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=Pr(c),d.__format=f,d.__style=p,d.__detail=h,d.__state=De(t,d),g=!0):d=t.setTextContent(c);const y=[d];for(let e=1;e<l;e++){const n=Pr(s[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=De(t,n);const i=n.__key;o===r&&Bi(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!==u){!function(e){const t=e.getPreviousSibling(),n=e.getNextSibling();null!==t&&Fi(t);null!==n&&Fi(n)}(this);const e=u.getWritable(),t=this.getIndexWithinParent();g?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),Ur(b)&&fo(b,u,t,l-1)}return y}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||W("mergeWithSibling: sibling must be a previous or next sibling");const n=this.__key,r=e.__key,o=this.__text,i=o.length;$i()===r&&Bi(n);const s=co();if(Ur(s)){const o=s.anchor,a=s.focus;null!==o&&o.key===r&&go(o,t,n,e,i),null!==a&&a.key===r&&go(a,t,n,e,i)}const a=e.__text,l=t?a+o:o+a;this.setTextContent(l);const c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function Er(e){return{forChild:zr(e.style),node:null}}function Tr(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:zr(t.style,n?void 0:"bold"),node:null}}const Ar=new WeakMap;function Lr(e){if(!Os(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function Mr(e){const t=e;null===e.parentElement&&W("Expected parentElement of Text not to be null");let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=Ar.get(n))&&!Lr(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e<r.length;e++)Ar.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(mr()):"\t"===r?t.push(Dr()):""!==r&&t.push(Pr(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=Rr(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=Rr(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:Pr(n)}}function Rr(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,Os(n)){const e=n.style.display;if(""===e&&!zs(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(Ni(n))return n;if("BR"===n.nodeName)return null}}const Nr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Or(e){const t=Nr[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:zr(e.style,t),node:null}}function Pr(e=""){return Ts(new Cr(e))}function Ir(e){return e instanceof Cr}function zr(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o="700"===n||"bold"===n,i=r.includes("line-through"),s="italic"===e.fontStyle,a=r.includes("underline"),l=e.verticalAlign;return e=>Ir(e)?(o&&!e.hasFormat("bold")&&e.toggleFormat("bold"),i&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),s&&!e.hasFormat("italic")&&e.toggleFormat("italic"),a&&!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 jr extends Cr{static getType(){return"tab"}static clone(e){return new jr(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=ds(e.theme,"tab");if(void 0!==n){t.classList.add(...n)}return t}static importJSON(e){return Dr().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&W("TabNode does not support setTextContent"),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||W("TabNode does not support spliceText"),this}setDetail(e){return 2!==e&&W("TabNode does not support setDetail"),this}setMode(e){return"normal"!==e&&W("TabNode does not support setMode"),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Dr(){return Ts(new jr)}function Fr(e){return e instanceof jr}class Br{key;offset;type;_selection;constructor(e,t,n){Object.defineProperty(this,"_selection",{enumerable:!1,writable:!0}),this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){if(this.key===e.key)return this.offset<e.offset;return Sa(ja(La(this,"next")),ja(La(e,"next")))<0}getNode(){const e=Hi(this.key);return null===e&&W("Point.getNode: node not found"),e}set(e,t,n,r){const o=this._selection,i=this.key;if(!r||this.key!==e||this.offset!==t||this.type!==n){this.key=e,this.offset=t,this.type=n;{const t=Hi(e);("text"===n?Ir(t):Xo(t))||W(`PointType.set: node with key ${e} is ${t?t.__type:"[not found]"} and can not be used for a ${n} point`)}Lo()||($i()===i&&Bi(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0))}}}function $r(e,t,n){return new Br(e,t,n)}function Hr(e,t){let n=t.__key,r=e.offset,o="element";if(Ir(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!Xo(t)){const e=t.getNextSibling();if(Ir(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 Wr(e,t){if(Xo(t)){const n=t.getLastDescendant();Xo(n)||Ir(n)?Hr(e,n):Hr(e,t)}else Hr(e,t)}class Kr{_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(!Yr(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 Kr(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(Ir(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=Hi(e);null!==t&&n.push(t)}return Lo()||(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((co()||uo())===this&&e[0]){const t=fa(e[0],"next");Ra(wa(t,t))}for(const t of e)t.remove()}}function Ur(e){return e instanceof Gr}class Gr{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!!Ur(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(la(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;Xo(e)&&i.has(e)||t.push(e)}r&&t.push(r.caret.origin);if(aa(e.focus)&&Xo(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=ma(e.focus.origin,"previous");la(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(!Xo(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=ja(e.anchor),r=ja(e.anchor.getFlipped()),o=e=>sa(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(Ba(Oa(this),"next"));return this.isCollapsed()&&t.length>1&&W(`RangeSelection.getNodes() returned ${String(t.length)} > 1 nodes in a collapsed selection`),Lo()||(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),[s,a]=Jr(this);let l="",c=!0;for(let u=0;u<e.length;u++){const d=e[u];if(Xo(d)&&!d.isInline())c||(l+="\n"),c=!d.isEmpty();else if(c=!1,Ir(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=s<a?e.slice(s,a):e.slice(a,s)):e=i?e.slice(s):e.slice(a):d===n&&(e=i?e.slice(0,a):e.slice(0,s)),l+=e}else!ei(d)&&!vr(d)||d===n&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(e){const t=Oo(),n=t.getEditorState()._selection,r=no(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),He(this)}clone(){const e=this.anchor,t=this.focus;return new Gr($r(e.key,e.offset,e.type),$r(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Ii(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=pe[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(mr()):"\t"===r?n.push(Dr()):n.push(Pr(r))}this.insertNodes(n)}insertText(e){const t=this.anchor,n=this.focus,r=this.format,o=this.style;let i=t,s=n;!this.isCollapsed()&&n.isBefore(t)&&(i=n,s=t),"element"===i.type&&function(e,t,n,r){const o=e.getNode(),i=o.getChildAtIndex(e.offset),s=Pr();if(s.setFormat(n),s.setStyle(r),di(i))i.splice(0,0,[s]);else{const e=ni(o)?ui().append(s):s;null===i?o.append(e):i.insertBefore(e)}e.is(t)&&t.set(s.__key,0,"text"),e.set(s.__key,0,"text")}(i,s,r,o),"element"===s.type&&Ma(s,ja(La(s,"next")));const a=i.offset;let l=s.offset;const c=this.getNodes(),u=c.length;let d=c[0];Ir(d)||W("insertText: first node is not a text node");const f=d.getTextContent().length,p=d.getParentOrThrow();let h=c[u-1];if(1===u&&"element"===s.type&&(l=f,s.set(i.key,l,"text")),this.isCollapsed()&&a===f&&(Ri(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(Ir(t)&&t.canInsertTextBefore()&&!Ri(t)||(t=Pr(),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===a&&(Ri(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(Ir(t)&&!Ri(t)||(t=Pr(),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()&&a!==f){const e=Pr(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||Xo(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),to(this.anchor,this.focus),void this.insertText(e)}if(1===u){if(Mi(d)){const t=Pr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(a!==l||t===r&&n===o){if(Fr(d)){const t=Pr(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=Pr(e);if(t.setFormat(r),t.setStyle(o),t.select(),0===a)d.insertBefore(t,!1);else{const[e]=d.splitText(a);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-a;d=d.spliceText(a,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=Xo(d)?d:d.getParentOrThrow();let r=Xo(h)?h:h.getParentOrThrow(),o=h;if(!n.is(r)&&r.isInline())do{o=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===s.type&&(0!==l||""===h.getTextContent())||"element"===s.type&&h.getIndexWithinParent()<l)if(Ir(h)&&!Mi(h)&&l!==h.getTextContentSize()){if(h.isSegmented()){const e=Pr(h.getTextContent());h.replace(e),h=e}ni(s.getNode())||"text"!==s.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(c),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)||Xo(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(Mi(d))if(a===f)d.select();else{const t=Pr(e);t.select(),d.replace(t)}else d=d.spliceText(a,f-a,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<u;e++){const n=c[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const e=co()===this,t=function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=Ba(e,r),s=Ia(i.anchor,n),a=Ia(i.focus.getFlipped(),n),l=new Set,c=[];for(const e of i.iterNodeCarets(n))if(la(e))l.add(e.origin.getKey());else if(aa(e)){const{origin:t}=e;Xo(t)&&!l.has(t.getKey())||c.push(t)}for(const e of c)e.remove();for(const e of i.getTextSlices()){if(!e)continue;const{origin:t}=e.caret,n=t.getTextContentSize(),i=Pa(fa(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=Pr(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=pa(n,r,t.offset)}n.is(s[0].origin)&&(s[0]=t),n.is(a[0].origin)&&(a[0]=t.getFlipped())}}let u,d;for(const e of s)if(za(e)){u=ja(e);break}for(const e of a)if(za(e)){d=ja(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 s=o.getParents().reverse();s.push(o);const a=Math.min(i.length,s.length);let l;for(l=0;l<a&&i[l]===s[l];l++);const c=(e,t)=>{let n;for(let r=l;r<e.length;r++){const o=e[r];if(Cs(o))return;!n&&t(o)&&(n=o)}return n},u=c(i,Ds),d=u&&c(s,e=>n.has(e.getKey())&&Ds(e));return u&&d?[u,d]:null}(u,d,l);if(f){const[e,t]=f;ma(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=[u,d,...s,...a].find(za);if(p){return _a(Fa(ja(p),e.direction))}W(`$removeTextFromCaretRange: selection was lost, could not find a new anchor given candidates with keys: ${JSON.stringify(s.map(e=>e.origin.__key))}`)}(Oa(this));Na(this,t),e&&co()!==this&&qi(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void Bi(null);const n=this.getNodes(),r=[];for(const e of n)Ir(e)&&r.push(e);const o=t=>{n.forEach(n=>{if(Xo(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(e),Bi(null),void o(t);const s=this.anchor,a=this.focus,l=this.isBackward(),c=l?a:s,u=l?s:a;let d=0,f=r[0],p="element"===c.type?0:c.offset;if("text"===c.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"===u.type?u.offset:m.getTextContentSize();if(f.is(m)){if(p===v)return;if(Ri(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"===c.type&&c.set(t.__key,0,"text"),"text"===u.type&&u.set(t.__key,v-p,"text")}return void(this.format=h)}0===p||Ri(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const b=m.getFormatFlags(e,h);v>0&&(v===m.getTextContentSize()||Ri(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"===c.type&&c.set(f.__key,p,"text"),"text"===u.type&&u.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=co();return Ur(t)||W("Expected RangeSelection after insertParagraph"),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=Xs(t,Ds),r=e[e.length-1];if(Xo(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=xo(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(Xo(e)||ei(e))&&!e.isInline())){Xo(n)||W(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`);const o=xo(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=ui();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=vr(o);if(i||ei(o)&&o.isInline()||Xo(o)&&o.isInline()||Ir(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(),s=o.getChildren(),a=!Xo(n)||!n.isEmpty()?this.insertParagraph():null,l=s[s.length-1];let c=s[0];(e=>Xo(e)&&Ds(e)&&!e.isEmpty()&&Xo(n)&&(!n.isEmpty()||n.canMergeWhenEmpty()))(c)&&(Xo(n)||W(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`),n.append(...c.getChildren()),c=s[1]),c&&(null===n&&W(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ancestor`),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||W("insertRangeAfter: lastToInsert must be a later sibling of firstToInsert"),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(n,c));const u=Xs(i,Ds);a&&Xo(u)&&(a.canMergeWhenEmpty()||Ds(l))&&(u.append(...a.getChildren()),a.remove()),Xo(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const d=Xo(n)?n.getLastChild():null;vr(d)&&u!==n&&d.remove()}insertParagraph(){if("root"===this.anchor.key){const e=ui();return Vi().splice(this.anchor.offset,0,[e]),e.select(),e}const e=xo(this),t=Xs(this.anchor.getNode(),Ds);Xo(t)||W("Expected ancestor to be a block ElementNode");const n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],o=t.insertNewAfter(this,!1);return o?(o.append(...r),o.selectStart(),o):null}insertLineBreak(e){const t=mr();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]=Jr(this),s=this.isBackward(),[a,l]=s?[this.focus,this.anchor]:[this.anchor,this.focus],[c,u]=s?[i,o]:[o,i];if(0===t)return[];if(1===t){if(Ir(n)&&!this.isCollapsed()){const e=n.splitText(c,u),t=0===c?e[0]:e[1];return t?(a.set(t.getKey(),0,"text"),l.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[n]}if(Ir(n)&&(c===n.getTextContentSize()?e.shift():0!==c&&([,n]=n.splitText(c),e[0]=n,a.set(n.getKey(),0,"text"))),Ir(r)){const t=r.getTextContent().length;0===u?e.pop():u!==t&&([r]=r.splitText(u),e[e.length-1]=r,l.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,t,n){if(wo(this,e,t,n))return;const r="move"===e,o=Oo(),i=Rs(Ss(o));if(!i)return;const s=o._blockCursorElement,a=o._rootElement,l=this.focus.getNode();if(null===a||null===s||!Xo(l)||l.isInline()||l.canBeEmpty()||Ms(s,o,a),this.dirty){let e=bs(o,this.anchor.key),t=bs(o,this.focus.key);"text"===this.anchor.type&&(e=Pi(e)),"text"===this.focus.type&&(t=Pi(t)),e&&t&&mo(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=ni(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(Cs(t))return t;t=t.getParentOrThrow()}return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!r){const n=this.getNodes(),r=[];let s=!1;for(let e=0;e<n.length;e++){const t=n[e];ws(t,o)?r.push(t):s=!0}if(s&&r.length>0)if(t){const e=r[0];Xo(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];Xo(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&&wo(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&Xo(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(Xo(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=xa(La(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(la(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(Xo(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=ja(t);Na(this,wa(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(aa(t)){if(Xo(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(ei(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&Xo(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=so();e.add(t.origin.getKey()),qi(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return Na(this,wa(!t.origin.isEmpty()&&n.isEmpty()?Pa(fa(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&&qr(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 Qr(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 Qr(n,e,o)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode(),i=r.getNode();if(o===i&&"text"===n.type&&"text"===r.type){const e=n.offset,i=r.offset,s=e<i,a=s?e:i,l=s?i:e,c=l-1;if(a!==c){(function(e){e.length>1||W("shouldDeleteExactlyOneCodeUnit: expecting to be called only with sequences of two or more code units");return!(Qi(e)||Xr(e))})(o.getTextContent().slice(a,l))&&(t?r.set(r.key,c,r.type):n.set(n.key,c,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()&&ni(e.getParent())&&null===e.getPreviousSibling()&&qr(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 Yr(e){return e instanceof Kr}function Vr(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Jr(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]:[Vr(n),Vr(r)]}function qr(e,t){for(let n=t;n;n=n.getParent()){if(Xo(n)){if(n.collapseAtStart(e))return!0;if(Cs(n))break}if(n.getPreviousSibling())break}return!1}const Xr=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Qr(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,a=0;for(let e=0;e<i;e++){const r=e===i-1;if(a=s,s+=o[e].length,t&&s===n||s>n||r){o.splice(e,1),r&&(a=void 0);break}}const l=o.join("").trim();""===l?r.remove():(r.setTextContent(l),r.select(a,a))}function Zr(e,t,n,r){let o,i=t;if(Os(e)){let s=!1;const a=e.childNodes,l=a.length,c=r._blockCursorElement;i===l&&(s=!0,i=l-1);let u=a[i],d=!1;if(u===c)u=a[i+1],d=!0;else if(null!==c){const n=c.parentNode;if(e===n){t>Array.prototype.indexOf.call(n.children,c)&&i--}}if(o=Xi(u),Ir(o))i=ha(o,s?"next":"previous");else{let a=Xi(e);if(null===a)return null;if(Xo(a)){const l=r.getElementByKey(a.getKey());null===l&&W("$internalResolveSelectionPoint: node in DOM but not keyToDOMMap");const c=a.getDOMSlot(l);[a,i]=c.resolveChildIndex(a,l,e,t),Xo(a)||W("$internalResolveSelectionPoint: resolvedElement is not an ElementNode"),s&&i>=a.getChildrenSize()&&(i=Math.max(0,a.getChildrenSize()-1));let u=a.getChildAtIndex(i);if(Xo(u)&&function(e,t,n){const r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(u,0,n)){const e=s?u.getLastDescendant():u.getFirstDescendant();null===e?a=u:(u=e,a=Xo(u)?u:u.getParentOrThrow()),i=0}Ir(u)?(o=u,a=null,i=ha(u,s?"next":"previous")):u!==a&&s&&!d&&(Xo(a)||W("invariant"),i=Math.min(a.getChildrenSize(),i+1))}else{const n=a.getIndexWithinParent();i=0===t&&ei(a)&&Xi(e)===a?n:n+1,a=a.getParentOrThrow()}if(Xo(a))return $r(a.__key,i,"element")}}else o=Xi(e);return Ir(o)?$r(o.__key,ha(o,i,"clamp"),"text"):null}function eo(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&&Xo(i)&&i.isInline()){const t=i.getPreviousSibling();Ir(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else Xo(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):Ir(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&Xo(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&Xo(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();Ir(t)&&e.set(t.__key,0,"text")}}}function to(e,t,n){if("text"===e.type&&"text"===t.type){const n=e.isBefore(t),r=e.is(t);eo(e,n,r),eo(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function no(e,t,n,r,o,i){if(null===e||null===n||!Ei(o,e,n))return null;const s=Zr(e,t,Ur(i)?i.anchor:null,o);if(null===s)return null;const a=Zr(n,r,Ur(i)?i.focus:null,o);if(null===a)return null;if(lo("anchor",s),lo("focus",a),"element"===s.type&&"element"===a.type){const t=Xi(e),r=Xi(n);if(ei(t)&&ei(r))return null}return to(s,a),[s,a]}function ro(e){return Xo(e)&&!e.isInline()}function oo(e,t,n,r,o,i){const s=No(),a=new Gr($r(e,t,o),$r(n,r,i),0,"");return a.dirty=!0,s._selection=a,a}function io(){const e=$r("root",0,"element"),t=$r("root",0,"element");return new Gr(e,t,0,"")}function so(){return new Kr(new Set)}function ao(e,t,n,r){const o=n._window;if(null===o)return null;const i=r||o.event,s=i?i.type:void 0,a="selectionchange"===s,l=!_e&&(a||"beforeinput"===s||"compositionstart"===s||"compositionend"===s||"click"===s&&i&&3===i.detail||"drop"===s||void 0===s);let c,u,d,f;if(Ur(e)&&!l)return e.clone();if(null===t)return null;if(c=t.anchorNode,u=t.focusNode,d=t.anchorOffset,f=t.focusOffset,(a||void 0===s)&&Ur(e)&&!Ei(n,c,u))return e.clone();const p=no(c,d,u,f,n,e);if(null===p)return null;const[h,g]=p;let m=0,v="";if(Ur(e)){const t=e.anchor;if(h.key===t.key)m=e.format,v=e.style;else{const e=h.getNode();Ir(e)?(m=e.getFormat(),v=e.getStyle()):Xo(e)&&(m=e.getTextFormat(),v=e.getTextStyle())}}return new Gr(h,g,m,v)}function lo(e,t){const n=Hi(t.key);if(void 0===n&&W(`$validatePoint: ${e} key ${t.key} not found in current editorState`),"text"===t.type){Ir(n)||W(`$validatePoint: ${e} key ${t.key} is not a TextNode`);const r=n.getTextContentSize();t.offset<=r||W(`$validatePoint: ${e} point.offset > node.getTextContentSize() (${String(t.offset)} > ${String(r)})`)}else{Xo(n)||W(`$validatePoint: ${e} key ${t.key} is not an ElementNode`);const r=n.getChildrenSize();t.offset<=r||W(`$validatePoint: ${e} point.offset > node.getChildrenSize() (${String(t.offset)} > ${String(r)})`)}}function co(){return No()._selection}function uo(){return Oo()._editorState._selection}function fo(e,t,n,r=1){const o=e.anchor,i=e.focus,s=o.getNode(),a=i.getNode();if(!t.is(s)&&!t.is(a))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"),po(e)}}else{const s=e.isBackward(),a=s?i:o,c=a.getNode(),u=s?o:i,d=u.getNode();if(t.is(c)){const e=a.offset;(n<=e&&r>0||n<e&&r<0)&&a.set(l,Math.max(0,e+r),"element")}if(t.is(d)){const e=u.offset;(n<=e&&r>0||n<e&&r<0)&&u.set(l,Math.max(0,e+r),"element")}}po(e)}function po(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),s=r.getNode();if(e.isCollapsed()){if(!Xo(i))return;const e=i.getChildrenSize(),o=n>=e,s=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Ir(s)){let e=0;o&&(e=s.getTextContentSize()),t.set(s.__key,e,"text"),r.set(s.__key,e,"text")}return}if(Xo(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Ir(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(Xo(s)){const e=s.getChildrenSize(),t=o>=e,n=t?s.getChildAtIndex(e-1):s.getChildAtIndex(o);if(Ir(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function ho(e,t,n,r,o){let i=null,s=0,a=null;null!==r?(i=r.__key,Ir(r)?(s=r.getTextContentSize(),a="text"):Xo(r)&&(s=r.getChildrenSize(),a="element")):null!==o&&(i=o.__key,Ir(o)?a="text":Xo(o)&&(a="element")),null!==i&&null!==a?e.set(i,s,a):(s=t.getIndexWithinParent(),-1===s&&(s=n.getChildrenSize()),e.set(n.__key,s,"element"))}function go(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 mo(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){console.warn(e)}}function vo(e,t,n){const r=bs(e,t.getKey());if(Xo(t)){const e=t.getDOMSlot(r);return[e.element,n+e.getFirstChildOffset()]}return[r,n]}function bo(e,t,n,r,o,i,s){const a=r.anchorNode,l=r.focusNode,c=r.anchorOffset,u=r.focusOffset,d=document.activeElement;if(o.has(lr)&&d!==i||null!==d&&Ci(d))return;if(!Ur(t))return void(null!==e&&Ei(n,a,l)&&r.removeAllRanges());const f=t.anchor,p=t.focus,h=f.getNode(),g=p.getNode(),[m,v]=vo(n,h,f.offset),[b,y]=vo(n,g,p.offset),x=t.format,_=t.style,w=t.isCollapsed();let k=m,S=b,C=!1;if("text"===f.type?(k=Pi(m),C=h.getFormat()!==x||h.getStyle()!==_):Ur(e)&&"text"===e.anchor.type&&(C=!0),"text"===p.type&&(S=Pi(b)),null!==k&&null!==S&&(w&&(null===e||C||Ur(e)&&(e.format!==x||e.style!==_))&&function(e,t,n,r,o){zn=[e,t,n,r,o]}(x,_,v,f.key,performance.now()),c!==v||u!==y||a!==k||l!==S||"Range"===r.type&&w||(null!==d&&i.contains(d)||o.has(dr)||i.focus({preventScroll:!0}),"element"===f.type))){if(mo(r,k,v,S,y),!Y||!t.isCollapsed()||null===i||o.has(dr)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(cr)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=Ur(t)&&"element"===t.anchor.type?k.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){const n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){const r=xs(n),o=ks(r);if(null===r||null===o)return;let{top:i,bottom:s}=t,a=0,l=0,c=n;for(;null!==c;){const t=c===r.body;if(t)a=0,l=Ss(e).innerHeight;else{const e=c.getBoundingClientRect();a=e.top,l=e.bottom}let n=0;if(i<a?n=-(a-i):s>l&&(n=s-l),0!==n)if(t)o.scrollBy(0,n);else{const e=c.scrollTop;c.scrollTop+=n;const t=c.scrollTop-e;i-=t,s-=t}if(t)break;c=ys(c)}}(n,t,i)}}Ln=!0}}function yo(e){let t=co()||uo();null===t&&(t=Vi().selectEnd()),t.insertNodes(e)}function xo(e){let t=e;e.isCollapsed()||t.removeText();const n=co();Ur(n)&&(t=n),Ur(t)||W("Unexpected dirty selection to be null");const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!Ds(o);){const e=o;if([o,i]=_o(o,i),e.is(o))break}return i}function _o(e,t){const n=e.getParent();if(!n){const e=ui();return Vi().append(e),e.select(),[Vi(),0]}if(Ir(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(!Xo(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Gr($r(e.__key,t,"element"),$r(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function wo(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=La(e.focus,n?"previous":"next"),s="lineboundary"===r,a="move"===t;let l=i,c="decorators-and-blocks"===o;if(!Da(l)){for(const e of l){c=!1;const{origin:t}=e;if(!ei(t)||t.isIsolated()||(l=e,!s||!t.isInline()))break}if(c)for(const e of xa(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(la(e))e.origin.isInline()||(l=e);else{if(Xo(e.origin))continue;ei(e.origin)&&!e.origin.isInline()&&(l=e)}break}}if(l===i)return!1;if(a&&!s&&ei(l.origin)&&l.origin.isKeyboardSelectable()){const e=so();return e.add(l.origin.getKey()),qi(e),!0}return l=ja(l),a&&Ma(e.anchor,l),Ma(e.focus,l),c||!s}let ko=null,So=null,Co=!1,Eo=!1,To=0;const Ao={characterData:!0,childList:!0,subtree:!0};function Lo(){return Co||null!==ko&&ko._readOnly}function Mo(){Co&&W("Cannot use method in read-only mode.")}function Ro(){To>99&&W("One or more transforms are endlessly triggering additional transforms. May have encountered infinite recursion caused by transforms that have their preconditions too lose and/or conflict with each other.")}function No(){return null===ko&&W(`Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update(), editor.read(), or editorState.read().${Po()}`),ko}function Oo(){return null===So&&W(`Unable to find an active editor. This method can only be used synchronously during the callback of editor.update() or editor.read().${Po()}`),So}function Po(){let e=0;const t=new Set,n=mi.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=Li(r);if(Ti(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 Io(){return So}function zo(e,t,n){const r=t.__type,o=_i(e,r);let i=n.get(r);void 0===i&&(i=Array.from(o.transforms),n.set(r,i));const s=i.length;for(let e=0;e<s&&(i[e](t),t.isAttached());e++);}function jo(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function Do(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 Fo(e){return Bo(e,Oo()._nodes)}function Bo(e,t){const n=e.type,r=t.get(n);void 0===r&&W(`parseEditorState: type "${n}" + not found`);const o=r.klass;e.type!==o.getType()&&W(`LexicalNode: Node ${o.name} does not implement .importJSON().`);const i=o.importJSON(e),s=e.children;if(Xo(i)&&Array.isArray(s))for(let e=0;e<s.length;e++){const n=Bo(s[e],t);i.append(n)}return i}function $o(e,t,n){const r=ko,o=Co,i=So;ko=t,Co=!0,So=e;try{return n()}finally{ko=r,Co=o,So=i}}function Ho(e){const t=e._nodeMap;t.set=()=>{throw new Error("Cannot call set() on a frozen Lexical node map")},t.clear=()=>{throw new Error("Cannot call clear() on a frozen Lexical node map")},t.delete=()=>{throw new Error("Cannot call delete() on a frozen Lexical node map")}}function Wo(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||null===r;if(null===n)return;const i=e._editorState,s=i._selection,a=n._selection,l=0!==e._dirtyType,c=ko,u=Co,d=So,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&null!==p){So=e,ko=n,Co=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=wt(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),Eo)throw t;return pi(e,null,r,n),Me(e),e._dirtyType=2,Eo=!0,Wo(e,i),void(Eo=!1)}finally{p.observe(r,Ao),e._updating=f,ko=c,Co=u,So=d}}n._readOnly||(n._readOnly=!0,Ho(n),Ur(a)&&(Object.freeze(a.anchor),Object.freeze(a.focus)),Object.freeze(a));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=Gi(e)),delete r[i])}(e,n);const x=o?null:Rs(Ss(e));if(e._editable&&null!==x&&(l||null===a||a.dirty||!a.is(s))&&null!==r&&!b.has(ur)){So=e,ko=n;try{if(null!==p&&p.disconnect(),l||null===a||a.dirty){const t=e._blockCursorElement;null!==t&&Ms(t,e,r),bo(s,a,e,x,b,r)}!function(e,t,n){let r=e._blockCursorElement;if(Ur(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){const o=n.anchor,i=o.getNode(),s=o.offset;let a=!1,l=null;if(s===i.getChildrenSize()){Ls(i.getChildAtIndex(s-1))&&(a=!0)}else{const t=i.getChildAtIndex(s);if(null!==t&&Ls(t)){const n=t.getPreviousSibling();(null===n||Ls(n))&&(a=!0,l=e.getElementByKey(t.__key))}}if(a){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=Ua(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&&Ms(r,e,t)}(e,r,a)}finally{null!==p&&p.observe(r,Ao),So=d,ko=c}}null!==h&&function(e,t,n,r,o){const i=Array.from(e._listeners.mutation),s=i.length;for(let e=0;e<s;e++){const[s,a]=i[e];for(const e of a){const i=t.get(e);void 0!==i&&s(i,{dirtyLeaves:r,prevEditorState:o,updateTags:n})}}}(e,h,b,g,i),Ur(a)||null===a||null!==s&&s.is(a)||e.dispatchCommand(Ct,void 0);const _=e._pendingDecorators;null!==_&&(e._decorators=_,e._pendingDecorators=null,Ko("decorator",e,!0,_)),function(e,t,n){const r=Yi(t),o=Yi(n);r!==o&&Ko("textcontent",e,!0,o)}(e,t||i,n),Ko("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;Go(e,t,r)}}}(e)}function Ko(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 Uo(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 s;void 0!==o&&(s=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete&&(null===i&&W("Unexpected empty pending editor state on discrete nested update"),i._flushSync=!0),s&&e._deferred.push(s),Do(e,o.tag)),null==i?Go(e,n,o):n()}}return r}function Go(e,t,n){const r=e._updateTags;let o,i=!1,s=!1;void 0!==n&&(o=n.onUpdate,Do(e,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),o&&e._deferred.push(o);const a=e._editorState;let l=e._pendingEditorState,c=!1;(null===l||l._readOnly)&&(l=e._pendingEditorState=ri(l||a),c=!0),l._flushSync=s;const u=ko,d=Co,f=So,p=e._updating;ko=l,Co=!1,e._updating=!0,So=e;const h=e._headless||null===e.getRootElement();yi(null);try{c&&(h?null!==a._selection&&(l._selection=a._selection.clone()):l._selection=function(e,t){const n=e.getEditorState()._selection,r=Rs(Ss(e));return Ur(n)||null==n?ao(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=Uo(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(Ur(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);Ir(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&$e(t)}}(l,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=$i(),s=new Map;let a=n,l=a.size,c=r,u=c.size;for(;l>0||u>0;){if(l>0){t._dirtyLeaves=new Set;for(const e of a){const r=o.get(e);Ir(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&$e(r),void 0!==r&&jo(r,i)&&zo(t,r,s),n.add(e)}if(a=t._dirtyLeaves,l=a.size,l>0){To++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,c.delete("root")&&c.set("root",!0);for(const e of c){const n=e[0],a=e[1];if(r.set(n,a),!a)continue;const l=o.get(n);void 0!==l&&jo(l,i)&&zo(t,l,s)}a=t._dirtyLeaves,l=a.size,c=t._dirtyElements,u=c.size,To++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Uo(e),function(e,t,n,r){const o=e._nodeMap,i=t._nodeMap,s=[];for(const[e]of r){const t=i.get(e);void 0!==t&&(t.isAttached()||(Xo(t)&&xe(t,e,o,i,s,r),o.has(e)||r.delete(e),s.push(e)))}for(const e of s)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))}}(a,l,e._dirtyLeaves,e._dirtyElements));r!==e._compositionKey&&(l._flushSync=!0);const o=l._selection;if(Ur(o)){const e=l._nodeMap,t=o.anchor.key,n=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||W("updateEditor: selection has been lost because the previously selected nodes have been removed and selection wasn't moved to another node. Ensure selection changes after removing/replacing a selected node.")}else Yr(o)&&0===o._nodes.size&&(l._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=a,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Wo(e)}finally{ko=u,Co=d,So=f,e._updating=p,To=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,Wo(e)):c&&ki(()=>{Wo(e)}):(l._flushSync=!1,c&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Yo(e,t,n){So===e&&void 0===n?t():Go(e,t,n)}class Vo{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new Vo(this.element,e,this.after)}withAfter(e){return new Vo(this.element,this.before,e)}withElement(e){return this.element===e?this:new Vo(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&W("ElementDOMSlot.insertChild: before is not in element"),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&W("ElementDOMSlot.removeChild: dom is not in element"),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&W("ElementDOMSlot.replaceChild: prevDom is not in element"),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(null===e)this.removeManagedLineBreak();else{const t="decorator"===e&&(ee||q||J);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=Jo(t,n);o.push(r);const i=Jo(t,this.element);let s=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){s+=1;break}}return[e.getParentOrThrow(),s]}}function Jo(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&&W("indexPath: root is not a parent of child"),n.reverse()}class qo extends ir{__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 me[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=Oo()._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(Ir(t)&&e.push(t),Xo(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;Xo(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;Xo(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 Xo(e)&&e.getLastDescendant()||e||null}const r=t[e];return Xo(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:Hi(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&W(`Expected node ${this.__key} to have a first child.`),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:Hi(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&W(`Expected node ${this.__key} to have a last child.`),e}getChildAtIndex(e){const t=this.getChildrenSize();let n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;null!==n&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e="";const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContent(),Xo(o)&&r!==n-1&&!o.isInline()&&(e+=de)}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(),Xo(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=ge[e];return 0!==(this.getFormat()&t)}return!1}hasTextFormat(e){const t=pe[e];return 0!==(this.getTextFormat()&t)}getFormatFlags(e,t){return Ii(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){Mo();const n=co();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(Ir(e)||Xo(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if(Ir(e)||Xo(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const s=this.__key;return Ur(n)?(n.anchor.set(s,r,"element"),n.focus.set(s,o,"element"),n.dirty=!0,n):oo(s,r,s,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?ge[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){or(this)&&W(`ElementNode.splice: Ephemeral nodes can not mutate their children (key ${this.__key} type ${this.__type})`);const r=this.getChildrenSize(),o=this.getWritable();e+t<=r||W(`ElementNode.splice: start + deleteCount > oldSize (${String(e)} + ${String(t)} > ${String(r)})`);const i=o.__key,s=[],a=[],l=this.getChildAtIndex(e+t);let c=null,u=r-t+n.length;if(0!==e)if(e===r)c=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(c=t.getPreviousSibling())}if(t>0){let e=null===c?this.getFirstChild():c.getNextSibling();for(let n=0;n<t;n++){null===e&&W("splice: sibling not found");const t=e.getNextSibling(),n=e.__key;Di(e.getWritable()),a.push(n),e=t}}let d=c;for(const e of n){null!==d&&e.is(d)&&(c=d=d.getPreviousSibling());const t=e.getWritable();t.__parent===i&&u--,Di(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&&W("append: attempting to append self"),t.__parent=i,s.push(n),d=e}if(e+t===r){if(null!==d){d.getWritable().__next=null,o.__last=d.__key}}else if(null!==l){const e=l.getWritable();if(null!==d){const t=d.getWritable();e.__prev=d.__key,t.__next=l.__key}else e.__prev=null}if(o.__size=u,a.length){const e=co();if(Ur(e)){const t=new Set(a),n=new Set(s),{anchor:r,focus:o}=e;Qo(r,t,n)&&ho(r,r.getNode(),this,c,l),Qo(o,t,n)&&ho(o,o.getNode(),this,c,l),0!==u||this.canBeEmpty()||Cs(this)||this.remove()}}return o}getDOMSlot(e){return new Vo(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(Os(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||Cs(this)||this.getChildren().some(Ir)||(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 Xo(e){return e instanceof qo}function Qo(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 Zo extends ir{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ei(e){return e instanceof Zo}class ti extends qo{__cachedText;static getType(){return"root"}static clone(){return new ti}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){W("getTopLevelElementOrThrow: root nodes are not top level elements")}getTextContent(){const e=this.__cachedText;return!Lo()&&0!==Oo()._dirtyType||null===e?super.getTextContent():e}remove(){W("remove: cannot be called on root nodes")}replace(e){W("replace: cannot be called on root nodes")}insertBefore(e){W("insertBefore: cannot be called on root nodes")}insertAfter(e){W("insertAfter: cannot be called on root nodes")}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)Xo(e)||ei(e)||W("rootNode.splice: Only element or decorator nodes can be inserted to the root node");return super.splice(e,t,n)}static importJSON(e){return Vi().updateFromJSON(e)}collapseAtStart(){return!0}}function ni(e){return e instanceof ti}function ri(e){return new si(new Map(e._nodeMap))}function oi(){return new si(new Map([["root",new ti]]))}function ii(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&W(`LexicalNode: Node ${n.name} does not match the serialized type. Check if .exportJSON() is implemented and it is returning the correct type.`),Xo(e)){const r=t.children;Array.isArray(r)||W(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`);const o=e.getChildren();for(let e=0;e<o.length;e++){const t=ii(o[e]);r.push(t)}}return t}class si{_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 $o(t&&t.editor||null,this,e)}clone(e){const t=new si(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return $o(null,this,()=>({root:ii(Vi())}))}}class ai extends qo{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class li extends qo{static getType(){return"paragraph"}static clone(e){return new li(e.__key)}createDOM(e){const t=document.createElement("p"),n=ds(e.theme,"paragraph");if(void 0!==n){t.classList.add(...n)}return t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:ci,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Os(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return ui().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(Ir);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=ui();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||Ir(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 ci(e){const t=ui();if(e.style&&(t.setFormat(e.style.textAlign),Us(e,t)),""===t.getFormatType()){const n=e.getAttribute("align");n&&n&&n in ge&&t.setFormat(n)}return{node:t}}function ui(){return Ts(new li)}function di(e){return e instanceof li}const fi=0;function pi(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=oi(),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 hi(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=qs(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 ir&&e!==ir?e:void 0}}return t}function gi(e){const t=e||{},n=Io(),r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,s=oi(),a=t.namespace||(null!==o?o._config.namespace:es()),l=t.editorState,c=[ti,Cr,hr,jr,li,ai,...t.nodes||[]],{onError:u,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<c.length;e++){let t=c[e],n=null,r=null;if("function"!=typeof t){const e=t;t=e.replace,n=e.with,r=e.withKlass||null}qs(t);{const e=t.name,o=Vs(t,"getType")&&t.getType();r?r.prototype instanceof t||W(`${r.name} doesn't extend the ${e}`):n&&console.warn(`Override for ${e} specifies 'replace' without 'withKlass'. 'withKlass' will be required in a future version.`),"RootNode"!==e&&"root"!==o&&"artificial"!==o&&t!==ir&&(["getType","clone"].forEach(n=>{Vs(t,n)||console.warn(`${e} must implement static "${n}" method`)}),!Vs(t,"importDOM")&&Js(t)&&console.warn(`${e} should implement "importDOM" if using a custom "exportDOM" method to ensure HTML serialization (important for copy & paste) works as expected`),Vs(t,"importJSON")||console.warn(`${e} should implement "importJSON" method to ensure JSON and default HTML serialization works as expected`))}const o=t.getType(),i=hi(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Re(c[e]),transforms:i})}}const h=new mi(s,o,p,{disableEvents:i,namespace:a,theme:r},u||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(At,Wn,fi),e.registerCommand(Lt,Kn,fi),e.registerCommand(Mt,Un,fi),e.registerCommand(Rt,Gn,fi),e.registerCommand(Wt,Vn,fi)}(h),h}class mi{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,s,a){this._createEditorArgs=a,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=es(),this._onError=o,this._htmlConversions=i,this._editable=s,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&&W('Listener for type "command" requires a "priority".');const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=r.get(e);void 0===o&&W(`registerCommand: Command ${String(e)} not found in command map`);const i=o[n];return i.add(t),()=>{i.delete(t),o.every(e=>0===e.size)&&r.delete(e)}}registerMutationListener(e,t,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,o=this._listeners.mutation;let i=o.get(t);void 0===i&&(i=new Set,o.set(t,i)),i.add(r);const s=n&&n.skipInitialization;return void 0!==s&&s||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&&W(`Node ${e.name} has not been registered. Ensure node has been passed to createEditor.`),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=Hs(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=Hs(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}if(0===r.length)return;e.update(()=>{for(const e of r)for(const t of e.keys()){const e=Hi(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:ar}: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 vs(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=ds(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,pi(this,t,e,r),null!==t&&(this._config.disableEvents||tr(t),null!=n&&t.classList.remove(...n)),null!==e){const t=ks(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,Me(this),this._updateTags.add(ar),Wo(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;Tn.set(e,n);const r=An.get(n)??0;r<1&&n.addEventListener("selectionchange",Xn),An.set(n,r+1),e.__lexicalEditor=t;const o=Jn(e);for(let n=0;n<wn.length;n++){const[r,i]=wn[n],s="function"==typeof i?e=>{Zn(e)||(Qn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(Zn(e))return;Qn(e);const n=t.isEditable();switch(r){case"cut":return n&&vs(t,fn,e);case"copy":return vs(t,dn,e);case"paste":return n&&vs(t,zt,e);case"dragstart":return n&&vs(t,ln,e);case"dragover":return n&&vs(t,cn,e);case"dragend":return n&&vs(t,un,e);case"focus":return n&&vs(t,bn,e);case"blur":return n&&vs(t,yn,e);case"drop":return n&&vs(t,sn,e)}};e.addEventListener(r,s),o.push(()=>{e.removeEventListener(r,s)})}}(e,this),null!=n&&e.classList.add(...n);{const t=e.parentElement;null!=t&&["flex","inline-flex"].includes(getComputedStyle(t).display)&&console.warn('When using "display: flex" or "display: inline-flex" on an element containing content editable, Chrome may have unwanted focusing behavior when clicking outside of it. Consider wrapping the content editable within a non-flex element.')}}else this._window=null,this._updateTags.add(ar),Wo(this);Ko("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&W("setEditorState: the editor state is empty. Ensure the editor state's root node never becomes empty.");let n=e;n._readOnly&&(n=ri(e),n._selection=e._selection?e._selection.clone():null),Le(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),Wo(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||Wo(this)}parseEditorState(e,t){return function(e,t,n){const r=oi(),o=ko,i=Co,s=So,a=t._dirtyElements,l=t._dirtyLeaves,c=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,ko=r,Co=!1,So=t,yi(null);try{const o=t._nodes;Bo(e.root,o),n&&n(),r._readOnly=!0,Ho(r)}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=a,t._dirtyLeaves=l,t._cloneNotNeeded=c,t._dirtyType=u,ko=o,Co=i,So=s}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return Wo(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):Go(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Yo(this,()=>{const r=co(),o=Vi();null!==r?r.dirty||qi(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),_s("focus"),function(e){Mo();Oo()._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=Rs(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ko("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}mi.version="0.41.0+dev.esm";let bi=null;function yi(e){bi=e}let xi=1;function _i(e,t){const n=wi(e,t);return void 0===n&&W(`registeredNode: Type ${t} not found`),n}function wi(e,t){return e._nodes.get(t)}const ki="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function Si(e){return ei(Ui(e))}function Ci(e){const t=document.activeElement;if(!Os(t))return!1;const n=t.nodeName;return ei(Ui(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==Li(t))}function Ei(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!Ci(t)&&Ai(t)===e}catch(e){return!1}}function Ti(e){return e instanceof mi}function Ai(e){let t=e;for(;null!=t;){const e=Li(t);if(Ti(e))return e;t=ys(t)}return null}function Li(e){return e?e.__lexicalEditor:null}function Mi(e){return Fr(e)||e.isToken()}function Ri(e){return Mi(e)||e.isSegmented()}function Ni(e){return Ps(e)&&3===e.nodeType}function Oi(e){return Ps(e)&&9===e.nodeType}function Pi(e){let t=e;for(;null!=t;){if(Ni(t))return t;t=t.firstChild}return null}function Ii(e,t,n){const r=pe[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 zi(e){return Ir(e)||vr(e)||ei(e)}function ji(e,t){const n=function(){const e=bi;return bi=null,e}();if(null!=(t=t||n&&n.__key))return function(e,t,n){const r=ko;if(!r)return;const o=r._nodeMap.get(t);n&&t!==n.__key&&W(`Lexical node with constructor ${e.constructor.name} (type ${e.getType()}) has an incorrect clone implementation, got ${String(t)} for nodeKey when expecting ${n.__key}`);o&&o.constructor!==e.constructor&&(e.constructor.name!==o.constructor.name?W(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with constructor ${o.constructor.name}. Keys must not be re-used when the type is changed.`):W(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with different constructor with the same name (possibly due to invalid Hot Module Replacement). Keys must not be re-used when the type is changed.`))}(e,t,n),void(e.__key=t);Mo(),Ro();const r=Oo(),o=No(),i=""+xi++;o._nodeMap.set(i,e),Xo(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function Di(e){const t=e.getParent();if(null!==t){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),s=null!==i?i.__key:null,a=null!==o?o.__key:null,l=null!==o?o.getWritable():null,c=null!==i?i.getWritable():null;null===o&&(r.__first=s),null===i&&(r.__last=a),null!==l&&(l.__next=s),null!==c&&(c.__prev=a),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Fi(e){Ro(),or(e)&&W(`internalMarkNodeAsDirty: Ephemeral nodes must not be marked as dirty (key ${e.__key} type ${e.__type})`);const t=e.getLatest(),n=t.__parent,r=No(),o=Oo(),i=r._nodeMap,s=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,s);const a=t.__key;o._dirtyType=1,Xo(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function Bi(e){Mo();const t=Oo(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=Hi(n);null!==e&&e.getWritable()}if(null!==e){const t=Hi(e);null!==t&&t.getWritable()}}}function $i(){if(Lo())return null;return Oo()._compositionKey}function Hi(e,t){const n=(t||No())._nodeMap.get(e);return void 0===n?null:n}function Wi(e,t){const n=Ki(e,Oo());return void 0!==n?Hi(n,t):null}function Ki(e,t){return e[`__lexicalKey_${t._key}`]}function Ui(e,t){let n=e;for(;null!=n;){const e=Wi(n,t);if(null!==e)return e;n=ys(n)}return null}function Gi(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Yi(e){return e.read(()=>Vi().getTextContent())}function Vi(){return Ji(No())}function Ji(e){return e._nodeMap.get("root")}function qi(e){Mo();const t=No();null!==e&&(Object.isFrozen(e)&&W("$setSelection called on frozen selection object. Ensure selection is cloned before passing in."),e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Xi(e){const t=Oo(),n=function(e,t){let n=e;for(;null!=n;){const e=Ki(n,t);if(void 0!==e)return e;n=ys(n)}return null}(e,t);if(null===n){return e===t.getRootElement()?Hi("root"):null}return Hi(n)}function Qi(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Zi(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function es(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function ts(e){return Ni(e)?e.nodeValue:null}function ns(e,t,n){const r=Rs(Ss(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(null!==o){let t=ts(o);const r=Ui(o);if(null!==t&&Ir(r)){if((t===ue||t===fe)&&n){const e=n.length;t=n,i=e,s=e}null!==t&&rs(r,t,i,s,e)}}}function rs(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let a=t;if((s||o)&&(t.endsWith(ue)&&(a=t.slice(0,-ue.length)),o)){const e=fe;let t;for(;-1!==(t=a.indexOf(e));)a=a.slice(0,t)+a.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||a!==l){if(""===a){if(Bi(null),J||q||ee)i.remove();else{const e=Oo();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}const t=i.getParent(),o=uo(),l=i.getTextContentSize(),c=$i(),u=i.getKey();if(i.isToken()||null!==c&&u===c&&!s||Ur(o)&&(null!==t&&!t.canInsertTextBefore()&&0===o.anchor.offset||o.anchor.key===e.__key&&0===o.anchor.offset&&!i.canInsertTextBefore()&&!s||o.focus.key===e.__key&&o.focus.offset===l&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const d=co();if(!Ur(d)||null===n||null===r)return void os(i,a,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=Pr(i.getTextContent());i.replace(e),i=e}os(i,a,d)}}}function os(e,t,n){if(e.setTextContent(t),Ur(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=ha(e,o.offset,"clamp"))}}}function is(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function ss(e,t,n){if(!function(e,t){return is(e,t,"altKey")&&is(e,t,"ctrlKey")&&is(e,t,"shiftKey")&&is(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 as={ctrlKey:!G,metaKey:G},ls={altKey:G,ctrlKey:!G};function cs(e){return"Backspace"===e.key}function us(e){return ss(e,"a",as)}function ds(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=Ua(o);return n[t]=e,e}return o}function fs(e,t,n,r,o){if(0===n.size)return;const i=r.__type,s=r.__key,a=t.get(i);void 0===a&&W(`Type ${i} not in registeredNodes`);const l=a.klass;let c=e.get(l);void 0===c&&(c=new Map,e.set(l,c));const u=c.get(s),d="destroyed"===u&&"created"===o;(void 0===u||d)&&c.set(s,d?"updated":o)}function ps(e){const t=e.getType(),n=No();if(n._readOnly){const e=Hs(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 hs(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 gs(e,t){const n=e.offset;if("element"===e.type){return hs(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?hs(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function ms(e){const t=Ss(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function vs(e,t,n){return function(e,t,n){const r=Zi(e);for(let o=4;o>=0;o--)for(let i=0;i<r.length;i++){const s=r[i],a=s._commands.get(t);if(void 0!==a){const t=a[o];if(void 0!==t){const r=Array.from(t),o=r.length;let i=!1;if(Yo(s,()=>{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 bs(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&W(`Reconciliation: could not find DOM element for node key ${t}`),n}function ys(e){const t=e.assignedSlot||e.parentElement;return Is(t)?t.host:t}function xs(e){return Oi(e)?e:Os(e)?e.ownerDocument:null}function _s(e){Mo();Oo()._updateTags.add(e)}function ws(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function ks(e){const t=xs(e);return t?t.defaultView:null}function Ss(e){const t=e._window;return null===t&&W("window object not found"),t}function Cs(e){return ni(e)||Xo(e)&&e.isShadowRoot()}function Es(e){const t=e.constructor.clone(e);return ji(t,null),t.afterCloneFrom(e),t}function Ts(e){const t=Oo(),n=e.getType(),r=wi(t,n);void 0===r&&W(`$applyNodeReplacement node ${e.constructor.name} with type ${n} must be registered to the editor. You can do this by passing the node class via the "nodes" array in the editor config.`);const{replace:o,replaceWithKlass:i}=r;if(null!==o){const t=o(e),r=t.constructor;return null!==i?t instanceof i||W(`$applyNodeReplacement failed. Expected replacement node to be an instance of ${i.name} with type ${i.getType()} but returned ${r.name} with type ${r.getType()} from original node ${e.constructor.name} with type ${n}`):t instanceof e.constructor&&r!==e.constructor||W(`$applyNodeReplacement failed. Ensure replacement node ${r.name} with type ${r.getType()} is a subclass of the original node ${e.constructor.name} with type ${n}.`),t.__key===e.__key&&W(`$applyNodeReplacement failed. Ensure that the key argument is *not* used in your replace function (from node ${e.constructor.name} with type ${n} to node ${r.name} with type ${r.getType()}), Node keys must never be re-used except by the static clone method.`),t}return e}function As(e,t){!ni(e.getParent())||Xo(t)||ei(t)||W("Only element or decorator nodes can be inserted in to the root node")}function Ls(e){return(ei(e)||Xo(e)&&!e.canBeEmpty())&&!e.isInline()}function Ms(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function Rs(e){return K?(e||window).getSelection():null}function Ns(e){return Os(e)&&"A"===e.tagName}function Os(e){return Ps(e)&&1===e.nodeType}function Ps(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function Is(e){return Ps(e)&&11===e.nodeType}function zs(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 js(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 Ds(e){if(ei(e)&&!e.isInline())return!0;if(!Xo(e)||Cs(e))return!1;const t=e.getFirstChild(),n=null===t||vr(t)||Ir(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Fs(){return Oo()}const Bs=new WeakMap,$s=new Map;function Hs(e){if(!e._readOnly&&e.isEmpty())return $s;e._readOnly||W("getCachedTypeToNodeMap called with a writable EditorState");let t=Bs.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),Bs.set(e,t)),t}function Ws(e){const t=e.constructor,n=t.clone(e);return n.afterCloneFrom(e),n.__key!==e.__key&&W(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') did not return a node with the same key, make sure to specify node.__key as the last argument to the constructor`),n.__parent===e.__parent&&n.__next===e.__next&&n.__prev===e.__prev||W(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') overrode afterCloneFrom but did not call super.afterCloneFrom(prevNode)`),n}function Ks(e){return function(e){return e[rr]=!0,e}(Ws(e))}function Us(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Gs(e){return!0===e.__lexicalUnmanaged}function Ys(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Vs(e,t){return Ys(e,t)&&e[t]!==ir[t]}function Js(e){return Ys(e.prototype,"exportDOM")}function qs(e){const t=ye in e.prototype?e.prototype[ye]():void 0,n=function(e){if(!(e===ir||e.prototype instanceof ir)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{mi.version&&(n=JSON.parse(mi.version))}catch(e){}W(`${e.name} (type ${t}) does not subclass LexicalNode from the lexical package used by this editor (version ${n}). All lexical and @lexical/* packages used by an editor must have identical versions. If you suspect the version does match, then the problem may be caused by multiple copies of the same lexical module (e.g. both esm and cjs, or included directly in multiple entrypoints).`)}return e===Zo||e===qo||e===ir}(e),r=!n&&Vs(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&&(Vs(e,"getType")||(e.getType=()=>i),Vs(e,"clone")||(0===Cr.length&&0!==e.length&&W(`${e.name} (type ${i}) must implement a static clone method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.clone=t=>(yi(t),new e)),Vs(e,"importJSON")||(0===Cr.length&&0!==e.length&&W(`${e.name} (type ${i}) must implement a static importJSON method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!Vs(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}const Xs=(e,t)=>{let n=e;for(;null!=n&&!ni(n);){if(t(n))return n;n=n.getParent()}return null},Qs={next:"previous",previous:"next"};class Zs{origin;constructor(e){this.origin=e}[Symbol.iterator](){return ka({hasNext:aa,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return fa(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return fa(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(),s=new Map;for(let t=o.getAdjacentCaret();null!==t&&s.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();s.set(e.getKey(),e)}for(const e of r){if(s.size>0){const t=o.getNodeAtCaret();if(t)if(s.delete(t.getKey()),s.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&&W(`NodeCaret.splice: Underflow of expected nodesToRemove during splice (keys: ${Array.from(s).join(" ")})`)}else o.insert(e);o=fa(e,this.direction)}for(const e of s.values())e.remove();return this}}class ea extends Zs{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ma(e,this.direction)}getParentCaret(e="root"){return fa(ra(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=na(this.direction);return fa(this.getNodeAtCaret(),e)||ma(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof ea&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const ta={root:ni,shadowRoot:Cs};function na(e){return Qs[e]}function ra(e,t="root"){return ta[t](e)?null:e}class oa extends Zs{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:fa(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return Xo(this.origin)?ma(this.origin,this.direction):null}getParentCaret(e="root"){return fa(ra(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=na(this.direction);return fa(this.getNodeAtCaret(),e)||ma(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof oa&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof oa||e instanceof ia)&&this.direction===e.direction&&this.origin.is(e.origin)}}class ia extends Zs{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:pa(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return fa(ra(this.getParentAtCaret(),e),this.direction)}getFlipped(){return pa(this.origin,na(this.direction),this.offset)}isSamePointCaret(e){return e instanceof ia&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof oa||e instanceof ia)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return fa(this.origin,this.direction)}}function sa(e){return e instanceof ia}function aa(e){return e instanceof oa}function la(e){return e instanceof ea}const ca={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}}},ua={next:class extends oa{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends oa{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},da={next:class extends ea{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends ea{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function fa(e,t){return e?new ua[t](e):null}function pa(e,t,n){return e?new ca[t](e,ha(e,n)):null}function ha(e,t,n="error"){const r=e.getTextContentSize();let o="next"===t?r:"previous"===t?0:t;return(o<0||o>r)&&("clamp"!==n&&W(`$getTextNodeOffset: invalid offset ${String(t)} for size ${String(r)} at key ${e.getKey()}`),o=o<0?0:r),o}function ga(e,t){return new ya(e,t)}function ma(e,t){return Xo(e)?new da[t](e):null}function va(e){return e&&function(e){return e&&e.getChildCaret()||e}(e.getAdjacentCaret())}class ba{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 ba(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return sa(t)?function(e,t){const{direction:n,origin:r}=e,o=ha(r,"focus"===t?na(n):n);return ga(e,o-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){const{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[ga(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=sa(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=sa(n),o=t=>t.isSameNodeCaret(n)?null:va(t)||t.getParentCaret(e);return ka({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:o(t),map:e=>e,step:o})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class ya{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 pa(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}}function xa(e){return wa(e,fa(Vi(),e.direction))}function _a(e){return wa(e,e)}function wa(e,t){return e.direction!==t.direction&&W("$getCaretRange: anchor and focus must be in the same direction"),new ba(e,t,e.direction)}function ka(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 Sa(e,t){const n=Aa(e.origin,t.origin);switch(null===n&&W(`$comparePointCaretNext: a (key ${e.origin.getKey()}) and b (key ${t.origin.getKey()}) do not have a common ancestor`),n.type){case"same":{const n="text"===e.type,r="text"===t.type;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return Ca(n)}}function Ca(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,s=n;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return null===i?1:-1}function Ea(e,t){return t.is(e)}function Ta(e){return Xo(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Aa(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=Ta(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=Ta(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(Ea(e,r)||W("$originComparison: ancestor logic error"),{commonAncestor:r,type:"ancestor"}):null===o?(Ea(t,r)||W("$originComparison: descendant logic error"),{commonAncestor:r,type:"descendant"}):((Xo(i)||Ea(e,i))&&(Xo(o)||Ea(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||W("$originComparison: branch logic error"),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function La(e,t){const{type:n,key:r,offset:o}=e,i=function(e){const t=Hi(e);return null===t&&W(`Expected node with key ${e} to exist but it's not in the nodeMap.`),t}(e.key);return"text"===n?(Ir(i)||W(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from TextNode encountered for text point`),pa(i,t,o)):(Xo(i)||W(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from ElementNode encountered for element point`),function(e,t,n){let r=ma(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return Fa(r,n)}(i,e.offset,t))}function Ma(e,t){const{origin:n,direction:r}=t,o="next"===r;sa(t)?e.set(n.getKey(),t.offset,"text"):aa(t)?Ir(n)?e.set(n.getKey(),ha(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(la(t)&&Xo(n)||W("$setPointFromCaret: exhaustiveness check"),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function Ra(e){const t=co(),n=Ur(t)?t:io();return Na(n,e),qi(n),n}function Na(e,t){Ma(e.anchor,t.anchor),Ma(e.focus,t.focus)}function Oa(e){const{anchor:t,focus:n}=e,r=La(t,"next"),o=La(n,"next"),i=Sa(r,o)<=0?"next":"previous";return wa(Fa(r,i),Fa(o,i))}function Pa(e){const{direction:t,origin:n}=e,r=fa(n,na(t)).getNodeAtCaret();return r?fa(r,t):ma(n.getParentOrThrow(),t)}function Ia(e,t="root"){const n=[e];for(let r=la(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(Pa(r));return n}function za(e){return!!e&&e.origin.isAttached()}function ja(e){const t=function(e){let t=e;for(;la(t);){const e=va(t);if(!la(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(Ir(t.origin))return sa(t)?t:pa(t.origin,n,n);const r=t.getAdjacentCaret();return aa(r)&&Ir(r.origin)?pa(r.origin,n,na(n)):t}function Da(e){return sa(e)&&e.offset!==ha(e.origin,e.direction)}function Fa(e,t){return e.direction===t?e:e.getFlipped()}function Ba(e,t){return e.direction===t?e:wa(Fa(e.focus,t),Fa(e.anchor,t))}function $a(e){const{origin:t,offset:n,direction:r}=e;if(n===ha(t,r))return e.getSiblingCaret();if(n===ha(t,na(r)))return Pa(e.getSiblingCaret());const[o]=t.splitText(n);return Ir(o)||W("$splitTextPointCaret: splitText must return at least one TextNode"),Fa(fa(o,"next"),r)}function Ha(e,t){return!0}function Wa(e,{$copyElementNode:t=Es,$splitTextPointCaretNext:n=$a,rootMode:r="shadowRoot",$shouldSplit:o=Ha}={}){if(sa(e))return n(e);const i=e.getParentCaret(r);if(i){const{origin:n}=i;if(la(e)&&(!n.canBeEmpty()||!o(n,"first")))return Pa(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 Ka(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function Ua(...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 Ga(e,...t){const n=Ua(...t);n.length>0&&e.classList.add(...n)}function Ya(e,...t){const n=Ua(...t);n.length>0&&e.classList.remove(...n)}function Va(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function Ja(e){throw new Error(e)}const qa=new Map;function Xa(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 Qa(e){let t=qa.get(e);return void 0===t&&(t=Xa(e),qa.set(e,t)),Object.freeze(t),t}function Za(e){const t=Fs().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function el(e){return Za(ni(e)?e:e.getParentOrThrow())}function tl(e){const t=el(e);return null!==t&&"rtl"===t.direction}function nl(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Ri(t)&&null!==r){const[o,i]=r,s=e.isBackward(),a=o.getNode(),l=i.getNode(),c=t.is(a),u=t.is(l);if(c||u){const[r,o]=Jr(e),i=a.is(l),c=t.is(s?l:a),u=t.is(s?a:l);let d,f=0;if(i)f=r>o?o:r,d=r>o?r:o;else if(c){f=s?o:r,d=void 0}else if(u){f=0,d=s?r:o}const p=t.__text.slice(f,d);p!==t.__text&&("clone"===n&&(t=Ks(t)),t.__text=p)}}return t}function rl(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return Xo(t)||Ja("isAtNodeEnd: node must be a TextNode or ElementNode"),e.offset===t.getChildrenSize()}function ol(e){const t=e.getStyle(),n=Xa(t);qa.set(t,n)}function il(e,t){(Ur(e)?e.isCollapsed():Ir(e)||Xo(e))||Ja("$patchStyle must only be called with a TextNode, ElementNode, or collapsed RangeSelection");const n=Qa(Ur(e)?e.style:Ir(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);Ur(e)||Ir(e)?e.setStyle(o):e.setTextStyle(o),qa.set(o,r)}function sl(e,t){if(Ur(e)&&e.isCollapsed()){il(e,t);const n=e.anchor.getNode();Xo(n)&&n.isEmpty()&&il(n,t)}!function(e){const t=co();if(!t)return;const n=new Map,r=e=>n.get(e.getKey())||[0,e.getTextContentSize()];if(Ur(t))for(const e of Oa(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());const o=t.getNodes();for(const t of o){if(!Ir(t)||!t.canHaveFormat())continue;const[n,o]=r(t);if(o!==n)if(Ri(t)||0===n&&o===t.getTextContentSize())e(t);else{e(t.splitText(n,o)[0===n?0:1])}}Ur(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=>{il(e,t)});const n=e.getNodes();if(n.length>0){const e=new Set;for(const r of n){if(!Xo(r)||!r.canBeEmpty()||0!==r.getChildrenSize())continue;const n=r.getKey();e.has(n)||(e.add(n),il(r,t))}}}function al(e,t){const n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function ll(e){const t=cl(e);return null!==t&&"vertical-rl"===t.writingMode}function cl(e){const t=e.anchor.getNode();return Xo(t)?Za(t):el(t)}function ul(e,t){let n=ll(e)?!t:t;dl(e)&&(n=!n);const r=La(e.focus,n?"previous":"next");if(Da(r))return!1;for(const e of xa(r)){if(la(e))return!e.origin.isInline();if(!Xo(e.origin)){if(ei(e.origin))return!0;break}}return!1}function dl(e){const t=cl(e);return null!==t&&"rtl"===t.direction}function fl(e,t,n){const r=dl(e);let o;o=ll(e)||r?!n:n,function(e,t,n,r){e.modify(t?"extend":"move",n,r)}(e,t,o,"character")}function pl(e,t,n){const r=Qa(e.getStyle());return null!==r&&r[t]||n}function hl(e,t,n=""){let r=null;const o=e.getNodes(),i=e.anchor,s=e.focus,a=e.isBackward(),l=a?s.offset:i.offset,c=a?s.getNode():i.getNode();if(Ur(e)&&e.isCollapsed()&&""!==e.style){const n=Qa(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(c))&&Ir(i)){const e=pl(i,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}function gl(e){throw new Error(e)}const ml="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,vl=ml&&"documentMode"in document?document.documentMode:null;function bl(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function yl(e){const t=Xs(e,e=>Xo(e)&&!e.isInline());return Xo(t)||gl(`Expected node ${e.__key} to have closest block element node.`),t}function xl(e){const t=co()||uo();let n;if(Ur(t))n=La(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=fa(r,"next"))}n=n||ma(Vi(),"previous").getFlipped().insert(ui())}const r=_l(e,n),o=va(r);return Ra(_a(la(o)?ja(o):r)),e.getLatest()}function _l(e,t,n){let r=Fa(t,"next");for(let e=r;e;e=Wa(e,n))r=e;return sa(r)&&gl("$insertNodeToNearestRootAtCaret: An unattached TextNode can not be split"),r.insert(e.isInline()?ui().append(e):e),Fa(fa(e.getLatest(),"next"),t.direction)}function wl(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function kl(e){const t=co();if(!Ur(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 s=Xs(o,e=>Xo(e)&&!e.isInline());if(null===s)continue;const a=s.getKey();s.canIndent()&&!n.has(a)&&(n.add(a),e(s))}return n.size>0}ml&&"InputEvent"in window&&!vl&&new window.InputEvent("input");const Sl=Symbol.for("preact-signals");function Cl(){if(Ll>1)return void Ll--;let e,t=!1;for(;void 0!==Tl;){let n=Tl;for(Tl=void 0,Ml++;void 0!==n;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Il(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Ml=0,Ll--,t)throw e}let El,Tl;function Al(e){const t=El;El=void 0;try{return e()}finally{El=t}}let Ll=0,Ml=0,Rl=0;function Nl(e){if(void 0===El)return;let t=e.n;return void 0===t||t.t!==El?(t={i:0,S:e,p:El.s,n:void 0,t:El,e:void 0,x:void 0,r:t},void 0!==El.s&&(El.s.n=t),El.s=t,e.n=t,32&El.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=El.s,t.n=void 0,El.s.n=t,El.s=t),t):void 0}function Ol(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 Pl(e,t){return new Ol(e,t)}function Il(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 zl(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 jl(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 Dl(e,t){Ol.call(this,void 0),this.x=e,this.s=void 0,this.g=Rl-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 Fl(e){const t=e.u;if(e.u=void 0,"function"==typeof t){Ll++;const n=El;El=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Bl(e),t}finally{El=n,Cl()}}}function Bl(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Fl(e)}function $l(e){if(El!==this)throw new Error("Out-of-order effect");jl(this),El=e,this.f&=-2,8&this.f&&Bl(this),Cl()}function Hl(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 Wl(e,t){const n=new Hl(e,t);try{n.c()}catch(e){throw n.d(),e}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Kl(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function Ul(e){throw new Error(e)}function Gl(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]=Gl(n[e],r[e]);return e}return t}Ol.prototype.brand=Sl,Ol.prototype.h=function(){return!0},Ol.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:Al(()=>{var e;null==(e=this.W)||e.call(this)}))},Ol.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&&Al(()=>{var e;null==(e=this.Z)||e.call(this)}))}},Ol.prototype.subscribe=function(e){return Wl(()=>{const t=this.value,n=El;El=void 0;try{e(t)}finally{El=n}},{name:"sub"})},Ol.prototype.valueOf=function(){return this.value},Ol.prototype.toString=function(){return this.value+""},Ol.prototype.toJSON=function(){return this.value},Ol.prototype.peek=function(){const e=El;El=void 0;try{return this.value}finally{El=e}},Object.defineProperty(Ol.prototype,"value",{get(){const e=Nl(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(Ml>100)throw new Error("Cycle detected");this.v=e,this.i++,Rl++,Ll++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{Cl()}}}}),Dl.prototype=new Ol,Dl.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===Rl)return!0;if(this.g=Rl,this.f|=1,this.i>0&&!Il(this))return this.f&=-2,!0;const e=El;try{zl(this),El=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 El=e,jl(this),this.f&=-2,!0},Dl.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)}Ol.prototype.S.call(this,e)},Dl.prototype.U=function(e){if(void 0!==this.t&&(Ol.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)}},Dl.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(Dl.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=Nl(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Hl.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()}},Hl.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Fl(this),zl(this),Ll++;const e=El;return El=this,$l.bind(this,e)},Hl.prototype.N=function(){2&this.f||(this.f|=2,this.o=Tl,Tl=this)},Hl.prototype.d=function(){this.f|=8,1&this.f||Bl(this)},Hl.prototype.dispose=function(){this.d()};const Yl=0,Vl=1,Jl=2,ql=3,Xl=4,Ql=5,Zl=6,ec=7;function tc(e){return e.id===Yl}function nc(e){return e.id===Jl}function rc(e){return function(e){return e.id===Vl}(e)||Ul(`LexicalBuilder: Can not apply a permanent mark from state id ${String(e.id)} (expected ${String(Vl)} temporary)`),Object.assign(e,{id:Jl})}const oc=new Set;class ic{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:Yl}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):Ka;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;nc(t)||Ul(`ExtensionRep: Can not configure from state id ${String(t.id)}`);const n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},o=function(e,t,n){return Object.assign(e,{config:t,id:ql,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:Xl,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;t.id!==Xl&&Ul(`ExtensionRep: register called in state id ${String(t.id)} (expected ${String(Ql)} initialized)`),this.extension.build&&(n=this.extension.build(e,t.config,t.registerState));const r={...t.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(e,t,n){return Object.assign(e,{id:Ql,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;n.id!==Ql&&Ul(`ExtensionRep: register called in state id ${String(n.id)} (expected ${String(Ql)} built)`);const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:Zl})}(n),()=>{const e=this.state;e.id!==ec&&Ul(`ExtensionRep: rollbackToBuiltState called in state id ${String(n.id)} (expected ${String(ec)} afterRegistration)`),this.state=function(e){return Object.assign(e,{id:Ql})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return t.id!==Zl&&Ul(`ExtensionRep: afterRegistration called in state id ${String(t.id)} (expected ${String(Zl)} registered)`),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:ec})}(t),n}getSignal(){return void 0===this._signal&&Ul("ExtensionRep.getSignal() called before register"),this._signal}getInitResult(){void 0===this.extension.init&&Ul(`ExtensionRep: getInitResult() called for Extension ${this.extension.name} that does not define init`);const e=this.state;return function(e){return e.id>=Xl}(e)||Ul(`ExtensionRep: getInitResult() called for ExtensionRep in state id ${String(e.id)} < ${String(Xl)} (initialized)`),e.initResult}getInitPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){const e=this.state;return function(e){return e.id>=ql}(e)||Ul(`ExtensionRep: getExtensionInitDependency called in state id ${String(e.id)} (expected >= ${String(ql)} configured)`),{config:e.config}}getPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Ul(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Ul(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=ec}(e)||Ul(`ExtensionRep getState called in state id ${String(e.id)} (expected ${String(ec)} afterRegistration)`),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||oc}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>=Ql})(e)||Ul(`Extension ${this.extension.name} used as a dependency before build`),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}}const sc={tag:ar};function ac(){const e=Vi();e.isEmpty()&&e.append(ui())}const lc={config:{setOptions:sc,updateOptions:sc},init:({$initialEditorState:e=ac})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:r}=o;if(r instanceof si)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:[ti,Cr,hr,jr,li]},cc=Symbol.for("@lexical/extension/LexicalBuilder");function uc(){}function dc(e){throw e}function fc(e){return Array.isArray(e)?e:[e]}const pc="0.41.0+dev.esm";class hc{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=pc,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(e){const t=[fc(lc)];for(const n of e)t.push(fc(n));return new hc(t)}static maybeFromEditor(e){const t=e[cc];return t&&(t.PACKAGE_VERSION!==pc&&Ul(`LexicalBuilder.fromEditor: The given editor was created with LexicalBuilder ${t.PACKAGE_VERSION} but this version is ${pc}. A project should have exactly one copy of LexicalBuilder`),t instanceof hc||Ul("LexicalBuilder.fromEditor: There are multiple copies of the same version of LexicalBuilder in your project, and this editor was created with another one. Your project, or one of its dependencies, has its package.json and/or bundler configured incorrectly.")),t}static fromEditor(e){const t=hc.maybeFromEditor(e);return void 0===t&&Ul("LexicalBuilder.fromEditor: The given editor was not created with LexicalBuilder"),t}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(gi({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[cc]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=uc;function t(){try{e()}finally{e=uc}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=Va(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&&Ul(`LexicalBuilder: A registered extension with name ${e.name} exists but does not match the given extension`),t}addEdge(e,t,n){const r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));const o=this.incomingEdges.get(t);o?o.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&Ul("LexicalBuilder: addExtension called after finalization");const t=fc(e),[n]=t;"string"!=typeof n.name&&Ul("LexicalBuilder: extension name must be string, not "+typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&Ul(`LexicalBuilder: Multiple extensions registered with name ${n.name}, names must be unique`),!r){r=new ic(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&Ul(`LexicalBuilder: extension ${n.name} conflicts with ${e}`);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&Ul(`LexicalBuilder: extension ${n.name} conflicts with ${e}`),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=fc(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(nc(o))return;const i=n.extension.name;var s;tc(o)||Ul(`LexicalBuilder: Circular dependency detected for Extension ${i} from ${r||"[unknown]"}`),tc(s=o)||Ul(`LexicalBuilder: Can not apply a temporary mark from state id ${String(s.id)} (expected ${String(Yl)} unmarked)`),o=Object.assign(s,{id:Vl}),n.state=o;const a=this.outgoingConfigEdges.get(i);if(a)for(const e of a.keys()){const n=this.extensionNameMap.get(e);n&&t(n,i)}o=rc(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())tc(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&&Ul(`LexicalBuilder: Expecting existing ExtensionRep for ${e.name}`);for(const e of t)n.configs.add(e)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){const t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],o=n.signal;for(const n of t){const t=n.register(e,o);t&&r.push(t)}for(const n of t){const t=n.afterRegistration(e);t&&r.push(t)}return Va(...r)}buildCreateEditorArgs(){const e={},t=new Set,n=new Map,r=new Map,o={},i={},s=this.sortedExtensionReps();for(const a of s){const{extension:s}=a;if(void 0!==s.onError&&(e.onError=s.onError),void 0!==s.disableEvents&&(e.disableEvents=s.disableEvents),void 0!==s.parentEditor&&(e.parentEditor=s.parentEditor),void 0!==s.editable&&(e.editable=s.editable),void 0!==s.namespace&&(e.namespace=s.namespace),void 0!==s.$initialEditorState&&(e.$initialEditorState=s.$initialEditorState),s.nodes)for(const e of Kl(s)){if("function"!=typeof e){const t=n.get(e.replace);t&&Ul(`LexicalBuilder: Extension ${s.name} can not register replacement for node ${e.replace.name} because ${t.extension.name} already did`),n.set(e.replace,a)}t.add(e)}if(s.html){if(s.html.export)for(const[e,t]of s.html.export.entries())r.set(e,t);s.html.import&&Object.assign(o,s.html.import)}s.theme&&Gl(i,s.theme)}Object.keys(i).length>0&&(e.theme=i),t.size&&(e.nodes=[...t]);const a=Object.keys(o).length>0,l=r.size>0;(a||l)&&(e.html={},a&&(e.html.import=o),l&&(e.html.export=r));for(const t of s)t.init(e);return e.onError||(e.onError=dc),e}}function gc(e){return e.canBeEmpty()}function mc(e,t,n=gc){return Va(e.registerCommand(tn,t=>{const n=co();if(!Ur(n))return!1;t.preventDefault();const r=function(e){const t=e.getNodes().filter(e=>ro(e)&&e.canIndent());if(t.length>0)return!0;const n=e.anchor,r=e.focus,o=r.isBefore(n)?r:n,i=yl(o.getNode());if(i.canIndent()){const e=i.getKey();let t=io();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),t=He(t),t.anchor.is(o))return!0}return!1}(n)?t.shiftKey?on:rn:nn;return e.dispatchCommand(r,void 0)},fi),e.registerCommand(rn,()=>{const e="number"==typeof t?t:t?t.peek():null;if(!Ur(co()))return!1;const r="function"==typeof n?n:n.peek();return kl(t=>{if(r(t)){const n=t.getIndent()+1;(!e||n<e)&&t.setIndent(n)}})},4))}const vc=new Set(["http:","https:","mailto:","sms:","tel:"]);class bc extends qo{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new bc(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",t={},n){super(n);const{target:r=null,rel:o=null,title:i=null}=t;this.__url=e,this.__target=r,this.__rel=o,this.__title=i}createDOM(e){const t=document.createElement("a");return this.updateLinkDOM(null,t,e),Ga(t,e.theme.link),t}updateLinkDOM(e,t,n){if(Ns(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:wc,priority:1})}}static importJSON(e){return kc().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=Nc(e);try{const t=new URL(Nc(e));if(!vc.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=kc(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(!Ur(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 yc(e){const t=La(e,"next");return[t,t.getFlipped()]}function xc(e,t){for(const n of t)if(n.origin.isAttached()){return void Ma(e,ja(n))}}function _c(e){const t=co();let n=null,r=null;Ur(t)&&(n=yc(t.anchor),r=yc(t.focus));for(const t of ma(e,"next")){const n=t.origin;if(Xo(n)&&!n.isInline()){const r=n.getChildren();if(r.length>0){const t=Es(e);t.append(...r),n.append(t)}_l(n,Pa(t),{$shouldSplit:()=>!1})}}if(e.isEmpty()){const t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}Ur(t)&&(xc(t.anchor,n),xc(t.focus,r),He(t))}function wc(e){let t=null;if(Ns(e)){const n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=kc(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function kc(e="",t){return Ts(new bc(e,t))}function Sc(e){return e instanceof bc}class Cc extends bc{__isUnlinked;constructor(e="",t={},n){super(e,t,n),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new Cc(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return Ec().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=Ec(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}}function Ec(e="",t){return Ts(new Cc(e,t))}function Tc(e){return e instanceof Cc}const Ac=St("TOGGLE_LINK_COMMAND");function Lc(e,t){if("element"===e.type){const n=e.getNode();Xo(n)||function(e){throw new Error(e)}("$getPointNode: element point is not an ElementNode");return n.getChildren()[e.offset+t]||null}return null}function Mc(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,s=co();if(null===s||!Ur(s)&&!Yr(s))return;if(Yr(s)){const e=s.getNodes();if(0===e.length)return;return void e.forEach(e=>{if(null===n){const t=Xs(e,e=>!Tc(e)&&Sc(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{const t=Xs(e,e=>!Tc(e)&&Sc(e));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==i&&t.setRel(i);else{const t=kc(n,{rel:i,target:r});e.insertBefore(t),t.append(e)}}})}if(s.isCollapsed()&&null===n)for(const e of s.getNodes()){const t=Xs(e,e=>!Tc(e)&&Sc(e));return void(null!==t&&(t.getChildren().forEach(e=>{t.insertBefore(e)}),t.remove()))}const a=s.extract();if(null===n){const e=new Set;return void a.forEach(t=>{const n=Xs(t,e=>!Tc(e)&&Sc(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())||Xo(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 s=r.findIndex(o),a=r.findLastIndex(o),l=0===s,c=a===r.length-1;if(l)i.forEach(t=>e.insertBefore(t));else if(c)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(a+1);if(t.length>0){const n=kc(e.getURL(),{rel:e.getRel(),target:e.getTarget(),title:e.getTitle()});i[i.length-1].insertAfter(n),t.forEach(e=>n.append(e))}}}(n,a),e.add(t)}})}const l=new Set,c=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===a.length){const e=a[0],t=Xs(e,Sc);if(null!==t)return c(t)}!function(e){const t=co();if(!Ur(t))return e();const n=He(t),r=n.isBackward(),o=Lc(n.anchor,r?-1:0),i=Lc(n.focus,r?0:-1),s=e();if(o||i){const e=co();if(Ur(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")}qi(He(t))}}}(()=>{let e=null;for(const t of a){if(!t.isAttached())continue;const s=Xs(t,Sc);if(s){c(s);continue}if(Xo(t)){if(!t.isInline())continue;if(Sc(t)){if(!(Tc(t)||null!==e&&e.getParentOrThrow().isParentOf(t))){c(t),e=t;continue}for(const e of t.getChildren())t.insertBefore(e);t.remove();continue}}const a=t.getPreviousSibling();Sc(a)&&a.is(e)?a.append(t):(e=kc(n,{rel:i,target:r,title:o}),t.insertAfter(e),e.append(t))}})}const Rc=/^\+?[0-9\s()-]{5,}$/;function Nc(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:Rc.test(e)?`tel:${e}`:`https://${e}`}function Oc(e,t){for(let n=0;n<t.length;n++){const r=t[n](e);if(r)return r}return null}const Pc=/[.,;\s]/;function Ic(e){return Pc.test(e)}function zc(e){return Ic(e[e.length-1])}function jc(e){return Ic(e[0])}function Dc(e){let t=e.getPreviousSibling();return Xo(t)&&(t=t.getLastDescendant()),null===t||vr(t)||Ir(t)&&zc(t.getTextContent())}function Fc(e){let t=e.getNextSibling();return Xo(t)&&(t=t.getFirstDescendant()),null===t||vr(t)||Ir(t)&&jc(t.getTextContent())}function Bc(e,t,n,r){if(!(e>0?Ic(n[e-1]):Dc(r[0])))return!1;return t<n.length?Ic(n[t]):Fc(r[r.length-1])}function $c(e,t,n){const r=[],o=[],i=[];let s=0,a=0;const l=[...e];for(;l.length>0;){const e=l[0],c=e.getTextContent().length,u=a;a+c<=t?(r.push(e),s+=c):u>=n?i.push(e):o.push(e),a+=c,l.shift()}return[s,r,o,i]}function Hc(e,t,n,r){const o=Ec(r.url,r.attributes);if(1===e.length){let i,s=e[0];0===t?[i,s]=s.splitText(n):[,i,s]=s.splitText(t,n);const a=Pr(r.text);return a.setFormat(i.getFormat()),a.setDetail(i.getDetail()),a.setStyle(i.getStyle()),o.append(a),i.replace(o),s}if(e.length>1){const r=e[0];let i,s=r.getTextContent().length;0===t?i=r:[,i]=r.splitText(t);const a=[];let l;for(let t=1;t<e.length;t++){const r=e[t],o=r.getTextContent().length,i=s;if(i<n)if(s+o<=n)a.push(r);else{const[e,t]=r.splitText(n-i);a.push(e),l=t}s+=o}const c=co(),u=c?c.getNodes().find(Ir):void 0,d=Pr(i.getTextContent());return d.setFormat(i.getFormat()),d.setDetail(i.getDetail()),d.setStyle(i.getStyle()),o.append(d,...a),u&&u===i&&(Ur(c)?d.select(c.anchor.offset,c.focus.offset):Yr(c)&&d.select(0,d.getTextContent().length)),i.replace(o),l}}function Wc(e,t,n){const r=e.getChildren(),o=r.length;for(let t=0;t<o;t++){const o=r[t];if(!Ir(o)||!o.isSimpleText())return Kc(e),void n(null,e.getURL())}const i=e.getTextContent(),s=Oc(i,t);if(null===s||s.text!==i)return Kc(e),void n(null,e.getURL());if(!Dc(e)||!Fc(e))return Kc(e),void n(null,e.getURL());const a=e.getURL();if(a!==s.url&&(e.setURL(s.url),n(s.url,a)),s.attributes){const t=e.getRel();t!==s.attributes.rel&&(e.setRel(s.attributes.rel||null),n(s.attributes.rel||null,t));const r=e.getTarget();r!==s.attributes.target&&(e.setTarget(s.attributes.target||null),n(s.attributes.target||null,r))}}function Kc(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 Uc={changeHandlers:[],excludeParents:[],matchers:[]};function Gc(e,t=Uc){const{matchers:n,changeHandlers:r,excludeParents:o}=t,i=(e,t)=>{for(const n of r)n(e,t)};return Va(e.registerNodeTransform(Cr,e=>{const t=e.getParentOrThrow(),r=e.getPreviousSibling();if(Tc(t)&&!t.getIsUnlinked())Wc(t,n,i);else if(!Sc(t)&&!o.some(e=>e(t))){if(e.isSimpleText()&&(jc(e.getTextContent())||!Tc(r))){const t=function(e){const t=[e];let n=e.getNextSibling();for(;null!==n&&Ir(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(Tc(e)&&!e.getIsUnlinked())return}let r=[...e];const o=r.map(e=>e.getTextContent()).join("");let i,s=o,a=0;for(;(i=Oc(s,t))&&null!==i;){const e=i.index,t=e+i.length;if(Bc(a+e,a+t,o,r)){const[o,,l,c]=$c(r,a+e,a+t);let u=!1;for(const e of l){const t=e.getParent();if(Tc(t)&&!t.getIsUnlinked()){u=!0;break}}if(u){a+=t,s=s.substring(t);continue}const d=Hc(l,a+e-o,a+t-o,i);r=d?[d,...c]:c,n(i.url,null),a=0}else a+=t;s=s.substring(t)}}(t,n,i)}!function(e,t,n){const r=e.getParent(),o=e.getPreviousSibling(),i=e.getNextSibling(),s=e.getTextContent();if(!Tc(r)||r.getIsUnlinked()){if(Tc(o)&&!o.getIsUnlinked()&&o.is(e.getPreviousSibling())&&e.getParent()===o.getParent()){if(!jc(s))return Kc(o),void n(null,o.getURL());if(a=s,o.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(a):/^\.[a-zA-Z0-9]{1,}/.test(a)){const r=o.getTextContent()+s,i=Oc(r,t);null!==i&&i.text===r&&(o.append(e),Wc(o,t,n),n(null,o.getURL()))}}var a;!Tc(i)||i.getIsUnlinked()||zc(s)||i.is(e.getNextSibling())&&e.getParent()===i.getParent()&&(Kc(i),n(null,i.getURL()))}}(e,n,i)}}),e.registerCommand(Ac,e=>{const t=co();if(null!==e||!Ur(t))return!1;return t.extract().forEach(e=>{const t=e.getParent();Tc(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1},1))}function Yc(e){throw new Error(e)}function Vc(e){let t=1,n=e.getParent();for(;null!=n;){if(fu(n)){const e=n.getParent();if(yu(e)){t++,n=e.getParent();continue}Yc("A ListItemNode must have a ListNode for a parent.")}return t}return t}function Jc(e){let t=e.getParent();yu(t)||Yc("A ListItemNode must have a ListNode for a parent.");let n=t;for(;null!==n;)n=n.getParent(),yu(n)&&(t=n);return t}function qc(e){let t=[];const n=e.getChildren().filter(fu);for(let e=0;e<n.length;e++){const r=n[e],o=r.getFirstChild();yu(o)?t=t.concat(qc(o)):t.push(r)}return t}function Xc(e){return fu(e)&&yu(e.getFirstChild())}function Qc(e){return du().append(e)}function Zc(e,t){return fu(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function eu(e){const t=co();if(null!==t){let n=t.getNodes();if(Ur(t)){const r=t.getStartEndPoints();null===r&&Yc("insertList: anchor should be defined");const[o]=r,i=o.getNode(),s=i.getParent();if(Cs(i)){const e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{const e=ui();i.append(e),n=e.select().getNodes()}}else if(Zc(i,n)){const t=bu(e);if(Cs(s)){i.replace(t);const e=du();Xo(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(fu(i)){const e=i.getParentOrThrow();tu(t,e.getChildren()),e.replace(t)}return}}const r=new Set;for(let t=0;t<n.length;t++){const o=n[t];if(Xo(o)&&o.isEmpty()&&!fu(o)&&!r.has(o.getKey())){nu(o,e);continue}let i=zi(o)?o.getParent():fu(o)&&o.isEmpty()?o:null;for(;null!=i;){const t=i.getKey();if(yu(i)){if(!r.has(t)){const n=bu(e);tu(n,i.getChildren()),i.replace(n),r.add(t)}break}{const n=i.getParent();if(Cs(n)&&!r.has(t)){r.add(t),nu(i,e);break}i=n}}}}}function tu(e,t){e.splice(e.getChildrenSize(),0,t)}function nu(e,t){if(yu(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=du();let i;if(tu(o,e.getChildren()),yu(n)&&t===n.getListType())n.append(o),yu(r)&&t===r.getListType()&&(tu(n,r.getChildren()),r.remove()),i=n;else if(yu(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const n=bu(t);n.append(o),e.replace(n),i=n}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());const s=co();return Ur(s)&&(i.getKey()===s.anchor.key&&s.anchor.set(o.getKey(),s.anchor.offset,"element"),i.getKey()===s.focus.key&&s.focus.set(o.getKey(),s.focus.offset,"element")),e.remove(),i}function ru(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&Xc(n)&&Xc(r)&&(ru(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function ou(e){const t="check"!==e.getListType();let n=e.getStart();for(const r of e.getChildren())fu(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),yu(r.getFirstChild())||n++)}function iu(e){const t=new Set;if(Xc(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(Xc(r)&&Xc(o)){const n=o.getFirstChild();if(yu(n)){n.append(e);const o=r.getFirstChild();if(yu(o)){tu(n,o.getChildren()),r.remove(),t.add(r.getKey())}}}else if(Xc(r)){const t=r.getFirstChild();if(yu(t)){const n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(Xc(o)){const t=o.getFirstChild();yu(t)&&t.append(e)}else if(yu(n)){const t=du().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),i=bu(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 su(e){if(Xc(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(yu(n?n.getParent():void 0)&&fu(n)&&yu(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=du(),i=bu(r);o.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));const s=du(),a=bu(r);s.append(a),tu(a,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(s),n.replace(e)}}}function au(e=!1){const t=co();if(!Ur(t)||!t.isCollapsed())return!1;const n=t.anchor.getNode();let r=null;if(fu(n)&&0===n.getChildrenSize())r=n;else if(Ir(n)){const e=n.getParent();fu(e)&&e.getChildren().every(e=>Ir(e)&&""===e.getTextContent().trim())&&(r=e)}if(null===r)return!1;const o=Jc(r),i=r.getParent();yu(i)||Yc("A ListItemNode must have a ListNode for a parent.");const s=i.getParent();let a;if(Cs(s))a=ui(),o.insertAfter(a);else{if(!fu(s))return!1;a=du(),s.insertAfter(a)}a.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=bu(i.getListType(),t);if(fu(a)){const e=du();e.append(n),a.insertAfter(e)}else a.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||!fu(e)&&!yu(e))break;t=e}t.remove()}(r),!0}class lu extends qo{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;const t=e.getParent();yu(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:qo,importDOM:{li:()=>({conversion:cu,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();!yu(r)||"check"!==r.getListType()||yu(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,s=i?i.listitem:void 0;let a;i&&i.nested&&(a=i.nested.listitem);void 0!==s&&r.push(...Ua(s));if(i){const e=n.getParent(),t=yu(e)&&"check"===e.getListType(),s=n.getChecked();t&&!s||o.push(i.listitemUnchecked),t&&s||o.push(i.listitemChecked),t&&r.push(s?i.listitemChecked:i.listitemUnchecked)}if(void 0!==a){const e=Ua(a);n.getChildren().some(e=>yu(e))?r.push(...e):o.push(...e)}o.length>0&&Ya(e,...o);r.length>0&&Ga(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=Qa(t.__textStyle);for(const t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(const t in Qa(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(Xo(n)&&this.canMergeWith(n)){const e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(fu(e))return super.replace(e);this.setIndent(0);const n=this.getParentOrThrow();if(!yu(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{const t=bu(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&&(Xo(e)||Yc("includeChildren should only be true for ElementNodes"),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){const n=this.getParentOrThrow();if(yu(n)||Yc("insertAfter: list node is not parent of list item node"),fu(e))return super.insertAfter(e,t);const r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){const o=bu(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&&Xc(t)&&Xc(n)&&(ru(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){const n=du().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){const t=ui();this.getChildren().forEach(e=>t.append(e));const n=this.getParentOrThrow(),r=n.getParentOrThrow(),o=fu(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 yu(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(;fu(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&Yc("Invalid indent value."),(e=Math.floor(e))>=0||Yc("Indent value must be non-negative.");let t=this.getIndent();for(;t!==e;)t<e?(iu(this),t++):(su(this),t--);return this}canInsertAfter(e){return fu(e)}canReplaceWith(e){return fu(e)}canMergeWith(e){return fu(e)||di(e)}extractWithChild(e,t){if(!Ur(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 bu("bullet")}canMergeWhenEmpty(){return!0}}function cu(e){if(e.classList.contains("task-list-item"))for(const t of e.children)if("INPUT"===t.tagName)return uu(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 uu(t.children[0]);const t=e.getAttribute("aria-checked");return{node:du("true"===t||"false"!==t&&void 0)}}function uu(e){if(!("checkbox"===e.getAttribute("type")))return{node:null};return{node:du(e.hasAttribute("checked"))}}function du(e){return Ts(new lu(void 0,e))}function fu(e){return e instanceof lu}class pu extends qo{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){const t=e.getNextSibling();yu(t)&&e.getListType()===t.getListType()&&ru(e,t)}(e),ou(e)},extends:qo,importDOM:{ol:()=>({conversion:mu,priority:0}),ul:()=>({conversion:mu,priority:0})}})}constructor(e="number",t=1,n){super(n);const r=vu[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,hu(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(hu(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 Os(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];fu(t)||(r===n&&(r=[...n]),r[e]=du().append(!Xo(t)||yu(t)||t.isInline()?t:Pr(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return fu(e)}}function hu(e,t,n){const r=[],o=[],i=t.list;if(void 0!==i){const e=i[`${n.__tag}Depth`]||[],t=Vc(n)-1,s=t%e.length,a=e[s],l=i[n.__tag];let c;const u=i.nested,d=i.checklist;if(void 0!==u&&u.list&&(c=u.list),void 0!==l&&r.push(l),void 0!==d&&"check"===n.__listType&&r.push(d),void 0!==a){r.push(...Ua(a));for(let t=0;t<e.length;t++)t!==s&&o.push(n.__tag+t)}if(void 0!==c){const e=Ua(c);t>1?r.push(...e):o.push(...e)}}o.length>0&&Ya(e,...o),r.length>0&&Ga(e,...r)}function gu(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(fu(r)){t.push(r);const e=r.getChildren();e.length>1&&e.forEach(e=>{yu(e)&&t.push(Qc(e))})}else t.push(Qc(r))}return t}function mu(e){const t=e.nodeName.toLowerCase();let n=null;if("ol"===t){n=bu("number",e.start)}else"ul"===t&&(n=function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list")||"1"===e.getAttribute("data-is-checklist"))return!0;for(const t of e.childNodes)if(Os(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?bu("check"):bu("bullet"));return{after:gu,node:n}}const vu={ol:"number",ul:"bullet"};function bu(e="number",t=1){return Ts(new pu(e,t))}function yu(e){return e instanceof pu}const xu=St("UPDATE_LIST_START_COMMAND"),_u=St("INSERT_UNORDERED_LIST_COMMAND"),wu=St("INSERT_ORDERED_LIST_COMMAND"),ku=St("REMOVE_LIST_COMMAND");function Su(e,t){const n=Va(e.registerCommand(wu,()=>(eu("number"),!0),1),e.registerCommand(xu,e=>{const{listNodeKey:t,newStart:n}=e,r=Hi(t);return!!yu(r)&&("number"===r.getListType()&&(r.setStart(n),ou(r)),!0)},1),e.registerCommand(_u,()=>(eu("bullet"),!0),1),e.registerCommand(ku,()=>(function(){const e=co();if(Ur(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(Zc(r,n))t.add(Jc(r));else for(let e=0;e<n.length;e++){const r=n[e];if(zi(r)){const e=bl(r,lu);null!=e&&t.add(Jc(e))}}for(const n of t){let t=n;const r=qc(n);for(const n of r){const r=ui().setTextStyle(e.style).setTextFormat(e.format);tu(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&Ma(e.anchor,ja(ma(r,"next"))),n.__key===e.focus.key&&Ma(e.focus,ja(ma(r,"next"))),n.remove()}n.remove()}}}(),!0),1),e.registerCommand(Pt,()=>au(!!(t&&t.restoreNumbering)),1),e.registerNodeTransform(lu,e=>{const t=e.getFirstChild();if(t){if(Ir(t)){const n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const t=co();Ur(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(fu(t)&&e.is(t.getFirstChild())){const n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}));return n}function Cu(e){const t=e=>{const t=e.getParent();if(yu(e.getFirstChild())||!yu(t))return;const n=Xs(e,e=>fu(e)&&yu(e.getParent())&&fu(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(fu(n)){const r=n.getPreviousSibling();if(fu(r)){const n=function(e){let t=e,n=t.getFirstChild();for(;yu(n);){const e=n.getLastChild();if(!fu(e))break;t=e,n=t.getFirstChild()}return t}(r),o=n.getParent();if(yu(o)){const n=Vc(o);n+1<Vc(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(pu,e=>{const n=[e];for(;n.length>0;){const e=n.shift();if(yu(e))for(const r of e.getChildren())if(fu(r)){t(r);const e=r.getFirstChild();yu(e)&&n.push(e)}}})}const Eu=v(null);function Tu(){const e=b(Eu);return null==e&&function(e){throw new Error(e)}("LexicalComposerContext.useLexicalComposerContext: cannot find a LexicalComposerContext"),e}var Au,Lu,Mu={exports:{}},Ru={};var Nu=(Lu||(Lu=1,Mu.exports=function(){if(Au)return Ru;Au=1;var e=y,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 s(e,n,s){var a,l={},c=null,u=null;for(a in void 0!==s&&(c=""+s),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,a)&&!i.hasOwnProperty(a)&&(l[a]=n[a]);if(e&&e.defaultProps)for(a in n=e.defaultProps)void 0===l[a]&&(l[a]=n[a]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return Ru.Fragment=n,Ru.jsx=s,Ru.jsxs=s,Ru}()),Mu.exports);const Ou="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Pu=Ou?_:w,Iu={tag:ar};function zu({initialConfig:e,children:t}){const n=x(()=>{const{theme:t,namespace:n,nodes:r,onError:o,editorState:i,html:s}=e,a=function(e,t){return{getTheme:function(){return null!=t?t:null}}}(0,t),l=gi({editable:e.editable,html:s,namespace:n,nodes:r,onError:e=>o(e,l),theme:t});return function(e,t){if(null===t)return;if(void 0===t)e.update(()=>{const t=Vi();if(t.isEmpty()){const n=ui();t.append(n);const r=Ou?document.activeElement:null;(null!==co()||null!==r&&r===e.getRootElement())&&n.select()}},Iu);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,Iu);break}case"object":e.setEditorState(t,Iu);break;case"function":e.update(()=>{Vi().isEmpty()&&t(e)},Iu)}}(l,i),[l,a]},[]);return Pu(()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),Nu.jsx(Eu.Provider,{value:n,children:t})}function ju(e,t,n,r,o){if(null===e||0===n.size&&0===r.size&&!o)return 0;const i=t._selection,s=e._selection;if(o)return 1;if(!(Ur(i)&&Ur(s)&&s.isCollapsed()&&i.isCollapsed()))return 0;const a=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||ni(n)||o.push(n)}return o}(t,n,r);if(0===a.length)return 0;if(a.length>1){const n=t._nodeMap,r=n.get(i.anchor.key),o=n.get(s.anchor.key);return r&&o&&!e._nodeMap.has(r.__key)&&Ir(r)&&1===r.__text.length&&1===i.anchor.offset?2:0}const l=a[0],c=e._nodeMap.get(l.__key);if(!Ir(c)||!Ir(l)||c.__mode!==l.__mode)return 0;const u=c.__text,d=l.__text;if(u===d)return 0;const f=i.anchor,p=s.anchor;if(f.key!==p.key||"text"!==f.type)return 0;const h=f.offset,g=p.offset,m=d.length-u.length;return 1===m&&g===h-1?2:-1===m&&g===h+1?3:-1===m&&g===h?4:0}function Du(e,t){let n=Date.now(),r=0,o=Date.now(),i=0,s=null;return(a,l,c,u,d,f)=>{const p=Date.now();if(f.has(fr)&&(o=n,i=r,s=a),f.has(sr))return r=0,n=p,2;f.has(pr)&&s&&(n=o,r=i,a=s);const h=ju(a,l,u,d,e.isComposing()),g=(()=>{const o=null===c||c.editor===e,i=f.has("history-push");if(!i&&o&&f.has(ar))return 0;if(1===h)return 2;if(null===a)return 1;const s=l._selection;if(!(u.size>0||d.size>0))return null!==s?0:2;const g="number"==typeof t?t:t.peek();if(!1===i&&0!==h&&h===r&&p<n+g&&o)return 0;if(1===u.size){if(function(e,t,n){const r=t._nodeMap.get(e),o=n._nodeMap.get(e),i=t._selection,s=n._selection;return!(Ur(i)&&Ur(s)&&"element"===i.anchor.type&&"element"===i.focus.type&&"text"===s.anchor.type&&"text"===s.focus.type||!Ir(r)||!Ir(o)||r.__parent!==o.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>o.exportJSON()))}(Array.from(u)[0],a,l))return 0}return 1})();return n=p,r=h,g}}function Fu(e){e.undoStack=[],e.redoStack=[],e.current=null}function Bu(e,t,n){const r=Du(e,n),o=Va(e.registerCommand($t,()=>(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(mn,!0)),0===r.length&&e.dispatchCommand(vn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:sr})}}(e,t),!0),fi),e.registerCommand(Ht,()=>(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(vn,!0));const i=n.pop();0===n.length&&e.dispatchCommand(mn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:sr})}}(e,t),!0),fi),e.registerCommand(hn,()=>(Fu(t),!1),fi),e.registerCommand(gn,()=>(Fu(t),e.dispatchCommand(mn,!1),e.dispatchCommand(vn,!1),!0),fi),e.registerUpdateListener(({editorState:n,prevEditorState:o,dirtyLeaves:i,dirtyElements:s,tags:a})=>{const l=t.current,c=t.redoStack,u=t.undoStack,d=null===l?null:l.editorState;if(null!==l&&n===d)return;const f=r(o,n,l,i,s,a);if(1===f)0!==c.length&&(t.redoStack=[],e.dispatchCommand(mn,!1)),null!==l&&(u.push({...l}),e.dispatchCommand(vn,!0));else if(2===f)return;t.current={editor:e,editorState:n}}));return o}function $u({delay:e,externalHistoryState:t}){const[n]=Tu();return function(e,t,n=1e3){const r=x(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);w(()=>Bu(e,r,n),[n,e,r])}(n,t,e),null}function Hu({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}){const[n]=Tu();return w(()=>{if(!n.hasNodes([pu,lu]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),w(()=>Va(Su(n,{restoreNumbering:t}),e?Cu(n):()=>{}),[n,e,t]),function(e){w(()=>Su(e),[e])}(n),null}function Wu({maxIndent:e,$canIndent:t}){const[n]=Tu();return w(()=>mc(n,e,t),[n,e,t]),null}function Ku(e,t){const n=Oi(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const t of n)if(!Gu.has(t.nodeName)){const n=Yu(t,e,o,!1);null!==n&&(r=r.concat(n))}return function(e){for(const t of e)t.getNextSibling()instanceof ai&&t.insertAfter(mr());for(const t of e){const e=t.getChildren();for(const n of e)t.insertBefore(n);t.remove()}}(o),r}function Uu(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=Xo(t)&&t.excludeFromCopy("html");let s=t;null!==r&&Ir(t)&&(s=nl(r,t,"clone"));const a=Xo(s)?s.getChildren():[],l=wi(e,s.getType());let c;c=l&&void 0!==l.exportDOM?l.exportDOM(e,s):s.exportDOM(e);const{element:u,after:d}=c;if(!u)return!1;const f=document.createDocumentFragment();for(let n=0;n<a.length;n++){const i=a[n],s=Uu(e,i,f,r);!o&&Xo(t)&&s&&t.extractWithChild(i,r,"html")&&(o=!0)}if(o&&!i){if((Os(u)||Is(u))&&u.append(f),n.append(u),d){const e=d.call(s,u);e&&(Is(u)?u.replaceChildren(e):u.replaceWith(e))}}else n.append(f);return o}const Gu=new Set(["STYLE","SCRIPT"]);function Yu(e,t,n,r,o=new Map,i){let s=[];if(Gu.has(e.nodeName))return s;let a=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),c=l?l(e):null;let u=null;if(null!==c){u=c.after;const t=c.node;if(a=Array.isArray(t)?t[t.length-1]:t,null!==a){for(const[,e]of o)if(a=e(a,i),!a)break;a&&s.push(...Array.isArray(t)?t:[a])}null!=c.forChild&&o.set(e.nodeName,c.forChild)}const d=e.childNodes;let f=[];const p=(null==a||!Cs(a))&&(null!=a&&ro(a)||r);for(let e=0;e<d.length;e++)f.push(...Yu(d[e],t,n,p,new Map(o),a));return null!=u&&(f=u(f)),js(e)&&(f=Vu(e,f,p?()=>{const e=new ai;return n.push(e),e}:ui)),null==a?f.length>0?s=s.concat(f):js(e)&&function(e){if(null==e.nextSibling||null==e.previousSibling)return!1;return zs(e.nextSibling)&&zs(e.previousSibling)}(e)&&(s=s.concat(mr())):Xo(a)&&a.append(...f),s}function Vu(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const s=t[e];if(ro(s))r&&!s.getFormat()&&s.setFormat(r),o.push(s);else if(i.push(s),e===t.length-1||e<t.length-1&&ro(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}function Ju(e){throw new Error(e)}function qu(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes)){const r=function(e){const t=[];for(let n=0;n<e.length;n++){const r=Fo(e[n]);Ir(r)&&ol(r),t.push(r)}return t}(e.nodes);return Xu(n,r,t)}}catch(e){console.error(e)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{const e=(new DOMParser).parseFromString(function(e){if(window.trustedTypes&&window.trustedTypes.createPolicy){return window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e)}return e}(o),"text/html");return Xu(n,Ku(n,e),t)}catch(e){console.error(e)}const s=i||e.getData("text/uri-list");if(null!=s)if(Ur(t)){const e=s.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=co();if(Ur(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([Dr()]):n.insertText(r)}}}else t.insertRawText(s)}function Xu(e,t,n){e.dispatchCommand(Et,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Ur(e)&&e.isCollapsed()){let t=null;const n=La(e.anchor,"previous");if(n)if(sa(n))t=n.origin;else{const e=wa(n,ma(Vi(),"next").getFlipped());for(const n of e){if(Ir(n.origin)){t=n.origin;break}if(Xo(n.origin)&&!n.origin.isInline())break}}if(t&&Ir(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 Qu(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=Xo(n)&&n.excludeFromCopy("html");let s=n;null!==t&&Ir(s)&&(s=nl(t,s,"clone"));const a=Xo(s)?s.getChildren():[],l=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&Ju(`LexicalNode: Node ${n.name} does not implement .exportJSON().`),Xo(e)){const e=t.children;Array.isArray(e)||Ju(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`)}return t}(s);Ir(s)&&0===s.getTextContentSize()&&(o=!1);for(let r=0;r<a.length;r++){const i=a[r],s=Qu(e,t,i,l.children);!o&&Xo(n)&&s&&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 Zu=null;async function ed(e,t,n){if(null!==Zu)return!1;if(null!==t)return new Promise((r,o)=>{e.update(()=>{r(td(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,s=Rs(o);if(null===r||null===s)return!1;const a=i.createElement("span");a.style.cssText="position: fixed; top: -1000px;",a.append(i.createTextNode("#")),r.append(a);const l=new Range;return l.setStart(a,0),l.setEnd(a,1),s.removeAllRanges(),s.addRange(l),new Promise((t,r)=>{const s=e.registerCommand(dn,r=>(wl(r,ClipboardEvent)&&(s(),null!==Zu&&(o.clearTimeout(Zu),Zu=null),t(td(e,r,n))),!0),4);Zu=o.setTimeout(()=>{s(),Zu=null,t(!1)},50),i.execCommand("copy"),a.remove()})}function td(e,t,n){if(void 0===n){const t=Rs(e._window),r=co();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!Ei(e,o,i))return!1;n=rd(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(function(e,t){for(const[n]of nd)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 nd=[["text/html",function(e,t=co()){return null==t&&Ju("Expected valid LexicalSelection"),Ur(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=Vi().getChildren();for(let o=0;o<r.length;o++)Uu(e,r[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=co()){return null==t&&Ju("Expected valid LexicalSelection"),Ur(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=Vi().getChildren();for(let o=0;o<r.length;o++){Qu(e,t,r[o],n)}return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function rd(e=co()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=Fs();for(const[r,o]of nd){const i=o(n,e);null!==i&&(t[r]=i)}}return t}function od(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 id="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,sd=id&&"documentMode"in document?document.documentMode:null,ad=id&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ld=!(!id||!("InputEvent"in window)||sd)&&"getTargetRanges"in new window.InputEvent("input"),cd=id&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ud=id&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,dd=id&&/^(?=.*Chrome).*/i.test(navigator.userAgent),fd=id&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&ad&&!dd,pd=St("DRAG_DROP_PASTE_FILE");class hd extends qo{static getType(){return"quote"}static clone(e){return new hd(e.__key)}createDOM(e){const t=document.createElement("blockquote");return Ga(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:xd,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Os(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 gd().updateFromJSON(e)}insertNewAfter(e,t){const n=ui(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=ui();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function gd(){return Ts(new hd)}function md(e){return e instanceof hd}class vd extends qo{__tag;static getType(){return"heading"}static clone(e){return new vd(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){const t=this.getWritable();return this.__tag=e,t}createDOM(e){const t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){Ga(n,r[t])}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:yd,priority:0}),h2:e=>({conversion:yd,priority:0}),h3:e=>({conversion:yd,priority:0}),h4:e=>({conversion:yd,priority:0}),h5:e=>({conversion:yd,priority:0}),h6:e=>({conversion:yd,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&bd(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>bd(e)?{conversion:e=>({node:_d("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Os(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 _d(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?ui():_d(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=ui();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?ui():_d(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function bd(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function yd(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=_d(t),null!==e.style&&(Us(e,n),n.setFormat(e.style.textAlign))),{node:n}}function xd(e){const t=gd();return null!==e.style&&(t.setFormat(e.style.textAlign),Us(e,t)),{node:t}}function _d(e="h1"){return Ts(new vd(e))}function wd(e){return e instanceof vd}function kd(e){let t=null;if(wl(e,DragEvent)?t=e.dataTransfer:wl(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 Sd(e){return ei(Ui(e))}function Cd(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Ed(e){const t=Va(e.registerCommand(Tt,e=>{const t=co();return!!Yr(t)&&(t.clear(),!0)},fi),e.registerCommand(Nt,e=>{const t=co();return Ur(t)?(t.deleteCharacter(e),!0):!!Yr(t)&&(t.deleteNodes(),!0)},fi),e.registerCommand(Dt,e=>{const t=co();return!!Ur(t)&&(t.deleteWord(e),!0)},fi),e.registerCommand(Ft,e=>{const t=co();return!!Ur(t)&&(t.deleteLine(e),!0)},fi),e.registerCommand(It,t=>{const n=co();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)qu(r,n,e);else if(Ur(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0},fi),e.registerCommand(jt,()=>{const e=co();return!!Ur(e)&&(e.removeText(),!0)},fi),e.registerCommand(Bt,e=>{const t=co();return!!Ur(t)&&(t.formatText(e),!0)},fi),e.registerCommand(an,e=>{const t=co();if(!Ur(t)&&!Yr(t))return!1;const n=t.getNodes();for(const t of n){const n=Xs(t,e=>Xo(e)&&!e.isInline());null!==n&&n.setFormat(e)}return!0},fi),e.registerCommand(Ot,e=>{const t=co();return!!Ur(t)&&(t.insertLineBreak(e),!0)},fi),e.registerCommand(Pt,()=>{const e=co();return!!Ur(e)&&(e.insertParagraph(),!0)},fi),e.registerCommand(nn,()=>{const e=Dr(),t=co();return Ur(t)&&(e.setFormat(t.format),e.setStyle(t.style)),yo([e]),!0},fi),e.registerCommand(rn,()=>kl(e=>{const t=e.getIndent();e.setIndent(t+1)}),fi),e.registerCommand(on,()=>kl(e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),fi),e.registerCommand(Vt,e=>{const t=co();if(Yr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(Ur(t)){const n=gs(t.focus,!0);if(!e.shiftKey&&ei(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},fi),e.registerCommand(Jt,e=>{const t=co();if(Yr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(Ur(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===Vi().getChildrenSize()}(t))return e.preventDefault(),!0;const n=gs(t.focus,!1);if(!e.shiftKey&&ei(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},fi),e.registerCommand(Gt,e=>{const t=co();if(Yr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),tl(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!Ur(t))return!1;if(ul(t,!0)){const n=e.shiftKey;return e.preventDefault(),fl(t,n,!0),!0}return!1},fi),e.registerCommand(Kt,e=>{const t=co();if(Yr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),tl(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!Ur(t))return!1;const n=e.shiftKey;return!!ul(t,!1)&&(e.preventDefault(),fl(t,n,!1),!0)},fi),e.registerCommand(Qt,t=>{if(Sd(t.target))return!1;const n=co();if(Ur(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(ni(n))return!1;const r=yl(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(on,void 0);if(ud&&"ko-KR"===navigator.language)return!1}else if(!Yr(n))return!1;return t.preventDefault(),e.dispatchCommand(Nt,!0)},fi),e.registerCommand(en,t=>{if(Sd(t.target))return!1;const n=co();return!(!Ur(n)&&!Yr(n))&&(t.preventDefault(),e.dispatchCommand(Nt,!1))},fi),e.registerCommand(qt,t=>{const n=co();if(!Ur(n))return!1;if(Cd(n),null!==t){if((ud||cd||fd)&&ld)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(Ot,!1)}return e.dispatchCommand(Pt,void 0)},fi),e.registerCommand(Zt,()=>!!Ur(co())&&(e.blur(),!0),fi),e.registerCommand(sn,t=>{const[,n]=kd(t);if(n.length>0){const r=od(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=Ui(o);if(null!==i){const e=io();if(Ir(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")}qi(He(e))}e.dispatchCommand(pd,n)}return t.preventDefault(),!0}return!!Ur(co())},fi),e.registerCommand(ln,e=>{const[t]=kd(e),n=co();return!(t&&!Ur(n))},fi),e.registerCommand(cn,e=>{const[t]=kd(e),n=co();if(t&&!Ur(n))return!1;const r=od(e.clientX,e.clientY);if(null!==r){ei(Ui(r.node))&&e.preventDefault()}return!0},fi),e.registerCommand(pn,()=>(function(e){const t=Vi();if(Ur(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"),He(e),e}{const e=t.select(0,t.getChildrenSize());qi(He(e))}}(),!0),fi),e.registerCommand(dn,t=>(ed(e,wl(t,ClipboardEvent)?t:null),!0),fi),e.registerCommand(fn,t=>(async function(e,t){await ed(t,wl(e,ClipboardEvent)?e:null),t.update(()=>{const e=co();Ur(e)?e.removeText():Yr(e)&&e.getNodes().forEach(e=>e.remove())})}(t,e),!0),fi),e.registerCommand(zt,t=>{const[,n,r]=kd(t);if(n.length>0&&!r)return e.dispatchCommand(pd,n),!0;if(Ps(t.target)&&Ci(t.target))return!1;return null!==co()&&(function(e,t){e.preventDefault(),t.update(()=>{const n=co(),r=wl(e,InputEvent)||wl(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&qu(r,n,t)},{tag:"paste"})}(t,e),!0)},fi),e.registerCommand(Xt,e=>{const t=co();return Ur(t)&&Cd(t),!1},fi),e.registerCommand(tn,e=>{const t=co();return Ur(t)&&Cd(t),!1},fi));return t}function Td(e,t,n,r){w(()=>{e.hasNodes([Cc])||function(e){throw new Error(e)}("LexicalAutoLinkPlugin: AutoLinkNode not registered on editor")}),w(()=>Gc(e,{changeHandlers:n?[n]:[],excludeParents:r??[],matchers:t}),[e,t,n,r])}function Ad({matchers:e,onChange:t,excludeParents:n}){const[r]=Tu();return Td(r,e,t,n),null}const Ld="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_:w;function Md(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function Rd(){return function(e){const[t]=Tu(),n=x(()=>e(t),[t,e]),[r,o]=k(()=>n.initialValueFn()),i=S(r);return Ld(()=>{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}(Md)}const Nd={black:"#000",white:"#fff"},Od="#e57373",Pd="#ef5350",Id="#f44336",zd="#d32f2f",jd="#c62828",Dd="#f3e5f5",Fd="#ce93d8",Bd="#ba68c8",$d="#ab47bc",Hd="#9c27b0",Wd="#7b1fa2",Kd="#e3f2fd",Ud="#90caf9",Gd="#42a5f5",Yd="#1976d2",Vd="#1565c0",Jd="#4fc3f7",qd="#29b6f6",Xd="#03a9f4",Qd="#0288d1",Zd="#01579b",ef="#81c784",tf="#66bb6a",nf="#4caf50",rf="#388e3c",of="#2e7d32",sf="#1b5e20",af="#ffb74d",lf="#ffa726",cf="#ff9800",uf="#f57c00",df="#e65100",ff={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 pf(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 hf=Object.freeze({__proto__:null,default:pf}),gf="$$material";function mf(){return mf=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},mf.apply(null,arguments)}function vf(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 bf=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0!==e.speedy&&e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1],n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n,this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),yf="-ms-",xf="-moz-",_f="-webkit-",wf="comm",kf="rule",Sf="decl",Cf="@keyframes",Ef=Math.abs,Tf=String.fromCharCode,Af=Object.assign;function Lf(e){return e.trim()}function Mf(e,t,n){return e.replace(t,n)}function Rf(e,t){return e.indexOf(t)}function Nf(e,t){return 0|e.charCodeAt(t)}function Of(e,t,n){return e.slice(t,n)}function Pf(e){return e.length}function If(e){return e.length}function zf(e,t){return t.push(e),e}var jf=1,Df=1,Ff=0,Bf=0,$f=0,Hf="";function Wf(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:jf,column:Df,length:s,return:""}}function Kf(e,t){return Af(Wf("",null,null,"",null,null,0),e,{length:-e.length},t)}function Uf(){return $f=Bf>0?Nf(Hf,--Bf):0,Df--,10===$f&&(Df=1,jf--),$f}function Gf(){return $f=Bf<Ff?Nf(Hf,Bf++):0,Df++,10===$f&&(Df=1,jf++),$f}function Yf(){return Nf(Hf,Bf)}function Vf(){return Bf}function Jf(e,t){return Of(Hf,e,t)}function qf(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 Xf(e){return jf=Df=1,Ff=Pf(Hf=e),Bf=0,[]}function Qf(e){return Hf="",e}function Zf(e){return Lf(Jf(Bf-1,np(91===e?e+2:40===e?e+1:e)))}function ep(e){for(;($f=Yf())&&$f<33;)Gf();return qf(e)>2||qf($f)>3?"":" "}function tp(e,t){for(;--t&&Gf()&&!($f<48||$f>102||$f>57&&$f<65||$f>70&&$f<97););return Jf(e,Vf()+(t<6&&32==Yf()&&32==Gf()))}function np(e){for(;Gf();)switch($f){case e:return Bf;case 34:case 39:34!==e&&39!==e&&np($f);break;case 40:41===e&&np(e);break;case 92:Gf()}return Bf}function rp(e,t){for(;Gf()&&e+$f!==57&&(e+$f!==84||47!==Yf()););return"/*"+Jf(t,Bf-1)+"*"+Tf(47===e?e:Gf())}function op(e){for(;!qf(Yf());)Gf();return Jf(e,Bf)}function ip(e){return Qf(sp("",null,null,null,[""],e=Xf(e),0,[0],e))}function sp(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,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=Gf()){case 40:if(108!=h&&58==Nf(k,d-1)){-1!=Rf(k+=Mf(Zf(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Zf(b);break;case 9:case 10:case 13:case 32:k+=ep(h);break;case 92:k+=tp(Vf()-1,7);continue;case 47:switch(Yf()){case 42:case 47:zf(lp(rp(Gf(),Vf()),t,n),l);break;default:k+="/"}break;case 123*g:a[c++]=Pf(k)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(k=Mf(k,/\f/g,"")),p>0&&Pf(k)-d&&zf(p>32?cp(k+";",r,n,d-1):cp(Mf(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(zf(w=ap(k,t,n,c,u,o,a,y,x=[],_=[],d),i),123===b)if(0===u)sp(k,t,w,w,x,i,d,a,_);else switch(99===f&&110===Nf(k,3)?100:f){case 100:case 108:case 109:case 115:sp(e,w,w,r&&zf(ap(e,w,w,0,0,o,a,y,o,x=[],d),_),o,_,d,a,r?x:_);break;default:sp(k,w,w,w,[""],_,0,a,_)}}c=u=p=0,g=v=1,y=k="",d=s;break;case 58:d=1+Pf(k),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Uf())continue;switch(k+=Tf(b),b*g){case 38:v=u>0?1:(k+="\f",-1);break;case 44:a[c++]=(Pf(k)-1)*v,v=1;break;case 64:45===Yf()&&(k+=Zf(Gf())),f=Yf(),u=d=Pf(y=k+=op(Vf())),b++;break;case 45:45===h&&2==Pf(k)&&(g=0)}}return i}function ap(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,f=0===o?i:[""],p=If(f),h=0,g=0,m=0;h<r;++h)for(var v=0,b=Of(e,d+1,d=Ef(g=s[h])),y=e;v<p;++v)(y=Lf(g>0?f[v]+" "+b:Mf(b,/&\f/g,f[v])))&&(l[m++]=y);return Wf(e,t,n,0===o?kf:a,l,c,u)}function lp(e,t,n){return Wf(e,t,n,wf,Tf($f),Of(e,2,-2),0)}function cp(e,t,n,r){return Wf(e,t,n,Sf,Of(e,0,r),Of(e,r+1,-1),r)}function up(e,t){for(var n="",r=If(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function dp(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Sf:return e.return=e.return||e.value;case wf:return"";case Cf:return e.return=e.value+"{"+up(e.children,r)+"}";case kf:e.value=e.props.join(",")}return Pf(n=up(e.children,r))?e.return=e.value+"{"+n+"}":""}function fp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pp=function(e,t,n){for(var r=0,o=0;r=o,o=Yf(),38===r&&12===o&&(t[n]=1),!qf(o);)Gf();return Jf(e,Bf)},hp=function(e,t){return Qf(function(e,t){var n=-1,r=44;do{switch(qf(r)){case 0:38===r&&12===Yf()&&(t[n]=1),e[n]+=pp(Bf-1,t,n);break;case 2:e[n]+=Zf(r);break;case 4:if(44===r){e[++n]=58===Yf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Tf(r)}}while(r=Gf());return e}(Xf(e),t))},gp=new WeakMap,mp=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)||gp.get(n))&&!r){gp.set(e,!0);for(var o=[],i=hp(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},vp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},bp=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},yp=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},xp=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},_p=function(e,t,n){yp(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),xp(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!yp(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),xp(e)))};function wp(e,t){switch(function(e,t){return 45^Nf(e,0)?(((t<<2^Nf(e,0))<<2^Nf(e,1))<<2^Nf(e,2))<<2^Nf(e,3):0}(e,t)){case 5103:return _f+"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 _f+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _f+e+xf+e+yf+e+e;case 6828:case 4268:return _f+e+yf+e+e;case 6165:return _f+e+yf+"flex-"+e+e;case 5187:return _f+e+Mf(e,/(\w+).+(:[^]+)/,_f+"box-$1$2"+yf+"flex-$1$2")+e;case 5443:return _f+e+yf+"flex-item-"+Mf(e,/flex-|-self/,"")+e;case 4675:return _f+e+yf+"flex-line-pack"+Mf(e,/align-content|flex-|-self/,"")+e;case 5548:return _f+e+yf+Mf(e,"shrink","negative")+e;case 5292:return _f+e+yf+Mf(e,"basis","preferred-size")+e;case 6060:return _f+"box-"+Mf(e,"-grow","")+_f+e+yf+Mf(e,"grow","positive")+e;case 4554:return _f+Mf(e,/([^-])(transform)/g,"$1"+_f+"$2")+e;case 6187:return Mf(Mf(Mf(e,/(zoom-|grab)/,_f+"$1"),/(image-set)/,_f+"$1"),e,"")+e;case 5495:case 3959:return Mf(e,/(image-set\([^]*)/,_f+"$1$`$1");case 4968:return Mf(Mf(e,/(.+:)(flex-)?(.*)/,_f+"box-pack:$3"+yf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_f+e+e;case 4095:case 3583:case 4068:case 2532:return Mf(e,/(.+)-inline(.+)/,_f+"$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(Pf(e)-1-t>6)switch(Nf(e,t+1)){case 109:if(45!==Nf(e,t+4))break;case 102:return Mf(e,/(.+:)(.+)-([^]+)/,"$1"+_f+"$2-$3$1"+xf+(108==Nf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Rf(e,"stretch")?wp(Mf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Nf(e,t+1))break;case 6444:switch(Nf(e,Pf(e)-3-(~Rf(e,"!important")&&10))){case 107:return Mf(e,":",":"+_f)+e;case 101:return Mf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_f+(45===Nf(e,14)?"inline-":"")+"box$3$1"+_f+"$2$3$1"+yf+"$2box$3")+e}break;case 5936:switch(Nf(e,t+11)){case 114:return _f+e+yf+Mf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _f+e+yf+Mf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _f+e+yf+Mf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _f+e+yf+e+e}return e}var kp,Sp=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Sf:e.return=wp(e.value,e.length);break;case Cf:return up([Kf(e,{value:Mf(e.value,"@","@"+_f)})],r);case kf: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 up([Kf(e,{props:[Mf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return up([Kf(e,{props:[Mf(t,/:(plac\w+)/,":"+_f+"input-$1")]}),Kf(e,{props:[Mf(t,/:(plac\w+)/,":-moz-$1")]}),Kf(e,{props:[Mf(t,/:(plac\w+)/,yf+"input-$1")]})],r)}return""})}}],Cp=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;kp=function(e){var t=e.match(Cp);if(t)return t[t.length-1]};var Ep,Tp,Ap,Lp,Mp=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||Sp;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,s={},a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)});var l=[mp,vp];l.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:r,s=i.length-1;s>=0;s--){var a=i[s];if(a.line<t.line)break;if(a.column<t.column){if(bp(a))return;break}}o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return f.compat}}),_p);var c,u=[dp,function(e){e.root||(e.return?c.insert(e.return):e.value&&e.type!==wf&&c.insert(e.value+"{}"))}],d=function(e){var t=If(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}(l.concat(r,u));i=function(e,t,n,r){if(c=n,kp){var o=kp(t.styles);o&&(c={insert:function(e){n.insert(e+o)}})}!function(e){up(ip(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new bf({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return f.sheet.hydrate(a),f},Rp={exports:{}},Np={};function Op(){return Tp||(Tp=1,Rp.exports=function(){if(Ep)return Np;Ep=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,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=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 c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case a:case u:case h:case p:case s:return e;default:return f}}case n:return f}}}function x(e){return y(e)===c}return Np.AsyncMode=l,Np.ConcurrentMode=c,Np.ContextConsumer=a,Np.ContextProvider=s,Np.Element=t,Np.ForwardRef=u,Np.Fragment=r,Np.Lazy=h,Np.Memo=p,Np.Portal=n,Np.Profiler=i,Np.StrictMode=o,Np.Suspense=d,Np.isAsyncMode=function(e){return x(e)||y(e)===l},Np.isConcurrentMode=x,Np.isContextConsumer=function(e){return y(e)===a},Np.isContextProvider=function(e){return y(e)===s},Np.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Np.isForwardRef=function(e){return y(e)===u},Np.isFragment=function(e){return y(e)===r},Np.isLazy=function(e){return y(e)===h},Np.isMemo=function(e){return y(e)===p},Np.isPortal=function(e){return y(e)===n},Np.isProfiler=function(e){return y(e)===i},Np.isStrictMode=function(e){return y(e)===o},Np.isSuspense=function(e){return y(e)===d},Np.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},Np.typeOf=y,Np}()),Rp.exports}var Pp=function(){if(Lp)return Ap;Lp=1;var e=Op(),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 s=Object.defineProperty,a=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return Ap=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=a(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=c(r,v);try{s(t,v,b)}catch(e){}}}}return t},Ap}(),Ip=z(Pp);function zp(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var jp=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Dp=function(e,t,n){jp(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 Fp={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},Bp="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",$p="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Hp=/[A-Z]|^ms/g,Wp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kp=function(e){return 45===e.charCodeAt(1)},Up=function(e){return null!=e&&"boolean"!=typeof e},Gp=fp(function(e){return Kp(e)?e:e.replace(Hp,"-$&").toLowerCase()}),Yp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Wp,function(e,t,n){return nh={name:t,styles:n,next:nh},t})}return 1===Fp[e]||Kp(e)||"number"!=typeof t||0===t?t:t+"px"},Vp=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Jp=["normal","none","initial","inherit","unset"],qp=Yp,Xp=/^-ms-/,Qp=/-(.)/g,Zp={};Yp=function(e,t){if("content"===e&&("string"!=typeof t||-1===Jp.indexOf(t)&&!Vp.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=qp(e,t);return""===n||Kp(e)||-1===e.indexOf("-")||void 0!==Zp[e]||(Zp[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Xp,"ms-").replace(Qp,function(e,t){return t.toUpperCase()})+"?")),n};var eh="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function th(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(r))throw new Error(eh);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return nh={name:o.name,styles:o.styles,next:nh},o.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)nh={name:s.name,styles:s.styles,next:nh},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=th(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Up(a)&&(r+=Gp(i)+":"+Yp(i,a)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(eh);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=th(e,t,s);switch(i){case"animation":case"animationName":r+=Gp(i)+":"+l+";";break;default:"undefined"===i&&console.error($p),r+=i+"{"+l+"}"}}else for(var c=0;c<s.length;c++)Up(s[c])&&(r+=Gp(i)+":"+Yp(i,s[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=nh,l=n(e);return nh=a,th(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var c=[],u=n.replace(Wp,function(e,t,n){var r="animation"+c.length;return c.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+u+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+u+"`")}var d=n;if(null==t)return d;var f=t[d];return void 0!==f?f:d}var nh,rh=/label:\s*([^\s;{]+)\s*(;|$)/g;function oh(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="";nh=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=th(n,t,i);else{var s=i;void 0===s[0]&&console.error(Bp),o+=s[0]}for(var a=1;a<e.length;a++)if(o+=th(n,t,e[a]),r){var l=i;void 0===l[a]&&console.error(Bp),o+=l[a]}rh.lastIndex=0;for(var c,u="";null!==(c=rh.exec(o));)u+="-"+c[1];var d=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+u;return{name:d,styles:o,next:nh,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var ih=!!C.useInsertionEffect&&C.useInsertionEffect,sh=ih||function(e){return e()},ah=ih||C.useLayoutEffect,lh=C.createContext("undefined"!=typeof HTMLElement?Mp({key:"css"}):null);lh.displayName="EmotionCacheContext";var ch=lh.Provider,uh=function(e){return E(function(t,n){var r=b(lh);return e(t,r,n)})},dh=C.createContext({});dh.displayName="EmotionThemeContext";var fh={}.hasOwnProperty,ph=function(e){var t=e.split(".");return t[t.length-1]},hh=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?ph(t[1]):void 0},gh=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),mh=function(e){return e.replace(/\$/g,"-")},vh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",yh=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)fh.call(t,r)&&(n[r]=t[r]);if(n[vh]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=hh(t[n]);if(r){if(gh.has(r))break;if(/^[A-Z]/.test(r))return mh(r)}}}((new Error).stack);o&&(n[bh]=o)}return n},xh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return jp(t,n,r),sh(function(){return Dp(t,n,r)}),null},_h=uh(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[vh],i=[r],s="";"string"==typeof e.className?s=zp(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var a=oh(i,void 0,C.useContext(dh));if(-1===a.name.indexOf("-")){var l=e[bh];l&&(a=oh([a,"label:"+l+";"]))}s+=t.key+"-"+a.name;var c={};for(var u in e)fh.call(e,u)&&"css"!==u&&u!==vh&&u!==bh&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),C.createElement(C.Fragment,null,C.createElement(xh,{cache:t,serialized:a,isStringTag:"string"==typeof o}),C.createElement(o,c))});_h.displayName="EmotionCssPropInternal";var wh,kh,Sh=_h,Ch=function(e,t){var n=arguments;if(null==t||!fh.call(t,"css"))return C.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Sh,o[1]=yh(e,t);for(var i=2;i<r;i++)o[i]=n[i];return C.createElement.apply(null,o)};wh=Ch||(Ch={}),kh||(kh=wh.JSX||(wh.JSX={}));var Eh=!1,Th=uh(function(e,t){!Eh&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Eh=!0);var n=oh([e.styles],void 0,C.useContext(dh)),r=C.useRef();return ah(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,s=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==s&&(i=!0,s.setAttribute("data-emotion",e),o.hydrate([s])),r.current=[o,i],function(){o.flush()}},[t]),ah(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Dp(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 Ah(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return oh(t)}function Lh(){var e=Ah.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_"}}}Th.displayName="EmotionGlobal";var Mh=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var s=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))s=e(i);else for(var a in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),s="",i)i[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=i}s&&(o&&(o+=" "),o+=s)}}return o};var Rh=function(e){var t=e.cache,n=e.serializedArr;return sh(function(){for(var e=0;e<n.length;e++)Dp(t,n[e],!1)}),null},Nh=uh(function(e,t){var n=!1,r=[],o=function(){if(n)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var s=oh(o,t.registered);return r.push(s),jp(t,s,!1),t.key+"-"+s.name},i={css:o,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],o=zp(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,Mh(r))},theme:C.useContext(dh)},s=e.children(i);return n=!0,C.createElement(C.Fragment,null,C.createElement(Rh,{cache:t,serializedArr:r}),s)});Nh.displayName="EmotionClassNames";var Oh="undefined"!=typeof document,Ph="undefined"!=typeof jest||"undefined"!=typeof vi;if(Oh&&!Ph){var Ih="undefined"!=typeof globalThis?globalThis:Oh?window:global,zh="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";Ih[zh]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Ih[zh]=!0}var jh=/^((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)-.*))$/,Dh=fp(function(e){return jh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Fh=function(e){return"theme"!==e},Bh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Dh:Fh},$h=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},Hh="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Wh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return jp(t,n,r),sh(function(){return Dp(t,n,r)}),null},Kh=function e(t,n){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var a=$h(t,n,i),l=a||Bh(s),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];void 0===f[0]&&console.error(Hh),d.push(f[0]);for(var p=u.length,h=1;h<p;h++)void 0===f[h]&&console.error(Hh),d.push(u[h],f[h])}var g=uh(function(e,t,n){var r=c&&e.as||s,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=C.useContext(dh)}"string"==typeof e.className?i=zp(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=oh(d.concat(u),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var g=c&&void 0===a?Bh(r):l,m={};for(var v in e)c&&"as"===v||g(v)&&(m[v]=e[v]);return m.className=i,n&&(m.ref=n),C.createElement(C.Fragment,null,C.createElement(Wh,{cache:t,serialized:h,isStringTag:"string"==typeof r}),C.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=d,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),g.withComponent=function(t,r){return e(t,mf({},n,r,{shouldForwardProp:$h(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){Kh[e]=Kh(e)});var Uh,Gh,Yh,Vh,Jh,qh={exports:{}};function Xh(){if(Gh)return Uh;Gh=1;return Uh="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Qh(){if(Vh)return Yh;Vh=1;var e=Xh();function t(){}function n(){}return n.resetWarningCache=t,Yh=function(){function r(t,n,r,o,i,s){if(s!==e){var a=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 a.name="Invariant Violation",a}}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 Zh(){return Jh||(Jh=1,qh.exports=Qh()()),qh.exports}var eg=z(Zh());const tg=new Map;function ng(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 Nu.jsx(Th,{styles:r})}
8
8
  /**
9
9
  * @mui/styled-engine v5.18.0
10
10
  *
11
11
  * @license MIT
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
- */function rg(e,t){return Kh(e,t)}const og=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},ig=[];function sg(e){return ig[0]=e,oh(ig)}var ag=Object.freeze({__proto__:null,GlobalStyles:ng,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=C.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&tg.has(e))return tg.get(e);const r=function(e,t){const n=Mp({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return tg.set(e,r),r},[t,n]);return t||n?Nu.jsx(ch,{value:o,children:r}):r},ThemeContext:dh,css:Ah,default:rg,internal_processStyles:og,internal_serializeStyles:sg,keyframes:Lh});function lg(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function cg(e){if(C.isValidElement(e)||!lg(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=cg(e[n])}),t}function ug(e,t,n={clone:!0}){const r=n.clone?mf({},e):e;return lg(e)&&lg(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])?r[o]=t[o]:lg(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lg(e[o])?r[o]=ug(e[o],t[o],n):n.clone?r[o]=lg(t[o])?cg(t[o]):t[o]:r[o]=t[o]}),r}var dg=Object.freeze({__proto__:null,default:ug,isPlainObject:lg});const fg=["values","unit","step"];function pg(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=vf(e,fg),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>mf({},e,{[t.key]:t.val}),{})})(t),s=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=s.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[s[i]]?t[s[i]]:o)-r/100}${n})`}return mf({keys:s,values:i,up:a,down:l,between:c,only:function(e){return s.indexOf(e)+1<s.length?c(e,s[s.indexOf(e)+1]):a(e)},not:function(e){const t=s.indexOf(e);return 0===t?a(s[1]):t===s.length-1?l(s[t]):c(e,s[s.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const hg={borderRadius:4};function gg(e,t){return t?ug(e,t,{clone:!1}):e}const mg={xs:0,sm:600,md:900,lg:1200,xl:1536},vg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mg[e]}px)`};function bg(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||vg;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||vg;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||mg).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function yg(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{});return n||{}}function xg(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function _g({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t),{})}function wg(e){if("string"!=typeof e)throw new Error(pf(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Sg=Object.freeze({__proto__:null,default:wg});function kg(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Cg(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:kg(e,n)||r,t&&(o=t(o,r,e)),o}function Eg(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],s=kg(e.theme,r)||{};return bg(e,i,e=>{let r=Cg(s,o,e);return e===r&&"string"==typeof e&&(r=Cg(s,o,`${t}${"default"===e?"":wg(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const Tg={m:"margin",p:"padding"},Ag={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Lg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mg=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Lg[e])return[e];e=Lg[e]}const[t,n]=e.split(""),r=Tg[t],o=Ag[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Rg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ng=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Og(e,t,n,r){var o;const i=null!=(o=kg(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Pg(e){return Og(e,"spacing",8)}function Ig(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function zg(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Ig(t,n),e),{})}(Mg(n),r);return bg(e,e[n],o)}function jg(e,t){const n=Pg(e.theme);return Object.keys(e).map(r=>zg(e,t,r,n)).reduce(gg,{})}function Dg(e){return jg(e,Rg)}function Fg(e){return jg(e,Ng)}function Bg(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?gg(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function $g(e){return"number"!=typeof e?e:`${e}px solid`}function Hg(e,t){return Eg({prop:e,themeKey:"borders",transform:t})}Dg.propTypes={},Dg.filterProps=Rg,Fg.propTypes={},Fg.filterProps=Ng;const Wg=Hg("border",$g),Kg=Hg("borderTop",$g),Ug=Hg("borderRight",$g),Gg=Hg("borderBottom",$g),Yg=Hg("borderLeft",$g),Vg=Hg("borderColor"),Jg=Hg("borderTopColor"),qg=Hg("borderRightColor"),Xg=Hg("borderBottomColor"),Qg=Hg("borderLeftColor"),Zg=Hg("outline",$g),em=Hg("outlineColor"),tm=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Og(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Ig(t,e)});return bg(e,e.borderRadius,n)}return null};tm.propTypes={},tm.filterProps=["borderRadius"],Bg(Wg,Kg,Ug,Gg,Yg,Vg,Jg,qg,Xg,Qg,tm,Zg,em);const nm=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Og(e.theme,"spacing",8),n=e=>({gap:Ig(t,e)});return bg(e,e.gap,n)}return null};nm.propTypes={},nm.filterProps=["gap"];const rm=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Og(e.theme,"spacing",8),n=e=>({columnGap:Ig(t,e)});return bg(e,e.columnGap,n)}return null};rm.propTypes={},rm.filterProps=["columnGap"];const om=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Og(e.theme,"spacing",8),n=e=>({rowGap:Ig(t,e)});return bg(e,e.rowGap,n)}return null};om.propTypes={},om.filterProps=["rowGap"];function im(e,t){return"grey"===t?t:e}Bg(nm,rm,om,Eg({prop:"gridColumn"}),Eg({prop:"gridRow"}),Eg({prop:"gridAutoFlow"}),Eg({prop:"gridAutoColumns"}),Eg({prop:"gridAutoRows"}),Eg({prop:"gridTemplateColumns"}),Eg({prop:"gridTemplateRows"}),Eg({prop:"gridTemplateAreas"}),Eg({prop:"gridArea"}));function sm(e){return e<=1&&0!==e?100*e+"%":e}Bg(Eg({prop:"color",themeKey:"palette",transform:im}),Eg({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:im}),Eg({prop:"backgroundColor",themeKey:"palette",transform:im}));const am=Eg({prop:"width",transform:sm}),lm=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||mg[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:sm(t)}};return bg(e,e.maxWidth,t)}return null};lm.filterProps=["maxWidth"];const cm=Eg({prop:"minWidth",transform:sm}),um=Eg({prop:"height",transform:sm}),dm=Eg({prop:"maxHeight",transform:sm}),fm=Eg({prop:"minHeight",transform:sm});Eg({prop:"size",cssProperty:"width",transform:sm}),Eg({prop:"size",cssProperty:"height",transform:sm});Bg(am,lm,cm,um,dm,fm,Eg({prop:"boxSizing"}));const pm={border:{themeKey:"borders",transform:$g},borderTop:{themeKey:"borders",transform:$g},borderRight:{themeKey:"borders",transform:$g},borderBottom:{themeKey:"borders",transform:$g},borderLeft:{themeKey:"borders",transform:$g},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$g},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tm},color:{themeKey:"palette",transform:im},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:im},backgroundColor:{themeKey:"palette",transform:im},p:{style:Fg},pt:{style:Fg},pr:{style:Fg},pb:{style:Fg},pl:{style:Fg},px:{style:Fg},py:{style:Fg},padding:{style:Fg},paddingTop:{style:Fg},paddingRight:{style:Fg},paddingBottom:{style:Fg},paddingLeft:{style:Fg},paddingX:{style:Fg},paddingY:{style:Fg},paddingInline:{style:Fg},paddingInlineStart:{style:Fg},paddingInlineEnd:{style:Fg},paddingBlock:{style:Fg},paddingBlockStart:{style:Fg},paddingBlockEnd:{style:Fg},m:{style:Dg},mt:{style:Dg},mr:{style:Dg},mb:{style:Dg},ml:{style:Dg},mx:{style:Dg},my:{style:Dg},margin:{style:Dg},marginTop:{style:Dg},marginRight:{style:Dg},marginBottom:{style:Dg},marginLeft:{style:Dg},marginX:{style:Dg},marginY:{style:Dg},marginInline:{style:Dg},marginInlineStart:{style:Dg},marginInlineEnd:{style:Dg},marginBlock:{style:Dg},marginBlockStart:{style:Dg},marginBlockEnd:{style:Dg},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:nm},rowGap:{style:om},columnGap:{style:rm},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sm},maxWidth:{style:lm},minWidth:{transform:sm},height:{transform:sm},maxHeight:{transform:sm},minHeight:{transform:sm},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function hm(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:s=e,themeKey:a,transform:l,style:c}=i;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const u=kg(n,a)||{};if(c)return c(o);return bg(o,t,t=>{let n=Cg(u,l,t);return t===n&&"string"==typeof t&&(n=Cg(u,l,`${e}${"default"===t?"":wg(t)}`,t)),!1===s?n:{[s]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:s}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:pm;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=yg(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=(s=r[n],l=i,"function"==typeof s?s(l):s);var s,l;if(null!=o)if("object"==typeof o)if(a[n])c=gg(c,e(n,o,i,a));else{const e=bg({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=gg(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=gg(c,e(n,o,i,a))}),!s&&i.modularCssLayers?{"@layer sx":xg(l,c)}:xg(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const gm=hm();function mm(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}gm.filterProps=["sx"];const vm=["breakpoints","palette","spacing","shape"];function bm(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=vf(e,vm),a=pg(n),l=function(e=8){if(e.mui)return e;const t=Pg({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let c=ug({breakpoints:a,direction:"ltr",components:{},palette:mf({mode:"light"},r),spacing:l,shape:mf({},hg,i)},s);return c.applyStyles=mm,c=t.reduce((e,t)=>ug(e,t),c),c.unstable_sxConfig=mf({},pm,null==s?void 0:s.unstable_sxConfig),c.unstable_sx=function(e){return gm({sx:e,theme:this})},c}var ym=Object.freeze({__proto__:null,default:bm,private_createBreakpoints:pg,unstable_applyStyles:mm});function xm(e=null){const t=C.useContext(dh);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const _m=bm();function wm(e=_m){return xm(e)}function Sm(e){const t=sg(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function km({styles:e,themeId:t,defaultTheme:n={}}){const r=wm(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>Sm("function"==typeof e?e(o):e)):Sm(i)),Nu.jsx(ng,{styles:i})}const Cm=["sx"];function Em(e){const{sx:t}=e,n=vf(e,Cm),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:pm;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return lg(n)?mf({},r,n):r}:mf({},r,t),mf({},o,{sx:i})}var Tm=Object.freeze({__proto__:null,default:gm,extendSxProp:Em,unstable_createStyleFunctionSx:hm,unstable_defaultSxConfig:pm});const Am=e=>e,Lm=(()=>{let e=Am;return{configure(t){e=t},generate:t=>e(t),reset(){e=Am}}})();function Mm(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Mm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Rm(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Mm(e))&&(r&&(r+=" "),r+=t);return r}const Nm=["className","component"];const Om={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Pm(e,t,n="Mui"){const r=Om[t];return r?`${n}-${r}`:`${Lm.generate(e)}-${t}`}function Im(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Pm(e,t,n)}),r}var zm,jm,Dm={exports:{}},Fm={};function Bm(){if(zm)return Fm;zm=1;var e=Symbol.for("react.transitional.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.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case c:case f:return p;default:switch(p=p&&p.$$typeof){case s:case a:case d:case u:case i:return p;default:return h}}case t:return h}}}return Fm.ContextConsumer=i,Fm.ContextProvider=s,Fm.Element=e,Fm.ForwardRef=a,Fm.Fragment=n,Fm.Lazy=d,Fm.Memo=u,Fm.Portal=t,Fm.Profiler=o,Fm.StrictMode=r,Fm.Suspense=l,Fm.SuspenseList=c,Fm.isContextConsumer=function(e){return h(e)===i},Fm.isContextProvider=function(e){return h(e)===s},Fm.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Fm.isForwardRef=function(e){return h(e)===a},Fm.isFragment=function(e){return h(e)===n},Fm.isLazy=function(e){return h(e)===d},Fm.isMemo=function(e){return h(e)===u},Fm.isPortal=function(e){return h(e)===t},Fm.isProfiler=function(e){return h(e)===o},Fm.isStrictMode=function(e){return h(e)===r},Fm.isSuspense=function(e){return h(e)===l},Fm.isSuspenseList=function(e){return h(e)===c},Fm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===s||e.$$typeof===i||e.$$typeof===a||e.$$typeof===p||void 0!==e.getModuleId)},Fm.typeOf=h,Fm}function $m(){return jm||(jm=1,Dm.exports=Bm()),Dm.exports}var Hm=$m();const Wm=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Km(e){const t=`${e}`.match(Wm);return t&&t[1]||""}function Um(e,t=""){return e.displayName||e.name||Km(e)||t}function Gm(e,t,n){const r=Um(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ym=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Um(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Hm.ForwardRef:return Gm(e,e.render,"ForwardRef");case Hm.Memo:return Gm(e,e.type,"memo");default:return}}},getFunctionName:Km});const Vm=["ownerState"],Jm=["variants"],qm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Xm(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Qm(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Zm=bm(),ev=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function tv({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function nv(e){return e?(t,n)=>n[e]:null}function rv(e,t,n){let{ownerState:r}=t,o=vf(t,Vm);const i="function"==typeof e?e(mf({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(e=>rv(e,mf({ownerState:r},o),n));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=vf(i,Jm);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props(mf({ownerState:r},o,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style(mf({ownerState:r},o,r)):e.style;t.push(n?Qm(sg(i),n):i)}}),t}return n?Qm(sg(i),n):i}const ov=function(e={}){const{themeId:t,defaultTheme:n=Zm,rootShouldForwardProp:r=Xm,slotShouldForwardProp:o=Xm}=e,i=e=>gm(mf({},e,{theme:tv(mf({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,s={})=>{og(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:a,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=nv(ev(l))}=s,f=vf(s,qm),p=a&&a.startsWith("Mui")||l?"components":"custom",h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,g=u||!1;let m=Xm;"Root"===l||"root"===l?m=r:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=rg(e,mf({shouldForwardProp:m,label:void 0},f)),b=e=>"function"==typeof e&&e.__emotion_real!==e||lg(e)?r=>{const o=tv({theme:r.theme,defaultTheme:n,themeId:t});return rv(e,mf({},r,{theme:o}),o.modularCssLayers?p:void 0)}:e,y=(r,...o)=>{let s=b(r);const l=o?o.map(b):[];a&&d&&l.push(e=>{const r=tv(mf({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[a]||!r.components[a].styleOverrides)return null;const o=r.components[a].styleOverrides,i={};return Object.entries(o).forEach(([t,n])=>{i[t]=rv(n,mf({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),d(e,i)}),a&&!h&&l.push(e=>{var r;const o=tv(mf({},e,{defaultTheme:n,themeId:t}));return rv({variants:null==o||null==(r=o.components)||null==(r=r[a])?void 0:r.variants},mf({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),g||l.push(i);const c=l.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}const u=v(s,...l);return e.muiName&&(u.muiName=e.muiName),u};return v.withConfig&&(y.withConfig=v.withConfig),y}}();function iv(e,t){const n=mf({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=mf({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=mf({},i),Object.keys(o).forEach(e=>{n[r][e]=iv(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}function sv({props:e,name:t,defaultTheme:n,themeId:r}){let o=wm(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?iv(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const av="undefined"!=typeof window?C.useLayoutEffect:C.useEffect;function lv(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var cv=Object.freeze({__proto__:null,default:lv});function uv(e){if(e.type)return e;if("#"===e.charAt(0))return uv(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(pf(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(pf(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function dv(e,t){return e=uv(e),t=function(e,t=0,n=1){return lv(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function fv(e){return e&&e.ownerDocument||document}function pv(e){return fv(e).defaultView||window}function hv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let gv=0;const mv=C["useId".toString()];function vv(e){if(void 0!==mv){const t=mv();return null!=e?e:t}return function(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{null==t&&(gv+=1,n(`mui-${gv}`))},[t]),r}(e)}function bv(e){const t=C.useRef(e);return av(()=>{t.current=e}),C.useRef((...e)=>(0,t.current)(...e)).current}function yv(...e){return C.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{hv(e,t)})},e)}const xv={};const _v=[];class wv{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wv}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function Sv(){const e=function(e,t){const n=C.useRef(xv);return n.current===xv&&(n.current=e(t)),n}(wv.create).current;return function(e){C.useEffect(e,_v)}(e.disposeEffect),e}let kv=!0,Cv=!1;const Ev=new wv,Tv={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Av(e){e.metaKey||e.altKey||e.ctrlKey||(kv=!0)}function Lv(){kv=!1}function Mv(){"hidden"===this.visibilityState&&Cv&&(kv=!0)}function Rv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return kv||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Tv[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Nv(){const e=C.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Av,!0),t.addEventListener("mousedown",Lv,!0),t.addEventListener("pointerdown",Lv,!0),t.addEventListener("touchstart",Lv,!0),t.addEventListener("visibilitychange",Mv,!0))},[]),t=C.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Rv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Cv=!0,Ev.start(100,()=>{Cv=!1}),t.current=!1,!0)},ref:e}}function Ov(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function Pv(e){return"string"==typeof e}function Iv(e,t,n){return void 0===e||Pv(e)?t:mf({},t,{ownerState:mf({},t.ownerState,n)})}function zv(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function jv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Rm(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=mf({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),s=mf({},n,o,r);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}(mf({},o,r)),a=zv(r),l=zv(o),c=t(s),u=Rm(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=mf({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),f=mf({},c,n,l,a);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const Dv=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Fv(e){var t;return parseInt(C.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Bv=C.createContext(null);function $v(){return C.useContext(Bv)}var Hv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Wv(e){const{children:t,theme:n}=e,r=$v(),o=C.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return mf({},e,t)}(r,n);return null!=e&&(e[Hv]=null!==r),e},[n,r]);return Nu.jsx(Bv.Provider,{value:o,children:t})}const Kv=["value"],Uv=C.createContext();function Gv(e){let{value:t}=e,n=vf(e,Kv);return Nu.jsx(Uv.Provider,mf({value:null==t||t},n))}const Yv=C.createContext(void 0);function Vv({value:e,children:t}){return Nu.jsx(Yv.Provider,{value:e,children:t})}function Jv({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?iv(o.defaultProps,r):o.styleOverrides||o.variants?r:iv(o,r)}({props:e,name:t,theme:{components:C.useContext(Yv)}})}const qv={};function Xv(e,t,n,r=!1){return C.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),s=e?mf({},t,{[e]:i}):i;return r?()=>s:s}return mf({},t,e?{[e]:n}:n)},[e,t,n,r])}function Qv(e){const{children:t,theme:n,themeId:r}=e,o=xm(qv),i=$v()||qv,s=Xv(r,o,n),a=Xv(r,i,n,!0),l="rtl"===s.direction,c=function(e){const t=xm(),n=vv()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",av(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?Nu.jsx(km,{styles:o}):null}(s);return Nu.jsx(Wv,{theme:a,children:Nu.jsx(dh.Provider,{value:s,children:Nu.jsx(Gv,{value:l,children:Nu.jsxs(Vv,{value:null==s?void 0:s.components,children:[c,t]})})})})}function Zv(e){return Zv="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},Zv(e)}function eb(e){var t=function(e,t){if("object"!=Zv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Zv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zv(t)?t:t+""}const tb=["component","direction","spacing","divider","children","className","useFlexGap"],nb=bm(),rb=ov("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ob(e){return sv({props:e,name:"MuiStack",defaultTheme:nb})}function ib(e,t){const n=C.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(C.cloneElement(t,{key:`separator-${o}`})),e),[])}const sb=({ownerState:e,theme:t})=>{let n=mf({display:"flex",flexDirection:"column"},bg({theme:t},_g({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const r=Pg(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=_g({values:e.direction,base:o}),s=_g({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}});n=ug(n,bg({theme:t},s,(t,n)=>{return e.useFlexGap?{gap:Ig(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:Ig(r,t)}};var o}))}return n=function(e,...t){const n=yg(e),r=[n,...t].reduce((e,t)=>ug(e,t),{});return xg(Object.keys(n),r)}(t.breakpoints,n),n};function ab(e,t){return mf({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var lb,cb={},ub={exports:{}};function db(){return lb||(lb=1,(e=ub).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),ub.exports;var e}var fb,pb=j(hf),hb=j(cv);function gb(){if(fb)return cb;fb=1;var e=db();Object.defineProperty(cb,"__esModule",{value:!0}),cb.alpha=u,cb.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),s=i(e),l=i(t),c=[o(s.values[0],l.values[0]),o(s.values[1],l.values[1]),o(s.values[2],l.values[2])];return a({type:"rgb",values:c})},cb.colorChannel=void 0,cb.darken=d,cb.decomposeColor=i,cb.emphasize=p,cb.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},cb.getLuminance=c,cb.hexToRgb=o,cb.hslToRgb=l,cb.lighten=f,cb.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},cb.private_safeColorChannel=void 0,cb.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},cb.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},cb.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},cb.recomposeColor=a,cb.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(pb),n=e(hb);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let s,a=e.substring(n+1,e.length-1);if("color"===r){if(a=a.split(" "),s=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(s))throw new Error((0,t.default)(10,s))}else a=a.split(",");return a=a.map(e=>parseFloat(e)),{type:r,values:a,colorSpace:s}}const s=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};cb.colorChannel=s;function a(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-s*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,a(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return a(e)}function p(e,t=.15){return c(e)>.5?d(e,t):f(e,t)}return cb.private_safeColorChannel=(e,t)=>{try{return s(e)}catch(t){return e}},cb}var mb=gb();const vb=["mode","contrastThreshold","tonalOffset"],bb={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Nd.white,default:Nd.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},yb={text:{primary:Nd.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Nd.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function xb(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=mb.lighten(e.main,o):"dark"===t&&(e.dark=mb.darken(e.main,i)))}function _b(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=vf(e,vb),i=e.primary||function(e="light"){return"dark"===e?{main:Ud,light:Kd,dark:Gd}:{main:Yd,light:Gd,dark:Vd}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:Fd,light:Dd,dark:$d}:{main:Hd,light:Bd,dark:Wd}}(t),a=e.error||function(e="light"){return"dark"===e?{main:Id,light:Od,dark:zd}:{main:zd,light:Pd,dark:jd}}(t),l=e.info||function(e="light"){return"dark"===e?{main:qd,light:Jd,dark:Qd}:{main:Qd,light:Xd,dark:Zd}}(t),c=e.success||function(e="light"){return"dark"===e?{main:tf,light:ef,dark:rf}:{main:of,light:nf,dark:sf}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:lf,light:af,dark:uf}:{main:"#ed6c02",light:cf,dark:df}}(t);function d(e){return mb.getContrastRatio(e,yb.text.primary)>=n?yb.text.primary:bb.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=mf({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(pf(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(pf(12,t?` (${t})`:"",JSON.stringify(e.main)));return xb(e,"light",o,r),xb(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:yb,light:bb};return ug(mf({common:mf({},Nd),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:ff,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const wb=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Sb={textTransform:"uppercase"},kb='"Roboto", "Helvetica", "Arial", sans-serif';function Cb(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=kb,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=vf(n,wb),p=o/14,h=d||(e=>e/c*p+"rem"),g=(e,t,n,o,i)=>{return mf({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===kb?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5)+"em"}:{},i,u);var s},m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,Sb),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,Sb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ug(mf({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},m),f,{clone:!1})}function Eb(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Tb=["none",Eb(0,2,1,-1,0,1,1,0,0,1,3,0),Eb(0,3,1,-2,0,2,2,0,0,1,5,0),Eb(0,3,3,-2,0,3,4,0,0,1,8,0),Eb(0,2,4,-1,0,4,5,0,0,1,10,0),Eb(0,3,5,-1,0,5,8,0,0,1,14,0),Eb(0,3,5,-1,0,6,10,0,0,1,18,0),Eb(0,4,5,-2,0,7,10,1,0,2,16,1),Eb(0,5,5,-3,0,8,10,1,0,3,14,2),Eb(0,5,6,-3,0,9,12,1,0,3,16,2),Eb(0,6,6,-3,0,10,14,1,0,4,18,3),Eb(0,6,7,-4,0,11,15,1,0,4,20,3),Eb(0,7,8,-4,0,12,17,2,0,5,22,4),Eb(0,7,8,-4,0,13,19,2,0,5,24,4),Eb(0,7,9,-4,0,14,21,2,0,5,26,4),Eb(0,8,9,-5,0,15,22,2,0,6,28,5),Eb(0,8,10,-5,0,16,24,2,0,6,30,5),Eb(0,8,11,-5,0,17,26,2,0,6,32,5),Eb(0,9,11,-5,0,18,28,2,0,7,34,6),Eb(0,9,12,-6,0,19,29,2,0,7,36,6),Eb(0,10,13,-6,0,20,31,3,0,8,38,7),Eb(0,10,13,-6,0,21,33,3,0,8,40,7),Eb(0,10,14,-6,0,22,35,3,0,8,42,7),Eb(0,11,14,-7,0,23,36,3,0,9,44,8),Eb(0,11,15,-7,0,24,38,3,0,9,46,8)],Ab=["duration","easing","delay"],Lb={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Mb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Rb(e){return`${Math.round(e)}ms`}function Nb(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ob(e){const t=mf({},Lb,e.easing),n=mf({},Mb,e.duration);return mf({getAutoHeightDuration:Nb,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:s=0}=r;return vf(r,Ab),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Rb(o)} ${i} ${"string"==typeof s?s:Rb(s)}`).join(",")}},e,{easing:t,duration:n})}const Pb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ib=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function zb(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=vf(e,Ib);if(e.vars&&void 0===e.generateCssVars)throw new Error(pf(18));const a=_b(r),l=bm(e);let c=ug(l,{mixins:ab(l.breakpoints,n),palette:a,shadows:Tb.slice(),typography:Cb(a,i),transitions:Ob(o),zIndex:mf({},Pb)});return c=ug(c,s),c=t.reduce((e,t)=>ug(e,t),c),c.unstable_sxConfig=mf({},pm,null==s?void 0:s.unstable_sxConfig),c.unstable_sx=function(e){return gm({sx:e,theme:this})},c}const jb=zb();function Db(){const e=wm(jb);return e[gf]||e}var Fb,Bb={},$b={exports:{}};function Hb(){return Fb||(Fb=1,function(e){function t(){return e.exports=t=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},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}($b)),$b.exports}var Wb,Kb={exports:{}};function Ub(){return Wb||(Wb=1,(e=Kb).exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports),Kb.exports;var e}var Gb,Yb=j(ag),Vb=j(dg),Jb=j(Sg),qb=j(Ym),Xb=j(ym),Qb=j(Tm);function Zb(){if(Gb)return Bb;Gb=1;var e=db();Object.defineProperty(Bb,"__esModule",{value:!0}),Bb.default=function(e={}){const{themeId:i,defaultTheme:a=p,rootShouldForwardProp:l=d,slotShouldForwardProp:u=d}=e,f=e=>(0,s.default)((0,t.default)({},e,{theme:g((0,t.default)({},e,{defaultTheme:a,themeId:i}))}));return f.__mui_systemSx=!0,(e,s={})=>{(0,r.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:p,slot:b,skipVariantsResolver:y,skipSx:x,overridesResolver:_=m(h(b))}=s,w=(0,n.default)(s,c),S=p&&p.startsWith("Mui")||b?"components":"custom",k=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,C=x||!1;let E=d;"Root"===b||"root"===b?E=l:b?E=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const T=(0,r.default)(e,(0,t.default)({shouldForwardProp:E,label:void 0},w)),A=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=g({theme:n.theme,defaultTheme:a,themeId:i});return v(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?S:void 0)}:e,L=(n,...r)=>{let o=A(n);const s=r?r.map(A):[];p&&_&&s.push(e=>{const n=g((0,t.default)({},e,{defaultTheme:a,themeId:i}));if(!n.components||!n.components[p]||!n.components[p].styleOverrides)return null;const r=n.components[p].styleOverrides,o={};return Object.entries(r).forEach(([r,i])=>{o[r]=v(i,(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),_(e,o)}),p&&!k&&s.push(e=>{var n;const r=g((0,t.default)({},e,{defaultTheme:a,themeId:i}));return v({variants:null==r||null==(n=r.components)||null==(n=n[p])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),C||s.push(f);const l=s.length-r.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const c=T(o,...s);return e.muiName&&(c.muiName=e.muiName),c};return T.withConfig&&(L.withConfig=T.withConfig),L}},Bb.shouldForwardProp=d,Bb.systemDefaultTheme=void 0;var t=e(Hb()),n=e(Ub()),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Yb),o=Vb;e(Jb),e(qb);var i=e(Xb),s=e(Qb);const a=["ownerState"],l=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function f(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const p=Bb.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function g({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function m(e){return e?(t,n)=>n[e]:null}function v(e,o,i){let{ownerState:s}=o,c=(0,n.default)(o,a);const u="function"==typeof e?e((0,t.default)({ownerState:s},c)):e;if(Array.isArray(u))return u.flatMap(e=>v(e,(0,t.default)({ownerState:s},c),i));if(u&&"object"==typeof u&&Array.isArray(u.variants)){const{variants:e=[]}=u;let o=(0,n.default)(u,l);return e.forEach(e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:s},c,s)):Object.keys(e.props).forEach(t=>{(null==s?void 0:s[t])!==e.props[t]&&c[t]!==e.props[t]&&(n=!1)}),n){Array.isArray(o)||(o=[o]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:s},c,s)):e.style;o.push(i?f((0,r.internal_serializeStyles)(n),i):n)}}),o}return i?f((0,r.internal_serializeStyles)(u),i):u}return Bb}const ey=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,ty=z(Zb())({themeId:gf,defaultTheme:jb,rootShouldForwardProp:ey}),ny=["theme"];function ry(e){let{theme:t}=e,n=vf(e,ny);const r=t[gf];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=mf({},r,{vars:null}):t&&!t.vars&&(o=mf({},t,{vars:null}))),Nu.jsx(Qv,mf({},n,{themeId:r?gf:void 0,theme:o}))}const oy=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function iy(e){return Jv(e)}function sy(e,t){return sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sy(e,t)}function ay(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sy(e,t)}var ly=!1,cy=y.createContext(null),uy="unmounted",dy="exited",fy="entering",py="entered",hy="exiting",gy=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=dy,r.appearStatus=fy):o=py:o=t.unmountOnExit||t.mountOnEnter?uy:dy,r.state={status:o},r.nextCallback=null,r}ay(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===uy?{status:dy}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==fy&&n!==py&&(t=fy):n!==fy&&n!==py||(t=hy)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===fy){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:p.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===dy&&this.setState({status:uy})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[p.findDOMNode(this),r],i=o[0],s=o[1],a=this.getTimeouts(),l=r?a.appear:a.enter;!e&&!n||ly?this.safeSetState({status:py},function(){t.props.onEntered(i)}):(this.props.onEnter(i,s),this.safeSetState({status:fy},function(){t.props.onEntering(i,s),t.onTransitionEnd(l,function(){t.safeSetState({status:py},function(){t.props.onEntered(i,s)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:p.findDOMNode(this);t&&!ly?(this.props.onExit(r),this.safeSetState({status:hy},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:dy},function(){e.props.onExited(r)})})})):this.safeSetState({status:dy},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:p.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===uy)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=vf(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(cy.Provider,{value:null},"function"==typeof n?n(e,r):y.cloneElement(y.Children.only(n),r))},t}(y.Component);function my(){}function vy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function by(e,t){var n=Object.create(null);return e&&L.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&T(e)?t(e):e}(e)}),n}function yy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function xy(e,t,n){var r=by(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var s in e)s in t?i.length&&(o[s]=i,i=[]):i.push(s);var a={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];a[o[l][r]]=n(c)}a[l]=n(l)}for(r=0;r<i.length;r++)a[i[r]]=n(i[r]);return a}(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(T(s)){var a=i in t,l=i in r,c=t[i],u=T(c)&&!c.props.in;!l||a&&!u?l||!a||u?l&&a&&T(c)&&(o[i]=A(s,{onExited:n.bind(null,s),in:c.props.in,exit:yy(s,"exit",e),enter:yy(s,"enter",e)})):o[i]=A(s,{in:!1}):o[i]=A(s,{onExited:n.bind(null,s),in:!0,exit:yy(s,"exit",e),enter:yy(s,"enter",e)})}}),o}gy.contextType=cy,gy.propTypes={},gy.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:my,onEntering:my,onEntered:my,onExit:my,onExiting:my,onExited:my},gy.UNMOUNTED=uy,gy.EXITED=dy,gy.ENTERING=fy,gy.ENTERED=py,gy.EXITING=hy;var _y=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},wy=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(vy(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}ay(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,by(n.children,function(e){return A(e,{onExited:r.bind(null,e),in:!0,appear:yy(e,"appear",n),enter:yy(e,"enter",n),exit:yy(e,"exit",n)})})):xy(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=by(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=mf({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=vf(e,["component","childFactory"]),o=this.state.contextValue,i=_y(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?y.createElement(cy.Provider,{value:o},i):y.createElement(cy.Provider,{value:o},y.createElement(t,r,i))},t}(y.Component);wy.propTypes={},wy.defaultProps={component:"div",childFactory:function(e){return e}};function Sy(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:null!=(n=s.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=s.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:s.transitionDelay}}function ky(e){return Pm("MuiPaper",e)}Im("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Cy=["className","component","elevation","square","variant"],Ey=ty("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return mf({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&mf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${mb.alpha("#fff",oy(t.elevation))}, ${mb.alpha("#fff",oy(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Ty=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:s=!1,variant:a="elevation"}=n,l=vf(n,Cy),c=mf({},n,{component:o,elevation:i,square:s,variant:a}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Ov({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},ky,o)})(c);return Nu.jsx(Ey,mf({as:o,ownerState:c,className:Rm(u.root,r),ref:t},l))});const Ay=Im("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ly=["center","classes","className"];let My,Ry,Ny,Oy,Py=e=>e;const Iy=Lh(My||(My=Py`
14
+ */function rg(e,t){return Kh(e,t)}const og=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},ig=[];function sg(e){return ig[0]=e,oh(ig)}var ag=Object.freeze({__proto__:null,GlobalStyles:ng,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=C.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&tg.has(e))return tg.get(e);const r=function(e,t){const n=Mp({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return tg.set(e,r),r},[t,n]);return t||n?Nu.jsx(ch,{value:o,children:r}):r},ThemeContext:dh,css:Ah,default:rg,internal_processStyles:og,internal_serializeStyles:sg,keyframes:Lh});function lg(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function cg(e){if(C.isValidElement(e)||!lg(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=cg(e[n])}),t}function ug(e,t,n={clone:!0}){const r=n.clone?mf({},e):e;return lg(e)&&lg(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])?r[o]=t[o]:lg(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lg(e[o])?r[o]=ug(e[o],t[o],n):n.clone?r[o]=lg(t[o])?cg(t[o]):t[o]:r[o]=t[o]}),r}var dg=Object.freeze({__proto__:null,default:ug,isPlainObject:lg});const fg=["values","unit","step"];function pg(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=vf(e,fg),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>mf({},e,{[t.key]:t.val}),{})})(t),s=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=s.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[s[i]]?t[s[i]]:o)-r/100}${n})`}return mf({keys:s,values:i,up:a,down:l,between:c,only:function(e){return s.indexOf(e)+1<s.length?c(e,s[s.indexOf(e)+1]):a(e)},not:function(e){const t=s.indexOf(e);return 0===t?a(s[1]):t===s.length-1?l(s[t]):c(e,s[s.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const hg={borderRadius:4};function gg(e,t){return t?ug(e,t,{clone:!1}):e}const mg={xs:0,sm:600,md:900,lg:1200,xl:1536},vg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mg[e]}px)`};function bg(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||vg;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||vg;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||mg).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function yg(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{});return n||{}}function xg(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function _g({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t),{})}function wg(e){if("string"!=typeof e)throw new Error(pf(7));return e.charAt(0).toUpperCase()+e.slice(1)}var kg=Object.freeze({__proto__:null,default:wg});function Sg(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Cg(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Sg(e,n)||r,t&&(o=t(o,r,e)),o}function Eg(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],s=Sg(e.theme,r)||{};return bg(e,i,e=>{let r=Cg(s,o,e);return e===r&&"string"==typeof e&&(r=Cg(s,o,`${t}${"default"===e?"":wg(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const Tg={m:"margin",p:"padding"},Ag={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Lg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mg=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Lg[e])return[e];e=Lg[e]}const[t,n]=e.split(""),r=Tg[t],o=Ag[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Rg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ng=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Og(e,t,n,r){var o;const i=null!=(o=Sg(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Pg(e){return Og(e,"spacing",8)}function Ig(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function zg(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Ig(t,n),e),{})}(Mg(n),r);return bg(e,e[n],o)}function jg(e,t){const n=Pg(e.theme);return Object.keys(e).map(r=>zg(e,t,r,n)).reduce(gg,{})}function Dg(e){return jg(e,Rg)}function Fg(e){return jg(e,Ng)}function Bg(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?gg(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function $g(e){return"number"!=typeof e?e:`${e}px solid`}function Hg(e,t){return Eg({prop:e,themeKey:"borders",transform:t})}Dg.propTypes={},Dg.filterProps=Rg,Fg.propTypes={},Fg.filterProps=Ng;const Wg=Hg("border",$g),Kg=Hg("borderTop",$g),Ug=Hg("borderRight",$g),Gg=Hg("borderBottom",$g),Yg=Hg("borderLeft",$g),Vg=Hg("borderColor"),Jg=Hg("borderTopColor"),qg=Hg("borderRightColor"),Xg=Hg("borderBottomColor"),Qg=Hg("borderLeftColor"),Zg=Hg("outline",$g),em=Hg("outlineColor"),tm=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Og(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Ig(t,e)});return bg(e,e.borderRadius,n)}return null};tm.propTypes={},tm.filterProps=["borderRadius"],Bg(Wg,Kg,Ug,Gg,Yg,Vg,Jg,qg,Xg,Qg,tm,Zg,em);const nm=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Og(e.theme,"spacing",8),n=e=>({gap:Ig(t,e)});return bg(e,e.gap,n)}return null};nm.propTypes={},nm.filterProps=["gap"];const rm=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Og(e.theme,"spacing",8),n=e=>({columnGap:Ig(t,e)});return bg(e,e.columnGap,n)}return null};rm.propTypes={},rm.filterProps=["columnGap"];const om=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Og(e.theme,"spacing",8),n=e=>({rowGap:Ig(t,e)});return bg(e,e.rowGap,n)}return null};om.propTypes={},om.filterProps=["rowGap"];function im(e,t){return"grey"===t?t:e}Bg(nm,rm,om,Eg({prop:"gridColumn"}),Eg({prop:"gridRow"}),Eg({prop:"gridAutoFlow"}),Eg({prop:"gridAutoColumns"}),Eg({prop:"gridAutoRows"}),Eg({prop:"gridTemplateColumns"}),Eg({prop:"gridTemplateRows"}),Eg({prop:"gridTemplateAreas"}),Eg({prop:"gridArea"}));function sm(e){return e<=1&&0!==e?100*e+"%":e}Bg(Eg({prop:"color",themeKey:"palette",transform:im}),Eg({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:im}),Eg({prop:"backgroundColor",themeKey:"palette",transform:im}));const am=Eg({prop:"width",transform:sm}),lm=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||mg[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:sm(t)}};return bg(e,e.maxWidth,t)}return null};lm.filterProps=["maxWidth"];const cm=Eg({prop:"minWidth",transform:sm}),um=Eg({prop:"height",transform:sm}),dm=Eg({prop:"maxHeight",transform:sm}),fm=Eg({prop:"minHeight",transform:sm});Eg({prop:"size",cssProperty:"width",transform:sm}),Eg({prop:"size",cssProperty:"height",transform:sm});Bg(am,lm,cm,um,dm,fm,Eg({prop:"boxSizing"}));const pm={border:{themeKey:"borders",transform:$g},borderTop:{themeKey:"borders",transform:$g},borderRight:{themeKey:"borders",transform:$g},borderBottom:{themeKey:"borders",transform:$g},borderLeft:{themeKey:"borders",transform:$g},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$g},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tm},color:{themeKey:"palette",transform:im},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:im},backgroundColor:{themeKey:"palette",transform:im},p:{style:Fg},pt:{style:Fg},pr:{style:Fg},pb:{style:Fg},pl:{style:Fg},px:{style:Fg},py:{style:Fg},padding:{style:Fg},paddingTop:{style:Fg},paddingRight:{style:Fg},paddingBottom:{style:Fg},paddingLeft:{style:Fg},paddingX:{style:Fg},paddingY:{style:Fg},paddingInline:{style:Fg},paddingInlineStart:{style:Fg},paddingInlineEnd:{style:Fg},paddingBlock:{style:Fg},paddingBlockStart:{style:Fg},paddingBlockEnd:{style:Fg},m:{style:Dg},mt:{style:Dg},mr:{style:Dg},mb:{style:Dg},ml:{style:Dg},mx:{style:Dg},my:{style:Dg},margin:{style:Dg},marginTop:{style:Dg},marginRight:{style:Dg},marginBottom:{style:Dg},marginLeft:{style:Dg},marginX:{style:Dg},marginY:{style:Dg},marginInline:{style:Dg},marginInlineStart:{style:Dg},marginInlineEnd:{style:Dg},marginBlock:{style:Dg},marginBlockStart:{style:Dg},marginBlockEnd:{style:Dg},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:nm},rowGap:{style:om},columnGap:{style:rm},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sm},maxWidth:{style:lm},minWidth:{transform:sm},height:{transform:sm},maxHeight:{transform:sm},minHeight:{transform:sm},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function hm(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:s=e,themeKey:a,transform:l,style:c}=i;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const u=Sg(n,a)||{};if(c)return c(o);return bg(o,t,t=>{let n=Cg(u,l,t);return t===n&&"string"==typeof t&&(n=Cg(u,l,`${e}${"default"===t?"":wg(t)}`,t)),!1===s?n:{[s]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:s}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:pm;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=yg(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=(s=r[n],l=i,"function"==typeof s?s(l):s);var s,l;if(null!=o)if("object"==typeof o)if(a[n])c=gg(c,e(n,o,i,a));else{const e=bg({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=gg(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=gg(c,e(n,o,i,a))}),!s&&i.modularCssLayers?{"@layer sx":xg(l,c)}:xg(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const gm=hm();function mm(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}gm.filterProps=["sx"];const vm=["breakpoints","palette","spacing","shape"];function bm(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=vf(e,vm),a=pg(n),l=function(e=8){if(e.mui)return e;const t=Pg({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let c=ug({breakpoints:a,direction:"ltr",components:{},palette:mf({mode:"light"},r),spacing:l,shape:mf({},hg,i)},s);return c.applyStyles=mm,c=t.reduce((e,t)=>ug(e,t),c),c.unstable_sxConfig=mf({},pm,null==s?void 0:s.unstable_sxConfig),c.unstable_sx=function(e){return gm({sx:e,theme:this})},c}var ym=Object.freeze({__proto__:null,default:bm,private_createBreakpoints:pg,unstable_applyStyles:mm});function xm(e=null){const t=C.useContext(dh);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const _m=bm();function wm(e=_m){return xm(e)}function km(e){const t=sg(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Sm({styles:e,themeId:t,defaultTheme:n={}}){const r=wm(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>km("function"==typeof e?e(o):e)):km(i)),Nu.jsx(ng,{styles:i})}const Cm=["sx"];function Em(e){const{sx:t}=e,n=vf(e,Cm),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:pm;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return lg(n)?mf({},r,n):r}:mf({},r,t),mf({},o,{sx:i})}var Tm=Object.freeze({__proto__:null,default:gm,extendSxProp:Em,unstable_createStyleFunctionSx:hm,unstable_defaultSxConfig:pm});const Am=e=>e,Lm=(()=>{let e=Am;return{configure(t){e=t},generate:t=>e(t),reset(){e=Am}}})();function Mm(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Mm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Rm(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Mm(e))&&(r&&(r+=" "),r+=t);return r}const Nm=["className","component"];const Om={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Pm(e,t,n="Mui"){const r=Om[t];return r?`${n}-${r}`:`${Lm.generate(e)}-${t}`}function Im(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Pm(e,t,n)}),r}var zm,jm,Dm={exports:{}},Fm={};function Bm(){if(zm)return Fm;zm=1;var e=Symbol.for("react.transitional.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.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case c:case f:return p;default:switch(p=p&&p.$$typeof){case s:case a:case d:case u:case i:return p;default:return h}}case t:return h}}}return Fm.ContextConsumer=i,Fm.ContextProvider=s,Fm.Element=e,Fm.ForwardRef=a,Fm.Fragment=n,Fm.Lazy=d,Fm.Memo=u,Fm.Portal=t,Fm.Profiler=o,Fm.StrictMode=r,Fm.Suspense=l,Fm.SuspenseList=c,Fm.isContextConsumer=function(e){return h(e)===i},Fm.isContextProvider=function(e){return h(e)===s},Fm.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Fm.isForwardRef=function(e){return h(e)===a},Fm.isFragment=function(e){return h(e)===n},Fm.isLazy=function(e){return h(e)===d},Fm.isMemo=function(e){return h(e)===u},Fm.isPortal=function(e){return h(e)===t},Fm.isProfiler=function(e){return h(e)===o},Fm.isStrictMode=function(e){return h(e)===r},Fm.isSuspense=function(e){return h(e)===l},Fm.isSuspenseList=function(e){return h(e)===c},Fm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===s||e.$$typeof===i||e.$$typeof===a||e.$$typeof===p||void 0!==e.getModuleId)},Fm.typeOf=h,Fm}function $m(){return jm||(jm=1,Dm.exports=Bm()),Dm.exports}var Hm=$m();const Wm=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Km(e){const t=`${e}`.match(Wm);return t&&t[1]||""}function Um(e,t=""){return e.displayName||e.name||Km(e)||t}function Gm(e,t,n){const r=Um(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ym=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Um(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Hm.ForwardRef:return Gm(e,e.render,"ForwardRef");case Hm.Memo:return Gm(e,e.type,"memo");default:return}}},getFunctionName:Km});const Vm=["ownerState"],Jm=["variants"],qm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Xm(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Qm(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Zm=bm(),ev=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function tv({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function nv(e){return e?(t,n)=>n[e]:null}function rv(e,t,n){let{ownerState:r}=t,o=vf(t,Vm);const i="function"==typeof e?e(mf({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(e=>rv(e,mf({ownerState:r},o),n));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=vf(i,Jm);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props(mf({ownerState:r},o,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style(mf({ownerState:r},o,r)):e.style;t.push(n?Qm(sg(i),n):i)}}),t}return n?Qm(sg(i),n):i}const ov=function(e={}){const{themeId:t,defaultTheme:n=Zm,rootShouldForwardProp:r=Xm,slotShouldForwardProp:o=Xm}=e,i=e=>gm(mf({},e,{theme:tv(mf({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,s={})=>{og(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:a,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=nv(ev(l))}=s,f=vf(s,qm),p=a&&a.startsWith("Mui")||l?"components":"custom",h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,g=u||!1;let m=Xm;"Root"===l||"root"===l?m=r:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=rg(e,mf({shouldForwardProp:m,label:void 0},f)),b=e=>"function"==typeof e&&e.__emotion_real!==e||lg(e)?r=>{const o=tv({theme:r.theme,defaultTheme:n,themeId:t});return rv(e,mf({},r,{theme:o}),o.modularCssLayers?p:void 0)}:e,y=(r,...o)=>{let s=b(r);const l=o?o.map(b):[];a&&d&&l.push(e=>{const r=tv(mf({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[a]||!r.components[a].styleOverrides)return null;const o=r.components[a].styleOverrides,i={};return Object.entries(o).forEach(([t,n])=>{i[t]=rv(n,mf({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),d(e,i)}),a&&!h&&l.push(e=>{var r;const o=tv(mf({},e,{defaultTheme:n,themeId:t}));return rv({variants:null==o||null==(r=o.components)||null==(r=r[a])?void 0:r.variants},mf({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),g||l.push(i);const c=l.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}const u=v(s,...l);return e.muiName&&(u.muiName=e.muiName),u};return v.withConfig&&(y.withConfig=v.withConfig),y}}();function iv(e,t){const n=mf({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=mf({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=mf({},i),Object.keys(o).forEach(e=>{n[r][e]=iv(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}function sv({props:e,name:t,defaultTheme:n,themeId:r}){let o=wm(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?iv(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const av="undefined"!=typeof window?C.useLayoutEffect:C.useEffect;function lv(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var cv=Object.freeze({__proto__:null,default:lv});function uv(e){if(e.type)return e;if("#"===e.charAt(0))return uv(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(pf(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(pf(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function dv(e,t){return e=uv(e),t=function(e,t=0,n=1){return lv(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function fv(e){return e&&e.ownerDocument||document}function pv(e){return fv(e).defaultView||window}function hv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let gv=0;const mv=C["useId".toString()];function vv(e){if(void 0!==mv){const t=mv();return null!=e?e:t}return function(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{null==t&&(gv+=1,n(`mui-${gv}`))},[t]),r}(e)}function bv(e){const t=C.useRef(e);return av(()=>{t.current=e}),C.useRef((...e)=>(0,t.current)(...e)).current}function yv(...e){return C.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{hv(e,t)})},e)}const xv={};const _v=[];class wv{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wv}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function kv(){const e=function(e,t){const n=C.useRef(xv);return n.current===xv&&(n.current=e(t)),n}(wv.create).current;return function(e){C.useEffect(e,_v)}(e.disposeEffect),e}let Sv=!0,Cv=!1;const Ev=new wv,Tv={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Av(e){e.metaKey||e.altKey||e.ctrlKey||(Sv=!0)}function Lv(){Sv=!1}function Mv(){"hidden"===this.visibilityState&&Cv&&(Sv=!0)}function Rv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Sv||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Tv[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Nv(){const e=C.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Av,!0),t.addEventListener("mousedown",Lv,!0),t.addEventListener("pointerdown",Lv,!0),t.addEventListener("touchstart",Lv,!0),t.addEventListener("visibilitychange",Mv,!0))},[]),t=C.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Rv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Cv=!0,Ev.start(100,()=>{Cv=!1}),t.current=!1,!0)},ref:e}}function Ov(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function Pv(e){return"string"==typeof e}function Iv(e,t,n){return void 0===e||Pv(e)?t:mf({},t,{ownerState:mf({},t.ownerState,n)})}function zv(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function jv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Rm(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=mf({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),s=mf({},n,o,r);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}(mf({},o,r)),a=zv(r),l=zv(o),c=t(s),u=Rm(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=mf({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),f=mf({},c,n,l,a);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const Dv=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Fv(e){var t;return parseInt(C.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Bv=C.createContext(null);function $v(){return C.useContext(Bv)}var Hv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Wv(e){const{children:t,theme:n}=e,r=$v(),o=C.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return mf({},e,t)}(r,n);return null!=e&&(e[Hv]=null!==r),e},[n,r]);return Nu.jsx(Bv.Provider,{value:o,children:t})}const Kv=["value"],Uv=C.createContext();function Gv(e){let{value:t}=e,n=vf(e,Kv);return Nu.jsx(Uv.Provider,mf({value:null==t||t},n))}const Yv=C.createContext(void 0);function Vv({value:e,children:t}){return Nu.jsx(Yv.Provider,{value:e,children:t})}function Jv({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?iv(o.defaultProps,r):o.styleOverrides||o.variants?r:iv(o,r)}({props:e,name:t,theme:{components:C.useContext(Yv)}})}const qv={};function Xv(e,t,n,r=!1){return C.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),s=e?mf({},t,{[e]:i}):i;return r?()=>s:s}return mf({},t,e?{[e]:n}:n)},[e,t,n,r])}function Qv(e){const{children:t,theme:n,themeId:r}=e,o=xm(qv),i=$v()||qv,s=Xv(r,o,n),a=Xv(r,i,n,!0),l="rtl"===s.direction,c=function(e){const t=xm(),n=vv()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",av(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?Nu.jsx(Sm,{styles:o}):null}(s);return Nu.jsx(Wv,{theme:a,children:Nu.jsx(dh.Provider,{value:s,children:Nu.jsx(Gv,{value:l,children:Nu.jsxs(Vv,{value:null==s?void 0:s.components,children:[c,t]})})})})}function Zv(e){return Zv="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},Zv(e)}function eb(e){var t=function(e,t){if("object"!=Zv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Zv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zv(t)?t:t+""}const tb=["component","direction","spacing","divider","children","className","useFlexGap"],nb=bm(),rb=ov("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ob(e){return sv({props:e,name:"MuiStack",defaultTheme:nb})}function ib(e,t){const n=C.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(C.cloneElement(t,{key:`separator-${o}`})),e),[])}const sb=({ownerState:e,theme:t})=>{let n=mf({display:"flex",flexDirection:"column"},bg({theme:t},_g({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const r=Pg(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=_g({values:e.direction,base:o}),s=_g({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}});n=ug(n,bg({theme:t},s,(t,n)=>{return e.useFlexGap?{gap:Ig(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:Ig(r,t)}};var o}))}return n=function(e,...t){const n=yg(e),r=[n,...t].reduce((e,t)=>ug(e,t),{});return xg(Object.keys(n),r)}(t.breakpoints,n),n};function ab(e,t){return mf({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var lb,cb={},ub={exports:{}};function db(){return lb||(lb=1,(e=ub).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),ub.exports;var e}var fb,pb=j(hf),hb=j(cv);function gb(){if(fb)return cb;fb=1;var e=db();Object.defineProperty(cb,"__esModule",{value:!0}),cb.alpha=u,cb.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),s=i(e),l=i(t),c=[o(s.values[0],l.values[0]),o(s.values[1],l.values[1]),o(s.values[2],l.values[2])];return a({type:"rgb",values:c})},cb.colorChannel=void 0,cb.darken=d,cb.decomposeColor=i,cb.emphasize=p,cb.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},cb.getLuminance=c,cb.hexToRgb=o,cb.hslToRgb=l,cb.lighten=f,cb.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},cb.private_safeColorChannel=void 0,cb.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},cb.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},cb.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},cb.recomposeColor=a,cb.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(pb),n=e(hb);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let s,a=e.substring(n+1,e.length-1);if("color"===r){if(a=a.split(" "),s=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(s))throw new Error((0,t.default)(10,s))}else a=a.split(",");return a=a.map(e=>parseFloat(e)),{type:r,values:a,colorSpace:s}}const s=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};cb.colorChannel=s;function a(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-s*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,a(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return a(e)}function p(e,t=.15){return c(e)>.5?d(e,t):f(e,t)}return cb.private_safeColorChannel=(e,t)=>{try{return s(e)}catch(t){return e}},cb}var mb=gb();const vb=["mode","contrastThreshold","tonalOffset"],bb={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Nd.white,default:Nd.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},yb={text:{primary:Nd.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Nd.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function xb(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=mb.lighten(e.main,o):"dark"===t&&(e.dark=mb.darken(e.main,i)))}function _b(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=vf(e,vb),i=e.primary||function(e="light"){return"dark"===e?{main:Ud,light:Kd,dark:Gd}:{main:Yd,light:Gd,dark:Vd}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:Fd,light:Dd,dark:$d}:{main:Hd,light:Bd,dark:Wd}}(t),a=e.error||function(e="light"){return"dark"===e?{main:Id,light:Od,dark:zd}:{main:zd,light:Pd,dark:jd}}(t),l=e.info||function(e="light"){return"dark"===e?{main:qd,light:Jd,dark:Qd}:{main:Qd,light:Xd,dark:Zd}}(t),c=e.success||function(e="light"){return"dark"===e?{main:tf,light:ef,dark:rf}:{main:of,light:nf,dark:sf}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:lf,light:af,dark:uf}:{main:"#ed6c02",light:cf,dark:df}}(t);function d(e){return mb.getContrastRatio(e,yb.text.primary)>=n?yb.text.primary:bb.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=mf({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(pf(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(pf(12,t?` (${t})`:"",JSON.stringify(e.main)));return xb(e,"light",o,r),xb(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:yb,light:bb};return ug(mf({common:mf({},Nd),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:ff,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const wb=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const kb={textTransform:"uppercase"},Sb='"Roboto", "Helvetica", "Arial", sans-serif';function Cb(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Sb,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=vf(n,wb),p=o/14,h=d||(e=>e/c*p+"rem"),g=(e,t,n,o,i)=>{return mf({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Sb?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5)+"em"}:{},i,u);var s},m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,kb),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,kb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ug(mf({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},m),f,{clone:!1})}function Eb(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Tb=["none",Eb(0,2,1,-1,0,1,1,0,0,1,3,0),Eb(0,3,1,-2,0,2,2,0,0,1,5,0),Eb(0,3,3,-2,0,3,4,0,0,1,8,0),Eb(0,2,4,-1,0,4,5,0,0,1,10,0),Eb(0,3,5,-1,0,5,8,0,0,1,14,0),Eb(0,3,5,-1,0,6,10,0,0,1,18,0),Eb(0,4,5,-2,0,7,10,1,0,2,16,1),Eb(0,5,5,-3,0,8,10,1,0,3,14,2),Eb(0,5,6,-3,0,9,12,1,0,3,16,2),Eb(0,6,6,-3,0,10,14,1,0,4,18,3),Eb(0,6,7,-4,0,11,15,1,0,4,20,3),Eb(0,7,8,-4,0,12,17,2,0,5,22,4),Eb(0,7,8,-4,0,13,19,2,0,5,24,4),Eb(0,7,9,-4,0,14,21,2,0,5,26,4),Eb(0,8,9,-5,0,15,22,2,0,6,28,5),Eb(0,8,10,-5,0,16,24,2,0,6,30,5),Eb(0,8,11,-5,0,17,26,2,0,6,32,5),Eb(0,9,11,-5,0,18,28,2,0,7,34,6),Eb(0,9,12,-6,0,19,29,2,0,7,36,6),Eb(0,10,13,-6,0,20,31,3,0,8,38,7),Eb(0,10,13,-6,0,21,33,3,0,8,40,7),Eb(0,10,14,-6,0,22,35,3,0,8,42,7),Eb(0,11,14,-7,0,23,36,3,0,9,44,8),Eb(0,11,15,-7,0,24,38,3,0,9,46,8)],Ab=["duration","easing","delay"],Lb={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Mb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Rb(e){return`${Math.round(e)}ms`}function Nb(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ob(e){const t=mf({},Lb,e.easing),n=mf({},Mb,e.duration);return mf({getAutoHeightDuration:Nb,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:s=0}=r;return vf(r,Ab),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Rb(o)} ${i} ${"string"==typeof s?s:Rb(s)}`).join(",")}},e,{easing:t,duration:n})}const Pb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ib=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function zb(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=vf(e,Ib);if(e.vars&&void 0===e.generateCssVars)throw new Error(pf(18));const a=_b(r),l=bm(e);let c=ug(l,{mixins:ab(l.breakpoints,n),palette:a,shadows:Tb.slice(),typography:Cb(a,i),transitions:Ob(o),zIndex:mf({},Pb)});return c=ug(c,s),c=t.reduce((e,t)=>ug(e,t),c),c.unstable_sxConfig=mf({},pm,null==s?void 0:s.unstable_sxConfig),c.unstable_sx=function(e){return gm({sx:e,theme:this})},c}const jb=zb();function Db(){const e=wm(jb);return e[gf]||e}var Fb,Bb={},$b={exports:{}};function Hb(){return Fb||(Fb=1,function(e){function t(){return e.exports=t=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},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}($b)),$b.exports}var Wb,Kb={exports:{}};function Ub(){return Wb||(Wb=1,(e=Kb).exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports),Kb.exports;var e}var Gb,Yb=j(ag),Vb=j(dg),Jb=j(kg),qb=j(Ym),Xb=j(ym),Qb=j(Tm);function Zb(){if(Gb)return Bb;Gb=1;var e=db();Object.defineProperty(Bb,"__esModule",{value:!0}),Bb.default=function(e={}){const{themeId:i,defaultTheme:a=p,rootShouldForwardProp:l=d,slotShouldForwardProp:u=d}=e,f=e=>(0,s.default)((0,t.default)({},e,{theme:g((0,t.default)({},e,{defaultTheme:a,themeId:i}))}));return f.__mui_systemSx=!0,(e,s={})=>{(0,r.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:p,slot:b,skipVariantsResolver:y,skipSx:x,overridesResolver:_=m(h(b))}=s,w=(0,n.default)(s,c),k=p&&p.startsWith("Mui")||b?"components":"custom",S=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,C=x||!1;let E=d;"Root"===b||"root"===b?E=l:b?E=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const T=(0,r.default)(e,(0,t.default)({shouldForwardProp:E,label:void 0},w)),A=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=g({theme:n.theme,defaultTheme:a,themeId:i});return v(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?k:void 0)}:e,L=(n,...r)=>{let o=A(n);const s=r?r.map(A):[];p&&_&&s.push(e=>{const n=g((0,t.default)({},e,{defaultTheme:a,themeId:i}));if(!n.components||!n.components[p]||!n.components[p].styleOverrides)return null;const r=n.components[p].styleOverrides,o={};return Object.entries(r).forEach(([r,i])=>{o[r]=v(i,(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),_(e,o)}),p&&!S&&s.push(e=>{var n;const r=g((0,t.default)({},e,{defaultTheme:a,themeId:i}));return v({variants:null==r||null==(n=r.components)||null==(n=n[p])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),C||s.push(f);const l=s.length-r.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const c=T(o,...s);return e.muiName&&(c.muiName=e.muiName),c};return T.withConfig&&(L.withConfig=T.withConfig),L}},Bb.shouldForwardProp=d,Bb.systemDefaultTheme=void 0;var t=e(Hb()),n=e(Ub()),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Yb),o=Vb;e(Jb),e(qb);var i=e(Xb),s=e(Qb);const a=["ownerState"],l=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function f(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const p=Bb.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function g({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function m(e){return e?(t,n)=>n[e]:null}function v(e,o,i){let{ownerState:s}=o,c=(0,n.default)(o,a);const u="function"==typeof e?e((0,t.default)({ownerState:s},c)):e;if(Array.isArray(u))return u.flatMap(e=>v(e,(0,t.default)({ownerState:s},c),i));if(u&&"object"==typeof u&&Array.isArray(u.variants)){const{variants:e=[]}=u;let o=(0,n.default)(u,l);return e.forEach(e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:s},c,s)):Object.keys(e.props).forEach(t=>{(null==s?void 0:s[t])!==e.props[t]&&c[t]!==e.props[t]&&(n=!1)}),n){Array.isArray(o)||(o=[o]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:s},c,s)):e.style;o.push(i?f((0,r.internal_serializeStyles)(n),i):n)}}),o}return i?f((0,r.internal_serializeStyles)(u),i):u}return Bb}const ey=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,ty=z(Zb())({themeId:gf,defaultTheme:jb,rootShouldForwardProp:ey}),ny=["theme"];function ry(e){let{theme:t}=e,n=vf(e,ny);const r=t[gf];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=mf({},r,{vars:null}):t&&!t.vars&&(o=mf({},t,{vars:null}))),Nu.jsx(Qv,mf({},n,{themeId:r?gf:void 0,theme:o}))}const oy=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function iy(e){return Jv(e)}function sy(e,t){return sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sy(e,t)}function ay(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sy(e,t)}var ly=!1,cy=y.createContext(null),uy="unmounted",dy="exited",fy="entering",py="entered",hy="exiting",gy=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=dy,r.appearStatus=fy):o=py:o=t.unmountOnExit||t.mountOnEnter?uy:dy,r.state={status:o},r.nextCallback=null,r}ay(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===uy?{status:dy}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==fy&&n!==py&&(t=fy):n!==fy&&n!==py||(t=hy)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===fy){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:p.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===dy&&this.setState({status:uy})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[p.findDOMNode(this),r],i=o[0],s=o[1],a=this.getTimeouts(),l=r?a.appear:a.enter;!e&&!n||ly?this.safeSetState({status:py},function(){t.props.onEntered(i)}):(this.props.onEnter(i,s),this.safeSetState({status:fy},function(){t.props.onEntering(i,s),t.onTransitionEnd(l,function(){t.safeSetState({status:py},function(){t.props.onEntered(i,s)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:p.findDOMNode(this);t&&!ly?(this.props.onExit(r),this.safeSetState({status:hy},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:dy},function(){e.props.onExited(r)})})})):this.safeSetState({status:dy},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:p.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===uy)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=vf(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(cy.Provider,{value:null},"function"==typeof n?n(e,r):y.cloneElement(y.Children.only(n),r))},t}(y.Component);function my(){}function vy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function by(e,t){var n=Object.create(null);return e&&L.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&T(e)?t(e):e}(e)}),n}function yy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function xy(e,t,n){var r=by(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var s in e)s in t?i.length&&(o[s]=i,i=[]):i.push(s);var a={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];a[o[l][r]]=n(c)}a[l]=n(l)}for(r=0;r<i.length;r++)a[i[r]]=n(i[r]);return a}(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(T(s)){var a=i in t,l=i in r,c=t[i],u=T(c)&&!c.props.in;!l||a&&!u?l||!a||u?l&&a&&T(c)&&(o[i]=A(s,{onExited:n.bind(null,s),in:c.props.in,exit:yy(s,"exit",e),enter:yy(s,"enter",e)})):o[i]=A(s,{in:!1}):o[i]=A(s,{onExited:n.bind(null,s),in:!0,exit:yy(s,"exit",e),enter:yy(s,"enter",e)})}}),o}gy.contextType=cy,gy.propTypes={},gy.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:my,onEntering:my,onEntered:my,onExit:my,onExiting:my,onExited:my},gy.UNMOUNTED=uy,gy.EXITED=dy,gy.ENTERING=fy,gy.ENTERED=py,gy.EXITING=hy;var _y=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},wy=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(vy(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}ay(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,by(n.children,function(e){return A(e,{onExited:r.bind(null,e),in:!0,appear:yy(e,"appear",n),enter:yy(e,"enter",n),exit:yy(e,"exit",n)})})):xy(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=by(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=mf({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=vf(e,["component","childFactory"]),o=this.state.contextValue,i=_y(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?y.createElement(cy.Provider,{value:o},i):y.createElement(cy.Provider,{value:o},y.createElement(t,r,i))},t}(y.Component);wy.propTypes={},wy.defaultProps={component:"div",childFactory:function(e){return e}};function ky(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:null!=(n=s.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=s.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:s.transitionDelay}}function Sy(e){return Pm("MuiPaper",e)}Im("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Cy=["className","component","elevation","square","variant"],Ey=ty("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return mf({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&mf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${mb.alpha("#fff",oy(t.elevation))}, ${mb.alpha("#fff",oy(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Ty=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:s=!1,variant:a="elevation"}=n,l=vf(n,Cy),c=mf({},n,{component:o,elevation:i,square:s,variant:a}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Ov({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Sy,o)})(c);return Nu.jsx(Ey,mf({as:o,ownerState:c,className:Rm(u.root,r),ref:t},l))});const Ay=Im("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ly=["center","classes","className"];let My,Ry,Ny,Oy,Py=e=>e;const Iy=Lh(My||(My=Py`
15
15
  0% {
16
16
  transform: scale(0);
17
17
  opacity: 0.1;
@@ -84,18 +84,18 @@ System.register(["@nebula.js/stardust","react-dom","react"],function(e){"use str
84
84
  animation-iteration-count: infinite;
85
85
  animation-delay: 200ms;
86
86
  }
87
- `),Ay.rippleVisible,Iy,550,({theme:e})=>e.transitions.easing.easeInOut,Ay.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ay.child,Ay.childLeaving,zy,550,({theme:e})=>e.transitions.easing.easeInOut,Ay.childPulsate,jy,({theme:e})=>e.transitions.easing.easeInOut),By=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,s=vf(n,Ly),[a,l]=C.useState([]),c=C.useRef(0),u=C.useRef(null);C.useEffect(()=>{u.current&&(u.current(),u.current=null)},[a]);const d=C.useRef(!1),f=Sv(),p=C.useRef(null),h=C.useRef(null),g=C.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:s}=e;l(e=>[...e,Nu.jsx(Fy,{classes:{ripple:Rm(o.ripple,Ay.ripple),rippleVisible:Rm(o.rippleVisible,Ay.rippleVisible),ripplePulsate:Rm(o.ripplePulsate,Ay.ripplePulsate),child:Rm(o.child,Ay.child),childLeaving:Rm(o.childLeaving,Ay.childLeaving),childPulsate:Rm(o.childPulsate,Ay.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,u.current=s},[o]),m=C.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const a=s?null:h.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,m;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)m=Math.sqrt((2*l.width**2+l.height**2)/3),m%2==0&&(m+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;m=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:m,cb:n})},f.start(80,()=>{p.current&&(p.current(),p.current=null)})):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:m,cb:n})},[r,g,f]),v=C.useCallback(()=>{m({},{pulsate:!0})},[m]),b=C.useCallback((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void f.start(0,()=>{b(e,t)});p.current=null,l(e=>e.length>0?e.slice(1):e),u.current=t},[f]);return C.useImperativeHandle(t,()=>({pulsate:v,start:m,stop:b}),[v,m,b]),Nu.jsx(Dy,mf({className:Rm(Ay.root,o.root,i),ref:h},s,{children:Nu.jsx(wy,{component:null,exit:!0,children:a})}))});function $y(e){return Pm("MuiButtonBase",e)}const Hy=Im("MuiButtonBase",["root","disabled","focusVisible"]),Wy=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ky=ty("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Hy.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Uy=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:s,component:a="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:p,onClick:h,onContextMenu:g,onDragLeave:m,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:_,onMouseLeave:w,onMouseUp:S,onTouchEnd:k,onTouchMove:E,onTouchStart:T,tabIndex:A=0,TouchRippleProps:L,touchRippleRef:M,type:R}=n,N=vf(n,Wy),O=C.useRef(null),P=C.useRef(null),I=yv(P,M),{isFocusVisibleRef:z,onFocus:j,onBlur:D,ref:F}=Nv(),[B,$]=C.useState(!1);l&&B&&$(!1),C.useImperativeHandle(r,()=>({focusVisible:()=>{$(!0),O.current.focus()}}),[]);const[H,W]=C.useState(!1);C.useEffect(()=>{W(!0)},[]);const K=H&&!c&&!l;function U(e,t,n=u){return bv(r=>{t&&t(r);return!n&&P.current&&P.current[e](r),!0})}C.useEffect(()=>{B&&d&&!c&&H&&P.current.pulsate()},[c,d,B,H]);const G=U("start",_),Y=U("stop",g),V=U("stop",m),J=U("stop",S),q=U("stop",e=>{B&&e.preventDefault(),w&&w(e)}),X=U("start",T),Q=U("stop",k),Z=U("stop",E),ee=U("stop",e=>{D(e),!1===z.current&&$(!1),p&&p(e)},!1),te=bv(e=>{O.current||(O.current=e.currentTarget),j(e),!0===z.current&&($(!0),b&&b(e)),v&&v(e)}),ne=()=>{const e=O.current;return a&&"button"!==a&&!("A"===e.tagName&&e.href)},re=C.useRef(!1),oe=bv(e=>{d&&!re.current&&B&&P.current&&" "===e.key&&(re.current=!0,P.current.stop(e,()=>{P.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=bv(e=>{d&&" "===e.key&&P.current&&B&&!e.defaultPrevented&&(re.current=!1,P.current.stop(e,()=>{P.current.pulsate(e)})),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)});let se=a;"button"===se&&(N.href||N.to)&&(se=f);const ae={};"button"===se?(ae.type=void 0===R?"button":R,ae.disabled=l):(N.href||N.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const le=yv(t,F,O),ce=mf({},n,{centerRipple:o,component:a,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:A,focusVisible:B}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ov({root:["root",t&&"disabled",n&&"focusVisible"]},$y,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Nu.jsxs(Ky,mf({as:se,className:Rm(ue.root,s),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:q,onMouseUp:J,onDragLeave:V,onTouchEnd:Q,onTouchMove:Z,onTouchStart:X,ref:le,tabIndex:l?-1:A,type:R},ae,N,{children:[i,K?Nu.jsx(By,mf({ref:I,center:o},L)):null]}))});function Gy(e){return Pm("MuiIconButton",e)}const Yy=Im("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Vy=["edge","children","className","color","disabled","disableFocusRipple","size"],Jy=ty(Uy,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${wg(n.color)}`],n.edge&&t[`edge${wg(n.edge)}`],t[`size${wg(n.size)}`]]}})(({theme:e,ownerState:t})=>mf({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mb.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return mf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&mf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":mf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mb.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Yy.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),qy=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:s="default",disabled:a=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=vf(n,Vy),d=mf({},n,{edge:r,color:s,disabled:a,disableFocusRipple:l,size:c}),f=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return Ov({root:["root",n&&"disabled","default"!==r&&`color${wg(r)}`,o&&`edge${wg(o)}`,`size${wg(i)}`]},Gy,t)})(d);return Nu.jsx(Jy,mf({className:Rm(f.root,i),centerRipple:!0,focusRipple:!l,disabled:a,ref:t},u,{ownerState:d,children:o}))});function Xy(e){return Pm("MuiTypography",e)}Im("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Qy=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Zy=ty("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${wg(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>mf({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),ex={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},tx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nx=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiTypography"}),r=(e=>tx[e]||e)(n.color),o=Em(mf({},n,{color:r})),{align:i="inherit",className:s,component:a,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=ex}=o,p=vf(o,Qy),h=mf({},o,{align:i,color:r,className:s,component:a,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:f}),g=a||(u?"p":f[d]||ex[d])||"span",m=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e;return Ov({root:["root",i,"inherit"!==e.align&&`align${wg(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Xy,s)})(h);return Nu.jsx(Zy,mf({as:g,ref:t,ownerState:h,className:Rm(m.root,s)},p))});var rx,ox={};function ix(){if(rx)return ox;rx=1,Object.defineProperty(ox,"__esModule",{value:!0}),ox.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(o,s,a):o[s]=e[s]}return o.default=e,r&&r.set(e,o),o}(y),t=Yb;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}return ox.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},ox}var sx=z(ix()),ax="top",lx="bottom",cx="right",ux="left",dx="auto",fx=[ax,lx,cx,ux],px="start",hx="end",gx="viewport",mx="popper",vx=fx.reduce(function(e,t){return e.concat([t+"-"+px,t+"-"+hx])},[]),bx=[].concat(fx,[dx]).reduce(function(e,t){return e.concat([t,t+"-"+px,t+"-"+hx])},[]),yx=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function xx(e){return e?(e.nodeName||"").toLowerCase():null}function _x(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wx(e){return e instanceof _x(e).Element||e instanceof Element}function Sx(e){return e instanceof _x(e).HTMLElement||e instanceof HTMLElement}function kx(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _x(e).ShadowRoot||e instanceof ShadowRoot)}var Cx={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Sx(o)&&xx(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Sx(r)&&xx(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function Ex(e){return e.split("-")[0]}var Tx=Math.max,Ax=Math.min,Lx=Math.round;function Mx(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Rx(){return!/^((?!chrome|android).)*safari/i.test(Mx())}function Nx(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Sx(e)&&(o=e.offsetWidth>0&&Lx(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Lx(r.height)/e.offsetHeight||1);var s=(wx(e)?_x(e):window).visualViewport,a=!Rx()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/o,c=(r.top+(a&&s?s.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Ox(e){var t=Nx(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Px(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&kx(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ix(e){return _x(e).getComputedStyle(e)}function zx(e){return["table","td","th"].indexOf(xx(e))>=0}function jx(e){return((wx(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dx(e){return"html"===xx(e)?e:e.assignedSlot||e.parentNode||(kx(e)?e.host:null)||jx(e)}function Fx(e){return Sx(e)&&"fixed"!==Ix(e).position?e.offsetParent:null}function Bx(e){for(var t=_x(e),n=Fx(e);n&&zx(n)&&"static"===Ix(n).position;)n=Fx(n);return n&&("html"===xx(n)||"body"===xx(n)&&"static"===Ix(n).position)?t:n||function(e){var t=/firefox/i.test(Mx());if(/Trident/i.test(Mx())&&Sx(e)&&"fixed"===Ix(e).position)return null;var n=Dx(e);for(kx(n)&&(n=n.host);Sx(n)&&["html","body"].indexOf(xx(n))<0;){var r=Ix(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function $x(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hx(e,t,n){return Tx(e,Ax(t,n))}function Wx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Kx(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ux={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Ex(n.placement),l=$x(a),c=[ux,cx].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(e,t){return Wx("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Kx(e,fx))}(o.padding,n),d=Ox(i),f="y"===l?ax:ux,p="y"===l?lx:cx,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],g=s[l]-n.rects.reference[l],m=Bx(i),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=h/2-g/2,y=u[f],x=v-d[c]-u[p],_=v/2-d[c]/2+b,w=Hx(y,_,x),S=l;n.modifiersData[r]=((t={})[S]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Px(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gx(e){return e.split("-")[1]}var Yx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,p=void 0===f?0:f,h=s.y,g=void 0===h?0:h,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),y=ux,x=ax,_=window;if(c){var w=Bx(n),S="clientHeight",k="clientWidth";if(w===_x(n)&&"static"!==Ix(w=jx(n)).position&&"absolute"===a&&(S="scrollHeight",k="scrollWidth"),o===ax||(o===ux||o===cx)&&i===hx)x=lx,g-=(d&&w===_&&_.visualViewport?_.visualViewport.height:w[S])-r.height,g*=l?1:-1;if(o===ux||(o===ax||o===lx)&&i===hx)y=cx,p-=(d&&w===_&&_.visualViewport?_.visualViewport.width:w[k])-r.width,p*=l?1:-1}var C,E=Object.assign({position:a},c&&Yx),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Lx(n*o)/o||0,y:Lx(r*o)/o||0}}({x:p,y:g},_x(n)):{x:p,y:g};return p=T.x,g=T.y,l?Object.assign({},E,((C={})[x]=b?"0":"",C[y]=v?"0":"",C.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",C)):Object.assign({},E,((t={})[x]=b?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var Jx={passive:!0};var qx={left:"right",right:"left",bottom:"top",top:"bottom"};function Xx(e){return e.replace(/left|right|bottom|top/g,function(e){return qx[e]})}var Qx={start:"end",end:"start"};function Zx(e){return e.replace(/start|end/g,function(e){return Qx[e]})}function e_(e){var t=_x(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function t_(e){return Nx(jx(e)).left+e_(e).scrollLeft}function n_(e){var t=Ix(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function r_(e){return["html","body","#document"].indexOf(xx(e))>=0?e.ownerDocument.body:Sx(e)&&n_(e)?e:r_(Dx(e))}function o_(e,t){var n;void 0===t&&(t=[]);var r=r_(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=_x(r),s=o?[i].concat(i.visualViewport||[],n_(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(o_(Dx(s)))}function i_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function s_(e,t,n){return t===gx?i_(function(e,t){var n=_x(e),r=jx(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Rx();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+t_(e),y:l}}(e,n)):wx(t)?function(e,t){var n=Nx(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):i_(function(e){var t,n=jx(e),r=e_(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Tx(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Tx(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+t_(e),l=-r.scrollTop;return"rtl"===Ix(o||n).direction&&(a+=Tx(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(jx(e)))}function a_(e,t,n,r){var o="clippingParents"===t?function(e){var t=o_(Dx(e)),n=["absolute","fixed"].indexOf(Ix(e).position)>=0&&Sx(e)?Bx(e):e;return wx(n)?t.filter(function(e){return wx(e)&&Px(e,n)&&"body"!==xx(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(t,n){var o=s_(e,n,r);return t.top=Tx(o.top,t.top),t.right=Ax(o.right,t.right),t.bottom=Ax(o.bottom,t.bottom),t.left=Tx(o.left,t.left),t},s_(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function l_(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Ex(o):null,s=o?Gx(o):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case ax:t={x:a,y:n.y-r.height};break;case lx:t={x:a,y:n.y+n.height};break;case cx:t={x:n.x+n.width,y:l};break;case ux:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?$x(i):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case px:t[c]=t[c]-(n[u]/2-r[u]/2);break;case hx:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function c_(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,s=void 0===i?e.strategy:i,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,u=void 0===c?gx:c,d=n.elementContext,f=void 0===d?mx:d,p=n.altBoundary,h=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,v=Wx("number"!=typeof m?m:Kx(m,fx)),b=f===mx?"reference":mx,y=e.rects.popper,x=e.elements[h?b:f],_=a_(wx(x)?x:x.contextElement||jx(e.elements.popper),l,u,s),w=Nx(e.elements.reference),S=l_({reference:w,element:y,placement:o}),k=i_(Object.assign({},y,S)),C=f===mx?k:w,E={top:_.top-C.top+v.top,bottom:C.bottom-_.bottom+v.bottom,left:_.left-C.left+v.left,right:C.right-_.right+v.right},T=e.modifiersData.offset;if(f===mx&&T){var A=T[o];Object.keys(E).forEach(function(e){var t=[cx,lx].indexOf(e)>=0?1:-1,n=[ax,lx].indexOf(e)>=0?"y":"x";E[e]+=A[n]*t})}return E}function u_(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?bx:l,u=Gx(r),d=u?a?vx:vx.filter(function(e){return Gx(e)===u}):fx,f=d.filter(function(e){return c.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,n){return t[n]=c_(e,{placement:n,boundary:o,rootBoundary:i,padding:s})[Ex(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var d_={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,v=Ex(m),b=l||(v===m||!h?[Xx(m)]:function(e){if(Ex(e)===dx)return[];var t=Xx(e);return[Zx(e),t,Zx(t)]}(m)),y=[m].concat(b).reduce(function(e,n){return e.concat(Ex(n)===dx?u_(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:g}):n)},[]),x=t.rects.reference,_=t.rects.popper,w=new Map,S=!0,k=y[0],C=0;C<y.length;C++){var E=y[C],T=Ex(E),A=Gx(E)===px,L=[ax,lx].indexOf(T)>=0,M=L?"width":"height",R=c_(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=L?A?cx:ux:A?lx:ax;x[M]>_[M]&&(N=Xx(N));var O=Xx(N),P=[];if(i&&P.push(R[T]<=0),a&&P.push(R[N]<=0,R[O]<=0),P.every(function(e){return e})){k=E,S=!1;break}w.set(E,P)}if(S)for(var I=function(e){var t=y.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},z=h?3:1;z>0;z--){if("break"===I(z))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function f_(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function p_(e){return[ax,cx,lx,ux].some(function(t){return e[t]>=0})}var h_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,s=bx.reduce(function(e,n){return e[n]=function(e,t,n){var r=Ex(e),o=[ux,ax].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[ux,cx].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,i),e},{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}};var g_={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,g=void 0===h?0:h,m=c_(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Ex(t.placement),b=Gx(t.placement),y=!b,x=$x(v),_="x"===x?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,C="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,E="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(w){if(i){var L,M="y"===x?ax:ux,R="y"===x?lx:cx,N="y"===x?"height":"width",O=w[x],P=O+m[M],I=O-m[R],z=p?-k[N]/2:0,j=b===px?S[N]:k[N],D=b===px?-k[N]:-S[N],F=t.elements.arrow,B=p&&F?Ox(F):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=$[M],W=$[R],K=Hx(0,S[N],B[N]),U=y?S[N]/2-z-K-H-E.mainAxis:j-K-H-E.mainAxis,G=y?-S[N]/2+z+K+W+E.mainAxis:D+K+W+E.mainAxis,Y=t.elements.arrow&&Bx(t.elements.arrow),V=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,J=null!=(L=null==T?void 0:T[x])?L:0,q=O+G-J,X=Hx(p?Ax(P,O+U-J-V):P,O,p?Tx(I,q):I);w[x]=X,A[x]=X-O}if(a){var Q,Z="x"===x?ax:ux,ee="x"===x?lx:cx,te=w[_],ne="y"===_?"height":"width",re=te+m[Z],oe=te-m[ee],ie=-1!==[ax,ux].indexOf(v),se=null!=(Q=null==T?void 0:T[_])?Q:0,ae=ie?re:te-S[ne]-k[ne]-se+E.altAxis,le=ie?te+S[ne]+k[ne]-se-E.altAxis:oe,ce=p&&ie?function(e,t,n){var r=Hx(e,t,n);return r>n?n:r}(ae,te,le):Hx(p?ae:re,te,p?le:oe);w[_]=ce,A[_]=ce-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function m_(e,t,n){void 0===n&&(n=!1);var r=Sx(t),o=Sx(t)&&function(e){var t=e.getBoundingClientRect(),n=Lx(t.width)/e.offsetWidth||1,r=Lx(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=jx(t),s=Nx(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==xx(t)||n_(i))&&(a=function(e){return e!==_x(e)&&Sx(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:e_(e);var t}(t)),Sx(t)?((l=Nx(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=t_(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function v_(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function b_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var y_={placement:"bottom",modifiers:[],strategy:"absolute"};function x_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function __(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?y_:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},y_,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},i,o.options,a),o.scrollParents={reference:wx(e)?o_(e):e.contextElement?o_(e.contextElement):[],popper:o_(t)};var u,d,f=function(e){var t=v_(e);return yx.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((u=[].concat(r,o.options.modifiers),d=u.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(d).map(function(e){return d[e]})));return o.orderedModifiers=f.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var a=i({state:o,name:t,instance:l,options:r}),c=function(){};s.push(a||c)}}),l.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,n=e.popper;if(x_(t,n)){o.rects={reference:m_(t,Bx(n),"fixed"===o.options.strategy),popper:Ox(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],s=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"==typeof s&&(o=s({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:b_(function(){return new Promise(function(e){l.forceUpdate(),e(o)})}),destroy:function(){c(),a=!0}};if(!x_(e,t))return l;function c(){s.forEach(function(e){return e()}),s=[]}return l.setOptions(n).then(function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var w_=__({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,s=r.resize,a=void 0===s||s,l=_x(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,Jx)}),a&&l.addEventListener("resize",n.update,Jx),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Jx)}),a&&l.removeEventListener("resize",n.update,Jx)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=l_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,c={placement:Ex(t.placement),variation:Gx(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Vx(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Vx(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Cx,h_,d_,g_,Ux,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=c_(t,{elementContext:"reference"}),a=c_(t,{altBoundary:!0}),l=f_(s,r),c=f_(a,o,i),u=p_(l),d=p_(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const S_=C.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,s]=C.useState(null),a=yv(C.isValidElement(n)?Fv(n):null,t);if(av(()=>{o||s(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),av(()=>{if(i&&!o)return hv(t,i),()=>{hv(t,null)}},[t,i,o]),o){if(C.isValidElement(n)){const e={ref:a};return C.cloneElement(n,e)}return Nu.jsx(C.Fragment,{children:n})}return Nu.jsx(C.Fragment,{children:i?h.createPortal(n,i):i})});function k_(e){return Pm("MuiPopper",e)}Im("MuiPopper",["root"]);const C_=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],E_=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function T_(e){return"function"==typeof e?e():e}const A_={},L_=C.forwardRef(function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:p={},TransitionProps:h}=e,g=vf(e,C_),m=C.useRef(null),v=yv(m,t),b=C.useRef(null),y=yv(b,d),x=C.useRef(y);av(()=>{x.current=y},[y]),C.useImperativeHandle(d,()=>b.current,[]);const _=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,i),[w,S]=C.useState(_),[k,E]=C.useState(T_(r));C.useEffect(()=>{b.current&&b.current.forceUpdate()}),C.useEffect(()=>{r&&E(T_(r))},[r]),av(()=>{if(!k||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{S(e.placement)})(e)}}];null!=a&&(e=e.concat(a)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=w_(k,m.current,mf({placement:_},u,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}},[k,s,a,l,u,_]);const T={placement:w};null!==h&&(T.TransitionProps=h);const A=(e=>{const{classes:t}=e;return Ov({root:["root"]},k_,t)})(e),L=null!=(n=p.root)?n:"div",M=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=vf(e,Dv),a=i?{}:function(e,t){return"function"==typeof e?e(t,void 0):e}(r,o),{props:l,internalRef:c}=jv(mf({},s,{externalSlotProps:a}));return Iv(n,mf({},l,{ref:yv(c,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}({elementType:L,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:A.root});return Nu.jsx(L,mf({},M,{children:"function"==typeof o?o(T):o}))}),M_=C.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:a=!1,modifiers:l,open:c,placement:u="bottom",popperOptions:d=A_,popperRef:f,style:p,transition:h=!1,slotProps:g={},slots:m={}}=e,v=vf(e,E_),[b,y]=C.useState(!0);if(!a&&!c&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=T_(n);x=e&&void 0!==e.nodeType?fv(e).body:fv(null).body}const _=c||!a||h&&!b?void 0:"none",w=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return Nu.jsx(S_,{disablePortal:s,container:x,children:Nu.jsx(L_,mf({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:f,slotProps:g,slots:m},v,{style:mf({position:"fixed",top:0,left:0,display:_},p),TransitionProps:w,children:r}))})}),R_=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],N_=ty(M_,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),O_=C.forwardRef(function(e,t){var n;const r=sx(),o=iy({props:e,name:"MuiPopper"}),{anchorEl:i,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:g,popperRef:m,transition:v,slots:b,slotProps:y}=o,x=vf(o,R_),_=null!=(n=null==b?void 0:b.root)?n:null==a?void 0:a.Root,w=mf({anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:g,popperRef:m,transition:v},x);return Nu.jsx(N_,mf({as:s,direction:null==r?void 0:r.direction,slots:{root:_},slotProps:null!=y?y:l},w,{ref:t}))}),P_=["onChange","maxRows","minRows","style","value"];function I_(e){return parseInt(e,10)||0}const z_={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function j_(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const D_=C.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:s}=e,a=vf(e,P_),{current:l}=C.useRef(null!=s),c=C.useRef(null),u=yv(t,c),d=C.useRef(null),f=C.useRef(null),p=C.useCallback(()=>{const t=c.current,n=f.current;if(!t||!n)return;const i=pv(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const s=i.boxSizing,a=I_(i.paddingBottom)+I_(i.paddingTop),l=I_(i.borderBottomWidth)+I_(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===s?a+l:0),overflowing:Math.abs(p-u)<=1}},[r,o,e.placeholder]),h=bv(()=>{const e=c.current,t=p();if(!e||!t||j_(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),g=C.useCallback(()=>{const e=c.current,t=p();if(!e||!t||j_(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[p]),m=C.useRef(-1);av(()=>{const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}(g),t=null==c?void 0:c.current;if(!t)return;const n=pv(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(m.current),g(),m.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(m.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[p,g,h]),av(()=>{g()});return Nu.jsxs(C.Fragment,{children:[Nu.jsx("textarea",mf({value:s,onChange:e=>{l||g(),n&&n(e)},ref:u,rows:o,style:i},a)),Nu.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:mf({},z_,i,{paddingTop:0,paddingBottom:0})})]})});const F_=C.createContext(void 0);function B_(e){return Nu.jsx(km,mf({},e,{defaultTheme:jb,themeId:gf}))}function $_(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function H_(e){return Pm("MuiInputBase",e)}const W_=Im("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),K_=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],U_=ty("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${wg(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>mf({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${W_.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&mf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),G_=ty("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]}})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=mf({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return mf({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${W_.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${W_.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),Y_=Nu.jsx(B_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),V_=C.forwardRef(function(e,t){var n;const r=iy({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:a,components:l={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,fullWidth:h=!1,id:g,inputComponent:m="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:_=!1,name:w,onBlur:S,onChange:k,onClick:E,onFocus:T,onKeyDown:A,onKeyUp:L,placeholder:M,readOnly:R,renderSuffix:N,rows:O,slotProps:P={},slots:I={},startAdornment:z,type:j="text",value:D}=r,F=vf(r,K_),B=null!=v.value?v.value:D,{current:$}=C.useRef(null!=B),H=C.useRef(),W=C.useCallback(e=>{},[]),K=yv(H,b,v.ref,W),[U,G]=C.useState(!1),Y=C.useContext(F_),V=function({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});V.focused=Y?Y.focused:U,C.useEffect(()=>{!Y&&d&&U&&(G(!1),S&&S())},[Y,d,U,S]);const J=Y&&Y.onFilled,q=Y&&Y.onEmpty,X=C.useCallback(e=>{!function(e,t=!1){return e&&($_(e.value)&&""!==e.value||t&&$_(e.defaultValue)&&""!==e.defaultValue)}(e)?q&&q():J&&J()},[J,q]);av(()=>{$&&X({value:B})},[B,X,$]);C.useEffect(()=>{X(H.current)},[]);let Q=m,Z=v;_&&"input"===Q&&(Z=mf(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:x},Z),Q=D_);C.useEffect(()=>{Y&&Y.setAdornedStart(Boolean(z))},[Y,z]);const ee=mf({},r,{color:V.color||"primary",disabled:V.disabled,endAdornment:p,error:V.error,focused:V.focused,formControl:Y,fullWidth:h,hiddenLabel:V.hiddenLabel,multiline:_,size:V.size,startAdornment:z,type:j}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:p,type:h}=e;return Ov({root:["root",`color${wg(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&"medium"!==f&&`size${wg(f)}`,u&&"multiline",p&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},H_,t)})(ee),ne=I.root||l.Root||U_,re=P.root||c.root||{},oe=I.input||l.Input||G_;return Z=mf({},Z,null!=(n=P.input)?n:c.input),Nu.jsxs(C.Fragment,{children:[!f&&Y_,Nu.jsxs(ne,mf({},re,!Pv(ne)&&{ownerState:mf({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),E&&E(e)}},F,{className:Rm(te.root,re.className,a,R&&"MuiInputBase-readOnly"),children:[z,Nu.jsx(F_.Provider,{value:null,children:Nu.jsx(oe,mf({ownerState:ee,"aria-invalid":V.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:u,disabled:V.disabled,id:g,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:w,placeholder:M,readOnly:R,required:V.required,rows:O,value:B,onKeyDown:A,onKeyUp:L,type:j},Z,!Pv(oe)&&{as:Q,ownerState:mf({},ee,Z.ownerState)},{ref:K,className:Rm(te.input,Z.className,R&&"MuiInputBase-readOnly"),onBlur:e=>{S&&S(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(pf(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),k&&k(e,...t)},onFocus:e=>{V.disabled?e.stopPropagation():(T&&T(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):G(!0))}}))}),p,N?N(mf({},V,{startAdornment:z})):null]}))]})}),J_=Im("MuiBox",["root"]),q_=zb(),X_=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=rg("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(gm);return C.forwardRef(function(e,s){const a=wm(n),l=Em(e),{className:c,component:u="div"}=l,d=vf(l,Nm);return Nu.jsx(i,mf({as:u,ref:s,className:Rm(c,o?o(r):r),theme:t&&a[t]||a},d))})}({themeId:gf,defaultTheme:q_,defaultClassName:J_.root,generateClassName:Lm.generate});function Q_(e){return Pm("MuiButton",e)}const Z_=Im("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),ew=C.createContext({}),tw=C.createContext(void 0),nw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rw=e=>mf({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ow=ty(Uy,{shouldForwardProp:e=>ey(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${wg(n.color)}`],t[`size${wg(n.size)}`],t[`${n.variant}Size${wg(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return mf({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":mf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mb.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mb.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mb.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":mf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Z_.focusVisible}`]:mf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Z_.disabled}`]:mf({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${mb.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Z_.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Z_.disabled}`]:{boxShadow:"none"}}),iw=ty("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${wg(n.size)}`]]}})(({ownerState:e})=>mf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},rw(e))),sw=ty("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${wg(n.size)}`]]}})(({ownerState:e})=>mf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},rw(e))),aw=C.forwardRef(function(e,t){const n=C.useContext(ew),r=C.useContext(tw),o=iy({props:iv(n,e),name:"MuiButton"}),{children:i,color:s="primary",component:a="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:h=!1,size:g="medium",startIcon:m,type:v,variant:b="text"}=o,y=vf(o,nw),x=mf({},o,{color:s,component:a,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:g,type:v,variant:b}),_=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e;return mf({},s,Ov({root:["root",i,`${i}${wg(t)}`,`size${wg(o)}`,`${i}Size${wg(o)}`,`color${wg(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${wg(o)}`],endIcon:["icon","endIcon",`iconSize${wg(o)}`]},Q_,s))})(x),w=m&&Nu.jsx(iw,{className:_.startIcon,ownerState:x,children:m}),S=f&&Nu.jsx(sw,{className:_.endIcon,ownerState:x,children:f}),k=r||"";return Nu.jsxs(ow,mf({ownerState:x,className:Rm(n.className,_.root,l,k),component:a,disabled:c,focusRipple:!d,focusVisibleClassName:Rm(_.focusVisible,p),ref:t,type:v},y,{classes:_,children:[w,i,S]}))});function lw(e){return e.substring(2).toLowerCase()}function cw(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,s=C.useRef(!1),a=C.useRef(null),l=C.useRef(!1),c=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=yv(Fv(t),a),d=bv(e=>{const t=c.current;c.current=!1;const r=fv(a.current);if(!l.current||!a.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(s.current)return void(s.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(a.current)>-1:!r.documentElement.contains(e.target)||a.current.contains(e.target),i||!n&&t||o(e)}),f=e=>n=>{c.current=!0;const r=t.props[e];r&&r(n)},p={ref:u};return!1!==i&&(p[i]=f(i)),C.useEffect(()=>{if(!1!==i){const e=lw(i),t=fv(a.current),n=()=>{s.current=!0};return t.addEventListener(e,d),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,d),t.removeEventListener("touchmove",n)}}},[d,i]),!1!==r&&(p[r]=f(r)),C.useEffect(()=>{if(!1!==r){const e=lw(r),t=fv(a.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),Nu.jsx(C.Fragment,{children:C.cloneElement(t,p)})}function uw(e){return Pm("MuiDivider",e)}const dw=Im("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],pw=ty("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>mf({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:mb.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>mf({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>mf({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>mf({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>mf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),hw=ty("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>mf({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),gw=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:s=(o?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==s?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,p=vf(n,fw),h=mf({},n,{absolute:r,component:s,flexItem:a,light:l,orientation:c,role:u,textAlign:d,variant:f}),g=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return Ov({root:["root",t&&"absolute",l,i&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]},uw,r)})(h);return Nu.jsx(pw,mf({as:s,className:Rm(g.root,i),role:u,ref:t,ownerState:h},p,{children:o?Nu.jsx(hw,{className:g.wrapper,ownerState:h,children:o}):null}))});gw.muiSkipListHighlight=!0;const mw=function(e={}){const{createStyledComponent:t=rb,useThemeProps:n=ob,componentName:r="MuiStack"}=e,o=t(sb),i=C.forwardRef(function(e,t){const i=Em(n(e)),{component:s="div",direction:a="column",spacing:l=0,divider:c,children:u,className:d,useFlexGap:f=!1}=i,p=vf(i,tb),h={direction:a,spacing:l,useFlexGap:f},g=Ov({root:["root"]},e=>Pm(r,e),{});return Nu.jsx(o,mf({as:s,ownerState:h,ref:t,className:Rm(g.root,d)},p,{children:c?ib(u,c):u}))});return i}({createStyledComponent:ty("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>iy({props:e,name:"MuiStack"})}),vw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function bw(e){return`scale(${e}, ${e**2})`}const yw={entering:{opacity:1,transform:bw(1)},entered:{opacity:1,transform:"none"}},xw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_w=C.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:s,onEnter:a,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:f,style:p,timeout:h="auto",TransitionComponent:g=gy}=e,m=vf(e,vw),v=Sv(),b=C.useRef(),y=Db(),x=C.useRef(null),_=yv(x,Fv(o),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=w(c),k=w((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=Sy({style:p,timeout:h,easing:i},{mode:"enter"});let s;"auto"===h?(s=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=s):s=n,e.style.transition=[y.transitions.create("opacity",{duration:s,delay:r}),y.transitions.create("transform",{duration:xw?s:.666*s,delay:r,easing:o})].join(","),a&&a(e,t)}),E=w(l),T=w(f),A=w(e=>{const{duration:t,delay:n,easing:r}=Sy({style:p,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:xw?o:.666*o,delay:xw?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=bw(.75),u&&u(e)}),L=w(d);return Nu.jsx(g,mf({appear:r,in:s,nodeRef:x,onEnter:k,onEntered:E,onEntering:S,onExit:A,onExited:L,onExiting:T,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},m,{children:(e,t)=>C.cloneElement(o,mf({style:mf({opacity:0,transform:bw(.75),visibility:"exited"!==e||s?void 0:"hidden"},yw[e],p,o.props.style),ref:_},t))}))});_w.muiSupportAuto=!0;const ww=C.createContext({});function Sw(e){return Pm("MuiList",e)}Im("MuiList",["root","padding","dense","subheader"]);const kw=["children","className","component","dense","disablePadding","subheader"],Cw=ty("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>mf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Ew=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:s=!1,disablePadding:a=!1,subheader:l}=n,c=vf(n,kw),u=C.useMemo(()=>({dense:s}),[s]),d=mf({},n,{component:i,dense:s,disablePadding:a}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ov({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Sw,t)})(d);return Nu.jsx(ww.Provider,{value:u,children:Nu.jsxs(Cw,mf({as:i,className:Rm(f.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})});function Tw(e){return Pm("MuiListItemIcon",e)}const Aw=Im("MuiListItemIcon",["root","alignItemsFlexStart"]),Lw=["className"],Mw=ty("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>mf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),Rw=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=vf(n,Lw),i=mf({},n,{alignItems:C.useContext(ww).alignItems}),s=(e=>{const{alignItems:t,classes:n}=e;return Ov({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Tw,n)})(i);return Nu.jsx(Mw,mf({className:Rm(s.root,r),ownerState:i,ref:t},o))}),Nw=Im("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ow=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Pw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Iw(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function zw(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function jw(e,t,n,r,o,i){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!r&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&zw(a,i)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const Dw=C.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:a=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=vf(e,Ow),f=C.useRef(null),p=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});av(()=>{r&&f.current.focus()},[r]),C.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(fv(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const h=yv(f,t);let g=-1;C.Children.forEach(i,(e,t)=>{C.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===t&&(g+=1,g>=i.length&&(g=-1))});const m=C.Children.map(i,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),C.cloneElement(e,t)}return e});return Nu.jsx(Ew,mf({role:"menu",ref:h,className:s,onKeyDown:e=>{const t=f.current,n=e.key,r=fv(t).activeElement;if("ArrowDown"===n)e.preventDefault(),jw(t,r,l,a,Pw);else if("ArrowUp"===n)e.preventDefault(),jw(t,r,l,a,Iw);else if("Home"===n)e.preventDefault(),jw(t,null,l,a,Pw);else if("End"===n)e.preventDefault(),jw(t,null,l,a,Iw);else if(1===n.length){const o=p.current,i=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(i);const l=r&&!o.repeating&&zw(r,o);o.previousKeyMatched&&(l||jw(t,r,!1,a,Pw,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:m}))});function Fw(e){return Pm("MuiMenuItem",e)}const Bw=Im("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$w=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Hw=ty(Uy,{shouldForwardProp:e=>ey(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>mf({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Bw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mb.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mb.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Bw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mb.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mb.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Bw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dw.inset}`]:{marginLeft:52},[`& .${Nw.root}`]:{marginTop:0,marginBottom:0},[`& .${Nw.inset}`]:{paddingLeft:36},[`& .${Aw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&mf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Aw.root} svg`]:{fontSize:"1.25rem"}}))),Ww=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:a=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:u,className:d}=n,f=vf(n,$w),p=C.useContext(ww),h=C.useMemo(()=>({dense:i||p.dense||!1,disableGutters:a}),[p.dense,i,a]),g=C.useRef(null);av(()=>{r&&g.current&&g.current.focus()},[r]);const m=mf({},n,{dense:h.dense,divider:s,disableGutters:a}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e;return mf({},s,Ov({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Fw,s))})(n),b=yv(g,t);let y;return n.disabled||(y=void 0!==u?u:-1),Nu.jsx(ww.Provider,{value:h,children:Nu.jsx(Hw,mf({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:Rm(v.focusVisible,l),className:Rm(v.root,d)},f,{ownerState:m,classes:v}))})});function Kw(e){return Pm("MuiTooltip",e)}const Uw=Im("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Gw=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const Yw=ty(O_,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>mf({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Uw.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Uw.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Uw.arrow}`]:mf({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Uw.arrow}`]:mf({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Vw=ty("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${wg(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>{return mf({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:mb.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${Uw.popper}[data-popper-placement*="left"] &`]:mf({transformOrigin:"right center"},t.isRtl?mf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):mf({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Uw.popper}[data-popper-placement*="right"] &`]:mf({transformOrigin:"left center"},t.isRtl?mf({marginRight:"14px"},t.touch&&{marginRight:"24px"}):mf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Uw.popper}[data-popper-placement*="top"] &`]:mf({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Uw.popper}[data-popper-placement*="bottom"] &`]:mf({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n}),Jw=ty("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:mb.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let qw=!1;const Xw=new wv;let Qw={x:0,y:0};function Zw(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const eS=C.forwardRef(function(e,t){var n,r,o,i,s,a,l,c,u,d,f,p,h,g,m,v,b,y,x;const _=iy({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:S,components:k={},componentsProps:E={},describeChild:T=!1,disableFocusListener:A=!1,disableHoverListener:L=!1,disableInteractive:M=!1,disableTouchListener:R=!1,enterDelay:N=100,enterNextDelay:O=0,enterTouchDelay:P=700,followCursor:I=!1,id:z,leaveDelay:j=0,leaveTouchDelay:D=1500,onClose:F,onOpen:B,open:$,placement:H="bottom",PopperComponent:W,PopperProps:K={},slotProps:U={},slots:G={},title:Y,TransitionComponent:V=_w,TransitionProps:J}=_,q=vf(_,Gw),X=C.isValidElement(S)?S:Nu.jsx("span",{children:S}),Q=Db(),Z=(()=>{const e=C.useContext(Uv);return null!=e&&e})(),[ee,te]=C.useState(),[ne,re]=C.useState(null),oe=C.useRef(!1),ie=M||I,se=Sv(),ae=Sv(),le=Sv(),ce=Sv(),[ue,de]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=C.useRef(void 0!==e),[i,s]=C.useState(t);return[o?e:i,C.useCallback(e=>{o||s(e)},[])]}({controlled:$,default:!1,name:"Tooltip",state:"open"});let fe=ue;const pe=vv(z),he=C.useRef(),ge=bv(()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()});C.useEffect(()=>ge,[ge]);const me=e=>{Xw.clear(),qw=!0,de(!0),B&&!fe&&B(e)},ve=bv(e=>{Xw.start(800+j,()=>{qw=!1}),de(!1),F&&fe&&F(e),se.start(Q.transitions.duration.shortest,()=>{oe.current=!1})}),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),ae.clear(),le.clear(),N||qw&&O?ae.start(qw?O:N,()=>{me(e)}):me(e))},ye=e=>{ae.clear(),le.start(j,()=>{ve(e)})},{isFocusVisibleRef:xe,onBlur:_e,onFocus:we,ref:Se}=Nv(),[,ke]=C.useState(!1),Ce=e=>{_e(e),!1===xe.current&&(ke(!1),ye(e))},Ee=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(ke(!0),be(e))},Te=e=>{oe.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)},Ae=e=>{Te(e),le.clear(),se.clear(),ge(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(P,()=>{document.body.style.WebkitUserSelect=he.current,be(e)})},Le=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),ge(),le.start(D,()=>{ve(e)})};C.useEffect(()=>{if(fe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}},[ve,fe]);const Me=yv(Fv(X),Se,te,t);Y||0===Y||(fe=!1);const Re=C.useRef(),Ne={},Oe="string"==typeof Y;T?(Ne.title=fe||!Oe||L?null:Y,Ne["aria-describedby"]=fe?pe:null):(Ne["aria-label"]=Oe?Y:null,Ne["aria-labelledby"]=fe&&!Oe?pe:null);const Pe=mf({},Ne,q,X.props,{className:Rm(q.className,X.props.className),onTouchStart:Te,ref:Me},I?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),Qw={x:e.clientX,y:e.clientY},Re.current&&Re.current.update()}}:{}),Ie={};R||(Pe.onTouchStart=Ae,Pe.onTouchEnd=Le),L||(Pe.onMouseOver=Zw(be,Pe.onMouseOver),Pe.onMouseLeave=Zw(ye,Pe.onMouseLeave),ie||(Ie.onMouseOver=be,Ie.onMouseLeave=ye)),A||(Pe.onFocus=Zw(Ee,Pe.onFocus),Pe.onBlur=Zw(Ce,Pe.onBlur),ie||(Ie.onFocus=Ee,Ie.onBlur=Ce));const ze=C.useMemo(()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=K.popperOptions)&&e.modifiers&&(t=t.concat(K.popperOptions.modifiers)),mf({},K.popperOptions,{modifiers:t})},[ne,K]),je=mf({},_,{isRtl:Z,arrow:w,disableInteractive:ie,placement:H,PopperComponentProp:W,touch:oe.current}),De=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Ov({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${wg(i.split("-")[0])}`],arrow:["arrow"]},Kw,t)})(je),Fe=null!=(n=null!=(r=G.popper)?r:k.Popper)?n:Yw,Be=null!=(o=null!=(i=null!=(s=G.transition)?s:k.Transition)?i:V)?o:_w,$e=null!=(a=null!=(l=G.tooltip)?l:k.Tooltip)?a:Vw,He=null!=(c=null!=(u=G.arrow)?u:k.Arrow)?c:Jw,We=Iv(Fe,mf({},K,null!=(d=U.popper)?d:E.popper,{className:Rm(De.popper,null==K?void 0:K.className,null==(f=null!=(p=U.popper)?p:E.popper)?void 0:f.className)}),je),Ke=Iv(Be,mf({},J,null!=(h=U.transition)?h:E.transition),je),Ue=Iv($e,mf({},null!=(g=U.tooltip)?g:E.tooltip,{className:Rm(De.tooltip,null==(m=null!=(v=U.tooltip)?v:E.tooltip)?void 0:m.className)}),je),Ge=Iv(He,mf({},null!=(b=U.arrow)?b:E.arrow,{className:Rm(De.arrow,null==(y=null!=(x=U.arrow)?x:E.arrow)?void 0:y.className)}),je);return Nu.jsxs(C.Fragment,{children:[C.cloneElement(X,Pe),Nu.jsx(Fe,mf({as:null!=W?W:O_,placement:H,anchorEl:I?{getBoundingClientRect:()=>({top:Qw.y,left:Qw.x,right:Qw.x,bottom:Qw.y,width:0,height:0})}:ee,popperRef:Re,open:!!ee&&fe,id:pe,transition:!0},Ie,We,{popperOptions:ze,children:({TransitionProps:e})=>Nu.jsx(Be,mf({timeout:Q.transitions.duration.shorter},e,Ke,{children:Nu.jsxs($e,mf({},Ue,{children:[Y,w?Nu.jsx(He,mf({},Ge,{ref:re})):null]}))}))}))]})}),tS=E((e,t)=>Nu.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:Nu.jsx("path",{d:"M9 1v1H2v12h12V7h1v7a1 1 0 0 1-.883.993L14 15H2a1 1 0 0 1-.993-.883L1 14V2a1 1 0 0 1 .883-.993L2 1zm7-1v5h-1V1.706l-4.5 4.501-.707-.707L14.292 1H11V0z"})})),nS=E((e,t)=>Nu.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:Nu.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}));function rS({validateUrl:e,attributes:t}){const[n]=Tu();return w(()=>{if(!n.hasNodes([bc]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),w(()=>function(e,t){return Va(e.registerNodeTransform(bc,_c),Wl(()=>e.registerCommand(Ac,e=>{const n=t.validateUrl.peek(),r=t.attributes.peek();if(null===e)return Mc(null),!0;if("string"==typeof e)return!(void 0!==n&&!n(e)||(Mc(e,r),0));{const{url:t,target:n,rel:o,title:i}=e;return Mc(t,{...r,rel:o,target:n,title:i}),!0}},1)),Wl(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(zt,t=>{const o=co();if(!Ur(o)||o.isCollapsed()||!wl(t,ClipboardEvent))return!1;if(null===t.clipboardData)return!1;const i=t.clipboardData.getData("text");return!!n(i)&&!o.getNodes().some(e=>Xo(e))&&(e.dispatchCommand(Ac,{...r,url:i}),t.preventDefault(),!0)},1)}))}(n,function(e,t={}){const n={};for(const r in e){const o=t[r],i=Pl(void 0===o?e[r]:o);n[r]=i}return n}({attributes:t,validateUrl:e})),[n,e,t]),null}const oS={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},iS=12,sS=14,aS=16,lS=24,cS=3,uS=300,dS=400,fS=600,pS=700,hS={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function gS(e){return Nu.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Nu.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function mS({fontSize:e="medium",children:t=null,className:n=""}={}){return Nu.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function vS(e={}){return Nu.jsx(mS,{...e,children:Nu.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Nu.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Nu.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function bS(e={}){return Nu.jsx(mS,{fontSize:"medium",...e,children:Nu.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Nu.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Nu.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function yS(e){return Nu.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Nu.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function xS(e={}){return Nu.jsx(mS,{...e,children:Nu.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Nu.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Nu.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Nu.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function _S(e={}){return Nu.jsx(mS,{fontSize:"medium",...e,children:Nu.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Nu.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Nu.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function wS({className:e}){return Nu.jsx(mS,{fontSize:"small",className:e,children:Nu.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Nu.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Nu.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Nu.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Nu.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Nu.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function SS(e={}){return Nu.jsx(mS,{...e,children:Nu.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Nu.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Nu.jsx("rect",{stroke:oS.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const kS={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:cS,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var CS=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:oS.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:oS.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Nu.jsx(gS,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${oS.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:oS.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${oS.MISC_FOCUS_BORDER}`,borderRadius:cS,backgroundColor:oS.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${oS.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:oS.WHITE,color:oS.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:cS},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${oS.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:oS.GREYSCALE_0_15,backgroundColor:oS.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:oS.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${oS.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:oS.GREEN_PALE},"&:active":{backgroundColor:oS.GREEN_DARK},"&.Mui-focusVisible":{borderColor:oS.GREEN_PALE,boxShadow:`0 0 0 3px ${dv(oS.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:oS.BLUE_PALE},"&:active":{backgroundColor:oS.BLUE_DARK},"&.Mui-focusVisible":{borderColor:oS.BLUE_PALE,boxShadow:`0 0 0 3px ${dv(oS.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:cS,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:oS.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${oS.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:oS.GREYSCALE_0_42,backgroundColor:oS.GREYSCALE_100_60,"&:active":{backgroundColor:oS.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:oS.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${oS.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:oS.PURPLE,"&.Mui-focusVisible":{borderColor:oS.PURPLE,boxShadow:`0 0 0 3px ${dv(oS.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:oS.GREEN,"&.Mui-focusVisible":{borderColor:oS.GREEN,boxShadow:`0 0 0 3px ${dv(oS.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:oS.BLUE,"&.Mui-focusVisible":{borderColor:oS.BLUE,boxShadow:`0 0 0 3px ${dv(oS.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:oS.ORANGE,"&.Mui-focusVisible":{borderColor:oS.ORANGE,boxShadow:`0 0 0 3px ${dv(oS.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:oS.RED,"&.Mui-focusVisible":{borderColor:oS.RED,boxShadow:`0 0 0 3px ${dv(oS.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:oS.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:oS.PURPLE_PALE},"&:active":{backgroundColor:oS.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:oS.PURPLE_PALE,boxShadow:`0 0 0 3px ${dv(oS.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:oS.GREEN_PALE},"&:active":{backgroundColor:oS.GREEN_DARK},"&.Mui-focusVisible":{borderColor:oS.GREEN_PALE,boxShadow:`0 0 0 3px ${dv(oS.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:oS.BLUE_PALE},"&:active":{backgroundColor:oS.BLUE_DARK},"&.Mui-focusVisible":{borderColor:oS.BLUE_PALE,boxShadow:`0 0 0 3px ${dv(oS.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:oS.ORANGE_PALE},"&:active":{backgroundColor:oS.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:oS.ORANGE_PALE,boxShadow:`0 0 0 3px ${dv(oS.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:oS.RED_PALE},"&:active":{backgroundColor:oS.RED_DARK},"&.Mui-focusVisible":{borderColor:oS.RED_PALE,boxShadow:`0 0 0 3px ${dv(oS.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:oS.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:oS.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:cS,boxShadow:`inset 0 0 0 2px ${oS.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Nu.jsx(yS,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:iS,borderRadius:cS,color:oS.TEXT_PRIMARY,backgroundColor:oS.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:oS.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${oS.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:oS.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:oS.GREYSCALE_0_05,color:oS.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:oS.GREEN,borderColor:oS.GREEN},"&.MuiChip-outlinedInfo":{color:oS.BLUE,borderColor:oS.BLUE},"&.MuiChip-outlinedWarning":{color:oS.ORANGE,borderColor:oS.ORANGE},"&.MuiChip-outlinedError":{color:oS.RED,borderColor:oS.RED}},outlined:{border:`solid 1px ${oS.GREYSCALE_0_15}`,backgroundColor:oS.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:cS,boxShadow:"none",backgroundColor:oS.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:oS.GREEN,borderColor:oS.GREEN},outlinedSecondary:{color:oS.BLUE,borderColor:oS.BLUE},label:{fontFamily:hS.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Nu.jsx(yS,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Nu.jsx(gS,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:cS},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:cS,fontSize:sS,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:oS.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${oS.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:oS.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:oS.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:oS.GREYSCALE_0_05}}},popupIndicator:{borderRadius:cS,border:`solid 1px ${oS.GREYSCALE_0_15}`,color:oS.GREYSCALE_0_60,marginRight:0,width:lS,height:lS},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${oS.GREYSCALE_0_15}`},clearIndicator:{borderRadius:cS,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:oS.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:sS}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:iS,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:oS.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:oS.GREYSCALE_25,fontSize:iS,fontFamily:hS.FONT_FAMILY,fontWeight:fS,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:oS.TEXT_PRIMARY},"&.Mui-error":{color:oS.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:oS.TEXT_SECONDARY,content:"'(optional)'",fontWeight:dS,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:oS.TEXT_SECONDARY,content:"'(required)'",fontWeight:dS,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:sS,lineHeight:"16px",backgroundColor:oS.WHITE,borderRadius:cS,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${oS.GREYSCALE_0_05}`,borderColor:oS.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${oS.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${oS.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${oS.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${oS.RED}`,boxShadow:`0px 0px 0px 1px ${oS.RED}, inset 0 2px 0 0 ${oS.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${oS.GREYSCALE_0_10}`,borderColor:oS.GREYSCALE_0_10,backgroundColor:oS.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:oS.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:oS.GREYSCALE_0_15,borderRadius:cS,boxShadow:`inset 0 2px 0 0 ${oS.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Nu.jsx(gS,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:oS.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:oS.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:oS.GREYSCALE_0_03},"&:active":{backgroundColor:oS.GREYSCALE_0_10},"&:focus":{backgroundColor:oS.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${oS.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${oS.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:oS.GREYSCALE_0_30,"&:hover":{backgroundColor:oS.GREYSCALE_0_0,borderColor:oS.GREYSCALE_0_15},"& ~svg":{color:oS.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${oS.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:cS}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:oS.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${oS.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:oS.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:sS,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:iS,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:iS,fontWeight:fS,color:oS.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:fS}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${oS.GREYSCALE_0_15}, 0px 0px 0px 1px ${oS.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Nu.jsx(_S,{}),checkedIcon:Nu.jsx(bS,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:oS.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${oS.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:oS.GREEN_PALE,boxShadow:`0 0 0 3px ${dv(oS.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:oS.BLUE_PALE,boxShadow:`0 0 0 3px ${dv(oS.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:oS.GREYSCALE_0_20}},"&.Mui-disabled":{fill:oS.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Nu.jsx(SS,{}),checkedIcon:Nu.jsx(vS,{}),indeterminateIcon:Nu.jsx(xS,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:cS,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:oS.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:oS.GREYSCALE_0_55,color:oS.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:oS.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:oS.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:oS.GREYSCALE_0_55,"&:hover":{color:oS.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:oS.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:oS.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:sS,color:oS.TEXT_PRIMARY,lineHeight:"16px",fontWeight:fS},secondary:{fontSize:iS,color:oS.GREYSCALE_45,fontWeight:dS,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:sS,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:sS,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:oS.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:iS,borderBottom:`solid 1px ${oS.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:sS,color:oS.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:oS.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:oS.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:oS.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:oS.RED}}},"&.Mui-focusVisible":{backgroundColor:oS.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:oS.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:oS.GREEN,height:"24px","&.Mui-disabled":{color:oS.GREYSCALE_0_15}},rail:{backgroundColor:oS.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${oS.GREYSCALE_0_05}`,borderRadius:cS,boxShadow:`inset 0px 0px 0px 1px ${oS.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${oS.GREYSCALE_0_05}`,borderRadius:cS},thumb:{height:"16px",width:"16px",borderRadius:cS,backgroundColor:oS.WHITE,boxShadow:`0px 1px 2px 0px ${oS.GREYSCALE_0_15}, 0px 0px 0px 1px ${oS.GREYSCALE_0_05}`,"&:hover":{borderRadius:cS,boxShadow:`0 2px 4px 0 ${oS.GREYSCALE_0_30}, 0 0 0 1px ${oS.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${oS.GREYSCALE_0_15}, 0 0 0 1px ${oS.GREYSCALE_0_06}, 0 0 0 2px ${oS.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${oS.GREYSCALE_0_15}, 0 0 0 1px ${oS.GREYSCALE_0_06}, 0 0 0 2px ${oS.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:oS.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:oS.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:oS.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:oS.GREYSCALE_0_15},markLabel:{color:oS.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:oS.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:oS.WHITE,color:oS.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:oS.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:oS.GREEN_PALE,boxShadow:`0 0 0 3px ${dv(oS.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:oS.BLUE_PALE,boxShadow:`0 0 0 3px ${dv(oS.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:oS.GREYSCALE_0_15,borderRadius:cS},thumb:{height:"16px",width:"16px",borderRadius:cS,backgroundColor:oS.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:sS,fontWeight:fS,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${oS.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${oS.MISC_FOCUS_BORDER}`,backgroundColor:oS.GREYSCALE_0_03,borderRadius:cS},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:oS.GREYSCALE_25,"&.Mui-selected":{color:oS.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:sS,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:cS,"&:hover":{backgroundColor:oS.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${oS.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${oS.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:cS,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:oS.GREYSCALE_0_05},"&:hover":{backgroundColor:oS.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${oS.GREYSCALE_85}`,borderRight:`1px solid ${oS.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:fS,backgroundColor:oS.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:oS.GREYSCALE_98,borderBottom:`1px solid ${oS.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${oS.GREYSCALE_85}`,borderTop:`1px solid ${oS.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:oS.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:oS.GREYSCALE_0_05,"&:hover":{backgroundColor:oS.GREYSCALE_0_03}},"&&:hover":{backgroundColor:oS.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Nu.jsx(wS,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${oS.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:sS,borderRadius:cS,padding:"7px 16px",border:`1px solid ${oS.GREYSCALE_0_15}`,backgroundColor:oS.GREYSCALE_100_60,color:oS.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:oS.GREYSCALE_0_10,border:`1px solid ${oS.GREYSCALE_0_30}`},"&:hover":{backgroundColor:oS.GREYSCALE_0_03,border:`1px solid ${oS.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:oS.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${oS.MISC_FOCUS_BORDER}`,border:`1px solid ${oS.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:oS.GREYSCALE_25,backgroundColor:oS.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:oS.GREYSCALE_0_10,border:`1px solid ${oS.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:iS,height:24,width:24,padding:7},sizeLarge:{fontSize:aS,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:sS,borderRadius:cS}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:oS.GREYSCALE_20},tooltip:{backgroundColor:oS.GREYSCALE_20,fontSize:iS,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...kS}:{}}))(t);const ES=e=>({mode:"light",primary:{ultraLight:oS.GREEN_ULTRA_LIGHT,light:oS.GREEN_PALE,main:oS.GREEN,dark:oS.GREEN_DARK,extraDark:oS.GREEN_EXTRA_DARK,contrastText:oS.WHITE},secondary:{ultraLight:oS.BLUE_ULTRA_LIGHT,light:oS.BLUE_PALE,main:oS.BLUE,dark:oS.BLUE_DARK,extraDark:oS.BLUE_EXTRA_DARK,contrastText:oS.WHITE},error:{ultraLight:oS.RED_ULTRA_LIGHT,light:oS.RED_PALE,main:oS.RED,dark:oS.RED_DARK,extraDark:oS.RED_EXTRA_DARK,contrastText:oS.WHITE},warning:{ultraLight:oS.ORANGE_ULTRA_LIGHT,light:oS.ORANGE_PALE,main:oS.ORANGE,dark:oS.ORANGE_DARK,extraDark:oS.ORANGE_EXTRA_DARK,contrastText:oS.WHITE},success:{ultraLight:oS.GREEN_ULTRA_LIGHT,light:oS.GREEN_PALE,main:oS.GREEN,dark:oS.GREEN_DARK,extraDark:oS.GREEN_EXTRA_DARK,contrastText:oS.WHITE},info:{ultraLight:oS.BLUE_ULTRA_LIGHT,light:oS.BLUE_PALE,main:oS.BLUE,dark:oS.BLUE_DARK,extraDark:oS.BLUE_EXTRA_DARK,contrastText:oS.WHITE},text:{primary:oS.TEXT_PRIMARY,secondary:oS.TEXT_SECONDARY,disabled:oS.GREYSCALE_0_30},action:{hover:oS.GREYSCALE_0_03,hoverOpacity:.03,selected:oS.GREYSCALE_0_05,selectedOpacity:.05,focus:oS.MISC_FOCUS_BORDER},amethyst:{ultraLight:oS.WHITE,main:oS.PURPLE,light:oS.PURPLE_PALE,dark:oS.PURPLE_DARK,extraDark:oS.GREYSCALE_0_0,contrastText:oS.WHITE},background:{paper:oS.WHITE,default:oS.GREYSCALE_95},divider:oS.GREYSCALE_0_15}),TS=(e="light",t=!1)=>zb(((e,t=!1)=>({components:CS(0,t),palette:ES(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:sS,fontWeightLight:uS,fontWeightRegular:dS,fontWeightMedium:fS,fontWeightBold:pS,htmlFontSize:sS,fontFamily:hS.FONT_FAMILY,button:{fontWeight:fS,fontSize:sS,textTransform:"none"},body1:{fontSize:aS,lineHeight:"24px"},body2:{fontSize:sS,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:lS,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:aS,fontWeight:fS,lineHeight:"16px"},h6:{fontSize:sS,fontWeight:fS,lineHeight:"16px"},caption:{color:oS.TEXT_SECONDARY},subtitle1:{fontSize:sS,color:oS.TEXT_SECONDARY},subtitle2:{fontSize:iS,color:oS.TEXT_SECONDARY}},shape:{borderRadius:cS}}))(0,t));var AS,LS,MS={},RS={exports:{}},NS={exports:{}};function OS(){return AS||(AS=1,function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(NS)),NS.exports}var PS={};function IS(e,t){return function(){return null}}function zS(e){return e&&"object"===Zv(e)&&e.constructor===Object}function jS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?mf({},e):e;return zS(e)&&zS(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(zS(t[o])&&o in e?r[o]=jS(e[o],t[o],n):r[o]=t[o])}),r}var DS=(eg.element,function(){return null});DS.isRequired=(eg.element.isRequired,function(){return null});var FS=function(){return null};var BS,$S,HS={exports:{}},WS={};var KS=($S||($S=1,HS.exports=function(){if(BS)return WS;BS=1;var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,s=60110,a=60112,l=60113,c=60120,u=60115,d=60116,f=60121,p=60122,h=60117,g=60129,m=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),o=v("react.profiler"),i=v("react.provider"),s=v("react.context"),a=v("react.forward_ref"),l=v("react.suspense"),c=v("react.suspense_list"),u=v("react.memo"),d=v("react.lazy"),f=v("react.block"),p=v("react.server.block"),h=v("react.fundamental"),g=v("react.debug_trace_mode"),m=v("react.legacy_hidden")}function b(f){if("object"==typeof f&&null!==f){var p=f.$$typeof;switch(p){case e:switch(f=f.type){case n:case o:case r:case l:case c:return f;default:switch(f=f&&f.$$typeof){case s:case a:case d:case u:case i:return f;default:return p}}case t:return p}}}var y=i,x=e,_=a,w=n,S=d,k=u,C=t,E=o,T=r,A=l;return WS.ContextConsumer=s,WS.ContextProvider=y,WS.Element=x,WS.ForwardRef=_,WS.Fragment=w,WS.Lazy=S,WS.Memo=k,WS.Portal=C,WS.Profiler=E,WS.StrictMode=T,WS.Suspense=A,WS.isAsyncMode=function(){return!1},WS.isConcurrentMode=function(){return!1},WS.isContextConsumer=function(e){return b(e)===s},WS.isContextProvider=function(e){return b(e)===i},WS.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},WS.isForwardRef=function(e){return b(e)===a},WS.isFragment=function(e){return b(e)===n},WS.isLazy=function(e){return b(e)===d},WS.isMemo=function(e){return b(e)===u},WS.isPortal=function(e){return b(e)===t},WS.isProfiler=function(e){return b(e)===o},WS.isStrictMode=function(e){return b(e)===r},WS.isSuspense=function(e){return b(e)===l},WS.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===g||e===r||e===l||e===c||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===i||e.$$typeof===s||e.$$typeof===a||e.$$typeof===h||e.$$typeof===f||e[0]===p)},WS.typeOf=b,WS}()),HS.exports),US=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function GS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(US);return t&&t[1]||""}(e)||t}function YS(e,t,n){var r=GS(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var VS,JS="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),qS=eg.oneOfType([eg.func,eg.object]),XS=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:IS,deepmerge:jS,elementAcceptingRef:DS,elementTypeAcceptingRef:FS,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return GS(e,"Component");if("object"===Zv(e))switch(e.$$typeof){case KS.ForwardRef:return YS(e,e.render,"ForwardRef");case KS.Memo:return YS(e,e.type,"memo");default:return}}},ponyfillGlobal:JS,refType:qS}),QS=j(XS);function ZS(){if(VS)return PS;VS=1,Object.defineProperty(PS,"__esModule",{value:!0}),PS.hexToRgb=n,PS.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=o(e),n=t.values;return"#".concat(n.map(function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t}).join(""))},PS.hslToRgb=r,PS.decomposeColor=o,PS.recomposeColor=i,PS.getContrastRatio=function(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},PS.getLuminance=s,PS.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?l(e,t):c(e,t)},PS.fade=function(e,t){return a(e,t)},PS.alpha=a,PS.darken=l,PS.lighten=c;var e=QS;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function n(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function r(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,s=t[2]/100,a=r*Math.min(s,1-s),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return s-a*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),i({type:c,values:u})}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(n(t));var r=t.indexOf("("),i=t.substring(0,r);if(-1===["rgb","rgba","hsl","hsla"].indexOf(i))throw new Error((0,e.formatMuiErrorMessage)(3,t));var s=t.substring(r+1,t.length-1).split(",");return{type:i,values:s=s.map(function(e){return parseFloat(e)})}}function i(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e){var t="hsl"===(e=o(e)).type?o(r(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function a(e,n){return e=o(e),n=t(n),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=n,i(e)}function l(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]*=1-n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-n;return i(e)}function c(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*n;return i(e)}return PS}var ek,tk,nk,rk={},ok={exports:{}},ik={exports:{}},sk={exports:{}};function ak(){return ek||(ek=1,function(e){var t=OS().default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(sk)),sk.exports}function lk(){return tk||(tk=1,function(e){var t=OS().default,n=ak();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(ik)),ik.exports}function ck(){return nk||(nk=1,function(e){var t=lk();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(ok)),ok.exports}var uk,dk={exports:{}};function fk(){return uk||(uk=1,function(e){var t=Ub();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],-1===n.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(dk)),dk.exports}var pk,hk={};function gk(){if(pk)return hk;pk=1;var e=db();Object.defineProperty(hk,"__esModule",{value:!0}),hk.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,s=e.unit,a=void 0===s?"px":s,l=e.step,c=void 0===l?5:l,u=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(a,")")}function f(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(a,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-c/100).concat(a,")")}return(0,t.default)({keys:r,values:i,up:d,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-c/100).concat(a,")")},between:f,only:function(e){return f(e,e)},width:function(e){return i[e]}},u)},hk.keys=void 0;var t=e(Hb()),n=e(fk()),r=["xs","sm","md","lg","xl"];return hk.keys=r,hk}var mk,vk={};function bk(){if(mk)return vk;mk=1;var e=db();Object.defineProperty(vk,"__esModule",{value:!0}),vk.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(ck()),n=e(Hb());return vk}var yk,xk={},_k={};function wk(){if(yk)return _k;yk=1,Object.defineProperty(_k,"__esModule",{value:!0}),_k.default=void 0;var e={black:"#000",white:"#fff"};return _k.default=e,_k}var Sk,kk={};function Ck(){if(Sk)return kk;Sk=1,Object.defineProperty(kk,"__esModule",{value:!0}),kk.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return kk.default=e,kk}var Ek,Tk={};function Ak(){if(Ek)return Tk;Ek=1,Object.defineProperty(Tk,"__esModule",{value:!0}),Tk.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return Tk.default=e,Tk}var Lk,Mk={};function Rk(){if(Lk)return Mk;Lk=1,Object.defineProperty(Mk,"__esModule",{value:!0}),Mk.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return Mk.default=e,Mk}var Nk,Ok={};function Pk(){if(Nk)return Ok;Nk=1,Object.defineProperty(Ok,"__esModule",{value:!0}),Ok.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return Ok.default=e,Ok}var Ik,zk={};function jk(){if(Ik)return zk;Ik=1,Object.defineProperty(zk,"__esModule",{value:!0}),zk.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return zk.default=e,zk}var Dk,Fk={};function Bk(){if(Dk)return Fk;Dk=1,Object.defineProperty(Fk,"__esModule",{value:!0}),Fk.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return Fk.default=e,Fk}var $k,Hk,Wk={};function Kk(){if($k)return Wk;$k=1,Object.defineProperty(Wk,"__esModule",{value:!0}),Wk.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return Wk.default=e,Wk}function Uk(){if(Hk)return xk;Hk=1;var e=db();Object.defineProperty(xk,"__esModule",{value:!0}),xk.default=function(e){var m=e.primary,v=void 0===m?{light:s.default[300],main:s.default[500],dark:s.default[700]}:m,b=e.secondary,y=void 0===b?{light:a.default.A200,main:a.default.A400,dark:a.default.A700}:b,x=e.error,_=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,S=void 0===w?{light:c.default[300],main:c.default[500],dark:c.default[700]}:w,k=e.info,C=void 0===k?{light:u.default[300],main:u.default[500],dark:u.default[700]}:k,E=e.success,T=void 0===E?{light:d.default[300],main:d.default[500],dark:d.default[700]}:E,A=e.type,L=void 0===A?"light":A,M=e.contrastThreshold,R=void 0===M?3:M,N=e.tonalOffset,O=void 0===N?.2:N,P=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function I(e){return(0,f.getContrastRatio)(e,h.text.primary)>=R?h.text.primary:p.text.primary}var z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return g(e,"light",o,O),g(e,"dark",i,O),e.contrastText||(e.contrastText=I(e.main)),e},j={dark:h,light:p};return(0,r.deepmerge)((0,t.default)({common:o.default,type:L,primary:z(v),secondary:z(y,"A400","A200","A700"),error:z(_),warning:z(S),info:z(C),success:z(T),grey:i.default,contrastThreshold:R,getContrastText:I,augmentColor:z,tonalOffset:O},j[L]),P)},xk.dark=xk.light=void 0;var t=e(Hb()),n=e(fk()),r=QS,o=e(wk()),i=e(Ck()),s=e(Ak()),a=e(Rk()),l=e(Pk()),c=e(jk()),u=e(Bk()),d=e(Kk()),f=ZS(),p={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};xk.light=p;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function g(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,f.lighten)(e.main,o):"dark"===t&&(e.dark=(0,f.darken)(e.main,i)))}return xk.dark=h,xk}var Gk,Yk={};function Vk(){if(Gk)return Yk;Gk=1;var e=db();Object.defineProperty(Yk,"__esModule",{value:!0}),Yk.default=function(e,l){var c="function"==typeof l?l(e):l,u=c.fontFamily,d=void 0===u?a:u,f=c.fontSize,p=void 0===f?14:f,h=c.fontWeightLight,g=void 0===h?300:h,m=c.fontWeightRegular,v=void 0===m?400:m,b=c.fontWeightMedium,y=void 0===b?500:b,x=c.fontWeightBold,_=void 0===x?700:x,w=c.htmlFontSize,S=void 0===w?16:w,k=c.allVariants,C=c.pxToRem,E=(0,n.default)(c,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),T=p/14,A=C||function(e){return"".concat(e/S*T,"rem")},L=function(e,n,r,i,s){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:A(n),lineHeight:r},d===a?{letterSpacing:"".concat(o(i/n),"em")}:{},s,k)},M={h1:L(g,96,1.167,-1.5),h2:L(g,60,1.2,-.5),h3:L(v,48,1.167,0),h4:L(v,34,1.235,.25),h5:L(v,24,1.334,0),h6:L(y,20,1.6,.15),subtitle1:L(v,16,1.75,.15),subtitle2:L(y,14,1.57,.1),body1:L(v,16,1.5,.15),body2:L(v,14,1.43,.15),button:L(y,14,1.75,.4,s),caption:L(v,12,1.66,.4),overline:L(v,12,2.66,1,s)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:S,pxToRem:A,round:i,fontFamily:d,fontSize:p,fontWeightLight:g,fontWeightRegular:v,fontWeightMedium:y,fontWeightBold:_},M),E,{clone:!1})};var t=e(Hb()),n=e(fk()),r=QS;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var s={textTransform:"uppercase"},a='"Roboto", "Helvetica", "Arial", sans-serif';return Yk}var Jk,qk={};function Xk(){if(Jk)return qk;Jk=1,Object.defineProperty(qk,"__esModule",{value:!0}),qk.default=void 0;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return qk.default=t,qk}var Qk,Zk={};function eC(){if(Qk)return Zk;Qk=1,Object.defineProperty(Zk,"__esModule",{value:!0}),Zk.default=void 0;var e={borderRadius:4};return Zk.default=e,Zk}var tC={};function nC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rC(e,t){if(e){if("string"==typeof e)return nC(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nC(e,t):void 0}}function oC(e){return function(e){if(Array.isArray(e))return nC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||rC(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iC(e,t){return t?jS(e,t,{clone:!1}):e}var sC={xs:0,sm:600,md:960,lg:1280,xl:1920},aC={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(sC[e],"px)")}};function lC(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||aC;return t.reduce(function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e},{})}if("object"===Zv(t)){var o=e.theme.breakpoints||aC;return Object.keys(t).reduce(function(e,r){return e[o.up(r)]=n(t[r]),e},{})}return n(t)}function cC(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function uC(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,s=function(e){if(null==e[t])return null;var n=e[t],s=cC(e.theme,o)||{};return lC(e,n,function(e){var t;return"function"==typeof s?t=s(e):Array.isArray(s)?t=s[e]||e:(t=cC(s,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=eb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)})};return s.propTypes={},s.filterProps=[t],s}function dC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?iC(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function fC(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var pC=uC({prop:"border",themeKey:"borders",transform:fC}),hC=uC({prop:"borderTop",themeKey:"borders",transform:fC}),gC=uC({prop:"borderRight",themeKey:"borders",transform:fC}),mC=uC({prop:"borderBottom",themeKey:"borders",transform:fC}),vC=uC({prop:"borderLeft",themeKey:"borders",transform:fC}),bC=uC({prop:"borderColor",themeKey:"palette"}),yC=uC({prop:"borderRadius",themeKey:"shape"}),xC=dC(pC,hC,gC,mC,vC,bC,yC);function _C(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function wC(e){var t=function(t){var n=e(t);return t.css?mf({},iC(n,e(mf({theme:t.theme},t.css))),_C(t.css,[e.filterProps])):t.sx?mf({},iC(n,e(mf({theme:t.theme},t.sx))),_C(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(oC(e.filterProps)),t}var SC=dC(uC({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),uC({prop:"display"}),uC({prop:"overflow"}),uC({prop:"textOverflow"}),uC({prop:"visibility"}),uC({prop:"whiteSpace"})),kC=uC({prop:"flexBasis"}),CC=uC({prop:"flexDirection"}),EC=uC({prop:"flexWrap"}),TC=uC({prop:"justifyContent"}),AC=uC({prop:"alignItems"}),LC=uC({prop:"alignContent"}),MC=uC({prop:"order"}),RC=uC({prop:"flex"}),NC=uC({prop:"flexGrow"}),OC=uC({prop:"flexShrink"}),PC=uC({prop:"alignSelf"}),IC=uC({prop:"justifyItems"}),zC=uC({prop:"justifySelf"}),jC=dC(kC,CC,EC,TC,AC,LC,MC,RC,NC,OC,PC,IC,zC),DC=uC({prop:"gridGap"}),FC=uC({prop:"gridColumnGap"}),BC=uC({prop:"gridRowGap"}),$C=uC({prop:"gridColumn"}),HC=uC({prop:"gridRow"}),WC=uC({prop:"gridAutoFlow"}),KC=uC({prop:"gridAutoColumns"}),UC=uC({prop:"gridAutoRows"}),GC=uC({prop:"gridTemplateColumns"}),YC=uC({prop:"gridTemplateRows"}),VC=uC({prop:"gridTemplateAreas"}),JC=uC({prop:"gridArea"}),qC=dC(DC,FC,BC,$C,HC,WC,KC,UC,GC,YC,VC,JC),XC=uC({prop:"color",themeKey:"palette"}),QC=uC({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),ZC=dC(XC,QC),eE=uC({prop:"position"}),tE=uC({prop:"zIndex",themeKey:"zIndex"}),nE=uC({prop:"top"}),rE=uC({prop:"right"}),oE=uC({prop:"bottom"}),iE=uC({prop:"left"}),sE=dC(eE,tE,nE,rE,oE,iE),aE=uC({prop:"boxShadow",themeKey:"shadows"});function lE(e){return e<=1?"".concat(100*e,"%"):e}var cE=uC({prop:"width",transform:lE}),uE=uC({prop:"maxWidth",transform:lE}),dE=uC({prop:"minWidth",transform:lE}),fE=uC({prop:"height",transform:lE}),pE=uC({prop:"maxHeight",transform:lE}),hE=uC({prop:"minHeight",transform:lE}),gE=uC({prop:"size",cssProperty:"width",transform:lE}),mE=uC({prop:"size",cssProperty:"height",transform:lE}),vE=uC({prop:"boxSizing"}),bE=dC(cE,uE,dE,fE,pE,hE,vE);function yE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||rC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var xE={m:"margin",p:"padding"},_E={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},SE=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){if(e.length>2){if(!wE[e])return[e];e=wE[e]}var t=yE(e.split(""),2),n=t[0],r=t[1],o=xE[n],i=_E[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),kE=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function CE(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function EE(e,t){return function(n){return e.reduce(function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e},{})}}function TE(e){var t=CE(e.theme);return Object.keys(e).map(function(n){if(-1===kE.indexOf(n))return null;var r=EE(SE(n),t),o=e[n];return lC(e,o,r)}).reduce(iC,{})}TE.propTypes={},TE.filterProps=kE;var AE,LE=uC({prop:"fontFamily",themeKey:"typography"}),ME=uC({prop:"fontSize",themeKey:"typography"}),RE=uC({prop:"fontStyle",themeKey:"typography"}),NE=uC({prop:"fontWeight",themeKey:"typography"}),OE=uC({prop:"letterSpacing"}),PE=uC({prop:"lineHeight"}),IE=uC({prop:"textAlign"}),zE=dC(LE,ME,RE,NE,OE,PE,IE),jE=Object.freeze({__proto__:null,alignContent:LC,alignItems:AC,alignSelf:PC,bgcolor:QC,border:pC,borderBottom:mC,borderColor:bC,borderLeft:vC,borderRadius:yC,borderRight:gC,borderTop:hC,borders:xC,bottom:oE,boxSizing:vE,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||aC,o=r.keys.reduce(function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(mf({theme:t.theme},t[o]))),n},null);return iC(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(oC(e.filterProps)),t},color:XC,compose:dC,createUnarySpacing:CE,css:function(e){return wC(e)},display:SC,flex:RC,flexBasis:kC,flexDirection:CC,flexGrow:NC,flexShrink:OC,flexWrap:EC,flexbox:jC,fontFamily:LE,fontSize:ME,fontStyle:RE,fontWeight:NE,grid:qC,gridArea:JC,gridAutoColumns:KC,gridAutoFlow:WC,gridAutoRows:UC,gridColumn:$C,gridColumnGap:FC,gridGap:DC,gridRow:HC,gridRowGap:BC,gridTemplateAreas:VC,gridTemplateColumns:GC,gridTemplateRows:YC,height:fE,justifyContent:TC,justifyItems:IC,justifySelf:zC,left:iE,letterSpacing:OE,lineHeight:PE,maxHeight:pE,maxWidth:uE,minHeight:hE,minWidth:dE,order:MC,palette:ZC,position:eE,positions:sE,right:rE,shadows:aE,sizeHeight:mE,sizeWidth:gE,sizing:bE,spacing:TE,style:uC,styleFunctionSx:wC,textAlign:IE,top:nE,typography:zE,width:cE,zIndex:tE}),DE=j(jE);function FE(){if(AE)return tC;AE=1,Object.defineProperty(tC,"__esModule",{value:!0}),tC.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=DE;return tC}var BE,$E={};function HE(){if(BE)return $E;BE=1;var e=db();Object.defineProperty($E,"__esModule",{value:!0}),$E.default=$E.duration=$E.easing=void 0;var t=e(fk()),n={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};$E.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}$E.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.duration,a=void 0===s?r.standard:s,l=i.easing,c=void 0===l?n.easeInOut:l,u=i.delay,d=void 0===u?0:u;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof a?a:o(a)," ").concat(c," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return $E.default=i,$E}var WE,KE,UE={};function GE(){if(WE)return UE;WE=1,Object.defineProperty(UE,"__esModule",{value:!0}),UE.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return UE.default=e,UE}function YE(){if(KE)return rk;KE=1;var e=db();Object.defineProperty(rk,"__esModule",{value:!0}),rk.createMuiTheme=function(){return f.apply(void 0,arguments)},rk.default=void 0,e(ck());var t=e(fk()),n=QS,r=e(gk()),o=e(bk()),i=e(Uk()),s=e(Vk()),a=e(Xk()),l=e(eC()),c=e(FE()),u=e(HE()),d=e(GE());function f(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=e.breakpoints,p=void 0===f?{}:f,h=e.mixins,g=void 0===h?{}:h,m=e.palette,v=void 0===m?{}:m,b=e.spacing,y=e.typography,x=void 0===y?{}:y,_=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),S=(0,r.default)(p),k=(0,c.default)(b),C=(0,n.deepmerge)({breakpoints:S,direction:"ltr",mixins:(0,o.default)(S,k,g),overrides:{},palette:w,props:{},shadows:a.default,typography:(0,s.default)(w,x),spacing:k,shape:l.default,transitions:u.default,zIndex:d.default},_),E=arguments.length,T=new Array(E>1?E-1:0),A=1;A<E;A++)T[A-1]=arguments[A];return C=T.reduce(function(e,t){return(0,n.deepmerge)(e,t)},C)}var p=f;return rk.default=p,rk}var VE,JE={};function qE(){if(VE)return JE;VE=1;var e=db();Object.defineProperty(JE,"__esModule",{value:!0}),JE.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=QS,n=e(YE());return JE}var XE={},QE="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ZE=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function eT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,s=void 0===i?"":i,a=""===s?"":"".concat(s,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==ZE.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(a).concat(r,"-").concat(e.key);return t.options.theme[QE]&&""===s?"".concat(i,"-").concat(c()):i}return"".concat(a).concat(o).concat(c())}}function tT(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var nT="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},rT="object"===("undefined"==typeof window?"undefined":nT(window))&&"object"===("undefined"==typeof document?"undefined":nT(document))&&9===document.nodeType;function oT(e,t,n){return t&&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,eb(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var iT={}.constructor;function sT(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(sT);if(e.constructor!==iT)return e;var t={};for(var n in e)t[n]=sT(e[n]);return t}function aT(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=sT(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var lT=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},cT=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=lT(e[n]," ");else t=lT(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function uT(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function dT(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function fT(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,s=t.fallbacks;!1===n.format&&(i=-1/0);var a=uT(n),l=a.linebreak,c=a.space;if(e&&i++,s)if(Array.isArray(s))for(var u=0;u<s.length;u++){var d=s[u];for(var f in d){var p=d[f];null!=p&&(r&&(r+=l),r+=dT(f+":"+c+cT(p)+";",i))}}else for(var h in s){var g=s[h];null!=g&&(r&&(r+=l),r+=dT(h+":"+c+cT(g)+";",i))}for(var m in t){var v=t[m];null!=v&&"fallbacks"!==m&&(r&&(r+=l),r+=dT(m+":"+c+cT(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),dT(""+e+c+"{"+r,--i)+dT("}",i)):r}var pT=/([[\].#*$><+~=|^:(),"'`\s])/g,hT="undefined"!=typeof CSS&&CSS.escape,gT=function(e){return hT?hT(e):e.replace(pT,"\\$1")},mT=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,s=e in this.style;if(i&&!s&&!r)return this;var a=i&&s;if(a?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),vT=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,s=r.scoped,a=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==s&&(o.id=l(vy(vy(o)),a),o.selectorText="."+gT(o.id)),o}ay(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=cT(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?mf({},e,{allowEmpty:!0}):e;return fT(this.selectorText,this.style,n)},oT(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(mT),bT={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new vT(e,t,n)}},yT={indent:1,children:!0},xT=/@([\w-]+)/,_T=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(xT);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new UT(mf({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=yT);var t=uT(e).linebreak;if(null==e.indent&&(e.indent=yT.indent),null==e.children&&(e.children=yT.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),wT=/@container|@media|@supports\s+/,ST={onCreateRule:function(e,t,n){return wT.test(e)?new _T(e,t,n):null}},kT={indent:1,children:!0},CT=/@keyframes\s+([\w-]+)/,ET=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(CT);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,s=n.generateId;for(var a in this.id=!1===o?this.name:gT(s(this,i)),this.rules=new UT(mf({},n,{parent:this})),t)this.rules.add(a,t[a],mf({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=kT);var t=uT(e).linebreak;if(null==e.indent&&(e.indent=kT.indent),null==e.children&&(e.children=kT.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),TT=/@keyframes\s+/,AT=/\$([\w-]+)/g,LT=function(e,t){return"string"==typeof e?e.replace(AT,function(e,n){return n in t?t[n]:e}):e},MT=function(e,t,n){var r=e[t],o=LT(r,n);o!==r&&(e[t]=o)},RT={onCreateRule:function(e,t,n){return"string"==typeof e&&TT.test(e)?new ET(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&MT(e,"animation-name",n.keyframes),"animation"in e&&MT(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return LT(e,r.keyframes);default:return e}}},NT=function(e){function t(){return e.apply(this,arguments)||this}return ay(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?mf({},e,{allowEmpty:!0}):e;return fT(this.key,this.style,n)},t}(mT),OT={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new NT(e,t,n):null}},PT=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=uT(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=fT(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return fT(this.at,this.style,e)},e}(),IT=/@font-face/,zT={onCreateRule:function(e,t,n){return IT.test(e)?new PT(e,t,n):null}},jT=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return fT(this.key,this.style,e)},e}(),DT={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new jT(e,t,n):null}},FT=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),BT={"@charset":!0,"@import":!0,"@namespace":!0},$T={onCreateRule:function(e,t,n){return e in BT?new FT(e,t,n):null}},HT=[bT,ST,RT,OT,zT,DT,$T],WT={process:!0},KT={force:!0,process:!0},UT=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,s=r.jss,a=r.Renderer,l=r.generateId,c=r.scoped,u=mf({classes:this.classes,parent:o,sheet:i,jss:s,Renderer:a,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+gT(this.classes[d]));var f=aT(d,t,u);if(!f)return null;this.register(f);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,f),f},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=mf({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof vT?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof ET&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof vT?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof ET&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=WT);var o=this.options,i=o.jss.plugins,s=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var a=t.style;if(i.onUpdate(n,t,s,r),r.process&&a&&a!==t.style){for(var l in i.onProcessStyle(t.style,t,s),t.style){var c=t.style[l];c!==a[l]&&t.prop(l,c,KT)}for(var u in a){var d=t.style[u],f=a[u];null==d&&d!==f&&t.prop(u,null,KT)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=uT(e).linebreak,i=0;i<this.index.length;i++){var s=this.index[i].toString(e);(s||r)&&(t&&(t+=o),t+=s)}return t},e}(),GT=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=mf({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new UT(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),YT=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),VT=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=vf(t,["attached"]),o=uT(r).linebreak,i="",s=0;s<this.registry.length;s++){var a=this.registry[s];null!=n&&a.attached!==n||(i&&(i+=o),i+=a.toString(r))}return i},oT(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),JT=new VT,qT="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),XT="2f1acc6c3a606b082e5eef5e54414ffb";null==qT[XT]&&(qT[XT]=0);var QT=qT[XT]++,ZT=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+QT+o+t:i+n.key+"-"+QT+(o?"-"+o:"")+"-"+t}},eA=function(e){var t;return function(){return t||(t=e()),t}},tA=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},nA=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=cT(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},rA=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},oA=function(e,t){return e.selectorText=t,e.selectorText===t},iA=eA(function(){return document.querySelector("head")});function sA(e){var t=JT.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=iA(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var aA=eA(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),lA=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},cA=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},uA=function(){function e(e){this.getPropertyValue=tA,this.setProperty=nA,this.removeProperty=rA,this.setSelector=oA,this.hasInsertedRules=!1,this.cssRules=[],e&&JT.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=aA();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=sA(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else iA().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=cA(n,t);if(!1===(o=lA(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var s=e.toString();if(!s)return!1;var a=cA(n,t),l=lA(n,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof GT&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),dA=0,fA=function(){function e(e){this.id=dA++,this.version="10.10.0",this.plugins=new YT,this.options={id:{minify:!1},createGenerateId:ZT,Renderer:rT?uA:null,plugins:[]},this.generateId=ZT({minify:!1});for(var t=0;t<HT.length;t++)this.plugins.use(HT[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=mf({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===JT.index?0:JT.index+1);var r=new GT(e,mf({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),JT.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=mf({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=aT(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),pA=function(e){return new fA(e)},hA="object"==typeof CSS&&null!=CSS&&"number"in CSS;function gA(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=gA(r);i&&(t||(t={}),t[n]=i)}}return t}
87
+ `),Ay.rippleVisible,Iy,550,({theme:e})=>e.transitions.easing.easeInOut,Ay.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ay.child,Ay.childLeaving,zy,550,({theme:e})=>e.transitions.easing.easeInOut,Ay.childPulsate,jy,({theme:e})=>e.transitions.easing.easeInOut),By=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,s=vf(n,Ly),[a,l]=C.useState([]),c=C.useRef(0),u=C.useRef(null);C.useEffect(()=>{u.current&&(u.current(),u.current=null)},[a]);const d=C.useRef(!1),f=kv(),p=C.useRef(null),h=C.useRef(null),g=C.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:s}=e;l(e=>[...e,Nu.jsx(Fy,{classes:{ripple:Rm(o.ripple,Ay.ripple),rippleVisible:Rm(o.rippleVisible,Ay.rippleVisible),ripplePulsate:Rm(o.ripplePulsate,Ay.ripplePulsate),child:Rm(o.child,Ay.child),childLeaving:Rm(o.childLeaving,Ay.childLeaving),childPulsate:Rm(o.childPulsate,Ay.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,u.current=s},[o]),m=C.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const a=s?null:h.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,m;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)m=Math.sqrt((2*l.width**2+l.height**2)/3),m%2==0&&(m+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;m=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:m,cb:n})},f.start(80,()=>{p.current&&(p.current(),p.current=null)})):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:m,cb:n})},[r,g,f]),v=C.useCallback(()=>{m({},{pulsate:!0})},[m]),b=C.useCallback((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void f.start(0,()=>{b(e,t)});p.current=null,l(e=>e.length>0?e.slice(1):e),u.current=t},[f]);return C.useImperativeHandle(t,()=>({pulsate:v,start:m,stop:b}),[v,m,b]),Nu.jsx(Dy,mf({className:Rm(Ay.root,o.root,i),ref:h},s,{children:Nu.jsx(wy,{component:null,exit:!0,children:a})}))});function $y(e){return Pm("MuiButtonBase",e)}const Hy=Im("MuiButtonBase",["root","disabled","focusVisible"]),Wy=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ky=ty("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Hy.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Uy=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:s,component:a="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:p,onClick:h,onContextMenu:g,onDragLeave:m,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:_,onMouseLeave:w,onMouseUp:k,onTouchEnd:S,onTouchMove:E,onTouchStart:T,tabIndex:A=0,TouchRippleProps:L,touchRippleRef:M,type:R}=n,N=vf(n,Wy),O=C.useRef(null),P=C.useRef(null),I=yv(P,M),{isFocusVisibleRef:z,onFocus:j,onBlur:D,ref:F}=Nv(),[B,$]=C.useState(!1);l&&B&&$(!1),C.useImperativeHandle(r,()=>({focusVisible:()=>{$(!0),O.current.focus()}}),[]);const[H,W]=C.useState(!1);C.useEffect(()=>{W(!0)},[]);const K=H&&!c&&!l;function U(e,t,n=u){return bv(r=>{t&&t(r);return!n&&P.current&&P.current[e](r),!0})}C.useEffect(()=>{B&&d&&!c&&H&&P.current.pulsate()},[c,d,B,H]);const G=U("start",_),Y=U("stop",g),V=U("stop",m),J=U("stop",k),q=U("stop",e=>{B&&e.preventDefault(),w&&w(e)}),X=U("start",T),Q=U("stop",S),Z=U("stop",E),ee=U("stop",e=>{D(e),!1===z.current&&$(!1),p&&p(e)},!1),te=bv(e=>{O.current||(O.current=e.currentTarget),j(e),!0===z.current&&($(!0),b&&b(e)),v&&v(e)}),ne=()=>{const e=O.current;return a&&"button"!==a&&!("A"===e.tagName&&e.href)},re=C.useRef(!1),oe=bv(e=>{d&&!re.current&&B&&P.current&&" "===e.key&&(re.current=!0,P.current.stop(e,()=>{P.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=bv(e=>{d&&" "===e.key&&P.current&&B&&!e.defaultPrevented&&(re.current=!1,P.current.stop(e,()=>{P.current.pulsate(e)})),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)});let se=a;"button"===se&&(N.href||N.to)&&(se=f);const ae={};"button"===se?(ae.type=void 0===R?"button":R,ae.disabled=l):(N.href||N.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const le=yv(t,F,O),ce=mf({},n,{centerRipple:o,component:a,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:A,focusVisible:B}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ov({root:["root",t&&"disabled",n&&"focusVisible"]},$y,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Nu.jsxs(Ky,mf({as:se,className:Rm(ue.root,s),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:q,onMouseUp:J,onDragLeave:V,onTouchEnd:Q,onTouchMove:Z,onTouchStart:X,ref:le,tabIndex:l?-1:A,type:R},ae,N,{children:[i,K?Nu.jsx(By,mf({ref:I,center:o},L)):null]}))});function Gy(e){return Pm("MuiIconButton",e)}const Yy=Im("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Vy=["edge","children","className","color","disabled","disableFocusRipple","size"],Jy=ty(Uy,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${wg(n.color)}`],n.edge&&t[`edge${wg(n.edge)}`],t[`size${wg(n.size)}`]]}})(({theme:e,ownerState:t})=>mf({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mb.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return mf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&mf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":mf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mb.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Yy.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),qy=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:s="default",disabled:a=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=vf(n,Vy),d=mf({},n,{edge:r,color:s,disabled:a,disableFocusRipple:l,size:c}),f=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return Ov({root:["root",n&&"disabled","default"!==r&&`color${wg(r)}`,o&&`edge${wg(o)}`,`size${wg(i)}`]},Gy,t)})(d);return Nu.jsx(Jy,mf({className:Rm(f.root,i),centerRipple:!0,focusRipple:!l,disabled:a,ref:t},u,{ownerState:d,children:o}))});function Xy(e){return Pm("MuiTypography",e)}Im("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Qy=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Zy=ty("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${wg(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>mf({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),ex={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},tx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nx=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiTypography"}),r=(e=>tx[e]||e)(n.color),o=Em(mf({},n,{color:r})),{align:i="inherit",className:s,component:a,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=ex}=o,p=vf(o,Qy),h=mf({},o,{align:i,color:r,className:s,component:a,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:f}),g=a||(u?"p":f[d]||ex[d])||"span",m=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e;return Ov({root:["root",i,"inherit"!==e.align&&`align${wg(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Xy,s)})(h);return Nu.jsx(Zy,mf({as:g,ref:t,ownerState:h,className:Rm(m.root,s)},p))});var rx,ox={};function ix(){if(rx)return ox;rx=1,Object.defineProperty(ox,"__esModule",{value:!0}),ox.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(o,s,a):o[s]=e[s]}return o.default=e,r&&r.set(e,o),o}(y),t=Yb;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}return ox.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},ox}var sx=z(ix()),ax="top",lx="bottom",cx="right",ux="left",dx="auto",fx=[ax,lx,cx,ux],px="start",hx="end",gx="viewport",mx="popper",vx=fx.reduce(function(e,t){return e.concat([t+"-"+px,t+"-"+hx])},[]),bx=[].concat(fx,[dx]).reduce(function(e,t){return e.concat([t,t+"-"+px,t+"-"+hx])},[]),yx=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function xx(e){return e?(e.nodeName||"").toLowerCase():null}function _x(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wx(e){return e instanceof _x(e).Element||e instanceof Element}function kx(e){return e instanceof _x(e).HTMLElement||e instanceof HTMLElement}function Sx(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _x(e).ShadowRoot||e instanceof ShadowRoot)}var Cx={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];kx(o)&&xx(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});kx(r)&&xx(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function Ex(e){return e.split("-")[0]}var Tx=Math.max,Ax=Math.min,Lx=Math.round;function Mx(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Rx(){return!/^((?!chrome|android).)*safari/i.test(Mx())}function Nx(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&kx(e)&&(o=e.offsetWidth>0&&Lx(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Lx(r.height)/e.offsetHeight||1);var s=(wx(e)?_x(e):window).visualViewport,a=!Rx()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/o,c=(r.top+(a&&s?s.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Ox(e){var t=Nx(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Px(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Sx(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ix(e){return _x(e).getComputedStyle(e)}function zx(e){return["table","td","th"].indexOf(xx(e))>=0}function jx(e){return((wx(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dx(e){return"html"===xx(e)?e:e.assignedSlot||e.parentNode||(Sx(e)?e.host:null)||jx(e)}function Fx(e){return kx(e)&&"fixed"!==Ix(e).position?e.offsetParent:null}function Bx(e){for(var t=_x(e),n=Fx(e);n&&zx(n)&&"static"===Ix(n).position;)n=Fx(n);return n&&("html"===xx(n)||"body"===xx(n)&&"static"===Ix(n).position)?t:n||function(e){var t=/firefox/i.test(Mx());if(/Trident/i.test(Mx())&&kx(e)&&"fixed"===Ix(e).position)return null;var n=Dx(e);for(Sx(n)&&(n=n.host);kx(n)&&["html","body"].indexOf(xx(n))<0;){var r=Ix(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function $x(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hx(e,t,n){return Tx(e,Ax(t,n))}function Wx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Kx(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ux={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Ex(n.placement),l=$x(a),c=[ux,cx].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(e,t){return Wx("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Kx(e,fx))}(o.padding,n),d=Ox(i),f="y"===l?ax:ux,p="y"===l?lx:cx,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],g=s[l]-n.rects.reference[l],m=Bx(i),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=h/2-g/2,y=u[f],x=v-d[c]-u[p],_=v/2-d[c]/2+b,w=Hx(y,_,x),k=l;n.modifiersData[r]=((t={})[k]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Px(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gx(e){return e.split("-")[1]}var Yx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,p=void 0===f?0:f,h=s.y,g=void 0===h?0:h,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),y=ux,x=ax,_=window;if(c){var w=Bx(n),k="clientHeight",S="clientWidth";if(w===_x(n)&&"static"!==Ix(w=jx(n)).position&&"absolute"===a&&(k="scrollHeight",S="scrollWidth"),o===ax||(o===ux||o===cx)&&i===hx)x=lx,g-=(d&&w===_&&_.visualViewport?_.visualViewport.height:w[k])-r.height,g*=l?1:-1;if(o===ux||(o===ax||o===lx)&&i===hx)y=cx,p-=(d&&w===_&&_.visualViewport?_.visualViewport.width:w[S])-r.width,p*=l?1:-1}var C,E=Object.assign({position:a},c&&Yx),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Lx(n*o)/o||0,y:Lx(r*o)/o||0}}({x:p,y:g},_x(n)):{x:p,y:g};return p=T.x,g=T.y,l?Object.assign({},E,((C={})[x]=b?"0":"",C[y]=v?"0":"",C.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",C)):Object.assign({},E,((t={})[x]=b?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var Jx={passive:!0};var qx={left:"right",right:"left",bottom:"top",top:"bottom"};function Xx(e){return e.replace(/left|right|bottom|top/g,function(e){return qx[e]})}var Qx={start:"end",end:"start"};function Zx(e){return e.replace(/start|end/g,function(e){return Qx[e]})}function e_(e){var t=_x(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function t_(e){return Nx(jx(e)).left+e_(e).scrollLeft}function n_(e){var t=Ix(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function r_(e){return["html","body","#document"].indexOf(xx(e))>=0?e.ownerDocument.body:kx(e)&&n_(e)?e:r_(Dx(e))}function o_(e,t){var n;void 0===t&&(t=[]);var r=r_(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=_x(r),s=o?[i].concat(i.visualViewport||[],n_(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(o_(Dx(s)))}function i_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function s_(e,t,n){return t===gx?i_(function(e,t){var n=_x(e),r=jx(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Rx();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+t_(e),y:l}}(e,n)):wx(t)?function(e,t){var n=Nx(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):i_(function(e){var t,n=jx(e),r=e_(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Tx(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Tx(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+t_(e),l=-r.scrollTop;return"rtl"===Ix(o||n).direction&&(a+=Tx(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(jx(e)))}function a_(e,t,n,r){var o="clippingParents"===t?function(e){var t=o_(Dx(e)),n=["absolute","fixed"].indexOf(Ix(e).position)>=0&&kx(e)?Bx(e):e;return wx(n)?t.filter(function(e){return wx(e)&&Px(e,n)&&"body"!==xx(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(t,n){var o=s_(e,n,r);return t.top=Tx(o.top,t.top),t.right=Ax(o.right,t.right),t.bottom=Ax(o.bottom,t.bottom),t.left=Tx(o.left,t.left),t},s_(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function l_(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Ex(o):null,s=o?Gx(o):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case ax:t={x:a,y:n.y-r.height};break;case lx:t={x:a,y:n.y+n.height};break;case cx:t={x:n.x+n.width,y:l};break;case ux:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?$x(i):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case px:t[c]=t[c]-(n[u]/2-r[u]/2);break;case hx:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function c_(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,s=void 0===i?e.strategy:i,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,u=void 0===c?gx:c,d=n.elementContext,f=void 0===d?mx:d,p=n.altBoundary,h=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,v=Wx("number"!=typeof m?m:Kx(m,fx)),b=f===mx?"reference":mx,y=e.rects.popper,x=e.elements[h?b:f],_=a_(wx(x)?x:x.contextElement||jx(e.elements.popper),l,u,s),w=Nx(e.elements.reference),k=l_({reference:w,element:y,placement:o}),S=i_(Object.assign({},y,k)),C=f===mx?S:w,E={top:_.top-C.top+v.top,bottom:C.bottom-_.bottom+v.bottom,left:_.left-C.left+v.left,right:C.right-_.right+v.right},T=e.modifiersData.offset;if(f===mx&&T){var A=T[o];Object.keys(E).forEach(function(e){var t=[cx,lx].indexOf(e)>=0?1:-1,n=[ax,lx].indexOf(e)>=0?"y":"x";E[e]+=A[n]*t})}return E}function u_(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?bx:l,u=Gx(r),d=u?a?vx:vx.filter(function(e){return Gx(e)===u}):fx,f=d.filter(function(e){return c.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,n){return t[n]=c_(e,{placement:n,boundary:o,rootBoundary:i,padding:s})[Ex(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var d_={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,v=Ex(m),b=l||(v===m||!h?[Xx(m)]:function(e){if(Ex(e)===dx)return[];var t=Xx(e);return[Zx(e),t,Zx(t)]}(m)),y=[m].concat(b).reduce(function(e,n){return e.concat(Ex(n)===dx?u_(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:g}):n)},[]),x=t.rects.reference,_=t.rects.popper,w=new Map,k=!0,S=y[0],C=0;C<y.length;C++){var E=y[C],T=Ex(E),A=Gx(E)===px,L=[ax,lx].indexOf(T)>=0,M=L?"width":"height",R=c_(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=L?A?cx:ux:A?lx:ax;x[M]>_[M]&&(N=Xx(N));var O=Xx(N),P=[];if(i&&P.push(R[T]<=0),a&&P.push(R[N]<=0,R[O]<=0),P.every(function(e){return e})){S=E,k=!1;break}w.set(E,P)}if(k)for(var I=function(e){var t=y.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},z=h?3:1;z>0;z--){if("break"===I(z))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function f_(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function p_(e){return[ax,cx,lx,ux].some(function(t){return e[t]>=0})}var h_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,s=bx.reduce(function(e,n){return e[n]=function(e,t,n){var r=Ex(e),o=[ux,ax].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[ux,cx].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,i),e},{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}};var g_={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,g=void 0===h?0:h,m=c_(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Ex(t.placement),b=Gx(t.placement),y=!b,x=$x(v),_="x"===x?"y":"x",w=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,E="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(w){if(i){var L,M="y"===x?ax:ux,R="y"===x?lx:cx,N="y"===x?"height":"width",O=w[x],P=O+m[M],I=O-m[R],z=p?-S[N]/2:0,j=b===px?k[N]:S[N],D=b===px?-S[N]:-k[N],F=t.elements.arrow,B=p&&F?Ox(F):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=$[M],W=$[R],K=Hx(0,k[N],B[N]),U=y?k[N]/2-z-K-H-E.mainAxis:j-K-H-E.mainAxis,G=y?-k[N]/2+z+K+W+E.mainAxis:D+K+W+E.mainAxis,Y=t.elements.arrow&&Bx(t.elements.arrow),V=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,J=null!=(L=null==T?void 0:T[x])?L:0,q=O+G-J,X=Hx(p?Ax(P,O+U-J-V):P,O,p?Tx(I,q):I);w[x]=X,A[x]=X-O}if(a){var Q,Z="x"===x?ax:ux,ee="x"===x?lx:cx,te=w[_],ne="y"===_?"height":"width",re=te+m[Z],oe=te-m[ee],ie=-1!==[ax,ux].indexOf(v),se=null!=(Q=null==T?void 0:T[_])?Q:0,ae=ie?re:te-k[ne]-S[ne]-se+E.altAxis,le=ie?te+k[ne]+S[ne]-se-E.altAxis:oe,ce=p&&ie?function(e,t,n){var r=Hx(e,t,n);return r>n?n:r}(ae,te,le):Hx(p?ae:re,te,p?le:oe);w[_]=ce,A[_]=ce-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function m_(e,t,n){void 0===n&&(n=!1);var r=kx(t),o=kx(t)&&function(e){var t=e.getBoundingClientRect(),n=Lx(t.width)/e.offsetWidth||1,r=Lx(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=jx(t),s=Nx(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==xx(t)||n_(i))&&(a=function(e){return e!==_x(e)&&kx(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:e_(e);var t}(t)),kx(t)?((l=Nx(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=t_(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function v_(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function b_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var y_={placement:"bottom",modifiers:[],strategy:"absolute"};function x_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function __(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?y_:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},y_,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},i,o.options,a),o.scrollParents={reference:wx(e)?o_(e):e.contextElement?o_(e.contextElement):[],popper:o_(t)};var u,d,f=function(e){var t=v_(e);return yx.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((u=[].concat(r,o.options.modifiers),d=u.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(d).map(function(e){return d[e]})));return o.orderedModifiers=f.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var a=i({state:o,name:t,instance:l,options:r}),c=function(){};s.push(a||c)}}),l.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,n=e.popper;if(x_(t,n)){o.rects={reference:m_(t,Bx(n),"fixed"===o.options.strategy),popper:Ox(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],s=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"==typeof s&&(o=s({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:b_(function(){return new Promise(function(e){l.forceUpdate(),e(o)})}),destroy:function(){c(),a=!0}};if(!x_(e,t))return l;function c(){s.forEach(function(e){return e()}),s=[]}return l.setOptions(n).then(function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var w_=__({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,s=r.resize,a=void 0===s||s,l=_x(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,Jx)}),a&&l.addEventListener("resize",n.update,Jx),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Jx)}),a&&l.removeEventListener("resize",n.update,Jx)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=l_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,c={placement:Ex(t.placement),variation:Gx(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Vx(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Vx(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Cx,h_,d_,g_,Ux,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=c_(t,{elementContext:"reference"}),a=c_(t,{altBoundary:!0}),l=f_(s,r),c=f_(a,o,i),u=p_(l),d=p_(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const k_=C.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,s]=C.useState(null),a=yv(C.isValidElement(n)?Fv(n):null,t);if(av(()=>{o||s(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),av(()=>{if(i&&!o)return hv(t,i),()=>{hv(t,null)}},[t,i,o]),o){if(C.isValidElement(n)){const e={ref:a};return C.cloneElement(n,e)}return Nu.jsx(C.Fragment,{children:n})}return Nu.jsx(C.Fragment,{children:i?h.createPortal(n,i):i})});function S_(e){return Pm("MuiPopper",e)}Im("MuiPopper",["root"]);const C_=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],E_=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function T_(e){return"function"==typeof e?e():e}const A_={},L_=C.forwardRef(function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:p={},TransitionProps:h}=e,g=vf(e,C_),m=C.useRef(null),v=yv(m,t),b=C.useRef(null),y=yv(b,d),x=C.useRef(y);av(()=>{x.current=y},[y]),C.useImperativeHandle(d,()=>b.current,[]);const _=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,i),[w,k]=C.useState(_),[S,E]=C.useState(T_(r));C.useEffect(()=>{b.current&&b.current.forceUpdate()}),C.useEffect(()=>{r&&E(T_(r))},[r]),av(()=>{if(!S||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{k(e.placement)})(e)}}];null!=a&&(e=e.concat(a)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=w_(S,m.current,mf({placement:_},u,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}},[S,s,a,l,u,_]);const T={placement:w};null!==h&&(T.TransitionProps=h);const A=(e=>{const{classes:t}=e;return Ov({root:["root"]},S_,t)})(e),L=null!=(n=p.root)?n:"div",M=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=vf(e,Dv),a=i?{}:function(e,t){return"function"==typeof e?e(t,void 0):e}(r,o),{props:l,internalRef:c}=jv(mf({},s,{externalSlotProps:a}));return Iv(n,mf({},l,{ref:yv(c,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}({elementType:L,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:A.root});return Nu.jsx(L,mf({},M,{children:"function"==typeof o?o(T):o}))}),M_=C.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:a=!1,modifiers:l,open:c,placement:u="bottom",popperOptions:d=A_,popperRef:f,style:p,transition:h=!1,slotProps:g={},slots:m={}}=e,v=vf(e,E_),[b,y]=C.useState(!0);if(!a&&!c&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=T_(n);x=e&&void 0!==e.nodeType?fv(e).body:fv(null).body}const _=c||!a||h&&!b?void 0:"none",w=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return Nu.jsx(k_,{disablePortal:s,container:x,children:Nu.jsx(L_,mf({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:f,slotProps:g,slots:m},v,{style:mf({position:"fixed",top:0,left:0,display:_},p),TransitionProps:w,children:r}))})}),R_=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],N_=ty(M_,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),O_=C.forwardRef(function(e,t){var n;const r=sx(),o=iy({props:e,name:"MuiPopper"}),{anchorEl:i,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:g,popperRef:m,transition:v,slots:b,slotProps:y}=o,x=vf(o,R_),_=null!=(n=null==b?void 0:b.root)?n:null==a?void 0:a.Root,w=mf({anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:g,popperRef:m,transition:v},x);return Nu.jsx(N_,mf({as:s,direction:null==r?void 0:r.direction,slots:{root:_},slotProps:null!=y?y:l},w,{ref:t}))}),P_=["onChange","maxRows","minRows","style","value"];function I_(e){return parseInt(e,10)||0}const z_={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function j_(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const D_=C.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:s}=e,a=vf(e,P_),{current:l}=C.useRef(null!=s),c=C.useRef(null),u=yv(t,c),d=C.useRef(null),f=C.useRef(null),p=C.useCallback(()=>{const t=c.current,n=f.current;if(!t||!n)return;const i=pv(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const s=i.boxSizing,a=I_(i.paddingBottom)+I_(i.paddingTop),l=I_(i.borderBottomWidth)+I_(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===s?a+l:0),overflowing:Math.abs(p-u)<=1}},[r,o,e.placeholder]),h=bv(()=>{const e=c.current,t=p();if(!e||!t||j_(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),g=C.useCallback(()=>{const e=c.current,t=p();if(!e||!t||j_(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[p]),m=C.useRef(-1);av(()=>{const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}(g),t=null==c?void 0:c.current;if(!t)return;const n=pv(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(m.current),g(),m.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(m.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[p,g,h]),av(()=>{g()});return Nu.jsxs(C.Fragment,{children:[Nu.jsx("textarea",mf({value:s,onChange:e=>{l||g(),n&&n(e)},ref:u,rows:o,style:i},a)),Nu.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:mf({},z_,i,{paddingTop:0,paddingBottom:0})})]})});const F_=C.createContext(void 0);function B_(e){return Nu.jsx(Sm,mf({},e,{defaultTheme:jb,themeId:gf}))}function $_(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function H_(e){return Pm("MuiInputBase",e)}const W_=Im("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),K_=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],U_=ty("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${wg(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>mf({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${W_.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&mf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),G_=ty("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]}})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=mf({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return mf({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${W_.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${W_.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),Y_=Nu.jsx(B_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),V_=C.forwardRef(function(e,t){var n;const r=iy({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:a,components:l={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,fullWidth:h=!1,id:g,inputComponent:m="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:_=!1,name:w,onBlur:k,onChange:S,onClick:E,onFocus:T,onKeyDown:A,onKeyUp:L,placeholder:M,readOnly:R,renderSuffix:N,rows:O,slotProps:P={},slots:I={},startAdornment:z,type:j="text",value:D}=r,F=vf(r,K_),B=null!=v.value?v.value:D,{current:$}=C.useRef(null!=B),H=C.useRef(),W=C.useCallback(e=>{},[]),K=yv(H,b,v.ref,W),[U,G]=C.useState(!1),Y=C.useContext(F_),V=function({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});V.focused=Y?Y.focused:U,C.useEffect(()=>{!Y&&d&&U&&(G(!1),k&&k())},[Y,d,U,k]);const J=Y&&Y.onFilled,q=Y&&Y.onEmpty,X=C.useCallback(e=>{!function(e,t=!1){return e&&($_(e.value)&&""!==e.value||t&&$_(e.defaultValue)&&""!==e.defaultValue)}(e)?q&&q():J&&J()},[J,q]);av(()=>{$&&X({value:B})},[B,X,$]);C.useEffect(()=>{X(H.current)},[]);let Q=m,Z=v;_&&"input"===Q&&(Z=mf(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:x},Z),Q=D_);C.useEffect(()=>{Y&&Y.setAdornedStart(Boolean(z))},[Y,z]);const ee=mf({},r,{color:V.color||"primary",disabled:V.disabled,endAdornment:p,error:V.error,focused:V.focused,formControl:Y,fullWidth:h,hiddenLabel:V.hiddenLabel,multiline:_,size:V.size,startAdornment:z,type:j}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:p,type:h}=e;return Ov({root:["root",`color${wg(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&"medium"!==f&&`size${wg(f)}`,u&&"multiline",p&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},H_,t)})(ee),ne=I.root||l.Root||U_,re=P.root||c.root||{},oe=I.input||l.Input||G_;return Z=mf({},Z,null!=(n=P.input)?n:c.input),Nu.jsxs(C.Fragment,{children:[!f&&Y_,Nu.jsxs(ne,mf({},re,!Pv(ne)&&{ownerState:mf({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),E&&E(e)}},F,{className:Rm(te.root,re.className,a,R&&"MuiInputBase-readOnly"),children:[z,Nu.jsx(F_.Provider,{value:null,children:Nu.jsx(oe,mf({ownerState:ee,"aria-invalid":V.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:u,disabled:V.disabled,id:g,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:w,placeholder:M,readOnly:R,required:V.required,rows:O,value:B,onKeyDown:A,onKeyUp:L,type:j},Z,!Pv(oe)&&{as:Q,ownerState:mf({},ee,Z.ownerState)},{ref:K,className:Rm(te.input,Z.className,R&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(pf(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),S&&S(e,...t)},onFocus:e=>{V.disabled?e.stopPropagation():(T&&T(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):G(!0))}}))}),p,N?N(mf({},V,{startAdornment:z})):null]}))]})}),J_=Im("MuiBox",["root"]),q_=zb(),X_=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=rg("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(gm);return C.forwardRef(function(e,s){const a=wm(n),l=Em(e),{className:c,component:u="div"}=l,d=vf(l,Nm);return Nu.jsx(i,mf({as:u,ref:s,className:Rm(c,o?o(r):r),theme:t&&a[t]||a},d))})}({themeId:gf,defaultTheme:q_,defaultClassName:J_.root,generateClassName:Lm.generate});function Q_(e){return Pm("MuiButton",e)}const Z_=Im("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),ew=C.createContext({}),tw=C.createContext(void 0),nw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rw=e=>mf({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ow=ty(Uy,{shouldForwardProp:e=>ey(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${wg(n.color)}`],t[`size${wg(n.size)}`],t[`${n.variant}Size${wg(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return mf({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":mf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mb.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mb.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mb.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":mf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Z_.focusVisible}`]:mf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Z_.disabled}`]:mf({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${mb.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Z_.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Z_.disabled}`]:{boxShadow:"none"}}),iw=ty("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${wg(n.size)}`]]}})(({ownerState:e})=>mf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},rw(e))),sw=ty("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${wg(n.size)}`]]}})(({ownerState:e})=>mf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},rw(e))),aw=C.forwardRef(function(e,t){const n=C.useContext(ew),r=C.useContext(tw),o=iy({props:iv(n,e),name:"MuiButton"}),{children:i,color:s="primary",component:a="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:h=!1,size:g="medium",startIcon:m,type:v,variant:b="text"}=o,y=vf(o,nw),x=mf({},o,{color:s,component:a,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:g,type:v,variant:b}),_=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e;return mf({},s,Ov({root:["root",i,`${i}${wg(t)}`,`size${wg(o)}`,`${i}Size${wg(o)}`,`color${wg(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${wg(o)}`],endIcon:["icon","endIcon",`iconSize${wg(o)}`]},Q_,s))})(x),w=m&&Nu.jsx(iw,{className:_.startIcon,ownerState:x,children:m}),k=f&&Nu.jsx(sw,{className:_.endIcon,ownerState:x,children:f}),S=r||"";return Nu.jsxs(ow,mf({ownerState:x,className:Rm(n.className,_.root,l,S),component:a,disabled:c,focusRipple:!d,focusVisibleClassName:Rm(_.focusVisible,p),ref:t,type:v},y,{classes:_,children:[w,i,k]}))});function lw(e){return e.substring(2).toLowerCase()}function cw(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,s=C.useRef(!1),a=C.useRef(null),l=C.useRef(!1),c=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=yv(Fv(t),a),d=bv(e=>{const t=c.current;c.current=!1;const r=fv(a.current);if(!l.current||!a.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(s.current)return void(s.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(a.current)>-1:!r.documentElement.contains(e.target)||a.current.contains(e.target),i||!n&&t||o(e)}),f=e=>n=>{c.current=!0;const r=t.props[e];r&&r(n)},p={ref:u};return!1!==i&&(p[i]=f(i)),C.useEffect(()=>{if(!1!==i){const e=lw(i),t=fv(a.current),n=()=>{s.current=!0};return t.addEventListener(e,d),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,d),t.removeEventListener("touchmove",n)}}},[d,i]),!1!==r&&(p[r]=f(r)),C.useEffect(()=>{if(!1!==r){const e=lw(r),t=fv(a.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),Nu.jsx(C.Fragment,{children:C.cloneElement(t,p)})}function uw(e){return Pm("MuiDivider",e)}const dw=Im("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],pw=ty("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>mf({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:mb.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>mf({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>mf({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>mf({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>mf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),hw=ty("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>mf({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),gw=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:s=(o?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==s?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,p=vf(n,fw),h=mf({},n,{absolute:r,component:s,flexItem:a,light:l,orientation:c,role:u,textAlign:d,variant:f}),g=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return Ov({root:["root",t&&"absolute",l,i&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]},uw,r)})(h);return Nu.jsx(pw,mf({as:s,className:Rm(g.root,i),role:u,ref:t,ownerState:h},p,{children:o?Nu.jsx(hw,{className:g.wrapper,ownerState:h,children:o}):null}))});gw.muiSkipListHighlight=!0;const mw=function(e={}){const{createStyledComponent:t=rb,useThemeProps:n=ob,componentName:r="MuiStack"}=e,o=t(sb),i=C.forwardRef(function(e,t){const i=Em(n(e)),{component:s="div",direction:a="column",spacing:l=0,divider:c,children:u,className:d,useFlexGap:f=!1}=i,p=vf(i,tb),h={direction:a,spacing:l,useFlexGap:f},g=Ov({root:["root"]},e=>Pm(r,e),{});return Nu.jsx(o,mf({as:s,ownerState:h,ref:t,className:Rm(g.root,d)},p,{children:c?ib(u,c):u}))});return i}({createStyledComponent:ty("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>iy({props:e,name:"MuiStack"})}),vw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function bw(e){return`scale(${e}, ${e**2})`}const yw={entering:{opacity:1,transform:bw(1)},entered:{opacity:1,transform:"none"}},xw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_w=C.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:s,onEnter:a,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:f,style:p,timeout:h="auto",TransitionComponent:g=gy}=e,m=vf(e,vw),v=kv(),b=C.useRef(),y=Db(),x=C.useRef(null),_=yv(x,Fv(o),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},k=w(c),S=w((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=ky({style:p,timeout:h,easing:i},{mode:"enter"});let s;"auto"===h?(s=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=s):s=n,e.style.transition=[y.transitions.create("opacity",{duration:s,delay:r}),y.transitions.create("transform",{duration:xw?s:.666*s,delay:r,easing:o})].join(","),a&&a(e,t)}),E=w(l),T=w(f),A=w(e=>{const{duration:t,delay:n,easing:r}=ky({style:p,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:xw?o:.666*o,delay:xw?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=bw(.75),u&&u(e)}),L=w(d);return Nu.jsx(g,mf({appear:r,in:s,nodeRef:x,onEnter:S,onEntered:E,onEntering:k,onExit:A,onExited:L,onExiting:T,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},m,{children:(e,t)=>C.cloneElement(o,mf({style:mf({opacity:0,transform:bw(.75),visibility:"exited"!==e||s?void 0:"hidden"},yw[e],p,o.props.style),ref:_},t))}))});_w.muiSupportAuto=!0;const ww=C.createContext({});function kw(e){return Pm("MuiList",e)}Im("MuiList",["root","padding","dense","subheader"]);const Sw=["children","className","component","dense","disablePadding","subheader"],Cw=ty("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>mf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Ew=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:s=!1,disablePadding:a=!1,subheader:l}=n,c=vf(n,Sw),u=C.useMemo(()=>({dense:s}),[s]),d=mf({},n,{component:i,dense:s,disablePadding:a}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ov({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},kw,t)})(d);return Nu.jsx(ww.Provider,{value:u,children:Nu.jsxs(Cw,mf({as:i,className:Rm(f.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})});function Tw(e){return Pm("MuiListItemIcon",e)}const Aw=Im("MuiListItemIcon",["root","alignItemsFlexStart"]),Lw=["className"],Mw=ty("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>mf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),Rw=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=vf(n,Lw),i=mf({},n,{alignItems:C.useContext(ww).alignItems}),s=(e=>{const{alignItems:t,classes:n}=e;return Ov({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Tw,n)})(i);return Nu.jsx(Mw,mf({className:Rm(s.root,r),ownerState:i,ref:t},o))}),Nw=Im("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ow=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Pw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Iw(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function zw(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function jw(e,t,n,r,o,i){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!r&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&zw(a,i)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const Dw=C.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:a=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=vf(e,Ow),f=C.useRef(null),p=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});av(()=>{r&&f.current.focus()},[r]),C.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(fv(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const h=yv(f,t);let g=-1;C.Children.forEach(i,(e,t)=>{C.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===t&&(g+=1,g>=i.length&&(g=-1))});const m=C.Children.map(i,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),C.cloneElement(e,t)}return e});return Nu.jsx(Ew,mf({role:"menu",ref:h,className:s,onKeyDown:e=>{const t=f.current,n=e.key,r=fv(t).activeElement;if("ArrowDown"===n)e.preventDefault(),jw(t,r,l,a,Pw);else if("ArrowUp"===n)e.preventDefault(),jw(t,r,l,a,Iw);else if("Home"===n)e.preventDefault(),jw(t,null,l,a,Pw);else if("End"===n)e.preventDefault(),jw(t,null,l,a,Iw);else if(1===n.length){const o=p.current,i=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(i);const l=r&&!o.repeating&&zw(r,o);o.previousKeyMatched&&(l||jw(t,r,!1,a,Pw,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:m}))});function Fw(e){return Pm("MuiMenuItem",e)}const Bw=Im("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$w=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Hw=ty(Uy,{shouldForwardProp:e=>ey(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>mf({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Bw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mb.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mb.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Bw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mb.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mb.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Bw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dw.inset}`]:{marginLeft:52},[`& .${Nw.root}`]:{marginTop:0,marginBottom:0},[`& .${Nw.inset}`]:{paddingLeft:36},[`& .${Aw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&mf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Aw.root} svg`]:{fontSize:"1.25rem"}}))),Ww=C.forwardRef(function(e,t){const n=iy({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:a=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:u,className:d}=n,f=vf(n,$w),p=C.useContext(ww),h=C.useMemo(()=>({dense:i||p.dense||!1,disableGutters:a}),[p.dense,i,a]),g=C.useRef(null);av(()=>{r&&g.current&&g.current.focus()},[r]);const m=mf({},n,{dense:h.dense,divider:s,disableGutters:a}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e;return mf({},s,Ov({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Fw,s))})(n),b=yv(g,t);let y;return n.disabled||(y=void 0!==u?u:-1),Nu.jsx(ww.Provider,{value:h,children:Nu.jsx(Hw,mf({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:Rm(v.focusVisible,l),className:Rm(v.root,d)},f,{ownerState:m,classes:v}))})});function Kw(e){return Pm("MuiTooltip",e)}const Uw=Im("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Gw=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const Yw=ty(O_,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>mf({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Uw.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Uw.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Uw.arrow}`]:mf({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Uw.arrow}`]:mf({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Vw=ty("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${wg(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>{return mf({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:mb.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${Uw.popper}[data-popper-placement*="left"] &`]:mf({transformOrigin:"right center"},t.isRtl?mf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):mf({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Uw.popper}[data-popper-placement*="right"] &`]:mf({transformOrigin:"left center"},t.isRtl?mf({marginRight:"14px"},t.touch&&{marginRight:"24px"}):mf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Uw.popper}[data-popper-placement*="top"] &`]:mf({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Uw.popper}[data-popper-placement*="bottom"] &`]:mf({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n}),Jw=ty("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:mb.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let qw=!1;const Xw=new wv;let Qw={x:0,y:0};function Zw(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const ek=C.forwardRef(function(e,t){var n,r,o,i,s,a,l,c,u,d,f,p,h,g,m,v,b,y,x;const _=iy({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:k,components:S={},componentsProps:E={},describeChild:T=!1,disableFocusListener:A=!1,disableHoverListener:L=!1,disableInteractive:M=!1,disableTouchListener:R=!1,enterDelay:N=100,enterNextDelay:O=0,enterTouchDelay:P=700,followCursor:I=!1,id:z,leaveDelay:j=0,leaveTouchDelay:D=1500,onClose:F,onOpen:B,open:$,placement:H="bottom",PopperComponent:W,PopperProps:K={},slotProps:U={},slots:G={},title:Y,TransitionComponent:V=_w,TransitionProps:J}=_,q=vf(_,Gw),X=C.isValidElement(k)?k:Nu.jsx("span",{children:k}),Q=Db(),Z=(()=>{const e=C.useContext(Uv);return null!=e&&e})(),[ee,te]=C.useState(),[ne,re]=C.useState(null),oe=C.useRef(!1),ie=M||I,se=kv(),ae=kv(),le=kv(),ce=kv(),[ue,de]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=C.useRef(void 0!==e),[i,s]=C.useState(t);return[o?e:i,C.useCallback(e=>{o||s(e)},[])]}({controlled:$,default:!1,name:"Tooltip",state:"open"});let fe=ue;const pe=vv(z),he=C.useRef(),ge=bv(()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()});C.useEffect(()=>ge,[ge]);const me=e=>{Xw.clear(),qw=!0,de(!0),B&&!fe&&B(e)},ve=bv(e=>{Xw.start(800+j,()=>{qw=!1}),de(!1),F&&fe&&F(e),se.start(Q.transitions.duration.shortest,()=>{oe.current=!1})}),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),ae.clear(),le.clear(),N||qw&&O?ae.start(qw?O:N,()=>{me(e)}):me(e))},ye=e=>{ae.clear(),le.start(j,()=>{ve(e)})},{isFocusVisibleRef:xe,onBlur:_e,onFocus:we,ref:ke}=Nv(),[,Se]=C.useState(!1),Ce=e=>{_e(e),!1===xe.current&&(Se(!1),ye(e))},Ee=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Se(!0),be(e))},Te=e=>{oe.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)},Ae=e=>{Te(e),le.clear(),se.clear(),ge(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(P,()=>{document.body.style.WebkitUserSelect=he.current,be(e)})},Le=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),ge(),le.start(D,()=>{ve(e)})};C.useEffect(()=>{if(fe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}},[ve,fe]);const Me=yv(Fv(X),ke,te,t);Y||0===Y||(fe=!1);const Re=C.useRef(),Ne={},Oe="string"==typeof Y;T?(Ne.title=fe||!Oe||L?null:Y,Ne["aria-describedby"]=fe?pe:null):(Ne["aria-label"]=Oe?Y:null,Ne["aria-labelledby"]=fe&&!Oe?pe:null);const Pe=mf({},Ne,q,X.props,{className:Rm(q.className,X.props.className),onTouchStart:Te,ref:Me},I?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),Qw={x:e.clientX,y:e.clientY},Re.current&&Re.current.update()}}:{}),Ie={};R||(Pe.onTouchStart=Ae,Pe.onTouchEnd=Le),L||(Pe.onMouseOver=Zw(be,Pe.onMouseOver),Pe.onMouseLeave=Zw(ye,Pe.onMouseLeave),ie||(Ie.onMouseOver=be,Ie.onMouseLeave=ye)),A||(Pe.onFocus=Zw(Ee,Pe.onFocus),Pe.onBlur=Zw(Ce,Pe.onBlur),ie||(Ie.onFocus=Ee,Ie.onBlur=Ce));const ze=C.useMemo(()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=K.popperOptions)&&e.modifiers&&(t=t.concat(K.popperOptions.modifiers)),mf({},K.popperOptions,{modifiers:t})},[ne,K]),je=mf({},_,{isRtl:Z,arrow:w,disableInteractive:ie,placement:H,PopperComponentProp:W,touch:oe.current}),De=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Ov({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${wg(i.split("-")[0])}`],arrow:["arrow"]},Kw,t)})(je),Fe=null!=(n=null!=(r=G.popper)?r:S.Popper)?n:Yw,Be=null!=(o=null!=(i=null!=(s=G.transition)?s:S.Transition)?i:V)?o:_w,$e=null!=(a=null!=(l=G.tooltip)?l:S.Tooltip)?a:Vw,He=null!=(c=null!=(u=G.arrow)?u:S.Arrow)?c:Jw,We=Iv(Fe,mf({},K,null!=(d=U.popper)?d:E.popper,{className:Rm(De.popper,null==K?void 0:K.className,null==(f=null!=(p=U.popper)?p:E.popper)?void 0:f.className)}),je),Ke=Iv(Be,mf({},J,null!=(h=U.transition)?h:E.transition),je),Ue=Iv($e,mf({},null!=(g=U.tooltip)?g:E.tooltip,{className:Rm(De.tooltip,null==(m=null!=(v=U.tooltip)?v:E.tooltip)?void 0:m.className)}),je),Ge=Iv(He,mf({},null!=(b=U.arrow)?b:E.arrow,{className:Rm(De.arrow,null==(y=null!=(x=U.arrow)?x:E.arrow)?void 0:y.className)}),je);return Nu.jsxs(C.Fragment,{children:[C.cloneElement(X,Pe),Nu.jsx(Fe,mf({as:null!=W?W:O_,placement:H,anchorEl:I?{getBoundingClientRect:()=>({top:Qw.y,left:Qw.x,right:Qw.x,bottom:Qw.y,width:0,height:0})}:ee,popperRef:Re,open:!!ee&&fe,id:pe,transition:!0},Ie,We,{popperOptions:ze,children:({TransitionProps:e})=>Nu.jsx(Be,mf({timeout:Q.transitions.duration.shorter},e,Ke,{children:Nu.jsxs($e,mf({},Ue,{children:[Y,w?Nu.jsx(He,mf({},Ge,{ref:re})):null]}))}))}))]})}),tk=E((e,t)=>Nu.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:Nu.jsx("path",{d:"M9 1v1H2v12h12V7h1v7a1 1 0 0 1-.883.993L14 15H2a1 1 0 0 1-.993-.883L1 14V2a1 1 0 0 1 .883-.993L2 1zm7-1v5h-1V1.706l-4.5 4.501-.707-.707L14.292 1H11V0z"})})),nk=E((e,t)=>Nu.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:Nu.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}));function rk({validateUrl:e,attributes:t}){const[n]=Tu();return w(()=>{if(!n.hasNodes([bc]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),w(()=>function(e,t){return Va(e.registerNodeTransform(bc,_c),Wl(()=>e.registerCommand(Ac,e=>{const n=t.validateUrl.peek(),r=t.attributes.peek();if(null===e)return Mc(null),!0;if("string"==typeof e)return!(void 0!==n&&!n(e)||(Mc(e,r),0));{const{url:t,target:n,rel:o,title:i}=e;return Mc(t,{...r,rel:o,target:n,title:i}),!0}},1)),Wl(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(zt,t=>{const o=co();if(!Ur(o)||o.isCollapsed()||!wl(t,ClipboardEvent))return!1;if(null===t.clipboardData)return!1;const i=t.clipboardData.getData("text");return!!n(i)&&!o.getNodes().some(e=>Xo(e))&&(e.dispatchCommand(Ac,{...r,url:i}),t.preventDefault(),!0)},1)}))}(n,function(e,t={}){const n={};for(const r in e){const o=t[r],i=Pl(void 0===o?e[r]:o);n[r]=i}return n}({attributes:t,validateUrl:e})),[n,e,t]),null}const ok={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},ik=12,sk=14,ak=16,lk=24,ck=3,uk=300,dk=400,fk=600,pk=700,hk={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function gk(e){return Nu.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Nu.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function mk({fontSize:e="medium",children:t=null,className:n=""}={}){return Nu.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function vk(e={}){return Nu.jsx(mk,{...e,children:Nu.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Nu.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Nu.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function bk(e={}){return Nu.jsx(mk,{fontSize:"medium",...e,children:Nu.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Nu.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Nu.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function yk(e){return Nu.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Nu.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function xk(e={}){return Nu.jsx(mk,{...e,children:Nu.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Nu.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Nu.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Nu.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function _k(e={}){return Nu.jsx(mk,{fontSize:"medium",...e,children:Nu.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Nu.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Nu.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function wk({className:e}){return Nu.jsx(mk,{fontSize:"small",className:e,children:Nu.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Nu.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Nu.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Nu.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Nu.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Nu.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function kk(e={}){return Nu.jsx(mk,{...e,children:Nu.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Nu.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Nu.jsx("rect",{stroke:ok.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const Sk={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:ck,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var Ck=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:ok.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:ok.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Nu.jsx(gk,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${ok.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:ok.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${ok.MISC_FOCUS_BORDER}`,borderRadius:ck,backgroundColor:ok.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${ok.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:ok.WHITE,color:ok.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:ck},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ok.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:ok.GREYSCALE_0_15,backgroundColor:ok.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:ok.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ok.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:ok.GREEN_PALE},"&:active":{backgroundColor:ok.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ok.GREEN_PALE,boxShadow:`0 0 0 3px ${dv(ok.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:ok.BLUE_PALE},"&:active":{backgroundColor:ok.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ok.BLUE_PALE,boxShadow:`0 0 0 3px ${dv(ok.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:ck,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:ok.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ok.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:ok.GREYSCALE_0_42,backgroundColor:ok.GREYSCALE_100_60,"&:active":{backgroundColor:ok.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:ok.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ok.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:ok.PURPLE,"&.Mui-focusVisible":{borderColor:ok.PURPLE,boxShadow:`0 0 0 3px ${dv(ok.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:ok.GREEN,"&.Mui-focusVisible":{borderColor:ok.GREEN,boxShadow:`0 0 0 3px ${dv(ok.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:ok.BLUE,"&.Mui-focusVisible":{borderColor:ok.BLUE,boxShadow:`0 0 0 3px ${dv(ok.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:ok.ORANGE,"&.Mui-focusVisible":{borderColor:ok.ORANGE,boxShadow:`0 0 0 3px ${dv(ok.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:ok.RED,"&.Mui-focusVisible":{borderColor:ok.RED,boxShadow:`0 0 0 3px ${dv(ok.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:ok.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:ok.PURPLE_PALE},"&:active":{backgroundColor:ok.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:ok.PURPLE_PALE,boxShadow:`0 0 0 3px ${dv(ok.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:ok.GREEN_PALE},"&:active":{backgroundColor:ok.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ok.GREEN_PALE,boxShadow:`0 0 0 3px ${dv(ok.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:ok.BLUE_PALE},"&:active":{backgroundColor:ok.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ok.BLUE_PALE,boxShadow:`0 0 0 3px ${dv(ok.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:ok.ORANGE_PALE},"&:active":{backgroundColor:ok.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:ok.ORANGE_PALE,boxShadow:`0 0 0 3px ${dv(ok.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:ok.RED_PALE},"&:active":{backgroundColor:ok.RED_DARK},"&.Mui-focusVisible":{borderColor:ok.RED_PALE,boxShadow:`0 0 0 3px ${dv(ok.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:ok.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:ok.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ck,boxShadow:`inset 0 0 0 2px ${ok.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Nu.jsx(yk,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:ik,borderRadius:ck,color:ok.TEXT_PRIMARY,backgroundColor:ok.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:ok.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${ok.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:ok.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:ok.GREYSCALE_0_05,color:ok.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:ok.GREEN,borderColor:ok.GREEN},"&.MuiChip-outlinedInfo":{color:ok.BLUE,borderColor:ok.BLUE},"&.MuiChip-outlinedWarning":{color:ok.ORANGE,borderColor:ok.ORANGE},"&.MuiChip-outlinedError":{color:ok.RED,borderColor:ok.RED}},outlined:{border:`solid 1px ${ok.GREYSCALE_0_15}`,backgroundColor:ok.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ck,boxShadow:"none",backgroundColor:ok.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:ok.GREEN,borderColor:ok.GREEN},outlinedSecondary:{color:ok.BLUE,borderColor:ok.BLUE},label:{fontFamily:hk.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Nu.jsx(yk,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Nu.jsx(gk,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:ck},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ck,fontSize:sk,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:ok.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${ok.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:ok.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:ok.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:ok.GREYSCALE_0_05}}},popupIndicator:{borderRadius:ck,border:`solid 1px ${ok.GREYSCALE_0_15}`,color:ok.GREYSCALE_0_60,marginRight:0,width:lk,height:lk},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${ok.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ck,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:ok.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:sk}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:ik,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:ok.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:ok.GREYSCALE_25,fontSize:ik,fontFamily:hk.FONT_FAMILY,fontWeight:fk,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:ok.TEXT_PRIMARY},"&.Mui-error":{color:ok.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:ok.TEXT_SECONDARY,content:"'(optional)'",fontWeight:dk,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:ok.TEXT_SECONDARY,content:"'(required)'",fontWeight:dk,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:sk,lineHeight:"16px",backgroundColor:ok.WHITE,borderRadius:ck,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ok.GREYSCALE_0_05}`,borderColor:ok.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ok.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${ok.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${ok.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ok.RED}`,boxShadow:`0px 0px 0px 1px ${ok.RED}, inset 0 2px 0 0 ${ok.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ok.GREYSCALE_0_10}`,borderColor:ok.GREYSCALE_0_10,backgroundColor:ok.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:ok.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:ok.GREYSCALE_0_15,borderRadius:ck,boxShadow:`inset 0 2px 0 0 ${ok.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Nu.jsx(gk,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:ok.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:ok.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:ok.GREYSCALE_0_03},"&:active":{backgroundColor:ok.GREYSCALE_0_10},"&:focus":{backgroundColor:ok.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${ok.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${ok.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:ok.GREYSCALE_0_30,"&:hover":{backgroundColor:ok.GREYSCALE_0_0,borderColor:ok.GREYSCALE_0_15},"& ~svg":{color:ok.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${ok.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ck}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:ok.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${ok.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:ok.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:sk,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:ik,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:ik,fontWeight:fk,color:ok.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:fk}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${ok.GREYSCALE_0_15}, 0px 0px 0px 1px ${ok.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Nu.jsx(_k,{}),checkedIcon:Nu.jsx(bk,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:ok.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${ok.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:ok.GREEN_PALE,boxShadow:`0 0 0 3px ${dv(ok.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:ok.BLUE_PALE,boxShadow:`0 0 0 3px ${dv(ok.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:ok.GREYSCALE_0_20}},"&.Mui-disabled":{fill:ok.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Nu.jsx(kk,{}),checkedIcon:Nu.jsx(vk,{}),indeterminateIcon:Nu.jsx(xk,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ck,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:ok.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:ok.GREYSCALE_0_55,color:ok.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:ok.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:ok.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:ok.GREYSCALE_0_55,"&:hover":{color:ok.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:ok.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:ok.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:sk,color:ok.TEXT_PRIMARY,lineHeight:"16px",fontWeight:fk},secondary:{fontSize:ik,color:ok.GREYSCALE_45,fontWeight:dk,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:sk,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:sk,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:ok.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:ik,borderBottom:`solid 1px ${ok.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:sk,color:ok.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:ok.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:ok.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:ok.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:ok.RED}}},"&.Mui-focusVisible":{backgroundColor:ok.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:ok.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:ok.GREEN,height:"24px","&.Mui-disabled":{color:ok.GREYSCALE_0_15}},rail:{backgroundColor:ok.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${ok.GREYSCALE_0_05}`,borderRadius:ck,boxShadow:`inset 0px 0px 0px 1px ${ok.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${ok.GREYSCALE_0_05}`,borderRadius:ck},thumb:{height:"16px",width:"16px",borderRadius:ck,backgroundColor:ok.WHITE,boxShadow:`0px 1px 2px 0px ${ok.GREYSCALE_0_15}, 0px 0px 0px 1px ${ok.GREYSCALE_0_05}`,"&:hover":{borderRadius:ck,boxShadow:`0 2px 4px 0 ${ok.GREYSCALE_0_30}, 0 0 0 1px ${ok.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${ok.GREYSCALE_0_15}, 0 0 0 1px ${ok.GREYSCALE_0_06}, 0 0 0 2px ${ok.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${ok.GREYSCALE_0_15}, 0 0 0 1px ${ok.GREYSCALE_0_06}, 0 0 0 2px ${ok.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:ok.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:ok.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:ok.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:ok.GREYSCALE_0_15},markLabel:{color:ok.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:ok.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:ok.WHITE,color:ok.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:ok.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ok.GREEN_PALE,boxShadow:`0 0 0 3px ${dv(ok.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ok.BLUE_PALE,boxShadow:`0 0 0 3px ${dv(ok.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:ok.GREYSCALE_0_15,borderRadius:ck},thumb:{height:"16px",width:"16px",borderRadius:ck,backgroundColor:ok.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:sk,fontWeight:fk,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${ok.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${ok.MISC_FOCUS_BORDER}`,backgroundColor:ok.GREYSCALE_0_03,borderRadius:ck},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:ok.GREYSCALE_25,"&.Mui-selected":{color:ok.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:sk,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:ck,"&:hover":{backgroundColor:ok.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${ok.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${ok.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:ck,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:ok.GREYSCALE_0_05},"&:hover":{backgroundColor:ok.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${ok.GREYSCALE_85}`,borderRight:`1px solid ${ok.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:fk,backgroundColor:ok.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:ok.GREYSCALE_98,borderBottom:`1px solid ${ok.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${ok.GREYSCALE_85}`,borderTop:`1px solid ${ok.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:ok.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:ok.GREYSCALE_0_05,"&:hover":{backgroundColor:ok.GREYSCALE_0_03}},"&&:hover":{backgroundColor:ok.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Nu.jsx(wk,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${ok.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:sk,borderRadius:ck,padding:"7px 16px",border:`1px solid ${ok.GREYSCALE_0_15}`,backgroundColor:ok.GREYSCALE_100_60,color:ok.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:ok.GREYSCALE_0_10,border:`1px solid ${ok.GREYSCALE_0_30}`},"&:hover":{backgroundColor:ok.GREYSCALE_0_03,border:`1px solid ${ok.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:ok.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${ok.MISC_FOCUS_BORDER}`,border:`1px solid ${ok.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:ok.GREYSCALE_25,backgroundColor:ok.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:ok.GREYSCALE_0_10,border:`1px solid ${ok.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:ik,height:24,width:24,padding:7},sizeLarge:{fontSize:ak,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:sk,borderRadius:ck}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:ok.GREYSCALE_20},tooltip:{backgroundColor:ok.GREYSCALE_20,fontSize:ik,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Sk}:{}}))(t);const Ek=e=>({mode:"light",primary:{ultraLight:ok.GREEN_ULTRA_LIGHT,light:ok.GREEN_PALE,main:ok.GREEN,dark:ok.GREEN_DARK,extraDark:ok.GREEN_EXTRA_DARK,contrastText:ok.WHITE},secondary:{ultraLight:ok.BLUE_ULTRA_LIGHT,light:ok.BLUE_PALE,main:ok.BLUE,dark:ok.BLUE_DARK,extraDark:ok.BLUE_EXTRA_DARK,contrastText:ok.WHITE},error:{ultraLight:ok.RED_ULTRA_LIGHT,light:ok.RED_PALE,main:ok.RED,dark:ok.RED_DARK,extraDark:ok.RED_EXTRA_DARK,contrastText:ok.WHITE},warning:{ultraLight:ok.ORANGE_ULTRA_LIGHT,light:ok.ORANGE_PALE,main:ok.ORANGE,dark:ok.ORANGE_DARK,extraDark:ok.ORANGE_EXTRA_DARK,contrastText:ok.WHITE},success:{ultraLight:ok.GREEN_ULTRA_LIGHT,light:ok.GREEN_PALE,main:ok.GREEN,dark:ok.GREEN_DARK,extraDark:ok.GREEN_EXTRA_DARK,contrastText:ok.WHITE},info:{ultraLight:ok.BLUE_ULTRA_LIGHT,light:ok.BLUE_PALE,main:ok.BLUE,dark:ok.BLUE_DARK,extraDark:ok.BLUE_EXTRA_DARK,contrastText:ok.WHITE},text:{primary:ok.TEXT_PRIMARY,secondary:ok.TEXT_SECONDARY,disabled:ok.GREYSCALE_0_30},action:{hover:ok.GREYSCALE_0_03,hoverOpacity:.03,selected:ok.GREYSCALE_0_05,selectedOpacity:.05,focus:ok.MISC_FOCUS_BORDER},amethyst:{ultraLight:ok.WHITE,main:ok.PURPLE,light:ok.PURPLE_PALE,dark:ok.PURPLE_DARK,extraDark:ok.GREYSCALE_0_0,contrastText:ok.WHITE},background:{paper:ok.WHITE,default:ok.GREYSCALE_95},divider:ok.GREYSCALE_0_15}),Tk=(e="light",t=!1)=>zb(((e,t=!1)=>({components:Ck(0,t),palette:Ek(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:sk,fontWeightLight:uk,fontWeightRegular:dk,fontWeightMedium:fk,fontWeightBold:pk,htmlFontSize:sk,fontFamily:hk.FONT_FAMILY,button:{fontWeight:fk,fontSize:sk,textTransform:"none"},body1:{fontSize:ak,lineHeight:"24px"},body2:{fontSize:sk,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:lk,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ak,fontWeight:fk,lineHeight:"16px"},h6:{fontSize:sk,fontWeight:fk,lineHeight:"16px"},caption:{color:ok.TEXT_SECONDARY},subtitle1:{fontSize:sk,color:ok.TEXT_SECONDARY},subtitle2:{fontSize:ik,color:ok.TEXT_SECONDARY}},shape:{borderRadius:ck}}))(0,t));var Ak,Lk,Mk={},Rk={exports:{}},Nk={exports:{}};function Ok(){return Ak||(Ak=1,function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Nk)),Nk.exports}var Pk={};function Ik(e,t){return function(){return null}}function zk(e){return e&&"object"===Zv(e)&&e.constructor===Object}function jk(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?mf({},e):e;return zk(e)&&zk(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(zk(t[o])&&o in e?r[o]=jk(e[o],t[o],n):r[o]=t[o])}),r}var Dk=(eg.element,function(){return null});Dk.isRequired=(eg.element.isRequired,function(){return null});var Fk=function(){return null};var Bk,$k,Hk={exports:{}},Wk={};var Kk=($k||($k=1,Hk.exports=function(){if(Bk)return Wk;Bk=1;var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,s=60110,a=60112,l=60113,c=60120,u=60115,d=60116,f=60121,p=60122,h=60117,g=60129,m=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),o=v("react.profiler"),i=v("react.provider"),s=v("react.context"),a=v("react.forward_ref"),l=v("react.suspense"),c=v("react.suspense_list"),u=v("react.memo"),d=v("react.lazy"),f=v("react.block"),p=v("react.server.block"),h=v("react.fundamental"),g=v("react.debug_trace_mode"),m=v("react.legacy_hidden")}function b(f){if("object"==typeof f&&null!==f){var p=f.$$typeof;switch(p){case e:switch(f=f.type){case n:case o:case r:case l:case c:return f;default:switch(f=f&&f.$$typeof){case s:case a:case d:case u:case i:return f;default:return p}}case t:return p}}}var y=i,x=e,_=a,w=n,k=d,S=u,C=t,E=o,T=r,A=l;return Wk.ContextConsumer=s,Wk.ContextProvider=y,Wk.Element=x,Wk.ForwardRef=_,Wk.Fragment=w,Wk.Lazy=k,Wk.Memo=S,Wk.Portal=C,Wk.Profiler=E,Wk.StrictMode=T,Wk.Suspense=A,Wk.isAsyncMode=function(){return!1},Wk.isConcurrentMode=function(){return!1},Wk.isContextConsumer=function(e){return b(e)===s},Wk.isContextProvider=function(e){return b(e)===i},Wk.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Wk.isForwardRef=function(e){return b(e)===a},Wk.isFragment=function(e){return b(e)===n},Wk.isLazy=function(e){return b(e)===d},Wk.isMemo=function(e){return b(e)===u},Wk.isPortal=function(e){return b(e)===t},Wk.isProfiler=function(e){return b(e)===o},Wk.isStrictMode=function(e){return b(e)===r},Wk.isSuspense=function(e){return b(e)===l},Wk.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===g||e===r||e===l||e===c||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===i||e.$$typeof===s||e.$$typeof===a||e.$$typeof===h||e.$$typeof===f||e[0]===p)},Wk.typeOf=b,Wk}()),Hk.exports),Uk=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Gk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Uk);return t&&t[1]||""}(e)||t}function Yk(e,t,n){var r=Gk(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var Vk,Jk="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),qk=eg.oneOfType([eg.func,eg.object]),Xk=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:Ik,deepmerge:jk,elementAcceptingRef:Dk,elementTypeAcceptingRef:Fk,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Gk(e,"Component");if("object"===Zv(e))switch(e.$$typeof){case Kk.ForwardRef:return Yk(e,e.render,"ForwardRef");case Kk.Memo:return Yk(e,e.type,"memo");default:return}}},ponyfillGlobal:Jk,refType:qk}),Qk=j(Xk);function Zk(){if(Vk)return Pk;Vk=1,Object.defineProperty(Pk,"__esModule",{value:!0}),Pk.hexToRgb=n,Pk.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=o(e),n=t.values;return"#".concat(n.map(function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t}).join(""))},Pk.hslToRgb=r,Pk.decomposeColor=o,Pk.recomposeColor=i,Pk.getContrastRatio=function(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Pk.getLuminance=s,Pk.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?l(e,t):c(e,t)},Pk.fade=function(e,t){return a(e,t)},Pk.alpha=a,Pk.darken=l,Pk.lighten=c;var e=Qk;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function n(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function r(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,s=t[2]/100,a=r*Math.min(s,1-s),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return s-a*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),i({type:c,values:u})}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(n(t));var r=t.indexOf("("),i=t.substring(0,r);if(-1===["rgb","rgba","hsl","hsla"].indexOf(i))throw new Error((0,e.formatMuiErrorMessage)(3,t));var s=t.substring(r+1,t.length-1).split(",");return{type:i,values:s=s.map(function(e){return parseFloat(e)})}}function i(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e){var t="hsl"===(e=o(e)).type?o(r(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function a(e,n){return e=o(e),n=t(n),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=n,i(e)}function l(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]*=1-n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-n;return i(e)}function c(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*n;return i(e)}return Pk}var eS,tS,nS,rS={},oS={exports:{}},iS={exports:{}},sS={exports:{}};function aS(){return eS||(eS=1,function(e){var t=Ok().default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(sS)),sS.exports}function lS(){return tS||(tS=1,function(e){var t=Ok().default,n=aS();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(iS)),iS.exports}function cS(){return nS||(nS=1,function(e){var t=lS();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(oS)),oS.exports}var uS,dS={exports:{}};function fS(){return uS||(uS=1,function(e){var t=Ub();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],-1===n.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(dS)),dS.exports}var pS,hS={};function gS(){if(pS)return hS;pS=1;var e=db();Object.defineProperty(hS,"__esModule",{value:!0}),hS.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,s=e.unit,a=void 0===s?"px":s,l=e.step,c=void 0===l?5:l,u=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(a,")")}function f(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(a,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-c/100).concat(a,")")}return(0,t.default)({keys:r,values:i,up:d,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-c/100).concat(a,")")},between:f,only:function(e){return f(e,e)},width:function(e){return i[e]}},u)},hS.keys=void 0;var t=e(Hb()),n=e(fS()),r=["xs","sm","md","lg","xl"];return hS.keys=r,hS}var mS,vS={};function bS(){if(mS)return vS;mS=1;var e=db();Object.defineProperty(vS,"__esModule",{value:!0}),vS.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(cS()),n=e(Hb());return vS}var yS,xS={},_S={};function wS(){if(yS)return _S;yS=1,Object.defineProperty(_S,"__esModule",{value:!0}),_S.default=void 0;var e={black:"#000",white:"#fff"};return _S.default=e,_S}var kS,SS={};function CS(){if(kS)return SS;kS=1,Object.defineProperty(SS,"__esModule",{value:!0}),SS.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return SS.default=e,SS}var ES,TS={};function AS(){if(ES)return TS;ES=1,Object.defineProperty(TS,"__esModule",{value:!0}),TS.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return TS.default=e,TS}var LS,MS={};function RS(){if(LS)return MS;LS=1,Object.defineProperty(MS,"__esModule",{value:!0}),MS.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return MS.default=e,MS}var NS,OS={};function PS(){if(NS)return OS;NS=1,Object.defineProperty(OS,"__esModule",{value:!0}),OS.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return OS.default=e,OS}var IS,zS={};function jS(){if(IS)return zS;IS=1,Object.defineProperty(zS,"__esModule",{value:!0}),zS.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return zS.default=e,zS}var DS,FS={};function BS(){if(DS)return FS;DS=1,Object.defineProperty(FS,"__esModule",{value:!0}),FS.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return FS.default=e,FS}var $S,HS,WS={};function KS(){if($S)return WS;$S=1,Object.defineProperty(WS,"__esModule",{value:!0}),WS.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return WS.default=e,WS}function US(){if(HS)return xS;HS=1;var e=db();Object.defineProperty(xS,"__esModule",{value:!0}),xS.default=function(e){var m=e.primary,v=void 0===m?{light:s.default[300],main:s.default[500],dark:s.default[700]}:m,b=e.secondary,y=void 0===b?{light:a.default.A200,main:a.default.A400,dark:a.default.A700}:b,x=e.error,_=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,k=void 0===w?{light:c.default[300],main:c.default[500],dark:c.default[700]}:w,S=e.info,C=void 0===S?{light:u.default[300],main:u.default[500],dark:u.default[700]}:S,E=e.success,T=void 0===E?{light:d.default[300],main:d.default[500],dark:d.default[700]}:E,A=e.type,L=void 0===A?"light":A,M=e.contrastThreshold,R=void 0===M?3:M,N=e.tonalOffset,O=void 0===N?.2:N,P=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function I(e){return(0,f.getContrastRatio)(e,h.text.primary)>=R?h.text.primary:p.text.primary}var z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return g(e,"light",o,O),g(e,"dark",i,O),e.contrastText||(e.contrastText=I(e.main)),e},j={dark:h,light:p};return(0,r.deepmerge)((0,t.default)({common:o.default,type:L,primary:z(v),secondary:z(y,"A400","A200","A700"),error:z(_),warning:z(k),info:z(C),success:z(T),grey:i.default,contrastThreshold:R,getContrastText:I,augmentColor:z,tonalOffset:O},j[L]),P)},xS.dark=xS.light=void 0;var t=e(Hb()),n=e(fS()),r=Qk,o=e(wS()),i=e(CS()),s=e(AS()),a=e(RS()),l=e(PS()),c=e(jS()),u=e(BS()),d=e(KS()),f=Zk(),p={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};xS.light=p;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function g(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,f.lighten)(e.main,o):"dark"===t&&(e.dark=(0,f.darken)(e.main,i)))}return xS.dark=h,xS}var GS,YS={};function VS(){if(GS)return YS;GS=1;var e=db();Object.defineProperty(YS,"__esModule",{value:!0}),YS.default=function(e,l){var c="function"==typeof l?l(e):l,u=c.fontFamily,d=void 0===u?a:u,f=c.fontSize,p=void 0===f?14:f,h=c.fontWeightLight,g=void 0===h?300:h,m=c.fontWeightRegular,v=void 0===m?400:m,b=c.fontWeightMedium,y=void 0===b?500:b,x=c.fontWeightBold,_=void 0===x?700:x,w=c.htmlFontSize,k=void 0===w?16:w,S=c.allVariants,C=c.pxToRem,E=(0,n.default)(c,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),T=p/14,A=C||function(e){return"".concat(e/k*T,"rem")},L=function(e,n,r,i,s){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:A(n),lineHeight:r},d===a?{letterSpacing:"".concat(o(i/n),"em")}:{},s,S)},M={h1:L(g,96,1.167,-1.5),h2:L(g,60,1.2,-.5),h3:L(v,48,1.167,0),h4:L(v,34,1.235,.25),h5:L(v,24,1.334,0),h6:L(y,20,1.6,.15),subtitle1:L(v,16,1.75,.15),subtitle2:L(y,14,1.57,.1),body1:L(v,16,1.5,.15),body2:L(v,14,1.43,.15),button:L(y,14,1.75,.4,s),caption:L(v,12,1.66,.4),overline:L(v,12,2.66,1,s)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:k,pxToRem:A,round:i,fontFamily:d,fontSize:p,fontWeightLight:g,fontWeightRegular:v,fontWeightMedium:y,fontWeightBold:_},M),E,{clone:!1})};var t=e(Hb()),n=e(fS()),r=Qk;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var s={textTransform:"uppercase"},a='"Roboto", "Helvetica", "Arial", sans-serif';return YS}var JS,qS={};function XS(){if(JS)return qS;JS=1,Object.defineProperty(qS,"__esModule",{value:!0}),qS.default=void 0;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return qS.default=t,qS}var QS,ZS={};function eC(){if(QS)return ZS;QS=1,Object.defineProperty(ZS,"__esModule",{value:!0}),ZS.default=void 0;var e={borderRadius:4};return ZS.default=e,ZS}var tC={};function nC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rC(e,t){if(e){if("string"==typeof e)return nC(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nC(e,t):void 0}}function oC(e){return function(e){if(Array.isArray(e))return nC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||rC(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iC(e,t){return t?jk(e,t,{clone:!1}):e}var sC={xs:0,sm:600,md:960,lg:1280,xl:1920},aC={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(sC[e],"px)")}};function lC(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||aC;return t.reduce(function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e},{})}if("object"===Zv(t)){var o=e.theme.breakpoints||aC;return Object.keys(t).reduce(function(e,r){return e[o.up(r)]=n(t[r]),e},{})}return n(t)}function cC(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function uC(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,s=function(e){if(null==e[t])return null;var n=e[t],s=cC(e.theme,o)||{};return lC(e,n,function(e){var t;return"function"==typeof s?t=s(e):Array.isArray(s)?t=s[e]||e:(t=cC(s,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=eb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)})};return s.propTypes={},s.filterProps=[t],s}function dC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?iC(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function fC(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var pC=uC({prop:"border",themeKey:"borders",transform:fC}),hC=uC({prop:"borderTop",themeKey:"borders",transform:fC}),gC=uC({prop:"borderRight",themeKey:"borders",transform:fC}),mC=uC({prop:"borderBottom",themeKey:"borders",transform:fC}),vC=uC({prop:"borderLeft",themeKey:"borders",transform:fC}),bC=uC({prop:"borderColor",themeKey:"palette"}),yC=uC({prop:"borderRadius",themeKey:"shape"}),xC=dC(pC,hC,gC,mC,vC,bC,yC);function _C(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function wC(e){var t=function(t){var n=e(t);return t.css?mf({},iC(n,e(mf({theme:t.theme},t.css))),_C(t.css,[e.filterProps])):t.sx?mf({},iC(n,e(mf({theme:t.theme},t.sx))),_C(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(oC(e.filterProps)),t}var kC=dC(uC({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),uC({prop:"display"}),uC({prop:"overflow"}),uC({prop:"textOverflow"}),uC({prop:"visibility"}),uC({prop:"whiteSpace"})),SC=uC({prop:"flexBasis"}),CC=uC({prop:"flexDirection"}),EC=uC({prop:"flexWrap"}),TC=uC({prop:"justifyContent"}),AC=uC({prop:"alignItems"}),LC=uC({prop:"alignContent"}),MC=uC({prop:"order"}),RC=uC({prop:"flex"}),NC=uC({prop:"flexGrow"}),OC=uC({prop:"flexShrink"}),PC=uC({prop:"alignSelf"}),IC=uC({prop:"justifyItems"}),zC=uC({prop:"justifySelf"}),jC=dC(SC,CC,EC,TC,AC,LC,MC,RC,NC,OC,PC,IC,zC),DC=uC({prop:"gridGap"}),FC=uC({prop:"gridColumnGap"}),BC=uC({prop:"gridRowGap"}),$C=uC({prop:"gridColumn"}),HC=uC({prop:"gridRow"}),WC=uC({prop:"gridAutoFlow"}),KC=uC({prop:"gridAutoColumns"}),UC=uC({prop:"gridAutoRows"}),GC=uC({prop:"gridTemplateColumns"}),YC=uC({prop:"gridTemplateRows"}),VC=uC({prop:"gridTemplateAreas"}),JC=uC({prop:"gridArea"}),qC=dC(DC,FC,BC,$C,HC,WC,KC,UC,GC,YC,VC,JC),XC=uC({prop:"color",themeKey:"palette"}),QC=uC({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),ZC=dC(XC,QC),eE=uC({prop:"position"}),tE=uC({prop:"zIndex",themeKey:"zIndex"}),nE=uC({prop:"top"}),rE=uC({prop:"right"}),oE=uC({prop:"bottom"}),iE=uC({prop:"left"}),sE=dC(eE,tE,nE,rE,oE,iE),aE=uC({prop:"boxShadow",themeKey:"shadows"});function lE(e){return e<=1?"".concat(100*e,"%"):e}var cE=uC({prop:"width",transform:lE}),uE=uC({prop:"maxWidth",transform:lE}),dE=uC({prop:"minWidth",transform:lE}),fE=uC({prop:"height",transform:lE}),pE=uC({prop:"maxHeight",transform:lE}),hE=uC({prop:"minHeight",transform:lE}),gE=uC({prop:"size",cssProperty:"width",transform:lE}),mE=uC({prop:"size",cssProperty:"height",transform:lE}),vE=uC({prop:"boxSizing"}),bE=dC(cE,uE,dE,fE,pE,hE,vE);function yE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||rC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var xE={m:"margin",p:"padding"},_E={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},kE=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){if(e.length>2){if(!wE[e])return[e];e=wE[e]}var t=yE(e.split(""),2),n=t[0],r=t[1],o=xE[n],i=_E[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),SE=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function CE(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function EE(e,t){return function(n){return e.reduce(function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e},{})}}function TE(e){var t=CE(e.theme);return Object.keys(e).map(function(n){if(-1===SE.indexOf(n))return null;var r=EE(kE(n),t),o=e[n];return lC(e,o,r)}).reduce(iC,{})}TE.propTypes={},TE.filterProps=SE;var AE,LE=uC({prop:"fontFamily",themeKey:"typography"}),ME=uC({prop:"fontSize",themeKey:"typography"}),RE=uC({prop:"fontStyle",themeKey:"typography"}),NE=uC({prop:"fontWeight",themeKey:"typography"}),OE=uC({prop:"letterSpacing"}),PE=uC({prop:"lineHeight"}),IE=uC({prop:"textAlign"}),zE=dC(LE,ME,RE,NE,OE,PE,IE),jE=Object.freeze({__proto__:null,alignContent:LC,alignItems:AC,alignSelf:PC,bgcolor:QC,border:pC,borderBottom:mC,borderColor:bC,borderLeft:vC,borderRadius:yC,borderRight:gC,borderTop:hC,borders:xC,bottom:oE,boxSizing:vE,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||aC,o=r.keys.reduce(function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(mf({theme:t.theme},t[o]))),n},null);return iC(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(oC(e.filterProps)),t},color:XC,compose:dC,createUnarySpacing:CE,css:function(e){return wC(e)},display:kC,flex:RC,flexBasis:SC,flexDirection:CC,flexGrow:NC,flexShrink:OC,flexWrap:EC,flexbox:jC,fontFamily:LE,fontSize:ME,fontStyle:RE,fontWeight:NE,grid:qC,gridArea:JC,gridAutoColumns:KC,gridAutoFlow:WC,gridAutoRows:UC,gridColumn:$C,gridColumnGap:FC,gridGap:DC,gridRow:HC,gridRowGap:BC,gridTemplateAreas:VC,gridTemplateColumns:GC,gridTemplateRows:YC,height:fE,justifyContent:TC,justifyItems:IC,justifySelf:zC,left:iE,letterSpacing:OE,lineHeight:PE,maxHeight:pE,maxWidth:uE,minHeight:hE,minWidth:dE,order:MC,palette:ZC,position:eE,positions:sE,right:rE,shadows:aE,sizeHeight:mE,sizeWidth:gE,sizing:bE,spacing:TE,style:uC,styleFunctionSx:wC,textAlign:IE,top:nE,typography:zE,width:cE,zIndex:tE}),DE=j(jE);function FE(){if(AE)return tC;AE=1,Object.defineProperty(tC,"__esModule",{value:!0}),tC.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=DE;return tC}var BE,$E={};function HE(){if(BE)return $E;BE=1;var e=db();Object.defineProperty($E,"__esModule",{value:!0}),$E.default=$E.duration=$E.easing=void 0;var t=e(fS()),n={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};$E.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}$E.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.duration,a=void 0===s?r.standard:s,l=i.easing,c=void 0===l?n.easeInOut:l,u=i.delay,d=void 0===u?0:u;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof a?a:o(a)," ").concat(c," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return $E.default=i,$E}var WE,KE,UE={};function GE(){if(WE)return UE;WE=1,Object.defineProperty(UE,"__esModule",{value:!0}),UE.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return UE.default=e,UE}function YE(){if(KE)return rS;KE=1;var e=db();Object.defineProperty(rS,"__esModule",{value:!0}),rS.createMuiTheme=function(){return f.apply(void 0,arguments)},rS.default=void 0,e(cS());var t=e(fS()),n=Qk,r=e(gS()),o=e(bS()),i=e(US()),s=e(VS()),a=e(XS()),l=e(eC()),c=e(FE()),u=e(HE()),d=e(GE());function f(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=e.breakpoints,p=void 0===f?{}:f,h=e.mixins,g=void 0===h?{}:h,m=e.palette,v=void 0===m?{}:m,b=e.spacing,y=e.typography,x=void 0===y?{}:y,_=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),k=(0,r.default)(p),S=(0,c.default)(b),C=(0,n.deepmerge)({breakpoints:k,direction:"ltr",mixins:(0,o.default)(k,S,g),overrides:{},palette:w,props:{},shadows:a.default,typography:(0,s.default)(w,x),spacing:S,shape:l.default,transitions:u.default,zIndex:d.default},_),E=arguments.length,T=new Array(E>1?E-1:0),A=1;A<E;A++)T[A-1]=arguments[A];return C=T.reduce(function(e,t){return(0,n.deepmerge)(e,t)},C)}var p=f;return rS.default=p,rS}var VE,JE={};function qE(){if(VE)return JE;VE=1;var e=db();Object.defineProperty(JE,"__esModule",{value:!0}),JE.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=Qk,n=e(YE());return JE}var XE={},QE="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ZE=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function eT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,s=void 0===i?"":i,a=""===s?"":"".concat(s,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==ZE.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(a).concat(r,"-").concat(e.key);return t.options.theme[QE]&&""===s?"".concat(i,"-").concat(c()):i}return"".concat(a).concat(o).concat(c())}}function tT(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var nT="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},rT="object"===("undefined"==typeof window?"undefined":nT(window))&&"object"===("undefined"==typeof document?"undefined":nT(document))&&9===document.nodeType;function oT(e,t,n){return t&&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,eb(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var iT={}.constructor;function sT(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(sT);if(e.constructor!==iT)return e;var t={};for(var n in e)t[n]=sT(e[n]);return t}function aT(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=sT(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var lT=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},cT=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=lT(e[n]," ");else t=lT(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function uT(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function dT(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function fT(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,s=t.fallbacks;!1===n.format&&(i=-1/0);var a=uT(n),l=a.linebreak,c=a.space;if(e&&i++,s)if(Array.isArray(s))for(var u=0;u<s.length;u++){var d=s[u];for(var f in d){var p=d[f];null!=p&&(r&&(r+=l),r+=dT(f+":"+c+cT(p)+";",i))}}else for(var h in s){var g=s[h];null!=g&&(r&&(r+=l),r+=dT(h+":"+c+cT(g)+";",i))}for(var m in t){var v=t[m];null!=v&&"fallbacks"!==m&&(r&&(r+=l),r+=dT(m+":"+c+cT(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),dT(""+e+c+"{"+r,--i)+dT("}",i)):r}var pT=/([[\].#*$><+~=|^:(),"'`\s])/g,hT="undefined"!=typeof CSS&&CSS.escape,gT=function(e){return hT?hT(e):e.replace(pT,"\\$1")},mT=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,s=e in this.style;if(i&&!s&&!r)return this;var a=i&&s;if(a?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),vT=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,s=r.scoped,a=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==s&&(o.id=l(vy(vy(o)),a),o.selectorText="."+gT(o.id)),o}ay(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=cT(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?mf({},e,{allowEmpty:!0}):e;return fT(this.selectorText,this.style,n)},oT(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(mT),bT={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new vT(e,t,n)}},yT={indent:1,children:!0},xT=/@([\w-]+)/,_T=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(xT);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new UT(mf({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=yT);var t=uT(e).linebreak;if(null==e.indent&&(e.indent=yT.indent),null==e.children&&(e.children=yT.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),wT=/@container|@media|@supports\s+/,kT={onCreateRule:function(e,t,n){return wT.test(e)?new _T(e,t,n):null}},ST={indent:1,children:!0},CT=/@keyframes\s+([\w-]+)/,ET=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(CT);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,s=n.generateId;for(var a in this.id=!1===o?this.name:gT(s(this,i)),this.rules=new UT(mf({},n,{parent:this})),t)this.rules.add(a,t[a],mf({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ST);var t=uT(e).linebreak;if(null==e.indent&&(e.indent=ST.indent),null==e.children&&(e.children=ST.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),TT=/@keyframes\s+/,AT=/\$([\w-]+)/g,LT=function(e,t){return"string"==typeof e?e.replace(AT,function(e,n){return n in t?t[n]:e}):e},MT=function(e,t,n){var r=e[t],o=LT(r,n);o!==r&&(e[t]=o)},RT={onCreateRule:function(e,t,n){return"string"==typeof e&&TT.test(e)?new ET(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&MT(e,"animation-name",n.keyframes),"animation"in e&&MT(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return LT(e,r.keyframes);default:return e}}},NT=function(e){function t(){return e.apply(this,arguments)||this}return ay(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?mf({},e,{allowEmpty:!0}):e;return fT(this.key,this.style,n)},t}(mT),OT={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new NT(e,t,n):null}},PT=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=uT(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=fT(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return fT(this.at,this.style,e)},e}(),IT=/@font-face/,zT={onCreateRule:function(e,t,n){return IT.test(e)?new PT(e,t,n):null}},jT=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return fT(this.key,this.style,e)},e}(),DT={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new jT(e,t,n):null}},FT=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),BT={"@charset":!0,"@import":!0,"@namespace":!0},$T={onCreateRule:function(e,t,n){return e in BT?new FT(e,t,n):null}},HT=[bT,kT,RT,OT,zT,DT,$T],WT={process:!0},KT={force:!0,process:!0},UT=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,s=r.jss,a=r.Renderer,l=r.generateId,c=r.scoped,u=mf({classes:this.classes,parent:o,sheet:i,jss:s,Renderer:a,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+gT(this.classes[d]));var f=aT(d,t,u);if(!f)return null;this.register(f);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,f),f},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=mf({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof vT?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof ET&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof vT?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof ET&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=WT);var o=this.options,i=o.jss.plugins,s=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var a=t.style;if(i.onUpdate(n,t,s,r),r.process&&a&&a!==t.style){for(var l in i.onProcessStyle(t.style,t,s),t.style){var c=t.style[l];c!==a[l]&&t.prop(l,c,KT)}for(var u in a){var d=t.style[u],f=a[u];null==d&&d!==f&&t.prop(u,null,KT)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=uT(e).linebreak,i=0;i<this.index.length;i++){var s=this.index[i].toString(e);(s||r)&&(t&&(t+=o),t+=s)}return t},e}(),GT=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=mf({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new UT(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),YT=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),VT=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=vf(t,["attached"]),o=uT(r).linebreak,i="",s=0;s<this.registry.length;s++){var a=this.registry[s];null!=n&&a.attached!==n||(i&&(i+=o),i+=a.toString(r))}return i},oT(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),JT=new VT,qT="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),XT="2f1acc6c3a606b082e5eef5e54414ffb";null==qT[XT]&&(qT[XT]=0);var QT=qT[XT]++,ZT=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+QT+o+t:i+n.key+"-"+QT+(o?"-"+o:"")+"-"+t}},eA=function(e){var t;return function(){return t||(t=e()),t}},tA=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},nA=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=cT(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},rA=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},oA=function(e,t){return e.selectorText=t,e.selectorText===t},iA=eA(function(){return document.querySelector("head")});function sA(e){var t=JT.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=iA(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var aA=eA(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),lA=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},cA=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},uA=function(){function e(e){this.getPropertyValue=tA,this.setProperty=nA,this.removeProperty=rA,this.setSelector=oA,this.hasInsertedRules=!1,this.cssRules=[],e&&JT.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=aA();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=sA(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else iA().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=cA(n,t);if(!1===(o=lA(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var s=e.toString();if(!s)return!1;var a=cA(n,t),l=lA(n,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof GT&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),dA=0,fA=function(){function e(e){this.id=dA++,this.version="10.10.0",this.plugins=new YT,this.options={id:{minify:!1},createGenerateId:ZT,Renderer:rT?uA:null,plugins:[]},this.generateId=ZT({minify:!1});for(var t=0;t<HT.length;t++)this.plugins.use(HT[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=mf({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===JT.index?0:JT.index+1);var r=new GT(e,mf({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),JT.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=mf({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=aT(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),pA=function(e){return new fA(e)},hA="object"==typeof CSS&&null!=CSS&&"number"in CSS;function gA(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=gA(r);i&&(t||(t={}),t[n]=i)}}return t}
88
88
  /**
89
89
  * A better abstraction over CSS.
90
90
  *
91
91
  * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
92
92
  * @website https://github.com/cssinjs/jss
93
93
  * @license MIT
94
- */pA();var mA=Date.now(),vA="fnValues"+mA,bA="fnStyle"+ ++mA,yA="@global",xA="@global ",_A=function(){function e(e,t,n){for(var r in this.type="global",this.at=yA,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new UT(mf({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),wA=function(){function e(e,t,n){this.type="global",this.at=yA,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,mf({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),SA=/\s*,\s*/g;function kA(e,t){for(var n=e.split(SA),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function CA(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===yA)return new _A(e,t,n);if("@"===e[0]&&e.substr(0,8)===xA)return new wA(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[yA]:null;if(o){for(var i in o)t.addRule(i,o[i],mf({},n,{selector:kA(i,e.selector)}));delete r[yA]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===yA){var i=kA(o.substr(7),e.selector);t.addRule(i,r[o],mf({},n,{selector:i})),delete r[o]}}(e,t))}}}var EA=/\s*,\s*/g,TA=/&/g,AA=/\$([\w-]+)/g;function LA(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(EA),r=e.split(EA),o="",i=0;i<n.length;i++)for(var s=n[i],a=0;a<r.length;a++){var l=r[a];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(TA,s):s+" "+l}return o}function n(e,t,n){if(n)return mf({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=mf({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var s,a,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),f="@"===u[0];if(d||f){if(s=n(l,c,s),d){var p=t(u,l.selector);a||(a=e(c,i)),p=p.replace(AA,a);var h=l.key+"-"+u;"replaceRule"in c?c.replaceRule(h,r[u],mf({},s,{selector:p})):c.addRule(h,r[u],mf({},s,{selector:p}))}else f&&c.addRule(u,{},s).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var MA=/[A-Z]/g,RA=/^ms-/,NA={};function OA(e){return"-"+e.toLowerCase()}function PA(e){if(NA.hasOwnProperty(e))return NA[e];var t=e.replace(MA,OA);return NA[e]=RA.test(t)?"-"+t:t}function IA(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:PA(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(IA):t.fallbacks=IA(e.fallbacks)),t}var zA=hA&&CSS?CSS.px:"px",jA=hA&&CSS?CSS.ms:"ms",DA=hA&&CSS?CSS.percent:"%";function FA(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var BA=FA({"animation-delay":jA,"animation-duration":jA,"background-position":zA,"background-position-x":zA,"background-position-y":zA,"background-size":zA,border:zA,"border-bottom":zA,"border-bottom-left-radius":zA,"border-bottom-right-radius":zA,"border-bottom-width":zA,"border-left":zA,"border-left-width":zA,"border-radius":zA,"border-right":zA,"border-right-width":zA,"border-top":zA,"border-top-left-radius":zA,"border-top-right-radius":zA,"border-top-width":zA,"border-width":zA,"border-block":zA,"border-block-end":zA,"border-block-end-width":zA,"border-block-start":zA,"border-block-start-width":zA,"border-block-width":zA,"border-inline":zA,"border-inline-end":zA,"border-inline-end-width":zA,"border-inline-start":zA,"border-inline-start-width":zA,"border-inline-width":zA,"border-start-start-radius":zA,"border-start-end-radius":zA,"border-end-start-radius":zA,"border-end-end-radius":zA,margin:zA,"margin-bottom":zA,"margin-left":zA,"margin-right":zA,"margin-top":zA,"margin-block":zA,"margin-block-end":zA,"margin-block-start":zA,"margin-inline":zA,"margin-inline-end":zA,"margin-inline-start":zA,padding:zA,"padding-bottom":zA,"padding-left":zA,"padding-right":zA,"padding-top":zA,"padding-block":zA,"padding-block-end":zA,"padding-block-start":zA,"padding-inline":zA,"padding-inline-end":zA,"padding-inline-start":zA,"mask-position-x":zA,"mask-position-y":zA,"mask-size":zA,height:zA,width:zA,"min-height":zA,"max-height":zA,"min-width":zA,"max-width":zA,bottom:zA,left:zA,top:zA,right:zA,inset:zA,"inset-block":zA,"inset-block-end":zA,"inset-block-start":zA,"inset-inline":zA,"inset-inline-end":zA,"inset-inline-start":zA,"box-shadow":zA,"text-shadow":zA,"column-gap":zA,"column-rule":zA,"column-rule-width":zA,"column-width":zA,"font-size":zA,"font-size-delta":zA,"letter-spacing":zA,"text-decoration-thickness":zA,"text-indent":zA,"text-stroke":zA,"text-stroke-width":zA,"word-spacing":zA,motion:zA,"motion-offset":zA,outline:zA,"outline-offset":zA,"outline-width":zA,perspective:zA,"perspective-origin-x":DA,"perspective-origin-y":DA,"transform-origin":DA,"transform-origin-x":DA,"transform-origin-y":DA,"transform-origin-z":DA,"transition-delay":jA,"transition-duration":jA,"vertical-align":zA,"flex-basis":zA,"shape-margin":zA,size:zA,gap:zA,grid:zA,"grid-gap":zA,"row-gap":zA,"grid-row-gap":zA,"grid-column-gap":zA,"grid-template-rows":zA,"grid-template-columns":zA,"grid-auto-rows":zA,"grid-auto-columns":zA,"box-shadow-x":zA,"box-shadow-y":zA,"box-shadow-blur":zA,"box-shadow-spread":zA,"font-line-height":zA,"text-shadow-x":zA,"text-shadow-y":zA,"text-shadow-blur":zA});function $A(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=$A(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=$A(o,t[o],n);else for(var i in t)t[i]=$A(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var s=n[e]||BA[e];return!s||0===t&&s===zA?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}function HA(e){void 0===e&&(e={});var t=FA(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=$A(r,e[r],t);return e},onChangeValue:function(e,n){return $A(n,e,t)}}}var WA="",KA="",UA="",GA="",YA=rT&&"ontouchstart"in document.documentElement;if(rT){var VA={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},JA=document.createElement("p").style;for(var qA in VA)if(qA+"Transform"in JA){WA=qA,KA=VA[qA];break}"Webkit"===WA&&"msHyphens"in JA&&(WA="ms",KA=VA.ms,GA="edge"),"Webkit"===WA&&"-apple-trailing-word"in JA&&(UA="apple")}var XA=WA,QA=KA,ZA=UA,eL=GA,tL=YA;var nL={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===XA?"-webkit-"+e:QA+e)}},rL={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===XA?QA+"print-"+e:e)}},oL=/[-\s]+(.)?/g;function iL(e,t){return t?t.toUpperCase():""}function sL(e){return e.replace(oL,iL)}function aL(e){return sL("-"+e)}var lL,cL={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===XA){var n="mask-image";if(sL(n)in t)return e;if(XA+aL(n)in t)return QA+e}return e}},uL={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==ZA||tL?e:QA+e)}},dL={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:QA+e)}},fL={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:QA+e)}},pL={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===XA||"ms"===XA&&"edge"!==eL?QA+e:e)}},hL={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===XA||"ms"===XA||"apple"===ZA?QA+e:e)}},gL={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===XA?"WebkitColumn"+aL(e)in t&&QA+"column-"+e:"Moz"===XA&&("page"+aL(e)in t&&"page-"+e))}},mL={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===XA)return e;var n=e.replace("-inline","");return XA+aL(n)in t&&QA+n}},vL={supportedProperty:function(e,t){return sL(e)in t&&e}},bL={supportedProperty:function(e,t){var n=aL(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:XA+n in t?QA+e:"Webkit"!==XA&&"Webkit"+n in t&&"-webkit-"+e}},yL={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===XA?""+QA+e:e)}},xL={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===XA?QA+"scroll-chaining":e)}},_L={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},wL={supportedProperty:function(e,t){var n=_L[e];return!!n&&(XA+aL(n)in t&&QA+n)}},SL={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},kL=Object.keys(SL),CL=function(e){return QA+e},EL={supportedProperty:function(e,t,n){var r=n.multiple;if(kL.indexOf(e)>-1){var o=SL[e];if(!Array.isArray(o))return XA+aL(o)in t&&QA+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(XA+aL(o[0])in t))return!1;return o.map(CL)}return!1}},TL=[nL,rL,cL,uL,dL,fL,pL,hL,gL,mL,vL,bL,yL,xL,wL,EL],AL=TL.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),LL=TL.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,oC(t.noPrefill)),e},[]),ML={};if(rT){lL=document.createElement("p");var RL=window.getComputedStyle(document.documentElement,"");for(var NL in RL)isNaN(NL)||(ML[RL[NL]]=RL[NL]);LL.forEach(function(e){return delete ML[e]})}function OL(e,t){if(void 0===t&&(t={}),!lL)return e;if(null!=ML[e])return ML[e];"transition"!==e&&"transform"!==e||(t[e]=e in lL.style);for(var n=0;n<AL.length&&(ML[e]=AL[n](e,lL.style,t),!ML[e]);n++);try{lL.style[e]=""}catch(e){return!1}return ML[e]}var PL,IL={},zL={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},jL=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function DL(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?OL(t):", "+OL(n);return r||(t||n)}function FL(e,t){var n=t;if(!PL||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=IL[r])return IL[r];try{PL.style[e]=n}catch(e){return IL[r]=!1,!1}if(zL[e])n=n.replace(jL,DL);else if(""===PL.style[e]&&("-ms-flex"===(n=QA+n)&&(PL.style[e]="-ms-flexbox"),PL.style[e]=n,""===PL.style[e]))return IL[r]=!1,!1;return PL.style[e]="",IL[r]=n,IL[r]}function BL(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=OL(n);i&&i!==n&&(o=!0);var s=!1,a=FL(i,cT(r));a&&a!==r&&(s=!0),(o||s)&&(o&&delete t[n],t[i||n]=a||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===XA?e:"@"+QA+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return FL(t,cT(e))||e}}}function $L(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=aT(e,{},n);return r[bA]=t,r},onProcessStyle:function(e,t){if(vA in t||bA in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[vA]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[bA];i&&(o.style=i(e)||{});var s=o[vA];if(s)for(var a in s)o.prop(a,s[a](e),r)}},CA(),LA(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=IA(e[t]);return e}return IA(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=PA(t);return t===r?e:(n.prop(r,e),null)}},HA(),"undefined"==typeof window?null:BL(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function HL(e,t){if(null==e)return{};var n,r,o=vf(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function WL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=mf({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}rT&&(PL=document.createElement("p"));var KL=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},UL=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},GL=function(e,t,n){e.get(t).delete(n)},YL=y.createContext(null);function VL(){return y.useContext(YL)}var JL,qL=pA($L()),XL=eT(),QL=new Map,ZL={disableGeneration:!1,generateClassName:XL,jss:qL,sheetsCache:null,sheetsManager:QL,sheetsRegistry:null},eM=y.createContext(ZL);function tM(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,s=HL(e,["children","injectFirst","disableGeneration"]),a=mf({},y.useContext(eM),{disableGeneration:i},s);if(!a.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!JL){var l=document.head;JL=document.createComment("mui-inject-first"),l.insertBefore(JL,l.firstChild)}a.jss=pA({plugins:$L().plugins,insertionPoint:JL})}return y.createElement(eM.Provider,{value:a},t)}var nM=-1e9;var rM={};function oM(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,s=e.name;if(!o.disableGeneration){var a=UL(o.sheetsManager,i,r);a||(a={refs:0,staticSheet:null,dynamicStyles:null},KL(o.sheetsManager,i,r,a));var l=mf({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===a.refs){var u;o.sheetsCache&&(u=UL(o.sheetsCache,i,r));var d=i.create(r,s);u||((u=o.jss.createStyleSheet(d,mf({link:!1},l))).attach(),o.sheetsCache&&KL(o.sheetsCache,i,r,u)),c&&c.add(u),a.staticSheet=u,a.dynamicStyles=gA(d)}if(a.dynamicStyles){var f=o.jss.createStyleSheet(a.dynamicStyles,mf({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=WL({baseClasses:a.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else n.classes=a.staticSheet.classes;a.refs+=1}}function iM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,s=void 0===i?rM:i,a=HL(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],s=mf({},o);return Object.keys(i).forEach(function(e){s[e]=jS(s[e],i[e])}),s},options:{}}}(e),c=n||r||"makeStyles";l.options={index:nM+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=VL()||s,r=mf({},y.useContext(eM),a),i=y.useRef(),c=y.useRef();!function(e,t){var n,r=y.useRef([]),o=y.useMemo(function(){return{}},t);r.current!==o&&(r.current=o,n=e()),y.useEffect(function(){return function(){n&&n()}},[o])}(function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return oM(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=UL(r.sheetsManager,o,n);i.refs-=1;var s=r.sheetsRegistry;0===i.refs&&(GL(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),s&&s.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),s&&s.remove(t.dynamicSheet))}}(o)}},[t,l]),y.useEffect(function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0});var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=WL({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}var sM=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return oT(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new VT;var n=eT();return y.createElement(tM,mf({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return y.createElement("style",mf({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function aM(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=aM(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function lM(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=aM(e))&&(r&&(r+=" "),r+=t);return r}function cM(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=y.forwardRef(function(n,r){var o=n.innerRef,i=HL(n,["innerRef"]),s=VL()||e;return y.createElement(t,mf({theme:s,ref:o||r},i))});return Ip(n,t),n}}var uM,dM=cM(),fM=Object.freeze({__proto__:null,ServerStyleSheets:sM,StylesContext:eM,StylesProvider:tM,ThemeProvider:function(e){var t=e.children,n=e.theme,r=VL(),o=y.useMemo(function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):mf({},e,t)}(r,n);return null!=e&&(e[QE]=null!==r),e},[n,r]);return y.createElement(YL.Provider,{value:o},t)},createGenerateClassName:eT,createStyles:function(e){return e},getThemeProps:tT,jssPreset:$L,makeStyles:iM,mergeClasses:WL,sheetsManager:QL,styled:function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=HL(r,["name"]),s=o,a=iM("function"==typeof t?function(e){return{root:function(n){return t(mf({theme:e},n))}}}:{root:t},mf({Component:e,name:o||e.displayName,classNamePrefix:s},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=y.forwardRef(function(t,r){var o,i,s,l=t.children,c=t.className,u=t.clone,d=t.component,f=HL(t,["children","className","clone","component"]),p=lM(a(t).root,c),h=f;if(n&&(o=h,i=n,s={},Object.keys(o).forEach(function(e){-1===i.indexOf(e)&&(s[e]=o[e])}),h=s),u)return y.cloneElement(l,mf({className:lM(l.props.className,p)},h));if("function"==typeof l)return l(mf({className:p},h));var g=d||e;return y.createElement(g,mf({ref:r,className:p},h),l)});return Ip(l,e),l}},useTheme:VL,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,s=t.name,a=HL(t,["defaultTheme","withTheme","name"]),l=s,c=iM(e,mf({defaultTheme:r,Component:n,name:s||n.displayName,classNamePrefix:l},a)),u=y.forwardRef(function(e,t){e.classes;var o,a=e.innerRef,l=HL(e,["classes","innerRef"]),u=c(mf({},n.defaultProps,e)),d=l;return("string"==typeof s||i)&&(o=VL()||r,s&&(d=tT({theme:o,name:s,props:l})),i&&!d.theme&&(d.theme=o)),y.createElement(n,mf({ref:a||t,classes:u},d))});return Ip(u,n),u}},withTheme:dM,withThemeCreator:cM}),pM=j(fM);
94
+ */pA();var mA=Date.now(),vA="fnValues"+mA,bA="fnStyle"+ ++mA,yA="@global",xA="@global ",_A=function(){function e(e,t,n){for(var r in this.type="global",this.at=yA,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new UT(mf({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),wA=function(){function e(e,t,n){this.type="global",this.at=yA,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,mf({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),kA=/\s*,\s*/g;function SA(e,t){for(var n=e.split(kA),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function CA(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===yA)return new _A(e,t,n);if("@"===e[0]&&e.substr(0,8)===xA)return new wA(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[yA]:null;if(o){for(var i in o)t.addRule(i,o[i],mf({},n,{selector:SA(i,e.selector)}));delete r[yA]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===yA){var i=SA(o.substr(7),e.selector);t.addRule(i,r[o],mf({},n,{selector:i})),delete r[o]}}(e,t))}}}var EA=/\s*,\s*/g,TA=/&/g,AA=/\$([\w-]+)/g;function LA(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(EA),r=e.split(EA),o="",i=0;i<n.length;i++)for(var s=n[i],a=0;a<r.length;a++){var l=r[a];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(TA,s):s+" "+l}return o}function n(e,t,n){if(n)return mf({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=mf({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var s,a,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),f="@"===u[0];if(d||f){if(s=n(l,c,s),d){var p=t(u,l.selector);a||(a=e(c,i)),p=p.replace(AA,a);var h=l.key+"-"+u;"replaceRule"in c?c.replaceRule(h,r[u],mf({},s,{selector:p})):c.addRule(h,r[u],mf({},s,{selector:p}))}else f&&c.addRule(u,{},s).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var MA=/[A-Z]/g,RA=/^ms-/,NA={};function OA(e){return"-"+e.toLowerCase()}function PA(e){if(NA.hasOwnProperty(e))return NA[e];var t=e.replace(MA,OA);return NA[e]=RA.test(t)?"-"+t:t}function IA(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:PA(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(IA):t.fallbacks=IA(e.fallbacks)),t}var zA=hA&&CSS?CSS.px:"px",jA=hA&&CSS?CSS.ms:"ms",DA=hA&&CSS?CSS.percent:"%";function FA(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var BA=FA({"animation-delay":jA,"animation-duration":jA,"background-position":zA,"background-position-x":zA,"background-position-y":zA,"background-size":zA,border:zA,"border-bottom":zA,"border-bottom-left-radius":zA,"border-bottom-right-radius":zA,"border-bottom-width":zA,"border-left":zA,"border-left-width":zA,"border-radius":zA,"border-right":zA,"border-right-width":zA,"border-top":zA,"border-top-left-radius":zA,"border-top-right-radius":zA,"border-top-width":zA,"border-width":zA,"border-block":zA,"border-block-end":zA,"border-block-end-width":zA,"border-block-start":zA,"border-block-start-width":zA,"border-block-width":zA,"border-inline":zA,"border-inline-end":zA,"border-inline-end-width":zA,"border-inline-start":zA,"border-inline-start-width":zA,"border-inline-width":zA,"border-start-start-radius":zA,"border-start-end-radius":zA,"border-end-start-radius":zA,"border-end-end-radius":zA,margin:zA,"margin-bottom":zA,"margin-left":zA,"margin-right":zA,"margin-top":zA,"margin-block":zA,"margin-block-end":zA,"margin-block-start":zA,"margin-inline":zA,"margin-inline-end":zA,"margin-inline-start":zA,padding:zA,"padding-bottom":zA,"padding-left":zA,"padding-right":zA,"padding-top":zA,"padding-block":zA,"padding-block-end":zA,"padding-block-start":zA,"padding-inline":zA,"padding-inline-end":zA,"padding-inline-start":zA,"mask-position-x":zA,"mask-position-y":zA,"mask-size":zA,height:zA,width:zA,"min-height":zA,"max-height":zA,"min-width":zA,"max-width":zA,bottom:zA,left:zA,top:zA,right:zA,inset:zA,"inset-block":zA,"inset-block-end":zA,"inset-block-start":zA,"inset-inline":zA,"inset-inline-end":zA,"inset-inline-start":zA,"box-shadow":zA,"text-shadow":zA,"column-gap":zA,"column-rule":zA,"column-rule-width":zA,"column-width":zA,"font-size":zA,"font-size-delta":zA,"letter-spacing":zA,"text-decoration-thickness":zA,"text-indent":zA,"text-stroke":zA,"text-stroke-width":zA,"word-spacing":zA,motion:zA,"motion-offset":zA,outline:zA,"outline-offset":zA,"outline-width":zA,perspective:zA,"perspective-origin-x":DA,"perspective-origin-y":DA,"transform-origin":DA,"transform-origin-x":DA,"transform-origin-y":DA,"transform-origin-z":DA,"transition-delay":jA,"transition-duration":jA,"vertical-align":zA,"flex-basis":zA,"shape-margin":zA,size:zA,gap:zA,grid:zA,"grid-gap":zA,"row-gap":zA,"grid-row-gap":zA,"grid-column-gap":zA,"grid-template-rows":zA,"grid-template-columns":zA,"grid-auto-rows":zA,"grid-auto-columns":zA,"box-shadow-x":zA,"box-shadow-y":zA,"box-shadow-blur":zA,"box-shadow-spread":zA,"font-line-height":zA,"text-shadow-x":zA,"text-shadow-y":zA,"text-shadow-blur":zA});function $A(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=$A(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=$A(o,t[o],n);else for(var i in t)t[i]=$A(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var s=n[e]||BA[e];return!s||0===t&&s===zA?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}function HA(e){void 0===e&&(e={});var t=FA(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=$A(r,e[r],t);return e},onChangeValue:function(e,n){return $A(n,e,t)}}}var WA="",KA="",UA="",GA="",YA=rT&&"ontouchstart"in document.documentElement;if(rT){var VA={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},JA=document.createElement("p").style;for(var qA in VA)if(qA+"Transform"in JA){WA=qA,KA=VA[qA];break}"Webkit"===WA&&"msHyphens"in JA&&(WA="ms",KA=VA.ms,GA="edge"),"Webkit"===WA&&"-apple-trailing-word"in JA&&(UA="apple")}var XA=WA,QA=KA,ZA=UA,eL=GA,tL=YA;var nL={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===XA?"-webkit-"+e:QA+e)}},rL={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===XA?QA+"print-"+e:e)}},oL=/[-\s]+(.)?/g;function iL(e,t){return t?t.toUpperCase():""}function sL(e){return e.replace(oL,iL)}function aL(e){return sL("-"+e)}var lL,cL={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===XA){var n="mask-image";if(sL(n)in t)return e;if(XA+aL(n)in t)return QA+e}return e}},uL={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==ZA||tL?e:QA+e)}},dL={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:QA+e)}},fL={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:QA+e)}},pL={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===XA||"ms"===XA&&"edge"!==eL?QA+e:e)}},hL={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===XA||"ms"===XA||"apple"===ZA?QA+e:e)}},gL={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===XA?"WebkitColumn"+aL(e)in t&&QA+"column-"+e:"Moz"===XA&&("page"+aL(e)in t&&"page-"+e))}},mL={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===XA)return e;var n=e.replace("-inline","");return XA+aL(n)in t&&QA+n}},vL={supportedProperty:function(e,t){return sL(e)in t&&e}},bL={supportedProperty:function(e,t){var n=aL(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:XA+n in t?QA+e:"Webkit"!==XA&&"Webkit"+n in t&&"-webkit-"+e}},yL={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===XA?""+QA+e:e)}},xL={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===XA?QA+"scroll-chaining":e)}},_L={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},wL={supportedProperty:function(e,t){var n=_L[e];return!!n&&(XA+aL(n)in t&&QA+n)}},kL={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},SL=Object.keys(kL),CL=function(e){return QA+e},EL={supportedProperty:function(e,t,n){var r=n.multiple;if(SL.indexOf(e)>-1){var o=kL[e];if(!Array.isArray(o))return XA+aL(o)in t&&QA+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(XA+aL(o[0])in t))return!1;return o.map(CL)}return!1}},TL=[nL,rL,cL,uL,dL,fL,pL,hL,gL,mL,vL,bL,yL,xL,wL,EL],AL=TL.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),LL=TL.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,oC(t.noPrefill)),e},[]),ML={};if(rT){lL=document.createElement("p");var RL=window.getComputedStyle(document.documentElement,"");for(var NL in RL)isNaN(NL)||(ML[RL[NL]]=RL[NL]);LL.forEach(function(e){return delete ML[e]})}function OL(e,t){if(void 0===t&&(t={}),!lL)return e;if(null!=ML[e])return ML[e];"transition"!==e&&"transform"!==e||(t[e]=e in lL.style);for(var n=0;n<AL.length&&(ML[e]=AL[n](e,lL.style,t),!ML[e]);n++);try{lL.style[e]=""}catch(e){return!1}return ML[e]}var PL,IL={},zL={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},jL=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function DL(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?OL(t):", "+OL(n);return r||(t||n)}function FL(e,t){var n=t;if(!PL||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=IL[r])return IL[r];try{PL.style[e]=n}catch(e){return IL[r]=!1,!1}if(zL[e])n=n.replace(jL,DL);else if(""===PL.style[e]&&("-ms-flex"===(n=QA+n)&&(PL.style[e]="-ms-flexbox"),PL.style[e]=n,""===PL.style[e]))return IL[r]=!1,!1;return PL.style[e]="",IL[r]=n,IL[r]}function BL(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=OL(n);i&&i!==n&&(o=!0);var s=!1,a=FL(i,cT(r));a&&a!==r&&(s=!0),(o||s)&&(o&&delete t[n],t[i||n]=a||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===XA?e:"@"+QA+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return FL(t,cT(e))||e}}}function $L(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=aT(e,{},n);return r[bA]=t,r},onProcessStyle:function(e,t){if(vA in t||bA in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[vA]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[bA];i&&(o.style=i(e)||{});var s=o[vA];if(s)for(var a in s)o.prop(a,s[a](e),r)}},CA(),LA(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=IA(e[t]);return e}return IA(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=PA(t);return t===r?e:(n.prop(r,e),null)}},HA(),"undefined"==typeof window?null:BL(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function HL(e,t){if(null==e)return{};var n,r,o=vf(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function WL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=mf({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}rT&&(PL=document.createElement("p"));var KL=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},UL=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},GL=function(e,t,n){e.get(t).delete(n)},YL=y.createContext(null);function VL(){return y.useContext(YL)}var JL,qL=pA($L()),XL=eT(),QL=new Map,ZL={disableGeneration:!1,generateClassName:XL,jss:qL,sheetsCache:null,sheetsManager:QL,sheetsRegistry:null},eM=y.createContext(ZL);function tM(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,s=HL(e,["children","injectFirst","disableGeneration"]),a=mf({},y.useContext(eM),{disableGeneration:i},s);if(!a.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!JL){var l=document.head;JL=document.createComment("mui-inject-first"),l.insertBefore(JL,l.firstChild)}a.jss=pA({plugins:$L().plugins,insertionPoint:JL})}return y.createElement(eM.Provider,{value:a},t)}var nM=-1e9;var rM={};function oM(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,s=e.name;if(!o.disableGeneration){var a=UL(o.sheetsManager,i,r);a||(a={refs:0,staticSheet:null,dynamicStyles:null},KL(o.sheetsManager,i,r,a));var l=mf({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===a.refs){var u;o.sheetsCache&&(u=UL(o.sheetsCache,i,r));var d=i.create(r,s);u||((u=o.jss.createStyleSheet(d,mf({link:!1},l))).attach(),o.sheetsCache&&KL(o.sheetsCache,i,r,u)),c&&c.add(u),a.staticSheet=u,a.dynamicStyles=gA(d)}if(a.dynamicStyles){var f=o.jss.createStyleSheet(a.dynamicStyles,mf({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=WL({baseClasses:a.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else n.classes=a.staticSheet.classes;a.refs+=1}}function iM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,s=void 0===i?rM:i,a=HL(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],s=mf({},o);return Object.keys(i).forEach(function(e){s[e]=jk(s[e],i[e])}),s},options:{}}}(e),c=n||r||"makeStyles";l.options={index:nM+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=VL()||s,r=mf({},y.useContext(eM),a),i=y.useRef(),c=y.useRef();!function(e,t){var n,r=y.useRef([]),o=y.useMemo(function(){return{}},t);r.current!==o&&(r.current=o,n=e()),y.useEffect(function(){return function(){n&&n()}},[o])}(function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return oM(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=UL(r.sheetsManager,o,n);i.refs-=1;var s=r.sheetsRegistry;0===i.refs&&(GL(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),s&&s.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),s&&s.remove(t.dynamicSheet))}}(o)}},[t,l]),y.useEffect(function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0});var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=WL({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}var sM=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return oT(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new VT;var n=eT();return y.createElement(tM,mf({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return y.createElement("style",mf({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function aM(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=aM(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function lM(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=aM(e))&&(r&&(r+=" "),r+=t);return r}function cM(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=y.forwardRef(function(n,r){var o=n.innerRef,i=HL(n,["innerRef"]),s=VL()||e;return y.createElement(t,mf({theme:s,ref:o||r},i))});return Ip(n,t),n}}var uM,dM=cM(),fM=Object.freeze({__proto__:null,ServerStyleSheets:sM,StylesContext:eM,StylesProvider:tM,ThemeProvider:function(e){var t=e.children,n=e.theme,r=VL(),o=y.useMemo(function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):mf({},e,t)}(r,n);return null!=e&&(e[QE]=null!==r),e},[n,r]);return y.createElement(YL.Provider,{value:o},t)},createGenerateClassName:eT,createStyles:function(e){return e},getThemeProps:tT,jssPreset:$L,makeStyles:iM,mergeClasses:WL,sheetsManager:QL,styled:function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=HL(r,["name"]),s=o,a=iM("function"==typeof t?function(e){return{root:function(n){return t(mf({theme:e},n))}}}:{root:t},mf({Component:e,name:o||e.displayName,classNamePrefix:s},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=y.forwardRef(function(t,r){var o,i,s,l=t.children,c=t.className,u=t.clone,d=t.component,f=HL(t,["children","className","clone","component"]),p=lM(a(t).root,c),h=f;if(n&&(o=h,i=n,s={},Object.keys(o).forEach(function(e){-1===i.indexOf(e)&&(s[e]=o[e])}),h=s),u)return y.cloneElement(l,mf({className:lM(l.props.className,p)},h));if("function"==typeof l)return l(mf({className:p},h));var g=d||e;return y.createElement(g,mf({ref:r,className:p},h),l)});return Ip(l,e),l}},useTheme:VL,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,s=t.name,a=HL(t,["defaultTheme","withTheme","name"]),l=s,c=iM(e,mf({defaultTheme:r,Component:n,name:s||n.displayName,classNamePrefix:l},a)),u=y.forwardRef(function(e,t){e.classes;var o,a=e.innerRef,l=HL(e,["classes","innerRef"]),u=c(mf({},n.defaultProps,e)),d=l;return("string"==typeof s||i)&&(o=VL()||r,s&&(d=tT({theme:o,name:s,props:l})),i&&!d.theme&&(d.theme=o)),y.createElement(n,mf({ref:a||t,classes:u},d))});return Ip(u,n),u}},withTheme:dM,withThemeCreator:cM}),pM=j(fM);
95
95
  /** @license Material-UI v4.11.5
96
96
  *
97
97
  * This source code is licensed under the MIT license found in the
98
98
  * LICENSE file in the root directory of this source tree.
99
- */function hM(){if(uM)return XE;uM=1,Object.defineProperty(XE,"__esModule",{value:!0}),XE.default=function(t){return(0,e.createStyles)(t)};var e=pM;return XE}var gM,mM,vM={},bM={};function yM(){if(gM)return bM;gM=1;var e=db();Object.defineProperty(bM,"__esModule",{value:!0}),bM.default=void 0;var t=(0,e(YE()).default)();return bM.default=t,bM}function xM(){if(mM)return vM;mM=1;var e=db();Object.defineProperty(vM,"__esModule",{value:!0}),vM.default=void 0;var t=e(Hb()),n=pM,r=e(yM());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 vM.default=o,vM}var _M,wM,SM={},kM={};function CM(){if(_M)return kM;_M=1;var e=db();Object.defineProperty(kM,"__esModule",{value:!0}),kM.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},kM.getUnit=n,kM.toUnitless=r,kM.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var s=r(t);if("px"!==i)if("em"===i)s=r(t)*r(e);else if("rem"===i)return s=r(t)*r(e),t;var a=s;if("px"!==o)if("em"===o)a=s/r(e);else{if("rem"!==o)return t;a=s/r(e)}return parseFloat(a.toFixed(5))+o}},kM.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},kM.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},kM.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,s=void 0===i?"rem":i,a=e.breakpoints,l=void 0===a?[600,960,1280]:a,c=e.transform,u=void 0===c?null:c,d=(0,t.default)({},n,"".concat(r).concat(s)),f=(o-r)/l[l.length-1];return l.forEach(function(e){var o=r+f*e;null!==u&&(o=u(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(s))}),d};var t=e(ck());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return kM}function EM(){if(wM)return SM;wM=1;var e=db();Object.defineProperty(SM,"__esModule",{value:!0}),SM.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,s=void 0===i?["sm","md","lg"]:i,a=o.disableAlign,l=void 0!==a&&a,c=o.factor,u=void 0===c?2:c,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=s.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 s=i,a=1+(s-1)/u,c=o.lineHeight;if(!(0,r.isUnitless)(c)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(c)||(c=parseFloat(g(c,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:c,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:a,max:s,unit:"rem",breakpoints:m,transform:d}))}}),p};var t=e(Hb()),n=QS,r=CM();return SM}var TM,AM={};function LM(){if(TM)return AM;TM=1;var e=db();Object.defineProperty(AM,"__esModule",{value:!0}),AM.default=void 0;var t=e(Hb()),n=pM,r=e(yM()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return AM.default=o,AM}var MM,RM={};function NM(){if(MM)return RM;MM=1;var e=db();Object.defineProperty(RM,"__esModule",{value:!0}),RM.default=function(){return(0,t.useTheme)()||n.default};var t=pM;e(y);var n=e(yM());return RM}var OM,PM={};function IM(){if(OM)return PM;OM=1;var e=db();Object.defineProperty(PM,"__esModule",{value:!0}),PM.default=void 0;var t=e(Hb()),n=pM,r=e(yM());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return PM.default=o,PM}var zM,jM,DM={};function FM(){if(zM)return DM;zM=1;var e=db();Object.defineProperty(DM,"__esModule",{value:!0}),DM.default=void 0;var t=pM,n=e(yM()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return DM.default=r,DM}function BM(){return jM||(jM=1,function(e){var t=db(),n=(LS||(LS=1,function(e){var t=OS().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,s=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,a={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return a;if(r=n?s:i){if(r.has(e))return r.get(e);r.set(e,a)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(a,l,o):a[l]=e[l]);return a},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(RS)),RS.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 s.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return u.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=ZS();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(YE()),s=t(qE()),a=t(hM()),l=t(xM()),c=t(EM()),u=t(LM()),d=HE();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(NM()),p=t(IM()),h=t(FM()),g=pM}(MS)),MS}var $M=BM();$M.alpha(oS.GREYSCALE_0,.05),$M.alpha(oS.GREEN_PALE,.5),$M.alpha(oS.BLUE_PALE,.5),$M.alpha(oS.GREEN_PALE,.5),$M.alpha(oS.BLUE_PALE,.5),$M.alpha(oS.GREEN_PALE,.5),$M.alpha(oS.BLUE_PALE,.5),$M.alpha(oS.GREEN_PALE,.5),$M.alpha(oS.BLUE_PALE,.5),$M.alpha(oS.GREEN_PALE,.5),$M.alpha(oS.BLUE_PALE,.5);const HM=E((e,t)=>Nu.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:Nu.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"})}));var WM=Object.defineProperty,KM=(e,t)=>{for(var n in t)WM(e,n,{get:t[n],enumerable:!0})},UM=(e,t,n)=>((e,t,n)=>t in e?WM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),GM={};KM(GM,{af:()=>ZM,ak:()=>eR,am:()=>tR,an:()=>nR,ar:()=>rR,ars:()=>oR,as:()=>iR,asa:()=>sR,ast:()=>aR,az:()=>lR,bal:()=>cR,be:()=>uR,bem:()=>dR,bez:()=>fR,bg:()=>pR,bho:()=>hR,blo:()=>gR,bm:()=>mR,bn:()=>vR,bo:()=>bR,br:()=>yR,brx:()=>xR,bs:()=>_R,ca:()=>wR,ce:()=>SR,ceb:()=>kR,cgg:()=>CR,chr:()=>ER,ckb:()=>TR,cs:()=>AR,cy:()=>LR,da:()=>MR,de:()=>RR,doi:()=>NR,dsb:()=>OR,dv:()=>PR,dz:()=>IR,ee:()=>zR,el:()=>jR,en:()=>DR,eo:()=>FR,es:()=>BR,et:()=>$R,eu:()=>HR,fa:()=>WR,ff:()=>KR,fi:()=>UR,fil:()=>GR,fo:()=>YR,fr:()=>VR,fur:()=>JR,fy:()=>qR,ga:()=>XR,gd:()=>QR,gl:()=>ZR,gsw:()=>eN,gu:()=>tN,guw:()=>nN,gv:()=>rN,ha:()=>oN,haw:()=>iN,he:()=>sN,hi:()=>aN,hnj:()=>lN,hr:()=>cN,hsb:()=>uN,hu:()=>dN,hy:()=>fN,ia:()=>pN,id:()=>hN,ig:()=>gN,ii:()=>mN,io:()=>vN,is:()=>bN,it:()=>yN,iu:()=>xN,ja:()=>_N,jbo:()=>wN,jgo:()=>SN,jmc:()=>kN,jv:()=>CN,jw:()=>EN,ka:()=>TN,kab:()=>AN,kaj:()=>LN,kcg:()=>MN,kde:()=>RN,kea:()=>NN,kk:()=>ON,kkj:()=>PN,kl:()=>IN,km:()=>zN,kn:()=>jN,ko:()=>DN,ks:()=>FN,ksb:()=>BN,ksh:()=>$N,ku:()=>HN,kw:()=>WN,ky:()=>KN,lag:()=>UN,lb:()=>GN,lg:()=>YN,lij:()=>VN,lkt:()=>JN,ln:()=>qN,lo:()=>XN,lt:()=>QN,lv:()=>ZN,mas:()=>eO,mg:()=>tO,mgo:()=>nO,mk:()=>rO,ml:()=>oO,mn:()=>iO,mo:()=>sO,mr:()=>aO,ms:()=>lO,mt:()=>cO,my:()=>uO,nah:()=>dO,naq:()=>fO,nb:()=>pO,nd:()=>hO,ne:()=>gO,nl:()=>mO,nn:()=>vO,nnh:()=>bO,no:()=>yO,nqo:()=>xO,nr:()=>_O,nso:()=>wO,ny:()=>SO,nyn:()=>kO,om:()=>CO,or:()=>EO,os:()=>TO,osa:()=>AO,pa:()=>LO,pap:()=>MO,pcm:()=>RO,pl:()=>NO,prg:()=>OO,ps:()=>PO,pt:()=>IO,pt_PT:()=>zO,rm:()=>jO,ro:()=>DO,rof:()=>FO,ru:()=>BO,rwk:()=>$O,sah:()=>HO,saq:()=>WO,sat:()=>KO,sc:()=>UO,scn:()=>GO,sd:()=>YO,sdh:()=>VO,se:()=>JO,seh:()=>qO,ses:()=>XO,sg:()=>QO,sh:()=>ZO,shi:()=>eP,si:()=>tP,sk:()=>nP,sl:()=>rP,sma:()=>oP,smi:()=>iP,smj:()=>sP,smn:()=>aP,sms:()=>lP,sn:()=>cP,so:()=>uP,sq:()=>dP,sr:()=>fP,ss:()=>pP,ssy:()=>hP,st:()=>gP,su:()=>mP,sv:()=>vP,sw:()=>bP,syr:()=>yP,ta:()=>xP,te:()=>_P,teo:()=>wP,th:()=>SP,ti:()=>kP,tig:()=>CP,tk:()=>EP,tl:()=>TP,tn:()=>AP,to:()=>LP,tpi:()=>MP,tr:()=>RP,ts:()=>NP,tzm:()=>OP,ug:()=>PP,uk:()=>IP,und:()=>zP,ur:()=>jP,uz:()=>DP,ve:()=>FP,vec:()=>BP,vi:()=>$P,vo:()=>HP,vun:()=>WP,wa:()=>KP,wae:()=>UP,wo:()=>GP,xh:()=>YP,xog:()=>VP,yi:()=>JP,yo:()=>qP,yue:()=>XP,zh:()=>QP,zu:()=>ZP});var YM=(e,t)=>t?"other":1==e?"one":"other",VM=(e,t)=>t?"other":0==e||1==e?"one":"other",JM=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",qM=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},XM=(e,t)=>"other",QM=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",ZM=YM,eR=VM,tR=JM,nR=YM,rR=(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"},oR=(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"},iR=(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",sR=YM,aR=qM,lR=(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"},cR=(e,t)=>1==e?"one":"other",uR=(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"},dR=YM,fR=YM,pR=YM,hR=VM,gR=(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"},mR=XM,vR=(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",bR=XM,yR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),s=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==s?"many":"other"},xR=YM,_R=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=r.slice(-2),l=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==s&&11!=a||1==l&&11!=c?"one":i&&s>=2&&s<=4&&(a<12||a>14)||l>=2&&l<=4&&(c<12||c>14)?"few":"other"},wR=(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"},SR=YM,kR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=s&&6!=s&&9!=s||!i&&4!=a&&6!=a&&9!=a?"one":"other"},CR=YM,ER=YM,TR=YM,AR=(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"},LR=(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",MR=(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"},RR=qM,NR=JM,OR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-2),a=o.slice(-2);return t?"other":i&&1==s||1==a?"one":i&&2==s||2==a?"two":i&&(3==s||4==s)||3==a||4==a?"few":"other"},PR=YM,IR=XM,zR=YM,jR=YM,DR=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),s=o&&n[0].slice(-2);return t?1==i&&11!=s?"one":2==i&&12!=s?"two":3==i&&13!=s?"few":"other":1==e&&r?"one":"other"},FR=YM,BR=(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"},$R=qM,HR=YM,WR=JM,KR=(e,t)=>t?"other":e>=0&&e<2?"one":"other",UR=qM,GR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=s&&6!=s&&9!=s||!i&&4!=a&&6!=a&&9!=a?"one":"other"},YR=YM,VR=(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"},JR=YM,qR=qM,XR=(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"},QR=(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"},ZR=qM,eN=YM,tN=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",nN=VM,rN=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=s&&20!=s&&40!=s&&60!=s&&80!=s?o?"other":"many":"few"},oN=YM,iN=YM,sN=(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"},aN=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",lN=XM,cN=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=r.slice(-2),l=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==s&&11!=a||1==l&&11!=c?"one":i&&s>=2&&s<=4&&(a<12||a>14)||l>=2&&l<=4&&(c<12||c>14)?"few":"other"},uN=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-2),a=o.slice(-2);return t?"other":i&&1==s||1==a?"one":i&&2==s||2==a?"two":i&&(3==s||4==s)||3==a||4==a?"few":"other"},dN=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",fN=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",pN=qM,hN=XM,gN=XM,mN=XM,vN=qM,bN=(e,t)=>{const n=String(e).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==e,s=r.slice(-1),a=r.slice(-2);return t?"other":i&&1==s&&11!=a||o%10==1&&o%100!=11?"one":"other"},yN=(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"},xN=QM,_N=XM,wN=XM,SN=YM,kN=YM,CN=XM,EN=XM,TN=(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"},AN=(e,t)=>t?"other":e>=0&&e<2?"one":"other",LN=YM,MN=YM,RN=XM,NN=XM,ON=(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"},PN=YM,IN=YM,zN=XM,jN=JM,DN=XM,FN=YM,BN=YM,$N=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",HN=YM,WN=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),s=r&&n[0].slice(-5),a=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&&(s>=1e3&&s<=2e4||4e4==s||6e4==s||8e4==s)||0!=e&&1e5==a?"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"},KN=YM,UN=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},GN=YM,YN=YM,VN=(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"},JN=XM,qN=VM,XN=(e,t)=>t&&1==e?"one":"other",QN=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),s=o&&n[0].slice(-2);return t?"other":1==i&&(s<11||s>19)?"one":i>=2&&i<=9&&(s<11||s>19)?"few":0!=r?"many":"other"},ZN=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,s=i&&n[0].slice(-1),a=i&&n[0].slice(-2),l=r.slice(-2),c=r.slice(-1);return t?"other":i&&0==s||a>=11&&a<=19||2==o&&l>=11&&l<=19?"zero":1==s&&11!=a||2==o&&1==c&&11!=l||2!=o&&1==c?"one":"other"},eO=YM,tO=VM,nO=YM,rO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=r.slice(-2),l=o.slice(-1),c=o.slice(-2);return t?1==s&&11!=a?"one":2==s&&12!=a?"two":7!=s&&8!=s||17==a||18==a?"other":"many":i&&1==s&&11!=a||1==l&&11!=c?"one":"other"},oO=YM,iO=YM,sO=(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"},aO=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",lO=(e,t)=>t&&1==e?"one":"other",cO=(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"},uO=XM,dO=YM,fO=QM,pO=YM,hO=YM,gO=(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"},mO=qM,vO=YM,bO=YM,yO=YM,xO=XM,_O=YM,wO=VM,SO=YM,kO=YM,CO=YM,EO=(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"},TO=YM,AO=XM,LO=VM,MO=YM,RO=JM,NO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(s<12||s>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&s>=12&&s<=14?"many":"other"},OO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,s=i&&n[0].slice(-1),a=i&&n[0].slice(-2),l=r.slice(-2),c=r.slice(-1);return t?"other":i&&0==s||a>=11&&a<=19||2==o&&l>=11&&l<=19?"zero":1==s&&11!=a||2==o&&1==c&&11!=l||2!=o&&1==c?"one":"other"},PO=YM,IO=(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"},zO=(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"},jO=YM,DO=(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"},FO=YM,BO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return t?"other":o&&1==i&&11!=s?"one":o&&i>=2&&i<=4&&(s<12||s>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&s>=11&&s<=14?"many":"other"},$O=YM,HO=XM,WO=YM,KO=QM,UO=(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"},GO=(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"},YO=YM,VO=YM,JO=QM,qO=YM,XO=XM,QO=XM,ZO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=r.slice(-2),l=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==s&&11!=a||1==l&&11!=c?"one":i&&s>=2&&s<=4&&(a<12||a>14)||l>=2&&l<=4&&(c<12||c>14)?"few":"other"},eP=(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"},tP=(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"},nP=(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"},rP=(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"},oP=QM,iP=QM,sP=QM,aP=QM,lP=QM,cP=YM,uP=YM,dP=(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"},fP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=r.slice(-2),l=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==s&&11!=a||1==l&&11!=c?"one":i&&s>=2&&s<=4&&(a<12||a>14)||l>=2&&l<=4&&(c<12||c>14)?"few":"other"},pP=YM,hP=YM,gP=YM,mP=XM,vP=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),s=o&&n[0].slice(-2);return t?1!=i&&2!=i||11==s||12==s?"other":"one":1==e&&r?"one":"other"},bP=qM,yP=YM,xP=YM,_P=YM,wP=YM,SP=XM,kP=VM,CP=YM,EP=(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"},TP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=s&&6!=s&&9!=s||!i&&4!=a&&6!=a&&9!=a?"one":"other"},AP=YM,LP=XM,MP=XM,RP=YM,NP=YM,OP=(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"},PP=YM,IP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,s=i&&n[0].slice(-1),a=i&&n[0].slice(-2),l=r.slice(-1),c=r.slice(-2);return t?3==s&&13!=a?"few":"other":o&&1==l&&11!=c?"one":o&&l>=2&&l<=4&&(c<12||c>14)?"few":o&&0==l||o&&l>=5&&l<=9||o&&c>=11&&c<=14?"many":"other"},zP=XM,jP=qM,DP=YM,FP=YM,BP=(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"},$P=(e,t)=>t&&1==e?"one":"other",HP=YM,WP=YM,KP=VM,UP=YM,GP=XM,YP=YM,VP=YM,JP=qM,qP=XM,XP=XM,QP=XM,ZP=JM,eI={},tI=Array.prototype.slice,nI=function(e){return("0"+e.toString()).substr(-2)},rI=function(e){var t=typeof e;return"function"===t||"object"===t},oI=function(e){return"function"===typeof e},iI=function(e){return null!=e},sI=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},aI=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},lI=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},cI=function(e){return!0===e||!1===e},uI=function(e){return null===e},dI=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))))},fI=function(e,t){return oI(e)?e(t):e},pI=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],aI(r)||lI(r)||cI(r)||sI(r)||uI(r)?e[n]=r:(null==e[n]&&(e[n]={}),pI(e[n],r)));return e},hI={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"]},gI={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},mI={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},vI={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},bI=[null,"kb","mb","gb","tb"],yI={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};eI.reset=function(){var e;for(e in yI)this[e]=yI[e]},eI.initializeOptions=function(){var e;for(e in yI)iI(this[e])||(this[e]=yI[e])},eI.initializeOptions(),eI.locales={},eI.locales.get=function(e){var t=this[e]||this[eI.locale]||this.default;return oI(t)&&(t=t(e)),!1===sI(t)&&(t=[t]),t},eI.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&eI.locale&&t.push(eI.locale),eI.fallbacks&&eI.defaultLocale&&t.push(eI.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),eI.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},eI.pluralization={},eI.pluralization.get=function(e){return this[e]||this[eI.locale]||this.default},eI.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},eI.currentLocale=function(){return this.locale||this.defaultLocale},eI.isSet=iI,eI.lookup=function(e,t){t=t||{};var n,r,o,i,s=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);s.length;)if(n=s.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(iI(t.defaultValue))return fI(t.defaultValue,e)},eI.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&rI(n))for(;i.length;)if(r=i.shift(),iI(n[r])){o=n[r];break}return o},eI.pluralizationLookup=function(e,t,n){n=n||{};var r,o,i,s,a=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);a.length;)if(r=a.shift(),o=t.split(n.separator||this.defaultSeparator),i=this.translations[r]){for(;o.length&&(i=i[o.shift()],rI(i));)0===o.length&&(s=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=s)break}return null==s&&iI(n.defaultValue)&&(s=rI(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:s,translations:i}},eI.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:hI.meridian},eI.prepareOptions=function(){for(var e,t=tI.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(iI(n[r])||(n[r]=e[r]));return n},eI.createTranslationOptions=function(e,t){var n=[{scope:e}];return iI(t.defaults)&&(n=n.concat(t.defaults)),iI(t.defaultValue)&&n.push({message:t.defaultValue}),n},eI.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(iI(t.scope)?(o=t.scope,n=this.lookup(o,i)):iI(t.message)&&(n=fI(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):sI(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):rI(n)&&iI(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},eI.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,s=e.match(this.placeholder);if(!s)return e;for(;s.length;)o=(n=s.shift()).replace(this.placeholder,"$1"),r=iI(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,"$")},eI.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))},eI.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]'},eI.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},eI.nullPlaceholder=function(){return eI.missingPlaceholder.apply(eI,arguments)},eI.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),gI);var n,r,o=e<0,i=function(e,t){return dI("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString(),s=i.split("."),a=[],l=t.format||"%n",c=o?"-":"";for(e=s[0],n=s[1];e.length>0;)a.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return r=a.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",c)},eI.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),mI),this.toNumber(e,t)},eI.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)}},eI.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},eI.strftime=function(e,t,n){n=this.lookup("date",n);var r=eI.meridian();if(n||(n={}),n=this.prepareOptions(n,hI),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(),s=e.getFullYear(),a=e.getMonth()+1,l=e.getHours(),c=l,u=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 c>12?c-=12:0===c&&(c=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[a])).replace("%B",n.month_names[a])).replace("%d",nI(i))).replace("%e",i)).replace("%-d",i)).replace("%H",nI(l))).replace("%-H",l)).replace("%k",l)).replace("%I",nI(c))).replace("%-I",c)).replace("%l",c)).replace("%m",nI(a))).replace("%-m",a)).replace("%M",nI(f))).replace("%-M",f)).replace("%p",r[u])).replace("%P",r[u].toLowerCase())).replace("%S",nI(d))).replace("%-S",d)).replace("%w",o)).replace("%y",nI(s))).replace("%-y",nI(s).replace(/^0+/,""))).replace("%Y",s)).replace("%z",m)).replace("%Z",m)},eI.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},eI.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),vI),this.toNumber(e,t)},eI.toHumanSize=function(e,t){for(var n,r,o,i=e,s=0;i>=1024&&s<4;)i/=1024,s+=1;return 0===s?(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."+bI[s],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)},eI.getFullScope=function(e,t){return t=t||{},sI(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},eI.extend=function(e,t){return void 0===e&&void 0===t?{}:pI(e,t)},eI.t=eI.translate.bind(eI),eI.l=eI.localize.bind(eI),eI.p=eI.pluralize.bind(eI);KM({},{DEFAULT_LANGUAGE:()=>_I,DEFAULT_LANGUAGE_SHORT:()=>wI,flattenParams:()=>RI,flattenTranslationsJSON:()=>CI,format:()=>NI,formatWithKeys:()=>OI,getLongLanguageDesc:()=>MI,getShortLanguageDesc:()=>LI,parseLangFromUrl:()=>EI,resolveLocale:()=>AI,updateLangAttribute:()=>PI});var xI=[{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"}],_I="en-US",wI="en",SI=["zh-cn","zh-tw","qps-ploc"],kI=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),CI=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),kI(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=kI(r)&&r.value;return o&&(t[n]=o),t},{}):{}),EI=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},TI=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(SI.includes(e.toLocaleLowerCase()))return xI.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return xI.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},AI=(...e)=>{for(const t of e){const e=TI(t);if(e)return e.short}},LI=e=>{const t=TI(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${wI}'`),wI)},MI=e=>{const t=TI(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${_I}'`),_I)},RI=e=>Array.isArray(e[0])?e[0]:e,NI=(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)},OI=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),PI=e=>{const t=LI(e);document.documentElement.setAttribute("lang",t)},II=class e{static configure(t,n=_I){e.translations=t,e.language=MI(n),e.languageShort=LI(n),PI(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=eI,eI.missingTranslation=e=>e,eI.defaultSeparator=null,eI.locale=e.language,eI.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];eI.pluralization[e.language]=e=>{try{const t=GM[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=OI(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))}}};UM(II,"translations",{}),UM(II,"translationsPlurals",{}),UM(II,"language"),UM(II,"languageShort"),UM(II,"onTranslationsChangeListeners",[]),UM(II,"i18nProvider"),UM(II,"get",(e,...t)=>{var n;const r=RI(t);let o=null!=(n=II.translations[e])?n:e;return r.length>0&&(o=NI(o,...r)),o});var zI=II;var jI=function(){const[e,t]=S(0);return w(()=>{const n=zI.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),zI.get},DI=zI;function FI({defaultSelection:e}){const[t]=Tu();return w(()=>{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 BI(e,t=!0){if(e)return!1;let n=Vi().getTextContent();return t&&(n=n.trim()),""===n}function $I(e){return()=>function(e){if(!BI(e,!1))return!1;const t=Vi().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(ei(n))return!1;if(Xo(n)){if(!di(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!Ir(t[e]))return!1}}return!0}(e)}const HI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_:w;function WI({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:a,ariaLabel:l,ariaLabelledBy:c,ariaMultiline:u,ariaOwns:d,ariaRequired:f,autoCapitalize:p,className:h,id:g,role:m="textbox",spellCheck:v=!0,style:b,tabIndex:y,"data-testid":_,...w},k){const[C,E]=S(e.isEditable()),T=M(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),A=x(()=>function(...e){return t=>{for(const n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(k,T),[T,k]);return HI(()=>(E(e.isEditable()),e.registerEditableListener(e=>{E(e)})),[e]),Nu.jsx("div",{"aria-activedescendant":C?t:void 0,"aria-autocomplete":C?n:"none","aria-controls":C?r:void 0,"aria-describedby":o,...null!=i?{"aria-errormessage":i}:{},"aria-expanded":C&&"combobox"===m?!!s:void 0,...null!=a?{"aria-invalid":a}:{},"aria-label":l,"aria-labelledby":c,"aria-multiline":u,"aria-owns":C?d:void 0,"aria-readonly":!C||void 0,"aria-required":f,autoCapitalize:p,className:h,contentEditable:C,"data-testid":_,id:g,ref:A,role:m,spellCheck:v,style:b,tabIndex:y,...w})}const KI=E(WI);function UI(e){return e.getEditorState().read($I(e.isComposing()))}const GI=E(YI);function YI(e,t){const{placeholder:n,...r}=e,[o]=Tu();return Nu.jsxs(Nu.Fragment,{children:[Nu.jsx(KI,{editor:o,...r,ref:t}),null!=n&&Nu.jsx(VI,{editor:o,content:n})]})}function VI({content:e,editor:t}){const n=function(e){const[t,n]=S(()=>UI(e));return HI(()=>{function t(){const t=UI(e);n(t)}return t(),Va(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=S(t.isEditable());if(_(()=>(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:Nu.jsx("div",{"aria-hidden":!0,children:i})}const JI=v(null),qI={didCatch:!1,error:null};class XI extends R{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=qI}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(qI))}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(qI))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let s=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)s=t(e);else if(n)s=N(n,e);else{if(void 0===r)throw i;s=r}}return N(JI.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}}function QI({children:e,onError:t}){return Nu.jsx(XI,{fallback:Nu.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const ZI={name:"@lexical/react/ReactProvider"};function ez(e){throw new Error(e)}const tz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_:w;function nz({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=S(()=>e.getDecorators());return tz(()=>e.registerDecoratorListener(e=>{g(()=>{r(e)})}),[e]),w(()=>{r(e.getDecorators())},[e]),x(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const s=o[i],a=Nu.jsx(t,{onError:t=>e._onError(t),children:Nu.jsx(O,{fallback:null,children:n[s]})}),l=e.getElementByKey(s);null!==l&&r.push(m(a,l,s))}return r},[t,n,e])}(e,t)}function rz({editor:e,ErrorBoundary:t}){return function(e){const t=hc.maybeFromEditor(e);if(t&&t.hasExtensionByName(ZI.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&ez(`LexicalBuilder: @lexical/react legacy text plugins conflict with the ${e} extension. Remove the legacy <RichTextPlugin/> or <PlainTextPlugin/> component.`);return!0}return!1}(e)?null:Nu.jsx(nz,{editor:e,ErrorBoundary:t})}function oz(e){return e.getEditorState().read($I(e.isComposing()))}function iz(e){tz(()=>Va(Ed(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,s,a]=t;e.update(()=>{const e=co();if(Ur(e)){const t=e.anchor;let l=t.getNode(),c=0,u=0;if(Ir(l)&&r>=0&&o>=0&&(c=r,u=r+o,e.setTextNodeRange(l,c,l,u)),c===u&&""===i||(e.insertRawText(i),l=t.getNode()),Ir(l)){c=s,u=s+a;const t=l.getTextContentSize();c=c>t?t:c,u=u>t?t:u,e.setTextNodeRange(l,c,l,u)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(e)),[e])}function sz({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=Tu();return iz(r),Nu.jsxs(Nu.Fragment,{children:[e,Nu.jsx(az,{content:t}),Nu.jsx(rz,{editor:r,ErrorBoundary:n})]})}function az({content:e}){const[t]=Tu(),n=function(e){const[t,n]=S(()=>oz(e));return tz(()=>{function t(){const t=oz(e);n(t)}return t(),Va(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=Rd();return n?"function"==typeof e?e(r):e:null}const lz=E((e,t)=>Nu.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:Nu.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"})})),cz=E((e,t)=>Nu.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:[Nu.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),Nu.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]})),uz=E((e,t)=>Nu.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:Nu.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})})),dz=E((e,t)=>Nu.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:Nu.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})})),fz=E((e,t)=>Nu.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:Nu.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})})),pz=E((e,t)=>Nu.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:Nu.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"})})),hz=E((e,t)=>Nu.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:Nu.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"})})),gz=E((e,t)=>Nu.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:Nu.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"})})),mz=E((e,t)=>Nu.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:Nu.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"})})),vz=E((e,t)=>Nu.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:Nu.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"})})),bz=E((e,t)=>Nu.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:Nu.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"})})),yz=E((e,t)=>Nu.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:Nu.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"})})),xz=E((e,t)=>Nu.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:Nu.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"})})),_z=E((e,t)=>Nu.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:Nu.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"})})),wz=E((e,t)=>Nu.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:Nu.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"})})),Sz=E((e,t)=>Nu.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:Nu.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"})}));var kz,Cz,Ez={exports:{}},Tz={};function Az(e){return Az="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},Az(e)}var Lz=(Cz||(Cz=1,Ez.exports=function(){if(kz)return Tz;kz=1;var e=y,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 s(e,n,s){var a,l={},c=null,u=null;for(a in void 0!==s&&(c=""+s),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,a)&&!i.hasOwnProperty(a)&&(l[a]=n[a]);if(e&&e.defaultProps)for(a in n=e.defaultProps)void 0===l[a]&&(l[a]=n[a]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return Tz.Fragment=n,Tz.jsx=s,Tz.jsxs=s,Tz}()),Ez.exports);const Mz=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,Rz=[e=>{const t=Mz.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 Nz(){return Lz.jsx(Ad,{matchers:Rz})}const Oz=()=>{const[e]=Tu(),t=Rd(),n=M(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 w(()=>Va(e.registerMutationListener(bc,e=>{n(e)}),e.registerMutationListener(Cc,e=>{n(e)}),e.registerCommand(Tt,t=>(t.metaKey&&t.target&&e.getEditorState().read(()=>{const e=co();let t;if(Ur(e)&&(t=e.focus.getNode().getParent()),Yr(e)&&(t=e.getNodes()[0]),Tc(t)||kc(t)){const e=t.getURL();setTimeout(()=>{const t=window.open(e,"_blank");t?.focus()},0)}}),!1),fi)),[e,n]),null};function Pz(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?rl(n)?r:o:rl(t)?r:o}const Iz=new Set(["http:","https:","mailto:","sms:","tel:"]),zz=e=>{const t=e;return t.password="",t.username="",t};function jz(e){try{const t=new URL(e);return Iz.has(t.protocol)?{url:zz(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const Dz=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function Fz(e){return"https://"===e||Dz.test(e)}const Bz=ty(mw)(({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)})),$z=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=k(null),[s,a]=S(t);w(()=>{a(t)},[t]);const l=M(()=>{n(s),window.open(jz(s).url,"_blank"),r()},[s,r,n]),c=M(e=>{e.preventDefault(),e.stopPropagation(),n(s)},[s,n]),u=M(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(s))},[s,n]),d=M(e=>{e.preventDefault(),a(e.currentTarget.value)},[]);return Lz.jsx(O_,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>Lz.jsx(_w,{...e,children:Lz.jsx(Ty,{className:"tekPopperMenu",children:Lz.jsxs(Bz,{direction:"row",children:[Lz.jsx(V_,{ref:i,placeholder:t,margin:"dense",size:"small",value:s,onChange:d,onKeyDown:u}),Lz.jsx(qy,{onClick:l,children:Lz.jsx(tS,{})}),Lz.jsx(qy,{onClick:c,children:Lz.jsx(nS,{})})]})})})})},Hz=()=>{const[e]=Tu(),t=Rd(),[n,r]=S(null),[o,i]=S(""),s=k(!1),a=M(()=>{if(s.current)return s.current=!1,!1;const t=co();if(Ur(t)){const n=Pz(t),o=n.getParent();if(Tc(o)||Tc(n))return r(null),i(""),!1;let s;if(kc(o)&&(s=o),kc(n)&&(s=n),kc(s)){const t=e.getElementByKey(s.getKey());return i(s.getURL()),r(t),!0}r(null),i("")}return!1},[e]),l=M(t=>{s.current=!0,e.update(()=>{e.dispatchCommand(Ac,jz(t))},{onUpdate:()=>{r(null)}})},[e]),c=M(()=>{r(null)},[]);return w(()=>Va(e.registerCommand(Ct,()=>a(),1),e.registerCommand(Tt,()=>a(),1)),[e,a]),t?Lz.jsx($z,{anchorEl:n,link:o,onChanged:l,onOpened:c}):null};function Wz(){return Lz.jsx(rS,{validateUrl:Fz})}!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 Kz=({children:e})=>Lz.jsx(ry,{theme:TS(),children:e}),Uz={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:[vd,hd,pu,lu,bc,Cc],onError:e=>{console.log(e)}},Gz=({children:e,initialConfig:t,flags:n})=>Lz.jsx(Kz,{children:Lz.jsx("div",{className:"tek__editor__Wrapper",children:Lz.jsx(zu,{initialConfig:t||Uz,children:Lz.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,Lz.jsx(Hu,{}),Lz.jsx(Wu,{}),Lz.jsx(Wz,{}),Lz.jsx(Nz,{}),Lz.jsx(Hz,{}),Lz.jsx(Oz,{}),Lz.jsx($u,{})]})})})});let Yz=class e extends qo{__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 Vz=e=>new Yz(e),Jz=e=>e instanceof Yz;let qz=class e extends qo{__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 Xz(e){return e instanceof qz}let Qz=class e extends qo{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 Zz(e){return e instanceof Qz}const ej=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),Jz(t))return t;return null},tj=e=>{let t=e;for(;null!==t;){if(Xz(t))return t;t=t?.getParent()}return null},nj=(e,t)=>{const n=tj(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},rj=e=>{const t=e?.getChildAtIndex(2);return t},oj=e=>{const t=e.getParent();if(Zz(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},ij=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,sj=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},aj=e=>e?e.getChildren().filter(e=>Zz(e)):[],lj=e=>{let t=!1;return aj(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(ui()),t=!0})}),t},cj=e=>{const t=co();if(Ur(t)||Yr(t)){const n=t.getNodes().filter(e=>Jz(e));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some(e=>Xz(e)),o=tj(n[0]),i=aj(o),s=i[0]?.getChildren();if(s.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if(Ur(t)){const e=t.focus.getNode();if(Xz(e))return lj(e)}return n.forEach(e=>{e.clear(),e.append(ui())}),(()=>{const e=co();let t=!1;if(Ur(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=tj(n);!o&&Xz(r)&&(o=r),Xz(o)&&(t=lj(o))}return t})()}if(Ur(t)){const e=t.focus.getNode();if(Xz(e))return lj(e)}}return!1},uj=e=>{if(e){const t=tj(e);if(Xz(t)){const n=e.getParent(),r=aj(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}},dj=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),Jz(t))return t;return null},fj=e=>{const t=[];return aj(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},pj=(e,t)=>{fj(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},hj=kt("UPDATE_COL_WIDTHS_COMMAND"),gj=kt("BEGIN_COL_RESIZE"),mj=kt("END_COL_RESIZE"),vj=kt("INSERT_TEK_TABLE_COMMAND"),bj=({colKey:e,startX:t,onMouseDown:n})=>{const r=M(t=>{n(t,e)},[e,n]);return Lz.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},yj=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},xj=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,_j=({nodeKey:e,colWidths:t})=>{const[n]=Tu(),r=Rd(),[o,i]=S(null),s=k(null),a=k(null),l=k(null),c=k(null),u=M(t=>{const n=Hi(e);if(n){const e=n.getParent();if(Xz(e)){const n=rj(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=M(e=>{if(s.current){const{clientX:t,col:n,tableElement:r,curColWidth:o,resizer:i,left:a,nxt:u,parentDomNode:d,currentTableWidth:f}=s.current,p=e.clientX-t,h=sj(a+p,r);if(u){const e=o+p;if(e<60)return;const t=sj(e,r),a=s.current.nxtColWidth-p,d=sj(a,r);if(a<60)return;n.setAttribute("width",t),u.setAttribute("width",d),i.style.left=h,l.current&&(l.current.innerText=t),c.current&&(c.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 s=Math.max(r.cells[e].offsetWidth,60);60===s&&o++,i+=s;const a=s/t,l=Math.min(100*a,100);n.push(`${l.toFixed(2)}%`)}return{clampedWidths:n,fullyClamped:o===r.cells.length,clampedTableWidth:i}})(r,e),s=sj(e,d),a=sj(o,d);r.style.width=!n||p>0?s:a,r.querySelectorAll(":scope > colgroup col").forEach((e,n)=>{e.setAttribute("width",t[n])}),n||l.current&&(l.current.innerText=s)}}},[]),f=M(()=>{if(document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",f),s.current){s.current.resizer.style.opacity="",l.current=null,c.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(sj(o,e))}return n})(s.current.tableElement);s.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)})(s.current.resizer),n.dispatchCommand(mj,void 0)}s.current=null,a.current=null,n.update(()=>{const t=Hi(e),r=nj(t,n),s=t?.getParent();if(r&&s){const t=r.querySelectorAll(":scope > colgroup col"),a=[];t.forEach(e=>{a.push(e.getAttribute("width")||"0")}),s.setWidth(r.style.width);let l=0;if(o){const e=o.map((e,t)=>{const n={...e};return l+=parseFloat(a[t]),n.startX=l,n});i(e)}n.dispatchCommand(hj,{colWidths:a,nodeKey:e})}})},[d,n,e,o]),p=M((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read(()=>{const r=Hi(t),o=nj(r,n);if(Jz(r)){const t=oj(r);if(-1!==t&&o){const r=o.querySelectorAll(":scope > colgroup col"),i=r[t],a=r.length>t+1?r[t+1]:null,u=ij(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,h=ij(a,o),g=o.parentElement,m=.01*parseFloat(o.style.width),v=(g?.offsetWidth||0)*m,b=((e,t,n)=>{const r=yj("tek__leftResizerIndicator","leftGripper");r.innerText=xj(e);let o=null;return t?(o=yj("tek__rightResizerIndicator","rightGripper"),o.innerText=xj(t)):r.innerText=n.style.width,{left:r,right:o}})(i,a,o);l.current=b.left,c.current=b.right,d.appendChild(b.left),b.right&&d.appendChild(b.right),d.style.opacity="1",s.current={resizer:d,curColWidth:u,col:i,tableElement:o,clientX:e.clientX,left:p,nxt:a,nxtColWidth:h,parentDomNode:g,currentTableWidth:v},n.dispatchCommand(gj,void 0)}}})},[n,d,f]);return w(()=>{n.getEditorState().read(()=>{u(t)})},[u,n,t]),Lz.jsx(Lz.Fragment,{children:o&&r?o.map(e=>Lz.jsx(bj,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},wj="TEK_TABLE_RESIZE_NODE";let Sj=class e extends Zo{__colWidths;static getType(){return wj}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:wj,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 Lz.jsx(_j,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const kj=e=>e instanceof Sj,Cj=({nodeKey:e,colWidths:t})=>{const[n]=Tu(),[r,o]=S(t);return w(()=>{n.getEditorState().read(()=>{const t=Hi(e),n=t?.getParent();if(Xz(n)){const e=n.getResizeNode();if(kj(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),Lz.jsx(Lz.Fragment,{children:r.map((t,n)=>Lz.jsx("col",{span:1,width:t},`${e}.${n}`))})};class Ej extends Zo{__colWidths;static getType(){return"TekColGroupNode"}static clone(e){return new Ej(e.__colWidths,e.__key)}static importJSON(e){return new Ej(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 Lz.jsx(Cj,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class Tj extends Zo{__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 Aj=[qz,Yz,Qz,Ej,Sj],Lj=(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()},Mj=()=>{const e=co();if(Ur(e)){const t=e.anchor.getNode(),n=ej(t);if(n){const e=oj(n),t=tj(n),r=aj(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach(t=>{t.getChildAtIndex(e)?.remove()}),Lj(o,t)}}},Rj=()=>{const e=co();if(Ur(e)){const t=e.anchor.getNode(),n=ej(t),r=tj(n);if(r&&3===r.getChildren().length)return qi(null),void r.remove();if(n){const{row:e}=uj(n);qi(null),e?.remove()}}},Nj=()=>{const e=co();if(Ur(e)){const t=e.anchor.getNode(),n=tj(t),r=rj(n);if(Zz(r)&&n){const e=r.getChildren().length,t=new Qz;for(let r=0;r<e;r++){const e=Vz(n?.__hasBorders);e.append(ui()),t.append(e)}n?.append(t)}}},Oj=()=>{const e=co();if(Ur(e)){const t=e.anchor.getNode(),n=tj(t);if(Xz(n)){const e=aj(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=Vz(n.__hasBorders);o.append(ui()),e[r].append(o),t=o}return Lj(r,n),t}}return null},Pj=ty(qy)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),Ij=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=Tu(),[o,i]=S(null),s=jI(),a=Boolean(o),l=M((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{t()},{onUpdate:()=>{i(null),n()}})},[r]),c=M(e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)},[n]),u=M(()=>{i(null)},[]),d=M(e=>{l(e,Nj,t)},[l,t]),f=M(e=>{l(e,Oj,t)},[l,t]),p=M(t=>{l(t,Rj,e)},[l,e]),h=M(t=>{l(t,Mj,e)},[l,e]),g=M(()=>{r.update(()=>{(()=>{const e=co();if(Ur(e)){const t=e.anchor.getNode(),n=tj(t);Xz(n)&&(n.selectPrevious(),n.remove())}})()},{onUpdate:()=>{i(null),e()}})},[r,e]),m=M(e=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{(()=>{const e=co();if(Ur(e)){const t=e.anchor.getNode(),n=tj(t);n&&(n.toggleBorders(),fj(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return w(()=>Va(r.registerCommand(Ct,()=>(i(null),!1),4)),[r]),Lz.jsx(cw,{onClickAway:u,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Lz.jsxs("div",{children:[Lz.jsx(Pj,{size:"small",onClick:c,children:Lz.jsx(HM,{height:12})}),Lz.jsx(O_,{sx:{zIndex:2},open:a,anchorEl:o,placement:"auto-end",children:Lz.jsx(Ty,{id:"tekTableMenu",className:"tekPopperMenu",children:Lz.jsxs(Dw,{dense:!0,children:[Lz.jsx(Ww,{onClick:m,children:s("ToggleBorders")}),Lz.jsx(gw,{}),Lz.jsx(Ww,{onClick:d,children:s("AddNewRow")}),Lz.jsx(Ww,{onClick:f,children:s("AddNewColumn")}),Lz.jsx(gw,{}),Lz.jsx(Ww,{onClick:p,children:s("DeleteRow")}),Lz.jsx(Ww,{onClick:h,children:s("DeleteCol")}),Lz.jsx(gw,{}),Lz.jsx(Ww,{onClick:g,children:s("DeleteTable")})]})})})]})})},zj=()=>{const[e]=Tu(),t=Rd(),[n,r]=S(null),[o,i]=S(!1),s=Boolean(n),a=C.useContext(dh),l=k(null),c=M(()=>{o||e.update(()=>{const t=co();if(Ur(t)){const n=ej(t.anchor.getNode());if(Jz(n)){const t=e.getElementByKey(n.getKey());r(t)}else r(null)}})},[e,o]);w(()=>{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)}},[]),w(()=>Va(e.registerCommand(Ct,()=>(c(),!1),fi),e.registerCommand(gj,()=>(r(null),!0),4),e.registerCommand(mj,()=>(c(),!0),4)),[e,c]),w(()=>{r(null)},[t]);const u=M(()=>{r(null)},[]),d=M(()=>{r(null),setTimeout(()=>{c()},0)},[c]),f=M(()=>{clearTimeout(l.current)},[]);return Lz.jsx(O_,{open:!!s&&t,anchorEl:n,placement:"top-end",sx:{zIndex:2},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt(a.components?.MuiButton?.styleOverrides?.sizeSmall?.height||"24",10)]}}],children:Lz.jsx(Ij,{onDeleteAction:u,onAction:d,onClick:f})})},jj=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=Hi(n),r=e?.getParent();ni(r)&&null!==e&&t.push(e)}if(t.length>0){const e=ui();t[0].insertBefore(e),e.select(),t.forEach(e=>{e.remove()})}},Dj=()=>{const[e]=Tu(),t=Rd();return w(()=>Va(e.registerMutationListener(Yz,t=>{e.update(()=>{jj(t)})}),e.registerMutationListener(Qz,t=>{e.update(()=>{jj(t)})}),e.registerMutationListener(qz,t=>{e.update(()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=Hi(e);if(Xz(t)&&!t.isValid()){const e=ui();t.insertBefore(e),e.select(),t.remove()}}})}),e.registerCommand(vj,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new qz(!0,"100%"),n=new Ej(e),r=new Sj(e),o=[];for(let t=0;t<2;t++){const t=new Qz;for(let n=0;n<e.length;n++){const e=Vz(!0),n=ui();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();xl(e)}),!0),fi),e.registerCommand(hj,({colWidths:e,nodeKey:t})=>{const n=Hi(t);if(kj(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof Ej})(r)&&r.setColWidths(e)}return!0},4),e.registerCommand(qt,t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=co();if(Ur(e)){const t=e.focus.getNode(),n=tj(t),r=dj(t);if(Xz(n)){const e=ui();e.append(Pr("")),n.insertBefore(e,!1),e.select()}}})()}),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=co();if(Ur(e)){const t=e.focus.getNode(),n=tj(t);if(Xz(n)){const e=ui();e.append(Pr("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()}),!0),4),e.registerCommand(Qt,e=>cj(e),4),e.registerCommand(en,e=>cj(e),4),e.registerCommand(tn,e=>{const t=co();if(Ur(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),Jz(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,s=t?1:-1;if(i&&o){const e=i.getChildAtIndex(r+s);if(e)e.getChildAtIndex(0).selectEnd();else{let e=0;t||0!==r||(e=i.getChildren().length-1);const a=o.getChildAtIndex(n+2+s);if(Zz(a)){const t=a?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(uj(o),!e.shiftKey),!0}return!1},fi),e.registerCommand(fn,e=>{const t=e?.target,n=co();if(t.classList.contains("tek__table")&&Ur(n)&&Xz(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if(Ur(n)){const t=n.getNodes().some(e=>Jz(e)),r=n.getNodes().some(e=>Xz(e));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1},4)),[e]),w(()=>e.registerCommand(Ct,()=>(t&&e.update(()=>{(e=>{const t=co(),n=[];if(ps(qz).forEach(e=>{const t=fj(e);n.push(...t)}),Ur(t)){t.getNodes().filter(e=>Xz(e)).forEach(t=>{pj(t,e)});const n=t.focus.getNode();if(Xz(n))return void pj(n,e)}if(Ur(t)||Yr(t)){const r=new Set(t.getNodes().map(e=>dj(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]),w(()=>{e.update(()=>{t||(e=>{const t=[];ps(qz).forEach(e=>{const n=fj(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},Fj=()=>Lz.jsxs(Lz.Fragment,{children:[Lz.jsx(Dj,{}),Lz.jsx(zj,{})]}),Bj=()=>{const e=Rd(),t=jI();return e?Lz.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):Lz.jsx("div",{className:"tek__editor__logo",children:Lz.jsx(lz,{height:32})})},$j=({showPlaceholder:e})=>Lz.jsxs("div",{style:{position:"relative"},children:[Lz.jsx(FI,{}),Lz.jsx(sz,{contentEditable:Lz.jsx(GI,{className:"tek__editor__input"}),placeholder:!1!==e?Lz.jsx(Bj,{}):null,ErrorBoundary:QI})]}),Hj=ty(mw)(({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"}})),Wj=["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"],Kj="#404040",Uj="16px",Gj=v({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:Wj[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),Yj=({children:e})=>{const t=(()=>{const[e]=Tu(),[t,n]=S(!1),[r,o]=S(!1),[i,s]=S(!1),[a,l]=S("paragraph"),[c,u]=S(Wj[0]),[d,f]=S(Uj),[p,h]=S(Kj),[g,m]=S("left"),[v,b]=S(!1),y=M(()=>{const t=co();if(Ur(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:Xs(r,e=>{const t=e.getParent();return null!==t&&Cs(t)});null===i&&(i=r.getTopLevelElementOrThrow());const a=i.getKey();let c=i;if(null!==e.getElementByKey(a))if(yu(i)){const e=bl(r,pu),t=e?e.getListType():i.getListType();l(t)}else{const e=wd(i)?i.getTag():i.getType();l(e)}if(yu(i)||wd(i)){const e=bl(i,li);e&&(c=e)}const d=Pz(t);if(kc(d.getParent())||kc(d)?b(!0):b(!1),di(c)){const e=c.getFormatType();m(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),s(t.hasFormat("underline"));const p=hl(t,"font-family",Wj[0]),g=hl(t,"font-size",Uj);u(""===p?Wj[0]:p),f(""!==g&&g?g:Uj),h(hl(t,"color",Kj))}else Yr(t)&&t.getNodes().forEach(e=>{if(function(e){return e instanceof Tj}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),s(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",Kj));const t=e.getTextFormatStyle("fontSize",Uj),r=e.getTextFormatStyle("fontFamily",Wj[0]);f(t),u(r);const i=e.getParent();if(null!==i){const e=(e=>{if(fu(e)){const t=bl(e,pu);return t?t.getListType():"bullet"}return wd(e)?e.getTag():e.getType()})(i);l(e)}}})},[e]);return w(()=>Va(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{y()})}),e.registerCommand(Ct,()=>(e.getEditorState().read(()=>{y()}),!1),fi)),[e,y]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:a,fontName:c,fontSize:d,fontColor:p,align:g,isLink:v}}})();return Lz.jsx(Gj.Provider,{value:t,children:e})},Vj=({children:e})=>Lz.jsx(Yj,{children:Lz.jsx(Hj,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),Jj=({anchorEl:e,children:t})=>{const n=Boolean(e);return Lz.jsx(O_,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>Lz.jsx(_w,{...e,children:Lz.jsx(Ty,{className:"tekPopperMenu",children:t})})})},qj=ty(nx)({fontSize:12,textOverflow:"ellipsis"}),Xj=({startIcon:e,value:t,onClick:n,compact:r})=>Lz.jsx(eS,{title:t,PopperProps:{disablePortal:!0},children:Lz.jsx(aw,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:Lz.jsx(fz,{height:12}),children:r?e:Lz.jsx(qj,{children:t})})}),Qj=ty(Ww,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),Zj=[{text:"AlignLeft",align:"left",icon:()=>Lz.jsx(uz,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>Lz.jsx(cz,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>Lz.jsx(dz,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],eD=({compact:e=!1})=>{const[t]=Tu(),[n,r]=S(null),{blockFormat:o}=b(Gj),i=jI(),s=x(()=>Zj.find(e=>e.align===o.align)||Zj[0],[o.align]),a=M(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),l=M(()=>{r(null)},[]),c=M(e=>{r(null),t.dispatchCommand(an,e),t.focus()},[t]);return Lz.jsx(cw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Lz.jsxs("div",{children:[Lz.jsx(Xj,{value:i(s.text),startIcon:s.icon(),onClick:a,compact:e,"data-testid":"editor-toolbar-align-btn"}),Lz.jsx(Jj,{anchorEl:n,children:Lz.jsx(Dw,{dense:!0,children:Zj.map(e=>Lz.jsxs(Qj,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{c(e.align)},children:[Lz.jsx(Rw,{children:e.icon()}),Lz.jsx(qj,{children:i(e.text)})]},e.align))})})]})})},tD=({text:e,icon:t})=>Lz.jsxs(Lz.Fragment,{children:[Lz.jsx(Rw,{children:t}),Lz.jsx(qj,{children:e})]}),nD=({text:e,icon:t})=>Lz.jsxs(Lz.Fragment,{children:[Lz.jsx(Rw,{children:Lz.jsx(qj,{fontWeight:"bold",children:t})}),Lz.jsx(qj,{children:e})]}),rD=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],oD=(e,t,n)=>({icon:Lz.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),iD=({compact:e=!1})=>{const[t]=Tu(),{blockFormat:n}=b(Gj),[r,o]=S(null),i=jI(),s=x(()=>{let e={icon:Lz.jsx(mz,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=oD("Heading1","H1",i)),"h2"===n.blockType&&(e=oD("Heading2","H2",i)),"h3"===n.blockType&&(e=oD("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=Lz.jsx(hz,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=Lz.jsx(pz,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=Lz.jsx(gz,{height:12}),e.text=i("OrderedList")),e},[n,i]),a=M(()=>{o(null)},[]),l=M(e=>{t.update(()=>{const n=co();Ur(n)?(sl(n,{"font-size":null}),function(e,t,n=al){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=io(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=Xs(e.getNode(),Ds),s=Xs(t.getNode(),Ds);Xo(n)&&o.set(n.getKey(),n),Xo(s)&&o.set(s.getKey(),s)}for(const t of e.getNodes())if(Xo(t)&&Ds(t))o.set(t.getKey(),t);else if(null===r){const e=Xs(t,Ds);Xo(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(co())&&qi(i)}(n,e)):Yr(n)&&n.getNodes().forEach(t=>{const n=t.getParent();n?.replace(e(),!0)}),t.focus()})},[t]),c=M((e,n)=>{o(null),t.update(()=>{const r=co();Ur(r)&&r.getNodes().forEach(r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)})}),t.focus()},[t]),u=M(e=>{o(null),l(()=>_d(e))},[l]),d=M(()=>{o(null),l(()=>ui())},[l]),f=M(()=>{o(null),l(()=>gd())},[l]);return Lz.jsx(cw,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Lz.jsxs("div",{children:[Lz.jsx(Xj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:s.text,startIcon:s.icon,compact:e}),Lz.jsx(Jj,{anchorEl:r,children:Lz.jsxs(Dw,{dense:!0,children:[Lz.jsx(Ww,{dense:!0,onClick:d,children:Lz.jsx(tD,{text:i("Paragraph"),icon:Lz.jsx(mz,{height:12})})}),Lz.jsx(Ww,{dense:!0,onClick:f,children:Lz.jsx(tD,{text:i("Quote"),icon:Lz.jsx(hz,{height:12})})}),rD.map(e=>Lz.jsx(Ww,{dense:!0,onClick:()=>{u(e.tag)},children:Lz.jsx(nD,{text:i(e.text),icon:e.icon})},e.text)),Lz.jsx(gw,{}),Lz.jsx(Ww,{dense:!0,onClick:()=>{c("bullet",_u)},children:Lz.jsx(tD,{text:i("UnorderedList"),icon:Lz.jsx(pz,{height:12})})}),Lz.jsx(Ww,{dense:!0,onClick:()=>{c("number",wu)},children:Lz.jsx(tD,{text:i("OrderedList"),icon:Lz.jsx(gz,{height:12})})})]})})]})})},sD=ty(aw,{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})),aD=(e,t)=>{const n=n=>{const r=jI();return Lz.jsx(eS,{title:r(t),PopperProps:{disablePortal:!0},children:Lz.jsx("div",{children:Lz.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},lD=({format:e,icon:t,...n})=>{const r=b(Gj),[o]=Tu(),i=M(()=>{o.dispatchCommand(Bt,e)},[o,e]);return Lz.jsx(sD,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},cD=aD(lD,"Bold"),uD=()=>Lz.jsx(cD,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:Lz.jsx(vz,{height:12})}),dD=kt("APPLY_TEXT_FORMAT"),fD=kt("CLEAR_TEXT_FORMAT"),pD=aD(sD,"ClearFormat"),hD=()=>{const[e]=Tu(),t=M(()=>{e.update(()=>{const t=co();if(Ur(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(Ir(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),yl(i).setFormat(""));const s=i.getParent();(wd(s)||md(s))&&s.replace(ui(),!0)}else(wd(t)||md(t))&&t.replace(ui(),!0)}catch{}})}e.dispatchCommand(fD,void 0)})},[e]);return Lz.jsx(pD,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:Lz.jsx(bz,{height:12})})};var gD,mD={},vD=function(){if(gD)return mD;gD=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,s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,a=Math.floor,l=Math.round,c=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,s,c,u,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,u=(n=(n%=360)<0?0:n>360?360:n)/60,d=(c=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(u%2-1)),f=[],u=Math.floor(u)){case 0:f=[c,d,0];break;case 1:f=[d,c,0];break;case 2:f=[0,c,d];break;case 3:f=[0,d,c];break;case 4:f=[d,0,c];break;case 5:f=[c,0,d];break;default:f=[0,0,0]}p=i-.5*c,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,u=(n=(n%=360)<0?0:n>360?360:n)/60,d=(c=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(u%2-1)),f=[],u=Math.floor(u)){case 0:f=[c,d,0];break;case 1:f=[d,c,0];break;case 2:f=[0,c,d];break;case 3:f=[0,d,c];break;case 4:f=[d,0,c];break;case 5:f=[c,0,d];break;default:f=[0,0,0]}p=i-.5*c,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]),s=parseFloat(h[5]),u=(n=(n%=360)<0?0:n>360?360:n)/60,d=(c=(s=(s/=100)<0?0:s>1?1:s)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(u%2-1)),f=[],u=Math.floor(u)){case 0:f=[c,d,0];break;case 1:f=[d,c,0];break;case 2:f=[0,c,d];break;case 3:f=[0,d,c];break;case 4:f=[d,0,c];break;case 5:f=[c,0,d];break;default:f=[0,0,0]}p=s-c,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=a(m),this._g=a(v),this._b=a(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]),s=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(s,")")}},{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=a(this._r+(e._r-this._r)*t),r=a(this._g+(e._g-this._g)*t),o=a(this._b+(e._b-this._b)*t),i=a(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"==Az(o=function(e){if("object"!=Az(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Az(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 c.toRGB=function(e){if(e instanceof c)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=c.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},c.toRGBA=function(e,t){if(e instanceof c)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=c.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,")")},c.toHex=function(e){var t,n,r;return e instanceof c?(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=c.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))},c.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new c(e));var s=e._r/255,a=e._g/255,l=e._b/255,u=Math.max(s,a,l),d=Math.min(s,a,l);if(r=t?.21*s+.72*a+.07*l:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case s:i=(a-l)/o+(a<l?6:0);break;case a:i=(l-s)/o+2;break;case l:i=(s-a)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},c.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new c(e));var s=e._r/255,a=e._g/255,l=e._b/255,u=e._a,d=Math.max(s,a,l),f=Math.min(s,a,l);if(r=t?.21*s+.72*a+.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 s:i=(a-l)/o+(a<l?6:0);break;case a:i=(l-s)/o+2;break;case l:i=(s-a)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(u,")")},c.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new c(e));var o=e._r/255,i=e._g/255,s=e._b/255,a=Math.max(o,i,s),l=Math.min(o,i,s),u=a;if(a===l)t=0,r=0;else{switch(t=0===(n=a-l)?0:n/u,a){case o:r=(i-s)/n+(i<s?6:0);break;case i:r=(s-o)/n+2;break;case s:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}},c.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof c)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},c.blend=function(e,t,n){var r=(16711680&(e=c.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=c.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},c.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,s=e._a+(t._a-e._a)*n;return new c(r,o,i,s)},c.isCSSColor=function(a){return!(arguments.length>1||"string"!=typeof a)&&(t.test(a)||n.test(a)||r.test(a)||o.test(a)||i.test(a)||s.test(a)||e[a.toLowerCase()])},c.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},c.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)}},c.isDark=function(){var e={getLuminance:c.prototype.getLuminance,isInvalid:c.prototype.isInvalid};return c.prototype.init.apply(e,[].slice.call(arguments)),c.prototype.isDark.call(e)},c.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},mD.Color=c,mD}();const bD=ty(mw)(({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"})),yD=ty(X_)(({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"})),xD=({palette:e,color:t,onColorChange:n})=>{const[r,o]=S(t),i=Db(),s=M(e=>{o(e),n(e)},[n]);return Lz.jsx(bD,{children:e.map(e=>Lz.jsx(yD,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),s(e)},children:e===r?Lz.jsx(nS,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function _D(e,t,n){return Math.max(t,Math.min(n,e))}const wD=(e,t)=>{const n=new vD.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"}},SD=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),s=_D(e.clientX-n,0,o)/o*100,a=100-_D(e.clientY-r,0,i)/i*100,l=new vD.Color(t).toHSVComponents();return l.s=s,l.v=a,l},kD=ty(mw)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),CD=ty(X_)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),ED=ty(X_)(({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 );"})),TD=ty(X_)({width:"16px",height:"16px",borderRadius:"2px"}),AD=ty(mw)({flexDirection:"row",alignItems:"center"}),LD=ty(X_)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),MD=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=S(n),s=k(n),[a,l]=S(!0),[c,u]=S(o),d=k(null),f=k(null),p=k({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,g]=S({left:"0",top:"0"});w(()=>{r.some(e=>e===n)||l(!1)},[n,r]);const m=M(e=>{if(!d.current&&(d.current=e,e)){const t=wD(o,e);g(t)}},[o]),v=x(()=>`hsl(${new vD.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),b=M(t=>{t.preventDefault(),t.stopPropagation();const n=SD(t,s.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new vD.Color(r);if(s.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(s.current),u(s.current),i(s.current)},[e]),y=M(t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=_D(e.clientX-r,0,n),i=Math.round(o/n*360),s=o/n*100,a=new vD.Color(t).toHSVComponents();return a.h=i,a.s=s,a})(t,s.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new vD.Color(r);s.current=o.toHex(),e(s.current),u(s.current),i(s.current)},[e]),_=M(t=>{s.current=t,e(s.current),i(s.current),u(t)},[e]),C=M(t=>{if(u(t.target.value),!new vD.Color(t.target.value).isInvalid()&&(s.current=t.target.value,i(t.target.value),t.target.value.startsWith("#")&&7===t.target.value.length?e(s.current,{tag:"collaboration"}):t.target.value.startsWith("#")||e(s.current,{tag:"collaboration"}),d.current)){const e=wD(s.current,d.current);g(e)}},[e]);return Lz.jsxs(kD,{children:[a?Lz.jsx(xD,{palette:r,color:o,onColorChange:_}):Lz.jsxs(Lz.Fragment,{children:[Lz.jsx(CD,{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,a=SD(e,s.current),l=`hsv(${a.h},${a.s},${a.v})`,c=new vD.Color(l).toHex();f.current.style.left=`${r}px`,f.current.style.top=`${o}px`,f.current.style.backgroundColor=c,s.current=c,u(s.current),i(c)}},onMouseUp:t=>{t.preventDefault(),t.stopPropagation(),p.current.on?e(s.current):b(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1},children:Lz.jsx(LD,{ref:f,style:{...h,backgroundColor:o}})}),Lz.jsx(ED,{onClick:y})]}),Lz.jsxs(AD,{children:[Lz.jsx(TD,{style:{backgroundColor:o}}),Lz.jsx(V_,{style:{flex:1},value:c,onChange:C}),Lz.jsx(qy,{onClick:()=>{l(!a)},children:Lz.jsx(yz,{height:12})}),Lz.jsx(qy,{onClick:t,children:Lz.jsx(nS,{height:12})})]})]})},RD=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],ND=aD(aw,"Color"),OD=({colorPalette:e=RD})=>{const[t]=Tu(),[n,r]=S(null),{blockFormat:o}=b(Gj),i=M((e,n)=>{t.update(()=>{const t=co();Ur(t)&&sl(t,{color:e})},n),t.dispatchCommand(dD,{styleKey:"color",styleValue:e})},[t]),s=()=>{r(null)};return Lz.jsx(cw,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Lz.jsxs("div",{children:[Lz.jsx(ND,{variant:"text",size:"small",endIcon:Lz.jsx(fz,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:Lz.jsx(X_,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),Lz.jsx(Jj,{anchorEl:n,children:Lz.jsx(MD,{onClick:i,onClose:s,startColor:o.fontColor,palette:e})})]})})};aD(sD,"Export");const PD=({compact:e=!1,fonts:t=Wj})=>{const[n]=Tu(),[r,o]=S(null),{blockFormat:i}=b(Gj),s=x(()=>t,[t]),a=M(e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update(()=>{const e=co();Ur(e)&&sl(e,{"font-family":t||Wj[0]}),n.dispatchCommand(dD,{styleKey:"fontFamily",styleValue:t||Wj[0]}),n.focus()})},[n]);return Lz.jsx(cw,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Lz.jsxs("div",{children:[Lz.jsx(Xj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:Lz.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),Lz.jsx(Jj,{anchorEl:r,children:Lz.jsx(Dw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:s.map(e=>Lz.jsx(Qj,{"data-font-name":e,onClick:a,active:e===i.fontName,children:Lz.jsx(qj,{children:e})},e))})})]})})},ID=e=>parseInt(e,10),zD=({fontSize:e,onSelected:t})=>{const[n,r]=S(""),o=M(e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)},[]),i=M(()=>{const e=ID(n);e&&t(`${e}px`)},[t,n]),s=M(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return Lz.jsxs(mw,{direction:"row",children:[Lz.jsx(V_,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:s}),Lz.jsx(qy,{disabled:!ID(n),onClick:i,children:Lz.jsx(nS,{height:12})})]})},jD=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],DD=({compact:e=!1})=>{const[t]=Tu(),[n,r]=S(null),{blockFormat:o}=b(Gj),i=M(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),s=M(()=>{r(null)},[]),a=M(e=>{r(null),e.length>0&&t.update(()=>{const n=co();Ur(n)&&sl(n,{"font-size":e}),t.dispatchCommand(dD,{styleKey:"fontSize",styleValue:e})})},[t]),l=M(e=>{const{fontSize:t}=e.currentTarget.dataset;a(t||"16px")},[a]),c=M(e=>{a(e)},[a]);return Lz.jsx(cw,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Lz.jsxs("div",{children:[Lz.jsx(Xj,{startIcon:e?Lz.jsx(qj,{children:o.fontSize}):void 0,value:o.fontSize,onClick:i,compact:e}),Lz.jsxs(Jj,{anchorEl:n,children:[Lz.jsx(zD,{fontSize:o.fontSize,onSelected:c}),Lz.jsx(gw,{}),Lz.jsx(Dw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:jD.map(e=>Lz.jsx(Ww,{"data-font-size":e,onClick:l,children:Lz.jsx(qj,{children:e})},e))})]})]})})},FD=aD(sD,"InsertTable"),BD=()=>{const[e]=Tu(),t=M(()=>{e.dispatchCommand(vj,void 0)},[e]);return Lz.jsx(FD,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:Lz.jsx(xz,{height:12})})},$D=aD(lD,"Italic"),HD=()=>Lz.jsx($D,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:Lz.jsx(_z,{height:12})}),WD=aD(sD,"InsertHyperlink"),KD=()=>{const[e]=Tu(),{blockFormat:t}=b(Gj),n=M(()=>{t.isLink?e.dispatchCommand(Ac,null):e.dispatchCommand(Ac,jz("https://"))},[e,t.isLink]);return Lz.jsx(WD,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:Lz.jsx(wz,{height:12})})};aD(sD,"Toggle");const UD=aD(lD,"Underline"),GD=()=>Lz.jsx(UD,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:Lz.jsx(Sz,{height:12})}),YD=()=>Lz.jsx(gw,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var VD={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=="}},JD={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)"}},qD={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=="}},XD={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=="}},QD={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=="}},ZD={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=="}},eF={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=="}},tF={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=="}},nF={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=="}},rF={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=="}},oF={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=="}},iF={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=="}},sF={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 aF={de:VD,es:qD,en:JD,fr:XD,it:QD,ja:ZD,ko:eF,nl:tF,pl:nF,pt:rF,ru:oF,sv:iF,tr:sF,"de-de":VD,"es-es":qD,"en-us":JD,"fr-fr":XD,"it-it":QD,"ja-jp":ZD,"ko-kr":eF,"nl-nl":tF,"pl-pl":nF,"pt-br":rF,"ru-ru":oF,"sv-se":iF,"tr-tr":sF,"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 lF(e,t){return e.getEditorState().read(()=>{const e=Hi(t);return null!==e&&e.isSelected()})}function cF(e){const[t]=Tu(),[n,r]=S(()=>lF(t,e));w(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(lF(t,e))});return()=>{n=!1,o()}},[t,e]);return[n,M(n=>{t.update(()=>{let t=co();Yr(t)||(t=so(),qi(t)),Yr(t)&&(n?t.add(e):t.delete(e))})},[t,e]),M(()=>{t.update(()=>{const e=co();Yr(e)&&e.clear()})},[t])]}var uF,dF={};var fF=function(){if(uF)return dF;uF=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,s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,a=Math.floor,l=Math.round,c=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,s,c,u,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,u=(n=(n%=360)<0?0:n>360?360:n)/60,d=(c=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(u%2-1)),f=[],u=Math.floor(u)){case 0:f=[c,d,0];break;case 1:f=[d,c,0];break;case 2:f=[0,c,d];break;case 3:f=[0,d,c];break;case 4:f=[d,0,c];break;case 5:f=[c,0,d];break;default:f=[0,0,0]}p=i-.5*c,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,u=(n=(n%=360)<0?0:n>360?360:n)/60,d=(c=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(u%2-1)),f=[],u=Math.floor(u)){case 0:f=[c,d,0];break;case 1:f=[d,c,0];break;case 2:f=[0,c,d];break;case 3:f=[0,d,c];break;case 4:f=[d,0,c];break;case 5:f=[c,0,d];break;default:f=[0,0,0]}p=i-.5*c,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]),s=parseFloat(h[5]),u=(n=(n%=360)<0?0:n>360?360:n)/60,d=(c=(s=(s/=100)<0?0:s>1?1:s)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(u%2-1)),f=[],u=Math.floor(u)){case 0:f=[c,d,0];break;case 1:f=[d,c,0];break;case 2:f=[0,c,d];break;case 3:f=[0,d,c];break;case 4:f=[d,0,c];break;case 5:f=[c,0,d];break;default:f=[0,0,0]}p=s-c,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=a(m),this._g=a(v),this._b=a(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]),s=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(s,")")}},{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=a(this._r+(e._r-this._r)*t),r=a(this._g+(e._g-this._g)*t),o=a(this._b+(e._b-this._b)*t),i=a(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 c.toRGB=function(e){if(e instanceof c)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=c.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},c.toRGBA=function(e,t){if(e instanceof c)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=c.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,")")},c.toHex=function(e){var t,n,r;return e instanceof c?(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=c.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))},c.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new c(e));var s=e._r/255,a=e._g/255,l=e._b/255,u=Math.max(s,a,l),d=Math.min(s,a,l);if(r=t?.21*s+.72*a+.07*l:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case s:i=(a-l)/o+(a<l?6:0);break;case a:i=(l-s)/o+2;break;case l:i=(s-a)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},c.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new c(e));var s=e._r/255,a=e._g/255,l=e._b/255,u=e._a,d=Math.max(s,a,l),f=Math.min(s,a,l);if(r=t?.21*s+.72*a+.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 s:i=(a-l)/o+(a<l?6:0);break;case a:i=(l-s)/o+2;break;case l:i=(s-a)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(u,")")},c.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new c(e));var o=e._r/255,i=e._g/255,s=e._b/255,a=Math.max(o,i,s),l=Math.min(o,i,s),u=a;if(a===l)t=0,r=0;else{switch(t=0===(n=a-l)?0:n/u,a){case o:r=(i-s)/n+(i<s?6:0);break;case i:r=(s-o)/n+2;break;case s:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}},c.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof c)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},c.blend=function(e,t,n){var r=(16711680&(e=c.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=c.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},c.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,s=e._a+(t._a-e._a)*n;return new c(r,o,i,s)},c.isCSSColor=function(a){return!(arguments.length>1||"string"!=typeof a)&&(t.test(a)||n.test(a)||r.test(a)||o.test(a)||i.test(a)||s.test(a)||e[a.toLowerCase()])},c.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},c.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)}},c.isDark=function(){var e={getLuminance:c.prototype.getLuminance,isInvalid:c.prototype.isInvalid};return c.prototype.init.apply(e,[].slice.call(arguments)),c.prototype.isDark.call(e)},c.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},dF.Color=c,dF}();function pF(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function hF(e,t){return t?.getNodes().some(t=>t.getKey()===e)}var gF,mF;var vF=function(){if(mF)return gF;mF=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},gF=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,s,a;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),s=1;s<o;s++)i[s-1]=arguments[s];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),s=1;s<o;s++)i[s-1]=arguments[s];for(o=(a=r.slice()).length,s=0;s<o;s++)a[s].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,s;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(s=i;s-- >0;)if(r[s]===n||r[s].listener&&r[s].listener===n){o=s;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},gF}();let bF=[];const yF=new vF.EventEmitter;yF.isSelected=e=>{const t=e?.qDef?.cId;return-1!==bF.indexOf(t)},yF.setSelected=e=>{bF!==e&&(bF=e,yF.emit("change"))};function xF({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=b(H),[s]=Tu(),a=Rd(),[l,c,u]=cF(n),d=k(null),[f,p]=S(t);w(()=>{p(t)},[t]);const h=x(()=>{let e;return l?e="rgba(0, 152, 69, 0.25)":a&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}},[l,a]),g=x(()=>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 fF.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);w(()=>Va(s.registerCommand(Bt,e=>(s.update(()=>{const t=e,r=co();if(Ur(r)&&l){if(hF(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&&Yr(r)&&hF(n,r)&&d.current){const e=pF(d.current.style);p(((e,t)=>{const n={};switch(e){case"bold":t.fontWeight?"bold"===t.fontWeight&&(n.fontWeight=""):n.fontWeight="bold";break;case"italic":n.fontStyle="italic"===t.fontStyle?"":"italic";break;case"underline":n.textDecoration="underline"===t.textDecoration?"":"underline"}return{...t,...n}})(t,e))}}),!1),3),s.registerCommand(dD,e=>(s.getEditorState().read(()=>{if("color"===e.styleKey&&g.expressionColor)return!1;if(d.current&&l){const t=co();if(hF(n,t)){const t=pF(d.current?.style);t[e.styleKey]=e.styleValue,p(t)}}}),!1),fi),s.registerCommand(fD,()=>(s.getEditorState().read(()=>{if(d.current&&l){const e=co();if(hF(n,e)){const e={};g.expressionColor&&(e.color=g.expressionColor),p(e)}}}),!1),fi),s.registerCommand(Ct,()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&s.update(()=>{const e=[],t=co(),n=t?.getNodes();n?.forEach(t=>{t?.getExpressionId&&e.push(t?.getExpressionId())}),yF.setSelected(e)}),!1),1)),[s,c,u,l,n,g]),w(()=>{a||(u(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&yF.setSelected([]))},[a,u,i]),w(()=>{s.update(()=>{!function(e,t){const n=Hi(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,f)})},[f,s,n]);const m=M(e=>{if(a){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),u(),c(!0)):r<t.width&&s.update(()=>{const e=co();if(Yr(e)){const t=Hi(n);t?.selectPrevious(),e.delete(n)}})}},[a,u,c,s,n]);return Nu.jsx("span",{style:{...h,...f,color:g.expressionColor?g.expressionColor:f.color},onClick:m,ref:d,id:e,children:g.value})}const _F="qlik.expression.node";class wF extends Tj{static getType(){return _F}static clone(e){return new wF(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new wF(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:_F,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 Nu.jsx(xF,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function SF(e){return e instanceof wF}const kF="ImageNode",CF=kt("INSERT_IMAGE_COMMAND"),EF=()=>{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()},TF=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===kF)r.id||(r.id=EF()),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)TF(e,t,n);return{imageIds:t,newPropertyImages:n}},AF=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function LF(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=TF(n.root);o=e.imageIds,e.newPropertyImages.forEach(e=>{r.push(e)})}const i=[],s=new Set;return r.forEach(e=>{o.has(e.id)&&!s.has(e.id)&&(s.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 MF(){const[e]=Tu(),t=Rd(),{edit:n,model:r,emitter:o,flags:i}=b(H);return w(()=>{const t=()=>{r&&LF(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]),w(()=>{e.setEditable(n)},[n]),w(()=>{t&&e.focus()},[t,e]),null}class RF{constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=Hi(e);if(SF(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 NF(){const{layout:e,emitter:t}=b(H),[n]=Tu(),r=k(new RF),o=Rd();return w(()=>{const e=n.registerMutationListener(wF,e=>{n.getEditorState().read(()=>{for(const[t,n]of e)r.current.update(t,n)})});return()=>{e()}},[n]),w(()=>{e&&n.update(()=>{const t=e,n=t.qHyperCube?.qMeasureInfo;if(n){const e=ps(wF),t=((e,t)=>{const n=e.reduce((e,n)=>{const r=t.find(e=>e.cId===n.getExpressionId());return r||e.push(n),e},[]);return n})(e,n);if(t.forEach(e=>{e.remove()}),n.length>e.length){const e=co(),{cId:t}=n[n.length-1],r=new wF(t,{}),o=Pr(" "),i=Pr("");Ur(e)?e.insertNodes([i,r,o]):xl(r)}}})},[e,n]),w(()=>n.registerCommand(Wt,e=>("Backspace"===e.key&&n.update(()=>{const e=co();Yr(e)&&e.getNodes().forEach(e=>{SF(e)&&(e.selectPrevious(),e.remove())})}),!1),1),[n]),w(()=>{if(!o){const e=r.current.sync();e.length>0&&t?.emit("onNodeDestroyed",e)}},[o,t]),null}const OF=/"/g;function PF(){const{model:e,emitter:t}=b(H),[n]=Tu(),r=k(new Map);return w(()=>{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(OF,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function IF(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 zF,jF="top",DF="top-right",FF="right",BF="bottom-right",$F="bottom",HF="bottom-left",WF="left",KF="top-left";IF(IF(IF(IF(IF(IF(IF(IF(IF(IF(zF={},"equal-equal",[jF,$F]),"equal-higher",[$F,BF]),"equal-lower",[jF,DF]),"equal-void",[jF,$F]),"higher-equal",[WF,HF,jF,DF]),"higher-higher-acute",[$F,HF,WF,DF]),"higher-higher-obtuse",[$F,jF]),"higher-lower-negative",[jF,DF,FF]),"higher-lower-positive",[$F,HF,WF]),"higher-void",[jF]),IF(IF(IF(IF(IF(IF(IF(IF(IF(IF(zF,"lower-equal",[jF]),"lower-higher-negative",[jF,KF]),"lower-higher-positive",[BF]),"lower-lower-acute",[jF,KF,WF,DF,FF]),"lower-lower-obtuse",[jF,$F]),"lower-void",[jF]),"void-equal",[jF]),"void-higher",[jF,$F]),"void-lower",[jF,$F,WF]),"void-void",[jF]),IF(zF,"unclassified",[jF,$F,FF,WF,DF,BF,HF,KF]);var UF,GF,YF=["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"],VF=["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 JF=function(){if(GF)return UF;GF=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)},s=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},a=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return UF=function e(){var t,n,r,l,c,u,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=a(d,n),d!==(l=a(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},s(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&s(d,{name:n,newValue:l}));return d},UF}();function qF(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function XF(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function QF(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(JF);var ZF=1/.7,eB="\\s*([+-]?\\d+)\\s*",tB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rB=/^#([0-9a-f]{3,8})$/,oB=new RegExp(`^rgb\\(${eB},${eB},${eB}\\)$`),iB=new RegExp(`^rgb\\(${nB},${nB},${nB}\\)$`),sB=new RegExp(`^rgba\\(${eB},${eB},${eB},${tB}\\)$`),aB=new RegExp(`^rgba\\(${nB},${nB},${nB},${tB}\\)$`),lB=new RegExp(`^hsl\\(${tB},${nB},${nB}\\)$`),cB=new RegExp(`^hsla\\(${tB},${nB},${nB},${tB}\\)$`),uB={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 dB(){return this.rgb().formatHex()}function fB(){return this.rgb().formatRgb()}function pB(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?hB(t):3===n?new bB(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?gB(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?gB(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=oB.exec(e))?new bB(t[1],t[2],t[3],1):(t=iB.exec(e))?new bB(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=sB.exec(e))?gB(t[1],t[2],t[3],t[4]):(t=aB.exec(e))?gB(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=lB.exec(e))?kB(t[1],t[2]/100,t[3]/100,1):(t=cB.exec(e))?kB(t[1],t[2]/100,t[3]/100,t[4]):uB.hasOwnProperty(e)?hB(uB[e]):"transparent"===e?new bB(NaN,NaN,NaN,0):null}function hB(e){return new bB(e>>16&255,e>>8&255,255&e,1)}function gB(e,t,n,r){return r<=0&&(e=t=n=NaN),new bB(e,t,n,r)}function mB(e){return e instanceof QF||(e=pB(e)),e?new bB((e=e.rgb()).r,e.g,e.b,e.opacity):new bB}function vB(e,t,n,r){return 1===arguments.length?mB(e):new bB(e,t,n,null==r?1:r)}function bB(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function yB(){return`#${SB(this.r)}${SB(this.g)}${SB(this.b)}`}function xB(){const e=_B(this.opacity);return`${1===e?"rgb(":"rgba("}${wB(this.r)}, ${wB(this.g)}, ${wB(this.b)}${1===e?")":`, ${e})`}`}function _B(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wB(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function SB(e){return((e=wB(e))<16?"0":"")+e.toString(16)}function kB(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new EB(e,t,n,r)}function CB(e){if(e instanceof EB)return new EB(e.h,e.s,e.l,e.opacity);if(e instanceof QF||(e=pB(e)),!e)return new EB;if(e instanceof EB)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),s=NaN,a=i-o,l=(i+o)/2;return a?(s=t===i?(n-r)/a+6*(n<r):n===i?(r-t)/a+2:(t-n)/a+4,a/=l<.5?i+o:2-i-o,s*=60):a=l>0&&l<1?0:s,new EB(s,a,l,e.opacity)}function EB(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function TB(e){return(e=(e||0)%360)<0?e+360:e}function AB(e){return Math.max(0,Math.min(1,e||0))}function LB(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}qF(QF,pB,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:dB,formatHex:dB,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return CB(this).formatHsl()},formatRgb:fB,toString:fB}),qF(bB,vB,XF(QF,{brighter(e){return e=null==e?ZF:Math.pow(ZF,e),new bB(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new bB(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bB(wB(this.r),wB(this.g),wB(this.b),_B(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:yB,formatHex:yB,formatHex8:function(){return`#${SB(this.r)}${SB(this.g)}${SB(this.b)}${SB(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:xB,toString:xB})),qF(EB,function(e,t,n,r){return 1===arguments.length?CB(e):new EB(e,t,n,null==r?1:r)},XF(QF,{brighter(e){return e=null==e?ZF:Math.pow(ZF,e),new EB(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new EB(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 bB(LB(e>=240?e-240:e+120,o,r),LB(e,o,r),LB(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new EB(TB(this.h),AB(this.s),AB(this.l),_B(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=_B(this.opacity);return`${1===e?"hsl(":"hsla("}${TB(this.h)}, ${100*AB(this.s)}%, ${100*AB(this.l)}%${1===e?")":`, ${e})`}`}}));const MB=Math.PI/180,RB=180/Math.PI,NB=4/29,OB=6/29,PB=3*OB*OB;function IB(e){if(e instanceof zB)return new zB(e.l,e.a,e.b,e.opacity);if(e instanceof $B)return HB(e);e instanceof bB||(e=mB(e));var t,n,r=BB(e.r),o=BB(e.g),i=BB(e.b),s=jB((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=s:(t=jB((.4360747*r+.3850649*o+.1430804*i)/.96422),n=jB((.0139322*r+.0971045*o+.7141733*i)/.82521)),new zB(116*s-16,500*(t-s),200*(s-n),e.opacity)}function zB(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function jB(e){return e>.008856451679035631?Math.pow(e,1/3):e/PB+NB}function DB(e){return e>OB?e*e*e:PB*(e-NB)}function FB(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function BB(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $B(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function HB(e){if(isNaN(e.h))return new zB(e.l,0,0,e.opacity);var t=e.h*MB;return new zB(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}qF(zB,function(e,t,n,r){return 1===arguments.length?IB(e):new zB(e,t,n,null==r?1:r)},XF(QF,{brighter(e){return new zB(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new zB(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 bB(FB(3.1338561*(t=.96422*DB(t))-1.6168667*(e=1*DB(e))-.4906146*(n=.82521*DB(n))),FB(-.9787684*t+1.9161415*e+.033454*n),FB(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),qF($B,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof $B)return new $B(e.h,e.c,e.l,e.opacity);if(e instanceof zB||(e=IB(e)),0===e.a&&0===e.b)return new $B(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*RB;return new $B(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new $B(e,t,n,null==r?1:r)},XF(QF,{brighter(e){return new $B(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new $B(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return HB(this).rgb()}}));var WB=e=>()=>e;function KB(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):WB(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?KB: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):WB(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=vB(e)).r,(t=vB(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),s=KB(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=s(t),e+""}}return r.gamma=e,r}(1);var UB,GB="center",YB="bottom";function VB(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 JB(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=XB)):void 0===t&&(t=qB);for(var n,r,o,i,s,a=new e$(e),l=[a];n=l.pop();)if((o=t(n.data))&&(s=(o=Array.from(o)).length))for(n.children=o,i=s-1;i>=0;--i)l.push(r=o[i]=new e$(o[i])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(ZB)}function qB(e){return e.children}function XB(e){return Array.isArray(e)?e[1]:null}function QB(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ZB(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function e$(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:GB,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:GB,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:GB,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:GB},{key:"DataRangeIncludingZero",alignment:YB},{key:"LimitedData",alignment:YB},{key:"NegativeOrZeroValues",alignment:YB}].reduce(function(e,t){return e[t.key]=t,e},{}),e$.prototype=JB.prototype={constructor:e$,count:function(){return this.eachAfter(VB)},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,s=[i],a=[],l=-1;i=s.pop();)if(a.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)s.push(n[r]);for(;i=a.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],s=-1;o=i.pop();)if(e.call(t,o,++s,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 JB(this).eachBefore(QB)},[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)}},UB=function(e){
99
+ */function hM(){if(uM)return XE;uM=1,Object.defineProperty(XE,"__esModule",{value:!0}),XE.default=function(t){return(0,e.createStyles)(t)};var e=pM;return XE}var gM,mM,vM={},bM={};function yM(){if(gM)return bM;gM=1;var e=db();Object.defineProperty(bM,"__esModule",{value:!0}),bM.default=void 0;var t=(0,e(YE()).default)();return bM.default=t,bM}function xM(){if(mM)return vM;mM=1;var e=db();Object.defineProperty(vM,"__esModule",{value:!0}),vM.default=void 0;var t=e(Hb()),n=pM,r=e(yM());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 vM.default=o,vM}var _M,wM,kM={},SM={};function CM(){if(_M)return SM;_M=1;var e=db();Object.defineProperty(SM,"__esModule",{value:!0}),SM.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},SM.getUnit=n,SM.toUnitless=r,SM.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var s=r(t);if("px"!==i)if("em"===i)s=r(t)*r(e);else if("rem"===i)return s=r(t)*r(e),t;var a=s;if("px"!==o)if("em"===o)a=s/r(e);else{if("rem"!==o)return t;a=s/r(e)}return parseFloat(a.toFixed(5))+o}},SM.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},SM.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},SM.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,s=void 0===i?"rem":i,a=e.breakpoints,l=void 0===a?[600,960,1280]:a,c=e.transform,u=void 0===c?null:c,d=(0,t.default)({},n,"".concat(r).concat(s)),f=(o-r)/l[l.length-1];return l.forEach(function(e){var o=r+f*e;null!==u&&(o=u(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(s))}),d};var t=e(cS());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return SM}function EM(){if(wM)return kM;wM=1;var e=db();Object.defineProperty(kM,"__esModule",{value:!0}),kM.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,s=void 0===i?["sm","md","lg"]:i,a=o.disableAlign,l=void 0!==a&&a,c=o.factor,u=void 0===c?2:c,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=s.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 s=i,a=1+(s-1)/u,c=o.lineHeight;if(!(0,r.isUnitless)(c)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(c)||(c=parseFloat(g(c,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:c,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:a,max:s,unit:"rem",breakpoints:m,transform:d}))}}),p};var t=e(Hb()),n=Qk,r=CM();return kM}var TM,AM={};function LM(){if(TM)return AM;TM=1;var e=db();Object.defineProperty(AM,"__esModule",{value:!0}),AM.default=void 0;var t=e(Hb()),n=pM,r=e(yM()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return AM.default=o,AM}var MM,RM={};function NM(){if(MM)return RM;MM=1;var e=db();Object.defineProperty(RM,"__esModule",{value:!0}),RM.default=function(){return(0,t.useTheme)()||n.default};var t=pM;e(y);var n=e(yM());return RM}var OM,PM={};function IM(){if(OM)return PM;OM=1;var e=db();Object.defineProperty(PM,"__esModule",{value:!0}),PM.default=void 0;var t=e(Hb()),n=pM,r=e(yM());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return PM.default=o,PM}var zM,jM,DM={};function FM(){if(zM)return DM;zM=1;var e=db();Object.defineProperty(DM,"__esModule",{value:!0}),DM.default=void 0;var t=pM,n=e(yM()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return DM.default=r,DM}function BM(){return jM||(jM=1,function(e){var t=db(),n=(Lk||(Lk=1,function(e){var t=Ok().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,s=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,a={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return a;if(r=n?s:i){if(r.has(e))return r.get(e);r.set(e,a)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(a,l,o):a[l]=e[l]);return a},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Rk)),Rk.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 s.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return u.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=Zk();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(YE()),s=t(qE()),a=t(hM()),l=t(xM()),c=t(EM()),u=t(LM()),d=HE();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(NM()),p=t(IM()),h=t(FM()),g=pM}(Mk)),Mk}var $M=BM();$M.alpha(ok.GREYSCALE_0,.05),$M.alpha(ok.GREEN_PALE,.5),$M.alpha(ok.BLUE_PALE,.5),$M.alpha(ok.GREEN_PALE,.5),$M.alpha(ok.BLUE_PALE,.5),$M.alpha(ok.GREEN_PALE,.5),$M.alpha(ok.BLUE_PALE,.5),$M.alpha(ok.GREEN_PALE,.5),$M.alpha(ok.BLUE_PALE,.5),$M.alpha(ok.GREEN_PALE,.5),$M.alpha(ok.BLUE_PALE,.5);const HM=E((e,t)=>Nu.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:Nu.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"})}));var WM=Object.defineProperty,KM=(e,t)=>{for(var n in t)WM(e,n,{get:t[n],enumerable:!0})},UM=(e,t,n)=>((e,t,n)=>t in e?WM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),GM={};KM(GM,{af:()=>ZM,ak:()=>eR,am:()=>tR,an:()=>nR,ar:()=>rR,ars:()=>oR,as:()=>iR,asa:()=>sR,ast:()=>aR,az:()=>lR,bal:()=>cR,be:()=>uR,bem:()=>dR,bez:()=>fR,bg:()=>pR,bho:()=>hR,blo:()=>gR,bm:()=>mR,bn:()=>vR,bo:()=>bR,br:()=>yR,brx:()=>xR,bs:()=>_R,ca:()=>wR,ce:()=>kR,ceb:()=>SR,cgg:()=>CR,chr:()=>ER,ckb:()=>TR,cs:()=>AR,cy:()=>LR,da:()=>MR,de:()=>RR,doi:()=>NR,dsb:()=>OR,dv:()=>PR,dz:()=>IR,ee:()=>zR,el:()=>jR,en:()=>DR,eo:()=>FR,es:()=>BR,et:()=>$R,eu:()=>HR,fa:()=>WR,ff:()=>KR,fi:()=>UR,fil:()=>GR,fo:()=>YR,fr:()=>VR,fur:()=>JR,fy:()=>qR,ga:()=>XR,gd:()=>QR,gl:()=>ZR,gsw:()=>eN,gu:()=>tN,guw:()=>nN,gv:()=>rN,ha:()=>oN,haw:()=>iN,he:()=>sN,hi:()=>aN,hnj:()=>lN,hr:()=>cN,hsb:()=>uN,hu:()=>dN,hy:()=>fN,ia:()=>pN,id:()=>hN,ig:()=>gN,ii:()=>mN,io:()=>vN,is:()=>bN,it:()=>yN,iu:()=>xN,ja:()=>_N,jbo:()=>wN,jgo:()=>kN,jmc:()=>SN,jv:()=>CN,jw:()=>EN,ka:()=>TN,kab:()=>AN,kaj:()=>LN,kcg:()=>MN,kde:()=>RN,kea:()=>NN,kk:()=>ON,kkj:()=>PN,kl:()=>IN,km:()=>zN,kn:()=>jN,ko:()=>DN,ks:()=>FN,ksb:()=>BN,ksh:()=>$N,ku:()=>HN,kw:()=>WN,ky:()=>KN,lag:()=>UN,lb:()=>GN,lg:()=>YN,lij:()=>VN,lkt:()=>JN,ln:()=>qN,lo:()=>XN,lt:()=>QN,lv:()=>ZN,mas:()=>eO,mg:()=>tO,mgo:()=>nO,mk:()=>rO,ml:()=>oO,mn:()=>iO,mo:()=>sO,mr:()=>aO,ms:()=>lO,mt:()=>cO,my:()=>uO,nah:()=>dO,naq:()=>fO,nb:()=>pO,nd:()=>hO,ne:()=>gO,nl:()=>mO,nn:()=>vO,nnh:()=>bO,no:()=>yO,nqo:()=>xO,nr:()=>_O,nso:()=>wO,ny:()=>kO,nyn:()=>SO,om:()=>CO,or:()=>EO,os:()=>TO,osa:()=>AO,pa:()=>LO,pap:()=>MO,pcm:()=>RO,pl:()=>NO,prg:()=>OO,ps:()=>PO,pt:()=>IO,pt_PT:()=>zO,rm:()=>jO,ro:()=>DO,rof:()=>FO,ru:()=>BO,rwk:()=>$O,sah:()=>HO,saq:()=>WO,sat:()=>KO,sc:()=>UO,scn:()=>GO,sd:()=>YO,sdh:()=>VO,se:()=>JO,seh:()=>qO,ses:()=>XO,sg:()=>QO,sh:()=>ZO,shi:()=>eP,si:()=>tP,sk:()=>nP,sl:()=>rP,sma:()=>oP,smi:()=>iP,smj:()=>sP,smn:()=>aP,sms:()=>lP,sn:()=>cP,so:()=>uP,sq:()=>dP,sr:()=>fP,ss:()=>pP,ssy:()=>hP,st:()=>gP,su:()=>mP,sv:()=>vP,sw:()=>bP,syr:()=>yP,ta:()=>xP,te:()=>_P,teo:()=>wP,th:()=>kP,ti:()=>SP,tig:()=>CP,tk:()=>EP,tl:()=>TP,tn:()=>AP,to:()=>LP,tpi:()=>MP,tr:()=>RP,ts:()=>NP,tzm:()=>OP,ug:()=>PP,uk:()=>IP,und:()=>zP,ur:()=>jP,uz:()=>DP,ve:()=>FP,vec:()=>BP,vi:()=>$P,vo:()=>HP,vun:()=>WP,wa:()=>KP,wae:()=>UP,wo:()=>GP,xh:()=>YP,xog:()=>VP,yi:()=>JP,yo:()=>qP,yue:()=>XP,zh:()=>QP,zu:()=>ZP});var YM=(e,t)=>t?"other":1==e?"one":"other",VM=(e,t)=>t?"other":0==e||1==e?"one":"other",JM=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",qM=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},XM=(e,t)=>"other",QM=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",ZM=YM,eR=VM,tR=JM,nR=YM,rR=(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"},oR=(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"},iR=(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",sR=YM,aR=qM,lR=(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"},cR=(e,t)=>1==e?"one":"other",uR=(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"},dR=YM,fR=YM,pR=YM,hR=VM,gR=(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"},mR=XM,vR=(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",bR=XM,yR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),s=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==s?"many":"other"},xR=YM,_R=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=r.slice(-2),l=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==s&&11!=a||1==l&&11!=c?"one":i&&s>=2&&s<=4&&(a<12||a>14)||l>=2&&l<=4&&(c<12||c>14)?"few":"other"},wR=(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"},kR=YM,SR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=s&&6!=s&&9!=s||!i&&4!=a&&6!=a&&9!=a?"one":"other"},CR=YM,ER=YM,TR=YM,AR=(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"},LR=(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",MR=(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"},RR=qM,NR=JM,OR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-2),a=o.slice(-2);return t?"other":i&&1==s||1==a?"one":i&&2==s||2==a?"two":i&&(3==s||4==s)||3==a||4==a?"few":"other"},PR=YM,IR=XM,zR=YM,jR=YM,DR=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),s=o&&n[0].slice(-2);return t?1==i&&11!=s?"one":2==i&&12!=s?"two":3==i&&13!=s?"few":"other":1==e&&r?"one":"other"},FR=YM,BR=(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"},$R=qM,HR=YM,WR=JM,KR=(e,t)=>t?"other":e>=0&&e<2?"one":"other",UR=qM,GR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=s&&6!=s&&9!=s||!i&&4!=a&&6!=a&&9!=a?"one":"other"},YR=YM,VR=(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"},JR=YM,qR=qM,XR=(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"},QR=(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"},ZR=qM,eN=YM,tN=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",nN=VM,rN=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=s&&20!=s&&40!=s&&60!=s&&80!=s?o?"other":"many":"few"},oN=YM,iN=YM,sN=(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"},aN=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",lN=XM,cN=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=r.slice(-2),l=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==s&&11!=a||1==l&&11!=c?"one":i&&s>=2&&s<=4&&(a<12||a>14)||l>=2&&l<=4&&(c<12||c>14)?"few":"other"},uN=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-2),a=o.slice(-2);return t?"other":i&&1==s||1==a?"one":i&&2==s||2==a?"two":i&&(3==s||4==s)||3==a||4==a?"few":"other"},dN=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",fN=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",pN=qM,hN=XM,gN=XM,mN=XM,vN=qM,bN=(e,t)=>{const n=String(e).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==e,s=r.slice(-1),a=r.slice(-2);return t?"other":i&&1==s&&11!=a||o%10==1&&o%100!=11?"one":"other"},yN=(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"},xN=QM,_N=XM,wN=XM,kN=YM,SN=YM,CN=XM,EN=XM,TN=(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"},AN=(e,t)=>t?"other":e>=0&&e<2?"one":"other",LN=YM,MN=YM,RN=XM,NN=XM,ON=(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"},PN=YM,IN=YM,zN=XM,jN=JM,DN=XM,FN=YM,BN=YM,$N=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",HN=YM,WN=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),s=r&&n[0].slice(-5),a=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&&(s>=1e3&&s<=2e4||4e4==s||6e4==s||8e4==s)||0!=e&&1e5==a?"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"},KN=YM,UN=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},GN=YM,YN=YM,VN=(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"},JN=XM,qN=VM,XN=(e,t)=>t&&1==e?"one":"other",QN=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),s=o&&n[0].slice(-2);return t?"other":1==i&&(s<11||s>19)?"one":i>=2&&i<=9&&(s<11||s>19)?"few":0!=r?"many":"other"},ZN=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,s=i&&n[0].slice(-1),a=i&&n[0].slice(-2),l=r.slice(-2),c=r.slice(-1);return t?"other":i&&0==s||a>=11&&a<=19||2==o&&l>=11&&l<=19?"zero":1==s&&11!=a||2==o&&1==c&&11!=l||2!=o&&1==c?"one":"other"},eO=YM,tO=VM,nO=YM,rO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=r.slice(-2),l=o.slice(-1),c=o.slice(-2);return t?1==s&&11!=a?"one":2==s&&12!=a?"two":7!=s&&8!=s||17==a||18==a?"other":"many":i&&1==s&&11!=a||1==l&&11!=c?"one":"other"},oO=YM,iO=YM,sO=(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"},aO=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",lO=(e,t)=>t&&1==e?"one":"other",cO=(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"},uO=XM,dO=YM,fO=QM,pO=YM,hO=YM,gO=(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"},mO=qM,vO=YM,bO=YM,yO=YM,xO=XM,_O=YM,wO=VM,kO=YM,SO=YM,CO=YM,EO=(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"},TO=YM,AO=XM,LO=VM,MO=YM,RO=JM,NO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(s<12||s>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&s>=12&&s<=14?"many":"other"},OO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,s=i&&n[0].slice(-1),a=i&&n[0].slice(-2),l=r.slice(-2),c=r.slice(-1);return t?"other":i&&0==s||a>=11&&a<=19||2==o&&l>=11&&l<=19?"zero":1==s&&11!=a||2==o&&1==c&&11!=l||2!=o&&1==c?"one":"other"},PO=YM,IO=(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"},zO=(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"},jO=YM,DO=(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"},FO=YM,BO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return t?"other":o&&1==i&&11!=s?"one":o&&i>=2&&i<=4&&(s<12||s>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&s>=11&&s<=14?"many":"other"},$O=YM,HO=XM,WO=YM,KO=QM,UO=(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"},GO=(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"},YO=YM,VO=YM,JO=QM,qO=YM,XO=XM,QO=XM,ZO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=r.slice(-2),l=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==s&&11!=a||1==l&&11!=c?"one":i&&s>=2&&s<=4&&(a<12||a>14)||l>=2&&l<=4&&(c<12||c>14)?"few":"other"},eP=(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"},tP=(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"},nP=(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"},rP=(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"},oP=QM,iP=QM,sP=QM,aP=QM,lP=QM,cP=YM,uP=YM,dP=(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"},fP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=r.slice(-2),l=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==s&&11!=a||1==l&&11!=c?"one":i&&s>=2&&s<=4&&(a<12||a>14)||l>=2&&l<=4&&(c<12||c>14)?"few":"other"},pP=YM,hP=YM,gP=YM,mP=XM,vP=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),s=o&&n[0].slice(-2);return t?1!=i&&2!=i||11==s||12==s?"other":"one":1==e&&r?"one":"other"},bP=qM,yP=YM,xP=YM,_P=YM,wP=YM,kP=XM,SP=VM,CP=YM,EP=(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"},TP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=s&&6!=s&&9!=s||!i&&4!=a&&6!=a&&9!=a?"one":"other"},AP=YM,LP=XM,MP=XM,RP=YM,NP=YM,OP=(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"},PP=YM,IP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,s=i&&n[0].slice(-1),a=i&&n[0].slice(-2),l=r.slice(-1),c=r.slice(-2);return t?3==s&&13!=a?"few":"other":o&&1==l&&11!=c?"one":o&&l>=2&&l<=4&&(c<12||c>14)?"few":o&&0==l||o&&l>=5&&l<=9||o&&c>=11&&c<=14?"many":"other"},zP=XM,jP=qM,DP=YM,FP=YM,BP=(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"},$P=(e,t)=>t&&1==e?"one":"other",HP=YM,WP=YM,KP=VM,UP=YM,GP=XM,YP=YM,VP=YM,JP=qM,qP=XM,XP=XM,QP=XM,ZP=JM,eI={},tI=Array.prototype.slice,nI=function(e){return("0"+e.toString()).substr(-2)},rI=function(e){var t=typeof e;return"function"===t||"object"===t},oI=function(e){return"function"===typeof e},iI=function(e){return null!=e},sI=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},aI=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},lI=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},cI=function(e){return!0===e||!1===e},uI=function(e){return null===e},dI=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))))},fI=function(e,t){return oI(e)?e(t):e},pI=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],aI(r)||lI(r)||cI(r)||sI(r)||uI(r)?e[n]=r:(null==e[n]&&(e[n]={}),pI(e[n],r)));return e},hI={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"]},gI={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},mI={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},vI={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},bI=[null,"kb","mb","gb","tb"],yI={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};eI.reset=function(){var e;for(e in yI)this[e]=yI[e]},eI.initializeOptions=function(){var e;for(e in yI)iI(this[e])||(this[e]=yI[e])},eI.initializeOptions(),eI.locales={},eI.locales.get=function(e){var t=this[e]||this[eI.locale]||this.default;return oI(t)&&(t=t(e)),!1===sI(t)&&(t=[t]),t},eI.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&eI.locale&&t.push(eI.locale),eI.fallbacks&&eI.defaultLocale&&t.push(eI.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),eI.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},eI.pluralization={},eI.pluralization.get=function(e){return this[e]||this[eI.locale]||this.default},eI.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},eI.currentLocale=function(){return this.locale||this.defaultLocale},eI.isSet=iI,eI.lookup=function(e,t){t=t||{};var n,r,o,i,s=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);s.length;)if(n=s.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(iI(t.defaultValue))return fI(t.defaultValue,e)},eI.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&rI(n))for(;i.length;)if(r=i.shift(),iI(n[r])){o=n[r];break}return o},eI.pluralizationLookup=function(e,t,n){n=n||{};var r,o,i,s,a=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);a.length;)if(r=a.shift(),o=t.split(n.separator||this.defaultSeparator),i=this.translations[r]){for(;o.length&&(i=i[o.shift()],rI(i));)0===o.length&&(s=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=s)break}return null==s&&iI(n.defaultValue)&&(s=rI(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:s,translations:i}},eI.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:hI.meridian},eI.prepareOptions=function(){for(var e,t=tI.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(iI(n[r])||(n[r]=e[r]));return n},eI.createTranslationOptions=function(e,t){var n=[{scope:e}];return iI(t.defaults)&&(n=n.concat(t.defaults)),iI(t.defaultValue)&&n.push({message:t.defaultValue}),n},eI.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(iI(t.scope)?(o=t.scope,n=this.lookup(o,i)):iI(t.message)&&(n=fI(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):sI(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):rI(n)&&iI(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},eI.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,s=e.match(this.placeholder);if(!s)return e;for(;s.length;)o=(n=s.shift()).replace(this.placeholder,"$1"),r=iI(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,"$")},eI.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))},eI.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]'},eI.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},eI.nullPlaceholder=function(){return eI.missingPlaceholder.apply(eI,arguments)},eI.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),gI);var n,r,o=e<0,i=function(e,t){return dI("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString(),s=i.split("."),a=[],l=t.format||"%n",c=o?"-":"";for(e=s[0],n=s[1];e.length>0;)a.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return r=a.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",c)},eI.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),mI),this.toNumber(e,t)},eI.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)}},eI.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},eI.strftime=function(e,t,n){n=this.lookup("date",n);var r=eI.meridian();if(n||(n={}),n=this.prepareOptions(n,hI),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(),s=e.getFullYear(),a=e.getMonth()+1,l=e.getHours(),c=l,u=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 c>12?c-=12:0===c&&(c=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[a])).replace("%B",n.month_names[a])).replace("%d",nI(i))).replace("%e",i)).replace("%-d",i)).replace("%H",nI(l))).replace("%-H",l)).replace("%k",l)).replace("%I",nI(c))).replace("%-I",c)).replace("%l",c)).replace("%m",nI(a))).replace("%-m",a)).replace("%M",nI(f))).replace("%-M",f)).replace("%p",r[u])).replace("%P",r[u].toLowerCase())).replace("%S",nI(d))).replace("%-S",d)).replace("%w",o)).replace("%y",nI(s))).replace("%-y",nI(s).replace(/^0+/,""))).replace("%Y",s)).replace("%z",m)).replace("%Z",m)},eI.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},eI.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),vI),this.toNumber(e,t)},eI.toHumanSize=function(e,t){for(var n,r,o,i=e,s=0;i>=1024&&s<4;)i/=1024,s+=1;return 0===s?(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."+bI[s],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)},eI.getFullScope=function(e,t){return t=t||{},sI(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},eI.extend=function(e,t){return void 0===e&&void 0===t?{}:pI(e,t)},eI.t=eI.translate.bind(eI),eI.l=eI.localize.bind(eI),eI.p=eI.pluralize.bind(eI);KM({},{DEFAULT_LANGUAGE:()=>_I,DEFAULT_LANGUAGE_SHORT:()=>wI,flattenParams:()=>RI,flattenTranslationsJSON:()=>CI,format:()=>NI,formatWithKeys:()=>OI,getLongLanguageDesc:()=>MI,getShortLanguageDesc:()=>LI,parseLangFromUrl:()=>EI,resolveLocale:()=>AI,updateLangAttribute:()=>PI});var xI=[{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"}],_I="en-US",wI="en",kI=["zh-cn","zh-tw","qps-ploc"],SI=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),CI=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),SI(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=SI(r)&&r.value;return o&&(t[n]=o),t},{}):{}),EI=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},TI=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(kI.includes(e.toLocaleLowerCase()))return xI.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return xI.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},AI=(...e)=>{for(const t of e){const e=TI(t);if(e)return e.short}},LI=e=>{const t=TI(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${wI}'`),wI)},MI=e=>{const t=TI(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${_I}'`),_I)},RI=e=>Array.isArray(e[0])?e[0]:e,NI=(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)},OI=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),PI=e=>{const t=LI(e);document.documentElement.setAttribute("lang",t)},II=class e{static configure(t,n=_I){e.translations=t,e.language=MI(n),e.languageShort=LI(n),PI(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=eI,eI.missingTranslation=e=>e,eI.defaultSeparator=null,eI.locale=e.language,eI.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];eI.pluralization[e.language]=e=>{try{const t=GM[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=OI(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))}}};UM(II,"translations",{}),UM(II,"translationsPlurals",{}),UM(II,"language"),UM(II,"languageShort"),UM(II,"onTranslationsChangeListeners",[]),UM(II,"i18nProvider"),UM(II,"get",(e,...t)=>{var n;const r=RI(t);let o=null!=(n=II.translations[e])?n:e;return r.length>0&&(o=NI(o,...r)),o});var zI=II;var jI=function(){const[e,t]=k(0);return w(()=>{const n=zI.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),zI.get},DI=zI;function FI({defaultSelection:e}){const[t]=Tu();return w(()=>{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 BI(e,t=!0){if(e)return!1;let n=Vi().getTextContent();return t&&(n=n.trim()),""===n}function $I(e){return()=>function(e){if(!BI(e,!1))return!1;const t=Vi().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(ei(n))return!1;if(Xo(n)){if(!di(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!Ir(t[e]))return!1}}return!0}(e)}const HI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_:w;function WI({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:a,ariaLabel:l,ariaLabelledBy:c,ariaMultiline:u,ariaOwns:d,ariaRequired:f,autoCapitalize:p,className:h,id:g,role:m="textbox",spellCheck:v=!0,style:b,tabIndex:y,"data-testid":_,...w},S){const[C,E]=k(e.isEditable()),T=M(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),A=x(()=>function(...e){return t=>{for(const n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(S,T),[T,S]);return HI(()=>(E(e.isEditable()),e.registerEditableListener(e=>{E(e)})),[e]),Nu.jsx("div",{"aria-activedescendant":C?t:void 0,"aria-autocomplete":C?n:"none","aria-controls":C?r:void 0,"aria-describedby":o,...null!=i?{"aria-errormessage":i}:{},"aria-expanded":C&&"combobox"===m?!!s:void 0,...null!=a?{"aria-invalid":a}:{},"aria-label":l,"aria-labelledby":c,"aria-multiline":u,"aria-owns":C?d:void 0,"aria-readonly":!C||void 0,"aria-required":f,autoCapitalize:p,className:h,contentEditable:C,"data-testid":_,id:g,ref:A,role:m,spellCheck:v,style:b,tabIndex:y,...w})}const KI=E(WI);function UI(e){return e.getEditorState().read($I(e.isComposing()))}const GI=E(YI);function YI(e,t){const{placeholder:n,...r}=e,[o]=Tu();return Nu.jsxs(Nu.Fragment,{children:[Nu.jsx(KI,{editor:o,...r,ref:t}),null!=n&&Nu.jsx(VI,{editor:o,content:n})]})}function VI({content:e,editor:t}){const n=function(e){const[t,n]=k(()=>UI(e));return HI(()=>{function t(){const t=UI(e);n(t)}return t(),Va(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=k(t.isEditable());if(_(()=>(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:Nu.jsx("div",{"aria-hidden":!0,children:i})}const JI=v(null),qI={didCatch:!1,error:null};class XI extends R{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=qI}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(qI))}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(qI))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let s=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)s=t(e);else if(n)s=N(n,e);else{if(void 0===r)throw i;s=r}}return N(JI.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}}function QI({children:e,onError:t}){return Nu.jsx(XI,{fallback:Nu.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const ZI={name:"@lexical/react/ReactProvider"};function ez(e){throw new Error(e)}const tz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_:w;function nz({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=k(()=>e.getDecorators());return tz(()=>e.registerDecoratorListener(e=>{g(()=>{r(e)})}),[e]),w(()=>{r(e.getDecorators())},[e]),x(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const s=o[i],a=Nu.jsx(t,{onError:t=>e._onError(t),children:Nu.jsx(O,{fallback:null,children:n[s]})}),l=e.getElementByKey(s);null!==l&&r.push(m(a,l,s))}return r},[t,n,e])}(e,t)}function rz({editor:e,ErrorBoundary:t}){return function(e){const t=hc.maybeFromEditor(e);if(t&&t.hasExtensionByName(ZI.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&ez(`LexicalBuilder: @lexical/react legacy text plugins conflict with the ${e} extension. Remove the legacy <RichTextPlugin/> or <PlainTextPlugin/> component.`);return!0}return!1}(e)?null:Nu.jsx(nz,{editor:e,ErrorBoundary:t})}function oz(e){return e.getEditorState().read($I(e.isComposing()))}function iz(e){tz(()=>Va(Ed(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,s,a]=t;e.update(()=>{const e=co();if(Ur(e)){const t=e.anchor;let l=t.getNode(),c=0,u=0;if(Ir(l)&&r>=0&&o>=0&&(c=r,u=r+o,e.setTextNodeRange(l,c,l,u)),c===u&&""===i||(e.insertRawText(i),l=t.getNode()),Ir(l)){c=s,u=s+a;const t=l.getTextContentSize();c=c>t?t:c,u=u>t?t:u,e.setTextNodeRange(l,c,l,u)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(e)),[e])}function sz({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=Tu();return iz(r),Nu.jsxs(Nu.Fragment,{children:[e,Nu.jsx(az,{content:t}),Nu.jsx(rz,{editor:r,ErrorBoundary:n})]})}function az({content:e}){const[t]=Tu(),n=function(e){const[t,n]=k(()=>oz(e));return tz(()=>{function t(){const t=oz(e);n(t)}return t(),Va(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=Rd();return n?"function"==typeof e?e(r):e:null}const lz=E((e,t)=>Nu.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:Nu.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"})})),cz=E((e,t)=>Nu.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:[Nu.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),Nu.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]})),uz=E((e,t)=>Nu.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:Nu.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})})),dz=E((e,t)=>Nu.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:Nu.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})})),fz=E((e,t)=>Nu.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:Nu.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})})),pz=E((e,t)=>Nu.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:Nu.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"})})),hz=E((e,t)=>Nu.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:Nu.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"})})),gz=E((e,t)=>Nu.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:Nu.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"})})),mz=E((e,t)=>Nu.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:Nu.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"})})),vz=E((e,t)=>Nu.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:Nu.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"})})),bz=E((e,t)=>Nu.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:Nu.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"})})),yz=E((e,t)=>Nu.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:Nu.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"})})),xz=E((e,t)=>Nu.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:Nu.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"})})),_z=E((e,t)=>Nu.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:Nu.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"})})),wz=E((e,t)=>Nu.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:Nu.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"})})),kz=E((e,t)=>Nu.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:Nu.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"})}));var Sz,Cz,Ez={exports:{}},Tz={};function Az(e){return Az="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},Az(e)}var Lz=(Cz||(Cz=1,Ez.exports=function(){if(Sz)return Tz;Sz=1;var e=y,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 s(e,n,s){var a,l={},c=null,u=null;for(a in void 0!==s&&(c=""+s),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,a)&&!i.hasOwnProperty(a)&&(l[a]=n[a]);if(e&&e.defaultProps)for(a in n=e.defaultProps)void 0===l[a]&&(l[a]=n[a]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return Tz.Fragment=n,Tz.jsx=s,Tz.jsxs=s,Tz}()),Ez.exports);const Mz=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,Rz=[e=>{const t=Mz.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 Nz(){return Lz.jsx(Ad,{matchers:Rz})}const Oz=()=>{const[e]=Tu(),t=Rd(),n=M(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 w(()=>Va(e.registerMutationListener(bc,e=>{n(e)}),e.registerMutationListener(Cc,e=>{n(e)}),e.registerCommand(Tt,t=>(t.metaKey&&t.target&&e.getEditorState().read(()=>{const e=co();let t;if(Ur(e)&&(t=e.focus.getNode().getParent()),Yr(e)&&(t=e.getNodes()[0]),Tc(t)||Sc(t)){const e=t.getURL();setTimeout(()=>{const t=window.open(e,"_blank");t?.focus()},0)}}),!1),fi)),[e,n]),null};function Pz(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?rl(n)?r:o:rl(t)?r:o}const Iz=new Set(["http:","https:","mailto:","sms:","tel:"]),zz=e=>{const t=e;return t.password="",t.username="",t};function jz(e){try{const t=new URL(e);return Iz.has(t.protocol)?{url:zz(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const Dz=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function Fz(e){return"https://"===e||Dz.test(e)}const Bz=ty(mw)(({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)})),$z=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=S(null),[s,a]=k(t);w(()=>{a(t)},[t]);const l=M(()=>{n(s),window.open(jz(s).url,"_blank"),r()},[s,r,n]),c=M(e=>{e.preventDefault(),e.stopPropagation(),n(s)},[s,n]),u=M(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(s))},[s,n]),d=M(e=>{e.preventDefault(),a(e.currentTarget.value)},[]);return Lz.jsx(O_,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>Lz.jsx(_w,{...e,children:Lz.jsx(Ty,{className:"tekPopperMenu",children:Lz.jsxs(Bz,{direction:"row",children:[Lz.jsx(V_,{ref:i,placeholder:t,margin:"dense",size:"small",value:s,onChange:d,onKeyDown:u}),Lz.jsx(qy,{onClick:l,children:Lz.jsx(tk,{})}),Lz.jsx(qy,{onClick:c,children:Lz.jsx(nk,{})})]})})})})},Hz=()=>{const[e]=Tu(),t=Rd(),[n,r]=k(null),[o,i]=k(""),s=S(!1),a=M(()=>{if(s.current)return s.current=!1,!1;const t=co();if(Ur(t)){const n=Pz(t),o=n.getParent();if(Tc(o)||Tc(n))return r(null),i(""),!1;let s;if(Sc(o)&&(s=o),Sc(n)&&(s=n),Sc(s)){const t=e.getElementByKey(s.getKey());return i(s.getURL()),r(t),!0}r(null),i("")}return!1},[e]),l=M(t=>{s.current=!0,e.update(()=>{e.dispatchCommand(Ac,jz(t))},{onUpdate:()=>{r(null)}})},[e]),c=M(()=>{r(null)},[]);return w(()=>Va(e.registerCommand(Ct,()=>a(),1),e.registerCommand(Tt,()=>a(),1)),[e,a]),t?Lz.jsx($z,{anchorEl:n,link:o,onChanged:l,onOpened:c}):null};function Wz(){return Lz.jsx(rk,{validateUrl:Fz})}!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 Kz=({children:e})=>Lz.jsx(ry,{theme:Tk(),children:e}),Uz={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:[vd,hd,pu,lu,bc,Cc],onError:e=>{console.log(e)}},Gz=({children:e,initialConfig:t,flags:n})=>Lz.jsx(Kz,{children:Lz.jsx("div",{className:"tek__editor__Wrapper",children:Lz.jsx(zu,{initialConfig:t||Uz,children:Lz.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,Lz.jsx(Hu,{}),Lz.jsx(Wu,{}),Lz.jsx(Wz,{}),Lz.jsx(Nz,{}),Lz.jsx(Hz,{}),Lz.jsx(Oz,{}),Lz.jsx($u,{})]})})})});let Yz=class e extends qo{__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 Vz=e=>new Yz(e),Jz=e=>e instanceof Yz;let qz=class e extends qo{__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 Xz(e){return e instanceof qz}let Qz=class e extends qo{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 Zz(e){return e instanceof Qz}const ej=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),Jz(t))return t;return null},tj=e=>{let t=e;for(;null!==t;){if(Xz(t))return t;t=t?.getParent()}return null},nj=(e,t)=>{const n=tj(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},rj=e=>{const t=e?.getChildAtIndex(2);return t},oj=e=>{const t=e.getParent();if(Zz(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},ij=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,sj=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},aj=e=>e?e.getChildren().filter(e=>Zz(e)):[],lj=e=>{let t=!1;return aj(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(ui()),t=!0})}),t},cj=e=>{const t=co();if(Ur(t)||Yr(t)){const n=t.getNodes().filter(e=>Jz(e));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some(e=>Xz(e)),o=tj(n[0]),i=aj(o),s=i[0]?.getChildren();if(s.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if(Ur(t)){const e=t.focus.getNode();if(Xz(e))return lj(e)}return n.forEach(e=>{e.clear(),e.append(ui())}),(()=>{const e=co();let t=!1;if(Ur(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=tj(n);!o&&Xz(r)&&(o=r),Xz(o)&&(t=lj(o))}return t})()}if(Ur(t)){const e=t.focus.getNode();if(Xz(e))return lj(e)}}return!1},uj=e=>{if(e){const t=tj(e);if(Xz(t)){const n=e.getParent(),r=aj(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}},dj=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),Jz(t))return t;return null},fj=e=>{const t=[];return aj(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},pj=(e,t)=>{fj(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},hj=St("UPDATE_COL_WIDTHS_COMMAND"),gj=St("BEGIN_COL_RESIZE"),mj=St("END_COL_RESIZE"),vj=St("INSERT_TEK_TABLE_COMMAND"),bj=({colKey:e,startX:t,onMouseDown:n})=>{const r=M(t=>{n(t,e)},[e,n]);return Lz.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},yj=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},xj=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,_j=({nodeKey:e,colWidths:t})=>{const[n]=Tu(),r=Rd(),[o,i]=k(null),s=S(null),a=S(null),l=S(null),c=S(null),u=M(t=>{const n=Hi(e);if(n){const e=n.getParent();if(Xz(e)){const n=rj(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=M(e=>{if(s.current){const{clientX:t,col:n,tableElement:r,curColWidth:o,resizer:i,left:a,nxt:u,parentDomNode:d,currentTableWidth:f}=s.current,p=e.clientX-t,h=sj(a+p,r);if(u){const e=o+p;if(e<60)return;const t=sj(e,r),a=s.current.nxtColWidth-p,d=sj(a,r);if(a<60)return;n.setAttribute("width",t),u.setAttribute("width",d),i.style.left=h,l.current&&(l.current.innerText=t),c.current&&(c.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 s=Math.max(r.cells[e].offsetWidth,60);60===s&&o++,i+=s;const a=s/t,l=Math.min(100*a,100);n.push(`${l.toFixed(2)}%`)}return{clampedWidths:n,fullyClamped:o===r.cells.length,clampedTableWidth:i}})(r,e),s=sj(e,d),a=sj(o,d);r.style.width=!n||p>0?s:a,r.querySelectorAll(":scope > colgroup col").forEach((e,n)=>{e.setAttribute("width",t[n])}),n||l.current&&(l.current.innerText=s)}}},[]),f=M(()=>{if(document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",f),s.current){s.current.resizer.style.opacity="",l.current=null,c.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(sj(o,e))}return n})(s.current.tableElement);s.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)})(s.current.resizer),n.dispatchCommand(mj,void 0)}s.current=null,a.current=null,n.update(()=>{const t=Hi(e),r=nj(t,n),s=t?.getParent();if(r&&s){const t=r.querySelectorAll(":scope > colgroup col"),a=[];t.forEach(e=>{a.push(e.getAttribute("width")||"0")}),s.setWidth(r.style.width);let l=0;if(o){const e=o.map((e,t)=>{const n={...e};return l+=parseFloat(a[t]),n.startX=l,n});i(e)}n.dispatchCommand(hj,{colWidths:a,nodeKey:e})}})},[d,n,e,o]),p=M((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read(()=>{const r=Hi(t),o=nj(r,n);if(Jz(r)){const t=oj(r);if(-1!==t&&o){const r=o.querySelectorAll(":scope > colgroup col"),i=r[t],a=r.length>t+1?r[t+1]:null,u=ij(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,h=ij(a,o),g=o.parentElement,m=.01*parseFloat(o.style.width),v=(g?.offsetWidth||0)*m,b=((e,t,n)=>{const r=yj("tek__leftResizerIndicator","leftGripper");r.innerText=xj(e);let o=null;return t?(o=yj("tek__rightResizerIndicator","rightGripper"),o.innerText=xj(t)):r.innerText=n.style.width,{left:r,right:o}})(i,a,o);l.current=b.left,c.current=b.right,d.appendChild(b.left),b.right&&d.appendChild(b.right),d.style.opacity="1",s.current={resizer:d,curColWidth:u,col:i,tableElement:o,clientX:e.clientX,left:p,nxt:a,nxtColWidth:h,parentDomNode:g,currentTableWidth:v},n.dispatchCommand(gj,void 0)}}})},[n,d,f]);return w(()=>{n.getEditorState().read(()=>{u(t)})},[u,n,t]),Lz.jsx(Lz.Fragment,{children:o&&r?o.map(e=>Lz.jsx(bj,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},wj="TEK_TABLE_RESIZE_NODE";let kj=class e extends Zo{__colWidths;static getType(){return wj}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:wj,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 Lz.jsx(_j,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const Sj=e=>e instanceof kj,Cj=({nodeKey:e,colWidths:t})=>{const[n]=Tu(),[r,o]=k(t);return w(()=>{n.getEditorState().read(()=>{const t=Hi(e),n=t?.getParent();if(Xz(n)){const e=n.getResizeNode();if(Sj(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),Lz.jsx(Lz.Fragment,{children:r.map((t,n)=>Lz.jsx("col",{span:1,width:t},`${e}.${n}`))})};class Ej extends Zo{__colWidths;static getType(){return"TekColGroupNode"}static clone(e){return new Ej(e.__colWidths,e.__key)}static importJSON(e){return new Ej(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 Lz.jsx(Cj,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class Tj extends Zo{__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 Aj=[qz,Yz,Qz,Ej,kj],Lj=(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()},Mj=()=>{const e=co();if(Ur(e)){const t=e.anchor.getNode(),n=ej(t);if(n){const e=oj(n),t=tj(n),r=aj(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach(t=>{t.getChildAtIndex(e)?.remove()}),Lj(o,t)}}},Rj=()=>{const e=co();if(Ur(e)){const t=e.anchor.getNode(),n=ej(t),r=tj(n);if(r&&3===r.getChildren().length)return qi(null),void r.remove();if(n){const{row:e}=uj(n);qi(null),e?.remove()}}},Nj=()=>{const e=co();if(Ur(e)){const t=e.anchor.getNode(),n=tj(t),r=rj(n);if(Zz(r)&&n){const e=r.getChildren().length,t=new Qz;for(let r=0;r<e;r++){const e=Vz(n?.__hasBorders);e.append(ui()),t.append(e)}n?.append(t)}}},Oj=()=>{const e=co();if(Ur(e)){const t=e.anchor.getNode(),n=tj(t);if(Xz(n)){const e=aj(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=Vz(n.__hasBorders);o.append(ui()),e[r].append(o),t=o}return Lj(r,n),t}}return null},Pj=ty(qy)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),Ij=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=Tu(),[o,i]=k(null),s=jI(),a=Boolean(o),l=M((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{t()},{onUpdate:()=>{i(null),n()}})},[r]),c=M(e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)},[n]),u=M(()=>{i(null)},[]),d=M(e=>{l(e,Nj,t)},[l,t]),f=M(e=>{l(e,Oj,t)},[l,t]),p=M(t=>{l(t,Rj,e)},[l,e]),h=M(t=>{l(t,Mj,e)},[l,e]),g=M(()=>{r.update(()=>{(()=>{const e=co();if(Ur(e)){const t=e.anchor.getNode(),n=tj(t);Xz(n)&&(n.selectPrevious(),n.remove())}})()},{onUpdate:()=>{i(null),e()}})},[r,e]),m=M(e=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{(()=>{const e=co();if(Ur(e)){const t=e.anchor.getNode(),n=tj(t);n&&(n.toggleBorders(),fj(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return w(()=>Va(r.registerCommand(Ct,()=>(i(null),!1),4)),[r]),Lz.jsx(cw,{onClickAway:u,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Lz.jsxs("div",{children:[Lz.jsx(Pj,{size:"small",onClick:c,children:Lz.jsx(HM,{height:12})}),Lz.jsx(O_,{sx:{zIndex:2},open:a,anchorEl:o,placement:"auto-end",children:Lz.jsx(Ty,{id:"tekTableMenu",className:"tekPopperMenu",children:Lz.jsxs(Dw,{dense:!0,children:[Lz.jsx(Ww,{onClick:m,children:s("ToggleBorders")}),Lz.jsx(gw,{}),Lz.jsx(Ww,{onClick:d,children:s("AddNewRow")}),Lz.jsx(Ww,{onClick:f,children:s("AddNewColumn")}),Lz.jsx(gw,{}),Lz.jsx(Ww,{onClick:p,children:s("DeleteRow")}),Lz.jsx(Ww,{onClick:h,children:s("DeleteCol")}),Lz.jsx(gw,{}),Lz.jsx(Ww,{onClick:g,children:s("DeleteTable")})]})})})]})})},zj=()=>{const[e]=Tu(),t=Rd(),[n,r]=k(null),[o,i]=k(!1),s=Boolean(n),a=C.useContext(dh),l=S(null),c=M(()=>{o||e.update(()=>{const t=co();if(Ur(t)){const n=ej(t.anchor.getNode());if(Jz(n)){const t=e.getElementByKey(n.getKey());r(t)}else r(null)}})},[e,o]);w(()=>{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)}},[]),w(()=>Va(e.registerCommand(Ct,()=>(c(),!1),fi),e.registerCommand(gj,()=>(r(null),!0),4),e.registerCommand(mj,()=>(c(),!0),4)),[e,c]),w(()=>{r(null)},[t]);const u=M(()=>{r(null)},[]),d=M(()=>{r(null),setTimeout(()=>{c()},0)},[c]),f=M(()=>{clearTimeout(l.current)},[]);return Lz.jsx(O_,{open:!!s&&t,anchorEl:n,placement:"top-end",sx:{zIndex:2},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt(a.components?.MuiButton?.styleOverrides?.sizeSmall?.height||"24",10)]}}],children:Lz.jsx(Ij,{onDeleteAction:u,onAction:d,onClick:f})})},jj=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=Hi(n),r=e?.getParent();ni(r)&&null!==e&&t.push(e)}if(t.length>0){const e=ui();t[0].insertBefore(e),e.select(),t.forEach(e=>{e.remove()})}},Dj=()=>{const[e]=Tu(),t=Rd();return w(()=>Va(e.registerMutationListener(Yz,t=>{e.update(()=>{jj(t)})}),e.registerMutationListener(Qz,t=>{e.update(()=>{jj(t)})}),e.registerMutationListener(qz,t=>{e.update(()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=Hi(e);if(Xz(t)&&!t.isValid()){const e=ui();t.insertBefore(e),e.select(),t.remove()}}})}),e.registerCommand(vj,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new qz(!0,"100%"),n=new Ej(e),r=new kj(e),o=[];for(let t=0;t<2;t++){const t=new Qz;for(let n=0;n<e.length;n++){const e=Vz(!0),n=ui();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();xl(e)}),!0),fi),e.registerCommand(hj,({colWidths:e,nodeKey:t})=>{const n=Hi(t);if(Sj(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof Ej})(r)&&r.setColWidths(e)}return!0},4),e.registerCommand(qt,t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=co();if(Ur(e)){const t=e.focus.getNode(),n=tj(t),r=dj(t);if(Xz(n)){const e=ui();e.append(Pr("")),n.insertBefore(e,!1),e.select()}}})()}),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=co();if(Ur(e)){const t=e.focus.getNode(),n=tj(t);if(Xz(n)){const e=ui();e.append(Pr("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()}),!0),4),e.registerCommand(Qt,e=>cj(e),4),e.registerCommand(en,e=>cj(e),4),e.registerCommand(tn,e=>{const t=co();if(Ur(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),Jz(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,s=t?1:-1;if(i&&o){const e=i.getChildAtIndex(r+s);if(e)e.getChildAtIndex(0).selectEnd();else{let e=0;t||0!==r||(e=i.getChildren().length-1);const a=o.getChildAtIndex(n+2+s);if(Zz(a)){const t=a?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(uj(o),!e.shiftKey),!0}return!1},fi),e.registerCommand(fn,e=>{const t=e?.target,n=co();if(t.classList.contains("tek__table")&&Ur(n)&&Xz(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if(Ur(n)){const t=n.getNodes().some(e=>Jz(e)),r=n.getNodes().some(e=>Xz(e));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1},4)),[e]),w(()=>e.registerCommand(Ct,()=>(t&&e.update(()=>{(e=>{const t=co(),n=[];if(ps(qz).forEach(e=>{const t=fj(e);n.push(...t)}),Ur(t)){t.getNodes().filter(e=>Xz(e)).forEach(t=>{pj(t,e)});const n=t.focus.getNode();if(Xz(n))return void pj(n,e)}if(Ur(t)||Yr(t)){const r=new Set(t.getNodes().map(e=>dj(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]),w(()=>{e.update(()=>{t||(e=>{const t=[];ps(qz).forEach(e=>{const n=fj(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},Fj=()=>Lz.jsxs(Lz.Fragment,{children:[Lz.jsx(Dj,{}),Lz.jsx(zj,{})]}),Bj=()=>{const e=Rd(),t=jI();return e?Lz.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):Lz.jsx("div",{className:"tek__editor__logo",children:Lz.jsx(lz,{height:32})})},$j=({showPlaceholder:e})=>Lz.jsxs("div",{style:{position:"relative"},children:[Lz.jsx(FI,{}),Lz.jsx(sz,{contentEditable:Lz.jsx(GI,{className:"tek__editor__input"}),placeholder:!1!==e?Lz.jsx(Bj,{}):null,ErrorBoundary:QI})]}),Hj=ty(mw)(({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"}})),Wj=["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"],Kj="#404040",Uj="16px",Gj=v({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:Wj[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),Yj=({children:e})=>{const t=(()=>{const[e]=Tu(),[t,n]=k(!1),[r,o]=k(!1),[i,s]=k(!1),[a,l]=k("paragraph"),[c,u]=k(Wj[0]),[d,f]=k(Uj),[p,h]=k(Kj),[g,m]=k("left"),[v,b]=k(!1),y=M(()=>{const t=co();if(Ur(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:Xs(r,e=>{const t=e.getParent();return null!==t&&Cs(t)});null===i&&(i=r.getTopLevelElementOrThrow());const a=i.getKey();let c=i;if(null!==e.getElementByKey(a))if(yu(i)){const e=bl(r,pu),t=e?e.getListType():i.getListType();l(t)}else{const e=wd(i)?i.getTag():i.getType();l(e)}if(yu(i)||wd(i)){const e=bl(i,li);e&&(c=e)}const d=Pz(t);if(Sc(d.getParent())||Sc(d)?b(!0):b(!1),di(c)){const e=c.getFormatType();m(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),s(t.hasFormat("underline"));const p=hl(t,"font-family",Wj[0]),g=hl(t,"font-size",Uj);u(""===p?Wj[0]:p),f(""!==g&&g?g:Uj),h(hl(t,"color",Kj))}else Yr(t)&&t.getNodes().forEach(e=>{if(function(e){return e instanceof Tj}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),s(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",Kj));const t=e.getTextFormatStyle("fontSize",Uj),r=e.getTextFormatStyle("fontFamily",Wj[0]);f(t),u(r);const i=e.getParent();if(null!==i){const e=(e=>{if(fu(e)){const t=bl(e,pu);return t?t.getListType():"bullet"}return wd(e)?e.getTag():e.getType()})(i);l(e)}}})},[e]);return w(()=>Va(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{y()})}),e.registerCommand(Ct,()=>(e.getEditorState().read(()=>{y()}),!1),fi)),[e,y]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:a,fontName:c,fontSize:d,fontColor:p,align:g,isLink:v}}})();return Lz.jsx(Gj.Provider,{value:t,children:e})},Vj=({children:e})=>Lz.jsx(Yj,{children:Lz.jsx(Hj,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),Jj=({anchorEl:e,children:t})=>{const n=Boolean(e);return Lz.jsx(O_,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>Lz.jsx(_w,{...e,children:Lz.jsx(Ty,{className:"tekPopperMenu",children:t})})})},qj=ty(nx)({fontSize:12,textOverflow:"ellipsis"}),Xj=({startIcon:e,value:t,onClick:n,compact:r})=>Lz.jsx(ek,{title:t,PopperProps:{disablePortal:!0},children:Lz.jsx(aw,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:Lz.jsx(fz,{height:12}),children:r?e:Lz.jsx(qj,{children:t})})}),Qj=ty(Ww,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),Zj=[{text:"AlignLeft",align:"left",icon:()=>Lz.jsx(uz,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>Lz.jsx(cz,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>Lz.jsx(dz,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],eD=({compact:e=!1})=>{const[t]=Tu(),[n,r]=k(null),{blockFormat:o}=b(Gj),i=jI(),s=x(()=>Zj.find(e=>e.align===o.align)||Zj[0],[o.align]),a=M(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),l=M(()=>{r(null)},[]),c=M(e=>{r(null),t.dispatchCommand(an,e),t.focus()},[t]);return Lz.jsx(cw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Lz.jsxs("div",{children:[Lz.jsx(Xj,{value:i(s.text),startIcon:s.icon(),onClick:a,compact:e,"data-testid":"editor-toolbar-align-btn"}),Lz.jsx(Jj,{anchorEl:n,children:Lz.jsx(Dw,{dense:!0,children:Zj.map(e=>Lz.jsxs(Qj,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{c(e.align)},children:[Lz.jsx(Rw,{children:e.icon()}),Lz.jsx(qj,{children:i(e.text)})]},e.align))})})]})})},tD=({text:e,icon:t})=>Lz.jsxs(Lz.Fragment,{children:[Lz.jsx(Rw,{children:t}),Lz.jsx(qj,{children:e})]}),nD=({text:e,icon:t})=>Lz.jsxs(Lz.Fragment,{children:[Lz.jsx(Rw,{children:Lz.jsx(qj,{fontWeight:"bold",children:t})}),Lz.jsx(qj,{children:e})]}),rD=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],oD=(e,t,n)=>({icon:Lz.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),iD=({compact:e=!1})=>{const[t]=Tu(),{blockFormat:n}=b(Gj),[r,o]=k(null),i=jI(),s=x(()=>{let e={icon:Lz.jsx(mz,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=oD("Heading1","H1",i)),"h2"===n.blockType&&(e=oD("Heading2","H2",i)),"h3"===n.blockType&&(e=oD("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=Lz.jsx(hz,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=Lz.jsx(pz,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=Lz.jsx(gz,{height:12}),e.text=i("OrderedList")),e},[n,i]),a=M(()=>{o(null)},[]),l=M(e=>{t.update(()=>{const n=co();Ur(n)?(sl(n,{"font-size":null}),function(e,t,n=al){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=io(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=Xs(e.getNode(),Ds),s=Xs(t.getNode(),Ds);Xo(n)&&o.set(n.getKey(),n),Xo(s)&&o.set(s.getKey(),s)}for(const t of e.getNodes())if(Xo(t)&&Ds(t))o.set(t.getKey(),t);else if(null===r){const e=Xs(t,Ds);Xo(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(co())&&qi(i)}(n,e)):Yr(n)&&n.getNodes().forEach(t=>{const n=t.getParent();n?.replace(e(),!0)}),t.focus()})},[t]),c=M((e,n)=>{o(null),t.update(()=>{const r=co();Ur(r)&&r.getNodes().forEach(r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)})}),t.focus()},[t]),u=M(e=>{o(null),l(()=>_d(e))},[l]),d=M(()=>{o(null),l(()=>ui())},[l]),f=M(()=>{o(null),l(()=>gd())},[l]);return Lz.jsx(cw,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Lz.jsxs("div",{children:[Lz.jsx(Xj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:s.text,startIcon:s.icon,compact:e}),Lz.jsx(Jj,{anchorEl:r,children:Lz.jsxs(Dw,{dense:!0,children:[Lz.jsx(Ww,{dense:!0,onClick:d,children:Lz.jsx(tD,{text:i("Paragraph"),icon:Lz.jsx(mz,{height:12})})}),Lz.jsx(Ww,{dense:!0,onClick:f,children:Lz.jsx(tD,{text:i("Quote"),icon:Lz.jsx(hz,{height:12})})}),rD.map(e=>Lz.jsx(Ww,{dense:!0,onClick:()=>{u(e.tag)},children:Lz.jsx(nD,{text:i(e.text),icon:e.icon})},e.text)),Lz.jsx(gw,{}),Lz.jsx(Ww,{dense:!0,onClick:()=>{c("bullet",_u)},children:Lz.jsx(tD,{text:i("UnorderedList"),icon:Lz.jsx(pz,{height:12})})}),Lz.jsx(Ww,{dense:!0,onClick:()=>{c("number",wu)},children:Lz.jsx(tD,{text:i("OrderedList"),icon:Lz.jsx(gz,{height:12})})})]})})]})})},sD=ty(aw,{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})),aD=(e,t)=>{const n=n=>{const r=jI();return Lz.jsx(ek,{title:r(t),PopperProps:{disablePortal:!0},children:Lz.jsx("div",{children:Lz.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},lD=({format:e,icon:t,...n})=>{const r=b(Gj),[o]=Tu(),i=M(()=>{o.dispatchCommand(Bt,e)},[o,e]);return Lz.jsx(sD,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},cD=aD(lD,"Bold"),uD=()=>Lz.jsx(cD,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:Lz.jsx(vz,{height:12})}),dD=St("APPLY_TEXT_FORMAT"),fD=St("CLEAR_TEXT_FORMAT"),pD=aD(sD,"ClearFormat"),hD=()=>{const[e]=Tu(),t=M(()=>{e.update(()=>{const t=co();if(Ur(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(Ir(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),yl(i).setFormat(""));const s=i.getParent();(wd(s)||md(s))&&s.replace(ui(),!0)}else(wd(t)||md(t))&&t.replace(ui(),!0)}catch{}})}e.dispatchCommand(fD,void 0)})},[e]);return Lz.jsx(pD,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:Lz.jsx(bz,{height:12})})};var gD,mD={},vD=function(){if(gD)return mD;gD=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,s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,a=Math.floor,l=Math.round,c=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,s,c,u,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,u=(n=(n%=360)<0?0:n>360?360:n)/60,d=(c=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(u%2-1)),f=[],u=Math.floor(u)){case 0:f=[c,d,0];break;case 1:f=[d,c,0];break;case 2:f=[0,c,d];break;case 3:f=[0,d,c];break;case 4:f=[d,0,c];break;case 5:f=[c,0,d];break;default:f=[0,0,0]}p=i-.5*c,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,u=(n=(n%=360)<0?0:n>360?360:n)/60,d=(c=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(u%2-1)),f=[],u=Math.floor(u)){case 0:f=[c,d,0];break;case 1:f=[d,c,0];break;case 2:f=[0,c,d];break;case 3:f=[0,d,c];break;case 4:f=[d,0,c];break;case 5:f=[c,0,d];break;default:f=[0,0,0]}p=i-.5*c,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]),s=parseFloat(h[5]),u=(n=(n%=360)<0?0:n>360?360:n)/60,d=(c=(s=(s/=100)<0?0:s>1?1:s)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(u%2-1)),f=[],u=Math.floor(u)){case 0:f=[c,d,0];break;case 1:f=[d,c,0];break;case 2:f=[0,c,d];break;case 3:f=[0,d,c];break;case 4:f=[d,0,c];break;case 5:f=[c,0,d];break;default:f=[0,0,0]}p=s-c,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=a(m),this._g=a(v),this._b=a(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]),s=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(s,")")}},{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=a(this._r+(e._r-this._r)*t),r=a(this._g+(e._g-this._g)*t),o=a(this._b+(e._b-this._b)*t),i=a(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"==Az(o=function(e){if("object"!=Az(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Az(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 c.toRGB=function(e){if(e instanceof c)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=c.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},c.toRGBA=function(e,t){if(e instanceof c)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=c.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,")")},c.toHex=function(e){var t,n,r;return e instanceof c?(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=c.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))},c.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new c(e));var s=e._r/255,a=e._g/255,l=e._b/255,u=Math.max(s,a,l),d=Math.min(s,a,l);if(r=t?.21*s+.72*a+.07*l:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case s:i=(a-l)/o+(a<l?6:0);break;case a:i=(l-s)/o+2;break;case l:i=(s-a)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},c.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new c(e));var s=e._r/255,a=e._g/255,l=e._b/255,u=e._a,d=Math.max(s,a,l),f=Math.min(s,a,l);if(r=t?.21*s+.72*a+.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 s:i=(a-l)/o+(a<l?6:0);break;case a:i=(l-s)/o+2;break;case l:i=(s-a)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(u,")")},c.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new c(e));var o=e._r/255,i=e._g/255,s=e._b/255,a=Math.max(o,i,s),l=Math.min(o,i,s),u=a;if(a===l)t=0,r=0;else{switch(t=0===(n=a-l)?0:n/u,a){case o:r=(i-s)/n+(i<s?6:0);break;case i:r=(s-o)/n+2;break;case s:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}},c.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof c)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},c.blend=function(e,t,n){var r=(16711680&(e=c.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=c.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},c.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,s=e._a+(t._a-e._a)*n;return new c(r,o,i,s)},c.isCSSColor=function(a){return!(arguments.length>1||"string"!=typeof a)&&(t.test(a)||n.test(a)||r.test(a)||o.test(a)||i.test(a)||s.test(a)||e[a.toLowerCase()])},c.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},c.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)}},c.isDark=function(){var e={getLuminance:c.prototype.getLuminance,isInvalid:c.prototype.isInvalid};return c.prototype.init.apply(e,[].slice.call(arguments)),c.prototype.isDark.call(e)},c.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},mD.Color=c,mD}();const bD=ty(mw)(({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"})),yD=ty(X_)(({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"})),xD=({palette:e,color:t,onColorChange:n})=>{const[r,o]=k(t),i=Db(),s=M(e=>{o(e),n(e)},[n]);return Lz.jsx(bD,{children:e.map(e=>Lz.jsx(yD,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),s(e)},children:e===r?Lz.jsx(nk,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function _D(e,t,n){return Math.max(t,Math.min(n,e))}const wD=(e,t)=>{const n=new vD.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"}},kD=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),s=_D(e.clientX-n,0,o)/o*100,a=100-_D(e.clientY-r,0,i)/i*100,l=new vD.Color(t).toHSVComponents();return l.s=s,l.v=a,l},SD=ty(mw)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),CD=ty(X_)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),ED=ty(X_)(({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 );"})),TD=ty(X_)({width:"16px",height:"16px",borderRadius:"2px"}),AD=ty(mw)({flexDirection:"row",alignItems:"center"}),LD=ty(X_)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),MD=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=k(n),s=S(n),[a,l]=k(!0),[c,u]=k(o),d=S(null),f=S(null),p=S({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,g]=k({left:"0",top:"0"});w(()=>{r.some(e=>e===n)||l(!1)},[n,r]);const m=M(e=>{if(!d.current&&(d.current=e,e)){const t=wD(o,e);g(t)}},[o]),v=x(()=>`hsl(${new vD.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),b=M(t=>{t.preventDefault(),t.stopPropagation();const n=kD(t,s.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new vD.Color(r);if(s.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(s.current),u(s.current),i(s.current)},[e]),y=M(t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=_D(e.clientX-r,0,n),i=Math.round(o/n*360),s=o/n*100,a=new vD.Color(t).toHSVComponents();return a.h=i,a.s=s,a})(t,s.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new vD.Color(r);s.current=o.toHex(),e(s.current),u(s.current),i(s.current)},[e]),_=M(t=>{s.current=t,e(s.current),i(s.current),u(t)},[e]),C=M(t=>{if(u(t.target.value),!new vD.Color(t.target.value).isInvalid()&&(s.current=t.target.value,i(t.target.value),t.target.value.startsWith("#")&&7===t.target.value.length?e(s.current,{tag:"collaboration"}):t.target.value.startsWith("#")||e(s.current,{tag:"collaboration"}),d.current)){const e=wD(s.current,d.current);g(e)}},[e]);return Lz.jsxs(SD,{children:[a?Lz.jsx(xD,{palette:r,color:o,onColorChange:_}):Lz.jsxs(Lz.Fragment,{children:[Lz.jsx(CD,{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,a=kD(e,s.current),l=`hsv(${a.h},${a.s},${a.v})`,c=new vD.Color(l).toHex();f.current.style.left=`${r}px`,f.current.style.top=`${o}px`,f.current.style.backgroundColor=c,s.current=c,u(s.current),i(c)}},onMouseUp:t=>{t.preventDefault(),t.stopPropagation(),p.current.on?e(s.current):b(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1},children:Lz.jsx(LD,{ref:f,style:{...h,backgroundColor:o}})}),Lz.jsx(ED,{onClick:y})]}),Lz.jsxs(AD,{children:[Lz.jsx(TD,{style:{backgroundColor:o}}),Lz.jsx(V_,{style:{flex:1},value:c,onChange:C}),Lz.jsx(qy,{onClick:()=>{l(!a)},children:Lz.jsx(yz,{height:12})}),Lz.jsx(qy,{onClick:t,children:Lz.jsx(nk,{height:12})})]})]})},RD=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],ND=aD(aw,"Color"),OD=({colorPalette:e=RD})=>{const[t]=Tu(),[n,r]=k(null),{blockFormat:o}=b(Gj),i=M((e,n)=>{t.update(()=>{const t=co();Ur(t)&&sl(t,{color:e})},n),t.dispatchCommand(dD,{styleKey:"color",styleValue:e})},[t]),s=()=>{r(null)};return Lz.jsx(cw,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Lz.jsxs("div",{children:[Lz.jsx(ND,{variant:"text",size:"small",endIcon:Lz.jsx(fz,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:Lz.jsx(X_,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),Lz.jsx(Jj,{anchorEl:n,children:Lz.jsx(MD,{onClick:i,onClose:s,startColor:o.fontColor,palette:e})})]})})};aD(sD,"Export");const PD=({compact:e=!1,fonts:t=Wj})=>{const[n]=Tu(),[r,o]=k(null),{blockFormat:i}=b(Gj),s=x(()=>t,[t]),a=M(e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update(()=>{const e=co();Ur(e)&&sl(e,{"font-family":t||Wj[0]}),n.dispatchCommand(dD,{styleKey:"fontFamily",styleValue:t||Wj[0]}),n.focus()})},[n]);return Lz.jsx(cw,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Lz.jsxs("div",{children:[Lz.jsx(Xj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:Lz.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),Lz.jsx(Jj,{anchorEl:r,children:Lz.jsx(Dw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:s.map(e=>Lz.jsx(Qj,{"data-font-name":e,onClick:a,active:e===i.fontName,children:Lz.jsx(qj,{children:e})},e))})})]})})},ID=e=>parseInt(e,10),zD=({fontSize:e,onSelected:t})=>{const[n,r]=k(""),o=M(e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)},[]),i=M(()=>{const e=ID(n);e&&t(`${e}px`)},[t,n]),s=M(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return Lz.jsxs(mw,{direction:"row",children:[Lz.jsx(V_,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:s}),Lz.jsx(qy,{disabled:!ID(n),onClick:i,children:Lz.jsx(nk,{height:12})})]})},jD=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],DD=({compact:e=!1})=>{const[t]=Tu(),[n,r]=k(null),{blockFormat:o}=b(Gj),i=M(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),s=M(()=>{r(null)},[]),a=M(e=>{r(null),e.length>0&&t.update(()=>{const n=co();Ur(n)&&sl(n,{"font-size":e}),t.dispatchCommand(dD,{styleKey:"fontSize",styleValue:e})})},[t]),l=M(e=>{const{fontSize:t}=e.currentTarget.dataset;a(t||"16px")},[a]),c=M(e=>{a(e)},[a]);return Lz.jsx(cw,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Lz.jsxs("div",{children:[Lz.jsx(Xj,{startIcon:e?Lz.jsx(qj,{children:o.fontSize}):void 0,value:o.fontSize,onClick:i,compact:e}),Lz.jsxs(Jj,{anchorEl:n,children:[Lz.jsx(zD,{fontSize:o.fontSize,onSelected:c}),Lz.jsx(gw,{}),Lz.jsx(Dw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:jD.map(e=>Lz.jsx(Ww,{"data-font-size":e,onClick:l,children:Lz.jsx(qj,{children:e})},e))})]})]})})},FD=aD(sD,"InsertTable"),BD=()=>{const[e]=Tu(),t=M(()=>{e.dispatchCommand(vj,void 0)},[e]);return Lz.jsx(FD,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:Lz.jsx(xz,{height:12})})},$D=aD(lD,"Italic"),HD=()=>Lz.jsx($D,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:Lz.jsx(_z,{height:12})}),WD=aD(sD,"InsertHyperlink"),KD=()=>{const[e]=Tu(),{blockFormat:t}=b(Gj),n=M(()=>{t.isLink?e.dispatchCommand(Ac,null):e.dispatchCommand(Ac,jz("https://"))},[e,t.isLink]);return Lz.jsx(WD,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:Lz.jsx(wz,{height:12})})};aD(sD,"Toggle");const UD=aD(lD,"Underline"),GD=()=>Lz.jsx(UD,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:Lz.jsx(kz,{height:12})}),YD=()=>Lz.jsx(gw,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var VD={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=="}},JD={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)"}},qD={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=="}},XD={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=="}},QD={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=="}},ZD={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=="}},eF={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=="}},tF={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=="}},nF={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=="}},rF={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=="}},oF={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=="}},iF={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=="}},sF={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 aF={de:VD,es:qD,en:JD,fr:XD,it:QD,ja:ZD,ko:eF,nl:tF,pl:nF,pt:rF,ru:oF,sv:iF,tr:sF,"de-de":VD,"es-es":qD,"en-us":JD,"fr-fr":XD,"it-it":QD,"ja-jp":ZD,"ko-kr":eF,"nl-nl":tF,"pl-pl":nF,"pt-br":rF,"ru-ru":oF,"sv-se":iF,"tr-tr":sF,"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 lF(e,t){return e.getEditorState().read(()=>{const e=Hi(t);return null!==e&&e.isSelected()})}function cF(e){const[t]=Tu(),[n,r]=k(()=>lF(t,e));w(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(lF(t,e))});return()=>{n=!1,o()}},[t,e]);return[n,M(n=>{t.update(()=>{let t=co();Yr(t)||(t=so(),qi(t)),Yr(t)&&(n?t.add(e):t.delete(e))})},[t,e]),M(()=>{t.update(()=>{const e=co();Yr(e)&&e.clear()})},[t])]}var uF,dF={};var fF=function(){if(uF)return dF;uF=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,s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,a=Math.floor,l=Math.round,c=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,s,c,u,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,u=(n=(n%=360)<0?0:n>360?360:n)/60,d=(c=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(u%2-1)),f=[],u=Math.floor(u)){case 0:f=[c,d,0];break;case 1:f=[d,c,0];break;case 2:f=[0,c,d];break;case 3:f=[0,d,c];break;case 4:f=[d,0,c];break;case 5:f=[c,0,d];break;default:f=[0,0,0]}p=i-.5*c,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,u=(n=(n%=360)<0?0:n>360?360:n)/60,d=(c=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(u%2-1)),f=[],u=Math.floor(u)){case 0:f=[c,d,0];break;case 1:f=[d,c,0];break;case 2:f=[0,c,d];break;case 3:f=[0,d,c];break;case 4:f=[d,0,c];break;case 5:f=[c,0,d];break;default:f=[0,0,0]}p=i-.5*c,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]),s=parseFloat(h[5]),u=(n=(n%=360)<0?0:n>360?360:n)/60,d=(c=(s=(s/=100)<0?0:s>1?1:s)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(u%2-1)),f=[],u=Math.floor(u)){case 0:f=[c,d,0];break;case 1:f=[d,c,0];break;case 2:f=[0,c,d];break;case 3:f=[0,d,c];break;case 4:f=[d,0,c];break;case 5:f=[c,0,d];break;default:f=[0,0,0]}p=s-c,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=a(m),this._g=a(v),this._b=a(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]),s=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(s,")")}},{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=a(this._r+(e._r-this._r)*t),r=a(this._g+(e._g-this._g)*t),o=a(this._b+(e._b-this._b)*t),i=a(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 c.toRGB=function(e){if(e instanceof c)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=c.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},c.toRGBA=function(e,t){if(e instanceof c)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=c.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,")")},c.toHex=function(e){var t,n,r;return e instanceof c?(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=c.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))},c.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new c(e));var s=e._r/255,a=e._g/255,l=e._b/255,u=Math.max(s,a,l),d=Math.min(s,a,l);if(r=t?.21*s+.72*a+.07*l:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case s:i=(a-l)/o+(a<l?6:0);break;case a:i=(l-s)/o+2;break;case l:i=(s-a)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},c.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new c(e));var s=e._r/255,a=e._g/255,l=e._b/255,u=e._a,d=Math.max(s,a,l),f=Math.min(s,a,l);if(r=t?.21*s+.72*a+.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 s:i=(a-l)/o+(a<l?6:0);break;case a:i=(l-s)/o+2;break;case l:i=(s-a)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(u,")")},c.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new c(e));var o=e._r/255,i=e._g/255,s=e._b/255,a=Math.max(o,i,s),l=Math.min(o,i,s),u=a;if(a===l)t=0,r=0;else{switch(t=0===(n=a-l)?0:n/u,a){case o:r=(i-s)/n+(i<s?6:0);break;case i:r=(s-o)/n+2;break;case s:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}},c.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof c)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},c.blend=function(e,t,n){var r=(16711680&(e=c.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=c.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},c.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,s=e._a+(t._a-e._a)*n;return new c(r,o,i,s)},c.isCSSColor=function(a){return!(arguments.length>1||"string"!=typeof a)&&(t.test(a)||n.test(a)||r.test(a)||o.test(a)||i.test(a)||s.test(a)||e[a.toLowerCase()])},c.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},c.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)}},c.isDark=function(){var e={getLuminance:c.prototype.getLuminance,isInvalid:c.prototype.isInvalid};return c.prototype.init.apply(e,[].slice.call(arguments)),c.prototype.isDark.call(e)},c.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},dF.Color=c,dF}();function pF(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function hF(e,t){return t?.getNodes().some(t=>t.getKey()===e)}var gF,mF;var vF=function(){if(mF)return gF;mF=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},gF=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,s,a;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),s=1;s<o;s++)i[s-1]=arguments[s];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),s=1;s<o;s++)i[s-1]=arguments[s];for(o=(a=r.slice()).length,s=0;s<o;s++)a[s].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,s;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(s=i;s-- >0;)if(r[s]===n||r[s].listener&&r[s].listener===n){o=s;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},gF}();let bF=[];const yF=new vF.EventEmitter;yF.isSelected=e=>{const t=e?.qDef?.cId;return-1!==bF.indexOf(t)},yF.setSelected=e=>{bF!==e&&(bF=e,yF.emit("change"))};function xF({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=b(H),[s]=Tu(),a=Rd(),[l,c,u]=cF(n),d=S(null),[f,p]=k(t);w(()=>{p(t)},[t]);const h=x(()=>{let e;return l?e="rgba(0, 152, 69, 0.25)":a&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}},[l,a]),g=x(()=>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 fF.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);w(()=>Va(s.registerCommand(Bt,e=>(s.update(()=>{const t=e,r=co();if(Ur(r)&&l){if(hF(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&&Yr(r)&&hF(n,r)&&d.current){const e=pF(d.current.style);p(((e,t)=>{const n={};switch(e){case"bold":t.fontWeight?"bold"===t.fontWeight&&(n.fontWeight=""):n.fontWeight="bold";break;case"italic":n.fontStyle="italic"===t.fontStyle?"":"italic";break;case"underline":n.textDecoration="underline"===t.textDecoration?"":"underline"}return{...t,...n}})(t,e))}}),!1),3),s.registerCommand(dD,e=>(s.getEditorState().read(()=>{if("color"===e.styleKey&&g.expressionColor)return!1;if(d.current&&l){const t=co();if(hF(n,t)){const t=pF(d.current?.style);t[e.styleKey]=e.styleValue,p(t)}}}),!1),fi),s.registerCommand(fD,()=>(s.getEditorState().read(()=>{if(d.current&&l){const e=co();if(hF(n,e)){const e={};g.expressionColor&&(e.color=g.expressionColor),p(e)}}}),!1),fi),s.registerCommand(Ct,()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&s.update(()=>{const e=[],t=co(),n=t?.getNodes();n?.forEach(t=>{t?.getExpressionId&&e.push(t?.getExpressionId())}),yF.setSelected(e)}),!1),1)),[s,c,u,l,n,g]),w(()=>{a||(u(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&yF.setSelected([]))},[a,u,i]),w(()=>{s.update(()=>{!function(e,t){const n=Hi(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,f)})},[f,s,n]);const m=M(e=>{if(a){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),u(),c(!0)):r<t.width&&s.update(()=>{const e=co();if(Yr(e)){const t=Hi(n);t?.selectPrevious(),e.delete(n)}})}},[a,u,c,s,n]);return Nu.jsx("span",{style:{...h,...f,color:g.expressionColor?g.expressionColor:f.color},onClick:m,ref:d,id:e,children:g.value})}const _F="qlik.expression.node";class wF extends Tj{static getType(){return _F}static clone(e){return new wF(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new wF(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:_F,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 Nu.jsx(xF,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function kF(e){return e instanceof wF}const SF="ImageNode",CF=St("INSERT_IMAGE_COMMAND"),EF=()=>{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()},TF=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===SF)r.id||(r.id=EF()),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)TF(e,t,n);return{imageIds:t,newPropertyImages:n}},AF=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function LF(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=TF(n.root);o=e.imageIds,e.newPropertyImages.forEach(e=>{r.push(e)})}const i=[],s=new Set;return r.forEach(e=>{o.has(e.id)&&!s.has(e.id)&&(s.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 MF(){const[e]=Tu(),t=Rd(),{edit:n,model:r,emitter:o,flags:i}=b(H);return w(()=>{const t=()=>{r&&LF(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]),w(()=>{e.setEditable(n)},[n]),w(()=>{t&&e.focus()},[t,e]),null}class RF{constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=Hi(e);if(kF(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 NF(){const{layout:e,emitter:t}=b(H),[n]=Tu(),r=S(new RF),o=Rd();return w(()=>{const e=n.registerMutationListener(wF,e=>{n.getEditorState().read(()=>{for(const[t,n]of e)r.current.update(t,n)})});return()=>{e()}},[n]),w(()=>{e&&n.update(()=>{const t=e,n=t.qHyperCube?.qMeasureInfo;if(n){const e=ps(wF),t=((e,t)=>{const n=e.reduce((e,n)=>{const r=t.find(e=>e.cId===n.getExpressionId());return r||e.push(n),e},[]);return n})(e,n);if(t.forEach(e=>{e.remove()}),n.length>e.length){const e=co(),{cId:t}=n[n.length-1],r=new wF(t,{}),o=Pr(" "),i=Pr("");Ur(e)?e.insertNodes([i,r,o]):xl(r)}}})},[e,n]),w(()=>n.registerCommand(Wt,e=>("Backspace"===e.key&&n.update(()=>{const e=co();Yr(e)&&e.getNodes().forEach(e=>{kF(e)&&(e.selectPrevious(),e.remove())})}),!1),1),[n]),w(()=>{if(!o){const e=r.current.sync();e.length>0&&t?.emit("onNodeDestroyed",e)}},[o,t]),null}const OF=/"/g;function PF(){const{model:e,emitter:t}=b(H),[n]=Tu(),r=S(new Map);return w(()=>{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(OF,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function IF(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 zF,jF="top",DF="top-right",FF="right",BF="bottom-right",$F="bottom",HF="bottom-left",WF="left",KF="top-left";IF(IF(IF(IF(IF(IF(IF(IF(IF(IF(zF={},"equal-equal",[jF,$F]),"equal-higher",[$F,BF]),"equal-lower",[jF,DF]),"equal-void",[jF,$F]),"higher-equal",[WF,HF,jF,DF]),"higher-higher-acute",[$F,HF,WF,DF]),"higher-higher-obtuse",[$F,jF]),"higher-lower-negative",[jF,DF,FF]),"higher-lower-positive",[$F,HF,WF]),"higher-void",[jF]),IF(IF(IF(IF(IF(IF(IF(IF(IF(IF(zF,"lower-equal",[jF]),"lower-higher-negative",[jF,KF]),"lower-higher-positive",[BF]),"lower-lower-acute",[jF,KF,WF,DF,FF]),"lower-lower-obtuse",[jF,$F]),"lower-void",[jF]),"void-equal",[jF]),"void-higher",[jF,$F]),"void-lower",[jF,$F,WF]),"void-void",[jF]),IF(zF,"unclassified",[jF,$F,FF,WF,DF,BF,HF,KF]);var UF,GF,YF=["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"],VF=["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 JF=function(){if(GF)return UF;GF=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)},s=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},a=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return UF=function e(){var t,n,r,l,c,u,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=a(d,n),d!==(l=a(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},s(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&s(d,{name:n,newValue:l}));return d},UF}();function qF(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function XF(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function QF(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(JF);var ZF=1/.7,eB="\\s*([+-]?\\d+)\\s*",tB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rB=/^#([0-9a-f]{3,8})$/,oB=new RegExp(`^rgb\\(${eB},${eB},${eB}\\)$`),iB=new RegExp(`^rgb\\(${nB},${nB},${nB}\\)$`),sB=new RegExp(`^rgba\\(${eB},${eB},${eB},${tB}\\)$`),aB=new RegExp(`^rgba\\(${nB},${nB},${nB},${tB}\\)$`),lB=new RegExp(`^hsl\\(${tB},${nB},${nB}\\)$`),cB=new RegExp(`^hsla\\(${tB},${nB},${nB},${tB}\\)$`),uB={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 dB(){return this.rgb().formatHex()}function fB(){return this.rgb().formatRgb()}function pB(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?hB(t):3===n?new bB(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?gB(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?gB(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=oB.exec(e))?new bB(t[1],t[2],t[3],1):(t=iB.exec(e))?new bB(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=sB.exec(e))?gB(t[1],t[2],t[3],t[4]):(t=aB.exec(e))?gB(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=lB.exec(e))?SB(t[1],t[2]/100,t[3]/100,1):(t=cB.exec(e))?SB(t[1],t[2]/100,t[3]/100,t[4]):uB.hasOwnProperty(e)?hB(uB[e]):"transparent"===e?new bB(NaN,NaN,NaN,0):null}function hB(e){return new bB(e>>16&255,e>>8&255,255&e,1)}function gB(e,t,n,r){return r<=0&&(e=t=n=NaN),new bB(e,t,n,r)}function mB(e){return e instanceof QF||(e=pB(e)),e?new bB((e=e.rgb()).r,e.g,e.b,e.opacity):new bB}function vB(e,t,n,r){return 1===arguments.length?mB(e):new bB(e,t,n,null==r?1:r)}function bB(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function yB(){return`#${kB(this.r)}${kB(this.g)}${kB(this.b)}`}function xB(){const e=_B(this.opacity);return`${1===e?"rgb(":"rgba("}${wB(this.r)}, ${wB(this.g)}, ${wB(this.b)}${1===e?")":`, ${e})`}`}function _B(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wB(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function kB(e){return((e=wB(e))<16?"0":"")+e.toString(16)}function SB(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new EB(e,t,n,r)}function CB(e){if(e instanceof EB)return new EB(e.h,e.s,e.l,e.opacity);if(e instanceof QF||(e=pB(e)),!e)return new EB;if(e instanceof EB)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),s=NaN,a=i-o,l=(i+o)/2;return a?(s=t===i?(n-r)/a+6*(n<r):n===i?(r-t)/a+2:(t-n)/a+4,a/=l<.5?i+o:2-i-o,s*=60):a=l>0&&l<1?0:s,new EB(s,a,l,e.opacity)}function EB(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function TB(e){return(e=(e||0)%360)<0?e+360:e}function AB(e){return Math.max(0,Math.min(1,e||0))}function LB(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}qF(QF,pB,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:dB,formatHex:dB,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return CB(this).formatHsl()},formatRgb:fB,toString:fB}),qF(bB,vB,XF(QF,{brighter(e){return e=null==e?ZF:Math.pow(ZF,e),new bB(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new bB(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bB(wB(this.r),wB(this.g),wB(this.b),_B(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:yB,formatHex:yB,formatHex8:function(){return`#${kB(this.r)}${kB(this.g)}${kB(this.b)}${kB(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:xB,toString:xB})),qF(EB,function(e,t,n,r){return 1===arguments.length?CB(e):new EB(e,t,n,null==r?1:r)},XF(QF,{brighter(e){return e=null==e?ZF:Math.pow(ZF,e),new EB(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new EB(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 bB(LB(e>=240?e-240:e+120,o,r),LB(e,o,r),LB(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new EB(TB(this.h),AB(this.s),AB(this.l),_B(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=_B(this.opacity);return`${1===e?"hsl(":"hsla("}${TB(this.h)}, ${100*AB(this.s)}%, ${100*AB(this.l)}%${1===e?")":`, ${e})`}`}}));const MB=Math.PI/180,RB=180/Math.PI,NB=4/29,OB=6/29,PB=3*OB*OB;function IB(e){if(e instanceof zB)return new zB(e.l,e.a,e.b,e.opacity);if(e instanceof $B)return HB(e);e instanceof bB||(e=mB(e));var t,n,r=BB(e.r),o=BB(e.g),i=BB(e.b),s=jB((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=s:(t=jB((.4360747*r+.3850649*o+.1430804*i)/.96422),n=jB((.0139322*r+.0971045*o+.7141733*i)/.82521)),new zB(116*s-16,500*(t-s),200*(s-n),e.opacity)}function zB(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function jB(e){return e>.008856451679035631?Math.pow(e,1/3):e/PB+NB}function DB(e){return e>OB?e*e*e:PB*(e-NB)}function FB(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function BB(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $B(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function HB(e){if(isNaN(e.h))return new zB(e.l,0,0,e.opacity);var t=e.h*MB;return new zB(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}qF(zB,function(e,t,n,r){return 1===arguments.length?IB(e):new zB(e,t,n,null==r?1:r)},XF(QF,{brighter(e){return new zB(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new zB(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 bB(FB(3.1338561*(t=.96422*DB(t))-1.6168667*(e=1*DB(e))-.4906146*(n=.82521*DB(n))),FB(-.9787684*t+1.9161415*e+.033454*n),FB(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),qF($B,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof $B)return new $B(e.h,e.c,e.l,e.opacity);if(e instanceof zB||(e=IB(e)),0===e.a&&0===e.b)return new $B(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*RB;return new $B(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new $B(e,t,n,null==r?1:r)},XF(QF,{brighter(e){return new $B(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new $B(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return HB(this).rgb()}}));var WB=e=>()=>e;function KB(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):WB(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?KB: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):WB(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=vB(e)).r,(t=vB(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),s=KB(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=s(t),e+""}}return r.gamma=e,r}(1);var UB,GB="center",YB="bottom";function VB(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 JB(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=XB)):void 0===t&&(t=qB);for(var n,r,o,i,s,a=new e$(e),l=[a];n=l.pop();)if((o=t(n.data))&&(s=(o=Array.from(o)).length))for(n.children=o,i=s-1;i>=0;--i)l.push(r=o[i]=new e$(o[i])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(ZB)}function qB(e){return e.children}function XB(e){return Array.isArray(e)?e[1]:null}function QB(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ZB(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function e$(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:GB,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:GB,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:GB,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:GB},{key:"DataRangeIncludingZero",alignment:YB},{key:"LimitedData",alignment:YB},{key:"NegativeOrZeroValues",alignment:YB}].reduce(function(e,t){return e[t.key]=t,e},{}),e$.prototype=JB.prototype={constructor:e$,count:function(){return this.eachAfter(VB)},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,s=[i],a=[],l=-1;i=s.pop();)if(a.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)s.push(n[r]);for(;i=a.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],s=-1;o=i.pop();)if(e.call(t,o,++s,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 JB(this).eachBefore(QB)},[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)}},UB=function(e){
100
100
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
101
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,s,a,l,c,u,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))+"",a=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=a)&&(t=(+t).toFixed(a+1)),u=e[0].split(i),e[0]=u.join(""),(s=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-s;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.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}},UB({exports:{}});const t$=e=>`text-toolbar.${e?.id}`,n$=E((e,t)=>Nu.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:Nu.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"})})),r$=aD(sD,"InsertImage"),o$=()=>{const{flags:e,showMediaLibrary:t}=b(H),[n]=Tu(),r=M(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(CF,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Nu.jsx(r$,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:Nu.jsx(n$,{height:12})}):null};function i$(){const{element:e,edit:t,model:n,flags:r,theme:o}=b(H),i=x(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),s=x(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?VF:YF}(r),[r]),a=x(()=>(e=>{const t=e?.getDataColorPickerPalettes();if(t&&t?.length>0)return["#404040",...t[0].colors.filter(e=>"none"!==e)]})(o),[o]);return Nu.jsx(O_,{open:t,anchorEl:i,placement:"top",transition:!0,sx:{zIndex:2},id:t$(n),children:({TransitionProps:e})=>Nu.jsx(_w,{...e,children:Nu.jsx(Ty,{sx:{borderRadius:1,padding:.25},children:Nu.jsxs(Vj,{children:[Nu.jsx(iD,{compact:!0}),Nu.jsx(YD,{}),Nu.jsx(PD,{compact:!0,fonts:s}),Nu.jsx(DD,{compact:!0}),Nu.jsx(YD,{}),Nu.jsx(uD,{}),Nu.jsx(HD,{}),Nu.jsx(GD,{}),Nu.jsx(KD,{}),Nu.jsx(OD,{colorPalette:a}),Nu.jsx(YD,{}),Nu.jsx(eD,{compact:!0}),Nu.jsx(YD,{}),Nu.jsx(hD,{}),Nu.jsx(YD,{}),Nu.jsx(BD,{}),Nu.jsx(o$,{})]})})})})}function s$(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))}}s$(".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");s$(".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 {\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 a$=1,l$=8,c$=2,u$=4;function d$({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=k(null),s=k({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),a=k({priority:"",value:"default"}),l=o.getRootElement();let c=r;c||(c=null!==l?l.getBoundingClientRect().width:100);const u=null!==l?l.getBoundingClientRect().height:100,d=(t,r)=>{const o=n.current,c=i.current;if(null!==o&&null!==c){const{width:n,height:i}=o.getBoundingClientRect(),u=s.current;u.startWidth=n,u.startHeight=i,u.ratio=n/i,u.currentWidth=n,u.currentHeight=i,u.startX=t.clientX,u.startY=t.clientY,u.isResizing=!0,u.direction=r,(e=>{let t;t=e===a$||e===u$?"ew":e===l$||e===c$?"ns":e&l$&&e&u$||e&c$&&e&a$?"nwse":"nesw",null!==l&&l.style.setProperty("cursor",`${t}-resize`,"important"),null!==document.body&&(document.body.style.setProperty("cursor",`${t}-resize`,"important"),a.current.value=document.body.style.getPropertyValue("-webkit-user-select"),a.current.priority=document.body.style.getPropertyPriority("-webkit-user-select"),document.body.style.setProperty("-webkit-user-select","none","important"))})(r),e(),c.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=s.current,o=r.direction&(a$|u$),i=r.direction&(c$|l$);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&a$?-n:n;const o=f$(r.startWidth+n,20,c),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&c$?-n:n;const o=f$(r.startHeight+n,20,u);t.style.height=`${o}px`,r.currentHeight=o}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&a$?-n:n;const o=f$(r.startWidth+n,20,c);t.style.width=`${o}px`,r.currentWidth=o}},p=()=>{const e=n.current,r=s.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",a.current.value,a.current.priority)),t(e,n),document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",p)}};return Nu.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[Nu.jsx("div",{className:"tek__image_resizer tek__image_resizer_n",onPointerDown:e=>{d(e,l$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__image_resizer_ne",onPointerDown:e=>{d(e,l$|a$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__image_resizer_e",onPointerDown:e=>{d(e,a$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__image_resizer_se",onPointerDown:e=>{d(e,c$|a$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__image_resizer_s",onPointerDown:e=>{d(e,c$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__image_resizer_sw",onPointerDown:e=>{d(e,c$|u$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__image_resizer_w",onPointerDown:e=>{d(e,u$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__image_resizer_nw",onPointerDown:e=>{d(e,l$|u$)}})]})}const f$=(e,t,n)=>Math.min(Math.max(e,t),n),p$=new Map,h$=({altText:e,className:t,imageRef:n,src:r,width:o,height:i,maxWidth:s,maxHeight:a,onError:l,onLoad:c,onContextMenu:u})=>{const d=(e=>{let t=p$.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=>(p$.set(e,t),t)),p$.set(e,t),t;throw t})(r);w(()=>{d.error&&l()},[d.error,l]);const f=(()=>{if(d.error)return{height:100,maxWidth:s,width:100};let e=!1,t="inherit"===o?d.width:o,n="inherit"===i?d.height:i;if(s&&t>s){const r=s/t;t=s,n=Math.round(n*r),e=!0}if(a&&n>a){const r=a/n;n=a,t=Math.round(t*r),e=!0}return{height:e?n:i,maxWidth:s,width:e?t:o}})();return Nu.jsx("img",{className:t||void 0,src:r,alt:e,ref:n,style:f,onError:l,draggable:"false","data-testid":"sn-text-image",onLoad:c,onContextMenu:u})};function g$({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:s}){const a=k(null),[l,c,u]=cF(s),[d,f]=S(!1),[p]=Tu(),h=Rd(),{layout:g,printingStatus:m}=b(H),v=void 0,y=x(()=>e||AF(g,t),[e,g,t]);w(()=>{!h&&l&&u()},[h,l,u]);const _=M(e=>{const t=e;return!!d||t.target===a.current&&(t.shiftKey?c(!l):(u(),c(!0)),!0)},[d,l,c,u]),C=M(()=>!!l&&(qi(null),p.focus(),!0),[l,p]);w(()=>Va(p.registerCommand(Tt,_,1),p.registerCommand(ln,e=>e.target===a.current&&(e.preventDefault(),!0),1),p.registerCommand(Zt,C,1)),[p,_,C]);const E=l&&!d&&h,T=(l||d)&&h;return Nu.jsx(O,{fallback:null,children:Nu.jsxs(Nu.Fragment,{children:[Nu.jsx("div",{draggable:E,"data-testid":"sn-text-image-container",children:Nu.jsx(h$,{className:`${T?"focused":""} ${E?"draggable":""}`,src:y,altText:n,imageRef:a,width:r,height:o,maxWidth:v,onLoad:()=>m?.resolve(t,!1),onError:()=>m?.resolve(t,!1),onContextMenu:e=>{p.dispatchCommand(Tt,e.nativeEvent)}})}),i&&l&&T?Nu.jsx(d$,{editor:p,imageRef:a,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=Hi(s);n?.getType()===kF&&n.setWidthAndHeight(e,t)})}}):null]})})}var m$=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),v$=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),b$=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class y$ extends Zo{constructor(e){super(e.key),this.__props={id:e.id,altText:e.altText||"",width:e.width||"inherit",height:e.height||"inherit",method:e.method||"mediaLibrary",tempUrl:e.tempUrl,tempUrlDef:e.tempUrlDef}}static getType(){return kF}static clone(e){return new y$({...e.__props,key:e.getKey()})}decorate(){return Nu.jsx(g$,{tempUrl:this.__props.tempUrl,imageId:this.__props.id,altText:this.__props.altText,width:this.__props.width,height:this.__props.height,nodeKey:this.getKey(),resizable:!0})}createDOM(e){const t=document.createElement("span"),n=e.theme.image;return void 0!==n&&(t.className=n),t}updateDOM(){return!1}exportJSON(){return{...this.__props,type:kF,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===y$.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||v$(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let s=m$(n);s=b$(s),s=decodeURIComponent(s);return{node:x$({altText:r,height:i,tempUrl:s,tempUrlDef:s,width:o})}},priority:0})}}static importJSON(e){return x$(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const x$=e=>new y$(e),_$=document.createElement("img");function w$(e){const t=e.target;return!!(t&&Os(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&Os(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function S$(){const e=co();if(!Yr(e))return null;const t=e.getNodes()[0];return t.getType()===kF?t:null}function k$(e,t){const n=S$();if(!n)return!1;const r=function(e){const t=e.dataTransfer?.getData("application/x-lexical-drag");if(!t)return null;const{type:n,data:r}=JSON.parse(t);return n!==kF?null:r}(e);if(!r)return!1;const o=Xs(n,e=>!Tc(e)&&kc(e));if(e.preventDefault(),w$(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 s=io();null!=i&&s.applyDOMRange(i),qi(s),t.dispatchCommand(CF,{...r}),o&&t.dispatchCommand(Ac,o.getURL())}return!0}_$.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const C$=()=>{const[e]=Tu(),{emitter:t,layout:n,model:r}=b(H),[o,i]=S();return w(()=>{"function"==typeof r?.getProperties&&r?.getProperties().then(e=>{i(e)})},[n,r]),w(()=>Va(e.registerCommand(CF,({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:s,method:a})=>(e.update(()=>{const e=x$({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:s,method:a});yo([e]),Cs(e.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(e,ui).selectEnd()}),!0),fi),e.registerCommand(dn,t=>{const r=co();if(!r)return!1;const i=r.getNodes().some(e=>e.getType()===y$.getType());if(!i)return!1;const s=rd(r),a=s["application/x-lexical-editor"];if(!a)return!1;const l=e=>{if(e.type===y$.getType()){const t={...e};return t.tempUrl=t.tempUrl||AF(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},c=JSON.parse(a);if(Array.isArray(c.nodes)){c.nodes=c.nodes.map(l);const n={...s,"application/x-lexical-editor":JSON.stringify(c)};return ed(e,wl(t,ClipboardEvent)?t:null,n),!0}return!1},3),e.registerCommand(ln,e=>function(e){const t=S$();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(_$,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:kF})),!0)}(e),3),e.registerCommand(cn,e=>function(e){return!!S$()&&(w$(e)||e.preventDefault(),!1)}(e),1),e.registerCommand(sn,t=>k$(t,e),3)),[e,t,o,n]),null};const E$=()=>((()=>{const e=k(null),{printingStatus:t}=b(H),[n]=Tu();w(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function T$({interactionState:e}){const{initialData:t,lang:n,flags:r,showMediaLibrary:o}=b(H),i=e?.edit,s=!(!1===i&&r?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));w(()=>{!function(e){const t=Object.entries(aF[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});DI.configure(t,e)}(n)},[n]);const a=x(()=>{if(void 0!==t){const n=t||void 0,o=[...Aj,wF];return r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?o.push(y$):o.push((e=kF,class t extends Zo{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=Uz.nodes;e.nodes&&(t=Uz.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...Uz,nodes:t,editorState:n}})({initialData:n,nodes:o})}var e;return null},[t,r]);return a?Nu.jsx("div",{className:"hideScrollBar",children:Nu.jsxs(Gz,{initialConfig:a,flags:r,children:[Nu.jsx(i$,{}),Nu.jsx($j,{showPlaceholder:s}),Nu.jsx(Fj,{}),o&&r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Nu.jsx(C$,{}):null,Nu.jsx(NF,{}),Nu.jsx(MF,{}),Nu.jsx(PF,{}),Nu.jsx(E$,{})]})}):null}const A$=({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:s,lang:a,flags:l,theme:c,interactionState:u,printingStatus:d,showMediaLibrary:f})=>{e.render(Nu.jsx(y.StrictMode,{children:Nu.jsx(H.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:s,lang:a,flags:l,theme:c,printingStatus:d,showMediaLibrary:f},children:Nu.jsx(T$,{interactionState:u})})}))},L$={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:yF,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"}]}}}}},M$={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}}}}};class R${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 N$=({layout:e,flags:t})=>{const[i,s]=r(null);return o(()=>new Promise(n=>{const r=new Set;t.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&e.images&&e.images.forEach(e=>{e.id&&r.add(e.id)}),s({resolve:(e,t)=>{e&&r.delete(e),(0===r.size||t)&&(s(null),n?.(e))}})}),[]),n(()=>{let e;return i&&(e=setTimeout(()=>{i.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[i]),{printingStatus:i}},O$=({propertyPanelHandlerData:e,flags:t})=>{const o=i(),u=s(),d=a(),f=l(),p=c(),[h,g]=r(!1),[m,v]=r(1),[b,y]=r(!1),x=e=>{e||v(0),(e=>!!e.qExtendsId)(u)||(e&&y(!0),g(e),p.emit("njs-internal-edit-change",e))};return n(()=>{2===m&&f.edit&&f.select&&x(!0)},[m,f]),n(()=>{const n=()=>{f.edit&&f.select&&v(e=>e+1)},r=e=>{const n=document.getElementById(t$(d));o.contains(e.target)||n?.contains(e.target)||(e=>{const n=document.getElementsByClassName("tekPopperMenu"),r=document.getElementById("tekTableMenu");if(r?.contains(e))return!0;if(t?.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 t=0;t<n.length;t++)if(n[t].contains(e))return!0;return!1})(e.target)||x(!1)};if(!f.edit||!f.select){x(!1);const t=d?.id&&e.getSnTexts()[d.id]?.propertiesHaveBeenModified;d&&(b||t)&&(p.emit("saveDocument"),e.setPropertiesHaveBeenModified(d.id,!1))}return o.addEventListener("click",n),document.addEventListener("mousedown",r),()=>{o.removeEventListener("click",n),document.removeEventListener("mousedown",r)}},[o,f,d]),n(()=>{!h&&b&&p.emit("saveDocument")},[h,p,b]),{edit:h}}}}});
101
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,s,a,l,c,u,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))+"",a=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=a)&&(t=(+t).toFixed(a+1)),u=e[0].split(i),e[0]=u.join(""),(s=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-s;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.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}},UB({exports:{}});const t$=e=>`text-toolbar.${e?.id}`,n$=E((e,t)=>Nu.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:Nu.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"})})),r$=aD(sD,"InsertImage"),o$=()=>{const{flags:e,showMediaLibrary:t}=b(H),[n]=Tu(),r=M(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(CF,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Nu.jsx(r$,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:Nu.jsx(n$,{height:12})}):null};function i$(){const{element:e,edit:t,model:n,flags:r,theme:o}=b(H),i=x(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),s=x(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?VF:YF}(r),[r]),a=x(()=>(e=>{const t=e?.getDataColorPickerPalettes();if(t&&t?.length>0)return["#404040",...t[0].colors.filter(e=>"none"!==e)]})(o),[o]);return Nu.jsx(O_,{open:t,anchorEl:i,placement:"top",transition:!0,sx:{zIndex:2},id:t$(n),children:({TransitionProps:e})=>Nu.jsx(_w,{...e,children:Nu.jsx(Ty,{sx:{borderRadius:1,padding:.25},children:Nu.jsxs(Vj,{children:[Nu.jsx(iD,{compact:!0}),Nu.jsx(YD,{}),Nu.jsx(PD,{compact:!0,fonts:s}),Nu.jsx(DD,{compact:!0}),Nu.jsx(YD,{}),Nu.jsx(uD,{}),Nu.jsx(HD,{}),Nu.jsx(GD,{}),Nu.jsx(KD,{}),Nu.jsx(OD,{colorPalette:a}),Nu.jsx(YD,{}),Nu.jsx(eD,{compact:!0}),Nu.jsx(YD,{}),Nu.jsx(hD,{}),Nu.jsx(YD,{}),Nu.jsx(BD,{}),Nu.jsx(o$,{})]})})})})}function s$(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))}}s$(".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");s$(".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 a$=1,l$=8,c$=2,u$=4;function d$({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=S(null),s=S({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),a=S({priority:"",value:"default"}),l=o.getRootElement();let c=r;c||(c=null!==l?l.getBoundingClientRect().width:100);const u=null!==l?l.getBoundingClientRect().height:100,d=(t,r)=>{const o=n.current,c=i.current;if(null!==o&&null!==c){const{width:n,height:i}=o.getBoundingClientRect(),u=s.current;u.startWidth=n,u.startHeight=i,u.ratio=n/i,u.currentWidth=n,u.currentHeight=i,u.startX=t.clientX,u.startY=t.clientY,u.isResizing=!0,u.direction=r,(e=>{let t;t=e===a$||e===u$?"ew":e===l$||e===c$?"ns":e&l$&&e&u$||e&c$&&e&a$?"nwse":"nesw",null!==l&&l.style.setProperty("cursor",`${t}-resize`,"important"),null!==document.body&&(document.body.style.setProperty("cursor",`${t}-resize`,"important"),a.current.value=document.body.style.getPropertyValue("-webkit-user-select"),a.current.priority=document.body.style.getPropertyPriority("-webkit-user-select"),document.body.style.setProperty("-webkit-user-select","none","important"))})(r),e(),c.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=s.current,o=r.direction&(a$|u$),i=r.direction&(c$|l$);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&a$?-n:n;const o=f$(r.startWidth+n,20,c),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&c$?-n:n;const o=f$(r.startHeight+n,20,u);t.style.height=`${o}px`,r.currentHeight=o}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&a$?-n:n;const o=f$(r.startWidth+n,20,c);t.style.width=`${o}px`,r.currentWidth=o}},p=()=>{const e=n.current,r=s.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",a.current.value,a.current.priority)),t(e,n),document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",p)}};return Nu.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[Nu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_n",onPointerDown:e=>{d(e,l$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_ne"}),Nu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,l$|a$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,a$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_se"}),Nu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,c$|a$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,c$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_sw"}),Nu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,c$|u$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,u$)}}),Nu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_nw"}),Nu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,l$|u$)}})]})}const f$=(e,t,n)=>Math.min(Math.max(e,t),n),p$=new Map,h$=({altText:e,className:t,imageRef:n,src:r,width:o,height:i,maxWidth:s,maxHeight:a,onError:l,onLoad:c,onContextMenu:u})=>{const d=(e=>{let t=p$.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=>(p$.set(e,t),t)),p$.set(e,t),t;throw t})(r);w(()=>{d.error&&l()},[d.error,l]);const f=(()=>{if(d.error)return{height:100,maxWidth:s,width:100};let e=!1,t="inherit"===o?d.width:o,n="inherit"===i?d.height:i;if(s&&t>s){const r=s/t;t=s,n=Math.round(n*r),e=!0}if(a&&n>a){const r=a/n;n=a,t=Math.round(t*r),e=!0}return{height:e?n:i,maxWidth:s,width:e?t:o}})();return Nu.jsx("img",{className:t||void 0,src:r,alt:e,ref:n,style:f,onError:l,draggable:"false","data-testid":"sn-text-image",onLoad:c,onContextMenu:u})};function g$({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:s}){const a=S(null),[l,c,u]=cF(s),[d,f]=k(!1),[p]=Tu(),h=Rd(),{layout:g,printingStatus:m}=b(H),v=void 0,y=x(()=>e||AF(g,t),[e,g,t]);w(()=>{!h&&l&&u()},[h,l,u]);const _=M(e=>{const t=e;return!!d||t.target===a.current&&(t.shiftKey?c(!l):(u(),c(!0)),!0)},[d,l,c,u]),C=M(()=>!!l&&(qi(null),p.focus(),!0),[l,p]);w(()=>Va(p.registerCommand(Tt,_,1),p.registerCommand(ln,e=>e.target===a.current&&(e.preventDefault(),!0),1),p.registerCommand(Zt,C,1)),[p,_,C]);const E=l&&!d&&h,T=(l||d)&&h;return Nu.jsx(O,{fallback:null,children:Nu.jsxs(Nu.Fragment,{children:[Nu.jsx("div",{draggable:E,"data-testid":"sn-text-image-container",children:Nu.jsx(h$,{className:`${T?"focused":""} ${E?"draggable":""}`,src:y,altText:n,imageRef:a,width:r,height:o,maxWidth:v,onLoad:()=>m?.resolve(t,!1),onError:()=>m?.resolve(t,!1),onContextMenu:e=>{p.dispatchCommand(Tt,e.nativeEvent)}})}),i&&l&&T?Nu.jsx(d$,{editor:p,imageRef:a,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=Hi(s);n?.getType()===SF&&n.setWidthAndHeight(e,t)})}}):null]})})}var m$=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),v$=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),b$=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class y$ extends Zo{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 SF}static clone(e){return new y$({...e.__props,key:e.getKey()})}decorate(){return Nu.jsx(g$,{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:SF,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===y$.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||v$(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let s=m$(n);s=b$(s),s=decodeURIComponent(s);return{node:x$({altText:r,height:i,tempUrl:s,tempUrlDef:s,width:o})}},priority:0})}}static importJSON(e){return x$(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const x$=e=>new y$(e),_$=document.createElement("img");function w$(e){const t=e.target;return!!(t&&Os(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&Os(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function k$(){const e=co();if(!Yr(e))return null;const t=e.getNodes()[0];return t.getType()===SF?t:null}function S$(e,t){const n=k$();if(!n)return!1;const r=function(e){const t=e.dataTransfer?.getData("application/x-lexical-drag");if(!t)return null;const{type:n,data:r}=JSON.parse(t);return n!==SF?null:r}(e);if(!r)return!1;const o=Xs(n,e=>!Tc(e)&&Sc(e));if(e.preventDefault(),w$(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 s=io();null!=i&&s.applyDOMRange(i),qi(s),t.dispatchCommand(CF,{...r}),o&&t.dispatchCommand(Ac,o.getURL())}return!0}_$.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const C$=()=>{const[e]=Tu(),{emitter:t,layout:n,model:r}=b(H),[o,i]=k();return w(()=>{"function"==typeof r?.getProperties&&r?.getProperties().then(e=>{i(e)})},[n,r]),w(()=>Va(e.registerCommand(CF,({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:s,method:a})=>(e.update(()=>{const e=x$({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:s,method:a});yo([e]),Cs(e.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(e,ui).selectEnd()}),!0),fi),e.registerCommand(dn,t=>{const r=co();if(!r)return!1;const i=r.getNodes().some(e=>e.getType()===y$.getType());if(!i)return!1;const s=rd(r),a=s["application/x-lexical-editor"];if(!a)return!1;const l=e=>{if(e.type===y$.getType()){const t={...e};return t.tempUrl=t.tempUrl||AF(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},c=JSON.parse(a);if(Array.isArray(c.nodes)){c.nodes=c.nodes.map(l);const n={...s,"application/x-lexical-editor":JSON.stringify(c)};return ed(e,wl(t,ClipboardEvent)?t:null,n),!0}return!1},3),e.registerCommand(ln,e=>function(e){const t=k$();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(_$,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:SF})),!0)}(e),3),e.registerCommand(cn,e=>function(e){return!!k$()&&(w$(e)||e.preventDefault(),!1)}(e),1),e.registerCommand(sn,t=>S$(t,e),3)),[e,t,o,n]),null};const E$=()=>((()=>{const e=S(null),{printingStatus:t}=b(H),[n]=Tu();w(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function T$({interactionState:e}){const{initialData:t,lang:n,flags:r,showMediaLibrary:o}=b(H),i=e?.edit,s=!(!1===i&&r?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));w(()=>{!function(e){const t=Object.entries(aF[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});DI.configure(t,e)}(n)},[n]);const a=x(()=>{if(void 0!==t){const n=t||void 0,o=[...Aj,wF];return r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?o.push(y$):o.push((e=SF,class t extends Zo{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=Uz.nodes;e.nodes&&(t=Uz.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...Uz,nodes:t,editorState:n}})({initialData:n,nodes:o})}var e;return null},[t,r]);return a?Nu.jsx("div",{className:"hideScrollBar",children:Nu.jsxs(Gz,{initialConfig:a,flags:r,children:[Nu.jsx(i$,{}),Nu.jsx($j,{showPlaceholder:s}),Nu.jsx(Fj,{}),o&&r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Nu.jsx(C$,{}):null,Nu.jsx(NF,{}),Nu.jsx(MF,{}),Nu.jsx(PF,{}),Nu.jsx(E$,{})]})}):null}const A$=({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:s,lang:a,flags:l,theme:c,interactionState:u,printingStatus:d,showMediaLibrary:f})=>{e.render(Nu.jsx(y.StrictMode,{children:Nu.jsx(H.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:s,lang:a,flags:l,theme:c,printingStatus:d,showMediaLibrary:f},children:Nu.jsx(T$,{interactionState:u})})}))},L$={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:yF,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"}]}}}}},M$={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}}}}};class R${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 N$=({layout:e,flags:t})=>{const[i,s]=r(null);return o(()=>new Promise(n=>{const r=new Set;t.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&e.images&&e.images.forEach(e=>{e.id&&r.add(e.id)}),s({resolve:(e,t)=>{e&&r.delete(e),(0===r.size||t)&&(s(null),n?.(e))}})}),[]),n(()=>{let e;return i&&(e=setTimeout(()=>{i.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[i]),{printingStatus:i}},O$=({propertyPanelHandlerData:e,flags:t})=>{const o=i(),u=s(),d=a(),f=l(),p=c(),[h,g]=r(!1),[m,v]=r(1),[b,y]=r(!1),x=e=>{e||v(0),(e=>!!e.qExtendsId)(u)||(e&&y(!0),g(e),p.emit("njs-internal-edit-change",e))};return n(()=>{2===m&&f.edit&&f.select&&x(!0)},[m,f]),n(()=>{const n=()=>{f.edit&&f.select&&v(e=>e+1)},r=e=>{const n=document.getElementById(t$(d));o.contains(e.target)||n?.contains(e.target)||(e=>{const n=document.getElementsByClassName("tekPopperMenu"),r=document.getElementById("tekTableMenu");if(r?.contains(e))return!0;if(t?.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 t=0;t<n.length;t++)if(n[t].contains(e))return!0;return!1})(e.target)||x(!1)};if(!f.edit||!f.select){x(!1);const t=d?.id&&e.getSnTexts()[d.id]?.propertiesHaveBeenModified;d&&(b||t)&&(p.emit("saveDocument"),e.setPropertiesHaveBeenModified(d.id,!1))}return o.addEventListener("click",n),document.addEventListener("mousedown",r),()=>{o.removeEventListener("click",n),document.removeEventListener("mousedown",r)}},[o,f,d]),n(()=>{!h&&b&&p.emit("saveDocument")},[h,p,b]),{edit:h}}}}});