1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7203],{7377:()=>{},57203:(e,t,r)=>{"use strict";let n;r.r(t),r.d(t,{RichText:()=>G});var o=r(95155),i=r(82274),a=r(33113),l=r(30746),s=r(30303),c=r(83282),u=r(12115),f=r(63941),d=r(86799),h={isHistory:e=>(0,d.Q)(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||f.I.isOperationList(e.redos[0].operations))&&(0===e.undos.length||f.I.isOperationList(e.undos[0].operations))};new WeakMap;var p=new WeakMap,g=new WeakMap,y={isHistoryEditor:e=>h.isHistory(e.history)&&f.KE.isEditor(e),isMerging:e=>g.get(e),isSaving:e=>p.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var r=y.isMerging(e);g.set(e,!1),t(),g.set(e,r)},withoutSaving(e,t){var r=y.isSaving(e);p.set(e,!1),t(),p.set(e,r)}},v=r(49059);let b=[{children:[{text:""}]}],m=(e,{req:t,required:r})=>{let{t:n}=t;if(r){let t=JSON.stringify(b);return!!e&&JSON.stringify(e)!==t||n("validation:required")}return!0};var w=r(20143);let x={"mod+`":"code","mod+b":"bold","mod+i":"italic","mod+u":"underline"};var O=r(28181);let j=["h1","h2","h3","h4","h5","h6","link"];function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k=new WeakMap,P=new WeakMap;class N{}class S extends N{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:r}=e;this.offset=t,this.path=r}}class A extends N{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:r}=e;this.offset=t,this.path=r}}var _=e=>k.get(e),C=e=>P.get(e);function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach(function(t){E(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var T=new WeakSet,R=e=>{var t=[],r=e=>{if(null!=e){var n=t[t.length-1];if("string"==typeof e){var o={text:e};T.add(o),e=o}if(f.EY.isText(e)){var i=e;f.EY.isText(n)&&T.has(n)&&T.has(i)&&f.EY.equals(n,i,{loose:!0})?n.text+=i.text:t.push(i)}else if(f.Hg.isElement(e))t.push(e);else if(e instanceof N){var a=t[t.length-1];f.EY.isText(a)||(r(""),a=t[t.length-1]),e instanceof S?((e,t)=>{var r=e.text.length;k.set(e,[r,t])})(a,e):e instanceof A&&((e,t)=>{var r=e.text.length;P.set(e,[r,t])})(a,e)}else throw Error("Unexpected hyperscript child object: ".concat(e))}};for(var n of e.flat(1/0))r(n);return t};function L(e,t,r){return D(D({},t),{},{children:R(r)})}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach(function(t){E(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var F={anchor:function(e,t,r){return new S(t)},cursor:function(e,t,r){return[new S(t),new A(t)]},editor:(n=f.ie,(e,t,r)=>{var o,i=[];for(var a of r)f.Q6.isRange(a)?o=a:i.push(a);var l=R(i),s={},c=n();for(var[u,d]of(Object.assign(c,t),c.children=l,f.bP.texts(c))){var h=_(u),p=C(u);if(null!=h){var[g]=h;s.anchor={path:d,offset:g}}if(null!=p){var[y]=p;s.focus={path:d,offset:y}}}if(s.anchor&&!s.focus)throw Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!s.anchor&&s.focus)throw Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />
1`. For collapsed selections, use `<cursor />` instead.");return null!=o?c.selection=o:f.Q6.isRange(s)&&(c.selection=s),c}),element:L,focus:function(e,t,r){return new A(t)},fragment:function(e,t,r){return R(r)},selection:function(e,t,r){var n=r.find(e=>e instanceof S),o=r.find(e=>e instanceof A);if(!n||null==n.offset||null==n.path)throw Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!o||null==o.offset||null==o.path)throw Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return D({anchor:{offset:n.offset,path:n.path},focus:{offset:o.offset,path:o.path}},t)},text:function(e,t,r){var n=R(r);if(n.length>1)throw Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[o]=n;if(null==o&&(o={text:""}),!f.EY.isText(o))throw Error("\n The <text> hyperscript tag can only contain text content as children.");return T.delete(o),Object.assign(o,t),o}},K=function(){let e;var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:r={}}=t,n=(e=>{var t={};for(var r in e)!function(r){var n=e[r];if("object"!=typeof n)throw Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(r,"> tag you passed: ").concat(n));t[r]=(e,t,r)=>L("element",H(H({},n),t),r)}(r);return t})(r);return e=H(H(H({},F),n),t.creators),function(t,r){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var a=e[t];if(!a)throw Error("No hyperscript creator found for tag: <".concat(t,">"));return null==r&&(r={}),(0,d.Q)(r)||(o=[r].concat(o),r={}),a(t,r,o=o.filter(e=>!!e).flat())}}();let q={A:e=>({type:"link",newTab:"_blank"===e.getAttribute("target"),url:e.getAttribute("href")}),BLOCKQUOTE:()=>({type:"blockquote"}),H1:()=>({type:"h1"}),H2:()=>({type:"h2"}),H3:()=>({type:"h3"}),H4:()=>({type:"h4"}),H5:()=>({type:"h5"}),H6:()=>({type:"h6"}),LI:()=>({type:"li"}),OL:()=>({type:"ol"}),P:()=>({}),PRE:()=>({type:"code"}),UL:()=>({type:"ul"})},Y={CODE:()=>({code:!0}),DEL:()=>({strikethrough:!0}),EM:()=>({italic:!0}),I:()=>({italic:!0}),S:()=>({strikethrough:!0}),STRONG:()=>({bold:!0}),U:()=>({underline:!0})},I=e=>{if(3===e.nodeType)return e.textContent;if(1!==e.nodeType)return null;if("BR"===e.nodeName)return"\n";let{nodeName:t}=e,r=e;"PRE"===t&&e.childNodes[0]&&"CODE"===e.childNodes[0].nodeName&&([r]=e.childNodes);let n=Array.from(r.childNodes).map(I).flat();if(0===n.length&&(n=[{text:""}]),"BODY"===e.nodeName)return K("fragment",{},n);if(q[t])return K("element",q[t](e),n);if(Y[t]){let r=Y[t](e);return n.map(e=>K("text",r,e))}return n};var U=r(35676),W=r(46324),Q=r(81738),J=r(78942);r(7377);let z="rich-text",G=e=>{var t,r;let{elements:n,field:d,field:{name:h,admin:{className:p,description:g,placeholder:E,readOnly:k}={},label:P,localized:N,required:S},leaves:A,path:_,plugins:C,readOnly:B,schemaPath:D,validate:T=m}=e,R=null!=D?D:h,{i18n:L}=(0,a.d)(),M=(0,u.useRef)(null),H=(0,u.useRef)(null),F=(0,l.useEditDepth)(),K=(0,u.useCallback)((e,t)=>{if("function"==typeof T)return T(e,{...t,req:{t:L.t},required:S})},[T,S,L]),{customComponents:{Description:q,Error:Y,Label:G}={},disabled:V,initialValue:$,path:X,setValue:Z,showError:ee,value:et}=(0,l.useField)({potentiallyStalePath:_,validate:K}),er=B||k||V,en=(0,u.useMemo)(()=>{let e=(e=>(e.shouldBreakOutOnEnter=e=>j.includes(String(e.type)),e))((e=>{var{apply:t}=e;return e.history={undos:[],redos:[]},e.redo=()=>{var{history:t}=e,{redos:r}=t;if(r.length>0){var n=r[r.length-1];n.selectionBefore&&f.gB.setSelection(e,n.selectionBefore),y.withoutSaving(e,()=>{f.KE.withoutNormalizing(e,()=>{for(var t of n.operations)e.apply(t)})}),t.redos.pop(),t.undos.push(n)}},e.undo=()=>{var{history:t}=e,{undos:r}=t;if(r.length>0){var n=r[r.length-1];y.withoutSaving(e,()=>{f.KE.withoutNormalizing(e,()=>{for(var t of n.operations.map(f.I.inverse).reverse())e.apply(t);n.selectionBefore&&f.gB.setSelection(e,n.selectionBefore)})}),t.redos.push(n),t.undos.pop()}},e.apply=r=>{var{operations:n,history:o}=e,{undos:i}=o,a=i[i.length-1],l=a&&a.operations[a.operations.length-1],s=y.isSaving(e),c=y.isMerging(e);if(null==s&&(s="set_selection"!==r.type),s){if(null==c&&(c=null!=a&&(0!==n.length||((e,t)=>!!(t&&"insert_text"===e.type&&"insert_text"===t.type&&e.offset===t.offset+t.text.length&&f.wA.equals(e.path,t.path)||t&&"remove_text"===e.type&&"remove_text"===t.type&&e.offset+e.text.length===t.offset&&f.wA.equals(e.path,t.path)))(r,l))),a&&c)a.operations.push(r);else{var u={operations:[r],selectionBefore:e.selection};i.push(u)}for(;i.length>100;)i.shift();o.redos=[]}t(r)},e})((0,v.o$)((0,f.ie)())));return e=(e=>{let{insertData:t}=e;return e.insertData=r=>{if(!r.types.includes("application/x-slate-fragment")){let t=r.getData("text/html");if(t){let r=I(new DOMParser().parseFromString(t,"text/html").body);f.gB.insertFragment(e,r);return}}t(r)},e})(e),C.length&&(e=C.reduce((e,t)=>
1t(e),e)),e},[C]),eo=(0,u.useCallback)(t=>{let{attributes:r,children:i,element:a}=t,l=n[a.type],s=null==l?void 0:l.Element,c={...r};if(a.textAlign)if("relationship"===a.type||"upload"===a.type)switch(a.textAlign){case"center":c={...c,style:{marginLeft:"auto",marginRight:"auto"}};break;case"left":c={...c,style:{marginRight:"auto"}};break;case"right":c={...c,style:{marginLeft:"auto"}};break;default:c={...c,style:{textAlign:a.textAlign}}}else if("li"===a.type)switch(a.textAlign){case"center":c={...c,style:{listStylePosition:"inside",textAlign:"center"}};break;case"right":c={...c,style:{listStylePosition:"inside",textAlign:"right"}};break;default:c={...c,style:{listStylePosition:"outside",textAlign:"left"}}}else c={...c,style:{textAlign:a.textAlign}};return s?(0,o.jsx)(W._,{attributes:c,childNodes:i,editorRef:M,element:a,fieldProps:e,path:X,schemaPath:R,children:s}):(0,o.jsx)("div",{...c,children:i})},[n,X,e,R]),ei=(0,u.useCallback)(t=>{let{attributes:r,children:n,leaf:i}=t,a=Object.entries(A).filter(e=>{let[t]=e;return i[t]});return a.length>0?a.reduce((t,n,a)=>{let[,l]=n;if(null==l?void 0:l.Leaf){let n=l.Leaf;return(0,o.jsx)(J.m,{attributes:r,editorRef:M,fieldProps:e,leaf:i,path:X,result:t,schemaPath:R,children:n},a)}return t},(0,o.jsx)("span",{...r,children:n})):(0,o.jsx)("span",{...r,children:n})},[X,e,R,A]),ea=(0,u.useCallback)(e=>{let t=null==en?void 0:en.operations.filter(e=>!!e&&"set_selection"!==e.type);t&&Array.isArray(t)&&t.length>0&&!er&&e!==b&&e!==et&&Z(e)},[null==en?void 0:en.operations,er,Z,et]);(0,u.useEffect)(()=>{function e(e){var t;((null==(t=H.current)?void 0:t.querySelectorAll('button, a, [role="button"]'))||[]).forEach(t=>{let r="BUTTON"===t.tagName,n="disabled"===e;t.setAttribute("tabIndex",n?"-1":"0"),r&&t.setAttribute("disabled",n?"disabled":null)})}return er&&e("disabled"),()=>{er&&e("enabled")}},[er]);let el=(0,u.useMemo)(()=>(0,s.FR)(d),[d]),es=[z,"field-type",p,ee&&"error",er&&"".concat(z,"--read-only")].filter(Boolean).join(" "),ec=et;if("string"==typeof ec)try{ec=JSON.parse(ec)}catch(e){ec=null}return ec||(ec=b),(0,o.jsxs)("div",{className:es,style:el,children:[G||(0,o.jsx)(l.FieldLabel,{label:P,localized:N,path:X,required:S}),(0,o.jsxs)("div",{className:"".concat(z,"__wrap"),children:[(0,o.jsx)(l.RenderCustomComponent,{CustomComponent:Y,Fallback:(0,o.jsx)(l.FieldError,{path:X,showError:ee})}),(0,o.jsx)(v.A,{editor:en,onChange:ea,value:ec,children:(0,o.jsxs)("div",{className:"".concat(z,"__wrapper"),children:[(null==(t=Object.keys(n))?void 0:t.length)+(null==(r=Object.keys(A))?void 0:r.length)>0&&(0,o.jsx)("div",{className:["".concat(z,"__toolbar"),F>1&&"".concat(z,"__drawerIsOpen")].filter(Boolean).join(" "),ref:H,children:(0,o.jsxs)("div",{className:"".concat(z,"__toolbar-wrap"),children:[Object.values(n).map(t=>{let r=null==t?void 0:t.Button;return r?(0,o.jsx)(U.C,{disabled:er,fieldProps:e,path:X,schemaPath:R,children:r},t.name):null}),Object.values(A).map(t=>{let r=null==t?void 0:t.Button;return r?(0,o.jsx)(Q.c,{fieldProps:e,path:X,schemaPath:R,children:r},t.name):null})]})}),(0,o.jsx)("div",{className:"".concat(z,"__editor"),ref:M,children:(0,o.jsx)(v.Fo,{className:"".concat(z,"__input"),id:"field-".concat(X.replace(/\./g,"__")),onKeyDown:e=>{if("Enter"===e.key)if(e.shiftKey)e.preventDefault(),en.insertText("\n");else{let t=f.bP.descendant(en,en.selection.anchor.path.slice(0,-1));if(f.Hg.isElement(t)&&en.shouldBreakOutOnEnter(t)){e.preventDefault();let t=f.bP.descendant(en,en.selection.anchor.path);f.EY.isText(t)&&String(t.text).length===en.selection.anchor.offset?f.gB.insertNodes(en,{children:[{text:""}]}):(f.gB.splitNodes(en),f.gB.setNodes(en,{}))}}if("Backspace"===e.key){let t=f.bP.descendant(en,en.selection.anchor.path.slice(0,-1));if(f.Hg.isElement(t)&&"li"===t.type){let t=f.bP.descendant(en,en.selection.anchor.path);f.EY.isText(t)&&0===String(t.text).length&&(e.preventDefault(),f.gB.unwrapNodes(en,{match:e=>f.Hg.isElement(e)&&w.g.includes(e.type),mode:"lowest",split:!0}),f.gB.setNodes(en,{type:void 0}))}else en.isVoid(t)&&f.gB.removeNodes(en)}Object.keys(x).forEach(t=>{if((0,c.v_)(t,e)){e.preventDefault();let r=x[t];(0,O.b)(en,r)}})},placeholder:(0,i.s)(E,L),readOnly:er,renderElement:eo,renderLeaf:ei,spellCheck:!0})})]})},JSON.stringify({initialValue:$,path:X})),(0,o.jsx)(l.RenderCustomComponent,{CustomComponent:q,Fallback:(0,o.jsx)(l.FieldDescription,{description:g,path:X})})]})]})}},83282:(e,t)=>{"use strict";for(var r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},i={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},a=1;a<20;a++)i["f"+a]=111+a;function l(e){return o[e=e.toLowerCase()]||e}t.v_=function(e,t,r){!t||"byKey"in t||(r=t,t=null),Array.isArray(e)||(e=[e]);var a=e.map(function(e){return function(e,t){var r=t&&t.byKey,a={},s=(e=e.replace("++","+add")).split("+"),c=s.length;for(var u in n)a[n[u]]=!1;var f=!0,d=!1,h=void 0;try{for(var p,g=s[Symbol.iterator]();!(f=(p=g.next()).done);f=!0){var y=p.value,v=y.endsWith("?")&&y.length>1;v&&(y=y.slice(0,-1));var b=l(y),m=n[b];if(y.length>1&&!m&&!o[y]&&!i[b])throw TypeError('Unknown modifier: "'+y+'"');1!==c&&m||(r?a.key=b:a.which=function(e){return i[e=l(e)]||e.toUpperCase().charCo
1deAt(0)}(y)),m&&(a[m]=!v||null)}}catch(e){d=!0,h=e}finally{try{!f&&g.return&&g.return()}finally{if(d)throw h}}return a}(e,t)}),s=function(e){return a.some(function(t){return function(e,t){for(var r in e){var n=e[r],o=void 0;if(null!=n&&(null!=(o="key"===r&&null!=t.key?t.key.toLowerCase():"which"===r?91===n&&93===t.which?91:t.which:t[r])||!1!==n)&&o!==n)return!1}return!0}(t,e)})};return null==r?s:s(r)}}}]);
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.