@nebula.js/sn-text 1.3.4 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-spec/spec.json +1 -1
- package/core/esm/index.js +22 -10
- package/dist/sn-text.js +22 -10
- package/dist/sn-text.systemjs.js +21 -9
- package/package.json +31 -32
- package/sn-text-ext/dist/sn-text.js +22 -10
- package/sn-text-ext/sn-text.qext +1 -1
package/dist/sn-text.systemjs.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-text v1.3.
|
|
2
|
+
* @nebula.js/sn-text v1.3.6
|
|
3
3
|
* Copyright (c) 2025 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,a,l,s,u,c,d,p,f,h,m,g,v,b,y,x,_,E,C,S,w,k,T;return{setters:[function(e){t=e.useMemo,n=e.useEffect,r=e.useElement,o=e.useStaleLayout,i=e.useModel,a=e.useInteractionState,l=e.useEmitter,s=e.useTranslator,u=e.useState,c=e.useTheme,d=e.usePromise,p=e.useImperativeHandle},function(e){f=e.default,h=e},function(e){m=e.createContext,g=e.default,v=e,b=e.forwardRef,y=e.useContext,x=e.isValidElement,_=e.cloneElement,E=e.Children,C=e.useState,S=e.useEffect,w=e.useRef,k=e.useCallback,T=e.useMemo}],execute:function(){e("default",(function(e){const t=new WC,{flags:f}=e,h=[];return{qae:{properties:A,data:N(t)},component(){const e=r(),m=P(e),g=o(),v=i(),b=a(),y=l(),x=s(),[_,E]=u(!1),[C,S]=u(void 0),[w,k]=u(1),T=c(),[A,N]=u(!1),[R,M]=u(null);d((()=>new Promise((e=>{var t;const n={id:null==g||null===(t=g.qInfo)||void 0===t?void 0:t.qId,resolve:e};h.push(n)}))),[]);const L=e=>{e||k(0),uE(g)||(!0===e&&N(!0),E(e),y.emit("njs-internal-edit-change",e))};n((()=>{const e=e=>{!async function(e,t){!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){var r;const e=null===(r=n.qMeasures)||void 0===r?void 0:r.filter((e=>!(null==t?void 0:t.find((t=>{var n;return t===(null==e||null===(n=e.qDef)||void 0===n?void 0:n.cId)})))));n.qMeasures=e,n.qInterColumnSortOrder=[]}return{...e,qHyperCubeDef:n}}))}(v,e)};return y.on("onNodeDestroyed",e),()=>{y.removeListener("onNodeDestroyed",e)}}),[y,v]),n((()=>{2===w&&b.edit&&b.select&&L(!0)}),[w,b]),n((()=>{g&&void 0===C&&(S(g.text||null),M(null==g?void 0:g.text))}),[g,C]),n((()=>{const n=()=>{b.edit&&b.select&&k((e=>e+1))},r=t=>{const n=document.getElementById($C(v));e.contains(t.target)||null!=n&&n.contains(t.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),n=document.getElementById("tekTableMenu");if(null!=n&&n.contains(e))return!0;for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0;return!1})(t.target)||L(!1)};if(!b.edit||!b.select){var o;L(!1);const e=(null==v?void 0:v.id)&&(null===(o=t.getSnTexts()[v.id])||void 0===o?void 0:o.propertiesHaveBeenModified);(A||e)&&(y.emit("saveDocument"),t.setPropertiesHaveBeenModified(v.id,!1))}return e.addEventListener("click",n),document.addEventListener("mousedown",r),()=>{e.removeEventListener("click",n),document.removeEventListener("mousedown",r)}}),[e,b,v]),n((()=>{FC({rootElement:m,layout:g,model:v,element:e,edit:_,initialData:C,emitter:y,lang:x.language(),flags:f,theme:T,interactionState:b,readyToPrint:h})}),[g,m,v,e,_,e,C,y,f,T,b]),n((()=>{!_&&A&&y.emit("saveDocument")}),[_,y,A]),n((()=>{if(g){const e=g;e.text&&e.text!==R&&(M(e.text),y.emit("reloadData",e.text))}}),[g,R,y]),p((()=>({updateActiveState(e){e?t.setSelectedModelId(v.id):v.id===t.getSelectedModelId()&&t.setSelectedModelId(void 0)}})),[])},ext:{definition:{type:"items",component:"accordion",items:{data:HC,settings:jC}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}}}}));const A={version:"1.3.4",showTitles:!1,text:null,fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!1},N=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 R(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function M(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?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 L,O={};var I=function(){if(L)return O;L=1;var e=f;return O.createRoot=e.createRoot,O.hydrateRoot=e.hydrateRoot,O}();const P=e=>{const r=t((()=>I.createRoot(e)),[e]);return n((()=>()=>{null==r||r.unmount()}),[r]),r},D=m({layout:void 0,model:void 0,element:void 0,edit:!1,initialData:void 0,emitter:void 0,lang:"en",flags:{isEnabled:()=>!1},theme:null,readyToPrint:[]});var $,z,B,F,H,j,W,G,K,Y,U,V,q={},Q={},J={},X={};function Z(){if($)return X;$=1;let e={},t={},n={},r={},o={},i={},a={},l={},s={},u={},c={},d={},p={},f={},h={},m={},g={},v={},b={},y={},x={},_={},E={},C={},S={},w={},k={},T={},A={},N={},R={},M={},L={},O={},I={};function P(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let D="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,z=D&&"documentMode"in document?document.documentMode:null,B=D&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),F=D&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),H=!(!D||!("InputEvent"in window)||z)&&"getTargetRanges"in new window.InputEvent("input"),j=D&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),W=D&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,G=D&&/^(?=.*Chrome).*/i.test(navigator.userAgent),K=D&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!G,Y=j||W||K?" ":"",U=F?" ":Y,V=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,q=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,Q={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},J={directionless:1,unmergeable:2},Z={center:2,end:6,justify:4,left:1,right:3,start:5},ee={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},te={normal:0,segmented:2,token:1},ne={0:"normal",2:"segmented",1:"token"},re=!1,oe=0;function ie(e){oe=e.timeStamp}function ae(e,t,n){return t.__lexicalLineBreak===e||void 0!==e[`__lexicalKey_${n._key}`]}function le(e,t,n){re=!0;let r=100<performance.now()-oe;try{kr(e,(()=>{let o=tr()||function(e){return e.getEditorState().read((()=>{let e=tr();return null!==e?e.clone():null}))}(e);var i=new Map,a=e.getRootElement(),l=e._editorState,s=e._blockCursorElement;let u=!1,c="";for(var d=0;d<t.length;d++){var p=t[d],f=p.type,h=p.target,m=Me(h,l);if(!(null===m&&h!==a||Ar(m)))if("characterData"===f){if(p=r&&Rn(m))e:{f=h;var g=m;if(Bn(p=o)){var v=p.anchor.getNode();if(v.is(g)&&p.format!==v.getFormat()){p=!1;break e}}p=3===f.nodeType&&g.isAttached()}p&&(f=p=null,null!==(g=at(e._window))&&g.anchorNode===h&&(p=g.anchorOffset,f=g.focusOffset),null!==(h=h.nodeValue)&&He(m,h,p,f,!1))}else if("childList"===f){for(u=!0,f=p.addedNodes,g=0;g<f.length;g++){var b=Re(v=f[g]),y=v.parentNode;null==y||v===s||null!==b||"BR"===v.nodeName&&ae(v,y,e)||(F&&(b=v.innerText||v.nodeValue)&&(c+=b),y.removeChild(v))}if(0<(f=(p=p.removedNodes).length)){for(g=0,v=0;v<f;v++)("BR"===(y=p[v]).nodeName&&ae(y,h,e)||s===y)&&(h.appendChild(y),g++);f!==g&&(h===a&&(m=l._nodeMap.get("root")),i.set(h,m))}}}if(0<i.size)for(let[t,n]of i)if(Rr(n))for(i=n.getChildrenKeys(),a=t.firstChild,l=0;l<i.length;l++)null!==(s=e.getElementByKey(i[l]))&&(null==a?(t.appendChild(s),a=s):a!==s&&t.replaceChild(s,a),a=a.nextSibling);else Rn(n)&&n.markDirty();if(0<(i=n.takeRecords()).length){for(a=0;a<i.length;a++)for(l=(s=i[a]).addedNodes,s=s.target,d=0;d<l.length;d++)null==(h=(m=l[d]).parentNode)||"BR"!==m.nodeName||ae(m,s,e)||h.removeChild(m);n.takeRecords()}null!==o&&(u&&(o.dirty=!0,Pe(o)),F&&Ue(e)&&o.insertRawText(c))}))}finally{re=!1}}function se(e){let t=e._observer;if(null!==t){le(e,t.takeRecords(),t)}}function ue(e){0===oe&&Xe(e).addEventListener("textInput",ie,!0),e._observer=new MutationObserver(((t,n)=>{le(e,t,n)}))}function ce(e,t){let n=e.__mode,r=e.__format;e=e.__style;let o=t.__mode,i=t.__format;return t=t.__style,!(null!==n&&n!==o||null!==r&&r!==i||null!==e&&e!==t)}function de(e,t){let n=e.mergeWithSibling(t),r=vr()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function pe(e){if(""===e.__text&&e.isSimpleText()&&!e.isUnmergeable())e.remove();else{for(var t;null!==(t=e.getPreviousSibling())&&Rn(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){ce(t,e)&&(e=de(t,e));break}t.remove()}for(var n;null!==(n=e.getNextSibling())&&Rn(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){ce(e,n)&&de(e,n);break}n.remove()}}}function fe(e){return he(e.anchor),he(e.focus),e}function he(e){for(;"element"===e.type;){var t=e.getNode(),n=e.offset;if(n===t.getChildrenSize()?(t=t.getChildAtIndex(n-1),n=!0):(t=t.getChildAtIndex(n),n=!1),Rn(t)){e.set(t.__key,n?t.getTextContentSize():0,"text");break}if(!Rr(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element")}}let me=1,ge="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function ve(e){let t=document.activeElement;if(null===t)return!1;let n=t.nodeName;return Ar(Me(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==t.__lexicalEditor)}function be(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!ve(t)&&ye(t)===e}catch(e){return!1}}function ye(e){for(;null!=e;){let t=e.__lexicalEditor;if(null!=t)return t;e=Qe(e)}return null}function xe(e){return e.isToken()||e.isSegmented()}function _e(e){for(;null!=e;){if(3===e.nodeType)return e;e=e.firstChild}return null}function Ee(e,t,n){return!(e&(t=Q[t]))||null!==n&&n&t?null===n||n&t?e|t:e:e^t}function Ce(e){return Rn(e)||hn(e)||Ar(e)}function Se(e,t){if(null!=t)e.__key=t;else{mr(),99<pr&&P(14),t=vr();var n=gr(),r=""+me++;n._nodeMap.set(r,e),Rr(e)?t._dirtyElements.set(r,!0):t._dirtyLeaves.add(r),t._cloneNotNeeded.add(r),t._dirtyType=1,e.__key=r}}function we(e){var t=e.getParent();if(null!==t){let o=e.getWritable();t=t.getWritable();var n=e.getPreviousSibling();if(e=e.getNextSibling(),null===n)if(null!==e){var r=e.getWritable();t.__first=e.__key,r.__prev=null}else t.__first=null;else{if(r=n.getWritable(),null!==e){let t=e.getWritable();t.__prev=r.__key,r.__next=t.__key}else r.__next=null;o.__prev=null}null===e?null!==n?(e=n.getWritable(),t.__last=n.__key,e.__next=null):t.__last=null:(e=e.getWritable(),null!==n?((n=n.getWritable()).__next=e.__key,e.__prev=n.__key):e.__prev=null,o.__next=null),t.__size--,o.__parent=null}}function ke(e){99<pr&&P(14);var t=e.getLatest(),n=t.__parent,r=gr();let o=vr(),i=r._nodeMap;if(r=o._dirtyElements,null!==n)e:for(;null!==n&&!r.has(n);){let e=i.get(n);if(void 0===e)break;r.set(n,!1),n=e.__parent}t=t.__key,o._dirtyType=1,Rr(e)?r.set(t,!0):o._dirtyLeaves.add(t)}function Te(e){mr();var t=vr();let n=t._compositionKey;e!==n&&(t._compositionKey=e,null!==n&&(null!==(t=Ne(n))&&t.getWritable()),null!==e&&(null!==(e=Ne(e))&&e.getWritable()))}function Ae(){return hr()?null:vr()._compositionKey}function Ne(e,t){return void 0===(e=(t||gr())._nodeMap.get(e))?null:e}function Re(e,t){return void 0!==(e=e[`__lexicalKey_${vr()._key}`])?Ne(e,t):null}function Me(e,t){for(;null!=e;){let n=Re(e,t);if(null!==n)return n;e=Qe(e)}return null}function Le(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t}function Oe(e){return e.read((()=>Ie().getTextContent()))}function Ie(){return gr()._nodeMap.get("root")}function Pe(e){mr();let t=gr();null!==e&&(e.dirty=!0,e._cachedNodes=null),t._selection=e}function De(e){var t,n=vr();e:{for(t=e;null!=t;){let e=t[`__lexicalKey_${n._key}`];if(void 0!==e){t=e;break e}t=Qe(t)}t=null}return null===t?e===(n=n.getRootElement())?Ne("root"):null:Ne(t)}function $e(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function ze(e){let t=[];for(;null!==e;)t.push(e),e=e._parentEditor;return t}function Be(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Fe(e,t,n){if(null!==(t=at(t._window))){var r=t.anchorNode,{anchorOffset:o,focusOffset:i}=t;if(null!==r&&(t=3===r.nodeType?r.nodeValue:null,r=Me(r),null!==t&&Rn(r))){if(t===Y&&n){t=n,i=o=n.length}null!==t&&He(r,t,o,i,e)}}}function He(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){let u=i.isComposing(),c=t;if((u||o)&&t[t.length-1]===Y&&(c=t.slice(0,-1)),t=i.getTextContent(),o||c!==t)if(""===c)if(Te(null),j||W||K)i.remove();else{let e=vr();setTimeout((()=>{e.update((()=>{i.isAttached()&&i.remove()}))}),20)}else{o=i.getParent(),t=nr();var a=i.getTextContentSize(),l=Ae(),s=i.getKey();i.isToken()||null!==l&&s===l&&!u||Bn(t)&&(null!==o&&!o.canInsertTextBefore()&&0===t.anchor.offset||t.anchor.key===e.__key&&0===t.anchor.offset&&!i.canInsertTextBefore()||t.focus.key===e.__key&&t.focus.offset===a&&!i.canInsertTextAfter())?i.markDirty():(Bn(e=tr())&&null!==n&&null!==r&&(e.setTextNodeRange(i,n,i,r),i.isSegmented()&&(n=Nn(n=i.getTextContent()),i.replace(n),i=n)),i.setTextContent(c))}}}function je(){var e=Ie();Pe(fe(e=e.select(0,e.getChildrenSize())))}function We(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];return void 0!==r?r:"string"==typeof(e=e[t])?(e=e.split(" "),n[t]=e):e}function Ge(e,t,n,r,o){0!==n.size&&(n=r.__type,r=r.__key,void 0===(t=t.get(n))&&P(33,n),n=t.klass,void 0===(t=e.get(n))&&(t=new Map,e.set(n,t)),n="destroyed"===(e=t.get(r))&&"created"===o,(void 0===e||n)&&t.set(r,n?"updated":o))}function Ke(e,t,n){let r=e.getParent(),o=n;return null!==r&&(t&&0===n?(o=e.getIndexWithinParent(),e=r):t||n!==e.getChildrenSize()||(o=e.getIndexWithinParent()+1,e=r)),e.getChildAtIndex(t?o-1:o)}function Ye(e,t){var n=e.offset;return"element"===e.type?Ke(e=e.getNode(),t,n):(e=e.getNode(),t&&0===n||!t&&n===e.getTextContentSize()?null===(n=t?e.getPreviousSibling():e.getNextSibling())?Ke(e.getParentOrThrow(),t,e.getIndexWithinParent()+(t?0:1)):n:null)}function Ue(e){return"insertFromPaste"===(e=(e=Xe(e).event)&&e.inputType)||"insertFromPasteAsQuotation"===e}function Ve(e){return!Or(e)&&!e.isLastChild()&&!e.isInline()}function qe(e,t){return void 0===(e=e._keyToDOMMap.get(t))&&P(75,t),e}function Qe(e){return null!==(e=e.assignedSlot||e.parentElement)&&11===e.nodeType?e.host:e}function Je(e,t){for(e=e.getParent();null!==e;){if(e.is(t))return!0;e=e.getParent()}return!1}function Xe(e){return null===(e=e._window)&&P(78),e}function Ze(e){for(e=e.getParentOrThrow();null!==e&&!et(e);)e=e.getParentOrThrow();return e}function et(e){return Or(e)||Rr(e)&&e.isShadowRoot()}function tt(e){return Se(e=e.constructor.clone(e),null),e}function nt(e){var t=vr();let n=e.constructor.getType();return void 0===(t=t._nodes.get(n))&&P(97),null!==(t=t.replace)?((t=t(e))instanceof e.constructor||P(98),t):e}function rt(e,t){!Or(e=e.getParent())||Rr(t)||Ar(t)||P(99)}function ot(e){return(Ar(e)||Rr(e)&&!e.canBeEmpty())&&!e.isInline()}function it(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null,null!==(t=e.parentElement)&&t.removeChild(e)}function at(e){return D?(e||window).getSelection():null}function lt(e,t){let n=e.getChildAtIndex(t);null==n&&(n=e),et(e)&&P(102);let r=e=>{const t=e.getParentOrThrow(),o=et(t),i=e!==n||o?tt(e):e;if(o)return e.insertAfter(i),[e,i,i];const[a,l,s]=r(t);return e=e.getNextSiblings(),s.append(i,...e),[a,l,i]},[o,i]=r(n);return[o,i]}function st(e,t){for(;e!==Ie()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}function ut(e){let t=[],n=[e];for(;0<n.length;){let r=n.pop();void 0===r&&P(112),Rr(r)&&n.unshift(...r.getChildren()),r!==e&&t.push(r)}return t}function ct(e,t,n,r,o,i){for(e=e.getFirstChild();null!==e;){let a=e.__key;e.__parent===t&&(Rr(e)&&ct(e,a,n,r,o,i),n.has(a)||i.delete(a),o.push(a)),e=e.getNextSibling()}}let dt,pt,ft,ht,mt,gt,vt,bt,yt,xt,_t="",Et="",Ct="",St=!1,wt=!1,kt=null;function Tt(e,t){let n=vt.get(e);if(null!==t){let n=Ht(e);n.parentNode===t&&t.removeChild(n)}bt.has(e)||pt._keyToDOMMap.delete(e),Rr(n)&&At(e=$t(n,vt),0,e.length-1,null),void 0!==n&&Ge(xt,ft,ht,n,"destroyed")}function At(e,t,n,r){for(;t<=n;++t){let n=e[t];void 0!==n&&Tt(n,r)}}function Nt(e,t){e.setProperty("text-align",t)}function Rt(e,t){var n=dt.theme.indent;if("string"==typeof n){let r=e.classList.contains(n);0<t&&!r?e.classList.add(n):1>t&&r&&e.classList.remove(n)}n=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||"40px",e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${n})`)}function Mt(e,t){e=e.style,0===t?Nt(e,""):1===t?Nt(e,"left"):2===t?Nt(e,"center"):3===t?Nt(e,"right"):4===t?Nt(e,"justify"):5===t?Nt(e,"start"):6===t&&Nt(e,"end")}function Lt(e,t,n){let r=bt.get(e);void 0===r&&P(60);let o=r.createDOM(dt,pt);var i=pt._keyToDOMMap;if(o["__lexicalKey_"+pt._key]=e,i.set(e,o),Rn(r)?o.setAttribute("data-lexical-text","true"):Ar(r)&&o.setAttribute("data-lexical-decorator","true"),Rr(r)){if(e=r.__indent,i=r.__size,0!==e&&Rt(o,e),0!==i){--i,e=$t(r,bt);var a=Et;Et="",Ot(e,r,0,i,o,null),Dt(r,o),Et=a}0!==(e=r.__format)&&Mt(o,e),r.isInline()||Pt(null,r,o),Ve(r)&&(_t+="\n\n",Ct+="\n\n")}else i=r.getTextContent(),Ar(r)?(null!==(a=r.decorate(pt,dt))&&Bt(e,a),o.contentEditable="false"):Rn(r)&&(r.isDirectionless()||(Et+=i)),_t+=i,Ct+=i;return null!==t&&(null!=n?t.insertBefore(o,n):null!=(n=t.__lexicalLineBreak)?t.insertBefore(o,n):t.appendChild(o)),Ge(xt,ft,ht,r,"created"),o}function Ot(e,t,n,r,o,i){let a=_t;for(_t="";n<=r;++n)Lt(e[n],o,i);Ve(t)&&(_t+="\n\n"),o.__lexicalTextContent=_t,_t=a+_t}function It(e,t){return hn(e=t.get(e))||Ar(e)&&e.isInline()}function Pt(e,t,n){e=null!==e&&(0===e.__size||It(e.__last,vt)),t=0===t.__size||It(t.__last,bt),e?t||(null!=(t=n.__lexicalLineBreak)&&n.removeChild(t),n.__lexicalLineBreak=null):t&&(t=document.createElement("br"),n.__lexicalLineBreak=t,n.appendChild(t))}function Dt(e,t){var n=t.__lexicalDir;if(t.__lexicalDirTextContent!==Et||n!==kt){let i=""===Et;if(i)var r=kt;else r=Et,r=V.test(r)?"rtl":q.test(r)?"ltr":null;if(r!==n){let a=t.classList,l=dt.theme;var o=null!==n?l[n]:void 0;let s=null!==r?l[r]:void 0;void 0!==o&&("string"==typeof o&&(o=o.split(" "),o=l[n]=o),a.remove(...o)),null===r||i&&"ltr"===r?t.removeAttribute("dir"):(void 0!==s&&("string"==typeof s&&(n=s.split(" "),s=l[r]=n),void 0!==s&&a.add(...s)),t.dir=r),wt||(e.getWritable().__dir=r)}kt=r,t.__lexicalDirTextContent=Et,t.__lexicalDir=r}}function $t(e,t){let n=[];for(e=e.__first;null!==e;){let r=t.get(e);void 0===r&&P(101),n.push(e),e=r.__next}return n}function zt(e,t){var n=vt.get(e),r=bt.get(e);void 0!==n&&void 0!==r||P(61);var o=St||gt.has(e)||mt.has(e);let i=qe(pt,e);if(n===r&&!o)return Rr(n)?(void 0!==(r=i.__lexicalTextContent)&&(_t+=r,Ct+=r),void 0!==(r=i.__lexicalDirTextContent)&&(Et+=r)):(r=n.getTextContent(),Rn(n)&&!n.isDirectionless()&&(Et+=r),Ct+=r,_t+=r),i;if(n!==r&&o&&Ge(xt,ft,ht,r,"updated"),r.updateDOM(n,i,dt))return r=Lt(e,null,null),null===t&&P(62),t.replaceChild(r,i),Tt(e,null),r;if(Rr(n)&&Rr(r)){if((e=r.__indent)!==n.__indent&&Rt(i,e),(e=r.__format)!==n.__format&&Mt(i,e),o){e=r,o=Et,Et="",t=_t;var a=n.__size,l=e.__size;if(_t="",1===a&&1===l){var s=n.__first,u=e.__first;if(s===u)zt(s,i);else{var c=Ht(s);u=Lt(u,null,null),i.replaceChild(u,c),Tt(s,null)}}else{u=$t(n,vt);var d=$t(e,bt);if(0===a)0!==l&&Ot(d,e,0,l-1,i,null);else if(0===l)0!==a&&(At(u,0,a-1,(s=null==i.__lexicalLineBreak)?null:i),s&&(i.textContent=""));else{var p=u;u=d,d=a-1,a=l-1;let t=i.firstChild,n=0;for(l=0;n<=d&&l<=a;){var f=p[n];let e=u[l];if(f===e)t=Ft(zt(e,i)),n++,l++;else{void 0===s&&(s=new Set(p)),void 0===c&&(c=new Set(u));let r=c.has(f),o=s.has(e);r?(o?((f=qe(pt,e))===t?t=Ft(zt(e,i)):(null!=t?i.insertBefore(f,t):i.appendChild(f),zt(e,i)),n++):Lt(e,i,t),l++):(t=Ft(Ht(f)),Tt(f,i),n++)}}c=l>a,(s=n>d)&&!c?Ot(u,e,l,a,i,s=void 0===(s=u[a+1])?null:pt.getElementByKey(s)):c&&!s&&At(p,n,d,i)}}Ve(e)&&(_t+="\n\n"),i.__lexicalTextContent=_t,_t=t+_t,Dt(e,i),Et=o,Or(r)||r.isInline()||Pt(n,r,i)}Ve(r)&&(_t+="\n\n",Ct+="\n\n")}else n=r.getTextContent(),Ar(r)?null!==(o=r.decorate(pt,dt))&&Bt(e,o):Rn(r)&&!r.isDirectionless()&&(Et+=n),_t+=n,Ct+=n;return!wt&&Or(r)&&r.__cachedText!==Ct&&((r=r.getWritable()).__cachedText=Ct),i}function Bt(e,t){let n=pt._pendingDecorators,r=pt._decorators;if(null===n){if(r[e]===t)return;n=Le(pt)}n[e]=t}function Ft(e){return null!==(e=e.nextSibling)&&e===pt._blockCursorElement&&(e=e.nextSibling),e}function Ht(e){let t=yt.get(e);return void 0===t&&P(75,e),t}let jt=Object.freeze({}),Wt=[["keydown",function(e,t){if(Gt=e.timeStamp,Kt=e.keyCode,!t.isComposing()){var{keyCode:o,shiftKey:i,ctrlKey:a,metaKey:l,altKey:k}=e;if(!Cr(t,f,e)){if(39!==o||a||l||k)if(39!==o||k||i||!a&&!l)if(37!==o||a||l||k)if(37!==o||k||i||!a&&!l)if(38!==o||a||l)if(40!==o||a||l)if(13===o&&i)Jt=!0,Cr(t,x,e);else if(32===o)Cr(t,_,e);else if(B&&a&&79===o)e.preventDefault(),Jt=!0,Cr(t,r,!0);else if(13!==o||i)if(B?k||l||!(8===o||72===o&&a):a||k||l||8!==o)if(27===o)Cr(t,C,e);else if(B?i||k||l||!(46===o||68===o&&a):a||k||l||46!==o)if(8===o&&(B?k:a))e.preventDefault(),Cr(t,s,!0);else if(46===o&&(B?k:a))e.preventDefault(),Cr(t,s,!1);else if(B&&l&&8===o)e.preventDefault(),Cr(t,u,!0);else if(B&&l&&46===o)e.preventDefault(),Cr(t,u,!1);else if(66===o&&!k&&(B?l:a))e.preventDefault(),Cr(t,c,"bold");else if(85===o&&!k&&(B?l:a))e.preventDefault(),Cr(t,c,"underline");else if(73===o&&!k&&(B?l:a))e.preventDefault(),Cr(t,c,"italic");else if(9!==o||k||a||l)if(90===o&&!i&&(B?l:a))e.preventDefault(),Cr(t,d,void 0);else{var T=B?90===o&&l&&i:89===o&&a||90===o&&a&&i;T?(e.preventDefault(),Cr(t,p,void 0)):Wn(t._editorState._selection)?(T=!i&&(67===o&&(B?l:a)))?(e.preventDefault(),Cr(t,R,e)):(T=!i&&(88===o&&(B?l:a)))?(e.preventDefault(),Cr(t,M,e)):65===o&&(B?l:a)&&(e.preventDefault(),t.update((()=>{je()}))):!F&&65===o&&(B?l:a)&&(e.preventDefault(),t.update((()=>{je()})))}else Cr(t,w,e);else 46===o?Cr(t,S,e):(e.preventDefault(),Cr(t,n,!1));else 8===o?Cr(t,E,e):(e.preventDefault(),Cr(t,n,!0));else Jt=!1,Cr(t,x,e);else Cr(t,y,e);else Cr(t,b,e);else Cr(t,v,e);else Cr(t,g,e);else Cr(t,m,e);else Cr(t,h,e);(a||i||k||l)&&Cr(t,I,e)}}}],["pointerdown",function(e,t){let n=e.target;e=e.pointerType,n instanceof Node&&"touch"!==e&&kr(t,(()=>{Ar(Me(n))||(Qt=!0)}))}],["compositionstart",function(e,t){kr(t,(()=>{let n=tr();if(Bn(n)&&!t.isComposing()){let r=n.anchor,o=n.anchor.getNode();Te(r.key),(e.timeStamp<Gt+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||o.getStyle()!==n.style)&&Cr(t,i,U)}}))}],["compositionend",function(e,t){F?Xt=!0:kr(t,(()=>{on(t,e.data)}))}],["input",function(e,t){e.stopPropagation(),kr(t,(()=>{var n=tr(),r=e.data,o=rn(e);if(null!=r&&Bn(n)&&en(n,o,r,e.timeStamp,!1)){Xt&&(on(t,r),Xt=!1);var a=n.anchor,l=a.getNode();if(null===(o=at(t._window)))return;let s=a.offset;(a=H&&!n.isCollapsed()&&Rn(l)&&null!==o.anchorNode)&&(a=(l=l.getTextContent().slice(0,s)+r+l.getTextContent().slice(s+n.focus.offset))===(3===(o=o.anchorNode).nodeType?o.nodeValue:null)),a||Cr(t,i,r),r=r.length,F&&1<r&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=r),j||W||K||!t.isComposing()||(Gt=0,Te(null))}else Fe(!1,t,null!==r?r:void 0),Xt&&(on(t,r||void 0),Xt=!1);mr(),se(n=vr())})),Ut=null}],["click",function(e,n){kr(n,(()=>{let r=tr();var o=at(n._window);let i=nr();if(o)if(Bn(r)){let t=r.anchor;var a=t.getNode();"element"===t.type&&0===t.offset&&r.isCollapsed()&&!Or(a)&&1===Ie().getChildrenSize()&&a.getTopLevelElementOrThrow().isEmpty()&&null!==i&&r.is(i)?(o.removeAllRanges(),r.dirty=!0):3!==e.detail||r.isCollapsed()||a!==(o=r.focus.getNode())&&(Rr(a)?a.select(0):a.getParentOrThrow().select(0))}else"touch"===e.pointerType&&(null!==(a=o.anchorNode)&&(1===(a=a.nodeType)||3===a))&&Pe(o=er(i,o,n));Cr(n,t,e)}))}],["cut",jt],["copy",jt],["dragstart",jt],["dragover",jt],["dragend",jt],["paste",jt],["focus",jt],["blur",jt],["drop",jt]];H&&Wt.push(["beforeinput",(e,t)=>function(e,t){let f=e.inputType,h=rn(e);"deleteCompositionText"===f||F&&Ue(t)||"insertCompositionText"!==f&&kr(t,(()=>{let m=tr();if("deleteContentBackward"===f){if(null===m){var g=nr();if(!Bn(g))return;Pe(g.clone())}if(Bn(m))return void(229===Kt&&e.timeStamp<Gt+30&&t.isComposing()&&m.anchor.key===m.focus.key?(Te(null),Gt=0,setTimeout((()=>{kr(t,(()=>{Te(null)}))}),30),Bn(m)&&(g=m.anchor.getNode(),g.markDirty(),m.format=g.getFormat(),m.style=g.getStyle())):(e.preventDefault(),Cr(t,n,!0)))}if(Bn(m)){g=e.data,null!==Ut&&Fe(!1,t,Ut),m.dirty&&null===Ut||!m.isCollapsed()||Or(m.anchor.getNode())||null===h||m.applyDOMRange(h),Ut=null;var v=m.focus,b=m.anchor.getNode();if(v=v.getNode(),"insertText"===f||"insertTranspose"===f)"\n"===g?(e.preventDefault(),Cr(t,r,!1)):"\n\n"===g?(e.preventDefault(),Cr(t,o,void 0)):null==g&&e.dataTransfer?(g=e.dataTransfer.getData("text/plain"),e.preventDefault(),m.insertRawText(g)):null!=g&&en(m,h,g,e.timeStamp,!0)?(e.preventDefault(),Cr(t,i,g)):Ut=g,Yt=e.timeStamp;else switch(e.preventDefault(),f){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Cr(t,i,e);break;case"insertFromComposition":Te(null),Cr(t,i,e);break;case"insertLineBreak":Te(null),Cr(t,r,!1);break;case"insertParagraph":Te(null),Jt&&!W?(Jt=!1,Cr(t,r,!1)):Cr(t,o,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Cr(t,a,e);break;case"deleteByComposition":(function(e,t){return e!==t||Rr(e)||Rr(t)||!e.isToken()||!t.isToken()})(b,v)&&Cr(t,l,e);break;case"deleteByDrag":case"deleteByCut":Cr(t,l,e);break;case"deleteContent":Cr(t,n,!1);break;case"deleteWordBackward":Cr(t,s,!0);break;case"deleteWordForward":Cr(t,s,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Cr(t,u,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Cr(t,u,!1);break;case"formatStrikeThrough":Cr(t,c,"strikethrough");break;case"formatBold":Cr(t,c,"bold");break;case"formatItalic":Cr(t,c,"italic");break;case"formatUnderline":Cr(t,c,"underline");break;case"historyUndo":Cr(t,d,void 0);break;case"historyRedo":Cr(t,p,void 0)}}}))}(e,t)]);let Gt=0,Kt=0,Yt=0,Ut=null,Vt=0,qt=!1,Qt=!1,Jt=!1,Xt=!1,Zt=[0,"",0,"root",0];function en(e,t,n,r,o){let i=e.anchor,a=e.focus,l=i.getNode();var s=vr();let u=at(s._window),c=null!==u?u.anchorNode:null,d=i.key;s=s.getElementByKey(d);let p=n.length;return d!==a.key||!Rn(l)||(!o&&(!H||Yt<r+50)||l.isDirty()&&2>p||$e(n))&&i.offset!==a.offset&&!l.isComposing()||xe(l)||l.isDirty()&&1<p||(o||!H)&&null!==s&&!l.isComposing()&&c!==_e(s)||null!==u&&null!==t&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||l.getFormat()!==e.format||l.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;e=e.anchor.offset;let n=t.getParentOrThrow(),r=t.isToken();return 0===e?((e=!t.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=(Rn(t=t.getPreviousSibling())||Rr(t)&&t.isInline())&&!t.canInsertTextAfter()),e):e===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()||r)}(e,l)}function tn(e,t){return null!==e&&null!==e.nodeValue&&3===e.nodeType&&0!==t&&t!==e.nodeValue.length}function nn(t,n,r){let{anchorNode:o,anchorOffset:i,focusNode:a,focusOffset:l}=t;qt&&(qt=!1,tn(o,i)&&tn(a,l))||kr(n,(()=>{if(r){if(be(n,o,a)){var i=tr();if(Bn(i)){var l=i.anchor,s=l.getNode();if(i.isCollapsed()){"Range"===t.type&&t.anchorNode===t.focusNode&&(i.dirty=!0);var u=Xe(n).event;u=u?u.timeStamp:performance.now();let[e,r,o,a,c]=Zt;u<c+200&&l.offset===o&&l.key===a?(i.format=e,i.style=r):"text"===l.type?(i.format=s.getFormat(),i.style=s.getStyle()):"element"===l.type&&(i.format=0,i.style="")}else{l=255,s=!1;let e=(u=i.getNodes()).length;for(let t=0;t<e;t++){let e=u[t];if(Rn(e)&&(s=!0,0===(l&=e.getFormat())))break}i.format=s?l:0}}Cr(n,e,void 0)}}else Pe(null)}))}function rn(e){return e.getTargetRanges?0===(e=e.getTargetRanges()).length?null:e[0]:null}function on(e,t){var n=e._compositionKey;if(Te(null),null!==n&&null!=t){if(""===t)return t=Ne(n),void(null!==(e=_e(e.getElementByKey(n)))&&null!==e.nodeValue&&Rn(t)&&He(t,e.nodeValue,null,null,!0));if("\n"===t[t.length-1]&&Bn(n=tr()))return t=n.focus,n.anchor.set(t.key,t.offset,t.type),void Cr(e,x,null)}Fe(!0,e,t)}function an(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}let ln=new Map;function sn(e){let t=at(null==(e=e.target)?null:9===e.nodeType?e.defaultView:e.ownerDocument.defaultView);if(null!==t){var n=ye(t.anchorNode);if(null!==n){Qt&&(Qt=!1,kr(n,(()=>{var e=nr(),r=t.anchorNode;null!==r&&(1===(r=r.nodeType)||3===r)&&Pe(e=er(e,t,n))})));var r=(e=(e=ze(n))[e.length-1])._key,o=ln.get(r),i=o||e;i!==n&&nn(t,i,!1),nn(t,n,!0),n!==e?ln.set(r,n):o&&ln.delete(r)}}}function un(e,t,n){mr();var r=e.__key;let o=e.getParent();if(null!==o){var i=tr();if(Bn(i)&&Rr(e)){var{anchor:a,focus:l}=i,s=a.getNode(),u=l.getNode();Je(s,e)&&a.set(e.__key,0,"element"),Je(u,e)&&l.set(e.__key,0,"element")}if(u=!1,Bn(s=i)&&t){i=s.anchor;let t=s.focus;i.key===r&&(ir(i,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0),t.key===r&&(ir(t,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0)}else Wn(s)&&t&&e.isSelected()&&e.selectPrevious();Bn(s)&&t&&!u?(r=e.getIndexWithinParent(),we(e),rr(s,o,r,-1)):we(e),n||et(o)||o.canBeEmpty()||!o.isEmpty()||un(o,t),t&&Or(o)&&o.isEmpty()&&o.selectEnd()}}class cn{static getType(){P(64,this.name)}static clone(){P(65,this.name)}constructor(e){this.__type=this.constructor.getType(),this.__next=this.__prev=this.__parent=null,Se(this,e)}getType(){return this.__type}isAttached(){for(var e=this.__key;null!==e;){if("root"===e)return!0;if(null===(e=Ne(e)))break;e=e.__parent}return!1}isSelected(e){if(null==(e=e||tr()))return!1;let t=e.getNodes().some((e=>e.__key===this.__key));return(Rn(this)||!Bn(e)||"element"!==e.anchor.type||"element"!==e.focus.type||e.anchor.key!==e.focus.key||e.anchor.offset!==e.focus.offset)&&t}getKey(){return this.__key}getIndexWithinParent(){var e=this.getParent();if(null===e)return-1;e=e.getFirstChild();let t=0;for(;null!==e;){if(this.is(e))return t;t++,e=e.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return null===e?null:Ne(e)}getParentOrThrow(){let e=this.getParent();return null===e&&P(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(et(t))return e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&P(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return null===e?null:Ne(e)}getPreviousSiblings(){let e=[];var t=this.getParent();if(null===t)return e;for(t=t.getFirstChild();null!==t&&!t.is(this);)e.push(t),t=t.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:Ne(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=this.getParents();var n=e.getParents();Rr(this)&&t.unshift(this),Rr(e)&&n.unshift(e),e=t.length;var r=n.length;if(0===e||0===r||t[e-1]!==n[r-1])return null;for(n=new Set(n),r=0;r<e;r++){let e=t[r];if(n.has(e))return e}return null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){if(this===e)return!1;if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;var t=this.getCommonAncestor(e);let n=this;for(;;){var r=n.getParentOrThrow();if(r===t){r=n.getIndexWithinParent();break}n=r}for(n=e;;){if((e=n.getParentOrThrow())===t){t=n.getIndexWithinParent();break}n=e}return r<t}isParentOf(e){let t=this.__key;if(t===e.__key)return!1;for(;null!==e;){if(e.__key===t)return!0;e=e.getParent()}return!1}getNodesBetween(e){let t=this.isBefore(e),n=[],r=new Set;for(var o=this;;){var i=o.__key;if(r.has(i)||(r.add(i),n.push(o)),o===e)break;if(null!==(i=Rr(o)?t?o.getFirstChild():o.getLastChild():null))o=i;else if(null!==(i=t?o.getNextSibling():o.getPreviousSibling()))o=i;else{if(o=o.getParentOrThrow(),r.has(o.__key)||n.push(o),o===e)break;i=o;do{null===i&&P(68),o=t?i.getNextSibling():i.getPreviousSibling(),null!==(i=i.getParent())&&(null!==o||r.has(i.__key)||n.push(i))}while(null===o)}}return t||n.reverse(),n}isDirty(){let e=vr()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=Ne(this.__key);return null===e&&P(113),e}getWritable(){mr();var e=gr(),t=vr();e=e._nodeMap;let n=this.__key,r=this.getLatest(),o=r.__parent;t=t._cloneNotNeeded;var i=tr();return null!==i&&(i._cachedNodes=null),t.has(n)?(ke(r),r):((i=r.constructor.clone(r)).__parent=o,i.__next=r.__next,i.__prev=r.__prev,Rr(r)&&Rr(i)?(i.__first=r.__first,i.__last=r.__last,i.__size=r.__size,i.__indent=r.__indent,i.__format=r.__format,i.__dir=r.__dir):Rn(r)&&Rn(i)&&(i.__format=r.__format,i.__style=r.__style,i.__mode=r.__mode,i.__detail=r.__detail),t.add(n),i.__key=n,ke(i),e.set(n,i),i)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){P(70)}updateDOM(){P(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){P(72)}static importJSON(){P(18,this.name)}static transform(){return null}remove(e){un(this,!0,e)}replace(e,t){mr();var n=tr();null!==n&&(n=n.clone()),rt(this,e);let r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),l=(e=this.getParentOrThrow().getWritable()).__size;we(a);let s=r.getPreviousSibling(),u=r.getNextSibling(),c=r.__prev,d=r.__next,p=r.__parent;return un(r,!1,!0),null===s?e.__first=i:s.getWritable().__next=i,a.__prev=c,null===u?e.__last=i:u.getWritable().__prev=i,a.__next=d,a.__parent=p,e.__size=l,t&&this.getChildren().forEach((e=>{a.append(e)})),Bn(n)&&(Pe(n),t=n.anchor,n=n.focus,t.key===o&&Pn(t,a),n.key===o&&Pn(n,a)),Ae()===o&&Te(i),a}insertAfter(e,t=!0){mr(),rt(this,e);var n=this.getWritable();let r=e.getWritable();var o=r.getParent();let i=tr();var a=!1,l=!1;if(null!==o){var s=e.getIndexWithinParent();we(r),Bn(i)&&(l=o.__key,a=i.anchor,o=i.focus,a="element"===a.type&&a.key===l&&a.offset===s+1,l="element"===o.type&&o.key===l&&o.offset===s+1)}o=this.getNextSibling(),s=this.getParentOrThrow().getWritable();let u=r.__key,c=n.__next;return null===o?s.__last=u:o.getWritable().__prev=u,s.__size++,n.__next=u,r.__next=c,r.__prev=n.__key,r.__parent=n.__parent,t&&Bn(i)&&(rr(i,s,(t=this.getIndexWithinParent())+1),n=s.__key,a&&i.anchor.set(n,t+2,"element"),l&&i.focus.set(n,t+2,"element")),e}insertBefore(e,t=!0){mr(),rt(this,e);var n=this.getWritable();let r=e.getWritable(),o=r.__key;we(r);let i=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),l=n.__prev,s=this.getIndexWithinParent();return null===i?a.__first=o:i.getWritable().__next=o,a.__size++,n.__prev=o,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent,n=tr(),t&&Bn(n)&&rr(n,t=this.getParentOrThrow(),s),e}isParentRequired(){return!1}createParentElementNode(){return Br()}selectPrevious(e,t){mr();let n=this.getPreviousSibling(),r=this.getParentOrThrow();return null===n?r.select(0,0):Rr(n)?n.select():Rn(n)?n.select(e,t):(e=n.getIndexWithinParent()+1,r.select(e,e))}selectNext(e,t){mr();let n=this.getNextSibling(),r=this.getParentOrThrow();return null===n?r.select():Rr(n)?n.select(0,0):Rn(n)?n.select(e,t):(e=n.getIndexWithinParent(),r.select(e,e))}markDirty(){this.getWritable()}}class dn extends cn{static getType(){return"linebreak"}static clone(e){return new dn(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>{let t,n,r=e.parentElement;return null!==r&&((t=r.firstChild)===e||t.nextSibling===e&&3===t.nodeType&&null!==(t.textContent||"").match(/^[\s|\r?\n|\t]+$/))&&((n=r.lastChild)===e||n.previousSibling===e&&3===n.nodeType&&null!==(n.textContent||"").match(/^[\s|\r?\n|\t]+$/))?null:{conversion:pn,priority:0}}}}static importJSON(){return fn()}exportJSON(){return{type:"linebreak",version:1}}}function pn(){return{node:fn()}}function fn(){return nt(new dn)}function hn(e){return e instanceof dn}function mn(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function gn(e,t){return 1&t?"strong":2&t?"em":"span"}function vn(e,t,n,r,o){e=r.classList,void 0!==(r=We(o,"base"))&&e.add(...r);let i=!1,a=8&t&&4&t;var l=8&n&&4&n;void 0!==(r=We(o,"underlineStrikethrough"))&&(l?(i=!0,a||e.add(...r)):a&&e.remove(...r));for(let s in Q)l=Q[s],void 0!==(r=We(o,s))&&(n&l&&(!i||"underline"!==s&&"strikethrough"!==s)?(!(t&l)||a&&"underline"===s||"strikethrough"===s)&&e.add(...r):t&l&&e.remove(...r))}function bn(e,t,n){let r=t.firstChild;if(e+=(n=n.isComposing())?Y:"",null==r)t.textContent=e;else if((t=r.nodeValue)!==e)if(n||F){n=t.length;let o=e.length,i=0,a=0;for(;i<n&&i<o&&t[i]===e[i];)i++;for(;a+i<n&&a+i<o&&t[n-a-1]===e[o-a-1];)a++;e=[i,n-i-a,e.slice(i,o-a)];let[l,s,u]=e;0!==s&&r.deleteData(l,s),r.insertData(l,u)}else r.nodeValue=e}function yn(e,t){return(t=document.createElement(t)).appendChild(e),t}class xn extends cn{static getType(){return"text"}static clone(e){return new xn(e.__text,e.__key)}constructor(e,t){super(t),this.__text=e,this.__format=0,this.__style="",this.__detail=this.__mode=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return ne[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Ae()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){return e=Q[e],!!(this.getFormat()&e)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Ee(this.getLatest().__format,e,t)}createDOM(e){var t=this.__format,n=mn(0,t);let r=gn(0,t),o=document.createElement(null===n?r:n),i=o;return null!==n&&(i=document.createElement(r),o.appendChild(i)),n=i,bn(this.__text,n,this),void 0!==(e=e.theme.text)&&vn(r,0,t,n,e),""!==(t=this.__style)&&(o.style.cssText=t),o}updateDOM(e,t,n){let r=this.__text;var o=e.__format,i=this.__format,a=mn(0,o);let l=mn(0,i);var s=gn(0,o);let u=gn(0,i);return(null===a?s:a)!==(null===l?u:l)||(a===l&&s!==u?(null==(o=t.firstChild)&&P(48),bn(r,e=a=document.createElement(u),this),void 0!==(n=n.theme.text)&&vn(u,0,i,e,n),t.replaceChild(a,o),!1):(s=t,null!==l&&null!==a&&(null==(s=t.firstChild)&&P(49)),bn(r,s,this),void 0!==(n=n.theme.text)&&o!==i&&vn(u,o,i,s,n),i=this.__style,e.__style!==i&&(t.style.cssText=i),!1))}static importDOM(){return{"#text":()=>({conversion:Sn,priority:0}),b:()=>({conversion:En,priority:0}),code:()=>({conversion:An,priority:0}),em:()=>({conversion:An,priority:0}),i:()=>({conversion:An,priority:0}),s:()=>({conversion:An,priority:0}),span:()=>({conversion:_n,priority:0}),strong:()=>({conversion:An,priority:0}),sub:()=>({conversion:An,priority:0}),sup:()=>({conversion:An,priority:0}),u:()=>({conversion:An,priority:0})}}static importJSON(e){let t=Nn(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportDOM(e){return({element:e}=super.exportDOM(e)),null!==e&&(this.hasFormat("bold")&&(e=yn(e,"b")),this.hasFormat("italic")&&(e=yn(e,"i")),this.hasFormat("strikethrough")&&(e=yn(e,"s")),this.hasFormat("underline")&&(e=yn(e,"u"))),{element:e}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?Q[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?J[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){return e=Q[e],this.setFormat(this.getFormat()^e)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){if(e=te[e],this.__mode===e)return this;let t=this.getWritable();return t.__mode=e,t}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){mr();let n=tr();var r=this.getTextContent();let o=this.__key;return"string"==typeof r?(r=r.length,void 0===e&&(e=r),void 0===t&&(t=r)):t=e=0,Bn(n)?((r=Ae())!==n.anchor.key&&r!==n.focus.key||Te(o),n.setTextNodeRange(this,e,this,t),n):Xn(o,e,o,t,"text","text")}spliceText(e,t,n,r){let o=this.getWritable(),i=o.__text,a=n.length,l=e;0>l&&(l=a+l,0>l&&(l=0));let s=tr();return r&&Bn(s)&&(e+=a,s.setTextNodeRange(o,e,o,e)),t=i.slice(0,l)+n+i.slice(l+t),o.__text=t,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){mr();var t=this.getLatest(),n=t.getTextContent(),r=t.__key,o=Ae(),i=new Set(e);e=[];for(var a=n.length,l="",s=0;s<a;s++)""!==l&&i.has(s)&&(e.push(l),l=""),l+=n[s];if(""!==l&&e.push(l),0===(i=e.length))return[];if(e[0]===n)return[t];var u=e[0];n=t.getParentOrThrow(),s=t.getFormat();let c=t.getStyle(),d=t.__detail;a=!1,t.isSegmented()?((l=Nn(u)).__format=s,l.__style=c,l.__detail=d,a=!0):(l=t.getWritable()).__text=u,t=tr(),l=[l],u=u.length;for(let n=1;n<i;n++){var p=e[n],f=p.length;(p=Nn(p).getWritable()).__format=s,p.__style=c,p.__detail=d;let i=p.__key;if(f=u+f,Bn(t)){let e=t.anchor,n=t.focus;e.key===r&&"text"===e.type&&e.offset>u&&e.offset<=f&&(e.key=i,e.offset-=u,t.dirty=!0),n.key===r&&"text"===n.type&&n.offset>u&&n.offset<=f&&(n.key=i,n.offset-=u,t.dirty=!0)}o===r&&Te(i),u=f,l.push(p)}return r=this.getPreviousSibling(),o=this.getNextSibling(),null!==r&&ke(r),null!==o&&ke(o),r=n.getWritable(),o=this.getIndexWithinParent(),a?(r.splice(o,0,l),this.remove()):r.splice(o,1,l),Bn(t)&&rr(t,n,o,i-1),l}mergeWithSibling(e){var t=e===this.getPreviousSibling();t||e===this.getNextSibling()||P(50);var n=this.__key;let r=e.__key,o=this.__text,i=o.length;Ae()===r&&Te(n);let a=tr();if(Bn(a)){let o=a.anchor,l=a.focus;null!==o&&o.key===r&&(ar(o,t,n,e,i),a.dirty=!0),null!==l&&l.key===r&&(ar(l,t,n,e,i),a.dirty=!0)}return n=e.__text,this.setTextContent(t?n+o:o+n),t=this.getWritable(),e.remove(),t}isTextEntity(){return!1}}function _n(e){let t="700"===e.style.fontWeight,n="line-through"===e.style.textDecoration,r="italic"===e.style.fontStyle,o="underline"===e.style.textDecoration,i=e.style.verticalAlign;return{forChild:e=>Rn(e)?(t&&e.toggleFormat("bold"),n&&e.toggleFormat("strikethrough"),r&&e.toggleFormat("italic"),o&&e.toggleFormat("underline"),"sub"===i&&e.toggleFormat("subscript"),"super"===i&&e.toggleFormat("superscript"),e):e,node:null}}function En(e){let t="normal"===e.style.fontWeight;return{forChild:e=>(Rn(e)&&!t&&e.toggleFormat("bold"),e),node:null}}let Cn=new WeakMap;function Sn(e){null===e.parentElement&&P(129);for(var t,n=e.textContent||"",r=e.parentNode,o=[e];null!==r&&void 0===(t=Cn.get(r))&&!("PRE"===r.nodeName||1===r.nodeType&&r.style.whiteSpace.startsWith("pre"));)o.push(r),r=r.parentNode;for(t=void 0===t?r:t,r=0;r<o.length;r++)Cn.set(o[r],t);if(null!==t){for(e=[],o=(n=n.split(/(\r?\n|\t)/)).length,t=0;t<o;t++)"\n"===(r=n[t])||"\r\n"===r?e.push(fn()):"\t"===r?e.push(Ln()):""!==r&&e.push(Nn(r));return{node:e}}if(""===(n=n.replace(/\r?\n|\t/gm," ").replace("\r","").replace(/\s+/g," ")))return{node:null};if(" "===n[0]){for(o=e,t=!0;null!==o&&null!==(o=kn(o,!1));)if(0<(r=o.textContent||"").length){r.match(/(?:\s|\r?\n|\t)$/)&&(n=n.slice(1)),t=!1;break}t&&(n=n.slice(1))}if(" "===n[n.length-1]){for(o=!0;null!==e&&null!==(e=kn(e,!0));)if(0<(e.textContent||"").replace(/^[\s|\r?\n|\t]+/,"").length){o=!1;break}o&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:Nn(n)}}let wn=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/,"i");function kn(e,t){for(;;){for(var n=void 0;null===(n=t?e.nextSibling:e.previousSibling);)if(null===(e=e.parentElement))return null;if(1===(e=n).nodeType&&(""===(n=e.style.display)&&null===e.nodeName.match(wn)||""!==n&&!n.startsWith("inline")))return null;for(;null!==(n=t?e.firstChild:e.lastChild);)e=n;if(3===e.nodeType)return e;if("BR"===e.nodeName)return null}}let Tn={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function An(e){let t=Tn[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:e=>(Rn(e)&&!e.hasFormat(t)&&e.toggleFormat(t),e),node:null}}function Nn(e=""){return nt(new xn(e))}function Rn(e){return e instanceof xn}class Mn extends xn{static getType(){return"tab"}static clone(e){let t=new Mn(e.__key);return t.__text=e.__text,t.__format=e.__format,t.__style=e.__style,t}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}static importJSON(e){let t=Ln();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(){P(126)}setDetail(){P(127)}setMode(){P(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Ln(){return nt(new Mn)}class On{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let t=this.getNode(),n=e.getNode(),r=this.offset;if(e=e.offset,Rr(t)){var o=t.getDescendantByIndex(r);t=null!=o?o:t}return Rr(n)&&(o=n.getDescendantByIndex(e),n=null!=o?o:n),t===n?r<e:t.isBefore(n)}getNode(){let e=Ne(this.key);return null===e&&P(20),e}set(e,t,n){let r=this._selection,o=this.key;this.key=e,this.offset=t,this.type=n,hr()||(Ae()===o&&Te(e),null!==r&&(r._cachedNodes=null,r.dirty=!0))}}function In(e,t){let n=t.__key,r=e.offset,o="element";if(Rn(t))o="text",r>(t=t.getTextContentSize())&&(r=t);else if(!Rr(t)){var i=t.getNextSibling();Rn(i)?(n=i.__key,r=0,o="text"):(i=t.getParent())&&(n=i.__key,r=t.getIndexWithinParent()+1)}e.set(n,r,o)}function Pn(e,t){if(Rr(t)){let n=t.getLastDescendant();Rr(n)||Rn(n)?In(e,n):In(e,t)}else In(e,t)}function Dn(e,t,n,r){let o=e.getNode(),i=o.getChildAtIndex(e.offset),a=Nn(),l=Or(o)?Br().append(a):a;a.setFormat(n),a.setStyle(r),null===i?o.append(l):(i.insertBefore(l),"element"===t.type&&t.key===e.key&&t.offset!==e.offset&&t.set(t.key,t.offset+1,"element")),e.is(t)&&t.set(a.__key,0,"text"),e.set(a.__key,0,"text")}function $n(e,t,n,r){e.key=t,e.offset=n,e.type=r}class zn{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!Wn(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every((e=>n.has(e)))}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 zn(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,t){let n=this.getNodes(),r=n.length;var o=n[r-1];if(Rn(o))o=o.select();else{let e=o.getIndexWithinParent()+1;o=o.getParentOrThrow().select(e,e)}for(o.insertNodes(e,t),e=0;e<r;e++)n[e].remove();return!0}getNodes(){var e=this._cachedNodes;if(null!==e)return e;var t=this._nodes;e=[];for(let n of t)null!==(t=Ne(n))&&e.push(t);return hr()||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}function Bn(e){return e instanceof jn}class Fn{constructor(e,t,n){this.gridKey=e,this.anchor=t,this.focus=n,this.dirty=!1,this._cachedNodes=null,t._selection=this,n._selection=this}is(e){return!!Hn(e)&&(this.gridKey===e.gridKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus))}set(e,t,n){this.dirty=!0,this.gridKey=e,this.anchor.key=t,this.focus.key=n,this._cachedNodes=null}clone(){return new Fn(this.gridKey,this.anchor,this.focus)}isCollapsed(){return!1}isBackward(){return this.focus.isBefore(this.anchor)}getCharacterOffsets(){return Kn(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,t){let n=this.focus.getNode();return fe(n.select(0,n.getChildrenSize())).insertNodes(e,t)}getShape(){var e=Ne(this.anchor.key);null===e&&P(21);var t=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var n=Ne(this.focus.key);null===n&&P(22);var r=n.getIndexWithinParent();let o=n.getParentOrThrow().getIndexWithinParent();return n=Math.min(t,r),t=Math.max(t,r),r=Math.min(e,o),e=Math.max(e,o),{fromX:Math.min(n,t),fromY:Math.min(r,e),toX:Math.max(n,t),toY:Math.max(r,e)}}getNodes(){function e(e){let{cell:t,startColumn:n,startRow:r}=e;l=Math.min(l,n),s=Math.min(s,r),u=Math.max(u,n+t.__colSpan-1),c=Math.max(c,r+t.__rowSpan-1)}var t=this._cachedNodes;if(null!==t)return t;var n=this.anchor.getNode();t=this.focus.getNode(),n=st(n,Wr);var r=st(t,Wr);Wr(n)||P(103),Wr(r)||P(104),Ur(t=n.getParent())||P(105),Kr(t=t.getParent())||P(106);let[o,i,a]=lr(t,n,r),l=Math.min(i.startColumn,a.startColumn),s=Math.min(i.startRow,a.startRow),u=Math.max(i.startColumn+i.cell.__colSpan-1,a.startColumn+a.cell.__colSpan-1),c=Math.max(i.startRow+i.cell.__rowSpan-1,a.startRow+a.cell.__rowSpan-1);n=l,r=s;for(var d=l,p=s;l<n||s<r||u>d||c>p;){if(l<n){var f=p-r;--n;for(var h=0;h<=f;h++)e(o[r+h][n])}if(s<r)for(f=d-n,--r,h=0;h<=f;h++)e(o[r][n+h]);if(u>d)for(f=p-r,d+=1,h=0;h<=f;h++)e(o[r+h][d]);if(c>p)for(f=d-n,p+=1,h=0;h<=f;h++)e(o[p][n+h])}for(t=[t],n=null,r=s;r<=c;r++)for(d=l;d<=u;d++)({cell:p}=o[r][d]),Ur(f=p.getParent())||P(107),f!==n&&t.push(f),t.push(p,...ut(p)),n=f;return hr()||(this._cachedNodes=t),t}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}function Hn(e){return e instanceof Fn}class jn{constructor(e,t,n,r){this.anchor=e,this.focus=t,this.dirty=!1,this.format=n,this.style=r,this._cachedNodes=null,e._selection=this,t._selection=this}is(e){return!!Bn(e)&&(this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style)}isBackward(){return this.focus.isBefore(this.anchor)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){var e=this._cachedNodes;if(null!==e)return e;e=this.anchor;var t=this.focus,n=e.isBefore(t),r=n?e:t;n=n?t:e,e=r.getNode(),t=n.getNode();let o=r.offset;return r=n.offset,Rr(e)&&(n=e.getDescendantByIndex(o),e=null!=n?n:e),Rr(t)&&(null!==(n=t.getDescendantByIndex(r))&&n!==e&&t.getChildAtIndex(r)===n&&(n=n.getPreviousSibling()),t=null!=n?n:t),e=e.is(t)?Rr(e)&&0<e.getChildrenSize()?[]:[e]:e.getNodesBetween(t),hr()||(this._cachedNodes=e),e}setTextNodeRange(e,t,n,r){$n(this.anchor,e.__key,t,"text"),$n(this.focus,n.__key,r,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[a,l]=Kn(this),s="",u=!0;for(let c=0;c<e.length;c++){let d=e[c];if(Rr(d)&&!d.isInline())u||(s+="\n"),u=!d.isEmpty();else if(u=!1,Rn(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=a<l?e.slice(a,l):e.slice(l,a)):e=i?e.slice(a):e.slice(l):d===n&&(e=i?e.slice(0,l):e.slice(0,a)),s+=e}else!Ar(d)&&!hn(d)||d===n&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let t=vr(),n=t.getEditorState()._selection;if(null!==(e=Qn(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n))){var[r,o]=e;$n(this.anchor,r.key,r.offset,r.type),$n(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let e=this.anchor,t=this.focus;return new jn(new On(e.key,e.offset,e.type),new On(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Ee(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){return!!(this.format&Q[e])}insertRawText(e){let t=[],n=(e=e.split(/(\r?\n|\t)/)).length;for(let r=0;r<n;r++){let n=e[r];"\n"===n||"\r\n"===n?t.push(fn()):"\t"===n?t.push(Ln()):t.push(Nn(n))}this.insertNodes(t)}insertText(e){var t=this.anchor,n=this.focus,r=this.isCollapsed()||t.isBefore(n),o=this.format,i=this.style;r&&"element"===t.type?Dn(t,n,o,i):r||"element"!==n.type||Dn(n,t,o,i);var a=this.getNodes(),l=a.length,s=r?n:t;n=(r?t:n).offset;var u=s.offset;Rn(t=a[0])||P(26),r=t.getTextContent().length;var c=t.getParentOrThrow(),d=a[l-1];if(this.isCollapsed()&&n===r&&(t.isSegmented()||t.isToken()||!t.canInsertTextAfter()||!c.canInsertTextAfter()&&null===t.getNextSibling())){var p=t.getNextSibling();if(Rn(p)&&p.canInsertTextBefore()&&!xe(p)||((p=Nn()).setFormat(o),c.canInsertTextAfter()?t.insertAfter(p):c.insertAfter(p)),p.select(0,0),t=p,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===n&&(t.isSegmented()||t.isToken()||!t.canInsertTextBefore()||!c.canInsertTextBefore()&&null===t.getPreviousSibling())){if(Rn(p=t.getPreviousSibling())&&!xe(p)||((p=Nn()).setFormat(o),c.canInsertTextBefore()?t.insertBefore(p):c.insertBefore(p)),p.select(),t=p,""!==e)return void this.insertText(e)}else if(t.isSegmented()&&n!==r)(c=Nn(t.getTextContent())).setFormat(o),t.replace(c),t=c;else if(!(this.isCollapsed()||""===e||(p=d.getParent(),c.canInsertTextBefore()&&c.canInsertTextAfter()&&(!Rr(p)||p.canInsertTextBefore()&&p.canInsertTextAfter()))))return this.insertText(""),qn(this.anchor,this.focus,null),void this.insertText(e);if(1===l)if(t.isToken())(e=Nn(e)).select(),t.replace(e);else{if(a=t.getFormat(),l=t.getStyle(),n===u&&(a!==o||l!==i)){if(""!==t.getTextContent())return(a=Nn(e)).setFormat(o),a.setStyle(i),a.select(),0===n?t.insertBefore(a,!1):([l]=t.splitText(n),l.insertAfter(a,!1)),void(a.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length));t.setFormat(o),t.setStyle(i)}""===(t=t.spliceText(n,u-n,e,!0)).getTextContent()?t.remove():"text"===this.anchor.type&&(t.isComposing()?this.anchor.offset-=e.length:(this.format=a,this.style=l))}else{if(o=new Set([...t.getParentKeys(),...d.getParentKeys()]),p=Rr(t)?t:t.getParentOrThrow(),i=Rr(d)?d:d.getParentOrThrow(),c=d,!p.is(i)&&i.isInline())do{c=i,i=i.getParentOrThrow()}while(i.isInline());"text"===s.type&&(0!==u||""===d.getTextContent())||"element"===s.type&&d.getIndexWithinParent()<u?Rn(d)&&!d.isToken()&&u!==d.getTextContentSize()?(d.isSegmented()&&(s=Nn(d.getTextContent()),d.replace(s),d=s),d=d.spliceText(0,u,""),o.add(d.__key)):(s=d.getParentOrThrow()).canBeEmpty()||1!==s.getChildrenSize()?d.remove():s.remove():o.add(d.__key),s=i.getChildren(),u=new Set(a),d=p.is(i),p=p.isInline()&&null===t.getNextSibling()?p:t;for(let e=s.length-1;0<=e;e--){let n=s[e];if(n.is(t)||Rr(n)&&n.isParentOf(t))break;n.isAttached()&&(!u.has(n)||n.is(c)?d||p.insertAfter(n,!1):n.remove())}if(!d)for(s=i,u=null;null!==s;)(0===(d=(i=s.getChildren()).length)||i[d-1].is(u))&&(o.delete(s.__key),u=s),s=s.getParent();for(t.isToken()?n===r?t.select():((e=Nn(e)).select(),t.replace(e)):""===(t=t.spliceText(n,r-n,e,!0)).getTextContent()?t.remove():t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length),e=1;e<l;e++)t=a[e],o.has(t.__key)||t.remove()}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())this.toggleFormat(e),Te(null);else{var t=this.getNodes(),n=[];for(var r of t)Rn(r)&&n.push(r);var o=n.length;if(0===o)this.toggleFormat(e),Te(null);else{r=this.anchor;var i=this.focus,a=this.isBackward();t=a?i:r,r=a?r:i;var l=0,s=n[0];if(i="element"===t.type?0:t.offset,"text"===t.type&&i===s.getTextContentSize()&&(l=1,s=n[1],i=0),null!=s){a=s.getFormatFlags(e,null);var u=o-1,c=n[u];if(o="text"===r.type?r.offset:c.getTextContentSize(),s.is(c))i!==o&&(0===i&&o===s.getTextContentSize()?s.setFormat(a):(e=s.splitText(i,o),(e=0===i?e[0]:e[1]).setFormat(a),"text"===t.type&&t.set(e.__key,0,"text"),"text"===r.type&&r.set(e.__key,o-i,"text")),this.format=a);else{0!==i&&([,s]=s.splitText(i),i=0),s.setFormat(a);var d=c.getFormatFlags(e,a);for(0<o&&(o!==c.getTextContentSize()&&([c]=c.splitText(o)),c.setFormat(d)),l+=1;l<u;l++){let t=n[l];if(!t.isToken()){let n=t.getFormatFlags(e,d);t.setFormat(n)}}"text"===t.type&&t.set(s.__key,i,"text"),"text"===r.type&&r.set(c.__key,o,"text"),this.format=a|d}}}}}insertNodes(e,t){if(!this.isCollapsed()){var n=this.isBackward()?this.anchor:this.focus,r=n.getNode().getNextSibling();if(r=r?r.getKey():null,n=(n=n.getNode().getPreviousSibling())?n.getKey():null,this.removeText(),this.isCollapsed()&&"element"===this.focus.type){if(this.focus.key===r&&0===this.focus.offset){var o=Nn();this.focus.getNode().insertBefore(o)}else this.focus.key===n&&this.focus.offset===this.focus.getNode().getChildrenSize()&&(o=Nn(),this.focus.getNode().insertAfter(o));o&&(this.focus.set(o.__key,0,"text"),this.anchor.set(o.__key,0,"text"))}}n=(o=this.anchor).offset;var i=o.getNode();r=i,"element"===o.type&&(r=null===(r=(o=o.getNode()).getChildAtIndex(n-1))?o:r),o=[];var a=i.getNextSiblings(),l=et(i)?null:i.getTopLevelElementOrThrow();if(Rn(i))if(r=i.getTextContent().length,0===n&&0!==r)r=null!==(r=i.getPreviousSibling())?r:i.getParentOrThrow(),o.push(i);else if(n===r)r=i;else{if(i.isToken())return!1;[r,i]=i.splitText(n),o.push(i)}i=r,o.push(...a),a=e[0];var s=!1,u=null;for(let t=0;t<e.length;t++){var c=e[t];if(et(r)||Ar(r)||!Rr(c)||c.isInline())s&&!Rr(c)&&!Ar(c)&&et(r.getParent())&&P(28);else{if(c.is(a)){if(Rr(r)&&r.isEmpty()&&r.canReplaceWith(c)){r.replace(c),r=c,s=!0;continue}if(Ce(s=c.getFirstDescendant())){for(var d=s.getParentOrThrow();d.isInline();)d=d.getParentOrThrow();if(s=(u=d.getChildren()).length,Rr(r)){var p=r.getFirstChild();for(let e=0;e<s;e++){let t=u[e];null===p?r.append(t):p.insertAfter(t),p=t}}else{for(p=s-1;0<=p;p--)r.insertAfter(u[p]);r=r.getParentOrThrow()}if(u=u[s-1],d.remove(),s=!0,d.is(c))continue}}Rn(r)&&(null===l&&P(27),r=l)}s=!1,Rr(r)&&!r.isInline()?(u=c,Ar(c)&&!c.isInline()?r=r.insertAfter(c,!1):Rr(c)?!c.canBeEmpty()&&c.isEmpty()||(Or(r)?(null!==(d=r.getChildAtIndex(n))?d.insertBefore(c):r.append(c),r=c):c.isInline()?(r.append(c),r=c):r=r.insertAfter(c,!1)):(null!==(d=r.getFirstChild())?d.insertBefore(c):r.append(c),r=c)):!Rr(c)||Rr(c)&&c.isInline()||Ar(r)&&!r.isInline()?(u=c,Bn(this)&&Ar(c)&&(Rr(r)||Rn(r))&&!c.isInline()?(Rn(r)?(d=r.getParentOrThrow(),[r]=r.splitText(n),r=r.getIndexWithinParent()+1):(d=r,r=n),[,r]=lt(d,r),r=r.insertBefore(c)):r=r.insertAfter(c,!1)):(c=r.getParentOrThrow(),hn(r)&&r.remove(),r=c,t--)}if(t&&(Rn(i)?i.select():Rn(e=r.getPreviousSibling())?e.select():(e=r.getIndexWithinParent(),r.getParentOrThrow().select(e,e))),Rr(r)){if(e=Rn(u)?u:Rr(u)&&u.isInline()?u.getLastDescendant():r.getLastDescendant(),t||(null===e?r.select():Rn(e)?""===e.getTextContent()?e.selectPrevious():e.select():e.selectNext()),0!==o.length)for(t=r,e=o.length-1;0<=e;e--)l=(n=o[e]).getParentOrThrow(),!Rr(r)||Jn(n)||Ar(n)&&(!n.isInline()||n.isIsolated())?Rr(r)||Jn(n)?Rr(n)&&!n.canInsertAfter(r)?(Rr(i=l.constructor.clone(l))||P(29),i.append(n),r.insertAfter(i)):r.insertAfter(n):(r.insertBefore(n),r=n):(t===r?r.append(n):r.insertBefore(n),r=n),l.isEmpty()&&!l.canBeEmpty()&&l.remove()}else t||(Rn(r)?r.select():(t=r.getParentOrThrow(),e=r.getIndexWithinParent()+1,t.select(e,e)));return!0}insertParagraph(){this.isCollapsed()||this.removeText();var e=this.anchor,t=e.offset,n=[];if("text"===e.type){var r=e.getNode(),o=r.getNextSiblings().reverse(),i=r.getParentOrThrow(),a=i.isInline(),l=a?i.getTextContentSize():r.getTextContentSize();0===t?o.push(r):(a&&(n=i.getNextSiblings()),t===l||a&&t===r.getTextContentSize()||([,r]=r.splitText(t),o.push(r)))}else{if(et(i=e.getNode()))return o=Br(),n=i.getChildAtIndex(t),o.select(),void(null!==n?n.insertBefore(o,!1):i.append(o));o=i.getChildren().slice(t).reverse()}if(r=o.length,0===t&&0<r&&i.isInline()){if(Rr(o=(n=i.getParentOrThrow()).insertNewAfter(this,!1)))for(n=n.getChildren(),i=0;i<n.length;i++)o.append(n[i])}else if(null===(a=i.insertNewAfter(this,!1)))this.insertLineBreak();else if(Rr(a))if(l=i.getFirstChild(),0===t&&(i.is(e.getNode())||l&&l.is(e.getNode()))&&0<r)i.insertBefore(a);else{if(i=null,t=n.length,e=a.getParentOrThrow(),0<t)for(l=0;l<t;l++)e.append(n[l]);if(0!==r)for(n=0;n<r;n++)t=o[n],null===i?a.append(t):i.insertBefore(t),i=t;a.canBeEmpty()||0!==a.getChildrenSize()?a.selectStart():(a.selectPrevious(),a.remove())}}insertLineBreak(e){let t=fn();var n=this.anchor;"element"===n.type&&(Or(n=n.getNode())&&this.insertParagraph()),e?this.insertNodes([t],!0):this.insertNodes([t])&&t.selectNext(0,0)}getCharacterOffsets(){return Kn(this)}extract(){var e=this.getNodes(),t=e.length,n=t-1,r=this.anchor;let o=this.focus;var i=e[0];let a=e[n],[l,s]=Kn(this);return 0===t?[]:1===t?Rn(i)&&!this.isCollapsed()?(e=l>s?s:l,n=i.splitText(e,l>s?l:s),null!=(e=0===e?n[0]:n[1])?[e]:[]):[i]:(t=r.isBefore(o),Rn(i)&&((r=t?l:s)===i.getTextContentSize()?e.shift():0!==r&&([,i]=i.splitText(r),e[0]=i)),Rn(a)&&(i=a.getTextContent().length,0===(t=t?s:l)?e.pop():t!==i&&([a]=a.splitText(t),e[n]=a)),e)}modify(e,t,n){var r=this.focus,o=this.anchor,i="move"===e,a=Ye(r,t);if(Ar(a)&&!a.isIsolated())i&&a.isKeyboardSelectable()?((t=Zn()).add(a.__key),Pe(t)):Rn(e=t?a.getPreviousSibling():a.getNextSibling())?(a=e.__key,t=t?e.getTextContent().length:0,r.set(a,t,"text"),i&&o.set(a,t,"text")):(n=a.getParentOrThrow(),Rr(e)?(n=e.__key,a=t?e.getChildrenSize():0):(a=a.getIndexWithinParent(),n=n.__key,t||a++),r.set(n,a,"element"),i&&o.set(n,a,"element"));else if(r=at((o=vr())._window)){var l=o._blockCursorElement,s=o._rootElement;if(null===s||null===l||!Rr(a)||a.isInline()||a.canBeEmpty()||it(l,o,s),r.modify(e,t?"backward":"forward",n),0<r.rangeCount&&(a=r.getRangeAt(0),o=Or(o=this.anchor.getNode())?o:Ze(o),this.applyDOMRange(a),this.dirty=!0,!i)){for(i=this.getNodes(),e=[],n=!1,l=0;l<i.length;l++)Je(s=i[l],o)?e.push(s):n=!0;n&&0<e.length&&(t?Rr(t=e[0])?t.selectStart():t.getParentOrThrow().selectStart():Rr(t=e[e.length-1])?t.selectEnd():t.getParentOrThrow().selectEnd()),r.anchorNode===a.startContainer&&r.anchorOffset===a.startOffset||(t=this.focus,r=(i=this.anchor).key,a=i.offset,o=i.type,$n(i,t.key,t.offset,t.type),$n(t,r,a,o),this._cachedNodes=null)}}}deleteCharacter(t){let n=this.isCollapsed();if(this.isCollapsed()){var r=this.anchor,o=this.focus,i=r.getNode();if(!t&&("element"===r.type&&Rr(i)&&r.offset===i.getChildrenSize()||"text"===r.type&&r.offset===i.getTextContentSize())){var a=i.getParent();if(Rr(a=i.getNextSibling()||(null===a?null:a.getNextSibling()))&&a.isShadowRoot())return}if(Ar(a=Ye(o,t))&&!a.isIsolated())return void(a.isKeyboardSelectable()&&Rr(i)&&0===i.getChildrenSize()?(i.remove(),t=Zn(),t.add(a.__key),Pe(t)):(a.remove(),vr().dispatchCommand(e,void 0)));if(!t&&Rr(a)&&Rr(i)&&i.isEmpty())return i.remove(),void a.selectStart();if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===r.offset&&("element"===r.type?r.getNode():r.getNode().getParentOrThrow()).collapseAtStart(this))return}else{if(a="text"===o.type?o.getNode():null,i="text"===r.type?r.getNode():null,null!==a&&a.isSegmented()){if(r=o.offset,o=a.getTextContentSize(),a.is(i)||t&&r!==o||!t&&0!==r)return void Yn(a,t,r)}else if(null!==i&&i.isSegmented()&&(r=r.offset,o=i.getTextContentSize(),i.is(a)||t&&0!==r||!t&&r!==o))return void Yn(i,t,r);if(i=this.anchor,a=this.focus,(r=i.getNode())===(o=a.getNode())&&"text"===i.type&&"text"===a.type){var l=i.offset,s=a.offset;let e=l<s;(o=e?l:s)!==(l=(s=e?s:l)-1)&&($e(r=r.getTextContent().slice(o,s))||(t?a.offset=l:i.offset=l))}}}this.removeText(),t&&!n&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset&&((t=this.anchor.getNode()).isEmpty()&&Or(t.getParent())&&0===t.getIndexWithinParent()&&t.collapseAtStart(this))}deleteLine(e){this.isCollapsed()&&("text"===this.anchor.type&&this.modify("extend",e,"lineboundary"),0===(e?this.focus:this.anchor).offset&&this.modify("extend",e,"character")),this.removeText()}deleteWord(e){this.isCollapsed()&&this.modify("extend",e,"word"),this.removeText()}}function Wn(e){return e instanceof zn}function Gn(e){let t=e.offset;return"text"===e.type?t:t===(e=e.getNode()).getChildrenSize()?e.getTextContent().length:0}function Kn(e){let t=e.anchor;return e=e.focus,"element"===t.type&&"element"===e.type&&t.key===e.key&&t.offset===e.offset?[0,0]:[Gn(t),Gn(e)]}function Yn(e,t,n){let r=e.getTextContent().split(/(?=\s)/g),o=r.length,i=0,a=0;for(let e=0;e<o;e++){let l=e===o-1;if(a=i,i+=r[e].length,t&&i===n||i>n||l){r.splice(e,1),l&&(a=void 0);break}}""===(t=r.join("").trim())?e.remove():(e.setTextContent(t),e.select(a,a))}function Un(e,t,n,r){var o=t;if(1===e.nodeType){let l=!1;var i=e.childNodes,a=i.length;o===a&&(l=!0,o=a-1);let s=i[o];if(a=!1,s===r._blockCursorElement?(s=i[o+1],a=!0):null!==r._blockCursorElement&&o--,Rn(r=De(s)))o=l?r.getTextContentSize():0;else{if(null===(i=De(e)))return null;if(Rr(i)?((t=Rr(e=i.getChildAtIndex(o)))&&(t=e.getParent(),t=null===n||null===t||!t.canBeEmpty()||t!==n.getNode()),t&&(null===(n=l?e.getLastDescendant():e.getFirstDescendant())?(i=e,o=0):i=Rr(e=n)?e:e.getParentOrThrow()),Rn(e)?(r=e,i=null,o=l?e.getTextContentSize():0):e!==i&&l&&!a&&o++):(o=i.getIndexWithinParent(),o=0===t&&Ar(i)&&De(e)===i?o:o+1,i=i.getParentOrThrow()),Rr(i))return new On(i.__key,o,"element")}}else r=De(e);return Rn(r)?new On(r.__key,o,"text"):null}function Vn(e,t,n){var r=e.offset,o=e.getNode();0===r?(r=o.getPreviousSibling(),o=o.getParent(),t?(n||!t)&&null===r&&Rr(o)&&o.isInline()&&(Rn(t=o.getPreviousSibling())&&(e.key=t.__key,e.offset=t.getTextContent().length)):Rr(r)&&!n&&r.isInline()?(e.key=r.__key,e.offset=r.getChildrenSize(),e.type="element"):Rn(r)&&(e.key=r.__key,e.offset=r.getTextContent().length)):r===o.getTextContent().length&&(r=o.getNextSibling(),o=o.getParent(),t&&Rr(r)&&r.isInline()?(e.key=r.__key,e.offset=0,e.type="element"):(n||t)&&null===r&&Rr(o)&&o.isInline()&&!o.canInsertTextAfter()&&(Rn(t=o.getNextSibling())&&(e.key=t.__key,e.offset=0)))}function qn(e,t,n){if("text"===e.type&&"text"===t.type){var r=e.isBefore(t);let o=e.is(t);Vn(e,r,o),Vn(t,!r,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type),(r=vr()).isComposing()&&r._compositionKey!==e.key&&Bn(n)&&(r=n.anchor,n=n.focus,$n(e,r.key,r.offset,r.type),$n(t,n.key,n.offset,n.type))}}function Qn(e,t,n,r,o,i){return null!==e&&null!==n&&be(o,e,n)?null===(t=Un(e,t,Bn(i)?i.anchor:null,o))||null===(r=Un(n,r,Bn(i)?i.focus:null,o))||"element"===t.type&&"element"===r.type&&(e=De(e),n=De(n),Ar(e)&&Ar(n))?null:(qn(t,r,i),[t,r]):null}function Jn(e){return Rr(e)&&!e.isInline()}function Xn(e,t,n,r,o,i){let a=gr();return(e=new jn(new On(e,t,o),new On(n,r,i),0,"")).dirty=!0,a._selection=e}function Zn(){return new zn(new Set)}function er(e,t,n){var r=n._window;if(null===r)return null;var o=r.event,i=o?o.type:void 0;let a;if(r="selectionchange"===i,o=!re&&(r||"beforeinput"===i||"compositionstart"===i||"compositionend"===i||"click"===i&&o&&3===o.detail||"drop"===i||void 0===i),Bn(e)&&!o)return e.clone();if(null===t)return null;if(o=t.anchorNode,i=t.focusNode,a=t.anchorOffset,t=t.focusOffset,r&&Bn(e)&&!be(n,o,i))return e.clone();if(null===(n=Qn(o,a,i,t,n,e)))return null;let[l,s]=n;return new jn(l,s,Bn(e)?e.format:0,Bn(e)?e.style:"")}function tr(){return gr()._selection}function nr(){return vr()._editorState._selection}function rr(e,t,n,r=1){var o=e.anchor,i=e.focus,a=o.getNode(),l=i.getNode();if(t.is(a)||t.is(l)){if(a=t.__key,e.isCollapsed())(n<=(t=o.offset)&&0<r||n<t&&0>r)&&(n=Math.max(0,t+r),o.set(a,n,"element"),i.set(a,n,"element"),or(e));else{let u=e.isBackward();var s=(l=u?i:o).getNode();i=(o=u?o:i).getNode(),t.is(s)&&((n<=(s=l.offset)&&0<r||n<s&&0>r)&&l.set(a,Math.max(0,s+r),"element")),t.is(i)&&((n<=(t=o.offset)&&0<r||n<t&&0>r)&&o.set(a,Math.max(0,t+r),"element"))}or(e)}}function or(e){var t=e.anchor,n=t.offset;let r=e.focus;var o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed())Rr(i)&&(Rn(a=(o=n>=(a=i.getChildrenSize()))?i.getChildAtIndex(a-1):i.getChildAtIndex(n))&&(n=0,o&&(n=a.getTextContentSize()),t.set(a.__key,n,"text"),r.set(a.__key,n,"text")));else{if(Rr(i)){let r=i.getChildrenSize();Rn(n=(e=n>=r)?i.getChildAtIndex(r-1):i.getChildAtIndex(n))&&(i=0,e&&(i=n.getTextContentSize()),t.set(n.__key,i,"text"))}Rr(a)&&(Rn(o=(t=o>=(n=a.getChildrenSize()))?a.getChildAtIndex(n-1):a.getChildAtIndex(o))&&(a=0,t&&(a=o.getTextContentSize()),r.set(o.__key,a,"text")))}}function ir(e,t,n,r,o){let i=null,a=0,l=null;null!==r?(i=r.__key,Rn(r)?(a=r.getTextContentSize(),l="text"):Rr(r)&&(a=r.getChildrenSize(),l="element")):null!==o&&(i=o.__key,Rn(o)?l="text":Rr(o)&&(l="element")),null!==i&&null!==l?e.set(i,a,l):(a=t.getIndexWithinParent(),-1===a&&(a=n.getChildrenSize()),e.set(n.__key,a,"element"))}function ar(e,t,n,r,o){"text"===e.type?(e.key=n,t||(e.offset+=o)):e.offset>r.getIndexWithinParent()&&--e.offset}function lr(e,t,n){let r=[],o=null,i=null;e=e.getChildren();for(let c=0;c<e.length;c++){var a=e[c];Ur(a)||P(108);var l=a.getChildren();a=0;for(let e of l){for(Wr(e)||P(109);void 0!==r[c]&&void 0!==r[c][a];)a++;var s=a,u=e;let d={cell:u,startColumn:s,startRow:l=c},p=u.__rowSpan,f=u.__colSpan;for(let e=0;e<p;e++){void 0===r[l+e]&&(r[l+e]=[]);for(let t=0;t<f;t++)r[l+e][s+t]=d}t.is(u)&&(o=d),n.is(u)&&(i=d),a+=e.__colSpan}}return null===o&&P(110),null===i&&P(111),[r,o,i]}let sr=null,ur=null,cr=!1,dr=!1,pr=0,fr={characterData:!0,childList:!0,subtree:!0};function hr(){return cr||null!==sr&&sr._readOnly}function mr(){cr&&P(13)}function gr(){return null===sr&&P(15),sr}function vr(){return null===ur&&P(16),ur}function br(e,t,n){var r=t.__type;let o=e._nodes.get(r);for(void 0===o&&P(30,r),void 0===(e=n.get(r))&&(e=Array.from(o.transforms),n.set(r,e)),n=e.length,r=0;r<n&&(e[r](t),t.isAttached());r++);}function yr(e,t){var n=e.type,r=t.get(n);if(void 0===r&&P(17,n),n=r.klass,e.type!==n.getType()&&P(18,n.name),n=n.importJSON(e),e=e.children,Rr(n)&&Array.isArray(e))for(r=0;r<e.length;r++){let o=yr(e[r],t);n.append(o)}return n}function xr(e,t){let n=sr,r=cr,o=ur;sr=e,cr=!0,ur=null;try{return t()}finally{sr=n,cr=r,ur=o}}function _r(t,n){let r=t._pendingEditorState,o=t._rootElement,i=t._headless||null===o;if(null!==r){var a=t._editorState,l=a._selection,s=r._selection,u=0!==t._dirtyType,c=sr,d=cr,p=ur,f=t._updating,h=t._observer,m=null;if(t._pendingEditorState=null,t._editorState=r,!i&&u&&null!==h){ur=t,sr=r,cr=!1,t._updating=!0;try{let e=t._dirtyType,n=t._dirtyElements,o=t._dirtyLeaves;h.disconnect();var g=n,v=o;Et=Ct=_t="",St=2===e,kt=null,pt=t,dt=t._config,ft=t._nodes,ht=pt._listeners.mutation,mt=g,gt=v,vt=a._nodeMap,bt=r._nodeMap,wt=r._readOnly,yt=new Map(t._keyToDOMMap);let i=new Map;xt=i,zt("root",null),xt=yt=dt=bt=vt=gt=mt=ft=pt=void 0,m=i}catch(e){if(e instanceof Error&&t._onError(e),dr)throw e;return Fr(t,null,o,r),ue(t),t._dirtyType=2,dr=!0,_r(t,a),void(dr=!1)}finally{h.observe(o,fr),t._updating=f,sr=c,cr=d,ur=p}}r._readOnly||(r._readOnly=!0);var b=t._dirtyLeaves,y=t._dirtyElements,x=t._normalizedNodes,_=t._updateTags,E=t._deferred;u&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set);var C,S=t._decorators,w=t._pendingDecorators||S,k=r._nodeMap;for(C in w)k.has(C)||(w===S&&(w=Le(t)),delete w[C]);var T=i?null:at(t._window);if(t._editable&&null!==T&&(u||null===s||s.dirty)){ur=t,sr=r;try{if(null!==h&&h.disconnect(),u||null===s||s.dirty){let e=t._blockCursorElement;null!==e&&it(e,t,o);e:{let e=T.anchorNode,n=T.focusNode,r=T.anchorOffset,i=T.focusOffset,a=document.activeElement;if(!(_.has("collaboration")&&a!==o||null!==a&&ve(a)))if(Bn(s)){var A=s.anchor,N=s.focus,R=A.key,M=N.key,L=qe(t,R),O=qe(t,M),I=A.offset,P=N.offset,D=s.format,$=s.style,z=s.isCollapsed(),B=L,F=O,H=!1;if("text"===A.type){B=_e(L);let e=A.getNode();H=e.getFormat()!==D||e.getStyle()!==$}else Bn(l)&&"text"===l.anchor.type&&(H=!0);if("text"===N.type&&(F=_e(O)),null!==B&&null!==F){if(z&&(null===l||H||Bn(l)&&(l.format!==D||l.style!==$))){var j=performance.now();Zt=[D,$,I,R,j]}if(r===I&&i===P&&e===B&&n===F&&("Range"!==T.type||!z)&&(null!==a&&o.contains(a)||o.focus({preventScroll:!0}),"element"!==A.type))break e;try{T.setBaseAndExtent(B,I,F,P)}catch(e){}if(!_.has("skip-scroll-into-view")&&s.isCollapsed()&&null!==o&&o===document.activeElement){let e=s instanceof jn&&"element"===s.anchor.type?B.childNodes[I]||null:0<T.rangeCount?T.getRangeAt(0):null;if(null!==e){let n;if(e instanceof Text){let t=document.createRange();t.selectNode(e),n=t.getBoundingClientRect()}else n=e.getBoundingClientRect();let r=o.ownerDocument,i=r.defaultView;if(null!==i)for(var W,G,{top:K,bottom:Y}=n,U=o;null!==U;){let e=U===r.body;if(e)W=0,G=Xe(t).innerHeight;else{let e=U.getBoundingClientRect();W=e.top,G=e.bottom}let n=0;if(K<W?n=-(W-K):Y>G&&(n=Y-G),0!==n)if(e)i.scrollBy(0,n);else{let e=U.scrollTop;U.scrollTop+=n;let t=U.scrollTop-e;K-=t,Y-=t}if(e)break;U=Qe(U)}}}qt=!0}}else null!==l&&be(t,e,n)&&T.removeAllRanges()}}e:{let e=t._blockCursorElement;if(Bn(s)&&s.isCollapsed()&&"element"===s.anchor.type&&o.contains(document.activeElement)){let n=s.anchor,r=n.getNode(),i=n.offset,a=r.getChildrenSize(),l=!1,u=null;if(i===a){ot(r.getChildAtIndex(i-1))&&(l=!0)}else{let e=r.getChildAtIndex(i);if(ot(e)){let n=e.getPreviousSibling();(null===n||ot(n))&&(l=!0,u=t.getElementByKey(e.__key))}}if(l){let n=t.getElementByKey(r.__key);if(null===e){let n=t._config.theme,r=document.createElement("div");r.contentEditable="false",r.setAttribute("data-lexical-cursor","true");let o=n.blockCursor;if(void 0!==o){if("string"==typeof o){let e=o.split(" ");o=n.blockCursor=e}void 0!==o&&r.classList.add(...o)}t._blockCursorElement=e=r}o.style.caretColor="transparent",null===u?n.appendChild(e):n.insertBefore(e,u);break e}}null!==e&&it(e,t,o)}null!==h&&h.observe(o,fr)}finally{ur=p,sr=c}}if(null!==m){var V=m;let e=Array.from(t._listeners.mutation),n=e.length;for(let t=0;t<n;t++){let[n,r]=e[t],o=V.get(r);void 0!==o&&n(o,{dirtyLeaves:b,updateTags:_})}}Bn(s)||null===s||null!==l&&l.is(s)||t.dispatchCommand(e,void 0);var q=t._pendingDecorators;null!==q&&(t._decorators=q,t._pendingDecorators=null,Er("decorator",t,!0,q));var Q=Oe(n||a),J=Oe(r);if(Q!==J&&Er("textcontent",t,!0,J),Er("update",t,!0,{dirtyElements:y,dirtyLeaves:b,editorState:r,normalizedNodes:x,prevEditorState:n||a,tags:_}),t._deferred=[],0!==E.length){let e=t._updating;t._updating=!0;try{for(let e=0;e<E.length;e++)E[e]()}finally{t._updating=e}}var X=t._updates;if(0!==X.length){let e=X.shift();if(e){let[n,r]=e;wr(t,n,r)}}}}function Er(e,t,n,...r){let o=t._updating;t._updating=n;try{let n=Array.from(t._listeners[e]);for(e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=o}}function Cr(e,t,n){if(!1===e._updating||ur!==e){let r=!1;return e.update((()=>{r=Cr(e,t,n)})),r}let r=ze(e);for(let i=4;0<=i;i--)for(let a=0;a<r.length;a++){var o=r[a]._commands.get(t);if(void 0!==o&&void 0!==(o=o[i])){let t=(o=Array.from(o)).length;for(let r=0;r<t;r++)if(!0===o[r](n,e))return!0}}return!1}function Sr(e,t){let n=e._updates;for(t=t||!1;0!==n.length;){var r=n.shift();if(r){let n,[o,i]=r;void 0!==i&&(r=i.onUpdate,n=i.tag,i.skipTransforms&&(t=!0),r&&e._deferred.push(r),n&&e._updateTags.add(n)),o()}}return t}function wr(e,t,n){let r=e._updateTags;var o,i=o=!1;if(void 0!==n){var a=n.onUpdate;null!=(o=n.tag)&&r.add(o),o=n.skipTransforms||!1,i=n.discrete||!1}a&&e._deferred.push(a),n=e._editorState;let l=!1;(null===(a=e._pendingEditorState)||a._readOnly)&&(a=e._pendingEditorState=new Dr(new Map((a||n)._nodeMap)),l=!0),a._flushSync=i,i=sr;let s=cr,u=ur,c=e._updating;sr=a,cr=!1,e._updating=!0,ur=e;try{l&&(e._headless?null!=n._selection&&(a._selection=n._selection.clone()):a._selection=function(e){let t=e.getEditorState()._selection,n=at(e._window);return Wn(t)||Hn(t)?t.clone():er(t,n,e)}(e));let r=e._compositionKey;t(),o=Sr(e,o),function(e,t){if(t=t.getEditorState()._selection,Bn(e=e._selection)){var n=e.anchor;let r,o=e.focus;"text"===n.type&&(r=n.getNode(),r.selectionTransform(t,e)),"text"===o.type&&r!==(n=o.getNode())&&n.selectionTransform(t,e)}}(a,e),0!==e._dirtyType&&(o?function(e,t){t=t._dirtyLeaves,e=e._nodeMap;for(let n of t)Rn(t=e.get(n))&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&pe(t)}(a,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements;e=e._nodeMap;let o=Ae(),i=new Map;var a=n;let l=a.size;for(var s=r,u=s.size;0<l||0<u;){if(0<l){t._dirtyLeaves=new Set;for(let r of a)Rn(a=e.get(r))&&a.isAttached()&&a.isSimpleText()&&!a.isUnmergeable()&&pe(a),void 0!==a&&void 0!==a&&a.__key!==o&&a.isAttached()&&br(t,a,i),n.add(r);if(l=(a=t._dirtyLeaves).size,0<l){pr++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map;for(let n of s)s=n[0],u=n[1],("root"===s||u)&&(void 0!==(a=e.get(s))&&void 0!==a&&a.__key!==o&&a.isAttached()&&br(t,a,i),r.set(s,u));l=(a=t._dirtyLeaves).size,u=(s=t._dirtyElements).size,pr++}t._dirtyLeaves=n,t._dirtyElements=r}(a,e),Sr(e),function(e,t,n,r){e=e._nodeMap,t=t._nodeMap;let o=[];for(let[n]of r){let i=t.get(n);void 0===i||i.isAttached()||(Rr(i)&&ct(i,n,e,t,o,r),e.has(n)||r.delete(n),o.push(n))}for(let e of o)t.delete(e);for(let o of n)void 0===(r=t.get(o))||r.isAttached()||(e.has(o)||n.delete(o),t.delete(o))}(n,a,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(a._flushSync=!0);let i=a._selection;if(Bn(i)){let e=a._nodeMap,t=i.focus.key;void 0!==e.get(i.anchor.key)&&void 0!==e.get(t)||P(19)}else Wn(i)&&0===i._nodes.size&&(a._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=n,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void _r(e)}finally{sr=i,cr=s,ur=u,e._updating=c,pr=0}0!==e._dirtyType||function(e,t){if(t=t.getEditorState()._selection,e=e._selection,null!==e){if(e.dirty||!e.is(t))return!0}else if(null!==t)return!0;return!1}(a,e)?a._flushSync?(a._flushSync=!1,_r(e)):l&&ge((()=>{_r(e)})):(a._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function kr(e,t,n){e._updating?e._updates.push([t,n]):wr(e,t,n)}class Tr extends cn{constructor(e){super(e)}decorate(){P(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ar(e){return e instanceof Tr}class Nr extends cn{constructor(e){super(e),this.__last=this.__first=null,this.__indent=this.__format=this.__size=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return ee[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],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(){let e=vr()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;null!==t;){if(Rn(t)&&e.push(t),Rr(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;null!==e;){if(Rr(e)){let t=e.getFirstChild();if(null!==t){e=t;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;null!==e;){if(Rr(e)){let t=e.getLastChild();if(null!==t){e=t;continue}}break}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;return e>=n?Rr(e=t[n-1])&&e.getLastDescendant()||e||null:Rr(e=t[e])&&e.getFirstDescendant()||e||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:Ne(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&P(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:Ne(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&P(96,this.__key),e}getChildAtIndex(e){var t=this.getChildrenSize();let n;if(e<t/2){for(n=this.getFirstChild(),t=0;null!==n&&t<=e;){if(t===e)return n;n=n.getNextSibling(),t++}return null}for(n=this.getLastChild(),--t;null!==n&&t>=e;){if(t===e)return n;n=n.getPreviousSibling(),t--}return null}getTextContent(){let e="",t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let o=t[r];e+=o.getTextContent(),Rr(o)&&r!==n-1&&!o.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let o=t[r];e+=o.getTextContentSize(),Rr(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return""!==e&&(e=Z[e],!!(this.getFormat()&e))}select(e,t){mr();let n=tr(),r=e,o=t;var i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){if(Rn(e=this.getFirstChild())||Rr(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)&&(Rn(e=this.getLastChild())||Rr(e)))return e.select();return void 0===r&&(r=i),void 0===o&&(o=i),i=this.__key,Bn(n)?(n.anchor.set(i,r,"element"),n.focus.set(i,o,"element"),n.dirty=!0,n):Xn(i,r,i,o,"element","element")}selectStart(){let e=this.getFirstDescendant();return Rr(e)||Rn(e)?e.select(0,0):null!==e?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return Rr(e)||Rn(e)?e.select():null!==e?e.selectNext():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach((e=>e.remove())),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?Z[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let r=n.length,o=this.getChildrenSize(),i=this.getWritable(),a=i.__key;var l=[],s=[];let u=this.getChildAtIndex(e+t),c=null,d=o-t+r;if(0!==e)if(e===o)c=this.getLastChild();else{var p=this.getChildAtIndex(e);null!==p&&(c=p.getPreviousSibling())}if(0<t){var f=null===c?this.getFirstChild():c.getNextSibling();for(p=0;p<t;p++){null===f&&P(100);var h=f.getNextSibling(),m=f.__key;we(f=f.getWritable()),s.push(m),f=h}}for(p=c,h=0;h<r;h++){m=n[h],null!==p&&m.is(p)&&(c=p=p.getPreviousSibling()),(f=m.getWritable()).__parent===a&&d--,we(f);let e=m.__key;null===p?(i.__first=e,f.__prev=null):((p=p.getWritable()).__next=e,f.__prev=p.__key),m.__key===a&&P(76),f.__parent=a,l.push(e),p=m}if(e+t===o?null!==p&&(p.getWritable().__next=null,i.__last=p.__key):null!==u&&(e=u.getWritable(),null!==p?(t=p.getWritable(),e.__prev=p.__key,t.__next=u.__key):e.__prev=null),i.__size=d,s.length&&Bn(e=tr())){s=new Set(s),l=new Set(l);let{anchor:t,focus:n}=e;Mr(t,s,l)&&ir(t,t.getNode(),this,c,u),Mr(n,s,l)&&ir(n,n.getNode(),this,c,u),0!==d||this.canBeEmpty()||et(this)||this.remove()}return i}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(){return null}canIndent(){return!0}collapseAtStart(){return!1}excludeFromCopy(){return!1}canExtractContents(){return!0}canReplaceWith(){return!0}canInsertAfter(){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(){return!1}extractWithChild(){return!1}}function Rr(e){return e instanceof Nr}function Mr(e,t,n){for(e=e.getNode();e;){let r=e.__key;if(t.has(r)&&!n.has(r))return!0;e=e.getParent()}return!1}class Lr extends Nr{static getType(){return"root"}static clone(){return new Lr}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){P(51)}getTextContent(){let e=this.__cachedText;return!hr()&&0!==vr()._dirtyType||null===e?super.getTextContent():e}remove(){P(52)}replace(){P(53)}insertBefore(){P(54)}insertAfter(){P(55)}updateDOM(){return!1}append(...e){for(let t=0;t<e.length;t++){let n=e[t];Rr(n)||Ar(n)||P(56)}return super.append(...e)}static importJSON(e){let t=Ie();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function Or(e){return e instanceof Lr}function Ir(){return new Dr(new Map([["root",new Lr]]))}function Pr(e){let t=e.exportJSON();var n=e.constructor;t.type!==n.getType()&&P(130,n.name);let r=t.children;if(Rr(e))for(Array.isArray(r)||P(59,n.name),e=e.getChildren(),n=0;n<e.length;n++){let t=Pr(e[n]);r.push(t)}return t}class Dr{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._readOnly=this._flushSync=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e){return xr(this,e)}clone(e){return(e=new Dr(this._nodeMap,void 0===e?this._selection:e))._readOnly=!0,e}toJSON(){return xr(this,(()=>({root:Pr(Ie())})))}}class $r extends Nr{static getType(){return"paragraph"}static clone(e){return new $r(e.__key)}createDOM(e){let t=document.createElement("p");return void 0!==(e=We(e.theme,"paragraph"))&&t.classList.add(...e),t}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:zr,priority:0})}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t),0<(t=this.getIndent())&&(e.style.textIndent=20*t+"px")}return{element:e}}static importJSON(e){let t=Br();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(e,t){e=Br();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.getChildren();if(0===e.length||Rn(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 zr(e){let t=Br();return e.style&&(t.setFormat(e.style.textAlign),0<(e=parseInt(e.style.textIndent,10)/20)&&t.setIndent(e)),{node:t}}function Br(){return nt(new $r)}function Fr(e,t,n,r){let o=e._keyToDOMMap;o.clear(),e._editorState=Ir(),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,null!==(r=e._observer)&&(r.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}class Hr{constructor(e,t,n,r,o,i,a){this._parentEditor=t,this._rootElement=null,this._editorState=e,this._compositionKey=this._pendingEditorState=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=Be(),this._onError=o,this._htmlConversions=i,this._editable=a,this._headless=null!==t&&t._headless,this._blockCursorElement=this._window=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let 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&&P(35);let r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=r.get(e);void 0===o&&P(36,String(e));let i=o[n];return i.add(t),()=>{i.delete(t),o.every((e=>0===e.size))&&r.delete(e)}}registerMutationListener(e,t){void 0===this._nodes.get(e.getType())&&P(37,e.name);let n=this._listeners.mutation;return n.set(t,e),()=>{n.delete(t)}}registerNodeTransformToKlass(e,t){var n=e.getType();return void 0===(n=this._nodes.get(n))&&P(37,e.name),n.transforms.add(t),n}registerNodeTransform(e,t){var n=this.registerNodeTransformToKlass(e,t);let r=[n];return null!=(n=n.replaceWithKlass)&&(n=this.registerNodeTransformToKlass(n,t),r.push(n)),function(e,t){kr(e,(()=>{var e=gr();if(!e.isEmpty())if("root"===t)Ie().markDirty();else{e=e._nodeMap;for(let[,t]of e)t.markDirty()}}),null===e._pendingEditorState?{tag:"history-merge"}:void 0)}(this,e.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 Cr(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let i=We(this._config.theme,"root");var n=this._pendingEditorState||this._editorState;if(this._rootElement=e,Fr(this,t,e,n),null!==t){if(!this._config.disableEvents){0!==Vt&&(Vt--,0===Vt&&t.ownerDocument.removeEventListener("selectionchange",sn));var r=t.__lexicalEditor;if(null!=r){if(null!==r._parentEditor){var o=ze(r);o=o[o.length-1]._key,ln.get(o)===r&&ln.delete(o)}else ln.delete(r._key);t.__lexicalEditor=null}for(r=an(t),o=0;o<r.length;o++)r[o]();t.__lexicalEventHandles=[]}null!=i&&t.classList.remove(...i)}null!==e?(n=(n=e.ownerDocument)&&n.defaultView||null,(r=e.style).userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=n,this._dirtyType=2,ue(this),this._updateTags.add("history-merge"),_r(this),this._config.disableEvents||function(e,t){0===Vt&&e.ownerDocument.addEventListener("selectionchange",sn),Vt++,e.__lexicalEditor=t;let n=an(e);for(let r=0;r<Wt.length;r++){let[o,i]=Wt[r],l="function"==typeof i?e=>{!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()&&i(e,t))}:e=>{if(!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()))switch(o){case"cut":return Cr(t,M,e);case"copy":return Cr(t,R,e);case"paste":return Cr(t,a,e);case"dragstart":return Cr(t,T,e);case"dragover":return Cr(t,A,e);case"dragend":return Cr(t,N,e);case"focus":return Cr(t,L,e);case"blur":return Cr(t,O,e);case"drop":return Cr(t,k,e)}};e.addEventListener(o,l),n.push((()=>{e.removeEventListener(o,l)}))}}(e,this),null!=i&&e.classList.add(...i)):(this._editorState=n,this._window=this._pendingEditorState=null),Er("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&P(38),se(this);let n=this._pendingEditorState,r=this._updateTags;t=void 0!==t?t.tag:null,null===n||n.isEmpty()||(null!=t&&r.add(t),_r(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=t&&r.add(t),_r(this)}parseEditorState(e,t){e="string"==typeof e?JSON.parse(e):e;let n=Ir(),r=sr,o=cr,i=ur,a=this._dirtyElements,l=this._dirtyLeaves,s=this._cloneNotNeeded,u=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,sr=n,cr=!1,ur=this;try{yr(e.root,this._nodes),t&&t(),n._readOnly=!0}catch(e){e instanceof Error&&this._onError(e)}finally{this._dirtyElements=a,this._dirtyLeaves=l,this._cloneNotNeeded=s,this._dirtyType=u,sr=r,cr=o,ur=i}return n}update(e,t){kr(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),kr(this,(()=>{let e=tr(),n=Ie();null!==e?e.dirty=!0:0!==n.getChildrenSize()&&("rootStart"===t.defaultSelection?n.selectStart():n.selectEnd())}),{onUpdate:()=>{n.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){var e=this._rootElement;null!==e&&e.blur(),null!==(e=at(this._window))&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Er("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class jr extends Nr{constructor(e,t){super(t),this.__colSpan=e,this.__rowSpan=1}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan,rowSpan:this.__rowSpan}}getColSpan(){return this.__colSpan}setColSpan(e){return this.getWritable().__colSpan=e,this}getRowSpan(){return this.__rowSpan}setRowSpan(e){return this.getWritable().__rowSpan=e,this}}function Wr(e){return e instanceof jr}class Gr extends Nr{}function Kr(e){return e instanceof Gr}class Yr extends Nr{}function Ur(e){return e instanceof Yr}return X.$addUpdateTag=function(e){mr(),vr()._updateTags.add(e)},X.$applyNodeReplacement=nt,X.$copyNode=tt,X.$createLineBreakNode=fn,X.$createNodeSelection=Zn,X.$createParagraphNode=Br,X.$createRangeSelection=function(){let e=new On("root",0,"element"),t=new On("root",0,"element");return new jn(e,t,0,"")},X.$createTabNode=Ln,X.$createTextNode=Nn,X.$getAdjacentNode=Ye,X.$getNearestNodeFromDOMNode=Me,X.$getNearestRootOrShadowRoot=Ze,X.$getNodeByKey=Ne,X.$getPreviousSelection=nr,X.$getRoot=Ie,X.$getSelection=tr,X.$getTextContent=function(){let e=tr();return null===e?"":e.getTextContent()},X.$hasAncestor=Je,X.$hasUpdateTag=function(e){return vr()._updateTags.has(e)},X.$insertNodes=function(e,t){let n=tr()||nr();return null===n&&(n=Ie().selectEnd()),n.insertNodes(e,t)},X.$isBlockElementNode=Jn,X.$isDecoratorNode=Ar,X.$isElementNode=Rr,X.$isInlineElementOrDecoratorNode=function(e){return Rr(e)&&e.isInline()||Ar(e)&&e.isInline()},X.$isLeafNode=Ce,X.$isLineBreakNode=hn,X.$isNodeSelection=Wn,X.$isParagraphNode=function(e){return e instanceof $r},X.$isRangeSelection=Bn,X.$isRootNode=Or,X.$isRootOrShadowRoot=et,X.$isTabNode=function(e){return e instanceof Mn},X.$isTextNode=Rn,X.$nodesOfType=function(e){var t=gr();let n=t._readOnly,r=e.getType();t=t._nodeMap;let o=[];for(let[,i]of t)i instanceof e&&i.__type===r&&(n||i.isAttached())&&o.push(i);return o},X.$normalizeSelection__EXPERIMENTAL=fe,X.$parseSerializedNode=function(e){return yr(e,vr()._nodes)},X.$setCompositionKey=Te,X.$setSelection=Pe,X.$splitNode=lt,X.BLUR_COMMAND=O,X.CAN_REDO_COMMAND={},X.CAN_UNDO_COMMAND={},X.CLEAR_EDITOR_COMMAND={},X.CLEAR_HISTORY_COMMAND={},X.CLICK_COMMAND=t,X.COMMAND_PRIORITY_CRITICAL=4,X.COMMAND_PRIORITY_EDITOR=0,X.COMMAND_PRIORITY_HIGH=3,X.COMMAND_PRIORITY_LOW=1,X.COMMAND_PRIORITY_NORMAL=2,X.CONTROLLED_TEXT_INSERTION_COMMAND=i,X.COPY_COMMAND=R,X.CUT_COMMAND=M,X.DELETE_CHARACTER_COMMAND=n,X.DELETE_LINE_COMMAND=u,X.DELETE_WORD_COMMAND=s,X.DEPRECATED_$computeGridMap=lr,X.DEPRECATED_$createGridSelection=function(){let e=new On("root",0,"element"),t=new On("root",0,"element");return new Fn("root",e,t)},X.DEPRECATED_$getNodeTriplet=function(e){e instanceof jr||(e instanceof cn?Wr(e=st(e,Wr))||P(114):Wr(e=st(e.getNode(),Wr))||P(114));let t=e.getParent();Ur(t)||P(115);let n=t.getParent();return Kr(n)||P(116),[e,t,n]},X.DEPRECATED_$isGridCellNode=Wr,X.DEPRECATED_$isGridNode=Kr,X.DEPRECATED_$isGridRowNode=Ur,X.DEPRECATED_$isGridSelection=Hn,X.DEPRECATED_GridCellNode=jr,X.DEPRECATED_GridNode=Gr,X.DEPRECATED_GridRowNode=Yr,X.DRAGEND_COMMAND=N,X.DRAGOVER_COMMAND=A,X.DRAGSTART_COMMAND=T,X.DROP_COMMAND=k,X.DecoratorNode=Tr,X.ElementNode=Nr,X.FOCUS_COMMAND=L,X.FORMAT_ELEMENT_COMMAND={},X.FORMAT_TEXT_COMMAND=c,X.INDENT_CONTENT_COMMAND={},X.INSERT_LINE_BREAK_COMMAND=r,X.INSERT_PARAGRAPH_COMMAND=o,X.INSERT_TAB_COMMAND={},X.KEY_ARROW_DOWN_COMMAND=y,X.KEY_ARROW_LEFT_COMMAND=g,X.KEY_ARROW_RIGHT_COMMAND=h,X.KEY_ARROW_UP_COMMAND=b,X.KEY_BACKSPACE_COMMAND=E,X.KEY_DELETE_COMMAND=S,X.KEY_DOWN_COMMAND=f,X.KEY_ENTER_COMMAND=x,X.KEY_ESCAPE_COMMAND=C,X.KEY_MODIFIER_COMMAND=I,X.KEY_SPACE_COMMAND=_,X.KEY_TAB_COMMAND=w,X.LineBreakNode=dn,X.MOVE_TO_END=m,X.MOVE_TO_START=v,X.OUTDENT_CONTENT_COMMAND={},X.PASTE_COMMAND=a,X.ParagraphNode=$r,X.REDO_COMMAND=p,X.REMOVE_TEXT_COMMAND=l,X.RootNode=Lr,X.SELECTION_CHANGE_COMMAND=e,X.TabNode=Mn,X.TextNode=xn,X.UNDO_COMMAND=d,X.createCommand=function(){return{}},X.createEditor=function(e){var t=e||{},n=ur,r=t.theme||{};let o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,a=Ir(),l=t.namespace||(null!==o?o._config.namespace:Be()),s=t.editorState,u=[Lr,xn,dn,Mn,$r,...t.nodes||[]],c=t.onError;if(t=void 0===t.editable||t.editable,void 0===e&&null!==n)e=n._nodes;else for(e=new Map,n=0;n<u.length;n++){let t=u[n],r=null;var d=null;"function"!=typeof t&&(t=(d=t).replace,r=d.with,d=d.withKlass?d.withKlass:null);let o=t.getType(),i=t.transform(),a=new Set;null!==i&&a.add(i),e.set(o,{klass:t,replace:r,replaceWithKlass:d,transforms:a})}return r=new Hr(a,o,e,{disableEvents:i,namespace:l,theme:r},c||console.error,function(e){let t=new Map,n=new Set;return e.forEach((e=>{if(null!=(e=null!=e.klass.importDOM?e.klass.importDOM.bind(e.klass):null)&&!n.has(e)){n.add(e);var r=e();null!==r&&Object.keys(r).forEach((e=>{let n=t.get(e);void 0===n&&(n=[],t.set(e,n)),n.push(r[e])}))}})),t}(e),t),void 0!==s&&(r._pendingEditorState=s,r._dirtyType=2),r},X.getNearestEditorFromDOMNode=ye,X.isSelectionCapturedInDecoratorInput=ve,X.isSelectionWithinEditor=be,X}function ee(){if(B)return z;B=1;const e=Z();return z=e}function te(){if(j)return H;j=1;const e=function(){if(F)return J;F=1;var e=ee();let t=new Map;function n(e){for(;null!=e;){if(e.nodeType===Node.TEXT_NODE)return e;e=e.firstChild}return null}function r(e){let t=e.parentNode;if(null==t)throw Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function o(e){let t={};e=e.split(";");for(let n of e)if(""!==n){let[e,r]=n.split(/:([^]+)/);t[e.trim()]=r.trim()}return t}function i(e){let n=t.get(e);return void 0===n&&(n=o(e),t.set(e,n)),n}function a(e,n){var r=i("getStyle"in e?e.getStyle():e.style);n=Object.entries(n).reduce(((e,[t,n])=>(null===n?delete e[t]:e[t]=n,e)),{...r}),r=function(e){let t="";for(let n in e)n&&(t+=`${n}: ${e[n]};`);return t}(n),e.setStyle(r),t.set(r,n)}function l(t){for(;null!==t&&!e.$isRootOrShadowRoot(t);){let e=t.getLatest(),n=t.getParent();0===e.getChildrenSize()&&t.remove(!0),t=n}}function s(t,n,r,o,i=null){if(0!==n.length){var a=n[0],s=new Map,u=[];(a=e.$isElementNode(a)?a:a.getParentOrThrow()).isInline()&&(a=a.getParentOrThrow());for(var c=!1;null!==a;){var d=a.getPreviousSibling();if(null!==d){a=d,c=!0;break}if(a=a.getParentOrThrow(),e.$isRootOrShadowRoot(a))break}d=new Set;for(var p=0;p<r;p++){var f=n[p];e.$isElementNode(f)&&0===f.getChildrenSize()&&d.add(f.getKey())}var h=new Set;for(p=0;p<r;p++){var m=(f=n[p]).getParent();if(null!==m&&m.isInline()&&(m=m.getParent()),null!==m&&e.$isLeafNode(f)&&!h.has(f.getKey())){if(f=m.getKey(),void 0===s.get(f)){let t=o();t.setFormat(m.getFormatType()),t.setIndent(m.getIndent()),u.push(t),s.set(f,t),m.getChildren().forEach((n=>{t.append(n),h.add(n.getKey()),e.$isElementNode(n)&&n.getChildrenKeys().forEach((e=>h.add(e)))})),l(m)}}else d.has(f.getKey())&&((m=o()).setFormat(f.getFormatType()),m.setIndent(f.getIndent()),u.push(m),f.remove(!0))}if(null!==i)for(n=0;n<u.length;n++)i.append(u[n]);if(n=null,e.$isRootOrShadowRoot(a))if(c)if(null!==i)a.insertAfter(i);else for(i=u.length-1;0<=i;i--)a.insertAfter(u[i]);else if(c=a.getFirstChild(),e.$isElementNode(c)&&(a=c),null===c)if(i)a.append(i);else for(i=0;i<u.length;i++)c=u[i],a.append(c),n=c;else if(null!==i)c.insertBefore(i);else for(a=0;a<u.length;a++)i=u[a],c.insertBefore(i),n=i;else if(i)a.insertAfter(i);else for(i=u.length-1;0<=i;i--)c=u[i],a.insertAfter(c),n=c;u=e.$getPreviousSelection(),e.$isRangeSelection(u)&&u.anchor.getNode().isAttached()&&u.focus.getNode().isAttached()?e.$setSelection(u.clone()):null!==n?n.selectEnd():t.dirty=!0}}function u(e,t,n,r){e.modify(t?"extend":"move",n,r)}function c(t){return t=t.anchor.getNode(),"rtl"===(e.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()}return J.$addNodeStyle=function(e){let n=o(e=e.getStyle());t.set(e,n)},J.$cloneWithProperties=function(t){let n=(t=t.getLatest()).constructor.clone(t);return n.__parent=t.__parent,n.__next=t.__next,n.__prev=t.__prev,e.$isElementNode(t)&&e.$isElementNode(n)?(n.__first=t.__first,n.__last=t.__last,n.__size=t.__size,n.__format=t.__format,n.__indent=t.__indent,n.__dir=t.__dir,n):(e.$isTextNode(t)&&e.$isTextNode(n)&&(n.__format=t.__format,n.__style=t.__style,n.__mode=t.__mode,n.__detail=t.__detail),n)},J.$getSelectionStyleValueForProperty=function(t,n,r=""){let o=null,a=t.getNodes();var l=t.anchor,s=t.focus,u=t.isBackward();let c=u?s.offset:l.offset;if(l=u?s.getNode():l.getNode(),""!==t.style&&null!==(t=i(t.style))&&n in t)return t[n];for(t=0;t<a.length;t++){var d=a[t];if((0===t||0!==c||!d.is(l))&&e.$isTextNode(d))if(s=n,u=r,s=null!==(d=i(d=d.getStyle()))&&d[s]||u,null===o)o=s;else if(o!==s){o="";break}}return null===o?r:o},J.$isAtNodeEnd=function(e){return"text"===e.type?e.offset===e.getNode().getTextContentSize():e.offset===e.getNode().getChildrenSize()},J.$isParentElementRTL=c,J.$moveCaretSelection=u,J.$moveCharacter=function(e,t,n){let r=c(e);u(e,t,n?!r:r,"character")},J.$patchStyleText=function(t,n){var r=t.getNodes();let o=r.length-1,i=r[0],l=r[o];if(t.isCollapsed())a(t,n);else{var s=t.anchor,u=t.focus,c=i.getTextContent().length,d=u.offset,p=s.offset,f=s.isBefore(u),h=f?p:d;t=f?d:p;var m=f?s.type:u.type,g=f?u.type:s.type;if(s=f?u.key:s.key,e.$isTextNode(i)&&h===c&&(u=i.getNextSibling(),e.$isTextNode(u)&&(h=p=0,i=u)),1===r.length)e.$isTextNode(i)&&(h="element"===m?0:p>d?d:p)!==(t="element"===g?c:p>d?p:d)&&(0===h&&t===c?(a(i,n),i.select(h,t)):(r=i.splitText(h,t),a(r=0===h?r[0]:r[1],n),r.select(0,t-h)));else for(e.$isTextNode(i)&&h<i.getTextContentSize()&&(0!==h&&(i=i.splitText(h)[1]),a(i,n)),e.$isTextNode(l)&&(h=l.getTextContent().length,l.__key!==s&&0!==t&&(t=h),t!==h&&([l]=l.splitText(t)),0!==t&&a(l,n)),t=1;t<o;t++)c=(h=r[t]).getKey(),e.$isTextNode(h)&&c!==i.getKey()&&c!==l.getKey()&&!h.isToken()&&a(h,n)}},J.$selectAll=function(t){let n=t.anchor;t=t.focus;var r=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();let o=r.getFirstDescendant();r=r.getLastDescendant();let i="element",a="element",l=0;e.$isTextNode(o)?i="text":e.$isElementNode(o)||null===o||(o=o.getParentOrThrow()),e.$isTextNode(r)?(a="text",l=r.getTextContentSize()):e.$isElementNode(r)||null===r||(r=r.getParentOrThrow()),o&&r&&(n.set(o.getKey(),0,i),t.set(r.getKey(),l,a))},J.$setBlocksType=function(t,n){if("root"===t.anchor.key){n=n();var r=e.$getRoot();(t=r.getFirstChild())?t.replace(n,!0):r.append(n)}else for(r=t.getNodes(),t=t.anchor.getNode().getParentOrThrow(),-1===r.indexOf(t)&&r.push(t),t.isInline()&&(t=t.getParentOrThrow(),-1===r.indexOf(t)&&r.push(t)),t=0;t<r.length;t++){let a=r[t];var o=a;if(!e.$isElementNode(o)||e.$isRootOrShadowRoot(o))o=!1;else{var i=o.getFirstChild();i=null===i||e.$isTextNode(i)||i.isInline(),o=!o.isInline()&&!1!==o.canBeEmpty()&&i}o&&((o=n()).setFormat(a.getFormatType()),o.setIndent(a.getIndent()),a.replace(o,!0))}},J.$shouldOverrideDefaultCharacterSelection=function(t,n){return t=e.$getAdjacentNode(t.focus,n),e.$isDecoratorNode(t)&&!t.isIsolated()||e.$isElementNode(t)&&!t.isInline()&&!t.canBeEmpty()},J.$sliceSelectedTextNodeContent=function(t,n){if(n.isSelected()&&!n.isSegmented()&&!n.isToken()&&(e.$isRangeSelection(t)||e.DEPRECATED_$isGridSelection(t))){var r=t.anchor.getNode(),o=t.focus.getNode(),i=n.is(r),a=n.is(o);if(i||a){i=t.isBackward();let e,[l,s]=t.getCharacterOffsets();t=r.is(o),a=n.is(i?o:r),o=n.is(i?r:o),r=0,t?(r=l>s?s:l,e=l>s?l:s):a?(r=i?s:l,e=void 0):o&&(r=0,e=i=i?l:s),n.__text=n.__text.slice(r,e)}}return n},J.$wrapNodes=function(t,n,r=null){var o=t.getNodes();let i=o.length;var a=t.anchor;if(0===i||1===i&&"element"===a.type&&0===a.getNode().getChildrenSize()){o=(t="text"===a.type?a.getNode().getParentOrThrow():a.getNode()).getChildren();let e=n();e.setFormat(t.getFormatType()),e.setIndent(t.getIndent()),o.forEach((t=>e.append(t))),r&&(e=r.append(e)),t.replace(e)}else{a=null;var l=[];for(let u=0;u<i;u++){let i=o[u];e.$isRootOrShadowRoot(i)?(s(t,l,l.length,n,r),l=[],a=i):null===a||null!==a&&e.$hasAncestor(i,a)?l.push(i):(s(t,l,l.length,n,r),l=[i])}s(t,l,l.length,n,r)}},J.createDOMRange=function(t,o,i,a,l){let s=o.getKey(),u=a.getKey(),c=document.createRange(),d=t.getElementByKey(s);if(t=t.getElementByKey(u),e.$isTextNode(o)&&(d=n(d)),e.$isTextNode(a)&&(t=n(t)),void 0===o||void 0===a||null===d||null===t)return null;"BR"===d.nodeName&&([d,i]=r(d)),"BR"===t.nodeName&&([t,l]=r(t)),o=d.firstChild,d===t&&null!=o&&"BR"===o.nodeName&&0===i&&0===l&&(l=1);try{c.setStart(d,i),c.setEnd(t,l)}catch(e){return null}return!c.collapsed||i===l&&s===u||(c.setStart(t,l),c.setEnd(d,i)),c},J.createRectsFromDOMRange=function(e,t){var n=e.getRootElement();if(null===n)return[];e=n.getBoundingClientRect(),n=getComputedStyle(n),n=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);let r,o=(t=Array.from(t.getClientRects())).length;t.sort(((e,t)=>{let n=e.top-t.top;return 3>=Math.abs(n)?e.left-t.left:n}));for(let i=0;i<o;i++){let a=t[i],l=a.width+n===e.width;r&&r.top<=a.top&&r.top+r.height>a.top&&r.left+r.width>a.left||l?(t.splice(i--,1),o--):r=a}return t},J.getStyleObjectFromCSS=i,J.trimTextContentFromAnchor=function(t,n,r){let o=n.getNode();if(e.$isElementNode(o)){var i=o.getDescendantByIndex(n.offset);null!==i&&(o=i)}for(;0<r&&null!==o;){var a=o.getPreviousSibling(),l=0;if(null===a){for(var s=(i=o.getParentOrThrow()).getPreviousSibling();null===s;){if(null===(i=i.getParent())){a=null;break}s=i.getPreviousSibling()}null!==i&&(l=i.isInline()?0:2,a=e.$isElementNode(s)?s.getLastDescendant():s)}if(""===(s=o.getTextContent())&&e.$isElementNode(o)&&!o.isInline()&&(s="\n\n"),i=o.getTextContentSize(),!e.$isTextNode(o)||r>=i)s=o.getParent(),o.remove(),null==s||0!==s.getChildrenSize()||e.$isRootNode(s)||s.remove(),r-=i+l,o=a;else{let u=o.getKey();l=t.getEditorState().read((()=>{const t=e.$getNodeByKey(u);return e.$isTextNode(t)&&t.isSimpleText()?t.getTextContent():null})),a=i-r;let c=s.slice(0,a);null!==l&&l!==s?(r=e.$getPreviousSelection(),i=o,o.isSimpleText()?o.setTextContent(l):(i=e.$createTextNode(l),o.replace(i)),e.$isRangeSelection(r)&&r.isCollapsed()&&(r=r.anchor.offset,i.select(r,r))):o.isSimpleText()?(l=n.key===u,(s=n.offset)<r&&(s=i),r=l?s-r:0,i=l?s:a,l&&0===r?([r]=o.splitText(r,i),r.remove()):([,r]=o.splitText(r,i),r.remove())):(r=e.$createTextNode(c),o.replace(r)),r=0}}},J}();return H=e}function ne(){if(W)return Q;W=1;var e=te(),t=ee();function n(e,t){for(let n of t)if(e.type.startsWith(n))return!0;return!1}function r(e,n){for(;e!==t.$getRoot()&&null!=e;){if(n(e))return e;e=e.getParent()}return null}function o(e){return 1===e.nodeType}return Q.$splitNode=t.$splitNode,Q.$dfs=function(e,n){let r=[];e=(e||t.$getRoot()).getLatest(),n=n||(t.$isElementNode(e)?e.getLastDescendant():e);for(var o=e,i=0;null!==(o=o.getParent());)i++;for(o=i;null!==e&&!e.is(n);)if(r.push({depth:o,node:e}),t.$isElementNode(e)&&0<e.getChildrenSize())e=e.getFirstChild(),o++;else for(i=null;null===i&&null!==e;)null===(i=e.getNextSibling())?(e=e.getParent(),o--):e=i;return null!==e&&e.is(n)&&r.push({depth:o,node:e}),r},Q.$findMatchingParent=r,Q.$getNearestBlockElementAncestorOrThrow=function(e){let n=r(e,(e=>t.$isElementNode(e)&&!e.isInline()));return t.$isElementNode(n)||function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(4,e.__key),n},Q.$getNearestNodeOfType=function(e,t){for(;null!=e;){if(e instanceof t)return e;e=e.getParent()}return null},Q.$insertNodeToNearestRoot=function(e){var n=t.$getSelection()||t.$getPreviousSelection();if(t.$isRangeSelection(n)){var{focus:r}=n;if(n=r.getNode(),r=r.offset,t.$isRootOrShadowRoot(n))null==(r=n.getChildAtIndex(r))?n.append(e):r.insertBefore(e),e.selectNext();else{let o,i;t.$isTextNode(n)?(o=n.getParentOrThrow(),i=n.getIndexWithinParent(),0<r&&(i+=1,n.splitText(r))):(o=n,i=r),[,n]=t.$splitNode(o,i),n.insertBefore(e),n.selectStart()}}else t.$isNodeSelection(n)||t.DEPRECATED_$isGridSelection(n)?(n=n.getNodes())[n.length-1].getTopLevelElementOrThrow().insertAfter(e):t.$getRoot().append(e),n=t.$createParagraphNode(),e.insertAfter(n),n.select();return e.getLatest()},Q.$restoreEditorState=function(n,r){let o=new Map,i=n._pendingEditorState;for(let[n,i]of r._nodeMap){let r=e.$cloneWithProperties(i);t.$isTextNode(r)&&(r.__text=i.__text),o.set(n,r)}i&&(i._nodeMap=o),n._dirtyType=2,n=r._selection,t.$setSelection(null===n?null:n.clone())},Q.$wrapNodeInElement=function(e,t){return t=t(),e.replace(t),t.append(e),t},Q.addClassNamesToElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&(t=t.split(" ").filter((e=>""!==e)),e.classList.add(...t))}))},Q.isHTMLAnchorElement=function(e){return o(e)&&"A"===e.tagName},Q.isHTMLElement=o,Q.isMimeType=n,Q.mediaFileReader=function(e,t){let r=e[Symbol.iterator]();return new Promise(((e,o)=>{let i=[],a=()=>{const{done:l,value:s}=r.next();if(l)return e(i);const u=new FileReader;u.addEventListener("error",o),u.addEventListener("load",(()=>{const e=u.result;"string"==typeof e&&i.push({file:s,result:e}),a()})),n(s,t)?u.readAsDataURL(s):a()};a()}))},Q.mergeRegister=function(...e){return()=>{e.forEach((e=>e()))}},Q.objectKlassEquals=function(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name},Q.registerNestedElementResolver=function(e,t,n,r){return e.registerNodeTransform(t,(e=>{e:{for(var o=e.getChildren(),i=0;i<o.length;i++)if(o[i]instanceof t){o=null;break e}for(o=e;null!==o;)if(i=o,(o=o.getParent())instanceof t){o={child:i,parent:o};break e}o=null}if(null!==o){const{child:t,parent:a}=o;if(t.is(e)){if(r(a,e),o=(e=t.getNextSiblings()).length,a.insertAfter(t),0!==o){i=n(a),t.insertAfter(i);for(let t=0;t<o;t++)i.append(e[t])}a.canBeEmpty()||0!==a.getChildrenSize()||a.remove()}}}))},Q.removeClassNamesFromElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&e.classList.remove(...t.split(" "))}))},Q}function re(){if(K)return G;K=1;const e=ne();return G=e}function oe(){if(V)return U;V=1;const e=function(){if(Y)return q;Y=1;var e=re(),t=ee();let n=new Set(["http:","https:","mailto:","sms:","tel:"]);class r extends t.ElementNode{static getType(){return"link"}static clone(e){return new r(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,t={},n){super(n);let{target:r=null,rel:o=null,title:i=null}=t;this.__url=e,this.__target=r,this.__rel=o,this.__title=i}createDOM(t){let n=document.createElement("a");return n.href=this.sanitizeUrl(this.__url),null!==this.__target&&(n.target=this.__target),null!==this.__rel&&(n.rel=this.__rel),null!==this.__title&&(n.title=this.__title),e.addClassNamesToElement(n,t.theme.link),n}updateDOM(e,t){let n=this.__url,r=this.__target,o=this.__rel,i=this.__title;return n!==e.__url&&(t.href=n),r!==e.__target&&(r?t.target=r:t.removeAttribute("target")),o!==e.__rel&&(o?t.rel=o:t.removeAttribute("rel")),i!==e.__title&&(i?t.title=i:t.removeAttribute("title")),!1}static importDOM(){return{a:()=>({conversion:o,priority:1})}}static importJSON(e){let t=i(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}sanitizeUrl(e){try{let t=new URL(e);if(!n.has(t.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,n=!0){return e=this.getParentOrThrow().insertNewAfter(e,n),t.$isElementNode(e)?(n=i(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),e.append(n),n):null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n){if(!t.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&0<n.getTextContent().length}}function o(t){let n=null;if(e.isHTMLAnchorElement(t)){let e=t.textContent;null!==e&&""!==e&&(n=i(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:n}}function i(e,n){return t.$applyNodeReplacement(new r(e,n))}function a(e){return e instanceof r}class l extends r{static getType(){return"autolink"}static clone(e){return new l(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}static importJSON(e){let t=s(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(e,n=!0){return e=this.getParentOrThrow().insertNewAfter(e,n),t.$isElementNode(e)?(n=s(this.__url,{rel:this._rel,target:this.__target,title:this.__title}),e.append(n),n):null}}function s(e,n){return t.$applyNodeReplacement(new l(e,n))}let u=t.createCommand("TOGGLE_LINK_COMMAND");return q.$createAutoLinkNode=s,q.$createLinkNode=i,q.$isAutoLinkNode=function(e){return e instanceof l},q.$isLinkNode=a,q.AutoLinkNode=l,q.LinkNode=r,q.TOGGLE_LINK_COMMAND=u,q.toggleLink=function(e,n={}){let{target:r,title:o}=n,l=void 0===n.rel?"noreferrer":n.rel;if(n=t.$getSelection(),t.$isRangeSelection(n))if(n=n.extract(),null===e)n.forEach((e=>{if(a(e=e.getParent())){let t=e.getChildren();for(let n=0;n<t.length;n++)e.insertBefore(t[n]);e.remove()}}));else{if(1===n.length){var s=n[0];if(s=a(s)?s:function(e,t){for(;null!==e&&null!==(e=e.getParent())&&!t(e););return e}(s,a),null!==s)return s.setURL(e),void 0!==r&&s.setTarget(r),null!==l&&s.setRel(l),void(void 0!==o&&s.setTitle(o))}let u=null,c=null;n.forEach((n=>{var s=n.getParent();if(s!==c&&null!==s&&(!t.$isElementNode(n)||n.isInline()))if(a(s))c=s,s.setURL(e),void 0!==r&&s.setTarget(r),null!==l&&c.setRel(l),void 0!==o&&c.setTitle(o);else if(s.is(u)||(u=s,c=i(e,{rel:l,target:r}),a(s)?null===n.getPreviousSibling()?s.insertBefore(c):s.insertAfter(c):n.insertBefore(c)),a(n)){if(!n.is(c)){if(null!==c){s=n.getChildren();for(let e=0;e<s.length;e++)c.append(s[e])}n.remove()}}else null!==c&&c.append(n)}))}},q}();return U=e}var ie,ae,le,se=oe(),ue={};function ce(){if(ie)return ue;ie=1;var e=ee(),t=re();function n(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function r(e){let t=1;for(e=e.getParent();null!=e;){if(y(e)){if(k(e=e.getParent())){t++,e=e.getParent();continue}n(40)}break}return t}function o(e){k(e=e.getParent())||n(40);let t=e;for(;null!==t;)t=t.getParent(),k(t)&&(e=t);return e}function i(e){let t=[];e=e.getChildren().filter(y);for(let n=0;n<e.length;n++){let r=e[n],o=r.getFirstChild();k(o)?t=t.concat(i(o)):t.push(r)}return t}function a(e){return y(e)&&k(e.getFirstChild())}function l(e){return b().append(e)}function s(e,t){return y(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function u(e,t){e.splice(e.getChildrenSize(),0,t)}function c(e,t){if(k(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),o=b();return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),u(o,e.getChildren()),k(n)&&t===n.getListType()?(n.append(o),e.remove(),k(r)&&t===r.getListType()&&(u(n,r.getChildren()),r.remove()),n):k(r)&&t===r.getListType()?(r.getFirstChildOrThrow().insertBefore(o),e.remove(),r):((t=w(t)).append(o),e.replace(t),p(t),t)}function d(e,t){var n=e.getLastChild();let r=t.getFirstChild();n&&r&&a(n)&&a(r)&&(d(n.getFirstChild(),r.getFirstChild()),r.remove()),0<(n=t.getChildren()).length&&(e.append(...n),p(e)),t.remove()}function p(e,t){if(void 0!==(e=t||e.getChildren()))for(t=0;t<e.length;t++){let a=e[t];if(y(a)){let e=a.getValue();var r=a,o=r.getParent(),i=1;for(null!=o&&(k(o)?i=o.getStart():n(44)),r=r.getPreviousSiblings(),o=0;o<r.length;o++){let e=r[o];y(e)&&!k(e.getFirstChild())&&i++}e!==i&&a.setValue(i)}}}function f(e){if(!a(e)){var t=e.getParent(),n=t?t.getParent():void 0,r=n?n.getParent():void 0;if(k(r)&&y(n)&&k(t)){var o=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(o))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{var l=t.getListType();o=b();let r=w(l);o.append(r),e.getPreviousSiblings().forEach((e=>r.append(e))),i=b(),l=w(l),i.append(l),u(l,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(i),n.replace(e)}p(t),p(r)}}}class h extends e.ElementNode{static getType(){return"listitem"}static clone(e){return new h(e.__value,e.__checked,e.__key)}constructor(e,t,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}createDOM(e){let t=document.createElement("li"),n=this.getParent();return k(n)&&"check"===n.getListType()&&g(t,this,null),t.value=this.__value,m(t,e.theme,this),t}updateDOM(e,t,n){let r=this.getParent();return k(r)&&"check"===r.getListType()&&g(t,this,e),t.value=this.__value,m(t,n.theme,this),!1}static transform(){return e=>{let t=e.getParent();k(t)&&(p(t),"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0))}}static importDOM(){return{li:()=>({conversion:v,priority:0})}}static importJSON(e){let t=b();return t.setChecked(e.checked),t.setValue(e.value),t.setFormat(e.format),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...t){for(let n=0;n<t.length;n++){let r=t[n];if(e.$isElementNode(r)&&this.canMergeWith(r)){let e=r.getChildren();this.append(...e),r.remove()}else super.append(r)}return this}replace(e,t){if(y(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!k(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=w(n.getListType()),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&this.getChildren().forEach((t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){var r=this.getParentOrThrow();k(r)||n(39);var o=this.getNextSiblings();if(y(e))return t=super.insertAfter(e,t),k(e=e.getParentOrThrow())&&p(e),t;if(k(e)){for(r=e,o=(e=e.getChildren()).length-1;0<=o;o--)r=e[o],this.insertAfter(r,t);return r}if(r.insertAfter(e,t),0!==o.length){let n=w(r.getListType());o.forEach((e=>n.append(e))),e.insertAfter(n,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&a(t)&&a(n)?(d(t.getFirstChild(),n.getFirstChild()),n.remove()):n&&(k(e=n.getParent())&&p(e))}insertNewAfter(e,t=!0){return e=b(null==this.__checked&&void 0),this.insertAfter(e,t),e}collapseAtStart(t){let n=e.$createParagraphNode();this.getChildren().forEach((e=>n.append(e)));var r=this.getParentOrThrow(),o=r.getParentOrThrow();let i=y(o);return 1===r.getChildrenSize()?i?(r.remove(),o.select()):(r.insertBefore(n),r.remove(),r=t.anchor,t=t.focus,o=n.getKey(),"element"===r.type&&r.getNode().is(this)&&r.set(o,r.offset,"element"),"element"===t.type&&t.getNode().is(this)&&t.set(o,t.offset,"element")):(r.insertBefore(n),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var e=this.getParent();if(null===e)return this.getLatest().__indent;e=e.getParentOrThrow();let t=0;for(;y(e);)e=e.getParentOrThrow().getParentOrThrow(),t++;return t}setIndent(e){"number"==typeof e&&-1<e||n(117);let t=this.getIndent();for(;t!==e;)if(t<e){e:{var r=new Set;if(a(this)||r.has(this.getKey()))break e;let e=this.getParent();var o=this.getNextSibling(),i=this.getPreviousSibling();if(a(o)&&a(i)){if(k(i=i.getFirstChild())){i.append(this);var l=o.getFirstChild();k(l)&&(u(i,l=l.getChildren()),o.remove(),r.add(o.getKey())),p(i)}}else a(o)?k(o=o.getFirstChild())&&(null!==(r=o.getFirstChild())&&r.insertBefore(this),p(o)):a(i)?k(o=i.getFirstChild())&&(o.append(this),p(o)):k(e)&&(r=b(),l=w(e.getListType()),r.append(l),l.append(this),i?i.insertAfter(r):o?o.insertBefore(r):e.append(r),p(l));k(e)&&p(e)}t++}else f(this),t--;return this}insertBefore(e){if(y(e)){let e=this.getParentOrThrow();if(k(e)){p(e,this.getNextSiblings())}}return super.insertBefore(e)}canInsertAfter(e){return y(e)}canReplaceWith(e){return y(e)}canMergeWith(t){return e.$isParagraphNode(t)||y(t)}extractWithChild(t,n){if(!e.$isRangeSelection(n))return!1;t=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(t)&&this.isParentOf(r)&&this.getTextContent().length===n.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return w("bullet")}}function m(e,n,r){let o=[],i=[];var a=(n=n.list)?n.listitem:void 0;if(n&&n.nested)var l=n.nested.listitem;if(void 0!==a&&(a=a.split(" "),o.push(...a)),n){a=k(a=r.getParent())&&"check"===a.getListType();let e=r.getChecked();a&&!e||i.push(n.listitemUnchecked),a&&e||i.push(n.listitemChecked),a&&o.push(e?n.listitemChecked:n.listitemUnchecked)}void 0!==l&&(l=l.split(" "),r.getChildren().some((e=>k(e)))?o.push(...l):i.push(...l)),0<i.length&&t.removeClassNamesFromElement(e,...i),0<o.length&&t.addClassNamesToElement(e,...o)}function g(e,t,n){k(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"))}function v(e){return{node:b(e=t.isHTMLElement(e)&&"true"===e.getAttribute("aria-checked"))}}function b(t){return e.$applyNodeReplacement(new h(void 0,t))}function y(e){return e instanceof h}class x extends e.ElementNode{static getType(){return"list"}static clone(e){return new x(e.__listType||S[e.__tag],e.__start,e.__key)}constructor(e,t,n){super(n),this.__listType=e=S[e]||e,this.__tag="number"===e?"ol":"ul",this.__start=t}getTag(){return this.__tag}setListType(e){let t=this.getWritable();t.__listType=e,t.__tag="number"===e?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e){let t=document.createElement(this.__tag);return 1!==this.__start&&t.setAttribute("start",String(this.__start)),t.__lexicalListType=this.__listType,_(t,e.theme,this),t}updateDOM(e,t,n){return e.__tag!==this.__tag||(_(t,n.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:C,priority:0}),ul:()=>({conversion:C,priority:0})}}static importJSON(e){let t=w(e.listType,e.start);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportDOM(e){return({element:e}=super.exportDOM(e)),e&&(1!==this.__start&&e.setAttribute("start",String(this.__start)),"check"===this.__listType&&e.setAttribute("__lexicalListType","check")),{element:e}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...t){for(let r=0;r<t.length;r++){var n=t[r];if(y(n))super.append(n);else{let t=b();k(n)?t.append(n):e.$isElementNode(n)?(n=e.$createTextNode(n.getTextContent()),t.append(n)):t.append(n),super.append(t)}}return p(this),this}extractWithChild(e){return y(e)}}function _(e,n,o){let i=[],a=[];var l=n.list;if(void 0!==l){let e=l[`${o.__tag}Depth`]||[],t=(n=r(o)-1)%e.length;var s=e[t];let u,c=l[o.__tag];if(void 0!==(l=l.nested)&&l.list&&(u=l.list),void 0!==c&&i.push(c),void 0!==s)for(s=s.split(" "),i.push(...s),s=0;s<e.length;s++)s!==t&&a.push(o.__tag+s);void 0!==u&&(o=u.split(" "),1<n?i.push(...o):a.push(...o))}0<a.length&&t.removeClassNamesFromElement(e,...a),0<i.length&&t.addClassNamesToElement(e,...i)}function E(e){let t=[];for(let r=0;r<e.length;r++){var n=e[r];y(n)?(t.push(n),1<(n=n.getChildren()).length&&n.forEach((e=>{k(e)&&t.push(l(e))}))):t.push(l(n))}return t}function C(e){let n=e.nodeName.toLowerCase(),r=null;return"ol"===n?r=w("number",e.start):"ul"===n&&(r=t.isHTMLElement(e)&&"check"===e.getAttribute("__lexicallisttype")?w("check"):w("bullet")),{after:E,node:r}}let S={ol:"number",ul:"bullet"};function w(t,n=1){return e.$applyNodeReplacement(new x(t,n))}function k(e){return e instanceof x}let T=e.createCommand("INSERT_UNORDERED_LIST_COMMAND"),A=e.createCommand("INSERT_ORDERED_LIST_COMMAND"),N=e.createCommand("INSERT_CHECK_LIST_COMMAND"),R=e.createCommand("REMOVE_LIST_COMMAND");return ue.$createListItemNode=b,ue.$createListNode=w,ue.$getListDepth=r,ue.$handleListInsertParagraph=function(){var t=e.$getSelection();if(!e.$isRangeSelection(t)||!t.isCollapsed())return!1;if(!y(t=t.anchor.getNode())||""!==t.getTextContent())return!1;var r=o(t),i=t.getParent();k(i)||n(40);let a,l=i.getParent();if(e.$isRootOrShadowRoot(l))a=e.$createParagraphNode(),r.insertAfter(a);else{if(!y(l))return!1;a=b(),l.insertAfter(a)}if(a.select(),0<(r=t.getNextSiblings()).length){let t=w(i.getListType());e.$isParagraphNode(a)?a.insertAfter(t):((i=b()).append(t),a.insertAfter(i)),r.forEach((e=>{e.remove(),t.append(e)}))}return function(e){for(;null==e.getNextSibling()&&null==e.getPreviousSibling();){let t=e.getParent();if(null==t||!y(e)&&!k(e))break;e=t}e.remove()}(t),!0},ue.$isListItemNode=y,ue.$isListNode=k,ue.INSERT_CHECK_LIST_COMMAND=N,ue.INSERT_ORDERED_LIST_COMMAND=A,ue.INSERT_UNORDERED_LIST_COMMAND=T,ue.ListItemNode=h,ue.ListNode=x,ue.REMOVE_LIST_COMMAND=R,ue.insertList=function(t,n){t.update((()=>{var t=e.$getSelection();if(e.$isRangeSelection(t)||e.DEPRECATED_$isGridSelection(t)){var r=t.getNodes(),o=(t=t.anchor.getNode()).getParent();if(s(t,r))r=w(n),e.$isRootOrShadowRoot(o)?(t.replace(r),o=b(),e.$isElementNode(t)&&(o.setFormat(t.getFormatType()),o.setIndent(t.getIndent())),r.append(o)):y(t)&&(u(r,(t=t.getParentOrThrow()).getChildren()),t.replace(r));else for(t=new Set,o=0;o<r.length;o++){var i=r[o];if(e.$isElementNode(i)&&i.isEmpty()&&!t.has(i.getKey()))c(i,n);else if(e.$isLeafNode(i))for(i=i.getParent();null!=i;){let r=i.getKey();if(k(i)){if(!t.has(r)){var a=w(n);u(a,i.getChildren()),i.replace(a),p(a),t.add(r)}break}if(a=i.getParent(),e.$isRootOrShadowRoot(a)&&!t.has(r)){t.add(r),c(i,n);break}i=a}}}}))},ue.removeList=function(n){n.update((()=>{let n=e.$getSelection();if(e.$isRangeSelection(n)){var r=new Set,a=n.getNodes(),l=n.anchor.getNode();if(s(l,a))r.add(o(l));else for(l=0;l<a.length;l++){var c=a[l];e.$isLeafNode(c)&&(null!=(c=t.$getNearestNodeOfType(c,h))&&r.add(o(c)))}for(let t of r){r=t,a=i(t);for(let t of a)u(a=e.$createParagraphNode(),t.getChildren()),r.insertAfter(a),r=a,t.__key===n.anchor.key&&n.anchor.set(a.getKey(),0,"element"),t.__key===n.focus.key&&n.focus.set(a.getKey(),0,"element"),t.remove();t.remove()}}}))},ue}function de(){if(le)return ae;le=1;const e=ce();return ae=e}var pe,fe,he,me,ge,ve,be=de(),ye={},xe={};function _e(){if(pe)return xe;pe=1;var e=g;let t=e.createContext(null);return xe.LexicalComposerContext=t,xe.createLexicalComposerContext=function(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}},xe.useLexicalComposerContext=function(){let n=e.useContext(t);return null==n&&function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),n},xe}function Ee(){if(he)return fe;he=1;const e=_e();return fe=e}function Ce(){if(me)return ye;me=1;var e=Ee(),t=ee(),n=g;let r="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;var o=r?n.useLayoutEffect:n.useEffect;let i={tag:"history-merge"};return ye.LexicalComposer=function({initialConfig:a,children:l}){let s=n.useMemo((()=>{const{theme:n,namespace:o,editor__DEPRECATED:l,nodes:s,onError:u,editorState:c}=a,d=e.createLexicalComposerContext(null,n);let p=l||null;if(null===p){const e=t.createEditor({editable:a.editable,namespace:o,nodes:s,onError:t=>u(t,e),theme:n});!function(e,n){if(null!==n)if(void 0===n)e.update((()=>{var n=t.$getRoot();if(n.isEmpty()){let o=t.$createParagraphNode();n.append(o),n=r?document.activeElement:null,(null!==t.$getSelection()||null!==n&&n===e.getRootElement())&&o.select()}}),i);else if(null!==n)switch(typeof n){case"string":let r=e.parseEditorState(n);e.setEditorState(r,i);break;case"object":e.setEditorState(n,i);break;case"function":e.update((()=>{t.$getRoot().isEmpty()&&n(e)}),i)}}(e,c),p=e}return[p,d]}),[]);return o((()=>{let e=a.editable,[t]=s;t.setEditable(void 0===e||e)}),[]),n.createElement(e.LexicalComposerContext.Provider,{value:s},l)},ye}var Se,we,ke,Te,Ae,Ne,Re=function(){if(ve)return ge;ve=1;const e=Ce();return ge=e}(),Me={},Le={};function Oe(){if(Se)return Le;Se=1;var e=re(),t=ee();function n(e,n){let r=Date.now(),o=0;return(i,a,l,s,u,c)=>{let d=Date.now();if(c.has("historic"))return o=0,r=d,2;let p=function(e,n,r,o,i){if(null===e||0===r.size&&0===o.size&&!i)return 0;var a=n._selection,l=e._selection;if(i)return 1;if(!(t.$isRangeSelection(a)&&t.$isRangeSelection(l)&&l.isCollapsed()&&a.isCollapsed()))return 0;i=n._nodeMap;let s=[];for(let e of r)void 0!==(r=i.get(e))&&s.push(r);for(let[e,n]of o)n&&(void 0===(o=i.get(e))||t.$isRootNode(o)||s.push(o));return 0===s.length?0:1<s.length?(n=(o=n._nodeMap).get(a.anchor.key),l=o.get(l.anchor.key),n&&l&&!e._nodeMap.has(n.__key)&&t.$isTextNode(n)&&1===n.__text.length&&1===a.anchor.offset?2:0):(n=s[0],e=e._nodeMap.get(n.__key),t.$isTextNode(e)&&t.$isTextNode(n)&&e.__mode===n.__mode?(e=e.__text)===(n=n.__text)?0:(a=a.anchor,l=l.anchor,a.key!==l.key||"text"!==a.type?0:(a=a.offset,l=l.offset,1==(e=n.length-e.length)&&l===a-1?2:-1===e&&l===a+1?3:-1===e&&l===a?4:0)):0)}(i,a,s,u,e.isComposing()),f=(()=>{var f=null===l||l.editor===e,h=c.has("history-push");if(!h&&f&&c.has("history-merge"))return 0;if(null===i)return 1;var m=a._selection;if(!(0<s.size||0<u.size))return null!==m?0:2;if(!1===h&&0!==p&&p===o&&d<r+n&&f)return 0;if(1===s.size){{h=Array.from(s)[0],f=i._nodeMap.get(h),h=a._nodeMap.get(h),m=i._selection;let e=a._selection,n=!1;t.$isRangeSelection(m)&&t.$isRangeSelection(e)&&(n="element"===m.anchor.type&&"element"===m.focus.type&&"text"===e.anchor.type&&"text"===e.focus.type),f=!(n||!t.$isTextNode(f)||!t.$isTextNode(h))&&(f.__type===h.__type&&f.__text===h.__text&&f.__mode===h.__mode&&f.__detail===h.__detail&&f.__style===h.__style&&f.__format===h.__format&&f.__parent===h.__parent)}if(f)return 0}return 1})();return r=d,o=p,f}}return Le.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},Le.registerHistory=function(r,o,i){let a=n(r,i);i=({editorState:e,prevEditorState:n,dirtyLeaves:i,dirtyElements:l,tags:s})=>{const u=o.current,c=o.redoStack,d=o.undoStack,p=null===u?null:u.editorState;if(null===u||e!==p){if(1===(n=a(n,e,u,i,l,s)))0!==c.length&&(o.redoStack=[],r.dispatchCommand(t.CAN_REDO_COMMAND,!1)),null!==u&&(d.push({...u}),r.dispatchCommand(t.CAN_UNDO_COMMAND,!0));else if(2===n)return;o.current={editor:r,editorState:e}}};let l=e.mergeRegister(r.registerCommand(t.UNDO_COMMAND,(()=>{let e=o.redoStack,n=o.undoStack;if(0!==n.length){let i=o.current,a=n.pop();null!==i&&(e.push(i),r.dispatchCommand(t.CAN_REDO_COMMAND,!0)),0===n.length&&r.dispatchCommand(t.CAN_UNDO_COMMAND,!1),o.current=a||null,a&&a.editor.setEditorState(a.editorState,{tag:"historic"})}return!0}),t.COMMAND_PRIORITY_EDITOR),r.registerCommand(t.REDO_COMMAND,(()=>{let e=o.redoStack;var n=o.undoStack;if(0!==e.length){let i=o.current;null!==i&&(n.push(i),r.dispatchCommand(t.CAN_UNDO_COMMAND,!0)),n=e.pop(),0===e.length&&r.dispatchCommand(t.CAN_REDO_COMMAND,!1),o.current=n||null,n&&n.editor.setEditorState(n.editorState,{tag:"historic"})}return!0}),t.COMMAND_PRIORITY_EDITOR),r.registerCommand(t.CLEAR_EDITOR_COMMAND,(()=>(o.undoStack=[],o.redoStack=[],o.current=null,!1)),t.COMMAND_PRIORITY_EDITOR),r.registerCommand(t.CLEAR_HISTORY_COMMAND,(()=>(o.undoStack=[],o.redoStack=[],o.current=null,r.dispatchCommand(t.CAN_REDO_COMMAND,!1),r.dispatchCommand(t.CAN_UNDO_COMMAND,!1),!0)),t.COMMAND_PRIORITY_EDITOR),r.registerUpdateListener(i)),s=r.registerUpdateListener(i);return()=>{l(),s()}},Le}function Ie(){if(Te)return Me;Te=1;var e=Ee(),t=function(){if(ke)return we;ke=1;const e=Oe();return we=e}(),n=g;return Me.createEmptyHistoryState=t.createEmptyHistoryState,Me.HistoryPlugin=function({externalHistoryState:r}){let[o]=e.useLexicalComposerContext();return function(e,r,o=1e3){let i=n.useMemo((()=>r||t.createEmptyHistoryState()),[r]);n.useEffect((()=>t.registerHistory(e,i,o)),[o,e,i])}(o,r),null},Me}var Pe,De,$e,ze=function(){if(Ne)return Ae;Ne=1;const e=Ie();return Ae=e}(),Be={};function Fe(){if(Pe)return Be;Pe=1;var e=de(),t=Ee(),n=g,r=re(),o=ee();return Be.ListPlugin=function(){let[i]=t.useLexicalComposerContext();return n.useEffect((()=>{if(!i.hasNodes([e.ListNode,e.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")}),[i]),function(t){n.useEffect((()=>r.mergeRegister(t.registerCommand(e.INSERT_ORDERED_LIST_COMMAND,(()=>(e.insertList(t,"number"),!0)),o.COMMAND_PRIORITY_LOW),t.registerCommand(e.INSERT_UNORDERED_LIST_COMMAND,(()=>(e.insertList(t,"bullet"),!0)),o.COMMAND_PRIORITY_LOW),t.registerCommand(e.REMOVE_LIST_COMMAND,(()=>(e.removeList(t),!0)),o.COMMAND_PRIORITY_LOW),t.registerCommand(o.INSERT_PARAGRAPH_COMMAND,(()=>!!e.$handleListInsertParagraph()),o.COMMAND_PRIORITY_LOW))),[t])}(i),null},Be}var He,je,We,Ge=function(){if($e)return De;$e=1;const e=Fe();return De=e}(),Ke={};function Ye(){if(He)return Ke;He=1;var e=Ee(),t=re(),n=ee(),r=g;function o(e){return e.registerCommand(n.KEY_TAB_COMMAND,(r=>{let o=n.$getSelection();return!!n.$isRangeSelection(o)&&(r.preventDefault(),r=function(e){var r=e.getNodes();if(0<function(e,t){let n=[];for(let r=0;r<e.length;r++){let o=t(e[r]);null!==o&&n.push(o)}return n}(r,(e=>n.$isBlockElementNode(e)&&e.canIndent()?e:null)).length)return!0;if(r=e.anchor,r=(e=(e=e.focus).isBefore(r)?e:r).getNode(),(r=t.$getNearestBlockElementAncestorOrThrow(r)).canIndent()){r=r.getKey();let t=n.$createRangeSelection();if(t.anchor.set(r,0,"element"),t.focus.set(r,0,"element"),t=n.$normalizeSelection__EXPERIMENTAL(t),t.anchor.is(e))return!0}return!1}(o)?r.shiftKey?n.OUTDENT_CONTENT_COMMAND:n.INDENT_CONTENT_COMMAND:n.INSERT_TAB_COMMAND,e.dispatchCommand(r,void 0))}),n.COMMAND_PRIORITY_EDITOR)}return Ke.TabIndentationPlugin=function(){let[t]=e.useLexicalComposerContext();return r.useEffect((()=>o(t))),null},Ke.registerTabIndentation=o,Ke}var Ue,Ve,qe,Qe,Je,Xe,Ze,et,tt,nt=function(){if(We)return je;We=1;const e=Ye();return je=e}(),rt={},ot={},it={};function at(){if(qe)return Ve;qe=1;const e=function(){if(Ue)return it;Ue=1;var e=te(),t=ee();function n(r,o,i,a=null){let l=null==a||o.isSelected(a),s=t.$isElementNode(o)&&o.excludeFromCopy("html");var u=o;null!==a&&(u=e.$cloneWithProperties(o),u=t.$isTextNode(u)&&null!=a?e.$sliceSelectedTextNodeContent(a,u):u);let c=t.$isElementNode(u)?u.getChildren():[],{element:d,after:p}=u.exportDOM(r);if(!d)return!1;let f=document.createDocumentFragment();for(let e=0;e<c.length;e++){let i=c[e],s=n(r,i,f,a);!l&&t.$isElementNode(o)&&s&&o.extractWithChild(i,a,"html")&&(l=!0)}return l&&!s?(d.append(f),i.append(d),p&&(r=p.call(u,d))&&d.replaceWith(r)):i.append(f),l}let r=new Set(["STYLE","SCRIPT"]);function o(e,n,i=new Map,a){let l=[];if(r.has(e.nodeName))return l;let s=null;var u,{nodeName:c}=e,d=n._htmlConversions.get(c.toLowerCase());if(c=null,void 0!==d)for(u of d)null!==(d=u(e))&&(null===c||c.priority<d.priority)&&(c=d);if(c=(u=null!==c?c.conversion:null)?u(e):null,u=null,null!==c){if(u=c.after,d=c.node,s=Array.isArray(d)?d[d.length-1]:d,null!==s){for(var[,p]of i)if(s=p(s,a),!s)break;s&&l.push(...Array.isArray(d)?d:[s])}null!=c.forChild&&i.set(e.nodeName,c.forChild)}for(e=e.childNodes,a=[],p=0;p<e.length;p++)a.push(...o(e[p],n,new Map(i),s));return null!=u&&(a=u(a)),null==s?l=l.concat(a):t.$isElementNode(s)&&s.append(...a),l}return it.$generateHtmlFromNodes=function(e,r){if("undefined"==typeof document||"undefined"==typeof window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let o=document.createElement("div"),i=t.$getRoot().getChildren();for(let t=0;t<i.length;t++)n(e,i[t],o,r);return o.innerHTML},it.$generateNodesFromDOM=function(e,t){t=t.body?t.body.childNodes:[];let n=[];for(let a=0;a<t.length;a++){var i=t[a];r.has(i.nodeName)||null!==(i=o(i,e))&&(n=n.concat(i))}return n},it}();return Ve=e}function lt(){if(Qe)return ot;Qe=1;var e=at(),t=te(),n=re(),r=ee();function o(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(t){let n=r.$getSelection();if(null==n)throw Error("Expected valid LexicalSelection");return r.$isRangeSelection(n)&&n.isCollapsed()||0===n.getNodes().length?"":e.$generateHtmlFromNodes(t,n)}function l(e){let t=r.$getSelection();if(null==t)throw Error("Expected valid LexicalSelection");return r.$isRangeSelection(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(c(e,t))}function s(e,t,i){(r.DEPRECATED_$isGridSelection(i)||null!==n.$findMatchingParent(i.anchor.getNode(),(e=>r.DEPRECATED_$isGridCellNode(e)))&&null!==n.$findMatchingParent(i.focus.getNode(),(e=>r.DEPRECATED_$isGridCellNode(e))))&&1===t.length&&r.DEPRECATED_$isGridNode(t[0])?function(e,t,i,a){1===e.length&&r.DEPRECATED_$isGridNode(e[0])||o(42);var l=e[0];e=l.getChildren(),i=l.getFirstChildOrThrow().getChildrenSize();var s=l.getChildrenSize(),u=n.$findMatchingParent(t.anchor.getNode(),(e=>r.DEPRECATED_$isGridCellNode(e)));t=(l=u&&n.$findMatchingParent(u,(e=>r.DEPRECATED_$isGridRowNode(e))))&&n.$findMatchingParent(l,(e=>r.DEPRECATED_$isGridNode(e))),r.DEPRECATED_$isGridCellNode(u)&&r.DEPRECATED_$isGridRowNode(l)&&r.DEPRECATED_$isGridNode(t)||o(43);var c=l.getIndexWithinParent(),d=Math.min(t.getChildrenSize()-1,c+s-1);let p,f;s=u.getIndexWithinParent(),u=Math.min(l.getChildrenSize()-1,s+i-1),i=Math.min(s,u),l=Math.min(c,d),s=Math.max(s,u),c=Math.max(c,d),d=t.getChildren(),u=0;for(let t=l;t<=c;t++){var h=d[t];r.DEPRECATED_$isGridRowNode(h)||o(24);var m=e[u];r.DEPRECATED_$isGridRowNode(m)||o(24),h=h.getChildren(),m=m.getChildren();let n=0;for(let e=i;e<=s;e++){let a=h[e];r.DEPRECATED_$isGridCellNode(a)||o(25);let u=m[n];r.DEPRECATED_$isGridCellNode(u)||o(25),t===l&&e===i?p=a.getKey():t===c&&e===s&&(f=a.getKey());let d=a.getChildren();u.getChildren().forEach((e=>{r.$isTextNode(e)&&r.$createParagraphNode().append(e),a.append(e)})),d.forEach((e=>e.remove())),n++}u++}p&&f&&(e=r.DEPRECATED_$createGridSelection(),e.set(t.getKey(),p,f),r.$setSelection(e),a.dispatchCommand(r.SELECTION_CHANGE_COMMAND,void 0))}(t,i,!1,e):function(e,t){let n=[],i=null;for(let t=0;t<e.length;t++){let o=e[t],a=r.$isLineBreakNode(o);if(a||r.$isDecoratorNode(o)&&o.isInline()||r.$isElementNode(o)&&o.isInline()||r.$isTextNode(o)||o.isParentRequired()){if(null===i&&(i=o.createParentElementNode(),n.push(i),a))continue;null!==i&&i.append(o)}else n.push(o),i=null}r.$isRangeSelection(t)?t.insertNodes(n):r.DEPRECATED_$isGridSelection(t)&&(e=t.anchor.getNode(),r.DEPRECATED_$isGridCellNode(e)||o(41),e.append(...n))}(t,i)}function u(e,n,i,a=[]){let l=null==n||i.isSelected(n),s=r.$isElementNode(i)&&i.excludeFromCopy("html");var c=i;if(null!==n){var d=t.$cloneWithProperties(i);c=d=r.$isTextNode(d)&&null!=n?t.$sliceSelectedTextNodeContent(n,d):d}let p=r.$isElementNode(c)?c.getChildren():[];var f=c;d=f.exportJSON();var h=f.constructor;d.type!==h.getType()&&o(58,h.name);let m=d.children;for(r.$isElementNode(f)&&(Array.isArray(m)||o(59,h.name)),r.$isTextNode(c)&&(0<(c=c.__text).length?d.text=c:l=!1),c=0;c<p.length;c++)h=u(e,n,f=p[c],d.children),!l&&r.$isElementNode(i)&&h&&i.extractWithChild(f,n,"clone")&&(l=!0);if(l&&!s)a.push(d);else if(Array.isArray(d.children))for(e=0;e<d.children.length;e++)a.push(d.children[e]);return l}function c(e,t){let n=[],o=r.$getRoot().getChildren();for(let r=0;r<o.length;r++)u(e,t,o[r],n);return{namespace:e._config.namespace,nodes:n}}function d(e){let n=[];for(let o=0;o<e.length;o++){let i=r.$parseSerializedNode(e[o]);r.$isTextNode(i)&&t.$addNodeStyle(i),n.push(i)}return n}let p=null;function f(e,t){var n=i?(e._window||window).getSelection():null;if(!n)return!1;var o=n.anchorNode;if(n=n.focusNode,null!==o&&null!==n&&!r.isSelectionWithinEditor(e,o,n))return!1;if(t.preventDefault(),t=t.clipboardData,o=r.$getSelection(),null===t||null===o)return!1;n=a(e),e=l(e);let s="";return null!==o&&(s=o.getTextContent()),null!==n&&t.setData("text/html",n),null!==e&&t.setData("application/x-lexical-editor",e),t.setData("text/plain",s),!0}return ot.$generateJSONFromSelectedNodes=c,ot.$generateNodesFromSerializedNodes=d,ot.$getHtmlContent=a,ot.$getLexicalContent=l,ot.$insertDataTransferForPlainText=function(e,t){null!=(e=e.getData("text/plain")||e.getData("text/uri-list"))&&t.insertRawText(e)},ot.$insertDataTransferForRichText=function(t,n,o){var i=t.getData("application/x-lexical-editor");if(i)try{let e=JSON.parse(i);if(e.namespace===o._config.namespace&&Array.isArray(e.nodes)){return s(o,d(e.nodes),n)}}catch(e){}if(i=t.getData("text/html"))try{var a=(new DOMParser).parseFromString(i,"text/html"),l=e.$generateNodesFromDOM(o,a);return s(o,l,n)}catch(e){}if(null!=(t=t.getData("text/plain")||t.getData("text/uri-list")))if(r.$isRangeSelection(n))for(o=(t=t.split(/(\r?\n|\t)/)).length,a=0;a<o;a++)"\n"===(l=t[a])||"\r\n"===l?n.insertParagraph():"\t"===l?n.insertNodes([r.$createTabNode()]):n.insertText(l);else n.insertRawText(t)},ot.$insertGeneratedNodes=s,ot.copyToClipboard=async function(e,t){if(null!==p)return!1;if(null!==t)return new Promise((n=>{e.update((()=>{n(f(e,t))}))}));var o=e.getRootElement();let a=null==e._window?window.document:e._window.document,l=i?(e._window||window).getSelection():null;if(null===o||null===l)return!1;let s=a.createElement("span");return s.style.cssText="position: fixed; top: -1000px;",s.append(a.createTextNode("#")),o.append(s),(o=new Range).setStart(s,0),o.setEnd(s,1),l.removeAllRanges(),l.addRange(o),new Promise((t=>{let o=e.registerCommand(r.COPY_COMMAND,(r=>(n.objectKlassEquals(r,ClipboardEvent)&&(o(),null!==p&&(window.clearTimeout(p),p=null),t(f(e,r))),!0)),r.COMMAND_PRIORITY_CRITICAL);p=window.setTimeout((()=>{o(),p=null,t(!1)}),50),a.execCommand("copy"),s.remove()}))},ot}function st(){if(Ze)return rt;Ze=1;var e=function(){if(Xe)return Je;Xe=1;const e=lt();return Je=e}(),t=te(),n=re(),r=ee();function o(e,t){return void 0!==document.caretRangeFromPoint?null===(e=document.caretRangeFromPoint(e,t))?null:{node:e.startContainer,offset:e.startOffset}:"undefined"!==document.caretPositionFromPoint?null===(e=document.caretPositionFromPoint(e,t))?null:{node:e.offsetNode,offset:e.offset}:null}let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a=i&&"documentMode"in document?document.documentMode:null,l=!(!i||!("InputEvent"in window)||a)&&"getTargetRanges"in new window.InputEvent("input"),s=i&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),u=i&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c=i&&/^(?=.*Chrome).*/i.test(navigator.userAgent),d=i&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!c,p=r.createCommand("DRAG_DROP_PASTE_FILE");class f extends r.ElementNode{static getType(){return"quote"}static clone(e){return new f(e.__key)}constructor(e){super(e)}createDOM(e){let t=document.createElement("blockquote");return n.addClassNamesToElement(t,e.theme.quote),t}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:b,priority:0})}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}static importJSON(e){let t=h();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(e,t){e=r.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=r.$createParagraphNode();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}}function h(){return r.$applyNodeReplacement(new f)}class m extends r.ElementNode{static getType(){return"heading"}static clone(e){return new m(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}createDOM(e){let t=this.__tag,r=document.createElement(t);return void 0!==(e=e.theme.heading)&&n.addClassNamesToElement(r,e[t]),r}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:v,priority:0}),h2:()=>({conversion:v,priority:0}),h3:()=>({conversion:v,priority:0}),h4:()=>({conversion:v,priority:0}),h5:()=>({conversion:v,priority:0}),h6:()=>({conversion:v,priority:0}),p:e=>null!==(e=e.firstChild)&&g(e)?{conversion:()=>({node:null}),priority:3}:null,span:e=>g(e)?{conversion:()=>({node:y("h1")}),priority:3}:null}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}static importJSON(e){let t=y(e.tag);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(e,t=!0){e=0<(e=e?e.anchor.offset:0)&&e<this.getTextContentSize()?y(this.getTag()):r.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.isEmpty()?r.$createParagraphNode():y(this.getTag());return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}extractWithChild(){return!0}}function g(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function v(e){let t=e.nodeName.toLowerCase(),n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=y(t),null!==e.style&&n.setFormat(e.style.textAlign)),{node:n}}function b(e){let t=h();return null!==e.style&&t.setFormat(e.style.textAlign),{node:t}}function y(e){return r.$applyNodeReplacement(new m(e))}function x(e){let t=null;if(e instanceof DragEvent?t=e.dataTransfer:e instanceof ClipboardEvent&&(t=e.clipboardData),null===t)return[!1,[],!1];var n=t.types;return e=n.includes("Files"),n=n.includes("text/html")||n.includes("text/plain"),[e,Array.from(t.files),n]}function _(e){var t=r.$getSelection();if(!r.$isRangeSelection(t))return!1;let o=new Set;t=t.getNodes();for(let r=0;r<t.length;r++){var i=t[r],a=i.getKey();o.has(a)||(a=(i=n.$getNearestBlockElementAncestorOrThrow(i)).getKey(),i.canIndent()&&!o.has(a)&&(o.add(a),e(i)))}return 0<o.size}function E(e){return e=r.$getNearestNodeFromDOMNode(e),r.$isDecoratorNode(e)}return rt.$createHeadingNode=y,rt.$createQuoteNode=h,rt.$isHeadingNode=function(e){return e instanceof m},rt.$isQuoteNode=function(e){return e instanceof f},rt.DRAG_DROP_PASTE=p,rt.HeadingNode=m,rt.QuoteNode=f,rt.eventFiles=x,rt.registerRichText=function(i){return n.mergeRegister(i.registerCommand(r.CLICK_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isNodeSelection(e)&&(e.clear(),!0)}),0),i.registerCommand(r.DELETE_CHARACTER_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.deleteCharacter(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DELETE_WORD_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.deleteWord(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DELETE_LINE_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.deleteLine(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.CONTROLLED_TEXT_INSERTION_COMMAND,(t=>{const n=r.$getSelection();if("string"==typeof t)r.$isRangeSelection(n)?n.insertText(t):r.DEPRECATED_$isGridSelection(n);else{if(!r.$isRangeSelection(n)&&!r.DEPRECATED_$isGridSelection(n))return!1;const o=t.dataTransfer;null!=o?e.$insertDataTransferForRichText(o,n,i):r.$isRangeSelection(n)&&(t=t.data)&&n.insertText(t)}return!0}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.REMOVE_TEXT_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isRangeSelection(e)&&(e.removeText(),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.FORMAT_TEXT_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.formatText(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.FORMAT_ELEMENT_COMMAND,(e=>{var t=r.$getSelection();if(!r.$isRangeSelection(t)&&!r.$isNodeSelection(t))return!1;t=t.getNodes();for(const o of t)t=n.$findMatchingParent(o,(e=>r.$isElementNode(e)&&!e.isInline())),null!==t&&t.setFormat(e);return!0}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INSERT_LINE_BREAK_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.insertLineBreak(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INSERT_PARAGRAPH_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isRangeSelection(e)&&(e.insertParagraph(),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INSERT_TAB_COMMAND,(()=>(r.$insertNodes([r.$createTabNode()]),!0)),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INDENT_CONTENT_COMMAND,(()=>_((e=>{const t=e.getIndent();e.setIndent(t+1)}))),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.OUTDENT_CONTENT_COMMAND,(()=>_((e=>{const t=e.getIndent();0<t&&e.setIndent(t-1)}))),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_UP_COMMAND,(e=>{var t=r.$getSelection();if(r.$isNodeSelection(t)&&!E(e.target)){if(0<(e=t.getNodes()).length)return e[0].selectPrevious(),!0}else if(r.$isRangeSelection(t)&&(t=r.$getAdjacentNode(t.focus,!0),!e.shiftKey&&r.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline()))return t.selectPrevious(),e.preventDefault(),!0;return!1}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_DOWN_COMMAND,(e=>{var t=r.$getSelection();if(r.$isNodeSelection(t)){if(0<(e=t.getNodes()).length)return e[0].selectNext(0,0),!0}else if(r.$isRangeSelection(t)){let n=t.focus;if("root"===n.key&&n.offset===r.$getRoot().getChildrenSize())return e.preventDefault(),!0;if(t=r.$getAdjacentNode(t.focus,!1),!e.shiftKey&&r.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline())return t.selectNext(),e.preventDefault(),!0}return!1}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_LEFT_COMMAND,(e=>{const n=r.$getSelection();if(r.$isNodeSelection(n)){var o=n.getNodes();if(0<o.length)return e.preventDefault(),o[0].selectPrevious(),!0}return!!r.$isRangeSelection(n)&&(!!t.$shouldOverrideDefaultCharacterSelection(n,!0)&&(o=e.shiftKey,e.preventDefault(),t.$moveCharacter(n,o,!0),!0))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_RIGHT_COMMAND,(e=>{const n=r.$getSelection();if(r.$isNodeSelection(n)&&!E(e.target)){var o=n.getNodes();if(0<o.length)return e.preventDefault(),o[0].selectNext(0,0),!0}return!!r.$isRangeSelection(n)&&(o=e.shiftKey,!!t.$shouldOverrideDefaultCharacterSelection(n,!1)&&(e.preventDefault(),t.$moveCharacter(n,o,!1),!0))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_BACKSPACE_COMMAND,(e=>{if(E(e.target))return!1;const t=r.$getSelection();if(!r.$isRangeSelection(t))return!1;e.preventDefault(),({anchor:e}=t);const o=e.getNode();return t.isCollapsed()&&0===e.offset&&!r.$isRootNode(o)&&0<n.$getNearestBlockElementAncestorOrThrow(o).getIndent()?i.dispatchCommand(r.OUTDENT_CONTENT_COMMAND,void 0):i.dispatchCommand(r.DELETE_CHARACTER_COMMAND,!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_DELETE_COMMAND,(e=>{if(E(e.target))return!1;const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(e.preventDefault(),i.dispatchCommand(r.DELETE_CHARACTER_COMMAND,!1))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ENTER_COMMAND,(e=>{const t=r.$getSelection();if(!r.$isRangeSelection(t))return!1;if(null!==e){if((u||s||d)&&l)return!1;if(e.preventDefault(),e.shiftKey)return i.dispatchCommand(r.INSERT_LINE_BREAK_COMMAND,!1)}return i.dispatchCommand(r.INSERT_PARAGRAPH_COMMAND,void 0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ESCAPE_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isRangeSelection(e)&&(i.blur(),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DROP_COMMAND,(e=>{const[,t]=x(e);if(0<t.length){var n=o(e.clientX,e.clientY);if(null!==n){const{offset:e,node:o}=n;var a=r.$getNearestNodeFromDOMNode(o);if(null!==a){if(n=r.$createRangeSelection(),r.$isTextNode(a))n.anchor.set(a.getKey(),e,"text"),n.focus.set(a.getKey(),e,"text");else{const e=a.getParentOrThrow().getKey();a=a.getIndexWithinParent()+1,n.anchor.set(e,a,"element"),n.focus.set(e,a,"element")}n=r.$normalizeSelection__EXPERIMENTAL(n),r.$setSelection(n)}i.dispatchCommand(p,t)}return e.preventDefault(),!0}return e=r.$getSelection(),!!r.$isRangeSelection(e)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DRAGSTART_COMMAND,(e=>{[e]=x(e);const t=r.$getSelection();return!(e&&!r.$isRangeSelection(t))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DRAGOVER_COMMAND,(e=>{var[t]=x(e);const n=r.$getSelection();return!(t&&!r.$isRangeSelection(n))&&(null!==(t=o(e.clientX,e.clientY))&&(t=r.$getNearestNodeFromDOMNode(t.node),r.$isDecoratorNode(t)&&e.preventDefault()),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.COPY_COMMAND,(t=>(e.copyToClipboard(i,n.objectKlassEquals(t,ClipboardEvent)?t:null),!0)),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.CUT_COMMAND,(t=>(async function(t,o){await e.copyToClipboard(o,n.objectKlassEquals(t,ClipboardEvent)?t:null),o.update((()=>{let e=r.$getSelection();r.$isRangeSelection(e)?e.removeText():r.$isNodeSelection(e)&&e.getNodes().forEach((e=>e.remove()))}))}(t,i),!0)),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.PASTE_COMMAND,(t=>{const[,n,o]=x(t);if(0<n.length&&!o)return i.dispatchCommand(p,n),!0;if(r.isSelectionCapturedInDecoratorInput(t.target))return!1;const a=r.$getSelection();return!(!r.$isRangeSelection(a)&&!r.DEPRECATED_$isGridSelection(a))&&(function(t,n){t.preventDefault(),n.update((()=>{let o=r.$getSelection(),i=t instanceof InputEvent||t instanceof KeyboardEvent?null:t.clipboardData;null!=i&&(r.$isRangeSelection(o)||r.DEPRECATED_$isGridSelection(o))&&e.$insertDataTransferForRichText(i,o,n)}),{tag:"paste"})}(t,i),!0)}),r.COMMAND_PRIORITY_EDITOR))},rt}function ut(){if(tt)return et;tt=1;const e=st();return et=e}var ct,dt,pt,ft=ut(),ht={};function mt(){if(ct)return ht;ct=1;var e=oe(),t=Ee(),n=re(),r=ee(),o=g;function i(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}let a=/[.,;\s]/;function l(e){var t;return e=e.getPreviousSibling(),r.$isElementNode(e)&&(e=e.getLastDescendant()),!(t=null===e||r.$isLineBreakNode(e))&&(t=r.$isTextNode(e))&&(e=e.getTextContent(),t=a.test(e[e.length-1])),t}function s(e){return e=e.getNextSibling(),r.$isElementNode(e)&&(e=e.getFirstDescendant()),null===e||r.$isLineBreakNode(e)||r.$isTextNode(e)&&a.test(e.getTextContent()[0])}function u(e,t,n){var o=e.getChildren();let a=o.length;for(let t=0;t<a;t++){let i=o[t];if(!r.$isTextNode(i)||!i.isSimpleText())return c(e),void n(null,e.getURL())}null===(t=i(o=e.getTextContent(),t))||t.text!==o?(c(e),n(null,e.getURL())):l(e)&&s(e)?((o=e.getURL())!==t.url&&(e.setURL(t.url),n(t.url,o)),t.attributes&&((o=e.getRel())!==t.attributes.rel&&(e.setRel(t.attributes.rel||null),n(t.attributes.rel||null,o)),(o=e.getTarget())!==t.attributes.target&&(e.setTarget(t.attributes.target||null),n(t.attributes.target||null,o)))):(c(e),n(null,e.getURL()))}function c(e){let t=e.getChildren();var n=t.length;for(--n;0<=n;n--)e.insertAfter(t[n]);return e.remove(),t.map((e=>e.getLatest()))}function d(t,d,p){o.useEffect((()=>{t.hasNodes([e.AutoLinkNode])||function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);let o=(e,t)=>{p&&p(e,t)};return n.mergeRegister(t.registerNodeTransform(r.TextNode,(t=>{var n=t.getParentOrThrow(),f=t.getPreviousSibling();if(e.$isAutoLinkNode(n))u(n,d,o);else if(!e.$isLinkNode(n)){if(t.isSimpleText()&&(a.test(t.getTextContent()[0])||!e.$isAutoLinkNode(f))){f=n=t.getTextContent();let o=0,u=t;for(var h;(h=i(f,d))&&null!==h;){let i=h.index,c=h.length,d=i+c;var m=o+i,g=o+d,v=n,b=t;if((0<m?a.test(v[m-1]):l(b))&&(g<v.length?a.test(v[g]):s(b))){var y=void 0;0===o+i?[y,u]=u.splitText(o+c):[,y,u]=u.splitText(o+i,o+i+c),m=e.$createAutoLinkNode(h.url,h.attributes),(g=r.$createTextNode(h.text)).setFormat(y.getFormat()),g.setDetail(y.getDetail()),m.append(g),y.replace(m),p&&p(h.url,null),o=0}else o+=d;f=f.substring(d)}}n=t.getPreviousSibling(),h=t.getNextSibling(),y=t.getTextContent(),e.$isAutoLinkNode(n)&&!a.test(y[0])&&(n.append(t),u(n,d,o),t=n.getURL(),p&&p(null,t)),e.$isAutoLinkNode(h)&&!a.test(y[y.length-1])&&(c(h),u(h,d,o),t=h.getURL(),p&&p(null,t))}})))}),[t,d,p])}return ht.AutoLinkPlugin=function({matchers:e,onChange:n}){let[r]=t.useLexicalComposerContext();return d(r,e,n),null},ht.createLinkMatcherWithRegExp=function(e,t=e=>e){return n=>{let r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(n)}}},ht}var gt,vt,bt,yt,xt=function(){if(pt)return dt;pt=1;const e=mt();return dt=e}(),_t=Ee();function Et(){if(vt)return gt;vt=1;var e=Ee(),t=g,n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function r(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}return gt=function(){return function(r){let[o]=e.useLexicalComposerContext(),i=t.useMemo((()=>r(o)),[o,r]),a=t.useRef(i.initialValueFn()),[l,s]=t.useState(a.current);return n((()=>{let{initialValueFn:e,subscribe:t}=i,n=e();return a.current!==n&&(a.current=n,s(n)),t((e=>{a.current=e,s(e)}))}),[i,r]),l}(r)},gt}function Ct(){if(yt)return bt;yt=1;const e=Et();return bt=e}var St=R(Ct()),wt=re(),kt=ee(),Tt=te();const At={black:"#000",white:"#fff"},Nt="#e57373",Rt="#ef5350",Mt="#f44336",Lt="#d32f2f",Ot="#c62828",It="#f3e5f5",Pt="#ce93d8",Dt="#ba68c8",$t="#ab47bc",zt="#9c27b0",Bt="#7b1fa2",Ft="#e3f2fd",Ht="#90caf9",jt="#42a5f5",Wt="#1976d2",Gt="#1565c0",Kt="#4fc3f7",Yt="#29b6f6",Ut="#03a9f4",Vt="#0288d1",qt="#01579b",Qt="#81c784",Jt="#66bb6a",Xt="#4caf50",Zt="#388e3c",en="#2e7d32",tn="#1b5e20",nn="#ffb74d",rn="#ffa726",on="#ff9800",an="#f57c00",ln="#e65100",sn={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 un(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 cn=Object.freeze({__proto__:null,default:un}),dn="$$material";function pn(){return pn=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},pn.apply(null,arguments)}function fn(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var hn=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}(),mn="-ms-",gn="-moz-",vn="-webkit-",bn="comm",yn="rule",xn="decl",_n="@keyframes",En=Math.abs,Cn=String.fromCharCode,Sn=Object.assign;function wn(e){return e.trim()}function kn(e,t,n){return e.replace(t,n)}function Tn(e,t){return e.indexOf(t)}function An(e,t){return 0|e.charCodeAt(t)}function Nn(e,t,n){return e.slice(t,n)}function Rn(e){return e.length}function Mn(e){return e.length}function Ln(e,t){return t.push(e),e}var On=1,In=1,Pn=0,Dn=0,$n=0,zn="";function Bn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:On,column:In,length:a,return:""}}function Fn(e,t){return Sn(Bn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Hn(){return $n=Dn>0?An(zn,--Dn):0,In--,10===$n&&(In=1,On--),$n}function jn(){return $n=Dn<Pn?An(zn,Dn++):0,In++,10===$n&&(In=1,On++),$n}function Wn(){return An(zn,Dn)}function Gn(){return Dn}function Kn(e,t){return Nn(zn,e,t)}function Yn(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 Un(e){return On=In=1,Pn=Rn(zn=e),Dn=0,[]}function Vn(e){return zn="",e}function qn(e){return wn(Kn(Dn-1,Xn(91===e?e+2:40===e?e+1:e)))}function Qn(e){for(;($n=Wn())&&$n<33;)jn();return Yn(e)>2||Yn($n)>3?"":" "}function Jn(e,t){for(;--t&&jn()&&!($n<48||$n>102||$n>57&&$n<65||$n>70&&$n<97););return Kn(e,Gn()+(t<6&&32==Wn()&&32==jn()))}function Xn(e){for(;jn();)switch($n){case e:return Dn;case 34:case 39:34!==e&&39!==e&&Xn($n);break;case 40:41===e&&Xn(e);break;case 92:jn()}return Dn}function Zn(e,t){for(;jn()&&e+$n!==57&&(e+$n!==84||47!==Wn()););return"/*"+Kn(t,Dn-1)+"*"+Cn(47===e?e:jn())}function er(e){for(;!Yn(Wn());)jn();return Kn(e,Dn)}function tr(e){return Vn(nr("",null,null,null,[""],e=Un(e),0,[0],e))}function nr(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,_=i,E=r,C=y;g;)switch(h=b,b=jn()){case 40:if(108!=h&&58==An(C,d-1)){-1!=Tn(C+=kn(qn(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=qn(b);break;case 9:case 10:case 13:case 32:C+=Qn(h);break;case 92:C+=Jn(Gn()-1,7);continue;case 47:switch(Wn()){case 42:case 47:Ln(or(Zn(jn(),Gn()),t,n),s);break;default:C+="/"}break;case 123*m:l[u++]=Rn(C)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=kn(C,/\f/g,"")),f>0&&Rn(C)-d&&Ln(f>32?ir(C+";",r,n,d-1):ir(kn(C," ","")+";",r,n,d-2),s);break;case 59:C+=";";default:if(Ln(E=rr(C,t,n,u,c,o,l,y,x=[],_=[],d),i),123===b)if(0===c)nr(C,t,E,E,x,i,d,l,_);else switch(99===p&&110===An(C,3)?100:p){case 100:case 108:case 109:case 115:nr(e,E,E,r&&Ln(rr(e,E,E,0,0,o,l,y,o,x=[],d),_),o,_,d,l,r?x:_);break;default:nr(C,E,E,E,[""],_,0,l,_)}}u=c=f=0,m=v=1,y=C="",d=a;break;case 58:d=1+Rn(C),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Hn())continue;switch(C+=Cn(b),b*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Rn(C)-1)*v,v=1;break;case 64:45===Wn()&&(C+=qn(jn())),p=Wn(),c=d=Rn(y=C+=er(Gn())),b++;break;case 45:45===h&&2==Rn(C)&&(m=0)}}return i}function rr(e,t,n,r,o,i,a,l,s,u,c){for(var d=o-1,p=0===o?i:[""],f=Mn(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Nn(e,d+1,d=En(m=a[h])),y=e;v<f;++v)(y=wn(m>0?p[v]+" "+b:kn(b,/&\f/g,p[v])))&&(s[g++]=y);return Bn(e,t,n,0===o?yn:l,s,u,c)}function or(e,t,n){return Bn(e,t,n,bn,Cn($n),Nn(e,2,-2),0)}function ir(e,t,n,r){return Bn(e,t,n,xn,Nn(e,0,r),Nn(e,r+1,-1),r)}function ar(e,t){for(var n="",r=Mn(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function lr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case xn:return e.return=e.return||e.value;case bn:return"";case _n:return e.return=e.value+"{"+ar(e.children,r)+"}";case yn:e.value=e.props.join(",")}return Rn(n=ar(e.children,r))?e.return=e.value+"{"+n+"}":""}function sr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ur=function(e,t,n){for(var r=0,o=0;r=o,o=Wn(),38===r&&12===o&&(t[n]=1),!Yn(o);)jn();return Kn(e,Dn)},cr=function(e,t){return Vn(function(e,t){var n=-1,r=44;do{switch(Yn(r)){case 0:38===r&&12===Wn()&&(t[n]=1),e[n]+=ur(Dn-1,t,n);break;case 2:e[n]+=qn(r);break;case 4:if(44===r){e[++n]=58===Wn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Cn(r)}}while(r=jn());return e}(Un(e),t))},dr=new WeakMap,pr=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)||dr.get(n))&&!r){dr.set(e,!0);for(var o=[],i=cr(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},fr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},hr=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},mr=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},gr=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},vr=function(e,t,n){mr(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."),gr(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!mr(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."),gr(e)))};function br(e,t){switch(function(e,t){return 45^An(e,0)?(((t<<2^An(e,0))<<2^An(e,1))<<2^An(e,2))<<2^An(e,3):0}(e,t)){case 5103:return vn+"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 vn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return vn+e+gn+e+mn+e+e;case 6828:case 4268:return vn+e+mn+e+e;case 6165:return vn+e+mn+"flex-"+e+e;case 5187:return vn+e+kn(e,/(\w+).+(:[^]+)/,vn+"box-$1$2"+mn+"flex-$1$2")+e;case 5443:return vn+e+mn+"flex-item-"+kn(e,/flex-|-self/,"")+e;case 4675:return vn+e+mn+"flex-line-pack"+kn(e,/align-content|flex-|-self/,"")+e;case 5548:return vn+e+mn+kn(e,"shrink","negative")+e;case 5292:return vn+e+mn+kn(e,"basis","preferred-size")+e;case 6060:return vn+"box-"+kn(e,"-grow","")+vn+e+mn+kn(e,"grow","positive")+e;case 4554:return vn+kn(e,/([^-])(transform)/g,"$1"+vn+"$2")+e;case 6187:return kn(kn(kn(e,/(zoom-|grab)/,vn+"$1"),/(image-set)/,vn+"$1"),e,"")+e;case 5495:case 3959:return kn(e,/(image-set\([^]*)/,vn+"$1$`$1");case 4968:return kn(kn(e,/(.+:)(flex-)?(.*)/,vn+"box-pack:$3"+mn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+vn+e+e;case 4095:case 3583:case 4068:case 2532:return kn(e,/(.+)-inline(.+)/,vn+"$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(Rn(e)-1-t>6)switch(An(e,t+1)){case 109:if(45!==An(e,t+4))break;case 102:return kn(e,/(.+:)(.+)-([^]+)/,"$1"+vn+"$2-$3$1"+gn+(108==An(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Tn(e,"stretch")?br(kn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==An(e,t+1))break;case 6444:switch(An(e,Rn(e)-3-(~Tn(e,"!important")&&10))){case 107:return kn(e,":",":"+vn)+e;case 101:return kn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+vn+(45===An(e,14)?"inline-":"")+"box$3$1"+vn+"$2$3$1"+mn+"$2box$3")+e}break;case 5936:switch(An(e,t+11)){case 114:return vn+e+mn+kn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vn+e+mn+kn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vn+e+mn+kn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vn+e+mn+e+e}return e}var yr,xr=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xn:e.return=br(e.value,e.length);break;case _n:return ar([Fn(e,{value:kn(e.value,"@","@"+vn)})],r);case yn: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 ar([Fn(e,{props:[kn(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ar([Fn(e,{props:[kn(t,/:(plac\w+)/,":"+vn+"input-$1")]}),Fn(e,{props:[kn(t,/:(plac\w+)/,":-moz-$1")]}),Fn(e,{props:[kn(t,/:(plac\w+)/,mn+"input-$1")]})],r)}return""}))}}],_r=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;yr=function(e){var t=e.match(_r);if(t)return t[t.length-1]};var Er,Cr,Sr,wr,kr=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||xr;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var s=[pr,fr];s.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:r,a=i.length-1;a>=0;a--){var l=i[a];if(l.line<t.line)break;if(l.column<t.column){if(hr(l))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 p.compat}}),vr);var u,c=[lr,function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==bn&&u.insert(e.value+"{}"))}],d=function(e){var t=Mn(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(s.concat(r,c));i=function(e,t,n,r){if(u=n,yr){var o=yr(t.styles);o&&(u={insert:function(e){n.insert(e+o)}})}!function(e){ar(tr(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new hn({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(l),p},Tr={exports:{}},Ar={};function Nr(){return Cr||(Cr=1,Tr.exports=function(){if(Er)return Ar;Er=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case f:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===u}return Ar.AsyncMode=s,Ar.ConcurrentMode=u,Ar.ContextConsumer=l,Ar.ContextProvider=a,Ar.Element=t,Ar.ForwardRef=c,Ar.Fragment=r,Ar.Lazy=h,Ar.Memo=f,Ar.Portal=n,Ar.Profiler=i,Ar.StrictMode=o,Ar.Suspense=d,Ar.isAsyncMode=function(e){return x(e)||y(e)===s},Ar.isConcurrentMode=x,Ar.isContextConsumer=function(e){return y(e)===l},Ar.isContextProvider=function(e){return y(e)===a},Ar.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ar.isForwardRef=function(e){return y(e)===c},Ar.isFragment=function(e){return y(e)===r},Ar.isLazy=function(e){return y(e)===h},Ar.isMemo=function(e){return y(e)===f},Ar.isPortal=function(e){return y(e)===n},Ar.isProfiler=function(e){return y(e)===i},Ar.isStrictMode=function(e){return y(e)===o},Ar.isSuspense=function(e){return y(e)===d},Ar.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},Ar.typeOf=y,Ar}()),Tr.exports}!function(){if(wr)return Sr;wr=1;var e=Nr(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,l=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;Sr=function e(t,r,o){if("string"!=typeof r){if(d){var p=c(r);p&&p!==d&&e(t,p,o)}var f=l(r);s&&(f=f.concat(s(r)));for(var h=i(t),m=i(r),g=0;g<f.length;++g){var v=f[g];if(!(n[v]||o&&o[v]||m&&m[v]||h&&h[v])){var b=u(r,v);try{a(t,v,b)}catch(e){}}}}return t}}();function Rr(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Mr=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Lr=function(e,t,n){Mr(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 Or={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},Ir="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",Pr="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Dr=/[A-Z]|^ms/g,$r=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zr=function(e){return 45===e.charCodeAt(1)},Br=function(e){return null!=e&&"boolean"!=typeof e},Fr=sr((function(e){return zr(e)?e:e.replace(Dr,"-$&").toLowerCase()})),Hr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($r,(function(e,t,n){return Qr={name:t,styles:n,next:Qr},t}))}return 1===Or[e]||zr(e)||"number"!=typeof t||0===t?t:t+"px"},jr=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Wr=["normal","none","initial","inherit","unset"],Gr=Hr,Kr=/^-ms-/,Yr=/-(.)/g,Ur={};Hr=function(e,t){if("content"===e&&("string"!=typeof t||-1===Wr.indexOf(t)&&!jr.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=Gr(e,t);return""===n||zr(e)||-1===e.indexOf("-")||void 0!==Ur[e]||(Ur[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Kr,"ms-").replace(Yr,(function(e,t){return t.toUpperCase()}))+"?")),n};var Vr="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function qr(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(Vr);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Qr={name:o.name,styles:o.styles,next:Qr},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Qr={name:a.name,styles:a.styles,next:Qr},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=qr(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var l=a;null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":Br(l)&&(r+=Fr(i)+":"+Hr(i,l)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(Vr);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=qr(e,t,a);switch(i){case"animation":case"animationName":r+=Fr(i)+":"+s+";";break;default:"undefined"===i&&console.error(Pr),r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)Br(a[u])&&(r+=Fr(i)+":"+Hr(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=Qr,s=n(e);return Qr=l,qr(e,t,s)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var u=[],c=n.replace($r,(function(e,t,n){var r="animation"+u.length;return u.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}var d=n;if(null==t)return d;var p=t[d];return void 0!==p?p:d}var Qr,Jr=/label:\s*([^\s;{]+)\s*(;|$)/g;function Xr(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="";Qr=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=qr(n,t,i);else{var a=i;void 0===a[0]&&console.error(Ir),o+=a[0]}for(var l=1;l<e.length;l++)if(o+=qr(n,t,e[l]),r){var s=i;void 0===s[l]&&console.error(Ir),o+=s[l]}Jr.lastIndex=0;for(var u,c="";null!==(u=Jr.exec(o));)c+="-"+u[1];var d=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:d,styles:o,next:Qr,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 Zr=!!v.useInsertionEffect&&v.useInsertionEffect,eo=Zr||function(e){return e()},to=Zr||v.useLayoutEffect,no=v.createContext("undefined"!=typeof HTMLElement?kr({key:"css"}):null);no.displayName="EmotionCacheContext";var ro=no.Provider,oo=function(e){return b((function(t,n){var r=y(no);return e(t,r,n)}))},io=v.createContext({});io.displayName="EmotionThemeContext";var ao={}.hasOwnProperty,lo=function(e){var t=e.split(".");return t[t.length-1]},so=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?lo(t[1]):void 0},uo=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),co=function(e){return e.replace(/\$/g,"-")},po="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",fo="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",ho=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)ao.call(t,r)&&(n[r]=t[r]);if(n[po]=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=so(t[n]);if(r){if(uo.has(r))break;if(/^[A-Z]/.test(r))return co(r)}}}((new Error).stack);o&&(n[fo]=o)}return n},mo=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Mr(t,n,r),eo((function(){return Lr(t,n,r)})),null},go=oo((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[po],i=[r],a="";"string"==typeof e.className?a=Rr(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var l=Xr(i,void 0,v.useContext(io));if(-1===l.name.indexOf("-")){var s=e[fo];s&&(l=Xr([l,"label:"+s+";"]))}a+=t.key+"-"+l.name;var u={};for(var c in e)ao.call(e,c)&&"css"!==c&&c!==po&&c!==fo&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),v.createElement(v.Fragment,null,v.createElement(mo,{cache:t,serialized:l,isStringTag:"string"==typeof o}),v.createElement(o,u))}));go.displayName="EmotionCssPropInternal";var vo,bo,yo=go,xo=function(e,t){var n=arguments;if(null==t||!ao.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=yo,o[1]=ho(e,t);for(var i=2;i<r;i++)o[i]=n[i];return v.createElement.apply(null,o)};vo=xo||(xo={}),bo||(bo=vo.JSX||(vo.JSX={}));var _o=!1,Eo=oo((function(e,t){!_o&&("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?"),_o=!0);var n=Xr([e.styles],void 0,v.useContext(io)),r=v.useRef();return to((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),to((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Lr(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 Co(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xr(t)}function So(){var e=Co.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_"}}}Eo.displayName="EmotionGlobal";var wo=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var l in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var ko=function(e){var t=e.cache,n=e.serializedArr;return eo((function(){for(var e=0;e<n.length;e++)Lr(t,n[e],!1)})),null},To=oo((function(e,t){var n=!1,r=[],o=function(){if(n)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=Xr(o,t.registered);return r.push(a),Mr(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],o=Rr(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,wo(r))},theme:v.useContext(io)},a=e.children(i);return n=!0,v.createElement(v.Fragment,null,v.createElement(ko,{cache:t,serializedArr:r}),a)}));To.displayName="EmotionClassNames";var Ao="undefined"!=typeof document,No="undefined"!=typeof jest||"undefined"!=typeof vi;if(Ao&&!No){var Ro="undefined"!=typeof globalThis?globalThis:Ao?window:global,Mo="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";Ro[Mo]&&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."),Ro[Mo]=!0}var Lo=/^((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|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)-.*))$/,Oo=sr((function(e){return Lo.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Io=function(e){return"theme"!==e},Po=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Oo:Io},Do=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},$o="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",zo=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Mr(t,n,r),eo((function(){return Lr(t,n,r)})),null},Bo=function e(t,n){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=Do(t,n,i),s=l||Po(a),u=!s("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var p=c[0];void 0===p[0]&&console.error($o),d.push(p[0]);for(var f=c.length,h=1;h<f;h++)void 0===p[h]&&console.error($o),d.push(c[h],p[h])}var m=oo((function(e,t,n){var r=u&&e.as||a,i="",c=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=v.useContext(io)}"string"==typeof e.className?i=Rr(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var h=Xr(d.concat(c),t.registered,p);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=u&&void 0===l?Po(r):s,g={};for(var b in e)u&&"as"===b||m(b)&&(g[b]=e[b]);return g.className=i,n&&(g.ref=n),v.createElement(v.Fragment,null,v.createElement(zo,{cache:t,serialized:h,isStringTag:"string"==typeof r}),v.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,pn({},n,r,{shouldForwardProp:Do(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Bo[e]=Bo(e)}));var Fo,Ho,jo={exports:{}},Wo={};var Go=(Ho||(Ho=1,jo.exports=function(){if(Fo)return Wo;Fo=1;var e=g,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var l,s={},u=null,c=null;for(l in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,l)&&!i.hasOwnProperty(l)&&(s[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===s[l]&&(s[l]=n[l]);return{$$typeof:t,type:e,key:u,ref:c,props:s,_owner:o.current}}return Wo.Fragment=n,Wo.jsx=a,Wo.jsxs=a,Wo}()),jo.exports);let Ko;function Yo(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 Go.jsx(Eo,{styles:r})}
|
|
7
|
+
System.register(["@nebula.js/stardust","react-dom","react"],(function(e){"use strict";var t,n,r,o,i,a,l,s,u,c,d,p,f,h,g,m,v,b,y,x,_,C,E,S,w,k,R;return{setters:[function(e){t=e.useMemo,n=e.useEffect,r=e.useElement,o=e.useStaleLayout,i=e.useModel,a=e.useInteractionState,l=e.useEmitter,s=e.useTranslator,u=e.useState,c=e.useTheme,d=e.usePromise,p=e.useImperativeHandle},function(e){f=e.default,h=e},function(e){g=e.createContext,m=e.default,v=e,b=e.forwardRef,y=e.useContext,x=e.isValidElement,_=e.cloneElement,C=e.Children,E=e.useState,S=e.useEffect,w=e.useRef,k=e.useCallback,R=e.useMemo}],execute:function(){e("default",(function(e){const t=new OL,{flags:f}=e,h=[];return{qae:{properties:A,data:T(t)},component(){const e=r(),g=I(e),m=o(),v=i(),b=a(),y=l(),x=s(),[_,C]=u(!1),[E,S]=u(void 0),[w,k]=u(1),R=c(),[A,T]=u(!1),[N,O]=u(null);d((()=>new Promise((e=>{var t;const n={id:null==m||null===(t=m.qInfo)||void 0===t?void 0:t.qId,resolve:e};h.push(n)}))),[]);const L=e=>{e||k(0),HN(m)||(!0===e&&T(!0),C(e),y.emit("njs-internal-edit-change",e))};n((()=>{const e=e=>{!async function(e,t){!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){var r;const e=null===(r=n.qMeasures)||void 0===r?void 0:r.filter((e=>!(null==t?void 0:t.find((t=>{var n;return t===(null==e||null===(n=e.qDef)||void 0===n?void 0:n.cId)})))));n.qMeasures=e,n.qInterColumnSortOrder=[]}return{...e,qHyperCubeDef:n}}))}(v,e)};return y.on("onNodeDestroyed",e),()=>{y.removeListener("onNodeDestroyed",e)}}),[y,v]),n((()=>{2===w&&b.edit&&b.select&&L(!0)}),[w,b]),n((()=>{m&&void 0===E&&(S(m.text||null),O(null==m?void 0:m.text))}),[m,E]),n((()=>{const n=()=>{b.edit&&b.select&&k((e=>e+1))},r=t=>{const n=document.getElementById(wL(v));e.contains(t.target)||null!=n&&n.contains(t.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),n=document.getElementById("tekTableMenu");if(null!=n&&n.contains(e))return!0;for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0;return!1})(t.target)||L(!1)};if(!b.edit||!b.select){var o;L(!1);const e=(null==v?void 0:v.id)&&(null===(o=t.getSnTexts()[v.id])||void 0===o?void 0:o.propertiesHaveBeenModified);(A||e)&&(y.emit("saveDocument"),t.setPropertiesHaveBeenModified(v.id,!1))}return e.addEventListener("click",n),document.addEventListener("mousedown",r),()=>{e.removeEventListener("click",n),document.removeEventListener("mousedown",r)}}),[e,b,v]),n((()=>{AL({rootElement:g,layout:m,model:v,element:e,edit:_,initialData:E,emitter:y,lang:x.language(),flags:f,theme:R,interactionState:b,readyToPrint:h})}),[m,g,v,e,_,e,E,y,f,R,b]),n((()=>{!_&&A&&y.emit("saveDocument")}),[_,y,A]),n((()=>{if(m){const e=m;e.text&&e.text!==N&&(O(e.text),y.emit("reloadData",e.text))}}),[m,N,y]),p((()=>({updateActiveState(e){e?t.setSelectedModelId(v.id):v.id===t.getSelectedModelId()&&t.setSelectedModelId(void 0)}})),[])},ext:{definition:{type:"items",component:"accordion",items:{data:TL,settings:NL}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}}}}));const A={version:"1.3.6",showTitles:!1,text:null,fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!1},T=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 N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function O(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 L,M={};var P=function(){if(L)return M;L=1;var e=f;return M.createRoot=e.createRoot,M.hydrateRoot=e.hydrateRoot,M}();const I=e=>{const r=t((()=>P.createRoot(e)),[e]);return n((()=>()=>{null==r||r.unmount()}),[r]),r},D=g({layout:void 0,model:void 0,element:void 0,edit:!1,initialData:void 0,emitter:void 0,lang:"en",flags:{isEnabled:()=>!1},theme:null,readyToPrint:[]});var $,z,B,F,H,j,G,W,Y,K,U,V,q={},X={},J={},Q={};function Z(){if($)return Q;$=1;let e={},t={},n={},r={},o={},i={},a={},l={},s={},u={},c={},d={},p={},f={},h={},g={},m={},v={},b={},y={},x={},_={},C={},E={},S={},w={},k={},R={},A={},T={},N={},O={},L={},M={},P={};function I(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let D="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,z=D&&"documentMode"in document?document.documentMode:null,B=D&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),F=D&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),H=!(!D||!("InputEvent"in window)||z)&&"getTargetRanges"in new window.InputEvent("input"),j=D&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),G=D&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,W=D&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Y=D&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!W,K=j||G||Y?" ":"",U=F?" ":K,V=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,q=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,X={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},J={directionless:1,unmergeable:2},Z={center:2,end:6,justify:4,left:1,right:3,start:5},ee={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},te={normal:0,segmented:2,token:1},ne={0:"normal",2:"segmented",1:"token"},re=!1,oe=0;function ie(e){oe=e.timeStamp}function ae(e,t,n){return t.__lexicalLineBreak===e||void 0!==e[`__lexicalKey_${n._key}`]}function le(e,t,n){re=!0;let r=100<performance.now()-oe;try{kr(e,(()=>{let o=tr()||function(e){return e.getEditorState().read((()=>{let e=tr();return null!==e?e.clone():null}))}(e);var i=new Map,a=e.getRootElement(),l=e._editorState,s=e._blockCursorElement;let u=!1,c="";for(var d=0;d<t.length;d++){var p=t[d],f=p.type,h=p.target,g=Oe(h,l);if(!(null===g&&h!==a||Ar(g)))if("characterData"===f){if(p=r&&Nn(g))e:{f=h;var m=g;if(Bn(p=o)){var v=p.anchor.getNode();if(v.is(m)&&p.format!==v.getFormat()){p=!1;break e}}p=3===f.nodeType&&m.isAttached()}p&&(f=p=null,null!==(m=at(e._window))&&m.anchorNode===h&&(p=m.anchorOffset,f=m.focusOffset),null!==(h=h.nodeValue)&&He(g,h,p,f,!1))}else if("childList"===f){for(u=!0,f=p.addedNodes,m=0;m<f.length;m++){var b=Ne(v=f[m]),y=v.parentNode;null==y||v===s||null!==b||"BR"===v.nodeName&&ae(v,y,e)||(F&&(b=v.innerText||v.nodeValue)&&(c+=b),y.removeChild(v))}if(0<(f=(p=p.removedNodes).length)){for(m=0,v=0;v<f;v++)("BR"===(y=p[v]).nodeName&&ae(y,h,e)||s===y)&&(h.appendChild(y),m++);f!==m&&(h===a&&(g=l._nodeMap.get("root")),i.set(h,g))}}}if(0<i.size)for(let[t,n]of i)if(Nr(n))for(i=n.getChildrenKeys(),a=t.firstChild,l=0;l<i.length;l++)null!==(s=e.getElementByKey(i[l]))&&(null==a?(t.appendChild(s),a=s):a!==s&&t.replaceChild(s,a),a=a.nextSibling);else Nn(n)&&n.markDirty();if(0<(i=n.takeRecords()).length){for(a=0;a<i.length;a++)for(l=(s=i[a]).addedNodes,s=s.target,d=0;d<l.length;d++)null==(h=(g=l[d]).parentNode)||"BR"!==g.nodeName||ae(g,s,e)||h.removeChild(g);n.takeRecords()}null!==o&&(u&&(o.dirty=!0,Ie(o)),F&&Ue(e)&&o.insertRawText(c))}))}finally{re=!1}}function se(e){let t=e._observer;if(null!==t){le(e,t.takeRecords(),t)}}function ue(e){0===oe&&Qe(e).addEventListener("textInput",ie,!0),e._observer=new MutationObserver(((t,n)=>{le(e,t,n)}))}function ce(e,t){let n=e.__mode,r=e.__format;e=e.__style;let o=t.__mode,i=t.__format;return t=t.__style,!(null!==n&&n!==o||null!==r&&r!==i||null!==e&&e!==t)}function de(e,t){let n=e.mergeWithSibling(t),r=vr()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function pe(e){if(""===e.__text&&e.isSimpleText()&&!e.isUnmergeable())e.remove();else{for(var t;null!==(t=e.getPreviousSibling())&&Nn(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){ce(t,e)&&(e=de(t,e));break}t.remove()}for(var n;null!==(n=e.getNextSibling())&&Nn(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){ce(e,n)&&de(e,n);break}n.remove()}}}function fe(e){return he(e.anchor),he(e.focus),e}function he(e){for(;"element"===e.type;){var t=e.getNode(),n=e.offset;if(n===t.getChildrenSize()?(t=t.getChildAtIndex(n-1),n=!0):(t=t.getChildAtIndex(n),n=!1),Nn(t)){e.set(t.__key,n?t.getTextContentSize():0,"text");break}if(!Nr(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element")}}let ge=1,me="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function ve(e){let t=document.activeElement;if(null===t)return!1;let n=t.nodeName;return Ar(Oe(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==t.__lexicalEditor)}function be(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!ve(t)&&ye(t)===e}catch(e){return!1}}function ye(e){for(;null!=e;){let t=e.__lexicalEditor;if(null!=t)return t;e=Xe(e)}return null}function xe(e){return e.isToken()||e.isSegmented()}function _e(e){for(;null!=e;){if(3===e.nodeType)return e;e=e.firstChild}return null}function Ce(e,t,n){return!(e&(t=X[t]))||null!==n&&n&t?null===n||n&t?e|t:e:e^t}function Ee(e){return Nn(e)||hn(e)||Ar(e)}function Se(e,t){if(null!=t)e.__key=t;else{gr(),99<pr&&I(14),t=vr();var n=mr(),r=""+ge++;n._nodeMap.set(r,e),Nr(e)?t._dirtyElements.set(r,!0):t._dirtyLeaves.add(r),t._cloneNotNeeded.add(r),t._dirtyType=1,e.__key=r}}function we(e){var t=e.getParent();if(null!==t){let o=e.getWritable();t=t.getWritable();var n=e.getPreviousSibling();if(e=e.getNextSibling(),null===n)if(null!==e){var r=e.getWritable();t.__first=e.__key,r.__prev=null}else t.__first=null;else{if(r=n.getWritable(),null!==e){let t=e.getWritable();t.__prev=r.__key,r.__next=t.__key}else r.__next=null;o.__prev=null}null===e?null!==n?(e=n.getWritable(),t.__last=n.__key,e.__next=null):t.__last=null:(e=e.getWritable(),null!==n?((n=n.getWritable()).__next=e.__key,e.__prev=n.__key):e.__prev=null,o.__next=null),t.__size--,o.__parent=null}}function ke(e){99<pr&&I(14);var t=e.getLatest(),n=t.__parent,r=mr();let o=vr(),i=r._nodeMap;if(r=o._dirtyElements,null!==n)e:for(;null!==n&&!r.has(n);){let e=i.get(n);if(void 0===e)break;r.set(n,!1),n=e.__parent}t=t.__key,o._dirtyType=1,Nr(e)?r.set(t,!0):o._dirtyLeaves.add(t)}function Re(e){gr();var t=vr();let n=t._compositionKey;e!==n&&(t._compositionKey=e,null!==n&&(null!==(t=Te(n))&&t.getWritable()),null!==e&&(null!==(e=Te(e))&&e.getWritable()))}function Ae(){return hr()?null:vr()._compositionKey}function Te(e,t){return void 0===(e=(t||mr())._nodeMap.get(e))?null:e}function Ne(e,t){return void 0!==(e=e[`__lexicalKey_${vr()._key}`])?Te(e,t):null}function Oe(e,t){for(;null!=e;){let n=Ne(e,t);if(null!==n)return n;e=Xe(e)}return null}function Le(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t}function Me(e){return e.read((()=>Pe().getTextContent()))}function Pe(){return mr()._nodeMap.get("root")}function Ie(e){gr();let t=mr();null!==e&&(e.dirty=!0,e._cachedNodes=null),t._selection=e}function De(e){var t,n=vr();e:{for(t=e;null!=t;){let e=t[`__lexicalKey_${n._key}`];if(void 0!==e){t=e;break e}t=Xe(t)}t=null}return null===t?e===(n=n.getRootElement())?Te("root"):null:Te(t)}function $e(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function ze(e){let t=[];for(;null!==e;)t.push(e),e=e._parentEditor;return t}function Be(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Fe(e,t,n){if(null!==(t=at(t._window))){var r=t.anchorNode,{anchorOffset:o,focusOffset:i}=t;if(null!==r&&(t=3===r.nodeType?r.nodeValue:null,r=Oe(r),null!==t&&Nn(r))){if(t===K&&n){t=n,i=o=n.length}null!==t&&He(r,t,o,i,e)}}}function He(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){let u=i.isComposing(),c=t;if((u||o)&&t[t.length-1]===K&&(c=t.slice(0,-1)),t=i.getTextContent(),o||c!==t)if(""===c)if(Re(null),j||G||Y)i.remove();else{let e=vr();setTimeout((()=>{e.update((()=>{i.isAttached()&&i.remove()}))}),20)}else{o=i.getParent(),t=nr();var a=i.getTextContentSize(),l=Ae(),s=i.getKey();i.isToken()||null!==l&&s===l&&!u||Bn(t)&&(null!==o&&!o.canInsertTextBefore()&&0===t.anchor.offset||t.anchor.key===e.__key&&0===t.anchor.offset&&!i.canInsertTextBefore()||t.focus.key===e.__key&&t.focus.offset===a&&!i.canInsertTextAfter())?i.markDirty():(Bn(e=tr())&&null!==n&&null!==r&&(e.setTextNodeRange(i,n,i,r),i.isSegmented()&&(n=Tn(n=i.getTextContent()),i.replace(n),i=n)),i.setTextContent(c))}}}function je(){var e=Pe();Ie(fe(e=e.select(0,e.getChildrenSize())))}function Ge(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];return void 0!==r?r:"string"==typeof(e=e[t])?(e=e.split(" "),n[t]=e):e}function We(e,t,n,r,o){0!==n.size&&(n=r.__type,r=r.__key,void 0===(t=t.get(n))&&I(33,n),n=t.klass,void 0===(t=e.get(n))&&(t=new Map,e.set(n,t)),n="destroyed"===(e=t.get(r))&&"created"===o,(void 0===e||n)&&t.set(r,n?"updated":o))}function Ye(e,t,n){let r=e.getParent(),o=n;return null!==r&&(t&&0===n?(o=e.getIndexWithinParent(),e=r):t||n!==e.getChildrenSize()||(o=e.getIndexWithinParent()+1,e=r)),e.getChildAtIndex(t?o-1:o)}function Ke(e,t){var n=e.offset;return"element"===e.type?Ye(e=e.getNode(),t,n):(e=e.getNode(),t&&0===n||!t&&n===e.getTextContentSize()?null===(n=t?e.getPreviousSibling():e.getNextSibling())?Ye(e.getParentOrThrow(),t,e.getIndexWithinParent()+(t?0:1)):n:null)}function Ue(e){return"insertFromPaste"===(e=(e=Qe(e).event)&&e.inputType)||"insertFromPasteAsQuotation"===e}function Ve(e){return!Mr(e)&&!e.isLastChild()&&!e.isInline()}function qe(e,t){return void 0===(e=e._keyToDOMMap.get(t))&&I(75,t),e}function Xe(e){return null!==(e=e.assignedSlot||e.parentElement)&&11===e.nodeType?e.host:e}function Je(e,t){for(e=e.getParent();null!==e;){if(e.is(t))return!0;e=e.getParent()}return!1}function Qe(e){return null===(e=e._window)&&I(78),e}function Ze(e){for(e=e.getParentOrThrow();null!==e&&!et(e);)e=e.getParentOrThrow();return e}function et(e){return Mr(e)||Nr(e)&&e.isShadowRoot()}function tt(e){return Se(e=e.constructor.clone(e),null),e}function nt(e){var t=vr();let n=e.constructor.getType();return void 0===(t=t._nodes.get(n))&&I(97),null!==(t=t.replace)?((t=t(e))instanceof e.constructor||I(98),t):e}function rt(e,t){!Mr(e=e.getParent())||Nr(t)||Ar(t)||I(99)}function ot(e){return(Ar(e)||Nr(e)&&!e.canBeEmpty())&&!e.isInline()}function it(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null,null!==(t=e.parentElement)&&t.removeChild(e)}function at(e){return D?(e||window).getSelection():null}function lt(e,t){let n=e.getChildAtIndex(t);null==n&&(n=e),et(e)&&I(102);let r=e=>{const t=e.getParentOrThrow(),o=et(t),i=e!==n||o?tt(e):e;if(o)return e.insertAfter(i),[e,i,i];const[a,l,s]=r(t);return e=e.getNextSiblings(),s.append(i,...e),[a,l,i]},[o,i]=r(n);return[o,i]}function st(e,t){for(;e!==Pe()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}function ut(e){let t=[],n=[e];for(;0<n.length;){let r=n.pop();void 0===r&&I(112),Nr(r)&&n.unshift(...r.getChildren()),r!==e&&t.push(r)}return t}function ct(e,t,n,r,o,i){for(e=e.getFirstChild();null!==e;){let a=e.__key;e.__parent===t&&(Nr(e)&&ct(e,a,n,r,o,i),n.has(a)||i.delete(a),o.push(a)),e=e.getNextSibling()}}let dt,pt,ft,ht,gt,mt,vt,bt,yt,xt,_t="",Ct="",Et="",St=!1,wt=!1,kt=null;function Rt(e,t){let n=vt.get(e);if(null!==t){let n=Ht(e);n.parentNode===t&&t.removeChild(n)}bt.has(e)||pt._keyToDOMMap.delete(e),Nr(n)&&At(e=$t(n,vt),0,e.length-1,null),void 0!==n&&We(xt,ft,ht,n,"destroyed")}function At(e,t,n,r){for(;t<=n;++t){let n=e[t];void 0!==n&&Rt(n,r)}}function Tt(e,t){e.setProperty("text-align",t)}function Nt(e,t){var n=dt.theme.indent;if("string"==typeof n){let r=e.classList.contains(n);0<t&&!r?e.classList.add(n):1>t&&r&&e.classList.remove(n)}n=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||"40px",e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${n})`)}function Ot(e,t){e=e.style,0===t?Tt(e,""):1===t?Tt(e,"left"):2===t?Tt(e,"center"):3===t?Tt(e,"right"):4===t?Tt(e,"justify"):5===t?Tt(e,"start"):6===t&&Tt(e,"end")}function Lt(e,t,n){let r=bt.get(e);void 0===r&&I(60);let o=r.createDOM(dt,pt);var i=pt._keyToDOMMap;if(o["__lexicalKey_"+pt._key]=e,i.set(e,o),Nn(r)?o.setAttribute("data-lexical-text","true"):Ar(r)&&o.setAttribute("data-lexical-decorator","true"),Nr(r)){if(e=r.__indent,i=r.__size,0!==e&&Nt(o,e),0!==i){--i,e=$t(r,bt);var a=Ct;Ct="",Mt(e,r,0,i,o,null),Dt(r,o),Ct=a}0!==(e=r.__format)&&Ot(o,e),r.isInline()||It(null,r,o),Ve(r)&&(_t+="\n\n",Et+="\n\n")}else i=r.getTextContent(),Ar(r)?(null!==(a=r.decorate(pt,dt))&&Bt(e,a),o.contentEditable="false"):Nn(r)&&(r.isDirectionless()||(Ct+=i)),_t+=i,Et+=i;return null!==t&&(null!=n?t.insertBefore(o,n):null!=(n=t.__lexicalLineBreak)?t.insertBefore(o,n):t.appendChild(o)),We(xt,ft,ht,r,"created"),o}function Mt(e,t,n,r,o,i){let a=_t;for(_t="";n<=r;++n)Lt(e[n],o,i);Ve(t)&&(_t+="\n\n"),o.__lexicalTextContent=_t,_t=a+_t}function Pt(e,t){return hn(e=t.get(e))||Ar(e)&&e.isInline()}function It(e,t,n){e=null!==e&&(0===e.__size||Pt(e.__last,vt)),t=0===t.__size||Pt(t.__last,bt),e?t||(null!=(t=n.__lexicalLineBreak)&&n.removeChild(t),n.__lexicalLineBreak=null):t&&(t=document.createElement("br"),n.__lexicalLineBreak=t,n.appendChild(t))}function Dt(e,t){var n=t.__lexicalDir;if(t.__lexicalDirTextContent!==Ct||n!==kt){let i=""===Ct;if(i)var r=kt;else r=Ct,r=V.test(r)?"rtl":q.test(r)?"ltr":null;if(r!==n){let a=t.classList,l=dt.theme;var o=null!==n?l[n]:void 0;let s=null!==r?l[r]:void 0;void 0!==o&&("string"==typeof o&&(o=o.split(" "),o=l[n]=o),a.remove(...o)),null===r||i&&"ltr"===r?t.removeAttribute("dir"):(void 0!==s&&("string"==typeof s&&(n=s.split(" "),s=l[r]=n),void 0!==s&&a.add(...s)),t.dir=r),wt||(e.getWritable().__dir=r)}kt=r,t.__lexicalDirTextContent=Ct,t.__lexicalDir=r}}function $t(e,t){let n=[];for(e=e.__first;null!==e;){let r=t.get(e);void 0===r&&I(101),n.push(e),e=r.__next}return n}function zt(e,t){var n=vt.get(e),r=bt.get(e);void 0!==n&&void 0!==r||I(61);var o=St||mt.has(e)||gt.has(e);let i=qe(pt,e);if(n===r&&!o)return Nr(n)?(void 0!==(r=i.__lexicalTextContent)&&(_t+=r,Et+=r),void 0!==(r=i.__lexicalDirTextContent)&&(Ct+=r)):(r=n.getTextContent(),Nn(n)&&!n.isDirectionless()&&(Ct+=r),Et+=r,_t+=r),i;if(n!==r&&o&&We(xt,ft,ht,r,"updated"),r.updateDOM(n,i,dt))return r=Lt(e,null,null),null===t&&I(62),t.replaceChild(r,i),Rt(e,null),r;if(Nr(n)&&Nr(r)){if((e=r.__indent)!==n.__indent&&Nt(i,e),(e=r.__format)!==n.__format&&Ot(i,e),o){e=r,o=Ct,Ct="",t=_t;var a=n.__size,l=e.__size;if(_t="",1===a&&1===l){var s=n.__first,u=e.__first;if(s===u)zt(s,i);else{var c=Ht(s);u=Lt(u,null,null),i.replaceChild(u,c),Rt(s,null)}}else{u=$t(n,vt);var d=$t(e,bt);if(0===a)0!==l&&Mt(d,e,0,l-1,i,null);else if(0===l)0!==a&&(At(u,0,a-1,(s=null==i.__lexicalLineBreak)?null:i),s&&(i.textContent=""));else{var p=u;u=d,d=a-1,a=l-1;let t=i.firstChild,n=0;for(l=0;n<=d&&l<=a;){var f=p[n];let e=u[l];if(f===e)t=Ft(zt(e,i)),n++,l++;else{void 0===s&&(s=new Set(p)),void 0===c&&(c=new Set(u));let r=c.has(f),o=s.has(e);r?(o?((f=qe(pt,e))===t?t=Ft(zt(e,i)):(null!=t?i.insertBefore(f,t):i.appendChild(f),zt(e,i)),n++):Lt(e,i,t),l++):(t=Ft(Ht(f)),Rt(f,i),n++)}}c=l>a,(s=n>d)&&!c?Mt(u,e,l,a,i,s=void 0===(s=u[a+1])?null:pt.getElementByKey(s)):c&&!s&&At(p,n,d,i)}}Ve(e)&&(_t+="\n\n"),i.__lexicalTextContent=_t,_t=t+_t,Dt(e,i),Ct=o,Mr(r)||r.isInline()||It(n,r,i)}Ve(r)&&(_t+="\n\n",Et+="\n\n")}else n=r.getTextContent(),Ar(r)?null!==(o=r.decorate(pt,dt))&&Bt(e,o):Nn(r)&&!r.isDirectionless()&&(Ct+=n),_t+=n,Et+=n;return!wt&&Mr(r)&&r.__cachedText!==Et&&((r=r.getWritable()).__cachedText=Et),i}function Bt(e,t){let n=pt._pendingDecorators,r=pt._decorators;if(null===n){if(r[e]===t)return;n=Le(pt)}n[e]=t}function Ft(e){return null!==(e=e.nextSibling)&&e===pt._blockCursorElement&&(e=e.nextSibling),e}function Ht(e){let t=yt.get(e);return void 0===t&&I(75,e),t}let jt=Object.freeze({}),Gt=[["keydown",function(e,t){if(Wt=e.timeStamp,Yt=e.keyCode,!t.isComposing()){var{keyCode:o,shiftKey:i,ctrlKey:a,metaKey:l,altKey:k}=e;if(!Er(t,f,e)){if(39!==o||a||l||k)if(39!==o||k||i||!a&&!l)if(37!==o||a||l||k)if(37!==o||k||i||!a&&!l)if(38!==o||a||l)if(40!==o||a||l)if(13===o&&i)Jt=!0,Er(t,x,e);else if(32===o)Er(t,_,e);else if(B&&a&&79===o)e.preventDefault(),Jt=!0,Er(t,r,!0);else if(13!==o||i)if(B?k||l||!(8===o||72===o&&a):a||k||l||8!==o)if(27===o)Er(t,E,e);else if(B?i||k||l||!(46===o||68===o&&a):a||k||l||46!==o)if(8===o&&(B?k:a))e.preventDefault(),Er(t,s,!0);else if(46===o&&(B?k:a))e.preventDefault(),Er(t,s,!1);else if(B&&l&&8===o)e.preventDefault(),Er(t,u,!0);else if(B&&l&&46===o)e.preventDefault(),Er(t,u,!1);else if(66===o&&!k&&(B?l:a))e.preventDefault(),Er(t,c,"bold");else if(85===o&&!k&&(B?l:a))e.preventDefault(),Er(t,c,"underline");else if(73===o&&!k&&(B?l:a))e.preventDefault(),Er(t,c,"italic");else if(9!==o||k||a||l)if(90===o&&!i&&(B?l:a))e.preventDefault(),Er(t,d,void 0);else{var R=B?90===o&&l&&i:89===o&&a||90===o&&a&&i;R?(e.preventDefault(),Er(t,p,void 0)):Gn(t._editorState._selection)?(R=!i&&(67===o&&(B?l:a)))?(e.preventDefault(),Er(t,N,e)):(R=!i&&(88===o&&(B?l:a)))?(e.preventDefault(),Er(t,O,e)):65===o&&(B?l:a)&&(e.preventDefault(),t.update((()=>{je()}))):!F&&65===o&&(B?l:a)&&(e.preventDefault(),t.update((()=>{je()})))}else Er(t,w,e);else 46===o?Er(t,S,e):(e.preventDefault(),Er(t,n,!1));else 8===o?Er(t,C,e):(e.preventDefault(),Er(t,n,!0));else Jt=!1,Er(t,x,e);else Er(t,y,e);else Er(t,b,e);else Er(t,v,e);else Er(t,m,e);else Er(t,g,e);else Er(t,h,e);(a||i||k||l)&&Er(t,P,e)}}}],["pointerdown",function(e,t){let n=e.target;e=e.pointerType,n instanceof Node&&"touch"!==e&&kr(t,(()=>{Ar(Oe(n))||(Xt=!0)}))}],["compositionstart",function(e,t){kr(t,(()=>{let n=tr();if(Bn(n)&&!t.isComposing()){let r=n.anchor,o=n.anchor.getNode();Re(r.key),(e.timeStamp<Wt+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||o.getStyle()!==n.style)&&Er(t,i,U)}}))}],["compositionend",function(e,t){F?Qt=!0:kr(t,(()=>{on(t,e.data)}))}],["input",function(e,t){e.stopPropagation(),kr(t,(()=>{var n=tr(),r=e.data,o=rn(e);if(null!=r&&Bn(n)&&en(n,o,r,e.timeStamp,!1)){Qt&&(on(t,r),Qt=!1);var a=n.anchor,l=a.getNode();if(null===(o=at(t._window)))return;let s=a.offset;(a=H&&!n.isCollapsed()&&Nn(l)&&null!==o.anchorNode)&&(a=(l=l.getTextContent().slice(0,s)+r+l.getTextContent().slice(s+n.focus.offset))===(3===(o=o.anchorNode).nodeType?o.nodeValue:null)),a||Er(t,i,r),r=r.length,F&&1<r&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=r),j||G||Y||!t.isComposing()||(Wt=0,Re(null))}else Fe(!1,t,null!==r?r:void 0),Qt&&(on(t,r||void 0),Qt=!1);gr(),se(n=vr())})),Ut=null}],["click",function(e,n){kr(n,(()=>{let r=tr();var o=at(n._window);let i=nr();if(o)if(Bn(r)){let t=r.anchor;var a=t.getNode();"element"===t.type&&0===t.offset&&r.isCollapsed()&&!Mr(a)&&1===Pe().getChildrenSize()&&a.getTopLevelElementOrThrow().isEmpty()&&null!==i&&r.is(i)?(o.removeAllRanges(),r.dirty=!0):3!==e.detail||r.isCollapsed()||a!==(o=r.focus.getNode())&&(Nr(a)?a.select(0):a.getParentOrThrow().select(0))}else"touch"===e.pointerType&&(null!==(a=o.anchorNode)&&(1===(a=a.nodeType)||3===a))&&Ie(o=er(i,o,n));Er(n,t,e)}))}],["cut",jt],["copy",jt],["dragstart",jt],["dragover",jt],["dragend",jt],["paste",jt],["focus",jt],["blur",jt],["drop",jt]];H&&Gt.push(["beforeinput",(e,t)=>function(e,t){let f=e.inputType,h=rn(e);"deleteCompositionText"===f||F&&Ue(t)||"insertCompositionText"!==f&&kr(t,(()=>{let g=tr();if("deleteContentBackward"===f){if(null===g){var m=nr();if(!Bn(m))return;Ie(m.clone())}if(Bn(g))return void(229===Yt&&e.timeStamp<Wt+30&&t.isComposing()&&g.anchor.key===g.focus.key?(Re(null),Wt=0,setTimeout((()=>{kr(t,(()=>{Re(null)}))}),30),Bn(g)&&(m=g.anchor.getNode(),m.markDirty(),g.format=m.getFormat(),g.style=m.getStyle())):(e.preventDefault(),Er(t,n,!0)))}if(Bn(g)){m=e.data,null!==Ut&&Fe(!1,t,Ut),g.dirty&&null===Ut||!g.isCollapsed()||Mr(g.anchor.getNode())||null===h||g.applyDOMRange(h),Ut=null;var v=g.focus,b=g.anchor.getNode();if(v=v.getNode(),"insertText"===f||"insertTranspose"===f)"\n"===m?(e.preventDefault(),Er(t,r,!1)):"\n\n"===m?(e.preventDefault(),Er(t,o,void 0)):null==m&&e.dataTransfer?(m=e.dataTransfer.getData("text/plain"),e.preventDefault(),g.insertRawText(m)):null!=m&&en(g,h,m,e.timeStamp,!0)?(e.preventDefault(),Er(t,i,m)):Ut=m,Kt=e.timeStamp;else switch(e.preventDefault(),f){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Er(t,i,e);break;case"insertFromComposition":Re(null),Er(t,i,e);break;case"insertLineBreak":Re(null),Er(t,r,!1);break;case"insertParagraph":Re(null),Jt&&!G?(Jt=!1,Er(t,r,!1)):Er(t,o,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Er(t,a,e);break;case"deleteByComposition":(function(e,t){return e!==t||Nr(e)||Nr(t)||!e.isToken()||!t.isToken()})(b,v)&&Er(t,l,e);break;case"deleteByDrag":case"deleteByCut":Er(t,l,e);break;case"deleteContent":Er(t,n,!1);break;case"deleteWordBackward":Er(t,s,!0);break;case"deleteWordForward":Er(t,s,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Er(t,u,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Er(t,u,!1);break;case"formatStrikeThrough":Er(t,c,"strikethrough");break;case"formatBold":Er(t,c,"bold");break;case"formatItalic":Er(t,c,"italic");break;case"formatUnderline":Er(t,c,"underline");break;case"historyUndo":Er(t,d,void 0);break;case"historyRedo":Er(t,p,void 0)}}}))}(e,t)]);let Wt=0,Yt=0,Kt=0,Ut=null,Vt=0,qt=!1,Xt=!1,Jt=!1,Qt=!1,Zt=[0,"",0,"root",0];function en(e,t,n,r,o){let i=e.anchor,a=e.focus,l=i.getNode();var s=vr();let u=at(s._window),c=null!==u?u.anchorNode:null,d=i.key;s=s.getElementByKey(d);let p=n.length;return d!==a.key||!Nn(l)||(!o&&(!H||Kt<r+50)||l.isDirty()&&2>p||$e(n))&&i.offset!==a.offset&&!l.isComposing()||xe(l)||l.isDirty()&&1<p||(o||!H)&&null!==s&&!l.isComposing()&&c!==_e(s)||null!==u&&null!==t&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||l.getFormat()!==e.format||l.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;e=e.anchor.offset;let n=t.getParentOrThrow(),r=t.isToken();return 0===e?((e=!t.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=(Nn(t=t.getPreviousSibling())||Nr(t)&&t.isInline())&&!t.canInsertTextAfter()),e):e===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()||r)}(e,l)}function tn(e,t){return null!==e&&null!==e.nodeValue&&3===e.nodeType&&0!==t&&t!==e.nodeValue.length}function nn(t,n,r){let{anchorNode:o,anchorOffset:i,focusNode:a,focusOffset:l}=t;qt&&(qt=!1,tn(o,i)&&tn(a,l))||kr(n,(()=>{if(r){if(be(n,o,a)){var i=tr();if(Bn(i)){var l=i.anchor,s=l.getNode();if(i.isCollapsed()){"Range"===t.type&&t.anchorNode===t.focusNode&&(i.dirty=!0);var u=Qe(n).event;u=u?u.timeStamp:performance.now();let[e,r,o,a,c]=Zt;u<c+200&&l.offset===o&&l.key===a?(i.format=e,i.style=r):"text"===l.type?(i.format=s.getFormat(),i.style=s.getStyle()):"element"===l.type&&(i.format=0,i.style="")}else{l=255,s=!1;let e=(u=i.getNodes()).length;for(let t=0;t<e;t++){let e=u[t];if(Nn(e)&&(s=!0,0===(l&=e.getFormat())))break}i.format=s?l:0}}Er(n,e,void 0)}}else Ie(null)}))}function rn(e){return e.getTargetRanges?0===(e=e.getTargetRanges()).length?null:e[0]:null}function on(e,t){var n=e._compositionKey;if(Re(null),null!==n&&null!=t){if(""===t)return t=Te(n),void(null!==(e=_e(e.getElementByKey(n)))&&null!==e.nodeValue&&Nn(t)&&He(t,e.nodeValue,null,null,!0));if("\n"===t[t.length-1]&&Bn(n=tr()))return t=n.focus,n.anchor.set(t.key,t.offset,t.type),void Er(e,x,null)}Fe(!0,e,t)}function an(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}let ln=new Map;function sn(e){let t=at(null==(e=e.target)?null:9===e.nodeType?e.defaultView:e.ownerDocument.defaultView);if(null!==t){var n=ye(t.anchorNode);if(null!==n){Xt&&(Xt=!1,kr(n,(()=>{var e=nr(),r=t.anchorNode;null!==r&&(1===(r=r.nodeType)||3===r)&&Ie(e=er(e,t,n))})));var r=(e=(e=ze(n))[e.length-1])._key,o=ln.get(r),i=o||e;i!==n&&nn(t,i,!1),nn(t,n,!0),n!==e?ln.set(r,n):o&&ln.delete(r)}}}function un(e,t,n){gr();var r=e.__key;let o=e.getParent();if(null!==o){var i=tr();if(Bn(i)&&Nr(e)){var{anchor:a,focus:l}=i,s=a.getNode(),u=l.getNode();Je(s,e)&&a.set(e.__key,0,"element"),Je(u,e)&&l.set(e.__key,0,"element")}if(u=!1,Bn(s=i)&&t){i=s.anchor;let t=s.focus;i.key===r&&(ir(i,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0),t.key===r&&(ir(t,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0)}else Gn(s)&&t&&e.isSelected()&&e.selectPrevious();Bn(s)&&t&&!u?(r=e.getIndexWithinParent(),we(e),rr(s,o,r,-1)):we(e),n||et(o)||o.canBeEmpty()||!o.isEmpty()||un(o,t),t&&Mr(o)&&o.isEmpty()&&o.selectEnd()}}class cn{static getType(){I(64,this.name)}static clone(){I(65,this.name)}constructor(e){this.__type=this.constructor.getType(),this.__next=this.__prev=this.__parent=null,Se(this,e)}getType(){return this.__type}isAttached(){for(var e=this.__key;null!==e;){if("root"===e)return!0;if(null===(e=Te(e)))break;e=e.__parent}return!1}isSelected(e){if(null==(e=e||tr()))return!1;let t=e.getNodes().some((e=>e.__key===this.__key));return(Nn(this)||!Bn(e)||"element"!==e.anchor.type||"element"!==e.focus.type||e.anchor.key!==e.focus.key||e.anchor.offset!==e.focus.offset)&&t}getKey(){return this.__key}getIndexWithinParent(){var e=this.getParent();if(null===e)return-1;e=e.getFirstChild();let t=0;for(;null!==e;){if(this.is(e))return t;t++,e=e.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return null===e?null:Te(e)}getParentOrThrow(){let e=this.getParent();return null===e&&I(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(et(t))return e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&I(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return null===e?null:Te(e)}getPreviousSiblings(){let e=[];var t=this.getParent();if(null===t)return e;for(t=t.getFirstChild();null!==t&&!t.is(this);)e.push(t),t=t.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:Te(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=this.getParents();var n=e.getParents();Nr(this)&&t.unshift(this),Nr(e)&&n.unshift(e),e=t.length;var r=n.length;if(0===e||0===r||t[e-1]!==n[r-1])return null;for(n=new Set(n),r=0;r<e;r++){let e=t[r];if(n.has(e))return e}return null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){if(this===e)return!1;if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;var t=this.getCommonAncestor(e);let n=this;for(;;){var r=n.getParentOrThrow();if(r===t){r=n.getIndexWithinParent();break}n=r}for(n=e;;){if((e=n.getParentOrThrow())===t){t=n.getIndexWithinParent();break}n=e}return r<t}isParentOf(e){let t=this.__key;if(t===e.__key)return!1;for(;null!==e;){if(e.__key===t)return!0;e=e.getParent()}return!1}getNodesBetween(e){let t=this.isBefore(e),n=[],r=new Set;for(var o=this;;){var i=o.__key;if(r.has(i)||(r.add(i),n.push(o)),o===e)break;if(null!==(i=Nr(o)?t?o.getFirstChild():o.getLastChild():null))o=i;else if(null!==(i=t?o.getNextSibling():o.getPreviousSibling()))o=i;else{if(o=o.getParentOrThrow(),r.has(o.__key)||n.push(o),o===e)break;i=o;do{null===i&&I(68),o=t?i.getNextSibling():i.getPreviousSibling(),null!==(i=i.getParent())&&(null!==o||r.has(i.__key)||n.push(i))}while(null===o)}}return t||n.reverse(),n}isDirty(){let e=vr()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=Te(this.__key);return null===e&&I(113),e}getWritable(){gr();var e=mr(),t=vr();e=e._nodeMap;let n=this.__key,r=this.getLatest(),o=r.__parent;t=t._cloneNotNeeded;var i=tr();return null!==i&&(i._cachedNodes=null),t.has(n)?(ke(r),r):((i=r.constructor.clone(r)).__parent=o,i.__next=r.__next,i.__prev=r.__prev,Nr(r)&&Nr(i)?(i.__first=r.__first,i.__last=r.__last,i.__size=r.__size,i.__indent=r.__indent,i.__format=r.__format,i.__dir=r.__dir):Nn(r)&&Nn(i)&&(i.__format=r.__format,i.__style=r.__style,i.__mode=r.__mode,i.__detail=r.__detail),t.add(n),i.__key=n,ke(i),e.set(n,i),i)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){I(70)}updateDOM(){I(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){I(72)}static importJSON(){I(18,this.name)}static transform(){return null}remove(e){un(this,!0,e)}replace(e,t){gr();var n=tr();null!==n&&(n=n.clone()),rt(this,e);let r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),l=(e=this.getParentOrThrow().getWritable()).__size;we(a);let s=r.getPreviousSibling(),u=r.getNextSibling(),c=r.__prev,d=r.__next,p=r.__parent;return un(r,!1,!0),null===s?e.__first=i:s.getWritable().__next=i,a.__prev=c,null===u?e.__last=i:u.getWritable().__prev=i,a.__next=d,a.__parent=p,e.__size=l,t&&this.getChildren().forEach((e=>{a.append(e)})),Bn(n)&&(Ie(n),t=n.anchor,n=n.focus,t.key===o&&In(t,a),n.key===o&&In(n,a)),Ae()===o&&Re(i),a}insertAfter(e,t=!0){gr(),rt(this,e);var n=this.getWritable();let r=e.getWritable();var o=r.getParent();let i=tr();var a=!1,l=!1;if(null!==o){var s=e.getIndexWithinParent();we(r),Bn(i)&&(l=o.__key,a=i.anchor,o=i.focus,a="element"===a.type&&a.key===l&&a.offset===s+1,l="element"===o.type&&o.key===l&&o.offset===s+1)}o=this.getNextSibling(),s=this.getParentOrThrow().getWritable();let u=r.__key,c=n.__next;return null===o?s.__last=u:o.getWritable().__prev=u,s.__size++,n.__next=u,r.__next=c,r.__prev=n.__key,r.__parent=n.__parent,t&&Bn(i)&&(rr(i,s,(t=this.getIndexWithinParent())+1),n=s.__key,a&&i.anchor.set(n,t+2,"element"),l&&i.focus.set(n,t+2,"element")),e}insertBefore(e,t=!0){gr(),rt(this,e);var n=this.getWritable();let r=e.getWritable(),o=r.__key;we(r);let i=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),l=n.__prev,s=this.getIndexWithinParent();return null===i?a.__first=o:i.getWritable().__next=o,a.__size++,n.__prev=o,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent,n=tr(),t&&Bn(n)&&rr(n,t=this.getParentOrThrow(),s),e}isParentRequired(){return!1}createParentElementNode(){return Br()}selectPrevious(e,t){gr();let n=this.getPreviousSibling(),r=this.getParentOrThrow();return null===n?r.select(0,0):Nr(n)?n.select():Nn(n)?n.select(e,t):(e=n.getIndexWithinParent()+1,r.select(e,e))}selectNext(e,t){gr();let n=this.getNextSibling(),r=this.getParentOrThrow();return null===n?r.select():Nr(n)?n.select(0,0):Nn(n)?n.select(e,t):(e=n.getIndexWithinParent(),r.select(e,e))}markDirty(){this.getWritable()}}class dn extends cn{static getType(){return"linebreak"}static clone(e){return new dn(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>{let t,n,r=e.parentElement;return null!==r&&((t=r.firstChild)===e||t.nextSibling===e&&3===t.nodeType&&null!==(t.textContent||"").match(/^[\s|\r?\n|\t]+$/))&&((n=r.lastChild)===e||n.previousSibling===e&&3===n.nodeType&&null!==(n.textContent||"").match(/^[\s|\r?\n|\t]+$/))?null:{conversion:pn,priority:0}}}}static importJSON(){return fn()}exportJSON(){return{type:"linebreak",version:1}}}function pn(){return{node:fn()}}function fn(){return nt(new dn)}function hn(e){return e instanceof dn}function gn(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function mn(e,t){return 1&t?"strong":2&t?"em":"span"}function vn(e,t,n,r,o){e=r.classList,void 0!==(r=Ge(o,"base"))&&e.add(...r);let i=!1,a=8&t&&4&t;var l=8&n&&4&n;void 0!==(r=Ge(o,"underlineStrikethrough"))&&(l?(i=!0,a||e.add(...r)):a&&e.remove(...r));for(let s in X)l=X[s],void 0!==(r=Ge(o,s))&&(n&l&&(!i||"underline"!==s&&"strikethrough"!==s)?(!(t&l)||a&&"underline"===s||"strikethrough"===s)&&e.add(...r):t&l&&e.remove(...r))}function bn(e,t,n){let r=t.firstChild;if(e+=(n=n.isComposing())?K:"",null==r)t.textContent=e;else if((t=r.nodeValue)!==e)if(n||F){n=t.length;let o=e.length,i=0,a=0;for(;i<n&&i<o&&t[i]===e[i];)i++;for(;a+i<n&&a+i<o&&t[n-a-1]===e[o-a-1];)a++;e=[i,n-i-a,e.slice(i,o-a)];let[l,s,u]=e;0!==s&&r.deleteData(l,s),r.insertData(l,u)}else r.nodeValue=e}function yn(e,t){return(t=document.createElement(t)).appendChild(e),t}class xn extends cn{static getType(){return"text"}static clone(e){return new xn(e.__text,e.__key)}constructor(e,t){super(t),this.__text=e,this.__format=0,this.__style="",this.__detail=this.__mode=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return ne[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Ae()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){return e=X[e],!!(this.getFormat()&e)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Ce(this.getLatest().__format,e,t)}createDOM(e){var t=this.__format,n=gn(0,t);let r=mn(0,t),o=document.createElement(null===n?r:n),i=o;return null!==n&&(i=document.createElement(r),o.appendChild(i)),n=i,bn(this.__text,n,this),void 0!==(e=e.theme.text)&&vn(r,0,t,n,e),""!==(t=this.__style)&&(o.style.cssText=t),o}updateDOM(e,t,n){let r=this.__text;var o=e.__format,i=this.__format,a=gn(0,o);let l=gn(0,i);var s=mn(0,o);let u=mn(0,i);return(null===a?s:a)!==(null===l?u:l)||(a===l&&s!==u?(null==(o=t.firstChild)&&I(48),bn(r,e=a=document.createElement(u),this),void 0!==(n=n.theme.text)&&vn(u,0,i,e,n),t.replaceChild(a,o),!1):(s=t,null!==l&&null!==a&&(null==(s=t.firstChild)&&I(49)),bn(r,s,this),void 0!==(n=n.theme.text)&&o!==i&&vn(u,o,i,s,n),i=this.__style,e.__style!==i&&(t.style.cssText=i),!1))}static importDOM(){return{"#text":()=>({conversion:Sn,priority:0}),b:()=>({conversion:Cn,priority:0}),code:()=>({conversion:An,priority:0}),em:()=>({conversion:An,priority:0}),i:()=>({conversion:An,priority:0}),s:()=>({conversion:An,priority:0}),span:()=>({conversion:_n,priority:0}),strong:()=>({conversion:An,priority:0}),sub:()=>({conversion:An,priority:0}),sup:()=>({conversion:An,priority:0}),u:()=>({conversion:An,priority:0})}}static importJSON(e){let t=Tn(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportDOM(e){return({element:e}=super.exportDOM(e)),null!==e&&(this.hasFormat("bold")&&(e=yn(e,"b")),this.hasFormat("italic")&&(e=yn(e,"i")),this.hasFormat("strikethrough")&&(e=yn(e,"s")),this.hasFormat("underline")&&(e=yn(e,"u"))),{element:e}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?X[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?J[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){return e=X[e],this.setFormat(this.getFormat()^e)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){if(e=te[e],this.__mode===e)return this;let t=this.getWritable();return t.__mode=e,t}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){gr();let n=tr();var r=this.getTextContent();let o=this.__key;return"string"==typeof r?(r=r.length,void 0===e&&(e=r),void 0===t&&(t=r)):t=e=0,Bn(n)?((r=Ae())!==n.anchor.key&&r!==n.focus.key||Re(o),n.setTextNodeRange(this,e,this,t),n):Qn(o,e,o,t,"text","text")}spliceText(e,t,n,r){let o=this.getWritable(),i=o.__text,a=n.length,l=e;0>l&&(l=a+l,0>l&&(l=0));let s=tr();return r&&Bn(s)&&(e+=a,s.setTextNodeRange(o,e,o,e)),t=i.slice(0,l)+n+i.slice(l+t),o.__text=t,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){gr();var t=this.getLatest(),n=t.getTextContent(),r=t.__key,o=Ae(),i=new Set(e);e=[];for(var a=n.length,l="",s=0;s<a;s++)""!==l&&i.has(s)&&(e.push(l),l=""),l+=n[s];if(""!==l&&e.push(l),0===(i=e.length))return[];if(e[0]===n)return[t];var u=e[0];n=t.getParentOrThrow(),s=t.getFormat();let c=t.getStyle(),d=t.__detail;a=!1,t.isSegmented()?((l=Tn(u)).__format=s,l.__style=c,l.__detail=d,a=!0):(l=t.getWritable()).__text=u,t=tr(),l=[l],u=u.length;for(let n=1;n<i;n++){var p=e[n],f=p.length;(p=Tn(p).getWritable()).__format=s,p.__style=c,p.__detail=d;let i=p.__key;if(f=u+f,Bn(t)){let e=t.anchor,n=t.focus;e.key===r&&"text"===e.type&&e.offset>u&&e.offset<=f&&(e.key=i,e.offset-=u,t.dirty=!0),n.key===r&&"text"===n.type&&n.offset>u&&n.offset<=f&&(n.key=i,n.offset-=u,t.dirty=!0)}o===r&&Re(i),u=f,l.push(p)}return r=this.getPreviousSibling(),o=this.getNextSibling(),null!==r&&ke(r),null!==o&&ke(o),r=n.getWritable(),o=this.getIndexWithinParent(),a?(r.splice(o,0,l),this.remove()):r.splice(o,1,l),Bn(t)&&rr(t,n,o,i-1),l}mergeWithSibling(e){var t=e===this.getPreviousSibling();t||e===this.getNextSibling()||I(50);var n=this.__key;let r=e.__key,o=this.__text,i=o.length;Ae()===r&&Re(n);let a=tr();if(Bn(a)){let o=a.anchor,l=a.focus;null!==o&&o.key===r&&(ar(o,t,n,e,i),a.dirty=!0),null!==l&&l.key===r&&(ar(l,t,n,e,i),a.dirty=!0)}return n=e.__text,this.setTextContent(t?n+o:o+n),t=this.getWritable(),e.remove(),t}isTextEntity(){return!1}}function _n(e){let t="700"===e.style.fontWeight,n="line-through"===e.style.textDecoration,r="italic"===e.style.fontStyle,o="underline"===e.style.textDecoration,i=e.style.verticalAlign;return{forChild:e=>Nn(e)?(t&&e.toggleFormat("bold"),n&&e.toggleFormat("strikethrough"),r&&e.toggleFormat("italic"),o&&e.toggleFormat("underline"),"sub"===i&&e.toggleFormat("subscript"),"super"===i&&e.toggleFormat("superscript"),e):e,node:null}}function Cn(e){let t="normal"===e.style.fontWeight;return{forChild:e=>(Nn(e)&&!t&&e.toggleFormat("bold"),e),node:null}}let En=new WeakMap;function Sn(e){null===e.parentElement&&I(129);for(var t,n=e.textContent||"",r=e.parentNode,o=[e];null!==r&&void 0===(t=En.get(r))&&!("PRE"===r.nodeName||1===r.nodeType&&r.style.whiteSpace.startsWith("pre"));)o.push(r),r=r.parentNode;for(t=void 0===t?r:t,r=0;r<o.length;r++)En.set(o[r],t);if(null!==t){for(e=[],o=(n=n.split(/(\r?\n|\t)/)).length,t=0;t<o;t++)"\n"===(r=n[t])||"\r\n"===r?e.push(fn()):"\t"===r?e.push(Ln()):""!==r&&e.push(Tn(r));return{node:e}}if(""===(n=n.replace(/\r?\n|\t/gm," ").replace("\r","").replace(/\s+/g," ")))return{node:null};if(" "===n[0]){for(o=e,t=!0;null!==o&&null!==(o=kn(o,!1));)if(0<(r=o.textContent||"").length){r.match(/(?:\s|\r?\n|\t)$/)&&(n=n.slice(1)),t=!1;break}t&&(n=n.slice(1))}if(" "===n[n.length-1]){for(o=!0;null!==e&&null!==(e=kn(e,!0));)if(0<(e.textContent||"").replace(/^[\s|\r?\n|\t]+/,"").length){o=!1;break}o&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:Tn(n)}}let wn=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/,"i");function kn(e,t){for(;;){for(var n=void 0;null===(n=t?e.nextSibling:e.previousSibling);)if(null===(e=e.parentElement))return null;if(1===(e=n).nodeType&&(""===(n=e.style.display)&&null===e.nodeName.match(wn)||""!==n&&!n.startsWith("inline")))return null;for(;null!==(n=t?e.firstChild:e.lastChild);)e=n;if(3===e.nodeType)return e;if("BR"===e.nodeName)return null}}let Rn={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function An(e){let t=Rn[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:e=>(Nn(e)&&!e.hasFormat(t)&&e.toggleFormat(t),e),node:null}}function Tn(e=""){return nt(new xn(e))}function Nn(e){return e instanceof xn}class On extends xn{static getType(){return"tab"}static clone(e){let t=new On(e.__key);return t.__text=e.__text,t.__format=e.__format,t.__style=e.__style,t}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}static importJSON(e){let t=Ln();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(){I(126)}setDetail(){I(127)}setMode(){I(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Ln(){return nt(new On)}class Mn{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let t=this.getNode(),n=e.getNode(),r=this.offset;if(e=e.offset,Nr(t)){var o=t.getDescendantByIndex(r);t=null!=o?o:t}return Nr(n)&&(o=n.getDescendantByIndex(e),n=null!=o?o:n),t===n?r<e:t.isBefore(n)}getNode(){let e=Te(this.key);return null===e&&I(20),e}set(e,t,n){let r=this._selection,o=this.key;this.key=e,this.offset=t,this.type=n,hr()||(Ae()===o&&Re(e),null!==r&&(r._cachedNodes=null,r.dirty=!0))}}function Pn(e,t){let n=t.__key,r=e.offset,o="element";if(Nn(t))o="text",r>(t=t.getTextContentSize())&&(r=t);else if(!Nr(t)){var i=t.getNextSibling();Nn(i)?(n=i.__key,r=0,o="text"):(i=t.getParent())&&(n=i.__key,r=t.getIndexWithinParent()+1)}e.set(n,r,o)}function In(e,t){if(Nr(t)){let n=t.getLastDescendant();Nr(n)||Nn(n)?Pn(e,n):Pn(e,t)}else Pn(e,t)}function Dn(e,t,n,r){let o=e.getNode(),i=o.getChildAtIndex(e.offset),a=Tn(),l=Mr(o)?Br().append(a):a;a.setFormat(n),a.setStyle(r),null===i?o.append(l):(i.insertBefore(l),"element"===t.type&&t.key===e.key&&t.offset!==e.offset&&t.set(t.key,t.offset+1,"element")),e.is(t)&&t.set(a.__key,0,"text"),e.set(a.__key,0,"text")}function $n(e,t,n,r){e.key=t,e.offset=n,e.type=r}class zn{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!Gn(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every((e=>n.has(e)))}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 zn(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,t){let n=this.getNodes(),r=n.length;var o=n[r-1];if(Nn(o))o=o.select();else{let e=o.getIndexWithinParent()+1;o=o.getParentOrThrow().select(e,e)}for(o.insertNodes(e,t),e=0;e<r;e++)n[e].remove();return!0}getNodes(){var e=this._cachedNodes;if(null!==e)return e;var t=this._nodes;e=[];for(let n of t)null!==(t=Te(n))&&e.push(t);return hr()||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}function Bn(e){return e instanceof jn}class Fn{constructor(e,t,n){this.gridKey=e,this.anchor=t,this.focus=n,this.dirty=!1,this._cachedNodes=null,t._selection=this,n._selection=this}is(e){return!!Hn(e)&&(this.gridKey===e.gridKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus))}set(e,t,n){this.dirty=!0,this.gridKey=e,this.anchor.key=t,this.focus.key=n,this._cachedNodes=null}clone(){return new Fn(this.gridKey,this.anchor,this.focus)}isCollapsed(){return!1}isBackward(){return this.focus.isBefore(this.anchor)}getCharacterOffsets(){return Yn(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,t){let n=this.focus.getNode();return fe(n.select(0,n.getChildrenSize())).insertNodes(e,t)}getShape(){var e=Te(this.anchor.key);null===e&&I(21);var t=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var n=Te(this.focus.key);null===n&&I(22);var r=n.getIndexWithinParent();let o=n.getParentOrThrow().getIndexWithinParent();return n=Math.min(t,r),t=Math.max(t,r),r=Math.min(e,o),e=Math.max(e,o),{fromX:Math.min(n,t),fromY:Math.min(r,e),toX:Math.max(n,t),toY:Math.max(r,e)}}getNodes(){function e(e){let{cell:t,startColumn:n,startRow:r}=e;l=Math.min(l,n),s=Math.min(s,r),u=Math.max(u,n+t.__colSpan-1),c=Math.max(c,r+t.__rowSpan-1)}var t=this._cachedNodes;if(null!==t)return t;var n=this.anchor.getNode();t=this.focus.getNode(),n=st(n,Gr);var r=st(t,Gr);Gr(n)||I(103),Gr(r)||I(104),Ur(t=n.getParent())||I(105),Yr(t=t.getParent())||I(106);let[o,i,a]=lr(t,n,r),l=Math.min(i.startColumn,a.startColumn),s=Math.min(i.startRow,a.startRow),u=Math.max(i.startColumn+i.cell.__colSpan-1,a.startColumn+a.cell.__colSpan-1),c=Math.max(i.startRow+i.cell.__rowSpan-1,a.startRow+a.cell.__rowSpan-1);n=l,r=s;for(var d=l,p=s;l<n||s<r||u>d||c>p;){if(l<n){var f=p-r;--n;for(var h=0;h<=f;h++)e(o[r+h][n])}if(s<r)for(f=d-n,--r,h=0;h<=f;h++)e(o[r][n+h]);if(u>d)for(f=p-r,d+=1,h=0;h<=f;h++)e(o[r+h][d]);if(c>p)for(f=d-n,p+=1,h=0;h<=f;h++)e(o[p][n+h])}for(t=[t],n=null,r=s;r<=c;r++)for(d=l;d<=u;d++)({cell:p}=o[r][d]),Ur(f=p.getParent())||I(107),f!==n&&t.push(f),t.push(p,...ut(p)),n=f;return hr()||(this._cachedNodes=t),t}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}function Hn(e){return e instanceof Fn}class jn{constructor(e,t,n,r){this.anchor=e,this.focus=t,this.dirty=!1,this.format=n,this.style=r,this._cachedNodes=null,e._selection=this,t._selection=this}is(e){return!!Bn(e)&&(this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style)}isBackward(){return this.focus.isBefore(this.anchor)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){var e=this._cachedNodes;if(null!==e)return e;e=this.anchor;var t=this.focus,n=e.isBefore(t),r=n?e:t;n=n?t:e,e=r.getNode(),t=n.getNode();let o=r.offset;return r=n.offset,Nr(e)&&(n=e.getDescendantByIndex(o),e=null!=n?n:e),Nr(t)&&(null!==(n=t.getDescendantByIndex(r))&&n!==e&&t.getChildAtIndex(r)===n&&(n=n.getPreviousSibling()),t=null!=n?n:t),e=e.is(t)?Nr(e)&&0<e.getChildrenSize()?[]:[e]:e.getNodesBetween(t),hr()||(this._cachedNodes=e),e}setTextNodeRange(e,t,n,r){$n(this.anchor,e.__key,t,"text"),$n(this.focus,n.__key,r,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[a,l]=Yn(this),s="",u=!0;for(let c=0;c<e.length;c++){let d=e[c];if(Nr(d)&&!d.isInline())u||(s+="\n"),u=!d.isEmpty();else if(u=!1,Nn(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=a<l?e.slice(a,l):e.slice(l,a)):e=i?e.slice(a):e.slice(l):d===n&&(e=i?e.slice(0,l):e.slice(0,a)),s+=e}else!Ar(d)&&!hn(d)||d===n&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let t=vr(),n=t.getEditorState()._selection;if(null!==(e=Xn(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n))){var[r,o]=e;$n(this.anchor,r.key,r.offset,r.type),$n(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let e=this.anchor,t=this.focus;return new jn(new Mn(e.key,e.offset,e.type),new Mn(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Ce(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){return!!(this.format&X[e])}insertRawText(e){let t=[],n=(e=e.split(/(\r?\n|\t)/)).length;for(let r=0;r<n;r++){let n=e[r];"\n"===n||"\r\n"===n?t.push(fn()):"\t"===n?t.push(Ln()):t.push(Tn(n))}this.insertNodes(t)}insertText(e){var t=this.anchor,n=this.focus,r=this.isCollapsed()||t.isBefore(n),o=this.format,i=this.style;r&&"element"===t.type?Dn(t,n,o,i):r||"element"!==n.type||Dn(n,t,o,i);var a=this.getNodes(),l=a.length,s=r?n:t;n=(r?t:n).offset;var u=s.offset;Nn(t=a[0])||I(26),r=t.getTextContent().length;var c=t.getParentOrThrow(),d=a[l-1];if(this.isCollapsed()&&n===r&&(t.isSegmented()||t.isToken()||!t.canInsertTextAfter()||!c.canInsertTextAfter()&&null===t.getNextSibling())){var p=t.getNextSibling();if(Nn(p)&&p.canInsertTextBefore()&&!xe(p)||((p=Tn()).setFormat(o),c.canInsertTextAfter()?t.insertAfter(p):c.insertAfter(p)),p.select(0,0),t=p,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===n&&(t.isSegmented()||t.isToken()||!t.canInsertTextBefore()||!c.canInsertTextBefore()&&null===t.getPreviousSibling())){if(Nn(p=t.getPreviousSibling())&&!xe(p)||((p=Tn()).setFormat(o),c.canInsertTextBefore()?t.insertBefore(p):c.insertBefore(p)),p.select(),t=p,""!==e)return void this.insertText(e)}else if(t.isSegmented()&&n!==r)(c=Tn(t.getTextContent())).setFormat(o),t.replace(c),t=c;else if(!(this.isCollapsed()||""===e||(p=d.getParent(),c.canInsertTextBefore()&&c.canInsertTextAfter()&&(!Nr(p)||p.canInsertTextBefore()&&p.canInsertTextAfter()))))return this.insertText(""),qn(this.anchor,this.focus,null),void this.insertText(e);if(1===l)if(t.isToken())(e=Tn(e)).select(),t.replace(e);else{if(a=t.getFormat(),l=t.getStyle(),n===u&&(a!==o||l!==i)){if(""!==t.getTextContent())return(a=Tn(e)).setFormat(o),a.setStyle(i),a.select(),0===n?t.insertBefore(a,!1):([l]=t.splitText(n),l.insertAfter(a,!1)),void(a.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length));t.setFormat(o),t.setStyle(i)}""===(t=t.spliceText(n,u-n,e,!0)).getTextContent()?t.remove():"text"===this.anchor.type&&(t.isComposing()?this.anchor.offset-=e.length:(this.format=a,this.style=l))}else{if(o=new Set([...t.getParentKeys(),...d.getParentKeys()]),p=Nr(t)?t:t.getParentOrThrow(),i=Nr(d)?d:d.getParentOrThrow(),c=d,!p.is(i)&&i.isInline())do{c=i,i=i.getParentOrThrow()}while(i.isInline());"text"===s.type&&(0!==u||""===d.getTextContent())||"element"===s.type&&d.getIndexWithinParent()<u?Nn(d)&&!d.isToken()&&u!==d.getTextContentSize()?(d.isSegmented()&&(s=Tn(d.getTextContent()),d.replace(s),d=s),d=d.spliceText(0,u,""),o.add(d.__key)):(s=d.getParentOrThrow()).canBeEmpty()||1!==s.getChildrenSize()?d.remove():s.remove():o.add(d.__key),s=i.getChildren(),u=new Set(a),d=p.is(i),p=p.isInline()&&null===t.getNextSibling()?p:t;for(let e=s.length-1;0<=e;e--){let n=s[e];if(n.is(t)||Nr(n)&&n.isParentOf(t))break;n.isAttached()&&(!u.has(n)||n.is(c)?d||p.insertAfter(n,!1):n.remove())}if(!d)for(s=i,u=null;null!==s;)(0===(d=(i=s.getChildren()).length)||i[d-1].is(u))&&(o.delete(s.__key),u=s),s=s.getParent();for(t.isToken()?n===r?t.select():((e=Tn(e)).select(),t.replace(e)):""===(t=t.spliceText(n,r-n,e,!0)).getTextContent()?t.remove():t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length),e=1;e<l;e++)t=a[e],o.has(t.__key)||t.remove()}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())this.toggleFormat(e),Re(null);else{var t=this.getNodes(),n=[];for(var r of t)Nn(r)&&n.push(r);var o=n.length;if(0===o)this.toggleFormat(e),Re(null);else{r=this.anchor;var i=this.focus,a=this.isBackward();t=a?i:r,r=a?r:i;var l=0,s=n[0];if(i="element"===t.type?0:t.offset,"text"===t.type&&i===s.getTextContentSize()&&(l=1,s=n[1],i=0),null!=s){a=s.getFormatFlags(e,null);var u=o-1,c=n[u];if(o="text"===r.type?r.offset:c.getTextContentSize(),s.is(c))i!==o&&(0===i&&o===s.getTextContentSize()?s.setFormat(a):(e=s.splitText(i,o),(e=0===i?e[0]:e[1]).setFormat(a),"text"===t.type&&t.set(e.__key,0,"text"),"text"===r.type&&r.set(e.__key,o-i,"text")),this.format=a);else{0!==i&&([,s]=s.splitText(i),i=0),s.setFormat(a);var d=c.getFormatFlags(e,a);for(0<o&&(o!==c.getTextContentSize()&&([c]=c.splitText(o)),c.setFormat(d)),l+=1;l<u;l++){let t=n[l];if(!t.isToken()){let n=t.getFormatFlags(e,d);t.setFormat(n)}}"text"===t.type&&t.set(s.__key,i,"text"),"text"===r.type&&r.set(c.__key,o,"text"),this.format=a|d}}}}}insertNodes(e,t){if(!this.isCollapsed()){var n=this.isBackward()?this.anchor:this.focus,r=n.getNode().getNextSibling();if(r=r?r.getKey():null,n=(n=n.getNode().getPreviousSibling())?n.getKey():null,this.removeText(),this.isCollapsed()&&"element"===this.focus.type){if(this.focus.key===r&&0===this.focus.offset){var o=Tn();this.focus.getNode().insertBefore(o)}else this.focus.key===n&&this.focus.offset===this.focus.getNode().getChildrenSize()&&(o=Tn(),this.focus.getNode().insertAfter(o));o&&(this.focus.set(o.__key,0,"text"),this.anchor.set(o.__key,0,"text"))}}n=(o=this.anchor).offset;var i=o.getNode();r=i,"element"===o.type&&(r=null===(r=(o=o.getNode()).getChildAtIndex(n-1))?o:r),o=[];var a=i.getNextSiblings(),l=et(i)?null:i.getTopLevelElementOrThrow();if(Nn(i))if(r=i.getTextContent().length,0===n&&0!==r)r=null!==(r=i.getPreviousSibling())?r:i.getParentOrThrow(),o.push(i);else if(n===r)r=i;else{if(i.isToken())return!1;[r,i]=i.splitText(n),o.push(i)}i=r,o.push(...a),a=e[0];var s=!1,u=null;for(let t=0;t<e.length;t++){var c=e[t];if(et(r)||Ar(r)||!Nr(c)||c.isInline())s&&!Nr(c)&&!Ar(c)&&et(r.getParent())&&I(28);else{if(c.is(a)){if(Nr(r)&&r.isEmpty()&&r.canReplaceWith(c)){r.replace(c),r=c,s=!0;continue}if(Ee(s=c.getFirstDescendant())){for(var d=s.getParentOrThrow();d.isInline();)d=d.getParentOrThrow();if(s=(u=d.getChildren()).length,Nr(r)){var p=r.getFirstChild();for(let e=0;e<s;e++){let t=u[e];null===p?r.append(t):p.insertAfter(t),p=t}}else{for(p=s-1;0<=p;p--)r.insertAfter(u[p]);r=r.getParentOrThrow()}if(u=u[s-1],d.remove(),s=!0,d.is(c))continue}}Nn(r)&&(null===l&&I(27),r=l)}s=!1,Nr(r)&&!r.isInline()?(u=c,Ar(c)&&!c.isInline()?r=r.insertAfter(c,!1):Nr(c)?!c.canBeEmpty()&&c.isEmpty()||(Mr(r)?(null!==(d=r.getChildAtIndex(n))?d.insertBefore(c):r.append(c),r=c):c.isInline()?(r.append(c),r=c):r=r.insertAfter(c,!1)):(null!==(d=r.getFirstChild())?d.insertBefore(c):r.append(c),r=c)):!Nr(c)||Nr(c)&&c.isInline()||Ar(r)&&!r.isInline()?(u=c,Bn(this)&&Ar(c)&&(Nr(r)||Nn(r))&&!c.isInline()?(Nn(r)?(d=r.getParentOrThrow(),[r]=r.splitText(n),r=r.getIndexWithinParent()+1):(d=r,r=n),[,r]=lt(d,r),r=r.insertBefore(c)):r=r.insertAfter(c,!1)):(c=r.getParentOrThrow(),hn(r)&&r.remove(),r=c,t--)}if(t&&(Nn(i)?i.select():Nn(e=r.getPreviousSibling())?e.select():(e=r.getIndexWithinParent(),r.getParentOrThrow().select(e,e))),Nr(r)){if(e=Nn(u)?u:Nr(u)&&u.isInline()?u.getLastDescendant():r.getLastDescendant(),t||(null===e?r.select():Nn(e)?""===e.getTextContent()?e.selectPrevious():e.select():e.selectNext()),0!==o.length)for(t=r,e=o.length-1;0<=e;e--)l=(n=o[e]).getParentOrThrow(),!Nr(r)||Jn(n)||Ar(n)&&(!n.isInline()||n.isIsolated())?Nr(r)||Jn(n)?Nr(n)&&!n.canInsertAfter(r)?(Nr(i=l.constructor.clone(l))||I(29),i.append(n),r.insertAfter(i)):r.insertAfter(n):(r.insertBefore(n),r=n):(t===r?r.append(n):r.insertBefore(n),r=n),l.isEmpty()&&!l.canBeEmpty()&&l.remove()}else t||(Nn(r)?r.select():(t=r.getParentOrThrow(),e=r.getIndexWithinParent()+1,t.select(e,e)));return!0}insertParagraph(){this.isCollapsed()||this.removeText();var e=this.anchor,t=e.offset,n=[];if("text"===e.type){var r=e.getNode(),o=r.getNextSiblings().reverse(),i=r.getParentOrThrow(),a=i.isInline(),l=a?i.getTextContentSize():r.getTextContentSize();0===t?o.push(r):(a&&(n=i.getNextSiblings()),t===l||a&&t===r.getTextContentSize()||([,r]=r.splitText(t),o.push(r)))}else{if(et(i=e.getNode()))return o=Br(),n=i.getChildAtIndex(t),o.select(),void(null!==n?n.insertBefore(o,!1):i.append(o));o=i.getChildren().slice(t).reverse()}if(r=o.length,0===t&&0<r&&i.isInline()){if(Nr(o=(n=i.getParentOrThrow()).insertNewAfter(this,!1)))for(n=n.getChildren(),i=0;i<n.length;i++)o.append(n[i])}else if(null===(a=i.insertNewAfter(this,!1)))this.insertLineBreak();else if(Nr(a))if(l=i.getFirstChild(),0===t&&(i.is(e.getNode())||l&&l.is(e.getNode()))&&0<r)i.insertBefore(a);else{if(i=null,t=n.length,e=a.getParentOrThrow(),0<t)for(l=0;l<t;l++)e.append(n[l]);if(0!==r)for(n=0;n<r;n++)t=o[n],null===i?a.append(t):i.insertBefore(t),i=t;a.canBeEmpty()||0!==a.getChildrenSize()?a.selectStart():(a.selectPrevious(),a.remove())}}insertLineBreak(e){let t=fn();var n=this.anchor;"element"===n.type&&(Mr(n=n.getNode())&&this.insertParagraph()),e?this.insertNodes([t],!0):this.insertNodes([t])&&t.selectNext(0,0)}getCharacterOffsets(){return Yn(this)}extract(){var e=this.getNodes(),t=e.length,n=t-1,r=this.anchor;let o=this.focus;var i=e[0];let a=e[n],[l,s]=Yn(this);return 0===t?[]:1===t?Nn(i)&&!this.isCollapsed()?(e=l>s?s:l,n=i.splitText(e,l>s?l:s),null!=(e=0===e?n[0]:n[1])?[e]:[]):[i]:(t=r.isBefore(o),Nn(i)&&((r=t?l:s)===i.getTextContentSize()?e.shift():0!==r&&([,i]=i.splitText(r),e[0]=i)),Nn(a)&&(i=a.getTextContent().length,0===(t=t?s:l)?e.pop():t!==i&&([a]=a.splitText(t),e[n]=a)),e)}modify(e,t,n){var r=this.focus,o=this.anchor,i="move"===e,a=Ke(r,t);if(Ar(a)&&!a.isIsolated())i&&a.isKeyboardSelectable()?((t=Zn()).add(a.__key),Ie(t)):Nn(e=t?a.getPreviousSibling():a.getNextSibling())?(a=e.__key,t=t?e.getTextContent().length:0,r.set(a,t,"text"),i&&o.set(a,t,"text")):(n=a.getParentOrThrow(),Nr(e)?(n=e.__key,a=t?e.getChildrenSize():0):(a=a.getIndexWithinParent(),n=n.__key,t||a++),r.set(n,a,"element"),i&&o.set(n,a,"element"));else if(r=at((o=vr())._window)){var l=o._blockCursorElement,s=o._rootElement;if(null===s||null===l||!Nr(a)||a.isInline()||a.canBeEmpty()||it(l,o,s),r.modify(e,t?"backward":"forward",n),0<r.rangeCount&&(a=r.getRangeAt(0),o=Mr(o=this.anchor.getNode())?o:Ze(o),this.applyDOMRange(a),this.dirty=!0,!i)){for(i=this.getNodes(),e=[],n=!1,l=0;l<i.length;l++)Je(s=i[l],o)?e.push(s):n=!0;n&&0<e.length&&(t?Nr(t=e[0])?t.selectStart():t.getParentOrThrow().selectStart():Nr(t=e[e.length-1])?t.selectEnd():t.getParentOrThrow().selectEnd()),r.anchorNode===a.startContainer&&r.anchorOffset===a.startOffset||(t=this.focus,r=(i=this.anchor).key,a=i.offset,o=i.type,$n(i,t.key,t.offset,t.type),$n(t,r,a,o),this._cachedNodes=null)}}}deleteCharacter(t){let n=this.isCollapsed();if(this.isCollapsed()){var r=this.anchor,o=this.focus,i=r.getNode();if(!t&&("element"===r.type&&Nr(i)&&r.offset===i.getChildrenSize()||"text"===r.type&&r.offset===i.getTextContentSize())){var a=i.getParent();if(Nr(a=i.getNextSibling()||(null===a?null:a.getNextSibling()))&&a.isShadowRoot())return}if(Ar(a=Ke(o,t))&&!a.isIsolated())return void(a.isKeyboardSelectable()&&Nr(i)&&0===i.getChildrenSize()?(i.remove(),t=Zn(),t.add(a.__key),Ie(t)):(a.remove(),vr().dispatchCommand(e,void 0)));if(!t&&Nr(a)&&Nr(i)&&i.isEmpty())return i.remove(),void a.selectStart();if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===r.offset&&("element"===r.type?r.getNode():r.getNode().getParentOrThrow()).collapseAtStart(this))return}else{if(a="text"===o.type?o.getNode():null,i="text"===r.type?r.getNode():null,null!==a&&a.isSegmented()){if(r=o.offset,o=a.getTextContentSize(),a.is(i)||t&&r!==o||!t&&0!==r)return void Kn(a,t,r)}else if(null!==i&&i.isSegmented()&&(r=r.offset,o=i.getTextContentSize(),i.is(a)||t&&0!==r||!t&&r!==o))return void Kn(i,t,r);if(i=this.anchor,a=this.focus,(r=i.getNode())===(o=a.getNode())&&"text"===i.type&&"text"===a.type){var l=i.offset,s=a.offset;let e=l<s;(o=e?l:s)!==(l=(s=e?s:l)-1)&&($e(r=r.getTextContent().slice(o,s))||(t?a.offset=l:i.offset=l))}}}this.removeText(),t&&!n&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset&&((t=this.anchor.getNode()).isEmpty()&&Mr(t.getParent())&&0===t.getIndexWithinParent()&&t.collapseAtStart(this))}deleteLine(e){this.isCollapsed()&&("text"===this.anchor.type&&this.modify("extend",e,"lineboundary"),0===(e?this.focus:this.anchor).offset&&this.modify("extend",e,"character")),this.removeText()}deleteWord(e){this.isCollapsed()&&this.modify("extend",e,"word"),this.removeText()}}function Gn(e){return e instanceof zn}function Wn(e){let t=e.offset;return"text"===e.type?t:t===(e=e.getNode()).getChildrenSize()?e.getTextContent().length:0}function Yn(e){let t=e.anchor;return e=e.focus,"element"===t.type&&"element"===e.type&&t.key===e.key&&t.offset===e.offset?[0,0]:[Wn(t),Wn(e)]}function Kn(e,t,n){let r=e.getTextContent().split(/(?=\s)/g),o=r.length,i=0,a=0;for(let e=0;e<o;e++){let l=e===o-1;if(a=i,i+=r[e].length,t&&i===n||i>n||l){r.splice(e,1),l&&(a=void 0);break}}""===(t=r.join("").trim())?e.remove():(e.setTextContent(t),e.select(a,a))}function Un(e,t,n,r){var o=t;if(1===e.nodeType){let l=!1;var i=e.childNodes,a=i.length;o===a&&(l=!0,o=a-1);let s=i[o];if(a=!1,s===r._blockCursorElement?(s=i[o+1],a=!0):null!==r._blockCursorElement&&o--,Nn(r=De(s)))o=l?r.getTextContentSize():0;else{if(null===(i=De(e)))return null;if(Nr(i)?((t=Nr(e=i.getChildAtIndex(o)))&&(t=e.getParent(),t=null===n||null===t||!t.canBeEmpty()||t!==n.getNode()),t&&(null===(n=l?e.getLastDescendant():e.getFirstDescendant())?(i=e,o=0):i=Nr(e=n)?e:e.getParentOrThrow()),Nn(e)?(r=e,i=null,o=l?e.getTextContentSize():0):e!==i&&l&&!a&&o++):(o=i.getIndexWithinParent(),o=0===t&&Ar(i)&&De(e)===i?o:o+1,i=i.getParentOrThrow()),Nr(i))return new Mn(i.__key,o,"element")}}else r=De(e);return Nn(r)?new Mn(r.__key,o,"text"):null}function Vn(e,t,n){var r=e.offset,o=e.getNode();0===r?(r=o.getPreviousSibling(),o=o.getParent(),t?(n||!t)&&null===r&&Nr(o)&&o.isInline()&&(Nn(t=o.getPreviousSibling())&&(e.key=t.__key,e.offset=t.getTextContent().length)):Nr(r)&&!n&&r.isInline()?(e.key=r.__key,e.offset=r.getChildrenSize(),e.type="element"):Nn(r)&&(e.key=r.__key,e.offset=r.getTextContent().length)):r===o.getTextContent().length&&(r=o.getNextSibling(),o=o.getParent(),t&&Nr(r)&&r.isInline()?(e.key=r.__key,e.offset=0,e.type="element"):(n||t)&&null===r&&Nr(o)&&o.isInline()&&!o.canInsertTextAfter()&&(Nn(t=o.getNextSibling())&&(e.key=t.__key,e.offset=0)))}function qn(e,t,n){if("text"===e.type&&"text"===t.type){var r=e.isBefore(t);let o=e.is(t);Vn(e,r,o),Vn(t,!r,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type),(r=vr()).isComposing()&&r._compositionKey!==e.key&&Bn(n)&&(r=n.anchor,n=n.focus,$n(e,r.key,r.offset,r.type),$n(t,n.key,n.offset,n.type))}}function Xn(e,t,n,r,o,i){return null!==e&&null!==n&&be(o,e,n)?null===(t=Un(e,t,Bn(i)?i.anchor:null,o))||null===(r=Un(n,r,Bn(i)?i.focus:null,o))||"element"===t.type&&"element"===r.type&&(e=De(e),n=De(n),Ar(e)&&Ar(n))?null:(qn(t,r,i),[t,r]):null}function Jn(e){return Nr(e)&&!e.isInline()}function Qn(e,t,n,r,o,i){let a=mr();return(e=new jn(new Mn(e,t,o),new Mn(n,r,i),0,"")).dirty=!0,a._selection=e}function Zn(){return new zn(new Set)}function er(e,t,n){var r=n._window;if(null===r)return null;var o=r.event,i=o?o.type:void 0;let a;if(r="selectionchange"===i,o=!re&&(r||"beforeinput"===i||"compositionstart"===i||"compositionend"===i||"click"===i&&o&&3===o.detail||"drop"===i||void 0===i),Bn(e)&&!o)return e.clone();if(null===t)return null;if(o=t.anchorNode,i=t.focusNode,a=t.anchorOffset,t=t.focusOffset,r&&Bn(e)&&!be(n,o,i))return e.clone();if(null===(n=Xn(o,a,i,t,n,e)))return null;let[l,s]=n;return new jn(l,s,Bn(e)?e.format:0,Bn(e)?e.style:"")}function tr(){return mr()._selection}function nr(){return vr()._editorState._selection}function rr(e,t,n,r=1){var o=e.anchor,i=e.focus,a=o.getNode(),l=i.getNode();if(t.is(a)||t.is(l)){if(a=t.__key,e.isCollapsed())(n<=(t=o.offset)&&0<r||n<t&&0>r)&&(n=Math.max(0,t+r),o.set(a,n,"element"),i.set(a,n,"element"),or(e));else{let u=e.isBackward();var s=(l=u?i:o).getNode();i=(o=u?o:i).getNode(),t.is(s)&&((n<=(s=l.offset)&&0<r||n<s&&0>r)&&l.set(a,Math.max(0,s+r),"element")),t.is(i)&&((n<=(t=o.offset)&&0<r||n<t&&0>r)&&o.set(a,Math.max(0,t+r),"element"))}or(e)}}function or(e){var t=e.anchor,n=t.offset;let r=e.focus;var o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed())Nr(i)&&(Nn(a=(o=n>=(a=i.getChildrenSize()))?i.getChildAtIndex(a-1):i.getChildAtIndex(n))&&(n=0,o&&(n=a.getTextContentSize()),t.set(a.__key,n,"text"),r.set(a.__key,n,"text")));else{if(Nr(i)){let r=i.getChildrenSize();Nn(n=(e=n>=r)?i.getChildAtIndex(r-1):i.getChildAtIndex(n))&&(i=0,e&&(i=n.getTextContentSize()),t.set(n.__key,i,"text"))}Nr(a)&&(Nn(o=(t=o>=(n=a.getChildrenSize()))?a.getChildAtIndex(n-1):a.getChildAtIndex(o))&&(a=0,t&&(a=o.getTextContentSize()),r.set(o.__key,a,"text")))}}function ir(e,t,n,r,o){let i=null,a=0,l=null;null!==r?(i=r.__key,Nn(r)?(a=r.getTextContentSize(),l="text"):Nr(r)&&(a=r.getChildrenSize(),l="element")):null!==o&&(i=o.__key,Nn(o)?l="text":Nr(o)&&(l="element")),null!==i&&null!==l?e.set(i,a,l):(a=t.getIndexWithinParent(),-1===a&&(a=n.getChildrenSize()),e.set(n.__key,a,"element"))}function ar(e,t,n,r,o){"text"===e.type?(e.key=n,t||(e.offset+=o)):e.offset>r.getIndexWithinParent()&&--e.offset}function lr(e,t,n){let r=[],o=null,i=null;e=e.getChildren();for(let c=0;c<e.length;c++){var a=e[c];Ur(a)||I(108);var l=a.getChildren();a=0;for(let e of l){for(Gr(e)||I(109);void 0!==r[c]&&void 0!==r[c][a];)a++;var s=a,u=e;let d={cell:u,startColumn:s,startRow:l=c},p=u.__rowSpan,f=u.__colSpan;for(let e=0;e<p;e++){void 0===r[l+e]&&(r[l+e]=[]);for(let t=0;t<f;t++)r[l+e][s+t]=d}t.is(u)&&(o=d),n.is(u)&&(i=d),a+=e.__colSpan}}return null===o&&I(110),null===i&&I(111),[r,o,i]}let sr=null,ur=null,cr=!1,dr=!1,pr=0,fr={characterData:!0,childList:!0,subtree:!0};function hr(){return cr||null!==sr&&sr._readOnly}function gr(){cr&&I(13)}function mr(){return null===sr&&I(15),sr}function vr(){return null===ur&&I(16),ur}function br(e,t,n){var r=t.__type;let o=e._nodes.get(r);for(void 0===o&&I(30,r),void 0===(e=n.get(r))&&(e=Array.from(o.transforms),n.set(r,e)),n=e.length,r=0;r<n&&(e[r](t),t.isAttached());r++);}function yr(e,t){var n=e.type,r=t.get(n);if(void 0===r&&I(17,n),n=r.klass,e.type!==n.getType()&&I(18,n.name),n=n.importJSON(e),e=e.children,Nr(n)&&Array.isArray(e))for(r=0;r<e.length;r++){let o=yr(e[r],t);n.append(o)}return n}function xr(e,t){let n=sr,r=cr,o=ur;sr=e,cr=!0,ur=null;try{return t()}finally{sr=n,cr=r,ur=o}}function _r(t,n){let r=t._pendingEditorState,o=t._rootElement,i=t._headless||null===o;if(null!==r){var a=t._editorState,l=a._selection,s=r._selection,u=0!==t._dirtyType,c=sr,d=cr,p=ur,f=t._updating,h=t._observer,g=null;if(t._pendingEditorState=null,t._editorState=r,!i&&u&&null!==h){ur=t,sr=r,cr=!1,t._updating=!0;try{let e=t._dirtyType,n=t._dirtyElements,o=t._dirtyLeaves;h.disconnect();var m=n,v=o;Ct=Et=_t="",St=2===e,kt=null,pt=t,dt=t._config,ft=t._nodes,ht=pt._listeners.mutation,gt=m,mt=v,vt=a._nodeMap,bt=r._nodeMap,wt=r._readOnly,yt=new Map(t._keyToDOMMap);let i=new Map;xt=i,zt("root",null),xt=yt=dt=bt=vt=mt=gt=ft=pt=void 0,g=i}catch(e){if(e instanceof Error&&t._onError(e),dr)throw e;return Fr(t,null,o,r),ue(t),t._dirtyType=2,dr=!0,_r(t,a),void(dr=!1)}finally{h.observe(o,fr),t._updating=f,sr=c,cr=d,ur=p}}r._readOnly||(r._readOnly=!0);var b=t._dirtyLeaves,y=t._dirtyElements,x=t._normalizedNodes,_=t._updateTags,C=t._deferred;u&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set);var E,S=t._decorators,w=t._pendingDecorators||S,k=r._nodeMap;for(E in w)k.has(E)||(w===S&&(w=Le(t)),delete w[E]);var R=i?null:at(t._window);if(t._editable&&null!==R&&(u||null===s||s.dirty)){ur=t,sr=r;try{if(null!==h&&h.disconnect(),u||null===s||s.dirty){let e=t._blockCursorElement;null!==e&&it(e,t,o);e:{let e=R.anchorNode,n=R.focusNode,r=R.anchorOffset,i=R.focusOffset,a=document.activeElement;if(!(_.has("collaboration")&&a!==o||null!==a&&ve(a)))if(Bn(s)){var A=s.anchor,T=s.focus,N=A.key,O=T.key,L=qe(t,N),M=qe(t,O),P=A.offset,I=T.offset,D=s.format,$=s.style,z=s.isCollapsed(),B=L,F=M,H=!1;if("text"===A.type){B=_e(L);let e=A.getNode();H=e.getFormat()!==D||e.getStyle()!==$}else Bn(l)&&"text"===l.anchor.type&&(H=!0);if("text"===T.type&&(F=_e(M)),null!==B&&null!==F){if(z&&(null===l||H||Bn(l)&&(l.format!==D||l.style!==$))){var j=performance.now();Zt=[D,$,P,N,j]}if(r===P&&i===I&&e===B&&n===F&&("Range"!==R.type||!z)&&(null!==a&&o.contains(a)||o.focus({preventScroll:!0}),"element"!==A.type))break e;try{R.setBaseAndExtent(B,P,F,I)}catch(e){}if(!_.has("skip-scroll-into-view")&&s.isCollapsed()&&null!==o&&o===document.activeElement){let e=s instanceof jn&&"element"===s.anchor.type?B.childNodes[P]||null:0<R.rangeCount?R.getRangeAt(0):null;if(null!==e){let n;if(e instanceof Text){let t=document.createRange();t.selectNode(e),n=t.getBoundingClientRect()}else n=e.getBoundingClientRect();let r=o.ownerDocument,i=r.defaultView;if(null!==i)for(var G,W,{top:Y,bottom:K}=n,U=o;null!==U;){let e=U===r.body;if(e)G=0,W=Qe(t).innerHeight;else{let e=U.getBoundingClientRect();G=e.top,W=e.bottom}let n=0;if(Y<G?n=-(G-Y):K>W&&(n=K-W),0!==n)if(e)i.scrollBy(0,n);else{let e=U.scrollTop;U.scrollTop+=n;let t=U.scrollTop-e;Y-=t,K-=t}if(e)break;U=Xe(U)}}}qt=!0}}else null!==l&&be(t,e,n)&&R.removeAllRanges()}}e:{let e=t._blockCursorElement;if(Bn(s)&&s.isCollapsed()&&"element"===s.anchor.type&&o.contains(document.activeElement)){let n=s.anchor,r=n.getNode(),i=n.offset,a=r.getChildrenSize(),l=!1,u=null;if(i===a){ot(r.getChildAtIndex(i-1))&&(l=!0)}else{let e=r.getChildAtIndex(i);if(ot(e)){let n=e.getPreviousSibling();(null===n||ot(n))&&(l=!0,u=t.getElementByKey(e.__key))}}if(l){let n=t.getElementByKey(r.__key);if(null===e){let n=t._config.theme,r=document.createElement("div");r.contentEditable="false",r.setAttribute("data-lexical-cursor","true");let o=n.blockCursor;if(void 0!==o){if("string"==typeof o){let e=o.split(" ");o=n.blockCursor=e}void 0!==o&&r.classList.add(...o)}t._blockCursorElement=e=r}o.style.caretColor="transparent",null===u?n.appendChild(e):n.insertBefore(e,u);break e}}null!==e&&it(e,t,o)}null!==h&&h.observe(o,fr)}finally{ur=p,sr=c}}if(null!==g){var V=g;let e=Array.from(t._listeners.mutation),n=e.length;for(let t=0;t<n;t++){let[n,r]=e[t],o=V.get(r);void 0!==o&&n(o,{dirtyLeaves:b,updateTags:_})}}Bn(s)||null===s||null!==l&&l.is(s)||t.dispatchCommand(e,void 0);var q=t._pendingDecorators;null!==q&&(t._decorators=q,t._pendingDecorators=null,Cr("decorator",t,!0,q));var X=Me(n||a),J=Me(r);if(X!==J&&Cr("textcontent",t,!0,J),Cr("update",t,!0,{dirtyElements:y,dirtyLeaves:b,editorState:r,normalizedNodes:x,prevEditorState:n||a,tags:_}),t._deferred=[],0!==C.length){let e=t._updating;t._updating=!0;try{for(let e=0;e<C.length;e++)C[e]()}finally{t._updating=e}}var Q=t._updates;if(0!==Q.length){let e=Q.shift();if(e){let[n,r]=e;wr(t,n,r)}}}}function Cr(e,t,n,...r){let o=t._updating;t._updating=n;try{let n=Array.from(t._listeners[e]);for(e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=o}}function Er(e,t,n){if(!1===e._updating||ur!==e){let r=!1;return e.update((()=>{r=Er(e,t,n)})),r}let r=ze(e);for(let i=4;0<=i;i--)for(let a=0;a<r.length;a++){var o=r[a]._commands.get(t);if(void 0!==o&&void 0!==(o=o[i])){let t=(o=Array.from(o)).length;for(let r=0;r<t;r++)if(!0===o[r](n,e))return!0}}return!1}function Sr(e,t){let n=e._updates;for(t=t||!1;0!==n.length;){var r=n.shift();if(r){let n,[o,i]=r;void 0!==i&&(r=i.onUpdate,n=i.tag,i.skipTransforms&&(t=!0),r&&e._deferred.push(r),n&&e._updateTags.add(n)),o()}}return t}function wr(e,t,n){let r=e._updateTags;var o,i=o=!1;if(void 0!==n){var a=n.onUpdate;null!=(o=n.tag)&&r.add(o),o=n.skipTransforms||!1,i=n.discrete||!1}a&&e._deferred.push(a),n=e._editorState;let l=!1;(null===(a=e._pendingEditorState)||a._readOnly)&&(a=e._pendingEditorState=new Dr(new Map((a||n)._nodeMap)),l=!0),a._flushSync=i,i=sr;let s=cr,u=ur,c=e._updating;sr=a,cr=!1,e._updating=!0,ur=e;try{l&&(e._headless?null!=n._selection&&(a._selection=n._selection.clone()):a._selection=function(e){let t=e.getEditorState()._selection,n=at(e._window);return Gn(t)||Hn(t)?t.clone():er(t,n,e)}(e));let r=e._compositionKey;t(),o=Sr(e,o),function(e,t){if(t=t.getEditorState()._selection,Bn(e=e._selection)){var n=e.anchor;let r,o=e.focus;"text"===n.type&&(r=n.getNode(),r.selectionTransform(t,e)),"text"===o.type&&r!==(n=o.getNode())&&n.selectionTransform(t,e)}}(a,e),0!==e._dirtyType&&(o?function(e,t){t=t._dirtyLeaves,e=e._nodeMap;for(let n of t)Nn(t=e.get(n))&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&pe(t)}(a,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements;e=e._nodeMap;let o=Ae(),i=new Map;var a=n;let l=a.size;for(var s=r,u=s.size;0<l||0<u;){if(0<l){t._dirtyLeaves=new Set;for(let r of a)Nn(a=e.get(r))&&a.isAttached()&&a.isSimpleText()&&!a.isUnmergeable()&&pe(a),void 0!==a&&void 0!==a&&a.__key!==o&&a.isAttached()&&br(t,a,i),n.add(r);if(l=(a=t._dirtyLeaves).size,0<l){pr++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map;for(let n of s)s=n[0],u=n[1],("root"===s||u)&&(void 0!==(a=e.get(s))&&void 0!==a&&a.__key!==o&&a.isAttached()&&br(t,a,i),r.set(s,u));l=(a=t._dirtyLeaves).size,u=(s=t._dirtyElements).size,pr++}t._dirtyLeaves=n,t._dirtyElements=r}(a,e),Sr(e),function(e,t,n,r){e=e._nodeMap,t=t._nodeMap;let o=[];for(let[n]of r){let i=t.get(n);void 0===i||i.isAttached()||(Nr(i)&&ct(i,n,e,t,o,r),e.has(n)||r.delete(n),o.push(n))}for(let e of o)t.delete(e);for(let o of n)void 0===(r=t.get(o))||r.isAttached()||(e.has(o)||n.delete(o),t.delete(o))}(n,a,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(a._flushSync=!0);let i=a._selection;if(Bn(i)){let e=a._nodeMap,t=i.focus.key;void 0!==e.get(i.anchor.key)&&void 0!==e.get(t)||I(19)}else Gn(i)&&0===i._nodes.size&&(a._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=n,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void _r(e)}finally{sr=i,cr=s,ur=u,e._updating=c,pr=0}0!==e._dirtyType||function(e,t){if(t=t.getEditorState()._selection,e=e._selection,null!==e){if(e.dirty||!e.is(t))return!0}else if(null!==t)return!0;return!1}(a,e)?a._flushSync?(a._flushSync=!1,_r(e)):l&&me((()=>{_r(e)})):(a._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function kr(e,t,n){e._updating?e._updates.push([t,n]):wr(e,t,n)}class Rr extends cn{constructor(e){super(e)}decorate(){I(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ar(e){return e instanceof Rr}class Tr extends cn{constructor(e){super(e),this.__last=this.__first=null,this.__indent=this.__format=this.__size=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return ee[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],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(){let e=vr()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;null!==t;){if(Nn(t)&&e.push(t),Nr(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;null!==e;){if(Nr(e)){let t=e.getFirstChild();if(null!==t){e=t;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;null!==e;){if(Nr(e)){let t=e.getLastChild();if(null!==t){e=t;continue}}break}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;return e>=n?Nr(e=t[n-1])&&e.getLastDescendant()||e||null:Nr(e=t[e])&&e.getFirstDescendant()||e||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:Te(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&I(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:Te(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&I(96,this.__key),e}getChildAtIndex(e){var t=this.getChildrenSize();let n;if(e<t/2){for(n=this.getFirstChild(),t=0;null!==n&&t<=e;){if(t===e)return n;n=n.getNextSibling(),t++}return null}for(n=this.getLastChild(),--t;null!==n&&t>=e;){if(t===e)return n;n=n.getPreviousSibling(),t--}return null}getTextContent(){let e="",t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let o=t[r];e+=o.getTextContent(),Nr(o)&&r!==n-1&&!o.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let o=t[r];e+=o.getTextContentSize(),Nr(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return""!==e&&(e=Z[e],!!(this.getFormat()&e))}select(e,t){gr();let n=tr(),r=e,o=t;var i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){if(Nn(e=this.getFirstChild())||Nr(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)&&(Nn(e=this.getLastChild())||Nr(e)))return e.select();return void 0===r&&(r=i),void 0===o&&(o=i),i=this.__key,Bn(n)?(n.anchor.set(i,r,"element"),n.focus.set(i,o,"element"),n.dirty=!0,n):Qn(i,r,i,o,"element","element")}selectStart(){let e=this.getFirstDescendant();return Nr(e)||Nn(e)?e.select(0,0):null!==e?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return Nr(e)||Nn(e)?e.select():null!==e?e.selectNext():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach((e=>e.remove())),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?Z[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let r=n.length,o=this.getChildrenSize(),i=this.getWritable(),a=i.__key;var l=[],s=[];let u=this.getChildAtIndex(e+t),c=null,d=o-t+r;if(0!==e)if(e===o)c=this.getLastChild();else{var p=this.getChildAtIndex(e);null!==p&&(c=p.getPreviousSibling())}if(0<t){var f=null===c?this.getFirstChild():c.getNextSibling();for(p=0;p<t;p++){null===f&&I(100);var h=f.getNextSibling(),g=f.__key;we(f=f.getWritable()),s.push(g),f=h}}for(p=c,h=0;h<r;h++){g=n[h],null!==p&&g.is(p)&&(c=p=p.getPreviousSibling()),(f=g.getWritable()).__parent===a&&d--,we(f);let e=g.__key;null===p?(i.__first=e,f.__prev=null):((p=p.getWritable()).__next=e,f.__prev=p.__key),g.__key===a&&I(76),f.__parent=a,l.push(e),p=g}if(e+t===o?null!==p&&(p.getWritable().__next=null,i.__last=p.__key):null!==u&&(e=u.getWritable(),null!==p?(t=p.getWritable(),e.__prev=p.__key,t.__next=u.__key):e.__prev=null),i.__size=d,s.length&&Bn(e=tr())){s=new Set(s),l=new Set(l);let{anchor:t,focus:n}=e;Or(t,s,l)&&ir(t,t.getNode(),this,c,u),Or(n,s,l)&&ir(n,n.getNode(),this,c,u),0!==d||this.canBeEmpty()||et(this)||this.remove()}return i}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(){return null}canIndent(){return!0}collapseAtStart(){return!1}excludeFromCopy(){return!1}canExtractContents(){return!0}canReplaceWith(){return!0}canInsertAfter(){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(){return!1}extractWithChild(){return!1}}function Nr(e){return e instanceof Tr}function Or(e,t,n){for(e=e.getNode();e;){let r=e.__key;if(t.has(r)&&!n.has(r))return!0;e=e.getParent()}return!1}class Lr extends Tr{static getType(){return"root"}static clone(){return new Lr}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){I(51)}getTextContent(){let e=this.__cachedText;return!hr()&&0!==vr()._dirtyType||null===e?super.getTextContent():e}remove(){I(52)}replace(){I(53)}insertBefore(){I(54)}insertAfter(){I(55)}updateDOM(){return!1}append(...e){for(let t=0;t<e.length;t++){let n=e[t];Nr(n)||Ar(n)||I(56)}return super.append(...e)}static importJSON(e){let t=Pe();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function Mr(e){return e instanceof Lr}function Pr(){return new Dr(new Map([["root",new Lr]]))}function Ir(e){let t=e.exportJSON();var n=e.constructor;t.type!==n.getType()&&I(130,n.name);let r=t.children;if(Nr(e))for(Array.isArray(r)||I(59,n.name),e=e.getChildren(),n=0;n<e.length;n++){let t=Ir(e[n]);r.push(t)}return t}class Dr{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._readOnly=this._flushSync=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e){return xr(this,e)}clone(e){return(e=new Dr(this._nodeMap,void 0===e?this._selection:e))._readOnly=!0,e}toJSON(){return xr(this,(()=>({root:Ir(Pe())})))}}class $r extends Tr{static getType(){return"paragraph"}static clone(e){return new $r(e.__key)}createDOM(e){let t=document.createElement("p");return void 0!==(e=Ge(e.theme,"paragraph"))&&t.classList.add(...e),t}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:zr,priority:0})}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t),0<(t=this.getIndent())&&(e.style.textIndent=20*t+"px")}return{element:e}}static importJSON(e){let t=Br();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(e,t){e=Br();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.getChildren();if(0===e.length||Nn(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 zr(e){let t=Br();return e.style&&(t.setFormat(e.style.textAlign),0<(e=parseInt(e.style.textIndent,10)/20)&&t.setIndent(e)),{node:t}}function Br(){return nt(new $r)}function Fr(e,t,n,r){let o=e._keyToDOMMap;o.clear(),e._editorState=Pr(),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,null!==(r=e._observer)&&(r.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}class Hr{constructor(e,t,n,r,o,i,a){this._parentEditor=t,this._rootElement=null,this._editorState=e,this._compositionKey=this._pendingEditorState=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=Be(),this._onError=o,this._htmlConversions=i,this._editable=a,this._headless=null!==t&&t._headless,this._blockCursorElement=this._window=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let 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&&I(35);let r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=r.get(e);void 0===o&&I(36,String(e));let i=o[n];return i.add(t),()=>{i.delete(t),o.every((e=>0===e.size))&&r.delete(e)}}registerMutationListener(e,t){void 0===this._nodes.get(e.getType())&&I(37,e.name);let n=this._listeners.mutation;return n.set(t,e),()=>{n.delete(t)}}registerNodeTransformToKlass(e,t){var n=e.getType();return void 0===(n=this._nodes.get(n))&&I(37,e.name),n.transforms.add(t),n}registerNodeTransform(e,t){var n=this.registerNodeTransformToKlass(e,t);let r=[n];return null!=(n=n.replaceWithKlass)&&(n=this.registerNodeTransformToKlass(n,t),r.push(n)),function(e,t){kr(e,(()=>{var e=mr();if(!e.isEmpty())if("root"===t)Pe().markDirty();else{e=e._nodeMap;for(let[,t]of e)t.markDirty()}}),null===e._pendingEditorState?{tag:"history-merge"}:void 0)}(this,e.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 Er(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let i=Ge(this._config.theme,"root");var n=this._pendingEditorState||this._editorState;if(this._rootElement=e,Fr(this,t,e,n),null!==t){if(!this._config.disableEvents){0!==Vt&&(Vt--,0===Vt&&t.ownerDocument.removeEventListener("selectionchange",sn));var r=t.__lexicalEditor;if(null!=r){if(null!==r._parentEditor){var o=ze(r);o=o[o.length-1]._key,ln.get(o)===r&&ln.delete(o)}else ln.delete(r._key);t.__lexicalEditor=null}for(r=an(t),o=0;o<r.length;o++)r[o]();t.__lexicalEventHandles=[]}null!=i&&t.classList.remove(...i)}null!==e?(n=(n=e.ownerDocument)&&n.defaultView||null,(r=e.style).userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=n,this._dirtyType=2,ue(this),this._updateTags.add("history-merge"),_r(this),this._config.disableEvents||function(e,t){0===Vt&&e.ownerDocument.addEventListener("selectionchange",sn),Vt++,e.__lexicalEditor=t;let n=an(e);for(let r=0;r<Gt.length;r++){let[o,i]=Gt[r],l="function"==typeof i?e=>{!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()&&i(e,t))}:e=>{if(!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()))switch(o){case"cut":return Er(t,O,e);case"copy":return Er(t,N,e);case"paste":return Er(t,a,e);case"dragstart":return Er(t,R,e);case"dragover":return Er(t,A,e);case"dragend":return Er(t,T,e);case"focus":return Er(t,L,e);case"blur":return Er(t,M,e);case"drop":return Er(t,k,e)}};e.addEventListener(o,l),n.push((()=>{e.removeEventListener(o,l)}))}}(e,this),null!=i&&e.classList.add(...i)):(this._editorState=n,this._window=this._pendingEditorState=null),Cr("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&I(38),se(this);let n=this._pendingEditorState,r=this._updateTags;t=void 0!==t?t.tag:null,null===n||n.isEmpty()||(null!=t&&r.add(t),_r(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=t&&r.add(t),_r(this)}parseEditorState(e,t){e="string"==typeof e?JSON.parse(e):e;let n=Pr(),r=sr,o=cr,i=ur,a=this._dirtyElements,l=this._dirtyLeaves,s=this._cloneNotNeeded,u=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,sr=n,cr=!1,ur=this;try{yr(e.root,this._nodes),t&&t(),n._readOnly=!0}catch(e){e instanceof Error&&this._onError(e)}finally{this._dirtyElements=a,this._dirtyLeaves=l,this._cloneNotNeeded=s,this._dirtyType=u,sr=r,cr=o,ur=i}return n}update(e,t){kr(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),kr(this,(()=>{let e=tr(),n=Pe();null!==e?e.dirty=!0:0!==n.getChildrenSize()&&("rootStart"===t.defaultSelection?n.selectStart():n.selectEnd())}),{onUpdate:()=>{n.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){var e=this._rootElement;null!==e&&e.blur(),null!==(e=at(this._window))&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Cr("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class jr extends Tr{constructor(e,t){super(t),this.__colSpan=e,this.__rowSpan=1}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan,rowSpan:this.__rowSpan}}getColSpan(){return this.__colSpan}setColSpan(e){return this.getWritable().__colSpan=e,this}getRowSpan(){return this.__rowSpan}setRowSpan(e){return this.getWritable().__rowSpan=e,this}}function Gr(e){return e instanceof jr}class Wr extends Tr{}function Yr(e){return e instanceof Wr}class Kr extends Tr{}function Ur(e){return e instanceof Kr}return Q.$addUpdateTag=function(e){gr(),vr()._updateTags.add(e)},Q.$applyNodeReplacement=nt,Q.$copyNode=tt,Q.$createLineBreakNode=fn,Q.$createNodeSelection=Zn,Q.$createParagraphNode=Br,Q.$createRangeSelection=function(){let e=new Mn("root",0,"element"),t=new Mn("root",0,"element");return new jn(e,t,0,"")},Q.$createTabNode=Ln,Q.$createTextNode=Tn,Q.$getAdjacentNode=Ke,Q.$getNearestNodeFromDOMNode=Oe,Q.$getNearestRootOrShadowRoot=Ze,Q.$getNodeByKey=Te,Q.$getPreviousSelection=nr,Q.$getRoot=Pe,Q.$getSelection=tr,Q.$getTextContent=function(){let e=tr();return null===e?"":e.getTextContent()},Q.$hasAncestor=Je,Q.$hasUpdateTag=function(e){return vr()._updateTags.has(e)},Q.$insertNodes=function(e,t){let n=tr()||nr();return null===n&&(n=Pe().selectEnd()),n.insertNodes(e,t)},Q.$isBlockElementNode=Jn,Q.$isDecoratorNode=Ar,Q.$isElementNode=Nr,Q.$isInlineElementOrDecoratorNode=function(e){return Nr(e)&&e.isInline()||Ar(e)&&e.isInline()},Q.$isLeafNode=Ee,Q.$isLineBreakNode=hn,Q.$isNodeSelection=Gn,Q.$isParagraphNode=function(e){return e instanceof $r},Q.$isRangeSelection=Bn,Q.$isRootNode=Mr,Q.$isRootOrShadowRoot=et,Q.$isTabNode=function(e){return e instanceof On},Q.$isTextNode=Nn,Q.$nodesOfType=function(e){var t=mr();let n=t._readOnly,r=e.getType();t=t._nodeMap;let o=[];for(let[,i]of t)i instanceof e&&i.__type===r&&(n||i.isAttached())&&o.push(i);return o},Q.$normalizeSelection__EXPERIMENTAL=fe,Q.$parseSerializedNode=function(e){return yr(e,vr()._nodes)},Q.$setCompositionKey=Re,Q.$setSelection=Ie,Q.$splitNode=lt,Q.BLUR_COMMAND=M,Q.CAN_REDO_COMMAND={},Q.CAN_UNDO_COMMAND={},Q.CLEAR_EDITOR_COMMAND={},Q.CLEAR_HISTORY_COMMAND={},Q.CLICK_COMMAND=t,Q.COMMAND_PRIORITY_CRITICAL=4,Q.COMMAND_PRIORITY_EDITOR=0,Q.COMMAND_PRIORITY_HIGH=3,Q.COMMAND_PRIORITY_LOW=1,Q.COMMAND_PRIORITY_NORMAL=2,Q.CONTROLLED_TEXT_INSERTION_COMMAND=i,Q.COPY_COMMAND=N,Q.CUT_COMMAND=O,Q.DELETE_CHARACTER_COMMAND=n,Q.DELETE_LINE_COMMAND=u,Q.DELETE_WORD_COMMAND=s,Q.DEPRECATED_$computeGridMap=lr,Q.DEPRECATED_$createGridSelection=function(){let e=new Mn("root",0,"element"),t=new Mn("root",0,"element");return new Fn("root",e,t)},Q.DEPRECATED_$getNodeTriplet=function(e){e instanceof jr||(e instanceof cn?Gr(e=st(e,Gr))||I(114):Gr(e=st(e.getNode(),Gr))||I(114));let t=e.getParent();Ur(t)||I(115);let n=t.getParent();return Yr(n)||I(116),[e,t,n]},Q.DEPRECATED_$isGridCellNode=Gr,Q.DEPRECATED_$isGridNode=Yr,Q.DEPRECATED_$isGridRowNode=Ur,Q.DEPRECATED_$isGridSelection=Hn,Q.DEPRECATED_GridCellNode=jr,Q.DEPRECATED_GridNode=Wr,Q.DEPRECATED_GridRowNode=Kr,Q.DRAGEND_COMMAND=T,Q.DRAGOVER_COMMAND=A,Q.DRAGSTART_COMMAND=R,Q.DROP_COMMAND=k,Q.DecoratorNode=Rr,Q.ElementNode=Tr,Q.FOCUS_COMMAND=L,Q.FORMAT_ELEMENT_COMMAND={},Q.FORMAT_TEXT_COMMAND=c,Q.INDENT_CONTENT_COMMAND={},Q.INSERT_LINE_BREAK_COMMAND=r,Q.INSERT_PARAGRAPH_COMMAND=o,Q.INSERT_TAB_COMMAND={},Q.KEY_ARROW_DOWN_COMMAND=y,Q.KEY_ARROW_LEFT_COMMAND=m,Q.KEY_ARROW_RIGHT_COMMAND=h,Q.KEY_ARROW_UP_COMMAND=b,Q.KEY_BACKSPACE_COMMAND=C,Q.KEY_DELETE_COMMAND=S,Q.KEY_DOWN_COMMAND=f,Q.KEY_ENTER_COMMAND=x,Q.KEY_ESCAPE_COMMAND=E,Q.KEY_MODIFIER_COMMAND=P,Q.KEY_SPACE_COMMAND=_,Q.KEY_TAB_COMMAND=w,Q.LineBreakNode=dn,Q.MOVE_TO_END=g,Q.MOVE_TO_START=v,Q.OUTDENT_CONTENT_COMMAND={},Q.PASTE_COMMAND=a,Q.ParagraphNode=$r,Q.REDO_COMMAND=p,Q.REMOVE_TEXT_COMMAND=l,Q.RootNode=Lr,Q.SELECTION_CHANGE_COMMAND=e,Q.TabNode=On,Q.TextNode=xn,Q.UNDO_COMMAND=d,Q.createCommand=function(){return{}},Q.createEditor=function(e){var t=e||{},n=ur,r=t.theme||{};let o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,a=Pr(),l=t.namespace||(null!==o?o._config.namespace:Be()),s=t.editorState,u=[Lr,xn,dn,On,$r,...t.nodes||[]],c=t.onError;if(t=void 0===t.editable||t.editable,void 0===e&&null!==n)e=n._nodes;else for(e=new Map,n=0;n<u.length;n++){let t=u[n],r=null;var d=null;"function"!=typeof t&&(t=(d=t).replace,r=d.with,d=d.withKlass?d.withKlass:null);let o=t.getType(),i=t.transform(),a=new Set;null!==i&&a.add(i),e.set(o,{klass:t,replace:r,replaceWithKlass:d,transforms:a})}return r=new Hr(a,o,e,{disableEvents:i,namespace:l,theme:r},c||console.error,function(e){let t=new Map,n=new Set;return e.forEach((e=>{if(null!=(e=null!=e.klass.importDOM?e.klass.importDOM.bind(e.klass):null)&&!n.has(e)){n.add(e);var r=e();null!==r&&Object.keys(r).forEach((e=>{let n=t.get(e);void 0===n&&(n=[],t.set(e,n)),n.push(r[e])}))}})),t}(e),t),void 0!==s&&(r._pendingEditorState=s,r._dirtyType=2),r},Q.getNearestEditorFromDOMNode=ye,Q.isSelectionCapturedInDecoratorInput=ve,Q.isSelectionWithinEditor=be,Q}function ee(){if(B)return z;B=1;const e=Z();return z=e}function te(){if(j)return H;j=1;const e=function(){if(F)return J;F=1;var e=ee();let t=new Map;function n(e){for(;null!=e;){if(e.nodeType===Node.TEXT_NODE)return e;e=e.firstChild}return null}function r(e){let t=e.parentNode;if(null==t)throw Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function o(e){let t={};e=e.split(";");for(let n of e)if(""!==n){let[e,r]=n.split(/:([^]+)/);t[e.trim()]=r.trim()}return t}function i(e){let n=t.get(e);return void 0===n&&(n=o(e),t.set(e,n)),n}function a(e,n){var r=i("getStyle"in e?e.getStyle():e.style);n=Object.entries(n).reduce(((e,[t,n])=>(null===n?delete e[t]:e[t]=n,e)),{...r}),r=function(e){let t="";for(let n in e)n&&(t+=`${n}: ${e[n]};`);return t}(n),e.setStyle(r),t.set(r,n)}function l(t){for(;null!==t&&!e.$isRootOrShadowRoot(t);){let e=t.getLatest(),n=t.getParent();0===e.getChildrenSize()&&t.remove(!0),t=n}}function s(t,n,r,o,i=null){if(0!==n.length){var a=n[0],s=new Map,u=[];(a=e.$isElementNode(a)?a:a.getParentOrThrow()).isInline()&&(a=a.getParentOrThrow());for(var c=!1;null!==a;){var d=a.getPreviousSibling();if(null!==d){a=d,c=!0;break}if(a=a.getParentOrThrow(),e.$isRootOrShadowRoot(a))break}d=new Set;for(var p=0;p<r;p++){var f=n[p];e.$isElementNode(f)&&0===f.getChildrenSize()&&d.add(f.getKey())}var h=new Set;for(p=0;p<r;p++){var g=(f=n[p]).getParent();if(null!==g&&g.isInline()&&(g=g.getParent()),null!==g&&e.$isLeafNode(f)&&!h.has(f.getKey())){if(f=g.getKey(),void 0===s.get(f)){let t=o();t.setFormat(g.getFormatType()),t.setIndent(g.getIndent()),u.push(t),s.set(f,t),g.getChildren().forEach((n=>{t.append(n),h.add(n.getKey()),e.$isElementNode(n)&&n.getChildrenKeys().forEach((e=>h.add(e)))})),l(g)}}else d.has(f.getKey())&&((g=o()).setFormat(f.getFormatType()),g.setIndent(f.getIndent()),u.push(g),f.remove(!0))}if(null!==i)for(n=0;n<u.length;n++)i.append(u[n]);if(n=null,e.$isRootOrShadowRoot(a))if(c)if(null!==i)a.insertAfter(i);else for(i=u.length-1;0<=i;i--)a.insertAfter(u[i]);else if(c=a.getFirstChild(),e.$isElementNode(c)&&(a=c),null===c)if(i)a.append(i);else for(i=0;i<u.length;i++)c=u[i],a.append(c),n=c;else if(null!==i)c.insertBefore(i);else for(a=0;a<u.length;a++)i=u[a],c.insertBefore(i),n=i;else if(i)a.insertAfter(i);else for(i=u.length-1;0<=i;i--)c=u[i],a.insertAfter(c),n=c;u=e.$getPreviousSelection(),e.$isRangeSelection(u)&&u.anchor.getNode().isAttached()&&u.focus.getNode().isAttached()?e.$setSelection(u.clone()):null!==n?n.selectEnd():t.dirty=!0}}function u(e,t,n,r){e.modify(t?"extend":"move",n,r)}function c(t){return t=t.anchor.getNode(),"rtl"===(e.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()}return J.$addNodeStyle=function(e){let n=o(e=e.getStyle());t.set(e,n)},J.$cloneWithProperties=function(t){let n=(t=t.getLatest()).constructor.clone(t);return n.__parent=t.__parent,n.__next=t.__next,n.__prev=t.__prev,e.$isElementNode(t)&&e.$isElementNode(n)?(n.__first=t.__first,n.__last=t.__last,n.__size=t.__size,n.__format=t.__format,n.__indent=t.__indent,n.__dir=t.__dir,n):(e.$isTextNode(t)&&e.$isTextNode(n)&&(n.__format=t.__format,n.__style=t.__style,n.__mode=t.__mode,n.__detail=t.__detail),n)},J.$getSelectionStyleValueForProperty=function(t,n,r=""){let o=null,a=t.getNodes();var l=t.anchor,s=t.focus,u=t.isBackward();let c=u?s.offset:l.offset;if(l=u?s.getNode():l.getNode(),""!==t.style&&null!==(t=i(t.style))&&n in t)return t[n];for(t=0;t<a.length;t++){var d=a[t];if((0===t||0!==c||!d.is(l))&&e.$isTextNode(d))if(s=n,u=r,s=null!==(d=i(d=d.getStyle()))&&d[s]||u,null===o)o=s;else if(o!==s){o="";break}}return null===o?r:o},J.$isAtNodeEnd=function(e){return"text"===e.type?e.offset===e.getNode().getTextContentSize():e.offset===e.getNode().getChildrenSize()},J.$isParentElementRTL=c,J.$moveCaretSelection=u,J.$moveCharacter=function(e,t,n){let r=c(e);u(e,t,n?!r:r,"character")},J.$patchStyleText=function(t,n){var r=t.getNodes();let o=r.length-1,i=r[0],l=r[o];if(t.isCollapsed())a(t,n);else{var s=t.anchor,u=t.focus,c=i.getTextContent().length,d=u.offset,p=s.offset,f=s.isBefore(u),h=f?p:d;t=f?d:p;var g=f?s.type:u.type,m=f?u.type:s.type;if(s=f?u.key:s.key,e.$isTextNode(i)&&h===c&&(u=i.getNextSibling(),e.$isTextNode(u)&&(h=p=0,i=u)),1===r.length)e.$isTextNode(i)&&(h="element"===g?0:p>d?d:p)!==(t="element"===m?c:p>d?p:d)&&(0===h&&t===c?(a(i,n),i.select(h,t)):(r=i.splitText(h,t),a(r=0===h?r[0]:r[1],n),r.select(0,t-h)));else for(e.$isTextNode(i)&&h<i.getTextContentSize()&&(0!==h&&(i=i.splitText(h)[1]),a(i,n)),e.$isTextNode(l)&&(h=l.getTextContent().length,l.__key!==s&&0!==t&&(t=h),t!==h&&([l]=l.splitText(t)),0!==t&&a(l,n)),t=1;t<o;t++)c=(h=r[t]).getKey(),e.$isTextNode(h)&&c!==i.getKey()&&c!==l.getKey()&&!h.isToken()&&a(h,n)}},J.$selectAll=function(t){let n=t.anchor;t=t.focus;var r=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();let o=r.getFirstDescendant();r=r.getLastDescendant();let i="element",a="element",l=0;e.$isTextNode(o)?i="text":e.$isElementNode(o)||null===o||(o=o.getParentOrThrow()),e.$isTextNode(r)?(a="text",l=r.getTextContentSize()):e.$isElementNode(r)||null===r||(r=r.getParentOrThrow()),o&&r&&(n.set(o.getKey(),0,i),t.set(r.getKey(),l,a))},J.$setBlocksType=function(t,n){if("root"===t.anchor.key){n=n();var r=e.$getRoot();(t=r.getFirstChild())?t.replace(n,!0):r.append(n)}else for(r=t.getNodes(),t=t.anchor.getNode().getParentOrThrow(),-1===r.indexOf(t)&&r.push(t),t.isInline()&&(t=t.getParentOrThrow(),-1===r.indexOf(t)&&r.push(t)),t=0;t<r.length;t++){let a=r[t];var o=a;if(!e.$isElementNode(o)||e.$isRootOrShadowRoot(o))o=!1;else{var i=o.getFirstChild();i=null===i||e.$isTextNode(i)||i.isInline(),o=!o.isInline()&&!1!==o.canBeEmpty()&&i}o&&((o=n()).setFormat(a.getFormatType()),o.setIndent(a.getIndent()),a.replace(o,!0))}},J.$shouldOverrideDefaultCharacterSelection=function(t,n){return t=e.$getAdjacentNode(t.focus,n),e.$isDecoratorNode(t)&&!t.isIsolated()||e.$isElementNode(t)&&!t.isInline()&&!t.canBeEmpty()},J.$sliceSelectedTextNodeContent=function(t,n){if(n.isSelected()&&!n.isSegmented()&&!n.isToken()&&(e.$isRangeSelection(t)||e.DEPRECATED_$isGridSelection(t))){var r=t.anchor.getNode(),o=t.focus.getNode(),i=n.is(r),a=n.is(o);if(i||a){i=t.isBackward();let e,[l,s]=t.getCharacterOffsets();t=r.is(o),a=n.is(i?o:r),o=n.is(i?r:o),r=0,t?(r=l>s?s:l,e=l>s?l:s):a?(r=i?s:l,e=void 0):o&&(r=0,e=i=i?l:s),n.__text=n.__text.slice(r,e)}}return n},J.$wrapNodes=function(t,n,r=null){var o=t.getNodes();let i=o.length;var a=t.anchor;if(0===i||1===i&&"element"===a.type&&0===a.getNode().getChildrenSize()){o=(t="text"===a.type?a.getNode().getParentOrThrow():a.getNode()).getChildren();let e=n();e.setFormat(t.getFormatType()),e.setIndent(t.getIndent()),o.forEach((t=>e.append(t))),r&&(e=r.append(e)),t.replace(e)}else{a=null;var l=[];for(let u=0;u<i;u++){let i=o[u];e.$isRootOrShadowRoot(i)?(s(t,l,l.length,n,r),l=[],a=i):null===a||null!==a&&e.$hasAncestor(i,a)?l.push(i):(s(t,l,l.length,n,r),l=[i])}s(t,l,l.length,n,r)}},J.createDOMRange=function(t,o,i,a,l){let s=o.getKey(),u=a.getKey(),c=document.createRange(),d=t.getElementByKey(s);if(t=t.getElementByKey(u),e.$isTextNode(o)&&(d=n(d)),e.$isTextNode(a)&&(t=n(t)),void 0===o||void 0===a||null===d||null===t)return null;"BR"===d.nodeName&&([d,i]=r(d)),"BR"===t.nodeName&&([t,l]=r(t)),o=d.firstChild,d===t&&null!=o&&"BR"===o.nodeName&&0===i&&0===l&&(l=1);try{c.setStart(d,i),c.setEnd(t,l)}catch(e){return null}return!c.collapsed||i===l&&s===u||(c.setStart(t,l),c.setEnd(d,i)),c},J.createRectsFromDOMRange=function(e,t){var n=e.getRootElement();if(null===n)return[];e=n.getBoundingClientRect(),n=getComputedStyle(n),n=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);let r,o=(t=Array.from(t.getClientRects())).length;t.sort(((e,t)=>{let n=e.top-t.top;return 3>=Math.abs(n)?e.left-t.left:n}));for(let i=0;i<o;i++){let a=t[i],l=a.width+n===e.width;r&&r.top<=a.top&&r.top+r.height>a.top&&r.left+r.width>a.left||l?(t.splice(i--,1),o--):r=a}return t},J.getStyleObjectFromCSS=i,J.trimTextContentFromAnchor=function(t,n,r){let o=n.getNode();if(e.$isElementNode(o)){var i=o.getDescendantByIndex(n.offset);null!==i&&(o=i)}for(;0<r&&null!==o;){var a=o.getPreviousSibling(),l=0;if(null===a){for(var s=(i=o.getParentOrThrow()).getPreviousSibling();null===s;){if(null===(i=i.getParent())){a=null;break}s=i.getPreviousSibling()}null!==i&&(l=i.isInline()?0:2,a=e.$isElementNode(s)?s.getLastDescendant():s)}if(""===(s=o.getTextContent())&&e.$isElementNode(o)&&!o.isInline()&&(s="\n\n"),i=o.getTextContentSize(),!e.$isTextNode(o)||r>=i)s=o.getParent(),o.remove(),null==s||0!==s.getChildrenSize()||e.$isRootNode(s)||s.remove(),r-=i+l,o=a;else{let u=o.getKey();l=t.getEditorState().read((()=>{const t=e.$getNodeByKey(u);return e.$isTextNode(t)&&t.isSimpleText()?t.getTextContent():null})),a=i-r;let c=s.slice(0,a);null!==l&&l!==s?(r=e.$getPreviousSelection(),i=o,o.isSimpleText()?o.setTextContent(l):(i=e.$createTextNode(l),o.replace(i)),e.$isRangeSelection(r)&&r.isCollapsed()&&(r=r.anchor.offset,i.select(r,r))):o.isSimpleText()?(l=n.key===u,(s=n.offset)<r&&(s=i),r=l?s-r:0,i=l?s:a,l&&0===r?([r]=o.splitText(r,i),r.remove()):([,r]=o.splitText(r,i),r.remove())):(r=e.$createTextNode(c),o.replace(r)),r=0}}},J}();return H=e}function ne(){if(G)return X;G=1;var e=te(),t=ee();function n(e,t){for(let n of t)if(e.type.startsWith(n))return!0;return!1}function r(e,n){for(;e!==t.$getRoot()&&null!=e;){if(n(e))return e;e=e.getParent()}return null}function o(e){return 1===e.nodeType}return X.$splitNode=t.$splitNode,X.$dfs=function(e,n){let r=[];e=(e||t.$getRoot()).getLatest(),n=n||(t.$isElementNode(e)?e.getLastDescendant():e);for(var o=e,i=0;null!==(o=o.getParent());)i++;for(o=i;null!==e&&!e.is(n);)if(r.push({depth:o,node:e}),t.$isElementNode(e)&&0<e.getChildrenSize())e=e.getFirstChild(),o++;else for(i=null;null===i&&null!==e;)null===(i=e.getNextSibling())?(e=e.getParent(),o--):e=i;return null!==e&&e.is(n)&&r.push({depth:o,node:e}),r},X.$findMatchingParent=r,X.$getNearestBlockElementAncestorOrThrow=function(e){let n=r(e,(e=>t.$isElementNode(e)&&!e.isInline()));return t.$isElementNode(n)||function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(4,e.__key),n},X.$getNearestNodeOfType=function(e,t){for(;null!=e;){if(e instanceof t)return e;e=e.getParent()}return null},X.$insertNodeToNearestRoot=function(e){var n=t.$getSelection()||t.$getPreviousSelection();if(t.$isRangeSelection(n)){var{focus:r}=n;if(n=r.getNode(),r=r.offset,t.$isRootOrShadowRoot(n))null==(r=n.getChildAtIndex(r))?n.append(e):r.insertBefore(e),e.selectNext();else{let o,i;t.$isTextNode(n)?(o=n.getParentOrThrow(),i=n.getIndexWithinParent(),0<r&&(i+=1,n.splitText(r))):(o=n,i=r),[,n]=t.$splitNode(o,i),n.insertBefore(e),n.selectStart()}}else t.$isNodeSelection(n)||t.DEPRECATED_$isGridSelection(n)?(n=n.getNodes())[n.length-1].getTopLevelElementOrThrow().insertAfter(e):t.$getRoot().append(e),n=t.$createParagraphNode(),e.insertAfter(n),n.select();return e.getLatest()},X.$restoreEditorState=function(n,r){let o=new Map,i=n._pendingEditorState;for(let[n,i]of r._nodeMap){let r=e.$cloneWithProperties(i);t.$isTextNode(r)&&(r.__text=i.__text),o.set(n,r)}i&&(i._nodeMap=o),n._dirtyType=2,n=r._selection,t.$setSelection(null===n?null:n.clone())},X.$wrapNodeInElement=function(e,t){return t=t(),e.replace(t),t.append(e),t},X.addClassNamesToElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&(t=t.split(" ").filter((e=>""!==e)),e.classList.add(...t))}))},X.isHTMLAnchorElement=function(e){return o(e)&&"A"===e.tagName},X.isHTMLElement=o,X.isMimeType=n,X.mediaFileReader=function(e,t){let r=e[Symbol.iterator]();return new Promise(((e,o)=>{let i=[],a=()=>{const{done:l,value:s}=r.next();if(l)return e(i);const u=new FileReader;u.addEventListener("error",o),u.addEventListener("load",(()=>{const e=u.result;"string"==typeof e&&i.push({file:s,result:e}),a()})),n(s,t)?u.readAsDataURL(s):a()};a()}))},X.mergeRegister=function(...e){return()=>{e.forEach((e=>e()))}},X.objectKlassEquals=function(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name},X.registerNestedElementResolver=function(e,t,n,r){return e.registerNodeTransform(t,(e=>{e:{for(var o=e.getChildren(),i=0;i<o.length;i++)if(o[i]instanceof t){o=null;break e}for(o=e;null!==o;)if(i=o,(o=o.getParent())instanceof t){o={child:i,parent:o};break e}o=null}if(null!==o){const{child:t,parent:a}=o;if(t.is(e)){if(r(a,e),o=(e=t.getNextSiblings()).length,a.insertAfter(t),0!==o){i=n(a),t.insertAfter(i);for(let t=0;t<o;t++)i.append(e[t])}a.canBeEmpty()||0!==a.getChildrenSize()||a.remove()}}}))},X.removeClassNamesFromElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&e.classList.remove(...t.split(" "))}))},X}function re(){if(Y)return W;Y=1;const e=ne();return W=e}function oe(){if(V)return U;V=1;const e=function(){if(K)return q;K=1;var e=re(),t=ee();let n=new Set(["http:","https:","mailto:","sms:","tel:"]);class r extends t.ElementNode{static getType(){return"link"}static clone(e){return new r(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,t={},n){super(n);let{target:r=null,rel:o=null,title:i=null}=t;this.__url=e,this.__target=r,this.__rel=o,this.__title=i}createDOM(t){let n=document.createElement("a");return n.href=this.sanitizeUrl(this.__url),null!==this.__target&&(n.target=this.__target),null!==this.__rel&&(n.rel=this.__rel),null!==this.__title&&(n.title=this.__title),e.addClassNamesToElement(n,t.theme.link),n}updateDOM(e,t){let n=this.__url,r=this.__target,o=this.__rel,i=this.__title;return n!==e.__url&&(t.href=n),r!==e.__target&&(r?t.target=r:t.removeAttribute("target")),o!==e.__rel&&(o?t.rel=o:t.removeAttribute("rel")),i!==e.__title&&(i?t.title=i:t.removeAttribute("title")),!1}static importDOM(){return{a:()=>({conversion:o,priority:1})}}static importJSON(e){let t=i(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}sanitizeUrl(e){try{let t=new URL(e);if(!n.has(t.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,n=!0){return e=this.getParentOrThrow().insertNewAfter(e,n),t.$isElementNode(e)?(n=i(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),e.append(n),n):null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n){if(!t.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&0<n.getTextContent().length}}function o(t){let n=null;if(e.isHTMLAnchorElement(t)){let e=t.textContent;null!==e&&""!==e&&(n=i(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:n}}function i(e,n){return t.$applyNodeReplacement(new r(e,n))}function a(e){return e instanceof r}class l extends r{static getType(){return"autolink"}static clone(e){return new l(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}static importJSON(e){let t=s(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(e,n=!0){return e=this.getParentOrThrow().insertNewAfter(e,n),t.$isElementNode(e)?(n=s(this.__url,{rel:this._rel,target:this.__target,title:this.__title}),e.append(n),n):null}}function s(e,n){return t.$applyNodeReplacement(new l(e,n))}let u=t.createCommand("TOGGLE_LINK_COMMAND");return q.$createAutoLinkNode=s,q.$createLinkNode=i,q.$isAutoLinkNode=function(e){return e instanceof l},q.$isLinkNode=a,q.AutoLinkNode=l,q.LinkNode=r,q.TOGGLE_LINK_COMMAND=u,q.toggleLink=function(e,n={}){let{target:r,title:o}=n,l=void 0===n.rel?"noreferrer":n.rel;if(n=t.$getSelection(),t.$isRangeSelection(n))if(n=n.extract(),null===e)n.forEach((e=>{if(a(e=e.getParent())){let t=e.getChildren();for(let n=0;n<t.length;n++)e.insertBefore(t[n]);e.remove()}}));else{if(1===n.length){var s=n[0];if(s=a(s)?s:function(e,t){for(;null!==e&&null!==(e=e.getParent())&&!t(e););return e}(s,a),null!==s)return s.setURL(e),void 0!==r&&s.setTarget(r),null!==l&&s.setRel(l),void(void 0!==o&&s.setTitle(o))}let u=null,c=null;n.forEach((n=>{var s=n.getParent();if(s!==c&&null!==s&&(!t.$isElementNode(n)||n.isInline()))if(a(s))c=s,s.setURL(e),void 0!==r&&s.setTarget(r),null!==l&&c.setRel(l),void 0!==o&&c.setTitle(o);else if(s.is(u)||(u=s,c=i(e,{rel:l,target:r}),a(s)?null===n.getPreviousSibling()?s.insertBefore(c):s.insertAfter(c):n.insertBefore(c)),a(n)){if(!n.is(c)){if(null!==c){s=n.getChildren();for(let e=0;e<s.length;e++)c.append(s[e])}n.remove()}}else null!==c&&c.append(n)}))}},q}();return U=e}var ie,ae,le,se=oe(),ue={};function ce(){if(ie)return ue;ie=1;var e=ee(),t=re();function n(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function r(e){let t=1;for(e=e.getParent();null!=e;){if(y(e)){if(k(e=e.getParent())){t++,e=e.getParent();continue}n(40)}break}return t}function o(e){k(e=e.getParent())||n(40);let t=e;for(;null!==t;)t=t.getParent(),k(t)&&(e=t);return e}function i(e){let t=[];e=e.getChildren().filter(y);for(let n=0;n<e.length;n++){let r=e[n],o=r.getFirstChild();k(o)?t=t.concat(i(o)):t.push(r)}return t}function a(e){return y(e)&&k(e.getFirstChild())}function l(e){return b().append(e)}function s(e,t){return y(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function u(e,t){e.splice(e.getChildrenSize(),0,t)}function c(e,t){if(k(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),o=b();return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),u(o,e.getChildren()),k(n)&&t===n.getListType()?(n.append(o),e.remove(),k(r)&&t===r.getListType()&&(u(n,r.getChildren()),r.remove()),n):k(r)&&t===r.getListType()?(r.getFirstChildOrThrow().insertBefore(o),e.remove(),r):((t=w(t)).append(o),e.replace(t),p(t),t)}function d(e,t){var n=e.getLastChild();let r=t.getFirstChild();n&&r&&a(n)&&a(r)&&(d(n.getFirstChild(),r.getFirstChild()),r.remove()),0<(n=t.getChildren()).length&&(e.append(...n),p(e)),t.remove()}function p(e,t){if(void 0!==(e=t||e.getChildren()))for(t=0;t<e.length;t++){let a=e[t];if(y(a)){let e=a.getValue();var r=a,o=r.getParent(),i=1;for(null!=o&&(k(o)?i=o.getStart():n(44)),r=r.getPreviousSiblings(),o=0;o<r.length;o++){let e=r[o];y(e)&&!k(e.getFirstChild())&&i++}e!==i&&a.setValue(i)}}}function f(e){if(!a(e)){var t=e.getParent(),n=t?t.getParent():void 0,r=n?n.getParent():void 0;if(k(r)&&y(n)&&k(t)){var o=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(o))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{var l=t.getListType();o=b();let r=w(l);o.append(r),e.getPreviousSiblings().forEach((e=>r.append(e))),i=b(),l=w(l),i.append(l),u(l,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(i),n.replace(e)}p(t),p(r)}}}class h extends e.ElementNode{static getType(){return"listitem"}static clone(e){return new h(e.__value,e.__checked,e.__key)}constructor(e,t,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}createDOM(e){let t=document.createElement("li"),n=this.getParent();return k(n)&&"check"===n.getListType()&&m(t,this,null),t.value=this.__value,g(t,e.theme,this),t}updateDOM(e,t,n){let r=this.getParent();return k(r)&&"check"===r.getListType()&&m(t,this,e),t.value=this.__value,g(t,n.theme,this),!1}static transform(){return e=>{let t=e.getParent();k(t)&&(p(t),"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0))}}static importDOM(){return{li:()=>({conversion:v,priority:0})}}static importJSON(e){let t=b();return t.setChecked(e.checked),t.setValue(e.value),t.setFormat(e.format),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...t){for(let n=0;n<t.length;n++){let r=t[n];if(e.$isElementNode(r)&&this.canMergeWith(r)){let e=r.getChildren();this.append(...e),r.remove()}else super.append(r)}return this}replace(e,t){if(y(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!k(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=w(n.getListType()),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&this.getChildren().forEach((t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){var r=this.getParentOrThrow();k(r)||n(39);var o=this.getNextSiblings();if(y(e))return t=super.insertAfter(e,t),k(e=e.getParentOrThrow())&&p(e),t;if(k(e)){for(r=e,o=(e=e.getChildren()).length-1;0<=o;o--)r=e[o],this.insertAfter(r,t);return r}if(r.insertAfter(e,t),0!==o.length){let n=w(r.getListType());o.forEach((e=>n.append(e))),e.insertAfter(n,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&a(t)&&a(n)?(d(t.getFirstChild(),n.getFirstChild()),n.remove()):n&&(k(e=n.getParent())&&p(e))}insertNewAfter(e,t=!0){return e=b(null==this.__checked&&void 0),this.insertAfter(e,t),e}collapseAtStart(t){let n=e.$createParagraphNode();this.getChildren().forEach((e=>n.append(e)));var r=this.getParentOrThrow(),o=r.getParentOrThrow();let i=y(o);return 1===r.getChildrenSize()?i?(r.remove(),o.select()):(r.insertBefore(n),r.remove(),r=t.anchor,t=t.focus,o=n.getKey(),"element"===r.type&&r.getNode().is(this)&&r.set(o,r.offset,"element"),"element"===t.type&&t.getNode().is(this)&&t.set(o,t.offset,"element")):(r.insertBefore(n),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var e=this.getParent();if(null===e)return this.getLatest().__indent;e=e.getParentOrThrow();let t=0;for(;y(e);)e=e.getParentOrThrow().getParentOrThrow(),t++;return t}setIndent(e){"number"==typeof e&&-1<e||n(117);let t=this.getIndent();for(;t!==e;)if(t<e){e:{var r=new Set;if(a(this)||r.has(this.getKey()))break e;let e=this.getParent();var o=this.getNextSibling(),i=this.getPreviousSibling();if(a(o)&&a(i)){if(k(i=i.getFirstChild())){i.append(this);var l=o.getFirstChild();k(l)&&(u(i,l=l.getChildren()),o.remove(),r.add(o.getKey())),p(i)}}else a(o)?k(o=o.getFirstChild())&&(null!==(r=o.getFirstChild())&&r.insertBefore(this),p(o)):a(i)?k(o=i.getFirstChild())&&(o.append(this),p(o)):k(e)&&(r=b(),l=w(e.getListType()),r.append(l),l.append(this),i?i.insertAfter(r):o?o.insertBefore(r):e.append(r),p(l));k(e)&&p(e)}t++}else f(this),t--;return this}insertBefore(e){if(y(e)){let e=this.getParentOrThrow();if(k(e)){p(e,this.getNextSiblings())}}return super.insertBefore(e)}canInsertAfter(e){return y(e)}canReplaceWith(e){return y(e)}canMergeWith(t){return e.$isParagraphNode(t)||y(t)}extractWithChild(t,n){if(!e.$isRangeSelection(n))return!1;t=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(t)&&this.isParentOf(r)&&this.getTextContent().length===n.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return w("bullet")}}function g(e,n,r){let o=[],i=[];var a=(n=n.list)?n.listitem:void 0;if(n&&n.nested)var l=n.nested.listitem;if(void 0!==a&&(a=a.split(" "),o.push(...a)),n){a=k(a=r.getParent())&&"check"===a.getListType();let e=r.getChecked();a&&!e||i.push(n.listitemUnchecked),a&&e||i.push(n.listitemChecked),a&&o.push(e?n.listitemChecked:n.listitemUnchecked)}void 0!==l&&(l=l.split(" "),r.getChildren().some((e=>k(e)))?o.push(...l):i.push(...l)),0<i.length&&t.removeClassNamesFromElement(e,...i),0<o.length&&t.addClassNamesToElement(e,...o)}function m(e,t,n){k(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"))}function v(e){return{node:b(e=t.isHTMLElement(e)&&"true"===e.getAttribute("aria-checked"))}}function b(t){return e.$applyNodeReplacement(new h(void 0,t))}function y(e){return e instanceof h}class x extends e.ElementNode{static getType(){return"list"}static clone(e){return new x(e.__listType||S[e.__tag],e.__start,e.__key)}constructor(e,t,n){super(n),this.__listType=e=S[e]||e,this.__tag="number"===e?"ol":"ul",this.__start=t}getTag(){return this.__tag}setListType(e){let t=this.getWritable();t.__listType=e,t.__tag="number"===e?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e){let t=document.createElement(this.__tag);return 1!==this.__start&&t.setAttribute("start",String(this.__start)),t.__lexicalListType=this.__listType,_(t,e.theme,this),t}updateDOM(e,t,n){return e.__tag!==this.__tag||(_(t,n.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:E,priority:0}),ul:()=>({conversion:E,priority:0})}}static importJSON(e){let t=w(e.listType,e.start);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportDOM(e){return({element:e}=super.exportDOM(e)),e&&(1!==this.__start&&e.setAttribute("start",String(this.__start)),"check"===this.__listType&&e.setAttribute("__lexicalListType","check")),{element:e}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...t){for(let r=0;r<t.length;r++){var n=t[r];if(y(n))super.append(n);else{let t=b();k(n)?t.append(n):e.$isElementNode(n)?(n=e.$createTextNode(n.getTextContent()),t.append(n)):t.append(n),super.append(t)}}return p(this),this}extractWithChild(e){return y(e)}}function _(e,n,o){let i=[],a=[];var l=n.list;if(void 0!==l){let e=l[`${o.__tag}Depth`]||[],t=(n=r(o)-1)%e.length;var s=e[t];let u,c=l[o.__tag];if(void 0!==(l=l.nested)&&l.list&&(u=l.list),void 0!==c&&i.push(c),void 0!==s)for(s=s.split(" "),i.push(...s),s=0;s<e.length;s++)s!==t&&a.push(o.__tag+s);void 0!==u&&(o=u.split(" "),1<n?i.push(...o):a.push(...o))}0<a.length&&t.removeClassNamesFromElement(e,...a),0<i.length&&t.addClassNamesToElement(e,...i)}function C(e){let t=[];for(let r=0;r<e.length;r++){var n=e[r];y(n)?(t.push(n),1<(n=n.getChildren()).length&&n.forEach((e=>{k(e)&&t.push(l(e))}))):t.push(l(n))}return t}function E(e){let n=e.nodeName.toLowerCase(),r=null;return"ol"===n?r=w("number",e.start):"ul"===n&&(r=t.isHTMLElement(e)&&"check"===e.getAttribute("__lexicallisttype")?w("check"):w("bullet")),{after:C,node:r}}let S={ol:"number",ul:"bullet"};function w(t,n=1){return e.$applyNodeReplacement(new x(t,n))}function k(e){return e instanceof x}let R=e.createCommand("INSERT_UNORDERED_LIST_COMMAND"),A=e.createCommand("INSERT_ORDERED_LIST_COMMAND"),T=e.createCommand("INSERT_CHECK_LIST_COMMAND"),N=e.createCommand("REMOVE_LIST_COMMAND");return ue.$createListItemNode=b,ue.$createListNode=w,ue.$getListDepth=r,ue.$handleListInsertParagraph=function(){var t=e.$getSelection();if(!e.$isRangeSelection(t)||!t.isCollapsed())return!1;if(!y(t=t.anchor.getNode())||""!==t.getTextContent())return!1;var r=o(t),i=t.getParent();k(i)||n(40);let a,l=i.getParent();if(e.$isRootOrShadowRoot(l))a=e.$createParagraphNode(),r.insertAfter(a);else{if(!y(l))return!1;a=b(),l.insertAfter(a)}if(a.select(),0<(r=t.getNextSiblings()).length){let t=w(i.getListType());e.$isParagraphNode(a)?a.insertAfter(t):((i=b()).append(t),a.insertAfter(i)),r.forEach((e=>{e.remove(),t.append(e)}))}return function(e){for(;null==e.getNextSibling()&&null==e.getPreviousSibling();){let t=e.getParent();if(null==t||!y(e)&&!k(e))break;e=t}e.remove()}(t),!0},ue.$isListItemNode=y,ue.$isListNode=k,ue.INSERT_CHECK_LIST_COMMAND=T,ue.INSERT_ORDERED_LIST_COMMAND=A,ue.INSERT_UNORDERED_LIST_COMMAND=R,ue.ListItemNode=h,ue.ListNode=x,ue.REMOVE_LIST_COMMAND=N,ue.insertList=function(t,n){t.update((()=>{var t=e.$getSelection();if(e.$isRangeSelection(t)||e.DEPRECATED_$isGridSelection(t)){var r=t.getNodes(),o=(t=t.anchor.getNode()).getParent();if(s(t,r))r=w(n),e.$isRootOrShadowRoot(o)?(t.replace(r),o=b(),e.$isElementNode(t)&&(o.setFormat(t.getFormatType()),o.setIndent(t.getIndent())),r.append(o)):y(t)&&(u(r,(t=t.getParentOrThrow()).getChildren()),t.replace(r));else for(t=new Set,o=0;o<r.length;o++){var i=r[o];if(e.$isElementNode(i)&&i.isEmpty()&&!t.has(i.getKey()))c(i,n);else if(e.$isLeafNode(i))for(i=i.getParent();null!=i;){let r=i.getKey();if(k(i)){if(!t.has(r)){var a=w(n);u(a,i.getChildren()),i.replace(a),p(a),t.add(r)}break}if(a=i.getParent(),e.$isRootOrShadowRoot(a)&&!t.has(r)){t.add(r),c(i,n);break}i=a}}}}))},ue.removeList=function(n){n.update((()=>{let n=e.$getSelection();if(e.$isRangeSelection(n)){var r=new Set,a=n.getNodes(),l=n.anchor.getNode();if(s(l,a))r.add(o(l));else for(l=0;l<a.length;l++){var c=a[l];e.$isLeafNode(c)&&(null!=(c=t.$getNearestNodeOfType(c,h))&&r.add(o(c)))}for(let t of r){r=t,a=i(t);for(let t of a)u(a=e.$createParagraphNode(),t.getChildren()),r.insertAfter(a),r=a,t.__key===n.anchor.key&&n.anchor.set(a.getKey(),0,"element"),t.__key===n.focus.key&&n.focus.set(a.getKey(),0,"element"),t.remove();t.remove()}}}))},ue}function de(){if(le)return ae;le=1;const e=ce();return ae=e}var pe,fe,he,ge,me,ve,be=de(),ye={},xe={};function _e(){if(pe)return xe;pe=1;var e=m;let t=e.createContext(null);return xe.LexicalComposerContext=t,xe.createLexicalComposerContext=function(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}},xe.useLexicalComposerContext=function(){let n=e.useContext(t);return null==n&&function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),n},xe}function Ce(){if(he)return fe;he=1;const e=_e();return fe=e}function Ee(){if(ge)return ye;ge=1;var e=Ce(),t=ee(),n=m;let r="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;var o=r?n.useLayoutEffect:n.useEffect;let i={tag:"history-merge"};return ye.LexicalComposer=function({initialConfig:a,children:l}){let s=n.useMemo((()=>{const{theme:n,namespace:o,editor__DEPRECATED:l,nodes:s,onError:u,editorState:c}=a,d=e.createLexicalComposerContext(null,n);let p=l||null;if(null===p){const e=t.createEditor({editable:a.editable,namespace:o,nodes:s,onError:t=>u(t,e),theme:n});!function(e,n){if(null!==n)if(void 0===n)e.update((()=>{var n=t.$getRoot();if(n.isEmpty()){let o=t.$createParagraphNode();n.append(o),n=r?document.activeElement:null,(null!==t.$getSelection()||null!==n&&n===e.getRootElement())&&o.select()}}),i);else if(null!==n)switch(typeof n){case"string":let r=e.parseEditorState(n);e.setEditorState(r,i);break;case"object":e.setEditorState(n,i);break;case"function":e.update((()=>{t.$getRoot().isEmpty()&&n(e)}),i)}}(e,c),p=e}return[p,d]}),[]);return o((()=>{let e=a.editable,[t]=s;t.setEditable(void 0===e||e)}),[]),n.createElement(e.LexicalComposerContext.Provider,{value:s},l)},ye}var Se,we,ke,Re,Ae,Te,Ne=function(){if(ve)return me;ve=1;const e=Ee();return me=e}(),Oe={},Le={};function Me(){if(Se)return Le;Se=1;var e=re(),t=ee();function n(e,n){let r=Date.now(),o=0;return(i,a,l,s,u,c)=>{let d=Date.now();if(c.has("historic"))return o=0,r=d,2;let p=function(e,n,r,o,i){if(null===e||0===r.size&&0===o.size&&!i)return 0;var a=n._selection,l=e._selection;if(i)return 1;if(!(t.$isRangeSelection(a)&&t.$isRangeSelection(l)&&l.isCollapsed()&&a.isCollapsed()))return 0;i=n._nodeMap;let s=[];for(let e of r)void 0!==(r=i.get(e))&&s.push(r);for(let[e,n]of o)n&&(void 0===(o=i.get(e))||t.$isRootNode(o)||s.push(o));return 0===s.length?0:1<s.length?(n=(o=n._nodeMap).get(a.anchor.key),l=o.get(l.anchor.key),n&&l&&!e._nodeMap.has(n.__key)&&t.$isTextNode(n)&&1===n.__text.length&&1===a.anchor.offset?2:0):(n=s[0],e=e._nodeMap.get(n.__key),t.$isTextNode(e)&&t.$isTextNode(n)&&e.__mode===n.__mode?(e=e.__text)===(n=n.__text)?0:(a=a.anchor,l=l.anchor,a.key!==l.key||"text"!==a.type?0:(a=a.offset,l=l.offset,1==(e=n.length-e.length)&&l===a-1?2:-1===e&&l===a+1?3:-1===e&&l===a?4:0)):0)}(i,a,s,u,e.isComposing()),f=(()=>{var f=null===l||l.editor===e,h=c.has("history-push");if(!h&&f&&c.has("history-merge"))return 0;if(null===i)return 1;var g=a._selection;if(!(0<s.size||0<u.size))return null!==g?0:2;if(!1===h&&0!==p&&p===o&&d<r+n&&f)return 0;if(1===s.size){{h=Array.from(s)[0],f=i._nodeMap.get(h),h=a._nodeMap.get(h),g=i._selection;let e=a._selection,n=!1;t.$isRangeSelection(g)&&t.$isRangeSelection(e)&&(n="element"===g.anchor.type&&"element"===g.focus.type&&"text"===e.anchor.type&&"text"===e.focus.type),f=!(n||!t.$isTextNode(f)||!t.$isTextNode(h))&&(f.__type===h.__type&&f.__text===h.__text&&f.__mode===h.__mode&&f.__detail===h.__detail&&f.__style===h.__style&&f.__format===h.__format&&f.__parent===h.__parent)}if(f)return 0}return 1})();return r=d,o=p,f}}return Le.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},Le.registerHistory=function(r,o,i){let a=n(r,i);i=({editorState:e,prevEditorState:n,dirtyLeaves:i,dirtyElements:l,tags:s})=>{const u=o.current,c=o.redoStack,d=o.undoStack,p=null===u?null:u.editorState;if(null===u||e!==p){if(1===(n=a(n,e,u,i,l,s)))0!==c.length&&(o.redoStack=[],r.dispatchCommand(t.CAN_REDO_COMMAND,!1)),null!==u&&(d.push({...u}),r.dispatchCommand(t.CAN_UNDO_COMMAND,!0));else if(2===n)return;o.current={editor:r,editorState:e}}};let l=e.mergeRegister(r.registerCommand(t.UNDO_COMMAND,(()=>{let e=o.redoStack,n=o.undoStack;if(0!==n.length){let i=o.current,a=n.pop();null!==i&&(e.push(i),r.dispatchCommand(t.CAN_REDO_COMMAND,!0)),0===n.length&&r.dispatchCommand(t.CAN_UNDO_COMMAND,!1),o.current=a||null,a&&a.editor.setEditorState(a.editorState,{tag:"historic"})}return!0}),t.COMMAND_PRIORITY_EDITOR),r.registerCommand(t.REDO_COMMAND,(()=>{let e=o.redoStack;var n=o.undoStack;if(0!==e.length){let i=o.current;null!==i&&(n.push(i),r.dispatchCommand(t.CAN_UNDO_COMMAND,!0)),n=e.pop(),0===e.length&&r.dispatchCommand(t.CAN_REDO_COMMAND,!1),o.current=n||null,n&&n.editor.setEditorState(n.editorState,{tag:"historic"})}return!0}),t.COMMAND_PRIORITY_EDITOR),r.registerCommand(t.CLEAR_EDITOR_COMMAND,(()=>(o.undoStack=[],o.redoStack=[],o.current=null,!1)),t.COMMAND_PRIORITY_EDITOR),r.registerCommand(t.CLEAR_HISTORY_COMMAND,(()=>(o.undoStack=[],o.redoStack=[],o.current=null,r.dispatchCommand(t.CAN_REDO_COMMAND,!1),r.dispatchCommand(t.CAN_UNDO_COMMAND,!1),!0)),t.COMMAND_PRIORITY_EDITOR),r.registerUpdateListener(i)),s=r.registerUpdateListener(i);return()=>{l(),s()}},Le}function Pe(){if(Re)return Oe;Re=1;var e=Ce(),t=function(){if(ke)return we;ke=1;const e=Me();return we=e}(),n=m;return Oe.createEmptyHistoryState=t.createEmptyHistoryState,Oe.HistoryPlugin=function({externalHistoryState:r}){let[o]=e.useLexicalComposerContext();return function(e,r,o=1e3){let i=n.useMemo((()=>r||t.createEmptyHistoryState()),[r]);n.useEffect((()=>t.registerHistory(e,i,o)),[o,e,i])}(o,r),null},Oe}var Ie,De,$e,ze=function(){if(Te)return Ae;Te=1;const e=Pe();return Ae=e}(),Be={};function Fe(){if(Ie)return Be;Ie=1;var e=de(),t=Ce(),n=m,r=re(),o=ee();return Be.ListPlugin=function(){let[i]=t.useLexicalComposerContext();return n.useEffect((()=>{if(!i.hasNodes([e.ListNode,e.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")}),[i]),function(t){n.useEffect((()=>r.mergeRegister(t.registerCommand(e.INSERT_ORDERED_LIST_COMMAND,(()=>(e.insertList(t,"number"),!0)),o.COMMAND_PRIORITY_LOW),t.registerCommand(e.INSERT_UNORDERED_LIST_COMMAND,(()=>(e.insertList(t,"bullet"),!0)),o.COMMAND_PRIORITY_LOW),t.registerCommand(e.REMOVE_LIST_COMMAND,(()=>(e.removeList(t),!0)),o.COMMAND_PRIORITY_LOW),t.registerCommand(o.INSERT_PARAGRAPH_COMMAND,(()=>!!e.$handleListInsertParagraph()),o.COMMAND_PRIORITY_LOW))),[t])}(i),null},Be}var He,je,Ge,We=function(){if($e)return De;$e=1;const e=Fe();return De=e}(),Ye={};function Ke(){if(He)return Ye;He=1;var e=Ce(),t=re(),n=ee(),r=m;function o(e){return e.registerCommand(n.KEY_TAB_COMMAND,(r=>{let o=n.$getSelection();return!!n.$isRangeSelection(o)&&(r.preventDefault(),r=function(e){var r=e.getNodes();if(0<function(e,t){let n=[];for(let r=0;r<e.length;r++){let o=t(e[r]);null!==o&&n.push(o)}return n}(r,(e=>n.$isBlockElementNode(e)&&e.canIndent()?e:null)).length)return!0;if(r=e.anchor,r=(e=(e=e.focus).isBefore(r)?e:r).getNode(),(r=t.$getNearestBlockElementAncestorOrThrow(r)).canIndent()){r=r.getKey();let t=n.$createRangeSelection();if(t.anchor.set(r,0,"element"),t.focus.set(r,0,"element"),t=n.$normalizeSelection__EXPERIMENTAL(t),t.anchor.is(e))return!0}return!1}(o)?r.shiftKey?n.OUTDENT_CONTENT_COMMAND:n.INDENT_CONTENT_COMMAND:n.INSERT_TAB_COMMAND,e.dispatchCommand(r,void 0))}),n.COMMAND_PRIORITY_EDITOR)}return Ye.TabIndentationPlugin=function(){let[t]=e.useLexicalComposerContext();return r.useEffect((()=>o(t))),null},Ye.registerTabIndentation=o,Ye}var Ue,Ve,qe,Xe,Je,Qe,Ze,et,tt,nt=function(){if(Ge)return je;Ge=1;const e=Ke();return je=e}(),rt={},ot={},it={};function at(){if(qe)return Ve;qe=1;const e=function(){if(Ue)return it;Ue=1;var e=te(),t=ee();function n(r,o,i,a=null){let l=null==a||o.isSelected(a),s=t.$isElementNode(o)&&o.excludeFromCopy("html");var u=o;null!==a&&(u=e.$cloneWithProperties(o),u=t.$isTextNode(u)&&null!=a?e.$sliceSelectedTextNodeContent(a,u):u);let c=t.$isElementNode(u)?u.getChildren():[],{element:d,after:p}=u.exportDOM(r);if(!d)return!1;let f=document.createDocumentFragment();for(let e=0;e<c.length;e++){let i=c[e],s=n(r,i,f,a);!l&&t.$isElementNode(o)&&s&&o.extractWithChild(i,a,"html")&&(l=!0)}return l&&!s?(d.append(f),i.append(d),p&&(r=p.call(u,d))&&d.replaceWith(r)):i.append(f),l}let r=new Set(["STYLE","SCRIPT"]);function o(e,n,i=new Map,a){let l=[];if(r.has(e.nodeName))return l;let s=null;var u,{nodeName:c}=e,d=n._htmlConversions.get(c.toLowerCase());if(c=null,void 0!==d)for(u of d)null!==(d=u(e))&&(null===c||c.priority<d.priority)&&(c=d);if(c=(u=null!==c?c.conversion:null)?u(e):null,u=null,null!==c){if(u=c.after,d=c.node,s=Array.isArray(d)?d[d.length-1]:d,null!==s){for(var[,p]of i)if(s=p(s,a),!s)break;s&&l.push(...Array.isArray(d)?d:[s])}null!=c.forChild&&i.set(e.nodeName,c.forChild)}for(e=e.childNodes,a=[],p=0;p<e.length;p++)a.push(...o(e[p],n,new Map(i),s));return null!=u&&(a=u(a)),null==s?l=l.concat(a):t.$isElementNode(s)&&s.append(...a),l}return it.$generateHtmlFromNodes=function(e,r){if("undefined"==typeof document||"undefined"==typeof window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let o=document.createElement("div"),i=t.$getRoot().getChildren();for(let t=0;t<i.length;t++)n(e,i[t],o,r);return o.innerHTML},it.$generateNodesFromDOM=function(e,t){t=t.body?t.body.childNodes:[];let n=[];for(let a=0;a<t.length;a++){var i=t[a];r.has(i.nodeName)||null!==(i=o(i,e))&&(n=n.concat(i))}return n},it}();return Ve=e}function lt(){if(Xe)return ot;Xe=1;var e=at(),t=te(),n=re(),r=ee();function o(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(t){let n=r.$getSelection();if(null==n)throw Error("Expected valid LexicalSelection");return r.$isRangeSelection(n)&&n.isCollapsed()||0===n.getNodes().length?"":e.$generateHtmlFromNodes(t,n)}function l(e){let t=r.$getSelection();if(null==t)throw Error("Expected valid LexicalSelection");return r.$isRangeSelection(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(c(e,t))}function s(e,t,i){(r.DEPRECATED_$isGridSelection(i)||null!==n.$findMatchingParent(i.anchor.getNode(),(e=>r.DEPRECATED_$isGridCellNode(e)))&&null!==n.$findMatchingParent(i.focus.getNode(),(e=>r.DEPRECATED_$isGridCellNode(e))))&&1===t.length&&r.DEPRECATED_$isGridNode(t[0])?function(e,t,i,a){1===e.length&&r.DEPRECATED_$isGridNode(e[0])||o(42);var l=e[0];e=l.getChildren(),i=l.getFirstChildOrThrow().getChildrenSize();var s=l.getChildrenSize(),u=n.$findMatchingParent(t.anchor.getNode(),(e=>r.DEPRECATED_$isGridCellNode(e)));t=(l=u&&n.$findMatchingParent(u,(e=>r.DEPRECATED_$isGridRowNode(e))))&&n.$findMatchingParent(l,(e=>r.DEPRECATED_$isGridNode(e))),r.DEPRECATED_$isGridCellNode(u)&&r.DEPRECATED_$isGridRowNode(l)&&r.DEPRECATED_$isGridNode(t)||o(43);var c=l.getIndexWithinParent(),d=Math.min(t.getChildrenSize()-1,c+s-1);let p,f;s=u.getIndexWithinParent(),u=Math.min(l.getChildrenSize()-1,s+i-1),i=Math.min(s,u),l=Math.min(c,d),s=Math.max(s,u),c=Math.max(c,d),d=t.getChildren(),u=0;for(let t=l;t<=c;t++){var h=d[t];r.DEPRECATED_$isGridRowNode(h)||o(24);var g=e[u];r.DEPRECATED_$isGridRowNode(g)||o(24),h=h.getChildren(),g=g.getChildren();let n=0;for(let e=i;e<=s;e++){let a=h[e];r.DEPRECATED_$isGridCellNode(a)||o(25);let u=g[n];r.DEPRECATED_$isGridCellNode(u)||o(25),t===l&&e===i?p=a.getKey():t===c&&e===s&&(f=a.getKey());let d=a.getChildren();u.getChildren().forEach((e=>{r.$isTextNode(e)&&r.$createParagraphNode().append(e),a.append(e)})),d.forEach((e=>e.remove())),n++}u++}p&&f&&(e=r.DEPRECATED_$createGridSelection(),e.set(t.getKey(),p,f),r.$setSelection(e),a.dispatchCommand(r.SELECTION_CHANGE_COMMAND,void 0))}(t,i,!1,e):function(e,t){let n=[],i=null;for(let t=0;t<e.length;t++){let o=e[t],a=r.$isLineBreakNode(o);if(a||r.$isDecoratorNode(o)&&o.isInline()||r.$isElementNode(o)&&o.isInline()||r.$isTextNode(o)||o.isParentRequired()){if(null===i&&(i=o.createParentElementNode(),n.push(i),a))continue;null!==i&&i.append(o)}else n.push(o),i=null}r.$isRangeSelection(t)?t.insertNodes(n):r.DEPRECATED_$isGridSelection(t)&&(e=t.anchor.getNode(),r.DEPRECATED_$isGridCellNode(e)||o(41),e.append(...n))}(t,i)}function u(e,n,i,a=[]){let l=null==n||i.isSelected(n),s=r.$isElementNode(i)&&i.excludeFromCopy("html");var c=i;if(null!==n){var d=t.$cloneWithProperties(i);c=d=r.$isTextNode(d)&&null!=n?t.$sliceSelectedTextNodeContent(n,d):d}let p=r.$isElementNode(c)?c.getChildren():[];var f=c;d=f.exportJSON();var h=f.constructor;d.type!==h.getType()&&o(58,h.name);let g=d.children;for(r.$isElementNode(f)&&(Array.isArray(g)||o(59,h.name)),r.$isTextNode(c)&&(0<(c=c.__text).length?d.text=c:l=!1),c=0;c<p.length;c++)h=u(e,n,f=p[c],d.children),!l&&r.$isElementNode(i)&&h&&i.extractWithChild(f,n,"clone")&&(l=!0);if(l&&!s)a.push(d);else if(Array.isArray(d.children))for(e=0;e<d.children.length;e++)a.push(d.children[e]);return l}function c(e,t){let n=[],o=r.$getRoot().getChildren();for(let r=0;r<o.length;r++)u(e,t,o[r],n);return{namespace:e._config.namespace,nodes:n}}function d(e){let n=[];for(let o=0;o<e.length;o++){let i=r.$parseSerializedNode(e[o]);r.$isTextNode(i)&&t.$addNodeStyle(i),n.push(i)}return n}let p=null;function f(e,t){var n=i?(e._window||window).getSelection():null;if(!n)return!1;var o=n.anchorNode;if(n=n.focusNode,null!==o&&null!==n&&!r.isSelectionWithinEditor(e,o,n))return!1;if(t.preventDefault(),t=t.clipboardData,o=r.$getSelection(),null===t||null===o)return!1;n=a(e),e=l(e);let s="";return null!==o&&(s=o.getTextContent()),null!==n&&t.setData("text/html",n),null!==e&&t.setData("application/x-lexical-editor",e),t.setData("text/plain",s),!0}return ot.$generateJSONFromSelectedNodes=c,ot.$generateNodesFromSerializedNodes=d,ot.$getHtmlContent=a,ot.$getLexicalContent=l,ot.$insertDataTransferForPlainText=function(e,t){null!=(e=e.getData("text/plain")||e.getData("text/uri-list"))&&t.insertRawText(e)},ot.$insertDataTransferForRichText=function(t,n,o){var i=t.getData("application/x-lexical-editor");if(i)try{let e=JSON.parse(i);if(e.namespace===o._config.namespace&&Array.isArray(e.nodes)){return s(o,d(e.nodes),n)}}catch(e){}if(i=t.getData("text/html"))try{var a=(new DOMParser).parseFromString(i,"text/html"),l=e.$generateNodesFromDOM(o,a);return s(o,l,n)}catch(e){}if(null!=(t=t.getData("text/plain")||t.getData("text/uri-list")))if(r.$isRangeSelection(n))for(o=(t=t.split(/(\r?\n|\t)/)).length,a=0;a<o;a++)"\n"===(l=t[a])||"\r\n"===l?n.insertParagraph():"\t"===l?n.insertNodes([r.$createTabNode()]):n.insertText(l);else n.insertRawText(t)},ot.$insertGeneratedNodes=s,ot.copyToClipboard=async function(e,t){if(null!==p)return!1;if(null!==t)return new Promise((n=>{e.update((()=>{n(f(e,t))}))}));var o=e.getRootElement();let a=null==e._window?window.document:e._window.document,l=i?(e._window||window).getSelection():null;if(null===o||null===l)return!1;let s=a.createElement("span");return s.style.cssText="position: fixed; top: -1000px;",s.append(a.createTextNode("#")),o.append(s),(o=new Range).setStart(s,0),o.setEnd(s,1),l.removeAllRanges(),l.addRange(o),new Promise((t=>{let o=e.registerCommand(r.COPY_COMMAND,(r=>(n.objectKlassEquals(r,ClipboardEvent)&&(o(),null!==p&&(window.clearTimeout(p),p=null),t(f(e,r))),!0)),r.COMMAND_PRIORITY_CRITICAL);p=window.setTimeout((()=>{o(),p=null,t(!1)}),50),a.execCommand("copy"),s.remove()}))},ot}function st(){if(Ze)return rt;Ze=1;var e=function(){if(Qe)return Je;Qe=1;const e=lt();return Je=e}(),t=te(),n=re(),r=ee();function o(e,t){return void 0!==document.caretRangeFromPoint?null===(e=document.caretRangeFromPoint(e,t))?null:{node:e.startContainer,offset:e.startOffset}:"undefined"!==document.caretPositionFromPoint?null===(e=document.caretPositionFromPoint(e,t))?null:{node:e.offsetNode,offset:e.offset}:null}let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a=i&&"documentMode"in document?document.documentMode:null,l=!(!i||!("InputEvent"in window)||a)&&"getTargetRanges"in new window.InputEvent("input"),s=i&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),u=i&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c=i&&/^(?=.*Chrome).*/i.test(navigator.userAgent),d=i&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!c,p=r.createCommand("DRAG_DROP_PASTE_FILE");class f extends r.ElementNode{static getType(){return"quote"}static clone(e){return new f(e.__key)}constructor(e){super(e)}createDOM(e){let t=document.createElement("blockquote");return n.addClassNamesToElement(t,e.theme.quote),t}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:b,priority:0})}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}static importJSON(e){let t=h();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(e,t){e=r.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=r.$createParagraphNode();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}}function h(){return r.$applyNodeReplacement(new f)}class g extends r.ElementNode{static getType(){return"heading"}static clone(e){return new g(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}createDOM(e){let t=this.__tag,r=document.createElement(t);return void 0!==(e=e.theme.heading)&&n.addClassNamesToElement(r,e[t]),r}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:v,priority:0}),h2:()=>({conversion:v,priority:0}),h3:()=>({conversion:v,priority:0}),h4:()=>({conversion:v,priority:0}),h5:()=>({conversion:v,priority:0}),h6:()=>({conversion:v,priority:0}),p:e=>null!==(e=e.firstChild)&&m(e)?{conversion:()=>({node:null}),priority:3}:null,span:e=>m(e)?{conversion:()=>({node:y("h1")}),priority:3}:null}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}static importJSON(e){let t=y(e.tag);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(e,t=!0){e=0<(e=e?e.anchor.offset:0)&&e<this.getTextContentSize()?y(this.getTag()):r.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.isEmpty()?r.$createParagraphNode():y(this.getTag());return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}extractWithChild(){return!0}}function m(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function v(e){let t=e.nodeName.toLowerCase(),n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=y(t),null!==e.style&&n.setFormat(e.style.textAlign)),{node:n}}function b(e){let t=h();return null!==e.style&&t.setFormat(e.style.textAlign),{node:t}}function y(e){return r.$applyNodeReplacement(new g(e))}function x(e){let t=null;if(e instanceof DragEvent?t=e.dataTransfer:e instanceof ClipboardEvent&&(t=e.clipboardData),null===t)return[!1,[],!1];var n=t.types;return e=n.includes("Files"),n=n.includes("text/html")||n.includes("text/plain"),[e,Array.from(t.files),n]}function _(e){var t=r.$getSelection();if(!r.$isRangeSelection(t))return!1;let o=new Set;t=t.getNodes();for(let r=0;r<t.length;r++){var i=t[r],a=i.getKey();o.has(a)||(a=(i=n.$getNearestBlockElementAncestorOrThrow(i)).getKey(),i.canIndent()&&!o.has(a)&&(o.add(a),e(i)))}return 0<o.size}function C(e){return e=r.$getNearestNodeFromDOMNode(e),r.$isDecoratorNode(e)}return rt.$createHeadingNode=y,rt.$createQuoteNode=h,rt.$isHeadingNode=function(e){return e instanceof g},rt.$isQuoteNode=function(e){return e instanceof f},rt.DRAG_DROP_PASTE=p,rt.HeadingNode=g,rt.QuoteNode=f,rt.eventFiles=x,rt.registerRichText=function(i){return n.mergeRegister(i.registerCommand(r.CLICK_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isNodeSelection(e)&&(e.clear(),!0)}),0),i.registerCommand(r.DELETE_CHARACTER_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.deleteCharacter(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DELETE_WORD_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.deleteWord(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DELETE_LINE_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.deleteLine(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.CONTROLLED_TEXT_INSERTION_COMMAND,(t=>{const n=r.$getSelection();if("string"==typeof t)r.$isRangeSelection(n)?n.insertText(t):r.DEPRECATED_$isGridSelection(n);else{if(!r.$isRangeSelection(n)&&!r.DEPRECATED_$isGridSelection(n))return!1;const o=t.dataTransfer;null!=o?e.$insertDataTransferForRichText(o,n,i):r.$isRangeSelection(n)&&(t=t.data)&&n.insertText(t)}return!0}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.REMOVE_TEXT_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isRangeSelection(e)&&(e.removeText(),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.FORMAT_TEXT_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.formatText(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.FORMAT_ELEMENT_COMMAND,(e=>{var t=r.$getSelection();if(!r.$isRangeSelection(t)&&!r.$isNodeSelection(t))return!1;t=t.getNodes();for(const o of t)t=n.$findMatchingParent(o,(e=>r.$isElementNode(e)&&!e.isInline())),null!==t&&t.setFormat(e);return!0}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INSERT_LINE_BREAK_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.insertLineBreak(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INSERT_PARAGRAPH_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isRangeSelection(e)&&(e.insertParagraph(),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INSERT_TAB_COMMAND,(()=>(r.$insertNodes([r.$createTabNode()]),!0)),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INDENT_CONTENT_COMMAND,(()=>_((e=>{const t=e.getIndent();e.setIndent(t+1)}))),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.OUTDENT_CONTENT_COMMAND,(()=>_((e=>{const t=e.getIndent();0<t&&e.setIndent(t-1)}))),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_UP_COMMAND,(e=>{var t=r.$getSelection();if(r.$isNodeSelection(t)&&!C(e.target)){if(0<(e=t.getNodes()).length)return e[0].selectPrevious(),!0}else if(r.$isRangeSelection(t)&&(t=r.$getAdjacentNode(t.focus,!0),!e.shiftKey&&r.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline()))return t.selectPrevious(),e.preventDefault(),!0;return!1}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_DOWN_COMMAND,(e=>{var t=r.$getSelection();if(r.$isNodeSelection(t)){if(0<(e=t.getNodes()).length)return e[0].selectNext(0,0),!0}else if(r.$isRangeSelection(t)){let n=t.focus;if("root"===n.key&&n.offset===r.$getRoot().getChildrenSize())return e.preventDefault(),!0;if(t=r.$getAdjacentNode(t.focus,!1),!e.shiftKey&&r.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline())return t.selectNext(),e.preventDefault(),!0}return!1}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_LEFT_COMMAND,(e=>{const n=r.$getSelection();if(r.$isNodeSelection(n)){var o=n.getNodes();if(0<o.length)return e.preventDefault(),o[0].selectPrevious(),!0}return!!r.$isRangeSelection(n)&&(!!t.$shouldOverrideDefaultCharacterSelection(n,!0)&&(o=e.shiftKey,e.preventDefault(),t.$moveCharacter(n,o,!0),!0))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_RIGHT_COMMAND,(e=>{const n=r.$getSelection();if(r.$isNodeSelection(n)&&!C(e.target)){var o=n.getNodes();if(0<o.length)return e.preventDefault(),o[0].selectNext(0,0),!0}return!!r.$isRangeSelection(n)&&(o=e.shiftKey,!!t.$shouldOverrideDefaultCharacterSelection(n,!1)&&(e.preventDefault(),t.$moveCharacter(n,o,!1),!0))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_BACKSPACE_COMMAND,(e=>{if(C(e.target))return!1;const t=r.$getSelection();if(!r.$isRangeSelection(t))return!1;e.preventDefault(),({anchor:e}=t);const o=e.getNode();return t.isCollapsed()&&0===e.offset&&!r.$isRootNode(o)&&0<n.$getNearestBlockElementAncestorOrThrow(o).getIndent()?i.dispatchCommand(r.OUTDENT_CONTENT_COMMAND,void 0):i.dispatchCommand(r.DELETE_CHARACTER_COMMAND,!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_DELETE_COMMAND,(e=>{if(C(e.target))return!1;const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(e.preventDefault(),i.dispatchCommand(r.DELETE_CHARACTER_COMMAND,!1))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ENTER_COMMAND,(e=>{const t=r.$getSelection();if(!r.$isRangeSelection(t))return!1;if(null!==e){if((u||s||d)&&l)return!1;if(e.preventDefault(),e.shiftKey)return i.dispatchCommand(r.INSERT_LINE_BREAK_COMMAND,!1)}return i.dispatchCommand(r.INSERT_PARAGRAPH_COMMAND,void 0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ESCAPE_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isRangeSelection(e)&&(i.blur(),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DROP_COMMAND,(e=>{const[,t]=x(e);if(0<t.length){var n=o(e.clientX,e.clientY);if(null!==n){const{offset:e,node:o}=n;var a=r.$getNearestNodeFromDOMNode(o);if(null!==a){if(n=r.$createRangeSelection(),r.$isTextNode(a))n.anchor.set(a.getKey(),e,"text"),n.focus.set(a.getKey(),e,"text");else{const e=a.getParentOrThrow().getKey();a=a.getIndexWithinParent()+1,n.anchor.set(e,a,"element"),n.focus.set(e,a,"element")}n=r.$normalizeSelection__EXPERIMENTAL(n),r.$setSelection(n)}i.dispatchCommand(p,t)}return e.preventDefault(),!0}return e=r.$getSelection(),!!r.$isRangeSelection(e)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DRAGSTART_COMMAND,(e=>{[e]=x(e);const t=r.$getSelection();return!(e&&!r.$isRangeSelection(t))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DRAGOVER_COMMAND,(e=>{var[t]=x(e);const n=r.$getSelection();return!(t&&!r.$isRangeSelection(n))&&(null!==(t=o(e.clientX,e.clientY))&&(t=r.$getNearestNodeFromDOMNode(t.node),r.$isDecoratorNode(t)&&e.preventDefault()),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.COPY_COMMAND,(t=>(e.copyToClipboard(i,n.objectKlassEquals(t,ClipboardEvent)?t:null),!0)),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.CUT_COMMAND,(t=>(async function(t,o){await e.copyToClipboard(o,n.objectKlassEquals(t,ClipboardEvent)?t:null),o.update((()=>{let e=r.$getSelection();r.$isRangeSelection(e)?e.removeText():r.$isNodeSelection(e)&&e.getNodes().forEach((e=>e.remove()))}))}(t,i),!0)),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.PASTE_COMMAND,(t=>{const[,n,o]=x(t);if(0<n.length&&!o)return i.dispatchCommand(p,n),!0;if(r.isSelectionCapturedInDecoratorInput(t.target))return!1;const a=r.$getSelection();return!(!r.$isRangeSelection(a)&&!r.DEPRECATED_$isGridSelection(a))&&(function(t,n){t.preventDefault(),n.update((()=>{let o=r.$getSelection(),i=t instanceof InputEvent||t instanceof KeyboardEvent?null:t.clipboardData;null!=i&&(r.$isRangeSelection(o)||r.DEPRECATED_$isGridSelection(o))&&e.$insertDataTransferForRichText(i,o,n)}),{tag:"paste"})}(t,i),!0)}),r.COMMAND_PRIORITY_EDITOR))},rt}function ut(){if(tt)return et;tt=1;const e=st();return et=e}var ct,dt,pt,ft=ut(),ht={};function gt(){if(ct)return ht;ct=1;var e=oe(),t=Ce(),n=re(),r=ee(),o=m;function i(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}let a=/[.,;\s]/;function l(e){var t;return e=e.getPreviousSibling(),r.$isElementNode(e)&&(e=e.getLastDescendant()),!(t=null===e||r.$isLineBreakNode(e))&&(t=r.$isTextNode(e))&&(e=e.getTextContent(),t=a.test(e[e.length-1])),t}function s(e){return e=e.getNextSibling(),r.$isElementNode(e)&&(e=e.getFirstDescendant()),null===e||r.$isLineBreakNode(e)||r.$isTextNode(e)&&a.test(e.getTextContent()[0])}function u(e,t,n){var o=e.getChildren();let a=o.length;for(let t=0;t<a;t++){let i=o[t];if(!r.$isTextNode(i)||!i.isSimpleText())return c(e),void n(null,e.getURL())}null===(t=i(o=e.getTextContent(),t))||t.text!==o?(c(e),n(null,e.getURL())):l(e)&&s(e)?((o=e.getURL())!==t.url&&(e.setURL(t.url),n(t.url,o)),t.attributes&&((o=e.getRel())!==t.attributes.rel&&(e.setRel(t.attributes.rel||null),n(t.attributes.rel||null,o)),(o=e.getTarget())!==t.attributes.target&&(e.setTarget(t.attributes.target||null),n(t.attributes.target||null,o)))):(c(e),n(null,e.getURL()))}function c(e){let t=e.getChildren();var n=t.length;for(--n;0<=n;n--)e.insertAfter(t[n]);return e.remove(),t.map((e=>e.getLatest()))}function d(t,d,p){o.useEffect((()=>{t.hasNodes([e.AutoLinkNode])||function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);let o=(e,t)=>{p&&p(e,t)};return n.mergeRegister(t.registerNodeTransform(r.TextNode,(t=>{var n=t.getParentOrThrow(),f=t.getPreviousSibling();if(e.$isAutoLinkNode(n))u(n,d,o);else if(!e.$isLinkNode(n)){if(t.isSimpleText()&&(a.test(t.getTextContent()[0])||!e.$isAutoLinkNode(f))){f=n=t.getTextContent();let o=0,u=t;for(var h;(h=i(f,d))&&null!==h;){let i=h.index,c=h.length,d=i+c;var g=o+i,m=o+d,v=n,b=t;if((0<g?a.test(v[g-1]):l(b))&&(m<v.length?a.test(v[m]):s(b))){var y=void 0;0===o+i?[y,u]=u.splitText(o+c):[,y,u]=u.splitText(o+i,o+i+c),g=e.$createAutoLinkNode(h.url,h.attributes),(m=r.$createTextNode(h.text)).setFormat(y.getFormat()),m.setDetail(y.getDetail()),g.append(m),y.replace(g),p&&p(h.url,null),o=0}else o+=d;f=f.substring(d)}}n=t.getPreviousSibling(),h=t.getNextSibling(),y=t.getTextContent(),e.$isAutoLinkNode(n)&&!a.test(y[0])&&(n.append(t),u(n,d,o),t=n.getURL(),p&&p(null,t)),e.$isAutoLinkNode(h)&&!a.test(y[y.length-1])&&(c(h),u(h,d,o),t=h.getURL(),p&&p(null,t))}})))}),[t,d,p])}return ht.AutoLinkPlugin=function({matchers:e,onChange:n}){let[r]=t.useLexicalComposerContext();return d(r,e,n),null},ht.createLinkMatcherWithRegExp=function(e,t=e=>e){return n=>{let r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(n)}}},ht}var mt,vt,bt,yt,xt=function(){if(pt)return dt;pt=1;const e=gt();return dt=e}(),_t=Ce();function Ct(){if(vt)return mt;vt=1;var e=Ce(),t=m,n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function r(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}return mt=function(){return function(r){let[o]=e.useLexicalComposerContext(),i=t.useMemo((()=>r(o)),[o,r]),a=t.useRef(i.initialValueFn()),[l,s]=t.useState(a.current);return n((()=>{let{initialValueFn:e,subscribe:t}=i,n=e();return a.current!==n&&(a.current=n,s(n)),t((e=>{a.current=e,s(e)}))}),[i,r]),l}(r)},mt}function Et(){if(yt)return bt;yt=1;const e=Ct();return bt=e}var St=N(Et()),wt=re(),kt=ee(),Rt=te();const At={black:"#000",white:"#fff"},Tt="#e57373",Nt="#ef5350",Ot="#f44336",Lt="#d32f2f",Mt="#c62828",Pt="#f3e5f5",It="#ce93d8",Dt="#ba68c8",$t="#ab47bc",zt="#9c27b0",Bt="#7b1fa2",Ft="#e3f2fd",Ht="#90caf9",jt="#42a5f5",Gt="#1976d2",Wt="#1565c0",Yt="#4fc3f7",Kt="#29b6f6",Ut="#03a9f4",Vt="#0288d1",qt="#01579b",Xt="#81c784",Jt="#66bb6a",Qt="#4caf50",Zt="#388e3c",en="#2e7d32",tn="#1b5e20",nn="#ffb74d",rn="#ffa726",on="#ff9800",an="#f57c00",ln="#e65100",sn={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 un(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 cn=Object.freeze({__proto__:null,default:un}),dn="$$material";function pn(){return pn=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},pn.apply(null,arguments)}function fn(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var hn=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}(),gn="-ms-",mn="-moz-",vn="-webkit-",bn="comm",yn="rule",xn="decl",_n="@keyframes",Cn=Math.abs,En=String.fromCharCode,Sn=Object.assign;function wn(e){return e.trim()}function kn(e,t,n){return e.replace(t,n)}function Rn(e,t){return e.indexOf(t)}function An(e,t){return 0|e.charCodeAt(t)}function Tn(e,t,n){return e.slice(t,n)}function Nn(e){return e.length}function On(e){return e.length}function Ln(e,t){return t.push(e),e}var Mn=1,Pn=1,In=0,Dn=0,$n=0,zn="";function Bn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Mn,column:Pn,length:a,return:""}}function Fn(e,t){return Sn(Bn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Hn(){return $n=Dn>0?An(zn,--Dn):0,Pn--,10===$n&&(Pn=1,Mn--),$n}function jn(){return $n=Dn<In?An(zn,Dn++):0,Pn++,10===$n&&(Pn=1,Mn++),$n}function Gn(){return An(zn,Dn)}function Wn(){return Dn}function Yn(e,t){return Tn(zn,e,t)}function Kn(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 Un(e){return Mn=Pn=1,In=Nn(zn=e),Dn=0,[]}function Vn(e){return zn="",e}function qn(e){return wn(Yn(Dn-1,Qn(91===e?e+2:40===e?e+1:e)))}function Xn(e){for(;($n=Gn())&&$n<33;)jn();return Kn(e)>2||Kn($n)>3?"":" "}function Jn(e,t){for(;--t&&jn()&&!($n<48||$n>102||$n>57&&$n<65||$n>70&&$n<97););return Yn(e,Wn()+(t<6&&32==Gn()&&32==jn()))}function Qn(e){for(;jn();)switch($n){case e:return Dn;case 34:case 39:34!==e&&39!==e&&Qn($n);break;case 40:41===e&&Qn(e);break;case 92:jn()}return Dn}function Zn(e,t){for(;jn()&&e+$n!==57&&(e+$n!==84||47!==Gn()););return"/*"+Yn(t,Dn-1)+"*"+En(47===e?e:jn())}function er(e){for(;!Kn(Gn());)jn();return Yn(e,Dn)}function tr(e){return Vn(nr("",null,null,null,[""],e=Un(e),0,[0],e))}function nr(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,g=1,m=1,v=1,b=0,y="",x=o,_=i,C=r,E=y;m;)switch(h=b,b=jn()){case 40:if(108!=h&&58==An(E,d-1)){-1!=Rn(E+=kn(qn(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=qn(b);break;case 9:case 10:case 13:case 32:E+=Xn(h);break;case 92:E+=Jn(Wn()-1,7);continue;case 47:switch(Gn()){case 42:case 47:Ln(or(Zn(jn(),Wn()),t,n),s);break;default:E+="/"}break;case 123*g:l[u++]=Nn(E)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:-1==v&&(E=kn(E,/\f/g,"")),f>0&&Nn(E)-d&&Ln(f>32?ir(E+";",r,n,d-1):ir(kn(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Ln(C=rr(E,t,n,u,c,o,l,y,x=[],_=[],d),i),123===b)if(0===c)nr(E,t,C,C,x,i,d,l,_);else switch(99===p&&110===An(E,3)?100:p){case 100:case 108:case 109:case 115:nr(e,C,C,r&&Ln(rr(e,C,C,0,0,o,l,y,o,x=[],d),_),o,_,d,l,r?x:_);break;default:nr(E,C,C,C,[""],_,0,l,_)}}u=c=f=0,g=v=1,y=E="",d=a;break;case 58:d=1+Nn(E),f=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Hn())continue;switch(E+=En(b),b*g){case 38:v=c>0?1:(E+="\f",-1);break;case 44:l[u++]=(Nn(E)-1)*v,v=1;break;case 64:45===Gn()&&(E+=qn(jn())),p=Gn(),c=d=Nn(y=E+=er(Wn())),b++;break;case 45:45===h&&2==Nn(E)&&(g=0)}}return i}function rr(e,t,n,r,o,i,a,l,s,u,c){for(var d=o-1,p=0===o?i:[""],f=On(p),h=0,g=0,m=0;h<r;++h)for(var v=0,b=Tn(e,d+1,d=Cn(g=a[h])),y=e;v<f;++v)(y=wn(g>0?p[v]+" "+b:kn(b,/&\f/g,p[v])))&&(s[m++]=y);return Bn(e,t,n,0===o?yn:l,s,u,c)}function or(e,t,n){return Bn(e,t,n,bn,En($n),Tn(e,2,-2),0)}function ir(e,t,n,r){return Bn(e,t,n,xn,Tn(e,0,r),Tn(e,r+1,-1),r)}function ar(e,t){for(var n="",r=On(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function lr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case xn:return e.return=e.return||e.value;case bn:return"";case _n:return e.return=e.value+"{"+ar(e.children,r)+"}";case yn:e.value=e.props.join(",")}return Nn(n=ar(e.children,r))?e.return=e.value+"{"+n+"}":""}function sr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ur=function(e,t,n){for(var r=0,o=0;r=o,o=Gn(),38===r&&12===o&&(t[n]=1),!Kn(o);)jn();return Yn(e,Dn)},cr=function(e,t){return Vn(function(e,t){var n=-1,r=44;do{switch(Kn(r)){case 0:38===r&&12===Gn()&&(t[n]=1),e[n]+=ur(Dn-1,t,n);break;case 2:e[n]+=qn(r);break;case 4:if(44===r){e[++n]=58===Gn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=En(r)}}while(r=jn());return e}(Un(e),t))},dr=new WeakMap,pr=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)||dr.get(n))&&!r){dr.set(e,!0);for(var o=[],i=cr(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},fr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},hr=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},gr=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},mr=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},vr=function(e,t,n){gr(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."),mr(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!gr(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."),mr(e)))};function br(e,t){switch(function(e,t){return 45^An(e,0)?(((t<<2^An(e,0))<<2^An(e,1))<<2^An(e,2))<<2^An(e,3):0}(e,t)){case 5103:return vn+"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 vn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return vn+e+mn+e+gn+e+e;case 6828:case 4268:return vn+e+gn+e+e;case 6165:return vn+e+gn+"flex-"+e+e;case 5187:return vn+e+kn(e,/(\w+).+(:[^]+)/,vn+"box-$1$2"+gn+"flex-$1$2")+e;case 5443:return vn+e+gn+"flex-item-"+kn(e,/flex-|-self/,"")+e;case 4675:return vn+e+gn+"flex-line-pack"+kn(e,/align-content|flex-|-self/,"")+e;case 5548:return vn+e+gn+kn(e,"shrink","negative")+e;case 5292:return vn+e+gn+kn(e,"basis","preferred-size")+e;case 6060:return vn+"box-"+kn(e,"-grow","")+vn+e+gn+kn(e,"grow","positive")+e;case 4554:return vn+kn(e,/([^-])(transform)/g,"$1"+vn+"$2")+e;case 6187:return kn(kn(kn(e,/(zoom-|grab)/,vn+"$1"),/(image-set)/,vn+"$1"),e,"")+e;case 5495:case 3959:return kn(e,/(image-set\([^]*)/,vn+"$1$`$1");case 4968:return kn(kn(e,/(.+:)(flex-)?(.*)/,vn+"box-pack:$3"+gn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+vn+e+e;case 4095:case 3583:case 4068:case 2532:return kn(e,/(.+)-inline(.+)/,vn+"$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(Nn(e)-1-t>6)switch(An(e,t+1)){case 109:if(45!==An(e,t+4))break;case 102:return kn(e,/(.+:)(.+)-([^]+)/,"$1"+vn+"$2-$3$1"+mn+(108==An(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Rn(e,"stretch")?br(kn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==An(e,t+1))break;case 6444:switch(An(e,Nn(e)-3-(~Rn(e,"!important")&&10))){case 107:return kn(e,":",":"+vn)+e;case 101:return kn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+vn+(45===An(e,14)?"inline-":"")+"box$3$1"+vn+"$2$3$1"+gn+"$2box$3")+e}break;case 5936:switch(An(e,t+11)){case 114:return vn+e+gn+kn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vn+e+gn+kn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vn+e+gn+kn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vn+e+gn+e+e}return e}var yr,xr=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xn:e.return=br(e.value,e.length);break;case _n:return ar([Fn(e,{value:kn(e.value,"@","@"+vn)})],r);case yn: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 ar([Fn(e,{props:[kn(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ar([Fn(e,{props:[kn(t,/:(plac\w+)/,":"+vn+"input-$1")]}),Fn(e,{props:[kn(t,/:(plac\w+)/,":-moz-$1")]}),Fn(e,{props:[kn(t,/:(plac\w+)/,gn+"input-$1")]})],r)}return""}))}}],_r=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;yr=function(e){var t=e.match(_r);if(t)return t[t.length-1]};var Cr,Er,Sr,wr,kr=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||xr;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var s=[pr,fr];s.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:r,a=i.length-1;a>=0;a--){var l=i[a];if(l.line<t.line)break;if(l.column<t.column){if(hr(l))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 p.compat}}),vr);var u,c=[lr,function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==bn&&u.insert(e.value+"{}"))}],d=function(e){var t=On(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(s.concat(r,c));i=function(e,t,n,r){if(u=n,yr){var o=yr(t.styles);o&&(u={insert:function(e){n.insert(e+o)}})}!function(e){ar(tr(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new hn({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(l),p},Rr={exports:{}},Ar={};function Tr(){return Er||(Er=1,Rr.exports=function(){if(Cr)return Ar;Cr=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=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 p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case f:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===u}return Ar.AsyncMode=s,Ar.ConcurrentMode=u,Ar.ContextConsumer=l,Ar.ContextProvider=a,Ar.Element=t,Ar.ForwardRef=c,Ar.Fragment=r,Ar.Lazy=h,Ar.Memo=f,Ar.Portal=n,Ar.Profiler=i,Ar.StrictMode=o,Ar.Suspense=d,Ar.isAsyncMode=function(e){return x(e)||y(e)===s},Ar.isConcurrentMode=x,Ar.isContextConsumer=function(e){return y(e)===l},Ar.isContextProvider=function(e){return y(e)===a},Ar.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ar.isForwardRef=function(e){return y(e)===c},Ar.isFragment=function(e){return y(e)===r},Ar.isLazy=function(e){return y(e)===h},Ar.isMemo=function(e){return y(e)===f},Ar.isPortal=function(e){return y(e)===n},Ar.isProfiler=function(e){return y(e)===i},Ar.isStrictMode=function(e){return y(e)===o},Ar.isSuspense=function(e){return y(e)===d},Ar.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||e.$$typeof===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},Ar.typeOf=y,Ar}()),Rr.exports}var Nr=function(){if(wr)return Sr;wr=1;var e=Tr(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,l=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;return Sr=function e(t,r,o){if("string"!=typeof r){if(d){var p=c(r);p&&p!==d&&e(t,p,o)}var f=l(r);s&&(f=f.concat(s(r)));for(var h=i(t),g=i(r),m=0;m<f.length;++m){var v=f[m];if(!(n[v]||o&&o[v]||g&&g[v]||h&&h[v])){var b=u(r,v);try{a(t,v,b)}catch(e){}}}}return t},Sr}(),Or=N(Nr);function Lr(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Mr=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Pr=function(e,t,n){Mr(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 Ir={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},Dr="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",$r="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",zr=/[A-Z]|^ms/g,Br=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fr=function(e){return 45===e.charCodeAt(1)},Hr=function(e){return null!=e&&"boolean"!=typeof e},jr=sr((function(e){return Fr(e)?e:e.replace(zr,"-$&").toLowerCase()})),Gr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Br,(function(e,t,n){return Qr={name:t,styles:n,next:Qr},t}))}return 1===Ir[e]||Fr(e)||"number"!=typeof t||0===t?t:t+"px"},Wr=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Yr=["normal","none","initial","inherit","unset"],Kr=Gr,Ur=/^-ms-/,Vr=/-(.)/g,qr={};Gr=function(e,t){if("content"===e&&("string"!=typeof t||-1===Yr.indexOf(t)&&!Wr.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=Kr(e,t);return""===n||Fr(e)||-1===e.indexOf("-")||void 0!==qr[e]||(qr[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Ur,"ms-").replace(Vr,(function(e,t){return t.toUpperCase()}))+"?")),n};var Xr="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Jr(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(Xr);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Qr={name:o.name,styles:o.styles,next:Qr},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Qr={name:a.name,styles:a.styles,next:Qr},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Jr(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var l=a;null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":Hr(l)&&(r+=jr(i)+":"+Gr(i,l)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(Xr);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Jr(e,t,a);switch(i){case"animation":case"animationName":r+=jr(i)+":"+s+";";break;default:"undefined"===i&&console.error($r),r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)Hr(a[u])&&(r+=jr(i)+":"+Gr(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=Qr,s=n(e);return Qr=l,Jr(e,t,s)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var u=[],c=n.replace(Br,(function(e,t,n){var r="animation"+u.length;return u.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}var d=n;if(null==t)return d;var p=t[d];return void 0!==p?p:d}var Qr,Zr=/label:\s*([^\s;{]+)\s*(;|$)/g;function eo(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="";Qr=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=Jr(n,t,i);else{var a=i;void 0===a[0]&&console.error(Dr),o+=a[0]}for(var l=1;l<e.length;l++)if(o+=Jr(n,t,e[l]),r){var s=i;void 0===s[l]&&console.error(Dr),o+=s[l]}Zr.lastIndex=0;for(var u,c="";null!==(u=Zr.exec(o));)c+="-"+u[1];var d=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:d,styles:o,next:Qr,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 to=!!v.useInsertionEffect&&v.useInsertionEffect,no=to||function(e){return e()},ro=to||v.useLayoutEffect,oo=v.createContext("undefined"!=typeof HTMLElement?kr({key:"css"}):null);oo.displayName="EmotionCacheContext";var io=oo.Provider,ao=function(e){return b((function(t,n){var r=y(oo);return e(t,r,n)}))},lo=v.createContext({});lo.displayName="EmotionThemeContext";var so={}.hasOwnProperty,uo=function(e){var t=e.split(".");return t[t.length-1]},co=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?uo(t[1]):void 0},po=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),fo=function(e){return e.replace(/\$/g,"-")},ho="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",go="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",mo=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)so.call(t,r)&&(n[r]=t[r]);if(n[ho]=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=co(t[n]);if(r){if(po.has(r))break;if(/^[A-Z]/.test(r))return fo(r)}}}((new Error).stack);o&&(n[go]=o)}return n},vo=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Mr(t,n,r),no((function(){return Pr(t,n,r)})),null},bo=ao((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[ho],i=[r],a="";"string"==typeof e.className?a=Lr(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var l=eo(i,void 0,v.useContext(lo));if(-1===l.name.indexOf("-")){var s=e[go];s&&(l=eo([l,"label:"+s+";"]))}a+=t.key+"-"+l.name;var u={};for(var c in e)so.call(e,c)&&"css"!==c&&c!==ho&&c!==go&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),v.createElement(v.Fragment,null,v.createElement(vo,{cache:t,serialized:l,isStringTag:"string"==typeof o}),v.createElement(o,u))}));bo.displayName="EmotionCssPropInternal";var yo,xo,_o=bo,Co=function(e,t){var n=arguments;if(null==t||!so.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=_o,o[1]=mo(e,t);for(var i=2;i<r;i++)o[i]=n[i];return v.createElement.apply(null,o)};yo=Co||(Co={}),xo||(xo=yo.JSX||(yo.JSX={}));var Eo=!1,So=ao((function(e,t){!Eo&&("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?"),Eo=!0);var n=eo([e.styles],void 0,v.useContext(lo)),r=v.useRef();return ro((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),ro((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Pr(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 wo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return eo(t)}function ko(){var e=wo.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_"}}}So.displayName="EmotionGlobal";var Ro=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var l in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var Ao=function(e){var t=e.cache,n=e.serializedArr;return no((function(){for(var e=0;e<n.length;e++)Pr(t,n[e],!1)})),null},To=ao((function(e,t){var n=!1,r=[],o=function(){if(n)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=eo(o,t.registered);return r.push(a),Mr(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],o=Lr(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,Ro(r))},theme:v.useContext(lo)},a=e.children(i);return n=!0,v.createElement(v.Fragment,null,v.createElement(Ao,{cache:t,serializedArr:r}),a)}));To.displayName="EmotionClassNames";var No="undefined"!=typeof document,Oo="undefined"!=typeof jest||"undefined"!=typeof vi;if(No&&!Oo){var Lo="undefined"!=typeof globalThis?globalThis:No?window:global,Mo="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";Lo[Mo]&&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."),Lo[Mo]=!0}var Po=/^((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|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)-.*))$/,Io=sr((function(e){return Po.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Do=function(e){return"theme"!==e},$o=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Io:Do},zo=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},Bo="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",Fo=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Mr(t,n,r),no((function(){return Pr(t,n,r)})),null},Ho=function e(t,n){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=zo(t,n,i),s=l||$o(a),u=!s("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var p=c[0];void 0===p[0]&&console.error(Bo),d.push(p[0]);for(var f=c.length,h=1;h<f;h++)void 0===p[h]&&console.error(Bo),d.push(c[h],p[h])}var g=ao((function(e,t,n){var r=u&&e.as||a,i="",c=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=v.useContext(lo)}"string"==typeof e.className?i=Lr(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var h=eo(d.concat(c),t.registered,p);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var g=u&&void 0===l?$o(r):s,m={};for(var b in e)u&&"as"===b||g(b)&&(m[b]=e[b]);return m.className=i,n&&(m.ref=n),v.createElement(v.Fragment,null,v.createElement(Fo,{cache:t,serialized:h,isStringTag:"string"==typeof r}),v.createElement(r,m))}));return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),g.withComponent=function(t,r){return e(t,pn({},n,r,{shouldForwardProp:zo(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){Ho[e]=Ho(e)}));var jo,Go,Wo,Yo,Ko,Uo={exports:{}};function Vo(){if(Go)return jo;Go=1;return jo="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function qo(){if(Yo)return Wo;Yo=1;var e=Vo();function t(){}function n(){}return n.resetWarningCache=t,Wo=function(){function r(t,n,r,o,i,a){if(a!==e){var l=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 l.name="Invariant Violation",l}}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 Xo(){return Ko||(Ko=1,Uo.exports=qo()()),Uo.exports}var Jo,Qo,Zo=N(Xo()),ei={exports:{}},ti={};var ni=(Qo||(Qo=1,ei.exports=function(){if(Jo)return ti;Jo=1;var e=m,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var l,s={},u=null,c=null;for(l in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,l)&&!i.hasOwnProperty(l)&&(s[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===s[l]&&(s[l]=n[l]);return{$$typeof:t,type:e,key:u,ref:c,props:s,_owner:o.current}}return ti.Fragment=n,ti.jsx=a,ti.jsxs=a,ti}()),ei.exports);const ri=new Map;function oi(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 ni.jsx(So,{styles:r})}
|
|
8
8
|
/**
|
|
9
|
-
* @mui/styled-engine v5.
|
|
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 Uo(e,t){return Bo(e,t)}"object"==typeof document&&(Ko=kr({key:"css",prepend:!0}));const Vo=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var qo=Object.freeze({__proto__:null,GlobalStyles:Yo,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&Ko?Go.jsx(ro,{value:Ko,children:n}):n},ThemeContext:io,css:Co,default:Uo,internal_processStyles:Vo,keyframes:So});function Qo(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 Jo(e){if(v.isValidElement(e)||!Qo(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Jo(e[n])})),t}function Xo(e,t,n={clone:!0}){const r=n.clone?pn({},e):e;return Qo(e)&&Qo(t)&&Object.keys(t).forEach((o=>{v.isValidElement(t[o])?r[o]=t[o]:Qo(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Qo(e[o])?r[o]=Xo(e[o],t[o],n):n.clone?r[o]=Qo(t[o])?Jo(t[o]):t[o]:r[o]=t[o]})),r}var Zo=Object.freeze({__proto__:null,default:Xo,isPlainObject:Qo});const ei=["values","unit","step"];function ti(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=fn(e,ei),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)=>pn({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return pn({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const ni={borderRadius:4};function ri(e,t){return t?Xo(e,t,{clone:!1}):e}const oi={xs:0,sm:600,md:900,lg:1200,xl:1536},ii={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${oi[e]}px)`};function ai(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||ii;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||ii;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||oi).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function li(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function si(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function ui({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 ci(e){if("string"!=typeof e)throw new Error(un(7));return e.charAt(0).toUpperCase()+e.slice(1)}var di=Object.freeze({__proto__:null,default:ci});function pi(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 fi(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:pi(e,n)||r,t&&(o=t(o,r,e)),o}function hi(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],a=pi(e.theme,r)||{};return ai(e,i,(e=>{let r=fi(a,o,e);return e===r&&"string"==typeof e&&(r=fi(a,o,`${t}${"default"===e?"":ci(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const mi={m:"margin",p:"padding"},gi={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yi=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!bi[e])return[e];e=bi[e]}const[t,n]=e.split(""),r=mi[t],o=gi[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),xi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_i=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ei(e,t,n,r){var o;const i=null!=(o=pi(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 Ci(e){return Ei(e,"spacing",8)}function Si(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 wi(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Si(t,n),e)),{})}(yi(n),r);return ai(e,e[n],o)}function ki(e,t){const n=Ci(e.theme);return Object.keys(e).map((r=>wi(e,t,r,n))).reduce(ri,{})}function Ti(e){return ki(e,xi)}function Ai(e){return ki(e,_i)}function Ni(...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]?ri(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Ri(e){return"number"!=typeof e?e:`${e}px solid`}function Mi(e,t){return hi({prop:e,themeKey:"borders",transform:t})}Ti.propTypes={},Ti.filterProps=xi,Ai.propTypes={},Ai.filterProps=_i;const Li=Mi("border",Ri),Oi=Mi("borderTop",Ri),Ii=Mi("borderRight",Ri),Pi=Mi("borderBottom",Ri),Di=Mi("borderLeft",Ri),$i=Mi("borderColor"),zi=Mi("borderTopColor"),Bi=Mi("borderRightColor"),Fi=Mi("borderBottomColor"),Hi=Mi("borderLeftColor"),ji=Mi("outline",Ri),Wi=Mi("outlineColor"),Gi=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ei(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Si(t,e)});return ai(e,e.borderRadius,n)}return null};Gi.propTypes={},Gi.filterProps=["borderRadius"],Ni(Li,Oi,Ii,Pi,Di,$i,zi,Bi,Fi,Hi,Gi,ji,Wi);const Ki=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ei(e.theme,"spacing",8),n=e=>({gap:Si(t,e)});return ai(e,e.gap,n)}return null};Ki.propTypes={},Ki.filterProps=["gap"];const Yi=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ei(e.theme,"spacing",8),n=e=>({columnGap:Si(t,e)});return ai(e,e.columnGap,n)}return null};Yi.propTypes={},Yi.filterProps=["columnGap"];const Ui=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ei(e.theme,"spacing",8),n=e=>({rowGap:Si(t,e)});return ai(e,e.rowGap,n)}return null};Ui.propTypes={},Ui.filterProps=["rowGap"];function Vi(e,t){return"grey"===t?t:e}Ni(Ki,Yi,Ui,hi({prop:"gridColumn"}),hi({prop:"gridRow"}),hi({prop:"gridAutoFlow"}),hi({prop:"gridAutoColumns"}),hi({prop:"gridAutoRows"}),hi({prop:"gridTemplateColumns"}),hi({prop:"gridTemplateRows"}),hi({prop:"gridTemplateAreas"}),hi({prop:"gridArea"}));function qi(e){return e<=1&&0!==e?100*e+"%":e}Ni(hi({prop:"color",themeKey:"palette",transform:Vi}),hi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vi}),hi({prop:"backgroundColor",themeKey:"palette",transform:Vi}));const Qi=hi({prop:"width",transform:qi}),Ji=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])||oi[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:qi(t)}};return ai(e,e.maxWidth,t)}return null};Ji.filterProps=["maxWidth"];const Xi=hi({prop:"minWidth",transform:qi}),Zi=hi({prop:"height",transform:qi}),ea=hi({prop:"maxHeight",transform:qi}),ta=hi({prop:"minHeight",transform:qi});hi({prop:"size",cssProperty:"width",transform:qi}),hi({prop:"size",cssProperty:"height",transform:qi});Ni(Qi,Ji,Xi,Zi,ea,ta,hi({prop:"boxSizing"}));const na={border:{themeKey:"borders",transform:Ri},borderTop:{themeKey:"borders",transform:Ri},borderRight:{themeKey:"borders",transform:Ri},borderBottom:{themeKey:"borders",transform:Ri},borderLeft:{themeKey:"borders",transform:Ri},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ri},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gi},color:{themeKey:"palette",transform:Vi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vi},backgroundColor:{themeKey:"palette",transform:Vi},p:{style:Ai},pt:{style:Ai},pr:{style:Ai},pb:{style:Ai},pl:{style:Ai},px:{style:Ai},py:{style:Ai},padding:{style:Ai},paddingTop:{style:Ai},paddingRight:{style:Ai},paddingBottom:{style:Ai},paddingLeft:{style:Ai},paddingX:{style:Ai},paddingY:{style:Ai},paddingInline:{style:Ai},paddingInlineStart:{style:Ai},paddingInlineEnd:{style:Ai},paddingBlock:{style:Ai},paddingBlockStart:{style:Ai},paddingBlockEnd:{style:Ai},m:{style:Ti},mt:{style:Ti},mr:{style:Ti},mb:{style:Ti},ml:{style:Ti},mx:{style:Ti},my:{style:Ti},margin:{style:Ti},marginTop:{style:Ti},marginRight:{style:Ti},marginBottom:{style:Ti},marginLeft:{style:Ti},marginX:{style:Ti},marginY:{style:Ti},marginInline:{style:Ti},marginInlineStart:{style:Ti},marginInlineEnd:{style:Ti},marginBlock:{style:Ti},marginBlockStart:{style:Ti},marginBlockEnd:{style:Ti},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:Ki},rowGap:{style:Ui},columnGap:{style:Yi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qi},maxWidth:{style:Ji},minWidth:{transform:qi},height:{transform:qi},maxHeight:{transform:qi},minHeight:{transform:qi},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ra(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=pi(n,l)||{};if(u)return u(o);return ai(o,t,(t=>{let n=fi(c,s,t);return t===n&&"string"==typeof t&&(n=fi(c,s,`${e}${"default"===t?"":ci(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:na;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=li(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=ri(s,e(n,o,i,a));else{const e=ai({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)?s=ri(s,e):s[n]=t({sx:o,theme:i})}else s=ri(s,e(n,o,i,a))})),si(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const oa=ra();function ia(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:{}}oa.filterProps=["sx"];const aa=["breakpoints","palette","spacing","shape"];function la(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=fn(e,aa),l=ti(n),s=function(e=8){if(e.mui)return e;const t=Ci({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 u=Xo({breakpoints:l,direction:"ltr",components:{},palette:pn({mode:"light"},r),spacing:s,shape:pn({},ni,i)},a);return u.applyStyles=ia,u=t.reduce(((e,t)=>Xo(e,t)),u),u.unstable_sxConfig=pn({},na,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return oa({sx:e,theme:this})},u}var sa=Object.freeze({__proto__:null,default:la,private_createBreakpoints:ti,unstable_applyStyles:ia});function ua(e=null){const t=v.useContext(io);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ca=la();function da(e=ca){return ua(e)}function pa({styles:e,themeId:t,defaultTheme:n={}}){const r=da(n),o="function"==typeof e?e(t&&r[t]||r):e;return Go.jsx(Yo,{styles:o})}const fa=["sx"];function ha(e){const{sx:t}=e,n=fn(e,fa),{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:na;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 Qo(n)?pn({},r,n):r}:pn({},r,t),pn({},o,{sx:i})}var ma=Object.freeze({__proto__:null,default:oa,extendSxProp:ha,unstable_createStyleFunctionSx:ra,unstable_defaultSxConfig:na});const ga=e=>e,va=(()=>{let e=ga;return{configure(t){e=t},generate:t=>e(t),reset(){e=ga}}})();function ba(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=ba(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ya(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ba(e))&&(r&&(r+=" "),r+=t);return r}const xa=["className","component"];const _a={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 Ea(e,t,n="Mui"){const r=_a[t];return r?`${n}-${r}`:`${va.generate(e)}-${t}`}function Ca(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Ea(e,t,n)})),r}var Sa,wa,ka={exports:{}},Ta={};function Aa(){if(Sa)return Ta;Sa=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"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case n:case o:case r:case s:case u:case p:return f;default:switch(f=f&&f.$$typeof){case a:case l:case d:case c:case i:return f;default:return h}}case t:return h}}}return Ta.ContextConsumer=i,Ta.ContextProvider=a,Ta.Element=e,Ta.ForwardRef=l,Ta.Fragment=n,Ta.Lazy=d,Ta.Memo=c,Ta.Portal=t,Ta.Profiler=o,Ta.StrictMode=r,Ta.Suspense=s,Ta.SuspenseList=u,Ta.isContextConsumer=function(e){return h(e)===i},Ta.isContextProvider=function(e){return h(e)===a},Ta.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ta.isForwardRef=function(e){return h(e)===l},Ta.isFragment=function(e){return h(e)===n},Ta.isLazy=function(e){return h(e)===d},Ta.isMemo=function(e){return h(e)===c},Ta.isPortal=function(e){return h(e)===t},Ta.isProfiler=function(e){return h(e)===o},Ta.isStrictMode=function(e){return h(e)===r},Ta.isSuspense=function(e){return h(e)===s},Ta.isSuspenseList=function(e){return h(e)===u},Ta.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===s||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===i||e.$$typeof===l||e.$$typeof===f||void 0!==e.getModuleId)},Ta.typeOf=h,Ta}function Na(){return wa||(wa=1,ka.exports=Aa()),ka.exports}var Ra=Na();const Ma=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function La(e){const t=`${e}`.match(Ma);return t&&t[1]||""}function Oa(e,t=""){return e.displayName||e.name||La(e)||t}function Ia(e,t,n){const r=Oa(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Pa=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Oa(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ra.ForwardRef:return Ia(e,e.render,"ForwardRef");case Ra.Memo:return Ia(e,e.type,"memo");default:return}}},getFunctionName:La});const Da=["ownerState"],$a=["variants"],za=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ba(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Fa=la(),Ha=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ja({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Wa(e){return e?(t,n)=>n[e]:null}function Ga(e,t){let{ownerState:n}=t,r=fn(t,Da);const o="function"==typeof e?e(pn({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Ga(e,pn({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=fn(o,$a);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(pn({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(pn({ownerState:n},r,n)):e.style))})),t}return o}const Ka=function(e={}){const{themeId:t,defaultTheme:n=Fa,rootShouldForwardProp:r=Ba,slotShouldForwardProp:o=Ba}=e,i=e=>oa(pn({},e,{theme:ja(pn({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Vo(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Wa(Ha(s))}=a,p=fn(a,za),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Ba;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=Uo(e,pn({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||Qo(e)?r=>Ga(e,pn({},r,{theme:ja({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=ja(pn({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Ga(n,pn({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=ja(pn({},e,{defaultTheme:n,themeId:t}));return Ga({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},pn({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}();function Ya(e,t){const n=pn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=pn({},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]=pn({},i),Object.keys(o).forEach((e=>{n[r][e]=Ya(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Ua({props:e,name:t,defaultTheme:n,themeId:r}){let o=da(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?Ya(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const Va="undefined"!=typeof window?v.useLayoutEffect:v.useEffect;function qa(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Qa=Object.freeze({__proto__:null,default:qa});function Ja(e){if(e.type)return e;if("#"===e.charAt(0))return Ja(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(un(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(un(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Xa(e,t){return e=Ja(e),t=function(e,t=0,n=1){return qa(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 Za(e){return e&&e.ownerDocument||document}function el(e){return Za(e).defaultView||window}function tl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let nl=0;const rl=v["useId".toString()];function ol(e){if(void 0!==rl){const t=rl();return null!=e?e:t}return function(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect((()=>{null==t&&(nl+=1,n(`mui-${nl}`))}),[t]),r}(e)}function il(e){const t=v.useRef(e);return Va((()=>{t.current=e})),v.useRef(((...e)=>(0,t.current)(...e))).current}function al(...e){return v.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{tl(e,t)}))}),e)}const ll={};const sl=[];class ul{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ul}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function cl(){const e=function(e,t){const n=v.useRef(ll);return n.current===ll&&(n.current=e(t)),n}(ul.create).current;return function(e){v.useEffect(e,sl)}(e.disposeEffect),e}let dl=!0,pl=!1;const fl=new ul,hl={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 ml(e){e.metaKey||e.altKey||e.ctrlKey||(dl=!0)}function gl(){dl=!1}function vl(){"hidden"===this.visibilityState&&pl&&(dl=!0)}function bl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return dl||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!hl[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function yl(){const e=v.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ml,!0),t.addEventListener("mousedown",gl,!0),t.addEventListener("pointerdown",gl,!0),t.addEventListener("touchstart",gl,!0),t.addEventListener("visibilitychange",vl,!0))}),[]),t=v.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!bl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(pl=!0,fl.start(100,(()=>{pl=!1})),t.current=!1,!0)},ref:e}}function xl(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 _l(e){return"string"==typeof e}function El(e,t,n){return void 0===e||_l(e)?t:pn({},t,{ownerState:pn({},t.ownerState,n)})}function Cl(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 Sl(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=ya(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=pn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=pn({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=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}(pn({},o,r)),l=Cl(r),s=Cl(o),u=t(a),c=ya(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=pn({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=pn({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const wl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kl(e){var t;return parseInt(v.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Tl=v.createContext(null);function Al(){return v.useContext(Tl)}var Nl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Rl(e){const{children:t,theme:n}=e,r=Al(),o=v.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return pn({},e,t)}(r,n);return null!=e&&(e[Nl]=null!==r),e}),[n,r]);return Go.jsx(Tl.Provider,{value:o,children:t})}const Ml=["value"],Ll=v.createContext();function Ol(e){let{value:t}=e,n=fn(e,Ml);return Go.jsx(Ll.Provider,pn({value:null==t||t},n))}const Il=v.createContext(void 0);function Pl({value:e,children:t}){return Go.jsx(Il.Provider,{value:e,children:t})}function Dl({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?Ya(o.defaultProps,r):o.styleOverrides||o.variants?r:Ya(o,r)}({props:e,name:t,theme:{components:v.useContext(Il)}})}const $l={};function zl(e,t,n,r=!1){return v.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?pn({},t,{[e]:i}):i;return r?()=>a:a}return pn({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Bl(e){const{children:t,theme:n,themeId:r}=e,o=ua($l),i=Al()||$l,a=zl(r,o,n),l=zl(r,i,n,!0),s="rtl"===a.direction;return Go.jsx(Rl,{theme:l,children:Go.jsx(io.Provider,{value:a,children:Go.jsx(Ol,{value:s,children:Go.jsx(Pl,{value:null==a?void 0:a.components,children:t})})})})}const Fl=["component","direction","spacing","divider","children","className","useFlexGap"],Hl=la(),jl=Ka("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Wl(e){return Ua({props:e,name:"MuiStack",defaultTheme:Hl})}function Gl(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(v.cloneElement(t,{key:`separator-${o}`})),e)),[])}const Kl=({ownerState:e,theme:t})=>{let n=pn({display:"flex",flexDirection:"column"},ai({theme:t},ui({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=Ci(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=ui({values:e.direction,base:o}),a=ui({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=Xo(n,ai({theme:t},a,((t,n)=>{return e.useFlexGap?{gap:Si(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]}`]:Si(r,t)}};var o})))}return n=function(e,...t){const n=li(e),r=[n,...t].reduce(((e,t)=>Xo(e,t)),{});return si(Object.keys(n),r)}(t.breakpoints,n),n};var Yl,Ul={},Vl={exports:{}};function ql(){return Yl||(Yl=1,(e=Vl).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),Vl.exports;var e}var Ql,Jl=M(cn),Xl=M(Qa);function Zl(){if(Ql)return Ul;Ql=1;var e=ql();Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.alpha=c,Ul.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),s=i(t),u=[o(a.values[0],s.values[0]),o(a.values[1],s.values[1]),o(a.values[2],s.values[2])];return l({type:"rgb",values:u})},Ul.colorChannel=void 0,Ul.darken=d,Ul.decomposeColor=i,Ul.emphasize=f,Ul.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Ul.getLuminance=u,Ul.hexToRgb=o,Ul.hslToRgb=s,Ul.lighten=p,Ul.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},Ul.private_safeColorChannel=void 0,Ul.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},Ul.private_safeEmphasize=function(e,t,n){try{return f(e,t)}catch(t){return e}},Ul.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},Ul.recomposeColor=l,Ul.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(Jl),n=e(Xl);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 a,l=e.substring(n+1,e.length-1);if("color"===r){if(l=l.split(" "),a=l.shift(),4===l.length&&"/"===l[3].charAt(0)&&(l[3]=l[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else l=l.split(",");return l=l.map((e=>parseFloat(e))),{type:r,values:l,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Ul.colorChannel=a;function l(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 s(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),l({type:u,values:c})}function u(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(s(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 c(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,l(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 l(e)}function p(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 l(e)}function f(e,t=.15){return u(e)>.5?d(e,t):p(e,t)}return Ul.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},Ul}var es=Zl();const ts=["mode","contrastThreshold","tonalOffset"],ns={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:At.white,default:At.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}},rs={text:{primary:At.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:At.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 os(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=es.lighten(e.main,o):"dark"===t&&(e.dark=es.darken(e.main,i)))}function is(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=fn(e,ts),i=e.primary||function(e="light"){return"dark"===e?{main:Ht,light:Ft,dark:jt}:{main:Wt,light:jt,dark:Gt}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Pt,light:It,dark:$t}:{main:zt,light:Dt,dark:Bt}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Mt,light:Nt,dark:Lt}:{main:Lt,light:Rt,dark:Ot}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Yt,light:Kt,dark:Vt}:{main:Vt,light:Ut,dark:qt}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Jt,light:Qt,dark:Zt}:{main:en,light:Xt,dark:tn}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:rn,light:nn,dark:an}:{main:"#ed6c02",light:on,dark:ln}}(t);function d(e){return es.getContrastRatio(e,rs.text.primary)>=n?rs.text.primary:ns.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=pn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(un(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(un(12,t?` (${t})`:"",JSON.stringify(e.main)));return os(e,"light",o,r),os(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:rs,light:ns};return Xo(pn({common:pn({},At),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:sn,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const as=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ls={textTransform:"uppercase"},ss='"Roboto", "Helvetica", "Arial", sans-serif';function us(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=ss,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=fn(n,as),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return pn({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===ss?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,ls),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ls),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xo(pn({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function cs(...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 ds=["none",cs(0,2,1,-1,0,1,1,0,0,1,3,0),cs(0,3,1,-2,0,2,2,0,0,1,5,0),cs(0,3,3,-2,0,3,4,0,0,1,8,0),cs(0,2,4,-1,0,4,5,0,0,1,10,0),cs(0,3,5,-1,0,5,8,0,0,1,14,0),cs(0,3,5,-1,0,6,10,0,0,1,18,0),cs(0,4,5,-2,0,7,10,1,0,2,16,1),cs(0,5,5,-3,0,8,10,1,0,3,14,2),cs(0,5,6,-3,0,9,12,1,0,3,16,2),cs(0,6,6,-3,0,10,14,1,0,4,18,3),cs(0,6,7,-4,0,11,15,1,0,4,20,3),cs(0,7,8,-4,0,12,17,2,0,5,22,4),cs(0,7,8,-4,0,13,19,2,0,5,24,4),cs(0,7,9,-4,0,14,21,2,0,5,26,4),cs(0,8,9,-5,0,15,22,2,0,6,28,5),cs(0,8,10,-5,0,16,24,2,0,6,30,5),cs(0,8,11,-5,0,17,26,2,0,6,32,5),cs(0,9,11,-5,0,18,28,2,0,7,34,6),cs(0,9,12,-6,0,19,29,2,0,7,36,6),cs(0,10,13,-6,0,20,31,3,0,8,38,7),cs(0,10,13,-6,0,21,33,3,0,8,40,7),cs(0,10,14,-6,0,22,35,3,0,8,42,7),cs(0,11,14,-7,0,23,36,3,0,9,44,8),cs(0,11,15,-7,0,24,38,3,0,9,46,8)],ps=["duration","easing","delay"],fs={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)"},hs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ms(e){return`${Math.round(e)}ms`}function gs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function vs(e){const t=pn({},fs,e.easing),n=pn({},hs,e.duration);return pn({getAutoHeightDuration:gs,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return fn(r,ps),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ms(o)} ${i} ${"string"==typeof a?a:ms(a)}`)).join(",")}},e,{easing:t,duration:n})}const bs={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ys=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function xs(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=fn(e,ys);if(e.vars&&void 0===e.generateCssVars)throw new Error(un(18));const l=is(r),s=la(e);let u=Xo(s,{mixins:(c=s.breakpoints,d=n,pn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:ds.slice(),typography:us(l,i),transitions:vs(o),zIndex:pn({},bs)});var c,d;return u=Xo(u,a),u=t.reduce(((e,t)=>Xo(e,t)),u),u.unstable_sxConfig=pn({},na,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return oa({sx:e,theme:this})},u}const _s=xs();function Es(){const e=da(_s);return e[dn]||e}var Cs,Ss={},ws={exports:{}};var ks,Ts={exports:{}};var As,Ns=M(qo),Rs=M(Zo),Ms=M(di),Ls=M(Pa),Os=M(sa),Is=M(ma);function Ps(){if(As)return Ss;As=1;var e=ql();Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:s=p,slotShouldForwardProp:u=p}=e,d=e=>(0,l.default)((0,n.default)({},e,{theme:m((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return d.__mui_systemSx=!0,(e,l={})=>{(0,o.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:f,slot:b,skipVariantsResolver:y,skipSx:x,overridesResolver:_=g(h(b))}=l,E=(0,r.default)(l,c),C=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,S=x||!1;let w=p;"Root"===b||"root"===b?w=s:b?w=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(w=void 0);const k=(0,o.default)(e,(0,n.default)({shouldForwardProp:w,label:undefined},E)),T=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>v(e,(0,n.default)({},r,{theme:m({theme:r.theme,defaultTheme:a,themeId:t})})):e,A=(r,...o)=>{let i=T(r);const l=o?o.map(T):[];f&&_&&l.push((e=>{const r=m((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[f]||!r.components[f].styleOverrides)return null;const o=r.components[f].styleOverrides,i={};return Object.entries(o).forEach((([t,o])=>{i[t]=v(o,(0,n.default)({},e,{theme:r}))})),_(e,i)})),f&&!C&&l.push((e=>{var r;const o=m((0,n.default)({},e,{defaultTheme:a,themeId:t}));return v({variants:null==o||null==(r=o.components)||null==(r=r[f])?void 0:r.variants},(0,n.default)({},e,{theme:o}))})),S||l.push(d);const s=l.length-o.length;if(Array.isArray(r)&&s>0){const e=new Array(s).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=k(i,...l);return e.muiName&&(u.muiName=e.muiName),u};return k.withConfig&&(A.withConfig=k.withConfig),A}},Ss.shouldForwardProp=p,Ss.systemDefaultTheme=void 0;var t,n=e((Cs||(Cs=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}(ws)),ws.exports)),r=e((ks||(ks=1,(t=Ts).exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},t.exports.__esModule=!0,t.exports.default=t.exports),Ts.exports)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(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 a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Ns),i=Rs;e(Ms),e(Ls);var a=e(Os),l=e(Is);const s=["ownerState"],u=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const f=Ss.systemDefaultTheme=(0,a.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,t){let{ownerState:o}=t,i=(0,r.default)(t,s);const a="function"==typeof e?e((0,n.default)({ownerState:o},i)):e;if(Array.isArray(a))return a.flatMap((e=>v(e,(0,n.default)({ownerState:o},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,r.default)(a,u);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,n.default)({ownerState:o},i,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&i[t]!==e.props[t]&&(r=!1)})),r&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,n.default)({ownerState:o},i,o)):e.style))})),t}return a}return Ss}const Ds=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,$s=R(Ps())({themeId:dn,defaultTheme:_s,rootShouldForwardProp:Ds}),zs=["theme"];function Bs(e){let{theme:t}=e,n=fn(e,zs);const r=t[dn];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=pn({},r,{vars:null}):t&&!t.vars&&(o=pn({},t,{vars:null}))),Go.jsx(Bl,pn({},n,{themeId:r?dn:void 0,theme:o}))}const Fs=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Hs(e){return Dl(e)}function js(e,t){return js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},js(e,t)}function Ws(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,js(e,t)}var Gs=!1,Ks=g.createContext(null),Ys="unmounted",Us="exited",Vs="entering",qs="entered",Qs="exiting",Js=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=Us,r.appearStatus=Vs):o=qs:o=t.unmountOnExit||t.mountOnEnter?Ys:Us,r.state={status:o},r.nextCallback=null,r}Ws(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ys?{status:Us}: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!==Vs&&n!==qs&&(t=Vs):n!==Vs&&n!==qs||(t=Qs)}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===Vs){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:f.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Us&&this.setState({status:Ys})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[f.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Gs?this.safeSetState({status:qs},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Vs},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:qs},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:f.findDOMNode(this);t&&!Gs?(this.props.onExit(r),this.safeSetState({status:Qs},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Us},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Us},(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:f.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],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ys)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=fn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return g.createElement(Ks.Provider,{value:null},"function"==typeof n?n(e,r):g.cloneElement(g.Children.only(n),r))},t}(g.Component);function Xs(){}function Zs(e,t){var n=Object.create(null);return e&&E.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&x(e)?t(e):e}(e)})),n}function eu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function tu(e,t,n){var r=Zs(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 a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(x(a)){var l=i in t,s=i in r,u=t[i],c=x(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&x(u)&&(o[i]=_(a,{onExited:n.bind(null,a),in:u.props.in,exit:eu(a,"exit",e),enter:eu(a,"enter",e)})):o[i]=_(a,{in:!1}):o[i]=_(a,{onExited:n.bind(null,a),in:!0,exit:eu(a,"exit",e),enter:eu(a,"enter",e)})}})),o}Js.contextType=Ks,Js.propTypes={},Js.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xs,onEntering:Xs,onEntered:Xs,onExit:Xs,onExiting:Xs,onExited:Xs},Js.UNMOUNTED=Ys,Js.EXITED=Us,Js.ENTERING=Vs,Js.ENTERED=qs,Js.EXITING=Qs;var nu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ru=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ws(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,Zs(n.children,(function(e){return _(e,{onExited:r.bind(null,e),in:!0,appear:eu(e,"appear",n),enter:eu(e,"enter",n),exit:eu(e,"exit",n)})}))):tu(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Zs(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=pn({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=fn(e,["component","childFactory"]),o=this.state.contextValue,i=nu(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?g.createElement(Ks.Provider,{value:o},i):g.createElement(Ks.Provider,{value:o},g.createElement(t,r,i))},t}(g.Component);ru.propTypes={},ru.defaultProps={component:"div",childFactory:function(e){return e}};function ou(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function iu(e){return Ea("MuiPaper",e)}Ca("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 au=["className","component","elevation","square","variant"],lu=$s("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 pn({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&&pn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${es.alpha("#fff",Fs(t.elevation))}, ${es.alpha("#fff",Fs(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),su=v.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=fn(n,au),u=pn({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return xl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},iu,o)})(u);return Go.jsx(lu,pn({as:o,ownerState:u,className:ya(c.root,r),ref:t},s))}));const uu=Ca("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),cu=["center","classes","className"];let du,pu,fu,hu,mu=e=>e;const gu=So(du||(du=mu`
|
|
14
|
+
*/function ii(e,t){return Ho(e,t)}const ai=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},li=[];function si(e){return li[0]=e,eo(li)}var ui=Object.freeze({__proto__:null,GlobalStyles:oi,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=v.useMemo((()=>{const e=`${t}-${n}`;if("object"==typeof document&&ri.has(e))return ri.get(e);const r=function(e,t){const n=kr({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 ri.set(e,r),r}),[t,n]);return t||n?ni.jsx(io,{value:o,children:r}):r},ThemeContext:lo,css:wo,default:ii,internal_processStyles:ai,internal_serializeStyles:si,keyframes:ko});function ci(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 di(e){if(v.isValidElement(e)||!ci(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=di(e[n])})),t}function pi(e,t,n={clone:!0}){const r=n.clone?pn({},e):e;return ci(e)&&ci(t)&&Object.keys(t).forEach((o=>{v.isValidElement(t[o])?r[o]=t[o]:ci(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ci(e[o])?r[o]=pi(e[o],t[o],n):n.clone?r[o]=ci(t[o])?di(t[o]):t[o]:r[o]=t[o]})),r}var fi=Object.freeze({__proto__:null,default:pi,isPlainObject:ci});const hi=["values","unit","step"];function gi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=fn(e,hi),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)=>pn({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return pn({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const mi={borderRadius:4};function bi(e,t){return t?pi(e,t,{clone:!1}):e}const yi={xs:0,sm:600,md:900,lg:1200,xl:1536},xi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yi[e]}px)`};function _i(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||xi;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||xi;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||yi).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Ci(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}function Ei(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Si({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 wi(e){if("string"!=typeof e)throw new Error(un(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ki=Object.freeze({__proto__:null,default:wi});function Ri(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 Ai(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Ri(e,n)||r,t&&(o=t(o,r,e)),o}function Ti(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],a=Ri(e.theme,r)||{};return _i(e,i,(e=>{let r=Ai(a,o,e);return e===r&&"string"==typeof e&&(r=Ai(a,o,`${t}${"default"===e?"":wi(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Ni={m:"margin",p:"padding"},Oi={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Li={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mi=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Li[e])return[e];e=Li[e]}const[t,n]=e.split(""),r=Ni[t],o=Oi[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Pi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ii=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Di(e,t,n,r){var o;const i=null!=(o=Ri(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 $i(e){return Di(e,"spacing",8)}function zi(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 Bi(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=zi(t,n),e)),{})}(Mi(n),r);return _i(e,e[n],o)}function Fi(e,t){const n=$i(e.theme);return Object.keys(e).map((r=>Bi(e,t,r,n))).reduce(bi,{})}function Hi(e){return Fi(e,Pi)}function ji(e){return Fi(e,Ii)}function Gi(...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]?bi(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Wi(e){return"number"!=typeof e?e:`${e}px solid`}function Yi(e,t){return Ti({prop:e,themeKey:"borders",transform:t})}Hi.propTypes={},Hi.filterProps=Pi,ji.propTypes={},ji.filterProps=Ii;const Ki=Yi("border",Wi),Ui=Yi("borderTop",Wi),Vi=Yi("borderRight",Wi),qi=Yi("borderBottom",Wi),Xi=Yi("borderLeft",Wi),Ji=Yi("borderColor"),Qi=Yi("borderTopColor"),Zi=Yi("borderRightColor"),ea=Yi("borderBottomColor"),ta=Yi("borderLeftColor"),na=Yi("outline",Wi),ra=Yi("outlineColor"),oa=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Di(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:zi(t,e)});return _i(e,e.borderRadius,n)}return null};oa.propTypes={},oa.filterProps=["borderRadius"],Gi(Ki,Ui,Vi,qi,Xi,Ji,Qi,Zi,ea,ta,oa,na,ra);const ia=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Di(e.theme,"spacing",8),n=e=>({gap:zi(t,e)});return _i(e,e.gap,n)}return null};ia.propTypes={},ia.filterProps=["gap"];const aa=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Di(e.theme,"spacing",8),n=e=>({columnGap:zi(t,e)});return _i(e,e.columnGap,n)}return null};aa.propTypes={},aa.filterProps=["columnGap"];const la=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Di(e.theme,"spacing",8),n=e=>({rowGap:zi(t,e)});return _i(e,e.rowGap,n)}return null};la.propTypes={},la.filterProps=["rowGap"];function sa(e,t){return"grey"===t?t:e}Gi(ia,aa,la,Ti({prop:"gridColumn"}),Ti({prop:"gridRow"}),Ti({prop:"gridAutoFlow"}),Ti({prop:"gridAutoColumns"}),Ti({prop:"gridAutoRows"}),Ti({prop:"gridTemplateColumns"}),Ti({prop:"gridTemplateRows"}),Ti({prop:"gridTemplateAreas"}),Ti({prop:"gridArea"}));function ua(e){return e<=1&&0!==e?100*e+"%":e}Gi(Ti({prop:"color",themeKey:"palette",transform:sa}),Ti({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sa}),Ti({prop:"backgroundColor",themeKey:"palette",transform:sa}));const ca=Ti({prop:"width",transform:ua}),da=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])||yi[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:ua(t)}};return _i(e,e.maxWidth,t)}return null};da.filterProps=["maxWidth"];const pa=Ti({prop:"minWidth",transform:ua}),fa=Ti({prop:"height",transform:ua}),ha=Ti({prop:"maxHeight",transform:ua}),ga=Ti({prop:"minHeight",transform:ua});Ti({prop:"size",cssProperty:"width",transform:ua}),Ti({prop:"size",cssProperty:"height",transform:ua});Gi(ca,da,pa,fa,ha,ga,Ti({prop:"boxSizing"}));const ma={border:{themeKey:"borders",transform:Wi},borderTop:{themeKey:"borders",transform:Wi},borderRight:{themeKey:"borders",transform:Wi},borderBottom:{themeKey:"borders",transform:Wi},borderLeft:{themeKey:"borders",transform:Wi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Wi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:oa},color:{themeKey:"palette",transform:sa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sa},backgroundColor:{themeKey:"palette",transform:sa},p:{style:ji},pt:{style:ji},pr:{style:ji},pb:{style:ji},pl:{style:ji},px:{style:ji},py:{style:ji},padding:{style:ji},paddingTop:{style:ji},paddingRight:{style:ji},paddingBottom:{style:ji},paddingLeft:{style:ji},paddingX:{style:ji},paddingY:{style:ji},paddingInline:{style:ji},paddingInlineStart:{style:ji},paddingInlineEnd:{style:ji},paddingBlock:{style:ji},paddingBlockStart:{style:ji},paddingBlockEnd:{style:ji},m:{style:Hi},mt:{style:Hi},mr:{style:Hi},mb:{style:Hi},ml:{style:Hi},mx:{style:Hi},my:{style:Hi},margin:{style:Hi},marginTop:{style:Hi},marginRight:{style:Hi},marginBottom:{style:Hi},marginLeft:{style:Hi},marginX:{style:Hi},marginY:{style:Hi},marginInline:{style:Hi},marginInlineStart:{style:Hi},marginInlineEnd:{style:Hi},marginBlock:{style:Hi},marginBlockStart:{style:Hi},marginBlockEnd:{style:Hi},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:ia},rowGap:{style:la},columnGap:{style:aa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ua},maxWidth:{style:da},minWidth:{transform:ua},height:{transform:ua},maxHeight:{transform:ua},minHeight:{transform:ua},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function va(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ri(n,l)||{};if(u)return u(o);return _i(o,t,(t=>{let n=Ai(c,s,t);return t===n&&"string"==typeof t&&(n=Ai(c,s,`${e}${"default"===t?"":wi(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const l=null!=(r=i.unstable_sxConfig)?r:ma;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=Ci(i.breakpoints),s=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],s=i,"function"==typeof a?a(s):a);var a,s;if(null!=o)if("object"==typeof o)if(l[n])u=bi(u,e(n,o,i,l));else{const e=_i({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)?u=bi(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=bi(u,e(n,o,i,l))})),!a&&i.modularCssLayers?{"@layer sx":Ei(s,u)}:Ei(s,u)}return Array.isArray(o)?o.map(s):s(o)}}const ba=va();function ya(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:{}}ba.filterProps=["sx"];const xa=["breakpoints","palette","spacing","shape"];function _a(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=fn(e,xa),l=gi(n),s=function(e=8){if(e.mui)return e;const t=$i({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 u=pi({breakpoints:l,direction:"ltr",components:{},palette:pn({mode:"light"},r),spacing:s,shape:pn({},mi,i)},a);return u.applyStyles=ya,u=t.reduce(((e,t)=>pi(e,t)),u),u.unstable_sxConfig=pn({},ma,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ba({sx:e,theme:this})},u}var Ca=Object.freeze({__proto__:null,default:_a,private_createBreakpoints:gi,unstable_applyStyles:ya});function Ea(e=null){const t=v.useContext(lo);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Sa=_a();function wa(e=Sa){return Ea(e)}function ka(e){const t=si(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Ra({styles:e,themeId:t,defaultTheme:n={}}){const r=wa(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>ka("function"==typeof e?e(o):e))):ka(i)),ni.jsx(oi,{styles:i})}const Aa=["sx"];function Ta(e){const{sx:t}=e,n=fn(e,Aa),{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:ma;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 ci(n)?pn({},r,n):r}:pn({},r,t),pn({},o,{sx:i})}var Na=Object.freeze({__proto__:null,default:ba,extendSxProp:Ta,unstable_createStyleFunctionSx:va,unstable_defaultSxConfig:ma});const Oa=e=>e,La=(()=>{let e=Oa;return{configure(t){e=t},generate:t=>e(t),reset(){e=Oa}}})();function Ma(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=Ma(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pa(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ma(e))&&(r&&(r+=" "),r+=t);return r}const Ia=["className","component"];const Da={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 $a(e,t,n="Mui"){const r=Da[t];return r?`${n}-${r}`:`${La.generate(e)}-${t}`}function za(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=$a(e,t,n)})),r}var Ba,Fa,Ha={exports:{}},ja={};function Ga(){if(Ba)return ja;Ba=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"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case n:case o:case r:case s:case u:case p:return f;default:switch(f=f&&f.$$typeof){case a:case l:case d:case c:case i:return f;default:return h}}case t:return h}}}return ja.ContextConsumer=i,ja.ContextProvider=a,ja.Element=e,ja.ForwardRef=l,ja.Fragment=n,ja.Lazy=d,ja.Memo=c,ja.Portal=t,ja.Profiler=o,ja.StrictMode=r,ja.Suspense=s,ja.SuspenseList=u,ja.isContextConsumer=function(e){return h(e)===i},ja.isContextProvider=function(e){return h(e)===a},ja.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},ja.isForwardRef=function(e){return h(e)===l},ja.isFragment=function(e){return h(e)===n},ja.isLazy=function(e){return h(e)===d},ja.isMemo=function(e){return h(e)===c},ja.isPortal=function(e){return h(e)===t},ja.isProfiler=function(e){return h(e)===o},ja.isStrictMode=function(e){return h(e)===r},ja.isSuspense=function(e){return h(e)===s},ja.isSuspenseList=function(e){return h(e)===u},ja.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===s||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===i||e.$$typeof===l||e.$$typeof===f||void 0!==e.getModuleId)},ja.typeOf=h,ja}function Wa(){return Fa||(Fa=1,Ha.exports=Ga()),Ha.exports}var Ya=Wa();const Ka=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ua(e){const t=`${e}`.match(Ka);return t&&t[1]||""}function Va(e,t=""){return e.displayName||e.name||Ua(e)||t}function qa(e,t,n){const r=Va(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Xa=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Va(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ya.ForwardRef:return qa(e,e.render,"ForwardRef");case Ya.Memo:return qa(e,e.type,"memo");default:return}}},getFunctionName:Ua});const Ja=["ownerState"],Qa=["variants"],Za=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function el(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function tl(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const nl=_a(),rl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ol({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function il(e){return e?(t,n)=>n[e]:null}function al(e,t,n){let{ownerState:r}=t,o=fn(t,Ja);const i="function"==typeof e?e(pn({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap((e=>al(e,pn({ownerState:r},o),n)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=fn(i,Qa);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props(pn({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(pn({ownerState:r},o,r)):e.style;t.push(n?tl(si(i),n):i)}})),t}return n?tl(si(i),n):i}const ll=function(e={}){const{themeId:t,defaultTheme:n=nl,rootShouldForwardProp:r=el,slotShouldForwardProp:o=el}=e,i=e=>ba(pn({},e,{theme:ol(pn({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ai(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=il(rl(s))}=a,p=fn(a,Za),f=l&&l.startsWith("Mui")||s?"components":"custom",h=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,g=c||!1;let m=el;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=ii(e,pn({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||ci(e)?r=>{const o=ol({theme:r.theme,defaultTheme:n,themeId:t});return al(e,pn({},r,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=ol(pn({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=al(n,pn({},e,{theme:r}),r.modularCssLayers?"theme":void 0)})),d(e,i)})),l&&!h&&s.push((e=>{var r;const o=ol(pn({},e,{defaultTheme:n,themeId:t}));return al({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},pn({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),g||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=v(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(y.withConfig=v.withConfig),y}}();function sl(e,t){const n=pn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=pn({},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]=pn({},i),Object.keys(o).forEach((e=>{n[r][e]=sl(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function ul({props:e,name:t,defaultTheme:n,themeId:r}){let o=wa(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?sl(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const cl="undefined"!=typeof window?v.useLayoutEffect:v.useEffect;function dl(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var pl=Object.freeze({__proto__:null,default:dl});function fl(e){if(e.type)return e;if("#"===e.charAt(0))return fl(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(un(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(un(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function hl(e,t){return e=fl(e),t=function(e,t=0,n=1){return dl(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 gl(e){return e&&e.ownerDocument||document}function ml(e){return gl(e).defaultView||window}function vl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let bl=0;const yl=v["useId".toString()];function xl(e){if(void 0!==yl){const t=yl();return null!=e?e:t}return function(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect((()=>{null==t&&(bl+=1,n(`mui-${bl}`))}),[t]),r}(e)}function _l(e){const t=v.useRef(e);return cl((()=>{t.current=e})),v.useRef(((...e)=>(0,t.current)(...e))).current}function Cl(...e){return v.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{vl(e,t)}))}),e)}const El={};const Sl=[];class wl{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wl}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function kl(){const e=function(e,t){const n=v.useRef(El);return n.current===El&&(n.current=e(t)),n}(wl.create).current;return function(e){v.useEffect(e,Sl)}(e.disposeEffect),e}let Rl=!0,Al=!1;const Tl=new wl,Nl={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 Ol(e){e.metaKey||e.altKey||e.ctrlKey||(Rl=!0)}function Ll(){Rl=!1}function Ml(){"hidden"===this.visibilityState&&Al&&(Rl=!0)}function Pl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Rl||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Nl[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Il(){const e=v.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ol,!0),t.addEventListener("mousedown",Ll,!0),t.addEventListener("pointerdown",Ll,!0),t.addEventListener("touchstart",Ll,!0),t.addEventListener("visibilitychange",Ml,!0))}),[]),t=v.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Pl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Al=!0,Tl.start(100,(()=>{Al=!1})),t.current=!1,!0)},ref:e}}function Dl(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 $l(e){return"string"==typeof e}function zl(e,t,n){return void 0===e||$l(e)?t:pn({},t,{ownerState:pn({},t.ownerState,n)})}function Bl(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 Fl(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Pa(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=pn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=pn({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=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}(pn({},o,r)),l=Bl(r),s=Bl(o),u=t(a),c=Pa(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=pn({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=pn({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const Hl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function jl(e){var t;return parseInt(v.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Gl=v.createContext(null);function Wl(){return v.useContext(Gl)}var Yl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Kl(e){const{children:t,theme:n}=e,r=Wl(),o=v.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return pn({},e,t)}(r,n);return null!=e&&(e[Yl]=null!==r),e}),[n,r]);return ni.jsx(Gl.Provider,{value:o,children:t})}const Ul=["value"],Vl=v.createContext();function ql(e){let{value:t}=e,n=fn(e,Ul);return ni.jsx(Vl.Provider,pn({value:null==t||t},n))}const Xl=v.createContext(void 0);function Jl({value:e,children:t}){return ni.jsx(Xl.Provider,{value:e,children:t})}function Ql({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?sl(o.defaultProps,r):o.styleOverrides||o.variants?r:sl(o,r)}({props:e,name:t,theme:{components:v.useContext(Xl)}})}const Zl={};function es(e,t,n,r=!1){return v.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?pn({},t,{[e]:i}):i;return r?()=>a:a}return pn({},t,e?{[e]:n}:n)}),[e,t,n,r])}function ts(e){const{children:t,theme:n,themeId:r}=e,o=Ea(Zl),i=Wl()||Zl,a=es(r,o,n),l=es(r,i,n,!0),s="rtl"===a.direction,u=function(e){const t=Ea(),n=xl()||"",{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};`:"",cl((()=>{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?ni.jsx(Ra,{styles:o}):null}(a);return ni.jsx(Kl,{theme:l,children:ni.jsx(lo.Provider,{value:a,children:ni.jsx(ql,{value:s,children:ni.jsxs(Jl,{value:null==a?void 0:a.components,children:[u,t]})})})})}function ns(e){return ns="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},ns(e)}function rs(e){var t=function(e,t){if("object"!=ns(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=ns(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ns(t)?t:t+""}const os=["component","direction","spacing","divider","children","className","useFlexGap"],is=_a(),as=ll("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ls(e){return ul({props:e,name:"MuiStack",defaultTheme:is})}function ss(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(v.cloneElement(t,{key:`separator-${o}`})),e)),[])}const us=({ownerState:e,theme:t})=>{let n=pn({display:"flex",flexDirection:"column"},_i({theme:t},Si({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=$i(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=Si({values:e.direction,base:o}),a=Si({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=pi(n,_i({theme:t},a,((t,n)=>{return e.useFlexGap?{gap:zi(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]}`]:zi(r,t)}};var o})))}return n=function(e,...t){const n=Ci(e),r=[n,...t].reduce(((e,t)=>pi(e,t)),{});return Ei(Object.keys(n),r)}(t.breakpoints,n),n};function cs(e,t){return pn({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ds,ps={},fs={exports:{}};function hs(){return ds||(ds=1,(e=fs).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),fs.exports;var e}var gs,ms=O(cn),vs=O(pl);function bs(){if(gs)return ps;gs=1;var e=hs();Object.defineProperty(ps,"__esModule",{value:!0}),ps.alpha=c,ps.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),s=i(t),u=[o(a.values[0],s.values[0]),o(a.values[1],s.values[1]),o(a.values[2],s.values[2])];return l({type:"rgb",values:u})},ps.colorChannel=void 0,ps.darken=d,ps.decomposeColor=i,ps.emphasize=f,ps.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},ps.getLuminance=u,ps.hexToRgb=o,ps.hslToRgb=s,ps.lighten=p,ps.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},ps.private_safeColorChannel=void 0,ps.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},ps.private_safeEmphasize=function(e,t,n){try{return f(e,t)}catch(t){return e}},ps.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},ps.recomposeColor=l,ps.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(ms),n=e(vs);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 a,l=e.substring(n+1,e.length-1);if("color"===r){if(l=l.split(" "),a=l.shift(),4===l.length&&"/"===l[3].charAt(0)&&(l[3]=l[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else l=l.split(",");return l=l.map((e=>parseFloat(e))),{type:r,values:l,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};ps.colorChannel=a;function l(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 s(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),l({type:u,values:c})}function u(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(s(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 c(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,l(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 l(e)}function p(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 l(e)}function f(e,t=.15){return u(e)>.5?d(e,t):p(e,t)}return ps.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},ps}var ys=bs();const xs=["mode","contrastThreshold","tonalOffset"],_s={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:At.white,default:At.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}},Cs={text:{primary:At.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:At.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 Es(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=ys.lighten(e.main,o):"dark"===t&&(e.dark=ys.darken(e.main,i)))}function Ss(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=fn(e,xs),i=e.primary||function(e="light"){return"dark"===e?{main:Ht,light:Ft,dark:jt}:{main:Gt,light:jt,dark:Wt}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:It,light:Pt,dark:$t}:{main:zt,light:Dt,dark:Bt}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Ot,light:Tt,dark:Lt}:{main:Lt,light:Nt,dark:Mt}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Kt,light:Yt,dark:Vt}:{main:Vt,light:Ut,dark:qt}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Jt,light:Xt,dark:Zt}:{main:en,light:Qt,dark:tn}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:rn,light:nn,dark:an}:{main:"#ed6c02",light:on,dark:ln}}(t);function d(e){return ys.getContrastRatio(e,Cs.text.primary)>=n?Cs.text.primary:_s.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=pn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(un(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(un(12,t?` (${t})`:"",JSON.stringify(e.main)));return Es(e,"light",o,r),Es(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Cs,light:_s};return pi(pn({common:pn({},At),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:sn,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const ws=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ks={textTransform:"uppercase"},Rs='"Roboto", "Helvetica", "Arial", sans-serif';function As(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Rs,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=fn(n,ws),f=o/14,h=d||(e=>e/u*f+"rem"),g=(e,t,n,o,i)=>{return pn({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Rs?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(l,14,1.75,.4,ks),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,ks),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return pi(pn({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},m),p,{clone:!1})}function Ts(...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 Ns=["none",Ts(0,2,1,-1,0,1,1,0,0,1,3,0),Ts(0,3,1,-2,0,2,2,0,0,1,5,0),Ts(0,3,3,-2,0,3,4,0,0,1,8,0),Ts(0,2,4,-1,0,4,5,0,0,1,10,0),Ts(0,3,5,-1,0,5,8,0,0,1,14,0),Ts(0,3,5,-1,0,6,10,0,0,1,18,0),Ts(0,4,5,-2,0,7,10,1,0,2,16,1),Ts(0,5,5,-3,0,8,10,1,0,3,14,2),Ts(0,5,6,-3,0,9,12,1,0,3,16,2),Ts(0,6,6,-3,0,10,14,1,0,4,18,3),Ts(0,6,7,-4,0,11,15,1,0,4,20,3),Ts(0,7,8,-4,0,12,17,2,0,5,22,4),Ts(0,7,8,-4,0,13,19,2,0,5,24,4),Ts(0,7,9,-4,0,14,21,2,0,5,26,4),Ts(0,8,9,-5,0,15,22,2,0,6,28,5),Ts(0,8,10,-5,0,16,24,2,0,6,30,5),Ts(0,8,11,-5,0,17,26,2,0,6,32,5),Ts(0,9,11,-5,0,18,28,2,0,7,34,6),Ts(0,9,12,-6,0,19,29,2,0,7,36,6),Ts(0,10,13,-6,0,20,31,3,0,8,38,7),Ts(0,10,13,-6,0,21,33,3,0,8,40,7),Ts(0,10,14,-6,0,22,35,3,0,8,42,7),Ts(0,11,14,-7,0,23,36,3,0,9,44,8),Ts(0,11,15,-7,0,24,38,3,0,9,46,8)],Os=["duration","easing","delay"],Ls={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)"},Ms={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ps(e){return`${Math.round(e)}ms`}function Is(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ds(e){const t=pn({},Ls,e.easing),n=pn({},Ms,e.duration);return pn({getAutoHeightDuration:Is,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return fn(r,Os),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ps(o)} ${i} ${"string"==typeof a?a:Ps(a)}`)).join(",")}},e,{easing:t,duration:n})}const $s={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zs=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Bs(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=fn(e,zs);if(e.vars&&void 0===e.generateCssVars)throw new Error(un(18));const l=Ss(r),s=_a(e);let u=pi(s,{mixins:cs(s.breakpoints,n),palette:l,shadows:Ns.slice(),typography:As(l,i),transitions:Ds(o),zIndex:pn({},$s)});return u=pi(u,a),u=t.reduce(((e,t)=>pi(e,t)),u),u.unstable_sxConfig=pn({},ma,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ba({sx:e,theme:this})},u}const Fs=Bs();function Hs(){const e=wa(Fs);return e[dn]||e}var js,Gs={},Ws={exports:{}};function Ys(){return js||(js=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}(Ws)),Ws.exports}var Ks,Us={exports:{}};function Vs(){return Ks||(Ks=1,(e=Us).exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports),Us.exports;var e}var qs,Xs=O(ui),Js=O(fi),Qs=O(ki),Zs=O(Xa),eu=O(Ca),tu=O(Na);function nu(){if(qs)return Gs;qs=1;var e=hs();Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.default=function(e={}){const{themeId:i,defaultTheme:l=f,rootShouldForwardProp:s=d,slotShouldForwardProp:c=d}=e,p=e=>(0,a.default)((0,t.default)({},e,{theme:g((0,t.default)({},e,{defaultTheme:l,themeId:i}))}));return p.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:f,slot:b,skipVariantsResolver:y,skipSx:x,overridesResolver:_=m(h(b))}=a,C=(0,n.default)(a,u),E=f&&f.startsWith("Mui")||b?"components":"custom",S=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,w=x||!1;let k=d;"Root"===b||"root"===b?k=s:b?k=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const R=(0,r.default)(e,(0,t.default)({shouldForwardProp:k,label:undefined},C)),A=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=g({theme:n.theme,defaultTheme:l,themeId:i});return v(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?E:void 0)}:e,T=(n,...r)=>{let o=A(n);const a=r?r.map(A):[];f&&_&&a.push((e=>{const n=g((0,t.default)({},e,{defaultTheme:l,themeId:i}));if(!n.components||!n.components[f]||!n.components[f].styleOverrides)return null;const r=n.components[f].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)})),f&&!S&&a.push((e=>{var n;const r=g((0,t.default)({},e,{defaultTheme:l,themeId:i}));return v({variants:null==r||null==(n=r.components)||null==(n=n[f])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)})),w||a.push(p);const s=a.length-r.length;if(Array.isArray(n)&&s>0){const e=new Array(s).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const u=R(o,...a);return e.muiName&&(u.muiName=e.muiName),u};return R.withConfig&&(T.withConfig=R.withConfig),T}},Gs.shouldForwardProp=d,Gs.systemDefaultTheme=void 0;var t=e(Ys()),n=e(Vs()),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(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 a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Xs),o=Js;e(Qs),e(Zs);var i=e(eu),a=e(tu);const l=["ownerState"],s=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function p(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=Gs.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:a}=o,u=(0,n.default)(o,l);const c="function"==typeof e?e((0,t.default)({ownerState:a},u)):e;if(Array.isArray(c))return c.flatMap((e=>v(e,(0,t.default)({ownerState:a},u),i)));if(c&&"object"==typeof c&&Array.isArray(c.variants)){const{variants:e=[]}=c;let o=(0,n.default)(c,s);return e.forEach((e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:a},u,a)):Object.keys(e.props).forEach((t=>{(null==a?void 0:a[t])!==e.props[t]&&u[t]!==e.props[t]&&(n=!1)})),n){Array.isArray(o)||(o=[o]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:a},u,a)):e.style;o.push(i?p((0,r.internal_serializeStyles)(n),i):n)}})),o}return i?p((0,r.internal_serializeStyles)(c),i):c}return Gs}const ru=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,ou=N(nu())({themeId:dn,defaultTheme:Fs,rootShouldForwardProp:ru}),iu=["theme"];function au(e){let{theme:t}=e,n=fn(e,iu);const r=t[dn];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=pn({},r,{vars:null}):t&&!t.vars&&(o=pn({},t,{vars:null}))),ni.jsx(ts,pn({},n,{themeId:r?dn:void 0,theme:o}))}const lu=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function su(e){return Ql(e)}function uu(e,t){return uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uu(e,t)}function cu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,uu(e,t)}var du=!1,pu=m.createContext(null),fu="unmounted",hu="exited",gu="entering",mu="entered",vu="exiting",bu=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=hu,r.appearStatus=gu):o=mu:o=t.unmountOnExit||t.mountOnEnter?fu:hu,r.state={status:o},r.nextCallback=null,r}cu(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===fu?{status:hu}: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!==gu&&n!==mu&&(t=gu):n!==gu&&n!==mu||(t=vu)}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===gu){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:f.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hu&&this.setState({status:fu})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[f.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||du?this.safeSetState({status:mu},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:gu},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:mu},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:f.findDOMNode(this);t&&!du?(this.props.onExit(r),this.safeSetState({status:vu},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:hu},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:hu},(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:f.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],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===fu)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=fn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(pu.Provider,{value:null},"function"==typeof n?n(e,r):m.cloneElement(m.Children.only(n),r))},t}(m.Component);function yu(){}function xu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _u(e,t){var n=Object.create(null);return e&&C.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&x(e)?t(e):e}(e)})),n}function Cu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Eu(e,t,n){var r=_u(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 a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(x(a)){var l=i in t,s=i in r,u=t[i],c=x(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&x(u)&&(o[i]=_(a,{onExited:n.bind(null,a),in:u.props.in,exit:Cu(a,"exit",e),enter:Cu(a,"enter",e)})):o[i]=_(a,{in:!1}):o[i]=_(a,{onExited:n.bind(null,a),in:!0,exit:Cu(a,"exit",e),enter:Cu(a,"enter",e)})}})),o}bu.contextType=pu,bu.propTypes={},bu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yu,onEntering:yu,onEntered:yu,onExit:yu,onExiting:yu,onExited:yu},bu.UNMOUNTED=fu,bu.EXITED=hu,bu.ENTERING=gu,bu.ENTERED=mu,bu.EXITING=vu;var Su=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},wu=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(xu(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}cu(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,_u(n.children,(function(e){return _(e,{onExited:r.bind(null,e),in:!0,appear:Cu(e,"appear",n),enter:Cu(e,"enter",n),exit:Cu(e,"exit",n)})}))):Eu(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=_u(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=pn({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=fn(e,["component","childFactory"]),o=this.state.contextValue,i=Su(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?m.createElement(pu.Provider,{value:o},i):m.createElement(pu.Provider,{value:o},m.createElement(t,r,i))},t}(m.Component);wu.propTypes={},wu.defaultProps={component:"div",childFactory:function(e){return e}};function ku(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Ru(e){return $a("MuiPaper",e)}za("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 Au=["className","component","elevation","square","variant"],Tu=ou("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 pn({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&&pn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ys.alpha("#fff",lu(t.elevation))}, ${ys.alpha("#fff",lu(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Nu=v.forwardRef((function(e,t){const n=su({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=fn(n,Au),u=pn({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Dl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Ru,o)})(u);return ni.jsx(Tu,pn({as:o,ownerState:u,className:Pa(c.root,r),ref:t},s))}));const Ou=za("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Lu=["center","classes","className"];let Mu,Pu,Iu,Du,$u=e=>e;const zu=ko(Mu||(Mu=$u`
|
|
15
15
|
0% {
|
|
16
16
|
transform: scale(0);
|
|
17
17
|
opacity: 0.1;
|
|
@@ -21,7 +21,7 @@ System.register(["@nebula.js/stardust","react-dom","react"],(function(e){"use st
|
|
|
21
21
|
transform: scale(1);
|
|
22
22
|
opacity: 0.3;
|
|
23
23
|
}
|
|
24
|
-
`)),
|
|
24
|
+
`)),Bu=ko(Pu||(Pu=$u`
|
|
25
25
|
0% {
|
|
26
26
|
opacity: 1;
|
|
27
27
|
}
|
|
@@ -29,7 +29,7 @@ System.register(["@nebula.js/stardust","react-dom","react"],(function(e){"use st
|
|
|
29
29
|
100% {
|
|
30
30
|
opacity: 0;
|
|
31
31
|
}
|
|
32
|
-
`)),
|
|
32
|
+
`)),Fu=ko(Iu||(Iu=$u`
|
|
33
33
|
0% {
|
|
34
34
|
transform: scale(1);
|
|
35
35
|
}
|
|
@@ -41,7 +41,7 @@ System.register(["@nebula.js/stardust","react-dom","react"],(function(e){"use st
|
|
|
41
41
|
100% {
|
|
42
42
|
transform: scale(1);
|
|
43
43
|
}
|
|
44
|
-
`)),
|
|
44
|
+
`)),Hu=ou("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ju=ou((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=v.useState(!1),p=Pa(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Pa(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),v.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),ni.jsx("span",{className:p,style:f,children:ni.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Du||(Du=$u`
|
|
45
45
|
opacity: 0;
|
|
46
46
|
position: absolute;
|
|
47
47
|
|
|
@@ -84,6 +84,18 @@ System.register(["@nebula.js/stardust","react-dom","react"],(function(e){"use st
|
|
|
84
84
|
animation-iteration-count: infinite;
|
|
85
85
|
animation-delay: 200ms;
|
|
86
86
|
}
|
|
87
|
-
`),uu.rippleVisible,gu,550,(({theme:e})=>e.transitions.easing.easeInOut),uu.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),uu.child,uu.childLeaving,vu,550,(({theme:e})=>e.transitions.easing.easeInOut),uu.childPulsate,bu,(({theme:e})=>e.transitions.easing.easeInOut)),_u=v.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=fn(n,cu),[l,s]=v.useState([]),u=v.useRef(0),c=v.useRef(null);v.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=v.useRef(!1),p=cl(),f=v.useRef(null),h=v.useRef(null),m=v.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Go.jsx(xu,{classes:{ripple:ya(o.ripple,uu.ripple),rippleVisible:ya(o.rippleVisible,uu.rippleVisible),ripplePulsate:ya(o.ripplePulsate,uu.ripplePulsate),child:ya(o.child,uu.child),childLeaving:ya(o.childLeaving,uu.childLeaving),childPulsate:ya(o.childPulsate,uu.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=v.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!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 l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,p]),b=v.useCallback((()=>{g({},{pulsate:!0})}),[g]),y=v.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{y(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return v.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:y})),[b,g,y]),Go.jsx(yu,pn({className:ya(uu.root,o.root,i),ref:h},a,{children:Go.jsx(ru,{component:null,exit:!0,children:l})}))}));function Eu(e){return Ea("MuiButtonBase",e)}const Cu=Ca("MuiButtonBase",["root","disabled","focusVisible"]),Su=["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"],wu=$s("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"},[`&.${Cu.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ku=v.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:y,onKeyDown:x,onKeyUp:_,onMouseDown:E,onMouseLeave:C,onMouseUp:S,onTouchEnd:w,onTouchMove:k,onTouchStart:T,tabIndex:A=0,TouchRippleProps:N,touchRippleRef:R,type:M}=n,L=fn(n,Su),O=v.useRef(null),I=v.useRef(null),P=al(I,R),{isFocusVisibleRef:D,onFocus:$,onBlur:z,ref:B}=yl(),[F,H]=v.useState(!1);s&&F&&H(!1),v.useImperativeHandle(r,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[j,W]=v.useState(!1);v.useEffect((()=>{W(!0)}),[]);const G=j&&!u&&!s;function K(e,t,n=c){return il((r=>{t&&t(r);return!n&&I.current&&I.current[e](r),!0}))}v.useEffect((()=>{F&&d&&!u&&j&&I.current.pulsate()}),[u,d,F,j]);const Y=K("start",E),U=K("stop",m),V=K("stop",g),q=K("stop",S),Q=K("stop",(e=>{F&&e.preventDefault(),C&&C(e)})),J=K("start",T),X=K("stop",w),Z=K("stop",k),ee=K("stop",(e=>{z(e),!1===D.current&&H(!1),f&&f(e)}),!1),te=il((e=>{O.current||(O.current=e.currentTarget),$(e),!0===D.current&&(H(!0),y&&y(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=v.useRef(!1),oe=il((e=>{d&&!re.current&&F&&I.current&&" "===e.key&&(re.current=!0,I.current.stop(e,(()=>{I.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=il((e=>{d&&" "===e.key&&I.current&&F&&!e.defaultPrevented&&(re.current=!1,I.current.stop(e,(()=>{I.current.pulsate(e)}))),_&&_(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(L.href||L.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(L.href||L.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=al(t,B,O),ue=pn({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=xl({root:["root",t&&"disabled",n&&"focusVisible"]},Eu,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Go.jsxs(wu,pn({as:ae,className:ya(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:Y,onMouseLeave:Q,onMouseUp:q,onDragLeave:V,onTouchEnd:X,onTouchMove:Z,onTouchStart:J,ref:se,tabIndex:s?-1:A,type:M},le,L,{children:[i,G?Go.jsx(_u,pn({ref:P,center:o},N)):null]}))}));function Tu(e){return Ea("MuiIconButton",e)}const Au=Ca("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Nu=["edge","children","className","color","disabled","disableFocusRipple","size"],Ru=$s(ku,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${ci(n.color)}`],n.edge&&t[`edge${ci(n.edge)}`],t[`size${ci(n.size)}`]]}})((({theme:e,ownerState:t})=>pn({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})`:es.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 pn({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&pn({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":pn({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:es.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)},{[`&.${Au.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),Mu=v.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:s=!1,size:u="medium"}=n,c=fn(n,Nu),d=pn({},n,{edge:r,color:a,disabled:l,disableFocusRipple:s,size:u}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return xl({root:["root",n&&"disabled","default"!==r&&`color${ci(r)}`,o&&`edge${ci(o)}`,`size${ci(i)}`]},Tu,t)})(d);return Go.jsx(Ru,pn({className:ya(p.root,i),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},c,{ownerState:d,children:o}))}));function Lu(e){return Ea("MuiTypography",e)}Ca("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ou=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Iu=$s("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${ci(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>pn({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}))),Pu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Du={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},$u=v.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiTypography"}),r=(e=>Du[e]||e)(n.color),o=ha(pn({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Pu}=o,f=fn(o,Ou),h=pn({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||Pu[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return xl({root:["root",i,"inherit"!==e.align&&`align${ci(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Lu,a)})(h);return Go.jsx(Iu,pn({as:m,ref:t,ownerState:h,className:ya(g.root,a)},f))}));var zu,Bu={};function Fu(){if(zu)return Bu;zu=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.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 a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(g),t=Ns;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 Bu.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},Bu}var Hu=R(Fu()),ju="top",Wu="bottom",Gu="right",Ku="left",Yu="auto",Uu=[ju,Wu,Gu,Ku],Vu="start",qu="end",Qu="viewport",Ju="popper",Xu=Uu.reduce((function(e,t){return e.concat([t+"-"+Vu,t+"-"+qu])}),[]),Zu=[].concat(Uu,[Yu]).reduce((function(e,t){return e.concat([t,t+"-"+Vu,t+"-"+qu])}),[]),ec=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function tc(e){return e?(e.nodeName||"").toLowerCase():null}function nc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rc(e){return e instanceof nc(e).Element||e instanceof Element}function oc(e){return e instanceof nc(e).HTMLElement||e instanceof HTMLElement}function ic(e){return"undefined"!=typeof ShadowRoot&&(e instanceof nc(e).ShadowRoot||e instanceof ShadowRoot)}var ac={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];oc(o)&&tc(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}),{});oc(r)&&tc(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function lc(e){return e.split("-")[0]}var sc=Math.max,uc=Math.min,cc=Math.round;function dc(){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 pc(){return!/^((?!chrome|android).)*safari/i.test(dc())}function fc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&oc(e)&&(o=e.offsetWidth>0&&cc(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&cc(r.height)/e.offsetHeight||1);var a=(rc(e)?nc(e):window).visualViewport,l=!pc()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function hc(e){var t=fc(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 mc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ic(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function gc(e){return nc(e).getComputedStyle(e)}function vc(e){return["table","td","th"].indexOf(tc(e))>=0}function bc(e){return((rc(e)?e.ownerDocument:e.document)||window.document).documentElement}function yc(e){return"html"===tc(e)?e:e.assignedSlot||e.parentNode||(ic(e)?e.host:null)||bc(e)}function xc(e){return oc(e)&&"fixed"!==gc(e).position?e.offsetParent:null}function _c(e){for(var t=nc(e),n=xc(e);n&&vc(n)&&"static"===gc(n).position;)n=xc(n);return n&&("html"===tc(n)||"body"===tc(n)&&"static"===gc(n).position)?t:n||function(e){var t=/firefox/i.test(dc());if(/Trident/i.test(dc())&&oc(e)&&"fixed"===gc(e).position)return null;var n=yc(e);for(ic(n)&&(n=n.host);oc(n)&&["html","body"].indexOf(tc(n))<0;){var r=gc(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 Ec(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Cc(e,t,n){return sc(e,uc(t,n))}function Sc(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function wc(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var kc={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=lc(n.placement),s=Ec(l),u=[Ku,Gu].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return Sc("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:wc(e,Uu))}(o.padding,n),d=hc(i),p="y"===s?ju:Ku,f="y"===s?Wu:Gu,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],g=_c(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=c[p],x=v-d[u]-c[f],_=v/2-d[u]/2+b,E=Cc(y,_,x),C=s;n.modifiersData[r]=((t={})[C]=E,t.centerOffset=E-_,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)))&&mc(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Tc(e){return e.split("-")[1]}var Ac={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nc(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Ku,x=ju,_=window;if(u){var E=_c(n),C="clientHeight",S="clientWidth";if(E===nc(n)&&"static"!==gc(E=bc(n)).position&&"absolute"===l&&(C="scrollHeight",S="scrollWidth"),o===ju||(o===Ku||o===Gu)&&i===qu)x=Wu,m-=(d&&E===_&&_.visualViewport?_.visualViewport.height:E[C])-r.height,m*=s?1:-1;if(o===Ku||(o===ju||o===Wu)&&i===qu)y=Gu,f-=(d&&E===_&&_.visualViewport?_.visualViewport.width:E[S])-r.width,f*=s?1:-1}var w,k=Object.assign({position:l},u&&Ac),T=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:cc(n*o)/o||0,y:cc(r*o)/o||0}}({x:f,y:m},nc(n)):{x:f,y:m};return f=T.x,m=T.y,s?Object.assign({},k,((w={})[x]=b?"0":"",w[y]=v?"0":"",w.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",w)):Object.assign({},k,((t={})[x]=b?m+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var Rc={passive:!0};var Mc={left:"right",right:"left",bottom:"top",top:"bottom"};function Lc(e){return e.replace(/left|right|bottom|top/g,(function(e){return Mc[e]}))}var Oc={start:"end",end:"start"};function Ic(e){return e.replace(/start|end/g,(function(e){return Oc[e]}))}function Pc(e){var t=nc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dc(e){return fc(bc(e)).left+Pc(e).scrollLeft}function $c(e){var t=gc(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function zc(e){return["html","body","#document"].indexOf(tc(e))>=0?e.ownerDocument.body:oc(e)&&$c(e)?e:zc(yc(e))}function Bc(e,t){var n;void 0===t&&(t=[]);var r=zc(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=nc(r),a=o?[i].concat(i.visualViewport||[],$c(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Bc(yc(a)))}function Fc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hc(e,t,n){return t===Qu?Fc(function(e,t){var n=nc(e),r=bc(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var u=pc();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Dc(e),y:s}}(e,n)):rc(t)?function(e,t){var n=fc(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):Fc(function(e){var t,n=bc(e),r=Pc(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=sc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=sc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Dc(e),s=-r.scrollTop;return"rtl"===gc(o||n).direction&&(l+=sc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(bc(e)))}function jc(e,t,n,r){var o="clippingParents"===t?function(e){var t=Bc(yc(e)),n=["absolute","fixed"].indexOf(gc(e).position)>=0&&oc(e)?_c(e):e;return rc(n)?t.filter((function(e){return rc(e)&&mc(e,n)&&"body"!==tc(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=Hc(e,n,r);return t.top=sc(o.top,t.top),t.right=uc(o.right,t.right),t.bottom=uc(o.bottom,t.bottom),t.left=sc(o.left,t.left),t}),Hc(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Wc(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?lc(o):null,a=o?Tc(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case ju:t={x:l,y:n.y-r.height};break;case Wu:t={x:l,y:n.y+n.height};break;case Gu:t={x:n.x+n.width,y:s};break;case Ku:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Ec(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case Vu:t[u]=t[u]-(n[c]/2-r[c]/2);break;case qu:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function Gc(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,u=n.rootBoundary,c=void 0===u?Qu:u,d=n.elementContext,p=void 0===d?Ju:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=Sc("number"!=typeof g?g:wc(g,Uu)),b=p===Ju?"reference":Ju,y=e.rects.popper,x=e.elements[h?b:p],_=jc(rc(x)?x:x.contextElement||bc(e.elements.popper),s,c,a),E=fc(e.elements.reference),C=Wc({reference:E,element:y,placement:o}),S=Fc(Object.assign({},y,C)),w=p===Ju?S:E,k={top:_.top-w.top+v.top,bottom:w.bottom-_.bottom+v.bottom,left:_.left-w.left+v.left,right:w.right-_.right+v.right},T=e.modifiersData.offset;if(p===Ju&&T){var A=T[o];Object.keys(k).forEach((function(e){var t=[Gu,Wu].indexOf(e)>=0?1:-1,n=[ju,Wu].indexOf(e)>=0?"y":"x";k[e]+=A[n]*t}))}return k}function Kc(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?Zu:s,c=Tc(r),d=c?l?Xu:Xu.filter((function(e){return Tc(e)===c})):Uu,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Gc(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[lc(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Yc={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,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=lc(g),b=s||(v===g||!h?[Lc(g)]:function(e){if(lc(e)===Yu)return[];var t=Lc(e);return[Ic(e),t,Ic(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(lc(n)===Yu?Kc(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,_=t.rects.popper,E=new Map,C=!0,S=y[0],w=0;w<y.length;w++){var k=y[w],T=lc(k),A=Tc(k)===Vu,N=[ju,Wu].indexOf(T)>=0,R=N?"width":"height",M=Gc(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),L=N?A?Gu:Ku:A?Wu:ju;x[R]>_[R]&&(L=Lc(L));var O=Lc(L),I=[];if(i&&I.push(M[T]<=0),l&&I.push(M[L]<=0,M[O]<=0),I.every((function(e){return e}))){S=k,C=!1;break}E.set(k,I)}if(C)for(var P=function(e){var t=y.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},D=h?3:1;D>0;D--){if("break"===P(D))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Uc(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 Vc(e){return[ju,Gu,Wu,Ku].some((function(t){return e[t]>=0}))}var qc={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,a=Zu.reduce((function(e,n){return e[n]=function(e,t,n){var r=lc(e),o=[Ku,ju].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Ku,Gu].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var Qc={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,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Gc(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=lc(t.placement),b=Tc(t.placement),y=!b,x=Ec(v),_="x"===x?"y":"x",E=t.modifiersData.popperOffsets,C=t.rects.reference,S=t.rects.popper,w="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof w?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(E){if(i){var N,R="y"===x?ju:Ku,M="y"===x?Wu:Gu,L="y"===x?"height":"width",O=E[x],I=O+g[R],P=O-g[M],D=f?-S[L]/2:0,$=b===Vu?C[L]:S[L],z=b===Vu?-S[L]:-C[L],B=t.elements.arrow,F=f&&B?hc(B):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=H[R],W=H[M],G=Cc(0,C[L],F[L]),K=y?C[L]/2-D-G-j-k.mainAxis:$-G-j-k.mainAxis,Y=y?-C[L]/2+D+G+W+k.mainAxis:z+G+W+k.mainAxis,U=t.elements.arrow&&_c(t.elements.arrow),V=U?"y"===x?U.clientTop||0:U.clientLeft||0:0,q=null!=(N=null==T?void 0:T[x])?N:0,Q=O+Y-q,J=Cc(f?uc(I,O+K-q-V):I,O,f?sc(P,Q):P);E[x]=J,A[x]=J-O}if(l){var X,Z="x"===x?ju:Ku,ee="x"===x?Wu:Gu,te=E[_],ne="y"===_?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[ju,Ku].indexOf(v),ae=null!=(X=null==T?void 0:T[_])?X:0,le=ie?re:te-C[ne]-S[ne]-ae+k.altAxis,se=ie?te+C[ne]+S[ne]-ae-k.altAxis:oe,ue=f&&ie?function(e,t,n){var r=Cc(e,t,n);return r>n?n:r}(le,te,se):Cc(f?le:re,te,f?se:oe);E[_]=ue,A[_]=ue-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function Jc(e,t,n){void 0===n&&(n=!1);var r=oc(t),o=oc(t)&&function(e){var t=e.getBoundingClientRect(),n=cc(t.width)/e.offsetWidth||1,r=cc(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=bc(t),a=fc(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==tc(t)||$c(i))&&(l=function(e){return e!==nc(e)&&oc(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Pc(e);var t}(t)),oc(t)?((s=fc(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Dc(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Xc(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 Zc(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var ed={placement:"bottom",modifiers:[],strategy:"absolute"};function td(){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 nd(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ed:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},ed,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,s={state:o,setOptions:function(n){var l="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,l),o.scrollParents={reference:rc(e)?Bc(e):e.contextElement?Bc(e.contextElement):[],popper:Bc(t)};var c,d,p=function(e){var t=Xc(e);return ec.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((c=[].concat(r,o.options.modifiers),d=c.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=p.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 l=i({state:o,name:t,instance:s,options:r}),u=function(){};a.push(l||u)}})),s.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(td(t,n)){o.rects={reference:Jc(t,_c(n),"fixed"===o.options.strategy),popper:hc(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],a=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"==typeof a&&(o=a({state:o,options:c,name:d,instance:s})||o)}else o.reset=!1,r=-1}}},update:Zc((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){u(),l=!0}};if(!td(e,t))return s;function u(){a.forEach((function(e){return e()})),a=[]}return s.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var rd=nd({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,a=r.resize,l=void 0===a||a,s=nc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Rc)})),l&&s.addEventListener("resize",n.update,Rc),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Rc)})),l&&s.removeEventListener("resize",n.update,Rc)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Wc({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,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,u={placement:lc(t.placement),variation:Tc(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,Nc(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Nc(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ac,qc,Yc,Qc,kc,{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,a=Gc(t,{elementContext:"reference"}),l=Gc(t,{altBoundary:!0}),s=Uc(a,r),u=Uc(l,o,i),c=Vc(s),d=Vc(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});const od=v.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=v.useState(null),l=al(v.isValidElement(n)?kl(n):null,t);if(Va((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Va((()=>{if(i&&!o)return tl(t,i),()=>{tl(t,null)}}),[t,i,o]),o){if(v.isValidElement(n)){const e={ref:l};return v.cloneElement(n,e)}return Go.jsx(v.Fragment,{children:n})}return Go.jsx(v.Fragment,{children:i?h.createPortal(n,i):i})}));function id(e){return Ea("MuiPopper",e)}Ca("MuiPopper",["root"]);const ad=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ld=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function sd(e){return"function"==typeof e?e():e}const ud={},cd=v.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:l,open:s,placement:u,popperOptions:c,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,m=fn(e,ad),g=v.useRef(null),b=al(g,t),y=v.useRef(null),x=al(y,d),_=v.useRef(x);Va((()=>{_.current=x}),[x]),v.useImperativeHandle(d,(()=>y.current),[]);const E=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}}(u,i),[C,S]=v.useState(E),[w,k]=v.useState(sd(r));v.useEffect((()=>{y.current&&y.current.forceUpdate()})),v.useEffect((()=>{r&&k(sd(r))}),[r]),Va((()=>{if(!w||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{S(e.placement)})(e)}}];null!=l&&(e=e.concat(l)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=rd(w,g.current,pn({placement:E},c,{modifiers:e}));return _.current(t),()=>{t.destroy(),_.current(null)}}),[w,a,l,s,c,E]);const T={placement:C};null!==h&&(T.TransitionProps=h);const A=(e=>{const{classes:t}=e;return xl({root:["root"]},id,t)})(e),N=null!=(n=f.root)?n:"div",R=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=fn(e,wl),l=i?{}:function(e,t){return"function"==typeof e?e(t,void 0):e}(r,o),{props:s,internalRef:u}=Sl(pn({},a,{externalSlotProps:l}));return El(n,pn({},s,{ref:al(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}({elementType:N,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:A.root});return Go.jsx(N,pn({},R,{children:"function"==typeof o?o(T):o}))})),dd=v.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:s,open:u,placement:c="bottom",popperOptions:d=ud,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,b=fn(e,ld),[y,x]=v.useState(!0);if(!l&&!u&&(!h||y))return null;let _;if(o)_=o;else if(n){const e=sd(n);_=e&&void 0!==e.nodeType?Za(e).body:Za(null).body}const E=u||!l||h&&!y?void 0:"none",C=h?{in:u,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return Go.jsx(od,{disablePortal:a,container:_,children:Go.jsx(cd,pn({anchorEl:n,direction:i,disablePortal:a,modifiers:s,ref:t,open:h?!y:u,placement:c,popperOptions:d,popperRef:p,slotProps:m,slots:g},b,{style:pn({position:"fixed",top:0,left:0,display:E},f),TransitionProps:C,children:r}))})})),pd=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],fd=$s(dd,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hd=v.forwardRef((function(e,t){var n;const r=Hu(),o=Hs({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:s,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=fn(o,pd),_=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,E=pn({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},x);return Go.jsx(fd,pn({as:a,direction:null==r?void 0:r.direction,slots:{root:_},slotProps:null!=y?y:s},E,{ref:t}))})),md=["onChange","maxRows","minRows","style","value"];function gd(e){return parseInt(e,10)||0}const vd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function bd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const yd=v.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=fn(e,md),{current:s}=v.useRef(null!=a),u=v.useRef(null),c=al(t,u),d=v.useRef(null),p=v.useRef(null),f=v.useCallback((()=>{const t=u.current,n=p.current;if(!t||!n)return;const i=el(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 a=i.boxSizing,l=gd(i.paddingBottom)+gd(i.paddingTop),s=gd(i.borderBottomWidth)+gd(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflowing:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),h=il((()=>{const e=u.current,t=f();if(!e||!t||bd(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n})),m=v.useCallback((()=>{const e=u.current,t=f();if(!e||!t||bd(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[f]),g=v.useRef(-1);Va((()=>{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}(m),t=null==u?void 0:u.current;if(!t)return;const n=el(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{r.observe(t)})))})),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}}),[f,m,h]),Va((()=>{m()}));return Go.jsxs(v.Fragment,{children:[Go.jsx("textarea",pn({value:a,onChange:e=>{s||m(),n&&n(e)},ref:c,rows:o,style:i},l)),Go.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:pn({},vd,i,{paddingTop:0,paddingBottom:0})})]})}));const xd=v.createContext(void 0);function _d(e){return Go.jsx(pa,pn({},e,{defaultTheme:_s,themeId:dn}))}function Ed(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Cd(e){return Ea("MuiInputBase",e)}const Sd=Ca("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),wd=["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"],kd=$s("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${ci(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>pn({},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",[`&.${Sd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&pn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Td=$s("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=pn({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 pn({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] + .${Sd.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},[`&.${Sd.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"})})),Ad=Go.jsx(_d,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Nd=v.forwardRef((function(e,t){var n;const r=Hs({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:y,maxRows:x,minRows:_,multiline:E=!1,name:C,onBlur:S,onChange:w,onClick:k,onFocus:T,onKeyDown:A,onKeyUp:N,placeholder:R,readOnly:M,renderSuffix:L,rows:O,slotProps:I={},slots:P={},startAdornment:D,type:$="text",value:z}=r,B=fn(r,wd),F=null!=b.value?b.value:z,{current:H}=v.useRef(null!=F),j=v.useRef(),W=v.useCallback((e=>{}),[]),G=al(j,y,b.ref,W),[K,Y]=v.useState(!1),U=v.useContext(xd),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:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});V.focused=U?U.focused:K,v.useEffect((()=>{!U&&d&&K&&(Y(!1),S&&S())}),[U,d,K,S]);const q=U&&U.onFilled,Q=U&&U.onEmpty,J=v.useCallback((e=>{!function(e,t=!1){return e&&(Ed(e.value)&&""!==e.value||t&&Ed(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():q&&q()}),[q,Q]);Va((()=>{H&&J({value:F})}),[F,J,H]);v.useEffect((()=>{J(j.current)}),[]);let X=g,Z=b;E&&"input"===X&&(Z=pn(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:_},Z),X=yd);v.useEffect((()=>{U&&U.setAdornedStart(Boolean(D))}),[U,D]);const ee=pn({},r,{color:V.color||"primary",disabled:V.disabled,endAdornment:f,error:V.error,focused:V.focused,formControl:U,fullWidth:h,hiddenLabel:V.hiddenLabel,multiline:E,size:V.size,startAdornment:D,type:$}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return xl({root:["root",`color${ci(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${ci(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Cd,t)})(ee),ne=P.root||s.Root||kd,re=I.root||u.root||{},oe=P.input||s.Input||Td;return Z=pn({},Z,null!=(n=I.input)?n:u.input),Go.jsxs(v.Fragment,{children:[!p&&Ad,Go.jsxs(ne,pn({},re,!_l(ne)&&{ownerState:pn({},ee,re.ownerState)},{ref:t,onClick:e=>{j.current&&e.currentTarget===e.target&&j.current.focus(),k&&k(e)}},B,{className:ya(te.root,re.className,l,M&&"MuiInputBase-readOnly"),children:[D,Go.jsx(xd.Provider,{value:null,children:Go.jsx(oe,pn({ownerState:ee,"aria-invalid":V.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:V.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?j.current:{value:"x"})},name:C,placeholder:R,readOnly:M,required:V.required,rows:O,value:F,onKeyDown:A,onKeyUp:N,type:$},Z,!_l(oe)&&{as:X,ownerState:pn({},ee,Z.ownerState)},{ref:G,className:ya(te.input,Z.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{S&&S(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):Y(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||j.current;if(null==t)throw new Error(un(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{V.disabled?e.stopPropagation():(T&&T(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):Y(!0))}}))}),f,L?L(pn({},V,{startAdornment:D})):null]}))]})})),Rd=Ca("MuiBox",["root"]),Md=xs(),Ld=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Uo("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(oa);return v.forwardRef((function(e,a){const l=da(n),s=ha(e),{className:u,component:c="div"}=s,d=fn(s,xa);return Go.jsx(i,pn({as:c,ref:a,className:ya(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:dn,defaultTheme:Md,defaultClassName:Rd.root,generateClassName:va.generate});function Od(e){return Ea("MuiButton",e)}const Id=Ca("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"]),Pd=v.createContext({}),Dd=v.createContext(void 0),$d=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],zd=e=>pn({},"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}}),Bd=$s(ku,{shouldForwardProp:e=>Ds(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ci(n.color)}`],t[`size${ci(n.size)}`],t[`${n.variant}Size${ci(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 pn({},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":pn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:es.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})`:es.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})`:es.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":pn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Id.focusVisible}`]:pn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Id.disabled}`]:pn({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 ${es.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"},[`&.${Id.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Id.disabled}`]:{boxShadow:"none"}})),Fd=$s("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ci(n.size)}`]]}})((({ownerState:e})=>pn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},zd(e)))),Hd=$s("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ci(n.size)}`]]}})((({ownerState:e})=>pn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},zd(e)))),jd=v.forwardRef((function(e,t){const n=v.useContext(Pd),r=v.useContext(Dd),o=Hs({props:Ya(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:y="text"}=o,x=fn(o,$d),_=pn({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:y}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return pn({},a,xl({root:["root",i,`${i}${ci(t)}`,`size${ci(o)}`,`${i}Size${ci(o)}`,`color${ci(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ci(o)}`],endIcon:["icon","endIcon",`iconSize${ci(o)}`]},Od,a))})(_),C=g&&Go.jsx(Fd,{className:E.startIcon,ownerState:_,children:g}),S=p&&Go.jsx(Hd,{className:E.endIcon,ownerState:_,children:p}),w=r||"";return Go.jsxs(Bd,pn({ownerState:_,className:ya(n.className,E.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:ya(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,S]}))}));function Wd(e){return e.substring(2).toLowerCase()}function Gd(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=v.useRef(!1),l=v.useRef(null),s=v.useRef(!1),u=v.useRef(!1);v.useEffect((()=>(setTimeout((()=>{s.current=!0}),0),()=>{s.current=!1})),[]);const c=al(kl(t),l),d=il((e=>{const t=u.current;u.current=!1;const r=Za(l.current);if(!s.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(a.current)return void(a.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target),i||!n&&t||o(e)})),p=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},f={ref:c};return!1!==i&&(f[i]=p(i)),v.useEffect((()=>{if(!1!==i){const e=Wd(i),t=Za(l.current),n=()=>{a.current=!0};return t.addEventListener(e,d),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,d),t.removeEventListener("touchmove",n)}}}),[d,i]),!1!==r&&(f[r]=p(r)),v.useEffect((()=>{if(!1!==r){const e=Wd(r),t=Za(l.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}}),[d,r]),Go.jsx(v.Fragment,{children:v.cloneElement(t,f)})}function Kd(e){return Ea("MuiDivider",e)}const Yd=Ca("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Ud=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Vd=$s("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})=>pn({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)`:es.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})=>pn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>pn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>pn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>pn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),qd=$s("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>pn({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)`}))),Qd=v.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=fn(n,Ud),h=pn({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return xl({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Kd,r)})(h);return Go.jsx(Vd,pn({as:a,className:ya(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Go.jsx(qd,{className:m.wrapper,ownerState:h,children:o}):null}))}));Qd.muiSkipListHighlight=!0;const Jd=function(e={}){const{createStyledComponent:t=jl,useThemeProps:n=Wl,componentName:r="MuiStack"}=e,o=t(Kl);return v.forwardRef((function(e,t){const i=ha(n(e)),{component:a="div",direction:l="column",spacing:s=0,divider:u,children:c,className:d,useFlexGap:p=!1}=i,f=fn(i,Fl),h={direction:l,spacing:s,useFlexGap:p},m=xl({root:["root"]},(e=>Ea(r,e)),{});return Go.jsx(o,pn({as:a,ownerState:h,ref:t,className:ya(m.root,d)},f,{children:u?Gl(c,u):c}))}))}({createStyledComponent:$s("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Hs({props:e,name:"MuiStack"})}),Xd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Zd(e){return`scale(${e}, ${e**2})`}const ep={entering:{opacity:1,transform:Zd(1)},entered:{opacity:1,transform:"none"}},tp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),np=v.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Js}=e,g=fn(e,Xd),b=cl(),y=v.useRef(),x=Es(),_=v.useRef(null),E=al(_,kl(o),t),C=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},S=C(u),w=C(((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=ou({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:tp?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),k=C(s),T=C(p),A=C((e=>{const{duration:t,delay:n,easing:r}=ou({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:tp?o:.666*o,delay:tp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Zd(.75),c&&c(e)})),N=C(d);return Go.jsx(m,pn({appear:r,in:a,nodeRef:_,onEnter:w,onEntered:k,onEntering:S,onExit:A,onExited:N,onExiting:T,addEndListener:e=>{"auto"===h&&b.start(y.current||0,e),n&&n(_.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>v.cloneElement(o,pn({style:pn({opacity:0,transform:Zd(.75),visibility:"exited"!==e||a?void 0:"hidden"},ep[e],f,o.props.style),ref:E},t))}))}));np.muiSupportAuto=!0;const rp=v.createContext({});function op(e){return Ea("MuiList",e)}Ca("MuiList",["root","padding","dense","subheader"]);const ip=["children","className","component","dense","disablePadding","subheader"],ap=$s("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})=>pn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),lp=v.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=fn(n,ip),c=v.useMemo((()=>({dense:a})),[a]),d=pn({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},op,t)})(d);return Go.jsx(rp.Provider,{value:c,children:Go.jsxs(ap,pn({as:i,className:ya(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function sp(e){return Ea("MuiListItemIcon",e)}const up=Ca("MuiListItemIcon",["root","alignItemsFlexStart"]),cp=["className"],dp=$s("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})=>pn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),pp=v.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=fn(n,cp),i=pn({},n,{alignItems:v.useContext(rp).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return xl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},sp,n)})(i);return Go.jsx(dp,pn({className:ya(a.root,r),ownerState:i,ref:t},o))})),fp=Ca("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),hp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function mp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function gp(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function vp(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 bp(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&vp(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const yp=v.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=fn(e,hp),p=v.useRef(null),f=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Va((()=>{r&&p.current.focus()}),[r]),v.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Za(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=al(p,t);let m=-1;v.Children.forEach(i,((e,t)=>{v.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=v.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),v.cloneElement(e,t)}return e}));return Go.jsx(lp,pn({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Za(t).activeElement;if("ArrowDown"===n)e.preventDefault(),bp(t,r,s,l,mp);else if("ArrowUp"===n)e.preventDefault(),bp(t,r,s,l,gp);else if("Home"===n)e.preventDefault(),bp(t,null,s,l,mp);else if("End"===n)e.preventDefault(),bp(t,null,s,l,gp);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&vp(r,o);o.previousKeyMatched&&(s||bp(t,r,!1,l,mp,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function xp(e){return Ea("MuiMenuItem",e)}const _p=Ca("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ep=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Cp=$s(ku,{shouldForwardProp:e=>Ds(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})=>pn({},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"}},[`&.${_p.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:es.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_p.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:es.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_p.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:es.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})`:es.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${_p.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_p.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Yd.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Yd.inset}`]:{marginLeft:52},[`& .${fp.root}`]:{marginTop:0,marginBottom:0},[`& .${fp.inset}`]:{paddingLeft:36},[`& .${up.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&pn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${up.root} svg`]:{fontSize:"1.25rem"}})))),Sp=v.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=fn(n,Ep),f=v.useContext(rp),h=v.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=v.useRef(null);Va((()=>{r&&m.current&&m.current.focus()}),[r]);const g=pn({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return pn({},a,xl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},xp,a))})(n),y=al(m,t);let x;return n.disabled||(x=void 0!==c?c:-1),Go.jsx(rp.Provider,{value:h,children:Go.jsx(Cp,pn({ref:y,role:u,tabIndex:x,component:o,focusVisibleClassName:ya(b.focusVisible,s),className:ya(b.root,d)},p,{ownerState:g,classes:b}))})}));function wp(e){return Ea("MuiTooltip",e)}const kp=Ca("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Tp=["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 Ap=$s(hd,{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})=>pn({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${kp.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${kp.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${kp.arrow}`]:pn({},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"] .${kp.arrow}`]:pn({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Np=$s("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${ci(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return pn({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:es.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},{[`.${kp.popper}[data-popper-placement*="left"] &`]:pn({transformOrigin:"right center"},t.isRtl?pn({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):pn({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${kp.popper}[data-popper-placement*="right"] &`]:pn({transformOrigin:"left center"},t.isRtl?pn({marginRight:"14px"},t.touch&&{marginRight:"24px"}):pn({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${kp.popper}[data-popper-placement*="top"] &`]:pn({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${kp.popper}[data-popper-placement*="bottom"] &`]:pn({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),Rp=$s("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:es.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Mp=!1;const Lp=new ul;let Op={x:0,y:0};function Ip(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Pp=v.forwardRef((function(e,t){var n,r,o,i,a,l,s,u,c,d,p,f,h,m,g,b,y,x,_;const E=Hs({props:e,name:"MuiTooltip"}),{arrow:C=!1,children:S,components:w={},componentsProps:k={},describeChild:T=!1,disableFocusListener:A=!1,disableHoverListener:N=!1,disableInteractive:R=!1,disableTouchListener:M=!1,enterDelay:L=100,enterNextDelay:O=0,enterTouchDelay:I=700,followCursor:P=!1,id:D,leaveDelay:$=0,leaveTouchDelay:z=1500,onClose:B,onOpen:F,open:H,placement:j="bottom",PopperComponent:W,PopperProps:G={},slotProps:K={},slots:Y={},title:U,TransitionComponent:V=np,TransitionProps:q}=E,Q=fn(E,Tp),J=v.isValidElement(S)?S:Go.jsx("span",{children:S}),X=Es(),Z=(()=>{const e=v.useContext(Ll);return null!=e&&e})(),[ee,te]=v.useState(),[ne,re]=v.useState(null),oe=v.useRef(!1),ie=R||P,ae=cl(),le=cl(),se=cl(),ue=cl(),[ce,de]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=v.useRef(void 0!==e),[i,a]=v.useState(t);return[o?e:i,v.useCallback((e=>{o||a(e)}),[])]}({controlled:H,default:!1,name:"Tooltip",state:"open"});let pe=ce;const fe=ol(D),he=v.useRef(),me=il((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ue.clear()}));v.useEffect((()=>me),[me]);const ge=e=>{Lp.clear(),Mp=!0,de(!0),F&&!pe&&F(e)},ve=il((e=>{Lp.start(800+$,(()=>{Mp=!1})),de(!1),B&&pe&&B(e),ae.start(X.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),L||Mp&&O?le.start(Mp?O:L,(()=>{ge(e)})):ge(e))},ye=e=>{le.clear(),se.start($,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:_e,onFocus:Ee,ref:Ce}=yl(),[,Se]=v.useState(!1),we=e=>{_e(e),!1===xe.current&&(Se(!1),ye(e))},ke=e=>{ee||te(e.currentTarget),Ee(e),!0===xe.current&&(Se(!0),be(e))},Te=e=>{oe.current=!0;const t=J.props;t.onTouchStart&&t.onTouchStart(e)},Ae=e=>{Te(e),se.clear(),ae.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.start(I,(()=>{document.body.style.WebkitUserSelect=he.current,be(e)}))},Ne=e=>{J.props.onTouchEnd&&J.props.onTouchEnd(e),me(),se.start(z,(()=>{ve(e)}))};v.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,pe]);const Re=al(kl(J),Ce,te,t);U||0===U||(pe=!1);const Me=v.useRef(),Le={},Oe="string"==typeof U;T?(Le.title=pe||!Oe||N?null:U,Le["aria-describedby"]=pe?fe:null):(Le["aria-label"]=Oe?U:null,Le["aria-labelledby"]=pe&&!Oe?fe:null);const Ie=pn({},Le,Q,J.props,{className:ya(Q.className,J.props.className),onTouchStart:Te,ref:Re},P?{onMouseMove:e=>{const t=J.props;t.onMouseMove&&t.onMouseMove(e),Op={x:e.clientX,y:e.clientY},Me.current&&Me.current.update()}}:{}),Pe={};M||(Ie.onTouchStart=Ae,Ie.onTouchEnd=Ne),N||(Ie.onMouseOver=Ip(be,Ie.onMouseOver),Ie.onMouseLeave=Ip(ye,Ie.onMouseLeave),ie||(Pe.onMouseOver=be,Pe.onMouseLeave=ye)),A||(Ie.onFocus=Ip(ke,Ie.onFocus),Ie.onBlur=Ip(we,Ie.onBlur),ie||(Pe.onFocus=ke,Pe.onBlur=we));const De=v.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=G.popperOptions)&&e.modifiers&&(t=t.concat(G.popperOptions.modifiers)),pn({},G.popperOptions,{modifiers:t})}),[ne,G]),$e=pn({},E,{isRtl:Z,arrow:C,disableInteractive:ie,placement:j,PopperComponentProp:W,touch:oe.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return xl({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ci(i.split("-")[0])}`],arrow:["arrow"]},wp,t)})($e),Be=null!=(n=null!=(r=Y.popper)?r:w.Popper)?n:Ap,Fe=null!=(o=null!=(i=null!=(a=Y.transition)?a:w.Transition)?i:V)?o:np,He=null!=(l=null!=(s=Y.tooltip)?s:w.Tooltip)?l:Np,je=null!=(u=null!=(c=Y.arrow)?c:w.Arrow)?u:Rp,We=El(Be,pn({},G,null!=(d=K.popper)?d:k.popper,{className:ya(ze.popper,null==G?void 0:G.className,null==(p=null!=(f=K.popper)?f:k.popper)?void 0:p.className)}),$e),Ge=El(Fe,pn({},q,null!=(h=K.transition)?h:k.transition),$e),Ke=El(He,pn({},null!=(m=K.tooltip)?m:k.tooltip,{className:ya(ze.tooltip,null==(g=null!=(b=K.tooltip)?b:k.tooltip)?void 0:g.className)}),$e),Ye=El(je,pn({},null!=(y=K.arrow)?y:k.arrow,{className:ya(ze.arrow,null==(x=null!=(_=K.arrow)?_:k.arrow)?void 0:x.className)}),$e);return Go.jsxs(v.Fragment,{children:[v.cloneElement(J,Ie),Go.jsx(Be,pn({as:null!=W?W:hd,placement:j,anchorEl:P?{getBoundingClientRect:()=>({top:Op.y,left:Op.x,right:Op.x,bottom:Op.y,width:0,height:0})}:ee,popperRef:Me,open:!!ee&&pe,id:fe,transition:!0},Pe,We,{popperOptions:De,children:({TransitionProps:e})=>Go.jsx(Fe,pn({timeout:X.transitions.duration.shorter},e,Ge,{children:Go.jsxs(He,pn({},Ke,{children:[U,C?Go.jsx(je,pn({},Ye,{ref:re})):null]}))}))}))]})})),Dp=b(((e,t)=>Go.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:Go.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"})}))),$p=b(((e,t)=>Go.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:Go.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})));var zp,Bp,Fp,Hp={};var jp=function(){if(Fp)return Bp;Fp=1;const e=function(){if(zp)return Hp;zp=1;var e=oe(),t=Ee(),n=re(),r=ee(),o=g;return Hp.LinkPlugin=function({validateUrl:i}){let[a]=t.useLexicalComposerContext();return o.useEffect((()=>{if(!a.hasNodes([e.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return n.mergeRegister(a.registerCommand(e.TOGGLE_LINK_COMMAND,(t=>{if(null===t)return e.toggleLink(t),!0;if("string"==typeof t)return!(void 0!==i&&!i(t)||(e.toggleLink(t),0));let{url:n,target:r,rel:o,title:a}=t;return e.toggleLink(n,{rel:o,target:r,title:a}),!0}),r.COMMAND_PRIORITY_LOW),void 0!==i?a.registerCommand(r.PASTE_COMMAND,(t=>{let n=r.$getSelection();if(!r.$isRangeSelection(n)||n.isCollapsed()||!(t instanceof ClipboardEvent)||null==t.clipboardData)return!1;let o=t.clipboardData.getData("text");return!!i(o)&&!n.getNodes().some((e=>r.$isElementNode(e)))&&(a.dispatchCommand(e.TOGGLE_LINK_COMMAND,o),t.preventDefault(),!0)}),r.COMMAND_PRIORITY_LOW):()=>{})}),[a,i]),null},Hp}();return Bp=e}();function Wp(e){if(e.type)return e;if("#"===e.charAt(0))return Wp(function(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(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(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."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Gp(e,t){return e=Wp(e),t=function(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)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(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(", "),")")}(e)}const Kp={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)"},Yp=12,Up=14,Vp=16,qp=24,Qp=3,Jp=300,Xp=400,Zp=600,ef=700,tf={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Gp(Kp.GREYSCALE_0,.05),Gp(Kp.GREEN_PALE,.5),Gp(Kp.BLUE_PALE,.5),Gp(Kp.GREEN_PALE,.5),Gp(Kp.BLUE_PALE,.5),Gp(Kp.GREEN_PALE,.5),Gp(Kp.BLUE_PALE,.5);var nf;function rf(){return rf=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},rf.apply(null,arguments)}Gp(Kp.GREEN_PALE,.5),Gp(Kp.BLUE_PALE,.5),Gp(Kp.GREEN_PALE,.5),Gp(Kp.BLUE_PALE,.5);var of,af=function(e){return v.createElement("svg",rf({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),nf||(nf=v.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function lf(){return lf=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},lf.apply(null,arguments)}var sf=function(e){return v.createElement("svg",lf({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),of||(of=v.createElement("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.345z"})))};function uf({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Go.jsx("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function cf(e={}){return Go.jsx(uf,{...e,children:Go.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Go.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Go.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 df(e={}){return Go.jsx(uf,{...e,children:Go.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Go.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Go.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Go.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function pf(e={}){return Go.jsx(uf,{fontSize:"medium",...e,children:Go.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Go.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Go.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function ff(e={}){return Go.jsx(uf,{fontSize:"medium",...e,children:Go.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Go.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Go.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 hf({className:e}){return Go.jsx(uf,{fontSize:"small",className:e,children:Go.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Go.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Go.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Go.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Go.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"}),Go.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 mf(e={}){return Go.jsx(uf,{...e,children:Go.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Go.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Go.jsx("rect",{stroke:Kp.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Go.jsx(sf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Go.jsx(af,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Go.jsx(pf,{}),Go.jsx(ff,{}),Go.jsx((function(e={}){return Go.jsx(uf,{...e,children:Go.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Go.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Go.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Go.jsx(cf,{}),Go.jsx(df,{}),Go.jsx(af,{style:{color:Kp.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const gf={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:Qp,"& > 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 vf=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Kp.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Kp.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Go.jsx(af,{"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 ${Kp.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Kp.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Kp.MISC_FOCUS_BORDER}`,borderRadius:Qp,backgroundColor:Kp.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 ${Kp.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Kp.WHITE,color:Kp.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:Qp},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Kp.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Kp.GREYSCALE_0_15,backgroundColor:Kp.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Kp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Kp.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Kp.GREEN_PALE},"&:active":{backgroundColor:Kp.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Kp.GREEN_PALE,boxShadow:`0 0 0 3px ${Xa(Kp.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Kp.BLUE_PALE},"&:active":{backgroundColor:Kp.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Kp.BLUE_PALE,boxShadow:`0 0 0 3px ${Xa(Kp.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:Qp,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Kp.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Kp.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Kp.GREYSCALE_0_15,backgroundColor:Kp.GREYSCALE_100_60,"&:active":{backgroundColor:Kp.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Kp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Kp.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Kp.PURPLE,"&.Mui-focusVisible":{borderColor:Kp.PURPLE,boxShadow:`0 0 0 3px ${Xa(Kp.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Kp.GREEN,"&.Mui-focusVisible":{borderColor:Kp.GREEN,boxShadow:`0 0 0 3px ${Xa(Kp.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Kp.BLUE,"&.Mui-focusVisible":{borderColor:Kp.BLUE,boxShadow:`0 0 0 3px ${Xa(Kp.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Kp.ORANGE,"&.Mui-focusVisible":{borderColor:Kp.ORANGE,boxShadow:`0 0 0 3px ${Xa(Kp.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Kp.RED,"&.Mui-focusVisible":{borderColor:Kp.RED,boxShadow:`0 0 0 3px ${Xa(Kp.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Kp.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Kp.PURPLE_PALE},"&:active":{backgroundColor:Kp.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Kp.PURPLE_PALE,boxShadow:`0 0 0 3px ${Xa(Kp.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Kp.GREEN_PALE},"&:active":{backgroundColor:Kp.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Kp.GREEN_PALE,boxShadow:`0 0 0 3px ${Xa(Kp.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Kp.BLUE_PALE},"&:active":{backgroundColor:Kp.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Kp.BLUE_PALE,boxShadow:`0 0 0 3px ${Xa(Kp.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Kp.ORANGE_PALE},"&:active":{backgroundColor:Kp.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Kp.ORANGE_PALE,boxShadow:`0 0 0 3px ${Xa(Kp.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Kp.RED_PALE},"&:active":{backgroundColor:Kp.RED_DARK},"&.Mui-focusVisible":{borderColor:Kp.RED_PALE,boxShadow:`0 0 0 3px ${Xa(Kp.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:Kp.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Kp.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Qp,boxShadow:`inset 0 0 0 2px ${Kp.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Go.jsx(sf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Yp,borderRadius:Qp,color:Kp.TEXT_PRIMARY,backgroundColor:Kp.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Kp.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Kp.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Kp.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Kp.GREYSCALE_0_05,color:Kp.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Kp.GREEN,borderColor:Kp.GREEN},"&.MuiChip-outlinedInfo":{color:Kp.BLUE,borderColor:Kp.BLUE},"&.MuiChip-outlinedWarning":{color:Kp.ORANGE,borderColor:Kp.ORANGE},"&.MuiChip-outlinedError":{color:Kp.RED,borderColor:Kp.RED}},outlined:{border:`solid 1px ${Kp.GREYSCALE_0_15}`,backgroundColor:Kp.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Qp,boxShadow:"none",backgroundColor:Kp.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Kp.GREEN,borderColor:Kp.GREEN},outlinedSecondary:{color:Kp.BLUE,borderColor:Kp.BLUE},label:{fontFamily:tf.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Go.jsx(sf,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Go.jsx(af,{"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:Qp},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Qp,fontSize:Up,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Kp.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Kp.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Kp.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Kp.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Kp.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Qp,border:`solid 1px ${Kp.GREYSCALE_0_15}`,color:Kp.GREYSCALE_0_60,marginRight:0,width:qp,height:qp},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Kp.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Qp,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Kp.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Up}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Yp,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Kp.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Kp.GREYSCALE_25,fontSize:Yp,fontFamily:tf.FONT_FAMILY,fontWeight:Zp,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Kp.TEXT_PRIMARY},"&.Mui-error":{color:Kp.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Kp.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Xp,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Kp.TEXT_SECONDARY,content:"'(required)'",fontWeight:Xp,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Up,lineHeight:"16px",backgroundColor:Kp.WHITE,borderRadius:Qp,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Kp.GREYSCALE_0_05}`,borderColor:Kp.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Kp.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Kp.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Kp.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Kp.RED}`,boxShadow:`0px 0px 0px 1px ${Kp.RED}, inset 0 2px 0 0 ${Kp.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Kp.GREYSCALE_0_10}`,borderColor:Kp.GREYSCALE_0_10,backgroundColor:Kp.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Kp.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Kp.GREYSCALE_0_15,borderRadius:Qp,boxShadow:`inset 0 2px 0 0 ${Kp.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Go.jsx(af,{...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:Kp.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Kp.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Kp.GREYSCALE_0_03},"&:active":{backgroundColor:Kp.GREYSCALE_0_10},"&:focus":{backgroundColor:Kp.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Kp.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Kp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Kp.GREYSCALE_0_30,"&:hover":{backgroundColor:Kp.GREYSCALE_0_0,borderColor:Kp.GREYSCALE_0_15},"& ~svg":{color:Kp.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Kp.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Qp}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Kp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Kp.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Kp.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Up,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Yp,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Yp,fontWeight:Zp,color:Kp.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Zp}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Kp.GREYSCALE_0_15}, 0px 0px 0px 1px ${Kp.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Go.jsx(pf,{}),checkedIcon:Go.jsx(ff,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Kp.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Kp.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Kp.GREEN_PALE,boxShadow:`0 0 0 3px ${Xa(Kp.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Kp.BLUE_PALE,boxShadow:`0 0 0 3px ${Xa(Kp.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Kp.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Kp.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Go.jsx(mf,{}),checkedIcon:Go.jsx(cf,{}),indeterminateIcon:Go.jsx(df,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Qp,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Kp.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Kp.GREYSCALE_0_55,color:Kp.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:Kp.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Kp.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Kp.GREYSCALE_0_55,"&:hover":{color:Kp.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:Kp.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Kp.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Up,color:Kp.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Zp},secondary:{fontSize:Yp,color:Kp.GREYSCALE_45,fontWeight:Xp,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Up,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Up,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Kp.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Yp,borderBottom:`solid 1px ${Kp.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Up,color:Kp.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Kp.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Kp.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Kp.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Kp.RED}}},"&.Mui-focusVisible":{backgroundColor:Kp.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:Kp.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:Kp.GREEN,height:"24px","&.Mui-disabled":{color:Kp.GREYSCALE_0_15}},rail:{backgroundColor:Kp.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Kp.GREYSCALE_0_05}`,borderRadius:Qp,boxShadow:`inset 0px 0px 0px 1px ${Kp.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Kp.GREYSCALE_0_05}`,borderRadius:Qp},thumb:{height:"16px",width:"16px",borderRadius:Qp,backgroundColor:Kp.WHITE,boxShadow:`0px 1px 2px 0px ${Kp.GREYSCALE_0_15}, 0px 0px 0px 1px ${Kp.GREYSCALE_0_05}`,"&:hover":{borderRadius:Qp,boxShadow:`0 2px 4px 0 ${Kp.GREYSCALE_0_30}, 0 0 0 1px ${Kp.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Kp.GREYSCALE_0_15}, 0 0 0 1px ${Kp.GREYSCALE_0_06}, 0 0 0 2px ${Kp.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Kp.GREYSCALE_0_15}, 0 0 0 1px ${Kp.GREYSCALE_0_06}, 0 0 0 2px ${Kp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Kp.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Kp.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Kp.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Kp.GREYSCALE_0_15},markLabel:{color:Kp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Kp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Kp.WHITE,color:Kp.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:Kp.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:Kp.GREEN_PALE,boxShadow:`0 0 0 3px ${Xa(Kp.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Kp.BLUE_PALE,boxShadow:`0 0 0 3px ${Xa(Kp.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Kp.GREYSCALE_0_15,borderRadius:Qp},thumb:{height:"16px",width:"16px",borderRadius:Qp,backgroundColor:Kp.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:Up,fontWeight:Zp,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Kp.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Kp.MISC_FOCUS_BORDER}`,backgroundColor:Kp.GREYSCALE_0_03,borderRadius:Qp},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Kp.GREYSCALE_25,"&.Mui-selected":{color:Kp.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Up,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Qp,"&:hover":{backgroundColor:Kp.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 ${Kp.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Kp.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Qp,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Kp.GREYSCALE_0_05},"&:hover":{backgroundColor:Kp.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Kp.GREYSCALE_85}`,borderRight:`1px solid ${Kp.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Zp,backgroundColor:Kp.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:Kp.GREYSCALE_98,borderBottom:`1px solid ${Kp.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Kp.GREYSCALE_85}`,borderTop:`1px solid ${Kp.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Kp.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Kp.GREYSCALE_0_05,"&:hover":{backgroundColor:Kp.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Kp.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Go.jsx(hf,{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 ${Kp.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Up,borderRadius:Qp,padding:"7px 16px",border:`1px solid ${Kp.GREYSCALE_0_15}`,backgroundColor:Kp.GREYSCALE_100_60,color:Kp.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Kp.GREYSCALE_0_10,border:`1px solid ${Kp.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Kp.GREYSCALE_0_03,border:`1px solid ${Kp.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Kp.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Kp.MISC_FOCUS_BORDER}`,border:`1px solid ${Kp.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Kp.GREYSCALE_25,backgroundColor:Kp.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Kp.GREYSCALE_0_10,border:`1px solid ${Kp.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Yp,height:24,width:24,padding:7},sizeLarge:{fontSize:Vp,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Up,borderRadius:Qp}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Kp.GREYSCALE_20},tooltip:{backgroundColor:Kp.GREYSCALE_20,fontSize:Yp,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...gf}:{}}))(t);const bf=e=>({mode:"light",primary:{ultraLight:Kp.GREEN_ULTRA_LIGHT,light:Kp.GREEN_PALE,main:Kp.GREEN,dark:Kp.GREEN_DARK,extraDark:Kp.GREEN_EXTRA_DARK,contrastText:Kp.WHITE},secondary:{ultraLight:Kp.BLUE_ULTRA_LIGHT,light:Kp.BLUE_PALE,main:Kp.BLUE,dark:Kp.BLUE_DARK,extraDark:Kp.BLUE_EXTRA_DARK,contrastText:Kp.WHITE},error:{ultraLight:Kp.RED_ULTRA_LIGHT,light:Kp.RED_PALE,main:Kp.RED,dark:Kp.RED_DARK,extraDark:Kp.RED_EXTRA_DARK,contrastText:Kp.WHITE},warning:{ultraLight:Kp.ORANGE_ULTRA_LIGHT,light:Kp.ORANGE_PALE,main:Kp.ORANGE,dark:Kp.ORANGE_DARK,extraDark:Kp.ORANGE_EXTRA_DARK,contrastText:Kp.WHITE},success:{ultraLight:Kp.GREEN_ULTRA_LIGHT,light:Kp.GREEN_PALE,main:Kp.GREEN,dark:Kp.GREEN_DARK,extraDark:Kp.GREEN_EXTRA_DARK,contrastText:Kp.WHITE},info:{ultraLight:Kp.BLUE_ULTRA_LIGHT,light:Kp.BLUE_PALE,main:Kp.BLUE,dark:Kp.BLUE_DARK,extraDark:Kp.BLUE_EXTRA_DARK,contrastText:Kp.WHITE},text:{primary:Kp.TEXT_PRIMARY,secondary:Kp.TEXT_SECONDARY,disabled:Kp.GREYSCALE_0_30},action:{hover:Kp.GREYSCALE_0_03,hoverOpacity:.03,selected:Kp.GREYSCALE_0_05,selectedOpacity:.05,focus:Kp.MISC_FOCUS_BORDER},amethyst:{ultraLight:Kp.WHITE,main:Kp.PURPLE,light:Kp.PURPLE_PALE,dark:Kp.PURPLE_DARK,extraDark:Kp.GREYSCALE_0_0,contrastText:Kp.WHITE},background:{paper:Kp.WHITE,default:Kp.GREYSCALE_95},divider:Kp.GREYSCALE_0_15}),yf=(e="light",t=!1)=>xs(((e,t=!1)=>({components:vf(0,t),palette:bf(),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:Up,fontWeightLight:Jp,fontWeightRegular:Xp,fontWeightMedium:Zp,fontWeightBold:ef,htmlFontSize:Up,fontFamily:tf.FONT_FAMILY,button:{fontWeight:Zp,fontSize:Up,textTransform:"none"},body1:{fontSize:Vp,lineHeight:"24px"},body2:{fontSize:Up,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:qp,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Vp,fontWeight:Zp,lineHeight:"16px"},h6:{fontSize:Up,fontWeight:Zp,lineHeight:"16px"},caption:{color:Kp.TEXT_SECONDARY},subtitle1:{fontSize:Up,color:Kp.TEXT_SECONDARY},subtitle2:{fontSize:Yp,color:Kp.TEXT_SECONDARY}},shape:{borderRadius:Qp}}))(0,t)),xf=b(((e,t)=>Go.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:Go.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 _f=Object.defineProperty,Ef=Object.getOwnPropertySymbols,Cf=Object.prototype.hasOwnProperty,Sf=Object.prototype.propertyIsEnumerable,wf=(e,t,n)=>t in e?_f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kf=(e,t)=>{for(var n in t)_f(e,n,{get:t[n],enumerable:!0})},Tf=(e,t,n)=>(wf(e,"symbol"!=typeof t?t+"":t,n),n);kf({},{DEFAULT_LANGUAGE:()=>Nf,DEFAULT_LANGUAGE_SHORT:()=>Rf,flattenParams:()=>Bf,flattenTranslationsJSON:()=>Of,format:()=>Ff,formatWithKeys:()=>Hf,getLongLanguageDesc:()=>zf,getShortLanguageDesc:()=>$f,parseLangFromUrl:()=>If,resolveLocale:()=>Df,updateLangAttribute:()=>jf});var Af=[{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"}],Nf="en-US",Rf="en",Mf=["zh-cn","zh-tw","qps-ploc"],Lf=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Of=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),Lf(e)?Object.keys(e).reduce(((t,n)=>{const r=e[n],o=Lf(r)&&r.value;return o&&(t[n]=o),t}),{}):{}),If=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},Pf=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(Mf.includes(e.toLocaleLowerCase()))return Af.find((({long:e})=>e.toLowerCase()===t));const[n]=t.split("-");return Af.find((({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t))},Df=(...e)=>{for(const t of e){const e=Pf(t);if(e)return e.short}},$f=e=>{const t=Pf(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${Rf}'`),Rf)},zf=e=>{const t=Pf(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${Nf}'`),Nf)},Bf=e=>Array.isArray(e[0])?e[0]:e,Ff=(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))},Hf=(e,t)=>e.replace(/(\{)(\w+)(\})/g,((e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e})),jf=e=>{const t=$f(e);document.documentElement.setAttribute("lang",t)},Wf={},Gf=Array.prototype.slice,Kf=function(e){return("0"+e.toString()).substr(-2)},Yf=function(e){var t=typeof e;return"function"===t||"object"===t},Uf=function(e){return"function"===typeof e},Vf=function(e){return null!=e},qf=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},Qf=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},Jf=function(e){return!0===e||!1===e},Xf=function(e){return null===e},Zf=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))))},eh=function(e,t){return Uf(e)?e(t):e},th=function(e,t){var n,r,o;for(n in t)t.hasOwnProperty(n)&&(r=t[n],"string"==typeof(o=r)||"[object String]"===Object.prototype.toString.call(o)||Qf(r)||Jf(r)||qf(r)||Xf(r)?e[n]=r:(null==e[n]&&(e[n]={}),th(e[n],r)));return e},nh={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"]},rh={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},oh={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},ih={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},ah=[null,"kb","mb","gb","tb"],lh={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};Wf.reset=function(){var e;for(e in lh)this[e]=lh[e]},Wf.initializeOptions=function(){var e;for(e in lh)Vf(this[e])||(this[e]=lh[e])},Wf.initializeOptions(),Wf.locales={},Wf.locales.get=function(e){var t=this[e]||this[Wf.locale]||this.default;return Uf(t)&&(t=t(e)),!1===qf(t)&&(t=[t]),t},Wf.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&Wf.locale&&t.push(Wf.locale),Wf.fallbacks&&Wf.defaultLocale&&t.push(Wf.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),Wf.fallbacks&&[r,o].forEach((function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)}))})),t.length||t.push("en"),n},Wf.pluralization={},Wf.pluralization.get=function(e){return this[e]||this[Wf.locale]||this.default},Wf.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},Wf.currentLocale=function(){return this.locale||this.defaultLocale},Wf.isSet=Vf,Wf.lookup=function(e,t){t=t||{};var n,r,o,i,a=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);a.length;)if(n=a.shift(),r=o.split(t.separator||this.defaultSeparator),i=this.translations[n]){for(;r.length&&null!=(i=i[r.shift()]););if(null!=i)return i}if(Vf(t.defaultValue))return eh(t.defaultValue,e)},Wf.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&Yf(n))for(;i.length;)if(r=i.shift(),Vf(n[r])){o=n[r];break}return o},Wf.pluralizationLookup=function(e,t,n){n=n||{};var r,o,i,a,l=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);l.length;)if(r=l.shift(),o=t.split(n.separator||this.defaultSeparator),i=this.translations[r]){for(;o.length&&(i=i[o.shift()],Yf(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&Vf(n.defaultValue)&&(a=Yf(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},Wf.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:nh.meridian},Wf.prepareOptions=function(){for(var e,t=Gf.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(Vf(n[r])||(n[r]=e[r]));return n},Wf.createTranslationOptions=function(e,t){var n=[{scope:e}];return Vf(t.defaults)&&(n=n.concat(t.defaults)),Vf(t.defaultValue)&&n.push({message:t.defaultValue}),n},Wf.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(Vf(t.scope)?(o=t.scope,n=this.lookup(o,i)):Vf(t.message)&&(n=eh(t.message,e)),null!=n)return!0}),this)?("string"==typeof n?n=this.interpolate(n,t):qf(n)?n=n.map((function(e){return"string"==typeof e?this.interpolate(e,t):e}),this):Yf(n)&&Vf(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},Wf.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,a=e.match(this.placeholder);if(!a)return e;for(;a.length;)o=(n=a.shift()).replace(this.placeholder,"$1"),r=Vf(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,"$")},Wf.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))},Wf.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]'},Wf.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},Wf.nullPlaceholder=function(){return Wf.missingPlaceholder.apply(Wf,arguments)},Wf.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),rh);var n,r,o=e<0,i=function(e,t){return Zf("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString(),a=i.split("."),l=[],s=t.format||"%n",u=o?"-":"";for(e=a[0],n=a[1];e.length>0;)l.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return r=l.join(t.delimiter),t.strip_insignificant_zeros&&n&&(n=n.replace(/0+$/,"")),t.precision>0&&n&&(r+=t.separator+n),r=(s=t.sign_first?"%s"+s:s.replace("%n","%s%n")).replace("%u",t.unit).replace("%n",r).replace("%s",u)},Wf.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),oh),this.toNumber(e,t)},Wf.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)}},Wf.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},Wf.strftime=function(e,t,n){n=this.lookup("date",n);var r=Wf.meridian();if(n||(n={}),n=this.prepareOptions(n,nh),isNaN(e.getTime()))throw new Error("I18n.strftime() requires a valid date object, but received an invalid date.");var o=e.getDay(),i=e.getDate(),a=e.getFullYear(),l=e.getMonth()+1,s=e.getHours(),u=s,c=s>11?1:0,d=e.getSeconds(),p=e.getMinutes(),f=e.getTimezoneOffset(),h=Math.floor(Math.abs(f/60)),m=Math.abs(f)-60*h,g=(f>0?"-":"+")+(h.toString().length<2?"0"+h:h)+(m.toString().length<2?"0"+m:m);return u>12?u-=12:0===u&&(u=12),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",n.abbr_day_names[o])).replace("%A",n.day_names[o])).replace("%b",n.abbr_month_names[l])).replace("%B",n.month_names[l])).replace("%d",Kf(i))).replace("%e",i)).replace("%-d",i)).replace("%H",Kf(s))).replace("%-H",s)).replace("%k",s)).replace("%I",Kf(u))).replace("%-I",u)).replace("%l",u)).replace("%m",Kf(l))).replace("%-m",l)).replace("%M",Kf(p))).replace("%-M",p)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",Kf(d))).replace("%-S",d)).replace("%w",o)).replace("%y",Kf(a))).replace("%-y",Kf(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",g)).replace("%Z",g)},Wf.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},Wf.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),ih),this.toNumber(e,t)},Wf.toHumanSize=function(e,t){for(var n,r,o,i=e,a=0;i>=1024&&a<4;)i/=1024,a+=1;return 0===a?(o=this.getFullScope("number.human.storage_units.units.byte",t),n=this.t(o,{count:i}),r=0):(o=this.getFullScope("number.human.storage_units.units."+ah[a],t),n=this.t(o),r=i-Math.floor(i)==0?0:1),t=this.prepareOptions(t,{unit:n,precision:r,format:"%n%u",delimiter:""}),this.toNumber(i,t)},Wf.getFullScope=function(e,t){return t=t||{},qf(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},Wf.extend=function(e,t){return void 0===e&&void 0===t?{}:th(e,t)},Wf.t=Wf.translate.bind(Wf),Wf.l=Wf.localize.bind(Wf),Wf.p=Wf.pluralize.bind(Wf);var sh={};kf(sh,{af:()=>mh,ak:()=>gh,am:()=>vh,an:()=>bh,ar:()=>yh,ars:()=>xh,as:()=>_h,asa:()=>Eh,ast:()=>Ch,az:()=>Sh,bal:()=>wh,be:()=>kh,bem:()=>Th,bez:()=>Ah,bg:()=>Nh,bho:()=>Rh,bm:()=>Mh,bn:()=>Lh,bo:()=>Oh,br:()=>Ih,brx:()=>Ph,bs:()=>Dh,ca:()=>$h,ce:()=>zh,ceb:()=>Bh,cgg:()=>Fh,chr:()=>Hh,ckb:()=>jh,cs:()=>Wh,cy:()=>Gh,da:()=>Kh,de:()=>Yh,doi:()=>Uh,dsb:()=>Vh,dv:()=>qh,dz:()=>Qh,ee:()=>Jh,el:()=>Xh,en:()=>Zh,eo:()=>em,es:()=>tm,et:()=>nm,eu:()=>rm,fa:()=>om,ff:()=>im,fi:()=>am,fil:()=>lm,fo:()=>sm,fr:()=>um,fur:()=>cm,fy:()=>dm,ga:()=>pm,gd:()=>fm,gl:()=>hm,gsw:()=>mm,gu:()=>gm,guw:()=>vm,gv:()=>bm,ha:()=>ym,haw:()=>xm,he:()=>_m,hi:()=>Em,hnj:()=>Cm,hr:()=>Sm,hsb:()=>wm,hu:()=>km,hy:()=>Tm,ia:()=>Am,id:()=>Nm,ig:()=>Rm,ii:()=>Mm,io:()=>Lm,is:()=>Om,it:()=>Im,iu:()=>Pm,ja:()=>Dm,jbo:()=>$m,jgo:()=>zm,jmc:()=>Bm,jv:()=>Fm,jw:()=>Hm,ka:()=>jm,kab:()=>Wm,kaj:()=>Gm,kcg:()=>Km,kde:()=>Ym,kea:()=>Um,kk:()=>Vm,kkj:()=>qm,kl:()=>Qm,km:()=>Jm,kn:()=>Xm,ko:()=>Zm,ks:()=>eg,ksb:()=>tg,ksh:()=>ng,ku:()=>rg,kw:()=>og,ky:()=>ig,lag:()=>ag,lb:()=>lg,lg:()=>sg,lij:()=>ug,lkt:()=>cg,ln:()=>dg,lo:()=>pg,lt:()=>fg,lv:()=>hg,mas:()=>mg,mg:()=>gg,mgo:()=>vg,mk:()=>bg,ml:()=>yg,mn:()=>xg,mo:()=>_g,mr:()=>Eg,ms:()=>Cg,mt:()=>Sg,my:()=>wg,nah:()=>kg,naq:()=>Tg,nb:()=>Ag,nd:()=>Ng,ne:()=>Rg,nl:()=>Mg,nn:()=>Lg,nnh:()=>Og,no:()=>Ig,nqo:()=>Pg,nr:()=>Dg,nso:()=>$g,ny:()=>zg,nyn:()=>Bg,om:()=>Fg,or:()=>Hg,os:()=>jg,osa:()=>Wg,pa:()=>Gg,pap:()=>Kg,pcm:()=>Yg,pl:()=>Ug,prg:()=>Vg,ps:()=>qg,pt:()=>Qg,pt_PT:()=>Jg,rm:()=>Xg,ro:()=>Zg,rof:()=>ev,ru:()=>tv,rwk:()=>nv,sah:()=>rv,saq:()=>ov,sat:()=>iv,sc:()=>av,scn:()=>lv,sd:()=>sv,sdh:()=>uv,se:()=>cv,seh:()=>dv,ses:()=>pv,sg:()=>fv,sh:()=>hv,shi:()=>mv,si:()=>gv,sk:()=>vv,sl:()=>bv,sma:()=>yv,smi:()=>xv,smj:()=>_v,smn:()=>Ev,sms:()=>Cv,sn:()=>Sv,so:()=>wv,sq:()=>kv,sr:()=>Tv,ss:()=>Av,ssy:()=>Nv,st:()=>Rv,su:()=>Mv,sv:()=>Lv,sw:()=>Ov,syr:()=>Iv,ta:()=>Pv,te:()=>Dv,teo:()=>$v,th:()=>zv,ti:()=>Bv,tig:()=>Fv,tk:()=>Hv,tl:()=>jv,tn:()=>Wv,to:()=>Gv,tpi:()=>Kv,tr:()=>Yv,ts:()=>Uv,tzm:()=>Vv,ug:()=>qv,uk:()=>Qv,und:()=>Jv,ur:()=>Xv,uz:()=>Zv,ve:()=>eb,vec:()=>tb,vi:()=>nb,vo:()=>rb,vun:()=>ob,wa:()=>ib,wae:()=>ab,wo:()=>lb,xh:()=>sb,xog:()=>ub,yi:()=>cb,yo:()=>db,yue:()=>pb,zh:()=>fb,zu:()=>hb});var uh=(e,t)=>t?"other":1==e?"one":"other",ch=(e,t)=>t?"other":0==e||1==e?"one":"other",dh=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",ph=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},fh=(e,t)=>"other",hh=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",mh=uh,gh=ch,vh=dh,bh=uh,yh=(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"},xh=(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"},_h=(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",Eh=uh,Ch=ph,Sh=(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"},wh=(e,t)=>1==e?"one":"other",kh=(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"},Th=uh,Ah=uh,Nh=uh,Rh=ch,Mh=fh,Lh=(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",Oh=fh,Ih=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return t?"other":1==o&&11!=i&&71!=i&&91!=i?"one":2==o&&12!=i&&72!=i&&92!=i?"two":(3==o||4==o||9==o)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&r&&0==a?"many":"other"},Ph=uh,Dh=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},$h=(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"},zh=uh,Bh=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=l&&6!=l&&9!=l?"one":"other"},Fh=uh,Hh=uh,jh=uh,Wh=(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"},Gh=(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",Kh=(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"},Yh=ph,Uh=dh,Vh=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),l=o.slice(-2);return t?"other":i&&1==a||1==l?"one":i&&2==a||2==l?"two":i&&(3==a||4==a)||3==l||4==l?"few":"other"},qh=uh,Qh=fh,Jh=uh,Xh=uh,Zh=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},em=uh,tm=(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"},nm=ph,rm=uh,om=dh,im=(e,t)=>t?"other":e>=0&&e<2?"one":"other",am=ph,lm=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=l&&6!=l&&9!=l?"one":"other"},sm=uh,um=(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"},cm=uh,dm=ph,pm=(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"},fm=(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"},hm=ph,mm=uh,gm=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",vm=ch,bm=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?o?"other":"many":"few"},ym=uh,xm=uh,_m=(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"},Em=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",Cm=fh,Sm=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},wm=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),l=o.slice(-2);return t?"other":i&&1==a||1==l?"one":i&&2==a||2==l?"two":i&&(3==a||4==a)||3==l||4==l?"few":"other"},km=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",Tm=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",Am=ph,Nm=fh,Rm=fh,Mm=fh,Lm=ph,Om=(e,t)=>{const n=String(e).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==e,a=r.slice(-1),l=r.slice(-2);return t?"other":i&&1==a&&11!=l||o%10==1&&o%100!=11?"one":"other"},Im=(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"},Pm=hh,Dm=fh,$m=fh,zm=uh,Bm=uh,Fm=fh,Hm=fh,jm=(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"},Wm=(e,t)=>t?"other":e>=0&&e<2?"one":"other",Gm=uh,Km=uh,Ym=fh,Um=fh,Vm=(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"},qm=uh,Qm=uh,Jm=fh,Xm=dh,Zm=fh,eg=uh,tg=uh,ng=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",rg=uh,og=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),a=r&&n[0].slice(-5),l=r&&n[0].slice(-6);return t?r&&e>=1&&e<=4||o>=1&&o<=4||o>=21&&o<=24||o>=41&&o<=44||o>=61&&o<=64||o>=81&&o<=84?"one":5==e||5==o?"many":"other":0==e?"zero":1==e?"one":2==o||22==o||42==o||62==o||82==o||r&&0==i&&(a>=1e3&&a<=2e4||4e4==a||6e4==a||8e4==a)||0!=e&&1e5==l?"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"},ig=uh,ag=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},lg=uh,sg=uh,ug=(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"},cg=fh,dg=ch,pg=(e,t)=>t&&1==e?"one":"other",fg=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?"other":1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},hg=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||l>=11&&l<=19||2==o&&s>=11&&s<=19?"zero":1==a&&11!=l||2==o&&1==u&&11!=s||2!=o&&1==u?"one":"other"},mg=uh,gg=ch,vg=uh,bg=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?1==a&&11!=l?"one":2==a&&12!=l?"two":7!=a&&8!=a||17==l||18==l?"other":"many":i&&1==a&&11!=l||1==s&&11!=u?"one":"other"},yg=uh,xg=uh,_g=(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"},Eg=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",Cg=(e,t)=>t&&1==e?"one":"other",Sg=(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"},wg=fh,kg=uh,Tg=hh,Ag=uh,Ng=uh,Rg=(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"},Mg=ph,Lg=uh,Og=uh,Ig=uh,Pg=fh,Dg=uh,$g=ch,zg=uh,Bg=uh,Fg=uh,Hg=(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"},jg=uh,Wg=fh,Gg=ch,Kg=uh,Yg=dh,Ug=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"},Vg=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||l>=11&&l<=19||2==o&&s>=11&&s<=19?"zero":1==a&&11!=l||2==o&&1==u&&11!=s||2!=o&&1==u?"one":"other"},qg=uh,Qg=(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"},Jg=(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"},Xg=uh,Zg=(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"},ev=uh,tv=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i&&11!=a?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"},nv=uh,rv=fh,ov=uh,iv=hh,av=(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"},lv=(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"},sv=uh,uv=uh,cv=hh,dv=uh,pv=fh,fv=fh,hv=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},mv=(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"},gv=(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"},vv=(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"},bv=(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"},yv=hh,xv=hh,_v=hh,Ev=hh,Cv=hh,Sv=uh,wv=uh,kv=(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"},Tv=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},Av=uh,Nv=uh,Rv=uh,Mv=fh,Lv=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1!=i&&2!=i||11==a||12==a?"other":"one":1==e&&r?"one":"other"},Ov=ph,Iv=uh,Pv=uh,Dv=uh,$v=uh,zv=fh,Bv=ch,Fv=uh,Hv=(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"},jv=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=l&&6!=l&&9!=l?"one":"other"},Wv=uh,Gv=fh,Kv=fh,Yv=uh,Uv=uh,Vv=(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"},qv=uh,Qv=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,a=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-1),u=r.slice(-2);return t?3==a&&13!=l?"few":"other":o&&1==s&&11!=u?"one":o&&s>=2&&s<=4&&(u<12||u>14)?"few":o&&0==s||o&&s>=5&&s<=9||o&&u>=11&&u<=14?"many":"other"},Jv=fh,Xv=ph,Zv=uh,eb=uh,tb=(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"},nb=(e,t)=>t&&1==e?"one":"other",rb=uh,ob=uh,ib=ch,ab=uh,lb=fh,sb=uh,ub=uh,cb=ph,db=fh,pb=fh,fb=fh,hb=dh,mb=class e{static configure(t,n=Nf){e.translations=t,e.language=zf(n),e.languageShort=$f(n),jf(e.language),e.onTranslationsChangeListeners.forEach((e=>e())),e.i18nProvider=Wf,Wf.missingTranslation=e=>e,Wf.defaultSeparator=null,Wf.locale=e.language,Wf.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];Wf.pluralization[e.language]=e=>{try{const t=sh[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=Hf(o,n)),o}static getPlural(t,n,r){return e.i18nProvider.t(t,((e,t)=>{for(var n in t||(t={}))Cf.call(t,n)&&wf(e,n,t[n]);if(Ef)for(var n of Ef(t))Sf.call(t,n)&&wf(e,n,t[n]);return e})({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))}}};Tf(mb,"translations",{}),Tf(mb,"translationsPlurals",{}),Tf(mb,"language"),Tf(mb,"languageShort"),Tf(mb,"onTranslationsChangeListeners",[]),Tf(mb,"i18nProvider"),Tf(mb,"get",((e,...t)=>{var n;const r=Bf(t);let o=null!=(n=mb.translations[e])?n:e;return r.length>0&&(o=Ff(o,...r)),o}));var gb=mb;var vb,bb,yb,xb=function(){const[e,t]=C(0);return S((()=>{const n=gb.onTranslationsChange((()=>{t(e+1)}));return()=>{n()}}),[]),gb.get},_b=gb,Eb={};var Cb,Sb,wb,kb=function(){if(yb)return bb;yb=1;const e=function(){if(vb)return Eb;vb=1;var e=Ee(),t=g;return Eb.AutoFocusPlugin=function({defaultSelection:n}){let[r]=e.useLexicalComposerContext();return t.useEffect((()=>{r.focus((()=>{let e=document.activeElement,t=r.getRootElement();null===t||null!==e&&t.contains(e)||t.focus({preventScroll:!0})}),{defaultSelection:n})}),[n,r]),null},Eb}();return bb=e}(),Tb={};var Ab,Nb,Rb,Mb,Lb=function(){if(wb)return Sb;wb=1;const e=function(){if(Cb)return Tb;Cb=1;var e=Ee(),t=g;function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}var r="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;return Tb.ContentEditable=function({ariaActiveDescendant:o,ariaAutoComplete:i,ariaControls:a,ariaDescribedBy:l,ariaExpanded:s,ariaLabel:u,ariaLabelledBy:c,ariaMultiline:d,ariaOwns:p,ariaRequired:f,autoCapitalize:h,className:m,id:g,role:v="textbox",spellCheck:b=!0,style:y,tabIndex:x,"data-testid":_,...E}){let[C]=e.useLexicalComposerContext(),[S,w]=t.useState(!1),k=t.useCallback((e=>{C.setRootElement(e)}),[C]);return r((()=>(w(C.isEditable()),C.registerEditableListener((e=>{w(e)})))),[C]),t.createElement("div",n({},E,{"aria-activedescendant":S?o:void 0,"aria-autocomplete":S?i:"none","aria-controls":S?a:void 0,"aria-describedby":l,"aria-expanded":S&&"combobox"===v?!!s:void 0,"aria-label":u,"aria-labelledby":c,"aria-multiline":d,"aria-owns":S?p:void 0,"aria-readonly":!S||void 0,"aria-required":f,autoCapitalize:h,className:m,contentEditable:S,"data-testid":_,id:g,ref:k,role:v,spellCheck:b,style:y,tabIndex:x}))},Tb}();return Sb=e}();function Ob(){if(Nb)return Ab;Nb=1;var e=g;function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}var n={error:null},r=function(r){function o(){for(var e,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=r.call.apply(r,[this].concat(o))||this).state=n,e.resetErrorBoundary=function(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];null==e.props.onReset||(t=e.props).onReset.apply(t,r),e.reset()},e}!function(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,t(e,n)}(o,r),o.getDerivedStateFromError=function(e){return{error:e}};var i=o.prototype;return i.reset=function(){this.setState(n)},i.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},i.componentDidUpdate=function(e,t){var n,r,o=this.props.resetKeys;null!==this.state.error&&null!==t.error&&function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))}(e.resetKeys,o)&&(null==(n=(r=this.props).onResetKeysChange)||n.call(r,e.resetKeys,o),this.reset())},i.render=function(){var t=this.state.error,n=this.props,r=n.fallbackRender,o=n.FallbackComponent;if(n=n.fallback,null!==t){if(t={error:t,resetErrorBoundary:this.resetErrorBoundary},e.isValidElement(n))return n;if("function"==typeof r)return r(t);if(o)return e.createElement(o,t);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},o}(e.Component);return Ab=function({children:t,onError:n}){return e.createElement(r,{fallback:e.createElement("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"}},"An error was thrown."),onError:n},t)},Ab}var Ib,Pb,Db,$b=R(function(){if(Mb)return Rb;Mb=1;const e=Ob();return Rb=e}()),zb={},Bb={};function Fb(){if(Db)return Pb;Db=1;const e=function(){if(Ib)return Bb;Ib=1;var e=ee();function t(e,t=!0){return!e&&(e=n(),t&&(e=e.trim()),""===e)}function n(){return e.$getRoot().getTextContent()}function r(n){if(!t(n,!1))return!1;let r=(n=e.$getRoot().getChildren()).length;if(1<r)return!1;for(let t=0;t<r;t++){var o=n[t];if(e.$isDecoratorNode(o))return!1;if(e.$isElementNode(o)){if(!e.$isParagraphNode(o)||0!==o.__indent)return!1;let n=(o=o.getChildren()).length;for(let r=0;r<n;r++)if(!e.$isTextNode(o[t]))return!1}}return!0}return Bb.$canShowPlaceholder=r,Bb.$canShowPlaceholderCurry=function(e){return()=>r(e)},Bb.$findTextIntersectionFromCharacters=function(t,n){var r=t.getFirstChild();t=0;e:for(;null!==r;){if(e.$isElementNode(r)){var o=r.getFirstChild();if(null!==o){r=o;continue}}else if(e.$isTextNode(r)){if(t+(o=r.getTextContentSize())>n)return{node:r,offset:n-t};t+=o}if(null===(o=r.getNextSibling())){for(r=r.getParent();null!==r;){if(null!==(o=r.getNextSibling())){r=o;continue e}r=r.getParent()}break}r=o}return null},Bb.$isRootTextContentEmpty=t,Bb.$isRootTextContentEmptyCurry=function(e,n){return()=>t(e,n)},Bb.$rootTextContent=n,Bb.registerLexicalTextEntity=function(t,n,r,o){let i=t=>{const n=e.$createTextNode(t.getTextContent());n.setFormat(t.getFormat()),t.replace(n)},a=t.registerNodeTransform(e.TextNode,(t=>{if(t.isSimpleText()){var a=t.getPreviousSibling(),l=t.getTextContent(),s=t;if(e.$isTextNode(a)){var u=a.getTextContent(),c=n(u+l);if(a instanceof r){if(null===c||0!==a.getLatest().__mode)return void i(a);if(0<(c=c.end-u.length))return s=u+(s=l.slice(0,c)),a.select(),a.setTextContent(s),void(c===l.length?t.remove():(a=l.slice(c),t.setTextContent(a)))}else if(null===c||c.start<u.length)return}for(;;){if(l=c=null===(t=n(l))?"":l.slice(t.end),""===c){if(u=s.getNextSibling(),e.$isTextNode(u)){if(c=s.getTextContent()+u.getTextContent(),null===(c=n(c))){u instanceof r?i(u):u.markDirty();break}if(0!==c.start)break}}else if(null!==(u=n(c))&&0===u.start)break;if(null===t)break;if(0===t.start&&e.$isTextNode(a)&&a.isTextEntity())continue;let d;if(0===t.start?[d,s]=s.splitText(t.end):[,d,s]=s.splitText(t.start,t.end),(t=o(d)).setFormat(d.getFormat()),d.replace(t),null==s)break}}}));return t=t.registerNodeTransform(r,(t=>{var o=t.getTextContent();const a=n(o);null===a||0!==a.start?i(t):o.length>a.end?t.splitText(a.end):(o=t.getPreviousSibling(),e.$isTextNode(o)&&o.isTextEntity()&&(i(o),i(t)),o=t.getNextSibling(),e.$isTextNode(o)&&o.isTextEntity()&&(i(o),t instanceof r&&i(t)))})),[a,t]},Bb}();return Pb=e}var Hb,jb,Wb,Gb,Kb,Yb,Ub={};function Vb(){if(Wb)return jb;Wb=1;const e=function(){if(Hb)return Ub;Hb=1;var e=ee();return Ub.registerDragonSupport=function(t){let n=window.location.origin,r=r=>{if(r.origin===n){var o=t.getRootElement();if(document.activeElement===o&&"string"==typeof(o=r.data)){try{var i=JSON.parse(o)}catch(e){return}if(i&&"nuanria_messaging"===i.protocol&&"request"===i.type&&(i=i.payload)&&"makeChanges"===i.functionId&&(i=i.args)){const[n,o,a,l,s]=i;t.update((()=>{const t=e.$getSelection();if(e.$isRangeSelection(t)){var i=t.anchor;let u=i.getNode(),c=0,d=0;e.$isTextNode(u)&&0<=n&&0<=o&&(c=n,d=n+o,t.setTextNodeRange(u,c,u,d)),c===d&&""===a||(t.insertRawText(a),u=i.getNode()),e.$isTextNode(u)&&(c=l,d=l+s,c=c>(i=u.getTextContentSize())?i:c,d=d>i?i:d,t.setTextNodeRange(u,c,u,d)),r.stopImmediatePropagation()}}))}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}},Ub}();return jb=e}function qb(){if(Gb)return zb;Gb=1;var e=Ee(),t=Ct(),n=g,r=Fb(),o=re(),i=f,a=Vb(),l=ut(),s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function u(e){return e.getEditorState().read(r.$canShowPlaceholderCurry(e.isComposing()))}function c({content:r}){var[i]=e.useLexicalComposerContext();i=function(e){let[t,r]=n.useState((()=>u(e)));return s((()=>{function t(){let t=u(e);r(t)}return t(),o.mergeRegister(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(i);let a=t();return i?"function"==typeof r?r(a):r:null}return zb.RichTextPlugin=function({contentEditable:t,placeholder:r,ErrorBoundary:u}){let[d]=e.useLexicalComposerContext();return u=function(e,t){let[r,o]=n.useState((()=>e.getDecorators()));return s((()=>e.registerDecoratorListener((e=>{i.flushSync((()=>{o(e)}))}))),[e]),n.useEffect((()=>{o(e.getDecorators())}),[e]),n.useMemo((()=>{let o=[],a=Object.keys(r);for(let l=0;l<a.length;l++){let s=a[l],u=n.createElement(t,{onError:t=>e._onError(t)},n.createElement(n.Suspense,{fallback:null},r[s])),c=e.getElementByKey(s);null!==c&&o.push(i.createPortal(u,c,s))}return o}),[t,r,e])}(d,u),function(e){s((()=>o.mergeRegister(l.registerRichText(e),a.registerDragonSupport(e))),[e])}(d),n.createElement(n.Fragment,null,t,n.createElement(c,{content:r}),u)},zb}var Qb=function(){if(Yb)return Kb;Yb=1;const e=qb();return Kb=e}();const Jb=b(((e,t)=>Go.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:Go.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"})}))),Xb=b(((e,t)=>Go.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:[Go.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),Go.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}))),Zb=b(((e,t)=>Go.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:Go.jsx("path",{d:"M0 1h15v2H0zm13 4v2H0V5zM0 11V9h16v2zm0 4v-2h10v2z"})}))),ey=b(((e,t)=>Go.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:Go.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}))),ty=b(((e,t)=>Go.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:Go.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}))),ny=b(((e,t)=>Go.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:Go.jsx("path",{d:"M1.5 10a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m13.75.75a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 1 1 0-1.5zM1.5 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m13.75.75a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1 0-1.5z"})}))),ry=b(((e,t)=>Go.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:Go.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"})}))),oy=b(((e,t)=>Go.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:Go.jsx("path",{d:"M2.05 9q.371 0 .72.09.349.088.623.275.273.185.436.467t.163.66a1.38 1.38 0 0 1-.284.86q-.133.179-.304.334l-.173.154-.18.152-1.245 1.004H4V14H.114v-.963l2.095-1.72.123-.115q.114-.116.196-.235a.7.7 0 0 0 .121-.399.54.54 0 0 0-.182-.423q-.183-.162-.486-.162a.7.7 0 0 0-.52.203.83.83 0 0 0-.217.406l-.022.127L0 10.57l.031-.181q.06-.264.193-.48.179-.29.452-.492a2 2 0 0 1 .626-.31q.352-.105.747-.106m13.2 1.75a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5zM3 2v5H1.698V3.328l-1.024.72L0 3.208 1.806 2zm12.25 1.75a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5z"})}))),iy=b(((e,t)=>Go.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:Go.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"})}))),ay=b(((e,t)=>Go.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:[Go.jsx("path",{d:"M9.034 14.99V15H3V1h6.034v.034Q9.246 1 9.466 1c1.666 0 3.017 1.522 3.017 3.4 0 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.9q-.13 0-.259-.01M5.586 3.5v3.2h2.71a1.6 1.6 0 1 0 0-3.2zm0 5.5v3.8H8.86a1.9 1.9 0 0 0 0-3.8z"}),Go.jsx("use",{fillRule:"evenodd"})]}))),ly=b(((e,t)=>Go.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:Go.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"})}))),sy=b(((e,t)=>Go.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:Go.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"})}))),uy=b(((e,t)=>Go.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:Go.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"})}))),cy=b(((e,t)=>Go.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:Go.jsx("path",{d:"m10.927 1.255-3.886 13.6A.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.255"})}))),dy=b(((e,t)=>Go.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:Go.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"})}))),py=b(((e,t)=>Go.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:Go.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"})}))),fy=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,hy=[e=>{const t=fy.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"}}},xt.createLinkMatcherWithRegExp(/(([^<>()[\]\\.,;:\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 my(){return v.createElement(xt.AutoLinkPlugin,{matchers:hy})}const gy=()=>{const[e]=_t.useLexicalComposerContext(),t=St(),n=k((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 S((()=>wt.mergeRegister(e.registerMutationListener(se.LinkNode,(e=>{n(e)})),e.registerMutationListener(se.AutoLinkNode,(e=>{n(e)})),e.registerCommand(kt.CLICK_COMMAND,(t=>(t.metaKey&&t.target&&e.getEditorState().read((()=>{const e=kt.$getSelection();let t;if(kt.$isRangeSelection(e)&&(t=e.focus.getNode().getParent()),kt.$isNodeSelection(e)&&(t=e.getNodes()[0]),se.$isAutoLinkNode(t)||se.$isLinkNode(t)){const e=t.getURL();setTimeout((()=>{const t=window.open(e,"_blank");null==t||t.focus()}),0)}})),!1)),kt.COMMAND_PRIORITY_EDITOR))),[e,n]),null};function vy(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?Tt.$isAtNodeEnd(n)?r:o:Tt.$isAtNodeEnd(t)?r:o}const by=new Set(["http:","https:","mailto:","sms:","tel:"]),yy=e=>{const t=e;return t.password="",t.username="",t};function xy(e){try{const t=new URL(e);return by.has(t.protocol)?{url:yy(t).toString(),target:"_blank"}:{url:"about:blank"}}catch(t){return{url:e,target:"_blank"}}}const _y=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function Ey(e){return"https://"===e||_y.test(e)}const Cy=$s(Jd)((({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)}))),Sy=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=w(null),[a,l]=C(t);S((()=>{l(t)}),[t]);const s=k((()=>{n(a),window.open(xy(a).url,"_blank"),r()}),[a,r,n]),u=k((e=>{e.preventDefault(),e.stopPropagation(),n(a)}),[a,n]),c=k((e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))}),[a,n]),d=k((e=>{e.preventDefault(),l(e.currentTarget.value)}),[]);return g.createElement(hd,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:1},transition:!0},(({TransitionProps:e})=>g.createElement(np,{...e},g.createElement(su,{className:"tekPopperMenu"},g.createElement(Cy,{direction:"row"},g.createElement(Nd,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),g.createElement(Mu,{onClick:s},g.createElement(Dp,null)),g.createElement(Mu,{onClick:u},g.createElement($p,null)))))))},wy=()=>{const[e]=_t.useLexicalComposerContext(),t=St(),[n,r]=C(null),[o,i]=C(""),a=w(!1),l=k((()=>{if(a.current)return a.current=!1,!1;const t=kt.$getSelection();if(kt.$isRangeSelection(t)){const n=vy(t),o=n.getParent();if(se.$isAutoLinkNode(o)||se.$isAutoLinkNode(n))return r(null),i(""),!1;let a;if(se.$isLinkNode(o)&&(a=o),se.$isLinkNode(n)&&(a=n),se.$isLinkNode(a)){const t=e.getElementByKey(null==a?void 0:a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1}),[e]),s=k((t=>{a.current=!0,e.update((()=>{e.dispatchCommand(se.TOGGLE_LINK_COMMAND,xy(t))}),{onUpdate:()=>{r(null)}})}),[e]),u=k((()=>{r(null)}),[]);return S((()=>wt.mergeRegister(e.registerCommand(kt.SELECTION_CHANGE_COMMAND,(()=>l()),kt.COMMAND_PRIORITY_LOW),e.registerCommand(kt.CLICK_COMMAND,(()=>l()),kt.COMMAND_PRIORITY_LOW))),[e,l]),t?g.createElement(Sy,{anchorEl:n,link:o,onChanged:s,onOpened:u}):null};function ky(){return v.createElement(jp.LinkPlugin,{validateUrl:Ey})}!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 Ty=({children:e})=>g.createElement(Bs,{theme:yf()},e),Ay={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"}},nodes:[ft.HeadingNode,ft.QuoteNode,be.ListNode,be.ListItemNode,se.LinkNode,se.AutoLinkNode],onError:e=>{console.log(e)}},Ny=({children:e,initialConfig:t,flags:n})=>g.createElement(Ty,null,g.createElement("div",{className:"tek__editor__Wrapper"},g.createElement(Re.LexicalComposer,{initialConfig:t||Ay},g.createElement("div",{className:"tek__editor__container"+((null==n?void 0:n.isEnabled("QB_26358_SN_TEXT_SCROLLBAR"))?" tek__editor__container__scrollbar":"")},e,g.createElement(Ge.ListPlugin,null),g.createElement(nt.TabIndentationPlugin,null),g.createElement(ky,null),g.createElement(my,null),g.createElement(wy,null),g.createElement(gy,null),g.createElement(ze.HistoryPlugin,null)))));class Ry extends kt.ElementNode{static getType(){return"TekCellNode"}static clone(e){return new Ry(e.__hasBorders,e.__key)}static importJSON(e){return new Ry(void 0===e.hasBorders||e.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 My=e=>new Ry(e),Ly=e=>e instanceof Ry;class Oy extends kt.ElementNode{static getType(){return"TekTableNode"}static clone(e){return new Oy(e.__hasBorders,e.__width,e.__key)}static importJSON(e){const t=void 0===e.hasBorders||e.hasBorders,n=void 0===e.width?"100%":e.width;return new Oy(t,n)}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{!0===e.__needsUpdate&&(this.getWritable().__needsUpdate=!1)}catch(e){}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 Iy(e){return e instanceof Oy}class Py extends kt.ElementNode{static getType(){return"TekRowNode"}static clone(e){return new Py(e.__key)}static importJSON(){return new Py}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 Dy(e){return e instanceof Py}const $y=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),Ly(t))return t;return null},zy=e=>{let t=e;for(;null!==t;){if(Iy(t))return t;t=null==t?void 0:t.getParent()}return null},By=(e,t)=>{const n=zy(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},Fy=e=>null==e?void 0:e.getChildAtIndex(2),Hy=e=>{const t=e.getParent();if(Dy(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},jy=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,Wy=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},Gy=e=>{if(!e)return[];return e.getChildren().filter((e=>Dy(e)))},Ky=e=>{let t=!1;return Gy(e).forEach((e=>{e.getChildren().forEach((e=>{const n=e;n.clear(),n.append(kt.$createParagraphNode()),t=!0}))})),t},Yy=e=>{var t;const n=kt.$getSelection();if(kt.$isRangeSelection(n)||kt.$isNodeSelection(n)){const r=n.getNodes().filter((e=>Ly(e)));if(r.length>0){e.preventDefault(),e.stopPropagation();const o=n.getNodes().some((e=>Iy(e))),i=zy(r[0]),a=Gy(i);if((null===(t=a[0])||void 0===t?void 0:t.getChildren()).length*a.length===r.length&&o)return null==i||i.selectPrevious(),null==i||i.remove(),!1;if(kt.$isRangeSelection(n)){const e=n.focus.getNode();if(Iy(e))return Ky(e)}return r.forEach((e=>{e.clear(),e.append(kt.$createParagraphNode())})),(()=>{const e=kt.$getSelection();let t=!1;if(kt.$isRangeSelection(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=zy(n);!o&&Iy(r)&&(o=r),Iy(o)&&(t=Ky(o))}return t})()}if(kt.$isRangeSelection(n)){const e=n.focus.getNode();if(Iy(e))return Ky(e)}}return!1},Uy=e=>{if(e){const t=zy(e);if(Iy(t)){const n=e.getParent(),r=Gy(t).findIndex((e=>e===n));return{i:r,j:null==n?void 0:n.getChildren().findIndex((t=>t===e)),tableNode:t,row:n}}}return{i:0,j:0,tableNode:null,row:null}},Vy=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),Ly(t))return t;return null},qy=e=>{const t=[];return Gy(e).forEach((e=>{const n=e.getChildren();t.push(...n)})),t},Qy=(e,t)=>{qy(e).forEach((e=>{const n=t.getElementByKey(e.getKey());null==n||n.classList.add("tek__tekCellHighlight")}))},Jy=kt.createCommand("UPDATE_COL_WIDTHS_COMMAND"),Xy=kt.createCommand("BEGIN_COL_RESIZE"),Zy=kt.createCommand("END_COL_RESIZE"),ex=kt.createCommand("INSERT_TEK_TABLE_COMMAND"),tx=({colKey:e,startX:t,onMouseDown:n})=>{const r=k((t=>{n(t,e)}),[e,n]);return g.createElement("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},nx=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},rx=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,ox=({nodeKey:e,colWidths:t})=>{const[n]=_t.useLexicalComposerContext(),r=St(),[o,i]=C(null),a=w(null),l=w(null),s=w(null),u=w(null),c=k((t=>{const n=kt.$getNodeByKey(e);if(n){const e=n.getParent();if(Iy(e)){const n=Fy(e);if("TekRowNode"===(null==n?void 0: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=k((e=>{if(a.current){const{clientX:t,col:n,tableElement:r,curColWidth:o,resizer:i,left:l,nxt:c,parentDomNode:d,currentTableWidth:p}=a.current,f=e.clientX-t,h=Wy(l+f,r);if(c){const e=o+f;if(e<60)return;const t=Wy(e,r),l=a.current.nxtColWidth-f,d=Wy(l,r);if(l<60)return;n.setAttribute("width",t),c.setAttribute("width",d),i.style.left=h,s.current&&(s.current.innerText=t),u.current&&(u.current.innerText=d)}else if(d){i.style.left="100%";const e=p+f,{clampedWidths:t,fullyClamped:n,clampedTableWidth:o}=((e,t)=>{const n=[],r=e.rows[0];let o=0,i=0;for(let e=0;e<r.cells.length;e++){const a=Math.max(r.cells[e].offsetWidth,60);60===a&&o++,i+=a;const l=a/t,s=Math.min(100*l,100);n.push(`${s.toFixed(2)}%`)}return{clampedWidths:n,fullyClamped:o===r.cells.length,clampedTableWidth:i}})(r,e),a=Wy(e,d),l=Wy(o,d);r.style.width=!n||f>0?a:l,r.querySelectorAll(":scope > colgroup col").forEach(((e,n)=>{e.setAttribute("width",t[n])})),n||s.current&&(s.current.innerText=a)}}}),[]),p=k((()=>{if(document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",p),a.current){a.current.resizer.style.opacity="",s.current=null,u.current=null;const e=(e=>{const t=e.rows[0],n=[];for(let r=0;r<t.cells.length;r++){const o=Math.max(t.cells[r].offsetWidth,60);n.push(Wy(o,e))}return n})(a.current.tableElement);a.current.tableElement.querySelectorAll(":scope > colgroup col").forEach(((t,n)=>{t.setAttribute("width",e[n])})),(e=>{const t=document.getElementById("leftGripper"),n=document.getElementById("rightGripper");t&&e.removeChild(t),n&&e.removeChild(n)})(a.current.resizer),n.dispatchCommand(Zy,void 0)}a.current=null,l.current=null,n.update((()=>{const t=kt.$getNodeByKey(e),r=By(t,n),a=null==t?void 0:t.getParent();if(r&&a){const t=r.querySelectorAll(":scope > colgroup col"),l=[];t.forEach((e=>{l.push(e.getAttribute("width")||"0")})),a.setWidth(r.style.width);let s=0;if(o){const e=o.map(((e,t)=>{const n={...e};return s+=parseFloat(l[t]),n.startX=s,n}));i(e)}n.dispatchCommand(Jy,{colWidths:l,nodeKey:e})}}))}),[d,n,e,o]),f=k(((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",p),n.getEditorState().read((()=>{const r=kt.$getNodeByKey(t),o=By(r,n);if(Ly(r)){const t=Hy(r);if(-1!==t&&o){const r=null==o?void 0:o.querySelectorAll(":scope > colgroup col"),i=r[t],l=r.length>t+1?r[t+1]:null,c=jy(i,o),d=e.target,p=.01*parseFloat(d.style.left),f=o.offsetWidth*p,h=jy(l,o),m=o.parentElement,g=.01*parseFloat(o.style.width),v=((null==m?void 0:m.offsetWidth)||0)*g,b=((e,t,n)=>{const r=nx("tek__leftResizerIndicator","leftGripper");r.innerText=rx(e);let o=null;return t?(o=nx("tek__rightResizerIndicator","rightGripper"),o.innerText=rx(t)):r.innerText=n.style.width,{left:r,right:o}})(i,l,o);s.current=b.left,u.current=b.right,d.appendChild(b.left),b.right&&d.appendChild(b.right),d.style.opacity="1",a.current={resizer:d,curColWidth:c,col:i,tableElement:o,clientX:e.clientX,left:f,nxt:l,nxtColWidth:h,parentDomNode:m,currentTableWidth:v},n.dispatchCommand(Xy,void 0)}}}))}),[n,d,p]);return S((()=>{n.getEditorState().read((()=>{c(t)}))}),[c,n,t]),g.createElement(g.Fragment,null,o&&r?o.map((e=>g.createElement(tx,{key:`${e.key}`,colKey:e.key,startX:e.startX,onMouseDown:f}))):null)},ix="TEK_TABLE_RESIZE_NODE";class ax extends kt.DecoratorNode{static getType(){return ix}static clone(e){return new ax(e.__colWidths,e.__key)}static importJSON(e){return new ax(e.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:ix,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 g.createElement(ox,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}const lx=e=>e instanceof ax,sx=({nodeKey:e,colWidths:t})=>{const[n]=_t.useLexicalComposerContext(),[r,o]=C(t);return S((()=>{n.getEditorState().read((()=>{const t=kt.$getNodeByKey(e),n=null==t?void 0:t.getParent();if(Iy(n)){const e=n.getResizeNode();if(lx(e)){const t=e.__colWidths.map((e=>e));o(t)}}}))}),[n,e]),g.createElement(g.Fragment,null,r.map(((t,n)=>g.createElement("col",{span:1,width:t,key:`${e}.${n}`}))))};class ux extends kt.DecoratorNode{static getType(){return"TekColGroupNode"}static clone(e){return new ux(e.__colWidths,e.__key)}static importJSON(e){return new ux(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 g.createElement(sx,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class cx extends kt.DecoratorNode{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 dx=[Oy,Ry,Py,ux,ax],px=(e,t)=>{const n=100/e,r=Array(e).fill(`${n}%`),o=null==t?void 0:t.getChildAtIndex(0),i=null==t?void 0:t.getChildAtIndex(1);o.setColWidths(r),i.setColWidths(r),null==t||t.markNeedsUpdate()},fx=()=>{var e;const t=kt.$getSelection();if(kt.$isRangeSelection(t)){const n=t.anchor.getNode(),r=$y(n);if(r){const t=Hy(r),n=zy(r),o=Gy(n),i=((null===(e=o[0])||void 0===e?void 0:e.getChildren().length)||1)-1;if(0===i)return null==n||n.selectPrevious(),void(null==n||n.remove());o.forEach((e=>{var n;null===(n=e.getChildAtIndex(t))||void 0===n||n.remove()})),px(i,n)}}},hx=()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=$y(t),r=zy(n);if(r&&3===r.getChildren().length)return kt.$setSelection(null),void r.remove();if(n){const{row:e}=Uy(n);kt.$setSelection(null),null==e||e.remove()}}},mx=()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=zy(t),r=Fy(n);if(Dy(r)&&n){const e=r.getChildren().length,t=new Py;for(let r=0;r<e;r++){const e=My(null==n?void 0:n.__hasBorders);e.append(kt.$createParagraphNode()),t.append(e)}null==n||n.append(t)}}},gx=()=>{var e;const t=kt.$getSelection();if(kt.$isRangeSelection(t)){const n=t.anchor.getNode(),r=zy(n);if(Iy(r)){const t=Gy(r);let n=null;const o=((null===(e=t[0])||void 0===e?void 0:e.getChildren().length)||-1)+1;for(let e=0;e<t.length;e++){const o=My(r.__hasBorders);o.append(kt.$createParagraphNode()),t[e].append(o),n=o}return px(o,r),n}}return null},vx=$s(Mu)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),bx=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=_t.useLexicalComposerContext(),[o,i]=C(null),a=xb(),l=Boolean(o),s=k(((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{t()}),{onUpdate:()=>{i(null),n()}})}),[r]),u=k((e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)}),[n]),c=k((()=>{i(null)}),[]),d=k((e=>{s(e,mx,t)}),[s,t]),p=k((e=>{s(e,gx,t)}),[s,t]),f=k((t=>{s(t,hx,e)}),[s,e]),h=k((t=>{s(t,fx,e)}),[s,e]),m=k((()=>{r.update((()=>{(()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=zy(t);Iy(n)&&(n.selectPrevious(),n.remove())}})()}),{onUpdate:()=>{i(null),e()}})}),[r,e]),v=k((e=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{(()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=zy(t);n&&(n.toggleBorders(),qy(n).forEach((e=>{e.toggleBorders()})))}})()}))}),[r]);return S((()=>wt.mergeRegister(r.registerCommand(kt.SELECTION_CHANGE_COMMAND,(()=>(i(null),!1)),kt.COMMAND_PRIORITY_CRITICAL))),[r]),g.createElement(Gd,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},g.createElement("div",null,g.createElement(vx,{size:"small",onClick:u},g.createElement(xf,{height:12})),g.createElement(hd,{sx:{zIndex:1},open:l,anchorEl:o,placement:"auto-end"},g.createElement(su,{id:"tekTableMenu",className:"tekPopperMenu"},g.createElement(yp,{dense:!0},g.createElement(Sp,{onClick:v},a("ToggleBorders")),g.createElement(Qd,null),g.createElement(Sp,{onClick:d},a("AddNewRow")),g.createElement(Sp,{onClick:p},a("AddNewColumn")),g.createElement(Qd,null),g.createElement(Sp,{onClick:f},a("DeleteRow")),g.createElement(Sp,{onClick:h},a("DeleteCol")),g.createElement(Qd,null),g.createElement(Sp,{onClick:m},a("DeleteTable")))))))},yx=()=>{var e,t,n,r;const[o]=_t.useLexicalComposerContext(),i=St(),[a,l]=C(null),[s,u]=C(!1),c=Boolean(a),d=v.useContext(io),p=w(null),f=k((()=>{s||o.update((()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=$y(e.anchor.getNode());if(Ly(t)){const e=o.getElementByKey(t.getKey());l(e)}else l(null)}}))}),[o,s]);S((()=>{const e=e=>{0!==e.buttons?null===p.current&&(p.current=setTimeout((()=>{u(!0),l(null)}),300)):(u(!1),clearTimeout(p.current),p.current=null)};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e)}}),[]),S((()=>wt.mergeRegister(o.registerCommand(kt.SELECTION_CHANGE_COMMAND,(()=>(f(),!1)),kt.COMMAND_PRIORITY_EDITOR),o.registerCommand(Xy,(()=>(l(null),!0)),kt.COMMAND_PRIORITY_CRITICAL),o.registerCommand(Zy,(()=>(f(),!0)),kt.COMMAND_PRIORITY_CRITICAL))),[o,f]),S((()=>{l(null)}),[i]);const h=k((()=>{l(null)}),[]),m=k((()=>{l(null),setTimeout((()=>{f()}),0)}),[f]),b=k((()=>{clearTimeout(p.current)}),[]);return g.createElement(hd,{open:c&&i,anchorEl:a,placement:"top-end",sx:{zIndex:1},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt((null===(r=null===(n=null===(t=null===(e=d.components)||void 0===e?void 0:e.MuiButton)||void 0===t?void 0:t.styleOverrides)||void 0===n?void 0:n.sizeSmall)||void 0===r?void 0:r.height)||"24",10)]}}]},g.createElement(bx,{onDeleteAction:h,onAction:m,onClick:b}))},xx=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=kt.$getNodeByKey(n),r=null==e?void 0:e.getParent();kt.$isRootNode(r)&&null!==e&&t.push(e)}if(t.length>0){const e=kt.$createParagraphNode();t[0].insertBefore(e),e.select(),t.forEach((e=>e.remove()))}},_x=()=>{const[e]=_t.useLexicalComposerContext(),t=St();return S((()=>wt.mergeRegister(e.registerMutationListener(Ry,(t=>{e.update((()=>{xx(t)}))})),e.registerMutationListener(Py,(t=>{e.update((()=>{xx(t)}))})),e.registerMutationListener(Oy,(t=>{e.update((()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=kt.$getNodeByKey(e);if(Iy(t)&&!t.isValid()){const e=kt.$createParagraphNode();t.insertBefore(e),e.select(),t.remove()}}}))})),e.registerCommand(ex,(()=>(e.update((()=>{const e=(()=>{const e=["50%","50%"],t=new Oy(!0,"100%"),n=new ux(e),r=new ax(e),o=[];for(let t=0;t<2;t++){const t=new Py;for(let n=0;n<e.length;n++){const e=My(!0),n=kt.$createParagraphNode();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();wt.$insertNodeToNearestRoot(e)})),!0)),kt.COMMAND_PRIORITY_EDITOR),e.registerCommand(Jy,(({colWidths:e,nodeKey:t})=>{const n=kt.$getNodeByKey(t);if(lx(n)){n.setColWidths(e);const t=n.getParent(),r=null==t?void 0:t.getChildAtIndex(0);(function(e){return e instanceof ux})(r)&&r.setColWidths(e)}return!0}),kt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(kt.KEY_ENTER_COMMAND,(t=>(null==t?void 0:t.shiftKey)?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=e.focus.getNode(),n=zy(t),r=Vy(t);if(Iy(n)){const e=kt.$createParagraphNode();e.append(kt.$createTextNode("")),n.insertBefore(e,!1),e.select()}}})()})),!0):!!(null==t?void 0:t.ctrlKey)&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=e.focus.getNode(),n=zy(t);if(Iy(n)){const e=kt.$createParagraphNode();e.append(kt.$createTextNode("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()})),!0)),kt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(kt.KEY_BACKSPACE_COMMAND,(e=>Yy(e)),kt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(kt.KEY_DELETE_COMMAND,(e=>Yy(e)),kt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(kt.KEY_TAB_COMMAND,(e=>{const t=kt.$getSelection();if(kt.$isRangeSelection(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),Ly(t))return{depth:n,tekCell:t};n++}return{depth:Number.MAX_SAFE_INTEGER,tekCell:null}})(n);if(r<=1)return e.preventDefault(),((e,t)=>{const{i:n,j:r,tableNode:o,row:i}=e,a=t?1:-1;if(i&&o){const e=i.getChildAtIndex(r+a);if(e)e.getChildAtIndex(0).selectEnd();else{let e=0;t||0!==r||(e=i.getChildren().length-1);const l=o.getChildAtIndex(n+2+a);if(Dy(l)){const t=null==l?void 0:l.getChildAtIndex(e);(null==t?void 0:t.getChildAtIndex(0)).selectEnd()}}}})(Uy(o),!e.shiftKey),!0}return!1}),kt.COMMAND_PRIORITY_EDITOR),e.registerCommand(kt.CUT_COMMAND,(e=>{const t=e.target,n=kt.$getSelection();if(t.classList.contains("tek__table")&&kt.$isRangeSelection(n)&&Iy(n.anchor.getNode()))return e.preventDefault(),e.stopPropagation(),!0;if(kt.$isRangeSelection(n)){const t=n.getNodes().some((e=>Ly(e))),r=n.getNodes().some((e=>Iy(e)));if(t&&!r)return e.preventDefault(),e.stopPropagation(),!0}return!1}),kt.COMMAND_PRIORITY_CRITICAL))),[e]),S((()=>e.registerCommand(kt.SELECTION_CHANGE_COMMAND,(()=>(t&&e.update((()=>{(e=>{const t=kt.$getSelection(),n=[];if(kt.$nodesOfType(Oy).forEach((e=>{const t=qy(e);n.push(...t)})),kt.$isRangeSelection(t)){t.getNodes().filter((e=>Iy(e))).forEach((t=>{Qy(t,e)}));const n=t.focus.getNode();if(Iy(n))return void Qy(n,e)}if(kt.$isRangeSelection(t)||kt.$isNodeSelection(t)){const r=new Set(t.getNodes().map((e=>Vy(e))));for(let t=0;t<n.length;t++){const o=e.getElementByKey(n[t].getKey());r.has(n[t])?null==o||o.classList.add("tek__tekCellHighlight"):null==o||o.classList.remove("tek__tekCellHighlight")}}})(e)}),{tag:"history-merge"}),!1)),kt.COMMAND_PRIORITY_CRITICAL)),[e,t]),S((()=>{e.update((()=>{t||(e=>{const t=[];kt.$nodesOfType(Oy).forEach((e=>{const n=qy(e);t.push(...n)})),t.forEach((t=>{const n=e.getElementByKey(t.getKey());null==n||n.classList.remove("tek__tekCellHighlight")}))})(e)}))}),[t,e]),null},Ex=()=>g.createElement(g.Fragment,null,g.createElement(_x,null),g.createElement(yx,null)),Cx=()=>{const e=St(),t=xb();return e?g.createElement("div",{className:"tek__editor__placeholder"},t("EnterText")):g.createElement("div",{className:"tek__editor__logo"},g.createElement(Jb,{height:32}))},Sx=({showPlaceholder:e})=>g.createElement("div",{style:{position:"relative"}},g.createElement(kb.AutoFocusPlugin,null),g.createElement(Qb.RichTextPlugin,{contentEditable:g.createElement(Lb.ContentEditable,{className:"tek__editor__input"}),placeholder:!1!==e?g.createElement(Cx,null):null,ErrorBoundary:$b})),wx=$s(Jd)((({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"}}))),kx=["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"],Tx="#404040",Ax="16px",Nx=m({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:kx[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),Rx=({children:e})=>{const t=(()=>{const[e]=_t.useLexicalComposerContext(),[t,n]=C(!1),[r,o]=C(!1),[i,a]=C(!1),[l,s]=C("paragraph"),[u,c]=C(kx[0]),[d,p]=C(Ax),[f,h]=C(Tx),[m,g]=C("left"),[v,b]=C(!1),y=k((()=>{const t=kt.$getSelection();if(kt.$isRangeSelection(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:wt.$findMatchingParent(r,(e=>{const t=e.getParent();return null!==t&&kt.$isRootOrShadowRoot(t)}));null===i&&(i=r.getTopLevelElementOrThrow());const l=i.getKey();let u=i;if(null!==e.getElementByKey(l))if(be.$isListNode(i)){const e=wt.$getNearestNodeOfType(r,be.ListNode),t=e?e.getListType():i.getListType();s(t)}else{const e=ft.$isHeadingNode(i)?i.getTag():i.getType();s(e)}if(be.$isListNode(i)||ft.$isHeadingNode(i)){const e=wt.$getNearestNodeOfType(i,kt.ParagraphNode);e&&(u=e)}const d=vy(t),f=d.getParent();if(se.$isLinkNode(f)||se.$isLinkNode(d)?b(!0):b(!1),kt.$isParagraphNode(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const m=Tt.$getSelectionStyleValueForProperty(t,"font-family",kx[0]),v=Tt.$getSelectionStyleValueForProperty(t,"font-size",Ax);c(""===m?kx[0]:m),p(""!==v&&v?v:Ax),h(Tt.$getSelectionStyleValueForProperty(t,"color",Tx))}else kt.$isNodeSelection(t)&&t.getNodes().forEach((e=>{if(function(e){return e instanceof cx}(e)){const t=e;n(t.hasStyle("fontWeight")),o(t.hasStyle("fontStyle")),a(t.hasStyle("textDecoration")),h(t.getTextFormatStyle("color",Tx));const r=t.getTextFormatStyle("fontSize",Ax),i=t.getTextFormatStyle("fontFamily",kx[0]);p(r),c(i);const l=t.getParent();if(null!==l){const e=(e=>{if(be.$isListItemNode(e)){const t=wt.$getNearestNodeOfType(e,be.ListNode);return t?t.getListType():e.getListType()}return ft.$isHeadingNode(e)?e.getTag():e.getType()})(l);s(e)}}}))}),[e]);return S((()=>wt.mergeRegister(e.registerUpdateListener((({editorState:e})=>{e.read((()=>y()))})),e.registerCommand(kt.SELECTION_CHANGE_COMMAND,(()=>(e.getEditorState().read((()=>y())),!1)),kt.COMMAND_PRIORITY_EDITOR))),[e,y]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:l,fontName:u,fontSize:d,fontColor:f,align:m,isLink:v}}})();return g.createElement(Nx.Provider,{value:t},e)},Mx=({children:e})=>g.createElement(Rx,null,g.createElement(wx,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row"},e)),Lx=({anchorEl:e,children:t})=>{const n=Boolean(e);return g.createElement(hd,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:1}},(({TransitionProps:e})=>g.createElement(np,{...e},g.createElement(su,{className:"tekPopperMenu"},t))))},Ox=$s($u)({fontSize:12,textOverflow:"ellipsis"}),Ix=({startIcon:e,value:t,onClick:n,compact:r})=>g.createElement(Pp,{title:t,PopperProps:{disablePortal:!0}},g.createElement(jd,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:g.createElement(ty,{height:12})},r?e:g.createElement(Ox,null,t))),Px=$s(Sp,{shouldForwardProp:e=>"active"!==e})((({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0}))),Dx=[{text:"AlignLeft",align:"left",icon:()=>g.createElement(Zb,{height:12})},{text:"AlignCenter",align:"center",icon:()=>g.createElement(Xb,{height:12})},{text:"AlignRight",align:"right",icon:()=>g.createElement(ey,{height:12})}],$x=({compact:e})=>{const[t]=_t.useLexicalComposerContext(),[n,r]=C(null),{blockFormat:o}=y(Nx),i=xb(),a=T((()=>Dx.find((e=>e.align===o.align))||Dx[0]),[o.align]),l=k((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),s=k((()=>{r(null)}),[]),u=k((e=>{r(null),t.dispatchCommand(kt.FORMAT_ELEMENT_COMMAND,e),t.focus()}),[t]);return g.createElement(Gd,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},g.createElement("div",null,g.createElement(Ix,{value:i(a.text),startIcon:a.icon(),onClick:l,compact:e}),g.createElement(Lx,{anchorEl:n},g.createElement(yp,{dense:!0},Dx.map((e=>g.createElement(Px,{value:e.text,dense:!0,key:e.align,active:e.align===o.align,onClick:()=>u(e.align)},g.createElement(pp,null,e.icon()),g.createElement(Ox,null,i(e.text)))))))))},zx=({text:e,icon:t})=>g.createElement(g.Fragment,null,g.createElement(pp,null,t),g.createElement(Ox,null,e)),Bx=({text:e,icon:t})=>g.createElement(g.Fragment,null,g.createElement(pp,null,g.createElement(Ox,{fontWeight:"bold"},t)),g.createElement(Ox,null,e)),Fx=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],Hx=(e,t,n)=>({icon:g.createElement("span",{style:{fontSize:12,fontWeight:"bold"}},t),text:n(e)}),jx=({compact:e})=>{const[t]=_t.useLexicalComposerContext(),{blockFormat:n}=y(Nx),[r,o]=C(null),i=xb(),a=T((()=>{let e={icon:g.createElement(iy,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=Hx("Heading1","H1",i)),"h2"===n.blockType&&(e=Hx("Heading2","H2",i)),"h3"===n.blockType&&(e=Hx("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=g.createElement(ry,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=g.createElement(ny,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=g.createElement(oy,{height:12}),e.text=i("OrderedList")),e}),[n,i]),l=k((()=>{o(null)}),[]),s=k((e=>{t.update((()=>{const n=kt.$getSelection();kt.$isRangeSelection(n)?(Tt.$patchStyleText(n,{"font-size":null}),Tt.$setBlocksType(n,e)):kt.$isNodeSelection(n)&&n.getNodes().forEach((t=>{const n=t.getParent();null==n||n.replace(e(),!0)})),t.focus()}))}),[t]),u=k(((e,n)=>{o(null),t.update((()=>{const r=kt.$getSelection();kt.$isRangeSelection(r)&&r.getNodes().forEach((r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)}))})),t.focus()}),[t]),c=k((e=>{o(null),s((()=>ft.$createHeadingNode(e)))}),[s]),d=k((()=>{o(null),s((()=>kt.$createParagraphNode()))}),[s]),p=k((()=>{o(null),s((()=>ft.$createQuoteNode()))}),[s]);return g.createElement(Gd,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},g.createElement("div",null,g.createElement(Ix,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),g.createElement(Lx,{anchorEl:r},g.createElement(yp,{dense:!0},g.createElement(Sp,{dense:!0,onClick:d},g.createElement(zx,{text:i("Paragraph"),icon:g.createElement(iy,{height:12})})),g.createElement(Sp,{dense:!0,onClick:p},g.createElement(zx,{text:i("Quote"),icon:g.createElement(ry,{height:12})})),Fx.map((e=>g.createElement(Sp,{dense:!0,onClick:()=>c(e.tag),key:e.text},g.createElement(Bx,{text:i(e.text),icon:e.icon})))),g.createElement(Qd,null),g.createElement(Sp,{dense:!0,onClick:()=>u("bullet",be.INSERT_UNORDERED_LIST_COMMAND)},g.createElement(zx,{text:i("UnorderedList"),icon:g.createElement(ny,{height:12})})),g.createElement(Sp,{dense:!0,onClick:()=>u("number",be.INSERT_ORDERED_LIST_COMMAND)},g.createElement(zx,{text:i("OrderedList"),icon:g.createElement(oy,{height:12})}))))))},Wx=$s(jd,{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}))),Gx=(e,t)=>n=>{const r=xb();return g.createElement(Pp,{title:r(t),PopperProps:{disablePortal:!0}},g.createElement("div",null,g.createElement(e,{...n,"aria-label":r(t)})))},Kx=({format:e,icon:t,...n})=>{const r=y(Nx),[o]=_t.useLexicalComposerContext(),i=k((()=>{o.dispatchCommand(kt.FORMAT_TEXT_COMMAND,e)}),[o,e]);return g.createElement(Wx,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text"},t)},Yx=Gx(Kx,"Bold"),Ux=()=>g.createElement(Yx,{format:"bold",icon:g.createElement(ay,{height:12})}),Vx=kt.createCommand("APPLY_TEXT_FORMAT"),qx=kt.createCommand("CLEAR_TEXT_FORMAT"),Qx=Gx(Wx,"ClearFormat"),Jx=()=>{const[e]=_t.useLexicalComposerContext(),t=k((()=>{e.update((()=>{const t=kt.$getSelection();if(kt.$isRangeSelection(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(kt.$isTextNode(t)){0===o&&0!==e.offset&&(t=t.splitText(e.offset)[1]||t),o===r.length-1&&(t=t.splitText(n.offset)[0]||t),""!==t.__style&&t.setStyle(""),0!==t.__format&&(t.setFormat(0),wt.$getNearestBlockElementAncestorOrThrow(t).setFormat(""));const i=t.getParent();(ft.$isHeadingNode(i)||ft.$isQuoteNode(i))&&i.replace(kt.$createParagraphNode(),!0)}else(ft.$isHeadingNode(t)||ft.$isQuoteNode(t))&&t.replace(kt.$createParagraphNode(),!0)}catch(e){}}))}e.dispatchCommand(qx,void 0)}))}),[e]);return g.createElement(Qx,{onClick:t},g.createElement(ly,{height:12}))};function Xx(e){return Xx="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},Xx(e)}var Zx,e_={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t_=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n_=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r_=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o_=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i_=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a_=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,l_=Math.floor,s_=Math.round,u_=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t,n,r,o,i,a,l,s,u,c,d,p,f=0,h=0,m=0,g=1;if(this._invalid=!1,arguments[0]instanceof e)f=arguments[0]._r,h=arguments[0]._g,m=arguments[0]._b,g=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(d=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(p=arguments[0]))f=parseInt(d[1],10),h=parseInt(d[2],10),m=parseInt(d[3],10);else if(d=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(p))g=parseFloat(s_(d[1]/2.55)/100),f=parseInt(d[2],10),h=parseInt(d[3],10),m=parseInt(d[4],10);else if(d=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(p))f=parseInt(d[1],10),h=parseInt(d[2],10),m=parseInt(d[3],10),g=parseFloat(d[4]);else if(d=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(p))f=parseInt(d[1],16),h=parseInt(d[2],16),m=parseInt(d[3],16),g=1;else if(d=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(p))f=parseInt(d[1]+d[1],16),h=parseInt(d[2]+d[2],16),m=parseInt(d[3]+d[3],16),g=1;else if(d=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),n=(n/=100)<0?0:n>1?1:n,l=(t=(t%=360)<0?0:t>360?360:t)/60,s=(a=(o=(o/=100)<0?0:o>1?1:o)<=.5?2*o*n:(2-2*o)*n)*(1-Math.abs(l%2-1)),u=[],l=Math.floor(l)){case 0:u=[a,s,0];break;case 1:u=[s,a,0];break;case 2:u=[0,a,s];break;case 3:u=[0,s,a];break;case 4:u=[s,0,a];break;case 5:u=[a,0,s];break;default:u=[0,0,0]}c=o-.5*a,f=u[0]+c,h=u[1]+c,m=u[2]+c,f=s_(255*f),h=s_(255*h),m=s_(255*m),g=1}else if(d=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(p)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),g=parseFloat(d[7]),n=(n/=100)<0?0:n>1?1:n,l=(t=(t%=360)<0?0:t>360?360:t)/60,s=(a=(o=(o/=100)<0?0:o>1?1:o)<=.5?2*o*n:(2-2*o)*n)*(1-Math.abs(l%2-1)),u=[],l=Math.floor(l)){case 0:u=[a,s,0];break;case 1:u=[s,a,0];break;case 2:u=[0,a,s];break;case 3:u=[0,s,a];break;case 4:u=[s,0,a];break;case 5:u=[a,0,s];break;default:u=[0,0,0]}c=o-.5*a,f=u[0]+c,h=u[1]+c,m=u[2]+c,f=s_(255*f),h=s_(255*h),m=s_(255*m)}else if(d=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),i=parseFloat(d[5]),l=(t=(t%=360)<0?0:t>360?360:t)/60,s=(a=(i=(i/=100)<0?0:i>1?1:i)*(n=(n/=100)<0?0:n>1?1:n))*(1-Math.abs(l%2-1)),u=[],l=Math.floor(l)){case 0:u=[a,s,0];break;case 1:u=[s,a,0];break;case 2:u=[0,a,s];break;case 3:u=[0,s,a];break;case 4:u=[s,0,a];break;case 5:u=[a,0,s];break;default:u=[0,0,0]}c=i-a,f=u[0]+c,h=u[1]+c,m=u[2]+c,f=s_(255*f),h=s_(255*h),m=s_(255*m),g=1}else e_[p.toLowerCase()]?(r=p.toLowerCase(),f=e_[r].r,h=e_[r].g,m=e_[r].b,g="number"==typeof e_[r].a?e_[r].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(g=(4278190080&arguments[0])>>>24,g/=255,f=(16711680&arguments[0])>>16,h=(65280&arguments[0])>>8,m=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(f=(16711680&arguments[0])>>16,h=(65280&arguments[0])>>8,m=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(f=arguments[0],h=arguments[1],m=arguments[2],g=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+f+h+m+g)&&(this._invalid=!0),this._r=l_(f),this._g=l_(h),this._b=l_(m),this._a=g,this._spaces={}}var t,n;return t=e,(n=[{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=e.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=e.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=e.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=e.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(t){return this._spaces.hsl||(this._spaces.hsl=e.toHSL(this,t)),this._spaces.hsl}},{key:"toHSLA",value:function(t){return this._spaces.hsla||(this._spaces.hsla=e.toHSLA(this,t)),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=e.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=e.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(t){return t instanceof e||(t=new e(t)),this._r===t._r&&this._g===t._g&&this._b===t._b}},{key:"blend",value:function(e,t){var n=l_(this._r+(e._r-this._r)*t),r=l_(this._g+(e._g-this._g)*t),o=l_(this._b+(e._b-this._b)*t),i=l_(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(t){(void 0===t||Number.isNaN(+t))&&(t=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new e(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*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,"symbol"==Xx(o=function(e){if("object"!=Xx(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();u_.toRGB=function(e){if(e instanceof u_)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u_.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u_.toRGBA=function(e,t){if(e instanceof u_)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u_.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u_.toHex=function(e){var t,n,r;return e instanceof u_?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u_.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u_.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u_(e));var a=e._r/255,l=e._g/255,s=e._b/255,u=Math.max(a,l,s),c=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(u+c)/2,u===c)n=0,i=0;else{switch(o=u-c,n=r>.5?o/(2-u-c):o/(u+c),u){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u_.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u_(e));var a=e._r/255,l=e._g/255,s=e._b/255,u=e._a,c=Math.max(a,l,s),d=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(u,")")},u_.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u_(e));var o=e._r/255,i=e._g/255,a=e._b/255,l=Math.max(o,i,a),s=Math.min(o,i,a),u=l;if(l===s)t=0,r=0;else{switch(t=0==(n=l-s)?0:n/u,l){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}},u_.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u_)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u_.blend=function(e,t,n){var r=(16711680&(e=u_.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u_.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u_.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u_(r,o,i,a)},u_.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(t_.test(e)||n_.test(e)||r_.test(e)||o_.test(e)||i_.test(e)||a_.test(e)||e_[e.toLowerCase()])},u_.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u_.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u_.isDark=function(){var e={getLuminance:u_.prototype.getLuminance,isInvalid:u_.prototype.isInvalid};return u_.prototype.init.apply(e,[].slice.call(arguments)),u_.prototype.isDark.call(e)},u_.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},Zx=u_;const c_=$s(Jd)((({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"}))),d_=$s(Ld)((({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"}))),p_=({palette:e,color:t,onColorChange:n})=>{const[r,o]=C(t),i=Es(),a=k((e=>{o(e),n(e)}),[n]);return g.createElement(c_,null,e.map((e=>g.createElement(d_,{style:{backgroundColor:e},key:e,onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)}},e===r?g.createElement($p,{height:12,color:i.palette.getContrastText(e)}):null))))};function f_(e,t,n){return Math.max(t,Math.min(n,e))}const h_=(e,t)=>{const n=new Zx(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"}},m_=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=f_(e.clientX-n,0,o)/o*100,l=100-f_(e.clientY-r,0,i)/i*100,s=new Zx(t).toHSVComponents();return s.s=a,s.v=l,s},g_=$s(Jd)((({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"}))),v_=$s(Ld)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),b_=$s(Ld)((({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 );"}))),y_=$s(Ld)({width:"16px",height:"16px",borderRadius:"2px"}),x_=$s(Jd)({flexDirection:"row",alignItems:"center"}),__=$s(Ld)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),E_=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=C(n),a=w(n),[l,s]=C(!0),[u,c]=C(o),d=w(null),p=w(null),f=w({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,m]=C({left:"0",top:"0"});S((()=>{r.some((e=>e===n))||s(!1)}),[n,r]);const v=k((e=>{if(!d.current&&(d.current=e,e)){const t=h_(o,e);m(t)}}),[o]),b=T((()=>`hsl(${new Zx(o).toHSVComponents().h}, 100%, 50%)`),[o]),y=k((t=>{t.preventDefault(),t.stopPropagation();const n=m_(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Zx(r);if(a.current=o.toHex(),p.current&&d.current){const e=d.current.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;p.current.style.left=`${n}px`,p.current.style.top=`${r}px`}e(a.current),c(a.current),i(a.current)}),[e]),x=k((t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=f_(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,l=new Zx(t).toHSVComponents();return l.h=i,l.s=a,l})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Zx(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)}),[e]),_=k((t=>{a.current=t,e(a.current),i(a.current),c(t)}),[e]),E=k((t=>{if(c(t.target.value),!new Zx(t.target.value).isInvalid()&&(a.current=t.target.value,i(t.target.value),t.target.value.startsWith("#")&&7===t.target.value.length?e(a.current,{tag:"collaboration"}):t.target.value.startsWith("#")||e(a.current,{tag:"collaboration"}),d.current)){const e=h_(a.current,d.current);m(e)}}),[e]);return g.createElement(g_,null,l?g.createElement(p_,{palette:r,color:o,onColorChange:_}):g.createElement(g.Fragment,null,g.createElement(v_,{style:{backgroundColor:b},ref:v,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),p.current&&e.target===p.current){const{left:t,top:n}=p.current.style,r=parseInt(t||"0",10),o=parseInt(n||"0",10);p.current.style.cursor="pointer",d.current&&(d.current.style.cursor="pointer"),f.current={left:r,top:o,on:!0,clientX:e.clientX,clientY:e.clientY}}},onMouseMove:e=>{if(e.preventDefault(),e.stopPropagation(),f.current.on&&p.current&&d.current){const t=e.clientX-f.current.clientX,n=e.clientY-f.current.clientY,r=f.current.left+t,o=f.current.top+n,l=m_(e,a.current),s=`hsv(${l.h},${l.s},${l.v})`,u=new Zx(s).toHex();p.current.style.left=`${r}px`,p.current.style.top=`${o}px`,p.current.style.backgroundColor=u,a.current=u,c(a.current),i(u)}},onMouseUp:t=>{t.preventDefault(),t.stopPropagation(),f.current.on?e(a.current):y(t),d.current&&(d.current.style.cursor="crosshair"),p.current&&(p.current.style.cursor="pointer"),f.current.on=!1}},g.createElement(__,{ref:p,style:{...h,backgroundColor:o}})),g.createElement(b_,{onClick:x})),g.createElement(x_,null,g.createElement(y_,{style:{backgroundColor:o}}),g.createElement(Nd,{style:{flex:1},value:u,onChange:E}),g.createElement(Mu,{onClick:()=>s(!l)},g.createElement(sy,{height:12})),g.createElement(Mu,{onClick:t},g.createElement($p,{height:12}))))},C_=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],S_=Gx(jd,"Color"),w_=({colorPalette:e})=>{const[t]=_t.useLexicalComposerContext(),[n,r]=C(null),{blockFormat:o}=y(Nx),i=k(((e,n)=>{t.update((()=>{const t=kt.$getSelection();kt.$isRangeSelection(t)&&Tt.$patchStyleText(t,{color:e})}),n),t.dispatchCommand(Vx,{styleKey:"color",styleValue:e})}),[t]),a=()=>{r(null)};return g.createElement(Gd,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},g.createElement("div",null,g.createElement(S_,{variant:"text",size:"small",endIcon:g.createElement(ty,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}},g.createElement(Ld,{sx:{backgroundColor:o.fontColor,width:12,height:12}})),g.createElement(Lx,{anchorEl:n},g.createElement(E_,{onClick:i,onClose:a,startColor:o.fontColor,palette:e||C_}))))},k_=({compact:e,fonts:t})=>{const[n]=_t.useLexicalComposerContext(),[r,o]=C(null),{blockFormat:i}=y(Nx),a=T((()=>t||kx),[t]),l=k((e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update((()=>{const e=kt.$getSelection();kt.$isRangeSelection(e)&&Tt.$patchStyleText(e,{"font-family":t||kx[0]}),n.dispatchCommand(Vx,{styleKey:"fontFamily",styleValue:t||kx[0]}),n.focus()}))}),[n]);return g.createElement(Gd,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},g.createElement("div",null,g.createElement(Ix,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:g.createElement("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"}},"T"),compact:e}),g.createElement(Lx,{anchorEl:r},g.createElement(yp,{dense:!0,style:{maxHeight:200,overflow:"auto"}},a.map((e=>g.createElement(Px,{"data-font-name":e,key:e,onClick:l,active:e===i.fontName},g.createElement(Ox,null,e))))))))},T_=e=>parseInt(e,10),A_=({fontSize:e,onSelected:t})=>{const[n,r]=C(""),o=k((e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)}),[]),i=k((()=>{const e=T_(n);e&&t(`${e}px`)}),[t,n]),a=k((e=>{"Enter"===e.key&&(e.preventDefault(),i())}),[i]);return g.createElement(Jd,{direction:"row"},g.createElement(Nd,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),g.createElement(Mu,{disabled:!T_(n),onClick:i},g.createElement($p,{height:12})))},N_=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],R_=({compact:e})=>{const[t]=_t.useLexicalComposerContext(),[n,r]=C(null),{blockFormat:o}=y(Nx),i=k((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),a=k((()=>{r(null)}),[]),l=k((e=>{r(null),e.length>0&&t.update((()=>{const n=kt.$getSelection();kt.$isRangeSelection(n)&&Tt.$patchStyleText(n,{"font-size":e}),t.dispatchCommand(Vx,{styleKey:"fontSize",styleValue:`${e}`})}))}),[t]),s=k((e=>{const{fontSize:t}=e.currentTarget.dataset;l(t||"16px")}),[l]),u=k((e=>{l(e)}),[l]);return g.createElement(Gd,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},g.createElement("div",null,g.createElement(Ix,{startIcon:e?g.createElement(Ox,null,o.fontSize):void 0,value:o.fontSize,onClick:i,compact:e}),g.createElement(Lx,{anchorEl:n},g.createElement(A_,{fontSize:o.fontSize,onSelected:u}),g.createElement(Qd,null),g.createElement(yp,{dense:!0,style:{maxHeight:200,overflow:"auto"}},N_.map((e=>g.createElement(Sp,{"data-font-size":e,key:e,onClick:s},g.createElement(Ox,null,e))))))))},M_=Gx(Wx,"InsertTable"),L_=()=>{const[e]=_t.useLexicalComposerContext(),t=k((()=>{e.dispatchCommand(ex,void 0)}),[e]);return g.createElement(M_,{onClick:t},g.createElement(uy,{height:12}))},O_=Gx(Kx,"Italic"),I_=()=>g.createElement(O_,{format:"italic",icon:g.createElement(cy,{height:12})}),P_=Gx(Wx,"InsertHyperlink"),D_=()=>{const[e]=_t.useLexicalComposerContext(),{blockFormat:t}=y(Nx),n=k((()=>{t.isLink?e.dispatchCommand(se.TOGGLE_LINK_COMMAND,null):e.dispatchCommand(se.TOGGLE_LINK_COMMAND,xy("https://"))}),[e,t.isLink]);return g.createElement(P_,{onClick:n},g.createElement(dy,{height:12}))},$_=Gx(Kx,"Underline"),z_=()=>g.createElement($_,{format:"underline",icon:g.createElement(py,{height:12})}),B_=()=>g.createElement(Qd,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var F_={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=="},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=="}},H_={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"}},j_={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=="},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=="}},W_={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=="},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=="}},G_={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=="},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=="}},K_={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=="},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=="}},Y_={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=="},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=="}},U_={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=="},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=="}},V_={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=="},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=="}},q_={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=="},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=="}},Q_={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=="},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=="}},J_={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=="},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=="}},X_={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=="},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 Z_={de:F_,es:j_,en:H_,fr:W_,it:G_,ja:K_,ko:Y_,nl:U_,pl:V_,pt:q_,ru:Q_,sv:J_,tr:X_,"de-de":F_,"es-es":j_,"en-us":H_,"fr-fr":W_,"it-it":G_,"ja-jp":K_,"ko-kr":Y_,"nl-nl":U_,"pl-pl":V_,"pt-br":q_,"ru-ru":Q_,"sv-se":J_,"tr-tr":X_,"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=="},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=="},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 eE(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"===t?String:Number)(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 tE,nE,rE,oE={};var iE,aE=function(){if(rE)return nE;rE=1;const e=function(){if(tE)return oE;tE=1;var e=Ee(),t=ee(),n=g;function r(e,n){return e.getEditorState().read((()=>{let e=t.$getNodeByKey(n);return null!==e&&e.isSelected()}))}return oE.useLexicalNodeSelection=function(o){let[i]=e.useLexicalComposerContext(),[a,l]=n.useState((()=>r(i,o)));n.useEffect((()=>{let e=!0,t=i.registerUpdateListener((()=>{e&&l(r(i,o))}));return()=>{e=!1,t()}}),[i,o]);let s=n.useCallback((e=>{i.update((()=>{let n=t.$getSelection();t.$isNodeSelection(n)||(n=t.$createNodeSelection(),t.$setSelection(n)),e?n.add(o):n.delete(o)}))}),[i,o]),u=n.useCallback((()=>{i.update((()=>{const e=t.$getSelection();t.$isNodeSelection(e)&&e.clear()}))}),[i]);return[a,s,u]},oE}();return nE=e}(),lE={};var sE=function(){if(iE)return lE;iE=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,l=Math.floor,s=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,p,f,h,m,g=0,v=0,b=0,y=1;if(this._invalid=!1,arguments[0]instanceof t)g=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(m=arguments[0]))g=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(m))y=parseFloat(s(h[1]/2.55)/100),g=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(m))g=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(m))g=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(m))g=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(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),p=[],c=Math.floor(c)){case 0:p=[u,d,0];break;case 1:p=[d,u,0];break;case 2:p=[0,u,d];break;case 3:p=[0,d,u];break;case 4:p=[d,0,u];break;case 5:p=[u,0,d];break;default:p=[0,0,0]}f=i-.5*u,g=p[0]+f,v=p[1]+f,b=p[2]+f,g=s(255*g),v=s(255*v),b=s(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),y=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),p=[],c=Math.floor(c)){case 0:p=[u,d,0];break;case 1:p=[d,u,0];break;case 2:p=[0,u,d];break;case 3:p=[0,d,u];break;case 4:p=[d,0,u];break;case 5:p=[u,0,d];break;default:p=[0,0,0]}f=i-.5*u,g=p[0]+f,v=p[1]+f,b=p[2]+f,g=s(255*g),v=s(255*v),b=s(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),p=[],c=Math.floor(c)){case 0:p=[u,d,0];break;case 1:p=[d,u,0];break;case 2:p=[0,u,d];break;case 3:p=[0,d,u];break;case 4:p=[d,0,u];break;case 5:p=[u,0,d];break;default:p=[0,0,0]}f=a-u,g=p[0]+f,v=p[1]+f,b=p[2]+f,g=s(255*g),v=s(255*v),b=s(255*b),y=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=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,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],b=arguments[2],y=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+b+y)&&(this._invalid=!0),this._r=l(g),this._g=l(v),this._b=l(b),this._a=y,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=l(this._r+(e._r-this._r)*t),r=l(this._g+(e._g-this._g)*t),o=l(this._b+(e._b-this._b)*t),i=l(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,l=e._g/255,s=e._b/255,c=Math.max(a,l,s),d=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,l=e._g/255,s=e._b/255,c=e._a,d=Math.max(a,l,s),p=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(d+p)/2,d===p)n=0,i=0;else{switch(o=d-p,n=r>.5?o/(2-d-p):o/(d+p),d){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,l=Math.max(o,i,a),s=Math.min(o,i,a),c=l;if(l===s)t=0,r=0;else{switch(t=0==(n=l-s)?0:n/c,l){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(l){return!(arguments.length>1||"string"!=typeof l)&&(t.test(l)||n.test(l)||r.test(l)||o.test(l)||i.test(l)||a.test(l)||e[l.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},lE.Color=u,lE}();const uE=e=>!!e.qExtendsId;function cE(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function dE(e,t){return null==t?void 0:t.getNodes().some((t=>t.getKey()===e))}var pE,fE;var hE=function(){if(fE)return pE;fE=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},pE=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,l;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(l=r.slice()).length,a=0;a<o;a++)l[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},pE}();let mE=[];const gE=new hE.EventEmitter;gE.isSelected=e=>{var t;const n=null==e||null===(t=e.qDef)||void 0===t?void 0:t.cId;return-1!==mE.indexOf(n)},gE.setSelected=e=>{mE!==e&&(mE=e,gE.emit("change"))};function vE({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=y(D),[a]=_t.useLexicalComposerContext(),l=St(),[s,u,c]=aE.useLexicalNodeSelection(n),d=w(null),[p,f]=C(t);S((()=>{f(t)}),[t]);const h=T((()=>{let e;return s?e="rgba(0, 152, 69, 0.25)":l&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}}),[s,l]),m=T((()=>r&&o?function(e,t){const{qHyperCube:n}=t;if(n){var r;const t=null===(r=n.qMeasureInfo)||void 0===r?void 0:r.findIndex((t=>t.cId===e));if(void 0!==t&&-1!==t){var o,i;const e=null==n||null===(o=n.qDataPages)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.qMatrix)||void 0===o?void 0:o[0][t];if(1===(null==e||null===(i=e.qAttrExps)||void 0===i||null===(i=i.qValues)||void 0===i?void 0:i.length)){var a;const t=null===(a=e.qAttrExps.qValues[0])||void 0===a?void 0:a.qText;if(t){const n=new sE.Color(t);return{value:(null==e?void 0:e.qText)||"",expressionColor:n.toHex()}}}return{value:(null==e?void 0:e.qText)||""}}}return{value:""}}(e,r):{value:""}),[r]);S((()=>wt.mergeRegister(a.registerCommand(kt.FORMAT_TEXT_COMMAND,(e=>(a.update((()=>{const t=e,r=kt.$getSelection();if(kt.$isRangeSelection(r)&&s){if(dE(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:"");f((t=>({...t,...e})))}}else if(s&&kt.$isNodeSelection(r)&&dE(n,r)&&d.current){const e=cE(d.current.style);f(((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)),kt.COMMAND_PRIORITY_HIGH),a.registerCommand(Vx,(e=>(a.getEditorState().read((()=>{if("color"===e.styleKey&&m.expressionColor)return!1;if(d.current&&s){const r=kt.$getSelection();if(dE(n,r)){var t;const n=cE(null===(t=d.current)||void 0===t?void 0:t.style);n[e.styleKey]=e.styleValue,f(n)}}})),!1)),kt.COMMAND_PRIORITY_EDITOR),a.registerCommand(qx,(()=>(a.getEditorState().read((()=>{if(d.current&&s){const e=kt.$getSelection();if(dE(n,e)){const e={};m.expressionColor&&(e.color=m.expressionColor),f(e)}}})),!1)),kt.COMMAND_PRIORITY_EDITOR),a.registerCommand(kt.SELECTION_CHANGE_COMMAND,(()=>(null!=i&&i.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update((()=>{const e=[],t=kt.$getSelection(),n=null==t?void 0:t.getNodes();null==n||n.forEach((t=>{null!=t&&t.getExpressionId&&e.push(null==t?void 0:t.getExpressionId())})),gE.setSelected(e)})),!1)),kt.COMMAND_PRIORITY_LOW))),[a,u,c,s,n,m]),S((()=>{l||(c(),null!=i&&i.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&gE.setSelected([]))}),[l,c]),S((()=>{a.update((()=>{!function(e,t){const n=kt.$getNodeByKey(e);var r;n&&(null===(r=n.setFormatStyle)||void 0===r||r.call(n,t))}(n,p)}))}),[p,a]);const v=k((e=>{if(l){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),c(),u(!0)):r<t.width&&a.update((()=>{const e=kt.$getSelection();if(kt.$isNodeSelection(e)){const t=kt.$getNodeByKey(n);null==t||t.selectPrevious(),e.delete(n)}}))}}),[c,l,a]);return g.createElement("span",{style:{...h,...p,color:m.expressionColor?m.expressionColor:p.color},onClick:v,ref:d,id:e},m.value)}const bE="qlik.expression.node";class yE extends cx{static getType(){return bE}static clone(e){return new yE(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new yE(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:bE,version:1}}setExported(){this.getWritable().__exported=!0}constructor(e,t,n){super(t,n),eE(this,"__expressionId",void 0),this.__expressionId=e}createDOM(){return document.createElement("span")}exportDOM(e){return super.exportDOM(e)}updateDOM(){return!1}decorate(){return g.createElement(vE,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function xE(e){return e instanceof yE}function _E(){const[e]=_t.useLexicalComposerContext(),t=St(),{edit:n,model:r,emitter:o}=y(D);return S((()=>{const t=()=>{r&&async function(e,t){try{const n=await t.getProperties();n.text=JSON.stringify(e),await t.setProperties(n)}catch(e){console.error(e)}}(e.getEditorState().toJSON(),r)},n=t=>{const n=e.parseEditorState(t);t!==JSON.stringify(e.getEditorState().toJSON())&&e.setEditorState(n)};return null==o||o.on("saveDocument",t),null==o||o.on("reloadData",n),()=>{null==o||o.removeListener("saveDocument",t),null==o||o.removeListener("reloadData",n)}}),[o,r]),S((()=>{e.setEditable(n)}),[n]),S((()=>{t&&e.focus()}),[t,e]),null}class EE{constructor(){eE(this,"nodeStore",void 0),eE(this,"pendingDeletes",void 0),this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=kt.$getNodeByKey(e);if(xE(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 CE(){let e;const{layout:t,readyToPrint:n}=y(D),[r]=_t.useLexicalComposerContext();S((()=>(e=r.registerUpdateListener((({dirtyElements:r,dirtyLeaves:o,prevEditorState:i})=>{0===r.size&&0===o.size||i.isEmpty()||(()=>{const r=null==n?void 0:n.findIndex((e=>e.id===t.qInfo.qId));r>-1&&(n[r].resolve(),n.splice(r,1),e())})()})),()=>{e()})),[])}function SE(){const{layout:e,emitter:t}=y(D),[n]=_t.useLexicalComposerContext(),r=w(new EE),o=St();return CE(),S((()=>{const e=n.registerMutationListener(yE,(e=>{n.getEditorState().read((()=>{for(const[t,n]of e)r.current.update(t,n)}))}));return()=>{e()}}),[n]),S((()=>{e&&n.update((()=>{var t;const n=null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo;if(n){const e=kt.$nodesOfType(yE),t=((e,t)=>e.reduce(((e,n)=>(t.find((e=>e.cId===n.getExpressionId()))||e.push(n),e)),[]))(e,n);if(t.forEach((e=>{e.remove()})),n.length>e.length){const e=kt.$getSelection(),{cId:t}=n[n.length-1],r=new yE(t,{}),o=kt.$createTextNode(" "),i=kt.$createTextNode("");kt.$isRangeSelection(e)?e.insertNodes([i,r,o]):wt.$insertNodeToNearestRoot(r)}}}))}),[e,n]),S((()=>n.registerCommand(kt.KEY_DOWN_COMMAND,(e=>("Backspace"===e.key&&n.update((()=>{const e=kt.$getSelection();kt.$isNodeSelection(e)&&e.getNodes().forEach((e=>{xE(e)&&(e.selectPrevious(),e.remove())}))})),!1)),kt.COMMAND_PRIORITY_LOW)),[n]),S((()=>{if(!o){const e=r.current.sync();e.length>0&&(null==t||t.emit("onNodeDestroyed",e))}}),[o,t]),null}const wE=/"/g;function kE(){const{model:e,emitter:t}=y(D),[n]=_t.useLexicalComposerContext(),r=w(new Map);return S((()=>{const o=n.registerMutationListener(kt.TextNode,(e=>{e.forEach(((e,t)=>{if("destroyed"===e)r.current.delete(t);else{var o;const e=null===(o=n.getElementByKey(t))||void 0===o?void 0:o.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(wE,""))),e)}}return null==t||t.on("saveDocument",i),()=>{null==t||t.removeListener("saveDocument",i),o()}}),[n]),null}var TE,AE,NE=["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"],RE=["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 ME=function(){if(AE)return TE;AE=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return TE=function e(){var t,n,r,s,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,c,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},TE}();function LE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function OE(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function IE(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(ME);var PE=1/.7,DE="\\s*([+-]?\\d+)\\s*",$E="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",BE=/^#([0-9a-f]{3,8})$/,FE=new RegExp(`^rgb\\(${DE},${DE},${DE}\\)$`),HE=new RegExp(`^rgb\\(${zE},${zE},${zE}\\)$`),jE=new RegExp(`^rgba\\(${DE},${DE},${DE},${$E}\\)$`),WE=new RegExp(`^rgba\\(${zE},${zE},${zE},${$E}\\)$`),GE=new RegExp(`^hsl\\(${$E},${zE},${zE}\\)$`),KE=new RegExp(`^hsla\\(${$E},${zE},${zE},${$E}\\)$`),YE={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 UE(){return this.rgb().formatHex()}function VE(){return this.rgb().formatRgb()}function qE(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=BE.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?QE(t):3===n?new eC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?JE(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?JE(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=FE.exec(e))?new eC(t[1],t[2],t[3],1):(t=HE.exec(e))?new eC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jE.exec(e))?JE(t[1],t[2],t[3],t[4]):(t=WE.exec(e))?JE(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=GE.exec(e))?aC(t[1],t[2]/100,t[3]/100,1):(t=KE.exec(e))?aC(t[1],t[2]/100,t[3]/100,t[4]):YE.hasOwnProperty(e)?QE(YE[e]):"transparent"===e?new eC(NaN,NaN,NaN,0):null}function QE(e){return new eC(e>>16&255,e>>8&255,255&e,1)}function JE(e,t,n,r){return r<=0&&(e=t=n=NaN),new eC(e,t,n,r)}function XE(e){return e instanceof IE||(e=qE(e)),e?new eC((e=e.rgb()).r,e.g,e.b,e.opacity):new eC}function ZE(e,t,n,r){return 1===arguments.length?XE(e):new eC(e,t,n,null==r?1:r)}function eC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function tC(){return`#${iC(this.r)}${iC(this.g)}${iC(this.b)}`}function nC(){const e=rC(this.opacity);return`${1===e?"rgb(":"rgba("}${oC(this.r)}, ${oC(this.g)}, ${oC(this.b)}${1===e?")":`, ${e})`}`}function rC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function iC(e){return((e=oC(e))<16?"0":"")+e.toString(16)}function aC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sC(e,t,n,r)}function lC(e){if(e instanceof sC)return new sC(e.h,e.s,e.l,e.opacity);if(e instanceof IE||(e=qE(e)),!e)return new sC;if(e instanceof sC)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new sC(a,l,s,e.opacity)}function sC(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function uC(e){return(e=(e||0)%360)<0?e+360:e}function cC(e){return Math.max(0,Math.min(1,e||0))}function dC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}LE(IE,qE,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:UE,formatHex:UE,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lC(this).formatHsl()},formatRgb:VE,toString:VE}),LE(eC,ZE,OE(IE,{brighter(e){return e=null==e?PE:Math.pow(PE,e),new eC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new eC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new eC(oC(this.r),oC(this.g),oC(this.b),rC(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:tC,formatHex:tC,formatHex8:function(){return`#${iC(this.r)}${iC(this.g)}${iC(this.b)}${iC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:nC,toString:nC})),LE(sC,(function(e,t,n,r){return 1===arguments.length?lC(e):new sC(e,t,n,null==r?1:r)}),OE(IE,{brighter(e){return e=null==e?PE:Math.pow(PE,e),new sC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new sC(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 eC(dC(e>=240?e-240:e+120,o,r),dC(e,o,r),dC(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new sC(uC(this.h),cC(this.s),cC(this.l),rC(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=rC(this.opacity);return`${1===e?"hsl(":"hsla("}${uC(this.h)}, ${100*cC(this.s)}%, ${100*cC(this.l)}%${1===e?")":`, ${e})`}`}}));const pC=Math.PI/180,fC=180/Math.PI,hC=4/29,mC=6/29,gC=3*mC*mC;function vC(e){if(e instanceof bC)return new bC(e.l,e.a,e.b,e.opacity);if(e instanceof CC)return SC(e);e instanceof eC||(e=XE(e));var t,n,r=EC(e.r),o=EC(e.g),i=EC(e.b),a=yC((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=yC((.4360747*r+.3850649*o+.1430804*i)/.96422),n=yC((.0139322*r+.0971045*o+.7141733*i)/.82521)),new bC(116*a-16,500*(t-a),200*(a-n),e.opacity)}function bC(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function yC(e){return e>.008856451679035631?Math.pow(e,1/3):e/gC+hC}function xC(e){return e>mC?e*e*e:gC*(e-hC)}function _C(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function EC(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function CC(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function SC(e){if(isNaN(e.h))return new bC(e.l,0,0,e.opacity);var t=e.h*pC;return new bC(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}LE(bC,(function(e,t,n,r){return 1===arguments.length?vC(e):new bC(e,t,n,null==r?1:r)}),OE(IE,{brighter(e){return new bC(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new bC(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 eC(_C(3.1338561*(t=.96422*xC(t))-1.6168667*(e=1*xC(e))-.4906146*(n=.82521*xC(n))),_C(-.9787684*t+1.9161415*e+.033454*n),_C(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),LE(CC,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof CC)return new CC(e.h,e.c,e.l,e.opacity);if(e instanceof bC||(e=vC(e)),0===e.a&&0===e.b)return new CC(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*fC;return new CC(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new CC(e,t,n,null==r?1:r)}),OE(IE,{brighter(e){return new CC(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new CC(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return SC(this).rgb()}}));var wC=e=>()=>e;function kC(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):wC(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?kC: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):wC(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=ZE(e)).r,(t=ZE(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=kC(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var TC,AC="center",NC="bottom";function RC(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 MC(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=OC)):void 0===t&&(t=LC);for(var n,r,o,i,a,l=new DC(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new DC(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(PC)}function LC(e){return e.children}function OC(e){return Array.isArray(e)?e[1]:null}function IC(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function PC(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function DC(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:AC,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:AC,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:AC,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:AC},{key:"DataRangeIncludingZero",alignment:NC},{key:"LimitedData",alignment:NC},{key:"NegativeOrZeroValues",alignment:NC}].reduce((function(e,t){return e[t.key]=t,e}),{}),DC.prototype=MC.prototype={constructor:DC,count:function(){return this.eachAfter(RC)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return MC(this).eachBefore(IC)},[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)}},TC=function(e){
|
|
87
|
+
`),Ou.rippleVisible,zu,550,(({theme:e})=>e.transitions.easing.easeInOut),Ou.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Ou.child,Ou.childLeaving,Bu,550,(({theme:e})=>e.transitions.easing.easeInOut),Ou.childPulsate,Fu,(({theme:e})=>e.transitions.easing.easeInOut)),Gu=v.forwardRef((function(e,t){const n=su({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=fn(n,Lu),[l,s]=v.useState([]),u=v.useRef(0),c=v.useRef(null);v.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=v.useRef(!1),p=kl(),f=v.useRef(null),h=v.useRef(null),g=v.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,ni.jsx(ju,{classes:{ripple:Pa(o.ripple,Ou.ripple),rippleVisible:Pa(o.rippleVisible,Ou.rippleVisible),ripplePulsate:Pa(o.ripplePulsate,Ou.ripplePulsate),child:Pa(o.child,Ou.child),childLeaving:Pa(o.childLeaving,Ou.childLeaving),childPulsate:Pa(o.childPulsate,Ou.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),m=v.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!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 l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,m;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)m=Math.sqrt((2*s.width**2+s.height**2)/3),m%2==0&&(m+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;m=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})}),[r,g,p]),b=v.useCallback((()=>{m({},{pulsate:!0})}),[m]),y=v.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{y(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return v.useImperativeHandle(t,(()=>({pulsate:b,start:m,stop:y})),[b,m,y]),ni.jsx(Hu,pn({className:Pa(Ou.root,o.root,i),ref:h},a,{children:ni.jsx(wu,{component:null,exit:!0,children:l})}))}));function Wu(e){return $a("MuiButtonBase",e)}const Yu=za("MuiButtonBase",["root","disabled","focusVisible"]),Ku=["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"],Uu=ou("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"},[`&.${Yu.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Vu=v.forwardRef((function(e,t){const n=su({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:g,onDragLeave:m,onFocus:b,onFocusVisible:y,onKeyDown:x,onKeyUp:_,onMouseDown:C,onMouseLeave:E,onMouseUp:S,onTouchEnd:w,onTouchMove:k,onTouchStart:R,tabIndex:A=0,TouchRippleProps:T,touchRippleRef:N,type:O}=n,L=fn(n,Ku),M=v.useRef(null),P=v.useRef(null),I=Cl(P,N),{isFocusVisibleRef:D,onFocus:$,onBlur:z,ref:B}=Il(),[F,H]=v.useState(!1);s&&F&&H(!1),v.useImperativeHandle(r,(()=>({focusVisible:()=>{H(!0),M.current.focus()}})),[]);const[j,G]=v.useState(!1);v.useEffect((()=>{G(!0)}),[]);const W=j&&!u&&!s;function Y(e,t,n=c){return _l((r=>{t&&t(r);return!n&&P.current&&P.current[e](r),!0}))}v.useEffect((()=>{F&&d&&!u&&j&&P.current.pulsate()}),[u,d,F,j]);const K=Y("start",C),U=Y("stop",g),V=Y("stop",m),q=Y("stop",S),X=Y("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=Y("start",R),Q=Y("stop",w),Z=Y("stop",k),ee=Y("stop",(e=>{z(e),!1===D.current&&H(!1),f&&f(e)}),!1),te=_l((e=>{M.current||(M.current=e.currentTarget),$(e),!0===D.current&&(H(!0),y&&y(e)),b&&b(e)})),ne=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=v.useRef(!1),oe=_l((e=>{d&&!re.current&&F&&P.current&&" "===e.key&&(re.current=!0,P.current.stop(e,(()=>{P.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=_l((e=>{d&&" "===e.key&&P.current&&F&&!e.defaultPrevented&&(re.current=!1,P.current.stop(e,(()=>{P.current.pulsate(e)}))),_&&_(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(L.href||L.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===O?"button":O,le.disabled=s):(L.href||L.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Cl(t,B,M),ue=pn({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Dl({root:["root",t&&"disabled",n&&"focusVisible"]},Wu,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return ni.jsxs(Uu,pn({as:ae,className:Pa(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:K,onMouseLeave:X,onMouseUp:q,onDragLeave:V,onTouchEnd:Q,onTouchMove:Z,onTouchStart:J,ref:se,tabIndex:s?-1:A,type:O},le,L,{children:[i,W?ni.jsx(Gu,pn({ref:I,center:o},T)):null]}))}));function qu(e){return $a("MuiIconButton",e)}const Xu=za("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Ju=["edge","children","className","color","disabled","disableFocusRipple","size"],Qu=ou(Vu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${wi(n.color)}`],n.edge&&t[`edge${wi(n.edge)}`],t[`size${wi(n.size)}`]]}})((({theme:e,ownerState:t})=>pn({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})`:ys.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 pn({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&pn({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":pn({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ys.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)},{[`&.${Xu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),Zu=v.forwardRef((function(e,t){const n=su({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:s=!1,size:u="medium"}=n,c=fn(n,Ju),d=pn({},n,{edge:r,color:a,disabled:l,disableFocusRipple:s,size:u}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return Dl({root:["root",n&&"disabled","default"!==r&&`color${wi(r)}`,o&&`edge${wi(o)}`,`size${wi(i)}`]},qu,t)})(d);return ni.jsx(Qu,pn({className:Pa(p.root,i),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},c,{ownerState:d,children:o}))}));function ec(e){return $a("MuiTypography",e)}za("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],nc=ou("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${wi(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>pn({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}))),rc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},oc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ic=v.forwardRef((function(e,t){const n=su({props:e,name:"MuiTypography"}),r=(e=>oc[e]||e)(n.color),o=Ta(pn({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=rc}=o,f=fn(o,tc),h=pn({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),g=l||(c?"p":p[d]||rc[d])||"span",m=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Dl({root:["root",i,"inherit"!==e.align&&`align${wi(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},ec,a)})(h);return ni.jsx(nc,pn({as:g,ref:t,ownerState:h,className:Pa(m.root,a)},f))}));var ac,lc={};function sc(){if(ac)return lc;ac=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.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 a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(m),t=Xs;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 lc.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},lc}var uc=N(sc()),cc="top",dc="bottom",pc="right",fc="left",hc="auto",gc=[cc,dc,pc,fc],mc="start",vc="end",bc="viewport",yc="popper",xc=gc.reduce((function(e,t){return e.concat([t+"-"+mc,t+"-"+vc])}),[]),_c=[].concat(gc,[hc]).reduce((function(e,t){return e.concat([t,t+"-"+mc,t+"-"+vc])}),[]),Cc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ec(e){return e?(e.nodeName||"").toLowerCase():null}function Sc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wc(e){return e instanceof Sc(e).Element||e instanceof Element}function kc(e){return e instanceof Sc(e).HTMLElement||e instanceof HTMLElement}function Rc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Sc(e).ShadowRoot||e instanceof ShadowRoot)}var Ac={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];kc(o)&&Ec(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}),{});kc(r)&&Ec(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Tc(e){return e.split("-")[0]}var Nc=Math.max,Oc=Math.min,Lc=Math.round;function Mc(){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 Pc(){return!/^((?!chrome|android).)*safari/i.test(Mc())}function Ic(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&kc(e)&&(o=e.offsetWidth>0&&Lc(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Lc(r.height)/e.offsetHeight||1);var a=(wc(e)?Sc(e):window).visualViewport,l=!Pc()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function Dc(e){var t=Ic(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 $c(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Rc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zc(e){return Sc(e).getComputedStyle(e)}function Bc(e){return["table","td","th"].indexOf(Ec(e))>=0}function Fc(e){return((wc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hc(e){return"html"===Ec(e)?e:e.assignedSlot||e.parentNode||(Rc(e)?e.host:null)||Fc(e)}function jc(e){return kc(e)&&"fixed"!==zc(e).position?e.offsetParent:null}function Gc(e){for(var t=Sc(e),n=jc(e);n&&Bc(n)&&"static"===zc(n).position;)n=jc(n);return n&&("html"===Ec(n)||"body"===Ec(n)&&"static"===zc(n).position)?t:n||function(e){var t=/firefox/i.test(Mc());if(/Trident/i.test(Mc())&&kc(e)&&"fixed"===zc(e).position)return null;var n=Hc(e);for(Rc(n)&&(n=n.host);kc(n)&&["html","body"].indexOf(Ec(n))<0;){var r=zc(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 Wc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yc(e,t,n){return Nc(e,Oc(t,n))}function Kc(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Uc(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Vc={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Tc(n.placement),s=Wc(l),u=[fc,pc].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return Kc("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Uc(e,gc))}(o.padding,n),d=Dc(i),p="y"===s?cc:fc,f="y"===s?dc:pc,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],g=a[s]-n.rects.reference[s],m=Gc(i),v=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,b=h/2-g/2,y=c[p],x=v-d[u]-c[f],_=v/2-d[u]/2+b,C=Yc(y,_,x),E=s;n.modifiersData[r]=((t={})[E]=C,t.centerOffset=C-_,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)))&&$c(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qc(e){return e.split("-")[1]}var Xc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jc(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,g=void 0===h?0:h,m="function"==typeof c?c({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=fc,x=cc,_=window;if(u){var C=Gc(n),E="clientHeight",S="clientWidth";if(C===Sc(n)&&"static"!==zc(C=Fc(n)).position&&"absolute"===l&&(E="scrollHeight",S="scrollWidth"),o===cc||(o===fc||o===pc)&&i===vc)x=dc,g-=(d&&C===_&&_.visualViewport?_.visualViewport.height:C[E])-r.height,g*=s?1:-1;if(o===fc||(o===cc||o===dc)&&i===vc)y=pc,f-=(d&&C===_&&_.visualViewport?_.visualViewport.width:C[S])-r.width,f*=s?1:-1}var w,k=Object.assign({position:l},u&&Xc),R=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Lc(n*o)/o||0,y:Lc(r*o)/o||0}}({x:f,y:g},Sc(n)):{x:f,y:g};return f=R.x,g=R.y,s?Object.assign({},k,((w={})[x]=b?"0":"",w[y]=v?"0":"",w.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",w)):Object.assign({},k,((t={})[x]=b?g+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var Qc={passive:!0};var Zc={left:"right",right:"left",bottom:"top",top:"bottom"};function ed(e){return e.replace(/left|right|bottom|top/g,(function(e){return Zc[e]}))}var td={start:"end",end:"start"};function nd(e){return e.replace(/start|end/g,(function(e){return td[e]}))}function rd(e){var t=Sc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function od(e){return Ic(Fc(e)).left+rd(e).scrollLeft}function id(e){var t=zc(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ad(e){return["html","body","#document"].indexOf(Ec(e))>=0?e.ownerDocument.body:kc(e)&&id(e)?e:ad(Hc(e))}function ld(e,t){var n;void 0===t&&(t=[]);var r=ad(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Sc(r),a=o?[i].concat(i.visualViewport||[],id(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(ld(Hc(a)))}function sd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ud(e,t,n){return t===bc?sd(function(e,t){var n=Sc(e),r=Fc(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var u=Pc();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+od(e),y:s}}(e,n)):wc(t)?function(e,t){var n=Ic(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):sd(function(e){var t,n=Fc(e),r=rd(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Nc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Nc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+od(e),s=-r.scrollTop;return"rtl"===zc(o||n).direction&&(l+=Nc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Fc(e)))}function cd(e,t,n,r){var o="clippingParents"===t?function(e){var t=ld(Hc(e)),n=["absolute","fixed"].indexOf(zc(e).position)>=0&&kc(e)?Gc(e):e;return wc(n)?t.filter((function(e){return wc(e)&&$c(e,n)&&"body"!==Ec(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=ud(e,n,r);return t.top=Nc(o.top,t.top),t.right=Oc(o.right,t.right),t.bottom=Oc(o.bottom,t.bottom),t.left=Nc(o.left,t.left),t}),ud(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function dd(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Tc(o):null,a=o?qc(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case cc:t={x:l,y:n.y-r.height};break;case dc:t={x:l,y:n.y+n.height};break;case pc:t={x:n.x+n.width,y:s};break;case fc:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Wc(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case mc:t[u]=t[u]-(n[c]/2-r[c]/2);break;case vc:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function pd(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,u=n.rootBoundary,c=void 0===u?bc:u,d=n.elementContext,p=void 0===d?yc:d,f=n.altBoundary,h=void 0!==f&&f,g=n.padding,m=void 0===g?0:g,v=Kc("number"!=typeof m?m:Uc(m,gc)),b=p===yc?"reference":yc,y=e.rects.popper,x=e.elements[h?b:p],_=cd(wc(x)?x:x.contextElement||Fc(e.elements.popper),s,c,a),C=Ic(e.elements.reference),E=dd({reference:C,element:y,placement:o}),S=sd(Object.assign({},y,E)),w=p===yc?S:C,k={top:_.top-w.top+v.top,bottom:w.bottom-_.bottom+v.bottom,left:_.left-w.left+v.left,right:w.right-_.right+v.right},R=e.modifiersData.offset;if(p===yc&&R){var A=R[o];Object.keys(k).forEach((function(e){var t=[pc,dc].indexOf(e)>=0?1:-1,n=[cc,dc].indexOf(e)>=0?"y":"x";k[e]+=A[n]*t}))}return k}function fd(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?_c:s,c=qc(r),d=c?l?xc:xc.filter((function(e){return qc(e)===c})):gc,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=pd(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Tc(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var hd={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,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,v=Tc(m),b=s||(v===m||!h?[ed(m)]:function(e){if(Tc(e)===hc)return[];var t=ed(e);return[nd(e),t,nd(t)]}(m)),y=[m].concat(b).reduce((function(e,n){return e.concat(Tc(n)===hc?fd(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:g}):n)}),[]),x=t.rects.reference,_=t.rects.popper,C=new Map,E=!0,S=y[0],w=0;w<y.length;w++){var k=y[w],R=Tc(k),A=qc(k)===mc,T=[cc,dc].indexOf(R)>=0,N=T?"width":"height",O=pd(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),L=T?A?pc:fc:A?dc:cc;x[N]>_[N]&&(L=ed(L));var M=ed(L),P=[];if(i&&P.push(O[R]<=0),l&&P.push(O[L]<=0,O[M]<=0),P.every((function(e){return e}))){S=k,E=!1;break}C.set(k,P)}if(E)for(var I=function(e){var t=y.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},D=h?3:1;D>0;D--){if("break"===I(D))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function gd(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 md(e){return[cc,pc,dc,fc].some((function(t){return e[t]>=0}))}var vd={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,a=_c.reduce((function(e,n){return e[n]=function(e,t,n){var r=Tc(e),o=[fc,cc].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[fc,pc].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var bd={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,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,g=void 0===h?0:h,m=pd(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=Tc(t.placement),b=qc(t.placement),y=!b,x=Wc(v),_="x"===x?"y":"x",C=t.modifiersData.popperOffsets,E=t.rects.reference,S=t.rects.popper,w="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,k="number"==typeof w?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(C){if(i){var T,N="y"===x?cc:fc,O="y"===x?dc:pc,L="y"===x?"height":"width",M=C[x],P=M+m[N],I=M-m[O],D=f?-S[L]/2:0,$=b===mc?E[L]:S[L],z=b===mc?-S[L]:-E[L],B=t.elements.arrow,F=f&&B?Dc(B):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=H[N],G=H[O],W=Yc(0,E[L],F[L]),Y=y?E[L]/2-D-W-j-k.mainAxis:$-W-j-k.mainAxis,K=y?-E[L]/2+D+W+G+k.mainAxis:z+W+G+k.mainAxis,U=t.elements.arrow&&Gc(t.elements.arrow),V=U?"y"===x?U.clientTop||0:U.clientLeft||0:0,q=null!=(T=null==R?void 0:R[x])?T:0,X=M+K-q,J=Yc(f?Oc(P,M+Y-q-V):P,M,f?Nc(I,X):I);C[x]=J,A[x]=J-M}if(l){var Q,Z="x"===x?cc:fc,ee="x"===x?dc:pc,te=C[_],ne="y"===_?"height":"width",re=te+m[Z],oe=te-m[ee],ie=-1!==[cc,fc].indexOf(v),ae=null!=(Q=null==R?void 0:R[_])?Q:0,le=ie?re:te-E[ne]-S[ne]-ae+k.altAxis,se=ie?te+E[ne]+S[ne]-ae-k.altAxis:oe,ue=f&&ie?function(e,t,n){var r=Yc(e,t,n);return r>n?n:r}(le,te,se):Yc(f?le:re,te,f?se:oe);C[_]=ue,A[_]=ue-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function yd(e,t,n){void 0===n&&(n=!1);var r=kc(t),o=kc(t)&&function(e){var t=e.getBoundingClientRect(),n=Lc(t.width)/e.offsetWidth||1,r=Lc(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Fc(t),a=Ic(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ec(t)||id(i))&&(l=function(e){return e!==Sc(e)&&kc(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:rd(e);var t}(t)),kc(t)?((s=Ic(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=od(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function xd(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 _d(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Cd={placement:"bottom",modifiers:[],strategy:"absolute"};function Ed(){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 Sd(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Cd:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cd,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,s={state:o,setOptions:function(n){var l="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,l),o.scrollParents={reference:wc(e)?ld(e):e.contextElement?ld(e.contextElement):[],popper:ld(t)};var c,d,p=function(e){var t=xd(e);return Cc.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((c=[].concat(r,o.options.modifiers),d=c.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=p.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 l=i({state:o,name:t,instance:s,options:r}),u=function(){};a.push(l||u)}})),s.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(Ed(t,n)){o.rects={reference:yd(t,Gc(n),"fixed"===o.options.strategy),popper:Dc(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],a=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"==typeof a&&(o=a({state:o,options:c,name:d,instance:s})||o)}else o.reset=!1,r=-1}}},update:_d((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){u(),l=!0}};if(!Ed(e,t))return s;function u(){a.forEach((function(e){return e()})),a=[]}return s.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var wd=Sd({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,a=r.resize,l=void 0===a||a,s=Sc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Qc)})),l&&s.addEventListener("resize",n.update,Qc),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Qc)})),l&&s.removeEventListener("resize",n.update,Qc)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=dd({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,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,u={placement:Tc(t.placement),variation:qc(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,Jc(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Jc(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ac,vd,hd,bd,Vc,{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,a=pd(t,{elementContext:"reference"}),l=pd(t,{altBoundary:!0}),s=gd(a,r),u=gd(l,o,i),c=md(s),d=md(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});const kd=v.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=v.useState(null),l=Cl(v.isValidElement(n)?jl(n):null,t);if(cl((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),cl((()=>{if(i&&!o)return vl(t,i),()=>{vl(t,null)}}),[t,i,o]),o){if(v.isValidElement(n)){const e={ref:l};return v.cloneElement(n,e)}return ni.jsx(v.Fragment,{children:n})}return ni.jsx(v.Fragment,{children:i?h.createPortal(n,i):i})}));function Rd(e){return $a("MuiPopper",e)}za("MuiPopper",["root"]);const Ad=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Td=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Nd(e){return"function"==typeof e?e():e}const Od={},Ld=v.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:l,open:s,placement:u,popperOptions:c,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,g=fn(e,Ad),m=v.useRef(null),b=Cl(m,t),y=v.useRef(null),x=Cl(y,d),_=v.useRef(x);cl((()=>{_.current=x}),[x]),v.useImperativeHandle(d,(()=>y.current),[]);const C=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}}(u,i),[E,S]=v.useState(C),[w,k]=v.useState(Nd(r));v.useEffect((()=>{y.current&&y.current.forceUpdate()})),v.useEffect((()=>{r&&k(Nd(r))}),[r]),cl((()=>{if(!w||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{S(e.placement)})(e)}}];null!=l&&(e=e.concat(l)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=wd(w,m.current,pn({placement:C},c,{modifiers:e}));return _.current(t),()=>{t.destroy(),_.current(null)}}),[w,a,l,s,c,C]);const R={placement:E};null!==h&&(R.TransitionProps=h);const A=(e=>{const{classes:t}=e;return Dl({root:["root"]},Rd,t)})(e),T=null!=(n=f.root)?n:"div",N=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=fn(e,Hl),l=i?{}:function(e,t){return"function"==typeof e?e(t,void 0):e}(r,o),{props:s,internalRef:u}=Fl(pn({},a,{externalSlotProps:l}));return zl(n,pn({},s,{ref:Cl(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}({elementType:T,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:A.root});return ni.jsx(T,pn({},N,{children:"function"==typeof o?o(R):o}))})),Md=v.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:s,open:u,placement:c="bottom",popperOptions:d=Od,popperRef:p,style:f,transition:h=!1,slotProps:g={},slots:m={}}=e,b=fn(e,Td),[y,x]=v.useState(!0);if(!l&&!u&&(!h||y))return null;let _;if(o)_=o;else if(n){const e=Nd(n);_=e&&void 0!==e.nodeType?gl(e).body:gl(null).body}const C=u||!l||h&&!y?void 0:"none",E=h?{in:u,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return ni.jsx(kd,{disablePortal:a,container:_,children:ni.jsx(Ld,pn({anchorEl:n,direction:i,disablePortal:a,modifiers:s,ref:t,open:h?!y:u,placement:c,popperOptions:d,popperRef:p,slotProps:g,slots:m},b,{style:pn({position:"fixed",top:0,left:0,display:C},f),TransitionProps:E,children:r}))})})),Pd=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Id=ou(Md,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dd=v.forwardRef((function(e,t){var n;const r=uc(),o=su({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:s,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:g,popperRef:m,transition:v,slots:b,slotProps:y}=o,x=fn(o,Pd),_=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,C=pn({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:g,popperRef:m,transition:v},x);return ni.jsx(Id,pn({as:a,direction:null==r?void 0:r.direction,slots:{root:_},slotProps:null!=y?y:s},C,{ref:t}))})),$d=["onChange","maxRows","minRows","style","value"];function zd(e){return parseInt(e,10)||0}const Bd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Fd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Hd=v.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=fn(e,$d),{current:s}=v.useRef(null!=a),u=v.useRef(null),c=Cl(t,u),d=v.useRef(null),p=v.useRef(null),f=v.useCallback((()=>{const t=u.current,n=p.current;if(!t||!n)return;const i=ml(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 a=i.boxSizing,l=zd(i.paddingBottom)+zd(i.paddingTop),s=zd(i.borderBottomWidth)+zd(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflowing:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),h=_l((()=>{const e=u.current,t=f();if(!e||!t||Fd(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n})),g=v.useCallback((()=>{const e=u.current,t=f();if(!e||!t||Fd(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[f]),m=v.useRef(-1);cl((()=>{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==u?void 0:u.current;if(!t)return;const n=ml(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()}}),[f,g,h]),cl((()=>{g()}));return ni.jsxs(v.Fragment,{children:[ni.jsx("textarea",pn({value:a,onChange:e=>{s||g(),n&&n(e)},ref:c,rows:o,style:i},l)),ni.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:pn({},Bd,i,{paddingTop:0,paddingBottom:0})})]})}));const jd=v.createContext(void 0);function Gd(e){return ni.jsx(Ra,pn({},e,{defaultTheme:Fs,themeId:dn}))}function Wd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Yd(e){return $a("MuiInputBase",e)}const Kd=za("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ud=["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"],Vd=ou("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${wi(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>pn({},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",[`&.${Kd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&pn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),qd=ou("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=pn({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 pn({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] + .${Kd.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},[`&.${Kd.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"})})),Xd=ni.jsx(Gd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Jd=v.forwardRef((function(e,t){var n;const r=su({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:g,inputComponent:m="input",inputProps:b={},inputRef:y,maxRows:x,minRows:_,multiline:C=!1,name:E,onBlur:S,onChange:w,onClick:k,onFocus:R,onKeyDown:A,onKeyUp:T,placeholder:N,readOnly:O,renderSuffix:L,rows:M,slotProps:P={},slots:I={},startAdornment:D,type:$="text",value:z}=r,B=fn(r,Ud),F=null!=b.value?b.value:z,{current:H}=v.useRef(null!=F),j=v.useRef(),G=v.useCallback((e=>{}),[]),W=Cl(j,y,b.ref,G),[Y,K]=v.useState(!1),U=v.useContext(jd),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:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});V.focused=U?U.focused:Y,v.useEffect((()=>{!U&&d&&Y&&(K(!1),S&&S())}),[U,d,Y,S]);const q=U&&U.onFilled,X=U&&U.onEmpty,J=v.useCallback((e=>{!function(e,t=!1){return e&&(Wd(e.value)&&""!==e.value||t&&Wd(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():q&&q()}),[q,X]);cl((()=>{H&&J({value:F})}),[F,J,H]);v.useEffect((()=>{J(j.current)}),[]);let Q=m,Z=b;C&&"input"===Q&&(Z=pn(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:x,minRows:_},Z),Q=Hd);v.useEffect((()=>{U&&U.setAdornedStart(Boolean(D))}),[U,D]);const ee=pn({},r,{color:V.color||"primary",disabled:V.disabled,endAdornment:f,error:V.error,focused:V.focused,formControl:U,fullWidth:h,hiddenLabel:V.hiddenLabel,multiline:C,size:V.size,startAdornment:D,type:$}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return Dl({root:["root",`color${wi(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${wi(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Yd,t)})(ee),ne=I.root||s.Root||Vd,re=P.root||u.root||{},oe=I.input||s.Input||qd;return Z=pn({},Z,null!=(n=P.input)?n:u.input),ni.jsxs(v.Fragment,{children:[!p&&Xd,ni.jsxs(ne,pn({},re,!$l(ne)&&{ownerState:pn({},ee,re.ownerState)},{ref:t,onClick:e=>{j.current&&e.currentTarget===e.target&&j.current.focus(),k&&k(e)}},B,{className:Pa(te.root,re.className,l,O&&"MuiInputBase-readOnly"),children:[D,ni.jsx(jd.Provider,{value:null,children:ni.jsx(oe,pn({ownerState:ee,"aria-invalid":V.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:V.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?j.current:{value:"x"})},name:E,placeholder:N,readOnly:O,required:V.required,rows:M,value:F,onKeyDown:A,onKeyUp:T,type:$},Z,!$l(oe)&&{as:Q,ownerState:pn({},ee,Z.ownerState)},{ref:W,className:Pa(te.input,Z.className,O&&"MuiInputBase-readOnly"),onBlur:e=>{S&&S(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||j.current;if(null==t)throw new Error(un(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{V.disabled?e.stopPropagation():(R&&R(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):K(!0))}}))}),f,L?L(pn({},V,{startAdornment:D})):null]}))]})})),Qd=za("MuiBox",["root"]),Zd=Bs(),ep=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ii("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ba);return v.forwardRef((function(e,a){const l=wa(n),s=Ta(e),{className:u,component:c="div"}=s,d=fn(s,Ia);return ni.jsx(i,pn({as:c,ref:a,className:Pa(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:dn,defaultTheme:Zd,defaultClassName:Qd.root,generateClassName:La.generate});function tp(e){return $a("MuiButton",e)}const np=za("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"]),rp=v.createContext({}),op=v.createContext(void 0),ip=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ap=e=>pn({},"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}}),lp=ou(Vu,{shouldForwardProp:e=>ru(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${wi(n.color)}`],t[`size${wi(n.size)}`],t[`${n.variant}Size${wi(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 pn({},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":pn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ys.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})`:ys.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})`:ys.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":pn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${np.focusVisible}`]:pn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${np.disabled}`]:pn({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 ${ys.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"},[`&.${np.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${np.disabled}`]:{boxShadow:"none"}})),sp=ou("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${wi(n.size)}`]]}})((({ownerState:e})=>pn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},ap(e)))),up=ou("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${wi(n.size)}`]]}})((({ownerState:e})=>pn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},ap(e)))),cp=v.forwardRef((function(e,t){const n=v.useContext(rp),r=v.useContext(op),o=su({props:sl(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:g="medium",startIcon:m,type:b,variant:y="text"}=o,x=fn(o,ip),_=pn({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:g,type:b,variant:y}),C=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return pn({},a,Dl({root:["root",i,`${i}${wi(t)}`,`size${wi(o)}`,`${i}Size${wi(o)}`,`color${wi(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${wi(o)}`],endIcon:["icon","endIcon",`iconSize${wi(o)}`]},tp,a))})(_),E=m&&ni.jsx(sp,{className:C.startIcon,ownerState:_,children:m}),S=p&&ni.jsx(up,{className:C.endIcon,ownerState:_,children:p}),w=r||"";return ni.jsxs(lp,pn({ownerState:_,className:Pa(n.className,C.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Pa(C.focusVisible,f),ref:t,type:b},x,{classes:C,children:[E,i,S]}))}));function dp(e){return e.substring(2).toLowerCase()}function pp(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=v.useRef(!1),l=v.useRef(null),s=v.useRef(!1),u=v.useRef(!1);v.useEffect((()=>(setTimeout((()=>{s.current=!0}),0),()=>{s.current=!1})),[]);const c=Cl(jl(t),l),d=_l((e=>{const t=u.current;u.current=!1;const r=gl(l.current);if(!s.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(a.current)return void(a.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target),i||!n&&t||o(e)})),p=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},f={ref:c};return!1!==i&&(f[i]=p(i)),v.useEffect((()=>{if(!1!==i){const e=dp(i),t=gl(l.current),n=()=>{a.current=!0};return t.addEventListener(e,d),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,d),t.removeEventListener("touchmove",n)}}}),[d,i]),!1!==r&&(f[r]=p(r)),v.useEffect((()=>{if(!1!==r){const e=dp(r),t=gl(l.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}}),[d,r]),ni.jsx(v.Fragment,{children:v.cloneElement(t,f)})}function fp(e){return $a("MuiDivider",e)}const hp=za("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),gp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],mp=ou("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})=>pn({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)`:ys.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})=>pn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>pn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>pn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>pn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),vp=ou("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>pn({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)`}))),bp=v.forwardRef((function(e,t){const n=su({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=fn(n,gp),h=pn({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),g=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Dl({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},fp,r)})(h);return ni.jsx(mp,pn({as:a,className:Pa(g.root,i),role:c,ref:t,ownerState:h},f,{children:o?ni.jsx(vp,{className:g.wrapper,ownerState:h,children:o}):null}))}));bp.muiSkipListHighlight=!0;const yp=function(e={}){const{createStyledComponent:t=as,useThemeProps:n=ls,componentName:r="MuiStack"}=e,o=t(us),i=v.forwardRef((function(e,t){const i=Ta(n(e)),{component:a="div",direction:l="column",spacing:s=0,divider:u,children:c,className:d,useFlexGap:p=!1}=i,f=fn(i,os),h={direction:l,spacing:s,useFlexGap:p},g=Dl({root:["root"]},(e=>$a(r,e)),{});return ni.jsx(o,pn({as:a,ownerState:h,ref:t,className:Pa(g.root,d)},f,{children:u?ss(c,u):c}))}));return i}({createStyledComponent:ou("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>su({props:e,name:"MuiStack"})}),xp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _p(e){return`scale(${e}, ${e**2})`}const Cp={entering:{opacity:1,transform:_p(1)},entered:{opacity:1,transform:"none"}},Ep="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Sp=v.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:g=bu}=e,m=fn(e,xp),b=kl(),y=v.useRef(),x=Hs(),_=v.useRef(null),C=Cl(_,jl(o),t),E=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},S=E(u),w=E(((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=ku({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:Ep?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),k=E(s),R=E(p),A=E((e=>{const{duration:t,delay:n,easing:r}=ku({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:Ep?o:.666*o,delay:Ep?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=_p(.75),c&&c(e)})),T=E(d);return ni.jsx(g,pn({appear:r,in:a,nodeRef:_,onEnter:w,onEntered:k,onEntering:S,onExit:A,onExited:T,onExiting:R,addEndListener:e=>{"auto"===h&&b.start(y.current||0,e),n&&n(_.current,e)},timeout:"auto"===h?null:h},m,{children:(e,t)=>v.cloneElement(o,pn({style:pn({opacity:0,transform:_p(.75),visibility:"exited"!==e||a?void 0:"hidden"},Cp[e],f,o.props.style),ref:C},t))}))}));Sp.muiSupportAuto=!0;const wp=v.createContext({});function kp(e){return $a("MuiList",e)}za("MuiList",["root","padding","dense","subheader"]);const Rp=["children","className","component","dense","disablePadding","subheader"],Ap=ou("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})=>pn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Tp=v.forwardRef((function(e,t){const n=su({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=fn(n,Rp),c=v.useMemo((()=>({dense:a})),[a]),d=pn({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Dl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},kp,t)})(d);return ni.jsx(wp.Provider,{value:c,children:ni.jsxs(Ap,pn({as:i,className:Pa(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function Np(e){return $a("MuiListItemIcon",e)}const Op=za("MuiListItemIcon",["root","alignItemsFlexStart"]),Lp=["className"],Mp=ou("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})=>pn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Pp=v.forwardRef((function(e,t){const n=su({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=fn(n,Lp),i=pn({},n,{alignItems:v.useContext(wp).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Dl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Np,n)})(i);return ni.jsx(Mp,pn({className:Pa(a.root,r),ownerState:i,ref:t},o))})),Ip=za("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Dp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function $p(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function zp(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Bp(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 Fp(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Bp(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const Hp=v.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=fn(e,Dp),p=v.useRef(null),f=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});cl((()=>{r&&p.current.focus()}),[r]),v.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(gl(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Cl(p,t);let g=-1;v.Children.forEach(i,((e,t)=>{v.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&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=v.Children.map(i,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),v.cloneElement(e,t)}return e}));return ni.jsx(Tp,pn({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=gl(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Fp(t,r,s,l,$p);else if("ArrowUp"===n)e.preventDefault(),Fp(t,r,s,l,zp);else if("Home"===n)e.preventDefault(),Fp(t,null,s,l,$p);else if("End"===n)e.preventDefault(),Fp(t,null,s,l,zp);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Bp(r,o);o.previousKeyMatched&&(s||Fp(t,r,!1,l,$p,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:m}))}));function jp(e){return $a("MuiMenuItem",e)}const Gp=za("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Wp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Yp=ou(Vu,{shouldForwardProp:e=>ru(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})=>pn({},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"}},[`&.${Gp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ys.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ys.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ys.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})`:ys.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Gp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${hp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${hp.inset}`]:{marginLeft:52},[`& .${Ip.root}`]:{marginTop:0,marginBottom:0},[`& .${Ip.inset}`]:{paddingLeft:36},[`& .${Op.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&pn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Op.root} svg`]:{fontSize:"1.25rem"}})))),Kp=v.forwardRef((function(e,t){const n=su({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=fn(n,Wp),f=v.useContext(wp),h=v.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),g=v.useRef(null);cl((()=>{r&&g.current&&g.current.focus()}),[r]);const m=pn({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return pn({},a,Dl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},jp,a))})(n),y=Cl(g,t);let x;return n.disabled||(x=void 0!==c?c:-1),ni.jsx(wp.Provider,{value:h,children:ni.jsx(Yp,pn({ref:y,role:u,tabIndex:x,component:o,focusVisibleClassName:Pa(b.focusVisible,s),className:Pa(b.root,d)},p,{ownerState:m,classes:b}))})}));function Up(e){return $a("MuiTooltip",e)}const Vp=za("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),qp=["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 Xp=ou(Dd,{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})=>pn({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Vp.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Vp.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Vp.arrow}`]:pn({},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"] .${Vp.arrow}`]:pn({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Jp=ou("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${wi(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return pn({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ys.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},{[`.${Vp.popper}[data-popper-placement*="left"] &`]:pn({transformOrigin:"right center"},t.isRtl?pn({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):pn({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Vp.popper}[data-popper-placement*="right"] &`]:pn({transformOrigin:"left center"},t.isRtl?pn({marginRight:"14px"},t.touch&&{marginRight:"24px"}):pn({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Vp.popper}[data-popper-placement*="top"] &`]:pn({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Vp.popper}[data-popper-placement*="bottom"] &`]:pn({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),Qp=ou("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:ys.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Zp=!1;const ef=new wl;let tf={x:0,y:0};function nf(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const rf=v.forwardRef((function(e,t){var n,r,o,i,a,l,s,u,c,d,p,f,h,g,m,b,y,x,_;const C=su({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:S,components:w={},componentsProps:k={},describeChild:R=!1,disableFocusListener:A=!1,disableHoverListener:T=!1,disableInteractive:N=!1,disableTouchListener:O=!1,enterDelay:L=100,enterNextDelay:M=0,enterTouchDelay:P=700,followCursor:I=!1,id:D,leaveDelay:$=0,leaveTouchDelay:z=1500,onClose:B,onOpen:F,open:H,placement:j="bottom",PopperComponent:G,PopperProps:W={},slotProps:Y={},slots:K={},title:U,TransitionComponent:V=Sp,TransitionProps:q}=C,X=fn(C,qp),J=v.isValidElement(S)?S:ni.jsx("span",{children:S}),Q=Hs(),Z=(()=>{const e=v.useContext(Vl);return null!=e&&e})(),[ee,te]=v.useState(),[ne,re]=v.useState(null),oe=v.useRef(!1),ie=N||I,ae=kl(),le=kl(),se=kl(),ue=kl(),[ce,de]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=v.useRef(void 0!==e),[i,a]=v.useState(t);return[o?e:i,v.useCallback((e=>{o||a(e)}),[])]}({controlled:H,default:!1,name:"Tooltip",state:"open"});let pe=ce;const fe=xl(D),he=v.useRef(),ge=_l((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ue.clear()}));v.useEffect((()=>ge),[ge]);const me=e=>{ef.clear(),Zp=!0,de(!0),F&&!pe&&F(e)},ve=_l((e=>{ef.start(800+$,(()=>{Zp=!1})),de(!1),B&&pe&&B(e),ae.start(Q.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),L||Zp&&M?le.start(Zp?M:L,(()=>{me(e)})):me(e))},ye=e=>{le.clear(),se.start($,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:_e,onFocus:Ce,ref:Ee}=Il(),[,Se]=v.useState(!1),we=e=>{_e(e),!1===xe.current&&(Se(!1),ye(e))},ke=e=>{ee||te(e.currentTarget),Ce(e),!0===xe.current&&(Se(!0),be(e))},Re=e=>{oe.current=!0;const t=J.props;t.onTouchStart&&t.onTouchStart(e)},Ae=e=>{Re(e),se.clear(),ae.clear(),ge(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.start(P,(()=>{document.body.style.WebkitUserSelect=he.current,be(e)}))},Te=e=>{J.props.onTouchEnd&&J.props.onTouchEnd(e),ge(),se.start(z,(()=>{ve(e)}))};v.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,pe]);const Ne=Cl(jl(J),Ee,te,t);U||0===U||(pe=!1);const Oe=v.useRef(),Le={},Me="string"==typeof U;R?(Le.title=pe||!Me||T?null:U,Le["aria-describedby"]=pe?fe:null):(Le["aria-label"]=Me?U:null,Le["aria-labelledby"]=pe&&!Me?fe:null);const Pe=pn({},Le,X,J.props,{className:Pa(X.className,J.props.className),onTouchStart:Re,ref:Ne},I?{onMouseMove:e=>{const t=J.props;t.onMouseMove&&t.onMouseMove(e),tf={x:e.clientX,y:e.clientY},Oe.current&&Oe.current.update()}}:{}),Ie={};O||(Pe.onTouchStart=Ae,Pe.onTouchEnd=Te),T||(Pe.onMouseOver=nf(be,Pe.onMouseOver),Pe.onMouseLeave=nf(ye,Pe.onMouseLeave),ie||(Ie.onMouseOver=be,Ie.onMouseLeave=ye)),A||(Pe.onFocus=nf(ke,Pe.onFocus),Pe.onBlur=nf(we,Pe.onBlur),ie||(Ie.onFocus=ke,Ie.onBlur=we));const De=v.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=W.popperOptions)&&e.modifiers&&(t=t.concat(W.popperOptions.modifiers)),pn({},W.popperOptions,{modifiers:t})}),[ne,W]),$e=pn({},C,{isRtl:Z,arrow:E,disableInteractive:ie,placement:j,PopperComponentProp:G,touch:oe.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Dl({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${wi(i.split("-")[0])}`],arrow:["arrow"]},Up,t)})($e),Be=null!=(n=null!=(r=K.popper)?r:w.Popper)?n:Xp,Fe=null!=(o=null!=(i=null!=(a=K.transition)?a:w.Transition)?i:V)?o:Sp,He=null!=(l=null!=(s=K.tooltip)?s:w.Tooltip)?l:Jp,je=null!=(u=null!=(c=K.arrow)?c:w.Arrow)?u:Qp,Ge=zl(Be,pn({},W,null!=(d=Y.popper)?d:k.popper,{className:Pa(ze.popper,null==W?void 0:W.className,null==(p=null!=(f=Y.popper)?f:k.popper)?void 0:p.className)}),$e),We=zl(Fe,pn({},q,null!=(h=Y.transition)?h:k.transition),$e),Ye=zl(He,pn({},null!=(g=Y.tooltip)?g:k.tooltip,{className:Pa(ze.tooltip,null==(m=null!=(b=Y.tooltip)?b:k.tooltip)?void 0:m.className)}),$e),Ke=zl(je,pn({},null!=(y=Y.arrow)?y:k.arrow,{className:Pa(ze.arrow,null==(x=null!=(_=Y.arrow)?_:k.arrow)?void 0:x.className)}),$e);return ni.jsxs(v.Fragment,{children:[v.cloneElement(J,Pe),ni.jsx(Be,pn({as:null!=G?G:Dd,placement:j,anchorEl:I?{getBoundingClientRect:()=>({top:tf.y,left:tf.x,right:tf.x,bottom:tf.y,width:0,height:0})}:ee,popperRef:Oe,open:!!ee&&pe,id:fe,transition:!0},Ie,Ge,{popperOptions:De,children:({TransitionProps:e})=>ni.jsx(Fe,pn({timeout:Q.transitions.duration.shorter},e,We,{children:ni.jsxs(He,pn({},Ye,{children:[U,E?ni.jsx(je,pn({},Ke,{ref:re})):null]}))}))}))]})})),of=b(((e,t)=>ni.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:ni.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"})}))),af=b(((e,t)=>ni.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:ni.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})));var lf,sf,uf,cf={};var df=function(){if(uf)return sf;uf=1;const e=function(){if(lf)return cf;lf=1;var e=oe(),t=Ce(),n=re(),r=ee(),o=m;return cf.LinkPlugin=function({validateUrl:i}){let[a]=t.useLexicalComposerContext();return o.useEffect((()=>{if(!a.hasNodes([e.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return n.mergeRegister(a.registerCommand(e.TOGGLE_LINK_COMMAND,(t=>{if(null===t)return e.toggleLink(t),!0;if("string"==typeof t)return!(void 0!==i&&!i(t)||(e.toggleLink(t),0));let{url:n,target:r,rel:o,title:a}=t;return e.toggleLink(n,{rel:o,target:r,title:a}),!0}),r.COMMAND_PRIORITY_LOW),void 0!==i?a.registerCommand(r.PASTE_COMMAND,(t=>{let n=r.$getSelection();if(!r.$isRangeSelection(n)||n.isCollapsed()||!(t instanceof ClipboardEvent)||null==t.clipboardData)return!1;let o=t.clipboardData.getData("text");return!!i(o)&&!n.getNodes().some((e=>r.$isElementNode(e)))&&(a.dispatchCommand(e.TOGGLE_LINK_COMMAND,o),t.preventDefault(),!0)}),r.COMMAND_PRIORITY_LOW):()=>{})}),[a,i]),null},cf}();return sf=e}();const pf={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_25:"rgba(0, 0, 0, 0.25)",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)"},ff=12,hf=14,gf=16,mf=24,vf=3,bf=300,yf=400,xf=600,_f=700,Cf={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};var Ef='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';function Sf(e){return ni.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ni.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var wf=function({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return ni.jsx("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})};function kf(e={}){return ni.jsx(wf,{...e,children:ni.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[ni.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),ni.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 Rf(e={}){return ni.jsx(wf,{fontSize:"medium",...e,children:ni.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ni.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),ni.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 Af(e){return ni.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ni.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 Tf(e={}){return ni.jsx(wf,{...e,children:ni.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ni.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[ni.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),ni.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Nf(e={}){return ni.jsx(wf,{fontSize:"medium",...e,children:ni.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ni.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:ni.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Of({className:e}){return ni.jsx(wf,{fontSize:"small",className:e,children:ni.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:ni.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ni.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:ni.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[ni.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"}),ni.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 Lf(e={}){return ni.jsx(wf,{...e,children:ni.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ni.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ni.jsx("rect",{stroke:pf.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const Mf={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:vf,"& > 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 Pf=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:pf.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:pf.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:ni.jsx(Sf,{"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 ${pf.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:pf.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${pf.MISC_FOCUS_BORDER}`,borderRadius:vf,backgroundColor:pf.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 ${pf.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:pf.WHITE,color:pf.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:vf},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${pf.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:pf.GREYSCALE_0_15,backgroundColor:pf.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:pf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${pf.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:pf.GREEN_PALE},"&:active":{backgroundColor:pf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:pf.GREEN_PALE,boxShadow:`0 0 0 3px ${hl(pf.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:pf.BLUE_PALE},"&:active":{backgroundColor:pf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:pf.BLUE_PALE,boxShadow:`0 0 0 3px ${hl(pf.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:vf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:pf.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${pf.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:pf.GREYSCALE_0_15,backgroundColor:pf.GREYSCALE_100_60,"&:active":{backgroundColor:pf.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:pf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${pf.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:pf.PURPLE,"&.Mui-focusVisible":{borderColor:pf.PURPLE,boxShadow:`0 0 0 3px ${hl(pf.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:pf.GREEN,"&.Mui-focusVisible":{borderColor:pf.GREEN,boxShadow:`0 0 0 3px ${hl(pf.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:pf.BLUE,"&.Mui-focusVisible":{borderColor:pf.BLUE,boxShadow:`0 0 0 3px ${hl(pf.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:pf.ORANGE,"&.Mui-focusVisible":{borderColor:pf.ORANGE,boxShadow:`0 0 0 3px ${hl(pf.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:pf.RED,"&.Mui-focusVisible":{borderColor:pf.RED,boxShadow:`0 0 0 3px ${hl(pf.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:pf.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:pf.PURPLE_PALE},"&:active":{backgroundColor:pf.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:pf.PURPLE_PALE,boxShadow:`0 0 0 3px ${hl(pf.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:pf.GREEN_PALE},"&:active":{backgroundColor:pf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:pf.GREEN_PALE,boxShadow:`0 0 0 3px ${hl(pf.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:pf.BLUE_PALE},"&:active":{backgroundColor:pf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:pf.BLUE_PALE,boxShadow:`0 0 0 3px ${hl(pf.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:pf.ORANGE_PALE},"&:active":{backgroundColor:pf.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:pf.ORANGE_PALE,boxShadow:`0 0 0 3px ${hl(pf.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:pf.RED_PALE},"&:active":{backgroundColor:pf.RED_DARK},"&.Mui-focusVisible":{borderColor:pf.RED_PALE,boxShadow:`0 0 0 3px ${hl(pf.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:pf.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:pf.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:vf,boxShadow:`inset 0 0 0 2px ${pf.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:ni.jsx(Af,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:ff,borderRadius:vf,color:pf.TEXT_PRIMARY,backgroundColor:pf.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:pf.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${pf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:pf.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:pf.GREYSCALE_0_05,color:pf.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:pf.GREEN,borderColor:pf.GREEN},"&.MuiChip-outlinedInfo":{color:pf.BLUE,borderColor:pf.BLUE},"&.MuiChip-outlinedWarning":{color:pf.ORANGE,borderColor:pf.ORANGE},"&.MuiChip-outlinedError":{color:pf.RED,borderColor:pf.RED}},outlined:{border:`solid 1px ${pf.GREYSCALE_0_15}`,backgroundColor:pf.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:vf,boxShadow:"none",backgroundColor:pf.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:pf.GREEN,borderColor:pf.GREEN},outlinedSecondary:{color:pf.BLUE,borderColor:pf.BLUE},label:{fontFamily:Cf.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:ni.jsx(Af,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:ni.jsx(Sf,{"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:vf},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:vf,fontSize:hf,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:pf.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${pf.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:pf.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:pf.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:pf.GREYSCALE_0_05}}},popupIndicator:{borderRadius:vf,border:`solid 1px ${pf.GREYSCALE_0_15}`,color:pf.GREYSCALE_0_60,marginRight:0,width:mf,height:mf},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${pf.GREYSCALE_0_15}`},clearIndicator:{borderRadius:vf,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:pf.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:hf}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:ff,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:pf.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:pf.GREYSCALE_25,fontSize:ff,fontFamily:Cf.FONT_FAMILY,fontWeight:xf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:pf.TEXT_PRIMARY},"&.Mui-error":{color:pf.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:pf.TEXT_SECONDARY,content:"'(optional)'",fontWeight:yf,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:pf.TEXT_SECONDARY,content:"'(required)'",fontWeight:yf,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:hf,lineHeight:"16px",backgroundColor:pf.WHITE,borderRadius:vf,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pf.GREYSCALE_0_05}`,borderColor:pf.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pf.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${pf.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${pf.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pf.RED}`,boxShadow:`0px 0px 0px 1px ${pf.RED}, inset 0 2px 0 0 ${pf.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pf.GREYSCALE_0_10}`,borderColor:pf.GREYSCALE_0_10,backgroundColor:pf.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:pf.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:pf.GREYSCALE_0_15,borderRadius:vf,boxShadow:`inset 0 2px 0 0 ${pf.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>ni.jsx(Sf,{...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:pf.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:pf.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:pf.GREYSCALE_0_03},"&:active":{backgroundColor:pf.GREYSCALE_0_10},"&:focus":{backgroundColor:pf.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${pf.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${pf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:pf.GREYSCALE_0_30,"&:hover":{backgroundColor:pf.GREYSCALE_0_0,borderColor:pf.GREYSCALE_0_15},"& ~svg":{color:pf.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${pf.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:vf}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:pf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${pf.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:pf.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:hf,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:ff,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:ff,fontWeight:xf,color:pf.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:xf}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${pf.GREYSCALE_0_15}, 0px 0px 0px 1px ${pf.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:ni.jsx(Nf,{}),checkedIcon:ni.jsx(Rf,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:pf.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${pf.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:pf.GREEN_PALE,boxShadow:`0 0 0 3px ${hl(pf.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:pf.BLUE_PALE,boxShadow:`0 0 0 3px ${hl(pf.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:pf.GREYSCALE_0_20}},"&.Mui-disabled":{fill:pf.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:ni.jsx(Lf,{}),checkedIcon:ni.jsx(kf,{}),indeterminateIcon:ni.jsx(Tf,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:vf,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:pf.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:pf.GREYSCALE_0_55,color:pf.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:pf.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:pf.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:pf.GREYSCALE_0_55,"&:hover":{color:pf.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:pf.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:pf.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:hf,color:pf.TEXT_PRIMARY,lineHeight:"16px",fontWeight:xf},secondary:{fontSize:ff,color:pf.GREYSCALE_45,fontWeight:yf,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:hf,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:hf,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:pf.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:ff,borderBottom:`solid 1px ${pf.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:hf,color:pf.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:pf.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:pf.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:pf.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:`url('${Ef}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:pf.RED}}},"&.Mui-focusVisible":{backgroundColor:pf.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:pf.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:pf.GREEN,height:"24px","&.Mui-disabled":{color:pf.GREYSCALE_0_15}},rail:{backgroundColor:pf.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${pf.GREYSCALE_0_05}`,borderRadius:vf,boxShadow:`inset 0px 0px 0px 1px ${pf.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${pf.GREYSCALE_0_05}`,borderRadius:vf},thumb:{height:"16px",width:"16px",borderRadius:vf,backgroundColor:pf.WHITE,boxShadow:`0px 1px 2px 0px ${pf.GREYSCALE_0_15}, 0px 0px 0px 1px ${pf.GREYSCALE_0_05}`,"&:hover":{borderRadius:vf,boxShadow:`0 2px 4px 0 ${pf.GREYSCALE_0_30}, 0 0 0 1px ${pf.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${pf.GREYSCALE_0_15}, 0 0 0 1px ${pf.GREYSCALE_0_06}, 0 0 0 2px ${pf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${pf.GREYSCALE_0_15}, 0 0 0 1px ${pf.GREYSCALE_0_06}, 0 0 0 2px ${pf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:pf.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:pf.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:pf.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:pf.GREYSCALE_0_15},markLabel:{color:pf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:pf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:pf.WHITE,color:pf.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:pf.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:pf.GREEN_PALE,boxShadow:`0 0 0 3px ${hl(pf.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:pf.BLUE_PALE,boxShadow:`0 0 0 3px ${hl(pf.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:pf.GREYSCALE_0_15,borderRadius:vf},thumb:{height:"16px",width:"16px",borderRadius:vf,backgroundColor:pf.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:hf,fontWeight:xf,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${pf.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${pf.MISC_FOCUS_BORDER}`,backgroundColor:pf.GREYSCALE_0_03,borderRadius:vf},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:pf.GREYSCALE_25,"&.Mui-selected":{color:pf.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:hf,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:vf,"&:hover":{backgroundColor:pf.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 ${pf.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${pf.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:vf,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:pf.GREYSCALE_0_05},"&:hover":{backgroundColor:pf.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${pf.GREYSCALE_85}`,borderRight:`1px solid ${pf.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:xf,backgroundColor:pf.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:pf.GREYSCALE_98,borderBottom:`1px solid ${pf.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${pf.GREYSCALE_85}`,borderTop:`1px solid ${pf.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:pf.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:pf.GREYSCALE_0_05,"&:hover":{backgroundColor:pf.GREYSCALE_0_03}},"&&:hover":{backgroundColor:pf.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>ni.jsx(Of,{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 ${pf.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:hf,borderRadius:vf,padding:"7px 16px",border:`1px solid ${pf.GREYSCALE_0_15}`,backgroundColor:pf.GREYSCALE_100_60,color:pf.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:pf.GREYSCALE_0_10,border:`1px solid ${pf.GREYSCALE_0_30}`},"&:hover":{backgroundColor:pf.GREYSCALE_0_03,border:`1px solid ${pf.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:pf.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${pf.MISC_FOCUS_BORDER}`,border:`1px solid ${pf.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:pf.GREYSCALE_25,backgroundColor:pf.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:pf.GREYSCALE_0_10,border:`1px solid ${pf.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:ff,height:24,width:24,padding:7},sizeLarge:{fontSize:gf,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:hf,borderRadius:vf}}},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:pf.GREYSCALE_20},tooltip:{backgroundColor:pf.GREYSCALE_20,fontSize:ff,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Mf}:{}});var If=()=>({mode:"light",primary:{ultraLight:pf.GREEN_ULTRA_LIGHT,light:pf.GREEN_PALE,main:pf.GREEN,dark:pf.GREEN_DARK,extraDark:pf.GREEN_EXTRA_DARK,contrastText:pf.WHITE},secondary:{ultraLight:pf.BLUE_ULTRA_LIGHT,light:pf.BLUE_PALE,main:pf.BLUE,dark:pf.BLUE_DARK,extraDark:pf.BLUE_EXTRA_DARK,contrastText:pf.WHITE},error:{ultraLight:pf.RED_ULTRA_LIGHT,light:pf.RED_PALE,main:pf.RED,dark:pf.RED_DARK,extraDark:pf.RED_EXTRA_DARK,contrastText:pf.WHITE},warning:{ultraLight:pf.ORANGE_ULTRA_LIGHT,light:pf.ORANGE_PALE,main:pf.ORANGE,dark:pf.ORANGE_DARK,extraDark:pf.ORANGE_EXTRA_DARK,contrastText:pf.WHITE},success:{ultraLight:pf.GREEN_ULTRA_LIGHT,light:pf.GREEN_PALE,main:pf.GREEN,dark:pf.GREEN_DARK,extraDark:pf.GREEN_EXTRA_DARK,contrastText:pf.WHITE},info:{ultraLight:pf.BLUE_ULTRA_LIGHT,light:pf.BLUE_PALE,main:pf.BLUE,dark:pf.BLUE_DARK,extraDark:pf.BLUE_EXTRA_DARK,contrastText:pf.WHITE},text:{primary:pf.TEXT_PRIMARY,secondary:pf.TEXT_SECONDARY,disabled:pf.GREYSCALE_0_30},action:{hover:pf.GREYSCALE_0_03,hoverOpacity:.03,selected:pf.GREYSCALE_0_05,selectedOpacity:.05,focus:pf.MISC_FOCUS_BORDER},amethyst:{ultraLight:pf.WHITE,main:pf.PURPLE,light:pf.PURPLE_PALE,dark:pf.PURPLE_DARK,extraDark:pf.GREYSCALE_0_0,contrastText:pf.WHITE},background:{paper:pf.WHITE,default:pf.GREYSCALE_95},divider:pf.GREYSCALE_0_15});var Df=e=>If();var $f=(e,t=!1)=>{const n=((e,t)=>Pf(t))(0,t);return{components:n,palette:Df(e),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:hf,fontWeightLight:bf,fontWeightRegular:yf,fontWeightMedium:xf,fontWeightBold:_f,htmlFontSize:hf,fontFamily:Cf.FONT_FAMILY,button:{fontWeight:xf,fontSize:hf,textTransform:"none"},body1:{fontSize:gf,lineHeight:"24px"},body2:{fontSize:hf,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:mf,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:gf,fontWeight:xf,lineHeight:"16px"},h6:{fontSize:hf,fontWeight:xf,lineHeight:"16px"},caption:{color:pf.TEXT_SECONDARY},subtitle1:{fontSize:hf,color:pf.TEXT_SECONDARY},subtitle2:{fontSize:ff,color:pf.TEXT_SECONDARY}},shape:{borderRadius:vf}}};const zf=(e="light",t=!1)=>Bs($f(e,t));var Bf,Ff,Hf={},jf={exports:{}},Gf={exports:{}};function Wf(){return Bf||(Bf=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}(Gf)),Gf.exports}var Yf={};function Kf(e,t){return function(){return null}}function Uf(e){return e&&"object"===ns(e)&&e.constructor===Object}function Vf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?pn({},e):e;return Uf(e)&&Uf(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Uf(t[o])&&o in e?r[o]=Vf(e[o],t[o],n):r[o]=t[o])})),r}var qf=(Zo.element,function(){return null});qf.isRequired=(Zo.element.isRequired,function(){return null});var Xf=function(){return null};var Jf,Qf,Zf={exports:{}},eh={};var th=(Qf||(Qf=1,Zf.exports=function(){if(Jf)return eh;Jf=1;var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,a=60110,l=60112,s=60113,u=60120,c=60115,d=60116,p=60121,f=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"),a=v("react.context"),l=v("react.forward_ref"),s=v("react.suspense"),u=v("react.suspense_list"),c=v("react.memo"),d=v("react.lazy"),p=v("react.block"),f=v("react.server.block"),h=v("react.fundamental"),g=v("react.debug_trace_mode"),m=v("react.legacy_hidden")}function b(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case o:case r:case s:case u:return p;default:switch(p=p&&p.$$typeof){case a:case l:case d:case c:case i:return p;default:return f}}case t:return f}}}var y=i,x=e,_=l,C=n,E=d,S=c,w=t,k=o,R=r,A=s;return eh.ContextConsumer=a,eh.ContextProvider=y,eh.Element=x,eh.ForwardRef=_,eh.Fragment=C,eh.Lazy=E,eh.Memo=S,eh.Portal=w,eh.Profiler=k,eh.StrictMode=R,eh.Suspense=A,eh.isAsyncMode=function(){return!1},eh.isConcurrentMode=function(){return!1},eh.isContextConsumer=function(e){return b(e)===a},eh.isContextProvider=function(e){return b(e)===i},eh.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},eh.isForwardRef=function(e){return b(e)===l},eh.isFragment=function(e){return b(e)===n},eh.isLazy=function(e){return b(e)===d},eh.isMemo=function(e){return b(e)===c},eh.isPortal=function(e){return b(e)===t},eh.isProfiler=function(e){return b(e)===o},eh.isStrictMode=function(e){return b(e)===r},eh.isSuspense=function(e){return b(e)===s},eh.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===g||e===r||e===s||e===u||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===l||e.$$typeof===h||e.$$typeof===p||e[0]===f)},eh.typeOf=b,eh}()),Zf.exports),nh=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function rh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(nh);return t&&t[1]||""}(e)||t}function oh(e,t,n){var r=rh(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var ih,ah="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),lh=Zo.oneOfType([Zo.func,Zo.object]),sh=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:Kf,deepmerge:Vf,elementAcceptingRef:qf,elementTypeAcceptingRef:Xf,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 rh(e,"Component");if("object"===ns(e))switch(e.$$typeof){case th.ForwardRef:return oh(e,e.render,"ForwardRef");case th.Memo:return oh(e,e.type,"memo");default:return}}},ponyfillGlobal:ah,refType:lh}),uh=O(sh);function ch(){if(ih)return Yf;ih=1,Object.defineProperty(Yf,"__esModule",{value:!0}),Yf.hexToRgb=n,Yf.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(""))},Yf.hslToRgb=r,Yf.decomposeColor=o,Yf.recomposeColor=i,Yf.getContrastRatio=function(e,t){var n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Yf.getLuminance=a,Yf.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?s(e,t):u(e,t)},Yf.fade=function(e,t){return l(e,t)},Yf.alpha=l,Yf.darken=s,Yf.lighten=u;var e=uh;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,a=t[2]/100,l=r*Math.min(a,1-a),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-l*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),i({type:u,values:c})}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 a=t.substring(r+1,t.length-1).split(",");return{type:i,values:a=a.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 a(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 l(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 s(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 u(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 Yf}var dh,ph,fh,hh={},gh={exports:{}},mh={exports:{}},vh={exports:{}};function bh(){return dh||(dh=1,function(e){var t=Wf().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}(vh)),vh.exports}function yh(){return ph||(ph=1,function(e){var t=Wf().default,n=bh();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(mh)),mh.exports}function xh(){return fh||(fh=1,function(e){var t=yh();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}(gh)),gh.exports}var _h,Ch={exports:{}};function Eh(){return _h||(_h=1,function(e){var t=Vs();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],n.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Ch)),Ch.exports}var Sh,wh={};function kh(){if(Sh)return wh;Sh=1;var e=hs();Object.defineProperty(wh,"__esModule",{value:!0}),wh.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,l=void 0===a?"px":a,s=e.step,u=void 0===s?5:s,c=(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(l,")")}function p(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(l,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-u/100).concat(l,")")}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)-u/100).concat(l,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},wh.keys=void 0;var t=e(Ys()),n=e(Eh()),r=["xs","sm","md","lg","xl"];return wh.keys=r,wh}var Rh,Ah={};function Th(){if(Rh)return Ah;Rh=1;var e=hs();Object.defineProperty(Ah,"__esModule",{value:!0}),Ah.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(xh()),n=e(Ys());return Ah}var Nh,Oh={},Lh={};function Mh(){if(Nh)return Lh;Nh=1,Object.defineProperty(Lh,"__esModule",{value:!0}),Lh.default=void 0;var e={black:"#000",white:"#fff"};return Lh.default=e,Lh}var Ph,Ih={};function Dh(){if(Ph)return Ih;Ph=1,Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.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 Ih.default=e,Ih}var $h,zh={};function Bh(){if($h)return zh;$h=1,Object.defineProperty(zh,"__esModule",{value:!0}),zh.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 zh.default=e,zh}var Fh,Hh={};function jh(){if(Fh)return Hh;Fh=1,Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.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 Hh.default=e,Hh}var Gh,Wh={};function Yh(){if(Gh)return Wh;Gh=1,Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.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 Wh.default=e,Wh}var Kh,Uh={};function Vh(){if(Kh)return Uh;Kh=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.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 Uh.default=e,Uh}var qh,Xh={};function Jh(){if(qh)return Xh;qh=1,Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.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 Xh.default=e,Xh}var Qh,Zh,eg={};function tg(){if(Qh)return eg;Qh=1,Object.defineProperty(eg,"__esModule",{value:!0}),eg.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 eg.default=e,eg}function ng(){if(Zh)return Oh;Zh=1;var e=hs();Object.defineProperty(Oh,"__esModule",{value:!0}),Oh.default=function(e){var m=e.primary,v=void 0===m?{light:a.default[300],main:a.default[500],dark:a.default[700]}:m,b=e.secondary,y=void 0===b?{light:l.default.A200,main:l.default.A400,dark:l.default.A700}:b,x=e.error,_=void 0===x?{light:s.default[300],main:s.default[500],dark:s.default[700]}:x,C=e.warning,E=void 0===C?{light:u.default[300],main:u.default[500],dark:u.default[700]}:C,S=e.info,w=void 0===S?{light:c.default[300],main:c.default[500],dark:c.default[700]}:S,k=e.success,R=void 0===k?{light:d.default[300],main:d.default[500],dark:d.default[700]}:k,A=e.type,T=void 0===A?"light":A,N=e.contrastThreshold,O=void 0===N?3:N,L=e.tonalOffset,M=void 0===L?.2:L,P=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function I(e){return(0,p.getContrastRatio)(e,h.text.primary)>=O?h.text.primary:f.text.primary}var D=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,M),g(e,"dark",i,M),e.contrastText||(e.contrastText=I(e.main)),e},$={dark:h,light:f};return(0,r.deepmerge)((0,t.default)({common:o.default,type:T,primary:D(v),secondary:D(y,"A400","A200","A700"),error:D(_),warning:D(E),info:D(w),success:D(R),grey:i.default,contrastThreshold:O,getContrastText:I,augmentColor:D,tonalOffset:M},$[T]),P)},Oh.dark=Oh.light=void 0;var t=e(Ys()),n=e(Eh()),r=uh,o=e(Mh()),i=e(Dh()),a=e(Bh()),l=e(jh()),s=e(Yh()),u=e(Vh()),c=e(Jh()),d=e(tg()),p=ch(),f={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}};Oh.light=f;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,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return Oh.dark=h,Oh}var rg,og={};function ig(){if(rg)return og;rg=1;var e=hs();Object.defineProperty(og,"__esModule",{value:!0}),og.default=function(e,s){var u="function"==typeof s?s(e):s,c=u.fontFamily,d=void 0===c?l:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,g=void 0===h?300:h,m=u.fontWeightRegular,v=void 0===m?400:m,b=u.fontWeightMedium,y=void 0===b?500:b,x=u.fontWeightBold,_=void 0===x?700:x,C=u.htmlFontSize,E=void 0===C?16:C,S=u.allVariants,w=u.pxToRem,k=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),R=f/14,A=w||function(e){return"".concat(e/E*R,"rem")},T=function(e,n,r,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:A(n),lineHeight:r},d===l?{letterSpacing:"".concat(o(i/n),"em")}:{},a,S)},N={h1:T(g,96,1.167,-1.5),h2:T(g,60,1.2,-.5),h3:T(v,48,1.167,0),h4:T(v,34,1.235,.25),h5:T(v,24,1.334,0),h6:T(y,20,1.6,.15),subtitle1:T(v,16,1.75,.15),subtitle2:T(y,14,1.57,.1),body1:T(v,16,1.5,.15),body2:T(v,14,1.43,.15),button:T(y,14,1.75,.4,a),caption:T(v,12,1.66,.4),overline:T(v,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:E,pxToRem:A,round:i,fontFamily:d,fontSize:f,fontWeightLight:g,fontWeightRegular:v,fontWeightMedium:y,fontWeightBold:_},N),k,{clone:!1})};var t=e(Ys()),n=e(Eh()),r=uh;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},l='"Roboto", "Helvetica", "Arial", sans-serif';return og}var ag,lg={};function sg(){if(ag)return lg;ag=1,Object.defineProperty(lg,"__esModule",{value:!0}),lg.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 lg.default=t,lg}var ug,cg={};function dg(){if(ug)return cg;ug=1,Object.defineProperty(cg,"__esModule",{value:!0}),cg.default=void 0;var e={borderRadius:4};return cg.default=e,cg}var pg={};function fg(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 hg(e,t){if(e){if("string"==typeof e)return fg(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)?fg(e,t):void 0}}function gg(e){return function(e){if(Array.isArray(e))return fg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hg(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 mg(e,t){return t?Vf(e,t,{clone:!1}):e}var vg={xs:0,sm:600,md:960,lg:1280,xl:1920},bg={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(vg[e],"px)")}};function yg(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||bg;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===ns(t)){var o=e.theme.breakpoints||bg;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}function xg(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function _g(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=xg(e.theme,o)||{};return yg(e,n,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=xg(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=rs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)}))};return a.propTypes={},a.filterProps=[t],a}function Cg(){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?mg(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r}function Eg(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Sg=_g({prop:"border",themeKey:"borders",transform:Eg}),wg=_g({prop:"borderTop",themeKey:"borders",transform:Eg}),kg=_g({prop:"borderRight",themeKey:"borders",transform:Eg}),Rg=_g({prop:"borderBottom",themeKey:"borders",transform:Eg}),Ag=_g({prop:"borderLeft",themeKey:"borders",transform:Eg}),Tg=_g({prop:"borderColor",themeKey:"palette"}),Ng=_g({prop:"borderRadius",themeKey:"shape"}),Og=Cg(Sg,wg,kg,Rg,Ag,Tg,Ng);function Lg(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function Mg(e){var t=function(t){var n=e(t);return t.css?pn({},mg(n,e(pn({theme:t.theme},t.css))),Lg(t.css,[e.filterProps])):t.sx?pn({},mg(n,e(pn({theme:t.theme},t.sx))),Lg(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(gg(e.filterProps)),t}var Pg=Cg(_g({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),_g({prop:"display"}),_g({prop:"overflow"}),_g({prop:"textOverflow"}),_g({prop:"visibility"}),_g({prop:"whiteSpace"})),Ig=_g({prop:"flexBasis"}),Dg=_g({prop:"flexDirection"}),$g=_g({prop:"flexWrap"}),zg=_g({prop:"justifyContent"}),Bg=_g({prop:"alignItems"}),Fg=_g({prop:"alignContent"}),Hg=_g({prop:"order"}),jg=_g({prop:"flex"}),Gg=_g({prop:"flexGrow"}),Wg=_g({prop:"flexShrink"}),Yg=_g({prop:"alignSelf"}),Kg=_g({prop:"justifyItems"}),Ug=_g({prop:"justifySelf"}),Vg=Cg(Ig,Dg,$g,zg,Bg,Fg,Hg,jg,Gg,Wg,Yg,Kg,Ug),qg=_g({prop:"gridGap"}),Xg=_g({prop:"gridColumnGap"}),Jg=_g({prop:"gridRowGap"}),Qg=_g({prop:"gridColumn"}),Zg=_g({prop:"gridRow"}),em=_g({prop:"gridAutoFlow"}),tm=_g({prop:"gridAutoColumns"}),nm=_g({prop:"gridAutoRows"}),rm=_g({prop:"gridTemplateColumns"}),om=_g({prop:"gridTemplateRows"}),im=_g({prop:"gridTemplateAreas"}),am=_g({prop:"gridArea"}),lm=Cg(qg,Xg,Jg,Qg,Zg,em,tm,nm,rm,om,im,am),sm=_g({prop:"color",themeKey:"palette"}),um=_g({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),cm=Cg(sm,um),dm=_g({prop:"position"}),pm=_g({prop:"zIndex",themeKey:"zIndex"}),fm=_g({prop:"top"}),hm=_g({prop:"right"}),gm=_g({prop:"bottom"}),mm=_g({prop:"left"}),vm=Cg(dm,pm,fm,hm,gm,mm),bm=_g({prop:"boxShadow",themeKey:"shadows"});function ym(e){return e<=1?"".concat(100*e,"%"):e}var xm=_g({prop:"width",transform:ym}),_m=_g({prop:"maxWidth",transform:ym}),Cm=_g({prop:"minWidth",transform:ym}),Em=_g({prop:"height",transform:ym}),Sm=_g({prop:"maxHeight",transform:ym}),wm=_g({prop:"minHeight",transform:ym}),km=_g({prop:"size",cssProperty:"width",transform:ym}),Rm=_g({prop:"size",cssProperty:"height",transform:ym}),Am=_g({prop:"boxSizing"}),Tm=Cg(xm,_m,Cm,Em,Sm,wm,Am);function Nm(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,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||hg(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 Om={m:"margin",p:"padding"},Lm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Mm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Pm=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(!Mm[e])return[e];e=Mm[e]}var t=Nm(e.split(""),2),n=t[0],r=t[1],o=Om[n],i=Lm[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Im=["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 Dm(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 $m(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 zm(e){var t=Dm(e.theme);return Object.keys(e).map((function(n){if(-1===Im.indexOf(n))return null;var r=$m(Pm(n),t),o=e[n];return yg(e,o,r)})).reduce(mg,{})}zm.propTypes={},zm.filterProps=Im;var Bm,Fm=_g({prop:"fontFamily",themeKey:"typography"}),Hm=_g({prop:"fontSize",themeKey:"typography"}),jm=_g({prop:"fontStyle",themeKey:"typography"}),Gm=_g({prop:"fontWeight",themeKey:"typography"}),Wm=_g({prop:"letterSpacing"}),Ym=_g({prop:"lineHeight"}),Km=_g({prop:"textAlign"}),Um=Cg(Fm,Hm,jm,Gm,Wm,Ym,Km),Vm=Object.freeze({__proto__:null,alignContent:Fg,alignItems:Bg,alignSelf:Yg,bgcolor:um,border:Sg,borderBottom:Rg,borderColor:Tg,borderLeft:Ag,borderRadius:Ng,borderRight:kg,borderTop:wg,borders:Og,bottom:gm,boxSizing:Am,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||bg,o=r.keys.reduce((function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(pn({theme:t.theme},t[o]))),n}),null);return mg(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(gg(e.filterProps)),t},color:sm,compose:Cg,createUnarySpacing:Dm,css:function(e){return Mg(e)},display:Pg,flex:jg,flexBasis:Ig,flexDirection:Dg,flexGrow:Gg,flexShrink:Wg,flexWrap:$g,flexbox:Vg,fontFamily:Fm,fontSize:Hm,fontStyle:jm,fontWeight:Gm,grid:lm,gridArea:am,gridAutoColumns:tm,gridAutoFlow:em,gridAutoRows:nm,gridColumn:Qg,gridColumnGap:Xg,gridGap:qg,gridRow:Zg,gridRowGap:Jg,gridTemplateAreas:im,gridTemplateColumns:rm,gridTemplateRows:om,height:Em,justifyContent:zg,justifyItems:Kg,justifySelf:Ug,left:mm,letterSpacing:Wm,lineHeight:Ym,maxHeight:Sm,maxWidth:_m,minHeight:wm,minWidth:Cm,order:Hg,palette:cm,position:dm,positions:vm,right:hm,shadows:bm,sizeHeight:Rm,sizeWidth:km,sizing:Tm,spacing:zm,style:_g,styleFunctionSx:Mg,textAlign:Km,top:fm,typography:Um,width:xm,zIndex:pm}),qm=O(Vm);function Xm(){if(Bm)return pg;Bm=1,Object.defineProperty(pg,"__esModule",{value:!0}),pg.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=qm;return pg}var Jm,Qm={};function Zm(){if(Jm)return Qm;Jm=1;var e=hs();Object.defineProperty(Qm,"__esModule",{value:!0}),Qm.default=Qm.duration=Qm.easing=void 0;var t=e(Eh()),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)"};Qm.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")}Qm.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]:{},a=i.duration,l=void 0===a?r.standard:a,s=i.easing,u=void 0===s?n.easeInOut:s,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof l?l:o(l)," ").concat(u," ").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 Qm.default=i,Qm}var ev,tv,nv={};function rv(){if(ev)return nv;ev=1,Object.defineProperty(nv,"__esModule",{value:!0}),nv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return nv.default=e,nv}function ov(){if(tv)return hh;tv=1;var e=hs();Object.defineProperty(hh,"__esModule",{value:!0}),hh.createMuiTheme=function(){return p.apply(void 0,arguments)},hh.default=void 0,e(xh());var t=e(Eh()),n=uh,r=e(kh()),o=e(Th()),i=e(ng()),a=e(ig()),l=e(sg()),s=e(dg()),u=e(Xm()),c=e(Zm()),d=e(rv());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,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"]),C=(0,i.default)(v),E=(0,r.default)(f),S=(0,u.default)(b),w=(0,n.deepmerge)({breakpoints:E,direction:"ltr",mixins:(0,o.default)(E,S,g),overrides:{},palette:C,props:{},shadows:l.default,typography:(0,a.default)(C,x),spacing:S,shape:s.default,transitions:c.default,zIndex:d.default},_),k=arguments.length,R=new Array(k>1?k-1:0),A=1;A<k;A++)R[A-1]=arguments[A];return w=R.reduce((function(e,t){return(0,n.deepmerge)(e,t)}),w)}var f=p;return hh.default=f,hh}var iv,av={};function lv(){if(iv)return av;iv=1;var e=hs();Object.defineProperty(av,"__esModule",{value:!0}),av.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=uh,n=e(ov());return av}var sv={},uv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",cv=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function dv(){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,a=void 0===i?"":i,l=""===a?"":"".concat(a,"-"),s=0,u=function(){return s+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==cv.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(l).concat(r,"-").concat(e.key);return t.options.theme[uv]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(l).concat(o).concat(u())}}function pv(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 fv="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},hv="object"===("undefined"==typeof window?"undefined":fv(window))&&"object"===("undefined"==typeof document?"undefined":fv(document))&&9===document.nodeType;function gv(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,rs(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var mv={}.constructor;function vv(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(vv);if(e.constructor!==mv)return e;var t={};for(var n in e)t[n]=vv(e[n]);return t}function bv(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=vv(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var yv=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},xv=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+=yv(e[n]," ");else t=yv(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function _v(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Cv(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Ev(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var l=_v(n),s=l.linebreak,u=l.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(r&&(r+=s),r+=Cv(p+":"+u+xv(f)+";",i))}}else for(var h in a){var g=a[h];null!=g&&(r&&(r+=s),r+=Cv(h+":"+u+xv(g)+";",i))}for(var m in t){var v=t[m];null!=v&&"fallbacks"!==m&&(r&&(r+=s),r+=Cv(m+":"+u+xv(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+s+r+s),Cv(""+e+u+"{"+r,--i)+Cv("}",i)):r}var Sv=/([[\].#*$><+~=|^:(),"'`\s])/g,wv="undefined"!=typeof CSS&&CSS.escape,kv=function(e){return wv?wv(e):e.replace(Sv,"\\$1")},Rv=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,a=e in this.style;if(i&&!a&&!r)return this;var l=i&&a;if(l?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return l?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var s=this.options.sheet;return s&&s.attached,this},e}(),Av=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,l=r.sheet,s=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=s(xu(xu(o)),l),o.selectorText="."+kv(o.id)),o}cu(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]=xv(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?pn({},e,{allowEmpty:!0}):e;return Ev(this.selectorText,this.style,n)},gv(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}(Rv),Tv={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Av(e,t,n)}},Nv={indent:1,children:!0},Ov=/@([\w-]+)/,Lv=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Ov);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new nb(pn({},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=Nv);var t=_v(e).linebreak;if(null==e.indent&&(e.indent=Nv.indent),null==e.children&&(e.children=Nv.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Mv=/@container|@media|@supports\s+/,Pv={onCreateRule:function(e,t,n){return Mv.test(e)?new Lv(e,t,n):null}},Iv={indent:1,children:!0},Dv=/@keyframes\s+([\w-]+)/,$v=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Dv);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,a=n.generateId;for(var l in this.id=!1===o?this.name:kv(a(this,i)),this.rules=new nb(pn({},n,{parent:this})),t)this.rules.add(l,t[l],pn({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Iv);var t=_v(e).linebreak;if(null==e.indent&&(e.indent=Iv.indent),null==e.children&&(e.children=Iv.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}(),zv=/@keyframes\s+/,Bv=/\$([\w-]+)/g,Fv=function(e,t){return"string"==typeof e?e.replace(Bv,(function(e,n){return n in t?t[n]:e})):e},Hv=function(e,t,n){var r=e[t],o=Fv(r,n);o!==r&&(e[t]=o)},jv={onCreateRule:function(e,t,n){return"string"==typeof e&&zv.test(e)?new $v(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Hv(e,"animation-name",n.keyframes),"animation"in e&&Hv(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 Fv(e,r.keyframes);default:return e}}},Gv=function(e){function t(){return e.apply(this,arguments)||this}return cu(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?pn({},e,{allowEmpty:!0}):e;return Ev(this.key,this.style,n)},t}(Rv),Wv={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Gv(e,t,n):null}},Yv=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=_v(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Ev(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Ev(this.at,this.style,e)},e}(),Kv=/@font-face/,Uv={onCreateRule:function(e,t,n){return Kv.test(e)?new Yv(e,t,n):null}},Vv=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 Ev(this.key,this.style,e)},e}(),qv={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Vv(e,t,n):null}},Xv=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}(),Jv={"@charset":!0,"@import":!0,"@namespace":!0},Qv={onCreateRule:function(e,t,n){return e in Jv?new Xv(e,t,n):null}},Zv=[Tv,Pv,jv,Wv,Uv,qv,Qv],eb={process:!0},tb={force:!0,process:!0},nb=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,a=r.jss,l=r.Renderer,s=r.generateId,u=r.scoped,c=pn({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:l,generateId:s,scoped:u,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&&(c.selector="."+kv(this.classes[d]));var p=bv(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},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=pn({},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 Av?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof $v&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Av?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof $v&&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=eb);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var l=t.style;if(i.onUpdate(n,t,a,r),r.process&&l&&l!==t.style){for(var s in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[s];u!==l[s]&&t.prop(s,u,tb)}for(var c in l){var d=t.style[c],p=l[c];null==d&&d!==p&&t.prop(c,null,tb)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=_v(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),rb=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=pn({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new nb(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}(),ob=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}(),ib=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=fn(t,["attached"]),o=_v(r).linebreak,i="",a=0;a<this.registry.length;a++){var l=this.registry[a];null!=n&&l.attached!==n||(i&&(i+=o),i+=l.toString(r))}return i},gv(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ab=new ib,lb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),sb="2f1acc6c3a606b082e5eef5e54414ffb";null==lb[sb]&&(lb[sb]=0);var ub=lb[sb]++,cb=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")+ub+o+t:i+n.key+"-"+ub+(o?"-"+o:"")+"-"+t}},db=function(e){var t;return function(){return t||(t=e()),t}},pb=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},fb=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=xv(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},hb=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},gb=function(e,t){return e.selectorText=t,e.selectorText===t},mb=db((function(){return document.querySelector("head")}));function vb(e){var t=ab.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=mb(),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 bb=db((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),yb=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]},xb=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},_b=function(){function e(e){this.getPropertyValue=pb,this.setProperty=fb,this.removeProperty=hb,this.setSelector=gb,this.hasInsertedRules=!1,this.cssRules=[],e&&ab.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=bb();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=vb(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 mb().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=xb(n,t);if(!1===(o=yb(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var l=xb(n,t),s=yb(n,a,l);return!1!==s&&(this.hasInsertedRules=!0,this.refCssRule(e,l,s),s)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof rb&&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}(),Cb=0,Eb=function(){function e(e){this.id=Cb++,this.version="10.10.0",this.plugins=new ob,this.options={id:{minify:!1},createGenerateId:cb,Renderer:hv?_b:null,plugins:[]},this.generateId=cb({minify:!1});for(var t=0;t<Zv.length;t++)this.plugins.use(Zv[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=pn({},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===ab.index?0:ab.index+1);var r=new rb(e,pn({},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(),ab.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=pn({},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=bv(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}(),Sb=function(e){return new Eb(e)},wb="object"==typeof CSS&&null!=CSS&&"number"in CSS;function kb(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=kb(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
88
|
+
/**
|
|
89
|
+
* A better abstraction over CSS.
|
|
90
|
+
*
|
|
91
|
+
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
92
|
+
* @website https://github.com/cssinjs/jss
|
|
93
|
+
* @license MIT
|
|
94
|
+
*/Sb();var Rb=Date.now(),Ab="fnValues"+Rb,Tb="fnStyle"+ ++Rb,Nb="@global",Ob="@global ",Lb=function(){function e(e,t,n){for(var r in this.type="global",this.at=Nb,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new nb(pn({},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}(),Mb=function(){function e(e,t,n){this.type="global",this.at=Nb,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,pn({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Pb=/\s*,\s*/g;function Ib(e,t){for(var n=e.split(Pb),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function Db(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Nb)return new Lb(e,t,n);if("@"===e[0]&&e.substr(0,8)===Ob)return new Mb(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[Nb]:null;if(o){for(var i in o)t.addRule(i,o[i],pn({},n,{selector:Ib(i,e.selector)}));delete r[Nb]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Nb){var i=Ib(o.substr(7),e.selector);t.addRule(i,r[o],pn({},n,{selector:i})),delete r[o]}}(e,t))}}}var $b=/\s*,\s*/g,zb=/&/g,Bb=/\$([\w-]+)/g;function Fb(){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($b),r=e.split($b),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(zb,a):a+" "+s}return o}function n(e,t,n){if(n)return pn({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=pn({},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 a,l,s=o,u=s.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=n(s,u,a),d){var f=t(c,s.selector);l||(l=e(u,i)),f=f.replace(Bb,l);var h=s.key+"-"+c;"replaceRule"in u?u.replaceRule(h,r[c],pn({},a,{selector:f})):u.addRule(h,r[c],pn({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(s.key,r[c],{selector:s.selector});delete r[c]}}return r}}}var Hb=/[A-Z]/g,jb=/^ms-/,Gb={};function Wb(e){return"-"+e.toLowerCase()}function Yb(e){if(Gb.hasOwnProperty(e))return Gb[e];var t=e.replace(Hb,Wb);return Gb[e]=jb.test(t)?"-"+t:t}function Kb(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Yb(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Kb):t.fallbacks=Kb(e.fallbacks)),t}var Ub=wb&&CSS?CSS.px:"px",Vb=wb&&CSS?CSS.ms:"ms",qb=wb&&CSS?CSS.percent:"%";function Xb(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 Jb=Xb({"animation-delay":Vb,"animation-duration":Vb,"background-position":Ub,"background-position-x":Ub,"background-position-y":Ub,"background-size":Ub,border:Ub,"border-bottom":Ub,"border-bottom-left-radius":Ub,"border-bottom-right-radius":Ub,"border-bottom-width":Ub,"border-left":Ub,"border-left-width":Ub,"border-radius":Ub,"border-right":Ub,"border-right-width":Ub,"border-top":Ub,"border-top-left-radius":Ub,"border-top-right-radius":Ub,"border-top-width":Ub,"border-width":Ub,"border-block":Ub,"border-block-end":Ub,"border-block-end-width":Ub,"border-block-start":Ub,"border-block-start-width":Ub,"border-block-width":Ub,"border-inline":Ub,"border-inline-end":Ub,"border-inline-end-width":Ub,"border-inline-start":Ub,"border-inline-start-width":Ub,"border-inline-width":Ub,"border-start-start-radius":Ub,"border-start-end-radius":Ub,"border-end-start-radius":Ub,"border-end-end-radius":Ub,margin:Ub,"margin-bottom":Ub,"margin-left":Ub,"margin-right":Ub,"margin-top":Ub,"margin-block":Ub,"margin-block-end":Ub,"margin-block-start":Ub,"margin-inline":Ub,"margin-inline-end":Ub,"margin-inline-start":Ub,padding:Ub,"padding-bottom":Ub,"padding-left":Ub,"padding-right":Ub,"padding-top":Ub,"padding-block":Ub,"padding-block-end":Ub,"padding-block-start":Ub,"padding-inline":Ub,"padding-inline-end":Ub,"padding-inline-start":Ub,"mask-position-x":Ub,"mask-position-y":Ub,"mask-size":Ub,height:Ub,width:Ub,"min-height":Ub,"max-height":Ub,"min-width":Ub,"max-width":Ub,bottom:Ub,left:Ub,top:Ub,right:Ub,inset:Ub,"inset-block":Ub,"inset-block-end":Ub,"inset-block-start":Ub,"inset-inline":Ub,"inset-inline-end":Ub,"inset-inline-start":Ub,"box-shadow":Ub,"text-shadow":Ub,"column-gap":Ub,"column-rule":Ub,"column-rule-width":Ub,"column-width":Ub,"font-size":Ub,"font-size-delta":Ub,"letter-spacing":Ub,"text-decoration-thickness":Ub,"text-indent":Ub,"text-stroke":Ub,"text-stroke-width":Ub,"word-spacing":Ub,motion:Ub,"motion-offset":Ub,outline:Ub,"outline-offset":Ub,"outline-width":Ub,perspective:Ub,"perspective-origin-x":qb,"perspective-origin-y":qb,"transform-origin":qb,"transform-origin-x":qb,"transform-origin-y":qb,"transform-origin-z":qb,"transition-delay":Vb,"transition-duration":Vb,"vertical-align":Ub,"flex-basis":Ub,"shape-margin":Ub,size:Ub,gap:Ub,grid:Ub,"grid-gap":Ub,"row-gap":Ub,"grid-row-gap":Ub,"grid-column-gap":Ub,"grid-template-rows":Ub,"grid-template-columns":Ub,"grid-auto-rows":Ub,"grid-auto-columns":Ub,"box-shadow-x":Ub,"box-shadow-y":Ub,"box-shadow-blur":Ub,"box-shadow-spread":Ub,"font-line-height":Ub,"text-shadow-x":Ub,"text-shadow-y":Ub,"text-shadow-blur":Ub});function Qb(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Qb(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Qb(o,t[o],n);else for(var i in t)t[i]=Qb(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Jb[e];return!a||0===t&&a===Ub?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Zb(e){void 0===e&&(e={});var t=Xb(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Qb(r,e[r],t);return e},onChangeValue:function(e,n){return Qb(n,e,t)}}}var ey="",ty="",ny="",ry="",oy=hv&&"ontouchstart"in document.documentElement;if(hv){var iy={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ay=document.createElement("p").style;for(var ly in iy)if(ly+"Transform"in ay){ey=ly,ty=iy[ly];break}"Webkit"===ey&&"msHyphens"in ay&&(ey="ms",ty=iy.ms,ry="edge"),"Webkit"===ey&&"-apple-trailing-word"in ay&&(ny="apple")}var sy=ey,uy=ty,cy=ny,dy=ry,py=oy;var fy={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===sy?"-webkit-"+e:uy+e)}},hy={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===sy?uy+"print-"+e:e)}},gy=/[-\s]+(.)?/g;function my(e,t){return t?t.toUpperCase():""}function vy(e){return e.replace(gy,my)}function by(e){return vy("-"+e)}var yy,xy={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===sy){var n="mask-image";if(vy(n)in t)return e;if(sy+by(n)in t)return uy+e}return e}},_y={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==cy||py?e:uy+e)}},Cy={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:uy+e)}},Ey={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:uy+e)}},Sy={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===sy||"ms"===sy&&"edge"!==dy?uy+e:e)}},wy={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===sy||"ms"===sy||"apple"===cy?uy+e:e)}},ky={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===sy?"WebkitColumn"+by(e)in t&&uy+"column-"+e:"Moz"===sy&&("page"+by(e)in t&&"page-"+e))}},Ry={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===sy)return e;var n=e.replace("-inline","");return sy+by(n)in t&&uy+n}},Ay={supportedProperty:function(e,t){return vy(e)in t&&e}},Ty={supportedProperty:function(e,t){var n=by(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:sy+n in t?uy+e:"Webkit"!==sy&&"Webkit"+n in t&&"-webkit-"+e}},Ny={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===sy?""+uy+e:e)}},Oy={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===sy?uy+"scroll-chaining":e)}},Ly={"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"},My={supportedProperty:function(e,t){var n=Ly[e];return!!n&&(sy+by(n)in t&&uy+n)}},Py={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"},Iy=Object.keys(Py),Dy=function(e){return uy+e},$y={supportedProperty:function(e,t,n){var r=n.multiple;if(Iy.indexOf(e)>-1){var o=Py[e];if(!Array.isArray(o))return sy+by(o)in t&&uy+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(sy+by(o[0])in t))return!1;return o.map(Dy)}return!1}},zy=[fy,hy,xy,_y,Cy,Ey,Sy,wy,ky,Ry,Ay,Ty,Ny,Oy,My,$y],By=zy.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Fy=zy.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,gg(t.noPrefill)),e}),[]),Hy={};if(hv){yy=document.createElement("p");var jy=window.getComputedStyle(document.documentElement,"");for(var Gy in jy)isNaN(Gy)||(Hy[jy[Gy]]=jy[Gy]);Fy.forEach((function(e){return delete Hy[e]}))}function Wy(e,t){if(void 0===t&&(t={}),!yy)return e;if(null!=Hy[e])return Hy[e];"transition"!==e&&"transform"!==e||(t[e]=e in yy.style);for(var n=0;n<By.length&&(Hy[e]=By[n](e,yy.style,t),!Hy[e]);n++);try{yy.style[e]=""}catch(e){return!1}return Hy[e]}var Yy,Ky={},Uy={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Vy=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function qy(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Wy(t):", "+Wy(n);return r||(t||n)}function Xy(e,t){var n=t;if(!Yy||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Ky[r])return Ky[r];try{Yy.style[e]=n}catch(e){return Ky[r]=!1,!1}if(Uy[e])n=n.replace(Vy,qy);else if(""===Yy.style[e]&&("-ms-flex"===(n=uy+n)&&(Yy.style[e]="-ms-flexbox"),Yy.style[e]=n,""===Yy.style[e]))return Ky[r]=!1,!1;return Yy.style[e]="",Ky[r]=n,Ky[r]}function Jy(){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=Wy(n);i&&i!==n&&(o=!0);var a=!1,l=Xy(i,xv(r));l&&l!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=l||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===sy?e:"@"+uy+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Xy(t,xv(e))||e}}}function Qy(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=bv(e,{},n);return r[Tb]=t,r},onProcessStyle:function(e,t){if(Ab in t||Tb 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[Ab]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Tb];i&&(o.style=i(e)||{});var a=o[Ab];if(a)for(var l in a)o.prop(l,a[l](e),r)}},Db(),Fb(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Kb(e[t]);return e}return Kb(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Yb(t);return t===r?e:(n.prop(r,e),null)}},Zb(),"undefined"==typeof window?null:Jy(),(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 Zy(e,t){if(null==e)return{};var n,r,o=fn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ex(){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=pn({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}hv&&(Yy=document.createElement("p"));var tx=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},nx=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},rx=function(e,t,n){e.get(t).delete(n)},ox=m.createContext(null);function ix(){return m.useContext(ox)}var ax,lx=Sb(Qy()),sx=dv(),ux=new Map,cx={disableGeneration:!1,generateClassName:sx,jss:lx,sheetsCache:null,sheetsManager:ux,sheetsRegistry:null},dx=m.createContext(cx);function px(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=Zy(e,["children","injectFirst","disableGeneration"]),l=pn({},m.useContext(dx),{disableGeneration:i},a);if(!l.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!ax){var s=document.head;ax=document.createComment("mui-inject-first"),s.insertBefore(ax,s.firstChild)}l.jss=Sb({plugins:Qy().plugins,insertionPoint:ax})}return m.createElement(dx.Provider,{value:l},t)}var fx=-1e9;var hx={};function gx(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var l=nx(o.sheetsManager,i,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},tx(o.sheetsManager,i,r,l));var s=pn({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});s.generateId=s.serverGenerateClassName||s.generateClassName;var u=o.sheetsRegistry;if(0===l.refs){var c;o.sheetsCache&&(c=nx(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,pn({link:!1},s))).attach(),o.sheetsCache&&tx(o.sheetsCache,i,r,c)),u&&u.add(c),l.staticSheet=c,l.dynamicStyles=kb(d)}if(l.dynamicStyles){var p=o.jss.createStyleSheet(l.dynamicStyles,pn({link:!0},s));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=ex({baseClasses:l.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else n.classes=l.staticSheet.classes;l.refs+=1}}function mx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?hx:i,l=Zy(t,["name","classNamePrefix","Component","defaultTheme"]),s=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],a=pn({},o);return Object.keys(i).forEach((function(e){a[e]=Vf(a[e],i[e])})),a},options:{}}}(e),u=n||r||"makeStyles";s.options={index:fx+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ix()||a,r=pn({},m.useContext(dx),l),i=m.useRef(),u=m.useRef();!function(e,t){var n,r=m.useRef([]),o=m.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),m.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:s,stylesOptions:r,theme:t};return gx(o,e),u.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=nx(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(rx(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,s]),m.useEffect((function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),u.current=!0}));var c=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=ex({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return c}}var vx=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 gv(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new ib;var n=dv();return m.createElement(px,pn({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 m.createElement("style",pn({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function bx(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=bx(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function yx(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=bx(e))&&(r&&(r+=" "),r+=t);return r}function xx(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=m.forwardRef((function(n,r){var o=n.innerRef,i=Zy(n,["innerRef"]),a=ix()||e;return m.createElement(t,pn({theme:a,ref:o||r},i))}));return Or(n,t),n}}var _x,Cx=xx(),Ex=Object.freeze({__proto__:null,ServerStyleSheets:vx,StylesContext:dx,StylesProvider:px,ThemeProvider:function(e){var t=e.children,n=e.theme,r=ix(),o=m.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):pn({},e,t)}(r,n);return null!=e&&(e[uv]=null!==r),e}),[n,r]);return m.createElement(ox.Provider,{value:o},t)},createGenerateClassName:dv,createStyles:function(e){return e},getThemeProps:pv,jssPreset:Qy,makeStyles:mx,mergeClasses:ex,sheetsManager:ux,styled:function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=Zy(r,["name"]),a=o,l=mx("function"==typeof t?function(e){return{root:function(n){return t(pn({theme:e},n))}}}:{root:t},pn({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var s=m.forwardRef((function(t,r){var o,i,a,s=t.children,u=t.className,c=t.clone,d=t.component,p=Zy(t,["children","className","clone","component"]),f=yx(l(t).root,u),h=p;if(n&&(o=h,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),h=a),c)return m.cloneElement(s,pn({className:yx(s.props.className,f)},h));if("function"==typeof s)return s(pn({className:f},h));var g=d||e;return m.createElement(g,pn({ref:r,className:f},h),s)}));return Or(s,e),s}},useTheme:ix,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,a=t.name,l=Zy(t,["defaultTheme","withTheme","name"]),s=a,u=mx(e,pn({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:s},l)),c=m.forwardRef((function(e,t){e.classes;var o,l=e.innerRef,s=Zy(e,["classes","innerRef"]),c=u(pn({},n.defaultProps,e)),d=s;return("string"==typeof a||i)&&(o=ix()||r,a&&(d=pv({theme:o,name:a,props:s})),i&&!d.theme&&(d.theme=o)),m.createElement(n,pn({ref:l||t,classes:c},d))}));return Or(c,n),c}},withTheme:Cx,withThemeCreator:xx}),Sx=O(Ex);
|
|
95
|
+
/** @license Material-UI v4.11.5
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the MIT license found in the
|
|
98
|
+
* LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/function wx(){if(_x)return sv;_x=1,Object.defineProperty(sv,"__esModule",{value:!0}),sv.default=function(t){return(0,e.createStyles)(t)};var e=Sx;return sv}var kx,Rx,Ax={},Tx={};function Nx(){if(kx)return Tx;kx=1;var e=hs();Object.defineProperty(Tx,"__esModule",{value:!0}),Tx.default=void 0;var t=(0,e(ov()).default)();return Tx.default=t,Tx}function Ox(){if(Rx)return Ax;Rx=1;var e=hs();Object.defineProperty(Ax,"__esModule",{value:!0}),Ax.default=void 0;var t=e(Ys()),n=Sx,r=e(Nx());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 Ax.default=o,Ax}var Lx,Mx,Px={},Ix={};function Dx(){if(Lx)return Ix;Lx=1;var e=hs();Object.defineProperty(Ix,"__esModule",{value:!0}),Ix.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},Ix.getUnit=n,Ix.toUnitless=r,Ix.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var l=a;if("px"!==o)if("em"===o)l=a/r(e);else{if("rem"!==o)return t;l=a/r(e)}return parseFloat(l.toFixed(5))+o}},Ix.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},Ix.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},Ix.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,l=e.breakpoints,s=void 0===l?[600,960,1280]:l,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(o-r)/s[s.length-1];return s.forEach((function(e){var o=r+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e(xh());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return Ix}function $x(){if(Mx)return Px;Mx=1;var e=hs();Object.defineProperty(Px,"__esModule",{value:!0}),Px.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,l=o.disableAlign,s=void 0!==l&&l,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,g=(0,r.convertLength)(h.htmlFontSize),m=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(g(o.fontSize,"rem"));if(!(i<=1)){var a=i,l=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!s)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(g(u,"rem"))/parseFloat(i));var d=null;s||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:l,max:a,unit:"rem",breakpoints:m,transform:d}))}})),f};var t=e(Ys()),n=uh,r=Dx();return Px}var zx,Bx={};function Fx(){if(zx)return Bx;zx=1;var e=hs();Object.defineProperty(Bx,"__esModule",{value:!0}),Bx.default=void 0;var t=e(Ys()),n=Sx,r=e(Nx()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return Bx.default=o,Bx}var Hx,jx={};function Gx(){if(Hx)return jx;Hx=1;var e=hs();Object.defineProperty(jx,"__esModule",{value:!0}),jx.default=function(){return(0,t.useTheme)()||n.default};var t=Sx;e(m);var n=e(Nx());return jx}var Wx,Yx={};function Kx(){if(Wx)return Yx;Wx=1;var e=hs();Object.defineProperty(Yx,"__esModule",{value:!0}),Yx.default=void 0;var t=e(Ys()),n=Sx,r=e(Nx());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return Yx.default=o,Yx}var Ux,Vx,qx={};function Xx(){if(Ux)return qx;Ux=1;var e=hs();Object.defineProperty(qx,"__esModule",{value:!0}),qx.default=void 0;var t=Sx,n=e(Nx()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return qx.default=r,qx}function Jx(){return Vx||(Vx=1,function(e){var t=hs(),n=(Ff||(Ff=1,function(e){var t=Wf().default;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)}e.exports=function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=t(e)&&"function"!=typeof e)return{default:e};var o=n(r);if(o&&o.has(e))return o.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(i,l,s):i[l]=e[l]}return i.default=e,o&&o.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports}(jf)),jf.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.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=ch();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(ov()),a=t(lv()),l=t(wx()),s=t(Ox()),u=t($x()),c=t(Fx()),d=Zm();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 p=t(Gx()),f=t(Kx()),h=t(Xx()),g=Sx}(Hf)),Hf}var Qx=Jx(),Zx=Object.defineProperty,e_=(e,t)=>{for(var n in t)Zx(e,n,{get:t[n],enumerable:!0})};e_({},{light:()=>t_});const t_={root:{backgroundColor:pf.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&$expanded":{margin:"0px"}}};e_({},{light:()=>n_});const n_={root:{backgroundColor:pf.WHITE}};e_({},{light:()=>r_});const r_={root:{padding:"0px 16px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${pf.GREYSCALE_0_15}`,"&$focused":{borderColor:pf.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${pf.MISC_FOCUS_BORDER}`,borderRadius:vf,backgroundColor:pf.GREYSCALE_0_03},"&$expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis"}};e_({},{light:()=>o_});const o_={root:{flex:"0 0 48px",flexDirection:"row",boxShadow:`inset 0 -1px 0 0 ${pf.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:pf.WHITE,color:pf.TEXT_PRIMARY}};e_({},{light:()=>i_});const i_={inputRoot:{boxSizing:"border-box",borderRadius:vf,"&&":{padding:0},"&&& input":{padding:"8px 4px"},"&&& $endAdornment":{right:4}},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:hf,height:"32px",'&[data-focus="true"]':{backgroundColor:pf.GREYSCALE_0_03}},endAdornment:{top:"auto",bottom:"4px",position:"absolute"},popupIndicator:{borderRadius:vf,border:`solid 1px ${pf.GREYSCALE_0_15}`,color:pf.GREYSCALE_0_60,marginRight:0,width:mf,height:mf,"& svg":{fontSize:"0.7em"},"& i":{lineHeight:"1 !important"}},paper:{marginTop:"5px",boxShadow:`0px 2px 4px 0px ${pf.GREYSCALE_0_15}`},clearIndicator:{"& svg":{fontSize:"0.5em",position:"absolute"},color:pf.GREYSCALE_25,width:gf,height:mf,borderRadius:vf,backgroundColor:"unset",marginRight:"4px","&&&&:hover":{backgroundColor:Qx.alpha(pf.GREYSCALE_0,.05)}},popupIndicatorOpen:{backgroundColor:pf.GREYSCALE_0_10}};e_({},{light:()=>a_});const a_={badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}};e_({},{light:()=>l_});const l_={root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:vf,"& > $label > i:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:pf.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${pf.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:pf.GREYSCALE_0_15,backgroundColor:pf.GREYSCALE_100_60,"&:active":{backgroundColor:pf.GREYSCALE_0_10},"&$focusVisible":{borderColor:pf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${pf.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},containedPrimary:{"&:hover":{backgroundColor:pf.GREEN_PALE},"&:active":{backgroundColor:pf.GREEN_DARK},"&$focusVisible":{borderColor:pf.GREEN_PALE,boxShadow:`0 0 0 3px ${Qx.alpha(pf.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:pf.BLUE_PALE},"&:active":{backgroundColor:pf.BLUE_DARK},"&$focusVisible":{borderColor:pf.BLUE_PALE,boxShadow:`0 0 0 3px ${Qx.alpha(pf.BLUE_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > $label > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > $label > i:only-child":{marginLeft:"-10px",marginRight:"-10px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}};e_({},{light:()=>s_});const s_={root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:vf},groupedText:{padding:"8px 16px","&:active":{backgroundColor:pf.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${pf.MISC_FOCUS_BORDER}`}},groupedOutlined:{padding:"7px 16px",borderColor:pf.GREYSCALE_0_15,backgroundColor:pf.GREYSCALE_100_60,"&:active":{backgroundColor:pf.GREYSCALE_0_10},"&$focusVisible":{borderColor:pf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${pf.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:pf.GREEN_PALE},"&:active":{backgroundColor:pf.GREEN_DARK},"&$focusVisible":{borderColor:pf.GREEN_PALE,boxShadow:`0 0 0 3px ${Qx.alpha(pf.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:pf.BLUE_PALE},"&:active":{backgroundColor:pf.BLUE_DARK},"&$focusVisible":{borderColor:pf.BLUE_PALE,boxShadow:`0 0 0 3px ${Qx.alpha(pf.BLUE_PALE,.5)}`}}};e_({},{light:()=>u_});const u_={root:{height:"100%","& $focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:pf.GREYSCALE_0_03,"& $focusHighlight":{opacity:0}},"&:active":{backgroundColor:pf.GREYSCALE_95,boxShadow:"none"},"&$focusVisible":{borderRadius:vf,boxShadow:`inset 0 0 0 2px ${pf.MISC_FOCUS_BORDER}`,"& $focusHighlight":{opacity:0}}}};e_({},{light:()=>c_});const c_={root:{borderWidth:1,"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:3},"&:not($disabled)":{"&:not($checked)":{"&:not($indeterminate)":{"& span":{color:pf.WHITE}}}},"&$disabled":{"& span":{pointerEvents:"auto",cursor:"not-allowed",color:pf.GREYSCALE_0_25}}},colorPrimary:{"&.sprout-focus-visible i":{borderColor:pf.GREEN_PALE,boxShadow:`0 0 0 3px ${Qx.alpha(pf.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible i":{borderColor:pf.BLUE_PALE,boxShadow:`0 0 0 3px ${Qx.alpha(pf.BLUE_PALE,.5)}`}}};e_({},{light:()=>d_});const d_={root:{height:"24px",fontSize:ff,borderRadius:vf,color:pf.TEXT_PRIMARY,backgroundColor:pf.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:pf.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${pf.MISC_FOCUS_BORDER}`},"&$disabled":{backgroundColor:pf.GREYSCALE_0_05,color:pf.GREYSCALE_0_30,border:"none",opacity:1}},outlined:{border:`solid 1px ${pf.GREYSCALE_0_15}`,backgroundColor:pf.GREYSCALE_100_15,"$clickable&:active ":{boxSizing:"border-box",borderRadius:vf,boxShadow:"none",backgroundColor:pf.GREYSCALE_0_10},"& $deleteIconSmall":{height:13,color:"inherit"}},label:{fontFamily:Cf.FONT_FAMILY,lineHeight:"16px"}};e_({},{light:()=>p_});const p_={root:{padding:"8px",backgroundColor:pf.GREYSCALE_98,borderTop:`1px ${pf.GREYSCALE_0_15} solid`}};e_({},{light:()=>f_});const f_={root:{padding:"24px"}};e_({},{light:()=>h_});const h_={root:{marginBottom:0}};e_({},{light:()=>g_});const g_={root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",height:"24px",padding:"12px 8px 12px 24px",fontSize:"16px",lineHeight:"24px",backgroundColor:pf.GREYSCALE_98,borderBottom:`1px ${pf.GREYSCALE_0_15} solid`}};e_({},{light:()=>m_});const m_={middle:{margin:"4px 8px"}};e_({},{light:()=>v_});const v_={root:{marginLeft:"-10px"},label:{fontSize:hf}};e_({},{light:()=>b_});const b_={root:{fontSize:ff,lineHeight:"16px",margin:"4px 0 0 0","&$error":{color:pf.RED}},contained:{marginLeft:0,marginRight:0}};e_({},{light:()=>y_});const y_={root:{color:pf.GREYSCALE_25,fontSize:ff,fontFamily:Cf.FONT_FAMILY,fontWeight:xf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&$focused":{color:pf.TEXT_PRIMARY},"&$error":{color:pf.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:pf.TEXT_SECONDARY,position:"absolute",content:"'(optional)'",fontWeight:yf,marginLeft:"4px"}}},asterisk:{visibility:"hidden",display:"inline-flex","&::after":{visibility:"visible",color:pf.TEXT_SECONDARY,position:"absolute",content:"'(required)'",fontWeight:yf,marginLeft:"4px"}}};e_({},{light:()=>x_});const x_={root:{padding:7,borderRadius:vf,border:"1px solid transparent","&.sprout-focus-visible":{borderColor:pf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${pf.MISC_FOCUS_BORDER}`},"&&&:hover":{backgroundColor:"transparent"}}};e_({},{light:()=>__});const __={root:{padding:"4px 8px",color:pf.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}};e_({},{light:()=>C_});const C_={input:{padding:"8px 12px",lineHeight:"16px"}};e_({},{light:()=>E_});const E_={outlined:{fontSize:`${ff}px`,fontWeight:xf,color:pf.GREYSCALE_25,"&$shrink":{transform:"translate(0px, -8px)",fontWeight:xf}}};e_({},{light:()=>S_});const S_={root:{color:pf.MISC_FOCUS_BORDER}};e_({},{light:()=>w_});const w_={padding:{paddingTop:"0px",paddingBottom:"0px"}};e_({},{light:()=>k_});const k_={root:{minHeight:"32px",fontSize:hf,"&$selected":{backgroundColor:"unset","&:not($disabled)":{"&::after":{content:`url('${Ef}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:pf.RED}}}},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:pf.GREYSCALE_0_03},"&:active":{backgroundColor:pf.GREYSCALE_0_05}}};e_({},{light:()=>R_});const R_={root:{color:pf.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}};e_({},{light:()=>A_});const A_={root:{fontSize:"12px"},primary:{fontSize:hf,color:pf.TEXT_PRIMARY,lineHeight:"16px"},secondary:{fontSize:ff,fontWeight:bf,lineHeight:"16px",color:pf.TEXT_SECONDARY}};e_({},{light:()=>T_});const T_={root:{'&[role="option"]':{color:pf.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:ff,borderBottom:`solid 1px ${pf.GREYSCALE_0_15}`,pointerEvents:"none"}}};e_({},{light:()=>N_});const N_={list:{paddingTop:4,paddingBottom:4},paper:{marginTop:4,marginBottom:4,background:pf.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15)",borderRadius:"2px"}};e_({},{light:()=>O_});const O_={root:{fontSize:hf,height:"32px",'[class*="MuiListSubheader-root"] ~ &[role="option"]':{paddingLeft:"20px"},"& div i":{color:pf.GREYSCALE_25}}};e_({},{light:()=>L_});const L_={root:{fontSize:hf,lineHeight:"16px",backgroundColor:pf.WHITE,borderRadius:vf,"&:not($focused):not($error):not($disabled):hover $notchedOutline":{border:`solid 1px ${pf.GREYSCALE_0_05}`,borderColor:pf.GREYSCALE_0_30},"&$focused:not($error) $notchedOutline":{border:`solid 1px ${pf.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${pf.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${pf.GREYSCALE_0_05}`},"&$focused$error $notchedOutline":{border:`solid 1px ${pf.RED}`,boxShadow:`0px 0px 0px 1px ${pf.RED}, inset 0 2px 0 0 ${pf.GREYSCALE_0_05}`},"&$disabled":{backgroundColor:"transparent"},"&$disabled $notchedOutline":{border:`solid 1px ${pf.GREYSCALE_0_10}`,borderColor:pf.GREYSCALE_0_10,backgroundColor:pf.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:pf.TEXT_PRIMARY,padding:"8px 12px","&$disabled":{opacity:.45}},notchedOutline:{borderColor:pf.GREYSCALE_0_15,borderRadius:vf,boxShadow:`inset 0 2px 0 0 ${pf.GREYSCALE_0_05}`},multiline:{padding:"8px 12px"}};e_({},{light:()=>M_});const M_={day:{"&&&:hover":{backgroundColor:pf.GREYSCALE_0_03}},daySelected:{"&&&:hover":{backgroundColor:pf.GREEN}}};e_({},{light:()=>P_});const P_={paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${pf.GREYSCALE_0_15}, 0px 0px 0px 1px ${pf.GREYSCALE_0_05}`}};e_({},{light:()=>I_});const I_={root:{fill:pf.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${pf.MISC_FOCUS_BORDER}`},"&$checked":{"&$colorPrimary":{"&.sprout-focus-visible i":{borderColor:pf.GREEN_PALE,boxShadow:`0 0 0 3px ${Qx.alpha(pf.GREEN_PALE,.5)}`}},"&$colorSecondary":{"&.sprout-focus-visible i":{borderColor:pf.BLUE_PALE,boxShadow:`0 0 0 3px ${Qx.alpha(pf.BLUE_PALE,.5)}`}},"&$disabled":{color:pf.GREYSCALE_0_20}},"&$disabled":{fill:pf.GREYSCALE_0_20,stroke:"none"}}};e_({},{light:()=>D_});const D_={root:{height:"32px",zIndex:1,borderRadius:"3px !important","& em":{color:pf.TEXT_SECONDARY,WebkitFontSmoothing:"antialiased","&::after":{content:""}},"& ~svg":{position:"absolute",top:"unset",right:"12px"},"&[aria-expanded=true]":{backgroundColor:pf.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:pf.GREYSCALE_0_03},"&:active":{backgroundColor:pf.GREYSCALE_0_10},"&:focus":{backgroundColor:pf.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${pf.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${pf.MISC_FOCUS_BORDER}`},"&$disabled":{opacity:"unset",color:pf.GREYSCALE_0_30,"&:hover":{backgroundColor:pf.GREYSCALE_0_0,borderColor:pf.GREYSCALE_0_15},"& ~svg":{color:pf.GREYSCALE_0_30}}},selectMenu:{height:"14px"},outlined:{border:`solid 1px ${pf.GREYSCALE_0_15}`}};e_({},{light:()=>$_});const $_={root:{color:pf.GREEN,height:"24px","&$disabled":{color:pf.GREYSCALE_0_15}},rail:{backgroundColor:pf.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${pf.GREYSCALE_0_05}`,borderRadius:vf,boxShadow:`inset 0px 0px 0px 1px ${pf.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${pf.GREYSCALE_0_05}`,borderRadius:vf},thumb:{height:"16px",width:"16px",borderRadius:vf,backgroundColor:pf.WHITE,boxShadow:`0px 1px 2px 0px ${pf.GREYSCALE_0_15}, 0px 0px 0px 1px ${pf.GREYSCALE_0_05}`,"&:hover":{borderRadius:vf,boxShadow:`0 2px 4px 0 ${pf.GREYSCALE_0_30}, 0 0 0 1px ${pf.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${pf.GREYSCALE_0_15}, 0 0 0 1px ${pf.GREYSCALE_0_06}, 0 0 0 2px ${pf.MISC_FOCUS_BORDER}`},"&$disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:pf.GREYSCALE_90},"& .bar":{height:"8px",width:"1px",backgroundColor:pf.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:pf.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:pf.GREYSCALE_0_15},markLabel:{color:pf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:pf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},active:{}};e_({},{light:()=>z_});const z_={root:{backgroundColor:pf.WHITE,color:pf.GREYSCALE_25}};e_({},{light:()=>B_});const B_={root:{padding:"10px",width:"60px",height:"40px"},switchBase:{padding:"11px","&$disabled":{"& $thumb":{backgroundColor:pf.GREYSCALE_100_50}},"&$checked + $track":{opacity:1},"&$disabled + $track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + $track":{borderColor:pf.GREEN_PALE,boxShadow:`0 0 0 3px ${Qx.alpha(pf.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + $track":{borderColor:pf.BLUE_PALE,boxShadow:`0 0 0 3px ${Qx.alpha(pf.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:pf.GREYSCALE_0_15,borderRadius:vf},thumb:{height:"16px",width:"16px",borderRadius:vf,backgroundColor:pf.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& $thumb":{height:"12px",width:"12px"},"& $switchBase":{padding:"9px 11px"}}};e_({},{light:()=>F_});const F_={root:{fontSize:hf,fontWeight:xf,textTransform:"none",minWidth:"auto",boxSizing:"border-box","&:hover":{borderBottom:`2px solid ${pf.GREYSCALE_80}`,paddingBottom:"4px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${pf.MISC_FOCUS_BORDER}`,paddingTop:"4px",backgroundColor:pf.GREYSCALE_0_03,borderRadius:vf,minHeight:"44px",paddingBottom:"4px",border:"none"},"&$disabled":{opacity:.3}},textColorPrimary:{color:pf.GREYSCALE_25,"&$selected":{color:pf.GREYSCALE_25}},textColorInherit:{opacity:"unset"},fullWidth:{"&.sprout-focus-visible":{paddingRight:12,paddingLeft:12}},wrapper:{alignItems:"initial"},labelIcon:{minWidth:"40px",minHeight:"48px","&.sprout-focus-visible":{minHeight:"auto",height:"30px",marginTop:9,marginBottom:9,flexDirection:"column",paddingRight:"12px",paddingBottom:"2px"},"& $wrapper":{display:"block"}}};e_({},{light:()=>H_});const H_={root:{borderLeft:`1px solid ${pf.GREYSCALE_85}`}};e_({},{light:()=>j_});const j_={root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${pf.GREYSCALE_85}`,borderRight:`1px solid ${pf.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:xf,backgroundColor:pf.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&$head":{height:"31px"},"&$paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:pf.GREYSCALE_98,borderBottom:`1px solid ${pf.GREYSCALE_85}`}};e_({},{light:()=>G_});const G_={root:{borderBottom:`1px solid ${pf.GREYSCALE_85}`,borderTop:`1px solid ${pf.GREYSCALE_85}`}};e_({},{light:()=>W_});const W_={root:{backgroundColor:pf.GREYSCALE_98}};e_({},{light:()=>Y_});const Y_={hover:{"&$selected":{backgroundColor:pf.GREYSCALE_0_05,"&:hover":{backgroundColor:pf.GREYSCALE_0_03}},"&&:hover":{backgroundColor:pf.GREYSCALE_0_03}}};e_({},{light:()=>K_});const K_={root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&$active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}};e_({},{light:()=>U_});const U_={scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},root:{fontSize:hf,fontWeight:"bold"},indicator:{height:2}};e_({},{light:()=>V_});const V_={root:{height:32,lineHeight:16,width:32,fontSize:hf,borderRadius:vf,padding:"7px 16px",border:`1px solid ${pf.GREYSCALE_0_15}`,backgroundColor:pf.GREYSCALE_100_60,color:pf.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:pf.GREYSCALE_0_10,border:`1px solid ${pf.GREYSCALE_0_30}`},"&:hover":{backgroundColor:pf.GREYSCALE_0_03,border:`1px solid ${pf.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:pf.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${pf.MISC_FOCUS_BORDER}`,border:`1px solid ${pf.MISC_FOCUS_BORDER}`,zIndex:2},"&$selected":{color:pf.GREYSCALE_25,backgroundColor:pf.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:pf.GREYSCALE_0_10,border:`1px solid ${pf.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:ff,height:24,width:24,padding:7},sizeLarge:{fontSize:gf,height:40,width:40,lineHeight:20}};e_({},{light:()=>q_});const q_={root:{height:"32px",lineHeight:"16px",fontSize:hf,borderRadius:vf}};e_({},{light:()=>X_});const X_={root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}};e_({},{light:()=>J_});const J_={arrow:{color:pf.GREYSCALE_20},tooltip:{backgroundColor:pf.GREYSCALE_20,fontSize:ff,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}},Q_=b(((e,t)=>ni.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:ni.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 Z_=Object.defineProperty,eC=Object.getOwnPropertySymbols,tC=Object.prototype.hasOwnProperty,nC=Object.prototype.propertyIsEnumerable,rC=(e,t,n)=>t in e?Z_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oC=(e,t)=>{for(var n in t)Z_(e,n,{get:t[n],enumerable:!0})},iC=(e,t,n)=>(rC(e,"symbol"!=typeof t?t+"":t,n),n);oC({},{DEFAULT_LANGUAGE:()=>lC,DEFAULT_LANGUAGE_SHORT:()=>sC,flattenParams:()=>vC,flattenTranslationsJSON:()=>dC,format:()=>bC,formatWithKeys:()=>yC,getLongLanguageDesc:()=>mC,getShortLanguageDesc:()=>gC,parseLangFromUrl:()=>pC,resolveLocale:()=>hC,updateLangAttribute:()=>xC});var aC=[{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"}],lC="en-US",sC="en",uC=["zh-cn","zh-tw","qps-ploc"],cC=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),dC=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),cC(e)?Object.keys(e).reduce(((t,n)=>{const r=e[n],o=cC(r)&&r.value;return o&&(t[n]=o),t}),{}):{}),pC=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},fC=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(uC.includes(e.toLocaleLowerCase()))return aC.find((({long:e})=>e.toLowerCase()===t));const[n]=t.split("-");return aC.find((({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t))},hC=(...e)=>{for(const t of e){const e=fC(t);if(e)return e.short}},gC=e=>{const t=fC(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${sC}'`),sC)},mC=e=>{const t=fC(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${lC}'`),lC)},vC=e=>Array.isArray(e[0])?e[0]:e,bC=(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))},yC=(e,t)=>e.replace(/(\{)(\w+)(\})/g,((e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e})),xC=e=>{const t=gC(e);document.documentElement.setAttribute("lang",t)},_C={},CC=Array.prototype.slice,EC=function(e){return("0"+e.toString()).substr(-2)},SC=function(e){var t=typeof e;return"function"===t||"object"===t},wC=function(e){return"function"===typeof e},kC=function(e){return null!=e},RC=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},AC=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},TC=function(e){return!0===e||!1===e},NC=function(e){return null===e},OC=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))))},LC=function(e,t){return wC(e)?e(t):e},MC=function(e,t){var n,r,o;for(n in t)t.hasOwnProperty(n)&&(r=t[n],"string"==typeof(o=r)||"[object String]"===Object.prototype.toString.call(o)||AC(r)||TC(r)||RC(r)||NC(r)?e[n]=r:(null==e[n]&&(e[n]={}),MC(e[n],r)));return e},PC={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"]},IC={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},DC={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},$C={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},zC=[null,"kb","mb","gb","tb"],BC={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};_C.reset=function(){var e;for(e in BC)this[e]=BC[e]},_C.initializeOptions=function(){var e;for(e in BC)kC(this[e])||(this[e]=BC[e])},_C.initializeOptions(),_C.locales={},_C.locales.get=function(e){var t=this[e]||this[_C.locale]||this.default;return wC(t)&&(t=t(e)),!1===RC(t)&&(t=[t]),t},_C.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&_C.locale&&t.push(_C.locale),_C.fallbacks&&_C.defaultLocale&&t.push(_C.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),_C.fallbacks&&[r,o].forEach((function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)}))})),t.length||t.push("en"),n},_C.pluralization={},_C.pluralization.get=function(e){return this[e]||this[_C.locale]||this.default},_C.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},_C.currentLocale=function(){return this.locale||this.defaultLocale},_C.isSet=kC,_C.lookup=function(e,t){t=t||{};var n,r,o,i,a=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);a.length;)if(n=a.shift(),r=o.split(t.separator||this.defaultSeparator),i=this.translations[n]){for(;r.length&&null!=(i=i[r.shift()]););if(null!=i)return i}if(kC(t.defaultValue))return LC(t.defaultValue,e)},_C.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&SC(n))for(;i.length;)if(r=i.shift(),kC(n[r])){o=n[r];break}return o},_C.pluralizationLookup=function(e,t,n){n=n||{};var r,o,i,a,l=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);l.length;)if(r=l.shift(),o=t.split(n.separator||this.defaultSeparator),i=this.translations[r]){for(;o.length&&(i=i[o.shift()],SC(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&kC(n.defaultValue)&&(a=SC(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},_C.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:PC.meridian},_C.prepareOptions=function(){for(var e,t=CC.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(kC(n[r])||(n[r]=e[r]));return n},_C.createTranslationOptions=function(e,t){var n=[{scope:e}];return kC(t.defaults)&&(n=n.concat(t.defaults)),kC(t.defaultValue)&&n.push({message:t.defaultValue}),n},_C.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(kC(t.scope)?(o=t.scope,n=this.lookup(o,i)):kC(t.message)&&(n=LC(t.message,e)),null!=n)return!0}),this)?("string"==typeof n?n=this.interpolate(n,t):RC(n)?n=n.map((function(e){return"string"==typeof e?this.interpolate(e,t):e}),this):SC(n)&&kC(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},_C.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,a=e.match(this.placeholder);if(!a)return e;for(;a.length;)o=(n=a.shift()).replace(this.placeholder,"$1"),r=kC(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,"$")},_C.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))},_C.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]'},_C.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},_C.nullPlaceholder=function(){return _C.missingPlaceholder.apply(_C,arguments)},_C.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),IC);var n,r,o=e<0,i=function(e,t){return OC("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString(),a=i.split("."),l=[],s=t.format||"%n",u=o?"-":"";for(e=a[0],n=a[1];e.length>0;)l.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return r=l.join(t.delimiter),t.strip_insignificant_zeros&&n&&(n=n.replace(/0+$/,"")),t.precision>0&&n&&(r+=t.separator+n),r=(s=t.sign_first?"%s"+s:s.replace("%n","%s%n")).replace("%u",t.unit).replace("%n",r).replace("%s",u)},_C.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),DC),this.toNumber(e,t)},_C.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)}},_C.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},_C.strftime=function(e,t,n){n=this.lookup("date",n);var r=_C.meridian();if(n||(n={}),n=this.prepareOptions(n,PC),isNaN(e.getTime()))throw new Error("I18n.strftime() requires a valid date object, but received an invalid date.");var o=e.getDay(),i=e.getDate(),a=e.getFullYear(),l=e.getMonth()+1,s=e.getHours(),u=s,c=s>11?1:0,d=e.getSeconds(),p=e.getMinutes(),f=e.getTimezoneOffset(),h=Math.floor(Math.abs(f/60)),g=Math.abs(f)-60*h,m=(f>0?"-":"+")+(h.toString().length<2?"0"+h:h)+(g.toString().length<2?"0"+g:g);return u>12?u-=12:0===u&&(u=12),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",n.abbr_day_names[o])).replace("%A",n.day_names[o])).replace("%b",n.abbr_month_names[l])).replace("%B",n.month_names[l])).replace("%d",EC(i))).replace("%e",i)).replace("%-d",i)).replace("%H",EC(s))).replace("%-H",s)).replace("%k",s)).replace("%I",EC(u))).replace("%-I",u)).replace("%l",u)).replace("%m",EC(l))).replace("%-m",l)).replace("%M",EC(p))).replace("%-M",p)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",EC(d))).replace("%-S",d)).replace("%w",o)).replace("%y",EC(a))).replace("%-y",EC(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",m)).replace("%Z",m)},_C.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},_C.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),$C),this.toNumber(e,t)},_C.toHumanSize=function(e,t){for(var n,r,o,i=e,a=0;i>=1024&&a<4;)i/=1024,a+=1;return 0===a?(o=this.getFullScope("number.human.storage_units.units.byte",t),n=this.t(o,{count:i}),r=0):(o=this.getFullScope("number.human.storage_units.units."+zC[a],t),n=this.t(o),r=i-Math.floor(i)==0?0:1),t=this.prepareOptions(t,{unit:n,precision:r,format:"%n%u",delimiter:""}),this.toNumber(i,t)},_C.getFullScope=function(e,t){return t=t||{},RC(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},_C.extend=function(e,t){return void 0===e&&void 0===t?{}:MC(e,t)},_C.t=_C.translate.bind(_C),_C.l=_C.localize.bind(_C),_C.p=_C.pluralize.bind(_C);var FC={};oC(FC,{af:()=>UC,ak:()=>VC,am:()=>qC,an:()=>XC,ar:()=>JC,ars:()=>QC,as:()=>ZC,asa:()=>eE,ast:()=>tE,az:()=>nE,bal:()=>rE,be:()=>oE,bem:()=>iE,bez:()=>aE,bg:()=>lE,bho:()=>sE,bm:()=>uE,bn:()=>cE,bo:()=>dE,br:()=>pE,brx:()=>fE,bs:()=>hE,ca:()=>gE,ce:()=>mE,ceb:()=>vE,cgg:()=>bE,chr:()=>yE,ckb:()=>xE,cs:()=>_E,cy:()=>CE,da:()=>EE,de:()=>SE,doi:()=>wE,dsb:()=>kE,dv:()=>RE,dz:()=>AE,ee:()=>TE,el:()=>NE,en:()=>OE,eo:()=>LE,es:()=>ME,et:()=>PE,eu:()=>IE,fa:()=>DE,ff:()=>$E,fi:()=>zE,fil:()=>BE,fo:()=>FE,fr:()=>HE,fur:()=>jE,fy:()=>GE,ga:()=>WE,gd:()=>YE,gl:()=>KE,gsw:()=>UE,gu:()=>VE,guw:()=>qE,gv:()=>XE,ha:()=>JE,haw:()=>QE,he:()=>ZE,hi:()=>eS,hnj:()=>tS,hr:()=>nS,hsb:()=>rS,hu:()=>oS,hy:()=>iS,ia:()=>aS,id:()=>lS,ig:()=>sS,ii:()=>uS,io:()=>cS,is:()=>dS,it:()=>pS,iu:()=>fS,ja:()=>hS,jbo:()=>gS,jgo:()=>mS,jmc:()=>vS,jv:()=>bS,jw:()=>yS,ka:()=>xS,kab:()=>_S,kaj:()=>CS,kcg:()=>ES,kde:()=>SS,kea:()=>wS,kk:()=>kS,kkj:()=>RS,kl:()=>AS,km:()=>TS,kn:()=>NS,ko:()=>OS,ks:()=>LS,ksb:()=>MS,ksh:()=>PS,ku:()=>IS,kw:()=>DS,ky:()=>$S,lag:()=>zS,lb:()=>BS,lg:()=>FS,lij:()=>HS,lkt:()=>jS,ln:()=>GS,lo:()=>WS,lt:()=>YS,lv:()=>KS,mas:()=>US,mg:()=>VS,mgo:()=>qS,mk:()=>XS,ml:()=>JS,mn:()=>QS,mo:()=>ZS,mr:()=>ew,ms:()=>tw,mt:()=>nw,my:()=>rw,nah:()=>ow,naq:()=>iw,nb:()=>aw,nd:()=>lw,ne:()=>sw,nl:()=>uw,nn:()=>cw,nnh:()=>dw,no:()=>pw,nqo:()=>fw,nr:()=>hw,nso:()=>gw,ny:()=>mw,nyn:()=>vw,om:()=>bw,or:()=>yw,os:()=>xw,osa:()=>_w,pa:()=>Cw,pap:()=>Ew,pcm:()=>Sw,pl:()=>ww,prg:()=>kw,ps:()=>Rw,pt:()=>Aw,pt_PT:()=>Tw,rm:()=>Nw,ro:()=>Ow,rof:()=>Lw,ru:()=>Mw,rwk:()=>Pw,sah:()=>Iw,saq:()=>Dw,sat:()=>$w,sc:()=>zw,scn:()=>Bw,sd:()=>Fw,sdh:()=>Hw,se:()=>jw,seh:()=>Gw,ses:()=>Ww,sg:()=>Yw,sh:()=>Kw,shi:()=>Uw,si:()=>Vw,sk:()=>qw,sl:()=>Xw,sma:()=>Jw,smi:()=>Qw,smj:()=>Zw,smn:()=>ek,sms:()=>tk,sn:()=>nk,so:()=>rk,sq:()=>ok,sr:()=>ik,ss:()=>ak,ssy:()=>lk,st:()=>sk,su:()=>uk,sv:()=>ck,sw:()=>dk,syr:()=>pk,ta:()=>fk,te:()=>hk,teo:()=>gk,th:()=>mk,ti:()=>vk,tig:()=>bk,tk:()=>yk,tl:()=>xk,tn:()=>_k,to:()=>Ck,tpi:()=>Ek,tr:()=>Sk,ts:()=>wk,tzm:()=>kk,ug:()=>Rk,uk:()=>Ak,und:()=>Tk,ur:()=>Nk,uz:()=>Ok,ve:()=>Lk,vec:()=>Mk,vi:()=>Pk,vo:()=>Ik,vun:()=>Dk,wa:()=>$k,wae:()=>zk,wo:()=>Bk,xh:()=>Fk,xog:()=>Hk,yi:()=>jk,yo:()=>Gk,yue:()=>Wk,zh:()=>Yk,zu:()=>Kk});var HC=(e,t)=>t?"other":1==e?"one":"other",jC=(e,t)=>t?"other":0==e||1==e?"one":"other",GC=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",WC=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},YC=(e,t)=>"other",KC=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",UC=HC,VC=jC,qC=GC,XC=HC,JC=(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"},QC=(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"},ZC=(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",eE=HC,tE=WC,nE=(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"},rE=(e,t)=>1==e?"one":"other",oE=(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"},iE=HC,aE=HC,lE=HC,sE=jC,uE=YC,cE=(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",dE=YC,pE=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return t?"other":1==o&&11!=i&&71!=i&&91!=i?"one":2==o&&12!=i&&72!=i&&92!=i?"two":(3==o||4==o||9==o)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&r&&0==a?"many":"other"},fE=HC,hE=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},gE=(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"},mE=HC,vE=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=l&&6!=l&&9!=l?"one":"other"},bE=HC,yE=HC,xE=HC,_E=(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"},CE=(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",EE=(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"},SE=WC,wE=GC,kE=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),l=o.slice(-2);return t?"other":i&&1==a||1==l?"one":i&&2==a||2==l?"two":i&&(3==a||4==a)||3==l||4==l?"few":"other"},RE=HC,AE=YC,TE=HC,NE=HC,OE=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},LE=HC,ME=(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"},PE=WC,IE=HC,DE=GC,$E=(e,t)=>t?"other":e>=0&&e<2?"one":"other",zE=WC,BE=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=l&&6!=l&&9!=l?"one":"other"},FE=HC,HE=(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"},jE=HC,GE=WC,WE=(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"},YE=(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"},KE=WC,UE=HC,VE=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",qE=jC,XE=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?o?"other":"many":"few"},JE=HC,QE=HC,ZE=(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"},eS=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",tS=YC,nS=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},rS=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),l=o.slice(-2);return t?"other":i&&1==a||1==l?"one":i&&2==a||2==l?"two":i&&(3==a||4==a)||3==l||4==l?"few":"other"},oS=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",iS=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",aS=WC,lS=YC,sS=YC,uS=YC,cS=WC,dS=(e,t)=>{const n=String(e).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==e,a=r.slice(-1),l=r.slice(-2);return t?"other":i&&1==a&&11!=l||o%10==1&&o%100!=11?"one":"other"},pS=(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"},fS=KC,hS=YC,gS=YC,mS=HC,vS=HC,bS=YC,yS=YC,xS=(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"},_S=(e,t)=>t?"other":e>=0&&e<2?"one":"other",CS=HC,ES=HC,SS=YC,wS=YC,kS=(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"},RS=HC,AS=HC,TS=YC,NS=GC,OS=YC,LS=HC,MS=HC,PS=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",IS=HC,DS=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),a=r&&n[0].slice(-5),l=r&&n[0].slice(-6);return t?r&&e>=1&&e<=4||o>=1&&o<=4||o>=21&&o<=24||o>=41&&o<=44||o>=61&&o<=64||o>=81&&o<=84?"one":5==e||5==o?"many":"other":0==e?"zero":1==e?"one":2==o||22==o||42==o||62==o||82==o||r&&0==i&&(a>=1e3&&a<=2e4||4e4==a||6e4==a||8e4==a)||0!=e&&1e5==l?"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"},$S=HC,zS=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},BS=HC,FS=HC,HS=(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"},jS=YC,GS=jC,WS=(e,t)=>t&&1==e?"one":"other",YS=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?"other":1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},KS=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||l>=11&&l<=19||2==o&&s>=11&&s<=19?"zero":1==a&&11!=l||2==o&&1==u&&11!=s||2!=o&&1==u?"one":"other"},US=HC,VS=jC,qS=HC,XS=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?1==a&&11!=l?"one":2==a&&12!=l?"two":7!=a&&8!=a||17==l||18==l?"other":"many":i&&1==a&&11!=l||1==s&&11!=u?"one":"other"},JS=HC,QS=HC,ZS=(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"},ew=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",tw=(e,t)=>t&&1==e?"one":"other",nw=(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"},rw=YC,ow=HC,iw=KC,aw=HC,lw=HC,sw=(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"},uw=WC,cw=HC,dw=HC,pw=HC,fw=YC,hw=HC,gw=jC,mw=HC,vw=HC,bw=HC,yw=(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"},xw=HC,_w=YC,Cw=jC,Ew=HC,Sw=GC,ww=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"},kw=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||l>=11&&l<=19||2==o&&s>=11&&s<=19?"zero":1==a&&11!=l||2==o&&1==u&&11!=s||2!=o&&1==u?"one":"other"},Rw=HC,Aw=(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"},Tw=(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"},Nw=HC,Ow=(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"},Lw=HC,Mw=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i&&11!=a?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"},Pw=HC,Iw=YC,Dw=HC,$w=KC,zw=(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"},Bw=(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"},Fw=HC,Hw=HC,jw=KC,Gw=HC,Ww=YC,Yw=YC,Kw=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},Uw=(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"},Vw=(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"},qw=(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"},Xw=(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"},Jw=KC,Qw=KC,Zw=KC,ek=KC,tk=KC,nk=HC,rk=HC,ok=(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"},ik=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},ak=HC,lk=HC,sk=HC,uk=YC,ck=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1!=i&&2!=i||11==a||12==a?"other":"one":1==e&&r?"one":"other"},dk=WC,pk=HC,fk=HC,hk=HC,gk=HC,mk=YC,vk=jC,bk=HC,yk=(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"},xk=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=l&&6!=l&&9!=l?"one":"other"},_k=HC,Ck=YC,Ek=YC,Sk=HC,wk=HC,kk=(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"},Rk=HC,Ak=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,a=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-1),u=r.slice(-2);return t?3==a&&13!=l?"few":"other":o&&1==s&&11!=u?"one":o&&s>=2&&s<=4&&(u<12||u>14)?"few":o&&0==s||o&&s>=5&&s<=9||o&&u>=11&&u<=14?"many":"other"},Tk=YC,Nk=WC,Ok=HC,Lk=HC,Mk=(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"},Pk=(e,t)=>t&&1==e?"one":"other",Ik=HC,Dk=HC,$k=jC,zk=HC,Bk=YC,Fk=HC,Hk=HC,jk=WC,Gk=YC,Wk=YC,Yk=YC,Kk=GC,Uk=class e{static configure(t,n=lC){e.translations=t,e.language=mC(n),e.languageShort=gC(n),xC(e.language),e.onTranslationsChangeListeners.forEach((e=>e())),e.i18nProvider=_C,_C.missingTranslation=e=>e,_C.defaultSeparator=null,_C.locale=e.language,_C.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];_C.pluralization[e.language]=e=>{try{const t=FC[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=yC(o,n)),o}static getPlural(t,n,r){return e.i18nProvider.t(t,((e,t)=>{for(var n in t||(t={}))tC.call(t,n)&&rC(e,n,t[n]);if(eC)for(var n of eC(t))nC.call(t,n)&&rC(e,n,t[n]);return e})({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))}}};iC(Uk,"translations",{}),iC(Uk,"translationsPlurals",{}),iC(Uk,"language"),iC(Uk,"languageShort"),iC(Uk,"onTranslationsChangeListeners",[]),iC(Uk,"i18nProvider"),iC(Uk,"get",((e,...t)=>{var n;const r=vC(t);let o=null!=(n=Uk.translations[e])?n:e;return r.length>0&&(o=bC(o,...r)),o}));var Vk=Uk;var qk,Xk,Jk,Qk=function(){const[e,t]=E(0);return S((()=>{const n=Vk.onTranslationsChange((()=>{t(e+1)}));return()=>{n()}}),[]),Vk.get},Zk=Vk,eR={};var tR,nR,rR,oR=function(){if(Jk)return Xk;Jk=1;const e=function(){if(qk)return eR;qk=1;var e=Ce(),t=m;return eR.AutoFocusPlugin=function({defaultSelection:n}){let[r]=e.useLexicalComposerContext();return t.useEffect((()=>{r.focus((()=>{let e=document.activeElement,t=r.getRootElement();null===t||null!==e&&t.contains(e)||t.focus({preventScroll:!0})}),{defaultSelection:n})}),[n,r]),null},eR}();return Xk=e}(),iR={};var aR,lR,sR,uR,cR=function(){if(rR)return nR;rR=1;const e=function(){if(tR)return iR;tR=1;var e=Ce(),t=m;function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}var r="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;return iR.ContentEditable=function({ariaActiveDescendant:o,ariaAutoComplete:i,ariaControls:a,ariaDescribedBy:l,ariaExpanded:s,ariaLabel:u,ariaLabelledBy:c,ariaMultiline:d,ariaOwns:p,ariaRequired:f,autoCapitalize:h,className:g,id:m,role:v="textbox",spellCheck:b=!0,style:y,tabIndex:x,"data-testid":_,...C}){let[E]=e.useLexicalComposerContext(),[S,w]=t.useState(!1),k=t.useCallback((e=>{E.setRootElement(e)}),[E]);return r((()=>(w(E.isEditable()),E.registerEditableListener((e=>{w(e)})))),[E]),t.createElement("div",n({},C,{"aria-activedescendant":S?o:void 0,"aria-autocomplete":S?i:"none","aria-controls":S?a:void 0,"aria-describedby":l,"aria-expanded":S&&"combobox"===v?!!s:void 0,"aria-label":u,"aria-labelledby":c,"aria-multiline":d,"aria-owns":S?p:void 0,"aria-readonly":!S||void 0,"aria-required":f,autoCapitalize:h,className:g,contentEditable:S,"data-testid":_,id:m,ref:k,role:v,spellCheck:b,style:y,tabIndex:x}))},iR}();return nR=e}();function dR(){if(lR)return aR;lR=1;var e=m;function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}var n={error:null},r=function(r){function o(){for(var e,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=r.call.apply(r,[this].concat(o))||this).state=n,e.resetErrorBoundary=function(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];null==e.props.onReset||(t=e.props).onReset.apply(t,r),e.reset()},e}!function(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,t(e,n)}(o,r),o.getDerivedStateFromError=function(e){return{error:e}};var i=o.prototype;return i.reset=function(){this.setState(n)},i.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},i.componentDidUpdate=function(e,t){var n,r,o=this.props.resetKeys;null!==this.state.error&&null!==t.error&&function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))}(e.resetKeys,o)&&(null==(n=(r=this.props).onResetKeysChange)||n.call(r,e.resetKeys,o),this.reset())},i.render=function(){var t=this.state.error,n=this.props,r=n.fallbackRender,o=n.FallbackComponent;if(n=n.fallback,null!==t){if(t={error:t,resetErrorBoundary:this.resetErrorBoundary},e.isValidElement(n))return n;if("function"==typeof r)return r(t);if(o)return e.createElement(o,t);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},o}(e.Component);return aR=function({children:t,onError:n}){return e.createElement(r,{fallback:e.createElement("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"}},"An error was thrown."),onError:n},t)},aR}var pR,fR,hR,gR=N(function(){if(uR)return sR;uR=1;const e=dR();return sR=e}()),mR={},vR={};function bR(){if(hR)return fR;hR=1;const e=function(){if(pR)return vR;pR=1;var e=ee();function t(e,t=!0){return!e&&(e=n(),t&&(e=e.trim()),""===e)}function n(){return e.$getRoot().getTextContent()}function r(n){if(!t(n,!1))return!1;let r=(n=e.$getRoot().getChildren()).length;if(1<r)return!1;for(let t=0;t<r;t++){var o=n[t];if(e.$isDecoratorNode(o))return!1;if(e.$isElementNode(o)){if(!e.$isParagraphNode(o)||0!==o.__indent)return!1;let n=(o=o.getChildren()).length;for(let r=0;r<n;r++)if(!e.$isTextNode(o[t]))return!1}}return!0}return vR.$canShowPlaceholder=r,vR.$canShowPlaceholderCurry=function(e){return()=>r(e)},vR.$findTextIntersectionFromCharacters=function(t,n){var r=t.getFirstChild();t=0;e:for(;null!==r;){if(e.$isElementNode(r)){var o=r.getFirstChild();if(null!==o){r=o;continue}}else if(e.$isTextNode(r)){if(t+(o=r.getTextContentSize())>n)return{node:r,offset:n-t};t+=o}if(null===(o=r.getNextSibling())){for(r=r.getParent();null!==r;){if(null!==(o=r.getNextSibling())){r=o;continue e}r=r.getParent()}break}r=o}return null},vR.$isRootTextContentEmpty=t,vR.$isRootTextContentEmptyCurry=function(e,n){return()=>t(e,n)},vR.$rootTextContent=n,vR.registerLexicalTextEntity=function(t,n,r,o){let i=t=>{const n=e.$createTextNode(t.getTextContent());n.setFormat(t.getFormat()),t.replace(n)},a=t.registerNodeTransform(e.TextNode,(t=>{if(t.isSimpleText()){var a=t.getPreviousSibling(),l=t.getTextContent(),s=t;if(e.$isTextNode(a)){var u=a.getTextContent(),c=n(u+l);if(a instanceof r){if(null===c||0!==a.getLatest().__mode)return void i(a);if(0<(c=c.end-u.length))return s=u+(s=l.slice(0,c)),a.select(),a.setTextContent(s),void(c===l.length?t.remove():(a=l.slice(c),t.setTextContent(a)))}else if(null===c||c.start<u.length)return}for(;;){if(l=c=null===(t=n(l))?"":l.slice(t.end),""===c){if(u=s.getNextSibling(),e.$isTextNode(u)){if(c=s.getTextContent()+u.getTextContent(),null===(c=n(c))){u instanceof r?i(u):u.markDirty();break}if(0!==c.start)break}}else if(null!==(u=n(c))&&0===u.start)break;if(null===t)break;if(0===t.start&&e.$isTextNode(a)&&a.isTextEntity())continue;let d;if(0===t.start?[d,s]=s.splitText(t.end):[,d,s]=s.splitText(t.start,t.end),(t=o(d)).setFormat(d.getFormat()),d.replace(t),null==s)break}}}));return t=t.registerNodeTransform(r,(t=>{var o=t.getTextContent();const a=n(o);null===a||0!==a.start?i(t):o.length>a.end?t.splitText(a.end):(o=t.getPreviousSibling(),e.$isTextNode(o)&&o.isTextEntity()&&(i(o),i(t)),o=t.getNextSibling(),e.$isTextNode(o)&&o.isTextEntity()&&(i(o),t instanceof r&&i(t)))})),[a,t]},vR}();return fR=e}var yR,xR,_R,CR,ER,SR,wR={};function kR(){if(_R)return xR;_R=1;const e=function(){if(yR)return wR;yR=1;var e=ee();return wR.registerDragonSupport=function(t){let n=window.location.origin,r=r=>{if(r.origin===n){var o=t.getRootElement();if(document.activeElement===o&&"string"==typeof(o=r.data)){try{var i=JSON.parse(o)}catch(e){return}if(i&&"nuanria_messaging"===i.protocol&&"request"===i.type&&(i=i.payload)&&"makeChanges"===i.functionId&&(i=i.args)){const[n,o,a,l,s]=i;t.update((()=>{const t=e.$getSelection();if(e.$isRangeSelection(t)){var i=t.anchor;let u=i.getNode(),c=0,d=0;e.$isTextNode(u)&&0<=n&&0<=o&&(c=n,d=n+o,t.setTextNodeRange(u,c,u,d)),c===d&&""===a||(t.insertRawText(a),u=i.getNode()),e.$isTextNode(u)&&(c=l,d=l+s,c=c>(i=u.getTextContentSize())?i:c,d=d>i?i:d,t.setTextNodeRange(u,c,u,d)),r.stopImmediatePropagation()}}))}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}},wR}();return xR=e}function RR(){if(CR)return mR;CR=1;var e=Ce(),t=Et(),n=m,r=bR(),o=re(),i=f,a=kR(),l=ut(),s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function u(e){return e.getEditorState().read(r.$canShowPlaceholderCurry(e.isComposing()))}function c({content:r}){var[i]=e.useLexicalComposerContext();i=function(e){let[t,r]=n.useState((()=>u(e)));return s((()=>{function t(){let t=u(e);r(t)}return t(),o.mergeRegister(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(i);let a=t();return i?"function"==typeof r?r(a):r:null}return mR.RichTextPlugin=function({contentEditable:t,placeholder:r,ErrorBoundary:u}){let[d]=e.useLexicalComposerContext();return u=function(e,t){let[r,o]=n.useState((()=>e.getDecorators()));return s((()=>e.registerDecoratorListener((e=>{i.flushSync((()=>{o(e)}))}))),[e]),n.useEffect((()=>{o(e.getDecorators())}),[e]),n.useMemo((()=>{let o=[],a=Object.keys(r);for(let l=0;l<a.length;l++){let s=a[l],u=n.createElement(t,{onError:t=>e._onError(t)},n.createElement(n.Suspense,{fallback:null},r[s])),c=e.getElementByKey(s);null!==c&&o.push(i.createPortal(u,c,s))}return o}),[t,r,e])}(d,u),function(e){s((()=>o.mergeRegister(l.registerRichText(e),a.registerDragonSupport(e))),[e])}(d),n.createElement(n.Fragment,null,t,n.createElement(c,{content:r}),u)},mR}var AR=function(){if(SR)return ER;SR=1;const e=RR();return ER=e}();const TR=b(((e,t)=>ni.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:ni.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"})}))),NR=b(((e,t)=>ni.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:[ni.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),ni.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}))),OR=b(((e,t)=>ni.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:ni.jsx("path",{d:"M0 1h15v2H0zm13 4v2H0V5zM0 11V9h16v2zm0 4v-2h10v2z"})}))),LR=b(((e,t)=>ni.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:ni.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}))),MR=b(((e,t)=>ni.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:ni.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}))),PR=b(((e,t)=>ni.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:ni.jsx("path",{d:"M1.5 10a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m13.75.75a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 1 1 0-1.5zM1.5 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m13.75.75a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1 0-1.5z"})}))),IR=b(((e,t)=>ni.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:ni.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"})}))),DR=b(((e,t)=>ni.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:ni.jsx("path",{d:"M2.05 9q.371 0 .72.09.349.088.623.275.273.185.436.467t.163.66a1.38 1.38 0 0 1-.284.86q-.133.179-.304.334l-.173.154-.18.152-1.245 1.004H4V14H.114v-.963l2.095-1.72.123-.115q.114-.116.196-.235a.7.7 0 0 0 .121-.399.54.54 0 0 0-.182-.423q-.183-.162-.486-.162a.7.7 0 0 0-.52.203.83.83 0 0 0-.217.406l-.022.127L0 10.57l.031-.181q.06-.264.193-.48.179-.29.452-.492a2 2 0 0 1 .626-.31q.352-.105.747-.106m13.2 1.75a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5zM3 2v5H1.698V3.328l-1.024.72L0 3.208 1.806 2zm12.25 1.75a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5z"})}))),$R=b(((e,t)=>ni.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:ni.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"})}))),zR=b(((e,t)=>ni.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:[ni.jsx("path",{d:"M9.034 14.99V15H3V1h6.034v.034Q9.246 1 9.466 1c1.666 0 3.017 1.522 3.017 3.4 0 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.9q-.13 0-.259-.01M5.586 3.5v3.2h2.71a1.6 1.6 0 1 0 0-3.2zm0 5.5v3.8H8.86a1.9 1.9 0 0 0 0-3.8z"}),ni.jsx("use",{fillRule:"evenodd"})]}))),BR=b(((e,t)=>ni.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:ni.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"})}))),FR=b(((e,t)=>ni.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:ni.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"})}))),HR=b(((e,t)=>ni.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:ni.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"})}))),jR=b(((e,t)=>ni.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:ni.jsx("path",{d:"m10.927 1.255-3.886 13.6A.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.255"})}))),GR=b(((e,t)=>ni.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:ni.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"})}))),WR=b(((e,t)=>ni.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:ni.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"})}))),YR=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,KR=[e=>{const t=YR.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"}}},xt.createLinkMatcherWithRegExp(/(([^<>()[\]\\.,;:\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 UR(){return v.createElement(xt.AutoLinkPlugin,{matchers:KR})}const VR=()=>{const[e]=_t.useLexicalComposerContext(),t=St(),n=k((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 S((()=>wt.mergeRegister(e.registerMutationListener(se.LinkNode,(e=>{n(e)})),e.registerMutationListener(se.AutoLinkNode,(e=>{n(e)})),e.registerCommand(kt.CLICK_COMMAND,(t=>(t.metaKey&&t.target&&e.getEditorState().read((()=>{const e=kt.$getSelection();let t;if(kt.$isRangeSelection(e)&&(t=e.focus.getNode().getParent()),kt.$isNodeSelection(e)&&(t=e.getNodes()[0]),se.$isAutoLinkNode(t)||se.$isLinkNode(t)){const e=t.getURL();setTimeout((()=>{const t=window.open(e,"_blank");null==t||t.focus()}),0)}})),!1)),kt.COMMAND_PRIORITY_EDITOR))),[e,n]),null};function qR(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?Rt.$isAtNodeEnd(n)?r:o:Rt.$isAtNodeEnd(t)?r:o}const XR=new Set(["http:","https:","mailto:","sms:","tel:"]),JR=e=>{const t=e;return t.password="",t.username="",t};function QR(e){try{const t=new URL(e);return XR.has(t.protocol)?{url:JR(t).toString(),target:"_blank"}:{url:"about:blank"}}catch(t){return{url:e,target:"_blank"}}}const ZR=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function eA(e){return"https://"===e||ZR.test(e)}const tA=ou(yp)((({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)}))),nA=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=w(null),[a,l]=E(t);S((()=>{l(t)}),[t]);const s=k((()=>{n(a),window.open(QR(a).url,"_blank"),r()}),[a,r,n]),u=k((e=>{e.preventDefault(),e.stopPropagation(),n(a)}),[a,n]),c=k((e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))}),[a,n]),d=k((e=>{e.preventDefault(),l(e.currentTarget.value)}),[]);return m.createElement(Dd,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:1},transition:!0},(({TransitionProps:e})=>m.createElement(Sp,{...e},m.createElement(Nu,{className:"tekPopperMenu"},m.createElement(tA,{direction:"row"},m.createElement(Jd,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),m.createElement(Zu,{onClick:s},m.createElement(of,null)),m.createElement(Zu,{onClick:u},m.createElement(af,null)))))))},rA=()=>{const[e]=_t.useLexicalComposerContext(),t=St(),[n,r]=E(null),[o,i]=E(""),a=w(!1),l=k((()=>{if(a.current)return a.current=!1,!1;const t=kt.$getSelection();if(kt.$isRangeSelection(t)){const n=qR(t),o=n.getParent();if(se.$isAutoLinkNode(o)||se.$isAutoLinkNode(n))return r(null),i(""),!1;let a;if(se.$isLinkNode(o)&&(a=o),se.$isLinkNode(n)&&(a=n),se.$isLinkNode(a)){const t=e.getElementByKey(null==a?void 0:a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1}),[e]),s=k((t=>{a.current=!0,e.update((()=>{e.dispatchCommand(se.TOGGLE_LINK_COMMAND,QR(t))}),{onUpdate:()=>{r(null)}})}),[e]),u=k((()=>{r(null)}),[]);return S((()=>wt.mergeRegister(e.registerCommand(kt.SELECTION_CHANGE_COMMAND,(()=>l()),kt.COMMAND_PRIORITY_LOW),e.registerCommand(kt.CLICK_COMMAND,(()=>l()),kt.COMMAND_PRIORITY_LOW))),[e,l]),t?m.createElement(nA,{anchorEl:n,link:o,onChanged:s,onOpened:u}):null};function oA(){return v.createElement(df.LinkPlugin,{validateUrl:eA})}!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 iA=({children:e})=>m.createElement(au,{theme:zf()},e),aA={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"}},nodes:[ft.HeadingNode,ft.QuoteNode,be.ListNode,be.ListItemNode,se.LinkNode,se.AutoLinkNode],onError:e=>{console.log(e)}},lA=({children:e,initialConfig:t,flags:n})=>m.createElement(iA,null,m.createElement("div",{className:"tek__editor__Wrapper"},m.createElement(Ne.LexicalComposer,{initialConfig:t||aA},m.createElement("div",{className:"tek__editor__container"+((null==n?void 0:n.isEnabled("QB_26358_SN_TEXT_SCROLLBAR"))?" tek__editor__container__scrollbar":"")},e,m.createElement(We.ListPlugin,null),m.createElement(nt.TabIndentationPlugin,null),m.createElement(oA,null),m.createElement(UR,null),m.createElement(rA,null),m.createElement(VR,null),m.createElement(ze.HistoryPlugin,null)))));let sA=class e extends kt.ElementNode{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 uA=e=>new sA(e),cA=e=>e instanceof sA;let dA=class e extends kt.ElementNode{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{!0===e.__needsUpdate&&(this.getWritable().__needsUpdate=!1)}catch(e){}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 pA(e){return e instanceof dA}let fA=class e extends kt.ElementNode{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 hA(e){return e instanceof fA}const gA=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),cA(t))return t;return null},mA=e=>{let t=e;for(;null!==t;){if(pA(t))return t;t=null==t?void 0:t.getParent()}return null},vA=(e,t)=>{const n=mA(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},bA=e=>null==e?void 0:e.getChildAtIndex(2),yA=e=>{const t=e.getParent();if(hA(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},xA=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,_A=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},CA=e=>{if(!e)return[];return e.getChildren().filter((e=>hA(e)))},EA=e=>{let t=!1;return CA(e).forEach((e=>{e.getChildren().forEach((e=>{const n=e;n.clear(),n.append(kt.$createParagraphNode()),t=!0}))})),t},SA=e=>{var t;const n=kt.$getSelection();if(kt.$isRangeSelection(n)||kt.$isNodeSelection(n)){const r=n.getNodes().filter((e=>cA(e)));if(r.length>0){e.preventDefault(),e.stopPropagation();const o=n.getNodes().some((e=>pA(e))),i=mA(r[0]),a=CA(i);if((null===(t=a[0])||void 0===t?void 0:t.getChildren()).length*a.length===r.length&&o)return null==i||i.selectPrevious(),null==i||i.remove(),!1;if(kt.$isRangeSelection(n)){const e=n.focus.getNode();if(pA(e))return EA(e)}return r.forEach((e=>{e.clear(),e.append(kt.$createParagraphNode())})),(()=>{const e=kt.$getSelection();let t=!1;if(kt.$isRangeSelection(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=mA(n);!o&&pA(r)&&(o=r),pA(o)&&(t=EA(o))}return t})()}if(kt.$isRangeSelection(n)){const e=n.focus.getNode();if(pA(e))return EA(e)}}return!1},wA=e=>{if(e){const t=mA(e);if(pA(t)){const n=e.getParent(),r=CA(t).findIndex((e=>e===n));return{i:r,j:null==n?void 0:n.getChildren().findIndex((t=>t===e)),tableNode:t,row:n}}}return{i:0,j:0,tableNode:null,row:null}},kA=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),cA(t))return t;return null},RA=e=>{const t=[];return CA(e).forEach((e=>{const n=e.getChildren();t.push(...n)})),t},AA=(e,t)=>{RA(e).forEach((e=>{const n=t.getElementByKey(e.getKey());null==n||n.classList.add("tek__tekCellHighlight")}))},TA=kt.createCommand("UPDATE_COL_WIDTHS_COMMAND"),NA=kt.createCommand("BEGIN_COL_RESIZE"),OA=kt.createCommand("END_COL_RESIZE"),LA=kt.createCommand("INSERT_TEK_TABLE_COMMAND"),MA=({colKey:e,startX:t,onMouseDown:n})=>{const r=k((t=>{n(t,e)}),[e,n]);return m.createElement("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},PA=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},IA=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,DA=({nodeKey:e,colWidths:t})=>{const[n]=_t.useLexicalComposerContext(),r=St(),[o,i]=E(null),a=w(null),l=w(null),s=w(null),u=w(null),c=k((t=>{const n=kt.$getNodeByKey(e);if(n){const e=n.getParent();if(pA(e)){const n=bA(e);if("TekRowNode"===(null==n?void 0: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=k((e=>{if(a.current){const{clientX:t,col:n,tableElement:r,curColWidth:o,resizer:i,left:l,nxt:c,parentDomNode:d,currentTableWidth:p}=a.current,f=e.clientX-t,h=_A(l+f,r);if(c){const e=o+f;if(e<60)return;const t=_A(e,r),l=a.current.nxtColWidth-f,d=_A(l,r);if(l<60)return;n.setAttribute("width",t),c.setAttribute("width",d),i.style.left=h,s.current&&(s.current.innerText=t),u.current&&(u.current.innerText=d)}else if(d){i.style.left="100%";const e=p+f,{clampedWidths:t,fullyClamped:n,clampedTableWidth:o}=((e,t)=>{const n=[],r=e.rows[0];let o=0,i=0;for(let e=0;e<r.cells.length;e++){const a=Math.max(r.cells[e].offsetWidth,60);60===a&&o++,i+=a;const l=a/t,s=Math.min(100*l,100);n.push(`${s.toFixed(2)}%`)}return{clampedWidths:n,fullyClamped:o===r.cells.length,clampedTableWidth:i}})(r,e),a=_A(e,d),l=_A(o,d);r.style.width=!n||f>0?a:l,r.querySelectorAll(":scope > colgroup col").forEach(((e,n)=>{e.setAttribute("width",t[n])})),n||s.current&&(s.current.innerText=a)}}}),[]),p=k((()=>{if(document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",p),a.current){a.current.resizer.style.opacity="",s.current=null,u.current=null;const e=(e=>{const t=e.rows[0],n=[];for(let r=0;r<t.cells.length;r++){const o=Math.max(t.cells[r].offsetWidth,60);n.push(_A(o,e))}return n})(a.current.tableElement);a.current.tableElement.querySelectorAll(":scope > colgroup col").forEach(((t,n)=>{t.setAttribute("width",e[n])})),(e=>{const t=document.getElementById("leftGripper"),n=document.getElementById("rightGripper");t&&e.removeChild(t),n&&e.removeChild(n)})(a.current.resizer),n.dispatchCommand(OA,void 0)}a.current=null,l.current=null,n.update((()=>{const t=kt.$getNodeByKey(e),r=vA(t,n),a=null==t?void 0:t.getParent();if(r&&a){const t=r.querySelectorAll(":scope > colgroup col"),l=[];t.forEach((e=>{l.push(e.getAttribute("width")||"0")})),a.setWidth(r.style.width);let s=0;if(o){const e=o.map(((e,t)=>{const n={...e};return s+=parseFloat(l[t]),n.startX=s,n}));i(e)}n.dispatchCommand(TA,{colWidths:l,nodeKey:e})}}))}),[d,n,e,o]),f=k(((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",p),n.getEditorState().read((()=>{const r=kt.$getNodeByKey(t),o=vA(r,n);if(cA(r)){const t=yA(r);if(-1!==t&&o){const r=null==o?void 0:o.querySelectorAll(":scope > colgroup col"),i=r[t],l=r.length>t+1?r[t+1]:null,c=xA(i,o),d=e.target,p=.01*parseFloat(d.style.left),f=o.offsetWidth*p,h=xA(l,o),g=o.parentElement,m=.01*parseFloat(o.style.width),v=((null==g?void 0:g.offsetWidth)||0)*m,b=((e,t,n)=>{const r=PA("tek__leftResizerIndicator","leftGripper");r.innerText=IA(e);let o=null;return t?(o=PA("tek__rightResizerIndicator","rightGripper"),o.innerText=IA(t)):r.innerText=n.style.width,{left:r,right:o}})(i,l,o);s.current=b.left,u.current=b.right,d.appendChild(b.left),b.right&&d.appendChild(b.right),d.style.opacity="1",a.current={resizer:d,curColWidth:c,col:i,tableElement:o,clientX:e.clientX,left:f,nxt:l,nxtColWidth:h,parentDomNode:g,currentTableWidth:v},n.dispatchCommand(NA,void 0)}}}))}),[n,d,p]);return S((()=>{n.getEditorState().read((()=>{c(t)}))}),[c,n,t]),m.createElement(m.Fragment,null,o&&r?o.map((e=>m.createElement(MA,{key:`${e.key}`,colKey:e.key,startX:e.startX,onMouseDown:f}))):null)},$A="TEK_TABLE_RESIZE_NODE";let zA=class e extends kt.DecoratorNode{static getType(){return $A}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:$A,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 m.createElement(DA,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const BA=e=>e instanceof zA,FA=({nodeKey:e,colWidths:t})=>{const[n]=_t.useLexicalComposerContext(),[r,o]=E(t);return S((()=>{n.getEditorState().read((()=>{const t=kt.$getNodeByKey(e),n=null==t?void 0:t.getParent();if(pA(n)){const e=n.getResizeNode();if(BA(e)){const t=e.__colWidths.map((e=>e));o(t)}}}))}),[n,e]),m.createElement(m.Fragment,null,r.map(((t,n)=>m.createElement("col",{span:1,width:t,key:`${e}.${n}`}))))};let HA=class e extends kt.DecoratorNode{static getType(){return"TekColGroupNode"}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:"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 m.createElement(FA,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}},jA=class extends kt.DecoratorNode{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 GA=[dA,sA,fA,HA,zA],WA=(e,t)=>{const n=100/e,r=Array(e).fill(`${n}%`),o=null==t?void 0:t.getChildAtIndex(0),i=null==t?void 0:t.getChildAtIndex(1);o.setColWidths(r),i.setColWidths(r),null==t||t.markNeedsUpdate()},YA=()=>{var e;const t=kt.$getSelection();if(kt.$isRangeSelection(t)){const n=t.anchor.getNode(),r=gA(n);if(r){const t=yA(r),n=mA(r),o=CA(n),i=((null===(e=o[0])||void 0===e?void 0:e.getChildren().length)||1)-1;if(0===i)return null==n||n.selectPrevious(),void(null==n||n.remove());o.forEach((e=>{var n;null===(n=e.getChildAtIndex(t))||void 0===n||n.remove()})),WA(i,n)}}},KA=()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=gA(t),r=mA(n);if(r&&3===r.getChildren().length)return kt.$setSelection(null),void r.remove();if(n){const{row:e}=wA(n);kt.$setSelection(null),null==e||e.remove()}}},UA=()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=mA(t),r=bA(n);if(hA(r)&&n){const e=r.getChildren().length,t=new fA;for(let r=0;r<e;r++){const e=uA(null==n?void 0:n.__hasBorders);e.append(kt.$createParagraphNode()),t.append(e)}null==n||n.append(t)}}},VA=()=>{var e;const t=kt.$getSelection();if(kt.$isRangeSelection(t)){const n=t.anchor.getNode(),r=mA(n);if(pA(r)){const t=CA(r);let n=null;const o=((null===(e=t[0])||void 0===e?void 0:e.getChildren().length)||-1)+1;for(let e=0;e<t.length;e++){const o=uA(r.__hasBorders);o.append(kt.$createParagraphNode()),t[e].append(o),n=o}return WA(o,r),n}}return null},qA=ou(Zu)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),XA=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=_t.useLexicalComposerContext(),[o,i]=E(null),a=Qk(),l=Boolean(o),s=k(((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{t()}),{onUpdate:()=>{i(null),n()}})}),[r]),u=k((e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)}),[n]),c=k((()=>{i(null)}),[]),d=k((e=>{s(e,UA,t)}),[s,t]),p=k((e=>{s(e,VA,t)}),[s,t]),f=k((t=>{s(t,KA,e)}),[s,e]),h=k((t=>{s(t,YA,e)}),[s,e]),g=k((()=>{r.update((()=>{(()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=mA(t);pA(n)&&(n.selectPrevious(),n.remove())}})()}),{onUpdate:()=>{i(null),e()}})}),[r,e]),v=k((e=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{(()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=mA(t);n&&(n.toggleBorders(),RA(n).forEach((e=>{e.toggleBorders()})))}})()}))}),[r]);return S((()=>wt.mergeRegister(r.registerCommand(kt.SELECTION_CHANGE_COMMAND,(()=>(i(null),!1)),kt.COMMAND_PRIORITY_CRITICAL))),[r]),m.createElement(pp,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},m.createElement("div",null,m.createElement(qA,{size:"small",onClick:u},m.createElement(Q_,{height:12})),m.createElement(Dd,{sx:{zIndex:1},open:l,anchorEl:o,placement:"auto-end"},m.createElement(Nu,{id:"tekTableMenu",className:"tekPopperMenu"},m.createElement(Hp,{dense:!0},m.createElement(Kp,{onClick:v},a("ToggleBorders")),m.createElement(bp,null),m.createElement(Kp,{onClick:d},a("AddNewRow")),m.createElement(Kp,{onClick:p},a("AddNewColumn")),m.createElement(bp,null),m.createElement(Kp,{onClick:f},a("DeleteRow")),m.createElement(Kp,{onClick:h},a("DeleteCol")),m.createElement(bp,null),m.createElement(Kp,{onClick:g},a("DeleteTable")))))))},JA=()=>{var e,t,n,r;const[o]=_t.useLexicalComposerContext(),i=St(),[a,l]=E(null),[s,u]=E(!1),c=Boolean(a),d=v.useContext(lo),p=w(null),f=k((()=>{s||o.update((()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=gA(e.anchor.getNode());if(cA(t)){const e=o.getElementByKey(t.getKey());l(e)}else l(null)}}))}),[o,s]);S((()=>{const e=e=>{0!==e.buttons?null===p.current&&(p.current=setTimeout((()=>{u(!0),l(null)}),300)):(u(!1),clearTimeout(p.current),p.current=null)};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e)}}),[]),S((()=>wt.mergeRegister(o.registerCommand(kt.SELECTION_CHANGE_COMMAND,(()=>(f(),!1)),kt.COMMAND_PRIORITY_EDITOR),o.registerCommand(NA,(()=>(l(null),!0)),kt.COMMAND_PRIORITY_CRITICAL),o.registerCommand(OA,(()=>(f(),!0)),kt.COMMAND_PRIORITY_CRITICAL))),[o,f]),S((()=>{l(null)}),[i]);const h=k((()=>{l(null)}),[]),g=k((()=>{l(null),setTimeout((()=>{f()}),0)}),[f]),b=k((()=>{clearTimeout(p.current)}),[]);return m.createElement(Dd,{open:c&&i,anchorEl:a,placement:"top-end",sx:{zIndex:1},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt((null===(r=null===(n=null===(t=null===(e=d.components)||void 0===e?void 0:e.MuiButton)||void 0===t?void 0:t.styleOverrides)||void 0===n?void 0:n.sizeSmall)||void 0===r?void 0:r.height)||"24",10)]}}]},m.createElement(XA,{onDeleteAction:h,onAction:g,onClick:b}))},QA=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=kt.$getNodeByKey(n),r=null==e?void 0:e.getParent();kt.$isRootNode(r)&&null!==e&&t.push(e)}if(t.length>0){const e=kt.$createParagraphNode();t[0].insertBefore(e),e.select(),t.forEach((e=>e.remove()))}},ZA=()=>{const[e]=_t.useLexicalComposerContext(),t=St();return S((()=>wt.mergeRegister(e.registerMutationListener(sA,(t=>{e.update((()=>{QA(t)}))})),e.registerMutationListener(fA,(t=>{e.update((()=>{QA(t)}))})),e.registerMutationListener(dA,(t=>{e.update((()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=kt.$getNodeByKey(e);if(pA(t)&&!t.isValid()){const e=kt.$createParagraphNode();t.insertBefore(e),e.select(),t.remove()}}}))})),e.registerCommand(LA,(()=>(e.update((()=>{const e=(()=>{const e=["50%","50%"],t=new dA(!0,"100%"),n=new HA(e),r=new zA(e),o=[];for(let t=0;t<2;t++){const t=new fA;for(let n=0;n<e.length;n++){const e=uA(!0),n=kt.$createParagraphNode();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();wt.$insertNodeToNearestRoot(e)})),!0)),kt.COMMAND_PRIORITY_EDITOR),e.registerCommand(TA,(({colWidths:e,nodeKey:t})=>{const n=kt.$getNodeByKey(t);if(BA(n)){n.setColWidths(e);const t=n.getParent(),r=null==t?void 0:t.getChildAtIndex(0);(function(e){return e instanceof HA})(r)&&r.setColWidths(e)}return!0}),kt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(kt.KEY_ENTER_COMMAND,(t=>(null==t?void 0:t.shiftKey)?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=e.focus.getNode(),n=mA(t),r=kA(t);if(pA(n)){const e=kt.$createParagraphNode();e.append(kt.$createTextNode("")),n.insertBefore(e,!1),e.select()}}})()})),!0):!!(null==t?void 0:t.ctrlKey)&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=kt.$getSelection();if(kt.$isRangeSelection(e)){const t=e.focus.getNode(),n=mA(t);if(pA(n)){const e=kt.$createParagraphNode();e.append(kt.$createTextNode("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()})),!0)),kt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(kt.KEY_BACKSPACE_COMMAND,(e=>SA(e)),kt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(kt.KEY_DELETE_COMMAND,(e=>SA(e)),kt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(kt.KEY_TAB_COMMAND,(e=>{const t=kt.$getSelection();if(kt.$isRangeSelection(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),cA(t))return{depth:n,tekCell:t};n++}return{depth:Number.MAX_SAFE_INTEGER,tekCell:null}})(n);if(r<=1)return e.preventDefault(),((e,t)=>{const{i:n,j:r,tableNode:o,row:i}=e,a=t?1:-1;if(i&&o){const e=i.getChildAtIndex(r+a);if(e)e.getChildAtIndex(0).selectEnd();else{let e=0;t||0!==r||(e=i.getChildren().length-1);const l=o.getChildAtIndex(n+2+a);if(hA(l)){const t=null==l?void 0:l.getChildAtIndex(e);(null==t?void 0:t.getChildAtIndex(0)).selectEnd()}}}})(wA(o),!e.shiftKey),!0}return!1}),kt.COMMAND_PRIORITY_EDITOR),e.registerCommand(kt.CUT_COMMAND,(e=>{const t=e.target,n=kt.$getSelection();if(t.classList.contains("tek__table")&&kt.$isRangeSelection(n)&&pA(n.anchor.getNode()))return e.preventDefault(),e.stopPropagation(),!0;if(kt.$isRangeSelection(n)){const t=n.getNodes().some((e=>cA(e))),r=n.getNodes().some((e=>pA(e)));if(t&&!r)return e.preventDefault(),e.stopPropagation(),!0}return!1}),kt.COMMAND_PRIORITY_CRITICAL))),[e]),S((()=>e.registerCommand(kt.SELECTION_CHANGE_COMMAND,(()=>(t&&e.update((()=>{(e=>{const t=kt.$getSelection(),n=[];if(kt.$nodesOfType(dA).forEach((e=>{const t=RA(e);n.push(...t)})),kt.$isRangeSelection(t)){t.getNodes().filter((e=>pA(e))).forEach((t=>{AA(t,e)}));const n=t.focus.getNode();if(pA(n))return void AA(n,e)}if(kt.$isRangeSelection(t)||kt.$isNodeSelection(t)){const r=new Set(t.getNodes().map((e=>kA(e))));for(let t=0;t<n.length;t++){const o=e.getElementByKey(n[t].getKey());r.has(n[t])?null==o||o.classList.add("tek__tekCellHighlight"):null==o||o.classList.remove("tek__tekCellHighlight")}}})(e)}),{tag:"history-merge"}),!1)),kt.COMMAND_PRIORITY_CRITICAL)),[e,t]),S((()=>{e.update((()=>{t||(e=>{const t=[];kt.$nodesOfType(dA).forEach((e=>{const n=RA(e);t.push(...n)})),t.forEach((t=>{const n=e.getElementByKey(t.getKey());null==n||n.classList.remove("tek__tekCellHighlight")}))})(e)}))}),[t,e]),null},eT=()=>m.createElement(m.Fragment,null,m.createElement(ZA,null),m.createElement(JA,null)),tT=()=>{const e=St(),t=Qk();return e?m.createElement("div",{className:"tek__editor__placeholder"},t("EnterText")):m.createElement("div",{className:"tek__editor__logo"},m.createElement(TR,{height:32}))},nT=({showPlaceholder:e})=>m.createElement("div",{style:{position:"relative"}},m.createElement(oR.AutoFocusPlugin,null),m.createElement(AR.RichTextPlugin,{contentEditable:m.createElement(cR.ContentEditable,{className:"tek__editor__input"}),placeholder:!1!==e?m.createElement(tT,null):null,ErrorBoundary:gR})),rT=ou(yp)((({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"}}))),oT=["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"],iT="#404040",aT="16px",lT=g({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:oT[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),sT=({children:e})=>{const t=(()=>{const[e]=_t.useLexicalComposerContext(),[t,n]=E(!1),[r,o]=E(!1),[i,a]=E(!1),[l,s]=E("paragraph"),[u,c]=E(oT[0]),[d,p]=E(aT),[f,h]=E(iT),[g,m]=E("left"),[v,b]=E(!1),y=k((()=>{const t=kt.$getSelection();if(kt.$isRangeSelection(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:wt.$findMatchingParent(r,(e=>{const t=e.getParent();return null!==t&&kt.$isRootOrShadowRoot(t)}));null===i&&(i=r.getTopLevelElementOrThrow());const l=i.getKey();let u=i;if(null!==e.getElementByKey(l))if(be.$isListNode(i)){const e=wt.$getNearestNodeOfType(r,be.ListNode),t=e?e.getListType():i.getListType();s(t)}else{const e=ft.$isHeadingNode(i)?i.getTag():i.getType();s(e)}if(be.$isListNode(i)||ft.$isHeadingNode(i)){const e=wt.$getNearestNodeOfType(i,kt.ParagraphNode);e&&(u=e)}const d=qR(t),f=d.getParent();if(se.$isLinkNode(f)||se.$isLinkNode(d)?b(!0):b(!1),kt.$isParagraphNode(u)){const e=u.getFormatType();m(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const g=Rt.$getSelectionStyleValueForProperty(t,"font-family",oT[0]),v=Rt.$getSelectionStyleValueForProperty(t,"font-size",aT);c(""===g?oT[0]:g),p(""!==v&&v?v:aT),h(Rt.$getSelectionStyleValueForProperty(t,"color",iT))}else kt.$isNodeSelection(t)&&t.getNodes().forEach((e=>{if(function(e){return e instanceof jA}(e)){const t=e;n(t.hasStyle("fontWeight")),o(t.hasStyle("fontStyle")),a(t.hasStyle("textDecoration")),h(t.getTextFormatStyle("color",iT));const r=t.getTextFormatStyle("fontSize",aT),i=t.getTextFormatStyle("fontFamily",oT[0]);p(r),c(i);const l=t.getParent();if(null!==l){const e=(e=>{if(be.$isListItemNode(e)){const t=wt.$getNearestNodeOfType(e,be.ListNode);return t?t.getListType():e.getListType()}return ft.$isHeadingNode(e)?e.getTag():e.getType()})(l);s(e)}}}))}),[e]);return S((()=>wt.mergeRegister(e.registerUpdateListener((({editorState:e})=>{e.read((()=>y()))})),e.registerCommand(kt.SELECTION_CHANGE_COMMAND,(()=>(e.getEditorState().read((()=>y())),!1)),kt.COMMAND_PRIORITY_EDITOR))),[e,y]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:l,fontName:u,fontSize:d,fontColor:f,align:g,isLink:v}}})();return m.createElement(lT.Provider,{value:t},e)},uT=({children:e})=>m.createElement(sT,null,m.createElement(rT,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row"},e)),cT=({anchorEl:e,children:t})=>{const n=Boolean(e);return m.createElement(Dd,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:1}},(({TransitionProps:e})=>m.createElement(Sp,{...e},m.createElement(Nu,{className:"tekPopperMenu"},t))))},dT=ou(ic)({fontSize:12,textOverflow:"ellipsis"}),pT=({startIcon:e,value:t,onClick:n,compact:r})=>m.createElement(rf,{title:t,PopperProps:{disablePortal:!0}},m.createElement(cp,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:m.createElement(MR,{height:12})},r?e:m.createElement(dT,null,t))),fT=ou(Kp,{shouldForwardProp:e=>"active"!==e})((({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0}))),hT=[{text:"AlignLeft",align:"left",icon:()=>m.createElement(OR,{height:12})},{text:"AlignCenter",align:"center",icon:()=>m.createElement(NR,{height:12})},{text:"AlignRight",align:"right",icon:()=>m.createElement(LR,{height:12})}],gT=({compact:e})=>{const[t]=_t.useLexicalComposerContext(),[n,r]=E(null),{blockFormat:o}=y(lT),i=Qk(),a=R((()=>hT.find((e=>e.align===o.align))||hT[0]),[o.align]),l=k((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),s=k((()=>{r(null)}),[]),u=k((e=>{r(null),t.dispatchCommand(kt.FORMAT_ELEMENT_COMMAND,e),t.focus()}),[t]);return m.createElement(pp,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},m.createElement("div",null,m.createElement(pT,{value:i(a.text),startIcon:a.icon(),onClick:l,compact:e}),m.createElement(cT,{anchorEl:n},m.createElement(Hp,{dense:!0},hT.map((e=>m.createElement(fT,{value:e.text,dense:!0,key:e.align,active:e.align===o.align,onClick:()=>u(e.align)},m.createElement(Pp,null,e.icon()),m.createElement(dT,null,i(e.text)))))))))},mT=({text:e,icon:t})=>m.createElement(m.Fragment,null,m.createElement(Pp,null,t),m.createElement(dT,null,e)),vT=({text:e,icon:t})=>m.createElement(m.Fragment,null,m.createElement(Pp,null,m.createElement(dT,{fontWeight:"bold"},t)),m.createElement(dT,null,e)),bT=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],yT=(e,t,n)=>({icon:m.createElement("span",{style:{fontSize:12,fontWeight:"bold"}},t),text:n(e)}),xT=({compact:e})=>{const[t]=_t.useLexicalComposerContext(),{blockFormat:n}=y(lT),[r,o]=E(null),i=Qk(),a=R((()=>{let e={icon:m.createElement($R,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=yT("Heading1","H1",i)),"h2"===n.blockType&&(e=yT("Heading2","H2",i)),"h3"===n.blockType&&(e=yT("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=m.createElement(IR,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=m.createElement(PR,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=m.createElement(DR,{height:12}),e.text=i("OrderedList")),e}),[n,i]),l=k((()=>{o(null)}),[]),s=k((e=>{t.update((()=>{const n=kt.$getSelection();kt.$isRangeSelection(n)?(Rt.$patchStyleText(n,{"font-size":null}),Rt.$setBlocksType(n,e)):kt.$isNodeSelection(n)&&n.getNodes().forEach((t=>{const n=t.getParent();null==n||n.replace(e(),!0)})),t.focus()}))}),[t]),u=k(((e,n)=>{o(null),t.update((()=>{const r=kt.$getSelection();kt.$isRangeSelection(r)&&r.getNodes().forEach((r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)}))})),t.focus()}),[t]),c=k((e=>{o(null),s((()=>ft.$createHeadingNode(e)))}),[s]),d=k((()=>{o(null),s((()=>kt.$createParagraphNode()))}),[s]),p=k((()=>{o(null),s((()=>ft.$createQuoteNode()))}),[s]);return m.createElement(pp,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},m.createElement("div",null,m.createElement(pT,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),m.createElement(cT,{anchorEl:r},m.createElement(Hp,{dense:!0},m.createElement(Kp,{dense:!0,onClick:d},m.createElement(mT,{text:i("Paragraph"),icon:m.createElement($R,{height:12})})),m.createElement(Kp,{dense:!0,onClick:p},m.createElement(mT,{text:i("Quote"),icon:m.createElement(IR,{height:12})})),bT.map((e=>m.createElement(Kp,{dense:!0,onClick:()=>c(e.tag),key:e.text},m.createElement(vT,{text:i(e.text),icon:e.icon})))),m.createElement(bp,null),m.createElement(Kp,{dense:!0,onClick:()=>u("bullet",be.INSERT_UNORDERED_LIST_COMMAND)},m.createElement(mT,{text:i("UnorderedList"),icon:m.createElement(PR,{height:12})})),m.createElement(Kp,{dense:!0,onClick:()=>u("number",be.INSERT_ORDERED_LIST_COMMAND)},m.createElement(mT,{text:i("OrderedList"),icon:m.createElement(DR,{height:12})}))))))},_T=ou(cp,{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}))),CT=(e,t)=>n=>{const r=Qk();return m.createElement(rf,{title:r(t),PopperProps:{disablePortal:!0}},m.createElement("div",null,m.createElement(e,{...n,"aria-label":r(t)})))},ET=({format:e,icon:t,...n})=>{const r=y(lT),[o]=_t.useLexicalComposerContext(),i=k((()=>{o.dispatchCommand(kt.FORMAT_TEXT_COMMAND,e)}),[o,e]);return m.createElement(_T,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text"},t)},ST=CT(ET,"Bold"),wT=()=>m.createElement(ST,{format:"bold",icon:m.createElement(zR,{height:12})}),kT=kt.createCommand("APPLY_TEXT_FORMAT"),RT=kt.createCommand("CLEAR_TEXT_FORMAT"),AT=CT(_T,"ClearFormat"),TT=()=>{const[e]=_t.useLexicalComposerContext(),t=k((()=>{e.update((()=>{const t=kt.$getSelection();if(kt.$isRangeSelection(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(kt.$isTextNode(t)){0===o&&0!==e.offset&&(t=t.splitText(e.offset)[1]||t),o===r.length-1&&(t=t.splitText(n.offset)[0]||t),""!==t.__style&&t.setStyle(""),0!==t.__format&&(t.setFormat(0),wt.$getNearestBlockElementAncestorOrThrow(t).setFormat(""));const i=t.getParent();(ft.$isHeadingNode(i)||ft.$isQuoteNode(i))&&i.replace(kt.$createParagraphNode(),!0)}else(ft.$isHeadingNode(t)||ft.$isQuoteNode(t))&&t.replace(kt.$createParagraphNode(),!0)}catch(e){}}))}e.dispatchCommand(RT,void 0)}))}),[e]);return m.createElement(AT,{onClick:t},m.createElement(BR,{height:12}))};function NT(e){return 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},NT(e)}var OT,LT={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}},MT=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,PT=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,IT=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,DT=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,$T=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,zT=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,BT=Math.floor,FT=Math.round,HT=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t,n,r,o,i,a,l,s,u,c,d,p,f=0,h=0,g=0,m=1;if(this._invalid=!1,arguments[0]instanceof e)f=arguments[0]._r,h=arguments[0]._g,g=arguments[0]._b,m=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(d=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(p=arguments[0]))f=parseInt(d[1],10),h=parseInt(d[2],10),g=parseInt(d[3],10);else if(d=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(p))m=parseFloat(FT(d[1]/2.55)/100),f=parseInt(d[2],10),h=parseInt(d[3],10),g=parseInt(d[4],10);else if(d=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(p))f=parseInt(d[1],10),h=parseInt(d[2],10),g=parseInt(d[3],10),m=parseFloat(d[4]);else if(d=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(p))f=parseInt(d[1],16),h=parseInt(d[2],16),g=parseInt(d[3],16),m=1;else if(d=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(p))f=parseInt(d[1]+d[1],16),h=parseInt(d[2]+d[2],16),g=parseInt(d[3]+d[3],16),m=1;else if(d=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),n=(n/=100)<0?0:n>1?1:n,l=(t=(t%=360)<0?0:t>360?360:t)/60,s=(a=(o=(o/=100)<0?0:o>1?1:o)<=.5?2*o*n:(2-2*o)*n)*(1-Math.abs(l%2-1)),u=[],l=Math.floor(l)){case 0:u=[a,s,0];break;case 1:u=[s,a,0];break;case 2:u=[0,a,s];break;case 3:u=[0,s,a];break;case 4:u=[s,0,a];break;case 5:u=[a,0,s];break;default:u=[0,0,0]}c=o-.5*a,f=u[0]+c,h=u[1]+c,g=u[2]+c,f=FT(255*f),h=FT(255*h),g=FT(255*g),m=1}else if(d=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(p)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),m=parseFloat(d[7]),n=(n/=100)<0?0:n>1?1:n,l=(t=(t%=360)<0?0:t>360?360:t)/60,s=(a=(o=(o/=100)<0?0:o>1?1:o)<=.5?2*o*n:(2-2*o)*n)*(1-Math.abs(l%2-1)),u=[],l=Math.floor(l)){case 0:u=[a,s,0];break;case 1:u=[s,a,0];break;case 2:u=[0,a,s];break;case 3:u=[0,s,a];break;case 4:u=[s,0,a];break;case 5:u=[a,0,s];break;default:u=[0,0,0]}c=o-.5*a,f=u[0]+c,h=u[1]+c,g=u[2]+c,f=FT(255*f),h=FT(255*h),g=FT(255*g)}else if(d=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),i=parseFloat(d[5]),l=(t=(t%=360)<0?0:t>360?360:t)/60,s=(a=(i=(i/=100)<0?0:i>1?1:i)*(n=(n/=100)<0?0:n>1?1:n))*(1-Math.abs(l%2-1)),u=[],l=Math.floor(l)){case 0:u=[a,s,0];break;case 1:u=[s,a,0];break;case 2:u=[0,a,s];break;case 3:u=[0,s,a];break;case 4:u=[s,0,a];break;case 5:u=[a,0,s];break;default:u=[0,0,0]}c=i-a,f=u[0]+c,h=u[1]+c,g=u[2]+c,f=FT(255*f),h=FT(255*h),g=FT(255*g),m=1}else LT[p.toLowerCase()]?(r=p.toLowerCase(),f=LT[r].r,h=LT[r].g,g=LT[r].b,m="number"==typeof LT[r].a?LT[r].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(m=(4278190080&arguments[0])>>>24,m/=255,f=(16711680&arguments[0])>>16,h=(65280&arguments[0])>>8,g=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(f=(16711680&arguments[0])>>16,h=(65280&arguments[0])>>8,g=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(f=arguments[0],h=arguments[1],g=arguments[2],m=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+f+h+g+m)&&(this._invalid=!0),this._r=BT(f),this._g=BT(h),this._b=BT(g),this._a=m,this._spaces={}}var t,n;return t=e,(n=[{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=e.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=e.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=e.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=e.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(t){return this._spaces.hsl||(this._spaces.hsl=e.toHSL(this,t)),this._spaces.hsl}},{key:"toHSLA",value:function(t){return this._spaces.hsla||(this._spaces.hsla=e.toHSLA(this,t)),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=e.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=e.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(t){return t instanceof e||(t=new e(t)),this._r===t._r&&this._g===t._g&&this._b===t._b}},{key:"blend",value:function(e,t){var n=BT(this._r+(e._r-this._r)*t),r=BT(this._g+(e._g-this._g)*t),o=BT(this._b+(e._b-this._b)*t),i=BT(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(t){(void 0===t||Number.isNaN(+t))&&(t=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new e(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*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,"symbol"==NT(o=function(e){if("object"!=NT(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=NT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();HT.toRGB=function(e){if(e instanceof HT)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=HT.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},HT.toRGBA=function(e,t){if(e instanceof HT)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=HT.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,")")},HT.toHex=function(e){var t,n,r;return e instanceof HT?(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=HT.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))},HT.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new HT(e));var a=e._r/255,l=e._g/255,s=e._b/255,u=Math.max(a,l,s),c=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(u+c)/2,u===c)n=0,i=0;else{switch(o=u-c,n=r>.5?o/(2-u-c):o/(u+c),u){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},HT.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new HT(e));var a=e._r/255,l=e._g/255,s=e._b/255,u=e._a,c=Math.max(a,l,s),d=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(u,")")},HT.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new HT(e));var o=e._r/255,i=e._g/255,a=e._b/255,l=Math.max(o,i,a),s=Math.min(o,i,a),u=l;if(l===s)t=0,r=0;else{switch(t=0==(n=l-s)?0:n/u,l){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}},HT.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof HT)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},HT.blend=function(e,t,n){var r=(16711680&(e=HT.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=HT.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},HT.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new HT(r,o,i,a)},HT.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(MT.test(e)||PT.test(e)||IT.test(e)||DT.test(e)||$T.test(e)||zT.test(e)||LT[e.toLowerCase()])},HT.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},HT.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)}},HT.isDark=function(){var e={getLuminance:HT.prototype.getLuminance,isInvalid:HT.prototype.isInvalid};return HT.prototype.init.apply(e,[].slice.call(arguments)),HT.prototype.isDark.call(e)},HT.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},OT=HT;const jT=ou(yp)((({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"}))),GT=ou(ep)((({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"}))),WT=({palette:e,color:t,onColorChange:n})=>{const[r,o]=E(t),i=Hs(),a=k((e=>{o(e),n(e)}),[n]);return m.createElement(jT,null,e.map((e=>m.createElement(GT,{style:{backgroundColor:e},key:e,onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)}},e===r?m.createElement(af,{height:12,color:i.palette.getContrastText(e)}):null))))};function YT(e,t,n){return Math.max(t,Math.min(n,e))}const KT=(e,t)=>{const n=new OT(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"}},UT=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=YT(e.clientX-n,0,o)/o*100,l=100-YT(e.clientY-r,0,i)/i*100,s=new OT(t).toHSVComponents();return s.s=a,s.v=l,s},VT=ou(yp)((({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"}))),qT=ou(ep)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),XT=ou(ep)((({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 );"}))),JT=ou(ep)({width:"16px",height:"16px",borderRadius:"2px"}),QT=ou(yp)({flexDirection:"row",alignItems:"center"}),ZT=ou(ep)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),eN=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=E(n),a=w(n),[l,s]=E(!0),[u,c]=E(o),d=w(null),p=w(null),f=w({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,g]=E({left:"0",top:"0"});S((()=>{r.some((e=>e===n))||s(!1)}),[n,r]);const v=k((e=>{if(!d.current&&(d.current=e,e)){const t=KT(o,e);g(t)}}),[o]),b=R((()=>`hsl(${new OT(o).toHSVComponents().h}, 100%, 50%)`),[o]),y=k((t=>{t.preventDefault(),t.stopPropagation();const n=UT(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new OT(r);if(a.current=o.toHex(),p.current&&d.current){const e=d.current.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;p.current.style.left=`${n}px`,p.current.style.top=`${r}px`}e(a.current),c(a.current),i(a.current)}),[e]),x=k((t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=YT(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,l=new OT(t).toHSVComponents();return l.h=i,l.s=a,l})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new OT(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)}),[e]),_=k((t=>{a.current=t,e(a.current),i(a.current),c(t)}),[e]),C=k((t=>{if(c(t.target.value),!new OT(t.target.value).isInvalid()&&(a.current=t.target.value,i(t.target.value),t.target.value.startsWith("#")&&7===t.target.value.length?e(a.current,{tag:"collaboration"}):t.target.value.startsWith("#")||e(a.current,{tag:"collaboration"}),d.current)){const e=KT(a.current,d.current);g(e)}}),[e]);return m.createElement(VT,null,l?m.createElement(WT,{palette:r,color:o,onColorChange:_}):m.createElement(m.Fragment,null,m.createElement(qT,{style:{backgroundColor:b},ref:v,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),p.current&&e.target===p.current){const{left:t,top:n}=p.current.style,r=parseInt(t||"0",10),o=parseInt(n||"0",10);p.current.style.cursor="pointer",d.current&&(d.current.style.cursor="pointer"),f.current={left:r,top:o,on:!0,clientX:e.clientX,clientY:e.clientY}}},onMouseMove:e=>{if(e.preventDefault(),e.stopPropagation(),f.current.on&&p.current&&d.current){const t=e.clientX-f.current.clientX,n=e.clientY-f.current.clientY,r=f.current.left+t,o=f.current.top+n,l=UT(e,a.current),s=`hsv(${l.h},${l.s},${l.v})`,u=new OT(s).toHex();p.current.style.left=`${r}px`,p.current.style.top=`${o}px`,p.current.style.backgroundColor=u,a.current=u,c(a.current),i(u)}},onMouseUp:t=>{t.preventDefault(),t.stopPropagation(),f.current.on?e(a.current):y(t),d.current&&(d.current.style.cursor="crosshair"),p.current&&(p.current.style.cursor="pointer"),f.current.on=!1}},m.createElement(ZT,{ref:p,style:{...h,backgroundColor:o}})),m.createElement(XT,{onClick:x})),m.createElement(QT,null,m.createElement(JT,{style:{backgroundColor:o}}),m.createElement(Jd,{style:{flex:1},value:u,onChange:C}),m.createElement(Zu,{onClick:()=>s(!l)},m.createElement(FR,{height:12})),m.createElement(Zu,{onClick:t},m.createElement(af,{height:12}))))},tN=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],nN=CT(cp,"Color"),rN=({colorPalette:e})=>{const[t]=_t.useLexicalComposerContext(),[n,r]=E(null),{blockFormat:o}=y(lT),i=k(((e,n)=>{t.update((()=>{const t=kt.$getSelection();kt.$isRangeSelection(t)&&Rt.$patchStyleText(t,{color:e})}),n),t.dispatchCommand(kT,{styleKey:"color",styleValue:e})}),[t]),a=()=>{r(null)};return m.createElement(pp,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},m.createElement("div",null,m.createElement(nN,{variant:"text",size:"small",endIcon:m.createElement(MR,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}},m.createElement(ep,{sx:{backgroundColor:o.fontColor,width:12,height:12}})),m.createElement(cT,{anchorEl:n},m.createElement(eN,{onClick:i,onClose:a,startColor:o.fontColor,palette:e||tN}))))},oN=({compact:e,fonts:t})=>{const[n]=_t.useLexicalComposerContext(),[r,o]=E(null),{blockFormat:i}=y(lT),a=R((()=>t||oT),[t]),l=k((e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update((()=>{const e=kt.$getSelection();kt.$isRangeSelection(e)&&Rt.$patchStyleText(e,{"font-family":t||oT[0]}),n.dispatchCommand(kT,{styleKey:"fontFamily",styleValue:t||oT[0]}),n.focus()}))}),[n]);return m.createElement(pp,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},m.createElement("div",null,m.createElement(pT,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:m.createElement("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"}},"T"),compact:e}),m.createElement(cT,{anchorEl:r},m.createElement(Hp,{dense:!0,style:{maxHeight:200,overflow:"auto"}},a.map((e=>m.createElement(fT,{"data-font-name":e,key:e,onClick:l,active:e===i.fontName},m.createElement(dT,null,e))))))))},iN=e=>parseInt(e,10),aN=({fontSize:e,onSelected:t})=>{const[n,r]=E(""),o=k((e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)}),[]),i=k((()=>{const e=iN(n);e&&t(`${e}px`)}),[t,n]),a=k((e=>{"Enter"===e.key&&(e.preventDefault(),i())}),[i]);return m.createElement(yp,{direction:"row"},m.createElement(Jd,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),m.createElement(Zu,{disabled:!iN(n),onClick:i},m.createElement(af,{height:12})))},lN=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],sN=({compact:e})=>{const[t]=_t.useLexicalComposerContext(),[n,r]=E(null),{blockFormat:o}=y(lT),i=k((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),a=k((()=>{r(null)}),[]),l=k((e=>{r(null),e.length>0&&t.update((()=>{const n=kt.$getSelection();kt.$isRangeSelection(n)&&Rt.$patchStyleText(n,{"font-size":e}),t.dispatchCommand(kT,{styleKey:"fontSize",styleValue:`${e}`})}))}),[t]),s=k((e=>{const{fontSize:t}=e.currentTarget.dataset;l(t||"16px")}),[l]),u=k((e=>{l(e)}),[l]);return m.createElement(pp,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},m.createElement("div",null,m.createElement(pT,{startIcon:e?m.createElement(dT,null,o.fontSize):void 0,value:o.fontSize,onClick:i,compact:e}),m.createElement(cT,{anchorEl:n},m.createElement(aN,{fontSize:o.fontSize,onSelected:u}),m.createElement(bp,null),m.createElement(Hp,{dense:!0,style:{maxHeight:200,overflow:"auto"}},lN.map((e=>m.createElement(Kp,{"data-font-size":e,key:e,onClick:s},m.createElement(dT,null,e))))))))},uN=CT(_T,"InsertTable"),cN=()=>{const[e]=_t.useLexicalComposerContext(),t=k((()=>{e.dispatchCommand(LA,void 0)}),[e]);return m.createElement(uN,{onClick:t},m.createElement(HR,{height:12}))},dN=CT(ET,"Italic"),pN=()=>m.createElement(dN,{format:"italic",icon:m.createElement(jR,{height:12})}),fN=CT(_T,"InsertHyperlink"),hN=()=>{const[e]=_t.useLexicalComposerContext(),{blockFormat:t}=y(lT),n=k((()=>{t.isLink?e.dispatchCommand(se.TOGGLE_LINK_COMMAND,null):e.dispatchCommand(se.TOGGLE_LINK_COMMAND,QR("https://"))}),[e,t.isLink]);return m.createElement(fN,{onClick:n},m.createElement(GR,{height:12}))},gN=CT(ET,"Underline"),mN=()=>m.createElement(gN,{format:"underline",icon:m.createElement(WR,{height:12})}),vN=()=>m.createElement(bp,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var bN={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=="},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=="}},yN={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"}},xN={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=="},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=="}},_N={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=="},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=="}},CN={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=="},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=="}},EN={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=="},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=="}},SN={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=="},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=="}},wN={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=="},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=="}},kN={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=="},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=="}},RN={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=="},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=="}},AN={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=="},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=="}},TN={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=="},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=="}},NN={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=="},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 ON={de:bN,es:xN,en:yN,fr:_N,it:CN,ja:EN,ko:SN,nl:wN,pl:kN,pt:RN,ru:AN,sv:TN,tr:NN,"de-de":bN,"es-es":xN,"en-us":yN,"fr-fr":_N,"it-it":CN,"ja-jp":EN,"ko-kr":SN,"nl-nl":wN,"pl-pl":kN,"pt-br":RN,"ru-ru":AN,"sv-se":TN,"tr-tr":NN,"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=="},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=="},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 LN(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"===t?String:Number)(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 MN,PN,IN,DN={};var $N,zN=function(){if(IN)return PN;IN=1;const e=function(){if(MN)return DN;MN=1;var e=Ce(),t=ee(),n=m;function r(e,n){return e.getEditorState().read((()=>{let e=t.$getNodeByKey(n);return null!==e&&e.isSelected()}))}return DN.useLexicalNodeSelection=function(o){let[i]=e.useLexicalComposerContext(),[a,l]=n.useState((()=>r(i,o)));n.useEffect((()=>{let e=!0,t=i.registerUpdateListener((()=>{e&&l(r(i,o))}));return()=>{e=!1,t()}}),[i,o]);let s=n.useCallback((e=>{i.update((()=>{let n=t.$getSelection();t.$isNodeSelection(n)||(n=t.$createNodeSelection(),t.$setSelection(n)),e?n.add(o):n.delete(o)}))}),[i,o]),u=n.useCallback((()=>{i.update((()=>{const e=t.$getSelection();t.$isNodeSelection(e)&&e.clear()}))}),[i]);return[a,s,u]},DN}();return PN=e}(),BN={};var FN=function(){if($N)return BN;$N=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,l=Math.floor,s=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,p,f,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(s(h[1]/2.55)/100),m=parseInt(h[2],10),v=parseInt(h[3],10),b=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(g))m=parseInt(h[1],10),v=parseInt(h[2],10),b=parseInt(h[3],10),y=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(g))m=parseInt(h[1],16),v=parseInt(h[2],16),b=parseInt(h[3],16),y=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(g))m=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),b=parseInt(h[3]+h[3],16),y=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),p=[],c=Math.floor(c)){case 0:p=[u,d,0];break;case 1:p=[d,u,0];break;case 2:p=[0,u,d];break;case 3:p=[0,d,u];break;case 4:p=[d,0,u];break;case 5:p=[u,0,d];break;default:p=[0,0,0]}f=i-.5*u,m=p[0]+f,v=p[1]+f,b=p[2]+f,m=s(255*m),v=s(255*v),b=s(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(g)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),y=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),p=[],c=Math.floor(c)){case 0:p=[u,d,0];break;case 1:p=[d,u,0];break;case 2:p=[0,u,d];break;case 3:p=[0,d,u];break;case 4:p=[d,0,u];break;case 5:p=[u,0,d];break;default:p=[0,0,0]}f=i-.5*u,m=p[0]+f,v=p[1]+f,b=p[2]+f,m=s(255*m),v=s(255*v),b=s(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),p=[],c=Math.floor(c)){case 0:p=[u,d,0];break;case 1:p=[d,u,0];break;case 2:p=[0,u,d];break;case 3:p=[0,d,u];break;case 4:p=[d,0,u];break;case 5:p=[u,0,d];break;default:p=[0,0,0]}f=a-u,m=p[0]+f,v=p[1]+f,b=p[2]+f,m=s(255*m),v=s(255*v),b=s(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=l(m),this._g=l(v),this._b=l(b),this._a=y,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=l(this._r+(e._r-this._r)*t),r=l(this._g+(e._g-this._g)*t),o=l(this._b+(e._b-this._b)*t),i=l(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,l=e._g/255,s=e._b/255,c=Math.max(a,l,s),d=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,l=e._g/255,s=e._b/255,c=e._a,d=Math.max(a,l,s),p=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(d+p)/2,d===p)n=0,i=0;else{switch(o=d-p,n=r>.5?o/(2-d-p):o/(d+p),d){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,l=Math.max(o,i,a),s=Math.min(o,i,a),c=l;if(l===s)t=0,r=0;else{switch(t=0==(n=l-s)?0:n/c,l){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(l){return!(arguments.length>1||"string"!=typeof l)&&(t.test(l)||n.test(l)||r.test(l)||o.test(l)||i.test(l)||a.test(l)||e[l.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},BN.Color=u,BN}();const HN=e=>!!e.qExtendsId;function jN(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function GN(e,t){return null==t?void 0:t.getNodes().some((t=>t.getKey()===e))}var WN,YN;var KN=function(){if(YN)return WN;YN=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},WN=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,l;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(l=r.slice()).length,a=0;a<o;a++)l[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},WN}();let UN=[];const VN=new KN.EventEmitter;VN.isSelected=e=>{var t;const n=null==e||null===(t=e.qDef)||void 0===t?void 0:t.cId;return-1!==UN.indexOf(n)},VN.setSelected=e=>{UN!==e&&(UN=e,VN.emit("change"))};function qN({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=y(D),[a]=_t.useLexicalComposerContext(),l=St(),[s,u,c]=zN.useLexicalNodeSelection(n),d=w(null),[p,f]=E(t);S((()=>{f(t)}),[t]);const h=R((()=>{let e;return s?e="rgba(0, 152, 69, 0.25)":l&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}}),[s,l]),g=R((()=>r&&o?function(e,t){const{qHyperCube:n}=t;if(n){var r;const t=null===(r=n.qMeasureInfo)||void 0===r?void 0:r.findIndex((t=>t.cId===e));if(void 0!==t&&-1!==t){var o,i;const e=null==n||null===(o=n.qDataPages)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.qMatrix)||void 0===o?void 0:o[0][t];if(1===(null==e||null===(i=e.qAttrExps)||void 0===i||null===(i=i.qValues)||void 0===i?void 0:i.length)){var a;const t=null===(a=e.qAttrExps.qValues[0])||void 0===a?void 0:a.qText;if(t){const n=new FN.Color(t);return{value:(null==e?void 0:e.qText)||"",expressionColor:n.toHex()}}}return{value:(null==e?void 0:e.qText)||""}}}return{value:""}}(e,r):{value:""}),[r]);S((()=>wt.mergeRegister(a.registerCommand(kt.FORMAT_TEXT_COMMAND,(e=>(a.update((()=>{const t=e,r=kt.$getSelection();if(kt.$isRangeSelection(r)&&s){if(GN(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:"");f((t=>({...t,...e})))}}else if(s&&kt.$isNodeSelection(r)&&GN(n,r)&&d.current){const e=jN(d.current.style);f(((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)),kt.COMMAND_PRIORITY_HIGH),a.registerCommand(kT,(e=>(a.getEditorState().read((()=>{if("color"===e.styleKey&&g.expressionColor)return!1;if(d.current&&s){const r=kt.$getSelection();if(GN(n,r)){var t;const n=jN(null===(t=d.current)||void 0===t?void 0:t.style);n[e.styleKey]=e.styleValue,f(n)}}})),!1)),kt.COMMAND_PRIORITY_EDITOR),a.registerCommand(RT,(()=>(a.getEditorState().read((()=>{if(d.current&&s){const e=kt.$getSelection();if(GN(n,e)){const e={};g.expressionColor&&(e.color=g.expressionColor),f(e)}}})),!1)),kt.COMMAND_PRIORITY_EDITOR),a.registerCommand(kt.SELECTION_CHANGE_COMMAND,(()=>(null!=i&&i.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update((()=>{const e=[],t=kt.$getSelection(),n=null==t?void 0:t.getNodes();null==n||n.forEach((t=>{null!=t&&t.getExpressionId&&e.push(null==t?void 0:t.getExpressionId())})),VN.setSelected(e)})),!1)),kt.COMMAND_PRIORITY_LOW))),[a,u,c,s,n,g]),S((()=>{l||(c(),null!=i&&i.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&VN.setSelected([]))}),[l,c]),S((()=>{a.update((()=>{!function(e,t){const n=kt.$getNodeByKey(e);var r;n&&(null===(r=n.setFormatStyle)||void 0===r||r.call(n,t))}(n,p)}))}),[p,a]);const v=k((e=>{if(l){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),c(),u(!0)):r<t.width&&a.update((()=>{const e=kt.$getSelection();if(kt.$isNodeSelection(e)){const t=kt.$getNodeByKey(n);null==t||t.selectPrevious(),e.delete(n)}}))}}),[c,l,a]);return m.createElement("span",{style:{...h,...p,color:g.expressionColor?g.expressionColor:p.color},onClick:v,ref:d,id:e},g.value)}const XN="qlik.expression.node";class JN extends jA{static getType(){return XN}static clone(e){return new JN(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new JN(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:XN,version:1}}setExported(){this.getWritable().__exported=!0}constructor(e,t,n){super(t,n),LN(this,"__expressionId",void 0),this.__expressionId=e}createDOM(){return document.createElement("span")}exportDOM(e){return super.exportDOM(e)}updateDOM(){return!1}decorate(){return m.createElement(qN,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function QN(e){return e instanceof JN}function ZN(){const[e]=_t.useLexicalComposerContext(),t=St(),{edit:n,model:r,emitter:o}=y(D);return S((()=>{const t=()=>{r&&async function(e,t){try{const n=await t.getProperties();n.text=JSON.stringify(e),await t.setProperties(n)}catch(e){console.error(e)}}(e.getEditorState().toJSON(),r)},n=t=>{const n=e.parseEditorState(t);t!==JSON.stringify(e.getEditorState().toJSON())&&e.setEditorState(n)};return null==o||o.on("saveDocument",t),null==o||o.on("reloadData",n),()=>{null==o||o.removeListener("saveDocument",t),null==o||o.removeListener("reloadData",n)}}),[o,r]),S((()=>{e.setEditable(n)}),[n]),S((()=>{t&&e.focus()}),[t,e]),null}class eO{constructor(){LN(this,"nodeStore",void 0),LN(this,"pendingDeletes",void 0),this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=kt.$getNodeByKey(e);if(QN(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 tO(){let e;const{layout:t,readyToPrint:n}=y(D),[r]=_t.useLexicalComposerContext();S((()=>(e=r.registerUpdateListener((({dirtyElements:r,dirtyLeaves:o,prevEditorState:i})=>{0===r.size&&0===o.size||i.isEmpty()||(()=>{const r=null==n?void 0:n.findIndex((e=>e.id===t.qInfo.qId));r>-1&&(n[r].resolve(),n.splice(r,1),e())})()})),()=>{e()})),[])}function nO(){const{layout:e,emitter:t}=y(D),[n]=_t.useLexicalComposerContext(),r=w(new eO),o=St();return tO(),S((()=>{const e=n.registerMutationListener(JN,(e=>{n.getEditorState().read((()=>{for(const[t,n]of e)r.current.update(t,n)}))}));return()=>{e()}}),[n]),S((()=>{e&&n.update((()=>{var t;const n=null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo;if(n){const e=kt.$nodesOfType(JN),t=((e,t)=>e.reduce(((e,n)=>(t.find((e=>e.cId===n.getExpressionId()))||e.push(n),e)),[]))(e,n);if(t.forEach((e=>{e.remove()})),n.length>e.length){const e=kt.$getSelection(),{cId:t}=n[n.length-1],r=new JN(t,{}),o=kt.$createTextNode(" "),i=kt.$createTextNode("");kt.$isRangeSelection(e)?e.insertNodes([i,r,o]):wt.$insertNodeToNearestRoot(r)}}}))}),[e,n]),S((()=>n.registerCommand(kt.KEY_DOWN_COMMAND,(e=>("Backspace"===e.key&&n.update((()=>{const e=kt.$getSelection();kt.$isNodeSelection(e)&&e.getNodes().forEach((e=>{QN(e)&&(e.selectPrevious(),e.remove())}))})),!1)),kt.COMMAND_PRIORITY_LOW)),[n]),S((()=>{if(!o){const e=r.current.sync();e.length>0&&(null==t||t.emit("onNodeDestroyed",e))}}),[o,t]),null}const rO=/"/g;function oO(){const{model:e,emitter:t}=y(D),[n]=_t.useLexicalComposerContext(),r=w(new Map);return S((()=>{const o=n.registerMutationListener(kt.TextNode,(e=>{e.forEach(((e,t)=>{if("destroyed"===e)r.current.delete(t);else{var o;const e=null===(o=n.getElementByKey(t))||void 0===o?void 0:o.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(rO,""))),e)}}return null==t||t.on("saveDocument",i),()=>{null==t||t.removeListener("saveDocument",i),o()}}),[n]),null}function iO(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 aO,lO="top",sO="top-right",uO="right",cO="bottom-right",dO="bottom",pO="bottom-left",fO="left",hO="top-left";iO(iO(iO(iO(iO(iO(iO(iO(iO(iO(aO={},"equal-equal",[lO,dO]),"equal-higher",[dO,cO]),"equal-lower",[lO,sO]),"equal-void",[lO,dO]),"higher-equal",[fO,pO,lO,sO]),"higher-higher-acute",[dO,pO,fO,sO]),"higher-higher-obtuse",[dO,lO]),"higher-lower-negative",[lO,sO,uO]),"higher-lower-positive",[dO,pO,fO]),"higher-void",[lO]),iO(iO(iO(iO(iO(iO(iO(iO(iO(iO(aO,"lower-equal",[lO]),"lower-higher-negative",[lO,hO]),"lower-higher-positive",[cO]),"lower-lower-acute",[lO,hO,fO,sO,uO]),"lower-lower-obtuse",[lO,dO]),"lower-void",[lO]),"void-equal",[lO]),"void-higher",[lO,dO]),"void-lower",[lO,dO,fO]),"void-void",[lO]),iO(aO,"unclassified",[lO,dO,uO,fO,sO,cO,pO,hO]);var gO,mO,vO=["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"],bO=["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 yO=function(){if(mO)return gO;mO=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return gO=function e(){var t,n,r,s,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,c,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},gO}();function xO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _O(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function CO(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(yO);var EO=1/.7,SO="\\s*([+-]?\\d+)\\s*",wO="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",kO="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",RO=/^#([0-9a-f]{3,8})$/,AO=new RegExp(`^rgb\\(${SO},${SO},${SO}\\)$`),TO=new RegExp(`^rgb\\(${kO},${kO},${kO}\\)$`),NO=new RegExp(`^rgba\\(${SO},${SO},${SO},${wO}\\)$`),OO=new RegExp(`^rgba\\(${kO},${kO},${kO},${wO}\\)$`),LO=new RegExp(`^hsl\\(${wO},${kO},${kO}\\)$`),MO=new RegExp(`^hsla\\(${wO},${kO},${kO},${wO}\\)$`),PO={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 IO(){return this.rgb().formatHex()}function DO(){return this.rgb().formatRgb()}function $O(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=RO.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?zO(t):3===n?new jO(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?BO(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?BO(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=AO.exec(e))?new jO(t[1],t[2],t[3],1):(t=TO.exec(e))?new jO(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=NO.exec(e))?BO(t[1],t[2],t[3],t[4]):(t=OO.exec(e))?BO(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=LO.exec(e))?VO(t[1],t[2]/100,t[3]/100,1):(t=MO.exec(e))?VO(t[1],t[2]/100,t[3]/100,t[4]):PO.hasOwnProperty(e)?zO(PO[e]):"transparent"===e?new jO(NaN,NaN,NaN,0):null}function zO(e){return new jO(e>>16&255,e>>8&255,255&e,1)}function BO(e,t,n,r){return r<=0&&(e=t=n=NaN),new jO(e,t,n,r)}function FO(e){return e instanceof CO||(e=$O(e)),e?new jO((e=e.rgb()).r,e.g,e.b,e.opacity):new jO}function HO(e,t,n,r){return 1===arguments.length?FO(e):new jO(e,t,n,null==r?1:r)}function jO(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function GO(){return`#${UO(this.r)}${UO(this.g)}${UO(this.b)}`}function WO(){const e=YO(this.opacity);return`${1===e?"rgb(":"rgba("}${KO(this.r)}, ${KO(this.g)}, ${KO(this.b)}${1===e?")":`, ${e})`}`}function YO(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function KO(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function UO(e){return((e=KO(e))<16?"0":"")+e.toString(16)}function VO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new XO(e,t,n,r)}function qO(e){if(e instanceof XO)return new XO(e.h,e.s,e.l,e.opacity);if(e instanceof CO||(e=$O(e)),!e)return new XO;if(e instanceof XO)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new XO(a,l,s,e.opacity)}function XO(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function JO(e){return(e=(e||0)%360)<0?e+360:e}function QO(e){return Math.max(0,Math.min(1,e||0))}function ZO(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}xO(CO,$O,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:IO,formatHex:IO,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return qO(this).formatHsl()},formatRgb:DO,toString:DO}),xO(jO,HO,_O(CO,{brighter(e){return e=null==e?EO:Math.pow(EO,e),new jO(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new jO(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jO(KO(this.r),KO(this.g),KO(this.b),YO(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:GO,formatHex:GO,formatHex8:function(){return`#${UO(this.r)}${UO(this.g)}${UO(this.b)}${UO(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:WO,toString:WO})),xO(XO,(function(e,t,n,r){return 1===arguments.length?qO(e):new XO(e,t,n,null==r?1:r)}),_O(CO,{brighter(e){return e=null==e?EO:Math.pow(EO,e),new XO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new XO(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 jO(ZO(e>=240?e-240:e+120,o,r),ZO(e,o,r),ZO(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new XO(JO(this.h),QO(this.s),QO(this.l),YO(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=YO(this.opacity);return`${1===e?"hsl(":"hsla("}${JO(this.h)}, ${100*QO(this.s)}%, ${100*QO(this.l)}%${1===e?")":`, ${e})`}`}}));const eL=Math.PI/180,tL=180/Math.PI,nL=4/29,rL=6/29,oL=3*rL*rL;function iL(e){if(e instanceof aL)return new aL(e.l,e.a,e.b,e.opacity);if(e instanceof dL)return pL(e);e instanceof jO||(e=FO(e));var t,n,r=cL(e.r),o=cL(e.g),i=cL(e.b),a=lL((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=lL((.4360747*r+.3850649*o+.1430804*i)/.96422),n=lL((.0139322*r+.0971045*o+.7141733*i)/.82521)),new aL(116*a-16,500*(t-a),200*(a-n),e.opacity)}function aL(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function lL(e){return e>.008856451679035631?Math.pow(e,1/3):e/oL+nL}function sL(e){return e>rL?e*e*e:oL*(e-nL)}function uL(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function cL(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function dL(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function pL(e){if(isNaN(e.h))return new aL(e.l,0,0,e.opacity);var t=e.h*eL;return new aL(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}xO(aL,(function(e,t,n,r){return 1===arguments.length?iL(e):new aL(e,t,n,null==r?1:r)}),_O(CO,{brighter(e){return new aL(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new aL(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 jO(uL(3.1338561*(t=.96422*sL(t))-1.6168667*(e=1*sL(e))-.4906146*(n=.82521*sL(n))),uL(-.9787684*t+1.9161415*e+.033454*n),uL(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),xO(dL,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof dL)return new dL(e.h,e.c,e.l,e.opacity);if(e instanceof aL||(e=iL(e)),0===e.a&&0===e.b)return new dL(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tL;return new dL(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new dL(e,t,n,null==r?1:r)}),_O(CO,{brighter(e){return new dL(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new dL(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return pL(this).rgb()}}));var fL=e=>()=>e;function hL(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):fL(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?hL: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):fL(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=HO(e)).r,(t=HO(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=hL(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var gL,mL="center",vL="bottom";function bL(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 yL(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=_L)):void 0===t&&(t=xL);for(var n,r,o,i,a,l=new SL(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new SL(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(EL)}function xL(e){return e.children}function _L(e){return Array.isArray(e)?e[1]:null}function CL(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function EL(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function SL(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:mL,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:mL,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:mL,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:mL},{key:"DataRangeIncludingZero",alignment:vL},{key:"LimitedData",alignment:vL},{key:"NegativeOrZeroValues",alignment:vL}].reduce((function(e,t){return e[t.key]=t,e}),{}),SL.prototype=yL.prototype={constructor:SL,count:function(){return this.eachAfter(bL)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return yL(this).eachBefore(CL)},[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)}},gL=function(e){
|
|
88
100
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
89
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",
|
|
101
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",g=e.split("").reverse().join(""),m=g.search(/[0-9\-\+#]/),v=p-m,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=m>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,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))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(g="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)g+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(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}},gL({exports:{}});const wL=e=>`text-toolbar.${null==e?void 0:e.id}`;function kL(){const{element:e,edit:t,model:n,flags:r,theme:o}=y(D),i=R((()=>(null==e?void 0:e.closest(".qv-inner-object"))||e),[e]),a=R((()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?bO:vO}(r)),[r]),l=R((()=>(e=>{const t=null==e?void 0:e.getDataColorPickerPalettes();if(t&&(null==t?void 0:t.length)>0)return["#404040",...t[0].colors.filter((e=>"none"!==e))]})(o)),[o]);return m.createElement(Dd,{open:t,anchorEl:i,placement:"top",transition:!0,sx:{zIndex:1},id:wL(n)},(({TransitionProps:e})=>m.createElement(Sp,{...e},m.createElement(Nu,{sx:{borderRadius:1,padding:.25}},m.createElement(uT,null,m.createElement(xT,{compact:!0}),m.createElement(vN,null),m.createElement(oN,{compact:!0,fonts:a}),m.createElement(sN,{compact:!0}),m.createElement(vN,null),m.createElement(wT,null),m.createElement(pN,null),m.createElement(mN,null),m.createElement(hN,null),m.createElement(rN,{colorPalette:l}),m.createElement(vN,null),m.createElement(gT,{compact:!0}),m.createElement(vN,null),m.createElement(TT,null),m.createElement(vN,null),m.createElement(cN,null))))))}function RL({interactionState:e}){const{initialData:t,lang:n,flags:r}=y(D),o=!(!1===(null==e?void 0:e.edit)&&null!=r&&r.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));S((()=>{!function(e){const t=Object.entries(ON[e.toLowerCase()]).reduce(((e,[t,n])=>({...e,[t]:n.value})),{});Zk.append(t)}(n)}),[n]);const i=R((()=>{if(void 0!==t){return(e=>{var t;let n=aA.nodes;e.nodes&&(n=null===(t=aA.nodes)||void 0===t?void 0:t.concat(e.nodes));const r=e.initialData?e.initialData:void 0;return{...aA,nodes:n,editorState:r}})({initialData:t||void 0,nodes:[...GA,JN]})}return null}),[t]);return i?m.createElement("div",{className:"hideScrollBar"},m.createElement(lA,{initialConfig:i,flags:r},m.createElement(kL,null),m.createElement(nT,{showPlaceholder:o}),m.createElement(eT,null),m.createElement(nO,null),m.createElement(ZN,null),m.createElement(oO,null))):null}!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))}}(".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");const AL=({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:l,flags:s,theme:u,interactionState:c,readyToPrint:d})=>{e.render(m.createElement(m.StrictMode,null,m.createElement(D.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:l,flags:s,theme:u,readyToPrint:d}},m.createElement(RL,{interactionState:c}))))},TL={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:VN,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"}]}}}}},NL={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 OL{constructor(){LN(this,"selectedModelId",void 0),LN(this,"getSelectedModelId",(()=>this.selectedModelId)),LN(this,"snTexts",{}),LN(this,"getSnTexts",(()=>this.snTexts)),LN(this,"sync",(({modelId:e})=>{this.snTexts[e]={propertiesHaveBeenModified:!1}})),LN(this,"setSelectedModelId",(e=>{this.selectedModelId=e})),LN(this,"setPropertiesHaveBeenModified",((e,t)=>{this.snTexts[e]={propertiesHaveBeenModified:t}})),LN(this,"setPropertiesHaveBeenModifiedForSelectedModel",(e=>{this.selectedModelId&&(this.snTexts[this.selectedModelId]={propertiesHaveBeenModified:e})})),LN(this,"destroy",(e=>{delete this.snTexts[e]}))}}}}}));
|