elseware-ui 2.22.0 → 2.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/surfaces/card/Card.d.ts +2 -2
- package/build/index.es.js +3231 -27
- package/build/index.js +3231 -26
- package/build/utils/cn.d.ts +2 -0
- package/build/utils/index.d.ts +1 -0
- package/package.json +2 -1
package/build/index.js
CHANGED
|
@@ -1332,7 +1332,7 @@ function almostEquals(x, y, epsilon) {
|
|
|
1332
1332
|
*/ function isNonPrimitive(n) {
|
|
1333
1333
|
return typeof n === 'symbol' || typeof n === 'object' && n !== null && !(Symbol.toPrimitive in n || 'toString' in n || 'valueOf' in n);
|
|
1334
1334
|
}
|
|
1335
|
-
function isNumber(n) {
|
|
1335
|
+
function isNumber$1(n) {
|
|
1336
1336
|
return !isNonPrimitive(n) && !isNaN(parseFloat(n)) && isFinite(n);
|
|
1337
1337
|
}
|
|
1338
1338
|
function almostWhole(x, epsilon) {
|
|
@@ -5736,7 +5736,7 @@ class LineController extends DatasetController {
|
|
|
5736
5736
|
const iAxis = iScale.axis;
|
|
5737
5737
|
const vAxis = vScale.axis;
|
|
5738
5738
|
const { spanGaps , segment } = this.options;
|
|
5739
|
-
const maxGapLength = isNumber(spanGaps) ? spanGaps : Number.POSITIVE_INFINITY;
|
|
5739
|
+
const maxGapLength = isNumber$1(spanGaps) ? spanGaps : Number.POSITIVE_INFINITY;
|
|
5740
5740
|
const directUpdate = this.chart._animationsDisabled || reset || mode === 'none';
|
|
5741
5741
|
const end = start + count;
|
|
5742
5742
|
const pointsCount = points.length;
|
|
@@ -6729,7 +6729,7 @@ class Element$4 {
|
|
|
6729
6729
|
};
|
|
6730
6730
|
}
|
|
6731
6731
|
hasValue() {
|
|
6732
|
-
return isNumber(this.x) && isNumber(this.y);
|
|
6732
|
+
return isNumber$1(this.x) && isNumber$1(this.y);
|
|
6733
6733
|
}
|
|
6734
6734
|
getProps(props, final) {
|
|
6735
6735
|
const anims = this.$animations;
|
|
@@ -13305,7 +13305,7 @@ const INTERVALS = {
|
|
|
13305
13305
|
return null;
|
|
13306
13306
|
}
|
|
13307
13307
|
if (round) {
|
|
13308
|
-
value = round === 'week' && (isNumber(isoWeekday) || isoWeekday === true) ? adapter.startOf(value, 'isoWeek', isoWeekday) : adapter.startOf(value, round);
|
|
13308
|
+
value = round === 'week' && (isNumber$1(isoWeekday) || isoWeekday === true) ? adapter.startOf(value, 'isoWeek', isoWeekday) : adapter.startOf(value, round);
|
|
13309
13309
|
}
|
|
13310
13310
|
return +value;
|
|
13311
13311
|
}
|
|
@@ -13532,7 +13532,7 @@ class TimeScale extends Scale {
|
|
|
13532
13532
|
const minor = timeOpts.unit || determineUnitForAutoTicks(timeOpts.minUnit, min, max, this._getLabelCapacity(min));
|
|
13533
13533
|
const stepSize = valueOrDefault(options.ticks.stepSize, 1);
|
|
13534
13534
|
const weekday = minor === 'week' ? timeOpts.isoWeekday : false;
|
|
13535
|
-
const hasWeekday = isNumber(weekday) || weekday === true;
|
|
13535
|
+
const hasWeekday = isNumber$1(weekday) || weekday === true;
|
|
13536
13536
|
const ticks = {};
|
|
13537
13537
|
let first = min;
|
|
13538
13538
|
let time, count;
|
|
@@ -37747,7 +37747,7 @@ var isObject$2 = function isObject(obj) {
|
|
|
37747
37747
|
};
|
|
37748
37748
|
/** @private is the given object an integer? */
|
|
37749
37749
|
|
|
37750
|
-
var isInteger$
|
|
37750
|
+
var isInteger$2 = function isInteger(obj) {
|
|
37751
37751
|
return String(Math.floor(Number(obj))) === obj;
|
|
37752
37752
|
};
|
|
37753
37753
|
/** @private is the given object a string? */
|
|
@@ -37852,7 +37852,7 @@ function setIn(obj, path, value) {
|
|
|
37852
37852
|
resVal = resVal[currentPath] = clone(currentObj);
|
|
37853
37853
|
} else {
|
|
37854
37854
|
var nextPath = pathArray[i + 1];
|
|
37855
|
-
resVal = resVal[currentPath] = isInteger$
|
|
37855
|
+
resVal = resVal[currentPath] = isInteger$2(nextPath) && Number(nextPath) >= 0 ? [] : {};
|
|
37856
37856
|
}
|
|
37857
37857
|
} // Return original object if new value is the same as current
|
|
37858
37858
|
|
|
@@ -72090,7 +72090,7 @@ var scrollDroppable = (function (droppable, newScroll) {
|
|
|
72090
72090
|
return result;
|
|
72091
72091
|
});
|
|
72092
72092
|
|
|
72093
|
-
function isInteger(value) {
|
|
72093
|
+
function isInteger$1(value) {
|
|
72094
72094
|
if (Number.isInteger) {
|
|
72095
72095
|
return Number.isInteger(value);
|
|
72096
72096
|
}
|
|
@@ -79501,7 +79501,7 @@ function useValidation$1(props, contextId, getRef) {
|
|
|
79501
79501
|
var id = props.draggableId;
|
|
79502
79502
|
!id ? process.env.NODE_ENV !== "production" ? invariant(false, 'Draggable requires a draggableId') : invariant(false) : void 0;
|
|
79503
79503
|
!(typeof id === 'string') ? process.env.NODE_ENV !== "production" ? invariant(false, "Draggable requires a [string] draggableId.\n Provided: [type: " + typeof id + "] (value: " + id + ")") : invariant(false) : void 0;
|
|
79504
|
-
!isInteger(props.index) ? process.env.NODE_ENV !== "production" ? invariant(false, prefix(id) + " requires an integer index prop") : invariant(false) : void 0;
|
|
79504
|
+
!isInteger$1(props.index) ? process.env.NODE_ENV !== "production" ? invariant(false, prefix(id) + " requires an integer index prop") : invariant(false) : void 0;
|
|
79505
79505
|
|
|
79506
79506
|
if (props.mapped.type === 'DRAGGING') {
|
|
79507
79507
|
return;
|
|
@@ -94429,7 +94429,7 @@ var modDev$p = /*#__PURE__*/Object.freeze({
|
|
|
94429
94429
|
*
|
|
94430
94430
|
*/
|
|
94431
94431
|
|
|
94432
|
-
function t$2(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const e$3="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,n$5=e$3&&"documentMode"in document?document.documentMode:null,r$1=e$3&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),i$1=e$3&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),s$1=!(!e$3||!("InputEvent"in window)||n$5)&&"getTargetRanges"in new window.InputEvent("input"),o$4=e$3&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),l$4=e$3&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c$5=e$3&&/Android/.test(navigator.userAgent),a$5=e$3&&/^(?=.*Chrome).*/i.test(navigator.userAgent),u$4=e$3&&c$5&&a$5,f$5=e$3&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!a$5;function d$5(...t){const e=[];for(const n of t)if(n&&"string"==typeof n)for(const[t]of n.matchAll(/\S+/g))e.push(t);return e}const h$6=1,g$7=3,_$6=9,p$4=11,m$6=0,y$6=1,x$8=2,S$4=0,v$5=1,C$6=2,k$8=1,b$8=2,T$3=4,w$6=8,N$7=16,E$7=32,P$5=64,F$4=128,L$5=1792|(112|(3|T$3|w$6)|F$4),A$4=1,O$6=2,M$5=3,I$5=4,D$6=5,z$4=6,B$4=o$4||l$4||f$5?" ":"",W$3="\n\n",K$3=i$1?" ":B$4,R$5="֑-߿יִ-﷽ﹰ-ﻼ",J$3="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",j$3=new RegExp("^[^"+J$3+"]*["+R$5+"]"),$$3=new RegExp("^[^"+R$5+"]*["+J$3+"]"),V$3={bold:1,capitalize:1024,code:16,highlight:F$4,italic:2,lowercase:256,strikethrough:T$3,subscript:32,superscript:64,underline:w$6,uppercase:512},U$5={directionless:1,unmergeable:2},q$4={center:O$6,end:z$4,justify:I$5,left:A$4,right:M$5,start:D$6},H$4={[O$6]:"center",[z$4]:"end",[I$5]:"justify",[A$4]:"left",[M$5]:"right",[D$6]:"start"},G$4={normal:0,segmented:2,token:1},Q$3={[S$4]:"normal",[C$6]:"segmented",[v$5]:"token"},X$3="$";function Y$3(t,e,n,r,i,s){let o=t.getFirstChild();for(;null!==o;){const t=o.__key;o.__parent===e&&(di(o)&&Y$3(o,t,n,r,i,s),n.has(t)||s.delete(t),i.push(t)),o=o.getNextSibling();}}const Z$2=100;let tt$2=!1,et$2=0;function nt$2(t){et$2=t.timeStamp;}function rt$2(t,e,n){const r="BR"===t.nodeName,i=e.__lexicalLineBreak;return i&&(t===i||r&&t.previousSibling===i)||r&&void 0!==ns(t,n)}function it$2(t,e,n){const r=Xs(Rs(n));let i=null,s=null;null!==r&&r.anchorNode===t&&(i=r.anchorOffset,s=r.focusOffset);const o=t.nodeValue;null!==o&&ps(e,o,i,s,!1);}function st$2(t,e,n){if(lr(t)){const e=t.anchor.getNode();if(e.is(n)&&t.format!==e.getFormat())return !1}return $i(e)&&n.isAttached()}function ot$1(t,e,n,r){for(let i=t;i&&!po(i);i=Ms(i)){const t=ns(i,e);if(void 0!==t){const e=ts(t,n);if(e)return _i(e)||!eo(i)?void 0:[i,e]}else if(i===r)return [r,ls(n)]}}function lt$2(t,e,n){tt$2=!0;const r=performance.now()-et$2>Z$2;try{ci(t,(()=>{const s=Tr()||function(t){return t.getEditorState().read((()=>{const t=Tr();return null!==t?t.clone():null}))}(t),o=new Map,l=t.getRootElement(),c=t._editorState,a=t._blockCursorElement;let u=!1,f="";for(let n=0;n<e.length;n++){const d=e[n],h=d.type,g=d.target,_=ot$1(g,t,c,l);if(!_)continue;const[p,m]=_;if("characterData"===h)r&&Xn(m)&&$i(g)&&st$2(s,g,m)&&it$2(g,m,t);else if("childList"===h){u=!0;const e=d.addedNodes;for(let n=0;n<e.length;n++){const r=e[n],s=es(r),o=r.parentNode;if(null!=o&&r!==a&&null===s&&!rt$2(r,o,t)){if(i$1){const t=(eo(r)?r.innerText:null)||r.nodeValue;t&&(f+=t);}o.removeChild(r);}}const n=d.removedNodes,r=n.length;if(r>0){let e=0;for(let i=0;i<r;i++){const r=n[i];(rt$2(r,g,t)||a===r)&&(g.appendChild(r),e++);}r!==e&&o.set(p,m);}}}if(o.size>0)for(const[e,n]of o)n.reconcileObservedMutation(e,t);const d=n.takeRecords();if(d.length>0){for(let e=0;e<d.length;e++){const n=d[e],r=n.addedNodes,i=n.target;for(let e=0;e<r.length;e++){const n=r[e],s=n.parentNode;null==s||"BR"!==n.nodeName||rt$2(n,i,t)||s.removeChild(n);}}n.takeRecords();}null!==s&&(u&&cs(s),i$1&&Fs(t)&&s.insertRawText(f));}));}finally{tt$2=!1;}}function ct$1(t){const e=t._observer;if(null!==e){lt$2(t,e.takeRecords(),e);}}function at$1(t){!function(t){0===et$2&&Rs(t).addEventListener("textInput",nt$2,!0);}(t),t._observer=new MutationObserver(((e,n)=>{lt$2(t,e,n);}));}function ut$1(t){return t}class ft$2{constructor(t,e){this.key=t,this.parse=e.parse.bind(e),this.unparse=(e.unparse||ut$1).bind(e),this.isEqual=(e.isEqual||Object.is).bind(e),this.defaultValue=this.parse(void 0);}}function dt$2(t,e){return new ft$2(t,e)}function ht$2(t,e,n){const r=gt$2(t,n,"direct"),i=gt$2(e,n,"direct");return n.isEqual(r,i)?null:[r,i]}function gt$2(t,e,n="latest"){const r=("latest"===n?t.getLatest():t).__state;return r?r.getValue(e):e.defaultValue}function _t$2(t,e,n){let r;if(Vr(),"function"==typeof n){const i=t.getLatest(),s=gt$2(i,e);if(r=n(s),e.isEqual(s,r))return i}else r=n;const i=t.getWritable();return yt$2(i).updateFromKnown(e,r),i}class pt$2{constructor(t,e=new Map,n=void 0,r=new Map,i=void 0){this.node=t,this.sharedConfigMap=e,this.unknownState=n,this.knownState=r;const s=void 0!==i?i:function(t,e,n){let r=n.size;if(e)for(const i in e){const e=t.get(i);e&&n.has(e)||r++;}return r}(e,n,r);this.size=s;}getValue(t){const e=this.knownState.get(t);if(void 0!==e)return e;this.sharedConfigMap.set(t.key,t);let n=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const e=this.unknownState[t.key];void 0!==e&&(n=t.parse(e)),this.updateFromKnown(t,n);}return n}getInternalState(){return [this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState};for(const[e,n]of this.knownState)e.isEqual(n,e.defaultValue)?delete t[e.key]:t[e.key]=e.unparse(n);return mt$2(t)?{[X$3]:t}:{}}getWritable(t){if(this.node===t)return this;const e=new Map(this.knownState),n=mt$2(r=this.unknownState)&&{...r};var r;if(n)for(const t of e.keys())delete n[t.key];return new pt$2(t,this.sharedConfigMap,mt$2(n),e,this.size)}updateFromKnown(t,e){const n=t.key;this.sharedConfigMap.set(n,t);const{knownState:r,unknownState:i}=this;r.has(t)||i&&n in i||this.size++,r.set(t,e);}updateFromUnknown(t,e){const n=this.sharedConfigMap.get(t);n?this.updateFromKnown(n,n.parse(e)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=e);}updateFromJSON(t){const{knownState:e}=this;for(const t of e.keys())e.set(t,t.defaultValue);if(this.size=e.size,this.unknownState={},t)for(const[e,n]of Object.entries(t))this.updateFromUnknown(e,n);this.unknownState=mt$2(this.unknownState);}}function mt$2(t){if(t)for(const e in t)return t}function yt$2(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new pt$2(e);return e.__state=n,n}function xt$2(t,e){const n=t.__mode,r=t.__format,i=t.__style,s=e.__mode,o=e.__format,l=e.__style,c=t.__state,a=e.__state;return (null===n||n===s)&&(null===r||r===o)&&(null===i||i===l)&&(null===t.__state||c===a||function(t,e){if(t===e)return !0;if(t&&e&&t.size!==e.size)return !1;const n=new Set,r=(t,e)=>{for(const[r,i]of t.knownState){if(n.has(r.key))continue;n.add(r.key);const t=e?e.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return !0}return !1},i=(t,e)=>{const{unknownState:r}=t,i=e?e.unknownState:void 0;if(r)for(const[t,e]of Object.entries(r))if(!n.has(t)&&(n.add(t),e!==(i?i[t]:void 0)))return !0;return !1};return !(t&&r(t,e)||e&&r(e,t)||t&&i(t,e)||e&&i(e,t))}(c,a))}function St$2(t,e){const n=t.mergeWithSibling(e),r=Hr()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function vt$2(t){let e,n,r=t;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(e=r.getPreviousSibling())&&Xn(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(""!==e.__text){if(xt$2(e,r)){r=St$2(e,r);break}break}e.remove();}for(;null!==(n=r.getNextSibling())&&Xn(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(xt$2(r,n)){r=St$2(r,n);break}break}n.remove();}}else r.remove();}function Ct$2(t){return kt$1(t.anchor),kt$1(t.focus),t}function kt$1(t){for(;"element"===t.type;){const e=t.getNode(),n=t.offset;let r,i;if(n===e.getChildrenSize()?(r=e.getChildAtIndex(n-1),i=!0):(r=e.getChildAtIndex(n),i=!1),Xn(r)){t.set(r.__key,i?r.getTextContentSize():0,"text",!0);break}if(!di(r))break;t.set(r.__key,i?r.getChildrenSize():0,"element",!0);}}let bt$1,Tt$2,wt$2,Nt$2,Et$2,Pt$2,Ft$1,Lt$1,At$2,Ot$2,Mt$1="",It$1="",Dt$1=null,zt="",Bt$1="",Wt=!1,Kt=!1,Rt$1=null;function Jt(t,e){const n=Ft$1.get(t);if(null!==e){const n=se(t);n.parentNode===e&&e.removeChild(n);}if(Lt$1.has(t)||Tt$2._keyToDOMMap.delete(t),di(n)){const t=te(n,Ft$1);jt(t,0,t.length-1,null);}void 0!==n&&ws(Ot$2,wt$2,Nt$2,n,"destroyed");}function jt(t,e,n,r){let i=e;for(;i<=n;++i){const e=t[i];void 0!==e&&Jt(e,r);}}function $t(t,e){t.setProperty("text-align",e);}const Vt="40px";function Ut(t,e){const n=bt$1.theme.indent;if("string"==typeof n){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n);}const r=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||Vt;t.style.setProperty("padding-inline-start",0===e?"":`calc(${e} * ${r})`);}function qt(t,e){const n=t.style;0===e?$t(n,""):e===A$4?$t(n,"left"):e===O$6?$t(n,"center"):e===M$5?$t(n,"right"):e===I$5?$t(n,"justify"):e===D$6?$t(n,"start"):e===z$4&&$t(n,"end");}function Ht(e,n){const r=Lt$1.get(e);void 0===r&&t$2(60);const i=r.createDOM(bt$1,Tt$2);if(function(t,e,n){const r=n._keyToDOMMap;((function(t,e,n){const r=`__lexicalKey_${e._key}`;t[r]=n;}))(e,n,t),r.set(t,e);}(e,i,Tt$2),Xn(r)?i.setAttribute("data-lexical-text","true"):_i(r)&&i.setAttribute("data-lexical-decorator","true"),di(r)){const t=r.__indent,e=r.__size;if(0!==t&&Ut(i,t),0!==e){const t=e-1;!function(t,e,n,r){const i=It$1;It$1="",Gt(t,n,0,e,n.getDOMSlot(r)),Yt(n,r),It$1=i;}(te(r,Lt$1),t,r,i);}const n=r.__format;0!==n&&qt(i,n),r.isInline()||Xt(null,r,i),As(r)&&(Mt$1+=W$3,Bt$1+=W$3);}else {const t=r.getTextContent();if(_i(r)){const t=r.decorate(Tt$2,bt$1);null!==t&&ne(e,t),i.contentEditable="false";}else Xn(r)&&(r.isDirectionless()||(It$1+=t));Mt$1+=t,Bt$1+=t;}return null!==n&&n.insertChild(i),ws(Ot$2,wt$2,Nt$2,r,"created"),i}function Gt(t,e,n,r,i){const s=Mt$1;Mt$1="";let o=n;for(;o<=r;++o){Ht(t[o],i);const e=Lt$1.get(t[o]);null!==e&&Xn(e)&&(null===Dt$1&&(Dt$1=e.getFormat()),""===zt&&(zt=e.getStyle()));}As(e)&&(Mt$1+=W$3);i.element.__lexicalTextContent=Mt$1,Mt$1=s+Mt$1;}function Qt(t,e){if(t){const n=t.__last;if(n){const t=e.get(n);if(t)return On(t)?"line-break":_i(t)&&t.isInline()?"decorator":null}return "empty"}return null}function Xt(t,e,n){const r=Qt(t,Ft$1),i=Qt(e,Lt$1);r!==i&&e.getDOMSlot(n).setManagedLineBreak(i);}function Yt(t,e){const n=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(n!==It$1||r!==Rt$1){const n=""===It$1,i=n?Rt$1:function(t){if(j$3.test(t))return "rtl";if($$3.test(t))return "ltr";return null}(It$1);if(i!==r){const s=e.classList,o=bt$1.theme;let l=null!==r?o[r]:void 0,c=null!==i?o[i]:void 0;if(void 0!==l){if("string"==typeof l){const t=d$5(l);l=o[r]=t;}s.remove(...l);}if(null===i||n&&"ltr"===i)e.removeAttribute("dir");else {if(void 0!==c){if("string"==typeof c){const t=d$5(c);c=o[i]=t;}void 0!==c&&s.add(...c);}e.dir=i;}if(!Kt){t.getWritable().__dir=i;}}Rt$1=i,e.__lexicalDirTextContent=It$1,e.__lexicalDir=i;}}function Zt(e,n,r){const i=It$1;var s;It$1="",Dt$1=null,zt="",function(e,n,r){const i=Mt$1,s=e.__size,o=n.__size;Mt$1="";const l=r.element;if(1===s&&1===o){const t=e.__first,r=n.__first;if(t===r)ee(t,l);else {const e=se(t),n=Ht(r,null);try{l.replaceChild(n,e);}catch(i){if("object"==typeof i&&null!=i){const s=`${i.toString()} Parent: ${l.tagName}, new child: {tag: ${n.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${t}}.`;throw new Error(s)}throw i}Jt(t,null);}const i=Lt$1.get(r);Xn(i)&&(null===Dt$1&&(Dt$1=i.getFormat()),""===zt&&(zt=i.getStyle()));}else {const i=te(e,Ft$1),c=te(n,Lt$1);if(i.length!==s&&t$2(227),c.length!==o&&t$2(228),0===s)0!==o&&Gt(c,n,0,o-1,r);else if(0===o){if(0!==s){const t=null==r.after&&null==r.before&&null==r.element.__lexicalLineBreak;jt(i,0,s-1,t?null:l),t&&(l.textContent="");}}else !function(t,e,n,r,i,s){const o=r-1,l=i-1;let c,a,u=s.getFirstChild(),f=0,d=0;for(;f<=o&&d<=l;){const t=e[f],r=n[d];if(t===r)u=re(ee(r,s.element)),f++,d++;else {void 0===c&&(c=new Set(e)),void 0===a&&(a=new Set(n));const i=a.has(t),o=c.has(r);if(i)if(o){const t=Os(Tt$2,r);t===u?u=re(ee(r,s.element)):(s.withBefore(u).insertChild(t),ee(r,s.element)),f++,d++;}else Ht(r,s.withBefore(u)),d++;else u=re(se(t)),Jt(t,s.element),f++;}const i=Lt$1.get(r);null!==i&&Xn(i)&&(null===Dt$1&&(Dt$1=i.getFormat()),""===zt&&(zt=i.getStyle()));}const h=f>o,g=d>l;if(h&&!g){const e=n[l+1],r=void 0===e?null:Tt$2.getElementByKey(e);Gt(n,t,d,l,s.withBefore(r));}else g&&!h&&jt(e,f,o,s.element);}(n,i,c,s,o,r);}As(n)&&(Mt$1+=W$3);l.__lexicalTextContent=Mt$1,Mt$1=i+Mt$1;}(e,n,n.getDOMSlot(r)),Yt(n,r),s=n,null==Dt$1||Dt$1===s.__textFormat||Kt||s.setTextFormat(Dt$1),function(t){""===zt||zt===t.__textStyle||Kt||t.setTextStyle(zt);}(n),It$1=i;}function te(e,n){const r=[];let i=e.__first;for(;null!==i;){const e=n.get(i);void 0===e&&t$2(101),r.push(i),i=e.__next;}return r}function ee(e,n){const r=Ft$1.get(e);let i=Lt$1.get(e);void 0!==r&&void 0!==i||t$2(61);const s=Wt||Pt$2.has(e)||Et$2.has(e),o=Os(Tt$2,e);if(r===i&&!s){if(di(r)){const t=o.__lexicalTextContent;void 0!==t&&(Mt$1+=t,Bt$1+=t);const e=o.__lexicalDirTextContent;void 0!==e&&(It$1+=e);}else {const t=r.getTextContent();Xn(r)&&!r.isDirectionless()&&(It$1+=t),Bt$1+=t,Mt$1+=t;}return o}if(r!==i&&s&&ws(Ot$2,wt$2,Nt$2,i,"updated"),i.updateDOM(r,o,bt$1)){const r=Ht(e,null);return null===n&&t$2(62),n.replaceChild(r,o),Jt(e,null),r}if(di(r)&&di(i)){const t=i.__indent;t!==r.__indent&&Ut(o,t);const e=i.__format;e!==r.__format&&qt(o,e),s&&(Zt(r,i,o),mi(i)||i.isInline()||Xt(r,i,o)),As(i)&&(Mt$1+=W$3,Bt$1+=W$3);}else {const t=i.getTextContent();if(_i(i)){const t=i.decorate(Tt$2,bt$1);null!==t&&ne(e,t);}else Xn(i)&&!i.isDirectionless()&&(It$1+=t);Mt$1+=t,Bt$1+=t;}if(!Kt&&mi(i)&&i.__cachedText!==Bt$1){const t=i.getWritable();t.__cachedText=Bt$1,i=t;}return o}function ne(t,e){let n=Tt$2._pendingDecorators;const r=Tt$2._decorators;if(null===n){if(r[t]===e)return;n=is(Tt$2);}n[t]=e;}function re(t){let e=t.nextSibling;return null!==e&&e===Tt$2._blockCursorElement&&(e=e.nextSibling),e}function ie(t,e,n,r,i,s){Mt$1="",Bt$1="",It$1="",Wt=r===x$8,Rt$1=null,Tt$2=n,bt$1=n._config,wt$2=n._nodes,Nt$2=Tt$2._listeners.mutation,Et$2=i,Pt$2=s,Ft$1=t._nodeMap,Lt$1=e._nodeMap,Kt=e._readOnly,At$2=new Map(n._keyToDOMMap);const o=new Map;return Ot$2=o,ee("root",null),Tt$2=void 0,wt$2=void 0,Et$2=void 0,Pt$2=void 0,Ft$1=void 0,Lt$1=void 0,bt$1=void 0,At$2=void 0,Ot$2=void 0,o}function se(e){const n=At$2.get(e);return void 0===n&&t$2(75,e),n}function oe(t){return {}}const le={},ce={},ae={},ue={},fe={},de={},he={},ge={},_e={},pe={},me={},ye={},xe={},Se={},ve={},Ce={},ke={},be={},Te={},we={},Ne={},Ee={},Pe={},Fe={},Le={},Ae={},Oe={},Me={},Ie={},De={},ze={},Be={},We={},Ke={},Re={},Je={},je={},$e={},Ve={},Ue={},qe={},He={},Ge={},Qe={},Xe={},Ye=Object.freeze({}),Ze=30,tn=[["keydown",function(t,e){if(en=t.timeStamp,nn=t.key,e.isComposing())return;const{key:n,shiftKey:s,ctrlKey:o,metaKey:l,altKey:c}=t;if(Ls(e,ve,t))return;if(null==n)return;if(fn&&vs(nn))return ci(e,(()=>{vn(e,dn);})),fn=!1,void(dn="");if(function(t,e,n,r){return ys(t)&&!e&&!r&&!n}(n,o,c,l))Ls(e,Ce,t);else if(function(t,e,n,r,i){return ys(t)&&!r&&!n&&(e||i)}(n,o,s,c,l))Ls(e,ke,t);else if(function(t,e,n,r){return ms(t)&&!e&&!r&&!n}(n,o,c,l))Ls(e,be,t);else if(function(t,e,n,r,i){return ms(t)&&!r&&!n&&(e||i)}(n,o,s,c,l))Ls(e,Te,t);else if(function(t,e,n){return function(t){return "ArrowUp"===t}(t)&&!e&&!n}(n,o,l))Ls(e,we,t);else if(function(t,e,n){return function(t){return "ArrowDown"===t}(t)&&!e&&!n}(n,o,l))Ls(e,Ne,t);else if(function(t,e){return Ss(t)&&e}(n,s))an=!0,Ls(e,Ee,t);else if(function(t){return " "===t}(n))Ls(e,Pe,t);else if(function(t,e){return r$1&&e&&"o"===t.toLowerCase()}(n,o))t.preventDefault(),an=!0,Ls(e,fe,!0);else if(function(t,e){return Ss(t)&&!e}(n,s))an=!1,Ls(e,Ee,t);else if(function(t,e,n,i){if(r$1)return !e&&!n&&(vs(t)||"h"===t.toLowerCase()&&i);if(i||e||n)return !1;return vs(t)}(n,c,l,o))vs(n)?Ls(e,Fe,t):(t.preventDefault(),Ls(e,ue,!0));else if(function(t){return "Escape"===t}(n))Ls(e,Le,t);else if(function(t,e,n,i,s){if(r$1)return !(n||i||s)&&(Cs(t)||"d"===t.toLowerCase()&&e);if(e||i||s)return !1;return Cs(t)}(n,o,s,c,l))Cs(n)?Ls(e,Ae,t):(t.preventDefault(),Ls(e,ue,!1));else if(function(t,e,n){return vs(t)&&(r$1?e:n)}(n,c,o))t.preventDefault(),Ls(e,pe,!0);else if(function(t,e,n){return Cs(t)&&(r$1?e:n)}(n,c,o))t.preventDefault(),Ls(e,pe,!1);else if(function(t,e){return r$1&&e&&vs(t)}(n,l))t.preventDefault(),Ls(e,me,!0);else if(function(t,e){return r$1&&e&&Cs(t)}(n,l))t.preventDefault(),Ls(e,me,!1);else if(function(t,e,n,r){return "b"===t.toLowerCase()&&!e&&xs(n,r)}(n,c,l,o))t.preventDefault(),Ls(e,ye,"bold");else if(function(t,e,n,r){return "u"===t.toLowerCase()&&!e&&xs(n,r)}(n,c,l,o))t.preventDefault(),Ls(e,ye,"underline");else if(function(t,e,n,r){return "i"===t.toLowerCase()&&!e&&xs(n,r)}(n,c,l,o))t.preventDefault(),Ls(e,ye,"italic");else if(function(t,e,n,r){return "Tab"===t&&!e&&!n&&!r}(n,c,o,l))Ls(e,Oe,t);else if(function(t,e,n,r){return "z"===t.toLowerCase()&&!e&&xs(n,r)}(n,s,l,o))t.preventDefault(),Ls(e,xe,void 0);else if(function(t,e,n,i){if(r$1)return "z"===t.toLowerCase()&&n&&e;return "y"===t.toLowerCase()&&i||"z"===t.toLowerCase()&&i&&e}(n,s,l,o))t.preventDefault(),Ls(e,Se,void 0);else {const c=e._editorState._selection;null===c||lr(c)?!i$1&&ks(n,l,o)&&(t.preventDefault(),Ls(e,$e,t)):!function(t,e,n,i){if(e)return !1;if("c"===t.toLowerCase())return r$1?n:i;return !1}(n,s,l,o)?!function(t,e,n,i){if(e)return !1;if("x"===t.toLowerCase())return r$1?n:i;return !1}(n,s,l,o)?ks(n,l,o)&&(t.preventDefault(),Ls(e,$e,t)):(t.preventDefault(),Ls(e,je,t)):(t.preventDefault(),Ls(e,Je,t));}(function(t,e,n,r){return t||e||n||r})(o,s,c,l)&&Ls(e,Xe,t);}],["pointerdown",function(t,e){const n=t.target,r=t.pointerType;no(n)&&"touch"!==r&&0===t.button&&ci(e,(()=>{_i(rs(n))||(cn=!0);}));}],["compositionstart",function(t,e){ci(e,(()=>{const n=Tr();if(lr(n)&&!e.isComposing()){const r=n.anchor,i=n.anchor.getNode();Yi(r.key),(t.timeStamp<en+Ze||"element"===r.type||!n.isCollapsed()||i.getFormat()!==n.format||Xn(i)&&i.getStyle()!==n.style)&&Ls(e,he,K$3);}}));}],["compositionend",function(t,e){i$1?un=!0:l$4||!o$4&&!f$5?ci(e,(()=>{vn(e,t.data);})):(fn=!0,dn=t.data);}],["input",function(t,e){t.stopPropagation(),ci(e,(()=>{const n=Tr(),r=t.data,c=Sn(t);if(null!=r&&lr(n)&&_n(n,c,r,t.timeStamp,!1)){un&&(vn(e,r),un=!1);const c=n.anchor.getNode(),a=Xs(Rs(e));if(null===a)return;const u=n.isBackward(),d=u?n.anchor.offset:n.focus.offset,h=u?n.focus.offset:n.anchor.offset;s$1&&!n.isCollapsed()&&Xn(c)&&null!==a.anchorNode&&c.getTextContent().slice(0,d)+r+c.getTextContent().slice(d+h)===gs(a.anchorNode)||Ls(e,he,r);const g=r.length;i$1&&g>1&&"insertCompositionText"===t.inputType&&!e.isComposing()&&(n.anchor.offset-=g),o$4||l$4||f$5||!e.isComposing()||(en=0,Yi(null));}else {_s(!1,e,null!==r?r:void 0),un&&(vn(e,r||void 0),un=!1);}!function(){Vr();const t=Hr();ct$1(t);}();}),{event:t}),sn=null;}],["click",function(t,e){ci(e,(()=>{const n=Tr(),r=Xs(Rs(e)),i=wr();if(r)if(lr(n)){const e=n.anchor,s=e.getNode();if("element"===e.type&&0===e.offset&&n.isCollapsed()&&!mi(s)&&1===os().getChildrenSize()&&s.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(3===t.detail&&!n.isCollapsed()){if(s!==n.focus.getNode()){const t=function(t,e){let n=t;for(;n!==os()&&null!=n;){if(e(n))return n;n=n.getParent();}return null}(s,(t=>di(t)&&!t.isInline()));di(t)&&t.select(0);}}}else if("touch"===t.pointerType){const n=r.anchorNode;if(eo(n)||$i(n)){cs(br(i,r,e,t));}}Ls(e,ae,t);}));}],["cut",Ye],["copy",Ye],["dragstart",Ye],["dragover",Ye],["dragend",Ye],["paste",Ye],["focus",Ye],["blur",Ye],["drop",Ye]];s$1&&tn.push(["beforeinput",(e,n)=>function(e,n){const r=e.inputType,s=Sn(e);if("deleteCompositionText"===r||i$1&&Fs(n))return;if("insertCompositionText"===r)return;ci(n,(()=>{const i=Tr();if("deleteContentBackward"===r){if(null===i){const t=wr();if(!lr(t))return;cs(t.clone());}if(lr(i)){const r=i.anchor.key===i.focus.key;if(o=e.timeStamp,"MediaLast"===nn&&o<en+Ze&&n.isComposing()&&r){if(Yi(null),en=0,setTimeout((()=>{ci(n,(()=>{Yi(null);}));}),Ze),lr(i)){const e=i.anchor.getNode();e.markDirty(),Xn(e)||t$2(142),xn(i,e);}}else {Yi(null),e.preventDefault();const t=i.anchor.getNode(),s=t.getTextContent(),o=t.canInsertTextAfter(),l=0===i.anchor.offset&&i.focus.offset===s.length;let c=u$4&&r&&!l&&o;if(c&&i.isCollapsed()&&(c=!_i(Ps(i.anchor,!0))),!c){Ls(n,ue,!0);const t=Tr();u$4&&lr(t)&&t.isCollapsed()&&(hn=t,setTimeout((()=>hn=null)));}}return}}var o;if(!lr(i))return;const c=e.data;null!==sn&&_s(!1,n,sn),i.dirty&&null===sn||!i.isCollapsed()||mi(i.anchor.getNode())||null===s||i.applyDOMRange(s),sn=null;const a=i.anchor,f=i.focus,d=a.getNode(),h=f.getNode();if("insertText"!==r&&"insertTranspose"!==r)switch(e.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Ls(n,he,e);break;case"insertFromComposition":Yi(null),Ls(n,he,e);break;case"insertLineBreak":Yi(null),Ls(n,fe,!1);break;case"insertParagraph":Yi(null),an&&!l$4?(an=!1,Ls(n,fe,!1)):Ls(n,de,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Ls(n,ge,e);break;case"deleteByComposition":(function(t,e){return t!==e||di(t)||di(e)||!t.isToken()||!e.isToken()})(d,h)&&Ls(n,_e,e);break;case"deleteByDrag":case"deleteByCut":Ls(n,_e,e);break;case"deleteContent":Ls(n,ue,!1);break;case"deleteWordBackward":Ls(n,pe,!0);break;case"deleteWordForward":Ls(n,pe,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Ls(n,me,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Ls(n,me,!1);break;case"formatStrikeThrough":Ls(n,ye,"strikethrough");break;case"formatBold":Ls(n,ye,"bold");break;case"formatItalic":Ls(n,ye,"italic");break;case"formatUnderline":Ls(n,ye,"underline");break;case"historyUndo":Ls(n,xe,void 0);break;case"historyRedo":Ls(n,Se,void 0);}else {if("\n"===c)e.preventDefault(),Ls(n,fe,!1);else if(c===W$3)e.preventDefault(),Ls(n,de,void 0);else if(null==c&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),i.insertRawText(t);}else null!=c&&_n(i,s,c,e.timeStamp,!0)?(e.preventDefault(),Ls(n,he,c)):sn=c;rn=e.timeStamp;}}));}(e,n)]);let en=0,nn=null,rn=0,sn=null;const on=new WeakMap;let ln=!1,cn=!1,an=!1,un=!1,fn=!1,dn="",hn=null,gn=[0,"",0,"root",0];function _n(t,e,n,r,i){const o=t.anchor,l=t.focus,c=o.getNode(),a=Hr(),u=Xs(Rs(a)),f=null!==u?u.anchorNode:null,d=o.key,h=a.getElementByKey(d),g=n.length;return d!==l.key||!Xn(c)||(!i&&(!s$1||rn<r+50)||c.isDirty()&&g<2||fs(n))&&o.offset!==l.offset&&!c.isComposing()||ji(c)||c.isDirty()&&g>1||(i||!s$1)&&null!==h&&!c.isComposing()&&f!==Ui(h)||null!==u&&null!==e&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||c.getFormat()!==t.format||c.getStyle()!==t.style||function(t,e){if(e.isSegmented())return !0;if(!t.isCollapsed())return !1;const n=t.anchor.offset,r=e.getParentOrThrow(),i=e.isToken();return 0===n?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||i||function(t){const e=t.getPreviousSibling();return (Xn(e)||di(e)&&e.isInline())&&!e.canInsertTextAfter()}(e):n===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||i)}(t,c)}function pn(t,e){return $i(t)&&null!==t.nodeValue&&0!==e&&e!==t.nodeValue.length}function mn(e,n,r){const{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:l}=e;ln&&(ln=!1,pn(i,s)&&pn(o,l)&&!hn)||ci(n,(()=>{if(!r)return void cs(null);if(!Wi(n,i,o))return;let c=Tr();if(hn&&lr(c)&&c.isCollapsed()){const t=c.anchor,e=hn.anchor;(t.key===e.key&&t.offset===e.offset+1||1===t.offset&&e.getNode().is(t.getNode().getPreviousSibling()))&&(c=hn.clone(),cs(c));}if(hn=null,lr(c)){const r=c.anchor,i=r.getNode();if(c.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(c.dirty=!0);const s=Rs(n).event,o=s?s.timeStamp:performance.now(),[l,a,u,f,d]=gn,h=os(),g=!1===n.isComposing()&&""===h.getTextContent();if(o<d+200&&r.offset===u&&r.key===f)yn(c,l,a);else if("text"===r.type)Xn(i)||t$2(141),xn(c,i);else if("element"===r.type&&!g){di(i)||t$2(259);const e=r.getNode();e.isEmpty()?function(t,e){const n=e.getTextFormat(),r=e.getTextStyle();yn(t,n,r);}(c,e):yn(c,0,"");}}else {const t=r.key,e=c.focus.key,n=c.getNodes(),i=n.length,o=c.isBackward(),a=o?l:s,u=o?s:l,f=o?e:t,d=o?t:e;let h=L$5,g=!1;for(let t=0;t<i;t++){const e=n[t],r=e.getTextContentSize();if(Xn(e)&&0!==r&&!(0===t&&e.__key===f&&a===r||t===i-1&&e.__key===d&&0===u)&&(g=!0,h&=e.getFormat(),0===h))break}c.format=g?h:0;}}Ls(n,le,void 0);}));}function yn(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0);}function xn(t,e){yn(t,e.getFormat(),e.getStyle());}function Sn(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return 0===e.length?null:e[0]}function vn(t,e){const n=t._compositionKey;if(Yi(null),null!==n&&null!=e){if(""===e){const e=ts(n),r=Ui(t.getElementByKey(n));return void(null!==r&&null!==r.nodeValue&&Xn(e)&&ps(e,r.nodeValue,null,null,!0))}if("\n"===e[e.length-1]){const e=Tr();if(lr(e)){const n=e.focus;return e.anchor.set(n.key,n.offset,n.type),void Ls(t,Ee,null)}}}_s(!0,t,e);}function Cn(t){let e=t.__lexicalEventHandles;return void 0===e&&(e=[],t.__lexicalEventHandles=e),e}const kn=new Map;function bn(t){const e=Ys(t.target);if(null===e)return;const n=Ri(e.anchorNode);if(null===n)return;cn&&(cn=!1,ci(n,(()=>{const r=wr(),i=e.anchorNode;if(eo(i)||$i(i)){cs(br(r,e,n,t));}})));const r=ds(n),i=r[r.length-1],s=i._key,o=kn.get(s),l=o||i;l!==n&&mn(e,l,!1),mn(e,n,!0),n!==i?kn.set(s,n):o&&kn.delete(s);}function Tn(t){t._lexicalHandled=!0;}function wn(t){return !0===t._lexicalHandled}function Nn(e){const n=e.ownerDocument,r=on.get(n);void 0===r&&t$2(162);const i=r-1;i>=0||t$2(164),on.set(n,i),0===i&&n.removeEventListener("selectionchange",bn);const s=Ji(e);Ki(s)?(!function(t){if(null!==t._parentEditor){const e=ds(t),n=e[e.length-1]._key;kn.get(n)===t&&kn.delete(n);}else kn.delete(t._key);}(s),e.__lexicalEditor=null):s&&t$2(198);const o=Cn(e);for(let t=0;t<o.length;t++)o[t]();e.__lexicalEventHandles=[];}function En(t,e,n){Vr();const r=t.__key,i=t.getParent();if(null===i)return;const s=function(t){const e=Tr();if(!lr(e)||!di(t))return e;const{anchor:n,focus:r}=e,i=n.getNode(),s=r.getNode();Ws(i,t)&&n.set(t.__key,0,"element");Ws(s,t)&&r.set(t.__key,0,"element");return e}(t);let o=!1;if(lr(s)&&e){const e=s.anchor,n=s.focus;e.key===r&&(Pr(e,t,i,t.getPreviousSibling(),t.getNextSibling()),o=!0),n.key===r&&(Pr(n,t,i,t.getPreviousSibling(),t.getNextSibling()),o=!0);}else ar(s)&&e&&t.isSelected()&&t.selectPrevious();if(lr(s)&&e&&!o){const e=t.getIndexWithinParent();Qi(t),Nr(s,i,e,-1);}else Qi(t);n||$s(i)||i.canBeEmpty()||!i.isEmpty()||En(i,e),e&&mi(i)&&i.isEmpty()&&i.selectEnd();}class Pn{static getType(){t$2(64,this.name);}static clone(e){t$2(65,this.name);}afterCloneFrom(t){this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state;}constructor(t){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),Gi(this,t);}getType(){return this.__type}isInline(){t$2(137,this.constructor.name);}isAttached(){let t=this.__key;for(;null!==t;){if("root"===t)return !0;const e=ts(t);if(null===e)break;t=e.__parent;}return !1}isSelected(t){const e=t||Tr();if(null==e)return !1;const n=e.getNodes().some((t=>t.__key===this.__key));if(Xn(this))return n;if(lr(e)&&"element"===e.anchor.type&&"element"===e.focus.type){if(e.isCollapsed())return !1;const t=this.getParent();if(_i(this)&&this.isInline()&&t){const n=e.isBackward()?e.focus:e.anchor;if(t.is(n.getNode())&&n.offset===t.getChildrenSize()&&this.is(t.getLastChild()))return !1}}return n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(null===t)return -1;let e=t.getFirstChild(),n=0;for(;null!==e;){if(this.is(e))return n;n++,e=e.getNextSibling();}return -1}getParent(){const t=this.getLatest().__parent;return null===t?null:ts(t)}getParentOrThrow(){const e=this.getParent();return null===e&&t$2(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const n=e.getParent();if($s(n))return di(e)||e===this&&_i(e)||t$2(194),e;e=n;}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&t$2(67,this.__key),e}getParents(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e),e=e.getParent();return t}getParentKeys(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e.__key),e=e.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return null===t?null:ts(t)}getPreviousSiblings(){const t=[],e=this.getParent();if(null===e)return t;let n=e.getFirstChild();for(;null!==n&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return null===t?null:ts(t)}getNextSiblings(){const t=[];let e=this.getNextSibling();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getCommonAncestor(t){const e=di(this)?this:this.getParent(),n=di(t)?t:t.getParent(),r=e&&n?Go(e,n):null;return r?r.commonAncestor:null}is(t){return null!=t&&this.__key===t.__key}isBefore(e){const n=Go(this,e);return null!==n&&("descendant"===n.type||("branch"===n.type?-1===Uo(n):("same"!==n.type&&"ancestor"!==n.type&&t$2(279),!1)))}isParentOf(t){const e=Go(this,t);return null!==e&&"ancestor"===e.type}getNodesBetween(e){const n=this.isBefore(e),r=[],i=new Set;let s=this;for(;null!==s;){const o=s.__key;if(i.has(o)||(i.add(o),r.push(s)),s===e)break;const l=di(s)?n?s.getFirstChild():s.getLastChild():null;if(null!==l){s=l;continue}const c=n?s.getNextSibling():s.getPreviousSibling();if(null!==c){s=c;continue}const a=s.getParentOrThrow();if(i.has(a.__key)||r.push(a),a===e)break;let u=null,f=a;do{if(null===f&&t$2(68),u=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),null===f)break;null!==u||i.has(f.__key)||r.push(f);}while(null===u);s=u;}return n||r.reverse(),r}isDirty(){const t=Hr()._dirtyLeaves;return null!==t&&t.has(this.__key)}getLatest(){const e=ts(this.__key);return null===e&&t$2(113),e}getWritable(){Vr();const t=qr(),e=Hr(),n=t._nodeMap,r=this.__key,i=this.getLatest(),s=e._cloneNotNeeded,o=Tr();if(null!==o&&o.setCachedNodes(null),s.has(r))return Xi(i),i;const l=ho(i);return s.add(r),Xi(l),n.set(r,l),l}getTextContent(){return ""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){t$2(70);}updateDOM(e,n,r){t$2(71);}exportDOM(t){return {element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return {type:this.__type,version:1,...t}}static importJSON(e){t$2(18,this.name);}updateFromJSON(t){return function(t,e){const n=t.getWritable();return (e||n.__state)&&yt$2(t).updateFromJSON(e),n}(this,t.$)}static transform(){return null}remove(t){En(this,!0,t);}replace(e,n){Vr();let r=Tr();null!==r&&(r=r.clone()),qs(this,e);const i=this.getLatest(),s=this.__key,o=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),a=c.__size;Qi(l);const u=i.getPreviousSibling(),f=i.getNextSibling(),d=i.__prev,h=i.__next,g=i.__parent;if(En(i,!1,!0),null===u)c.__first=o;else {u.getWritable().__next=o;}if(l.__prev=d,null===f)c.__last=o;else {f.getWritable().__prev=o;}if(l.__next=h,l.__parent=g,c.__size=a,n&&(di(this)&&di(l)||t$2(139),this.getChildren().forEach((t=>{l.append(t);}))),lr(r)){cs(r);const t=r.anchor,e=r.focus;t.key===s&&sr(t,l),e.key===s&&sr(e,l);}return Zi()===s&&Yi(o),l}insertAfter(t,e=!0){Vr(),qs(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.getParent(),s=Tr();let o=!1,l=!1;if(null!==i){const e=t.getIndexWithinParent();if(Qi(r),lr(s)){const t=i.__key,n=s.anchor,r=s.focus;o="element"===n.type&&n.key===t&&n.offset===e+1,l="element"===r.type&&r.key===t&&r.offset===e+1;}}const c=this.getNextSibling(),a=this.getParentOrThrow().getWritable(),u=r.__key,f=n.__next;if(null===c)a.__last=u;else {c.getWritable().__prev=u;}if(a.__size++,n.__next=u,r.__next=f,r.__prev=n.__key,r.__parent=n.__parent,e&&lr(s)){const t=this.getIndexWithinParent();Nr(s,a,t+1);const e=a.__key;o&&s.anchor.set(e,t+2,"element"),l&&s.focus.set(e,t+2,"element");}return t}insertBefore(t,e=!0){Vr(),qs(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.__key;Qi(r);const s=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),l=n.__prev,c=this.getIndexWithinParent();if(null===s)o.__first=i;else {s.getWritable().__next=i;}o.__size++,n.__prev=i,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent;const a=Tr();if(e&&lr(a)){Nr(a,this.getParentOrThrow(),c);}return t}isParentRequired(){return !1}createParentElementNode(){return Ti()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,e){Vr();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(di(n))return n.select();if(!Xn(n)){const t=n.getIndexWithinParent()+1;return r.select(t,t)}return n.select(t,e)}selectNext(t,e){Vr();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(di(n))return n.select(0,0);if(!Xn(n)){const t=n.getIndexWithinParent();return r.select(t,t)}return n.select(t,e)}markDirty(){this.getWritable();}reconcileObservedMutation(t,e){this.markDirty();}}class Fn extends Pn{static getType(){return "linebreak"}static clone(t){return new Fn(t.__key)}constructor(t){super(t);}getTextContent(){return "\n"}createDOM(){return document.createElement("br")}updateDOM(){return !1}isInline(){return !0}static importDOM(){return {br:t=>function(t){const e=t.parentElement;if(null!==e&&so(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Mn(n)){const n=e.lastChild;if(n===t||n.previousSibling===t&&Mn(n))return !0}}return !1}(t)||function(t){const e=t.parentElement;if(null!==e&&so(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Mn(n))return !1;const r=e.lastChild;if(r===t||r.previousSibling===t&&Mn(r))return !0}return !1}(t)?null:{conversion:Ln,priority:0}}}static importJSON(t){return An().updateFromJSON(t)}}function Ln(t){return {node:An()}}function An(){return Us(new Fn)}function On(t){return t instanceof Fn}function Mn(t){return $i(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function In(t,e){return 16&e?"code":e&F$4?"mark":32&e?"sub":64&e?"sup":null}function Dn(t,e){return 1&e?"strong":2&e?"em":"span"}function zn(t,e,n,r,i){const s=r.classList;let o=Ts(i,"base");void 0!==o&&s.add(...o),o=Ts(i,"underlineStrikethrough");let l=!1;const c=e&w$6&&e&T$3;void 0!==o&&(n&w$6&&n&T$3?(l=!0,c||s.add(...o)):c&&s.remove(...o));for(const t in V$3){const r=V$3[t];if(o=Ts(i,t),void 0!==o)if(n&r){if(l&&("underline"===t||"strikethrough"===t)){e&r&&s.remove(...o);continue}e&r&&(!c||"underline"!==t)&&"strikethrough"!==t||s.add(...o);}else e&r&&s.remove(...o);}}function Bn(t,e,n){const r=e.firstChild,s=n.isComposing(),o=t+(s?B$4:"");if(null==r)e.textContent=o;else {const t=r.nodeValue;if(t!==o)if(s||i$1){const[e,n,i]=function(t,e){const n=t.length,r=e.length;let i=0,s=0;for(;i<n&&i<r&&t[i]===e[i];)i++;for(;s+i<n&&s+i<r&&t[n-s-1]===e[r-s-1];)s++;return [i,n-i-s,e.slice(i,r-s)]}(t,o);0!==n&&r.deleteData(e,n),r.insertData(e,i);}else r.nodeValue=o;}}function Wn(t,e,n,r,i,s){Bn(i,t,e);const o=s.theme.text;void 0!==o&&zn(0,0,r,t,o);}function Kn(t,e){const n=document.createElement(e);return n.appendChild(t),n}class Rn extends Pn{static getType(){return "text"}static clone(t){return new Rn(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail;}constructor(t="",e){super(e),this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0;}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return Q$3[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Zi()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return !!(1&this.getLatest().__detail)}isUnmergeable(){return !!(2&this.getLatest().__detail)}hasFormat(t){const e=V$3[t];return !!(this.getFormat()&e)}isSimpleText(){return "text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(t,e){return qi(this.getLatest().__format,t,e)}canHaveFormat(){return !0}isInline(){return !0}createDOM(t,e){const n=this.__format,r=In(0,n),i=Dn(0,n),s=null===r?i:r,o=document.createElement(s);let l=o;this.hasFormat("code")&&o.setAttribute("spellcheck","false"),null!==r&&(l=document.createElement(i),o.appendChild(l));Wn(l,this,0,n,this.__text,t);const c=this.__style;return ""!==c&&(o.style.cssText=c),o}updateDOM(e,n,r){const i=this.__text,s=e.__format,o=this.__format,l=In(0,s),c=In(0,o),a=Dn(0,s),u=Dn(0,o);if((null===l?a:l)!==(null===c?u:c))return !0;if(l===c&&a!==u){const e=n.firstChild;null==e&&t$2(48);const s=document.createElement(u);return Wn(s,this,0,o,i,r),n.replaceChild(s,e),!1}let f=n;null!==c&&null!==l&&(f=n.firstChild,null==f&&t$2(49)),Bn(i,f,this);const d=r.theme.text;void 0!==d&&s!==o&&zn(0,s,o,f,d);const h=e.__style,g=this.__style;return h!==g&&(n.style.cssText=g),!1}static importDOM(){return {"#text":()=>({conversion:Un,priority:0}),b:()=>({conversion:jn,priority:0}),code:()=>({conversion:Gn,priority:0}),em:()=>({conversion:Gn,priority:0}),i:()=>({conversion:Gn,priority:0}),mark:()=>({conversion:Gn,priority:0}),s:()=>({conversion:Gn,priority:0}),span:()=>({conversion:Jn,priority:0}),strong:()=>({conversion:Gn,priority:0}),sub:()=>({conversion:Gn,priority:0}),sup:()=>({conversion:Gn,priority:0}),u:()=>({conversion:Gn,priority:0})}}static importJSON(t){return Qn().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(e){let{element:n}=super.exportDOM(e);return eo(n)||t$2(132),n.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(n=Kn(n,"b")),this.hasFormat("italic")&&(n=Kn(n,"i")),this.hasFormat("strikethrough")&&(n=Kn(n,"s")),this.hasFormat("underline")&&(n=Kn(n,"u")),{element:n}}exportJSON(){return {detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,e){}setFormat(t){const e=this.getWritable();return e.__format="string"==typeof t?V$3[t]:t,e}setDetail(t){const e=this.getWritable();return e.__detail="string"==typeof t?U$5[t]:t,e}setStyle(t){const e=this.getWritable();return e.__style=t,e}toggleFormat(t){const e=qi(this.getFormat(),t,null);return this.setFormat(e)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const e=G$4[t];if(this.__mode===e)return this;const n=this.getWritable();return n.__mode=e,n}setTextContent(t){if(this.__text===t)return this;const e=this.getWritable();return e.__text=t,e}select(t,e){Vr();let n=t,r=e;const i=Tr(),s=this.getTextContent(),o=this.__key;if("string"==typeof s){const t=s.length;void 0===n&&(n=t),void 0===r&&(r=t);}else n=0,r=0;if(!lr(i))return Sr(o,n,o,r,"text","text");{const t=Zi();t!==i.anchor.key&&t!==i.focus.key||Yi(o),i.setTextNodeRange(this,n,this,r);}return i}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,e,n,r){const i=this.getWritable(),s=i.__text,o=n.length;let l=t;l<0&&(l=o+l,l<0&&(l=0));const c=Tr();if(r&&lr(c)){const e=t+o;c.setTextNodeRange(i,e,i,e);}const a=s.slice(0,l)+n+s.slice(l+e);return i.__text=a,i}canInsertTextBefore(){return !0}canInsertTextAfter(){return !0}splitText(...t){Vr();const e=this.getLatest(),n=e.getTextContent();if(""===n)return [];const r=e.__key,i=Zi(),s=n.length;t.sort(((t,e)=>t-e)),t.push(s);const o=[],l=t.length;for(let e=0,r=0;e<s&&r<=l;r++){const i=t[r];i>e&&(o.push(n.slice(e,i)),e=i);}const c=o.length;if(1===c)return [e];const a=o[0],u=e.getParent();let f;const d=e.getFormat(),h=e.getStyle(),g=e.__detail;let _=!1,p=null,m=null;const y=Tr();if(lr(y)){const[t,e]=y.isBackward()?[y.focus,y.anchor]:[y.anchor,y.focus];"text"===t.type&&t.key===r&&(p=t),"text"===e.type&&e.key===r&&(m=e);}e.isSegmented()?(f=Qn(a),f.__format=d,f.__style=h,f.__detail=g,_=!0):(f=e.getWritable(),f.__text=a);const x=[f];for(let t=1;t<c;t++){const e=Qn(o[t]);e.__format=d,e.__style=h,e.__detail=g;const n=e.__key;i===r&&Yi(n),x.push(e);}const S=p?p.offset:null,v=m?m.offset:null;let C=0;for(const t of x){if(!p&&!m)break;const e=C+t.getTextContentSize();if(null!==p&&null!==S&&S<=e&&S>=C&&(p.set(t.getKey(),S-C,"text"),S<e&&(p=null)),null!==m&&null!==v&&v<=e&&v>=C){m.set(t.getKey(),v-C,"text");break}C=e;}if(null!==u){!function(t){const e=t.getPreviousSibling(),n=t.getNextSibling();null!==e&&Xi(e);null!==n&&Xi(n);}(this);const t=u.getWritable(),e=this.getIndexWithinParent();_?(t.splice(e,0,x),this.remove()):t.splice(e,1,x),lr(y)&&Nr(y,u,e,c-1);}return x}mergeWithSibling(e){const n=e===this.getPreviousSibling();n||e===this.getNextSibling()||t$2(50);const r=this.__key,i=e.__key,s=this.__text,o=s.length;Zi()===i&&Yi(r);const l=Tr();if(lr(l)){const t=l.anchor,s=l.focus;null!==t&&t.key===i&&Fr(t,n,r,e,o),null!==s&&s.key===i&&Fr(s,n,r,e,o);}const c=e.__text,a=n?c+s:s+c;this.setTextContent(a);const u=this.getWritable();return e.remove(),u}isTextEntity(){return !1}}function Jn(t){return {forChild:Yn(t.style),node:null}}function jn(t){const e=t,n="normal"===e.style.fontWeight;return {forChild:Yn(e.style,n?void 0:"bold"),node:null}}const $n=new WeakMap;function Vn(t){if(!eo(t))return !1;if("PRE"===t.nodeName)return !0;const e=t.style.whiteSpace;return "string"==typeof e&&e.startsWith("pre")}function Un(e){const n=e;null===e.parentElement&&t$2(129);let r=n.textContent||"";if(null!==function(t){let e,n=t.parentNode;const r=[t];for(;null!==n&&void 0===(e=$n.get(n))&&!Vn(n);)r.push(n),n=n.parentNode;const i=void 0===e?n:e;for(let t=0;t<r.length;t++)$n.set(r[t],i);return i}(n)){const t=r.split(/(\r?\n|\t)/),e=[],n=t.length;for(let r=0;r<n;r++){const n=t[r];"\n"===n||"\r\n"===n?e.push(An()):"\t"===n?e.push(tr()):""!==n&&e.push(Qn(n));}return {node:e}}if(r=r.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===r)return {node:null};if(" "===r[0]){let t=n,e=!0;for(;null!==t&&null!==(t=qn(t,!1));){const n=t.textContent||"";if(n.length>0){/[ \t\n]$/.test(n)&&(r=r.slice(1)),e=!1;break}}e&&(r=r.slice(1));}if(" "===r[r.length-1]){let t=n,e=!0;for(;null!==t&&null!==(t=qn(t,!0));){if((t.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){e=!1;break}}e&&(r=r.slice(0,r.length-1));}return ""===r?{node:null}:{node:Qn(r)}}function qn(t,e){let n=t;for(;;){let t;for(;null===(t=e?n.nextSibling:n.previousSibling);){const t=n.parentElement;if(null===t)return null;n=t;}if(n=t,eo(n)){const t=n.style.display;if(""===t&&!io(n)||""!==t&&!t.startsWith("inline"))return null}let r=n;for(;null!==(r=e?n.firstChild:n.lastChild);)n=r;if($i(n))return n;if("BR"===n.nodeName)return null}}const Hn={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Gn(t){const e=Hn[t.nodeName.toLowerCase()];return void 0===e?{node:null}:{forChild:Yn(t.style,e),node:null}}function Qn(t=""){return Us(new Rn(t))}function Xn(t){return t instanceof Rn}function Yn(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),i="700"===n||"bold"===n,s=r.includes("line-through"),o="italic"===t.fontStyle,l=r.includes("underline"),c=t.verticalAlign;return t=>Xn(t)?(i&&!t.hasFormat("bold")&&t.toggleFormat("bold"),s&&!t.hasFormat("strikethrough")&&t.toggleFormat("strikethrough"),o&&!t.hasFormat("italic")&&t.toggleFormat("italic"),l&&!t.hasFormat("underline")&&t.toggleFormat("underline"),"sub"!==c||t.hasFormat("subscript")||t.toggleFormat("subscript"),"super"!==c||t.hasFormat("superscript")||t.toggleFormat("superscript"),e&&!t.hasFormat(e)&&t.toggleFormat(e),t):t}class Zn extends Rn{static getType(){return "tab"}static clone(t){return new Zn(t.__key)}constructor(t){super("\t",t),this.__detail=2;}static importDOM(){return null}createDOM(t){const e=super.createDOM(t),n=Ts(t.theme,"tab");if(void 0!==n){e.classList.add(...n);}return e}static importJSON(t){return tr().updateFromJSON(t)}setTextContent(e){return "\t"!==e&&""!==e&&t$2(126),super.setTextContent(e)}setDetail(e){return 2!==e&&t$2(127),this}setMode(e){return "normal"!==e&&t$2(128),this}canInsertTextBefore(){return !1}canInsertTextAfter(){return !1}}function tr(){return Us(new Zn)}function er(t){return t instanceof Zn}class nr{constructor(t,e,n){this._selection=null,this.key=t,this.offset=e,this.type=n;}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){if(this.key===t.key)return this.offset<t.offset;return Vo(sl(Qo(this,"next")),sl(Qo(t,"next")))<0}getNode(){const e=ts(this.key);return null===e&&t$2(20),e}set(t,e,n,r){const i=this._selection,s=this.key;r&&this.key===t&&this.offset===e&&this.type===n||(this.key=t,this.offset=e,this.type=n,$r()||(Zi()===s&&Yi(t),null!==i&&(i.setCachedNodes(null),i.dirty=!0)));}}function rr(t,e,n){return new nr(t,e,n)}function ir(t,e){let n=e.__key,r=t.offset,i="element";if(Xn(e)){i="text";const t=e.getTextContentSize();r>t&&(r=t);}else if(!di(e)){const t=e.getNextSibling();if(Xn(t))n=t.__key,r=0,i="text";else {const t=e.getParent();t&&(n=t.__key,r=e.getIndexWithinParent()+1);}}t.set(n,r,i);}function sr(t,e){if(di(e)){const n=e.getLastDescendant();di(n)||Xn(n)?ir(t,n):ir(t,e);}else ir(t,e);}class or{constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1;}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t;}is(t){if(!ar(t))return !1;const e=this._nodes,n=t._nodes;return e.size===n.size&&Array.from(e).every((t=>n.has(t)))}isCollapsed(){return !1}isBackward(){return !1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null;}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null;}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null;}has(t){return this._nodes.has(t)}clone(){return new or(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const e=this.getNodes(),n=e.length,r=e[n-1];let i;if(Xn(r))i=r.select();else {const t=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(t,t);}i.insertNodes(t);for(let t=0;t<n;t++)e[t].remove();}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=this._nodes,n=[];for(const t of e){const e=ts(t);null!==e&&n.push(e);}return $r()||(this._cachedNodes=n),n}getTextContent(){const t=this.getNodes();let e="";for(let n=0;n<t.length;n++)e+=t[n].getTextContent();return e}}function lr(t){return t instanceof cr}class cr{constructor(t,e,n,r){this.anchor=t,this.focus=e,t._selection=this,e._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1;}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t;}is(t){return !!lr(t)&&(this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=function(t){const e=[],[n,r]=t.getTextSlices();n&&e.push(n.caret.origin);const i=new Set,s=new Set;for(const n of t)if(Eo(n)){const{origin:t}=n;0===e.length?i.add(t):(s.add(t),e.push(t));}else {const{origin:t}=n;di(t)&&s.has(t)||e.push(t);}r&&e.push(r.caret.origin);if(No(t.focus)&&di(t.focus.origin)&&null===t.focus.getNodeAtCaret())for(let n=Do(t.focus.origin,"previous");Eo(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(e[e.length-1]);n=Bo(n))i.delete(n.origin),e.pop();for(;e.length>1;){const t=e[e.length-1];if(!di(t)||s.has(t)||t.isEmpty()||i.has(t))break;e.pop();}if(0===e.length&&t.isCollapsed()){const n=sl(t.anchor),r=sl(t.anchor.getFlipped()),i=t=>To(t)?t.origin:t.getNodeAtCaret(),s=i(n)||i(r)||(t.anchor.getNodeAtCaret()?n.origin:r.origin);e.push(s);}return e}(cl(tl(this),"next"));return $r()||(this._cachedNodes=e),e}setTextNodeRange(t,e,n,r){this.anchor.set(t.__key,e,"text"),this.focus.set(n.__key,r,"text");}getTextContent(){const t=this.getNodes();if(0===t.length)return "";const e=t[0],n=t[t.length-1],r=this.anchor,i=this.focus,s=r.isBefore(i),[o,l]=fr(this);let c="",a=!0;for(let u=0;u<t.length;u++){const f=t[u];if(di(f)&&!f.isInline())a||(c+="\n"),a=!f.isEmpty();else if(a=!1,Xn(f)){let t=f.getTextContent();f===e?f===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(t=o<l?t.slice(o,l):t.slice(l,o)):t=s?t.slice(o):t.slice(l):f===n&&(t=s?t.slice(0,l):t.slice(0,o)),c+=t;}else !_i(f)&&!On(f)||f===n&&this.isCollapsed()||(c+=f.getTextContent());}return c}applyDOMRange(t){const e=Hr(),n=e.getEditorState()._selection,r=yr(t.startContainer,t.startOffset,t.endContainer,t.endOffset,e,n);if(null===r)return;const[i,s]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),Ct$2(this);}clone(){const t=this.anchor,e=this.focus;return new cr(rr(t.key,t.offset,t.type),rr(e.key,e.offset,e.type),this.format,this.style)}toggleFormat(t){this.format=qi(this.format,t,null),this.dirty=!0;}setStyle(t){this.style=t,this.dirty=!0;}hasFormat(t){const e=V$3[t];return !!(this.format&e)}insertRawText(t){const e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){const r=e[t];"\n"===r||"\r\n"===r?n.push(An()):"\t"===r?n.push(tr()):n.push(Qn(r));}this.insertNodes(n);}insertText(e){const n=this.anchor,r=this.focus,i=this.format,s=this.style;let o=n,l=r;!this.isCollapsed()&&r.isBefore(n)&&(o=r,l=n),"element"===o.type&&function(t,e,n,r){const i=t.getNode(),s=i.getChildAtIndex(t.offset),o=Qn(),l=mi(i)?Ti().append(o):o;o.setFormat(n),o.setStyle(r),null===s?i.append(l):s.insertBefore(l),t.is(e)&&e.set(o.__key,0,"text"),t.set(o.__key,0,"text");}(o,l,i,s),"element"===l.type&&Xo(l,sl(Qo(l,"next")));const c=o.offset;let a=l.offset;const u=this.getNodes(),f=u.length;let d=u[0];Xn(d)||t$2(26);const h=d.getTextContent().length,g=d.getParentOrThrow();let _=u[f-1];if(1===f&&"element"===l.type&&(a=h,l.set(o.key,a,"text")),this.isCollapsed()&&c===h&&(d.isSegmented()||d.isToken()||!d.canInsertTextAfter()||!g.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(Xn(t)&&t.canInsertTextBefore()&&!ji(t)||(t=Qn(),t.setFormat(i),t.setStyle(s),g.canInsertTextAfter()?d.insertAfter(t):g.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===c&&(d.isSegmented()||d.isToken()||!d.canInsertTextBefore()||!g.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(Xn(t)&&!ji(t)||(t=Qn(),t.setFormat(i),g.canInsertTextBefore()?d.insertBefore(t):g.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&c!==h){const t=Qn(d.getTextContent());t.setFormat(i),d.replace(t),d=t;}else if(!this.isCollapsed()&&""!==e){const t=_.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||di(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),mr(this.anchor,this.focus,null),void this.insertText(e)}if(1===f){if(d.isToken()){const t=Qn(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(c!==a||t===i&&n===s){if(er(d)){const t=Qn(e);return t.setFormat(i),t.setStyle(s),t.select(),void d.replace(t)}}else {if(""!==d.getTextContent()){const t=Qn(e);if(t.setFormat(i),t.setStyle(s),t.select(),0===c)d.insertBefore(t,!1);else {const[e]=d.splitText(c);e.insertAfter(t,!1);}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(i),d.setStyle(s);}const r=a-c;d=d.spliceText(c,r,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(d.isComposing()?this.anchor.offset-=e.length:(this.format=t,this.style=n));}else {const t=new Set([...d.getParentKeys(),..._.getParentKeys()]),n=di(d)?d:d.getParentOrThrow();let r=di(_)?_:_.getParentOrThrow(),i=_;if(!n.is(r)&&r.isInline())do{i=r,r=r.getParentOrThrow();}while(r.isInline());if("text"===l.type&&(0!==a||""===_.getTextContent())||"element"===l.type&&_.getIndexWithinParent()<a)if(Xn(_)&&!_.isToken()&&a!==_.getTextContentSize()){if(_.isSegmented()){const t=Qn(_.getTextContent());_.replace(t),_=t;}mi(l.getNode())||"text"!==l.type||(_=_.spliceText(0,a,"")),t.add(_.__key);}else {const t=_.getParentOrThrow();t.canBeEmpty()||1!==t.getChildrenSize()?_.remove():t.remove();}else t.add(_.__key);const s=r.getChildren(),o=new Set(u),g=n.is(r),p=n.isInline()&&null===d.getNextSibling()?n:d;for(let t=s.length-1;t>=0;t--){const e=s[t];if(e.is(d)||di(e)&&e.isParentOf(d))break;e.isAttached()&&(!o.has(e)||e.is(i)?g||p.insertAfter(e,!1):e.remove());}if(!g){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent();}}if(d.isToken())if(c===h)d.select();else {const t=Qn(e);t.select(),d.replace(t);}else d=d.spliceText(c,h-c,e,!0),""===d.getTextContent()?d.remove():d.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length);for(let e=1;e<f;e++){const n=u[e],r=n.__key;t.has(r)||n.remove();}}}removeText(){const t=Tr()===this;Zo(this,il(tl(this))),t&&Tr()!==this&&cs(this);}formatText(t,e=null){if(this.isCollapsed())return this.toggleFormat(t),void Yi(null);const n=this.getNodes(),r=[];for(const t of n)Xn(t)&&r.push(t);const i=e=>{n.forEach((n=>{if(di(n)){const r=n.getFormatFlags(t,e);n.setTextFormat(r);}}));},s=r.length;if(0===s)return this.toggleFormat(t),Yi(null),void i(e);const o=this.anchor,l=this.focus,c=this.isBackward(),a=c?l:o,u=c?o:l;let f=0,d=r[0],h="element"===a.type?0:a.offset;if("text"===a.type&&h===d.getTextContentSize()&&(f=1,d=r[1],h=0),null==d)return;const g=d.getFormatFlags(t,e);i(g);const _=s-1;let p=r[_];const m="text"===u.type?u.offset:p.getTextContentSize();if(d.is(p)){if(h===m)return;if(ji(d)||0===h&&m===d.getTextContentSize())d.setFormat(g);else {const t=d.splitText(h,m),e=0===h?t[0]:t[1];e.setFormat(g),"text"===a.type&&a.set(e.__key,0,"text"),"text"===u.type&&u.set(e.__key,m-h,"text");}return void(this.format=g)}0===h||ji(d)||([,d]=d.splitText(h),h=0),d.setFormat(g);const y=p.getFormatFlags(t,g);m>0&&(m===p.getTextContentSize()||ji(p)||([p]=p.splitText(m)),p.setFormat(y));for(let e=f+1;e<_;e++){const n=r[e],i=n.getFormatFlags(t,y);n.setFormat(i);}"text"===a.type&&a.set(d.__key,h,"text"),"text"===u.type&&u.set(p.__key,m,"text"),this.format=g|y;}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const n=Tr();return lr(n)||t$2(134),n.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=lo(n,oo),i=e[e.length-1];if(di(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else {const t=Ir(this);r.splice(t,0,e),i.selectEnd();}return}if(!e.some((t=>(di(t)||_i(t))&&!t.isInline()))){di(r)||t$2(211,n.constructor.name,n.getType());const s=Ir(this);return r.splice(s,0,e),void i.selectEnd()}const s=function(t){const e=Ti();let n=null;for(let r=0;r<t.length;r++){const i=t[r],s=On(i);if(s||_i(i)&&i.isInline()||di(i)&&i.isInline()||Xn(i)||i.isParentRequired()){if(null===n&&(n=i.createParentElementNode(),e.append(n),s))continue;null!==n&&n.append(i);}else e.append(i),n=null;}return e}(e),o=s.getLastDescendant(),l=s.getChildren(),c=!di(r)||!r.isEmpty()?this.insertParagraph():null,a=l[l.length-1];let u=l[0];var f;di(f=u)&&oo(f)&&!f.isEmpty()&&di(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(di(r)||t$2(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=l[1]),u&&(null===r&&t$2(212,n.constructor.name,n.getType()),function(e,n,r){const i=n.getParentOrThrow().getLastChild();let s=n;const o=[n];for(;s!==i;)s.getNextSibling()||t$2(140),s=s.getNextSibling(),o.push(s);let l=e;for(const t of o)l=l.insertAfter(t);}(r,u));const d=lo(o,oo);c&&di(d)&&(c.canMergeWhenEmpty()||oo(a))&&(d.append(...c.getChildren()),c.remove()),di(r)&&r.isEmpty()&&r.remove(),o.selectEnd();const h=di(r)?r.getLastChild():null;On(h)&&d!==r&&h.remove();}insertParagraph(){if("root"===this.anchor.key){const t=Ti();return os().splice(this.anchor.offset,0,[t]),t.select(),t}const e=Ir(this),n=lo(this.anchor.getNode(),oo);di(n)||t$2(213);const r=n.getChildAtIndex(e),i=r?[r,...r.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...i),s.selectStart(),s):null}insertLineBreak(t){const e=An();if(this.insertNodes([e]),t){const t=e.getParentOrThrow(),n=e.getIndexWithinParent();t.select(n,n);}}extract(){const t=this.getNodes(),e=t.length,n=e-1,r=this.anchor,i=this.focus;let s=t[0],o=t[n];const[l,c]=fr(this);if(0===e)return [];if(1===e){if(Xn(s)&&!this.isCollapsed()){const t=l>c?c:l,e=l>c?l:c,n=s.splitText(t,e),r=0===t?n[0]:n[1];return null!=r?[r]:[]}return [s]}const a=r.isBefore(i);if(Xn(s)){const e=a?l:c;e===s.getTextContentSize()?t.shift():0!==e&&([,s]=s.splitText(e),t[0]=s);}if(Xn(o)){const e=o.getTextContent().length,r=a?c:l;0===r?t.pop():r!==e&&([o]=o.splitText(r),t[n]=o);}return t}modify(t,e,n){if(zr(this,t,e,n))return;const r="move"===t,i=Hr(),s=Xs(Rs(i));if(!s)return;const o=i._blockCursorElement,l=i._rootElement,c=this.focus.getNode();if(null===l||null===o||!di(c)||c.isInline()||c.canBeEmpty()||Qs(o,i,l),this.dirty){let t=Os(i,this.anchor.key),e=Os(i,this.focus.key);"text"===this.anchor.type&&(t=Ui(t)),"text"===this.focus.type&&(e=Ui(e)),t&&e&&Lr(s,t,this.anchor.offset,e,this.focus.offset);}if(function(t,e,n,r){t.modify(e,n,r);}(s,t,e?"backward":"forward",n),s.rangeCount>0){const t=s.getRangeAt(0),n=this.anchor.getNode(),i=mi(n)?n:js(n);if(this.applyDOMRange(t),this.dirty=!0,!r){const n=this.getNodes(),r=[];let o=!1;for(let t=0;t<n.length;t++){const e=n[t];Ws(e,i)?r.push(e):o=!0;}if(o&&r.length>0)if(e){const t=r[0];di(t)?t.selectStart():t.getParentOrThrow().selectStart();}else {const t=r[r.length-1];di(t)?t.selectEnd():t.getParentOrThrow().selectEnd();}s.anchorNode===t.startContainer&&s.anchorOffset===t.startOffset||function(t){const e=t.focus,n=t.anchor,r=n.key,i=n.offset,s=n.type;n.set(e.key,e.offset,e.type,!0),e.set(r,i,s,!0);}(this);}}"lineboundary"===n&&zr(this,t,e,n,"decorators");}forwardDeletion(t,e,n){if(!n&&("element"===t.type&&di(e)&&t.offset===e.getChildrenSize()||"text"===t.type&&t.offset===e.getTextContentSize())){const t=e.getParent(),n=e.getNextSibling()||(null===t?null:t.getNextSibling());if(di(n)&&n.isShadowRoot())return !0}return !1}deleteCharacter(t){const e=this.isCollapsed();if(this.isCollapsed()){const e=this.anchor;let n=e.getNode();if(this.forwardDeletion(e,n,t))return;const r=Jo(Qo(e,t?"previous":"next"));if(r.getTextSlices().every((t=>null===t||0===t.distance))){let t={type:"initial"};for(const e of r.iterNodeCarets("shadowRoot"))if(Eo(e))if(e.origin.isInline());else {if(e.origin.isShadowRoot()){if("merge-block"===t.type)break;if(di(r.anchor.origin)&&r.anchor.origin.isEmpty()){const t=sl(e);Zo(this,jo(t,t)),r.anchor.origin.remove();}return}"merge-next-block"!==t.type&&"merge-block"!==t.type||(t={block:t.block,caret:e,type:"merge-block"});}else {if("merge-block"===t.type)break;if(No(e)){if(di(e.origin)){if(e.origin.isInline()){if(!e.origin.isParentOf(r.anchor.origin))break}else t={block:e.origin,type:"merge-next-block"};continue}if(_i(e.origin)){if(e.origin.isIsolated());else if("merge-next-block"===t.type&&(e.origin.isKeyboardSelectable()||!e.origin.isInline())&&di(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const t=Cr();t.add(e.origin.getKey()),cs(t);}else e.origin.remove();return}break}}if("merge-block"===t.type){const{caret:e,block:n}=t;return Zo(this,jo(!e.origin.isEmpty()&&n.isEmpty()?el(Ao(n,e.direction)):r.anchor,e)),this.removeText()}}const i=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===e.offset&&dr(this,e.getNode()))return}else {const r="text"===i.type?i.getNode():null;if(n="text"===e.type?e.getNode():null,null!==r&&r.isSegmented()){const e=i.offset,s=r.getTextContentSize();if(r.is(n)||t&&e!==s||!t&&0!==e)return void gr(r,t,e)}else if(null!==n&&n.isSegmented()){const i=e.offset,s=n.getTextContentSize();if(n.is(r)||t&&0!==i||!t&&i!==s)return void gr(n,t,i)}!function(t,e){const n=t.anchor,r=t.focus,i=n.getNode(),s=r.getNode();if(i===s&&"text"===n.type&&"text"===r.type){const t=n.offset,s=r.offset,o=t<s,l=o?t:s,c=o?s:t,a=c-1;if(l!==a){(function(t){return !(fs(t)||hr(t))})(i.getTextContent().slice(l,c))&&(e?r.set(r.key,a,r.type):n.set(n.key,a,n.type));}}}(this,t);}}if(this.removeText(),t&&!e&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const t=this.anchor.getNode();t.isEmpty()&&mi(t.getParent())&&null===t.getPreviousSibling()&&dr(this,t);}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText();}deleteWord(t){if(this.isCollapsed()){const e=this.anchor,n=e.getNode();if(this.forwardDeletion(e,n,t))return;this.modify("extend",t,"word");}this.removeText();}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return [this.anchor,this.focus]}}function ar(t){return t instanceof or}function ur(t){const e=t.offset;if("text"===t.type)return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function fr(t){const e=t.getStartEndPoints();if(null===e)return [0,0];const[n,r]=e;return "element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[ur(n),ur(r)]}function dr(t,e){for(let n=e;n;n=n.getParent()){if(di(n)){if(n.collapseAtStart(t))return !0;if($s(n))break}if(n.getPreviousSibling())break}return !1}const hr=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch(t){}return ()=>!1})();function gr(t,e,n){const r=t,i=r.getTextContent().split(/(?=\s)/g),s=i.length;let o=0,l=0;for(let t=0;t<s;t++){const r=t===s-1;if(l=o,o+=i[t].length,e&&o===n||o>n||r){i.splice(t,1),r&&(l=void 0);break}}const c=i.join("").trim();""===c?r.remove():(r.setTextContent(c),r.select(l,l));}function _r(e,n,r,i){let s,o=n;if(eo(e)){let l=!1;const c=e.childNodes,a=c.length,u=i._blockCursorElement;o===a&&(l=!0,o=a-1);let f=c[o],d=!1;if(f===u)f=c[o+1],d=!0;else if(null!==u){const t=u.parentNode;if(e===t){n>Array.prototype.indexOf.call(t.children,u)&&o--;}}if(s=as(f),Xn(s))o=us(s,l);else {let c=as(e);if(null===c)return null;if(di(c)){const a=i.getElementByKey(c.getKey());null===a&&t$2(214);const u=c.getDOMSlot(a);[c,o]=u.resolveChildIndex(c,a,e,n),di(c)||t$2(215),l&&o>=c.getChildrenSize()&&(o=Math.max(0,c.getChildrenSize()-1));let f=c.getChildAtIndex(o);if(di(f)&&function(t,e,n){const r=t.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(f,0,r)){const t=l?f.getLastDescendant():f.getFirstDescendant();null===t?c=f:(f=t,c=di(f)?f:f.getParentOrThrow()),o=0;}Xn(f)?(s=f,c=null,o=us(f,l)):f!==c&&l&&!d&&(di(c)||t$2(216),o=Math.min(c.getChildrenSize(),o+1));}else {const t=c.getIndexWithinParent();o=0===n&&_i(c)&&as(e)===c?t:t+1,c=c.getParentOrThrow();}if(di(c))return rr(c.__key,o,"element")}}else s=as(e);return Xn(s)?rr(s.__key,o,"text"):null}function pr(t,e,n){const r=t.offset,i=t.getNode();if(0===r){const r=i.getPreviousSibling(),s=i.getParent();if(e){if((n||!e)&&null===r&&di(s)&&s.isInline()){const e=s.getPreviousSibling();Xn(e)&&t.set(e.__key,e.getTextContent().length,"text");}}else di(r)&&!n&&r.isInline()?t.set(r.__key,r.getChildrenSize(),"element"):Xn(r)&&t.set(r.__key,r.getTextContent().length,"text");}else if(r===i.getTextContent().length){const r=i.getNextSibling(),s=i.getParent();if(e&&di(r)&&r.isInline())t.set(r.__key,0,"element");else if((n||e)&&null===r&&di(s)&&s.isInline()&&!s.canInsertTextAfter()){const e=s.getNextSibling();Xn(e)&&t.set(e.__key,0,"text");}}}function mr(t,e,n){if("text"===t.type&&"text"===e.type){const r=t.isBefore(e),i=t.is(e);pr(t,r,i),pr(e,!r,i),i&&e.set(t.key,t.offset,t.type);const s=Hr();if(s.isComposing()&&s._compositionKey!==t.key&&lr(n)){const r=n.anchor,i=n.focus;t.set(r.key,r.offset,r.type,!0),e.set(i.key,i.offset,i.type,!0);}}}function yr(t,e,n,r,i,s){if(null===t||null===n||!Wi(i,t,n))return null;const o=_r(t,e,lr(s)?s.anchor:null,i);if(null===o)return null;const l=_r(n,r,lr(s)?s.focus:null,i);if(null===l)return null;if("element"===o.type&&"element"===l.type){const e=as(t),r=as(n);if(_i(e)&&_i(r))return null}return mr(o,l,s),[o,l]}function xr(t){return di(t)&&!t.isInline()}function Sr(t,e,n,r,i,s){const o=qr(),l=new cr(rr(t,e,i),rr(n,r,s),0,"");return l.dirty=!0,o._selection=l,l}function vr(){const t=rr("root",0,"element"),e=rr("root",0,"element");return new cr(t,e,0,"")}function Cr(){return new or(new Set)}function kr(t,e){return br(null,t,e,null)}function br(t,e,n,r){const i=n._window;if(null===i)return null;const s=r||i.event,o=s?s.type:void 0,l="selectionchange"===o,c=!tt$2&&(l||"beforeinput"===o||"compositionstart"===o||"compositionend"===o||"click"===o&&s&&3===s.detail||"drop"===o||void 0===o);let a,u,f,d;if(lr(t)&&!c)return t.clone();if(null===e)return null;if(a=e.anchorNode,u=e.focusNode,f=e.anchorOffset,d=e.focusOffset,l&&lr(t)&&!Wi(n,a,u))return t.clone();const h=yr(a,f,u,d,n,t);if(null===h)return null;const[g,_]=h;return new cr(g,_,lr(t)?t.format:0,lr(t)?t.style:"")}function Tr(){return qr()._selection}function wr(){return Hr()._editorState._selection}function Nr(t,e,n,r=1){const i=t.anchor,s=t.focus,o=i.getNode(),l=s.getNode();if(!e.is(o)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const e=i.offset;if(n<=e&&r>0||n<e&&r<0){const n=Math.max(0,e+r);i.set(c,n,"element"),s.set(c,n,"element"),Er(t);}}else {const o=t.isBackward(),l=o?s:i,a=l.getNode(),u=o?i:s,f=u.getNode();if(e.is(a)){const t=l.offset;(n<=t&&r>0||n<t&&r<0)&&l.set(c,Math.max(0,t+r),"element");}if(e.is(f)){const t=u.offset;(n<=t&&r>0||n<t&&r<0)&&u.set(c,Math.max(0,t+r),"element");}}Er(t);}function Er(t){const e=t.anchor,n=e.offset,r=t.focus,i=r.offset,s=e.getNode(),o=r.getNode();if(t.isCollapsed()){if(!di(s))return;const t=s.getChildrenSize(),i=n>=t,o=i?s.getChildAtIndex(t-1):s.getChildAtIndex(n);if(Xn(o)){let t=0;i&&(t=o.getTextContentSize()),e.set(o.__key,t,"text"),r.set(o.__key,t,"text");}}else {if(di(s)){const t=s.getChildrenSize(),r=n>=t,i=r?s.getChildAtIndex(t-1):s.getChildAtIndex(n);if(Xn(i)){let t=0;r&&(t=i.getTextContentSize()),e.set(i.__key,t,"text");}}if(di(o)){const t=o.getChildrenSize(),e=i>=t,n=e?o.getChildAtIndex(t-1):o.getChildAtIndex(i);if(Xn(n)){let t=0;e&&(t=n.getTextContentSize()),r.set(n.__key,t,"text");}}}}function Pr(t,e,n,r,i){let s=null,o=0,l=null;null!==r?(s=r.__key,Xn(r)?(o=r.getTextContentSize(),l="text"):di(r)&&(o=r.getChildrenSize(),l="element")):null!==i&&(s=i.__key,Xn(i)?l="text":di(i)&&(l="element")),null!==s&&null!==l?t.set(s,o,l):(o=e.getIndexWithinParent(),-1===o&&(o=n.getChildrenSize()),t.set(n.__key,o,"element"));}function Fr(t,e,n,r,i){"text"===t.type?t.set(n,t.offset+(e?0:i),"text"):t.offset>r.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element");}function Lr(t,e,n,r,i){try{t.setBaseAndExtent(e,n,r,i);}catch(t){}}function Ar(t,e,n,r,i,s,o){const l=r.anchorNode,c=r.focusNode,a=r.anchorOffset,u=r.focusOffset,f=document.activeElement;if(i.has("collaboration")&&f!==s||null!==f&&Bi(f))return;if(!lr(e))return void(null!==t&&Wi(n,l,c)&&r.removeAllRanges());const d=e.anchor,h=e.focus,g=d.key,_=h.key,p=Os(n,g),m=Os(n,_),y=d.offset,x=h.offset,S=e.format,v=e.style,C=e.isCollapsed();let k=p,b=m,T=!1;if("text"===d.type){k=Ui(p);const t=d.getNode();T=t.getFormat()!==S||t.getStyle()!==v;}else lr(t)&&"text"===t.anchor.type&&(T=!0);var w,N,E,P,F;if(("text"===h.type&&(b=Ui(m)),null!==k&&null!==b)&&(C&&(null===t||T||lr(t)&&(t.format!==S||t.style!==v))&&(w=S,N=v,E=y,P=g,F=performance.now(),gn=[w,N,E,P,F]),a!==y||u!==x||l!==k||c!==b||"Range"===r.type&&C||(null!==f&&s.contains(f)||s.focus({preventScroll:!0}),"element"===d.type))){if(Lr(r,k,y,b,x),!i.has("skip-scroll-into-view")&&e.isCollapsed()&&null!==s&&s===document.activeElement){const t=lr(e)&&"element"===e.anchor.type?k.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==t){let e;if(t instanceof Text){const n=document.createRange();n.selectNode(t),e=n.getBoundingClientRect();}else e=t.getBoundingClientRect();!function(t,e,n){const r=Is(n),i=Ks(r);if(null===r||null===i)return;let{top:s,bottom:o}=e,l=0,c=0,a=n;for(;null!==a;){const e=a===r.body;if(e)l=0,c=Rs(t).innerHeight;else {const t=a.getBoundingClientRect();l=t.top,c=t.bottom;}let n=0;if(s<l?n=-(l-s):o>c&&(n=o-c),0!==n)if(e)i.scrollBy(0,n);else {const t=a.scrollTop;a.scrollTop+=n;const e=a.scrollTop-t;s-=e,o-=e;}if(e)break;a=Ms(a);}}(n,e,s);}}ln=!0;}}function Or(t){let e=Tr()||wr();null===e&&(e=os().selectEnd()),e.insertNodes(t);}function Mr(){const t=Tr();return null===t?"":t.getTextContent()}function Ir(e){let n=e;e.isCollapsed()||n.removeText();const r=Tr();lr(r)&&(n=r),lr(n)||t$2(161);const i=n.anchor;let s=i.getNode(),o=i.offset;for(;!oo(s);){const t=s;if([s,o]=Dr(s,o),t.is(s))break}return o}function Dr(t,e){const n=t.getParent();if(!n){const t=Ti();return os().append(t),t.select(),[os(),0]}if(Xn(t)){const r=t.splitText(e);if(0===r.length)return [n,t.getIndexWithinParent()];const i=0===e?0:1;return [n,r[0].getIndexWithinParent()+i]}if(!di(t)||0===e)return [n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const n=new cr(rr(t.__key,e,"element"),rr(t.__key,e,"element"),0,""),i=t.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings());}return [n,t.getIndexWithinParent()+1]}function zr(t,e,n,r,i="decorators-and-blocks"){if("move"===e&&"character"===r&&!t.isCollapsed()){const[e,r]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return r.set(e.key,e.offset,e.type),!0}const s=Qo(t.focus,n?"previous":"next"),o="lineboundary"===r,l="move"===e;let c=s,a="decorators-and-blocks"===i;if(!ol(c)){for(const t of c){a=!1;const{origin:e}=t;if(!_i(e)||e.isIsolated()||(c=t,!o||!e.isInline()))break}if(a)for(const t of Jo(s).iterNodeCarets("extend"===e?"shadowRoot":"root")){if(Eo(t))t.origin.isInline()||(c=t);else {if(di(t.origin))continue;_i(t.origin)&&!t.origin.isInline()&&(c=t);}break}}if(c===s)return !1;if(l&&!o&&_i(c.origin)&&c.origin.isKeyboardSelectable()){const t=Cr();return t.add(c.origin.getKey()),cs(t),!0}return c=sl(c),l&&Xo(t.anchor,c),Xo(t.focus,c),a||!o}let Br=null,Wr=null,Kr=!1,Rr=!1,Jr=0;const jr={characterData:!0,childList:!0,subtree:!0};function $r(){return Kr||null!==Br&&Br._readOnly}function Vr(){Kr&&t$2(13);}function Ur(){Jr>99&&t$2(14);}function qr(){return null===Br&&t$2(195,Gr()),Br}function Hr(){return null===Wr&&t$2(196,Gr()),Wr}function Gr(){let t=0;const e=new Set,n=Mi.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const i=Ji(r);if(Ki(i))t++;else if(i){let t=String(i.constructor.version||"<0.17.1");t===n&&(t+=" (separately built, likely a bundler configuration issue)"),e.add(t);}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function Qr(){return Wr}function Xr(e,n,r){const i=n.__type,s=function(e,n){const r=e._nodes.get(n);void 0===r&&t$2(30,n);return r}(e,i);let o=r.get(i);void 0===o&&(o=Array.from(s.transforms),r.set(i,o));const l=o.length;for(let t=0;t<l&&(o[t](n),n.isAttached());t++);}function Yr(t,e){return void 0!==t&&t.__key!==e&&t.isAttached()}function Zr(t,e){if(!e)return;const n=t._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const t of r)n.add(t);}function ti(t){return ei(t,Hr()._nodes)}function ei(e,n){const r=e.type,i=n.get(r);void 0===i&&t$2(17,r);const s=i.klass;e.type!==s.getType()&&t$2(18,s.name);const o=s.importJSON(e),l=e.children;if(di(o)&&Array.isArray(l))for(let t=0;t<l.length;t++){const e=ei(l[t],n);o.append(e);}return o}function ni(t,e,n){const r=Br,i=Kr,s=Wr;Br=e,Kr=!0,Wr=t;try{return n()}finally{Br=r,Kr=i,Wr=s;}}function ri(t,e){const n=t._pendingEditorState,r=t._rootElement,i=t._headless||null===r;if(null===n)return;const s=t._editorState,o=s._selection,l=n._selection,c=t._dirtyType!==m$6,a=Br,u=Kr,f=Wr,h=t._updating,g=t._observer;let _=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&null!==g){Wr=t,Br=n,Kr=!1,t._updating=!0;try{const e=t._dirtyType,r=t._dirtyElements,i=t._dirtyLeaves;g.disconnect(),_=ie(s,n,t,e,r,i);}catch(e){if(e instanceof Error&&t._onError(e),Rr)throw e;return Ai(t,null,r,n),at$1(t),t._dirtyType=x$8,Rr=!0,ri(t,s),void(Rr=!1)}finally{g.observe(r,jr),t._updating=h,Br=a,Kr=u,Wr=f;}}n._readOnly||(n._readOnly=!0);const p=t._dirtyLeaves,y=t._dirtyElements,S=t._normalizedNodes,v=t._updateTags,C=t._deferred;c&&(t._dirtyType=m$6,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(t,e){const n=t._decorators;let r=t._pendingDecorators||n;const i=e._nodeMap;let s;for(s in r)i.has(s)||(r===n&&(r=is(t)),delete r[s]);}(t,n);const k=i?null:Xs(Rs(t));if(t._editable&&null!==k&&(c||null===l||l.dirty)&&null!==r&&!v.has("skip-dom-selection")){Wr=t,Br=n;try{if(null!==g&&g.disconnect(),c||null===l||l.dirty){const e=t._blockCursorElement;null!==e&&Qs(e,t,r),Ar(o,l,t,k,v,r);}!function(t,e,n){let r=t._blockCursorElement;if(lr(n)&&n.isCollapsed()&&"element"===n.anchor.type&&e.contains(document.activeElement)){const i=n.anchor,s=i.getNode(),o=i.offset;let l=!1,c=null;if(o===s.getChildrenSize()){Gs(s.getChildAtIndex(o-1))&&(l=!0);}else {const e=s.getChildAtIndex(o);if(null!==e&&Gs(e)){const n=e.getPreviousSibling();(null===n||Gs(n))&&(l=!0,c=t.getElementByKey(e.__key));}}if(l){const n=t.getElementByKey(s.__key);return null===r&&(t._blockCursorElement=r=function(t){const e=t.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=e.blockCursor;if(void 0!==r){if("string"==typeof r){const t=d$5(r);r=e.blockCursor=t;}void 0!==r&&n.classList.add(...r);}return n}(t._config)),e.style.caretColor="transparent",void(null===c?n.appendChild(r):n.insertBefore(r,c))}}null!==r&&Qs(r,t,e);}(t,r,l);}finally{null!==g&&g.observe(r,jr),Wr=f,Br=a;}}null!==_&&function(t,e,n,r,i){const s=Array.from(t._listeners.mutation),o=s.length;for(let t=0;t<o;t++){const[o,l]=s[t],c=e.get(l);void 0!==c&&o(c,{dirtyLeaves:r,prevEditorState:i,updateTags:n});}}(t,_,v,p,s),lr(l)||null===l||null!==o&&o.is(l)||t.dispatchCommand(le,void 0);const b=t._pendingDecorators;null!==b&&(t._decorators=b,t._pendingDecorators=null,ii("decorator",t,!0,b)),function(t,e,n){const r=ss(e),i=ss(n);r!==i&&ii("textcontent",t,!0,i);}(t,e||s,n),ii("update",t,!0,{dirtyElements:y,dirtyLeaves:p,editorState:n,normalizedNodes:S,prevEditorState:e||s,tags:v}),function(t,e){if(t._deferred=[],0!==e.length){const n=t._updating;t._updating=!0;try{for(let t=0;t<e.length;t++)e[t]();}finally{t._updating=n;}}}(t,C),function(t){const e=t._updates;if(0!==e.length){const n=e.shift();if(n){const[e,r]=n;li(t,e,r);}}}(t);}function ii(t,e,n,...r){const i=e._updating;e._updating=n;try{const n=Array.from(e._listeners[t]);for(let t=0;t<n.length;t++)n[t].apply(null,r);}finally{e._updating=i;}}function si(t,e,n){if(!1===t._updating||Wr!==t){let r=!1;return t.update((()=>{r=si(t,e,n);})),r}const r=ds(t);for(let i=4;i>=0;i--)for(let s=0;s<r.length;s++){const o=r[s]._commands.get(e);if(void 0!==o){const e=o[i];if(void 0!==e){const r=Array.from(e),i=r.length;for(let e=0;e<i;e++)if(!0===r[e](n,t))return !0}}}return !1}function oi(e,n){const r=e._updates;let i=n||!1;for(;0!==r.length;){const n=r.shift();if(n){const[r,s]=n;let o;if(void 0!==s){if(o=s.onUpdate,s.skipTransforms&&(i=!0),s.discrete){const n=e._pendingEditorState;null===n&&t$2(191),n._flushSync=!0;}o&&e._deferred.push(o),Zr(e,s.tag);}r();}}return i}function li(e,n,r){const i=e._updateTags;let s,o=!1,l=!1;void 0!==r&&(s=r.onUpdate,Zr(e,r.tag),o=r.skipTransforms||!1,l=r.discrete||!1),s&&e._deferred.push(s);const c=e._editorState;let a=e._pendingEditorState,u=!1;(null===a||a._readOnly)&&(a=e._pendingEditorState=yi(a||c),u=!0),a._flushSync=l;const f=Br,d=Kr,h=Wr,g=e._updating;Br=a,Kr=!1,e._updating=!0,Wr=e;const _=e._headless||null===e.getRootElement();try{u&&(_?null!==c._selection&&(a._selection=c._selection.clone()):a._selection=function(t,e){const n=t.getEditorState()._selection,r=Xs(Rs(t));return lr(n)||null==n?br(n,r,t,e):n.clone()}(e,r&&r.event||null));const i=e._compositionKey;n(),o=oi(e,o),function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(lr(r)){const t=r.anchor,e=r.focus;let i;if("text"===t.type&&(i=t.getNode(),i.selectionTransform(n,r)),"text"===e.type){const t=e.getNode();i!==t&&t.selectionTransform(n,r);}}}(a,e),e._dirtyType!==m$6&&(o?function(t,e){const n=e._dirtyLeaves,r=t._nodeMap;for(const t of n){const e=r.get(t);Xn(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&vt$2(e);}}(a,e):function(t,e){const n=e._dirtyLeaves,r=e._dirtyElements,i=t._nodeMap,s=Zi(),o=new Map;let l=n,c=l.size,a=r,u=a.size;for(;c>0||u>0;){if(c>0){e._dirtyLeaves=new Set;for(const t of l){const r=i.get(t);Xn(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&vt$2(r),void 0!==r&&Yr(r,s)&&Xr(e,r,o),n.add(t);}if(l=e._dirtyLeaves,c=l.size,c>0){Jr++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(const t of a){const n=t[0],l=t[1];if("root"!==n&&!l)continue;const c=i.get(n);void 0!==c&&Yr(c,s)&&Xr(e,c,o),r.set(n,l);}l=e._dirtyLeaves,c=l.size,a=e._dirtyElements,u=a.size,Jr++;}e._dirtyLeaves=n,e._dirtyElements=r;}(a,e),oi(e),function(t,e,n,r){const i=t._nodeMap,s=e._nodeMap,o=[];for(const[t]of r){const e=s.get(t);void 0!==e&&(e.isAttached()||(di(e)&&Y$3(e,t,i,s,o,r),i.has(t)||r.delete(t),o.push(t)));}for(const t of o)s.delete(t);for(const t of n){const e=s.get(t);void 0===e||e.isAttached()||(i.has(t)||n.delete(t),s.delete(t));}}(c,a,e._dirtyLeaves,e._dirtyElements));i!==e._compositionKey&&(a._flushSync=!0);const s=a._selection;if(lr(s)){const e=a._nodeMap,n=s.anchor.key,r=s.focus.key;void 0!==e.get(n)&&void 0!==e.get(r)||t$2(19);}else ar(s)&&0===s._nodes.size&&(a._selection=null);}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=c,e._dirtyType=x$8,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void ri(e)}finally{Br=f,Kr=d,Wr=h,e._updating=g,Jr=0;}const p=e._dirtyType!==m$6||e._deferred.length>0||function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(null!==r){if(r.dirty||!r.is(n))return !0}else if(null!==n)return !0;return !1}(a,e);p?a._flushSync?(a._flushSync=!1,ri(e)):u&&zi((()=>{ri(e);})):(a._flushSync=!1,u&&(i.clear(),e._deferred=[],e._pendingEditorState=null));}function ci(t,e,n){t._updating?Wr===t?e():t._updates.push([e,n]):li(t,e,n);}class ai{constructor(t,e,n){this.element=t,this.before=e||null,this.after=n||null;}withBefore(t){return new ai(this.element,t,this.after)}withAfter(t){return new ai(this.element,this.before,t)}withElement(t){return new ai(t,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return null!==n&&n.parentElement!==this.element&&t$2(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&t$2(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&t$2(224),this.element.replaceChild(e,n),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(null===t)this.removeManagedLineBreak();else {const e="decorator"===t&&(l$4||o$4);this.insertManagedLineBreak(e);}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const e=this.element,n="IMG"===t.nodeName?t.nextSibling:null;n&&e.removeChild(n),e.removeChild(t),e.__lexicalLineBreak=void 0;}}insertManagedLineBreak(t){const e=this.getManagedLineBreak();if(e){if(t===("IMG"===e.nodeName))return;this.removeManagedLineBreak();}const n=this.element,r=this.before,i=document.createElement("br");if(n.insertBefore(i,r),t){const t=document.createElement("img");t.setAttribute("data-lexical-linebreak","true"),t.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",t.alt="",n.insertBefore(t,i),n.__lexicalLineBreak=t;}else n.__lexicalLineBreak=i;}getFirstChildOffset(){let t=0;for(let e=this.after;null!==e;e=e.previousSibling)t++;return t}resolveChildIndex(t,e,n,r){if(n===this.element){const e=this.getFirstChildOffset();return [t,Math.min(e+t.getChildrenSize(),Math.max(e,r))]}const i=ui(e,n);i.push(r);const s=ui(e,this.element);let o=t.getIndexWithinParent();for(let t=0;t<s.length;t++){const e=i[t],n=s[t];if(void 0===e||e<n)break;if(e>n){o+=1;break}}return [t.getParentOrThrow(),o]}}function ui(e,n){const r=[];let i=n;for(;i!==e&&null!==i;i=n.parentNode){let t=0;for(let e=i.previousSibling;null!==e;e=e.previousSibling)t++;r.push(t);}return i!==e&&t$2(225),r.reverse()}class fi extends Pn{constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle="";}afterCloneFrom(t){super.afterCloneFrom(t),this.__first=t.__first,this.__last=t.__last,this.__size=t.__size,this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle;}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return H$4[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getChildrenKeys(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e.__key),e=e.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const t=Hr()._dirtyElements;return null!==t&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),e=this.getParentOrThrow().getLastChild();return null!==e&&e.is(t)}getAllTextNodes(){const t=[];let e=this.getFirstChild();for(;null!==e;){if(Xn(e)&&t.push(e),di(e)){const n=e.getAllTextNodes();t.push(...n);}e=e.getNextSibling();}return t}getFirstDescendant(){let t=this.getFirstChild();for(;di(t);){const e=t.getFirstChild();if(null===e)break;t=e;}return t}getLastDescendant(){let t=this.getLastChild();for(;di(t);){const e=t.getLastChild();if(null===e)break;t=e;}return t}getDescendantByIndex(t){const e=this.getChildren(),n=e.length;if(t>=n){const t=e[n-1];return di(t)&&t.getLastDescendant()||t||null}const r=e[t];return di(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const t=this.getLatest().__first;return null===t?null:ts(t)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&t$2(45,this.__key),e}getLastChild(){const t=this.getLatest().__last;return null===t?null:ts(t)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&t$2(96,this.__key),e}getChildAtIndex(t){const e=this.getChildrenSize();let n,r;if(t<e/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=t;){if(r===t)return n;n=n.getNextSibling(),r++;}return null}for(n=this.getLastChild(),r=e-1;null!==n&&r>=t;){if(r===t)return n;n=n.getPreviousSibling(),r--;}return null}getTextContent(){let t="";const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContent(),di(i)&&r!==n-1&&!i.isInline()&&(t+=W$3);}return t}getTextContentSize(){let t=0;const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContentSize(),di(i)&&r!==n-1&&!i.isInline()&&(t+=W$3.length);}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(""!==t){const e=q$4[t];return !!(this.getFormat()&e)}return !1}hasTextFormat(t){const e=V$3[t];return !!(this.getTextFormat()&e)}getFormatFlags(t,e){return qi(this.getLatest().__textFormat,t,e)}getTextStyle(){return this.getLatest().__textStyle}select(t,e){Vr();const n=Tr();let r=t,i=e;const s=this.getChildrenSize();if(!this.canBeEmpty())if(0===t&&0===e){const t=this.getFirstChild();if(Xn(t)||di(t))return t.select(0,0)}else if(!(void 0!==t&&t!==s||void 0!==e&&e!==s)){const t=this.getLastChild();if(Xn(t)||di(t))return t.select()}void 0===r&&(r=s),void 0===i&&(i=s);const o=this.__key;return lr(n)?(n.anchor.set(o,r,"element"),n.focus.set(o,i,"element"),n.dirty=!0,n):Sr(o,r,o,i,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach((t=>t.remove())),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const e=this.getWritable();return e.__dir=t,e}setFormat(t){return this.getWritable().__format=""!==t?q$4[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const e=this.getWritable();return e.__textFormat=t,e}setTextStyle(t){const e=this.getWritable();return e.__textStyle=t,e}setIndent(t){return this.getWritable().__indent=t,this}splice(e,n,r){const i=r.length,s=this.getChildrenSize(),o=this.getWritable();e+n<=s||t$2(226,String(e),String(n),String(s));const l=o.__key,c=[],a=[],u=this.getChildAtIndex(e+n);let f=null,d=s-n+i;if(0!==e)if(e===s)f=this.getLastChild();else {const t=this.getChildAtIndex(e);null!==t&&(f=t.getPreviousSibling());}if(n>0){let e=null===f?this.getFirstChild():f.getNextSibling();for(let r=0;r<n;r++){null===e&&t$2(100);const n=e.getNextSibling(),r=e.__key;Qi(e.getWritable()),a.push(r),e=n;}}let h=f;for(let e=0;e<i;e++){const n=r[e];null!==h&&n.is(h)&&(f=h=h.getPreviousSibling());const i=n.getWritable();i.__parent===l&&d--,Qi(i);const s=n.__key;if(null===h)o.__first=s,i.__prev=null;else {const t=h.getWritable();t.__next=s,i.__prev=t.__key;}n.__key===l&&t$2(76),i.__parent=l,c.push(s),h=n;}if(e+n===s){if(null!==h){h.getWritable().__next=null,o.__last=h.__key;}}else if(null!==u){const t=u.getWritable();if(null!==h){const e=h.getWritable();t.__prev=h.__key,e.__next=u.__key;}else t.__prev=null;}if(o.__size=d,a.length){const t=Tr();if(lr(t)){const e=new Set(a),n=new Set(c),{anchor:r,focus:i}=t;hi(r,e,n)&&Pr(r,r.getNode(),this,f,u),hi(i,e,n)&&Pr(i,i.getNode(),this,f,u),0!==d||this.canBeEmpty()||$s(this)||this.remove();}}return o}getDOMSlot(t){return new ai(t)}exportDOM(t){const{element:e}=super.exportDOM(t);if(eo(e)){const t=this.getIndent();t>0&&(e.style.paddingInlineStart=40*t+"px");const n=this.getDirection();n&&(e.dir=n);}return {element:e}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},e=this.getTextFormat(),n=this.getTextStyle();return 0!==e&&(t.textFormat=e),""!==n&&(t.textStyle=n),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,e){return null}canIndent(){return !0}collapseAtStart(t){return !1}excludeFromCopy(t){return !1}canReplaceWith(t){return !0}canInsertAfter(t){return !0}canBeEmpty(){return !0}canInsertTextBefore(){return !0}canInsertTextAfter(){return !0}isInline(){return !1}isShadowRoot(){return !1}canMergeWith(t){return !1}extractWithChild(t,e,n){return !1}canMergeWhenEmpty(){return !1}reconcileObservedMutation(t,e){const n=this.getDOMSlot(t);let r=n.getFirstChild();for(let t=this.getFirstChild();t;t=t.getNextSibling()){const i=e.getElementByKey(t.getKey());null!==i&&(null==r?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling);}}}function di(t){return t instanceof fi}function hi(t,e,n){let r=t.getNode();for(;r;){const t=r.__key;if(e.has(t)&&!n.has(t))return !0;r=r.getParent();}return !1}class gi extends Pn{decorate(e,n){t$2(47);}isIsolated(){return !1}isInline(){return !0}isKeyboardSelectable(){return !0}}function _i(t){return t instanceof gi}class pi extends fi{static getType(){return "root"}static clone(){return new pi}constructor(){super("root"),this.__cachedText=null;}getTopLevelElementOrThrow(){t$2(51);}getTextContent(){const t=this.__cachedText;return !$r()&&Hr()._dirtyType!==m$6||null===t?super.getTextContent():t}remove(){t$2(52);}replace(e){t$2(53);}insertBefore(e){t$2(54);}insertAfter(e){t$2(55);}updateDOM(t,e){return !1}append(...e){for(let n=0;n<e.length;n++){const r=e[n];di(r)||_i(r)||t$2(56);}return super.append(...e)}static importJSON(t){return os().updateFromJSON(t)}collapseAtStart(){return !0}}function mi(t){return t instanceof pi}function yi(t){return new vi(new Map(t._nodeMap))}function xi(){return new vi(new Map([["root",new pi]]))}function Si(e){const n=e.exportJSON(),r=e.constructor;if(n.type!==r.getType()&&t$2(130,r.name),di(e)){const i=n.children;Array.isArray(i)||t$2(59,r.name);const s=e.getChildren();for(let t=0;t<s.length;t++){const e=Si(s[t]);i.push(e);}}return n}class vi{constructor(t,e){this._nodeMap=t,this._selection=e||null,this._flushSync=!1,this._readOnly=!1;}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(t,e){return ni(e&&e.editor||null,this,t)}clone(t){const e=new vi(this._nodeMap,void 0===t?this._selection:t);return e._readOnly=!0,e}toJSON(){return ni(null,this,(()=>({root:Si(os())})))}}class Ci extends fi{static getType(){return "artificial"}createDOM(t){return document.createElement("div")}}class ki extends fi{static getType(){return "paragraph"}static clone(t){return new ki(t.__key)}createDOM(t){const e=document.createElement("p"),n=Ts(t.theme,"paragraph");if(void 0!==n){e.classList.add(...n);}return e}updateDOM(t,e,n){return !1}static importDOM(){return {p:t=>({conversion:bi,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(eo(e)){this.isEmpty()&&e.append(document.createElement("br"));const t=this.getFormatType();e.style.textAlign=t;}return {element:e}}static importJSON(t){return Ti().updateFromJSON(t)}exportJSON(){return {...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(t,e){const n=Ti();n.setTextFormat(t.format),n.setTextStyle(t.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,e),n}collapseAtStart(){const t=this.getChildren();if(0===t.length||Xn(t[0])&&""===t[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return !1}}function bi(t){const e=Ti();return t.style&&(e.setFormat(t.style.textAlign),go(t,e)),{node:e}}function Ti(){return Us(new ki)}function wi(t){return t instanceof ki}const Ni=0,Ei=1,Pi=2,Fi=3,Li=4;function Ai(t,e,n,r){const i=t._keyToDOMMap;i.clear(),t._editorState=xi(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=m$6,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;null!==s&&(s.disconnect(),t._observer=null),null!==e&&(e.textContent=""),null!==n&&(n.textContent="",i.set("root",n));}function Oi(t){const e=t||{},n=Qr(),r=e.theme||{},i=void 0===t?n:e.parentEditor||null,s=e.disableEvents||!1,o=xi(),l=e.namespace||(null!==i?i._config.namespace:hs()),c=e.editorState,a=[pi,Rn,Fn,Zn,ki,Ci,...e.nodes||[]],{onError:u,html:f}=e,d=void 0===e.editable||e.editable;let h;if(void 0===t&&null!==n)h=n._nodes;else {h=new Map;for(let t=0;t<a.length;t++){let e=a[t],n=null,r=null;if("function"!=typeof e){const t=e;e=t.replace,n=t.with,r=t.withKlass||null;}const i=e.getType(),s=e.transform(),o=new Set;null!==s&&o.add(s),h.set(i,{exportDOM:f&&f.export?f.export.get(e):void 0,klass:e,replace:n,replaceWithKlass:r,transforms:o});}}const g=new Mi(o,i,h,{disableEvents:s,namespace:l,theme:r},u||console.error,function(t,e){const n=new Map,r=new Set,i=t=>{Object.keys(t).forEach((e=>{let r=n.get(e);void 0===r&&(r=[],n.set(e,r)),r.push(t[e]);}));};return t.forEach((t=>{const e=t.klass.importDOM;if(null==e||r.has(e))return;r.add(e);const n=e.call(t.klass);null!==n&&i(n);})),e&&i(e),n}(h,f?f.import:void 0),d);return void 0!==c&&(g._pendingEditorState=c,g._dirtyType=x$8),g}class Mi{constructor(t,e,n,r,i,s,o){this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=m$6,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=hs(),this._onError=i,this._htmlConversions=s,this._editable=o,this._headless=null!==e&&e._headless,this._window=null,this._blockCursorElement=null;}isComposing(){return null!=this._compositionKey}registerUpdateListener(t){const e=this._listeners.update;return e.add(t),()=>{e.delete(t);}}registerEditableListener(t){const e=this._listeners.editable;return e.add(t),()=>{e.delete(t);}}registerDecoratorListener(t){const e=this._listeners.decorator;return e.add(t),()=>{e.delete(t);}}registerTextContentListener(t){const e=this._listeners.textcontent;return e.add(t),()=>{e.delete(t);}}registerRootListener(t){const e=this._listeners.root;return t(this._rootElement,null),e.add(t),()=>{t(null,this._rootElement),e.delete(t);}}registerCommand(e,n,r){void 0===r&&t$2(35);const i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=i.get(e);void 0===s&&t$2(36,String(e));const o=s[r];return o.add(n),()=>{o.delete(n),s.every((t=>0===t.size))&&i.delete(e);}}registerMutationListener(t,e,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;i.set(e,r);const s=n&&n.skipInitialization;return void 0!==s&&s||this.initializeMutationListener(e,r),()=>{i.delete(e);}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return void 0===n&&t$2(37,e.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,e){const n=this._editorState,r=fo(n).get(e.getType());if(!r)return;const i=new Map;for(const t of r.keys())i.set(t,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])});}registerNodeTransformToKlass(t,e){const n=this.getRegisteredNode(t);return n.transforms.add(e),n}registerNodeTransform(t,e){const n=this.registerNodeTransformToKlass(t,e),r=[n],i=n.replaceWithKlass;if(null!=i){const t=this.registerNodeTransformToKlass(i,e);r.push(t);}return function(t,e){const n=fo(t.getEditorState()),r=[];for(const t of e){const e=n.get(t);e&&r.push(e);}if(0===r.length)return;t.update((()=>{for(const t of r)for(const e of t.keys()){const t=ts(e);t&&t.markDirty();}}),null===t._pendingEditorState?{tag:"history-merge"}:void 0);}(this,r.map((t=>t.klass.getType()))),()=>{r.forEach((t=>t.transforms.delete(e)));}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,e){return Ls(this,t,e)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const e=this._rootElement;if(t!==e){const n=Ts(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=t,Ai(this,e,t,r),null!==e&&(this._config.disableEvents||Nn(e),null!=n&&e.classList.remove(...n)),null!==t){const e=Ks(t),r=t.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=e,this._dirtyType=x$8,at$1(this),this._updateTags.add("history-merge"),ri(this),this._config.disableEvents||function(t,e){const n=t.ownerDocument,r=on.get(n);(void 0===r||r<1)&&n.addEventListener("selectionchange",bn),on.set(n,(r||0)+1),t.__lexicalEditor=e;const i=Cn(t);for(let n=0;n<tn.length;n++){const[r,s]=tn[n],o="function"==typeof s?t=>{wn(t)||(Tn(t),(e.isEditable()||"click"===r)&&s(t,e));}:t=>{if(wn(t))return;Tn(t);const n=e.isEditable();switch(r){case"cut":return n&&Ls(e,je,t);case"copy":return Ls(e,Je,t);case"paste":return n&&Ls(e,ge,t);case"dragstart":return n&&Ls(e,We,t);case"dragover":return n&&Ls(e,Ke,t);case"dragend":return n&&Ls(e,Re,t);case"focus":return n&&Ls(e,Ge,t);case"blur":return n&&Ls(e,Qe,t);case"drop":return n&&Ls(e,ze,t)}};t.addEventListener(r,o),i.push((()=>{t.removeEventListener(r,o);}));}}(t,this),null!=n&&t.classList.add(...n);}else this._window=null,this._updateTags.add("history-merge"),ri(this);ii("root",this,!1,t,e);}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&t$2(38);let r=e;r._readOnly&&(r=yi(e),r._selection=e._selection?e._selection.clone():null),ct$1(this);const i=this._pendingEditorState,s=this._updateTags,o=void 0!==n?n.tag:null;null===i||i.isEmpty()||(null!=o&&s.add(o),ri(this)),this._pendingEditorState=r,this._dirtyType=x$8,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=o&&s.add(o),this._updating||ri(this);}parseEditorState(t,e){return function(t,e,n){const r=xi(),i=Br,s=Kr,o=Wr,l=e._dirtyElements,c=e._dirtyLeaves,a=e._cloneNotNeeded,u=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._cloneNotNeeded=new Set,e._dirtyType=0,Br=r,Kr=!1,Wr=e;try{const i=e._nodes;ei(t.root,i),n&&n(),r._readOnly=!0;}catch(t){t instanceof Error&&e._onError(t);}finally{e._dirtyElements=l,e._dirtyLeaves=c,e._cloneNotNeeded=a,e._dirtyType=u,Br=i,Kr=s,Wr=o;}return r}("string"==typeof t?JSON.parse(t):t,this,e)}read(t){return ri(this),this.getEditorState().read(t,{editor:this})}update(t,e){!function(t,e,n){t._updating?t._updates.push([e,n]):li(t,e,n);}(this,t,e);}focus(t,e={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),ci(this,(()=>{const r=Tr(),i=os();null!==r?r.dirty=!0:0!==i.getChildrenSize()&&("rootStart"===e.defaultSelection?i.selectStart():i.selectEnd()),zs("focus"),Bs((()=>{n.removeAttribute("autocapitalize"),t&&t();}));})),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"));}blur(){const t=this._rootElement;null!==t&&t.blur();const e=Xs(this._window);null!==e&&e.removeAllRanges();}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,ii("editable",this,!0,t));}toJSON(){return {editorState:this._editorState.toJSON()}}}Mi.version="0.27.2+prod.esm";let Ii=1;function Di(){Ii=1;}const zi="function"==typeof queueMicrotask?queueMicrotask:t=>{Promise.resolve().then(t);};function Bi(t){const e=document.activeElement;if(!eo(e))return !1;const n=e.nodeName;return _i(rs(t))&&("INPUT"===n||"TEXTAREA"===n||"true"===e.contentEditable&&null==Ji(e))}function Wi(t,e,n){const r=t.getRootElement();try{return null!==r&&r.contains(e)&&r.contains(n)&&null!==e&&!Bi(e)&&Ri(e)===t}catch(t){return !1}}function Ki(t){return t instanceof Mi}function Ri(t){let e=t;for(;null!=e;){const t=Ji(e);if(Ki(t))return t;e=Ms(e);}return null}function Ji(t){return t?t.__lexicalEditor:null}function ji(t){return t.isToken()||t.isSegmented()}function $i(t){return no(t)&&t.nodeType===g$7}function Vi(t){return no(t)&&t.nodeType===_$6}function Ui(t){let e=t;for(;null!=e;){if($i(e))return e;e=e.firstChild;}return null}function qi(t,e,n){const r=V$3[e];if(null!==n&&(t&r)==(n&r))return t;let i=t^r;return "subscript"===e?i&=~V$3.superscript:"superscript"===e?i&=~V$3.subscript:"lowercase"===e?(i&=~V$3.uppercase,i&=~V$3.capitalize):"uppercase"===e?(i&=~V$3.lowercase,i&=~V$3.capitalize):"capitalize"===e&&(i&=~V$3.lowercase,i&=~V$3.uppercase),i}function Hi(t){return Xn(t)||On(t)||_i(t)}function Gi(t,e){if(null!=e)return void(t.__key=e);Vr(),Ur();const n=Hr(),r=qr(),i=""+Ii++;r._nodeMap.set(i,t),di(t)?n._dirtyElements.set(i,!0):n._dirtyLeaves.add(i),n._cloneNotNeeded.add(i),n._dirtyType=y$6,t.__key=i;}function Qi(t){const e=t.getParent();if(null!==e){const n=t.getWritable(),r=e.getWritable(),i=t.getPreviousSibling(),s=t.getNextSibling();if(null===i)if(null!==s){const t=s.getWritable();r.__first=s.__key,t.__prev=null;}else r.__first=null;else {const t=i.getWritable();if(null!==s){const e=s.getWritable();e.__prev=t.__key,t.__next=e.__key;}else t.__next=null;n.__prev=null;}if(null===s)if(null!==i){const t=i.getWritable();r.__last=i.__key,t.__next=null;}else r.__last=null;else {const t=s.getWritable();if(null!==i){const e=i.getWritable();e.__next=t.__key,t.__prev=e.__key;}else t.__prev=null;n.__next=null;}r.__size--,n.__parent=null;}}function Xi(t){Ur();const e=t.getLatest(),n=e.__parent,r=qr(),i=Hr(),s=r._nodeMap,o=i._dirtyElements;null!==n&&function(t,e,n){let r=t;for(;null!==r;){if(n.has(r))return;const t=e.get(r);if(void 0===t)break;n.set(r,!1),r=t.__parent;}}(n,s,o);const l=e.__key;i._dirtyType=y$6,di(t)?o.set(l,!0):i._dirtyLeaves.add(l);}function Yi(t){Vr();const e=Hr(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,null!==n){const t=ts(n);null!==t&&t.getWritable();}if(null!==t){const e=ts(t);null!==e&&e.getWritable();}}}function Zi(){if($r())return null;return Hr()._compositionKey}function ts(t,e){const n=(e||qr())._nodeMap.get(t);return void 0===n?null:n}function es(t,e){const n=ns(t,Hr());return void 0!==n?ts(n,e):null}function ns(t,e){return t[`__lexicalKey_${e._key}`]}function rs(t,e){let n=t;for(;null!=n;){const t=es(n,e);if(null!==t)return t;n=Ms(n);}return null}function is(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function ss(t){return t.read((()=>os().getTextContent()))}function os(){return ls(qr())}function ls(t){return t._nodeMap.get("root")}function cs(t){Vr();const e=qr();null!==t&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t;}function as(t){const e=Hr(),n=function(t,e){let n=t;for(;null!=n;){const t=ns(n,e);if(void 0!==t)return t;n=Ms(n);}return null}(t,e);if(null===n){return t===e.getRootElement()?ts("root"):null}return ts(n)}function us(t,e){return e?t.getTextContentSize():0}function fs(t){return /[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function ds(t){const e=[];let n=t;for(;null!==n;)e.push(n),n=n._parentEditor;return e}function hs(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function gs(t){return $i(t)?t.nodeValue:null}function _s(t,e,n){const r=Xs(Rs(e));if(null===r)return;const i=r.anchorNode;let{anchorOffset:s,focusOffset:o}=r;if(null!==i){let e=gs(i);const r=rs(i);if(null!==e&&Xn(r)){if(e===B$4&&n){const t=n.length;e=n,s=t,o=t;}null!==e&&ps(r,e,s,o,t);}}}function ps(t,e,n,r,i){let s=t;if(s.isAttached()&&(i||!s.isDirty())){const c=s.isComposing();let a=e;(c||i)&&e[e.length-1]===B$4&&(a=e.slice(0,-1));const u=s.getTextContent();if(i||a!==u){if(""===a){if(Yi(null),o$4||l$4||f$5)s.remove();else {const t=Hr();setTimeout((()=>{t.update((()=>{s.isAttached()&&s.remove();}));}),20);}return}const e=s.getParent(),i=wr(),u=s.getTextContentSize(),d=Zi(),h=s.getKey();if(s.isToken()||null!==d&&h===d&&!c||lr(i)&&(null!==e&&!e.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===t.__key&&0===i.anchor.offset&&!s.canInsertTextBefore()&&!c||i.focus.key===t.__key&&i.focus.offset===u&&!s.canInsertTextAfter()&&!c))return void s.markDirty();const g=Tr();if(!lr(g)||null===n||null===r)return void s.setTextContent(a);if(g.setTextNodeRange(s,n,s,r),s.isSegmented()){const t=Qn(s.getTextContent());s.replace(t),s=t;}s.setTextContent(a);}}}function ms(t){return "ArrowLeft"===t}function ys(t){return "ArrowRight"===t}function xs(t,e){return r$1?t:e}function Ss(t){return "Enter"===t}function vs(t){return "Backspace"===t}function Cs(t){return "Delete"===t}function ks(t,e,n){return "a"===t.toLowerCase()&&xs(e,n)}function bs(t){const e=os();if(lr(t)){const e=t.anchor,n=t.focus,r=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();return e.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Ct$2(t),t}{const t=e.select(0,e.getChildrenSize());return cs(Ct$2(t)),t}}function Ts(t,e){void 0===t.__lexicalClassNameCache&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(void 0!==r)return r;const i=t[e];if("string"==typeof i){const t=d$5(i);return n[e]=t,t}return i}function ws(e,n,r,i,s){if(0===r.size)return;const o=i.__type,l=i.__key,c=n.get(o);void 0===c&&t$2(33,o);const a=c.klass;let u=e.get(a);void 0===u&&(u=new Map,e.set(a,u));const f=u.get(l),d="destroyed"===f&&"created"===s;(void 0===f||d)&&u.set(l,d?"updated":s);}function Ns(t){const e=t.getType(),n=qr();if(n._readOnly){const t=fo(n).get(e);return t?Array.from(t.values()):[]}const r=n._nodeMap,i=[];for(const[,n]of r)n instanceof t&&n.__type===e&&n.isAttached()&&i.push(n);return i}function Es(t,e,n){const r=t.getParent();let i=n,s=t;return null!==r&&(e&&0===n?(i=s.getIndexWithinParent(),s=r):e||n!==s.getChildrenSize()||(i=s.getIndexWithinParent()+1,s=r)),s.getChildAtIndex(e?i-1:i)}function Ps(t,e){const n=t.offset;if("element"===t.type){return Es(t.getNode(),e,n)}{const r=t.getNode();if(e&&0===n||!e&&n===r.getTextContentSize()){const t=e?r.getPreviousSibling():r.getNextSibling();return null===t?Es(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):t}}return null}function Fs(t){const e=Rs(t).event,n=e&&e.inputType;return "insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function Ls(t,e,n){return si(t,e,n)}function As(t){return !mi(t)&&!t.isLastChild()&&!t.isInline()}function Os(e,n){const r=e._keyToDOMMap.get(n);return void 0===r&&t$2(75,n),r}function Ms(t){const e=t.assignedSlot||t.parentElement;return ro(e)?e.host:e}function Is(t){return Vi(t)?t:eo(t)?t.ownerDocument:null}function Ds(t){return Hr()._updateTags.has(t)}function zs(t){Vr();Hr()._updateTags.add(t);}function Bs(t){Vr();Hr()._deferred.push(t);}function Ws(t,e){let n=t.getParent();for(;null!==n;){if(n.is(e))return !0;n=n.getParent();}return !1}function Ks(t){const e=Is(t);return e?e.defaultView:null}function Rs(e){const n=e._window;return null===n&&t$2(78),n}function Js(t){return di(t)&&t.isInline()||_i(t)&&t.isInline()}function js(t){let e=t.getParentOrThrow();for(;null!==e;){if($s(e))return e;e=e.getParentOrThrow();}return e}function $s(t){return mi(t)||di(t)&&t.isShadowRoot()}function Vs(t){const e=t.constructor.clone(t);return Gi(e,null),e}function Us(e){const n=Hr(),r=e.constructor.getType(),i=n._nodes.get(r);void 0===i&&t$2(200,e.constructor.name,r);const{replace:s,replaceWithKlass:o}=i;if(null!==s){const n=s(e),i=n.constructor;return null!==o?n instanceof o||t$2(201,o.name,o.getType(),i.name,i.getType(),e.constructor.name,r):n instanceof e.constructor&&i!==e.constructor||t$2(202,i.name,i.getType(),e.constructor.name,r),n.__key===e.__key&&t$2(203,e.constructor.name,r,i.name,i.getType()),n}return e}function qs(e,n){!mi(e.getParent())||di(n)||_i(n)||t$2(99);}function Hs(e){const n=ts(e);return null===n&&t$2(63,e),n}function Gs(t){return (_i(t)||di(t)&&!t.canBeEmpty())&&!t.isInline()}function Qs(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;null!==r&&r.removeChild(t);}function Xs(t){return e$3?(t||window).getSelection():null}function Ys(t){const e=Ks(t);return e?e.getSelection():null}function Zs(e,n){let r=e.getChildAtIndex(n);null==r&&(r=e),$s(e)&&t$2(102);const i=e=>{const n=e.getParentOrThrow(),s=$s(n),o=e!==r||s?Vs(e):e;if(s)return di(e)&&di(o)||t$2(133),e.insertAfter(o),[e,o,o];{const[t,r,s]=i(n),l=e.getNextSiblings();return s.append(o,...l),[t,r,o]}},[s,o]=i(r);return [s,o]}function to(t){return eo(t)&&"A"===t.tagName}function eo(t){return no(t)&&t.nodeType===h$6}function no(t){return "object"==typeof t&&null!==t&&"nodeType"in t&&"number"==typeof t.nodeType}function ro(t){return no(t)&&t.nodeType===p$4}function io(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==t.nodeName.match(e)}function so(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==t.nodeName.match(e)}function oo(t){if(_i(t)&&!t.isInline())return !0;if(!di(t)||$s(t))return !1;const e=t.getFirstChild(),n=null===e||On(e)||Xn(e)||e.isInline();return !t.isInline()&&!1!==t.canBeEmpty()&&n}function lo(t,e){let n=t;for(;null!==n&&null!==n.getParent()&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}function co(){return Hr()}const ao=new WeakMap,uo=new Map;function fo(e){if(!e._readOnly&&e.isEmpty())return uo;e._readOnly||t$2(192);let n=ao.get(e);return n||(n=function(t){const e=new Map;for(const[n,r]of t._nodeMap){const t=r.__type;let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r);}return e}(e),ao.set(e,n)),n}function ho(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function go(t,e){const n=(parseInt(t.style.paddingInlineStart,10)||0)/40;e.setIndent(n);}function _o(t){t.__lexicalUnmanaged=!0;}function po(t){return !0===t.__lexicalUnmanaged}const mo={next:"previous",previous:"next"};class yo{constructor(t){this.origin=t;}[Symbol.iterator](){return $o({hasNext:No,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return Ao(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Ao(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,e){const n=this.getNodeAtCaret();return t.is(this.origin)||t.is(n)||(null===n?this.insert(t):n.replace(t,e)),this}splice(e,n,r="next"){const i=r===this.direction?n:Array.from(n).reverse();let s=this;const o=this.getParentAtCaret(),l=new Map;for(let t=s.getAdjacentCaret();null!==t&&l.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();l.set(e.getKey(),e);}for(const e of i){if(l.size>0){const n=s.getNodeAtCaret();if(n)if(l.delete(n.getKey()),l.delete(e.getKey()),n.is(e)||s.origin.is(e));else {const t=e.getParent();t&&t.is(o)&&e.remove(),n.replace(e);}else null===n&&t$2(263,Array.from(l).join(" "));}else s.insert(e);s=Ao(e,this.direction);}for(const t of l.values())t.remove();return this}}class xo extends yo{type="child";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Do(t,this.direction)}getParentCaret(t="root"){return Ao(Co(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=vo(this.direction);return Ao(this.getNodeAtCaret(),t)||Do(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof xo&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}}const So={root:mi,shadowRoot:$s};function vo(t){return mo[t]}function Co(t,e="root"){return So[e](t)?null:t}class ko extends yo{type="sibling";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Ao(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return di(this.origin)?Do(this.origin,this.direction):null}getParentCaret(t="root"){return Ao(Co(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=vo(this.direction);return Ao(this.getNodeAtCaret(),t)||Do(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof ko&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return (t instanceof ko||t instanceof bo)&&this.direction===t.direction&&this.origin.is(t.origin)}}class bo extends yo{type="text";constructor(t,e){super(t),this.offset=e;}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Oo(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return Ao(Co(this.getParentAtCaret(),t),this.direction)}getFlipped(){return Oo(this.origin,vo(this.direction),this.offset)}isSamePointCaret(t){return t instanceof bo&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return (t instanceof ko||t instanceof bo)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Ao(this.origin,this.direction)}}function To(t){return t instanceof bo}function wo(t){return t instanceof yo}function No(t){return t instanceof ko}function Eo(t){return t instanceof xo}const Po={next:class extends bo{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends bo{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},Fo={next:class extends ko{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends ko{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},Lo={next:class extends xo{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends xo{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function Ao(t,e){return t?new Fo[e](t):null}function Oo(t,e,n){return t?new Po[e](t,Mo(t,n)):null}function Mo(e,n){const r=e.getTextContentSize(),i="next"===n?r:"previous"===n?0:n;return i>=0&&i<=r||t$2(274,String(n),String(r)),i}function Io(t,e){return new Ko(t,e)}function Do(t,e){return di(t)?new Lo[e](t):null}function zo(t){return t&&t.getChildCaret()||t}function Bo(t){return t&&zo(t.getAdjacentCaret())}class Wo{type="node-caret-range";constructor(t,e,n){this.anchor=t,this.focus=e,this.direction=n;}getLatest(){const t=this.anchor.getLatest(),e=this.focus.getLatest();return t===this.anchor&&e===this.focus?this:new Wo(t,e,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=t=>{const e=this[t].getLatest();return To(e)?function(t,e){const{direction:n,origin:r}=t,i=Mo(r,"focus"===e?vo(n):n);return Io(t,i-t.offset)}(e,t):null},e=t("anchor"),n=t("focus");if(e&&n){const{caret:t}=e,{caret:r}=n;if(t.isSameNodeCaret(r))return [Io(t,r.offset-t.offset),null]}return [e,n]}iterNodeCarets(t="root"){const e=To(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=To(n),i=e=>e.isSameNodeCaret(n)?null:Bo(e)||e.getParentCaret(t);return $o({hasNext:t=>null!==t&&!(r&&n.isSameNodeCaret(t)),initial:e.isSameNodeCaret(n)?null:i(e),map:t=>t,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class Ko{type="slice";constructor(t,e){this.caret=t,this.distance=e;}getSliceIndices(){const{distance:t,caret:{offset:e}}=this,n=e+t;return n<e?[n,e]:[e,n]}getTextContent(){const[t,e]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,e)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:e}}=this,[n,r]=this.getSliceIndices(),i=t.getTextContent();return Oo(t.setTextContent(i.slice(0,n)+i.slice(r)),e,n)}}function Ro(t){return t instanceof Ko}function Jo(t){return jo(t,Ao(os(),t.direction))}function jo(e,n){return e.direction!==n.direction&&t$2(265),new Wo(e,n,e.direction)}function $o(t){const{initial:e,hasNext:n,step:r,map:i}=t;let s=e;return {[Symbol.iterator](){return this},next(){if(!n(s))return {done:!0,value:void 0};const t={done:!1,value:i(s)};return s=r(s),t}}}function Vo(e,n){const r=Go(e.origin,n.origin);switch(null===r&&t$2(275,e.origin.getKey(),n.origin.getKey()),r.type){case"same":{const t="text"===e.type,r="text"===n.type;return t&&r?function(t,e){return Math.sign(t-e)}(e.offset,n.offset):e.type===n.type?0:t?-1:r?1:"child"===e.type?-1:1}case"ancestor":return "child"===e.type?-1:1;case"descendant":return "child"===n.type?1:-1;case"branch":return Uo(r)}}function Uo(t){const{a:e,b:n}=t,r=e.__key,i=n.__key;let s=e,o=n;for(;s&&o;s=s.getNextSibling(),o=o.getNextSibling()){if(s.__key===i)return -1;if(o.__key===r)return 1}return null===s?1:-1}function qo(t,e){return e.is(t)}function Ho(t){return di(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Go(e,n){if(e.is(n))return {commonAncestor:e,type:"same"};const r=new Map;for(let[t,n]=Ho(e);t;n=t,t=t.getParent())r.set(t,n);for(let[i,s]=Ho(n);i;s=i,i=i.getParent()){const o=r.get(i);if(void 0!==o)return null===o?(qo(e,i)||t$2(276),{commonAncestor:i,type:"ancestor"}):null===s?(qo(n,i)||t$2(277),{commonAncestor:i,type:"descendant"}):((di(o)||qo(e,o))&&(di(s)||qo(n,s))&&i.is(o.getParent())&&i.is(s.getParent())||t$2(278),{a:o,b:s,commonAncestor:i,type:"branch"})}return null}function Qo(e,n){const{type:r,key:i,offset:s}=e,o=Hs(e.key);return "text"===r?(Xn(o)||t$2(266,o.getType(),i),Oo(o,n,s)):(di(o)||t$2(267,o.getType(),i),al(o,e.offset,n))}function Xo(e,n){const{origin:r,direction:i}=n,s="next"===i;To(n)?e.set(r.getKey(),n.offset,"text"):No(n)?Xn(r)?e.set(r.getKey(),Mo(r,i),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+(s?1:0),"element"):(Eo(n)&&di(r)||t$2(268),e.set(r.getKey(),s?0:r.getChildrenSize(),"element"));}function Yo(t){const e=Tr(),n=lr(e)?e:vr();return Zo(n,t),cs(n),n}function Zo(t,e){Xo(t.anchor,e.anchor),Xo(t.focus,e.focus);}function tl(t){const{anchor:e,focus:n}=t,r=Qo(e,"next"),i=Qo(n,"next"),s=Vo(r,i)<=0?"next":"previous";return jo(ll(r,s),ll(i,s))}function el(t){const{direction:e,origin:n}=t,r=Ao(n,vo(e)).getNodeAtCaret();return r?Ao(r,e):Do(n.getParentOrThrow(),e)}function nl(t,e="root"){const n=[t];for(let r=Eo(t)?t.getParentCaret(e):t.getSiblingCaret();null!==r;r=r.getParentCaret(e))n.push(el(r));return n}function rl(t){return !!t&&t.origin.isAttached()}function il(e,n="removeEmptySlices"){if(e.isCollapsed())return e;const r="root",i="next";let s=n;const o=cl(e,i),l=nl(o.anchor,r),c=nl(o.focus.getFlipped(),r),a=new Set,u=[];for(const t of o.iterNodeCarets(r))if(Eo(t))a.add(t.origin.getKey());else if(No(t)){const{origin:e}=t;di(e)&&!a.has(e.getKey())||u.push(e);}for(const t of u)t.remove();for(const t of o.getTextSlices()){if(!t)continue;const{origin:e}=t.caret,n=e.getTextContentSize(),r=el(Ao(e,i)),o=e.getMode();if(Math.abs(t.distance)===n&&"removeEmptySlices"===s||"token"===o&&0!==t.distance)r.remove();else if(0!==t.distance){s="removeEmptySlices";let e=t.removeTextSlice();const n=t.caret.origin;if("segmented"===o){const t=e.origin,n=Qn(t.getTextContent()).setStyle(t.getStyle()).setFormat(t.getFormat());r.replaceOrInsert(n),e=Oo(n,i,e.offset);}n.is(l[0].origin)&&(l[0]=e),n.is(c[0].origin)&&(c[0]=e.getFlipped());}}let f,d;for(const t of l)if(rl(t)){f=sl(t);break}for(const t of c)if(rl(t)){d=sl(t);break}const h=function(t,e,n){if(!t||!e)return null;const r=t.getParentAtCaret(),i=e.getParentAtCaret();if(!r||!i)return null;const s=r.getParents().reverse();s.push(r);const o=i.getParents().reverse();o.push(i);const l=Math.min(s.length,o.length);let c;for(c=0;c<l&&s[c]===o[c];c++);const a=(t,e)=>{let n;for(let r=c;r<t.length;r++){const i=t[r];if($s(i))return;!n&&e(i)&&(n=i);}return n},u=a(s,oo),f=u&&a(o,(t=>n.has(t.getKey())&&oo(t)));return u&&f?[u,f]:null}(f,d,a);if(h){const[t,e]=h;Do(t,"previous").splice(0,e.getChildren()),e.remove();}const g=[f,d,...l,...c].find(rl);if(g){const t=ll(sl(g),e.direction);return jo(t,t)}t$2(269,JSON.stringify(l.map((t=>t.origin.__key))));}function sl(t){const e=function(t){let e=t;for(;Eo(e);){const t=Bo(e);if(!Eo(t))break;e=t;}return e}(t.getLatest()),{direction:n}=e;if(Xn(e.origin))return To(e)?e:Oo(e.origin,n,n);const r=e.getAdjacentCaret();return No(r)&&Xn(r.origin)?Oo(r.origin,n,vo(n)):e}function ol(t){return To(t)&&t.offset!==Mo(t.origin,t.direction)}function ll(t,e){return t.direction===e?t:t.getFlipped()}function cl(t,e){return t.direction===e?t:jo(ll(t.focus,e),ll(t.anchor,e))}function al(t,e,n){let r=Do(t,"next");for(let t=0;t<e;t++){const t=r.getAdjacentCaret();if(null===t)break;r=t;}return ll(r,n)}function ul(t,e="root"){let n=0,r=t,i=Bo(r);for(;null===i;){if(n--,i=r.getParentCaret(e),!i)return null;r=i,i=Bo(r);}return i&&[i,n]}
|
|
94432
|
+
function t$2(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const e$3="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,n$5=e$3&&"documentMode"in document?document.documentMode:null,r$1=e$3&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),i$1=e$3&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),s$1=!(!e$3||!("InputEvent"in window)||n$5)&&"getTargetRanges"in new window.InputEvent("input"),o$4=e$3&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),l$4=e$3&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c$5=e$3&&/Android/.test(navigator.userAgent),a$5=e$3&&/^(?=.*Chrome).*/i.test(navigator.userAgent),u$4=e$3&&c$5&&a$5,f$5=e$3&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!a$5;function d$5(...t){const e=[];for(const n of t)if(n&&"string"==typeof n)for(const[t]of n.matchAll(/\S+/g))e.push(t);return e}const h$6=1,g$7=3,_$6=9,p$4=11,m$6=0,y$6=1,x$8=2,S$4=0,v$5=1,C$6=2,k$8=1,b$8=2,T$3=4,w$6=8,N$7=16,E$7=32,P$5=64,F$4=128,L$5=1792|(112|(3|T$3|w$6)|F$4),A$4=1,O$6=2,M$5=3,I$5=4,D$6=5,z$4=6,B$4=o$4||l$4||f$5?" ":"",W$3="\n\n",K$3=i$1?" ":B$4,R$5="֑-߿יִ-﷽ﹰ-ﻼ",J$3="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",j$3=new RegExp("^[^"+J$3+"]*["+R$5+"]"),$$3=new RegExp("^[^"+R$5+"]*["+J$3+"]"),V$3={bold:1,capitalize:1024,code:16,highlight:F$4,italic:2,lowercase:256,strikethrough:T$3,subscript:32,superscript:64,underline:w$6,uppercase:512},U$5={directionless:1,unmergeable:2},q$4={center:O$6,end:z$4,justify:I$5,left:A$4,right:M$5,start:D$6},H$4={[O$6]:"center",[z$4]:"end",[I$5]:"justify",[A$4]:"left",[M$5]:"right",[D$6]:"start"},G$4={normal:0,segmented:2,token:1},Q$3={[S$4]:"normal",[C$6]:"segmented",[v$5]:"token"},X$3="$";function Y$3(t,e,n,r,i,s){let o=t.getFirstChild();for(;null!==o;){const t=o.__key;o.__parent===e&&(di(o)&&Y$3(o,t,n,r,i,s),n.has(t)||s.delete(t),i.push(t)),o=o.getNextSibling();}}const Z$2=100;let tt$2=!1,et$2=0;function nt$2(t){et$2=t.timeStamp;}function rt$2(t,e,n){const r="BR"===t.nodeName,i=e.__lexicalLineBreak;return i&&(t===i||r&&t.previousSibling===i)||r&&void 0!==ns(t,n)}function it$2(t,e,n){const r=Xs(Rs(n));let i=null,s=null;null!==r&&r.anchorNode===t&&(i=r.anchorOffset,s=r.focusOffset);const o=t.nodeValue;null!==o&&ps(e,o,i,s,!1);}function st$2(t,e,n){if(lr(t)){const e=t.anchor.getNode();if(e.is(n)&&t.format!==e.getFormat())return !1}return $i(e)&&n.isAttached()}function ot$1(t,e,n,r){for(let i=t;i&&!po(i);i=Ms(i)){const t=ns(i,e);if(void 0!==t){const e=ts(t,n);if(e)return _i(e)||!eo(i)?void 0:[i,e]}else if(i===r)return [r,ls(n)]}}function lt$2(t,e,n){tt$2=!0;const r=performance.now()-et$2>Z$2;try{ci(t,(()=>{const s=Tr()||function(t){return t.getEditorState().read((()=>{const t=Tr();return null!==t?t.clone():null}))}(t),o=new Map,l=t.getRootElement(),c=t._editorState,a=t._blockCursorElement;let u=!1,f="";for(let n=0;n<e.length;n++){const d=e[n],h=d.type,g=d.target,_=ot$1(g,t,c,l);if(!_)continue;const[p,m]=_;if("characterData"===h)r&&Xn(m)&&$i(g)&&st$2(s,g,m)&&it$2(g,m,t);else if("childList"===h){u=!0;const e=d.addedNodes;for(let n=0;n<e.length;n++){const r=e[n],s=es(r),o=r.parentNode;if(null!=o&&r!==a&&null===s&&!rt$2(r,o,t)){if(i$1){const t=(eo(r)?r.innerText:null)||r.nodeValue;t&&(f+=t);}o.removeChild(r);}}const n=d.removedNodes,r=n.length;if(r>0){let e=0;for(let i=0;i<r;i++){const r=n[i];(rt$2(r,g,t)||a===r)&&(g.appendChild(r),e++);}r!==e&&o.set(p,m);}}}if(o.size>0)for(const[e,n]of o)n.reconcileObservedMutation(e,t);const d=n.takeRecords();if(d.length>0){for(let e=0;e<d.length;e++){const n=d[e],r=n.addedNodes,i=n.target;for(let e=0;e<r.length;e++){const n=r[e],s=n.parentNode;null==s||"BR"!==n.nodeName||rt$2(n,i,t)||s.removeChild(n);}}n.takeRecords();}null!==s&&(u&&cs(s),i$1&&Fs(t)&&s.insertRawText(f));}));}finally{tt$2=!1;}}function ct$1(t){const e=t._observer;if(null!==e){lt$2(t,e.takeRecords(),e);}}function at$1(t){!function(t){0===et$2&&Rs(t).addEventListener("textInput",nt$2,!0);}(t),t._observer=new MutationObserver(((e,n)=>{lt$2(t,e,n);}));}function ut$1(t){return t}class ft$2{constructor(t,e){this.key=t,this.parse=e.parse.bind(e),this.unparse=(e.unparse||ut$1).bind(e),this.isEqual=(e.isEqual||Object.is).bind(e),this.defaultValue=this.parse(void 0);}}function dt$2(t,e){return new ft$2(t,e)}function ht$2(t,e,n){const r=gt$2(t,n,"direct"),i=gt$2(e,n,"direct");return n.isEqual(r,i)?null:[r,i]}function gt$2(t,e,n="latest"){const r=("latest"===n?t.getLatest():t).__state;return r?r.getValue(e):e.defaultValue}function _t$2(t,e,n){let r;if(Vr(),"function"==typeof n){const i=t.getLatest(),s=gt$2(i,e);if(r=n(s),e.isEqual(s,r))return i}else r=n;const i=t.getWritable();return yt$2(i).updateFromKnown(e,r),i}class pt$2{constructor(t,e=new Map,n=void 0,r=new Map,i=void 0){this.node=t,this.sharedConfigMap=e,this.unknownState=n,this.knownState=r;const s=void 0!==i?i:function(t,e,n){let r=n.size;if(e)for(const i in e){const e=t.get(i);e&&n.has(e)||r++;}return r}(e,n,r);this.size=s;}getValue(t){const e=this.knownState.get(t);if(void 0!==e)return e;this.sharedConfigMap.set(t.key,t);let n=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const e=this.unknownState[t.key];void 0!==e&&(n=t.parse(e)),this.updateFromKnown(t,n);}return n}getInternalState(){return [this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState};for(const[e,n]of this.knownState)e.isEqual(n,e.defaultValue)?delete t[e.key]:t[e.key]=e.unparse(n);return mt$2(t)?{[X$3]:t}:{}}getWritable(t){if(this.node===t)return this;const e=new Map(this.knownState),n=mt$2(r=this.unknownState)&&{...r};var r;if(n)for(const t of e.keys())delete n[t.key];return new pt$2(t,this.sharedConfigMap,mt$2(n),e,this.size)}updateFromKnown(t,e){const n=t.key;this.sharedConfigMap.set(n,t);const{knownState:r,unknownState:i}=this;r.has(t)||i&&n in i||this.size++,r.set(t,e);}updateFromUnknown(t,e){const n=this.sharedConfigMap.get(t);n?this.updateFromKnown(n,n.parse(e)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=e);}updateFromJSON(t){const{knownState:e}=this;for(const t of e.keys())e.set(t,t.defaultValue);if(this.size=e.size,this.unknownState={},t)for(const[e,n]of Object.entries(t))this.updateFromUnknown(e,n);this.unknownState=mt$2(this.unknownState);}}function mt$2(t){if(t)for(const e in t)return t}function yt$2(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new pt$2(e);return e.__state=n,n}function xt$2(t,e){const n=t.__mode,r=t.__format,i=t.__style,s=e.__mode,o=e.__format,l=e.__style,c=t.__state,a=e.__state;return (null===n||n===s)&&(null===r||r===o)&&(null===i||i===l)&&(null===t.__state||c===a||function(t,e){if(t===e)return !0;if(t&&e&&t.size!==e.size)return !1;const n=new Set,r=(t,e)=>{for(const[r,i]of t.knownState){if(n.has(r.key))continue;n.add(r.key);const t=e?e.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return !0}return !1},i=(t,e)=>{const{unknownState:r}=t,i=e?e.unknownState:void 0;if(r)for(const[t,e]of Object.entries(r))if(!n.has(t)&&(n.add(t),e!==(i?i[t]:void 0)))return !0;return !1};return !(t&&r(t,e)||e&&r(e,t)||t&&i(t,e)||e&&i(e,t))}(c,a))}function St$2(t,e){const n=t.mergeWithSibling(e),r=Hr()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function vt$2(t){let e,n,r=t;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(e=r.getPreviousSibling())&&Xn(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(""!==e.__text){if(xt$2(e,r)){r=St$2(e,r);break}break}e.remove();}for(;null!==(n=r.getNextSibling())&&Xn(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(xt$2(r,n)){r=St$2(r,n);break}break}n.remove();}}else r.remove();}function Ct$2(t){return kt$1(t.anchor),kt$1(t.focus),t}function kt$1(t){for(;"element"===t.type;){const e=t.getNode(),n=t.offset;let r,i;if(n===e.getChildrenSize()?(r=e.getChildAtIndex(n-1),i=!0):(r=e.getChildAtIndex(n),i=!1),Xn(r)){t.set(r.__key,i?r.getTextContentSize():0,"text",!0);break}if(!di(r))break;t.set(r.__key,i?r.getChildrenSize():0,"element",!0);}}let bt$1,Tt$2,wt$2,Nt$2,Et$2,Pt$2,Ft$1,Lt$1,At$2,Ot$2,Mt$1="",It$1="",Dt$1=null,zt="",Bt$1="",Wt=!1,Kt=!1,Rt$1=null;function Jt(t,e){const n=Ft$1.get(t);if(null!==e){const n=se(t);n.parentNode===e&&e.removeChild(n);}if(Lt$1.has(t)||Tt$2._keyToDOMMap.delete(t),di(n)){const t=te(n,Ft$1);jt(t,0,t.length-1,null);}void 0!==n&&ws(Ot$2,wt$2,Nt$2,n,"destroyed");}function jt(t,e,n,r){let i=e;for(;i<=n;++i){const e=t[i];void 0!==e&&Jt(e,r);}}function $t(t,e){t.setProperty("text-align",e);}const Vt="40px";function Ut(t,e){const n=bt$1.theme.indent;if("string"==typeof n){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n);}const r=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||Vt;t.style.setProperty("padding-inline-start",0===e?"":`calc(${e} * ${r})`);}function qt(t,e){const n=t.style;0===e?$t(n,""):e===A$4?$t(n,"left"):e===O$6?$t(n,"center"):e===M$5?$t(n,"right"):e===I$5?$t(n,"justify"):e===D$6?$t(n,"start"):e===z$4&&$t(n,"end");}function Ht(e,n){const r=Lt$1.get(e);void 0===r&&t$2(60);const i=r.createDOM(bt$1,Tt$2);if(function(t,e,n){const r=n._keyToDOMMap;((function(t,e,n){const r=`__lexicalKey_${e._key}`;t[r]=n;}))(e,n,t),r.set(t,e);}(e,i,Tt$2),Xn(r)?i.setAttribute("data-lexical-text","true"):_i(r)&&i.setAttribute("data-lexical-decorator","true"),di(r)){const t=r.__indent,e=r.__size;if(0!==t&&Ut(i,t),0!==e){const t=e-1;!function(t,e,n,r){const i=It$1;It$1="",Gt(t,n,0,e,n.getDOMSlot(r)),Yt(n,r),It$1=i;}(te(r,Lt$1),t,r,i);}const n=r.__format;0!==n&&qt(i,n),r.isInline()||Xt(null,r,i),As(r)&&(Mt$1+=W$3,Bt$1+=W$3);}else {const t=r.getTextContent();if(_i(r)){const t=r.decorate(Tt$2,bt$1);null!==t&&ne(e,t),i.contentEditable="false";}else Xn(r)&&(r.isDirectionless()||(It$1+=t));Mt$1+=t,Bt$1+=t;}return null!==n&&n.insertChild(i),ws(Ot$2,wt$2,Nt$2,r,"created"),i}function Gt(t,e,n,r,i){const s=Mt$1;Mt$1="";let o=n;for(;o<=r;++o){Ht(t[o],i);const e=Lt$1.get(t[o]);null!==e&&Xn(e)&&(null===Dt$1&&(Dt$1=e.getFormat()),""===zt&&(zt=e.getStyle()));}As(e)&&(Mt$1+=W$3);i.element.__lexicalTextContent=Mt$1,Mt$1=s+Mt$1;}function Qt(t,e){if(t){const n=t.__last;if(n){const t=e.get(n);if(t)return On(t)?"line-break":_i(t)&&t.isInline()?"decorator":null}return "empty"}return null}function Xt(t,e,n){const r=Qt(t,Ft$1),i=Qt(e,Lt$1);r!==i&&e.getDOMSlot(n).setManagedLineBreak(i);}function Yt(t,e){const n=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(n!==It$1||r!==Rt$1){const n=""===It$1,i=n?Rt$1:function(t){if(j$3.test(t))return "rtl";if($$3.test(t))return "ltr";return null}(It$1);if(i!==r){const s=e.classList,o=bt$1.theme;let l=null!==r?o[r]:void 0,c=null!==i?o[i]:void 0;if(void 0!==l){if("string"==typeof l){const t=d$5(l);l=o[r]=t;}s.remove(...l);}if(null===i||n&&"ltr"===i)e.removeAttribute("dir");else {if(void 0!==c){if("string"==typeof c){const t=d$5(c);c=o[i]=t;}void 0!==c&&s.add(...c);}e.dir=i;}if(!Kt){t.getWritable().__dir=i;}}Rt$1=i,e.__lexicalDirTextContent=It$1,e.__lexicalDir=i;}}function Zt(e,n,r){const i=It$1;var s;It$1="",Dt$1=null,zt="",function(e,n,r){const i=Mt$1,s=e.__size,o=n.__size;Mt$1="";const l=r.element;if(1===s&&1===o){const t=e.__first,r=n.__first;if(t===r)ee(t,l);else {const e=se(t),n=Ht(r,null);try{l.replaceChild(n,e);}catch(i){if("object"==typeof i&&null!=i){const s=`${i.toString()} Parent: ${l.tagName}, new child: {tag: ${n.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${t}}.`;throw new Error(s)}throw i}Jt(t,null);}const i=Lt$1.get(r);Xn(i)&&(null===Dt$1&&(Dt$1=i.getFormat()),""===zt&&(zt=i.getStyle()));}else {const i=te(e,Ft$1),c=te(n,Lt$1);if(i.length!==s&&t$2(227),c.length!==o&&t$2(228),0===s)0!==o&&Gt(c,n,0,o-1,r);else if(0===o){if(0!==s){const t=null==r.after&&null==r.before&&null==r.element.__lexicalLineBreak;jt(i,0,s-1,t?null:l),t&&(l.textContent="");}}else !function(t,e,n,r,i,s){const o=r-1,l=i-1;let c,a,u=s.getFirstChild(),f=0,d=0;for(;f<=o&&d<=l;){const t=e[f],r=n[d];if(t===r)u=re(ee(r,s.element)),f++,d++;else {void 0===c&&(c=new Set(e)),void 0===a&&(a=new Set(n));const i=a.has(t),o=c.has(r);if(i)if(o){const t=Os(Tt$2,r);t===u?u=re(ee(r,s.element)):(s.withBefore(u).insertChild(t),ee(r,s.element)),f++,d++;}else Ht(r,s.withBefore(u)),d++;else u=re(se(t)),Jt(t,s.element),f++;}const i=Lt$1.get(r);null!==i&&Xn(i)&&(null===Dt$1&&(Dt$1=i.getFormat()),""===zt&&(zt=i.getStyle()));}const h=f>o,g=d>l;if(h&&!g){const e=n[l+1],r=void 0===e?null:Tt$2.getElementByKey(e);Gt(n,t,d,l,s.withBefore(r));}else g&&!h&&jt(e,f,o,s.element);}(n,i,c,s,o,r);}As(n)&&(Mt$1+=W$3);l.__lexicalTextContent=Mt$1,Mt$1=i+Mt$1;}(e,n,n.getDOMSlot(r)),Yt(n,r),s=n,null==Dt$1||Dt$1===s.__textFormat||Kt||s.setTextFormat(Dt$1),function(t){""===zt||zt===t.__textStyle||Kt||t.setTextStyle(zt);}(n),It$1=i;}function te(e,n){const r=[];let i=e.__first;for(;null!==i;){const e=n.get(i);void 0===e&&t$2(101),r.push(i),i=e.__next;}return r}function ee(e,n){const r=Ft$1.get(e);let i=Lt$1.get(e);void 0!==r&&void 0!==i||t$2(61);const s=Wt||Pt$2.has(e)||Et$2.has(e),o=Os(Tt$2,e);if(r===i&&!s){if(di(r)){const t=o.__lexicalTextContent;void 0!==t&&(Mt$1+=t,Bt$1+=t);const e=o.__lexicalDirTextContent;void 0!==e&&(It$1+=e);}else {const t=r.getTextContent();Xn(r)&&!r.isDirectionless()&&(It$1+=t),Bt$1+=t,Mt$1+=t;}return o}if(r!==i&&s&&ws(Ot$2,wt$2,Nt$2,i,"updated"),i.updateDOM(r,o,bt$1)){const r=Ht(e,null);return null===n&&t$2(62),n.replaceChild(r,o),Jt(e,null),r}if(di(r)&&di(i)){const t=i.__indent;t!==r.__indent&&Ut(o,t);const e=i.__format;e!==r.__format&&qt(o,e),s&&(Zt(r,i,o),mi(i)||i.isInline()||Xt(r,i,o)),As(i)&&(Mt$1+=W$3,Bt$1+=W$3);}else {const t=i.getTextContent();if(_i(i)){const t=i.decorate(Tt$2,bt$1);null!==t&&ne(e,t);}else Xn(i)&&!i.isDirectionless()&&(It$1+=t);Mt$1+=t,Bt$1+=t;}if(!Kt&&mi(i)&&i.__cachedText!==Bt$1){const t=i.getWritable();t.__cachedText=Bt$1,i=t;}return o}function ne(t,e){let n=Tt$2._pendingDecorators;const r=Tt$2._decorators;if(null===n){if(r[t]===e)return;n=is(Tt$2);}n[t]=e;}function re(t){let e=t.nextSibling;return null!==e&&e===Tt$2._blockCursorElement&&(e=e.nextSibling),e}function ie(t,e,n,r,i,s){Mt$1="",Bt$1="",It$1="",Wt=r===x$8,Rt$1=null,Tt$2=n,bt$1=n._config,wt$2=n._nodes,Nt$2=Tt$2._listeners.mutation,Et$2=i,Pt$2=s,Ft$1=t._nodeMap,Lt$1=e._nodeMap,Kt=e._readOnly,At$2=new Map(n._keyToDOMMap);const o=new Map;return Ot$2=o,ee("root",null),Tt$2=void 0,wt$2=void 0,Et$2=void 0,Pt$2=void 0,Ft$1=void 0,Lt$1=void 0,bt$1=void 0,At$2=void 0,Ot$2=void 0,o}function se(e){const n=At$2.get(e);return void 0===n&&t$2(75,e),n}function oe(t){return {}}const le={},ce={},ae={},ue={},fe={},de={},he={},ge={},_e={},pe={},me={},ye={},xe={},Se={},ve={},Ce={},ke={},be={},Te={},we={},Ne={},Ee={},Pe={},Fe={},Le={},Ae={},Oe={},Me={},Ie={},De={},ze={},Be={},We={},Ke={},Re={},Je={},je={},$e={},Ve={},Ue={},qe={},He={},Ge={},Qe={},Xe={},Ye=Object.freeze({}),Ze=30,tn=[["keydown",function(t,e){if(en=t.timeStamp,nn=t.key,e.isComposing())return;const{key:n,shiftKey:s,ctrlKey:o,metaKey:l,altKey:c}=t;if(Ls(e,ve,t))return;if(null==n)return;if(fn&&vs(nn))return ci(e,(()=>{vn(e,dn);})),fn=!1,void(dn="");if(function(t,e,n,r){return ys(t)&&!e&&!r&&!n}(n,o,c,l))Ls(e,Ce,t);else if(function(t,e,n,r,i){return ys(t)&&!r&&!n&&(e||i)}(n,o,s,c,l))Ls(e,ke,t);else if(function(t,e,n,r){return ms(t)&&!e&&!r&&!n}(n,o,c,l))Ls(e,be,t);else if(function(t,e,n,r,i){return ms(t)&&!r&&!n&&(e||i)}(n,o,s,c,l))Ls(e,Te,t);else if(function(t,e,n){return function(t){return "ArrowUp"===t}(t)&&!e&&!n}(n,o,l))Ls(e,we,t);else if(function(t,e,n){return function(t){return "ArrowDown"===t}(t)&&!e&&!n}(n,o,l))Ls(e,Ne,t);else if(function(t,e){return Ss(t)&&e}(n,s))an=!0,Ls(e,Ee,t);else if(function(t){return " "===t}(n))Ls(e,Pe,t);else if(function(t,e){return r$1&&e&&"o"===t.toLowerCase()}(n,o))t.preventDefault(),an=!0,Ls(e,fe,!0);else if(function(t,e){return Ss(t)&&!e}(n,s))an=!1,Ls(e,Ee,t);else if(function(t,e,n,i){if(r$1)return !e&&!n&&(vs(t)||"h"===t.toLowerCase()&&i);if(i||e||n)return !1;return vs(t)}(n,c,l,o))vs(n)?Ls(e,Fe,t):(t.preventDefault(),Ls(e,ue,!0));else if(function(t){return "Escape"===t}(n))Ls(e,Le,t);else if(function(t,e,n,i,s){if(r$1)return !(n||i||s)&&(Cs(t)||"d"===t.toLowerCase()&&e);if(e||i||s)return !1;return Cs(t)}(n,o,s,c,l))Cs(n)?Ls(e,Ae,t):(t.preventDefault(),Ls(e,ue,!1));else if(function(t,e,n){return vs(t)&&(r$1?e:n)}(n,c,o))t.preventDefault(),Ls(e,pe,!0);else if(function(t,e,n){return Cs(t)&&(r$1?e:n)}(n,c,o))t.preventDefault(),Ls(e,pe,!1);else if(function(t,e){return r$1&&e&&vs(t)}(n,l))t.preventDefault(),Ls(e,me,!0);else if(function(t,e){return r$1&&e&&Cs(t)}(n,l))t.preventDefault(),Ls(e,me,!1);else if(function(t,e,n,r){return "b"===t.toLowerCase()&&!e&&xs(n,r)}(n,c,l,o))t.preventDefault(),Ls(e,ye,"bold");else if(function(t,e,n,r){return "u"===t.toLowerCase()&&!e&&xs(n,r)}(n,c,l,o))t.preventDefault(),Ls(e,ye,"underline");else if(function(t,e,n,r){return "i"===t.toLowerCase()&&!e&&xs(n,r)}(n,c,l,o))t.preventDefault(),Ls(e,ye,"italic");else if(function(t,e,n,r){return "Tab"===t&&!e&&!n&&!r}(n,c,o,l))Ls(e,Oe,t);else if(function(t,e,n,r){return "z"===t.toLowerCase()&&!e&&xs(n,r)}(n,s,l,o))t.preventDefault(),Ls(e,xe,void 0);else if(function(t,e,n,i){if(r$1)return "z"===t.toLowerCase()&&n&&e;return "y"===t.toLowerCase()&&i||"z"===t.toLowerCase()&&i&&e}(n,s,l,o))t.preventDefault(),Ls(e,Se,void 0);else {const c=e._editorState._selection;null===c||lr(c)?!i$1&&ks(n,l,o)&&(t.preventDefault(),Ls(e,$e,t)):!function(t,e,n,i){if(e)return !1;if("c"===t.toLowerCase())return r$1?n:i;return !1}(n,s,l,o)?!function(t,e,n,i){if(e)return !1;if("x"===t.toLowerCase())return r$1?n:i;return !1}(n,s,l,o)?ks(n,l,o)&&(t.preventDefault(),Ls(e,$e,t)):(t.preventDefault(),Ls(e,je,t)):(t.preventDefault(),Ls(e,Je,t));}(function(t,e,n,r){return t||e||n||r})(o,s,c,l)&&Ls(e,Xe,t);}],["pointerdown",function(t,e){const n=t.target,r=t.pointerType;no(n)&&"touch"!==r&&0===t.button&&ci(e,(()=>{_i(rs(n))||(cn$1=!0);}));}],["compositionstart",function(t,e){ci(e,(()=>{const n=Tr();if(lr(n)&&!e.isComposing()){const r=n.anchor,i=n.anchor.getNode();Yi(r.key),(t.timeStamp<en+Ze||"element"===r.type||!n.isCollapsed()||i.getFormat()!==n.format||Xn(i)&&i.getStyle()!==n.style)&&Ls(e,he,K$3);}}));}],["compositionend",function(t,e){i$1?un=!0:l$4||!o$4&&!f$5?ci(e,(()=>{vn(e,t.data);})):(fn=!0,dn=t.data);}],["input",function(t,e){t.stopPropagation(),ci(e,(()=>{const n=Tr(),r=t.data,c=Sn(t);if(null!=r&&lr(n)&&_n(n,c,r,t.timeStamp,!1)){un&&(vn(e,r),un=!1);const c=n.anchor.getNode(),a=Xs(Rs(e));if(null===a)return;const u=n.isBackward(),d=u?n.anchor.offset:n.focus.offset,h=u?n.focus.offset:n.anchor.offset;s$1&&!n.isCollapsed()&&Xn(c)&&null!==a.anchorNode&&c.getTextContent().slice(0,d)+r+c.getTextContent().slice(d+h)===gs(a.anchorNode)||Ls(e,he,r);const g=r.length;i$1&&g>1&&"insertCompositionText"===t.inputType&&!e.isComposing()&&(n.anchor.offset-=g),o$4||l$4||f$5||!e.isComposing()||(en=0,Yi(null));}else {_s(!1,e,null!==r?r:void 0),un&&(vn(e,r||void 0),un=!1);}!function(){Vr();const t=Hr();ct$1(t);}();}),{event:t}),sn=null;}],["click",function(t,e){ci(e,(()=>{const n=Tr(),r=Xs(Rs(e)),i=wr();if(r)if(lr(n)){const e=n.anchor,s=e.getNode();if("element"===e.type&&0===e.offset&&n.isCollapsed()&&!mi(s)&&1===os().getChildrenSize()&&s.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(3===t.detail&&!n.isCollapsed()){if(s!==n.focus.getNode()){const t=function(t,e){let n=t;for(;n!==os()&&null!=n;){if(e(n))return n;n=n.getParent();}return null}(s,(t=>di(t)&&!t.isInline()));di(t)&&t.select(0);}}}else if("touch"===t.pointerType){const n=r.anchorNode;if(eo(n)||$i(n)){cs(br(i,r,e,t));}}Ls(e,ae,t);}));}],["cut",Ye],["copy",Ye],["dragstart",Ye],["dragover",Ye],["dragend",Ye],["paste",Ye],["focus",Ye],["blur",Ye],["drop",Ye]];s$1&&tn.push(["beforeinput",(e,n)=>function(e,n){const r=e.inputType,s=Sn(e);if("deleteCompositionText"===r||i$1&&Fs(n))return;if("insertCompositionText"===r)return;ci(n,(()=>{const i=Tr();if("deleteContentBackward"===r){if(null===i){const t=wr();if(!lr(t))return;cs(t.clone());}if(lr(i)){const r=i.anchor.key===i.focus.key;if(o=e.timeStamp,"MediaLast"===nn&&o<en+Ze&&n.isComposing()&&r){if(Yi(null),en=0,setTimeout((()=>{ci(n,(()=>{Yi(null);}));}),Ze),lr(i)){const e=i.anchor.getNode();e.markDirty(),Xn(e)||t$2(142),xn(i,e);}}else {Yi(null),e.preventDefault();const t=i.anchor.getNode(),s=t.getTextContent(),o=t.canInsertTextAfter(),l=0===i.anchor.offset&&i.focus.offset===s.length;let c=u$4&&r&&!l&&o;if(c&&i.isCollapsed()&&(c=!_i(Ps(i.anchor,!0))),!c){Ls(n,ue,!0);const t=Tr();u$4&&lr(t)&&t.isCollapsed()&&(hn=t,setTimeout((()=>hn=null)));}}return}}var o;if(!lr(i))return;const c=e.data;null!==sn&&_s(!1,n,sn),i.dirty&&null===sn||!i.isCollapsed()||mi(i.anchor.getNode())||null===s||i.applyDOMRange(s),sn=null;const a=i.anchor,f=i.focus,d=a.getNode(),h=f.getNode();if("insertText"!==r&&"insertTranspose"!==r)switch(e.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Ls(n,he,e);break;case"insertFromComposition":Yi(null),Ls(n,he,e);break;case"insertLineBreak":Yi(null),Ls(n,fe,!1);break;case"insertParagraph":Yi(null),an&&!l$4?(an=!1,Ls(n,fe,!1)):Ls(n,de,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Ls(n,ge,e);break;case"deleteByComposition":(function(t,e){return t!==e||di(t)||di(e)||!t.isToken()||!e.isToken()})(d,h)&&Ls(n,_e,e);break;case"deleteByDrag":case"deleteByCut":Ls(n,_e,e);break;case"deleteContent":Ls(n,ue,!1);break;case"deleteWordBackward":Ls(n,pe,!0);break;case"deleteWordForward":Ls(n,pe,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Ls(n,me,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Ls(n,me,!1);break;case"formatStrikeThrough":Ls(n,ye,"strikethrough");break;case"formatBold":Ls(n,ye,"bold");break;case"formatItalic":Ls(n,ye,"italic");break;case"formatUnderline":Ls(n,ye,"underline");break;case"historyUndo":Ls(n,xe,void 0);break;case"historyRedo":Ls(n,Se,void 0);}else {if("\n"===c)e.preventDefault(),Ls(n,fe,!1);else if(c===W$3)e.preventDefault(),Ls(n,de,void 0);else if(null==c&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),i.insertRawText(t);}else null!=c&&_n(i,s,c,e.timeStamp,!0)?(e.preventDefault(),Ls(n,he,c)):sn=c;rn=e.timeStamp;}}));}(e,n)]);let en=0,nn=null,rn=0,sn=null;const on=new WeakMap;let ln=!1,cn$1=!1,an=!1,un=!1,fn=!1,dn="",hn=null,gn=[0,"",0,"root",0];function _n(t,e,n,r,i){const o=t.anchor,l=t.focus,c=o.getNode(),a=Hr(),u=Xs(Rs(a)),f=null!==u?u.anchorNode:null,d=o.key,h=a.getElementByKey(d),g=n.length;return d!==l.key||!Xn(c)||(!i&&(!s$1||rn<r+50)||c.isDirty()&&g<2||fs(n))&&o.offset!==l.offset&&!c.isComposing()||ji(c)||c.isDirty()&&g>1||(i||!s$1)&&null!==h&&!c.isComposing()&&f!==Ui(h)||null!==u&&null!==e&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||c.getFormat()!==t.format||c.getStyle()!==t.style||function(t,e){if(e.isSegmented())return !0;if(!t.isCollapsed())return !1;const n=t.anchor.offset,r=e.getParentOrThrow(),i=e.isToken();return 0===n?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||i||function(t){const e=t.getPreviousSibling();return (Xn(e)||di(e)&&e.isInline())&&!e.canInsertTextAfter()}(e):n===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||i)}(t,c)}function pn(t,e){return $i(t)&&null!==t.nodeValue&&0!==e&&e!==t.nodeValue.length}function mn(e,n,r){const{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:l}=e;ln&&(ln=!1,pn(i,s)&&pn(o,l)&&!hn)||ci(n,(()=>{if(!r)return void cs(null);if(!Wi(n,i,o))return;let c=Tr();if(hn&&lr(c)&&c.isCollapsed()){const t=c.anchor,e=hn.anchor;(t.key===e.key&&t.offset===e.offset+1||1===t.offset&&e.getNode().is(t.getNode().getPreviousSibling()))&&(c=hn.clone(),cs(c));}if(hn=null,lr(c)){const r=c.anchor,i=r.getNode();if(c.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(c.dirty=!0);const s=Rs(n).event,o=s?s.timeStamp:performance.now(),[l,a,u,f,d]=gn,h=os(),g=!1===n.isComposing()&&""===h.getTextContent();if(o<d+200&&r.offset===u&&r.key===f)yn(c,l,a);else if("text"===r.type)Xn(i)||t$2(141),xn(c,i);else if("element"===r.type&&!g){di(i)||t$2(259);const e=r.getNode();e.isEmpty()?function(t,e){const n=e.getTextFormat(),r=e.getTextStyle();yn(t,n,r);}(c,e):yn(c,0,"");}}else {const t=r.key,e=c.focus.key,n=c.getNodes(),i=n.length,o=c.isBackward(),a=o?l:s,u=o?s:l,f=o?e:t,d=o?t:e;let h=L$5,g=!1;for(let t=0;t<i;t++){const e=n[t],r=e.getTextContentSize();if(Xn(e)&&0!==r&&!(0===t&&e.__key===f&&a===r||t===i-1&&e.__key===d&&0===u)&&(g=!0,h&=e.getFormat(),0===h))break}c.format=g?h:0;}}Ls(n,le,void 0);}));}function yn(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0);}function xn(t,e){yn(t,e.getFormat(),e.getStyle());}function Sn(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return 0===e.length?null:e[0]}function vn(t,e){const n=t._compositionKey;if(Yi(null),null!==n&&null!=e){if(""===e){const e=ts(n),r=Ui(t.getElementByKey(n));return void(null!==r&&null!==r.nodeValue&&Xn(e)&&ps(e,r.nodeValue,null,null,!0))}if("\n"===e[e.length-1]){const e=Tr();if(lr(e)){const n=e.focus;return e.anchor.set(n.key,n.offset,n.type),void Ls(t,Ee,null)}}}_s(!0,t,e);}function Cn(t){let e=t.__lexicalEventHandles;return void 0===e&&(e=[],t.__lexicalEventHandles=e),e}const kn=new Map;function bn(t){const e=Ys(t.target);if(null===e)return;const n=Ri(e.anchorNode);if(null===n)return;cn$1&&(cn$1=!1,ci(n,(()=>{const r=wr(),i=e.anchorNode;if(eo(i)||$i(i)){cs(br(r,e,n,t));}})));const r=ds(n),i=r[r.length-1],s=i._key,o=kn.get(s),l=o||i;l!==n&&mn(e,l,!1),mn(e,n,!0),n!==i?kn.set(s,n):o&&kn.delete(s);}function Tn(t){t._lexicalHandled=!0;}function wn(t){return !0===t._lexicalHandled}function Nn(e){const n=e.ownerDocument,r=on.get(n);void 0===r&&t$2(162);const i=r-1;i>=0||t$2(164),on.set(n,i),0===i&&n.removeEventListener("selectionchange",bn);const s=Ji(e);Ki(s)?(!function(t){if(null!==t._parentEditor){const e=ds(t),n=e[e.length-1]._key;kn.get(n)===t&&kn.delete(n);}else kn.delete(t._key);}(s),e.__lexicalEditor=null):s&&t$2(198);const o=Cn(e);for(let t=0;t<o.length;t++)o[t]();e.__lexicalEventHandles=[];}function En(t,e,n){Vr();const r=t.__key,i=t.getParent();if(null===i)return;const s=function(t){const e=Tr();if(!lr(e)||!di(t))return e;const{anchor:n,focus:r}=e,i=n.getNode(),s=r.getNode();Ws(i,t)&&n.set(t.__key,0,"element");Ws(s,t)&&r.set(t.__key,0,"element");return e}(t);let o=!1;if(lr(s)&&e){const e=s.anchor,n=s.focus;e.key===r&&(Pr(e,t,i,t.getPreviousSibling(),t.getNextSibling()),o=!0),n.key===r&&(Pr(n,t,i,t.getPreviousSibling(),t.getNextSibling()),o=!0);}else ar(s)&&e&&t.isSelected()&&t.selectPrevious();if(lr(s)&&e&&!o){const e=t.getIndexWithinParent();Qi(t),Nr(s,i,e,-1);}else Qi(t);n||$s(i)||i.canBeEmpty()||!i.isEmpty()||En(i,e),e&&mi(i)&&i.isEmpty()&&i.selectEnd();}class Pn{static getType(){t$2(64,this.name);}static clone(e){t$2(65,this.name);}afterCloneFrom(t){this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state;}constructor(t){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),Gi(this,t);}getType(){return this.__type}isInline(){t$2(137,this.constructor.name);}isAttached(){let t=this.__key;for(;null!==t;){if("root"===t)return !0;const e=ts(t);if(null===e)break;t=e.__parent;}return !1}isSelected(t){const e=t||Tr();if(null==e)return !1;const n=e.getNodes().some((t=>t.__key===this.__key));if(Xn(this))return n;if(lr(e)&&"element"===e.anchor.type&&"element"===e.focus.type){if(e.isCollapsed())return !1;const t=this.getParent();if(_i(this)&&this.isInline()&&t){const n=e.isBackward()?e.focus:e.anchor;if(t.is(n.getNode())&&n.offset===t.getChildrenSize()&&this.is(t.getLastChild()))return !1}}return n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(null===t)return -1;let e=t.getFirstChild(),n=0;for(;null!==e;){if(this.is(e))return n;n++,e=e.getNextSibling();}return -1}getParent(){const t=this.getLatest().__parent;return null===t?null:ts(t)}getParentOrThrow(){const e=this.getParent();return null===e&&t$2(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const n=e.getParent();if($s(n))return di(e)||e===this&&_i(e)||t$2(194),e;e=n;}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&t$2(67,this.__key),e}getParents(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e),e=e.getParent();return t}getParentKeys(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e.__key),e=e.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return null===t?null:ts(t)}getPreviousSiblings(){const t=[],e=this.getParent();if(null===e)return t;let n=e.getFirstChild();for(;null!==n&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return null===t?null:ts(t)}getNextSiblings(){const t=[];let e=this.getNextSibling();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getCommonAncestor(t){const e=di(this)?this:this.getParent(),n=di(t)?t:t.getParent(),r=e&&n?Go(e,n):null;return r?r.commonAncestor:null}is(t){return null!=t&&this.__key===t.__key}isBefore(e){const n=Go(this,e);return null!==n&&("descendant"===n.type||("branch"===n.type?-1===Uo(n):("same"!==n.type&&"ancestor"!==n.type&&t$2(279),!1)))}isParentOf(t){const e=Go(this,t);return null!==e&&"ancestor"===e.type}getNodesBetween(e){const n=this.isBefore(e),r=[],i=new Set;let s=this;for(;null!==s;){const o=s.__key;if(i.has(o)||(i.add(o),r.push(s)),s===e)break;const l=di(s)?n?s.getFirstChild():s.getLastChild():null;if(null!==l){s=l;continue}const c=n?s.getNextSibling():s.getPreviousSibling();if(null!==c){s=c;continue}const a=s.getParentOrThrow();if(i.has(a.__key)||r.push(a),a===e)break;let u=null,f=a;do{if(null===f&&t$2(68),u=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),null===f)break;null!==u||i.has(f.__key)||r.push(f);}while(null===u);s=u;}return n||r.reverse(),r}isDirty(){const t=Hr()._dirtyLeaves;return null!==t&&t.has(this.__key)}getLatest(){const e=ts(this.__key);return null===e&&t$2(113),e}getWritable(){Vr();const t=qr(),e=Hr(),n=t._nodeMap,r=this.__key,i=this.getLatest(),s=e._cloneNotNeeded,o=Tr();if(null!==o&&o.setCachedNodes(null),s.has(r))return Xi(i),i;const l=ho(i);return s.add(r),Xi(l),n.set(r,l),l}getTextContent(){return ""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){t$2(70);}updateDOM(e,n,r){t$2(71);}exportDOM(t){return {element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return {type:this.__type,version:1,...t}}static importJSON(e){t$2(18,this.name);}updateFromJSON(t){return function(t,e){const n=t.getWritable();return (e||n.__state)&&yt$2(t).updateFromJSON(e),n}(this,t.$)}static transform(){return null}remove(t){En(this,!0,t);}replace(e,n){Vr();let r=Tr();null!==r&&(r=r.clone()),qs(this,e);const i=this.getLatest(),s=this.__key,o=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),a=c.__size;Qi(l);const u=i.getPreviousSibling(),f=i.getNextSibling(),d=i.__prev,h=i.__next,g=i.__parent;if(En(i,!1,!0),null===u)c.__first=o;else {u.getWritable().__next=o;}if(l.__prev=d,null===f)c.__last=o;else {f.getWritable().__prev=o;}if(l.__next=h,l.__parent=g,c.__size=a,n&&(di(this)&&di(l)||t$2(139),this.getChildren().forEach((t=>{l.append(t);}))),lr(r)){cs(r);const t=r.anchor,e=r.focus;t.key===s&&sr(t,l),e.key===s&&sr(e,l);}return Zi()===s&&Yi(o),l}insertAfter(t,e=!0){Vr(),qs(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.getParent(),s=Tr();let o=!1,l=!1;if(null!==i){const e=t.getIndexWithinParent();if(Qi(r),lr(s)){const t=i.__key,n=s.anchor,r=s.focus;o="element"===n.type&&n.key===t&&n.offset===e+1,l="element"===r.type&&r.key===t&&r.offset===e+1;}}const c=this.getNextSibling(),a=this.getParentOrThrow().getWritable(),u=r.__key,f=n.__next;if(null===c)a.__last=u;else {c.getWritable().__prev=u;}if(a.__size++,n.__next=u,r.__next=f,r.__prev=n.__key,r.__parent=n.__parent,e&&lr(s)){const t=this.getIndexWithinParent();Nr(s,a,t+1);const e=a.__key;o&&s.anchor.set(e,t+2,"element"),l&&s.focus.set(e,t+2,"element");}return t}insertBefore(t,e=!0){Vr(),qs(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.__key;Qi(r);const s=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),l=n.__prev,c=this.getIndexWithinParent();if(null===s)o.__first=i;else {s.getWritable().__next=i;}o.__size++,n.__prev=i,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent;const a=Tr();if(e&&lr(a)){Nr(a,this.getParentOrThrow(),c);}return t}isParentRequired(){return !1}createParentElementNode(){return Ti()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,e){Vr();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(di(n))return n.select();if(!Xn(n)){const t=n.getIndexWithinParent()+1;return r.select(t,t)}return n.select(t,e)}selectNext(t,e){Vr();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(di(n))return n.select(0,0);if(!Xn(n)){const t=n.getIndexWithinParent();return r.select(t,t)}return n.select(t,e)}markDirty(){this.getWritable();}reconcileObservedMutation(t,e){this.markDirty();}}class Fn extends Pn{static getType(){return "linebreak"}static clone(t){return new Fn(t.__key)}constructor(t){super(t);}getTextContent(){return "\n"}createDOM(){return document.createElement("br")}updateDOM(){return !1}isInline(){return !0}static importDOM(){return {br:t=>function(t){const e=t.parentElement;if(null!==e&&so(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Mn(n)){const n=e.lastChild;if(n===t||n.previousSibling===t&&Mn(n))return !0}}return !1}(t)||function(t){const e=t.parentElement;if(null!==e&&so(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Mn(n))return !1;const r=e.lastChild;if(r===t||r.previousSibling===t&&Mn(r))return !0}return !1}(t)?null:{conversion:Ln,priority:0}}}static importJSON(t){return An().updateFromJSON(t)}}function Ln(t){return {node:An()}}function An(){return Us(new Fn)}function On(t){return t instanceof Fn}function Mn(t){return $i(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function In(t,e){return 16&e?"code":e&F$4?"mark":32&e?"sub":64&e?"sup":null}function Dn(t,e){return 1&e?"strong":2&e?"em":"span"}function zn(t,e,n,r,i){const s=r.classList;let o=Ts(i,"base");void 0!==o&&s.add(...o),o=Ts(i,"underlineStrikethrough");let l=!1;const c=e&w$6&&e&T$3;void 0!==o&&(n&w$6&&n&T$3?(l=!0,c||s.add(...o)):c&&s.remove(...o));for(const t in V$3){const r=V$3[t];if(o=Ts(i,t),void 0!==o)if(n&r){if(l&&("underline"===t||"strikethrough"===t)){e&r&&s.remove(...o);continue}e&r&&(!c||"underline"!==t)&&"strikethrough"!==t||s.add(...o);}else e&r&&s.remove(...o);}}function Bn(t,e,n){const r=e.firstChild,s=n.isComposing(),o=t+(s?B$4:"");if(null==r)e.textContent=o;else {const t=r.nodeValue;if(t!==o)if(s||i$1){const[e,n,i]=function(t,e){const n=t.length,r=e.length;let i=0,s=0;for(;i<n&&i<r&&t[i]===e[i];)i++;for(;s+i<n&&s+i<r&&t[n-s-1]===e[r-s-1];)s++;return [i,n-i-s,e.slice(i,r-s)]}(t,o);0!==n&&r.deleteData(e,n),r.insertData(e,i);}else r.nodeValue=o;}}function Wn(t,e,n,r,i,s){Bn(i,t,e);const o=s.theme.text;void 0!==o&&zn(0,0,r,t,o);}function Kn(t,e){const n=document.createElement(e);return n.appendChild(t),n}class Rn extends Pn{static getType(){return "text"}static clone(t){return new Rn(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail;}constructor(t="",e){super(e),this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0;}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return Q$3[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Zi()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return !!(1&this.getLatest().__detail)}isUnmergeable(){return !!(2&this.getLatest().__detail)}hasFormat(t){const e=V$3[t];return !!(this.getFormat()&e)}isSimpleText(){return "text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(t,e){return qi(this.getLatest().__format,t,e)}canHaveFormat(){return !0}isInline(){return !0}createDOM(t,e){const n=this.__format,r=In(0,n),i=Dn(0,n),s=null===r?i:r,o=document.createElement(s);let l=o;this.hasFormat("code")&&o.setAttribute("spellcheck","false"),null!==r&&(l=document.createElement(i),o.appendChild(l));Wn(l,this,0,n,this.__text,t);const c=this.__style;return ""!==c&&(o.style.cssText=c),o}updateDOM(e,n,r){const i=this.__text,s=e.__format,o=this.__format,l=In(0,s),c=In(0,o),a=Dn(0,s),u=Dn(0,o);if((null===l?a:l)!==(null===c?u:c))return !0;if(l===c&&a!==u){const e=n.firstChild;null==e&&t$2(48);const s=document.createElement(u);return Wn(s,this,0,o,i,r),n.replaceChild(s,e),!1}let f=n;null!==c&&null!==l&&(f=n.firstChild,null==f&&t$2(49)),Bn(i,f,this);const d=r.theme.text;void 0!==d&&s!==o&&zn(0,s,o,f,d);const h=e.__style,g=this.__style;return h!==g&&(n.style.cssText=g),!1}static importDOM(){return {"#text":()=>({conversion:Un,priority:0}),b:()=>({conversion:jn,priority:0}),code:()=>({conversion:Gn,priority:0}),em:()=>({conversion:Gn,priority:0}),i:()=>({conversion:Gn,priority:0}),mark:()=>({conversion:Gn,priority:0}),s:()=>({conversion:Gn,priority:0}),span:()=>({conversion:Jn,priority:0}),strong:()=>({conversion:Gn,priority:0}),sub:()=>({conversion:Gn,priority:0}),sup:()=>({conversion:Gn,priority:0}),u:()=>({conversion:Gn,priority:0})}}static importJSON(t){return Qn().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(e){let{element:n}=super.exportDOM(e);return eo(n)||t$2(132),n.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(n=Kn(n,"b")),this.hasFormat("italic")&&(n=Kn(n,"i")),this.hasFormat("strikethrough")&&(n=Kn(n,"s")),this.hasFormat("underline")&&(n=Kn(n,"u")),{element:n}}exportJSON(){return {detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,e){}setFormat(t){const e=this.getWritable();return e.__format="string"==typeof t?V$3[t]:t,e}setDetail(t){const e=this.getWritable();return e.__detail="string"==typeof t?U$5[t]:t,e}setStyle(t){const e=this.getWritable();return e.__style=t,e}toggleFormat(t){const e=qi(this.getFormat(),t,null);return this.setFormat(e)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const e=G$4[t];if(this.__mode===e)return this;const n=this.getWritable();return n.__mode=e,n}setTextContent(t){if(this.__text===t)return this;const e=this.getWritable();return e.__text=t,e}select(t,e){Vr();let n=t,r=e;const i=Tr(),s=this.getTextContent(),o=this.__key;if("string"==typeof s){const t=s.length;void 0===n&&(n=t),void 0===r&&(r=t);}else n=0,r=0;if(!lr(i))return Sr(o,n,o,r,"text","text");{const t=Zi();t!==i.anchor.key&&t!==i.focus.key||Yi(o),i.setTextNodeRange(this,n,this,r);}return i}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,e,n,r){const i=this.getWritable(),s=i.__text,o=n.length;let l=t;l<0&&(l=o+l,l<0&&(l=0));const c=Tr();if(r&&lr(c)){const e=t+o;c.setTextNodeRange(i,e,i,e);}const a=s.slice(0,l)+n+s.slice(l+e);return i.__text=a,i}canInsertTextBefore(){return !0}canInsertTextAfter(){return !0}splitText(...t){Vr();const e=this.getLatest(),n=e.getTextContent();if(""===n)return [];const r=e.__key,i=Zi(),s=n.length;t.sort(((t,e)=>t-e)),t.push(s);const o=[],l=t.length;for(let e=0,r=0;e<s&&r<=l;r++){const i=t[r];i>e&&(o.push(n.slice(e,i)),e=i);}const c=o.length;if(1===c)return [e];const a=o[0],u=e.getParent();let f;const d=e.getFormat(),h=e.getStyle(),g=e.__detail;let _=!1,p=null,m=null;const y=Tr();if(lr(y)){const[t,e]=y.isBackward()?[y.focus,y.anchor]:[y.anchor,y.focus];"text"===t.type&&t.key===r&&(p=t),"text"===e.type&&e.key===r&&(m=e);}e.isSegmented()?(f=Qn(a),f.__format=d,f.__style=h,f.__detail=g,_=!0):(f=e.getWritable(),f.__text=a);const x=[f];for(let t=1;t<c;t++){const e=Qn(o[t]);e.__format=d,e.__style=h,e.__detail=g;const n=e.__key;i===r&&Yi(n),x.push(e);}const S=p?p.offset:null,v=m?m.offset:null;let C=0;for(const t of x){if(!p&&!m)break;const e=C+t.getTextContentSize();if(null!==p&&null!==S&&S<=e&&S>=C&&(p.set(t.getKey(),S-C,"text"),S<e&&(p=null)),null!==m&&null!==v&&v<=e&&v>=C){m.set(t.getKey(),v-C,"text");break}C=e;}if(null!==u){!function(t){const e=t.getPreviousSibling(),n=t.getNextSibling();null!==e&&Xi(e);null!==n&&Xi(n);}(this);const t=u.getWritable(),e=this.getIndexWithinParent();_?(t.splice(e,0,x),this.remove()):t.splice(e,1,x),lr(y)&&Nr(y,u,e,c-1);}return x}mergeWithSibling(e){const n=e===this.getPreviousSibling();n||e===this.getNextSibling()||t$2(50);const r=this.__key,i=e.__key,s=this.__text,o=s.length;Zi()===i&&Yi(r);const l=Tr();if(lr(l)){const t=l.anchor,s=l.focus;null!==t&&t.key===i&&Fr(t,n,r,e,o),null!==s&&s.key===i&&Fr(s,n,r,e,o);}const c=e.__text,a=n?c+s:s+c;this.setTextContent(a);const u=this.getWritable();return e.remove(),u}isTextEntity(){return !1}}function Jn(t){return {forChild:Yn(t.style),node:null}}function jn(t){const e=t,n="normal"===e.style.fontWeight;return {forChild:Yn(e.style,n?void 0:"bold"),node:null}}const $n=new WeakMap;function Vn(t){if(!eo(t))return !1;if("PRE"===t.nodeName)return !0;const e=t.style.whiteSpace;return "string"==typeof e&&e.startsWith("pre")}function Un(e){const n=e;null===e.parentElement&&t$2(129);let r=n.textContent||"";if(null!==function(t){let e,n=t.parentNode;const r=[t];for(;null!==n&&void 0===(e=$n.get(n))&&!Vn(n);)r.push(n),n=n.parentNode;const i=void 0===e?n:e;for(let t=0;t<r.length;t++)$n.set(r[t],i);return i}(n)){const t=r.split(/(\r?\n|\t)/),e=[],n=t.length;for(let r=0;r<n;r++){const n=t[r];"\n"===n||"\r\n"===n?e.push(An()):"\t"===n?e.push(tr()):""!==n&&e.push(Qn(n));}return {node:e}}if(r=r.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===r)return {node:null};if(" "===r[0]){let t=n,e=!0;for(;null!==t&&null!==(t=qn(t,!1));){const n=t.textContent||"";if(n.length>0){/[ \t\n]$/.test(n)&&(r=r.slice(1)),e=!1;break}}e&&(r=r.slice(1));}if(" "===r[r.length-1]){let t=n,e=!0;for(;null!==t&&null!==(t=qn(t,!0));){if((t.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){e=!1;break}}e&&(r=r.slice(0,r.length-1));}return ""===r?{node:null}:{node:Qn(r)}}function qn(t,e){let n=t;for(;;){let t;for(;null===(t=e?n.nextSibling:n.previousSibling);){const t=n.parentElement;if(null===t)return null;n=t;}if(n=t,eo(n)){const t=n.style.display;if(""===t&&!io(n)||""!==t&&!t.startsWith("inline"))return null}let r=n;for(;null!==(r=e?n.firstChild:n.lastChild);)n=r;if($i(n))return n;if("BR"===n.nodeName)return null}}const Hn={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Gn(t){const e=Hn[t.nodeName.toLowerCase()];return void 0===e?{node:null}:{forChild:Yn(t.style,e),node:null}}function Qn(t=""){return Us(new Rn(t))}function Xn(t){return t instanceof Rn}function Yn(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),i="700"===n||"bold"===n,s=r.includes("line-through"),o="italic"===t.fontStyle,l=r.includes("underline"),c=t.verticalAlign;return t=>Xn(t)?(i&&!t.hasFormat("bold")&&t.toggleFormat("bold"),s&&!t.hasFormat("strikethrough")&&t.toggleFormat("strikethrough"),o&&!t.hasFormat("italic")&&t.toggleFormat("italic"),l&&!t.hasFormat("underline")&&t.toggleFormat("underline"),"sub"!==c||t.hasFormat("subscript")||t.toggleFormat("subscript"),"super"!==c||t.hasFormat("superscript")||t.toggleFormat("superscript"),e&&!t.hasFormat(e)&&t.toggleFormat(e),t):t}class Zn extends Rn{static getType(){return "tab"}static clone(t){return new Zn(t.__key)}constructor(t){super("\t",t),this.__detail=2;}static importDOM(){return null}createDOM(t){const e=super.createDOM(t),n=Ts(t.theme,"tab");if(void 0!==n){e.classList.add(...n);}return e}static importJSON(t){return tr().updateFromJSON(t)}setTextContent(e){return "\t"!==e&&""!==e&&t$2(126),super.setTextContent(e)}setDetail(e){return 2!==e&&t$2(127),this}setMode(e){return "normal"!==e&&t$2(128),this}canInsertTextBefore(){return !1}canInsertTextAfter(){return !1}}function tr(){return Us(new Zn)}function er(t){return t instanceof Zn}class nr{constructor(t,e,n){this._selection=null,this.key=t,this.offset=e,this.type=n;}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){if(this.key===t.key)return this.offset<t.offset;return Vo(sl(Qo(this,"next")),sl(Qo(t,"next")))<0}getNode(){const e=ts(this.key);return null===e&&t$2(20),e}set(t,e,n,r){const i=this._selection,s=this.key;r&&this.key===t&&this.offset===e&&this.type===n||(this.key=t,this.offset=e,this.type=n,$r()||(Zi()===s&&Yi(t),null!==i&&(i.setCachedNodes(null),i.dirty=!0)));}}function rr(t,e,n){return new nr(t,e,n)}function ir(t,e){let n=e.__key,r=t.offset,i="element";if(Xn(e)){i="text";const t=e.getTextContentSize();r>t&&(r=t);}else if(!di(e)){const t=e.getNextSibling();if(Xn(t))n=t.__key,r=0,i="text";else {const t=e.getParent();t&&(n=t.__key,r=e.getIndexWithinParent()+1);}}t.set(n,r,i);}function sr(t,e){if(di(e)){const n=e.getLastDescendant();di(n)||Xn(n)?ir(t,n):ir(t,e);}else ir(t,e);}class or{constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1;}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t;}is(t){if(!ar(t))return !1;const e=this._nodes,n=t._nodes;return e.size===n.size&&Array.from(e).every((t=>n.has(t)))}isCollapsed(){return !1}isBackward(){return !1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null;}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null;}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null;}has(t){return this._nodes.has(t)}clone(){return new or(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const e=this.getNodes(),n=e.length,r=e[n-1];let i;if(Xn(r))i=r.select();else {const t=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(t,t);}i.insertNodes(t);for(let t=0;t<n;t++)e[t].remove();}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=this._nodes,n=[];for(const t of e){const e=ts(t);null!==e&&n.push(e);}return $r()||(this._cachedNodes=n),n}getTextContent(){const t=this.getNodes();let e="";for(let n=0;n<t.length;n++)e+=t[n].getTextContent();return e}}function lr(t){return t instanceof cr}class cr{constructor(t,e,n,r){this.anchor=t,this.focus=e,t._selection=this,e._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1;}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t;}is(t){return !!lr(t)&&(this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=function(t){const e=[],[n,r]=t.getTextSlices();n&&e.push(n.caret.origin);const i=new Set,s=new Set;for(const n of t)if(Eo(n)){const{origin:t}=n;0===e.length?i.add(t):(s.add(t),e.push(t));}else {const{origin:t}=n;di(t)&&s.has(t)||e.push(t);}r&&e.push(r.caret.origin);if(No(t.focus)&&di(t.focus.origin)&&null===t.focus.getNodeAtCaret())for(let n=Do(t.focus.origin,"previous");Eo(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(e[e.length-1]);n=Bo(n))i.delete(n.origin),e.pop();for(;e.length>1;){const t=e[e.length-1];if(!di(t)||s.has(t)||t.isEmpty()||i.has(t))break;e.pop();}if(0===e.length&&t.isCollapsed()){const n=sl(t.anchor),r=sl(t.anchor.getFlipped()),i=t=>To(t)?t.origin:t.getNodeAtCaret(),s=i(n)||i(r)||(t.anchor.getNodeAtCaret()?n.origin:r.origin);e.push(s);}return e}(cl(tl(this),"next"));return $r()||(this._cachedNodes=e),e}setTextNodeRange(t,e,n,r){this.anchor.set(t.__key,e,"text"),this.focus.set(n.__key,r,"text");}getTextContent(){const t=this.getNodes();if(0===t.length)return "";const e=t[0],n=t[t.length-1],r=this.anchor,i=this.focus,s=r.isBefore(i),[o,l]=fr(this);let c="",a=!0;for(let u=0;u<t.length;u++){const f=t[u];if(di(f)&&!f.isInline())a||(c+="\n"),a=!f.isEmpty();else if(a=!1,Xn(f)){let t=f.getTextContent();f===e?f===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(t=o<l?t.slice(o,l):t.slice(l,o)):t=s?t.slice(o):t.slice(l):f===n&&(t=s?t.slice(0,l):t.slice(0,o)),c+=t;}else !_i(f)&&!On(f)||f===n&&this.isCollapsed()||(c+=f.getTextContent());}return c}applyDOMRange(t){const e=Hr(),n=e.getEditorState()._selection,r=yr(t.startContainer,t.startOffset,t.endContainer,t.endOffset,e,n);if(null===r)return;const[i,s]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),Ct$2(this);}clone(){const t=this.anchor,e=this.focus;return new cr(rr(t.key,t.offset,t.type),rr(e.key,e.offset,e.type),this.format,this.style)}toggleFormat(t){this.format=qi(this.format,t,null),this.dirty=!0;}setStyle(t){this.style=t,this.dirty=!0;}hasFormat(t){const e=V$3[t];return !!(this.format&e)}insertRawText(t){const e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){const r=e[t];"\n"===r||"\r\n"===r?n.push(An()):"\t"===r?n.push(tr()):n.push(Qn(r));}this.insertNodes(n);}insertText(e){const n=this.anchor,r=this.focus,i=this.format,s=this.style;let o=n,l=r;!this.isCollapsed()&&r.isBefore(n)&&(o=r,l=n),"element"===o.type&&function(t,e,n,r){const i=t.getNode(),s=i.getChildAtIndex(t.offset),o=Qn(),l=mi(i)?Ti().append(o):o;o.setFormat(n),o.setStyle(r),null===s?i.append(l):s.insertBefore(l),t.is(e)&&e.set(o.__key,0,"text"),t.set(o.__key,0,"text");}(o,l,i,s),"element"===l.type&&Xo(l,sl(Qo(l,"next")));const c=o.offset;let a=l.offset;const u=this.getNodes(),f=u.length;let d=u[0];Xn(d)||t$2(26);const h=d.getTextContent().length,g=d.getParentOrThrow();let _=u[f-1];if(1===f&&"element"===l.type&&(a=h,l.set(o.key,a,"text")),this.isCollapsed()&&c===h&&(d.isSegmented()||d.isToken()||!d.canInsertTextAfter()||!g.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(Xn(t)&&t.canInsertTextBefore()&&!ji(t)||(t=Qn(),t.setFormat(i),t.setStyle(s),g.canInsertTextAfter()?d.insertAfter(t):g.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===c&&(d.isSegmented()||d.isToken()||!d.canInsertTextBefore()||!g.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(Xn(t)&&!ji(t)||(t=Qn(),t.setFormat(i),g.canInsertTextBefore()?d.insertBefore(t):g.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&c!==h){const t=Qn(d.getTextContent());t.setFormat(i),d.replace(t),d=t;}else if(!this.isCollapsed()&&""!==e){const t=_.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||di(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),mr(this.anchor,this.focus,null),void this.insertText(e)}if(1===f){if(d.isToken()){const t=Qn(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(c!==a||t===i&&n===s){if(er(d)){const t=Qn(e);return t.setFormat(i),t.setStyle(s),t.select(),void d.replace(t)}}else {if(""!==d.getTextContent()){const t=Qn(e);if(t.setFormat(i),t.setStyle(s),t.select(),0===c)d.insertBefore(t,!1);else {const[e]=d.splitText(c);e.insertAfter(t,!1);}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(i),d.setStyle(s);}const r=a-c;d=d.spliceText(c,r,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(d.isComposing()?this.anchor.offset-=e.length:(this.format=t,this.style=n));}else {const t=new Set([...d.getParentKeys(),..._.getParentKeys()]),n=di(d)?d:d.getParentOrThrow();let r=di(_)?_:_.getParentOrThrow(),i=_;if(!n.is(r)&&r.isInline())do{i=r,r=r.getParentOrThrow();}while(r.isInline());if("text"===l.type&&(0!==a||""===_.getTextContent())||"element"===l.type&&_.getIndexWithinParent()<a)if(Xn(_)&&!_.isToken()&&a!==_.getTextContentSize()){if(_.isSegmented()){const t=Qn(_.getTextContent());_.replace(t),_=t;}mi(l.getNode())||"text"!==l.type||(_=_.spliceText(0,a,"")),t.add(_.__key);}else {const t=_.getParentOrThrow();t.canBeEmpty()||1!==t.getChildrenSize()?_.remove():t.remove();}else t.add(_.__key);const s=r.getChildren(),o=new Set(u),g=n.is(r),p=n.isInline()&&null===d.getNextSibling()?n:d;for(let t=s.length-1;t>=0;t--){const e=s[t];if(e.is(d)||di(e)&&e.isParentOf(d))break;e.isAttached()&&(!o.has(e)||e.is(i)?g||p.insertAfter(e,!1):e.remove());}if(!g){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent();}}if(d.isToken())if(c===h)d.select();else {const t=Qn(e);t.select(),d.replace(t);}else d=d.spliceText(c,h-c,e,!0),""===d.getTextContent()?d.remove():d.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length);for(let e=1;e<f;e++){const n=u[e],r=n.__key;t.has(r)||n.remove();}}}removeText(){const t=Tr()===this;Zo(this,il(tl(this))),t&&Tr()!==this&&cs(this);}formatText(t,e=null){if(this.isCollapsed())return this.toggleFormat(t),void Yi(null);const n=this.getNodes(),r=[];for(const t of n)Xn(t)&&r.push(t);const i=e=>{n.forEach((n=>{if(di(n)){const r=n.getFormatFlags(t,e);n.setTextFormat(r);}}));},s=r.length;if(0===s)return this.toggleFormat(t),Yi(null),void i(e);const o=this.anchor,l=this.focus,c=this.isBackward(),a=c?l:o,u=c?o:l;let f=0,d=r[0],h="element"===a.type?0:a.offset;if("text"===a.type&&h===d.getTextContentSize()&&(f=1,d=r[1],h=0),null==d)return;const g=d.getFormatFlags(t,e);i(g);const _=s-1;let p=r[_];const m="text"===u.type?u.offset:p.getTextContentSize();if(d.is(p)){if(h===m)return;if(ji(d)||0===h&&m===d.getTextContentSize())d.setFormat(g);else {const t=d.splitText(h,m),e=0===h?t[0]:t[1];e.setFormat(g),"text"===a.type&&a.set(e.__key,0,"text"),"text"===u.type&&u.set(e.__key,m-h,"text");}return void(this.format=g)}0===h||ji(d)||([,d]=d.splitText(h),h=0),d.setFormat(g);const y=p.getFormatFlags(t,g);m>0&&(m===p.getTextContentSize()||ji(p)||([p]=p.splitText(m)),p.setFormat(y));for(let e=f+1;e<_;e++){const n=r[e],i=n.getFormatFlags(t,y);n.setFormat(i);}"text"===a.type&&a.set(d.__key,h,"text"),"text"===u.type&&u.set(p.__key,m,"text"),this.format=g|y;}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const n=Tr();return lr(n)||t$2(134),n.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=lo(n,oo),i=e[e.length-1];if(di(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else {const t=Ir(this);r.splice(t,0,e),i.selectEnd();}return}if(!e.some((t=>(di(t)||_i(t))&&!t.isInline()))){di(r)||t$2(211,n.constructor.name,n.getType());const s=Ir(this);return r.splice(s,0,e),void i.selectEnd()}const s=function(t){const e=Ti();let n=null;for(let r=0;r<t.length;r++){const i=t[r],s=On(i);if(s||_i(i)&&i.isInline()||di(i)&&i.isInline()||Xn(i)||i.isParentRequired()){if(null===n&&(n=i.createParentElementNode(),e.append(n),s))continue;null!==n&&n.append(i);}else e.append(i),n=null;}return e}(e),o=s.getLastDescendant(),l=s.getChildren(),c=!di(r)||!r.isEmpty()?this.insertParagraph():null,a=l[l.length-1];let u=l[0];var f;di(f=u)&&oo(f)&&!f.isEmpty()&&di(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(di(r)||t$2(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=l[1]),u&&(null===r&&t$2(212,n.constructor.name,n.getType()),function(e,n,r){const i=n.getParentOrThrow().getLastChild();let s=n;const o=[n];for(;s!==i;)s.getNextSibling()||t$2(140),s=s.getNextSibling(),o.push(s);let l=e;for(const t of o)l=l.insertAfter(t);}(r,u));const d=lo(o,oo);c&&di(d)&&(c.canMergeWhenEmpty()||oo(a))&&(d.append(...c.getChildren()),c.remove()),di(r)&&r.isEmpty()&&r.remove(),o.selectEnd();const h=di(r)?r.getLastChild():null;On(h)&&d!==r&&h.remove();}insertParagraph(){if("root"===this.anchor.key){const t=Ti();return os().splice(this.anchor.offset,0,[t]),t.select(),t}const e=Ir(this),n=lo(this.anchor.getNode(),oo);di(n)||t$2(213);const r=n.getChildAtIndex(e),i=r?[r,...r.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...i),s.selectStart(),s):null}insertLineBreak(t){const e=An();if(this.insertNodes([e]),t){const t=e.getParentOrThrow(),n=e.getIndexWithinParent();t.select(n,n);}}extract(){const t=this.getNodes(),e=t.length,n=e-1,r=this.anchor,i=this.focus;let s=t[0],o=t[n];const[l,c]=fr(this);if(0===e)return [];if(1===e){if(Xn(s)&&!this.isCollapsed()){const t=l>c?c:l,e=l>c?l:c,n=s.splitText(t,e),r=0===t?n[0]:n[1];return null!=r?[r]:[]}return [s]}const a=r.isBefore(i);if(Xn(s)){const e=a?l:c;e===s.getTextContentSize()?t.shift():0!==e&&([,s]=s.splitText(e),t[0]=s);}if(Xn(o)){const e=o.getTextContent().length,r=a?c:l;0===r?t.pop():r!==e&&([o]=o.splitText(r),t[n]=o);}return t}modify(t,e,n){if(zr(this,t,e,n))return;const r="move"===t,i=Hr(),s=Xs(Rs(i));if(!s)return;const o=i._blockCursorElement,l=i._rootElement,c=this.focus.getNode();if(null===l||null===o||!di(c)||c.isInline()||c.canBeEmpty()||Qs(o,i,l),this.dirty){let t=Os(i,this.anchor.key),e=Os(i,this.focus.key);"text"===this.anchor.type&&(t=Ui(t)),"text"===this.focus.type&&(e=Ui(e)),t&&e&&Lr(s,t,this.anchor.offset,e,this.focus.offset);}if(function(t,e,n,r){t.modify(e,n,r);}(s,t,e?"backward":"forward",n),s.rangeCount>0){const t=s.getRangeAt(0),n=this.anchor.getNode(),i=mi(n)?n:js(n);if(this.applyDOMRange(t),this.dirty=!0,!r){const n=this.getNodes(),r=[];let o=!1;for(let t=0;t<n.length;t++){const e=n[t];Ws(e,i)?r.push(e):o=!0;}if(o&&r.length>0)if(e){const t=r[0];di(t)?t.selectStart():t.getParentOrThrow().selectStart();}else {const t=r[r.length-1];di(t)?t.selectEnd():t.getParentOrThrow().selectEnd();}s.anchorNode===t.startContainer&&s.anchorOffset===t.startOffset||function(t){const e=t.focus,n=t.anchor,r=n.key,i=n.offset,s=n.type;n.set(e.key,e.offset,e.type,!0),e.set(r,i,s,!0);}(this);}}"lineboundary"===n&&zr(this,t,e,n,"decorators");}forwardDeletion(t,e,n){if(!n&&("element"===t.type&&di(e)&&t.offset===e.getChildrenSize()||"text"===t.type&&t.offset===e.getTextContentSize())){const t=e.getParent(),n=e.getNextSibling()||(null===t?null:t.getNextSibling());if(di(n)&&n.isShadowRoot())return !0}return !1}deleteCharacter(t){const e=this.isCollapsed();if(this.isCollapsed()){const e=this.anchor;let n=e.getNode();if(this.forwardDeletion(e,n,t))return;const r=Jo(Qo(e,t?"previous":"next"));if(r.getTextSlices().every((t=>null===t||0===t.distance))){let t={type:"initial"};for(const e of r.iterNodeCarets("shadowRoot"))if(Eo(e))if(e.origin.isInline());else {if(e.origin.isShadowRoot()){if("merge-block"===t.type)break;if(di(r.anchor.origin)&&r.anchor.origin.isEmpty()){const t=sl(e);Zo(this,jo(t,t)),r.anchor.origin.remove();}return}"merge-next-block"!==t.type&&"merge-block"!==t.type||(t={block:t.block,caret:e,type:"merge-block"});}else {if("merge-block"===t.type)break;if(No(e)){if(di(e.origin)){if(e.origin.isInline()){if(!e.origin.isParentOf(r.anchor.origin))break}else t={block:e.origin,type:"merge-next-block"};continue}if(_i(e.origin)){if(e.origin.isIsolated());else if("merge-next-block"===t.type&&(e.origin.isKeyboardSelectable()||!e.origin.isInline())&&di(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const t=Cr();t.add(e.origin.getKey()),cs(t);}else e.origin.remove();return}break}}if("merge-block"===t.type){const{caret:e,block:n}=t;return Zo(this,jo(!e.origin.isEmpty()&&n.isEmpty()?el(Ao(n,e.direction)):r.anchor,e)),this.removeText()}}const i=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===e.offset&&dr(this,e.getNode()))return}else {const r="text"===i.type?i.getNode():null;if(n="text"===e.type?e.getNode():null,null!==r&&r.isSegmented()){const e=i.offset,s=r.getTextContentSize();if(r.is(n)||t&&e!==s||!t&&0!==e)return void gr(r,t,e)}else if(null!==n&&n.isSegmented()){const i=e.offset,s=n.getTextContentSize();if(n.is(r)||t&&0!==i||!t&&i!==s)return void gr(n,t,i)}!function(t,e){const n=t.anchor,r=t.focus,i=n.getNode(),s=r.getNode();if(i===s&&"text"===n.type&&"text"===r.type){const t=n.offset,s=r.offset,o=t<s,l=o?t:s,c=o?s:t,a=c-1;if(l!==a){(function(t){return !(fs(t)||hr(t))})(i.getTextContent().slice(l,c))&&(e?r.set(r.key,a,r.type):n.set(n.key,a,n.type));}}}(this,t);}}if(this.removeText(),t&&!e&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const t=this.anchor.getNode();t.isEmpty()&&mi(t.getParent())&&null===t.getPreviousSibling()&&dr(this,t);}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText();}deleteWord(t){if(this.isCollapsed()){const e=this.anchor,n=e.getNode();if(this.forwardDeletion(e,n,t))return;this.modify("extend",t,"word");}this.removeText();}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return [this.anchor,this.focus]}}function ar(t){return t instanceof or}function ur(t){const e=t.offset;if("text"===t.type)return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function fr(t){const e=t.getStartEndPoints();if(null===e)return [0,0];const[n,r]=e;return "element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[ur(n),ur(r)]}function dr(t,e){for(let n=e;n;n=n.getParent()){if(di(n)){if(n.collapseAtStart(t))return !0;if($s(n))break}if(n.getPreviousSibling())break}return !1}const hr=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch(t){}return ()=>!1})();function gr(t,e,n){const r=t,i=r.getTextContent().split(/(?=\s)/g),s=i.length;let o=0,l=0;for(let t=0;t<s;t++){const r=t===s-1;if(l=o,o+=i[t].length,e&&o===n||o>n||r){i.splice(t,1),r&&(l=void 0);break}}const c=i.join("").trim();""===c?r.remove():(r.setTextContent(c),r.select(l,l));}function _r(e,n,r,i){let s,o=n;if(eo(e)){let l=!1;const c=e.childNodes,a=c.length,u=i._blockCursorElement;o===a&&(l=!0,o=a-1);let f=c[o],d=!1;if(f===u)f=c[o+1],d=!0;else if(null!==u){const t=u.parentNode;if(e===t){n>Array.prototype.indexOf.call(t.children,u)&&o--;}}if(s=as(f),Xn(s))o=us(s,l);else {let c=as(e);if(null===c)return null;if(di(c)){const a=i.getElementByKey(c.getKey());null===a&&t$2(214);const u=c.getDOMSlot(a);[c,o]=u.resolveChildIndex(c,a,e,n),di(c)||t$2(215),l&&o>=c.getChildrenSize()&&(o=Math.max(0,c.getChildrenSize()-1));let f=c.getChildAtIndex(o);if(di(f)&&function(t,e,n){const r=t.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(f,0,r)){const t=l?f.getLastDescendant():f.getFirstDescendant();null===t?c=f:(f=t,c=di(f)?f:f.getParentOrThrow()),o=0;}Xn(f)?(s=f,c=null,o=us(f,l)):f!==c&&l&&!d&&(di(c)||t$2(216),o=Math.min(c.getChildrenSize(),o+1));}else {const t=c.getIndexWithinParent();o=0===n&&_i(c)&&as(e)===c?t:t+1,c=c.getParentOrThrow();}if(di(c))return rr(c.__key,o,"element")}}else s=as(e);return Xn(s)?rr(s.__key,o,"text"):null}function pr(t,e,n){const r=t.offset,i=t.getNode();if(0===r){const r=i.getPreviousSibling(),s=i.getParent();if(e){if((n||!e)&&null===r&&di(s)&&s.isInline()){const e=s.getPreviousSibling();Xn(e)&&t.set(e.__key,e.getTextContent().length,"text");}}else di(r)&&!n&&r.isInline()?t.set(r.__key,r.getChildrenSize(),"element"):Xn(r)&&t.set(r.__key,r.getTextContent().length,"text");}else if(r===i.getTextContent().length){const r=i.getNextSibling(),s=i.getParent();if(e&&di(r)&&r.isInline())t.set(r.__key,0,"element");else if((n||e)&&null===r&&di(s)&&s.isInline()&&!s.canInsertTextAfter()){const e=s.getNextSibling();Xn(e)&&t.set(e.__key,0,"text");}}}function mr(t,e,n){if("text"===t.type&&"text"===e.type){const r=t.isBefore(e),i=t.is(e);pr(t,r,i),pr(e,!r,i),i&&e.set(t.key,t.offset,t.type);const s=Hr();if(s.isComposing()&&s._compositionKey!==t.key&&lr(n)){const r=n.anchor,i=n.focus;t.set(r.key,r.offset,r.type,!0),e.set(i.key,i.offset,i.type,!0);}}}function yr(t,e,n,r,i,s){if(null===t||null===n||!Wi(i,t,n))return null;const o=_r(t,e,lr(s)?s.anchor:null,i);if(null===o)return null;const l=_r(n,r,lr(s)?s.focus:null,i);if(null===l)return null;if("element"===o.type&&"element"===l.type){const e=as(t),r=as(n);if(_i(e)&&_i(r))return null}return mr(o,l,s),[o,l]}function xr(t){return di(t)&&!t.isInline()}function Sr(t,e,n,r,i,s){const o=qr(),l=new cr(rr(t,e,i),rr(n,r,s),0,"");return l.dirty=!0,o._selection=l,l}function vr(){const t=rr("root",0,"element"),e=rr("root",0,"element");return new cr(t,e,0,"")}function Cr(){return new or(new Set)}function kr(t,e){return br(null,t,e,null)}function br(t,e,n,r){const i=n._window;if(null===i)return null;const s=r||i.event,o=s?s.type:void 0,l="selectionchange"===o,c=!tt$2&&(l||"beforeinput"===o||"compositionstart"===o||"compositionend"===o||"click"===o&&s&&3===s.detail||"drop"===o||void 0===o);let a,u,f,d;if(lr(t)&&!c)return t.clone();if(null===e)return null;if(a=e.anchorNode,u=e.focusNode,f=e.anchorOffset,d=e.focusOffset,l&&lr(t)&&!Wi(n,a,u))return t.clone();const h=yr(a,f,u,d,n,t);if(null===h)return null;const[g,_]=h;return new cr(g,_,lr(t)?t.format:0,lr(t)?t.style:"")}function Tr(){return qr()._selection}function wr(){return Hr()._editorState._selection}function Nr(t,e,n,r=1){const i=t.anchor,s=t.focus,o=i.getNode(),l=s.getNode();if(!e.is(o)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const e=i.offset;if(n<=e&&r>0||n<e&&r<0){const n=Math.max(0,e+r);i.set(c,n,"element"),s.set(c,n,"element"),Er(t);}}else {const o=t.isBackward(),l=o?s:i,a=l.getNode(),u=o?i:s,f=u.getNode();if(e.is(a)){const t=l.offset;(n<=t&&r>0||n<t&&r<0)&&l.set(c,Math.max(0,t+r),"element");}if(e.is(f)){const t=u.offset;(n<=t&&r>0||n<t&&r<0)&&u.set(c,Math.max(0,t+r),"element");}}Er(t);}function Er(t){const e=t.anchor,n=e.offset,r=t.focus,i=r.offset,s=e.getNode(),o=r.getNode();if(t.isCollapsed()){if(!di(s))return;const t=s.getChildrenSize(),i=n>=t,o=i?s.getChildAtIndex(t-1):s.getChildAtIndex(n);if(Xn(o)){let t=0;i&&(t=o.getTextContentSize()),e.set(o.__key,t,"text"),r.set(o.__key,t,"text");}}else {if(di(s)){const t=s.getChildrenSize(),r=n>=t,i=r?s.getChildAtIndex(t-1):s.getChildAtIndex(n);if(Xn(i)){let t=0;r&&(t=i.getTextContentSize()),e.set(i.__key,t,"text");}}if(di(o)){const t=o.getChildrenSize(),e=i>=t,n=e?o.getChildAtIndex(t-1):o.getChildAtIndex(i);if(Xn(n)){let t=0;e&&(t=n.getTextContentSize()),r.set(n.__key,t,"text");}}}}function Pr(t,e,n,r,i){let s=null,o=0,l=null;null!==r?(s=r.__key,Xn(r)?(o=r.getTextContentSize(),l="text"):di(r)&&(o=r.getChildrenSize(),l="element")):null!==i&&(s=i.__key,Xn(i)?l="text":di(i)&&(l="element")),null!==s&&null!==l?t.set(s,o,l):(o=e.getIndexWithinParent(),-1===o&&(o=n.getChildrenSize()),t.set(n.__key,o,"element"));}function Fr(t,e,n,r,i){"text"===t.type?t.set(n,t.offset+(e?0:i),"text"):t.offset>r.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element");}function Lr(t,e,n,r,i){try{t.setBaseAndExtent(e,n,r,i);}catch(t){}}function Ar(t,e,n,r,i,s,o){const l=r.anchorNode,c=r.focusNode,a=r.anchorOffset,u=r.focusOffset,f=document.activeElement;if(i.has("collaboration")&&f!==s||null!==f&&Bi(f))return;if(!lr(e))return void(null!==t&&Wi(n,l,c)&&r.removeAllRanges());const d=e.anchor,h=e.focus,g=d.key,_=h.key,p=Os(n,g),m=Os(n,_),y=d.offset,x=h.offset,S=e.format,v=e.style,C=e.isCollapsed();let k=p,b=m,T=!1;if("text"===d.type){k=Ui(p);const t=d.getNode();T=t.getFormat()!==S||t.getStyle()!==v;}else lr(t)&&"text"===t.anchor.type&&(T=!0);var w,N,E,P,F;if(("text"===h.type&&(b=Ui(m)),null!==k&&null!==b)&&(C&&(null===t||T||lr(t)&&(t.format!==S||t.style!==v))&&(w=S,N=v,E=y,P=g,F=performance.now(),gn=[w,N,E,P,F]),a!==y||u!==x||l!==k||c!==b||"Range"===r.type&&C||(null!==f&&s.contains(f)||s.focus({preventScroll:!0}),"element"===d.type))){if(Lr(r,k,y,b,x),!i.has("skip-scroll-into-view")&&e.isCollapsed()&&null!==s&&s===document.activeElement){const t=lr(e)&&"element"===e.anchor.type?k.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==t){let e;if(t instanceof Text){const n=document.createRange();n.selectNode(t),e=n.getBoundingClientRect();}else e=t.getBoundingClientRect();!function(t,e,n){const r=Is(n),i=Ks(r);if(null===r||null===i)return;let{top:s,bottom:o}=e,l=0,c=0,a=n;for(;null!==a;){const e=a===r.body;if(e)l=0,c=Rs(t).innerHeight;else {const t=a.getBoundingClientRect();l=t.top,c=t.bottom;}let n=0;if(s<l?n=-(l-s):o>c&&(n=o-c),0!==n)if(e)i.scrollBy(0,n);else {const t=a.scrollTop;a.scrollTop+=n;const e=a.scrollTop-t;s-=e,o-=e;}if(e)break;a=Ms(a);}}(n,e,s);}}ln=!0;}}function Or(t){let e=Tr()||wr();null===e&&(e=os().selectEnd()),e.insertNodes(t);}function Mr(){const t=Tr();return null===t?"":t.getTextContent()}function Ir(e){let n=e;e.isCollapsed()||n.removeText();const r=Tr();lr(r)&&(n=r),lr(n)||t$2(161);const i=n.anchor;let s=i.getNode(),o=i.offset;for(;!oo(s);){const t=s;if([s,o]=Dr(s,o),t.is(s))break}return o}function Dr(t,e){const n=t.getParent();if(!n){const t=Ti();return os().append(t),t.select(),[os(),0]}if(Xn(t)){const r=t.splitText(e);if(0===r.length)return [n,t.getIndexWithinParent()];const i=0===e?0:1;return [n,r[0].getIndexWithinParent()+i]}if(!di(t)||0===e)return [n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const n=new cr(rr(t.__key,e,"element"),rr(t.__key,e,"element"),0,""),i=t.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings());}return [n,t.getIndexWithinParent()+1]}function zr(t,e,n,r,i="decorators-and-blocks"){if("move"===e&&"character"===r&&!t.isCollapsed()){const[e,r]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return r.set(e.key,e.offset,e.type),!0}const s=Qo(t.focus,n?"previous":"next"),o="lineboundary"===r,l="move"===e;let c=s,a="decorators-and-blocks"===i;if(!ol(c)){for(const t of c){a=!1;const{origin:e}=t;if(!_i(e)||e.isIsolated()||(c=t,!o||!e.isInline()))break}if(a)for(const t of Jo(s).iterNodeCarets("extend"===e?"shadowRoot":"root")){if(Eo(t))t.origin.isInline()||(c=t);else {if(di(t.origin))continue;_i(t.origin)&&!t.origin.isInline()&&(c=t);}break}}if(c===s)return !1;if(l&&!o&&_i(c.origin)&&c.origin.isKeyboardSelectable()){const t=Cr();return t.add(c.origin.getKey()),cs(t),!0}return c=sl(c),l&&Xo(t.anchor,c),Xo(t.focus,c),a||!o}let Br=null,Wr=null,Kr=!1,Rr=!1,Jr=0;const jr={characterData:!0,childList:!0,subtree:!0};function $r(){return Kr||null!==Br&&Br._readOnly}function Vr(){Kr&&t$2(13);}function Ur(){Jr>99&&t$2(14);}function qr(){return null===Br&&t$2(195,Gr()),Br}function Hr(){return null===Wr&&t$2(196,Gr()),Wr}function Gr(){let t=0;const e=new Set,n=Mi.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const i=Ji(r);if(Ki(i))t++;else if(i){let t=String(i.constructor.version||"<0.17.1");t===n&&(t+=" (separately built, likely a bundler configuration issue)"),e.add(t);}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function Qr(){return Wr}function Xr(e,n,r){const i=n.__type,s=function(e,n){const r=e._nodes.get(n);void 0===r&&t$2(30,n);return r}(e,i);let o=r.get(i);void 0===o&&(o=Array.from(s.transforms),r.set(i,o));const l=o.length;for(let t=0;t<l&&(o[t](n),n.isAttached());t++);}function Yr(t,e){return void 0!==t&&t.__key!==e&&t.isAttached()}function Zr(t,e){if(!e)return;const n=t._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const t of r)n.add(t);}function ti(t){return ei(t,Hr()._nodes)}function ei(e,n){const r=e.type,i=n.get(r);void 0===i&&t$2(17,r);const s=i.klass;e.type!==s.getType()&&t$2(18,s.name);const o=s.importJSON(e),l=e.children;if(di(o)&&Array.isArray(l))for(let t=0;t<l.length;t++){const e=ei(l[t],n);o.append(e);}return o}function ni(t,e,n){const r=Br,i=Kr,s=Wr;Br=e,Kr=!0,Wr=t;try{return n()}finally{Br=r,Kr=i,Wr=s;}}function ri(t,e){const n=t._pendingEditorState,r=t._rootElement,i=t._headless||null===r;if(null===n)return;const s=t._editorState,o=s._selection,l=n._selection,c=t._dirtyType!==m$6,a=Br,u=Kr,f=Wr,h=t._updating,g=t._observer;let _=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&null!==g){Wr=t,Br=n,Kr=!1,t._updating=!0;try{const e=t._dirtyType,r=t._dirtyElements,i=t._dirtyLeaves;g.disconnect(),_=ie(s,n,t,e,r,i);}catch(e){if(e instanceof Error&&t._onError(e),Rr)throw e;return Ai(t,null,r,n),at$1(t),t._dirtyType=x$8,Rr=!0,ri(t,s),void(Rr=!1)}finally{g.observe(r,jr),t._updating=h,Br=a,Kr=u,Wr=f;}}n._readOnly||(n._readOnly=!0);const p=t._dirtyLeaves,y=t._dirtyElements,S=t._normalizedNodes,v=t._updateTags,C=t._deferred;c&&(t._dirtyType=m$6,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(t,e){const n=t._decorators;let r=t._pendingDecorators||n;const i=e._nodeMap;let s;for(s in r)i.has(s)||(r===n&&(r=is(t)),delete r[s]);}(t,n);const k=i?null:Xs(Rs(t));if(t._editable&&null!==k&&(c||null===l||l.dirty)&&null!==r&&!v.has("skip-dom-selection")){Wr=t,Br=n;try{if(null!==g&&g.disconnect(),c||null===l||l.dirty){const e=t._blockCursorElement;null!==e&&Qs(e,t,r),Ar(o,l,t,k,v,r);}!function(t,e,n){let r=t._blockCursorElement;if(lr(n)&&n.isCollapsed()&&"element"===n.anchor.type&&e.contains(document.activeElement)){const i=n.anchor,s=i.getNode(),o=i.offset;let l=!1,c=null;if(o===s.getChildrenSize()){Gs(s.getChildAtIndex(o-1))&&(l=!0);}else {const e=s.getChildAtIndex(o);if(null!==e&&Gs(e)){const n=e.getPreviousSibling();(null===n||Gs(n))&&(l=!0,c=t.getElementByKey(e.__key));}}if(l){const n=t.getElementByKey(s.__key);return null===r&&(t._blockCursorElement=r=function(t){const e=t.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=e.blockCursor;if(void 0!==r){if("string"==typeof r){const t=d$5(r);r=e.blockCursor=t;}void 0!==r&&n.classList.add(...r);}return n}(t._config)),e.style.caretColor="transparent",void(null===c?n.appendChild(r):n.insertBefore(r,c))}}null!==r&&Qs(r,t,e);}(t,r,l);}finally{null!==g&&g.observe(r,jr),Wr=f,Br=a;}}null!==_&&function(t,e,n,r,i){const s=Array.from(t._listeners.mutation),o=s.length;for(let t=0;t<o;t++){const[o,l]=s[t],c=e.get(l);void 0!==c&&o(c,{dirtyLeaves:r,prevEditorState:i,updateTags:n});}}(t,_,v,p,s),lr(l)||null===l||null!==o&&o.is(l)||t.dispatchCommand(le,void 0);const b=t._pendingDecorators;null!==b&&(t._decorators=b,t._pendingDecorators=null,ii("decorator",t,!0,b)),function(t,e,n){const r=ss(e),i=ss(n);r!==i&&ii("textcontent",t,!0,i);}(t,e||s,n),ii("update",t,!0,{dirtyElements:y,dirtyLeaves:p,editorState:n,normalizedNodes:S,prevEditorState:e||s,tags:v}),function(t,e){if(t._deferred=[],0!==e.length){const n=t._updating;t._updating=!0;try{for(let t=0;t<e.length;t++)e[t]();}finally{t._updating=n;}}}(t,C),function(t){const e=t._updates;if(0!==e.length){const n=e.shift();if(n){const[e,r]=n;li(t,e,r);}}}(t);}function ii(t,e,n,...r){const i=e._updating;e._updating=n;try{const n=Array.from(e._listeners[t]);for(let t=0;t<n.length;t++)n[t].apply(null,r);}finally{e._updating=i;}}function si(t,e,n){if(!1===t._updating||Wr!==t){let r=!1;return t.update((()=>{r=si(t,e,n);})),r}const r=ds(t);for(let i=4;i>=0;i--)for(let s=0;s<r.length;s++){const o=r[s]._commands.get(e);if(void 0!==o){const e=o[i];if(void 0!==e){const r=Array.from(e),i=r.length;for(let e=0;e<i;e++)if(!0===r[e](n,t))return !0}}}return !1}function oi(e,n){const r=e._updates;let i=n||!1;for(;0!==r.length;){const n=r.shift();if(n){const[r,s]=n;let o;if(void 0!==s){if(o=s.onUpdate,s.skipTransforms&&(i=!0),s.discrete){const n=e._pendingEditorState;null===n&&t$2(191),n._flushSync=!0;}o&&e._deferred.push(o),Zr(e,s.tag);}r();}}return i}function li(e,n,r){const i=e._updateTags;let s,o=!1,l=!1;void 0!==r&&(s=r.onUpdate,Zr(e,r.tag),o=r.skipTransforms||!1,l=r.discrete||!1),s&&e._deferred.push(s);const c=e._editorState;let a=e._pendingEditorState,u=!1;(null===a||a._readOnly)&&(a=e._pendingEditorState=yi(a||c),u=!0),a._flushSync=l;const f=Br,d=Kr,h=Wr,g=e._updating;Br=a,Kr=!1,e._updating=!0,Wr=e;const _=e._headless||null===e.getRootElement();try{u&&(_?null!==c._selection&&(a._selection=c._selection.clone()):a._selection=function(t,e){const n=t.getEditorState()._selection,r=Xs(Rs(t));return lr(n)||null==n?br(n,r,t,e):n.clone()}(e,r&&r.event||null));const i=e._compositionKey;n(),o=oi(e,o),function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(lr(r)){const t=r.anchor,e=r.focus;let i;if("text"===t.type&&(i=t.getNode(),i.selectionTransform(n,r)),"text"===e.type){const t=e.getNode();i!==t&&t.selectionTransform(n,r);}}}(a,e),e._dirtyType!==m$6&&(o?function(t,e){const n=e._dirtyLeaves,r=t._nodeMap;for(const t of n){const e=r.get(t);Xn(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&vt$2(e);}}(a,e):function(t,e){const n=e._dirtyLeaves,r=e._dirtyElements,i=t._nodeMap,s=Zi(),o=new Map;let l=n,c=l.size,a=r,u=a.size;for(;c>0||u>0;){if(c>0){e._dirtyLeaves=new Set;for(const t of l){const r=i.get(t);Xn(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&vt$2(r),void 0!==r&&Yr(r,s)&&Xr(e,r,o),n.add(t);}if(l=e._dirtyLeaves,c=l.size,c>0){Jr++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(const t of a){const n=t[0],l=t[1];if("root"!==n&&!l)continue;const c=i.get(n);void 0!==c&&Yr(c,s)&&Xr(e,c,o),r.set(n,l);}l=e._dirtyLeaves,c=l.size,a=e._dirtyElements,u=a.size,Jr++;}e._dirtyLeaves=n,e._dirtyElements=r;}(a,e),oi(e),function(t,e,n,r){const i=t._nodeMap,s=e._nodeMap,o=[];for(const[t]of r){const e=s.get(t);void 0!==e&&(e.isAttached()||(di(e)&&Y$3(e,t,i,s,o,r),i.has(t)||r.delete(t),o.push(t)));}for(const t of o)s.delete(t);for(const t of n){const e=s.get(t);void 0===e||e.isAttached()||(i.has(t)||n.delete(t),s.delete(t));}}(c,a,e._dirtyLeaves,e._dirtyElements));i!==e._compositionKey&&(a._flushSync=!0);const s=a._selection;if(lr(s)){const e=a._nodeMap,n=s.anchor.key,r=s.focus.key;void 0!==e.get(n)&&void 0!==e.get(r)||t$2(19);}else ar(s)&&0===s._nodes.size&&(a._selection=null);}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=c,e._dirtyType=x$8,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void ri(e)}finally{Br=f,Kr=d,Wr=h,e._updating=g,Jr=0;}const p=e._dirtyType!==m$6||e._deferred.length>0||function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(null!==r){if(r.dirty||!r.is(n))return !0}else if(null!==n)return !0;return !1}(a,e);p?a._flushSync?(a._flushSync=!1,ri(e)):u&&zi((()=>{ri(e);})):(a._flushSync=!1,u&&(i.clear(),e._deferred=[],e._pendingEditorState=null));}function ci(t,e,n){t._updating?Wr===t?e():t._updates.push([e,n]):li(t,e,n);}class ai{constructor(t,e,n){this.element=t,this.before=e||null,this.after=n||null;}withBefore(t){return new ai(this.element,t,this.after)}withAfter(t){return new ai(this.element,this.before,t)}withElement(t){return new ai(t,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return null!==n&&n.parentElement!==this.element&&t$2(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&t$2(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&t$2(224),this.element.replaceChild(e,n),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(null===t)this.removeManagedLineBreak();else {const e="decorator"===t&&(l$4||o$4);this.insertManagedLineBreak(e);}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const e=this.element,n="IMG"===t.nodeName?t.nextSibling:null;n&&e.removeChild(n),e.removeChild(t),e.__lexicalLineBreak=void 0;}}insertManagedLineBreak(t){const e=this.getManagedLineBreak();if(e){if(t===("IMG"===e.nodeName))return;this.removeManagedLineBreak();}const n=this.element,r=this.before,i=document.createElement("br");if(n.insertBefore(i,r),t){const t=document.createElement("img");t.setAttribute("data-lexical-linebreak","true"),t.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",t.alt="",n.insertBefore(t,i),n.__lexicalLineBreak=t;}else n.__lexicalLineBreak=i;}getFirstChildOffset(){let t=0;for(let e=this.after;null!==e;e=e.previousSibling)t++;return t}resolveChildIndex(t,e,n,r){if(n===this.element){const e=this.getFirstChildOffset();return [t,Math.min(e+t.getChildrenSize(),Math.max(e,r))]}const i=ui(e,n);i.push(r);const s=ui(e,this.element);let o=t.getIndexWithinParent();for(let t=0;t<s.length;t++){const e=i[t],n=s[t];if(void 0===e||e<n)break;if(e>n){o+=1;break}}return [t.getParentOrThrow(),o]}}function ui(e,n){const r=[];let i=n;for(;i!==e&&null!==i;i=n.parentNode){let t=0;for(let e=i.previousSibling;null!==e;e=e.previousSibling)t++;r.push(t);}return i!==e&&t$2(225),r.reverse()}class fi extends Pn{constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle="";}afterCloneFrom(t){super.afterCloneFrom(t),this.__first=t.__first,this.__last=t.__last,this.__size=t.__size,this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle;}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return H$4[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getChildrenKeys(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e.__key),e=e.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const t=Hr()._dirtyElements;return null!==t&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),e=this.getParentOrThrow().getLastChild();return null!==e&&e.is(t)}getAllTextNodes(){const t=[];let e=this.getFirstChild();for(;null!==e;){if(Xn(e)&&t.push(e),di(e)){const n=e.getAllTextNodes();t.push(...n);}e=e.getNextSibling();}return t}getFirstDescendant(){let t=this.getFirstChild();for(;di(t);){const e=t.getFirstChild();if(null===e)break;t=e;}return t}getLastDescendant(){let t=this.getLastChild();for(;di(t);){const e=t.getLastChild();if(null===e)break;t=e;}return t}getDescendantByIndex(t){const e=this.getChildren(),n=e.length;if(t>=n){const t=e[n-1];return di(t)&&t.getLastDescendant()||t||null}const r=e[t];return di(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const t=this.getLatest().__first;return null===t?null:ts(t)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&t$2(45,this.__key),e}getLastChild(){const t=this.getLatest().__last;return null===t?null:ts(t)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&t$2(96,this.__key),e}getChildAtIndex(t){const e=this.getChildrenSize();let n,r;if(t<e/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=t;){if(r===t)return n;n=n.getNextSibling(),r++;}return null}for(n=this.getLastChild(),r=e-1;null!==n&&r>=t;){if(r===t)return n;n=n.getPreviousSibling(),r--;}return null}getTextContent(){let t="";const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContent(),di(i)&&r!==n-1&&!i.isInline()&&(t+=W$3);}return t}getTextContentSize(){let t=0;const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContentSize(),di(i)&&r!==n-1&&!i.isInline()&&(t+=W$3.length);}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(""!==t){const e=q$4[t];return !!(this.getFormat()&e)}return !1}hasTextFormat(t){const e=V$3[t];return !!(this.getTextFormat()&e)}getFormatFlags(t,e){return qi(this.getLatest().__textFormat,t,e)}getTextStyle(){return this.getLatest().__textStyle}select(t,e){Vr();const n=Tr();let r=t,i=e;const s=this.getChildrenSize();if(!this.canBeEmpty())if(0===t&&0===e){const t=this.getFirstChild();if(Xn(t)||di(t))return t.select(0,0)}else if(!(void 0!==t&&t!==s||void 0!==e&&e!==s)){const t=this.getLastChild();if(Xn(t)||di(t))return t.select()}void 0===r&&(r=s),void 0===i&&(i=s);const o=this.__key;return lr(n)?(n.anchor.set(o,r,"element"),n.focus.set(o,i,"element"),n.dirty=!0,n):Sr(o,r,o,i,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach((t=>t.remove())),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const e=this.getWritable();return e.__dir=t,e}setFormat(t){return this.getWritable().__format=""!==t?q$4[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const e=this.getWritable();return e.__textFormat=t,e}setTextStyle(t){const e=this.getWritable();return e.__textStyle=t,e}setIndent(t){return this.getWritable().__indent=t,this}splice(e,n,r){const i=r.length,s=this.getChildrenSize(),o=this.getWritable();e+n<=s||t$2(226,String(e),String(n),String(s));const l=o.__key,c=[],a=[],u=this.getChildAtIndex(e+n);let f=null,d=s-n+i;if(0!==e)if(e===s)f=this.getLastChild();else {const t=this.getChildAtIndex(e);null!==t&&(f=t.getPreviousSibling());}if(n>0){let e=null===f?this.getFirstChild():f.getNextSibling();for(let r=0;r<n;r++){null===e&&t$2(100);const n=e.getNextSibling(),r=e.__key;Qi(e.getWritable()),a.push(r),e=n;}}let h=f;for(let e=0;e<i;e++){const n=r[e];null!==h&&n.is(h)&&(f=h=h.getPreviousSibling());const i=n.getWritable();i.__parent===l&&d--,Qi(i);const s=n.__key;if(null===h)o.__first=s,i.__prev=null;else {const t=h.getWritable();t.__next=s,i.__prev=t.__key;}n.__key===l&&t$2(76),i.__parent=l,c.push(s),h=n;}if(e+n===s){if(null!==h){h.getWritable().__next=null,o.__last=h.__key;}}else if(null!==u){const t=u.getWritable();if(null!==h){const e=h.getWritable();t.__prev=h.__key,e.__next=u.__key;}else t.__prev=null;}if(o.__size=d,a.length){const t=Tr();if(lr(t)){const e=new Set(a),n=new Set(c),{anchor:r,focus:i}=t;hi(r,e,n)&&Pr(r,r.getNode(),this,f,u),hi(i,e,n)&&Pr(i,i.getNode(),this,f,u),0!==d||this.canBeEmpty()||$s(this)||this.remove();}}return o}getDOMSlot(t){return new ai(t)}exportDOM(t){const{element:e}=super.exportDOM(t);if(eo(e)){const t=this.getIndent();t>0&&(e.style.paddingInlineStart=40*t+"px");const n=this.getDirection();n&&(e.dir=n);}return {element:e}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},e=this.getTextFormat(),n=this.getTextStyle();return 0!==e&&(t.textFormat=e),""!==n&&(t.textStyle=n),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,e){return null}canIndent(){return !0}collapseAtStart(t){return !1}excludeFromCopy(t){return !1}canReplaceWith(t){return !0}canInsertAfter(t){return !0}canBeEmpty(){return !0}canInsertTextBefore(){return !0}canInsertTextAfter(){return !0}isInline(){return !1}isShadowRoot(){return !1}canMergeWith(t){return !1}extractWithChild(t,e,n){return !1}canMergeWhenEmpty(){return !1}reconcileObservedMutation(t,e){const n=this.getDOMSlot(t);let r=n.getFirstChild();for(let t=this.getFirstChild();t;t=t.getNextSibling()){const i=e.getElementByKey(t.getKey());null!==i&&(null==r?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling);}}}function di(t){return t instanceof fi}function hi(t,e,n){let r=t.getNode();for(;r;){const t=r.__key;if(e.has(t)&&!n.has(t))return !0;r=r.getParent();}return !1}class gi extends Pn{decorate(e,n){t$2(47);}isIsolated(){return !1}isInline(){return !0}isKeyboardSelectable(){return !0}}function _i(t){return t instanceof gi}class pi extends fi{static getType(){return "root"}static clone(){return new pi}constructor(){super("root"),this.__cachedText=null;}getTopLevelElementOrThrow(){t$2(51);}getTextContent(){const t=this.__cachedText;return !$r()&&Hr()._dirtyType!==m$6||null===t?super.getTextContent():t}remove(){t$2(52);}replace(e){t$2(53);}insertBefore(e){t$2(54);}insertAfter(e){t$2(55);}updateDOM(t,e){return !1}append(...e){for(let n=0;n<e.length;n++){const r=e[n];di(r)||_i(r)||t$2(56);}return super.append(...e)}static importJSON(t){return os().updateFromJSON(t)}collapseAtStart(){return !0}}function mi(t){return t instanceof pi}function yi(t){return new vi(new Map(t._nodeMap))}function xi(){return new vi(new Map([["root",new pi]]))}function Si(e){const n=e.exportJSON(),r=e.constructor;if(n.type!==r.getType()&&t$2(130,r.name),di(e)){const i=n.children;Array.isArray(i)||t$2(59,r.name);const s=e.getChildren();for(let t=0;t<s.length;t++){const e=Si(s[t]);i.push(e);}}return n}class vi{constructor(t,e){this._nodeMap=t,this._selection=e||null,this._flushSync=!1,this._readOnly=!1;}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(t,e){return ni(e&&e.editor||null,this,t)}clone(t){const e=new vi(this._nodeMap,void 0===t?this._selection:t);return e._readOnly=!0,e}toJSON(){return ni(null,this,(()=>({root:Si(os())})))}}class Ci extends fi{static getType(){return "artificial"}createDOM(t){return document.createElement("div")}}class ki extends fi{static getType(){return "paragraph"}static clone(t){return new ki(t.__key)}createDOM(t){const e=document.createElement("p"),n=Ts(t.theme,"paragraph");if(void 0!==n){e.classList.add(...n);}return e}updateDOM(t,e,n){return !1}static importDOM(){return {p:t=>({conversion:bi,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(eo(e)){this.isEmpty()&&e.append(document.createElement("br"));const t=this.getFormatType();e.style.textAlign=t;}return {element:e}}static importJSON(t){return Ti().updateFromJSON(t)}exportJSON(){return {...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(t,e){const n=Ti();n.setTextFormat(t.format),n.setTextStyle(t.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,e),n}collapseAtStart(){const t=this.getChildren();if(0===t.length||Xn(t[0])&&""===t[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return !1}}function bi(t){const e=Ti();return t.style&&(e.setFormat(t.style.textAlign),go(t,e)),{node:e}}function Ti(){return Us(new ki)}function wi(t){return t instanceof ki}const Ni=0,Ei=1,Pi=2,Fi=3,Li=4;function Ai(t,e,n,r){const i=t._keyToDOMMap;i.clear(),t._editorState=xi(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=m$6,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;null!==s&&(s.disconnect(),t._observer=null),null!==e&&(e.textContent=""),null!==n&&(n.textContent="",i.set("root",n));}function Oi(t){const e=t||{},n=Qr(),r=e.theme||{},i=void 0===t?n:e.parentEditor||null,s=e.disableEvents||!1,o=xi(),l=e.namespace||(null!==i?i._config.namespace:hs()),c=e.editorState,a=[pi,Rn,Fn,Zn,ki,Ci,...e.nodes||[]],{onError:u,html:f}=e,d=void 0===e.editable||e.editable;let h;if(void 0===t&&null!==n)h=n._nodes;else {h=new Map;for(let t=0;t<a.length;t++){let e=a[t],n=null,r=null;if("function"!=typeof e){const t=e;e=t.replace,n=t.with,r=t.withKlass||null;}const i=e.getType(),s=e.transform(),o=new Set;null!==s&&o.add(s),h.set(i,{exportDOM:f&&f.export?f.export.get(e):void 0,klass:e,replace:n,replaceWithKlass:r,transforms:o});}}const g=new Mi(o,i,h,{disableEvents:s,namespace:l,theme:r},u||console.error,function(t,e){const n=new Map,r=new Set,i=t=>{Object.keys(t).forEach((e=>{let r=n.get(e);void 0===r&&(r=[],n.set(e,r)),r.push(t[e]);}));};return t.forEach((t=>{const e=t.klass.importDOM;if(null==e||r.has(e))return;r.add(e);const n=e.call(t.klass);null!==n&&i(n);})),e&&i(e),n}(h,f?f.import:void 0),d);return void 0!==c&&(g._pendingEditorState=c,g._dirtyType=x$8),g}class Mi{constructor(t,e,n,r,i,s,o){this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=m$6,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=hs(),this._onError=i,this._htmlConversions=s,this._editable=o,this._headless=null!==e&&e._headless,this._window=null,this._blockCursorElement=null;}isComposing(){return null!=this._compositionKey}registerUpdateListener(t){const e=this._listeners.update;return e.add(t),()=>{e.delete(t);}}registerEditableListener(t){const e=this._listeners.editable;return e.add(t),()=>{e.delete(t);}}registerDecoratorListener(t){const e=this._listeners.decorator;return e.add(t),()=>{e.delete(t);}}registerTextContentListener(t){const e=this._listeners.textcontent;return e.add(t),()=>{e.delete(t);}}registerRootListener(t){const e=this._listeners.root;return t(this._rootElement,null),e.add(t),()=>{t(null,this._rootElement),e.delete(t);}}registerCommand(e,n,r){void 0===r&&t$2(35);const i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=i.get(e);void 0===s&&t$2(36,String(e));const o=s[r];return o.add(n),()=>{o.delete(n),s.every((t=>0===t.size))&&i.delete(e);}}registerMutationListener(t,e,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;i.set(e,r);const s=n&&n.skipInitialization;return void 0!==s&&s||this.initializeMutationListener(e,r),()=>{i.delete(e);}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return void 0===n&&t$2(37,e.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,e){const n=this._editorState,r=fo(n).get(e.getType());if(!r)return;const i=new Map;for(const t of r.keys())i.set(t,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])});}registerNodeTransformToKlass(t,e){const n=this.getRegisteredNode(t);return n.transforms.add(e),n}registerNodeTransform(t,e){const n=this.registerNodeTransformToKlass(t,e),r=[n],i=n.replaceWithKlass;if(null!=i){const t=this.registerNodeTransformToKlass(i,e);r.push(t);}return function(t,e){const n=fo(t.getEditorState()),r=[];for(const t of e){const e=n.get(t);e&&r.push(e);}if(0===r.length)return;t.update((()=>{for(const t of r)for(const e of t.keys()){const t=ts(e);t&&t.markDirty();}}),null===t._pendingEditorState?{tag:"history-merge"}:void 0);}(this,r.map((t=>t.klass.getType()))),()=>{r.forEach((t=>t.transforms.delete(e)));}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,e){return Ls(this,t,e)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const e=this._rootElement;if(t!==e){const n=Ts(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=t,Ai(this,e,t,r),null!==e&&(this._config.disableEvents||Nn(e),null!=n&&e.classList.remove(...n)),null!==t){const e=Ks(t),r=t.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=e,this._dirtyType=x$8,at$1(this),this._updateTags.add("history-merge"),ri(this),this._config.disableEvents||function(t,e){const n=t.ownerDocument,r=on.get(n);(void 0===r||r<1)&&n.addEventListener("selectionchange",bn),on.set(n,(r||0)+1),t.__lexicalEditor=e;const i=Cn(t);for(let n=0;n<tn.length;n++){const[r,s]=tn[n],o="function"==typeof s?t=>{wn(t)||(Tn(t),(e.isEditable()||"click"===r)&&s(t,e));}:t=>{if(wn(t))return;Tn(t);const n=e.isEditable();switch(r){case"cut":return n&&Ls(e,je,t);case"copy":return Ls(e,Je,t);case"paste":return n&&Ls(e,ge,t);case"dragstart":return n&&Ls(e,We,t);case"dragover":return n&&Ls(e,Ke,t);case"dragend":return n&&Ls(e,Re,t);case"focus":return n&&Ls(e,Ge,t);case"blur":return n&&Ls(e,Qe,t);case"drop":return n&&Ls(e,ze,t)}};t.addEventListener(r,o),i.push((()=>{t.removeEventListener(r,o);}));}}(t,this),null!=n&&t.classList.add(...n);}else this._window=null,this._updateTags.add("history-merge"),ri(this);ii("root",this,!1,t,e);}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&t$2(38);let r=e;r._readOnly&&(r=yi(e),r._selection=e._selection?e._selection.clone():null),ct$1(this);const i=this._pendingEditorState,s=this._updateTags,o=void 0!==n?n.tag:null;null===i||i.isEmpty()||(null!=o&&s.add(o),ri(this)),this._pendingEditorState=r,this._dirtyType=x$8,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=o&&s.add(o),this._updating||ri(this);}parseEditorState(t,e){return function(t,e,n){const r=xi(),i=Br,s=Kr,o=Wr,l=e._dirtyElements,c=e._dirtyLeaves,a=e._cloneNotNeeded,u=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._cloneNotNeeded=new Set,e._dirtyType=0,Br=r,Kr=!1,Wr=e;try{const i=e._nodes;ei(t.root,i),n&&n(),r._readOnly=!0;}catch(t){t instanceof Error&&e._onError(t);}finally{e._dirtyElements=l,e._dirtyLeaves=c,e._cloneNotNeeded=a,e._dirtyType=u,Br=i,Kr=s,Wr=o;}return r}("string"==typeof t?JSON.parse(t):t,this,e)}read(t){return ri(this),this.getEditorState().read(t,{editor:this})}update(t,e){!function(t,e,n){t._updating?t._updates.push([e,n]):li(t,e,n);}(this,t,e);}focus(t,e={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),ci(this,(()=>{const r=Tr(),i=os();null!==r?r.dirty=!0:0!==i.getChildrenSize()&&("rootStart"===e.defaultSelection?i.selectStart():i.selectEnd()),zs("focus"),Bs((()=>{n.removeAttribute("autocapitalize"),t&&t();}));})),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"));}blur(){const t=this._rootElement;null!==t&&t.blur();const e=Xs(this._window);null!==e&&e.removeAllRanges();}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,ii("editable",this,!0,t));}toJSON(){return {editorState:this._editorState.toJSON()}}}Mi.version="0.27.2+prod.esm";let Ii=1;function Di(){Ii=1;}const zi="function"==typeof queueMicrotask?queueMicrotask:t=>{Promise.resolve().then(t);};function Bi(t){const e=document.activeElement;if(!eo(e))return !1;const n=e.nodeName;return _i(rs(t))&&("INPUT"===n||"TEXTAREA"===n||"true"===e.contentEditable&&null==Ji(e))}function Wi(t,e,n){const r=t.getRootElement();try{return null!==r&&r.contains(e)&&r.contains(n)&&null!==e&&!Bi(e)&&Ri(e)===t}catch(t){return !1}}function Ki(t){return t instanceof Mi}function Ri(t){let e=t;for(;null!=e;){const t=Ji(e);if(Ki(t))return t;e=Ms(e);}return null}function Ji(t){return t?t.__lexicalEditor:null}function ji(t){return t.isToken()||t.isSegmented()}function $i(t){return no(t)&&t.nodeType===g$7}function Vi(t){return no(t)&&t.nodeType===_$6}function Ui(t){let e=t;for(;null!=e;){if($i(e))return e;e=e.firstChild;}return null}function qi(t,e,n){const r=V$3[e];if(null!==n&&(t&r)==(n&r))return t;let i=t^r;return "subscript"===e?i&=~V$3.superscript:"superscript"===e?i&=~V$3.subscript:"lowercase"===e?(i&=~V$3.uppercase,i&=~V$3.capitalize):"uppercase"===e?(i&=~V$3.lowercase,i&=~V$3.capitalize):"capitalize"===e&&(i&=~V$3.lowercase,i&=~V$3.uppercase),i}function Hi(t){return Xn(t)||On(t)||_i(t)}function Gi(t,e){if(null!=e)return void(t.__key=e);Vr(),Ur();const n=Hr(),r=qr(),i=""+Ii++;r._nodeMap.set(i,t),di(t)?n._dirtyElements.set(i,!0):n._dirtyLeaves.add(i),n._cloneNotNeeded.add(i),n._dirtyType=y$6,t.__key=i;}function Qi(t){const e=t.getParent();if(null!==e){const n=t.getWritable(),r=e.getWritable(),i=t.getPreviousSibling(),s=t.getNextSibling();if(null===i)if(null!==s){const t=s.getWritable();r.__first=s.__key,t.__prev=null;}else r.__first=null;else {const t=i.getWritable();if(null!==s){const e=s.getWritable();e.__prev=t.__key,t.__next=e.__key;}else t.__next=null;n.__prev=null;}if(null===s)if(null!==i){const t=i.getWritable();r.__last=i.__key,t.__next=null;}else r.__last=null;else {const t=s.getWritable();if(null!==i){const e=i.getWritable();e.__next=t.__key,t.__prev=e.__key;}else t.__prev=null;n.__next=null;}r.__size--,n.__parent=null;}}function Xi(t){Ur();const e=t.getLatest(),n=e.__parent,r=qr(),i=Hr(),s=r._nodeMap,o=i._dirtyElements;null!==n&&function(t,e,n){let r=t;for(;null!==r;){if(n.has(r))return;const t=e.get(r);if(void 0===t)break;n.set(r,!1),r=t.__parent;}}(n,s,o);const l=e.__key;i._dirtyType=y$6,di(t)?o.set(l,!0):i._dirtyLeaves.add(l);}function Yi(t){Vr();const e=Hr(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,null!==n){const t=ts(n);null!==t&&t.getWritable();}if(null!==t){const e=ts(t);null!==e&&e.getWritable();}}}function Zi(){if($r())return null;return Hr()._compositionKey}function ts(t,e){const n=(e||qr())._nodeMap.get(t);return void 0===n?null:n}function es(t,e){const n=ns(t,Hr());return void 0!==n?ts(n,e):null}function ns(t,e){return t[`__lexicalKey_${e._key}`]}function rs(t,e){let n=t;for(;null!=n;){const t=es(n,e);if(null!==t)return t;n=Ms(n);}return null}function is(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function ss(t){return t.read((()=>os().getTextContent()))}function os(){return ls(qr())}function ls(t){return t._nodeMap.get("root")}function cs(t){Vr();const e=qr();null!==t&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t;}function as(t){const e=Hr(),n=function(t,e){let n=t;for(;null!=n;){const t=ns(n,e);if(void 0!==t)return t;n=Ms(n);}return null}(t,e);if(null===n){return t===e.getRootElement()?ts("root"):null}return ts(n)}function us(t,e){return e?t.getTextContentSize():0}function fs(t){return /[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function ds(t){const e=[];let n=t;for(;null!==n;)e.push(n),n=n._parentEditor;return e}function hs(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function gs(t){return $i(t)?t.nodeValue:null}function _s(t,e,n){const r=Xs(Rs(e));if(null===r)return;const i=r.anchorNode;let{anchorOffset:s,focusOffset:o}=r;if(null!==i){let e=gs(i);const r=rs(i);if(null!==e&&Xn(r)){if(e===B$4&&n){const t=n.length;e=n,s=t,o=t;}null!==e&&ps(r,e,s,o,t);}}}function ps(t,e,n,r,i){let s=t;if(s.isAttached()&&(i||!s.isDirty())){const c=s.isComposing();let a=e;(c||i)&&e[e.length-1]===B$4&&(a=e.slice(0,-1));const u=s.getTextContent();if(i||a!==u){if(""===a){if(Yi(null),o$4||l$4||f$5)s.remove();else {const t=Hr();setTimeout((()=>{t.update((()=>{s.isAttached()&&s.remove();}));}),20);}return}const e=s.getParent(),i=wr(),u=s.getTextContentSize(),d=Zi(),h=s.getKey();if(s.isToken()||null!==d&&h===d&&!c||lr(i)&&(null!==e&&!e.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===t.__key&&0===i.anchor.offset&&!s.canInsertTextBefore()&&!c||i.focus.key===t.__key&&i.focus.offset===u&&!s.canInsertTextAfter()&&!c))return void s.markDirty();const g=Tr();if(!lr(g)||null===n||null===r)return void s.setTextContent(a);if(g.setTextNodeRange(s,n,s,r),s.isSegmented()){const t=Qn(s.getTextContent());s.replace(t),s=t;}s.setTextContent(a);}}}function ms(t){return "ArrowLeft"===t}function ys(t){return "ArrowRight"===t}function xs(t,e){return r$1?t:e}function Ss(t){return "Enter"===t}function vs(t){return "Backspace"===t}function Cs(t){return "Delete"===t}function ks(t,e,n){return "a"===t.toLowerCase()&&xs(e,n)}function bs(t){const e=os();if(lr(t)){const e=t.anchor,n=t.focus,r=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();return e.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Ct$2(t),t}{const t=e.select(0,e.getChildrenSize());return cs(Ct$2(t)),t}}function Ts(t,e){void 0===t.__lexicalClassNameCache&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(void 0!==r)return r;const i=t[e];if("string"==typeof i){const t=d$5(i);return n[e]=t,t}return i}function ws(e,n,r,i,s){if(0===r.size)return;const o=i.__type,l=i.__key,c=n.get(o);void 0===c&&t$2(33,o);const a=c.klass;let u=e.get(a);void 0===u&&(u=new Map,e.set(a,u));const f=u.get(l),d="destroyed"===f&&"created"===s;(void 0===f||d)&&u.set(l,d?"updated":s);}function Ns(t){const e=t.getType(),n=qr();if(n._readOnly){const t=fo(n).get(e);return t?Array.from(t.values()):[]}const r=n._nodeMap,i=[];for(const[,n]of r)n instanceof t&&n.__type===e&&n.isAttached()&&i.push(n);return i}function Es(t,e,n){const r=t.getParent();let i=n,s=t;return null!==r&&(e&&0===n?(i=s.getIndexWithinParent(),s=r):e||n!==s.getChildrenSize()||(i=s.getIndexWithinParent()+1,s=r)),s.getChildAtIndex(e?i-1:i)}function Ps(t,e){const n=t.offset;if("element"===t.type){return Es(t.getNode(),e,n)}{const r=t.getNode();if(e&&0===n||!e&&n===r.getTextContentSize()){const t=e?r.getPreviousSibling():r.getNextSibling();return null===t?Es(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):t}}return null}function Fs(t){const e=Rs(t).event,n=e&&e.inputType;return "insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function Ls(t,e,n){return si(t,e,n)}function As(t){return !mi(t)&&!t.isLastChild()&&!t.isInline()}function Os(e,n){const r=e._keyToDOMMap.get(n);return void 0===r&&t$2(75,n),r}function Ms(t){const e=t.assignedSlot||t.parentElement;return ro(e)?e.host:e}function Is(t){return Vi(t)?t:eo(t)?t.ownerDocument:null}function Ds(t){return Hr()._updateTags.has(t)}function zs(t){Vr();Hr()._updateTags.add(t);}function Bs(t){Vr();Hr()._deferred.push(t);}function Ws(t,e){let n=t.getParent();for(;null!==n;){if(n.is(e))return !0;n=n.getParent();}return !1}function Ks(t){const e=Is(t);return e?e.defaultView:null}function Rs(e){const n=e._window;return null===n&&t$2(78),n}function Js(t){return di(t)&&t.isInline()||_i(t)&&t.isInline()}function js(t){let e=t.getParentOrThrow();for(;null!==e;){if($s(e))return e;e=e.getParentOrThrow();}return e}function $s(t){return mi(t)||di(t)&&t.isShadowRoot()}function Vs(t){const e=t.constructor.clone(t);return Gi(e,null),e}function Us(e){const n=Hr(),r=e.constructor.getType(),i=n._nodes.get(r);void 0===i&&t$2(200,e.constructor.name,r);const{replace:s,replaceWithKlass:o}=i;if(null!==s){const n=s(e),i=n.constructor;return null!==o?n instanceof o||t$2(201,o.name,o.getType(),i.name,i.getType(),e.constructor.name,r):n instanceof e.constructor&&i!==e.constructor||t$2(202,i.name,i.getType(),e.constructor.name,r),n.__key===e.__key&&t$2(203,e.constructor.name,r,i.name,i.getType()),n}return e}function qs(e,n){!mi(e.getParent())||di(n)||_i(n)||t$2(99);}function Hs(e){const n=ts(e);return null===n&&t$2(63,e),n}function Gs(t){return (_i(t)||di(t)&&!t.canBeEmpty())&&!t.isInline()}function Qs(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;null!==r&&r.removeChild(t);}function Xs(t){return e$3?(t||window).getSelection():null}function Ys(t){const e=Ks(t);return e?e.getSelection():null}function Zs(e,n){let r=e.getChildAtIndex(n);null==r&&(r=e),$s(e)&&t$2(102);const i=e=>{const n=e.getParentOrThrow(),s=$s(n),o=e!==r||s?Vs(e):e;if(s)return di(e)&&di(o)||t$2(133),e.insertAfter(o),[e,o,o];{const[t,r,s]=i(n),l=e.getNextSiblings();return s.append(o,...l),[t,r,o]}},[s,o]=i(r);return [s,o]}function to(t){return eo(t)&&"A"===t.tagName}function eo(t){return no(t)&&t.nodeType===h$6}function no(t){return "object"==typeof t&&null!==t&&"nodeType"in t&&"number"==typeof t.nodeType}function ro(t){return no(t)&&t.nodeType===p$4}function io(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==t.nodeName.match(e)}function so(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==t.nodeName.match(e)}function oo(t){if(_i(t)&&!t.isInline())return !0;if(!di(t)||$s(t))return !1;const e=t.getFirstChild(),n=null===e||On(e)||Xn(e)||e.isInline();return !t.isInline()&&!1!==t.canBeEmpty()&&n}function lo(t,e){let n=t;for(;null!==n&&null!==n.getParent()&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}function co(){return Hr()}const ao=new WeakMap,uo=new Map;function fo(e){if(!e._readOnly&&e.isEmpty())return uo;e._readOnly||t$2(192);let n=ao.get(e);return n||(n=function(t){const e=new Map;for(const[n,r]of t._nodeMap){const t=r.__type;let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r);}return e}(e),ao.set(e,n)),n}function ho(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function go(t,e){const n=(parseInt(t.style.paddingInlineStart,10)||0)/40;e.setIndent(n);}function _o(t){t.__lexicalUnmanaged=!0;}function po(t){return !0===t.__lexicalUnmanaged}const mo={next:"previous",previous:"next"};class yo{constructor(t){this.origin=t;}[Symbol.iterator](){return $o({hasNext:No,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return Ao(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Ao(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,e){const n=this.getNodeAtCaret();return t.is(this.origin)||t.is(n)||(null===n?this.insert(t):n.replace(t,e)),this}splice(e,n,r="next"){const i=r===this.direction?n:Array.from(n).reverse();let s=this;const o=this.getParentAtCaret(),l=new Map;for(let t=s.getAdjacentCaret();null!==t&&l.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();l.set(e.getKey(),e);}for(const e of i){if(l.size>0){const n=s.getNodeAtCaret();if(n)if(l.delete(n.getKey()),l.delete(e.getKey()),n.is(e)||s.origin.is(e));else {const t=e.getParent();t&&t.is(o)&&e.remove(),n.replace(e);}else null===n&&t$2(263,Array.from(l).join(" "));}else s.insert(e);s=Ao(e,this.direction);}for(const t of l.values())t.remove();return this}}class xo extends yo{type="child";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Do(t,this.direction)}getParentCaret(t="root"){return Ao(Co(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=vo(this.direction);return Ao(this.getNodeAtCaret(),t)||Do(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof xo&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}}const So={root:mi,shadowRoot:$s};function vo(t){return mo[t]}function Co(t,e="root"){return So[e](t)?null:t}class ko extends yo{type="sibling";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Ao(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return di(this.origin)?Do(this.origin,this.direction):null}getParentCaret(t="root"){return Ao(Co(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=vo(this.direction);return Ao(this.getNodeAtCaret(),t)||Do(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof ko&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return (t instanceof ko||t instanceof bo)&&this.direction===t.direction&&this.origin.is(t.origin)}}class bo extends yo{type="text";constructor(t,e){super(t),this.offset=e;}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Oo(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return Ao(Co(this.getParentAtCaret(),t),this.direction)}getFlipped(){return Oo(this.origin,vo(this.direction),this.offset)}isSamePointCaret(t){return t instanceof bo&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return (t instanceof ko||t instanceof bo)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Ao(this.origin,this.direction)}}function To(t){return t instanceof bo}function wo(t){return t instanceof yo}function No(t){return t instanceof ko}function Eo(t){return t instanceof xo}const Po={next:class extends bo{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends bo{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},Fo={next:class extends ko{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends ko{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},Lo={next:class extends xo{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends xo{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function Ao(t,e){return t?new Fo[e](t):null}function Oo(t,e,n){return t?new Po[e](t,Mo(t,n)):null}function Mo(e,n){const r=e.getTextContentSize(),i="next"===n?r:"previous"===n?0:n;return i>=0&&i<=r||t$2(274,String(n),String(r)),i}function Io(t,e){return new Ko(t,e)}function Do(t,e){return di(t)?new Lo[e](t):null}function zo(t){return t&&t.getChildCaret()||t}function Bo(t){return t&&zo(t.getAdjacentCaret())}class Wo{type="node-caret-range";constructor(t,e,n){this.anchor=t,this.focus=e,this.direction=n;}getLatest(){const t=this.anchor.getLatest(),e=this.focus.getLatest();return t===this.anchor&&e===this.focus?this:new Wo(t,e,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=t=>{const e=this[t].getLatest();return To(e)?function(t,e){const{direction:n,origin:r}=t,i=Mo(r,"focus"===e?vo(n):n);return Io(t,i-t.offset)}(e,t):null},e=t("anchor"),n=t("focus");if(e&&n){const{caret:t}=e,{caret:r}=n;if(t.isSameNodeCaret(r))return [Io(t,r.offset-t.offset),null]}return [e,n]}iterNodeCarets(t="root"){const e=To(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=To(n),i=e=>e.isSameNodeCaret(n)?null:Bo(e)||e.getParentCaret(t);return $o({hasNext:t=>null!==t&&!(r&&n.isSameNodeCaret(t)),initial:e.isSameNodeCaret(n)?null:i(e),map:t=>t,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class Ko{type="slice";constructor(t,e){this.caret=t,this.distance=e;}getSliceIndices(){const{distance:t,caret:{offset:e}}=this,n=e+t;return n<e?[n,e]:[e,n]}getTextContent(){const[t,e]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,e)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:e}}=this,[n,r]=this.getSliceIndices(),i=t.getTextContent();return Oo(t.setTextContent(i.slice(0,n)+i.slice(r)),e,n)}}function Ro(t){return t instanceof Ko}function Jo(t){return jo(t,Ao(os(),t.direction))}function jo(e,n){return e.direction!==n.direction&&t$2(265),new Wo(e,n,e.direction)}function $o(t){const{initial:e,hasNext:n,step:r,map:i}=t;let s=e;return {[Symbol.iterator](){return this},next(){if(!n(s))return {done:!0,value:void 0};const t={done:!1,value:i(s)};return s=r(s),t}}}function Vo(e,n){const r=Go(e.origin,n.origin);switch(null===r&&t$2(275,e.origin.getKey(),n.origin.getKey()),r.type){case"same":{const t="text"===e.type,r="text"===n.type;return t&&r?function(t,e){return Math.sign(t-e)}(e.offset,n.offset):e.type===n.type?0:t?-1:r?1:"child"===e.type?-1:1}case"ancestor":return "child"===e.type?-1:1;case"descendant":return "child"===n.type?1:-1;case"branch":return Uo(r)}}function Uo(t){const{a:e,b:n}=t,r=e.__key,i=n.__key;let s=e,o=n;for(;s&&o;s=s.getNextSibling(),o=o.getNextSibling()){if(s.__key===i)return -1;if(o.__key===r)return 1}return null===s?1:-1}function qo(t,e){return e.is(t)}function Ho(t){return di(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Go(e,n){if(e.is(n))return {commonAncestor:e,type:"same"};const r=new Map;for(let[t,n]=Ho(e);t;n=t,t=t.getParent())r.set(t,n);for(let[i,s]=Ho(n);i;s=i,i=i.getParent()){const o=r.get(i);if(void 0!==o)return null===o?(qo(e,i)||t$2(276),{commonAncestor:i,type:"ancestor"}):null===s?(qo(n,i)||t$2(277),{commonAncestor:i,type:"descendant"}):((di(o)||qo(e,o))&&(di(s)||qo(n,s))&&i.is(o.getParent())&&i.is(s.getParent())||t$2(278),{a:o,b:s,commonAncestor:i,type:"branch"})}return null}function Qo(e,n){const{type:r,key:i,offset:s}=e,o=Hs(e.key);return "text"===r?(Xn(o)||t$2(266,o.getType(),i),Oo(o,n,s)):(di(o)||t$2(267,o.getType(),i),al(o,e.offset,n))}function Xo(e,n){const{origin:r,direction:i}=n,s="next"===i;To(n)?e.set(r.getKey(),n.offset,"text"):No(n)?Xn(r)?e.set(r.getKey(),Mo(r,i),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+(s?1:0),"element"):(Eo(n)&&di(r)||t$2(268),e.set(r.getKey(),s?0:r.getChildrenSize(),"element"));}function Yo(t){const e=Tr(),n=lr(e)?e:vr();return Zo(n,t),cs(n),n}function Zo(t,e){Xo(t.anchor,e.anchor),Xo(t.focus,e.focus);}function tl(t){const{anchor:e,focus:n}=t,r=Qo(e,"next"),i=Qo(n,"next"),s=Vo(r,i)<=0?"next":"previous";return jo(ll(r,s),ll(i,s))}function el(t){const{direction:e,origin:n}=t,r=Ao(n,vo(e)).getNodeAtCaret();return r?Ao(r,e):Do(n.getParentOrThrow(),e)}function nl(t,e="root"){const n=[t];for(let r=Eo(t)?t.getParentCaret(e):t.getSiblingCaret();null!==r;r=r.getParentCaret(e))n.push(el(r));return n}function rl(t){return !!t&&t.origin.isAttached()}function il(e,n="removeEmptySlices"){if(e.isCollapsed())return e;const r="root",i="next";let s=n;const o=cl(e,i),l=nl(o.anchor,r),c=nl(o.focus.getFlipped(),r),a=new Set,u=[];for(const t of o.iterNodeCarets(r))if(Eo(t))a.add(t.origin.getKey());else if(No(t)){const{origin:e}=t;di(e)&&!a.has(e.getKey())||u.push(e);}for(const t of u)t.remove();for(const t of o.getTextSlices()){if(!t)continue;const{origin:e}=t.caret,n=e.getTextContentSize(),r=el(Ao(e,i)),o=e.getMode();if(Math.abs(t.distance)===n&&"removeEmptySlices"===s||"token"===o&&0!==t.distance)r.remove();else if(0!==t.distance){s="removeEmptySlices";let e=t.removeTextSlice();const n=t.caret.origin;if("segmented"===o){const t=e.origin,n=Qn(t.getTextContent()).setStyle(t.getStyle()).setFormat(t.getFormat());r.replaceOrInsert(n),e=Oo(n,i,e.offset);}n.is(l[0].origin)&&(l[0]=e),n.is(c[0].origin)&&(c[0]=e.getFlipped());}}let f,d;for(const t of l)if(rl(t)){f=sl(t);break}for(const t of c)if(rl(t)){d=sl(t);break}const h=function(t,e,n){if(!t||!e)return null;const r=t.getParentAtCaret(),i=e.getParentAtCaret();if(!r||!i)return null;const s=r.getParents().reverse();s.push(r);const o=i.getParents().reverse();o.push(i);const l=Math.min(s.length,o.length);let c;for(c=0;c<l&&s[c]===o[c];c++);const a=(t,e)=>{let n;for(let r=c;r<t.length;r++){const i=t[r];if($s(i))return;!n&&e(i)&&(n=i);}return n},u=a(s,oo),f=u&&a(o,(t=>n.has(t.getKey())&&oo(t)));return u&&f?[u,f]:null}(f,d,a);if(h){const[t,e]=h;Do(t,"previous").splice(0,e.getChildren()),e.remove();}const g=[f,d,...l,...c].find(rl);if(g){const t=ll(sl(g),e.direction);return jo(t,t)}t$2(269,JSON.stringify(l.map((t=>t.origin.__key))));}function sl(t){const e=function(t){let e=t;for(;Eo(e);){const t=Bo(e);if(!Eo(t))break;e=t;}return e}(t.getLatest()),{direction:n}=e;if(Xn(e.origin))return To(e)?e:Oo(e.origin,n,n);const r=e.getAdjacentCaret();return No(r)&&Xn(r.origin)?Oo(r.origin,n,vo(n)):e}function ol(t){return To(t)&&t.offset!==Mo(t.origin,t.direction)}function ll(t,e){return t.direction===e?t:t.getFlipped()}function cl(t,e){return t.direction===e?t:jo(ll(t.focus,e),ll(t.anchor,e))}function al(t,e,n){let r=Do(t,"next");for(let t=0;t<e;t++){const t=r.getAdjacentCaret();if(null===t)break;r=t;}return ll(r,n)}function ul(t,e="root"){let n=0,r=t,i=Bo(r);for(;null===i;){if(n--,i=r.getParentCaret(e),!i)return null;r=i,i=Bo(r);}return i&&[i,n]}
|
|
94433
94433
|
|
|
94434
94434
|
var modProd$p = /*#__PURE__*/Object.freeze({
|
|
94435
94435
|
__proto__: null,
|
|
@@ -142141,27 +142141,3231 @@ var hoverAnimations = {
|
|
|
142141
142141
|
softLift: "\n hover:-translate-y-0.5 \n hover:shadow-md\n ",
|
|
142142
142142
|
};
|
|
142143
142143
|
|
|
142144
|
+
/**
|
|
142145
|
+
* Concatenates two arrays faster than the array spread operator.
|
|
142146
|
+
*/
|
|
142147
|
+
const concatArrays = (array1, array2) => {
|
|
142148
|
+
// Pre-allocate for better V8 optimization
|
|
142149
|
+
const combinedArray = new Array(array1.length + array2.length);
|
|
142150
|
+
for (let i = 0; i < array1.length; i++) {
|
|
142151
|
+
combinedArray[i] = array1[i];
|
|
142152
|
+
}
|
|
142153
|
+
for (let i = 0; i < array2.length; i++) {
|
|
142154
|
+
combinedArray[array1.length + i] = array2[i];
|
|
142155
|
+
}
|
|
142156
|
+
return combinedArray;
|
|
142157
|
+
};
|
|
142158
|
+
|
|
142159
|
+
// Factory function ensures consistent object shapes
|
|
142160
|
+
const createClassValidatorObject = (classGroupId, validator) => ({
|
|
142161
|
+
classGroupId,
|
|
142162
|
+
validator
|
|
142163
|
+
});
|
|
142164
|
+
// Factory ensures consistent ClassPartObject shape
|
|
142165
|
+
const createClassPartObject = (nextPart = new Map(), validators = null, classGroupId) => ({
|
|
142166
|
+
nextPart,
|
|
142167
|
+
validators,
|
|
142168
|
+
classGroupId
|
|
142169
|
+
});
|
|
142170
|
+
const CLASS_PART_SEPARATOR = '-';
|
|
142171
|
+
const EMPTY_CONFLICTS = [];
|
|
142172
|
+
// I use two dots here because one dot is used as prefix for class groups in plugins
|
|
142173
|
+
const ARBITRARY_PROPERTY_PREFIX = 'arbitrary..';
|
|
142174
|
+
const createClassGroupUtils = config => {
|
|
142175
|
+
const classMap = createClassMap(config);
|
|
142176
|
+
const {
|
|
142177
|
+
conflictingClassGroups,
|
|
142178
|
+
conflictingClassGroupModifiers
|
|
142179
|
+
} = config;
|
|
142180
|
+
const getClassGroupId = className => {
|
|
142181
|
+
if (className.startsWith('[') && className.endsWith(']')) {
|
|
142182
|
+
return getGroupIdForArbitraryProperty(className);
|
|
142183
|
+
}
|
|
142184
|
+
const classParts = className.split(CLASS_PART_SEPARATOR);
|
|
142185
|
+
// Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and skip it.
|
|
142186
|
+
const startIndex = classParts[0] === '' && classParts.length > 1 ? 1 : 0;
|
|
142187
|
+
return getGroupRecursive(classParts, startIndex, classMap);
|
|
142188
|
+
};
|
|
142189
|
+
const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
|
|
142190
|
+
if (hasPostfixModifier) {
|
|
142191
|
+
const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
|
|
142192
|
+
const baseConflicts = conflictingClassGroups[classGroupId];
|
|
142193
|
+
if (modifierConflicts) {
|
|
142194
|
+
if (baseConflicts) {
|
|
142195
|
+
// Merge base conflicts with modifier conflicts
|
|
142196
|
+
return concatArrays(baseConflicts, modifierConflicts);
|
|
142197
|
+
}
|
|
142198
|
+
// Only modifier conflicts
|
|
142199
|
+
return modifierConflicts;
|
|
142200
|
+
}
|
|
142201
|
+
// Fall back to without postfix if no modifier conflicts
|
|
142202
|
+
return baseConflicts || EMPTY_CONFLICTS;
|
|
142203
|
+
}
|
|
142204
|
+
return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
|
|
142205
|
+
};
|
|
142206
|
+
return {
|
|
142207
|
+
getClassGroupId,
|
|
142208
|
+
getConflictingClassGroupIds
|
|
142209
|
+
};
|
|
142210
|
+
};
|
|
142211
|
+
const getGroupRecursive = (classParts, startIndex, classPartObject) => {
|
|
142212
|
+
const classPathsLength = classParts.length - startIndex;
|
|
142213
|
+
if (classPathsLength === 0) {
|
|
142214
|
+
return classPartObject.classGroupId;
|
|
142215
|
+
}
|
|
142216
|
+
const currentClassPart = classParts[startIndex];
|
|
142217
|
+
const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
|
|
142218
|
+
if (nextClassPartObject) {
|
|
142219
|
+
const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
|
|
142220
|
+
if (result) return result;
|
|
142221
|
+
}
|
|
142222
|
+
const validators = classPartObject.validators;
|
|
142223
|
+
if (validators === null) {
|
|
142224
|
+
return undefined;
|
|
142225
|
+
}
|
|
142226
|
+
// Build classRest string efficiently by joining from startIndex onwards
|
|
142227
|
+
const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
|
|
142228
|
+
const validatorsLength = validators.length;
|
|
142229
|
+
for (let i = 0; i < validatorsLength; i++) {
|
|
142230
|
+
const validatorObj = validators[i];
|
|
142231
|
+
if (validatorObj.validator(classRest)) {
|
|
142232
|
+
return validatorObj.classGroupId;
|
|
142233
|
+
}
|
|
142234
|
+
}
|
|
142235
|
+
return undefined;
|
|
142236
|
+
};
|
|
142237
|
+
/**
|
|
142238
|
+
* Get the class group ID for an arbitrary property.
|
|
142239
|
+
*
|
|
142240
|
+
* @param className - The class name to get the group ID for. Is expected to be string starting with `[` and ending with `]`.
|
|
142241
|
+
*/
|
|
142242
|
+
const getGroupIdForArbitraryProperty = className => className.slice(1, -1).indexOf(':') === -1 ? undefined : (() => {
|
|
142243
|
+
const content = className.slice(1, -1);
|
|
142244
|
+
const colonIndex = content.indexOf(':');
|
|
142245
|
+
const property = content.slice(0, colonIndex);
|
|
142246
|
+
return property ? ARBITRARY_PROPERTY_PREFIX + property : undefined;
|
|
142247
|
+
})();
|
|
142248
|
+
/**
|
|
142249
|
+
* Exported for testing only
|
|
142250
|
+
*/
|
|
142251
|
+
const createClassMap = config => {
|
|
142252
|
+
const {
|
|
142253
|
+
theme,
|
|
142254
|
+
classGroups
|
|
142255
|
+
} = config;
|
|
142256
|
+
return processClassGroups(classGroups, theme);
|
|
142257
|
+
};
|
|
142258
|
+
// Split into separate functions to maintain monomorphic call sites
|
|
142259
|
+
const processClassGroups = (classGroups, theme) => {
|
|
142260
|
+
const classMap = createClassPartObject();
|
|
142261
|
+
for (const classGroupId in classGroups) {
|
|
142262
|
+
const group = classGroups[classGroupId];
|
|
142263
|
+
processClassesRecursively(group, classMap, classGroupId, theme);
|
|
142264
|
+
}
|
|
142265
|
+
return classMap;
|
|
142266
|
+
};
|
|
142267
|
+
const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
|
|
142268
|
+
const len = classGroup.length;
|
|
142269
|
+
for (let i = 0; i < len; i++) {
|
|
142270
|
+
const classDefinition = classGroup[i];
|
|
142271
|
+
processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
|
|
142272
|
+
}
|
|
142273
|
+
};
|
|
142274
|
+
// Split into separate functions for each type to maintain monomorphic call sites
|
|
142275
|
+
const processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
|
|
142276
|
+
if (typeof classDefinition === 'string') {
|
|
142277
|
+
processStringDefinition(classDefinition, classPartObject, classGroupId);
|
|
142278
|
+
return;
|
|
142279
|
+
}
|
|
142280
|
+
if (typeof classDefinition === 'function') {
|
|
142281
|
+
processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
|
|
142282
|
+
return;
|
|
142283
|
+
}
|
|
142284
|
+
processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
|
|
142285
|
+
};
|
|
142286
|
+
const processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
|
|
142287
|
+
const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
|
|
142288
|
+
classPartObjectToEdit.classGroupId = classGroupId;
|
|
142289
|
+
};
|
|
142290
|
+
const processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
|
|
142291
|
+
if (isThemeGetter(classDefinition)) {
|
|
142292
|
+
processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
|
142293
|
+
return;
|
|
142294
|
+
}
|
|
142295
|
+
if (classPartObject.validators === null) {
|
|
142296
|
+
classPartObject.validators = [];
|
|
142297
|
+
}
|
|
142298
|
+
classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
|
|
142299
|
+
};
|
|
142300
|
+
const processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
|
|
142301
|
+
const entries = Object.entries(classDefinition);
|
|
142302
|
+
const len = entries.length;
|
|
142303
|
+
for (let i = 0; i < len; i++) {
|
|
142304
|
+
const [key, value] = entries[i];
|
|
142305
|
+
processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
|
|
142306
|
+
}
|
|
142307
|
+
};
|
|
142308
|
+
const getPart = (classPartObject, path) => {
|
|
142309
|
+
let current = classPartObject;
|
|
142310
|
+
const parts = path.split(CLASS_PART_SEPARATOR);
|
|
142311
|
+
const len = parts.length;
|
|
142312
|
+
for (let i = 0; i < len; i++) {
|
|
142313
|
+
const part = parts[i];
|
|
142314
|
+
let next = current.nextPart.get(part);
|
|
142315
|
+
if (!next) {
|
|
142316
|
+
next = createClassPartObject();
|
|
142317
|
+
current.nextPart.set(part, next);
|
|
142318
|
+
}
|
|
142319
|
+
current = next;
|
|
142320
|
+
}
|
|
142321
|
+
return current;
|
|
142322
|
+
};
|
|
142323
|
+
// Type guard maintains monomorphic check
|
|
142324
|
+
const isThemeGetter = func => 'isThemeGetter' in func && func.isThemeGetter === true;
|
|
142325
|
+
|
|
142326
|
+
// LRU cache implementation using plain objects for simplicity
|
|
142327
|
+
const createLruCache = maxCacheSize => {
|
|
142328
|
+
if (maxCacheSize < 1) {
|
|
142329
|
+
return {
|
|
142330
|
+
get: () => undefined,
|
|
142331
|
+
set: () => {}
|
|
142332
|
+
};
|
|
142333
|
+
}
|
|
142334
|
+
let cacheSize = 0;
|
|
142335
|
+
let cache = Object.create(null);
|
|
142336
|
+
let previousCache = Object.create(null);
|
|
142337
|
+
const update = (key, value) => {
|
|
142338
|
+
cache[key] = value;
|
|
142339
|
+
cacheSize++;
|
|
142340
|
+
if (cacheSize > maxCacheSize) {
|
|
142341
|
+
cacheSize = 0;
|
|
142342
|
+
previousCache = cache;
|
|
142343
|
+
cache = Object.create(null);
|
|
142344
|
+
}
|
|
142345
|
+
};
|
|
142346
|
+
return {
|
|
142347
|
+
get(key) {
|
|
142348
|
+
let value = cache[key];
|
|
142349
|
+
if (value !== undefined) {
|
|
142350
|
+
return value;
|
|
142351
|
+
}
|
|
142352
|
+
if ((value = previousCache[key]) !== undefined) {
|
|
142353
|
+
update(key, value);
|
|
142354
|
+
return value;
|
|
142355
|
+
}
|
|
142356
|
+
},
|
|
142357
|
+
set(key, value) {
|
|
142358
|
+
if (key in cache) {
|
|
142359
|
+
cache[key] = value;
|
|
142360
|
+
} else {
|
|
142361
|
+
update(key, value);
|
|
142362
|
+
}
|
|
142363
|
+
}
|
|
142364
|
+
};
|
|
142365
|
+
};
|
|
142366
|
+
const IMPORTANT_MODIFIER = '!';
|
|
142367
|
+
const MODIFIER_SEPARATOR = ':';
|
|
142368
|
+
const EMPTY_MODIFIERS = [];
|
|
142369
|
+
// Pre-allocated result object shape for consistency
|
|
142370
|
+
const createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({
|
|
142371
|
+
modifiers,
|
|
142372
|
+
hasImportantModifier,
|
|
142373
|
+
baseClassName,
|
|
142374
|
+
maybePostfixModifierPosition,
|
|
142375
|
+
isExternal
|
|
142376
|
+
});
|
|
142377
|
+
const createParseClassName = config => {
|
|
142378
|
+
const {
|
|
142379
|
+
prefix,
|
|
142380
|
+
experimentalParseClassName
|
|
142381
|
+
} = config;
|
|
142382
|
+
/**
|
|
142383
|
+
* Parse class name into parts.
|
|
142384
|
+
*
|
|
142385
|
+
* Inspired by `splitAtTopLevelOnly` used in Tailwind CSS
|
|
142386
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
|
|
142387
|
+
*/
|
|
142388
|
+
let parseClassName = className => {
|
|
142389
|
+
// Use simple array with push for better performance
|
|
142390
|
+
const modifiers = [];
|
|
142391
|
+
let bracketDepth = 0;
|
|
142392
|
+
let parenDepth = 0;
|
|
142393
|
+
let modifierStart = 0;
|
|
142394
|
+
let postfixModifierPosition;
|
|
142395
|
+
const len = className.length;
|
|
142396
|
+
for (let index = 0; index < len; index++) {
|
|
142397
|
+
const currentCharacter = className[index];
|
|
142398
|
+
if (bracketDepth === 0 && parenDepth === 0) {
|
|
142399
|
+
if (currentCharacter === MODIFIER_SEPARATOR) {
|
|
142400
|
+
modifiers.push(className.slice(modifierStart, index));
|
|
142401
|
+
modifierStart = index + 1;
|
|
142402
|
+
continue;
|
|
142403
|
+
}
|
|
142404
|
+
if (currentCharacter === '/') {
|
|
142405
|
+
postfixModifierPosition = index;
|
|
142406
|
+
continue;
|
|
142407
|
+
}
|
|
142408
|
+
}
|
|
142409
|
+
if (currentCharacter === '[') bracketDepth++;else if (currentCharacter === ']') bracketDepth--;else if (currentCharacter === '(') parenDepth++;else if (currentCharacter === ')') parenDepth--;
|
|
142410
|
+
}
|
|
142411
|
+
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
|
|
142412
|
+
// Inline important modifier check
|
|
142413
|
+
let baseClassName = baseClassNameWithImportantModifier;
|
|
142414
|
+
let hasImportantModifier = false;
|
|
142415
|
+
if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
|
|
142416
|
+
baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
|
|
142417
|
+
hasImportantModifier = true;
|
|
142418
|
+
} else if (
|
|
142419
|
+
/**
|
|
142420
|
+
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
142421
|
+
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
142422
|
+
*/
|
|
142423
|
+
baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)) {
|
|
142424
|
+
baseClassName = baseClassNameWithImportantModifier.slice(1);
|
|
142425
|
+
hasImportantModifier = true;
|
|
142426
|
+
}
|
|
142427
|
+
const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
|
|
142428
|
+
return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
|
|
142429
|
+
};
|
|
142430
|
+
if (prefix) {
|
|
142431
|
+
const fullPrefix = prefix + MODIFIER_SEPARATOR;
|
|
142432
|
+
const parseClassNameOriginal = parseClassName;
|
|
142433
|
+
parseClassName = className => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, undefined, true);
|
|
142434
|
+
}
|
|
142435
|
+
if (experimentalParseClassName) {
|
|
142436
|
+
const parseClassNameOriginal = parseClassName;
|
|
142437
|
+
parseClassName = className => experimentalParseClassName({
|
|
142438
|
+
className,
|
|
142439
|
+
parseClassName: parseClassNameOriginal
|
|
142440
|
+
});
|
|
142441
|
+
}
|
|
142442
|
+
return parseClassName;
|
|
142443
|
+
};
|
|
142444
|
+
|
|
142445
|
+
/**
|
|
142446
|
+
* Sorts modifiers according to following schema:
|
|
142447
|
+
* - Predefined modifiers are sorted alphabetically
|
|
142448
|
+
* - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
|
|
142449
|
+
*/
|
|
142450
|
+
const createSortModifiers = config => {
|
|
142451
|
+
// Pre-compute weights for all known modifiers for O(1) comparison
|
|
142452
|
+
const modifierWeights = new Map();
|
|
142453
|
+
// Assign weights to sensitive modifiers (highest priority, but preserve order)
|
|
142454
|
+
config.orderSensitiveModifiers.forEach((mod, index) => {
|
|
142455
|
+
modifierWeights.set(mod, 1000000 + index); // High weights for sensitive mods
|
|
142456
|
+
});
|
|
142457
|
+
return modifiers => {
|
|
142458
|
+
const result = [];
|
|
142459
|
+
let currentSegment = [];
|
|
142460
|
+
// Process modifiers in one pass
|
|
142461
|
+
for (let i = 0; i < modifiers.length; i++) {
|
|
142462
|
+
const modifier = modifiers[i];
|
|
142463
|
+
// Check if modifier is sensitive (starts with '[' or in orderSensitiveModifiers)
|
|
142464
|
+
const isArbitrary = modifier[0] === '[';
|
|
142465
|
+
const isOrderSensitive = modifierWeights.has(modifier);
|
|
142466
|
+
if (isArbitrary || isOrderSensitive) {
|
|
142467
|
+
// Sort and flush current segment alphabetically
|
|
142468
|
+
if (currentSegment.length > 0) {
|
|
142469
|
+
currentSegment.sort();
|
|
142470
|
+
result.push(...currentSegment);
|
|
142471
|
+
currentSegment = [];
|
|
142472
|
+
}
|
|
142473
|
+
result.push(modifier);
|
|
142474
|
+
} else {
|
|
142475
|
+
// Regular modifier - add to current segment for batch sorting
|
|
142476
|
+
currentSegment.push(modifier);
|
|
142477
|
+
}
|
|
142478
|
+
}
|
|
142479
|
+
// Sort and add any remaining segment items
|
|
142480
|
+
if (currentSegment.length > 0) {
|
|
142481
|
+
currentSegment.sort();
|
|
142482
|
+
result.push(...currentSegment);
|
|
142483
|
+
}
|
|
142484
|
+
return result;
|
|
142485
|
+
};
|
|
142486
|
+
};
|
|
142487
|
+
const createConfigUtils = config => ({
|
|
142488
|
+
cache: createLruCache(config.cacheSize),
|
|
142489
|
+
parseClassName: createParseClassName(config),
|
|
142490
|
+
sortModifiers: createSortModifiers(config),
|
|
142491
|
+
...createClassGroupUtils(config)
|
|
142492
|
+
});
|
|
142493
|
+
const SPLIT_CLASSES_REGEX = /\s+/;
|
|
142494
|
+
const mergeClassList = (classList, configUtils) => {
|
|
142495
|
+
const {
|
|
142496
|
+
parseClassName,
|
|
142497
|
+
getClassGroupId,
|
|
142498
|
+
getConflictingClassGroupIds,
|
|
142499
|
+
sortModifiers
|
|
142500
|
+
} = configUtils;
|
|
142501
|
+
/**
|
|
142502
|
+
* Set of classGroupIds in following format:
|
|
142503
|
+
* `{importantModifier}{variantModifiers}{classGroupId}`
|
|
142504
|
+
* @example 'float'
|
|
142505
|
+
* @example 'hover:focus:bg-color'
|
|
142506
|
+
* @example 'md:!pr'
|
|
142507
|
+
*/
|
|
142508
|
+
const classGroupsInConflict = [];
|
|
142509
|
+
const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
|
142510
|
+
let result = '';
|
|
142511
|
+
for (let index = classNames.length - 1; index >= 0; index -= 1) {
|
|
142512
|
+
const originalClassName = classNames[index];
|
|
142513
|
+
const {
|
|
142514
|
+
isExternal,
|
|
142515
|
+
modifiers,
|
|
142516
|
+
hasImportantModifier,
|
|
142517
|
+
baseClassName,
|
|
142518
|
+
maybePostfixModifierPosition
|
|
142519
|
+
} = parseClassName(originalClassName);
|
|
142520
|
+
if (isExternal) {
|
|
142521
|
+
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
|
142522
|
+
continue;
|
|
142523
|
+
}
|
|
142524
|
+
let hasPostfixModifier = !!maybePostfixModifierPosition;
|
|
142525
|
+
let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
|
142526
|
+
if (!classGroupId) {
|
|
142527
|
+
if (!hasPostfixModifier) {
|
|
142528
|
+
// Not a Tailwind class
|
|
142529
|
+
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
|
142530
|
+
continue;
|
|
142531
|
+
}
|
|
142532
|
+
classGroupId = getClassGroupId(baseClassName);
|
|
142533
|
+
if (!classGroupId) {
|
|
142534
|
+
// Not a Tailwind class
|
|
142535
|
+
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
|
142536
|
+
continue;
|
|
142537
|
+
}
|
|
142538
|
+
hasPostfixModifier = false;
|
|
142539
|
+
}
|
|
142540
|
+
// Fast path: skip sorting for empty or single modifier
|
|
142541
|
+
const variantModifier = modifiers.length === 0 ? '' : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(':');
|
|
142542
|
+
const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
|
|
142543
|
+
const classId = modifierId + classGroupId;
|
|
142544
|
+
if (classGroupsInConflict.indexOf(classId) > -1) {
|
|
142545
|
+
// Tailwind class omitted due to conflict
|
|
142546
|
+
continue;
|
|
142547
|
+
}
|
|
142548
|
+
classGroupsInConflict.push(classId);
|
|
142549
|
+
const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
|
|
142550
|
+
for (let i = 0; i < conflictGroups.length; ++i) {
|
|
142551
|
+
const group = conflictGroups[i];
|
|
142552
|
+
classGroupsInConflict.push(modifierId + group);
|
|
142553
|
+
}
|
|
142554
|
+
// Tailwind class not in conflict
|
|
142555
|
+
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
|
142556
|
+
}
|
|
142557
|
+
return result;
|
|
142558
|
+
};
|
|
142559
|
+
|
|
142560
|
+
/**
|
|
142561
|
+
* The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
|
|
142562
|
+
*
|
|
142563
|
+
* Specifically:
|
|
142564
|
+
* - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
|
|
142565
|
+
* - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
|
|
142566
|
+
*
|
|
142567
|
+
* Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
|
|
142568
|
+
*/
|
|
142569
|
+
const twJoin = (...classLists) => {
|
|
142570
|
+
let index = 0;
|
|
142571
|
+
let argument;
|
|
142572
|
+
let resolvedValue;
|
|
142573
|
+
let string = '';
|
|
142574
|
+
while (index < classLists.length) {
|
|
142575
|
+
if (argument = classLists[index++]) {
|
|
142576
|
+
if (resolvedValue = toValue(argument)) {
|
|
142577
|
+
string && (string += ' ');
|
|
142578
|
+
string += resolvedValue;
|
|
142579
|
+
}
|
|
142580
|
+
}
|
|
142581
|
+
}
|
|
142582
|
+
return string;
|
|
142583
|
+
};
|
|
142584
|
+
const toValue = mix => {
|
|
142585
|
+
// Fast path for strings
|
|
142586
|
+
if (typeof mix === 'string') {
|
|
142587
|
+
return mix;
|
|
142588
|
+
}
|
|
142589
|
+
let resolvedValue;
|
|
142590
|
+
let string = '';
|
|
142591
|
+
for (let k = 0; k < mix.length; k++) {
|
|
142592
|
+
if (mix[k]) {
|
|
142593
|
+
if (resolvedValue = toValue(mix[k])) {
|
|
142594
|
+
string && (string += ' ');
|
|
142595
|
+
string += resolvedValue;
|
|
142596
|
+
}
|
|
142597
|
+
}
|
|
142598
|
+
}
|
|
142599
|
+
return string;
|
|
142600
|
+
};
|
|
142601
|
+
const createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
|
|
142602
|
+
let configUtils;
|
|
142603
|
+
let cacheGet;
|
|
142604
|
+
let cacheSet;
|
|
142605
|
+
let functionToCall;
|
|
142606
|
+
const initTailwindMerge = classList => {
|
|
142607
|
+
const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
|
|
142608
|
+
configUtils = createConfigUtils(config);
|
|
142609
|
+
cacheGet = configUtils.cache.get;
|
|
142610
|
+
cacheSet = configUtils.cache.set;
|
|
142611
|
+
functionToCall = tailwindMerge;
|
|
142612
|
+
return tailwindMerge(classList);
|
|
142613
|
+
};
|
|
142614
|
+
const tailwindMerge = classList => {
|
|
142615
|
+
const cachedResult = cacheGet(classList);
|
|
142616
|
+
if (cachedResult) {
|
|
142617
|
+
return cachedResult;
|
|
142618
|
+
}
|
|
142619
|
+
const result = mergeClassList(classList, configUtils);
|
|
142620
|
+
cacheSet(classList, result);
|
|
142621
|
+
return result;
|
|
142622
|
+
};
|
|
142623
|
+
functionToCall = initTailwindMerge;
|
|
142624
|
+
return (...args) => functionToCall(twJoin(...args));
|
|
142625
|
+
};
|
|
142626
|
+
const fallbackThemeArr = [];
|
|
142627
|
+
const fromTheme = key => {
|
|
142628
|
+
const themeGetter = theme => theme[key] || fallbackThemeArr;
|
|
142629
|
+
themeGetter.isThemeGetter = true;
|
|
142630
|
+
return themeGetter;
|
|
142631
|
+
};
|
|
142632
|
+
const arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
|
|
142633
|
+
const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
|
|
142634
|
+
const fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
|
|
142635
|
+
const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
|
142636
|
+
const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
|
|
142637
|
+
const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
|
|
142638
|
+
// Shadow always begins with x and y offset separated by underscore optionally prepended by inset
|
|
142639
|
+
const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
142640
|
+
const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
142641
|
+
const isFraction = value => fractionRegex.test(value);
|
|
142642
|
+
const isNumber = value => !!value && !Number.isNaN(Number(value));
|
|
142643
|
+
const isInteger = value => !!value && Number.isInteger(Number(value));
|
|
142644
|
+
const isPercent = value => value.endsWith('%') && isNumber(value.slice(0, -1));
|
|
142645
|
+
const isTshirtSize = value => tshirtUnitRegex.test(value);
|
|
142646
|
+
const isAny = () => true;
|
|
142647
|
+
const isLengthOnly = value =>
|
|
142648
|
+
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
142649
|
+
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
142650
|
+
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
142651
|
+
lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
|
|
142652
|
+
const isNever = () => false;
|
|
142653
|
+
const isShadow = value => shadowRegex.test(value);
|
|
142654
|
+
const isImage = value => imageRegex.test(value);
|
|
142655
|
+
const isAnyNonArbitrary = value => !isArbitraryValue(value) && !isArbitraryVariable(value);
|
|
142656
|
+
const isArbitrarySize = value => getIsArbitraryValue(value, isLabelSize, isNever);
|
|
142657
|
+
const isArbitraryValue = value => arbitraryValueRegex.test(value);
|
|
142658
|
+
const isArbitraryLength = value => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
|
|
142659
|
+
const isArbitraryNumber = value => getIsArbitraryValue(value, isLabelNumber, isNumber);
|
|
142660
|
+
const isArbitraryWeight = value => getIsArbitraryValue(value, isLabelWeight, isAny);
|
|
142661
|
+
const isArbitraryFamilyName = value => getIsArbitraryValue(value, isLabelFamilyName, isNever);
|
|
142662
|
+
const isArbitraryPosition = value => getIsArbitraryValue(value, isLabelPosition, isNever);
|
|
142663
|
+
const isArbitraryImage = value => getIsArbitraryValue(value, isLabelImage, isImage);
|
|
142664
|
+
const isArbitraryShadow = value => getIsArbitraryValue(value, isLabelShadow, isShadow);
|
|
142665
|
+
const isArbitraryVariable = value => arbitraryVariableRegex.test(value);
|
|
142666
|
+
const isArbitraryVariableLength = value => getIsArbitraryVariable(value, isLabelLength);
|
|
142667
|
+
const isArbitraryVariableFamilyName = value => getIsArbitraryVariable(value, isLabelFamilyName);
|
|
142668
|
+
const isArbitraryVariablePosition = value => getIsArbitraryVariable(value, isLabelPosition);
|
|
142669
|
+
const isArbitraryVariableSize = value => getIsArbitraryVariable(value, isLabelSize);
|
|
142670
|
+
const isArbitraryVariableImage = value => getIsArbitraryVariable(value, isLabelImage);
|
|
142671
|
+
const isArbitraryVariableShadow = value => getIsArbitraryVariable(value, isLabelShadow, true);
|
|
142672
|
+
const isArbitraryVariableWeight = value => getIsArbitraryVariable(value, isLabelWeight, true);
|
|
142673
|
+
// Helpers
|
|
142674
|
+
const getIsArbitraryValue = (value, testLabel, testValue) => {
|
|
142675
|
+
const result = arbitraryValueRegex.exec(value);
|
|
142676
|
+
if (result) {
|
|
142677
|
+
if (result[1]) {
|
|
142678
|
+
return testLabel(result[1]);
|
|
142679
|
+
}
|
|
142680
|
+
return testValue(result[2]);
|
|
142681
|
+
}
|
|
142682
|
+
return false;
|
|
142683
|
+
};
|
|
142684
|
+
const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
|
|
142685
|
+
const result = arbitraryVariableRegex.exec(value);
|
|
142686
|
+
if (result) {
|
|
142687
|
+
if (result[1]) {
|
|
142688
|
+
return testLabel(result[1]);
|
|
142689
|
+
}
|
|
142690
|
+
return shouldMatchNoLabel;
|
|
142691
|
+
}
|
|
142692
|
+
return false;
|
|
142693
|
+
};
|
|
142694
|
+
// Labels
|
|
142695
|
+
const isLabelPosition = label => label === 'position' || label === 'percentage';
|
|
142696
|
+
const isLabelImage = label => label === 'image' || label === 'url';
|
|
142697
|
+
const isLabelSize = label => label === 'length' || label === 'size' || label === 'bg-size';
|
|
142698
|
+
const isLabelLength = label => label === 'length';
|
|
142699
|
+
const isLabelNumber = label => label === 'number';
|
|
142700
|
+
const isLabelFamilyName = label => label === 'family-name';
|
|
142701
|
+
const isLabelWeight = label => label === 'number' || label === 'weight';
|
|
142702
|
+
const isLabelShadow = label => label === 'shadow';
|
|
142703
|
+
const getDefaultConfig = () => {
|
|
142704
|
+
/**
|
|
142705
|
+
* Theme getters for theme variable namespaces
|
|
142706
|
+
* @see https://tailwindcss.com/docs/theme#theme-variable-namespaces
|
|
142707
|
+
*/
|
|
142708
|
+
/***/
|
|
142709
|
+
const themeColor = fromTheme('color');
|
|
142710
|
+
const themeFont = fromTheme('font');
|
|
142711
|
+
const themeText = fromTheme('text');
|
|
142712
|
+
const themeFontWeight = fromTheme('font-weight');
|
|
142713
|
+
const themeTracking = fromTheme('tracking');
|
|
142714
|
+
const themeLeading = fromTheme('leading');
|
|
142715
|
+
const themeBreakpoint = fromTheme('breakpoint');
|
|
142716
|
+
const themeContainer = fromTheme('container');
|
|
142717
|
+
const themeSpacing = fromTheme('spacing');
|
|
142718
|
+
const themeRadius = fromTheme('radius');
|
|
142719
|
+
const themeShadow = fromTheme('shadow');
|
|
142720
|
+
const themeInsetShadow = fromTheme('inset-shadow');
|
|
142721
|
+
const themeTextShadow = fromTheme('text-shadow');
|
|
142722
|
+
const themeDropShadow = fromTheme('drop-shadow');
|
|
142723
|
+
const themeBlur = fromTheme('blur');
|
|
142724
|
+
const themePerspective = fromTheme('perspective');
|
|
142725
|
+
const themeAspect = fromTheme('aspect');
|
|
142726
|
+
const themeEase = fromTheme('ease');
|
|
142727
|
+
const themeAnimate = fromTheme('animate');
|
|
142728
|
+
/**
|
|
142729
|
+
* Helpers to avoid repeating the same scales
|
|
142730
|
+
*
|
|
142731
|
+
* We use functions that create a new array every time they're called instead of static arrays.
|
|
142732
|
+
* This ensures that users who modify any scale by mutating the array (e.g. with `array.push(element)`) don't accidentally mutate arrays in other parts of the config.
|
|
142733
|
+
*/
|
|
142734
|
+
/***/
|
|
142735
|
+
const scaleBreak = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
|
|
142736
|
+
const scalePosition = () => ['center', 'top', 'bottom', 'left', 'right', 'top-left',
|
|
142737
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
142738
|
+
'left-top', 'top-right',
|
|
142739
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
142740
|
+
'right-top', 'bottom-right',
|
|
142741
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
142742
|
+
'right-bottom', 'bottom-left',
|
|
142743
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
142744
|
+
'left-bottom'];
|
|
142745
|
+
const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
|
|
142746
|
+
const scaleOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];
|
|
142747
|
+
const scaleOverscroll = () => ['auto', 'contain', 'none'];
|
|
142748
|
+
const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
|
|
142749
|
+
const scaleInset = () => [isFraction, 'full', 'auto', ...scaleUnambiguousSpacing()];
|
|
142750
|
+
const scaleGridTemplateColsRows = () => [isInteger, 'none', 'subgrid', isArbitraryVariable, isArbitraryValue];
|
|
142751
|
+
const scaleGridColRowStartAndEnd = () => ['auto', {
|
|
142752
|
+
span: ['full', isInteger, isArbitraryVariable, isArbitraryValue]
|
|
142753
|
+
}, isInteger, isArbitraryVariable, isArbitraryValue];
|
|
142754
|
+
const scaleGridColRowStartOrEnd = () => [isInteger, 'auto', isArbitraryVariable, isArbitraryValue];
|
|
142755
|
+
const scaleGridAutoColsRows = () => ['auto', 'min', 'max', 'fr', isArbitraryVariable, isArbitraryValue];
|
|
142756
|
+
const scaleAlignPrimaryAxis = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch', 'baseline', 'center-safe', 'end-safe'];
|
|
142757
|
+
const scaleAlignSecondaryAxis = () => ['start', 'end', 'center', 'stretch', 'center-safe', 'end-safe'];
|
|
142758
|
+
const scaleMargin = () => ['auto', ...scaleUnambiguousSpacing()];
|
|
142759
|
+
const scaleSizing = () => [isFraction, 'auto', 'full', 'dvw', 'dvh', 'lvw', 'lvh', 'svw', 'svh', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
|
|
142760
|
+
const scaleSizingInline = () => [isFraction, 'screen', 'full', 'dvw', 'lvw', 'svw', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
|
|
142761
|
+
const scaleSizingBlock = () => [isFraction, 'screen', 'full', 'lh', 'dvh', 'lvh', 'svh', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
|
|
142762
|
+
const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
|
|
142763
|
+
const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
|
|
142764
|
+
position: [isArbitraryVariable, isArbitraryValue]
|
|
142765
|
+
}];
|
|
142766
|
+
const scaleBgRepeat = () => ['no-repeat', {
|
|
142767
|
+
repeat: ['', 'x', 'y', 'space', 'round']
|
|
142768
|
+
}];
|
|
142769
|
+
const scaleBgSize = () => ['auto', 'cover', 'contain', isArbitraryVariableSize, isArbitrarySize, {
|
|
142770
|
+
size: [isArbitraryVariable, isArbitraryValue]
|
|
142771
|
+
}];
|
|
142772
|
+
const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
|
|
142773
|
+
const scaleRadius = () => [
|
|
142774
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
142775
|
+
'', 'none', 'full', themeRadius, isArbitraryVariable, isArbitraryValue];
|
|
142776
|
+
const scaleBorderWidth = () => ['', isNumber, isArbitraryVariableLength, isArbitraryLength];
|
|
142777
|
+
const scaleLineStyle = () => ['solid', 'dashed', 'dotted', 'double'];
|
|
142778
|
+
const scaleBlendMode = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'];
|
|
142779
|
+
const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
|
|
142780
|
+
const scaleBlur = () => [
|
|
142781
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
142782
|
+
'', 'none', themeBlur, isArbitraryVariable, isArbitraryValue];
|
|
142783
|
+
const scaleRotate = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue];
|
|
142784
|
+
const scaleScale = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue];
|
|
142785
|
+
const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
|
|
142786
|
+
const scaleTranslate = () => [isFraction, 'full', ...scaleUnambiguousSpacing()];
|
|
142787
|
+
return {
|
|
142788
|
+
cacheSize: 500,
|
|
142789
|
+
theme: {
|
|
142790
|
+
animate: ['spin', 'ping', 'pulse', 'bounce'],
|
|
142791
|
+
aspect: ['video'],
|
|
142792
|
+
blur: [isTshirtSize],
|
|
142793
|
+
breakpoint: [isTshirtSize],
|
|
142794
|
+
color: [isAny],
|
|
142795
|
+
container: [isTshirtSize],
|
|
142796
|
+
'drop-shadow': [isTshirtSize],
|
|
142797
|
+
ease: ['in', 'out', 'in-out'],
|
|
142798
|
+
font: [isAnyNonArbitrary],
|
|
142799
|
+
'font-weight': ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black'],
|
|
142800
|
+
'inset-shadow': [isTshirtSize],
|
|
142801
|
+
leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose'],
|
|
142802
|
+
perspective: ['dramatic', 'near', 'normal', 'midrange', 'distant', 'none'],
|
|
142803
|
+
radius: [isTshirtSize],
|
|
142804
|
+
shadow: [isTshirtSize],
|
|
142805
|
+
spacing: ['px', isNumber],
|
|
142806
|
+
text: [isTshirtSize],
|
|
142807
|
+
'text-shadow': [isTshirtSize],
|
|
142808
|
+
tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest']
|
|
142809
|
+
},
|
|
142810
|
+
classGroups: {
|
|
142811
|
+
// --------------
|
|
142812
|
+
// --- Layout ---
|
|
142813
|
+
// --------------
|
|
142814
|
+
/**
|
|
142815
|
+
* Aspect Ratio
|
|
142816
|
+
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
142817
|
+
*/
|
|
142818
|
+
aspect: [{
|
|
142819
|
+
aspect: ['auto', 'square', isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]
|
|
142820
|
+
}],
|
|
142821
|
+
/**
|
|
142822
|
+
* Container
|
|
142823
|
+
* @see https://tailwindcss.com/docs/container
|
|
142824
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
142825
|
+
*/
|
|
142826
|
+
container: ['container'],
|
|
142827
|
+
/**
|
|
142828
|
+
* Columns
|
|
142829
|
+
* @see https://tailwindcss.com/docs/columns
|
|
142830
|
+
*/
|
|
142831
|
+
columns: [{
|
|
142832
|
+
columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
|
|
142833
|
+
}],
|
|
142834
|
+
/**
|
|
142835
|
+
* Break After
|
|
142836
|
+
* @see https://tailwindcss.com/docs/break-after
|
|
142837
|
+
*/
|
|
142838
|
+
'break-after': [{
|
|
142839
|
+
'break-after': scaleBreak()
|
|
142840
|
+
}],
|
|
142841
|
+
/**
|
|
142842
|
+
* Break Before
|
|
142843
|
+
* @see https://tailwindcss.com/docs/break-before
|
|
142844
|
+
*/
|
|
142845
|
+
'break-before': [{
|
|
142846
|
+
'break-before': scaleBreak()
|
|
142847
|
+
}],
|
|
142848
|
+
/**
|
|
142849
|
+
* Break Inside
|
|
142850
|
+
* @see https://tailwindcss.com/docs/break-inside
|
|
142851
|
+
*/
|
|
142852
|
+
'break-inside': [{
|
|
142853
|
+
'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']
|
|
142854
|
+
}],
|
|
142855
|
+
/**
|
|
142856
|
+
* Box Decoration Break
|
|
142857
|
+
* @see https://tailwindcss.com/docs/box-decoration-break
|
|
142858
|
+
*/
|
|
142859
|
+
'box-decoration': [{
|
|
142860
|
+
'box-decoration': ['slice', 'clone']
|
|
142861
|
+
}],
|
|
142862
|
+
/**
|
|
142863
|
+
* Box Sizing
|
|
142864
|
+
* @see https://tailwindcss.com/docs/box-sizing
|
|
142865
|
+
*/
|
|
142866
|
+
box: [{
|
|
142867
|
+
box: ['border', 'content']
|
|
142868
|
+
}],
|
|
142869
|
+
/**
|
|
142870
|
+
* Display
|
|
142871
|
+
* @see https://tailwindcss.com/docs/display
|
|
142872
|
+
*/
|
|
142873
|
+
display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],
|
|
142874
|
+
/**
|
|
142875
|
+
* Screen Reader Only
|
|
142876
|
+
* @see https://tailwindcss.com/docs/display#screen-reader-only
|
|
142877
|
+
*/
|
|
142878
|
+
sr: ['sr-only', 'not-sr-only'],
|
|
142879
|
+
/**
|
|
142880
|
+
* Floats
|
|
142881
|
+
* @see https://tailwindcss.com/docs/float
|
|
142882
|
+
*/
|
|
142883
|
+
float: [{
|
|
142884
|
+
float: ['right', 'left', 'none', 'start', 'end']
|
|
142885
|
+
}],
|
|
142886
|
+
/**
|
|
142887
|
+
* Clear
|
|
142888
|
+
* @see https://tailwindcss.com/docs/clear
|
|
142889
|
+
*/
|
|
142890
|
+
clear: [{
|
|
142891
|
+
clear: ['left', 'right', 'both', 'none', 'start', 'end']
|
|
142892
|
+
}],
|
|
142893
|
+
/**
|
|
142894
|
+
* Isolation
|
|
142895
|
+
* @see https://tailwindcss.com/docs/isolation
|
|
142896
|
+
*/
|
|
142897
|
+
isolation: ['isolate', 'isolation-auto'],
|
|
142898
|
+
/**
|
|
142899
|
+
* Object Fit
|
|
142900
|
+
* @see https://tailwindcss.com/docs/object-fit
|
|
142901
|
+
*/
|
|
142902
|
+
'object-fit': [{
|
|
142903
|
+
object: ['contain', 'cover', 'fill', 'none', 'scale-down']
|
|
142904
|
+
}],
|
|
142905
|
+
/**
|
|
142906
|
+
* Object Position
|
|
142907
|
+
* @see https://tailwindcss.com/docs/object-position
|
|
142908
|
+
*/
|
|
142909
|
+
'object-position': [{
|
|
142910
|
+
object: scalePositionWithArbitrary()
|
|
142911
|
+
}],
|
|
142912
|
+
/**
|
|
142913
|
+
* Overflow
|
|
142914
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
142915
|
+
*/
|
|
142916
|
+
overflow: [{
|
|
142917
|
+
overflow: scaleOverflow()
|
|
142918
|
+
}],
|
|
142919
|
+
/**
|
|
142920
|
+
* Overflow X
|
|
142921
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
142922
|
+
*/
|
|
142923
|
+
'overflow-x': [{
|
|
142924
|
+
'overflow-x': scaleOverflow()
|
|
142925
|
+
}],
|
|
142926
|
+
/**
|
|
142927
|
+
* Overflow Y
|
|
142928
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
142929
|
+
*/
|
|
142930
|
+
'overflow-y': [{
|
|
142931
|
+
'overflow-y': scaleOverflow()
|
|
142932
|
+
}],
|
|
142933
|
+
/**
|
|
142934
|
+
* Overscroll Behavior
|
|
142935
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
142936
|
+
*/
|
|
142937
|
+
overscroll: [{
|
|
142938
|
+
overscroll: scaleOverscroll()
|
|
142939
|
+
}],
|
|
142940
|
+
/**
|
|
142941
|
+
* Overscroll Behavior X
|
|
142942
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
142943
|
+
*/
|
|
142944
|
+
'overscroll-x': [{
|
|
142945
|
+
'overscroll-x': scaleOverscroll()
|
|
142946
|
+
}],
|
|
142947
|
+
/**
|
|
142948
|
+
* Overscroll Behavior Y
|
|
142949
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
142950
|
+
*/
|
|
142951
|
+
'overscroll-y': [{
|
|
142952
|
+
'overscroll-y': scaleOverscroll()
|
|
142953
|
+
}],
|
|
142954
|
+
/**
|
|
142955
|
+
* Position
|
|
142956
|
+
* @see https://tailwindcss.com/docs/position
|
|
142957
|
+
*/
|
|
142958
|
+
position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],
|
|
142959
|
+
/**
|
|
142960
|
+
* Inset
|
|
142961
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
142962
|
+
*/
|
|
142963
|
+
inset: [{
|
|
142964
|
+
inset: scaleInset()
|
|
142965
|
+
}],
|
|
142966
|
+
/**
|
|
142967
|
+
* Inset Inline
|
|
142968
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
142969
|
+
*/
|
|
142970
|
+
'inset-x': [{
|
|
142971
|
+
'inset-x': scaleInset()
|
|
142972
|
+
}],
|
|
142973
|
+
/**
|
|
142974
|
+
* Inset Block
|
|
142975
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
142976
|
+
*/
|
|
142977
|
+
'inset-y': [{
|
|
142978
|
+
'inset-y': scaleInset()
|
|
142979
|
+
}],
|
|
142980
|
+
/**
|
|
142981
|
+
* Inset Inline Start
|
|
142982
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
142983
|
+
* @todo class group will be renamed to `inset-s` in next major release
|
|
142984
|
+
*/
|
|
142985
|
+
start: [{
|
|
142986
|
+
'inset-s': scaleInset(),
|
|
142987
|
+
/**
|
|
142988
|
+
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
|
|
142989
|
+
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
142990
|
+
*/
|
|
142991
|
+
start: scaleInset()
|
|
142992
|
+
}],
|
|
142993
|
+
/**
|
|
142994
|
+
* Inset Inline End
|
|
142995
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
142996
|
+
* @todo class group will be renamed to `inset-e` in next major release
|
|
142997
|
+
*/
|
|
142998
|
+
end: [{
|
|
142999
|
+
'inset-e': scaleInset(),
|
|
143000
|
+
/**
|
|
143001
|
+
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
|
|
143002
|
+
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
143003
|
+
*/
|
|
143004
|
+
end: scaleInset()
|
|
143005
|
+
}],
|
|
143006
|
+
/**
|
|
143007
|
+
* Inset Block Start
|
|
143008
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
143009
|
+
*/
|
|
143010
|
+
'inset-bs': [{
|
|
143011
|
+
'inset-bs': scaleInset()
|
|
143012
|
+
}],
|
|
143013
|
+
/**
|
|
143014
|
+
* Inset Block End
|
|
143015
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
143016
|
+
*/
|
|
143017
|
+
'inset-be': [{
|
|
143018
|
+
'inset-be': scaleInset()
|
|
143019
|
+
}],
|
|
143020
|
+
/**
|
|
143021
|
+
* Top
|
|
143022
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
143023
|
+
*/
|
|
143024
|
+
top: [{
|
|
143025
|
+
top: scaleInset()
|
|
143026
|
+
}],
|
|
143027
|
+
/**
|
|
143028
|
+
* Right
|
|
143029
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
143030
|
+
*/
|
|
143031
|
+
right: [{
|
|
143032
|
+
right: scaleInset()
|
|
143033
|
+
}],
|
|
143034
|
+
/**
|
|
143035
|
+
* Bottom
|
|
143036
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
143037
|
+
*/
|
|
143038
|
+
bottom: [{
|
|
143039
|
+
bottom: scaleInset()
|
|
143040
|
+
}],
|
|
143041
|
+
/**
|
|
143042
|
+
* Left
|
|
143043
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
143044
|
+
*/
|
|
143045
|
+
left: [{
|
|
143046
|
+
left: scaleInset()
|
|
143047
|
+
}],
|
|
143048
|
+
/**
|
|
143049
|
+
* Visibility
|
|
143050
|
+
* @see https://tailwindcss.com/docs/visibility
|
|
143051
|
+
*/
|
|
143052
|
+
visibility: ['visible', 'invisible', 'collapse'],
|
|
143053
|
+
/**
|
|
143054
|
+
* Z-Index
|
|
143055
|
+
* @see https://tailwindcss.com/docs/z-index
|
|
143056
|
+
*/
|
|
143057
|
+
z: [{
|
|
143058
|
+
z: [isInteger, 'auto', isArbitraryVariable, isArbitraryValue]
|
|
143059
|
+
}],
|
|
143060
|
+
// ------------------------
|
|
143061
|
+
// --- Flexbox and Grid ---
|
|
143062
|
+
// ------------------------
|
|
143063
|
+
/**
|
|
143064
|
+
* Flex Basis
|
|
143065
|
+
* @see https://tailwindcss.com/docs/flex-basis
|
|
143066
|
+
*/
|
|
143067
|
+
basis: [{
|
|
143068
|
+
basis: [isFraction, 'full', 'auto', themeContainer, ...scaleUnambiguousSpacing()]
|
|
143069
|
+
}],
|
|
143070
|
+
/**
|
|
143071
|
+
* Flex Direction
|
|
143072
|
+
* @see https://tailwindcss.com/docs/flex-direction
|
|
143073
|
+
*/
|
|
143074
|
+
'flex-direction': [{
|
|
143075
|
+
flex: ['row', 'row-reverse', 'col', 'col-reverse']
|
|
143076
|
+
}],
|
|
143077
|
+
/**
|
|
143078
|
+
* Flex Wrap
|
|
143079
|
+
* @see https://tailwindcss.com/docs/flex-wrap
|
|
143080
|
+
*/
|
|
143081
|
+
'flex-wrap': [{
|
|
143082
|
+
flex: ['nowrap', 'wrap', 'wrap-reverse']
|
|
143083
|
+
}],
|
|
143084
|
+
/**
|
|
143085
|
+
* Flex
|
|
143086
|
+
* @see https://tailwindcss.com/docs/flex
|
|
143087
|
+
*/
|
|
143088
|
+
flex: [{
|
|
143089
|
+
flex: [isNumber, isFraction, 'auto', 'initial', 'none', isArbitraryValue]
|
|
143090
|
+
}],
|
|
143091
|
+
/**
|
|
143092
|
+
* Flex Grow
|
|
143093
|
+
* @see https://tailwindcss.com/docs/flex-grow
|
|
143094
|
+
*/
|
|
143095
|
+
grow: [{
|
|
143096
|
+
grow: ['', isNumber, isArbitraryVariable, isArbitraryValue]
|
|
143097
|
+
}],
|
|
143098
|
+
/**
|
|
143099
|
+
* Flex Shrink
|
|
143100
|
+
* @see https://tailwindcss.com/docs/flex-shrink
|
|
143101
|
+
*/
|
|
143102
|
+
shrink: [{
|
|
143103
|
+
shrink: ['', isNumber, isArbitraryVariable, isArbitraryValue]
|
|
143104
|
+
}],
|
|
143105
|
+
/**
|
|
143106
|
+
* Order
|
|
143107
|
+
* @see https://tailwindcss.com/docs/order
|
|
143108
|
+
*/
|
|
143109
|
+
order: [{
|
|
143110
|
+
order: [isInteger, 'first', 'last', 'none', isArbitraryVariable, isArbitraryValue]
|
|
143111
|
+
}],
|
|
143112
|
+
/**
|
|
143113
|
+
* Grid Template Columns
|
|
143114
|
+
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
143115
|
+
*/
|
|
143116
|
+
'grid-cols': [{
|
|
143117
|
+
'grid-cols': scaleGridTemplateColsRows()
|
|
143118
|
+
}],
|
|
143119
|
+
/**
|
|
143120
|
+
* Grid Column Start / End
|
|
143121
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
143122
|
+
*/
|
|
143123
|
+
'col-start-end': [{
|
|
143124
|
+
col: scaleGridColRowStartAndEnd()
|
|
143125
|
+
}],
|
|
143126
|
+
/**
|
|
143127
|
+
* Grid Column Start
|
|
143128
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
143129
|
+
*/
|
|
143130
|
+
'col-start': [{
|
|
143131
|
+
'col-start': scaleGridColRowStartOrEnd()
|
|
143132
|
+
}],
|
|
143133
|
+
/**
|
|
143134
|
+
* Grid Column End
|
|
143135
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
143136
|
+
*/
|
|
143137
|
+
'col-end': [{
|
|
143138
|
+
'col-end': scaleGridColRowStartOrEnd()
|
|
143139
|
+
}],
|
|
143140
|
+
/**
|
|
143141
|
+
* Grid Template Rows
|
|
143142
|
+
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
143143
|
+
*/
|
|
143144
|
+
'grid-rows': [{
|
|
143145
|
+
'grid-rows': scaleGridTemplateColsRows()
|
|
143146
|
+
}],
|
|
143147
|
+
/**
|
|
143148
|
+
* Grid Row Start / End
|
|
143149
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
143150
|
+
*/
|
|
143151
|
+
'row-start-end': [{
|
|
143152
|
+
row: scaleGridColRowStartAndEnd()
|
|
143153
|
+
}],
|
|
143154
|
+
/**
|
|
143155
|
+
* Grid Row Start
|
|
143156
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
143157
|
+
*/
|
|
143158
|
+
'row-start': [{
|
|
143159
|
+
'row-start': scaleGridColRowStartOrEnd()
|
|
143160
|
+
}],
|
|
143161
|
+
/**
|
|
143162
|
+
* Grid Row End
|
|
143163
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
143164
|
+
*/
|
|
143165
|
+
'row-end': [{
|
|
143166
|
+
'row-end': scaleGridColRowStartOrEnd()
|
|
143167
|
+
}],
|
|
143168
|
+
/**
|
|
143169
|
+
* Grid Auto Flow
|
|
143170
|
+
* @see https://tailwindcss.com/docs/grid-auto-flow
|
|
143171
|
+
*/
|
|
143172
|
+
'grid-flow': [{
|
|
143173
|
+
'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']
|
|
143174
|
+
}],
|
|
143175
|
+
/**
|
|
143176
|
+
* Grid Auto Columns
|
|
143177
|
+
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
143178
|
+
*/
|
|
143179
|
+
'auto-cols': [{
|
|
143180
|
+
'auto-cols': scaleGridAutoColsRows()
|
|
143181
|
+
}],
|
|
143182
|
+
/**
|
|
143183
|
+
* Grid Auto Rows
|
|
143184
|
+
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
143185
|
+
*/
|
|
143186
|
+
'auto-rows': [{
|
|
143187
|
+
'auto-rows': scaleGridAutoColsRows()
|
|
143188
|
+
}],
|
|
143189
|
+
/**
|
|
143190
|
+
* Gap
|
|
143191
|
+
* @see https://tailwindcss.com/docs/gap
|
|
143192
|
+
*/
|
|
143193
|
+
gap: [{
|
|
143194
|
+
gap: scaleUnambiguousSpacing()
|
|
143195
|
+
}],
|
|
143196
|
+
/**
|
|
143197
|
+
* Gap X
|
|
143198
|
+
* @see https://tailwindcss.com/docs/gap
|
|
143199
|
+
*/
|
|
143200
|
+
'gap-x': [{
|
|
143201
|
+
'gap-x': scaleUnambiguousSpacing()
|
|
143202
|
+
}],
|
|
143203
|
+
/**
|
|
143204
|
+
* Gap Y
|
|
143205
|
+
* @see https://tailwindcss.com/docs/gap
|
|
143206
|
+
*/
|
|
143207
|
+
'gap-y': [{
|
|
143208
|
+
'gap-y': scaleUnambiguousSpacing()
|
|
143209
|
+
}],
|
|
143210
|
+
/**
|
|
143211
|
+
* Justify Content
|
|
143212
|
+
* @see https://tailwindcss.com/docs/justify-content
|
|
143213
|
+
*/
|
|
143214
|
+
'justify-content': [{
|
|
143215
|
+
justify: [...scaleAlignPrimaryAxis(), 'normal']
|
|
143216
|
+
}],
|
|
143217
|
+
/**
|
|
143218
|
+
* Justify Items
|
|
143219
|
+
* @see https://tailwindcss.com/docs/justify-items
|
|
143220
|
+
*/
|
|
143221
|
+
'justify-items': [{
|
|
143222
|
+
'justify-items': [...scaleAlignSecondaryAxis(), 'normal']
|
|
143223
|
+
}],
|
|
143224
|
+
/**
|
|
143225
|
+
* Justify Self
|
|
143226
|
+
* @see https://tailwindcss.com/docs/justify-self
|
|
143227
|
+
*/
|
|
143228
|
+
'justify-self': [{
|
|
143229
|
+
'justify-self': ['auto', ...scaleAlignSecondaryAxis()]
|
|
143230
|
+
}],
|
|
143231
|
+
/**
|
|
143232
|
+
* Align Content
|
|
143233
|
+
* @see https://tailwindcss.com/docs/align-content
|
|
143234
|
+
*/
|
|
143235
|
+
'align-content': [{
|
|
143236
|
+
content: ['normal', ...scaleAlignPrimaryAxis()]
|
|
143237
|
+
}],
|
|
143238
|
+
/**
|
|
143239
|
+
* Align Items
|
|
143240
|
+
* @see https://tailwindcss.com/docs/align-items
|
|
143241
|
+
*/
|
|
143242
|
+
'align-items': [{
|
|
143243
|
+
items: [...scaleAlignSecondaryAxis(), {
|
|
143244
|
+
baseline: ['', 'last']
|
|
143245
|
+
}]
|
|
143246
|
+
}],
|
|
143247
|
+
/**
|
|
143248
|
+
* Align Self
|
|
143249
|
+
* @see https://tailwindcss.com/docs/align-self
|
|
143250
|
+
*/
|
|
143251
|
+
'align-self': [{
|
|
143252
|
+
self: ['auto', ...scaleAlignSecondaryAxis(), {
|
|
143253
|
+
baseline: ['', 'last']
|
|
143254
|
+
}]
|
|
143255
|
+
}],
|
|
143256
|
+
/**
|
|
143257
|
+
* Place Content
|
|
143258
|
+
* @see https://tailwindcss.com/docs/place-content
|
|
143259
|
+
*/
|
|
143260
|
+
'place-content': [{
|
|
143261
|
+
'place-content': scaleAlignPrimaryAxis()
|
|
143262
|
+
}],
|
|
143263
|
+
/**
|
|
143264
|
+
* Place Items
|
|
143265
|
+
* @see https://tailwindcss.com/docs/place-items
|
|
143266
|
+
*/
|
|
143267
|
+
'place-items': [{
|
|
143268
|
+
'place-items': [...scaleAlignSecondaryAxis(), 'baseline']
|
|
143269
|
+
}],
|
|
143270
|
+
/**
|
|
143271
|
+
* Place Self
|
|
143272
|
+
* @see https://tailwindcss.com/docs/place-self
|
|
143273
|
+
*/
|
|
143274
|
+
'place-self': [{
|
|
143275
|
+
'place-self': ['auto', ...scaleAlignSecondaryAxis()]
|
|
143276
|
+
}],
|
|
143277
|
+
// Spacing
|
|
143278
|
+
/**
|
|
143279
|
+
* Padding
|
|
143280
|
+
* @see https://tailwindcss.com/docs/padding
|
|
143281
|
+
*/
|
|
143282
|
+
p: [{
|
|
143283
|
+
p: scaleUnambiguousSpacing()
|
|
143284
|
+
}],
|
|
143285
|
+
/**
|
|
143286
|
+
* Padding Inline
|
|
143287
|
+
* @see https://tailwindcss.com/docs/padding
|
|
143288
|
+
*/
|
|
143289
|
+
px: [{
|
|
143290
|
+
px: scaleUnambiguousSpacing()
|
|
143291
|
+
}],
|
|
143292
|
+
/**
|
|
143293
|
+
* Padding Block
|
|
143294
|
+
* @see https://tailwindcss.com/docs/padding
|
|
143295
|
+
*/
|
|
143296
|
+
py: [{
|
|
143297
|
+
py: scaleUnambiguousSpacing()
|
|
143298
|
+
}],
|
|
143299
|
+
/**
|
|
143300
|
+
* Padding Inline Start
|
|
143301
|
+
* @see https://tailwindcss.com/docs/padding
|
|
143302
|
+
*/
|
|
143303
|
+
ps: [{
|
|
143304
|
+
ps: scaleUnambiguousSpacing()
|
|
143305
|
+
}],
|
|
143306
|
+
/**
|
|
143307
|
+
* Padding Inline End
|
|
143308
|
+
* @see https://tailwindcss.com/docs/padding
|
|
143309
|
+
*/
|
|
143310
|
+
pe: [{
|
|
143311
|
+
pe: scaleUnambiguousSpacing()
|
|
143312
|
+
}],
|
|
143313
|
+
/**
|
|
143314
|
+
* Padding Block Start
|
|
143315
|
+
* @see https://tailwindcss.com/docs/padding
|
|
143316
|
+
*/
|
|
143317
|
+
pbs: [{
|
|
143318
|
+
pbs: scaleUnambiguousSpacing()
|
|
143319
|
+
}],
|
|
143320
|
+
/**
|
|
143321
|
+
* Padding Block End
|
|
143322
|
+
* @see https://tailwindcss.com/docs/padding
|
|
143323
|
+
*/
|
|
143324
|
+
pbe: [{
|
|
143325
|
+
pbe: scaleUnambiguousSpacing()
|
|
143326
|
+
}],
|
|
143327
|
+
/**
|
|
143328
|
+
* Padding Top
|
|
143329
|
+
* @see https://tailwindcss.com/docs/padding
|
|
143330
|
+
*/
|
|
143331
|
+
pt: [{
|
|
143332
|
+
pt: scaleUnambiguousSpacing()
|
|
143333
|
+
}],
|
|
143334
|
+
/**
|
|
143335
|
+
* Padding Right
|
|
143336
|
+
* @see https://tailwindcss.com/docs/padding
|
|
143337
|
+
*/
|
|
143338
|
+
pr: [{
|
|
143339
|
+
pr: scaleUnambiguousSpacing()
|
|
143340
|
+
}],
|
|
143341
|
+
/**
|
|
143342
|
+
* Padding Bottom
|
|
143343
|
+
* @see https://tailwindcss.com/docs/padding
|
|
143344
|
+
*/
|
|
143345
|
+
pb: [{
|
|
143346
|
+
pb: scaleUnambiguousSpacing()
|
|
143347
|
+
}],
|
|
143348
|
+
/**
|
|
143349
|
+
* Padding Left
|
|
143350
|
+
* @see https://tailwindcss.com/docs/padding
|
|
143351
|
+
*/
|
|
143352
|
+
pl: [{
|
|
143353
|
+
pl: scaleUnambiguousSpacing()
|
|
143354
|
+
}],
|
|
143355
|
+
/**
|
|
143356
|
+
* Margin
|
|
143357
|
+
* @see https://tailwindcss.com/docs/margin
|
|
143358
|
+
*/
|
|
143359
|
+
m: [{
|
|
143360
|
+
m: scaleMargin()
|
|
143361
|
+
}],
|
|
143362
|
+
/**
|
|
143363
|
+
* Margin Inline
|
|
143364
|
+
* @see https://tailwindcss.com/docs/margin
|
|
143365
|
+
*/
|
|
143366
|
+
mx: [{
|
|
143367
|
+
mx: scaleMargin()
|
|
143368
|
+
}],
|
|
143369
|
+
/**
|
|
143370
|
+
* Margin Block
|
|
143371
|
+
* @see https://tailwindcss.com/docs/margin
|
|
143372
|
+
*/
|
|
143373
|
+
my: [{
|
|
143374
|
+
my: scaleMargin()
|
|
143375
|
+
}],
|
|
143376
|
+
/**
|
|
143377
|
+
* Margin Inline Start
|
|
143378
|
+
* @see https://tailwindcss.com/docs/margin
|
|
143379
|
+
*/
|
|
143380
|
+
ms: [{
|
|
143381
|
+
ms: scaleMargin()
|
|
143382
|
+
}],
|
|
143383
|
+
/**
|
|
143384
|
+
* Margin Inline End
|
|
143385
|
+
* @see https://tailwindcss.com/docs/margin
|
|
143386
|
+
*/
|
|
143387
|
+
me: [{
|
|
143388
|
+
me: scaleMargin()
|
|
143389
|
+
}],
|
|
143390
|
+
/**
|
|
143391
|
+
* Margin Block Start
|
|
143392
|
+
* @see https://tailwindcss.com/docs/margin
|
|
143393
|
+
*/
|
|
143394
|
+
mbs: [{
|
|
143395
|
+
mbs: scaleMargin()
|
|
143396
|
+
}],
|
|
143397
|
+
/**
|
|
143398
|
+
* Margin Block End
|
|
143399
|
+
* @see https://tailwindcss.com/docs/margin
|
|
143400
|
+
*/
|
|
143401
|
+
mbe: [{
|
|
143402
|
+
mbe: scaleMargin()
|
|
143403
|
+
}],
|
|
143404
|
+
/**
|
|
143405
|
+
* Margin Top
|
|
143406
|
+
* @see https://tailwindcss.com/docs/margin
|
|
143407
|
+
*/
|
|
143408
|
+
mt: [{
|
|
143409
|
+
mt: scaleMargin()
|
|
143410
|
+
}],
|
|
143411
|
+
/**
|
|
143412
|
+
* Margin Right
|
|
143413
|
+
* @see https://tailwindcss.com/docs/margin
|
|
143414
|
+
*/
|
|
143415
|
+
mr: [{
|
|
143416
|
+
mr: scaleMargin()
|
|
143417
|
+
}],
|
|
143418
|
+
/**
|
|
143419
|
+
* Margin Bottom
|
|
143420
|
+
* @see https://tailwindcss.com/docs/margin
|
|
143421
|
+
*/
|
|
143422
|
+
mb: [{
|
|
143423
|
+
mb: scaleMargin()
|
|
143424
|
+
}],
|
|
143425
|
+
/**
|
|
143426
|
+
* Margin Left
|
|
143427
|
+
* @see https://tailwindcss.com/docs/margin
|
|
143428
|
+
*/
|
|
143429
|
+
ml: [{
|
|
143430
|
+
ml: scaleMargin()
|
|
143431
|
+
}],
|
|
143432
|
+
/**
|
|
143433
|
+
* Space Between X
|
|
143434
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
143435
|
+
*/
|
|
143436
|
+
'space-x': [{
|
|
143437
|
+
'space-x': scaleUnambiguousSpacing()
|
|
143438
|
+
}],
|
|
143439
|
+
/**
|
|
143440
|
+
* Space Between X Reverse
|
|
143441
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
143442
|
+
*/
|
|
143443
|
+
'space-x-reverse': ['space-x-reverse'],
|
|
143444
|
+
/**
|
|
143445
|
+
* Space Between Y
|
|
143446
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
143447
|
+
*/
|
|
143448
|
+
'space-y': [{
|
|
143449
|
+
'space-y': scaleUnambiguousSpacing()
|
|
143450
|
+
}],
|
|
143451
|
+
/**
|
|
143452
|
+
* Space Between Y Reverse
|
|
143453
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
143454
|
+
*/
|
|
143455
|
+
'space-y-reverse': ['space-y-reverse'],
|
|
143456
|
+
// --------------
|
|
143457
|
+
// --- Sizing ---
|
|
143458
|
+
// --------------
|
|
143459
|
+
/**
|
|
143460
|
+
* Size
|
|
143461
|
+
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
143462
|
+
*/
|
|
143463
|
+
size: [{
|
|
143464
|
+
size: scaleSizing()
|
|
143465
|
+
}],
|
|
143466
|
+
/**
|
|
143467
|
+
* Inline Size
|
|
143468
|
+
* @see https://tailwindcss.com/docs/width
|
|
143469
|
+
*/
|
|
143470
|
+
'inline-size': [{
|
|
143471
|
+
inline: ['auto', ...scaleSizingInline()]
|
|
143472
|
+
}],
|
|
143473
|
+
/**
|
|
143474
|
+
* Min-Inline Size
|
|
143475
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
143476
|
+
*/
|
|
143477
|
+
'min-inline-size': [{
|
|
143478
|
+
'min-inline': ['auto', ...scaleSizingInline()]
|
|
143479
|
+
}],
|
|
143480
|
+
/**
|
|
143481
|
+
* Max-Inline Size
|
|
143482
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
143483
|
+
*/
|
|
143484
|
+
'max-inline-size': [{
|
|
143485
|
+
'max-inline': ['none', ...scaleSizingInline()]
|
|
143486
|
+
}],
|
|
143487
|
+
/**
|
|
143488
|
+
* Block Size
|
|
143489
|
+
* @see https://tailwindcss.com/docs/height
|
|
143490
|
+
*/
|
|
143491
|
+
'block-size': [{
|
|
143492
|
+
block: ['auto', ...scaleSizingBlock()]
|
|
143493
|
+
}],
|
|
143494
|
+
/**
|
|
143495
|
+
* Min-Block Size
|
|
143496
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
143497
|
+
*/
|
|
143498
|
+
'min-block-size': [{
|
|
143499
|
+
'min-block': ['auto', ...scaleSizingBlock()]
|
|
143500
|
+
}],
|
|
143501
|
+
/**
|
|
143502
|
+
* Max-Block Size
|
|
143503
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
143504
|
+
*/
|
|
143505
|
+
'max-block-size': [{
|
|
143506
|
+
'max-block': ['none', ...scaleSizingBlock()]
|
|
143507
|
+
}],
|
|
143508
|
+
/**
|
|
143509
|
+
* Width
|
|
143510
|
+
* @see https://tailwindcss.com/docs/width
|
|
143511
|
+
*/
|
|
143512
|
+
w: [{
|
|
143513
|
+
w: [themeContainer, 'screen', ...scaleSizing()]
|
|
143514
|
+
}],
|
|
143515
|
+
/**
|
|
143516
|
+
* Min-Width
|
|
143517
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
143518
|
+
*/
|
|
143519
|
+
'min-w': [{
|
|
143520
|
+
'min-w': [themeContainer, 'screen', /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
143521
|
+
'none', ...scaleSizing()]
|
|
143522
|
+
}],
|
|
143523
|
+
/**
|
|
143524
|
+
* Max-Width
|
|
143525
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
143526
|
+
*/
|
|
143527
|
+
'max-w': [{
|
|
143528
|
+
'max-w': [themeContainer, 'screen', 'none', /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
143529
|
+
'prose', /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
143530
|
+
{
|
|
143531
|
+
screen: [themeBreakpoint]
|
|
143532
|
+
}, ...scaleSizing()]
|
|
143533
|
+
}],
|
|
143534
|
+
/**
|
|
143535
|
+
* Height
|
|
143536
|
+
* @see https://tailwindcss.com/docs/height
|
|
143537
|
+
*/
|
|
143538
|
+
h: [{
|
|
143539
|
+
h: ['screen', 'lh', ...scaleSizing()]
|
|
143540
|
+
}],
|
|
143541
|
+
/**
|
|
143542
|
+
* Min-Height
|
|
143543
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
143544
|
+
*/
|
|
143545
|
+
'min-h': [{
|
|
143546
|
+
'min-h': ['screen', 'lh', 'none', ...scaleSizing()]
|
|
143547
|
+
}],
|
|
143548
|
+
/**
|
|
143549
|
+
* Max-Height
|
|
143550
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
143551
|
+
*/
|
|
143552
|
+
'max-h': [{
|
|
143553
|
+
'max-h': ['screen', 'lh', ...scaleSizing()]
|
|
143554
|
+
}],
|
|
143555
|
+
// ------------------
|
|
143556
|
+
// --- Typography ---
|
|
143557
|
+
// ------------------
|
|
143558
|
+
/**
|
|
143559
|
+
* Font Size
|
|
143560
|
+
* @see https://tailwindcss.com/docs/font-size
|
|
143561
|
+
*/
|
|
143562
|
+
'font-size': [{
|
|
143563
|
+
text: ['base', themeText, isArbitraryVariableLength, isArbitraryLength]
|
|
143564
|
+
}],
|
|
143565
|
+
/**
|
|
143566
|
+
* Font Smoothing
|
|
143567
|
+
* @see https://tailwindcss.com/docs/font-smoothing
|
|
143568
|
+
*/
|
|
143569
|
+
'font-smoothing': ['antialiased', 'subpixel-antialiased'],
|
|
143570
|
+
/**
|
|
143571
|
+
* Font Style
|
|
143572
|
+
* @see https://tailwindcss.com/docs/font-style
|
|
143573
|
+
*/
|
|
143574
|
+
'font-style': ['italic', 'not-italic'],
|
|
143575
|
+
/**
|
|
143576
|
+
* Font Weight
|
|
143577
|
+
* @see https://tailwindcss.com/docs/font-weight
|
|
143578
|
+
*/
|
|
143579
|
+
'font-weight': [{
|
|
143580
|
+
font: [themeFontWeight, isArbitraryVariableWeight, isArbitraryWeight]
|
|
143581
|
+
}],
|
|
143582
|
+
/**
|
|
143583
|
+
* Font Stretch
|
|
143584
|
+
* @see https://tailwindcss.com/docs/font-stretch
|
|
143585
|
+
*/
|
|
143586
|
+
'font-stretch': [{
|
|
143587
|
+
'font-stretch': ['ultra-condensed', 'extra-condensed', 'condensed', 'semi-condensed', 'normal', 'semi-expanded', 'expanded', 'extra-expanded', 'ultra-expanded', isPercent, isArbitraryValue]
|
|
143588
|
+
}],
|
|
143589
|
+
/**
|
|
143590
|
+
* Font Family
|
|
143591
|
+
* @see https://tailwindcss.com/docs/font-family
|
|
143592
|
+
*/
|
|
143593
|
+
'font-family': [{
|
|
143594
|
+
font: [isArbitraryVariableFamilyName, isArbitraryFamilyName, themeFont]
|
|
143595
|
+
}],
|
|
143596
|
+
/**
|
|
143597
|
+
* Font Feature Settings
|
|
143598
|
+
* @see https://tailwindcss.com/docs/font-feature-settings
|
|
143599
|
+
*/
|
|
143600
|
+
'font-features': [{
|
|
143601
|
+
'font-features': [isArbitraryValue]
|
|
143602
|
+
}],
|
|
143603
|
+
/**
|
|
143604
|
+
* Font Variant Numeric
|
|
143605
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
143606
|
+
*/
|
|
143607
|
+
'fvn-normal': ['normal-nums'],
|
|
143608
|
+
/**
|
|
143609
|
+
* Font Variant Numeric
|
|
143610
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
143611
|
+
*/
|
|
143612
|
+
'fvn-ordinal': ['ordinal'],
|
|
143613
|
+
/**
|
|
143614
|
+
* Font Variant Numeric
|
|
143615
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
143616
|
+
*/
|
|
143617
|
+
'fvn-slashed-zero': ['slashed-zero'],
|
|
143618
|
+
/**
|
|
143619
|
+
* Font Variant Numeric
|
|
143620
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
143621
|
+
*/
|
|
143622
|
+
'fvn-figure': ['lining-nums', 'oldstyle-nums'],
|
|
143623
|
+
/**
|
|
143624
|
+
* Font Variant Numeric
|
|
143625
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
143626
|
+
*/
|
|
143627
|
+
'fvn-spacing': ['proportional-nums', 'tabular-nums'],
|
|
143628
|
+
/**
|
|
143629
|
+
* Font Variant Numeric
|
|
143630
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
143631
|
+
*/
|
|
143632
|
+
'fvn-fraction': ['diagonal-fractions', 'stacked-fractions'],
|
|
143633
|
+
/**
|
|
143634
|
+
* Letter Spacing
|
|
143635
|
+
* @see https://tailwindcss.com/docs/letter-spacing
|
|
143636
|
+
*/
|
|
143637
|
+
tracking: [{
|
|
143638
|
+
tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]
|
|
143639
|
+
}],
|
|
143640
|
+
/**
|
|
143641
|
+
* Line Clamp
|
|
143642
|
+
* @see https://tailwindcss.com/docs/line-clamp
|
|
143643
|
+
*/
|
|
143644
|
+
'line-clamp': [{
|
|
143645
|
+
'line-clamp': [isNumber, 'none', isArbitraryVariable, isArbitraryNumber]
|
|
143646
|
+
}],
|
|
143647
|
+
/**
|
|
143648
|
+
* Line Height
|
|
143649
|
+
* @see https://tailwindcss.com/docs/line-height
|
|
143650
|
+
*/
|
|
143651
|
+
leading: [{
|
|
143652
|
+
leading: [/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
143653
|
+
themeLeading, ...scaleUnambiguousSpacing()]
|
|
143654
|
+
}],
|
|
143655
|
+
/**
|
|
143656
|
+
* List Style Image
|
|
143657
|
+
* @see https://tailwindcss.com/docs/list-style-image
|
|
143658
|
+
*/
|
|
143659
|
+
'list-image': [{
|
|
143660
|
+
'list-image': ['none', isArbitraryVariable, isArbitraryValue]
|
|
143661
|
+
}],
|
|
143662
|
+
/**
|
|
143663
|
+
* List Style Position
|
|
143664
|
+
* @see https://tailwindcss.com/docs/list-style-position
|
|
143665
|
+
*/
|
|
143666
|
+
'list-style-position': [{
|
|
143667
|
+
list: ['inside', 'outside']
|
|
143668
|
+
}],
|
|
143669
|
+
/**
|
|
143670
|
+
* List Style Type
|
|
143671
|
+
* @see https://tailwindcss.com/docs/list-style-type
|
|
143672
|
+
*/
|
|
143673
|
+
'list-style-type': [{
|
|
143674
|
+
list: ['disc', 'decimal', 'none', isArbitraryVariable, isArbitraryValue]
|
|
143675
|
+
}],
|
|
143676
|
+
/**
|
|
143677
|
+
* Text Alignment
|
|
143678
|
+
* @see https://tailwindcss.com/docs/text-align
|
|
143679
|
+
*/
|
|
143680
|
+
'text-alignment': [{
|
|
143681
|
+
text: ['left', 'center', 'right', 'justify', 'start', 'end']
|
|
143682
|
+
}],
|
|
143683
|
+
/**
|
|
143684
|
+
* Placeholder Color
|
|
143685
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
143686
|
+
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
143687
|
+
*/
|
|
143688
|
+
'placeholder-color': [{
|
|
143689
|
+
placeholder: scaleColor()
|
|
143690
|
+
}],
|
|
143691
|
+
/**
|
|
143692
|
+
* Text Color
|
|
143693
|
+
* @see https://tailwindcss.com/docs/text-color
|
|
143694
|
+
*/
|
|
143695
|
+
'text-color': [{
|
|
143696
|
+
text: scaleColor()
|
|
143697
|
+
}],
|
|
143698
|
+
/**
|
|
143699
|
+
* Text Decoration
|
|
143700
|
+
* @see https://tailwindcss.com/docs/text-decoration
|
|
143701
|
+
*/
|
|
143702
|
+
'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],
|
|
143703
|
+
/**
|
|
143704
|
+
* Text Decoration Style
|
|
143705
|
+
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
143706
|
+
*/
|
|
143707
|
+
'text-decoration-style': [{
|
|
143708
|
+
decoration: [...scaleLineStyle(), 'wavy']
|
|
143709
|
+
}],
|
|
143710
|
+
/**
|
|
143711
|
+
* Text Decoration Thickness
|
|
143712
|
+
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
143713
|
+
*/
|
|
143714
|
+
'text-decoration-thickness': [{
|
|
143715
|
+
decoration: [isNumber, 'from-font', 'auto', isArbitraryVariable, isArbitraryLength]
|
|
143716
|
+
}],
|
|
143717
|
+
/**
|
|
143718
|
+
* Text Decoration Color
|
|
143719
|
+
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
143720
|
+
*/
|
|
143721
|
+
'text-decoration-color': [{
|
|
143722
|
+
decoration: scaleColor()
|
|
143723
|
+
}],
|
|
143724
|
+
/**
|
|
143725
|
+
* Text Underline Offset
|
|
143726
|
+
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
143727
|
+
*/
|
|
143728
|
+
'underline-offset': [{
|
|
143729
|
+
'underline-offset': [isNumber, 'auto', isArbitraryVariable, isArbitraryValue]
|
|
143730
|
+
}],
|
|
143731
|
+
/**
|
|
143732
|
+
* Text Transform
|
|
143733
|
+
* @see https://tailwindcss.com/docs/text-transform
|
|
143734
|
+
*/
|
|
143735
|
+
'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],
|
|
143736
|
+
/**
|
|
143737
|
+
* Text Overflow
|
|
143738
|
+
* @see https://tailwindcss.com/docs/text-overflow
|
|
143739
|
+
*/
|
|
143740
|
+
'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],
|
|
143741
|
+
/**
|
|
143742
|
+
* Text Wrap
|
|
143743
|
+
* @see https://tailwindcss.com/docs/text-wrap
|
|
143744
|
+
*/
|
|
143745
|
+
'text-wrap': [{
|
|
143746
|
+
text: ['wrap', 'nowrap', 'balance', 'pretty']
|
|
143747
|
+
}],
|
|
143748
|
+
/**
|
|
143749
|
+
* Text Indent
|
|
143750
|
+
* @see https://tailwindcss.com/docs/text-indent
|
|
143751
|
+
*/
|
|
143752
|
+
indent: [{
|
|
143753
|
+
indent: scaleUnambiguousSpacing()
|
|
143754
|
+
}],
|
|
143755
|
+
/**
|
|
143756
|
+
* Vertical Alignment
|
|
143757
|
+
* @see https://tailwindcss.com/docs/vertical-align
|
|
143758
|
+
*/
|
|
143759
|
+
'vertical-align': [{
|
|
143760
|
+
align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryVariable, isArbitraryValue]
|
|
143761
|
+
}],
|
|
143762
|
+
/**
|
|
143763
|
+
* Whitespace
|
|
143764
|
+
* @see https://tailwindcss.com/docs/whitespace
|
|
143765
|
+
*/
|
|
143766
|
+
whitespace: [{
|
|
143767
|
+
whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']
|
|
143768
|
+
}],
|
|
143769
|
+
/**
|
|
143770
|
+
* Word Break
|
|
143771
|
+
* @see https://tailwindcss.com/docs/word-break
|
|
143772
|
+
*/
|
|
143773
|
+
break: [{
|
|
143774
|
+
break: ['normal', 'words', 'all', 'keep']
|
|
143775
|
+
}],
|
|
143776
|
+
/**
|
|
143777
|
+
* Overflow Wrap
|
|
143778
|
+
* @see https://tailwindcss.com/docs/overflow-wrap
|
|
143779
|
+
*/
|
|
143780
|
+
wrap: [{
|
|
143781
|
+
wrap: ['break-word', 'anywhere', 'normal']
|
|
143782
|
+
}],
|
|
143783
|
+
/**
|
|
143784
|
+
* Hyphens
|
|
143785
|
+
* @see https://tailwindcss.com/docs/hyphens
|
|
143786
|
+
*/
|
|
143787
|
+
hyphens: [{
|
|
143788
|
+
hyphens: ['none', 'manual', 'auto']
|
|
143789
|
+
}],
|
|
143790
|
+
/**
|
|
143791
|
+
* Content
|
|
143792
|
+
* @see https://tailwindcss.com/docs/content
|
|
143793
|
+
*/
|
|
143794
|
+
content: [{
|
|
143795
|
+
content: ['none', isArbitraryVariable, isArbitraryValue]
|
|
143796
|
+
}],
|
|
143797
|
+
// -------------------
|
|
143798
|
+
// --- Backgrounds ---
|
|
143799
|
+
// -------------------
|
|
143800
|
+
/**
|
|
143801
|
+
* Background Attachment
|
|
143802
|
+
* @see https://tailwindcss.com/docs/background-attachment
|
|
143803
|
+
*/
|
|
143804
|
+
'bg-attachment': [{
|
|
143805
|
+
bg: ['fixed', 'local', 'scroll']
|
|
143806
|
+
}],
|
|
143807
|
+
/**
|
|
143808
|
+
* Background Clip
|
|
143809
|
+
* @see https://tailwindcss.com/docs/background-clip
|
|
143810
|
+
*/
|
|
143811
|
+
'bg-clip': [{
|
|
143812
|
+
'bg-clip': ['border', 'padding', 'content', 'text']
|
|
143813
|
+
}],
|
|
143814
|
+
/**
|
|
143815
|
+
* Background Origin
|
|
143816
|
+
* @see https://tailwindcss.com/docs/background-origin
|
|
143817
|
+
*/
|
|
143818
|
+
'bg-origin': [{
|
|
143819
|
+
'bg-origin': ['border', 'padding', 'content']
|
|
143820
|
+
}],
|
|
143821
|
+
/**
|
|
143822
|
+
* Background Position
|
|
143823
|
+
* @see https://tailwindcss.com/docs/background-position
|
|
143824
|
+
*/
|
|
143825
|
+
'bg-position': [{
|
|
143826
|
+
bg: scaleBgPosition()
|
|
143827
|
+
}],
|
|
143828
|
+
/**
|
|
143829
|
+
* Background Repeat
|
|
143830
|
+
* @see https://tailwindcss.com/docs/background-repeat
|
|
143831
|
+
*/
|
|
143832
|
+
'bg-repeat': [{
|
|
143833
|
+
bg: scaleBgRepeat()
|
|
143834
|
+
}],
|
|
143835
|
+
/**
|
|
143836
|
+
* Background Size
|
|
143837
|
+
* @see https://tailwindcss.com/docs/background-size
|
|
143838
|
+
*/
|
|
143839
|
+
'bg-size': [{
|
|
143840
|
+
bg: scaleBgSize()
|
|
143841
|
+
}],
|
|
143842
|
+
/**
|
|
143843
|
+
* Background Image
|
|
143844
|
+
* @see https://tailwindcss.com/docs/background-image
|
|
143845
|
+
*/
|
|
143846
|
+
'bg-image': [{
|
|
143847
|
+
bg: ['none', {
|
|
143848
|
+
linear: [{
|
|
143849
|
+
to: ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']
|
|
143850
|
+
}, isInteger, isArbitraryVariable, isArbitraryValue],
|
|
143851
|
+
radial: ['', isArbitraryVariable, isArbitraryValue],
|
|
143852
|
+
conic: [isInteger, isArbitraryVariable, isArbitraryValue]
|
|
143853
|
+
}, isArbitraryVariableImage, isArbitraryImage]
|
|
143854
|
+
}],
|
|
143855
|
+
/**
|
|
143856
|
+
* Background Color
|
|
143857
|
+
* @see https://tailwindcss.com/docs/background-color
|
|
143858
|
+
*/
|
|
143859
|
+
'bg-color': [{
|
|
143860
|
+
bg: scaleColor()
|
|
143861
|
+
}],
|
|
143862
|
+
/**
|
|
143863
|
+
* Gradient Color Stops From Position
|
|
143864
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
143865
|
+
*/
|
|
143866
|
+
'gradient-from-pos': [{
|
|
143867
|
+
from: scaleGradientStopPosition()
|
|
143868
|
+
}],
|
|
143869
|
+
/**
|
|
143870
|
+
* Gradient Color Stops Via Position
|
|
143871
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
143872
|
+
*/
|
|
143873
|
+
'gradient-via-pos': [{
|
|
143874
|
+
via: scaleGradientStopPosition()
|
|
143875
|
+
}],
|
|
143876
|
+
/**
|
|
143877
|
+
* Gradient Color Stops To Position
|
|
143878
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
143879
|
+
*/
|
|
143880
|
+
'gradient-to-pos': [{
|
|
143881
|
+
to: scaleGradientStopPosition()
|
|
143882
|
+
}],
|
|
143883
|
+
/**
|
|
143884
|
+
* Gradient Color Stops From
|
|
143885
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
143886
|
+
*/
|
|
143887
|
+
'gradient-from': [{
|
|
143888
|
+
from: scaleColor()
|
|
143889
|
+
}],
|
|
143890
|
+
/**
|
|
143891
|
+
* Gradient Color Stops Via
|
|
143892
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
143893
|
+
*/
|
|
143894
|
+
'gradient-via': [{
|
|
143895
|
+
via: scaleColor()
|
|
143896
|
+
}],
|
|
143897
|
+
/**
|
|
143898
|
+
* Gradient Color Stops To
|
|
143899
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
143900
|
+
*/
|
|
143901
|
+
'gradient-to': [{
|
|
143902
|
+
to: scaleColor()
|
|
143903
|
+
}],
|
|
143904
|
+
// ---------------
|
|
143905
|
+
// --- Borders ---
|
|
143906
|
+
// ---------------
|
|
143907
|
+
/**
|
|
143908
|
+
* Border Radius
|
|
143909
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
143910
|
+
*/
|
|
143911
|
+
rounded: [{
|
|
143912
|
+
rounded: scaleRadius()
|
|
143913
|
+
}],
|
|
143914
|
+
/**
|
|
143915
|
+
* Border Radius Start
|
|
143916
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
143917
|
+
*/
|
|
143918
|
+
'rounded-s': [{
|
|
143919
|
+
'rounded-s': scaleRadius()
|
|
143920
|
+
}],
|
|
143921
|
+
/**
|
|
143922
|
+
* Border Radius End
|
|
143923
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
143924
|
+
*/
|
|
143925
|
+
'rounded-e': [{
|
|
143926
|
+
'rounded-e': scaleRadius()
|
|
143927
|
+
}],
|
|
143928
|
+
/**
|
|
143929
|
+
* Border Radius Top
|
|
143930
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
143931
|
+
*/
|
|
143932
|
+
'rounded-t': [{
|
|
143933
|
+
'rounded-t': scaleRadius()
|
|
143934
|
+
}],
|
|
143935
|
+
/**
|
|
143936
|
+
* Border Radius Right
|
|
143937
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
143938
|
+
*/
|
|
143939
|
+
'rounded-r': [{
|
|
143940
|
+
'rounded-r': scaleRadius()
|
|
143941
|
+
}],
|
|
143942
|
+
/**
|
|
143943
|
+
* Border Radius Bottom
|
|
143944
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
143945
|
+
*/
|
|
143946
|
+
'rounded-b': [{
|
|
143947
|
+
'rounded-b': scaleRadius()
|
|
143948
|
+
}],
|
|
143949
|
+
/**
|
|
143950
|
+
* Border Radius Left
|
|
143951
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
143952
|
+
*/
|
|
143953
|
+
'rounded-l': [{
|
|
143954
|
+
'rounded-l': scaleRadius()
|
|
143955
|
+
}],
|
|
143956
|
+
/**
|
|
143957
|
+
* Border Radius Start Start
|
|
143958
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
143959
|
+
*/
|
|
143960
|
+
'rounded-ss': [{
|
|
143961
|
+
'rounded-ss': scaleRadius()
|
|
143962
|
+
}],
|
|
143963
|
+
/**
|
|
143964
|
+
* Border Radius Start End
|
|
143965
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
143966
|
+
*/
|
|
143967
|
+
'rounded-se': [{
|
|
143968
|
+
'rounded-se': scaleRadius()
|
|
143969
|
+
}],
|
|
143970
|
+
/**
|
|
143971
|
+
* Border Radius End End
|
|
143972
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
143973
|
+
*/
|
|
143974
|
+
'rounded-ee': [{
|
|
143975
|
+
'rounded-ee': scaleRadius()
|
|
143976
|
+
}],
|
|
143977
|
+
/**
|
|
143978
|
+
* Border Radius End Start
|
|
143979
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
143980
|
+
*/
|
|
143981
|
+
'rounded-es': [{
|
|
143982
|
+
'rounded-es': scaleRadius()
|
|
143983
|
+
}],
|
|
143984
|
+
/**
|
|
143985
|
+
* Border Radius Top Left
|
|
143986
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
143987
|
+
*/
|
|
143988
|
+
'rounded-tl': [{
|
|
143989
|
+
'rounded-tl': scaleRadius()
|
|
143990
|
+
}],
|
|
143991
|
+
/**
|
|
143992
|
+
* Border Radius Top Right
|
|
143993
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
143994
|
+
*/
|
|
143995
|
+
'rounded-tr': [{
|
|
143996
|
+
'rounded-tr': scaleRadius()
|
|
143997
|
+
}],
|
|
143998
|
+
/**
|
|
143999
|
+
* Border Radius Bottom Right
|
|
144000
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
144001
|
+
*/
|
|
144002
|
+
'rounded-br': [{
|
|
144003
|
+
'rounded-br': scaleRadius()
|
|
144004
|
+
}],
|
|
144005
|
+
/**
|
|
144006
|
+
* Border Radius Bottom Left
|
|
144007
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
144008
|
+
*/
|
|
144009
|
+
'rounded-bl': [{
|
|
144010
|
+
'rounded-bl': scaleRadius()
|
|
144011
|
+
}],
|
|
144012
|
+
/**
|
|
144013
|
+
* Border Width
|
|
144014
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
144015
|
+
*/
|
|
144016
|
+
'border-w': [{
|
|
144017
|
+
border: scaleBorderWidth()
|
|
144018
|
+
}],
|
|
144019
|
+
/**
|
|
144020
|
+
* Border Width Inline
|
|
144021
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
144022
|
+
*/
|
|
144023
|
+
'border-w-x': [{
|
|
144024
|
+
'border-x': scaleBorderWidth()
|
|
144025
|
+
}],
|
|
144026
|
+
/**
|
|
144027
|
+
* Border Width Block
|
|
144028
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
144029
|
+
*/
|
|
144030
|
+
'border-w-y': [{
|
|
144031
|
+
'border-y': scaleBorderWidth()
|
|
144032
|
+
}],
|
|
144033
|
+
/**
|
|
144034
|
+
* Border Width Inline Start
|
|
144035
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
144036
|
+
*/
|
|
144037
|
+
'border-w-s': [{
|
|
144038
|
+
'border-s': scaleBorderWidth()
|
|
144039
|
+
}],
|
|
144040
|
+
/**
|
|
144041
|
+
* Border Width Inline End
|
|
144042
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
144043
|
+
*/
|
|
144044
|
+
'border-w-e': [{
|
|
144045
|
+
'border-e': scaleBorderWidth()
|
|
144046
|
+
}],
|
|
144047
|
+
/**
|
|
144048
|
+
* Border Width Block Start
|
|
144049
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
144050
|
+
*/
|
|
144051
|
+
'border-w-bs': [{
|
|
144052
|
+
'border-bs': scaleBorderWidth()
|
|
144053
|
+
}],
|
|
144054
|
+
/**
|
|
144055
|
+
* Border Width Block End
|
|
144056
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
144057
|
+
*/
|
|
144058
|
+
'border-w-be': [{
|
|
144059
|
+
'border-be': scaleBorderWidth()
|
|
144060
|
+
}],
|
|
144061
|
+
/**
|
|
144062
|
+
* Border Width Top
|
|
144063
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
144064
|
+
*/
|
|
144065
|
+
'border-w-t': [{
|
|
144066
|
+
'border-t': scaleBorderWidth()
|
|
144067
|
+
}],
|
|
144068
|
+
/**
|
|
144069
|
+
* Border Width Right
|
|
144070
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
144071
|
+
*/
|
|
144072
|
+
'border-w-r': [{
|
|
144073
|
+
'border-r': scaleBorderWidth()
|
|
144074
|
+
}],
|
|
144075
|
+
/**
|
|
144076
|
+
* Border Width Bottom
|
|
144077
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
144078
|
+
*/
|
|
144079
|
+
'border-w-b': [{
|
|
144080
|
+
'border-b': scaleBorderWidth()
|
|
144081
|
+
}],
|
|
144082
|
+
/**
|
|
144083
|
+
* Border Width Left
|
|
144084
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
144085
|
+
*/
|
|
144086
|
+
'border-w-l': [{
|
|
144087
|
+
'border-l': scaleBorderWidth()
|
|
144088
|
+
}],
|
|
144089
|
+
/**
|
|
144090
|
+
* Divide Width X
|
|
144091
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
144092
|
+
*/
|
|
144093
|
+
'divide-x': [{
|
|
144094
|
+
'divide-x': scaleBorderWidth()
|
|
144095
|
+
}],
|
|
144096
|
+
/**
|
|
144097
|
+
* Divide Width X Reverse
|
|
144098
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
144099
|
+
*/
|
|
144100
|
+
'divide-x-reverse': ['divide-x-reverse'],
|
|
144101
|
+
/**
|
|
144102
|
+
* Divide Width Y
|
|
144103
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
144104
|
+
*/
|
|
144105
|
+
'divide-y': [{
|
|
144106
|
+
'divide-y': scaleBorderWidth()
|
|
144107
|
+
}],
|
|
144108
|
+
/**
|
|
144109
|
+
* Divide Width Y Reverse
|
|
144110
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
144111
|
+
*/
|
|
144112
|
+
'divide-y-reverse': ['divide-y-reverse'],
|
|
144113
|
+
/**
|
|
144114
|
+
* Border Style
|
|
144115
|
+
* @see https://tailwindcss.com/docs/border-style
|
|
144116
|
+
*/
|
|
144117
|
+
'border-style': [{
|
|
144118
|
+
border: [...scaleLineStyle(), 'hidden', 'none']
|
|
144119
|
+
}],
|
|
144120
|
+
/**
|
|
144121
|
+
* Divide Style
|
|
144122
|
+
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
144123
|
+
*/
|
|
144124
|
+
'divide-style': [{
|
|
144125
|
+
divide: [...scaleLineStyle(), 'hidden', 'none']
|
|
144126
|
+
}],
|
|
144127
|
+
/**
|
|
144128
|
+
* Border Color
|
|
144129
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
144130
|
+
*/
|
|
144131
|
+
'border-color': [{
|
|
144132
|
+
border: scaleColor()
|
|
144133
|
+
}],
|
|
144134
|
+
/**
|
|
144135
|
+
* Border Color Inline
|
|
144136
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
144137
|
+
*/
|
|
144138
|
+
'border-color-x': [{
|
|
144139
|
+
'border-x': scaleColor()
|
|
144140
|
+
}],
|
|
144141
|
+
/**
|
|
144142
|
+
* Border Color Block
|
|
144143
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
144144
|
+
*/
|
|
144145
|
+
'border-color-y': [{
|
|
144146
|
+
'border-y': scaleColor()
|
|
144147
|
+
}],
|
|
144148
|
+
/**
|
|
144149
|
+
* Border Color Inline Start
|
|
144150
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
144151
|
+
*/
|
|
144152
|
+
'border-color-s': [{
|
|
144153
|
+
'border-s': scaleColor()
|
|
144154
|
+
}],
|
|
144155
|
+
/**
|
|
144156
|
+
* Border Color Inline End
|
|
144157
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
144158
|
+
*/
|
|
144159
|
+
'border-color-e': [{
|
|
144160
|
+
'border-e': scaleColor()
|
|
144161
|
+
}],
|
|
144162
|
+
/**
|
|
144163
|
+
* Border Color Block Start
|
|
144164
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
144165
|
+
*/
|
|
144166
|
+
'border-color-bs': [{
|
|
144167
|
+
'border-bs': scaleColor()
|
|
144168
|
+
}],
|
|
144169
|
+
/**
|
|
144170
|
+
* Border Color Block End
|
|
144171
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
144172
|
+
*/
|
|
144173
|
+
'border-color-be': [{
|
|
144174
|
+
'border-be': scaleColor()
|
|
144175
|
+
}],
|
|
144176
|
+
/**
|
|
144177
|
+
* Border Color Top
|
|
144178
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
144179
|
+
*/
|
|
144180
|
+
'border-color-t': [{
|
|
144181
|
+
'border-t': scaleColor()
|
|
144182
|
+
}],
|
|
144183
|
+
/**
|
|
144184
|
+
* Border Color Right
|
|
144185
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
144186
|
+
*/
|
|
144187
|
+
'border-color-r': [{
|
|
144188
|
+
'border-r': scaleColor()
|
|
144189
|
+
}],
|
|
144190
|
+
/**
|
|
144191
|
+
* Border Color Bottom
|
|
144192
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
144193
|
+
*/
|
|
144194
|
+
'border-color-b': [{
|
|
144195
|
+
'border-b': scaleColor()
|
|
144196
|
+
}],
|
|
144197
|
+
/**
|
|
144198
|
+
* Border Color Left
|
|
144199
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
144200
|
+
*/
|
|
144201
|
+
'border-color-l': [{
|
|
144202
|
+
'border-l': scaleColor()
|
|
144203
|
+
}],
|
|
144204
|
+
/**
|
|
144205
|
+
* Divide Color
|
|
144206
|
+
* @see https://tailwindcss.com/docs/divide-color
|
|
144207
|
+
*/
|
|
144208
|
+
'divide-color': [{
|
|
144209
|
+
divide: scaleColor()
|
|
144210
|
+
}],
|
|
144211
|
+
/**
|
|
144212
|
+
* Outline Style
|
|
144213
|
+
* @see https://tailwindcss.com/docs/outline-style
|
|
144214
|
+
*/
|
|
144215
|
+
'outline-style': [{
|
|
144216
|
+
outline: [...scaleLineStyle(), 'none', 'hidden']
|
|
144217
|
+
}],
|
|
144218
|
+
/**
|
|
144219
|
+
* Outline Offset
|
|
144220
|
+
* @see https://tailwindcss.com/docs/outline-offset
|
|
144221
|
+
*/
|
|
144222
|
+
'outline-offset': [{
|
|
144223
|
+
'outline-offset': [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144224
|
+
}],
|
|
144225
|
+
/**
|
|
144226
|
+
* Outline Width
|
|
144227
|
+
* @see https://tailwindcss.com/docs/outline-width
|
|
144228
|
+
*/
|
|
144229
|
+
'outline-w': [{
|
|
144230
|
+
outline: ['', isNumber, isArbitraryVariableLength, isArbitraryLength]
|
|
144231
|
+
}],
|
|
144232
|
+
/**
|
|
144233
|
+
* Outline Color
|
|
144234
|
+
* @see https://tailwindcss.com/docs/outline-color
|
|
144235
|
+
*/
|
|
144236
|
+
'outline-color': [{
|
|
144237
|
+
outline: scaleColor()
|
|
144238
|
+
}],
|
|
144239
|
+
// ---------------
|
|
144240
|
+
// --- Effects ---
|
|
144241
|
+
// ---------------
|
|
144242
|
+
/**
|
|
144243
|
+
* Box Shadow
|
|
144244
|
+
* @see https://tailwindcss.com/docs/box-shadow
|
|
144245
|
+
*/
|
|
144246
|
+
shadow: [{
|
|
144247
|
+
shadow: [
|
|
144248
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
144249
|
+
'', 'none', themeShadow, isArbitraryVariableShadow, isArbitraryShadow]
|
|
144250
|
+
}],
|
|
144251
|
+
/**
|
|
144252
|
+
* Box Shadow Color
|
|
144253
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
144254
|
+
*/
|
|
144255
|
+
'shadow-color': [{
|
|
144256
|
+
shadow: scaleColor()
|
|
144257
|
+
}],
|
|
144258
|
+
/**
|
|
144259
|
+
* Inset Box Shadow
|
|
144260
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
144261
|
+
*/
|
|
144262
|
+
'inset-shadow': [{
|
|
144263
|
+
'inset-shadow': ['none', themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]
|
|
144264
|
+
}],
|
|
144265
|
+
/**
|
|
144266
|
+
* Inset Box Shadow Color
|
|
144267
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
144268
|
+
*/
|
|
144269
|
+
'inset-shadow-color': [{
|
|
144270
|
+
'inset-shadow': scaleColor()
|
|
144271
|
+
}],
|
|
144272
|
+
/**
|
|
144273
|
+
* Ring Width
|
|
144274
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
144275
|
+
*/
|
|
144276
|
+
'ring-w': [{
|
|
144277
|
+
ring: scaleBorderWidth()
|
|
144278
|
+
}],
|
|
144279
|
+
/**
|
|
144280
|
+
* Ring Width Inset
|
|
144281
|
+
* @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
|
|
144282
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
144283
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
144284
|
+
*/
|
|
144285
|
+
'ring-w-inset': ['ring-inset'],
|
|
144286
|
+
/**
|
|
144287
|
+
* Ring Color
|
|
144288
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
144289
|
+
*/
|
|
144290
|
+
'ring-color': [{
|
|
144291
|
+
ring: scaleColor()
|
|
144292
|
+
}],
|
|
144293
|
+
/**
|
|
144294
|
+
* Ring Offset Width
|
|
144295
|
+
* @see https://v3.tailwindcss.com/docs/ring-offset-width
|
|
144296
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
144297
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
144298
|
+
*/
|
|
144299
|
+
'ring-offset-w': [{
|
|
144300
|
+
'ring-offset': [isNumber, isArbitraryLength]
|
|
144301
|
+
}],
|
|
144302
|
+
/**
|
|
144303
|
+
* Ring Offset Color
|
|
144304
|
+
* @see https://v3.tailwindcss.com/docs/ring-offset-color
|
|
144305
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
144306
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
144307
|
+
*/
|
|
144308
|
+
'ring-offset-color': [{
|
|
144309
|
+
'ring-offset': scaleColor()
|
|
144310
|
+
}],
|
|
144311
|
+
/**
|
|
144312
|
+
* Inset Ring Width
|
|
144313
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
144314
|
+
*/
|
|
144315
|
+
'inset-ring-w': [{
|
|
144316
|
+
'inset-ring': scaleBorderWidth()
|
|
144317
|
+
}],
|
|
144318
|
+
/**
|
|
144319
|
+
* Inset Ring Color
|
|
144320
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
144321
|
+
*/
|
|
144322
|
+
'inset-ring-color': [{
|
|
144323
|
+
'inset-ring': scaleColor()
|
|
144324
|
+
}],
|
|
144325
|
+
/**
|
|
144326
|
+
* Text Shadow
|
|
144327
|
+
* @see https://tailwindcss.com/docs/text-shadow
|
|
144328
|
+
*/
|
|
144329
|
+
'text-shadow': [{
|
|
144330
|
+
'text-shadow': ['none', themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
|
|
144331
|
+
}],
|
|
144332
|
+
/**
|
|
144333
|
+
* Text Shadow Color
|
|
144334
|
+
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
144335
|
+
*/
|
|
144336
|
+
'text-shadow-color': [{
|
|
144337
|
+
'text-shadow': scaleColor()
|
|
144338
|
+
}],
|
|
144339
|
+
/**
|
|
144340
|
+
* Opacity
|
|
144341
|
+
* @see https://tailwindcss.com/docs/opacity
|
|
144342
|
+
*/
|
|
144343
|
+
opacity: [{
|
|
144344
|
+
opacity: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144345
|
+
}],
|
|
144346
|
+
/**
|
|
144347
|
+
* Mix Blend Mode
|
|
144348
|
+
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
144349
|
+
*/
|
|
144350
|
+
'mix-blend': [{
|
|
144351
|
+
'mix-blend': [...scaleBlendMode(), 'plus-darker', 'plus-lighter']
|
|
144352
|
+
}],
|
|
144353
|
+
/**
|
|
144354
|
+
* Background Blend Mode
|
|
144355
|
+
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
144356
|
+
*/
|
|
144357
|
+
'bg-blend': [{
|
|
144358
|
+
'bg-blend': scaleBlendMode()
|
|
144359
|
+
}],
|
|
144360
|
+
/**
|
|
144361
|
+
* Mask Clip
|
|
144362
|
+
* @see https://tailwindcss.com/docs/mask-clip
|
|
144363
|
+
*/
|
|
144364
|
+
'mask-clip': [{
|
|
144365
|
+
'mask-clip': ['border', 'padding', 'content', 'fill', 'stroke', 'view']
|
|
144366
|
+
}, 'mask-no-clip'],
|
|
144367
|
+
/**
|
|
144368
|
+
* Mask Composite
|
|
144369
|
+
* @see https://tailwindcss.com/docs/mask-composite
|
|
144370
|
+
*/
|
|
144371
|
+
'mask-composite': [{
|
|
144372
|
+
mask: ['add', 'subtract', 'intersect', 'exclude']
|
|
144373
|
+
}],
|
|
144374
|
+
/**
|
|
144375
|
+
* Mask Image
|
|
144376
|
+
* @see https://tailwindcss.com/docs/mask-image
|
|
144377
|
+
*/
|
|
144378
|
+
'mask-image-linear-pos': [{
|
|
144379
|
+
'mask-linear': [isNumber]
|
|
144380
|
+
}],
|
|
144381
|
+
'mask-image-linear-from-pos': [{
|
|
144382
|
+
'mask-linear-from': scaleMaskImagePosition()
|
|
144383
|
+
}],
|
|
144384
|
+
'mask-image-linear-to-pos': [{
|
|
144385
|
+
'mask-linear-to': scaleMaskImagePosition()
|
|
144386
|
+
}],
|
|
144387
|
+
'mask-image-linear-from-color': [{
|
|
144388
|
+
'mask-linear-from': scaleColor()
|
|
144389
|
+
}],
|
|
144390
|
+
'mask-image-linear-to-color': [{
|
|
144391
|
+
'mask-linear-to': scaleColor()
|
|
144392
|
+
}],
|
|
144393
|
+
'mask-image-t-from-pos': [{
|
|
144394
|
+
'mask-t-from': scaleMaskImagePosition()
|
|
144395
|
+
}],
|
|
144396
|
+
'mask-image-t-to-pos': [{
|
|
144397
|
+
'mask-t-to': scaleMaskImagePosition()
|
|
144398
|
+
}],
|
|
144399
|
+
'mask-image-t-from-color': [{
|
|
144400
|
+
'mask-t-from': scaleColor()
|
|
144401
|
+
}],
|
|
144402
|
+
'mask-image-t-to-color': [{
|
|
144403
|
+
'mask-t-to': scaleColor()
|
|
144404
|
+
}],
|
|
144405
|
+
'mask-image-r-from-pos': [{
|
|
144406
|
+
'mask-r-from': scaleMaskImagePosition()
|
|
144407
|
+
}],
|
|
144408
|
+
'mask-image-r-to-pos': [{
|
|
144409
|
+
'mask-r-to': scaleMaskImagePosition()
|
|
144410
|
+
}],
|
|
144411
|
+
'mask-image-r-from-color': [{
|
|
144412
|
+
'mask-r-from': scaleColor()
|
|
144413
|
+
}],
|
|
144414
|
+
'mask-image-r-to-color': [{
|
|
144415
|
+
'mask-r-to': scaleColor()
|
|
144416
|
+
}],
|
|
144417
|
+
'mask-image-b-from-pos': [{
|
|
144418
|
+
'mask-b-from': scaleMaskImagePosition()
|
|
144419
|
+
}],
|
|
144420
|
+
'mask-image-b-to-pos': [{
|
|
144421
|
+
'mask-b-to': scaleMaskImagePosition()
|
|
144422
|
+
}],
|
|
144423
|
+
'mask-image-b-from-color': [{
|
|
144424
|
+
'mask-b-from': scaleColor()
|
|
144425
|
+
}],
|
|
144426
|
+
'mask-image-b-to-color': [{
|
|
144427
|
+
'mask-b-to': scaleColor()
|
|
144428
|
+
}],
|
|
144429
|
+
'mask-image-l-from-pos': [{
|
|
144430
|
+
'mask-l-from': scaleMaskImagePosition()
|
|
144431
|
+
}],
|
|
144432
|
+
'mask-image-l-to-pos': [{
|
|
144433
|
+
'mask-l-to': scaleMaskImagePosition()
|
|
144434
|
+
}],
|
|
144435
|
+
'mask-image-l-from-color': [{
|
|
144436
|
+
'mask-l-from': scaleColor()
|
|
144437
|
+
}],
|
|
144438
|
+
'mask-image-l-to-color': [{
|
|
144439
|
+
'mask-l-to': scaleColor()
|
|
144440
|
+
}],
|
|
144441
|
+
'mask-image-x-from-pos': [{
|
|
144442
|
+
'mask-x-from': scaleMaskImagePosition()
|
|
144443
|
+
}],
|
|
144444
|
+
'mask-image-x-to-pos': [{
|
|
144445
|
+
'mask-x-to': scaleMaskImagePosition()
|
|
144446
|
+
}],
|
|
144447
|
+
'mask-image-x-from-color': [{
|
|
144448
|
+
'mask-x-from': scaleColor()
|
|
144449
|
+
}],
|
|
144450
|
+
'mask-image-x-to-color': [{
|
|
144451
|
+
'mask-x-to': scaleColor()
|
|
144452
|
+
}],
|
|
144453
|
+
'mask-image-y-from-pos': [{
|
|
144454
|
+
'mask-y-from': scaleMaskImagePosition()
|
|
144455
|
+
}],
|
|
144456
|
+
'mask-image-y-to-pos': [{
|
|
144457
|
+
'mask-y-to': scaleMaskImagePosition()
|
|
144458
|
+
}],
|
|
144459
|
+
'mask-image-y-from-color': [{
|
|
144460
|
+
'mask-y-from': scaleColor()
|
|
144461
|
+
}],
|
|
144462
|
+
'mask-image-y-to-color': [{
|
|
144463
|
+
'mask-y-to': scaleColor()
|
|
144464
|
+
}],
|
|
144465
|
+
'mask-image-radial': [{
|
|
144466
|
+
'mask-radial': [isArbitraryVariable, isArbitraryValue]
|
|
144467
|
+
}],
|
|
144468
|
+
'mask-image-radial-from-pos': [{
|
|
144469
|
+
'mask-radial-from': scaleMaskImagePosition()
|
|
144470
|
+
}],
|
|
144471
|
+
'mask-image-radial-to-pos': [{
|
|
144472
|
+
'mask-radial-to': scaleMaskImagePosition()
|
|
144473
|
+
}],
|
|
144474
|
+
'mask-image-radial-from-color': [{
|
|
144475
|
+
'mask-radial-from': scaleColor()
|
|
144476
|
+
}],
|
|
144477
|
+
'mask-image-radial-to-color': [{
|
|
144478
|
+
'mask-radial-to': scaleColor()
|
|
144479
|
+
}],
|
|
144480
|
+
'mask-image-radial-shape': [{
|
|
144481
|
+
'mask-radial': ['circle', 'ellipse']
|
|
144482
|
+
}],
|
|
144483
|
+
'mask-image-radial-size': [{
|
|
144484
|
+
'mask-radial': [{
|
|
144485
|
+
closest: ['side', 'corner'],
|
|
144486
|
+
farthest: ['side', 'corner']
|
|
144487
|
+
}]
|
|
144488
|
+
}],
|
|
144489
|
+
'mask-image-radial-pos': [{
|
|
144490
|
+
'mask-radial-at': scalePosition()
|
|
144491
|
+
}],
|
|
144492
|
+
'mask-image-conic-pos': [{
|
|
144493
|
+
'mask-conic': [isNumber]
|
|
144494
|
+
}],
|
|
144495
|
+
'mask-image-conic-from-pos': [{
|
|
144496
|
+
'mask-conic-from': scaleMaskImagePosition()
|
|
144497
|
+
}],
|
|
144498
|
+
'mask-image-conic-to-pos': [{
|
|
144499
|
+
'mask-conic-to': scaleMaskImagePosition()
|
|
144500
|
+
}],
|
|
144501
|
+
'mask-image-conic-from-color': [{
|
|
144502
|
+
'mask-conic-from': scaleColor()
|
|
144503
|
+
}],
|
|
144504
|
+
'mask-image-conic-to-color': [{
|
|
144505
|
+
'mask-conic-to': scaleColor()
|
|
144506
|
+
}],
|
|
144507
|
+
/**
|
|
144508
|
+
* Mask Mode
|
|
144509
|
+
* @see https://tailwindcss.com/docs/mask-mode
|
|
144510
|
+
*/
|
|
144511
|
+
'mask-mode': [{
|
|
144512
|
+
mask: ['alpha', 'luminance', 'match']
|
|
144513
|
+
}],
|
|
144514
|
+
/**
|
|
144515
|
+
* Mask Origin
|
|
144516
|
+
* @see https://tailwindcss.com/docs/mask-origin
|
|
144517
|
+
*/
|
|
144518
|
+
'mask-origin': [{
|
|
144519
|
+
'mask-origin': ['border', 'padding', 'content', 'fill', 'stroke', 'view']
|
|
144520
|
+
}],
|
|
144521
|
+
/**
|
|
144522
|
+
* Mask Position
|
|
144523
|
+
* @see https://tailwindcss.com/docs/mask-position
|
|
144524
|
+
*/
|
|
144525
|
+
'mask-position': [{
|
|
144526
|
+
mask: scaleBgPosition()
|
|
144527
|
+
}],
|
|
144528
|
+
/**
|
|
144529
|
+
* Mask Repeat
|
|
144530
|
+
* @see https://tailwindcss.com/docs/mask-repeat
|
|
144531
|
+
*/
|
|
144532
|
+
'mask-repeat': [{
|
|
144533
|
+
mask: scaleBgRepeat()
|
|
144534
|
+
}],
|
|
144535
|
+
/**
|
|
144536
|
+
* Mask Size
|
|
144537
|
+
* @see https://tailwindcss.com/docs/mask-size
|
|
144538
|
+
*/
|
|
144539
|
+
'mask-size': [{
|
|
144540
|
+
mask: scaleBgSize()
|
|
144541
|
+
}],
|
|
144542
|
+
/**
|
|
144543
|
+
* Mask Type
|
|
144544
|
+
* @see https://tailwindcss.com/docs/mask-type
|
|
144545
|
+
*/
|
|
144546
|
+
'mask-type': [{
|
|
144547
|
+
'mask-type': ['alpha', 'luminance']
|
|
144548
|
+
}],
|
|
144549
|
+
/**
|
|
144550
|
+
* Mask Image
|
|
144551
|
+
* @see https://tailwindcss.com/docs/mask-image
|
|
144552
|
+
*/
|
|
144553
|
+
'mask-image': [{
|
|
144554
|
+
mask: ['none', isArbitraryVariable, isArbitraryValue]
|
|
144555
|
+
}],
|
|
144556
|
+
// ---------------
|
|
144557
|
+
// --- Filters ---
|
|
144558
|
+
// ---------------
|
|
144559
|
+
/**
|
|
144560
|
+
* Filter
|
|
144561
|
+
* @see https://tailwindcss.com/docs/filter
|
|
144562
|
+
*/
|
|
144563
|
+
filter: [{
|
|
144564
|
+
filter: [
|
|
144565
|
+
// Deprecated since Tailwind CSS v3.0.0
|
|
144566
|
+
'', 'none', isArbitraryVariable, isArbitraryValue]
|
|
144567
|
+
}],
|
|
144568
|
+
/**
|
|
144569
|
+
* Blur
|
|
144570
|
+
* @see https://tailwindcss.com/docs/blur
|
|
144571
|
+
*/
|
|
144572
|
+
blur: [{
|
|
144573
|
+
blur: scaleBlur()
|
|
144574
|
+
}],
|
|
144575
|
+
/**
|
|
144576
|
+
* Brightness
|
|
144577
|
+
* @see https://tailwindcss.com/docs/brightness
|
|
144578
|
+
*/
|
|
144579
|
+
brightness: [{
|
|
144580
|
+
brightness: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144581
|
+
}],
|
|
144582
|
+
/**
|
|
144583
|
+
* Contrast
|
|
144584
|
+
* @see https://tailwindcss.com/docs/contrast
|
|
144585
|
+
*/
|
|
144586
|
+
contrast: [{
|
|
144587
|
+
contrast: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144588
|
+
}],
|
|
144589
|
+
/**
|
|
144590
|
+
* Drop Shadow
|
|
144591
|
+
* @see https://tailwindcss.com/docs/drop-shadow
|
|
144592
|
+
*/
|
|
144593
|
+
'drop-shadow': [{
|
|
144594
|
+
'drop-shadow': [
|
|
144595
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
144596
|
+
'', 'none', themeDropShadow, isArbitraryVariableShadow, isArbitraryShadow]
|
|
144597
|
+
}],
|
|
144598
|
+
/**
|
|
144599
|
+
* Drop Shadow Color
|
|
144600
|
+
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
144601
|
+
*/
|
|
144602
|
+
'drop-shadow-color': [{
|
|
144603
|
+
'drop-shadow': scaleColor()
|
|
144604
|
+
}],
|
|
144605
|
+
/**
|
|
144606
|
+
* Grayscale
|
|
144607
|
+
* @see https://tailwindcss.com/docs/grayscale
|
|
144608
|
+
*/
|
|
144609
|
+
grayscale: [{
|
|
144610
|
+
grayscale: ['', isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144611
|
+
}],
|
|
144612
|
+
/**
|
|
144613
|
+
* Hue Rotate
|
|
144614
|
+
* @see https://tailwindcss.com/docs/hue-rotate
|
|
144615
|
+
*/
|
|
144616
|
+
'hue-rotate': [{
|
|
144617
|
+
'hue-rotate': [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144618
|
+
}],
|
|
144619
|
+
/**
|
|
144620
|
+
* Invert
|
|
144621
|
+
* @see https://tailwindcss.com/docs/invert
|
|
144622
|
+
*/
|
|
144623
|
+
invert: [{
|
|
144624
|
+
invert: ['', isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144625
|
+
}],
|
|
144626
|
+
/**
|
|
144627
|
+
* Saturate
|
|
144628
|
+
* @see https://tailwindcss.com/docs/saturate
|
|
144629
|
+
*/
|
|
144630
|
+
saturate: [{
|
|
144631
|
+
saturate: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144632
|
+
}],
|
|
144633
|
+
/**
|
|
144634
|
+
* Sepia
|
|
144635
|
+
* @see https://tailwindcss.com/docs/sepia
|
|
144636
|
+
*/
|
|
144637
|
+
sepia: [{
|
|
144638
|
+
sepia: ['', isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144639
|
+
}],
|
|
144640
|
+
/**
|
|
144641
|
+
* Backdrop Filter
|
|
144642
|
+
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
144643
|
+
*/
|
|
144644
|
+
'backdrop-filter': [{
|
|
144645
|
+
'backdrop-filter': [
|
|
144646
|
+
// Deprecated since Tailwind CSS v3.0.0
|
|
144647
|
+
'', 'none', isArbitraryVariable, isArbitraryValue]
|
|
144648
|
+
}],
|
|
144649
|
+
/**
|
|
144650
|
+
* Backdrop Blur
|
|
144651
|
+
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
144652
|
+
*/
|
|
144653
|
+
'backdrop-blur': [{
|
|
144654
|
+
'backdrop-blur': scaleBlur()
|
|
144655
|
+
}],
|
|
144656
|
+
/**
|
|
144657
|
+
* Backdrop Brightness
|
|
144658
|
+
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
144659
|
+
*/
|
|
144660
|
+
'backdrop-brightness': [{
|
|
144661
|
+
'backdrop-brightness': [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144662
|
+
}],
|
|
144663
|
+
/**
|
|
144664
|
+
* Backdrop Contrast
|
|
144665
|
+
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
144666
|
+
*/
|
|
144667
|
+
'backdrop-contrast': [{
|
|
144668
|
+
'backdrop-contrast': [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144669
|
+
}],
|
|
144670
|
+
/**
|
|
144671
|
+
* Backdrop Grayscale
|
|
144672
|
+
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
144673
|
+
*/
|
|
144674
|
+
'backdrop-grayscale': [{
|
|
144675
|
+
'backdrop-grayscale': ['', isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144676
|
+
}],
|
|
144677
|
+
/**
|
|
144678
|
+
* Backdrop Hue Rotate
|
|
144679
|
+
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
144680
|
+
*/
|
|
144681
|
+
'backdrop-hue-rotate': [{
|
|
144682
|
+
'backdrop-hue-rotate': [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144683
|
+
}],
|
|
144684
|
+
/**
|
|
144685
|
+
* Backdrop Invert
|
|
144686
|
+
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
144687
|
+
*/
|
|
144688
|
+
'backdrop-invert': [{
|
|
144689
|
+
'backdrop-invert': ['', isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144690
|
+
}],
|
|
144691
|
+
/**
|
|
144692
|
+
* Backdrop Opacity
|
|
144693
|
+
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
144694
|
+
*/
|
|
144695
|
+
'backdrop-opacity': [{
|
|
144696
|
+
'backdrop-opacity': [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144697
|
+
}],
|
|
144698
|
+
/**
|
|
144699
|
+
* Backdrop Saturate
|
|
144700
|
+
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
144701
|
+
*/
|
|
144702
|
+
'backdrop-saturate': [{
|
|
144703
|
+
'backdrop-saturate': [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144704
|
+
}],
|
|
144705
|
+
/**
|
|
144706
|
+
* Backdrop Sepia
|
|
144707
|
+
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
144708
|
+
*/
|
|
144709
|
+
'backdrop-sepia': [{
|
|
144710
|
+
'backdrop-sepia': ['', isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144711
|
+
}],
|
|
144712
|
+
// --------------
|
|
144713
|
+
// --- Tables ---
|
|
144714
|
+
// --------------
|
|
144715
|
+
/**
|
|
144716
|
+
* Border Collapse
|
|
144717
|
+
* @see https://tailwindcss.com/docs/border-collapse
|
|
144718
|
+
*/
|
|
144719
|
+
'border-collapse': [{
|
|
144720
|
+
border: ['collapse', 'separate']
|
|
144721
|
+
}],
|
|
144722
|
+
/**
|
|
144723
|
+
* Border Spacing
|
|
144724
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
144725
|
+
*/
|
|
144726
|
+
'border-spacing': [{
|
|
144727
|
+
'border-spacing': scaleUnambiguousSpacing()
|
|
144728
|
+
}],
|
|
144729
|
+
/**
|
|
144730
|
+
* Border Spacing X
|
|
144731
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
144732
|
+
*/
|
|
144733
|
+
'border-spacing-x': [{
|
|
144734
|
+
'border-spacing-x': scaleUnambiguousSpacing()
|
|
144735
|
+
}],
|
|
144736
|
+
/**
|
|
144737
|
+
* Border Spacing Y
|
|
144738
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
144739
|
+
*/
|
|
144740
|
+
'border-spacing-y': [{
|
|
144741
|
+
'border-spacing-y': scaleUnambiguousSpacing()
|
|
144742
|
+
}],
|
|
144743
|
+
/**
|
|
144744
|
+
* Table Layout
|
|
144745
|
+
* @see https://tailwindcss.com/docs/table-layout
|
|
144746
|
+
*/
|
|
144747
|
+
'table-layout': [{
|
|
144748
|
+
table: ['auto', 'fixed']
|
|
144749
|
+
}],
|
|
144750
|
+
/**
|
|
144751
|
+
* Caption Side
|
|
144752
|
+
* @see https://tailwindcss.com/docs/caption-side
|
|
144753
|
+
*/
|
|
144754
|
+
caption: [{
|
|
144755
|
+
caption: ['top', 'bottom']
|
|
144756
|
+
}],
|
|
144757
|
+
// ---------------------------------
|
|
144758
|
+
// --- Transitions and Animation ---
|
|
144759
|
+
// ---------------------------------
|
|
144760
|
+
/**
|
|
144761
|
+
* Transition Property
|
|
144762
|
+
* @see https://tailwindcss.com/docs/transition-property
|
|
144763
|
+
*/
|
|
144764
|
+
transition: [{
|
|
144765
|
+
transition: ['', 'all', 'colors', 'opacity', 'shadow', 'transform', 'none', isArbitraryVariable, isArbitraryValue]
|
|
144766
|
+
}],
|
|
144767
|
+
/**
|
|
144768
|
+
* Transition Behavior
|
|
144769
|
+
* @see https://tailwindcss.com/docs/transition-behavior
|
|
144770
|
+
*/
|
|
144771
|
+
'transition-behavior': [{
|
|
144772
|
+
transition: ['normal', 'discrete']
|
|
144773
|
+
}],
|
|
144774
|
+
/**
|
|
144775
|
+
* Transition Duration
|
|
144776
|
+
* @see https://tailwindcss.com/docs/transition-duration
|
|
144777
|
+
*/
|
|
144778
|
+
duration: [{
|
|
144779
|
+
duration: [isNumber, 'initial', isArbitraryVariable, isArbitraryValue]
|
|
144780
|
+
}],
|
|
144781
|
+
/**
|
|
144782
|
+
* Transition Timing Function
|
|
144783
|
+
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
144784
|
+
*/
|
|
144785
|
+
ease: [{
|
|
144786
|
+
ease: ['linear', 'initial', themeEase, isArbitraryVariable, isArbitraryValue]
|
|
144787
|
+
}],
|
|
144788
|
+
/**
|
|
144789
|
+
* Transition Delay
|
|
144790
|
+
* @see https://tailwindcss.com/docs/transition-delay
|
|
144791
|
+
*/
|
|
144792
|
+
delay: [{
|
|
144793
|
+
delay: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
144794
|
+
}],
|
|
144795
|
+
/**
|
|
144796
|
+
* Animation
|
|
144797
|
+
* @see https://tailwindcss.com/docs/animation
|
|
144798
|
+
*/
|
|
144799
|
+
animate: [{
|
|
144800
|
+
animate: ['none', themeAnimate, isArbitraryVariable, isArbitraryValue]
|
|
144801
|
+
}],
|
|
144802
|
+
// ------------------
|
|
144803
|
+
// --- Transforms ---
|
|
144804
|
+
// ------------------
|
|
144805
|
+
/**
|
|
144806
|
+
* Backface Visibility
|
|
144807
|
+
* @see https://tailwindcss.com/docs/backface-visibility
|
|
144808
|
+
*/
|
|
144809
|
+
backface: [{
|
|
144810
|
+
backface: ['hidden', 'visible']
|
|
144811
|
+
}],
|
|
144812
|
+
/**
|
|
144813
|
+
* Perspective
|
|
144814
|
+
* @see https://tailwindcss.com/docs/perspective
|
|
144815
|
+
*/
|
|
144816
|
+
perspective: [{
|
|
144817
|
+
perspective: [themePerspective, isArbitraryVariable, isArbitraryValue]
|
|
144818
|
+
}],
|
|
144819
|
+
/**
|
|
144820
|
+
* Perspective Origin
|
|
144821
|
+
* @see https://tailwindcss.com/docs/perspective-origin
|
|
144822
|
+
*/
|
|
144823
|
+
'perspective-origin': [{
|
|
144824
|
+
'perspective-origin': scalePositionWithArbitrary()
|
|
144825
|
+
}],
|
|
144826
|
+
/**
|
|
144827
|
+
* Rotate
|
|
144828
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
144829
|
+
*/
|
|
144830
|
+
rotate: [{
|
|
144831
|
+
rotate: scaleRotate()
|
|
144832
|
+
}],
|
|
144833
|
+
/**
|
|
144834
|
+
* Rotate X
|
|
144835
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
144836
|
+
*/
|
|
144837
|
+
'rotate-x': [{
|
|
144838
|
+
'rotate-x': scaleRotate()
|
|
144839
|
+
}],
|
|
144840
|
+
/**
|
|
144841
|
+
* Rotate Y
|
|
144842
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
144843
|
+
*/
|
|
144844
|
+
'rotate-y': [{
|
|
144845
|
+
'rotate-y': scaleRotate()
|
|
144846
|
+
}],
|
|
144847
|
+
/**
|
|
144848
|
+
* Rotate Z
|
|
144849
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
144850
|
+
*/
|
|
144851
|
+
'rotate-z': [{
|
|
144852
|
+
'rotate-z': scaleRotate()
|
|
144853
|
+
}],
|
|
144854
|
+
/**
|
|
144855
|
+
* Scale
|
|
144856
|
+
* @see https://tailwindcss.com/docs/scale
|
|
144857
|
+
*/
|
|
144858
|
+
scale: [{
|
|
144859
|
+
scale: scaleScale()
|
|
144860
|
+
}],
|
|
144861
|
+
/**
|
|
144862
|
+
* Scale X
|
|
144863
|
+
* @see https://tailwindcss.com/docs/scale
|
|
144864
|
+
*/
|
|
144865
|
+
'scale-x': [{
|
|
144866
|
+
'scale-x': scaleScale()
|
|
144867
|
+
}],
|
|
144868
|
+
/**
|
|
144869
|
+
* Scale Y
|
|
144870
|
+
* @see https://tailwindcss.com/docs/scale
|
|
144871
|
+
*/
|
|
144872
|
+
'scale-y': [{
|
|
144873
|
+
'scale-y': scaleScale()
|
|
144874
|
+
}],
|
|
144875
|
+
/**
|
|
144876
|
+
* Scale Z
|
|
144877
|
+
* @see https://tailwindcss.com/docs/scale
|
|
144878
|
+
*/
|
|
144879
|
+
'scale-z': [{
|
|
144880
|
+
'scale-z': scaleScale()
|
|
144881
|
+
}],
|
|
144882
|
+
/**
|
|
144883
|
+
* Scale 3D
|
|
144884
|
+
* @see https://tailwindcss.com/docs/scale
|
|
144885
|
+
*/
|
|
144886
|
+
'scale-3d': ['scale-3d'],
|
|
144887
|
+
/**
|
|
144888
|
+
* Skew
|
|
144889
|
+
* @see https://tailwindcss.com/docs/skew
|
|
144890
|
+
*/
|
|
144891
|
+
skew: [{
|
|
144892
|
+
skew: scaleSkew()
|
|
144893
|
+
}],
|
|
144894
|
+
/**
|
|
144895
|
+
* Skew X
|
|
144896
|
+
* @see https://tailwindcss.com/docs/skew
|
|
144897
|
+
*/
|
|
144898
|
+
'skew-x': [{
|
|
144899
|
+
'skew-x': scaleSkew()
|
|
144900
|
+
}],
|
|
144901
|
+
/**
|
|
144902
|
+
* Skew Y
|
|
144903
|
+
* @see https://tailwindcss.com/docs/skew
|
|
144904
|
+
*/
|
|
144905
|
+
'skew-y': [{
|
|
144906
|
+
'skew-y': scaleSkew()
|
|
144907
|
+
}],
|
|
144908
|
+
/**
|
|
144909
|
+
* Transform
|
|
144910
|
+
* @see https://tailwindcss.com/docs/transform
|
|
144911
|
+
*/
|
|
144912
|
+
transform: [{
|
|
144913
|
+
transform: [isArbitraryVariable, isArbitraryValue, '', 'none', 'gpu', 'cpu']
|
|
144914
|
+
}],
|
|
144915
|
+
/**
|
|
144916
|
+
* Transform Origin
|
|
144917
|
+
* @see https://tailwindcss.com/docs/transform-origin
|
|
144918
|
+
*/
|
|
144919
|
+
'transform-origin': [{
|
|
144920
|
+
origin: scalePositionWithArbitrary()
|
|
144921
|
+
}],
|
|
144922
|
+
/**
|
|
144923
|
+
* Transform Style
|
|
144924
|
+
* @see https://tailwindcss.com/docs/transform-style
|
|
144925
|
+
*/
|
|
144926
|
+
'transform-style': [{
|
|
144927
|
+
transform: ['3d', 'flat']
|
|
144928
|
+
}],
|
|
144929
|
+
/**
|
|
144930
|
+
* Translate
|
|
144931
|
+
* @see https://tailwindcss.com/docs/translate
|
|
144932
|
+
*/
|
|
144933
|
+
translate: [{
|
|
144934
|
+
translate: scaleTranslate()
|
|
144935
|
+
}],
|
|
144936
|
+
/**
|
|
144937
|
+
* Translate X
|
|
144938
|
+
* @see https://tailwindcss.com/docs/translate
|
|
144939
|
+
*/
|
|
144940
|
+
'translate-x': [{
|
|
144941
|
+
'translate-x': scaleTranslate()
|
|
144942
|
+
}],
|
|
144943
|
+
/**
|
|
144944
|
+
* Translate Y
|
|
144945
|
+
* @see https://tailwindcss.com/docs/translate
|
|
144946
|
+
*/
|
|
144947
|
+
'translate-y': [{
|
|
144948
|
+
'translate-y': scaleTranslate()
|
|
144949
|
+
}],
|
|
144950
|
+
/**
|
|
144951
|
+
* Translate Z
|
|
144952
|
+
* @see https://tailwindcss.com/docs/translate
|
|
144953
|
+
*/
|
|
144954
|
+
'translate-z': [{
|
|
144955
|
+
'translate-z': scaleTranslate()
|
|
144956
|
+
}],
|
|
144957
|
+
/**
|
|
144958
|
+
* Translate None
|
|
144959
|
+
* @see https://tailwindcss.com/docs/translate
|
|
144960
|
+
*/
|
|
144961
|
+
'translate-none': ['translate-none'],
|
|
144962
|
+
// ---------------------
|
|
144963
|
+
// --- Interactivity ---
|
|
144964
|
+
// ---------------------
|
|
144965
|
+
/**
|
|
144966
|
+
* Accent Color
|
|
144967
|
+
* @see https://tailwindcss.com/docs/accent-color
|
|
144968
|
+
*/
|
|
144969
|
+
accent: [{
|
|
144970
|
+
accent: scaleColor()
|
|
144971
|
+
}],
|
|
144972
|
+
/**
|
|
144973
|
+
* Appearance
|
|
144974
|
+
* @see https://tailwindcss.com/docs/appearance
|
|
144975
|
+
*/
|
|
144976
|
+
appearance: [{
|
|
144977
|
+
appearance: ['none', 'auto']
|
|
144978
|
+
}],
|
|
144979
|
+
/**
|
|
144980
|
+
* Caret Color
|
|
144981
|
+
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
144982
|
+
*/
|
|
144983
|
+
'caret-color': [{
|
|
144984
|
+
caret: scaleColor()
|
|
144985
|
+
}],
|
|
144986
|
+
/**
|
|
144987
|
+
* Color Scheme
|
|
144988
|
+
* @see https://tailwindcss.com/docs/color-scheme
|
|
144989
|
+
*/
|
|
144990
|
+
'color-scheme': [{
|
|
144991
|
+
scheme: ['normal', 'dark', 'light', 'light-dark', 'only-dark', 'only-light']
|
|
144992
|
+
}],
|
|
144993
|
+
/**
|
|
144994
|
+
* Cursor
|
|
144995
|
+
* @see https://tailwindcss.com/docs/cursor
|
|
144996
|
+
*/
|
|
144997
|
+
cursor: [{
|
|
144998
|
+
cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryVariable, isArbitraryValue]
|
|
144999
|
+
}],
|
|
145000
|
+
/**
|
|
145001
|
+
* Field Sizing
|
|
145002
|
+
* @see https://tailwindcss.com/docs/field-sizing
|
|
145003
|
+
*/
|
|
145004
|
+
'field-sizing': [{
|
|
145005
|
+
'field-sizing': ['fixed', 'content']
|
|
145006
|
+
}],
|
|
145007
|
+
/**
|
|
145008
|
+
* Pointer Events
|
|
145009
|
+
* @see https://tailwindcss.com/docs/pointer-events
|
|
145010
|
+
*/
|
|
145011
|
+
'pointer-events': [{
|
|
145012
|
+
'pointer-events': ['auto', 'none']
|
|
145013
|
+
}],
|
|
145014
|
+
/**
|
|
145015
|
+
* Resize
|
|
145016
|
+
* @see https://tailwindcss.com/docs/resize
|
|
145017
|
+
*/
|
|
145018
|
+
resize: [{
|
|
145019
|
+
resize: ['none', '', 'y', 'x']
|
|
145020
|
+
}],
|
|
145021
|
+
/**
|
|
145022
|
+
* Scroll Behavior
|
|
145023
|
+
* @see https://tailwindcss.com/docs/scroll-behavior
|
|
145024
|
+
*/
|
|
145025
|
+
'scroll-behavior': [{
|
|
145026
|
+
scroll: ['auto', 'smooth']
|
|
145027
|
+
}],
|
|
145028
|
+
/**
|
|
145029
|
+
* Scroll Margin
|
|
145030
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
145031
|
+
*/
|
|
145032
|
+
'scroll-m': [{
|
|
145033
|
+
'scroll-m': scaleUnambiguousSpacing()
|
|
145034
|
+
}],
|
|
145035
|
+
/**
|
|
145036
|
+
* Scroll Margin Inline
|
|
145037
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
145038
|
+
*/
|
|
145039
|
+
'scroll-mx': [{
|
|
145040
|
+
'scroll-mx': scaleUnambiguousSpacing()
|
|
145041
|
+
}],
|
|
145042
|
+
/**
|
|
145043
|
+
* Scroll Margin Block
|
|
145044
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
145045
|
+
*/
|
|
145046
|
+
'scroll-my': [{
|
|
145047
|
+
'scroll-my': scaleUnambiguousSpacing()
|
|
145048
|
+
}],
|
|
145049
|
+
/**
|
|
145050
|
+
* Scroll Margin Inline Start
|
|
145051
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
145052
|
+
*/
|
|
145053
|
+
'scroll-ms': [{
|
|
145054
|
+
'scroll-ms': scaleUnambiguousSpacing()
|
|
145055
|
+
}],
|
|
145056
|
+
/**
|
|
145057
|
+
* Scroll Margin Inline End
|
|
145058
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
145059
|
+
*/
|
|
145060
|
+
'scroll-me': [{
|
|
145061
|
+
'scroll-me': scaleUnambiguousSpacing()
|
|
145062
|
+
}],
|
|
145063
|
+
/**
|
|
145064
|
+
* Scroll Margin Block Start
|
|
145065
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
145066
|
+
*/
|
|
145067
|
+
'scroll-mbs': [{
|
|
145068
|
+
'scroll-mbs': scaleUnambiguousSpacing()
|
|
145069
|
+
}],
|
|
145070
|
+
/**
|
|
145071
|
+
* Scroll Margin Block End
|
|
145072
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
145073
|
+
*/
|
|
145074
|
+
'scroll-mbe': [{
|
|
145075
|
+
'scroll-mbe': scaleUnambiguousSpacing()
|
|
145076
|
+
}],
|
|
145077
|
+
/**
|
|
145078
|
+
* Scroll Margin Top
|
|
145079
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
145080
|
+
*/
|
|
145081
|
+
'scroll-mt': [{
|
|
145082
|
+
'scroll-mt': scaleUnambiguousSpacing()
|
|
145083
|
+
}],
|
|
145084
|
+
/**
|
|
145085
|
+
* Scroll Margin Right
|
|
145086
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
145087
|
+
*/
|
|
145088
|
+
'scroll-mr': [{
|
|
145089
|
+
'scroll-mr': scaleUnambiguousSpacing()
|
|
145090
|
+
}],
|
|
145091
|
+
/**
|
|
145092
|
+
* Scroll Margin Bottom
|
|
145093
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
145094
|
+
*/
|
|
145095
|
+
'scroll-mb': [{
|
|
145096
|
+
'scroll-mb': scaleUnambiguousSpacing()
|
|
145097
|
+
}],
|
|
145098
|
+
/**
|
|
145099
|
+
* Scroll Margin Left
|
|
145100
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
145101
|
+
*/
|
|
145102
|
+
'scroll-ml': [{
|
|
145103
|
+
'scroll-ml': scaleUnambiguousSpacing()
|
|
145104
|
+
}],
|
|
145105
|
+
/**
|
|
145106
|
+
* Scroll Padding
|
|
145107
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
145108
|
+
*/
|
|
145109
|
+
'scroll-p': [{
|
|
145110
|
+
'scroll-p': scaleUnambiguousSpacing()
|
|
145111
|
+
}],
|
|
145112
|
+
/**
|
|
145113
|
+
* Scroll Padding Inline
|
|
145114
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
145115
|
+
*/
|
|
145116
|
+
'scroll-px': [{
|
|
145117
|
+
'scroll-px': scaleUnambiguousSpacing()
|
|
145118
|
+
}],
|
|
145119
|
+
/**
|
|
145120
|
+
* Scroll Padding Block
|
|
145121
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
145122
|
+
*/
|
|
145123
|
+
'scroll-py': [{
|
|
145124
|
+
'scroll-py': scaleUnambiguousSpacing()
|
|
145125
|
+
}],
|
|
145126
|
+
/**
|
|
145127
|
+
* Scroll Padding Inline Start
|
|
145128
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
145129
|
+
*/
|
|
145130
|
+
'scroll-ps': [{
|
|
145131
|
+
'scroll-ps': scaleUnambiguousSpacing()
|
|
145132
|
+
}],
|
|
145133
|
+
/**
|
|
145134
|
+
* Scroll Padding Inline End
|
|
145135
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
145136
|
+
*/
|
|
145137
|
+
'scroll-pe': [{
|
|
145138
|
+
'scroll-pe': scaleUnambiguousSpacing()
|
|
145139
|
+
}],
|
|
145140
|
+
/**
|
|
145141
|
+
* Scroll Padding Block Start
|
|
145142
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
145143
|
+
*/
|
|
145144
|
+
'scroll-pbs': [{
|
|
145145
|
+
'scroll-pbs': scaleUnambiguousSpacing()
|
|
145146
|
+
}],
|
|
145147
|
+
/**
|
|
145148
|
+
* Scroll Padding Block End
|
|
145149
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
145150
|
+
*/
|
|
145151
|
+
'scroll-pbe': [{
|
|
145152
|
+
'scroll-pbe': scaleUnambiguousSpacing()
|
|
145153
|
+
}],
|
|
145154
|
+
/**
|
|
145155
|
+
* Scroll Padding Top
|
|
145156
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
145157
|
+
*/
|
|
145158
|
+
'scroll-pt': [{
|
|
145159
|
+
'scroll-pt': scaleUnambiguousSpacing()
|
|
145160
|
+
}],
|
|
145161
|
+
/**
|
|
145162
|
+
* Scroll Padding Right
|
|
145163
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
145164
|
+
*/
|
|
145165
|
+
'scroll-pr': [{
|
|
145166
|
+
'scroll-pr': scaleUnambiguousSpacing()
|
|
145167
|
+
}],
|
|
145168
|
+
/**
|
|
145169
|
+
* Scroll Padding Bottom
|
|
145170
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
145171
|
+
*/
|
|
145172
|
+
'scroll-pb': [{
|
|
145173
|
+
'scroll-pb': scaleUnambiguousSpacing()
|
|
145174
|
+
}],
|
|
145175
|
+
/**
|
|
145176
|
+
* Scroll Padding Left
|
|
145177
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
145178
|
+
*/
|
|
145179
|
+
'scroll-pl': [{
|
|
145180
|
+
'scroll-pl': scaleUnambiguousSpacing()
|
|
145181
|
+
}],
|
|
145182
|
+
/**
|
|
145183
|
+
* Scroll Snap Align
|
|
145184
|
+
* @see https://tailwindcss.com/docs/scroll-snap-align
|
|
145185
|
+
*/
|
|
145186
|
+
'snap-align': [{
|
|
145187
|
+
snap: ['start', 'end', 'center', 'align-none']
|
|
145188
|
+
}],
|
|
145189
|
+
/**
|
|
145190
|
+
* Scroll Snap Stop
|
|
145191
|
+
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
|
145192
|
+
*/
|
|
145193
|
+
'snap-stop': [{
|
|
145194
|
+
snap: ['normal', 'always']
|
|
145195
|
+
}],
|
|
145196
|
+
/**
|
|
145197
|
+
* Scroll Snap Type
|
|
145198
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
145199
|
+
*/
|
|
145200
|
+
'snap-type': [{
|
|
145201
|
+
snap: ['none', 'x', 'y', 'both']
|
|
145202
|
+
}],
|
|
145203
|
+
/**
|
|
145204
|
+
* Scroll Snap Type Strictness
|
|
145205
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
145206
|
+
*/
|
|
145207
|
+
'snap-strictness': [{
|
|
145208
|
+
snap: ['mandatory', 'proximity']
|
|
145209
|
+
}],
|
|
145210
|
+
/**
|
|
145211
|
+
* Touch Action
|
|
145212
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
145213
|
+
*/
|
|
145214
|
+
touch: [{
|
|
145215
|
+
touch: ['auto', 'none', 'manipulation']
|
|
145216
|
+
}],
|
|
145217
|
+
/**
|
|
145218
|
+
* Touch Action X
|
|
145219
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
145220
|
+
*/
|
|
145221
|
+
'touch-x': [{
|
|
145222
|
+
'touch-pan': ['x', 'left', 'right']
|
|
145223
|
+
}],
|
|
145224
|
+
/**
|
|
145225
|
+
* Touch Action Y
|
|
145226
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
145227
|
+
*/
|
|
145228
|
+
'touch-y': [{
|
|
145229
|
+
'touch-pan': ['y', 'up', 'down']
|
|
145230
|
+
}],
|
|
145231
|
+
/**
|
|
145232
|
+
* Touch Action Pinch Zoom
|
|
145233
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
145234
|
+
*/
|
|
145235
|
+
'touch-pz': ['touch-pinch-zoom'],
|
|
145236
|
+
/**
|
|
145237
|
+
* User Select
|
|
145238
|
+
* @see https://tailwindcss.com/docs/user-select
|
|
145239
|
+
*/
|
|
145240
|
+
select: [{
|
|
145241
|
+
select: ['none', 'text', 'all', 'auto']
|
|
145242
|
+
}],
|
|
145243
|
+
/**
|
|
145244
|
+
* Will Change
|
|
145245
|
+
* @see https://tailwindcss.com/docs/will-change
|
|
145246
|
+
*/
|
|
145247
|
+
'will-change': [{
|
|
145248
|
+
'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryVariable, isArbitraryValue]
|
|
145249
|
+
}],
|
|
145250
|
+
// -----------
|
|
145251
|
+
// --- SVG ---
|
|
145252
|
+
// -----------
|
|
145253
|
+
/**
|
|
145254
|
+
* Fill
|
|
145255
|
+
* @see https://tailwindcss.com/docs/fill
|
|
145256
|
+
*/
|
|
145257
|
+
fill: [{
|
|
145258
|
+
fill: ['none', ...scaleColor()]
|
|
145259
|
+
}],
|
|
145260
|
+
/**
|
|
145261
|
+
* Stroke Width
|
|
145262
|
+
* @see https://tailwindcss.com/docs/stroke-width
|
|
145263
|
+
*/
|
|
145264
|
+
'stroke-w': [{
|
|
145265
|
+
stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
|
|
145266
|
+
}],
|
|
145267
|
+
/**
|
|
145268
|
+
* Stroke
|
|
145269
|
+
* @see https://tailwindcss.com/docs/stroke
|
|
145270
|
+
*/
|
|
145271
|
+
stroke: [{
|
|
145272
|
+
stroke: ['none', ...scaleColor()]
|
|
145273
|
+
}],
|
|
145274
|
+
// ---------------------
|
|
145275
|
+
// --- Accessibility ---
|
|
145276
|
+
// ---------------------
|
|
145277
|
+
/**
|
|
145278
|
+
* Forced Color Adjust
|
|
145279
|
+
* @see https://tailwindcss.com/docs/forced-color-adjust
|
|
145280
|
+
*/
|
|
145281
|
+
'forced-color-adjust': [{
|
|
145282
|
+
'forced-color-adjust': ['auto', 'none']
|
|
145283
|
+
}]
|
|
145284
|
+
},
|
|
145285
|
+
conflictingClassGroups: {
|
|
145286
|
+
overflow: ['overflow-x', 'overflow-y'],
|
|
145287
|
+
overscroll: ['overscroll-x', 'overscroll-y'],
|
|
145288
|
+
inset: ['inset-x', 'inset-y', 'inset-bs', 'inset-be', 'start', 'end', 'top', 'right', 'bottom', 'left'],
|
|
145289
|
+
'inset-x': ['right', 'left'],
|
|
145290
|
+
'inset-y': ['top', 'bottom'],
|
|
145291
|
+
flex: ['basis', 'grow', 'shrink'],
|
|
145292
|
+
gap: ['gap-x', 'gap-y'],
|
|
145293
|
+
p: ['px', 'py', 'ps', 'pe', 'pbs', 'pbe', 'pt', 'pr', 'pb', 'pl'],
|
|
145294
|
+
px: ['pr', 'pl'],
|
|
145295
|
+
py: ['pt', 'pb'],
|
|
145296
|
+
m: ['mx', 'my', 'ms', 'me', 'mbs', 'mbe', 'mt', 'mr', 'mb', 'ml'],
|
|
145297
|
+
mx: ['mr', 'ml'],
|
|
145298
|
+
my: ['mt', 'mb'],
|
|
145299
|
+
size: ['w', 'h'],
|
|
145300
|
+
'font-size': ['leading'],
|
|
145301
|
+
'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],
|
|
145302
|
+
'fvn-ordinal': ['fvn-normal'],
|
|
145303
|
+
'fvn-slashed-zero': ['fvn-normal'],
|
|
145304
|
+
'fvn-figure': ['fvn-normal'],
|
|
145305
|
+
'fvn-spacing': ['fvn-normal'],
|
|
145306
|
+
'fvn-fraction': ['fvn-normal'],
|
|
145307
|
+
'line-clamp': ['display', 'overflow'],
|
|
145308
|
+
rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],
|
|
145309
|
+
'rounded-s': ['rounded-ss', 'rounded-es'],
|
|
145310
|
+
'rounded-e': ['rounded-se', 'rounded-ee'],
|
|
145311
|
+
'rounded-t': ['rounded-tl', 'rounded-tr'],
|
|
145312
|
+
'rounded-r': ['rounded-tr', 'rounded-br'],
|
|
145313
|
+
'rounded-b': ['rounded-br', 'rounded-bl'],
|
|
145314
|
+
'rounded-l': ['rounded-tl', 'rounded-bl'],
|
|
145315
|
+
'border-spacing': ['border-spacing-x', 'border-spacing-y'],
|
|
145316
|
+
'border-w': ['border-w-x', 'border-w-y', 'border-w-s', 'border-w-e', 'border-w-bs', 'border-w-be', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],
|
|
145317
|
+
'border-w-x': ['border-w-r', 'border-w-l'],
|
|
145318
|
+
'border-w-y': ['border-w-t', 'border-w-b'],
|
|
145319
|
+
'border-color': ['border-color-x', 'border-color-y', 'border-color-s', 'border-color-e', 'border-color-bs', 'border-color-be', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],
|
|
145320
|
+
'border-color-x': ['border-color-r', 'border-color-l'],
|
|
145321
|
+
'border-color-y': ['border-color-t', 'border-color-b'],
|
|
145322
|
+
translate: ['translate-x', 'translate-y', 'translate-none'],
|
|
145323
|
+
'translate-none': ['translate', 'translate-x', 'translate-y', 'translate-z'],
|
|
145324
|
+
'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mbs', 'scroll-mbe', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],
|
|
145325
|
+
'scroll-mx': ['scroll-mr', 'scroll-ml'],
|
|
145326
|
+
'scroll-my': ['scroll-mt', 'scroll-mb'],
|
|
145327
|
+
'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pbs', 'scroll-pbe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],
|
|
145328
|
+
'scroll-px': ['scroll-pr', 'scroll-pl'],
|
|
145329
|
+
'scroll-py': ['scroll-pt', 'scroll-pb'],
|
|
145330
|
+
touch: ['touch-x', 'touch-y', 'touch-pz'],
|
|
145331
|
+
'touch-x': ['touch'],
|
|
145332
|
+
'touch-y': ['touch'],
|
|
145333
|
+
'touch-pz': ['touch']
|
|
145334
|
+
},
|
|
145335
|
+
conflictingClassGroupModifiers: {
|
|
145336
|
+
'font-size': ['leading']
|
|
145337
|
+
},
|
|
145338
|
+
orderSensitiveModifiers: ['*', '**', 'after', 'backdrop', 'before', 'details-content', 'file', 'first-letter', 'first-line', 'marker', 'placeholder', 'selection']
|
|
145339
|
+
};
|
|
145340
|
+
};
|
|
145341
|
+
const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
|
|
145342
|
+
|
|
145343
|
+
function cn() {
|
|
145344
|
+
var inputs = [];
|
|
145345
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
145346
|
+
inputs[_i] = arguments[_i];
|
|
145347
|
+
}
|
|
145348
|
+
return twMerge(clsx(inputs));
|
|
145349
|
+
}
|
|
145350
|
+
|
|
142144
145351
|
function Card(_a) {
|
|
142145
|
-
var _b, _c;
|
|
142146
|
-
var
|
|
142147
|
-
var children = _a.children, className = _a.className, _g = _a.bgVariant, bgVariant = _g === void 0 ? "default" : _g, _h = _a.borderVariant, borderVariant = _h === void 0 ? "default" : _h, _j = _a.interactive, interactive = _j === void 0 ? false : _j, _k = _a.ghost, ghost = _k === void 0 ? false : _k, shape = _a.shape, _l = _a.hoverAnimation, hoverAnimation = _l === void 0 ? "lift" : _l;
|
|
145352
|
+
var _b, _c, _d;
|
|
145353
|
+
var children = _a.children, styles = _a.styles, _e = _a.bgVariant, bgVariant = _e === void 0 ? "default" : _e, _f = _a.borderVariant, borderVariant = _f === void 0 ? "default" : _f, _g = _a.interactive, interactive = _g === void 0 ? false : _g, _h = _a.ghost, ghost = _h === void 0 ? false : _h, shape = _a.shape, _j = _a.hoverAnimation, hoverAnimation = _j === void 0 ? "lift" : _j;
|
|
142148
145354
|
var eui = useEUIConfig();
|
|
142149
|
-
var resolvedShape = (
|
|
142150
|
-
return (jsxRuntime.jsxs("div", __assign$1({ className:
|
|
145355
|
+
var resolvedShape = (_d = shape !== null && shape !== void 0 ? shape : (_c = (_b = eui === null || eui === void 0 ? void 0 : eui.config) === null || _b === void 0 ? void 0 : _b.global) === null || _c === void 0 ? void 0 : _c.shape) !== null && _d !== void 0 ? _d : "softRoundedSquare";
|
|
145356
|
+
return (jsxRuntime.jsxs("div", __assign$1({ className: cn(
|
|
142151
145357
|
// Base
|
|
142152
|
-
"relative border backdrop-blur-md transition-all duration-300 overflow-hidden",
|
|
145358
|
+
"relative border backdrop-blur-md transition-all duration-300 overflow-hidden p-3",
|
|
142153
145359
|
// Shape
|
|
142154
|
-
shapes[resolvedShape],
|
|
142155
|
-
|
|
142156
|
-
|
|
142157
|
-
_b),
|
|
145360
|
+
shapes[resolvedShape],
|
|
145361
|
+
// Background
|
|
145362
|
+
!ghost ? cardBgVariants[bgVariant] : "bg-transparent",
|
|
142158
145363
|
// Border
|
|
142159
|
-
cardBorderVariants[borderVariant],
|
|
142160
|
-
|
|
142161
|
-
|
|
142162
|
-
|
|
142163
|
-
|
|
142164
|
-
_c), className) }, { children: [jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 rounded-inherit ring-1 ring-inset ring-white/10" }), interactive && hoverAnimation === "glow" && (jsxRuntime.jsx("div", { className: "absolute inset-0 opacity-0 hover:opacity-100 transition duration-300 bg-gradient-to-r from-white/5 via-transparent to-white/5 rounded-inherit" })), children] })));
|
|
145364
|
+
cardBorderVariants[borderVariant],
|
|
145365
|
+
// Interactive
|
|
145366
|
+
interactive && "cursor-pointer", interactive && cardHoverBorderVariants[borderVariant], interactive && hoverAnimations[hoverAnimation],
|
|
145367
|
+
// Override (always last)
|
|
145368
|
+
styles) }, { children: [jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 rounded-inherit ring-1 ring-inset ring-white/10" }), interactive && hoverAnimation === "glow" && (jsxRuntime.jsx("div", { className: "absolute inset-0 opacity-0 hover:opacity-100 transition duration-300 bg-gradient-to-r from-white/5 via-transparent to-white/5 rounded-inherit" })), children] })));
|
|
142165
145369
|
}
|
|
142166
145370
|
|
|
142167
145371
|
function CardHeader(_a) {
|
|
@@ -142603,6 +145807,7 @@ exports.ValueBadge = ValueBadge;
|
|
|
142603
145807
|
exports.WorldMap = WorldMap;
|
|
142604
145808
|
exports.WorldMapCountryTable = WorldMapCountryTable;
|
|
142605
145809
|
exports.YoutubeVideoPlayer = YoutubeVideoPlayer;
|
|
145810
|
+
exports.cn = cn;
|
|
142606
145811
|
exports.createForceLayout = createForceLayout;
|
|
142607
145812
|
exports.createGridLayout = createGridLayout;
|
|
142608
145813
|
exports.createTreeLayout = createTreeLayout;
|