1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a11221-842e-0000-df20-67b5a60582a7";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="ca5c403f-318b-52df-8ae6-16bcdc0e7bc1")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34664],{13812:(t,e,r)=>{var n=r(2315),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=n.useState,s=n.useEffect,u=n.useLayoutEffect,a=n.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!i(t,r)}catch(t){return!0}}var l="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),n=o({inst:{value:r,getSnapshot:e}}),i=n[0].inst,l=n[1];return u(function(){i.value=r,i.getSnapshot=e,c(i)&&l({inst:i})},[t,r,e]),s(function(){return c(i)&&l({inst:i}),t(function(){c(i)&&l({inst:i})})},[t]),a(r),r};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},34664:(t,e,r)=>{r.d(e,{$Z$:()=>F,hGv:()=>Y,erU:()=>W});var n=r(2315),i=r(25002),o=r(57145),s=r(68987),u=r(49889);let{getOwnPropertyNames:a,getOwnPropertySymbols:c}=Object,{hasOwnProperty:l}=Object.prototype;function h(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function d(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);let{cache:i}=n,o=i.get(e),s=i.get(r);if(o&&s)return o===r&&s===e;i.set(e,r),i.set(r,e);let u=t(e,r,n);return i.delete(e),i.delete(r),u}}function f(t){return a(t).concat(c(t))}let p=Object.hasOwn||((t,e)=>l.call(t,e));function b(t,e){return t===e||!t&&!e&&t!=t&&e!=e}let{getOwnPropertyDescriptor:v,keys:m}=Object;function y(t,e){return t.byteLength===e.byteLength&&A(new Uint8Array(t),new Uint8Array(e))}function g(t,e,r){let n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function E(t,e){return t.byteLength===e.byteLength&&A(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function S(t,e){return b(t.getTime(),e.getTime())}function C(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function w(t,e){return t===e}function j(t,e,r){let n,i,o=t.size;if(o!==e.size)return!1;if(!o)return!0;let s=Array(o),u=t.entries(),a=0;for(;(n=u.next())&&!n.done;){let o=e.entries(),u=!1,c=0;for(;(i=o.next())&&!i.done;){if(s[c]){c++;continue}let o=n.value,l=i.value;if(r.equals(o[0],l[0],a,c,t,e,r)&&r.equals(o[1],l[1],o[0],l[0],t,e,r)){u=s[c]=!0;break}c++}if(!u)return!1;a++}return!0}function x(t,e,r){let n=m(t),i=n.length;if(m(e).length!==i)return!1;for(;i-- >0;)if(!I(t,e,r,n[i]))return!1;return!0}function D(t,e,r){let n,i,o,s=f(t),u=s.length;if(f(e).length!==u)return!1;for(;u-- >0;)if(!I(t,e,r,n=s[u])||(i=v(t,n),o=v(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function O(t,e){return b(t.valueOf(),e.valueOf())}function T(t,e){return t.source===e.source&&t.flags===e.flags}function R(t,e,r){let n,i,o=t.size;if(o!==e.size)return!1;if(!o)return!0;let s=Array(o),u=t.values();for(;(n=u.next())&&!n.done;){let o=e.values(),u=!1,a=0;for(;(i=o.next())&&!i.done;){if(!s[a]&&r.equals(n.value,i.value,n.value,i.value,t,e,r)){u=s[a]=!0;break}a++}if(!u)return!1}return!0}function A(t,e){let r=t.byteLength;if(e.byteLength!==r||t.byteOffset!==e.byteOffset)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function N(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function I(t,e,r,n){return("_owner"===n||"__o"===n||"__v"===n)&&(!!t.$$typeof||!!e.$$typeof)||p(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}let q={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
2]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},U=Object.prototype.toString,M=k();function k(t={}){let{circular:e=!1,createInternalComparator:r,createState:n,strict:i=!1}=t,o=function({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:s,areNumbersEqual:u,areObjectsEqual:a,arePrimitiveWrappersEqual:c,areRegExpsEqual:l,areSetsEqual:h,areTypedArraysEqual:d,areUrlsEqual:f,unknownTagComparators:p}){return function(b,v,m){if(b===v)return!0;if(null==b||null==v)return!1;let y=typeof b;if(y!==typeof v)return!1;if("object"!==y)return"number"===y?u(b,v,m):"function"===y&&o(b,v,m);let g=b.constructor;if(g!==v.constructor)return!1;if(g===Object)return a(b,v,m);if(Array.isArray(b))return e(b,v,m);if(g===Date)return n(b,v,m);if(g===RegExp)return l(b,v,m);if(g===Map)return s(b,v,m);if(g===Set)return h(b,v,m);let E=U.call(b);if("[object Date]"===E)return n(b,v,m);if("[object RegExp]"===E)return l(b,v,m);if("[object Map]"===E)return s(b,v,m);if("[object Set]"===E)return h(b,v,m);if("[object Object]"===E)return"function"!=typeof b.then&&"function"!=typeof v.then&&a(b,v,m);if("[object URL]"===E)return f(b,v,m);if("[object Error]"===E)return i(b,v,m);if("[object Arguments]"===E)return a(b,v,m);if(q[E])return d(b,v,m);if("[object ArrayBuffer]"===E)return t(b,v,m);if("[object DataView]"===E)return r(b,v,m);if("[object Boolean]"===E||"[object Number]"===E||"[object String]"===E)return c(b,v,m);if(p){let t=p[E];if(!t){let e=null!=b?b[Symbol.toStringTag]:void 0;e&&(t=p[e])}if(t)return t(b,v,m)}return!1}}(function({circular:t,createCustomConfig:e,strict:r}){let n={areArrayBuffersEqual:y,areArraysEqual:r?D:g,areDataViewsEqual:E,areDatesEqual:S,areErrorsEqual:C,areFunctionsEqual:w,areMapsEqual:r?h(j,D):j,areNumbersEqual:b,areObjectsEqual:r?D:x,arePrimitiveWrappersEqual:O,areRegExpsEqual:T,areSetsEqual:r?h(R,D):R,areTypedArraysEqual:r?h(A,D):A,areUrlsEqual:N,unknownTagComparators:void 0};if(e&&(n=Object.assign({},n,e(n))),t){let t=d(n.areArraysEqual),e=d(n.areMapsEqual),r=d(n.areObjectsEqual),i=d(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:t,areMapsEqual:e,areObjectsEqual:r,areSetsEqual:i})}return n}(t)),s=r?r(o):function(t,e,r,n,i,s,u){return o(t,e,u)};return function({circular:t,comparator:e,createState:r,equals:n,strict:i}){if(r)return function(o,s){let{cache:u=t?new WeakMap:void 0,meta:a}=r();return e(o,s,{cache:u,equals:n,meta:a,strict:i})};if(t)return function(t,r){return e(t,r,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};let o={cache:void 0,equals:n,meta:void 0,strict:i};return function(t,r){return e(t,r,o)}}({circular:e,comparator:o,createState:n,equals:s,strict:i})}k({strict:!0}),k({circular:!0}),k({circular:!0,strict:!0}),k({createInternalComparator:()=>b}),k({strict:!0,createInternalComparator:()=>b}),k({circular:!0,createInternalComparator:()=>b}),k({circular:!0,createInternalComparator:()=>b,strict:!0});var V=r(72955),z=({contentComponent:t})=>{let e=(0,o.useSyncExternalStore)(t.subscribe,t.getSnapshot,t.getServerSnapshot);return(0,s.jsx)(s.Fragment,{children:Object.values(e)})},L=class extends n.Component{constructor(t){var e;super(t),this.editorContentRef=n.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(null==(e=t.editor)?void 0:e.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var t;let e=this.props.editor;if(e&&!e.isDestroyed&&(null==(t=e.view.dom)?void 0:t.parentNode)){let t,r;if(e.contentComponent)return;let n=this.editorContentRef.current;n.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:n}),t=new Set,r={},e.contentComponent={subscribe:e=>(t.add(e),()=>{t.delete(e)}),getSnapshot:()=>r,getServerSnapshot:()=>r,setRenderer(e,n){r={...r,[e]:i.createPortal(n.reactElement,n.element,e)},t.forEach(t=>t())},removeRenderer(e){let n={...r};delete n[e],r=n,t.forEach(t=>t())}},this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(t=>t.hasContentComponentInitialized?t:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var t;let e=this.props.editor;if(e){this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null;try{if(!(null==(t=e.view.dom)?void 0:t.parentNode))return;let r=document.createElement("div");r.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:r})}catch{}}}render(){let{editor:t,innerRef:e,...r}=this.props;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:((...t)=>e=>{t.forEach(t=>{"function"==typeof t?t(e):t&&(t.current=e)})})(e,this.editorContentRef),...r}),(null==t?void 0:t.contentComponent)&&(0,s.jsx)(z,{contentComponent:t.contentComponent})]})}},B=(0,n.forwardRef)((t,e)=>{let r=n.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[t.editor]);return n.createElement(L,{key:r,innerRef:e,...t})}),F=n.memo(B),P="u">typeof window?n.useLayoutEffect:n.useEffect,_=class{constructor(t){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0}
2,this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}watch(t){if(this.editor=t,this.editor){let t=()=>{this.transactionNumber+=1,this.subscribers.forEach(t=>t())},e=this.editor;return e.on("transaction",t),()=>{e.off("transaction",t)}}}};function W(t){var e;let[r]=(0,n.useState)(()=>new _(t.editor)),i=(0,V.useSyncExternalStoreWithSelector)(r.subscribe,r.getSnapshot,r.getServerSnapshot,t.selector,null!=(e=t.equalityFn)?e:M);return P(()=>r.watch(t.editor),[t.editor,r]),(0,n.useDebugValue)(i),i}var $="u"<typeof window,G=$||!!("u">typeof window&&window.next),K=class t{constructor(t){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=t,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(t){this.editor=t,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(t=>t())}getInitialEditor(){if(void 0===this.options.current.immediatelyRender)return $||G?null:this.createEditor();return this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null}createEditor(){let t={...this.options.current,onBeforeCreate:(...t)=>{var e,r;return null==(r=(e=this.options.current).onBeforeCreate)?void 0:r.call(e,...t)},onBlur:(...t)=>{var e,r;return null==(r=(e=this.options.current).onBlur)?void 0:r.call(e,...t)},onCreate:(...t)=>{var e,r;return null==(r=(e=this.options.current).onCreate)?void 0:r.call(e,...t)},onDestroy:(...t)=>{var e,r;return null==(r=(e=this.options.current).onDestroy)?void 0:r.call(e,...t)},onFocus:(...t)=>{var e,r;return null==(r=(e=this.options.current).onFocus)?void 0:r.call(e,...t)},onSelectionUpdate:(...t)=>{var e,r;return null==(r=(e=this.options.current).onSelectionUpdate)?void 0:r.call(e,...t)},onTransaction:(...t)=>{var e,r;return null==(r=(e=this.options.current).onTransaction)?void 0:r.call(e,...t)}
2,onUpdate:(...t)=>{var e,r;return null==(r=(e=this.options.current).onUpdate)?void 0:r.call(e,...t)},onContentError:(...t)=>{var e,r;return null==(r=(e=this.options.current).onContentError)?void 0:r.call(e,...t)},onDrop:(...t)=>{var e,r;return null==(r=(e=this.options.current).onDrop)?void 0:r.call(e,...t)},onPaste:(...t)=>{var e,r;return null==(r=(e=this.options.current).onPaste)?void 0:r.call(e,...t)},onDelete:(...t)=>{var e,r;return null==(r=(e=this.options.current).onDelete)?void 0:r.call(e,...t)}};return new u.KE(t)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(t){return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)}}static compareOptions(t,e){return Object.keys(t).every(r=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)||("extensions"===r&&t.extensions&&e.extensions?t.extensions.length===e.extensions.length&&t.extensions.every((t,r)=>{var n;return t===(null==(n=e.extensions)?void 0:n[r])}):t[r]===e[r]))}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===e.length?t.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(t){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=t;return}if(this.previousDeps.length===t.length&&this.previousDeps.every((e,r)=>e===t[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=t}scheduleDestroy(){let t=this.instanceId,e=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===t){e&&e.setOptions(this.options.current);return}e&&!e.isDestroyed&&(e.destroy(),this.instanceId===t&&this.setEditor(null))},1)}};function Y(t={},e=[]){let r=(0,n.useRef)(t);r.current=t;let[i]=(0,n.useState)(()=>new K(r)),s=(0,o.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,n.useDebugValue)(s),(0,n.useEffect)(i.onRender(e)),W({editor:s,selector:({transactionNumber:e})=>!1===t.shouldRerenderOnTransaction||void 0===t.shouldRerenderOnTransaction?null:t.immediatelyRender&&0===e?0:e+1}),s}var Z=(0,n.createContext)({editor:null});Z.Consumer;var H=(0,n.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}});n.forwardRef((t,e)=>{let{onDragStart:r}=(0,n.useContext)(H),i=t.as||"div";return(0,s.jsx)(i,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...t.style}})}),n.createContext({markViewContentRef:()=>{}}),u.Db,u.Yv;var J=(0,n.createContext)({get editor(){throw Error("useTiptap must be used within a <Tiptap> provider")}});function Q({editor:t,instance:e,children:r}){let i=null!=t?t:e;if(!i)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let o=(0,n.useMemo)(()=>({editor:i}),[i]),u=(0,n.useMemo)(()=>({editor:i}),[i]);return(0,s.jsx)(Z.Provider,{value:u,children:(0,s.jsx)(J.Provider,{value:o,children:r})})}function X({...t}){let{editor:e}=(0,n.useContext)(J);return(0,s.jsx)(F,{editor:e,...t})}J.displayName="TiptapContext",Q.displayName="Tiptap",X.displayName="Tiptap.Content",Object.assign(Q,{Content:X})},57145:(t,e,r)=>{t.exports=r(13812)},69299:(t,e,r)=>{var n=r(2315),i=r(57145),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},s=i.useSyncExternalStore,u=n.useRef,a=n.useEffect,c=n.useMemo,l=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,r,n,i){var h=u(null);if(null===h.current){var d={hasValue:!1,value:null};h.current=d}else d=h.current;var f=s(t,(h=c(function(){function t(t){if(!a){if(a=!0,s=t,t=n(t),void 0!==i&&d.hasValue){var e=d.value;if(i(e,t))return u=e}return u=t}if(e=u,o(s,t))return e;var r=n(t);return void 0!==i&&i(e,r)?(s=t,e):(s=t,u=r)}var s,u,a=!1,c=void 0===r?null:r;return[function(){return t(e())},null===c?void 0:function(){return t(c())}]},[e,r,n,i]))[0],h[1]);return a(function(){d.hasValue=!0,d.value=f},[f]),l(f),f}},72955:(t,e,r)=>{t.exports=r(69299)}}]);
3//# chunkId=ca5c403f-318b-52df-8ae6-16bcdc0e7bc1
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.