1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2245],{12758:(n,e,t)=>{n.exports=t(19298)()},19298:(n,e,t)=>{"use strict";var o=t(53341);function r(){}function i(){}i.resetWarningCache=r,n.exports=function(){function n(n,e,t,r,i,a){if(a!==o){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return n}n.isRequired=n;var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:r};return t.PropTypes=t,t}},53341:n=>{"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},62245:(n,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>T});var o=t(95155),r=t(12115),i=t(12758),a=function(){return(a=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var r in e=arguments[t])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}).apply(this,arguments)},s={onActivate:i.func,onAddUndo:i.func,onBeforeAddUndo:i.func,onBeforeExecCommand:i.func,onBeforeGetContent:i.func,onBeforeRenderUI:i.func,onBeforeSetContent:i.func,onBeforePaste:i.func,onBlur:i.func,onChange:i.func,onClearUndos:i.func,onClick:i.func,onContextMenu:i.func,onCommentChange:i.func,onCompositionEnd:i.func,onCompositionStart:i.func,onCompositionUpdate:i.func,onCopy:i.func,onCut:i.func,onDblclick:i.func,onDeactivate:i.func,onDirty:i.func,onDrag:i.func,onDragDrop:i.func,onDragEnd:i.func,onDragGesture:i.func,onDragOver:i.func,onDrop:i.func,onExecCommand:i.func,onFocus:i.func,onFocusIn:i.func,onFocusOut:i.func,onGetContent:i.func,onHide:i.func,onInit:i.func,onInput:i.func,onKeyDown:i.func,onKeyPress:i.func,onKeyUp:i.func,onLoadContent:i.func,onMouseDown:i.func,onMouseEnter:i.func,onMouseLeave:i.func,onMouseMove:i.func,onMouseOut:i.func,onMouseOver:i.func,onMouseUp:i.func,onNodeChange:i.func,onObjectResizeStart:i.func,onObjectResized:i.func,onObjectSelected:i.func,onPaste:i.func,onPostProcess:i.func,onPostRender:i.func,onPreProcess:i.func,onProgressState:i.func,onRedo:i.func,onRemove:i.func,onReset:i.func,onSaveContent:i.func,onSelectionChange:i.func,onSetAttrib:i.func,onSetContent:i.func,onShow:i.func,onSubmit:i.func,onUndo:i.func,onVisualAid:i.func,onSkinLoadError:i.func,onThemeLoadError:i.func,onModelLoadError:i.func,onPluginLoadError:i.func,onIconsLoadError:i.func,onLanguageLoadError:i.func,onScriptsLoad:i.func,onScriptsLoadError:i.func},c=a({apiKey:i.string,licenseKey:i.string,id:i.string,inline:i.bool,init:i.object,initialValue:i.string,onEditorChange:i.func,value:i.string,tagName:i.string,tabIndex:i.number,cloudChannel:i.string,plugins:i.oneOfType([i.string,i.array]),toolbar:i.oneOfType([i.string,i.array]),disabled:i.bool,textareaName:i.string,tinymceScriptSrc:i.oneOfType([i.string,i.arrayOf(i.string),i.arrayOf(i.shape({src:i.string,async:i.bool,defer:i.bool}))]),rollback:i.oneOfType([i.number,i.oneOf([!1])]),scriptLoading:i.shape({async:i.bool,defer:i.bool,delay:i.number})},s),u=function(n){return"function"==typeof n},l=function(n){return n in s},p=function(n){return n.substr(2)},f=function(n,e,t,o,r,i,a){var s=Object.keys(r).filter(l),c=Object.keys(i).filter(l),u=s.filter(function(n){return void 0===i[n]}),f=c.filter(function(n){return void 0===r[n]});u.forEach(function(n){var e=p(n),o=a[e];t(e,o),delete a[e]}),f.forEach(function(t){var r=o(n,t),i=p(t);a[i]=r,e(i,r)})},d=0,h=function(n){var e=Date.now();return n+"_"+Math.floor(1e9*Math.random())+ ++d+String(e)},v=function(n){return null!==n&&("textarea"===n.tagName.toLowerCase()||"input"===n.tagName.toLowerCase())},y=function(n){return void 0===n||""===n?[]:Array.isArray(n)?n:n.split(" ")},g=function(n){if(!("isConnected"in Node.prototype)){for(var e=n,t=n.parentNode;null!=t;)t=(e=t).parentNode;return e===n.ownerDocument}return n.isConnected},m=function(n,e){void 0!==n&&(null!=n.mode&&"object"==typeof n.mode&&"function"==typeof n.mode.set?n.mode.set(e):n.setMode(e))},b=function(){return(b=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var r in e=arguments[t])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}).apply(this,arguments)},C=function(n,e,t){var o,r,i=n.createElement("script");i.referrerPolicy="origin",i.type="application/javascript",i.id=e.id,i.src=e.src,i.async=null!=(o=e.async)&&o,i.defer=null!=(r=e.defer)&&r;var a=function(){i.removeEventListener("load",a),i.removeEventListener("error",s),t(e.src)},s=function(n){i.removeEventListener("load",a),i.removeEventListener("error",s),t(e.src,n)};i.addEventListener("load",a),i.addEventListener("error",s),n.head&&n.head.appendChild(i)},k=function(n){var e={},t=function(n,t){var o=e[n];o.done=!0,o.error=t;for(var r=0,i=o.handlers;r<i.length;r++)(0,i[r])(n,t);o.handlers=[]};return{loadScripts:function(o,r,i){var a=function(n){return void 0!==i?i(n):console.error(n)};if(0===o.length)return void a(Error("At least one script must be provided"));for(var s=0,c=!1,u=function(n,e){c||(e?(c=!0,a(e)):++s===o.length&&r())},l=0;l<o.length;l++){var p=o[l],f=e[p.src];if(f)f.done?u(p.src,f.error):f.handlers.push(u);else{var d=h("tiny-");e[p.src]={id:d,src:p.src,done:!1,error:null,handlers:[u]},C(n,b({id:d},p),t)}}},deleteScripts:function(){for(var t,o=0,r=Object.values(e);o<r.length;o++){var i=r[o],a=n.getElementById(i.id);null!=a&&"SCRIPT"===a.tagName&&(null==(t=a.parentNode)||t.removeChild(a))}e={}},getDocument:function(){return n}}},E=function(){var n=[],e=function(e){var t=n.find(function(n){return n.getDocument()===e});return void 0===t&&(t=k(e),n.push(t)),t};return{loadList:function(n,t,o,r,i){var a=function(){return e(n).loadScripts(t,r,i)};o>0?setTimeout(a,o):a()},reinitialize:function(){for(var e=n.pop();null!=e;e=n.pop())e.deleteScripts()}}}(),S=function(n){return n&&n.tinymce?n.tinymce:null}
1,w=function(){var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])})(e,t)};return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}(),O=function(){return(O=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var r in e=arguments[t])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}).apply(this,arguments)},I="change keyup compositionend setcontent CommentChange",_=function(n){function e(e){var t,o,i,a=n.call(this,e)||this;return a.rollbackTimer=void 0,a.valueCursor=void 0,a.rollbackChange=function(){var n=a.editor,e=a.props.value;n&&e&&e!==a.currentContent&&n.undoManager.ignore(function(){if(n.setContent(e),a.valueCursor&&(!a.inline||n.hasFocus()))try{n.selection.moveToBookmark(a.valueCursor)}catch(n){}}),a.rollbackTimer=void 0},a.handleBeforeInput=function(n){if(void 0!==a.props.value&&a.props.value===a.currentContent&&a.editor&&(!a.inline||a.editor.hasFocus()))try{a.valueCursor=a.editor.selection.getBookmark(3)}catch(n){}},a.handleBeforeInputSpecial=function(n){("Enter"===n.key||"Backspace"===n.key||"Delete"===n.key)&&a.handleBeforeInput(n)},a.handleEditorChange=function(n){var e=a.editor;if(e&&e.initialized){var t=e.getContent();void 0===a.props.value||a.props.value===t||!1===a.props.rollback||a.rollbackTimer||(a.rollbackTimer=window.setTimeout(a.rollbackChange,"number"==typeof a.props.rollback?a.props.rollback:200)),t!==a.currentContent&&(a.currentContent=t,u(a.props.onEditorChange)&&a.props.onEditorChange(t,e))}},a.handleEditorChangeSpecial=function(n){("Backspace"===n.key||"Delete"===n.key)&&a.handleEditorChange(n)},a.initialise=function(n){void 0===n&&(n=0);var e,t,o,r=a.elementRef.current;if(r){if(!g(r)){if(0===n)setTimeout(function(){return a.initialise(1)},1);else if(n<100)setTimeout(function(){return a.initialise(n+1)},100);else throw Error("tinymce can only be initialised when in a document");return}var i,s,c=S(a.view);if(!c)throw Error("tinymce should have been loaded into global scope");var l=O(O(O(O({},a.props.init),{selector:void 0,target:r,readonly:a.props.disabled,inline:a.inline,plugins:(i=null==(e=a.props.init)?void 0:e.plugins,s=a.props.plugins,y(i).concat(y(s))),toolbar:null!=(t=a.props.toolbar)?t:null==(o=a.props.init)?void 0:o.toolbar}),a.props.licenseKey?{license_key:a.props.licenseKey}:{}),{setup:function(n){a.editor=n,a.bindHandlers({}),a.inline&&!v(r)&&n.once("PostRender",function(e){n.setContent(a.getInitialValue(),{no_events:!0})}),a.props.init&&u(a.props.init.setup)&&a.props.init.setup(n)},init_instance_callback:function(n){var e,t,o=a.getInitialValue();a.currentContent=null!=(e=a.currentContent)?e:n.getContent(),a.currentContent!==o&&(a.currentContent=o,n.setContent(o),n.undoManager.clear(),n.undoManager.add(),n.setDirty(!1));var r=null!=(t=a.props.disabled)&&t;m(a.editor,r?"readonly":"design"),a.props.init&&u(a.props.init.init_instance_callback)&&a.props.init.init_instance_callback(n)}});a.inline||(r.style.visibility=""),v(r)&&(r.value=a.getInitialValue()),c.init(l)}},a.id=a.props.id||h("tiny-react"),a.elementRef=r.createRef(),a.inline=null!=(i=null!=(t=a.props.inline)?t:null==(o=a.props.init)?void 0:o.inline)&&i,a.boundHandlers={},a}return w(e,n),Object.defineProperty(e.prototype,"view",{get:function(){var n,e;return null!=(e=null==(n=this.elementRef.current)?void 0:n.ownerDocument.defaultView)?e:window},enumerable:!1,configurable:!0}),e.prototype.componentDidUpdate=function(n){var e,t,o=this;if(this.rollbackTimer&&(clearTimeout(this.rollbackTimer),this.rollbackTimer=void 0),this.editor&&(this.bindHandlers(n),this.editor.initialized)){if(this.currentContent=null!=(e=this.currentContent)?e:this.editor.getContent(),"string"==typeof this.props.initialValue&&this.props.initialValue!==n.initialValue)this.editor.setContent(this.props.initialValue),this.editor.undoManager.clear(),this.editor.undoManager.add(),this.editor.setDirty(!1);else if("string"==typeof this.props.value&&this.props.value!==this.currentContent){var r=this.editor;
1r.undoManager.transact(function(){if(!o.inline||r.hasFocus())try{n=r.selection.getBookmark(3)}catch(n){}var n,e=o.valueCursor;if(r.setContent(o.props.value),!o.inline||r.hasFocus())for(var t=0,i=[n,e];t<i.length;t++){var a=i[t];if(a)try{r.selection.moveToBookmark(a),o.valueCursor=a;break}catch(n){}}})}if(this.props.disabled!==n.disabled){var i=null!=(t=this.props.disabled)&&t;m(this.editor,i?"readonly":"design")}}},e.prototype.componentDidMount=function(){var n,e,t,o,r,i=this;null!==S(this.view)?this.initialise():Array.isArray(this.props.tinymceScriptSrc)&&0===this.props.tinymceScriptSrc.length?null==(e=(n=this.props).onScriptsLoadError)||e.call(n,Error("No `tinymce` global is present but the `tinymceScriptSrc` prop was an empty array.")):(null==(t=this.elementRef.current)?void 0:t.ownerDocument)&&E.loadList(this.elementRef.current.ownerDocument,this.getScriptSources(),null!=(r=null==(o=this.props.scriptLoading)?void 0:o.delay)?r:0,function(){var n,e;null==(e=(n=i.props).onScriptsLoad)||e.call(n),i.initialise()},function(n){var e,t;null==(t=(e=i.props).onScriptsLoadError)||t.call(e,n)})},e.prototype.componentWillUnmount=function(){var n=this,e=this.editor;e&&(e.off(I,this.handleEditorChange),e.off(this.beforeInputEvent(),this.handleBeforeInput),e.off("keypress",this.handleEditorChangeSpecial),e.off("keydown",this.handleBeforeInputSpecial),e.off("NewBlock",this.handleEditorChange),Object.keys(this.boundHandlers).forEach(function(t){e.off(t,n.boundHandlers[t])}),this.boundHandlers={},e.remove(),this.editor=void 0)},e.prototype.render=function(){return this.inline?this.renderInline():this.renderIframe()},e.prototype.beforeInputEvent=function(){return window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges?"beforeinput SelectionChange":"SelectionChange"},e.prototype.renderInline=function(){var n=this.props.tagName;return r.createElement(void 0===n?"div":n,{ref:this.elementRef,id:this.id,tabIndex:this.props.tabIndex})},e.prototype.renderIframe=function(){return r.createElement("textarea",{ref:this.elementRef,style:{visibility:"hidden"},name:this.props.textareaName,id:this.id,tabIndex:this.props.tabIndex})},e.prototype.getScriptSources=function(){var n,e,t=null==(n=this.props.scriptLoading)?void 0:n.async,o=null==(e=this.props.scriptLoading)?void 0:e.defer;if(void 0!==this.props.tinymceScriptSrc)return"string"==typeof this.props.tinymceScriptSrc?[{src:this.props.tinymceScriptSrc,async:t,defer:o}]:this.props.tinymceScriptSrc.map(function(n){return"string"==typeof n?{src:n,async:t,defer:o}:n});var r=this.props.cloudChannel,i=this.props.apiKey?this.props.apiKey:"no-api-key";return[{src:"https://cdn.tiny.cloud/1/".concat(i,"/tinymce/").concat(r,"/tinymce.min.js"),async:t,defer:o}]},e.prototype.getInitialValue=function(){return"string"==typeof this.props.initialValue?this.props.initialValue:"string"==typeof this.props.value?this.props.value:""},e.prototype.bindHandlers=function(n){var e=this;if(void 0!==this.editor){t=this.editor,o=this.props,r=this.boundHandlers,f(function(n){return e.props[n]},t.on.bind(t),t.off.bind(t),function(n,e){return function(o){var r;return null==(r=n(e))?void 0:r(o,t)}},n,o,r);var t,o,r,i=function(n){return void 0!==n.onEditorChange||void 0!==n.value},a=i(n),s=i(this.props);!a&&s?(this.editor.on(I,this.handleEditorChange),this.editor.on(this.beforeInputEvent(),this.handleBeforeInput),this.editor.on("keydown",this.handleBeforeInputSpecial),this.editor.on("keyup",this.handleEditorChangeSpecial),this.editor.on("NewBlock",this.handleEditorChange)):a&&!s&&(this.editor.off(I,this.handleEditorChange),this.editor.off(this.beforeInputEvent(),this.handleBeforeInput),this.editor.off("keydown",this.handleBeforeInputSpecial),this.editor.off("keyup",this.handleEditorChangeSpecial),this.editor.off("NewBlock",this.handleEditorChange))}},e.propTypes=c,e.defaultProps={cloudChannel:"7"},e}(r.Component);function T(n){let{field:e}=n;return(0,o.jsx)(_,{id:"editor-".concat(e.name),apiKey:"5x1qz8hzv3remcm3bn0h40wsdrh68fuiya6iaqd6m9mmfxzu",value:e.value,init:{height:300,suffix:".min",plugins:["advlist","autolink","lists","link","preview","anchor","searchreplace","code","table","help","wordcount"],toolbar:"undo redo | blocks | bold italic preview | hr link | bullist numlist alignleft aligncenter alignright al
1ignjustify | outdent indent forecolor backcolor | table code | removeformat | help"},onEditorChange:n=>e.onChange(n)})}}}]);
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.