1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5780],{31430:(e,t,n)=>{n.d(t,{B:()=>I});var r=n(48947),i=function(){};i.prototype.append=function(e){return e.length?(e=i.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},i.prototype.prepend=function(e){return e.length?i.from(e).append(this):this},i.prototype.appendInner=function(e){return new o(this,e)},i.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?i.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},i.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},i.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},i.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},i.from=function(e){return e instanceof i?e:e&&e.length?new s(e):i.empty};var s=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(!1===e(this.values[i],r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(i);i.empty=new s([]);var o=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(n,i),r)||n>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)||n<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),n,r))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(i),p=n(52870),h=n(15701);class l{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let n,r,i,s;if(0==this.eventCount)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}t&&(r=(n=this.remapping(o,this.items.length)).maps.length);let p=e.tr,h=[],u=[];return this.items.forEach((e,t)=>{if(!e.step){n||(r=(n=this.remapping(o,t+1)).maps.length),r--,u.push(e);return}if(n){u.push(new a(e.map));let t=e.step.map(n.slice(r)),i;t&&p.maybeStep(t).doc&&(i=p.mapping.maps[p.mapping.maps.length-1],h.push(new a(i,void 0,void 0,h.length+u.length))),r--,i&&n.appendMap(i,r)}else p.maybeStep(e.step);if(e.selection)return i=n?e.selection.map(n.slice(r)):e.selection,s=new l(this.items.slice(0,o).append(u.reverse().concat(h)),this.eventCount-1),!1},this.items.length,0),{remaining:s,transform:p,selection:i}}addTransform(e,t,n,r){var i,s;let o,p=[],h=this.eventCount,u=this.items,f=!r&&u.length?u.get(u.length-1):null;for(let n=0;n<e.steps.length;n++){let i=e.steps[n].invert(e.docs[n]),s=new a(e.mapping.maps[n],i,t),o;(o=f&&f.merge(s))&&(s=o,n?p.pop():u=u.slice(0,u.length-1)),p.push(s),t&&(h++,t=void 0),r||(f=s)}let c=h-n.depth;return c>
1d&&(i=u,s=c,i.forEach((e,t)=>{if(e.selection&&0==s--)return o=t,!1}),u=i.slice(o),h-=c),new l(u.append(p),h)}remapping(e,t){let n=new p.X9;return this.items.forEach((t,r)=>{let i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(e){return 0==this.eventCount?this:new l(this.items.append(e.map(e=>new a(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),i=e.mapping,s=e.steps.length,o=this.eventCount;this.items.forEach(e=>{e.selection&&o--},r);let p=t;this.items.forEach(t=>{let r=i.getMirror(--p);if(null==r)return;s=Math.min(s,r);let h=i.maps[r];if(t.step){let s=e.steps[r].invert(e.docs[r]),l=t.selection&&t.selection.map(i.slice(p+1,r));l&&o++,n.push(new a(h,s,l))}else n.push(new a(h))},r);let h=[];for(let e=t;e<s;e++)h.push(new a(i.maps[e]));let u=new l(this.items.slice(0,r).append(h).append(n),o);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-n.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],s=0;return this.items.forEach((i,o)=>{if(o>=e)r.push(i),i.selection&&s++;else if(i.step){let e=i.step.map(t.slice(n)),o=e&&e.getMap();if(n--,o&&t.appendMap(o,n),e){let p=i.selection&&i.selection.map(t.slice(n));p&&s++;let h=new a(o.invert(),e,p),l,u=r.length-1;(l=r.length&&r[u].merge(h))?r[u]=l:r.push(h)}}else i.map&&n--},this.items.length,0),new l(i.from(r.reverse()),s)}}l.empty=new l(i.empty,0);class a{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new a(t.getMap().invert(),t,this.selection)}}}class u{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}let d=20;function f(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function c(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),s=t.map(e[r+1],-1);i<=s&&n.push(i,s)}return n}let m=!1,g=null;function v(e){let t=e.plugins;if(g!=t){m=!1,g=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){m=!0;break}}return m}let y=new h.hs("history"),w=new h.hs("closeHistory");function M(e,t){return(n,r)=>{let i=y.getState(n);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(r){let s=function(e,t,n){let r=v(t),i=y.get(t).spec.config,s=(n?e.undone:e.done).popEvent(t,r);if(!s)return null;let o=s.selection.resolve(s.transform.doc),p=(n?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),i,r),h=new u(n?p:s.remaining,n?s.remaining:p,null,0,-1);return s.transform.setSelection(o).setMeta(y,{redo:n,historyState:h})}(i,n,e);s&&r(t?s.scrollIntoView():s)}return!0}}let E=M(!1,!0),C=M(!0,!0);M(!1,!1),M(!0,!1);let I=r.YY.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>e=>{let{state:t,dispatch:n}=e;return E(t,n)},redo:()=>e=>{let{state:t,dispatch:n}=e;return C(t,n)}}),addProseMirrorPlugins(){return[function(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new h.k_({key:y,state:{init:()=>new u(l.empty,l.empty,null,0,-1),apply:(t,n,r)=>(function(e,t,n,r){let i=n.getMeta(y),s;if(i)return i.historyState;n.getMeta(w)&&(e=new u(e.done,e.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(o&&o.getMeta(y))if(o.getMeta(y).redo)return new u(e.done.addTransform(n,void 0,r,v(t)),e.undone,f(n.mapping.maps),e.prevTime,e.prevComposition);else return new u(e.done,e.undone.addTransform(n,void 0,r,v(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||o&&!1===o.getMeta("addToHistory"))if(s=n.getMeta("rebased"))return new u(e.done.rebased(n,s),e.undone.rebased(n,s),c(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);else return new u(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),c(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let i=n.getMeta("composition"),s=0==e.prevTime||!o&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;
1return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}(n,e.prevRanges)),p=o?c(e.prevRanges,n.mapping):f(n.mapping.maps);return new u(e.done.addTransform(n,s?t.selection.getBookmark():void 0,r,v(t)),l.empty,p,n.time,null==i?e.prevComposition:i)}})(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?E:"historyRedo"==n?C:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}})},89501:(e,t,n)=>{n.d(t,{O:()=>o});var r=n(48947),i=n(15701),s=n(47833);let o=r.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something â¦",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new i.k_({key:new i.hs("placeholder"),props:{decorations:e=>{let{doc:t,selection:n}=e,i=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=n,p=[];if(!i)return null;let h=this.editor.isEmpty;return t.descendants((e,t)=>{let n=o>=t&&o<=t+e.nodeSize,i=!e.isLeaf&&(0,r.Op)(e);if((n||!this.options.showOnlyCurrent)&&i){let r=[this.options.emptyNodeClass];h&&r.push(this.options.emptyEditorClass);let i=s.NZ.node(t,t+e.nodeSize,{class:r.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:e,pos:t,hasAnchor:n}):this.options.placeholder});p.push(i)}return this.options.includeChildren}),s.zF.create(t,p)}}})]}})}}]);
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.