@nocobase/app 1.9.0-beta.8 → 2.0.0-alpha.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/dist/client/1145.4029b0be.async.js +3 -0
- package/dist/client/1617.dd671a87.async.js +6 -0
- package/dist/client/1833.82373d30.async.js +6 -0
- package/dist/client/2134.1d86e440.async.js +5 -0
- package/dist/client/2190.90c718a9.async.js +3 -0
- package/dist/client/2498.be8b1194.async.js +7 -0
- package/dist/client/260.5b02a0a5.async.js +4 -0
- package/dist/client/2953.2e77d77c.async.js +24 -0
- package/dist/client/3130.8c624281.async.js +35 -0
- package/dist/client/3170.6147bd19.async.js +24 -0
- package/dist/client/3255.e6303833.async.js +10 -0
- package/dist/client/3520.81fd6362.async.js +24 -0
- package/dist/client/3522.674f2264.async.js +4 -0
- package/dist/client/4088.0568ef31.async.js +5 -0
- package/dist/client/4205.c3eac46d.async.js +9 -0
- package/dist/client/4644.ae01f8a6.async.js +4 -0
- package/dist/client/4666.d20ff352.async.js +8 -0
- package/dist/client/4840.477401f9.async.js +8 -0
- package/dist/client/5068.72e9d750.async.js +5 -0
- package/dist/client/5087.468f5500.async.js +6 -0
- package/dist/client/5950.b83f8586.async.js +4 -0
- package/dist/client/6416.361c93ff.async.js +4 -0
- package/dist/client/6472.ac05f778.async.js +7 -0
- package/dist/client/6779.47fc1971.async.js +10 -0
- package/dist/client/6816.1ff200ac.async.js +5 -0
- package/dist/client/6996.836a3f7f.async.js +8 -0
- package/dist/client/7463.70ca58ce.async.js +20 -0
- package/dist/client/7522.1f91be5c.async.js +23 -0
- package/dist/client/7596.232a7185.async.js +10 -0
- package/dist/client/7688.85d6d7bb.async.js +4 -0
- package/dist/client/8106.829fd6b5.async.js +10 -0
- package/dist/client/816.b71d5e67.async.js +1 -0
- package/dist/client/8541.e3110aaa.async.js +8 -0
- package/dist/client/9017.28eacc5a.async.js +6 -0
- package/dist/client/937.a55819ab.async.js +5 -0
- package/dist/client/9489.25ca39a9.async.js +7 -0
- package/dist/client/9663.c04b2ad1.async.js +5 -0
- package/dist/client/9729.0d7a5c47.async.js +8 -0
- package/dist/client/9848.18f8d3db.async.js +4 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/npm._at_ant-design.0bc226be.async.js +141 -0
- package/dist/client/npm._at_babel.aa6aa60c.async.js +3 -0
- package/dist/client/npm._at_codemirror.23366286.async.js +26 -0
- package/dist/client/npm._at_formily.7785699b.async.js +96 -0
- package/dist/client/npm._at_lezer.8e7184b5.async.js +2 -0
- package/dist/client/npm._at_rc-component.adfcb69e.async.js +8 -0
- package/dist/client/npm._at_react-spring.47360957.async.js +1 -0
- package/dist/client/npm._at_umijs.47085d01.async.js +7 -0
- package/dist/client/npm._at_use-gesture.15164819.async.js +1 -0
- package/dist/client/npm.acorn.1f389fab.async.js +6 -0
- package/dist/client/npm.ahooks.7b545023.async.js +6 -0
- package/dist/client/npm.antd-mobile.9ba7b196.async.js +1 -0
- package/dist/client/npm.antd-style.f89528fc.async.js +1 -0
- package/dist/client/npm.antd.8f85b075.async.js +935 -0
- package/dist/client/npm.babel-runtime.eed49798.async.js +1 -0
- package/dist/client/{npm.d3-selection.15d6ab5b.async.js → npm.d3-selection.605ec083.async.js} +1 -1
- package/dist/client/{npm.d3-transition.5fd82a9c.async.js → npm.d3-transition.1d02fe5d.async.js} +1 -1
- package/dist/client/{npm.dayjs.45ed1676.async.js → npm.dayjs.772d2a39.async.js} +1 -1
- package/dist/client/npm.dompurify.2dcd638d.async.js +2 -0
- package/dist/client/{npm.entities.8159ac3e.async.js → npm.entities.536e25f7.async.js} +1 -1
- package/dist/client/{npm.highlight.js.f727dfe3.async.js → npm.highlight.js.c1f693ec.async.js} +2 -2
- package/dist/client/{npm.htmlparser2.1a3babb6.async.js → npm.htmlparser2.a2f8d64d.async.js} +1 -1
- package/dist/client/npm.joi.0be0ffb8.async.js +1 -0
- package/dist/client/npm.lodash-es.d3d83c5d.async.js +1 -0
- package/dist/client/{npm.markdown-it.5b35f93d.async.js → npm.markdown-it.9eced26c.async.js} +1 -1
- package/dist/client/npm.mermaid.91e7e45d.async.js +1556 -0
- package/dist/client/npm.rc-cascader.2d4909f4.async.js +4 -0
- package/dist/client/npm.rc-image.500705f3.async.js +1 -0
- package/dist/client/npm.rc-menu.623f9c7e.async.js +1 -0
- package/dist/client/npm.rc-picker.c4dce7bc.async.js +22 -0
- package/dist/client/npm.rc-select.34fc277e.async.js +3 -0
- package/dist/client/npm.rc-slider.a10210c6.async.js +1 -0
- package/dist/client/npm.rc-table.8e9124fe.async.js +22 -0
- package/dist/client/npm.rc-tree-select.c1fbaa19.async.js +5 -0
- package/dist/client/npm.rc-tree.c1d5eac5.async.js +1 -0
- package/dist/client/npm.rc-util.7f3dc7bf.async.js +35 -0
- package/dist/client/{npm.react-router-dom.2109af81.async.js → npm.react-router-dom.c4482ef7.async.js} +1 -1
- package/dist/client/npm.ses.94a6543e.async.js +29 -0
- package/dist/client/npm.slate-react.ef6881ab.async.js +15 -0
- package/dist/client/npm.slate.44c32547.async.js +1 -0
- package/dist/client/npm.util.9c956416.async.js +10 -0
- package/dist/client/p__index.5eda2656.chunk.css +1 -0
- package/dist/client/p__index.751f234c.async.js +2316 -0
- package/dist/client/umi.ce574f8c.js +63 -0
- package/lib/config/cache.d.ts +2 -11
- package/lib/config/cache.js +3 -2
- package/lib/config/index.d.ts +2 -21
- package/lib/config/index.js +3 -0
- package/package.json +6 -6
- package/src/config/cache.ts +5 -4
- package/src/config/index.ts +5 -1
- package/dist/client/6858.082255a5.async.js +0 -59
- package/dist/client/npm._at_ant-design.5b9b3ce7.async.js +0 -141
- package/dist/client/npm._at_formily.f71b1c62.async.js +0 -96
- package/dist/client/npm._at_rc-component.5f4cc5e2.async.js +0 -8
- package/dist/client/npm._at_umijs.7f6c4722.async.js +0 -7
- package/dist/client/npm.ahooks.c5b165dc.async.js +0 -6
- package/dist/client/npm.antd.168d1e29.async.js +0 -464
- package/dist/client/npm.dompurify.2ca7a7c6.async.js +0 -3
- package/dist/client/npm.elkjs.f35a7d45.async.js +0 -26
- package/dist/client/npm.lodash-es.99877438.async.js +0 -1
- package/dist/client/npm.mermaid.b398414f.async.js +0 -1529
- package/dist/client/npm.rc-cascader.cf6ec555.async.js +0 -4
- package/dist/client/npm.rc-image.d550fa79.async.js +0 -1
- package/dist/client/npm.rc-menu.da4ef0ce.async.js +0 -1
- package/dist/client/npm.rc-picker.89eafb74.async.js +0 -22
- package/dist/client/npm.rc-select.44fb85b4.async.js +0 -3
- package/dist/client/npm.rc-slider.d2d511ab.async.js +0 -1
- package/dist/client/npm.rc-table.c5aa8a0d.async.js +0 -22
- package/dist/client/npm.rc-tree-select.5597dcbf.async.js +0 -5
- package/dist/client/npm.rc-tree.49888c60.async.js +0 -1
- package/dist/client/p__index.15474ef0.async.js +0 -1685
- package/dist/client/p__index.e4a52407.chunk.css +0 -1
- package/dist/client/umi.cb68cc62.js +0 -63
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[4216],{96391:function($a,ir,le){le.d(ir,{BU:function(){return Ya},CX:function(){return xa},F3:function(){return f},mH:function(){return ja}});var or=le(6907),pt=le.n(or),sr=le(23279),lr=le.n(sr),ur=le(23493),fr=le.n(ur),d=le(67294),dr=le(17423),i=le(42011),cr=le(58354),Ze=le(18156),vr=le(73935);function hr(t,e){if(t==null)return{};var a={},r=Object.keys(t),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(a[o]=t[o]);return a}function Te(t,e){if(t==null)return{};var a=hr(t,e),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)r=s[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}function We(t){"@babel/helpers - typeof";return We=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(t)}function gr(t,e){if(We(t)!=="object"||t===null)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e||"default");if(We(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function pr(t){var e=gr(t,"string");return We(e)==="symbol"?e:String(e)}function ue(t,e,a){return e=pr(e),e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Ye=(0,d.createContext)(null),we=()=>{var t=(0,d.useContext)(Ye);if(!t)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return t},Je,Qe,mt=parseInt(d.version.split(".")[0],10),wt=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Ot=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),te=typeof navigator<"u"&&/Android/.test(navigator.userAgent),Be=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Se=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),mr=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Et=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),wr=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Or=te&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),Er=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),Mr=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),br=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),Ke=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&((Je=navigator.userAgent.match(/Version\/(\d+)/))!==null&&Je!==void 0&&Je[1]&&parseInt((Qe=navigator.userAgent.match(/Version\/(\d+)/))===null||Qe===void 0?void 0:Qe[1],10)<17);var Oe=(!wr||!Or)&&!mr&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",Fe=new WeakMap,et=new WeakMap,tt=new WeakMap,Mt=new WeakMap,$e=new WeakMap,rt=new WeakMap,_e=new WeakMap,Le=new WeakMap,He=new WeakMap,qe=new WeakMap,at=new WeakMap,Ee=new WeakMap,ke=new WeakMap,je=new WeakMap,nt=new WeakMap,it=new WeakMap,he=new WeakMap,me=new WeakMap,ae=new WeakMap,Me=new WeakMap,be=new WeakMap,bt=new WeakMap,Re=Symbol("placeholder"),Dt=Symbol("mark-placeholder"),Ct=globalThis.Node,Dr=globalThis.Text,ot=t=>t&&t.ownerDocument&&t.ownerDocument.defaultView||null,Cr=t=>De(t)&&t.nodeType===8,fe=t=>De(t)&&t.nodeType===1,De=t=>{var e=ot(t);return!!e&&t instanceof e.Node},st=t=>{var e=t&&t.anchorNode&&ot(t.anchorNode);return!!e&&t instanceof e.Selection},yt=t=>De(t)&&t.nodeType===3,yr=t=>t.clipboardData&&t.clipboardData.getData("text/plain")!==""&&t.clipboardData.types.length===1,Sr=t=>{var[e,a]=t;if(fe(e)&&e.childNodes.length){var r=a===e.childNodes.length,o=r?a-1:a;for([e,o]=St(e,o,r?"backward":"forward"),r=o<a;fe(e)&&e.childNodes.length;){var s=r?e.childNodes.length-1:0;e=kr(e,s,r?"backward":"forward")}a=r&&e.textContent!=null?e.textContent.length:0}return[e,a]},Lr=t=>{for(var e=t&&t.parentNode;e;){if(e.toString()==="[object ShadowRoot]")return!0;e=e.parentNode}return!1},St=(t,e,a)=>{for(var{childNodes:r}=t,o=r[e],s=e,v=!1,c=!1;(Cr(o)||fe(o)&&o.childNodes.length===0||fe(o)&&o.getAttribute("contenteditable")==="false")&&!(v&&c);){if(s>=r.length){v=!0,s=e-1,a="backward";continue}if(s<0){c=!0,s=e+1,a="forward";continue}o=r[s],e=s,s+=a==="forward"?1:-1}return[o,e]},kr=(t,e,a)=>{var[r]=St(t,e,a);return r},Lt=t=>{var e="";if(yt(t)&&t.nodeValue)return t.nodeValue;if(fe(t)){for(var a of Array.from(t.childNodes))e+=Lt(a);var r=getComputedStyle(t).getPropertyValue("display");(r==="block"||r==="list"||t.tagName==="BR")&&(e+=`
|
|
2
|
+
`)}return e},xr=/data-slate-fragment="(.+?)"/m,Pr=t=>{var e=t.getData("text/html"),[,a]=e.match(xr)||[];return a},Ne=t=>t.getSelection!=null?t.getSelection():document.getSelection(),lt=(t,e,a)=>{var{target:r}=e;if(fe(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=f.getWindow(t);if(o.contains(r))return f.hasDOMNode(t,r,{editable:!0});var s=a.find(v=>{var{addedNodes:c,removedNodes:m}=v;for(var u of c)if(u===r||u.contains(r))return!0;for(var g of m)if(g===r||g.contains(r))return!0});return!s||s===e?!1:lt(t,s,a)},Tr=()=>{for(var t=document.activeElement;(e=t)!==null&&e!==void 0&&e.shadowRoot&&(a=t.shadowRoot)!==null&&a!==void 0&&a.activeElement;){var e,a,r;t=(r=t)===null||r===void 0||(r=r.shadowRoot)===null||r===void 0?void 0:r.activeElement}return t},kt=(t,e)=>!!(t.compareDocumentPosition(e)&Ct.DOCUMENT_POSITION_PRECEDING),Br=(t,e)=>!!(t.compareDocumentPosition(e)&Ct.DOCUMENT_POSITION_FOLLOWING),Fr=0;class Rr{constructor(){ue(this,"id",void 0),this.id="".concat(Fr++)}}var f={androidPendingDiffs:t=>ae.get(t),androidScheduleFlush:t=>{var e;(e=it.get(t))===null||e===void 0||e()},blur:t=>{var e=f.toDOMNode(t,t),a=f.findDocumentOrShadowRoot(t);Ee.set(t,!1),a.activeElement===e&&e.blur()},deselect:t=>{var{selection:e}=t,a=f.findDocumentOrShadowRoot(t),r=Ne(a);r&&r.rangeCount>0&&r.removeAllRanges(),e&&i.YR.deselect(t)},findDocumentOrShadowRoot:t=>{var e=f.toDOMNode(t,t),a=e.getRootNode();return a instanceof Document||a instanceof ShadowRoot?a:e.ownerDocument},findEventRange:(t,e)=>{"nativeEvent"in e&&(e=e.nativeEvent);var{clientX:a,clientY:r,target:o}=e;if(a==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(e));var s=f.toSlateNode(t,e.target),v=f.findPath(t,s);if(i.W_.isElement(s)&&i.ML.isVoid(t,s)){var c=o.getBoundingClientRect(),m=t.isInline(s)?a-c.left<c.left+c.width-a:r-c.top<c.top+c.height-r,u=i.ML.point(t,v,{edge:m?"start":"end"}),g=m?i.ML.before(t,u):i.ML.after(t,u);if(g){var D=i.ML.range(t,g);return D}}var p,{document:S}=f.getWindow(t);if(S.caretRangeFromPoint)p=S.caretRangeFromPoint(a,r);else{var L=S.caretPositionFromPoint(a,r);L&&(p=S.createRange(),p.setStart(L.offsetNode,L.offset),p.setEnd(L.offsetNode,L.offset))}if(!p)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(e));var h=f.toSlateRange(t,p,{exactMatch:!1,suppressThrow:!1});return h},findKey:(t,e)=>{var a=He.get(e);return a||(a=new Rr,He.set(e,a)),a},findPath:(t,e)=>{for(var a=[],r=e;;){var o=tt.get(r);if(o==null){if(i.ML.isEditor(r))return a;break}var s=et.get(r);if(s==null)break;a.unshift(s),r=o}throw new Error("Unable to find the path for Slate node: ".concat(i.o4.stringify(e)))},focus:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!Ee.get(e)){if(a.retries<=0)throw new Error("Could not set focus, editor seems stuck with pending operations");if(e.operations.length>0){setTimeout(()=>{f.focus(e,{retries:a.retries-1})},10);return}var r=f.toDOMNode(e,e),o=f.findDocumentOrShadowRoot(e);if(o.activeElement!==r){if(e.selection&&o instanceof Document){var s=Ne(o),v=f.toDOMRange(e,e.selection);s==null||s.removeAllRanges(),s==null||s.addRange(v)}e.selection||i.YR.select(e,i.ML.start(e,[])),Ee.set(e,!0),r.focus({preventScroll:!0})}}},getWindow:t=>{var e=Mt.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},hasDOMNode:function(e,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:o=!1}=r,s=f.toDOMNode(e,e),v;try{v=fe(a)?a:a.parentElement}catch(c){if(c instanceof Error&&!c.message.includes('Permission denied to access property "nodeType"'))throw c}return v?v.closest("[data-slate-editor]")===s&&(!o||v.isContentEditable?!0:typeof v.isContentEditable=="boolean"&&v.closest('[contenteditable="false"]')===s||!!v.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(t,e)=>De(e)&&f.hasDOMNode(t,e,{editable:!0}),hasRange:(t,e)=>{var{anchor:a,focus:r}=e;return i.ML.hasPath(t,a.path)&&i.ML.hasPath(t,r.path)},hasSelectableTarget:(t,e)=>f.hasEditableTarget(t,e)||f.isTargetInsideNonReadonlyVoid(t,e),hasTarget:(t,e)=>De(e)&&f.hasDOMNode(t,e),insertData:(t,e)=>{t.insertData(e)},insertFragmentData:(t,e)=>t.insertFragmentData(e),insertTextData:(t,e)=>t.insertTextData(e),isComposing:t=>!!ke.get(t),isFocused:t=>!!Ee.get(t),isReadOnly:t=>!!at.get(t),isTargetInsideNonReadonlyVoid:(t,e)=>{if(at.get(t))return!1;var a=f.hasTarget(t,e)&&f.toSlateNode(t,e);return i.W_.isElement(a)&&i.ML.isVoid(t,a)},setFragmentData:(t,e,a)=>t.setFragmentData(e,a),toDOMNode:(t,e)=>{var a=qe.get(t),r=i.ML.isEditor(e)?$e.get(t):a==null?void 0:a.get(f.findKey(t,e));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(i.o4.stringify(e)));return r},toDOMPoint:(t,e)=>{var[a]=i.ML.node(t,e.path),r=f.toDOMNode(t,a),o;i.ML.void(t,{at:e})&&(e={path:e.path,offset:0});for(var s="[data-slate-string], [data-slate-zero-width]",v=Array.from(r.querySelectorAll(s)),c=0,m=0;m<v.length;m++){var u=v[m],g=u.childNodes[0];if(!(g==null||g.textContent==null)){var{length:D}=g.textContent,p=u.getAttribute("data-slate-length"),S=p==null?D:parseInt(p,10),L=c+S,h=v[m+1];if(e.offset===L&&h!==null&&h!==void 0&&h.hasAttribute("data-slate-mark-placeholder")){var n,C=h.childNodes[0];o=[C instanceof Dr?C:h,(n=h.textContent)!==null&&n!==void 0&&n.startsWith("\uFEFF")?1:0];break}if(e.offset<=L){var k=Math.min(D,Math.max(0,e.offset-c));o=[g,k];break}c=L}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(i.o4.stringify(e)));return o},toDOMRange:(t,e)=>{var{anchor:a,focus:r}=e,o=i.e6.isBackward(e),s=f.toDOMPoint(t,a),v=i.e6.isCollapsed(e)?s:f.toDOMPoint(t,r),c=f.getWindow(t),m=c.document.createRange(),[u,g]=o?v:s,[D,p]=o?s:v,S=fe(u)?u:u.parentElement,L=!!S.getAttribute("data-slate-zero-width"),h=fe(D)?D:D.parentElement,n=!!h.getAttribute("data-slate-zero-width");return m.setStart(u,L?1:g),m.setEnd(D,n?1:p),m},toSlateNode:(t,e)=>{var a=fe(e)?e:e.parentElement;a&&!a.hasAttribute("data-slate-node")&&(a=a.closest("[data-slate-node]"));var r=a?_e.get(a):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(a));return r},toSlatePoint:(t,e,a)=>{var{exactMatch:r,suppressThrow:o,searchDirection:s="backward"}=a,[v,c]=r?e:Sr(e),m=v.parentNode,u=null,g=0;if(m){var D,p,S=f.toDOMNode(t,t),L=m.closest('[data-slate-void="true"]'),h=L&&S.contains(L)?L:null,n=m.closest('[contenteditable="false"]'),C=n&&S.contains(n)?n:null,k=m.closest("[data-slate-leaf]"),y=null;if(k){if(u=k.closest('[data-slate-node="text"]'),u){var F=f.getWindow(t),R=F.document.createRange();R.setStart(u,0),R.setEnd(v,c);var X=R.cloneContents(),$=[...Array.prototype.slice.call(X.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(X.querySelectorAll("[contenteditable=false]"))];$.forEach(W=>{if(te&&!r&&W.hasAttribute("data-slate-zero-width")&&W.textContent.length>0&&W.textContext!=="\uFEFF"){W.textContent.startsWith("\uFEFF")&&(W.textContent=W.textContent.slice(1));return}W.parentNode.removeChild(W)}),g=X.textContent.length,y=u}}else if(h){for(var de=h.querySelectorAll("[data-slate-leaf]"),Z=0;Z<de.length;Z++){var J=de[Z];if(f.hasDOMNode(t,J)){k=J;break}}k?(u=k.closest('[data-slate-node="text"]'),y=k,g=y.textContent.length,y.querySelectorAll("[data-slate-zero-width]").forEach(W=>{g-=W.textContent.length})):g=1}else if(C){var B=W=>W?W.querySelectorAll("[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"):[],E=C.closest('[data-slate-node="element"]');if(s==="forward"){var P,x=[...B(E),...B(E==null?void 0:E.nextElementSibling)];k=(P=x.find(W=>Br(C,W)))!==null&&P!==void 0?P:null}else{var b,Q=[...B(E==null?void 0:E.previousElementSibling),...B(E)];k=(b=Q.findLast(W=>kt(C,W)))!==null&&b!==void 0?b:null}k&&(u=k.closest('[data-slate-node="text"]'),y=k,s==="forward"?g=0:(g=y.textContent.length,y.querySelectorAll("[data-slate-zero-width]").forEach(W=>{g-=W.textContent.length})))}y&&g===y.textContent.length&&te&&y.getAttribute("data-slate-zero-width")==="z"&&(D=y.textContent)!==null&&D!==void 0&&D.startsWith("\uFEFF")&&(m.hasAttribute("data-slate-zero-width")||Be&&(p=y.textContent)!==null&&p!==void 0&&p.endsWith(`
|
|
3
|
+
|
|
4
|
+
`))&&g--}if(te&&!u&&!r){var I=m.hasAttribute("data-slate-node")?m:m.closest("[data-slate-node]");if(I&&f.hasDOMNode(t,I,{editable:!0})){var ce=f.toSlateNode(t,I),{path:ne,offset:ee}=i.ML.start(t,f.findPath(t,ce));return I.querySelector("[data-slate-leaf]")||(ee=c),{path:ne,offset:ee}}}if(!u){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(e))}var ie=f.toSlateNode(t,u),ve=f.findPath(t,ie);return{path:ve,offset:g}},toSlateRange:(t,e,a)=>{var r,{exactMatch:o,suppressThrow:s}=a,v=st(e)?e.anchorNode:e.startContainer,c,m,u,g,D;if(v)if(st(e)){if(Be&&e.rangeCount>1){u=e.focusNode;var p=e.getRangeAt(0),S=e.getRangeAt(e.rangeCount-1);if(u instanceof HTMLTableRowElement&&p.startContainer instanceof HTMLTableRowElement&&S.startContainer instanceof HTMLTableRowElement){let X=function($){return $.childElementCount>0?X($.children[0]):$};var L=p.startContainer,h=S.startContainer,n=X(L.children[p.startOffset]),C=X(h.children[S.startOffset]);g=0,C.childNodes.length>0?c=C.childNodes[0]:c=C,n.childNodes.length>0?u=n.childNodes[0]:u=n,C instanceof HTMLElement?m=C.innerHTML.length:m=0}else p.startContainer===u?(c=S.endContainer,m=S.endOffset,g=p.startOffset):(c=p.startContainer,m=p.endOffset,g=S.startOffset)}else c=e.anchorNode,m=e.anchorOffset,u=e.focusNode,g=e.focusOffset;Et&&Lr(c)||Be?D=e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:D=e.isCollapsed}else c=e.startContainer,m=e.startOffset,u=e.endContainer,g=e.endOffset,D=e.collapsed;if(c==null||u==null||m==null||g==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(e));Be&&(r=u.textContent)!==null&&r!==void 0&&r.endsWith(`
|
|
5
|
+
|
|
6
|
+
`)&&g===u.textContent.length&&g--;var k=f.toSlatePoint(t,[c,m],{exactMatch:o,suppressThrow:s});if(!k)return null;var y=kt(c,u)||c===u&&g<m,F=D?k:f.toSlatePoint(t,[u,g],{exactMatch:o,suppressThrow:s,searchDirection:y?"forward":"backward"});if(!F)return null;var R={anchor:k,focus:F};return i.e6.isExpanded(R)&&i.e6.isForward(R)&&fe(u)&&i.ML.void(t,{at:R.focus,mode:"highest"})&&(R=i.ML.unhangRange(t,R,{voids:!0})),R}};function Ir(t,e){var{path:a,diff:r}=e;if(!i.ML.hasPath(t,a))return!1;var o=i.NB.get(t,a);if(!i.xv.isText(o))return!1;if(r.start!==o.text.length||r.text.length===0)return o.text.slice(r.start,r.start+r.text.length)===r.text;var s=i.y$.next(a);if(!i.ML.hasPath(t,s))return!1;var v=i.NB.get(t,s);return i.xv.isText(v)&&v.text.startsWith(r.text)}function xt(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),r=1;r<e;r++)a[r-1]=arguments[r];return a.reduce((o,s)=>o.slice(0,s.start)+s.text+o.slice(s.end),t)}function Ar(t,e){for(var a=Math.min(t.length,e.length),r=0;r<a;r++)if(t.charAt(r)!==e.charAt(r))return r;return a}function Wr(t,e,a){for(var r=Math.min(t.length,e.length,a),o=0;o<r;o++)if(t.charAt(t.length-o-1)!==e.charAt(e.length-o-1))return o;return r}function Pt(t,e){var{start:a,end:r,text:o}=e,s=t.slice(a,r),v=Ar(s,o),c=Math.min(s.length-v,o.length-v),m=Wr(s,o,c),u={start:a+v,end:r-m,text:o.slice(v,o.length-m)};return u.start===u.end&&u.text.length===0?null:u}function _r(t,e,a){var r=Math.min(e.start,a.start),o=Math.max(0,Math.min(e.start+e.text.length,a.end)-a.start),s=xt(t,e,a),v=Math.max(a.start+a.text.length,e.start+e.text.length+(e.start+e.text.length>a.start?a.text.length:0)-o),c=s.slice(r,v),m=Math.max(e.end,a.end-e.text.length+(e.end-e.start));return Pt(t,{start:r,end:m,text:c})}function jr(t){var{path:e,diff:a}=t;return{anchor:{path:e,offset:a.start},focus:{path:e,offset:a.end}}}function ut(t,e){var{path:a,offset:r}=e;if(!i.ML.hasPath(t,a))return null;var o=i.NB.get(t,a);if(!i.xv.isText(o))return null;var s=i.ML.above(t,{match:c=>i.W_.isElement(c)&&i.ML.isBlock(t,c),at:a});if(!s)return null;for(;r>o.text.length;){var v=i.ML.next(t,{at:a,match:i.xv.isText});if(!v||!i.y$.isDescendant(v[1],s[1]))return null;r-=o.text.length,o=v[0],a=v[1]}return{path:a,offset:r}}function Tt(t,e){var a=ut(t,e.anchor);if(!a)return null;if(i.e6.isCollapsed(e))return{anchor:a,focus:a};var r=ut(t,e.focus);return r?{anchor:a,focus:r}:null}function ft(t,e,a){var r=ae.get(t),o=r==null?void 0:r.find(g=>{var{path:D}=g;return i.y$.equals(D,e.path)});if(!o||e.offset<=o.diff.start)return i.E9.transform(e,a,{affinity:"backward"});var{diff:s}=o;if(e.offset<=s.start+s.text.length){var v={path:e.path,offset:s.start},c=i.E9.transform(v,a,{affinity:"backward"});return c?{path:c.path,offset:c.offset+e.offset-s.start}:null}var m={path:e.path,offset:e.offset-s.text.length+s.end-s.start},u=i.E9.transform(m,a,{affinity:"backward"});return u?a.type==="split_node"&&i.y$.equals(a.path,e.path)&&m.offset<a.position&&s.start<a.position?u:{path:u.path,offset:u.offset+s.text.length-s.end+s.start}:null}function Bt(t,e,a){var r=ft(t,e.anchor,a);if(!r)return null;if(i.e6.isCollapsed(e))return{anchor:r,focus:r};var o=ft(t,e.focus,a);return o?{anchor:r,focus:o}:null}function Nr(t,e){var{path:a,diff:r,id:o}=t;switch(e.type){case"insert_text":return!i.y$.equals(e.path,a)||e.offset>=r.end?t:e.offset<=r.start?{diff:{start:e.text.length+r.start,end:e.text.length+r.end,text:r.text},id:o,path:a}:{diff:{start:r.start,end:r.end+e.text.length,text:r.text},id:o,path:a};case"remove_text":return!i.y$.equals(e.path,a)||e.offset>=r.end?t:e.offset+e.text.length<=r.start?{diff:{start:r.start-e.text.length,end:r.end-e.text.length,text:r.text},id:o,path:a}:{diff:{start:r.start,end:r.end-e.text.length,text:r.text},id:o,path:a};case"split_node":return!i.y$.equals(e.path,a)||e.position>=r.end?{diff:r,id:o,path:i.y$.transform(a,e,{affinity:"backward"})}:e.position>r.start?{diff:{start:r.start,end:Math.min(e.position,r.end),text:r.text},id:o,path:a}:{diff:{start:r.start-e.position,end:r.end-e.position,text:r.text},id:o,path:i.y$.transform(a,e,{affinity:"forward"})};case"merge_node":return i.y$.equals(e.path,a)?{diff:{start:r.start+e.position,end:r.end+e.position,text:r.text},id:o,path:i.y$.transform(a,e)}:{diff:r,id:o,path:i.y$.transform(a,e)}}var s=i.y$.transform(a,e);return s?{diff:r,path:s,id:o}:null}function Ft(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,r)}return a}function ze(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Ft(Object(a),!0).forEach(function(r){ue(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Ft(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}var Ur=25,Yr=200,Kr=function(){},$r=t=>(t==null?void 0:t.constructor.name)==="DataTransfer";function Hr(t){var{editor:e,scheduleOnDOMSelectionChange:a,onDOMSelectionChange:r}=t,o=!1,s=null,v=null,c=null,m=0,u=!1,g=()=>{var E=be.get(e);if(be.delete(e),E){var{selection:P}=e,x=Tt(e,E);x&&(!P||!i.e6.equals(x,P))&&i.YR.select(e,x)}},D=()=>{var E=Me.get(e);if(Me.delete(e),!!E){if(E.at){var P=i.E9.isPoint(E.at)?ut(e,E.at):Tt(e,E.at);if(!P)return;var x=i.ML.range(e,P);(!e.selection||!i.e6.equals(e.selection,x))&&i.YR.select(e,P)}E.run()}},p=()=>{if(v&&(clearTimeout(v),v=null),c&&(clearTimeout(c),c=null),!F()&&!y()){g();return}o||(o=!0,setTimeout(()=>o=!1)),y()&&(o="action");var E=e.selection&&i.ML.rangeRef(e,e.selection,{affinity:"forward"});me.set(e,e.marks),Kr("flush",Me.get(e),ae.get(e));for(var P=F(),x;x=(b=ae.get(e))===null||b===void 0?void 0:b[0];){var b,Q,I=he.get(e);I!==void 0&&(he.delete(e),e.marks=I),I&&u===!1&&(u=null);var ce=jr(x);(!e.selection||!i.e6.equals(e.selection,ce))&&i.YR.select(e,ce),x.diff.text?i.ML.insertText(e,x.diff.text):i.ML.deleteFragment(e),ae.set(e,(Q=ae.get(e))===null||Q===void 0?void 0:Q.filter(ie=>{var{id:ve}=ie;return ve!==x.id})),Ir(e,x)||(P=!1,Me.delete(e),me.delete(e),o="action",be.delete(e),a.cancel(),r.cancel(),E==null||E.unref())}var ne=E==null?void 0:E.unref();if(ne&&!be.get(e)&&(!e.selection||!i.e6.equals(ne,e.selection))&&i.YR.select(e,ne),y()){D();return}P&&a(),a.flush(),r.flush(),g();var ee=me.get(e);me.delete(e),ee!==void 0&&(e.marks=ee,e.onChange())},S=E=>{s&&clearTimeout(s),s=setTimeout(()=>{ke.set(e,!1),p()},Ur)},L=E=>{ke.set(e,!0),s&&(clearTimeout(s),s=null)},h=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,x=rt.get(e);if(x){if(F()||P){x.style.display="none";return}x.style.removeProperty("display")}},n=(E,P)=>{var x,b=(x=ae.get(e))!==null&&x!==void 0?x:[];ae.set(e,b);var Q=i.NB.leaf(e,E),I=b.findIndex(ee=>i.y$.equals(ee.path,E));if(I<0){var ce=Pt(Q.text,P);ce&&b.push({path:E,diff:P,id:m++}),h();return}var ne=_r(Q.text,b[I].diff,P);if(!ne){b.splice(I,1),h();return}b[I]=ze(ze({},b[I]),{},{diff:ne})},C=function(P){var{at:x}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};u=!1,be.delete(e),a.cancel(),r.cancel(),y()&&p(),Me.set(e,{at:x,run:P}),c=setTimeout(p)},k=E=>{var P;if(v&&(clearTimeout(v),v=null),!Fe.get(e)){var{inputType:x}=E,b=null,Q=E.dataTransfer||E.data||void 0;u!==!1&&x!=="insertText"&&x!=="insertCompositionText"&&(u=!1);var[I]=E.getTargetRanges();I&&(b=f.toSlateRange(e,I,{exactMatch:!1,suppressThrow:!0}));var ce=f.getWindow(e),ne=ce.getSelection();if(!b&&ne&&(I=ne,b=f.toSlateRange(e,ne,{exactMatch:!1,suppressThrow:!0})),b=(P=b)!==null&&P!==void 0?P:e.selection,!!b){var ee=!0;if(x.startsWith("delete")){if(i.e6.isExpanded(b)){var[ie,ve]=i.e6.edges(b),W=i.NB.leaf(e,ie.path);if(W.text.length===ie.offset&&ve.offset===0){var Ve=i.ML.next(e,{at:ie.path,match:i.xv.isText});Ve&&i.y$.equals(Ve[1],ve.path)&&(b={anchor:ve,focus:ve})}}var ht=x.endsWith("Backward")?"backward":"forward",[l,M]=i.e6.edges(b),[w,O]=i.ML.leaf(e,l.path),N={text:"",start:l.offset,end:M.offset},T=ae.get(e),oe=T==null?void 0:T.find(Pe=>i.y$.equals(Pe.path,O)),V=oe?[oe.diff,N]:[N],_=xt(w.text,...V);if(_.length===0&&(ee=!1),i.e6.isExpanded(b)){if(ee&&i.y$.equals(b.anchor.path,b.focus.path)){var H={path:b.anchor.path,offset:l.offset},Y=i.ML.range(e,H,H);return $(Y),n(b.anchor.path,{text:"",end:M.offset,start:l.offset})}return C(()=>i.ML.deleteFragment(e,{direction:ht}),{at:b})}}switch(x){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return C(()=>i.ML.deleteFragment(e),{at:b});case"deleteContent":case"deleteContentForward":{var{anchor:q}=b;if(ee&&i.e6.isCollapsed(b)){var U=i.NB.leaf(e,q.path);if(q.offset<U.text.length)return n(q.path,{text:"",start:q.offset,end:q.offset+1})}return C(()=>i.ML.deleteForward(e),{at:b})}case"deleteContentBackward":{var se,{anchor:ge}=b,Ae=st(I)?I.isCollapsed:!!((se=I)!==null&&se!==void 0&&se.collapsed);return ee&&Ae&&i.e6.isCollapsed(b)&&ge.offset>0?n(ge.path,{text:"",start:ge.offset-1,end:ge.offset}):C(()=>i.ML.deleteBackward(e),{at:b})}case"deleteEntireSoftLine":return C(()=>{i.ML.deleteBackward(e,{unit:"line"}),i.ML.deleteForward(e,{unit:"line"})},{at:b});case"deleteHardLineBackward":return C(()=>i.ML.deleteBackward(e,{unit:"block"}),{at:b});case"deleteSoftLineBackward":return C(()=>i.ML.deleteBackward(e,{unit:"line"}),{at:b});case"deleteHardLineForward":return C(()=>i.ML.deleteForward(e,{unit:"block"}),{at:b});case"deleteSoftLineForward":return C(()=>i.ML.deleteForward(e,{unit:"line"}),{at:b});case"deleteWordBackward":return C(()=>i.ML.deleteBackward(e,{unit:"word"}),{at:b});case"deleteWordForward":return C(()=>i.ML.deleteForward(e,{unit:"word"}),{at:b});case"insertLineBreak":return C(()=>i.ML.insertSoftBreak(e),{at:b});case"insertParagraph":return C(()=>i.ML.insertBreak(e),{at:b});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if($r(Q))return C(()=>f.insertData(e,Q),{at:b});var z=Q??"";if(he.get(e)&&(z=z.replace("\uFEFF","")),x==="insertText"&&/.*\n.*\n$/.test(z)&&(z=z.slice(0,-1)),z.includes(`
|
|
7
|
+
`))return C(()=>{var Pe=z.split(`
|
|
8
|
+
`);Pe.forEach((Ue,Xe)=>{Ue&&i.ML.insertText(e,Ue),Xe!==Pe.length-1&&i.ML.insertSoftBreak(e)})},{at:b});if(i.y$.equals(b.anchor.path,b.focus.path)){var[Ce,ye]=i.e6.edges(b),K={start:Ce.offset,end:ye.offset,text:z};if(z&&u&&x==="insertCompositionText"){var G=u.start+u.text.search(/\S|$/),Ge=K.start+K.text.search(/\S|$/);Ge===G+1&&K.end===u.start+u.text.length?(K.start-=1,u=null,J()):u=!1}else x==="insertText"?u===null?u=K:u&&i.e6.isCollapsed(b)&&u.end+u.text.length===Ce.offset?u=ze(ze({},u),{},{text:u.text+z}):u=!1:u=!1;if(ee){n(Ce.path,K);return}}return C(()=>i.ML.insertText(e,z),{at:b})}}}}},y=()=>!!Me.get(e),F=()=>{var E;return!!((E=ae.get(e))!==null&&E!==void 0&&E.length)},R=()=>y()||F(),X=()=>o,$=E=>{be.set(e,E),v&&(clearTimeout(v),v=null);var{selection:P}=e;if(E){var x=!P||!i.y$.equals(P.anchor.path,E.anchor.path),b=!P||!i.y$.equals(P.anchor.path.slice(0,-1),E.anchor.path.slice(0,-1));(x&&u||b)&&(u=!1),(x||F())&&(v=setTimeout(p,Yr))}},de=()=>{(y()||!F())&&p()},Z=E=>{F()||(h(!0),setTimeout(h))},J=()=>{y()||(c=setTimeout(p))},B=E=>{if(!(F()||y())&&E.some(x=>lt(e,x,E))){var P;(P=bt.get(e))===null||P===void 0||P()}};return{flush:p,scheduleFlush:J,hasPendingDiffs:F,hasPendingAction:y,hasPendingChanges:R,isFlushing:X,handleUserSelect:$,handleCompositionEnd:S,handleCompositionStart:L,handleDOMBeforeInput:k,handleKeyDown:Z,handleDomMutations:B,handleInput:de}}function qr(){var t=(0,d.useRef)(!1);return(0,d.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),t.current}var xe=Ke?d.useLayoutEffect:d.useEffect;function zr(t,e,a){var[r]=(0,d.useState)(()=>new MutationObserver(e));xe(()=>{r.takeRecords()}),(0,d.useEffect)(()=>{if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(t.current,a),()=>r.disconnect()},[r,t,a])}var Vr=["node"];function Rt(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,r)}return a}function Gr(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Rt(Object(a),!0).forEach(function(r){ue(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Rt(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}var Xr={subtree:!0,childList:!0,characterData:!0},Zr=te?t=>{var{node:e}=t,a=Te(t,Vr);if(!te)return null;var r=we(),o=qr(),[s]=(0,d.useState)(()=>Hr(Gr({editor:r},a)));return zr(e,s.handleDomMutations,Xr),it.set(r,s.scheduleFlush),o&&s.flush(),s}:()=>null,Jr=["anchor","focus"],Qr=["anchor","focus"],ea=(t,e)=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(a=>e.hasOwnProperty(a)&&t[a]===e[a]),It=(t,e)=>{var a=Te(t,Jr),r=Te(e,Qr);return t[Re]===e[Re]&&ea(a,r)},ta=(t,e)=>{if(t.length!==e.length)return!1;for(var a=0;a<t.length;a++){var r=t[a],o=e[a];if(!i.e6.equals(r,o)||!It(r,o))return!1}return!0},ra=(t,e)=>{if(t.length!==e.length)return!1;for(var a=0;a<t.length;a++){var r=t[a],o=e[a];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!It(r,o))return!1}return!0};function At(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,r)}return a}function aa(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?At(Object(a),!0).forEach(function(r){ue(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):At(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}var na=t=>{var{isLast:e,leaf:a,parent:r,text:o}=t,s=we(),v=f.findPath(s,o),c=i.y$.parent(v),m=!!a[Dt];return s.isVoid(r)?d.createElement(dt,{length:i.NB.string(r).length}):a.text===""&&r.children[r.children.length-1]===o&&!s.isInline(r)&&i.ML.string(s,c)===""?d.createElement(dt,{isLineBreak:!0,isMarkPlaceholder:m}):a.text===""?d.createElement(dt,{isMarkPlaceholder:m}):e&&a.text.slice(-1)===`
|
|
9
|
+
`?d.createElement(Wt,{isTrailing:!0,text:a.text}):d.createElement(Wt,{text:a.text})},Wt=t=>{var{text:e,isTrailing:a=!1}=t,r=(0,d.useRef)(null),o=()=>"".concat(e??"").concat(a?`
|
|
10
|
+
`:""),[s]=(0,d.useState)(o);return xe(()=>{var v=o();r.current&&r.current.textContent!==v&&(r.current.textContent=v)}),d.createElement(ia,{ref:r},s)},ia=(0,d.memo)((0,d.forwardRef)((t,e)=>d.createElement("span",{"data-slate-string":!0,ref:e},t.children))),dt=t=>{var{length:e=0,isLineBreak:a=!1,isMarkPlaceholder:r=!1}=t,o={"data-slate-zero-width":a?"n":"z","data-slate-length":e};return r&&(o["data-slate-mark-placeholder"]=!0),d.createElement("span",aa({},o),!(te||wt)||!a?"\uFEFF":null,a?d.createElement("br",null):null)};function _t(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,r)}return a}function jt(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?_t(Object(a),!0).forEach(function(r){ue(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):_t(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}var oa=te?300:0;function sa(t,e){t.current&&(t.current.disconnect(),e&&(t.current=null))}function Nt(t){t.current&&(clearTimeout(t.current),t.current=null)}var la=t=>{var{leaf:e,isLast:a,text:r,parent:o,renderPlaceholder:s,renderLeaf:v=k=>d.createElement(fa,jt({},k))}=t,c=we(),m=(0,d.useRef)(null),u=(0,d.useRef)(null),[g,D]=(0,d.useState)(!1),p=(0,d.useRef)(null),S=(0,d.useCallback)(k=>{if(sa(m,k==null),k==null){var y;rt.delete(c),(y=e.onPlaceholderResize)===null||y===void 0||y.call(e,null)}else{if(rt.set(c,k),!m.current){var F=window.ResizeObserver||cr.do;m.current=new F(()=>{var R;(R=e.onPlaceholderResize)===null||R===void 0||R.call(e,k)})}m.current.observe(k),u.current=k}},[u,e,c]),L=d.createElement(na,{isLast:a,leaf:e,parent:o,text:r}),h=!!e[Re];if((0,d.useEffect)(()=>(h?p.current||(p.current=setTimeout(()=>{D(!0),p.current=null},oa)):(Nt(p),D(!1)),()=>Nt(p)),[h,D]),h&&g){var n={children:e.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:Se?"inherit":void 0},contentEditable:!1,ref:S}};L=d.createElement(d.Fragment,null,s(n),L)}var C={"data-slate-leaf":!0};return v({attributes:C,children:L,leaf:e,text:r})},ua=d.memo(la,(t,e)=>e.parent===t.parent&&e.isLast===t.isLast&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&e.text===t.text&&i.xv.equals(e.leaf,t.leaf)&&e.leaf[Re]===t.leaf[Re]),fa=t=>{var{attributes:e,children:a}=t;return d.createElement("span",jt({},e),a)},da=t=>{for(var{decorations:e,isLast:a,parent:r,renderPlaceholder:o,renderLeaf:s,text:v}=t,c=we(),m=(0,d.useRef)(null),u=i.xv.decorations(v,e),g=f.findKey(c,v),D=[],p=0;p<u.length;p++){var S=u[p];D.push(d.createElement(ua,{isLast:a&&p===u.length-1,key:"".concat(g.id,"-").concat(p),renderPlaceholder:o,leaf:S,text:v,parent:r,renderLeaf:s}))}var L=(0,d.useCallback)(h=>{var n=qe.get(c);h?(n==null||n.set(g,h),Le.set(v,h),_e.set(h,v)):(n==null||n.delete(g),Le.delete(v),m.current&&_e.delete(m.current)),m.current=h},[m,c,g,v]);return d.createElement("span",{"data-slate-node":"text",ref:L},D)},Ut=d.memo(da,(t,e)=>e.parent===t.parent&&e.isLast===t.isLast&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&e.text===t.text&&ra(e.decorations,t.decorations));function Yt(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,r)}return a}function ct(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Yt(Object(a),!0).forEach(function(r){ue(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Yt(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}var ca=t=>{var{decorations:e,element:a,renderElement:r=k=>d.createElement(ha,ct({},k)),renderPlaceholder:o,renderLeaf:s,selection:v}=t,c=we(),m=pa(),u=c.isInline(a),g=f.findKey(c,a),D=(0,d.useCallback)(k=>{var y=qe.get(c);k?(y==null||y.set(g,k),Le.set(a,k),_e.set(k,a)):(y==null||y.delete(g),Le.delete(a))},[c,g,a]),p=Ht({decorations:e,node:a,renderElement:r,renderPlaceholder:o,renderLeaf:s,selection:v}),S={"data-slate-node":"element",ref:D};if(u&&(S["data-slate-inline"]=!0),!u&&i.ML.hasInlines(c,a)){var L=i.NB.string(a),h=pt()(L);h==="rtl"&&(S.dir=h)}if(i.ML.isVoid(c,a)){S["data-slate-void"]=!0,!m&&u&&(S.contentEditable=!1);var n=u?"span":"div",[[C]]=i.NB.texts(a);p=d.createElement(n,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},d.createElement(Ut,{renderPlaceholder:o,decorations:[],isLast:!1,parent:a,text:C})),et.set(C,0),tt.set(C,a)}return r({attributes:S,children:p,element:a})},va=d.memo(ca,(t,e)=>t.element===e.element&&t.renderElement===e.renderElement&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&ta(t.decorations,e.decorations)&&(t.selection===e.selection||!!t.selection&&!!e.selection&&i.e6.equals(t.selection,e.selection))),ha=t=>{var{attributes:e,children:a,element:r}=t,o=we(),s=o.isInline(r)?"span":"div";return d.createElement(s,ct(ct({},e),{},{style:{position:"relative"}}),a)},Kt=(0,d.createContext)(()=>[]),ga=()=>(0,d.useContext)(Kt),$t=(0,d.createContext)(!1),Ha=()=>useContext($t),Ht=t=>{var{decorations:e,node:a,renderElement:r,renderPlaceholder:o,renderLeaf:s,selection:v}=t,c=ga(),m=we();Fe.set(m,!1);for(var u=f.findPath(m,a),g=[],D=i.W_.isElement(a)&&!m.isInline(a)&&i.ML.hasInlines(m,a),p=0;p<a.children.length;p++){var S=u.concat(p),L=a.children[p],h=f.findKey(m,L),n=i.ML.range(m,S),C=v&&i.e6.intersection(n,v),k=c([L,S]);for(var y of e){var F=i.e6.intersection(y,n);F&&k.push(F)}i.W_.isElement(L)?g.push(d.createElement($t.Provider,{key:"provider-".concat(h.id),value:!!C},d.createElement(va,{decorations:k,element:L,key:h.id,renderElement:r,renderPlaceholder:o,renderLeaf:s,selection:C}))):g.push(d.createElement(Ut,{decorations:k,key:h.id,isLast:D&&p===a.children.length-1,parent:a,renderPlaceholder:o,renderLeaf:s,text:L})),et.set(L,p),tt.set(L,a)}return g},qt=(0,d.createContext)(!1),pa=()=>(0,d.useContext)(qt),vt=(0,d.createContext)(null),ma=()=>{var t=(0,d.useContext)(vt);if(!t)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:e}=t;return e},qa=()=>{var t=useContext(vt);if(!t)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");return t};function wa(){var t=we(),e=(0,d.useRef)(!1),a=(0,d.useRef)(0),r=(0,d.useCallback)(()=>{if(!e.current){e.current=!0;var o=f.getWindow(t);o.cancelAnimationFrame(a.current),a.current=o.requestAnimationFrame(()=>{e.current=!1})}},[t]);return(0,d.useEffect)(()=>()=>cancelAnimationFrame(a.current),[]),{receivedUserInput:e,onUserInput:r}}var Oa=3,Ea={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},Ma={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},ba={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},A=t=>{var e=Ea[t],a=Ma[t],r=ba[t],o=e&&(0,Ze.P6)(e),s=a&&(0,Ze.P6)(a),v=r&&(0,Ze.P6)(r);return c=>!!(o&&o(c)||Ot&&s&&s(c)||!Ot&&v&&v(c))},j={isBold:A("bold"),isCompose:A("compose"),isMoveBackward:A("moveBackward"),isMoveForward:A("moveForward"),isDeleteBackward:A("deleteBackward"),isDeleteForward:A("deleteForward"),isDeleteLineBackward:A("deleteLineBackward"),isDeleteLineForward:A("deleteLineForward"),isDeleteWordBackward:A("deleteWordBackward"),isDeleteWordForward:A("deleteWordForward"),isExtendBackward:A("extendBackward"),isExtendForward:A("extendForward"),isExtendLineBackward:A("extendLineBackward"),isExtendLineForward:A("extendLineForward"),isItalic:A("italic"),isMoveLineBackward:A("moveLineBackward"),isMoveLineForward:A("moveLineForward"),isMoveWordBackward:A("moveWordBackward"),isMoveWordForward:A("moveWordForward"),isRedo:A("redo"),isSoftBreak:A("insertSoftBreak"),isSplitBlock:A("splitBlock"),isTransposeCharacter:A("transposeCharacter"),isUndo:A("undo")},Da=(t,e)=>{var a=[],r=()=>{a=[]},o=v=>{if(e.current){var c=v.filter(m=>lt(t,m,v));a.push(...c)}};function s(){a.length>0&&(a.reverse().forEach(v=>{v.type!=="characterData"&&(v.removedNodes.forEach(c=>{v.target.insertBefore(c,v.nextSibling)}),v.addedNodes.forEach(c=>{v.target.removeChild(c)}))}),r())}return{registerMutations:o,restoreDOM:s,clear:r}},Ca={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class zt extends d.Component{constructor(){super(...arguments),ue(this,"context",null),ue(this,"manager",null),ue(this,"mutationObserver",null)}observe(){var e,{node:a}=this.props;if(!a.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(e=this.mutationObserver)===null||e===void 0||e.observe(a.current,Ca)}componentDidMount(){var{receivedUserInput:e}=this.props,a=this.context;this.manager=Da(a,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,a,r,o=(e=this.mutationObserver)===null||e===void 0?void 0:e.takeRecords();if(o!=null&&o.length){var s;(s=this.manager)===null||s===void 0||s.registerMutations(o)}return(a=this.mutationObserver)===null||a===void 0||a.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var e;(e=this.manager)===null||e===void 0||e.clear(),this.observe()}componentWillUnmount(){var e;(e=this.mutationObserver)===null||e===void 0||e.disconnect()}render(){return this.props.children}}ue(zt,"contextType",Ye);var ya=te?zt:t=>{var{children:e}=t;return d.createElement(d.Fragment,null,e)},Vt=(0,d.createContext)(!1),za=()=>useContext(Vt),Sa=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],La=["text"];function Gt(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,r)}return a}function pe(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Gt(Object(a),!0).forEach(function(r){ue(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Gt(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}var ka=t=>d.createElement(d.Fragment,null,Ht(t)),xa=(0,d.forwardRef)((t,e)=>{var a=(0,d.useCallback)(l=>d.createElement(Pa,pe({},l)),[]),{autoFocus:r,decorate:o=Ta,onDOMBeforeInput:s,placeholder:v,readOnly:c=!1,renderElement:m,renderLeaf:u,renderPlaceholder:g=a,scrollSelectionIntoView:D=Ba,style:p={},as:S="div",disableDefaultStyles:L=!1}=t,h=Te(t,Sa),n=ma(),[C,k]=(0,d.useState)(!1),y=(0,d.useRef)(null),F=(0,d.useRef)([]),[R,X]=(0,d.useState)(),$=(0,d.useRef)(!1),{onUserInput:de,receivedUserInput:Z}=wa(),[,J]=(0,d.useReducer)(l=>l+1,0);bt.set(n,J),at.set(n,c);var B=(0,d.useMemo)(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);(0,d.useEffect)(()=>{y.current&&r&&y.current.focus()},[r]);var E=(0,d.useRef)(),P=(0,d.useMemo)(()=>fr()(()=>{if(Fe.get(n)){P();return}var l=f.toDOMNode(n,n),M=l.getRootNode();if(!$.current&&Se&&M instanceof ShadowRoot){$.current=!0;var w=Tr();w?document.execCommand("indent"):i.YR.deselect(n),$.current=!1;return}var O=E.current;if((te||!f.isComposing(n))&&(!B.isUpdatingSelection||O!=null&&O.isFlushing())&&!B.isDraggingInternally){var N=f.findDocumentOrShadowRoot(n),{activeElement:T}=N,oe=f.toDOMNode(n,n),V=Ne(N);if(T===oe?(B.latestElement=T,Ee.set(n,!0)):Ee.delete(n),!V)return i.YR.deselect(n);var{anchorNode:_,focusNode:H}=V,Y=f.hasEditableTarget(n,_)||f.isTargetInsideNonReadonlyVoid(n,_),q=f.hasTarget(n,H);if(Y&&q){var U=f.toSlateRange(n,V,{exactMatch:!1,suppressThrow:!0});U&&(!f.isComposing(n)&&!(O!=null&&O.hasPendingChanges())&&!(O!=null&&O.isFlushing())?i.YR.select(n,U):O==null||O.handleUserSelect(U))}c&&(!Y||!q)&&i.YR.deselect(n)}},100),[n,c,B]),x=(0,d.useMemo)(()=>lr()(P,0),[P]);E.current=Zr({node:y,onDOMSelectionChange:P,scheduleOnDOMSelectionChange:x}),xe(()=>{var l,M,w;y.current&&(w=ot(y.current))?(Mt.set(n,w),$e.set(n,y.current),Le.set(n,y.current),_e.set(y.current,n)):Le.delete(n);var{selection:O}=n,N=f.findDocumentOrShadowRoot(n),T=Ne(N);if(!(!T||!f.isFocused(n)||(l=E.current)!==null&&l!==void 0&&l.hasPendingAction())){var oe=Y=>{var q=T.type!=="None";if(!(!O&&!q)){var U=T.focusNode,se;if(Be&&T.rangeCount>1){var ge=T.getRangeAt(0),Ae=T.getRangeAt(T.rangeCount-1);ge.startContainer===U?se=Ae.endContainer:se=ge.startContainer}else se=T.anchorNode;var z=$e.get(n),Ce=!1;if(z.contains(se)&&z.contains(U)&&(Ce=!0),q&&Ce&&O&&!Y){var ye=f.toSlateRange(n,T,{exactMatch:!0,suppressThrow:!0});if(ye&&i.e6.equals(ye,O)){var K;if(!B.hasMarkPlaceholder||(K=se)!==null&&K!==void 0&&(K=K.parentElement)!==null&&K!==void 0&&K.hasAttribute("data-slate-mark-placeholder"))return}}if(O&&!f.hasRange(n,O)){n.selection=f.toSlateRange(n,T,{exactMatch:!1,suppressThrow:!0});return}B.isUpdatingSelection=!0;var G=O&&f.toDOMRange(n,O);return G?(f.isComposing(n)&&!te?T.collapseToEnd():i.e6.isBackward(O)?T.setBaseAndExtent(G.endContainer,G.endOffset,G.startContainer,G.startOffset):T.setBaseAndExtent(G.startContainer,G.startOffset,G.endContainer,G.endOffset),D(n,G)):T.removeAllRanges(),G}};T.rangeCount<=1&&oe();var V=((M=E.current)===null||M===void 0?void 0:M.isFlushing())==="action";if(!te||!V){setTimeout(()=>{B.isUpdatingSelection=!1});return}var _=null,H=requestAnimationFrame(()=>{if(V){var Y=q=>{try{var U=f.toDOMNode(n,n);U.focus(),oe(q)}catch{}};Y(),_=setTimeout(()=>{Y(!0),B.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(H),_&&clearTimeout(_)}}});var b=(0,d.useCallback)(l=>{var M=f.toDOMNode(n,n),w=M.getRootNode();if($!=null&&$.current&&Se&&w instanceof ShadowRoot){var O=l.getTargetRanges(),N=O[0],T=new window.Range;T.setStart(N.startContainer,N.startOffset),T.setEnd(N.endContainer,N.endOffset);var oe=f.toSlateRange(n,T,{exactMatch:!1,suppressThrow:!1});i.YR.select(n,oe),l.preventDefault(),l.stopImmediatePropagation();return}if(de(),!c&&f.hasEditableTarget(n,l.target)&&!Fa(l,s)){var V;if(E.current)return E.current.handleDOMBeforeInput(l);x.flush(),P.flush();var{selection:_}=n,{inputType:H}=l,Y=l.dataTransfer||l.data||void 0,q=H==="insertCompositionText"||H==="deleteCompositionText";if(q&&f.isComposing(n))return;var U=!1;if(H==="insertText"&&_&&i.e6.isCollapsed(_)&&l.data&&l.data.length===1&&/[a-z ]/i.test(l.data)&&_.anchor.offset!==0&&(U=!0,n.marks&&(U=!1),!Fe.get(n))){var se,ge,{anchor:Ae}=_,[z,Ce]=f.toDOMPoint(n,Ae),ye=(se=z.parentElement)===null||se===void 0?void 0:se.closest("a"),K=f.getWindow(n);if(U&&ye&&f.hasDOMNode(n,ye)){var G,Ge=K==null?void 0:K.document.createTreeWalker(ye,NodeFilter.SHOW_TEXT).lastChild();Ge===z&&((G=Ge.textContent)===null||G===void 0?void 0:G.length)===Ce&&(U=!1)}if(U&&z.parentElement&&(K==null||(ge=K.getComputedStyle(z.parentElement))===null||ge===void 0?void 0:ge.whiteSpace)==="pre"){var Pe=i.ML.above(n,{at:Ae.path,match:nr=>i.W_.isElement(nr)&&i.ML.isBlock(n,nr)});Pe&&i.NB.string(Pe[0]).includes(" ")&&(U=!1)}}if((!H.startsWith("delete")||H.startsWith("deleteBy"))&&!Fe.get(n)){var[Ue]=l.getTargetRanges();if(Ue){var Xe=f.toSlateRange(n,Ue,{exactMatch:!1,suppressThrow:!1});if(!_||!i.e6.equals(_,Xe)){U=!1;var ar=!q&&n.selection&&i.ML.rangeRef(n,n.selection);i.YR.select(n,Xe),ar&&je.set(n,ar)}}}if(q)return;if(U||l.preventDefault(),_&&i.e6.isExpanded(_)&&H.startsWith("delete")){var Ka=H.endsWith("Backward")?"backward":"forward";i.ML.deleteFragment(n,{direction:Ka});return}switch(H){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{i.ML.deleteFragment(n);break}case"deleteContent":case"deleteContentForward":{i.ML.deleteForward(n);break}case"deleteContentBackward":{i.ML.deleteBackward(n);break}case"deleteEntireSoftLine":{i.ML.deleteBackward(n,{unit:"line"}),i.ML.deleteForward(n,{unit:"line"});break}case"deleteHardLineBackward":{i.ML.deleteBackward(n,{unit:"block"});break}case"deleteSoftLineBackward":{i.ML.deleteBackward(n,{unit:"line"});break}case"deleteHardLineForward":{i.ML.deleteForward(n,{unit:"block"});break}case"deleteSoftLineForward":{i.ML.deleteForward(n,{unit:"line"});break}case"deleteWordBackward":{i.ML.deleteBackward(n,{unit:"word"});break}case"deleteWordForward":{i.ML.deleteForward(n,{unit:"word"});break}case"insertLineBreak":i.ML.insertSoftBreak(n);break;case"insertParagraph":{i.ML.insertBreak(n);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{H==="insertFromComposition"&&f.isComposing(n)&&(k(!1),ke.set(n,!1)),(Y==null?void 0:Y.constructor.name)==="DataTransfer"?f.insertData(n,Y):typeof Y=="string"&&(U?F.current.push(()=>i.ML.insertText(n,Y)):i.ML.insertText(n,Y));break}}var gt=(V=je.get(n))===null||V===void 0?void 0:V.unref();je.delete(n),gt&&(!n.selection||!i.e6.equals(n.selection,gt))&&i.YR.select(n,gt)}},[n,P,de,s,c,x]),Q=(0,d.useCallback)(l=>{l==null?(P.cancel(),x.cancel(),$e.delete(n),Le.delete(n),y.current&&Oe&&y.current.removeEventListener("beforeinput",b)):Oe&&l.addEventListener("beforeinput",b),y.current=l,typeof e=="function"?e(l):e&&(e.current=l)},[P,x,n,b,e]);xe(()=>{var l=f.getWindow(n);l.document.addEventListener("selectionchange",x);var M=()=>{B.isDraggingInternally=!1};return l.document.addEventListener("dragend",M),l.document.addEventListener("drop",M),()=>{l.document.removeEventListener("selectionchange",x),l.document.removeEventListener("dragend",M),l.document.removeEventListener("drop",M)}},[x,B]);var I=o([n,[]]),ce=v&&n.children.length===1&&Array.from(i.NB.texts(n)).length===1&&i.NB.string(n)===""&&!C,ne=(0,d.useCallback)(l=>{if(l&&ce){var M;X((M=l.getBoundingClientRect())===null||M===void 0?void 0:M.height)}else X(void 0)},[ce]);if(ce){var ee=i.ML.start(n,[]);I.push({[Re]:!0,placeholder:v,onPlaceholderResize:ne,anchor:ee,focus:ee})}var{marks:ie}=n;if(B.hasMarkPlaceholder=!1,n.selection&&i.e6.isCollapsed(n.selection)&&ie){var{anchor:ve}=n.selection,W=i.NB.leaf(n,ve.path),Ve=Te(W,La);if(!i.xv.equals(W,ie,{loose:!0})){B.hasMarkPlaceholder=!0;var ht=Object.fromEntries(Object.keys(Ve).map(l=>[l,null]));I.push(pe(pe(pe({[Dt]:!0},ht),ie),{},{anchor:ve,focus:ve}))}}return(0,d.useEffect)(()=>{setTimeout(()=>{var{selection:l}=n;if(l){var{anchor:M}=l,w=i.NB.leaf(n,M.path);if(ie&&!i.xv.equals(w,ie,{loose:!0})){he.set(n,ie);return}}he.delete(n)})}),d.createElement(qt.Provider,{value:c},d.createElement(Vt.Provider,{value:C},d.createElement(Kt.Provider,{value:o},d.createElement(ya,{node:y,receivedUserInput:Z},d.createElement(S,pe(pe({role:c?void 0:"textbox","aria-multiline":c?void 0:!0},h),{},{spellCheck:Oe||!Ke?h.spellCheck:!1,autoCorrect:Oe||!Ke?h.autoCorrect:"false",autoCapitalize:Oe||!Ke?h.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!c,zindex:-1,suppressContentEditableWarning:!0,ref:Q,style:pe(pe({},L?{}:pe({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},R?{minHeight:R}:{})),p),onBeforeInput:(0,d.useCallback)(l=>{if(!Oe&&!c&&!re(l,h.onBeforeInput)&&f.hasSelectableTarget(n,l.target)&&(l.preventDefault(),!f.isComposing(n))){var M=l.data;i.ML.insertText(n,M)}},[h.onBeforeInput,n,c]),onInput:(0,d.useCallback)(l=>{if(!re(l,h.onInput)){if(E.current){E.current.handleInput();return}for(var M of F.current)M();if(F.current=[],!f.isFocused(n)){var w=l.nativeEvent,O=n;if(w.inputType==="historyUndo"&&typeof O.undo=="function"){O.undo();return}if(w.inputType==="historyRedo"&&typeof O.redo=="function"){O.redo();return}}}},[h.onInput,n]),onBlur:(0,d.useCallback)(l=>{if(!(c||B.isUpdatingSelection||!f.hasSelectableTarget(n,l.target)||re(l,h.onBlur))){var M=f.findDocumentOrShadowRoot(n);if(B.latestElement!==M.activeElement){var{relatedTarget:w}=l,O=f.toDOMNode(n,n);if(w!==O&&!(fe(w)&&w.hasAttribute("data-slate-spacer"))){if(w!=null&&De(w)&&f.hasDOMNode(n,w)){var N=f.toSlateNode(n,w);if(i.W_.isElement(N)&&!n.isVoid(N))return}if(Se){var T=Ne(M);T==null||T.removeAllRanges()}Ee.delete(n)}}}},[c,B.isUpdatingSelection,B.latestElement,n,h.onBlur]),onClick:(0,d.useCallback)(l=>{if(f.hasTarget(n,l.target)&&!re(l,h.onClick)&&De(l.target)){var M=f.toSlateNode(n,l.target),w=f.findPath(n,M);if(!i.ML.hasPath(n,w)||i.NB.get(n,w)!==M)return;if(l.detail===Oa&&w.length>=1){var O=w;if(!(i.W_.isElement(M)&&i.ML.isBlock(n,M))){var N,T=i.ML.above(n,{match:U=>i.W_.isElement(U)&&i.ML.isBlock(n,U),at:w});O=(N=T==null?void 0:T[1])!==null&&N!==void 0?N:w.slice(0,1)}var oe=i.ML.range(n,O);i.YR.select(n,oe);return}if(c)return;var V=i.ML.start(n,w),_=i.ML.end(n,w),H=i.ML.void(n,{at:V}),Y=i.ML.void(n,{at:_});if(H&&Y&&i.y$.equals(H[1],Y[1])){var q=i.ML.range(n,V);i.YR.select(n,q)}}},[n,h.onClick,c]),onCompositionEnd:(0,d.useCallback)(l=>{if(f.hasSelectableTarget(n,l.target)){var M;if(f.isComposing(n)&&Promise.resolve().then(()=>{k(!1),ke.set(n,!1)}),(M=E.current)===null||M===void 0||M.handleCompositionEnd(l),re(l,h.onCompositionEnd)||te)return;if(!Se&&!Er&&!wt&&!br&&!Mr&&l.data){var w=he.get(n);he.delete(n),w!==void 0&&(me.set(n,n.marks),n.marks=w),i.ML.insertText(n,l.data);var O=me.get(n);me.delete(n),O!==void 0&&(n.marks=O)}}},[h.onCompositionEnd,n]),onCompositionUpdate:(0,d.useCallback)(l=>{f.hasSelectableTarget(n,l.target)&&!re(l,h.onCompositionUpdate)&&(f.isComposing(n)||(k(!0),ke.set(n,!0)))},[h.onCompositionUpdate,n]),onCompositionStart:(0,d.useCallback)(l=>{if(f.hasSelectableTarget(n,l.target)){var M;if((M=E.current)===null||M===void 0||M.handleCompositionStart(l),re(l,h.onCompositionStart)||te)return;k(!0);var{selection:w}=n;if(w&&i.e6.isExpanded(w)){i.ML.deleteFragment(n);return}}},[h.onCompositionStart,n]),onCopy:(0,d.useCallback)(l=>{f.hasSelectableTarget(n,l.target)&&!re(l,h.onCopy)&&!Xt(l)&&(l.preventDefault(),f.setFragmentData(n,l.clipboardData,"copy"))},[h.onCopy,n]),onCut:(0,d.useCallback)(l=>{if(!c&&f.hasSelectableTarget(n,l.target)&&!re(l,h.onCut)&&!Xt(l)){l.preventDefault(),f.setFragmentData(n,l.clipboardData,"cut");var{selection:M}=n;if(M)if(i.e6.isExpanded(M))i.ML.deleteFragment(n);else{var w=i.NB.parent(n,M.anchor.path);i.ML.isVoid(n,w)&&i.YR.delete(n)}}},[c,n,h.onCut]),onDragOver:(0,d.useCallback)(l=>{if(f.hasTarget(n,l.target)&&!re(l,h.onDragOver)){var M=f.toSlateNode(n,l.target);i.W_.isElement(M)&&i.ML.isVoid(n,M)&&l.preventDefault()}},[h.onDragOver,n]),onDragStart:(0,d.useCallback)(l=>{if(!c&&f.hasTarget(n,l.target)&&!re(l,h.onDragStart)){var M=f.toSlateNode(n,l.target),w=f.findPath(n,M),O=i.W_.isElement(M)&&i.ML.isVoid(n,M)||i.ML.void(n,{at:w,voids:!0});if(O){var N=i.ML.range(n,w);i.YR.select(n,N)}B.isDraggingInternally=!0,f.setFragmentData(n,l.dataTransfer,"drag")}},[c,n,h.onDragStart,B]),onDrop:(0,d.useCallback)(l=>{if(!c&&f.hasTarget(n,l.target)&&!re(l,h.onDrop)){l.preventDefault();var M=n.selection,w=f.findEventRange(n,l),O=l.dataTransfer;i.YR.select(n,w),B.isDraggingInternally&&M&&!i.e6.equals(M,w)&&!i.ML.void(n,{at:w,voids:!0})&&i.YR.delete(n,{at:M}),f.insertData(n,O),f.isFocused(n)||f.focus(n)}},[c,n,h.onDrop,B]),onDragEnd:(0,d.useCallback)(l=>{!c&&B.isDraggingInternally&&h.onDragEnd&&f.hasTarget(n,l.target)&&h.onDragEnd(l)},[c,B,h,n]),onFocus:(0,d.useCallback)(l=>{if(!c&&!B.isUpdatingSelection&&f.hasEditableTarget(n,l.target)&&!re(l,h.onFocus)){var M=f.toDOMNode(n,n),w=f.findDocumentOrShadowRoot(n);if(B.latestElement=w.activeElement,Be&&l.target!==M){M.focus();return}Ee.set(n,!0)}},[c,B,n,h.onFocus]),onKeyDown:(0,d.useCallback)(l=>{if(!c&&f.hasEditableTarget(n,l.target)){var M;(M=E.current)===null||M===void 0||M.handleKeyDown(l);var{nativeEvent:w}=l;if(f.isComposing(n)&&w.isComposing===!1&&(ke.set(n,!1),k(!1)),re(l,h.onKeyDown)||f.isComposing(n))return;var{selection:O}=n,N=n.children[O!==null?O.focus.path[0]:0],T=pt()(i.NB.string(N))==="rtl";if(j.isRedo(w)){l.preventDefault();var oe=n;typeof oe.redo=="function"&&oe.redo();return}if(j.isUndo(w)){l.preventDefault();var V=n;typeof V.undo=="function"&&V.undo();return}if(j.isMoveLineBackward(w)){l.preventDefault(),i.YR.move(n,{unit:"line",reverse:!0});return}if(j.isMoveLineForward(w)){l.preventDefault(),i.YR.move(n,{unit:"line"});return}if(j.isExtendLineBackward(w)){l.preventDefault(),i.YR.move(n,{unit:"line",edge:"focus",reverse:!0});return}if(j.isExtendLineForward(w)){l.preventDefault(),i.YR.move(n,{unit:"line",edge:"focus"});return}if(j.isMoveBackward(w)){l.preventDefault(),O&&i.e6.isCollapsed(O)?i.YR.move(n,{reverse:!T}):i.YR.collapse(n,{edge:T?"end":"start"});return}if(j.isMoveForward(w)){l.preventDefault(),O&&i.e6.isCollapsed(O)?i.YR.move(n,{reverse:T}):i.YR.collapse(n,{edge:T?"start":"end"});return}if(j.isMoveWordBackward(w)){l.preventDefault(),O&&i.e6.isExpanded(O)&&i.YR.collapse(n,{edge:"focus"}),i.YR.move(n,{unit:"word",reverse:!T});return}if(j.isMoveWordForward(w)){l.preventDefault(),O&&i.e6.isExpanded(O)&&i.YR.collapse(n,{edge:"focus"}),i.YR.move(n,{unit:"word",reverse:T});return}if(Oe){if((Et||Se)&&O&&(j.isDeleteBackward(w)||j.isDeleteForward(w))&&i.e6.isCollapsed(O)){var _=i.NB.parent(n,O.anchor.path);if(i.W_.isElement(_)&&i.ML.isVoid(n,_)&&(i.ML.isInline(n,_)||i.ML.isBlock(n,_))){l.preventDefault(),i.ML.deleteBackward(n,{unit:"block"});return}}}else{if(j.isBold(w)||j.isItalic(w)||j.isTransposeCharacter(w)){l.preventDefault();return}if(j.isSoftBreak(w)){l.preventDefault(),i.ML.insertSoftBreak(n);return}if(j.isSplitBlock(w)){l.preventDefault(),i.ML.insertBreak(n);return}if(j.isDeleteBackward(w)){l.preventDefault(),O&&i.e6.isExpanded(O)?i.ML.deleteFragment(n,{direction:"backward"}):i.ML.deleteBackward(n);return}if(j.isDeleteForward(w)){l.preventDefault(),O&&i.e6.isExpanded(O)?i.ML.deleteFragment(n,{direction:"forward"}):i.ML.deleteForward(n);return}if(j.isDeleteLineBackward(w)){l.preventDefault(),O&&i.e6.isExpanded(O)?i.ML.deleteFragment(n,{direction:"backward"}):i.ML.deleteBackward(n,{unit:"line"});return}if(j.isDeleteLineForward(w)){l.preventDefault(),O&&i.e6.isExpanded(O)?i.ML.deleteFragment(n,{direction:"forward"}):i.ML.deleteForward(n,{unit:"line"});return}if(j.isDeleteWordBackward(w)){l.preventDefault(),O&&i.e6.isExpanded(O)?i.ML.deleteFragment(n,{direction:"backward"}):i.ML.deleteBackward(n,{unit:"word"});return}if(j.isDeleteWordForward(w)){l.preventDefault(),O&&i.e6.isExpanded(O)?i.ML.deleteFragment(n,{direction:"forward"}):i.ML.deleteForward(n,{unit:"word"});return}}}},[c,n,h.onKeyDown]),onPaste:(0,d.useCallback)(l=>{!c&&f.hasEditableTarget(n,l.target)&&!re(l,h.onPaste)&&(!Oe||yr(l.nativeEvent)||Se)&&(l.preventDefault(),f.insertData(n,l.clipboardData))},[c,n,h.onPaste])}),d.createElement(ka,{decorations:I,node:n,renderElement:m,renderPlaceholder:g,renderLeaf:u,selection:n.selection}))))))}),Pa=t=>{var{attributes:e,children:a}=t;return d.createElement("span",pe({},e),a,te&&d.createElement("br",null))},Ta=()=>[],Ba=(t,e)=>{if(e.getBoundingClientRect&&(!t.selection||t.selection&&i.e6.isCollapsed(t.selection))){var a=e.startContainer.parentElement;a.getBoundingClientRect=e.getBoundingClientRect.bind(e),(0,dr.Z)(a,{scrollMode:"if-needed"}),delete a.getBoundingClientRect}},re=(t,e)=>{if(!e)return!1;var a=e(t);return a??(t.isDefaultPrevented()||t.isPropagationStopped())},Xt=t=>De(t.target)&&(t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement),Fa=(t,e)=>{if(!e)return!1;var a=e(t);return a??t.defaultPrevented},Zt=(0,d.createContext)(!1),Va=()=>useContext(Zt);function Ra(t){return t instanceof Error}var Jt=(0,d.createContext)({}),Ia=(t,e)=>t===e;function Aa(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ia,[,a]=useReducer(g=>g+1,0),r=useContext(Jt);if(!r)throw new Error("The `useSlateSelector` hook must be used inside the <Slate> component's context.");var{getSlate:o,addEventListener:s}=r,v=useRef(),c=useRef(()=>null),m=useRef(null),u;try{t!==c.current||v.current?u=t(o()):u=m.current}catch(g){throw v.current&&Ra(g)&&(g.message+=`
|
|
11
|
+
The error may be correlated with this previous error:
|
|
12
|
+
`.concat(v.current.stack,`
|
|
13
|
+
|
|
14
|
+
`)),g}return xe(()=>{c.current=t,m.current=u,v.current=void 0}),xe(()=>{function g(){try{var p=c.current(o());if(e(p,m.current))return;m.current=p}catch(S){S instanceof Error?v.current=S:v.current=new Error(String(S))}a()}var D=s(g);return g(),()=>D()},[s,o]),u}function Wa(t){var e=(0,d.useRef)([]).current,a=(0,d.useRef)({editor:t}).current,r=(0,d.useCallback)(s=>{a.editor=s,e.forEach(v=>v(s))},[e,a]),o=(0,d.useMemo)(()=>({getSlate:()=>a.editor,addEventListener:s=>(e.push(s),()=>{e.splice(e.indexOf(s),1)})}),[e,a]);return{selectorContext:o,onChange:r}}var _a=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],ja=t=>{var{editor:e,children:a,onChange:r,onSelectionChange:o,onValueChange:s,initialValue:v}=t,c=Te(t,_a),[m,u]=d.useState(()=>{if(!i.NB.isNodeList(v))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(i.o4.stringify(v)));if(!i.ML.isEditor(e))throw new Error("[Slate] editor is invalid! You passed: ".concat(i.o4.stringify(e)));return e.children=v,Object.assign(e,c),{v:0,editor:e}}),{selectorContext:g,onChange:D}=Wa(e),p=(0,d.useCallback)(h=>{var n;switch(r&&r(e.children),h==null||(n=h.operation)===null||n===void 0?void 0:n.type){case"set_selection":o==null||o(e.selection);break;default:s==null||s(e.children)}u(C=>({v:C.v+1,editor:e})),D(e)},[e,D,r,o,s]);(0,d.useEffect)(()=>(nt.set(e,p),()=>{nt.set(e,()=>{})}),[e,p]);var[S,L]=(0,d.useState)(f.isFocused(e));return(0,d.useEffect)(()=>{L(f.isFocused(e))},[e]),xe(()=>{var h=()=>L(f.isFocused(e));return mt>=17?(document.addEventListener("focusin",h),document.addEventListener("focusout",h),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",h)}):(document.addEventListener("focus",h,!0),document.addEventListener("blur",h,!0),()=>{document.removeEventListener("focus",h,!0),document.removeEventListener("blur",h,!0)})},[]),d.createElement(Jt.Provider,{value:g},d.createElement(vt.Provider,{value:m},d.createElement(Ye.Provider,{value:m.editor},d.createElement(Zt.Provider,{value:S},a))))},Ga=()=>{var t=useContext(Ye);if(!t)throw new Error("The `useEditor` hook must be used inside the <Slate> component's context.");return t},Xa=()=>Aa(t=>t.selection,Na),Na=(t,e)=>!t&&!e?!0:!t||!e?!1:Range.equals(t,e),Qt=(t,e)=>{var a=(e.top+e.bottom)/2;return t.top<=a&&t.bottom>=a},er=(t,e,a)=>{var r=f.toDOMRange(t,e).getBoundingClientRect(),o=f.toDOMRange(t,a).getBoundingClientRect();return Qt(r,o)&&Qt(o,r)},Ua=(t,e)=>{var a=i.ML.range(t,i.e6.end(e)),r=Array.from(i.ML.positions(t,{at:e})),o=0,s=r.length,v=Math.floor(s/2);if(er(t,i.ML.range(t,r[o]),a))return i.ML.range(t,r[o],a);if(r.length<2)return i.ML.range(t,r[r.length-1],a);for(;v!==r.length&&v!==o;)er(t,i.ML.range(t,r[v]),a)?s=v:o=v,v=Math.floor((o+s)/2);return i.ML.range(t,r[s],a)};function tr(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,r)}return a}function rr(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?tr(Object(a),!0).forEach(function(r){ue(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):tr(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}var Ya=function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",r=e,{apply:o,onChange:s,deleteBackward:v,addMark:c,removeMark:m}=r;return qe.set(r,new WeakMap),r.addMark=(u,g)=>{var D,p;(D=it.get(r))===null||D===void 0||D(),!he.get(r)&&(p=ae.get(r))!==null&&p!==void 0&&p.length&&he.set(r,null),me.delete(r),c(u,g)},r.removeMark=u=>{var g;!he.get(r)&&(g=ae.get(r))!==null&&g!==void 0&&g.length&&he.set(r,null),me.delete(r),m(u)},r.deleteBackward=u=>{if(u!=="line")return v(u);if(r.selection&&i.e6.isCollapsed(r.selection)){var g=i.ML.above(r,{match:L=>i.W_.isElement(L)&&i.ML.isBlock(r,L),at:r.selection});if(g){var[,D]=g,p=i.ML.range(r,D,r.selection.anchor),S=Ua(r,p);i.e6.isCollapsed(S)||i.YR.delete(r,{at:S})}}},r.apply=u=>{var g=[],D=[],p=ae.get(r);if(p!=null&&p.length){var S=p.map(x=>Nr(x,u)).filter(Boolean);ae.set(r,S)}var L=be.get(r);L&&be.set(r,Bt(r,L,u));var h=Me.get(r);if(h!=null&&h.at){var n=i.E9.isPoint(h==null?void 0:h.at)?ft(r,h.at,u):Bt(r,h.at,u);Me.set(r,n?rr(rr({},h),{},{at:n}):null)}switch(u.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{g.push(...Ie(r,u.path));break}case"set_selection":{var C;(C=je.get(r))===null||C===void 0||C.unref(),je.delete(r);break}case"insert_node":case"remove_node":{g.push(...Ie(r,i.y$.parent(u.path)));break}case"merge_node":{var k=i.y$.previous(u.path);g.push(...Ie(r,k));break}case"move_node":{var y=i.y$.common(i.y$.parent(u.path),i.y$.parent(u.newPath));g.push(...Ie(r,y));var F;i.y$.isBefore(u.path,u.newPath)?(g.push(...Ie(r,i.y$.parent(u.path))),F=u.newPath):(g.push(...Ie(r,i.y$.parent(u.newPath))),F=u.path);var R=i.NB.get(e,i.y$.parent(F)),X=f.findKey(r,R),$=i.ML.pathRef(r,i.y$.parent(F));D.push([$,X]);break}}switch(o(u),u.type){case"insert_node":case"remove_node":case"merge_node":case"move_node":case"split_node":Fe.set(r,!0)}for(var[de,Z]of g){var[J]=i.ML.node(r,de);He.set(J,Z)}for(var[B,E]of D){if(B.current){var[P]=i.ML.node(r,B.current);He.set(P,E)}B.unref()}},r.setFragmentData=u=>{var{selection:g}=r;if(g){var[D,p]=i.e6.edges(g),S=i.ML.void(r,{at:D.path}),L=i.ML.void(r,{at:p.path});if(!(i.e6.isCollapsed(g)&&!S)){var h=f.toDOMRange(r,g),n=h.cloneContents(),C=n.childNodes[0];if(n.childNodes.forEach(J=>{J.textContent&&J.textContent.trim()!==""&&(C=J)}),L){var[k]=L,y=h.cloneRange(),F=f.toDOMNode(r,k);y.setEndAfter(F),n=y.cloneContents()}if(S&&(C=n.querySelector("[data-slate-spacer]")),Array.from(n.querySelectorAll("[data-slate-zero-width]")).forEach(J=>{var B=J.getAttribute("data-slate-zero-width")==="n";J.textContent=B?`
|
|
15
|
+
`:""}),yt(C)){var R=C.ownerDocument.createElement("span");R.style.whiteSpace="pre",R.appendChild(C),n.appendChild(R),C=R}var X=r.getFragment(),$=JSON.stringify(X),de=window.btoa(encodeURIComponent($));C.setAttribute("data-slate-fragment",de),u.setData("application/".concat(a),de);var Z=n.ownerDocument.createElement("div");return Z.appendChild(n),Z.setAttribute("hidden","true"),n.ownerDocument.body.appendChild(Z),u.setData("text/html",Z.innerHTML),u.setData("text/plain",Lt(Z)),n.ownerDocument.body.removeChild(Z),u}}},r.insertData=u=>{r.insertFragmentData(u)||r.insertTextData(u)},r.insertFragmentData=u=>{var g=u.getData("application/".concat(a))||Pr(u);if(g){var D=decodeURIComponent(window.atob(g)),p=JSON.parse(D);return r.insertFragment(p),!0}return!1},r.insertTextData=u=>{var g=u.getData("text/plain");if(g){var D=g.split(/\r\n|\r|\n/),p=!1;for(var S of D)p&&i.YR.splitNodes(r,{always:!0}),r.insertText(S),p=!0;return!0}return!1},r.onChange=u=>{var g=mt<18?vr.unstable_batchedUpdates:D=>D();g(()=>{var D=nt.get(r);D&&D(u),s(u)})},r},Ie=(t,e)=>{var a=[];for(var[r,o]of i.ML.levels(t,{at:e})){var s=f.findKey(t,r);a.push([o,s])}return a}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[6154],{42011:function(tt,be,Iu){Iu.d(be,{ML:function(){return i},W_:function(){return w},NB:function(){return m},OX:function(){return ou},y$:function(){return o},E9:function(){return R},e6:function(){return B},o4:function(){return G},xv:function(){return p},YR:function(){return h},Jh:function(){return Zn}});function zu(e){return Object.prototype.toString.call(e)==="[object Object]"}function H(e){var u,r;return zu(e)===!1?!1:(u=e.constructor,u===void 0?!0:(r=u.prototype,!(zu(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}var tu=Iu(93513),we={transform(e,u){var{current:r,affinity:n}=e;if(r!=null){var t=o.transform(r,u,{affinity:n});e.current=t,t==null&&e.unref()}}},Oe={transform(e,u){var{current:r,affinity:n}=e;if(r!=null){var t=R.transform(r,u,{affinity:n});e.current=t,t==null&&e.unref()}}},ye={transform(e,u){var{current:r,affinity:n}=e;if(r!=null){var t=B.transform(r,u,{affinity:n});e.current=t,t==null&&e.unref()}}},bu=new WeakMap,wu=new WeakMap,mu=new WeakMap,qu=new WeakMap,Lu=new WeakMap,Mu=new WeakMap,Vu=new WeakMap,o={ancestors(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=u,n=o.levels(e,u);return r?n=n.slice(1):n=n.slice(0,-1),n},common(e,u){for(var r=[],n=0;n<e.length&&n<u.length;n++){var t=e[n],a=u[n];if(t!==a)break;r.push(t)}return r},compare(e,u){for(var r=Math.min(e.length,u.length),n=0;n<r;n++){if(e[n]<u[n])return-1;if(e[n]>u[n])return 1}return 0},endsAfter(e,u){var r=e.length-1,n=e.slice(0,r),t=u.slice(0,r),a=e[r],s=u[r];return o.equals(n,t)&&a>s},endsAt(e,u){var r=e.length,n=e.slice(0,r),t=u.slice(0,r);return o.equals(n,t)},endsBefore(e,u){var r=e.length-1,n=e.slice(0,r),t=u.slice(0,r),a=e[r],s=u[r];return o.equals(n,t)&&a<s},equals(e,u){return e.length===u.length&&e.every((r,n)=>r===u[n])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,u){return o.compare(e,u)===1},isAncestor(e,u){return e.length<u.length&&o.compare(e,u)===0},isBefore(e,u){return o.compare(e,u)===-1},isChild(e,u){return e.length===u.length+1&&o.compare(e,u)===0},isCommon(e,u){return e.length<=u.length&&o.compare(e,u)===0},isDescendant(e,u){return e.length>u.length&&o.compare(e,u)===0},isParent(e,u){return e.length+1===u.length&&o.compare(e,u)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,u){if(e.length!==u.length)return!1;var r=e.slice(0,-1),n=u.slice(0,-1),t=e[e.length-1],a=u[u.length-1];return t!==a&&o.equals(r,n)},levels(e){for(var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=u,n=[],t=0;t<=e.length;t++)n.push(e.slice(0,t));return r&&n.reverse(),n},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var u=e[e.length-1];return e.slice(0,-1).concat(u+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var u=e[e.length-1];if(u<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(u-1)},relative(e,u){if(!o.isAncestor(u,e)&&!o.equals(e,u))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(u,"], because it is not above or equal to the path."));return e.slice(u.length)},transform(e,u){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var n=[...e],{affinity:t="forward"}=r;if(e.length===0)return n;switch(u.type){case"insert_node":{var{path:a}=u;(o.equals(a,n)||o.endsBefore(a,n)||o.isAncestor(a,n))&&(n[a.length-1]+=1);break}case"remove_node":{var{path:s}=u;if(o.equals(s,n)||o.isAncestor(s,n))return null;o.endsBefore(s,n)&&(n[s.length-1]-=1);break}case"merge_node":{var{path:f,position:D}=u;o.equals(f,n)||o.endsBefore(f,n)?n[f.length-1]-=1:o.isAncestor(f,n)&&(n[f.length-1]-=1,n[f.length]+=D);break}case"split_node":{var{path:l,position:c}=u;if(o.equals(l,n)){if(t==="forward")n[n.length-1]+=1;else if(t!=="backward")return null}else o.endsBefore(l,n)?n[l.length-1]+=1:o.isAncestor(l,n)&&e[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break}case"move_node":{var{path:C,newPath:v}=u;if(o.equals(C,v))return n;if(o.isAncestor(C,n)||o.equals(C,n)){var g=v.slice();return o.endsBefore(C,v)&&C.length<v.length&&(g[C.length-1]-=1),g.concat(n.slice(C.length))}else o.isSibling(C,v)&&(o.isAncestor(v,n)||o.equals(v,n))?o.endsBefore(C,n)?n[C.length-1]-=1:n[C.length-1]+=1:o.endsBefore(v,n)||o.equals(v,n)||o.isAncestor(v,n)?(o.endsBefore(C,n)&&(n[C.length-1]-=1),n[v.length-1]+=1):o.endsBefore(C,n)&&(o.equals(v,n)&&(n[v.length-1]+=1),n[C.length-1]-=1);break}}return n}};function hu(e){"@babel/helpers - typeof";return hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},hu(e)}function Pe(e,u){if(hu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,u||"default");if(hu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(e)}function xe(e){var u=Pe(e,"string");return hu(u)==="symbol"?u:String(u)}function J(e,u,r){return u=xe(u),u in e?Object.defineProperty(e,u,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[u]=r,e}function Wu(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Eu(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?Wu(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var je=(e,u,r)=>{switch(r.type){case"insert_node":{var{path:n,node:t}=r,a=m.parent(e,n),s=n[n.length-1];if(s>a.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(n,"] because the destination is past the end of the node."));if(a.children.splice(s,0,t),u)for(var[f,D]of B.points(u))u[D]=R.transform(f,r);break}case"insert_text":{var{path:l,offset:c,text:C}=r;if(C.length===0)break;var v=m.leaf(e,l),g=v.text.slice(0,c),A=v.text.slice(c);if(v.text=g+C+A,u)for(var[F,E]of B.points(u))u[E]=R.transform(F,r);break}case"merge_node":{var{path:d}=r,b=m.get(e,d),x=o.previous(d),y=m.get(e,x),N=m.parent(e,d),S=d[d.length-1];if(p.isText(b)&&p.isText(y))y.text+=b.text;else if(!p.isText(b)&&!p.isText(y))y.children.push(...b.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(d,"] to nodes of different interfaces: ").concat(G.stringify(b)," ").concat(G.stringify(y)));if(N.children.splice(S,1),u)for(var[P,z]of B.points(u))u[z]=R.transform(P,r);break}case"move_node":{var{path:T,newPath:j}=r;if(o.isAncestor(T,j))throw new Error("Cannot move a path [".concat(T,"] to new path [").concat(j,"] because the destination is inside itself."));var I=m.get(e,T),q=m.parent(e,T),W=T[T.length-1];q.children.splice(W,1);var V=o.transform(T,r),Z=m.get(e,o.parent(V)),X=V[V.length-1];if(Z.children.splice(X,0,I),u)for(var[Q,k]of B.points(u))u[k]=R.transform(Q,r);break}case"remove_node":{var{path:M}=r,Y=M[M.length-1],ru=m.parent(e,M);if(ru.children.splice(Y,1),u)for(var[_,nu]of B.points(u)){var su=R.transform(_,r);if(u!=null&&su!=null)u[nu]=su;else{var $=void 0,K=void 0;for(var[au,iu]of m.texts(e))if(o.compare(iu,M)===-1)$=[au,iu];else{K=[au,iu];break}var Cu=!1;$&&K&&(o.equals(K[1],M)?Cu=!o.hasPrevious(K[1]):Cu=o.common($[1],M).length<o.common(K[1],M).length),$&&!Cu?(_.path=$[1],_.offset=$[0].text.length):K?(_.path=K[1],_.offset=0):u=null}}break}case"remove_text":{var{path:Fu,offset:pu,text:du}=r;if(du.length===0)break;var vu=m.leaf(e,Fu),U=vu.text.slice(0,pu),Ru=vu.text.slice(pu+du.length);if(vu.text=U+Ru,u)for(var[Un,Gn]of B.points(u))u[Gn]=R.transform(Un,r);break}case"set_node":{var{path:he,properties:Yn,newProperties:$u}=r;if(he.length===0)throw new Error("Cannot set properties on the root node!");var Su=m.get(e,he);for(var Bu in $u){if(Bu==="children"||Bu==="text")throw new Error('Cannot set the "'.concat(Bu,'" property of nodes!'));var Ee=$u[Bu];Ee==null?delete Su[Bu]:Su[Bu]=Ee}for(var Fe in Yn)$u.hasOwnProperty(Fe)||delete Su[Fe];break}case"set_selection":{var{newProperties:Du}=r;if(Du==null)u=Du;else{if(u==null){if(!B.isRange(Du))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(G.stringify(Du)," when there is no current selection."));u=Eu({},Du)}for(var gu in Du){var pe=Du[gu];if(pe==null){if(gu==="anchor"||gu==="focus")throw new Error('Cannot remove the "'.concat(gu,'" selection property'));delete u[gu]}else u[gu]=pe}}break}case"split_node":{var{path:Au,position:Pu,properties:de}=r;if(Au.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Au,"] because the root node cannot be split."));var fu=m.get(e,Au),Xn=m.parent(e,Au),Qn=Au[Au.length-1],Tu;if(p.isText(fu)){var kn=fu.text.slice(0,Pu),_n=fu.text.slice(Pu);fu.text=kn,Tu=Eu(Eu({},de),{},{text:_n})}else{var ut=fu.children.slice(0,Pu),et=fu.children.slice(Pu);fu.children=ut,Tu=Eu(Eu({},de),{},{children:et})}if(Xn.children.splice(Qn+1,0,Tu),u)for(var[rt,nt]of B.points(u))u[nt]=R.transform(rt,r);break}}return u},Ne={transform(e,u){e.children=(0,tu.P2)(e.children);var r=e.selection&&(0,tu.P2)(e.selection);try{r=je(e,r,u)}finally{e.children=(0,tu._x)(e.children),r?e.selection=(0,tu.mv)(r)?(0,tu._x)(r):r:e.selection=null}}},Re={insertNodes(e,u,r){e.insertNodes(u,r)},liftNodes(e,u){e.liftNodes(u)},mergeNodes(e,u){e.mergeNodes(u)},moveNodes(e,u){e.moveNodes(u)},removeNodes(e,u){e.removeNodes(u)},setNodes(e,u,r){e.setNodes(u,r)},splitNodes(e,u){e.splitNodes(u)},unsetNodes(e,u,r){e.unsetNodes(u,r)},unwrapNodes(e,u){e.unwrapNodes(u)},wrapNodes(e,u,r){e.wrapNodes(u,r)}},$e={collapse(e,u){e.collapse(u)},deselect(e){e.deselect()},move(e,u){e.move(u)},select(e,u){e.select(u)},setPoint(e,u,r){e.setPoint(u,r)},setSelection(e,u){e.setSelection(u)}},Ku=(e,u)=>{for(var r in e){var n=e[r],t=u[r];if(H(n)&&H(t)){if(!Ku(n,t))return!1}else if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;for(var a=0;a<n.length;a++)if(n[a]!==t[a])return!1}else if(n!==t)return!1}for(var s in u)if(e[s]===void 0&&u[s]!==void 0)return!1;return!0};function Se(e,u){if(e==null)return{};var r={},n=Object.keys(e),t,a;for(a=0;a<n.length;a++)t=n[a],!(u.indexOf(t)>=0)&&(r[t]=e[t]);return r}function uu(e,u){if(e==null)return{};var r=Se(e,u),n,t;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t<a.length;t++)n=a[t],!(u.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Te=["anchor","focus"];function Hu(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ie(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?Hu(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var B={edges(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=u,{anchor:n,focus:t}=e;return B.isBackward(e)===r?[n,t]:[t,n]},end(e){var[,u]=B.edges(e);return u},equals(e,u){return R.equals(e.anchor,u.anchor)&&R.equals(e.focus,u.focus)},includes(e,u){if(B.isRange(u)){if(B.includes(e,u.anchor)||B.includes(e,u.focus))return!0;var[r,n]=B.edges(e),[t,a]=B.edges(u);return R.isBefore(r,t)&&R.isAfter(n,a)}var[s,f]=B.edges(e),D=!1,l=!1;return R.isPoint(u)?(D=R.compare(u,s)>=0,l=R.compare(u,f)<=0):(D=o.compare(u,s.path)>=0,l=o.compare(u,f.path)<=0),D&&l},intersection(e,u){var r=uu(e,Te),[n,t]=B.edges(e),[a,s]=B.edges(u),f=R.isBefore(n,a)?a:n,D=R.isBefore(t,s)?t:s;return R.isBefore(D,f)?null:Ie({anchor:f,focus:D},r)},isBackward(e){var{anchor:u,focus:r}=e;return R.isAfter(u,r)},isCollapsed(e){var{anchor:u,focus:r}=e;return R.equals(u,r)},isExpanded(e){return!B.isCollapsed(e)},isForward(e){return!B.isBackward(e)},isRange(e){return H(e)&&R.isPoint(e.anchor)&&R.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[u]=B.edges(e);return u},transform(e,u){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(0,tu.Uy)(e,n=>{if(n===null)return null;var{affinity:t="inward"}=r,a,s;if(t==="inward"){var f=B.isCollapsed(n);B.isForward(n)?(a="forward",s=f?a:"backward"):(a="backward",s=f?a:"forward")}else t==="outward"?B.isForward(n)?(a="backward",s="forward"):(a="forward",s="backward"):(a=t,s=t);var D=R.transform(n.anchor,u,{affinity:a}),l=R.transform(n.focus,u,{affinity:s});if(!D||!l)return null;n.anchor=D,n.focus=l})}},Ju=e=>H(e)&&m.isNodeList(e.children)&&!i.isEditor(e),w={isAncestor(e){return H(e)&&m.isNodeList(e.children)},isElement:Ju,isElementList(e){return Array.isArray(e)&&e.every(u=>w.isElement(u))},isElementProps(e){return e.children!==void 0},isElementType:function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return Ju(u)&&u[n]===r},matches(e,u){for(var r in u)if(r!=="children"&&e[r]!==u[r])return!1;return!0}},ze=["children"],qe=["text"],Zu=new WeakMap,m={ancestor(e,u){var r=m.get(e,u);if(p.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(u,"] because it refers to a text node instead: ").concat(G.stringify(r)));return r},ancestors(e,u){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var n of o.ancestors(u,r)){var t=m.ancestor(e,n),a=[t,n];yield a}}()},child(e,u){if(p.isText(e))throw new Error("Cannot get the child of a text node: ".concat(G.stringify(e)));var r=e.children[u];if(r==null)throw new Error("Cannot get child at index `".concat(u,"` in node: ").concat(G.stringify(e)));return r},children(e,u){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var{reverse:n=!1}=r,t=m.ancestor(e,u),{children:a}=t,s=n?a.length-1:0;n?s>=0:s<a.length;){var f=m.child(t,s),D=u.concat(s);yield[f,D],s=n?s-1:s+1}}()},common(e,u,r){var n=o.common(u,r),t=m.get(e,n);return[t,n]},descendant(e,u){var r=m.get(e,u);if(i.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(u,"] because it refers to the root editor node instead: ").concat(G.stringify(r)));return r},descendants(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[r,n]of m.nodes(e,u))n.length!==0&&(yield[r,n])}()},elements(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[r,n]of m.nodes(e,u))w.isElement(r)&&(yield[r,n])}()},extractProps(e){if(w.isAncestor(e)){var u=uu(e,ze);return u}else{var u=uu(e,qe);return u}},first(e,u){for(var r=u.slice(),n=m.get(e,r);n&&!(p.isText(n)||n.children.length===0);)n=n.children[0],r.push(0);return[n,r]},fragment(e,u){if(p.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(G.stringify(e)));var r=(0,tu.Uy)({children:e.children},n=>{var[t,a]=B.edges(u),s=m.nodes(n,{reverse:!0,pass:v=>{var[,g]=v;return!B.includes(u,g)}});for(var[,f]of s){if(!B.includes(u,f)){var D=m.parent(n,f),l=f[f.length-1];D.children.splice(l,1)}if(o.equals(f,a.path)){var c=m.leaf(n,f);c.text=c.text.slice(0,a.offset)}if(o.equals(f,t.path)){var C=m.leaf(n,f);C.text=C.text.slice(t.offset)}}i.isEditor(n)&&(n.selection=null)});return r.children},get(e,u){for(var r=e,n=0;n<u.length;n++){var t=u[n];if(p.isText(r)||!r.children[t])throw new Error("Cannot find a descendant at path [".concat(u,"] in node: ").concat(G.stringify(e)));r=r.children[t]}return r},has(e,u){for(var r=e,n=0;n<u.length;n++){var t=u[n];if(p.isText(r)||!r.children[t])return!1;r=r.children[t]}return!0},isNode(e){return p.isText(e)||w.isElement(e)||i.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var u=Zu.get(e);if(u!==void 0)return u;var r=e.every(n=>m.isNode(n));return Zu.set(e,r),r},last(e,u){for(var r=u.slice(),n=m.get(e,r);n&&!(p.isText(n)||n.children.length===0);){var t=n.children.length-1;n=n.children[t],r.push(t)}return[n,r]},leaf(e,u){var r=m.get(e,u);if(!p.isText(r))throw new Error("Cannot get the leaf node at path [".concat(u,"] because it refers to a non-leaf node: ").concat(G.stringify(r)));return r},levels(e,u){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var n of o.levels(u,r)){var t=m.get(e,n);yield[t,n]}}()},matches(e,u){return w.isElement(e)&&w.isElementProps(u)&&w.matches(e,u)||p.isText(e)&&p.isTextProps(u)&&p.matches(e,u)},nodes(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var{pass:r,reverse:n=!1}=u,{from:t=[],to:a}=u,s=new Set,f=[],D=e;!(a&&(n?o.isBefore(f,a):o.isAfter(f,a)));){if(s.has(D)||(yield[D,f]),!s.has(D)&&!p.isText(D)&&D.children.length!==0&&(r==null||r([D,f])===!1)){s.add(D);var l=n?D.children.length-1:0;o.isAncestor(f,t)&&(l=t[f.length]),f=f.concat(l),D=m.get(e,f);continue}if(f.length===0)break;if(!n){var c=o.next(f);if(m.has(e,c)){f=c,D=m.get(e,f);continue}}if(n&&f[f.length-1]!==0){var C=o.previous(f);f=C,D=m.get(e,f);continue}f=o.parent(f),D=m.get(e,f),s.add(D)}}()},parent(e,u){var r=o.parent(u),n=m.get(e,r);if(p.isText(n))throw new Error("Cannot get the parent of path [".concat(u,"] because it does not exist in the root."));return n},string(e){return p.isText(e)?e.text:e.children.map(m.string).join("")},texts(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[r,n]of m.nodes(e,u))p.isText(r)&&(yield[r,n])}()}};function Uu(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function L(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?Uu(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ou={isNodeOperation(e){return ou.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!H(e))return!1;switch(e.type){case"insert_node":return o.isPath(e.path)&&m.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&o.isPath(e.path);case"merge_node":return typeof e.position=="number"&&o.isPath(e.path)&&H(e.properties);case"move_node":return o.isPath(e.path)&&o.isPath(e.newPath);case"remove_node":return o.isPath(e.path)&&m.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&o.isPath(e.path);case"set_node":return o.isPath(e.path)&&H(e.properties)&&H(e.newProperties);case"set_selection":return e.properties===null&&B.isRange(e.newProperties)||e.newProperties===null&&B.isRange(e.properties)||H(e.properties)&&H(e.newProperties);case"split_node":return o.isPath(e.path)&&typeof e.position=="number"&&H(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(u=>ou.isOperation(u))},isSelectionOperation(e){return ou.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return ou.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return L(L({},e),{},{type:"remove_node"});case"insert_text":return L(L({},e),{},{type:"remove_text"});case"merge_node":return L(L({},e),{},{type:"split_node",path:o.previous(e.path)});case"move_node":{var{newPath:u,path:r}=e;if(o.equals(u,r))return e;if(o.isSibling(r,u))return L(L({},e),{},{path:u,newPath:r});var n=o.transform(r,e),t=o.transform(o.next(r),e);return L(L({},e),{},{path:n,newPath:t})}case"remove_node":return L(L({},e),{},{type:"insert_node"});case"remove_text":return L(L({},e),{},{type:"insert_text"});case"set_node":{var{properties:a,newProperties:s}=e;return L(L({},e),{},{properties:s,newProperties:a})}case"set_selection":{var{properties:f,newProperties:D}=e;return f==null?L(L({},e),{},{properties:D,newProperties:null}):D==null?L(L({},e),{},{properties:null,newProperties:f}):L(L({},e),{},{properties:D,newProperties:f})}case"split_node":return L(L({},e),{},{type:"merge_node",path:o.next(e.path)})}}},Gu=new WeakMap,Le=e=>{var u=Gu.get(e);if(u!==void 0)return u;if(!H(e))return!1;var r=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertSoftBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isElementReadOnly=="function"&&typeof e.isInline=="function"&&typeof e.isSelectable=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||H(e.marks))&&(e.selection===null||B.isRange(e.selection))&&m.isNodeList(e.children)&&ou.isOperationList(e.operations);return Gu.set(e,r),r},i={above(e,u){return e.above(u)},addMark(e,u,r){e.addMark(u,r)},after(e,u,r){return e.after(u,r)},before(e,u,r){return e.before(u,r)},deleteBackward(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=u;e.deleteBackward(r)},deleteForward(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=u;e.deleteForward(r)},deleteFragment(e,u){e.deleteFragment(u)},edges(e,u){return e.edges(u)},elementReadOnly(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.elementReadOnly(u)},end(e,u){return e.end(u)},first(e,u){return e.first(u)},fragment(e,u){return e.fragment(u)},hasBlocks(e,u){return e.hasBlocks(u)},hasInlines(e,u){return e.hasInlines(u)},hasPath(e,u){return e.hasPath(u)},hasTexts(e,u){return e.hasTexts(u)},insertBreak(e){e.insertBreak()},insertFragment(e,u,r){e.insertFragment(u,r)},insertNode(e,u){e.insertNode(u)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,u){e.insertText(u)},isBlock(e,u){return e.isBlock(u)},isEdge(e,u,r){return e.isEdge(u,r)},isEditor(e){return Le(e)},isElementReadOnly(e,u){return e.isElementReadOnly(u)},isEmpty(e,u){return e.isEmpty(u)},isEnd(e,u,r){return e.isEnd(u,r)},isInline(e,u){return e.isInline(u)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,u){return e.isSelectable(u)},isStart(e,u,r){return e.isStart(u,r)},isVoid(e,u){return e.isVoid(u)},last(e,u){return e.last(u)},leaf(e,u,r){return e.leaf(u,r)},levels(e,u){return e.levels(u)},marks(e){return e.getMarks()},next(e,u){return e.next(u)},node(e,u,r){return e.node(u,r)},nodes(e,u){return e.nodes(u)},normalize(e,u){e.normalize(u)},parent(e,u,r){return e.parent(u,r)},path(e,u,r){return e.path(u,r)},pathRef(e,u,r){return e.pathRef(u,r)},pathRefs(e){return e.pathRefs()},point(e,u,r){return e.point(u,r)},pointRef(e,u,r){return e.pointRef(u,r)},pointRefs(e){return e.pointRefs()},positions(e,u){return e.positions(u)},previous(e,u){return e.previous(u)},range(e,u,r){return e.range(u,r)},rangeRef(e,u,r){return e.rangeRef(u,r)},rangeRefs(e){return e.rangeRefs()},removeMark(e,u){e.removeMark(u)},setNormalizing(e,u){e.setNormalizing(u)},start(e,u){return e.start(u)},string(e,u,r){return e.string(u,r)},unhangRange(e,u,r){return e.unhangRange(u,r)},void(e,u){return e.void(u)},withoutNormalizing(e,u){e.withoutNormalizing(u)},shouldMergeNodesRemovePrevNode:(e,u,r)=>e.shouldMergeNodesRemovePrevNode(u,r)},at={isLocation(e){return o.isPath(e)||R.isPoint(e)||B.isRange(e)}},Me={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(o.isPath)}};function Yu(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xu(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?Yu(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var R={compare(e,u){var r=o.compare(e.path,u.path);return r===0?e.offset<u.offset?-1:e.offset>u.offset?1:0:r},isAfter(e,u){return R.compare(e,u)===1},isBefore(e,u){return R.compare(e,u)===-1},equals(e,u){return e.offset===u.offset&&o.equals(e.path,u.path)},isPoint(e){return H(e)&&typeof e.offset=="number"&&o.isPath(e.path)},transform(e,u){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(0,tu.Uy)(e,n=>{if(n===null)return null;var{affinity:t="forward"}=r,{path:a,offset:s}=n;switch(u.type){case"insert_node":case"move_node":{n.path=o.transform(a,u,r);break}case"insert_text":{o.equals(u.path,a)&&(u.offset<s||u.offset===s&&t==="forward")&&(n.offset+=u.text.length);break}case"merge_node":{o.equals(u.path,a)&&(n.offset+=u.position),n.path=o.transform(a,u,r);break}case"remove_text":{o.equals(u.path,a)&&u.offset<=s&&(n.offset-=Math.min(s-u.offset,u.text.length));break}case"remove_node":{if(o.equals(u.path,a)||o.isAncestor(u.path,a))return null;n.path=o.transform(a,u,r);break}case"split_node":{if(o.equals(u.path,a)){if(u.position===s&&t==null)return null;(u.position<s||u.position===s&&t==="forward")&&(n.offset-=u.position,n.path=o.transform(a,u,Xu(Xu({},r),{},{affinity:"forward"})))}else n.path=o.transform(a,u,r);break}}})}},Qu=void 0,G={setScrubber(e){Qu=e},stringify(e){return JSON.stringify(e,Qu)}},Ve=["text"],We=["anchor","focus"];function ku(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eu(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?ku(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ku(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var p={equals(e,u){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function t(a){var s=uu(a,Ve);return s}return Ku(n?t(e):e,n?t(u):u)},isText(e){return H(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(u=>p.isText(u))},isTextProps(e){return e.text!==void 0},matches(e,u){for(var r in u)if(r!=="text"&&(!e.hasOwnProperty(r)||e[r]!==u[r]))return!1;return!0},decorations(e,u){var r=[eu({},e)];for(var n of u){var t=uu(n,We),[a,s]=B.edges(n),f=[],D=0,l=a.offset,c=s.offset;for(var C of r){var{length:v}=C.text,g=D;if(D+=v,l<=g&&D<=c){Object.assign(C,t),f.push(C);continue}if(l!==c&&(l===D||c===g)||l>D||c<g||c===g&&g!==0){f.push(C);continue}var A=C,F=void 0,E=void 0;if(c<D){var d=c-g;E=eu(eu({},A),{},{text:A.text.slice(d)}),A=eu(eu({},A),{},{text:A.text.slice(0,d)})}if(l>g){var b=l-g;F=eu(eu({},A),{},{text:A.text.slice(0,b)}),A=eu(eu({},A),{},{text:A.text.slice(b)})}Object.assign(A,t),F&&f.push(F),f.push(A),E&&f.push(E)}r=f}return r}},xu=e=>e.selection?e.selection:e.children.length>0?i.end(e,[]):[0],lu=(e,u)=>{var[r]=i.node(e,u);return n=>n===r},ju=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=!r,t=r?Ge(u):u,a=O.None,s=O.None,f=0,D=null,l=null;for(var c of t){var C=c.codePointAt(0);if(!C)break;var v=sr(c,C);if([a,s]=n?[s,v]:[v,a],cu(a,O.ZWJ)&&cu(s,O.ExtPict)&&(n?D=_u(u.substring(0,f)):D=_u(u.substring(0,u.length-f)),!D)||cu(a,O.RI)&&cu(s,O.RI)&&(l!==null?l=!l:n?l=!0:l=lr(u.substring(0,u.length-f)),!l)||a!==O.None&&s!==O.None&&Dr(a,s))break;f+=c.length}return f||1},Ke=/\s/,He=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Je=/['\u2018\u2019]/,Ze=function(u){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=0,t=!1;u.length>0;){var a=ju(u,r),[s,f]=Nu(u,a,r);if(Ue(s,f,r))t=!0,n+=a;else if(!t)n+=a;else break;u=f}return n},Nu=(e,u,r)=>{if(r){var n=e.length-u;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,u),e.slice(u)]},Ue=function e(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(Ke.test(u))return!1;if(Je.test(u)){var t=ju(r,n),[a,s]=Nu(r,t,n);if(e(a,s,n))return!0}return!He.test(u)},Ge=function*(u){for(var r=u.length-1,n=0;n<u.length;n++){var t=u.charAt(r-n);if(Xe(t.charCodeAt(0))){var a=u.charAt(r-n-1);if(Ye(a.charCodeAt(0))){yield a+t,n++;continue}}yield t}},Ye=e=>e>=55296&&e<=56319,Xe=e=>e>=56320&&e<=57343,O;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(O||(O={}));var Qe=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,ke=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,_e=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,ur=/^[\u1100-\u115F\uA960-\uA97C]$/,er=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,rr=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,nr=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,tr=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,ar=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,sr=(e,u)=>{var r=O.Any;return e.search(Qe)!==-1&&(r|=O.Extend),u===8205&&(r|=O.ZWJ),u>=127462&&u<=127487&&(r|=O.RI),e.search(ke)!==-1&&(r|=O.Prepend),e.search(_e)!==-1&&(r|=O.SpacingMark),e.search(ur)!==-1&&(r|=O.L),e.search(er)!==-1&&(r|=O.V),e.search(rr)!==-1&&(r|=O.T),e.search(nr)!==-1&&(r|=O.LV),e.search(tr)!==-1&&(r|=O.LVT),e.search(ar)!==-1&&(r|=O.ExtPict),r};function cu(e,u){return(e&u)!==0}var ir=[[O.L,O.L|O.V|O.LV|O.LVT],[O.LV|O.V,O.V|O.T],[O.LVT|O.T,O.T],[O.Any,O.Extend|O.ZWJ],[O.Any,O.SpacingMark],[O.Prepend,O.Any],[O.ZWJ,O.ExtPict],[O.RI,O.RI]];function Dr(e,u){return ir.findIndex(r=>cu(e,r[0])&&cu(u,r[1]))===-1}var fr=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,_u=e=>e.search(fr)!==-1,or=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,lr=e=>{var u=e.match(or);if(u===null)return!1;var r=u[0].length/2;return r%2===1},cr={delete(e,u){e.delete(u)},insertFragment(e,u,r){e.insertFragment(u,r)},insertText(e,u){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};i.withoutNormalizing(e,()=>{var{voids:n=!1}=r,{at:t=xu(e)}=r;if(o.isPath(t)&&(t=i.range(e,t)),B.isRange(t))if(B.isCollapsed(t))t=t.anchor;else{var a=B.end(t);if(!n&&i.void(e,{at:a}))return;var s=B.start(t),f=i.pointRef(e,s),D=i.pointRef(e,a);h.delete(e,{at:t,voids:n});var l=f.unref(),c=D.unref();t=l||c,h.setSelection(e,{anchor:t,focus:t})}if(!(!n&&i.void(e,{at:t})||i.elementReadOnly(e,{at:t}))){var{path:C,offset:v}=t;u.length>0&&e.apply({type:"insert_text",path:C,offset:v,text:u})}})}};function ue(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ou(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?ue(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var h=Ou(Ou(Ou(Ou({},Ne),Re),$e),cr),yu=new WeakMap,Cr=e=>yu.get(e)||!1,vr=(e,u,r)=>{var n=yu.get(e)||!1;yu.set(e,!0);try{u(),r()}finally{yu.set(e,n)}};function ee(e,u,r){var n=bu.get(e)||[],t=wu.get(e)||new Set,a,s,f=C=>{if(C){var v=C.join(",");s.has(v)||(s.add(v),a.push(C))}};if(r){a=[],s=new Set;for(var D of n){var l=r(D);f(l)}}else a=n,s=t;for(var c of u)f(c);bu.set(e,a),wu.set(e,s)}var Br=(e,u)=>{for(var r of i.pathRefs(e))we.transform(r,u);for(var n of i.pointRefs(e))Oe.transform(n,u);for(var t of i.rangeRefs(e))ye.transform(t,u);if(!Cr(e)){var a=o.operationCanTransformPath(u)?s=>o.transform(s,u):void 0;ee(e,e.getDirtyPaths(u),a)}h.transform(e,u),e.operations.push(u),i.normalize(e,{operation:u}),u.type==="set_selection"&&(e.marks=null),mu.get(e)||(mu.set(e,!0),Promise.resolve().then(()=>{mu.set(e,!1),e.onChange({operation:u}),e.operations=[]}))},gr=(e,u)=>{switch(u.type){case"insert_text":case"remove_text":case"set_node":{var{path:r}=u;return o.levels(r)}case"insert_node":{var{node:n,path:t}=u,a=o.levels(t),s=p.isText(n)?[]:Array.from(m.nodes(n),j=>{var[,I]=j;return t.concat(I)});return[...a,...s]}case"merge_node":{var{path:f}=u,D=o.ancestors(f),l=o.previous(f);return[...D,l]}case"move_node":{var{path:c,newPath:C}=u;if(o.equals(c,C))return[];var v=[],g=[];for(var A of o.ancestors(c)){var F=o.transform(A,u);v.push(F)}for(var E of o.ancestors(C)){var d=o.transform(E,u);g.push(d)}var b=g[g.length-1],x=C[C.length-1],y=b.concat(x);return[...v,...g,y]}case"remove_node":{var{path:N}=u,S=o.ancestors(N);return[...S]}case"split_node":{var{path:P}=u,z=o.levels(P),T=o.next(P);return[...z,T]}default:return[]}},Ar=e=>{var{selection:u}=e;return u?m.fragment(e,u):[]},mr=(e,u)=>{var[r,n]=u;if(!p.isText(r)){if(w.isElement(r)&&r.children.length===0){var t={text:""};h.insertNodes(e,t,{at:n.concat(0),voids:!0});return}for(var a=i.isEditor(r)?!1:w.isElement(r)&&(e.isInline(r)||r.children.length===0||p.isText(r.children[0])||e.isInline(r.children[0])),s=0,f=0;f<r.children.length;f++,s++){var D=m.get(e,n);if(!p.isText(D)){var l=D.children[s],c=D.children[s-1],C=f===r.children.length-1,v=p.isText(l)||w.isElement(l)&&e.isInline(l);if(v!==a)h.removeNodes(e,{at:n.concat(s),voids:!0}),s--;else if(w.isElement(l)){if(e.isInline(l)){if(c==null||!p.isText(c)){var g={text:""};h.insertNodes(e,g,{at:n.concat(s),voids:!0}),s++}else if(C){var A={text:""};h.insertNodes(e,A,{at:n.concat(s+1),voids:!0}),s++}}}else{if(!p.isText(l)&&!("children"in l)){var F=l;F.children=[]}c!=null&&p.isText(c)&&(p.equals(l,c,{loose:!0})?(h.mergeNodes(e,{at:n.concat(s),voids:!0}),s--):c.text===""?(h.removeNodes(e,{at:n.concat(s-1),voids:!0}),s--):l.text===""&&(h.removeNodes(e,{at:n.concat(s),voids:!0}),s--))}}}}},hr=(e,u)=>{var{iteration:r,initialDirtyPathsLength:n}=u,t=n*42;if(r>t)throw new Error("Could not completely normalize the editor after ".concat(t," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},Er=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:t="lowest",at:a=u.selection,match:s}=r;if(a){var f=i.path(u,a),D=t==="lowest";for(var[l,c]of i.levels(u,{at:f,voids:n,match:s,reverse:D}))if(!p.isText(l)){if(B.isRange(a)){if(o.isAncestor(c,a.anchor.path)&&o.isAncestor(c,a.focus.path))return[l,c]}else if(!o.equals(f,c))return[l,c]}}};function re(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ne(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?re(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Fr=(e,u,r)=>{var{selection:n}=e;if(n){var t=(C,v)=>{if(!p.isText(C))return!1;var[g,A]=i.parent(e,v);return!e.isVoid(g)||e.markableVoid(g)},a=B.isExpanded(n),s=!1;if(!a){var[f,D]=i.node(e,n);if(f&&t(f,D)){var[l]=i.parent(e,D);s=l&&e.markableVoid(l)}}if(a||s)h.setNodes(e,{[u]:r},{match:t,split:!0,voids:!0});else{var c=ne(ne({},i.marks(e)||{}),{},{[u]:r});e.marks=c,mu.get(e)||e.onChange()}}};function te(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?te(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):te(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var pr=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=i.point(u,r,{edge:"end"}),a=i.end(u,[]),s={anchor:t,focus:a},{distance:f=1}=n,D=0,l;for(var c of i.positions(u,ae(ae({},n),{},{at:s}))){if(D>f)break;D!==0&&(l=c),D++}return l};function se(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ie(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?se(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var dr=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=i.start(u,[]),a=i.point(u,r,{edge:"start"}),s={anchor:t,focus:a},{distance:f=1}=n,D=0,l;for(var c of i.positions(u,ie(ie({},n),{},{at:s,reverse:!0}))){if(D>f)break;D!==0&&(l=c),D++}return l},br=(e,u)=>{var{selection:r}=e;r&&B.isCollapsed(r)&&h.delete(e,{unit:u,reverse:!0})},wr=(e,u)=>{var{selection:r}=e;r&&B.isCollapsed(r)&&h.delete(e,{unit:u})},Or=function(u){var{direction:r="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=u;n&&B.isExpanded(n)&&h.delete(u,{reverse:r==="backward"})},yr=(e,u)=>[i.start(e,u),i.end(e,u)];function De(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function fe(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?De(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):De(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Pr=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.above(u,fe(fe({},r),{},{match:n=>w.isElement(n)&&i.isElementReadOnly(u,n)}))},xr=(e,u)=>i.point(e,u,{edge:"end"}),jr=(e,u)=>{var r=i.path(e,u,{edge:"start"});return i.node(e,r)},Nr=(e,u)=>{var r=i.range(e,u);return m.fragment(e,r)};function oe(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function le(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?oe(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Rr=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.above(u,le(le({},r),{},{match:n=>w.isElement(n)&&i.isVoid(u,n)}))},$r=(e,u)=>u.children.some(r=>w.isElement(r)&&i.isBlock(e,r)),Sr=(e,u)=>u.children.some(r=>p.isText(r)||i.isInline(e,r)),Tr=(e,u)=>m.has(e,u),Ir=(e,u)=>u.children.every(r=>p.isText(r)),zr=e=>{h.splitNodes(e,{always:!0})},qr=(e,u,r)=>{h.insertNodes(e,u,r)},Lr=e=>{h.splitNodes(e,{always:!0})};function ce(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Mr(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?ce(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Vr=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:t,marks:a}=u;if(t){if(a){var s=Mr({text:r},a);h.insertNodes(u,s,{at:n.at,voids:n.voids})}else h.insertText(u,r,n);u.marks=null}},Wr=(e,u)=>!e.isInline(u),Kr=(e,u,r)=>i.isStart(e,u,r)||i.isEnd(e,u,r),Hr=(e,u)=>{var{children:r}=u,[n]=r;return r.length===0||r.length===1&&p.isText(n)&&n.text===""&&!e.isVoid(u)},Jr=(e,u,r)=>{var n=i.end(e,r);return R.equals(u,n)},Zr=e=>{var u=qu.get(e);return u===void 0?!0:u},Ur=(e,u,r)=>{if(u.offset!==0)return!1;var n=i.start(e,r);return R.equals(u,n)},Gr=(e,u)=>{var r=i.path(e,u,{edge:"end"});return i.node(e,r)},Yr=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=i.path(u,r,n),a=m.leaf(u,t);return[a,t]};function Xr(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:r=e.selection,reverse:n=!1,voids:t=!1}=u,{match:a}=u;if(a==null&&(a=()=>!0),!!r){var s=[],f=i.path(e,r);for(var[D,l]of m.levels(e,f))if(a(D,l)&&(s.push([D,l]),!t&&w.isElement(D)&&i.isVoid(e,D)))break;n&&s.reverse(),yield*s}}()}var Qr=["text"],kr=["text"],_r=function(u){var{marks:r,selection:n}=u;if(!n)return null;var{anchor:t,focus:a}=n;if(r)return r;if(B.isExpanded(n)){var s=i.isEnd(u,t,t.path);if(s){var f=i.after(u,t);f&&(t=f)}var[D]=i.nodes(u,{match:p.isText,at:{anchor:t,focus:a}});if(D){var[l]=D,c=uu(l,Qr);return c}else return{}}var{path:C}=t,[v]=i.leaf(u,C);if(t.offset===0){var g=i.previous(u,{at:C,match:p.isText}),A=i.above(u,{match:y=>w.isElement(y)&&i.isVoid(u,y)&&u.markableVoid(y)});if(!A){var F=i.above(u,{match:y=>w.isElement(y)&&i.isBlock(u,y)});if(g&&F){var[E,d]=g,[,b]=F;o.isAncestor(b,d)&&(v=E)}}}var x=uu(v,kr);return x},un=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:t=!1}=r,{match:a,at:s=u.selection}=r;if(s){var f=i.after(u,s,{voids:t});if(f){var[,D]=i.last(u,[]),l=[f.path,D];if(o.isPath(s)&&s.length===0)throw new Error("Cannot get the next node from the root node!");if(a==null)if(o.isPath(s)){var[c]=i.parent(u,s);a=v=>c.children.includes(v)}else a=()=>!0;var[C]=i.nodes(u,{at:l,match:a,mode:n,voids:t});return C}}},en=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=i.path(u,r,n),a=m.get(u,t);return[a,t]};function rn(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:r=e.selection,mode:n="all",universal:t=!1,reverse:a=!1,voids:s=!1,ignoreNonSelectable:f=!1}=u,{match:D}=u;if(D||(D=()=>!0),!!r){var l,c;if(Me.isSpan(r))l=r[0],c=r[1];else{var C=i.path(e,r,{edge:"start"}),v=i.path(e,r,{edge:"end"});l=a?v:C,c=a?C:v}var g=m.nodes(e,{reverse:a,from:l,to:c,pass:y=>{var[N]=y;return w.isElement(N)?!!(!s&&(i.isVoid(e,N)||i.isElementReadOnly(e,N))||f&&!i.isSelectable(e,N)):!1}}),A=[],F;for(var[E,d]of g)if(!(f&&w.isElement(E)&&!i.isSelectable(e,E))){var b=F&&o.compare(d,F[1])===0;if(!(n==="highest"&&b)){if(!D(E,d)){if(t&&!b&&p.isText(E))return;continue}if(n==="lowest"&&b){F=[E,d];continue}var x=n==="lowest"?F:[E,d];x&&(t?A.push(x):yield x),F=[E,d]}}n==="lowest"&&F&&(t?A.push(F):yield F),t&&(yield*A)}}()}var nn=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1,operation:t}=r,a=c=>bu.get(c)||[],s=c=>wu.get(c)||new Set,f=c=>{var C=a(c).pop(),v=C.join(",");return s(c).delete(v),C};if(i.isNormalizing(u)){if(n){var D=Array.from(m.nodes(u),c=>{var[,C]=c;return C}),l=new Set(D.map(c=>c.join(",")));bu.set(u,D),wu.set(u,l)}a(u).length!==0&&i.withoutNormalizing(u,()=>{for(var c of a(u))if(m.has(u,c)){var C=i.node(u,c),[v,g]=C;w.isElement(v)&&v.children.length===0&&u.normalizeNode(C,{operation:t})}for(var A=a(u),F=A.length,E=0;A.length!==0;){if(!u.shouldNormalize({dirtyPaths:A,iteration:E,initialDirtyPathsLength:F,operation:t}))return;var d=f(u);if(m.has(u,d)){var b=i.node(u,d);u.normalizeNode(b,{operation:t})}E++,A=a(u)}})}},tn=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=i.path(u,r,n),a=o.parent(t),s=i.node(u,a);return s},an=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:t="forward"}=n,a={current:r,affinity:t,unref(){var{current:f}=a,D=i.pathRefs(u);return D.delete(a),a.current=null,f}},s=i.pathRefs(u);return s.add(a),a},sn=e=>{var u=Lu.get(e);return u||(u=new Set,Lu.set(e,u)),u},Dn=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:t,edge:a}=n;if(o.isPath(r)){if(a==="start"){var[,s]=m.first(u,r);r=s}else if(a==="end"){var[,f]=m.last(u,r);r=f}}return B.isRange(r)&&(a==="start"?r=B.start(r):a==="end"?r=B.end(r):r=o.common(r.anchor.path,r.focus.path)),R.isPoint(r)&&(r=r.path),t!=null&&(r=r.slice(0,t)),r},fn=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:t="forward"}=n,a={current:r,affinity:t,unref(){var{current:f}=a,D=i.pointRefs(u);return D.delete(a),a.current=null,f}},s=i.pointRefs(u);return s.add(a),a},on=e=>{var u=Mu.get(e);return u||(u=new Set,Mu.set(e,u)),u},ln=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:t="start"}=n;if(o.isPath(r)){var a;if(t==="end"){var[,s]=m.last(u,r);a=s}else{var[,f]=m.first(u,r);a=f}var D=m.get(u,a);if(!p.isText(D))throw new Error("Cannot get the ".concat(t," point in the node at path [").concat(r,"] because it has no ").concat(t," text node."));return{path:a,offset:t==="end"?D.text.length:0}}if(B.isRange(r)){var[l,c]=B.edges(r);return t==="start"?l:c}return r};function cn(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:r=e.selection,unit:n="offset",reverse:t=!1,voids:a=!1,ignoreNonSelectable:s=!1}=u;if(!r)return;var f=i.range(e,r),[D,l]=B.edges(f),c=t?l:D,C=!1,v="",g=0,A=0,F=0;for(var[E,d]of i.nodes(e,{at:r,reverse:t,voids:a,ignoreNonSelectable:s})){if(w.isElement(E)){if(!a&&(e.isVoid(E)||e.isElementReadOnly(E))){yield i.start(e,d);continue}if(e.isInline(E))continue;if(i.hasInlines(e,E)){var b=o.isAncestor(d,l.path)?l:i.end(e,d),x=o.isAncestor(d,D.path)?D:i.start(e,d);v=i.string(e,{anchor:x,focus:b},{voids:a}),C=!0}}if(p.isText(E)){var y=o.equals(d,c.path);for(y?(A=t?c.offset:E.text.length-c.offset,F=c.offset):(A=E.text.length,F=t?A:0),(y||C||n==="offset")&&(yield{path:d,offset:F},C=!1);;){if(g===0){if(v==="")break;g=N(v,n,t),v=Nu(v,g,t)[1]}if(F=t?F-g:F+g,A=A-g,A<0){g=-A;break}g=0,yield{path:d,offset:F}}}}function N(S,P,z){return P==="character"?ju(S,z):P==="word"?Ze(S,z):P==="line"||P==="block"?S.length:1}}()}var Cn=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:t=!1}=r,{match:a,at:s=u.selection}=r;if(s){var f=i.before(u,s,{voids:t});if(f){var[,D]=i.first(u,[]),l=[f.path,D];if(o.isPath(s)&&s.length===0)throw new Error("Cannot get the previous node from the root node!");if(a==null)if(o.isPath(s)){var[c]=i.parent(u,s);a=v=>c.children.includes(v)}else a=()=>!0;var[C]=i.nodes(u,{reverse:!0,at:l,match:a,mode:n,voids:t});return C}}},vn=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:t="forward"}=n,a={current:r,affinity:t,unref(){var{current:f}=a,D=i.rangeRefs(u);return D.delete(a),a.current=null,f}},s=i.rangeRefs(u);return s.add(a),a},Bn=e=>{var u=Vu.get(e);return u||(u=new Set,Vu.set(e,u)),u},gn=(e,u,r)=>{if(B.isRange(u)&&!r)return u;var n=i.start(e,u),t=i.end(e,r||u);return{anchor:n,focus:t}};function Ce(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function An(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?Ce(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var mn=(e,u)=>{var{selection:r}=e;if(r){var n=(c,C)=>{if(!p.isText(c))return!1;var[v,g]=i.parent(e,C);return!e.isVoid(v)||e.markableVoid(v)},t=B.isExpanded(r),a=!1;if(!t){var[s,f]=i.node(e,r);if(s&&n(s,f)){var[D]=i.parent(e,f);a=D&&e.markableVoid(D)}}if(t||a)h.unsetNodes(e,u,{match:n,split:!0,voids:!0});else{var l=An({},i.marks(e)||{});delete l[u],e.marks=l,mu.get(e)||e.onChange()}}},hn=(e,u)=>{qu.set(e,u)},En=(e,u)=>i.point(e,u,{edge:"start"}),Fn=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:t=!1}=n,a=i.range(u,r),[s,f]=B.edges(a),D="";for(var[l,c]of i.nodes(u,{at:a,match:p.isText,voids:t})){var C=l.text;o.equals(c,f.path)&&(C=C.slice(0,f.offset)),o.equals(c,s.path)&&(C=C.slice(s.offset)),D+=C}return D},pn=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:t=!1}=n,[a,s]=B.edges(r);if(a.offset!==0||s.offset!==0||B.isCollapsed(r)||o.hasPrevious(s.path))return r;var f=i.above(u,{at:s,match:A=>w.isElement(A)&&i.isBlock(u,A),voids:t}),D=f?f[1]:[],l=i.start(u,a),c={anchor:l,focus:s},C=!0;for(var[v,g]of i.nodes(u,{at:c,match:p.isText,reverse:!0,voids:t})){if(C){C=!1;continue}if(v.text!==""||o.isBefore(g,D)){s={path:g,offset:v.text.length};break}}return{anchor:a,focus:s}},dn=(e,u)=>{var r=i.isNormalizing(e);i.setNormalizing(e,!1);try{u()}finally{i.setNormalizing(e,r)}i.normalize(e)},bn=(e,u,r)=>{var[n,t]=u;return w.isElement(n)&&i.isEmpty(e,n)||p.isText(n)&&n.text===""&&t[t.length-1]!==0},wn=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i.withoutNormalizing(u,()=>{var n,t,{reverse:a=!1,unit:s="character",distance:f=1,voids:D=!1}=r,{at:l=u.selection,hanging:c=!1}=r;if(l){var C=!1;if(B.isRange(l)&&B.isCollapsed(l)&&(C=!0,l=l.anchor),R.isPoint(l)){var v=i.void(u,{at:l,mode:"highest"});if(!D&&v){var[,g]=v;l=g}else{var A={unit:s,distance:f},F=a?i.before(u,l,A)||i.start(u,[]):i.after(u,l,A)||i.end(u,[]);l={anchor:l,focus:F},c=!0}}if(o.isPath(l)){h.removeNodes(u,{at:l,voids:D});return}if(!B.isCollapsed(l)){if(!c){var[,E]=B.edges(l),d=i.end(u,[]);R.equals(E,d)||(l=i.unhangRange(u,l,{voids:D}))}var[b,x]=B.edges(l),y=i.above(u,{match:U=>w.isElement(U)&&i.isBlock(u,U),at:b,voids:D}),N=i.above(u,{match:U=>w.isElement(U)&&i.isBlock(u,U),at:x,voids:D}),S=y&&N&&!o.equals(y[1],N[1]),P=o.equals(b.path,x.path),z=D?null:(n=i.void(u,{at:b,mode:"highest"}))!==null&&n!==void 0?n:i.elementReadOnly(u,{at:b,mode:"highest"}),T=D?null:(t=i.void(u,{at:x,mode:"highest"}))!==null&&t!==void 0?t:i.elementReadOnly(u,{at:x,mode:"highest"});if(z){var j=i.before(u,b);j&&y&&o.isAncestor(y[1],j.path)&&(b=j)}if(T){var I=i.after(u,x);I&&N&&o.isAncestor(N[1],I.path)&&(x=I)}var q=[],W;for(var V of i.nodes(u,{at:l,voids:D})){var[Z,X]=V;W&&o.compare(X,W)===0||(!D&&w.isElement(Z)&&(i.isVoid(u,Z)||i.isElementReadOnly(u,Z))||!o.isCommon(X,b.path)&&!o.isCommon(X,x.path))&&(q.push(V),W=X)}var Q=Array.from(q,U=>{var[,Ru]=U;return i.pathRef(u,Ru)}),k=i.pointRef(u,b),M=i.pointRef(u,x),Y="";if(!P&&!z){var ru=k.current,[_]=i.leaf(u,ru),{path:nu}=ru,{offset:su}=b,$=_.text.slice(su);$.length>0&&(u.apply({type:"remove_text",path:nu,offset:su,text:$}),Y=$)}if(Q.reverse().map(U=>U.unref()).filter(U=>U!==null).forEach(U=>h.removeNodes(u,{at:U,voids:D})),!T){var K=M.current,[au]=i.leaf(u,K),{path:iu}=K,Cu=P?b.offset:0,Fu=au.text.slice(Cu,x.offset);Fu.length>0&&(u.apply({type:"remove_text",path:iu,offset:Cu,text:Fu}),Y=Fu)}!P&&S&&M.current&&k.current&&h.mergeNodes(u,{at:M.current,hanging:!0,voids:D}),C&&a&&s==="character"&&Y.length>1&&Y.match(/[\u0E00-\u0E7F]+/)&&h.insertText(u,Y.slice(0,Y.length-f));var pu=k.unref(),du=M.unref(),vu=a?pu||du:du||pu;r.at==null&&vu&&h.select(u,vu)}}})},On=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};i.withoutNormalizing(u,()=>{var{hanging:t=!1,voids:a=!1}=n,{at:s=xu(u),batchDirty:f=!0}=n;if(r.length){if(B.isRange(s))if(t||(s=i.unhangRange(u,s,{voids:a})),B.isCollapsed(s))s=s.anchor;else{var[,D]=B.edges(s);if(!a&&i.void(u,{at:D}))return;var l=i.pointRef(u,D);h.delete(u,{at:s}),s=l.unref()}else o.isPath(s)&&(s=i.start(u,s));if(!(!a&&i.void(u,{at:s}))){var c=i.above(u,{at:s,match:$=>w.isElement($)&&i.isInline(u,$),mode:"highest",voids:a});if(c){var[,C]=c;if(i.isEnd(u,s,C)){var v=i.after(u,C);s=v}else if(i.isStart(u,s,C)){var g=i.before(u,C);s=g}}var A=i.above(u,{match:$=>w.isElement($)&&i.isBlock(u,$),at:s,voids:a}),[,F]=A,E=i.isStart(u,s,F),d=i.isEnd(u,s,F),b=E&&d,x=!E||E&&d,y=!d,[,N]=m.first({children:r},[]),[,S]=m.last({children:r},[]),P=[],z=$=>{var[K,au]=$,iu=au.length===0;return iu?!1:b?!0:!(x&&o.isAncestor(au,N)&&w.isElement(K)&&!u.isVoid(K)&&!u.isInline(K)||y&&o.isAncestor(au,S)&&w.isElement(K)&&!u.isVoid(K)&&!u.isInline(K))};for(var T of m.nodes({children:r},{pass:z}))z(T)&&P.push(T);var j=[],I=[],q=[],W=!0,V=!1;for(var[Z]of P)w.isElement(Z)&&!u.isInline(Z)?(W=!1,V=!0,I.push(Z)):W?j.push(Z):q.push(Z);var[X]=i.nodes(u,{at:s,match:$=>p.isText($)||i.isInline(u,$),mode:"highest",voids:a}),[,Q]=X,k=i.isStart(u,s,Q),M=i.isEnd(u,s,Q),Y=i.pathRef(u,d&&!q.length?o.next(F):F),ru=i.pathRef(u,M?o.next(Q):Q);h.splitNodes(u,{at:s,match:$=>V?w.isElement($)&&i.isBlock(u,$):p.isText($)||i.isInline(u,$),mode:V?"lowest":"highest",always:V&&(!E||j.length>0)&&(!d||q.length>0),voids:a});var _=i.pathRef(u,!k||k&&M?o.next(Q):Q);if(h.insertNodes(u,j,{at:_.current,match:$=>p.isText($)||i.isInline(u,$),mode:"highest",voids:a,batchDirty:f}),b&&!j.length&&I.length&&!q.length&&h.delete(u,{at:F,voids:a}),h.insertNodes(u,I,{at:Y.current,match:$=>w.isElement($)&&i.isBlock(u,$),mode:"lowest",voids:a,batchDirty:f}),h.insertNodes(u,q,{at:ru.current,match:$=>p.isText($)||i.isInline(u,$),mode:"highest",voids:a,batchDirty:f}),!n.at){var nu;if(q.length>0&&ru.current?nu=o.previous(ru.current):I.length>0&&Y.current?nu=o.previous(Y.current):_.current&&(nu=o.previous(_.current)),nu){var su=i.end(u,nu);h.select(u,su)}}_.unref(),Y.unref(),ru.unref()}}})},yn=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=r,{selection:t}=u;if(t){if(n==="anchor")h.select(u,t.anchor);else if(n==="focus")h.select(u,t.focus);else if(n==="start"){var[a]=B.edges(t);h.select(u,a)}else if(n==="end"){var[,s]=B.edges(t);h.select(u,s)}}else return},Pn=e=>{var{selection:u}=e;u&&e.apply({type:"set_selection",properties:u,newProperties:null})},xn=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=u,{distance:t=1,unit:a="character",reverse:s=!1}=r,{edge:f=null}=r;if(n){f==="start"&&(f=B.isBackward(n)?"focus":"anchor"),f==="end"&&(f=B.isBackward(n)?"anchor":"focus");var{anchor:D,focus:l}=n,c={distance:t,unit:a,ignoreNonSelectable:!0},C={};if(f==null||f==="anchor"){var v=s?i.before(u,D,c):i.after(u,D,c);v&&(C.anchor=v)}if(f==null||f==="focus"){var g=s?i.before(u,l,c):i.after(u,l,c);g&&(C.focus=g)}h.setSelection(u,C)}},jn=(e,u)=>{var{selection:r}=e;if(u=i.range(e,u),r){h.setSelection(e,u);return}if(!B.isRange(u))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(G.stringify(u)));e.apply({type:"set_selection",properties:r,newProperties:u})};function ve(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Be(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?ve(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Nn=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:t}=u,{edge:a="both"}=n;if(t){a==="start"&&(a=B.isBackward(t)?"focus":"anchor"),a==="end"&&(a=B.isBackward(t)?"anchor":"focus");var{anchor:s,focus:f}=t,D=a==="anchor"?s:f;h.setSelection(u,{[a==="anchor"?"anchor":"focus"]:Be(Be({},D),r)})}},Rn=(e,u)=>{var{selection:r}=e,n={},t={};if(r){for(var a in u)(a==="anchor"&&u.anchor!=null&&!R.equals(u.anchor,r.anchor)||a==="focus"&&u.focus!=null&&!R.equals(u.focus,r.focus)||a!=="anchor"&&a!=="focus"&&u[a]!==r[a])&&(n[a]=r[a],t[a]=u[a]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:t})}},$n=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};i.withoutNormalizing(u,()=>{var{hanging:t=!1,voids:a=!1,mode:s="lowest",batchDirty:f=!0}=n,{at:D,match:l,select:c}=n;if(m.isNode(r)&&(r=[r]),r.length!==0){var[C]=r;if(D||(D=xu(u),c!==!1&&(c=!0)),c==null&&(c=!1),B.isRange(D))if(t||(D=i.unhangRange(u,D,{voids:a})),B.isCollapsed(D))D=D.anchor;else{var[,v]=B.edges(D),g=i.pointRef(u,v);h.delete(u,{at:D}),D=g.unref()}if(R.isPoint(D)){l==null&&(p.isText(C)?l=j=>p.isText(j):u.isInline(C)?l=j=>p.isText(j)||i.isInline(u,j):l=j=>w.isElement(j)&&i.isBlock(u,j));var[A]=i.nodes(u,{at:D.path,match:l,mode:s,voids:a});if(A){var[,F]=A,E=i.pathRef(u,F),d=i.isEnd(u,D,F);h.splitNodes(u,{at:D,match:l,mode:s,voids:a});var b=E.unref();D=d?o.next(b):b}else return}var x=o.parent(D),y=D[D.length-1];if(!(!a&&i.void(u,{at:x}))){if(f){var N=[],S=o.levels(x);vr(u,()=>{var j=function(){var W=x.concat(y);y++;var V={type:"insert_node",path:W,node:I};u.apply(V),D=o.next(D),N.push(V),p.isText?S.push(...Array.from(m.nodes(I),Z=>{var[,X]=Z;return W.concat(X)})):S.push(W)};for(var I of r)j()},()=>{ee(u,S,j=>{var I=j;for(var q of N)if(o.operationCanTransformPath(q)&&(I=o.transform(I,q),!I))return null;return I})})}else for(var P of r){var z=x.concat(y);y++,u.apply({type:"insert_node",path:z,node:P}),D=o.next(D)}if(D=o.previous(D),c){var T=i.end(u,D);T&&h.select(u,T)}}}})},Sn=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i.withoutNormalizing(u,()=>{var{at:n=u.selection,mode:t="lowest",voids:a=!1}=r,{match:s}=r;if(s==null&&(s=o.isPath(n)?lu(u,n):y=>w.isElement(y)&&i.isBlock(u,y)),!!n){var f=i.nodes(u,{at:n,match:s,mode:t,voids:a}),D=Array.from(f,y=>{var[,N]=y;return i.pathRef(u,N)});for(var l of D){var c=l.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var C=i.node(u,o.parent(c)),[v,g]=C,A=c[c.length-1],{length:F}=v.children;if(F===1){var E=o.next(g);h.moveNodes(u,{at:c,to:E,voids:a}),h.removeNodes(u,{at:g,voids:a})}else if(A===0)h.moveNodes(u,{at:c,to:g,voids:a});else if(A===F-1){var d=o.next(g);h.moveNodes(u,{at:c,to:d,voids:a})}else{var b=o.next(c),x=o.next(g);h.splitNodes(u,{at:b,voids:a}),h.moveNodes(u,{at:c,to:x,voids:a})}}}})},Tn=["text"],In=["children"],ge=(e,u)=>{if(w.isElement(u)){var r=u;return i.isVoid(e,u)?!0:r.children.length===1?ge(e,r.children[0]):!1}else return!i.isEditor(u)},zn=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i.withoutNormalizing(u,()=>{var{match:n,at:t=u.selection}=r,{hanging:a=!1,voids:s=!1,mode:f="lowest"}=r;if(t){if(n==null)if(o.isPath(t)){var[D]=i.parent(u,t);n=j=>D.children.includes(j)}else n=j=>w.isElement(j)&&i.isBlock(u,j);if(!a&&B.isRange(t)&&(t=i.unhangRange(u,t,{voids:s})),B.isRange(t))if(B.isCollapsed(t))t=t.anchor;else{var[,l]=B.edges(t),c=i.pointRef(u,l);h.delete(u,{at:t}),t=c.unref(),r.at==null&&h.select(u,t)}var[C]=i.nodes(u,{at:t,match:n,voids:s,mode:f}),v=i.previous(u,{at:t,match:n,voids:s,mode:f});if(!(!C||!v)){var[g,A]=C,[F,E]=v;if(!(A.length===0||E.length===0)){var d=o.next(E),b=o.common(A,E),x=o.isSibling(A,E),y=Array.from(i.levels(u,{at:A}),j=>{var[I]=j;return I}).slice(b.length).slice(0,-1),N=i.above(u,{at:A,mode:"highest",match:j=>y.includes(j)&&ge(u,j)}),S=N&&i.pathRef(u,N[1]),P,z;if(p.isText(g)&&p.isText(F)){var T=uu(g,Tn);z=F.text.length,P=T}else if(w.isElement(g)&&w.isElement(F)){var T=uu(g,In);z=F.children.length,P=T}else throw new Error("Cannot merge the node at path [".concat(A,"] with the previous sibling because it is not the same kind: ").concat(G.stringify(g)," ").concat(G.stringify(F)));x||h.moveNodes(u,{at:A,to:d,voids:s}),S&&h.removeNodes(u,{at:S.current,voids:s}),i.shouldMergeNodesRemovePrevNode(u,v,C)?h.removeNodes(u,{at:E,voids:s}):u.apply({type:"merge_node",path:d,position:z,properties:P}),S&&S.unref()}}}})},qn=(e,u)=>{i.withoutNormalizing(e,()=>{var{to:r,at:n=e.selection,mode:t="lowest",voids:a=!1}=u,{match:s}=u;if(n){s==null&&(s=o.isPath(n)?lu(e,n):g=>w.isElement(g)&&i.isBlock(e,g));var f=i.pathRef(e,r),D=i.nodes(e,{at:n,match:s,mode:t,voids:a}),l=Array.from(D,g=>{var[,A]=g;return i.pathRef(e,A)});for(var c of l){var C=c.unref(),v=f.current;C.length!==0&&e.apply({type:"move_node",path:C,newPath:v}),f.current&&o.isSibling(v,C)&&o.isAfter(v,C)&&(f.current=o.next(f.current))}f.unref()}})},Ln=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i.withoutNormalizing(u,()=>{var{hanging:n=!1,voids:t=!1,mode:a="lowest"}=r,{at:s=u.selection,match:f}=r;if(s){f==null&&(f=o.isPath(s)?lu(u,s):g=>w.isElement(g)&&i.isBlock(u,g)),!n&&B.isRange(s)&&(s=i.unhangRange(u,s,{voids:t}));var D=i.nodes(u,{at:s,match:f,mode:a,voids:t}),l=Array.from(D,g=>{var[,A]=g;return i.pathRef(u,A)});for(var c of l){var C=c.unref();if(C){var[v]=i.node(u,C);u.apply({type:"remove_node",path:C,node:v})}}}})},Mn=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};i.withoutNormalizing(u,()=>{var{match:t,at:a=u.selection,compare:s,merge:f}=n,{hanging:D=!1,mode:l="lowest",split:c=!1,voids:C=!1}=n;if(a){if(t==null&&(t=o.isPath(a)?lu(u,a):z=>w.isElement(z)&&i.isBlock(u,z)),!D&&B.isRange(a)&&(a=i.unhangRange(u,a,{voids:C})),c&&B.isRange(a)){if(B.isCollapsed(a)&&i.leaf(u,a.anchor)[0].text.length>0)return;var v=i.rangeRef(u,a,{affinity:"inward"}),[g,A]=B.edges(a),F=l==="lowest"?"lowest":"highest",E=i.isEnd(u,A,A.path);h.splitNodes(u,{at:A,match:t,mode:F,voids:C,always:!E});var d=i.isStart(u,g,g.path);h.splitNodes(u,{at:g,match:t,mode:F,voids:C,always:!d}),a=v.unref(),n.at==null&&h.select(u,a)}s||(s=(z,T)=>z!==T);for(var[b,x]of i.nodes(u,{at:a,match:t,mode:l,voids:C})){var y={},N={};if(x.length!==0){var S=!1;for(var P in r)P==="children"||P==="text"||s(r[P],b[P])&&(S=!0,b.hasOwnProperty(P)&&(y[P]=b[P]),f?r[P]!=null&&(N[P]=f(b[P],r[P])):r[P]!=null&&(N[P]=r[P]));S&&u.apply({type:"set_node",path:x,properties:y,newProperties:N})}}}})},Vn=(e,u)=>{if(B.isCollapsed(u))return u.anchor;var[,r]=B.edges(u),n=i.pointRef(e,r);return h.delete(e,{at:u}),n.unref()},Wn=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i.withoutNormalizing(u,()=>{var{mode:n="lowest",voids:t=!1}=r,{match:a,at:s=u.selection,height:f=0,always:D=!1}=r;if(a==null&&(a=M=>w.isElement(M)&&i.isBlock(u,M)),B.isRange(s)&&(s=Vn(u,s)),o.isPath(s)){var l=s,c=i.point(u,l),[C]=i.parent(u,l);a=M=>M===C,f=c.path.length-l.length+1,s=c,D=!0}if(s){var v=i.pointRef(u,s,{affinity:"backward"}),g;try{var[A]=i.nodes(u,{at:s,match:a,mode:n,voids:t});if(!A)return;var F=i.void(u,{at:s,mode:"highest"}),E=0;if(!t&&F){var[d,b]=F;if(w.isElement(d)&&u.isInline(d)){var x=i.after(u,b);if(!x){var y={text:""},N=o.next(b);h.insertNodes(u,y,{at:N,voids:t}),x=i.point(u,N)}s=x,D=!0}var S=s.path.length-b.length;f=S+1,D=!0}g=i.pointRef(u,s);var P=s.path.length-f,[,z]=A,T=s.path.slice(0,P),j=f===0?s.offset:s.path[P]+E;for(var[I,q]of i.levels(u,{at:T,reverse:!0,voids:t})){var W=!1;if(q.length<z.length||q.length===0||!t&&w.isElement(I)&&i.isVoid(u,I))break;var V=v.current,Z=i.isEnd(u,V,q);if(D||!v||!i.isEdge(u,V,q)){W=!0;var X=m.extractProps(I);u.apply({type:"split_node",path:q,position:j,properties:X})}j=q[q.length-1]+(W||Z?1:0)}if(r.at==null){var Q=g.current||i.end(u,[]);h.select(u,Q)}}finally{var k;v.unref(),(k=g)===null||k===void 0||k.unref()}}})},Kn=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(r)||(r=[r]);var t={};for(var a of r)t[a]=null;h.setNodes(u,t,n)},Hn=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i.withoutNormalizing(u,()=>{var{mode:n="lowest",split:t=!1,voids:a=!1}=r,{at:s=u.selection,match:f}=r;if(s){f==null&&(f=o.isPath(s)?lu(u,s):g=>w.isElement(g)&&i.isBlock(u,g)),o.isPath(s)&&(s=i.range(u,s));var D=B.isRange(s)?i.rangeRef(u,s):null,l=i.nodes(u,{at:s,match:f,mode:n,voids:a}),c=Array.from(l,g=>{var[,A]=g;return i.pathRef(u,A)}).reverse(),C=function(){var A=v.unref(),[F]=i.node(u,A),E=i.range(u,A);t&&D&&(E=B.intersection(D.current,E)),h.liftNodes(u,{at:E,match:d=>w.isAncestor(F)&&F.children.includes(d),voids:a})};for(var v of c)C();D&&D.unref()}})};function Ae(e,u){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function me(e){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?Ae(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Jn=function(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};i.withoutNormalizing(u,()=>{var{mode:t="lowest",split:a=!1,voids:s=!1}=n,{match:f,at:D=u.selection}=n;if(D){if(f==null&&(o.isPath(D)?f=lu(u,D):u.isInline(r)?f=E=>w.isElement(E)&&i.isInline(u,E)||p.isText(E):f=E=>w.isElement(E)&&i.isBlock(u,E)),a&&B.isRange(D)){var[l,c]=B.edges(D),C=i.rangeRef(u,D,{affinity:"inward"});h.splitNodes(u,{at:c,match:f,voids:s}),h.splitNodes(u,{at:l,match:f,voids:s}),D=C.unref(),n.at==null&&h.select(u,D)}var v=Array.from(i.nodes(u,{at:D,match:u.isInline(r)?E=>w.isElement(E)&&i.isBlock(u,E):E=>i.isEditor(E),mode:"lowest",voids:s})),g=function(){var d=B.isRange(D)?B.intersection(D,i.range(u,F)):D;if(!d)return 0;var b=Array.from(i.nodes(u,{at:d,match:f,mode:t,voids:s}));if(b.length>0){var[x]=b,y=b[b.length-1],[,N]=x,[,S]=y;if(N.length===0&&S.length===0)return 0;var P=o.equals(N,S)?o.parent(N):o.common(N,S),z=i.range(u,N,S),T=i.node(u,P),[j]=T,I=P.length+1,q=o.next(S.slice(0,I)),W=me(me({},r),{},{children:[]});h.insertNodes(u,W,{at:q,voids:s}),h.moveNodes(u,{at:z,match:V=>w.isAncestor(j)&&j.children.includes(V),to:q.concat(0),voids:s})}},A;for(var[,F]of v)A=g()}})},Zn=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Br(e,...n)},addMark:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Fr(e,...n)},deleteBackward:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return br(e,...n)},deleteForward:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return wr(e,...n)},deleteFragment:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Or(e,...n)},getFragment:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Ar(e,...n)},insertBreak:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return zr(e,...n)},insertSoftBreak:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Lr(e,...n)},insertFragment:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return On(e,...n)},insertNode:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return qr(e,...n)},insertText:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Vr(e,...n)},normalizeNode:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return mr(e,...n)},removeMark:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return mn(e,...n)},getDirtyPaths:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return gr(e,...n)},shouldNormalize:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return hr(e,...n)},above:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Er(e,...n)},after:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return pr(e,...n)},before:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return dr(e,...n)},collapse:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return yn(e,...n)},delete:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return wn(e,...n)},deselect:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Pn(e,...n)},edges:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return yr(e,...n)},elementReadOnly:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Pr(e,...n)},end:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return xr(e,...n)},first:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return jr(e,...n)},fragment:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Nr(e,...n)},getMarks:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return _r(e,...n)},hasBlocks:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return $r(e,...n)},hasInlines:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Sr(e,...n)},hasPath:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Tr(e,...n)},hasTexts:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Ir(e,...n)},insertNodes:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return $n(e,...n)},isBlock:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Wr(e,...n)},isEdge:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Kr(e,...n)},isEmpty:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Hr(e,...n)},isEnd:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Jr(e,...n)},isNormalizing:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Zr(e,...n)},isStart:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Ur(e,...n)},last:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Gr(e,...n)},leaf:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Yr(e,...n)},levels:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Xr(e,...n)},liftNodes:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Sn(e,...n)},mergeNodes:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return zn(e,...n)},move:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return xn(e,...n)},moveNodes:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return qn(e,...n)},next:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return un(e,...n)},node:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return en(e,...n)},nodes:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return rn(e,...n)},normalize:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return nn(e,...n)},parent:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return tn(e,...n)},path:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Dn(e,...n)},pathRef:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return an(e,...n)},pathRefs:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return sn(e,...n)},point:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return ln(e,...n)},pointRef:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return fn(e,...n)},pointRefs:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return on(e,...n)},positions:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return cn(e,...n)},previous:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Cn(e,...n)},range:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return gn(e,...n)},rangeRef:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return vn(e,...n)},rangeRefs:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Bn(e,...n)},removeNodes:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Ln(e,...n)},select:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return jn(e,...n)},setNodes:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Mn(e,...n)},setNormalizing:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return hn(e,...n)},setPoint:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Nn(e,...n)},setSelection:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Rn(e,...n)},splitNodes:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Wn(e,...n)},start:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return En(e,...n)},string:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Fn(e,...n)},unhangRange:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return pn(e,...n)},unsetNodes:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Kn(e,...n)},unwrapNodes:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Hn(e,...n)},void:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Rr(e,...n)},withoutNormalizing:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return dn(e,...n)},wrapNodes:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return Jn(e,...n)},shouldMergeNodesRemovePrevNode:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return bn(e,...n)}};return e}}}]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[3883],{86036:function(d,o,a){"use strict";var i=a(67771),E=a(24429),p=a(40319),w=a(93192);d.exports=function(I){var b=p(arguments),y=I.length-(arguments.length-1);return i(b,1+(y>0?y:0),!0)},E?E(d.exports,"apply",{value:w}):d.exports.apply=w},52801:function(d,o,a){"use strict";var i=a(2944),E=a(40319),p=E([i("%String.prototype.indexOf%")]);d.exports=function(v,I){var b=i(v,!!I);return typeof b=="function"&&p(v,".prototype.")>-1?E([b]):b}},80753:function(d){"use strict";var o=Object.defineProperty||!1;if(o)try{o({},"a",{value:1})}catch{o=!1}d.exports=o},2944:function(d,o,a){"use strict";var i,E=a(88681),p=a(81648),w=a(53981),v=a(24726),I=a(26712),b=a(33464),y=a(14453),l=a(43915),U=a(59738),F=a(76329),g=a(52264),M=a(55730),z=a(20707),K=a(63862),C=a(29550),j=Function,h=function(u){try{return j('"use strict"; return ('+u+").constructor;")()}catch{}},B=a(36307),k=a(80753),J=function(){throw new y},q=B?function(){try{return arguments.callee,J}catch{try{return B(arguments,"callee").get}catch{return J}}}():J,L=a(50762)(),O=a(81618),Q=a(68899),H=a(10443),X=a(1768),N=a(68928),W={},_=typeof Uint8Array>"u"||!O?i:O(Uint8Array),G={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?i:ArrayBuffer,"%ArrayIteratorPrototype%":L&&O?O([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":W,"%AsyncGenerator%":W,"%AsyncGeneratorFunction%":W,"%AsyncIteratorPrototype%":W,"%Atomics%":typeof Atomics>"u"?i:Atomics,"%BigInt%":typeof BigInt>"u"?i:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?i:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":p,"%eval%":eval,"%EvalError%":w,"%Float16Array%":typeof Float16Array>"u"?i:Float16Array,"%Float32Array%":typeof Float32Array>"u"?i:Float32Array,"%Float64Array%":typeof Float64Array>"u"?i:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?i:FinalizationRegistry,"%Function%":j,"%GeneratorFunction%":W,"%Int8Array%":typeof Int8Array>"u"?i:Int8Array,"%Int16Array%":typeof Int16Array>"u"?i:Int16Array,"%Int32Array%":typeof Int32Array>"u"?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":L&&O?O(O([][Symbol.iterator]())):i,"%JSON%":typeof JSON=="object"?JSON:i,"%Map%":typeof Map>"u"?i:Map,"%MapIteratorPrototype%":typeof Map>"u"||!L||!O?i:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":E,"%Object.getOwnPropertyDescriptor%":B,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?i:Promise,"%Proxy%":typeof Proxy>"u"?i:Proxy,"%RangeError%":v,"%ReferenceError%":I,"%Reflect%":typeof Reflect>"u"?i:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?i:Set,"%SetIteratorPrototype%":typeof Set>"u"||!L||!O?i:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":L&&O?O(""[Symbol.iterator]()):i,"%Symbol%":L?Symbol:i,"%SyntaxError%":b,"%ThrowTypeError%":q,"%TypedArray%":_,"%TypeError%":y,"%Uint8Array%":typeof Uint8Array>"u"?i:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?i:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?i:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?i:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?i:WeakMap,"%WeakRef%":typeof WeakRef>"u"?i:WeakRef,"%WeakSet%":typeof WeakSet>"u"?i:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":X,"%Object.defineProperty%":k,"%Object.getPrototypeOf%":Q,"%Math.abs%":U,"%Math.floor%":F,"%Math.max%":g,"%Math.min%":M,"%Math.pow%":z,"%Math.round%":K,"%Math.sign%":C,"%Reflect.getPrototypeOf%":H};if(O)try{null.error}catch(u){var Z=O(O(u));G["%Error.prototype%"]=Z}var ar=function u(f){var m;if(f==="%AsyncFunction%")m=h("async function () {}");else if(f==="%GeneratorFunction%")m=h("function* () {}");else if(f==="%AsyncGeneratorFunction%")m=h("async function* () {}");else if(f==="%AsyncGenerator%"){var P=u("%AsyncGeneratorFunction%");P&&(m=P.prototype)}else if(f==="%AsyncIteratorPrototype%"){var T=u("%AsyncGenerator%");T&&O&&(m=O(T.prototype))}return G[f]=m,m},rr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Y=a(58612),R=a(78001),er=Y.call(N,Array.prototype.concat),tr=Y.call(X,Array.prototype.splice),r=Y.call(N,String.prototype.replace),t=Y.call(N,String.prototype.slice),n=Y.call(N,RegExp.prototype.exec),s=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,S=function(f){var m=t(f,0,1),P=t(f,-1);if(m==="%"&&P!=="%")throw new b("invalid intrinsic syntax, expected closing `%`");if(P==="%"&&m!=="%")throw new b("invalid intrinsic syntax, expected opening `%`");var T=[];return r(f,s,function(D,V,$,nr){T[T.length]=$?r(nr,A,"$1"):V||D}),T},c=function(f,m){var P=f,T;if(R(rr,P)&&(T=rr[P],P="%"+T[0]+"%"),R(G,P)){var D=G[P];if(D===W&&(D=ar(P)),typeof D>"u"&&!m)throw new y("intrinsic "+f+" exists, but is not available. Please file an issue!");return{alias:T,name:P,value:D}}throw new b("intrinsic "+f+" does not exist!")};d.exports=function(f,m){if(typeof f!="string"||f.length===0)throw new y("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof m!="boolean")throw new y('"allowMissing" argument must be a boolean');if(n(/^%?[^%]*%?$/,f)===null)throw new b("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var P=S(f),T=P.length>0?P[0]:"",D=c("%"+T+"%",m),V=D.name,$=D.value,nr=!1,e=D.alias;e&&(T=e[0],tr(P,er([0,1],e)));for(var or=1,ir=!0;or<P.length;or+=1){var x=P[or],fr=t(x,0,1),yr=t(x,-1);if((fr==='"'||fr==="'"||fr==="`"||yr==='"'||yr==="'"||yr==="`")&&fr!==yr)throw new b("property names with quotes must have matching quotes");if((x==="constructor"||!ir)&&(nr=!0),T+="."+x,V="%"+T+"%",R(G,V))$=G[V];else if($!=null){if(!(x in $)){if(!m)throw new y("base intrinsic for "+f+" exists, but the property is not available.");return}if(B&&or+1>=P.length){var ur=B($,x);ir=!!ur,ir&&"get"in ur&&!("originalValue"in ur.get)?$=ur.get:$=$[x]}else ir=R($,x),$=$[x];ir&&!nr&&(G[V]=$)}}return $}},50762:function(d,o,a){"use strict";var i=typeof Symbol<"u"&&Symbol,E=a(37802);d.exports=function(){return typeof i!="function"||typeof Symbol!="function"||typeof i("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:E()}},37802:function(d){"use strict";d.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},i=Symbol("test"),E=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(E)!=="[object Symbol]")return!1;var p=42;a[i]=p;for(var w in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var v=Object.getOwnPropertySymbols(a);if(v.length!==1||v[0]!==i||!Object.prototype.propertyIsEnumerable.call(a,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var I=Object.getOwnPropertyDescriptor(a,i);if(I.value!==p||I.enumerable!==!0)return!1}return!0}},88681:function(d){"use strict";d.exports=Object},80690:function(d,o,a){"use strict";var i=a(95320),E=Object.prototype.toString,p=Object.prototype.hasOwnProperty,w=function(l,U,F){for(var g=0,M=l.length;g<M;g++)p.call(l,g)&&(F==null?U(l[g],g,l):U.call(F,l[g],g,l))},v=function(l,U,F){for(var g=0,M=l.length;g<M;g++)F==null?U(l.charAt(g),g,l):U.call(F,l.charAt(g),g,l)},I=function(l,U,F){for(var g in l)p.call(l,g)&&(F==null?U(l[g],g,l):U.call(F,l[g],g,l))};function b(y){return E.call(y)==="[object Array]"}d.exports=function(l,U,F){if(!i(U))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=F),b(l)?w(l,U,g):typeof l=="string"?v(l,U,g):I(l,U,g)}},19526:function(d){"use strict";d.exports=Object.getOwnPropertyDescriptor},36307:function(d,o,a){"use strict";var i=a(19526);if(i)try{i([],"length")}catch{i=null}d.exports=i},3391:function(d,o,a){"use strict";var i=a(55419);d.exports=function(){return i()&&!!Symbol.toStringTag}},80287:function(d,o,a){"use strict";var i=a(3391)(),E=a(52801),p=E("Object.prototype.toString"),w=function(y){return i&&y&&typeof y=="object"&&Symbol.toStringTag in y?!1:p(y)==="[object Arguments]"},v=function(y){return w(y)?!0:y!==null&&typeof y=="object"&&"length"in y&&typeof y.length=="number"&&y.length>=0&&p(y)!=="[object Array]"&&"callee"in y&&p(y.callee)==="[object Function]"},I=function(){return w(arguments)}();w.isLegacyArguments=v,d.exports=I?w:v},52020:function(d,o,a){"use strict";var i=a(23395);d.exports=function(p){return!!i(p)}},23395:function(d,o,a){"use strict";var i=a(80690),E=a(63083),p=a(86036),w=a(52801),v=a(36307),I=a(81618),b=w("Object.prototype.toString"),y=a(3391)(),l=typeof globalThis>"u"?a.g:globalThis,U=E(),F=w("String.prototype.slice"),g=w("Array.prototype.indexOf",!0)||function(j,h){for(var B=0;B<j.length;B+=1)if(j[B]===h)return B;return-1},M={__proto__:null};y&&v&&I?i(U,function(C){var j=new l[C];if(Symbol.toStringTag in j&&I){var h=I(j),B=v(h,Symbol.toStringTag);if(!B&&h){var k=I(h);B=v(k,Symbol.toStringTag)}M["$"+C]=p(B.get)}}):i(U,function(C){var j=new l[C],h=j.slice||j.set;h&&(M["$"+C]=p(h))});var z=function(j){var h=!1;return i(M,function(B,k){if(!h)try{"$"+B(j)===k&&(h=F(k,1))}catch{}}),h},K=function(j){var h=!1;return i(M,function(B,k){if(!h)try{B(j),h=F(k,1)}catch{}}),h};d.exports=function(j){if(!j||typeof j!="object")return!1;if(!y){var h=F(b(j),8,-1);return g(U,h)>-1?h:h!=="Object"?!1:K(j)}return v?z(j):null}},20384:function(d){d.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}},55955:function(d,o,a){"use strict";var i=a(80287),E=a(48662),p=a(23395),w=a(52020);function v(e){return e.call.bind(e)}var I=typeof BigInt<"u",b=typeof Symbol<"u",y=v(Object.prototype.toString),l=v(Number.prototype.valueOf),U=v(String.prototype.valueOf),F=v(Boolean.prototype.valueOf);if(I)var g=v(BigInt.prototype.valueOf);if(b)var M=v(Symbol.prototype.valueOf);function z(e,or){if(typeof e!="object")return!1;try{return or(e),!0}catch{return!1}}o.isArgumentsObject=i,o.isGeneratorFunction=E,o.isTypedArray=w;function K(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}o.isPromise=K;function C(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):w(e)||r(e)}o.isArrayBufferView=C;function j(e){return p(e)==="Uint8Array"}o.isUint8Array=j;function h(e){return p(e)==="Uint8ClampedArray"}o.isUint8ClampedArray=h;function B(e){return p(e)==="Uint16Array"}o.isUint16Array=B;function k(e){return p(e)==="Uint32Array"}o.isUint32Array=k;function J(e){return p(e)==="Int8Array"}o.isInt8Array=J;function q(e){return p(e)==="Int16Array"}o.isInt16Array=q;function L(e){return p(e)==="Int32Array"}o.isInt32Array=L;function O(e){return p(e)==="Float32Array"}o.isFloat32Array=O;function Q(e){return p(e)==="Float64Array"}o.isFloat64Array=Q;function H(e){return p(e)==="BigInt64Array"}o.isBigInt64Array=H;function X(e){return p(e)==="BigUint64Array"}o.isBigUint64Array=X;function N(e){return y(e)==="[object Map]"}N.working=typeof Map<"u"&&N(new Map);function W(e){return typeof Map>"u"?!1:N.working?N(e):e instanceof Map}o.isMap=W;function _(e){return y(e)==="[object Set]"}_.working=typeof Set<"u"&&_(new Set);function G(e){return typeof Set>"u"?!1:_.working?_(e):e instanceof Set}o.isSet=G;function Z(e){return y(e)==="[object WeakMap]"}Z.working=typeof WeakMap<"u"&&Z(new WeakMap);function ar(e){return typeof WeakMap>"u"?!1:Z.working?Z(e):e instanceof WeakMap}o.isWeakMap=ar;function rr(e){return y(e)==="[object WeakSet]"}rr.working=typeof WeakSet<"u"&&rr(new WeakSet);function Y(e){return rr(e)}o.isWeakSet=Y;function R(e){return y(e)==="[object ArrayBuffer]"}R.working=typeof ArrayBuffer<"u"&&R(new ArrayBuffer);function er(e){return typeof ArrayBuffer>"u"?!1:R.working?R(e):e instanceof ArrayBuffer}o.isArrayBuffer=er;function tr(e){return y(e)==="[object DataView]"}tr.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&tr(new DataView(new ArrayBuffer(1),0,1));function r(e){return typeof DataView>"u"?!1:tr.working?tr(e):e instanceof DataView}o.isDataView=r;var t=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function n(e){return y(e)==="[object SharedArrayBuffer]"}function s(e){return typeof t>"u"?!1:(typeof n.working>"u"&&(n.working=n(new t)),n.working?n(e):e instanceof t)}o.isSharedArrayBuffer=s;function A(e){return y(e)==="[object AsyncFunction]"}o.isAsyncFunction=A;function S(e){return y(e)==="[object Map Iterator]"}o.isMapIterator=S;function c(e){return y(e)==="[object Set Iterator]"}o.isSetIterator=c;function u(e){return y(e)==="[object Generator]"}o.isGeneratorObject=u;function f(e){return y(e)==="[object WebAssembly.Module]"}o.isWebAssemblyCompiledModule=f;function m(e){return z(e,l)}o.isNumberObject=m;function P(e){return z(e,U)}o.isStringObject=P;function T(e){return z(e,F)}o.isBooleanObject=T;function D(e){return I&&z(e,g)}o.isBigIntObject=D;function V(e){return b&&z(e,M)}o.isSymbolObject=V;function $(e){return m(e)||P(e)||T(e)||D(e)||V(e)}o.isBoxedPrimitive=$;function nr(e){return typeof Uint8Array<"u"&&(er(e)||s(e))}o.isAnyArrayBuffer=nr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(o,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},89539:function(d,o,a){var i=a(34155),E=Object.getOwnPropertyDescriptors||function(t){for(var n=Object.keys(t),s={},A=0;A<n.length;A++)s[n[A]]=Object.getOwnPropertyDescriptor(t,n[A]);return s},p=/%[sdj%]/g;o.format=function(r){if(!q(r)){for(var t=[],n=0;n<arguments.length;n++)t.push(b(arguments[n]));return t.join(" ")}for(var n=1,s=arguments,A=s.length,S=String(r).replace(p,function(u){if(u==="%%")return"%";if(n>=A)return u;switch(u){case"%s":return String(s[n++]);case"%d":return Number(s[n++]);case"%j":try{return JSON.stringify(s[n++])}catch{return"[Circular]"}default:return u}}),c=s[n];n<A;c=s[++n])B(c)||!H(c)?S+=" "+c:S+=" "+b(c);return S},o.deprecate=function(r,t){if(typeof i<"u"&&i.noDeprecation===!0)return r;if(typeof i>"u")return function(){return o.deprecate(r,t).apply(this,arguments)};var n=!1;function s(){if(!n){if(i.throwDeprecation)throw new Error(t);i.traceDeprecation?console.trace(t):console.error(t),n=!0}return r.apply(this,arguments)}return s};var w={},v=/^$/;if({NODE_ENV:"production",PUBLIC_PATH:"auto"}.NODE_DEBUG){var I={NODE_ENV:"production",PUBLIC_PATH:"auto"}.NODE_DEBUG;I=I.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),v=new RegExp("^"+I+"$","i")}o.debuglog=function(r){if(r=r.toUpperCase(),!w[r])if(v.test(r)){var t=i.pid;w[r]=function(){var n=o.format.apply(o,arguments);console.error("%s %d: %s",r,t,n)}}else w[r]=function(){};return w[r]};function b(r,t){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),h(t)?n.showHidden=t:t&&o._extend(n,t),O(n.showHidden)&&(n.showHidden=!1),O(n.depth)&&(n.depth=2),O(n.colors)&&(n.colors=!1),O(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=y),F(n,r,n.depth)}o.inspect=b,b.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},b.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function y(r,t){var n=b.styles[t];return n?"\x1B["+b.colors[n][0]+"m"+r+"\x1B["+b.colors[n][1]+"m":r}function l(r,t){return r}function U(r){var t={};return r.forEach(function(n,s){t[n]=!0}),t}function F(r,t,n){if(r.customInspect&&t&&W(t.inspect)&&t.inspect!==o.inspect&&!(t.constructor&&t.constructor.prototype===t)){var s=t.inspect(n,r);return q(s)||(s=F(r,s,n)),s}var A=g(r,t);if(A)return A;var S=Object.keys(t),c=U(S);if(r.showHidden&&(S=Object.getOwnPropertyNames(t)),N(t)&&(S.indexOf("message")>=0||S.indexOf("description")>=0))return M(t);if(S.length===0){if(W(t)){var u=t.name?": "+t.name:"";return r.stylize("[Function"+u+"]","special")}if(Q(t))return r.stylize(RegExp.prototype.toString.call(t),"regexp");if(X(t))return r.stylize(Date.prototype.toString.call(t),"date");if(N(t))return M(t)}var f="",m=!1,P=["{","}"];if(j(t)&&(m=!0,P=["[","]"]),W(t)){var T=t.name?": "+t.name:"";f=" [Function"+T+"]"}if(Q(t)&&(f=" "+RegExp.prototype.toString.call(t)),X(t)&&(f=" "+Date.prototype.toUTCString.call(t)),N(t)&&(f=" "+M(t)),S.length===0&&(!m||t.length==0))return P[0]+f+P[1];if(n<0)return Q(t)?r.stylize(RegExp.prototype.toString.call(t),"regexp"):r.stylize("[Object]","special");r.seen.push(t);var D;return m?D=z(r,t,n,c,S):D=S.map(function(V){return K(r,t,n,c,V,m)}),r.seen.pop(),C(D,f,P)}function g(r,t){if(O(t))return r.stylize("undefined","undefined");if(q(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(n,"string")}if(J(t))return r.stylize(""+t,"number");if(h(t))return r.stylize(""+t,"boolean");if(B(t))return r.stylize("null","null")}function M(r){return"["+Error.prototype.toString.call(r)+"]"}function z(r,t,n,s,A){for(var S=[],c=0,u=t.length;c<u;++c)Y(t,String(c))?S.push(K(r,t,n,s,String(c),!0)):S.push("");return A.forEach(function(f){f.match(/^\d+$/)||S.push(K(r,t,n,s,f,!0))}),S}function K(r,t,n,s,A,S){var c,u,f;if(f=Object.getOwnPropertyDescriptor(t,A)||{value:t[A]},f.get?f.set?u=r.stylize("[Getter/Setter]","special"):u=r.stylize("[Getter]","special"):f.set&&(u=r.stylize("[Setter]","special")),Y(s,A)||(c="["+A+"]"),u||(r.seen.indexOf(f.value)<0?(B(n)?u=F(r,f.value,null):u=F(r,f.value,n-1),u.indexOf(`
|
|
2
|
+
`)>-1&&(S?u=u.split(`
|
|
3
|
+
`).map(function(m){return" "+m}).join(`
|
|
4
|
+
`).slice(2):u=`
|
|
5
|
+
`+u.split(`
|
|
6
|
+
`).map(function(m){return" "+m}).join(`
|
|
7
|
+
`))):u=r.stylize("[Circular]","special")),O(c)){if(S&&A.match(/^\d+$/))return u;c=JSON.stringify(""+A),c.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.slice(1,-1),c=r.stylize(c,"name")):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=r.stylize(c,"string"))}return c+": "+u}function C(r,t,n){var s=0,A=r.reduce(function(S,c){return s++,c.indexOf(`
|
|
8
|
+
`)>=0&&s++,S+c.replace(/\u001b\[\d\d?m/g,"").length+1},0);return A>60?n[0]+(t===""?"":t+`
|
|
9
|
+
`)+" "+r.join(`,
|
|
10
|
+
`)+" "+n[1]:n[0]+t+" "+r.join(", ")+" "+n[1]}o.types=a(55955);function j(r){return Array.isArray(r)}o.isArray=j;function h(r){return typeof r=="boolean"}o.isBoolean=h;function B(r){return r===null}o.isNull=B;function k(r){return r==null}o.isNullOrUndefined=k;function J(r){return typeof r=="number"}o.isNumber=J;function q(r){return typeof r=="string"}o.isString=q;function L(r){return typeof r=="symbol"}o.isSymbol=L;function O(r){return r===void 0}o.isUndefined=O;function Q(r){return H(r)&&G(r)==="[object RegExp]"}o.isRegExp=Q,o.types.isRegExp=Q;function H(r){return typeof r=="object"&&r!==null}o.isObject=H;function X(r){return H(r)&&G(r)==="[object Date]"}o.isDate=X,o.types.isDate=X;function N(r){return H(r)&&(G(r)==="[object Error]"||r instanceof Error)}o.isError=N,o.types.isNativeError=N;function W(r){return typeof r=="function"}o.isFunction=W;function _(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}o.isPrimitive=_,o.isBuffer=a(20384);function G(r){return Object.prototype.toString.call(r)}function Z(r){return r<10?"0"+r.toString(10):r.toString(10)}var ar=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function rr(){var r=new Date,t=[Z(r.getHours()),Z(r.getMinutes()),Z(r.getSeconds())].join(":");return[r.getDate(),ar[r.getMonth()],t].join(" ")}o.log=function(){console.log("%s - %s",rr(),o.format.apply(o,arguments))},o.inherits=a(35717),o._extend=function(r,t){if(!t||!H(t))return r;for(var n=Object.keys(t),s=n.length;s--;)r[n[s]]=t[n[s]];return r};function Y(r,t){return Object.prototype.hasOwnProperty.call(r,t)}var R=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;o.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(R&&t[R]){var n=t[R];if(typeof n!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,R,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var s,A,S=new Promise(function(f,m){s=f,A=m}),c=[],u=0;u<arguments.length;u++)c.push(arguments[u]);c.push(function(f,m){f?A(f):s(m)});try{t.apply(this,c)}catch(f){A(f)}return S}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),R&&Object.defineProperty(n,R,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,E(t))},o.promisify.custom=R;function er(r,t){if(!r){var n=new Error("Promise was rejected with a falsy value");n.reason=r,r=n}return t(r)}function tr(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var n=[],s=0;s<arguments.length;s++)n.push(arguments[s]);var A=n.pop();if(typeof A!="function")throw new TypeError("The last argument must be of type Function");var S=this,c=function(){return A.apply(S,arguments)};r.apply(this,n).then(function(u){i.nextTick(c.bind(null,null,u))},function(u){i.nextTick(er.bind(null,u,c))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(r)),Object.defineProperties(t,E(r)),t}o.callbackify=tr}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type="range"]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--colorBgScrollTrack)}::-webkit-scrollbar-thumb{background:var(--colorBgScrollBar);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)}::-webkit-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)}.rc-virtual-list-scrollbar-thumb{background:var(--colorBgScrollBar)!important}.rc-virtual-list-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)!important}.rc-virtual-list-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)!important}.ant-menu-submenu-popup{-webkit-backdrop-filter:none;backdrop-filter:none}.ant-menu-item.ant-menu-item-only-child.ant-pro-base-menu-horizontal-menu-item:active{background-color:var(--colorBgMenuItemSelected)!important}.nb-hidden{display:none}.nb-dialog-overflow-hidden .ant-modal-content{overflow:hidden}.ant-layout-sider .ant-menu{background:var(--colorBgSider)!important}.ant-layout-sider .ant-menu .ant-menu-item{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-item:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-item:active{background-color:var(--colorBgSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-item.ant-menu-item-selected{background-color:var(--colorBgSiderMenuActive)!important;color:var(--colorTextSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title{color:var(--colorTextSiderMenuActive)!important;color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected.ant-menu-submenu-selected>.ant-menu-submenu-title{color:var(--colorTextSiderMenuActive)!important}@keyframes closeWindow{0%{opacity:1}to{opacity:0}}.ril__outer{background-color:#000000d9;outline:none;top:0;left:0;right:0;bottom:0;z-index:1000;width:100%;height:100%;-ms-content-zooming:none;-ms-user-select:none;-ms-touch-select:none;touch-action:none}.ril__outerClosing{opacity:0}.ril__inner{position:absolute;top:0;left:0;right:0;bottom:0}.ril__image,.ril__imagePrev,.ril__imageNext{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;max-width:none;-ms-content-zooming:none;-ms-user-select:none;-ms-touch-select:none;touch-action:none}.ril__imageDiscourager{background-repeat:no-repeat;background-position:center;background-size:contain}.ril__navButtons{border:none;position:absolute;top:0;bottom:0;width:20px;height:34px;padding:40px 30px;margin:auto;cursor:pointer;opacity:.7}.ril__navButtons:hover{opacity:1}.ril__navButtons:active{opacity:.7}.ril__navButtonPrev{left:0;background:rgba(0,0,0,.2) url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==) no-repeat center}.ril__navButtonNext{right:0;background:rgba(0,0,0,.2) url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+) no-repeat center}.ril__downloadBlocker{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);background-size:cover}.ril__caption,.ril__toolbar{background-color:#00000080;position:absolute;left:0;right:0;display:flex;justify-content:space-between}.ril__caption{bottom:0;max-height:150px;overflow:auto}.ril__captionContent{padding:10px 20px;color:#fff}.ril__toolbar{top:0;height:50px}.ril__toolbarSide{height:50px;margin:0}.ril__toolbarLeftSide{padding-left:20px;padding-right:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.ril__toolbarRightSide{padding-left:0;padding-right:20px;flex:0 0 auto}.ril__toolbarItem{display:inline-block;line-height:50px;padding:0;color:#fff;font-size:120%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ril__toolbarItemChild{vertical-align:middle}.ril__builtinButton{width:40px;height:35px;cursor:pointer;border:none;opacity:.7}.ril__builtinButton:hover{opacity:1}.ril__builtinButton:active{outline:none}.ril__builtinButtonDisabled{cursor:default;opacity:.5}.ril__builtinButtonDisabled:hover{opacity:.5}.ril__closeButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcuNSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=) no-repeat center}.ril__zoomInButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+) no-repeat center}.ril__zoomOutButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=) no-repeat center}.ril__outerAnimating{animation-name:closeWindow}@keyframes pointFade{0%,19.999%,to{opacity:0}20%{opacity:1}}.ril__loadingCircle{width:60px;height:60px;position:relative}.ril__loadingCirclePoint{width:100%;height:100%;position:absolute;left:0;top:0}.ril__loadingCirclePoint:before{content:"";display:block;margin:0 auto;width:11%;height:30%;background-color:#fff;border-radius:30%;animation:pointFade .8s infinite ease-in-out both}.ril__loadingCirclePoint:nth-of-type(1){transform:rotate(0)}.ril__loadingCirclePoint:nth-of-type(1):before,.ril__loadingCirclePoint:nth-of-type(7):before{animation-delay:-.8s}.ril__loadingCirclePoint:nth-of-type(2){transform:rotate(30deg)}.ril__loadingCirclePoint:nth-of-type(8){transform:rotate(210deg)}.ril__loadingCirclePoint:nth-of-type(2):before,.ril__loadingCirclePoint:nth-of-type(8):before{animation-delay:-666ms}.ril__loadingCirclePoint:nth-of-type(3){transform:rotate(60deg)}.ril__loadingCirclePoint:nth-of-type(9){transform:rotate(240deg)}.ril__loadingCirclePoint:nth-of-type(3):before,.ril__loadingCirclePoint:nth-of-type(9):before{animation-delay:-533ms}.ril__loadingCirclePoint:nth-of-type(4){transform:rotate(90deg)}.ril__loadingCirclePoint:nth-of-type(10){transform:rotate(270deg)}.ril__loadingCirclePoint:nth-of-type(4):before,.ril__loadingCirclePoint:nth-of-type(10):before{animation-delay:-.4s}.ril__loadingCirclePoint:nth-of-type(5){transform:rotate(120deg)}.ril__loadingCirclePoint:nth-of-type(11){transform:rotate(300deg)}.ril__loadingCirclePoint:nth-of-type(5):before,.ril__loadingCirclePoint:nth-of-type(11):before{animation-delay:-266ms}.ril__loadingCirclePoint:nth-of-type(6){transform:rotate(150deg)}.ril__loadingCirclePoint:nth-of-type(12){transform:rotate(330deg)}.ril__loadingCirclePoint:nth-of-type(6):before,.ril__loadingCirclePoint:nth-of-type(12):before{animation-delay:-133ms}.ril__loadingCirclePoint:nth-of-type(7){transform:rotate(180deg)}.ril__loadingCirclePoint:nth-of-type(13){transform:rotate(360deg)}.ril__loadingCirclePoint:nth-of-type(7):before,.ril__loadingCirclePoint:nth-of-type(13):before{animation-delay:0ms}.ril__loadingContainer{position:absolute;top:0;right:0;bottom:0;left:0}.ril__imagePrev .ril__loadingContainer,.ril__imageNext .ril__loadingContainer{display:none}.ril__errorContainer{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff}.ril__imagePrev .ril__errorContainer,.ril__imageNext .ril__errorContainer{display:none}.ril__loadingContainer__icon{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.react-js-cron{display:flex;align-items:flex-start;flex-wrap:wrap}.react-js-cron>div,.react-js-cron-field{display:flex;align-items:center}.react-js-cron-field{margin-bottom:10px}.react-js-cron-field>span{margin-left:5px}div.react-js-cron-select{margin-left:5px}.react-js-cron-select.react-js-cron-select-no-prefix{margin-left:0}div.react-js-cron-error .react-js-cron-select .ant-select-selector{border-color:#ff4d4f;background:#fff6f6}div.react-js-cron-custom-select{min-width:70px;z-index:1}div.react-js-cron-error div.react-js-cron-custom-select{background:#fff6f6}div.react-js-cron-select.react-js-cron-custom-select.ant-select div.ant-select-selector{padding-left:11px;padding-right:30px}.react-js-cron-read-only div.react-js-cron-select.react-js-cron-custom-select.ant-select div.ant-select-selector{padding-right:11px}div.react-js-cron-custom-select .ant-select-selection-search{width:0!important;margin:0!important}div.react-js-cron-custom-select .ant-select-selection-placeholder{position:static;top:50%;right:auto;left:auto;transform:none;transition:none;opacity:1;color:inherit}.react-js-cron-week-days-placeholder .react-js-cron-custom-select .ant-select-selection-placeholder,.react-js-cron-month-days-placeholder .react-js-cron-custom-select .ant-select-selection-placeholder{opacity:.4}.react-js-cron-custom-select-dropdown{min-width:0!important;width:170px!important}.react-js-cron-custom-select-dropdown .rc-virtual-list{max-height:none!important}.react-js-cron-custom-select-dropdown-grid .rc-virtual-list-holder-inner{display:grid!important;grid-template-columns:repeat(4,1fr)}.react-js-cron-custom-select-dropdown-grid .rc-virtual-list-holder-inner .ant-select-item-option-content{text-align:center}.react-js-cron-custom-select-dropdown-hours-twelve-hour-clock{width:260px!important}.react-js-cron-custom-select-dropdown-minutes-large{width:300px!important}.react-js-cron-custom-select-dropdown-minutes-large .rc-virtual-list-holder-inner{grid-template-columns:repeat(7,1fr)}.react-js-cron-custom-select-dropdown-minutes-medium{width:215px!important}.react-js-cron-custom-select-dropdown-minutes-medium .rc-virtual-list-holder-inner{grid-template-columns:repeat(5,1fr)}.react-js-cron-period>span:first-child{margin-left:0!important}.react-js-cron-period .react-js-cron-select.ant-select-single.ant-select-open .ant-select-selection-item{opacity:1}.react-js-cron-select-dropdown-period{min-width:0!important;width:auto!important}.react-js-cron-clear-button{margin-left:10px;margin-bottom:10px}.react-js-cron-disabled .react-js-cron-select.ant-select-disabled{background:#f5f5f5}div.react-js-cron-select.react-js-cron-custom-select.ant-select div.ant-select-selector>.ant-select-selection-overflow{align-items:center;flex:initial}:root{--adm-radius-s: 4px;--adm-radius-m: 8px;--adm-radius-l: 12px;--adm-font-size-1: 9px;--adm-font-size-2: 10px;--adm-font-size-3: 11px;--adm-font-size-4: 12px;--adm-font-size-5: 13px;--adm-font-size-6: 14px;--adm-font-size-7: 15px;--adm-font-size-8: 16px;--adm-font-size-9: 17px;--adm-font-size-10: 18px;--adm-color-primary: #1677ff;--adm-color-success: #00b578;--adm-color-warning: #ff8f1f;--adm-color-danger: #ff3141;--adm-color-yellow: #ff9f18;--adm-color-orange: #ff6430;--adm-color-wathet: #e7f1ff;--adm-color-text: #333333;--adm-color-text-secondary: #666666;--adm-color-weak: #999999;--adm-color-light: #cccccc;--adm-color-border: #eeeeee;--adm-color-background: #ffffff;--adm-color-highlight: var(--adm-color-danger);--adm-color-white: #ffffff;--adm-color-box: #f5f5f5;--adm-color-text-light-solid: var(--adm-color-white);--adm-color-text-dark-solid: #000000;--adm-color-fill-content: var(--adm-color-box);--adm-font-size-main: var(--adm-font-size-5);--adm-font-family: -apple-system, blinkmacsystemfont, "Helvetica Neue", helvetica, segoe ui, arial, roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--adm-border-color: var(--adm-color-border)}html[data-prefers-color-scheme=dark]{--adm-color-primary: #3086ff;--adm-color-success: #34b368;--adm-color-warning: #ffa930;--adm-color-danger: #ff4a58;--adm-color-yellow: #ffa930;--adm-color-orange: #e65a2b;--adm-color-wathet: #0d2543;--adm-color-text: #e6e6e6;--adm-color-text-secondary: #b3b3b3;--adm-color-weak: #808080;--adm-color-light: #4d4d4d;--adm-color-border: #2b2b2b;--adm-color-box: #0a0a0a;--adm-color-background: #1a1a1a;--adm-color-background-body: var(--adm-color-background);--adm-border-color: var(--adm-color-border)}:root{-webkit-tap-highlight-color:rgba(0,0,0,0)}html{background-color:var(--adm-color-background-body)}body{color:var(--adm-color-text);font-size:var(--adm-font-size-main);font-family:var(--adm-font-family)}a,button{cursor:pointer}a{color:var(--adm-color-primary);transition:opacity ease-in-out .2s}a:active{opacity:.8}.adm-plain-anchor{color:unset;transition:none}.adm-plain-anchor:active{opacity:unset}body.adm-overflow-hidden{overflow:hidden!important}div.adm-px-tester{--size: 1;height:calc(var(--size) / 2 * 2px);width:0;position:fixed;left:-100vw;top:-100vh;-webkit-user-select:none;user-select:none;pointer-events:none}.adm-popup{--z-index: var(--adm-popup-z-index, 1000);position:fixed;z-index:var(--z-index)}.adm-popup-body{position:fixed;background-color:var(--adm-color-background);z-index:calc(var(--z-index) + 10)}.adm-popup-body .adm-popup-close-icon{position:absolute;z-index:100}.adm-popup-body-position-bottom{width:100%;bottom:0;left:0}.adm-popup-body-position-bottom .adm-popup-close-icon{right:8px;top:8px}.adm-popup-body-position-top{width:100%;top:0;left:0}.adm-popup-body-position-top .adm-popup-close-icon{right:8px;bottom:8px}.adm-popup-body-position-left{height:100%;top:0;left:0}.adm-popup-body-position-left .adm-popup-close-icon{right:8px;top:8px}.adm-popup-body-position-right{height:100%;top:0;right:0}.adm-popup-body-position-right .adm-popup-close-icon{left:8px;top:8px}.adm-popup-close-icon{cursor:pointer;padding:4px;font-size:18px;line-height:1;color:var(--adm-color-weak)}.adm-mask{--z-index: var(--adm-mask-z-index, 1000);position:fixed;top:0;left:0;z-index:var(--z-index);display:block;width:100%;height:100%}.adm-mask-aria-button{position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;pointer-events:none}.adm-mask-content{z-index:1}.ant-btn.ant-btn-danger{text-shadow:none;box-shadow:none}.ant-formily-item-label{color:#000000d9;font-weight:600}.ant-table-pagination.ant-pagination{margin-bottom:0!important}.ant-formily-item{font-size:inherit!important}.ant-formily-item-bordered-none .ant-formily-item-feedback-layout-loose{margin-bottom:0!important}.ant-formily-item-control-content-component .ant-tag{white-space:pre-wrap}html body{--adm-font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}
|