roosterjs 8.40.0 → 8.40.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- define((function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=123)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIntersectedRect=t.moveChildNodes=t.KnownCreateElementData=t.createElement=t.matchesSelector=t.setColor=t.getInnerHTML=t.readFile=t.safeInstanceOf=t.normalizeRect=t.splitTextNode=t.getLastLeafNode=t.getFirstLeafNode=t.getPreviousLeafSibling=t.getNextLeafSibling=t.wrap=t.unwrap=t.splitBalancedNodeRange=t.splitParentNode=t.queryElements=t.matchLink=t.isVoidHtmlElement=t.isNodeEmpty=t.isBlockElement=t.getTagOfNode=t.PendableFormatCommandMap=t.getPendableFormatState=t.getComputedStyle=t.getComputedStyles=t.fromHtml=t.findClosestElementAncestor=t.contains=t.collapseNodes=t.changeElementTag=t.applyFormat=t.getBrowserInfo=t.Browser=t.extractClipboardItemsForIE=t.extractClipboardItems=t.extractClipboardEvent=t.applyTextStyle=t.PartialInlineElement=t.NodeInlineElement=t.LinkInlineElement=t.ImageInlineElement=t.getInlineElementAtNode=t.PositionContentSearcher=t.ContentTraverser=t.getFirstLastBlockElement=t.getBlockElementAtNode=void 0,t.getStyles=t.isCtrlOrMetaPressed=t.isCharacterValue=t.isModifierKey=t.clearEventDataCache=t.cacheGetEventData=t.restoreContentWithEntityPlaceholder=t.moveContentWithEntityPlaceholders=t.createEntityPlaceholder=t.getEntitySelector=t.getEntityFromElement=t.commitEntity=t.chainSanitizerCallback=t.createDefaultHtmlSanitizerOptions=t.getInheritableStyles=t.HtmlSanitizer=t.canUndoAutoComplete=t.createSnapshots=t.moveCurrentSnapsnot=t.moveCurrentSnapshot=t.clearProceedingSnapshotsV2=t.clearProceedingSnapshots=t.canMoveCurrentSnapshot=t.addSnapshotV2=t.addSnapshot=t.addRangeToSelection=t.setHtmlWithMetadata=t.setHtmlWithSelectionPath=t.getHtmlWithSelectionPath=t.getSelectionPath=t.isPositionAtBeginningOf=t.getPositionRect=t.createRange=t.Position=t.mergeBlocksInRegion=t.getSelectionRangeInRegion=t.isNodeInRegion=t.collapseNodesInRegion=t.getSelectedBlockElementsInRegion=t.getRegionsFromRange=t.saveTableCellMetadata=t.getTableFormatInfo=t.setListItemStyle=t.VListChain=t.createVListFromRegion=t.VListItem=t.VList=t.isWholeTableSelected=t.VTable=t.isNodeAfter=void 0,t.toArray=t.getObjectKeys=t.arrayPush=t.removeMetadata=t.setMetadata=t.getMetadata=t.createObjectDefinition=t.createArrayDefinition=t.createStringDefinition=t.createBooleanDefinition=t.createNumberDefinition=t.validate=t.getTextContent=t.deleteSelectedContent=t.adjustInsertPosition=t.removeGlobalCssStyle=t.setGlobalCssStyles=t.removeImportantStyleRule=t.setStyles=void 0;var r=n(7);Object.defineProperty(t,"getBlockElementAtNode",{enumerable:!0,get:function(){return r.default}});var o=n(66);Object.defineProperty(t,"getFirstLastBlockElement",{enumerable:!0,get:function(){return o.default}});var i=n(19);Object.defineProperty(t,"ContentTraverser",{enumerable:!0,get:function(){return i.default}});var a=n(71);Object.defineProperty(t,"PositionContentSearcher",{enumerable:!0,get:function(){return a.default}});var l=n(20);Object.defineProperty(t,"getInlineElementAtNode",{enumerable:!0,get:function(){return l.default}});var s=n(67);Object.defineProperty(t,"ImageInlineElement",{enumerable:!0,get:function(){return s.default}});var u=n(47);Object.defineProperty(t,"LinkInlineElement",{enumerable:!0,get:function(){return u.default}});var d=n(35);Object.defineProperty(t,"NodeInlineElement",{enumerable:!0,get:function(){return d.default}});var c=n(37);Object.defineProperty(t,"PartialInlineElement",{enumerable:!0,get:function(){return c.default}});var f=n(45);Object.defineProperty(t,"applyTextStyle",{enumerable:!0,get:function(){return f.default}});var p=n(134);Object.defineProperty(t,"extractClipboardEvent",{enumerable:!0,get:function(){return p.default}});var h=n(72);Object.defineProperty(t,"extractClipboardItems",{enumerable:!0,get:function(){return h.default}});var g=n(73);Object.defineProperty(t,"extractClipboardItemsForIE",{enumerable:!0,get:function(){return g.default}});var v=n(18);Object.defineProperty(t,"Browser",{enumerable:!0,get:function(){return v.Browser}}),Object.defineProperty(t,"getBrowserInfo",{enumerable:!0,get:function(){return v.getBrowserInfo}});var m=n(135);Object.defineProperty(t,"applyFormat",{enumerable:!0,get:function(){return m.default}});var b=n(21);Object.defineProperty(t,"changeElementTag",{enumerable:!0,get:function(){return b.default}});var y=n(26);Object.defineProperty(t,"collapseNodes",{enumerable:!0,get:function(){return y.default}});var C=n(4);Object.defineProperty(t,"contains",{enumerable:!0,get:function(){return C.default}});var E=n(14);Object.defineProperty(t,"findClosestElementAncestor",{enumerable:!0,get:function(){return E.default}});var S=n(65);Object.defineProperty(t,"fromHtml",{enumerable:!0,get:function(){return S.default}});var w=n(46);Object.defineProperty(t,"getComputedStyles",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"getComputedStyle",{enumerable:!0,get:function(){return w.getComputedStyle}});var T=n(136);Object.defineProperty(t,"getPendableFormatState",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"PendableFormatCommandMap",{enumerable:!0,get:function(){return T.PendableFormatCommandMap}});var O=n(2);Object.defineProperty(t,"getTagOfNode",{enumerable:!0,get:function(){return O.default}});var P=n(27);Object.defineProperty(t,"isBlockElement",{enumerable:!0,get:function(){return P.default}});var _=n(38);Object.defineProperty(t,"isNodeEmpty",{enumerable:!0,get:function(){return _.default}});var M=n(44);Object.defineProperty(t,"isVoidHtmlElement",{enumerable:!0,get:function(){return M.default}});var x=n(137);Object.defineProperty(t,"matchLink",{enumerable:!0,get:function(){return x.default}});var N=n(23);Object.defineProperty(t,"queryElements",{enumerable:!0,get:function(){return N.default}});var R=n(17);Object.defineProperty(t,"splitParentNode",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"splitBalancedNodeRange",{enumerable:!0,get:function(){return R.splitBalancedNodeRange}});var I=n(39);Object.defineProperty(t,"unwrap",{enumerable:!0,get:function(){return I.default}});var L=n(15);Object.defineProperty(t,"wrap",{enumerable:!0,get:function(){return L.default}});var D=n(10);Object.defineProperty(t,"getNextLeafSibling",{enumerable:!0,get:function(){return D.getNextLeafSibling}}),Object.defineProperty(t,"getPreviousLeafSibling",{enumerable:!0,get:function(){return D.getPreviousLeafSibling}});var k=n(69);Object.defineProperty(t,"getFirstLeafNode",{enumerable:!0,get:function(){return k.getFirstLeafNode}}),Object.defineProperty(t,"getLastLeafNode",{enumerable:!0,get:function(){return k.getLastLeafNode}});var A=n(36);Object.defineProperty(t,"splitTextNode",{enumerable:!0,get:function(){return A.default}});var j=n(40);Object.defineProperty(t,"normalizeRect",{enumerable:!0,get:function(){return j.default}});var B=n(1);Object.defineProperty(t,"safeInstanceOf",{enumerable:!0,get:function(){return B.default}});var F=n(49);Object.defineProperty(t,"readFile",{enumerable:!0,get:function(){return F.default}});var z=n(74);Object.defineProperty(t,"getInnerHTML",{enumerable:!0,get:function(){return z.default}});var H=n(50);Object.defineProperty(t,"setColor",{enumerable:!0,get:function(){return H.default}});var U=n(64);Object.defineProperty(t,"matchesSelector",{enumerable:!0,get:function(){return U.default}});var V=n(28);Object.defineProperty(t,"createElement",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"KnownCreateElementData",{enumerable:!0,get:function(){return V.KnownCreateElementData}});var W=n(22);Object.defineProperty(t,"moveChildNodes",{enumerable:!0,get:function(){return W.default}});var K=n(138);Object.defineProperty(t,"getIntersectedRect",{enumerable:!0,get:function(){return K.default}});var q=n(13);Object.defineProperty(t,"isNodeAfter",{enumerable:!0,get:function(){return q.default}});var G=n(75);Object.defineProperty(t,"VTable",{enumerable:!0,get:function(){return G.default}});var Y=n(140);Object.defineProperty(t,"isWholeTableSelected",{enumerable:!0,get:function(){return Y.default}});var X=n(53);Object.defineProperty(t,"VList",{enumerable:!0,get:function(){return X.default}});var Z=n(77);Object.defineProperty(t,"VListItem",{enumerable:!0,get:function(){return Z.default}});var $=n(145);Object.defineProperty(t,"createVListFromRegion",{enumerable:!0,get:function(){return $.default}});var Q=n(146);Object.defineProperty(t,"VListChain",{enumerable:!0,get:function(){return Q.default}});var J=n(78);Object.defineProperty(t,"setListItemStyle",{enumerable:!0,get:function(){return J.default}});var ee=n(76);Object.defineProperty(t,"getTableFormatInfo",{enumerable:!0,get:function(){return ee.getTableFormatInfo}});var te=n(51);Object.defineProperty(t,"saveTableCellMetadata",{enumerable:!0,get:function(){return te.saveTableCellMetadata}});var ne=n(81);Object.defineProperty(t,"getRegionsFromRange",{enumerable:!0,get:function(){return ne.default}});var re=n(80);Object.defineProperty(t,"getSelectedBlockElementsInRegion",{enumerable:!0,get:function(){return re.default}});var oe=n(82);Object.defineProperty(t,"collapseNodesInRegion",{enumerable:!0,get:function(){return oe.default}});var ie=n(33);Object.defineProperty(t,"isNodeInRegion",{enumerable:!0,get:function(){return ie.default}});var ae=n(55);Object.defineProperty(t,"getSelectionRangeInRegion",{enumerable:!0,get:function(){return ae.default}});var le=n(83);Object.defineProperty(t,"mergeBlocksInRegion",{enumerable:!0,get:function(){return le.default}});var se=n(5);Object.defineProperty(t,"Position",{enumerable:!0,get:function(){return se.default}});var ue=n(11);Object.defineProperty(t,"createRange",{enumerable:!0,get:function(){return ue.default}});var de=n(147);Object.defineProperty(t,"getPositionRect",{enumerable:!0,get:function(){return de.default}});var ce=n(85);Object.defineProperty(t,"isPositionAtBeginningOf",{enumerable:!0,get:function(){return ce.default}});var fe=n(86);Object.defineProperty(t,"getSelectionPath",{enumerable:!0,get:function(){return fe.default}});var pe=n(148);Object.defineProperty(t,"getHtmlWithSelectionPath",{enumerable:!0,get:function(){return pe.default}});var he=n(149);Object.defineProperty(t,"setHtmlWithSelectionPath",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"setHtmlWithMetadata",{enumerable:!0,get:function(){return he.setHtmlWithMetadata}});var ge=n(150);Object.defineProperty(t,"addRangeToSelection",{enumerable:!0,get:function(){return ge.default}});var ve=n(151);Object.defineProperty(t,"addSnapshot",{enumerable:!0,get:function(){return ve.default}}),Object.defineProperty(t,"addSnapshotV2",{enumerable:!0,get:function(){return ve.addSnapshotV2}});var me=n(57);Object.defineProperty(t,"canMoveCurrentSnapshot",{enumerable:!0,get:function(){return me.default}});var be=n(87);Object.defineProperty(t,"clearProceedingSnapshots",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(t,"clearProceedingSnapshotsV2",{enumerable:!0,get:function(){return be.clearProceedingSnapshotsV2}});var ye=n(152);Object.defineProperty(t,"moveCurrentSnapshot",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(t,"moveCurrentSnapsnot",{enumerable:!0,get:function(){return ye.moveCurrentSnapsnot}});var Ce=n(153);Object.defineProperty(t,"createSnapshots",{enumerable:!0,get:function(){return Ce.default}});var Ee=n(154);Object.defineProperty(t,"canUndoAutoComplete",{enumerable:!0,get:function(){return Ee.default}});var Se=n(155);Object.defineProperty(t,"HtmlSanitizer",{enumerable:!0,get:function(){return Se.default}});var we=n(88);Object.defineProperty(t,"getInheritableStyles",{enumerable:!0,get:function(){return we.default}});var Te=n(158);Object.defineProperty(t,"createDefaultHtmlSanitizerOptions",{enumerable:!0,get:function(){return Te.default}});var Oe=n(159);Object.defineProperty(t,"chainSanitizerCallback",{enumerable:!0,get:function(){return Oe.default}});var Pe=n(160);Object.defineProperty(t,"commitEntity",{enumerable:!0,get:function(){return Pe.default}});var _e=n(90);Object.defineProperty(t,"getEntityFromElement",{enumerable:!0,get:function(){return _e.default}});var Me=n(91);Object.defineProperty(t,"getEntitySelector",{enumerable:!0,get:function(){return Me.default}});var xe=n(161);Object.defineProperty(t,"createEntityPlaceholder",{enumerable:!0,get:function(){return xe.createEntityPlaceholder}}),Object.defineProperty(t,"moveContentWithEntityPlaceholders",{enumerable:!0,get:function(){return xe.moveContentWithEntityPlaceholders}}),Object.defineProperty(t,"restoreContentWithEntityPlaceholder",{enumerable:!0,get:function(){return xe.restoreContentWithEntityPlaceholder}});var Ne=n(162);Object.defineProperty(t,"cacheGetEventData",{enumerable:!0,get:function(){return Ne.default}});var Re=n(163);Object.defineProperty(t,"clearEventDataCache",{enumerable:!0,get:function(){return Re.default}});var Ie=n(92);Object.defineProperty(t,"isModifierKey",{enumerable:!0,get:function(){return Ie.default}});var Le=n(164);Object.defineProperty(t,"isCharacterValue",{enumerable:!0,get:function(){return Le.default}});var De=n(165);Object.defineProperty(t,"isCtrlOrMetaPressed",{enumerable:!0,get:function(){return De.default}});var ke=n(31);Object.defineProperty(t,"getStyles",{enumerable:!0,get:function(){return ke.default}});var Ae=n(32);Object.defineProperty(t,"setStyles",{enumerable:!0,get:function(){return Ae.default}});var je=n(166);Object.defineProperty(t,"removeImportantStyleRule",{enumerable:!0,get:function(){return je.default}});var Be=n(167);Object.defineProperty(t,"setGlobalCssStyles",{enumerable:!0,get:function(){return Be.default}});var Fe=n(168);Object.defineProperty(t,"removeGlobalCssStyle",{enumerable:!0,get:function(){return Fe.default}});var ze=n(169);Object.defineProperty(t,"adjustInsertPosition",{enumerable:!0,get:function(){return ze.default}});var He=n(172);Object.defineProperty(t,"deleteSelectedContent",{enumerable:!0,get:function(){return He.default}});var Ue=n(173);Object.defineProperty(t,"getTextContent",{enumerable:!0,get:function(){return Ue.default}});var Ve=n(52);Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return Ve.default}});var We=n(30);Object.defineProperty(t,"createNumberDefinition",{enumerable:!0,get:function(){return We.createNumberDefinition}}),Object.defineProperty(t,"createBooleanDefinition",{enumerable:!0,get:function(){return We.createBooleanDefinition}}),Object.defineProperty(t,"createStringDefinition",{enumerable:!0,get:function(){return We.createStringDefinition}}),Object.defineProperty(t,"createArrayDefinition",{enumerable:!0,get:function(){return We.createArrayDefinition}}),Object.defineProperty(t,"createObjectDefinition",{enumerable:!0,get:function(){return We.createObjectDefinition}});var Ke=n(24);Object.defineProperty(t,"getMetadata",{enumerable:!0,get:function(){return Ke.getMetadata}}),Object.defineProperty(t,"setMetadata",{enumerable:!0,get:function(){return Ke.setMetadata}}),Object.defineProperty(t,"removeMetadata",{enumerable:!0,get:function(){return Ke.removeMetadata}});var qe=n(56);Object.defineProperty(t,"arrayPush",{enumerable:!0,get:function(){return qe.default}});var Ge=n(8);Object.defineProperty(t,"getObjectKeys",{enumerable:!0,get:function(){return Ge.default}});var Ye=n(6);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return Ye.default}})},function(e,t,n){"use strict";function r(e){var t=e&&(e.ownerDocument||("[object HTMLDocument]"==Object.prototype.toString.apply(e)?e:null));return t&&(t.defaultView||window)}Object.defineProperty(t,"__esModule",{value:!0}),t.getTargetWindow=void 0,t.getTargetWindow=r,t.default=function(e,t){var n;if("Range"==t)return"[object Range]"==Object.prototype.toString.apply(e)&&!!(null===(n=e)||void 0===n?void 0:n.commonAncestorContainer);var o=r(e),i=o&&o[t],a=window,l=a&&a[t];return l&&e instanceof l||i&&e instanceof i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&1==e.nodeType?e.tagName.toUpperCase():""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){e.addUndoSnapshot(t,"Format",void 0,n&&{formatApiName:n})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default=function(e,t,n){return!(!e||!t)&&(!(!n||e!=t)||((0,r.default)(t,"Range")&&(t=t&&t.commonAncestorContainer,n=!0),t&&3==t.nodeType&&(t=t.parentNode,n=!0),1!=e.nodeType&&11!=e.nodeType?!!n&&e==t:!(!n&&e==t)&&function(e,t){if(e.contains)return e.contains(t);for(;t;){if(t==e)return!0;t=t.parentNode}return!1}(e,t)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),o=n(13),i=function(){function e(e,t,n){switch(void 0===t&&(t=0),this.isFromEndOfRange=n,e.node?(this.node=e.node,t=e.offset):this.node=e,t){case-2:this.offset=a(this.node),this.node=this.node.parentNode,this.isAtEnd=!1;break;case-3:this.offset=a(this.node)+1,this.isAtEnd=!this.node.nextSibling,this.node=this.node.parentNode;break;case-1:this.offset=l(this.node),this.isAtEnd=!0;break;default:var o=l(this.node);this.offset=Math.max(0,Math.min(t,o)),this.isAtEnd=t>0&&t>=o}this.element=(0,r.default)(this.node)}return e.prototype.normalize=function(){if(3==this.node.nodeType||!this.node.firstChild)return this;for(var t=this.node,n=this.isAtEnd?-1:this.offset;1==t.nodeType||11==t.nodeType;){var r=this.isFromEndOfRange?-1==n?t.lastChild:t.childNodes[n-1]:0==n?t.firstChild:-1==n?t.lastChild:t.childNodes[n];if(!r)break;t=r,n=this.isAtEnd||this.isFromEndOfRange?-1:0}return new e(t,n,this.isFromEndOfRange)},e.prototype.equalTo=function(e){return e&&(this==e||this.node==e.node&&this.offset==e.offset&&this.isAtEnd==e.isAtEnd)},e.prototype.isAfter=function(e){return this.node==e.node?this.isAtEnd&&!e.isAtEnd||this.offset>e.offset:(0,o.default)(this.node,e.node)},e.prototype.move=function(t){return new e(this.node,Math.max(this.offset+t,0))},e.getStart=function(t){return new e(t.startContainer,t.startOffset)},e.getEnd=function(t){return t.collapsed?e.getStart(t):new e(t.endContainer,t.endOffset,!0)},e}();function a(e){for(var t=0;e=(null==e?void 0:e.previousSibling)||null;)t++;return t}function l(e){var t;return 3==e.nodeType?(null===(t=e.nodeValue)||void 0===t?void 0:t.length)||0:1==e.nodeType||11==e.nodeType?e.childNodes.length:1}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),o=n(4),i=n(2),a=n(27),l=n(63),s=n(130);function u(e,t,n){var r=e;if("BR"==(0,i.default)(r)&&n)return r;for(;r;){for(var o=e;e.parentNode&&!(o=n?e.nextSibling:e.previousSibling);)if((e=e.parentNode)==t)return r;for(;o;){if((0,a.default)(o))return r;if("BR"==(0,i.default)(o))return n?o:r;e=o,o=n?e.firstChild:e.lastChild}r=e}return r}t.default=function(e,t){if(!(0,o.default)(e,t))return null;var n=s.default.getBlockContext(t);if(!n)return null;if(n==t)return new l.default(n);var i=u(t,n,!1),d=u(t,n,!0),c=(0,r.default)(e,i,d,!1);if(i=c[0],d=c[c.length-1],i.parentNode!=d.parentNode)return new s.default(e,i,d);for(;!i.previousSibling&&!d.nextSibling;){var f=i.parentNode;if(f==n){n!=e&&(i=d=f);break}if(!f||f==e)break;i=d=f}return i==d&&(0,a.default)(i)?new l.default(i):new s.default(e,i,d)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.experimentCommitListChains=t.commitListChains=t.blockFormat=t.toggleListType=t.applyCellShading=t.toggleHeader=t.toggleUnderline=t.toggleSuperscript=t.toggleSubscript=t.toggleStrikethrough=t.toggleCodeBlock=t.toggleBlockQuote=t.setOrderedListNumbering=t.toggleNumbering=t.toggleItalic=t.toggleBullet=t.toggleBold=t.changeCapitalization=t.setIndentation=t.setImageAltText=t.setFontSize=t.setFontName=t.setDirection=t.setTextColor=t.setBackgroundColor=t.setAlignment=t.rotateElement=t.replaceWithNode=t.removeLink=t.formatTable=t.editTable=t.insertTable=t.insertImage=t.insertEntity=t.getElementBasedFormatState=t.getFormatState=t.createLink=t.clearFormat=t.clearBlockFormat=t.FONT_SIZES=t.changeFontSize=void 0;var r=n(215);Object.defineProperty(t,"changeFontSize",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"FONT_SIZES",{enumerable:!0,get:function(){return r.FONT_SIZES}});var o=n(216);Object.defineProperty(t,"clearBlockFormat",{enumerable:!0,get:function(){return o.default}});var i=n(100);Object.defineProperty(t,"clearFormat",{enumerable:!0,get:function(){return i.default}});var a=n(217);Object.defineProperty(t,"createLink",{enumerable:!0,get:function(){return a.default}});var l=n(218);Object.defineProperty(t,"getFormatState",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"getElementBasedFormatState",{enumerable:!0,get:function(){return l.getElementBasedFormatState}});var s=n(219);Object.defineProperty(t,"insertEntity",{enumerable:!0,get:function(){return s.default}});var u=n(220);Object.defineProperty(t,"insertImage",{enumerable:!0,get:function(){return u.default}});var d=n(221);Object.defineProperty(t,"insertTable",{enumerable:!0,get:function(){return d.default}});var c=n(222);Object.defineProperty(t,"editTable",{enumerable:!0,get:function(){return c.default}});var f=n(223);Object.defineProperty(t,"formatTable",{enumerable:!0,get:function(){return f.default}});var p=n(224);Object.defineProperty(t,"removeLink",{enumerable:!0,get:function(){return p.default}});var h=n(225);Object.defineProperty(t,"replaceWithNode",{enumerable:!0,get:function(){return h.default}});var g=n(226);Object.defineProperty(t,"rotateElement",{enumerable:!0,get:function(){return g.default}});var v=n(227);Object.defineProperty(t,"setAlignment",{enumerable:!0,get:function(){return v.default}});var m=n(59);Object.defineProperty(t,"setBackgroundColor",{enumerable:!0,get:function(){return m.default}});var b=n(103);Object.defineProperty(t,"setTextColor",{enumerable:!0,get:function(){return b.default}});var y=n(228);Object.defineProperty(t,"setDirection",{enumerable:!0,get:function(){return y.default}});var C=n(101);Object.defineProperty(t,"setFontName",{enumerable:!0,get:function(){return C.default}});var E=n(102);Object.defineProperty(t,"setFontSize",{enumerable:!0,get:function(){return E.default}});var S=n(230);Object.defineProperty(t,"setImageAltText",{enumerable:!0,get:function(){return S.default}});var w=n(231);Object.defineProperty(t,"setIndentation",{enumerable:!0,get:function(){return w.default}});var T=n(232);Object.defineProperty(t,"changeCapitalization",{enumerable:!0,get:function(){return T.default}});var O=n(104);Object.defineProperty(t,"toggleBold",{enumerable:!0,get:function(){return O.default}});var P=n(233);Object.defineProperty(t,"toggleBullet",{enumerable:!0,get:function(){return P.default}});var _=n(105);Object.defineProperty(t,"toggleItalic",{enumerable:!0,get:function(){return _.default}});var M=n(234);Object.defineProperty(t,"toggleNumbering",{enumerable:!0,get:function(){return M.default}});var x=n(235);Object.defineProperty(t,"setOrderedListNumbering",{enumerable:!0,get:function(){return x.default}});var N=n(236);Object.defineProperty(t,"toggleBlockQuote",{enumerable:!0,get:function(){return N.default}});var R=n(237);Object.defineProperty(t,"toggleCodeBlock",{enumerable:!0,get:function(){return R.default}});var I=n(238);Object.defineProperty(t,"toggleStrikethrough",{enumerable:!0,get:function(){return I.default}});var L=n(239);Object.defineProperty(t,"toggleSubscript",{enumerable:!0,get:function(){return L.default}});var D=n(240);Object.defineProperty(t,"toggleSuperscript",{enumerable:!0,get:function(){return D.default}});var k=n(106);Object.defineProperty(t,"toggleUnderline",{enumerable:!0,get:function(){return k.default}});var A=n(241);Object.defineProperty(t,"toggleHeader",{enumerable:!0,get:function(){return A.default}});var j=n(242);Object.defineProperty(t,"applyCellShading",{enumerable:!0,get:function(){return j.default}});var B=n(60);Object.defineProperty(t,"toggleListType",{enumerable:!0,get:function(){return B.default}});var F=n(25);Object.defineProperty(t,"blockFormat",{enumerable:!0,get:function(){return F.default}});var z=n(58);Object.defineProperty(t,"commitListChains",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"experimentCommitListChains",{enumerable:!0,get:function(){return z.experimentCommitListChains}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPreviousLeafSibling=t.getNextLeafSibling=t.getLeafSibling=void 0;var r=n(4),o=n(2),i=n(29);function a(e,t,n,a,l){var s=null,u=n?function(e){return(null==e?void 0:e.nextSibling)||null}:function(e){return(null==e?void 0:e.previousSibling)||null},d=n?function(e){return e.firstChild}:function(e){return e.lastChild};if((0,r.default)(e,t))for(var c=t,f=!0;f;){var p=(null==c?void 0:c.parentNode)||null;for(c=u(c);!c&&p!=e;)c=u(p),p=(null==p?void 0:p.parentNode)||null;for(;c&&(!a||a.indexOf((0,o.default)(c))<0)&&d(c);)c=d(c);if(!(f=!!c&&(0,i.default)(c,l))){s=c;break}}return s}t.getLeafSibling=a,t.getNextLeafSibling=function(e,t,n){return a(e,t,!0,n)},t.getPreviousLeafSibling=function(e,t,n){return a(e,t,!1,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(44),o=n(5),i=n(1);function a(e){return 1==e.node.nodeType&&(0,r.default)(e.node)?new o.default(e.node,e.isAtEnd?-3:-2):e}function l(e){return e&&e.node}function s(e,t){if(!e||!t)return null;for(var n=0,r=0;r<t.length&&(n=t[r],r<t.length-1&&e&&1==e.nodeType&&e.childNodes.length>n);r++)e=e.childNodes[n];return new o.default(e,n)}t.default=function(e,t,n,r){var u,d=null,c=null;if(l(e)?(d=e,c=l(t)?t:null):(0,i.default)(e,"Node")&&(Array.isArray(t)?(d=s(e,t),c=Array.isArray(n)?s(e,n):null):"number"==typeof t?(d=new o.default(e,t),c=(0,i.default)(n,"Node")?new o.default(n,r):null):!(0,i.default)(t,"Node")&&t||(d=new o.default(e,-2),c=new o.default(t||e,-3))),null===(u=null==d?void 0:d.node)||void 0===u?void 0:u.ownerDocument){var f=d.node.ownerDocument.createRange();return d=a(d),c=a(c||d),f.setStart(d.node,d.offset),f.setEnd(c.node,c.offset),f}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t,n){e.focus();var i=function(){return e.getDocument().execCommand(t,!1,null)},a=e.getSelectionRangeEx();if(a&&a.areAllCollapsed){e.addUndoSnapshot();var l=e.getPendableFormatState(!1);i();var s=(0,o.getObjectKeys)(o.PendableFormatCommandMap).filter((function(e){return o.PendableFormatCommandMap[e]==t}))[0];s&&(l[s]=!l[s],e.triggerPluginEvent(13,{formatState:l}))}else(0,r.default)(e,(function(){var t=0!=a.type;a.ranges.forEach((function(n){t&&e.select(n),i()})),t&&e.select(a)}),n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!e||!t||4!=(4&t.compareDocumentPosition(e)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(64);t.default=function(e,t,n){var i=(e=e?1==e.nodeType?e:e.parentNode:null)&&1==e.nodeType?e:null;if(i&&n)if(i.closest)i=i.closest(n);else for(;i&&i!=t&&!(0,o.default)(i,n);)i=i.parentElement;return!t||(0,r.default)(t,i)?i:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),o=n(65),i=n(1);t.default=function(e,t){if(0==(e=e?(0,i.default)(e,"Node")?[e]:e:[]).length||!e[0]||!e[0].ownerDocument)return null;if(t||(t="div"),!(0,i.default)(t,"HTMLElement")){var n=e[0].ownerDocument;t="string"==typeof t?/^\w+$/.test(t)?n.createElement(t):(0,o.default)(t,n)[0]:(0,r.default)(t,n)}var a=e[0].parentNode;a&&a.insertBefore(t,e[0]);for(var l=0,s=e;l<s.length;l++){var u=s[l];t.appendChild(u)}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WAC_IDENTIFY_SELECTOR=t.PROG_ID_NAME=t.GOOGLE_SHEET_NODE_NAME=void 0,t.GOOGLE_SHEET_NODE_NAME="google-sheets-html-origin",t.PROG_ID_NAME="ProgId",t.WAC_IDENTIFY_SELECTOR='ul[class^="BulletListStyle"]>.OutlineElement,ol[class^="NumberListStyle"]>.OutlineElement,span.WACImageContainer'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitBalancedNodeRange=void 0;var r=n(13);function o(e,t){var n;if(!e||!e.parentNode)return null;var r=e.parentNode,o=r.cloneNode(!1);if(o.removeAttribute("id"),t)for(;r.firstChild&&r.firstChild!=e;)o.appendChild(r.firstChild);else for(;e.nextSibling;)o.appendChild(e.nextSibling);return o.firstChild&&""!=o.innerHTML?null===(n=r.parentNode)||void 0===n||n.insertBefore(o,t?r:r.nextSibling):o=null,o}t.default=o,t.splitBalancedNodeRange=function(e){var t=Array.isArray(e)?e[0]:e,n=Array.isArray(e)?e[e.length-1]:e,i=t&&n&&t.parentNode==n.parentNode?t.parentNode:null;if(i){if((0,r.default)(t,n)){var a=n;n=t,t=a}o(t,!0),o(n,!1)}return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Browser=t.getBrowserInfo=void 0;var r=/android/i;function o(e,t,n){var o,i=-1!=e.indexOf("rv:")&&-1!=e.indexOf("Trident"),a=-1!=e.indexOf("MSIE")||i,l=!1,s=!1,u=!1,d=!1,c=-1!=e.indexOf("WebKit"),f=!1;return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(o=e||n||"")||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(o.substr(0,4)))&&(f=!0),a||(l=-1!=e.indexOf("Chrome"),s=-1!=e.indexOf("Firefox"),-1!=e.indexOf("Safari")&&(u=-1==e.indexOf("Chrome")&&-1==e.indexOf("Android")),(d=-1!=e.indexOf("Edge"))&&(c=l=s=!1)),{isMac:-1!=t.indexOf("Mac"),isWin:-1!=t.indexOf("Win")||-1!=t.indexOf("NT"),isWebKit:c,isIE:a,isIE11OrGreater:i,isSafari:u,isChrome:l,isFirefox:s,isEdge:d,isIEOrEdge:a||d,isAndroid:r.test(e),isMobileOrTablet:f}}t.getBrowserInfo=o,t.Browser="undefined"!=typeof window&&window?o(window.navigator.userAgent,window.navigator.appVersion,window.navigator.vendor):{}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(131),o=n(70),i=n(7),a=n(20),l=n(37),s=n(132),u=n(133),d=n(48),c=n(10),f=function(){function e(e,t){this.scoper=e,this.skipTags=t,this.currentInline=null,this.currentBlock=null}return e.createBodyTraverser=function(t,n,o){return new e(new r.default(t,n))},e.createSelectionTraverser=function(t,n,r){return new e(new u.default(t,n),r)},e.createBlockTraverser=function(t,n,r,o){return void 0===r&&(r=3),new e(new s.default(t,n,r))},Object.defineProperty(e.prototype,"currentBlockElement",{get:function(){return this.currentBlock||(this.currentBlock=this.scoper.getStartBlockElement()),this.currentBlock},enumerable:!1,configurable:!0}),e.prototype.getNextBlockElement=function(){return this.getPreviousNextBlockElement(!0)},e.prototype.getPreviousBlockElement=function(){return this.getPreviousNextBlockElement(!1)},e.prototype.getPreviousNextBlockElement=function(e){var t=this.currentBlockElement;if(!t)return null;var n=(0,c.getLeafSibling)(this.scoper.rootNode,e?t.getEndNode():t.getStartNode(),e,this.skipTags),r=n?(0,i.default)(this.scoper.rootNode,n):null;return r&&this.scoper.isBlockInScope(r)&&(e&&r.isAfter(t)||!e&&t.isAfter(r))?(this.currentBlock=r,this.currentBlock):null},Object.defineProperty(e.prototype,"currentInlineElement",{get:function(){return this.currentInline||(this.currentInline=this.scoper.getStartInlineElement()),this.currentInline instanceof o.default?null:this.currentInline},enumerable:!1,configurable:!0}),e.prototype.getNextInlineElement=function(){return this.getPreviousNextInlineElement(!0)},e.prototype.getPreviousInlineElement=function(){return this.getPreviousNextInlineElement(!1)},e.prototype.getPreviousNextInlineElement=function(e){var t,n=this.currentInlineElement||this.currentInline;return n?(n instanceof o.default?(t=(0,d.getInlineElementBeforeAfter)(this.scoper.rootNode,n.getStartPosition(),e))&&!n.getParentBlock().contains(t.getContainerNode())&&(t=null):t=(t=function(e,t,n){if(!t)return null;if(t instanceof l.default){var r=n?t.nextInlineElement:t.previousInlineElement;if(r)return r}var o=t.getContainerNode();return o=(0,c.getLeafSibling)(e,o,n),(0,a.default)(e,o)}(this.scoper.rootNode,n,e))&&n&&(e&&t.isAfter(n)||!e&&n.isAfter(t))?t:null,t&&(t=this.scoper.trimInlineElement(t))?(this.currentInline=t,this.currentInline):null):null},e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(2),i=n(67),a=n(47),l=n(35),s=n(1);t.default=function(e,t){var n=(0,s.default)(e,"Node")?(0,r.default)(e,t):e;return t&&n&&function(e,t){for(var n,r=[e],s=e.parentNode;s&&t.contains(s);s=s.parentNode)r.push(s);for(var u=r.length-1;u>=0&&!n;u--){var d=r[u],c=(0,o.default)(d);"A"==c?n=new a.default(d,t):"IMG"==c&&(n=new i.default(d,t))}return n||new l.default(e,t)}(t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(46),o=n(2),i=n(22);t.default=function(e,t){var n;if(!e||!t)return null;var a=(0,o.default)(e);if(a==t.toUpperCase())return e;for(var l=e.ownerDocument.createElement(t),s=0;s<e.attributes.length;s++){var u=e.attributes[s];l.setAttribute(u.name,u.value)}return(0,i.default)(l,e),"P"!=a&&"P"!=(0,o.default)(l)||(n=(0,r.default)(e,["margin-top","margin-bottom"]),l.style.marginTop=n[0],l.style.marginBottom=n[1]),e.parentNode&&e.parentNode.replaceChild(l,e),l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(e){for(;!n&&e.firstChild;)e.removeChild(e.firstChild);for(;null==t?void 0:t.firstChild;)e.appendChild(t.firstChild)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);function o(e,t){return t.some((function(t){return 0==t?0==e:(e&t)==t}))}t.default=function(e,t,n,i,a){if(void 0===i&&(i=0),!e||!t)return[];var l=(0,r.default)(e.querySelectorAll(t));if(0!=i&&a){var s=a.startContainer,u=a.startOffset,d=a.endContainer,c=a.endOffset;if(1==s.nodeType&&s.firstChild){var f=s.childNodes[u];s=f||s.lastChild}d=1==d.nodeType&&d.firstChild&&c>0?d.childNodes[c-1]:d,l=l.filter((function(e){return function(e,t,n,r){var i=e.compareDocumentPosition(t),a=e.compareDocumentPosition(n),l=[0,8];r||l.push(16);return o(i,l)||o(a,l)||o(i,[2])&&o(a,[4])&&!o(a,[16])}(e,s,d,2==i)}))}return n&&l.forEach(n),l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeMetadata=t.setMetadata=t.getMetadata=void 0;var r=n(52);t.getMetadata=function(e,t,n){var o,i=e.dataset.editingInfo;try{o=i?JSON.parse(i):null}catch(e){}if(void 0!==o){if(!t)return o;if((0,r.default)(o,t))return o}return n||null},t.setMetadata=function(e,t,n){return!(n&&!(0,r.default)(t,n))&&(e.dataset.editingInfo=JSON.stringify(t),!0)},t.removeMetadata=function(e){delete e.dataset.editingInfo}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),o=n(3),i=n(0);t.default=function(e,t,n,a){e.focus();var l=e.getSelectionRangeEx();(0,o.default)(e,(function(o,a){if(!n||n()){var s=e.getSelectedRegions(),u=i.VListChain.createListChains(s,null==o?void 0:o.node);s.forEach((function(e){return t(e,o,a,u)})),(0,r.default)(e,u)}0==l.type?e.select(o,a):e.select(l)}),a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collapse=void 0;var r=n(4),o=n(17),i=n(6);function a(e,t,n,i,a){for(;t.parentNode!=e&&!(0,r.default)(t.parentNode,n);){if(i&&t.previousSibling||!i&&t.nextSibling){if(!a)break;(0,o.default)(t,i)}if(!t.parentNode)break;t=t.parentNode}return t}t.default=function(e,t,n,o){var l;if(!(0,r.default)(e,t)||!(0,r.default)(e,n))return[];if(t=a(e,t,n,!0,o),n=a(e,n,t,!1,o),(0,r.default)(t,n,!0))return[t];if((0,r.default)(n,t))return[n];if(t.parentNode==n.parentNode){var s=t.parentNode?(0,i.default)(null===(l=t.parentNode)||void 0===l?void 0:l.childNodes):[],u=s.indexOf(t),d=s.indexOf(n);return s.slice(u,d+1)}return[t,n]},t.collapse=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o="ADDRESS,ARTICLE,ASIDE,BLOCKQUOTE,CANVAS,DD,DIV,DL,DT,FIELDSET,FIGCAPTION,FIGURE,FOOTER,FORM,H1,H2,H3,H4,H5,H6,HEADER,HR,LI,MAIN,NAV,NOSCRIPT,OL,OUTPUT,P,PRE,SECTION,TABLE,TD,TH,TFOOT,UL,VIDEO".split(","),i=["block","list-item","table-cell"];t.default=function(e){var t=(0,r.default)(e);return!(!t||!(i.indexOf(e.style.display)>=0||o.indexOf(t)>=0))}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.KnownCreateElementData=void 0;var o=n(8),i=n(1),a=n(18);t.KnownCreateElementData=((r={})[0]={tag:""},r[1]=a.Browser.isEdge?{tag:"div",children:[{tag:"span",children:[{tag:"br"}]}]}:{tag:"div",children:[{tag:"br"}]},r[2]={tag:"blockquote",style:"margin-top:0;margin-bottom:0"},r[3]={tag:"div",style:"width: 1px; height: 1px; overflow: hidden; position: fixed; top: 0; left; 0; -webkit-user-select: text",attributes:{contenteditable:"true"}},r[4]={tag:"li",style:"display:block"},r[5]={tag:"div",style:"position: fixed; width: 0; height: 0"},r[6]={tag:"span",style:"max-width:100%;position:fixed",children:[{tag:"div",style:"width:100%;height:100%;position:relative;overflow:hidden"}]},r[7]={tag:"div",style:"position: fixed; cursor: row-resize; user-select: none"},r[8]={tag:"div",style:"position: fixed; cursor: col-resize; user-select: none"},r[9]={tag:"div",style:"position: fixed; cursor: nw-resize; user-select: none; border: 1px solid #808080"},r[10]={tag:"div",style:"position: fixed; cursor: ne-resize; user-select: none; border: 1px solid #808080"},r[11]={tag:"div",style:"position: fixed; cursor: all-scroll; user-select: none; border: 1px solid #808080"},r[12]={tag:"div",children:[{tag:"span",children:[{tag:"br"}]}]},r),t.default=function e(n,r){if("number"==typeof n&&(n=t.KnownCreateElementData[n]),!n||!n.tag)return null;var a=n.tag,l=n.namespace,s=n.className,u=n.style,d=n.dataset,c=n.attributes,f=n.children,p=l?r.createElementNS(l,a):r.createElement(a);return u&&p.setAttribute("style",u),s&&(p.className=s),d&&(0,i.default)(p,"HTMLElement")&&(0,o.default)(d).forEach((function(e){p.dataset[e]=d[e]})),c&&(0,o.default)(c).forEach((function(e){p.setAttribute(e,c[e])})),f&&f.forEach((function(t){if("string"==typeof t)p.appendChild(r.createTextNode(t));else if(t){var n=e(t,r);n&&p.appendChild(n)}})),p}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(46),i=/^[\r\n]+$/g,a=/[\t\r\n\u0020\u200B]/gm;t.default=function e(t,n){if(3==t.nodeType)return!(t.nodeValue&&""!=t.textContent&&!i.test(t.nodeValue))||!(!n||""!=t.nodeValue.replace(a,""));if(1==t.nodeType){if("none"==(0,o.getComputedStyle)(t,"display"))return!0;var l=(0,r.default)(t);if("DIV"==l||"SPAN"==l){for(var s=t.firstChild;s;s=s.nextSibling)if(!e(s,n))return!1;return!0}return!1}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObjectDefinition=t.createArrayDefinition=t.createStringDefinition=t.createBooleanDefinition=t.createNumberDefinition=void 0,t.createNumberDefinition=function(e,t,n,r,o){return{type:1,isOptional:e,value:t,maxValue:r,minValue:n,allowNull:o}},t.createBooleanDefinition=function(e,t,n){return{type:0,isOptional:e,value:t,allowNull:n}},t.createStringDefinition=function(e,t,n){return{type:2,isOptional:e,value:t,allowNull:n}},t.createArrayDefinition=function(e,t,n,r,o){return{type:3,isOptional:t,itemDef:e,minLength:n,maxLength:r,allowNull:o}},t.createObjectDefinition=function(e,t,n){return{type:4,isOptional:t,propertyDef:e,allowNull:n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};return((null==e?void 0:e.getAttribute("style"))||"").split(";").forEach((function(e){var n=e.indexOf(":"),r=e.slice(0,n),o=e.slice(n+1);r&&o&&(t[r.trim()]=o.trim())})),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);t.default=function(e,t){if(e){var n=(0,r.default)(t||{}).map((function(e){var n=t[e],r=e?e.trim():null,o=n?n.trim():null;return r&&o?r+":"+o:null})).filter((function(e){return e})).join(";");n?e.setAttribute("style",n):e.removeAttribute("style")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);t.default=function(e,t){return!(!e||!(0,r.default)(e.rootNode,t)||e.nodeBefore&&4!=e.nodeBefore.compareDocumentPosition(t)||e.nodeAfter&&2!=e.nodeAfter.compareDocumentPosition(t))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEditInfoFromImage=t.deleteEditInfo=t.saveEditInfo=void 0;var r=n(111),o=n(0);t.saveEditInfo=function(e,t){e&&(0,o.setMetadata)(e,t)},t.deleteEditInfo=function(e){e&&(0,o.removeMetadata)(e)},t.getEditInfoFromImage=function(e){var t=(0,o.getMetadata)(e);return 0==(0,r.default)(t)?function(e){return{src:e.getAttribute("src")||"",widthPx:e.clientWidth,heightPx:e.clientHeight,naturalWidth:e.naturalWidth,naturalHeight:e.naturalHeight,leftPercent:0,rightPercent:0,topPercent:0,bottomPercent:0,angleRad:0}}(e):t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(45),o=n(13),i=n(5),a=function(){function e(e,t){this.containerNode=e,this.parentBlock=t}return e.prototype.getTextContent=function(){return(3==this.containerNode.nodeType?this.containerNode.nodeValue:this.containerNode.textContent)||""},e.prototype.getContainerNode=function(){return this.containerNode},e.prototype.getParentBlock=function(){return this.parentBlock},e.prototype.getStartPosition=function(){return new i.default(this.containerNode,0).normalize()},e.prototype.getEndPosition=function(){return new i.default(this.containerNode,-1).normalize()},e.prototype.isTextualInlineElement=function(){return this.containerNode&&3==this.containerNode.nodeType},e.prototype.isAfter=function(e){return e&&(0,o.default)(this.containerNode,e.getContainerNode())},e.prototype.contains=function(e){var t=this.getStartPosition(),n=this.getEndPosition();return e&&e.isAfter(t)&&n.isAfter(e)},e.prototype.applyStyle=function(e){(0,r.default)(this.containerNode,e)},e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,o,i,a=(null===(r=e.nodeValue)||void 0===r?void 0:r.substring(0,t))||"",l=(null===(o=e.nodeValue)||void 0===o?void 0:o.substring(t))||"",s=e.ownerDocument.createTextNode(n?a:l);return e.nodeValue=n?l:a,null===(i=e.parentNode)||void 0===i||i.insertBefore(s,n?e:e.nextSibling),s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(45),o=n(11),i=n(5),a=n(10),l=function(){function e(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null),this.inlineElement=e,this.start=t,this.end=n}return e.prototype.getDecoratedInline=function(){return this.inlineElement},e.prototype.getContainerNode=function(){return this.inlineElement.getContainerNode()},e.prototype.getParentBlock=function(){return this.inlineElement.getParentBlock()},e.prototype.getTextContent=function(){return(0,o.default)(this.getStartPosition(),this.getEndPosition()).toString()},e.prototype.getStartPosition=function(){return this.start||this.inlineElement.getStartPosition()},e.prototype.getEndPosition=function(){return this.end||this.inlineElement.getEndPosition()},Object.defineProperty(e.prototype,"nextInlineElement",{get:function(){return this.end?new e(this.inlineElement,this.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousInlineElement",{get:function(){return this.start?new e(this.inlineElement,void 0,this.start):null},enumerable:!1,configurable:!0}),e.prototype.contains=function(e){return e&&e.isAfter(this.getStartPosition())&&this.getEndPosition().isAfter(e)},e.prototype.isTextualInlineElement=function(){return this.inlineElement&&this.inlineElement.isTextualInlineElement()},e.prototype.isAfter=function(e){var t=this.getStartPosition(),n=e&&e.getEndPosition();return n&&(t.isAfter(n)||t.equalTo(n))},e.prototype.applyStyle=function(e){var t=this.getStartPosition().normalize(),n=this.getEndPosition().normalize(),o=this.getContainerNode();if(t.isAtEnd){var l=(0,a.getNextLeafSibling)(o,t.node);t=l?new i.default(l,0):null}if(0==n.offset){var s=(0,a.getPreviousLeafSibling)(o,n.node);n=s?new i.default(s,-1):null}(0,r.default)(o,e,t||void 0,n||void 0)},e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=["IMG"],i=["TABLE","IMG","LI"].join(","),a=/\u200b/g;function l(e,t){return e=e.replace(a,""),t?e.trim():e}t.default=function(e,t,n){if(!e)return!1;if(3==e.nodeType)return""==l(e.nodeValue||"",t);if(1==e.nodeType){var a=e,s=l(a.textContent||"",t),u=n?i+",BR":i;if(""!=s||o.indexOf((0,r.default)(a))>=0||a.querySelectorAll(u)[0])return!1}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e?e.parentNode:null;if(!t)return null;for(;e.firstChild;)t.insertBefore(e.firstChild,e);return t.removeChild(e),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e||{left:0,right:0,top:0,bottom:0},n=t.left,r=t.right,o=t.top,i=t.bottom;return 0===n&&0===r&&0===o&&0===i?null:{left:Math.round(n),right:Math.round(r),top:Math.round(o),bottom:Math.round(i)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t,n){e.focus();var i=e.getSelectionRangeEx(),a=function(e,n){return e.isContentEditable&&t(e,n)};if(i&&i.areAllCollapsed){var l=i.ranges[0].startContainer;"SPAN"==(0,o.getTagOfNode)(l)&&(!l.firstChild||"BR"==(0,o.getTagOfNode)(l.firstChild)&&!l.firstChild.nextSibling)?(e.addUndoSnapshot(),a(l)):(e.triggerPluginEvent(13,{formatState:{},formatCallback:t}),e.triggerContentChangedEvent("Format"))}else(0,r.default)(e,(function(){var t,n;i.ranges.forEach((function(r){for(var o=e.getSelectionTraverser(r),i=o&&o.currentInlineElement;i;){var l=o.getNextInlineElement();i.applyStyle((function(e,r){a(e,r),t=t||e,n=e})),i=l}})),t&&n&&0==i.type&&e.select(t,-2,n,-3)}),n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41),o=n(0);t.default=function(e,t,n,i){var a=[];(0,r.default)(e,(function(t,r){n(t,r);var o=e.getElementAtCursor("LI",t);o&&-1===a.indexOf(o)&&a.push(o)}),i),function(e,t){e.forEach((function(e){(0,o.safeInstanceOf)(e,"HTMLLIElement")&&(0,o.setListItemStyle)(e,t)}))}(a,[t])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o={MOUSEDOWN:"mousedown",MOUSEMOVE:"mousemove",MOUSEUP:"mouseup",getPageXY:a},i={MOUSEDOWN:"touchstart",MOUSEMOVE:"touchmove",MOUSEUP:"touchend",getPageXY:l};function a(e){return[e.pageX,e.pageY]}function l(e){var t=0,n=0;if(e.targetTouches&&e.targetTouches.length>0){var r=e.targetTouches[0];t=r.pageX,n=r.pageY}return[t,n]}var s=function(){function e(e,t,n,a,l,s){var u=this;this.trigger=e,this.context=t,this.onSubmit=n,this.handler=a,this.zoomScale=l,this.onMouseDown=function(e){var t,n,r;e.preventDefault(),e.stopPropagation(),u.addDocumentEvents(),t=u.dndMouse.getPageXY(e),u.initX=t[0],u.initY=t[1],u.initValue=null===(r=(n=u.handler).onDragStart)||void 0===r?void 0:r.call(n,u.context,e)},this.onMouseMove=function(e){var t,n,r;e.preventDefault();var o=u.dndMouse.getPageXY(e),i=o[0],a=o[1],l=(i-u.initX)/u.zoomScale,s=(a-u.initY)/u.zoomScale;(null===(n=(t=u.handler).onDragging)||void 0===n?void 0:n.call(t,u.context,e,u.initValue,l,s))&&(null===(r=u.onSubmit)||void 0===r||r.call(u,u.context,u.trigger))},this.onMouseUp=function(e){var t,n,r;e.preventDefault(),u.removeDocumentEvents(),(null===(n=(t=u.handler).onDragEnd)||void 0===n?void 0:n.call(t,u.context,e,u.initValue))&&(null===(r=u.onSubmit)||void 0===r||r.call(u,u.context,u.trigger))},this.dndMouse=s||r.Browser.isMobileOrTablet?i:o,e.addEventListener(this.dndMouse.MOUSEDOWN,this.onMouseDown)}return e.prototype.dispose=function(){this.trigger.removeEventListener(this.dndMouse.MOUSEDOWN,this.onMouseDown),this.removeDocumentEvents()},Object.defineProperty(e.prototype,"mouseType",{get:function(){return this.dndMouse==i?"touch":"mouse"},enumerable:!1,configurable:!0}),e.prototype.addDocumentEvents=function(){var e=this.trigger.ownerDocument;e.addEventListener(this.dndMouse.MOUSEMOVE,this.onMouseMove,!0),e.addEventListener(this.dndMouse.MOUSEUP,this.onMouseUp,!0)},e.prototype.removeDocumentEvents=function(){var e=this.trigger.ownerDocument;e.removeEventListener(this.dndMouse.MOUSEMOVE,this.onMouseMove,!0),e.removeEventListener(this.dndMouse.MOUSEUP,this.onMouseUp,!0)},e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o="AREA,BASE,BR,COL,COMMAND,EMBED,HR,IMG,INPUT,KEYGEN,LINK,META,PARAM,SOURCE,TRACK,WBR".split(",");t.default=function(e){return!!e&&o.indexOf((0,r.default)(e))>=0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(5),i=n(36),a=n(15),l=n(10),s=n(17),u=n(1),d="SPAN,B,I,U,EM,STRONG,STRIKE,S,SMALL,SUP,SUB".split(",");function c(e,t){e&&1==e.nodeType&&t(e,!0)}t.default=function(e,t,n,f){void 0===n&&(n=new o.default(e,0).normalize()),void 0===f&&(f=new o.default(e,-1).normalize());for(var p=[],h=n,g=f;h&&g&&g.isAfter(h);){var v=h.node,m=(0,r.default)(v.parentNode),b=(0,l.getNextLeafSibling)(e,v);3==v.nodeType&&["TR","TABLE"].indexOf(m)<0&&(v!=g.node||g.isAtEnd||(v=(0,i.default)(v,g.offset,!0)),h.offset>0&&(v=(0,i.default)(v,h.offset,!1)),p.push(v)),h=b&&new o.default(b,0)}if(p.length>0){if(p.every((function(e){return e.parentNode==p[0].parentNode}))){var y=p.shift();p.forEach((function(e){var t,n=(y.nodeValue||"")+(e.nodeValue||"");y.nodeValue=n,null===(t=e.parentNode)||void 0===t||t.removeChild(e)})),p=[y]}p.forEach((function(e){for(var n=e;n&&"SPAN"!=(0,r.default)(n)&&d.indexOf((0,r.default)(n.parentNode))>=0;)c(n,t),n=(0,s.splitBalancedNodeRange)(n);n&&"SPAN"!=(0,r.default)(n)&&(c(n,t),n=(0,a.default)(n,"SPAN")),(0,u.default)(n,"HTMLElement")&&t(n)}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getComputedStyle=void 0;var r=n(14);function o(e,t){void 0===t&&(t=["font-family","font-size","color","background-color"]);var n=(0,r.default)(e),o=[];if(t=Array.isArray(t)?t:[t],n){var a=(n.ownerDocument.defaultView||window).getComputedStyle(n);if(a)for(var l=0,s=t;l<s.length;l++){var u=s[l],d=a.getPropertyValue(u)||"";d="font-family"!=u?d.toLowerCase():d,d="font-size"==u?i(d):d,o.push(d)}}return o}function i(e){return e&&e.indexOf("px")==e.length-2?Math.round(75*parseFloat(e)+.05)/100+"pt":e}t.default=o,t.getComputedStyle=function(e,t){return o(e,t)[0]||""}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t}(n(35).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInlineElementBeforeAfter=t.getInlineElementAfter=t.getInlineElementBefore=void 0;var r=n(20),o=n(37),i=n(29),a=n(10);function l(e,t,n){if(!e||!t||!t.node)return null;var l=(t=t.normalize()).offset,s=t.isAtEnd,u=t.node,d=!1;!n&&0==l&&!s||n&&s?u=(0,a.getLeafSibling)(e,u,n):3==u.nodeType&&(!n&&!s||n&&l>0)&&(d=!0),u&&(0,i.default)(u)&&(u=(0,a.getLeafSibling)(e,u,n));var c=(0,r.default)(e,u);return c&&(d||c.contains(t))&&(c=n?new o.default(c,t,void 0):new o.default(c,void 0,t)),c}t.getInlineElementBefore=function(e,t){return l(e,t,!1)},t.getInlineElementAfter=function(e,t){return l(e,t,!0)},t.getInlineElementBeforeAfter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e){var n=new FileReader;n.onload=function(){t(n.result)},n.onerror=function(){t(null)},n.readAsDataURL(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t,n,o,i){var a="string"==typeof t?t.trim():"",l="string"==typeof t?null:t;if(a||l){if(e.style.setProperty(n?"background-color":"color",(o?null==l?void 0:l.darkModeColor:null==l?void 0:l.lightModeColor)||a),e.dataset){var s=n?"ogsb":"ogsc";o&&"transparent"!=t?l&&(e.dataset[s]=l.lightModeColor):delete e.dataset[s]}n&&i&&function(e,t){var n;if(null===(n=e.firstElementChild)||void 0===n?void 0:n.hasAttribute("style"))return;var o=e.style.getPropertyValue("background-color"),i=t&&(e.dataset.ogsb||e.dataset.ogab)||o;if(!i||"transparent"===i)return;switch(function(e){var t=function(e){var t,n,r,o,i;"#"==e.substring(0,1)?(t=function(e){4===e.length&&(e=e.replace(/(.)/g,"$1$1"));var t=e.replace("#",""),n=parseInt(t.substr(0,2),16),r=parseInt(t.substr(2,2),16),o=parseInt(t.substr(4,2),16);return[n,r,o]}(e),r=t[0],o=t[1],i=t[2]):(n=function(e){var t=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/),n=parseInt(t[1]),r=parseInt(t[2]),o=parseInt(t[3]);return[n,r,o]}(e),r=n[0],o=n[1],i=n[2]);var a=r/255,l=o/255,s=i/255;return 50*(Math.max(a,l,s)+Math.min(a,l,s))}(e);if(t<20)return 1;if(t>80)return 0;return 2}(i)){case 1:r(e,{lightModeColor:"#ffffff",darkModeColor:"#333333"},!1,t);break;case 0:r(e,{lightModeColor:"#000000",darkModeColor:"#ffffff"},!1,t)}}(e,o)}}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saveTableCellMetadata=t.getTableCellMetadata=void 0;var r=n(30),o=n(24),i=(0,r.createBooleanDefinition)(!1,void 0,!0),a=(0,r.createObjectDefinition)({bgColorOverride:i},!1,!0);t.getTableCellMetadata=function(e){return(0,o.getMetadata)(e,a)},t.saveTableCellMetadata=function(e,t){e&&t&&(0,o.setMetadata)(e,t,a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);t.default=function e(t,n){var o,i,a=!1;if(n.isOptional&&void 0===t||n.allowNull&&null===t)a=!0;else{if(!n.isOptional&&void 0===t||!n.allowNull&&null===t)return!1;switch(n.type){case 2:a="string"==typeof t&&(void 0===n.value||t===n.value);break;case 1:a="number"==typeof t&&(void 0===n.value||(o=n.value,i=t,Math.abs(o-i)<.001))&&(void 0===n.minValue||t>=n.minValue)&&(void 0===n.maxValue||t<=n.maxValue);break;case 0:a="boolean"==typeof t&&(void 0===n.value||t===n.value);break;case 3:a=Array.isArray(t)&&(void 0===n.minLength||t.length>=n.minLength)&&(void 0===n.maxLength||t.length<=n.maxLength)&&t.every((function(t){return e(t,n.itemDef)}));break;case 4:a="object"==typeof t&&(0,r.default)(n.propertyDef).every((function(r){return e(t[r],n.propertyDef[r])}));break;case 5:a=n.validator(t)}}return a}},function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});var o=n(21),i=n(54),a=n(2),l=n(27),s=n(38),u=n(5),d=n(23),c=n(1),f=n(17),p=n(6),h=n(39),g=n(77),v=n(15),m=n(24),b=function(){function e(e){if(this.rootList=e,this.items=[],!e)throw new Error("rootList must not be null");y(this.rootList),(0,d.default)(this.rootList,"ol,ul",y),(0,d.default)(this.rootList,"li",C),this.populateItems(this.rootList)}return e.prototype.contains=function(e){return this.items.some((function(t){return t.contains(e)}))},e.prototype.getLastItemNumber=function(){var e=this.getStart();return void 0===e?e:e-1+this.items.filter((function(e){return 1==e.getListType()&&1==e.getLevel()&&!e.isDummy()})).length},e.prototype.writeBack=function(e){var t=this;if(!this.rootList)throw new Error("rootList must not be null");var n,r=this.rootList.ownerDocument,o=[r.createDocumentFragment()],i=r.createTextNode(""),a=this.getStart()||1;this.rootList.parentNode.replaceChild(i,this.rootList),this.items.forEach((function(r){var i=r.getNewListStart();i&&i!=a&&(o.splice(1,o.length-1),a=i),r.writeBack(o,t.rootList,e);var l=o[1];(0,c.default)(l,"HTMLOListElement")&&(n!=l&&(1==a?l.removeAttribute("start"):l.start=a),1==r.getLevel()&&a++);var s=t.getListItemIndex(r.getNode());r.applyListStyle(t.rootList,s),n=l})),i.parentNode.replaceChild(o[0],i)},e.prototype.split=function(e,t){if(!this.rootList)throw new Error("rootList must not be null");for(var n=0;n<this.items.length;n++)if(this.items[n].getNode()==e)return void this.items[n].setNewListStart(t)},e.prototype.setIndentation=function(e,t,n,r,o){var i=this;void 0===o&&(o=!1);var a=!1;if(this.findListItems(e,t,(function(e){a=a||0==i.items.indexOf(e),1==n?r&&!e.isDummy()?e.setIsDummy(!0):e.outdent(o):e.indent()})),a&&o)for(var l=0;l<this.items.length;l++)this.items[l].addNegativeMargins()},e.prototype.setAlignment=function(e,t,n){this.rootList.style.display="flex",this.rootList.style.flexDirection="column",this.findListItems(e,t,(function(e){var t="start";1==n?t="center":2==n&&(t="end"),e.getNode().style.alignSelf=t}))},e.prototype.changeListType=function(e,t,n){var r=!1;this.findListItems(e,t,(function(e){r=r||e.getListType()!=n})),this.findListItems(e,t,(function(e){return r?e.changeListType(n):e.outdent()}))},e.prototype.setListStyleType=function(e,t){var n=function(e,t,n){return{orderedStyleType:E(t,null==e?void 0:e.orderedStyleType,1),unorderedStyleType:E(n,null==e?void 0:e.unorderedStyleType,1)}}((0,m.getMetadata)(this.rootList,g.ListStyleDefinitionMetadata),e,t);(0,m.setMetadata)(this.rootList,n,g.ListStyleDefinitionMetadata)},e.prototype.appendItem=function(e,t){var n=(0,a.default)(e);"DIV"==n?e=(0,o.default)(e,"LI"):"LI"!=n&&(e=(0,v.default)(e,"LI")),this.items.push(0==t?new g.default(e):new g.default(e,t))},e.prototype.mergeVList=function(e){var t,n=this;e&&e!=this&&(e.items.forEach((function(e){return n.items.push(e)})),e.items.splice(0,e.items.length),null===(t=e.rootList.parentNode)||void 0===t||t.removeChild(e.rootList))},e.prototype.getListItemIndex=function(e){if(this.items)for(var t=(this.getStart()||1)-1,n=0;n<this.items.length;n++){var r=this.items[n];if(1!=r.getLevel()||r.isDummy()||t++,r.getNode()==e)return t}return-1},e.prototype.getStart=function(){return(0,c.default)(this.rootList,"HTMLOListElement")?this.rootList.start:void 0},e.prototype.findListItems=function(e,t,n){if(0==this.items.length)return[];var r=new u.default(this.items[0].getNode(),0),o=new u.default(this.items[this.items.length-1].getNode(),-1),i=r.isAfter(e)?0:-1,a=this.items.length-(t.isAfter(o)?1:0);this.items.forEach((function(n,r){i=n.contains(e.node)?r:i,a=n.contains(t.node)?r:a})),i=a<this.items.length?Math.max(0,i):i,a=i>=0?Math.min(this.items.length-1,a):a;var l=i<=a?this.items.slice(i,a+1):[];return n&&l.forEach(n),l},e.prototype.populateItems=function(e,t){var n=this;void 0===t&&(t=[]);var o=(0,i.default)(e);(0,p.default)(e.childNodes).forEach((function(e){var a=r(r([],t,!0),[o],!1);(0,i.isListElement)(e)?n.populateItems(e,a):3==e.nodeType&&""==(e.nodeValue||"").trim()||n.items.push(new(g.default.bind.apply(g.default,r([void 0,e],a,!1))))}))},e}();function y(e){var t=null;(0,p.default)(e.childNodes).forEach((function(e){"LI"==(0,a.default)(e)?t=e:(0,i.isListElement)(e)?t=null:t&&!(0,s.default)(e,!0)&&t.appendChild((0,l.default)(e)?e:(0,v.default)(e))}))}function C(e){for(;!(0,i.isListElement)(e.parentNode);){(0,f.default)(e,!0);var t=(0,p.default)(e.parentNode.childNodes).slice(1);t.length>0&&((0,l.default)(t[0])||(t=[(0,v.default)(t)]),t.forEach((function(t){return e.appendChild(t)}))),(0,h.default)(e.parentNode)}}function E(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return void 0!==e}))[0]}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isListElement=void 0;var r=n(2);function o(e){switch((0,r.default)(e)){case"OL":return 1;case"UL":return 2;default:return 0}}t.default=o,t.isListElement=function(e){return 0!=o(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),o=n(5),i=n(10);t.default=function(e){if(!e)return null;var t=e.nodeBefore,n=e.nodeAfter,a=e.rootNode,l=e.skipTags,s=t?(0,i.getNextLeafSibling)(e.rootNode,t,e.skipTags):a.firstChild,u=n?(0,i.getPreviousLeafSibling)(a,n,l):a.lastChild,d=s&&u&&(0,r.default)(s,u);if(!function(e){var t=e;return!!t.fullSelectionEnd&&!!t.fullSelectionStart}(e))return d;if(d){var c=o.default.getStart(d).normalize(),f=o.default.getEnd(d).normalize(),p=e.fullSelectionEnd,h=e.fullSelectionStart;if(!h.isAfter(f)&&!c.isAfter(p)){var g=h.isAfter(c)?h:c,v=p.isAfter(f)?f:p;return(0,r.default)(g,v)}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){Array.prototype.push.apply(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.currentIndex+t;return n>=0&&n<e.snapshots.length}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.experimentCommitListChains=void 0;var r=n(0);function o(e,t){if((null==t?void 0:t.length)>0){var n=e.getSelectionRange(),o=n&&r.Position.getStart(n),i=n&&r.Position.getEnd(n),a=e.isFeatureEnabled("ReuseAllAncestorListElements");t.forEach((function(e){return e.commit(a)})),e.select(o,i)}}t.default=o,t.experimentCommitListChains=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41),o=n(0);t.default=function(e,t){(0,r.default)(e,(function(n,r){(0,o.setColor)(n,r?"":t,!0,e.isDarkMode())}),"setBackgroundColor")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),o=n(0);t.default=function(e,t,n,i,a,l,s){void 0===i&&(i=!0),(0,r.default)(e,(function(r,s,u,d){var c,f=n>0&&d.filter((function(e){return e.canAppendAtCursor(n)}))[0],p=f&&s.equalTo(u)?f.createVListAtBlock(null===(c=(0,o.getBlockElementAtNode)(r.rootNode,s.node))||void 0===c?void 0:c.collapseToSingleElement(),n):(0,o.createVListFromRegion)(r,1!==n&&i);p&&(p.changeListType(s,u,t),e.isFeatureEnabled("AutoFormatList")&&p.setListStyleType(a,l),p.writeBack(e.isFeatureEnabled("ReuseAllAncestorListElements")))}),void 0,s||"toggleListType")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.widthPx,r=e.heightPx,o=e.angleRad,i=n/(1-e.leftPercent-e.rightPercent),a=r/(1-e.topPercent-e.bottomPercent),l=t?i:n,s=t?a:r;return{targetWidth:Math.abs(l*Math.cos(o))+Math.abs(s*Math.sin(o)),targetHeight:Math.abs(l*Math.sin(o))+Math.abs(s*Math.cos(o)),originalWidth:i,originalHeight:a,visibleWidth:l,visibleHeight:s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Editor=void 0;var r=n(125);Object.defineProperty(t,"Editor",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(13),i=function(){function e(e){this.element=e}return e.prototype.collapseToSingleElement=function(){return this.element},e.prototype.getStartNode=function(){return this.element},e.prototype.getEndNode=function(){return this.element},e.prototype.equals=function(e){return this.element==e.getStartNode()},e.prototype.isAfter=function(e){return(0,o.default)(this.element,e.getEndNode())},e.prototype.contains=function(e){return(0,r.default)(this.element,e,!0)},e.prototype.getTextContent=function(){var e;return(null===(e=this.element)||void 0===e?void 0:e.textContent)||""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default=function(e,t){return(0,r.default)(e,"HTMLElement")&&(e.matches||e.msMatchesSelector).call(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.default=function(e,t){var n=t.createElement("DIV");return n.innerHTML=e,(0,r.default)(n.childNodes)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7);t.default=function(e,t){var n=e;do{n=n&&(t?n.firstChild:n.lastChild)}while(n&&n.firstChild);return n&&(0,r.default)(e,n)||null}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t}(n(35).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastInlineElement=t.getFirstInlineElement=void 0;var r=n(20),o=n(69);t.getFirstInlineElement=function(e){var t=(0,o.getFirstLeafNode)(e);return t?(0,r.default)(e,t):null},t.getLastInlineElement=function(e){var t=(0,o.getLastLeafNode)(e);return t?(0,r.default)(e,t):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastLeafNode=t.getFirstLeafNode=void 0;var r=n(29),o=n(10);function i(e,t){for(var n=function(e){return t?e.firstChild:e.lastChild},i=n(e);i&&n(i);)i=n(i);return i&&(0,r.default)(i)&&(i=(0,o.getLeafSibling)(e,i,t)),i}t.getFirstLeafNode=function(e){return i(e,!0)},t.getLastLeafNode=function(e){return i(e,!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.position=e,this.parentBlock=t}return e.prototype.getTextContent=function(){return""},e.prototype.getContainerNode=function(){return this.position.node},e.prototype.getParentBlock=function(){return this.parentBlock},e.prototype.getStartPosition=function(){return this.position},e.prototype.getEndPosition=function(){return this.position},e.prototype.isAfter=function(e){return e&&this.position.isAfter(e.getEndPosition())},e.prototype.isTextualInlineElement=function(){return!1},e.prototype.contains=function(e){return!1},e.prototype.applyStyle=function(e){},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),o=n(11),i=/[\s\u00A0\u200B\u3000]+([^\s\u00A0\u200B\u3000]*)$/i,a=function(){function e(e,t){this.rootNode=e,this.position=t,this.text="",this.word="",this.inlineBefore=null,this.inlineAfter=null,this.traverser=null,this.traversingComplete=!1,this.inlineElements=[],this.nearestNonTextInlineElement=null}return e.prototype.getWordBefore=function(){var e=this;return this.word||this.traverse((function(){return e.word})),this.word||""},e.prototype.getInlineElementBefore=function(){return this.inlineBefore||this.traverse(null),this.inlineBefore},e.prototype.getInlineElementAfter=function(){return this.inlineAfter||(this.inlineAfter=r.default.createBlockTraverser(this.rootNode,this.position).currentInlineElement),this.inlineAfter},e.prototype.getSubStringBefore=function(e){var t=this;return this.text.length<e&&this.traverse((function(){return t.text.length>=e})),this.text.substr(Math.max(0,this.text.length-e))},e.prototype.getRangeFromText=function(e,t){if(!e)return null;var n=null,r=null,i=e.length-1;return this.forEachTextInlineElement((function(o){for(var a=o.getTextContent()||"",l=a.length-1;l>=0&&i>=0;l--)if(e.charCodeAt(i)==a.charCodeAt(l))i--,r||(r=o.getStartPosition().move(l+1));else if(t||r)return!0;return-1==i&&(n=o.getStartPosition().move(l+1),!0)})),n&&r&&(0,o.default)(n,r)},e.prototype.forEachTextInlineElement=function(e){this.inlineElements.some(e)||this.traverse(e)},e.prototype.getNearestNonTextInlineElement=function(){var e=this;return this.nearestNonTextInlineElement||this.traverse((function(){return e.nearestNonTextInlineElement})),this.nearestNonTextInlineElement},e.prototype.traverse=function(e){if(this.traverser=this.traverser||r.default.createBlockTraverser(this.rootNode,this.position),this.traverser&&!this.traversingComplete)for(var t=this.traverser.getPreviousInlineElement();!this.traversingComplete;){if(this.inlineBefore=this.inlineBefore||t,!t||!t.isTextualInlineElement()){this.nearestNonTextInlineElement=t,this.traversingComplete=!0,this.word||(this.word=this.text);break}var n=t.getTextContent();if(!this.word){var o=i.exec(n);o&&2==o.length&&(this.word=o[1]+this.text)}if(this.text=n+this.text,this.inlineElements.push(t),e&&e(t))break;t=this.traverser.getPreviousInlineElement()}},e}();t.default=a},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(49),i=n(18),a=/^Version:[0-9\.]+\s+StartHTML:\s*([0-9]+)\s+EndHTML:\s*([0-9]+)\s+/i,l=((r={})["text/html"]=function(e,t){return e.rawHtml=i.Browser.isEdge?function(e){var t=a.exec(e);if(3==(null==t?void 0:t.length)){var n=parseInt(t[1]),r=parseInt(t[2]);n>0&&r>n&&(e=e.substring(n,r))}return e}(t):t},r["text/plain"]=function(e,t){return e.text=t},r["text/*"]=function(e,t,n){return!!n&&(e.customValues[n]=t)},r["text/link-preview"]=function(e,t){try{e.customValues["link-preview"]=t,e.linkPreview=JSON.parse(t)}catch(e){}},r);t.default=function(e,t){var n={types:[],text:"",image:null,files:[],rawHtml:null,customValues:{}};return Promise.all((e||[]).map((function(e){var r=e.type;if(0!=r.indexOf("image/")||n.image||"file"!=e.kind){if("file"==e.kind)return new Promise((function(t){var o=e.getAsFile();o&&(n.types.push(r),n.files.push(o)),t()}));var i=function(e,t){var n=0==e.indexOf("text/")?e.substring("text/".length):null,r=t&&n?t.indexOf(n):-1;return n&&r>=0?n:void 0}(r,null==t?void 0:t.allowedCustomPasteType),a=l[r]||(i?l["text/*"]:null);return new Promise((function(t){return a?e.getAsString((function(e){n.types.push(r),a(n,e,i),t()})):t()}))}return n.types.push(r),n.image=e.getAsFile(),new Promise((function(e){n.image?(0,o.default)(n.image,(function(t){n.imageDataUri=t,e()})):e()}))}))).then((function(){return n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),o=n(6);t.default=function(e,t,n){for(var i,a,l,s={types:e.types?(0,o.default)(e.types):[],text:e.getData("text"),image:null,files:[],rawHtml:null,customValues:{}},u=0;u<(e.files?e.files.length:0);u++){var d=e.files.item(u);if(0==(null===(i=null==d?void 0:d.type)||void 0===i?void 0:i.indexOf("image/"))){s.image=d;break}}var c=function(){s.image?(0,r.default)(s.image,(function(e){s.imageDataUri=e,t(s)})):t(s)};if((null==n?void 0:n.getTempDiv)&&(null==n?void 0:n.removeTempDiv)){var f=n.getTempDiv();f.contentEditable="true",f.innerHTML="",f.focus(),null===(l=null===(a=f.ownerDocument)||void 0===a?void 0:a.defaultView)||void 0===l||l.setTimeout((function(){var e;s.rawHtml=f.innerHTML,null===(e=n.removeTempDiv)||void 0===e||e.call(n,f),c()}),0)}else s.rawHtml=void 0,c()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default=function(e){if((0,r.default)(e,"HTMLElement"))return e.innerHTML;if(e){var t=e.ownerDocument.createElement("span");return t.appendChild(e.cloneNode(!0)),t.innerHTML}return""}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(139),i=n(2),a=n(22),l=n(40),s=n(1),u=n(6),d=n(76),c=n(24),f={topBorderColor:"#ABABAB",bottomBorderColor:"#ABABAB",verticalBorderColor:"#ABABAB",hasHeaderRow:!1,hasFirstColumn:!1,hasBandedRows:!1,hasBandedColumns:!1,bgColorEven:null,bgColorOdd:"#ABABAB20",headerRowColor:"#ABABAB",tableBorderFormat:0,keepCellShade:!1},p=function(){function e(e,t,n){var r=this;if(this.cells=null,this.formatInfo=null,this.trs=[],this.tableSelection=null,this.table=(0,s.default)(e,"HTMLTableElement")?e:function(e){for(var t=e;t&&"TABLE"!=t.tagName;t=t.parentElement);return t}(e),this.table){var o=(0,s.default)(e,"HTMLTableElement")?null:e,i=(0,u.default)(this.table.rows);this.cells=i.map((function(e){return[]})),i.forEach((function(e,t){var n;r.trs[t%2]=e;for(var i=0,a=0;i<e.cells.length;i++){for(;r.cells[t][a];a++);var l=e.cells[i];l==o&&(r.col=a,r.row=t);for(var s=0;s<l.colSpan;s++,a++)for(var u=0;u<l.rowSpan;u++){var d=s+u==0,c=l.getBoundingClientRect();(null===(n=r.cells)||void 0===n?void 0:n[t+u])&&(r.cells[t+u][a]={td:d?l:null,spanLeft:s>0,spanAbove:u>0,width:d?c.width:void 0,height:d?c.height:void 0})}}})),this.formatInfo=(0,d.getTableFormatInfo)(this.table),t&&this.normalizeSize("number"==typeof n?function(e){return e/n}:n)}}return Object.defineProperty(e.prototype,"selection",{get:function(){return this.tableSelection||null},set:function(e){if(e){var t=e.firstCell;this.row=null==t?void 0:t.y,this.col=null==t?void 0:t.x}this.tableSelection=e},enumerable:!1,configurable:!0}),e.prototype.writeBack=function(e){var t,n=this;this.cells?((0,a.default)(this.table),this.cells.forEach((function(e,t){var r=v(n.trs[t%2]||n.trs[0]);r&&(n.table.appendChild(r),e.forEach((function(e,o){e.td&&(n.recalculateSpans(t,o),n.recalculateCellHeight(e.td),r.appendChild(e.td))})))})),this.formatInfo&&!e&&((0,d.saveTableInfo)(this.table,this.formatInfo),(0,o.default)(this.table,this.cells,this.formatInfo))):this.table&&(null===(t=this.table.parentNode)||void 0===t||t.removeChild(this.table))},e.prototype.recalculateCellHeight=function(e){if(this.isEmptyCell(e)&&e.rowSpan>1)for(var t=1;t<e.rowSpan;t++){var n=document.createElement("br");e.appendChild(n)}},e.prototype.applyFormat=function(e){this.table&&(this.formatInfo=r(r(r({},f),this.formatInfo||{}),e||{}),this.formatInfo.keepCellShade||this.deleteCellShadeDataset(this.cells))},e.prototype.deleteCellShadeDataset=function(e){null==e||e.forEach((function(e){e.forEach((function(e){e.td&&(0,c.removeMetadata)(e.td)}))}))},e.prototype.edit=function(e){var t,n,r=this;if(this.table&&this.cells&&void 0!==this.row&&null!=this.col){var o=this.cells[this.row],i=o[this.col],a=this.selection?this.selection.firstCell.y:this.row,l=this.selection?this.selection.lastCell.y:this.row,s=this.selection?this.selection.firstCell.x:this.col,u=this.selection?this.selection.lastCell.x:this.col;switch(e){case 0:for(var d=a;d<=l;d++)this.cells.splice(a,0,o.map(g));break;case 1:var c=function(e){var t=l+f.countSpanAbove(l,f.col);f.cells.splice(t,0,f.cells[t-1].map((function(e,n){var o=r.getCell(t,n);if(o.spanAbove)return g(o);if(e.spanLeft){var i=g(e);return i.spanAbove=!1,i}return{td:v(r.getTd(r.row,n))}})))},f=this;for(d=a;d<=l;d++)c();break;case 2:var p=function(e){h.forEachCellOfCurrentColumn((function(t,n){n.splice(e,0,g(t))}))},h=this;for(d=s;d<=u;d++)p(d);break;case 3:var m=function(e){var t=u+b.countSpanLeft(b.row,u);b.forEachCellOfColumn(t-1,(function(e,n,o){var i,a=r.getCell(o,t);a.spanLeft?i=g(a):e.spanAbove?(i=g(e)).spanLeft=!1:i={td:v(r.getTd(o,r.col))},n.splice(t,0,i)}))},b=this;for(d=s;d<=u;d++)m();break;case 6:for(var y=function(e){C.forEachCellOfRow(e,(function(t,n){var o=r.getCell(e+1,n);t.td&&t.td.rowSpan>1&&o.spanAbove&&(o.td=t.td)}))},C=this,E=a;E<=l;E++)y(E);var S=this.selection?this.selection.lastCell.y-this.selection.firstCell.y:0;this.cells.splice(a,S+1),0===this.cells.length&&(this.cells=null);break;case 5:for(var w=0,T=function(e){O.forEachCellOfColumn(e,(function(t,n,o){var i=r.getCell(o,e+1);t.td&&t.td.colSpan>1&&i.spanLeft&&(i.td=t.td);var a=r.selection?e-w:r.col;n.splice(a,1)})),w++},O=this,P=s;P<=u;P++)T(P);(0===(null===(t=this.cells)||void 0===t?void 0:t.length)||(null===(n=this.cells)||void 0===n?void 0:n.every((function(e){return 0===e.length}))))&&(this.cells=null);break;case 7:case 8:var _=7==e?-1:1;for(E=this.row+_;E>=0&&E<this.cells.length;E+=_){if((L=this.getCell(E,this.col)).td&&!L.spanAbove){var M=E<this.row?L:i,x=E<this.row?i:L;this.mergeCells(M,x);break}}break;case 9:case 10:var N=9==e?-1:1;for(P=this.col+N;P>=0&&P<this.cells[this.row].length;P+=N){if((L=this.getCell(this.row,P)).td&&!L.spanLeft){var R=P<this.col?L:i,I=P<this.col?i:L;this.mergeCells(R,I,!0);break}}break;case 11:for(P=s;P<=u;P++)for(E=a+1;E<=l;E++){var L=this.getCell(a,P),D=this.getCell(E,P);this.mergeCells(L,D)}for(P=s+1;P<=u;P++){L=this.getCell(a,s);var k=this.getCell(a,P);this.mergeCells(L,k,!0)}break;case 4:this.cells=null;break;case 13:if(i.td&&i.td.rowSpan>1)this.getCell(this.row+1,this.col).td=v(i.td);else{var A=o.map((function(e){return{td:e==i?v(e.td):null,spanAbove:e!=i,spanLeft:e.spanLeft}}));this.cells.splice(this.row+1,0,A)}break;case 12:i.td&&i.td.colSpan>1?this.getCell(this.row,this.col+1).td=v(i.td):this.forEachCellOfCurrentColumn((function(e,t){t.splice(r.col+1,0,{td:t==o?v(e.td):null,spanAbove:e.spanAbove,spanLeft:t!=o})}));break;case 14:this.table.style.marginLeft="auto",this.table.style.marginRight="auto";break;case 15:this.table.style.marginLeft="",this.table.style.marginRight="auto";break;case 16:this.table.style.marginLeft="auto",this.table.style.marginRight="";break;case 18:this.setAlignmentToSelectedCells(a,l,s,u,"center");break;case 17:this.setAlignmentToSelectedCells(a,l,s,u,"left");break;case 19:this.setAlignmentToSelectedCells(a,l,s,u,"right");break;case 20:this.setAlignmentToSelectedCells(a,l,s,u,"top",!0);break;case 21:this.setAlignmentToSelectedCells(a,l,s,u,"middle",!0);break;case 22:this.setAlignmentToSelectedCells(a,l,s,u,"bottom",!0)}}},e.prototype.setAlignmentToSelectedCells=function(e,t,n,r,o,i){for(var a,l,s=e;s<=t;s++)for(var u=n;u<=r;u++)if(this.cells){var d=this.cells[s][u].td;i&&d?null===(a=d.style)||void 0===a||a.setProperty("vertical-align",o):d&&(null===(l=d.style)||void 0===l||l.setProperty("text-align",o))}},e.prototype.mergeCells=function(e,t,n){var r,o,i,a,l=n?(null===(r=e.td)||void 0===r?void 0:r.rowSpan)===(null===(o=t.td)||void 0===o?void 0:o.rowSpan)&&!e.spanLeft:(null===(i=e.td)||void 0===i?void 0:i.colSpan)===(null===(a=t.td)||void 0===a?void 0:a.colSpan)&&!e.spanAbove;e.td&&t.td&&l&&(this.mergeCellContents(e.td,t.td),t.td=null,n?t.spanLeft=!0:t.spanAbove=!0)},e.prototype.isEmptyCell=function(e){return 1===e.childElementCount&&"BR"===(0,i.default)(e.firstChild)},e.prototype.mergeCellContents=function(e,t){if(this.isEmptyCell(t))(0,a.default)(e,t,!1);else{var n=document.createElement("br");e.appendChild(n),(0,a.default)(e,t,!0)}},e.prototype.forEachCellOfCurrentColumn=function(e){this.forEachCellOfColumn(this.col,e)},e.prototype.getCellsWithBorder=function(e,t){for(var n=[],r=0;this.cells&&r<this.cells.length;r++)for(var o=0;o<this.cells[r].length;o++){var i=this.getCell(r,o);if(i.td){var a=(0,l.default)(i.td.getBoundingClientRect());if(a){var s=!1;if(t){if(a.right==e)s=!0,n.push(i.td);else if(s)break}else if(a.left==e)s=!0,n.push(i.td);else if(s)break}}}return n},e.prototype.forEachCellOfCurrentRow=function(e){this.forEachCellOfRow(this.row,e)},e.prototype.getCell=function(e,t){return this.cells&&this.cells[e]&&this.cells[e][t]||{}},e.prototype.getCurrentTd=function(){return this.getTd(this.row,this.col)},e.prototype.getTd=function(e,t){if(this.cells&&void 0!==e&&void 0!==t&&(e=Math.min(this.cells.length-1,e),t=this.cells[e]?Math.min(this.cells[e].length-1,t):t,!isNaN(e)&&!isNaN(t)))for(;e>=0&&t>=0;){var n=this.getCell(e,t);if(n.td)return n.td;if(n.spanLeft)t--;else{if(!n.spanAbove)break;e--}}return null},e.prototype.forEachCellOfColumn=function(e,t){if(void 0!==e)for(var n=0;this.cells&&n<this.cells.length;n++)t(this.getCell(n,e),this.cells[n],n)},e.prototype.forEachCellOfRow=function(e,t){if(void 0!==e)for(var n=0;this.cells&&n<this.cells[e].length;n++)t(this.getCell(e,n),n)},e.prototype.recalculateSpans=function(e,t){var n=this.getCell(e,t).td;n&&(n.colSpan=this.countSpanLeft(e,t),n.rowSpan=this.countSpanAbove(e,t),1==n.colSpan&&n.removeAttribute("colSpan"),1==n.rowSpan&&n.removeAttribute("rowSpan"))},e.prototype.countSpanLeft=function(e,t){for(var n=1,r=t+1;this.cells&&r<this.cells[e].length;r++){var o=this.getCell(e,r);if(o.td||!o.spanLeft)break;n++}return n},e.prototype.countSpanAbove=function(e,t){for(var n=1,r=e+1;this.cells&&r<this.cells.length;r++){var o=this.getCell(r,t);if(o.td||!o.spanAbove)break;n++}return n},e.prototype.normalizeEmptyTableCells=function(){for(var e=0,t=void 0;t=this.table.rows[e];e++)for(var n=0,r=void 0;r=t.cells[n];n++)r&&(r.innerHTML&&r.innerHTML.trim()||r.appendChild(document.createElement("br")))},e.prototype.normalizeTableCellSize=function(e){for(var t=0,n=void 0;n=this.table.rows[t];t++)n.removeAttribute("width"),n.style.setProperty("width",null),n.removeAttribute("height"),n.style.setProperty("height",null);for(t=0;this.cells&&t<this.cells.length;t++)for(var r=0;r<this.cells[t].length;r++){var o=this.cells[t][r];if(o){var i="number"==typeof e?function(t){return t/e}:e,a=o.width||0,l=o.height||0;h(o.td,(null==i?void 0:i(a))||a,(null==i?void 0:i(l))||l)}}},e.prototype.normalizeSize=function(e){this.normalizeEmptyTableCells(),this.normalizeTableCellSize(e);var t=this.table.getBoundingClientRect();h(this.table,(null==e?void 0:e(t.width))||t.width,(null==e?void 0:e(t.height))||t.height)},e}();function h(e,t,n){e&&(e.removeAttribute("width"),e.removeAttribute("height"),e.style.boxSizing="border-box",e.style.width=t+"px",e.style.height=n+"px")}function g(e){return{td:v(e.td),spanAbove:e.spanAbove,spanLeft:e.spanLeft}}function v(e){var t=e?e.cloneNode(!1):null;return(0,s.default)(t,"HTMLTableCellElement")&&(t.removeAttribute("id"),t.firstChild||t.appendChild(e.ownerDocument.createElement("br"))),t}t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saveTableInfo=t.getTableFormatInfo=void 0;var r=n(24),o=n(30),i=(0,o.createStringDefinition)(!1,void 0,!0),a=(0,o.createBooleanDefinition)(!1),l=(0,o.createObjectDefinition)({topBorderColor:i,bottomBorderColor:i,verticalBorderColor:i,hasHeaderRow:a,headerRowColor:i,hasFirstColumn:a,hasBandedColumns:a,hasBandedRows:a,bgColorEven:i,bgColorOdd:i,tableBorderFormat:(0,o.createNumberDefinition)(!1,void 0,0,8),keepCellShade:(0,o.createBooleanDefinition)(!0)},!1,!0);t.getTableFormatInfo=function(e){return(0,r.getMetadata)(e,l)},t.saveTableInfo=function(e,t){e&&t&&(0,r.setMetadata)(e,t,l)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ListStyleDefinitionMetadata=void 0;var i=n(4),a=n(54),l=n(31),s=n(2),u=n(27),d=n(22),c=n(1),f=n(141),p=n(78),h=n(142),g=n(32),v=n(6),m=n(39),b=n(15),y=n(30),C=n(24),E=[null,"lower-alpha","lower-roman"],S=["disc","circle","square"],w=["font-size","font-family","color"],T=["data-ogsc","data-ogsb","data-ogac","data-ogab"];t.ListStyleDefinitionMetadata=(0,y.createObjectDefinition)({orderedStyleType:(0,y.createNumberDefinition)(!0,void 0,1,20),unorderedStyleType:(0,y.createNumberDefinition)(!0,void 0,1,9)},!0,!0);var O=function(){function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(this.newListStart=void 0,!e)throw new Error("node must not be null");this.node=(0,c.default)(e,"HTMLLIElement")?e:(0,b.default)(e,4);var r=this.node.style.display;this.dummy="list-item"!=r&&""!=r,this.listTypes=o([0],t,!0)}return e.prototype.getListType=function(){return this.listTypes[this.listTypes.length-1]},e.prototype.getLevel=function(){return this.listTypes.length-1},e.prototype.getNode=function(){return this.node},e.prototype.getNewListStart=function(){return this.newListStart},e.prototype.contains=function(e){return(0,i.default)(this.node,e,!0)},e.prototype.isDummy=function(){return this.dummy},e.prototype.isOrphanItem=function(){return!1},e.prototype.canMerge=function(e){return!(!(null==e?void 0:e.isOrphanItem())||this.listTypes.length!=e.listTypes.length)&&this.listTypes.every((function(t,n){return e.listTypes[n]==t}))},e.prototype.mergeItems=function(e){var t=this;_((null==e?void 0:e.map((function(e){return e.node})))||[],!0,!1).forEach((function(e){return t.node.appendChild(e)}))},e.prototype.indent=function(){if("-.25in"==this.node.style.marginLeft)return this.node.style.margin="",void(this.node.style.marginLeft="");var e=this.getListType();0!=e&&this.listTypes.push(e)},e.prototype.outdent=function(e){void 0===e&&(e=!1);var t=e?2:1;this.listTypes.length>t&&this.listTypes.pop()},e.prototype.addNegativeMargins=function(){this.node.style.margin="0in 0in 0in 0.5in",this.node.style.marginLeft="-.25in"},e.prototype.changeListType=function(e){0==e?this.listTypes=[e]:(this.outdent(),this.listTypes.push(e))},e.prototype.setIsDummy=function(e){this.dummy=e},e.prototype.setNewListStart=function(e){this.newListStart=e},e.prototype.applyListStyle=function(e,n){var r=(0,C.getMetadata)(e,t.ListStyleDefinitionMetadata),o=this.listTypes.length<3;r&&(o&&2===this.listTypes[1]&&r.unorderedStyleType?(0,f.default)(this.node,r.unorderedStyleType):o&&1===this.listTypes[1]&&r.orderedStyleType?(0,h.default)(this.node,r.orderedStyleType,n):this.node.style.removeProperty("list-style-type"))},e.prototype.writeBack=function(e,t,n){var o,i=this;void 0===n&&(n=!1);var u,d,f=1;if(n){e.length>this.listTypes.length&&e.splice(this.listTypes.length);var h=e.length-1;h===this.listTypes.length-1&&(0,a.default)(e[h])!==this.listTypes[h]&&e.splice(h),f=e.length}else for(;f<e.length;f++)if((0,a.default)(e[f])!==this.listTypes[f]){e.splice(f);break}for(;f<this.listTypes.length;f++){var y=e.length-1,C=P(e[0],this.listTypes[f],f,t);if(e[y].appendChild(C),e.push(C),this.getDeepChildIndex(t)==y){var E=null===(o=this.node.parentElement)||void 0===o?void 0:o.style.listStyleType;E&&(0,s.default)(this.node.parentElement)===(0,s.default)(C)&&(C.style.listStyleType=E)}}if(e[e.length-1].appendChild(this.node),this.node.style.setProperty("display",this.dummy?"block":null),this.listTypes.length>1&&((0,p.default)(this.node,w,!0),(0,p.default)(this.node,T,!1)),this.listTypes.length<=1){var S="LI"==(0,s.default)(this.node),O=S?{"font-family":this.node.style.fontFamily,"font-size":this.node.style.fontSize,color:this.node.style.color}:void 0,M=S?(u=this.node,d=(0,v.default)(u.childNodes),(0,m.default)(u),d):[this.node];if(O)for(var x=function(e){(0,c.default)(M[e],"Text")&&(M[e]=(0,b.default)(M[e],"span"));var t=M[e];if((0,c.default)(t,"HTMLElement")){var n=r(r({},O),(0,l.default)(t));(0,g.default)(t,n),T.forEach((function(e){var n=i.node.getAttribute(e);n&&t.setAttribute(e,n)}))}},N=0;N<M.length;N++)x(N);_(M,!0,!0)}},e.prototype.getDeepChildIndex=function(e){var t=this.node.parentElement;if(e&&t){for(var n=0;t&&t!=e;)n++,t=(null==t?void 0:t.parentElement)||null;return n}return-1},e}();function P(e,n,r,o){var l,s=e.ownerDocument;if(1==r&&o&&n==(0,a.default)(o)?(0,i.default)(e,o)?(l=o.cloneNode(!1)).removeAttribute("id"):((0,d.default)(o),l=o):l=s.createElement(1==n?"ol":"ul"),o&&1==r&&n!=(0,a.default)(o)){var u=(0,C.getMetadata)(o,t.ListStyleDefinitionMetadata);u&&(0,C.setMetadata)(l,u,t.ListStyleDefinitionMetadata)}return 1==n&&r>1&&l.style.setProperty("list-style-type",E[(r-1)%E.length]),2==n&&r>1&&l.style.setProperty("list-style-type",S[(r-1)%S.length]),l}function _(e,t,n){return!(e.length>0)||t&&(0,u.default)(e[0])||n&&(0,u.default)(e[e.length])||(e=[(0,b.default)(e)]),e}t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),o=n(14),i=n(1);t.default=function(e,t,n){void 0===n&&(n=!0);var a=function(e,t,n){var a,l,s=[],u=r.default.createBodyTraverser(e),d=null,c=function(){var r=(null==(d=u.currentInlineElement)?void 0:d.getContainerNode())||null,c=null;r=r?(0,o.default)(r):null;for(var f=function(){var e=r;t.forEach((function(t){var r=n?e.style.getPropertyValue(t):e.getAttribute(t);c||(c={}),r&&!c[t]&&(c[t]=r)})),r=1===(null===(l=null==r?void 0:r.parentNode)||void 0===l?void 0:l.childNodes.length)?r.parentNode:null};r&&r!==e&&(0,i.default)(r,"HTMLElement")&&(0==s.length||((null===(a=r.textContent)||void 0===a?void 0:a.trim().length)||0)>0);)f();c&&s.push(c),u.getNextInlineElement()};for(;u.currentInlineElement!=d;)c();return s}(e,t,n);t.forEach((function(t){var r=a.map((function(e){return void 0!==e[t]?e[t]:""}));r&&(1==r.length||1==new Set(r).size)&&r[0]&&(n?e.style.setProperty(t,r[0]):e.setAttribute(t,r[0]))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);t.default=function(e,t,n){var o=e&&(0,r.default)(n,e.rootNode,t);if(o)for(var i=void 0;i=(0,r.default)(o.parentNode,e.rootNode,t);)o=i;return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),o=n(28),i=n(7),a=n(55),l=n(29);t.default=function(e,t,n){var s=(0,a.default)(e),u=[];if(s){for(var d=e.rootNode,c=e.skipTags,f=r.default.createSelectionTraverser(d,s,c),p=null==f?void 0:f.currentBlockElement;p;p=f.getNextBlockElement())u.push(p);u=u.filter((function(e){var t,n=e.getStartNode();return n!=e.getEndNode()||!(0,l.default)(n,!0)||(null===(t=n.parentNode)||void 0===t||t.removeChild(n),!1)}))}if(0==u.length&&e&&!e.rootNode.firstChild&&t){var h=(0,o.default)(n?12:1,e.rootNode.ownerDocument);e.rootNode.appendChild(h),(p=(0,i.default)(e.rootNode,h))&&u.push(p)}return u}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.getRegionCreator=void 0;var o=n(4),i=n(14),a=n(5),l=n(23),s=n(10),u=((r={})[0]={skipTags:["TABLE"],outerSelector:"table",innerSelector:"td,th"},r);function d(e,t){var n=a.default.getStart(e).normalize(),r=a.default.getEnd(e).normalize();return function(e,i,a){return function(e,t,n,r){if(e){var i=t&&(0,s.getNextLeafSibling)(e,t,r),a=n&&(0,s.getPreviousLeafSibling)(e,n,r),l=!t||(0,o.default)(e,t)&&(0,o.default)(e,i),u=!n||(0,o.default)(e,n)&&(0,o.default)(e,a),d=!(t&&n&&((0,o.default)(t,n,!0)||(0,o.default)(t,a,!0)||(0,o.default)(n,t,!0)||(0,o.default)(n,i,!0)));return l&&u&&d}return!1}(e,i,a,t)?{rootNode:e,nodeBefore:i,nodeAfter:a,skipTags:t,fullSelectionStart:n,fullSelectionEnd:r}:null}}t.default=function(e,t,n){var r=[];if(e&&t){var a=u[n],s=a.innerSelector,c=a.skipTags,f=function(e,t,n){var r=[{innerNode:e,children:[]}],a=u[n],s=a.outerSelector,d=a.innerSelector,c=(0,l.default)(e,s,null,2,t);return(0,l.default)(e,d,(function(t){var n=(0,i.default)(t,e,s);if(n&&c.indexOf(n)<0){for(var a={innerNode:t,children:[]},l=r.length-1;l>=0;l--){var u=r[l],d=u.innerNode,f=u.children;if((0,o.default)(d,n)){var p=f.filter((function(e){return e.outerNode==n}))[0];p||(p={outerNode:n,boundaries:[]},f.push(p)),p.boundaries.push(a);break}}r.push(a)}}),1,t),r[0]}(e,t,n),p=(0,i.default)(t.startContainer,e,s)||e,h=(0,i.default)(t.endContainer,e,s)||e;r=function e(t,n,r,o,i){var a;i=i||n.innerNode==r;var l=!1,s=n.children,u=n.innerNode,d=[];if(0==s.length){(f=t(u))&&d.push(f)}else for(var c=0;c<=s.length&&!l;c++){var f,p=s[c]||{},h=p.outerNode,g=p.boundaries,v=null===(a=s[c-1])||void 0===a?void 0:a.outerNode;if(i)(f=t(u,v,h))&&d.push(f);null==g||g.forEach((function(n){var a,s;s=(a=e(t,n,r,o,i))[0],i=a[1],l=a[2],d=d.concat(s)}))}return[d,i,l||u==o]}(d(t,c),f,p,h)[0]}return r.filter((function(e){return!!e}))},t.getRegionCreator=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),o=n(33),i=n(1);t.default=function(e,t){if(!t||0==t.length)return[];var n=(0,i.default)(t[0],"Node")?t:[t[0].getStartNode(),t[t.length-1].getEndNode()],a=(n=n&&n.filter((function(t){return(0,o.default)(e,t)})))[0],l=n[n.length-1];return(0,o.default)(e,a)&&(0,o.default)(e,l)?(0,r.default)(e.rootNode,a,l,!0):[]}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(21),i=n(4),a=n(7),l=n(84),s=n(31),u=n(33),d=n(1),c=n(32),f=n(26);t.default=function(e,t,n){var p,h,g,v;if((0,u.default)(e,t)&&(0,u.default)(e,n)&&(v=(0,a.default)(e.rootNode,n))&&!v.contains(t)){for(var m=v.collapseToSingleElement(),b=(0,f.collapse)(e.rootNode,m,t,!1,!0),y=m;(0,i.default)(b,y);){var C=y.parentNode;if((0,d.default)(C,"HTMLElement")){var E=r(r(r({},(0,l.default)(C)||{}),(0,s.default)(C)),(0,s.default)(m));(0,c.default)(m,E)}y=C}var S=null,w=1==m.childNodes.length&&0==m.attributes.length?m.firstChild:(0,o.default)(m,"SPAN");for(y=w;(0,i.default)(b,y)&&1==(null===(p=y.parentNode)||void 0===p?void 0:p.childNodes.length);y=y.parentNode)S=y.parentNode;null===(h=t.parentNode)||void 0===h||h.insertBefore(w,t.nextSibling),null===(g=null==S?void 0:S.parentNode)||void 0===g||g.removeChild(S)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o={B:{"font-weight":"bold"},EM:{"font-style":"italic"},I:{"font-style":"italic"},U:{"text-decoration":"underline"},P:{"margin-top":"1em","margin-bottom":"1em"},PRE:{"white-space":"pre"},S:{"text-decoration":"line-through"},STRIKE:{"text-decoration":"line-through"},SUB:{"vertical-align":"sub","font-size":"smaller"},SUP:{"vertical-align":"super","font-size":"smaller"}};t.default=function(e,t){var n=(0,r.default)(e);return o[n]||(t||{})[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(2),i=n(38);function a(e){for(;e.previousSibling;)if(e=e.previousSibling,"BR"==(0,o.default)(e)||!(0,i.default)(e))return!1;return!0}t.default=function(e,t){if(e){var n=(e=e.normalize()).node;if(0==e.offset){for(;n&&(0,r.default)(t,n)&&a(n);)n=(null==n?void 0:n.parentNode)||null;return n==t}}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(5);function i(e,t){var n,o;if(!e||!t)return[];var i,a=e.node,l=e.offset,s=[];if(!(0,r.default)(t,a,!0))return[];if(3==a.nodeType){for(i=a.parentNode;a.previousSibling&&3==a.previousSibling.nodeType;)l+=(null===(n=a.previousSibling.nodeValue)||void 0===n?void 0:n.length)||0,a=a.previousSibling;s.unshift(l)}else i=a,a=a.childNodes[l];do{l=0;for(var u=!1,d=(null==i?void 0:i.firstChild)||null;d&&d!=a;d=d.nextSibling){if(3==d.nodeType){if(0===(null===(o=d.nodeValue)||void 0===o?void 0:o.length)||u)continue;u=!0}else u=!1;l++}s.unshift(l),a=i,i=(null==i?void 0:i.parentNode)||null}while(a&&a!=t);return s}t.default=function(e,t){return t?{start:i(o.default.getStart(t),e),end:i(o.default.getEnd(t),e)}:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearProceedingSnapshotsV2=void 0;var r=n(57);function o(e,t){if(t=t||function(e){var t;return(null===(t=e)||void 0===t?void 0:t.length)||0},(0,r.default)(e,1)){for(var n=0,o=e.currentIndex+1;o<e.snapshots.length;o++)n+=t(e.snapshots[o]);e.snapshots.splice(e.currentIndex+1),e.totalSize-=n,e.autoCompleteIndex=-1}}t.default=o,t.clearProceedingSnapshotsV2=function(e){o(e,(function(e){var t;return(null===(t=e.html)||void 0===t?void 0:t.length)||0}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="border-spacing,caption-side,color,cursor,direction,empty-cells,font-family,font-size,font-style,font-variant,font-weight,font,letter-spacing,line-height,list-style-image,list-style-position,list-style-type,list-style,orphans,quotes,text-align,text-indent,text-transform,visibility,white-space,widows,word-spacing".split(",");t.default=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView,n=t&&e&&t.getComputedStyle(e),o={};return r.forEach((function(e){return o[e]=n&&n.getPropertyValue(e)||""})),o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cloneObject=void 0;var r=n(8);var o=Object.assign?function(e,t){return Object.assign(t||{},e)}:function(e,t){var n=t||{};if(e)for(var o=0,i=(0,r.default)(e);o<i.length;o++){var a=i[o];n[a]=e[a]}return n};t.cloneObject=function(e,t){return o(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=!1,r="",o="",i=!1;return null===(t=null==e?void 0:e.className)||void 0===t||t.split(" ").forEach((function(e){"_Entity"==e?n=!0:0==e.indexOf("_EType_")?r=e.substr("_EType_".length):0==e.indexOf("_EId_")?o=e.substr("_EId_".length):0==e.indexOf("_EReadonly_")&&(i="1"==e.substr("_EReadonly_".length))})),n?{wrapper:e,id:o,type:r,isReadonly:i}:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return"._Entity"+(e?"._EType_"+e:"")+(t?"._EId_"+t:"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){var t=e.ctrlKey||"Control"===e.key,n=e.altKey||"Alt"===e.key,r=e.metaKey||"Meta"===e.key;return t||n||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasFocus=void 0;var r=n(0);t.hasFocus=function(e){var t=e.contentDiv.ownerDocument.activeElement;return!(!t||!(0,r.contains)(e.contentDiv,t,!0))}},function(e,t,n){"use strict";function r(e,t,n){for(var r=0,o=function(){return n.getElementById(t+r)},i=o();i;)r++,i=o();e.id=t+r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.ownerDocument;e.id?n.querySelectorAll("#"+e.id).length>1&&(e.removeAttribute("id"),r(e,t,n)):r(e,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDarkColor=void 0;var r=n(204);Object.defineProperty(t,"getDarkColor",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){var r=n(96),o={};for(var i in r)r.hasOwnProperty(i)&&(o[r[i]]=i);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var l in a)if(a.hasOwnProperty(l)){if(!("channels"in a[l]))throw new Error("missing channels property: "+l);if(!("labels"in a[l]))throw new Error("missing channel labels property: "+l);if(a[l].labels.length!==a[l].channels)throw new Error("channel and label counts mismatch: "+l);var s=a[l].channels,u=a[l].labels;delete a[l].channels,delete a[l].labels,Object.defineProperty(a[l],"channels",{value:s}),Object.defineProperty(a[l],"labels",{value:u})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,a=Math.min(r,o,i),l=Math.max(r,o,i),s=l-a;return l===a?t=0:r===l?t=(o-i)/s:o===l?t=2+(i-r)/s:i===l&&(t=4+(r-o)/s),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+l)/2,[t,100*(l===a?0:n<=.5?s/(l+a):s/(2-l-a)),100*n]},a.rgb.hsv=function(e){var t,n,r,o,i,a=e[0]/255,l=e[1]/255,s=e[2]/255,u=Math.max(a,l,s),d=u-Math.min(a,l,s),c=function(e){return(u-e)/6/d+.5};return 0===d?o=i=0:(i=d/u,t=c(a),n=c(l),r=c(s),a===u?o=r-n:l===u?o=1/3+t-r:s===u&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*u]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=o[e];if(t)return t;var n,i,a,l=1/0;for(var s in r)if(r.hasOwnProperty(s)){var u=r[s],d=(i=e,a=u,Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));d<l&&(l=d,n=s)}return n},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(e){var t,n,r,o,i,a=e[0]/360,l=e[1]/100,s=e[2]/100;if(0===l)return[i=255*s,i,i];t=2*s-(n=s<.5?s*(1+l):s+l-s*l),o=[0,0,0];for(var u=0;u<3;u++)(r=a+1/3*-(u-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[u]=255*i;return o},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),l=255*r*(1-n*i),s=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,s,a];case 1:return[l,r,a];case 2:return[a,r,s];case 3:return[a,l,r];case 4:return[s,a,r];case 5:return[r,a,l]}},a.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,a=e[2]/100,l=Math.max(a,.01);return r=(2-i)*a,n=i*l,[o,100*(n=(n/=(t=(2-i)*l)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,o,i,a,l,s=e[0]/360,u=e[1]/100,d=e[2]/100,c=u+d;switch(c>1&&(u/=c,d/=c),r=6*s-(t=Math.floor(6*s)),0!=(1&t)&&(r=1-r),o=u+r*((n=1-d)-u),t){default:case 6:case 0:i=n,a=o,l=u;break;case 1:i=o,a=n,l=u;break;case 2:i=u,a=n,l=o;break;case 3:i=u,a=o,l=n;break;case 4:i=o,a=u,l=n;break;case 5:i=n,a=u,l=o}return[255*i,255*a,255*l]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},a.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,a=e[2]/100;return n=-.9689*o+1.8758*i+.0415*a,r=.0557*o+-.204*i+1.057*a,t=(t=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),a=Math.pow(t,3),l=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],o=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),a=Math.min(Math.min(n,r),o),l=i-a;return t=l<=0?0:i===n?(r-o)/l%6:i===r?2+(o-n)/l:4+(n-r)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?a/(1-l):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],a=t%1*6,l=a%1,s=1-l;switch(Math.floor(a)){case 0:i[0]=1,i[1]=l,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=l;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=l,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(211),t),o(n(254),t),o(n(257),t),o(n(260),t),o(n(263),t),o(n(266),t),o(n(274),t),o(n(277),t),o(n(303),t),o(n(306),t),o(n(315),t),o(n(318),t),o(n(324),t)},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(214),i=n(243),a=n(244),l=n(245),s=n(248),u=n(249),d=n(250),c=n(251),f=n(252),p=n(253),h=r(r(r(r(r(r(r(r(r(r({},l.ListFeatures),u.QuoteFeatures),f.TableFeatures),c.StructuredNodeFeatures),o.AutoLinkFeatures),d.ShortcutFeatures),i.CursorFeatures),s.MarkdownFeatures),a.EntityFeatures),p.TextFeatures);t.default=function(){return h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42),o=n(25),i=n(12),a=n(3),l=n(59),s=n(101),u=n(102),d=n(103),c=n(104),f=n(105),p=n(106),h=n(0),g=["font","text-decoration","color","background"],v="B,I,U,STRONG,EM,SUB,SUP,STRIKE,FONT,CENTER,H1,H2,H3,H4,H5,H6,UL,OL,LI,SPAN,P,BLOCKQUOTE,CODE,S,PRE".split(","),m=["href","src","cellpadding","cellspacing"],b=["TD","TH","TR","TABLE","TBODY","THEAD"];function y(e){var t=(0,h.toArray)(e.childNodes).map(y).every((function(e){return e})),n=(0,h.isBlockElement)(e),r=(0,h.getTagOfNode)(e);return r&&(v.indexOf(r)>=0||t&&!(0,h.isVoidHtmlElement)(e)&&b.indexOf(r)<0?(n&&!t&&(0,h.wrap)(e),(0,h.unwrap)(e)):function(e){for(var t=(0,h.safeInstanceOf)(e,"HTMLTableCellElement"),n=(0,h.safeInstanceOf)(e,"HTMLTableElement"),r=0,o=(0,h.toArray)(e.attributes);r<o.length;r++){var i=o[r];t&&"style"==i.name?E(e):n&&"style"==i.name?S(e):m.indexOf(i.name.toLowerCase())<0&&0!=i.name.indexOf("data-")&&e.removeAttribute(i.name)}}(e)),n}function C(e,t){var n=(0,h.getStyles)(e),r={};return(0,h.getObjectKeys)(n).forEach((function(e){return t(e,n,r)})),(0,h.setStyles)(e,n),r}function E(e){return C(e,(function(e,t,n){e.indexOf("border")<0&&(n[e]=t[e],delete t[e])}))}function S(e){return C(e,(function(e,t,n){"border-collapse"!=e&&(n[e]=t[e],delete t[e])}))}function w(e){if(!function(e){var t=e.getSelectionTraverser();return!!t.currentBlockElement&&!!t.getNextBlockElement()}(e)){var t=e.getSelectionTraverser().currentInlineElement;if(t instanceof h.PartialInlineElement||t instanceof h.NodeInlineElement&&!function(e,t){for(var n,r=e,o=function(){if(r.nextSibling||r.previousSibling){if((0,h.safeInstanceOf)(r,"HTMLLIElement"))return{value:!0};var e=!0;return null===(n=r.parentNode)||void 0===n||n.childNodes.forEach((function(t){t!=r&&t.textContent.length&&(e=!1)})),{value:e}}r=r.parentNode};r&&t.contains(r.parentNode);){var i=o();if("object"==typeof i)return i.value}return!0}(t.getContainerNode(),e))return void _(e)}T(e)}function T(e){(0,a.default)(e,(function(){(0,o.default)(e,(function(t){var n=(0,h.getSelectedBlockElementsInRegion)(t,void 0,e.isFeatureEnabled("DefaultFormatInSpan")),r=(0,h.collapseNodesInRegion)(t,n);if(e.contains(t.rootNode)){var o=E(t.rootNode);if((0,h.getObjectKeys)(o).length>0){var i=(0,h.wrap)((0,h.toArray)(t.rootNode.childNodes));(0,h.setStyles)(i,o)}}for(;r.length>0&&(0,h.isNodeInRegion)(t,r[0].parentNode);)r=[(0,h.splitBalancedNodeRange)(r)];r.forEach(y)})),O(e)}),"clearBlockFormat")}function O(e){var t=e.getDefaultFormat(),n=0===(0,h.getObjectKeys)(t).length;if(e.queryElements("[style]",2,(function(e){var t=(0,h.getTagOfNode)(e);-1==b.indexOf(t)?P(t,e,n):e.childNodes.forEach((function(e){e.childNodes.forEach((function(e){var t=(0,h.getTagOfNode)(e);(0,h.safeInstanceOf)(e,"HTMLElement")&&P(t,e,n)}))}))})),!n){if(t.fontFamily&&(0,s.default)(e,t.fontFamily),t.fontSize&&(0,u.default)(e,t.fontSize),t.textColor){var o=e.queryElements("a *, a",1),i=o.length>0?function(e){return-1==o.indexOf(e)}:null;t.textColors?(0,d.default)(e,t.textColors,i):(0,d.default)(e,t.textColor,i)}t.backgroundColor&&(t.backgroundColors?(0,l.default)(e,t.backgroundColors):(0,l.default)(e,t.backgroundColor)),t.bold?(0,c.default)(e):function(e,t){void 0===t&&(t="400"),(0,r.default)(e,"font-weight",(function(e){return e.style.fontWeight=t}),"setDefaultFontWeight")}(e),t.italic&&(0,f.default)(e),t.underline&&(0,p.default)(e)}}function P(e,t,n){-1==b.indexOf(e)&&(g.forEach((function(e){return t.style.removeProperty(e)})),n&&""===t.getAttribute("style")&&t.removeAttribute("style"))}function _(e,t){switch(void 0===t&&(t=0),t){case 0:!function(e){e.focus(),e.addUndoSnapshot((function(){return(0,i.default)(e,"removeFormat"),e.queryElements("[class]",1,(function(e){return e.removeAttribute("class")})),O(e),"clearInlineFormat"}),"Format")}(e);break;case 1:T(e);break;default:w(e)}}t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42);t.default=function(e,t){(0,r.default)(e,"font-family",(function(e,n){e.style.fontFamily=n?"":t}),"setFontName")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42),o=n(0);t.default=function(e,t){(0,r.default)(e,"font-size",(function(e,n){e.style.fontSize=n?"":t;var r=(0,o.getComputedStyle)(e,"line-height");r&&"normal"!=r&&(e.style.lineHeight="normal")}),"setFontSize")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42),o=n(0);t.default=function(e,t,n){(0,r.default)(e,"color",(function(r,i){n&&!n(r)||(0,o.setColor)(r,i?"":t,!1,e.isDarkMode())}),"setTextColor")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.default=function(e){(0,r.default)(e,"bold","toggleBold")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.default=function(e){(0,r.default)(e,"italic","toggleItalic")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.default=function(e){(0,r.default)(e,"underline","toggleUnderline")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e,t){if((0,r.safeInstanceOf)(e,"HTMLElement")){var n=e.style.textAlign,o=(0,r.findClosestElementAncestor)(e,void 0,"blockquote"),i=(a=e,"rtl"==(0,r.getComputedStyle)(a,"direction")||"rtl"==a.getAttribute("dir"));if(t){if(t.indexOf(o)>-1)return;t.push(o)}for(;o;)"center"==n?i?(delete o.style.marginInlineEnd,o.style.marginInlineStart="auto"):(delete o.style.marginInlineStart,o.style.marginInlineEnd="auto"):(delete o.style.marginInlineStart,delete o.style.marginInlineEnd),o=(0,r.findClosestElementAncestor)(o.parentElement,void 0,"blockquote")}var a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),o=n(0);t.default=function(e,t,n,i){(0,r.default)(e,(function(n){var r=(0,o.getSelectedBlockElementsInRegion)(n,!0,e.isFeatureEnabled("DefaultFormatInSpan")),i=(0,o.collapseNodesInRegion)(n,r);if(i.length>0){if(1==i.length){var a=(0,o.getTagOfNode)(i[0]);"BR"==a?i=[(0,o.wrap)(i[0])]:"LI"!=a&&"TD"!=a||(i=(0,o.toArray)(i[0].childNodes))}for(;i[0]&&(0,o.isNodeInRegion)(n,i[0].parentNode)&&i.some((function(e){return"LI"==(0,o.getTagOfNode)(e)}));)i=[(0,o.splitBalancedNodeRange)(i)];t(i)}}),n,i)}},function(e,t,n){"use strict";var r,o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});var a=n(110),l=n(112),s=n(43),u=n(61),d=n(269),c=n(270),f=n(34),p=n(271),h=n(0),g=n(113),v=Math.PI,m=2*v/8,b=["nw","n","ne","e","se","s","sw","w"],y={borderColor:"#DB626C",minWidth:10,minHeight:10,preserveRatio:!1,minRotateDeg:5,imageSelector:"img",rotateIconHTML:null,disableCrop:!1,disableRotate:!1,disableSideResize:!1,onSelectState:7},C=((r={})[1]=g.getCornerResizeHTML,r[2]=g.getSideResizeHTML,r[4]=p.getRotateHTML,r[8]=c.getCropHTML,r),E=function(){function e(e,t){var n=this;this.onShowResizeHandle=t,this.onBlur=function(){n.setEditingImage(null,!0)},this.removeWrapper=function(){var e,t,r=n.editor.getDocument();n.zoomWrapper&&(null===(e=r.body)||void 0===e?void 0:e.contains(n.zoomWrapper))&&(null===(t=r.body)||void 0===t||t.removeChild(n.zoomWrapper),n.toggleImageVisibility(n.image,!0)),n.wrapper=null,n.zoomWrapper=null},this.updateWrapper=function(e){var t,r=n.wrapper;if(r){var o=T(r,"r_cropC"),i=T(r,"r_cropO"),a=T(r,"r_resizeH"),l=T(r,"r_cropH"),s=1==o.length&&4==i.length,d=n.editInfo,c=d.angleRad,f=d.bottomPercent,p=d.leftPercent,v=d.rightPercent,m=d.topPercent,b=(0,u.default)(n.editInfo,s),y=b.targetWidth,C=b.targetHeight,E=b.originalWidth,_=b.originalHeight,M=b.visibleWidth,x=b.visibleHeight,N=(y-M)/2,R=(C-x)/2,I=E*p,L=E*v,D=_*m,k=_*f;if(r.style.width=w(M),r.style.height=w(x),r.style.margin=R+"px "+N+"px",r.style.transform="rotate("+c+"rad)",n.zoomWrapper.style.width=w(M),n.zoomWrapper.style.height=w(x),function(e,t,n){var r,o,i=O(n),a=i>=2&&i<4||i>=6,l=null===(o=null===(r=e.getScrollContainer())||void 0===r?void 0:r.getBoundingClientRect())||void 0===o?void 0:o.top,s=null==t?void 0:t.getBoundingClientRect(),u=s.top,d=s.width,c=s.height;if(l>u){var f=100*Math.abs(n),p=l-u,h=a?f*(p/d):p/c*100;t.style.clipPath="polygon(0 "+h+"%, 100% "+h+"%, 100% "+(a?f:"100")+"%, 0 "+(a?f:"100")+"%)"}}(n.editor,n.zoomWrapper,c),r.style.textAlign=(t=r.parentNode,(0,h.safeInstanceOf)(t,"HTMLElement")&&"rtl"==(0,h.getComputedStyle)(t,"direction")?"right":"left"),n.clonedImage.style.width=w(E),n.clonedImage.style.height=w(_),s)S(o[0],I,D,L,k,void 0,void 0),S(i[0],0,0,L,void 0,void 0,D),S(i[1],void 0,0,0,k,L,void 0),S(i[2],I,void 0,0,0,void 0,k),S(i[3],0,D,void 0,0,I,void 0),P(l,c);else{if(n.clonedImage.style.margin=-D+"px 0 0 "+-I+"px","r_resizeH"==(null==e?void 0:e.elementClass)){var A=r.clientWidth,j=r.clientHeight;n.wasResized=!0,(0,g.doubleCheckResize)(n.editInfo,n.options.preserveRatio,A,j),n.updateWrapper()}P(a,c)}}},this.options=o(o({},y),e||{}),this.allowedOperations=1|(this.options.disableCrop?0:8)|(this.options.disableRotate?0:4)|(this.options.disableSideResize?0:2)}return e.prototype.getName=function(){return"ImageEdit"},e.prototype.initialize=function(e){this.editor=e,this.disposer=e.addDomEventHandler("blur",this.onBlur)},e.prototype.dispose=function(){this.clearDndHelpers(),this.disposer(),this.disposer=null,this.editor=null},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 22:e.selectionRangeEx&&2===e.selectionRangeEx.type&&this.setEditingImage(e.selectionRangeEx.image,this.options.onSelectState);break;case 5:case 0:this.setEditingImage(null);break;case 7:"Format"!==e.source&&this.removeWrapper();break;case 8:(0,h.toArray)(e.clonedRoot.querySelectorAll(this.options.imageSelector)).forEach((function(e){(0,f.deleteEditInfo)(e)}));break;case 14:this.setEditingImage(null)}},e.prototype.isOperationAllowed=function(e){return!!(this.allowedOperations&e)},e.prototype.setEditingImage=function(e,t){var n=this,r="number"==typeof t?t:0,o="number"!=typeof t&&!!t;!e&&this.image&&(this.clearDndHelpers(),(0,a.default)(this.editor,this.image,this.editInfo,this.lastSrc,this.wasResized,this.clonedImage),this.removeWrapper(),this.editor.addUndoSnapshot((function(){return n.image}),"ImageResize"),o&&this.editor.select(this.image),this.image=null,this.editInfo=null,this.lastSrc=null,this.clonedImage=null),!this.image&&(null==e?void 0:e.isContentEditable)&&(this.editor.addUndoSnapshot(),this.image=e,this.editInfo=(0,f.getEditInfoFromImage)(e),this.wasResized=function(e){var t=e.width,n=e.height,r=e.style;return!(""!==r.maxWidth&&"initial"!==r.maxWidth&&"auto"!==r.maxWidth||!(_(r.height)||_(r.width)||_(t)||_(n)))}(this.image),r=((0,l.default)(e)?r:3)&this.allowedOperations,this.createWrapper(r),this.updateWrapper(),this.dndHelpers=i(i(i(i([],this.createDndHelpers("r_resizeH",g.Resizer),!0),this.createDndHelpers("r_rotateH",p.Rotator),!0),this.createDndHelpers("r_cropH",c.Cropper),!0),this.createDndHelpers("r_cropC",c.Cropper),!0),this.editor.select(this.image),this.toggleImageVisibility(this.image,!1))},e.prototype.createWrapper=function(e){var t=this;this.clonedImage=this.image.cloneNode(!0),this.clonedImage.removeAttribute("id"),this.wrapper=(0,h.createElement)(6,this.image.ownerDocument),this.wrapper.firstChild.appendChild(this.clonedImage);var n,r,o=(n=this.image,r="vertical-align",n.ownerDocument.defaultView.getComputedStyle(n).getPropertyValue(r));o&&(this.wrapper.style.verticalAlign=o),this.wrapper.style.display=h.Browser.isSafari?"inline-block":"inline-flex",this.lastSrc=this.image.getAttribute("src"),this.clonedImage.src=this.editInfo.src,this.clonedImage.style.position="absolute",this.clonedImage.style.maxWidth=null;var i,a,l,s={borderColor:M(this.options.borderColor,this.editor.isDarkMode()),rotateIconHTML:this.options.rotateIconHTML,rotateHandleBackColor:this.editor.isDarkMode()?"#333":"white",isSmallImage:(i=this.editInfo,a=i.widthPx,l=i.heightPx,a&&l&&a*a<1e4)},u=[(0,g.getResizeBordersHTML)(s)];(0,h.getObjectKeys)(C).forEach((function(n){(e&n)==n&&(0,h.arrayPush)(u,C[n](s,t.onShowResizeHandle))})),u.forEach((function(e){var n=(0,h.createElement)(e,t.image.ownerDocument);n&&t.wrapper.appendChild(n)})),this.insertImageWrapper(this.editor,this.image,this.wrapper,this.editor.getZoomScale())},e.prototype.toggleImageVisibility=function(e,t){var n=this.editor.getEditorDomAttribute("id"),r=this.editor.getDocument(),o="editingId"+n;if(t)(0,h.removeGlobalCssStyle)(r,o);else{var i="#"+n+" #"+e.id+" {visibility: hidden}";(0,h.setGlobalCssStyles)(r,i,o)}},e.prototype.insertImageWrapper=function(e,t,n,r){this.zoomWrapper=function(e,t){var n=e.getBoundingClientRect(),r=n.top,o=n.left,i=n.right,a=n.bottom;return t.style.top=r+"px",t.style.bottom=a+"px",t.style.right=i+"px",t.style.left=o+"px",t}(t,function(e,t,n){var r=e.getDocument().createElement("div");return r.style.transform="scale("+(n||1)+")",r.style.transformOrigin="top left",r.style.position="fixed",r.appendChild(t),r}(e,n,r)),this.zoomWrapper.style.zIndex=""+((0,d.default)(e.getScrollContainer())+1),this.editor.getDocument().body.appendChild(this.zoomWrapper)},e.prototype.createDndHelpers=function(e,t){var n=this,r={editInfo:this.editInfo,options:this.options,elementClass:e},i=this.wrapper;return i?T(i,e).map((function(e){return new s.default(e,o(o({},r),{x:e.dataset.x,y:e.dataset.y}),n.updateWrapper,t,n.editor.getZoomScale())})):[]},e.prototype.clearDndHelpers=function(){var e;null===(e=this.dndHelpers)||void 0===e||e.forEach((function(e){return e.dispose()})),this.dndHelpers=null},e}();function S(e,t,n,r,o,i,a){e.style.left=w(t),e.style.top=w(n),e.style.right=w(r),e.style.bottom=w(o),e.style.width=w(i),e.style.height=w(a)}function w(e){return void 0===e?null:e+"px"}function T(e,t){return(0,h.toArray)(e.querySelectorAll("."+t))}function O(e){var t=Math.round(e/m)%8;return t<0?t+8:t}function P(e,t){e.map((function(e){e.style.cursor=function(e,t){var n=O(t),r=e.dataset.y+e.dataset.x,o=b.indexOf(r);return b[(o>=0&&o+n)%8]}(e,t)+"-resize"}))}function _(e){var t="string"==typeof e?parseInt(e):e;return!isNaN(t)}function M(e,t){return"string"==typeof e?e.trim():t?e.darkModeColor.trim():e.lightModeColor.trim()}t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(111),o=n(268),i=n(61),a=n(34);t.default=function(e,t,n,l,s,u){var d="",c=(0,a.getEditInfoFromImage)(null!=u?u:t),f=(0,r.default)(n,c);switch(f){case 1:d=n.src;break;case 2:d=l;break;case 3:d=(0,o.default)(null!=u?u:t,n)}d!=l&&(d=e.triggerPluginEvent(19,{image:t,originalSrc:n.src,previousSrc:l,newSrc:d}).newSrc),d==n.src?(0,a.deleteEditInfo)(t):(0,a.saveEditInfo)(t,n);var p=(0,i.default)(n),h=p.targetWidth,g=p.targetHeight;t.src=d,(s||3==f)&&(t.style.maxWidth="initial",t.width=h,t.height=g,t.style.width=h+"px",t.style.height=g+"px")}},function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});var o=["angleRad"],i=["leftPercent","rightPercent","topPercent","bottomPercent"],a=r(r([],o,!0),i,!0),l=r(r([],a,!0),["widthPx","heightPx"],!0);function s(e,t){return Math.abs(e-t)<.001}t.default=function(e,t){return e&&e.src&&!l.some((function(t){return!("number"==typeof e[t])}))?a.every((function(t){return s(e[t],0)}))?1:t&&o.every((function(t){return s(e[t],0)}))&&o.every((function(e){return s(t[e],0)}))&&i.every((function(n){return s(e[n],t[n])}))?2:3:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)return!1;try{var t=e.ownerDocument.createElement("canvas");t.width=10,t.height=10;var n=t.getContext("2d");return n.drawImage(e,0,0),n.getImageData(0,0,1,1),!0}catch(e){return!1}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getResizeBordersHTML=t.getSideResizeHTML=t.getCornerResizeHTML=t.doubleCheckResize=t.rotateCoordinate=t.Resizer=void 0;var o=["w","","e"],i=["s","","n"];function a(e,t,n){if(0==e&&0==t)return[0,0];var r=Math.sqrt(e*e+t*t);return n=Math.atan2(t,e)-n,[r*Math.cos(n),r*Math.sin(n)]}function l(e,t,n,r){var o="w"==e?"left":"right",i="n"==t?"top":"bottom",a=t+e;return""==e&&""==t?null:{tag:"div",style:"position:absolute;"+o+":"+(""==e?"50%":"0px")+";"+i+":"+(""==t?"50%":"0px"),children:[{tag:"div",style:s[r](a,i,o,n),className:"r_resizeH",dataset:{x:e,y:t}}]}}t.Resizer={onDragStart:function(e){var t=e.editInfo;return r({},t)},onDragging:function(e,t,n,r,o){var i,l=e.x,s=e.y,u=e.editInfo,d=e.options,c=n.widthPx>0&&n.heightPx>0?1*n.widthPx/n.heightPx:0;r=(i=a(r,o,u.angleRad))[0],o=i[1];var f=""==l,p=""==s,h=!(f||p)&&(d.preserveRatio||t.shiftKey),g=f?n.widthPx:Math.max(n.widthPx+r*("w"==l?-1:1),d.minWidth),v=p?n.heightPx:Math.max(n.heightPx+o*("n"==s?-1:1),d.minHeight);return h&&c>0&&(c>1?(g=v*c)<d.minWidth&&(v=(g=d.minWidth)/c):(v=g/c)<d.minHeight&&(g=(v=d.minHeight)*c)),u.widthPx=g,u.heightPx=v,!0}},t.rotateCoordinate=a,t.doubleCheckResize=function(e,t,n,r){var o=e.widthPx,i=e.heightPx,a=i>0?o/i:0;n=Math.floor(n),r=Math.floor(r),o=Math.floor(o),i=Math.floor(i),e.widthPx=n,e.heightPx=r,t&&a>0&&(o!==n||i!==r)&&(n<o?e.heightPx=n/a:e.widthPx=r*a)},t.getCornerResizeHTML=function(e,t){var n=e.borderColor,r=[];return o.forEach((function(e){return i.forEach((function(o){var i=""==e==(""==o)?l(e,o,n,1):null;t&&t(i,e,o),r.push(i)}))})),r},t.getSideResizeHTML=function(e,t){var n=e.borderColor;if(e.isSmallImage)return null;var r=[];return o.forEach((function(e){return i.forEach((function(o){var i=""==e!=(""==o)?l(e,o,n,1):null;t&&t(i,e,o),r.push(i)}))})),r},t.getResizeBordersHTML=function(e){return{tag:"div",style:"position:absolute;left:0;right:0;top:0;bottom:0;border:solid 2px "+e.borderColor+";pointer-events:none;"}};var s={0:function(e,t,n,r){return"position:relative;width:10px;height:10px;background-color: "+r+";cursor:"+e+"-resize;"+n+":-3px;"+t+":-3px;"},1:function(e,t,n){return"position:relative;width:10px;height:10px;background-color: #FFFFFF;cursor:"+e+"-resize;"+n+":-3px;"+t+":-3px;border-radius:100%;border: 2px solid #bfbfbf;box-shadow: 0px 0.36316px 1.36185px rgba(100, 100, 100, 0.25);"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.naturalWidth,r=e.naturalHeight,o=e.leftPercent,i=e.topPercent;return{width:n*(1-o-e.rightPercent)*t,height:r*(1-i-e.bottomPercent)*t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(114),o=n(34);t.default=function(e,t){var n=(0,o.getEditInfoFromImage)(e),i=(0,r.default)(n,t),a=i.width,l=i.height;return Math.round(a)==Math.round(n.widthPx)&&Math.round(l)==Math.round(n.heightPx)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getObject=t.setObject=t.createCustomData=void 0;function r(e,t){var n=t.getAttribute("NodeId");return n||(n=e.nextNodeId.toString(),e.nextNodeId++,t.setAttribute("NodeId",n)),n}t.createCustomData=function(){return{dict:{},nextNodeId:1}},t.setObject=function(e,t,n,o){if(1==t.nodeType){var i=r(e,t);""!=i&&(e.dict[i]||(e.dict[i]={}),e.dict[i][n]=o)}},t.getObject=function(e,t,n){if(1==t.nodeType){var o=r(e,t);if(""!=o)return e.dict[o]&&e.dict[o][n]}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLevelLists=void 0,t.createLevelLists=function(){return{listsMetadata:{},currentUniqueListId:-1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createEditor=void 0;var i=n(124);Object.defineProperty(t,"createEditor",{enumerable:!0,get:function(){return i.default}}),o(n(327),t),o(n(329),t),o(n(0),t),o(n(62),t),o(n(9),t),o(n(98),t),o(n(95),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(62),o=n(95),i=n(98);t.default=function(e,t,n){var a=[new i.HyperLink,new i.Paste,new i.ContentEdit];t&&(a=a.concat(t));var l={plugins:a,initialContent:n,getDarkColor:o.getDarkColor,defaultFormat:{fontFamily:"Calibri,Arial,Helvetica,sans-serif",fontSize:"11pt",textColor:"#000000"}};return new r.Editor(e,l)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(126),i=n(184),a=n(0),l=function(){function e(e,t){var n,l=this;if(void 0===t&&(t={}),this.core=null,"DIV"!=(0,a.getTagOfNode)(e))throw new Error("contentDiv must be an HTML DIV element");var s=(0,o.default)(e,t),u=[];(0,a.getObjectKeys)(s).forEach((function(e){"_placeholder"==e?t.plugins&&(0,a.arrayPush)(u,t.plugins):u.push(s[e])}));var d=(null!==(n=t.zoomScale)&&void 0!==n?n:-1)>0?t.zoomScale:1;this.core=r(r({contentDiv:e,api:r(r({},i.coreApiMap),t.coreApiOverride||{}),originalApi:i.coreApiMap,plugins:u.filter((function(e){return!!e}))},(0,o.getPluginState)(s)),{trustedHTMLHandler:t.trustedHTMLHandler||function(e){return e},zoomScale:d,sizeTransformer:t.sizeTransformer||function(e){return e/d},getVisibleViewport:t.getVisibleViewport||function(){var t=l.getScrollContainer();return(0,a.getIntersectedRect)(t==e?[t]:[t,e])},imageSelectionBorderColor:t.imageSelectionBorderColor}),this.core.plugins.forEach((function(e){return e.initialize(l)})),this.ensureTypeInContainer(new a.Position(this.core.contentDiv,0).normalize())}return e.prototype.dispose=function(){for(var e=this.getCore(),t=e.plugins.length-1;t>=0;t--)e.plugins[t].dispose();this.core=null},e.prototype.isDisposed=function(){return!this.core},e.prototype.insertNode=function(e,t){var n=this.getCore();return!!e&&n.api.insertNode(n,e,null!=t?t:null)},e.prototype.deleteNode=function(e){return!!(e&&this.contains(e)&&e.parentNode)&&(e.parentNode.removeChild(e),!0)},e.prototype.replaceNode=function(e,t,n){var r=this.getCore();return!(!this.contains(e)||!t)&&(r.api.transformColor(r,n?t:null,!0,(function(){var n;return null===(n=e.parentNode)||void 0===n?void 0:n.replaceChild(t,e)}),0),!0)},e.prototype.getBlockElementAtNode=function(e){return(0,a.getBlockElementAtNode)(this.getCore().contentDiv,e)},e.prototype.contains=function(e){return!!e&&(0,a.contains)(this.getCore().contentDiv,e)},e.prototype.queryElements=function(e,t,n){void 0===t&&(t=0);var r=this.getCore(),o=[],i=t instanceof Function?0:t;n=t instanceof Function?t:n;var l=0==i?null:this.getSelectionRangeEx();return l?(l.ranges.forEach((function(t){o.push.apply(o,(0,a.queryElements)(r.contentDiv,e,n,i,t))})),o):(0,a.queryElements)(r.contentDiv,e,n,i,void 0)},e.prototype.collapseNodes=function(e,t,n){return(0,a.collapseNodes)(this.getCore().contentDiv,e,t,n)},e.prototype.isEmpty=function(e){return(0,a.isNodeEmpty)(this.getCore().contentDiv,e)},e.prototype.getContent=function(e){void 0===e&&(e=0);var t=this.getCore();return t.api.getContent(t,e)},e.prototype.setContent=function(e,t){void 0===t&&(t=!0);var n=this.getCore();n.api.setContent(n,e,t)},e.prototype.insertContent=function(e,t){var n;if(e){var r=this.getDocument(),o=null===(n=(new DOMParser).parseFromString(this.getCore().trustedHTMLHandler(e),"text/html"))||void 0===n?void 0:n.body,i=(null==o?void 0:o.childNodes)?(0,a.toArray)(o.childNodes):[];t&&t.insertOnNewLine&&i.length>1&&(i=[(0,a.wrap)(i)]);var l=r.createDocumentFragment();i.forEach((function(e){return l.appendChild(e)})),this.insertNode(l,t)}},e.prototype.deleteSelectedContent=function(){var e=this.getSelectionRange();return e&&!e.collapsed?(0,a.deleteSelectedContent)(this.getCore().contentDiv,e):null},e.prototype.paste=function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var o=this.getCore();if(e){e.snapshotBeforePaste?this.setContent(e.snapshotBeforePaste):e.snapshotBeforePaste=this.getContent(2);var i=this.getSelectionRange(),l=i&&a.Position.getStart(i),s=o.api.createPasteFragment(o,e,l,t,n);s&&this.addUndoSnapshot((function(){return r.insertNode(s),e}),"Paste")}},e.prototype.getSelectionRange=function(e){void 0===e&&(e=!0);var t=this.getCore();return t.api.getSelectionRange(t,e)},e.prototype.getSelectionRangeEx=function(){var e=this.getCore();return e.api.getSelectionRangeEx(e)},e.prototype.getSelectionPath=function(){var e=this.getSelectionRange();return e&&(0,a.getSelectionPath)(this.getCore().contentDiv,e)},e.prototype.hasFocus=function(){var e=this.getCore();return e.api.hasFocus(e)},e.prototype.focus=function(){var e=this.getCore();e.api.focus(e)},e.prototype.select=function(e,t,n,r){var o,i=this.getCore(),l=null;if(function(e){var t=e;return t&&"object"==typeof t&&"number"==typeof t.type&&Array.isArray(t.ranges)}(e))l=e;else if((0,a.safeInstanceOf)(e,"HTMLTableElement")&&((o=t)&&"object"==typeof o&&"object"==typeof o.firstCell&&"object"==typeof o.lastCell))l={type:1,ranges:[],areAllCollapsed:!1,table:e,coordinates:t};else if((0,a.safeInstanceOf)(e,"HTMLImageElement")&&void 0===t)l={type:2,ranges:[],areAllCollapsed:!1,image:e};else{var s=e?(0,a.safeInstanceOf)(e,"Range")?e:function(e){var t=e;return t&&"object"==typeof t&&Array.isArray(t.start)&&Array.isArray(t.end)}(e)?(0,a.createRange)(i.contentDiv,e.start,e.end):function(e){var t=e;return t&&"object"==typeof t&&"object"==typeof t.node&&"number"==typeof t.offset}(e)||(0,a.safeInstanceOf)(e,"Node")?(0,a.createRange)(e,t,n,r):null:null;l=s?{type:0,ranges:[s],areAllCollapsed:s.collapsed}:null}if(l){switch(l.type){case 1:this.contains(l.table)&&(i.domEvent.imageSelectionRange=i.api.selectImage(i,null),i.domEvent.tableSelectionRange=i.api.selectTable(i,l.table,l.coordinates),l=i.domEvent.tableSelectionRange);break;case 2:this.contains(l.image)&&(i.domEvent.tableSelectionRange=i.api.selectTable(i,null),i.domEvent.imageSelectionRange=i.api.selectImage(i,l.image),l=i.domEvent.imageSelectionRange);break;case 0:i.domEvent.tableSelectionRange=i.api.selectTable(i,null),i.domEvent.imageSelectionRange=i.api.selectImage(i,null),this.contains(l.ranges[0])?i.api.selectRange(i,l.ranges[0]):l=null}this.triggerPluginEvent(22,{selectionRangeEx:l},!0)}else i.domEvent.tableSelectionRange=i.api.selectTable(i,null),i.domEvent.imageSelectionRange=i.api.selectImage(i,null);return!!l},e.prototype.getFocusedPosition=function(){var e,t=null===(e=this.getDocument().defaultView)||void 0===e?void 0:e.getSelection();if((null==t?void 0:t.focusNode)&&this.contains(t.focusNode))return new a.Position(t.focusNode,t.focusOffset);var n=this.getSelectionRange();return n?a.Position.getStart(n):null},e.prototype.getElementAtCursor=function(e,t,n){var r,o=this;return n=t?void 0:n,null!==(r=(0,a.cacheGetEventData)(null!=n?n:null,"GET_ELEMENT_AT_CURSOR_"+e,(function(){if(!t){var n=o.getFocusedPosition();t=null==n?void 0:n.node}return t&&(0,a.findClosestElementAncestor)(t,o.getCore().contentDiv,e)})))&&void 0!==r?r:null},e.prototype.isPositionAtBeginning=function(e){return(0,a.isPositionAtBeginningOf)(e,this.getCore().contentDiv)},e.prototype.getSelectedRegions=function(e){void 0===e&&(e=0);var t=this.getSelectionRangeEx(),n=[],r=this.getCore().contentDiv;return t.ranges.forEach((function(t){n.push.apply(n,t?(0,a.getRegionsFromRange)(r,t,e):[])})),n.filter((function(e,t,n){return n.indexOf(e)===t}))},e.prototype.addDomEventHandler=function(e,t){var n,r="string"==typeof e?((n={})[e]=t,n):e,o=this.getCore();return o.api.attachDomEvent(o,r)},e.prototype.triggerPluginEvent=function(e,t,n){void 0===n&&(n=!1);var o=this.getCore(),i=r({eventType:e},t);return o.api.triggerEvent(o,i,n),i},e.prototype.triggerContentChangedEvent=function(e,t){void 0===e&&(e="SetContent"),this.triggerPluginEvent(7,{source:e,data:t})},e.prototype.undo=function(){this.focus();var e=this.getCore();e.api.restoreUndoSnapshot(e,-1)},e.prototype.redo=function(){this.focus();var e=this.getCore();e.api.restoreUndoSnapshot(e,1)},e.prototype.addUndoSnapshot=function(e,t,n,r){var o=this.getCore();o.api.addUndoSnapshot(o,null!=e?e:null,null!=t?t:null,null!=n&&n,r)},e.prototype.getUndoState=function(){var e=this.getCore().undo,t=e.hasNewContent,n=e.snapshotsService;return{canUndo:t||n.canMove(-1),canRedo:n.canMove(1)}},e.prototype.getDocument=function(){return this.getCore().contentDiv.ownerDocument},e.prototype.getScrollContainer=function(){return this.getCore().domEvent.scrollContainer},e.prototype.getCustomData=function(e,t,n){var r=this.getCore();return(r.lifecycle.customData[e]=r.lifecycle.customData[e]||{value:t?t():void 0,disposer:n}).value},e.prototype.isInIME=function(){return this.getCore().domEvent.isInIME},e.prototype.getDefaultFormat=function(){var e;return null!==(e=this.getCore().lifecycle.defaultFormat)&&void 0!==e?e:{}},e.prototype.getBodyTraverser=function(e){return a.ContentTraverser.createBodyTraverser(this.getCore().contentDiv,e)},e.prototype.getSelectionTraverser=function(e){var t;return(e=null!==(t=null!=e?e:this.getSelectionRange())&&void 0!==t?t:void 0)?a.ContentTraverser.createSelectionTraverser(this.getCore().contentDiv,e):null},e.prototype.getBlockTraverser=function(e){void 0===e&&(e=3);var t=this.getSelectionRange();return t?a.ContentTraverser.createBlockTraverser(this.getCore().contentDiv,t,e):null},e.prototype.getContentSearcherOfCursor=function(e){var t=this;return(0,a.cacheGetEventData)(null!=e?e:null,"ContentSearcher",(function(){var e=t.getSelectionRange();return e&&new a.PositionContentSearcher(t.getCore().contentDiv,a.Position.getStart(e))}))},e.prototype.runAsync=function(e){var t=this,n=this.getCore().contentDiv.ownerDocument.defaultView||window,r=n.requestAnimationFrame((function(){!t.isDisposed()&&e&&e(t)}));return function(){n.cancelAnimationFrame(r)}},e.prototype.setEditorDomAttribute=function(e,t){null===t?this.getCore().contentDiv.removeAttribute(e):this.getCore().contentDiv.setAttribute(e,t)},e.prototype.getEditorDomAttribute=function(e){return this.getCore().contentDiv.getAttribute(e)},e.prototype.getRelativeDistanceToEditor=function(e,t){if(this.contains(e)){var n=this.getCore().contentDiv,r=n.getBoundingClientRect(),o=e.getBoundingClientRect();if(r&&o){var i=o.left-(null==r?void 0:r.left),a=o.top-(null==r?void 0:r.top);return t&&(i+=n.scrollLeft,a+=n.scrollTop),[i,a]}}return null},e.prototype.addContentEditFeature=function(e){var t=this.getCore();null==e||e.keys.forEach((function(n){var r=t.edit.features[n]||[];r.push(e),t.edit.features[n]=r}))},e.prototype.removeContentEditFeature=function(e){var t=this.getCore();null==e||e.keys.forEach((function(n){var r,o=t.edit.features[n],i=null!==(r=null==o?void 0:o.indexOf(e))&&void 0!==r?r:-1;i>=0&&(t.edit.features[n].splice(i,1),t.edit.features[n].length<1&&delete t.edit.features[n])}))},e.prototype.getStyleBasedFormatState=function(e){var t;if(!e){var n=this.getSelectionRange();e=null!==(t=n&&a.Position.getStart(n).normalize().node)&&void 0!==t?t:void 0}var r=this.getCore();return r.api.getStyleBasedFormatState(r,null!=e?e:null)},e.prototype.getPendableFormatState=function(e){void 0===e&&(e=!1);var t=this.getCore();return t.api.getPendableFormatState(t,e)},e.prototype.ensureTypeInContainer=function(e,t){var n=this.getCore();n.api.ensureTypeInContainer(n,e,t,this.isFeatureEnabled("DefaultFormatInSpan"))},e.prototype.setDarkModeState=function(e){if(this.isDarkMode()!=!!e){var t=this.getCore();t.api.transformColor(t,t.contentDiv,!1,null,e?0:1,!0),this.triggerContentChangedEvent(e?"SwitchToDarkMode":"SwitchToLightMode")}},e.prototype.isDarkMode=function(){return this.getCore().lifecycle.isDarkMode},e.prototype.transformToDarkColor=function(e){var t=this.getCore();t.api.transformColor(t,e,!0,null,0)},e.prototype.startShadowEdit=function(){var e=this.getCore();e.api.switchShadowEdit(e,!0)},e.prototype.stopShadowEdit=function(){var e=this.getCore();e.api.switchShadowEdit(e,!1)},e.prototype.isInShadowEdit=function(){return!!this.getCore().lifecycle.shadowEditFragment},e.prototype.isFeatureEnabled=function(e){return this.getCore().lifecycle.experimentalFeatures.indexOf(e)>=0},e.prototype.getTrustedHTMLHandler=function(){return this.getCore().trustedHTMLHandler},e.prototype.getSizeTransformer=function(){return this.getCore().sizeTransformer},e.prototype.getZoomScale=function(){return this.getCore().zoomScale},e.prototype.setZoomScale=function(e){var t=this.getCore();if(e>0&&e<=10){var n=t.zoomScale;t.zoomScale=e,n!=e&&this.triggerPluginEvent(21,{oldZoomScale:n,newZoomScale:e},!0)}},e.prototype.getVisibleViewport=function(){return this.getCore().getVisibleViewport()},e.prototype.getCore=function(){if(!this.core)throw new Error("Editor is already disposed");return this.core},e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPluginState=void 0;var r=n(127),o=n(174),i=n(175),a=n(176),l=n(177),s=n(178),u=n(179),d=n(180),c=n(181),f=n(182),p=n(183);t.default=function(e,t){var n=t.corePluginOverride||{};return{typeInContainer:n.typeInContainer||new f.default,edit:n.edit||new i.default,pendingFormatState:n.pendingFormatState||new c.default,_placeholder:null,typeAfterLink:null,undo:n.undo||new p.default(t),domEvent:n.domEvent||new o.default(t,e),mouseUp:n.mouseUp||new u.default,copyPaste:n.copyPaste||new r.default(t),entity:n.entity||new a.default,imageSelection:n.imageSelection||new l.default,normalizeTable:n.normalizeTable||new d.default,lifecycle:n.lifecycle||new s.default(t,e)}},t.getPluginState=function(e){return{domEvent:e.domEvent.getState(),pendingFormatState:e.pendingFormatState.getState(),edit:e.edit.getState(),lifecycle:e.lifecycle.getState(),undo:e.undo.getState(),entity:e.entity.getState(),copyPaste:e.copyPaste.getState()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(128),o=n(129),i=n(0),a=function(){function e(e){var t=this;this.editor=null,this.disposer=null,this.onPaste=function(e){var n,r=null;if(t.editor){var o=t.editor;(0,i.extractClipboardEvent)(e,(function(e){o&&!o.isDisposed()&&o.paste(e)}),{allowedCustomPasteType:t.state.allowedCustomPasteType,getTempDiv:function(){var e;return r=null!==(e=o.getSelectionRange())&&void 0!==e?e:null,t.getTempDiv(o)},removeTempDiv:function(e){r&&t.cleanUpAndRestoreSelection(e,r,!1)}},null!==(n=t.editor.getSelectionRange())&&void 0!==n?n:void 0)}},this.state={allowedCustomPasteType:e.allowedCustomPasteType||[]}}return e.prototype.getName=function(){return"CopyPaste"},e.prototype.initialize=function(e){var t=this;this.editor=e,this.disposer=this.editor.addDomEventHandler({paste:function(e){return t.onPaste(e)},copy:function(e){return t.onCutCopy(e,!1)},cut:function(e){return t.onCutCopy(e,!0)}})},e.prototype.dispose=function(){this.disposer&&this.disposer(),this.disposer=null,this.editor=null},e.prototype.getState=function(){return this.state},e.prototype.onCutCopy=function(e,t){var n=this;if(this.editor){var r=this.editor.getSelectionRangeEx();if(r&&!r.areAllCollapsed){var o=this.editor.getContent(2),a=this.getTempDiv(this.editor,!0),l=(0,i.setHtmlWithMetadata)(a,o,this.editor.getTrustedHTMLHandler()),s=null;if(1===r.type&&r.coordinates){var u=a.querySelector("#"+r.table.id);s=this.createTableRange(u,r.coordinates),t&&this.deleteTableContent(this.editor,r.table,r.coordinates)}else if(2===r.type){var d=a.querySelector("#"+r.image.id);d&&(s=(0,i.createRange)(d),t&&this.deleteImage(this.editor,r.image.id))}else s=0===(null==l?void 0:l.type)?(0,i.createRange)(a,l.start,l.end):null;if(s)this.editor.triggerPluginEvent(9,{clonedRoot:a,range:s,rawEvent:e,isCut:t}).range&&(0,i.addRangeToSelection)(s),this.editor.runAsync((function(e){n.cleanUpAndRestoreSelection(a,r,!t),t&&e.addUndoSnapshot((function(){var t=e.deleteSelectedContent();e.focus(),e.select(t)}),"Cut")}))}}},e.prototype.getTempDiv=function(e,t){var n=e.getCustomData("CopyPasteTempDiv",(function(){var t=(0,i.createElement)(3,e.getDocument());return e.insertNode(t,{position:4}),t}),(function(e){var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)}));return t&&(n.style.backgroundColor="white",n.style.color="black"),n.style.display="",n.focus(),n},e.prototype.cleanUpAndRestoreSelection=function(e,t,n){var r,o,a;if((null===(r=t)||void 0===r?void 0:r.type)||0==t.type){var l=t;switch(l.type){case 1:case 2:null===(o=this.editor)||void 0===o||o.select(l);break;case 0:var s=null===(a=l.ranges)||void 0===a?void 0:a[0];this.restoreRange(s,n)}}else this.restoreRange(t,n);e.style.backgroundColor="",e.style.color="",e.style.display="none",(0,i.moveChildNodes)(e)},e.prototype.restoreRange=function(e,t){e&&this.editor&&(t&&i.Browser.isAndroid&&e.collapse(),this.editor.select(e))},e.prototype.createTableRange=function(e,t){var n=new i.VTable(e);return n.selection=t,(0,o.removeCellsOutsideSelection)(n),n.writeBack(),(0,i.createRange)(n.table)},e.prototype.deleteTableContent=function(e,t,n){var o=new i.VTable(t);o.selection=n,(0,r.forEachSelectedCell)(o,(function(t){(null==t?void 0:t.td)&&(t.td.innerHTML=e.getTrustedHTMLHandler()("<br>"))}));var a=(0,i.isWholeTableSelected)(o,n),l=t.rows.length-1===n.lastCell.y&&0===n.firstCell.y;a?(o.edit(4),o.writeBack()):l&&(o.edit(5),o.writeBack()),(a||l)&&(t.style.removeProperty("width"),t.style.removeProperty("height"))},e.prototype.deleteImage=function(e,t){e.queryElements("#"+t,(function(t){e.deleteNode(t)}))},e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forEachSelectedCell=void 0;t.forEachSelectedCell=function(e,t){var n;if(e.selection)for(var r=e.selection,o=r.lastCell,i=r.firstCell,a=i.y;a<=o.y;a++)for(var l=i.x;l<=o.x;l++)e.cells&&(null===(n=e.cells[a][l])||void 0===n?void 0:n.td)&&t(e.cells[a][l])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeCellsOutsideSelection=void 0;var r=n(0);t.removeCellsOutsideSelection=function(e){if(e.selection){if((0,r.isWholeTableSelected)(e,e.selection))return;e.table.style.removeProperty("width"),e.table.style.removeProperty("height");var t=e.selection,n=t.firstCell,o=t.lastCell,i=[],a=n.x,l=n.y,s=o.x,u=o.y;e.cells&&(e.cells.forEach((function(e,t){(e=e.filter((function(e,n){return t>=l&&t<=u&&n>=a&&n<=s}))).length>0&&i.push(e)})),e.cells=i)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),o=n(4),i=n(11),a=n(2),l=n(27),s=n(13),u=n(15),d=n(17),c=["TD","TH","LI","BLOCKQUOTE"],f=function(){function e(e,t,n){this.rootNode=e,this.startNode=t,this.endNode=n}return e.getBlockContext=function(e){for(var t=e;t&&!(0,l.default)(t);)t=t.parentNode;return t},e.prototype.collapseToSingleElement=function(){for(var t=e.getBlockContext(this.startNode),n=t?(0,r.default)(t,this.startNode,this.endNode,!0):[],o=e.getBlockContext(this.startNode);n[0]&&n[0]!=o&&n[0].parentNode!=this.rootNode&&c.indexOf((0,a.default)(n[0].parentNode))<0;){var i=(0,d.splitBalancedNodeRange)(n);if(!i)break;n=[i]}return 1==n.length&&(0,l.default)(n[0])?n[0]:(0,u.default)(n)},e.prototype.getStartNode=function(){return this.startNode},e.prototype.getEndNode=function(){return this.endNode},e.prototype.equals=function(e){return this.startNode==e.getStartNode()&&this.endNode==e.getEndNode()},e.prototype.isAfter=function(e){return(0,s.default)(this.getStartNode(),e.getEndNode())},e.prototype.contains=function(e){return(0,o.default)(this.startNode,e,!0)||(0,o.default)(this.endNode,e,!0)||(0,s.default)(e,this.startNode)&&(0,s.default)(this.endNode,e)},e.prototype.getTextContent=function(){var e=(0,i.default)(this.getStartNode(),this.getEndNode());return e?e.toString():""},e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(7),i=n(66),a=n(20),l=n(68),s=function(){function e(e,t){this.rootNode=e,this.startNode=(0,r.default)(e,t)?t:null}return e.prototype.getStartBlockElement=function(){return this.startNode?(0,o.default)(this.rootNode,this.startNode):(0,i.default)(this.rootNode,!0)},e.prototype.getStartInlineElement=function(){return this.startNode?(0,a.default)(this.rootNode,this.startNode):(0,l.getFirstInlineElement)(this.rootNode)},e.prototype.isBlockInScope=function(e){return(0,r.default)(this.rootNode,e.getStartNode())},e.prototype.trimInlineElement=function(e){return e},e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70),o=n(7),i=n(20),a=n(63),l=n(5),s=n(1),u=n(48),d=n(68),c=function(){function e(e,t,n){this.rootNode=e,this.startFrom=n,(0,s.default)(t,"Range")&&(t=l.default.getStart(t)),this.position=t.normalize(),this.block=(0,o.default)(this.rootNode,this.position.node)}return e.prototype.getStartBlockElement=function(){return this.block},e.prototype.getStartInlineElement=function(){if(this.block)switch(this.startFrom){case 0:case 1:case 2:return function(e,t){if(e instanceof a.default){var n=e.getStartNode();return t?(0,d.getFirstInlineElement)(n):(0,d.getLastInlineElement)(n)}return(0,i.default)(e,t?e.getStartNode():e.getEndNode())}(this.block,0==this.startFrom);case 3:var e=(0,u.getInlineElementAfter)(this.rootNode,this.position);return e&&this.block.contains(e.getContainerNode())?e:new r.default(this.position,this.block)}return null},e.prototype.isBlockInScope=function(e){return!(!this.block||!e)&&this.block.equals(e)},e.prototype.trimInlineElement=function(e){return this.block&&e&&this.block.contains(e.getContainerNode())?e:null},e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(37),i=n(5),a=n(48),l=function(){function e(e,t){this.rootNode=e,this.startBlock=null,this.startInline=null,this.start=i.default.getStart(t).normalize(),this.end=i.default.getEnd(t).normalize()}return e.prototype.getStartBlockElement=function(){return this.startBlock||(this.startBlock=(0,r.default)(this.rootNode,this.start.node)),this.startBlock},e.prototype.getStartInlineElement=function(){return this.startInline||(this.startInline=this.trimInlineElement((0,a.getInlineElementAfter)(this.rootNode,this.start))),this.startInline},e.prototype.isBlockInScope=function(e){if(!e)return!1;var t=!1,n=this.getStartBlockElement();if(this.start.equalTo(this.end))t=!!n&&n.equals(e);else{var o=(0,r.default)(this.rootNode,this.end.node);t=!!n&&!!o&&(e.equals(n)||e.equals(o)||e.isAfter(n)&&o.isAfter(e))}return t},e.prototype.trimInlineElement=function(e){if(!e||this.start.equalTo(this.end))return null;var t=e.getStartPosition(),n=e.getEndPosition();if(t.isAfter(this.end)||this.start.isAfter(n))return null;var r=!1,i=!1;return this.start.isAfter(t)&&(t=this.start,r=!0),n.isAfter(this.end)&&(n=this.end,i=!0),t.isAfter(n)||t.equalTo(n)?null:r||i?new o.default(e,r?t:void 0,i?n:void 0):e},e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(72),o=n(73),i=n(6),a=n(18);t.default=function(e,t,n,l){var s,u=e.clipboardData||(null===(s=e.target.ownerDocument)||void 0===s?void 0:s.defaultView).clipboardData;u.items?(e.preventDefault(),(0,r.default)((0,i.default)(u.items),n).then((function(e){var n;n=l,a.Browser.isAndroid&&n&&n.deleteContents(),t(e)}))):(0,o.default)(u,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(50);t.default=function(e,t,n){if(t){var o=e.style,i=t.fontFamily,a=t.fontSize,l=t.textColor,s=t.textColors,u=t.backgroundColor,d=t.backgroundColors,c=t.bold,f=t.italic,p=t.underline;i&&(o.fontFamily=i),a&&(o.fontSize=a),s?(0,r.default)(e,s,!1,n):l&&(0,r.default)(e,l,!1,n),d?(0,r.default)(e,d,!0,n):u&&(0,r.default)(e,u,!0,n),c&&(o.fontWeight="bold"),f&&(o.fontStyle="italic"),p&&(o.textDecoration="underline")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PendableFormatCommandMap=void 0;var r=n(8);t.PendableFormatCommandMap={isBold:"bold",isItalic:"italic",isUnderline:"underline",isStrikeThrough:"strikeThrough",isSubscript:"subscript",isSuperscript:"superscript"},t.default=function(e){return(0,r.default)(t.PendableFormatCommandMap).reduce((function(n,r){return n[r]=e.queryCommandState(t.PendableFormatCommandMap[r]),n}),{})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),o=/^[^?]+%[^0-9a-f]+|^[^?]+%[0-9a-f][^0-9a-f]+|^[^?]+%00|^[^?]+%$|^https?:\/\/[^?\/]+@|^www\.[^?\/]+@/i,i="(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)*[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\:[0-9]+)?(?:[\\/\\?]\\S*)?",a={http:{match:new RegExp("^(?:microsoft-edge:)?http:\\/\\/"+i+"|www\\."+i,"i"),except:o,normalizeUrl:function(e){return new RegExp("^(?:microsoft-edge:)?http:\\/\\/","i").test(e)?e:"http://"+e}},https:{match:new RegExp("^(?:microsoft-edge:)?https:\\/\\/"+i,"i"),except:o},mailto:{match:new RegExp("^mailto:\\S+@\\S+\\.\\S+","i")},notes:{match:new RegExp("^notes:\\/\\/\\S+","i")},file:{match:new RegExp("^file:\\/\\/\\/?\\S+","i")},unc:{match:new RegExp("^\\\\\\\\\\S+","i")},ftp:{match:new RegExp("^ftp:\\/\\/"+i+"|ftp\\."+i,"i"),normalizeUrl:function(e){return new RegExp("^ftp:\\/\\/","i").test(e)?e:"ftp://"+e}},news:{match:new RegExp("^news:(\\/\\/)?"+i,"i")},telnet:{match:new RegExp("^telnet:(\\/\\/)?"+i,"i")},gopher:{match:new RegExp("^gopher:\\/\\/"+i,"i")},wais:{match:new RegExp("^wais:(\\/\\/)?"+i,"i")}};t.default=function(e){if(e)for(var t=0,n=(0,r.default)(a);t<n.length;t++){var o=n[t],i=a[o],l=e.match(i.match);if(l&&l[0]==e&&(!i.except||!i.except.test(e)))return{scheme:o,originalUrl:e,normalizedUrl:i.normalizeUrl?i.normalizeUrl(e):e}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(40);t.default=function(e,t){void 0===t&&(t=[]);var n=e.map((function(e){return(0,r.default)(e.getBoundingClientRect())})).filter((function(e){return!!e})).concat(t),o={top:Math.max.apply(Math,n.map((function(e){return e.top}))),bottom:Math.min.apply(Math,n.map((function(e){return e.bottom}))),left:Math.max.apply(Math,n.map((function(e){return e.left}))),right:Math.min.apply(Math,n.map((function(e){return e.right})))};return o.top<o.bottom&&o.left<o.right?o:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),o=n(50),i=n(51),a="transparent";function l(e){var t;return!!e.td&&!!(null===(t=(0,i.getTableCellMetadata)(e.td))||void 0===t?void 0:t.bgColorOverride)}function s(e){return"solid 1px "+(e||"transparent")}t.default=function(e,t,n){n&&(e.style.borderCollapse="collapse",function(e,t){e.forEach((function(n,r){n.forEach((function(o,i){o.td&&function(e,t,n,r,o,i){switch(function(e,t){e.style.borderTop=s(t.topBorderColor),e.style.borderLeft=s(t.verticalBorderColor),e.style.borderRight=s(t.verticalBorderColor),e.style.borderBottom=s(t.bottomBorderColor)}(t,e),e.tableBorderFormat){case 0:return;case 1:o||(t.style.borderLeftColor=a),i||(t.style.borderRightColor=a);break;case 4:n||(t.style.borderTopColor=a),r||n||(t.style.borderBottomColor=a),o||(t.style.borderLeftColor=a),i||o||(t.style.borderRightColor=a),o&&n&&(t.style.borderRightColor=a);break;case 2:n&&(t.style.borderTopColor=a,t.style.borderRightColor=a,t.style.borderLeftColor=a),o&&(t.style.borderLeftColor=a),i&&(t.style.borderRightColor=a);break;case 3:o&&(t.style.borderLeftColor=a),i&&(t.style.borderRightColor=a);break;case 5:n&&(t.style.borderRightColor=a,t.style.borderLeftColor=a),o&&(t.style.borderBottomColor=a,t.style.borderTopColor=a),n&&o&&(t.style.borderLeftColor=e.verticalBorderColor||a,t.style.borderBottomColor=e.bottomBorderColor||a,t.style.borderTopColor=e.topBorderColor||a);break;case 6:n&&(t.style.borderRightColor=a,t.style.borderLeftColor=a),o&&(t.style.borderBottomColor=a,t.style.borderTopColor=a),n&&o&&(t.style.borderLeftColor=e.verticalBorderColor||a,t.style.borderBottomColor=e.bottomBorderColor||a,t.style.borderTopColor=e.topBorderColor||a),n||o||(t.style.borderLeftColor=a,t.style.borderBottomColor=a,t.style.borderTopColor=a,t.style.borderRightColor=a);break;case 7:n&&(t.style.borderLeftColor=a,t.style.borderTopColor=a,t.style.borderRightColor=a),o&&(t.style.borderLeftColor=a,t.style.borderTopColor=a,t.style.borderBottomColor=a),n||o||(t.style.borderLeftColor=a,t.style.borderBottomColor=a,t.style.borderTopColor=a,t.style.borderRightColor=a),n&&o&&(t.style.borderBottomColor=e.bottomBorderColor||a)}}(t,o.td,0===r,r===e.length-1,0===i,i===n.length-1)}))}))}(t,n),function(e,t){var n=function(e){return e%2==0?t.bgColorEven:t.bgColorOdd},r=t.hasBandedRows,i=t.hasBandedColumns,s=t.bgColorOdd,u=t.bgColorEven,d=!r&&s===u;e.forEach((function(e,i){e.forEach((function(e){if(e.td&&!l(e))if(r){var s=n(i);(0,o.default)(e.td,s||a,!0,void 0,!0)}else d?(0,o.default)(e.td,t.bgColorOdd||a,!0,void 0,!0):(0,o.default)(e.td,a,!0,void 0,!0)}))})),i&&e.forEach((function(e){e.forEach((function(e,t){var r=n(t);e.td&&r&&!l(e)&&(0,o.default)(e.td,r,!0,void 0,!0)}))}))}(t,n),function(e,t){if(!t.hasFirstColumn)return void e.forEach((function(e){e.forEach((function(e,t){e.td&&0===t&&(e.td=(0,r.default)(e.td,"TD"),e.td.scope="")}))}));e.forEach((function(t,n){t.forEach((function(t,i){t.td&&0===i&&(0===n||l(t)||(t.td.style.borderTopColor=a,(0,o.default)(t.td,a,!0,void 0,!0)),n!==e.length-1&&0!==n&&(t.td.style.borderBottomColor=a),t.td=(0,r.default)(t.td,"TH"),t.td.scope="col")}))}))}(t,n),function(e,t){var n,i;if(!t.hasHeaderRow)return void(null===(n=e[0])||void 0===n||n.forEach((function(e){e.td&&(e.td=(0,r.default)(e.td,"TD"),e.td.scope="")})));null===(i=e[0])||void 0===i||i.forEach((function(e){e.td&&t.headerRowColor&&(l(e)||(0,o.default)(e.td,t.headerRowColor,!0,void 0,!0),e.td.style.borderRightColor=t.headerRowColor,e.td.style.borderLeftColor=t.headerRowColor,e.td.style.borderTopColor=t.headerRowColor,e.td=(0,r.default)(e.td,"TH"),e.td.scope="row")}))}(t,n))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!t||!e.cells)return!1;var n=t.firstCell,r=t.lastCell,o=e.cells.length-1,i=e.cells[o].length-1,a=n.x,l=n.y,s=r.x,u=r.y;return 0==a&&0==l&&s==i&&u==o}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=o[t],r=1===t;e.style.listStyleType=r?n:'"'+n+'"'};var o=((r={})[1]="disc",r[3]="∎ ",r[2]="- ",r[5]="➔ ",r[8]="➔ ",r[4]="➢ ",r[6]="➪ ",r[7]="— ",r)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(143),a=n(144);!function(e){e[e.Decimal=0]="Decimal",e[e.Roman=1]="Roman",e[e.Alpha=2]="Alpha"}(o||(o={})),t.default=function(e,t,n){var r=l[t],s=r.markerSeparator,u=r.markerSecondSeparator,d=r.markerType,c=r.lowerCase,f=n.toString();d===o.Roman?f=(0,a.default)(n,c):d===o.Alpha&&(f=(0,i.default)(n-1,c));var p=u?u+f+s:f+s;e.style.listStyleType='"'+p+'"'};var l=((r={})[1]={markerType:o.Decimal,markerSeparator:". "},r[2]={markerType:o.Decimal,markerSeparator:"- "},r[3]={markerType:o.Decimal,markerSeparator:") "},r[4]={markerType:o.Decimal,markerSeparator:") ",markerSecondSeparator:"("},r[5]={markerType:o.Alpha,markerSeparator:". ",lowerCase:!0},r[8]={markerType:o.Alpha,markerSeparator:"- ",lowerCase:!0},r[6]={markerType:o.Alpha,markerSeparator:") ",lowerCase:!0},r[7]={markerType:o.Alpha,markerSeparator:") ",markerSecondSeparator:"(",lowerCase:!0},r[9]={markerType:o.Alpha,markerSeparator:". "},r[12]={markerType:o.Alpha,markerSeparator:"- "},r[10]={markerType:o.Alpha,markerSeparator:") "},r[11]={markerType:o.Alpha,markerSeparator:") ",markerSecondSeparator:"("},r[13]={markerType:o.Roman,markerSeparator:". ",lowerCase:!0},r[16]={markerType:o.Roman,markerSeparator:"- ",lowerCase:!0},r[14]={markerType:o.Roman,markerSeparator:") ",lowerCase:!0},r[15]={markerType:o.Roman,markerSeparator:") ",markerSecondSeparator:"(",lowerCase:!0},r[17]={markerType:o.Roman,markerSeparator:". "},r[20]={markerType:o.Roman,markerSeparator:"- "},r[18]={markerType:o.Roman,markerSeparator:") "},r[19]={markerType:o.Roman,markerSeparator:") ",markerSecondSeparator:"("},r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T",20:"U",21:"V",22:"W",23:"X",24:"Y",25:"Z"};t.default=function(e,t){for(var n="";e>=0;)n=r[e%26]+n,e=Math.floor(e/26)-1;return t?n.toLowerCase():n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),o={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1};t.default=function(e,t){for(var n="",i=0,a=(0,r.default)(o);i<a.length;i++){var l=a[i],s=Math.floor(e/o[l]);e-=s*o[l],n+=l.repeat(s)}return t?n.toLocaleLowerCase():n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),o=n(79),i=n(80),a=n(33),l=n(5),s=n(1),u=n(29),d=n(6),c=n(53),f=n(15),p=n(10),h=n(54);function g(e,t,n){var r=t[n?t.length-1:0];r=(0,p.getLeafSibling)(e.rootNode,r,n,e.skipTags,!0),r=(0,o.default)(e,"ol,ul",r),(0,a.default)(e,r)&&(0,h.isListElement)(r)&&(n?(0,s.default)(r,"HTMLOListElement")&&1!=r.start||t.push(r):t.unshift(r))}t.default=function(e,t,n){if(!e)return null;var a=[];if(n){var p=(0,o.default)(e,"ol,ul",n);p&&a.push(p)}else{if((0,i.default)(e,void 0,!0).forEach((function(n){var r=(0,o.default)(e,"ol,ul",n.getStartNode());r?(a[a.length-1]!=r&&a.push(r),1==a.length&&(0,s.default)(r,"HTMLOListElement")&&r.start>1&&(t=!1)):a.push(n.collapseToSingleElement())})),0==a.length&&!e.rootNode.firstChild){var v=(0,r.default)(12,e.rootNode.ownerDocument);e.rootNode.appendChild(v),a.push(v),e.fullSelectionStart=new l.default(v,0),e.fullSelectionEnd=new l.default(v,-1)}t&&(g(e,a,!1),g(e,a,!0)),a=a.filter((function(e){return!(0,u.default)(e,!0)}))}var m=null;if(a.length>0){var b=a.shift()||null;(m=(0,h.isListElement)(b)?new c.default(b):b?function(e){var t=(0,d.default)(e.childNodes),n=1==t.length?t[0]:(0,f.default)(t,"SPAN"),r=e.ownerDocument.createElement("ol");e.appendChild(r);var o=new c.default(r);return o.appendItem(n,0),o}(b):null)&&a.forEach((function(e){(0,h.isListElement)(e)?m.mergeVList(new c.default(e)):m.appendItem(e,0)}))}return m}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),o=n(79),i=n(13),a=n(33),l=n(23),s=n(53),u=0,d=function(){function e(e,t){this.region=e,this.name=t,this.lastNumber=0,this.lastNumberBeforeCursor=0}return e.createListChains=function(t,n,a){var s=Array.isArray(t)?t:t?[t]:[],u=[];return s.forEach((function(t){var s,d=[];(0,l.default)(t.rootNode,"ol",(function(r){var l=(0,o.default)(t,"ol",r);if(s!=l){var u=d.filter((function(e){return e.canAppendToTail(l)}))[0]||new e(t,(a||c)()),f=d.indexOf(u),p=!!n&&(0,i.default)(l,n);p?f<0&&d.push(u):(f>=0&&d.splice(f,1),d.unshift(u)),u.append(l,p),s=l}})),(0,r.default)(u,d)})),u},e.prototype.canAppendAtCursor=function(e){return e>1&&this.lastNumberBeforeCursor+1==e},e.prototype.createVListAtBlock=function(e,t){if(e&&e.parentNode){var n=e.ownerDocument.createElement("ol");n.start=t,this.applyChainName(n),e.parentNode.insertBefore(n,e);var r=new s.default(n);return r.appendItem(e,0),r}return null},e.prototype.commit=function(e){for(var t=this.getLists(),n=0,r=0;r<t.length;r++){var o=t[r];o.start=o.start>1?o.start:n+1;var i=new s.default(o);n=i.getLastItemNumber()||0,delete o.dataset.listchain,delete o.dataset.listchainafter,i.writeBack(e)}},e.prototype.canAppendToTail=function(e){return this.lastNumber+1==e.start},e.prototype.append=function(e,t){this.applyChainName(e),this.lastNumber=new s.default(e).getLastItemNumber()||0,t?e.dataset.listchainafter="true":this.lastNumberBeforeCursor=this.lastNumber},e.prototype.applyChainName=function(e){e.dataset.listchain=this.name},e.prototype.getLists=function(){var e=this;return(0,l.default)(this.region.rootNode,"ol[data-listchain="+this.name+"]").filter((function(t){return(0,a.default)(e.region,t)}))},e}();function c(){return"__List_Chain_"+u++}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),o=n(11),i=n(40);t.default=function(e){var t;if(!e)return null;var n=(0,o.default)(e),a=n.getBoundingClientRect&&(0,i.default)(n.getBoundingClientRect());if(a)return a;e=e.normalize();var l=n.getClientRects&&n.getClientRects();if(a=l&&1==l.length?(0,i.default)(l[0]):null)return a;if(3==e.node.nodeType&&e.node.ownerDocument){var s=(0,r.default)({tag:"span",children:["​"]},e.node.ownerDocument);if((n=(0,o.default)(e)).insertNode(s),a=s.getBoundingClientRect&&(0,i.default)(s.getBoundingClientRect()),null===(t=s.parentNode)||void 0===t||t.removeChild(s),a)return a}var u=e.element;return u&&u.getBoundingClientRect&&(a=(0,i.default)(u.getBoundingClientRect()))?a:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(74),o=n(86);t.default=function(e,t){if(!e)return"";var n=(0,r.default)(e),i=t&&(0,o.default)(e,t);return i?n+"\x3c!--"+JSON.stringify(i)+"--\x3e":n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setHtmlWithMetadata=void 0;var r=n(11),o=n(1),i=n(52),a=n(30),l=(0,a.createArrayDefinition)((0,a.createNumberDefinition)()),s=(0,a.createObjectDefinition)({x:(0,a.createNumberDefinition)(),y:(0,a.createNumberDefinition)()}),u=(0,a.createBooleanDefinition)(!0),d=(0,a.createObjectDefinition)({type:(0,a.createNumberDefinition)(!0,0),isDarkMode:u,start:l,end:l}),c=(0,a.createObjectDefinition)({type:(0,a.createNumberDefinition)(!1,1),isDarkMode:u,tableId:(0,a.createStringDefinition)(),firstCell:s,lastCell:s}),f=(0,a.createObjectDefinition)({type:(0,a.createNumberDefinition)(!1,2),isDarkMode:u,imageId:(0,a.createStringDefinition)()});function p(e,t,n){if(e){t=t||"",e.innerHTML=(null==n?void 0:n(t))||t;var r=e.lastChild;if((0,o.default)(r,"Comment"))try{var a=JSON.parse(r.nodeValue||"");if((0,i.default)(a,d)||(0,i.default)(a,c)||(0,i.default)(a,f))return e.removeChild(r),a.type=void 0===a.type?0:a.type,a.isDarkMode=a.isDarkMode||!1,a}catch(e){}}}t.default=function(e,t,n){var o=p(e,t,n);return 0==(null==o?void 0:o.type)?(0,r.default)(e,o.start,o.end):null},t.setHtmlWithMetadata=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18);t.default=function(e,t){var n,o,i,a=null===(i=null===(o=null===(n=null==e?void 0:e.commonAncestorContainer)||void 0===n?void 0:n.ownerDocument)||void 0===o?void 0:o.defaultView)||void 0===i?void 0:i.getSelection();if(a){var l=!0;if(a.rangeCount>0)try{var s=null;(t||r.Browser.isEdge)&&(s=1==a.rangeCount?a.getRangeAt(0):null)&&s.startContainer==e.startContainer&&s.startOffset==e.startOffset&&s.endContainer==e.endContainer&&s.endOffset==e.endOffset?l=!1:a.removeAllRanges()}catch(e){}l&&a.addRange(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addSnapshotV2=void 0;var r=n(87);function o(e,t,n,o,i){o=o||function(e){var t;return(null===(t=e)||void 0===t?void 0:t.length)||0},i=i||a;var l=e.snapshots[e.currentIndex];if(e.currentIndex<0||!l||!i(t,l)){(0,r.default)(e,o),e.snapshots.push(t),e.currentIndex++,e.totalSize+=o(t);for(var s=0;s<e.snapshots.length&&e.totalSize>e.maxSize;)e.totalSize-=o(e.snapshots[s]),s++;s>0&&(e.snapshots.splice(0,s),e.currentIndex-=s,e.autoCompleteIndex-=s),n&&(e.autoCompleteIndex=e.currentIndex)}else l&&i(t,l)&&e.snapshots.splice(e.currentIndex,1,t)}function i(e,t){return e.html==t.html}function a(e,t){return e==t}t.default=o,t.addSnapshotV2=function(e,t,n){o(e,t,n,(function(e){var t;return(null===(t=e.html)||void 0===t?void 0:t.length)||0}),i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moveCurrentSnapsnot=void 0;var r=n(57);function o(e,t){return(0,r.default)(e,t)?(e.currentIndex+=t,e.autoCompleteIndex=-1,e.snapshots[e.currentIndex]):null}t.default=o,t.moveCurrentSnapsnot=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{snapshots:[],totalSize:0,currentIndex:-1,autoCompleteIndex:-1,maxSize:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.autoCompleteIndex>=0&&e.currentIndex-e.autoCompleteIndex==1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),o=n(88),i=n(8),a=n(84),l=n(31),s=n(2),u=n(1),d=n(32),c=n(6),f=n(89),p=n(156),h=n(157),g=function(){function e(e){e=e||{},this.elementCallbacks=(0,f.cloneObject)(e.elementCallbacks),this.styleCallbacks=(0,h.getStyleCallbacks)(e.cssStyleCallbacks),this.attributeCallbacks=(0,f.cloneObject)(e.attributeCallbacks),this.tagReplacements=(0,h.getTagReplacement)(e.additionalTagReplacements),this.allowedAttributes=(0,h.getAllowedAttributes)(e.additionalAllowedAttributes),this.allowedCssClassesRegex=(0,h.getAllowedCssClassesRegex)(e.additionalAllowedCssClasses),this.defaultStyleValues=(0,h.getDefaultStyleValues)(e.additionalDefaultStyleValues),this.additionalPredefinedCssForElement=e.additionalPredefinedCssForElement||null,this.additionalGlobalStyleNodes=e.additionalGlobalStyleNodes||[],this.preserveHtmlComments=e.preserveHtmlComments||!1,this.unknownTagReplacement=e.unknownTagReplacement||null}return e.convertInlineCss=function(t,n){return new e({additionalGlobalStyleNodes:n}).exec(t,!0)},e.sanitizeHtml=function(t,n){var r=new e(n=n||{}),i=(0,u.default)(n.currentElementOrStyle,"HTMLElement")?(0,o.default)(n.currentElementOrStyle):n.currentElementOrStyle;return r.exec(t,n.convertCssOnly,i)},e.prototype.exec=function(e,t,n){var r=(new DOMParser).parseFromString(e||"","text/html");return r&&r.body&&r.body.firstChild&&(this.convertGlobalCssToInlineCss(r),t||this.sanitize(r.body,n)),r&&r.body&&r.body.innerHTML||""},e.prototype.sanitize=function(e,t){if(!e)return"";t=(0,f.cloneObject)(t,(0,o.default)(null)),this.processNode(e,t,{})},e.prototype.convertGlobalCssToInlineCss=function(e){for(var t=(0,c.default)(e.querySelectorAll("style")),n=0,r=this.additionalGlobalStyleNodes.reverse().map((function(e){return e.sheet})).concat(t.map((function(e){return e.sheet})).reverse()).filter((function(e){return e}));n<r.length;n++)for(var o=r[n],i=function(t){var n=o.cssRules[t],r=n&&n.style?n.style.cssText:null;if(n.type!=CSSRule.STYLE_RULE||!r||!n.selectorText)return"continue";for(var i=0,a=n.selectorText.split(",");i<a.length;i++){var l=a[i];if(l&&l.trim()&&!(l.indexOf(":")>=0))(0,c.default)(e.querySelectorAll(l)).forEach((function(e){return e.setAttribute("style",r+(e.getAttribute("style")||""))}))}},a=o.cssRules.length-1;a>=0;a--)i(a);t.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))},e.prototype.processNode=function(e,t,n){var o,i=e.nodeType,a=1==i,l=3==i,u=11==i,d=8==i,c=!1;if(a){var p=(0,s.default)(e),h=this.elementCallbacks[p],g=this.tagReplacements[p.toLowerCase()];void 0===g&&(g=this.unknownTagReplacement),h?c=h(e,n):p.indexOf(":")>0||p==g||"*"==g?c=!0:g&&/^[a-zA-Z][\w\-]*$/.test(g)&&(e=(0,r.default)(e,g),c=!0)}else if(l){var v=t["white-space"];c="pre"==v||"pre-line"==v||"pre-wrap"==v||!/^[\r\n]*$/g.test(e.nodeValue||"")}else c=!!u||!!d&&this.preserveHtmlComments;if(c)if(!l||"pre"!=t["white-space"]&&"pre-wrap"!=t["white-space"]){if(a||u){var m=(0,f.cloneObject)(t),b=e;a&&(this.processAttributes(b,n),this.preprocessCss(b,m),this.processCss(b,m,n));for(var y=b.firstChild,C=void 0;y;y=C)C=y.nextSibling,this.processNode(y,m,n)}}else e.nodeValue=(e.nodeValue||"").replace(/^ /gm," ").replace(/ {2}/g,"  ");else null===(o=e.parentNode)||void 0===o||o.removeChild(e)},e.prototype.preprocessCss=function(e,t){var n=(0,a.default)(e,this.additionalPredefinedCssForElement);n&&(0,i.default)(n).forEach((function(e){t[e]=n[e]}))},e.prototype.processCss=function(e,t,n){var r=this,o=(0,l.default)(e);(0,i.default)(o).forEach((function(i){var a=o[i],l=r.styleCallbacks[i],s=null!=t[i],u=!0;u&&l&&(u=l(a,e,t,n)),u&&(0,p.isCssVariable)(a)&&(u=!!(a=(0,p.processCssVariable)(a))),(u=u&&"inherit"!=a&&a.indexOf("expression")<0&&"-"!=i.substr(0,1)&&r.defaultStyleValues[i]!=a&&(s&&a!=t[i]||!s&&"initial"!=a&&"normal"!=a))&&s&&(t[i]=a),u?o[i]=a:delete o[i]})),(0,d.default)(e,o)},e.prototype.processAttributes=function(e,t){for(var n=e.attributes.length-1;n>=0;n--){var r=e.attributes[n],o=r.name.toLowerCase().trim(),i=r.value,a=this.attributeCallbacks[o],l=a?a(i,e,t):this.allowedAttributes.indexOf(o)>=0||0==o.indexOf("data-")?i:null;"class"==o&&this.allowedCssClassesRegex&&(l=this.processCssClass(i,l)),null==l||l.match(/s\n*c\n*r\n*i\n*p\n*t\n*:/i)?e.removeAttribute(o):r.value=l}},e.prototype.processCssClass=function(e,t){var n=this,r=e?e.split(" "):[],o=t?t.split(" "):[];return r.forEach((function(e){var t;(null===(t=n.allowedCssClassesRegex)||void 0===t?void 0:t.test(e))&&o.indexOf(e)<0&&o.push(e)})),(null==o?void 0:o.length)>0?o.join(" "):null},e}();t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCssVariable=t.processCssVariable=void 0;var r=/^\s*var\(\s*[a-zA-Z0-9-_]+\s*(,\s*(.*))?\)\s*$/;t.processCssVariable=function(e){var t=r.exec(e);return(null==t?void 0:t[2])||""},t.isCssVariable=function(e){return 0==e.indexOf("var(")}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getStyleCallbacks=t.getDefaultStyleValues=t.getAllowedCssClassesRegex=t.getAllowedAttributes=t.getTagReplacement=void 0;var o=n(8),i=n(89),a={a:"*",abbr:"*",address:"*",area:"*",article:"*",aside:"*",b:"*",bdi:"*",bdo:"*",blockquote:"*",body:"*",br:"*",button:"*",canvas:"*",caption:"*",center:"*",cite:"*",code:"*",col:"*",colgroup:"*",data:"*",datalist:"*",dd:"*",del:"*",details:"*",dfn:"*",dialog:"*",dir:"*",div:"*",dl:"*",dt:"*",em:"*",fieldset:"*",figcaption:"*",figure:"*",font:"*",footer:"*",h1:"*",h2:"*",h3:"*",h4:"*",h5:"*",h6:"*",head:"*",header:"*",hgroup:"*",hr:"*",html:"*",i:"*",img:"*",input:"*",ins:"*",kbd:"*",label:"*",legend:"*",li:"*",main:"*",map:"*",mark:"*",menu:"*",menuitem:"*",meter:"*",nav:"*",ol:"*",optgroup:"*",option:"*",output:"*",p:"*",picture:"*",pre:"*",progress:"*",q:"*",rp:"*",rt:"*",ruby:"*",s:"*",samp:"*",section:"*",select:"*",small:"*",span:"*",strike:"*",strong:"*",sub:"*",summary:"*",sup:"*",table:"*",tbody:"*",td:"*",textarea:"*",tfoot:"*",th:"*",thead:"*",time:"*",tr:"*",tt:"*",u:"*",ul:"*",var:"*",wbr:"*",xmp:"*",form:"SPAN",applet:null,audio:null,base:null,basefont:null,embed:null,frame:null,frameset:null,iframe:null,link:null,meta:null,noscript:null,object:null,param:null,script:null,slot:null,source:null,style:null,template:null,title:null,track:null,video:null},l="accept,align,alt,checked,cite,color,cols,colspan,contextmenu,coords,datetime,default,dir,dirname,disabled,download,face,headers,height,hidden,high,href,hreflang,ismap,kind,label,lang,list,low,max,maxlength,media,min,multiple,open,optimum,pattern,placeholder,readonly,rel,required,reversed,rows,rowspan,scope,selected,shape,size,sizes,span,spellcheck,src,srclang,srcset,start,step,style,tabindex,target,title,translate,type,usemap,valign,value,width,wrap".split(","),s={"background-color":"transparent","border-bottom-color":"rgb(0, 0, 0)","border-bottom-style":"none","border-bottom-width":"0px","border-image-outset":"0","border-image-repeat":"stretch","border-image-slice":"100%","border-image-source":"none","border-image-width":"1","border-left-color":"rgb(0, 0, 0)","border-left-style":"none","border-left-width":"0px","border-right-color":"rgb(0, 0, 0)","border-right-style":"none","border-right-width":"0px","border-top-color":"rgb(0, 0, 0)","border-top-style":"none","border-top-width":"0px","outline-color":"transparent","outline-style":"none","outline-width":"0px",overflow:"visible","text-decoration":"none","-webkit-text-stroke-width":"0px","word-wrap":"break-word","margin-left":"0px","margin-right":"0px",padding:"0px","padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px",border:"0px","border-top":"0px","border-left":"0px","border-right":"0px","border-bottom":"0px","vertical-align":"baseline",float:"none"},u=[];function d(){return null}function c(e,t){var n=t.tagName;return!("LI"==n||"DIV"==n)}t.getTagReplacement=function(e){var t=r({},a),n=e||{};return(0,o.default)(n).forEach((function(e){e&&(t[e.toLowerCase()]=n[e])})),t},t.getAllowedAttributes=function(e){return(t=l.concat(e||[]),t.filter((function(e,t,n){return n.indexOf(e)==t}))).map((function(e){return e.toLocaleLowerCase()}));var t},t.getAllowedCssClassesRegex=function(e){var t=u.concat(e||[]);return t.length>0?new RegExp(t.join("|")):null},t.getDefaultStyleValues=function(e){var t=(0,i.cloneObject)(s);return e&&Object.keys(e).forEach((function(n){var r=e[n];null!=r?t[n]=r:delete t[n]})),t},t.getStyleCallbacks=function(e){var t=(0,i.cloneObject)(e);return t.position=t.position||d,t.width=t.width||c,t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{elementCallbacks:{},attributeCallbacks:{},cssStyleCallbacks:{},additionalTagReplacements:{},additionalAllowedAttributes:[],additionalAllowedCssClasses:[],additionalDefaultStyleValues:{},additionalGlobalStyleNodes:[],additionalPredefinedCssForElement:{},preserveHtmlComments:!1,unknownTagReplacement:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(e[t]){var r=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.apply(void 0,e),n.apply(void 0,e)}}else e[t]=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t,n,r){e&&(e.className="_Entity _EType_"+t+" "+(r?"_EId_"+r+" ":"")+"_EReadonly_"+(n?"1":"0"),n?e.contentEditable="false":e.getAttribute("contenteditable")&&e.removeAttribute("contenteditable"))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.restoreContentWithEntityPlaceholder=t.moveContentWithEntityPlaceholders=t.createEntityPlaceholder=void 0;var r=n(90),o=n(91),i=n(2),a=n(1);function l(e){var t=e.wrapper.ownerDocument.createElement("ENTITY-PLACEHOLDER");return t.id=e.id,t}function s(e,t){for(var n;e&&(!t||e!=t);){var r=e;e=e.nextSibling,null===(n=r.parentNode)||void 0===n||n.removeChild(r)}return e}function u(e,t){var n=l(e);return t[e.id]=e.wrapper,n}t.createEntityPlaceholder=l,t.moveContentWithEntityPlaceholders=function(e,t){for(var n=(0,o.default)(),i=e.ownerDocument.createDocumentFragment(),l=null,s=function(e){var o,s=e;l=e.nextSibling,(0,a.default)(e,"HTMLElement")&&((o=(0,r.default)(e))?s=u(o,t):e.querySelectorAll(n).forEach((function(e){var n;if(o=(0,r.default)(e)){var i=u(o,t);null===(n=e.parentNode)||void 0===n||n.replaceChild(i,e)}}))),i.appendChild(s)},d=e.firstChild;d;d=l)s(d);return i.normalize(),i},t.restoreContentWithEntityPlaceholder=function(e,t,n,r){var o=t.firstChild;n=n||{};for(var l,u=function(e){var u,d=null,c=e.nextSibling;if((u=e,"ENTITY-PLACEHOLDER"==(0,i.default)(u)?u.id:null)&&(d=n[e.id]))(o=s(o,d))?o=o.nextSibling:t.appendChild(d);else{var f=r?e.cloneNode(!0):e;t.insertBefore(f,o),(0,a.default)(f,"HTMLElement")&&f.querySelectorAll("ENTITY-PLACEHOLDER").forEach((function(e){var t;(d=n[e.id])&&(null===(t=e.parentNode)||void 0===t||t.replaceChild(d,e))}))}l=e=c},d=e.firstChild;d;)u(d),d=l;s(o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e&&e.eventDataCache&&e.eventDataCache.hasOwnProperty(t)?e.eventDataCache[t]:n();return e&&(e.eventDataCache=e.eventDataCache||{},e.eventDataCache[t]=r),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e&&e.eventDataCache&&(t&&e.eventDataCache.hasOwnProperty(t)?delete e.eventDataCache[t]:t||(e.eventDataCache={}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(92);t.default=function(e){return!(0,r.default)(e)&&!!e.key&&1==e.key.length}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18).Browser.isMac?function(e){return e.metaKey}:function(e){return e.ctrlKey};t.default=function(e){return r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31),o=n(32);t.default=function(e,t){var n=(0,r.default)(e),i=0;t.forEach((function(e){var t;if((null===(t=n[e])||void 0===t?void 0:t.indexOf("!important"))>-1){var r=n[e].indexOf("!");n[e]=n[e].substring(0,r),i++}})),i>0&&(0,o.default)(e,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,o=e.getElementById(n);o||((o=e.createElement("style")).id=n,e.head.appendChild(o)),null===(r=o.sheet)||void 0===r||r.insertRule(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r=e.getElementById(t);r&&(null===(n=r.parentNode)||void 0===n||n.removeChild(r))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),o=n(4),i=n(19),a=n(11),l=n(14),s=n(7),u=n(2),d=n(38),c=n(85),f=n(44),p=n(47),h=n(22),g=n(170),v=n(5),m=n(71),b=n(23),y=n(36),C=n(6),E=n(39),S=n(15),w=n(17),T=[function(e,t,n,r){var i,l,u=(0,s.default)(e,n.node);if(u){var c=(0,b.default)(e,"a[href]",null,1,(0,a.default)(n)).filter((function(e){return u.contains(e)}))[0];if(c&&(0,d.default)(c)&&(n=new v.default(c,-2),O(c),c=null),c&&(null===(i=t)||void 0===i?void 0:i.querySelector)&&(null===(l=t)||void 0===l?void 0:l.querySelector("a[href]"))){var f=n.normalize(),p=f.node.parentNode,h=3==f.node.nodeType?(0,y.default)(f.node,f.offset,!1):f.isAtEnd?f.node.nextSibling:f.node,g=e.ownerDocument.createTextNode("");for(p.insertBefore(g,h);g&&(0,o.default)(c,g);)g=(0,w.splitBalancedNodeRange)(g);g&&(n=new v.default(g,-2),O(g))}}return n},function(e,t,n,r){var o=t,i=!1;if(11==o.nodeType){i=!0;var a=(0,C.default)(o.childNodes).filter((function(e){return"BR"!=(0,u.default)(e)}));o=1==a.length?a[0]:null}var s=(0,u.default)(o),d=s&&o&&"BR"==(0,u.default)(o.nextSibling),f=(0,l.default)(n.node,e,"LI"),p=f&&(0,l.default)(f,e,"OL,UL"),m=(0,l.default)(n.node,e,"TD,TH");"LI"==s&&(s=p?(0,u.default)(p):"UL",o=(0,S.default)(o,s));if(("OL"==s||"UL"==s)&&o&&"LI"==(0,u.default)(o.firstChild)){var b=!o.firstChild.nextSibling&&!d;d&&o.parentNode&&O(o.nextSibling),b?((0,E.default)(o.firstChild),(0,E.default)(o)):(0,u.default)(p)==s&&((0,E.default)(o),n=new v.default(f,(0,c.default)(n,f)?-2:-3))}i&&"TABLE"==s&&m&&((0,g.default)(m,o,n,r),n=new v.default(o,0),(0,h.default)(t));return n},function(e,t,n,o){if("P"==(0,u.default)(n.node)){var i=n.normalize(),a=(0,r.default)(n.node,"div");i.node!=a&&(n=i)}return n},function(e,t,n,r){(0,f.default)(n.node)&&(n=new v.default(n.node,n.isAtEnd?-3:-2));return n},function(e,t,n,r){if(r&&r.collapsed){var o=new m.default(e,v.default.getStart(r)),i=o.getInlineElementBefore(),a=o.getInlineElementAfter();i instanceof p.default?n=new v.default(i.getContainerNode(),-3):a instanceof p.default&&(n=new v.default(a.getContainerNode(),-2))}return n},function e(t,n,r,o){var i;if(!(null===(i=r.element)||void 0===i?void 0:i.isContentEditable)){for(var a=void 0,s=(0,l.default)(r.node,t,"[contenteditable=false]");s;)s=(null==(a=s)?void 0:a.parentElement)?(0,l.default)(a.parentElement,t,"[contenteditable=false]"):null;if(a)return r=new v.default(a,-3),e(t,n,r,o)}return r},function(e,t,n,r){if(1==t.childNodes.length&&"TABLE"==(0,u.default)(t.childNodes[0])||"TABLE"==(0,u.default)(t)){var o=n.element,s=new v.default(o,-2),d=(0,a.default)(s,n),c=i.default.createSelectionTraverser(e,d),f=c&&c.currentBlockElement;if(f){for(var p=f;!p;)(p=c.getNextBlockElement())&&(f=p);var h=null==f?void 0:f.getEndNode();if(h&&(0,l.default)(h,e,"TABLE")){var g=(0,a.default)(n);g.collapse(!1);var m=e.ownerDocument.createElement("br");g.insertNode(m),g=(0,a.default)(m),n=v.default.getEnd(g)}}}return n}];function O(e){var t;null===(t=null==e?void 0:e.parentNode)||void 0===t||t.removeChild(e)}t.default=function(e,t,n,r){return T.forEach((function(o){n=o(e,t,n,r)})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(171),o=n(22),i=n(75);t.default=function(e,t,n,a){var l,s,u,d,c=new i.default(t),f=new i.default(e),p=f.row,h=f.col,g=null!==(s=p+(null===(l=c.cells)||void 0===l?void 0:l.length))&&void 0!==s?s:0,v=null!==(d=h+(null===(u=c.cells)||void 0===u?void 0:u[0].length))&&void 0!==d?d:0;for(f.row=f.cells.length-1;f.cells.length<g;)f.edit(1);for(f.col=f.cells[0].length-1;f.cells[0].length<v;)f.edit(3);for(var m=p;m<g;m++)for(var b=h;b<v;b++){var y=f.getCell(m,b),C=c.getTd(m-p,b-h);y.td&&C?((0,o.default)(y.td,C),(0,r.default)(y.td,C)):y.td=document.createElement("td")}f.writeBack()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(51);t.default=function(e,t){var n=t.getAttribute("style");n&&(e.setAttribute("style",n),(0,r.saveTableCellMetadata)(e,{bgColorOverride:!0}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),o=n(82),i=n(81),a=n(55),l=n(83),s=n(5),u=n(23),d=n(1),c=n(36);function f(e,t,n){var r,o;if((0,d.default)(e,"Text")){var i=(0,c.default)(e,t,n);return n?[i,e]:[e,i]}var a=e.childNodes[t-1],l=e.childNodes[t];if(a||l||(n?a=(l=e).previousSibling:l=(a=e).nextSibling),(a||l)&&(!a||!l)){var s=e.ownerDocument.createTextNode("");null===(o=null===(r=a||l)||void 0===r?void 0:r.parentNode)||void 0===o||o.insertBefore(s,l),a?l=s:a=s}return[a,l]}t.default=function(e,t){var n=null,c=(0,u.default)(e,"table,tr",null,2,t),p=(0,i.default)(e,t,0).map((function(e){var t=(0,a.default)(e);if(!t)return null;var i=t.startContainer,l=t.endContainer,s=t.startOffset,u=t.endOffset,p=t.commonAncestorContainer;if((0,d.default)(p,"HTMLElement")&&!p.isContentEditable)return null;var h=f(l,u,!1),g=h[0],v=h[1],m=f(i,s,!0),b=m[0],y=m[1];n=n||b;var C=(0,o.default)(e,[y,g]);return(0,r.default)(c,C),{region:e,beforeStart:b,afterEnd:v}})).filter((function(e){return!!e}));return c.forEach((function(e){var t;return(null===(t=e.parentElement)||void 0===t?void 0:t.isContentEditable)&&e.parentElement.removeChild(e)})),p.forEach((function(e){e&&(0,l.default)(e.region,e.beforeStart,e.afterEnd)})),n&&new s.default(n,-1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19);t.default=function(e){for(var t=r.default.createBodyTraverser(e),n=t&&t.currentBlockElement,o=[];n;)o.push(n.getTextContent()),n=t.getNextBlockElement();return o.join("\n")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e,t){var n,o=this;this.editor=null,this.disposer=null,this.onDrop=function(){var e;null===(e=o.editor)||void 0===e||e.runAsync((function(e){e.addUndoSnapshot((function(){}),"Drop")}))},this.onFocus=function(){var e,t,n,r=o.state.tableSelectionRange||{},i=r.table,a=r.coordinates,l=(o.state.imageSelectionRange||{}).image;i&&a?null===(e=o.editor)||void 0===e||e.select(i,a):l?null===(t=o.editor)||void 0===t||t.select(l):o.state.selectionRange&&(null===(n=o.editor)||void 0===n||n.select(o.state.selectionRange)),o.state.selectionRange=null},this.onKeyDownDocument=function(e){9!=e.which||e.defaultPrevented||o.cacheSelection()},this.onMouseDownDocument=function(e){!o.editor||o.state.selectionRange||o.editor.contains(e.target)||o.cacheSelection()},this.cacheSelection=function(){!o.state.selectionRange&&o.editor&&(o.state.selectionRange=o.editor.getSelectionRange(!1))},this.onScroll=function(e){var t;null===(t=o.editor)||void 0===t||t.triggerPluginEvent(14,{rawEvent:e,scrollContainer:o.state.scrollContainer})},this.onKeyboardEvent=function(e){((0,r.isCharacterValue)(e)||e.which>=33&&e.which<=40)&&e.stopPropagation()},this.onInputEvent=function(e){e.stopPropagation()},this.onContextMenuEvent=function(e){var t,n,i=[],a=null===(t=o.editor)||void 0===t?void 0:t.getContentSearcherOfCursor(),l=null==a?void 0:a.getInlineElementBefore(),s=e.target;2!=e.button&&l&&(s=l.getContainerNode()),o.state.contextMenuProviders.forEach((function(e){var t,n=null!==(t=e.getContextMenuItems(s))&&void 0!==t?t:[];(null==n?void 0:n.length)>0&&(i.length>0&&i.push(null),(0,r.arrayPush)(i,n))})),null===(n=o.editor)||void 0===n||n.triggerPluginEvent(16,{rawEvent:e,items:i})},this.state={isInIME:!1,scrollContainer:e.scrollContainer||t,selectionRange:null,stopPrintableKeyboardEventPropagation:!e.allowKeyboardEventPropagation,contextMenuProviders:(null===(n=e.plugins)||void 0===n?void 0:n.filter(i))||[],tableSelectionRange:null,imageSelectionRange:null}}return e.prototype.getName=function(){return"DOMEvent"},e.prototype.initialize=function(e){var t,n,o,i,a=this;this.editor=e;var l=this.editor.getDocument(),s=((t={keypress:this.getEventHandler(1),keydown:this.getEventHandler(0),keyup:this.getEventHandler(2),mousedown:5,contextmenu:this.onContextMenuEvent,compositionstart:function(){return a.state.isInIME=!0},compositionend:function(t){a.state.isInIME=!1,e.triggerPluginEvent(4,{rawEvent:t})},drop:this.onDrop,focus:this.onFocus})[r.Browser.isIE?"textinput":"input"]=this.getEventHandler(3),t);r.Browser.isSafari?(l.addEventListener("mousedown",this.onMouseDownDocument,!0),l.addEventListener("keydown",this.onKeyDownDocument),null===(n=l.defaultView)||void 0===n||n.addEventListener("blur",this.cacheSelection)):r.Browser.isIEOrEdge?s.beforedeactivate=this.cacheSelection:s.blur=this.cacheSelection,this.disposer=e.addDomEventHandler(s),this.state.scrollContainer.addEventListener("scroll",this.onScroll),null===(o=l.defaultView)||void 0===o||o.addEventListener("scroll",this.onScroll),null===(i=l.defaultView)||void 0===i||i.addEventListener("resize",this.onScroll)},e.prototype.dispose=function(){var e,t,n,o,i,a=null===(e=this.editor)||void 0===e?void 0:e.getDocument();a&&r.Browser.isSafari&&(a.removeEventListener("mousedown",this.onMouseDownDocument,!0),a.removeEventListener("keydown",this.onKeyDownDocument),null===(t=a.defaultView)||void 0===t||t.removeEventListener("blur",this.cacheSelection)),null===(n=null==a?void 0:a.defaultView)||void 0===n||n.removeEventListener("resize",this.onScroll),null===(o=null==a?void 0:a.defaultView)||void 0===o||o.removeEventListener("scroll",this.onScroll),this.state.scrollContainer.removeEventListener("scroll",this.onScroll),null===(i=this.disposer)||void 0===i||i.call(this),this.disposer=null,this.editor=null},e.prototype.getState=function(){return this.state},e.prototype.getEventHandler=function(e){var t=this;return this.state.stopPrintableKeyboardEventPropagation?{pluginEventType:e,beforeDispatch:function(n){return 3==e?t.onInputEvent(n):t.onKeyboardEvent(n)}}:e},e}();function i(e){var t;return!!(null===(t=e)||void 0===t?void 0:t.getContextMenuItems)}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){this.editor=null,this.state={features:{}}}return e.prototype.getName=function(){return"Edit"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null},e.prototype.getState=function(){return this.state},e.prototype.onPluginEvent=function(e){var t,n=!1,o=null,i=!1;if(0==e.eventType){var a=e.rawEvent,l=null===(t=this.editor)||void 0===t?void 0:t.getSelectionRange();n=(i=(0,r.isCtrlOrMetaPressed)(a))||a.altKey,o=this.state.features[a.which]||l&&!l.collapsed&&this.state.features[258]}else 7==e.eventType&&(o=this.state.features[257]);for(var s=0;o&&s<(null==o?void 0:o.length);s++){var u=o[s];if((u.allowFunctionKeys||!n)&&this.editor&&u.shouldHandleEvent(e,this.editor,i)){u.handleEvent(e,this.editor);break}}},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=/_(\d{1,8})$/,i=["^_Entity$","^_EId_","^_EType_","^_EReadonly_"],a=[6,7,4,5],l=function(){function e(){var e=this;this.editor=null,this.cancelAsyncRun=null,this.handleCutEvent=function(t){var n,r=null===(n=e.editor)||void 0===n?void 0:n.getSelectionRange();r&&!r.collapsed&&e.checkRemoveEntityForRange(t)},this.state={knownEntityElements:[],shadowEntityCache:{}}}return e.prototype.getName=function(){return"Entity"},e.prototype.initialize=function(e){this.editor=e},e.prototype.willHandleEventExclusively=function(e){var t;return 1==e.eventType&&!!(null===(t=e.rawEvent.target)||void 0===t?void 0:t.shadowRoot)},e.prototype.dispose=function(){this.editor=null,this.state.knownEntityElements=[]},e.prototype.getState=function(){return this.state},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 6:this.handleMouseUpEvent(e);break;case 0:this.handleKeyDownEvent(e.rawEvent);break;case 9:e.isCut&&this.handleCutEvent(e.rawEvent);break;case 10:this.handleBeforePasteEvent(e.sanitizingOption);break;case 7:this.handleContentChangedEvent(e);break;case 11:this.handleContentChangedEvent();break;case 8:this.handleExtractContentWithDomEvent(e.clonedRoot);break;case 16:this.handleContextMenuEvent(e.rawEvent);break;case 20:this.handleBeforeSetContentEvent();break;case 15:this.handleEntityOperationEvent(e)}},e.prototype.handleContextMenuEvent=function(e){var t,n=e.target,o=n&&(null===(t=this.editor)||void 0===t?void 0:t.getElementAtCursor((0,r.getEntitySelector)(),n));o&&(e.preventDefault(),this.triggerEvent(o,2,e))},e.prototype.handleMouseUpEvent=function(e){var t,n=e.rawEvent,o=e.isClicking,i=n.target;this.editor&&o&&i&&(t=this.editor.getElementAtCursor((0,r.getEntitySelector)(),i))&&(this.triggerEvent(t,1,n),s(this.editor))},e.prototype.handleKeyDownEvent=function(e){var t;if((0,r.isCharacterValue)(e)||8==e.which||46==e.which||13==e.which){var n=null===(t=this.editor)||void 0===t?void 0:t.getSelectionRange();n&&!n.collapsed&&this.checkRemoveEntityForRange(e)}},e.prototype.handleBeforePasteEvent=function(e){var t,n=null===(t=this.editor)||void 0===t?void 0:t.getSelectionRange();n&&!n.collapsed&&this.checkRemoveEntityForRange(null),e.additionalAllowedCssClasses&&(0,r.arrayPush)(e.additionalAllowedCssClasses,i)},e.prototype.handleBeforeSetContentEvent=function(){this.cacheShadowEntities(this.state.shadowEntityCache)},e.prototype.handleContentChangedEvent=function(e){for(var t=this,n=this.state.knownEntityElements.length-1;n>=0;n--){var o=this.state.knownEntityElements[n];this.editor&&!this.editor.contains(o)&&(this.setIsEntityKnown(o,!1),o.shadowRoot&&this.triggerEvent(o,10))}var i=this.state.knownEntityElements.map((function(e){var t;return null===(t=(0,r.getEntityFromElement)(e))||void 0===t?void 0:t.id})).filter((function(e){return!!e}));("InsertEntity"==(null==e?void 0:e.source)&&e.data?[e.data]:this.getExistingEntities().filter((function(e){var n=e.wrapper;return!t.isEntityKnown(n)}))).forEach((function(e){var n=e.wrapper,o=e.type,a=e.id,l=e.isReadonly;e.id=t.ensureUniqueId(o,a,i),(0,r.commitEntity)(n,o,l,e.id),t.handleNewEntity(e)})),(0,r.getObjectKeys)(this.state.shadowEntityCache).forEach((function(e){t.triggerEvent(t.state.shadowEntityCache[e],6),delete t.state.shadowEntityCache[e]}))},e.prototype.handleEntityOperationEvent=function(e){var t,n=this;this.editor&&a.indexOf(e.operation)>=0&&(null===(t=this.cancelAsyncRun)||void 0===t||t.call(this),this.cancelAsyncRun=this.editor.runAsync((function(){n.cancelAsyncRun=null,n.handleContentChangedEvent()})))},e.prototype.handleExtractContentWithDomEvent=function(e){var t=this;(0,r.toArray)(e.querySelectorAll((0,r.getEntitySelector)())).forEach((function(e){e.removeAttribute("contentEditable"),t.triggerEvent(e,8)}))},e.prototype.checkRemoveEntityForRange=function(e){var t,n=this,o=[],i=(0,r.getEntitySelector)();if(null===(t=this.editor)||void 0===t||t.queryElements(i,1,(function(t){t.isContentEditable?o.push(t):n.triggerEvent(t,6,e)})),this.editor&&o.length>0){var a=this.editor.queryElements(i,2);o.forEach((function(t){var r=a.indexOf(t)>=0;n.triggerEvent(t,r?6:7,e)}))}},e.prototype.triggerEvent=function(e,t,n,o){var i,a=e&&(0,r.getEntityFromElement)(e);a&&(null===(i=this.editor)||void 0===i||i.triggerPluginEvent(15,{operation:t,rawEvent:n,entity:a,contentForShadowEntity:o}))},e.prototype.handleNewEntity=function(e){var t,n,o=e.wrapper,i=null===(t=this.editor)||void 0===t?void 0:t.getDocument().createDocumentFragment(),a=this.state.shadowEntityCache[e.id];if(delete this.state.shadowEntityCache[e.id],i&&(null==a?void 0:a.shadowRoot)&&(0,r.moveChildNodes)(i,a.shadowRoot),this.triggerEvent(o,0,void 0,i),null==i?void 0:i.firstChild)o.shadowRoot?(0,r.moveChildNodes)(o.shadowRoot,i):this.createShadowRoot(o,i);else if(o.shadowRoot){this.triggerEvent(o,10);var l=o.cloneNode();(0,r.moveChildNodes)(l,o),null===(n=this.editor)||void 0===n||n.replaceNode(o,l),e.wrapper=l}this.setIsEntityKnown(e.wrapper,!0)},e.prototype.getExistingEntities=function(e){var t,n;return null!==(n=null===(t=this.editor)||void 0===t?void 0:t.queryElements((0,r.getEntitySelector)()).map(r.getEntityFromElement).filter((function(t){return!(!t||e&&!t.wrapper.shadowRoot)})))&&void 0!==n?n:[]},e.prototype.createShadowRoot=function(e,t){if(e.attachShadow){var n=e.attachShadow({mode:"open",delegatesFocus:!0});return e.contentEditable="false",this.triggerEvent(e,9),(0,r.moveChildNodes)(n,t),n}},e.prototype.cacheShadowEntities=function(e){this.getExistingEntities(!0).forEach((function(t){var n=t.wrapper,r=t.id;e[r]=n}))},e.prototype.ensureUniqueId=function(e,t,n){for(var r=o.exec(t),i=(r?t.substr(0,t.length-r[0].length):t)||e,a="",l=r&&parseInt(r[1])||0;;l++)if(a=l>0?i+"_"+l:i,n.indexOf(a)<0){n.push(a);break}return a},e.prototype.setIsEntityKnown=function(e,t){var n=this.state.knownEntityElements.indexOf(e);t&&n<0?this.state.knownEntityElements.push(e):!t&&n>=0&&this.state.knownEntityElements.splice(n,1)},e.prototype.isEntityKnown=function(e){return this.state.knownEntityElements.indexOf(e)>=0},e}();t.default=l;var s=r.Browser.isIE?function(e){e.runAsync((function(e){var t=e.getCustomData("ENTITY_IE_FOCUS_BUTTON",(function(){var t=(0,r.createElement)({tag:"button",style:"overflow:hidden;position:fixed;width:0;height:0;top:-1000px"},e.getDocument());return t.onblur=function(){t.style.display="none"},e.insertNode(t,{position:4}),t}));t.style.display="",(0,r.addRangeToSelection)((0,r.createRange)(t,0))}))}:function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){this.editor=null}return e.prototype.getName=function(){return"ImageSelection"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){var e;null===(e=this.editor)||void 0===e||e.select(null),this.editor=null},e.prototype.onPluginEvent=function(e){var t;if(this.editor)switch(e.eventType){case 17:case 18:var n=this.editor.getSelectionRangeEx();2==n.type&&this.editor.select(n.image);break;case 6:var o=e.rawEvent.target;if((0,r.safeInstanceOf)(o,"HTMLImageElement"))if(2===e.rawEvent.button){var i=(0,r.createRange)(o);this.editor.select(i)}else 0===e.rawEvent.button&&this.editor.select(o);break;case 2:var a=e.rawEvent.key,l=this.editor.getSelectionRangeEx();2===l.type&&("Escape"===a?(this.editor.select(l.image,-2),null===(t=this.editor.getSelectionRange())||void 0===t||t.collapse(),e.rawEvent.stopPropagation()):this.editor.select(l.ranges[0]))}},e}();t.default=o},function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=i.Browser.isFirefox?((r={}).enableObjectResizing=!1,r.enableInlineTableEditing=!1,r):i.Browser.isIE?((o={}).defaultParagraphSeparator="div",o.AutoUrlDetect=!1,o):{},l={darkModeColor:"rgb(51,51,51)",lightModeColor:"rgb(255,255,255)"},s={darkModeColor:"rgb(255,255,255)",lightModeColor:"rgb(0,0,0)"},u=function(){function e(e,t){var n,r,o,a=this;this.editor=null,this.initializer=null,this.disposer=null,this.initialContent=e.initialContent||t.innerHTML||"",this.contentDivFormat=(0,i.getComputedStyles)(t),null===t.getAttribute("contenteditable")&&(this.initializer=function(){t.contentEditable="true",t.style.userSelect="text",t.style.webkitUserSelect="text"},this.disposer=function(){t.style.userSelect="",t.style.webkitUserSelect="",t.removeAttribute("contenteditable")}),this.adjustColor=e.doNotAdjustEditorColor?function(){}:function(){var e=s,n=l,r=a.state.isDarkMode;(0,i.setColor)(t,e,!1,r),(0,i.setColor)(t,n,!0,r)},this.state={customData:{},defaultFormat:null!==(n=e.defaultFormat)&&void 0!==n?n:null,isDarkMode:!!e.inDarkMode,getDarkColor:null!==(r=e.getDarkColor)&&void 0!==r?r:function(e){return e},onExternalContentTransform:null!==(o=e.onExternalContentTransform)&&void 0!==o?o:null,experimentalFeatures:e.experimentalFeatures||[],shadowEditFragment:null,shadowEditEntities:null,shadowEditSelectionPath:null,shadowEditTableSelectionPath:null,shadowEditImageSelectionPath:null}}return e.prototype.getName=function(){return"Lifecycle"},e.prototype.initialize=function(e){var t;this.editor=e,this.recalculateDefaultFormat(),this.editor.setContent(this.initialContent,!1),null===(t=this.initializer)||void 0===t||t.call(this),this.adjustColor(),this.adjustBrowserBehavior(),this.editor.triggerPluginEvent(11,{},!0)},e.prototype.dispose=function(){var e,t=this;null===(e=this.editor)||void 0===e||e.triggerPluginEvent(12,{},!0),(0,i.getObjectKeys)(this.state.customData).forEach((function(e){var n=t.state.customData[e];n&&n.disposer&&n.disposer(n.value),delete t.state.customData[e]})),this.disposer&&(this.disposer(),this.disposer=null,this.initializer=null),this.editor=null},e.prototype.getState=function(){return this.state},e.prototype.onPluginEvent=function(e){7!=e.eventType||"SwitchToDarkMode"!=e.source&&"SwitchToLightMode"!=e.source||(this.state.isDarkMode="SwitchToDarkMode"==e.source,this.recalculateDefaultFormat(),this.adjustColor())},e.prototype.adjustBrowserBehavior=function(){var e=this;(0,i.getObjectKeys)(a).forEach((function(t){var n;try{null===(n=e.editor)||void 0===n||n.getDocument().execCommand(t,!1,a[t])}catch(e){}}))},e.prototype.recalculateDefaultFormat=function(){var e=this.state,t=e.defaultFormat,n=e.isDarkMode;if(n&&t&&(t.backgroundColors||(t.backgroundColors=l),t.textColors||(t.textColors=s)),!t||0!==(0,i.getObjectKeys)(t).length){var r=t||{},o=r.fontFamily,a=r.fontSize,u=r.textColor,d=r.textColors,c=r.backgroundColor,f=r.backgroundColors,p=r.bold,h=r.italic,g=r.underline,v=this.contentDivFormat;this.state.defaultFormat={fontFamily:o||v[0],fontSize:a||v[1],get textColor(){return d?n?d.darkModeColor:d.lightModeColor:u||v[2]},textColors:d,get backgroundColor(){return f?n?f.darkModeColor:f.lightModeColor:c||""},backgroundColors:f,bold:p,italic:h,underline:g}}},e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){var e=this;this.editor=null,this.mouseUpEventListerAdded=!1,this.mouseDownX=null,this.mouseDownY=null,this.onMouseUp=function(t){e.editor&&(e.removeMouseUpEventListener(),e.editor.triggerPluginEvent(6,{rawEvent:t,isClicking:e.mouseDownX==t.pageX&&e.mouseDownY==t.pageY}))}}return e.prototype.getName=function(){return"MouseUp"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.removeMouseUpEventListener(),this.editor=null},e.prototype.onPluginEvent=function(e){this.editor&&5==e.eventType&&!this.mouseUpEventListerAdded&&(this.editor.getDocument().addEventListener("mouseup",this.onMouseUp,!0),this.mouseUpEventListerAdded=!0,this.mouseDownX=e.rawEvent.pageX,this.mouseDownY=e.rawEvent.pageY)},e.prototype.removeMouseUpEventListener=function(){this.editor&&this.mouseUpEventListerAdded&&(this.mouseUpEventListerAdded=!1,this.editor.getDocument().removeEventListener("mouseup",this.onMouseUp,!0))},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){this.editor=null}return e.prototype.getName=function(){return"NormalizeTable"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 11:case 7:this.editor&&this.normalizeTables(this.editor.queryElements("table"));break;case 10:this.normalizeTables((0,r.toArray)(e.fragment.querySelectorAll("table")));break;case 5:this.normalizeTableFromEvent(e.rawEvent);break;case 0:e.rawEvent.shiftKey&&this.normalizeTableFromEvent(e.rawEvent);break;case 8:t=e.clonedRoot,(0,r.toArray)(t.querySelectorAll("li")).forEach((function(e){var t=e.previousSibling;"block"==e.style.display&&(0,r.safeInstanceOf)(t,"HTMLLIElement")&&(e.style.removeProperty("display"),t.appendChild((0,r.changeElementTag)(e,"div")))}))}var t},e.prototype.normalizeTableFromEvent=function(e){var t,n=null===(t=this.editor)||void 0===t?void 0:t.getElementAtCursor("table",e.target);n&&this.normalizeTables([n])},e.prototype.normalizeTables=function(e){if(this.editor&&e.length>0){var t=this.editor.getSelectionRangeEx(),n=0==(null==t?void 0:t.type)&&t.ranges[0]||{},o=n.startContainer,i=n.endContainer,a=n.startOffset,l=n.endOffset;(function(e){var t=!1;return e.forEach((function(e){for(var n,o=null,i=e.firstChild;i;i=i.nextSibling){switch((0,r.getTagOfNode)(i)){case"TR":o||(o=e.ownerDocument.createElement("tbody"),e.insertBefore(o,i)),o.appendChild(i),i=o,t=!0;break;case"TBODY":o?((0,r.moveChildNodes)(o,i,!0),null===(n=i.parentNode)||void 0===n||n.removeChild(i),i=o,t=!0):o=i;break;default:o=null}}var a=e.querySelectorAll("colgroup"),l=e.querySelector("thead");l&&a.forEach((function(e){l.contains(e)||l.appendChild(e)}))})),t})(e)&&(o&&i&&"number"==typeof a&&"number"==typeof l?this.editor.select(o,a,i,l):1==(null==t?void 0:t.type)&&t.coordinates&&this.editor.select(t.table,t.coordinates))}},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){this.editor=null,this.state={pendableFormatPosition:null,pendableFormatState:null,pendableFormatSpan:null}}return e.prototype.getName=function(){return"PendingFormatState"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null,this.clear()},e.prototype.getState=function(){return this.state},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 13:e.formatState?(this.state.pendableFormatPosition=this.getCurrentPosition(),this.state.pendableFormatState=e.formatState,this.state.pendableFormatSpan=e.formatCallback?this.createPendingFormatSpan(e.formatCallback):null):this.clear();break;case 0:case 5:case 7:var t=null;this.editor&&0==e.eventType&&(0,r.isCharacterValue)(e.rawEvent)&&this.state.pendableFormatSpan?(this.state.pendableFormatSpan.removeAttribute("contentEditable"),this.editor.insertNode(this.state.pendableFormatSpan),this.editor.select(this.state.pendableFormatSpan,-2,this.state.pendableFormatSpan,-1),this.clear()):(0==e.eventType&&e.rawEvent.which>=33&&e.rawEvent.which<=40||this.state.pendableFormatPosition&&(t=this.getCurrentPosition())&&!this.state.pendableFormatPosition.equalTo(t))&&this.clear()}},e.prototype.clear=function(){this.state.pendableFormatPosition=null,this.state.pendableFormatState=null,this.state.pendableFormatSpan=null},e.prototype.getCurrentPosition=function(){var e,t,n=null===(e=this.editor)||void 0===e?void 0:e.getSelectionRange();return null!==(t=n&&r.Position.getStart(n).normalize())&&void 0!==t?t:null},e.prototype.createPendingFormatSpan=function(e){var t,n,o=this.state.pendableFormatSpan;if(!o&&this.editor){var i=this.editor.getStyleBasedFormatState(),a=this.editor.getDocument(),l=this.editor.isDarkMode();(o=a.createElement("span")).contentEditable="true",o.appendChild(a.createTextNode("​")),o.style.setProperty("font-family",null!==(t=i.fontName)&&void 0!==t?t:null),o.style.setProperty("font-size",null!==(n=i.fontSize)&&void 0!==n?n:null),(i.textColors||i.textColor)&&(0,r.setColor)(o,i.textColors||i.textColor,!1,l),(i.backgroundColors||i.backgroundColor)&&(0,r.setColor)(o,i.backgroundColors||i.backgroundColor,!0,l)}return o&&e(o),o},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){this.editor=null}return e.prototype.getName=function(){return"TypeInContainer"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null},e.prototype.isRangeEmpty=function(e){return!(!e.collapsed||e.startContainer.nodeType!==Node.ELEMENT_NODE||"DIV"!=(0,r.getTagOfNode)(e.startContainer)||e.startContainer.firstChild)},e.prototype.onPluginEvent=function(e){var t,n,o,i,a,l,s=this;if(1==e.eventType&&this.editor&&(!e.rawEvent||!(0,r.isCtrlOrMetaPressed)(e.rawEvent))){var u=this.editor.getSelectionRange(),d=u&&(0,r.findClosestElementAncestor)(u.startContainer,void 0,"[style]");if(!u||!this.isRangeEmpty(u)&&this.editor.contains(d))return;if(u.collapsed)this.editor.ensureTypeInContainer(r.Position.getStart(u),e.rawEvent);else{var c=function(){var t,n,r=null===(t=s.editor)||void 0===t?void 0:t.getFocusedPosition();r&&(null===(n=s.editor)||void 0===n||n.ensureTypeInContainer(r,e.rawEvent))};r.Browser.isMobileOrTablet?null===(t=this.editor.getDocument().defaultView)||void 0===t||t.setTimeout(c,100):this.editor.runAsync(c)}}if(0==e.eventType&&8==e.rawEvent.which&&(null===(n=this.editor)||void 0===n?void 0:n.isFeatureEnabled("DefaultFormatInSpan"))){var f=null===(o=this.editor)||void 0===o?void 0:o.getElementAtCursor(),p=f&&(null===(a=null===(i=this.editor)||void 0===i?void 0:i.getBlockElementAtNode(f))||void 0===a?void 0:a.getStartNode().previousSibling);p&&(null===(l=this.editor)||void 0===l||l.runAsync((function(t){var n=t.getFocusedPosition();n&&p==n.element&&t.ensureTypeInContainer(n,e.rawEvent)})))}},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e){var t,n,o;this.editor=null,this.lastKeyPress=null,this.state={snapshotsService:e.undoMetadataSnapshotService||(n=e.undoSnapshotService,n?{canMove:function(e){return n.canMove(e)},move:function(e){return(o=n.move(e))?{html:o,metadata:null}:null},addSnapshot:function(e,t){return n.addSnapshot(e.html+(e.metadata?"\x3c!--"+JSON.stringify(e.metadata)+"--\x3e":""),t)},clearRedo:function(){return n.clearRedo()},canUndoAutoComplete:function(){return n.canUndoAutoComplete()}}:void 0)||(t=(0,r.createSnapshots)(1e7),{canMove:function(e){return(0,r.canMoveCurrentSnapshot)(t,e)},move:function(e){return(0,r.moveCurrentSnapshot)(t,e)},addSnapshot:function(e,n){return(0,r.addSnapshotV2)(t,e,n)},clearRedo:function(){return(0,r.clearProceedingSnapshotsV2)(t)},canUndoAutoComplete:function(){return(0,r.canUndoAutoComplete)(t)}}),isRestoring:!1,hasNewContent:!1,isNested:!1,autoCompletePosition:null}}return e.prototype.getName=function(){return"Undo"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null},e.prototype.getState=function(){return this.state},e.prototype.willHandleEventExclusively=function(e){return 0==e.eventType&&8==e.rawEvent.which&&this.canUndoAutoComplete()},e.prototype.onPluginEvent=function(e){if(this.editor&&!this.editor.isInIME())switch(e.eventType){case 11:var t=this.editor.getUndoState();t.canUndo||t.canRedo||this.addUndoSnapshot();break;case 0:this.onKeyDown(e.rawEvent);break;case 1:this.onKeyPress(e.rawEvent);break;case 4:this.clearRedoForInput(),this.addUndoSnapshot();break;case 7:this.state.isRestoring||"SwitchToDarkMode"==e.source||"SwitchToLightMode"==e.source||this.clearRedoForInput()}},e.prototype.onKeyDown=function(e){var t,n;if(8==e.which&&!e.altKey||46==e.which)if(8==e.which&&this.canUndoAutoComplete())e.preventDefault(),null===(t=this.editor)||void 0===t||t.undo(),this.state.autoCompletePosition=null,this.lastKeyPress=e.which;else{var o=null===(n=this.editor)||void 0===n?void 0:n.getSelectionRange();!o||o.collapsed&&this.lastKeyPress==e.which&&!(0,r.isCtrlOrMetaPressed)(e)||this.addUndoSnapshot(),this.state.hasNewContent=!0,this.lastKeyPress=e.which}else e.which>=33&&e.which<=40&&(this.state.hasNewContent&&this.addUndoSnapshot(),this.lastKeyPress=0)},e.prototype.onKeyPress=function(e){var t;if(!e.metaKey){var n=null===(t=this.editor)||void 0===t?void 0:t.getSelectionRange();n&&!n.collapsed||32==e.which&&32!=this.lastKeyPress||13==e.which?(this.addUndoSnapshot(),13==e.which&&(this.state.hasNewContent=!0)):this.clearRedoForInput(),this.lastKeyPress=e.which}},e.prototype.clearRedoForInput=function(){this.state.snapshotsService.clearRedo(),this.lastKeyPress=0,this.state.hasNewContent=!0},e.prototype.canUndoAutoComplete=function(){var e,t,n=null===(e=this.editor)||void 0===e?void 0:e.getFocusedPosition();return this.state.snapshotsService.canUndoAutoComplete()&&!!n&&!!(null===(t=this.state.autoCompletePosition)||void 0===t?void 0:t.equalTo(n))},e.prototype.addUndoSnapshot=function(){var e;null===(e=this.editor)||void 0===e||e.addUndoSnapshot(),this.state.autoCompletePosition=null},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coreApiMap=void 0;var r=n(185),o=n(186),i=n(187),a=n(188),l=n(189),s=n(190),u=n(191),d=n(192),c=n(193),f=n(194),p=n(93),h=n(195),g=n(196),v=n(197),m=n(198),b=n(199),y=n(200),C=n(201),E=n(202),S=n(203);t.coreApiMap={attachDomEvent:o.attachDomEvent,addUndoSnapshot:r.addUndoSnapshot,createPasteFragment:i.createPasteFragment,ensureTypeInContainer:a.ensureTypeInContainer,focus:l.focus,getContent:s.getContent,getSelectionRange:d.getSelectionRange,getSelectionRangeEx:c.getSelectionRangeEx,getStyleBasedFormatState:f.getStyleBasedFormatState,getPendableFormatState:u.getPendableFormatState,hasFocus:p.hasFocus,insertNode:h.insertNode,restoreUndoSnapshot:g.restoreUndoSnapshot,selectRange:m.selectRange,setContent:y.setContent,switchShadowEdit:C.switchShadowEdit,transformColor:E.transformColor,triggerEvent:S.triggerEvent,selectTable:b.selectTable,selectImage:v.selectImage}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.addUndoSnapshot=void 0;var o=n(0);function i(e,t){if(!e.lifecycle.shadowEditFragment){var n=e.api.getSelectionRangeEx(e),i=e.lifecycle.isDarkMode,a=function(e,t,n){switch(null==t?void 0:t.type){case 1:return r({type:1,tableId:t.table.id,isDarkMode:!!n},t.coordinates);case 2:return{type:2,imageId:t.image.id,isDarkMode:!!n};case 0:return r({type:0,isDarkMode:!!n,start:[],end:[]},(0,o.getSelectionPath)(e,t.ranges[0])||{})}}(e.contentDiv,n,i)||null;e.undo.snapshotsService.addSnapshot({html:e.contentDiv.innerHTML,metadata:a},t),e.undo.hasNewContent=!1}}t.addUndoSnapshot=function(e,t,n,r,a){var l,s=e.undo,u=s.isNested;u||(s.isNested=!0,i(e,r));try{var d;if(t)l=t((d=e.api.getSelectionRange(e,!0))&&o.Position.getStart(d).normalize(),d&&o.Position.getEnd(d).normalize()),u||i(e,!1)}finally{u||(s.isNested=!1)}if(t&&n){var c={eventType:7,source:n,data:l,additionalData:a};e.api.triggerEvent(e,c,!0)}r&&((d=e.api.getSelectionRange(e,!1))&&(e.undo.hasNewContent=!1,e.undo.autoCompletePosition=o.Position.getStart(d)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attachDomEvent=void 0;var r=n(0);t.attachDomEvent=function(e,t){var n=(0,r.getObjectKeys)(t||{}).map((function(n){var r=function(e){var t={pluginEventType:null,beforeDispatch:null};"number"==typeof e?t.pluginEventType=e:"function"==typeof e?t.beforeDispatch=e:"object"==typeof e&&(t=e);return t}(t[n]),o=r.pluginEventType,i=r.beforeDispatch,a=n,l=function(t){i&&i(t),null!=o&&e.api.triggerEvent(e,{eventType:o,rawEvent:t},!1)};return e.contentDiv.addEventListener(a,l),function(){e.contentDiv.removeEventListener(a,l)}}));return function(){return n.forEach((function(e){return e()}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformTabCharacters=t.createPasteFragment=void 0;var r=n(0);function o(e,t){void 0===t&&(t=0);for(var n,r=e;-1!=(n=r.indexOf("\t"));){var o=r.slice(0,n),i=r.slice(n+1),a=6-(o.length+t)%6;r=o+Array(a).fill(" ").join("")+i}return r}function i(e,t){(0,r.toArray)(e.querySelectorAll("style")).forEach(t)}t.createPasteFragment=function(e,t,n,a,l){var s,u;if(!t)return null;var d=function(e,t){var n=(0,r.createDefaultHtmlSanitizerOptions)();return n.cssStyleCallbacks["caret-color"]=function(){return!1},{eventType:10,clipboardData:t,fragment:e.contentDiv.ownerDocument.createDocumentFragment(),sanitizingOption:n,htmlBefore:"",htmlAfter:"",htmlAttributes:{}}}(e,t),c=d.fragment,f=d.sanitizingOption,p=t.rawHtml,h=t.text,g=t.imageDataUri,v=e.contentDiv.ownerDocument,m=p?(new DOMParser).parseFromString(e.trustedHTMLHandler(p),"text/html"):void 0;if(p&&(null==m?void 0:m.body)){var b=null===(s=m.querySelector("html"))||void 0===s?void 0:s.attributes;(b?(0,r.toArray)(b):[]).reduce((function(e,t){return e[t.name]=t.value,e}),d.htmlAttributes),(0,r.toArray)(m.querySelectorAll("meta")).reduce((function(e,t){return e[t.name]=t.content,e}),d.htmlAttributes),t.htmlFirstLevelChildTags=[],null==m||m.body.normalize();for(var y=0;y<(null==m?void 0:m.body.childNodes.length);y++){var C=null==m?void 0:m.body.childNodes.item(y);if(C.nodeType==Node.TEXT_NODE)if(!(null===(u=C.nodeValue)||void 0===u?void 0:u.replace(/(\r\n|\r|\n)/gm,"").trim()))continue;var E=(0,r.getTagOfNode)(C);C.nodeType!=Node.COMMENT_NODE&&t.htmlFirstLevelChildTags.push(E)}i(m,(function(e){null==m||m.head.appendChild(e),f.additionalGlobalStyleNodes.push(e)}));var S=p.indexOf("\x3c!--StartFragment--\x3e"),w=p.lastIndexOf("\x3c!--EndFragment--\x3e");S>=0&&w>=S+"\x3c!--StartFragment--\x3e".length&&(d.htmlBefore=p.substr(0,S),d.htmlAfter=p.substr(w+"\x3c!--EndFragment--\x3e".length),t.html=p.substring(S+"\x3c!--StartFragment--\x3e".length,w),m.body.innerHTML=e.trustedHTMLHandler(t.html),i(m.body,(function(e){var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)})))}if(a||h||!g)if(!a&&p&&m&&m.body){if((0,r.moveChildNodes)(c,null==m?void 0:m.body),l&&n){var T=function(e,t){var n=e.api.getPendableFormatState(e,!0),r=e.api.getStyleBasedFormatState(e,t);return{fontFamily:r.fontName,fontSize:r.fontSize,textColor:r.textColor,backgroundColor:r.backgroundColor,textColors:r.textColors,backgroundColors:r.backgroundColors,bold:n.isBold,italic:n.isItalic,underline:n.isUnderline}}(e,n.node);(0,r.applyTextStyle)(c,(function(e){return(0,r.applyFormat)(e,T)}))}}else h&&h.split("\n").forEach((function(e,t,i){(e=e.replace(/^ /g," ").replace(/\r/g,"").replace(/ {2}/g,"  ")).includes("\t")&&(e=o(e,0===t?null==n?void 0:n.offset:0));var a=v.createTextNode(e);2==i.length&&0==t?(c.appendChild(a),c.appendChild(v.createElement("br"))):t>0&&t<i.length-1?c.appendChild((0,r.wrap)(""==e?v.createElement("br"):a)):c.appendChild(a)}));else{var O=v.createElement("img");O.style.maxWidth="100%",O.src=g,c.appendChild(O)}e.api.triggerEvent(e,d,!0);var P=new r.HtmlSanitizer(d.sanitizingOption);return P.convertGlobalCssToInlineCss(c),P.sanitize(c,n?(0,r.getInheritableStyles)(n.element):void 0),c},t.transformTabCharacters=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ensureTypeInContainer=void 0;var r=n(0);t.ensureTypeInContainer=function(e,t,n,o){var i,a=(0,r.findClosestElementAncestor)(t.node,e.contentDiv,"table");a&&(i=a.querySelector("td,th"))&&(t=new r.Position(i,0)),t=t.normalize();var l,s=(0,r.getBlockElementAtNode)(e.contentDiv,t.node);if(s){if(l=s.collapseToSingleElement(),(0,r.isNodeEmpty)(l,!1,!0)){var u=l.ownerDocument.createElement("br");l.append(u)}var d=(0,r.isNodeEmpty)(l)||n&&function(e,t){return(0,r.safeInstanceOf)(e.target,"Node")&&e.target.contains(t)&&e.key===t.innerText}(n,l);if((l=l&&d?l:null)&&e.lifecycle.defaultFormat&&o){var c=l.firstChild;l=(0,r.safeInstanceOf)(c,"HTMLSpanElement")?c:(0,r.wrap)((0,r.toArray)(l.childNodes),"span")}}else l=(0,r.createElement)(o?12:1,e.contentDiv.ownerDocument),e.api.insertNode(e,l,{position:1,updateCursor:!1,replaceSelection:!1,insertOnNewLine:!1}),l=o?l.firstChild:l,t=new r.Position(l,0);l&&e.lifecycle.defaultFormat&&(0,r.applyFormat)(l,e.lifecycle.defaultFormat,e.lifecycle.isDarkMode),n&&e.api.selectRange(e,(0,r.createRange)(new r.Position(t)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.focus=void 0;var r=n(0);t.focus=function(e){if(!e.lifecycle.shadowEditFragment){if(!(e.api.hasFocus(e)&&e.api.getSelectionRange(e,!1)||e.domEvent.selectionRange&&e.api.selectRange(e,e.domEvent.selectionRange,!0))){var t=(0,r.getFirstLeafNode)(e.contentDiv)||e.contentDiv;e.api.selectRange(e,(0,r.createRange)(t,0),!0)}e.domEvent.selectionRange=null,e.api.hasFocus(e)||e.contentDiv.focus()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContent=void 0;var r=n(0);t.getContent=function(e,t){var n="",o=0==t,i=2==t,a=e.lifecycle.shadowEditFragment||e.contentDiv;if(4==t)n=a.textContent;else if(3==t)n=(0,r.getTextContent)(a);else if(o||e.lifecycle.isDarkMode){var l=function(e){var t;(0,r.safeInstanceOf)(e,"DocumentFragment")?(t=e.ownerDocument.createElement("div")).appendChild(e.cloneNode(!0)):t=e.cloneNode(!0);return t}(a);l.normalize();var s=e.api.getSelectionRange(e,!0),u=i?e.lifecycle.shadowEditFragment?e.lifecycle.shadowEditSelectionPath:s?(0,r.getSelectionPath)(e.contentDiv,s):null:null,d=u&&(0,r.createRange)(l,u.start,u.end);e.lifecycle.isDarkMode&&e.api.transformColor(e,l,!1,null,1),o?(e.api.triggerEvent(e,{eventType:8,clonedRoot:l},!0),n=l.innerHTML):n=d?(0,r.getHtmlWithSelectionPath)(l,d):l.innerHTML}else n=(0,r.getHtmlWithSelectionPath)(a,i?e.api.getSelectionRange(e,!0):null);return null!=n?n:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPendableFormatState=void 0;var r=n(0);t.getPendableFormatState=function(e,t){var n,a=e.api.getSelectionRange(e,!0),l=e.pendingFormatState.pendableFormatState,s=null===(n=e.pendingFormatState.pendableFormatPosition)||void 0===n?void 0:n.normalize(),u=a&&r.Position.getStart(a).normalize(),d=u&&s&&a.collapsed&&u.equalTo(s);return a&&l&&d&&!t?l:u?function(e,t){var n=t.node,a={},l=[],s=function(){var e=(0,r.getTagOfNode)(n),t=1==n.nodeType&&n.style;e&&t&&(0,r.getObjectKeys)(o).forEach((function(n){l.indexOf(n)>=0||(a[n]=a[n]||o[n](e,t),i[n](t)&&l.push(n))})),n=n.parentNode};for(;n&&(0,r.contains)(e.contentDiv,n);)s();return a}(e,u):{}};var o={isBold:function(e,t){return"B"==e||"STRONG"==e||"H1"==e||"H2"==e||"H3"==e||"H4"==e||"H5"==e||"H6"==e||parseInt(t.fontWeight)>=700||["bold","bolder"].indexOf(t.fontWeight)>=0},isUnderline:function(e,t){return"U"==e||t.textDecoration.indexOf("underline")>=0},isItalic:function(e,t){return"I"==e||"EM"==e||"italic"===t.fontStyle},isSubscript:function(e,t){return"SUB"==e||"sub"===t.verticalAlign},isSuperscript:function(e,t){return"SUP"==e||"super"===t.verticalAlign},isStrikeThrough:function(e,t){return"S"==e||"STRIKE"==e||t.textDecoration.indexOf("line-through")>=0}},i={isBold:function(e){return""!==e.fontWeight&&parseInt(e.fontWeight)<700||"normal"===e.fontWeight},isUnderline:function(e){return""!==e.textDecoration&&e.textDecoration.indexOf("underline")<0},isItalic:function(e){return""!==e.fontStyle&&"italic"!==e.fontStyle},isSubscript:function(e){return""!==e.verticalAlign&&"sub"!==e.verticalAlign},isSuperscript:function(e){return""!==e.verticalAlign&&"super"!==e.verticalAlign},isStrikeThrough:function(e){return""!==e.textDecoration&&e.textDecoration.indexOf("line-through")<0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSelectionRange=void 0;var r=n(0);t.getSelectionRange=function(e,t){var n,o=null;if(e.lifecycle.shadowEditFragment)return o=e.lifecycle.shadowEditSelectionPath&&(0,r.createRange)(e.contentDiv,e.lifecycle.shadowEditSelectionPath.start,e.lifecycle.shadowEditSelectionPath.end);if(!t||e.api.hasFocus(e)){var i=null===(n=e.contentDiv.ownerDocument.defaultView)||void 0===n?void 0:n.getSelection();if(i&&i.rangeCount>0){var a=i.getRangeAt(0);(0,r.contains)(e.contentDiv,a)&&(o=a)}}return!o&&t&&(o=e.domEvent.selectionRange),o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSelectionRangeEx=void 0;var r=n(0);function o(e){return{type:0,ranges:e,areAllCollapsed:i(e)}}function i(e){return e.filter((function(e){return null==e?void 0:e.collapsed})).length==e.length}t.getSelectionRangeEx=function(e){var t,n,a;if(e.lifecycle.shadowEditFragment){var l,s=e.lifecycle,u=s.shadowEditTableSelectionPath,d=s.shadowEditSelectionPath,c=s.shadowEditImageSelectionPath;if(((null==u?void 0:u.length)||0)>0)return{type:1,ranges:l=e.lifecycle.shadowEditTableSelectionPath.map((function(t){return(0,r.createRange)(e.contentDiv,t.start,t.end)})),areAllCollapsed:i(l),table:(0,r.findClosestElementAncestor)(l[0].startContainer,e.contentDiv,"table"),coordinates:void 0};if(((null==c?void 0:c.length)||0)>0)return{type:2,ranges:l=e.lifecycle.shadowEditImageSelectionPath.map((function(t){return(0,r.createRange)(e.contentDiv,t.start,t.end)})),areAllCollapsed:i(l),image:(0,r.findClosestElementAncestor)(l[0].startContainer,e.contentDiv,"img"),imageId:void 0};var f=d&&(0,r.createRange)(e.contentDiv,d.start,d.end);return o(f?[f]:[])}if(e.api.hasFocus(e)){if(e.domEvent.tableSelectionRange)return e.domEvent.tableSelectionRange;if(e.domEvent.imageSelectionRange)return e.domEvent.imageSelectionRange;var p=null===(t=e.contentDiv.ownerDocument.defaultView)||void 0===t?void 0:t.getSelection();if(p&&p.rangeCount>0){var h=p.getRangeAt(0);if((0,r.contains)(e.contentDiv,h))return o([h])}}return null!==(a=null!==(n=e.domEvent.tableSelectionRange)&&void 0!==n?n:e.domEvent.imageSelectionRange)&&void 0!==a?a:o(e.domEvent.selectionRange?[e.domEvent.selectionRange]:[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStyleBasedFormatState=void 0;var r=n(0);t.getStyleBasedFormatState=function(e,t){if(!t)return{};var n=[],o=e.pendingFormatState.pendableFormatSpan;o&&(n=[o.style.fontFamily,o.style.fontSize,o.style.color,o.style.backgroundColor]);var i=t?(0,r.getComputedStyles)(t):[],a=e.lifecycle.isDarkMode,l=e.contentDiv,s=a&&(n[2]?o:(0,r.findClosestElementAncestor)(t,l,"[data-ogsc],[data-ogac]")),u=a&&(n[3]?o:(0,r.findClosestElementAncestor)(t,l,"[data-ogsb],[data-ogab]"));return{fontName:n[0]||i[0],fontSize:n[1]||i[1],textColor:n[2]||i[2],backgroundColor:n[3]||i[3],textColors:s?{darkModeColor:n[2]||i[2],lightModeColor:s.dataset.ogsc||s.dataset.ogac||i[2]}:void 0,backgroundColors:u?{darkModeColor:n[3]||i[3],lightModeColor:u.dataset.ogsb||u.dataset.ogab||i[3]}:void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertNode=void 0;var r=n(0);t.insertNode=function(e,t,n){var o;n=n||{position:3,insertOnNewLine:!1,updateCursor:!0,replaceSelection:!0,insertToRegionRoot:!1};var i=e.contentDiv;return n.updateCursor&&e.api.focus(e),4==n.position?(null===(o=i.parentNode)||void 0===o||o.insertBefore(t,i.nextSibling),!0):(e.api.transformColor(e,t,!0,(function(){var o,a;if(n)switch(n.position){case 0:case 1:var l,s=0==n.position,u=(0,r.getFirstLastBlockElement)(i,s);if(u){var d=s?u.getStartNode():u.getEndNode();n.insertOnNewLine||3==d.nodeType||(0,r.isVoidHtmlElement)(d)?(0,r.safeInstanceOf)(t,"DocumentFragment")?(l=(0,r.toArray)(t.childNodes),null===(o=d.parentNode)||void 0===o||o.insertBefore(t,s?d:d.nextSibling)):l=null===(a=d.parentNode)||void 0===a?void 0:a.insertBefore(t,s?d:d.nextSibling):l=d.insertBefore(t,s?d.firstChild:null)}else l=i.appendChild(t);if(l&&n.insertOnNewLine){var c=Array.isArray(l)?l:[l];(0,r.isBlockElement)(c[0])&&(0,r.isBlockElement)(c[c.length-1])||(0,r.wrap)(c)}break;case 2:var f=i.appendChild(t);f&&n.insertOnNewLine&&!(0,r.isBlockElement)(f)&&(0,r.wrap)(f);break;case 5:case 3:var p=function(e,t){var n=e.api.getSelectionRange(e,!0),r=null;return 5==t.position?(r=n,n=t.range):n&&(r=n.cloneRange()),{range:n,rangeToRestore:r}}(e,n),h=p.range,g=p.rangeToRestore;if(!h)return;n.replaceSelection&&!h.collapsed&&h.deleteContents();var v=r.Position.getStart(h),m=void 0;v=n.insertOnNewLine&&n.insertToRegionRoot?function(e,t,n){var o=(0,r.getRegionsFromRange)(e.contentDiv,t,0)[0],i=n.node;if(o){if(3!=i.nodeType||n.isAtEnd||(i=(0,r.splitTextNode)(i,n.offset,!0)),i!=o.rootNode)for(;i&&i.parentNode!=o.rootNode;)(0,r.splitParentNode)(i,!1),i=i.parentNode;i&&(n=new r.Position(i,-3))}return n}(e,h,v):n.insertOnNewLine&&(m=(0,r.getBlockElementAtNode)(i,v.normalize().node))?function(e,t,n){var o=new r.Position(e.getEndNode(),-3);if((0,r.safeInstanceOf)(o.node,"HTMLTableRowElement")){var i=t.contentDiv.ownerDocument.createElement("div");(0,r.createRange)(n).insertNode(i),o=new r.Position(i,0)}return o}(m,e,v):(0,r.adjustInsertPosition)(i,t,v,h);var b=11==t.nodeType?t.lastChild:t;(h=(0,r.createRange)(v)).insertNode(t),n.updateCursor&&b&&(g=(0,r.createRange)(new r.Position(b,-3).normalize())),g&&e.api.selectRange(e,g)}}),0),!0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.restoreUndoSnapshot=void 0;t.restoreUndoSnapshot=function(e,t){var n;e.undo.hasNewContent&&t<0&&e.api.addUndoSnapshot(e,null,null,!1);var r=e.undo.snapshotsService.move(t);if(r&&null!=r.html)try{e.undo.isRestoring=!0,e.api.setContent(e,r.html,!0,null!==(n=r.metadata)&&void 0!==n?n:void 0)}finally{e.undo.isRestoring=!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectImage=void 0;var r=n(94),o=n(0);t.selectImage=function(e,t){l(e);var n=null;if(t){var a=(0,o.createRange)(t);(0,r.default)(t,"imageSelected"),(0,r.default)(e.contentDiv,"contentDiv_"),e.api.selectRange(e,(0,o.createRange)(new o.Position(t,-3))),i(e,t),n={type:2,ranges:[a],image:t,areAllCollapsed:a.collapsed}}return n};var i=function(e,t){(0,o.removeImportantStyleRule)(t,["border","margin"]);var n=a(e,t.id);(0,o.setGlobalCssStyles)(e.contentDiv.ownerDocument,n,"imageStyle"+e.contentDiv.id)},a=function(e,t){return"#"+e.contentDiv.id+" #"+t+" {outline-style: auto!important;outline-color: "+(e.imageSelectionBorderColor||"#DB626C")+"!important;caret-color: transparent!important;}"},l=function(e){var t=e.contentDiv.ownerDocument;(0,o.removeGlobalCssStyle)(t,"imageStyle"+e.contentDiv.id)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectRange=void 0;var r=n(93),o=n(0);t.selectRange=function(e,t,n){return!(e.lifecycle.shadowEditSelectionPath||!(0,o.contains)(e.contentDiv,t))&&((0,o.addRangeToSelection)(t,n),(0,r.hasFocus)(e)||(e.domEvent.selectionRange=t),t.collapsed&&function(e){var t=e.contentDiv,n=e.pendingFormatState,r=e.api.getSelectionRange;if(n.pendableFormatState){var i=t.ownerDocument,a=(0,o.getPendableFormatState)(i);(0,o.getObjectKeys)(o.PendableFormatCommandMap).forEach((function(e){var t;!!(null===(t=n.pendableFormatState)||void 0===t?void 0:t[e])!=a[e]&&i.execCommand(o.PendableFormatCommandMap[e],!1,void 0)}));var l=r(e,!0),s=l&&o.Position.getStart(l);s&&(n.pendableFormatPosition=s)}}(e),!0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectTable=void 0;var r=n(94),o=n(0);t.selectTable=function(e,t,n){var u;if(i(e),function(e){if(e){var t=e||{},n=t.firstCell,r=t.lastCell;if(n&&r){var o=function(e){return s(e.x)&&s(e.y)};return o(n)&&o(r)}}return!1}(n)&&t){(0,r.default)(t,"tableSelected"),(0,r.default)(e.contentDiv,"contentDiv_");var d=function(e,t,n){var r="#"+e.contentDiv.id,i=function(e,t,n){var r,i=t.firstCell.y,s=t.firstCell.x,u=t.lastCell.y,d=t.lastCell.x,c=[],f=null,p=null,h=[],g=new o.VTable(e),v=(0,o.toArray)(e.childNodes).filter((function(e){return["THEAD","TBODY","TFOOT"].indexOf((0,o.getTagOfNode)(e))>-1})),m=0,b=v.map((function(e){var t={el:(0,o.getTagOfNode)(e),start:m,end:e.childNodes.length+m};return m=t.end,t}));return null===(r=g.cells)||void 0===r||r.forEach((function(t,r){var g=0;f=null,p=null;for(var v=b.filter((function(e){return e.start<=r&&e.end>r}))[0],m=v?">"+v.el+">":">",y=v&&r+1>=v.start?r+1-v.start:r+1,C=0;C<t.length;C++){var E=t[C].td;if(E){var S=(0,o.getTagOfNode)(E);if(g++,r>=i&&r<=u&&C>=s&&C<=d){l(E);var w=a(n,e.id,m,y,S,g),T=w+" *";h.push(w),h.push(T),f=f||e.querySelector(w),p=e.querySelector(w)}}}if(f&&p){var O=new Range;O.setStartBefore(f),O.setEndAfter(p),c.push(O)}})),{css:h.join(",")+" {background-color: rgba(198,198,198,0.7) !important; caret-color: transparent}",ranges:c}}(t,n,r),s=i.css,u=i.ranges;return(0,o.setGlobalCssStyles)(e.contentDiv.ownerDocument,s,"tableStyle"+e.contentDiv.id),u}(e,t,n);if(!function(e,t){var n,r=t.firstCell;return!(e.rows.item(r.y)&&(null===(n=e.rows.item(r.y))||void 0===n?void 0:n.cells.item(r.x)))}(t,n)){var c=null===(u=t.rows.item(n.firstCell.y))||void 0===u?void 0:u.cells.item(n.firstCell.x);c&&e.api.selectRange(e,(0,o.createRange)(new o.Position(c,0)))}return{type:1,ranges:d,table:t,areAllCollapsed:d.filter((function(e){return null==e?void 0:e.collapsed})).length==d.length,coordinates:n}}return null};var i=function(e){var t=e.contentDiv.ownerDocument;(0,o.removeGlobalCssStyle)(t,"tableStyle"+e.contentDiv.id)};function a(e,t,n,r,o,i){return e+" #"+t+n+" tr:nth-child("+r+")>"+o+":nth-child("+i+")"}function l(e){e&&(0,o.removeImportantStyleRule)(e,["background-color","background"])}function s(e){return(!!e||0==e)&&e>-1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setContent=void 0;var r=n(0),o=n(0);t.setContent=function(e,t,n,i){var a=!1;if(e.contentDiv.innerHTML!=t){e.api.triggerEvent(e,{eventType:20,newContent:t},!0);var l=(0,o.setHtmlWithMetadata)(e.contentDiv,t,e.trustedHTMLHandler);(function(e,t){if(!e.lifecycle.shadowEditSelectionPath&&t)switch(e.domEvent.tableSelectionRange=null,e.domEvent.imageSelectionRange=null,e.domEvent.selectionRange=null,t.type){case 0:e.api.selectTable(e,null),e.api.selectImage(e,null);var n=(0,r.createRange)(e.contentDiv,t.start,t.end);e.api.selectRange(e,n);break;case 1:var o=(0,r.queryElements)(e.contentDiv,"#"+t.tableId)[0];o&&(e.domEvent.tableSelectionRange=e.api.selectTable(e,o,t));break;case 2:var i=(0,r.queryElements)(e.contentDiv,"#"+t.imageId)[0];i&&(e.domEvent.imageSelectionRange=e.api.selectImage(e,i))}})(e,i=i||l),a=!0}var s=e.lifecycle.isDarkMode;(!i&&s||i&&!!i.isDarkMode!=!!s)&&(e.api.transformColor(e,e.contentDiv,!1,null,s?0:1,!0),a=!0),n&&a&&e.api.triggerEvent(e,{eventType:7,source:"SetContent"},!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchShadowEdit=void 0;var r=n(0);t.switchShadowEdit=function(e,t){var n=e.lifecycle,o=e.contentDiv,i=n.shadowEditEntities,a=n.shadowEditFragment,l=n.shadowEditSelectionPath,s=n.shadowEditTableSelectionPath,u=n.shadowEditImageSelectionPath,d=!!a,c=function(e,t){return(null==t?void 0:t.type)==e&&t.ranges.map((function(e){return(0,r.getSelectionPath)(o,e)})).map((function(e){return e}))||null};if(t){if(!d){var f=e.api.getSelectionRangeEx(e),p=e.api.getSelectionRange(e,!0);l=p&&(0,r.getSelectionPath)(o,p),s=c(1,f),u=c(2,f),i={},a=(0,r.moveContentWithEntityPlaceholders)(o,i),e.api.triggerEvent(e,{eventType:17,fragment:a,selectionPath:l},!1),n.shadowEditFragment=a,n.shadowEditSelectionPath=l,n.shadowEditTableSelectionPath=s,n.shadowEditImageSelectionPath=u,n.shadowEditEntities=i}n.shadowEditFragment&&(0,r.restoreContentWithEntityPlaceholder)(n.shadowEditFragment,o,n.shadowEditEntities,!0)}else if(n.shadowEditFragment=null,n.shadowEditSelectionPath=null,n.shadowEditEntities=null,d){if(e.api.triggerEvent(e,{eventType:18},!1),a&&(0,r.restoreContentWithEntityPlaceholder)(a,o,i),e.api.focus(e),l&&e.api.selectRange(e,(0,r.createRange)(o,l.start,l.end)),e.domEvent.imageSelectionRange){var h=e.domEvent.imageSelectionRange.image;e.contentDiv.querySelector("#"+h.id)&&e.api.selectImage(e,h)}if(e.domEvent.tableSelectionRange){var g=e.domEvent.tableSelectionRange,v=g.table,m=g.coordinates,b=v.id,y=e.contentDiv.querySelector("#"+b);v&&(e.domEvent.tableSelectionRange=e.api.selectTable(e,y,m))}}}},function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.transformColor=void 0;var i=n(0),a=[(r={},r[0]="color",r[1]="color",r[2]="ogsc",r[3]="ogac",r),(o={},o[0]="background-color",o[1]="bgcolor",o[2]="ogsb",o[3]="ogab",o)];function l(e,t){return e&&"undefined"!=e&&"null"!=e?e:t}function s(e){var t=e;return!!t.style&&!!t.dataset}t.transformColor=function(e,t,n,r,o,u){var d=t&&(u||e.lifecycle.isDarkMode)?function(e,t){var n=[];if((0,i.safeInstanceOf)(e,"HTMLElement")){t&&n.push(e);var r=e.getElementsByTagName("*");(0,i.arrayPush)(n,(0,i.toArray)(r))}else if((0,i.safeInstanceOf)(e,"DocumentFragment")){r=e.querySelectorAll("*");(0,i.arrayPush)(n,(0,i.toArray)(r))}return n.filter(s)}(t,n):[];null==r||r(),1==o?function(e){e.forEach((function(e){a.forEach((function(t){e.style.setProperty(t[0],l(e.dataset[t[2]],"")),delete e.dataset[t[2]];var n=l(e.dataset[t[3]],null);n?e.setAttribute(t[1],n):e.removeAttribute(t[1]),delete e.dataset[t[3]]}))}))}(d):e.lifecycle.onExternalContentTransform?d.forEach((function(t){return e.lifecycle.onExternalContentTransform(t)})):function(e,t){a.forEach((function(n){e.map((function(e){var r=e.style.getPropertyValue(n[0]),o=e.getAttribute(n[1]),i=e.dataset[n[2]],a=e.dataset[n[3]];return(!i||i==r)&&(!a||a==o)&&(r||o)&&"inherit"!=r?{element:e,styleColor:r,attrColor:o,newColor:r||o?t(r||o):null}:null})).filter((function(e){return!!e})).forEach((function(e){if(e){var t=e.element,r=e.styleColor,o=e.attrColor,i=e.newColor;t.style.setProperty(n[0],i,"important"),t.dataset[n[2]]=r||"",o&&i&&(t.setAttribute(n[1],i),t.dataset[n[3]]=o)}}))}))}(d,e.lifecycle.getDarkColor)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.triggerEvent=void 0;var r=[11,12,8,21];t.triggerEvent=function(e,t,n){e.lifecycle.shadowEditFragment&&!(r.indexOf(t.eventType)>=0)||!n&&e.plugins.some((function(e){return function(e,t){var n;if(t.onPluginEvent&&(null===(n=t.willHandleEventExclusively)||void 0===n?void 0:n.call(t,e)))return t.onPluginEvent(e),!0;return!1}(t,e)}))||e.plugins.forEach((function(e){e.onPluginEvent&&e.onPluginEvent(t)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(205);t.default=function(e,t){void 0===t&&(t=21.247);try{var n=r(e||void 0),o=n.lab().array(),i=(100-o[0])*((100-t)/100)+t;e=r.lab(i,o[1],o[2]).rgb().alpha(n.alpha()).toString()}catch(e){}return e}},function(e,t,n){"use strict";var r=n(206),o=n(209),i=[].slice,a=["keyword","gray","hex"],l={};Object.keys(o).forEach((function(e){l[i.call(o[e].labels).sort().join("")]=e}));var s={};function u(e,t){if(!(this instanceof u))return new u(e,t);if(t&&t in a&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);var n,d;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof u)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var c=r.get(e);if(null===c)throw new Error("Unable to parse color from string: "+e);this.model=c.model,d=o[this.model].channels,this.color=c.value.slice(0,d),this.valpha="number"==typeof c.value[d]?c.value[d]:1}else if(e.length){this.model=t||"rgb",d=o[this.model].channels;var f=i.call(e,0,d);this.color=p(f,d),this.valpha="number"==typeof e[d]?e[d]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var h=Object.keys(e);"alpha"in e&&(h.splice(h.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var g=h.sort().join("");if(!(g in l))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=l[g];var v=o[this.model].labels,m=[];for(n=0;n<v.length;n++)m.push(e[v[n]]);this.color=p(m)}if(s[this.model])for(d=o[this.model].channels,n=0;n<d;n++){var b=s[this.model][n];b&&(this.color[n]=b(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function d(e,t,n){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(s[e]||(s[e]=[]))[t]=n})),e=e[0],function(r){var o;return arguments.length?(n&&(r=n(r)),(o=this[e]()).color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function c(e){return function(t){return Math.max(0,Math.min(e,t))}}function f(e){return Array.isArray(e)?e:[e]}function p(e,t){for(var n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}u.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in r.to?this:this.rgb(),n=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return r.to[t.model](n)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:t.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=o[this.model].channels,n=o[this.model].labels,r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new u(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new u(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:d("rgb",0,c(255)),green:d("rgb",1,c(255)),blue:d("rgb",2,c(255)),hue:d(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:d("hsl",1,c(100)),lightness:d("hsl",2,c(100)),saturationv:d("hsv",1,c(100)),value:d("hsv",2,c(100)),chroma:d("hcg",1,c(100)),gray:d("hcg",2,c(100)),white:d("hwb",1,c(100)),wblack:d("hwb",2,c(100)),cyan:d("cmyk",0,c(100)),magenta:d("cmyk",1,c(100)),yellow:d("cmyk",2,c(100)),black:d("cmyk",3,c(100)),x:d("xyz",0,c(100)),y:d("xyz",1,c(100)),z:d("xyz",2,c(100)),l:d("lab",0,c(100)),a:d("lab",1),b:d("lab",2),keyword:function(e){return arguments.length?new u(e):o[this.model].keyword(this.color)},hex:function(e){return arguments.length?new u(e):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return u.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),o=void 0===t?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),l=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,s=1-l;return u.rgb(l*n.red()+s*r.red(),l*n.green()+s*r.green(),l*n.blue()+s*r.blue(),n.alpha()*o+r.alpha()*(1-o))}},Object.keys(o).forEach((function(e){if(-1===a.indexOf(e)){var t=o[e].channels;u.prototype[e]=function(){if(this.model===e)return new u(this);if(arguments.length)return new u(arguments,e);var n="number"==typeof arguments[t]?t:this.valpha;return new u(f(o[this.model][e].raw(this.color)).concat(n),e)},u[e]=function(n){return"number"==typeof n&&(n=p(i.call(arguments),t)),new u(n,e)}}})),e.exports=u},function(e,t,n){var r=n(96),o=n(207),i={};for(var a in r)r.hasOwnProperty(a)&&(i[r[a]]=a);var l=e.exports={to:{},get:{}};function s(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,o,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],n=0;n<3;n++){var a=2*n;i[n]=parseInt(t.slice(a,a+2),16)}o&&(i[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],n=0;n<3;n++)i[n]=parseInt(t[n]+t[n],16);o&&(i[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<3;n++)i[n]=parseInt(t[n+1],0);t[4]&&(i[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=e.match(/(\D+)/))?"transparent"===t[1]?[0,0,0,0]:(i=r[t[1]])?(i[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(i[3]=parseFloat(t[4]))}for(n=0;n<3;n++)i[n]=s(i[n],0,255);return i[3]=s(i[3],0,1),i},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,s(parseFloat(t[2]),0,100),s(parseFloat(t[3]),0,100),s(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,s(parseFloat(t[2]),0,100),s(parseFloat(t[3]),0,100),s(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=o(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return i[e.slice(0,3)]}},function(e,t,n){"use strict";var r=n(208),o=Array.prototype.concat,i=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n<a;n++){var l=e[n];r(l)?t=o.call(t,i.call(l)):t.push(l)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},function(e,t){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,n){var r=n(97),o=n(210),i={};Object.keys(r).forEach((function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:r[e].channels}),Object.defineProperty(i[e],"labels",{value:r[e].labels});var t=o(e);Object.keys(t).forEach((function(n){var r=t[n];i[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o<r;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),i[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=i},function(e,t,n){var r=n(97);function o(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,o=0;o<n;o++)e[t[o]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var o=n.pop(),i=Object.keys(r[o]),a=i.length,l=0;l<a;l++){var s=i[l],u=t[s];-1===u.distance&&(u.distance=t[o].distance+1,u.parent=o,n.unshift(s))}return t}function i(e,t){return function(n){return t(e(n))}}function a(e,t){for(var n=[t[e].parent,e],o=r[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),o=i(r[t[a].parent][a],o),a=t[a].parent;return o.conversion=n,o}e.exports=function(e){for(var t=o(e),n={},r=Object.keys(t),i=r.length,l=0;l<i;l++){var s=r[l];null!==t[s].parent&&(n[s]=a(s,t))}return n}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(212),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllFeatures=t.ContentEdit=void 0;var r=n(213);Object.defineProperty(t,"ContentEdit",{enumerable:!0,get:function(){return r.default}});var o=n(99);Object.defineProperty(t,"getAllFeatures",{enumerable:!0,get:function(){return o.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(99),o=n(0),i=function(){function e(e,t){this.settingsOverride=e,this.additionalFeatures=t,this.editor=void 0,this.features=[]}return e.prototype.getName=function(){return"ContentEdit"},e.prototype.initialize=function(e){var t=this;this.editor=e;var n=(0,r.default)();(0,o.getObjectKeys)(n).forEach((function(e){var r=n[e],o=t.settingsOverride&&void 0!==t.settingsOverride[e];(o&&t.settingsOverride[e]||!o&&!r.defaultDisabled)&&t.features.push(r)})),this.features=this.features.concat(this.additionalFeatures||[]),this.features.forEach((function(e){return t.editor.addContentEditFeature(e)}))},e.prototype.disposeFeatures=function(){var e=this;this.editor&&this.features.forEach((function(t){return e.editor.removeContentEditFeature(t)})),this.features=[]},e.prototype.dispose=function(){this.disposeFeatures(),this.editor=void 0},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoLinkFeatures=void 0;var r=n(9),o=n(0),i=/[.+=\s:;"',>]+$/i,a={keys:[13,32,257],shouldHandleEvent:s,handleEvent:function(e,t){var n=t.getDocument().createElement("a"),i=s(e,t),a=t.getContentSearcherOfCursor();n.textContent=i.originalUrl,n.href=i.normalizedUrl,t.runAsync((function(t){t.addUndoSnapshot((function(){return(0,r.replaceWithNode)(t,i.originalUrl,n,!1,a),(0,o.clearEventDataCache)(e),n}),"AutoLink",!0)}))}},l={keys:[8],shouldHandleEvent:function(e,t){return t.getContentSearcherOfCursor(e).getInlineElementBefore()instanceof o.LinkInlineElement},handleEvent:function(e,t){e.rawEvent.preventDefault(),(0,r.removeLink)(t)},defaultDisabled:!0};function s(e,t){return 0==e.eventType||7==e.eventType&&"Paste"==e.source?(0,o.cacheGetEventData)(e,"LINK_DATA",(function(){var n=7==e.eventType&&"Paste"==e.source&&e.data,r=(0,o.matchLink)((n.text||"").trim()),a=t.getContentSearcherOfCursor(e);if(r&&a.getRangeFromText(r.originalUrl,!1))return r;var l=a&&a.getWordBefore();if(l&&l.length>5){var s=(l.match(i)||[])[0]||"",u=l.substring(0,l.length-s.length);return["()","{}","[]"].forEach((function(e){u[u.length-1]==e[1]&&u.indexOf(e[0])<0&&(u=u.substr(0,u.length-1))})),(0,o.matchLink)(u)}return null})):null}t.AutoLinkFeatures={autoLink:a,unlinkWhenBackspaceAfterLink:l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNewFontSize=t.FONT_SIZES=void 0;var r=n(41),o=n(0);t.FONT_SIZES=[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72];function i(e,t,n){e=1==t?Math.floor(e):Math.ceil(e);var r=n[n.length-1];if(e<=n[0])e=Math.max(e+t,1);else if(e>r||e==r&&1==t)e/=10,e=1==t?Math.floor(e):Math.ceil(e),e=Math.min(Math.max(10*(e+t),r),1e3);else if(1==t){for(var o=0;o<n.length;o++)if(e<n[o]){e=n[o];break}}else for(o=n.length-1;o>=0;o--)if(e>n[o]){e=n[o];break}return e}t.default=function(e,n,a){void 0===a&&(a=t.FONT_SIZES);var l=0==n?1:-1;(0,r.default)(e,(function(e){var t=parseFloat((0,o.getComputedStyle)(e,"font-size")||e.style.fontSize);e.style.fontSize=i(t,l,a)+"pt";var n=(0,o.getComputedStyle)(e,"line-height");n&&"normal"!=n&&(e.style.lineHeight="normal")}),"changeFontSize")},t.getNewFontSize=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(100);t.default=function(e){(0,r.default)(e,1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=/^[a-zA-Z]+:/i,i=/^[\w.%+-]+@/i,a=/^ftp\./i;function l(e){return e.queryElements("a[href]",1)[0]}function s(e,t){t&&e.textContent!=t&&(e.textContent=t)}t.default=function(e,t,n,u,d){e.focus();var c=(function(e){var t=new r.HtmlSanitizer,n=document.createElement("a");return n.href=e||"",t.sanitize(n),n.getAttribute("href")}(t)||"").trim();if(c){var f=(0,r.matchLink)(c),p=f?f.normalizedUrl:function(e){if(!e)return e;var t="";return e.search(o)<0&&(t=0==e.search(i)?"mailto:":0==e.search(a)?"ftp://":"http://"),t+e}(c),h=f?f.originalUrl:c;e.addUndoSnapshot((function(){var t=e.getSelectionRangeEx(),o=null;if(0===t.type){var i=t.ranges[0];if(i&&i.collapsed)(o=l(e))?(o.href=p,s(o,u)):((o=e.getDocument().createElement("A")).textContent=u||h,o.href=p,e.insertNode(o));else{e.getDocument().execCommand("createLink",!1,p);for(var a=e.getSelectionTraverser(),c=a.getNextInlineElement(),f=[];c;)f.push(c.getContainerNode()),c=a.getNextInlineElement();f.forEach((function(t){return e.deleteNode(t)})),s(o=l(e),u)}}else 2===t.type&&((o=(0,r.wrap)(t.image,"A")).href=p);return n&&o&&(o.title=n),o&&function(e,t){t?e.target=t:!t&&e.getAttribute("target")&&e.removeAttribute("target")}(o,d),o}),"CreateLink")}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getElementBasedFormatState=void 0;var o=n(0);function i(e,t){var n=(0,o.getTagOfNode)(e.getElementAtCursor("OL,UL",null,t)),r=e.getSelectionRange(),i=!1;if(r&&!r.collapsed){var a=e.getBlockElementAtNode(r.startContainer),l=e.getBlockElementAtNode(r.endContainer);i=!(!l||!a)&&!l.equals(a)}var s=(0,o.getTagOfNode)(e.getElementAtCursor("H1,H2,H3,H4,H5,H6",null,t)),u=e.queryElements("table",1)[0],d=u?(0,o.getTableFormatInfo)(u):void 0,c=(null==u?void 0:u.rows[0])?(0,o.toArray)(u.rows[0].cells).every((function(e){return"TH"==(0,o.getTagOfNode)(e)})):void 0;return{isBullet:"UL"==n,isNumbering:"OL"==n,isMultilineSelection:i,headerLevel:s&&parseInt(s[1])||0,canUnlink:!!e.queryElements("a[href]",1)[0],canAddImageAltText:!!e.queryElements("img",1)[0],isBlockQuote:!!e.queryElements("blockquote",1)[0],isInTable:!!u,tableFormat:d,tableHasHeader:c}}t.getElementBasedFormatState=i,t.default=function(e,t){return r(r(r(r(r({},e.getPendableFormatState(!1)),i(e,t)),e.getStyleBasedFormatState()),e.getUndoState()),{isDarkMode:e.isDarkMode(),zoomScale:e.getZoomScale()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),o=n(0);t.default=function(e,t,n,i,a,l,s){var u=(0,o.wrap)(n,i?"DIV":"SPAN");if(!i&&a&&(u.style.display="inline-block"),(0,o.commitEntity)(u,t,a),!e.contains(u)){var d=void 0,c=void 0;if("number"==typeof l)c=l;else if(l){d=e.getSelectionRange();var f=l.normalize().node,p=f&&e.getElementAtCursor((0,o.getEntitySelector)(),f);p&&(l=new o.Position(p,-3)),e.select(l),c=3}else e.focus(),c=3;var h=s&&e.getSelectedRegions(),g=h&&o.VListChain.createListChains(h);e.insertNode(u,{updateCursor:!1,insertOnNewLine:i,replaceSelection:!0,position:c,insertToRegionRoot:s}),g&&(0,r.default)(e,g),3==c&&(d?e.select(d):i||e.select(u,-3))}if(i){var v=e.getDocument().createElement("BR");u.parentNode.insertBefore(v,u.nextSibling)}var m=(0,o.getEntityFromElement)(u);return e.triggerContentChangedEvent("InsertEntity",m),m}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);function i(e,t,n){(0,r.default)(e,(function(){var r=e.getDocument().createElement("img");r.src=t,n&&(0,o.getObjectKeys)(n).forEach((function(e){return r.setAttribute(e,n[e])})),r.style.maxWidth="100%",e.insertNode(r)}),"insertImage")}t.default=function(e,t,n){"string"==typeof t?i(e,t,n):(0,o.readFile)(t,(function(t){t&&!e.isDisposed()&&i(e,t,n)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(59),i=n(0);function a(e){return e<=4?"120px":e<=6?"100px":"70px"}t.default=function(e,t,n,l){var s=e.getDocument(),u=s.createElement("table");u.cellSpacing="0",u.cellPadding="1";for(var d=0;d<n;d++){var c=s.createElement("tr");u.appendChild(c);for(var f=0;f<t;f++){var p=s.createElement("td");c.appendChild(p),p.appendChild(s.createElement("br")),p.style.width=a(t)}}e.focus(),(0,r.default)(e,(function(){var t=e.getElementAtCursor();(null==t?void 0:t.style.backgroundColor)&&(0,o.default)(e,"transparent");var n=new i.VTable(u);n.applyFormat(l),n.writeBack(),e.insertNode(u),e.runAsync((function(e){return e.select(new i.Position(u,0).normalize())}))}),"insertTable")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t){var n=e.getElementAtCursor("TD,TH");n&&(0,r.default)(e,(function(){var r=new o.VTable(n);!function(e,t){var n=e.getSelectionRangeEx();n&&1===n.type&&(t.selection=n.coordinates)}(e,r),r.edit(t),r.writeBack(),e.transformToDarkColor(r.table),e.focus();var i=function(e,t,n){var r=t,o=n;switch(e){case 0:o=0;break;case 1:r+=1,o=0;break;case 2:r=0;break;case 3:r=0,o+=1}return{newRow:r,newCol:o}}(t,r.row,r.col);e.select(r.getCell(i.newRow,i.newCol).td,0)}),"editTable")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t,n){(n=n||e.getElementAtCursor("TABLE"))&&(0,r.default)(e,(function(r,i){var a=new o.VTable(n);a.applyFormat(t),a.writeBack(),e.transformToDarkColor(a.table),e.focus(),e.select(r,i)}),"formatTable")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e){e.focus(),(0,r.default)(e,(function(t,n){e.queryElements("a[href]",1,o.unwrap),e.select(t,n)}),"removeLink")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){if(!t||!n)return!1;var i;if(i="string"==typeof t?(o=o||e.getContentSearcherOfCursor())&&o.getRangeFromText(t,r):t){var a=e.getSelectionRange();return a.collapsed&&i.endContainer==a.startContainer&&i.endOffset==a.startOffset&&(r=!0),e.insertNode(n,{position:5,updateCursor:r,replaceSelection:!0,insertOnNewLine:!1,range:i}),!0}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.default=function(e,t,n){t&&(0,r.default)(e,(function(){t.style.transform="rotate("+n+"deg)"}),"rotateElement")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),o=n(12),i=n(3),a=n(107),l=n(0);t.default=function(e,t){(0,i.default)(e,(function(){var n,i=e.getSelectionRangeEx(),s=i&&1===i.type,u=e.getElementAtCursor();s&&(0,l.isWholeTableSelected)(new l.VTable(i.table),i.coordinates)?function(e,t){var n=e.table;1==t?(n.style.marginLeft="auto",n.style.marginRight="auto"):2==t?(n.style.marginLeft="auto",n.style.marginRight=""):(n.style.marginLeft="",n.style.marginRight="auto")}(i,t):(n=u,(0,l.findClosestElementAncestor)(n,void 0,"LI")&&e.isFeatureEnabled("ListItemAlignment")?function(e,t){(0,r.default)(e,(function(n,r,o){var i=(0,l.getSelectedBlockElementsInRegion)(n,void 0,e.isFeatureEnabled("DefaultFormatInSpan"))[0].getStartNode();(0,l.createVListFromRegion)(n,!0,i).setAlignment(r,o,t)}),void 0,"alignList")}(e,t):function(e,t){var n="left",r="justifyLeft";1==t?(r="justifyCenter",n="center"):2==t&&(r="justifyRight",n="right");if((0,o.default)(e,r),0==e.queryElements("[align]",1,(function(e){e.style.textAlign=n,(0,a.default)(e)})).length){var i=e.getElementAtCursor();(0,a.default)(i)}}(e,t))}),"setAlignment")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(229),o=n(3);t.default=function(e,t){e.focus(),(0,o.default)(e,(function(n,o){(0,r.default)(e,(function(e){e.setAttribute("dir",0==t?"ltr":"rtl"),e.style.textAlign=0==t?"left":"right"})),e.select(n,o)}),"setDirection")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);function o(e){var t=e.getStartNode();return t==e.getEndNode()&&3==t.nodeType&&["TR","TABLE"].indexOf((0,r.getTagOfNode)(t.parentNode))>=0}t.default=function(e,t){for(var n=e.getSelectionTraverser(),r=n&&n.currentBlockElement,i=[];r;)o(r)||i.push(r),r=n.getNextBlockElement();i.forEach((function(e){var n=e.collapseToSingleElement();t(n)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.default=function(e,t){e.focus(),(0,r.default)(e,(function(){e.queryElements("img",1,(function(e){return e.setAttribute("alt",t)}))}),"setImageAltText")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),o=n(107),i=n(0);function a(e,t){t.forEach((function(t){var n=t.collapseToSingleElement(),r=(0,i.findClosestElementAncestor)(n,e.rootNode,"blockquote");if(r){for(n==r&&(n=(0,i.wrap)((0,i.toArray)(n.childNodes)));n&&(0,i.isNodeInRegion)(e,n)&&"BLOCKQUOTE"!=(0,i.getTagOfNode)(n);)n=(0,i.splitBalancedNodeRange)(n);n&&(0,i.isNodeInRegion)(e,n)&&(0,i.unwrap)(n)}}))}function l(e,t){var n;return(null===(n=e.items[0])||void 0===n?void 0:n.getNode())==t&&e.getListItemIndex(t)==(e.getStart()||1)}function s(e,t,n){return 0==e||t.getElementAtCursor("blockquote",n)}t.default=function(e,t){var n=0==t?function(e,t){var n=(0,i.collapseNodesInRegion)(e,t);(0,i.wrap)(n,2);var r=[];n.forEach((function(e){return(0,o.default)(e,r)}))}:a;(0,r.default)(e,(function(r,o,a){for(var u=(0,i.getSelectedBlockElementsInRegion)(r,!0,e.isFeatureEnabled("DefaultFormatInSpan")),d=[[]],c=0;c<u.length;c++){var f=u[c].getStartNode(),p=(0,i.createVListFromRegion)(r,!0,f);if(p){for(;u[c+1]&&p.contains(u[c+1].getStartNode());)c++;var h=e.isFeatureEnabled("TabKeyTextFeatures");if(h&&l(p,f)&&s(t,e,f)){var g=e.getBlockElementAtNode(p.rootList);d.push([g])}else 1==t?p.setIndentation(o,a,t,!1,h):p.setIndentation(o,a,t),p.writeBack(e.isFeatureEnabled("ReuseAllAncestorListElements")),d.push([])}else d[d.length-1].push(u[c])}d.forEach((function(e){return n(r,e)}))}),(function(){var n=e.getSelectionRangeEx();if(1==n.type&&(0,i.isWholeTableSelected)(new i.VTable(n.table),n.coordinates)){if(1==t){var r=e.getElementAtCursor("blockquote",n.table);(0,i.unwrap)(r)}else 0==t&&(0,i.wrap)(n.table,2);return!1}return!0}),"setIndentation")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41),o=n(0);t.default=function(e,t,n){function i(e,n){switch(t){case"lowercase":return e.toLocaleLowerCase(n);case"uppercase":return e.toLocaleUpperCase(n);case"capitalize":for(var r=e.toLocaleLowerCase(n).split(" "),o=0;o<r.length;o++)r[o]=r[o].charAt(0).toLocaleUpperCase(n)+r[o].slice(1);return r.join(" ");case"sentence":var i=new RegExp("^\\s*\\w|[\\.\\!\\?]\\s+\\w","g");return e.toLocaleLowerCase(n).replace(i,(function(e){return e.toLocaleUpperCase(n)}))}}(0,r.default)(e,(function(e){for(var t=(0,o.getFirstLeafNode)(e);t;t=(0,o.getNextLeafSibling)(e,t))if(3==t.nodeType)try{t.textContent=i(t.textContent,n)}catch(e){t.textContent=i(t.textContent,void 0)}}),"changeCapitalization")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(60);t.default=function(e,t,n){(0,r.default)(e,2,void 0,!1,void 0,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(60);t.default=function(e,t,n,o){(0,r.default)(e,1,t,void 0,n,void 0,o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t,n){void 0===n&&(n=1),(0,r.default)(e,(function(){e.focus();var r=e.getSelectedRegions();if(r[0]){var i=(0,o.createVListFromRegion)(r[0],!1,t);i&&(i.split(t,n),i.writeBack(e.isFeatureEnabled("ReuseAllAncestorListElements")))}}),"setOrderedListNumbering")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(108),o=n(0),i=function(e){e.style.borderLeft="3px solid",e.style.borderColor="#C8C8C8",e.style.paddingLeft="10px",e.style.color="#666666"};t.default=function(e,t){(0,r.default)(e,(function(e){var n=(0,o.wrap)(e,"blockquote");(t||i)(n)}),(function(){return 0==e.queryElements("blockquote",1,o.unwrap).length}),"toggleBlockQuote")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(108),o=n(0);t.default=function(e,t){(0,r.default)(e,(function(e){var n=(0,o.wrap)(e,"code"),r=(0,o.wrap)(n,"pre");null==t||t(r)}),(function(){return 0==e.queryElements("pre>code",1,(function(e){if(!e.previousSibling&&!e.nextSibling){var t=e.parentNode;(0,o.unwrap)(e),(0,o.unwrap)(t)}})).length}),"toggleCodeBlock")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.default=function(e){(0,r.default)(e,"strikeThrough","toggleStrikethrough")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.default=function(e){(0,r.default)(e,"subscript","toggleSubscript")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.default=function(e){(0,r.default)(e,"superscript","toggleSuperscript")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t){t=Math.min(Math.max(Math.round(t),0),6),(0,r.default)(e,(function(){e.focus();var n=!1;if(e.queryElements("H1,H2,H3,H4,H5,H6",1,(function(t){n||(e.getDocument().execCommand("formatBlock",!1,"<DIV>"),n=!0);var r=e.getDocument().createElement("div");(0,o.moveChildNodes)(r,t),e.replaceNode(t,r)})),t>0){for(var r=e.getSelectionTraverser(),i=r?r.currentBlockElement:null,a=new o.HtmlSanitizer({cssStyleCallbacks:{"font-size":function(){return!1}}});i;){var l=i.collapseToSingleElement();a.sanitize(l),i=r.getNextBlockElement()}e.getDocument().execCommand("formatBlock",!1,"<H"+t+">")}}),"toggleHeader")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t){e.focus(),(0,r.default)(e,(function(){e.getSelectedRegions().forEach((function(n){(0,o.safeInstanceOf)(n.rootNode,"HTMLTableCellElement")&&((0,o.setColor)(n.rootNode,t,!0,e.isDarkMode(),!0),(0,o.saveTableCellMetadata)(n.rootNode,{bgColorOverride:!0}))}))}),"applyCellShading")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CursorFeatures=void 0;var r=n(0),o={keys:[37,39],allowFunctionKeys:!0,shouldHandleEvent:function(e,t,n){var o,i;if(!(n&&(o=t.getSelectionRange())&&o.collapsed&&(i=r.Position.getStart(o))&&t.isPositionAtBeginning(i)))return!1;var a="rtl"==(0,r.getComputedStyle)(i.element,"direction"),l=e.rawEvent;return!a&&37==l.which||a&&39==l.which},handleEvent:function(e){e.rawEvent.preventDefault()},defaultDisabled:!r.Browser.isChrome};t.CursorFeatures={noCycleCursorMove:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntityFeatures=void 0;var r=n(0),o={keys:[13],shouldHandleEvent:function(e,t){return a(e,t)},handleEvent:function(e,t){a(e,t,1)}},i={keys:[27],shouldHandleEvent:function(e,t){return a(e,t)},handleEvent:function(e,t){a(e,t,3)}};function a(e,t,n){var o=(0,r.cacheGetEventData)(e,"READONLY_ENTITY_ELEMENT",(function(){var n=e.rawEvent.target,o=n&&t.getElementAtCursor((0,r.getEntitySelector)(),n);return o&&!o.isContentEditable?o:null}));return o&&void 0!==n&&t.triggerPluginEvent(15,{operation:n,rawEvent:e.rawEvent,entity:(0,r.getEntityFromElement)(o)}),o}var l={keys:[13],shouldHandleEvent:function(e,t){return d(e,t,!0,!1)},handleEvent:function(e,t){var n;e.rawEvent.preventDefault();var o=t.getSelectionRange(),i=r.Position.getEnd(o).normalize().node,a=t.getDocument().createElement("BR");i.parentNode.insertBefore(a,i.nextSibling);var l,s=t.getBlockElementAtNode(i);s&&(l=s.collapseToSingleElement(),null===(n=a.parentNode)||void 0===n||n.removeChild(a)),t.getSelectionRange().deleteContents(),l.nextSibling&&t.select(l.nextSibling,0)}},s={keys:[8],shouldHandleEvent:function(e,t){return d(e,t,!1,!0)},handleEvent:function(e,t){d(e,t,!1,!0,5)}},u={keys:[46],shouldHandleEvent:function(e,t){return d(e,t,!0,!0)},handleEvent:function(e,t){d(e,t,!0,!0,4)}};function d(e,t,n,o,i){var a=(0,r.cacheGetEventData)(e,"NEIGHBOR_ENTITY_ELEMENT_"+n+"_"+o,(function(){var e=t.getSelectionRange();if(!e||o&&!e.collapsed)return null;e.commonAncestorContainer.normalize();var i=r.Position.getEnd(e).normalize(),a=null;if(0==i.offset||i.isAtEnd){var l=t.getBodyTraverser(i.node),s=n?0==i.offset?l.currentInlineElement:l.getNextInlineElement():i.isAtEnd?l.currentInlineElement:l.getPreviousInlineElement(),u=s&&s.getContainerNode();if(!o){var d=t.getBlockElementAtNode(i.node);d&&d.contains(u)||(u=null)}a=u&&t.getElementAtCursor((0,r.getEntitySelector)(),u)}return a}));return a&&void 0!==i&&t.triggerPluginEvent(15,{operation:i,rawEvent:e.rawEvent,entity:(0,r.getEntityFromElement)(a)}),a}t.EntityFeatures={clickOnEntity:o,escapeFromEntity:i,enterBeforeReadonlyEntity:l,backspaceAfterEntity:s,deleteBeforeEntity:u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListFeatures=void 0;var r=n(246),o=n(247),i=n(9),a=n(0),l=(0,a.createObjectDefinition)({orderedStyleType:(0,a.createNumberDefinition)(!0,void 0,1,20),unorderedStyleType:(0,a.createNumberDefinition)(!0,void 0,1,9)},!0,!0),s=function(e){return function(t,n){var r=t.rawEvent,o=r.keyCode,i=r.altKey,a=r.shiftKey,l=r.ctrlKey,s=r.metaKey;return!l&&!s&&(9===o?!i&&a===!e:a&&i&&o===(e?39:37))&&P(t,n)}},u=function(e){return function(t,n){var r=9!==t.rawEvent.keyCode&&"rtl"==(0,a.getComputedStyle)(n.getElementAtCursor(),"direction");(0,i.setIndentation)(n,r==e?1:0),t.rawEvent.preventDefault()}},d={keys:[9,39],shouldHandleEvent:s(!0),handleEvent:u(!0),allowFunctionKeys:!0},c={keys:[9,37],shouldHandleEvent:s(!1),handleEvent:u(!1),allowFunctionKeys:!0},f={keys:[8],shouldHandleEvent:function(e,t){var n=t.getElementAtCursor("LI",null,e),r=t.getSelectionRange();return n&&(null==r?void 0:r.collapsed)&&(0,a.isPositionAtBeginningOf)(a.Position.getStart(r),n)},handleEvent:function(e,t){var n=t.getElementAtCursor("LI",null,e);n.previousSibling?(0,i.blockFormat)(t,(function(r,o,i){var l=(0,a.createVListFromRegion)(r,!1,n);l.setIndentation(o,i,1,!0),l.writeBack(t.isFeatureEnabled("ReuseAllAncestorListElements")),e.rawEvent.preventDefault()})):O(e,t)},defaultDisabled:!0},p={keys:[8],shouldHandleEvent:function(e,t){var n=t.getElementAtCursor("LI",null,e);return n&&(0,a.isNodeEmpty)(n)&&!n.previousSibling&&!n.getElementsByTagName("blockquote").length},handleEvent:O},h={keys:[46],shouldHandleEvent:function(e,t){if(t.getElementAtCursor("LI",null,e))return!1;var n=a.Position.getEnd(t.getSelectionRange()).isAtEnd?function(e,t){return(0,a.cacheGetEventData)(e,"nextSibling",(function(){var e,n=t.getSelectionRange(),r=a.Position.getEnd(n).normalize(),o=t.getBodyTraverser(r.node);return null===(e=null==o?void 0:o.getNextBlockElement())||void 0===e?void 0:e.getStartNode()}))}(e,t):null;return t.getElementAtCursor("LI",n,e)},handleEvent:function(e,t){var n=w(t);t.runAsync((function(e){return(0,i.commitListChains)(e,n)}))}},g={keys:[13],shouldHandleEvent:function(e,t){var n=t.getElementAtCursor("LI",null,e);return!e.rawEvent.shiftKey&&n&&(0,a.isNodeEmpty)(n)},handleEvent:function(e,t){t.addUndoSnapshot((function(){return O(e,t,!1)}),null,!0)},defaultDisabled:!a.Browser.isIE&&!a.Browser.isChrome};function v(e){return/^(\*|-|[0-9]{1,2}\.|[0-9]{1,2}\>|[0-9]{1,2}\)|[0-9]{1,2}\-|\([0-9]{1,2}\))$/.test(e)}var m={keys:[32],shouldHandleEvent:function(e,t){if(!P(e,t)&&!t.isFeatureEnabled("AutoFormatList")){var n=t.getContentSearcherOfCursor(e);return v(n.getSubStringBefore(4))&&!n.getNearestNonTextInlineElement()}return!1},handleEvent:function(e,t){t.insertContent("&nbsp;"),e.rawEvent.preventDefault(),t.addUndoSnapshot((function(){var e,n,r=t.getContentSearcherOfCursor(),o=r.getSubStringBefore(4),a=r.getRangeFromText(o,!0);if(a){if(0==o.indexOf("*")||0==o.indexOf("-"))T(t,a),(0,i.toggleBullet)(t);else if(v(o))T(t,a),(0,i.toggleNumbering)(t);else if((n=t.getSelectedRegions())&&1==n.length){var l=parseInt(o);T(t,a),(0,i.toggleNumbering)(t,l)}}else;null===(e=r.getRangeFromText(o,!0))||void 0===e||e.deleteContents()}),null,!0)}},b={keys:[32],shouldHandleEvent:function(e,t){return!(P(e,t)||!t.isFeatureEnabled("AutoFormatList"))&&_(e,t,r.default,2)},handleEvent:function(e,t){t.insertContent("&nbsp;"),e.rawEvent.preventDefault(),t.addUndoSnapshot((function(){var e,n=t.getContentSearcherOfCursor(),o=n.getSubStringBefore(5),a=n.getRangeFromText(o,!0),l=(0,r.default)(o);a&&(T(t,a),(0,i.toggleBullet)(t,l,"autoToggleList")),null===(e=n.getRangeFromText(o,!0))||void 0===e||e.deleteContents()}),null,!0)}},y={keys:[32],shouldHandleEvent:function(e,t){return!(P(e,t)||!t.isFeatureEnabled("AutoFormatList"))&&_(e,t,o.default,1)},handleEvent:function(e,t){t.insertContent("&nbsp;"),e.rawEvent.preventDefault(),t.addUndoSnapshot((function(){var e,n=t.getContentSearcherOfCursor(),r=n.getSubStringBefore(5),a=n.getRangeFromText(r,!0);if(a){var l=E(r)?1:parseInt(r),s=C(t,a),u=(0,o.default)(r);T(t,a),(0,i.toggleNumbering)(t,s&&1!==l?void 0:l,u,"autoToggleList")}null===(e=n.getRangeFromText(r,!0))||void 0===e||e.deleteContents()}),null,!0)}},C=function(e,t){var n=e.getBodyTraverser(null==t?void 0:t.startContainer).getPreviousBlockElement(),r=null==n?void 0:n.getEndNode();return"LI"===(0,a.getTagOfNode)(r)?r:void 0},E=function(e){var t=parseInt(e);if(t&&1===t)return 1;var n=e.replace(/\(|\)|\-|\./g,"").trim();return 1===n.length&&["i","a","I","A"].indexOf(n)>-1?1:void 0},S={keys:[13,9,46,8,258],shouldHandleEvent:function(e,t){return t.queryElements("li",1).filter((function(e){return!e.getElementsByTagName("blockquote").length})).length>0},handleEvent:function(e,t){var n=w(t);t.runAsync((function(e){return(0,i.commitListChains)(e,n)}))}};function w(e){return a.VListChain.createListChains(e.getSelectedRegions())}function T(e,t){var n=e.getBlockElementAtNode(t.startContainer),r=null==n?void 0:n.getEndNode();if(r&&"BR"!=(0,a.getTagOfNode)(r)){var o=e.getDocument().createElement("BR");(0,a.isBlockElement)(r)?r.appendChild(o):r.parentNode.insertBefore(o,r.nextSibling),e.select(t.startContainer,t.startOffset)}}function O(e,t,n){void 0===n&&(n=!0);var r=P(e,t);if(r){var o=r[0],l=(0,a.getTagOfNode)(o);"UL"!=l&&"OL"!=l||(0,i.toggleListType)(t,"UL"==l?2:1,null,n),t.focus(),e.rawEvent.preventDefault()}}function P(e,t){var n=t.getElementAtCursor("LI,TABLE",null,e),r=n&&"LI"==(0,a.getTagOfNode)(n)&&t.getElementAtCursor("UL,OL",n);return r?[r,n]:null}function _(e,t,n,r){var o=t.getContentSearcherOfCursor(e),i=o.getSubStringBefore(4),s=/\s/g.test(i),u=w(t),d=function(e,t,n){var r=1===n?"orderedStyleType":"unorderedStyleType",o=C(e,t),i=o?(0,a.findClosestElementAncestor)(o,void 0,1===n?"ol":"ul"):null,s=i?(0,a.getMetadata)(i,l):null;return s?s[r]:null}(t,o.getRangeFromText(i,!0),r),c=E(i),f=n(i,u,d),p=c||!d||d===f||2===r;return!s&&!o.getNearestNonTextInlineElement()&&f&&p}var M={keys:[8],shouldHandleEvent:function(e,t){var n,r,o=t.getElementAtCursor();if(o){var i=null===(n=t.getBlockElementAtNode(o))||void 0===n?void 0:n.getStartNode(),l=null!==(r=null==i?void 0:i.previousElementSibling)&&void 0!==r?r:null;if(x(l)){var s=t.getSelectionRange(),u=t.getContentSearcherOfCursor(e),d=null==u?void 0:u.getSubStringBefore(4),c=null==u?void 0:u.getNearestNonTextInlineElement();if(s&&s.collapsed&&""===d&&!c){var f=null==i?void 0:i.nextElementSibling,p=x(f)?f:null==f?void 0:f.firstChild;if(x(p)&&(0,a.getTagOfNode)(l)==(0,a.getTagOfNode)(p)){var h=(0,a.cacheGetEventData)(e,"previousBlock",(function(){return l})),g=(0,a.cacheGetEventData)(e,"nextBlock",(function(){return p}));return!!h&&!!g}}}}return!1},handleEvent:function(e,t){t.runAsync((function(t){var n=(0,a.cacheGetEventData)(e,"previousBlock",(function(){return null})),r=(0,a.cacheGetEventData)(e,"nextBlock",(function(){return null})),o=t.getSelectionRange();if(n&&r&&o){var i=new a.VList(n);i.mergeVList(new a.VList(r));var l=t.getDocument().createElement("span");l.id="restoreRange",o.insertNode(l),i.writeBack(),(l=t.queryElements("#restoreRange")[0]).parentElement&&(t.select(new a.Position(l,-3)),l.parentElement.removeChild(l))}}))}};function x(e){return!!e&&((0,a.safeInstanceOf)(e,"HTMLOListElement")||(0,a.safeInstanceOf)(e,"HTMLUListElement"))}t.ListFeatures={autoBullet:m,indentWhenTab:d,outdentWhenShiftTab:c,outdentWhenBackspaceOnEmptyFirstLine:p,outdentWhenEnterOnEmptyLine:g,mergeInNewLineWhenBackspaceOnFirstChar:f,maintainListChain:S,maintainListChainWhenDelete:h,autoNumberingList:y,autoBulletList:b,mergeListOnBackspaceAfterList:M}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={"*":1,"-":2,"--":3,"->":5,"--\x3e":8,"=>":6,">":4,"—":7};t.default=function(e){var t=e.trim();return r[t]||null}},function(e,t,n){"use strict";var r,o,i,a,l,s;Object.defineProperty(t,"__esModule",{value:!0});var u={".":1,"-":2,")":3},d=[13,16,15,14],c=[17,20,19,18],f=["1","a","A","I","i"],p=["i","v","x","l","c","d","m"],h=["I","V","X","L","C","D","M"],g=((r={})[1]=function(e){return C[e]||null},r[2]=function(e){return y[e]||null},r[3]=function(e){return b[e]||null},r[4]=function(e){return m[e]||null},r[5]=function(e){return v[e]||null},r),v=((o={})[1]=17,o[2]=20,o[3]=18,o[4]=19,o),m=((i={})[1]=13,i[2]=16,i[3]=14,i[4]=15,i),b=((a={})[1]=9,a[2]=12,a[3]=10,a[4]=11,a),y=((l={})[1]=5,l[2]=8,l[3]=6,l[4]=7,l),C=((s={})[1]=1,s[2]=2,s[3]=3,s[4]=4,s),E=function(e,t,n){var r=t?4:u[e[e.length-1]];if(r){var o=function(e,t){if(!isNaN(parseInt(e)))return 1;if(/[a-z]+/g.test(e)){if(d.indexOf(t)>-1&&p.indexOf(e[0])>-1||!t&&"i"===e)return 4;if(t||!t&&"a"===e)return 2}else if(/[A-Z]+/g.test(e)){if(c.indexOf(t)>-1&&h.indexOf(e[0])>-1||!t&&"I"===e)return 5;if(t||!t&&"A"===e)return 3}}(t?e.slice(1,-1):e.slice(0,-1),n);return o?g[o](r):null}return null};t.default=function(e,t,n){var r,o=e.trim(),i=o[o.length-2],a=parseInt(i);if(t&&a>1&&(t.length<1&&f.indexOf(i)<0||(null==t?void 0:t.length)>0&&!(null===(r=t[t.length-1])||void 0===r?void 0:r.canAppendAtCursor(a))))return null;var l="("===o[0]&&")"===o[o.length-1];return function(e,t){var n=t?e.slice(1,-1):e.slice(0,-1);return Number(n)||/^[A-Za-z\s]*$/.test(n)}(o,l)?E(o,l,n):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownFeatures=void 0;var r=n(0);function o(e,t,n,o){return{keys:[e],shouldHandleEvent:function(e,n){return e.rawEvent.shiftKey===o&&!!i(e,n,t)},handleEvent:function(e,o){o.runAsync((function(o){!function(e,t,n,o){t.addUndoSnapshot((function(){var a=i(e,t,n),l=new r.Position(a.endContainer,-1),s=a.endOffset+1<=l.offset;if(a&&s){var u=a.cloneRange();u.setStart(u.startContainer,u.startOffset+1);var d=u.extractContents().textContent,c=t.getDocument().createTextNode(d),f=(0,r.wrap)(c,o);a.setEnd(a.endContainer,a.endOffset+1),a.deleteContents();var p=t.getDocument().createTextNode("​");a.insertNode(p),a.insertNode(f),t.select(p,-1)}}),"Format",!0)}(e,o,t,n)}))}}}function i(e,t,n){return(0,r.cacheGetEventData)(e,"MARKDOWN_RANGE",(function(){var o,i,a=t.getContentSearcherOfCursor(e);return null==a||a.forEachTextInlineElement((function(e){if(i&&o)return!0;var t=e.getTextContent();if(0==t[t.length-1].trim().length)return!1;var r=e.getParentBlock().getTextContent();if(r[r.length-1].trim()===n)return!1;if(i||(i=e.getStartPosition().move(t.length)),t[0]==n)o=e.getStartPosition();else for(var a=t.length-1;a>0;a--){if(o)return!0;if(t[a]==n&&0==t[a-1].trim().length)return o=e.getStartPosition().move(a),!0}})),!!o&&!!i&&(0,r.createRange)(o,i)}))}var a=o(56,"*","b",!0),l=o(189,"_","i",!0),s=o(192,"~","s",!0),u=o(192,"`","code",!1);t.MarkdownFeatures={markdownBold:a,markdownItalic:l,markdownStrikethru:s,markdownInlineCode:u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteFeatures=void 0;var r=n(9),o=n(0),i="BLOCKQUOTE",a=[i,"LI","TD","TH"].join(","),l={keys:[8],shouldHandleEvent:function(e,t){var n=u(e,t);return n&&(0,o.isNodeEmpty)(n)&&!n.previousSibling},handleEvent:d},s={keys:[13],shouldHandleEvent:function(e,t){var n=u(e,t);return!e.rawEvent.shiftKey&&n&&(0,o.isNodeEmpty)(n)},handleEvent:function(e,t){return t.addUndoSnapshot((function(){return d(e,t)}),null,!0)}};function u(e,t){return(0,o.cacheGetEventData)(e,"QUOTE_CHILD",(function(){var e=t.getElementAtCursor(a);if(e&&(0,o.getTagOfNode)(e)==i){var n=t.getFocusedPosition(),r=n&&t.getBlockElementAtNode(n.normalize().node);if(r){var l=r.getStartNode()==e?r.getStartNode():r.collapseToSingleElement();return(0,o.isNodeEmpty)(l)?l:null}}return null}))}function d(e,t){t.addUndoSnapshot((function(){var n,a,l=u(e,t);(0,o.getTagOfNode)(l)==i&&(l=(0,o.wrap)((0,o.toArray)(l.childNodes))),n=(0,o.splitBalancedNodeRange)(l),a=c(n);var s=(0,o.unwrap)(n);t.select(l,0),a&&((0,o.safeInstanceOf)(s,"HTMLLIElement")&&s.style.removeProperty("color"),(0,r.clearFormat)(t))})),e.rawEvent.preventDefault()}var c=function(e){return!!(e&&(0,o.safeInstanceOf)(e,"HTMLQuoteElement")&&e.style.borderLeft&&e.style.borderColor&&e.style.paddingLeft&&e.style.color)};t.QuoteFeatures={unquoteWhenBackspaceOnEmptyFirstLine:l,unquoteWhenEnterOnEmptyLine:s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShortcutFeatures=void 0;var r=n(0),o=n(9);function i(e,t,n,r){return void 0===r&&(r=!1),r?null:{winKey:e,macKey:t,action:n}}var a=[i(4162,8258,o.toggleBold),i(4169,8265,o.toggleItalic),i(4181,8277,o.toggleUnderline),i(4128,8224,o.clearFormat),i(4186,8282,(function(e){return e.undo()})),i(26,26,(function(e){return e.undo()}),r.Browser.isMac),i(4185,24666,(function(e){return e.redo()})),i(4286,8382,o.toggleBullet),i(4287,8383,o.toggleNumbering),i(20670,24766,(function(e){return(0,o.changeFontSize)(e,0)})),i(20668,24764,(function(e){return(0,o.changeFontSize)(e,1)}))].filter((function(e){return!!e})),l={allowFunctionKeys:!0,keys:[66,73,85,89,90,188,190,191,32,8],shouldHandleEvent:s,handleEvent:function(e,t){var n=s(e);n&&(n.action(t),e.rawEvent.preventDefault(),e.rawEvent.stopPropagation())}};function s(e){return(0,r.cacheGetEventData)(e,"DEFAULT_SHORT_COMMAND",(function(){var t=e.rawEvent,n=0!=e.eventType||t.getModifierState("AltGraph")?0:t.which|(t.metaKey&&8192)|(t.shiftKey&&16384)|(t.ctrlKey&&4096)|(t.altKey&&18);return n&&a.filter((function(e){return(r.Browser.isMac?e.macKey:e.winKey)==n}))[0]}))}t.ShortcutFeatures={defaultShortcut:l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructuredNodeFeatures=void 0;var r=n(0),o={TD:"TABLE",TH:"TABLE",LI:"OL,UL"},i=(0,r.getObjectKeys)(o).join(","),a={keys:[13],shouldHandleEvent:l,handleEvent:function(e,t){var n=l(e,t),o=(0,r.createElement)(1,t.getDocument());t.addUndoSnapshot((function(){n.parentNode.insertBefore(o,n),"TABLE"==(0,r.getTagOfNode)(n)&&t.select(new r.Position(o,0).normalize())})),e.rawEvent.preventDefault()},defaultDisabled:!0};function l(e,t){return(0,r.cacheGetEventData)(e,"FIRST_STRUCTURE",(function(){var n=e.rawEvent.shiftKey?null:t.getElementAtCursor(i);if(n){var a=t.getSelectionRange();if(a&&a.collapsed&&(0,r.isPositionAtBeginningOf)(r.Position.getStart(a),n)&&!t.getBodyTraverser(n).getPreviousBlockElement())return t.getElementAtCursor(o[(0,r.getTagOfNode)(n)])}return null}))}t.StructuredNodeFeatures={insertLineBeforeStructuredNodeFeature:a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableFeatures=void 0;var r=n(9),o=n(0),i={keys:[9],shouldHandleEvent:function(e,t){return s(e,t)&&!u(e,t)},handleEvent:function(e,t){for(var n=e.rawEvent.shiftKey,o=d(e,s(e,t)),i=n?-1:1,a=o.row,l=o.col+i;;l+=i){if(l<0||l>=o.cells[a].length){if((a+=i)<0){t.select(o.table,-2);break}if(a>=o.cells.length){(0,r.editTable)(t,1);break}l=n?o.cells[a].length-1:0}var u=o.getCell(a,l);if(u.td){t.select(u.td,0);break}}e.rawEvent.preventDefault()}},a={keys:[9],shouldHandleEvent:function(e,t){return s(e,t)&&u(e,t)},handleEvent:function(e,t){e.rawEvent.preventDefault(),t.addUndoSnapshot((function(){var n=e.rawEvent.shiftKey,o=t.getSelectionRangeEx(),i=s(e,t),a=d(e,i);n&&t.getElementAtCursor("blockquote",a.table,e)?(0,r.setIndentation)(t,1):n||(0,r.setIndentation)(t,0),t.select(o.table,o.coordinates)}))}},l={keys:[38,40],shouldHandleEvent:function(e,t){return s(e,t)&&!u(e,t)},handleEvent:function(e,t){var n,r=s(e,t),i=new o.VTable(r),a=38==e.rawEvent.which,l=a?-1:1,u=e.rawEvent.shiftKey,d=null===(n=t.getDocument().defaultView)||void 0===n?void 0:n.getSelection(),c=null;if(d){for(var f=d.anchorNode,p=d.anchorOffset,h=i.row;h>=0&&h<i.cells.length;h+=l){var g=i.getCell(h,i.col);if(g.td&&g.td!=r){c=g.td;break}}t.runAsync((function(e){var t,n=e.getElementAtCursor();if((0,o.contains)(i.table,n)&&!(0,o.contains)(r,n,!0)){var l=c?new o.Position(c,0):new o.Position(i.table,a?-2:-3);if(u){l=1==l.node.nodeType&&(0,o.isVoidHtmlElement)(l.node)?new o.Position(l.node,l.isAtEnd?-3:-2):l;var s=null===(t=e.getDocument().defaultView)||void 0===t?void 0:t.getSelection();null==s||s.setBaseAndExtent(f,p,l.node,l.offset)}else e.select(l)}}))}},defaultDisabled:!o.Browser.isChrome&&!o.Browser.isSafari};function s(e,t){return(0,o.cacheGetEventData)(e,"TABLE_CELL_FOR_TABLE_FEATURES",(function(){var e=t.getFocusedPosition(),n=e&&t.getElementAtCursor("TD,TH,LI",e.node);return n&&("LI"==(0,o.getTagOfNode)(n)?null:n)}))}function u(e,t){return(0,o.cacheGetEventData)(e,"WHOLE_TABLE_SELECTED_FOR_FEATURES",(function(){var n=s(e,t),r=d(e,n),i=t.getSelectionRangeEx();return 1==i.type&&(0,o.isWholeTableSelected)(r,i.coordinates)}))}function d(e,t){return(0,o.cacheGetEventData)(e,"VTABLE_FOR_TABLE_FEATURES",(function(){return new o.VTable(t)}))}t.TableFeatures={tabInTable:i,upDownInTable:l,indentTableOnTab:a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextFeatures=void 0;var r=n(9),o=n(0),i={keys:[9],shouldHandleEvent:function(e,t){if(t.isFeatureEnabled("TabKeyTextFeatures")&&!e.rawEvent.shiftKey){var n=t.getDocument().activeElement,r=t.getElementAtCursor("LI,TABLE",null,e),i=t.getElementAtCursor((0,o.getEntitySelector)(),void 0,e);return!r&&(i?i.isContentEditable:n.isContentEditable)}return!1},handleEvent:function(e,t){var n=t.getSelectionRangeEx();0==n.type&&(t.addUndoSnapshot((function(){if(n.areAllCollapsed)u(t,e);else{var i=n.ranges,a=i[0];if(l(t,a))(0,r.setIndentation)(t,0);else{var s=(0,o.createRange)(a.startContainer,a.startOffset);i.forEach((function(e){return e.deleteContents()})),t.select(s),u(t,e)}}})),e.rawEvent.preventDefault())}},a={keys:[9],shouldHandleEvent:function(e,t){if(e.rawEvent.shiftKey&&t.isFeatureEnabled("TabKeyTextFeatures")){var n=t.getSelectionRangeEx();return 0==n.type&&!n.areAllCollapsed&&t.getElementAtCursor("blockquote",null,e)&&!t.getElementAtCursor("LI,TABLE",null,e)&&l(t,n.ranges[0])}return!1},handleEvent:function(e,t){t.addUndoSnapshot((function(){return(0,r.setIndentation)(t,1)})),e.rawEvent.preventDefault()}};function l(e,t){var n=!1,r=o.Position.getStart(t),i=o.Position.getEnd(t),a=e.getBlockElementAtNode(r.node),l=e.getBlockElementAtNode(i.node);if(!a||!l)return!1;if(a.equals(l)){var u=new o.Position(a.getStartNode(),0),d=new o.Position(a.getEndNode(),-1),c=(0,o.createRange)(u,o.Position.getStart(t)),f=(0,o.createRange)(o.Position.getEnd(t),d);return!n&&s(c)&&s(f)&&(n=!0),n}return!0}function s(e){return""==e.toString()&&0==(0,o.queryElements)(e.commonAncestorContainer,"img,table,ul,ol",null,2,e).length}function u(e,t){for(var n,r=e.getDocument().createElement("span"),i=6-e.getContentSearcherOfCursor(t).getSubStringBefore(Number.MAX_SAFE_INTEGER).length%6,a="",l=0;l<i;l++)a+="&ensp;";e.insertNode(r),r.nextElementSibling&&"A"==(0,o.getTagOfNode)(r.nextElementSibling)&&((n=e.getDocument().createElement("span")).textContent=" ",e.insertNode(n),e.select((0,o.createRange)(n,-2))),e.insertContent(a,{position:5,range:(0,o.createRange)(r,0),updateCursor:!1}),e.select((0,o.createRange)(r,-3)),n&&e.deleteNode(n)}t.TextFeatures={indentWhenTabText:i,outdentWhenTabText:a,autoHyphen:{keys:[],shouldHandleEvent:function(e,t){return!1},handleEvent:function(e,t){return!1},defaultDisabled:!0}}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(255),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContextMenu=void 0;var r=n(256);Object.defineProperty(t,"ContextMenu",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e){var t=this;this.options=e,this.container=null,this.editor=null,this.isMenuShowing=!1,this.onDismiss=function(){var e,n;t.container&&t.isMenuShowing&&(null===(n=(e=t.options).dismiss)||void 0===n||n.call(e,t.container),t.isMenuShowing=!1)}}return e.prototype.getName=function(){return"ContextMenu"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){var e;this.onDismiss(),(null===(e=this.container)||void 0===e?void 0:e.parentNode)&&(this.container.parentNode.removeChild(this.container),this.container=null),this.editor=null},e.prototype.onPluginEvent=function(e){if(16==e.eventType&&e.items.length>0){var t=e.rawEvent,n=e.items;this.onDismiss(),this.options.allowDefaultMenu||t.preventDefault(),this.initContainer(t.pageX,t.pageY)&&(this.options.render(this.container,n,this.onDismiss),this.isMenuShowing=!0)}},e.prototype.initContainer=function(e,t){var n,o;return!this.container&&this.editor&&(this.container=(0,r.createElement)(5,this.editor.getDocument()),this.editor.getDocument().body.appendChild(this.container)),null===(n=this.container)||void 0===n||n.style.setProperty("left",e+"px"),null===(o=this.container)||void 0===o||o.style.setProperty("top",t+"px"),!!this.container},e}();t.default=o},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(258),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomReplace=void 0;var r=n(259);Object.defineProperty(t,"CustomReplace",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n,r){return{sourceString:e,replacementHTML:t,matchSourceCaseSensitive:n,shouldReplace:r}},o=[r(":)","🙂",!0),r(";)","😉",!0),r(":O","😲",!0),r(":o","😯",!0),r("<3","❤️",!0)],i=function(){function e(e){void 0===e&&(e=o),this.longestReplacementLength=null,this.editor=null,this.replacements=null,this.replacementEndCharacters=null,this.updateReplacements(e)}return e.prototype.updateReplacements=function(e){var t;this.replacements=e,this.longestReplacementLength=(t=this.replacements,Math.max.apply(null,t.map((function(e){return e.sourceString.length})))),this.replacementEndCharacters=function(e){for(var t=new Set,n=0,r=e;n<r.length;n++){var o=r[n],i=o.sourceString;if(0!=i.length){var a=i[i.length-1];o.matchSourceCaseSensitive?t.add(a):(t.add(a.toLocaleLowerCase()),t.add(a.toLocaleUpperCase()))}}return t}(this.replacements)},e.prototype.getName=function(){return"CustomReplace"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null},e.prototype.onPluginEvent=function(e){var t,n=this;if(3==e.eventType&&this.editor&&!this.editor.isInIME()&&e.rawEvent.data&&(null===(t=this.replacementEndCharacters)||void 0===t?void 0:t.has(e.rawEvent.data))){var r=this.editor.getContentSearcherOfCursor(e);if(r&&null!=this.longestReplacementLength){var o=r.getSubStringBefore(this.longestReplacementLength),i=this.getMatchingReplacement(o);if(i&&(!i.shouldReplace||!r||i.shouldReplace(i,r.getWordBefore(),this.editor))){var a=r.getSubStringBefore(i.sourceString.length),l=r.getRangeFromText(a,!0),s=this.editor.getDocument().createElement("span");s.innerHTML=this.editor.getTrustedHTMLHandler()(i.replacementHTML);var u=1==s.childNodes.length?s.childNodes[0]:s;l&&this.editor.addUndoSnapshot((function(){var e;l.deleteContents(),l.insertNode(u),null===(e=n.editor)||void 0===e||e.select(u,-1)}),void 0,!0)}}}},e.prototype.getMatchingReplacement=function(e){if(0==e.length||!this.replacements)return null;for(var t=e.replace(/\s/g," "),n=t.toLocaleLowerCase(),r=0,o=this.replacements;r<o.length;r++){var i=o[r],a=i.matchSourceCaseSensitive?[t,i.sourceString]:[n,i.sourceString.toLocaleLowerCase()],l=a[0],s=a[1];if(l.substring(l.length-s.length)==s)return i}return null},e}();t.default=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(261),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CutPasteListChain=void 0;var r=n(262);Object.defineProperty(t,"CutPasteListChain",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(0),i=function(){function e(){var e=this;this.chains=null,this.expectedChangeSource=null,this.editor=null,this.disposer=null,this.onDrop=function(){e.cacheListChains("Drop")}}return e.prototype.getName=function(){return"CutPasteListChain"},e.prototype.initialize=function(e){this.editor=e,this.disposer=this.editor.addDomEventHandler("drop",this.onDrop)},e.prototype.dispose=function(){var e;null===(e=this.disposer)||void 0===e||e.call(this),this.disposer=null,this.editor=null},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 9:e.isCut&&this.cacheListChains("Cut");break;case 10:this.cacheListChains("Paste");break;case 7:this.chains&&this.chains.length>0&&this.expectedChangeSource==e.source&&this.editor&&((0,r.commitListChains)(this.editor,this.chains),this.chains=null,this.expectedChangeSource=null)}},e.prototype.cacheListChains=function(e){var t,n=null===(t=this.editor)||void 0===t?void 0:t.getSelectedRegions();n&&(this.chains=o.VListChain.createListChains(n),this.expectedChangeSource=e)},e}();t.default=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(264),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HyperLink=void 0;var r=n(265);Object.defineProperty(t,"HyperLink",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e,t,n){var r=this;void 0===e&&(e=function(e){return e}),this.getTooltipCallback=e,this.target=t,this.onLinkClick=n,this.originalHref=null,this.trackedLink=null,this.editor=null,this.disposer=null,this.onMouse=function(e){var t,n,o=null===(t=r.editor)||void 0===t?void 0:t.getElementAtCursor("a[href]",e.target),i=o&&r.tryGetHref(o);i&&(null===(n=r.editor)||void 0===n||n.setEditorDomAttribute("title","mouseover"==e.type?r.getTooltipCallback(i,o):null))},this.onBlur=function(e){r.trackedLink&&r.updateLinkHrefIfShouldUpdate(),r.resetLinkTracking()}}return e.prototype.getName=function(){return"Hyperlink"},e.prototype.initialize=function(e){this.editor=e,this.disposer=e.addDomEventHandler({mouseover:this.onMouse,mouseout:this.onMouse,blur:this.onBlur})},e.prototype.dispose=function(){this.disposer&&(this.disposer(),this.disposer=null),this.editor=null},e.prototype.onPluginEvent=function(e){var t,n,o;if(6==e.eventType||2==e.eventType&&(!this.isContentEditValue(e.rawEvent)||32==e.rawEvent.which)||7==e.eventType){var i,a=(i=null===(t=this.editor)||void 0===t?void 0:t.getElementAtCursor("A[href]",void 0,e))&&i!==this.trackedLink||2==e.eventType||7==e.eventType;this.trackedLink&&(a||this.tryGetHref(this.trackedLink)!==this.originalHref)&&(a&&this.updateLinkHrefIfShouldUpdate(),this.resetLinkTracking()),!this.trackedLink&&i&&this.doesLinkDisplayMatchHref(i)&&(this.trackedLink=i,this.originalHref=this.tryGetHref(i))}if(6==e.eventType&&(i=null===(n=this.editor)||void 0===n?void 0:n.getElementAtCursor("A",e.rawEvent.srcElement))){if(this.onLinkClick&&!1!==this.onLinkClick(i,e.rawEvent))return;var l;if((l=this.tryGetHref(i))&&(0,r.isCtrlOrMetaPressed)(e.rawEvent)&&0===e.rawEvent.button){e.rawEvent.preventDefault();try{var s=this.target||"_blank",u=null===(o=this.editor)||void 0===o?void 0:o.getDocument().defaultView;null==u||u.open(l,s)}catch(e){}}}},e.prototype.tryGetHref=function(e){try{return e?e.href:null}catch(e){return null}},e.prototype.isContentEditValue=function(e){return(0,r.isCharacterValue)(e)||8==e.which||46==e.which},e.prototype.updateLinkHrefIfShouldUpdate=function(){this.trackedLink&&!this.doesLinkDisplayMatchHref(this.trackedLink)&&this.updateLinkHref()},e.prototype.resetLinkTracking=function(){this.trackedLink=null,this.originalHref=""},e.prototype.doesLinkDisplayMatchHref=function(e){if(e){var t=e.innerText.trim().replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),n=new RegExp("^(?:https?:\\/\\/)?"+t+"\\/?","i"),r=this.tryGetHref(e);if(null!==r)return n.test(r)}return!1},e.prototype.updateLinkHref=function(){var e,t=this;if(this.trackedLink){var n=(0,r.matchLink)(this.trackedLink.innerText.trim());null!==n&&(null===(e=this.editor)||void 0===e||e.addUndoSnapshot((function(){t.trackedLink.href=n.normalizedUrl})))}},e}();t.default=o},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(267),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetImage=t.isResizedTo=t.resizeByPercentage=t.canRegenerateImage=t.ImageEdit=void 0;var r=n(109);Object.defineProperty(t,"ImageEdit",{enumerable:!0,get:function(){return r.default}});var o=n(112);Object.defineProperty(t,"canRegenerateImage",{enumerable:!0,get:function(){return o.default}});var i=n(272);Object.defineProperty(t,"resizeByPercentage",{enumerable:!0,get:function(){return i.default}});var a=n(115);Object.defineProperty(t,"isResizedTo",{enumerable:!0,get:function(){return a.default}});var l=n(273);Object.defineProperty(t,"resetImage",{enumerable:!0,get:function(){return l.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(61);t.default=function(e,t){var n=t.angleRad,o=t.widthPx,i=t.heightPx,a=t.bottomPercent,l=t.leftPercent,s=t.rightPercent,u=t.topPercent,d=t.naturalWidth,c=t.naturalHeight,f=d*(1-l-s),p=c*(1-u-a),h=document.createElement("canvas"),g=(0,r.default)(t),v=g.targetWidth,m=g.targetHeight;h.width=v,h.height=m;var b=h.getContext("2d");return b.translate(v/2,m/2),b.rotate(n),b.drawImage(e,d*l,c*u,f,p,-o/2,-i/2,o,i),h.toDataURL("image/png",1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e){for(var t=e,n=0;t&&"BODY"!==(0,r.getTagOfNode)(t);){(t.style.zIndex||getComputedStyle(t).zIndex)&&(n=parseInt(t.style.zIndex)),t=t.parentElement}return n}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getCropHTML=t.Cropper=void 0;var o=n(113),i=["w","e"],a=["s","n"],l={sw:0,nw:90,ne:180,se:270};function s(e,t,n,r,o){var i=n*(1-r)-o,a=n*e+t;return Math.max(Math.min(a,i),0)/n}function u(){var e=[];return[0,1].forEach((function(t){return[0,1].forEach((function(n){e.push(function(e,t){return{tag:"div",style:"position:absolute;left:"+e+"px;bottom:"+e+"px;"+(0==t?"right:"+e+"px;height:"+(7-2*e)+"px;":"top:"+e+"px;width:"+(7-2*e)+"px;")+";background-color:"+(0==e?"white":"black")}}(t,n))}))})),e}t.Cropper={onDragStart:function(e){var t=e.editInfo;return r({},t)},onDragging:function(e,t,n,r,i){var a,l=e.editInfo,u=e.x,d=e.y,c=e.options;r=(a=(0,o.rotateCoordinate)(r,i,l.angleRad))[0],i=a[1];var f=l.widthPx,p=l.heightPx,h=l.leftPercent,g=l.rightPercent,v=l.topPercent,m=l.bottomPercent,b=c.minWidth,y=c.minHeight,C=1-h-g,E=1-v-m;if(C>0&&E>0){var S=f/C,w=p/E,T="e"!=u?s(n.leftPercent,r,S,g,b):h,O="w"!=u?s(n.rightPercent,-r,S,h,b):g,P="s"!=d?s(n.topPercent,i,w,m,y):v,_="n"!=d?s(n.bottomPercent,-i,w,v,y):m;return l.leftPercent=T,l.rightPercent=O,l.topPercent=P,l.bottomPercent=_,l.widthPx=S*(1-T-O),l.heightPx=w*(1-P-_),!0}return!1}},t.getCropHTML=function(){var e={tag:"div",style:"position:absolute;background-color:rgb(0,0,0,0.5);pointer-events:none",className:"r_cropO"},t={tag:"div",style:"position:absolute;overflow:hidden",className:"r_cropC",children:[]};return i.forEach((function(e){return a.forEach((function(n){return t.children.push(function(e,t){return{tag:"div",className:"r_cropH",style:"position:absolute;pointer-events:auto;cursor:"+t+e+"-resize;"+("w"==e?"left":"right")+":0;"+("n"==t?"top":"bottom")+":0;width:22px;height:22px;transform:rotate("+l[t+e]+"deg)",dataset:{x:e,y:t},children:u()}}(e,n))}))})),[t,e,e,e,e]}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getRotateHTML=t.Rotator=void 0;var o=180/Math.PI;function i(e){var t;return{tag:"svg",namespace:"http://www.w3.org/2000/svg",style:"width:16px;height:16px;margin: 8px 8px",children:[{tag:"path",namespace:"http://www.w3.org/2000/svg",attributes:(t={d:"M 10.5,10.0 A 3.8,3.8 0 1 1 6.7,6.3",transform:"matrix(1.1 1.1 -1.1 1.1 11.6 -10.8)"},t["fill-opacity"]="0",t.stroke=e,t)},{tag:"path",namespace:"http://www.w3.org/2000/svg",attributes:{d:"M12.0 3.648l.884-.884.53 2.298-2.298-.53z",stroke:e}}]}}t.Rotator={onDragStart:function(e){var t=e.editInfo;return r({},t)},onDragging:function(e,t,n,r,i){var a=e.editInfo,l=e.options,s=a.heightPx/2+31,u=s*Math.sin(n.angleRad)+r,d=s*Math.cos(n.angleRad)-i,c=Math.atan2(u,d);if(!t.altKey){var f=c*o;c=Math.round(f/l.minRotateDeg)*l.minRotateDeg/o}return a.angleRad!=c&&(a.angleRad=c,!0)}},t.getRotateHTML=function(e){var t=e.borderColor;return[{tag:"div",className:"r_rotateC",style:"position:absolute;left:50%;width:1px;background-color:"+t+";top:"+"-15px;height:15px;",children:[{tag:"div",className:"r_rotateH",style:"position:absolute;background-color:"+e.rotateHandleBackColor+";border:solid 1px "+t+";border-radius:50%;width:32px;height:32px;left:-16px;cursor:move;top:"+"-32px;",children:[i(t)]}]}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(110),o=n(114),i=n(115),a=n(34);t.default=function(e,t,n,l,s){var u,d,c,f=(0,a.getEditInfoFromImage)(t);(0,i.default)(t,n)||(u=t,d=t.src,c=function(){if(!e.isDisposed()&&e.contains(t)){var i=t.getAttribute("src"),a=(0,o.default)(f,n),u=a.width,d=a.height;f.widthPx=Math.max(u,l),f.heightPx=Math.max(d,s),e.addUndoSnapshot((function(){(0,r.default)(e,t,f,i,!0)}),"ImageResize")}},u.onload=function(){u.onload=null,u.onerror=null,c()},u.onerror=function(){u.onload=null,u.onerror=null,c()},u.src=d)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34);t.default=function(e,t){e.addUndoSnapshot((function(){t.style.width="",t.style.height="",t.style.maxWidth="100%",t.removeAttribute("width"),t.removeAttribute("height"),(0,r.deleteEditInfo)(t)}),"ImageResize")}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(275),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageResize=void 0;var r=n(276);Object.defineProperty(t,"ImageResize",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r,o,i){return void 0===t&&(t=10),void 0===n&&(n=10),void 0===r&&(r="#DB626C"),void 0===o&&(o=!1),void 0===i&&(i="img"),e.call(this,{minHeight:n,minWidth:t,borderColor:r,preserveRatio:o,imageSelector:i})||this}return o(t,e),t.prototype.showResizeHandle=function(e){this.setEditingImage(e,3)},t.prototype.hideResizeHandle=function(e){this.setEditingImage(null,e)},t}(n(109).default);t.default=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(278),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Paste=void 0;var r=n(279);Object.defineProperty(t,"Paste",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(280),o=n(281),i=n(282),a=n(283),l=n(286),s=n(287),u=n(292),d=n(299),c=n(300),f=n(302),p=n(16),h=function(){function e(e,t){void 0===e&&(e="SPAN"),void 0===t&&(t=!1),this.unknownTagReplacement=e,this.convertSingleImageBody=t}return e.prototype.getName=function(){return"Paste"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null},e.prototype.onPluginEvent=function(e){if(10==e.eventType){var t=e.fragment,n=e.sanitizingOption,h=this.editor.getTrustedHTMLHandler();switch((0,u.default)(e,this.convertSingleImageBody)){case 0:(0,s.default)(e);break;case 1:(0,i.default)(e,h);break;case 2:(0,l.default)(e,h);break;case 4:(0,a.default)(t);break;case 3:n.additionalTagReplacements[p.GOOGLE_SHEET_NODE_NAME]="*";break;case 6:(0,r.default)(e,h);break;case 5:(0,o.default)(t),(0,d.default)(t)}(0,f.default)(n),(0,c.default)(n),n.unknownTagReplacement=this.unknownTagReplacement}},e}();t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e,t){var n=e.fragment,o=e.clipboardData,i=o.html,a=o.image;if(i&&a){var l=(new DOMParser).parseFromString(t(i),"text/html");(0,r.moveChildNodes)(n,null==l?void 0:l.body)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);function o(e){if(e&&!e.nextSibling&&["OL","UL","MENU"].indexOf((0,r.getTagOfNode)(e))<0){var t=!1;if((0,r.toArray)(e.childNodes).every((function(e){var n;return!(!(0,r.safeInstanceOf)(e,"Text")||(null===(n=e.nodeValue)||void 0===n?void 0:n.trim()))||"LI"==(0,r.getTagOfNode)(e)&&(t=!0,!0)}))&&t)return!0}return!1}t.default=function(e){o(e)?(0,r.wrap)((0,r.toArray)(e.childNodes),"UL"):(0,r.safeInstanceOf)(e.firstChild,"HTMLElement")&&o(e.firstChild)&&(0,r.changeElementTag)(e.firstChild,"UL")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.excelHandler=void 0;var r=n(0),o=/<\/\s*td\s*>((?!<\/\s*tr\s*>)[\s\S])*$/i,i=/<\/\s*tr\s*>((?!<\/\s*table\s*>)[\s\S])*$/i,a=/<tr[^>]*>[^<]*/i,l=/<table[^>]*>[^<]*/i;function s(e,t){if(e.match(o)){var n=t.match(a);e=(n?n[0]:"<TR>")+e+"</TR>"}if(e.match(i)){var r=t.match(l);e=(r?r[0]:"<TABLE>")+e+"</TABLE>"}return e}t.default=function(e,t){var n=e.fragment,o=e.sanitizingOption,i=e.htmlBefore,a=e.clipboardData,l=s(a.html,i);if(a.html!=l){var u=(new DOMParser).parseFromString(t(l),"text/html");(0,r.moveChildNodes)(n,null==u?void 0:u.body)}(0,r.chainSanitizerCallback)(o.elementCallbacks,"TD",(function(e){return"none"==e.style.borderStyle&&(e.style.border="solid 1px #d4d4d4"),!0}))},t.excelHandler=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16),o=n(284);t.default=function(e){e.querySelectorAll(r.WAC_IDENTIFY_SELECTOR).forEach((function(e){e.style.display=null,e.style.margin=null})),(0,o.isWordOnlineWithList)(e)&&(0,o.default)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWordOnlineWithList=void 0;var r=n(285),o=n(0),i='div.ListContainerWrapper>ul[class^="BulletListStyle"],div.ListContainerWrapper>ol[class^="NumberListStyle"],span.WACImageContainer > img',a=["111","9643","9830"];function l(e,t,n){var r,o=t.createElement(n),i=null===(r=e.firstElementChild)||void 0===r?void 0:r.getAttribute("start");return i&&o.setAttribute("start",i),o}function s(e,t,n){if(e){var r,o=n.insertPositionNode;if(o)(r=o.parentNode)&&r.insertBefore(e,o);else(r=n.startElement.parentNode)?r.appendChild(e):t.appendChild(e)}}t.isWordOnlineWithList=function(e){return!(!e||!e.querySelector(i))},t.default=function(e){!function(e){(0,o.toArray)(e.querySelectorAll(i)).forEach((function(e){var t=new RegExp("\\bListContainerWrapper\\b","g");if(e.previousSibling){var n=(0,o.splitParentNode)(e,!0);n.className=n.className.replace(t,"")}if(e.nextSibling){var r=(0,o.splitParentNode)(e,!1);r.className=r.className.replace(t,"")}}))}(e),function(e){for(var t,n=e.querySelectorAll(".ListContainerWrapper"),i=[],a=0;a<n.length;a++){var l=n[a];if(t){var s=t.listItemContainers,u=s[s.length-1];l==u.nextSibling||(0,o.getFirstLeafNode)(l)==(0,o.getNextLeafSibling)(u.parentNode,u)?(s.push(l),t.endElement=l):(t.endElement=u,i.push(t),t=(0,r.createListItemBlock)(l))}else t=(0,r.createListItemBlock)(l)}(null==t?void 0:t.listItemContainers.length)>0&&i.push(t);return i}(e).forEach((function(t){var n;!function(e,t){(0,o.collapseNodes)(e,t.startElement,t.endElement,!0).forEach((function(e){"DIV"==(0,o.getTagOfNode)(e.firstChild)&&(0,o.unwrap)(e)}))}(e,t),t.insertPositionNode=t.endElement.nextSibling;var r=e.ownerDocument;t.listItemContainers.forEach((function(i){var u=function(e){var t=(0,o.getTagOfNode)(e.firstChild);return"UL"==t||"OL"==t?t:null}(i);n||(n=l(i,r,u)),(0,o.toArray)(i.querySelectorAll("li")).forEach((function(d){var c=parseInt(d.getAttribute("data-aria-level"));(0,o.getTagOfNode)(n)!=u&&1==c&&(s(n,e,t),n=l(i,r,u)),function(e,t,n,r){var i;if(!n)return;var l=parseInt(null!==(i=t.getAttribute("data-aria-level"))&&void 0!==i?i:""),s=t.getAttribute("data-leveltext");"UL"==n&&s&&a.indexOf(s.charCodeAt(0).toString())>-1&&(t.style.listStyleType='"'+s+' "');var u=e;for(;l>1;){if(u.firstChild){var d=u.lastElementChild,c=(0,o.getTagOfNode)(d);"UL"==c||"OL"==c?u=d:(u.appendChild(r.createElement(n)),u=u.lastElementChild)}else u.appendChild(r.createElement(n)),u=u.firstElementChild;l--}u.appendChild(t)}(n,d,u,r)}))})),s(n,e,t);var i=t.startElement.parentNode;i&&t.listItemContainers.forEach((function(e){i.removeChild(e)}))})),function(e){return e.querySelectorAll(".WACImageContainer")}(e).forEach((function(e){(0,o.safeInstanceOf)(e,"HTMLSpanElement")&&e.childNodes.forEach((function(e){"IMG"!=(0,o.getTagOfNode)(e)&&e.parentElement.removeChild(e)}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createListItemBlock=void 0,t.createListItemBlock=function(e){return void 0===e&&(e=null),{startElement:e,endElement:e,insertPositionNode:null,listItemContainers:e?[e]:[]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e,t){var n=e.fragment,o=e.clipboardData;if(o.html&&!o.text&&o.image){var i=(new DOMParser).parseFromString(t(o.html),"text/html");(0,r.moveChildNodes)(n,null==i?void 0:i.body)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(288),o=n(0),i=n(289),a=n(290),l=n(291),s=/%/;t.default=function(e){var t=e.sanitizingOption,n=e.fragment;(0,o.chainSanitizerCallback)(t.elementCallbacks,"O:P",(function(e){return(0,o.moveChildNodes)(e),e.appendChild(e.ownerDocument.createTextNode(" ")),!0}));var u=(0,i.createWordConverter)(),d=n.querySelectorAll("p,h1,h2,h3,h4,h5,h6");d.length>0&&(u.wordConverterArgs=(0,a.createWordConverterArguments)(d),(0,l.processNodesDiscovery)(u)&&(0,l.processNodeConvert)(u)),["OL","UL"].forEach((function(e){(0,o.chainSanitizerCallback)(t.elementCallbacks,e,(function(e){return"0in"==e.style.marginBottom&&(e.style.marginBottom=""),!0}))})),(0,o.chainSanitizerCallback)(t.cssStyleCallbacks,"line-height",(function(e){var t;return!(s.test(e)&&!isNaN(t=parseInt(e))&&t<120)})),(0,r.default)(t.elementCallbacks,t.cssStyleCallbacks)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o="mso-comment-parent",i="mso-comment-reference",a="mso-comment-date",l=/#_msocom_/,s="mso-comment-continuation",u="mso-comment-done";t.default=function(e,t){(0,r.chainSanitizerCallback)(e,"SPAN",(function(e){var t;return"comment"==(0,r.getStyles)(e)["mso-special-character"]&&(null===(t=e.parentElement)||void 0===t||t.removeChild(e)),!0})),(0,r.chainSanitizerCallback)(e,"A",(function(e){var t;return(0,r.safeInstanceOf)(e,"HTMLAnchorElement")&&l.test(e.href)&&(null===(t=e.parentElement)||void 0===t||t.removeChild(e)),!0})),(0,r.chainSanitizerCallback)(e,"DIV",(function(e){return"comment-list"==(0,r.getStyles)(e)["mso-element"]&&(0,r.moveChildNodes)(e),!0})),[i,a,o,s,u].forEach((function(e){return(0,r.chainSanitizerCallback)(t,e,(function(){return!1}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWordConverter=void 0;var r=n(116);t.createWordConverter=function(){return{nextUniqueId:1,numBulletsConverted:0,numNumberedConverted:0,wordConverterArgs:null,wordCustomData:(0,r.createCustomData)()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWordConverterArguments=void 0;var r=n(117);t.createWordConverterArguments=function(e){return{nodes:e,currentIndex:0,lists:{},listItems:[],currentListIdsByLevels:[(0,r.createLevelLists)()],lastProcessedItem:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processNodeConvert=t.processNodesDiscovery=void 0;var r=n(117),o=n(116),i=n(0),a=/[\n|\r]/gi;function l(e,t,n,r){var a=function e(t,n,r){var o,a=null;1==n?o=p(t):(a=e(t,n-1,null),o=a.lastChild);if(o&&1==o.nodeType){var l=(0,i.getTagOfNode)(o);if("UL"==l||"OL"==l)return o}var s=t.ownerDocument.createElement(r?r.tagName:"UL");1==n?t.parentNode.insertBefore(s,t):a.appendChild(s);return s}(t,n.level,r),l=(0,o.getObject)(e.wordCustomData,a,"UniqueListId");if(l&&l!=n.uniqueListId||!l&&a.firstChild){var s=t.ownerDocument.createElement(r.tagName);a.parentNode.insertBefore(s,a.nextSibling),a=s}return(0,o.setObject)(e.wordCustomData,a,"UniqueListId",n.uniqueListId),function(e,t,n){if(n.tagName!=(0,i.getTagOfNode)(t)){var r=t.ownerDocument.createElement(n.tagName);(0,o.setObject)(e.wordCustomData,r,"UniqueListId",(0,o.getObject)(e.wordCustomData,t,"UniqueListId")),(0,i.moveChildNodes)(r,t),t.parentNode.insertBefore(r,t),t.parentNode.removeChild(t),t=r}return t}(e,a,r)}function s(e,t){for(var n=[],r=e.firstChild;r;r=r.nextSibling)1==r.nodeType&&t>1&&s(r,t-1),(v(r=f(r,!0))||g(r))&&n.push(r);n.forEach((function(t){return e.removeChild(t)}))}function u(e){if(1==e.nodeType){var t=m(e,"mso-list");if(t&&t.length>0)try{var n=t.split(" ");if(3==n.length)return{level:parseInt(n[1].substr("level".length)),wordListId:t,originalNode:e,uniqueListId:0}}catch(e){}}return null}function d(e){return["o","·","§","-"].indexOf(e)>=0}function c(e,t){for(var n=null,r=e.firstChild;!n&&r;)g(r=f(r,!0))?0==(n=r.textContent.trim()).length&&(n="o"):1==r.nodeType&&t>1&&(n=c(r,t-1)),r=r.nextSibling;return n}function f(e,t){if(8==e.nodeType){var n=e.data;if(n&&"[if !supportlists]"==n.trim().toLowerCase()){for(var r=e,o=null,i=0;i<4&&(r=h(r));i++)if(8==r.nodeType&&(n=r.data)&&"[endif]"==n.trim().toLowerCase()){o=r;break}if(o){var a=e.ownerDocument.createElement("span");for(a.setAttribute("style","mso-list: ignore"),r=h(e);r!=o;)r=r.nextSibling,a.appendChild(r.previousSibling);o.parentNode.insertBefore(a,o),t&&(e.parentNode.removeChild(e),o.parentNode.removeChild(o)),e=a}}}return e}function p(e){var t=e;do{t=t.previousSibling}while(t&&b(t));return t}function h(e){var t=e;do{t=t.nextSibling}while(t&&b(t));return t}function g(e){if(1==e.nodeType){var t=m(e,"mso-list");if(t&&t.length>0&&"ignore"==t.trim().toLowerCase())return!0}return!1}function v(e){return"SPAN"==(0,i.getTagOfNode)(e)&&!e.firstChild}function m(e,t){return(0,i.getStyles)(e)[t]||null}function b(e){if(!e)return!0;if(3==e.nodeType){var t=e.nodeValue;return 0==(t=t.replace(a,"")).trim().length}var n=(0,i.getTagOfNode)(e);return e.firstChild==e.lastChild&&("SPAN"==n||"FONT"==n)&&b(e.firstChild)}function y(e){for(var t=0;t<e.currentListIdsByLevels.length;t++){var n=e.currentListIdsByLevels[t];n&&(n.currentUniqueListId=-1)}}t.processNodesDiscovery=function(e){for(var t,n=e.wordConverterArgs;n.currentIndex<n.nodes.length;){var o=n.nodes.item(n.currentIndex),a=u(o);if(a){var l=n.currentListIdsByLevels[a.level-1]||(0,r.createLevelLists)();n.currentListIdsByLevels[a.level-1]=l,n.lastProcessedItem&&p(o)!=n.lastProcessedItem&&y(n);var s=l.listsMetadata[a.wordListId];if(s){if(!s.ignore&&1==s.numberOfItems){var f=c(o,5);s.tagName=s.firstFakeBullet==f?"UL":"OL"}}else{var h=c(o,5);s={numberOfItems:0,uniqueListId:e.nextUniqueId++,firstFakeBullet:h,ignore:!h||0==h.length,tagName:(t=h,d(t)?"UL":"OL")},l.listsMetadata[a.wordListId]=s,n.lists[s.uniqueListId.toString()]=s}a.uniqueListId=s.uniqueListId,s.ignore||"OL"==s.tagName&&s.numberOfItems>0&&l.currentUniqueListId!=a.uniqueListId?(s.ignore=!0,n.currentListIdsByLevels[0].currentUniqueListId=-1,n.currentListIdsByLevels=n.currentListIdsByLevels.slice(0,1)):(n.currentListIdsByLevels.length>a.level&&(n.currentListIdsByLevels=n.currentListIdsByLevels.slice(0,a.level)),l.currentUniqueListId=a.uniqueListId,n.listItems.push(a),s.numberOfItems++),n.lastProcessedItem=o}else{var g=n.lastProcessedItem;g&&p(o)==g&&o.tagName==g.tagName&&o.className==g.className&&(g.appendChild(g.ownerDocument.createElement("br")),g.appendChild(g.ownerDocument.createElement("br")),(0,i.moveChildNodes)(g,o,!0),o.parentNode.removeChild(o))}n.currentIndex++}return n.listItems.length>0},t.processNodeConvert=function(e){var t=e.wordConverterArgs;for(t.currentIndex=0;t.currentIndex<t.listItems.length;){var n=t.listItems[t.currentIndex],r=n.originalNode,o=t.lists[n.uniqueListId.toString()];if(!o.ignore){var a=l(e,r,n,o);if(a){s(r,5);var u=r.ownerDocument.createElement("LI");if((0,i.getTagOfNode)(r).startsWith("H")){var d=r.cloneNode(!0);d.style.textIndent="",d.style.marginLeft="",d.style.marginRight="",u.appendChild(d)}else(0,i.moveChildNodes)(u,r);a.appendChild(u),r.parentNode.removeChild(r),"UL"==o.tagName?e.numBulletsConverted++:e.numNumberedConverted++}}t.currentIndex++}return e.numBulletsConverted>0||e.numNumberedConverted>0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(293),o=n(294),i=n(295),a=n(296),l=n(297),s=n(298),u=new Map([[0,l.default],[1,o.default],[2,a.default],[4,r.default],[3,i.default],[6,s.default]]);t.default=function(e,t){var n=e.htmlAttributes,r=e.clipboardData,o=e.fragment,i=null,a={htmlAttributes:n,fragment:o,shouldConvertSingleImage:t,clipboardData:r};return u.forEach((function(e,t){!i&&e(a)&&(i=t)})),null!=i?i:5}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default=function(e){return!!e.fragment.querySelector(r.WAC_IDENTIFY_SELECTOR)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default=function(e){var t=e.htmlAttributes;return"urn:schemas-microsoft-com:office:excel"==t["xmlns:x"]||"Excel.Sheet"==t[r.PROG_ID_NAME]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default=function(e){return!!e.fragment.querySelector(r.GOOGLE_SHEET_NODE_NAME)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default=function(e){return"PowerPoint.Slide"==e.htmlAttributes[r.PROG_ID_NAME]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default=function(e){var t=e.htmlAttributes;return"urn:schemas-microsoft-com:office:word"==t["xmlns:w"]||"Word.Document"==t[r.PROG_ID_NAME]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){var t,n=e.shouldConvertSingleImage,r=e.clipboardData;return n&&1==(null===(t=r.htmlFirstLevelChildTags)||void 0===t?void 0:t.length)&&"IMG"==r.htmlFirstLevelChildTags[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);function o(e){var t,n,o=e.start,i=e.end;if(o==i&&"DIV"==(0,r.getTagOfNode)(o)){var a=(0,r.changeElementTag)(o,"SPAN");e.start=a,e.end=a,"BR"==(0,r.getTagOfNode)(a.lastChild)&&a.removeChild(a.lastChild)}else if("BR"==(0,r.getTagOfNode)(i)){a=i.ownerDocument.createTextNode("");null===(t=i.parentNode)||void 0===t||t.insertBefore(a,i),e.end=a,null===(n=i.parentNode)||void 0===n||n.removeChild(i)}}function i(e,t,n,o){var i,a,l,s,u=(0,r.getBlockElementAtNode)(e,t.start),d=n?(0,r.getNextLeafSibling)(e,t.end):(0,r.getPreviousLeafSibling)(e,t.start);if(d)if(null==u?void 0:u.contains(d))(c=null===(i=t.start.ownerDocument)||void 0===i?void 0:i.createElement("br"))&&(null===(a=(n?t.end:t.start).parentNode)||void 0===a||a.insertBefore(c,n?t.end.nextSibling:t.start));else if(o&&o.end==o.start&&"SPAN"==(0,r.getTagOfNode)(o.end)){var c,f=(0,r.getPreviousLeafSibling)(e,t.start);if(o.end.contains(f))(c=null===(l=t.start.ownerDocument)||void 0===l?void 0:l.createElement("br"))&&(null===(s=t.start.parentNode)||void 0===s||s.insertBefore(c,t.start))}}t.default=function(e){for(var t=r.ContentTraverser.createBodyTraverser(e),n=[],a=null==t?void 0:t.currentBlockElement;a;a=t.getNextBlockElement())n.push({start:a.getStartNode(),end:a.getEndNode()});if(n.length>0){var l=n.length-1;o(n[0]),o(n[l]),i(e,n[0],!0),i(e,n[l],!1,n[0])}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(301);t.default=function(e){["color","background-color"].forEach((function(t){(0,r.chainSanitizerCallback)(e.cssStyleCallbacks,t,(function(e){return o.DeprecatedColorList.indexOf(e)<0}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeprecatedColorList=void 0,t.DeprecatedColorList=["activeborder","activecaption","appworkspace","background","buttonhighlight","buttonshadow","captiontext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedfhadow","window","windowframe","windowtext"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e){(0,r.chainSanitizerCallback)(e.attributeCallbacks,"href",(function(e,t){return function(e,t){var n;try{n=new URL(e)}catch(e){n=void 0}if(n&&("http:"===n.protocol||"https:"===n.protocol))return e;return t.removeAttribute("href"),""}(e,t)}))}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(304),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PickerPlugin=void 0;var r=n(305);Object.defineProperty(t,"PickerPlugin",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(0),i=o.Browser.isIE?"Esc":"Escape",a=o.Browser.isIE?"Left":"ArrowLeft",l=o.Browser.isIE?"Up":"ArrowUp",s=o.Browser.isIE?"Right":"ArrowRight",u=o.Browser.isIE?"Down":"ArrowDown",d=o.Browser.isIE?"Del":"Delete",c=[0,229],f=function(){function e(e,t){this.dataProvider=e,this.pickerOptions=t,this.isPendingInputEventHandling=!1}return e.prototype.getName=function(){return"Picker"},e.prototype.initialize=function(e){var t=this;this.editor=e,this.dataProvider.onInitalize((function(e){t.editor.focus();var n=t.getWord(null);n&&0!=n.length||!t.lastKnownRange||(t.editor.select(t.lastKnownRange),n=t.getWord(null));t.editor.addUndoSnapshot((function(){n?(0,r.replaceWithNode)(t.editor,n,e,!0):t.editor.insertNode(e),t.setIsSuggesting(!1)}),t.pickerOptions.changeSource,t.pickerOptions.handleAutoComplete)}),(function(e){t.setIsSuggesting(e)}),e)},e.prototype.dispose=function(){this.editor=null,this.isSuggesting=null,this.blockSuggestions=null,this.eventHandledOnKeyDown=null,this.lastKnownRange=null,this.isPendingInputEventHandling=null,this.currentInputLength=null,this.newInputLength=null,this.dataProvider.onDispose()},e.prototype.willHandleEventExclusively=function(e){return this.isSuggesting&&(0==e.eventType||2==e.eventType||3==e.eventType)},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 7:if("SetContent"==e.source&&this.dataProvider.onContentChanged){this.isSuggesting&&this.setIsSuggesting(!1);var t=[];this.editor.queryElements("[id^='"+this.pickerOptions.elementIdPrefix+"']",(function(e){e.id&&t.push(e.id)})),this.dataProvider.onContentChanged(t)}break;case 0:this.eventHandledOnKeyDown=!1,this.isAndroidKeyboardEvent(e)?(this.currentInputLength=this.calcInputLength(e),this.isPendingInputEventHandling=!0):(this.onKeyDownEvent(e),this.isPendingInputEventHandling=!1);break;case 3:this.isPendingInputEventHandling&&this.onAndroidInputEvent(e);break;case 2:!this.eventHandledOnKeyDown&&this.shouldHandleKeyUpEvent(e)&&(this.onKeyUpDomEvent(e),this.isPendingInputEventHandling=!1);break;case 6:this.isSuggesting&&this.setIsSuggesting(!1);break;case 14:this.dataProvider.onScroll&&this.dataProvider.onScroll(e.scrollContainer)}},e.prototype.setLastKnownRange=function(e){this.lastKnownRange=e},e.prototype.setIsSuggesting=function(e){this.isSuggesting=e,e||this.setLastKnownRange(null),this.dataProvider.onIsSuggestingChanged(e),this.setAriaOwns(e),this.setAriaActiveDescendant(e?0:null)},e.prototype.cancelDefaultKeyDownEvent=function(e){this.eventHandledOnKeyDown=!0,e.rawEvent.preventDefault(),e.rawEvent.stopImmediatePropagation()},e.prototype.getIdValue=function(e){var t=e;return t.attributes&&t.attributes.getNamedItem("id")?t.attributes.getNamedItem("id").value:null},e.prototype.getWordBeforeCursor=function(e){var t=this.editor.getContentSearcherOfCursor(e);return t?t.getWordBefore():null},e.prototype.replaceNode=function(e,t){e&&this.editor.deleteNode(e),t&&this.editor.insertNode(t)},e.prototype.getRangeUntilAt=function(e){var t,n,r=this;return this.editor.getContentSearcherOfCursor(e).forEachTextInlineElement((function(e){for(var o=!1,i=e.getTextContent(),a=i?i.length:-1;a>=0;){if(i[a]==r.pickerOptions.triggerCharacter){t=e.getStartPosition().move(a),o=!0;break}a--}return o&&(n=e.getEndPosition()),o})),(0,o.createRange)(t,n)||this.editor.getDocument().createRange()},e.prototype.shouldHandleKeyUpEvent=function(e){return this.isAndroidKeyboardEvent(e)||(0,o.isCharacterValue)(e.rawEvent)||this.isSuggesting&&!(0,o.isModifierKey)(e.rawEvent)},e.prototype.onKeyUpDomEvent=function(e){if(this.isSuggesting){var t=(r=(n=this.getWord(e)).substring(1)).trim();n==this.pickerOptions.triggerCharacter||t&&t.length>0&&t.split(" ").length<=4?(this.dataProvider.queryStringUpdated(t,r==t),this.setLastKnownRange(this.editor.getSelectionRange())):this.setIsSuggesting(!1)}else{var n=this.getWordBeforeCursor(e);if(this.blockSuggestions)null!=n&&n[0]!=this.pickerOptions.triggerCharacter&&(this.blockSuggestions=!1);else if(null!=n&&n.split(" ").length<=4&&n[0]==this.pickerOptions.triggerCharacter){this.setIsSuggesting(!0);var r;t=(r=n.substring(1)).trim();if(this.dataProvider.queryStringUpdated(t,r==t),this.setLastKnownRange(this.editor.getSelectionRange()),this.dataProvider.setCursorPoint){var o=this.editor.getContentSearcherOfCursor(e),i=this.editor.getDocument().createRange(),a=o.getInlineElementBefore().getContainerNode();if(!this.setRangeStart(i,a,n)){var l=a.previousSibling;this.setRangeStart(i,l,this.pickerOptions.triggerCharacter)}var s=i.getBoundingClientRect();if(0==s.left&&0==s.bottom&&0==s.top&&(s=i.getClientRects()[0]),s){i.detach();var u={x:s.left,y:(s.bottom+s.top)/2},d=(s.bottom-s.top)/2;this.dataProvider.setCursorPoint(u,d)}}}}},e.prototype.onKeyDownEvent=function(e){var t=e.rawEvent;if(this.isSuggesting)if(t.key==i)this.setIsSuggesting(!1),this.blockSuggestions=!0,this.cancelDefaultKeyDownEvent(e);else if("Backspace"==t.key){this.getWord(e)==this.pickerOptions.triggerCharacter&&this.setIsSuggesting(!1)}else this.dataProvider.shiftHighlight&&(this.pickerOptions.isHorizontal?t.key==a||t.key==s:t.key==l||t.key==u)?(this.dataProvider.shiftHighlight(this.pickerOptions.isHorizontal?t.key==s:t.key==u),this.dataProvider.getSelectedIndex&&this.setAriaActiveDescendant(this.dataProvider.getSelectedIndex()),this.cancelDefaultKeyDownEvent(e)):!this.dataProvider.selectOption||"Enter"!=t.key&&"Tab"!=t.key||(this.dataProvider.selectOption(),this.cancelDefaultKeyDownEvent(e));else if("Backspace"==t.key)this.tryRemoveNode(e)&&this.cancelDefaultKeyDownEvent(e);else if(t.key==d){var n=this.editor.getContentSearcherOfCursor(e),r=n.getInlineElementAfter()?n.getInlineElementAfter().getContainerNode():null,o=r?this.getIdValue(r):null;if(o&&0==o.indexOf(this.pickerOptions.elementIdPrefix)){var c=this.dataProvider.onRemove(r,!1);this.replaceNode(r,c),this.cancelDefaultKeyDownEvent(e)}}},e.prototype.onAndroidInputEvent=function(e){(this.newInputLength=this.calcInputLength(e),this.newInputLength<this.currentInputLength||"deleteContentBackwards"===e.rawEvent.inputType)&&(this.tryRemoveNode(e)&&(this.eventHandledOnKeyDown=!0))},e.prototype.calcInputLength=function(e){var t=this.getInlineElementBeforeCursor(e);return t?t.length:0},e.prototype.tryRemoveNode=function(e){var t=this.editor.getContentSearcherOfCursor(e),n=t.getInlineElementBefore(),r=n?n.getContainerNode():null,i=r?this.getIdValue(r):null,a=t.getInlineElementAfter();if(i&&0==i.indexOf(this.pickerOptions.elementIdPrefix)&&(null==a||!(a instanceof o.PartialInlineElement))){var l=this.dataProvider.onRemove(r,!0);return l?(this.replaceNode(r,l),this.isPendingInputEventHandling?this.editor.runAsync((function(e){e.select(l,-3)})):this.editor.select(l,-3)):this.editor.deleteNode(r),!0}return!1},e.prototype.getWord=function(e){var t=this.getRangeUntilAt(e).toString(),n=this.getWordBeforeCursor(e);return t==this.pickerOptions.triggerCharacter&&t!=n?n:t},e.prototype.setRangeStart=function(e,t,n){var r=t?t.textContent.lastIndexOf(n):-1;return r>-1&&(e.setStart(t,r),!0)},e.prototype.setAriaOwns=function(e){this.editor.setEditorDomAttribute("aria-owns",e&&this.pickerOptions.suggestionsLabel?this.pickerOptions.suggestionsLabel:null)},e.prototype.setAriaActiveDescendant=function(e){this.editor.setEditorDomAttribute("aria-activedescendant",null!=e&&this.pickerOptions.suggestionLabelPrefix?this.pickerOptions.suggestionLabelPrefix+e.toString():null)},e.prototype.getInlineElementBeforeCursor=function(e){var t=this.editor.getContentSearcherOfCursor(e),n=t?t.getInlineElementBefore():null;return n?n.getTextContent():null},e.prototype.isAndroidKeyboardEvent=function(e){return"Unidentified"==e.rawEvent.key||null==e.rawEvent.key&&c.indexOf(e.rawEvent.charCode)>-1},e}();t.default=f},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(307),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableResize=void 0;var r=n(308);Object.defineProperty(t,"TableResize",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(309),o=n(0),i=function(){function e(e){var t=this;this.onShowHelperElement=e,this.tableRectMap=null,this.onMouseMove=function(e){var n;if(!(e.buttons>0)){t.ensureTableRects();for(var r=t.editor.getDocument().defaultView,o=e.pageX-r.scrollX,i=e.pageY-r.scrollY,a=null,l=t.tableRectMap.length-1;l>=0;l--){var s=t.tableRectMap[l],u=s.table,d=s.rect;if(o>=d.left-12&&o<=d.right+12&&i>=d.top-12&&i<=d.bottom+12){a=u;break}}t.setTableEditor(a,e),null===(n=t.tableEditor)||void 0===n||n.onMouseMove(o,i)}},this.invalidateTableRects=function(){t.tableRectMap=null}}return e.prototype.getName=function(){return"TableResize"},e.prototype.initialize=function(e){this.editor=e,this.onMouseMoveDisposer=this.editor.addDomEventHandler({mousemove:this.onMouseMove})},e.prototype.dispose=function(){this.onMouseMoveDisposer(),this.invalidateTableRects(),this.disposeTableEditor(),this.editor=null},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 3:case 7:case 14:case 21:this.setTableEditor(null),this.invalidateTableRects()}},e.prototype.setTableEditor=function(e,t){this.tableEditor&&!this.tableEditor.isEditing()&&e!=this.tableEditor.table&&this.disposeTableEditor(),!this.tableEditor&&e&&(this.tableEditor=new r.default(this.editor,e,this.invalidateTableRects,this.onShowHelperElement,t.currentTarget))},e.prototype.disposeTableEditor=function(){var e;null===(e=this.tableEditor)||void 0===e||e.dispose(),this.tableEditor=null},e.prototype.ensureTableRects=function(){var e=this;this.tableRectMap||(this.tableRectMap=[],this.editor.queryElements("table",(function(t){if(t.isContentEditable){var n=(0,o.normalizeRect)(t.getBoundingClientRect());n&&e.tableRectMap.push({table:t,rect:n})}})))},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(310),o=n(311),i=n(312),a=n(313),l=n(314),s=n(0),u=function(){function e(e,t,n,r,o){var l=this;this.editor=e,this.table=t,this.onChanged=n,this.onShowHelperElement=r,this.horizontalInserter=null,this.verticalInserter=null,this.horizontalResizer=null,this.verticalResizer=null,this.onFinishEditing=function(){return l.editor.focus(),l.editor.select(l.start,l.end),l.editor.addUndoSnapshot(null,"Format"),l.onChanged(),l.isCurrentlyEditing=!1,!1},this.onStartTableResize=function(){l.isCurrentlyEditing=!0,l.onStartResize()},this.onStartCellResize=function(){l.isCurrentlyEditing=!0,l.disposeTableResizer(),l.onStartResize()},this.onInserted=function(e){l.editor.transformToDarkColor(e),l.disposeTableResizer(),l.onFinishEditing()},this.onSelect=function(e){if(l.editor.focus(),e){var t=new s.VTable(e);if(t.cells){var n=t.cells.length-1,r=0;t.cells[n].forEach((function(e,t){r=t}));var o={firstCell:{x:0,y:0},lastCell:{y:n,x:r}};l.editor.select(e,o)}}},this.isRTL="rtl"==(0,s.getComputedStyle)(t,"direction");var u=e.getZoomScale();this.tableResizer=(0,i.default)(t,u,this.isRTL,this.onStartTableResize,this.onFinishEditing,this.onShowHelperElement),this.tableSelector=(0,a.default)(t,u,e,this.onSelect,this.onShowHelperElement,o),this.isCurrentlyEditing=!1}return e.prototype.dispose=function(){this.disposeTableResizer(),this.disposeCellResizers(),this.disposeTableInserter(),this.disposeTableSelector()},e.prototype.isEditing=function(){return this.isCurrentlyEditing},e.prototype.onMouseMove=function(e,t){for(var n,r=0;r<this.table.rows.length;r++){for(var o=this.table.rows[r],i=0;i<o.cells.length;i++){var a=o.cells[i],l=(0,s.normalizeRect)(this.table.getBoundingClientRect()),u=(0,s.normalizeRect)(a.getBoundingClientRect());if(u&&l){var d=t<=u.bottom;if((this.isRTL?e>=u.right:e<=u.right)&&d){var c=this.isRTL?u.right<=l.right&&u.right>=l.right-1:u.left>=l.left&&u.left<=l.left+1;if(0===r&&t<=u.top+5){var f=(u.left+u.right)/2,p=this.isRTL?e<f:e>f;this.setInserterTd(p?a:o.cells[i-1],!1)}else if(0==i&&(this.isRTL?e>=u.right-5:e<=u.left+5)&&c){var h=null===(n=this.table.rows[r-1])||void 0===n?void 0:n.cells[0],g=h?(0,s.normalizeRect)(h.getBoundingClientRect()):null,v=g?this.isRTL?g.right===u.right:g.left===u.left:null;this.setInserterTd(t<(u.top+u.bottom)/2&&v?h:a,!0)}else this.setInserterTd(null);this.setResizingTd(a);break}}}if(i<o.cells.length)break}},e.prototype.setResizingTd=function(e){if(this.horizontalResizer&&this.horizontalResizer.node!=e&&this.disposeCellResizers(),!this.horizontalResizer&&e){var t=this.editor.getZoomScale();this.horizontalResizer=(0,r.default)(e,t,this.isRTL,!0,this.onStartCellResize,this.onFinishEditing,this.onShowHelperElement),this.verticalResizer=(0,r.default)(e,t,this.isRTL,!1,this.onStartCellResize,this.onFinishEditing,this.onShowHelperElement)}},e.prototype.setInserterTd=function(e,t){var n=t?this.horizontalInserter:this.verticalInserter;if((null===e||n&&n.node!=e)&&this.disposeTableInserter(),!this.horizontalInserter&&!this.verticalInserter&&e){var r=(0,o.default)(this.editor,e,this.isRTL,!!t,this.onInserted,this.onShowHelperElement);t?this.horizontalInserter=r:this.verticalInserter=r}},e.prototype.disposeTableResizer=function(){this.tableResizer&&((0,l.disposeTableEditFeature)(this.tableResizer),this.tableResizer=null)},e.prototype.disposeTableInserter=function(){this.horizontalInserter&&((0,l.disposeTableEditFeature)(this.horizontalInserter),this.horizontalInserter=null),this.verticalInserter&&((0,l.disposeTableEditFeature)(this.verticalInserter),this.verticalInserter=null)},e.prototype.disposeCellResizers=function(){this.horizontalResizer&&((0,l.disposeTableEditFeature)(this.horizontalResizer),this.horizontalResizer=null),this.verticalResizer&&((0,l.disposeTableEditFeature)(this.verticalResizer),this.verticalResizer=null)},e.prototype.disposeTableSelector=function(){this.tableSelector&&((0,l.disposeTableEditFeature)(this.tableSelector),this.tableSelector=null)},e.prototype.onStartResize=function(){this.isCurrentlyEditing=!0;var e=this.editor.getSelectionRange();e&&(this.start=s.Position.getStart(e),this.end=s.Position.getEnd(e)),this.editor.addUndoSnapshot()},e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(43),o=n(0);function i(e,t){var n=e.td,r=e.isRTL,i=e.zoomScale,a=e.onStart,l=new o.VTable(n,!0,i),s=(0,o.normalizeRect)(n.getBoundingClientRect());if(s){a();var u=l.getCellsWithBorder(r?s.left:s.right,!r),d=l.getCellsWithBorder(r?s.left:s.right,r);return{vTable:l,currentCells:u,nextCells:d,initialX:t.pageX}}return{vTable:l,currentCells:[],nextCells:[],initialX:0}}function a(e,t,n,r,o){var i=e.td,a=e.zoomScale,l=n.vTable;return l.table.removeAttribute("height"),l.table.style.height=null,l.forEachCellOfCurrentRow((function(e){e.td&&(e.td.style.height=e.td==i?e.height/a+o+"px":null)})),l.writeBack(!0),!0}function l(e,t,n,r){var i=e.isRTL,a=e.zoomScale,l=n.vTable,u=n.nextCells,d=n.currentCells,c=n.initialX;if(!function(e,t,n,r,i){for(var a=0;a<t.length;a++){var l=t[a];if(u=(0,o.normalizeRect)(l.getBoundingClientRect()))if((d=s(u,e,!r)/i)<30)return!1}for(a=0;a<n.length;a++){l=n[a];var u,d=Number.MAX_SAFE_INTEGER;if(l)(u=(0,o.normalizeRect)(l.getBoundingClientRect()))&&(d=s(u,e,r)/i);if(d<30)return!1}return!0}(t.pageX,d,u,i,a))return!1;var f=0==u.length,p=t.shiftKey;(f||p)&&(l.table.style.width=null);var h=new Map;return d.forEach((function(e){var n=(0,o.normalizeRect)(e.getBoundingClientRect());if(n){e.style.wordBreak="break-word",e.style.whiteSpace="normal",e.style.boxSizing="border-box";var r=s(n,t.pageX,!i)/a;h.set(e,r)}})),h.forEach((function(e,t){t.style.width=e+"px"})),p||u.forEach((function(e){var t=e.rowSpan>1?0:e.getBoundingClientRect().right-c;e.style.wordBreak="break-word",e.style.whiteSpace="normal",e.style.boxSizing="border-box",e.style.width=e.rowSpan>1?"":t/a-r+"px"})),l.writeBack(!0),!0}function s(e,t,n){return n?t-e.left:e.right-t}function u(e,t){var n=e.td,r=(0,o.normalizeRect)(n.getBoundingClientRect());r&&(t.style.top=r.bottom-4+"px",t.style.left=r.left+"px",t.style.width=r.right-r.left+"px",t.style.height="4px")}function d(e,t){var n=e.td,r=e.isRTL,i=(0,o.normalizeRect)(n.getBoundingClientRect());i&&(t.style.top=i.top+"px",t.style.left=(r?i.left:i.right)-4+1+"px",t.style.width="4px",t.style.height=i.bottom-i.top+"px")}t.default=function(e,t,n,s,c,f,p){var h=e.ownerDocument,g={tag:"div",style:"position: fixed; cursor: "+(s?"row":"col")+"-resize; user-select: none"};null==p||p(g,"CellResizer");var v=(0,o.createElement)(g,h);h.body.appendChild(v);var m={td:e,isRTL:n,zoomScale:t,onStart:c},b=s?u:d;b(m,v);var y={onDragStart:i,onDragging:s?a:l,onDragEnd:f};return{node:e,div:v,featureHandler:new r.default(v,m,b,y,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e,t,n,i,a,l){var s=e.getElementAtCursor("table",t),u=(0,r.normalizeRect)(t.getBoundingClientRect()),d=s?(0,r.getIntersectedRect)([s],[e.getVisibleViewport()]):null;if(u&&d){var c=t.ownerDocument,f=function(e,t,n,r){var o=t?"white":"#4A4A4A",i=n?"right":"left";return{tag:"div",style:"position: fixed; width: 12px; height: 12px; font-size: 16px; color: "+o+"; line-height: 10px; vertical-align: middle; text-align: center; cursor: pointer; border: solid 1px "+o+"; border-radius: 50%; background-color: "+r,children:[{tag:"div",style:"position: absolute; box-sizing: border-box; background-color: "+r+";"+(e?i+": 12px; top: 5px; height: 3px; border-top: 1px solid "+o+"; border-bottom: 1px solid "+o+"; border-right: 1px solid "+o+"; border-left: 0px;":"left: 5px; top: 12px; width: 3px; border-left: 1px solid "+o+"; border-right: 1px solid "+o+"; border-bottom: 1px solid "+o+"; border-top: 0px;")},"+"]}}(i,e.isDarkMode(),n,e.getDefaultFormat().backgroundColor||"white");null==l||l(f,"TableInserter");var p=(0,r.createElement)(f,c);return i?(p.style.left=(n?u.right:u.left-13)+"px",p.style.top=u.bottom-8+"px",p.firstChild.style.width=d.right-d.left+"px"):(p.style.left=(n?u.left-8:u.right-8)+"px",p.style.top=u.top-13+"px",p.firstChild.style.height=d.bottom-d.top+"px"),c.body.appendChild(p),{div:p,featureHandler:new o(p,t,i,e,a),node:t}}return null};var o=function(){function e(e,t,n,o,i){var a=this;this.div=e,this.td=t,this.isHorizontal=n,this.editor=o,this.onInsert=i,this.insertTd=function(){var e=new r.VTable(a.td);a.isHorizontal||(e.normalizeTableCellSize(a.editor.getZoomScale()),e.table.removeAttribute("width"),e.table.style.width=null),e.edit(a.isHorizontal?1:3),e.writeBack(),a.onInsert(e.table)},this.div.addEventListener("click",this.insertTd)}return e.prototype.dispose=function(){this.div.removeEventListener("click",this.insertTd),this.div=null,this.editor=null},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(43),o=n(0);function i(e){return e.onStart(),{originalRect:e.table.getBoundingClientRect(),vTable:new o.VTable(e.table,!0,e.zoomScale)}}function a(e,t,n,r,o){var i=e.isRTL,a=e.zoomScale,l=n.originalRect,s=n.vTable,u=1+r/l.width*a*(i?-1:1),d=1+o/l.height*a,c=Math.abs(u-1)>.001,f=Math.abs(d-1)>.001;if(c||f){for(var p=0;p<s.cells.length;p++)for(var h=0;h<s.cells[p].length;h++){var g=s.cells[p][h];if(g.td){if(c){s.table.style.width=null;var v=g.width*u/a;g.td.style.boxSizing="border-box",v>=30&&(g.td.style.wordBreak="break-word",g.td.style.whiteSpace="normal",g.td.style.width=v+"px")}if(f)if(s.table.style.height=null,0==h){var m=g.height*d/a;m>=20&&(g.td.style.height=m+"px")}else g.td.style.height=null}}return s.writeBack(!0),!0}return!1}function l(e,t){var n=e.table,r=e.isRTL,i=(0,o.normalizeRect)(n.getBoundingClientRect());i&&(t.style.top=i.bottom+"px",t.style.left=r?i.left-12-2+"px":i.right+"px")}t.default=function(e,t,n,s,u,d){var c=e.ownerDocument,f={tag:"div",style:"position: fixed; cursor: "+(n?"ne":"nw")+"-resize; user-select: none; border: 1px solid #808080"};null==d||d(f,"TableResizer");var p=(0,o.createElement)(f,c);p.style.width="12px",p.style.height="12px",c.body.appendChild(p);var h={isRTL:n,table:e,zoomScale:t,onStart:s};return l(h,p),{node:e,div:p,featureHandler:new r.default(p,h,l,{onDragStart:i,onDragging:a,onDragEnd:u},t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(43),o=n(0);function i(e,t){var n=e.rect;n&&(t.style.top=n.top-12+"px",t.style.left=n.left-12-2+"px")}t.default=function(e,t,n,a,l,s){var u=(0,o.normalizeRect)(e.getBoundingClientRect());if(!function(e,t,n){var r=e.getVisibleViewport();if(n&&(0,o.safeInstanceOf)(n,"HTMLElement")&&r&&t){return(0,o.normalizeRect)(n.getBoundingClientRect()).top<=t.top&&r.top<=t.top}return!0}(n,u,s))return null;var d=e.ownerDocument,c={tag:"div",style:"position: fixed; cursor: all-scroll; user-select: none; border: 1px solid #808080"};null==l||l(c,"TableSelector");var f=(0,o.createElement)(c,d);f.id="_Table_Selector",f.style.width="12px",f.style.height="12px",d.body.appendChild(f);var p={table:e,zoomScale:t,rect:u};i(p,f);var h=new r.default(f,p,i,{onDragEnd:function(e,t){return t.target==f&&a(e.table),!1}},t);return{div:f,featureHandler:h,node:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disposeTableEditFeature=void 0,t.disposeTableEditFeature=function(e){var t,n,r;e&&(null===(n=null===(t=e.div)||void 0===t?void 0:t.parentNode)||void 0===n||n.removeChild(e.div),e.div=null,null===(r=e.featureHandler)||void 0===r||r.dispose(),e.featureHandler=null)}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(316),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watermark=void 0;var r=n(317);Object.defineProperty(t,"Watermark",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(9),i=function(){function e(e,t,n){var i=this;this.watermark=e,this.customClass=n,this.editor=null,this.disposer=null,this.showHideWatermark=function(){if(i.editor){var e=i.editor.hasFocus(),t=i.editor.queryElements((0,r.getEntitySelector)("WATERMARK_WRAPPER")),n=t.length>0;if(e&&n)t.forEach(i.removeWatermark),i.editor.focus();else if(!e&&!n&&i.editor.isEmpty()){var a=(0,o.insertEntity)(i.editor,"WATERMARK_WRAPPER",i.editor.getDocument().createTextNode(i.watermark),!1,!1,0);i.customClass&&a.wrapper.classList.add(i.customClass)}}},this.removeWatermark=function(e){var t,n=e.parentNode;null==n||n.removeChild(e),n&&(null===(t=i.editor)||void 0===t?void 0:t.contains(n))&&"DIV"==(0,r.getTagOfNode)(n)&&!n.firstChild&&n.appendChild(i.editor.getDocument().createElement("BR"))},this.format=t||{fontSize:"14px",textColors:{lightModeColor:"#AAAAAA",darkModeColor:"#6B6B6B"}}}return e.prototype.getName=function(){return"Watermark"},e.prototype.initialize=function(e){this.editor=e,this.disposer=this.editor.addDomEventHandler({focus:this.showHideWatermark,blur:this.showHideWatermark})},e.prototype.dispose=function(){var e;null===(e=this.disposer)||void 0===e||e.call(this),this.disposer=null,this.editor=null},e.prototype.onPluginEvent=function(e){var t;if(11==e.eventType||7==e.eventType&&"WATERMARK_WRAPPER"!=(null===(t=e.data)||void 0===t?void 0:t.type))this.showHideWatermark();else if(15==e.eventType&&"WATERMARK_WRAPPER"==e.entity.type&&this.editor){var n=e.operation,o=e.entity.wrapper;8==n?this.removeWatermark(o):0==e.operation&&((0,r.applyFormat)(o,this.format,this.editor.isDarkMode()),o.spellcheck=!1)}},e}();t.default=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(319),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableCellSelection=void 0;var r=n(320);Object.defineProperty(t,"TableCellSelection",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(321),o=n(322),i=n(323),a=n(0),l=[16,18,91,17,44],s=function(){function e(){var e=this;this.onMouseMove=function(t){if(e.editor.contains(t.target)){if(e.tableSelection&&(0,a.contains)(e.lastTarget,t.target,!0))return u(e.editor,e.firstTarget,0),void t.preventDefault();if("TABLE"!=(0,a.getTagOfNode)(t.target)){if(e.setData(t.target),!e.firstTarget||e.firstTable)if(e.lastTarget.lastChild==e.lastTarget.firstChild&&"TABLE"==(0,a.getTagOfNode)(e.lastTarget.lastChild)&&"DIV"==(0,a.getTagOfNode)(e.lastTarget)||!e.editor.contains(e.lastTarget))t.preventDefault();else{e.prepareSelection();var n=!!(0,a.safeInstanceOf)(e.lastTarget,"HTMLTableCellElement")&&(0,a.contains)(e.lastTarget,e.firstTable);e.firstTable&&e.firstTable==e.targetTable||n?e.selectionInsideTableMouseMove(t):e.tableSelection&&e.restoreSelection(),e.tableSelection&&(u(e.editor,e.firstTarget,0),t.preventDefault())}}else t.preventDefault()}},this.onMouseUp=function(){e.editor&&e.removeMouseUpEventListener()},this.lastTarget=null,this.firstTarget=null,this.tableSelection=!1,this.tableRange={firstCell:null,lastCell:null},this.startedSelection=!1}return e.prototype.getName=function(){return"TableCellSelection"},e.prototype.initialize=function(e){this.editor=e,this.editor.addContentEditFeature(o.DeleteTableContents)},e.prototype.dispose=function(){this.editor.select(null),this.removeMouseUpEventListener(),this.editor=null},e.prototype.onPluginEvent=function(e){if(this.editor)switch(e.eventType){case 17:var t=this.editor.getSelectionRangeEx();1==t.type&&(this.tableRange=t.coordinates,this.firstTable=t.table,this.tableSelection=!0,this.editor.select(t.table,null));break;case 18:if(this.firstTable&&this.tableSelection&&this.tableRange){var n=this.editor.queryElements("#"+this.firstTable.id);1==n.length&&(this.firstTable=n[0],this.editor.select(this.firstTable,this.tableRange))}break;case 5:this.startedSelection||this.handleMouseDownEvent(e);break;case 0:this.startedSelection?e.rawEvent.preventDefault():this.handleKeyDownEvent(e);break;case 2:this.startedSelection?e.rawEvent.preventDefault():this.handleKeyUpEvent(e);break;case 14:this.startedSelection&&this.handleScrollEvent();break;case 20:this.tableRange&&(this.tableRange=null,this.firstTable=null,this.tableSelection=!1,this.editor.select(null))}},e.prototype.handleScrollEvent=function(){this.setData(this.editor.getElementAtCursor()),this.firstTable==this.targetTable?this.tableSelection&&(this.vTable.selection.lastCell=(0,i.getCellCoordinates)(this.vTable,this.lastTarget),this.selectTable(),this.tableRange.lastCell=this.vTable.selection.lastCell,u(this.editor,this.firstTarget,0)):this.tableSelection&&this.restoreSelection()},e.prototype.handleKeyDownEvent=function(e){var t,n=this,r=e.rawEvent,o=r.shiftKey,i=r.ctrlKey,l=r.metaKey,s=r.which,u=r.defaultPrevented;if(o&&(i||l)||16==s||u)this.preventKeyUp=u;else if(o){if(!this.firstTarget){var c=this.editor.getFocusedPosition(),f=c&&d(this.editor,c.node);this.firstTarget=this.firstTarget||f}if(!(0,a.safeInstanceOf)(this.firstTarget,"HTMLTableCellElement"))return;this.editor.runAsync((function(t){var r=t.getFocusedPosition(),o=n.tableSelection?n.lastTarget:null==r?void 0:r.node;if(o&&n.setData(o),n.firstTable==n.targetTable){if(!n.shouldConvertToTableSelection()&&!n.tableSelection)return;n.handleKeySelectionInsideTable(e)}else n.tableSelection&&(n.firstTable&&n.editor.select(n.firstTable,null),n.tableSelection=!1)}))}else 1!=(null===(t=this.editor.getSelectionRangeEx())||void 0===t?void 0:t.type)||(0,a.isCtrlOrMetaPressed)(e.rawEvent)&&36!=s&&35!=s||this.editor.select(null)},e.prototype.handleKeyUpEvent=function(e){var t=e.rawEvent,n=t.shiftKey,r=t.which,o=t.ctrlKey;n||o||!this.firstTarget||this.preventKeyUp||-1!=l.indexOf(r)||this.clearState(),this.preventKeyUp=!1},e.prototype.handleKeySelectionInsideTable=function(e){if(this.firstTarget=d(this.editor,this.firstTarget),this.lastTarget=d(this.editor,this.lastTarget),u(this.editor,this.firstTarget,0),this.vTable=this.vTable||new a.VTable(this.firstTable),this.tableRange={firstCell:(0,i.getCellCoordinates)(this.vTable,this.firstTarget),lastCell:this.getNextTD(e)},!this.tableRange.lastCell||this.tableRange.lastCell.y>this.vTable.cells.length-1||-1==this.tableRange.lastCell.y){if(this.lastTarget=this.editor.getElementAtCursor("td,th,div",this.firstTable),!(0,a.safeInstanceOf)(this.lastTarget,"HTMLTableCellElement")){var t=new a.Position(this.targetTable,null==this.tableRange.lastCell.y||-1==this.tableRange.lastCell.y?-2:-3),n=this.editor.getDocument().defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset;return this.editor.select(n.getRangeAt(0)),n.setBaseAndExtent(r,o,t.node,t.offset),this.lastTarget=t.node,void e.rawEvent.preventDefault()}this.prepareSelection()}this.vTable.selection=this.tableRange,this.selectTable();var l=this.isAfter(this.firstTarget,this.lastTarget),s=new a.Position(this.lastTarget,l?0:-1);u(this.editor,s.node,s.offset),this.tableSelection=!0,e.rawEvent.preventDefault()},e.prototype.handleMouseDownEvent=function(e){var t=this,n=e.rawEvent,o=n.which,l=n.shiftKey;if(3==o&&this.tableSelection){var s=this.editor.getElementAtCursor("td,th"),f=(0,i.getCellCoordinates)(this.vTable,s);if(f){var p=(0,r.default)(this.vTable),h=p.firstCell,g=p.lastCell;if(f.y>=h.y&&f.y<=g.y&&f.x>=h.x&&f.x<=g.x){if(this.firstTarget=this.vTable.getCell(h.y,h.x).td,this.lastTarget=this.vTable.getCell(g.y,g.x).td,this.firstTarget&&this.lastTarget)this.editor.getDocument().defaultView.getSelection().setBaseAndExtent(this.firstTarget,0,this.lastTarget,0),this.selectTable();return}}}1!=o||l||(this.clearState(),c(this.editor,e.rawEvent.target)&&(this.editor.getDocument().addEventListener("mouseup",this.onMouseUp,!0),this.editor.getDocument().addEventListener("mousemove",this.onMouseMove,!0),this.startedSelection=!0)),1==o&&l&&this.editor.runAsync((function(e){var n=e.getDocument().defaultView.getSelection(),r=d(e,n.anchorNode),o=d(e,n.focusNode),l=c(e,r),s=c(e,r);if(l==s&&(0,a.safeInstanceOf)(r,"HTMLTableCellElement")&&(0,a.safeInstanceOf)(o,"HTMLTableCellElement")){t.vTable=new a.VTable(r);var f=(0,i.getCellCoordinates)(t.vTable,r),p=(0,i.getCellCoordinates)(t.vTable,o);t.vTable.selection={firstCell:f,lastCell:p},t.firstTarget=r,t.lastTarget=o,t.selectTable(),t.tableRange=t.vTable.selection,t.tableSelection=!0,t.firstTable=l,t.targetTable=s,u(e,r,0)}}))},e.prototype.restoreSelection=function(){this.firstTable&&this.editor.select(this.firstTable,null),this.tableSelection=!1;var e=this.isAfter(this.firstTarget,this.lastTarget),t=new a.Position(this.lastTarget,e?-1:0),n=new Range;this.firstTarget&&n.selectNodeContents(this.firstTarget),u(this.editor,this.firstTarget,e?a.Position.getEnd(n).offset:a.Position.getStart(n).offset,t.element,t.offset)},e.prototype.selectionInsideTableMouseMove=function(e){var t;if(this.lastTarget!=this.firstTarget)u(this.editor,this.firstTarget,0),this.firstTable!=this.targetTable&&(null===(t=this.targetTable)||void 0===t?void 0:t.contains(this.firstTable))&&(this.firstTarget=this.editor.getElementAtCursor("td,th",this.lastTarget)),this.firstTable&&(this.tableSelection=!0,this.vTable=this.vTable||new a.VTable(this.firstTable),this.tableRange={firstCell:(0,i.getCellCoordinates)(this.vTable,this.firstTarget),lastCell:(0,i.getCellCoordinates)(this.vTable,this.lastTarget)},this.vTable.selection=this.tableRange,this.selectTable()),e.preventDefault();else if(this.lastTarget==this.firstTarget&&this.tableSelection){this.vTable=new a.VTable(this.firstTable);var n=(0,i.getCellCoordinates)(this.vTable,this.firstTarget);this.tableRange={firstCell:n,lastCell:n},this.vTable.selection=this.tableRange,this.selectTable()}},e.prototype.removeMouseUpEventListener=function(){this.startedSelection&&(this.startedSelection=!1,this.editor.getDocument().removeEventListener("mouseup",this.onMouseUp,!0),this.editor.getDocument().removeEventListener("mousemove",this.onMouseMove,!0))},e.prototype.clearState=function(){this.editor.select(null),this.vTable=null,this.firstTarget=null,this.lastTarget=null,this.tableRange={firstCell:null,lastCell:null},this.tableSelection=!1,this.firstTable=null,this.targetTable=null},e.prototype.getNextTD=function(e){if(this.lastTarget=this.editor.getElementAtCursor("td,th",this.lastTarget),(0,a.safeInstanceOf)(this.lastTarget,"HTMLTableCellElement")){var t=(0,i.getCellCoordinates)(this.vTable,this.lastTarget);if(this.tableSelection)switch(e.rawEvent.which){case 39:t.x+=this.lastTarget.colSpan,null==this.vTable.cells[t.y][t.x]&&(t.x=this.vTable.cells[t.y].length-1,t.y++);break;case 37:0==t.x?t.y--:t.x--;break;case 38:t.y--;break;case 40:t.y++}return t.y>=0&&t.x>=0&&(this.lastTarget=this.vTable.getTd(t.y,t.x)),t}return null},e.prototype.prepareSelection=function(){var e,t,n,r,o=this.lastTarget!=this.firstTarget&&(null===(e=this.firstTable)||void 0===e?void 0:e.contains((0,a.findClosestElementAncestor)(this.targetTable,this.firstTable,"td,th")));if(o&&this.tableSelection)for(;o;)this.lastTarget=(0,a.findClosestElementAncestor)(this.targetTable,this.firstTable,"td,th"),this.targetTable=c(this.editor,this.lastTarget),o=this.lastTarget!=this.firstTarget&&(null===(t=this.firstTable)||void 0===t?void 0:t.contains((0,a.findClosestElementAncestor)(this.targetTable,this.firstTable,"td,th")));var i=this.lastTarget!=this.firstTarget&&(null===(n=this.targetTable)||void 0===n?void 0:n.contains((0,a.findClosestElementAncestor)(this.firstTable,this.targetTable,"td,th")));if(i&&this.tableSelection)for(;i;)this.firstTarget=(0,a.findClosestElementAncestor)(this.firstTable,this.targetTable,"td,th"),this.firstTable=this.editor.getElementAtCursor("table",this.firstTarget),i=this.lastTarget!=this.firstTarget&&(null===(r=this.targetTable)||void 0===r?void 0:r.contains((0,a.findClosestElementAncestor)(this.firstTable,this.targetTable,"td,th")))},e.prototype.setData=function(e){var t=this.editor.getFocusedPosition();t&&(this.firstTarget=this.firstTarget||d(this.editor,t.node),this.firstTarget.nodeType==Node.TEXT_NODE&&(this.firstTarget=this.editor.getElementAtCursor("td,th",this.firstTarget)),!this.editor.contains(this.firstTarget)&&this.lastTarget&&(this.firstTarget=this.lastTarget)),this.firstTable=c(this.editor,this.firstTarget),this.lastTarget=d(this.editor,e),this.targetTable=c(this.editor,this.lastTarget)},e.prototype.isAfter=function(e,t){var n,r,o,i;if(e&&t){if(t.contains(e)){var l=null===(r=(n=e).getBoundingClientRect)||void 0===r?void 0:r.call(n),s=null===(i=(o=t).getBoundingClientRect)||void 0===i?void 0:i.call(o);if(l&&s)return l.top>s.top&&l.bottom<s.bottom}return new a.Position(e,-1).isAfter(new a.Position(t,-1))}return!1},e.prototype.shouldConvertToTableSelection=function(){var e=this;if(!this.firstTable||!this.editor)return!1;var t=this.editor.getSelectedRegions();if(1==t.length)return!1;var n=!0;return t.forEach((function(t){(0,a.contains)(e.firstTable,t.rootNode)||(n=!1)})),n},e.prototype.selectTable=function(){var e;this.editor&&this.vTable&&(null===(e=this.editor)||void 0===e||e.select(this.vTable.table,(0,r.default)(this.vTable)))},e}();function u(e,t,n,r,o){r=r||t,o=o||n,e.getDocument().defaultView.getSelection().setBaseAndExtent(t,n,r,o)}function d(e,t){return e&&e.getElementAtCursor("td,th",t)||t}function c(e,t){return e?e.getElementAtCursor("table",t):null}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(null==e?void 0:e.selection)||{},n=t.firstCell,r=t.lastCell;if(!(e&&e.selection&&n&&r))return null;var o=e.cells,i={x:Math.min(n.x,r.x),y:Math.min(n.y,r.y)},a={x:Math.max(n.x,r.x),y:Math.max(n.y,r.y)},l=function(e){e.x<0&&(e.x=0),e.y<0&&(e.y=0),e.y>=o.length&&(e.y=o.length-1);var t=o[e.y].length;e.x>=t&&(e.x=t-1)};return l(i),l(a),{firstCell:i,lastCell:a}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteTableContents=void 0;var r=n(0);t.DeleteTableContents={keys:[46,8],shouldHandleEvent:function(e,t){return 1==t.getSelectionRangeEx().type},handleEvent:function(e,t){1==t.getSelectionRangeEx().type&&t.addUndoSnapshot((function(){t.getSelectedRegions().forEach((function(e){(0,r.safeInstanceOf)(e.rootNode,"HTMLTableCellElement")&&function(e,t){var n=new Range;n.selectNodeContents(e),n.deleteContents(),e.appendChild(t.getDocument().createElement("br"))}(e.rootNode,t)}))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCellCoordinates=void 0,t.getCellCoordinates=function(e,t){var n;if(null==e?void 0:e.cells)for(var r=0;r<e.cells.length;r++)for(var o=0;o<e.cells[r].length;o++)t==e.cells[r][o].td&&(n={x:o,y:r});return n}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(325),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoFormat=void 0;var r=n(326);Object.defineProperty(t,"AutoFormat",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/[`!@#$%^&*()_+\=\[\]{};':"\\|,.<>\/?~]/,o=function(){function e(){this.editor=null,this.lastKeyTyped=null}return e.prototype.getName=function(){return"AutoFormat"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null,this.lastKeyTyped=null},e.prototype.onPluginEvent=function(e){var t=this;if(this.editor&&(7!==e.eventType&&5!==e.eventType&&6!==e.eventType||(this.lastKeyTyped=""),0===e.eventType)){var n=e.rawEvent.key;if(n&&n.length>1&&(this.lastKeyTyped=""),"-"!==this.lastKeyTyped||r.test(n)||" "===n||"-"===n)this.lastKeyTyped=n;else{var o=this.editor.getContentSearcherOfCursor(e),i=null==o?void 0:o.getSubStringBefore(3),a=null==o?void 0:o.getSubStringBefore(2),l="-"===(null==i?void 0:i[0]),s=" "===(null==i?void 0:i[0]);if(l||s||"string"==typeof i&&r.test(i[0])||"--"!==a)return;var u=null==o?void 0:o.getRangeFromText(a,!0),d=document.createTextNode("—");this.editor.addUndoSnapshot((function(){u&&(u.deleteContents(),u.insertNode(d),t.editor.select(d,-1))}),"Format",!0,{formatApiName:"autoHyphen"}),this.lastKeyTyped=null}}},e}();t.default=o},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(118),t),o(n(119),t),o(n(328),t),o(n(120),t),o(n(121),t),o(n(122),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(330),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(118),t),o(n(119),t),o(n(331),t),o(n(120),t),o(n(121),t),o(n(122),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleTableOperation=t.CompatibleTableBorderFormat=t.CompatibleSelectionRangeTypes=t.CompatibleRegionType=t.CompatibleQueryScope=t.CompatiblePositionType=t.CompatiblePluginEventType=t.CompatibleNumberingListType=t.CompatibleNodeType=t.CompatibleListType=t.CompatibleKnownCreateElementDataIndex=t.CompatibleKeys=t.CompatibleIndentation=t.CompatibleImageEditOperation=t.CompatibleGetContentMode=t.CompatibleFontSizeChange=t.CompatibleExperimentalFeatures=t.CompatibleEntityOperation=t.CompatibleEntityClasses=t.CompatibleDocumentPosition=t.CompatibleDocumentCommand=t.CompatibleDirection=t.CompatibleDefinitionType=t.CompatibleDarkModeDatasetNames=t.CompatibleContentType=t.CompatibleContentTypePrefix=t.CompatibleContentPosition=t.CompatibleColorTransformDirection=t.CompatibleClearFormatMode=t.CompatibleChangeSource=t.CompatibleCapitalization=t.CompatibleBulletListType=t.CompatibleAlignment=void 0;var r=n(332);Object.defineProperty(t,"CompatibleAlignment",{enumerable:!0,get:function(){return r.CompatibleAlignment}});var o=n(333);Object.defineProperty(t,"CompatibleBulletListType",{enumerable:!0,get:function(){return o.CompatibleBulletListType}});var i=n(334);Object.defineProperty(t,"CompatibleCapitalization",{enumerable:!0,get:function(){return i.CompatibleCapitalization}});var a=n(335);Object.defineProperty(t,"CompatibleChangeSource",{enumerable:!0,get:function(){return a.CompatibleChangeSource}});var l=n(336);Object.defineProperty(t,"CompatibleClearFormatMode",{enumerable:!0,get:function(){return l.CompatibleClearFormatMode}});var s=n(337);Object.defineProperty(t,"CompatibleColorTransformDirection",{enumerable:!0,get:function(){return s.CompatibleColorTransformDirection}});var u=n(338);Object.defineProperty(t,"CompatibleContentPosition",{enumerable:!0,get:function(){return u.CompatibleContentPosition}});var d=n(339);Object.defineProperty(t,"CompatibleContentTypePrefix",{enumerable:!0,get:function(){return d.CompatibleContentTypePrefix}}),Object.defineProperty(t,"CompatibleContentType",{enumerable:!0,get:function(){return d.CompatibleContentType}});var c=n(340);Object.defineProperty(t,"CompatibleDarkModeDatasetNames",{enumerable:!0,get:function(){return c.CompatibleDarkModeDatasetNames}});var f=n(341);Object.defineProperty(t,"CompatibleDefinitionType",{enumerable:!0,get:function(){return f.CompatibleDefinitionType}});var p=n(342);Object.defineProperty(t,"CompatibleDirection",{enumerable:!0,get:function(){return p.CompatibleDirection}});var h=n(343);Object.defineProperty(t,"CompatibleDocumentCommand",{enumerable:!0,get:function(){return h.CompatibleDocumentCommand}});var g=n(344);Object.defineProperty(t,"CompatibleDocumentPosition",{enumerable:!0,get:function(){return g.CompatibleDocumentPosition}});var v=n(345);Object.defineProperty(t,"CompatibleEntityClasses",{enumerable:!0,get:function(){return v.CompatibleEntityClasses}});var m=n(346);Object.defineProperty(t,"CompatibleEntityOperation",{enumerable:!0,get:function(){return m.CompatibleEntityOperation}});var b=n(347);Object.defineProperty(t,"CompatibleExperimentalFeatures",{enumerable:!0,get:function(){return b.CompatibleExperimentalFeatures}});var y=n(348);Object.defineProperty(t,"CompatibleFontSizeChange",{enumerable:!0,get:function(){return y.CompatibleFontSizeChange}});var C=n(349);Object.defineProperty(t,"CompatibleGetContentMode",{enumerable:!0,get:function(){return C.CompatibleGetContentMode}});var E=n(350);Object.defineProperty(t,"CompatibleImageEditOperation",{enumerable:!0,get:function(){return E.CompatibleImageEditOperation}});var S=n(351);Object.defineProperty(t,"CompatibleIndentation",{enumerable:!0,get:function(){return S.CompatibleIndentation}});var w=n(352);Object.defineProperty(t,"CompatibleKeys",{enumerable:!0,get:function(){return w.CompatibleKeys}});var T=n(353);Object.defineProperty(t,"CompatibleKnownCreateElementDataIndex",{enumerable:!0,get:function(){return T.CompatibleKnownCreateElementDataIndex}});var O=n(354);Object.defineProperty(t,"CompatibleListType",{enumerable:!0,get:function(){return O.CompatibleListType}});var P=n(355);Object.defineProperty(t,"CompatibleNodeType",{enumerable:!0,get:function(){return P.CompatibleNodeType}});var _=n(356);Object.defineProperty(t,"CompatibleNumberingListType",{enumerable:!0,get:function(){return _.CompatibleNumberingListType}});var M=n(357);Object.defineProperty(t,"CompatiblePluginEventType",{enumerable:!0,get:function(){return M.CompatiblePluginEventType}});var x=n(358);Object.defineProperty(t,"CompatiblePositionType",{enumerable:!0,get:function(){return x.CompatiblePositionType}});var N=n(359);Object.defineProperty(t,"CompatibleQueryScope",{enumerable:!0,get:function(){return N.CompatibleQueryScope}});var R=n(360);Object.defineProperty(t,"CompatibleRegionType",{enumerable:!0,get:function(){return R.CompatibleRegionType}});var I=n(361);Object.defineProperty(t,"CompatibleSelectionRangeTypes",{enumerable:!0,get:function(){return I.CompatibleSelectionRangeTypes}});var L=n(362);Object.defineProperty(t,"CompatibleTableBorderFormat",{enumerable:!0,get:function(){return L.CompatibleTableBorderFormat}});var D=n(363);Object.defineProperty(t,"CompatibleTableOperation",{enumerable:!0,get:function(){return D.CompatibleTableOperation}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleAlignment=void 0,function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(t.CompatibleAlignment||(t.CompatibleAlignment={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleBulletListType=void 0,function(e){e[e.Min=1]="Min",e[e.Disc=1]="Disc",e[e.Dash=2]="Dash",e[e.Square=3]="Square",e[e.ShortArrow=4]="ShortArrow",e[e.LongArrow=5]="LongArrow",e[e.UnfilledArrow=6]="UnfilledArrow",e[e.Hyphen=7]="Hyphen",e[e.DoubleLongArrow=8]="DoubleLongArrow",e[e.Circle=9]="Circle",e[e.Max=9]="Max"}(t.CompatibleBulletListType||(t.CompatibleBulletListType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleCapitalization=void 0,function(e){e.Sentence="sentence",e.Lowercase="lowercase",e.Uppercase="uppercase",e.CapitalizeEachWord="capitalize"}(t.CompatibleCapitalization||(t.CompatibleCapitalization={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleChangeSource=void 0,function(e){e.AutoLink="AutoLink",e.CreateLink="CreateLink",e.Format="Format",e.ImageResize="ImageResize",e.Paste="Paste",e.SetContent="SetContent",e.Cut="Cut",e.Drop="Drop",e.InsertEntity="InsertEntity",e.SwitchToDarkMode="SwitchToDarkMode",e.SwitchToLightMode="SwitchToLightMode",e.ListChain="ListChain"}(t.CompatibleChangeSource||(t.CompatibleChangeSource={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleClearFormatMode=void 0,function(e){e[e.Inline=0]="Inline",e[e.Block=1]="Block",e[e.AutoDetect=2]="AutoDetect"}(t.CompatibleClearFormatMode||(t.CompatibleClearFormatMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleColorTransformDirection=void 0,function(e){e[e.LightToDark=0]="LightToDark",e[e.DarkToLight=1]="DarkToLight"}(t.CompatibleColorTransformDirection||(t.CompatibleColorTransformDirection={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleContentPosition=void 0,function(e){e[e.Begin=0]="Begin",e[e.End=1]="End",e[e.DomEnd=2]="DomEnd",e[e.SelectionStart=3]="SelectionStart",e[e.Outside=4]="Outside",e[e.Range=5]="Range"}(t.CompatibleContentPosition||(t.CompatibleContentPosition={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleContentType=t.CompatibleContentTypePrefix=void 0,function(e){e.Text="text/",e.Image="image/"}(t.CompatibleContentTypePrefix||(t.CompatibleContentTypePrefix={})),function(e){e.PlainText="text/plain",e.HTML="text/html"}(t.CompatibleContentType||(t.CompatibleContentType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleDarkModeDatasetNames=void 0,function(e){e.OriginalStyleColor="ogsc",e.OriginalStyleBackgroundColor="ogsb",e.OriginalAttributeColor="ogac",e.OriginalAttributeBackgroundColor="ogab"}(t.CompatibleDarkModeDatasetNames||(t.CompatibleDarkModeDatasetNames={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleDefinitionType=void 0,function(e){e[e.Boolean=0]="Boolean",e[e.Number=1]="Number",e[e.String=2]="String",e[e.Array=3]="Array",e[e.Object=4]="Object",e[e.Customize=5]="Customize"}(t.CompatibleDefinitionType||(t.CompatibleDefinitionType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleDirection=void 0,function(e){e[e.LeftToRight=0]="LeftToRight",e[e.RightToLeft=1]="RightToLeft"}(t.CompatibleDirection||(t.CompatibleDirection={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleDocumentCommand=void 0,function(e){e.AutoUrlDetect="AutoUrlDetect",e.BackColor="backColor",e.Bold="bold",e.ClearAuthenticationCache="ClearAuthenticationCache",e.ContentReadOnly="contentReadOnly",e.Copy="copy",e.CreateLink="createLink",e.Cut="cut",e.DecreaseFontSize="decreaseFontSize",e.DefaultParagraphSeparator="defaultParagraphSeparator",e.Delete="delete",e.EnableInlineTableEditing="enableInlineTableEditing",e.EnableObjectResizing="enableObjectResizing",e.FontName="fontName",e.FontSize="fontSize",e.ForeColor="foreColor",e.FormatBlock="formatBlock",e.ForwardDelete="forwardDelete",e.Heading="heading",e.HiliteColor="hiliteColor",e.IncreaseFontSize="increaseFontSize",e.Indent="indent",e.InsertBrOnReturn="insertBrOnReturn",e.InsertHorizontalRule="insertHorizontalRule",e.InsertHTML="insertHTML",e.InsertImage="insertImage",e.InsertOrderedList="insertOrderedList",e.InsertUnorderedList="insertUnorderedList",e.InsertParagraph="insertParagraph",e.InsertText="insertText",e.Italic="italic",e.JustifyCenter="justifyCenter",e.JustifyFull="justifyFull",e.JustifyLeft="justifyLeft",e.JustifyRight="justifyRight",e.Outdent="outdent",e.Paste="paste",e.Redo="redo",e.RemoveFormat="removeFormat",e.SelectAll="selectAll",e.StrikeThrough="strikeThrough",e.Subscript="subscript",e.Superscript="superscript",e.Underline="underline",e.Undo="undo",e.Unlink="unlink",e.StyleWithCSS="styleWithCSS"}(t.CompatibleDocumentCommand||(t.CompatibleDocumentCommand={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleDocumentPosition=void 0,function(e){e[e.Same=0]="Same",e[e.Disconnected=1]="Disconnected",e[e.Preceding=2]="Preceding",e[e.Following=4]="Following",e[e.Contains=8]="Contains",e[e.ContainedBy=16]="ContainedBy"}(t.CompatibleDocumentPosition||(t.CompatibleDocumentPosition={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleEntityClasses=void 0,function(e){e.ENTITY_INFO_NAME="_Entity",e.ENTITY_TYPE_PREFIX="_EType_",e.ENTITY_ID_PREFIX="_EId_",e.ENTITY_READONLY_PREFIX="_EReadonly_"}(t.CompatibleEntityClasses||(t.CompatibleEntityClasses={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleEntityOperation=void 0,function(e){e[e.NewEntity=0]="NewEntity",e[e.Click=1]="Click",e[e.ContextMenu=2]="ContextMenu",e[e.Escape=3]="Escape",e[e.RemoveFromStart=4]="RemoveFromStart",e[e.RemoveFromEnd=5]="RemoveFromEnd",e[e.Overwrite=6]="Overwrite",e[e.PartialOverwrite=7]="PartialOverwrite",e[e.ReplaceTemporaryContent=8]="ReplaceTemporaryContent",e[e.AddShadowRoot=9]="AddShadowRoot",e[e.RemoveShadowRoot=10]="RemoveShadowRoot"}(t.CompatibleEntityOperation||(t.CompatibleEntityOperation={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleExperimentalFeatures=void 0,function(e){e.NewIndentation="NewIndentation",e.NewBullet="NewBullet",e.NewNumbering="NewNumbering",e.ListChain="ListChain",e.MergePastedLine="MergePastedLine",e.SingleDirectionResize="SingleDirectionResize",e.PasteWithLinkPreview="PasteWithLinkPreview",e.ImageRotate="ImageRotate",e.ImageCrop="ImageCrop",e.AlwaysApplyDefaultFormat="AlwaysApplyDefaultFormat",e.ConvertSingleImageBody="ConvertSingleImageBody",e.TableAlignment="TableAlignment",e.TabKeyTextFeatures="TabKeyTextFeatures",e.AdaptiveHandlesResizer="AdaptiveHandlesResizer",e.ListItemAlignment="ListItemAlignment",e.AutoFormatList="AutoFormatList",e.AutoHyphen="AutoHyphen",e.PendingStyleBasedFormat="PendingStyleBasedFormat",e.NormalizeList="NormalizeList",e.ImageSelection="ImageSelection",e.ReuseAllAncestorListElements="ReuseAllAncestorListElements",e.DefaultFormatInSpan="DefaultFormatInSpan"}(t.CompatibleExperimentalFeatures||(t.CompatibleExperimentalFeatures={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleFontSizeChange=void 0,function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(t.CompatibleFontSizeChange||(t.CompatibleFontSizeChange={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleGetContentMode=void 0,function(e){e[e.CleanHTML=0]="CleanHTML",e[e.RawHTMLOnly=1]="RawHTMLOnly",e[e.RawHTMLWithSelection=2]="RawHTMLWithSelection",e[e.PlainText=3]="PlainText",e[e.PlainTextFast=4]="PlainTextFast"}(t.CompatibleGetContentMode||(t.CompatibleGetContentMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleImageEditOperation=void 0,function(e){e[e.None=0]="None",e[e.CornerResize=1]="CornerResize",e[e.SideResize=2]="SideResize",e[e.Resize=3]="Resize",e[e.Rotate=4]="Rotate",e[e.ResizeAndRotate=7]="ResizeAndRotate",e[e.Crop=8]="Crop",e[e.All=15]="All"}(t.CompatibleImageEditOperation||(t.CompatibleImageEditOperation={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleIndentation=void 0,function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(t.CompatibleIndentation||(t.CompatibleIndentation={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleKeys=void 0,function(e){e[e.NULL=0]="NULL",e[e.BACKSPACE=8]="BACKSPACE",e[e.TAB=9]="TAB",e[e.ENTER=13]="ENTER",e[e.SHIFT=16]="SHIFT",e[e.CTRL_LEFT=17]="CTRL_LEFT",e[e.ALT=18]="ALT",e[e.ESCAPE=27]="ESCAPE",e[e.SPACE=32]="SPACE",e[e.PAGEUP=33]="PAGEUP",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN",e[e.PRINT_SCREEN=44]="PRINT_SCREEN",e[e.DELETE=46]="DELETE",e[e.EIGHT_ASTIRISK=56]="EIGHT_ASTIRISK",e[e.EIGHT_ASTERISK=56]="EIGHT_ASTERISK",e[e.B=66]="B",e[e.I=73]="I",e[e.U=85]="U",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.META_LEFT=91]="META_LEFT",e[e.COMMA=188]="COMMA",e[e.DASH_UNDERSCORE=189]="DASH_UNDERSCORE",e[e.PERIOD=190]="PERIOD",e[e.FORWARDSLASH=191]="FORWARDSLASH",e[e.FORWARD_SLASH=191]="FORWARD_SLASH",e[e.GRAVE_TILDE=192]="GRAVE_TILDE",e[e.CONTENTCHANGED=257]="CONTENTCHANGED",e[e.RANGE=258]="RANGE",e[e.Ctrl=4096]="Ctrl",e[e.Meta=8192]="Meta",e[e.Shift=16384]="Shift"}(t.CompatibleKeys||(t.CompatibleKeys={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleKnownCreateElementDataIndex=void 0,function(e){e[e.None=0]="None",e[e.EmptyLine=1]="EmptyLine",e[e.BlockquoteWrapper=2]="BlockquoteWrapper",e[e.CopyPasteTempDiv=3]="CopyPasteTempDiv",e[e.BlockListItem=4]="BlockListItem",e[e.ContextMenuWrapper=5]="ContextMenuWrapper",e[e.ImageEditWrapper=6]="ImageEditWrapper",e[e.TableHorizontalResizer=7]="TableHorizontalResizer",e[e.TableVerticalResizer=8]="TableVerticalResizer",e[e.TableResizerLTR=9]="TableResizerLTR",e[e.TableResizerRTL=10]="TableResizerRTL",e[e.TableSelector=11]="TableSelector",e[e.EmptyLineFormatInSpan=12]="EmptyLineFormatInSpan"}(t.CompatibleKnownCreateElementDataIndex||(t.CompatibleKnownCreateElementDataIndex={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleListType=void 0,function(e){e[e.None=0]="None",e[e.Ordered=1]="Ordered",e[e.Unordered=2]="Unordered"}(t.CompatibleListType||(t.CompatibleListType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleNodeType=void 0,function(e){e[e.Element=1]="Element",e[e.Attribute=2]="Attribute",e[e.Text=3]="Text",e[e.ProcessingInstruction=7]="ProcessingInstruction",e[e.Comment=8]="Comment",e[e.Document=9]="Document",e[e.DocumentType=10]="DocumentType",e[e.DocumentFragment=11]="DocumentFragment"}(t.CompatibleNodeType||(t.CompatibleNodeType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleNumberingListType=void 0,function(e){e[e.Min=1]="Min",e[e.Decimal=1]="Decimal",e[e.DecimalDash=2]="DecimalDash",e[e.DecimalParenthesis=3]="DecimalParenthesis",e[e.DecimalDoubleParenthesis=4]="DecimalDoubleParenthesis",e[e.LowerAlpha=5]="LowerAlpha",e[e.LowerAlphaParenthesis=6]="LowerAlphaParenthesis",e[e.LowerAlphaDoubleParenthesis=7]="LowerAlphaDoubleParenthesis",e[e.LowerAlphaDash=8]="LowerAlphaDash",e[e.UpperAlpha=9]="UpperAlpha",e[e.UpperAlphaParenthesis=10]="UpperAlphaParenthesis",e[e.UpperAlphaDoubleParenthesis=11]="UpperAlphaDoubleParenthesis",e[e.UpperAlphaDash=12]="UpperAlphaDash",e[e.LowerRoman=13]="LowerRoman",e[e.LowerRomanParenthesis=14]="LowerRomanParenthesis",e[e.LowerRomanDoubleParenthesis=15]="LowerRomanDoubleParenthesis",e[e.LowerRomanDash=16]="LowerRomanDash",e[e.UpperRoman=17]="UpperRoman",e[e.UpperRomanParenthesis=18]="UpperRomanParenthesis",e[e.UpperRomanDoubleParenthesis=19]="UpperRomanDoubleParenthesis",e[e.UpperRomanDash=20]="UpperRomanDash",e[e.Max=20]="Max"}(t.CompatibleNumberingListType||(t.CompatibleNumberingListType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatiblePluginEventType=void 0,function(e){e[e.KeyDown=0]="KeyDown",e[e.KeyPress=1]="KeyPress",e[e.KeyUp=2]="KeyUp",e[e.Input=3]="Input",e[e.CompositionEnd=4]="CompositionEnd",e[e.MouseDown=5]="MouseDown",e[e.MouseUp=6]="MouseUp",e[e.ContentChanged=7]="ContentChanged",e[e.ExtractContentWithDom=8]="ExtractContentWithDom",e[e.BeforeCutCopy=9]="BeforeCutCopy",e[e.BeforePaste=10]="BeforePaste",e[e.EditorReady=11]="EditorReady",e[e.BeforeDispose=12]="BeforeDispose",e[e.PendingFormatStateChanged=13]="PendingFormatStateChanged",e[e.Scroll=14]="Scroll",e[e.EntityOperation=15]="EntityOperation",e[e.ContextMenu=16]="ContextMenu",e[e.EnteredShadowEdit=17]="EnteredShadowEdit",e[e.LeavingShadowEdit=18]="LeavingShadowEdit",e[e.EditImage=19]="EditImage",e[e.BeforeSetContent=20]="BeforeSetContent",e[e.ZoomChanged=21]="ZoomChanged",e[e.SelectionChanged=22]="SelectionChanged"}(t.CompatiblePluginEventType||(t.CompatiblePluginEventType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatiblePositionType=void 0,function(e){e[e.Begin=0]="Begin",e[e.End=-1]="End",e[e.Before=-2]="Before",e[e.After=-3]="After"}(t.CompatiblePositionType||(t.CompatiblePositionType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleQueryScope=void 0,function(e){e[e.Body=0]="Body",e[e.OnSelection=1]="OnSelection",e[e.InSelection=2]="InSelection"}(t.CompatibleQueryScope||(t.CompatibleQueryScope={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleRegionType=void 0,function(e){e[e.Table=0]="Table"}(t.CompatibleRegionType||(t.CompatibleRegionType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleSelectionRangeTypes=void 0,function(e){e[e.Normal=0]="Normal",e[e.TableSelection=1]="TableSelection",e[e.ImageSelection=2]="ImageSelection"}(t.CompatibleSelectionRangeTypes||(t.CompatibleSelectionRangeTypes={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleTableBorderFormat=void 0,function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LIST_WITH_SIDE_BORDERS=1]="LIST_WITH_SIDE_BORDERS",e[e.NO_HEADER_BORDERS=2]="NO_HEADER_BORDERS",e[e.NO_SIDE_BORDERS=3]="NO_SIDE_BORDERS",e[e.FIRST_COLUMN_HEADER_EXTERNAL=4]="FIRST_COLUMN_HEADER_EXTERNAL",e[e.ESPECIAL_TYPE_1=5]="ESPECIAL_TYPE_1",e[e.ESPECIAL_TYPE_2=6]="ESPECIAL_TYPE_2",e[e.ESPECIAL_TYPE_3=7]="ESPECIAL_TYPE_3",e[e.CLEAR=8]="CLEAR"}(t.CompatibleTableBorderFormat||(t.CompatibleTableBorderFormat={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleTableOperation=void 0,function(e){e[e.InsertAbove=0]="InsertAbove",e[e.InsertBelow=1]="InsertBelow",e[e.InsertLeft=2]="InsertLeft",e[e.InsertRight=3]="InsertRight",e[e.DeleteTable=4]="DeleteTable",e[e.DeleteColumn=5]="DeleteColumn",e[e.DeleteRow=6]="DeleteRow",e[e.MergeAbove=7]="MergeAbove",e[e.MergeBelow=8]="MergeBelow",e[e.MergeLeft=9]="MergeLeft",e[e.MergeRight=10]="MergeRight",e[e.MergeCells=11]="MergeCells",e[e.SplitHorizontally=12]="SplitHorizontally",e[e.SplitVertically=13]="SplitVertically",e[e.AlignCenter=14]="AlignCenter",e[e.AlignLeft=15]="AlignLeft",e[e.AlignRight=16]="AlignRight",e[e.AlignCellLeft=17]="AlignCellLeft",e[e.AlignCellCenter=18]="AlignCellCenter",e[e.AlignCellRight=19]="AlignCellRight",e[e.AlignCellTop=20]="AlignCellTop",e[e.AlignCellMiddle=21]="AlignCellMiddle",e[e.AlignCellBottom=22]="AlignCellBottom"}(t.CompatibleTableOperation||(t.CompatibleTableOperation={}))}])}));
1
+ define((function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=123)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIntersectedRect=t.moveChildNodes=t.KnownCreateElementData=t.createElement=t.matchesSelector=t.setColor=t.getInnerHTML=t.readFile=t.safeInstanceOf=t.normalizeRect=t.splitTextNode=t.getLastLeafNode=t.getFirstLeafNode=t.getPreviousLeafSibling=t.getNextLeafSibling=t.wrap=t.unwrap=t.splitBalancedNodeRange=t.splitParentNode=t.queryElements=t.matchLink=t.isVoidHtmlElement=t.isNodeEmpty=t.isBlockElement=t.getTagOfNode=t.PendableFormatCommandMap=t.getPendableFormatState=t.getComputedStyle=t.getComputedStyles=t.fromHtml=t.findClosestElementAncestor=t.contains=t.collapseNodes=t.changeElementTag=t.applyFormat=t.getBrowserInfo=t.Browser=t.extractClipboardItemsForIE=t.extractClipboardItems=t.extractClipboardEvent=t.applyTextStyle=t.PartialInlineElement=t.NodeInlineElement=t.LinkInlineElement=t.ImageInlineElement=t.getInlineElementAtNode=t.PositionContentSearcher=t.ContentTraverser=t.getFirstLastBlockElement=t.getBlockElementAtNode=void 0,t.getStyles=t.isCtrlOrMetaPressed=t.isCharacterValue=t.isModifierKey=t.clearEventDataCache=t.cacheGetEventData=t.restoreContentWithEntityPlaceholder=t.moveContentWithEntityPlaceholders=t.createEntityPlaceholder=t.getEntitySelector=t.getEntityFromElement=t.commitEntity=t.chainSanitizerCallback=t.createDefaultHtmlSanitizerOptions=t.getInheritableStyles=t.HtmlSanitizer=t.canUndoAutoComplete=t.createSnapshots=t.moveCurrentSnapsnot=t.moveCurrentSnapshot=t.clearProceedingSnapshotsV2=t.clearProceedingSnapshots=t.canMoveCurrentSnapshot=t.addSnapshotV2=t.addSnapshot=t.addRangeToSelection=t.setHtmlWithMetadata=t.setHtmlWithSelectionPath=t.getHtmlWithSelectionPath=t.getSelectionPath=t.isPositionAtBeginningOf=t.getPositionRect=t.createRange=t.Position=t.mergeBlocksInRegion=t.getSelectionRangeInRegion=t.isNodeInRegion=t.collapseNodesInRegion=t.getSelectedBlockElementsInRegion=t.getRegionsFromRange=t.saveTableCellMetadata=t.getTableFormatInfo=t.setListItemStyle=t.VListChain=t.createVListFromRegion=t.VListItem=t.VList=t.isWholeTableSelected=t.VTable=t.isNodeAfter=void 0,t.toArray=t.getObjectKeys=t.arrayPush=t.removeMetadata=t.setMetadata=t.getMetadata=t.createObjectDefinition=t.createArrayDefinition=t.createStringDefinition=t.createBooleanDefinition=t.createNumberDefinition=t.validate=t.getTextContent=t.deleteSelectedContent=t.adjustInsertPosition=t.removeGlobalCssStyle=t.setGlobalCssStyles=t.removeImportantStyleRule=t.setStyles=void 0;var r=n(7);Object.defineProperty(t,"getBlockElementAtNode",{enumerable:!0,get:function(){return r.default}});var o=n(66);Object.defineProperty(t,"getFirstLastBlockElement",{enumerable:!0,get:function(){return o.default}});var i=n(19);Object.defineProperty(t,"ContentTraverser",{enumerable:!0,get:function(){return i.default}});var a=n(71);Object.defineProperty(t,"PositionContentSearcher",{enumerable:!0,get:function(){return a.default}});var l=n(20);Object.defineProperty(t,"getInlineElementAtNode",{enumerable:!0,get:function(){return l.default}});var s=n(67);Object.defineProperty(t,"ImageInlineElement",{enumerable:!0,get:function(){return s.default}});var u=n(47);Object.defineProperty(t,"LinkInlineElement",{enumerable:!0,get:function(){return u.default}});var d=n(35);Object.defineProperty(t,"NodeInlineElement",{enumerable:!0,get:function(){return d.default}});var c=n(37);Object.defineProperty(t,"PartialInlineElement",{enumerable:!0,get:function(){return c.default}});var f=n(45);Object.defineProperty(t,"applyTextStyle",{enumerable:!0,get:function(){return f.default}});var h=n(134);Object.defineProperty(t,"extractClipboardEvent",{enumerable:!0,get:function(){return h.default}});var p=n(72);Object.defineProperty(t,"extractClipboardItems",{enumerable:!0,get:function(){return p.default}});var g=n(73);Object.defineProperty(t,"extractClipboardItemsForIE",{enumerable:!0,get:function(){return g.default}});var v=n(18);Object.defineProperty(t,"Browser",{enumerable:!0,get:function(){return v.Browser}}),Object.defineProperty(t,"getBrowserInfo",{enumerable:!0,get:function(){return v.getBrowserInfo}});var m=n(135);Object.defineProperty(t,"applyFormat",{enumerable:!0,get:function(){return m.default}});var b=n(21);Object.defineProperty(t,"changeElementTag",{enumerable:!0,get:function(){return b.default}});var y=n(26);Object.defineProperty(t,"collapseNodes",{enumerable:!0,get:function(){return y.default}});var C=n(4);Object.defineProperty(t,"contains",{enumerable:!0,get:function(){return C.default}});var E=n(14);Object.defineProperty(t,"findClosestElementAncestor",{enumerable:!0,get:function(){return E.default}});var S=n(65);Object.defineProperty(t,"fromHtml",{enumerable:!0,get:function(){return S.default}});var w=n(46);Object.defineProperty(t,"getComputedStyles",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"getComputedStyle",{enumerable:!0,get:function(){return w.getComputedStyle}});var T=n(136);Object.defineProperty(t,"getPendableFormatState",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"PendableFormatCommandMap",{enumerable:!0,get:function(){return T.PendableFormatCommandMap}});var O=n(2);Object.defineProperty(t,"getTagOfNode",{enumerable:!0,get:function(){return O.default}});var P=n(27);Object.defineProperty(t,"isBlockElement",{enumerable:!0,get:function(){return P.default}});var _=n(38);Object.defineProperty(t,"isNodeEmpty",{enumerable:!0,get:function(){return _.default}});var M=n(44);Object.defineProperty(t,"isVoidHtmlElement",{enumerable:!0,get:function(){return M.default}});var x=n(137);Object.defineProperty(t,"matchLink",{enumerable:!0,get:function(){return x.default}});var N=n(23);Object.defineProperty(t,"queryElements",{enumerable:!0,get:function(){return N.default}});var R=n(17);Object.defineProperty(t,"splitParentNode",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"splitBalancedNodeRange",{enumerable:!0,get:function(){return R.splitBalancedNodeRange}});var I=n(39);Object.defineProperty(t,"unwrap",{enumerable:!0,get:function(){return I.default}});var L=n(15);Object.defineProperty(t,"wrap",{enumerable:!0,get:function(){return L.default}});var k=n(10);Object.defineProperty(t,"getNextLeafSibling",{enumerable:!0,get:function(){return k.getNextLeafSibling}}),Object.defineProperty(t,"getPreviousLeafSibling",{enumerable:!0,get:function(){return k.getPreviousLeafSibling}});var D=n(69);Object.defineProperty(t,"getFirstLeafNode",{enumerable:!0,get:function(){return D.getFirstLeafNode}}),Object.defineProperty(t,"getLastLeafNode",{enumerable:!0,get:function(){return D.getLastLeafNode}});var A=n(36);Object.defineProperty(t,"splitTextNode",{enumerable:!0,get:function(){return A.default}});var j=n(40);Object.defineProperty(t,"normalizeRect",{enumerable:!0,get:function(){return j.default}});var B=n(1);Object.defineProperty(t,"safeInstanceOf",{enumerable:!0,get:function(){return B.default}});var F=n(49);Object.defineProperty(t,"readFile",{enumerable:!0,get:function(){return F.default}});var z=n(74);Object.defineProperty(t,"getInnerHTML",{enumerable:!0,get:function(){return z.default}});var H=n(50);Object.defineProperty(t,"setColor",{enumerable:!0,get:function(){return H.default}});var U=n(64);Object.defineProperty(t,"matchesSelector",{enumerable:!0,get:function(){return U.default}});var V=n(28);Object.defineProperty(t,"createElement",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"KnownCreateElementData",{enumerable:!0,get:function(){return V.KnownCreateElementData}});var W=n(22);Object.defineProperty(t,"moveChildNodes",{enumerable:!0,get:function(){return W.default}});var K=n(138);Object.defineProperty(t,"getIntersectedRect",{enumerable:!0,get:function(){return K.default}});var q=n(13);Object.defineProperty(t,"isNodeAfter",{enumerable:!0,get:function(){return q.default}});var G=n(75);Object.defineProperty(t,"VTable",{enumerable:!0,get:function(){return G.default}});var Y=n(140);Object.defineProperty(t,"isWholeTableSelected",{enumerable:!0,get:function(){return Y.default}});var X=n(53);Object.defineProperty(t,"VList",{enumerable:!0,get:function(){return X.default}});var Z=n(77);Object.defineProperty(t,"VListItem",{enumerable:!0,get:function(){return Z.default}});var $=n(145);Object.defineProperty(t,"createVListFromRegion",{enumerable:!0,get:function(){return $.default}});var Q=n(146);Object.defineProperty(t,"VListChain",{enumerable:!0,get:function(){return Q.default}});var J=n(78);Object.defineProperty(t,"setListItemStyle",{enumerable:!0,get:function(){return J.default}});var ee=n(76);Object.defineProperty(t,"getTableFormatInfo",{enumerable:!0,get:function(){return ee.getTableFormatInfo}});var te=n(51);Object.defineProperty(t,"saveTableCellMetadata",{enumerable:!0,get:function(){return te.saveTableCellMetadata}});var ne=n(81);Object.defineProperty(t,"getRegionsFromRange",{enumerable:!0,get:function(){return ne.default}});var re=n(80);Object.defineProperty(t,"getSelectedBlockElementsInRegion",{enumerable:!0,get:function(){return re.default}});var oe=n(82);Object.defineProperty(t,"collapseNodesInRegion",{enumerable:!0,get:function(){return oe.default}});var ie=n(33);Object.defineProperty(t,"isNodeInRegion",{enumerable:!0,get:function(){return ie.default}});var ae=n(55);Object.defineProperty(t,"getSelectionRangeInRegion",{enumerable:!0,get:function(){return ae.default}});var le=n(83);Object.defineProperty(t,"mergeBlocksInRegion",{enumerable:!0,get:function(){return le.default}});var se=n(5);Object.defineProperty(t,"Position",{enumerable:!0,get:function(){return se.default}});var ue=n(11);Object.defineProperty(t,"createRange",{enumerable:!0,get:function(){return ue.default}});var de=n(147);Object.defineProperty(t,"getPositionRect",{enumerable:!0,get:function(){return de.default}});var ce=n(85);Object.defineProperty(t,"isPositionAtBeginningOf",{enumerable:!0,get:function(){return ce.default}});var fe=n(86);Object.defineProperty(t,"getSelectionPath",{enumerable:!0,get:function(){return fe.default}});var he=n(148);Object.defineProperty(t,"getHtmlWithSelectionPath",{enumerable:!0,get:function(){return he.default}});var pe=n(149);Object.defineProperty(t,"setHtmlWithSelectionPath",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"setHtmlWithMetadata",{enumerable:!0,get:function(){return pe.setHtmlWithMetadata}});var ge=n(150);Object.defineProperty(t,"addRangeToSelection",{enumerable:!0,get:function(){return ge.default}});var ve=n(151);Object.defineProperty(t,"addSnapshot",{enumerable:!0,get:function(){return ve.default}}),Object.defineProperty(t,"addSnapshotV2",{enumerable:!0,get:function(){return ve.addSnapshotV2}});var me=n(57);Object.defineProperty(t,"canMoveCurrentSnapshot",{enumerable:!0,get:function(){return me.default}});var be=n(87);Object.defineProperty(t,"clearProceedingSnapshots",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(t,"clearProceedingSnapshotsV2",{enumerable:!0,get:function(){return be.clearProceedingSnapshotsV2}});var ye=n(152);Object.defineProperty(t,"moveCurrentSnapshot",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(t,"moveCurrentSnapsnot",{enumerable:!0,get:function(){return ye.moveCurrentSnapsnot}});var Ce=n(153);Object.defineProperty(t,"createSnapshots",{enumerable:!0,get:function(){return Ce.default}});var Ee=n(154);Object.defineProperty(t,"canUndoAutoComplete",{enumerable:!0,get:function(){return Ee.default}});var Se=n(155);Object.defineProperty(t,"HtmlSanitizer",{enumerable:!0,get:function(){return Se.default}});var we=n(88);Object.defineProperty(t,"getInheritableStyles",{enumerable:!0,get:function(){return we.default}});var Te=n(158);Object.defineProperty(t,"createDefaultHtmlSanitizerOptions",{enumerable:!0,get:function(){return Te.default}});var Oe=n(159);Object.defineProperty(t,"chainSanitizerCallback",{enumerable:!0,get:function(){return Oe.default}});var Pe=n(160);Object.defineProperty(t,"commitEntity",{enumerable:!0,get:function(){return Pe.default}});var _e=n(90);Object.defineProperty(t,"getEntityFromElement",{enumerable:!0,get:function(){return _e.default}});var Me=n(91);Object.defineProperty(t,"getEntitySelector",{enumerable:!0,get:function(){return Me.default}});var xe=n(161);Object.defineProperty(t,"createEntityPlaceholder",{enumerable:!0,get:function(){return xe.createEntityPlaceholder}}),Object.defineProperty(t,"moveContentWithEntityPlaceholders",{enumerable:!0,get:function(){return xe.moveContentWithEntityPlaceholders}}),Object.defineProperty(t,"restoreContentWithEntityPlaceholder",{enumerable:!0,get:function(){return xe.restoreContentWithEntityPlaceholder}});var Ne=n(162);Object.defineProperty(t,"cacheGetEventData",{enumerable:!0,get:function(){return Ne.default}});var Re=n(163);Object.defineProperty(t,"clearEventDataCache",{enumerable:!0,get:function(){return Re.default}});var Ie=n(92);Object.defineProperty(t,"isModifierKey",{enumerable:!0,get:function(){return Ie.default}});var Le=n(164);Object.defineProperty(t,"isCharacterValue",{enumerable:!0,get:function(){return Le.default}});var ke=n(165);Object.defineProperty(t,"isCtrlOrMetaPressed",{enumerable:!0,get:function(){return ke.default}});var De=n(31);Object.defineProperty(t,"getStyles",{enumerable:!0,get:function(){return De.default}});var Ae=n(32);Object.defineProperty(t,"setStyles",{enumerable:!0,get:function(){return Ae.default}});var je=n(166);Object.defineProperty(t,"removeImportantStyleRule",{enumerable:!0,get:function(){return je.default}});var Be=n(167);Object.defineProperty(t,"setGlobalCssStyles",{enumerable:!0,get:function(){return Be.default}});var Fe=n(168);Object.defineProperty(t,"removeGlobalCssStyle",{enumerable:!0,get:function(){return Fe.default}});var ze=n(169);Object.defineProperty(t,"adjustInsertPosition",{enumerable:!0,get:function(){return ze.default}});var He=n(172);Object.defineProperty(t,"deleteSelectedContent",{enumerable:!0,get:function(){return He.default}});var Ue=n(173);Object.defineProperty(t,"getTextContent",{enumerable:!0,get:function(){return Ue.default}});var Ve=n(52);Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return Ve.default}});var We=n(30);Object.defineProperty(t,"createNumberDefinition",{enumerable:!0,get:function(){return We.createNumberDefinition}}),Object.defineProperty(t,"createBooleanDefinition",{enumerable:!0,get:function(){return We.createBooleanDefinition}}),Object.defineProperty(t,"createStringDefinition",{enumerable:!0,get:function(){return We.createStringDefinition}}),Object.defineProperty(t,"createArrayDefinition",{enumerable:!0,get:function(){return We.createArrayDefinition}}),Object.defineProperty(t,"createObjectDefinition",{enumerable:!0,get:function(){return We.createObjectDefinition}});var Ke=n(24);Object.defineProperty(t,"getMetadata",{enumerable:!0,get:function(){return Ke.getMetadata}}),Object.defineProperty(t,"setMetadata",{enumerable:!0,get:function(){return Ke.setMetadata}}),Object.defineProperty(t,"removeMetadata",{enumerable:!0,get:function(){return Ke.removeMetadata}});var qe=n(56);Object.defineProperty(t,"arrayPush",{enumerable:!0,get:function(){return qe.default}});var Ge=n(8);Object.defineProperty(t,"getObjectKeys",{enumerable:!0,get:function(){return Ge.default}});var Ye=n(6);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return Ye.default}})},function(e,t,n){"use strict";function r(e){var t=e&&(e.ownerDocument||("[object HTMLDocument]"==Object.prototype.toString.apply(e)?e:null));return t&&(t.defaultView||window)}Object.defineProperty(t,"__esModule",{value:!0}),t.getTargetWindow=void 0,t.getTargetWindow=r,t.default=function(e,t){var n;if("Range"==t)return"[object Range]"==Object.prototype.toString.apply(e)&&!!(null===(n=e)||void 0===n?void 0:n.commonAncestorContainer);var o=r(e),i=o&&o[t],a=window,l=a&&a[t];return l&&e instanceof l||i&&e instanceof i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&1==e.nodeType?e.tagName.toUpperCase():""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){e.addUndoSnapshot(t,"Format",void 0,n&&{formatApiName:n})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default=function(e,t,n){return!(!e||!t)&&(!(!n||e!=t)||((0,r.default)(t,"Range")&&(t=t&&t.commonAncestorContainer,n=!0),t&&3==t.nodeType&&(t=t.parentNode,n=!0),1!=e.nodeType&&11!=e.nodeType?!!n&&e==t:!(!n&&e==t)&&function(e,t){if(e.contains)return e.contains(t);for(;t;){if(t==e)return!0;t=t.parentNode}return!1}(e,t)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),o=n(13),i=function(){function e(e,t,n){switch(void 0===t&&(t=0),this.isFromEndOfRange=n,e.node?(this.node=e.node,t=e.offset):this.node=e,t){case-2:this.offset=a(this.node),this.node=this.node.parentNode,this.isAtEnd=!1;break;case-3:this.offset=a(this.node)+1,this.isAtEnd=!this.node.nextSibling,this.node=this.node.parentNode;break;case-1:this.offset=l(this.node),this.isAtEnd=!0;break;default:var o=l(this.node);this.offset=Math.max(0,Math.min(t,o)),this.isAtEnd=t>0&&t>=o}this.element=(0,r.default)(this.node)}return e.prototype.normalize=function(){if(3==this.node.nodeType||!this.node.firstChild)return this;for(var t=this.node,n=this.isAtEnd?-1:this.offset;1==t.nodeType||11==t.nodeType;){var r=this.isFromEndOfRange?-1==n?t.lastChild:t.childNodes[n-1]:0==n?t.firstChild:-1==n?t.lastChild:t.childNodes[n];if(!r)break;t=r,n=this.isAtEnd||this.isFromEndOfRange?-1:0}return new e(t,n,this.isFromEndOfRange)},e.prototype.equalTo=function(e){return e&&(this==e||this.node==e.node&&this.offset==e.offset&&this.isAtEnd==e.isAtEnd)},e.prototype.isAfter=function(e){return this.node==e.node?this.isAtEnd&&!e.isAtEnd||this.offset>e.offset:(0,o.default)(this.node,e.node)},e.prototype.move=function(t){return new e(this.node,Math.max(this.offset+t,0))},e.getStart=function(t){return new e(t.startContainer,t.startOffset)},e.getEnd=function(t){return t.collapsed?e.getStart(t):new e(t.endContainer,t.endOffset,!0)},e}();function a(e){for(var t=0;e=(null==e?void 0:e.previousSibling)||null;)t++;return t}function l(e){var t;return 3==e.nodeType?(null===(t=e.nodeValue)||void 0===t?void 0:t.length)||0:1==e.nodeType||11==e.nodeType?e.childNodes.length:1}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),o=n(4),i=n(2),a=n(27),l=n(63),s=n(130);function u(e,t,n){var r=e;if("BR"==(0,i.default)(r)&&n)return r;for(;r;){for(var o=e;e.parentNode&&!(o=n?e.nextSibling:e.previousSibling);)if((e=e.parentNode)==t)return r;for(;o;){if((0,a.default)(o))return r;if("BR"==(0,i.default)(o))return n?o:r;e=o,o=n?e.firstChild:e.lastChild}r=e}return r}t.default=function(e,t){if(!(0,o.default)(e,t))return null;var n=s.default.getBlockContext(t);if(!n)return null;if(n==t)return new l.default(n);var i=u(t,n,!1),d=u(t,n,!0),c=(0,r.default)(e,i,d,!1);if(i=c[0],d=c[c.length-1],i.parentNode!=d.parentNode)return new s.default(e,i,d);for(;!i.previousSibling&&!d.nextSibling;){var f=i.parentNode;if(f==n){n!=e&&(i=d=f);break}if(!f||f==e)break;i=d=f}return i==d&&(0,a.default)(i)?new l.default(i):new s.default(e,i,d)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.experimentCommitListChains=t.commitListChains=t.blockFormat=t.toggleListType=t.applyCellShading=t.toggleHeader=t.toggleUnderline=t.toggleSuperscript=t.toggleSubscript=t.toggleStrikethrough=t.toggleCodeBlock=t.toggleBlockQuote=t.setOrderedListNumbering=t.toggleNumbering=t.toggleItalic=t.toggleBullet=t.toggleBold=t.changeCapitalization=t.setIndentation=t.setImageAltText=t.setFontSize=t.setFontName=t.setDirection=t.setTextColor=t.setBackgroundColor=t.setAlignment=t.rotateElement=t.replaceWithNode=t.removeLink=t.formatTable=t.editTable=t.insertTable=t.insertImage=t.insertEntity=t.getElementBasedFormatState=t.getFormatState=t.createLink=t.clearFormat=t.clearBlockFormat=t.FONT_SIZES=t.changeFontSize=void 0;var r=n(215);Object.defineProperty(t,"changeFontSize",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"FONT_SIZES",{enumerable:!0,get:function(){return r.FONT_SIZES}});var o=n(216);Object.defineProperty(t,"clearBlockFormat",{enumerable:!0,get:function(){return o.default}});var i=n(100);Object.defineProperty(t,"clearFormat",{enumerable:!0,get:function(){return i.default}});var a=n(217);Object.defineProperty(t,"createLink",{enumerable:!0,get:function(){return a.default}});var l=n(218);Object.defineProperty(t,"getFormatState",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"getElementBasedFormatState",{enumerable:!0,get:function(){return l.getElementBasedFormatState}});var s=n(219);Object.defineProperty(t,"insertEntity",{enumerable:!0,get:function(){return s.default}});var u=n(220);Object.defineProperty(t,"insertImage",{enumerable:!0,get:function(){return u.default}});var d=n(221);Object.defineProperty(t,"insertTable",{enumerable:!0,get:function(){return d.default}});var c=n(222);Object.defineProperty(t,"editTable",{enumerable:!0,get:function(){return c.default}});var f=n(223);Object.defineProperty(t,"formatTable",{enumerable:!0,get:function(){return f.default}});var h=n(224);Object.defineProperty(t,"removeLink",{enumerable:!0,get:function(){return h.default}});var p=n(225);Object.defineProperty(t,"replaceWithNode",{enumerable:!0,get:function(){return p.default}});var g=n(226);Object.defineProperty(t,"rotateElement",{enumerable:!0,get:function(){return g.default}});var v=n(227);Object.defineProperty(t,"setAlignment",{enumerable:!0,get:function(){return v.default}});var m=n(59);Object.defineProperty(t,"setBackgroundColor",{enumerable:!0,get:function(){return m.default}});var b=n(103);Object.defineProperty(t,"setTextColor",{enumerable:!0,get:function(){return b.default}});var y=n(228);Object.defineProperty(t,"setDirection",{enumerable:!0,get:function(){return y.default}});var C=n(101);Object.defineProperty(t,"setFontName",{enumerable:!0,get:function(){return C.default}});var E=n(102);Object.defineProperty(t,"setFontSize",{enumerable:!0,get:function(){return E.default}});var S=n(230);Object.defineProperty(t,"setImageAltText",{enumerable:!0,get:function(){return S.default}});var w=n(231);Object.defineProperty(t,"setIndentation",{enumerable:!0,get:function(){return w.default}});var T=n(232);Object.defineProperty(t,"changeCapitalization",{enumerable:!0,get:function(){return T.default}});var O=n(104);Object.defineProperty(t,"toggleBold",{enumerable:!0,get:function(){return O.default}});var P=n(233);Object.defineProperty(t,"toggleBullet",{enumerable:!0,get:function(){return P.default}});var _=n(105);Object.defineProperty(t,"toggleItalic",{enumerable:!0,get:function(){return _.default}});var M=n(234);Object.defineProperty(t,"toggleNumbering",{enumerable:!0,get:function(){return M.default}});var x=n(235);Object.defineProperty(t,"setOrderedListNumbering",{enumerable:!0,get:function(){return x.default}});var N=n(236);Object.defineProperty(t,"toggleBlockQuote",{enumerable:!0,get:function(){return N.default}});var R=n(237);Object.defineProperty(t,"toggleCodeBlock",{enumerable:!0,get:function(){return R.default}});var I=n(238);Object.defineProperty(t,"toggleStrikethrough",{enumerable:!0,get:function(){return I.default}});var L=n(239);Object.defineProperty(t,"toggleSubscript",{enumerable:!0,get:function(){return L.default}});var k=n(240);Object.defineProperty(t,"toggleSuperscript",{enumerable:!0,get:function(){return k.default}});var D=n(106);Object.defineProperty(t,"toggleUnderline",{enumerable:!0,get:function(){return D.default}});var A=n(241);Object.defineProperty(t,"toggleHeader",{enumerable:!0,get:function(){return A.default}});var j=n(242);Object.defineProperty(t,"applyCellShading",{enumerable:!0,get:function(){return j.default}});var B=n(60);Object.defineProperty(t,"toggleListType",{enumerable:!0,get:function(){return B.default}});var F=n(25);Object.defineProperty(t,"blockFormat",{enumerable:!0,get:function(){return F.default}});var z=n(58);Object.defineProperty(t,"commitListChains",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"experimentCommitListChains",{enumerable:!0,get:function(){return z.experimentCommitListChains}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPreviousLeafSibling=t.getNextLeafSibling=t.getLeafSibling=void 0;var r=n(4),o=n(2),i=n(29);function a(e,t,n,a,l){var s=null,u=n?function(e){return(null==e?void 0:e.nextSibling)||null}:function(e){return(null==e?void 0:e.previousSibling)||null},d=n?function(e){return e.firstChild}:function(e){return e.lastChild};if((0,r.default)(e,t))for(var c=t,f=!0;f;){var h=(null==c?void 0:c.parentNode)||null;for(c=u(c);!c&&h!=e;)c=u(h),h=(null==h?void 0:h.parentNode)||null;for(;c&&(!a||a.indexOf((0,o.default)(c))<0)&&d(c);)c=d(c);if(!(f=!!c&&(0,i.default)(c,l))){s=c;break}}return s}t.getLeafSibling=a,t.getNextLeafSibling=function(e,t,n){return a(e,t,!0,n)},t.getPreviousLeafSibling=function(e,t,n){return a(e,t,!1,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(44),o=n(5),i=n(1);function a(e){return 1==e.node.nodeType&&(0,r.default)(e.node)?new o.default(e.node,e.isAtEnd?-3:-2):e}function l(e){return e&&e.node}function s(e,t){if(!e||!t)return null;for(var n=0,r=0;r<t.length&&(n=t[r],r<t.length-1&&e&&1==e.nodeType&&e.childNodes.length>n);r++)e=e.childNodes[n];return new o.default(e,n)}t.default=function(e,t,n,r){var u,d=null,c=null;if(l(e)?(d=e,c=l(t)?t:null):(0,i.default)(e,"Node")&&(Array.isArray(t)?(d=s(e,t),c=Array.isArray(n)?s(e,n):null):"number"==typeof t?(d=new o.default(e,t),c=(0,i.default)(n,"Node")?new o.default(n,r):null):!(0,i.default)(t,"Node")&&t||(d=new o.default(e,-2),c=new o.default(t||e,-3))),null===(u=null==d?void 0:d.node)||void 0===u?void 0:u.ownerDocument){var f=d.node.ownerDocument.createRange();return d=a(d),c=a(c||d),f.setStart(d.node,d.offset),f.setEnd(c.node,c.offset),f}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t,n){e.focus();var i=function(){return e.getDocument().execCommand(t,!1,null)},a=e.getSelectionRangeEx();if(a&&a.areAllCollapsed){e.addUndoSnapshot();var l=e.getPendableFormatState(!1);i();var s=(0,o.getObjectKeys)(o.PendableFormatCommandMap).filter((function(e){return o.PendableFormatCommandMap[e]==t}))[0];s&&(l[s]=!l[s],e.triggerPluginEvent(13,{formatState:l}))}else(0,r.default)(e,(function(){var t=0!=a.type;a.ranges.forEach((function(n){t&&e.select(n),i()})),t&&e.select(a)}),n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!e||!t||4!=(4&t.compareDocumentPosition(e)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(64);t.default=function(e,t,n){var i=(e=e?1==e.nodeType?e:e.parentNode:null)&&1==e.nodeType?e:null;if(i&&n)if(i.closest)i=i.closest(n);else for(;i&&i!=t&&!(0,o.default)(i,n);)i=i.parentElement;return!t||(0,r.default)(t,i)?i:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),o=n(65),i=n(1);t.default=function(e,t){if(0==(e=e?(0,i.default)(e,"Node")?[e]:e:[]).length||!e[0]||!e[0].ownerDocument)return null;if(t||(t="div"),!(0,i.default)(t,"HTMLElement")){var n=e[0].ownerDocument;t="string"==typeof t?/^\w+$/.test(t)?n.createElement(t):(0,o.default)(t,n)[0]:(0,r.default)(t,n)}var a=e[0].parentNode;a&&a.insertBefore(t,e[0]);for(var l=0,s=e;l<s.length;l++){var u=s[l];t.appendChild(u)}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WAC_IDENTIFY_SELECTOR=t.PROG_ID_NAME=t.GOOGLE_SHEET_NODE_NAME=void 0,t.GOOGLE_SHEET_NODE_NAME="google-sheets-html-origin",t.PROG_ID_NAME="ProgId",t.WAC_IDENTIFY_SELECTOR='ul[class^="BulletListStyle"]>.OutlineElement,ol[class^="NumberListStyle"]>.OutlineElement,span.WACImageContainer'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitBalancedNodeRange=void 0;var r=n(13);function o(e,t){var n;if(!e||!e.parentNode)return null;var r=e.parentNode,o=r.cloneNode(!1);if(o.removeAttribute("id"),t)for(;r.firstChild&&r.firstChild!=e;)o.appendChild(r.firstChild);else for(;e.nextSibling;)o.appendChild(e.nextSibling);return o.firstChild&&""!=o.innerHTML?null===(n=r.parentNode)||void 0===n||n.insertBefore(o,t?r:r.nextSibling):o=null,o}t.default=o,t.splitBalancedNodeRange=function(e){var t=Array.isArray(e)?e[0]:e,n=Array.isArray(e)?e[e.length-1]:e,i=t&&n&&t.parentNode==n.parentNode?t.parentNode:null;if(i){if((0,r.default)(t,n)){var a=n;n=t,t=a}o(t,!0),o(n,!1)}return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Browser=t.getBrowserInfo=void 0;var r=/android/i;function o(e,t,n){var o,i=-1!=e.indexOf("rv:")&&-1!=e.indexOf("Trident"),a=-1!=e.indexOf("MSIE")||i,l=!1,s=!1,u=!1,d=!1,c=-1!=e.indexOf("WebKit"),f=!1;return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(o=e||n||"")||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(o.substr(0,4)))&&(f=!0),a||(l=-1!=e.indexOf("Chrome"),s=-1!=e.indexOf("Firefox"),-1!=e.indexOf("Safari")&&(u=-1==e.indexOf("Chrome")&&-1==e.indexOf("Android")),(d=-1!=e.indexOf("Edge"))&&(c=l=s=!1)),{isMac:-1!=t.indexOf("Mac"),isWin:-1!=t.indexOf("Win")||-1!=t.indexOf("NT"),isWebKit:c,isIE:a,isIE11OrGreater:i,isSafari:u,isChrome:l,isFirefox:s,isEdge:d,isIEOrEdge:a||d,isAndroid:r.test(e),isMobileOrTablet:f}}t.getBrowserInfo=o,t.Browser="undefined"!=typeof window&&window?o(window.navigator.userAgent,window.navigator.appVersion,window.navigator.vendor):{}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(131),o=n(70),i=n(7),a=n(20),l=n(37),s=n(132),u=n(133),d=n(48),c=n(10),f=function(){function e(e,t){this.scoper=e,this.skipTags=t,this.currentInline=null,this.currentBlock=null}return e.createBodyTraverser=function(t,n,o){return new e(new r.default(t,n))},e.createSelectionTraverser=function(t,n,r){return new e(new u.default(t,n),r)},e.createBlockTraverser=function(t,n,r,o){return void 0===r&&(r=3),new e(new s.default(t,n,r))},Object.defineProperty(e.prototype,"currentBlockElement",{get:function(){return this.currentBlock||(this.currentBlock=this.scoper.getStartBlockElement()),this.currentBlock},enumerable:!1,configurable:!0}),e.prototype.getNextBlockElement=function(){return this.getPreviousNextBlockElement(!0)},e.prototype.getPreviousBlockElement=function(){return this.getPreviousNextBlockElement(!1)},e.prototype.getPreviousNextBlockElement=function(e){var t=this.currentBlockElement;if(!t)return null;var n=(0,c.getLeafSibling)(this.scoper.rootNode,e?t.getEndNode():t.getStartNode(),e,this.skipTags),r=n?(0,i.default)(this.scoper.rootNode,n):null;return r&&this.scoper.isBlockInScope(r)&&(e&&r.isAfter(t)||!e&&t.isAfter(r))?(this.currentBlock=r,this.currentBlock):null},Object.defineProperty(e.prototype,"currentInlineElement",{get:function(){return this.currentInline||(this.currentInline=this.scoper.getStartInlineElement()),this.currentInline instanceof o.default?null:this.currentInline},enumerable:!1,configurable:!0}),e.prototype.getNextInlineElement=function(){return this.getPreviousNextInlineElement(!0)},e.prototype.getPreviousInlineElement=function(){return this.getPreviousNextInlineElement(!1)},e.prototype.getPreviousNextInlineElement=function(e){var t,n=this.currentInlineElement||this.currentInline;return n?(n instanceof o.default?(t=(0,d.getInlineElementBeforeAfter)(this.scoper.rootNode,n.getStartPosition(),e))&&!n.getParentBlock().contains(t.getContainerNode())&&(t=null):t=(t=function(e,t,n){if(!t)return null;if(t instanceof l.default){var r=n?t.nextInlineElement:t.previousInlineElement;if(r)return r}var o=t.getContainerNode();return o=(0,c.getLeafSibling)(e,o,n),(0,a.default)(e,o)}(this.scoper.rootNode,n,e))&&n&&(e&&t.isAfter(n)||!e&&n.isAfter(t))?t:null,t&&(t=this.scoper.trimInlineElement(t))?(this.currentInline=t,this.currentInline):null):null},e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(2),i=n(67),a=n(47),l=n(35),s=n(1);t.default=function(e,t){var n=(0,s.default)(e,"Node")?(0,r.default)(e,t):e;return t&&n&&function(e,t){for(var n,r=[e],s=e.parentNode;s&&t.contains(s);s=s.parentNode)r.push(s);for(var u=r.length-1;u>=0&&!n;u--){var d=r[u],c=(0,o.default)(d);"A"==c?n=new a.default(d,t):"IMG"==c&&(n=new i.default(d,t))}return n||new l.default(e,t)}(t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(46),o=n(2),i=n(22);t.default=function(e,t){var n;if(!e||!t)return null;var a=(0,o.default)(e);if(a==t.toUpperCase())return e;for(var l=e.ownerDocument.createElement(t),s=0;s<e.attributes.length;s++){var u=e.attributes[s];l.setAttribute(u.name,u.value)}return(0,i.default)(l,e),"P"!=a&&"P"!=(0,o.default)(l)||(n=(0,r.default)(e,["margin-top","margin-bottom"]),l.style.marginTop=n[0],l.style.marginBottom=n[1]),e.parentNode&&e.parentNode.replaceChild(l,e),l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(e){for(;!n&&e.firstChild;)e.removeChild(e.firstChild);for(;null==t?void 0:t.firstChild;)e.appendChild(t.firstChild)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);function o(e,t){return t.some((function(t){return 0==t?0==e:(e&t)==t}))}t.default=function(e,t,n,i,a){if(void 0===i&&(i=0),!e||!t)return[];var l=(0,r.default)(e.querySelectorAll(t));if(0!=i&&a){var s=a.startContainer,u=a.startOffset,d=a.endContainer,c=a.endOffset;if(1==s.nodeType&&s.firstChild){var f=s.childNodes[u];s=f||s.lastChild}d=1==d.nodeType&&d.firstChild&&c>0?d.childNodes[c-1]:d,l=l.filter((function(e){return function(e,t,n,r){var i=e.compareDocumentPosition(t),a=e.compareDocumentPosition(n),l=[0,8];r||l.push(16);return o(i,l)||o(a,l)||o(i,[2])&&o(a,[4])&&!o(a,[16])}(e,s,d,2==i)}))}return n&&l.forEach(n),l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeMetadata=t.setMetadata=t.getMetadata=void 0;var r=n(52);t.getMetadata=function(e,t,n){var o,i=e.dataset.editingInfo;try{o=i?JSON.parse(i):null}catch(e){}if(void 0!==o){if(!t)return o;if((0,r.default)(o,t))return o}return n||null},t.setMetadata=function(e,t,n){return!(n&&!(0,r.default)(t,n))&&(e.dataset.editingInfo=JSON.stringify(t),!0)},t.removeMetadata=function(e){delete e.dataset.editingInfo}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),o=n(3),i=n(0);t.default=function(e,t,n,a){e.focus();var l=e.getSelectionRangeEx();(0,o.default)(e,(function(o,a){if(!n||n()){var s=e.getSelectedRegions(),u=i.VListChain.createListChains(s,null==o?void 0:o.node);s.forEach((function(e){return t(e,o,a,u)})),(0,r.default)(e,u)}0==l.type?e.select(o,a):e.select(l)}),a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collapse=void 0;var r=n(4),o=n(17),i=n(6);function a(e,t,n,i,a){for(;t.parentNode!=e&&!(0,r.default)(t.parentNode,n);){if(i&&t.previousSibling||!i&&t.nextSibling){if(!a)break;(0,o.default)(t,i)}if(!t.parentNode)break;t=t.parentNode}return t}t.default=function(e,t,n,o){var l;if(!(0,r.default)(e,t)||!(0,r.default)(e,n))return[];if(t=a(e,t,n,!0,o),n=a(e,n,t,!1,o),(0,r.default)(t,n,!0))return[t];if((0,r.default)(n,t))return[n];if(t.parentNode==n.parentNode){var s=t.parentNode?(0,i.default)(null===(l=t.parentNode)||void 0===l?void 0:l.childNodes):[],u=s.indexOf(t),d=s.indexOf(n);return s.slice(u,d+1)}return[t,n]},t.collapse=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o="ADDRESS,ARTICLE,ASIDE,BLOCKQUOTE,CANVAS,DD,DIV,DL,DT,FIELDSET,FIGCAPTION,FIGURE,FOOTER,FORM,H1,H2,H3,H4,H5,H6,HEADER,HR,LI,MAIN,NAV,NOSCRIPT,OL,OUTPUT,P,PRE,SECTION,TABLE,TD,TH,TFOOT,UL,VIDEO".split(","),i=["block","list-item","table-cell"];t.default=function(e){var t=(0,r.default)(e);return!(!t||!(i.indexOf(e.style.display)>=0||o.indexOf(t)>=0))}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.KnownCreateElementData=void 0;var o=n(8),i=n(1),a=n(18);t.KnownCreateElementData=((r={})[0]={tag:""},r[1]=a.Browser.isEdge?{tag:"div",children:[{tag:"span",children:[{tag:"br"}]}]}:{tag:"div",children:[{tag:"br"}]},r[2]={tag:"blockquote",style:"margin-top:0;margin-bottom:0"},r[3]={tag:"div",style:"width: 1px; height: 1px; overflow: hidden; position: fixed; top: 0; left; 0; -webkit-user-select: text",attributes:{contenteditable:"true"}},r[4]={tag:"li",style:"display:block"},r[5]={tag:"div",style:"position: fixed; width: 0; height: 0"},r[6]={tag:"span",style:"max-width:100%;position:fixed",children:[{tag:"div",style:"width:100%;height:100%;position:relative;overflow:hidden"}]},r[7]={tag:"div",style:"position: fixed; cursor: row-resize; user-select: none"},r[8]={tag:"div",style:"position: fixed; cursor: col-resize; user-select: none"},r[9]={tag:"div",style:"position: fixed; cursor: nw-resize; user-select: none; border: 1px solid #808080"},r[10]={tag:"div",style:"position: fixed; cursor: ne-resize; user-select: none; border: 1px solid #808080"},r[11]={tag:"div",style:"position: fixed; cursor: all-scroll; user-select: none; border: 1px solid #808080"},r[12]={tag:"div",children:[{tag:"span",children:[{tag:"br"}]}]},r),t.default=function e(n,r){if("number"==typeof n&&(n=t.KnownCreateElementData[n]),!n||!n.tag)return null;var a=n.tag,l=n.namespace,s=n.className,u=n.style,d=n.dataset,c=n.attributes,f=n.children,h=l?r.createElementNS(l,a):r.createElement(a);return u&&h.setAttribute("style",u),s&&(h.className=s),d&&(0,i.default)(h,"HTMLElement")&&(0,o.default)(d).forEach((function(e){h.dataset[e]=d[e]})),c&&(0,o.default)(c).forEach((function(e){h.setAttribute(e,c[e])})),f&&f.forEach((function(t){if("string"==typeof t)h.appendChild(r.createTextNode(t));else if(t){var n=e(t,r);n&&h.appendChild(n)}})),h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(46),i=/^[\r\n]+$/g,a=/[\t\r\n\u0020\u200B]/gm;t.default=function e(t,n){if(3==t.nodeType)return!(t.nodeValue&&""!=t.textContent&&!i.test(t.nodeValue))||!(!n||""!=t.nodeValue.replace(a,""));if(1==t.nodeType){if("none"==(0,o.getComputedStyle)(t,"display"))return!0;var l=(0,r.default)(t);if("DIV"==l||"SPAN"==l){for(var s=t.firstChild;s;s=s.nextSibling)if(!e(s,n))return!1;return!0}return!1}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObjectDefinition=t.createArrayDefinition=t.createStringDefinition=t.createBooleanDefinition=t.createNumberDefinition=void 0,t.createNumberDefinition=function(e,t,n,r,o){return{type:1,isOptional:e,value:t,maxValue:r,minValue:n,allowNull:o}},t.createBooleanDefinition=function(e,t,n){return{type:0,isOptional:e,value:t,allowNull:n}},t.createStringDefinition=function(e,t,n){return{type:2,isOptional:e,value:t,allowNull:n}},t.createArrayDefinition=function(e,t,n,r,o){return{type:3,isOptional:t,itemDef:e,minLength:n,maxLength:r,allowNull:o}},t.createObjectDefinition=function(e,t,n){return{type:4,isOptional:t,propertyDef:e,allowNull:n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};return((null==e?void 0:e.getAttribute("style"))||"").split(";").forEach((function(e){var n=e.indexOf(":"),r=e.slice(0,n),o=e.slice(n+1);r&&o&&(t[r.trim()]=o.trim())})),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);t.default=function(e,t){if(e){var n=(0,r.default)(t||{}).map((function(e){var n=t[e],r=e?e.trim():null,o=n?n.trim():null;return r&&o?r+":"+o:null})).filter((function(e){return e})).join(";");n?e.setAttribute("style",n):e.removeAttribute("style")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);t.default=function(e,t){return!(!e||!(0,r.default)(e.rootNode,t)||e.nodeBefore&&4!=e.nodeBefore.compareDocumentPosition(t)||e.nodeAfter&&2!=e.nodeAfter.compareDocumentPosition(t))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEditInfoFromImage=t.deleteEditInfo=t.saveEditInfo=void 0;var r=n(111),o=n(0);t.saveEditInfo=function(e,t){e&&(0,o.setMetadata)(e,t)},t.deleteEditInfo=function(e){e&&(0,o.removeMetadata)(e)},t.getEditInfoFromImage=function(e){var t=(0,o.getMetadata)(e);return 0==(0,r.default)(t)?function(e){return{src:e.getAttribute("src")||"",widthPx:e.clientWidth,heightPx:e.clientHeight,naturalWidth:e.naturalWidth,naturalHeight:e.naturalHeight,leftPercent:0,rightPercent:0,topPercent:0,bottomPercent:0,angleRad:0}}(e):t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(45),o=n(13),i=n(5),a=function(){function e(e,t){this.containerNode=e,this.parentBlock=t}return e.prototype.getTextContent=function(){return(3==this.containerNode.nodeType?this.containerNode.nodeValue:this.containerNode.textContent)||""},e.prototype.getContainerNode=function(){return this.containerNode},e.prototype.getParentBlock=function(){return this.parentBlock},e.prototype.getStartPosition=function(){return new i.default(this.containerNode,0).normalize()},e.prototype.getEndPosition=function(){return new i.default(this.containerNode,-1).normalize()},e.prototype.isTextualInlineElement=function(){return this.containerNode&&3==this.containerNode.nodeType},e.prototype.isAfter=function(e){return e&&(0,o.default)(this.containerNode,e.getContainerNode())},e.prototype.contains=function(e){var t=this.getStartPosition(),n=this.getEndPosition();return e&&e.isAfter(t)&&n.isAfter(e)},e.prototype.applyStyle=function(e){(0,r.default)(this.containerNode,e)},e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,o,i,a=(null===(r=e.nodeValue)||void 0===r?void 0:r.substring(0,t))||"",l=(null===(o=e.nodeValue)||void 0===o?void 0:o.substring(t))||"",s=e.ownerDocument.createTextNode(n?a:l);return e.nodeValue=n?l:a,null===(i=e.parentNode)||void 0===i||i.insertBefore(s,n?e:e.nextSibling),s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(45),o=n(11),i=n(5),a=n(10),l=function(){function e(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null),this.inlineElement=e,this.start=t,this.end=n}return e.prototype.getDecoratedInline=function(){return this.inlineElement},e.prototype.getContainerNode=function(){return this.inlineElement.getContainerNode()},e.prototype.getParentBlock=function(){return this.inlineElement.getParentBlock()},e.prototype.getTextContent=function(){return(0,o.default)(this.getStartPosition(),this.getEndPosition()).toString()},e.prototype.getStartPosition=function(){return this.start||this.inlineElement.getStartPosition()},e.prototype.getEndPosition=function(){return this.end||this.inlineElement.getEndPosition()},Object.defineProperty(e.prototype,"nextInlineElement",{get:function(){return this.end?new e(this.inlineElement,this.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousInlineElement",{get:function(){return this.start?new e(this.inlineElement,void 0,this.start):null},enumerable:!1,configurable:!0}),e.prototype.contains=function(e){return e&&e.isAfter(this.getStartPosition())&&this.getEndPosition().isAfter(e)},e.prototype.isTextualInlineElement=function(){return this.inlineElement&&this.inlineElement.isTextualInlineElement()},e.prototype.isAfter=function(e){var t=this.getStartPosition(),n=e&&e.getEndPosition();return n&&(t.isAfter(n)||t.equalTo(n))},e.prototype.applyStyle=function(e){var t=this.getStartPosition().normalize(),n=this.getEndPosition().normalize(),o=this.getContainerNode();if(t.isAtEnd){var l=(0,a.getNextLeafSibling)(o,t.node);t=l?new i.default(l,0):null}if(0==n.offset){var s=(0,a.getPreviousLeafSibling)(o,n.node);n=s?new i.default(s,-1):null}(0,r.default)(o,e,t||void 0,n||void 0)},e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=["IMG"],i=["TABLE","IMG","LI"].join(","),a=/\u200b/g;function l(e,t){return e=e.replace(a,""),t?e.trim():e}t.default=function(e,t,n){if(!e)return!1;if(3==e.nodeType)return""==l(e.nodeValue||"",t);if(1==e.nodeType){var a=e,s=l(a.textContent||"",t),u=n?i+",BR":i;if(""!=s||o.indexOf((0,r.default)(a))>=0||a.querySelectorAll(u)[0])return!1}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e?e.parentNode:null;if(!t)return null;for(;e.firstChild;)t.insertBefore(e.firstChild,e);return t.removeChild(e),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e||{left:0,right:0,top:0,bottom:0},n=t.left,r=t.right,o=t.top,i=t.bottom;return 0===n&&0===r&&0===o&&0===i?null:{left:Math.round(n),right:Math.round(r),top:Math.round(o),bottom:Math.round(i)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t,n){e.focus();var i=e.getSelectionRangeEx(),a=function(e,n){return e.isContentEditable&&t(e,n)};if(i&&i.areAllCollapsed){var l=i.ranges[0].startContainer;"SPAN"==(0,o.getTagOfNode)(l)&&(!l.firstChild||"BR"==(0,o.getTagOfNode)(l.firstChild)&&!l.firstChild.nextSibling)?(e.addUndoSnapshot(),a(l)):(e.triggerPluginEvent(13,{formatState:{},formatCallback:t}),e.triggerContentChangedEvent("Format"))}else(0,r.default)(e,(function(){var t,n;i.ranges.forEach((function(r){for(var o=e.getSelectionTraverser(r),i=o&&o.currentInlineElement;i;){var l=o.getNextInlineElement();i.applyStyle((function(e,r){a(e,r),t=t||e,n=e})),i=l}})),t&&n&&0==i.type&&e.select(t,-2,n,-3)}),n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41),o=n(0);t.default=function(e,t,n,i){var a=[];(0,r.default)(e,(function(t,r){n(t,r);var o=e.getElementAtCursor("LI",t);o&&-1===a.indexOf(o)&&a.push(o)}),i),function(e,t){e.forEach((function(e){(0,o.safeInstanceOf)(e,"HTMLLIElement")&&(0,o.setListItemStyle)(e,t)}))}(a,[t])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o={MOUSEDOWN:"mousedown",MOUSEMOVE:"mousemove",MOUSEUP:"mouseup",getPageXY:a},i={MOUSEDOWN:"touchstart",MOUSEMOVE:"touchmove",MOUSEUP:"touchend",getPageXY:l};function a(e){return[e.pageX,e.pageY]}function l(e){var t=0,n=0;if(e.targetTouches&&e.targetTouches.length>0){var r=e.targetTouches[0];t=r.pageX,n=r.pageY}return[t,n]}var s=function(){function e(e,t,n,a,l,s){var u=this;this.trigger=e,this.context=t,this.onSubmit=n,this.handler=a,this.zoomScale=l,this.onMouseDown=function(e){var t,n,r;e.preventDefault(),e.stopPropagation(),u.addDocumentEvents(),t=u.dndMouse.getPageXY(e),u.initX=t[0],u.initY=t[1],u.initValue=null===(r=(n=u.handler).onDragStart)||void 0===r?void 0:r.call(n,u.context,e)},this.onMouseMove=function(e){var t,n,r;e.preventDefault();var o=u.dndMouse.getPageXY(e),i=o[0],a=o[1],l=(i-u.initX)/u.zoomScale,s=(a-u.initY)/u.zoomScale;(null===(n=(t=u.handler).onDragging)||void 0===n?void 0:n.call(t,u.context,e,u.initValue,l,s))&&(null===(r=u.onSubmit)||void 0===r||r.call(u,u.context,u.trigger))},this.onMouseUp=function(e){var t,n,r;e.preventDefault(),u.removeDocumentEvents(),(null===(n=(t=u.handler).onDragEnd)||void 0===n?void 0:n.call(t,u.context,e,u.initValue))&&(null===(r=u.onSubmit)||void 0===r||r.call(u,u.context,u.trigger))},this.dndMouse=s||r.Browser.isMobileOrTablet?i:o,e.addEventListener(this.dndMouse.MOUSEDOWN,this.onMouseDown)}return e.prototype.dispose=function(){this.trigger.removeEventListener(this.dndMouse.MOUSEDOWN,this.onMouseDown),this.removeDocumentEvents()},Object.defineProperty(e.prototype,"mouseType",{get:function(){return this.dndMouse==i?"touch":"mouse"},enumerable:!1,configurable:!0}),e.prototype.addDocumentEvents=function(){var e=this.trigger.ownerDocument;e.addEventListener(this.dndMouse.MOUSEMOVE,this.onMouseMove,!0),e.addEventListener(this.dndMouse.MOUSEUP,this.onMouseUp,!0)},e.prototype.removeDocumentEvents=function(){var e=this.trigger.ownerDocument;e.removeEventListener(this.dndMouse.MOUSEMOVE,this.onMouseMove,!0),e.removeEventListener(this.dndMouse.MOUSEUP,this.onMouseUp,!0)},e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o="AREA,BASE,BR,COL,COMMAND,EMBED,HR,IMG,INPUT,KEYGEN,LINK,META,PARAM,SOURCE,TRACK,WBR".split(",");t.default=function(e){return!!e&&o.indexOf((0,r.default)(e))>=0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(5),i=n(36),a=n(15),l=n(10),s=n(17),u=n(1),d="SPAN,B,I,U,EM,STRONG,STRIKE,S,SMALL,SUP,SUB".split(",");function c(e,t){e&&1==e.nodeType&&t(e,!0)}t.default=function(e,t,n,f){void 0===n&&(n=new o.default(e,0).normalize()),void 0===f&&(f=new o.default(e,-1).normalize());for(var h=[],p=n,g=f;p&&g&&g.isAfter(p);){var v=p.node,m=(0,r.default)(v.parentNode),b=(0,l.getNextLeafSibling)(e,v);3==v.nodeType&&["TR","TABLE"].indexOf(m)<0&&(v!=g.node||g.isAtEnd||(v=(0,i.default)(v,g.offset,!0)),p.offset>0&&(v=(0,i.default)(v,p.offset,!1)),h.push(v)),p=b&&new o.default(b,0)}if(h.length>0){if(h.every((function(e){return e.parentNode==h[0].parentNode}))){var y=h.shift();h.forEach((function(e){var t,n=(y.nodeValue||"")+(e.nodeValue||"");y.nodeValue=n,null===(t=e.parentNode)||void 0===t||t.removeChild(e)})),h=[y]}h.forEach((function(e){for(var n=e;n&&"SPAN"!=(0,r.default)(n)&&d.indexOf((0,r.default)(n.parentNode))>=0;)c(n,t),n=(0,s.splitBalancedNodeRange)(n);n&&"SPAN"!=(0,r.default)(n)&&(c(n,t),n=(0,a.default)(n,"SPAN")),(0,u.default)(n,"HTMLElement")&&t(n)}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getComputedStyle=void 0;var r=n(14);function o(e,t){void 0===t&&(t=["font-family","font-size","color","background-color"]);var n=(0,r.default)(e),o=[];if(t=Array.isArray(t)?t:[t],n){var a=(n.ownerDocument.defaultView||window).getComputedStyle(n);if(a)for(var l=0,s=t;l<s.length;l++){var u=s[l],d=a.getPropertyValue(u)||"";d="font-family"!=u?d.toLowerCase():d,d="font-size"==u?i(d):d,o.push(d)}}return o}function i(e){return e&&e.indexOf("px")==e.length-2?Math.round(75*parseFloat(e)+.05)/100+"pt":e}t.default=o,t.getComputedStyle=function(e,t){return o(e,t)[0]||""}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t}(n(35).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInlineElementBeforeAfter=t.getInlineElementAfter=t.getInlineElementBefore=void 0;var r=n(20),o=n(37),i=n(29),a=n(10);function l(e,t,n){if(!e||!t||!t.node)return null;var l=(t=t.normalize()).offset,s=t.isAtEnd,u=t.node,d=!1;!n&&0==l&&!s||n&&s?u=(0,a.getLeafSibling)(e,u,n):3==u.nodeType&&(!n&&!s||n&&l>0)&&(d=!0),u&&(0,i.default)(u)&&(u=(0,a.getLeafSibling)(e,u,n));var c=(0,r.default)(e,u);return c&&(d||c.contains(t))&&(c=n?new o.default(c,t,void 0):new o.default(c,void 0,t)),c}t.getInlineElementBefore=function(e,t){return l(e,t,!1)},t.getInlineElementAfter=function(e,t){return l(e,t,!0)},t.getInlineElementBeforeAfter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e){var n=new FileReader;n.onload=function(){t(n.result)},n.onerror=function(){t(null)},n.readAsDataURL(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t,n,o,i){var a="string"==typeof t?t.trim():"",l="string"==typeof t?null:t;if(a||l){if(e.style.setProperty(n?"background-color":"color",(o?null==l?void 0:l.darkModeColor:null==l?void 0:l.lightModeColor)||a),e.dataset){var s=n?"ogsb":"ogsc";o&&"transparent"!=t?l&&(e.dataset[s]=l.lightModeColor):delete e.dataset[s]}n&&i&&function(e,t){var n;if(null===(n=e.firstElementChild)||void 0===n?void 0:n.hasAttribute("style"))return;var o=e.style.getPropertyValue("background-color"),i=t&&(e.dataset.ogsb||e.dataset.ogab)||o;if(!i||"transparent"===i)return;switch(function(e){var t=function(e){var t,n,r,o,i;"#"==e.substring(0,1)?(t=function(e){4===e.length&&(e=e.replace(/(.)/g,"$1$1"));var t=e.replace("#",""),n=parseInt(t.substr(0,2),16),r=parseInt(t.substr(2,2),16),o=parseInt(t.substr(4,2),16);return[n,r,o]}(e),r=t[0],o=t[1],i=t[2]):(n=function(e){var t=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/),n=parseInt(t[1]),r=parseInt(t[2]),o=parseInt(t[3]);return[n,r,o]}(e),r=n[0],o=n[1],i=n[2]);var a=r/255,l=o/255,s=i/255;return 50*(Math.max(a,l,s)+Math.min(a,l,s))}(e);if(t<20)return 1;if(t>80)return 0;return 2}(i)){case 1:r(e,{lightModeColor:"#ffffff",darkModeColor:"#333333"},!1,t);break;case 0:r(e,{lightModeColor:"#000000",darkModeColor:"#ffffff"},!1,t)}}(e,o)}}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saveTableCellMetadata=t.getTableCellMetadata=void 0;var r=n(30),o=n(24),i=(0,r.createBooleanDefinition)(!1,void 0,!0),a=(0,r.createObjectDefinition)({bgColorOverride:i},!1,!0);t.getTableCellMetadata=function(e){return(0,o.getMetadata)(e,a)},t.saveTableCellMetadata=function(e,t){e&&t&&(0,o.setMetadata)(e,t,a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);t.default=function e(t,n){var o,i,a=!1;if(n.isOptional&&void 0===t||n.allowNull&&null===t)a=!0;else{if(!n.isOptional&&void 0===t||!n.allowNull&&null===t)return!1;switch(n.type){case 2:a="string"==typeof t&&(void 0===n.value||t===n.value);break;case 1:a="number"==typeof t&&(void 0===n.value||(o=n.value,i=t,Math.abs(o-i)<.001))&&(void 0===n.minValue||t>=n.minValue)&&(void 0===n.maxValue||t<=n.maxValue);break;case 0:a="boolean"==typeof t&&(void 0===n.value||t===n.value);break;case 3:a=Array.isArray(t)&&(void 0===n.minLength||t.length>=n.minLength)&&(void 0===n.maxLength||t.length<=n.maxLength)&&t.every((function(t){return e(t,n.itemDef)}));break;case 4:a="object"==typeof t&&(0,r.default)(n.propertyDef).every((function(r){return e(t[r],n.propertyDef[r])}));break;case 5:a=n.validator(t)}}return a}},function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});var o=n(21),i=n(54),a=n(2),l=n(27),s=n(38),u=n(5),d=n(23),c=n(1),f=n(17),h=n(6),p=n(39),g=n(77),v=n(15),m=n(24),b=function(){function e(e){if(this.rootList=e,this.items=[],!e)throw new Error("rootList must not be null");y(this.rootList),(0,d.default)(this.rootList,"ol,ul",y),(0,d.default)(this.rootList,"li",C),this.populateItems(this.rootList)}return e.prototype.contains=function(e){return this.items.some((function(t){return t.contains(e)}))},e.prototype.getLastItemNumber=function(){var e=this.getStart();return void 0===e?e:e-1+this.items.filter((function(e){return 1==e.getListType()&&1==e.getLevel()&&!e.isDummy()})).length},e.prototype.writeBack=function(e){var t=this;if(!this.rootList)throw new Error("rootList must not be null");var n,r=this.rootList.ownerDocument,o=[r.createDocumentFragment()],i=r.createTextNode(""),a=this.getStart()||1;this.rootList.parentNode.replaceChild(i,this.rootList),this.items.forEach((function(r){var i=r.getNewListStart();i&&i!=a&&(o.splice(1,o.length-1),a=i),r.writeBack(o,t.rootList,e);var l=o[1];(0,c.default)(l,"HTMLOListElement")&&(n!=l&&(1==a?l.removeAttribute("start"):l.start=a),1==r.getLevel()&&a++);var s=t.getListItemIndex(r.getNode());r.applyListStyle(t.rootList,s),n=l})),i.parentNode.replaceChild(o[0],i)},e.prototype.split=function(e,t){if(!this.rootList)throw new Error("rootList must not be null");for(var n=0;n<this.items.length;n++)if(this.items[n].getNode()==e)return void this.items[n].setNewListStart(t)},e.prototype.setIndentation=function(e,t,n,r,o){var i=this;void 0===o&&(o=!1);var a=!1;if(this.findListItems(e,t,(function(e){a=a||0==i.items.indexOf(e),1==n?r&&!e.isDummy()?e.setIsDummy(!0):e.outdent(o):e.indent()})),a&&o)for(var l=0;l<this.items.length;l++)this.items[l].addNegativeMargins()},e.prototype.setAlignment=function(e,t,n){this.rootList.style.display="flex",this.rootList.style.flexDirection="column",this.findListItems(e,t,(function(e){var t="start";1==n?t="center":2==n&&(t="end"),e.getNode().style.alignSelf=t}))},e.prototype.changeListType=function(e,t,n){var r=!1;this.findListItems(e,t,(function(e){r=r||e.getListType()!=n})),this.findListItems(e,t,(function(e){return r?e.changeListType(n):e.outdent()}))},e.prototype.setListStyleType=function(e,t){var n=function(e,t,n){return{orderedStyleType:E(t,null==e?void 0:e.orderedStyleType,1),unorderedStyleType:E(n,null==e?void 0:e.unorderedStyleType,1)}}((0,m.getMetadata)(this.rootList,g.ListStyleDefinitionMetadata),e,t);(0,m.setMetadata)(this.rootList,n,g.ListStyleDefinitionMetadata)},e.prototype.appendItem=function(e,t){var n=(0,a.default)(e);"DIV"==n?e=(0,o.default)(e,"LI"):"LI"!=n&&(e=(0,v.default)(e,"LI")),this.items.push(0==t?new g.default(e):new g.default(e,t))},e.prototype.mergeVList=function(e){var t,n=this;e&&e!=this&&(e.items.forEach((function(e){return n.items.push(e)})),e.items.splice(0,e.items.length),null===(t=e.rootList.parentNode)||void 0===t||t.removeChild(e.rootList))},e.prototype.getListItemIndex=function(e){if(this.items)for(var t=(this.getStart()||1)-1,n=0;n<this.items.length;n++){var r=this.items[n];if(1!=r.getLevel()||r.isDummy()||t++,r.getNode()==e)return t}return-1},e.prototype.getStart=function(){return(0,c.default)(this.rootList,"HTMLOListElement")?this.rootList.start:void 0},e.prototype.findListItems=function(e,t,n){if(0==this.items.length)return[];var r=new u.default(this.items[0].getNode(),0),o=new u.default(this.items[this.items.length-1].getNode(),-1),i=r.isAfter(e)?0:-1,a=this.items.length-(t.isAfter(o)?1:0);this.items.forEach((function(n,r){i=n.contains(e.node)?r:i,a=n.contains(t.node)?r:a})),i=a<this.items.length?Math.max(0,i):i,a=i>=0?Math.min(this.items.length-1,a):a;var l=i<=a?this.items.slice(i,a+1):[];return n&&l.forEach(n),l},e.prototype.populateItems=function(e,t){var n=this;void 0===t&&(t=[]);var o=(0,i.default)(e);(0,h.default)(e.childNodes).forEach((function(e){var a=r(r([],t,!0),[o],!1);(0,i.isListElement)(e)?n.populateItems(e,a):3==e.nodeType&&""==(e.nodeValue||"").trim()||n.items.push(new(g.default.bind.apply(g.default,r([void 0,e],a,!1))))}))},e}();function y(e){var t=null;(0,h.default)(e.childNodes).forEach((function(e){"LI"==(0,a.default)(e)?t=e:(0,i.isListElement)(e)?t=null:t&&!(0,s.default)(e,!0)&&t.appendChild((0,l.default)(e)?e:(0,v.default)(e))}))}function C(e){for(;!(0,i.isListElement)(e.parentNode);){(0,f.default)(e,!0);var t=(0,h.default)(e.parentNode.childNodes).slice(1);t.length>0&&((0,l.default)(t[0])||(t=[(0,v.default)(t)]),t.forEach((function(t){return e.appendChild(t)}))),(0,p.default)(e.parentNode)}}function E(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return void 0!==e}))[0]}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isListElement=void 0;var r=n(2);function o(e){switch((0,r.default)(e)){case"OL":return 1;case"UL":return 2;default:return 0}}t.default=o,t.isListElement=function(e){return 0!=o(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),o=n(5),i=n(10);t.default=function(e){if(!e)return null;var t=e.nodeBefore,n=e.nodeAfter,a=e.rootNode,l=e.skipTags,s=t?(0,i.getNextLeafSibling)(e.rootNode,t,e.skipTags):a.firstChild,u=n?(0,i.getPreviousLeafSibling)(a,n,l):a.lastChild,d=s&&u&&(0,r.default)(s,u);if(!function(e){var t=e;return!!t.fullSelectionEnd&&!!t.fullSelectionStart}(e))return d;if(d){var c=o.default.getStart(d).normalize(),f=o.default.getEnd(d).normalize(),h=e.fullSelectionEnd,p=e.fullSelectionStart;if(!p.isAfter(f)&&!c.isAfter(h)){var g=p.isAfter(c)?p:c,v=h.isAfter(f)?f:h;return(0,r.default)(g,v)}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){Array.prototype.push.apply(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.currentIndex+t;return n>=0&&n<e.snapshots.length}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.experimentCommitListChains=void 0;var r=n(0);function o(e,t){if((null==t?void 0:t.length)>0){var n=e.getSelectionRange(),o=n&&r.Position.getStart(n),i=n&&r.Position.getEnd(n),a=e.isFeatureEnabled("ReuseAllAncestorListElements");t.forEach((function(e){return e.commit(a)})),e.select(o,i)}}t.default=o,t.experimentCommitListChains=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41),o=n(0);t.default=function(e,t){(0,r.default)(e,(function(n,r){(0,o.setColor)(n,r?"":t,!0,e.isDarkMode())}),"setBackgroundColor")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),o=n(0);t.default=function(e,t,n,i,a,l,s){void 0===i&&(i=!0),(0,r.default)(e,(function(r,s,u,d){var c,f=n>0&&d.filter((function(e){return e.canAppendAtCursor(n)}))[0],h=f&&s.equalTo(u)?f.createVListAtBlock(null===(c=(0,o.getBlockElementAtNode)(r.rootNode,s.node))||void 0===c?void 0:c.collapseToSingleElement(),n):(0,o.createVListFromRegion)(r,1!==n&&i);h&&(h.changeListType(s,u,t),e.isFeatureEnabled("AutoFormatList")&&h.setListStyleType(a,l),h.writeBack(e.isFeatureEnabled("ReuseAllAncestorListElements")))}),void 0,s||"toggleListType")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.widthPx,r=e.heightPx,o=e.angleRad,i=n/(1-e.leftPercent-e.rightPercent),a=r/(1-e.topPercent-e.bottomPercent),l=t?i:n,s=t?a:r;return{targetWidth:Math.abs(l*Math.cos(o))+Math.abs(s*Math.sin(o)),targetHeight:Math.abs(l*Math.sin(o))+Math.abs(s*Math.cos(o)),originalWidth:i,originalHeight:a,visibleWidth:l,visibleHeight:s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Editor=void 0;var r=n(125);Object.defineProperty(t,"Editor",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(13),i=function(){function e(e){this.element=e}return e.prototype.collapseToSingleElement=function(){return this.element},e.prototype.getStartNode=function(){return this.element},e.prototype.getEndNode=function(){return this.element},e.prototype.equals=function(e){return this.element==e.getStartNode()},e.prototype.isAfter=function(e){return(0,o.default)(this.element,e.getEndNode())},e.prototype.contains=function(e){return(0,r.default)(this.element,e,!0)},e.prototype.getTextContent=function(){var e;return(null===(e=this.element)||void 0===e?void 0:e.textContent)||""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default=function(e,t){return(0,r.default)(e,"HTMLElement")&&(e.matches||e.msMatchesSelector).call(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.default=function(e,t){var n=t.createElement("DIV");return n.innerHTML=e,(0,r.default)(n.childNodes)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7);t.default=function(e,t){var n=e;do{n=n&&(t?n.firstChild:n.lastChild)}while(n&&n.firstChild);return n&&(0,r.default)(e,n)||null}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t}(n(35).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastInlineElement=t.getFirstInlineElement=void 0;var r=n(20),o=n(69);t.getFirstInlineElement=function(e){var t=(0,o.getFirstLeafNode)(e);return t?(0,r.default)(e,t):null},t.getLastInlineElement=function(e){var t=(0,o.getLastLeafNode)(e);return t?(0,r.default)(e,t):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastLeafNode=t.getFirstLeafNode=void 0;var r=n(29),o=n(10);function i(e,t){for(var n=function(e){return t?e.firstChild:e.lastChild},i=n(e);i&&n(i);)i=n(i);return i&&(0,r.default)(i)&&(i=(0,o.getLeafSibling)(e,i,t)),i}t.getFirstLeafNode=function(e){return i(e,!0)},t.getLastLeafNode=function(e){return i(e,!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.position=e,this.parentBlock=t}return e.prototype.getTextContent=function(){return""},e.prototype.getContainerNode=function(){return this.position.node},e.prototype.getParentBlock=function(){return this.parentBlock},e.prototype.getStartPosition=function(){return this.position},e.prototype.getEndPosition=function(){return this.position},e.prototype.isAfter=function(e){return e&&this.position.isAfter(e.getEndPosition())},e.prototype.isTextualInlineElement=function(){return!1},e.prototype.contains=function(e){return!1},e.prototype.applyStyle=function(e){},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),o=n(11),i=/[\s\u00A0\u200B\u3000]+([^\s\u00A0\u200B\u3000]*)$/i,a=function(){function e(e,t){this.rootNode=e,this.position=t,this.text="",this.word="",this.inlineBefore=null,this.inlineAfter=null,this.traverser=null,this.traversingComplete=!1,this.inlineElements=[],this.nearestNonTextInlineElement=null}return e.prototype.getWordBefore=function(){var e=this;return this.word||this.traverse((function(){return e.word})),this.word||""},e.prototype.getInlineElementBefore=function(){return this.inlineBefore||this.traverse(null),this.inlineBefore},e.prototype.getInlineElementAfter=function(){return this.inlineAfter||(this.inlineAfter=r.default.createBlockTraverser(this.rootNode,this.position).currentInlineElement),this.inlineAfter},e.prototype.getSubStringBefore=function(e){var t=this;return this.text.length<e&&this.traverse((function(){return t.text.length>=e})),this.text.substr(Math.max(0,this.text.length-e))},e.prototype.getRangeFromText=function(e,t){if(!e)return null;var n=null,r=null,i=e.length-1;return this.forEachTextInlineElement((function(o){for(var a=o.getTextContent()||"",l=a.length-1;l>=0&&i>=0;l--)if(e.charCodeAt(i)==a.charCodeAt(l))i--,r||(r=o.getStartPosition().move(l+1));else if(t||r)return!0;return-1==i&&(n=o.getStartPosition().move(l+1),!0)})),n&&r&&(0,o.default)(n,r)},e.prototype.forEachTextInlineElement=function(e){this.inlineElements.some(e)||this.traverse(e)},e.prototype.getNearestNonTextInlineElement=function(){var e=this;return this.nearestNonTextInlineElement||this.traverse((function(){return e.nearestNonTextInlineElement})),this.nearestNonTextInlineElement},e.prototype.traverse=function(e){if(this.traverser=this.traverser||r.default.createBlockTraverser(this.rootNode,this.position),this.traverser&&!this.traversingComplete)for(var t=this.traverser.getPreviousInlineElement();!this.traversingComplete;){if(this.inlineBefore=this.inlineBefore||t,!t||!t.isTextualInlineElement()){this.nearestNonTextInlineElement=t,this.traversingComplete=!0,this.word||(this.word=this.text);break}var n=t.getTextContent();if(!this.word){var o=i.exec(n);o&&2==o.length&&(this.word=o[1]+this.text)}if(this.text=n+this.text,this.inlineElements.push(t),e&&e(t))break;t=this.traverser.getPreviousInlineElement()}},e}();t.default=a},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(49),i=n(18),a=/^Version:[0-9\.]+\s+StartHTML:\s*([0-9]+)\s+EndHTML:\s*([0-9]+)\s+/i,l=((r={})["text/html"]=function(e,t){return e.rawHtml=i.Browser.isEdge?function(e){var t=a.exec(e);if(3==(null==t?void 0:t.length)){var n=parseInt(t[1]),r=parseInt(t[2]);n>0&&r>n&&(e=e.substring(n,r))}return e}(t):t},r["text/plain"]=function(e,t){return e.text=t},r["text/*"]=function(e,t,n){return!!n&&(e.customValues[n]=t)},r["text/link-preview"]=function(e,t){try{e.customValues["link-preview"]=t,e.linkPreview=JSON.parse(t)}catch(e){}},r);t.default=function(e,t){var n={types:[],text:"",image:null,files:[],rawHtml:null,customValues:{}};return Promise.all((e||[]).map((function(e){var r=e.type;if(0!=r.indexOf("image/")||n.image||"file"!=e.kind){if("file"==e.kind)return new Promise((function(t){var o=e.getAsFile();o&&(n.types.push(r),n.files.push(o)),t()}));var i=function(e,t){var n=0==e.indexOf("text/")?e.substring("text/".length):null,r=t&&n?t.indexOf(n):-1;return n&&r>=0?n:void 0}(r,null==t?void 0:t.allowedCustomPasteType),a=l[r]||(i?l["text/*"]:null);return new Promise((function(t){return a?e.getAsString((function(e){n.types.push(r),a(n,e,i),t()})):t()}))}return n.types.push(r),n.image=e.getAsFile(),new Promise((function(e){n.image?(0,o.default)(n.image,(function(t){n.imageDataUri=t,e()})):e()}))}))).then((function(){return n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),o=n(6);t.default=function(e,t,n){for(var i,a,l,s={types:e.types?(0,o.default)(e.types):[],text:e.getData("text"),image:null,files:[],rawHtml:null,customValues:{}},u=0;u<(e.files?e.files.length:0);u++){var d=e.files.item(u);if(0==(null===(i=null==d?void 0:d.type)||void 0===i?void 0:i.indexOf("image/"))){s.image=d;break}}var c=function(){s.image?(0,r.default)(s.image,(function(e){s.imageDataUri=e,t(s)})):t(s)};if((null==n?void 0:n.getTempDiv)&&(null==n?void 0:n.removeTempDiv)){var f=n.getTempDiv();f.contentEditable="true",f.innerHTML="",f.focus(),null===(l=null===(a=f.ownerDocument)||void 0===a?void 0:a.defaultView)||void 0===l||l.setTimeout((function(){var e;s.rawHtml=f.innerHTML,null===(e=n.removeTempDiv)||void 0===e||e.call(n,f),c()}),0)}else s.rawHtml=void 0,c()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default=function(e){if((0,r.default)(e,"HTMLElement"))return e.innerHTML;if(e){var t=e.ownerDocument.createElement("span");return t.appendChild(e.cloneNode(!0)),t.innerHTML}return""}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(139),i=n(2),a=n(22),l=n(40),s=n(1),u=n(6),d=n(76),c=n(24),f={topBorderColor:"#ABABAB",bottomBorderColor:"#ABABAB",verticalBorderColor:"#ABABAB",hasHeaderRow:!1,hasFirstColumn:!1,hasBandedRows:!1,hasBandedColumns:!1,bgColorEven:null,bgColorOdd:"#ABABAB20",headerRowColor:"#ABABAB",tableBorderFormat:0,keepCellShade:!1},h=function(){function e(e,t,n){var r=this;if(this.cells=null,this.formatInfo=null,this.trs=[],this.tableSelection=null,this.table=(0,s.default)(e,"HTMLTableElement")?e:function(e){for(var t=e;t&&"TABLE"!=t.tagName;t=t.parentElement);return t}(e),this.table){var o=(0,s.default)(e,"HTMLTableElement")?null:e,i=(0,u.default)(this.table.rows);this.cells=i.map((function(e){return[]})),i.forEach((function(e,t){var n;r.trs[t%2]=e;for(var i=0,a=0;i<e.cells.length;i++){for(;r.cells[t][a];a++);var l=e.cells[i];l==o&&(r.col=a,r.row=t);for(var s=0;s<l.colSpan;s++,a++)for(var u=0;u<l.rowSpan;u++){var d=s+u==0,c=l.getBoundingClientRect();(null===(n=r.cells)||void 0===n?void 0:n[t+u])&&(r.cells[t+u][a]={td:d?l:null,spanLeft:s>0,spanAbove:u>0,width:d?c.width:void 0,height:d?c.height:void 0})}}})),this.formatInfo=(0,d.getTableFormatInfo)(this.table),t&&this.normalizeSize("number"==typeof n?function(e){return e/n}:n)}}return Object.defineProperty(e.prototype,"selection",{get:function(){return this.tableSelection||null},set:function(e){if(e){var t=e.firstCell;this.row=null==t?void 0:t.y,this.col=null==t?void 0:t.x}this.tableSelection=e},enumerable:!1,configurable:!0}),e.prototype.writeBack=function(e){var t,n=this;this.cells?((0,a.default)(this.table),this.cells.forEach((function(e,t){var r=v(n.trs[t%2]||n.trs[0]);r&&(n.table.appendChild(r),e.forEach((function(e,o){e.td&&(n.recalculateSpans(t,o),n.recalculateCellHeight(e.td),r.appendChild(e.td))})))})),this.formatInfo&&!e&&((0,d.saveTableInfo)(this.table,this.formatInfo),(0,o.default)(this.table,this.cells,this.formatInfo))):this.table&&(null===(t=this.table.parentNode)||void 0===t||t.removeChild(this.table))},e.prototype.recalculateCellHeight=function(e){if(this.isEmptyCell(e)&&e.rowSpan>1)for(var t=1;t<e.rowSpan;t++){var n=document.createElement("br");e.appendChild(n)}},e.prototype.applyFormat=function(e){this.table&&(this.formatInfo=r(r(r({},f),this.formatInfo||{}),e||{}),this.formatInfo.keepCellShade||this.deleteCellShadeDataset(this.cells))},e.prototype.deleteCellShadeDataset=function(e){null==e||e.forEach((function(e){e.forEach((function(e){e.td&&(0,c.removeMetadata)(e.td)}))}))},e.prototype.edit=function(e){var t,n,r=this;if(this.table&&this.cells&&void 0!==this.row&&null!=this.col){var o=this.cells[this.row],i=o[this.col],a=this.selection?this.selection.firstCell.y:this.row,l=this.selection?this.selection.lastCell.y:this.row,s=this.selection?this.selection.firstCell.x:this.col,u=this.selection?this.selection.lastCell.x:this.col;switch(e){case 0:for(var d=a;d<=l;d++)this.cells.splice(a,0,o.map(g));break;case 1:var c=function(e){var t=l+f.countSpanAbove(l,f.col);f.cells.splice(t,0,f.cells[t-1].map((function(e,n){var o=r.getCell(t,n);if(o.spanAbove)return g(o);if(e.spanLeft){var i=g(e);return i.spanAbove=!1,i}return{td:v(r.getTd(r.row,n))}})))},f=this;for(d=a;d<=l;d++)c();break;case 2:var h=function(e){p.forEachCellOfCurrentColumn((function(t,n){n.splice(e,0,g(t))}))},p=this;for(d=s;d<=u;d++)h(d);break;case 3:var m=function(e){var t=u+b.countSpanLeft(b.row,u);b.forEachCellOfColumn(t-1,(function(e,n,o){var i,a=r.getCell(o,t);a.spanLeft?i=g(a):e.spanAbove?(i=g(e)).spanLeft=!1:i={td:v(r.getTd(o,r.col))},n.splice(t,0,i)}))},b=this;for(d=s;d<=u;d++)m();break;case 6:for(var y=function(e){C.forEachCellOfRow(e,(function(t,n){var o=r.getCell(e+1,n);t.td&&t.td.rowSpan>1&&o.spanAbove&&(o.td=t.td)}))},C=this,E=a;E<=l;E++)y(E);var S=this.selection?this.selection.lastCell.y-this.selection.firstCell.y:0;this.cells.splice(a,S+1),0===this.cells.length&&(this.cells=null);break;case 5:for(var w=0,T=function(e){O.forEachCellOfColumn(e,(function(t,n,o){var i=r.getCell(o,e+1);t.td&&t.td.colSpan>1&&i.spanLeft&&(i.td=t.td);var a=r.selection?e-w:r.col;n.splice(a,1)})),w++},O=this,P=s;P<=u;P++)T(P);(0===(null===(t=this.cells)||void 0===t?void 0:t.length)||(null===(n=this.cells)||void 0===n?void 0:n.every((function(e){return 0===e.length}))))&&(this.cells=null);break;case 7:case 8:var _=7==e?-1:1;for(E=this.row+_;E>=0&&E<this.cells.length;E+=_){if((L=this.getCell(E,this.col)).td&&!L.spanAbove){var M=E<this.row?L:i,x=E<this.row?i:L;this.mergeCells(M,x);break}}break;case 9:case 10:var N=9==e?-1:1;for(P=this.col+N;P>=0&&P<this.cells[this.row].length;P+=N){if((L=this.getCell(this.row,P)).td&&!L.spanLeft){var R=P<this.col?L:i,I=P<this.col?i:L;this.mergeCells(R,I,!0);break}}break;case 11:for(P=s;P<=u;P++)for(E=a+1;E<=l;E++){var L=this.getCell(a,P),k=this.getCell(E,P);this.mergeCells(L,k)}for(P=s+1;P<=u;P++){L=this.getCell(a,s);var D=this.getCell(a,P);this.mergeCells(L,D,!0)}break;case 4:this.cells=null;break;case 13:if(i.td&&i.td.rowSpan>1)this.getCell(this.row+1,this.col).td=v(i.td);else{var A=o.map((function(e){return{td:e==i?v(e.td):null,spanAbove:e!=i,spanLeft:e.spanLeft}}));this.cells.splice(this.row+1,0,A)}break;case 12:i.td&&i.td.colSpan>1?this.getCell(this.row,this.col+1).td=v(i.td):this.forEachCellOfCurrentColumn((function(e,t){t.splice(r.col+1,0,{td:t==o?v(e.td):null,spanAbove:e.spanAbove,spanLeft:t!=o})}));break;case 14:this.table.style.marginLeft="auto",this.table.style.marginRight="auto";break;case 15:this.table.style.marginLeft="",this.table.style.marginRight="auto";break;case 16:this.table.style.marginLeft="auto",this.table.style.marginRight="";break;case 18:this.setAlignmentToSelectedCells(a,l,s,u,"center");break;case 17:this.setAlignmentToSelectedCells(a,l,s,u,"left");break;case 19:this.setAlignmentToSelectedCells(a,l,s,u,"right");break;case 20:this.setAlignmentToSelectedCells(a,l,s,u,"top",!0);break;case 21:this.setAlignmentToSelectedCells(a,l,s,u,"middle",!0);break;case 22:this.setAlignmentToSelectedCells(a,l,s,u,"bottom",!0)}}},e.prototype.setAlignmentToSelectedCells=function(e,t,n,r,o,i){for(var a,l,s=e;s<=t;s++)for(var u=n;u<=r;u++)if(this.cells){var d=this.cells[s][u].td;i&&d?null===(a=d.style)||void 0===a||a.setProperty("vertical-align",o):d&&(null===(l=d.style)||void 0===l||l.setProperty("text-align",o))}},e.prototype.mergeCells=function(e,t,n){var r,o,i,a,l=n?(null===(r=e.td)||void 0===r?void 0:r.rowSpan)===(null===(o=t.td)||void 0===o?void 0:o.rowSpan)&&!e.spanLeft:(null===(i=e.td)||void 0===i?void 0:i.colSpan)===(null===(a=t.td)||void 0===a?void 0:a.colSpan)&&!e.spanAbove;e.td&&t.td&&l&&(this.mergeCellContents(e.td,t.td),t.td=null,n?t.spanLeft=!0:t.spanAbove=!0)},e.prototype.isEmptyCell=function(e){return 1===e.childElementCount&&"BR"===(0,i.default)(e.firstChild)},e.prototype.mergeCellContents=function(e,t){if(this.isEmptyCell(t))(0,a.default)(e,t,!1);else{var n=document.createElement("br");e.appendChild(n),(0,a.default)(e,t,!0)}},e.prototype.forEachCellOfCurrentColumn=function(e){this.forEachCellOfColumn(this.col,e)},e.prototype.getCellsWithBorder=function(e,t){for(var n=[],r=0;this.cells&&r<this.cells.length;r++)for(var o=0;o<this.cells[r].length;o++){var i=this.getCell(r,o);if(i.td){var a=(0,l.default)(i.td.getBoundingClientRect());if(a){var s=!1;if(t){if(a.right==e)s=!0,n.push(i.td);else if(s)break}else if(a.left==e)s=!0,n.push(i.td);else if(s)break}}}return n},e.prototype.forEachCellOfCurrentRow=function(e){this.forEachCellOfRow(this.row,e)},e.prototype.getCell=function(e,t){return this.cells&&this.cells[e]&&this.cells[e][t]||{}},e.prototype.getCurrentTd=function(){return this.getTd(this.row,this.col)},e.prototype.getTd=function(e,t){if(this.cells&&void 0!==e&&void 0!==t&&(e=Math.min(this.cells.length-1,e),t=this.cells[e]?Math.min(this.cells[e].length-1,t):t,!isNaN(e)&&!isNaN(t)))for(;e>=0&&t>=0;){var n=this.getCell(e,t);if(n.td)return n.td;if(n.spanLeft)t--;else{if(!n.spanAbove)break;e--}}return null},e.prototype.forEachCellOfColumn=function(e,t){if(void 0!==e)for(var n=0;this.cells&&n<this.cells.length;n++)t(this.getCell(n,e),this.cells[n],n)},e.prototype.forEachCellOfRow=function(e,t){if(void 0!==e)for(var n=0;this.cells&&n<this.cells[e].length;n++)t(this.getCell(e,n),n)},e.prototype.recalculateSpans=function(e,t){var n=this.getCell(e,t).td;n&&(n.colSpan=this.countSpanLeft(e,t),n.rowSpan=this.countSpanAbove(e,t),1==n.colSpan&&n.removeAttribute("colSpan"),1==n.rowSpan&&n.removeAttribute("rowSpan"))},e.prototype.countSpanLeft=function(e,t){for(var n=1,r=t+1;this.cells&&r<this.cells[e].length;r++){var o=this.getCell(e,r);if(o.td||!o.spanLeft)break;n++}return n},e.prototype.countSpanAbove=function(e,t){for(var n=1,r=e+1;this.cells&&r<this.cells.length;r++){var o=this.getCell(r,t);if(o.td||!o.spanAbove)break;n++}return n},e.prototype.normalizeEmptyTableCells=function(){for(var e=0,t=void 0;t=this.table.rows[e];e++)for(var n=0,r=void 0;r=t.cells[n];n++)r&&(r.innerHTML&&r.innerHTML.trim()||r.appendChild(document.createElement("br")))},e.prototype.normalizeTableCellSize=function(e){for(var t=0,n=void 0;n=this.table.rows[t];t++)n.removeAttribute("width"),n.style.setProperty("width",null),n.removeAttribute("height"),n.style.setProperty("height",null);for(t=0;this.cells&&t<this.cells.length;t++)for(var r=0;r<this.cells[t].length;r++){var o=this.cells[t][r];if(o){var i="number"==typeof e?function(t){return t/e}:e,a=o.width||0,l=o.height||0;p(o.td,(null==i?void 0:i(a))||a,(null==i?void 0:i(l))||l)}}},e.prototype.normalizeSize=function(e){this.normalizeEmptyTableCells(),this.normalizeTableCellSize(e);var t=this.table.getBoundingClientRect();p(this.table,(null==e?void 0:e(t.width))||t.width,(null==e?void 0:e(t.height))||t.height)},e}();function p(e,t,n){e&&(e.removeAttribute("width"),e.removeAttribute("height"),e.style.boxSizing="border-box",e.style.width=t+"px",e.style.height=n+"px")}function g(e){return{td:v(e.td),spanAbove:e.spanAbove,spanLeft:e.spanLeft}}function v(e){var t=e?e.cloneNode(!1):null;return(0,s.default)(t,"HTMLTableCellElement")&&(t.removeAttribute("id"),t.firstChild||t.appendChild(e.ownerDocument.createElement("br"))),t}t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saveTableInfo=t.getTableFormatInfo=void 0;var r=n(24),o=n(30),i=(0,o.createStringDefinition)(!1,void 0,!0),a=(0,o.createBooleanDefinition)(!1),l=(0,o.createObjectDefinition)({topBorderColor:i,bottomBorderColor:i,verticalBorderColor:i,hasHeaderRow:a,headerRowColor:i,hasFirstColumn:a,hasBandedColumns:a,hasBandedRows:a,bgColorEven:i,bgColorOdd:i,tableBorderFormat:(0,o.createNumberDefinition)(!1,void 0,0,8),keepCellShade:(0,o.createBooleanDefinition)(!0)},!1,!0);t.getTableFormatInfo=function(e){return(0,r.getMetadata)(e,l)},t.saveTableInfo=function(e,t){e&&t&&(0,r.setMetadata)(e,t,l)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ListStyleDefinitionMetadata=void 0;var i=n(4),a=n(54),l=n(31),s=n(2),u=n(27),d=n(22),c=n(1),f=n(141),h=n(78),p=n(142),g=n(32),v=n(6),m=n(39),b=n(15),y=n(30),C=n(24),E=[null,"lower-alpha","lower-roman"],S=["disc","circle","square"],w=["font-size","font-family","color"],T=["data-ogsc","data-ogsb","data-ogac","data-ogab"];t.ListStyleDefinitionMetadata=(0,y.createObjectDefinition)({orderedStyleType:(0,y.createNumberDefinition)(!0,void 0,1,20),unorderedStyleType:(0,y.createNumberDefinition)(!0,void 0,1,9)},!0,!0);var O=function(){function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(this.newListStart=void 0,!e)throw new Error("node must not be null");this.node=(0,c.default)(e,"HTMLLIElement")?e:(0,b.default)(e,4);var r=this.node.style.display;this.dummy="list-item"!=r&&""!=r,this.listTypes=o([0],t,!0)}return e.prototype.getListType=function(){return this.listTypes[this.listTypes.length-1]},e.prototype.getLevel=function(){return this.listTypes.length-1},e.prototype.getNode=function(){return this.node},e.prototype.getNewListStart=function(){return this.newListStart},e.prototype.contains=function(e){return(0,i.default)(this.node,e,!0)},e.prototype.isDummy=function(){return this.dummy},e.prototype.isOrphanItem=function(){return!1},e.prototype.canMerge=function(e){return!(!(null==e?void 0:e.isOrphanItem())||this.listTypes.length!=e.listTypes.length)&&this.listTypes.every((function(t,n){return e.listTypes[n]==t}))},e.prototype.mergeItems=function(e){var t=this;_((null==e?void 0:e.map((function(e){return e.node})))||[],!0,!1).forEach((function(e){return t.node.appendChild(e)}))},e.prototype.indent=function(){if("-.25in"==this.node.style.marginLeft)return this.node.style.margin="",void(this.node.style.marginLeft="");var e=this.getListType();0!=e&&this.listTypes.push(e)},e.prototype.outdent=function(e){void 0===e&&(e=!1);var t=e?2:1;this.listTypes.length>t&&this.listTypes.pop()},e.prototype.addNegativeMargins=function(){this.node.style.margin="0in 0in 0in 0.5in",this.node.style.marginLeft="-.25in"},e.prototype.changeListType=function(e){0==e?this.listTypes=[e]:(this.outdent(),this.listTypes.push(e))},e.prototype.setIsDummy=function(e){this.dummy=e},e.prototype.setNewListStart=function(e){this.newListStart=e},e.prototype.applyListStyle=function(e,n){var r=(0,C.getMetadata)(e,t.ListStyleDefinitionMetadata),o=this.listTypes.length<3;r&&(o&&2===this.listTypes[1]&&r.unorderedStyleType?(0,f.default)(this.node,r.unorderedStyleType):o&&1===this.listTypes[1]&&r.orderedStyleType?(0,p.default)(this.node,r.orderedStyleType,n):this.node.style.removeProperty("list-style-type"))},e.prototype.writeBack=function(e,t,n){var o,i=this;void 0===n&&(n=!1);var u,d,f=1;if(n){e.length>this.listTypes.length&&e.splice(this.listTypes.length);var p=e.length-1;p===this.listTypes.length-1&&(0,a.default)(e[p])!==this.listTypes[p]&&e.splice(p),f=e.length}else for(;f<e.length;f++)if((0,a.default)(e[f])!==this.listTypes[f]){e.splice(f);break}for(;f<this.listTypes.length;f++){var y=e.length-1,C=P(e[0],this.listTypes[f],f,t);if(e[y].appendChild(C),e.push(C),this.getDeepChildIndex(t)==y){var E=null===(o=this.node.parentElement)||void 0===o?void 0:o.style.listStyleType;E&&(0,s.default)(this.node.parentElement)===(0,s.default)(C)&&(C.style.listStyleType=E)}}if(e[e.length-1].appendChild(this.node),this.node.style.setProperty("display",this.dummy?"block":null),this.listTypes.length>1&&((0,h.default)(this.node,w,!0),(0,h.default)(this.node,T,!1)),this.listTypes.length<=1){var S="LI"==(0,s.default)(this.node),O=S?{"font-family":this.node.style.fontFamily,"font-size":this.node.style.fontSize,color:this.node.style.color}:void 0,M=S?(u=this.node,d=(0,v.default)(u.childNodes),(0,m.default)(u),d):[this.node];if(O)for(var x=function(e){(0,c.default)(M[e],"Text")&&(M[e]=(0,b.default)(M[e],"span"));var t=M[e];if((0,c.default)(t,"HTMLElement")){var n=r(r({},O),(0,l.default)(t));(0,g.default)(t,n),T.forEach((function(e){var n=i.node.getAttribute(e);n&&t.setAttribute(e,n)}))}},N=0;N<M.length;N++)x(N);_(M,!0,!0)}},e.prototype.getDeepChildIndex=function(e){var t=this.node.parentElement;if(e&&t){for(var n=0;t&&t!=e;)n++,t=(null==t?void 0:t.parentElement)||null;return n}return-1},e}();function P(e,n,r,o){var l,s=e.ownerDocument;if(1==r&&o&&n==(0,a.default)(o)?(0,i.default)(e,o)?(l=o.cloneNode(!1)).removeAttribute("id"):((0,d.default)(o),l=o):l=s.createElement(1==n?"ol":"ul"),o&&1==r&&n!=(0,a.default)(o)){var u=(0,C.getMetadata)(o,t.ListStyleDefinitionMetadata);u&&(0,C.setMetadata)(l,u,t.ListStyleDefinitionMetadata)}return 1==n&&r>1&&l.style.setProperty("list-style-type",E[(r-1)%E.length]),2==n&&r>1&&l.style.setProperty("list-style-type",S[(r-1)%S.length]),l}function _(e,t,n){return!(e.length>0)||t&&(0,u.default)(e[0])||n&&(0,u.default)(e[e.length])||(e=[(0,b.default)(e)]),e}t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),o=n(14),i=n(1);t.default=function(e,t,n){void 0===n&&(n=!0);var a=function(e,t,n){var a,l,s=[],u=r.default.createBodyTraverser(e),d=null,c=function(){var r=(null==(d=u.currentInlineElement)?void 0:d.getContainerNode())||null,c=null;r=r?(0,o.default)(r):null;for(var f=function(){var e=r;t.forEach((function(t){var r=n?e.style.getPropertyValue(t):e.getAttribute(t);c||(c={}),r&&!c[t]&&(c[t]=r)})),r=1===(null===(l=null==r?void 0:r.parentNode)||void 0===l?void 0:l.childNodes.length)?r.parentNode:null};r&&r!==e&&(0,i.default)(r,"HTMLElement")&&(0==s.length||((null===(a=r.textContent)||void 0===a?void 0:a.trim().length)||0)>0);)f();c&&s.push(c),u.getNextInlineElement()};for(;u.currentInlineElement!=d;)c();return s}(e,t,n);t.forEach((function(t){var r=a.map((function(e){return void 0!==e[t]?e[t]:""}));r&&(1==r.length||1==new Set(r).size)&&r[0]&&(n?e.style.setProperty(t,r[0]):e.setAttribute(t,r[0]))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);t.default=function(e,t,n){var o=e&&(0,r.default)(n,e.rootNode,t);if(o)for(var i=void 0;i=(0,r.default)(o.parentNode,e.rootNode,t);)o=i;return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),o=n(28),i=n(7),a=n(55),l=n(29);t.default=function(e,t,n){var s=(0,a.default)(e),u=[];if(s){for(var d=e.rootNode,c=e.skipTags,f=r.default.createSelectionTraverser(d,s,c),h=null==f?void 0:f.currentBlockElement;h;h=f.getNextBlockElement())u.push(h);u=u.filter((function(e){var t,n=e.getStartNode();return n!=e.getEndNode()||!(0,l.default)(n,!0)||(null===(t=n.parentNode)||void 0===t||t.removeChild(n),!1)}))}if(0==u.length&&e&&!e.rootNode.firstChild&&t){var p=(0,o.default)(n?12:1,e.rootNode.ownerDocument);e.rootNode.appendChild(p),(h=(0,i.default)(e.rootNode,p))&&u.push(h)}return u}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.getRegionCreator=void 0;var o=n(4),i=n(14),a=n(5),l=n(23),s=n(10),u=((r={})[0]={skipTags:["TABLE"],outerSelector:"table",innerSelector:"td,th"},r);function d(e,t){var n=a.default.getStart(e).normalize(),r=a.default.getEnd(e).normalize();return function(e,i,a){return function(e,t,n,r){if(e){var i=t&&(0,s.getNextLeafSibling)(e,t,r),a=n&&(0,s.getPreviousLeafSibling)(e,n,r),l=!t||(0,o.default)(e,t)&&(0,o.default)(e,i),u=!n||(0,o.default)(e,n)&&(0,o.default)(e,a),d=!(t&&n&&((0,o.default)(t,n,!0)||(0,o.default)(t,a,!0)||(0,o.default)(n,t,!0)||(0,o.default)(n,i,!0)));return l&&u&&d}return!1}(e,i,a,t)?{rootNode:e,nodeBefore:i,nodeAfter:a,skipTags:t,fullSelectionStart:n,fullSelectionEnd:r}:null}}t.default=function(e,t,n){var r=[];if(e&&t){var a=u[n],s=a.innerSelector,c=a.skipTags,f=function(e,t,n){var r=[{innerNode:e,children:[]}],a=u[n],s=a.outerSelector,d=a.innerSelector,c=(0,l.default)(e,s,null,2,t);return(0,l.default)(e,d,(function(t){var n=(0,i.default)(t,e,s);if(n&&c.indexOf(n)<0){for(var a={innerNode:t,children:[]},l=r.length-1;l>=0;l--){var u=r[l],d=u.innerNode,f=u.children;if((0,o.default)(d,n)){var h=f.filter((function(e){return e.outerNode==n}))[0];h||(h={outerNode:n,boundaries:[]},f.push(h)),h.boundaries.push(a);break}}r.push(a)}}),1,t),r[0]}(e,t,n),h=(0,i.default)(t.startContainer,e,s)||e,p=(0,i.default)(t.endContainer,e,s)||e;r=function e(t,n,r,o,i){var a;i=i||n.innerNode==r;var l=!1,s=n.children,u=n.innerNode,d=[];if(0==s.length){(f=t(u))&&d.push(f)}else for(var c=0;c<=s.length&&!l;c++){var f,h=s[c]||{},p=h.outerNode,g=h.boundaries,v=null===(a=s[c-1])||void 0===a?void 0:a.outerNode;if(i)(f=t(u,v,p))&&d.push(f);null==g||g.forEach((function(n){var a,s;s=(a=e(t,n,r,o,i))[0],i=a[1],l=a[2],d=d.concat(s)}))}return[d,i,l||u==o]}(d(t,c),f,h,p)[0]}return r.filter((function(e){return!!e}))},t.getRegionCreator=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),o=n(33),i=n(1);t.default=function(e,t){if(!t||0==t.length)return[];var n=(0,i.default)(t[0],"Node")?t:[t[0].getStartNode(),t[t.length-1].getEndNode()],a=(n=n&&n.filter((function(t){return(0,o.default)(e,t)})))[0],l=n[n.length-1];return(0,o.default)(e,a)&&(0,o.default)(e,l)?(0,r.default)(e.rootNode,a,l,!0):[]}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(21),i=n(4),a=n(7),l=n(84),s=n(31),u=n(33),d=n(1),c=n(32),f=n(26);t.default=function(e,t,n){var h,p,g,v;if((0,u.default)(e,t)&&(0,u.default)(e,n)&&(v=(0,a.default)(e.rootNode,n))&&!v.contains(t)){for(var m=v.collapseToSingleElement(),b=(0,f.collapse)(e.rootNode,m,t,!1,!0),y=m;(0,i.default)(b,y);){var C=y.parentNode;if((0,d.default)(C,"HTMLElement")){var E=r(r(r({},(0,l.default)(C)||{}),(0,s.default)(C)),(0,s.default)(m));(0,c.default)(m,E)}y=C}var S=null,w=1==m.childNodes.length&&0==m.attributes.length?m.firstChild:(0,o.default)(m,"SPAN");for(y=w;(0,i.default)(b,y)&&1==(null===(h=y.parentNode)||void 0===h?void 0:h.childNodes.length);y=y.parentNode)S=y.parentNode;null===(p=t.parentNode)||void 0===p||p.insertBefore(w,t.nextSibling),null===(g=null==S?void 0:S.parentNode)||void 0===g||g.removeChild(S)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o={B:{"font-weight":"bold"},EM:{"font-style":"italic"},I:{"font-style":"italic"},U:{"text-decoration":"underline"},P:{"margin-top":"1em","margin-bottom":"1em"},PRE:{"white-space":"pre"},S:{"text-decoration":"line-through"},STRIKE:{"text-decoration":"line-through"},SUB:{"vertical-align":"sub","font-size":"smaller"},SUP:{"vertical-align":"super","font-size":"smaller"}};t.default=function(e,t){var n=(0,r.default)(e);return o[n]||(t||{})[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(2),i=n(38);function a(e){for(;e.previousSibling;)if(e=e.previousSibling,"BR"==(0,o.default)(e)||!(0,i.default)(e))return!1;return!0}t.default=function(e,t){if(e){var n=(e=e.normalize()).node;if(0==e.offset){for(;n&&(0,r.default)(t,n)&&a(n);)n=(null==n?void 0:n.parentNode)||null;return n==t}}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(5);function i(e,t){var n,o;if(!e||!t)return[];var i,a=e.node,l=e.offset,s=[];if(!(0,r.default)(t,a,!0))return[];if(3==a.nodeType){for(i=a.parentNode;a.previousSibling&&3==a.previousSibling.nodeType;)l+=(null===(n=a.previousSibling.nodeValue)||void 0===n?void 0:n.length)||0,a=a.previousSibling;s.unshift(l)}else i=a,a=a.childNodes[l];do{l=0;for(var u=!1,d=(null==i?void 0:i.firstChild)||null;d&&d!=a;d=d.nextSibling){if(3==d.nodeType){if(0===(null===(o=d.nodeValue)||void 0===o?void 0:o.length)||u)continue;u=!0}else u=!1;l++}s.unshift(l),a=i,i=(null==i?void 0:i.parentNode)||null}while(a&&a!=t);return s}t.default=function(e,t){return t?{start:i(o.default.getStart(t),e),end:i(o.default.getEnd(t),e)}:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearProceedingSnapshotsV2=void 0;var r=n(57);function o(e,t){if(t=t||function(e){var t;return(null===(t=e)||void 0===t?void 0:t.length)||0},(0,r.default)(e,1)){for(var n=0,o=e.currentIndex+1;o<e.snapshots.length;o++)n+=t(e.snapshots[o]);e.snapshots.splice(e.currentIndex+1),e.totalSize-=n,e.autoCompleteIndex=-1}}t.default=o,t.clearProceedingSnapshotsV2=function(e){o(e,(function(e){var t;return(null===(t=e.html)||void 0===t?void 0:t.length)||0}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="border-spacing,caption-side,color,cursor,direction,empty-cells,font-family,font-size,font-style,font-variant,font-weight,font,letter-spacing,line-height,list-style-image,list-style-position,list-style-type,list-style,orphans,quotes,text-align,text-indent,text-transform,visibility,white-space,widows,word-spacing".split(",");t.default=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView,n=t&&e&&t.getComputedStyle(e),o={};return r.forEach((function(e){return o[e]=n&&n.getPropertyValue(e)||""})),o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cloneObject=void 0;var r=n(8);var o=Object.assign?function(e,t){return Object.assign(t||{},e)}:function(e,t){var n=t||{};if(e)for(var o=0,i=(0,r.default)(e);o<i.length;o++){var a=i[o];n[a]=e[a]}return n};t.cloneObject=function(e,t){return o(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=!1,r="",o="",i=!1;return null===(t=null==e?void 0:e.className)||void 0===t||t.split(" ").forEach((function(e){"_Entity"==e?n=!0:0==e.indexOf("_EType_")?r=e.substr("_EType_".length):0==e.indexOf("_EId_")?o=e.substr("_EId_".length):0==e.indexOf("_EReadonly_")&&(i="1"==e.substr("_EReadonly_".length))})),n?{wrapper:e,id:o,type:r,isReadonly:i}:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return"._Entity"+(e?"._EType_"+e:"")+(t?"._EId_"+t:"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){var t=e.ctrlKey||"Control"===e.key,n=e.altKey||"Alt"===e.key,r=e.metaKey||"Meta"===e.key;return t||n||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasFocus=void 0;var r=n(0);t.hasFocus=function(e){var t=e.contentDiv.ownerDocument.activeElement;return!(!t||!(0,r.contains)(e.contentDiv,t,!0))}},function(e,t,n){"use strict";function r(e,t,n){for(var r=0,o=function(){return n.getElementById(t+r)},i=o();i;)r++,i=o();e.id=t+r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.ownerDocument;e.id?n.querySelectorAll("#"+e.id).length>1&&(e.removeAttribute("id"),r(e,t,n)):r(e,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDarkColor=void 0;var r=n(204);Object.defineProperty(t,"getDarkColor",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){var r=n(96),o={};for(var i in r)r.hasOwnProperty(i)&&(o[r[i]]=i);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var l in a)if(a.hasOwnProperty(l)){if(!("channels"in a[l]))throw new Error("missing channels property: "+l);if(!("labels"in a[l]))throw new Error("missing channel labels property: "+l);if(a[l].labels.length!==a[l].channels)throw new Error("channel and label counts mismatch: "+l);var s=a[l].channels,u=a[l].labels;delete a[l].channels,delete a[l].labels,Object.defineProperty(a[l],"channels",{value:s}),Object.defineProperty(a[l],"labels",{value:u})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,a=Math.min(r,o,i),l=Math.max(r,o,i),s=l-a;return l===a?t=0:r===l?t=(o-i)/s:o===l?t=2+(i-r)/s:i===l&&(t=4+(r-o)/s),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+l)/2,[t,100*(l===a?0:n<=.5?s/(l+a):s/(2-l-a)),100*n]},a.rgb.hsv=function(e){var t,n,r,o,i,a=e[0]/255,l=e[1]/255,s=e[2]/255,u=Math.max(a,l,s),d=u-Math.min(a,l,s),c=function(e){return(u-e)/6/d+.5};return 0===d?o=i=0:(i=d/u,t=c(a),n=c(l),r=c(s),a===u?o=r-n:l===u?o=1/3+t-r:s===u&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*u]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=o[e];if(t)return t;var n,i,a,l=1/0;for(var s in r)if(r.hasOwnProperty(s)){var u=r[s],d=(i=e,a=u,Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));d<l&&(l=d,n=s)}return n},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(e){var t,n,r,o,i,a=e[0]/360,l=e[1]/100,s=e[2]/100;if(0===l)return[i=255*s,i,i];t=2*s-(n=s<.5?s*(1+l):s+l-s*l),o=[0,0,0];for(var u=0;u<3;u++)(r=a+1/3*-(u-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[u]=255*i;return o},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),l=255*r*(1-n*i),s=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,s,a];case 1:return[l,r,a];case 2:return[a,r,s];case 3:return[a,l,r];case 4:return[s,a,r];case 5:return[r,a,l]}},a.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,a=e[2]/100,l=Math.max(a,.01);return r=(2-i)*a,n=i*l,[o,100*(n=(n/=(t=(2-i)*l)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,o,i,a,l,s=e[0]/360,u=e[1]/100,d=e[2]/100,c=u+d;switch(c>1&&(u/=c,d/=c),r=6*s-(t=Math.floor(6*s)),0!=(1&t)&&(r=1-r),o=u+r*((n=1-d)-u),t){default:case 6:case 0:i=n,a=o,l=u;break;case 1:i=o,a=n,l=u;break;case 2:i=u,a=n,l=o;break;case 3:i=u,a=o,l=n;break;case 4:i=o,a=u,l=n;break;case 5:i=n,a=u,l=o}return[255*i,255*a,255*l]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},a.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,a=e[2]/100;return n=-.9689*o+1.8758*i+.0415*a,r=.0557*o+-.204*i+1.057*a,t=(t=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),a=Math.pow(t,3),l=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],o=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),a=Math.min(Math.min(n,r),o),l=i-a;return t=l<=0?0:i===n?(r-o)/l%6:i===r?2+(o-n)/l:4+(n-r)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?a/(1-l):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],a=t%1*6,l=a%1,s=1-l;switch(Math.floor(a)){case 0:i[0]=1,i[1]=l,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=l;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=l,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(211),t),o(n(255),t),o(n(258),t),o(n(261),t),o(n(264),t),o(n(267),t),o(n(275),t),o(n(278),t),o(n(304),t),o(n(307),t),o(n(316),t),o(n(319),t),o(n(325),t)},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(214),i=n(243),a=n(244),l=n(245),s=n(249),u=n(250),d=n(251),c=n(252),f=n(253),h=n(254),p=r(r(r(r(r(r(r(r(r(r({},l.ListFeatures),u.QuoteFeatures),f.TableFeatures),c.StructuredNodeFeatures),o.AutoLinkFeatures),d.ShortcutFeatures),i.CursorFeatures),s.MarkdownFeatures),a.EntityFeatures),h.TextFeatures);t.default=function(){return p}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42),o=n(25),i=n(12),a=n(3),l=n(59),s=n(101),u=n(102),d=n(103),c=n(104),f=n(105),h=n(106),p=n(0),g=["font","text-decoration","color","background"],v="B,I,U,STRONG,EM,SUB,SUP,STRIKE,FONT,CENTER,H1,H2,H3,H4,H5,H6,UL,OL,LI,SPAN,P,BLOCKQUOTE,CODE,S,PRE".split(","),m=["href","src","cellpadding","cellspacing"],b=["TD","TH","TR","TABLE","TBODY","THEAD"];function y(e){var t=(0,p.toArray)(e.childNodes).map(y).every((function(e){return e})),n=(0,p.isBlockElement)(e),r=(0,p.getTagOfNode)(e);return r&&(v.indexOf(r)>=0||t&&!(0,p.isVoidHtmlElement)(e)&&b.indexOf(r)<0?(n&&!t&&(0,p.wrap)(e),(0,p.unwrap)(e)):function(e){for(var t=(0,p.safeInstanceOf)(e,"HTMLTableCellElement"),n=(0,p.safeInstanceOf)(e,"HTMLTableElement"),r=0,o=(0,p.toArray)(e.attributes);r<o.length;r++){var i=o[r];t&&"style"==i.name?E(e):n&&"style"==i.name?S(e):m.indexOf(i.name.toLowerCase())<0&&0!=i.name.indexOf("data-")&&e.removeAttribute(i.name)}}(e)),n}function C(e,t){var n=(0,p.getStyles)(e),r={};return(0,p.getObjectKeys)(n).forEach((function(e){return t(e,n,r)})),(0,p.setStyles)(e,n),r}function E(e){return C(e,(function(e,t,n){e.indexOf("border")<0&&(n[e]=t[e],delete t[e])}))}function S(e){return C(e,(function(e,t,n){"border-collapse"!=e&&(n[e]=t[e],delete t[e])}))}function w(e){if(!function(e){var t=e.getSelectionTraverser();return!!t.currentBlockElement&&!!t.getNextBlockElement()}(e)){var t=e.getSelectionTraverser().currentInlineElement;if(t instanceof p.PartialInlineElement||t instanceof p.NodeInlineElement&&!function(e,t){for(var n,r=e,o=function(){if(r.nextSibling||r.previousSibling){if((0,p.safeInstanceOf)(r,"HTMLLIElement"))return{value:!0};var e=!0;return null===(n=r.parentNode)||void 0===n||n.childNodes.forEach((function(t){t!=r&&t.textContent.length&&(e=!1)})),{value:e}}r=r.parentNode};r&&t.contains(r.parentNode);){var i=o();if("object"==typeof i)return i.value}return!0}(t.getContainerNode(),e))return void _(e)}T(e)}function T(e){(0,a.default)(e,(function(){(0,o.default)(e,(function(t){var n=(0,p.getSelectedBlockElementsInRegion)(t,void 0,e.isFeatureEnabled("DefaultFormatInSpan")),r=(0,p.collapseNodesInRegion)(t,n);if(e.contains(t.rootNode)){var o=E(t.rootNode);if((0,p.getObjectKeys)(o).length>0){var i=(0,p.wrap)((0,p.toArray)(t.rootNode.childNodes));(0,p.setStyles)(i,o)}}for(;r.length>0&&(0,p.isNodeInRegion)(t,r[0].parentNode);)r=[(0,p.splitBalancedNodeRange)(r)];r.forEach(y)})),O(e)}),"clearBlockFormat")}function O(e){var t=e.getDefaultFormat(),n=0===(0,p.getObjectKeys)(t).length;if(e.queryElements("[style]",2,(function(e){var t=(0,p.getTagOfNode)(e);-1==b.indexOf(t)?P(t,e,n):e.childNodes.forEach((function(e){e.childNodes.forEach((function(e){var t=(0,p.getTagOfNode)(e);(0,p.safeInstanceOf)(e,"HTMLElement")&&P(t,e,n)}))}))})),!n){if(t.fontFamily&&(0,s.default)(e,t.fontFamily),t.fontSize&&(0,u.default)(e,t.fontSize),t.textColor){var o=e.queryElements("a *, a",1),i=o.length>0?function(e){return-1==o.indexOf(e)}:null;t.textColors?(0,d.default)(e,t.textColors,i):(0,d.default)(e,t.textColor,i)}t.backgroundColor&&(t.backgroundColors?(0,l.default)(e,t.backgroundColors):(0,l.default)(e,t.backgroundColor)),t.bold?(0,c.default)(e):function(e,t){void 0===t&&(t="400"),(0,r.default)(e,"font-weight",(function(e){return e.style.fontWeight=t}),"setDefaultFontWeight")}(e),t.italic&&(0,f.default)(e),t.underline&&(0,h.default)(e)}}function P(e,t,n){-1==b.indexOf(e)&&(g.forEach((function(e){return t.style.removeProperty(e)})),n&&""===t.getAttribute("style")&&t.removeAttribute("style"))}function _(e,t){switch(void 0===t&&(t=0),t){case 0:!function(e){e.focus(),e.addUndoSnapshot((function(){return(0,i.default)(e,"removeFormat"),e.queryElements("[class]",1,(function(e){return e.removeAttribute("class")})),O(e),"clearInlineFormat"}),"Format")}(e);break;case 1:T(e);break;default:w(e)}}t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42);t.default=function(e,t){(0,r.default)(e,"font-family",(function(e,n){e.style.fontFamily=n?"":t}),"setFontName")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42),o=n(0);t.default=function(e,t){(0,r.default)(e,"font-size",(function(e,n){e.style.fontSize=n?"":t;var r=(0,o.getComputedStyle)(e,"line-height");r&&"normal"!=r&&(e.style.lineHeight="normal")}),"setFontSize")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42),o=n(0);t.default=function(e,t,n){(0,r.default)(e,"color",(function(r,i){n&&!n(r)||(0,o.setColor)(r,i?"":t,!1,e.isDarkMode())}),"setTextColor")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.default=function(e){(0,r.default)(e,"bold","toggleBold")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.default=function(e){(0,r.default)(e,"italic","toggleItalic")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.default=function(e){(0,r.default)(e,"underline","toggleUnderline")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e,t){if((0,r.safeInstanceOf)(e,"HTMLElement")){var n=e.style.textAlign,o=(0,r.findClosestElementAncestor)(e,void 0,"blockquote"),i=(a=e,"rtl"==(0,r.getComputedStyle)(a,"direction")||"rtl"==a.getAttribute("dir"));if(t){if(t.indexOf(o)>-1)return;t.push(o)}for(;o;)"center"==n?i?(delete o.style.marginInlineEnd,o.style.marginInlineStart="auto"):(delete o.style.marginInlineStart,o.style.marginInlineEnd="auto"):(delete o.style.marginInlineStart,delete o.style.marginInlineEnd),o=(0,r.findClosestElementAncestor)(o.parentElement,void 0,"blockquote")}var a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),o=n(0);t.default=function(e,t,n,i){(0,r.default)(e,(function(n){var r=(0,o.getSelectedBlockElementsInRegion)(n,!0,e.isFeatureEnabled("DefaultFormatInSpan")),i=(0,o.collapseNodesInRegion)(n,r);if(i.length>0){if(1==i.length){var a=(0,o.getTagOfNode)(i[0]);"BR"==a?i=[(0,o.wrap)(i[0])]:"LI"!=a&&"TD"!=a||(i=(0,o.toArray)(i[0].childNodes))}for(;i[0]&&(0,o.isNodeInRegion)(n,i[0].parentNode)&&i.some((function(e){return"LI"==(0,o.getTagOfNode)(e)}));)i=[(0,o.splitBalancedNodeRange)(i)];t(i)}}),n,i)}},function(e,t,n){"use strict";var r,o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});var a=n(110),l=n(112),s=n(43),u=n(61),d=n(270),c=n(271),f=n(34),h=n(272),p=n(0),g=n(113),v=Math.PI,m=2*v/8,b=["nw","n","ne","e","se","s","sw","w"],y={borderColor:"#DB626C",minWidth:10,minHeight:10,preserveRatio:!1,minRotateDeg:5,imageSelector:"img",rotateIconHTML:null,disableCrop:!1,disableRotate:!1,disableSideResize:!1,onSelectState:7},C=((r={})[1]=g.getCornerResizeHTML,r[2]=g.getSideResizeHTML,r[4]=h.getRotateHTML,r[8]=c.getCropHTML,r),E=function(){function e(e,t){var n=this;this.onShowResizeHandle=t,this.onBlur=function(){n.setEditingImage(null,!0)},this.removeWrapper=function(){var e,t,r=n.editor.getDocument();n.zoomWrapper&&(null===(e=r.body)||void 0===e?void 0:e.contains(n.zoomWrapper))&&(null===(t=r.body)||void 0===t||t.removeChild(n.zoomWrapper),n.toggleImageVisibility(n.image,!0)),n.wrapper=null,n.zoomWrapper=null},this.updateWrapper=function(e){var t,r=n.wrapper;if(r){var o=T(r,"r_cropC"),i=T(r,"r_cropO"),a=T(r,"r_resizeH"),l=T(r,"r_cropH"),s=1==o.length&&4==i.length,d=n.editInfo,c=d.angleRad,f=d.bottomPercent,h=d.leftPercent,v=d.rightPercent,m=d.topPercent,b=(0,u.default)(n.editInfo,s),y=b.targetWidth,C=b.targetHeight,E=b.originalWidth,_=b.originalHeight,M=b.visibleWidth,x=b.visibleHeight,N=(y-M)/2,R=(C-x)/2,I=E*h,L=E*v,k=_*m,D=_*f;if(r.style.width=w(M),r.style.height=w(x),r.style.margin=R+"px "+N+"px",r.style.transform="rotate("+c+"rad)",n.zoomWrapper.style.width=w(M),n.zoomWrapper.style.height=w(x),function(e,t,n){var r,o,i=O(n),a=i>=2&&i<4||i>=6,l=null===(o=null===(r=e.getScrollContainer())||void 0===r?void 0:r.getBoundingClientRect())||void 0===o?void 0:o.top,s=null==t?void 0:t.getBoundingClientRect(),u=s.top,d=s.width,c=s.height;if(l>u){var f=100*Math.abs(n),h=l-u,p=a?f*(h/d):h/c*100;t.style.clipPath="polygon(0 "+p+"%, 100% "+p+"%, 100% "+(a?f:"100")+"%, 0 "+(a?f:"100")+"%)"}}(n.editor,n.zoomWrapper,c),r.style.textAlign=(t=r.parentNode,(0,p.safeInstanceOf)(t,"HTMLElement")&&"rtl"==(0,p.getComputedStyle)(t,"direction")?"right":"left"),n.clonedImage.style.width=w(E),n.clonedImage.style.height=w(_),s)S(o[0],I,k,L,D,void 0,void 0),S(i[0],0,0,L,void 0,void 0,k),S(i[1],void 0,0,0,D,L,void 0),S(i[2],I,void 0,0,0,void 0,D),S(i[3],0,k,void 0,0,I,void 0),P(l,c);else{if(n.clonedImage.style.margin=-k+"px 0 0 "+-I+"px","r_resizeH"==(null==e?void 0:e.elementClass)){var A=r.clientWidth,j=r.clientHeight;n.wasResized=!0,(0,g.doubleCheckResize)(n.editInfo,n.options.preserveRatio,A,j),n.updateWrapper()}P(a,c)}}},this.options=o(o({},y),e||{}),this.allowedOperations=1|(this.options.disableCrop?0:8)|(this.options.disableRotate?0:4)|(this.options.disableSideResize?0:2)}return e.prototype.getName=function(){return"ImageEdit"},e.prototype.initialize=function(e){this.editor=e,this.disposer=e.addDomEventHandler("blur",this.onBlur)},e.prototype.dispose=function(){this.clearDndHelpers(),this.disposer(),this.disposer=null,this.editor=null},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 22:e.selectionRangeEx&&2===e.selectionRangeEx.type&&this.setEditingImage(e.selectionRangeEx.image,this.options.onSelectState);break;case 5:case 0:this.setEditingImage(null);break;case 7:this.removeWrapper();break;case 8:(0,p.toArray)(e.clonedRoot.querySelectorAll(this.options.imageSelector)).forEach((function(e){(0,f.deleteEditInfo)(e)}));break;case 14:this.setEditingImage(null)}},e.prototype.isOperationAllowed=function(e){return!!(this.allowedOperations&e)},e.prototype.setEditingImage=function(e,t){var n=this,r="number"==typeof t?t:0,o="number"!=typeof t&&!!t;!e&&this.image&&(this.clearDndHelpers(),(0,a.default)(this.editor,this.image,this.editInfo,this.lastSrc,this.wasResized,this.clonedImage),this.removeWrapper(),this.editor.addUndoSnapshot((function(){return n.image}),"ImageResize"),o&&this.editor.select(this.image),this.image=null,this.editInfo=null,this.lastSrc=null,this.clonedImage=null),!this.image&&(null==e?void 0:e.isContentEditable)&&(this.editor.addUndoSnapshot(),this.image=e,this.editInfo=(0,f.getEditInfoFromImage)(e),this.wasResized=function(e){var t=e.width,n=e.height,r=e.style;return!(""!==r.maxWidth&&"initial"!==r.maxWidth&&"auto"!==r.maxWidth||!(_(r.height)||_(r.width)||_(t)||_(n)))}(this.image),r=((0,l.default)(e)?r:3)&this.allowedOperations,this.createWrapper(r),this.updateWrapper(),this.dndHelpers=i(i(i(i([],this.createDndHelpers("r_resizeH",g.Resizer),!0),this.createDndHelpers("r_rotateH",h.Rotator),!0),this.createDndHelpers("r_cropH",c.Cropper),!0),this.createDndHelpers("r_cropC",c.Cropper),!0),this.editor.select(this.image),this.toggleImageVisibility(this.image,!1))},e.prototype.createWrapper=function(e){var t=this;this.clonedImage=this.image.cloneNode(!0),this.clonedImage.removeAttribute("id"),this.wrapper=(0,p.createElement)(6,this.image.ownerDocument),this.wrapper.firstChild.appendChild(this.clonedImage);var n,r,o=(n=this.image,r="vertical-align",n.ownerDocument.defaultView.getComputedStyle(n).getPropertyValue(r));o&&(this.wrapper.style.verticalAlign=o),this.wrapper.style.display=p.Browser.isSafari?"inline-block":"inline-flex",this.lastSrc=this.image.getAttribute("src"),this.clonedImage.src=this.editInfo.src,this.clonedImage.style.position="absolute",this.clonedImage.style.maxWidth=null;var i,a,l,s={borderColor:M(this.options.borderColor,this.editor.isDarkMode()),rotateIconHTML:this.options.rotateIconHTML,rotateHandleBackColor:this.editor.isDarkMode()?"#333":"white",isSmallImage:(i=this.editInfo,a=i.widthPx,l=i.heightPx,a&&l&&a*a<1e4)},u=[(0,g.getResizeBordersHTML)(s)];(0,p.getObjectKeys)(C).forEach((function(n){(e&n)==n&&(0,p.arrayPush)(u,C[n](s,t.onShowResizeHandle))})),u.forEach((function(e){var n=(0,p.createElement)(e,t.image.ownerDocument);n&&t.wrapper.appendChild(n)})),this.insertImageWrapper(this.editor,this.image,this.wrapper,this.editor.getZoomScale())},e.prototype.toggleImageVisibility=function(e,t){var n=this.editor.getEditorDomAttribute("id"),r=this.editor.getDocument(),o="editingId"+n;if(t)(0,p.removeGlobalCssStyle)(r,o);else{var i="#"+n+" #"+e.id+" {visibility: hidden}";(0,p.setGlobalCssStyles)(r,i,o)}},e.prototype.insertImageWrapper=function(e,t,n,r){this.zoomWrapper=function(e,t){var n=e.getBoundingClientRect(),r=n.top,o=n.left,i=n.right,a=n.bottom;return t.style.top=r+"px",t.style.bottom=a+"px",t.style.right=i+"px",t.style.left=o+"px",t}(t,function(e,t,n){var r=e.getDocument().createElement("div");return r.style.transform="scale("+(n||1)+")",r.style.transformOrigin="top left",r.style.position="fixed",r.appendChild(t),r}(e,n,r)),this.zoomWrapper.style.zIndex=""+((0,d.default)(e.getScrollContainer())+1),this.editor.getDocument().body.appendChild(this.zoomWrapper)},e.prototype.createDndHelpers=function(e,t){var n=this,r={editInfo:this.editInfo,options:this.options,elementClass:e},i=this.wrapper;return i?T(i,e).map((function(e){return new s.default(e,o(o({},r),{x:e.dataset.x,y:e.dataset.y}),n.updateWrapper,t,n.editor.getZoomScale())})):[]},e.prototype.clearDndHelpers=function(){var e;null===(e=this.dndHelpers)||void 0===e||e.forEach((function(e){return e.dispose()})),this.dndHelpers=null},e}();function S(e,t,n,r,o,i,a){e.style.left=w(t),e.style.top=w(n),e.style.right=w(r),e.style.bottom=w(o),e.style.width=w(i),e.style.height=w(a)}function w(e){return void 0===e?null:e+"px"}function T(e,t){return(0,p.toArray)(e.querySelectorAll("."+t))}function O(e){var t=Math.round(e/m)%8;return t<0?t+8:t}function P(e,t){e.map((function(e){e.style.cursor=function(e,t){var n=O(t),r=e.dataset.y+e.dataset.x,o=b.indexOf(r);return b[(o>=0&&o+n)%8]}(e,t)+"-resize"}))}function _(e){var t="string"==typeof e?parseInt(e):e;return!isNaN(t)}function M(e,t){return"string"==typeof e?e.trim():t?e.darkModeColor.trim():e.lightModeColor.trim()}t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(111),o=n(269),i=n(61),a=n(34);t.default=function(e,t,n,l,s,u){var d="",c=(0,a.getEditInfoFromImage)(null!=u?u:t),f=(0,r.default)(n,c);switch(f){case 1:d=n.src;break;case 2:d=l;break;case 3:d=(0,o.default)(null!=u?u:t,n)}d!=l&&(d=e.triggerPluginEvent(19,{image:t,originalSrc:n.src,previousSrc:l,newSrc:d}).newSrc),d==n.src?(0,a.deleteEditInfo)(t):(0,a.saveEditInfo)(t,n);var h=(0,i.default)(n),p=h.targetWidth,g=h.targetHeight;t.src=d,(s||3==f)&&(t.style.maxWidth="initial",t.width=p,t.height=g,t.style.width=p+"px",t.style.height=g+"px")}},function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});var o=["angleRad"],i=["leftPercent","rightPercent","topPercent","bottomPercent"],a=r(r([],o,!0),i,!0),l=r(r([],a,!0),["widthPx","heightPx"],!0);function s(e,t){return Math.abs(e-t)<.001}t.default=function(e,t){return e&&e.src&&!l.some((function(t){return!("number"==typeof e[t])}))?a.every((function(t){return s(e[t],0)}))?1:t&&o.every((function(t){return s(e[t],0)}))&&o.every((function(e){return s(t[e],0)}))&&i.every((function(n){return s(e[n],t[n])}))?2:3:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)return!1;try{var t=e.ownerDocument.createElement("canvas");t.width=10,t.height=10;var n=t.getContext("2d");return n.drawImage(e,0,0),n.getImageData(0,0,1,1),!0}catch(e){return!1}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getResizeBordersHTML=t.getSideResizeHTML=t.getCornerResizeHTML=t.doubleCheckResize=t.rotateCoordinate=t.Resizer=void 0;var o=["w","","e"],i=["s","","n"];function a(e,t,n){if(0==e&&0==t)return[0,0];var r=Math.sqrt(e*e+t*t);return n=Math.atan2(t,e)-n,[r*Math.cos(n),r*Math.sin(n)]}function l(e,t,n,r){var o="w"==e?"left":"right",i="n"==t?"top":"bottom",a=t+e;return""==e&&""==t?null:{tag:"div",style:"position:absolute;"+o+":"+(""==e?"50%":"0px")+";"+i+":"+(""==t?"50%":"0px"),children:[{tag:"div",style:s[r](a,i,o,n),className:"r_resizeH",dataset:{x:e,y:t}}]}}t.Resizer={onDragStart:function(e){var t=e.editInfo;return r({},t)},onDragging:function(e,t,n,r,o){var i,l=e.x,s=e.y,u=e.editInfo,d=e.options,c=n.widthPx>0&&n.heightPx>0?1*n.widthPx/n.heightPx:0;r=(i=a(r,o,u.angleRad))[0],o=i[1];var f=""==l,h=""==s,p=!(f||h)&&(d.preserveRatio||t.shiftKey),g=f?n.widthPx:Math.max(n.widthPx+r*("w"==l?-1:1),d.minWidth),v=h?n.heightPx:Math.max(n.heightPx+o*("n"==s?-1:1),d.minHeight);return p&&c>0&&(c>1?(g=v*c)<d.minWidth&&(v=(g=d.minWidth)/c):(v=g/c)<d.minHeight&&(g=(v=d.minHeight)*c)),u.widthPx=g,u.heightPx=v,!0}},t.rotateCoordinate=a,t.doubleCheckResize=function(e,t,n,r){var o=e.widthPx,i=e.heightPx,a=i>0?o/i:0;n=Math.floor(n),r=Math.floor(r),o=Math.floor(o),i=Math.floor(i),e.widthPx=n,e.heightPx=r,t&&a>0&&(o!==n||i!==r)&&(n<o?e.heightPx=n/a:e.widthPx=r*a)},t.getCornerResizeHTML=function(e,t){var n=e.borderColor,r=[];return o.forEach((function(e){return i.forEach((function(o){var i=""==e==(""==o)?l(e,o,n,1):null;t&&t(i,e,o),r.push(i)}))})),r},t.getSideResizeHTML=function(e,t){var n=e.borderColor;if(e.isSmallImage)return null;var r=[];return o.forEach((function(e){return i.forEach((function(o){var i=""==e!=(""==o)?l(e,o,n,1):null;t&&t(i,e,o),r.push(i)}))})),r},t.getResizeBordersHTML=function(e){return{tag:"div",style:"position:absolute;left:0;right:0;top:0;bottom:0;border:solid 2px "+e.borderColor+";pointer-events:none;"}};var s={0:function(e,t,n,r){return"position:relative;width:10px;height:10px;background-color: "+r+";cursor:"+e+"-resize;"+n+":-3px;"+t+":-3px;"},1:function(e,t,n){return"position:relative;width:10px;height:10px;background-color: #FFFFFF;cursor:"+e+"-resize;"+n+":-3px;"+t+":-3px;border-radius:100%;border: 2px solid #bfbfbf;box-shadow: 0px 0.36316px 1.36185px rgba(100, 100, 100, 0.25);"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.naturalWidth,r=e.naturalHeight,o=e.leftPercent,i=e.topPercent;return{width:n*(1-o-e.rightPercent)*t,height:r*(1-i-e.bottomPercent)*t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(114),o=n(34);t.default=function(e,t){var n=(0,o.getEditInfoFromImage)(e),i=(0,r.default)(n,t),a=i.width,l=i.height;return Math.round(a)==Math.round(n.widthPx)&&Math.round(l)==Math.round(n.heightPx)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getObject=t.setObject=t.createCustomData=void 0;function r(e,t){var n=t.getAttribute("NodeId");return n||(n=e.nextNodeId.toString(),e.nextNodeId++,t.setAttribute("NodeId",n)),n}t.createCustomData=function(){return{dict:{},nextNodeId:1}},t.setObject=function(e,t,n,o){if(1==t.nodeType){var i=r(e,t);""!=i&&(e.dict[i]||(e.dict[i]={}),e.dict[i][n]=o)}},t.getObject=function(e,t,n){if(1==t.nodeType){var o=r(e,t);if(""!=o)return e.dict[o]&&e.dict[o][n]}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLevelLists=void 0,t.createLevelLists=function(){return{listsMetadata:{},currentUniqueListId:-1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createEditor=void 0;var i=n(124);Object.defineProperty(t,"createEditor",{enumerable:!0,get:function(){return i.default}}),o(n(328),t),o(n(330),t),o(n(0),t),o(n(62),t),o(n(9),t),o(n(98),t),o(n(95),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(62),o=n(95),i=n(98);t.default=function(e,t,n){var a=[new i.HyperLink,new i.Paste,new i.ContentEdit];t&&(a=a.concat(t));var l={plugins:a,initialContent:n,getDarkColor:o.getDarkColor,defaultFormat:{fontFamily:"Calibri,Arial,Helvetica,sans-serif",fontSize:"11pt",textColor:"#000000"}};return new r.Editor(e,l)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(126),i=n(184),a=n(0),l=function(){function e(e,t){var n,l=this;if(void 0===t&&(t={}),this.core=null,"DIV"!=(0,a.getTagOfNode)(e))throw new Error("contentDiv must be an HTML DIV element");var s=(0,o.default)(e,t),u=[];(0,a.getObjectKeys)(s).forEach((function(e){"_placeholder"==e?t.plugins&&(0,a.arrayPush)(u,t.plugins):u.push(s[e])}));var d=(null!==(n=t.zoomScale)&&void 0!==n?n:-1)>0?t.zoomScale:1;this.core=r(r({contentDiv:e,api:r(r({},i.coreApiMap),t.coreApiOverride||{}),originalApi:i.coreApiMap,plugins:u.filter((function(e){return!!e}))},(0,o.getPluginState)(s)),{trustedHTMLHandler:t.trustedHTMLHandler||function(e){return e},zoomScale:d,sizeTransformer:t.sizeTransformer||function(e){return e/d},getVisibleViewport:t.getVisibleViewport||function(){var t=l.getScrollContainer();return(0,a.getIntersectedRect)(t==e?[t]:[t,e])},imageSelectionBorderColor:t.imageSelectionBorderColor}),this.core.plugins.forEach((function(e){return e.initialize(l)})),this.ensureTypeInContainer(new a.Position(this.core.contentDiv,0).normalize())}return e.prototype.dispose=function(){for(var e=this.getCore(),t=e.plugins.length-1;t>=0;t--)e.plugins[t].dispose();this.core=null},e.prototype.isDisposed=function(){return!this.core},e.prototype.insertNode=function(e,t){var n=this.getCore();return!!e&&n.api.insertNode(n,e,null!=t?t:null)},e.prototype.deleteNode=function(e){return!!(e&&this.contains(e)&&e.parentNode)&&(e.parentNode.removeChild(e),!0)},e.prototype.replaceNode=function(e,t,n){var r=this.getCore();return!(!this.contains(e)||!t)&&(r.api.transformColor(r,n?t:null,!0,(function(){var n;return null===(n=e.parentNode)||void 0===n?void 0:n.replaceChild(t,e)}),0),!0)},e.prototype.getBlockElementAtNode=function(e){return(0,a.getBlockElementAtNode)(this.getCore().contentDiv,e)},e.prototype.contains=function(e){return!!e&&(0,a.contains)(this.getCore().contentDiv,e)},e.prototype.queryElements=function(e,t,n){void 0===t&&(t=0);var r=this.getCore(),o=[],i=t instanceof Function?0:t;n=t instanceof Function?t:n;var l=0==i?null:this.getSelectionRangeEx();return l?(l.ranges.forEach((function(t){o.push.apply(o,(0,a.queryElements)(r.contentDiv,e,n,i,t))})),o):(0,a.queryElements)(r.contentDiv,e,n,i,void 0)},e.prototype.collapseNodes=function(e,t,n){return(0,a.collapseNodes)(this.getCore().contentDiv,e,t,n)},e.prototype.isEmpty=function(e){return(0,a.isNodeEmpty)(this.getCore().contentDiv,e)},e.prototype.getContent=function(e){void 0===e&&(e=0);var t=this.getCore();return t.api.getContent(t,e)},e.prototype.setContent=function(e,t){void 0===t&&(t=!0);var n=this.getCore();n.api.setContent(n,e,t)},e.prototype.insertContent=function(e,t){var n;if(e){var r=this.getDocument(),o=null===(n=(new DOMParser).parseFromString(this.getCore().trustedHTMLHandler(e),"text/html"))||void 0===n?void 0:n.body,i=(null==o?void 0:o.childNodes)?(0,a.toArray)(o.childNodes):[];t&&t.insertOnNewLine&&i.length>1&&(i=[(0,a.wrap)(i)]);var l=r.createDocumentFragment();i.forEach((function(e){return l.appendChild(e)})),this.insertNode(l,t)}},e.prototype.deleteSelectedContent=function(){var e=this.getSelectionRange();return e&&!e.collapsed?(0,a.deleteSelectedContent)(this.getCore().contentDiv,e):null},e.prototype.paste=function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var o=this.getCore();if(e){e.snapshotBeforePaste?this.setContent(e.snapshotBeforePaste):e.snapshotBeforePaste=this.getContent(2);var i=this.getSelectionRange(),l=i&&a.Position.getStart(i),s=o.api.createPasteFragment(o,e,l,t,n);s&&this.addUndoSnapshot((function(){return r.insertNode(s),e}),"Paste")}},e.prototype.getSelectionRange=function(e){void 0===e&&(e=!0);var t=this.getCore();return t.api.getSelectionRange(t,e)},e.prototype.getSelectionRangeEx=function(){var e=this.getCore();return e.api.getSelectionRangeEx(e)},e.prototype.getSelectionPath=function(){var e=this.getSelectionRange();return e&&(0,a.getSelectionPath)(this.getCore().contentDiv,e)},e.prototype.hasFocus=function(){var e=this.getCore();return e.api.hasFocus(e)},e.prototype.focus=function(){var e=this.getCore();e.api.focus(e)},e.prototype.select=function(e,t,n,r){var o,i=this.getCore(),l=null;if(function(e){var t=e;return t&&"object"==typeof t&&"number"==typeof t.type&&Array.isArray(t.ranges)}(e))l=e;else if((0,a.safeInstanceOf)(e,"HTMLTableElement")&&((o=t)&&"object"==typeof o&&"object"==typeof o.firstCell&&"object"==typeof o.lastCell))l={type:1,ranges:[],areAllCollapsed:!1,table:e,coordinates:t};else if((0,a.safeInstanceOf)(e,"HTMLImageElement")&&void 0===t)l={type:2,ranges:[],areAllCollapsed:!1,image:e};else{var s=e?(0,a.safeInstanceOf)(e,"Range")?e:function(e){var t=e;return t&&"object"==typeof t&&Array.isArray(t.start)&&Array.isArray(t.end)}(e)?(0,a.createRange)(i.contentDiv,e.start,e.end):function(e){var t=e;return t&&"object"==typeof t&&"object"==typeof t.node&&"number"==typeof t.offset}(e)||(0,a.safeInstanceOf)(e,"Node")?(0,a.createRange)(e,t,n,r):null:null;l=s?{type:0,ranges:[s],areAllCollapsed:s.collapsed}:null}if(l){switch(l.type){case 1:this.contains(l.table)&&(i.domEvent.imageSelectionRange=i.api.selectImage(i,null),i.domEvent.tableSelectionRange=i.api.selectTable(i,l.table,l.coordinates),l=i.domEvent.tableSelectionRange);break;case 2:this.contains(l.image)&&(i.domEvent.tableSelectionRange=i.api.selectTable(i,null),i.domEvent.imageSelectionRange=i.api.selectImage(i,l.image),l=i.domEvent.imageSelectionRange);break;case 0:i.domEvent.tableSelectionRange=i.api.selectTable(i,null),i.domEvent.imageSelectionRange=i.api.selectImage(i,null),this.contains(l.ranges[0])?i.api.selectRange(i,l.ranges[0]):l=null}this.triggerPluginEvent(22,{selectionRangeEx:l},!0)}else i.domEvent.tableSelectionRange=i.api.selectTable(i,null),i.domEvent.imageSelectionRange=i.api.selectImage(i,null);return!!l},e.prototype.getFocusedPosition=function(){var e,t=null===(e=this.getDocument().defaultView)||void 0===e?void 0:e.getSelection();if((null==t?void 0:t.focusNode)&&this.contains(t.focusNode))return new a.Position(t.focusNode,t.focusOffset);var n=this.getSelectionRange();return n?a.Position.getStart(n):null},e.prototype.getElementAtCursor=function(e,t,n){var r,o=this;return n=t?void 0:n,null!==(r=(0,a.cacheGetEventData)(null!=n?n:null,"GET_ELEMENT_AT_CURSOR_"+e,(function(){if(!t){var n=o.getFocusedPosition();t=null==n?void 0:n.node}return t&&(0,a.findClosestElementAncestor)(t,o.getCore().contentDiv,e)})))&&void 0!==r?r:null},e.prototype.isPositionAtBeginning=function(e){return(0,a.isPositionAtBeginningOf)(e,this.getCore().contentDiv)},e.prototype.getSelectedRegions=function(e){void 0===e&&(e=0);var t=this.getSelectionRangeEx(),n=[],r=this.getCore().contentDiv;return t.ranges.forEach((function(t){n.push.apply(n,t?(0,a.getRegionsFromRange)(r,t,e):[])})),n.filter((function(e,t,n){return n.indexOf(e)===t}))},e.prototype.addDomEventHandler=function(e,t){var n,r="string"==typeof e?((n={})[e]=t,n):e,o=this.getCore();return o.api.attachDomEvent(o,r)},e.prototype.triggerPluginEvent=function(e,t,n){void 0===n&&(n=!1);var o=this.getCore(),i=r({eventType:e},t);return o.api.triggerEvent(o,i,n),i},e.prototype.triggerContentChangedEvent=function(e,t){void 0===e&&(e="SetContent"),this.triggerPluginEvent(7,{source:e,data:t})},e.prototype.undo=function(){this.focus();var e=this.getCore();e.api.restoreUndoSnapshot(e,-1)},e.prototype.redo=function(){this.focus();var e=this.getCore();e.api.restoreUndoSnapshot(e,1)},e.prototype.addUndoSnapshot=function(e,t,n,r){var o=this.getCore();o.api.addUndoSnapshot(o,null!=e?e:null,null!=t?t:null,null!=n&&n,r)},e.prototype.getUndoState=function(){var e=this.getCore().undo,t=e.hasNewContent,n=e.snapshotsService;return{canUndo:t||n.canMove(-1),canRedo:n.canMove(1)}},e.prototype.getDocument=function(){return this.getCore().contentDiv.ownerDocument},e.prototype.getScrollContainer=function(){return this.getCore().domEvent.scrollContainer},e.prototype.getCustomData=function(e,t,n){var r=this.getCore();return(r.lifecycle.customData[e]=r.lifecycle.customData[e]||{value:t?t():void 0,disposer:n}).value},e.prototype.isInIME=function(){return this.getCore().domEvent.isInIME},e.prototype.getDefaultFormat=function(){var e;return null!==(e=this.getCore().lifecycle.defaultFormat)&&void 0!==e?e:{}},e.prototype.getBodyTraverser=function(e){return a.ContentTraverser.createBodyTraverser(this.getCore().contentDiv,e)},e.prototype.getSelectionTraverser=function(e){var t;return(e=null!==(t=null!=e?e:this.getSelectionRange())&&void 0!==t?t:void 0)?a.ContentTraverser.createSelectionTraverser(this.getCore().contentDiv,e):null},e.prototype.getBlockTraverser=function(e){void 0===e&&(e=3);var t=this.getSelectionRange();return t?a.ContentTraverser.createBlockTraverser(this.getCore().contentDiv,t,e):null},e.prototype.getContentSearcherOfCursor=function(e){var t=this;return(0,a.cacheGetEventData)(null!=e?e:null,"ContentSearcher",(function(){var e=t.getSelectionRange();return e&&new a.PositionContentSearcher(t.getCore().contentDiv,a.Position.getStart(e))}))},e.prototype.runAsync=function(e){var t=this,n=this.getCore().contentDiv.ownerDocument.defaultView||window,r=n.requestAnimationFrame((function(){!t.isDisposed()&&e&&e(t)}));return function(){n.cancelAnimationFrame(r)}},e.prototype.setEditorDomAttribute=function(e,t){null===t?this.getCore().contentDiv.removeAttribute(e):this.getCore().contentDiv.setAttribute(e,t)},e.prototype.getEditorDomAttribute=function(e){return this.getCore().contentDiv.getAttribute(e)},e.prototype.getRelativeDistanceToEditor=function(e,t){if(this.contains(e)){var n=this.getCore().contentDiv,r=n.getBoundingClientRect(),o=e.getBoundingClientRect();if(r&&o){var i=o.left-(null==r?void 0:r.left),a=o.top-(null==r?void 0:r.top);return t&&(i+=n.scrollLeft,a+=n.scrollTop),[i,a]}}return null},e.prototype.addContentEditFeature=function(e){var t=this.getCore();null==e||e.keys.forEach((function(n){var r=t.edit.features[n]||[];r.push(e),t.edit.features[n]=r}))},e.prototype.removeContentEditFeature=function(e){var t=this.getCore();null==e||e.keys.forEach((function(n){var r,o=t.edit.features[n],i=null!==(r=null==o?void 0:o.indexOf(e))&&void 0!==r?r:-1;i>=0&&(t.edit.features[n].splice(i,1),t.edit.features[n].length<1&&delete t.edit.features[n])}))},e.prototype.getStyleBasedFormatState=function(e){var t;if(!e){var n=this.getSelectionRange();e=null!==(t=n&&a.Position.getStart(n).normalize().node)&&void 0!==t?t:void 0}var r=this.getCore();return r.api.getStyleBasedFormatState(r,null!=e?e:null)},e.prototype.getPendableFormatState=function(e){void 0===e&&(e=!1);var t=this.getCore();return t.api.getPendableFormatState(t,e)},e.prototype.ensureTypeInContainer=function(e,t){var n=this.getCore();n.api.ensureTypeInContainer(n,e,t,this.isFeatureEnabled("DefaultFormatInSpan"))},e.prototype.setDarkModeState=function(e){if(this.isDarkMode()!=!!e){var t=this.getCore();t.api.transformColor(t,t.contentDiv,!1,null,e?0:1,!0),this.triggerContentChangedEvent(e?"SwitchToDarkMode":"SwitchToLightMode")}},e.prototype.isDarkMode=function(){return this.getCore().lifecycle.isDarkMode},e.prototype.transformToDarkColor=function(e){var t=this.getCore();t.api.transformColor(t,e,!0,null,0)},e.prototype.startShadowEdit=function(){var e=this.getCore();e.api.switchShadowEdit(e,!0)},e.prototype.stopShadowEdit=function(){var e=this.getCore();e.api.switchShadowEdit(e,!1)},e.prototype.isInShadowEdit=function(){return!!this.getCore().lifecycle.shadowEditFragment},e.prototype.isFeatureEnabled=function(e){return this.getCore().lifecycle.experimentalFeatures.indexOf(e)>=0},e.prototype.getTrustedHTMLHandler=function(){return this.getCore().trustedHTMLHandler},e.prototype.getSizeTransformer=function(){return this.getCore().sizeTransformer},e.prototype.getZoomScale=function(){return this.getCore().zoomScale},e.prototype.setZoomScale=function(e){var t=this.getCore();if(e>0&&e<=10){var n=t.zoomScale;t.zoomScale=e,n!=e&&this.triggerPluginEvent(21,{oldZoomScale:n,newZoomScale:e},!0)}},e.prototype.getVisibleViewport=function(){return this.getCore().getVisibleViewport()},e.prototype.getCore=function(){if(!this.core)throw new Error("Editor is already disposed");return this.core},e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPluginState=void 0;var r=n(127),o=n(174),i=n(175),a=n(176),l=n(177),s=n(178),u=n(179),d=n(180),c=n(181),f=n(182),h=n(183);t.default=function(e,t){var n=t.corePluginOverride||{};return{typeInContainer:n.typeInContainer||new f.default,edit:n.edit||new i.default,pendingFormatState:n.pendingFormatState||new c.default,_placeholder:null,typeAfterLink:null,undo:n.undo||new h.default(t),domEvent:n.domEvent||new o.default(t,e),mouseUp:n.mouseUp||new u.default,copyPaste:n.copyPaste||new r.default(t),entity:n.entity||new a.default,imageSelection:n.imageSelection||new l.default,normalizeTable:n.normalizeTable||new d.default,lifecycle:n.lifecycle||new s.default(t,e)}},t.getPluginState=function(e){return{domEvent:e.domEvent.getState(),pendingFormatState:e.pendingFormatState.getState(),edit:e.edit.getState(),lifecycle:e.lifecycle.getState(),undo:e.undo.getState(),entity:e.entity.getState(),copyPaste:e.copyPaste.getState()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(128),o=n(129),i=n(0),a=function(){function e(e){var t=this;this.editor=null,this.disposer=null,this.onPaste=function(e){var n,r=null;if(t.editor){var o=t.editor;(0,i.extractClipboardEvent)(e,(function(e){o&&!o.isDisposed()&&o.paste(e)}),{allowedCustomPasteType:t.state.allowedCustomPasteType,getTempDiv:function(){var e;return r=null!==(e=o.getSelectionRange())&&void 0!==e?e:null,t.getTempDiv(o)},removeTempDiv:function(e){r&&t.cleanUpAndRestoreSelection(e,r,!1)}},null!==(n=t.editor.getSelectionRange())&&void 0!==n?n:void 0)}},this.state={allowedCustomPasteType:e.allowedCustomPasteType||[]}}return e.prototype.getName=function(){return"CopyPaste"},e.prototype.initialize=function(e){var t=this;this.editor=e,this.disposer=this.editor.addDomEventHandler({paste:function(e){return t.onPaste(e)},copy:function(e){return t.onCutCopy(e,!1)},cut:function(e){return t.onCutCopy(e,!0)}})},e.prototype.dispose=function(){this.disposer&&this.disposer(),this.disposer=null,this.editor=null},e.prototype.getState=function(){return this.state},e.prototype.onCutCopy=function(e,t){var n=this;if(this.editor){var r=this.editor.getSelectionRangeEx();if(r&&!r.areAllCollapsed){var o=this.editor.getContent(2),a=this.getTempDiv(this.editor,!0),l=(0,i.setHtmlWithMetadata)(a,o,this.editor.getTrustedHTMLHandler()),s=null;if(1===r.type&&r.coordinates){var u=a.querySelector("#"+r.table.id);s=this.createTableRange(u,r.coordinates),t&&this.deleteTableContent(this.editor,r.table,r.coordinates)}else if(2===r.type){var d=a.querySelector("#"+r.image.id);d&&(s=(0,i.createRange)(d),t&&this.deleteImage(this.editor,r.image.id))}else s=0===(null==l?void 0:l.type)?(0,i.createRange)(a,l.start,l.end):null;if(s)this.editor.triggerPluginEvent(9,{clonedRoot:a,range:s,rawEvent:e,isCut:t}).range&&(0,i.addRangeToSelection)(s),this.editor.runAsync((function(e){n.cleanUpAndRestoreSelection(a,r,!t),t&&e.addUndoSnapshot((function(){var t=e.deleteSelectedContent();e.focus(),e.select(t)}),"Cut")}))}}},e.prototype.getTempDiv=function(e,t){var n=e.getCustomData("CopyPasteTempDiv",(function(){var t=(0,i.createElement)(3,e.getDocument());return e.getDocument().body.appendChild(t),t}),(function(e){var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)}));return t&&(n.style.backgroundColor="white",n.style.color="black"),n.style.display="",n.focus(),n},e.prototype.cleanUpAndRestoreSelection=function(e,t,n){var r,o,a;if((null===(r=t)||void 0===r?void 0:r.type)||0==t.type){var l=t;switch(l.type){case 1:case 2:null===(o=this.editor)||void 0===o||o.select(l);break;case 0:var s=null===(a=l.ranges)||void 0===a?void 0:a[0];this.restoreRange(s,n)}}else this.restoreRange(t,n);e.style.backgroundColor="",e.style.color="",e.style.display="none",(0,i.moveChildNodes)(e)},e.prototype.restoreRange=function(e,t){e&&this.editor&&(t&&i.Browser.isAndroid&&e.collapse(),this.editor.select(e))},e.prototype.createTableRange=function(e,t){var n=new i.VTable(e);return n.selection=t,(0,o.removeCellsOutsideSelection)(n),n.writeBack(),(0,i.createRange)(n.table)},e.prototype.deleteTableContent=function(e,t,n){var o=new i.VTable(t);o.selection=n,(0,r.forEachSelectedCell)(o,(function(t){(null==t?void 0:t.td)&&(t.td.innerHTML=e.getTrustedHTMLHandler()("<br>"))}));var a=(0,i.isWholeTableSelected)(o,n),l=t.rows.length-1===n.lastCell.y&&0===n.firstCell.y;a?(o.edit(4),o.writeBack()):l&&(o.edit(5),o.writeBack()),(a||l)&&(t.style.removeProperty("width"),t.style.removeProperty("height"))},e.prototype.deleteImage=function(e,t){e.queryElements("#"+t,(function(t){e.deleteNode(t)}))},e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forEachSelectedCell=void 0;t.forEachSelectedCell=function(e,t){var n;if(e.selection)for(var r=e.selection,o=r.lastCell,i=r.firstCell,a=i.y;a<=o.y;a++)for(var l=i.x;l<=o.x;l++)e.cells&&(null===(n=e.cells[a][l])||void 0===n?void 0:n.td)&&t(e.cells[a][l])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeCellsOutsideSelection=void 0;var r=n(0);t.removeCellsOutsideSelection=function(e){if(e.selection){if((0,r.isWholeTableSelected)(e,e.selection))return;e.table.style.removeProperty("width"),e.table.style.removeProperty("height");var t=e.selection,n=t.firstCell,o=t.lastCell,i=[],a=n.x,l=n.y,s=o.x,u=o.y;e.cells&&(e.cells.forEach((function(e,t){(e=e.filter((function(e,n){return t>=l&&t<=u&&n>=a&&n<=s}))).length>0&&i.push(e)})),e.cells=i)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),o=n(4),i=n(11),a=n(2),l=n(27),s=n(13),u=n(15),d=n(17),c=["TD","TH","LI","BLOCKQUOTE"],f=function(){function e(e,t,n){this.rootNode=e,this.startNode=t,this.endNode=n}return e.getBlockContext=function(e){for(var t=e;t&&!(0,l.default)(t);)t=t.parentNode;return t},e.prototype.collapseToSingleElement=function(){for(var t=e.getBlockContext(this.startNode),n=t?(0,r.default)(t,this.startNode,this.endNode,!0):[],o=e.getBlockContext(this.startNode);n[0]&&n[0]!=o&&n[0].parentNode!=this.rootNode&&c.indexOf((0,a.default)(n[0].parentNode))<0;){var i=(0,d.splitBalancedNodeRange)(n);if(!i)break;n=[i]}return 1==n.length&&(0,l.default)(n[0])?n[0]:(0,u.default)(n)},e.prototype.getStartNode=function(){return this.startNode},e.prototype.getEndNode=function(){return this.endNode},e.prototype.equals=function(e){return this.startNode==e.getStartNode()&&this.endNode==e.getEndNode()},e.prototype.isAfter=function(e){return(0,s.default)(this.getStartNode(),e.getEndNode())},e.prototype.contains=function(e){return(0,o.default)(this.startNode,e,!0)||(0,o.default)(this.endNode,e,!0)||(0,s.default)(e,this.startNode)&&(0,s.default)(this.endNode,e)},e.prototype.getTextContent=function(){var e=(0,i.default)(this.getStartNode(),this.getEndNode());return e?e.toString():""},e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(7),i=n(66),a=n(20),l=n(68),s=function(){function e(e,t){this.rootNode=e,this.startNode=(0,r.default)(e,t)?t:null}return e.prototype.getStartBlockElement=function(){return this.startNode?(0,o.default)(this.rootNode,this.startNode):(0,i.default)(this.rootNode,!0)},e.prototype.getStartInlineElement=function(){return this.startNode?(0,a.default)(this.rootNode,this.startNode):(0,l.getFirstInlineElement)(this.rootNode)},e.prototype.isBlockInScope=function(e){return(0,r.default)(this.rootNode,e.getStartNode())},e.prototype.trimInlineElement=function(e){return e},e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70),o=n(7),i=n(20),a=n(63),l=n(5),s=n(1),u=n(48),d=n(68),c=function(){function e(e,t,n){this.rootNode=e,this.startFrom=n,(0,s.default)(t,"Range")&&(t=l.default.getStart(t)),this.position=t.normalize(),this.block=(0,o.default)(this.rootNode,this.position.node)}return e.prototype.getStartBlockElement=function(){return this.block},e.prototype.getStartInlineElement=function(){if(this.block)switch(this.startFrom){case 0:case 1:case 2:return function(e,t){if(e instanceof a.default){var n=e.getStartNode();return t?(0,d.getFirstInlineElement)(n):(0,d.getLastInlineElement)(n)}return(0,i.default)(e,t?e.getStartNode():e.getEndNode())}(this.block,0==this.startFrom);case 3:var e=(0,u.getInlineElementAfter)(this.rootNode,this.position);return e&&this.block.contains(e.getContainerNode())?e:new r.default(this.position,this.block)}return null},e.prototype.isBlockInScope=function(e){return!(!this.block||!e)&&this.block.equals(e)},e.prototype.trimInlineElement=function(e){return this.block&&e&&this.block.contains(e.getContainerNode())?e:null},e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(37),i=n(5),a=n(48),l=function(){function e(e,t){this.rootNode=e,this.startBlock=null,this.startInline=null,this.start=i.default.getStart(t).normalize(),this.end=i.default.getEnd(t).normalize()}return e.prototype.getStartBlockElement=function(){return this.startBlock||(this.startBlock=(0,r.default)(this.rootNode,this.start.node)),this.startBlock},e.prototype.getStartInlineElement=function(){return this.startInline||(this.startInline=this.trimInlineElement((0,a.getInlineElementAfter)(this.rootNode,this.start))),this.startInline},e.prototype.isBlockInScope=function(e){if(!e)return!1;var t=!1,n=this.getStartBlockElement();if(this.start.equalTo(this.end))t=!!n&&n.equals(e);else{var o=(0,r.default)(this.rootNode,this.end.node);t=!!n&&!!o&&(e.equals(n)||e.equals(o)||e.isAfter(n)&&o.isAfter(e))}return t},e.prototype.trimInlineElement=function(e){if(!e||this.start.equalTo(this.end))return null;var t=e.getStartPosition(),n=e.getEndPosition();if(t.isAfter(this.end)||this.start.isAfter(n))return null;var r=!1,i=!1;return this.start.isAfter(t)&&(t=this.start,r=!0),n.isAfter(this.end)&&(n=this.end,i=!0),t.isAfter(n)||t.equalTo(n)?null:r||i?new o.default(e,r?t:void 0,i?n:void 0):e},e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(72),o=n(73),i=n(6),a=n(18);t.default=function(e,t,n,l){var s,u=e.clipboardData||(null===(s=e.target.ownerDocument)||void 0===s?void 0:s.defaultView).clipboardData;u.items?(e.preventDefault(),(0,r.default)((0,i.default)(u.items),n).then((function(e){var n;n=l,a.Browser.isAndroid&&n&&n.deleteContents(),t(e)}))):(0,o.default)(u,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(50);t.default=function(e,t,n){if(t){var o=e.style,i=t.fontFamily,a=t.fontSize,l=t.textColor,s=t.textColors,u=t.backgroundColor,d=t.backgroundColors,c=t.bold,f=t.italic,h=t.underline;i&&(o.fontFamily=i),a&&(o.fontSize=a),s?(0,r.default)(e,s,!1,n):l&&(0,r.default)(e,l,!1,n),d?(0,r.default)(e,d,!0,n):u&&(0,r.default)(e,u,!0,n),c&&(o.fontWeight="bold"),f&&(o.fontStyle="italic"),h&&(o.textDecoration="underline")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PendableFormatCommandMap=void 0;var r=n(8);t.PendableFormatCommandMap={isBold:"bold",isItalic:"italic",isUnderline:"underline",isStrikeThrough:"strikeThrough",isSubscript:"subscript",isSuperscript:"superscript"},t.default=function(e){return(0,r.default)(t.PendableFormatCommandMap).reduce((function(n,r){return n[r]=e.queryCommandState(t.PendableFormatCommandMap[r]),n}),{})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),o=/^[^?]+%[^0-9a-f]+|^[^?]+%[0-9a-f][^0-9a-f]+|^[^?]+%00|^[^?]+%$|^https?:\/\/[^?\/]+@|^www\.[^?\/]+@/i,i="(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)*[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\:[0-9]+)?(?:[\\/\\?]\\S*)?",a={http:{match:new RegExp("^(?:microsoft-edge:)?http:\\/\\/"+i+"|www\\."+i,"i"),except:o,normalizeUrl:function(e){return new RegExp("^(?:microsoft-edge:)?http:\\/\\/","i").test(e)?e:"http://"+e}},https:{match:new RegExp("^(?:microsoft-edge:)?https:\\/\\/"+i,"i"),except:o},mailto:{match:new RegExp("^mailto:\\S+@\\S+\\.\\S+","i")},notes:{match:new RegExp("^notes:\\/\\/\\S+","i")},file:{match:new RegExp("^file:\\/\\/\\/?\\S+","i")},unc:{match:new RegExp("^\\\\\\\\\\S+","i")},ftp:{match:new RegExp("^ftp:\\/\\/"+i+"|ftp\\."+i,"i"),normalizeUrl:function(e){return new RegExp("^ftp:\\/\\/","i").test(e)?e:"ftp://"+e}},news:{match:new RegExp("^news:(\\/\\/)?"+i,"i")},telnet:{match:new RegExp("^telnet:(\\/\\/)?"+i,"i")},gopher:{match:new RegExp("^gopher:\\/\\/"+i,"i")},wais:{match:new RegExp("^wais:(\\/\\/)?"+i,"i")}};t.default=function(e){if(e)for(var t=0,n=(0,r.default)(a);t<n.length;t++){var o=n[t],i=a[o],l=e.match(i.match);if(l&&l[0]==e&&(!i.except||!i.except.test(e)))return{scheme:o,originalUrl:e,normalizedUrl:i.normalizeUrl?i.normalizeUrl(e):e}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(40);t.default=function(e,t){void 0===t&&(t=[]);var n=e.map((function(e){return(0,r.default)(e.getBoundingClientRect())})).filter((function(e){return!!e})).concat(t),o={top:Math.max.apply(Math,n.map((function(e){return e.top}))),bottom:Math.min.apply(Math,n.map((function(e){return e.bottom}))),left:Math.max.apply(Math,n.map((function(e){return e.left}))),right:Math.min.apply(Math,n.map((function(e){return e.right})))};return o.top<o.bottom&&o.left<o.right?o:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),o=n(50),i=n(51),a="transparent";function l(e){var t;return!!e.td&&!!(null===(t=(0,i.getTableCellMetadata)(e.td))||void 0===t?void 0:t.bgColorOverride)}function s(e){return"solid 1px "+(e||"transparent")}t.default=function(e,t,n){n&&(e.style.borderCollapse="collapse",function(e,t){e.forEach((function(n,r){n.forEach((function(o,i){o.td&&function(e,t,n,r,o,i){switch(function(e,t){e.style.borderTop=s(t.topBorderColor),e.style.borderLeft=s(t.verticalBorderColor),e.style.borderRight=s(t.verticalBorderColor),e.style.borderBottom=s(t.bottomBorderColor)}(t,e),e.tableBorderFormat){case 0:return;case 1:o||(t.style.borderLeftColor=a),i||(t.style.borderRightColor=a);break;case 4:n||(t.style.borderTopColor=a),r||n||(t.style.borderBottomColor=a),o||(t.style.borderLeftColor=a),i||o||(t.style.borderRightColor=a),o&&n&&(t.style.borderRightColor=a);break;case 2:n&&(t.style.borderTopColor=a,t.style.borderRightColor=a,t.style.borderLeftColor=a),o&&(t.style.borderLeftColor=a),i&&(t.style.borderRightColor=a);break;case 3:o&&(t.style.borderLeftColor=a),i&&(t.style.borderRightColor=a);break;case 5:n&&(t.style.borderRightColor=a,t.style.borderLeftColor=a),o&&(t.style.borderBottomColor=a,t.style.borderTopColor=a),n&&o&&(t.style.borderLeftColor=e.verticalBorderColor||a,t.style.borderBottomColor=e.bottomBorderColor||a,t.style.borderTopColor=e.topBorderColor||a);break;case 6:n&&(t.style.borderRightColor=a,t.style.borderLeftColor=a),o&&(t.style.borderBottomColor=a,t.style.borderTopColor=a),n&&o&&(t.style.borderLeftColor=e.verticalBorderColor||a,t.style.borderBottomColor=e.bottomBorderColor||a,t.style.borderTopColor=e.topBorderColor||a),n||o||(t.style.borderLeftColor=a,t.style.borderBottomColor=a,t.style.borderTopColor=a,t.style.borderRightColor=a);break;case 7:n&&(t.style.borderLeftColor=a,t.style.borderTopColor=a,t.style.borderRightColor=a),o&&(t.style.borderLeftColor=a,t.style.borderTopColor=a,t.style.borderBottomColor=a),n||o||(t.style.borderLeftColor=a,t.style.borderBottomColor=a,t.style.borderTopColor=a,t.style.borderRightColor=a),n&&o&&(t.style.borderBottomColor=e.bottomBorderColor||a)}}(t,o.td,0===r,r===e.length-1,0===i,i===n.length-1)}))}))}(t,n),function(e,t){var n=function(e){return e%2==0?t.bgColorEven:t.bgColorOdd},r=t.hasBandedRows,i=t.hasBandedColumns,s=t.bgColorOdd,u=t.bgColorEven,d=!r&&s===u;e.forEach((function(e,i){e.forEach((function(e){if(e.td&&!l(e))if(r){var s=n(i);(0,o.default)(e.td,s||a,!0,void 0,!0)}else d?(0,o.default)(e.td,t.bgColorOdd||a,!0,void 0,!0):(0,o.default)(e.td,a,!0,void 0,!0)}))})),i&&e.forEach((function(e){e.forEach((function(e,t){var r=n(t);e.td&&r&&!l(e)&&(0,o.default)(e.td,r,!0,void 0,!0)}))}))}(t,n),function(e,t){if(!t.hasFirstColumn)return void e.forEach((function(e){e.forEach((function(e,t){e.td&&0===t&&(e.td=(0,r.default)(e.td,"TD"),e.td.scope="")}))}));e.forEach((function(t,n){t.forEach((function(t,i){t.td&&0===i&&(0===n||l(t)||(t.td.style.borderTopColor=a,(0,o.default)(t.td,a,!0,void 0,!0)),n!==e.length-1&&0!==n&&(t.td.style.borderBottomColor=a),t.td=(0,r.default)(t.td,"TH"),t.td.scope="col")}))}))}(t,n),function(e,t){var n,i;if(!t.hasHeaderRow)return void(null===(n=e[0])||void 0===n||n.forEach((function(e){e.td&&(e.td=(0,r.default)(e.td,"TD"),e.td.scope="")})));null===(i=e[0])||void 0===i||i.forEach((function(e){e.td&&t.headerRowColor&&(l(e)||(0,o.default)(e.td,t.headerRowColor,!0,void 0,!0),e.td.style.borderRightColor=t.headerRowColor,e.td.style.borderLeftColor=t.headerRowColor,e.td.style.borderTopColor=t.headerRowColor,e.td=(0,r.default)(e.td,"TH"),e.td.scope="row")}))}(t,n))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!t||!e.cells)return!1;var n=t.firstCell,r=t.lastCell,o=e.cells.length-1,i=e.cells[o].length-1,a=n.x,l=n.y,s=r.x,u=r.y;return 0==a&&0==l&&s==i&&u==o}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=o[t],r=1===t;e.style.listStyleType=r?n:'"'+n+'"'};var o=((r={})[1]="disc",r[3]="∎ ",r[2]="- ",r[5]="➔ ",r[8]="➔ ",r[4]="➢ ",r[6]="➪ ",r[7]="— ",r)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(143),a=n(144);!function(e){e[e.Decimal=0]="Decimal",e[e.Roman=1]="Roman",e[e.Alpha=2]="Alpha"}(o||(o={})),t.default=function(e,t,n){var r=l[t],s=r.markerSeparator,u=r.markerSecondSeparator,d=r.markerType,c=r.lowerCase,f=n.toString();d===o.Roman?f=(0,a.default)(n,c):d===o.Alpha&&(f=(0,i.default)(n-1,c));var h=u?u+f+s:f+s;e.style.listStyleType='"'+h+'"'};var l=((r={})[1]={markerType:o.Decimal,markerSeparator:". "},r[2]={markerType:o.Decimal,markerSeparator:"- "},r[3]={markerType:o.Decimal,markerSeparator:") "},r[4]={markerType:o.Decimal,markerSeparator:") ",markerSecondSeparator:"("},r[5]={markerType:o.Alpha,markerSeparator:". ",lowerCase:!0},r[8]={markerType:o.Alpha,markerSeparator:"- ",lowerCase:!0},r[6]={markerType:o.Alpha,markerSeparator:") ",lowerCase:!0},r[7]={markerType:o.Alpha,markerSeparator:") ",markerSecondSeparator:"(",lowerCase:!0},r[9]={markerType:o.Alpha,markerSeparator:". "},r[12]={markerType:o.Alpha,markerSeparator:"- "},r[10]={markerType:o.Alpha,markerSeparator:") "},r[11]={markerType:o.Alpha,markerSeparator:") ",markerSecondSeparator:"("},r[13]={markerType:o.Roman,markerSeparator:". ",lowerCase:!0},r[16]={markerType:o.Roman,markerSeparator:"- ",lowerCase:!0},r[14]={markerType:o.Roman,markerSeparator:") ",lowerCase:!0},r[15]={markerType:o.Roman,markerSeparator:") ",markerSecondSeparator:"(",lowerCase:!0},r[17]={markerType:o.Roman,markerSeparator:". "},r[20]={markerType:o.Roman,markerSeparator:"- "},r[18]={markerType:o.Roman,markerSeparator:") "},r[19]={markerType:o.Roman,markerSeparator:") ",markerSecondSeparator:"("},r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T",20:"U",21:"V",22:"W",23:"X",24:"Y",25:"Z"};t.default=function(e,t){for(var n="";e>=0;)n=r[e%26]+n,e=Math.floor(e/26)-1;return t?n.toLowerCase():n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),o={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1};t.default=function(e,t){for(var n="",i=0,a=(0,r.default)(o);i<a.length;i++){var l=a[i],s=Math.floor(e/o[l]);e-=s*o[l],n+=l.repeat(s)}return t?n.toLocaleLowerCase():n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),o=n(79),i=n(80),a=n(33),l=n(5),s=n(1),u=n(29),d=n(6),c=n(53),f=n(15),h=n(10),p=n(54);function g(e,t,n){var r=t[n?t.length-1:0];r=(0,h.getLeafSibling)(e.rootNode,r,n,e.skipTags,!0),r=(0,o.default)(e,"ol,ul",r),(0,a.default)(e,r)&&(0,p.isListElement)(r)&&(n?(0,s.default)(r,"HTMLOListElement")&&1!=r.start||t.push(r):t.unshift(r))}t.default=function(e,t,n){if(!e)return null;var a=[];if(n){var h=(0,o.default)(e,"ol,ul",n);h&&a.push(h)}else{if((0,i.default)(e,void 0,!0).forEach((function(n){var r=(0,o.default)(e,"ol,ul",n.getStartNode());r?(a[a.length-1]!=r&&a.push(r),1==a.length&&(0,s.default)(r,"HTMLOListElement")&&r.start>1&&(t=!1)):a.push(n.collapseToSingleElement())})),0==a.length&&!e.rootNode.firstChild){var v=(0,r.default)(12,e.rootNode.ownerDocument);e.rootNode.appendChild(v),a.push(v),e.fullSelectionStart=new l.default(v,0),e.fullSelectionEnd=new l.default(v,-1)}t&&(g(e,a,!1),g(e,a,!0)),a=a.filter((function(e){return!(0,u.default)(e,!0)}))}var m=null;if(a.length>0){var b=a.shift()||null;(m=(0,p.isListElement)(b)?new c.default(b):b?function(e){var t=(0,d.default)(e.childNodes),n=1==t.length?t[0]:(0,f.default)(t,"SPAN"),r=e.ownerDocument.createElement("ol");e.appendChild(r);var o=new c.default(r);return o.appendItem(n,0),o}(b):null)&&a.forEach((function(e){(0,p.isListElement)(e)?m.mergeVList(new c.default(e)):m.appendItem(e,0)}))}return m}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),o=n(79),i=n(13),a=n(33),l=n(23),s=n(53),u=0,d=function(){function e(e,t){this.region=e,this.name=t,this.lastNumber=0,this.lastNumberBeforeCursor=0}return e.createListChains=function(t,n,a){var s=Array.isArray(t)?t:t?[t]:[],u=[];return s.forEach((function(t){var s,d=[];(0,l.default)(t.rootNode,"ol",(function(r){var l=(0,o.default)(t,"ol",r);if(s!=l){var u=d.filter((function(e){return e.canAppendToTail(l)}))[0]||new e(t,(a||c)()),f=d.indexOf(u),h=!!n&&(0,i.default)(l,n);h?f<0&&d.push(u):(f>=0&&d.splice(f,1),d.unshift(u)),u.append(l,h),s=l}})),(0,r.default)(u,d)})),u},e.prototype.canAppendAtCursor=function(e){return e>1&&this.lastNumberBeforeCursor+1==e},e.prototype.createVListAtBlock=function(e,t){if(e&&e.parentNode){var n=e.ownerDocument.createElement("ol");n.start=t,this.applyChainName(n),e.parentNode.insertBefore(n,e);var r=new s.default(n);return r.appendItem(e,0),r}return null},e.prototype.commit=function(e){for(var t=this.getLists(),n=0,r=0;r<t.length;r++){var o=t[r];o.start=o.start>1?o.start:n+1;var i=new s.default(o);n=i.getLastItemNumber()||0,delete o.dataset.listchain,delete o.dataset.listchainafter,i.writeBack(e)}},e.prototype.canAppendToTail=function(e){return this.lastNumber+1==e.start},e.prototype.append=function(e,t){this.applyChainName(e),this.lastNumber=new s.default(e).getLastItemNumber()||0,t?e.dataset.listchainafter="true":this.lastNumberBeforeCursor=this.lastNumber},e.prototype.applyChainName=function(e){e.dataset.listchain=this.name},e.prototype.getLists=function(){var e=this;return(0,l.default)(this.region.rootNode,"ol[data-listchain="+this.name+"]").filter((function(t){return(0,a.default)(e.region,t)}))},e}();function c(){return"__List_Chain_"+u++}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),o=n(11),i=n(40);t.default=function(e){var t;if(!e)return null;var n=(0,o.default)(e),a=n.getBoundingClientRect&&(0,i.default)(n.getBoundingClientRect());if(a)return a;e=e.normalize();var l=n.getClientRects&&n.getClientRects();if(a=l&&1==l.length?(0,i.default)(l[0]):null)return a;if(3==e.node.nodeType&&e.node.ownerDocument){var s=(0,r.default)({tag:"span",children:["​"]},e.node.ownerDocument);if((n=(0,o.default)(e)).insertNode(s),a=s.getBoundingClientRect&&(0,i.default)(s.getBoundingClientRect()),null===(t=s.parentNode)||void 0===t||t.removeChild(s),a)return a}var u=e.element;return u&&u.getBoundingClientRect&&(a=(0,i.default)(u.getBoundingClientRect()))?a:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(74),o=n(86);t.default=function(e,t){if(!e)return"";var n=(0,r.default)(e),i=t&&(0,o.default)(e,t);return i?n+"\x3c!--"+JSON.stringify(i)+"--\x3e":n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setHtmlWithMetadata=void 0;var r=n(11),o=n(1),i=n(52),a=n(30),l=(0,a.createArrayDefinition)((0,a.createNumberDefinition)()),s=(0,a.createObjectDefinition)({x:(0,a.createNumberDefinition)(),y:(0,a.createNumberDefinition)()}),u=(0,a.createBooleanDefinition)(!0),d=(0,a.createObjectDefinition)({type:(0,a.createNumberDefinition)(!0,0),isDarkMode:u,start:l,end:l}),c=(0,a.createObjectDefinition)({type:(0,a.createNumberDefinition)(!1,1),isDarkMode:u,tableId:(0,a.createStringDefinition)(),firstCell:s,lastCell:s}),f=(0,a.createObjectDefinition)({type:(0,a.createNumberDefinition)(!1,2),isDarkMode:u,imageId:(0,a.createStringDefinition)()});function h(e,t,n){if(e){t=t||"",e.innerHTML=(null==n?void 0:n(t))||t;var r=e.lastChild;if((0,o.default)(r,"Comment"))try{var a=JSON.parse(r.nodeValue||"");if((0,i.default)(a,d)||(0,i.default)(a,c)||(0,i.default)(a,f))return e.removeChild(r),a.type=void 0===a.type?0:a.type,a.isDarkMode=a.isDarkMode||!1,a}catch(e){}}}t.default=function(e,t,n){var o=h(e,t,n);return 0==(null==o?void 0:o.type)?(0,r.default)(e,o.start,o.end):null},t.setHtmlWithMetadata=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18);t.default=function(e,t){var n,o,i,a=null===(i=null===(o=null===(n=null==e?void 0:e.commonAncestorContainer)||void 0===n?void 0:n.ownerDocument)||void 0===o?void 0:o.defaultView)||void 0===i?void 0:i.getSelection();if(a){var l=!0;if(a.rangeCount>0)try{var s=null;(t||r.Browser.isEdge)&&(s=1==a.rangeCount?a.getRangeAt(0):null)&&s.startContainer==e.startContainer&&s.startOffset==e.startOffset&&s.endContainer==e.endContainer&&s.endOffset==e.endOffset?l=!1:a.removeAllRanges()}catch(e){}l&&a.addRange(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addSnapshotV2=void 0;var r=n(87);function o(e,t,n,o,i){o=o||function(e){var t;return(null===(t=e)||void 0===t?void 0:t.length)||0},i=i||a;var l=e.snapshots[e.currentIndex];if(e.currentIndex<0||!l||!i(t,l)){(0,r.default)(e,o),e.snapshots.push(t),e.currentIndex++,e.totalSize+=o(t);for(var s=0;s<e.snapshots.length&&e.totalSize>e.maxSize;)e.totalSize-=o(e.snapshots[s]),s++;s>0&&(e.snapshots.splice(0,s),e.currentIndex-=s,e.autoCompleteIndex-=s),n&&(e.autoCompleteIndex=e.currentIndex)}else l&&i(t,l)&&e.snapshots.splice(e.currentIndex,1,t)}function i(e,t){return e.html==t.html}function a(e,t){return e==t}t.default=o,t.addSnapshotV2=function(e,t,n){o(e,t,n,(function(e){var t;return(null===(t=e.html)||void 0===t?void 0:t.length)||0}),i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moveCurrentSnapsnot=void 0;var r=n(57);function o(e,t){return(0,r.default)(e,t)?(e.currentIndex+=t,e.autoCompleteIndex=-1,e.snapshots[e.currentIndex]):null}t.default=o,t.moveCurrentSnapsnot=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{snapshots:[],totalSize:0,currentIndex:-1,autoCompleteIndex:-1,maxSize:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.autoCompleteIndex>=0&&e.currentIndex-e.autoCompleteIndex==1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),o=n(88),i=n(8),a=n(84),l=n(31),s=n(2),u=n(1),d=n(32),c=n(6),f=n(89),h=n(156),p=n(157),g=function(){function e(e){e=e||{},this.elementCallbacks=(0,f.cloneObject)(e.elementCallbacks),this.styleCallbacks=(0,p.getStyleCallbacks)(e.cssStyleCallbacks),this.attributeCallbacks=(0,f.cloneObject)(e.attributeCallbacks),this.tagReplacements=(0,p.getTagReplacement)(e.additionalTagReplacements),this.allowedAttributes=(0,p.getAllowedAttributes)(e.additionalAllowedAttributes),this.allowedCssClassesRegex=(0,p.getAllowedCssClassesRegex)(e.additionalAllowedCssClasses),this.defaultStyleValues=(0,p.getDefaultStyleValues)(e.additionalDefaultStyleValues),this.additionalPredefinedCssForElement=e.additionalPredefinedCssForElement||null,this.additionalGlobalStyleNodes=e.additionalGlobalStyleNodes||[],this.preserveHtmlComments=e.preserveHtmlComments||!1,this.unknownTagReplacement=e.unknownTagReplacement||null}return e.convertInlineCss=function(t,n){return new e({additionalGlobalStyleNodes:n}).exec(t,!0)},e.sanitizeHtml=function(t,n){var r=new e(n=n||{}),i=(0,u.default)(n.currentElementOrStyle,"HTMLElement")?(0,o.default)(n.currentElementOrStyle):n.currentElementOrStyle;return r.exec(t,n.convertCssOnly,i)},e.prototype.exec=function(e,t,n){var r=(new DOMParser).parseFromString(e||"","text/html");return r&&r.body&&r.body.firstChild&&(this.convertGlobalCssToInlineCss(r),t||this.sanitize(r.body,n)),r&&r.body&&r.body.innerHTML||""},e.prototype.sanitize=function(e,t){if(!e)return"";t=(0,f.cloneObject)(t,(0,o.default)(null)),this.processNode(e,t,{})},e.prototype.convertGlobalCssToInlineCss=function(e){for(var t=(0,c.default)(e.querySelectorAll("style")),n=0,r=this.additionalGlobalStyleNodes.reverse().map((function(e){return e.sheet})).concat(t.map((function(e){return e.sheet})).reverse()).filter((function(e){return e}));n<r.length;n++)for(var o=r[n],i=function(t){var n=o.cssRules[t],r=n&&n.style?n.style.cssText:null;if(n.type!=CSSRule.STYLE_RULE||!r||!n.selectorText)return"continue";for(var i=0,a=n.selectorText.split(",");i<a.length;i++){var l=a[i];if(l&&l.trim()&&!(l.indexOf(":")>=0))(0,c.default)(e.querySelectorAll(l)).forEach((function(e){return e.setAttribute("style",r+(e.getAttribute("style")||""))}))}},a=o.cssRules.length-1;a>=0;a--)i(a);t.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))},e.prototype.processNode=function(e,t,n){var o,i=e.nodeType,a=1==i,l=3==i,u=11==i,d=8==i,c=!1;if(a){var h=(0,s.default)(e),p=this.elementCallbacks[h],g=this.tagReplacements[h.toLowerCase()];void 0===g&&(g=this.unknownTagReplacement),p?c=p(e,n):h.indexOf(":")>0||h==g||"*"==g?c=!0:g&&/^[a-zA-Z][\w\-]*$/.test(g)&&(e=(0,r.default)(e,g),c=!0)}else if(l){var v=t["white-space"];c="pre"==v||"pre-line"==v||"pre-wrap"==v||!/^[\r\n]*$/g.test(e.nodeValue||"")}else c=!!u||!!d&&this.preserveHtmlComments;if(c)if(!l||"pre"!=t["white-space"]&&"pre-wrap"!=t["white-space"]){if(a||u){var m=(0,f.cloneObject)(t),b=e;a&&(this.processAttributes(b,n),this.preprocessCss(b,m),this.processCss(b,m,n));for(var y=b.firstChild,C=void 0;y;y=C)C=y.nextSibling,this.processNode(y,m,n)}}else e.nodeValue=(e.nodeValue||"").replace(/^ /gm," ").replace(/ {2}/g,"  ");else null===(o=e.parentNode)||void 0===o||o.removeChild(e)},e.prototype.preprocessCss=function(e,t){var n=(0,a.default)(e,this.additionalPredefinedCssForElement);n&&(0,i.default)(n).forEach((function(e){t[e]=n[e]}))},e.prototype.processCss=function(e,t,n){var r=this,o=(0,l.default)(e);(0,i.default)(o).forEach((function(i){var a=o[i],l=r.styleCallbacks[i],s=null!=t[i],u=!0;u&&l&&(u=l(a,e,t,n)),u&&(0,h.isCssVariable)(a)&&(u=!!(a=(0,h.processCssVariable)(a))),(u=u&&"inherit"!=a&&a.indexOf("expression")<0&&"-"!=i.substr(0,1)&&r.defaultStyleValues[i]!=a&&(s&&a!=t[i]||!s&&"initial"!=a&&"normal"!=a))&&s&&(t[i]=a),u?o[i]=a:delete o[i]})),(0,d.default)(e,o)},e.prototype.processAttributes=function(e,t){for(var n=e.attributes.length-1;n>=0;n--){var r=e.attributes[n],o=r.name.toLowerCase().trim(),i=r.value,a=this.attributeCallbacks[o],l=a?a(i,e,t):this.allowedAttributes.indexOf(o)>=0||0==o.indexOf("data-")?i:null;"class"==o&&this.allowedCssClassesRegex&&(l=this.processCssClass(i,l)),null==l||l.match(/s\n*c\n*r\n*i\n*p\n*t\n*:/i)?e.removeAttribute(o):r.value=l}},e.prototype.processCssClass=function(e,t){var n=this,r=e?e.split(" "):[],o=t?t.split(" "):[];return r.forEach((function(e){var t;(null===(t=n.allowedCssClassesRegex)||void 0===t?void 0:t.test(e))&&o.indexOf(e)<0&&o.push(e)})),(null==o?void 0:o.length)>0?o.join(" "):null},e}();t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCssVariable=t.processCssVariable=void 0;var r=/^\s*var\(\s*[a-zA-Z0-9-_]+\s*(,\s*(.*))?\)\s*$/;t.processCssVariable=function(e){var t=r.exec(e);return(null==t?void 0:t[2])||""},t.isCssVariable=function(e){return 0==e.indexOf("var(")}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getStyleCallbacks=t.getDefaultStyleValues=t.getAllowedCssClassesRegex=t.getAllowedAttributes=t.getTagReplacement=void 0;var o=n(8),i=n(89),a={a:"*",abbr:"*",address:"*",area:"*",article:"*",aside:"*",b:"*",bdi:"*",bdo:"*",blockquote:"*",body:"*",br:"*",button:"*",canvas:"*",caption:"*",center:"*",cite:"*",code:"*",col:"*",colgroup:"*",data:"*",datalist:"*",dd:"*",del:"*",details:"*",dfn:"*",dialog:"*",dir:"*",div:"*",dl:"*",dt:"*",em:"*",fieldset:"*",figcaption:"*",figure:"*",font:"*",footer:"*",h1:"*",h2:"*",h3:"*",h4:"*",h5:"*",h6:"*",head:"*",header:"*",hgroup:"*",hr:"*",html:"*",i:"*",img:"*",input:"*",ins:"*",kbd:"*",label:"*",legend:"*",li:"*",main:"*",map:"*",mark:"*",menu:"*",menuitem:"*",meter:"*",nav:"*",ol:"*",optgroup:"*",option:"*",output:"*",p:"*",picture:"*",pre:"*",progress:"*",q:"*",rp:"*",rt:"*",ruby:"*",s:"*",samp:"*",section:"*",select:"*",small:"*",span:"*",strike:"*",strong:"*",sub:"*",summary:"*",sup:"*",table:"*",tbody:"*",td:"*",textarea:"*",tfoot:"*",th:"*",thead:"*",time:"*",tr:"*",tt:"*",u:"*",ul:"*",var:"*",wbr:"*",xmp:"*",form:"SPAN",applet:null,audio:null,base:null,basefont:null,embed:null,frame:null,frameset:null,iframe:null,link:null,meta:null,noscript:null,object:null,param:null,script:null,slot:null,source:null,style:null,template:null,title:null,track:null,video:null},l="accept,align,alt,checked,cite,color,cols,colspan,contextmenu,coords,datetime,default,dir,dirname,disabled,download,face,headers,height,hidden,high,href,hreflang,ismap,kind,label,lang,list,low,max,maxlength,media,min,multiple,open,optimum,pattern,placeholder,readonly,rel,required,reversed,rows,rowspan,scope,selected,shape,size,sizes,span,spellcheck,src,srclang,srcset,start,step,style,tabindex,target,title,translate,type,usemap,valign,value,width,wrap".split(","),s={"background-color":"transparent","border-bottom-color":"rgb(0, 0, 0)","border-bottom-style":"none","border-bottom-width":"0px","border-image-outset":"0","border-image-repeat":"stretch","border-image-slice":"100%","border-image-source":"none","border-image-width":"1","border-left-color":"rgb(0, 0, 0)","border-left-style":"none","border-left-width":"0px","border-right-color":"rgb(0, 0, 0)","border-right-style":"none","border-right-width":"0px","border-top-color":"rgb(0, 0, 0)","border-top-style":"none","border-top-width":"0px","outline-color":"transparent","outline-style":"none","outline-width":"0px",overflow:"visible","text-decoration":"none","-webkit-text-stroke-width":"0px","word-wrap":"break-word","margin-left":"0px","margin-right":"0px",padding:"0px","padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px",border:"0px","border-top":"0px","border-left":"0px","border-right":"0px","border-bottom":"0px","vertical-align":"baseline",float:"none"},u=[];function d(){return null}function c(e,t){var n=t.tagName;return!("LI"==n||"DIV"==n)}t.getTagReplacement=function(e){var t=r({},a),n=e||{};return(0,o.default)(n).forEach((function(e){e&&(t[e.toLowerCase()]=n[e])})),t},t.getAllowedAttributes=function(e){return(t=l.concat(e||[]),t.filter((function(e,t,n){return n.indexOf(e)==t}))).map((function(e){return e.toLocaleLowerCase()}));var t},t.getAllowedCssClassesRegex=function(e){var t=u.concat(e||[]);return t.length>0?new RegExp(t.join("|")):null},t.getDefaultStyleValues=function(e){var t=(0,i.cloneObject)(s);return e&&Object.keys(e).forEach((function(n){var r=e[n];null!=r?t[n]=r:delete t[n]})),t},t.getStyleCallbacks=function(e){var t=(0,i.cloneObject)(e);return t.position=t.position||d,t.width=t.width||c,t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{elementCallbacks:{},attributeCallbacks:{},cssStyleCallbacks:{},additionalTagReplacements:{},additionalAllowedAttributes:[],additionalAllowedCssClasses:[],additionalDefaultStyleValues:{},additionalGlobalStyleNodes:[],additionalPredefinedCssForElement:{},preserveHtmlComments:!1,unknownTagReplacement:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(e[t]){var r=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.apply(void 0,e),n.apply(void 0,e)}}else e[t]=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t,n,r){e&&(e.className="_Entity _EType_"+t+" "+(r?"_EId_"+r+" ":"")+"_EReadonly_"+(n?"1":"0"),n?e.contentEditable="false":e.getAttribute("contenteditable")&&e.removeAttribute("contenteditable"))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.restoreContentWithEntityPlaceholder=t.moveContentWithEntityPlaceholders=t.createEntityPlaceholder=void 0;var r=n(90),o=n(91),i=n(2),a=n(1);function l(e){var t=e.wrapper.ownerDocument.createElement("ENTITY-PLACEHOLDER");return t.id=e.id,t}function s(e,t){for(var n;e&&(!t||e!=t);){var r=e;e=e.nextSibling,null===(n=r.parentNode)||void 0===n||n.removeChild(r)}return e}function u(e,t){var n=l(e);return t[e.id]=e.wrapper,n}t.createEntityPlaceholder=l,t.moveContentWithEntityPlaceholders=function(e,t){for(var n=(0,o.default)(),i=e.ownerDocument.createDocumentFragment(),l=null,s=function(e){var o,s=e;l=e.nextSibling,(0,a.default)(e,"HTMLElement")&&((o=(0,r.default)(e))?s=u(o,t):e.querySelectorAll(n).forEach((function(e){var n;if(o=(0,r.default)(e)){var i=u(o,t);null===(n=e.parentNode)||void 0===n||n.replaceChild(i,e)}}))),i.appendChild(s)},d=e.firstChild;d;d=l)s(d);return i.normalize(),i},t.restoreContentWithEntityPlaceholder=function(e,t,n,r){var o=t.firstChild;n=n||{};for(var l,u=function(e){var u,d=null,c=e.nextSibling;if((u=e,"ENTITY-PLACEHOLDER"==(0,i.default)(u)?u.id:null)&&(d=n[e.id]))(o=s(o,d))?o=o.nextSibling:t.appendChild(d);else{var f=r?e.cloneNode(!0):e;t.insertBefore(f,o),(0,a.default)(f,"HTMLElement")&&f.querySelectorAll("ENTITY-PLACEHOLDER").forEach((function(e){var t;(d=n[e.id])&&(null===(t=e.parentNode)||void 0===t||t.replaceChild(d,e))}))}l=e=c},d=e.firstChild;d;)u(d),d=l;s(o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e&&e.eventDataCache&&e.eventDataCache.hasOwnProperty(t)?e.eventDataCache[t]:n();return e&&(e.eventDataCache=e.eventDataCache||{},e.eventDataCache[t]=r),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e&&e.eventDataCache&&(t&&e.eventDataCache.hasOwnProperty(t)?delete e.eventDataCache[t]:t||(e.eventDataCache={}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(92);t.default=function(e){return!(0,r.default)(e)&&!!e.key&&1==e.key.length}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18).Browser.isMac?function(e){return e.metaKey}:function(e){return e.ctrlKey};t.default=function(e){return r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31),o=n(32);t.default=function(e,t){var n=(0,r.default)(e),i=0;t.forEach((function(e){var t;if((null===(t=n[e])||void 0===t?void 0:t.indexOf("!important"))>-1){var r=n[e].indexOf("!");n[e]=n[e].substring(0,r),i++}})),i>0&&(0,o.default)(e,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,o=e.getElementById(n);o||((o=e.createElement("style")).id=n,e.head.appendChild(o)),null===(r=o.sheet)||void 0===r||r.insertRule(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r=e.getElementById(t);r&&(null===(n=r.parentNode)||void 0===n||n.removeChild(r))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),o=n(4),i=n(19),a=n(11),l=n(14),s=n(7),u=n(2),d=n(38),c=n(85),f=n(44),h=n(47),p=n(22),g=n(170),v=n(5),m=n(71),b=n(23),y=n(36),C=n(6),E=n(39),S=n(15),w=n(17),T=[function(e,t,n,r){var i,l,u=(0,s.default)(e,n.node);if(u){var c=(0,b.default)(e,"a[href]",null,1,(0,a.default)(n)).filter((function(e){return u.contains(e)}))[0];if(c&&(0,d.default)(c)&&(n=new v.default(c,-2),O(c),c=null),c&&(null===(i=t)||void 0===i?void 0:i.querySelector)&&(null===(l=t)||void 0===l?void 0:l.querySelector("a[href]"))){var f=n.normalize(),h=f.node.parentNode,p=3==f.node.nodeType?(0,y.default)(f.node,f.offset,!1):f.isAtEnd?f.node.nextSibling:f.node,g=e.ownerDocument.createTextNode("");for(h.insertBefore(g,p);g&&(0,o.default)(c,g);)g=(0,w.splitBalancedNodeRange)(g);g&&(n=new v.default(g,-2),O(g))}}return n},function(e,t,n,r){var o=t,i=!1;if(11==o.nodeType){i=!0;var a=(0,C.default)(o.childNodes).filter((function(e){return"BR"!=(0,u.default)(e)}));o=1==a.length?a[0]:null}var s=(0,u.default)(o),d=s&&o&&"BR"==(0,u.default)(o.nextSibling),f=(0,l.default)(n.node,e,"LI"),h=f&&(0,l.default)(f,e,"OL,UL"),m=(0,l.default)(n.node,e,"TD,TH");"LI"==s&&(s=h?(0,u.default)(h):"UL",o=(0,S.default)(o,s));if(("OL"==s||"UL"==s)&&o&&"LI"==(0,u.default)(o.firstChild)){var b=!o.firstChild.nextSibling&&!d;d&&o.parentNode&&O(o.nextSibling),b?((0,E.default)(o.firstChild),(0,E.default)(o)):(0,u.default)(h)==s&&((0,E.default)(o),n=new v.default(f,(0,c.default)(n,f)?-2:-3))}i&&"TABLE"==s&&m&&((0,g.default)(m,o,n,r),n=new v.default(o,0),(0,p.default)(t));return n},function(e,t,n,o){if("P"==(0,u.default)(n.node)){var i=n.normalize(),a=(0,r.default)(n.node,"div");i.node!=a&&(n=i)}return n},function(e,t,n,r){(0,f.default)(n.node)&&(n=new v.default(n.node,n.isAtEnd?-3:-2));return n},function(e,t,n,r){if(r&&r.collapsed){var o=new m.default(e,v.default.getStart(r)),i=o.getInlineElementBefore(),a=o.getInlineElementAfter();i instanceof h.default?n=new v.default(i.getContainerNode(),-3):a instanceof h.default&&(n=new v.default(a.getContainerNode(),-2))}return n},function e(t,n,r,o){var i;if(!(null===(i=r.element)||void 0===i?void 0:i.isContentEditable)){for(var a=void 0,s=(0,l.default)(r.node,t,"[contenteditable=false]");s;)s=(null==(a=s)?void 0:a.parentElement)?(0,l.default)(a.parentElement,t,"[contenteditable=false]"):null;if(a)return r=new v.default(a,-3),e(t,n,r,o)}return r},function(e,t,n,r){if(1==t.childNodes.length&&"TABLE"==(0,u.default)(t.childNodes[0])||"TABLE"==(0,u.default)(t)){var o=n.element,s=new v.default(o,-2),d=(0,a.default)(s,n),c=i.default.createSelectionTraverser(e,d),f=c&&c.currentBlockElement;if(f){for(var h=f;!h;)(h=c.getNextBlockElement())&&(f=h);var p=null==f?void 0:f.getEndNode();if(p&&(0,l.default)(p,e,"TABLE")){var g=(0,a.default)(n);g.collapse(!1);var m=e.ownerDocument.createElement("br");g.insertNode(m),g=(0,a.default)(m),n=v.default.getEnd(g)}}}return n}];function O(e){var t;null===(t=null==e?void 0:e.parentNode)||void 0===t||t.removeChild(e)}t.default=function(e,t,n,r){return T.forEach((function(o){n=o(e,t,n,r)})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(171),o=n(22),i=n(75);t.default=function(e,t,n,a){var l,s,u,d,c=new i.default(t),f=new i.default(e),h=f.row,p=f.col,g=null!==(s=h+(null===(l=c.cells)||void 0===l?void 0:l.length))&&void 0!==s?s:0,v=null!==(d=p+(null===(u=c.cells)||void 0===u?void 0:u[0].length))&&void 0!==d?d:0;for(f.row=f.cells.length-1;f.cells.length<g;)f.edit(1);for(f.col=f.cells[0].length-1;f.cells[0].length<v;)f.edit(3);for(var m=h;m<g;m++)for(var b=p;b<v;b++){var y=f.getCell(m,b),C=c.getTd(m-h,b-p);y.td&&C?((0,o.default)(y.td,C),(0,r.default)(y.td,C)):y.td=document.createElement("td")}f.writeBack()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(51);t.default=function(e,t){var n=t.getAttribute("style");n&&(e.setAttribute("style",n),(0,r.saveTableCellMetadata)(e,{bgColorOverride:!0}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),o=n(82),i=n(81),a=n(55),l=n(83),s=n(5),u=n(23),d=n(1),c=n(36);function f(e,t,n){var r,o;if((0,d.default)(e,"Text")){var i=(0,c.default)(e,t,n);return n?[i,e]:[e,i]}var a=e.childNodes[t-1],l=e.childNodes[t];if(a||l||(n?a=(l=e).previousSibling:l=(a=e).nextSibling),(a||l)&&(!a||!l)){var s=e.ownerDocument.createTextNode("");null===(o=null===(r=a||l)||void 0===r?void 0:r.parentNode)||void 0===o||o.insertBefore(s,l),a?l=s:a=s}return[a,l]}t.default=function(e,t){var n=null,c=(0,u.default)(e,"table,tr",null,2,t),h=(0,i.default)(e,t,0).map((function(e){var t=(0,a.default)(e);if(!t)return null;var i=t.startContainer,l=t.endContainer,s=t.startOffset,u=t.endOffset,h=t.commonAncestorContainer;if((0,d.default)(h,"HTMLElement")&&!h.isContentEditable)return null;var p=f(l,u,!1),g=p[0],v=p[1],m=f(i,s,!0),b=m[0],y=m[1];n=n||b;var C=(0,o.default)(e,[y,g]);return(0,r.default)(c,C),{region:e,beforeStart:b,afterEnd:v}})).filter((function(e){return!!e}));return c.forEach((function(e){var t;return(null===(t=e.parentElement)||void 0===t?void 0:t.isContentEditable)&&e.parentElement.removeChild(e)})),h.forEach((function(e){e&&(0,l.default)(e.region,e.beforeStart,e.afterEnd)})),n&&new s.default(n,-1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19);t.default=function(e){for(var t=r.default.createBodyTraverser(e),n=t&&t.currentBlockElement,o=[];n;)o.push(n.getTextContent()),n=t.getNextBlockElement();return o.join("\n")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e,t){var n,o=this;this.editor=null,this.disposer=null,this.onDrop=function(){var e;null===(e=o.editor)||void 0===e||e.runAsync((function(e){e.addUndoSnapshot((function(){}),"Drop")}))},this.onFocus=function(){var e,t,n,r=o.state.tableSelectionRange||{},i=r.table,a=r.coordinates,l=(o.state.imageSelectionRange||{}).image;i&&a?null===(e=o.editor)||void 0===e||e.select(i,a):l?null===(t=o.editor)||void 0===t||t.select(l):o.state.selectionRange&&(null===(n=o.editor)||void 0===n||n.select(o.state.selectionRange)),o.state.selectionRange=null},this.onKeyDownDocument=function(e){9!=e.which||e.defaultPrevented||o.cacheSelection()},this.onMouseDownDocument=function(e){!o.editor||o.state.selectionRange||o.editor.contains(e.target)||o.cacheSelection()},this.cacheSelection=function(){!o.state.selectionRange&&o.editor&&(o.state.selectionRange=o.editor.getSelectionRange(!1))},this.onScroll=function(e){var t;null===(t=o.editor)||void 0===t||t.triggerPluginEvent(14,{rawEvent:e,scrollContainer:o.state.scrollContainer})},this.onKeyboardEvent=function(e){((0,r.isCharacterValue)(e)||e.which>=33&&e.which<=40)&&e.stopPropagation()},this.onInputEvent=function(e){e.stopPropagation()},this.onContextMenuEvent=function(e){var t,n,i=[],a=null===(t=o.editor)||void 0===t?void 0:t.getContentSearcherOfCursor(),l=null==a?void 0:a.getInlineElementBefore(),s=e.target;2!=e.button&&l&&(s=l.getContainerNode()),o.state.contextMenuProviders.forEach((function(e){var t,n=null!==(t=e.getContextMenuItems(s))&&void 0!==t?t:[];(null==n?void 0:n.length)>0&&(i.length>0&&i.push(null),(0,r.arrayPush)(i,n))})),null===(n=o.editor)||void 0===n||n.triggerPluginEvent(16,{rawEvent:e,items:i})},this.state={isInIME:!1,scrollContainer:e.scrollContainer||t,selectionRange:null,stopPrintableKeyboardEventPropagation:!e.allowKeyboardEventPropagation,contextMenuProviders:(null===(n=e.plugins)||void 0===n?void 0:n.filter(i))||[],tableSelectionRange:null,imageSelectionRange:null}}return e.prototype.getName=function(){return"DOMEvent"},e.prototype.initialize=function(e){var t,n,o,i,a=this;this.editor=e;var l=this.editor.getDocument(),s=((t={keypress:this.getEventHandler(1),keydown:this.getEventHandler(0),keyup:this.getEventHandler(2),mousedown:5,contextmenu:this.onContextMenuEvent,compositionstart:function(){return a.state.isInIME=!0},compositionend:function(t){a.state.isInIME=!1,e.triggerPluginEvent(4,{rawEvent:t})},drop:this.onDrop,focus:this.onFocus})[r.Browser.isIE?"textinput":"input"]=this.getEventHandler(3),t);r.Browser.isSafari?(l.addEventListener("mousedown",this.onMouseDownDocument,!0),l.addEventListener("keydown",this.onKeyDownDocument),null===(n=l.defaultView)||void 0===n||n.addEventListener("blur",this.cacheSelection)):r.Browser.isIEOrEdge?s.beforedeactivate=this.cacheSelection:s.blur=this.cacheSelection,this.disposer=e.addDomEventHandler(s),this.state.scrollContainer.addEventListener("scroll",this.onScroll),null===(o=l.defaultView)||void 0===o||o.addEventListener("scroll",this.onScroll),null===(i=l.defaultView)||void 0===i||i.addEventListener("resize",this.onScroll)},e.prototype.dispose=function(){var e,t,n,o,i,a=null===(e=this.editor)||void 0===e?void 0:e.getDocument();a&&r.Browser.isSafari&&(a.removeEventListener("mousedown",this.onMouseDownDocument,!0),a.removeEventListener("keydown",this.onKeyDownDocument),null===(t=a.defaultView)||void 0===t||t.removeEventListener("blur",this.cacheSelection)),null===(n=null==a?void 0:a.defaultView)||void 0===n||n.removeEventListener("resize",this.onScroll),null===(o=null==a?void 0:a.defaultView)||void 0===o||o.removeEventListener("scroll",this.onScroll),this.state.scrollContainer.removeEventListener("scroll",this.onScroll),null===(i=this.disposer)||void 0===i||i.call(this),this.disposer=null,this.editor=null},e.prototype.getState=function(){return this.state},e.prototype.getEventHandler=function(e){var t=this;return this.state.stopPrintableKeyboardEventPropagation?{pluginEventType:e,beforeDispatch:function(n){return 3==e?t.onInputEvent(n):t.onKeyboardEvent(n)}}:e},e}();function i(e){var t;return!!(null===(t=e)||void 0===t?void 0:t.getContextMenuItems)}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){this.editor=null,this.state={features:{}}}return e.prototype.getName=function(){return"Edit"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null},e.prototype.getState=function(){return this.state},e.prototype.onPluginEvent=function(e){var t,n=!1,o=null,i=!1;if(0==e.eventType){var a=e.rawEvent,l=null===(t=this.editor)||void 0===t?void 0:t.getSelectionRange();n=(i=(0,r.isCtrlOrMetaPressed)(a))||a.altKey,o=this.state.features[a.which]||l&&!l.collapsed&&this.state.features[258]}else 7==e.eventType&&(o=this.state.features[257]);for(var s=0;o&&s<(null==o?void 0:o.length);s++){var u=o[s];if((u.allowFunctionKeys||!n)&&this.editor&&u.shouldHandleEvent(e,this.editor,i)){u.handleEvent(e,this.editor);break}}},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=/_(\d{1,8})$/,i=["^_Entity$","^_EId_","^_EType_","^_EReadonly_"],a=[6,7,4,5],l=function(){function e(){var e=this;this.editor=null,this.cancelAsyncRun=null,this.handleCutEvent=function(t){var n,r=null===(n=e.editor)||void 0===n?void 0:n.getSelectionRange();r&&!r.collapsed&&e.checkRemoveEntityForRange(t)},this.state={knownEntityElements:[],shadowEntityCache:{}}}return e.prototype.getName=function(){return"Entity"},e.prototype.initialize=function(e){this.editor=e},e.prototype.willHandleEventExclusively=function(e){var t;return 1==e.eventType&&!!(null===(t=e.rawEvent.target)||void 0===t?void 0:t.shadowRoot)},e.prototype.dispose=function(){this.editor=null,this.state.knownEntityElements=[]},e.prototype.getState=function(){return this.state},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 6:this.handleMouseUpEvent(e);break;case 0:this.handleKeyDownEvent(e.rawEvent);break;case 9:e.isCut&&this.handleCutEvent(e.rawEvent);break;case 10:this.handleBeforePasteEvent(e.sanitizingOption);break;case 7:this.handleContentChangedEvent(e);break;case 11:this.handleContentChangedEvent();break;case 8:this.handleExtractContentWithDomEvent(e.clonedRoot);break;case 16:this.handleContextMenuEvent(e.rawEvent);break;case 20:this.handleBeforeSetContentEvent();break;case 15:this.handleEntityOperationEvent(e)}},e.prototype.handleContextMenuEvent=function(e){var t,n=e.target,o=n&&(null===(t=this.editor)||void 0===t?void 0:t.getElementAtCursor((0,r.getEntitySelector)(),n));o&&(e.preventDefault(),this.triggerEvent(o,2,e))},e.prototype.handleMouseUpEvent=function(e){var t,n=e.rawEvent,o=e.isClicking,i=n.target;this.editor&&o&&i&&(t=this.editor.getElementAtCursor((0,r.getEntitySelector)(),i))&&(this.triggerEvent(t,1,n),s(this.editor))},e.prototype.handleKeyDownEvent=function(e){var t;if((0,r.isCharacterValue)(e)||8==e.which||46==e.which||13==e.which){var n=null===(t=this.editor)||void 0===t?void 0:t.getSelectionRange();n&&!n.collapsed&&this.checkRemoveEntityForRange(e)}},e.prototype.handleBeforePasteEvent=function(e){var t,n=null===(t=this.editor)||void 0===t?void 0:t.getSelectionRange();n&&!n.collapsed&&this.checkRemoveEntityForRange(null),e.additionalAllowedCssClasses&&(0,r.arrayPush)(e.additionalAllowedCssClasses,i)},e.prototype.handleBeforeSetContentEvent=function(){this.cacheShadowEntities(this.state.shadowEntityCache)},e.prototype.handleContentChangedEvent=function(e){for(var t=this,n=this.state.knownEntityElements.length-1;n>=0;n--){var o=this.state.knownEntityElements[n];this.editor&&!this.editor.contains(o)&&(this.setIsEntityKnown(o,!1),o.shadowRoot&&this.triggerEvent(o,10))}var i=this.state.knownEntityElements.map((function(e){var t;return null===(t=(0,r.getEntityFromElement)(e))||void 0===t?void 0:t.id})).filter((function(e){return!!e}));("InsertEntity"==(null==e?void 0:e.source)&&e.data?[e.data]:this.getExistingEntities().filter((function(e){var n=e.wrapper;return!t.isEntityKnown(n)}))).forEach((function(e){var n=e.wrapper,o=e.type,a=e.id,l=e.isReadonly;e.id=t.ensureUniqueId(o,a,i),(0,r.commitEntity)(n,o,l,e.id),t.handleNewEntity(e)})),(0,r.getObjectKeys)(this.state.shadowEntityCache).forEach((function(e){t.triggerEvent(t.state.shadowEntityCache[e],6),delete t.state.shadowEntityCache[e]}))},e.prototype.handleEntityOperationEvent=function(e){var t,n=this;this.editor&&a.indexOf(e.operation)>=0&&(null===(t=this.cancelAsyncRun)||void 0===t||t.call(this),this.cancelAsyncRun=this.editor.runAsync((function(){n.cancelAsyncRun=null,n.handleContentChangedEvent()})))},e.prototype.handleExtractContentWithDomEvent=function(e){var t=this;(0,r.toArray)(e.querySelectorAll((0,r.getEntitySelector)())).forEach((function(e){e.removeAttribute("contentEditable"),t.triggerEvent(e,8)}))},e.prototype.checkRemoveEntityForRange=function(e){var t,n=this,o=[],i=(0,r.getEntitySelector)();if(null===(t=this.editor)||void 0===t||t.queryElements(i,1,(function(t){t.isContentEditable?o.push(t):n.triggerEvent(t,6,e)})),this.editor&&o.length>0){var a=this.editor.queryElements(i,2);o.forEach((function(t){var r=a.indexOf(t)>=0;n.triggerEvent(t,r?6:7,e)}))}},e.prototype.triggerEvent=function(e,t,n,o){var i,a=e&&(0,r.getEntityFromElement)(e);a&&(null===(i=this.editor)||void 0===i||i.triggerPluginEvent(15,{operation:t,rawEvent:n,entity:a,contentForShadowEntity:o}))},e.prototype.handleNewEntity=function(e){var t,n,o=e.wrapper,i=null===(t=this.editor)||void 0===t?void 0:t.getDocument().createDocumentFragment(),a=this.state.shadowEntityCache[e.id];if(delete this.state.shadowEntityCache[e.id],i&&(null==a?void 0:a.shadowRoot)&&(0,r.moveChildNodes)(i,a.shadowRoot),this.triggerEvent(o,0,void 0,i),null==i?void 0:i.firstChild)o.shadowRoot?(0,r.moveChildNodes)(o.shadowRoot,i):this.createShadowRoot(o,i);else if(o.shadowRoot){this.triggerEvent(o,10);var l=o.cloneNode();(0,r.moveChildNodes)(l,o),null===(n=this.editor)||void 0===n||n.replaceNode(o,l),e.wrapper=l}this.setIsEntityKnown(e.wrapper,!0)},e.prototype.getExistingEntities=function(e){var t,n;return null!==(n=null===(t=this.editor)||void 0===t?void 0:t.queryElements((0,r.getEntitySelector)()).map(r.getEntityFromElement).filter((function(t){return!(!t||e&&!t.wrapper.shadowRoot)})))&&void 0!==n?n:[]},e.prototype.createShadowRoot=function(e,t){if(e.attachShadow){var n=e.attachShadow({mode:"open",delegatesFocus:!0});return e.contentEditable="false",this.triggerEvent(e,9),(0,r.moveChildNodes)(n,t),n}},e.prototype.cacheShadowEntities=function(e){this.getExistingEntities(!0).forEach((function(t){var n=t.wrapper,r=t.id;e[r]=n}))},e.prototype.ensureUniqueId=function(e,t,n){for(var r=o.exec(t),i=(r?t.substr(0,t.length-r[0].length):t)||e,a="",l=r&&parseInt(r[1])||0;;l++)if(a=l>0?i+"_"+l:i,n.indexOf(a)<0){n.push(a);break}return a},e.prototype.setIsEntityKnown=function(e,t){var n=this.state.knownEntityElements.indexOf(e);t&&n<0?this.state.knownEntityElements.push(e):!t&&n>=0&&this.state.knownEntityElements.splice(n,1)},e.prototype.isEntityKnown=function(e){return this.state.knownEntityElements.indexOf(e)>=0},e}();t.default=l;var s=r.Browser.isIE?function(e){e.runAsync((function(e){var t=e.getCustomData("ENTITY_IE_FOCUS_BUTTON",(function(){var t=(0,r.createElement)({tag:"button",style:"overflow:hidden;position:fixed;width:0;height:0;top:-1000px"},e.getDocument());return t.onblur=function(){t.style.display="none"},e.insertNode(t,{position:4}),t}));t.style.display="",(0,r.addRangeToSelection)((0,r.createRange)(t,0))}))}:function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){this.editor=null}return e.prototype.getName=function(){return"ImageSelection"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){var e;null===(e=this.editor)||void 0===e||e.select(null),this.editor=null},e.prototype.onPluginEvent=function(e){var t;if(this.editor)switch(e.eventType){case 17:case 18:var n=this.editor.getSelectionRangeEx();2==n.type&&this.editor.select(n.image);break;case 6:var o=e.rawEvent.target;if((0,r.safeInstanceOf)(o,"HTMLImageElement"))if(2===e.rawEvent.button){var i=(0,r.createRange)(o);this.editor.select(i)}else 0===e.rawEvent.button&&this.editor.select(o);break;case 5:var a=e.rawEvent.target,l=this.editor.getSelectionRangeEx();l&&2===l.type&&l.image!==a&&this.editor.select(null);break;case 2:var s=e.rawEvent.key,u=this.editor.getSelectionRangeEx();2===u.type&&("Escape"===s?(this.editor.select(u.image,-2),null===(t=this.editor.getSelectionRange())||void 0===t||t.collapse(),e.rawEvent.stopPropagation()):this.editor.select(u.ranges[0]))}},e}();t.default=o},function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=i.Browser.isFirefox?((r={}).enableObjectResizing=!1,r.enableInlineTableEditing=!1,r):i.Browser.isIE?((o={}).defaultParagraphSeparator="div",o.AutoUrlDetect=!1,o):{},l={darkModeColor:"rgb(51,51,51)",lightModeColor:"rgb(255,255,255)"},s={darkModeColor:"rgb(255,255,255)",lightModeColor:"rgb(0,0,0)"},u=function(){function e(e,t){var n,r,o,a=this;this.editor=null,this.initializer=null,this.disposer=null,this.initialContent=e.initialContent||t.innerHTML||"",this.contentDivFormat=(0,i.getComputedStyles)(t),null===t.getAttribute("contenteditable")&&(this.initializer=function(){t.contentEditable="true",t.style.userSelect="text",t.style.webkitUserSelect="text"},this.disposer=function(){t.style.userSelect="",t.style.webkitUserSelect="",t.removeAttribute("contenteditable")}),this.adjustColor=e.doNotAdjustEditorColor?function(){}:function(){var e=s,n=l,r=a.state.isDarkMode;(0,i.setColor)(t,e,!1,r),(0,i.setColor)(t,n,!0,r)},this.state={customData:{},defaultFormat:null!==(n=e.defaultFormat)&&void 0!==n?n:null,isDarkMode:!!e.inDarkMode,getDarkColor:null!==(r=e.getDarkColor)&&void 0!==r?r:function(e){return e},onExternalContentTransform:null!==(o=e.onExternalContentTransform)&&void 0!==o?o:null,experimentalFeatures:e.experimentalFeatures||[],shadowEditFragment:null,shadowEditEntities:null,shadowEditSelectionPath:null,shadowEditTableSelectionPath:null,shadowEditImageSelectionPath:null}}return e.prototype.getName=function(){return"Lifecycle"},e.prototype.initialize=function(e){var t;this.editor=e,this.recalculateDefaultFormat(),this.editor.setContent(this.initialContent,!1),null===(t=this.initializer)||void 0===t||t.call(this),this.adjustColor(),this.adjustBrowserBehavior(),this.editor.triggerPluginEvent(11,{},!0)},e.prototype.dispose=function(){var e,t=this;null===(e=this.editor)||void 0===e||e.triggerPluginEvent(12,{},!0),(0,i.getObjectKeys)(this.state.customData).forEach((function(e){var n=t.state.customData[e];n&&n.disposer&&n.disposer(n.value),delete t.state.customData[e]})),this.disposer&&(this.disposer(),this.disposer=null,this.initializer=null),this.editor=null},e.prototype.getState=function(){return this.state},e.prototype.onPluginEvent=function(e){7!=e.eventType||"SwitchToDarkMode"!=e.source&&"SwitchToLightMode"!=e.source||(this.state.isDarkMode="SwitchToDarkMode"==e.source,this.recalculateDefaultFormat(),this.adjustColor())},e.prototype.adjustBrowserBehavior=function(){var e=this;(0,i.getObjectKeys)(a).forEach((function(t){var n;try{null===(n=e.editor)||void 0===n||n.getDocument().execCommand(t,!1,a[t])}catch(e){}}))},e.prototype.recalculateDefaultFormat=function(){var e=this.state,t=e.defaultFormat,n=e.isDarkMode;if(n&&t&&(t.backgroundColors||(t.backgroundColors=l),t.textColors||(t.textColors=s)),!t||0!==(0,i.getObjectKeys)(t).length){var r=t||{},o=r.fontFamily,a=r.fontSize,u=r.textColor,d=r.textColors,c=r.backgroundColor,f=r.backgroundColors,h=r.bold,p=r.italic,g=r.underline,v=this.contentDivFormat;this.state.defaultFormat={fontFamily:o||v[0],fontSize:a||v[1],get textColor(){return d?n?d.darkModeColor:d.lightModeColor:u||v[2]},textColors:d,get backgroundColor(){return f?n?f.darkModeColor:f.lightModeColor:c||""},backgroundColors:f,bold:h,italic:p,underline:g}}},e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){var e=this;this.editor=null,this.mouseUpEventListerAdded=!1,this.mouseDownX=null,this.mouseDownY=null,this.onMouseUp=function(t){e.editor&&(e.removeMouseUpEventListener(),e.editor.triggerPluginEvent(6,{rawEvent:t,isClicking:e.mouseDownX==t.pageX&&e.mouseDownY==t.pageY}))}}return e.prototype.getName=function(){return"MouseUp"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.removeMouseUpEventListener(),this.editor=null},e.prototype.onPluginEvent=function(e){this.editor&&5==e.eventType&&!this.mouseUpEventListerAdded&&(this.editor.getDocument().addEventListener("mouseup",this.onMouseUp,!0),this.mouseUpEventListerAdded=!0,this.mouseDownX=e.rawEvent.pageX,this.mouseDownY=e.rawEvent.pageY)},e.prototype.removeMouseUpEventListener=function(){this.editor&&this.mouseUpEventListerAdded&&(this.mouseUpEventListerAdded=!1,this.editor.getDocument().removeEventListener("mouseup",this.onMouseUp,!0))},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){this.editor=null}return e.prototype.getName=function(){return"NormalizeTable"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 11:case 7:this.editor&&this.normalizeTables(this.editor.queryElements("table"));break;case 10:this.normalizeTables((0,r.toArray)(e.fragment.querySelectorAll("table")));break;case 5:this.normalizeTableFromEvent(e.rawEvent);break;case 0:e.rawEvent.shiftKey&&this.normalizeTableFromEvent(e.rawEvent);break;case 8:t=e.clonedRoot,(0,r.toArray)(t.querySelectorAll("li")).forEach((function(e){var t=e.previousSibling;"block"==e.style.display&&(0,r.safeInstanceOf)(t,"HTMLLIElement")&&(e.style.removeProperty("display"),t.appendChild((0,r.changeElementTag)(e,"div")))}))}var t},e.prototype.normalizeTableFromEvent=function(e){var t,n=null===(t=this.editor)||void 0===t?void 0:t.getElementAtCursor("table",e.target);n&&this.normalizeTables([n])},e.prototype.normalizeTables=function(e){if(this.editor&&e.length>0){var t=this.editor.getSelectionRangeEx(),n=0==(null==t?void 0:t.type)&&t.ranges[0]||{},o=n.startContainer,i=n.endContainer,a=n.startOffset,l=n.endOffset;(function(e){var t=!1;return e.forEach((function(e){for(var n,o=null,i=e.firstChild;i;i=i.nextSibling){switch((0,r.getTagOfNode)(i)){case"TR":o||(o=e.ownerDocument.createElement("tbody"),e.insertBefore(o,i)),o.appendChild(i),i=o,t=!0;break;case"TBODY":o?((0,r.moveChildNodes)(o,i,!0),null===(n=i.parentNode)||void 0===n||n.removeChild(i),i=o,t=!0):o=i;break;default:o=null}}var a=e.querySelectorAll("colgroup"),l=e.querySelector("thead");l&&a.forEach((function(e){l.contains(e)||l.appendChild(e)}))})),t})(e)&&(o&&i&&"number"==typeof a&&"number"==typeof l?this.editor.select(o,a,i,l):1==(null==t?void 0:t.type)&&t.coordinates&&this.editor.select(t.table,t.coordinates))}},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){this.editor=null,this.state={pendableFormatPosition:null,pendableFormatState:null,pendableFormatSpan:null}}return e.prototype.getName=function(){return"PendingFormatState"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null,this.clear()},e.prototype.getState=function(){return this.state},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 13:e.formatState?(this.state.pendableFormatPosition=this.getCurrentPosition(),this.state.pendableFormatState=e.formatState,this.state.pendableFormatSpan=e.formatCallback?this.createPendingFormatSpan(e.formatCallback):null):this.clear();break;case 0:case 5:case 7:var t=null;this.editor&&0==e.eventType&&(0,r.isCharacterValue)(e.rawEvent)&&this.state.pendableFormatSpan?(this.state.pendableFormatSpan.removeAttribute("contentEditable"),this.editor.insertNode(this.state.pendableFormatSpan),this.editor.select(this.state.pendableFormatSpan,-2,this.state.pendableFormatSpan,-1),this.clear()):(0==e.eventType&&e.rawEvent.which>=33&&e.rawEvent.which<=40||this.state.pendableFormatPosition&&(t=this.getCurrentPosition())&&!this.state.pendableFormatPosition.equalTo(t))&&this.clear()}},e.prototype.clear=function(){this.state.pendableFormatPosition=null,this.state.pendableFormatState=null,this.state.pendableFormatSpan=null},e.prototype.getCurrentPosition=function(){var e,t,n=null===(e=this.editor)||void 0===e?void 0:e.getSelectionRange();return null!==(t=n&&r.Position.getStart(n).normalize())&&void 0!==t?t:null},e.prototype.createPendingFormatSpan=function(e){var t,n,o=this.state.pendableFormatSpan;if(!o&&this.editor){var i=this.editor.getStyleBasedFormatState(),a=this.editor.getDocument(),l=this.editor.isDarkMode();(o=a.createElement("span")).contentEditable="true",o.appendChild(a.createTextNode("​")),o.style.setProperty("font-family",null!==(t=i.fontName)&&void 0!==t?t:null),o.style.setProperty("font-size",null!==(n=i.fontSize)&&void 0!==n?n:null),(i.textColors||i.textColor)&&(0,r.setColor)(o,i.textColors||i.textColor,!1,l),(i.backgroundColors||i.backgroundColor)&&(0,r.setColor)(o,i.backgroundColors||i.backgroundColor,!0,l)}return o&&e(o),o},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){this.editor=null}return e.prototype.getName=function(){return"TypeInContainer"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null},e.prototype.isRangeEmpty=function(e){return!(!e.collapsed||e.startContainer.nodeType!==Node.ELEMENT_NODE||"DIV"!=(0,r.getTagOfNode)(e.startContainer)||e.startContainer.firstChild)},e.prototype.onPluginEvent=function(e){var t,n,o,i,a,l,s=this;if(1==e.eventType&&this.editor&&(!e.rawEvent||!(0,r.isCtrlOrMetaPressed)(e.rawEvent))){var u=this.editor.getSelectionRange(),d=u&&(0,r.findClosestElementAncestor)(u.startContainer,void 0,"[style]");if(!u||!this.isRangeEmpty(u)&&this.editor.contains(d))return;if(u.collapsed)this.editor.ensureTypeInContainer(r.Position.getStart(u),e.rawEvent);else{var c=function(){var t,n,r=null===(t=s.editor)||void 0===t?void 0:t.getFocusedPosition();r&&(null===(n=s.editor)||void 0===n||n.ensureTypeInContainer(r,e.rawEvent))};r.Browser.isMobileOrTablet?null===(t=this.editor.getDocument().defaultView)||void 0===t||t.setTimeout(c,100):this.editor.runAsync(c)}}if(0==e.eventType&&8==e.rawEvent.which&&(null===(n=this.editor)||void 0===n?void 0:n.isFeatureEnabled("DefaultFormatInSpan"))){var f=null===(o=this.editor)||void 0===o?void 0:o.getElementAtCursor(),h=f&&(null===(a=null===(i=this.editor)||void 0===i?void 0:i.getBlockElementAtNode(f))||void 0===a?void 0:a.getStartNode().previousSibling);h&&(null===(l=this.editor)||void 0===l||l.runAsync((function(t){var n=t.getFocusedPosition();n&&h==n.element&&t.ensureTypeInContainer(n,e.rawEvent)})))}},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e){var t,n,o;this.editor=null,this.lastKeyPress=null,this.state={snapshotsService:e.undoMetadataSnapshotService||(n=e.undoSnapshotService,n?{canMove:function(e){return n.canMove(e)},move:function(e){return(o=n.move(e))?{html:o,metadata:null}:null},addSnapshot:function(e,t){return n.addSnapshot(e.html+(e.metadata?"\x3c!--"+JSON.stringify(e.metadata)+"--\x3e":""),t)},clearRedo:function(){return n.clearRedo()},canUndoAutoComplete:function(){return n.canUndoAutoComplete()}}:void 0)||(t=(0,r.createSnapshots)(1e7),{canMove:function(e){return(0,r.canMoveCurrentSnapshot)(t,e)},move:function(e){return(0,r.moveCurrentSnapshot)(t,e)},addSnapshot:function(e,n){return(0,r.addSnapshotV2)(t,e,n)},clearRedo:function(){return(0,r.clearProceedingSnapshotsV2)(t)},canUndoAutoComplete:function(){return(0,r.canUndoAutoComplete)(t)}}),isRestoring:!1,hasNewContent:!1,isNested:!1,autoCompletePosition:null}}return e.prototype.getName=function(){return"Undo"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null},e.prototype.getState=function(){return this.state},e.prototype.willHandleEventExclusively=function(e){return 0==e.eventType&&8==e.rawEvent.which&&this.canUndoAutoComplete()},e.prototype.onPluginEvent=function(e){if(this.editor&&!this.editor.isInIME())switch(e.eventType){case 11:var t=this.editor.getUndoState();t.canUndo||t.canRedo||this.addUndoSnapshot();break;case 0:this.onKeyDown(e.rawEvent);break;case 1:this.onKeyPress(e.rawEvent);break;case 4:this.clearRedoForInput(),this.addUndoSnapshot();break;case 7:this.state.isRestoring||"SwitchToDarkMode"==e.source||"SwitchToLightMode"==e.source||this.clearRedoForInput()}},e.prototype.onKeyDown=function(e){var t,n;if(8==e.which&&!e.altKey||46==e.which)if(8==e.which&&this.canUndoAutoComplete())e.preventDefault(),null===(t=this.editor)||void 0===t||t.undo(),this.state.autoCompletePosition=null,this.lastKeyPress=e.which;else{var o=null===(n=this.editor)||void 0===n?void 0:n.getSelectionRange();!o||o.collapsed&&this.lastKeyPress==e.which&&!(0,r.isCtrlOrMetaPressed)(e)||this.addUndoSnapshot(),this.state.hasNewContent=!0,this.lastKeyPress=e.which}else e.which>=33&&e.which<=40&&(this.state.hasNewContent&&this.addUndoSnapshot(),this.lastKeyPress=0)},e.prototype.onKeyPress=function(e){var t;if(!e.metaKey){var n=null===(t=this.editor)||void 0===t?void 0:t.getSelectionRange();n&&!n.collapsed||32==e.which&&32!=this.lastKeyPress||13==e.which?(this.addUndoSnapshot(),13==e.which&&(this.state.hasNewContent=!0)):this.clearRedoForInput(),this.lastKeyPress=e.which}},e.prototype.clearRedoForInput=function(){this.state.snapshotsService.clearRedo(),this.lastKeyPress=0,this.state.hasNewContent=!0},e.prototype.canUndoAutoComplete=function(){var e,t,n=null===(e=this.editor)||void 0===e?void 0:e.getFocusedPosition();return this.state.snapshotsService.canUndoAutoComplete()&&!!n&&!!(null===(t=this.state.autoCompletePosition)||void 0===t?void 0:t.equalTo(n))},e.prototype.addUndoSnapshot=function(){var e;null===(e=this.editor)||void 0===e||e.addUndoSnapshot(),this.state.autoCompletePosition=null},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coreApiMap=void 0;var r=n(185),o=n(186),i=n(187),a=n(188),l=n(189),s=n(190),u=n(191),d=n(192),c=n(193),f=n(194),h=n(93),p=n(195),g=n(196),v=n(197),m=n(198),b=n(199),y=n(200),C=n(201),E=n(202),S=n(203);t.coreApiMap={attachDomEvent:o.attachDomEvent,addUndoSnapshot:r.addUndoSnapshot,createPasteFragment:i.createPasteFragment,ensureTypeInContainer:a.ensureTypeInContainer,focus:l.focus,getContent:s.getContent,getSelectionRange:d.getSelectionRange,getSelectionRangeEx:c.getSelectionRangeEx,getStyleBasedFormatState:f.getStyleBasedFormatState,getPendableFormatState:u.getPendableFormatState,hasFocus:h.hasFocus,insertNode:p.insertNode,restoreUndoSnapshot:g.restoreUndoSnapshot,selectRange:m.selectRange,setContent:y.setContent,switchShadowEdit:C.switchShadowEdit,transformColor:E.transformColor,triggerEvent:S.triggerEvent,selectTable:b.selectTable,selectImage:v.selectImage}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.addUndoSnapshot=void 0;var o=n(0);function i(e,t){if(!e.lifecycle.shadowEditFragment){var n=e.api.getSelectionRangeEx(e),i=e.lifecycle.isDarkMode,a=function(e,t,n){switch(null==t?void 0:t.type){case 1:return r({type:1,tableId:t.table.id,isDarkMode:!!n},t.coordinates);case 2:return{type:2,imageId:t.image.id,isDarkMode:!!n};case 0:return r({type:0,isDarkMode:!!n,start:[],end:[]},(0,o.getSelectionPath)(e,t.ranges[0])||{})}}(e.contentDiv,n,i)||null;e.undo.snapshotsService.addSnapshot({html:e.contentDiv.innerHTML,metadata:a},t),e.undo.hasNewContent=!1}}t.addUndoSnapshot=function(e,t,n,r,a){var l,s=e.undo,u=s.isNested;u||(s.isNested=!0,i(e,r));try{var d;if(t)l=t((d=e.api.getSelectionRange(e,!0))&&o.Position.getStart(d).normalize(),d&&o.Position.getEnd(d).normalize()),u||i(e,!1)}finally{u||(s.isNested=!1)}if(t&&n){var c={eventType:7,source:n,data:l,additionalData:a};e.api.triggerEvent(e,c,!0)}r&&((d=e.api.getSelectionRange(e,!1))&&(e.undo.hasNewContent=!1,e.undo.autoCompletePosition=o.Position.getStart(d)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attachDomEvent=void 0;var r=n(0);t.attachDomEvent=function(e,t){var n=(0,r.getObjectKeys)(t||{}).map((function(n){var r=function(e){var t={pluginEventType:null,beforeDispatch:null};"number"==typeof e?t.pluginEventType=e:"function"==typeof e?t.beforeDispatch=e:"object"==typeof e&&(t=e);return t}(t[n]),o=r.pluginEventType,i=r.beforeDispatch,a=n,l=function(t){i&&i(t),null!=o&&e.api.triggerEvent(e,{eventType:o,rawEvent:t},!1)};return e.contentDiv.addEventListener(a,l),function(){e.contentDiv.removeEventListener(a,l)}}));return function(){return n.forEach((function(e){return e()}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformTabCharacters=t.createPasteFragment=void 0;var r=n(0);function o(e,t){void 0===t&&(t=0);for(var n,r=e;-1!=(n=r.indexOf("\t"));){var o=r.slice(0,n),i=r.slice(n+1),a=6-(o.length+t)%6;r=o+Array(a).fill(" ").join("")+i}return r}function i(e,t){(0,r.toArray)(e.querySelectorAll("style")).forEach(t)}t.createPasteFragment=function(e,t,n,a,l){var s,u;if(!t)return null;var d=function(e,t){var n=(0,r.createDefaultHtmlSanitizerOptions)();return n.cssStyleCallbacks["caret-color"]=function(){return!1},{eventType:10,clipboardData:t,fragment:e.contentDiv.ownerDocument.createDocumentFragment(),sanitizingOption:n,htmlBefore:"",htmlAfter:"",htmlAttributes:{}}}(e,t),c=d.fragment,f=d.sanitizingOption,h=t.rawHtml,p=t.text,g=t.imageDataUri,v=e.contentDiv.ownerDocument,m=h?(new DOMParser).parseFromString(e.trustedHTMLHandler(h),"text/html"):void 0;if(h&&(null==m?void 0:m.body)){var b=null===(s=m.querySelector("html"))||void 0===s?void 0:s.attributes;(b?(0,r.toArray)(b):[]).reduce((function(e,t){return e[t.name]=t.value,e}),d.htmlAttributes),(0,r.toArray)(m.querySelectorAll("meta")).reduce((function(e,t){return e[t.name]=t.content,e}),d.htmlAttributes),t.htmlFirstLevelChildTags=[],null==m||m.body.normalize();for(var y=0;y<(null==m?void 0:m.body.childNodes.length);y++){var C=null==m?void 0:m.body.childNodes.item(y);if(C.nodeType==Node.TEXT_NODE)if(!(null===(u=C.nodeValue)||void 0===u?void 0:u.replace(/(\r\n|\r|\n)/gm,"").trim()))continue;var E=(0,r.getTagOfNode)(C);C.nodeType!=Node.COMMENT_NODE&&t.htmlFirstLevelChildTags.push(E)}i(m,(function(e){null==m||m.head.appendChild(e),f.additionalGlobalStyleNodes.push(e)}));var S=h.indexOf("\x3c!--StartFragment--\x3e"),w=h.lastIndexOf("\x3c!--EndFragment--\x3e");S>=0&&w>=S+"\x3c!--StartFragment--\x3e".length&&(d.htmlBefore=h.substr(0,S),d.htmlAfter=h.substr(w+"\x3c!--EndFragment--\x3e".length),t.html=h.substring(S+"\x3c!--StartFragment--\x3e".length,w),m.body.innerHTML=e.trustedHTMLHandler(t.html),i(m.body,(function(e){var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)})))}if(a||p||!g)if(!a&&h&&m&&m.body){if((0,r.moveChildNodes)(c,null==m?void 0:m.body),l&&n){var T=function(e,t){var n=e.api.getPendableFormatState(e,!0),r=e.api.getStyleBasedFormatState(e,t);return{fontFamily:r.fontName,fontSize:r.fontSize,textColor:r.textColor,backgroundColor:r.backgroundColor,textColors:r.textColors,backgroundColors:r.backgroundColors,bold:n.isBold,italic:n.isItalic,underline:n.isUnderline}}(e,n.node);(0,r.applyTextStyle)(c,(function(e){return(0,r.applyFormat)(e,T)}))}}else p&&p.split("\n").forEach((function(e,t,i){(e=e.replace(/^ /g," ").replace(/\r/g,"").replace(/ {2}/g,"  ")).includes("\t")&&(e=o(e,0===t?null==n?void 0:n.offset:0));var a=v.createTextNode(e);2==i.length&&0==t?(c.appendChild(a),c.appendChild(v.createElement("br"))):t>0&&t<i.length-1?c.appendChild((0,r.wrap)(""==e?v.createElement("br"):a)):c.appendChild(a)}));else{var O=v.createElement("img");O.style.maxWidth="100%",O.src=g,c.appendChild(O)}e.api.triggerEvent(e,d,!0);var P=new r.HtmlSanitizer(d.sanitizingOption);return P.convertGlobalCssToInlineCss(c),P.sanitize(c,n?(0,r.getInheritableStyles)(n.element):void 0),c},t.transformTabCharacters=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ensureTypeInContainer=void 0;var r=n(0);t.ensureTypeInContainer=function(e,t,n,o){var i,a=(0,r.findClosestElementAncestor)(t.node,e.contentDiv,"table");a&&(i=a.querySelector("td,th"))&&(t=new r.Position(i,0)),t=t.normalize();var l,s=(0,r.getBlockElementAtNode)(e.contentDiv,t.node);if(s){if(l=s.collapseToSingleElement(),(0,r.isNodeEmpty)(l,!1,!0)){var u=l.ownerDocument.createElement("br");l.append(u)}var d=(0,r.isNodeEmpty)(l)||n&&function(e,t){return(0,r.safeInstanceOf)(e.target,"Node")&&e.target.contains(t)&&e.key===t.innerText}(n,l);if((l=l&&d?l:null)&&e.lifecycle.defaultFormat&&o){var c=l.firstChild;l=(0,r.safeInstanceOf)(c,"HTMLSpanElement")?c:(0,r.wrap)((0,r.toArray)(l.childNodes),"span")}}else l=(0,r.createElement)(o?12:1,e.contentDiv.ownerDocument),e.api.insertNode(e,l,{position:1,updateCursor:!1,replaceSelection:!1,insertOnNewLine:!1}),l=o?l.firstChild:l,t=new r.Position(l,0);l&&e.lifecycle.defaultFormat&&(0,r.applyFormat)(l,e.lifecycle.defaultFormat,e.lifecycle.isDarkMode),n&&e.api.selectRange(e,(0,r.createRange)(new r.Position(t)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.focus=void 0;var r=n(0);t.focus=function(e){if(!e.lifecycle.shadowEditFragment){if(!(e.api.hasFocus(e)&&e.api.getSelectionRange(e,!1)||e.domEvent.selectionRange&&e.api.selectRange(e,e.domEvent.selectionRange,!0))){var t=(0,r.getFirstLeafNode)(e.contentDiv)||e.contentDiv;e.api.selectRange(e,(0,r.createRange)(t,0),!0)}e.domEvent.selectionRange=null,e.api.hasFocus(e)||e.contentDiv.focus()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContent=void 0;var r=n(0);t.getContent=function(e,t){var n="",o=0==t,i=2==t,a=e.lifecycle.shadowEditFragment||e.contentDiv;if(4==t)n=a.textContent;else if(3==t)n=(0,r.getTextContent)(a);else if(o||e.lifecycle.isDarkMode){var l=function(e){var t;(0,r.safeInstanceOf)(e,"DocumentFragment")?(t=e.ownerDocument.createElement("div")).appendChild(e.cloneNode(!0)):t=e.cloneNode(!0);return t}(a);l.normalize();var s=e.api.getSelectionRange(e,!0),u=i?e.lifecycle.shadowEditFragment?e.lifecycle.shadowEditSelectionPath:s?(0,r.getSelectionPath)(e.contentDiv,s):null:null,d=u&&(0,r.createRange)(l,u.start,u.end);e.lifecycle.isDarkMode&&e.api.transformColor(e,l,!1,null,1),o?(e.api.triggerEvent(e,{eventType:8,clonedRoot:l},!0),n=l.innerHTML):n=d?(0,r.getHtmlWithSelectionPath)(l,d):l.innerHTML}else n=(0,r.getHtmlWithSelectionPath)(a,i?e.api.getSelectionRange(e,!0):null);return null!=n?n:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPendableFormatState=void 0;var r=n(0);t.getPendableFormatState=function(e,t){var n,a=e.api.getSelectionRange(e,!0),l=e.pendingFormatState.pendableFormatState,s=null===(n=e.pendingFormatState.pendableFormatPosition)||void 0===n?void 0:n.normalize(),u=a&&r.Position.getStart(a).normalize(),d=u&&s&&a.collapsed&&u.equalTo(s);return a&&l&&d&&!t?l:u?function(e,t){var n=t.node,a={},l=[],s=function(){var e=(0,r.getTagOfNode)(n),t=1==n.nodeType&&n.style;e&&t&&(0,r.getObjectKeys)(o).forEach((function(n){l.indexOf(n)>=0||(a[n]=a[n]||o[n](e,t),i[n](t)&&l.push(n))})),n=n.parentNode};for(;n&&(0,r.contains)(e.contentDiv,n);)s();return a}(e,u):{}};var o={isBold:function(e,t){return"B"==e||"STRONG"==e||"H1"==e||"H2"==e||"H3"==e||"H4"==e||"H5"==e||"H6"==e||parseInt(t.fontWeight)>=700||["bold","bolder"].indexOf(t.fontWeight)>=0},isUnderline:function(e,t){return"U"==e||t.textDecoration.indexOf("underline")>=0},isItalic:function(e,t){return"I"==e||"EM"==e||"italic"===t.fontStyle},isSubscript:function(e,t){return"SUB"==e||"sub"===t.verticalAlign},isSuperscript:function(e,t){return"SUP"==e||"super"===t.verticalAlign},isStrikeThrough:function(e,t){return"S"==e||"STRIKE"==e||t.textDecoration.indexOf("line-through")>=0}},i={isBold:function(e){return""!==e.fontWeight&&parseInt(e.fontWeight)<700||"normal"===e.fontWeight},isUnderline:function(e){return""!==e.textDecoration&&e.textDecoration.indexOf("underline")<0},isItalic:function(e){return""!==e.fontStyle&&"italic"!==e.fontStyle},isSubscript:function(e){return""!==e.verticalAlign&&"sub"!==e.verticalAlign},isSuperscript:function(e){return""!==e.verticalAlign&&"super"!==e.verticalAlign},isStrikeThrough:function(e){return""!==e.textDecoration&&e.textDecoration.indexOf("line-through")<0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSelectionRange=void 0;var r=n(0);t.getSelectionRange=function(e,t){var n,o=null;if(e.lifecycle.shadowEditFragment)return o=e.lifecycle.shadowEditSelectionPath&&(0,r.createRange)(e.contentDiv,e.lifecycle.shadowEditSelectionPath.start,e.lifecycle.shadowEditSelectionPath.end);if(!t||e.api.hasFocus(e)){var i=null===(n=e.contentDiv.ownerDocument.defaultView)||void 0===n?void 0:n.getSelection();if(i&&i.rangeCount>0){var a=i.getRangeAt(0);(0,r.contains)(e.contentDiv,a)&&(o=a)}}return!o&&t&&(o=e.domEvent.selectionRange),o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSelectionRangeEx=void 0;var r=n(0);function o(e){return{type:0,ranges:e,areAllCollapsed:i(e)}}function i(e){return e.filter((function(e){return null==e?void 0:e.collapsed})).length==e.length}t.getSelectionRangeEx=function(e){var t,n,a;if(e.lifecycle.shadowEditFragment){var l,s=e.lifecycle,u=s.shadowEditTableSelectionPath,d=s.shadowEditSelectionPath,c=s.shadowEditImageSelectionPath;if(((null==u?void 0:u.length)||0)>0)return{type:1,ranges:l=e.lifecycle.shadowEditTableSelectionPath.map((function(t){return(0,r.createRange)(e.contentDiv,t.start,t.end)})),areAllCollapsed:i(l),table:(0,r.findClosestElementAncestor)(l[0].startContainer,e.contentDiv,"table"),coordinates:void 0};if(((null==c?void 0:c.length)||0)>0)return{type:2,ranges:l=e.lifecycle.shadowEditImageSelectionPath.map((function(t){return(0,r.createRange)(e.contentDiv,t.start,t.end)})),areAllCollapsed:i(l),image:(0,r.findClosestElementAncestor)(l[0].startContainer,e.contentDiv,"img"),imageId:void 0};var f=d&&(0,r.createRange)(e.contentDiv,d.start,d.end);return o(f?[f]:[])}if(e.api.hasFocus(e)){if(e.domEvent.tableSelectionRange)return e.domEvent.tableSelectionRange;if(e.domEvent.imageSelectionRange)return e.domEvent.imageSelectionRange;var h=null===(t=e.contentDiv.ownerDocument.defaultView)||void 0===t?void 0:t.getSelection();if(h&&h.rangeCount>0){var p=h.getRangeAt(0);if((0,r.contains)(e.contentDiv,p))return o([p])}}return null!==(a=null!==(n=e.domEvent.tableSelectionRange)&&void 0!==n?n:e.domEvent.imageSelectionRange)&&void 0!==a?a:o(e.domEvent.selectionRange?[e.domEvent.selectionRange]:[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStyleBasedFormatState=void 0;var r=n(0);t.getStyleBasedFormatState=function(e,t){if(!t)return{};var n=[],o=e.pendingFormatState.pendableFormatSpan;o&&(n=[o.style.fontFamily,o.style.fontSize,o.style.color,o.style.backgroundColor]);var i=t?(0,r.getComputedStyles)(t):[],a=e.lifecycle.isDarkMode,l=e.contentDiv,s=a&&(n[2]?o:(0,r.findClosestElementAncestor)(t,l,"[data-ogsc],[data-ogac]")),u=a&&(n[3]?o:(0,r.findClosestElementAncestor)(t,l,"[data-ogsb],[data-ogab]"));return{fontName:n[0]||i[0],fontSize:n[1]||i[1],textColor:n[2]||i[2],backgroundColor:n[3]||i[3],textColors:s?{darkModeColor:n[2]||i[2],lightModeColor:s.dataset.ogsc||s.dataset.ogac||i[2]}:void 0,backgroundColors:u?{darkModeColor:n[3]||i[3],lightModeColor:u.dataset.ogsb||u.dataset.ogab||i[3]}:void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertNode=void 0;var r=n(0);t.insertNode=function(e,t,n){var o;n=n||{position:3,insertOnNewLine:!1,updateCursor:!0,replaceSelection:!0,insertToRegionRoot:!1};var i=e.contentDiv;return n.updateCursor&&e.api.focus(e),4==n.position?(null===(o=i.parentNode)||void 0===o||o.insertBefore(t,i.nextSibling),!0):(e.api.transformColor(e,t,!0,(function(){var o,a;if(n)switch(n.position){case 0:case 1:var l,s=0==n.position,u=(0,r.getFirstLastBlockElement)(i,s);if(u){var d=s?u.getStartNode():u.getEndNode();n.insertOnNewLine||3==d.nodeType||(0,r.isVoidHtmlElement)(d)?(0,r.safeInstanceOf)(t,"DocumentFragment")?(l=(0,r.toArray)(t.childNodes),null===(o=d.parentNode)||void 0===o||o.insertBefore(t,s?d:d.nextSibling)):l=null===(a=d.parentNode)||void 0===a?void 0:a.insertBefore(t,s?d:d.nextSibling):l=d.insertBefore(t,s?d.firstChild:null)}else l=i.appendChild(t);if(l&&n.insertOnNewLine){var c=Array.isArray(l)?l:[l];(0,r.isBlockElement)(c[0])&&(0,r.isBlockElement)(c[c.length-1])||(0,r.wrap)(c)}break;case 2:var f=i.appendChild(t);f&&n.insertOnNewLine&&!(0,r.isBlockElement)(f)&&(0,r.wrap)(f);break;case 5:case 3:var h=function(e,t){var n=e.api.getSelectionRange(e,!0),r=null;return 5==t.position?(r=n,n=t.range):n&&(r=n.cloneRange()),{range:n,rangeToRestore:r}}(e,n),p=h.range,g=h.rangeToRestore;if(!p)return;n.replaceSelection&&!p.collapsed&&p.deleteContents();var v=r.Position.getStart(p),m=void 0;v=n.insertOnNewLine&&n.insertToRegionRoot?function(e,t,n){var o=(0,r.getRegionsFromRange)(e.contentDiv,t,0)[0],i=n.node;if(o){if(3!=i.nodeType||n.isAtEnd||(i=(0,r.splitTextNode)(i,n.offset,!0)),i!=o.rootNode)for(;i&&i.parentNode!=o.rootNode;)(0,r.splitParentNode)(i,!1),i=i.parentNode;i&&(n=new r.Position(i,-3))}return n}(e,p,v):n.insertOnNewLine&&(m=(0,r.getBlockElementAtNode)(i,v.normalize().node))?function(e,t,n){var o=new r.Position(e.getEndNode(),-3);if((0,r.safeInstanceOf)(o.node,"HTMLTableRowElement")){var i=t.contentDiv.ownerDocument.createElement("div");(0,r.createRange)(n).insertNode(i),o=new r.Position(i,0)}return o}(m,e,v):(0,r.adjustInsertPosition)(i,t,v,p);var b=11==t.nodeType?t.lastChild:t;(p=(0,r.createRange)(v)).insertNode(t),n.updateCursor&&b&&(g=(0,r.createRange)(new r.Position(b,-3).normalize())),g&&e.api.selectRange(e,g)}}),0),!0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.restoreUndoSnapshot=void 0;t.restoreUndoSnapshot=function(e,t){var n;e.undo.hasNewContent&&t<0&&e.api.addUndoSnapshot(e,null,null,!1);var r=e.undo.snapshotsService.move(t);if(r&&null!=r.html)try{e.undo.isRestoring=!0,e.api.setContent(e,r.html,!0,null!==(n=r.metadata)&&void 0!==n?n:void 0)}finally{e.undo.isRestoring=!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectImage=void 0;var r=n(94),o=n(0);t.selectImage=function(e,t){l(e);var n=null;if(t){var a=(0,o.createRange)(t);(0,r.default)(t,"imageSelected"),(0,r.default)(e.contentDiv,"contentDiv_"),e.api.selectRange(e,(0,o.createRange)(new o.Position(t,-3))),i(e,t),n={type:2,ranges:[a],image:t,areAllCollapsed:a.collapsed}}return n};var i=function(e,t){(0,o.removeImportantStyleRule)(t,["border","margin"]);var n=a(e,t.id);(0,o.setGlobalCssStyles)(e.contentDiv.ownerDocument,n,"imageStyle"+e.contentDiv.id)},a=function(e,t){return"#"+e.contentDiv.id+" #"+t+" {outline-style: auto!important;outline-color: "+(e.imageSelectionBorderColor||"#DB626C")+"!important;caret-color: transparent!important;}"},l=function(e){var t=e.contentDiv.ownerDocument;(0,o.removeGlobalCssStyle)(t,"imageStyle"+e.contentDiv.id)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectRange=void 0;var r=n(93),o=n(0);t.selectRange=function(e,t,n){return!(e.lifecycle.shadowEditSelectionPath||!(0,o.contains)(e.contentDiv,t))&&((0,o.addRangeToSelection)(t,n),(0,r.hasFocus)(e)||(e.domEvent.selectionRange=t),t.collapsed&&function(e){var t=e.contentDiv,n=e.pendingFormatState,r=e.api.getSelectionRange;if(n.pendableFormatState){var i=t.ownerDocument,a=(0,o.getPendableFormatState)(i);(0,o.getObjectKeys)(o.PendableFormatCommandMap).forEach((function(e){var t;!!(null===(t=n.pendableFormatState)||void 0===t?void 0:t[e])!=a[e]&&i.execCommand(o.PendableFormatCommandMap[e],!1,void 0)}));var l=r(e,!0),s=l&&o.Position.getStart(l);s&&(n.pendableFormatPosition=s)}}(e),!0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectTable=void 0;var r=n(94),o=n(0);t.selectTable=function(e,t,n){var u;if(i(e),function(e){if(e){var t=e||{},n=t.firstCell,r=t.lastCell;if(n&&r){var o=function(e){return s(e.x)&&s(e.y)};return o(n)&&o(r)}}return!1}(n)&&t){(0,r.default)(t,"tableSelected"),(0,r.default)(e.contentDiv,"contentDiv_");var d=function(e,t,n){var r="#"+e.contentDiv.id,i=function(e,t,n){var r,i=t.firstCell.y,s=t.firstCell.x,u=t.lastCell.y,d=t.lastCell.x,c=[],f=null,h=null,p=[],g=new o.VTable(e),v=(0,o.toArray)(e.childNodes).filter((function(e){return["THEAD","TBODY","TFOOT"].indexOf((0,o.getTagOfNode)(e))>-1})),m=0,b=v.map((function(e){var t={el:(0,o.getTagOfNode)(e),start:m,end:e.childNodes.length+m};return m=t.end,t}));return null===(r=g.cells)||void 0===r||r.forEach((function(t,r){var g=0;f=null,h=null;for(var v=b.filter((function(e){return e.start<=r&&e.end>r}))[0],m=v?">"+v.el+">":">",y=v&&r+1>=v.start?r+1-v.start:r+1,C=0;C<t.length;C++){var E=t[C].td;if(E){var S=(0,o.getTagOfNode)(E);if(g++,r>=i&&r<=u&&C>=s&&C<=d){l(E);var w=a(n,e.id,m,y,S,g),T=w+" *";p.push(w),p.push(T),f=f||e.querySelector(w),h=e.querySelector(w)}}}if(f&&h){var O=new Range;O.setStartBefore(f),O.setEndAfter(h),c.push(O)}})),{css:p.join(",")+" {background-color: rgba(198,198,198,0.7) !important; caret-color: transparent}",ranges:c}}(t,n,r),s=i.css,u=i.ranges;return(0,o.setGlobalCssStyles)(e.contentDiv.ownerDocument,s,"tableStyle"+e.contentDiv.id),u}(e,t,n);if(!function(e,t){var n,r=t.firstCell;return!(e.rows.item(r.y)&&(null===(n=e.rows.item(r.y))||void 0===n?void 0:n.cells.item(r.x)))}(t,n)){var c=null===(u=t.rows.item(n.firstCell.y))||void 0===u?void 0:u.cells.item(n.firstCell.x);c&&e.api.selectRange(e,(0,o.createRange)(new o.Position(c,0)))}return{type:1,ranges:d,table:t,areAllCollapsed:d.filter((function(e){return null==e?void 0:e.collapsed})).length==d.length,coordinates:n}}return null};var i=function(e){var t=e.contentDiv.ownerDocument;(0,o.removeGlobalCssStyle)(t,"tableStyle"+e.contentDiv.id)};function a(e,t,n,r,o,i){return e+" #"+t+n+" tr:nth-child("+r+")>"+o+":nth-child("+i+")"}function l(e){e&&(0,o.removeImportantStyleRule)(e,["background-color","background"])}function s(e){return(!!e||0==e)&&e>-1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setContent=void 0;var r=n(0),o=n(0);t.setContent=function(e,t,n,i){var a=!1;if(e.contentDiv.innerHTML!=t){e.api.triggerEvent(e,{eventType:20,newContent:t},!0);var l=(0,o.setHtmlWithMetadata)(e.contentDiv,t,e.trustedHTMLHandler);(function(e,t){if(!e.lifecycle.shadowEditSelectionPath&&t)switch(e.domEvent.tableSelectionRange=null,e.domEvent.imageSelectionRange=null,e.domEvent.selectionRange=null,t.type){case 0:e.api.selectTable(e,null),e.api.selectImage(e,null);var n=(0,r.createRange)(e.contentDiv,t.start,t.end);e.api.selectRange(e,n);break;case 1:var o=(0,r.queryElements)(e.contentDiv,"#"+t.tableId)[0];o&&(e.domEvent.tableSelectionRange=e.api.selectTable(e,o,t));break;case 2:var i=(0,r.queryElements)(e.contentDiv,"#"+t.imageId)[0];i&&(e.domEvent.imageSelectionRange=e.api.selectImage(e,i))}})(e,i=i||l),a=!0}var s=e.lifecycle.isDarkMode;(!i&&s||i&&!!i.isDarkMode!=!!s)&&(e.api.transformColor(e,e.contentDiv,!1,null,s?0:1,!0),a=!0),n&&a&&e.api.triggerEvent(e,{eventType:7,source:"SetContent"},!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchShadowEdit=void 0;var r=n(0);t.switchShadowEdit=function(e,t){var n=e.lifecycle,o=e.contentDiv,i=n.shadowEditEntities,a=n.shadowEditFragment,l=n.shadowEditSelectionPath,s=n.shadowEditTableSelectionPath,u=n.shadowEditImageSelectionPath,d=!!a,c=function(e,t){return(null==t?void 0:t.type)==e&&t.ranges.map((function(e){return(0,r.getSelectionPath)(o,e)})).map((function(e){return e}))||null};if(t){if(!d){var f=e.api.getSelectionRangeEx(e),h=e.api.getSelectionRange(e,!0);l=h&&(0,r.getSelectionPath)(o,h),s=c(1,f),u=c(2,f),i={},a=(0,r.moveContentWithEntityPlaceholders)(o,i),e.api.triggerEvent(e,{eventType:17,fragment:a,selectionPath:l},!1),n.shadowEditFragment=a,n.shadowEditSelectionPath=l,n.shadowEditTableSelectionPath=s,n.shadowEditImageSelectionPath=u,n.shadowEditEntities=i}n.shadowEditFragment&&(0,r.restoreContentWithEntityPlaceholder)(n.shadowEditFragment,o,n.shadowEditEntities,!0)}else if(n.shadowEditFragment=null,n.shadowEditSelectionPath=null,n.shadowEditEntities=null,d){if(e.api.triggerEvent(e,{eventType:18},!1),a&&(0,r.restoreContentWithEntityPlaceholder)(a,o,i),e.api.focus(e),l&&e.api.selectRange(e,(0,r.createRange)(o,l.start,l.end)),e.domEvent.imageSelectionRange){var p=e.domEvent.imageSelectionRange.image;e.contentDiv.querySelector("#"+p.id)&&e.api.selectImage(e,p)}if(e.domEvent.tableSelectionRange){var g=e.domEvent.tableSelectionRange,v=g.table,m=g.coordinates,b=v.id,y=e.contentDiv.querySelector("#"+b);v&&(e.domEvent.tableSelectionRange=e.api.selectTable(e,y,m))}}}},function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.transformColor=void 0;var i=n(0),a=[(r={},r[0]="color",r[1]="color",r[2]="ogsc",r[3]="ogac",r),(o={},o[0]="background-color",o[1]="bgcolor",o[2]="ogsb",o[3]="ogab",o)];function l(e,t){return e&&"undefined"!=e&&"null"!=e?e:t}function s(e){var t=e;return!!t.style&&!!t.dataset}t.transformColor=function(e,t,n,r,o,u){var d=t&&(u||e.lifecycle.isDarkMode)?function(e,t){var n=[];if((0,i.safeInstanceOf)(e,"HTMLElement")){t&&n.push(e);var r=e.getElementsByTagName("*");(0,i.arrayPush)(n,(0,i.toArray)(r))}else if((0,i.safeInstanceOf)(e,"DocumentFragment")){r=e.querySelectorAll("*");(0,i.arrayPush)(n,(0,i.toArray)(r))}return n.filter(s)}(t,n):[];null==r||r(),1==o?function(e){e.forEach((function(e){a.forEach((function(t){e.style.setProperty(t[0],l(e.dataset[t[2]],"")),delete e.dataset[t[2]];var n=l(e.dataset[t[3]],null);n?e.setAttribute(t[1],n):e.removeAttribute(t[1]),delete e.dataset[t[3]]}))}))}(d):e.lifecycle.onExternalContentTransform?d.forEach((function(t){return e.lifecycle.onExternalContentTransform(t)})):function(e,t){a.forEach((function(n){e.map((function(e){var r=e.style.getPropertyValue(n[0]),o=e.getAttribute(n[1]),i=e.dataset[n[2]],a=e.dataset[n[3]];return(!i||i==r)&&(!a||a==o)&&(r||o)&&"inherit"!=r?{element:e,styleColor:r,attrColor:o,newColor:r||o?t(r||o):null}:null})).filter((function(e){return!!e})).forEach((function(e){if(e){var t=e.element,r=e.styleColor,o=e.attrColor,i=e.newColor;t.style.setProperty(n[0],i,"important"),t.dataset[n[2]]=r||"",o&&i&&(t.setAttribute(n[1],i),t.dataset[n[3]]=o)}}))}))}(d,e.lifecycle.getDarkColor)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.triggerEvent=void 0;var r=[11,12,8,21];t.triggerEvent=function(e,t,n){e.lifecycle.shadowEditFragment&&!(r.indexOf(t.eventType)>=0)||!n&&e.plugins.some((function(e){return function(e,t){var n;if(t.onPluginEvent&&(null===(n=t.willHandleEventExclusively)||void 0===n?void 0:n.call(t,e)))return t.onPluginEvent(e),!0;return!1}(t,e)}))||e.plugins.forEach((function(e){e.onPluginEvent&&e.onPluginEvent(t)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(205);t.default=function(e,t){void 0===t&&(t=21.247);try{var n=r(e||void 0),o=n.lab().array(),i=(100-o[0])*((100-t)/100)+t;e=r.lab(i,o[1],o[2]).rgb().alpha(n.alpha()).toString()}catch(e){}return e}},function(e,t,n){"use strict";var r=n(206),o=n(209),i=[].slice,a=["keyword","gray","hex"],l={};Object.keys(o).forEach((function(e){l[i.call(o[e].labels).sort().join("")]=e}));var s={};function u(e,t){if(!(this instanceof u))return new u(e,t);if(t&&t in a&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);var n,d;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof u)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var c=r.get(e);if(null===c)throw new Error("Unable to parse color from string: "+e);this.model=c.model,d=o[this.model].channels,this.color=c.value.slice(0,d),this.valpha="number"==typeof c.value[d]?c.value[d]:1}else if(e.length){this.model=t||"rgb",d=o[this.model].channels;var f=i.call(e,0,d);this.color=h(f,d),this.valpha="number"==typeof e[d]?e[d]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);"alpha"in e&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var g=p.sort().join("");if(!(g in l))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=l[g];var v=o[this.model].labels,m=[];for(n=0;n<v.length;n++)m.push(e[v[n]]);this.color=h(m)}if(s[this.model])for(d=o[this.model].channels,n=0;n<d;n++){var b=s[this.model][n];b&&(this.color[n]=b(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function d(e,t,n){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(s[e]||(s[e]=[]))[t]=n})),e=e[0],function(r){var o;return arguments.length?(n&&(r=n(r)),(o=this[e]()).color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function c(e){return function(t){return Math.max(0,Math.min(e,t))}}function f(e){return Array.isArray(e)?e:[e]}function h(e,t){for(var n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}u.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in r.to?this:this.rgb(),n=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return r.to[t.model](n)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:t.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=o[this.model].channels,n=o[this.model].labels,r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new u(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new u(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:d("rgb",0,c(255)),green:d("rgb",1,c(255)),blue:d("rgb",2,c(255)),hue:d(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:d("hsl",1,c(100)),lightness:d("hsl",2,c(100)),saturationv:d("hsv",1,c(100)),value:d("hsv",2,c(100)),chroma:d("hcg",1,c(100)),gray:d("hcg",2,c(100)),white:d("hwb",1,c(100)),wblack:d("hwb",2,c(100)),cyan:d("cmyk",0,c(100)),magenta:d("cmyk",1,c(100)),yellow:d("cmyk",2,c(100)),black:d("cmyk",3,c(100)),x:d("xyz",0,c(100)),y:d("xyz",1,c(100)),z:d("xyz",2,c(100)),l:d("lab",0,c(100)),a:d("lab",1),b:d("lab",2),keyword:function(e){return arguments.length?new u(e):o[this.model].keyword(this.color)},hex:function(e){return arguments.length?new u(e):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return u.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),o=void 0===t?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),l=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,s=1-l;return u.rgb(l*n.red()+s*r.red(),l*n.green()+s*r.green(),l*n.blue()+s*r.blue(),n.alpha()*o+r.alpha()*(1-o))}},Object.keys(o).forEach((function(e){if(-1===a.indexOf(e)){var t=o[e].channels;u.prototype[e]=function(){if(this.model===e)return new u(this);if(arguments.length)return new u(arguments,e);var n="number"==typeof arguments[t]?t:this.valpha;return new u(f(o[this.model][e].raw(this.color)).concat(n),e)},u[e]=function(n){return"number"==typeof n&&(n=h(i.call(arguments),t)),new u(n,e)}}})),e.exports=u},function(e,t,n){var r=n(96),o=n(207),i={};for(var a in r)r.hasOwnProperty(a)&&(i[r[a]]=a);var l=e.exports={to:{},get:{}};function s(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,o,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],n=0;n<3;n++){var a=2*n;i[n]=parseInt(t.slice(a,a+2),16)}o&&(i[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],n=0;n<3;n++)i[n]=parseInt(t[n]+t[n],16);o&&(i[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<3;n++)i[n]=parseInt(t[n+1],0);t[4]&&(i[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=e.match(/(\D+)/))?"transparent"===t[1]?[0,0,0,0]:(i=r[t[1]])?(i[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(i[3]=parseFloat(t[4]))}for(n=0;n<3;n++)i[n]=s(i[n],0,255);return i[3]=s(i[3],0,1),i},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,s(parseFloat(t[2]),0,100),s(parseFloat(t[3]),0,100),s(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,s(parseFloat(t[2]),0,100),s(parseFloat(t[3]),0,100),s(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=o(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return i[e.slice(0,3)]}},function(e,t,n){"use strict";var r=n(208),o=Array.prototype.concat,i=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n<a;n++){var l=e[n];r(l)?t=o.call(t,i.call(l)):t.push(l)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},function(e,t){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,n){var r=n(97),o=n(210),i={};Object.keys(r).forEach((function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:r[e].channels}),Object.defineProperty(i[e],"labels",{value:r[e].labels});var t=o(e);Object.keys(t).forEach((function(n){var r=t[n];i[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o<r;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),i[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=i},function(e,t,n){var r=n(97);function o(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,o=0;o<n;o++)e[t[o]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var o=n.pop(),i=Object.keys(r[o]),a=i.length,l=0;l<a;l++){var s=i[l],u=t[s];-1===u.distance&&(u.distance=t[o].distance+1,u.parent=o,n.unshift(s))}return t}function i(e,t){return function(n){return t(e(n))}}function a(e,t){for(var n=[t[e].parent,e],o=r[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),o=i(r[t[a].parent][a],o),a=t[a].parent;return o.conversion=n,o}e.exports=function(e){for(var t=o(e),n={},r=Object.keys(t),i=r.length,l=0;l<i;l++){var s=r[l];null!==t[s].parent&&(n[s]=a(s,t))}return n}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(212),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllFeatures=t.ContentEdit=void 0;var r=n(213);Object.defineProperty(t,"ContentEdit",{enumerable:!0,get:function(){return r.default}});var o=n(99);Object.defineProperty(t,"getAllFeatures",{enumerable:!0,get:function(){return o.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(99),o=n(0),i=function(){function e(e,t){this.settingsOverride=e,this.additionalFeatures=t,this.editor=void 0,this.features=[]}return e.prototype.getName=function(){return"ContentEdit"},e.prototype.initialize=function(e){var t=this;this.editor=e;var n=(0,r.default)();(0,o.getObjectKeys)(n).forEach((function(e){var r=n[e],o=t.settingsOverride&&void 0!==t.settingsOverride[e];(o&&t.settingsOverride[e]||!o&&!r.defaultDisabled)&&t.features.push(r)})),this.features=this.features.concat(this.additionalFeatures||[]),this.features.forEach((function(e){return t.editor.addContentEditFeature(e)}))},e.prototype.disposeFeatures=function(){var e=this;this.editor&&this.features.forEach((function(t){return e.editor.removeContentEditFeature(t)})),this.features=[]},e.prototype.dispose=function(){this.disposeFeatures(),this.editor=void 0},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoLinkFeatures=void 0;var r=n(9),o=n(0),i=/[.+=\s:;"',>]+$/i,a={keys:[13,32,257],shouldHandleEvent:s,handleEvent:function(e,t){var n=t.getDocument().createElement("a"),i=s(e,t),a=t.getContentSearcherOfCursor();n.textContent=i.originalUrl,n.href=i.normalizedUrl,t.runAsync((function(t){t.addUndoSnapshot((function(){return(0,r.replaceWithNode)(t,i.originalUrl,n,!1,a),(0,o.clearEventDataCache)(e),n}),"AutoLink",!0)}))}},l={keys:[8],shouldHandleEvent:function(e,t){return t.getContentSearcherOfCursor(e).getInlineElementBefore()instanceof o.LinkInlineElement},handleEvent:function(e,t){e.rawEvent.preventDefault(),(0,r.removeLink)(t)},defaultDisabled:!0};function s(e,t){return 0==e.eventType||7==e.eventType&&"Paste"==e.source?(0,o.cacheGetEventData)(e,"LINK_DATA",(function(){var n=7==e.eventType&&"Paste"==e.source&&e.data,r=(0,o.matchLink)((n.text||"").trim()),a=t.getContentSearcherOfCursor(e);if(r&&a.getRangeFromText(r.originalUrl,!1))return r;var l=a&&a.getWordBefore();if(l&&l.length>5){var s=(l.match(i)||[])[0]||"",u=l.substring(0,l.length-s.length);return["()","{}","[]"].forEach((function(e){u[u.length-1]==e[1]&&u.indexOf(e[0])<0&&(u=u.substr(0,u.length-1))})),(0,o.matchLink)(u)}return null})):null}t.AutoLinkFeatures={autoLink:a,unlinkWhenBackspaceAfterLink:l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNewFontSize=t.FONT_SIZES=void 0;var r=n(41),o=n(0);t.FONT_SIZES=[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72];function i(e,t,n){e=1==t?Math.floor(e):Math.ceil(e);var r=n[n.length-1];if(e<=n[0])e=Math.max(e+t,1);else if(e>r||e==r&&1==t)e/=10,e=1==t?Math.floor(e):Math.ceil(e),e=Math.min(Math.max(10*(e+t),r),1e3);else if(1==t){for(var o=0;o<n.length;o++)if(e<n[o]){e=n[o];break}}else for(o=n.length-1;o>=0;o--)if(e>n[o]){e=n[o];break}return e}t.default=function(e,n,a){void 0===a&&(a=t.FONT_SIZES);var l=0==n?1:-1;(0,r.default)(e,(function(e){var t=parseFloat((0,o.getComputedStyle)(e,"font-size")||e.style.fontSize);e.style.fontSize=i(t,l,a)+"pt";var n=(0,o.getComputedStyle)(e,"line-height");n&&"normal"!=n&&(e.style.lineHeight="normal")}),"changeFontSize")},t.getNewFontSize=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(100);t.default=function(e){(0,r.default)(e,1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=/^[a-zA-Z]+:/i,i=/^[\w.%+-]+@/i,a=/^ftp\./i;function l(e){return e.queryElements("a[href]",1)[0]}function s(e,t){t&&e.textContent!=t&&(e.textContent=t)}t.default=function(e,t,n,u,d){e.focus();var c=(function(e){var t=new r.HtmlSanitizer,n=document.createElement("a");return n.href=e||"",t.sanitize(n),n.getAttribute("href")}(t)||"").trim();if(c){var f=(0,r.matchLink)(c),h=f?f.normalizedUrl:function(e){if(!e)return e;var t="";return e.search(o)<0&&(t=0==e.search(i)?"mailto:":0==e.search(a)?"ftp://":"http://"),t+e}(c),p=f?f.originalUrl:c;e.addUndoSnapshot((function(){var t=e.getSelectionRangeEx(),o=null;if(0===t.type){var i=t.ranges[0];if(i&&i.collapsed)(o=l(e))?(o.href=h,s(o,u)):((o=e.getDocument().createElement("A")).textContent=u||p,o.href=h,e.insertNode(o));else{e.getDocument().execCommand("createLink",!1,h);for(var a=e.getSelectionTraverser(),c=a.getNextInlineElement(),f=[];c;)f.push(c.getContainerNode()),c=a.getNextInlineElement();f.forEach((function(t){return e.deleteNode(t)})),s(o=l(e),u)}}else 2===t.type&&((o=(0,r.wrap)(t.image,"A")).href=h);return n&&o&&(o.title=n),o&&function(e,t){t?e.target=t:!t&&e.getAttribute("target")&&e.removeAttribute("target")}(o,d),o}),"CreateLink")}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getElementBasedFormatState=void 0;var o=n(0);function i(e,t){var n=(0,o.getTagOfNode)(e.getElementAtCursor("OL,UL",null,t)),r=e.getSelectionRange(),i=!1;if(r&&!r.collapsed){var a=e.getBlockElementAtNode(r.startContainer),l=e.getBlockElementAtNode(r.endContainer);i=!(!l||!a)&&!l.equals(a)}var s=(0,o.getTagOfNode)(e.getElementAtCursor("H1,H2,H3,H4,H5,H6",null,t)),u=e.queryElements("table",1)[0],d=u?(0,o.getTableFormatInfo)(u):void 0,c=(null==u?void 0:u.rows[0])?(0,o.toArray)(u.rows[0].cells).every((function(e){return"TH"==(0,o.getTagOfNode)(e)})):void 0;return{isBullet:"UL"==n,isNumbering:"OL"==n,isMultilineSelection:i,headerLevel:s&&parseInt(s[1])||0,canUnlink:!!e.queryElements("a[href]",1)[0],canAddImageAltText:!!e.queryElements("img",1)[0],isBlockQuote:!!e.queryElements("blockquote",1)[0],isInTable:!!u,tableFormat:d,tableHasHeader:c}}t.getElementBasedFormatState=i,t.default=function(e,t){return r(r(r(r(r({},e.getPendableFormatState(!1)),i(e,t)),e.getStyleBasedFormatState()),e.getUndoState()),{isDarkMode:e.isDarkMode(),zoomScale:e.getZoomScale()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),o=n(0);t.default=function(e,t,n,i,a,l,s){var u=(0,o.wrap)(n,i?"DIV":"SPAN");if(!i&&a&&(u.style.display="inline-block"),(0,o.commitEntity)(u,t,a),!e.contains(u)){var d=void 0,c=void 0;if("number"==typeof l)c=l;else if(l){d=e.getSelectionRange();var f=l.normalize().node,h=f&&e.getElementAtCursor((0,o.getEntitySelector)(),f);h&&(l=new o.Position(h,-3)),e.select(l),c=3}else e.focus(),c=3;var p=s&&e.getSelectedRegions(),g=p&&o.VListChain.createListChains(p);e.insertNode(u,{updateCursor:!1,insertOnNewLine:i,replaceSelection:!0,position:c,insertToRegionRoot:s}),g&&(0,r.default)(e,g),3==c&&(d?e.select(d):i||e.select(u,-3))}if(i){var v=e.getDocument().createElement("BR");u.parentNode.insertBefore(v,u.nextSibling)}var m=(0,o.getEntityFromElement)(u);return e.triggerContentChangedEvent("InsertEntity",m),m}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);function i(e,t,n){(0,r.default)(e,(function(){var r=e.getDocument().createElement("img");r.src=t,n&&(0,o.getObjectKeys)(n).forEach((function(e){return r.setAttribute(e,n[e])})),r.style.maxWidth="100%",e.insertNode(r)}),"insertImage")}t.default=function(e,t,n){"string"==typeof t?i(e,t,n):(0,o.readFile)(t,(function(t){t&&!e.isDisposed()&&i(e,t,n)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(59),i=n(0);function a(e){return e<=4?"120px":e<=6?"100px":"70px"}t.default=function(e,t,n,l){var s=e.getDocument(),u=s.createElement("table");u.cellSpacing="0",u.cellPadding="1";for(var d=0;d<n;d++){var c=s.createElement("tr");u.appendChild(c);for(var f=0;f<t;f++){var h=s.createElement("td");c.appendChild(h),h.appendChild(s.createElement("br")),h.style.width=a(t)}}e.focus(),(0,r.default)(e,(function(){var t=e.getElementAtCursor();(null==t?void 0:t.style.backgroundColor)&&(0,o.default)(e,"transparent");var n=new i.VTable(u);n.applyFormat(l),n.writeBack(),e.insertNode(u),e.runAsync((function(e){return e.select(new i.Position(u,0).normalize())}))}),"insertTable")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t){var n=e.getElementAtCursor("TD,TH");n&&(0,r.default)(e,(function(){var r=new o.VTable(n);!function(e,t){var n=e.getSelectionRangeEx();n&&1===n.type&&(t.selection=n.coordinates)}(e,r),r.edit(t),r.writeBack(),e.transformToDarkColor(r.table),e.focus();var i=function(e,t,n){var r=t,o=n;switch(e){case 0:o=0;break;case 1:r+=1,o=0;break;case 2:r=0;break;case 3:r=0,o+=1}return{newRow:r,newCol:o}}(t,r.row,r.col);e.select(r.getCell(i.newRow,i.newCol).td,0)}),"editTable")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t,n){(n=n||e.getElementAtCursor("TABLE"))&&(0,r.default)(e,(function(r,i){var a=new o.VTable(n);a.applyFormat(t),a.writeBack(),e.transformToDarkColor(a.table),e.focus(),e.select(r,i)}),"formatTable")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e){e.focus(),(0,r.default)(e,(function(t,n){e.queryElements("a[href]",1,o.unwrap),e.select(t,n)}),"removeLink")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){if(!t||!n)return!1;var i;if(i="string"==typeof t?(o=o||e.getContentSearcherOfCursor())&&o.getRangeFromText(t,r):t){var a=e.getSelectionRange();return a.collapsed&&i.endContainer==a.startContainer&&i.endOffset==a.startOffset&&(r=!0),e.insertNode(n,{position:5,updateCursor:r,replaceSelection:!0,insertOnNewLine:!1,range:i}),!0}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.default=function(e,t,n){t&&(0,r.default)(e,(function(){t.style.transform="rotate("+n+"deg)"}),"rotateElement")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),o=n(12),i=n(3),a=n(107),l=n(0);t.default=function(e,t){(0,i.default)(e,(function(){var n,i=e.getSelectionRangeEx(),s=i&&1===i.type,u=e.getElementAtCursor();s&&(0,l.isWholeTableSelected)(new l.VTable(i.table),i.coordinates)?function(e,t){var n=e.table;1==t?(n.style.marginLeft="auto",n.style.marginRight="auto"):2==t?(n.style.marginLeft="auto",n.style.marginRight=""):(n.style.marginLeft="",n.style.marginRight="auto")}(i,t):(n=u,(0,l.findClosestElementAncestor)(n,void 0,"LI")&&e.isFeatureEnabled("ListItemAlignment")?function(e,t){(0,r.default)(e,(function(n,r,o){var i=(0,l.getSelectedBlockElementsInRegion)(n,void 0,e.isFeatureEnabled("DefaultFormatInSpan"))[0].getStartNode();(0,l.createVListFromRegion)(n,!0,i).setAlignment(r,o,t)}),void 0,"alignList")}(e,t):function(e,t){var n="left",r="justifyLeft";1==t?(r="justifyCenter",n="center"):2==t&&(r="justifyRight",n="right");if((0,o.default)(e,r),0==e.queryElements("[align]",1,(function(e){e.style.textAlign=n,(0,a.default)(e)})).length){var i=e.getElementAtCursor();(0,a.default)(i)}}(e,t))}),"setAlignment")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(229),o=n(3);t.default=function(e,t){e.focus(),(0,o.default)(e,(function(n,o){(0,r.default)(e,(function(e){e.setAttribute("dir",0==t?"ltr":"rtl"),e.style.textAlign=0==t?"left":"right"})),e.select(n,o)}),"setDirection")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);function o(e){var t=e.getStartNode();return t==e.getEndNode()&&3==t.nodeType&&["TR","TABLE"].indexOf((0,r.getTagOfNode)(t.parentNode))>=0}t.default=function(e,t){for(var n=e.getSelectionTraverser(),r=n&&n.currentBlockElement,i=[];r;)o(r)||i.push(r),r=n.getNextBlockElement();i.forEach((function(e){var n=e.collapseToSingleElement();t(n)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.default=function(e,t){e.focus(),(0,r.default)(e,(function(){e.queryElements("img",1,(function(e){return e.setAttribute("alt",t)}))}),"setImageAltText")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),o=n(107),i=n(0);function a(e,t){t.forEach((function(t){var n=t.collapseToSingleElement(),r=(0,i.findClosestElementAncestor)(n,e.rootNode,"blockquote");if(r){for(n==r&&(n=(0,i.wrap)((0,i.toArray)(n.childNodes)));n&&(0,i.isNodeInRegion)(e,n)&&"BLOCKQUOTE"!=(0,i.getTagOfNode)(n);)n=(0,i.splitBalancedNodeRange)(n);n&&(0,i.isNodeInRegion)(e,n)&&(0,i.unwrap)(n)}}))}function l(e,t){var n;return(null===(n=e.items[0])||void 0===n?void 0:n.getNode())==t&&e.getListItemIndex(t)==(e.getStart()||1)}function s(e,t,n){return 0==e||t.getElementAtCursor("blockquote",n)}t.default=function(e,t){var n=0==t?function(e,t){var n=(0,i.collapseNodesInRegion)(e,t);(0,i.wrap)(n,2);var r=[];n.forEach((function(e){return(0,o.default)(e,r)}))}:a;(0,r.default)(e,(function(r,o,a){for(var u=(0,i.getSelectedBlockElementsInRegion)(r,!0,e.isFeatureEnabled("DefaultFormatInSpan")),d=[[]],c=0;c<u.length;c++){var f=u[c].getStartNode(),h=(0,i.createVListFromRegion)(r,!0,f);if(h){for(;u[c+1]&&h.contains(u[c+1].getStartNode());)c++;var p=e.isFeatureEnabled("TabKeyTextFeatures");if(p&&l(h,f)&&s(t,e,f)){var g=e.getBlockElementAtNode(h.rootList);d.push([g])}else 1==t?h.setIndentation(o,a,t,!1,p):h.setIndentation(o,a,t),h.writeBack(e.isFeatureEnabled("ReuseAllAncestorListElements")),d.push([])}else d[d.length-1].push(u[c])}d.forEach((function(e){return n(r,e)}))}),(function(){var n=e.getSelectionRangeEx();if(1==n.type&&(0,i.isWholeTableSelected)(new i.VTable(n.table),n.coordinates)){if(1==t){var r=e.getElementAtCursor("blockquote",n.table);(0,i.unwrap)(r)}else 0==t&&(0,i.wrap)(n.table,2);return!1}return!0}),"setIndentation")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41),o=n(0);t.default=function(e,t,n){function i(e,n){switch(t){case"lowercase":return e.toLocaleLowerCase(n);case"uppercase":return e.toLocaleUpperCase(n);case"capitalize":for(var r=e.toLocaleLowerCase(n).split(" "),o=0;o<r.length;o++)r[o]=r[o].charAt(0).toLocaleUpperCase(n)+r[o].slice(1);return r.join(" ");case"sentence":var i=new RegExp("^\\s*\\w|[\\.\\!\\?]\\s+\\w","g");return e.toLocaleLowerCase(n).replace(i,(function(e){return e.toLocaleUpperCase(n)}))}}(0,r.default)(e,(function(e){for(var t=(0,o.getFirstLeafNode)(e);t;t=(0,o.getNextLeafSibling)(e,t))if(3==t.nodeType)try{t.textContent=i(t.textContent,n)}catch(e){t.textContent=i(t.textContent,void 0)}}),"changeCapitalization")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(60);t.default=function(e,t,n){(0,r.default)(e,2,void 0,!1,void 0,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(60);t.default=function(e,t,n,o){(0,r.default)(e,1,t,void 0,n,void 0,o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t,n){void 0===n&&(n=1),(0,r.default)(e,(function(){e.focus();var r=e.getSelectedRegions();if(r[0]){var i=(0,o.createVListFromRegion)(r[0],!1,t);i&&(i.split(t,n),i.writeBack(e.isFeatureEnabled("ReuseAllAncestorListElements")))}}),"setOrderedListNumbering")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(108),o=n(0),i=function(e){e.style.borderLeft="3px solid",e.style.borderColor="#C8C8C8",e.style.paddingLeft="10px",e.style.color="#666666"};t.default=function(e,t){(0,r.default)(e,(function(e){var n=(0,o.wrap)(e,"blockquote");(t||i)(n)}),(function(){return 0==e.queryElements("blockquote",1,o.unwrap).length}),"toggleBlockQuote")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(108),o=n(0);t.default=function(e,t){(0,r.default)(e,(function(e){var n=(0,o.wrap)(e,"code"),r=(0,o.wrap)(n,"pre");null==t||t(r)}),(function(){return 0==e.queryElements("pre>code",1,(function(e){if(!e.previousSibling&&!e.nextSibling){var t=e.parentNode;(0,o.unwrap)(e),(0,o.unwrap)(t)}})).length}),"toggleCodeBlock")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.default=function(e){(0,r.default)(e,"strikeThrough","toggleStrikethrough")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.default=function(e){(0,r.default)(e,"subscript","toggleSubscript")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.default=function(e){(0,r.default)(e,"superscript","toggleSuperscript")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t){t=Math.min(Math.max(Math.round(t),0),6),(0,r.default)(e,(function(){e.focus();var n=!1;if(e.queryElements("H1,H2,H3,H4,H5,H6",1,(function(t){n||(e.getDocument().execCommand("formatBlock",!1,"<DIV>"),n=!0);var r=e.getDocument().createElement("div");(0,o.moveChildNodes)(r,t),e.replaceNode(t,r)})),t>0){for(var r=e.getSelectionTraverser(),i=r?r.currentBlockElement:null,a=new o.HtmlSanitizer({cssStyleCallbacks:{"font-size":function(){return!1}}});i;){var l=i.collapseToSingleElement();a.sanitize(l),i=r.getNextBlockElement()}e.getDocument().execCommand("formatBlock",!1,"<H"+t+">")}}),"toggleHeader")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.default=function(e,t){e.focus(),(0,r.default)(e,(function(){e.getSelectedRegions().forEach((function(n){(0,o.safeInstanceOf)(n.rootNode,"HTMLTableCellElement")&&((0,o.setColor)(n.rootNode,t,!0,e.isDarkMode(),!0),(0,o.saveTableCellMetadata)(n.rootNode,{bgColorOverride:!0}))}))}),"applyCellShading")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CursorFeatures=void 0;var r=n(0),o={keys:[37,39],allowFunctionKeys:!0,shouldHandleEvent:function(e,t,n){var o,i;if(!(n&&(o=t.getSelectionRange())&&o.collapsed&&(i=r.Position.getStart(o))&&t.isPositionAtBeginning(i)))return!1;var a="rtl"==(0,r.getComputedStyle)(i.element,"direction"),l=e.rawEvent;return!a&&37==l.which||a&&39==l.which},handleEvent:function(e){e.rawEvent.preventDefault()},defaultDisabled:!r.Browser.isChrome};t.CursorFeatures={noCycleCursorMove:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntityFeatures=void 0;var r=n(0),o={keys:[13],shouldHandleEvent:function(e,t){return a(e,t)},handleEvent:function(e,t){a(e,t,1)}},i={keys:[27],shouldHandleEvent:function(e,t){return a(e,t)},handleEvent:function(e,t){a(e,t,3)}};function a(e,t,n){var o=(0,r.cacheGetEventData)(e,"READONLY_ENTITY_ELEMENT",(function(){var n=e.rawEvent.target,o=n&&t.getElementAtCursor((0,r.getEntitySelector)(),n);return o&&!o.isContentEditable?o:null}));return o&&void 0!==n&&t.triggerPluginEvent(15,{operation:n,rawEvent:e.rawEvent,entity:(0,r.getEntityFromElement)(o)}),o}var l={keys:[13],shouldHandleEvent:function(e,t){return d(e,t,!0,!1)},handleEvent:function(e,t){var n;e.rawEvent.preventDefault();var o=t.getSelectionRange(),i=r.Position.getEnd(o).normalize().node,a=t.getDocument().createElement("BR");i.parentNode.insertBefore(a,i.nextSibling);var l,s=t.getBlockElementAtNode(i);s&&(l=s.collapseToSingleElement(),null===(n=a.parentNode)||void 0===n||n.removeChild(a)),t.getSelectionRange().deleteContents(),l.nextSibling&&t.select(l.nextSibling,0)}},s={keys:[8],shouldHandleEvent:function(e,t){return d(e,t,!1,!0)},handleEvent:function(e,t){d(e,t,!1,!0,5)}},u={keys:[46],shouldHandleEvent:function(e,t){return d(e,t,!0,!0)},handleEvent:function(e,t){d(e,t,!0,!0,4)}};function d(e,t,n,o,i){var a=(0,r.cacheGetEventData)(e,"NEIGHBOR_ENTITY_ELEMENT_"+n+"_"+o,(function(){var e=t.getSelectionRange();if(!e||o&&!e.collapsed)return null;e.commonAncestorContainer.normalize();var i=r.Position.getEnd(e).normalize(),a=null;if(0==i.offset||i.isAtEnd){var l=t.getBodyTraverser(i.node),s=n?0==i.offset?l.currentInlineElement:l.getNextInlineElement():i.isAtEnd?l.currentInlineElement:l.getPreviousInlineElement(),u=s&&s.getContainerNode();if(!o){var d=t.getBlockElementAtNode(i.node);d&&d.contains(u)||(u=null)}a=u&&t.getElementAtCursor((0,r.getEntitySelector)(),u)}return a}));return a&&void 0!==i&&t.triggerPluginEvent(15,{operation:i,rawEvent:e.rawEvent,entity:(0,r.getEntityFromElement)(a)}),a}t.EntityFeatures={clickOnEntity:o,escapeFromEntity:i,enterBeforeReadonlyEntity:l,backspaceAfterEntity:s,deleteBeforeEntity:u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListFeatures=void 0;var r=n(246),o=n(247),i=n(9),a=n(0),l=(0,a.createObjectDefinition)({orderedStyleType:(0,a.createNumberDefinition)(!0,void 0,1,20),unorderedStyleType:(0,a.createNumberDefinition)(!0,void 0,1,9)},!0,!0),s=function(e){return function(t,n){var r=t.rawEvent,o=r.keyCode,i=r.altKey,a=r.shiftKey,l=r.ctrlKey,s=r.metaKey;return!l&&!s&&(9===o?!i&&a===!e:a&&i&&o===(e?39:37))&&P(t,n)}},u=function(e){return function(t,n){var r=9!==t.rawEvent.keyCode&&"rtl"==(0,a.getComputedStyle)(n.getElementAtCursor(),"direction");(0,i.setIndentation)(n,r==e?1:0),t.rawEvent.preventDefault()}},d={keys:[9,39],shouldHandleEvent:s(!0),handleEvent:u(!0),allowFunctionKeys:!0},c={keys:[9,37],shouldHandleEvent:s(!1),handleEvent:u(!1),allowFunctionKeys:!0},f={keys:[8],shouldHandleEvent:function(e,t){var n=t.getElementAtCursor("LI",null,e),r=t.getSelectionRange();return n&&(null==r?void 0:r.collapsed)&&(0,a.isPositionAtBeginningOf)(a.Position.getStart(r),n)},handleEvent:function(e,t){var n=t.getElementAtCursor("LI",null,e);n.previousSibling?(0,i.blockFormat)(t,(function(r,o,i){var l=(0,a.createVListFromRegion)(r,!1,n);l.setIndentation(o,i,1,!0),l.writeBack(t.isFeatureEnabled("ReuseAllAncestorListElements")),e.rawEvent.preventDefault()})):O(e,t)},defaultDisabled:!0},h={keys:[8],shouldHandleEvent:function(e,t){var n=t.getElementAtCursor("LI",null,e);return n&&(0,a.isNodeEmpty)(n)&&!n.previousSibling&&!n.getElementsByTagName("blockquote").length},handleEvent:O},p={keys:[46],shouldHandleEvent:function(e,t){if(t.getElementAtCursor("LI",null,e))return!1;var n=a.Position.getEnd(t.getSelectionRange()).isAtEnd?function(e,t){return(0,a.cacheGetEventData)(e,"nextSibling",(function(){var e,n=t.getSelectionRange(),r=a.Position.getEnd(n).normalize(),o=t.getBodyTraverser(r.node);return null===(e=null==o?void 0:o.getNextBlockElement())||void 0===e?void 0:e.getStartNode()}))}(e,t):null;return t.getElementAtCursor("LI",n,e)},handleEvent:function(e,t){var n=w(t);t.runAsync((function(e){return(0,i.commitListChains)(e,n)}))}},g={keys:[13],shouldHandleEvent:function(e,t){var n=t.getElementAtCursor("LI",null,e);return!e.rawEvent.shiftKey&&n&&(0,a.isNodeEmpty)(n)},handleEvent:function(e,t){t.addUndoSnapshot((function(){return O(e,t,!1)}),null,!0)},defaultDisabled:!a.Browser.isIE&&!a.Browser.isChrome};function v(e){return/^(\*|-|[0-9]{1,2}\.|[0-9]{1,2}\>|[0-9]{1,2}\)|[0-9]{1,2}\-|\([0-9]{1,2}\))$/.test(e)}var m={keys:[32],shouldHandleEvent:function(e,t){if(!P(e,t)&&!t.isFeatureEnabled("AutoFormatList")){var n=t.getContentSearcherOfCursor(e);return v(n.getSubStringBefore(4))&&!n.getNearestNonTextInlineElement()}return!1},handleEvent:function(e,t){t.insertContent("&nbsp;"),e.rawEvent.preventDefault(),t.addUndoSnapshot((function(){var e,n,r=t.getContentSearcherOfCursor(),o=r.getSubStringBefore(4),a=r.getRangeFromText(o,!0);if(a){if(0==o.indexOf("*")||0==o.indexOf("-"))T(t,a),(0,i.toggleBullet)(t);else if(v(o))T(t,a),(0,i.toggleNumbering)(t);else if((n=t.getSelectedRegions())&&1==n.length){var l=parseInt(o);T(t,a),(0,i.toggleNumbering)(t,l)}}else;null===(e=r.getRangeFromText(o,!0))||void 0===e||e.deleteContents()}),null,!0)}},b={keys:[32],shouldHandleEvent:function(e,t){return!(P(e,t)||!t.isFeatureEnabled("AutoFormatList"))&&_(e,t,r.default,2)},handleEvent:function(e,t){t.insertContent("&nbsp;"),e.rawEvent.preventDefault(),t.addUndoSnapshot((function(){var e,n=t.getContentSearcherOfCursor(),o=n.getSubStringBefore(5),a=n.getRangeFromText(o,!0),l=(0,r.default)(o);a&&(T(t,a),(0,i.toggleBullet)(t,l,"autoToggleList")),null===(e=n.getRangeFromText(o,!0))||void 0===e||e.deleteContents()}),null,!0)}},y={keys:[32],shouldHandleEvent:function(e,t){return!(P(e,t)||!t.isFeatureEnabled("AutoFormatList"))&&_(e,t,o.default,1)},handleEvent:function(e,t){t.insertContent("&nbsp;"),e.rawEvent.preventDefault(),t.addUndoSnapshot((function(){var e,n=t.getContentSearcherOfCursor(),r=n.getSubStringBefore(5),a=n.getRangeFromText(r,!0);if(a){var l=E(r)?1:parseInt(r),s=C(t,a),u=(0,o.default)(r);T(t,a),(0,i.toggleNumbering)(t,s&&1!==l?void 0:l,u,"autoToggleList")}null===(e=n.getRangeFromText(r,!0))||void 0===e||e.deleteContents()}),null,!0)}},C=function(e,t){var n=e.getBodyTraverser(null==t?void 0:t.startContainer).getPreviousBlockElement(),r=null==n?void 0:n.getEndNode();return"LI"===(0,a.getTagOfNode)(r)?r:void 0},E=function(e){var t=parseInt(e);if(t&&1===t)return 1;var n=e.replace(/\(|\)|\-|\./g,"").trim();return 1===n.length&&["i","a","I","A"].indexOf(n)>-1?1:void 0},S={keys:[13,9,46,8,258],shouldHandleEvent:function(e,t){return t.queryElements("li",1).filter((function(e){return!e.getElementsByTagName("blockquote").length})).length>0},handleEvent:function(e,t){var n=w(t);t.runAsync((function(e){return(0,i.commitListChains)(e,n)}))}};function w(e){return a.VListChain.createListChains(e.getSelectedRegions())}function T(e,t){var n=e.getBlockElementAtNode(t.startContainer),r=null==n?void 0:n.getEndNode();if(r&&"BR"!=(0,a.getTagOfNode)(r)){var o=e.getDocument().createElement("BR");(0,a.isBlockElement)(r)?r.appendChild(o):r.parentNode.insertBefore(o,r.nextSibling),e.select(t.startContainer,t.startOffset)}}function O(e,t,n){void 0===n&&(n=!0);var r=P(e,t);if(r){var o=r[0],l=(0,a.getTagOfNode)(o);"UL"!=l&&"OL"!=l||(0,i.toggleListType)(t,"UL"==l?2:1,null,n),t.focus(),e.rawEvent.preventDefault()}}function P(e,t){var n=t.getElementAtCursor("LI,TABLE",null,e),r=n&&"LI"==(0,a.getTagOfNode)(n)&&t.getElementAtCursor("UL,OL",n);return r?[r,n]:null}function _(e,t,n,r){var o=t.getContentSearcherOfCursor(e),i=o.getSubStringBefore(4),s=t.getBlockTraverser(),u=s&&s.currentBlockElement?s.currentBlockElement.getTextContent():null,d=u&&u===i,c=w(t),f=function(e,t,n){var r=1===n?"orderedStyleType":"unorderedStyleType",o=C(e,t),i=o?(0,a.findClosestElementAncestor)(o,void 0,1===n?"ol":"ul"):null,s=i?(0,a.getMetadata)(i,l):null;return s?s[r]:null}(t,o.getRangeFromText(i,!0),r),h=E(i),p=n(i,c,f),g=h||!f||f===p||2===r;return d&&!o.getNearestNonTextInlineElement()&&p&&g}var M={keys:[8],shouldHandleEvent:function(e,t){var n,r,o=t.getElementAtCursor();if(o){var i=null===(n=t.getBlockElementAtNode(o))||void 0===n?void 0:n.getStartNode(),l=null!==(r=null==i?void 0:i.previousElementSibling)&&void 0!==r?r:null;if(x(l)){var s=t.getSelectionRange(),u=t.getContentSearcherOfCursor(e),d=null==u?void 0:u.getSubStringBefore(4),c=null==u?void 0:u.getNearestNonTextInlineElement();if(s&&s.collapsed&&""===d&&!c){var f=null==i?void 0:i.nextElementSibling,h=x(f)?f:null==f?void 0:f.firstChild;if(x(h)&&(0,a.getTagOfNode)(l)==(0,a.getTagOfNode)(h)){var p=(0,a.cacheGetEventData)(e,"previousBlock",(function(){return l})),g=(0,a.cacheGetEventData)(e,"nextBlock",(function(){return h}));return!!p&&!!g}}}}return!1},handleEvent:function(e,t){t.runAsync((function(t){var n=(0,a.cacheGetEventData)(e,"previousBlock",(function(){return null})),r=(0,a.cacheGetEventData)(e,"nextBlock",(function(){return null})),o=t.getSelectionRange();if(n&&r&&o){var i=new a.VList(n);i.mergeVList(new a.VList(r));var l=t.getDocument().createElement("span");l.id="restoreRange",o.insertNode(l),i.writeBack(),(l=t.queryElements("#restoreRange")[0]).parentElement&&(t.select(new a.Position(l,-3)),l.parentElement.removeChild(l))}}))}};function x(e){return!!e&&((0,a.safeInstanceOf)(e,"HTMLOListElement")||(0,a.safeInstanceOf)(e,"HTMLUListElement"))}t.ListFeatures={autoBullet:m,indentWhenTab:d,outdentWhenShiftTab:c,outdentWhenBackspaceOnEmptyFirstLine:h,outdentWhenEnterOnEmptyLine:g,mergeInNewLineWhenBackspaceOnFirstChar:f,maintainListChain:S,maintainListChainWhenDelete:p,autoNumberingList:y,autoBulletList:b,mergeListOnBackspaceAfterList:M}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={"*":1,"-":2,"--":3,"->":5,"--\x3e":8,"=>":6,">":4,"—":7};t.default=function(e){var t=e.trim();return r[t]||null}},function(e,t,n){"use strict";var r,o,i,a,l,s;Object.defineProperty(t,"__esModule",{value:!0});var u=n(248),d={".":1,"-":2,")":3},c=[13,16,15,14],f=[17,20,19,18],h=["1","a","A","I","i"],p=["i","v","x","l","c","d","m"],g=["I","V","X","L","C","D","M"],v=((r={})[1]=function(e){return E[e]||null},r[2]=function(e){return C[e]||null},r[3]=function(e){return y[e]||null},r[4]=function(e){return b[e]||null},r[5]=function(e){return m[e]||null},r),m=((o={})[1]=17,o[2]=20,o[3]=18,o[4]=19,o),b=((i={})[1]=13,i[2]=16,i[3]=14,i[4]=15,i),y=((a={})[1]=9,a[2]=12,a[3]=10,a[4]=11,a),C=((l={})[1]=5,l[2]=8,l[3]=6,l[4]=7,l),E=((s={})[1]=1,s[2]=2,s[3]=3,s[4]=4,s),S=function(e,t,n){var r=t?4:d[e[e.length-1]];if(r){var o=function(e,t){if(!isNaN(parseInt(e)))return 1;if(/[a-z]+/g.test(e)){if(c.indexOf(t)>-1&&p.indexOf(e[0])>-1||!t&&"i"===e)return 4;if(t||!t&&"a"===e)return 2}else if(/[A-Z]+/g.test(e)){if(f.indexOf(t)>-1&&g.indexOf(e[0])>-1||!t&&"I"===e)return 5;if(t||!t&&"A"===e)return 3}}(t?e.slice(1,-1):e.slice(0,-1),n);return o?v[o](r):null}return null};t.default=function(e,t,n){var r,o=e.trim(),i="("===o[0]&&")"===o[o.length-1],a=i?o.slice(1,-1):o.slice(0,-1),l=parseInt(a),s=isNaN(l)?(0,u.default)(a):l;return!s||s<1||t&&s>1&&(t.length<1&&h.indexOf(a)<0||(null==t?void 0:t.length)>0&&!(null===(r=t[t.length-1])||void 0===r?void 0:r.canAppendAtCursor(s)))?null:function(e){return Number(e)||/^[A-Za-z\s]*$/.test(e)}(a)?S(o,i,n):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.toLocaleLowerCase();if(t){var n=t.length-1;return 26*n+t.charCodeAt(n)-96}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownFeatures=void 0;var r=n(0);function o(e,t,n,o){return{keys:[e],shouldHandleEvent:function(e,n){return e.rawEvent.shiftKey===o&&!!i(e,n,t)},handleEvent:function(e,o){o.runAsync((function(o){!function(e,t,n,o){t.addUndoSnapshot((function(){var a=i(e,t,n),l=new r.Position(a.endContainer,-1),s=a.endOffset+1<=l.offset;if(a&&s){var u=a.cloneRange();u.setStart(u.startContainer,u.startOffset+1);var d=u.extractContents().textContent,c=t.getDocument().createTextNode(d),f=(0,r.wrap)(c,o);a.setEnd(a.endContainer,a.endOffset+1),a.deleteContents();var h=t.getDocument().createTextNode("​");a.insertNode(h),a.insertNode(f),t.select(h,-1)}}),"Format",!0)}(e,o,t,n)}))}}}function i(e,t,n){return(0,r.cacheGetEventData)(e,"MARKDOWN_RANGE",(function(){var o,i,a=t.getContentSearcherOfCursor(e);return null==a||a.forEachTextInlineElement((function(e){if(i&&o)return!0;var t=e.getTextContent();if(0==t[t.length-1].trim().length)return!1;var r=e.getParentBlock().getTextContent();if(r[r.length-1].trim()===n)return!1;if(i||(i=e.getStartPosition().move(t.length)),t[0]==n)o=e.getStartPosition();else for(var a=t.length-1;a>0;a--){if(o)return!0;if(t[a]==n&&0==t[a-1].trim().length)return o=e.getStartPosition().move(a),!0}})),!!o&&!!i&&(0,r.createRange)(o,i)}))}var a=o(56,"*","b",!0),l=o(189,"_","i",!0),s=o(192,"~","s",!0),u=o(192,"`","code",!1);t.MarkdownFeatures={markdownBold:a,markdownItalic:l,markdownStrikethru:s,markdownInlineCode:u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteFeatures=void 0;var r=n(9),o=n(0),i="BLOCKQUOTE",a=[i,"LI","TD","TH"].join(","),l={keys:[8],shouldHandleEvent:function(e,t){var n=u(e,t);return n&&(0,o.isNodeEmpty)(n)&&!n.previousSibling},handleEvent:d},s={keys:[13],shouldHandleEvent:function(e,t){var n=u(e,t);return!e.rawEvent.shiftKey&&n&&(0,o.isNodeEmpty)(n)},handleEvent:function(e,t){return t.addUndoSnapshot((function(){return d(e,t)}),null,!0)}};function u(e,t){return(0,o.cacheGetEventData)(e,"QUOTE_CHILD",(function(){var e=t.getElementAtCursor(a);if(e&&(0,o.getTagOfNode)(e)==i){var n=t.getFocusedPosition(),r=n&&t.getBlockElementAtNode(n.normalize().node);if(r){var l=r.getStartNode()==e?r.getStartNode():r.collapseToSingleElement();return(0,o.isNodeEmpty)(l)?l:null}}return null}))}function d(e,t){t.addUndoSnapshot((function(){var n,a,l=u(e,t);(0,o.getTagOfNode)(l)==i&&(l=(0,o.wrap)((0,o.toArray)(l.childNodes))),n=(0,o.splitBalancedNodeRange)(l),a=c(n);var s=(0,o.unwrap)(n);t.select(l,0),a&&((0,o.safeInstanceOf)(s,"HTMLLIElement")&&s.style.removeProperty("color"),(0,r.clearFormat)(t))})),e.rawEvent.preventDefault()}var c=function(e){return!!(e&&(0,o.safeInstanceOf)(e,"HTMLQuoteElement")&&e.style.borderLeft&&e.style.borderColor&&e.style.paddingLeft&&e.style.color)};t.QuoteFeatures={unquoteWhenBackspaceOnEmptyFirstLine:l,unquoteWhenEnterOnEmptyLine:s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShortcutFeatures=void 0;var r=n(0),o=n(9);function i(e,t,n,r){return void 0===r&&(r=!1),r?null:{winKey:e,macKey:t,action:n}}var a=[i(4162,8258,o.toggleBold),i(4169,8265,o.toggleItalic),i(4181,8277,o.toggleUnderline),i(4128,8224,o.clearFormat),i(4186,8282,(function(e){return e.undo()})),i(26,26,(function(e){return e.undo()}),r.Browser.isMac),i(4185,24666,(function(e){return e.redo()})),i(4286,8382,o.toggleBullet),i(4287,8383,o.toggleNumbering),i(20670,24766,(function(e){return(0,o.changeFontSize)(e,0)})),i(20668,24764,(function(e){return(0,o.changeFontSize)(e,1)}))].filter((function(e){return!!e})),l={allowFunctionKeys:!0,keys:[66,73,85,89,90,188,190,191,32,8],shouldHandleEvent:s,handleEvent:function(e,t){var n=s(e);n&&(n.action(t),e.rawEvent.preventDefault(),e.rawEvent.stopPropagation())}};function s(e){return(0,r.cacheGetEventData)(e,"DEFAULT_SHORT_COMMAND",(function(){var t=e.rawEvent,n=0!=e.eventType||t.getModifierState("AltGraph")?0:t.which|(t.metaKey&&8192)|(t.shiftKey&&16384)|(t.ctrlKey&&4096)|(t.altKey&&18);return n&&a.filter((function(e){return(r.Browser.isMac?e.macKey:e.winKey)==n}))[0]}))}t.ShortcutFeatures={defaultShortcut:l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructuredNodeFeatures=void 0;var r=n(0),o={TD:"TABLE",TH:"TABLE",LI:"OL,UL"},i=(0,r.getObjectKeys)(o).join(","),a={keys:[13],shouldHandleEvent:l,handleEvent:function(e,t){var n=l(e,t),o=(0,r.createElement)(1,t.getDocument());t.addUndoSnapshot((function(){n.parentNode.insertBefore(o,n),"TABLE"==(0,r.getTagOfNode)(n)&&t.select(new r.Position(o,0).normalize())})),e.rawEvent.preventDefault()},defaultDisabled:!0};function l(e,t){return(0,r.cacheGetEventData)(e,"FIRST_STRUCTURE",(function(){var n=e.rawEvent.shiftKey?null:t.getElementAtCursor(i);if(n){var a=t.getSelectionRange();if(a&&a.collapsed&&(0,r.isPositionAtBeginningOf)(r.Position.getStart(a),n)&&!t.getBodyTraverser(n).getPreviousBlockElement())return t.getElementAtCursor(o[(0,r.getTagOfNode)(n)])}return null}))}t.StructuredNodeFeatures={insertLineBeforeStructuredNodeFeature:a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableFeatures=void 0;var r=n(9),o=n(0),i={keys:[9],shouldHandleEvent:function(e,t){return s(e,t)&&!u(e,t)},handleEvent:function(e,t){for(var n=e.rawEvent.shiftKey,o=d(e,s(e,t)),i=n?-1:1,a=o.row,l=o.col+i;;l+=i){if(l<0||l>=o.cells[a].length){if((a+=i)<0){t.select(o.table,-2);break}if(a>=o.cells.length){(0,r.editTable)(t,1);break}l=n?o.cells[a].length-1:0}var u=o.getCell(a,l);if(u.td){t.select(u.td,0);break}}e.rawEvent.preventDefault()}},a={keys:[9],shouldHandleEvent:function(e,t){return s(e,t)&&u(e,t)},handleEvent:function(e,t){e.rawEvent.preventDefault(),t.addUndoSnapshot((function(){var n=e.rawEvent.shiftKey,o=t.getSelectionRangeEx(),i=s(e,t),a=d(e,i);n&&t.getElementAtCursor("blockquote",a.table,e)?(0,r.setIndentation)(t,1):n||(0,r.setIndentation)(t,0),t.select(o.table,o.coordinates)}))}},l={keys:[38,40],shouldHandleEvent:function(e,t){return s(e,t)&&!u(e,t)},handleEvent:function(e,t){var n,r=s(e,t),i=new o.VTable(r),a=38==e.rawEvent.which,l=a?-1:1,u=e.rawEvent.shiftKey,d=null===(n=t.getDocument().defaultView)||void 0===n?void 0:n.getSelection(),c=null;if(d){for(var f=d.anchorNode,h=d.anchorOffset,p=i.row;p>=0&&p<i.cells.length;p+=l){var g=i.getCell(p,i.col);if(g.td&&g.td!=r){c=g.td;break}}t.runAsync((function(e){var t,n=e.getElementAtCursor();if((0,o.contains)(i.table,n)&&!(0,o.contains)(r,n,!0)){var l=c?new o.Position(c,0):new o.Position(i.table,a?-2:-3);if(u){l=1==l.node.nodeType&&(0,o.isVoidHtmlElement)(l.node)?new o.Position(l.node,l.isAtEnd?-3:-2):l;var s=null===(t=e.getDocument().defaultView)||void 0===t?void 0:t.getSelection();null==s||s.setBaseAndExtent(f,h,l.node,l.offset)}else e.select(l)}}))}},defaultDisabled:!o.Browser.isChrome&&!o.Browser.isSafari};function s(e,t){return(0,o.cacheGetEventData)(e,"TABLE_CELL_FOR_TABLE_FEATURES",(function(){var e=t.getFocusedPosition(),n=e&&t.getElementAtCursor("TD,TH,LI",e.node);return n&&("LI"==(0,o.getTagOfNode)(n)?null:n)}))}function u(e,t){return(0,o.cacheGetEventData)(e,"WHOLE_TABLE_SELECTED_FOR_FEATURES",(function(){var n=s(e,t),r=d(e,n),i=t.getSelectionRangeEx();return 1==i.type&&(0,o.isWholeTableSelected)(r,i.coordinates)}))}function d(e,t){return(0,o.cacheGetEventData)(e,"VTABLE_FOR_TABLE_FEATURES",(function(){return new o.VTable(t)}))}t.TableFeatures={tabInTable:i,upDownInTable:l,indentTableOnTab:a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextFeatures=void 0;var r=n(9),o=n(0),i={keys:[9],shouldHandleEvent:function(e,t){if(t.isFeatureEnabled("TabKeyTextFeatures")&&!e.rawEvent.shiftKey){var n=t.getDocument().activeElement,r=t.getElementAtCursor("LI,TABLE",null,e),i=t.getElementAtCursor((0,o.getEntitySelector)(),void 0,e);return!r&&(i?i.isContentEditable:n.isContentEditable)}return!1},handleEvent:function(e,t){var n=t.getSelectionRangeEx();0==n.type&&(t.addUndoSnapshot((function(){if(n.areAllCollapsed)u(t,e);else{var i=n.ranges,a=i[0];if(l(t,a))(0,r.setIndentation)(t,0);else{var s=(0,o.createRange)(a.startContainer,a.startOffset);i.forEach((function(e){return e.deleteContents()})),t.select(s),u(t,e)}}})),e.rawEvent.preventDefault())}},a={keys:[9],shouldHandleEvent:function(e,t){if(e.rawEvent.shiftKey&&t.isFeatureEnabled("TabKeyTextFeatures")){var n=t.getSelectionRangeEx();return 0==n.type&&!n.areAllCollapsed&&t.getElementAtCursor("blockquote",null,e)&&!t.getElementAtCursor("LI,TABLE",null,e)&&l(t,n.ranges[0])}return!1},handleEvent:function(e,t){t.addUndoSnapshot((function(){return(0,r.setIndentation)(t,1)})),e.rawEvent.preventDefault()}};function l(e,t){var n=!1,r=o.Position.getStart(t),i=o.Position.getEnd(t),a=e.getBlockElementAtNode(r.node),l=e.getBlockElementAtNode(i.node);if(!a||!l)return!1;if(a.equals(l)){var u=new o.Position(a.getStartNode(),0),d=new o.Position(a.getEndNode(),-1),c=(0,o.createRange)(u,o.Position.getStart(t)),f=(0,o.createRange)(o.Position.getEnd(t),d);return!n&&s(c)&&s(f)&&(n=!0),n}return!0}function s(e){return""==e.toString()&&0==(0,o.queryElements)(e.commonAncestorContainer,"img,table,ul,ol",null,2,e).length}function u(e,t){for(var n,r=e.getDocument().createElement("span"),i=6-e.getContentSearcherOfCursor(t).getSubStringBefore(Number.MAX_SAFE_INTEGER).length%6,a="",l=0;l<i;l++)a+="&ensp;";e.insertNode(r),r.nextElementSibling&&"A"==(0,o.getTagOfNode)(r.nextElementSibling)&&((n=e.getDocument().createElement("span")).textContent=" ",e.insertNode(n),e.select((0,o.createRange)(n,-2))),e.insertContent(a,{position:5,range:(0,o.createRange)(r,0),updateCursor:!1}),e.select((0,o.createRange)(r,-3)),n&&e.deleteNode(n)}t.TextFeatures={indentWhenTabText:i,outdentWhenTabText:a,autoHyphen:{keys:[],shouldHandleEvent:function(e,t){return!1},handleEvent:function(e,t){return!1},defaultDisabled:!0}}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(256),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContextMenu=void 0;var r=n(257);Object.defineProperty(t,"ContextMenu",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e){var t=this;this.options=e,this.container=null,this.editor=null,this.isMenuShowing=!1,this.onDismiss=function(){var e,n;t.container&&t.isMenuShowing&&(null===(n=(e=t.options).dismiss)||void 0===n||n.call(e,t.container),t.isMenuShowing=!1)}}return e.prototype.getName=function(){return"ContextMenu"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){var e;this.onDismiss(),(null===(e=this.container)||void 0===e?void 0:e.parentNode)&&(this.container.parentNode.removeChild(this.container),this.container=null),this.editor=null},e.prototype.onPluginEvent=function(e){if(16==e.eventType&&e.items.length>0){var t=e.rawEvent,n=e.items;this.onDismiss(),this.options.allowDefaultMenu||t.preventDefault(),this.initContainer(t.pageX,t.pageY)&&(this.options.render(this.container,n,this.onDismiss),this.isMenuShowing=!0)}},e.prototype.initContainer=function(e,t){var n,o;return!this.container&&this.editor&&(this.container=(0,r.createElement)(5,this.editor.getDocument()),this.editor.getDocument().body.appendChild(this.container)),null===(n=this.container)||void 0===n||n.style.setProperty("left",e+"px"),null===(o=this.container)||void 0===o||o.style.setProperty("top",t+"px"),!!this.container},e}();t.default=o},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(259),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomReplace=void 0;var r=n(260);Object.defineProperty(t,"CustomReplace",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n,r){return{sourceString:e,replacementHTML:t,matchSourceCaseSensitive:n,shouldReplace:r}},o=[r(":)","🙂",!0),r(";)","😉",!0),r(":O","😲",!0),r(":o","😯",!0),r("<3","❤️",!0)],i=function(){function e(e){void 0===e&&(e=o),this.longestReplacementLength=null,this.editor=null,this.replacements=null,this.replacementEndCharacters=null,this.updateReplacements(e)}return e.prototype.updateReplacements=function(e){var t;this.replacements=e,this.longestReplacementLength=(t=this.replacements,Math.max.apply(null,t.map((function(e){return e.sourceString.length})))),this.replacementEndCharacters=function(e){for(var t=new Set,n=0,r=e;n<r.length;n++){var o=r[n],i=o.sourceString;if(0!=i.length){var a=i[i.length-1];o.matchSourceCaseSensitive?t.add(a):(t.add(a.toLocaleLowerCase()),t.add(a.toLocaleUpperCase()))}}return t}(this.replacements)},e.prototype.getName=function(){return"CustomReplace"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null},e.prototype.onPluginEvent=function(e){var t,n=this;if(3==e.eventType&&this.editor&&!this.editor.isInIME()&&e.rawEvent.data&&(null===(t=this.replacementEndCharacters)||void 0===t?void 0:t.has(e.rawEvent.data))){var r=this.editor.getContentSearcherOfCursor(e);if(r&&null!=this.longestReplacementLength){var o=r.getSubStringBefore(this.longestReplacementLength),i=this.getMatchingReplacement(o);if(i&&(!i.shouldReplace||!r||i.shouldReplace(i,r.getWordBefore(),this.editor))){var a=r.getSubStringBefore(i.sourceString.length),l=r.getRangeFromText(a,!0),s=this.editor.getDocument().createElement("span");s.innerHTML=this.editor.getTrustedHTMLHandler()(i.replacementHTML);var u=1==s.childNodes.length?s.childNodes[0]:s;l&&this.editor.addUndoSnapshot((function(){var e;l.deleteContents(),l.insertNode(u),null===(e=n.editor)||void 0===e||e.select(u,-1)}),void 0,!0)}}}},e.prototype.getMatchingReplacement=function(e){if(0==e.length||!this.replacements)return null;for(var t=e.replace(/\s/g," "),n=t.toLocaleLowerCase(),r=0,o=this.replacements;r<o.length;r++){var i=o[r],a=i.matchSourceCaseSensitive?[t,i.sourceString]:[n,i.sourceString.toLocaleLowerCase()],l=a[0],s=a[1];if(l.substring(l.length-s.length)==s)return i}return null},e}();t.default=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(262),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CutPasteListChain=void 0;var r=n(263);Object.defineProperty(t,"CutPasteListChain",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(0),i=function(){function e(){var e=this;this.chains=null,this.expectedChangeSource=null,this.editor=null,this.disposer=null,this.onDrop=function(){e.cacheListChains("Drop")}}return e.prototype.getName=function(){return"CutPasteListChain"},e.prototype.initialize=function(e){this.editor=e,this.disposer=this.editor.addDomEventHandler("drop",this.onDrop)},e.prototype.dispose=function(){var e;null===(e=this.disposer)||void 0===e||e.call(this),this.disposer=null,this.editor=null},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 9:e.isCut&&this.cacheListChains("Cut");break;case 10:this.cacheListChains("Paste");break;case 7:this.chains&&this.chains.length>0&&this.expectedChangeSource==e.source&&this.editor&&((0,r.commitListChains)(this.editor,this.chains),this.chains=null,this.expectedChangeSource=null)}},e.prototype.cacheListChains=function(e){var t,n=null===(t=this.editor)||void 0===t?void 0:t.getSelectedRegions();n&&(this.chains=o.VListChain.createListChains(n),this.expectedChangeSource=e)},e}();t.default=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(265),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HyperLink=void 0;var r=n(266);Object.defineProperty(t,"HyperLink",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e,t,n){var r=this;void 0===e&&(e=function(e){return e}),this.getTooltipCallback=e,this.target=t,this.onLinkClick=n,this.originalHref=null,this.trackedLink=null,this.editor=null,this.disposer=null,this.onMouse=function(e){var t,n,o=null===(t=r.editor)||void 0===t?void 0:t.getElementAtCursor("a[href]",e.target),i=o&&r.tryGetHref(o);i&&(null===(n=r.editor)||void 0===n||n.setEditorDomAttribute("title","mouseover"==e.type?r.getTooltipCallback(i,o):null))},this.onBlur=function(e){r.trackedLink&&r.updateLinkHrefIfShouldUpdate(),r.resetLinkTracking()}}return e.prototype.getName=function(){return"Hyperlink"},e.prototype.initialize=function(e){this.editor=e,this.disposer=e.addDomEventHandler({mouseover:this.onMouse,mouseout:this.onMouse,blur:this.onBlur})},e.prototype.dispose=function(){this.disposer&&(this.disposer(),this.disposer=null),this.editor=null},e.prototype.onPluginEvent=function(e){var t,n,o;if(6==e.eventType||2==e.eventType&&(!this.isContentEditValue(e.rawEvent)||32==e.rawEvent.which)||7==e.eventType){var i,a=(i=null===(t=this.editor)||void 0===t?void 0:t.getElementAtCursor("A[href]",void 0,e))&&i!==this.trackedLink||2==e.eventType||7==e.eventType;this.trackedLink&&(a||this.tryGetHref(this.trackedLink)!==this.originalHref)&&(a&&this.updateLinkHrefIfShouldUpdate(),this.resetLinkTracking()),!this.trackedLink&&i&&this.doesLinkDisplayMatchHref(i)&&(this.trackedLink=i,this.originalHref=this.tryGetHref(i))}if(6==e.eventType&&(i=null===(n=this.editor)||void 0===n?void 0:n.getElementAtCursor("A",e.rawEvent.srcElement))){if(this.onLinkClick&&!1!==this.onLinkClick(i,e.rawEvent))return;var l;if((l=this.tryGetHref(i))&&(0,r.isCtrlOrMetaPressed)(e.rawEvent)&&0===e.rawEvent.button){e.rawEvent.preventDefault();try{var s=this.target||"_blank",u=null===(o=this.editor)||void 0===o?void 0:o.getDocument().defaultView;null==u||u.open(l,s)}catch(e){}}}},e.prototype.tryGetHref=function(e){try{return e?e.href:null}catch(e){return null}},e.prototype.isContentEditValue=function(e){return(0,r.isCharacterValue)(e)||8==e.which||46==e.which},e.prototype.updateLinkHrefIfShouldUpdate=function(){this.trackedLink&&!this.doesLinkDisplayMatchHref(this.trackedLink)&&this.updateLinkHref()},e.prototype.resetLinkTracking=function(){this.trackedLink=null,this.originalHref=""},e.prototype.doesLinkDisplayMatchHref=function(e){if(e){var t=e.innerText.trim().replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),n=new RegExp("^(?:https?:\\/\\/)?"+t+"\\/?","i"),r=this.tryGetHref(e);if(null!==r)return n.test(r)}return!1},e.prototype.updateLinkHref=function(){var e,t=this;if(this.trackedLink){var n=(0,r.matchLink)(this.trackedLink.innerText.trim());null!==n&&(null===(e=this.editor)||void 0===e||e.addUndoSnapshot((function(){t.trackedLink.href=n.normalizedUrl})))}},e}();t.default=o},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(268),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetImage=t.isResizedTo=t.resizeByPercentage=t.canRegenerateImage=t.ImageEdit=void 0;var r=n(109);Object.defineProperty(t,"ImageEdit",{enumerable:!0,get:function(){return r.default}});var o=n(112);Object.defineProperty(t,"canRegenerateImage",{enumerable:!0,get:function(){return o.default}});var i=n(273);Object.defineProperty(t,"resizeByPercentage",{enumerable:!0,get:function(){return i.default}});var a=n(115);Object.defineProperty(t,"isResizedTo",{enumerable:!0,get:function(){return a.default}});var l=n(274);Object.defineProperty(t,"resetImage",{enumerable:!0,get:function(){return l.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(61);t.default=function(e,t){var n=t.angleRad,o=t.widthPx,i=t.heightPx,a=t.bottomPercent,l=t.leftPercent,s=t.rightPercent,u=t.topPercent,d=t.naturalWidth,c=t.naturalHeight,f=d*(1-l-s),h=c*(1-u-a),p=document.createElement("canvas"),g=(0,r.default)(t),v=g.targetWidth,m=g.targetHeight;p.width=v,p.height=m;var b=p.getContext("2d");return b.translate(v/2,m/2),b.rotate(n),b.drawImage(e,d*l,c*u,f,h,-o/2,-i/2,o,i),p.toDataURL("image/png",1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e){for(var t=e,n=0;t&&"BODY"!==(0,r.getTagOfNode)(t);){var o=parseInt(t.style.zIndex||getComputedStyle(t).zIndex,10);o&&(n=Math.max(n,o)),t=t.parentElement}return n}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getCropHTML=t.Cropper=void 0;var o=n(113),i=["w","e"],a=["s","n"],l={sw:0,nw:90,ne:180,se:270};function s(e,t,n,r,o){var i=n*(1-r)-o,a=n*e+t;return Math.max(Math.min(a,i),0)/n}function u(){var e=[];return[0,1].forEach((function(t){return[0,1].forEach((function(n){e.push(function(e,t){return{tag:"div",style:"position:absolute;left:"+e+"px;bottom:"+e+"px;"+(0==t?"right:"+e+"px;height:"+(7-2*e)+"px;":"top:"+e+"px;width:"+(7-2*e)+"px;")+";background-color:"+(0==e?"white":"black")}}(t,n))}))})),e}t.Cropper={onDragStart:function(e){var t=e.editInfo;return r({},t)},onDragging:function(e,t,n,r,i){var a,l=e.editInfo,u=e.x,d=e.y,c=e.options;r=(a=(0,o.rotateCoordinate)(r,i,l.angleRad))[0],i=a[1];var f=l.widthPx,h=l.heightPx,p=l.leftPercent,g=l.rightPercent,v=l.topPercent,m=l.bottomPercent,b=c.minWidth,y=c.minHeight,C=1-p-g,E=1-v-m;if(C>0&&E>0){var S=f/C,w=h/E,T="e"!=u?s(n.leftPercent,r,S,g,b):p,O="w"!=u?s(n.rightPercent,-r,S,p,b):g,P="s"!=d?s(n.topPercent,i,w,m,y):v,_="n"!=d?s(n.bottomPercent,-i,w,v,y):m;return l.leftPercent=T,l.rightPercent=O,l.topPercent=P,l.bottomPercent=_,l.widthPx=S*(1-T-O),l.heightPx=w*(1-P-_),!0}return!1}},t.getCropHTML=function(){var e={tag:"div",style:"position:absolute;background-color:rgb(0,0,0,0.5);pointer-events:none",className:"r_cropO"},t={tag:"div",style:"position:absolute;overflow:hidden",className:"r_cropC",children:[]};return i.forEach((function(e){return a.forEach((function(n){return t.children.push(function(e,t){return{tag:"div",className:"r_cropH",style:"position:absolute;pointer-events:auto;cursor:"+t+e+"-resize;"+("w"==e?"left":"right")+":0;"+("n"==t?"top":"bottom")+":0;width:22px;height:22px;transform:rotate("+l[t+e]+"deg)",dataset:{x:e,y:t},children:u()}}(e,n))}))})),[t,e,e,e,e]}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getRotateHTML=t.Rotator=void 0;var o=180/Math.PI;function i(e){var t;return{tag:"svg",namespace:"http://www.w3.org/2000/svg",style:"width:16px;height:16px;margin: 8px 8px",children:[{tag:"path",namespace:"http://www.w3.org/2000/svg",attributes:(t={d:"M 10.5,10.0 A 3.8,3.8 0 1 1 6.7,6.3",transform:"matrix(1.1 1.1 -1.1 1.1 11.6 -10.8)"},t["fill-opacity"]="0",t.stroke=e,t)},{tag:"path",namespace:"http://www.w3.org/2000/svg",attributes:{d:"M12.0 3.648l.884-.884.53 2.298-2.298-.53z",stroke:e}}]}}t.Rotator={onDragStart:function(e){var t=e.editInfo;return r({},t)},onDragging:function(e,t,n,r,i){var a=e.editInfo,l=e.options,s=a.heightPx/2+31,u=s*Math.sin(n.angleRad)+r,d=s*Math.cos(n.angleRad)-i,c=Math.atan2(u,d);if(!t.altKey){var f=c*o;c=Math.round(f/l.minRotateDeg)*l.minRotateDeg/o}return a.angleRad!=c&&(a.angleRad=c,!0)}},t.getRotateHTML=function(e){var t=e.borderColor;return[{tag:"div",className:"r_rotateC",style:"position:absolute;left:50%;width:1px;background-color:"+t+";top:"+"-15px;height:15px;",children:[{tag:"div",className:"r_rotateH",style:"position:absolute;background-color:"+e.rotateHandleBackColor+";border:solid 1px "+t+";border-radius:50%;width:32px;height:32px;left:-16px;cursor:move;top:"+"-32px;",children:[i(t)]}]}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(110),o=n(114),i=n(115),a=n(34);t.default=function(e,t,n,l,s){var u,d,c,f=(0,a.getEditInfoFromImage)(t);(0,i.default)(t,n)||(u=t,d=t.src,c=function(){if(!e.isDisposed()&&e.contains(t)){var i=t.getAttribute("src"),a=(0,o.default)(f,n),u=a.width,d=a.height;f.widthPx=Math.max(u,l),f.heightPx=Math.max(d,s),e.addUndoSnapshot((function(){(0,r.default)(e,t,f,i,!0)}),"ImageResize")}},u.onload=function(){u.onload=null,u.onerror=null,c()},u.onerror=function(){u.onload=null,u.onerror=null,c()},u.src=d)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34);t.default=function(e,t){e.addUndoSnapshot((function(){t.style.width="",t.style.height="",t.style.maxWidth="100%",t.removeAttribute("width"),t.removeAttribute("height"),(0,r.deleteEditInfo)(t)}),"ImageResize")}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(276),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageResize=void 0;var r=n(277);Object.defineProperty(t,"ImageResize",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r,o,i){return void 0===t&&(t=10),void 0===n&&(n=10),void 0===r&&(r="#DB626C"),void 0===o&&(o=!1),void 0===i&&(i="img"),e.call(this,{minHeight:n,minWidth:t,borderColor:r,preserveRatio:o,imageSelector:i})||this}return o(t,e),t.prototype.showResizeHandle=function(e){this.setEditingImage(e,3)},t.prototype.hideResizeHandle=function(e){this.setEditingImage(null,e)},t}(n(109).default);t.default=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(279),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Paste=void 0;var r=n(280);Object.defineProperty(t,"Paste",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(281),o=n(282),i=n(283),a=n(284),l=n(287),s=n(288),u=n(293),d=n(300),c=n(301),f=n(303),h=n(16),p=function(){function e(e,t){void 0===e&&(e="SPAN"),void 0===t&&(t=!1),this.unknownTagReplacement=e,this.convertSingleImageBody=t}return e.prototype.getName=function(){return"Paste"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null},e.prototype.onPluginEvent=function(e){if(10==e.eventType){var t=e.fragment,n=e.sanitizingOption,p=this.editor.getTrustedHTMLHandler();switch((0,u.default)(e,this.convertSingleImageBody)){case 0:(0,s.default)(e);break;case 1:(0,i.default)(e,p);break;case 2:(0,l.default)(e,p);break;case 4:(0,a.default)(t);break;case 3:n.additionalTagReplacements[h.GOOGLE_SHEET_NODE_NAME]="*";break;case 6:(0,r.default)(e,p);break;case 5:(0,o.default)(t),(0,d.default)(t)}(0,f.default)(n),(0,c.default)(n),n.unknownTagReplacement=this.unknownTagReplacement}},e}();t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e,t){var n=e.fragment,o=e.clipboardData,i=o.html,a=o.image;if(i&&a){var l=(new DOMParser).parseFromString(t(i),"text/html");(0,r.moveChildNodes)(n,null==l?void 0:l.body)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);function o(e){if(e&&!e.nextSibling&&["OL","UL","MENU"].indexOf((0,r.getTagOfNode)(e))<0){var t=!1;if((0,r.toArray)(e.childNodes).every((function(e){var n;return!(!(0,r.safeInstanceOf)(e,"Text")||(null===(n=e.nodeValue)||void 0===n?void 0:n.trim()))||"LI"==(0,r.getTagOfNode)(e)&&(t=!0,!0)}))&&t)return!0}return!1}t.default=function(e){o(e)?(0,r.wrap)((0,r.toArray)(e.childNodes),"UL"):(0,r.safeInstanceOf)(e.firstChild,"HTMLElement")&&o(e.firstChild)&&(0,r.changeElementTag)(e.firstChild,"UL")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.excelHandler=void 0;var r=n(0),o=/<\/\s*td\s*>((?!<\/\s*tr\s*>)[\s\S])*$/i,i=/<\/\s*tr\s*>((?!<\/\s*table\s*>)[\s\S])*$/i,a=/<tr[^>]*>[^<]*/i,l=/<table[^>]*>[^<]*/i;function s(e,t){if(e.match(o)){var n=t.match(a);e=(n?n[0]:"<TR>")+e+"</TR>"}if(e.match(i)){var r=t.match(l);e=(r?r[0]:"<TABLE>")+e+"</TABLE>"}return e}t.default=function(e,t){var n=e.fragment,o=e.sanitizingOption,i=e.htmlBefore,a=e.clipboardData,l=s(a.html,i);if(a.html!=l){var u=(new DOMParser).parseFromString(t(l),"text/html");(0,r.moveChildNodes)(n,null==u?void 0:u.body)}(0,r.chainSanitizerCallback)(o.elementCallbacks,"TD",(function(e){return"none"==e.style.borderStyle&&(e.style.border="solid 1px #d4d4d4"),!0}))},t.excelHandler=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16),o=n(285);t.default=function(e){e.querySelectorAll(r.WAC_IDENTIFY_SELECTOR).forEach((function(e){e.style.display=null,e.style.margin=null})),(0,o.isWordOnlineWithList)(e)&&(0,o.default)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWordOnlineWithList=void 0;var r=n(286),o=n(0),i='div.ListContainerWrapper>ul[class^="BulletListStyle"],div.ListContainerWrapper>ol[class^="NumberListStyle"],span.WACImageContainer > img',a=["111","9643","9830"];function l(e,t,n){var r,o=t.createElement(n),i=null===(r=e.firstElementChild)||void 0===r?void 0:r.getAttribute("start");return i&&o.setAttribute("start",i),o}function s(e,t,n){if(e){var r,o=n.insertPositionNode;if(o)(r=o.parentNode)&&r.insertBefore(e,o);else(r=n.startElement.parentNode)?r.appendChild(e):t.appendChild(e)}}t.isWordOnlineWithList=function(e){return!(!e||!e.querySelector(i))},t.default=function(e){!function(e){(0,o.toArray)(e.querySelectorAll(i)).forEach((function(e){var t=new RegExp("\\bListContainerWrapper\\b","g");if(e.previousSibling){var n=(0,o.splitParentNode)(e,!0);n.className=n.className.replace(t,"")}if(e.nextSibling){var r=(0,o.splitParentNode)(e,!1);r.className=r.className.replace(t,"")}}))}(e),function(e){for(var t,n=e.querySelectorAll(".ListContainerWrapper"),i=[],a=0;a<n.length;a++){var l=n[a];if(t){var s=t.listItemContainers,u=s[s.length-1];l==u.nextSibling||(0,o.getFirstLeafNode)(l)==(0,o.getNextLeafSibling)(u.parentNode,u)?(s.push(l),t.endElement=l):(t.endElement=u,i.push(t),t=(0,r.createListItemBlock)(l))}else t=(0,r.createListItemBlock)(l)}(null==t?void 0:t.listItemContainers.length)>0&&i.push(t);return i}(e).forEach((function(t){var n;!function(e,t){(0,o.collapseNodes)(e,t.startElement,t.endElement,!0).forEach((function(e){"DIV"==(0,o.getTagOfNode)(e.firstChild)&&(0,o.unwrap)(e)}))}(e,t),t.insertPositionNode=t.endElement.nextSibling;var r=e.ownerDocument;t.listItemContainers.forEach((function(i){var u=function(e){var t=(0,o.getTagOfNode)(e.firstChild);return"UL"==t||"OL"==t?t:null}(i);n||(n=l(i,r,u)),(0,o.toArray)(i.querySelectorAll("li")).forEach((function(d){var c=parseInt(d.getAttribute("data-aria-level"));(0,o.getTagOfNode)(n)!=u&&1==c&&(s(n,e,t),n=l(i,r,u)),function(e,t,n,r){var i;if(!n)return;var l=parseInt(null!==(i=t.getAttribute("data-aria-level"))&&void 0!==i?i:""),s=t.getAttribute("data-leveltext");"UL"==n&&s&&a.indexOf(s.charCodeAt(0).toString())>-1&&(t.style.listStyleType='"'+s+' "');var u=e;for(;l>1;){if(u.firstChild){var d=u.lastElementChild,c=(0,o.getTagOfNode)(d);"UL"==c||"OL"==c?u=d:(u.appendChild(r.createElement(n)),u=u.lastElementChild)}else u.appendChild(r.createElement(n)),u=u.firstElementChild;l--}u.appendChild(t)}(n,d,u,r)}))})),s(n,e,t);var i=t.startElement.parentNode;i&&t.listItemContainers.forEach((function(e){i.removeChild(e)}))})),function(e){return e.querySelectorAll(".WACImageContainer")}(e).forEach((function(e){(0,o.safeInstanceOf)(e,"HTMLSpanElement")&&e.childNodes.forEach((function(e){"IMG"!=(0,o.getTagOfNode)(e)&&e.parentElement.removeChild(e)}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createListItemBlock=void 0,t.createListItemBlock=function(e){return void 0===e&&(e=null),{startElement:e,endElement:e,insertPositionNode:null,listItemContainers:e?[e]:[]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e,t){var n=e.fragment,o=e.clipboardData;if(o.html&&!o.text&&o.image){var i=(new DOMParser).parseFromString(t(o.html),"text/html");(0,r.moveChildNodes)(n,null==i?void 0:i.body)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(289),o=n(0),i=n(290),a=n(291),l=n(292),s=/%/;t.default=function(e){var t=e.sanitizingOption,n=e.fragment;(0,o.chainSanitizerCallback)(t.elementCallbacks,"O:P",(function(e){return(0,o.moveChildNodes)(e),e.appendChild(e.ownerDocument.createTextNode(" ")),!0}));var u=(0,i.createWordConverter)(),d=n.querySelectorAll("p,h1,h2,h3,h4,h5,h6");d.length>0&&(u.wordConverterArgs=(0,a.createWordConverterArguments)(d),(0,l.processNodesDiscovery)(u)&&(0,l.processNodeConvert)(u)),["OL","UL"].forEach((function(e){(0,o.chainSanitizerCallback)(t.elementCallbacks,e,(function(e){return"0in"==e.style.marginBottom&&(e.style.marginBottom=""),!0}))})),(0,o.chainSanitizerCallback)(t.cssStyleCallbacks,"line-height",(function(e){var t;return!(s.test(e)&&!isNaN(t=parseInt(e))&&t<120)})),(0,r.default)(t.elementCallbacks,t.cssStyleCallbacks)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o="mso-comment-parent",i="mso-comment-reference",a="mso-comment-date",l=/#_msocom_/,s="mso-comment-continuation",u="mso-comment-done";t.default=function(e,t){(0,r.chainSanitizerCallback)(e,"SPAN",(function(e){var t;return"comment"==(0,r.getStyles)(e)["mso-special-character"]&&(null===(t=e.parentElement)||void 0===t||t.removeChild(e)),!0})),(0,r.chainSanitizerCallback)(e,"A",(function(e){var t;return(0,r.safeInstanceOf)(e,"HTMLAnchorElement")&&l.test(e.href)&&(null===(t=e.parentElement)||void 0===t||t.removeChild(e)),!0})),(0,r.chainSanitizerCallback)(e,"DIV",(function(e){return"comment-list"==(0,r.getStyles)(e)["mso-element"]&&(0,r.moveChildNodes)(e),!0})),[i,a,o,s,u].forEach((function(e){return(0,r.chainSanitizerCallback)(t,e,(function(){return!1}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWordConverter=void 0;var r=n(116);t.createWordConverter=function(){return{nextUniqueId:1,numBulletsConverted:0,numNumberedConverted:0,wordConverterArgs:null,wordCustomData:(0,r.createCustomData)()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWordConverterArguments=void 0;var r=n(117);t.createWordConverterArguments=function(e){return{nodes:e,currentIndex:0,lists:{},listItems:[],currentListIdsByLevels:[(0,r.createLevelLists)()],lastProcessedItem:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processNodeConvert=t.processNodesDiscovery=void 0;var r=n(117),o=n(116),i=n(0),a=/[\n|\r]/gi;function l(e,t,n,r){var a=function e(t,n,r){var o,a=null;1==n?o=h(t):(a=e(t,n-1,null),o=a.lastChild);if(o&&1==o.nodeType){var l=(0,i.getTagOfNode)(o);if("UL"==l||"OL"==l)return o}var s=t.ownerDocument.createElement(r?r.tagName:"UL");1==n?t.parentNode.insertBefore(s,t):a.appendChild(s);return s}(t,n.level,r),l=(0,o.getObject)(e.wordCustomData,a,"UniqueListId");if(l&&l!=n.uniqueListId||!l&&a.firstChild){var s=t.ownerDocument.createElement(r.tagName);a.parentNode.insertBefore(s,a.nextSibling),a=s}return(0,o.setObject)(e.wordCustomData,a,"UniqueListId",n.uniqueListId),function(e,t,n){if(n.tagName!=(0,i.getTagOfNode)(t)){var r=t.ownerDocument.createElement(n.tagName);(0,o.setObject)(e.wordCustomData,r,"UniqueListId",(0,o.getObject)(e.wordCustomData,t,"UniqueListId")),(0,i.moveChildNodes)(r,t),t.parentNode.insertBefore(r,t),t.parentNode.removeChild(t),t=r}return t}(e,a,r)}function s(e,t){for(var n=[],r=e.firstChild;r;r=r.nextSibling)1==r.nodeType&&t>1&&s(r,t-1),(v(r=f(r,!0))||g(r))&&n.push(r);n.forEach((function(t){return e.removeChild(t)}))}function u(e){if(1==e.nodeType){var t=m(e,"mso-list");if(t&&t.length>0)try{var n=t.split(" ");if(3==n.length)return{level:parseInt(n[1].substr("level".length)),wordListId:t,originalNode:e,uniqueListId:0}}catch(e){}}return null}function d(e){return["o","·","§","-"].indexOf(e)>=0}function c(e,t){for(var n=null,r=e.firstChild;!n&&r;)g(r=f(r,!0))?0==(n=r.textContent.trim()).length&&(n="o"):1==r.nodeType&&t>1&&(n=c(r,t-1)),r=r.nextSibling;return n}function f(e,t){if(8==e.nodeType){var n=e.data;if(n&&"[if !supportlists]"==n.trim().toLowerCase()){for(var r=e,o=null,i=0;i<4&&(r=p(r));i++)if(8==r.nodeType&&(n=r.data)&&"[endif]"==n.trim().toLowerCase()){o=r;break}if(o){var a=e.ownerDocument.createElement("span");for(a.setAttribute("style","mso-list: ignore"),r=p(e);r!=o;)r=r.nextSibling,a.appendChild(r.previousSibling);o.parentNode.insertBefore(a,o),t&&(e.parentNode.removeChild(e),o.parentNode.removeChild(o)),e=a}}}return e}function h(e){var t=e;do{t=t.previousSibling}while(t&&b(t));return t}function p(e){var t=e;do{t=t.nextSibling}while(t&&b(t));return t}function g(e){if(1==e.nodeType){var t=m(e,"mso-list");if(t&&t.length>0&&"ignore"==t.trim().toLowerCase())return!0}return!1}function v(e){return"SPAN"==(0,i.getTagOfNode)(e)&&!e.firstChild}function m(e,t){return(0,i.getStyles)(e)[t]||null}function b(e){if(!e)return!0;if(3==e.nodeType){var t=e.nodeValue;return 0==(t=t.replace(a,"")).trim().length}var n=(0,i.getTagOfNode)(e);return e.firstChild==e.lastChild&&("SPAN"==n||"FONT"==n)&&b(e.firstChild)}function y(e){for(var t=0;t<e.currentListIdsByLevels.length;t++){var n=e.currentListIdsByLevels[t];n&&(n.currentUniqueListId=-1)}}t.processNodesDiscovery=function(e){for(var t,n=e.wordConverterArgs;n.currentIndex<n.nodes.length;){var o=n.nodes.item(n.currentIndex),a=u(o);if(a){var l=n.currentListIdsByLevels[a.level-1]||(0,r.createLevelLists)();n.currentListIdsByLevels[a.level-1]=l,n.lastProcessedItem&&h(o)!=n.lastProcessedItem&&y(n);var s=l.listsMetadata[a.wordListId];if(s){if(!s.ignore&&1==s.numberOfItems){var f=c(o,5);s.tagName=s.firstFakeBullet==f?"UL":"OL"}}else{var p=c(o,5);s={numberOfItems:0,uniqueListId:e.nextUniqueId++,firstFakeBullet:p,ignore:!p||0==p.length,tagName:(t=p,d(t)?"UL":"OL")},l.listsMetadata[a.wordListId]=s,n.lists[s.uniqueListId.toString()]=s}a.uniqueListId=s.uniqueListId,s.ignore||"OL"==s.tagName&&s.numberOfItems>0&&l.currentUniqueListId!=a.uniqueListId?(s.ignore=!0,n.currentListIdsByLevels[0].currentUniqueListId=-1,n.currentListIdsByLevels=n.currentListIdsByLevels.slice(0,1)):(n.currentListIdsByLevels.length>a.level&&(n.currentListIdsByLevels=n.currentListIdsByLevels.slice(0,a.level)),l.currentUniqueListId=a.uniqueListId,n.listItems.push(a),s.numberOfItems++),n.lastProcessedItem=o}else{var g=n.lastProcessedItem;g&&h(o)==g&&o.tagName==g.tagName&&o.className==g.className&&(g.appendChild(g.ownerDocument.createElement("br")),g.appendChild(g.ownerDocument.createElement("br")),(0,i.moveChildNodes)(g,o,!0),o.parentNode.removeChild(o))}n.currentIndex++}return n.listItems.length>0},t.processNodeConvert=function(e){var t=e.wordConverterArgs;for(t.currentIndex=0;t.currentIndex<t.listItems.length;){var n=t.listItems[t.currentIndex],r=n.originalNode,o=t.lists[n.uniqueListId.toString()];if(!o.ignore){var a=l(e,r,n,o);if(a){s(r,5);var u=r.ownerDocument.createElement("LI");if((0,i.getTagOfNode)(r).startsWith("H")){var d=r.cloneNode(!0);d.style.textIndent="",d.style.marginLeft="",d.style.marginRight="",u.appendChild(d)}else(0,i.moveChildNodes)(u,r);a.appendChild(u),r.parentNode.removeChild(r),"UL"==o.tagName?e.numBulletsConverted++:e.numNumberedConverted++}}t.currentIndex++}return e.numBulletsConverted>0||e.numNumberedConverted>0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(294),o=n(295),i=n(296),a=n(297),l=n(298),s=n(299),u=new Map([[0,l.default],[1,o.default],[2,a.default],[4,r.default],[3,i.default],[6,s.default]]);t.default=function(e,t){var n=e.htmlAttributes,r=e.clipboardData,o=e.fragment,i=null,a={htmlAttributes:n,fragment:o,shouldConvertSingleImage:t,clipboardData:r};return u.forEach((function(e,t){!i&&e(a)&&(i=t)})),null!=i?i:5}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default=function(e){return!!e.fragment.querySelector(r.WAC_IDENTIFY_SELECTOR)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default=function(e){var t=e.htmlAttributes;return"urn:schemas-microsoft-com:office:excel"==t["xmlns:x"]||"Excel.Sheet"==t[r.PROG_ID_NAME]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default=function(e){return!!e.fragment.querySelector(r.GOOGLE_SHEET_NODE_NAME)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default=function(e){return"PowerPoint.Slide"==e.htmlAttributes[r.PROG_ID_NAME]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default=function(e){var t=e.htmlAttributes;return"urn:schemas-microsoft-com:office:word"==t["xmlns:w"]||"Word.Document"==t[r.PROG_ID_NAME]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){var t,n=e.shouldConvertSingleImage,r=e.clipboardData;return n&&1==(null===(t=r.htmlFirstLevelChildTags)||void 0===t?void 0:t.length)&&"IMG"==r.htmlFirstLevelChildTags[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);function o(e){var t,n,o=e.start,i=e.end;if(o==i&&"DIV"==(0,r.getTagOfNode)(o)){var a=(0,r.changeElementTag)(o,"SPAN");e.start=a,e.end=a,"BR"==(0,r.getTagOfNode)(a.lastChild)&&a.removeChild(a.lastChild)}else if("BR"==(0,r.getTagOfNode)(i)){a=i.ownerDocument.createTextNode("");null===(t=i.parentNode)||void 0===t||t.insertBefore(a,i),e.end=a,null===(n=i.parentNode)||void 0===n||n.removeChild(i)}}function i(e,t,n,o){var i,a,l,s,u=(0,r.getBlockElementAtNode)(e,t.start),d=n?(0,r.getNextLeafSibling)(e,t.end):(0,r.getPreviousLeafSibling)(e,t.start);if(d)if(null==u?void 0:u.contains(d))(c=null===(i=t.start.ownerDocument)||void 0===i?void 0:i.createElement("br"))&&(null===(a=(n?t.end:t.start).parentNode)||void 0===a||a.insertBefore(c,n?t.end.nextSibling:t.start));else if(o&&o.end==o.start&&"SPAN"==(0,r.getTagOfNode)(o.end)){var c,f=(0,r.getPreviousLeafSibling)(e,t.start);if(o.end.contains(f))(c=null===(l=t.start.ownerDocument)||void 0===l?void 0:l.createElement("br"))&&(null===(s=t.start.parentNode)||void 0===s||s.insertBefore(c,t.start))}}t.default=function(e){for(var t=r.ContentTraverser.createBodyTraverser(e),n=[],a=null==t?void 0:t.currentBlockElement;a;a=t.getNextBlockElement())n.push({start:a.getStartNode(),end:a.getEndNode()});if(n.length>0){var l=n.length-1;o(n[0]),o(n[l]),i(e,n[0],!0),i(e,n[l],!1,n[0])}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(302);t.default=function(e){["color","background-color"].forEach((function(t){(0,r.chainSanitizerCallback)(e.cssStyleCallbacks,t,(function(e){return o.DeprecatedColorList.indexOf(e)<0}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeprecatedColorList=void 0,t.DeprecatedColorList=["activeborder","activecaption","appworkspace","background","buttonhighlight","buttonshadow","captiontext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedfhadow","window","windowframe","windowtext"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e){(0,r.chainSanitizerCallback)(e.attributeCallbacks,"href",(function(e,t){return function(e,t){var n;try{n=new URL(e)}catch(e){n=void 0}if(n&&("http:"===n.protocol||"https:"===n.protocol))return e;return t.removeAttribute("href"),""}(e,t)}))}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(305),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PickerPlugin=void 0;var r=n(306);Object.defineProperty(t,"PickerPlugin",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(0),i=o.Browser.isIE?"Esc":"Escape",a=o.Browser.isIE?"Left":"ArrowLeft",l=o.Browser.isIE?"Up":"ArrowUp",s=o.Browser.isIE?"Right":"ArrowRight",u=o.Browser.isIE?"Down":"ArrowDown",d=o.Browser.isIE?"Del":"Delete",c=[0,229],f=function(){function e(e,t){this.dataProvider=e,this.pickerOptions=t,this.isPendingInputEventHandling=!1}return e.prototype.getName=function(){return"Picker"},e.prototype.initialize=function(e){var t=this;this.editor=e,this.dataProvider.onInitalize((function(e){t.editor.focus();var n=t.getWord(null);n&&0!=n.length||!t.lastKnownRange||(t.editor.select(t.lastKnownRange),n=t.getWord(null));t.editor.addUndoSnapshot((function(){n?(0,r.replaceWithNode)(t.editor,n,e,!0):t.editor.insertNode(e),t.setIsSuggesting(!1)}),t.pickerOptions.changeSource,t.pickerOptions.handleAutoComplete)}),(function(e){t.setIsSuggesting(e)}),e)},e.prototype.dispose=function(){this.editor=null,this.isSuggesting=null,this.blockSuggestions=null,this.eventHandledOnKeyDown=null,this.lastKnownRange=null,this.isPendingInputEventHandling=null,this.currentInputLength=null,this.newInputLength=null,this.dataProvider.onDispose()},e.prototype.willHandleEventExclusively=function(e){return this.isSuggesting&&(0==e.eventType||2==e.eventType||3==e.eventType)},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 7:if("SetContent"==e.source&&this.dataProvider.onContentChanged){this.isSuggesting&&this.setIsSuggesting(!1);var t=[];this.editor.queryElements("[id^='"+this.pickerOptions.elementIdPrefix+"']",(function(e){e.id&&t.push(e.id)})),this.dataProvider.onContentChanged(t)}break;case 0:this.eventHandledOnKeyDown=!1,this.isAndroidKeyboardEvent(e)?(this.currentInputLength=this.calcInputLength(e),this.isPendingInputEventHandling=!0):(this.onKeyDownEvent(e),this.isPendingInputEventHandling=!1);break;case 3:this.isPendingInputEventHandling&&this.onAndroidInputEvent(e);break;case 2:!this.eventHandledOnKeyDown&&this.shouldHandleKeyUpEvent(e)&&(this.onKeyUpDomEvent(e),this.isPendingInputEventHandling=!1);break;case 6:this.isSuggesting&&this.setIsSuggesting(!1);break;case 14:this.dataProvider.onScroll&&this.dataProvider.onScroll(e.scrollContainer)}},e.prototype.setLastKnownRange=function(e){this.lastKnownRange=e},e.prototype.setIsSuggesting=function(e){this.isSuggesting=e,e||this.setLastKnownRange(null),this.dataProvider.onIsSuggestingChanged(e),this.setAriaOwns(e),this.setAriaActiveDescendant(e?0:null)},e.prototype.cancelDefaultKeyDownEvent=function(e){this.eventHandledOnKeyDown=!0,e.rawEvent.preventDefault(),e.rawEvent.stopImmediatePropagation()},e.prototype.getIdValue=function(e){var t=e;return t.attributes&&t.attributes.getNamedItem("id")?t.attributes.getNamedItem("id").value:null},e.prototype.getWordBeforeCursor=function(e){var t=this.editor.getContentSearcherOfCursor(e);return t?t.getWordBefore():null},e.prototype.replaceNode=function(e,t){e&&this.editor.deleteNode(e),t&&this.editor.insertNode(t)},e.prototype.getRangeUntilAt=function(e){var t,n,r=this;return this.editor.getContentSearcherOfCursor(e).forEachTextInlineElement((function(e){for(var o=!1,i=e.getTextContent(),a=i?i.length:-1;a>=0;){if(i[a]==r.pickerOptions.triggerCharacter){t=e.getStartPosition().move(a),o=!0;break}a--}return o&&(n=e.getEndPosition()),o})),(0,o.createRange)(t,n)||this.editor.getDocument().createRange()},e.prototype.shouldHandleKeyUpEvent=function(e){return this.isAndroidKeyboardEvent(e)||(0,o.isCharacterValue)(e.rawEvent)||this.isSuggesting&&!(0,o.isModifierKey)(e.rawEvent)},e.prototype.onKeyUpDomEvent=function(e){if(this.isSuggesting){var t=(r=(n=this.getWord(e)).substring(1)).trim();n==this.pickerOptions.triggerCharacter||t&&t.length>0&&t.split(" ").length<=4?(this.dataProvider.queryStringUpdated(t,r==t),this.setLastKnownRange(this.editor.getSelectionRange())):this.setIsSuggesting(!1)}else{var n=this.getWordBeforeCursor(e);if(this.blockSuggestions)null!=n&&n[0]!=this.pickerOptions.triggerCharacter&&(this.blockSuggestions=!1);else if(null!=n&&n.split(" ").length<=4&&n[0]==this.pickerOptions.triggerCharacter){this.setIsSuggesting(!0);var r;t=(r=n.substring(1)).trim();if(this.dataProvider.queryStringUpdated(t,r==t),this.setLastKnownRange(this.editor.getSelectionRange()),this.dataProvider.setCursorPoint){var o=this.editor.getContentSearcherOfCursor(e),i=this.editor.getDocument().createRange(),a=o.getInlineElementBefore().getContainerNode();if(!this.setRangeStart(i,a,n)){var l=a.previousSibling;this.setRangeStart(i,l,this.pickerOptions.triggerCharacter)}var s=i.getBoundingClientRect();if(0==s.left&&0==s.bottom&&0==s.top&&(s=i.getClientRects()[0]),s){i.detach();var u={x:s.left,y:(s.bottom+s.top)/2},d=(s.bottom-s.top)/2;this.dataProvider.setCursorPoint(u,d)}}}}},e.prototype.onKeyDownEvent=function(e){var t=e.rawEvent;if(this.isSuggesting)if(t.key==i)this.setIsSuggesting(!1),this.blockSuggestions=!0,this.cancelDefaultKeyDownEvent(e);else if("Backspace"==t.key){this.getWord(e)==this.pickerOptions.triggerCharacter&&this.setIsSuggesting(!1)}else this.dataProvider.shiftHighlight&&(this.pickerOptions.isHorizontal?t.key==a||t.key==s:t.key==l||t.key==u)?(this.dataProvider.shiftHighlight(this.pickerOptions.isHorizontal?t.key==s:t.key==u),this.dataProvider.getSelectedIndex&&this.setAriaActiveDescendant(this.dataProvider.getSelectedIndex()),this.cancelDefaultKeyDownEvent(e)):!this.dataProvider.selectOption||"Enter"!=t.key&&"Tab"!=t.key||(this.dataProvider.selectOption(),this.cancelDefaultKeyDownEvent(e));else if("Backspace"==t.key)this.tryRemoveNode(e)&&this.cancelDefaultKeyDownEvent(e);else if(t.key==d){var n=this.editor.getContentSearcherOfCursor(e),r=n.getInlineElementAfter()?n.getInlineElementAfter().getContainerNode():null,o=r?this.getIdValue(r):null;if(o&&0==o.indexOf(this.pickerOptions.elementIdPrefix)){var c=this.dataProvider.onRemove(r,!1);this.replaceNode(r,c),this.cancelDefaultKeyDownEvent(e)}}},e.prototype.onAndroidInputEvent=function(e){(this.newInputLength=this.calcInputLength(e),this.newInputLength<this.currentInputLength||"deleteContentBackwards"===e.rawEvent.inputType)&&(this.tryRemoveNode(e)&&(this.eventHandledOnKeyDown=!0))},e.prototype.calcInputLength=function(e){var t=this.getInlineElementBeforeCursor(e);return t?t.length:0},e.prototype.tryRemoveNode=function(e){var t=this.editor.getContentSearcherOfCursor(e),n=t.getInlineElementBefore(),r=n?n.getContainerNode():null,i=r?this.getIdValue(r):null,a=t.getInlineElementAfter();if(i&&0==i.indexOf(this.pickerOptions.elementIdPrefix)&&(null==a||!(a instanceof o.PartialInlineElement))){var l=this.dataProvider.onRemove(r,!0);return l?(this.replaceNode(r,l),this.isPendingInputEventHandling?this.editor.runAsync((function(e){e.select(l,-3)})):this.editor.select(l,-3)):this.editor.deleteNode(r),!0}return!1},e.prototype.getWord=function(e){var t=this.getRangeUntilAt(e).toString(),n=this.getWordBeforeCursor(e);return t==this.pickerOptions.triggerCharacter&&t!=n?n:t},e.prototype.setRangeStart=function(e,t,n){var r=t?t.textContent.lastIndexOf(n):-1;return r>-1&&(e.setStart(t,r),!0)},e.prototype.setAriaOwns=function(e){this.editor.setEditorDomAttribute("aria-owns",e&&this.pickerOptions.suggestionsLabel?this.pickerOptions.suggestionsLabel:null)},e.prototype.setAriaActiveDescendant=function(e){this.editor.setEditorDomAttribute("aria-activedescendant",null!=e&&this.pickerOptions.suggestionLabelPrefix?this.pickerOptions.suggestionLabelPrefix+e.toString():null)},e.prototype.getInlineElementBeforeCursor=function(e){var t=this.editor.getContentSearcherOfCursor(e),n=t?t.getInlineElementBefore():null;return n?n.getTextContent():null},e.prototype.isAndroidKeyboardEvent=function(e){return"Unidentified"==e.rawEvent.key||null==e.rawEvent.key&&c.indexOf(e.rawEvent.charCode)>-1},e}();t.default=f},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(308),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableResize=void 0;var r=n(309);Object.defineProperty(t,"TableResize",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(310),o=n(0),i=function(){function e(e){var t=this;this.onShowHelperElement=e,this.tableRectMap=null,this.onMouseMove=function(e){var n;if(!(e.buttons>0)){t.ensureTableRects();for(var r=t.editor.getDocument().defaultView,o=e.pageX-r.scrollX,i=e.pageY-r.scrollY,a=null,l=t.tableRectMap.length-1;l>=0;l--){var s=t.tableRectMap[l],u=s.table,d=s.rect;if(o>=d.left-12&&o<=d.right+12&&i>=d.top-12&&i<=d.bottom+12){a=u;break}}t.setTableEditor(a,e),null===(n=t.tableEditor)||void 0===n||n.onMouseMove(o,i)}},this.invalidateTableRects=function(){t.tableRectMap=null}}return e.prototype.getName=function(){return"TableResize"},e.prototype.initialize=function(e){this.editor=e,this.onMouseMoveDisposer=this.editor.addDomEventHandler({mousemove:this.onMouseMove})},e.prototype.dispose=function(){this.onMouseMoveDisposer(),this.invalidateTableRects(),this.disposeTableEditor(),this.editor=null},e.prototype.onPluginEvent=function(e){switch(e.eventType){case 3:case 7:case 14:case 21:this.setTableEditor(null),this.invalidateTableRects()}},e.prototype.setTableEditor=function(e,t){this.tableEditor&&!this.tableEditor.isEditing()&&e!=this.tableEditor.table&&this.disposeTableEditor(),!this.tableEditor&&e&&(this.tableEditor=new r.default(this.editor,e,this.invalidateTableRects,this.onShowHelperElement,t.currentTarget))},e.prototype.disposeTableEditor=function(){var e;null===(e=this.tableEditor)||void 0===e||e.dispose(),this.tableEditor=null},e.prototype.ensureTableRects=function(){var e=this;this.tableRectMap||(this.tableRectMap=[],this.editor.queryElements("table",(function(t){if(t.isContentEditable){var n=(0,o.normalizeRect)(t.getBoundingClientRect());n&&e.tableRectMap.push({table:t,rect:n})}})))},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(311),o=n(312),i=n(313),a=n(314),l=n(315),s=n(0),u=function(){function e(e,t,n,r,o){var l=this;this.editor=e,this.table=t,this.onChanged=n,this.onShowHelperElement=r,this.horizontalInserter=null,this.verticalInserter=null,this.horizontalResizer=null,this.verticalResizer=null,this.onFinishEditing=function(){return l.editor.focus(),l.editor.select(l.start,l.end),l.editor.addUndoSnapshot(null,"Format"),l.onChanged(),l.isCurrentlyEditing=!1,!1},this.onStartTableResize=function(){l.isCurrentlyEditing=!0,l.onStartResize()},this.onStartCellResize=function(){l.isCurrentlyEditing=!0,l.disposeTableResizer(),l.onStartResize()},this.onInserted=function(e){l.editor.transformToDarkColor(e),l.disposeTableResizer(),l.onFinishEditing()},this.onSelect=function(e){if(l.editor.focus(),e){var t=new s.VTable(e);if(t.cells){var n=t.cells.length-1,r=0;t.cells[n].forEach((function(e,t){r=t}));var o={firstCell:{x:0,y:0},lastCell:{y:n,x:r}};l.editor.select(e,o)}}},this.isRTL="rtl"==(0,s.getComputedStyle)(t,"direction");var u=e.getZoomScale();this.tableResizer=(0,i.default)(t,u,this.isRTL,this.onStartTableResize,this.onFinishEditing,this.onShowHelperElement),this.tableSelector=(0,a.default)(t,u,e,this.onSelect,this.onShowHelperElement,o),this.isCurrentlyEditing=!1}return e.prototype.dispose=function(){this.disposeTableResizer(),this.disposeCellResizers(),this.disposeTableInserter(),this.disposeTableSelector()},e.prototype.isEditing=function(){return this.isCurrentlyEditing},e.prototype.onMouseMove=function(e,t){for(var n,r=0;r<this.table.rows.length;r++){for(var o=this.table.rows[r],i=0;i<o.cells.length;i++){var a=o.cells[i],l=(0,s.normalizeRect)(this.table.getBoundingClientRect()),u=(0,s.normalizeRect)(a.getBoundingClientRect());if(u&&l){var d=t<=u.bottom;if((this.isRTL?e>=u.right:e<=u.right)&&d){var c=this.isRTL?u.right<=l.right&&u.right>=l.right-1:u.left>=l.left&&u.left<=l.left+1;if(0===r&&t<=u.top+5){var f=(u.left+u.right)/2,h=this.isRTL?e<f:e>f;this.setInserterTd(h?a:o.cells[i-1],!1)}else if(0==i&&(this.isRTL?e>=u.right-5:e<=u.left+5)&&c){var p=null===(n=this.table.rows[r-1])||void 0===n?void 0:n.cells[0],g=p?(0,s.normalizeRect)(p.getBoundingClientRect()):null,v=g?this.isRTL?g.right===u.right:g.left===u.left:null;this.setInserterTd(t<(u.top+u.bottom)/2&&v?p:a,!0)}else this.setInserterTd(null);this.setResizingTd(a);break}}}if(i<o.cells.length)break}},e.prototype.setResizingTd=function(e){if(this.horizontalResizer&&this.horizontalResizer.node!=e&&this.disposeCellResizers(),!this.horizontalResizer&&e){var t=this.editor.getZoomScale();this.horizontalResizer=(0,r.default)(e,t,this.isRTL,!0,this.onStartCellResize,this.onFinishEditing,this.onShowHelperElement),this.verticalResizer=(0,r.default)(e,t,this.isRTL,!1,this.onStartCellResize,this.onFinishEditing,this.onShowHelperElement)}},e.prototype.setInserterTd=function(e,t){var n=t?this.horizontalInserter:this.verticalInserter;if((null===e||n&&n.node!=e)&&this.disposeTableInserter(),!this.horizontalInserter&&!this.verticalInserter&&e){var r=(0,o.default)(this.editor,e,this.isRTL,!!t,this.onInserted,this.onShowHelperElement);t?this.horizontalInserter=r:this.verticalInserter=r}},e.prototype.disposeTableResizer=function(){this.tableResizer&&((0,l.disposeTableEditFeature)(this.tableResizer),this.tableResizer=null)},e.prototype.disposeTableInserter=function(){this.horizontalInserter&&((0,l.disposeTableEditFeature)(this.horizontalInserter),this.horizontalInserter=null),this.verticalInserter&&((0,l.disposeTableEditFeature)(this.verticalInserter),this.verticalInserter=null)},e.prototype.disposeCellResizers=function(){this.horizontalResizer&&((0,l.disposeTableEditFeature)(this.horizontalResizer),this.horizontalResizer=null),this.verticalResizer&&((0,l.disposeTableEditFeature)(this.verticalResizer),this.verticalResizer=null)},e.prototype.disposeTableSelector=function(){this.tableSelector&&((0,l.disposeTableEditFeature)(this.tableSelector),this.tableSelector=null)},e.prototype.onStartResize=function(){this.isCurrentlyEditing=!0;var e=this.editor.getSelectionRange();e&&(this.start=s.Position.getStart(e),this.end=s.Position.getEnd(e)),this.editor.addUndoSnapshot()},e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(43),o=n(0);function i(e,t){var n=e.td,r=e.isRTL,i=e.zoomScale,a=e.onStart,l=new o.VTable(n,!0,i),s=(0,o.normalizeRect)(n.getBoundingClientRect());if(s){a();var u=l.getCellsWithBorder(r?s.left:s.right,!r),d=l.getCellsWithBorder(r?s.left:s.right,r);return{vTable:l,currentCells:u,nextCells:d,initialX:t.pageX}}return{vTable:l,currentCells:[],nextCells:[],initialX:0}}function a(e,t,n,r,o){var i=e.td,a=e.zoomScale,l=n.vTable;return l.table.removeAttribute("height"),l.table.style.height=null,l.forEachCellOfCurrentRow((function(e){e.td&&(e.td.style.height=e.td==i?e.height/a+o+"px":null)})),l.writeBack(!0),!0}function l(e,t,n,r){var i=e.isRTL,a=e.zoomScale,l=n.vTable,u=n.nextCells,d=n.currentCells,c=n.initialX;if(!function(e,t,n,r,i){for(var a=0;a<t.length;a++){var l=t[a];if(u=(0,o.normalizeRect)(l.getBoundingClientRect()))if((d=s(u,e,!r)/i)<30)return!1}for(a=0;a<n.length;a++){l=n[a];var u,d=Number.MAX_SAFE_INTEGER;if(l)(u=(0,o.normalizeRect)(l.getBoundingClientRect()))&&(d=s(u,e,r)/i);if(d<30)return!1}return!0}(t.pageX,d,u,i,a))return!1;var f=0==u.length,h=t.shiftKey;(f||h)&&(l.table.style.width=null);var p=new Map;return d.forEach((function(e){var n=(0,o.normalizeRect)(e.getBoundingClientRect());if(n){e.style.wordBreak="break-word",e.style.whiteSpace="normal",e.style.boxSizing="border-box";var r=s(n,t.pageX,!i)/a;p.set(e,r)}})),p.forEach((function(e,t){t.style.width=e+"px"})),h||u.forEach((function(e){var t=e.rowSpan>1?0:e.getBoundingClientRect().right-c;e.style.wordBreak="break-word",e.style.whiteSpace="normal",e.style.boxSizing="border-box",e.style.width=e.rowSpan>1?"":t/a-r+"px"})),l.writeBack(!0),!0}function s(e,t,n){return n?t-e.left:e.right-t}function u(e,t){var n=e.td,r=(0,o.normalizeRect)(n.getBoundingClientRect());r&&(t.style.top=r.bottom-4+"px",t.style.left=r.left+"px",t.style.width=r.right-r.left+"px",t.style.height="4px")}function d(e,t){var n=e.td,r=e.isRTL,i=(0,o.normalizeRect)(n.getBoundingClientRect());i&&(t.style.top=i.top+"px",t.style.left=(r?i.left:i.right)-4+1+"px",t.style.width="4px",t.style.height=i.bottom-i.top+"px")}t.default=function(e,t,n,s,c,f,h){var p=e.ownerDocument,g={tag:"div",style:"position: fixed; cursor: "+(s?"row":"col")+"-resize; user-select: none"};null==h||h(g,"CellResizer");var v=(0,o.createElement)(g,p);p.body.appendChild(v);var m={td:e,isRTL:n,zoomScale:t,onStart:c},b=s?u:d;b(m,v);var y={onDragStart:i,onDragging:s?a:l,onDragEnd:f};return{node:e,div:v,featureHandler:new r.default(v,m,b,y,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e,t,n,i,a,l){var s=e.getElementAtCursor("table",t),u=(0,r.normalizeRect)(t.getBoundingClientRect()),d=s?(0,r.getIntersectedRect)([s],[e.getVisibleViewport()]):null;if(u&&d){var c=t.ownerDocument,f=function(e,t,n,r){var o=t?"white":"#4A4A4A",i=n?"right":"left";return{tag:"div",style:"position: fixed; width: 12px; height: 12px; font-size: 16px; color: "+o+"; line-height: 10px; vertical-align: middle; text-align: center; cursor: pointer; border: solid 1px "+o+"; border-radius: 50%; background-color: "+r,children:[{tag:"div",style:"position: absolute; box-sizing: border-box; background-color: "+r+";"+(e?i+": 12px; top: 5px; height: 3px; border-top: 1px solid "+o+"; border-bottom: 1px solid "+o+"; border-right: 1px solid "+o+"; border-left: 0px;":"left: 5px; top: 12px; width: 3px; border-left: 1px solid "+o+"; border-right: 1px solid "+o+"; border-bottom: 1px solid "+o+"; border-top: 0px;")},"+"]}}(i,e.isDarkMode(),n,e.getDefaultFormat().backgroundColor||"white");null==l||l(f,"TableInserter");var h=(0,r.createElement)(f,c);return i?(h.style.left=(n?u.right:u.left-13)+"px",h.style.top=u.bottom-8+"px",h.firstChild.style.width=d.right-d.left+"px"):(h.style.left=(n?u.left-8:u.right-8)+"px",h.style.top=u.top-13+"px",h.firstChild.style.height=d.bottom-d.top+"px"),c.body.appendChild(h),{div:h,featureHandler:new o(h,t,i,e,a),node:t}}return null};var o=function(){function e(e,t,n,o,i){var a=this;this.div=e,this.td=t,this.isHorizontal=n,this.editor=o,this.onInsert=i,this.insertTd=function(){var e=new r.VTable(a.td);a.isHorizontal||(e.normalizeTableCellSize(a.editor.getZoomScale()),e.table.removeAttribute("width"),e.table.style.width=null),e.edit(a.isHorizontal?1:3),e.writeBack(),a.onInsert(e.table)},this.div.addEventListener("click",this.insertTd)}return e.prototype.dispose=function(){this.div.removeEventListener("click",this.insertTd),this.div=null,this.editor=null},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(43),o=n(0);function i(e){return e.onStart(),{originalRect:e.table.getBoundingClientRect(),vTable:new o.VTable(e.table,!0,e.zoomScale)}}function a(e,t,n,r,o){var i=e.isRTL,a=e.zoomScale,l=n.originalRect,s=n.vTable,u=1+r/l.width*a*(i?-1:1),d=1+o/l.height*a,c=Math.abs(u-1)>.001,f=Math.abs(d-1)>.001;if(c||f){for(var h=0;h<s.cells.length;h++)for(var p=0;p<s.cells[h].length;p++){var g=s.cells[h][p];if(g.td){if(c){s.table.style.width=null;var v=g.width*u/a;g.td.style.boxSizing="border-box",v>=30&&(g.td.style.wordBreak="break-word",g.td.style.whiteSpace="normal",g.td.style.width=v+"px")}if(f)if(s.table.style.height=null,0==p){var m=g.height*d/a;m>=20&&(g.td.style.height=m+"px")}else g.td.style.height=null}}return s.writeBack(!0),!0}return!1}function l(e,t){var n=e.table,r=e.isRTL,i=(0,o.normalizeRect)(n.getBoundingClientRect());i&&(t.style.top=i.bottom+"px",t.style.left=r?i.left-12-2+"px":i.right+"px")}t.default=function(e,t,n,s,u,d){var c=e.ownerDocument,f={tag:"div",style:"position: fixed; cursor: "+(n?"ne":"nw")+"-resize; user-select: none; border: 1px solid #808080"};null==d||d(f,"TableResizer");var h=(0,o.createElement)(f,c);h.style.width="12px",h.style.height="12px",c.body.appendChild(h);var p={isRTL:n,table:e,zoomScale:t,onStart:s};return l(p,h),{node:e,div:h,featureHandler:new r.default(h,p,l,{onDragStart:i,onDragging:a,onDragEnd:u},t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(43),o=n(0);function i(e,t){var n=e.rect;n&&(t.style.top=n.top-12+"px",t.style.left=n.left-12-2+"px")}t.default=function(e,t,n,a,l,s){var u=(0,o.normalizeRect)(e.getBoundingClientRect());if(!function(e,t,n){var r=e.getVisibleViewport();if(n&&(0,o.safeInstanceOf)(n,"HTMLElement")&&r&&t){return(0,o.normalizeRect)(n.getBoundingClientRect()).top<=t.top&&r.top<=t.top}return!0}(n,u,s))return null;var d=e.ownerDocument,c={tag:"div",style:"position: fixed; cursor: all-scroll; user-select: none; border: 1px solid #808080"};null==l||l(c,"TableSelector");var f=(0,o.createElement)(c,d);f.id="_Table_Selector",f.style.width="12px",f.style.height="12px",d.body.appendChild(f);var h={table:e,zoomScale:t,rect:u};i(h,f);var p=new r.default(f,h,i,{onDragEnd:function(e,t){return t.target==f&&a(e.table),!1}},t);return{div:f,featureHandler:p,node:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disposeTableEditFeature=void 0,t.disposeTableEditFeature=function(e){var t,n,r;e&&(null===(n=null===(t=e.div)||void 0===t?void 0:t.parentNode)||void 0===n||n.removeChild(e.div),e.div=null,null===(r=e.featureHandler)||void 0===r||r.dispose(),e.featureHandler=null)}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(317),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watermark=void 0;var r=n(318);Object.defineProperty(t,"Watermark",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(9),i=function(){function e(e,t,n){var i=this;this.watermark=e,this.customClass=n,this.editor=null,this.disposer=null,this.showHideWatermark=function(){if(i.editor){var e=i.editor.hasFocus(),t=i.editor.queryElements((0,r.getEntitySelector)("WATERMARK_WRAPPER")),n=t.length>0;if(e&&n)t.forEach(i.removeWatermark),i.editor.focus();else if(!e&&!n&&i.editor.isEmpty()){var a=(0,o.insertEntity)(i.editor,"WATERMARK_WRAPPER",i.editor.getDocument().createTextNode(i.watermark),!1,!1,0);i.customClass&&a.wrapper.classList.add(i.customClass)}}},this.removeWatermark=function(e){var t,n=e.parentNode;null==n||n.removeChild(e),n&&(null===(t=i.editor)||void 0===t?void 0:t.contains(n))&&"DIV"==(0,r.getTagOfNode)(n)&&!n.firstChild&&n.appendChild(i.editor.getDocument().createElement("BR"))},this.format=t||{fontSize:"14px",textColors:{lightModeColor:"#AAAAAA",darkModeColor:"#6B6B6B"}}}return e.prototype.getName=function(){return"Watermark"},e.prototype.initialize=function(e){this.editor=e,this.disposer=this.editor.addDomEventHandler({focus:this.showHideWatermark,blur:this.showHideWatermark})},e.prototype.dispose=function(){var e;null===(e=this.disposer)||void 0===e||e.call(this),this.disposer=null,this.editor=null},e.prototype.onPluginEvent=function(e){var t;if(11==e.eventType||7==e.eventType&&"WATERMARK_WRAPPER"!=(null===(t=e.data)||void 0===t?void 0:t.type))this.showHideWatermark();else if(15==e.eventType&&"WATERMARK_WRAPPER"==e.entity.type&&this.editor){var n=e.operation,o=e.entity.wrapper;8==n?this.removeWatermark(o):0==e.operation&&((0,r.applyFormat)(o,this.format,this.editor.isDarkMode()),o.spellcheck=!1)}},e}();t.default=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(320),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableCellSelection=void 0;var r=n(321);Object.defineProperty(t,"TableCellSelection",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(322),o=n(323),i=n(324),a=n(0),l=[16,18,91,17,44],s=function(){function e(){var e=this;this.onMouseMove=function(t){if(e.editor.contains(t.target)){if(e.tableSelection&&(0,a.contains)(e.lastTarget,t.target,!0))return u(e.editor,e.firstTarget,0),void t.preventDefault();if("TABLE"!=(0,a.getTagOfNode)(t.target)){if(e.setData(t.target),!e.firstTarget||e.firstTable)if(e.lastTarget.lastChild==e.lastTarget.firstChild&&"TABLE"==(0,a.getTagOfNode)(e.lastTarget.lastChild)&&"DIV"==(0,a.getTagOfNode)(e.lastTarget)||!e.editor.contains(e.lastTarget))t.preventDefault();else{e.prepareSelection();var n=!!(0,a.safeInstanceOf)(e.lastTarget,"HTMLTableCellElement")&&(0,a.contains)(e.lastTarget,e.firstTable);e.firstTable&&e.firstTable==e.targetTable||n?e.selectionInsideTableMouseMove(t):e.tableSelection&&e.restoreSelection(),e.tableSelection&&(u(e.editor,e.firstTarget,0),t.preventDefault())}}else t.preventDefault()}},this.onMouseUp=function(){e.editor&&e.removeMouseUpEventListener()},this.lastTarget=null,this.firstTarget=null,this.tableSelection=!1,this.tableRange={firstCell:null,lastCell:null},this.startedSelection=!1}return e.prototype.getName=function(){return"TableCellSelection"},e.prototype.initialize=function(e){this.editor=e,this.editor.addContentEditFeature(o.DeleteTableContents)},e.prototype.dispose=function(){this.editor.select(null),this.removeMouseUpEventListener(),this.editor=null},e.prototype.onPluginEvent=function(e){if(this.editor)switch(e.eventType){case 17:var t=this.editor.getSelectionRangeEx();1==t.type&&(this.tableRange=t.coordinates,this.firstTable=t.table,this.tableSelection=!0,this.editor.select(t.table,null));break;case 18:if(this.firstTable&&this.tableSelection&&this.tableRange){var n=this.editor.queryElements("#"+this.firstTable.id);1==n.length&&(this.firstTable=n[0],this.editor.select(this.firstTable,this.tableRange))}break;case 5:this.startedSelection||this.handleMouseDownEvent(e);break;case 0:this.startedSelection?e.rawEvent.preventDefault():this.handleKeyDownEvent(e);break;case 2:this.startedSelection?e.rawEvent.preventDefault():this.handleKeyUpEvent(e);break;case 14:this.startedSelection&&this.handleScrollEvent();break;case 20:this.tableRange&&(this.tableRange=null,this.firstTable=null,this.tableSelection=!1,this.editor.select(null))}},e.prototype.handleScrollEvent=function(){this.setData(this.editor.getElementAtCursor()),this.firstTable==this.targetTable?this.tableSelection&&(this.vTable.selection.lastCell=(0,i.getCellCoordinates)(this.vTable,this.lastTarget),this.selectTable(),this.tableRange.lastCell=this.vTable.selection.lastCell,u(this.editor,this.firstTarget,0)):this.tableSelection&&this.restoreSelection()},e.prototype.handleKeyDownEvent=function(e){var t,n=this,r=e.rawEvent,o=r.shiftKey,i=r.ctrlKey,l=r.metaKey,s=r.which,u=r.defaultPrevented;if(o&&(i||l)||16==s||u)this.preventKeyUp=u;else if(o){if(!this.firstTarget){var c=this.editor.getFocusedPosition(),f=c&&d(this.editor,c.node);this.firstTarget=this.firstTarget||f}if(!(0,a.safeInstanceOf)(this.firstTarget,"HTMLTableCellElement"))return;this.editor.runAsync((function(t){var r=t.getFocusedPosition(),o=n.tableSelection?n.lastTarget:null==r?void 0:r.node;if(o&&n.setData(o),n.firstTable==n.targetTable){if(!n.shouldConvertToTableSelection()&&!n.tableSelection)return;n.handleKeySelectionInsideTable(e)}else n.tableSelection&&(n.firstTable&&n.editor.select(n.firstTable,null),n.tableSelection=!1)}))}else 1!=(null===(t=this.editor.getSelectionRangeEx())||void 0===t?void 0:t.type)||(0,a.isCtrlOrMetaPressed)(e.rawEvent)&&36!=s&&35!=s||this.editor.select(null)},e.prototype.handleKeyUpEvent=function(e){var t=e.rawEvent,n=t.shiftKey,r=t.which,o=t.ctrlKey;n||o||!this.firstTarget||this.preventKeyUp||-1!=l.indexOf(r)||this.clearState(),this.preventKeyUp=!1},e.prototype.handleKeySelectionInsideTable=function(e){if(this.firstTarget=d(this.editor,this.firstTarget),this.lastTarget=d(this.editor,this.lastTarget),u(this.editor,this.firstTarget,0),this.vTable=this.vTable||new a.VTable(this.firstTable),this.tableRange={firstCell:(0,i.getCellCoordinates)(this.vTable,this.firstTarget),lastCell:this.getNextTD(e)},!this.tableRange.lastCell||this.tableRange.lastCell.y>this.vTable.cells.length-1||-1==this.tableRange.lastCell.y){if(this.lastTarget=this.editor.getElementAtCursor("td,th,div",this.firstTable),!(0,a.safeInstanceOf)(this.lastTarget,"HTMLTableCellElement")){var t=new a.Position(this.targetTable,null==this.tableRange.lastCell.y||-1==this.tableRange.lastCell.y?-2:-3),n=this.editor.getDocument().defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset;return this.editor.select(n.getRangeAt(0)),n.setBaseAndExtent(r,o,t.node,t.offset),this.lastTarget=t.node,void e.rawEvent.preventDefault()}this.prepareSelection()}this.vTable.selection=this.tableRange,this.selectTable();var l=this.isAfter(this.firstTarget,this.lastTarget),s=new a.Position(this.lastTarget,l?0:-1);u(this.editor,s.node,s.offset),this.tableSelection=!0,e.rawEvent.preventDefault()},e.prototype.handleMouseDownEvent=function(e){var t=this,n=e.rawEvent,o=n.which,l=n.shiftKey;if(3==o&&this.tableSelection){var s=this.editor.getElementAtCursor("td,th"),f=(0,i.getCellCoordinates)(this.vTable,s);if(f){var h=(0,r.default)(this.vTable),p=h.firstCell,g=h.lastCell;if(f.y>=p.y&&f.y<=g.y&&f.x>=p.x&&f.x<=g.x){if(this.firstTarget=this.vTable.getCell(p.y,p.x).td,this.lastTarget=this.vTable.getCell(g.y,g.x).td,this.firstTarget&&this.lastTarget)this.editor.getDocument().defaultView.getSelection().setBaseAndExtent(this.firstTarget,0,this.lastTarget,0),this.selectTable();return}}}1!=o||l||(this.clearState(),c(this.editor,e.rawEvent.target)&&(this.editor.getDocument().addEventListener("mouseup",this.onMouseUp,!0),this.editor.getDocument().addEventListener("mousemove",this.onMouseMove,!0),this.startedSelection=!0)),1==o&&l&&this.editor.runAsync((function(e){var n=e.getDocument().defaultView.getSelection(),r=d(e,n.anchorNode),o=d(e,n.focusNode),l=c(e,r),s=c(e,r);if(l==s&&(0,a.safeInstanceOf)(r,"HTMLTableCellElement")&&(0,a.safeInstanceOf)(o,"HTMLTableCellElement")){t.vTable=new a.VTable(r);var f=(0,i.getCellCoordinates)(t.vTable,r),h=(0,i.getCellCoordinates)(t.vTable,o);t.vTable.selection={firstCell:f,lastCell:h},t.firstTarget=r,t.lastTarget=o,t.selectTable(),t.tableRange=t.vTable.selection,t.tableSelection=!0,t.firstTable=l,t.targetTable=s,u(e,r,0)}}))},e.prototype.restoreSelection=function(){this.firstTable&&this.editor.select(this.firstTable,null),this.tableSelection=!1;var e=this.isAfter(this.firstTarget,this.lastTarget),t=new a.Position(this.lastTarget,e?-1:0),n=new Range;this.firstTarget&&n.selectNodeContents(this.firstTarget),u(this.editor,this.firstTarget,e?a.Position.getEnd(n).offset:a.Position.getStart(n).offset,t.element,t.offset)},e.prototype.selectionInsideTableMouseMove=function(e){var t;if(this.lastTarget!=this.firstTarget)u(this.editor,this.firstTarget,0),this.firstTable!=this.targetTable&&(null===(t=this.targetTable)||void 0===t?void 0:t.contains(this.firstTable))&&(this.firstTarget=this.editor.getElementAtCursor("td,th",this.lastTarget)),this.firstTable&&(this.tableSelection=!0,this.vTable=this.vTable||new a.VTable(this.firstTable),this.tableRange={firstCell:(0,i.getCellCoordinates)(this.vTable,this.firstTarget),lastCell:(0,i.getCellCoordinates)(this.vTable,this.lastTarget)},this.vTable.selection=this.tableRange,this.selectTable()),e.preventDefault();else if(this.lastTarget==this.firstTarget&&this.tableSelection){this.vTable=new a.VTable(this.firstTable);var n=(0,i.getCellCoordinates)(this.vTable,this.firstTarget);this.tableRange={firstCell:n,lastCell:n},this.vTable.selection=this.tableRange,this.selectTable()}},e.prototype.removeMouseUpEventListener=function(){this.startedSelection&&(this.startedSelection=!1,this.editor.getDocument().removeEventListener("mouseup",this.onMouseUp,!0),this.editor.getDocument().removeEventListener("mousemove",this.onMouseMove,!0))},e.prototype.clearState=function(){this.editor.select(null),this.vTable=null,this.firstTarget=null,this.lastTarget=null,this.tableRange={firstCell:null,lastCell:null},this.tableSelection=!1,this.firstTable=null,this.targetTable=null},e.prototype.getNextTD=function(e){if(this.lastTarget=this.editor.getElementAtCursor("td,th",this.lastTarget),(0,a.safeInstanceOf)(this.lastTarget,"HTMLTableCellElement")){var t=(0,i.getCellCoordinates)(this.vTable,this.lastTarget);if(this.tableSelection)switch(e.rawEvent.which){case 39:t.x+=this.lastTarget.colSpan,null==this.vTable.cells[t.y][t.x]&&(t.x=this.vTable.cells[t.y].length-1,t.y++);break;case 37:0==t.x?t.y--:t.x--;break;case 38:t.y--;break;case 40:t.y++}return t.y>=0&&t.x>=0&&(this.lastTarget=this.vTable.getTd(t.y,t.x)),t}return null},e.prototype.prepareSelection=function(){var e,t,n,r,o=this.lastTarget!=this.firstTarget&&(null===(e=this.firstTable)||void 0===e?void 0:e.contains((0,a.findClosestElementAncestor)(this.targetTable,this.firstTable,"td,th")));if(o&&this.tableSelection)for(;o;)this.lastTarget=(0,a.findClosestElementAncestor)(this.targetTable,this.firstTable,"td,th"),this.targetTable=c(this.editor,this.lastTarget),o=this.lastTarget!=this.firstTarget&&(null===(t=this.firstTable)||void 0===t?void 0:t.contains((0,a.findClosestElementAncestor)(this.targetTable,this.firstTable,"td,th")));var i=this.lastTarget!=this.firstTarget&&(null===(n=this.targetTable)||void 0===n?void 0:n.contains((0,a.findClosestElementAncestor)(this.firstTable,this.targetTable,"td,th")));if(i&&this.tableSelection)for(;i;)this.firstTarget=(0,a.findClosestElementAncestor)(this.firstTable,this.targetTable,"td,th"),this.firstTable=this.editor.getElementAtCursor("table",this.firstTarget),i=this.lastTarget!=this.firstTarget&&(null===(r=this.targetTable)||void 0===r?void 0:r.contains((0,a.findClosestElementAncestor)(this.firstTable,this.targetTable,"td,th")))},e.prototype.setData=function(e){var t=this.editor.getFocusedPosition();t&&(this.firstTarget=this.firstTarget||d(this.editor,t.node),this.firstTarget.nodeType==Node.TEXT_NODE&&(this.firstTarget=this.editor.getElementAtCursor("td,th",this.firstTarget)),!this.editor.contains(this.firstTarget)&&this.lastTarget&&(this.firstTarget=this.lastTarget)),this.firstTable=c(this.editor,this.firstTarget),this.lastTarget=d(this.editor,e),this.targetTable=c(this.editor,this.lastTarget)},e.prototype.isAfter=function(e,t){var n,r,o,i;if(e&&t){if(t.contains(e)){var l=null===(r=(n=e).getBoundingClientRect)||void 0===r?void 0:r.call(n),s=null===(i=(o=t).getBoundingClientRect)||void 0===i?void 0:i.call(o);if(l&&s)return l.top>s.top&&l.bottom<s.bottom}return new a.Position(e,-1).isAfter(new a.Position(t,-1))}return!1},e.prototype.shouldConvertToTableSelection=function(){var e=this;if(!this.firstTable||!this.editor)return!1;var t=this.editor.getSelectedRegions();if(1==t.length)return!1;var n=!0;return t.forEach((function(t){(0,a.contains)(e.firstTable,t.rootNode)||(n=!1)})),n},e.prototype.selectTable=function(){var e;this.editor&&this.vTable&&(null===(e=this.editor)||void 0===e||e.select(this.vTable.table,(0,r.default)(this.vTable)))},e}();function u(e,t,n,r,o){r=r||t,o=o||n,e.getDocument().defaultView.getSelection().setBaseAndExtent(t,n,r,o)}function d(e,t){return e&&e.getElementAtCursor("td,th",t)||t}function c(e,t){return e?e.getElementAtCursor("table",t):null}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(null==e?void 0:e.selection)||{},n=t.firstCell,r=t.lastCell;if(!(e&&e.selection&&n&&r))return null;var o=e.cells,i={x:Math.min(n.x,r.x),y:Math.min(n.y,r.y)},a={x:Math.max(n.x,r.x),y:Math.max(n.y,r.y)},l=function(e){e.x<0&&(e.x=0),e.y<0&&(e.y=0),e.y>=o.length&&(e.y=o.length-1);var t=o[e.y].length;e.x>=t&&(e.x=t-1)};return l(i),l(a),{firstCell:i,lastCell:a}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteTableContents=void 0;var r=n(0);t.DeleteTableContents={keys:[46,8],shouldHandleEvent:function(e,t){return 1==t.getSelectionRangeEx().type},handleEvent:function(e,t){1==t.getSelectionRangeEx().type&&t.addUndoSnapshot((function(){t.getSelectedRegions().forEach((function(e){(0,r.safeInstanceOf)(e.rootNode,"HTMLTableCellElement")&&function(e,t){var n=new Range;n.selectNodeContents(e),n.deleteContents(),e.appendChild(t.getDocument().createElement("br"))}(e.rootNode,t)}))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCellCoordinates=void 0,t.getCellCoordinates=function(e,t){var n;if(null==e?void 0:e.cells)for(var r=0;r<e.cells.length;r++)for(var o=0;o<e.cells[r].length;o++)t==e.cells[r][o].td&&(n={x:o,y:r});return n}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(326),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoFormat=void 0;var r=n(327);Object.defineProperty(t,"AutoFormat",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/[`!@#$%^&*()_+\=\[\]{};':"\\|,.<>\/?~]/,o=function(){function e(){this.editor=null,this.lastKeyTyped=null}return e.prototype.getName=function(){return"AutoFormat"},e.prototype.initialize=function(e){this.editor=e},e.prototype.dispose=function(){this.editor=null,this.lastKeyTyped=null},e.prototype.onPluginEvent=function(e){var t=this;if(this.editor&&(7!==e.eventType&&5!==e.eventType&&6!==e.eventType||(this.lastKeyTyped=""),0===e.eventType)){var n=e.rawEvent.key;if(n&&n.length>1&&(this.lastKeyTyped=""),"-"!==this.lastKeyTyped||r.test(n)||" "===n||"-"===n)this.lastKeyTyped=n;else{var o=this.editor.getContentSearcherOfCursor(e),i=null==o?void 0:o.getSubStringBefore(3),a=null==o?void 0:o.getSubStringBefore(2),l="-"===(null==i?void 0:i[0]),s=" "===(null==i?void 0:i[0]);if(l||s||"string"==typeof i&&r.test(i[0])||"--"!==a)return;var u=null==o?void 0:o.getRangeFromText(a,!0),d=document.createTextNode("—");this.editor.addUndoSnapshot((function(){u&&(u.deleteContents(),u.insertNode(d),t.editor.select(d,-1))}),"Format",!0,{formatApiName:"autoHyphen"}),this.lastKeyTyped=null}}},e}();t.default=o},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(118),t),o(n(119),t),o(n(329),t),o(n(120),t),o(n(121),t),o(n(122),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(331),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(118),t),o(n(119),t),o(n(332),t),o(n(120),t),o(n(121),t),o(n(122),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleTableOperation=t.CompatibleTableBorderFormat=t.CompatibleSelectionRangeTypes=t.CompatibleRegionType=t.CompatibleQueryScope=t.CompatiblePositionType=t.CompatiblePluginEventType=t.CompatibleNumberingListType=t.CompatibleNodeType=t.CompatibleListType=t.CompatibleKnownCreateElementDataIndex=t.CompatibleKeys=t.CompatibleIndentation=t.CompatibleImageEditOperation=t.CompatibleGetContentMode=t.CompatibleFontSizeChange=t.CompatibleExperimentalFeatures=t.CompatibleEntityOperation=t.CompatibleEntityClasses=t.CompatibleDocumentPosition=t.CompatibleDocumentCommand=t.CompatibleDirection=t.CompatibleDefinitionType=t.CompatibleDarkModeDatasetNames=t.CompatibleContentType=t.CompatibleContentTypePrefix=t.CompatibleContentPosition=t.CompatibleColorTransformDirection=t.CompatibleClearFormatMode=t.CompatibleChangeSource=t.CompatibleCapitalization=t.CompatibleBulletListType=t.CompatibleAlignment=void 0;var r=n(333);Object.defineProperty(t,"CompatibleAlignment",{enumerable:!0,get:function(){return r.CompatibleAlignment}});var o=n(334);Object.defineProperty(t,"CompatibleBulletListType",{enumerable:!0,get:function(){return o.CompatibleBulletListType}});var i=n(335);Object.defineProperty(t,"CompatibleCapitalization",{enumerable:!0,get:function(){return i.CompatibleCapitalization}});var a=n(336);Object.defineProperty(t,"CompatibleChangeSource",{enumerable:!0,get:function(){return a.CompatibleChangeSource}});var l=n(337);Object.defineProperty(t,"CompatibleClearFormatMode",{enumerable:!0,get:function(){return l.CompatibleClearFormatMode}});var s=n(338);Object.defineProperty(t,"CompatibleColorTransformDirection",{enumerable:!0,get:function(){return s.CompatibleColorTransformDirection}});var u=n(339);Object.defineProperty(t,"CompatibleContentPosition",{enumerable:!0,get:function(){return u.CompatibleContentPosition}});var d=n(340);Object.defineProperty(t,"CompatibleContentTypePrefix",{enumerable:!0,get:function(){return d.CompatibleContentTypePrefix}}),Object.defineProperty(t,"CompatibleContentType",{enumerable:!0,get:function(){return d.CompatibleContentType}});var c=n(341);Object.defineProperty(t,"CompatibleDarkModeDatasetNames",{enumerable:!0,get:function(){return c.CompatibleDarkModeDatasetNames}});var f=n(342);Object.defineProperty(t,"CompatibleDefinitionType",{enumerable:!0,get:function(){return f.CompatibleDefinitionType}});var h=n(343);Object.defineProperty(t,"CompatibleDirection",{enumerable:!0,get:function(){return h.CompatibleDirection}});var p=n(344);Object.defineProperty(t,"CompatibleDocumentCommand",{enumerable:!0,get:function(){return p.CompatibleDocumentCommand}});var g=n(345);Object.defineProperty(t,"CompatibleDocumentPosition",{enumerable:!0,get:function(){return g.CompatibleDocumentPosition}});var v=n(346);Object.defineProperty(t,"CompatibleEntityClasses",{enumerable:!0,get:function(){return v.CompatibleEntityClasses}});var m=n(347);Object.defineProperty(t,"CompatibleEntityOperation",{enumerable:!0,get:function(){return m.CompatibleEntityOperation}});var b=n(348);Object.defineProperty(t,"CompatibleExperimentalFeatures",{enumerable:!0,get:function(){return b.CompatibleExperimentalFeatures}});var y=n(349);Object.defineProperty(t,"CompatibleFontSizeChange",{enumerable:!0,get:function(){return y.CompatibleFontSizeChange}});var C=n(350);Object.defineProperty(t,"CompatibleGetContentMode",{enumerable:!0,get:function(){return C.CompatibleGetContentMode}});var E=n(351);Object.defineProperty(t,"CompatibleImageEditOperation",{enumerable:!0,get:function(){return E.CompatibleImageEditOperation}});var S=n(352);Object.defineProperty(t,"CompatibleIndentation",{enumerable:!0,get:function(){return S.CompatibleIndentation}});var w=n(353);Object.defineProperty(t,"CompatibleKeys",{enumerable:!0,get:function(){return w.CompatibleKeys}});var T=n(354);Object.defineProperty(t,"CompatibleKnownCreateElementDataIndex",{enumerable:!0,get:function(){return T.CompatibleKnownCreateElementDataIndex}});var O=n(355);Object.defineProperty(t,"CompatibleListType",{enumerable:!0,get:function(){return O.CompatibleListType}});var P=n(356);Object.defineProperty(t,"CompatibleNodeType",{enumerable:!0,get:function(){return P.CompatibleNodeType}});var _=n(357);Object.defineProperty(t,"CompatibleNumberingListType",{enumerable:!0,get:function(){return _.CompatibleNumberingListType}});var M=n(358);Object.defineProperty(t,"CompatiblePluginEventType",{enumerable:!0,get:function(){return M.CompatiblePluginEventType}});var x=n(359);Object.defineProperty(t,"CompatiblePositionType",{enumerable:!0,get:function(){return x.CompatiblePositionType}});var N=n(360);Object.defineProperty(t,"CompatibleQueryScope",{enumerable:!0,get:function(){return N.CompatibleQueryScope}});var R=n(361);Object.defineProperty(t,"CompatibleRegionType",{enumerable:!0,get:function(){return R.CompatibleRegionType}});var I=n(362);Object.defineProperty(t,"CompatibleSelectionRangeTypes",{enumerable:!0,get:function(){return I.CompatibleSelectionRangeTypes}});var L=n(363);Object.defineProperty(t,"CompatibleTableBorderFormat",{enumerable:!0,get:function(){return L.CompatibleTableBorderFormat}});var k=n(364);Object.defineProperty(t,"CompatibleTableOperation",{enumerable:!0,get:function(){return k.CompatibleTableOperation}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleAlignment=void 0,function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(t.CompatibleAlignment||(t.CompatibleAlignment={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleBulletListType=void 0,function(e){e[e.Min=1]="Min",e[e.Disc=1]="Disc",e[e.Dash=2]="Dash",e[e.Square=3]="Square",e[e.ShortArrow=4]="ShortArrow",e[e.LongArrow=5]="LongArrow",e[e.UnfilledArrow=6]="UnfilledArrow",e[e.Hyphen=7]="Hyphen",e[e.DoubleLongArrow=8]="DoubleLongArrow",e[e.Circle=9]="Circle",e[e.Max=9]="Max"}(t.CompatibleBulletListType||(t.CompatibleBulletListType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleCapitalization=void 0,function(e){e.Sentence="sentence",e.Lowercase="lowercase",e.Uppercase="uppercase",e.CapitalizeEachWord="capitalize"}(t.CompatibleCapitalization||(t.CompatibleCapitalization={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleChangeSource=void 0,function(e){e.AutoLink="AutoLink",e.CreateLink="CreateLink",e.Format="Format",e.ImageResize="ImageResize",e.Paste="Paste",e.SetContent="SetContent",e.Cut="Cut",e.Drop="Drop",e.InsertEntity="InsertEntity",e.SwitchToDarkMode="SwitchToDarkMode",e.SwitchToLightMode="SwitchToLightMode",e.ListChain="ListChain"}(t.CompatibleChangeSource||(t.CompatibleChangeSource={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleClearFormatMode=void 0,function(e){e[e.Inline=0]="Inline",e[e.Block=1]="Block",e[e.AutoDetect=2]="AutoDetect"}(t.CompatibleClearFormatMode||(t.CompatibleClearFormatMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleColorTransformDirection=void 0,function(e){e[e.LightToDark=0]="LightToDark",e[e.DarkToLight=1]="DarkToLight"}(t.CompatibleColorTransformDirection||(t.CompatibleColorTransformDirection={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleContentPosition=void 0,function(e){e[e.Begin=0]="Begin",e[e.End=1]="End",e[e.DomEnd=2]="DomEnd",e[e.SelectionStart=3]="SelectionStart",e[e.Outside=4]="Outside",e[e.Range=5]="Range"}(t.CompatibleContentPosition||(t.CompatibleContentPosition={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleContentType=t.CompatibleContentTypePrefix=void 0,function(e){e.Text="text/",e.Image="image/"}(t.CompatibleContentTypePrefix||(t.CompatibleContentTypePrefix={})),function(e){e.PlainText="text/plain",e.HTML="text/html"}(t.CompatibleContentType||(t.CompatibleContentType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleDarkModeDatasetNames=void 0,function(e){e.OriginalStyleColor="ogsc",e.OriginalStyleBackgroundColor="ogsb",e.OriginalAttributeColor="ogac",e.OriginalAttributeBackgroundColor="ogab"}(t.CompatibleDarkModeDatasetNames||(t.CompatibleDarkModeDatasetNames={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleDefinitionType=void 0,function(e){e[e.Boolean=0]="Boolean",e[e.Number=1]="Number",e[e.String=2]="String",e[e.Array=3]="Array",e[e.Object=4]="Object",e[e.Customize=5]="Customize"}(t.CompatibleDefinitionType||(t.CompatibleDefinitionType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleDirection=void 0,function(e){e[e.LeftToRight=0]="LeftToRight",e[e.RightToLeft=1]="RightToLeft"}(t.CompatibleDirection||(t.CompatibleDirection={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleDocumentCommand=void 0,function(e){e.AutoUrlDetect="AutoUrlDetect",e.BackColor="backColor",e.Bold="bold",e.ClearAuthenticationCache="ClearAuthenticationCache",e.ContentReadOnly="contentReadOnly",e.Copy="copy",e.CreateLink="createLink",e.Cut="cut",e.DecreaseFontSize="decreaseFontSize",e.DefaultParagraphSeparator="defaultParagraphSeparator",e.Delete="delete",e.EnableInlineTableEditing="enableInlineTableEditing",e.EnableObjectResizing="enableObjectResizing",e.FontName="fontName",e.FontSize="fontSize",e.ForeColor="foreColor",e.FormatBlock="formatBlock",e.ForwardDelete="forwardDelete",e.Heading="heading",e.HiliteColor="hiliteColor",e.IncreaseFontSize="increaseFontSize",e.Indent="indent",e.InsertBrOnReturn="insertBrOnReturn",e.InsertHorizontalRule="insertHorizontalRule",e.InsertHTML="insertHTML",e.InsertImage="insertImage",e.InsertOrderedList="insertOrderedList",e.InsertUnorderedList="insertUnorderedList",e.InsertParagraph="insertParagraph",e.InsertText="insertText",e.Italic="italic",e.JustifyCenter="justifyCenter",e.JustifyFull="justifyFull",e.JustifyLeft="justifyLeft",e.JustifyRight="justifyRight",e.Outdent="outdent",e.Paste="paste",e.Redo="redo",e.RemoveFormat="removeFormat",e.SelectAll="selectAll",e.StrikeThrough="strikeThrough",e.Subscript="subscript",e.Superscript="superscript",e.Underline="underline",e.Undo="undo",e.Unlink="unlink",e.StyleWithCSS="styleWithCSS"}(t.CompatibleDocumentCommand||(t.CompatibleDocumentCommand={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleDocumentPosition=void 0,function(e){e[e.Same=0]="Same",e[e.Disconnected=1]="Disconnected",e[e.Preceding=2]="Preceding",e[e.Following=4]="Following",e[e.Contains=8]="Contains",e[e.ContainedBy=16]="ContainedBy"}(t.CompatibleDocumentPosition||(t.CompatibleDocumentPosition={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleEntityClasses=void 0,function(e){e.ENTITY_INFO_NAME="_Entity",e.ENTITY_TYPE_PREFIX="_EType_",e.ENTITY_ID_PREFIX="_EId_",e.ENTITY_READONLY_PREFIX="_EReadonly_"}(t.CompatibleEntityClasses||(t.CompatibleEntityClasses={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleEntityOperation=void 0,function(e){e[e.NewEntity=0]="NewEntity",e[e.Click=1]="Click",e[e.ContextMenu=2]="ContextMenu",e[e.Escape=3]="Escape",e[e.RemoveFromStart=4]="RemoveFromStart",e[e.RemoveFromEnd=5]="RemoveFromEnd",e[e.Overwrite=6]="Overwrite",e[e.PartialOverwrite=7]="PartialOverwrite",e[e.ReplaceTemporaryContent=8]="ReplaceTemporaryContent",e[e.AddShadowRoot=9]="AddShadowRoot",e[e.RemoveShadowRoot=10]="RemoveShadowRoot"}(t.CompatibleEntityOperation||(t.CompatibleEntityOperation={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleExperimentalFeatures=void 0,function(e){e.NewIndentation="NewIndentation",e.NewBullet="NewBullet",e.NewNumbering="NewNumbering",e.ListChain="ListChain",e.MergePastedLine="MergePastedLine",e.SingleDirectionResize="SingleDirectionResize",e.PasteWithLinkPreview="PasteWithLinkPreview",e.ImageRotate="ImageRotate",e.ImageCrop="ImageCrop",e.AlwaysApplyDefaultFormat="AlwaysApplyDefaultFormat",e.ConvertSingleImageBody="ConvertSingleImageBody",e.TableAlignment="TableAlignment",e.TabKeyTextFeatures="TabKeyTextFeatures",e.AdaptiveHandlesResizer="AdaptiveHandlesResizer",e.ListItemAlignment="ListItemAlignment",e.AutoFormatList="AutoFormatList",e.AutoHyphen="AutoHyphen",e.PendingStyleBasedFormat="PendingStyleBasedFormat",e.NormalizeList="NormalizeList",e.ImageSelection="ImageSelection",e.ReuseAllAncestorListElements="ReuseAllAncestorListElements",e.DefaultFormatInSpan="DefaultFormatInSpan"}(t.CompatibleExperimentalFeatures||(t.CompatibleExperimentalFeatures={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleFontSizeChange=void 0,function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(t.CompatibleFontSizeChange||(t.CompatibleFontSizeChange={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleGetContentMode=void 0,function(e){e[e.CleanHTML=0]="CleanHTML",e[e.RawHTMLOnly=1]="RawHTMLOnly",e[e.RawHTMLWithSelection=2]="RawHTMLWithSelection",e[e.PlainText=3]="PlainText",e[e.PlainTextFast=4]="PlainTextFast"}(t.CompatibleGetContentMode||(t.CompatibleGetContentMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleImageEditOperation=void 0,function(e){e[e.None=0]="None",e[e.CornerResize=1]="CornerResize",e[e.SideResize=2]="SideResize",e[e.Resize=3]="Resize",e[e.Rotate=4]="Rotate",e[e.ResizeAndRotate=7]="ResizeAndRotate",e[e.Crop=8]="Crop",e[e.All=15]="All"}(t.CompatibleImageEditOperation||(t.CompatibleImageEditOperation={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleIndentation=void 0,function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(t.CompatibleIndentation||(t.CompatibleIndentation={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleKeys=void 0,function(e){e[e.NULL=0]="NULL",e[e.BACKSPACE=8]="BACKSPACE",e[e.TAB=9]="TAB",e[e.ENTER=13]="ENTER",e[e.SHIFT=16]="SHIFT",e[e.CTRL_LEFT=17]="CTRL_LEFT",e[e.ALT=18]="ALT",e[e.ESCAPE=27]="ESCAPE",e[e.SPACE=32]="SPACE",e[e.PAGEUP=33]="PAGEUP",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN",e[e.PRINT_SCREEN=44]="PRINT_SCREEN",e[e.DELETE=46]="DELETE",e[e.EIGHT_ASTIRISK=56]="EIGHT_ASTIRISK",e[e.EIGHT_ASTERISK=56]="EIGHT_ASTERISK",e[e.B=66]="B",e[e.I=73]="I",e[e.U=85]="U",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.META_LEFT=91]="META_LEFT",e[e.COMMA=188]="COMMA",e[e.DASH_UNDERSCORE=189]="DASH_UNDERSCORE",e[e.PERIOD=190]="PERIOD",e[e.FORWARDSLASH=191]="FORWARDSLASH",e[e.FORWARD_SLASH=191]="FORWARD_SLASH",e[e.GRAVE_TILDE=192]="GRAVE_TILDE",e[e.CONTENTCHANGED=257]="CONTENTCHANGED",e[e.RANGE=258]="RANGE",e[e.Ctrl=4096]="Ctrl",e[e.Meta=8192]="Meta",e[e.Shift=16384]="Shift"}(t.CompatibleKeys||(t.CompatibleKeys={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleKnownCreateElementDataIndex=void 0,function(e){e[e.None=0]="None",e[e.EmptyLine=1]="EmptyLine",e[e.BlockquoteWrapper=2]="BlockquoteWrapper",e[e.CopyPasteTempDiv=3]="CopyPasteTempDiv",e[e.BlockListItem=4]="BlockListItem",e[e.ContextMenuWrapper=5]="ContextMenuWrapper",e[e.ImageEditWrapper=6]="ImageEditWrapper",e[e.TableHorizontalResizer=7]="TableHorizontalResizer",e[e.TableVerticalResizer=8]="TableVerticalResizer",e[e.TableResizerLTR=9]="TableResizerLTR",e[e.TableResizerRTL=10]="TableResizerRTL",e[e.TableSelector=11]="TableSelector",e[e.EmptyLineFormatInSpan=12]="EmptyLineFormatInSpan"}(t.CompatibleKnownCreateElementDataIndex||(t.CompatibleKnownCreateElementDataIndex={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleListType=void 0,function(e){e[e.None=0]="None",e[e.Ordered=1]="Ordered",e[e.Unordered=2]="Unordered"}(t.CompatibleListType||(t.CompatibleListType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleNodeType=void 0,function(e){e[e.Element=1]="Element",e[e.Attribute=2]="Attribute",e[e.Text=3]="Text",e[e.ProcessingInstruction=7]="ProcessingInstruction",e[e.Comment=8]="Comment",e[e.Document=9]="Document",e[e.DocumentType=10]="DocumentType",e[e.DocumentFragment=11]="DocumentFragment"}(t.CompatibleNodeType||(t.CompatibleNodeType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleNumberingListType=void 0,function(e){e[e.Min=1]="Min",e[e.Decimal=1]="Decimal",e[e.DecimalDash=2]="DecimalDash",e[e.DecimalParenthesis=3]="DecimalParenthesis",e[e.DecimalDoubleParenthesis=4]="DecimalDoubleParenthesis",e[e.LowerAlpha=5]="LowerAlpha",e[e.LowerAlphaParenthesis=6]="LowerAlphaParenthesis",e[e.LowerAlphaDoubleParenthesis=7]="LowerAlphaDoubleParenthesis",e[e.LowerAlphaDash=8]="LowerAlphaDash",e[e.UpperAlpha=9]="UpperAlpha",e[e.UpperAlphaParenthesis=10]="UpperAlphaParenthesis",e[e.UpperAlphaDoubleParenthesis=11]="UpperAlphaDoubleParenthesis",e[e.UpperAlphaDash=12]="UpperAlphaDash",e[e.LowerRoman=13]="LowerRoman",e[e.LowerRomanParenthesis=14]="LowerRomanParenthesis",e[e.LowerRomanDoubleParenthesis=15]="LowerRomanDoubleParenthesis",e[e.LowerRomanDash=16]="LowerRomanDash",e[e.UpperRoman=17]="UpperRoman",e[e.UpperRomanParenthesis=18]="UpperRomanParenthesis",e[e.UpperRomanDoubleParenthesis=19]="UpperRomanDoubleParenthesis",e[e.UpperRomanDash=20]="UpperRomanDash",e[e.Max=20]="Max"}(t.CompatibleNumberingListType||(t.CompatibleNumberingListType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatiblePluginEventType=void 0,function(e){e[e.KeyDown=0]="KeyDown",e[e.KeyPress=1]="KeyPress",e[e.KeyUp=2]="KeyUp",e[e.Input=3]="Input",e[e.CompositionEnd=4]="CompositionEnd",e[e.MouseDown=5]="MouseDown",e[e.MouseUp=6]="MouseUp",e[e.ContentChanged=7]="ContentChanged",e[e.ExtractContentWithDom=8]="ExtractContentWithDom",e[e.BeforeCutCopy=9]="BeforeCutCopy",e[e.BeforePaste=10]="BeforePaste",e[e.EditorReady=11]="EditorReady",e[e.BeforeDispose=12]="BeforeDispose",e[e.PendingFormatStateChanged=13]="PendingFormatStateChanged",e[e.Scroll=14]="Scroll",e[e.EntityOperation=15]="EntityOperation",e[e.ContextMenu=16]="ContextMenu",e[e.EnteredShadowEdit=17]="EnteredShadowEdit",e[e.LeavingShadowEdit=18]="LeavingShadowEdit",e[e.EditImage=19]="EditImage",e[e.BeforeSetContent=20]="BeforeSetContent",e[e.ZoomChanged=21]="ZoomChanged",e[e.SelectionChanged=22]="SelectionChanged"}(t.CompatiblePluginEventType||(t.CompatiblePluginEventType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatiblePositionType=void 0,function(e){e[e.Begin=0]="Begin",e[e.End=-1]="End",e[e.Before=-2]="Before",e[e.After=-3]="After"}(t.CompatiblePositionType||(t.CompatiblePositionType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleQueryScope=void 0,function(e){e[e.Body=0]="Body",e[e.OnSelection=1]="OnSelection",e[e.InSelection=2]="InSelection"}(t.CompatibleQueryScope||(t.CompatibleQueryScope={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleRegionType=void 0,function(e){e[e.Table=0]="Table"}(t.CompatibleRegionType||(t.CompatibleRegionType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleSelectionRangeTypes=void 0,function(e){e[e.Normal=0]="Normal",e[e.TableSelection=1]="TableSelection",e[e.ImageSelection=2]="ImageSelection"}(t.CompatibleSelectionRangeTypes||(t.CompatibleSelectionRangeTypes={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleTableBorderFormat=void 0,function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LIST_WITH_SIDE_BORDERS=1]="LIST_WITH_SIDE_BORDERS",e[e.NO_HEADER_BORDERS=2]="NO_HEADER_BORDERS",e[e.NO_SIDE_BORDERS=3]="NO_SIDE_BORDERS",e[e.FIRST_COLUMN_HEADER_EXTERNAL=4]="FIRST_COLUMN_HEADER_EXTERNAL",e[e.ESPECIAL_TYPE_1=5]="ESPECIAL_TYPE_1",e[e.ESPECIAL_TYPE_2=6]="ESPECIAL_TYPE_2",e[e.ESPECIAL_TYPE_3=7]="ESPECIAL_TYPE_3",e[e.CLEAR=8]="CLEAR"}(t.CompatibleTableBorderFormat||(t.CompatibleTableBorderFormat={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibleTableOperation=void 0,function(e){e[e.InsertAbove=0]="InsertAbove",e[e.InsertBelow=1]="InsertBelow",e[e.InsertLeft=2]="InsertLeft",e[e.InsertRight=3]="InsertRight",e[e.DeleteTable=4]="DeleteTable",e[e.DeleteColumn=5]="DeleteColumn",e[e.DeleteRow=6]="DeleteRow",e[e.MergeAbove=7]="MergeAbove",e[e.MergeBelow=8]="MergeBelow",e[e.MergeLeft=9]="MergeLeft",e[e.MergeRight=10]="MergeRight",e[e.MergeCells=11]="MergeCells",e[e.SplitHorizontally=12]="SplitHorizontally",e[e.SplitVertically=13]="SplitVertically",e[e.AlignCenter=14]="AlignCenter",e[e.AlignLeft=15]="AlignLeft",e[e.AlignRight=16]="AlignRight",e[e.AlignCellLeft=17]="AlignCellLeft",e[e.AlignCellCenter=18]="AlignCellCenter",e[e.AlignCellRight=19]="AlignCellRight",e[e.AlignCellTop=20]="AlignCellTop",e[e.AlignCellMiddle=21]="AlignCellMiddle",e[e.AlignCellBottom=22]="AlignCellBottom"}(t.CompatibleTableOperation||(t.CompatibleTableOperation={}))}])}));
2
2
  //# sourceMappingURL=rooster-amd-min.js.map