PageSourceSearch

https://www.codedex.io/_next/static/chunks/4153-8d26a42888c15c00.js

js codedex.io collected 2026-10-03 20:11:24 UTC 48,720 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4153],{58354:function(r,a,i){"use strict";i.d(a,{do:function(){return C}});var s,c,d,u=[],f="ResizeObserver loop completed with undelivered notifications.",deliverResizeLoopError=function(){var r;"function"==typeof ErrorEvent?r=new ErrorEvent("error",{message:f}):((r=document.createEvent("Event")).initEvent("error",!1,!1),r.message=f),window.dispatchEvent(r)};(s=c||(c={})).BORDER_BOX="border-box",s.CONTENT_BOX="content-box",s.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var freeze=function(r){return Object.freeze(r)},ResizeObserverSize=function(r,a){this.inlineSize=r,this.blockSize=a,freeze(this)},h=function(){function DOMRectReadOnly(r,a,i,s){return this.x=r,this.y=a,this.width=i,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,freeze(this)}return DOMRectReadOnly.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},DOMRectReadOnly.fromRect=function(r){return new DOMRectReadOnly(r.x,r.y,r.width,r.height)},DOMRectReadOnly}(),isSVG=function(r){return r instanceof SVGElement&&"getBBox"in r},isHidden=function(r){if(isSVG(r)){var a=r.getBBox(),i=a.width,s=a.height;return!i&&!s}var c=r.offsetWidth,d=r.offsetHeight;return!(c||d||r.getClientRects().length)},isElement=function(r){if(r instanceof Element)return!0;var a,i=null===(a=null==r?void 0:r.ownerDocument)||void 0===a?void 0:a.defaultView;return!!(i&&r instanceof i.Element)},isReplacedElement=function(r){switch(r.tagName){case"INPUT":if("image"!==r.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},p="undefined"!=typeof window?window:{},g=new WeakMap,v=/auto|scroll/,m=/^tb|vertical/,b=/msie|trident/i.test(p.navigator&&p.navigator.userAgent),parseDimension=function(r){return parseFloat(r||"0")},size=function(r,a,i){return void 0===r&&(r=0),void 0===a&&(a=0),void 0===i&&(i=!1),new ResizeObserverSize((i?a:r)||0,(i?r:a)||0)},w=freeze({devicePixelContentBoxSize:size(),borderBoxSize:size(),contentBoxSize:size(),contentRect:new h(0,0,0,0)}),calculateBoxSizes=function(r,a){if(void 0===a&&(a=!1),g.has(r)&&!a)return g.get(r);if(isHidden(r))return g.set(r,w),w;var i=getComputedStyle(r),s=isSVG(r)&&r.ownerSVGElement&&r.getBBox(),c=!b&&"border-box"===i.boxSizing,d=m.test(i.writingMode||""),u=!s&&v.test(i.overflowY||""),f=!s&&v.test(i.overflowX||""),p=s?0:parseDimension(i.paddingTop),y=s?0:parseDimension(i.paddingRight),x=s?0:parseDimension(i.paddingBottom),O=s?0:parseDimension(i.paddingLeft),M=s?0:parseDimension(i.borderTopWidth),E=s?0:parseDimension(i.borderRightWidth),D=s?0:parseDimension(i.borderBottomWidth),S=s?0:parseDimension(i.borderLeftWidth),k=O+y,R=p+x,C=S+E,T=M+D,z=f?r.offsetHeight-T-r.clientHeight:0,N=u?r.offsetWidth-C-r.clientWidth:0,P=s?s.width:parseDimension(i.width)-(c?k+C:0)-N,B=s?s.height:parseDimension(i.height)-(c?R+T:0)-z,L=P+k+N+C,W=B+R+z+T,F=freeze({devicePixelContentBoxSize:size(Math.round(P*devicePixelRatio),Math.round(B*devicePixelRatio),d),borderBoxSize:size(L,W,d),contentBoxSize:size(P,B,d),contentRect:new h(O,p,P,B)});return g.set(r,F),F},calculateBoxSize=function(r,a,i){var s=calculateBoxSizes(r,i),d=s.borderBoxSize,u=s.contentBoxSize,f=s.devicePixelContentBoxSize;switch(a){case c.DEVICE_PIXEL_CONTENT_BOX:return f;case c.BORDER_BOX:return d;default:return u}},ResizeObserverEntry=function(r){var a=calculateBoxSizes(r);this.target=r,this.contentRect=a.contentRect,this.borderBoxSize=freeze([a.borderBoxSize]),this.contentBoxSize=freeze([a.contentBoxSize]),this.devicePixelContentBoxSize=freeze([a.devicePixelContentBoxSize])},calculateDepthForNode=function(r){if(isHidden(r))return 1/0;for(var a=0,i=r.parentNode;i;)a+=1,i=i.parentNode;return a},broadcastActiveObservations=function(){var r=1/0,a=[];u.forEach(function(i){if(0!==i.activeTargets.length){var s=[];i.activeTargets.forEach(function(a){var i=new ResizeObserverEntry(a.target),c=calculateDepthForNode(a.target);s.push(i),a.lastReportedSize=calculateBoxSize(a.target,a.observedBox),c<r&&(r=c)}),a.push(function(){i.callback.call(i.observer,s,i.observer)}),i.activeTargets.splice(0,i.activeTargets.length)}});for(var i=0;i<a.length;i++)(0,a[i])();return r},gatherActiveObservationsAtDepth=function(r){u.forEach(function(a){a.activeTargets.splice(0,a.activeTargets.length),a.skippedTargets.splice(0,a.skippedTargets.length),a.observationTargets.forEac
1h(function(i){i.isActive()&&(calculateDepthForNode(i.target)>r?a.activeTargets.push(i):a.skippedTargets.push(i))})})},process=function(){var r=0;for(gatherActiveObservationsAtDepth(0);u.some(function(r){return r.activeTargets.length>0});)gatherActiveObservationsAtDepth(r=broadcastActiveObservations());return u.some(function(r){return r.skippedTargets.length>0})&&deliverResizeLoopError(),r>0},y=[],queueMicroTask=function(r){if(!d){var a=0,i=document.createTextNode("");new MutationObserver(function(){return y.splice(0).forEach(function(r){return r()})}).observe(i,{characterData:!0}),d=function(){i.textContent="".concat(a?a--:a++)}}y.push(r),d()},queueResizeObserver=function(r){queueMicroTask(function(){requestAnimationFrame(r)})},x=0,O={attributes:!0,characterData:!0,childList:!0,subtree:!0},M=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],time=function(r){return void 0===r&&(r=0),Date.now()+r},E=!1,D=new(function(){function Scheduler(){var r=this;this.stopped=!0,this.listener=function(){return r.schedule()}}return Scheduler.prototype.run=function(r){var a=this;if(void 0===r&&(r=250),!E){E=!0;var i=time(r);queueResizeObserver(function(){var s=!1;try{s=process()}finally{if(E=!1,r=i-time(),!x)return;s?a.run(1e3):r>0?a.run(r):a.start()}})}},Scheduler.prototype.schedule=function(){this.stop(),this.run()},Scheduler.prototype.observe=function(){var r=this,cb=function(){return r.observer&&r.observer.observe(document.body,O)};document.body?cb():p.addEventListener("DOMContentLoaded",cb)},Scheduler.prototype.start=function(){var r=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),M.forEach(function(a){return p.addEventListener(a,r.listener,!0)}))},Scheduler.prototype.stop=function(){var r=this;this.stopped||(this.observer&&this.observer.disconnect(),M.forEach(function(a){return p.removeEventListener(a,r.listener,!0)}),this.stopped=!0)},Scheduler}()),updateCount=function(r){!x&&r>0&&D.start(),(x+=r)||D.stop()},S=function(){function ResizeObservation(r,a){this.target=r,this.observedBox=a||c.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return ResizeObservation.prototype.isActive=function(){var r,a=calculateBoxSize(this.target,this.observedBox,!0);return isSVG(r=this.target)||isReplacedElement(r)||"inline"!==getComputedStyle(r).display||(this.lastReportedSize=a),this.lastReportedSize.inlineSize!==a.inlineSize||this.lastReportedSize.blockSize!==a.blockSize},ResizeObservation}(),ResizeObserverDetail=function(r,a){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=r,this.callback=a},k=new WeakMap,getObservationIndex=function(r,a){for(var i=0;i<r.length;i+=1)if(r[i].target===a)return i;return -1},R=function(){function ResizeObserverController(){}return ResizeObserverController.connect=function(r,a){var i=new ResizeObserverDetail(r,a);k.set(r,i)},ResizeObserverController.observe=function(r,a,i){var s=k.get(r),c=0===s.observationTargets.length;0>getObservationIndex(s.observationTargets,a)&&(c&&u.push(s),s.observationTargets.push(new S(a,i&&i.box)),updateCount(1),D.schedule())},ResizeObserverController.unobserve=function(r,a){var i=k.get(r),s=getObservationIndex(i.observationTargets,a),c=1===i.observationTargets.length;s>=0&&(c&&u.splice(u.indexOf(i),1),i.observationTargets.splice(s,1),updateCount(-1))},ResizeObserverController.disconnect=function(r){var a=this,i=k.get(r);i.observationTargets.slice().forEach(function(i){return a.unobserve(r,i.target)}),i.activeTargets.splice(0,i.activeTargets.length)},ResizeObserverController}(),C=function(){function ResizeObserver(r){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof r)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");R.connect(this,r)}return ResizeObserver.prototype.observe=function(r,a){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(r))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");R.observe(this,r,a)},ResizeObserver.prototype.unobserve=function(r){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(r))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");R.unobserve(this,r)},ResizeObserver.prototype.disconnect=function(){R.disconnect(this)},ResizeObserver.toString=function(){return"function ResizeObserver () { [polyfill code] }"},ResizeObserver}()},18156:function(r,a){"use strict";for(var i="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),s={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},c={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:i?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},d={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},u=1;u<20;u++)d["f"+u]=111+u;function toKeyName(r){return r=c[r=r.toLowerCase()]||r}a.P6=function(r,a,i){!a||"byKey"in a||(i=a,a=null),Array.isArray(r)||(r=[r]);var u=r.map(function(r){return function(r,a){var i=a&&a.byKey,u={},f=(r=r.replace("++","+add")).split("+"),h=f.length;for(var p in s)u[s[p]]=!1;var g=!0,v=!1,m=void 0;try{for(var b,w=f[Symbol.iterator]();!(g=(b=w.next()).done);g=!0){var y,x=b.value,O=x.endsWith("?")&&x.length>1;O&&(x=x.slice(0,-1));var M=toKeyName(x),E=s[M];if(x.length>1&&!E&&!c[x]&&!d[M])throw TypeError('Unknown modifier: "'+x+'"');1!==h&&E||(i?u.key=M:u.which=(y=x,d[y=toKeyName(y)]||y.toUpperCase().charCo
1deAt(0))),E&&(u[E]=!O||null)}}catch(r){v=!0,m=r}finally{try{!g&&w.return&&w.return()}finally{if(v)throw m}}return u}(r,a)}),check=function(r){return u.some(function(a){return function(r,a){for(var i in r){var s=r[i],c=void 0;if(null!=s&&(null!=(c="key"===i&&null!=a.key?a.key.toLowerCase():"which"===i?91===s&&93===a.which?91:a.which:a[i])||!1!==s)&&c!==s)return!1}return!0}(a,r)})};return null==i?check:check(i)}},62705:function(r,a,i){var s=i(55639).Symbol;r.exports=s},44239:function(r,a,i){var s=i(62705),c=i(89607),d=i(2333),u=s?s.toStringTag:void 0;r.exports=function(r){return null==r?void 0===r?"[object Undefined]":"[object Null]":u&&u in Object(r)?c(r):d(r)}},27561:function(r,a,i){var s=i(67990),c=/^\s+/;r.exports=function(r){return r?r.slice(0,s(r)+1).replace(c,""):r}},31957:function(r,a,i){var s="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;r.exports=s},89607:function(r,a,i){var s=i(62705),c=Object.prototype,d=c.hasOwnProperty,u=c.toString,f=s?s.toStringTag:void 0;r.exports=function(r){var a=d.call(r,f),i=r[f];try{r[f]=void 0;var s=!0}catch(r){}var c=u.call(r);return s&&(a?r[f]=i:delete r[f]),c}},2333:function(r){var a=Object.prototype.toString;r.exports=function(r){return a.call(r)}},55639:function(r,a,i){var s=i(31957),c="object"==typeof self&&self&&self.Object===Object&&self,d=s||c||Function("return this")();r.exports=d},67990:function(r){var a=/\s/;r.exports=function(r){for(var i=r.length;i--&&a.test(r.charAt(i)););return i}},23279:function(r,a,i){var s=i(13218),c=i(7771),d=i(14841),u=Math.max,f=Math.min;r.exports=function(r,a,i){var h,p,g,v,m,b,w=0,y=!1,x=!1,O=!0;if("function"!=typeof r)throw TypeError("Expected a function");function invokeFunc(a){var i=h,s=p;return h=p=void 0,w=a,v=r.apply(s,i)}function shouldInvoke(r){var i=r-b,s=r-w;return void 0===b||i>=a||i<0||x&&s>=g}function timerExpired(){var r,i,s,d=c();if(shouldInvoke(d))return trailingEdge(d);m=setTimeout(timerExpired,(r=d-b,i=d-w,s=a-r,x?f(s,g-i):s))}function trailingEdge(r){return(m=void 0,O&&h)?invokeFunc(r):(h=p=void 0,v)}function debounced(){var r,i=c(),s=shouldInvoke(i);if(h=arguments,p=this,b=i,s){if(void 0===m)return w=r=b,m=setTimeout(timerExpired,a),y?invokeFunc(r):v;if(x)return clearTimeout(m),m=setTimeout(timerExpired,a),invokeFunc(b)}return void 0===m&&(m=setTimeout(timerExpired,a)),v}return a=d(a)||0,s(i)&&(y=!!i.leading,g=(x="maxWait"in i)?u(d(i.maxWait)||0,a):g,O="trailing"in i?!!i.trailing:O),debounced.cancel=function(){void 0!==m&&clearTimeout(m),w=0,h=b=p=m=void 0},debounced.flush=function(){return void 0===m?v:trailingEdge(c())},debounced}},13218:function(r){r.exports=function(r){var a=typeof r;return null!=r&&("object"==a||"function"==a)}},37005:function(r){r.exports=function(r){return null!=r&&"object"==typeof r}},33448:function(r,a,i){var s=i(44239),c=i(37005);r.exports=function(r){return"symbol"==typeof r||c(r)&&"[object Symbol]"==s(r)}},7771:function(r,a,i){var s=i(55639);r.exports=function(){return s.Date.now()}},23493:function(r,a,i){var s=i(23279),c=i(13218);r.exports=function(r,a,i){var d=!0,u=!0;if("function"!=typeof r)throw TypeError("Expected a function");return c(i)&&(d="leading"in i?!!i.leading:d,u="trailing"in i?!!i.trailing:u),s(r,a,{leading:d,maxWait:a,trailing:u})}},14841:function(r,a,i){var s=i(27561),c=i(13218),d=i(33448),u=0/0,f=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,p=/^0o[0-7]+$/i,g=parseInt;r.exports=function(r){if("number"==typeof r)return r;if(d(r))return u;if(c(r)){var a="function"==typeof r.valueOf?r.valueOf():r;r=c(a)?a+"":a}if("string"!=typeof r)return 0===r?r:+r;r=s(r);var i=h.test(r);return i||p.test(r)?g(r.slice(2),i?2:8):f.test(r)?u:+r}},50083:function(r,a,i){"use strict";i.d(a,{BE:function(){return F},BX:function(){return U},C_:function(){return V},Cl:function(){return L},D1:function(){return b},Dk:function(){return H},EP:function(){return W},ES:function(){return q},Ft:function(){return isTextDecorationsEqual},G9:function(){return x},GZ:function(){return I},Gq:function(){return P},IB:function(){return R},Ie:function(){return J},K9:function(){return verifyDiffState},KW:function(){return isTrackedMutation},KZ:function(){return X},Mf:function(){return getSelection},N3:function(){return withDOM},Or:function(){return Y},Pr:function(){return K},QY:function(){return targetRange},Qz:function(){return mergeStringDiffs},Rx:function(){return D},SV:function(){return ea},TF:function(){return k},Tr:function(){return Z},WV:function(){return applyStringDiff},Wt:function(){return w},YU:function(){return $},_e:function(){return isElementDecorationsEqual},aQ:function(){return getDefaultView},aY:function(){return isDOMElement},cj:function(){return g},f7:function(){return _},hc:function(){return G},hf:function(){return N},ik:function(){return normalizeStringDiff},j0:function(){return normalizePoint},jG:function(){return splitDecorationsByChild},kB:function(){return B},l:function(){return j},l2:function(){return z},n:function(){return isPlainTextOnlyPaste},n6:function(){return et},o4:function(){return normalizeRange},q8:function(){return Q},rP:function(){return S},sr:function(){return Key},tV:function(){return E},tw:function(){return T},uF:function(){return isDOMNode},vY:function(){return getActiveElement},wZ:function(){return m},y2:function(){return ee},zq:function(){return isDOMSelection}});var s,c,d=i(77493),u=i(18156),f=globalThis.Node,h=globalThis.Text,getDefaultView=r=>r&&r.ownerDocument&&r.ownerDocument.defaultView||null,isDOMComment=r=>isDOMNode(r)&&8===r.nodeType,isDOMElement=r=>isDOMNode(r)&&1===r.nodeType,isDOMNode=r=>{var a=getDefaultView(r);return!!a&&r instanceof a.Node},isDOMSelection=r=>{var a=r&&r.anchorNode&&getDefaultView(r.anchorNode);return!!a&&r instanceof a.Selection},isDOMText=r=>
1isDOMNode(r)&&3===r.nodeType,isPlainTextOnlyPaste=r=>r.clipboardData&&""!==r.clipboardData.getData("text/plain")&&1===r.clipboardData.types.length,normalizeDOMPoint=r=>{var[a,i]=r;if(isDOMElement(a)&&a.childNodes.length){var s=i===a.childNodes.length,c=s?i-1:i;for([a,c]=getEditableChildAndIndex(a,c,s?"backward":"forward"),s=c<i;isDOMElement(a)&&a.childNodes.length;){var d=s?a.childNodes.length-1:0;a=getEditableChild(a,d,s?"backward":"forward")}i=s&&null!=a.textContent?a.textContent.length:0}return[a,i]},hasShadowRoot=r=>{for(var a=r&&r.parentNode;a;){if("[object ShadowRoot]"===a.toString())return!0;a=a.parentNode}return!1},getEditableChildAndIndex=(r,a,i)=>{for(var{childNodes:s}=r,c=s[a],d=a,u=!1,f=!1;(isDOMComment(c)||isDOMElement(c)&&0===c.childNodes.length||isDOMElement(c)&&"false"===c.getAttribute("contenteditable"))&&(!u||!f);){if(d>=s.length){u=!0,d=a-1,i="backward";continue}if(d<0){f=!0,d=a+1,i="forward";continue}c=s[d],a=d,d+="forward"===i?1:-1}return[c,a]},getEditableChild=(r,a,i)=>{var[s]=getEditableChildAndIndex(r,a,i);return s},getPlainText=r=>{var a="";if(isDOMText(r)&&r.nodeValue)return r.nodeValue;if(isDOMElement(r)){for(var i of Array.from(r.childNodes))a+=getPlainText(i);var s=getComputedStyle(r).getPropertyValue("display");("block"===s||"list"===s||"BR"===r.tagName)&&(a+="\n")}return a},p=/data-slate-fragment="(.+?)"/m,getSlateFragmentAttribute=r=>{var[,a]=r.getData("text/html").match(p)||[];return a},getSelection=r=>null!=r.getSelection?r.getSelection():document.getSelection(),isTrackedMutation=(r,a,i)=>{var{target:s}=a;if(isDOMElement(s)&&s.matches('[contentEditable="false"]'))return!1;var{document:c}=ee.getWindow(r);if(c.contains(s))return ee.hasDOMNode(r,s,{editable:!0});var d=i.find(r=>{var{addedNodes:a,removedNodes:i}=r;for(var c of a)if(c===s||c.contains(s))return!0;for(var d of i)if(d===s||d.contains(s))return!0});return!!d&&d!==a&&isTrackedMutation(r,d,i)},getActiveElement=()=>{for(var r,a,i,s=document.activeElement;null!==(r=s)&&void 0!==r&&r.shadowRoot&&null!==(a=s.shadowRoot)&&void 0!==a&&a.activeElement;)s=null===(i=s)||void 0===i||null===(i=i.shadowRoot)||void 0===i?void 0:i.activeElement;return s},isBefore=(r,a)=>!!(r.compareDocumentPosition(a)&f.DOCUMENT_POSITION_PRECEDING),isAfter=(r,a)=>!!(r.compareDocumentPosition(a)&f.DOCUMENT_POSITION_FOLLOWING),g="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,v="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),m="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),b="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),w="undefined"!=typeof navigator&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),y="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),x="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),O="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),M=m&&"undefined"!=typeof navigator&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),E="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),D="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),S="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent)&&(!x||O),k=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement);"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&null!==(s=navigator.userAgent.match(/Version\/(\d+)/))&&void 0!==s&&s[1]&&parseInt(null===(c=navigator.userAgent.match(/Version\/(\d+)/))||void 0===c?void 0:c[1],10);var R=(!O||!M)&&!y&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges;function _typeof(r){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function _defineProperty(r,a,i){var s;
1return s=function(r,a){if("object"!==_typeof(r)||null===r)return r;var i=r[Symbol.toPrimitive];if(void 0!==i){var s=i.call(r,a||"default");if("object"!==_typeof(s))return s;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(r)}(a,"string"),(a="symbol"===_typeof(s)?s:String(s))in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,r}var C=0;let Key=class Key{constructor(){_defineProperty(this,"id",void 0),this.id="".concat(C++)}};var T=new WeakMap,z=new WeakMap,N=new WeakMap,P=new WeakMap,B=new WeakMap,L=new WeakMap,W=new WeakMap,F=new WeakMap,A=new WeakMap,_=new WeakMap,j=new WeakMap,I=new WeakMap,q=new WeakMap,V=new WeakMap,$=new WeakMap,K=new WeakMap,H=new WeakMap,U=new WeakMap,X=new WeakMap,G=new WeakMap,Y=new WeakMap,Z=new WeakMap,J=Symbol("placeholder"),Q=Symbol("mark-placeholder"),ee={androidPendingDiffs:r=>X.get(r),androidScheduleFlush:r=>{var a;null===(a=K.get(r))||void 0===a||a()},blur:r=>{var a=ee.toDOMNode(r,r),i=ee.findDocumentOrShadowRoot(r);I.set(r,!1),i.activeElement===a&&a.blur()},deselect:r=>{var{selection:a}=r,i=getSelection(ee.findDocumentOrShadowRoot(r));i&&i.rangeCount>0&&i.removeAllRanges(),a&&d.YR.deselect(r)},findDocumentOrShadowRoot:r=>{var a=ee.toDOMNode(r,r),i=a.getRootNode();return i instanceof Document||i instanceof ShadowRoot?i:a.ownerDocument},findEventRange:(r,a)=>{"nativeEvent"in a&&(a=a.nativeEvent);var i,{clientX:s,clientY:c,target:u}=a;if(null==s||null==c)throw Error("Cannot resolve a Slate range from a DOM event: ".concat(a));var f=ee.toSlateNode(r,a.target),h=ee.findPath(r,f);if(d.W_.isElement(f)&&d.ML.isVoid(r,f)){var p=u.getBoundingClientRect(),g=r.isInline(f)?s-p.left<p.left+p.width-s:c-p.top<p.top+p.height-c,v=d.ML.point(r,h,{edge:g?"start":"end"}),m=g?d.ML.before(r,v):d.ML.after(r,v);if(m)return d.ML.range(r,m)}var{document:b}=ee.getWindow(r);if(b.caretRangeFromPoint)i=b.caretRangeFromPoint(s,c);else{var w=b.caretPositionFromPoint(s,c);w&&((i=b.createRange()).setStart(w.offsetNode,w.offset),i.setEnd(w.offsetNode,w.offset))}if(!i)throw Error("Cannot resolve a Slate range from a DOM event: ".concat(a));return ee.toSlateRange(r,i,{exactMatch:!1,suppressThrow:!1})},findKey:(r,a)=>{var i=A.get(a);return i||(i=new Key,A.set(a,i)),i},findPath:(r,a)=>{for(var i=[],s=a;;){var c=N.get(s);if(null==c){if(d.ML.isEditor(s))return i;break}var u=z.get(s);if(null==u)break;i.unshift(u),s=c}throw Error("Unable to find the path for Slate node: ".concat(d.o4.stringify(a)))},focus:function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retries:5};if(!I.get(r)&&B.get(r)){if(a.retries<=0)throw Error("Could not set focus, editor seems stuck with pending operations");if(r.operations.length>0){setTimeout(()=>{ee.focus(r,{retries:a.retries-1})},10);return}var i=ee.toDOMNode(r,r),s=ee.findDocumentOrShadowRoot(r);if(s.activeElement!==i){if(r.selection&&s instanceof Document){var c=getSelection(s),u=ee.toDOMRange(r,r.selection);null==c||c.removeAllRanges(),null==c||c.addRange(u)}r.selection||d.YR.select(r,d.ML.start(r,[])),I.set(r,!0),i.focus({preventScroll:!0})}}},getWindow:r=>{var a=P.get(r);if(!a)throw Error("Unable to find a host window element for this editor");return a},hasDOMNode:function(r,a){var i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:c=!1}=s,d=ee.toDOMNode(r,r);try{i=isDOMElement(a)?a:a.parentElement}catch(r){if(r instanceof Error&&!r.message.includes('Permission denied to access property "nodeType"'))throw r}return!!i&&i.closest("[data-slate-editor]")===d&&(!c||!!i.isContentEditable||"boolean"==typeof i.isContentEditable&&i.closest('[contenteditable="false"]')===d||!!i.getAttribute("data-slate-zero-width"))},hasEditableTarget:(r,a)=>isDOMNode(a)&&ee.hasDOMNode(r,a,{editable:!0}),hasRange:(r,a)=>{var{anchor:i,focus:s}=a;return d.ML.hasPath(r,i.path)&&d.ML.hasPath(r,s.path)},hasSelectableTarget:(r,a)=>ee.hasEditableTarget(r,a)||ee.isTargetInsideNonReadonlyVoid(r,a),hasTarget:(r,a)=>isDOMNode(a)&&ee.hasDOMNode(r,a),insertData:(r,a)=>{r.insertData(a)},insertFragmentData:(r,a)=>r.insertFragmentData(a),insertTextData:(r,a)=>r.insertTextData(a),isComposing:r=>!!q.get(r),isFocused:r=>!!I.get(r),isReadOnly:r=>!!j.get(r),isTargetInsideNonReadonlyVoid:(r,a)=>{if(j.get(r))return!1;var i=ee.hasTarget(r,a)&&ee.toSlateNode(r,a);return d.W_.isElement(i)&&d.ML.isVoid(r,i)},setFragmentData:(r,a,i)=>r.setFragmentData(a,i),toDOMNode:(r,a)=>{var i=_.get(r),s=d.ML.isEditor(a)?B.get(r):null==i?void 0:i.get(ee.findKey(r,a));if(!s)throw Error("Cannot resolve a DOM node from Slate node: ".concat(d.o4.stringify(a)));return s},toDOMPoint:(r,a)=>{var[i]=d.ML.node(r,a.path),s=ee.toDOMNode(r,i);d.ML.void(r,{at:a})&&(a={path:a.path,offset:0});for(var c=Array.from(s.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0,f=0;f<c.length;f++){var p=c[f],g=p.childNodes[0];if(null!=g&&null!=g.textContent){var{length:v}=g.textContent,m=p.getAttribute("data-slate-length"),b=u+(null==m?v:parseInt(m,10)),w=c[f+1];if(a.offset===b&&null!=w&&w.hasAttribute("data-slate-mark-placeholder")){var y,x,O=w.childNodes[0];y=[O instanceof h?O:w,null!==(x=w.textContent)&&void 0!==x&&x.startsWith("\uFEFF")?1:0];break}if(a.offset<=b){y=[g,Math.min(v,Math.max(0,a.offset-u))];break}u=b}}if(!y)throw Error("Cannot resolve a DOM point from Slate point: ".concat(d.o4.stringify(a)));return y},toDOMRange:(r,a)=>
1{var{anchor:i,focus:s}=a,c=d.e6.isBackward(a),u=ee.toDOMPoint(r,i),f=d.e6.isCollapsed(a)?u:ee.toDOMPoint(r,s),h=ee.getWindow(r).document.createRange(),[p,g]=c?f:u,[v,m]=c?u:f,b=!!(isDOMElement(p)?p:p.parentElement).getAttribute("data-slate-zero-width"),w=!!(isDOMElement(v)?v:v.parentElement).getAttribute("data-slate-zero-width");return h.setStart(p,b?1:g),h.setEnd(v,w?1:m),h},toSlateNode:(r,a)=>{var i=isDOMElement(a)?a:a.parentElement;i&&!i.hasAttribute("data-slate-node")&&(i=i.closest("[data-slate-node]"));var s=i?W.get(i):null;if(!s)throw Error("Cannot resolve a Slate node from DOM node: ".concat(i));return s},toSlatePoint:(r,a,i)=>{var{exactMatch:s,suppressThrow:c,searchDirection:u="backward"}=i,[f,h]=s?a:normalizeDOMPoint(a),p=f.parentNode,g=null,v=0;if(p){var w=ee.toDOMNode(r,r),y=p.closest('[data-slate-void="true"]'),x=y&&w.contains(y)?y:null,O=p.closest('[contenteditable="false"]'),M=O&&w.contains(O)?O:null,E=p.closest("[data-slate-leaf]"),D=null;if(E){if(g=E.closest('[data-slate-node="text"]')){var S=ee.getWindow(r).document.createRange();S.setStart(g,0),S.setEnd(f,h);var k=S.cloneContents();[...Array.prototype.slice.call(k.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(k.querySelectorAll("[contenteditable=false]"))].forEac
1h(r=>{if(m&&!s&&r.hasAttribute("data-slate-zero-width")&&r.textContent.length>0&&"\uFEFF"!==r.textContext){r.textContent.startsWith("\uFEFF")&&(r.textContent=r.textContent.slice(1));return}r.parentNode.removeChild(r)}),v=k.textContent.length,D=g}}else if(x){for(var R=x.querySelectorAll("[data-slate-leaf]"),C=0;C<R.length;C++){var T=R[C];if(ee.hasDOMNode(r,T)){E=T;break}}E?(g=E.closest('[data-slate-node="text"]'),v=(D=E).textContent.length,D.querySelectorAll("[data-slate-zero-width]").forEach(r=>{v-=r.textContent.length})):v=1}else if(M){var z,N,P,B,getLeafNodes=r=>r?r.querySelectorAll("[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"):[],L=M.closest('[data-slate-node="element"]');(E="forward"===u?null!==(P=[...getLeafNodes(L),...getLeafNodes(null==L?void 0:L.nextElementSibling)].find(r=>isAfter(M,r)))&&void 0!==P?P:null:null!==(B=[...getLeafNodes(null==L?void 0:L.previousElementSibling),...getLeafNodes(L)].findLast(r=>isBefore(M,r)))&&void 0!==B?B:null)&&(g=E.closest('[data-slate-node="text"]'),D=E,"forward"===u?v=0:(v=D.textContent.length,D.querySelectorAll("[data-slate-zero-width]").forEach(r=>{v-=r.textContent.length})))}D&&v===D.textContent.length&&m&&"z"===D.getAttribute("data-slate-zero-width")&&null!==(z=D.textContent)&&void 0!==z&&z.startsWith("\uFEFF")&&(p.hasAttribute("data-slate-zero-width")||b&&null!==(N=D.textContent)&&void 0!==N&&N.endsWith("\n\n"))&&v--}if(m&&!g&&!s){var W=p.hasAttribute("data-slate-node")?p:p.closest("[data-slate-node]");if(W&&ee.hasDOMNode(r,W,{editable:!0})){var F=ee.toSlateNode(r,W),{path:A,offset:_}=d.ML.start(r,ee.findPath(r,F));return W.querySelector("[data-slate-leaf]")||(_=h),{path:A,offset:_}}}if(!g){if(c)return null;throw Error("Cannot resolve a Slate point from DOM point: ".concat(a))}var j=ee.toSlateNode(r,g);return{path:ee.findPath(r,j),offset:v}},toSlateRange:(r,a,i)=>{var s,c,u,f,h,p,{exactMatch:g,suppressThrow:v}=i;if(isDOMSelection(a)?a.anchorNode:a.startContainer){if(isDOMSelection(a)){if(b&&a.rangeCount>1){f=a.focusNode;var m=a.getRangeAt(0),w=a.getRangeAt(a.rangeCount-1);if(f instanceof HTMLTableRowElement&&m.startContainer instanceof HTMLTableRowElement&&w.startContainer instanceof HTMLTableRowElement){function getLastChildren(r){return r.childElementCount>0?getLastChildren(r.children[0]):r}var y=m.startContainer,O=w.startContainer,M=getLastChildren(y.children[m.startOffset]),E=getLastChildren(O.children[w.startOffset]);h=0,c=E.childNodes.length>0?E.childNodes[0]:E,f=M.childNodes.length>0?M.childNodes[0]:M,u=E instanceof HTMLElement?E.innerHTML.length:0}else m.startContainer===f?(c=w.endContainer,u=w.endOffset,h=m.startOffset):(c=m.startContainer,u=m.endOffset,h=w.startOffset)}else c=a.anchorNode,u=a.anchorOffset,f=a.focusNode,h=a.focusOffset;p=x&&hasShadowRoot(c)||b?a.anchorNode===a.focusNode&&a.anchorOffset===a.focusOffset:a.isCollapsed}else c=a.startContainer,u=a.startOffset,f=a.endContainer,h=a.endOffset,p=a.collapsed}if(null==c||null==f||null==u||null==h)throw Error("Cannot resolve a Slate range from DOM range: ".concat(a));b&&null!==(s=f.textContent)&&void 0!==s&&s.endsWith("\n\n")&&h===f.textContent.length&&h--;var D=ee.toSlatePoint(r,[c,u],{exactMatch:g,suppressThrow:v});if(!D)return null;var S=isBefore(c,f)||c===f&&h<u,k=p?D:ee.toSlatePoint(r,[f,h],{exactMatch:g,suppressThrow:v,searchDirection:S?"forward":"backward"});if(!k)return null;var R={anchor:D,focus:k};return d.e6.isExpanded(R)&&d.e6.isForward(R)&&isDOMElement(f)&&d.ML.void(r,{at:R.focus,mode:"highest"})&&(R=d.ML.unhangRange(r,R,{voids:!0})),R}};function verifyDiffState(r,a){var{path:i,diff:s}=a;if(!d.ML.hasPath(r,i))return!1;var c=d.NB.get(r,i);if(!d.xv.isText(c))return!1;if(s.start!==c.text.length||0===s.text.length)return c.text.slice(s.start,s.start+s.text.length)===s.text;var u=d.y$.next(i);if(!d.ML.hasPath(r,u))return!1;var f=d.NB.get(r,u);return d.xv.isText(f)&&f.text.startsWith(s.text)}function applyStringDiff(r){for(var a=arguments.length,i=Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];return i.reduce((r,a)=>r.slice(0,a.start)+a.text+r.slice(a.end),r)}function normalizeStringDiff(r,a){var{start:i,end:s,text:c}=a,d=r.slice(i,s),u=function(r,a){for(var i=Math.min(r.length,a.length),s=0;s<i;s++)if(r.charAt(s)!==a.charAt(s))return s;return i}(d,c),f=Math.min(d.length-u,c.length-u),h=function(r,a,i){for(var s=Math.min(r.length,a.length,i),c=0;c<s;c++)if(r.charAt(r.length-c-1)!==a.charAt(a.length-c-1))return c;return s}(d,c,f),p={start:i+u,end:s-h,text:c.slice(u,c.length-h)};return p.start===p.end&&0===p.text.length?null:p}function mergeStringDiffs(r,a,i){var s=Math.min(a.start,i.start),c=Math.max(0,Math.min(a.start+a.text.length,i.end)-i.start),d=applyStringDiff(r,a,i),u=Math.max(i.start+i.text.length,a.start+a.text.length+(a.start+a.text.length>i.start?i.text.length:0)-c),f=d.slice(s,u);return normalizeStringDiff(r,{start:s,end:Math.max(a.end,i.end-a.text.length+(a.end-a.start)),text:f})}function targetRange(r){var{path:a,diff:i}=r;return{anchor:{path:a,offset:i.start},focus:{path:a,offset:i.end}}}function normalizePoint(r,a){var{path:i,offset:s}=a;if(!d.ML.hasPath(r,i))return null;var c=d.NB.get(r,i);if(!d.xv.isText(c))return null;var u=d.ML.above(r,{match:a=>d.W_.isElement(a)&&d.ML.isBlock(r,a),at:i});if(!u)return null;for(;s>c.text.length;){var f=d.ML.next(r,{at:i,match:d.xv.isText});if(!f||!d.y$.isDescendant(f[1],u[1]))return null;s-=c.text.length,c=f[0],i=f[1]}return{path:i,offset:s}}function normalizeRange(r,a){var i=normalizePoint(r,a.anchor);if(!i)return null;if(d.e6.isCollapsed(a))return{anchor:i,focus:i};var s=normalizePoint(r,a.focus);return s?{anchor:i,focus:s}:null}function transformPendingPoint(r,a,i){var s=X.get(r),c=null==s?void 0:s.find(r=>{var{path:i}=r;return d.y$.equals(i,a.path)});if(!c||a.offset<=c.diff.start)return d.E9.transform(a,i,{affinity:"backward"});var{diff:u}=c;if(a.offset<=u.start+u.text.length){var f={path:a.path,offset:u.start},h=d.E9.transform(f,i,{affinity:"backward"});return h?{path:h.path,offset:h.offset+a.offset-u.start}:null}var p={path:a.path,offset:a.offset-u.text.length+u.end-u.start},g=d.E9.transform(p,i,{affinity:"backward"});return g?"split_node"===i.type&&d.y$.equals(i.path,a.path)&&p.offset<i.position&&u.start<i.position?g:{path:g.path,offset:g.offset+u.text.length-u.end+u.start}:null}function transformPendingRange(r,a,i){var s=transformPendingPoint(r,a.anchor,i);if(!s)return null;if(d.e6.isCollapsed(a))return{anchor:s,focus:s};var c=transformPendingPoint(r,a.focus,i);return c?{anchor:s,focus:c}:null}var doRectsIntersect=(r,a)=>{var i=(a.top+a.bottom)/2;return r.top<=i&&r.bottom>=i},areRangesSameLine=(r,a,i)=>{var s=ee.toDOMRange(r,a).getBoundingClientRect(),c=ee.toDOMRange(r,i).getBoundingClientRect();return doRectsIntersect(s,c)&&doRectsIntersect(c,s)},findCurrentLineRange=(r,a)=>{var i=d.ML.range(r,d.e6.end(a)),s=Array.from(d.ML.positions(r,{at:a})),c=0,u=s.length,f=Math.floor(u/2);
1if(areRangesSameLine(r,d.ML.range(r,s[c]),i))return d.ML.range(r,s[c],i);if(s.length<2)return d.ML.range(r,s[s.length-1],i);for(;f!==s.length&&f!==c;)areRangesSameLine(r,d.ML.range(r,s[f]),i)?u=f:c=f,f=Math.floor((c+u)/2);return d.ML.range(r,s[c],i)};function ownKeys$1(r,a){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),i.push.apply(i,s)}return i}function _objectSpread$1(r){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?ownKeys$1(Object(i),!0).forEach(function(a){_defineProperty(r,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ownKeys$1(Object(i)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(i,a))})}return r}var withDOM=function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",{apply:i,onChange:s,deleteBackward:c,addMark:u,removeMark:f}=r;return _.set(r,new WeakMap),r.addMark=(a,i)=>{var s,c;null===(s=K.get(r))||void 0===s||s(),!H.get(r)&&null!==(c=X.get(r))&&void 0!==c&&c.length&&H.set(r,null),U.delete(r),u(a,i)},r.removeMark=a=>{var i;!H.get(r)&&null!==(i=X.get(r))&&void 0!==i&&i.length&&H.set(r,null),U.delete(r),f(a)},r.deleteBackward=a=>{if("line"!==a)return c(a);if(r.selection&&d.e6.isCollapsed(r.selection)){var i=d.ML.above(r,{match:a=>d.W_.isElement(a)&&d.ML.isBlock(r,a),at:r.selection});if(i){var[,s]=i,u=d.ML.range(r,s,r.selection.anchor),f=findCurrentLineRange(r,u);d.e6.isCollapsed(f)||d.YR.delete(r,{at:f})}}},r.apply=a=>{var s=[],c=[],u=X.get(r);if(null!=u&&u.length){var f=u.map(r=>(function(r,a){var{path:i,diff:s,id:c}=r;switch(a.type){case"insert_text":if(!d.y$.equals(a.path,i)||a.offset>=s.end)return r;if(a.offset<=s.start)return{diff:{start:a.text.length+s.start,end:a.text.length+s.end,text:s.text},id:c,path:i};return{diff:{start:s.start,end:s.end+a.text.length,text:s.text},id:c,path:i};case"remove_text":if(!d.y$.equals(a.path,i)||a.offset>=s.end)return r;if(a.offset+a.text.length<=s.start)return{diff:{start:s.start-a.text.length,end:s.end-a.text.length,text:s.text},id:c,path:i};return{diff:{start:s.start,end:s.end-a.text.length,text:s.text},id:c,path:i};case"split_node":if(!d.y$.equals(a.path,i)||a.position>=s.end)return{diff:s,id:c,path:d.y$.transform(i,a,{affinity:"backward"})};if(a.position>s.start)return{diff:{start:s.start,end:Math.min(a.position,s.end),text:s.text},id:c,path:i};return{diff:{start:s.start-a.position,end:s.end-a.position,text:s.text},id:c,path:d.y$.transform(i,a,{affinity:"forward"})};case"merge_node":if(!d.y$.equals(a.path,i))return{diff:s,id:c,path:d.y$.transform(i,a)};return{diff:{start:s.start+a.position,end:s.end+a.position,text:s.text},id:c,path:d.y$.transform(i,a)}}var u=d.y$.transform(i,a);return u?{diff:s,path:u,id:c}:null})(r,a)).filter(Boolean);X.set(r,f)}var h=Y.get(r);h&&Y.set(r,transformPendingRange(r,h,a));var p=G.get(r);if(null!=p&&p.at){var g=d.E9.isPoint(null==p?void 0:p.at)?transformPendingPoint(r,p.at,a):transformPendingRange(r,p.at,a);G.set(r,g?_objectSpread$1(_objectSpread$1({},p),{},{at:g}):null)}switch(a.type){case"insert_text":case"remove_text":case"set_node":case"split_node":s.push(...getMatches(r,a.path));break;case"set_selection":null===(v=V.get(r))||void 0===v||v.unref(),V.delete(r);break;case"insert_node":case"remove_node":s.push(...getMatches(r,d.y$.parent(a.path)));break;case"merge_node":s.push(...getMatches(r,d.y$.previous(a.path)));break;case"move_node":s.push(...getMatches(r,d.y$.common(d.y$.parent(a.path),d.y$.parent(a.newPath)))),d.y$.isBefore(a.path,a.newPath)?(s.push(...getMatches(r,d.y$.parent(a.path))),m=a.newPath):(s.push(...getMatches(r,d.y$.parent(a.newPath))),m=a.path);var v,m,b=d.NB.get(r,d.y$.parent(m)),w=ee.findKey(r,b);c.push([d.ML.pathRef(r,d.y$.parent(m)),w])}switch(i(a),a.type){case"insert_node":case"remove_node":case"merge_node":case"move_node":case"split_node":case"insert_text":case"remove_text":case"set_selection":T.set(r,!0)}for(var[y,x]of s){var[O]=d.ML.node(r,y);A.set(O,x)}for(var[M,E]of c){if(M.current){var[D]=d.ML.node(r,M.current);A.set(D,E)}M.unref()}},r.setFragmentData=i=>{var{selection:s}=r;if(s){var[c,u]=d.e6.edges(s),f=d.ML.void(r,{at:c.path}),h=d.ML.void(r,{at:u.path});if(!d.e6.isCollapsed(s)||f){var p=ee.toDOMRange(r,s),g=p.cloneContents(),v=g.childNodes[0];
1if(g.childNodes.forEach(r=>{r.textContent&&""!==r.textContent.trim()&&(v=r)}),h){var[m]=h,b=p.cloneRange(),w=ee.toDOMNode(r,m);b.setEndAfter(w),g=b.cloneContents()}if(f&&(v=g.querySelector("[data-slate-spacer]")),Array.from(g.querySelectorAll("[data-slate-zero-width]")).forEach(r=>{var a="n"===r.getAttribute("data-slate-zero-width");r.textContent=a?"\n":""}),isDOMText(v)){var y=v.ownerDocument.createElement("span");y.style.whiteSpace="pre",y.appendChild(v),g.appendChild(y),v=y}var x=JSON.stringify(r.getFragment()),O=window.btoa(encodeURIComponent(x));v.setAttribute("data-slate-fragment",O),i.setData("application/".concat(a),O);var M=g.ownerDocument.createElement("div");return M.appendChild(g),M.setAttribute("hidden","true"),g.ownerDocument.body.appendChild(M),i.setData("text/html",M.innerHTML),i.setData("text/plain",getPlainText(M)),g.ownerDocument.body.removeChild(M),i}}},r.insertData=a=>{r.insertFragmentData(a)||r.insertTextData(a)},r.insertFragmentData=i=>{var s=i.getData("application/".concat(a))||getSlateFragmentAttribute(i);if(s){var c=JSON.parse(decodeURIComponent(window.atob(s)));return r.insertFragment(c),!0}return!1},r.insertTextData=a=>{var i=a.getData("text/plain");if(i){var s=i.split(/\r\n|\r|\n/),c=!1;for(var u of s)c&&d.YR.splitNodes(r,{always:!0}),r.insertText(u),c=!0;return!0}return!1},r.onChange=a=>{var i=$.get(r);i&&i(a),s(a)},r},getMatches=(r,a)=>{var i=[];for(var[s,c]of d.ML.levels(r,{at:a})){var u=ee.findKey(r,s);i.push([c,u])}return i},et=3,er={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"},en={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"},eo={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},create=r=>{var a=er[r],i=en[r],s=eo[r],c=a&&(0,u.P6)(a),d=i&&(0,u.P6)(i),f=s&&(0,u.P6)(s);return r=>!!(c&&c(r)||v&&d&&d(r)||!v&&f&&f(r))},ea={isBold:create("bold"),isCompose:create("compose"),isMoveBackward:create("moveBackward"),isMoveForward:create("moveForward"),isDeleteBackward:create("deleteBackward"),isDeleteForward:create("deleteForward"),isDeleteLineBackward:create("deleteLineBackward"),isDeleteLineForward:create("deleteLineForward"),isDeleteWordBackward:create("deleteWordBackward"),isDeleteWordForward:create("deleteWordForward"),isExtendBackward:create("extendBackward"),isExtendForward:create("extendForward"),isExtendLineBackward:create("extendLineBackward"),isExtendLineForward:create("extendLineForward"),isItalic:create("italic"),isMoveLineBackward:create("moveLineBackward"),isMoveLineForward:create("moveLineForward"),isMoveWordBackward:create("moveWordBackward"),isMoveWordForward:create("moveWordForward"),isRedo:create("redo"),isSoftBreak:create("insertSoftBreak"),isSplitBlock:create("splitBlock"),isTransposeCharacter:create("transposeCharacter"),isUndo:create("undo")};function _objectWithoutProperties(r,a){if(null==r)return{};var i,s,c=function(r,a){if(null==r)return{};var i,s,c={},d=Object.keys(r);for(s=0;s<d.length;s++)i=d[s],a.indexOf(i)>=0||(c[i]=r[i]);return c}(r,a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(r);for(s=0;s<d.length;s++)i=d[s],!(a.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(c[i]=r[i])}return c}var ei=["anchor","focus"],es=["anchor","focus"];function ownKeys(r,a){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),i.push.apply(i,s)}return i}function _objectSpread(r){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};
1a%2?ownKeys(Object(i),!0).forEach(function(a){_defineProperty(r,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(i,a))})}return r}var shallowCompare=(r,a)=>Object.keys(r).length===Object.keys(a).length&&Object.keys(r).every(i=>a.hasOwnProperty(i)&&r[i]===a[i]),isDecorationFlagsEqual=(r,a)=>{var i=_objectWithoutProperties(r,ei),s=_objectWithoutProperties(a,es);return r[J]===a[J]&&shallowCompare(i,s)},isElementDecorationsEqual=(r,a)=>{if(r===a)return!0;if(!r||!a||r.length!==a.length)return!1;for(var i=0;i<r.length;i++){var s=r[i],c=a[i];if(!d.e6.equals(s,c)||!isDecorationFlagsEqual(s,c))return!1}return!0},isTextDecorationsEqual=(r,a)=>{if(r===a)return!0;if(!r||!a||r.length!==a.length)return!1;for(var i=0;i<r.length;i++){var s=r[i],c=a[i];if(s.anchor.offset!==c.anchor.offset||s.focus.offset!==c.focus.offset||!isDecorationFlagsEqual(s,c))return!1}return!0},splitDecorationsByChild=(r,a,i)=>{var s=Array.from(a.children,()=>[]);if(0===i.length)return s;var c=ee.findPath(r,a),u=c.length,f=d.ML.range(r,c),h=Array(a.children.length),getChildRange=a=>{var i=h[a];if(i)return i;var s=d.ML.range(r,[...c,a]);return h[a]=s,s};for(var p of i){var g=d.e6.intersection(f,p);if(g)for(var[v,m]=d.e6.edges(g),b=v.path[u],w=m.path[u],y=b;y<=w;y++){var x=s[y];if(x){var O=getChildRange(y),M=d.e6.intersection(O,p);M&&x.push(_objectSpread(_objectSpread({},p),M))}}}return s}},51080:function(r){"use strict";r.exports=function(r){return(r=String(r||""),s.test(r))?"rtl":c.test(r)?"ltr":"neutral"};var a="֑-߿יִ-﷽ﹰ-ﻼ",i="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",s=RegExp("^[^"+i+"]*["+a+"]"),c=RegExp("^[^"+a+"]*["+i+"]")},17423:function(r,a,i){"use strict";i.d(a,{Z:function(){return dist_e}});let t=r=>"object"==typeof r&&null!=r&&1===r.nodeType,e=(r,a)=>(!a||"hidden"!==r)&&"visible"!==r&&"clip"!==r,n=(r,a)=>{if(r.clientHeight<r.scrollHeight||r.clientWidth<r.scrollWidth){let i=getComputedStyle(r,null);return e(i.overflowY,a)||e(i.overflowX,a)||(r=>{let a=(r=>{if(!r.ownerDocument||!r.ownerDocument.defaultView)return null;try{return r.ownerDocument.defaultView.frameElement}catch(r){return null}})(r);return!!a&&(a.clientHeight<r.scrollHeight||a.clientWidth<r.scrollWidth)})(r)}return!1},o=(r,a,i,s,c,d,u,f)=>d<r&&u>a||d>r&&u<a?0:d<=r&&f<=i||u>=a&&f>=i?d-r-s:u>a&&f<i||d<r&&f>i?u-a+c:0,l=r=>{let a=r.parentElement;return null==a?r.getRootNode().host||null:a},dist_r=(r,a)=>{var i,s,c,d;if("undefined"==typeof document)return[];let{scrollMode:u,block:f,inline:h,boundary:p,skipOverflowHiddenElements:g}=a,v="function"==typeof p?p:r=>r!==p;if(!t(r))throw TypeError("Invalid target");let m=document.scrollingElement||document.documentElement,b=[],w=r;for(;t(w)&&v(w);){if((w=l(w))===m){b.push(w);break}null!=w&&w===document.body&&n(w)&&!n(document.documentElement)||null!=w&&n(w,g)&&b.push(w)}let y=null!=(s=null==(i=window.visualViewport)?void 0:i.width)?s:innerWidth,x=null!=(d=null==(c=window.visualViewport)?void 0:c.height)?d:innerHeight,{scrollX:O,scrollY:M}=window,{height:E,width:D,top:S,right:k,bottom:R,left:C}=r.getBoundingClientRect(),{top:T,right:z,bottom:N,left:P}=(r=>{let a=window.getComputedStyle(r);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(r),B="start"===f||"nearest"===f?S-T:"end"===f?R+N:S+E/2-T+N,L="center"===h?C+D/2-P+z:"end"===h?k+z:C-P,W=[];for(let r=0;r<b.length;r++){let a=b[r],{height:i,width:s,top:c,right:d,bottom:p,left:g}=a.getBoundingClientRect();if("if-needed"===u&&S>=0&&C>=0&&R<=x&&k<=y&&(a===m&&!n(a)||S>=c&&R<=p&&C>=g&&k<=d))break;let v=getComputedStyle(a),w=parseInt(v.borderLeftWidth,10),T=parseInt(v.borderTopWidth,10),z=parseInt(v.borderRightWidth,10),N=parseInt(v.borderBottomWidth,10),P=0,F=0,A="offsetWidth"in a?a.offsetWidth-a.clientWidth-w-z:0,_="offsetHeight"in a?a.offsetHeight-a.clientHeight-T-N:0,j="offsetWidth"in a?0===a.offsetWidth?0:s/a.offsetWidth:0,I="offsetHeight"in a?0===a.offsetHeight?0:i/a.offsetHeight:0;if(m===a)P="start"===f?B:"end"===f?B-x:"nearest"===f?o(M,M+x,x,T,N,M+B,M+B+E,E):B-x/2,F="start"===h?L:"center"===h?L-y/2:"end"===h?L-y:o(O,O+y,y,w,z,O+L,O+L+D,D),P=Math.max(0,P+M),F=Math.max(0,F+O);else{P="start"===f?B-c-T:"end"===f?B-p+N+_:"nearest"===f?o(c,p,i,T,N+_,B,B+E,E):B-(c+i/2)+_/2,F="start"===h?L-g-w:"center"===h?L-(g+s/2)+A/2:"end"===h?L-d+z+A:o(g,d,s,w,z+A,L,L+D,D);let{scrollLeft:r,scrollTop:u}=a;P=0===I?0:Math.max(0,Math.min(u+P/I,a.scrollHeight-i/I+_)),F=0===j?0:Math.max(0,Math.min(r+F/j,a.scrollWidth-s/j+A)),B+=u-P,L+=r-F}W.push({el:a,top:P,left:F})}return W},dist_o=r=>!1===r?{block:"end",inline:"nearest"}:r===Object(r)&&0!==Object.keys(r).length?r:{block:"start",inline:"nearest"};function dist_e(r,a){if(!r.isConnected||!(r=>{let a=r;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(r))return;let i=(r=>{let a=window.getComputedStyle(r);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||
10,left:parseFloat(a.scrollMarginLeft)||0}})(r);if("object"==typeof a&&"function"==typeof a.behavior)return a.behavior(dist_r(r,a));let s="boolean"==typeof a||null==a?void 0:a.behavior;for(let{el:c,top:d,left:u}of dist_r(r,dist_o(a))){let r=d-i.top+i.bottom,a=u-i.left+i.right;c.scroll({top:r,left:a,behavior:s})}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.