;/*FB_PKG_DELIM*/ __d("CometIdentityBadgeInformationDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8420458394634741"}),null); __d("CometIdentityBadgeInformationDialogQuery$Parameters",["CometIdentityBadgeInformationDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometIdentityBadgeInformationDialogQuery_facebookRelayOperation"),metadata:{},name:"CometIdentityBadgeInformationDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("CometFeedStoryEncryptedTrackingContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext("");g["default"]=b}),98); __d("CometFeedVisitationContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");c=d("react");var i=c.useContext,j=c.useMemo,k=h.createContext({feedLastVisitTime:null});function a(a){var b=a.children,c=a.feedLastVisitTime;a=j(function(){return{feedLastVisitTime:c}},[c]);return h.jsx(k.Provider,{value:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";function b(){return i(k)}g.CometFeedVisitationContextProvider=a;g.useCometFeedVisitationContext=b}),98); __d("CometFocusedStoryViewReferringFeedLocationContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext(null);g["default"]=b}),98); __d("FBGComponentRoot.react",["JSResourceForInteraction","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=c("JSResourceForInteraction")("FBGComponentRootImpl.react").__setRef("FBGComponentRoot.react");var i=c("lazyLoadComponent")(b);function a(a){return h.jsx(i,babelHelpers["extends"]({},a))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("InteractivePluginContextController",["Promise","regeneratorRuntime","uuid"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){this.$2=new Map(),this.$1=new Map(),this.$2=new Map()}var d=a.prototype;d.getAllPluginControllers=function(){return Array.from(this.$1.values())};d.getPluginController=function(a){return this.$1.get(a)};d.addPlugin=function(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:this.$1.set(a.getPluginAppID(),a);c.next=3;return b("regeneratorRuntime").awrap(Array.from(this.$2.values()).map(function(b){return b.onAddPlugin(a)}));case 3:case"end":return c.stop()}},null,this)};d.removePlugin=function(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:this.$1["delete"](a.getPluginAppID());c.next=3;return b("regeneratorRuntime").awrap(b("Promise").allSettled(Array.from(this.$2.values()).map(function(b){return b.onRemovePlugin(a)})));case 3:c.next=5;return b("regeneratorRuntime").awrap(a.destroy());case 5:case"end":return c.stop()}},null,this)};d.clearPlugins=function(){for(var a=this.$1.values(),b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var d;if(b){if(c>=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;this.removePlugin(d)}};d.addObserver=function(a){var b=this,d=c("uuid")();this.$2.set(d,a);return{removeObserver:function(){b.$2["delete"](d)}}};return a}();g["default"]=a}),98); __d("InteractivePluginContext",["InteractivePluginContextController","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext({pluginContextController:new(c("InteractivePluginContextController"))(),setStreamerData:c("emptyFunction"),setTaggedGameName:c("emptyFunction"),streamerData:{streamerID:null,streamerName:null},taggedGameName:null,videoID:null});g["default"]=b}),98); __d("CometTahoeSidepaneDialogContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext(null);g["default"]=b}),98); __d("CometLexicalGroupEntityNode",["CometLexicalGenericEntityNode"],(function(a,b,c,d,e,f,g){"use strict";var h=function(b){babelHelpers.inheritsLoose(a,b);function a(a,c){var d=a.canBeInvitedByViewer,e=a.gender,f=a.photoURI;a=babelHelpers.objectWithoutPropertiesLoose(a,["canBeInvitedByViewer","gender","photoURI"]);a=b.call(this,a,c)||this;a.__canBeInvitedByViewer=d===!0;a.__photoURI=f;a.__gender=e;return a}a.getNodeFields=function(a){return{canBeInvitedByViewer:a.__canBeInvitedByViewer,gender:a.__gender,id:a.__id,photoURI:a.__photoURI,text:a.__text,type:a.__entityType,uri:(a=a.__uri)!=null?a:void 0}};a.getType=function(){return"group_actor"};a.clone=function(b){return new a(a.getNodeFields(b),b.__key)};a.importJSON=function(a){return i({canBeInvitedByViewer:a.canBeInvitedByViewer,gender:a.gender,id:a.id,photoURI:a.photoURI,text:a.text,type:a.entityType,uri:(a=a.uri)!=null?a:void 0})};var c=a.prototype;c.exportJSON=function(){return babelHelpers["extends"]({},b.prototype.exportJSON.call(this),{canBeInvitedByViewer:this.__canBeInvitedByViewer,gender:this.__gender,photoURI:this.__photoURI})};c.getPhotoURI=function(){return this.__photoURI};c.getCanBeInvitedByViewer=function(){return this.__canBeInvitedByViewer};c.getUserGender=function(){return this.__gender};return a}(d("CometLexicalGenericEntityNode").CometLexicalGenericEntityNode);function i(a){return new h(a).setMode("segmented").toggleDirectionless()}g.CometLexicalGroupEntityNode=h;g.$createCometLexicalGroupEntityNode=i}),98); __d("CometIdentityBadgeInformationDialog.entrypoint",["CometIdentityBadgeInformationDialogQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.videoID;return{queries:{videoQueryRef:{parameters:b("CometIdentityBadgeInformationDialogQuery$Parameters"),variables:{videoID:(a=a)!=null?a:""}}}}},root:c("JSResourceForInteraction")("CometIdentityBadgeInformationDialog.react").__setRef("CometIdentityBadgeInformationDialog.entrypoint")};g["default"]=a}),98); __d("CometUFIActionsContext",["emptyFunction","react","recoverableViolation","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");d=d("react");var i=d.useCallback,j=d.useContext,k=d.useMemo,l=d.useRef,m=h.createContext({getUFIAction:a("get"),registerUFIActions:c("emptyFunction")});function a(a){return function(b){throw c("unrecoverableViolation")("You are attempting to "+a+" UFI actions for feedback target ID "+(b==null?"{not provided}":b)+" from a component that is not a descendent of CometUFIActionsContextProvider. Please make sure your story has CometUFIActionsContextProvider as a parent in the component tree. See for an example.","ufi2")}}function b(a){var b=a.children;a=a.feedLocation;var d=l(new Map()),e=a!=null?a:"null",f=i(function(a,b){if(a==null)return c("recoverableViolation")("Unable to register UFI actions because feedback ID is null in feedback location: "+e,"ufi2");var f=d.current.get(a)||{};d.current.set(a,babelHelpers["extends"]({},f,b));return{dispose:function(){var c=d.current.get(a);c!=null&&Object.keys(b).forEach(function(e){c[e]===b[e]&&(delete c[e],d.current.set(a,c))})}}},[e,d]),g=i(function(a,b){var f;if(a==null)return c("recoverableViolation")("Attempted to retrieve UFI action with a null feedback ID in feedback location ("+e+"). Please ensure you are passing in a valid feedback ID.","ufi2");f=(f=d.current.get(a))==null?void 0:f[b];f==null&&c("recoverableViolation")("Attempted to call a UFI action "+b+" in feed location "+e+" with feedback ID "+a+", but no UFI action was found. Please ensure that a) you're providing a valid feedback ID, b) registerUFIActions() is being called with this same feedback ID, and c) you're using UFI actions in response to an event, rather than on first render (which could cause a race condition with the UFI being available).","ufi2");return f},[e,d]);a=k(function(){return{getUFIAction:g,registerUFIActions:f}},[g,f]);return h.jsx(m.Provider,{value:a,children:b})}b.displayName=b.name+" [from "+f.id+"]";function e(){var a=j(m);a=a.getUFIAction;return{getUFIAction:a}}g.CometUFIActionsContext=m;g.CometUFIActionsContextProvider=b;g.useCometUFIActions=e}),98); __d("CometUFICommentListenersContext",["EventEmitter","FBLogger","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");d=d("react");var i=d.useContext,j=d.useEffect,k=d.useMemo,l=d.useRef,m=new(c("EventEmitter"))(),n=h.createContext({getEmitter:function(a,b){c("FBLogger")("ufi2").mustfix("Context not setup correctly for CometUFICommentListenersContext using global emitter for "+b+", this is not supported please contact the ufight_club oncall to chat about your use case","ufi2");return m},isInitialized:!1});function a(a){a=a.children;var b=i(n),d=l(null),e=k(function(){if(b.isInitialized===!0)return b;var a=function(){d.current==null&&(d.current=new Map());return d.current},e=function(b){var d,e=a();d=(d=e.get(b))!=null?d:new(c("EventEmitter"))();e.set(b,d);return d};return{getEmitter:e,isInitialized:!0}},[b]);return h.jsx(n.Provider,{value:e,children:a})}a.displayName=a.name+" [from "+f.id+"]";function b(a,b,c){var d=i(n),e=d.getEmitter;j(function(){if(a==null)return;if(c==="IM_SORRY_ITS_NULL_FOR_SOME_REASON_AND_THIS_SHOULD_REALLY_NEVER_HAPPEN")return;var d=e(a,c),f=d.addListener("comment_create",b);return function(){d.removeListener(f)}},[a,b,e,c])}function e(a,b,c){var d=i(n),e=d.getEmitter;j(function(){if(a==null)return;var d=e(a,c),f=d.addListener("comments_expand",b);return function(){d.removeListener(f)}},[a,b,e,c])}function o(a,b,c){var d=i(n),e=d.getEmitter;j(function(){if(a==null)return;var d=e(a,c),f=d.addListener("comments_pagination",b);return function(){d.removeListener(f)}},[a,b,e,c])}function p(a,b,c){var d=i(n),e=d.getEmitter;j(function(){if(a==null)return;var d=e(a,c),f=d.addListener("comments_collapse",b);return function(){d.removeListener(f)}},[a,b,e,c])}g.CometUFICommentListenersContext=n;g.CometUFICommentListenersContextProvider=a;g.useCometUFIOnCommentCreate=b;g.useCometUFIOnCommentsExpanded=e;g.useCometUFIOnCommentsPaginated=o;g.useCometUFIOnCommentsCollapsed=p}),98); __d("unfinishedCommentTracking",["gkx","qex"],(function(a,b,c,d,e,f,g){"use strict";var h={base:new Map(),dialog:new Map()},i=!1;function j(){return h[i?"dialog":"base"]}function a(){return Boolean(Array.from(j()).find(function(a){a[0];a=a[1];return Boolean(Array.from(a).find(function(a){return a()===!0}))}))}function b(a,b){if(i&&(c("qex")._("12")===!0||c("gkx")("7981"))){var d=h.base.get(a);if(d!=null&&d.size>0)return}d=(d=j().get(a))!=null?d:new Set();d.add(b);j().set(a,d)}function d(a,b){var c=j().get(a);c!=null&&(c["delete"](b),c.size===0&&j()["delete"](a))}function k(a){i=a,i||(h.dialog.forEach(function(a){return a.clear()}),h.dialog.clear())}function e(){k(!1),[h.base,h.dialog].forEach(function(a){a.clear()})}f={addCheck:b,hasAnyUnfinishedComments:a,removeCheck:d,reset:e,setDialogActive:k};g["default"]=f}),98); __d("formatLanguageCode",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a!=null?a.replace("_","-").replace("-XX",""):void 0}f["default"]=a}),66); __d("CometUFIStarsPopoverContext.react",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react").createContext;b=a({setUFIStarsPopoverEntrypoint:function(a){},setUFIStarsPopoverOnCompletionCallback:function(a){},setUFIStarsPopoverShouldShowEducationCards:function(a){},setUFIStarsPopoverShowPurchaseCard:function(a){},ufiStarsPopoverEntrypoint:"comet_star_flyout",ufiStarsPopoverOnCompletionCallback:null,ufiStarsPopoverRef:{current:null},ufiStarsPopoverShouldShowEducationCards:!0,ufiStarsPopoverShowPurchaseCard:!1});g["default"]=b}),98); __d("UFI2RealtimeContext",["react","warning"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext(function(){c("warning")(!1,"UFI2RealtimeContext: Using default context. Put an instance of `UFI2RealtimeRoot` in the tree.");return{dispose:function(){}}});e=b;g["default"]=e}),98); __d("UFI2RealtimeContainer.react",["UFI2RealtimeContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useContext,j=b.useEffect;function a(a){var b=a.children;a=a.subscribe;var d=i(c("UFI2RealtimeContext"));return h.jsx(k,{factory:d,subscribe:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";var k=function(a){var b=a.factory,c=a.subscribe;a=a.children;j(function(){var a=b(new l(c));return function(){a.dispose()}},[b,c]);return(a=a)!=null?a:null},l=function(){function a(a){this.$1=a}var b=a.prototype;b.subscribe=function(){this.$2||(this.$2=this.$1())};b.unsubscribe=function(){this.$2&&(this.$2.dispose(),this.$2=null)};return a}();g["default"]=a}),98); __d("UFI2ViewOption",[],(function(a,b,c,d,e,f){"use strict";function a(a){if(a==="FRIENDS_COMMENTS")return!1;switch(a){case"ADMIN_HIDDEN":case"RECENT_ACTIVITY":case"RANKED_THREADED":case"RANKED_UNFILTERED":case"LIVE_STREAMING":case"RANKED_SUB_REPLIES":case"RANKED_REPLIES":case"MOST_VOTED":case"MOST_REACCS":case"ANSWERED":case"UNANSWERED":case"MOST_ENGAGEMENT":case"CHRONO_SUB_REPLIES":case"STAR_COMMENTS":case"FISHBOWL_NORMIES_RECENT_ACTIVITY":return!1}return!0}function b(a,b){return b&&a==="RECENT_ACTIVITY"}f.shouldDisplayInReverse=a;f.expectedWasteComment=b}),66); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @fullSyntaxTransform * @generated * @noflow * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("Lexical.prod",["Promise"],(function $module_Lexical_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var ba={},ca={},ea={},fa={},ha={},ia={},ja={},ka={},ma={},na={},oa={},pa={},qa={},ra={},sa={},ta={},ua={},va={},wa={},xa={},ya={},za={},Aa={},Ba={},Da={},Ea={},Fa={},Ga={},Ha={},Ia={},Ja={},Ka={},La={},Ma={};function q(a){throw Error("Minified Lexical error #"+a+"; visit https://lexical.dev/docs/error?code="+a+" for the full message or "+"use the non-minified dev environment for full errors and additional helpful warnings.");} var Na="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Oa=Na&&"documentMode"in document?document.documentMode:null,t=Na&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Pa=Na&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Qa=Na&&"InputEvent"in window&&!Oa?"getTargetRanges"in new window.InputEvent("input"):!1,Ra=Na&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Sa=Na&&/iPad|iPhone|iPod/.test(navigator.userAgent)&& !window.MSStream,Ta=Na&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Wa=Ra||Sa?"\u00A0":"\u200B",Xa=Pa?"\u00A0":Wa,Ya=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,Za=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,$a={bold:1,code:16,italic:2,strikethrough:4,subscript:32, superscript:64,underline:8},ab={directionless:1,unmergeable:2},bb={center:2,end:6,justify:4,left:1,right:3,start:5},cb={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},db={normal:0,segmented:2,token:1},eb={0:"normal",2:"segmented",1:"token"},fb=!1,gb=0;function hb(a){gb=a.timeStamp;}function ib(a,b,c){return b.__lexicalLineBreak===a||void 0!==a["__lexicalKey_"+c._key];}function jb(a){return a.getEditorState().read(function(){var b=u();return null!==b?b.clone():null;});} function kb(a,b,c){fb=!0;var d=100=_iterator.length)break;_ref2=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref2=_i.value;}var _ref3=_ref2;var da=_ref3[0];var N=_ref3[1];if(F(N))for(f= N.getChildrenKeys(),g=da.firstChild,h=0;h=_iterator2.length)break;_ref5=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref5=_i2.value;}var _ref6=_ref5;var d=_ref6[1];d.markDirty();}}},null===a._pendingEditorState?{tag:"history-merge"}:void 0);}function Nb(){return I()._nodeMap.get("root");}function ob(a){G();var b=I();null!==a&&(a.dirty=!0,a._cachedNodes=null);b._selection=a;} function Pb(a){var b=H(),c;a:{for(c=a;null!=c;){var d=c["__lexicalKey_"+b._key];if(void 0!==d){c=d;break a;}c=zb(c);}c=null;}return null===c?(b=b.getRootElement(),a===b?L("root"):null):L(c);}function Qb(a){return /[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(a);}function Rb(a){var b=[];for(;null!==a;){b.push(a),a=a._parentEditor;}return b;}function Sb(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);} function Tb(a,b,c){b=E(b._window);if(null!==b){var d=b.anchorNode,_b=b,e=_b.anchorOffset,f=_b.focusOffset;if(null!==d&&(b=3===d.nodeType?d.nodeValue:null,d=lb(d),null!==b&&B(d))){if(b===Wa&&c){var g=c.length;b=c;f=e=g;}null!==b&&mb(d,b,e,f,a);}}} function mb(a,b,c,d,e){var f=a;if(f.isAttached()&&(e||!f.isDirty())){var g=f.isComposing();a=b;(g||e)&&b[b.length-1]===Wa&&(a=b.slice(0,-1));b=f.getTextContent();if(e||a!==b)if(""===a){if(K(null),Ra||Sa)f.remove();else{var h=H();setTimeout(function(){h.update(function(){f.isAttached()&&f.remove();});},20);}}else e=f.getParent(),b=Ub(),f.isToken()||null!==Jb()&&!g||null!==e&&C(b)&&!e.canInsertTextBefore()&&0===b.anchor.offset?f.markDirty():(g=u(),C(g)&&null!==c&&null!==d&&(g.setTextNodeRange(f,c,f,d),f.isSegmented()&&( c=f.getTextContent(),c=M(c),f.replace(c),f=c)),f.setTextContent(a));}}function Vb(a,b){if(b.isSegmented())return!0;if(!a.isCollapsed())return!1;a=a.anchor.offset;var c=b.getParentOrThrow(),d=b.isToken();return 0===a?((a=!b.canInsertTextBefore()||!c.canInsertTextBefore()||d)||(b=b.getPreviousSibling(),a=(B(b)||F(b)&&b.isInline())&&!b.canInsertTextAfter()),a):a===b.getTextContentSize()?!b.canInsertTextAfter()||!c.canInsertTextAfter()||d:!1;} function Wb(a,b){var c=a[b];return"string"===typeof c?(c=c.split(" "),a[b]=c):c;}function Xb(a,b,c,d,e){0!==c.size&&(c=d.__key,b=b.get(d.__type),void 0===b&&q(33),d=b.klass,b=a.get(d),void 0===b&&(b=new Map(),a.set(d,b)),a=b.get(c),d="destroyed"===a&&"created"===e,(void 0===a||d)&&b.set(c,d?"updated":e));}function Yb(a,b,c){var d=a.getParent(),e=c;null!==d&&(b&&0===c?(e=a.getIndexWithinParent(),a=d):b||c!==a.getChildrenSize()||(e=a.getIndexWithinParent()+1,a=d));return a.getChildAtIndex(b?e-1:e);} function Zb(a,b){var c=a.offset;if("element"===a.type)return a=a.getNode(),Yb(a,b,c);a=a.getNode();return b&&0===c||!b&&c===a.getTextContentSize()?(c=b?a.getPreviousSibling():a.getNextSibling(),null===c?Yb(a.getParentOrThrow(),b,a.getIndexWithinParent()+(b?0:1)):c):null;}function pb(a){a=(a=sb(a).event)&&a.inputType;return"insertFromPaste"===a||"insertFromPasteAsQuotation"===a;}function $b(a){return!O(a)&&!a.isLastChild()&&!a.isInline();} function ac(a,b){a=a._keyToDOMMap.get(b);void 0===a&&q(75);return a;}function zb(a){a=a.assignedSlot||a.parentElement;return null!==a&&11===a.nodeType?a.host:a;} function bc(a,b,c){var d=c.ownerDocument,e=d.defaultView;if(null!==e){var _b2=b,f=_b2.top,g=_b2.bottom;for(b=c;null!==b;){if(c=b===d.body){var h=0;var k=sb(a).innerHeight;}else{var l=b.getBoundingClientRect();h=l.top;k=l.bottom;}l=0;fk&&(l=g-k);0!==l&&(c?e.scrollBy(0,l):(h=b.scrollTop,b.scrollTop+=l,h=b.scrollTop-h,f-=h,g-=h));if(c)break;b=zb(b);}}} function cc(a,b){if(b===void 0){b=0;}0!==b&&q(1);b=u();if(!C(b)||!F(a))return b;var _b3=b,c=_b3.anchor,d=_b3.focus,e=c.getNode(),f=d.getNode();dc(e,a)&&c.set(a.__key,0,"element");dc(f,a)&&d.set(a.__key,0,"element");return b;}function dc(a,b){for(a=a.getParent();null!==a;){if(a.is(b))return!0;a=a.getParent();}return!1;}function sb(a){a=a._window;null===a&&q(78);return a;}function ec(a){for(a=a.getParentOrThrow();null!==a&&!fc(a);){a=a.getParentOrThrow();}return a;}function fc(a){return O(a)||F(a)&&a.isShadowRoot();} function gc(a){var b=H();var c=a.constructor.getType();b=b._nodes.get(c);void 0===b&&q(97);b=b.replace;return null!==b?(b=b(a),b instanceof a.constructor||q(98),b):a;}function hc(a,b){a=a.getParent();if(O(a)&&!F(b)&&!z(b))throw Error("Only element or decorator nodes can be inserted in to the root node");}function ic(a){return(z(a)||F(a)&&!a.canBeEmpty())&&!a.isInline();}function kc(a,b,c){c.style.removeProperty("caret-color");b._blockCursorElement=null;b=a.parentElement;null!==b&&b.removeChild(a);} function E(a){return Na?(a||window).getSelection():null;}function lc(a,b,c,d,e){for(a=a.getFirstChild();null!==a;){var f=a.__key;void 0!==a&&a.__parent===b&&(F(a)&&lc(a,f,c,d,e),c.has(f)||e["delete"](f),d["delete"](f));a=a.isAttached()?a.getNextSibling():null;}} function mc(a,b,c,d){a=a._nodeMap;b=b._nodeMap;for(var _iterator3=c,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_iterator3[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref7;if(_isArray3){if(_i3>=_iterator3.length)break;_ref7=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref7=_i3.value;}var e=_ref7;var f=b.get(e);void 0===f||f.isAttached()||(a.has(e)||c["delete"](e),b["delete"](e));}for(var _iterator4=d,_isArray4=Array.isArray(_iterator4),_i4=0,_iterator4=_isArray4?_iterator4:_iterator4[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref9;if(_isArray4){if(_i4>=_iterator4.length)break;_ref9=_iterator4[_i4++];}else{_i4=_iterator4.next();if(_i4.done)break;_ref9=_i4.value;}var _ref10=_ref9;var _e=_ref10[0];c=b.get(_e),void 0===c||c.isAttached()||(F(c)&&lc(c,_e,a,b,d),a.has(_e)||d["delete"](_e),b["delete"](_e));}}function nc(a,b){var c=a.__mode,d=a.__format;a=a.__style;var e=b.__mode,f=b.__format;b=b.__style;return(null===c||c===e)&&(null===d||d===f)&&(null===a||a===b);} function oc(a,b){var c=a.mergeWithSibling(b),d=H()._normalizedNodes;d.add(a.__key);d.add(b.__key);return c;}function pc(a){if(""===a.__text&&a.isSimpleText()&&!a.isUnmergeable())a.remove();else{for(var b;null!==(b=a.getPreviousSibling())&&B(b)&&b.isSimpleText()&&!b.isUnmergeable();){if(""===b.__text)b.remove();else{nc(b,a)&&(a=oc(b,a));break;}}for(var c;null!==(c=a.getNextSibling())&&B(c)&&c.isSimpleText()&&!c.isUnmergeable();){if(""===c.__text)c.remove();else{nc(a,c)&&oc(a,c);break;}}}} function qc(a){rc(a.anchor);rc(a.focus);return a;}function rc(a){for(;"element"===a.type;){var b=a.getNode(),c=a.offset;c===b.getChildrenSize()?(b=b.getChildAtIndex(c-1),c=!0):(b=b.getChildAtIndex(c),c=!1);if(B(b)){a.set(b.__key,c?b.getTextContentSize():0,"text");break;}else if(!F(b))break;a.set(b.__key,c?b.getChildrenSize():0,"element");}}var P="",Q="",R="",sc,S,tc,uc=!1,vc=!1,wc,xc=null,yc,zc,Ac,Bc,Cc,Dc; function Ec(a,b){var c=Ac.get(a);if(null!==b){var d=Fc(a);d.parentNode===b&&b.removeChild(d);}Bc.has(a)||S._keyToDOMMap["delete"](a);F(c)&&(a=Gc(c,Ac),Hc(a,0,a.length-1,null));void 0!==c&&Xb(Dc,tc,wc,c,"destroyed");}function Hc(a,b,c,d){for(;b<=c;++b){var e=a[b];void 0!==e&&Ec(e,d);}}function Ic(a,b){a.setProperty("text-align",b);}function Jc(a,b){a.style.setProperty("padding-inline-start",0===b?"":20*b+"px");} function Kc(a,b){a=a.style;0===b?Ic(a,""):1===b?Ic(a,"left"):2===b?Ic(a,"center"):3===b?Ic(a,"right"):4===b?Ic(a,"justify"):5===b?Ic(a,"start"):6===b&&Ic(a,"end");} function Lc(a,b,c){var d=Bc.get(a);void 0===d&&q(60);var e=d.createDOM(sc,S);var f=S._keyToDOMMap;e["__lexicalKey_"+S._key]=a;f.set(a,e);B(d)?e.setAttribute("data-lexical-text","true"):z(d)&&e.setAttribute("data-lexical-decorator","true");if(F(d)){a=d.__indent;f=d.__size;0!==a&&Jc(e,a);if(0!==f){--f;a=Gc(d,Bc);var g=Q;Q="";Mc(a,0,f,e,null);Nc(d,e);Q=g;}a=d.__format;0!==a&&Kc(e,a);d.isInline()||Oc(null,d,e);$b(d)&&(P+="\n\n",R+="\n\n");}else f=d.getTextContent(),z(d)?(g=d.decorate(S,sc),null!==g&&Pc(a, g),e.contentEditable="false"):B(d)&&(d.isDirectionless()||(Q+=f)),P+=f,R+=f;null!==b&&(null!=c?b.insertBefore(e,c):(c=b.__lexicalLineBreak,null!=c?b.insertBefore(e,c):b.appendChild(e)));Xb(Dc,tc,wc,d,"created");return e;}function Mc(a,b,c,d,e){var f=P;for(P="";b<=c;++b){Lc(a[b],d,e);}d.__lexicalTextContent=P;P=f+P;}function Qc(a,b){a=b.get(a);return Eb(a)||z(a)&&a.isInline();} function Oc(a,b,c){a=null!==a&&(0===a.__size||Qc(a.__last,Ac));b=0===b.__size||Qc(b.__last,Bc);a?b||(b=c.__lexicalLineBreak,null!=b&&c.removeChild(b),c.__lexicalLineBreak=null):b&&(b=document.createElement("br"),c.__lexicalLineBreak=b,c.appendChild(b));} function Nc(a,b){var c=b.__lexicalDir;if(b.__lexicalDirTextContent!==Q||c!==xc){var f=""===Q;if(f)var d=xc;else d=Q,d=Ya.test(d)?"rtl":Za.test(d)?"ltr":null;if(d!==c){var g=b.classList,h=sc.theme;var e=null!==c?h[c]:void 0;var k=null!==d?h[d]:void 0;void 0!==e&&("string"===typeof e&&(e=e.split(" "),e=h[c]=e),g.remove.apply(g,e));null===d||f&&"ltr"===d?b.removeAttribute("dir"):(void 0!==k&&("string"===typeof k&&(c=k.split(" "),k=h[d]=c),void 0!==k&&g.add.apply(g,k)),b.dir=d);vc||(a.getWritable().__dir=d);}xc= d;b.__lexicalDirTextContent=Q;b.__lexicalDir=d;}}function Gc(a,b){var c=[];for(a=a.__first;null!==a;){var d=b.get(a);if(void 0===d)throw Error("createChildrenArray: node does not exist in nodeMap");c.push(a);a=d.__next;}return c;} function Rc(a,b){var c=Ac.get(a),d=Bc.get(a);void 0!==c&&void 0!==d||q(61);var e=uc||zc.has(a)||yc.has(a);var f=ac(S,a);if(c===d&&!e)return F(c)?(d=f.__lexicalTextContent,void 0!==d&&(P+=d,R+=d),d=f.__lexicalDirTextContent,void 0!==d&&(Q+=d)):(d=c.getTextContent(),B(c)&&!c.isDirectionless()&&(Q+=d),R+=d,P+=d),f;c!==d&&e&&Xb(Dc,tc,wc,d,"updated");if(d.updateDOM(c,f,sc))return d=Lc(a,null,null),null===b&&q(62),b.replaceChild(d,f),Ec(a,null),d;if(F(c)&&F(d)){a=d.__indent;a!==c.__indent&&Jc(f,a);a=d.__format; a!==c.__format&&Kc(f,a);if(e){a=d;e=Q;Q="";b=P;var g=c.__size,h=a.__size;P="";if(1===g&&1===h){var k=c.__first,l=a.__first;if(k===l)Rc(k,f);else{var m=Fc(k);l=Lc(l,null,null);f.replaceChild(l,m);Ec(k,null);}}else{l=Gc(c,Ac);var p=Gc(a,Bc);if(0===g)0!==h&&Mc(p,0,h-1,f,null);else if(0===h)0!==g&&(k=null==f.__lexicalLineBreak,Hc(l,0,g-1,k?null:f),k&&(f.textContent=""));else{var n=l;l=p;p=g-1;g=h-1;var w=f.firstChild,y=0;for(h=0;y<=p&&h<=g;){var r=n[y];var x=l[h];if(r===x)w=Sc(Rc(x,f)),y++,h++;else{void 0=== k&&(k=new Set(n));void 0===m&&(m=new Set(l));var A=m.has(r),U=k.has(x);A?(U?(r=ac(S,x),r===w?w=Sc(Rc(x,f)):(null!=w?f.insertBefore(r,w):f.appendChild(r),Rc(x,f)),y++):Lc(x,f,w),h++):(w=Sc(Fc(r)),Ec(r,f),y++);}}k=y>p;m=h>g;k&&!m?(k=l[g+1],k=void 0===k?null:S.getElementByKey(k),Mc(l,h,g,f,k)):m&&!k&&Hc(n,y,p,f);}}$b(a)&&(P+="\n\n");f.__lexicalTextContent=P;P=b+P;Nc(a,f);Q=e;O(d)||d.isInline()||Oc(c,d,f);}$b(d)&&(P+="\n\n",R+="\n\n");}else c=d.getTextContent(),z(d)?(e=d.decorate(S,sc),null!==e&&Pc(a,e)): B(d)&&!d.isDirectionless()&&(Q+=c),P+=c,R+=c;!vc&&O(d)&&d.__cachedText!==R&&(d=d.getWritable(),d.__cachedText=R);return f;}function Pc(a,b){var c=S._pendingDecorators,d=S._decorators;if(null===c){if(d[a]===b)return;c=Lb(S);}c[a]=b;}function Sc(a){a=a.nextSibling;null!==a&&a===S._blockCursorElement&&(a=a.nextSibling);return a;}function Fc(a){a=Cc.get(a);void 0===a&&q(75);return a;} var T=Object.freeze({}),Zc=[["keydown",Tc],["pointerdown",Uc],["compositionstart",Vc],["compositionend",Wc],["input",Xc],["click",Yc],["cut",T],["copy",T],["dragstart",T],["dragover",T],["dragend",T],["paste",T],["focus",T],["blur",T],["drop",T]];Qa&&Zc.push(["beforeinput",function(a,b){return $c(a,b);}]);var ad=0,bd=0,cd=0,dd=0,ed=!1,fd=!1,gd=!1,hd=!1,id=[0,0,"root",0]; function jd(a,b,c,d){var e=a.anchor,f=a.focus,g=e.getNode();var h=H(),k=E(h._window);k=null!==k?k.anchorNode:null;var l=e.key;h=h.getElementByKey(l);var m=b.length;return l!==f.key||!B(g)||(!d&&(!Qa||cdm||Qb(b))&&e.offset!==f.offset&&!g.isComposing()||Ab(g)||g.isDirty()&&1b&&(d=b);else if(!F(b)){var f=b.getNextSibling();if(B(f))c=f.__key,d=0,e="text";else if(f=b.getParent())c=f.__key,d=b.getIndexWithinParent()+1;}a.set(c,d,e);}function xd(a,b){if(F(b)){var c=b.getLastDescendant();F(c)||B(c)?wd(a,c):wd(a,b);}else wd(a,b);} function yd(a,b,c){var d=a.getNode(),e=d.getChildAtIndex(a.offset),f=M(),g=O(d)?zd().append(f):f;f.setFormat(c);null===e?d.append(g):e.insertBefore(g);a.is(b)&&b.set(f.__key,0,"text");a.set(f.__key,0,"text");}function Ad(a,b,c,d){a.key=b;a.offset=c;a.type=d;}var Bd=function(){function Bd(a){this.dirty=!1;this._nodes=a;this._cachedNodes=null;}var _proto2=Bd.prototype;_proto2.is=function is(a){if(!pd(a))return!1;var b=this._nodes,c=a._nodes;return b.size===c.size&&Array.from(b).every(function(d){return c.has(d);});};_proto2.add=function add(a){this.dirty=!0;this._nodes.add(a);this._cachedNodes=null;};_proto2["delete"]=function _delete(a){this.dirty=!0;this._nodes["delete"](a);this._cachedNodes=null;};_proto2.clear=function clear(){this.dirty=!0;this._nodes.clear();this._cachedNodes=null;};_proto2.has=function has(a){return this._nodes.has(a);};_proto2.clone=function clone(){return new Bd(new Set(this._nodes));};_proto2.extract=function extract(){return this.getNodes();};_proto2.insertRawText=function insertRawText(){};_proto2.insertText=function insertText(){};_proto2.insertNodes=function insertNodes(a, b){var c=this.getNodes(),d=c.length;var e=c[d-1];if(B(e))e=e.select();else{var f=e.getIndexWithinParent()+1;e=e.getParentOrThrow().select(f,f);}e.insertNodes(a,b);for(a=0;a=_iterator5.length)break;_ref11=_iterator5[_i5++];}else{_i5=_iterator5.next();if(_i5.done)break;_ref11=_i5.value;}var c=_ref11;b=L(c),null!==b&&a.push(b);}Kb()||(this._cachedNodes=a);return a;};_proto2.getTextContent=function getTextContent(){var a=this.getNodes(),b="";for(var c=0;c=_iterator6.length)break;_ref12=_iterator6[_i6++];}else{_i6=_iterator6.next();if(_i6.done)break;_ref12=_i6.value;}var d=_ref12;B(d)&&c.push(d);}var e=c.length;if(0===e)this.toggleFormat(a), K(null);else{d=this.anchor;var f=this.focus,g=this.isBackward();b=g?f:d;d=g?d:f;var h=0,k=c[0];f="element"===b.type?0:b.offset;"text"===b.type&&f===k.getTextContentSize()&&(h=1,k=c[1],f=0);if(null!=k){g=k.getFormatFlags(a,null);var l=e-1,m=c[l];e="text"===d.type?d.offset:m.getTextContentSize();if(k.is(m))f!==e&&(0===f&&e===k.getTextContentSize()?k.setFormat(g):(a=k.splitText(f,e),a=0===f?a[0]:a[1],a.setFormat(g),"text"===b.type&&b.set(a.__key,0,"text"),"text"===d.type&&d.set(a.__key,e-f,"text")), this.format=g);else{var _k$splitText,_m$splitText;0!==f&&((_k$splitText=k.splitText(f),k=_k$splitText[1],_k$splitText),f=0);k.setFormat(g);var p=m.getFormatFlags(a,g);0k?k:h,c=f.splitText(a,h>k?h:k),a=0===a?c[0]:c[1],null!=a?[a]:[]):[f];b=d.isBefore(e);B(f)&&(d=b?h:k,d===f.getTextContentSize()?a.shift():0!==d&&((_f$splitText2=f.splitText(d),f=_f$splitText2[1],_f$splitText2),a[0]=f));B(g)&&(f=g.getTextContent().length,b=b?k:h,0===b?a.pop():b!==f&&((_g$splitText=g.splitText(b),g=_g$splitText[0],_g$splitText),a[c]=g));return a;};_proto4.modify=function modify(a,b,c){var d=this.focus,e=this.anchor,f="move"===a,g=Zb(d,b);if(z(g)&&!g.isIsolated())f&&g.isKeyboardSelectable()?(b=Nd(),b.add(g.__key),ob(b)):(a=b?g.getPreviousSibling(): g.getNextSibling(),B(a)?(g=a.__key,b=b?a.getTextContent().length:0,d.set(g,b,"text"),f&&e.set(g,b,"text")):(c=g.getParentOrThrow(),F(a)?(c=a.__key,g=b?a.getChildrenSize():0):(g=g.getIndexWithinParent(),c=c.__key,b||g++),d.set(c,g,"element"),f&&e.set(c,g,"element")));else if(e=H(),d=E(e._window)){var h=e._blockCursorElement,k=e._rootElement;null===k||null===h||!F(g)||g.isInline()||g.canBeEmpty()||kc(h,e,k);d.modify(a,b?"backward":"forward",c);if(0c||l){d.splice(h,1);l&&(g=void 0);break;}}b=d.join("").trim();""===b?a.remove():(a.setTextContent(b),a.select(g,g));} function Qd(a,b,c,d){var e=b;if(1===a.nodeType){var h=!1;var f=a.childNodes,g=f.length;e===g&&(h=!0,e=g-1);var k=f[e];g=!1;k===d._blockCursorElement?(k=f[e+1],g=!0):null!==d._blockCursorElement&&e--;d=Pb(k);if(B(d))e=h?d.getTextContentSize():0;else{f=Pb(a);if(null===f)return null;if(F(f)){a=f.getChildAtIndex(e);if(b=F(a))b=a.getParent(),b=null===c||null===b||!b.canBeEmpty()||b!==c.getNode();b&&(c=h?a.getLastDescendant():a.getFirstDescendant(),null===c?(f=a,e=0):(a=c,f=F(a)?a:a.getParentOrThrow())); B(a)?(d=a,f=null,e=h?a.getTextContentSize():0):a!==f&&h&&!g&&e++;}else e=f.getIndexWithinParent(),e=0===b&&z(f)&&Pb(a)===f?e:e+1,f=f.getParentOrThrow();if(F(f))return new W(f.__key,e,"element");}}else d=Pb(a);return B(d)?new W(d.__key,e,"text"):null;} function Rd(a,b,c){var d=a.offset,e=a.getNode();0===d?(d=e.getPreviousSibling(),e=e.getParent(),b)?(c||!b)&&null===d&&F(e)&&e.isInline()&&(b=e.getPreviousSibling(),B(b)&&(a.key=b.__key,a.offset=b.getTextContent().length)):F(d)&&!c&&d.isInline()?(a.key=d.__key,a.offset=d.getChildrenSize(),a.type="element"):B(d)&&(a.key=d.__key,a.offset=d.getTextContent().length):d===e.getTextContent().length&&(d=e.getNextSibling(),e=e.getParent(),b&&F(d)&&d.isInline()?(a.key=d.__key,a.offset=0,a.type="element"):(c|| b)&&null===d&&F(e)&&e.isInline()&&!e.canInsertTextAfter()&&(b=e.getNextSibling(),B(b)&&(a.key=b.__key,a.offset=0)));}function Ld(a,b,c){if("text"===a.type&&"text"===b.type){var d=a.isBefore(b);var e=a.is(b);Rd(a,d,e);Rd(b,!d,e);e&&(b.key=a.key,b.offset=a.offset,b.type=a.type);d=H();d.isComposing()&&d._compositionKey!==a.key&&C(c)&&(d=c.anchor,c=c.focus,Ad(a,d.key,d.offset,d.type),Ad(b,c.key,c.offset,c.type));}} function Jd(a,b,c,d,e,f){if(null===a||null===c||!xb(e,a,c))return null;b=Qd(a,b,C(f)?f.anchor:null,e);if(null===b)return null;d=Qd(c,d,C(f)?f.focus:null,e);if(null===d||"element"===b.type&&"element"===d.type&&(a=Pb(a),c=Pb(c),z(a)&&z(c)))return null;Ld(b,d,f);return[b,d];}function Md(a){return F(a)&&!a.isInline();}function Sd(a,b,c,d,e,f){var g=I();a=new Cd(new W(a,b,e),new W(c,d,f),0);a.dirty=!0;return g._selection=a;}function Nd(){return new Bd(new Set());} function Td(a){var b=a.getEditorState()._selection,c=E(a._window);return pd(b)||Ed(b)?b.clone():td(b,c,a);} function td(a,b,c){var d=c._window;if(null===d)return null;var e=d.event,f=e?e.type:void 0;d="selectionchange"===f;e=!fb&&(d||"beforeinput"===f||"compositionstart"===f||"compositionend"===f||"click"===f&&e&&3===e.detail||"drop"===f||void 0===f);var g;if(!C(a)||e){if(null===b)return null;e=b.anchorNode;f=b.focusNode;g=b.anchorOffset;b=b.focusOffset;if(d&&C(a)&&!xb(c,e,f))return a.clone();}else return a.clone();c=Jd(e,g,f,b,c,a);if(null===c)return null;var _c=c,h=_c[0],k=_c[1];return new Cd(h,k,C(a)?a.format:0);} function u(){return I()._selection;}function Ub(){return H()._editorState._selection;} function Ud(a,b,c,d){if(d===void 0){d=1;}var e=a.anchor,f=a.focus,g=e.getNode(),h=f.getNode();if(b.is(g)||b.is(h))if(g=b.__key,a.isCollapsed())b=e.offset,c<=b&&(c=Math.max(0,b+d),e.set(g,c,"element"),f.set(g,c,"element"),Vd(a));else{var k=a.isBackward();h=k?f:e;var l=h.getNode();e=k?e:f;f=e.getNode();b.is(l)&&(l=h.offset,c<=l&&h.set(g,Math.max(0,l+d),"element"));b.is(f)&&(b=e.offset,c<=b&&e.set(g,Math.max(0,b+d),"element"));Vd(a);}} function Vd(a){var b=a.anchor,c=b.offset;var d=a.focus;var e=d.offset,f=b.getNode(),g=d.getNode();if(a.isCollapsed())F(f)&&(g=f.getChildrenSize(),g=(e=c>=g)?f.getChildAtIndex(g-1):f.getChildAtIndex(c),B(g)&&(c=0,e&&(c=g.getTextContentSize()),b.set(g.__key,c,"text"),d.set(g.__key,c,"text")));else{if(F(f)){var h=f.getChildrenSize();c=(a=c>=h)?f.getChildAtIndex(h-1):f.getChildAtIndex(c);B(c)&&(f=0,a&&(f=c.getTextContentSize()),b.set(c.__key,f,"text"));}F(g)&&(c=g.getChildrenSize(),e=(b=e>=c)?g.getChildAtIndex(c- 1):g.getChildAtIndex(e),B(e)&&(g=0,b&&(g=e.getTextContentSize()),d.set(e.__key,g,"text")));}}function Wd(a,b){b=b.getEditorState()._selection;a=a._selection;if(C(a)){var c=a.anchor;var d=a.focus,e;"text"===c.type&&(e=c.getNode(),e.selectionTransform(b,a));"text"===d.type&&(c=d.getNode(),e!==c&&c.selectionTransform(b,a));}} function Xd(a,b,c,d,e){var f=null,g=0,h=null;null!==d?(f=d.__key,B(d)?(g=d.getTextContentSize(),h="text"):F(d)&&(g=d.getChildrenSize(),h="element")):null!==e&&(f=e.__key,B(e)?h="text":F(e)&&(h="element"));null!==f&&null!==h?a.set(f,g,h):(g=b.getIndexWithinParent(),-1===g&&(g=c.getChildrenSize()),a.set(c.__key,g,"element"));}function Yd(a,b,c,d,e){"text"===a.type?(a.key=c,b||(a.offset+=e)):a.offset>d.getIndexWithinParent()&&--a.offset;} function Zd(a,b,c,d,e,f,g){var h=d.anchorNode,k=d.focusNode,l=d.anchorOffset,m=d.focusOffset,p=document.activeElement;if(!(e.has("collaboration")&&p!==f||null!==p&&wb(p)))if(C(b)){var n=b.anchor,r=b.focus,w=n.key,y=r.key,x=ac(c,w);y=ac(c,y);var A=n.offset,U=r.offset,J=b.format,da=b.isCollapsed(),N=x,D=y,aa=!1;"text"===n.type&&(N=Bb(x),aa=n.getNode().getFormat()!==J);"text"===r.type&&(D=Bb(y));if(null!==N&&null!==D){da&&(null===a||aa||C(a)&&a.format!==J)&&vd(J,A,w,performance.now());if(l===A&&m=== U&&h===N&&k===D&&("Range"!==d.type||!da)&&(null!==p&&f.contains(p)||f.focus({preventScroll:!0}),"element"!==n.type))return;if(!e.has("skip-scroll-into-view"))try{Ta&&1000=_iterator7.length)break;_ref13=_iterator7[_i7++];}else{_i7=_iterator7.next();if(_i7.done)break;_ref13=_i7.value;}var c=_ref13;b=a.get(c),B(b)&&b.isAttached()&&b.isSimpleText()&&!b.isUnmergeable()&&pc(b);}} function de(a,b){var c=b._dirtyLeaves,d=b._dirtyElements;a=a._nodeMap;var e=Jb(),f=new Map();var g=c;var h=g.size;for(var k=d,l=k.size;0=_iterator8.length)break;_ref14=_iterator8[_i8++];}else{_i8=_iterator8.next();if(_i8.done)break;_ref14=_i8.value;}var m=_ref14;g=a.get(m),B(g)&&g.isAttached()&&g.isSimpleText()&&!g.isUnmergeable()&&pc(g),void 0!==g&&void 0!==g&&g.__key!==e&&g.isAttached()&&be(b,g,f),c.add(m);}g=b._dirtyLeaves;h=g.size;if(0=_iterator9.length)break;_ref15=_iterator9[_i9++];}else{_i9=_iterator9.next();if(_i9.done)break;_ref15=_i9.value;}var _m=_ref15;if(k=_m[0],l=_m[1],"root"===k||l)g=a.get(k),void 0!== g&&void 0!==g&&g.__key!==e&&g.isAttached()&&be(b,g,f),d.set(k,l);}g=b._dirtyLeaves;h=g.size;k=b._dirtyElements;l=k.size;Gb++;}b._dirtyLeaves=c;b._dirtyElements=d;}function ee(a,b){var c=b.get(a.type);void 0===c&&q(17);c=c.klass;a.type!==c.getType()&&q(18);c=c.importJSON(a);a=a.children;if(F(c)&&Array.isArray(a))for(var d=0;d3?_len-3:0),_key=3;_key<_len;_key++){d[_key-3]=arguments[_key];}for(a=0;a=c)return a=b[c-1],F(a)&&a.getLastDescendant()||a||null;a=b[a];return F(a)&&a.getFirstDescendant()||a||null;};_proto7.getFirstChild=function getFirstChild(){var a=this.getLatest().__first;return null===a?null:L(a);};_proto7.getFirstChildOrThrow=function getFirstChildOrThrow(){var a=this.getFirstChild();null===a&&q(45);return a;};_proto7.getLastChild=function getLastChild(){var a=this.getLatest().__last;return null===a?null:L(a);};_proto7.getLastChildOrThrow=function getLastChildOrThrow(){var a= this.getLastChild();null===a&&q(96);return a;};_proto7.getChildAtIndex=function getChildAtIndex(a){var b=this.getChildrenSize();var c;if(a=a;){if(b===a)return c;c=c.getPreviousSibling();b--;}return null;};_proto7.getTextContent=function getTextContent(){var a="",b=this.getChildren(),c=b.length;for(var d=0;dh&&(h=g+h,0>h&&(h=0));var k=u();d&&C(k)&&(a+=g,k.setTextNodeRange(e,a,e,a));b=f.slice(0,h)+c+f.slice(h+b);e.__text=b;return e;};_proto11.canInsertTextBefore=function canInsertTextBefore(){return!0;};_proto11.canInsertTextAfter=function canInsertTextAfter(){return!0;};_proto11.splitText=function splitText(){for(var _len4=arguments.length,a=new Array(_len4),_key4=0;_key4<_len4;_key4++){a[_key4]=arguments[_key4];}G();var b=this.getLatest(),c=b.getTextContent(),d=b.__key,e=Jb(),f=new Set(a);a=[];var g=c.length,h="";for(var k=0;kl&&x.offset<=r&&(x.key=y,x.offset-=l,b.dirty=!0);A.key===d&&"text"===A.type&&A.offset>l&&A.offset<=r&&(A.key=y,A.offset-=l,b.dirty=!0);}e===d&&K(y);l=r;h.push(n);}d=this.getPreviousSibling(); e=this.getNextSibling();null!==d&&Ib(d);null!==e&&Ib(e);d=c.getWritable();e=this.getIndexWithinParent();g?(d.splice(e,0,h),this.remove()):d.splice(e,1,h);C(b)&&Ud(b,c,e,f-1);return h;};_proto11.mergeWithSibling=function mergeWithSibling(a){var b=a===this.getPreviousSibling();b||a===this.getNextSibling()||q(50);var c=this.__key;var d=a.__key,e=this.__text,f=e.length;Jb()===d&&K(c);var g=u();if(C(g)){var h=g.anchor,k=g.focus;null!==h&&h.key===d&&(Yd(h,b,c,a,f),g.dirty=!0);null!==k&&k.key===d&&(Yd(k,b,c,a,f),g.dirty=!0);}c=a.__text;this.setTextContent(b? c+e:e+c);b=this.getWritable();a.remove();return b;};_proto11.isTextEntity=function isTextEntity(){return!1;};return Ce;}(oe); function Je(a){var b="700"===a.style.fontWeight,c="line-through"===a.style.textDecoration,d="italic"===a.style.fontStyle,e="underline"===a.style.textDecoration,f=a.style.verticalAlign;return{forChild:function forChild(g){if(!B(g))return g;b&&g.toggleFormat("bold");c&&g.toggleFormat("strikethrough");d&&g.toggleFormat("italic");e&&g.toggleFormat("underline");"sub"===f&&g.toggleFormat("subscript");"super"===f&&g.toggleFormat("superscript");return g;},node:null};}function Fe(){return{node:Kd()};} function Ee(a){var b="normal"===a.style.fontWeight;return{forChild:function forChild(c){B(c)&&!b&&c.toggleFormat("bold");return c;},node:null};}function De(a,b,c){a=a.textContent||"";return!c&&/\n/.test(a)&&(a=a.replace(/\r?\n/gm," "),0===a.trim().length)?{node:null}:{node:M(a)};}var Ke={code:"code",em:"italic",i:"italic",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"}; function Ie(a){var b=Ke[a.nodeName.toLowerCase()];return void 0===b?{node:null}:{forChild:function forChild(c){B(c)&&c.toggleFormat(b);return c;},node:null};}function M(a){if(a===void 0){a="";}return gc(new Ce(a));}function B(a){return a instanceof Ce;}var Le=function(_qe2){babelHelpers.inheritsLoose(Le,_qe2);function Le(){return _qe2.apply(this,arguments)||this;}Le.getType=function getType(){return"paragraph";};Le.clone=function clone(a){return new Le(a.__key);};var _proto12=Le.prototype;_proto12.createDOM=function createDOM(a){var _b$classList;var b=document.createElement("p");a=Wb(a.theme,"paragraph");void 0!==a&&(_b$classList=b.classList).add.apply(_b$classList,a);return b;};_proto12.updateDOM=function updateDOM(){return!1;};Le.importDOM=function importDOM(){return{p:function p(){return{conversion:Me,priority:0};}};};_proto12.exportDOM=function exportDOM(a){var _qe2$prototype$export=_qe2.prototype.exportDOM.call(this,a);a=_qe2$prototype$export.element;a&&this.isEmpty()&&a.append(document.createElement("br"));if(a){var b=this.getFormatType();a.style.textAlign=b;if(b=this.getDirection())a.dir=b;b=this.getIndent(); 0=_iterator10.length)break;_ref17=_iterator10[_i10++];}else{_i10=_iterator10.next();if(_i10.done)break;_ref17=_i10.value;}var _ref18=_ref17;var f=_ref18[1];f instanceof a&&f.__type===d&&(c||f.isAttached())&&e.push(f);}return e;};exports.$normalizeSelection__EXPERIMENTAL=qc;exports.$parseSerializedNode=function(a){return ee(a,H()._nodes);};exports.$setCompositionKey=K;exports.$setSelection=ob;exports.BLUR_COMMAND=La;exports.CAN_REDO_COMMAND={};exports.CAN_UNDO_COMMAND={};exports.CLEAR_EDITOR_COMMAND={};exports.CLEAR_HISTORY_COMMAND={}; exports.CLICK_COMMAND=ca;exports.COMMAND_PRIORITY_CRITICAL=4;exports.COMMAND_PRIORITY_EDITOR=0;exports.COMMAND_PRIORITY_HIGH=3;exports.COMMAND_PRIORITY_LOW=1;exports.COMMAND_PRIORITY_NORMAL=2;exports.CONTROLLED_TEXT_INSERTION_COMMAND=ia;exports.COPY_COMMAND=Ia;exports.CUT_COMMAND=Ja;exports.DELETE_CHARACTER_COMMAND=ea;exports.DELETE_LINE_COMMAND=na;exports.DELETE_WORD_COMMAND=ma; exports.DEPRECATED_$createGridSelection=function(){var a=new W("root",0,"element"),b=new W("root",0,"element");return new Dd("root",a,b);};exports.DEPRECATED_$isGridCellNode=Id;exports.DEPRECATED_$isGridNode=Gd;exports.DEPRECATED_$isGridRowNode=Hd;exports.DEPRECATED_$isGridSelection=Ed;exports.DEPRECATED_GridCellNode=Pe;exports.DEPRECATED_GridNode=Qe;exports.DEPRECATED_GridRowNode=Re;exports.DRAGEND_COMMAND=Ha;exports.DRAGOVER_COMMAND=Ga;exports.DRAGSTART_COMMAND=Fa;exports.DROP_COMMAND=Ea; exports.DecoratorNode=pe;exports.ElementNode=qe;exports.FOCUS_COMMAND=Ka;exports.FORMAT_ELEMENT_COMMAND={};exports.FORMAT_TEXT_COMMAND=oa;exports.INDENT_CONTENT_COMMAND={};exports.INSERT_LINE_BREAK_COMMAND=fa;exports.INSERT_PARAGRAPH_COMMAND=ha;exports.KEY_ARROW_DOWN_COMMAND=wa;exports.KEY_ARROW_LEFT_COMMAND=ta;exports.KEY_ARROW_RIGHT_COMMAND=ra;exports.KEY_ARROW_UP_COMMAND=va;exports.KEY_BACKSPACE_COMMAND=za;exports.KEY_DELETE_COMMAND=Ba;exports.KEY_ENTER_COMMAND=xa;exports.KEY_ESCAPE_COMMAND=Aa; exports.KEY_MODIFIER_COMMAND=Ma;exports.KEY_SPACE_COMMAND=ya;exports.KEY_TAB_COMMAND=Da;exports.LineBreakNode=ve;exports.MOVE_TO_END=sa;exports.MOVE_TO_START=ua;exports.OUTDENT_CONTENT_COMMAND={};exports.PASTE_COMMAND=ja;exports.ParagraphNode=Le;exports.REDO_COMMAND=qa;exports.REMOVE_TEXT_COMMAND=ka;exports.RootNode=se;exports.SELECTION_CHANGE_COMMAND=ba;exports.TextNode=Ce;exports.UNDO_COMMAND=pa;exports.createCommand=function(){return{};}; exports.createEditor=function(a){var b=a||{},c=Y,d=b.theme||{};var e=void 0===a?c:b.parentEditor||null,f=b.disableEvents||!1,g=te(),h=b.namespace||(null!==e?e._config.namespace:Sb()),k=b.editorState,l=[se,Ce,ve,Le].concat(b.nodes||[]),m=b.onError;b=void 0!==b.editable?b.editable:!0;if(void 0===a&&null!==c)a=c._nodes;else for(a=new Map(),c=0;cg)return{node:b,offset:g-c};c+=e;}e=b.getNextSibling();if(null!==e)b=e;else{for(b=b.getParent();null!==b;){e=b.getNextSibling();if(null!==e){b=e;continue a;}b=b.getParent();}break;}}return null;}; exports.$isRootTextContentEmpty=r;exports.$isRootTextContentEmptyCurry=function(c,g){return function(){return r(c,g);};};exports.$rootTextContent=t; exports.registerLexicalTextEntity=function(c,g,b,e){var n=function n(a){var d=require("Lexical").$createTextNode(a.getTextContent());d.setFormat(a.getFormat());a.replace(d);},p=c.registerNodeTransform(require("Lexical").TextNode,function(a){if(a.isSimpleText()){var d=a.getPreviousSibling(),l=a.getTextContent(),m=a;if(require("Lexical").$isTextNode(d)){var k=d.getTextContent(),f=g(k+l);if(d instanceof b){if(null===f||0!==d.getLatest().__mode){n(d);return;}f=f.end-k.length;if(0l.end?a.splitText(l.end):(d=a.getPreviousSibling(),require("Lexical").$isTextNode(d)&&d.isTextEntity()&&(n(d),n(a)),d=a.getNextSibling(),require("Lexical").$isTextNode(d)&&d.isTextEntity()&&(n(d),a instanceof b&&n(a)));});return[p,c];};}),null); __d("react-relay/ReactRelayQueryFetcher",["invariant","relay-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h=b("relay-runtime").__internal.fetchQuery,i=b("relay-runtime").createOperationDescriptor,j=b("relay-runtime").isRelayModernEnvironment;a=function(){function a(a){this.$4=[],this.$8=!1,a!=null&&(this.$7=a.cacheSelectionReference,this.$4=a.selectionReferences)}var b=a.prototype;b.getSelectionReferences=function(){return{cacheSelectionReference:this.$7,selectionReferences:this.$4}};b.lookupInStore=function(a,b,c){if((c==="store-and-network"||c==="store-or-network")&&a.check(b).status==="available"){this.$9(a,b);return a.lookup(b.fragment)}return null};b.getFetchResult=function(){if(this.$8){if(this.$6!=null)return{error:this.$6};else if(this.$5!=null)return{snapshot:this.$5}}else return null};b.execute=function(a){var b=this,c=a.environment,d=a.operation;a=a.preservePreviousReferences;var e=a===void 0?!1:a,f=c.retain(d);a=function(){b.$4=b.$4.concat(f)};var g=function(){e||b.disposeSelectionReferences(),b.$4=b.$4.concat(f)},i=function(){b.$4=b.$4.concat(f)};return!j(c)?c.execute({operation:d})["do"]({error:a,complete:g,unsubscribe:i}):h(c,d)["do"]({error:a,complete:g,unsubscribe:i})};b.setOnDataChange=function(a){this.$1||g(0,4542),typeof a==="function"&&(this.$1.onDataChangeCallbacks=this.$1.onDataChangeCallbacks||[],this.$1.onDataChangeCallbacks.push(a),this.$8&&(this.$6!=null?a({error:this.$6}):this.$5!=null&&a({snapshot:this.$5})))};b.fetch=function(a,b){var c=this,d=a.environment,e=a.operation;a=a.onDataChange;var f=!1,g;this.disposeRequest();var h=this.$1&&this.$1.onDataChangeCallbacks;this.$1={environment:d,onDataChangeCallbacks:h||[],operation:e};a&&this.$1.onDataChangeCallbacks.indexOf(a)===-1&&this.$1.onDataChangeCallbacks.push(a);h=b?i(e.request.node,e.request.variables,b):e;var j=this.execute({environment:d,operation:h})["finally"](function(){c.$2=null}).subscribe({next:function(){c.$8=!0,c.$6=null,c.$10({notifyFirstResult:f})},error:function(a){c.$8=!0;c.$6=a;c.$5=null;var b=c.$1&&c.$1.onDataChangeCallbacks;f?b&&b.forEach(function(b){b({error:a})}):g=a}});this.$2={dispose:function(){j.unsubscribe()}};f=!0;if(g)throw g;return this.$5};b.retry=function(a){this.$1||g(0,4543);return this.fetch({environment:this.$1.environment,operation:this.$1.operation,onDataChange:null},a)};b.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()};b.disposeRequest=function(){this.$6=null,this.$5=null,this.$2&&this.$2.dispose(),this.$3&&(this.$3.dispose(),this.$3=null)};b.$9=function(a,b){this.$11(),this.$7=a.retain(b)};b.$11=function(){this.$7&&this.$7.dispose(),this.$7=null};b.disposeSelectionReferences=function(){this.$11(),this.$4.forEach(function(a){return a.dispose()}),this.$4=[]};b.$10=function(a){var b=this;a=a.notifyFirstResult;this.$1||g(0,4544);var c=this.$1,d=c.environment,e=c.onDataChangeCallbacks;c=c.operation;if(this.$5)return;this.$5=d.lookup(c.fragment);this.$3=d.subscribe(this.$5,function(a){if(b.$1!=null){var c=b.$1.onDataChangeCallbacks;Array.isArray(c)&&c.forEach(function(b){return b({snapshot:a})})}});if(this.$5&&a&&Array.isArray(e)){var f=this.$5;e.forEach(function(a){return a({snapshot:f})})}};return a}();e.exports=a}),null); __d("react-relay/isRelayEnvironment",[],(function(a,b,c,d,e,f){"use strict";function a(a){return typeof a==="object"&&a!==null&&typeof a.check==="function"&&typeof a.lookup==="function"&&typeof a.retain==="function"&&typeof a.execute==="function"&&typeof a.subscribe==="function"}e.exports=a}),null); __d("react-relay/RelayContext",["invariant","react-relay/isRelayEnvironment"],(function(a,b,c,d,e,f,g){"use strict";function a(a){h(a)||g(0,6172,a);return a}function h(a){return typeof a==="object"&&a!==null&&!Array.isArray(a)&&b("react-relay/isRelayEnvironment")(a.environment)}e.exports={assertRelayContext:a,isRelayContext:h}}),null); __d("isValidUniqueID",[],(function(a,b,c,d,e,f){function a(a){return a!==null&&a!==void 0&&a!==""&&(typeof a==="string"||typeof a==="number")}f["default"]=a}),66); __d("SearchableEntry",["FbtResultBase","HTML","isValidUniqueID"],(function(a,b,c,d,e,f,g){function h(a){if(a==null||a==="")return"";else if(typeof a==="string")return a;else if(a instanceof c("FbtResultBase"))return a.toString();else if(typeof a==="object"){a=c("HTML").replaceJSONWrapper(a);if(c("HTML").isHTML(a)){a=a.getRootNode();return a.textContent||a.innerText||""}else return""}else return""}a=function(){function a(a){this.valueOf=this.getUniqueID;c("isValidUniqueID")(a.uniqueID)||(a.uniqueID="null");this.$8=a.uniqueID+"";a.title instanceof c("FbtResultBase")&&(a.title=a.title.toString());a.title!=null&&typeof a.title==="string"||(a.title="null");this.$6=a.title;this.$3=a.order||0;this.$5=h(a.subtitle);this.$2=a.keywordString||"";this.$4=a.photo||"";this.$9=a.uri||"";this.$7=h(a.type);var b=a.auxiliaryData==null?{}:a.auxiliaryData;this.$1=b;this.$10=a.dataType||""}var b=a.prototype;b.getUniqueID=function(){return this.$8};b.getOrder=function(){return this.$3};b.getTitle=function(){return this.$6};b.getSubtitle=function(){return this.$5};b.getKeywordString=function(){return this.$2};b.getPhoto=function(){return this.$4};b.getURI=function(){return this.$9};b.getType=function(){return this.$7};b.getAuxiliaryData=function(){return this.$1};b.getDataType=function(){return this.$10};b.toPlainObject=function(){return{auxiliaryData:this.$1,keywordString:this.$2,order:this.$3,photo:this.$4,subtitle:this.$5,title:this.$6,type:this.$7,uniqueID:this.$8,uri:this.$9,dataType:this.$10}};return a}();g["default"]=a}),98); __d("CometResharesDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="9610896335594525"}),null);