@bigbinary/neeto-editor 1.15.3 → 1.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -39,5 +39,5 @@ return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.algo,a=i.create(
39
39
  * Released under MIT license <https://lodash.com/license>
40
40
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
41
41
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
42
- */!function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,p=2,h=4,f=1,m=2,g=1,b=2,y=4,v=8,w=16,_=32,x=64,E=128,k=256,M=512,D=30,C="...",S=800,A=16,N=1,O=2,T=3,I=1/0,L=9007199254740991,F=17976931348623157e292,z=0/0,j=4294967295,R=j-1,B=j>>>1,P=[["ary",E],["bind",g],["bindKey",b],["curry",v],["curryRight",w],["flip",M],["partial",_],["partialRight",x],["rearg",k]],U="[object Arguments]",H="[object Array]",$="[object AsyncFunction]",W="[object Boolean]",V="[object Date]",q="[object DOMException]",K="[object Error]",G="[object Function]",Y="[object GeneratorFunction]",Q="[object Map]",J="[object Number]",Z="[object Null]",X="[object Object]",ee="[object Promise]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",ie="[object String]",oe="[object Symbol]",se="[object Undefined]",ae="[object WeakMap]",le="[object WeakSet]",ce="[object ArrayBuffer]",ue="[object DataView]",de="[object Float32Array]",pe="[object Float64Array]",he="[object Int8Array]",fe="[object Int16Array]",me="[object Int32Array]",ge="[object Uint8Array]",be="[object Uint8ClampedArray]",ye="[object Uint16Array]",ve="[object Uint32Array]",we=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Me=RegExp(Ee.source),De=RegExp(ke.source),Ce=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ie=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Ie.source),Fe=/^\s+/,ze=/\s/,je=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Re=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,Pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,Xe="\\ud800-\\udfff",et="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",tt="\\u2700-\\u27bf",nt="a-z\\xdf-\\xf6\\xf8-\\xff",rt="A-Z\\xc0-\\xd6\\xd8-\\xde",it="\\ufe0e\\ufe0f",ot="\\xac\\xb1\\xd7\\xf7"+"\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf"+"\\u2000-\\u206f"+" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",st="['’]",at="["+Xe+"]",lt="["+ot+"]",ct="["+et+"]",ut="\\d+",dt="["+tt+"]",pt="["+nt+"]",ht="[^"+Xe+ot+ut+tt+nt+rt+"]",ft="\\ud83c[\\udffb-\\udfff]",mt="[^"+Xe+"]",gt="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="["+rt+"]",vt="\\u200d",wt="(?:"+pt+"|"+ht+")",_t="(?:"+yt+"|"+ht+")",xt="(?:"+st+"(?:d|ll|m|re|s|t|ve))?",Et="(?:"+st+"(?:D|LL|M|RE|S|T|VE))?",kt="(?:"+ct+"|"+ft+")"+"?",Mt="["+it+"]?",Dt=Mt+kt+("(?:"+vt+"(?:"+[mt,gt,bt].join("|")+")"+Mt+kt+")*"),Ct="(?:"+[dt,gt,bt].join("|")+")"+Dt,St="(?:"+[mt+ct+"?",ct,gt,bt,at].join("|")+")",At=RegExp(st,"g"),Nt=RegExp(ct,"g"),Ot=RegExp(ft+"(?="+ft+")|"+St+Dt,"g"),It=RegExp([yt+"?"+pt+"+"+xt+"(?="+[lt,yt,"$"].join("|")+")",_t+"+"+Et+"(?="+[lt,yt+wt,"$"].join("|")+")",yt+"?"+wt+"+"+xt,yt+"+"+Et,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ut,Ct].join("|"),"g"),Lt=RegExp("["+vt+Xe+et+it+"]"),Ft=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jt=-1,Rt={};Rt[de]=Rt[pe]=Rt[he]=Rt[fe]=Rt[me]=Rt[ge]=Rt[be]=Rt[ye]=Rt[ve]=!0,Rt[U]=Rt[H]=Rt[ce]=Rt[W]=Rt[ue]=Rt[V]=Rt[K]=Rt[G]=Rt[Q]=Rt[J]=Rt[X]=Rt[ne]=Rt[re]=Rt[ie]=Rt[ae]=!1;var Bt={};Bt[U]=Bt[H]=Bt[ce]=Bt[ue]=Bt[W]=Bt[V]=Bt[de]=Bt[pe]=Bt[he]=Bt[fe]=Bt[me]=Bt[Q]=Bt[J]=Bt[X]=Bt[ne]=Bt[re]=Bt[ie]=Bt[oe]=Bt[ge]=Bt[be]=Bt[ye]=Bt[ve]=!0,Bt[K]=Bt[G]=Bt[ae]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ut=parseFloat,Ht=parseInt,$t="object"==typeof Tt&&Tt&&Tt.Object===Object&&Tt,Wt="object"==typeof self&&self&&self.Object===Object&&self,Vt=$t||Wt||Function("return this")(),qt=t&&!t.nodeType&&t,Kt=qt&&"object"=="object"&&e&&!e.nodeType&&e,Gt=Kt&&Kt.exports===qt,Yt=Gt&&$t.process,Qt=function(){try{var e=Kt&&Kt.require&&Kt.require("util").types;return e||Yt&&Yt.binding&&Yt.binding("util")}catch(e){}}(),Jt=Qt&&Qt.isArrayBuffer,Zt=Qt&&Qt.isDate,Xt=Qt&&Qt.isMap,en=Qt&&Qt.isRegExp,tn=Qt&&Qt.isSet,nn=Qt&&Qt.isTypedArray;function rn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function on(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function sn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function an(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ln(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function cn(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function un(e,t){return!!(null==e?0:e.length)&&wn(e,t,0)>-1}function dn(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function pn(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function hn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function fn(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function mn(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function gn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var bn=kn("length");function yn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function vn(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wn(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):vn(e,xn,n)}function _n(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function xn(e){return e!=e}function En(e,t){var n=null==e?0:e.length;return n?Cn(e,t)/n:z}function kn(e){return function(t){return null==t?n:t[e]}}function Mn(e){return function(t){return null==e?n:e[t]}}function Dn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Cn(e,t){for(var r,i=-1,o=e.length;++i<o;){var s=t(e[i]);s!==n&&(r=r===n?s:r+s)}return r}function Sn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function An(e){return e?e.slice(0,Kn(e)+1).replace(Fe,""):e}function Nn(e){return function(t){return e(t)}}function On(e,t){return pn(t,(function(t){return e[t]}))}function Tn(e,t){return e.has(t)}function In(e,t){for(var n=-1,r=e.length;++n<r&&wn(t,e[n],0)>-1;);return n}function Ln(e,t){for(var n=e.length;n--&&wn(t,e[n],0)>-1;);return n}function Fn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var zn=Mn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),jn=Mn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Rn(e){return"\\"+Pt[e]}function Bn(e){return Lt.test(e)}function Pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Un(e,t){return function(n){return e(t(n))}}function Hn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==u||(e[n]=u,o[i++]=n)}return o}function $n(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Wn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Vn(e){return Bn(e)?function(e){var t=Ot.lastIndex=0;for(;Ot.test(e);)++t;return t}(e):bn(e)}function qn(e){return Bn(e)?function(e){return e.match(Ot)||[]}(e):function(e){return e.split("")}(e)}function Kn(e){for(var t=e.length;t--&&ze.test(e.charAt(t)););return t}var Gn=Mn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Yn=function e(t){var ze,Xe=(t=null==t?Vt:Yn.defaults(Vt.Object(),t,Yn.pick(Vt,zt))).Array,et=t.Date,tt=t.Error,nt=t.Function,rt=t.Math,it=t.Object,ot=t.RegExp,st=t.String,at=t.TypeError,lt=Xe.prototype,ct=nt.prototype,ut=it.prototype,dt=t["__core-js_shared__"],pt=ct.toString,ht=ut.hasOwnProperty,ft=0,mt=(ze=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||""))?"Symbol(src)_1."+ze:"",gt=ut.toString,bt=pt.call(it),yt=Vt._,vt=ot("^"+pt.call(ht).replace(Ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=Gt?t.Buffer:n,_t=t.Symbol,xt=t.Uint8Array,Et=wt?wt.allocUnsafe:n,kt=Un(it.getPrototypeOf,it),Mt=it.create,Dt=ut.propertyIsEnumerable,Ct=lt.splice,St=_t?_t.isConcatSpreadable:n,Ot=_t?_t.iterator:n,Tt=_t?_t.toStringTag:n,Lt=function(){try{var e=Vo(it,"defineProperty");return e({},"",{}),e}catch(e){}}(),Pt=t.clearTimeout!==Vt.clearTimeout&&t.clearTimeout,$t=et&&et.now!==Vt.Date.now&&et.now,Wt=t.setTimeout!==Vt.setTimeout&&t.setTimeout,qt=rt.ceil,Kt=rt.floor,Yt=it.getOwnPropertySymbols,Qt=wt?wt.isBuffer:n,bn=t.isFinite,Mn=lt.join,Qn=Un(it.keys,it),Jn=rt.max,Zn=rt.min,Xn=et.now,er=t.parseInt,tr=rt.random,nr=lt.reverse,rr=Vo(t,"DataView"),ir=Vo(t,"Map"),or=Vo(t,"Promise"),sr=Vo(t,"Set"),ar=Vo(t,"WeakMap"),lr=Vo(it,"create"),cr=ar&&new ar,ur={},dr=ys(rr),pr=ys(ir),hr=ys(or),fr=ys(sr),mr=ys(ar),gr=_t?_t.prototype:n,br=gr?gr.valueOf:n,yr=gr?gr.toString:n;function vr(e){if(Fa(e)&&!ka(e)&&!(e instanceof Er)){if(e instanceof xr)return e;if(ht.call(e,"__wrapped__"))return vs(e)}return new xr(e)}var wr=function(){function e(){}return function(t){if(!La(t))return{};if(Mt)return Mt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function _r(){}function xr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Er(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=j,this.__views__=[]}function kr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Mr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Dr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Cr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Dr;++t<n;)this.add(e[t])}function Sr(e){var t=this.__data__=new Mr(e);this.size=t.size}function Ar(e,t){var n=ka(e),r=!n&&Ea(e),i=!n&&!r&&Sa(e),o=!n&&!r&&!i&&$a(e),s=n||r||i||o,a=s?Sn(e.length,st):[],l=a.length;for(var c in e)!t&&!ht.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Zo(c,l))||a.push(c);return a}function Nr(e){var t=e.length;return t?e[Ci(0,t-1)]:n}function Or(e,t){return ms(lo(e),Pr(t,0,e.length))}function Tr(e){return ms(lo(e))}function Ir(e,t,r){(r!==n&&!wa(e[t],r)||r===n&&!(t in e))&&Rr(e,t,r)}function Lr(e,t,r){var i=e[t];ht.call(e,t)&&wa(i,r)&&(r!==n||t in e)||Rr(e,t,r)}function Fr(e,t){for(var n=e.length;n--;)if(wa(e[n][0],t))return n;return-1}function zr(e,t,n,r){return Vr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function jr(e,t){return e&&co(t,dl(t),e)}function Rr(e,t,n){"__proto__"==t&&Lt?Lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Br(e,t){for(var r=-1,i=t.length,o=Xe(i),s=null==e;++r<i;)o[r]=s?n:sl(e,t[r]);return o}function Pr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function Ur(e,t,r,i,o,s){var a,l=t&d,c=t&p,u=t&h;if(r&&(a=o?r(e,i,o,s):r(e)),a!==n)return a;if(!La(e))return e;var f=ka(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ht.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return lo(e,a)}else{var m=Go(e),g=m==G||m==Y;if(Sa(e))return no(e,l);if(m==X||m==U||g&&!o){if(a=c||g?{}:Qo(e),!l)return c?function(e,t){return co(e,Ko(e),t)}(e,function(e,t){return e&&co(t,pl(t),e)}(a,e)):function(e,t){return co(e,qo(e),t)}(e,jr(a,e))}else{if(!Bt[m])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case ce:return ro(e);case W:case V:return new r(+e);case ue:return function(e,t){var n=t?ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case pe:case he:case fe:case me:case ge:case be:case ye:case ve:return io(e,n);case Q:return new r;case J:case ie:return new r(e);case ne:return function(e){var t=new e.constructor(e.source,We.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new r;case oe:return i=e,br?it(br.call(i)):{}}var i}(e,m,l)}}s||(s=new Sr);var b=s.get(e);if(b)return b;s.set(e,a),Pa(e)?e.forEach((function(n){a.add(Ur(n,t,r,n,e,s))})):za(e)&&e.forEach((function(n,i){a.set(i,Ur(n,t,r,i,e,s))}));var y=f?n:(u?c?Ro:jo:c?pl:dl)(e);return sn(y||e,(function(n,i){y&&(n=e[i=n]),Lr(a,i,Ur(n,t,r,i,e,s))})),a}function Hr(e,t,r){var i=r.length;if(null==e)return!i;for(e=it(e);i--;){var o=r[i],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function $r(e,t,r){if("function"!=typeof e)throw new at(s);return ds((function(){e.apply(n,r)}),t)}function Wr(e,t,n,r){var o=-1,s=un,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=pn(t,Nn(n))),r?(s=dn,a=!1):t.length>=i&&(s=Tn,a=!1,t=new Cr(t));e:for(;++o<l;){var d=e[o],p=null==n?d:n(d);if(d=r||0!==d?d:0,a&&p==p){for(var h=u;h--;)if(t[h]===p)continue e;c.push(d)}else s(t,p,r)||c.push(d)}return c}vr.templateSettings={escape:Ce,evaluate:Se,interpolate:Ae,variable:"",imports:{_:vr}},vr.prototype=_r.prototype,vr.prototype.constructor=vr,xr.prototype=wr(_r.prototype),xr.prototype.constructor=xr,Er.prototype=wr(_r.prototype),Er.prototype.constructor=Er,kr.prototype.clear=function(){this.__data__=lr?lr(null):{},this.size=0},kr.prototype["delete"]=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},kr.prototype.get=function(e){var t=this.__data__;if(lr){var r=t[e];return r===l?n:r}return ht.call(t,e)?t[e]:n},kr.prototype.has=function(e){var t=this.__data__;return lr?t[e]!==n:ht.call(t,e)},kr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lr&&t===n?l:t,this},Mr.prototype.clear=function(){this.__data__=[],this.size=0},Mr.prototype["delete"]=function(e){var t=this.__data__,n=Fr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ct.call(t,n,1),--this.size,!0)},Mr.prototype.get=function(e){var t=this.__data__,r=Fr(t,e);return r<0?n:t[r][1]},Mr.prototype.has=function(e){return Fr(this.__data__,e)>-1},Mr.prototype.set=function(e,t){var n=this.__data__,r=Fr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Dr.prototype.clear=function(){this.size=0,this.__data__={hash:new kr,map:new(ir||Mr),string:new kr}},Dr.prototype["delete"]=function(e){var t=$o(this,e)["delete"](e);return this.size-=t?1:0,t},Dr.prototype.get=function(e){return $o(this,e).get(e)},Dr.prototype.has=function(e){return $o(this,e).has(e)},Dr.prototype.set=function(e,t){var n=$o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Cr.prototype.add=Cr.prototype.push=function(e){return this.__data__.set(e,l),this},Cr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.clear=function(){this.__data__=new Mr,this.size=0},Sr.prototype["delete"]=function(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n},Sr.prototype.get=function(e){return this.__data__.get(e)},Sr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Mr){var r=n.__data__;if(!ir||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dr(r)}return n.set(e,t),this.size=n.size,this};var Vr=ho(Xr),qr=ho(ei,!0);function Kr(e,t){var n=!0;return Vr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function Gr(e,t,r){for(var i=-1,o=e.length;++i<o;){var s=e[i],a=t(s);if(null!=a&&(l===n?a==a&&!Ha(a):r(a,l)))var l=a,c=s}return c}function Yr(e,t){var n=[];return Vr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Qr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=Jo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?Qr(a,t-1,n,r,i):hn(i,a):r||(i[i.length]=a)}return i}var Jr=fo(),Zr=fo(!0);function Xr(e,t){return e&&Jr(e,t,dl)}function ei(e,t){return e&&Zr(e,t,dl)}function ti(e,t){return cn(t,(function(t){return Oa(e[t])}))}function ni(e,t){for(var r=0,i=(t=Zi(t,e)).length;null!=e&&r<i;)e=e[bs(t[r++])];return r&&r==i?e:n}function ri(e,t,n){var r=t(e);return ka(e)?r:hn(r,n(e))}function ii(e){return null==e?e===n?se:Z:Tt&&Tt in it(e)?function(e){var t=ht.call(e,Tt),r=e[Tt];try{e[Tt]=n;var i=!0}catch(e){}var o=gt.call(e);i&&(t?e[Tt]=r:delete e[Tt]);return o}(e):function(e){return gt.call(e)}(e)}function oi(e,t){return e>t}function si(e,t){return null!=e&&ht.call(e,t)}function ai(e,t){return null!=e&&t in it(e)}function li(e,t,r){for(var i=r?dn:un,o=e[0].length,s=e.length,a=s,l=Xe(s),c=1/0,u=[];a--;){var d=e[a];a&&t&&(d=pn(d,Nn(t))),c=Zn(d.length,c),l[a]=!r&&(t||o>=120&&d.length>=120)?new Cr(a&&d):n}d=e[0];var p=-1,h=l[0];e:for(;++p<o&&u.length<c;){var f=d[p],m=t?t(f):f;if(f=r||0!==f?f:0,!(h?Tn(h,m):i(u,m,r))){for(a=s;--a;){var g=l[a];if(!(g?Tn(g,m):i(e[a],m,r)))continue e}h&&h.push(m),u.push(f)}}return u}function ci(e,t,r){var i=null==(e=as(e,t=Zi(t,e)))?e:e[bs(Ns(t))];return null==i?n:rn(i,e,r)}function ui(e){return Fa(e)&&ii(e)==U}function di(e,t,r,i,o){return e===t||(null==e||null==t||!Fa(e)&&!Fa(t)?e!=e&&t!=t:function(e,t,r,i,o,s){var a=ka(e),l=ka(t),c=a?H:Go(e),u=l?H:Go(t),d=(c=c==U?X:c)==X,p=(u=u==U?X:u)==X,h=c==u;if(h&&Sa(e)){if(!Sa(t))return!1;a=!0,d=!1}if(h&&!d)return s||(s=new Sr),a||$a(e)?Fo(e,t,r,i,o,s):function(e,t,n,r,i,o,s){switch(n){case ue:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ce:return!(e.byteLength!=t.byteLength||!o(new xt(e),new xt(t)));case W:case V:case J:return wa(+e,+t);case K:return e.name==t.name&&e.message==t.message;case ne:case ie:return e==t+"";case Q:var a=Pn;case re:var l=r&f;if(a||(a=$n),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=m,s.set(e,t);var u=Fo(a(e),a(t),r,i,o,s);return s["delete"](e),u;case oe:if(br)return br.call(e)==br.call(t)}return!1}(e,t,c,r,i,o,s);if(!(r&f)){var g=d&&ht.call(e,"__wrapped__"),b=p&&ht.call(t,"__wrapped__");if(g||b){var y=g?e.value():e,v=b?t.value():t;return s||(s=new Sr),o(y,v,r,i,s)}}if(!h)return!1;return s||(s=new Sr),function(e,t,r,i,o,s){var a=r&f,l=jo(e),c=l.length,u=jo(t).length;if(c!=u&&!a)return!1;var d=c;for(;d--;){var p=l[d];if(!(a?p in t:ht.call(t,p)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var b=a;for(;++d<c;){var y=e[p=l[d]],v=t[p];if(i)var w=a?i(v,y,p,t,e,s):i(y,v,p,e,t,s);if(!(w===n?y===v||o(y,v,r,i,s):w)){g=!1;break}b||(b="constructor"==p)}if(g&&!b){var _=e.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(g=!1)}return s["delete"](e),s["delete"](t),g}(e,t,r,i,o,s)}(e,t,r,i,di,o))}function pi(e,t,r,i){var o=r.length,s=o,a=!i;if(null==e)return!s;for(e=it(e);o--;){var l=r[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=r[o])[0],u=e[c],d=l[1];if(a&&l[2]){if(u===n&&!(c in e))return!1}else{var p=new Sr;if(i)var h=i(u,d,c,e,t,p);if(!(h===n?di(d,u,f|m,i,p):h))return!1}}return!0}function hi(e){return!(!La(e)||(t=e,mt&&mt in t))&&(Oa(e)?vt:Ke).test(ys(e));var t}function fi(e){return"function"==typeof e?e:null==e?jl:"object"==typeof e?ka(e)?wi(e[0],e[1]):vi(e):ql(e)}function mi(e){if(!rs(e))return Qn(e);var t=[];for(var n in it(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function gi(e){if(!La(e))return function(e){var t=[];if(null!=e)for(var n in it(e))t.push(n);return t}(e);var t=rs(e),n=[];for(var r in e)("constructor"!=r||!t&&ht.call(e,r))&&n.push(r);return n}function bi(e,t){return e<t}function yi(e,t){var n=-1,r=Da(e)?Xe(e.length):[];return Vr(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function vi(e){var t=Wo(e);return 1==t.length&&t[0][2]?os(t[0][0],t[0][1]):function(n){return n===e||pi(n,e,t)}}function wi(e,t){return es(e)&&is(t)?os(bs(e),t):function(r){var i=sl(r,e);return i===n&&i===t?al(r,e):di(t,i,f|m)}}function _i(e,t,r,i,o){e!==t&&Jr(t,(function(s,a){if(o||(o=new Sr),La(s))!function(e,t,r,i,o,s,a){var l=cs(e,r),c=cs(t,r),u=a.get(c);if(u)return void Ir(e,r,u);var d=s?s(l,c,r+"",e,t,a):n,p=d===n;if(p){var h=ka(c),f=!h&&Sa(c),m=!h&&!f&&$a(c);d=c,h||f||m?ka(l)?d=l:Ca(l)?d=lo(l):f?(p=!1,d=no(c,!0)):m?(p=!1,d=io(c,!0)):d=[]:Ra(c)||Ea(c)?(d=l,Ea(l)?d=Ja(l):La(l)&&!Oa(l)||(d=Qo(c))):p=!1}p&&(a.set(c,d),o(d,c,i,s,a),a["delete"](c));Ir(e,r,d)}(e,t,a,r,_i,i,o);else{var l=i?i(cs(e,a),s,a+"",e,t,o):n;l===n&&(l=s),Ir(e,a,l)}}),pl)}function xi(e,t){var r=e.length;if(r)return Zo(t+=t<0?r:0,r)?e[t]:n}function Ei(e,t,n){t=t.length?pn(t,(function(e){return ka(e)?function(t){return ni(t,1===e.length?e[0]:e)}:e})):[jl];var r=-1;t=pn(t,Nn(Ho()));var i=yi(e,(function(e,n,i){var o=pn(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;for(;++r<s;){var l=oo(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function ki(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=ni(e,s);n(a,s)&&Ti(o,Zi(s,e),a)}return o}function Mi(e,t,n,r){var i=r?_n:wn,o=-1,s=t.length,a=e;for(e===t&&(t=lo(t)),n&&(a=pn(e,Nn(n)));++o<s;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(a,u,l,r))>-1;)a!==e&&Ct.call(a,l,1),Ct.call(e,l,1);return e}function Di(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Zo(i)?Ct.call(e,i,1):Wi(e,i)}}return e}function Ci(e,t){return e+Kt(tr()*(t-e+1))}function Si(e,t){var n="";if(!e||t<1||t>L)return n;do{t%2&&(n+=e),(t=Kt(t/2))&&(e+=e)}while(t);return n}function Ai(e,t){return ps(ss(e,t,jl),e+"")}function Ni(e){return Nr(wl(e))}function Oi(e,t){var n=wl(e);return ms(n,Pr(t,0,n.length))}function Ti(e,t,r,i){if(!La(e))return e;for(var o=-1,s=(t=Zi(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=bs(t[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var d=l[c];(u=i?i(d,c,l):n)===n&&(u=La(d)?d:Zo(t[o+1])?[]:{})}Lr(l,c,u),l=l[c]}return e}var Ii=cr?function(e,t){return cr.set(e,t),e}:jl,Li=Lt?function(e,t){return Lt(e,"toString",{configurable:!0,enumerable:!1,value:Ll(t),writable:!0})}:jl;function Fi(e){return ms(wl(e))}function zi(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Xe(i);++r<i;)o[r]=e[r+t];return o}function ji(e,t){var n;return Vr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=B){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!Ha(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return Bi(e,t,jl,n)}function Bi(e,t,r,i){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,l=null===t,c=Ha(t),u=t===n;o<s;){var d=Kt((o+s)/2),p=r(e[d]),h=p!==n,f=null===p,m=p==p,g=Ha(p);if(a)var b=i||m;else b=u?m&&(i||h):l?m&&h&&(i||!f):c?m&&h&&!f&&(i||!g):!f&&!g&&(i?p<=t:p<t);b?o=d+1:s=d}return Zn(s,R)}function Pi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!wa(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function Ui(e){return"number"==typeof e?e:Ha(e)?z:+e}function Hi(e){if("string"==typeof e)return e;if(ka(e))return pn(e,Hi)+"";if(Ha(e))return yr?yr.call(e):"";var t=e+"";return"0"==t&&1/e==-I?"-0":t}function $i(e,t,n){var r=-1,o=un,s=e.length,a=!0,l=[],c=l;if(n)a=!1,o=dn;else if(s>=i){var u=t?null:Ao(e);if(u)return $n(u);a=!1,o=Tn,c=new Cr}else c=t?[]:l;e:for(;++r<s;){var d=e[r],p=t?t(d):d;if(d=n||0!==d?d:0,a&&p==p){for(var h=c.length;h--;)if(c[h]===p)continue e;t&&c.push(p),l.push(d)}else o(c,p,n)||(c!==l&&c.push(p),l.push(d))}return l}function Wi(e,t){return null==(e=as(e,t=Zi(t,e)))||delete e[bs(Ns(t))]}function Vi(e,t,n,r){return Ti(e,t,n(ni(e,t)),r)}function qi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?zi(e,r?0:o,r?o+1:i):zi(e,r?o+1:0,r?i:o)}function Ki(e,t){var n=e;return n instanceof Er&&(n=n.value()),fn(t,(function(e,t){return t.func.apply(t.thisArg,hn([e],t.args))}),n)}function Gi(e,t,n){var r=e.length;if(r<2)return r?$i(e[0]):[];for(var i=-1,o=Xe(r);++i<r;)for(var s=e[i],a=-1;++a<r;)a!=i&&(o[i]=Wr(o[i]||s,e[a],t,n));return $i(Qr(o,1),t,n)}function Yi(e,t,r){for(var i=-1,o=e.length,s=t.length,a={};++i<o;){var l=i<s?t[i]:n;r(a,e[i],l)}return a}function Qi(e){return Ca(e)?e:[]}function Ji(e){return"function"==typeof e?e:jl}function Zi(e,t){return ka(e)?e:es(e,t)?[e]:gs(Za(e))}var Xi=Ai;function eo(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:zi(e,t,r)}var to=Pt||function(e){return Vt.clearTimeout(e)};function no(e,t){if(t)return e.slice();var n=e.length,r=Et?Et(n):new e.constructor(n);return e.copy(r),r}function ro(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function io(e,t){var n=t?ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oo(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,s=Ha(e),a=t!==n,l=null===t,c=t==t,u=Ha(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!u&&e<t||u&&r&&o&&!i&&!s||l&&r&&o||!a&&o||!c)return-1}return 0}function so(e,t,n,r){for(var i=-1,o=e.length,s=n.length,a=-1,l=t.length,c=Jn(o-s,0),u=Xe(l+c),d=!r;++a<l;)u[a]=t[a];for(;++i<s;)(d||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[a++]=e[i++];return u}function ao(e,t,n,r){for(var i=-1,o=e.length,s=-1,a=n.length,l=-1,c=t.length,u=Jn(o-a,0),d=Xe(u+c),p=!r;++i<u;)d[i]=e[i];for(var h=i;++l<c;)d[h+l]=t[l];for(;++s<a;)(p||i<o)&&(d[h+n[s]]=e[i++]);return d}function lo(e,t){var n=-1,r=e.length;for(t||(t=Xe(r));++n<r;)t[n]=e[n];return t}function co(e,t,r,i){var o=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=i?i(r[l],e[l],l,r,e):n;c===n&&(c=e[l]),o?Rr(r,l,c):Lr(r,l,c)}return r}function uo(e,t){return function(n,r){var i=ka(n)?on:zr,o=t?t():{};return i(n,e,Ho(r,2),o)}}function po(e){return Ai((function(t,r){var i=-1,o=r.length,s=o>1?r[o-1]:n,a=o>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&Xo(r[0],r[1],a)&&(s=o<3?n:s,o=1),t=it(t);++i<o;){var l=r[i];l&&e(t,l,i,s)}return t}))}function ho(e,t){return function(n,r){if(null==n)return n;if(!Da(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=it(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function fo(e){return function(t,n,r){for(var i=-1,o=it(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}function mo(e){return function(t){var r=Bn(t=Za(t))?qn(t):n,i=r?r[0]:t.charAt(0),o=r?eo(r,1).join(""):t.slice(1);return i[e]()+o}}function go(e){return function(t){return fn(Ol(El(t).replace(At,"")),e,"")}}function bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=wr(e.prototype),r=e.apply(n,t);return La(r)?r:n}}function yo(e){return function(t,r,i){var o=it(t);if(!Da(t)){var s=Ho(r,3);t=dl(t),r=function(e){return s(o[e],e,o)}}var a=e(t,r,i);return a>-1?o[s?t[a]:a]:n}}function vo(e){return zo((function(t){var r=t.length,i=r,o=xr.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new at(s);if(o&&!l&&"wrapper"==Po(a))var l=new xr([],!0)}for(i=l?i:r;++i<r;){var c=Po(a=t[i]),u="wrapper"==c?Bo(a):n;l=u&&ts(u[0])&&u[1]==(E|v|_|k)&&!u[4].length&&1==u[9]?l[Po(u[0])].apply(l,u[3]):1==a.length&&ts(a)?l[c]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&ka(n))return l.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}function wo(e,t,r,i,o,s,a,l,c,u){var d=t&E,p=t&g,h=t&b,f=t&(v|w),m=t&M,y=h?n:bo(e);return function n(){for(var g=arguments.length,b=Xe(g),v=g;v--;)b[v]=arguments[v];if(f)var w=Uo(n),_=Fn(b,w);if(i&&(b=so(b,i,o,f)),s&&(b=ao(b,s,a,f)),g-=_,f&&g<u){var x=Hn(b,w);return Co(e,t,wo,n.placeholder,r,b,x,l,c,u-g)}var E=p?r:this,k=h?E[e]:e;return g=b.length,l?b=ls(b,l):m&&g>1&&b.reverse(),d&&c<g&&(b.length=c),this&&this!==Vt&&this instanceof n&&(k=y||bo(k)),k.apply(E,b)}}function _o(e,t){return function(n,r){return function(e,t,n,r){return Xr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function xo(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=Hi(r),i=Hi(i)):(r=Ui(r),i=Ui(i)),o=e(r,i)}return o}}function Eo(e){return zo((function(t){return t=pn(t,Nn(Ho())),Ai((function(n){var r=this;return e(t,(function(e){return rn(e,r,n)}))}))}))}function ko(e,t){var r=(t=t===n?" ":Hi(t)).length;if(r<2)return r?Si(t,e):t;var i=Si(t,qt(e/Vn(t)));return Bn(t)?eo(qn(i),0,e).join(""):i.slice(0,e)}function Mo(e){return function(t,r,i){return i&&"number"!=typeof i&&Xo(t,r,i)&&(r=i=n),t=Ka(t),r===n?(r=t,t=0):r=Ka(r),function(e,t,n,r){for(var i=-1,o=Jn(qt((t-e)/(n||1)),0),s=Xe(o);o--;)s[r?o:++i]=e,e+=n;return s}(t,r,i=i===n?t<r?1:-1:Ka(i),e)}}function Do(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qa(t),n=Qa(n)),e(t,n)}}function Co(e,t,r,i,o,s,a,l,c,u){var d=t&v;t|=d?_:x,(t&=~(d?x:_))&y||(t&=~(g|b));var p=[e,t,o,d?s:n,d?a:n,d?n:s,d?n:a,l,c,u],h=r.apply(n,p);return ts(e)&&us(h,p),h.placeholder=i,hs(h,e,t)}function So(e){var t=rt[e];return function(e,n){if(e=Qa(e),(n=null==n?0:Zn(Ga(n),292))&&bn(e)){var r=(Za(e)+"e").split("e");return+((r=(Za(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ao=sr&&1/$n(new sr([,-0]))[1]==I?function(e){return new sr(e)}:Hl;function No(e){return function(t){var n=Go(t);return n==Q?Pn(t):n==re?Wn(t):function(e,t){return pn(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Oo(e,t,r,i,o,a,l,c){var d=t&b;if(!d&&"function"!=typeof e)throw new at(s);var p=i?i.length:0;if(p||(t&=~(_|x),i=o=n),l=l===n?l:Jn(Ga(l),0),c=c===n?c:Ga(c),p-=o?o.length:0,t&x){var h=i,f=o;i=o=n}var m=d?n:Bo(e),M=[e,t,r,i,o,h,f,a,l,c];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<(g|b|E),s=r==E&&n==v||r==E&&n==k&&e[7].length<=t[8]||r==(E|k)&&t[7].length<=t[8]&&n==v;if(!o&&!s)return e;r&g&&(e[2]=t[2],i|=n&g?0:y);var a=t[3];if(a){var l=e[3];e[3]=l?so(l,a,t[4]):a,e[4]=l?Hn(e[3],u):t[4]}(a=t[5])&&(l=e[5],e[5]=l?ao(l,a,t[6]):a,e[6]=l?Hn(e[5],u):t[6]);(a=t[7])&&(e[7]=a);r&E&&(e[8]=null==e[8]?t[8]:Zn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(M,m),e=M[0],t=M[1],r=M[2],i=M[3],o=M[4],!(c=M[9]=M[9]===n?d?0:e.length:Jn(M[9]-p,0))&&t&(v|w)&&(t&=~(v|w)),t&&t!=g)D=t==v||t==w?function(e,t,r){var i=bo(e);return function o(){for(var s=arguments.length,a=Xe(s),l=s,c=Uo(o);l--;)a[l]=arguments[l];var u=s<3&&a[0]!==c&&a[s-1]!==c?[]:Hn(a,c);return(s-=u.length)<r?Co(e,t,wo,o.placeholder,n,a,u,n,n,r-s):rn(this&&this!==Vt&&this instanceof o?i:e,this,a)}}(e,t,c):t!=_&&t!=(g|_)||o.length?wo.apply(n,M):function(e,t,n,r){var i=t&g,o=bo(e);return function t(){for(var s=-1,a=arguments.length,l=-1,c=r.length,u=Xe(c+a),d=this&&this!==Vt&&this instanceof t?o:e;++l<c;)u[l]=r[l];for(;a--;)u[l++]=arguments[++s];return rn(d,i?n:this,u)}}(e,t,r,i);else var D=function(e,t,n){var r=t&g,i=bo(e);return function t(){return(this&&this!==Vt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return hs((m?Ii:us)(D,M),e,t)}function To(e,t,r,i){return e===n||wa(e,ut[r])&&!ht.call(i,r)?t:e}function Io(e,t,r,i,o,s){return La(e)&&La(t)&&(s.set(t,e),_i(e,t,n,Io,s),s["delete"](t)),e}function Lo(e){return Ra(e)?n:e}function Fo(e,t,r,i,o,s){var a=r&f,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,g=r&m?new Cr:n;for(s.set(e,t),s.set(t,e);++p<l;){var b=e[p],y=t[p];if(i)var v=a?i(y,b,p,t,e,s):i(b,y,p,e,t,s);if(v!==n){if(v)continue;h=!1;break}if(g){if(!gn(t,(function(e,t){if(!Tn(g,t)&&(b===e||o(b,e,r,i,s)))return g.push(t)}))){h=!1;break}}else if(b!==y&&!o(b,y,r,i,s)){h=!1;break}}return s["delete"](e),s["delete"](t),h}function zo(e){return ps(ss(e,n,Ms),e+"")}function jo(e){return ri(e,dl,qo)}function Ro(e){return ri(e,pl,Ko)}var Bo=cr?function(e){return cr.get(e)}:Hl;function Po(e){for(var t=e.name+"",n=ur[t],r=ht.call(ur,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Uo(e){return(ht.call(vr,"placeholder")?vr:e).placeholder}function Ho(){var e=vr.iteratee||Rl;return e=e===Rl?fi:e,arguments.length?e(arguments[0],arguments[1]):e}function $o(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Wo(e){for(var t=dl(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,is(i)]}return t}function Vo(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return hi(r)?r:n}var qo=Yt?function(e){return null==e?[]:(e=it(e),cn(Yt(e),(function(t){return Dt.call(e,t)})))}:Yl,Ko=Yt?function(e){for(var t=[];e;)hn(t,qo(e)),e=kt(e);return t}:Yl,Go=ii;function Yo(e,t,n){for(var r=-1,i=(t=Zi(t,e)).length,o=!1;++r<i;){var s=bs(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ia(i)&&Zo(s,i)&&(ka(e)||Ea(e))}function Qo(e){return"function"!=typeof e.constructor||rs(e)?{}:wr(kt(e))}function Jo(e){return ka(e)||Ea(e)||!!(St&&e&&e[St])}function Zo(e,t){var n=typeof e;return!!(t=null==t?L:t)&&("number"==n||"symbol"!=n&&Ye.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!La(n))return!1;var r=typeof t;return!!("number"==r?Da(n)&&Zo(t,n.length):"string"==r&&t in n)&&wa(n[t],e)}function es(e,t){if(ka(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ha(e))||(Oe.test(e)||!Ne.test(e)||null!=t&&e in it(t))}function ts(e){var t=Po(e),n=vr[t];if("function"!=typeof n||!(t in Er.prototype))return!1;if(e===n)return!0;var r=Bo(n);return!!r&&e===r[0]}(rr&&Go(new rr(new ArrayBuffer(1)))!=ue||ir&&Go(new ir)!=Q||or&&Go(or.resolve())!=ee||sr&&Go(new sr)!=re||ar&&Go(new ar)!=ae)&&(Go=function(e){var t=ii(e),r=t==X?e.constructor:n,i=r?ys(r):"";if(i)switch(i){case dr:return ue;case pr:return Q;case hr:return ee;case fr:return re;case mr:return ae}return t});var ns=dt?Oa:Ql;function rs(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ut)}function is(e){return e==e&&!La(e)}function os(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in it(r)))}}function ss(e,t,r){return t=Jn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Jn(n.length-t,0),s=Xe(o);++i<o;)s[i]=n[t+i];i=-1;for(var a=Xe(t+1);++i<t;)a[i]=n[i];return a[t]=r(s),rn(e,this,a)}}function as(e,t){return t.length<2?e:ni(e,zi(t,0,-1))}function ls(e,t){for(var r=e.length,i=Zn(t.length,r),o=lo(e);i--;){var s=t[i];e[i]=Zo(s,r)?o[s]:n}return e}function cs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var us=fs(Ii),ds=Wt||function(e,t){return Vt.setTimeout(e,t)},ps=fs(Li);function hs(e,t,n){var r=t+"";return ps(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(je,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return sn(P,(function(n){var r="_."+n[0];t&n[1]&&!un(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Re);return t?t[1].split(Be):[]}(r),n)))}function fs(e){var t=0,r=0;return function(){var i=Xn(),o=A-(i-r);if(r=i,o>0){if(++t>=S)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r<t;){var s=Ci(r,o),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var gs=function(e){var t=fa(e,(function(e){return n.size===c&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Te,(function(e,n,r,i){t.push(r?i.replace(He,"$1"):n||e)})),t}));function bs(e){if("string"==typeof e||Ha(e))return e;var t=e+"";return"0"==t&&1/e==-I?"-0":t}function ys(e){if(null!=e){try{return pt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function vs(e){if(e instanceof Er)return e.clone();var t=new xr(e.__wrapped__,e.__chain__);return t.__actions__=lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ws=Ai((function(e,t){return Ca(e)?Wr(e,Qr(t,1,Ca,!0)):[]})),_s=Ai((function(e,t){var r=Ns(t);return Ca(r)&&(r=n),Ca(e)?Wr(e,Qr(t,1,Ca,!0),Ho(r,2)):[]})),xs=Ai((function(e,t){var r=Ns(t);return Ca(r)&&(r=n),Ca(e)?Wr(e,Qr(t,1,Ca,!0),n,r):[]}));function Es(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ga(n);return i<0&&(i=Jn(r+i,0)),vn(e,Ho(t,3),i)}function ks(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==n&&(o=Ga(r),o=r<0?Jn(i+o,0):Zn(o,i-1)),vn(e,Ho(t,3),o,!0)}function Ms(e){return(null==e?0:e.length)?Qr(e,1):[]}function Ds(e){return e&&e.length?e[0]:n}var Cs=Ai((function(e){var t=pn(e,Qi);return t.length&&t[0]===e[0]?li(t):[]})),Ss=Ai((function(e){var t=Ns(e),r=pn(e,Qi);return t===Ns(r)?t=n:r.pop(),r.length&&r[0]===e[0]?li(r,Ho(t,2)):[]})),As=Ai((function(e){var t=Ns(e),r=pn(e,Qi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?li(r,n,t):[]}));function Ns(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Os=Ai(Ts);function Ts(e,t){return e&&e.length&&t&&t.length?Mi(e,t):e}var Is=zo((function(e,t){var n=null==e?0:e.length,r=Br(e,t);return Di(e,pn(t,(function(e){return Zo(e,n)?+e:e})).sort(oo)),r}));function Ls(e){return null==e?e:nr.call(e)}var Fs=Ai((function(e){return $i(Qr(e,1,Ca,!0))})),zs=Ai((function(e){var t=Ns(e);return Ca(t)&&(t=n),$i(Qr(e,1,Ca,!0),Ho(t,2))})),js=Ai((function(e){var t=Ns(e);return t="function"==typeof t?t:n,$i(Qr(e,1,Ca,!0),n,t)}));function Rs(e){if(!e||!e.length)return[];var t=0;return e=cn(e,(function(e){if(Ca(e))return t=Jn(e.length,t),!0})),Sn(t,(function(t){return pn(e,kn(t))}))}function Bs(e,t){if(!e||!e.length)return[];var r=Rs(e);return null==t?r:pn(r,(function(e){return rn(t,n,e)}))}var Ps=Ai((function(e,t){return Ca(e)?Wr(e,t):[]})),Us=Ai((function(e){return Gi(cn(e,Ca))})),Hs=Ai((function(e){var t=Ns(e);return Ca(t)&&(t=n),Gi(cn(e,Ca),Ho(t,2))})),$s=Ai((function(e){var t=Ns(e);return t="function"==typeof t?t:n,Gi(cn(e,Ca),n,t)})),Ws=Ai(Rs);var Vs=Ai((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,Bs(e,r)}));function qs(e){var t=vr(e);return t.__chain__=!0,t}function Ks(e,t){return t(e)}var Gs=zo((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return Br(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Er&&Zo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:Ks,args:[o],thisArg:n}),new xr(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var Ys=uo((function(e,t,n){ht.call(e,n)?++e[n]:Rr(e,n,1)}));var Qs=yo(Es),Js=yo(ks);function Zs(e,t){return(ka(e)?sn:Vr)(e,Ho(t,3))}function Xs(e,t){return(ka(e)?an:qr)(e,Ho(t,3))}var ea=uo((function(e,t,n){ht.call(e,n)?e[n].push(t):Rr(e,n,[t])}));var ta=Ai((function(e,t,n){var r=-1,i="function"==typeof t,o=Da(e)?Xe(e.length):[];return Vr(e,(function(e){o[++r]=i?rn(t,e,n):ci(e,t,n)})),o})),na=uo((function(e,t,n){Rr(e,n,t)}));function ra(e,t){return(ka(e)?pn:yi)(e,Ho(t,3))}var ia=uo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var oa=Ai((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),Ei(e,Qr(t,1),[])})),sa=$t||function(){return Vt.Date.now()};function aa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Oo(e,E,n,n,n,n,t)}function la(e,t){var r;if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var ca=Ai((function(e,t,n){var r=g;if(n.length){var i=Hn(n,Uo(ca));r|=_}return Oo(e,r,t,n,i)})),ua=Ai((function(e,t,n){var r=g|b;if(n.length){var i=Hn(n,Uo(ua));r|=_}return Oo(t,r,e,n,i)}));function da(e,t,r){var i,o,a,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new at(s);function m(t){var r=i,s=o;return i=o=n,d=t,l=e.apply(s,r)}function g(e){return d=e,c=ds(y,t),p?m(e):l}function b(e){var r=e-u;return u===n||r>=t||r<0||h&&e-d>=a}function y(){var e=sa();if(b(e))return v(e);c=ds(y,function(e){var n=t-(e-u);return h?Zn(n,a-(e-d)):n}(e))}function v(e){return c=n,f&&i?m(e):(i=o=n,l)}function w(){var e=sa(),r=b(e);if(i=arguments,o=this,u=e,r){if(c===n)return g(u);if(h)return to(c),c=ds(y,t),m(u)}return c===n&&(c=ds(y,t)),l}return t=Qa(t)||0,La(r)&&(p=!!r.leading,a=(h="maxWait"in r)?Jn(Qa(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),w.cancel=function(){c!==n&&to(c),d=0,i=u=o=c=n},w.flush=function(){return c===n?l:v(sa())},w}var pa=Ai((function(e,t){return $r(e,1,t)})),ha=Ai((function(e,t,n){return $r(e,Qa(t)||0,n)}));function fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(s);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(fa.Cache||Dr),n}function ma(e){if("function"!=typeof e)throw new at(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}fa.Cache=Dr;var ga=Xi((function(e,t){var n=(t=1==t.length&&ka(t[0])?pn(t[0],Nn(Ho())):pn(Qr(t,1),Nn(Ho()))).length;return Ai((function(r){for(var i=-1,o=Zn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return rn(e,this,r)}))})),ba=Ai((function(e,t){var r=Hn(t,Uo(ba));return Oo(e,_,n,t,r)})),ya=Ai((function(e,t){var r=Hn(t,Uo(ya));return Oo(e,x,n,t,r)})),va=zo((function(e,t){return Oo(e,k,n,n,n,t)}));function wa(e,t){return e===t||e!=e&&t!=t}var _a=Do(oi),xa=Do((function(e,t){return e>=t})),Ea=ui(function(){return arguments}())?ui:function(e){return Fa(e)&&ht.call(e,"callee")&&!Dt.call(e,"callee")},ka=Xe.isArray,Ma=Jt?Nn(Jt):function(e){return Fa(e)&&ii(e)==ce};function Da(e){return null!=e&&Ia(e.length)&&!Oa(e)}function Ca(e){return Fa(e)&&Da(e)}var Sa=Qt||Ql,Aa=Zt?Nn(Zt):function(e){return Fa(e)&&ii(e)==V};function Na(e){if(!Fa(e))return!1;var t=ii(e);return t==K||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!Ra(e)}function Oa(e){if(!La(e))return!1;var t=ii(e);return t==G||t==Y||t==$||t==te}function Ta(e){return"number"==typeof e&&e==Ga(e)}function Ia(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=L}function La(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Fa(e){return null!=e&&"object"==typeof e}var za=Xt?Nn(Xt):function(e){return Fa(e)&&Go(e)==Q};function ja(e){return"number"==typeof e||Fa(e)&&ii(e)==J}function Ra(e){if(!Fa(e)||ii(e)!=X)return!1;var t=kt(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pt.call(n)==bt}var Ba=en?Nn(en):function(e){return Fa(e)&&ii(e)==ne};var Pa=tn?Nn(tn):function(e){return Fa(e)&&Go(e)==re};function Ua(e){return"string"==typeof e||!ka(e)&&Fa(e)&&ii(e)==ie}function Ha(e){return"symbol"==typeof e||Fa(e)&&ii(e)==oe}var $a=nn?Nn(nn):function(e){return Fa(e)&&Ia(e.length)&&!!Rt[ii(e)]};var Wa=Do(bi),Va=Do((function(e,t){return e<=t}));function qa(e){if(!e)return[];if(Da(e))return Ua(e)?qn(e):lo(e);if(Ot&&e[Ot])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ot]());var t=Go(e);return(t==Q?Pn:t==re?$n:wl)(e)}function Ka(e){return e?(e=Qa(e))===I||e===-I?(e<0?-1:1)*F:e==e?e:0:0===e?e:0}function Ga(e){var t=Ka(e),n=t%1;return t==t?n?t-n:t:0}function Ya(e){return e?Pr(Ga(e),0,j):0}function Qa(e){if("number"==typeof e)return e;if(Ha(e))return z;if(La(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=La(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=An(e);var n=qe.test(e);return n||Ge.test(e)?Ht(e.slice(2),n?2:8):Ve.test(e)?z:+e}function Ja(e){return co(e,pl(e))}function Za(e){return null==e?"":Hi(e)}var Xa=po((function(e,t){if(rs(t)||Da(t))co(t,dl(t),e);else for(var n in t)ht.call(t,n)&&Lr(e,n,t[n])})),el=po((function(e,t){co(t,pl(t),e)})),tl=po((function(e,t,n,r){co(t,pl(t),e,r)})),nl=po((function(e,t,n,r){co(t,dl(t),e,r)})),rl=zo(Br);var il=Ai((function(e,t){e=it(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&Xo(t[0],t[1],o)&&(i=1);++r<i;)for(var s=t[r],a=pl(s),l=-1,c=a.length;++l<c;){var u=a[l],d=e[u];(d===n||wa(d,ut[u])&&!ht.call(e,u))&&(e[u]=s[u])}return e})),ol=Ai((function(e){return e.push(n,Io),rn(fl,n,e)}));function sl(e,t,r){var i=null==e?n:ni(e,t);return i===n?r:i}function al(e,t){return null!=e&&Yo(e,t,ai)}var ll=_o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),e[t]=n}),Ll(jl)),cl=_o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),ht.call(e,t)?e[t].push(n):e[t]=[n]}),Ho),ul=Ai(ci);function dl(e){return Da(e)?Ar(e):mi(e)}function pl(e){return Da(e)?Ar(e,!0):gi(e)}var hl=po((function(e,t,n){_i(e,t,n)})),fl=po((function(e,t,n,r){_i(e,t,n,r)})),ml=zo((function(e,t){var n={};if(null==e)return n;var r=!1;t=pn(t,(function(t){return t=Zi(t,e),r||(r=t.length>1),t})),co(e,Ro(e),n),r&&(n=Ur(n,d|p|h,Lo));for(var i=t.length;i--;)Wi(n,t[i]);return n}));var gl=zo((function(e,t){return null==e?{}:function(e,t){return ki(e,t,(function(t,n){return al(e,n)}))}(e,t)}));function bl(e,t){if(null==e)return{};var n=pn(Ro(e),(function(e){return[e]}));return t=Ho(t),ki(e,n,(function(e,n){return t(e,n[0])}))}var yl=No(dl),vl=No(pl);function wl(e){return null==e?[]:On(e,dl(e))}var _l=go((function(e,t,n){return t=t.toLowerCase(),e+(n?xl(t):t)}));function xl(e){return Nl(Za(e).toLowerCase())}function El(e){return(e=Za(e))&&e.replace(Qe,zn).replace(Nt,"")}var kl=go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ml=go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Dl=mo("toLowerCase");var Cl=go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Sl=go((function(e,t,n){return e+(n?" ":"")+Nl(t)}));var Al=go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Nl=mo("toUpperCase");function Ol(e,t,r){return e=Za(e),(t=r?n:t)===n?function(e){return Ft.test(e)}(e)?function(e){return e.match(It)||[]}(e):function(e){return e.match(Pe)||[]}(e):e.match(t)||[]}var Tl=Ai((function(e,t){try{return rn(e,n,t)}catch(e){return Na(e)?e:new tt(e)}})),Il=zo((function(e,t){return sn(t,(function(t){t=bs(t),Rr(e,t,ca(e[t],e))})),e}));function Ll(e){return function(){return e}}var Fl=vo(),zl=vo(!0);function jl(e){return e}function Rl(e){return fi("function"==typeof e?e:Ur(e,d))}var Bl=Ai((function(e,t){return function(n){return ci(n,e,t)}})),Pl=Ai((function(e,t){return function(n){return ci(e,n,t)}}));function Ul(e,t,n){var r=dl(t),i=ti(t,r);null!=n||La(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=ti(t,dl(t)));var o=!(La(n)&&"chain"in n&&!n.chain),s=Oa(e);return sn(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=lo(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,hn([this.value()],arguments))})})),e}function Hl(){}var $l=Eo(pn),Wl=Eo(ln),Vl=Eo(gn);function ql(e){return es(e)?kn(bs(e)):function(e){return function(t){return ni(t,e)}}(e)}var Kl=Mo(),Gl=Mo(!0);function Yl(){return[]}function Ql(){return!1}var Jl=xo((function(e,t){return e+t}),0),Zl=So("ceil"),Xl=xo((function(e,t){return e/t}),1),ec=So("floor");var tc=xo((function(e,t){return e*t}),1),nc=So("round"),rc=xo((function(e,t){return e-t}),0);return vr.after=function(e,t){if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){if(--e<1)return t.apply(this,arguments)}},vr.ary=aa,vr.assign=Xa,vr.assignIn=el,vr.assignInWith=tl,vr.assignWith=nl,vr.at=rl,vr.before=la,vr.bind=ca,vr.bindAll=Il,vr.bindKey=ua,vr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ka(e)?e:[e]},vr.chain=qs,vr.chunk=function(e,t,r){t=(r?Xo(e,t,r):t===n)?1:Jn(Ga(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,a=Xe(qt(i/t));o<i;)a[s++]=zi(e,o,o+=t);return a},vr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},vr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Xe(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return hn(ka(n)?lo(n):[n],Qr(t,1))},vr.cond=function(e){var t=null==e?0:e.length,n=Ho();return e=t?pn(e,(function(e){if("function"!=typeof e[1])throw new at(s);return[n(e[0]),e[1]]})):[],Ai((function(n){for(var r=-1;++r<t;){var i=e[r];if(rn(i[0],this,n))return rn(i[1],this,n)}}))},vr.conforms=function(e){return function(e){var t=dl(e);return function(n){return Hr(n,e,t)}}(Ur(e,d))},vr.constant=Ll,vr.countBy=Ys,vr.create=function(e,t){var n=wr(e);return null==t?n:jr(n,t)},vr.curry=function e(t,r,i){var o=Oo(t,v,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},vr.curryRight=function e(t,r,i){var o=Oo(t,w,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},vr.debounce=da,vr.defaults=il,vr.defaultsDeep=ol,vr.defer=pa,vr.delay=ha,vr.difference=ws,vr.differenceBy=_s,vr.differenceWith=xs,vr.drop=function(e,t,r){var i=null==e?0:e.length;return i?zi(e,(t=r||t===n?1:Ga(t))<0?0:t,i):[]},vr.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?zi(e,0,(t=i-(t=r||t===n?1:Ga(t)))<0?0:t):[]},vr.dropRightWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3),!0,!0):[]},vr.dropWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3),!0):[]},vr.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Xo(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=Ga(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:Ga(i))<0&&(i+=o),i=r>i?0:Ya(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},vr.filter=function(e,t){return(ka(e)?cn:Yr)(e,Ho(t,3))},vr.flatMap=function(e,t){return Qr(ra(e,t),1)},vr.flatMapDeep=function(e,t){return Qr(ra(e,t),I)},vr.flatMapDepth=function(e,t,r){return r=r===n?1:Ga(r),Qr(ra(e,t),r)},vr.flatten=Ms,vr.flattenDeep=function(e){return(null==e?0:e.length)?Qr(e,I):[]},vr.flattenDepth=function(e,t){return(null==e?0:e.length)?Qr(e,t=t===n?1:Ga(t)):[]},vr.flip=function(e){return Oo(e,M)},vr.flow=Fl,vr.flowRight=zl,vr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},vr.functions=function(e){return null==e?[]:ti(e,dl(e))},vr.functionsIn=function(e){return null==e?[]:ti(e,pl(e))},vr.groupBy=ea,vr.initial=function(e){return(null==e?0:e.length)?zi(e,0,-1):[]},vr.intersection=Cs,vr.intersectionBy=Ss,vr.intersectionWith=As,vr.invert=ll,vr.invertBy=cl,vr.invokeMap=ta,vr.iteratee=Rl,vr.keyBy=na,vr.keys=dl,vr.keysIn=pl,vr.map=ra,vr.mapKeys=function(e,t){var n={};return t=Ho(t,3),Xr(e,(function(e,r,i){Rr(n,t(e,r,i),e)})),n},vr.mapValues=function(e,t){var n={};return t=Ho(t,3),Xr(e,(function(e,r,i){Rr(n,r,t(e,r,i))})),n},vr.matches=function(e){return vi(Ur(e,d))},vr.matchesProperty=function(e,t){return wi(e,Ur(t,d))},vr.memoize=fa,vr.merge=hl,vr.mergeWith=fl,vr.method=Bl,vr.methodOf=Pl,vr.mixin=Ul,vr.negate=ma,vr.nthArg=function(e){return e=Ga(e),Ai((function(t){return xi(t,e)}))},vr.omit=ml,vr.omitBy=function(e,t){return bl(e,ma(Ho(t)))},vr.once=function(e){return la(2,e)},vr.orderBy=function(e,t,r,i){return null==e?[]:(ka(t)||(t=null==t?[]:[t]),ka(r=i?n:r)||(r=null==r?[]:[r]),Ei(e,t,r))},vr.over=$l,vr.overArgs=ga,vr.overEvery=Wl,vr.overSome=Vl,vr.partial=ba,vr.partialRight=ya,vr.partition=ia,vr.pick=gl,vr.pickBy=bl,vr.property=ql,vr.propertyOf=function(e){return function(t){return null==e?n:ni(e,t)}},vr.pull=Os,vr.pullAll=Ts,vr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mi(e,t,Ho(n,2)):e},vr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Mi(e,t,n,r):e},vr.pullAt=Is,vr.range=Kl,vr.rangeRight=Gl,vr.rearg=va,vr.reject=function(e,t){return(ka(e)?cn:Yr)(e,ma(Ho(t,3)))},vr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Ho(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Di(e,i),n},vr.rest=function(e,t){if("function"!=typeof e)throw new at(s);return Ai(e,t=t===n?t:Ga(t))},vr.reverse=Ls,vr.sampleSize=function(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Ga(t),(ka(e)?Or:Oi)(e,t)},vr.set=function(e,t,n){return null==e?e:Ti(e,t,n)},vr.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Ti(e,t,r,i)},vr.shuffle=function(e){return(ka(e)?Tr:Fi)(e)},vr.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Xo(e,t,r)?(t=0,r=i):(t=null==t?0:Ga(t),r=r===n?i:Ga(r)),zi(e,t,r)):[]},vr.sortBy=oa,vr.sortedUniq=function(e){return e&&e.length?Pi(e):[]},vr.sortedUniqBy=function(e,t){return e&&e.length?Pi(e,Ho(t,2)):[]},vr.split=function(e,t,r){return r&&"number"!=typeof r&&Xo(e,t,r)&&(t=r=n),(r=r===n?j:r>>>0)?(e=Za(e))&&("string"==typeof t||null!=t&&!Ba(t))&&!(t=Hi(t))&&Bn(e)?eo(qn(e),0,r):e.split(t,r):[]},vr.spread=function(e,t){if("function"!=typeof e)throw new at(s);return t=null==t?0:Jn(Ga(t),0),Ai((function(n){var r=n[t],i=eo(n,0,t);return r&&hn(i,r),rn(e,this,i)}))},vr.tail=function(e){var t=null==e?0:e.length;return t?zi(e,1,t):[]},vr.take=function(e,t,r){return e&&e.length?zi(e,0,(t=r||t===n?1:Ga(t))<0?0:t):[]},vr.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?zi(e,(t=i-(t=r||t===n?1:Ga(t)))<0?0:t,i):[]},vr.takeRightWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3),!1,!0):[]},vr.takeWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3)):[]},vr.tap=function(e,t){return t(e),e},vr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new at(s);return La(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),da(e,t,{leading:r,maxWait:t,trailing:i})},vr.thru=Ks,vr.toArray=qa,vr.toPairs=yl,vr.toPairsIn=vl,vr.toPath=function(e){return ka(e)?pn(e,bs):Ha(e)?[e]:lo(gs(Za(e)))},vr.toPlainObject=Ja,vr.transform=function(e,t,n){var r=ka(e),i=r||Sa(e)||$a(e);if(t=Ho(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:La(e)&&Oa(o)?wr(kt(e)):{}}return(i?sn:Xr)(e,(function(e,r,i){return t(n,e,r,i)})),n},vr.unary=function(e){return aa(e,1)},vr.union=Fs,vr.unionBy=zs,vr.unionWith=js,vr.uniq=function(e){return e&&e.length?$i(e):[]},vr.uniqBy=function(e,t){return e&&e.length?$i(e,Ho(t,2)):[]},vr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?$i(e,n,t):[]},vr.unset=function(e,t){return null==e||Wi(e,t)},vr.unzip=Rs,vr.unzipWith=Bs,vr.update=function(e,t,n){return null==e?e:Vi(e,t,Ji(n))},vr.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Vi(e,t,Ji(r),i)},vr.values=wl,vr.valuesIn=function(e){return null==e?[]:On(e,pl(e))},vr.without=Ps,vr.words=Ol,vr.wrap=function(e,t){return ba(Ji(t),e)},vr.xor=Us,vr.xorBy=Hs,vr.xorWith=$s,vr.zip=Ws,vr.zipObject=function(e,t){return Yi(e||[],t||[],Lr)},vr.zipObjectDeep=function(e,t){return Yi(e||[],t||[],Ti)},vr.zipWith=Vs,vr.entries=yl,vr.entriesIn=vl,vr.extend=el,vr.extendWith=tl,Ul(vr,vr),vr.add=Jl,vr.attempt=Tl,vr.camelCase=_l,vr.capitalize=xl,vr.ceil=Zl,vr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=Qa(r))==r?r:0),t!==n&&(t=(t=Qa(t))==t?t:0),Pr(Qa(e),t,r)},vr.clone=function(e){return Ur(e,h)},vr.cloneDeep=function(e){return Ur(e,d|h)},vr.cloneDeepWith=function(e,t){return Ur(e,d|h,t="function"==typeof t?t:n)},vr.cloneWith=function(e,t){return Ur(e,h,t="function"==typeof t?t:n)},vr.conformsTo=function(e,t){return null==t||Hr(e,t,dl(t))},vr.deburr=El,vr.defaultTo=function(e,t){return null==e||e!=e?t:e},vr.divide=Xl,vr.endsWith=function(e,t,r){e=Za(e),t=Hi(t);var i=e.length,o=r=r===n?i:Pr(Ga(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},vr.eq=wa,vr.escape=function(e){return(e=Za(e))&&De.test(e)?e.replace(ke,jn):e},vr.escapeRegExp=function(e){return(e=Za(e))&&Le.test(e)?e.replace(Ie,"\\$&"):e},vr.every=function(e,t,r){var i=ka(e)?ln:Kr;return r&&Xo(e,t,r)&&(t=n),i(e,Ho(t,3))},vr.find=Qs,vr.findIndex=Es,vr.findKey=function(e,t){return yn(e,Ho(t,3),Xr)},vr.findLast=Js,vr.findLastIndex=ks,vr.findLastKey=function(e,t){return yn(e,Ho(t,3),ei)},vr.floor=ec,vr.forEach=Zs,vr.forEachRight=Xs,vr.forIn=function(e,t){return null==e?e:Jr(e,Ho(t,3),pl)},vr.forInRight=function(e,t){return null==e?e:Zr(e,Ho(t,3),pl)},vr.forOwn=function(e,t){return e&&Xr(e,Ho(t,3))},vr.forOwnRight=function(e,t){return e&&ei(e,Ho(t,3))},vr.get=sl,vr.gt=_a,vr.gte=xa,vr.has=function(e,t){return null!=e&&Yo(e,t,si)},vr.hasIn=al,vr.head=Ds,vr.identity=jl,vr.includes=function(e,t,n,r){e=Da(e)?e:wl(e),n=n&&!r?Ga(n):0;var i=e.length;return n<0&&(n=Jn(i+n,0)),Ua(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wn(e,t,n)>-1},vr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ga(n);return i<0&&(i=Jn(r+i,0)),wn(e,t,i)},vr.inRange=function(e,t,r){return t=Ka(t),r===n?(r=t,t=0):r=Ka(r),function(e,t,n){return e>=Zn(t,n)&&e<Jn(t,n)}(e=Qa(e),t,r)},vr.invoke=ul,vr.isArguments=Ea,vr.isArray=ka,vr.isArrayBuffer=Ma,vr.isArrayLike=Da,vr.isArrayLikeObject=Ca,vr.isBoolean=function(e){return!0===e||!1===e||Fa(e)&&ii(e)==W},vr.isBuffer=Sa,vr.isDate=Aa,vr.isElement=function(e){return Fa(e)&&1===e.nodeType&&!Ra(e)},vr.isEmpty=function(e){if(null==e)return!0;if(Da(e)&&(ka(e)||"string"==typeof e||"function"==typeof e.splice||Sa(e)||$a(e)||Ea(e)))return!e.length;var t=Go(e);if(t==Q||t==re)return!e.size;if(rs(e))return!mi(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0},vr.isEqual=function(e,t){return di(e,t)},vr.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?di(e,t,n,r):!!i},vr.isError=Na,vr.isFinite=function(e){return"number"==typeof e&&bn(e)},vr.isFunction=Oa,vr.isInteger=Ta,vr.isLength=Ia,vr.isMap=za,vr.isMatch=function(e,t){return e===t||pi(e,t,Wo(t))},vr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,pi(e,t,Wo(t),r)},vr.isNaN=function(e){return ja(e)&&e!=+e},vr.isNative=function(e){if(ns(e))throw new tt(o);return hi(e)},vr.isNil=function(e){return null==e},vr.isNull=function(e){return null===e},vr.isNumber=ja,vr.isObject=La,vr.isObjectLike=Fa,vr.isPlainObject=Ra,vr.isRegExp=Ba,vr.isSafeInteger=function(e){return Ta(e)&&e>=-L&&e<=L},vr.isSet=Pa,vr.isString=Ua,vr.isSymbol=Ha,vr.isTypedArray=$a,vr.isUndefined=function(e){return e===n},vr.isWeakMap=function(e){return Fa(e)&&Go(e)==ae},vr.isWeakSet=function(e){return Fa(e)&&ii(e)==le},vr.join=function(e,t){return null==e?"":Mn.call(e,t)},vr.kebabCase=kl,vr.last=Ns,vr.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=Ga(r))<0?Jn(i+o,0):Zn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):vn(e,xn,o,!0)},vr.lowerCase=Ml,vr.lowerFirst=Dl,vr.lt=Wa,vr.lte=Va,vr.max=function(e){return e&&e.length?Gr(e,jl,oi):n},vr.maxBy=function(e,t){return e&&e.length?Gr(e,Ho(t,2),oi):n},vr.mean=function(e){return En(e,jl)},vr.meanBy=function(e,t){return En(e,Ho(t,2))},vr.min=function(e){return e&&e.length?Gr(e,jl,bi):n},vr.minBy=function(e,t){return e&&e.length?Gr(e,Ho(t,2),bi):n},vr.stubArray=Yl,vr.stubFalse=Ql,vr.stubObject=function(){return{}},vr.stubString=function(){return""},vr.stubTrue=function(){return!0},vr.multiply=tc,vr.nth=function(e,t){return e&&e.length?xi(e,Ga(t)):n},vr.noConflict=function(){return Vt._===this&&(Vt._=yt),this},vr.noop=Hl,vr.now=sa,vr.pad=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ko(Kt(i),n)+e+ko(qt(i),n)},vr.padEnd=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;return t&&r<t?e+ko(t-r,n):e},vr.padStart=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;return t&&r<t?ko(t-r,n)+e:e},vr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),er(Za(e).replace(Fe,""),t||0)},vr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Xo(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Ka(e),t===n?(t=e,e=0):t=Ka(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=tr();return Zn(e+o*(t-e+Ut("1e-"+((o+"").length-1))),t)}return Ci(e,t)},vr.reduce=function(e,t,n){var r=ka(e)?fn:Dn,i=arguments.length<3;return r(e,Ho(t,4),n,i,Vr)},vr.reduceRight=function(e,t,n){var r=ka(e)?mn:Dn,i=arguments.length<3;return r(e,Ho(t,4),n,i,qr)},vr.repeat=function(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Ga(t),Si(Za(e),t)},vr.replace=function(){var e=arguments,t=Za(e[0]);return e.length<3?t:t.replace(e[1],e[2])},vr.result=function(e,t,r){var i=-1,o=(t=Zi(t,e)).length;for(o||(o=1,e=n);++i<o;){var s=null==e?n:e[bs(t[i])];s===n&&(i=o,s=r),e=Oa(s)?s.call(e):s}return e},vr.round=nc,vr.runInContext=e,vr.sample=function(e){return(ka(e)?Nr:Ni)(e)},vr.size=function(e){if(null==e)return 0;if(Da(e))return Ua(e)?Vn(e):e.length;var t=Go(e);return t==Q||t==re?e.size:mi(e).length},vr.snakeCase=Cl,vr.some=function(e,t,r){var i=ka(e)?gn:ji;return r&&Xo(e,t,r)&&(t=n),i(e,Ho(t,3))},vr.sortedIndex=function(e,t){return Ri(e,t)},vr.sortedIndexBy=function(e,t,n){return Bi(e,t,Ho(n,2))},vr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Ri(e,t);if(r<n&&wa(e[r],t))return r}return-1},vr.sortedLastIndex=function(e,t){return Ri(e,t,!0)},vr.sortedLastIndexBy=function(e,t,n){return Bi(e,t,Ho(n,2),!0)},vr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Ri(e,t,!0)-1;if(wa(e[n],t))return n}return-1},vr.startCase=Sl,vr.startsWith=function(e,t,n){return e=Za(e),n=null==n?0:Pr(Ga(n),0,e.length),t=Hi(t),e.slice(n,n+t.length)==t},vr.subtract=rc,vr.sum=function(e){return e&&e.length?Cn(e,jl):0},vr.sumBy=function(e,t){return e&&e.length?Cn(e,Ho(t,2)):0},vr.template=function(e,t,r){var i=vr.templateSettings;r&&Xo(e,t,r)&&(t=n),e=Za(e),t=tl({},t,i,To);var o,s,l=tl({},t.imports,i.imports,To),c=dl(l),u=On(l,c),d=0,p=t.interpolate||Je,h="__p += '",f=ot((t.escape||Je).source+"|"+p.source+"|"+(p===Ae?$e:Je).source+"|"+(t.evaluate||Je).source+"|$","g"),m="//# sourceURL="+(ht.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jt+"]")+"\n";e.replace(f,(function(t,n,r,i,a,l){return r||(r=i),h+=e.slice(d,l).replace(Ze,Rn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=l+t.length,t})),h+="';\n";var g=ht.call(t,"variable")&&t.variable;if(g){if(Ue.test(g))throw new tt(a)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(we,""):h).replace(_e,"$1").replace(xe,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var b=Tl((function(){return nt(c,m+"return "+h).apply(n,u)}));if(b.source=h,Na(b))throw b;return b},vr.times=function(e,t){if((e=Ga(e))<1||e>L)return[];var n=j,r=Zn(e,j);t=Ho(t),e-=j;for(var i=Sn(r,t);++n<e;)t(n);return i},vr.toFinite=Ka,vr.toInteger=Ga,vr.toLength=Ya,vr.toLower=function(e){return Za(e).toLowerCase()},vr.toNumber=Qa,vr.toSafeInteger=function(e){return e?Pr(Ga(e),-L,L):0===e?e:0},vr.toString=Za,vr.toUpper=function(e){return Za(e).toUpperCase()},vr.trim=function(e,t,r){if((e=Za(e))&&(r||t===n))return An(e);if(!e||!(t=Hi(t)))return e;var i=qn(e),o=qn(t);return eo(i,In(i,o),Ln(i,o)+1).join("")},vr.trimEnd=function(e,t,r){if((e=Za(e))&&(r||t===n))return e.slice(0,Kn(e)+1);if(!e||!(t=Hi(t)))return e;var i=qn(e);return eo(i,0,Ln(i,qn(t))+1).join("")},vr.trimStart=function(e,t,r){if((e=Za(e))&&(r||t===n))return e.replace(Fe,"");if(!e||!(t=Hi(t)))return e;var i=qn(e);return eo(i,In(i,qn(t))).join("")},vr.truncate=function(e,t){var r=D,i=C;if(La(t)){var o="separator"in t?t.separator:o;r="length"in t?Ga(t.length):r,i="omission"in t?Hi(t.omission):i}var s=(e=Za(e)).length;if(Bn(e)){var a=qn(e);s=a.length}if(r>=s)return e;var l=r-Vn(i);if(l<1)return i;var c=a?eo(a,0,l).join(""):e.slice(0,l);if(o===n)return c+i;if(a&&(l+=c.length-l),Ba(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=ot(o.source,Za(We.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(Hi(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+i},vr.unescape=function(e){return(e=Za(e))&&Me.test(e)?e.replace(Ee,Gn):e},vr.uniqueId=function(e){var t=++ft;return Za(e)+t},vr.upperCase=Al,vr.upperFirst=Nl,vr.each=Zs,vr.eachRight=Xs,vr.first=Ds,Ul(vr,function(){var e={};return Xr(vr,(function(t,n){ht.call(vr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),vr.VERSION=r,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){vr[e].placeholder=vr})),sn(["drop","take"],(function(e,t){Er.prototype[e]=function(r){r=r===n?1:Jn(Ga(r),0);var i=this.__filtered__&&!t?new Er(this):this.clone();return i.__filtered__?i.__takeCount__=Zn(r,i.__takeCount__):i.__views__.push({size:Zn(r,j),type:e+(i.__dir__<0?"Right":"")}),i},Er.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),sn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==N||n==T;Er.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ho(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),sn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Er.prototype[e]=function(){return this[n](1).value()[0]}})),sn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Er.prototype[e]=function(){return this.__filtered__?new Er(this):this[n](1)}})),Er.prototype.compact=function(){return this.filter(jl)},Er.prototype.find=function(e){return this.filter(e).head()},Er.prototype.findLast=function(e){return this.reverse().find(e)},Er.prototype.invokeMap=Ai((function(e,t){return"function"==typeof e?new Er(this):this.map((function(n){return ci(n,e,t)}))})),Er.prototype.reject=function(e){return this.filter(ma(Ho(e)))},Er.prototype.slice=function(e,t){e=Ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Er(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=Ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},Er.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Er.prototype.toArray=function(){return this.take(j)},Xr(Er.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=vr[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(vr.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof Er,c=a[0],u=l||ka(t),d=function(e){var t=o.apply(vr,hn([e],a));return i&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=s&&!p,m=l&&!h;if(!s&&u){t=m?t:new Er(this);var g=e.apply(t,a);return g.__actions__.push({func:Ks,args:[d],thisArg:n}),new xr(g,p)}return f&&m?e.apply(this,a):(g=this.thru(d),f?i?g.value()[0]:g.value():g)})})),sn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=lt[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);vr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ka(i)?i:[],e)}return this[n]((function(n){return t.apply(ka(n)?n:[],e)}))}})),Xr(Er.prototype,(function(e,t){var n=vr[t];if(n){var r=n.name+"";ht.call(ur,r)||(ur[r]=[]),ur[r].push({name:t,func:n})}})),ur[wo(n,b).name]=[{name:"wrapper",func:n}],Er.prototype.clone=function(){var e=new Er(this.__wrapped__);return e.__actions__=lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=lo(this.__views__),e},Er.prototype.reverse=function(){if(this.__filtered__){var e=new Er(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Er.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ka(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Zn(t,e+s);break;case"takeRight":e=Jn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,c=r?a:s-1,u=this.__iteratees__,d=u.length,p=0,h=Zn(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return Ki(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var m=-1,g=e[c+=t];++m<d;){var b=u[m],y=b.iteratee,v=b.type,w=y(g);if(v==O)g=w;else if(!w){if(v==N)continue e;break e}}f[p++]=g}return f},vr.prototype.at=Gs,vr.prototype.chain=function(){return qs(this)},vr.prototype.commit=function(){return new xr(this.value(),this.__chain__)},vr.prototype.next=function(){this.__values__===n&&(this.__values__=qa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},vr.prototype.plant=function(e){for(var t,r=this;r instanceof _r;){var i=vs(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},vr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Er){var t=e;return this.__actions__.length&&(t=new Er(this)),(t=t.reverse()).__actions__.push({func:Ks,args:[Ls],thisArg:n}),new xr(t,this.__chain__)}return this.thru(Ls)},vr.prototype.toJSON=vr.prototype.valueOf=vr.prototype.value=function(){return Ki(this.__wrapped__,this.__actions__)},vr.prototype.first=vr.prototype.head,Ot&&(vr.prototype[Ot]=function(){return this}),vr}();Kt?((Kt.exports=Yn)._=Yn,qt._=Yn):Vt._=Yn}).call(Tt)}($I,$I.exports);const WI=()=>document.documentElement.style.setProperty("--focus-background-color","rgba(234, 243, 252, 0.5)"),VI=()=>document.documentElement.style.setProperty("--focus-background-color","transparent"),qI={onMouseEnter:WI,onMouseLeave:VI},KI=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?qI:{}};function GI(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var YI="undefined"!=typeof window&&"undefined"!=typeof document;function QI(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function JI(){return YI&&document.createElement("div")}function ZI(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!ZI(e[n],t[n]))return!1}return!0}return!1}function XI(e){var t=[];return e.forEach((function(e){t.find((function(t){return ZI(e,t)}))||t.push(e)})),t}var eL=YI?u:o;function tL(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var nL={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||tL(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&tL(t,"remove",e.props.className)},onAfterUpdate:r}}};function rL(e){return function(i){var o=i.children,s=i.content,a=i.visible,l=i.singleton,u=i.render,d=i.reference,p=i.disabled,h=void 0!==p&&p,f=i.ignoreAttributes,m=void 0===f||f;i.__source,i.__self;var g,b,y=GI(i,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),v=void 0!==a,w=void 0!==l,_=n(!1),x=_[0],E=_[1],k=n({}),M=k[0],D=k[1],C=n(),S=C[0],A=C[1],N=(g=function(){return{container:JI(),renders:1}},(b=r()).current||(b.current="function"==typeof g?g():g),b.current),O=Object.assign({ignoreAttributes:m},y,{content:N.container});v&&(O.trigger="manual",O.hideOnClick=!1),w&&(h=!0);var T=O,I=O.plugins||[];u&&(T=Object.assign({},O,{plugins:w&&null!=l.data?[].concat(I,[{fn:function(){return{onTrigger:function(e,t){var n=l.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,A(n.content)}}}}]):I,render:function(){return{popper:N.container}}}));var L=[d].concat(o?[o.type]:[]);return eL((function(){var t=d;d&&d.hasOwnProperty("current")&&(t=d.current);var n=e(t||N.ref||JI(),Object.assign({},T,{plugins:[nL].concat(O.plugins||[])}));return N.instance=n,h&&n.disable(),a&&n.show(),w&&l.hook({instance:n,content:s,props:T,setSingletonContent:A}),E(!0),function(){n.destroy(),null==l||l.cleanup(n)}}),L),eL((function(){var e;if(1!==N.renders){var t,n,r,i,o=N.instance;o.setProps((t=o.props,n=T,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:XI([].concat((null==(r=t.popperOptions)?void 0:r.modifiers)||[],(null==(i=n.popperOptions)?void 0:i.modifiers)||[]))})}))),null==(e=o.popperInstance)||e.forceUpdate(),h?o.disable():o.enable(),v&&(a?o.show():o.hide()),w&&l.hook({instance:o,content:s,props:T,setSingletonContent:A})}else N.renders++})),eL((function(){var e;if(u){var t=N.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;M.placement===n.placement&&M.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&M.escaped===(null==r?void 0:r.hasPopperEscaped)||D({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[M.placement,M.referenceHidden,M.escaped].concat(L)),t.createElement(t.Fragment,null,o?c(o,{ref:function(e){N.ref=e,QI(o.ref,e)}}):null,x&&me(u?u(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(M),S,N.instance):s,N.container))}}var iL=function(e,n){return l((function(r,i){var o=r.children,s=GI(r,["children"]);return t.createElement(e,Object.assign({},n,s),o?c(o,{ref:function(e){QI(i,e),QI(o.ref,e)}}):null)}))},oL=iL(rL(yM));class sL extends t.Component{constructor(e){super(e),Hp(this,"keydownHandler",(e=>{const t={Enter:this.enterHandler,ArrowUp:this.upHandler,ArrowDown:this.downHandler,ArrowLeft:this.leftArrowHandler,ArrowRight:this.rightArrowHandler};e.key in t&&t[e.key](e)})),Hp(this,"selectItem",(e=>{const{items:t,editor:n,range:r}=this.props,i=t[e],o=i&&i.command,s=hr(i.items);o&&s&&i.command({editor:n,range:r})})),Hp(this,"upHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+e.length-1)%e.length})})),Hp(this,"downHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+1)%e.length})})),Hp(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),Hp(this,"leftArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t}=this.props;e>0&&t(e-1)})),Hp(this,"rightArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t,items:n}=this.props,{selectedIndex:r}=this.state,i=n[r];i&&!hr(i.items)&&t(e+1)})),this.state={selectedIndex:0},this.menuRef=t.createRef()}componentDidMount(){const{menuIndex:e,activeMenuIndex:t}=this.props;e===t&&document.addEventListener("keydown",this.keydownHandler)}componentWillUnmount(){document.removeEventListener("keydown",this.keydownHandler)}componentDidUpdate(e){const{items:t,menuIndex:n,activeMenuIndex:r}=this.props,i=n===r;t!==e.items&&this.setState({selectedIndex:0}),PT({wrapperRef:this.menuRef,index:this.state.selectedIndex}),i?document.addEventListener("keydown",this.keydownHandler):document.removeEventListener("keydown",this.keydownHandler)}render(){const{items:e,menuIndex:n,activeMenuIndex:r}=this.props,{selectedIndex:i}=this.state,o=n===r;return t.createElement("div",{className:"neeto-editor-slash-commands__wrapper",ref:this.menuRef},e.map(((e,r)=>{const s=hr(e.items),a=t.createElement(aL,{index:r,item:e,key:e.title,selectItem:()=>s&&this.selectItem(r),selectedIndex:o?i:-1,onHover:()=>this.setState({selectedIndex:r})});return s?a:t.createElement(oL,{interactive:!0,key:e.title,placement:"right",visible:i===r,content:t.createElement(sL,Pf({},this.props,{items:e.items,menuIndex:n+1})),onCreate:e=>{let{popper:t}=e;return t.style.width="max-content"},onHide:()=>{this.isSubmenuOpened=!1},onShow:()=>{this.isSubmenuOpened=!0}},a)})))}}const aL=l(((e,n)=>{let{item:r,selectedIndex:i,index:o,selectItem:s,onHover:a}=e;const{Icon:l}=r;return t.createElement("div",{"data-cy":`neeto-editor-command-list-item-${o}`,ref:n,className:Lr("neeto-editor-slash-commands__item",{active:o===i}),onClick:s,onMouseEnter:a},l&&t.createElement(l,{size:20}),t.createElement("div",{className:"neeto-editor-slash-commands__item-content"},t.createElement("h5",null,r.title),t.createElement("p",null,r.description)))}));class lL extends t.Component{constructor(){super(...arguments),Hp(this,"state",{activeMenuIndex:0}),Hp(this,"onKeyDown",(e=>{let{event:t}=e;return["Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)})),Hp(this,"setActiveMenuIndex",(e=>this.setState({activeMenuIndex:e})))}render(){return t.createElement(sL,Pf({},this.props,{activeMenuIndex:this.state.activeMenuIndex,items:this.props.items,menuIndex:0,setActiveMenuIndex:this.setActiveMenuIndex}))}}const cL=[{optionName:Fr.PARAGRAPH,title:"Paragraph",description:"Add a plain text block.",Icon:R,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("paragraph").run()}},{optionName:Fr.H1,title:"H1",description:"Add a big heading.",Icon:B,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:1}).run()}},{optionName:Fr.H2,title:"H2",description:"Add a sub-heading.",Icon:P,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:2}).run()}},{optionName:Fr.H3,title:"H3",description:"Add a sub-heading of level 3.",Icon:U,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:3}).run()}},{optionName:Fr.H4,title:"H4",description:"Add a sub-heading of level 4.",Icon:U,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:4}).run()}},{optionName:Fr.H5,title:"H5",description:"Add a sub-heading of level 5.",Icon:U,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:5}).run()}},{optionName:Fr.H6,title:"H6",description:"Add a sub-heading of level 6.",Icon:U,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:6}).run()}},{optionName:Fr.LIST_ORDERED,title:"Numbered list",description:"Add a list with numbering.",Icon:H,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleOrderedList().run()}},{optionName:Fr.LIST_BULLETS,title:"Bulleted list",description:"Add a list with bullets.",Icon:$,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBulletList().run()}},{optionName:Fr.IMAGE_UPLOAD,title:"Image",description:"Add an image.",Icon:W,command:h},{optionName:Fr.VIDEO_UPLOAD,title:"Video",description:"Add a video.",Icon:V,command:h},{optionName:Fr.BLOCKQUOTE,title:"Blockquote",description:"Add a quote.",Icon:q,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBlockquote().run()}},{optionName:Fr.CODE_BLOCK,title:"Code block",description:"Add a code block with syntax highlighting.",Icon:K,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleCodeBlock().run()}},{optionName:Fr.EMOJI,title:"Emoji",description:"Add an emoji.",Icon:G,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).insertContent("::").run()}},{optionName:Fr.DIVIDER,title:"Divider",description:"Add an horizontal line to separate sections.",Icon:Y,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setHorizontalRule().run()}},{optionName:Fr.VIDEO_EMBED,title:"Embed Youtube/Loom/Vimeo",description:"Embed a video from major services.",Icon:Q,command:h},{optionName:Fr.PASTE_UNFORMATTED,title:"Paste Unformatted",description:"Paste by removing all styles.",Icon:J,command:e=>{let{editor:t,range:n}=e;return t.chain().focus().deleteRange(n).pasteUnformatted().run()}}],uL={title:"No results",command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).run()}},dL=e=>{let{editor:t,range:n}=e;const r=prompt("Please enter Youtube/Loom/Vimeo embed URL."),i=!!r&&(hL(r)||mL(r)||fL(r));i?t.chain().focus().deleteRange(n).setExternalVideo({src:i}).run():t.chain().focus().deleteRange(n).insertContent("#invalid").run()},pL=e=>{let{options:t,addonCommands:n,setMediaUploader:r}=e;const i=cL.map((e=>e.optionName===Fr.IMAGE_UPLOAD?pe("command",(e=>t=>{let{editor:n,range:r}=t;e(pe("image",!0)),n.chain().focus().deleteRange(r).run()})(r),e):e.optionName===Fr.VIDEO_UPLOAD?pe("command",(e=>t=>{let{editor:n,range:r}=t;e(pe("video",!0)),n.chain().focus().deleteRange(r).run()})(r),e):e.optionName===Fr.VIDEO_EMBED?pe("command",dL,e):e));return[...i.filter((e=>{let{optionName:n}=e;return t.includes(n)})),...n]},hL=e=>{const t=e.match(Br);return t&&`https://www.youtube.com/embed/${t[5]}`},fL=e=>{const t=e.match(Pr);return t&&`https://player.vimeo.com/video/${t[4]}?h=${t[5]}`},mL=e=>{const t=e.match(Ur);return t&&`https://www.loom.com/embed/${t[4]}?t=${t[5]||""}`},gL=new hy("commands");var bL=e=>{let{addonCommands:t,options:n,setMediaUploader:r}=e;const i=pL({options:n,addonCommands:t,setMediaUploader:r});return bx.create({name:"slash-commands",addOptions:()=>({HTMLAttributes:{class:"commands"},suggestion:{char:"/",startOfLine:!1,pluginKey:gL,command:e=>{let{editor:t,range:n,props:r}=e;r.command({editor:t,range:n})},items:e=>{let{query:t}=e;const n=i.filter((e=>{let{title:n}=e;return n.toLowerCase().includes(t.toLowerCase())}));return $I.exports.isEmpty(n)?[uL]:n},render:()=>{let e,t;return{onStart:n=>{e=new OM(lL,{props:n,editor:n.editor}),t=yM("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",arrow:!1,zIndex:99999,role:"dropdown",theme:"neeto-editor-slash-menu"}),WI()},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(t){var n;return null===(n=e.ref)||void 0===n?void 0:n.onKeyDown(t)},onExit(){t&&t[0].destroy(),e&&e.destroy(),VI()}}}}}),addProseMirrorPlugins(){return[tN({editor:this.editor,...this.options.suggestion})]}})};const yL=e=>{let{onClickVariable:n,variables:r}=e;const i=function(){const e=[],t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{const{category_key:r,category_label:i,variables:o}=n;if(r&&o){const e=o.map(pe("category_key",r));t.push({label:i,variables:e})}else e.push(n)})),$I.exports.isEmpty(e)||t.push({label:$I.exports.isEmpty(t)?null:"Others",variables:e}),t}(r);return g(r)?null:t.createElement("div",{className:"neeto-editor-variables-list"},i.map(((e,r)=>{let{label:i,variables:o}=e;return t.createElement(vL,{index:r,key:r,title:i,variables:o,onClickItem:n})})))},vL=e=>{let{index:n,title:r,variables:i,onClickItem:o}=e;return t.createElement("div",{className:"neeto-editor-variables-block","data-cy":`neeto-editor-variable-option-category-${n}`},r&&t.createElement("h6",null,r),t.createElement("div",{className:"neeto-editor-variables-row"},i.map((e=>t.createElement("button",{className:"neeto-editor-variable","data-cy":`neeto-editor-variable-option-item-${e.label}--${e.value}`,key:`${e.label}--${e.value}`,type:"button",onClick:()=>o(e)},e.label)))))},wL=e=>{let{items:n,command:r}=e;return t.createElement("div",{className:"neeto-editor-variables-suggestion"},t.createElement(yL,{variables:n,onClickVariable:e=>{const{category_key:t,key:n}=e,i=t?`${t}.${n}`:n;r({label:i,id:i})}}))},_L=new hy("variables"),xL=lE.create({name:"variable",addOptions:()=>({HTMLAttributes:{class:"neeto-editor-variable"},charOpen:"{{",charClose:"}}",renderLabel(e){let{options:t,node:n}=e;return`${t.charOpen}${n.attrs.label||n.attrs.id}${t.charClose}`},suggestion:{}}),group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML:()=>[{tag:"span[data-variable]"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;return["span",X_({"data-variable":""},this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:t})]},renderText(e){let{node:t}=e;return this.options.renderLabel({options:this.options,node:t})},addCommands(){return{setVariable:e=>t=>{let{chain:n}=t;n().focus().insertContent([{type:this.name,attrs:e},{type:"text",text:" "}]).run()}}},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command((e=>{let{tr:t,state:n}=e,r=!1;const{selection:i}=n,{empty:o,anchor:s}=i;return!!o&&(n.doc.nodesBetween(s-1,s,((e,n)=>{if(e.type.name===this.name)return r=!0,t.insertText("",n,n+e.nodeSize),!1})),r)}))}},addProseMirrorPlugins(){return[tN({editor:this.editor,...this.options.suggestion})]}}),EL={char:"{{",startOfLine:!1,pluginKey:_L,command:e=>{let{editor:t,range:n,props:r}=e;t.chain().focus().deleteRange(n).setVariable(r).run()},items:()=>[],render:()=>{let e,t;return{onStart:n=>{e=new OM(wL,{props:n,editor:n.editor}),t=yM("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onExit(){t[0].destroy(),e.destroy()}}}};var kL=e=>{let{suggestion:t={}}=e;return xL.configure({suggestion:{...EL,...t}})};const ML=e=>{var n;let{node:i,editor:o,getPos:s,updateAttributes:a,deleteNode:l}=e;const c=r(null),{alt:u,src:d,vidheight:p,vidwidth:h,align:f}=i.attrs,{view:m}=o;let b=p,y=h;const v=c.current?null===(n=c.current.querySelector("figcaption>div"))||void 0===n?void 0:n.textContent:u;return t.createElement(NM,{className:`neeto-editor__image-wrapper neeto-editor__image--${f}`},t.createElement("figure",{ref:c},t.createElement(NT,{align:f,deleteNode:l,updateAttributes:a}),t.createElement(AT,{lockAspectRatio:!0,className:"neeto-editor__image",size:{height:b,width:y},onResizeStop:(e,t,n)=>{b=n.offsetHeight,y=n.offsetWidth,m.dispatch(m.state.tr.setNodeMarkup(s(),void 0,{...i.attrs,vidheight:b,vidwidth:y,height:b,width:y})),o.commands.focus()}},t.createElement("video",Pf({controls:!0},i.attrs,{alt:v,preload:"metadata",src:d}))),t.createElement(AM,{as:"figcaption",className:Lr({"is-empty":g(v)})})))},DL=lE.create({name:"video",addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",draggable:!0,isolating:!0,addAttributes:()=>({src:{default:null,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("src")}},alt:{default:"",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("alt")}},vidheight:{default:288,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidheight")}},vidwidth:{default:"fit-content",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidwidth")}},align:{default:"left",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("align")}}}),parseHTML:()=>[{tag:"figure[data-video]",getAttrs:e=>"normal"!==e.style.fontWeight&&null,contentElement:"figcaption"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;const{align:r,src:i,vidheight:o,vidwidth:s}=t.attrs,a={class:"neeto-editor__image",style:`height:${o}px;width:${s}px;`};return["a",{href:i,target:"_blank",rel:"noopener noreferrer",class:`neeto-editor__image-wrapper neeto-editor__image--${r}`},["figure",X_(this.options.HTMLAttributes,{"data-video":""}),["div",a,["video",X_(n,{preload:"metadata",controls:!0,draggable:!1,contenteditable:!1})]],["figcaption",0]]]},addNodeView:()=>IM(ML),addCommands(){return{setVideo:e=>{let{caption:t,...n}=e;return e=>{let{chain:r}=e;return r().insertContent({type:this.name,attrs:n,content:t?[{type:"text",text:t}]:[]}).command((e=>{let{tr:t,commands:n}=e;const{doc:r,selection:i}=t,o=r.resolve(i.to).end();return n.setTextSelection(o)})).run()}}}}}),CL=e=>{var r;let{uppy:i}=e;const[s,a]=n(0);o((()=>{i.on("upload-progress",((e,t)=>{let{progress:n}=t;return a(n)}))}),[i]);const l=`${s}%`;return t.createElement("div",{className:"ne-media-uploader__progress"},t.createElement("p",{className:"ne-media-uploader__progress-title"},"Uploading..."),t.createElement("p",{className:"ne-media-uploader__progress-file"},null===(r=i.getFiles()[0])||void 0===r?void 0:r.name),t.createElement("div",{className:"neeto-editor-progress-bar__wrapper","data-cy":"neeto-editor-image-upload-progress-bar"},t.createElement("div",{className:"neeto-editor-progress-bar__percent"},t.createElement("p",null,l),t.createElement(_,{icon:F,size:"small",style:"text",onClick:()=>i.cancelAll()})),t.createElement("div",{className:"neeto-editor-progress-bar__indicator"},t.createElement("div",{className:"neeto-editor-progress-bar__indicator-inner",style:{width:l}}))))},SL=e=>{let{isImage:n,endpoint:r,onSuccess:i}=e;const o=n?Fp:zp,{uppy:s,isUploading:a}=If({endpoint:r,uppyConfig:o,onSuccess:i});return a?t.createElement(CL,{uppy:s}):t.createElement("div",{className:"ne-media-uploader__dnd-wrapper"},t.createElement(Zd,{className:"ne-media-uploader__dnd","data-cy":"neeto-editor-media-local-uploader",uppy:s,locale:{strings:{dropHereOr:"Drop your file(s) here or %{browse}",browse:"Browse"}},note:`Max. File Size: ${Bp(o.restrictions.maxFileSize)}`}))},AL=e=>{let{isImage:r,url:i,editor:o,onClose:s,alt:a="",setMediaUrl:l}=e;const[c,u]=n(a||""),[d,p]=n(!1),h=()=>{r?o.chain().focus().setFigure({src:i,caption:c,alt:c}).run():o.chain().focus().setVideo({src:i,caption:c,alt:c}).run(),s()};return t.createElement("div",{className:"ne-media-editor",onKeyDown:e=>{"Enter"===e.key&&h()}},t.createElement(_,{icon:Z,iconPosition:"left",label:"back",size:"small",style:"text",onClick:()=>l("")}),d?t.createElement("div",{className:"ne-media-editor__error"},t.createElement("h2",null,"Something Went Wrong!"),t.createElement("p",null,"The selected media cannot be displayed. Please try again.")):t.createElement(t.Fragment,null,r?t.createElement("img",{loading:"lazy",src:i,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}):t.createElement("video",{src:i,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}),t.createElement(w,{autoFocus:!0,label:"Caption",placeholder:"Enter a caption",value:c,onChange:e=>u(e.target.value)})),t.createElement("div",{className:"ne-media-editor__footer"},t.createElement(_,{disabled:d,label:"Done",onClick:h}),t.createElement(_,{label:"Cancel",style:"text",onClick:s})))};var NL={},OL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.create(null);function n(e,n){return t[e]=t[e]||[],t[e].push(n),this}function r(e,t){return t._once=!0,n(e,t),this}function i(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t[e].splice(t[e].indexOf(n),1):delete t[e],this}function o(e){for(var n=this,r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];var a=t[e]&&t[e].slice();return a&&a.forEach((function(t){t._once&&i(e,t),t.apply(n,o)})),this}return OL({},e,{on:n,once:r,off:i,emit:o})},IL=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,d=void 0,p=void 0,h=void 0,f=0===e.packed.indexOf("data-")?e.packed:"data-"+e.packed,m=e.sizes.slice().reverse(),g=!1!==e.position,b=e.container.nodeType?e.container:document.querySelector(e.container),y={all:function(){return E(b.children)},new:function(){return E(b.children).filter((function(e){return!e.hasAttribute(""+f)}))}},v=[D,C,S],w=[A,N,O,T],_=TL({pack:F,update:z,resize:j});return _;function x(e){e.forEach((function(e){return e()}))}function E(e){return Array.prototype.slice.call(e)}function k(e){return Array.apply(null,Array(e)).map((function(){return 0}))}function M(){return m.map((function(e){return e.mq&&window.matchMedia("(min-width: "+e.mq+")").matches})).indexOf(!0)}function D(){r=M()}function C(){i=-1===r?m[m.length-1]:m[r]}function S(){s=k(i.columns)}function A(){d=y[t?"new":"all"]()}function N(){0!==d.length&&(p=d.map((function(e){return e.clientWidth})),h=d.map((function(e){return e.clientHeight})))}function O(){d.forEach((function(e,t){o=s.indexOf(Math.min.apply(Math,s)),e.style.position="absolute",a=s[o]+"px",l=o*p[t]+o*i.gutter+"px",g?(e.style.top=a,e.style.left=l):e.style.transform="translate3d("+l+", "+a+", 0)",e.setAttribute(f,""),c=p[t],u=h[t],c&&u&&(s[o]+=u+i.gutter)}))}function T(){b.style.position="relative",b.style.width=i.columns*c+(i.columns-1)*i.gutter+"px",b.style.height=Math.max.apply(Math,s)-i.gutter+"px"}function I(){n||(window.requestAnimationFrame(L),n=!0)}function L(){r!==M()&&(F(),_.emit("resize",i)),n=!1}function F(){return t=!1,x(v.concat(w)),_.emit("pack")}function z(){return t=!0,x(w),_.emit("update")}function j(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",I),_}}}),LL=Lt(IL),FL={exports:{}},zL={exports:{}};!function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=t,o=a(i),s=a(od.exports);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),r=void 0;if(this.props.useWindow){var i=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:i.scrollTop;r=this.props.isReverse?o:this.calculateOffset(e,o)}else r=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;r<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,r=t.element,i=t.hasMore;t.initialLoad;var s=t.isReverse,a=t.loader;t.loadMore,t.pageStart;var l=t.ref;t.threshold,t.useCapture,t.useWindow,t.getScrollParent;var c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return i&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(r,c,u)}}]),t}(i.Component);l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},n.default=l,e.exports=n["default"]}(zL,zL.exports),FL.exports=zL.exports,Object.defineProperty(NL,"__esModule",{value:!0});var jL,RL,BL=NL.default=void 0,PL=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),UL=t,HL=qL(UL),$L=qL(od.exports),WL=qL(LL),VL=qL(FL.exports);function qL(e){return e&&e.__esModule?e:{default:e}}function KL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GL(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var YL=(RL=jL=function(e){function t(){var e,n,r;KL(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=GL(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.setContainerRef=function(e){r.masonryContainer=e},r.forcePack=function(){r.masonryContainer&&r.state.instance.pack()},r.forceUpdate=function(){r.masonryContainer&&r.state.instance.update()},r.createNewInstance=function(){var e=r.props,t=e.packed,n=e.sizes,i=e.children,o=e.position,s=(0,WL.default)({container:r.masonryContainer,packed:t,sizes:n,position:o});s.resize(!0),i.length>0&&s.pack(),r.setState((function(){return{instance:s}}))},GL(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,UL.Component),PL(t,[{key:"componentDidMount",value:function(){this.createNewInstance()}},{key:"componentDidUpdate",value:function(e){var t=this.props.children,n=this.state.instance;if(0!==e.children.length||0!==t.length)return 0===e.children.length&&t.length>0?n.pack():e.children.length!==t.length?this.props.pack?n.pack():n.update():void 0}},{key:"componentWillUnmount",value:function(){this.state&&this.state.instance.resize(!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.style;e.pack,e.packed,e.position,e.sizes;var i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className","style","pack","packed","position","sizes"]);return HL.default.createElement(VL.default,i,HL.default.createElement("div",{ref:this.setContainerRef,className:n,style:r},t))}}]),t}(),jL.propTypes={children:$L.default.arrayOf($L.default.element).isRequired,className:$L.default.string,initialLoad:$L.default.bool,pack:$L.default.bool,packed:$L.default.string,position:$L.default.bool,sizes:$L.default.array,style:$L.default.object},jL.defaultProps={className:"",initialLoad:!0,pack:!1,packed:"data-packed",position:!0,sizes:[{columns:1,gutter:20},{mq:"768px",columns:2,gutter:20},{mq:"1024px",columns:3,gutter:20}],style:{}},RL);BL=NL.default=YL;const QL=e=>{let{onSubmit:i,unsplashApiKey:s}=e;const a=r(null),[l,c]=n(""),[u,d]=n(!1),[p,h]=n([]),[f,m]=n(1),[g,b]=n(!0),[y,v]=n(!1),_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[r,i]=n(e);return o((()=>{const n=setTimeout((()=>{i(e)}),t);return()=>{clearTimeout(n)}}),[e]),r}(l||"latest");o((()=>{x(1)}),[_]);const x=async e=>{try{v(!0),d(!1);const t=await(e=>{let{pageNo:t,query:n,apiKey:r}=e;return de.get(zr,{headers:{Authorization:`Client-ID ${r}`},params:{page:t,per_page:30,order_by:"popular",query:n}})})({page:e,query:_,apiKey:s}),{data:{results:n,total_pages:r}}=t;h(1===e?n:[...p,...n]),m(e+1),b(e<r)}catch{d(!0)}finally{v(!1)}},E=t.createElement("div",{className:"neeto-editor-unsplash-gallery__loader"},t.createElement(M,null));return t.createElement("div",{className:"neeto-editor-unsplash-wrapper"},t.createElement(w,{autoFocus:!0,className:"neeto-editor-unsplash-search","data-cy":"neeto-editor-unsplash-image-picker-search-input",name:"text",placeholder:"Search Unsplash",value:l,onChange:e=>{let{target:{value:t}}=e;c(t)}}),u&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-error"},"Something went wrong! Please try again later."),!u&&!y&&hr(p)&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-no-results-error"},"No results"),!u&&t.createElement("div",{className:"neeto-editor-unsplash-container"},t.createElement(BL,{pack:!0,position:!0,className:"neeto-editor-unsplash-gallery",hasMore:g,loadMore:()=>{!y&&g&&f>1&&x(f)},loader:E,ref:a,style:{width:"100%"},useWindow:!1,sizes:[{columns:3,gutter:0},{mq:"768px",columns:3,gutter:0},{mq:"1024px",columns:3,gutter:0}]},p&&p.map(((e,n)=>t.createElement("div",{className:"neeto-editor-unsplash-gallery__item","data-cy":`neeto-editor-unsplash-image-picker-result-${n}`,key:n},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-placeholder",style:{paddingBottom:`${e.height/e.width*100}%`}},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-inner",id:`unsplashImage${n}`},t.createElement("img",{src:e.urls.regular,onClick:()=>i(e.urls.small)}),t.createElement("a",{href:`https://unsplash.com/@${e.user.username}`,rel:"noreferrer",target:"_blank"},e.user.name," "))))))),!g&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text"},"End of results")))},JL=e=>{let{buttonLabel:r="Submit",placeholder:i,onSubmit:o,className:s}=e;const[a,l]=n(""),[c,u]=n("");return t.createElement("div",{className:Lr("neeto-editor-url-form__wrapper",{[s]:s})},t.createElement(w,{autoFocus:!0,"data-cy":"neeto-editor-media-upload-url-input",error:c,name:"url",placeholder:i,value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)},onFocus:()=>u("")}),t.createElement(_,{"data-cy":"neeto-editor-media-upload-url-submit",disabled:!a,label:r,onClick:e=>{e.preventDefault(),Rr.test(a)?o(a):u("Please enter a valid url")}}))},ZL=e=>{let{mediaUploader:r,onClose:i,editor:o,uploadEndpoint:s,unsplashApiKey:a}=e;const[l,c]=n("local"),[u,d]=n(""),p=r.image||r.video;let h=a?Rp:Rp.slice(0,2);r.video&&(h=[]);const f=()=>{i(),d(""),c("local")};return t.createElement(S,{closeButton:!1,isOpen:p,onClose:f},t.createElement("div",{className:"ne-media-uploader"},!hr(h)&&t.createElement(A,null,h.map((e=>{let{key:n,title:r}=e;return t.createElement(A.Item,{active:l===n,key:n,onClick:()=>{d(""),c(n)}},r)}))),t.createElement("div",{className:"ne-media-uploader__content"},u?t.createElement(AL,{editor:o,isImage:r.image,setMediaUrl:d,url:u,onClose:f}):t.createElement(t.Fragment,null,"local"===l&&t.createElement(SL,{endpoint:s,isImage:r.image,onSuccess:d}),"link"===l&&t.createElement(JL,{placeholder:"Paste the link here...",buttonLabel:r.image?"Upload image":"Upload video",onSubmit:d}),"unsplash"===l&&t.createElement(QL,{unsplashApiKey:a,onSubmit:d})))))};var XL=[],eF=[];function tF(e,t){if(e&&"undefined"!=typeof document){var n,r=!0===t.prepend?"prepend":"append",i=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(i){var s=XL.indexOf(o);-1===s&&(s=XL.push(o)-1,eF[s]={}),n=eF[s]&&eF[s][r]?eF[s][r]:eF[s][r]=a()}else n=a();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function a(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),i=0;i<n.length;i++)e.setAttribute(n[i],t.attributes[n[i]]);var s="prepend"===r?"afterbegin":"beforeend";return o.insertAdjacentElement(s,e),e}}tF(".tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}",{});const nF=e=>{let{editor:r,handleClose:i,handleAnimateInvalidLink:s}=e;const[a,l]=n("");o((()=>{l(r.getAttributes("link").href||"")}),[]);const c=()=>{Rr.test(a)?(r.chain().focus().setLink({href:a}).run(),i()):hr(a)?(r.chain().focus().unsetLink().run(),i()):(l(""),s())};return t.createElement("div",{className:"neeto-editor-bubble-menu__link",onKeyDown:e=>{"Escape"===e.key?i():"Enter"===e.key&&c()}},t.createElement("input",{autoFocus:!0,className:"neeto-editor-bubble-menu-link__input","data-cy":"neeto-editor-link-input",name:"url",placeholder:"Paste or type a link...",value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)}}),t.createElement(_,{"data-cy":"neeto-editor-link-cancel-button",icon:F,size:"small",style:"icon",onClick:()=>{a?(l(""),r.chain().focus().unsetLink().run()):i()}}))},rF=e=>{let{tooltip:n,Icon:r,command:i,active:o,optionName:s,highlight:a}=e;return t.createElement(_,Pf({"data-cy":`neeto-editor-bubble-menu-${s}-option`,icon:r,key:s,size:"small",style:o?"secondary":"text",tooltipProps:{content:n,position:"bottom",theme:"dark",delay:[500]},onClick:i},KI(a)))},iF=e=>{let{editor:n,mentions:r,tooltipContent:i}=e;const o=jI(r),{Menu:s,MenuItem:a}=E;return g(o)?null:t.createElement(E,{buttonStyle:"text","data-cy":"neeto-editor-mention-option",icon:X,strategy:"fixed",buttonProps:{tooltipProps:{content:i,position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(s,null,o.map((e=>{let{key:r,name:i,imageUrl:o}=e;return t.createElement(a.Button,{"data-cy":`neeto-editor-mention-option-${r}`,key:r,onClick:()=>n.commands.setMention({id:r,label:i})},t.createElement(C,{size:"small",user:{name:i,imageUrl:o}}),t.createElement(x,{style:"body2"},i))}))))},oF=e=>{let{editor:n,isActive:r,setActive:i,tooltipContent:o}=e;return t.createElement(E,{buttonStyle:"text",closeOnSelect:!1,dropdownProps:{classNames:"neeto-editor-fixed-menu__emoji-dropdown"},icon:G,isOpen:r,position:"bottom-start",strategy:"fixed",buttonProps:{tooltipProps:{content:o,position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>i((e=>!e)),onClose:()=>i(!1)},t.createElement(tT,{editor:n,setActive:i}))},sF=e=>{let{size:n,color:r,strokeWidth:i,...o}=e;return t.createElement("svg",Pf({fill:"none",height:n,viewBox:"0 0 24 24",width:n},o),t.createElement("path",{d:"M13.8791 8.37527L8.39309 13.8613C7.56709 14.6873 7.56709 16.0273 8.39309 16.8533C9.21909 17.6793 10.5591 17.6793 11.3851 16.8533L18.6171 9.62127C20.1321 8.10627 20.1321 5.65027 18.6171 4.13527C17.1021 2.62027 14.6461 2.62027 13.1311 4.13527L5.89909 11.3673C3.69509 13.5713 3.69509 17.1433 5.89909 19.3473C8.10309 21.5513 11.6751 21.5513 13.8791 19.3473L18.2681 14.9583",stroke:r,strokeWidth:i}))};sF.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},sF.propTypes={color:od.exports.string,size:od.exports.oneOfType([od.exports.string,od.exports.number]),strokeWidth:od.exports.oneOfType([od.exports.string,od.exports.number])};const aF=[{label:"Paragraph",value:0},{label:"Heading 1",value:1},{label:"Heading 2",value:2},{label:"Heading 3",value:3}],lF=e=>{let{tooltips:t,editor:n,options:r,setMediaUploader:i,handleUploadAttachments:o}=e;const s=(e=>{let{tooltips:t,editor:n,setMediaUploader:r,handleUploadAttachments:i}=e;return{font:[{Icon:ee,command:()=>n.chain().focus().toggleBold().run(),active:n.isActive("bold"),optionName:"bold",tooltip:t.bold||"Bold"},{Icon:te,command:()=>n.chain().focus().toggleItalic().run(),active:n.isActive("italic"),optionName:"italic",tooltip:t.italic||"Italic"},{Icon:ne,command:()=>n.chain().focus().toggleUnderline().run(),active:n.isActive("underline"),optionName:"underline",tooltip:t.underline||"Underline"},{Icon:re,command:()=>n.chain().focus().toggleStrike().run(),active:n.isActive("strike"),optionName:"strike",tooltip:t.strike||"Strike"},{Icon:ie,command:()=>n.chain().focus().toggleHighlight().run(),active:n.isActive("highlight"),optionName:"highlight",tooltip:t.highlight||"Highlight"}],block:[{Icon:oe,command:()=>n.chain().focus().toggleBlockquote().run(),active:n.isActive("blockquote"),optionName:"block-quote",highlight:!0,tooltip:t.blockQuote||"Block Quote"},{Icon:K,command:()=>n.chain().focus().toggleCode().run(),active:n.isActive("code"),optionName:"code",tooltip:t.code||"Code"}],list:[{Icon:$,command:()=>n.chain().focus().toggleBulletList().run(),active:n.isActive("bulletList"),optionName:"bullet-list",highlight:!0,tooltip:t.bulletList||"Bullet List"},{Icon:H,command:()=>n.chain().focus().toggleOrderedList().run(),active:n.isActive("orderedList"),optionName:"ordered-list",highlight:!0,tooltip:t.orderedList||"Ordered List"}],misc:[{Icon:sF,command:i,active:!1,optionName:"attachments",tooltip:t.attachments||"Attachments"},{Icon:W,command:()=>r(pe("image",!0)),optionName:"image-upload",tooltip:t.imageUpload||"Image Upload"},{Icon:V,command:()=>r(pe("video",!0)),optionName:"video-upload",tooltip:t.videoUpload||"Video Upload"}],right:[{Icon:se,command:()=>n.chain().focus().undo().run(),active:!1,disabled:!n.can().undo(),optionName:"undo",tooltip:t.undo||"Undo"},{Icon:ae,command:()=>n.chain().focus().redo().run(),active:!1,disabled:!n.can().redo(),optionName:"redo",tooltip:t.redo||"Redo"}]}})({tooltips:t,editor:n,setMediaUploader:i,handleUploadAttachments:o});return we(["font","block","list","misc","right"].map((e=>[e,s[e].filter((e=>r.includes(e.optionName)))])))},cF=e=>{let{Icon:n,command:r,active:i,optionName:o,highlight:s,disabled:a,tooltip:l}=e;return t.createElement(_,Pf({className:"neeto-editor-fixed-menu__item","data-cy":`neeto-editor-fixed-menu-${o}-option`,disabled:a,icon:n,key:o,style:i?"secondary":"text",tooltipProps:{content:l,position:"bottom"},onClick:r},KI(s)))},uF=e=>{let{editor:t,commands:n}=e;const{to:r}=t.state.selection;return n.map((e=>{var n;return{...e,active:null===(n=e.active)||void 0===n?void 0:n.call(e,{editor:t}),command:()=>{var n;return null===(n=e.command)||void 0===n?void 0:n.call(e,{editor:t,range:{from:r,to:r}})}}}))},dF=e=>{let{editor:n,options:r,mentions:i,tooltips:o,setIsInvalidLink:s,isLinkOptionActive:a,setIsLinkOptionActive:l,setMediaUploader:c,handleUploadAttachments:u,isEmojiPickerActive:d,setIsEmojiPickerActive:p}=e;const{Menu:h,MenuItem:f}=E,m=(e=>{let{editor:t}=e;return[{optionName:"Heading 1",active:t.isActive("heading",{level:1}),command:()=>t.chain().focus().setNode("heading",{level:1}).run()},{optionName:"Heading 2",active:t.isActive("heading",{level:2}),command:()=>t.chain().focus().setNode("heading",{level:2}).run()},{optionName:"Heading 3",active:t.isActive("heading",{level:3}),command:()=>t.chain().focus().setNode("heading",{level:3}).run()},{optionName:"Ordered List",active:t.isActive("orderedList"),command:()=>t.chain().focus().toggleOrderedList().run()},{optionName:"Bulleted List",active:t.isActive("bulletList"),command:()=>t.chain().focus().toggleBulletList().run()},{optionName:"Text",active:t.isActive("paragraph"),command:()=>t.chain().focus().setNode("paragraph").run()}]})({editor:n}),g=(e=>{var t;return(null===(t=e.find(ve("active")))||void 0===t?void 0:t.optionName)||"Text"})(m),b=r.includes(Fr.EMOJI),y=r.includes(Fr.LINK),{font:v,block:w,list:_}=lF({editor:n,options:r,setMediaUploader:c,tooltips:o,handleUploadAttachments:u}),x=()=>{s(!0),setTimeout((()=>{s(!1)}),1e3)};return a?t.createElement(nF,{editor:n,handleAnimateInvalidLink:x,handleClose:()=>l(!1)}):t.createElement(t.Fragment,null,t.createElement(E,{buttonSize:"small",buttonStyle:"text",label:g,strategy:"fixed"},t.createElement(h,null,m.map((e=>{let{optionName:n,command:r}=e;return t.createElement(f.Button,{key:n,onClick:r},n)})))),v.map(rF),w.map(rF),b&&t.createElement(oF,{editor:n,isActive:d,setActive:p,tooltipContent:o.emoji||"Emoji"}),_.map(rF),y&&rF({Icon:le,command:()=>l(!0),active:n.isActive("link"),optionName:"link",highlight:!1,tooltip:o.link||"Link"}),t.createElement(iF,{editor:n,mentions:i,tooltipContent:o.mention||"Mention"}))},pF=e=>{let{editor:r,options:i,mentions:o=[],setMediaUploader:s,tooltips:a={},handleUploadAttachments:l,isEmojiPickerActive:c,setIsEmojiPickerActive:u}=e;const[d,p]=n(!1),[h,f]=n(!1),m=r&&r.view.state.selection.node,g=m&&"image"===m.type.name,b=[Fr.BOLD,Fr.ITALIC,Fr.UNDERLINE,Fr.STRIKETHROUGH,Fr.LINK],y=hr(i.filter((e=>b.includes(e))));return!r||!g&&y?null:t.createElement("div",null,t.createElement(xM,{editor:r,className:Lr("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":d}),tippyOptions:{arrow:Nk,zIndex:99999,onHide:()=>f(!1),theme:"neeto-editor-bubble-menu",maxWidth:500}},t.createElement(dF,{editor:r,handleUploadAttachments:l,isEmojiPickerActive:c,isLinkOptionActive:h,mentions:o,options:i,setIsEmojiPickerActive:u,setIsInvalidLink:p,setIsLinkOptionActive:f,setMediaUploader:s,tooltips:a})))},{Menu:hF,MenuItem:fF}=E,mF=e=>{var n;let{editor:r,tooltipContent:i}=e;const o=(null===(n=aF.find((e=>{let{value:t}=e;return n=t,r.isActive("heading",{level:n});var n})))||void 0===n?void 0:n.label)||"Paragraph";return t.createElement(E,{autoWidth:!0,buttonStyle:"text","data-cy":"neeto-editor-fixed-menu-font-size-option",label:o,placement:"bottom-start",buttonProps:{tooltipProps:{content:i,position:"bottom"},className:"neeto-editor-fixed-menu__item neeto-editor-font-size__wrapper"}},t.createElement(hF,null,aF.map((e=>{let{label:n,value:i}=e;return t.createElement(fF.Button,{"data-cy":`neeto-editor-fixed-menu-font-size-option-${n}`,key:i,onClick:()=>{return(e=i)?r.chain().focus().toggleHeading({level:e}).run():r.chain().focus().setNode("paragraph").run();var e}},n)}))))},{Menu:gF}=E,bF=e=>{let{editor:r,tooltipContent:i}=e;const[o,s]=n(""),[a,l]=n(""),[c,u]=n(!1),d=r.isActive("link"),p=()=>{u(!1),l(""),s("")},h=()=>{Rr.test(a)?(r.chain().focus().setLink({href:a}).run(),p()):s("Please enter a valid url")};return t.createElement(E,{buttonStyle:d?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:le,isOpen:c,position:"bottom",buttonProps:{tooltipProps:{content:i,position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>{l(r.getAttributes("link").href),u((e=>!e))},onClose:p},t.createElement(gF,{className:"neeto-editor-link__item",onKeyDown:e=>{"Escape"===e.key?p():"Enter"===e.key&&h()}},t.createElement(w,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-link-option-input",error:o,name:"url",placeholder:"Paste URL",value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)},onFocus:()=>s("")}),t.createElement(_,{"data-cy":"neeto-editor-fixed-menu-link-option-link-button",label:"Link",onClick:h}),d&&t.createElement(_,{"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button",label:"Unlink",style:"text",onClick:()=>{r.chain().focus().unsetLink().run(),l(""),p()}})))},{Menu:yF}=E,vF=e=>{let{editor:n,variables:r,tooltipContent:i}=e;return g(r)?null:t.createElement(E,{buttonSize:"small",buttonStyle:"secondary","data-cy":"neeto-editor-variable-option",icon:ce,strategy:"fixed",buttonProps:{tooltipProps:{content:i,position:"bottom"}}},t.createElement(yF,null,t.createElement(yL,{variables:r,onClickVariable:e=>{const{category_key:t,key:r}=e,i=t?`${t}.${r}`:r;n.chain().focus().setVariable({label:i}).run()}})))},wF=e=>{let{editor:n,options:r,mentions:i=[],variables:o=[],setMediaUploader:s,addonCommands:a=[],isIndependant:l=!0,className:c,tooltips:u={},handleUploadAttachments:d,isEmojiPickerActive:p,setIsEmojiPickerActive:h}=e;if(!n)return null;const{font:f,block:m,list:g,misc:b,right:y}=lF({tooltips:u,editor:n,options:r,setMediaUploader:s,handleUploadAttachments:d}),v=r.filter((e=>e.match(/^h[1-6]$/))).length>0,w=r.includes(Fr.EMOJI),_=r.includes(Fr.LINK),x=uF({editor:n,commands:a});return t.createElement("div",{className:Lr("neeto-editor-fixed-menu",{"neeto-editor-fixed-menu--independant":l,[c]:c})},t.createElement("div",{className:"neeto-editor-fixed-menu__wrapper"},v&&t.createElement(mF,{editor:n,tooltipContent:u.fontSize||"Font size"}),f.map(cF),m.map(cF),w&&t.createElement(oF,{editor:n,isActive:p,setActive:h,tooltipContent:u.emoji||"Emoji"}),g.map(cF),_&&t.createElement(bF,{editor:n,tooltipContent:u.link||"Link"}),b.map(cF),t.createElement(iF,{editor:n,mentions:i,tooltipContent:u.mention||"Mention"}),x.map(cF),t.createElement("div",{className:"neeto-editor-fixed-menu__right-options"},y.map(cF))),t.createElement("div",{className:"neeto-editor-fixed-menu__variables"},t.createElement(vF,{editor:n,tooltipContent:u.variables||"Variables",variables:o})))},_F=e=>{let{icon:n=null,onClick:r=(()=>{}),disabled:i=!1,className:o,tooltipProps:s,...a}=e;const l=n;return t.createElement(v,Pf({disabled:!s,onClick:()=>r()},s),t.createElement("button",Pf({className:Lr("ne-headless-btn",{[o]:o}),disabled:i,type:"button",onClick:r},a),n&&t.createElement(l,{"aria-hidden":"true",key:"2",size:18})))},xF={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t,props:{hideOnEsc:n,onClose:r}}=e;function i(e){"escape"===e.key.toLowerCase()&&n&&(r(),t())}return{onShow(){document.addEventListener("keydown",i)},onHide(){document.removeEventListener("keydown",i)}}}},EF=e=>{let{icon:r,isOpen:i,onClose:o=(()=>{}),children:s,className:a,onClick:l,buttonProps:c={},...u}=e;const[d,p]=n(!1);return t.createElement(oL,Pf({hideOnEsc:!0,interactive:!0,animation:!1,arrow:!1,duration:0,hideOnClick:!1,maxWidth:"none",offset:0,plugins:[xF],popperOptions:{strategy:"fixed"},role:"dropdown",theme:"light",trigger:"click",visible:i,className:Lr("ne-headless-dropdown",{[a]:a}),content:d&&t.createElement("div",{className:"ne-headless-dropdown__popup"},s),onClickOutside:o,onClose:o,onHidden:()=>p(!1),onMount:()=>p(!0)},u),t.createElement("span",null,t.createElement(_F,Pf({icon:r,onClick:l},c))))},kF=e=>{let{editor:r,isActive:i,setActive:o,tooltipContent:s}=e;const[a,l]=n(!1);return t.createElement(EF,{className:"ne-headless__emoji",icon:G,isOpen:a||i,buttonProps:{tooltipProps:{content:s,delay:[500],position:"bottom"}},onClick:()=>l((e=>!e)),onClose:()=>{l(!1),o(!1)}},t.createElement(tT,{editor:r}))},MF=e=>{let{editor:n,optionName:r,command:i,disabled:o,Icon:s,active:a,tooltip:l}=e;return r===Fr.EMOJI?t.createElement(kF,{editor:n,tooltipContent:l.emoji||"Emoji"}):t.createElement(_F,{className:a?"ne-headless-btn--active":"",disabled:o,icon:s,tooltipProps:{content:l,delay:[500],position:"bottom"},onClick:i})},DF=e=>{let{tooltips:t,editor:n,options:r,setMediaUploader:i,handleUploadAttachments:o,isEmojiPickerActive:s,setIsEmojiPickerActive:a}=e;const l=(e=>{let{editor:t,tooltips:n,setMediaUploader:r,handleUploadAttachments:i,isEmojiPickerActive:o,setIsEmojiPickerActive:s}=e;return[{Icon:ee,command:()=>t.chain().focus().toggleBold().run(),active:t.isActive("bold"),optionName:"bold",tooltip:n.bold||"Bold"},{Icon:te,command:()=>t.chain().focus().toggleItalic().run(),active:t.isActive("italic"),optionName:"italic",tooltip:n.italic||"Italic"},{Icon:ne,command:()=>t.chain().focus().toggleUnderline().run(),active:t.isActive("underline"),optionName:"underline",tooltip:n.underline||"Underline"},{Icon:re,command:()=>t.chain().focus().toggleStrike().run(),active:t.isActive("strike"),optionName:"strike",tooltip:n.strike||"Strike"},{Icon:ie,command:()=>t.chain().focus().toggleHighlight().run(),active:t.isActive("highlight"),optionName:"highlight",tooltip:n.highlight||"Highlight"},{Icon:oe,command:()=>t.chain().focus().toggleBlockquote().run(),active:t.isActive("blockquote"),optionName:"block-quote",tooltip:n.blockQuote||"Block Quote"},{Icon:K,command:()=>t.chain().focus().toggleCode().run(),active:t.isActive("code"),optionName:"code",tooltip:n.code||"Code"},{Icon:$,command:()=>t.chain().focus().toggleBulletList().run(),active:t.isActive("bulletList"),optionName:"bullet-list",tooltip:n.bulletList||"Bullet List"},{Icon:H,command:()=>t.chain().focus().toggleOrderedList().run(),active:t.isActive("orderedList"),optionName:"ordered-list",tooltip:n.orderedList||"Ordered List"},{Icon:ue,command:i,optionName:"attachments",tooltip:n.attachments||"Attachments"},{Icon:W,command:()=>r(pe("image",!0)),optionName:"image-upload",tooltip:n.imageUpload||"Image Upload"},{Icon:V,command:()=>r(pe("video",!0)),optionName:"video-upload",tooltip:n.videoUpload||"Video Upload"},{Icon:G,command:()=>{},optionName:"emoji",tooltip:n.emoji||"Emoji",isActive:o,setActive:s},{Icon:se,command:()=>t.chain().focus().undo().run(),disabled:!t.can().undo(),optionName:"undo",tooltip:n.undo||"Undo"},{Icon:ae,command:()=>t.chain().focus().redo().run(),disabled:!t.can().redo(),optionName:"redo",tooltip:n.redo||"Redo"}]})({editor:n,tooltips:t,setMediaUploader:i,handleUploadAttachments:o,isEmojiPickerActive:s,setIsEmojiPickerActive:a});return r.map((e=>l.find((t=>{let{optionName:n}=t;return n===e})))).filter(Boolean)},CF=e=>{let{editor:n,options:r,tooltips:i={},setMediaUploader:o,addonCommands:s=[],children:a,className:l,handleUploadAttachments:c,isEmojiPickerActive:u,setIsEmojiPickerActive:d}=e;if(!n)return null;const p=[...DF({tooltips:i,editor:n,options:r,setMediaUploader:o,handleUploadAttachments:c,isEmojiPickerActive:u,setIsEmojiPickerActive:d}),...uF({editor:n,commands:s})];return t.createElement("div",{className:Lr("ne-headless",{[l]:l})},p.map((e=>t.createElement(MF,Pf({editor:n,key:e.optionName},e)))),a)},SF=e=>{const[r,i]=n(!1),[s,a]=n({image:!1,video:!1}),{menuType:l="fixed",addons:c=[],options:u=[],editor:d,uploadEndpoint:p=jr,editorSecrets:h={},handleUploadAttachments:f}=e,m={fixed:wF,bubble:pF,headless:CF,none:()=>t.createElement("div",null)}[l],b=g(u)?[...zM,...c]:u,y=e=>{(e.metaKey||e.ctrlKey)&&e.altKey&&("KeyE"===e.code?i((e=>!e)):"KeyA"===e.code?f():"KeyK"===e.code?a(pe("image",!0)):"KeyV"===e.code&&a(pe("video",!0)))};return o((()=>document.addEventListener("keydown",y)),[]),t.createElement(t.Fragment,null,t.createElement(m,Pf({},e,{handleUploadAttachments:f,isEmojiPickerActive:r,options:b,setIsEmojiPickerActive:i,setMediaUploader:a})),t.createElement(ZL,{editor:d,mediaUploader:s,unsplashApiKey:h.unsplash,uploadEndpoint:p,onClose:()=>a({image:!1,video:!1})}))},AF=e=>{let{rows:t}=e;return`min-height: ${t*BM+2*(jM+RM)}px;`},NF=(e,t)=>{const n=[];e.split(/\n/).forEach((e=>{const r={type:"paragraph"};e.length>0&&(r.content=[{type:"text",text:e}]);const i=gg.fromJSON(t.doc.type.schema,r);n.push(i)}));const r=qm.fromArray(n);return Zm.maxOpen(r)},OF=(e,s)=>{let{initialValue:a="",menuType:l="fixed",label:c="",required:u=!1,autoFocus:d=!1,hideSlashCommands:p=!1,defaults:f=zM,addons:b=[],addonCommands:y=[],tooltips:v={},className:w,contentClassName:_,uploadEndpoint:x=jr,onChange:E=h,onFocus:k=h,onBlur:M=h,onSubmit:D=h,variables:C=[],mentions:S=[],placeholder:A,extensions:O=[],editorSecrets:T={},rows:I=6,isCharacterCountActive:L=!1,keyboardShortcuts:F=[],error:z=null,config:j={},attachments:R=[],onChangeAttachments:B=h,...P}=e;const U=r(null),H=b.includes("attachments"),$="fixed"===l,W="bubble"===l,V=!p,q=!!A,[K,G]=n({image:!1,video:!1}),Y=r(null),Q=(e=>{let{placeholder:t,extensions:n,mentions:r,variables:i,isSlashCommandsActive:o,options:s,addonCommands:a,onSubmit:l,keyboardShortcuts:c,uploadEndpoint:u,config:d,setMediaUploader:p}=e;const h=be(d,JA);let f=[VM,WM,wC.configure(h.underline),YM.configure(h.highlight),QA.configure(h.codeBlock),FT.configure(h.figCaption),XA.configure(h.embeds),vC.configure(h.link),cT.configure(h.emojiSuggestion),rT.configure(h.emojiPicker),ZA.configure(h.customCommands),UM.configure(h.characterCount),qM.configure(h.focus),DL,LT({uploadEndpoint:u}),SS.configure(h.starterKit),jT({onSubmit:l,shortcuts:c}),HI.configure(be({placeholder:t},h.placeholder))];return o&&f.push(bL({options:s,addonCommands:a,setMediaUploader:p})),g(r)||f.push(UI({suggestion:{items:RI(r)}})),g(i)||f.push(kL({suggestion:{items:()=>i}})),f=f.concat(n),f})({placeholder:A,extensions:O,mentions:S,variables:C,isSlashCommandsActive:V,options:[...f,...b],addonCommands:y,onSubmit:D,keyboardShortcuts:F,uploadEndpoint:x,config:j,setMediaUploader:G});(e=>{let{initialValue:t}=e;o((()=>{![process.env.RAILS_ENV,"production"].includes("production")&&hr(t)&&console.warn(`[neeto-editor]: Empty value of "initialValue" in needtoEditor is expected to be "<p></p>" instead of "${t}".`)}),[t])})({initialValue:a});const J=Lr("neeto-editor",{"slash-active":V&&!q,"fixed-menu-active border":$,"bubble-menu-active":W,"placeholder-active":q,"attachments-active":H,[_]:_}),Z=LM({extensions:Q,content:a,injectCSS:!1,autofocus:d&&"end",editorProps:{attributes:{class:J,style:AF({rows:I})},clipboardTextParser:NF},parseOptions:{preserveWhitespace:!0},onCreate:e=>{let{editor:t}=e;return!d&&(e=>{const{state:t,view:n}=e,r=Hb.atEnd(t.doc),i=t.tr;i.setSelection(r),n.dispatch(i)})(t)},onUpdate:e=>{let{editor:t}=e;return E(t.getHTML())},onFocus:k,onBlur:M});return i(s,(()=>({editor:Z}))),y_.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!==e.plugins)},t.createElement("div",{ref:U,className:Lr({[w]:w,"ne-attachments__wrapper":H})},c&&t.createElement(N,{className:"neeto-ui-mb-2","data-cy":`${m(c)}-editor-label`,required:u},c),t.createElement(FM,{error:z,isFixedMenuActive:$},t.createElement(PM,{editor:Z,isActive:L},t.createElement(SF,{addonCommands:y,addons:b,defaults:f,editor:Z,editorSecrets:T,handleUploadAttachments:()=>{var e;return(null===(e=Y.current)||void 0===e?void 0:e.handleUploadAttachments())||h()},isIndependant:!1,mentions:S,menuType:l,tooltips:v,uploadEndpoint:x,variables:C}),t.createElement(DM,Pf({editor:Z},P)),t.createElement(ZL,{editor:Z,mediaUploader:K,unsplashApiKey:T.unsplash,uploadEndpoint:x,onClose:()=>G({image:!1,video:!1})}),H&&t.createElement(Hm,{attachments:R,className:"ne-attachments--integrated",dragDropRef:U,isIndependent:!1,ref:Y,onChange:B}))))};var TF=t.forwardRef(OF);tF('@charset "UTF-8";\n@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css");\n@keyframes shake {\n 0% {\n transform: translateX(0);\n }\n 10% {\n transform: translateX(-4px);\n }\n 20% {\n transform: translateX(4px);\n }\n 30% {\n transform: translateX(-4px);\n }\n 40% {\n transform: translateX(4px);\n }\n 50% {\n transform: translateX(-4px);\n }\n 60% {\n transform: translateX(4px);\n }\n 70% {\n transform: translateX(-4px);\n }\n 80% {\n transform: translateX(4px);\n }\n 90% {\n transform: translateX(-4px);\n }\n 100% {\n transform: translateX(0);\n }\n}\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.neeto-editor-slash-commands__wrapper {\n padding: 12px;\n overflow-y: auto;\n max-height: 384px;\n width: 256px;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 8px 12px;\n gap: 12px;\n border-radius: var(--neeto-ui-rounded);\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover, .neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5 {\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-mentions__wrapper {\n padding: 8px;\n width: 208px;\n max-height: 256px;\n overflow-y: auto;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 8px;\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded);\n gap: 8px;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item:hover, .neeto-editor-mentions__wrapper .neeto-editor-mentions__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.ProseMirror.slash-active p.is-empty:last-child::before {\n content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAwIDIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMy44MjEyOSAxNUg1LjA1MTc2VjYuMjQzMTZIOC4yMzA0N1Y1LjEzNTc0SDAuNjQyNTc4VjYuMjQzMTZIMy44MjEyOVYxNVpNOS43MjA3IDE3LjU4NEMxMS4wMjY0IDE3LjU4NCAxMS42MzQ4IDE3LjEwNTUgMTIuMjQzMiAxNS40NTEyTDE1LjEyMTEgNy42MzA4NkgxMy44NzAxTDExLjg1MzUgMTMuNjk0M0gxMS43NDQxTDkuNzIwNyA3LjYzMDg2SDguNDQ5MjJMMTEuMTc2OCAxNS4wMDY4TDExLjA0IDE1LjQ0NDNDMTAuNzczNCAxNi4yOTIgMTAuMzYzMyAxNi41OTk2IDkuNjg2NTIgMTYuNTk5NkM5LjUyMjQ2IDE2LjU5OTYgOS4zMzc4OSAxNi41OTI4IDkuMTk0MzQgMTYuNTY1NFYxNy41NDNDOS4zNTg0IDE3LjU3MDMgOS41NjM0OCAxNy41ODQgOS43MjA3IDE3LjU4NFpNMTYuNjkzNCAxNy40NjA5SDE3Ljg4MjhWMTMuODM3OUgxNy45OTIyQzE4LjM5NTUgMTQuNjI0IDE5LjI3NzMgMTUuMTI5OSAyMC4yODkxIDE1LjEyOTlDMjIuMTYyMSAxNS4xMjk5IDIzLjM3ODkgMTMuNjMyOCAyMy4zNzg5IDExLjMyMjNWMTEuMzA4NkMyMy4zNzg5IDkuMDExNzIgMjIuMTU1MyA3LjUwMDk4IDIwLjI4OTEgNy41MDA5OEMxOS4yNjM3IDcuNTAwOTggMTguNDQzNCA3Ljk4NjMzIDE3Ljk5MjIgOC44MDY2NEgxNy44ODI4VjcuNjMwODZIMTYuNjkzNFYxNy40NjA5Wk0yMC4wMTU2IDE0LjA3NzFDMTguNjc1OCAxNC4wNzcxIDE3Ljg1NTUgMTMuMDI0NCAxNy44NTU1IDExLjMyMjNWMTEuMzA4NkMxNy44NTU1IDkuNjA2NDUgMTguNjc1OCA4LjU1MzcxIDIwLjAxNTYgOC41NTM3MUMyMS4zNjIzIDguNTUzNzEgMjIuMTYyMSA5LjU5Mjc3IDIyLjE2MjEgMTEuMzA4NlYxMS4zMjIzQzIyLjE2MjEgMTMuMDM4MSAyMS4zNjIzIDE0LjA3NzEgMjAuMDE1NiAxNC4wNzcxWk0yOC4yNDYxIDE1LjEyOTlDMjkuOTgyNCAxNS4xMjk5IDMxLjAzNTIgMTQuMTQ1NSAzMS4yODgxIDEzLjE0NzVMMzEuMzAxOCAxMy4wOTI4SDMwLjExMjNMMzAuMDg1IDEzLjE1NDNDMjkuODg2NyAxMy41OTg2IDI5LjI3MTUgMTQuMDcwMyAyOC4yNzM0IDE0LjA3MDNDMjYuOTYwOSAxNC4wNzAzIDI2LjEyMDEgMTMuMTgxNiAyNi4wODU5IDExLjY1NzJIMzEuMzkwNlYxMS4xOTI0QzMxLjM5MDYgOC45OTEyMSAzMC4xNzM4IDcuNTAwOTggMjguMTcwOSA3LjUwMDk4QzI2LjE2OCA3LjUwMDk4IDI0Ljg2OTEgOS4wNTk1NyAyNC44NjkxIDExLjMzNTlWMTEuMzQyOEMyNC44NjkxIDEzLjY1MzMgMjYuMTQwNiAxNS4xMjk5IDI4LjI0NjEgMTUuMTI5OVpNMjguMTY0MSA4LjU2MDU1QzI5LjI1MSA4LjU2MDU1IDMwLjA1NzYgOS4yNTA5OCAzMC4xODA3IDEwLjcwN0gyNi4xMDY0QzI2LjIzNjMgOS4zMDU2NiAyNy4wNzAzIDguNTYwNTUgMjguMTY0MSA4LjU2MDU1WiIgZmlsbD0iIzg3OTI5RCIvPgo8cmVjdCB4PSIzNyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiByeD0iMyIgZmlsbD0iI0U5RUJFRCIvPgo8cGF0aCBkPSJNNTAuNDI4MiA1LjkxNDQzTDQzLjU3MTggMTQuMDg1NiIgc3Ryb2tlPSIjMjUyQzMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02NC43MjU2IDE1LjA1NDdDNjQuOTU4IDE1LjA1NDcgNjUuMTgzNiAxNS4wMjczIDY1LjQxNiAxNC45ODYzVjEzLjk3NDZDNjUuMTk3MyAxMy45OTUxIDY1LjA4MTEgMTQuMDAyIDY0Ljg2OTEgMTQuMDAyQzY0LjEwMzUgMTQuMDAyIDYzLjgwMjcgMTMuNjUzMyA2My44MDI3IDEyLjc4NTJWOC42MTUyM0g2NS40MTZWNy42MzA4Nkg2My44MDI3VjUuNzIzNjNINjIuNTcyM1Y3LjYzMDg2SDYxLjQxMDJWOC42MTUyM0g2Mi41NzIzVjEzLjA4NTlDNjIuNTcyMyAxNC40OTQxIDYzLjIwOCAxNS4wNTQ3IDY0LjcyNTYgMTUuMDU0N1pNNzAuMTEyMyAxNS4xMjk5QzcyLjIxMDkgMTUuMTI5OSA3My41MDk4IDEzLjY4MDcgNzMuNTA5OCAxMS4zMjIzVjExLjMwODZDNzMuNTA5OCA4Ljk0MzM2IDcyLjIxMDkgNy41MDA5OCA3MC4xMTIzIDcuNTAwOThDNjguMDEzNyA3LjUwMDk4IDY2LjcxNDggOC45NDMzNiA2Ni43MTQ4IDExLjMwODZWMTEuMzIyM0M2Ni43MTQ4IDEzLjY4MDcgNjguMDEzNyAxNS4xMjk5IDcwLjExMjMgMTUuMTI5OVpNNzAuMTEyMyAxNC4wNzcxQzY4LjcxNzggMTQuMDc3MSA2Ny45MzE2IDEzLjA1ODYgNjcuOTMxNiAxMS4zMjIzVjExLjMwODZDNjcuOTMxNiA5LjU2NTQzIDY4LjcxNzggOC41NTM3MSA3MC4xMTIzIDguNTUzNzFDNzEuNTA2OCA4LjU1MzcxIDcyLjI5MyA5LjU2NTQzIDcyLjI5MyAxMS4zMDg2VjExLjMyMjNDNzIuMjkzIDEzLjA1ODYgNzEuNTA2OCAxNC4wNzcxIDcwLjExMjMgMTQuMDc3MVpNODIuMzA3NiAxNS4xMjk5Qzg0LjA3ODEgMTUuMTI5OSA4NS4wNjkzIDE0LjE3OTcgODUuMzcwMSAxMi44NDY3TDg1LjM4MzggMTIuNzcxNUw4NC4yMDggMTIuNzc4M0w4NC4xOTQzIDEyLjgxOTNDODMuOTIwOSAxMy42Mzk2IDgzLjI5MiAxNC4wNzcxIDgyLjMwMDggMTQuMDc3MUM4MC45ODgzIDE0LjA3NzEgODAuMTQwNiAxMi45OTAyIDgwLjE0MDYgMTEuMjk0OVYxMS4yODEyQzgwLjE0MDYgOS42MjAxMiA4MC45NzQ2IDguNTUzNzEgODIuMzAwOCA4LjU1MzcxQzgzLjM2MDQgOC41NTM3MSA4NC4wMTY2IDkuMTQxNiA4NC4yMDEyIDkuODY2MjFMODQuMjA4IDkuODg2NzJIODUuMzkwNkw4NS4zODM4IDkuODQ1N0M4NS4xNjUgOC41MzMyIDg0LjA5MTggNy41MDA5OCA4Mi4zMDA4IDcuNTAwOThDODAuMjM2MyA3LjUwMDk4IDc4LjkyMzggOC45OTEyMSA3OC45MjM4IDExLjI4MTJWMTEuMjk0OUM3OC45MjM4IDEzLjYzMjggODAuMjQzMiAxNS4xMjk5IDgyLjMwNzYgMTUuMTI5OVpNODcuMTk1MyAxNUg4OC4zODQ4VjEwLjYzODdDODguMzg0OCA5LjM0NjY4IDg5LjEyOTkgOC41NTM3MSA5MC4zMDU3IDguNTUzNzFDOTEuNDgxNCA4LjU1MzcxIDkyLjAyODMgOS4xODk0NSA5Mi4wMjgzIDEwLjUxNTZWMTVIOTMuMjE3OFYxMC4yMjg1QzkzLjIxNzggOC40Nzg1MiA5Mi4yOTQ5IDcuNTAwOTggOTAuNjQwNiA3LjUwMDk4Qzg5LjU1MzcgNy41MDA5OCA4OC44NjMzIDcuOTU4OTggODguNDk0MSA4LjczODI4SDg4LjM4NDhWNC43MDUwOEg4Ny4xOTUzVjE1Wk05Ny4zOTQ1IDE1LjEyOTlDOTguMzg1NyAxNS4xMjk5IDk5LjE1ODIgMTQuNjk5MiA5OS42MjMgMTMuOTEzMUg5OS43MzI0VjE1SDEwMC45MjJWOS45NTUwOEMxMDAuOTIyIDguNDIzODMgOTkuOTE3IDcuNTAwOTggOTguMTE5MSA3LjUwMDk4Qzk2LjU0NjkgNy41MDA5OCA5NS40MjU4IDguMjgwMjcgOTUuMjM0NCA5LjQzNTU1TDk1LjIyNzUgOS40NzY1Nkg5Ni40MTdMOTYuNDIzOCA5LjQ1NjA1Qzk2LjYxNTIgOC44ODE4NCA5Ny4xOTYzIDguNTUzNzEgOTguMDc4MSA4LjU1MzcxQzk5LjE3ODcgOC41NTM3MSA5OS43MzI0IDkuMDQ1OSA5OS43MzI0IDkuOTU1MDhWMTAuNjI1TDk3LjYyMDEgMTAuNzU0OUM5NS45MDQzIDEwLjg1NzQgOTQuOTMzNiAxMS42MTYyIDk0LjkzMzYgMTIuOTI4N1YxMi45NDI0Qzk0LjkzMzYgMTQuMjgyMiA5NS45OTMyIDE1LjEyOTkgOTcuMzk0NSAxNS4xMjk5Wk05Ni4xNTA0IDEyLjkxNVYxMi45MDE0Qzk2LjE1MDQgMTIuMTY5OSA5Ni42NDI2IDExLjc3MzQgOTcuNzYzNyAxMS43MDUxTDk5LjczMjQgMTEuNTgyVjEyLjI1MkM5OS43MzI0IDEzLjMwNDcgOTguODUwNiAxNC4wOTc3IDk3LjY0MDYgMTQuMDk3N0M5Ni43ODYxIDE0LjA5NzcgOTYuMTUwNCAxMy42NjAyIDk2LjE1MDQgMTIuOTE1Wk0xMDMuMDk2IDE1SDEwNC4yODVWMTAuNjM4N0MxMDQuMjg1IDkuMzQ2NjggMTA1LjAzIDguNTUzNzEgMTA2LjIwNiA4LjU1MzcxQzEwNy4zODIgOC41NTM3MSAxMDcuOTI5IDkuMTg5NDUgMTA3LjkyOSAxMC41MTU2VjE1SDEwOS4xMThWMTAuMjI4NUMxMDkuMTE4IDguNDc4NTIgMTA4LjE5NSA3LjUwMDk4IDEwNi41NDEgNy41MDA5OEMxMDUuNDU0IDcuNTAwOTggMTA0Ljc2NCA3Ljk1ODk4IDEwNC4zOTUgOC43MzgyOEgxMDQuMjg1VjcuNjMwODZIMTAzLjA5NlYxNVpNMTE0LjMwNyAxNy41OTc3QzExNi4zMTYgMTcuNTk3NyAxMTcuNTg4IDE2LjU0NDkgMTE3LjU4OCAxNC44OTc1VjcuNjMwODZIMTE2LjM5OFY4Ljg0NzY2SDExNi4zMTZDMTE1Ljg2NSA4LjAxMzY3IDExNS4wNTkgNy41MDA5OCAxMTQuMDIgNy41MDA5OEMxMTIuMDkyIDcuNTAwOTggMTEwLjkwMiA4Ljk5ODA1IDExMC45MDIgMTEuMDYyNVYxMS4wNzYyQzExMC45MDIgMTMuMTQwNiAxMTIuMDg1IDE0LjYxNzIgMTEzLjk5MiAxNC42MTcyQzExNS4wMDQgMTQuNjE3MiAxMTUuODM4IDE0LjE1OTIgMTE2LjMwMyAxMy4zNDU3SDExNi40MTJWMTQuODM1OUMxMTYuNDEyIDE1LjkyMjkgMTE1LjYyNiAxNi41NDQ5IDExNC4zMDcgMTYuNTQ0OUMxMTMuMjQ3IDE2LjU0NDkgMTEyLjU5MSAxNi4xNDg0IDExMi40NjEgMTUuNTg3OUwxMTIuNDU0IDE1LjU4MTFIMTExLjIyNEwxMTEuMjEgMTUuNTg3OUMxMTEuMzk1IDE2Ljc5NzkgMTEyLjUyOSAxNy41OTc3IDExNC4zMDcgMTcuNTk3N1pNMTE0LjI1MiAxMy41NjQ1QzExMi44ODUgMTMuNTY0NSAxMTIuMTE5IDEyLjUzOTEgMTEyLjExOSAxMS4wNzYyVjExLjA2MjVDMTEyLjExOSA5LjU5OTYxIDExMi44ODUgOC41NTM3MSAxMTQuMjUyIDguNTUzNzFDMTE1LjYxMiA4LjU1MzcxIDExNi40MzkgOS41OTk2MSAxMTYuNDM5IDExLjA2MjVWMTEuMDc2MkMxMTYuNDM5IDEyLjUzOTEgMTE1LjYxOSAxMy41NjQ1IDExNC4yNTIgMTMuNTY0NVpNMTIyLjgxMSAxNS4xMjk5QzEyNC41NDcgMTUuMTI5OSAxMjUuNiAxNC4xNDU1IDEyNS44NTMgMTMuMTQ3NUwxMjUuODY2IDEzLjA5MjhIMTI0LjY3N0wxMjQuNjQ5IDEzLjE1NDNDMTI0LjQ1MSAxMy41OTg2IDEyMy44MzYgMTQuMDcwMyAxMjIuODM4IDE0LjA3MDNDMTIxLjUyNSAxNC4wNzAzIDEyMC42ODUgMTMuMTgxNiAxMjAuNjUgMTEuNjU3MkgxMjUuOTU1VjExLjE5MjRDMTI1Ljk1NSA4Ljk5MTIxIDEyNC43MzggNy41MDA5OCAxMjIuNzM1IDcuNTAwOThDMTIwLjczMiA3LjUwMDk4IDExOS40MzQgOS4wNTk1NyAxMTkuNDM0IDExLjMzNTlWMTEuMzQyOEMxMTkuNDM0IDEzLjY1MzMgMTIwLjcwNSAxNS4xMjk5IDEyMi44MTEgMTUuMTI5OVpNMTIyLjcyOSA4LjU2MDU1QzEyMy44MTUgOC41NjA1NSAxMjQuNjIyIDkuMjUwOTggMTI0Ljc0NSAxMC43MDdIMTIwLjY3MUMxMjAuODAxIDkuMzA1NjYgMTIxLjYzNSA4LjU2MDU1IDEyMi43MjkgOC41NjA1NVpNMTM1LjQwMiAxNS4xMjk5QzEzNy4yNjkgMTUuMTI5OSAxMzguNDkyIDEzLjYxOTEgMTM4LjQ5MiAxMS4zMjIzVjExLjMwODZDMTM4LjQ5MiA4Ljk5ODA1IDEzNy4yNzUgNy41MDA5OCAxMzUuNDAyIDcuNTAwOThDMTM0LjM5MSA3LjUwMDk4IDEzMy41MDkgOC4wMDY4NCAxMzMuMTA1IDguNzkyOTdIMTMyLjk5NlY0LjcwNTA4SDEzMS44MDdWMTVIMTMyLjk5NlYxMy44MjQySDEzMy4xMDVDMTMzLjU1NyAxNC42NDQ1IDEzNC4zNzcgMTUuMTI5OSAxMzUuNDAyIDE1LjEyOTlaTTEzNS4xMjkgMTQuMDc3MUMxMzMuNzg5IDE0LjA3NzEgMTMyLjk2OSAxMy4wMjQ0IDEzMi45NjkgMTEuMzIyM1YxMS4zMDg2QzEzMi45NjkgOS42MDY0NSAxMzMuNzg5IDguNTUzNzEgMTM1LjEyOSA4LjU1MzcxQzEzNi40NzYgOC41NTM3MSAxMzcuMjc1IDkuNTkyNzcgMTM3LjI3NSAxMS4zMDg2VjExLjMyMjNDMTM3LjI3NSAxMy4wMzgxIDEzNi40NzYgMTQuMDc3MSAxMzUuMTI5IDE0LjA3NzFaTTE0MC40MDYgMTVIMTQxLjU5NlY0LjcwNTA4SDE0MC40MDZWMTVaTTE0Ni45MDcgMTUuMTI5OUMxNDkuMDA2IDE1LjEyOTkgMTUwLjMwNSAxMy42ODA3IDE1MC4zMDUgMTEuMzIyM1YxMS4zMDg2QzE1MC4zMDUgOC45NDMzNiAxNDkuMDA2IDcuNTAwOTggMTQ2LjkwNyA3LjUwMDk4QzE0NC44MDkgNy41MDA5OCAxNDMuNTEgOC45NDMzNiAxNDMuNTEgMTEuMzA4NlYxMS4zMjIzQzE0My41MSAxMy42ODA3IDE0NC44MDkgMTUuMTI5OSAxNDYuOTA3IDE1LjEyOTlaTTE0Ni45MDcgMTQuMDc3MUMxNDUuNTEzIDE0LjA3NzEgMTQ0LjcyNyAxMy4wNTg2IDE0NC43MjcgMTEuMzIyM1YxMS4zMDg2QzE0NC43MjcgOS41NjU0MyAxNDUuNTEzIDguNTUzNzEgMTQ2LjkwNyA4LjU1MzcxQzE0OC4zMDIgOC41NTM3MSAxNDkuMDg4IDkuNTY1NDMgMTQ5LjA4OCAxMS4zMDg2VjExLjMyMjNDMTQ5LjA4OCAxMy4wNTg2IDE0OC4zMDIgMTQuMDc3MSAxNDYuOTA3IDE0LjA3NzFaTTE1NS4xNjUgMTUuMTI5OUMxNTYuOTM2IDE1LjEyOTkgMTU3LjkyNyAxNC4xNzk3IDE1OC4yMjggMTIuODQ2N0wxNTguMjQxIDEyLjc3MTVMMTU3LjA2NSAxMi43NzgzTDE1Ny4wNTIgMTIuODE5M0MxNTYuNzc4IDEzLjYzOTYgMTU2LjE0OSAxNC4wNzcxIDE1NS4xNTggMTQuMDc3MUMxNTMuODQ2IDE0LjA3NzEgMTUyLjk5OCAxMi45OTAyIDE1Mi45OTggMTEuMjk0OVYxMS4yODEyQzE1Mi45OTggOS42MjAxMiAxNTMuODMyIDguNTUzNzEgMTU1LjE1OCA4LjU1MzcxQzE1Ni4yMTggOC41NTM3MSAxNTYuODc0IDkuMTQxNiAxNTcuMDU5IDkuODY2MjFMMTU3LjA2NSA5Ljg4NjcySDE1OC4yNDhMMTU4LjI0MSA5Ljg0NTdDMTU4LjAyMiA4LjUzMzIgMTU2Ljk0OSA3LjUwMDk4IDE1NS4xNTggNy41MDA5OEMxNTMuMDk0IDcuNTAwOTggMTUxLjc4MSA4Ljk5MTIxIDE1MS43ODEgMTEuMjgxMlYxMS4yOTQ5QzE1MS43ODEgMTMuNjMyOCAxNTMuMTAxIDE1LjEyOTkgMTU1LjE2NSAxNS4xMjk5Wk0xNjAuMDUzIDE1SDE2MS4yNDJWMTIuMjA0MUwxNjEuOTMzIDExLjUzNDJMMTY0LjY5NCAxNUgxNjYuMTkxTDE2Mi43NjcgMTAuNzI3NUwxNjUuOTc5IDcuNjMwODZIMTY0LjUzN0wxNjEuMzUyIDEwLjg1MDZIMTYxLjI0MlY0LjcwNTA4SDE2MC4wNTNWMTVaTTE3NC4xNDIgMTUuMDU0N0MxNzQuMzc0IDE1LjA1NDcgMTc0LjYgMTUuMDI3MyAxNzQuODMyIDE0Ljk4NjNWMTMuOTc0NkMxNzQuNjEzIDEzLjk5NTEgMTc0LjQ5NyAxNC4wMDIgMTc0LjI4NSAxNC4wMDJDMTczLjUyIDE0LjAwMiAxNzMuMjE5IDEzLjY1MzMgMTczLjIxOSAxMi43ODUyVjguNjE1MjNIMTc0LjgzMlY3LjYzMDg2SDE3My4yMTlWNS43MjM2M0gxNzEuOTg4VjcuNjMwODZIMTcwLjgyNlY4LjYxNTIzSDE3MS45ODhWMTMuMDg1OUMxNzEuOTg4IDE0LjQ5NDEgMTcyLjYyNCAxNS4wNTQ3IDE3NC4xNDIgMTUuMDU0N1pNMTc3LjIzOCAxNy41ODRDMTc4LjU0NCAxNy41ODQgMTc5LjE1MiAxNy4xMDU1IDE3OS43NjEgMTUuNDUxMkwxODIuNjM5IDcuNjMwODZIMTgxLjM4OEwxNzkuMzcxIDEzLjY5NDNIMTc5LjI2MkwxNzcuMjM4IDcuNjMwODZIMTc1Ljk2N0wxNzguNjk0IDE1LjAwNjhMMTc4LjU1OCAxNS40NDQzQzE3OC4yOTEgMTYuMjkyIDE3Ny44ODEgMTYuNTk5NiAxNzcuMjA0IDE2LjU5OTZDMTc3LjA0IDE2LjU5OTYgMTc2Ljg1NSAxNi41OTI4IDE3Ni43MTIgMTYuNTY1NFYxNy41NDNDMTc2Ljg3NiAxNy41NzAzIDE3Ny4wODEgMTcuNTg0IDE3Ny4yMzggMTcuNTg0Wk0xODQuMjExIDE3LjQ2MDlIMTg1LjRWMTMuODM3OUgxODUuNTFDMTg1LjkxMyAxNC42MjQgMTg2Ljc5NSAxNS4xMjk5IDE4Ny44MDcgMTUuMTI5OUMxODkuNjggMTUuMTI5OSAxOTAuODk2IDEzLjYzMjggMTkwLjg5NiAxMS4zMjIzVjExLjMwODZDMTkwLjg5NiA5LjAxMTcyIDE4OS42NzMgNy41MDA5OCAxODcuODA3IDcuNTAwOThDMTg2Ljc4MSA3LjUwMDk4IDE4NS45NjEgNy45ODYzMyAxODUuNTEgOC44MDY2NEgxODUuNFY3LjYzMDg2SDE4NC4yMTFWMTcuNDYwOVpNMTg3LjUzMyAxNC4wNzcxQzE4Ni4xOTMgMTQuMDc3MSAxODUuMzczIDEzLjAyNDQgMTg1LjM3MyAxMS4zMjIzVjExLjMwODZDMTg1LjM3MyA5LjYwNjQ1IDE4Ni4xOTMgOC41NTM3MSAxODcuNTMzIDguNTUzNzFDMTg4Ljg4IDguNTUzNzEgMTg5LjY4IDkuNTkyNzcgMTg5LjY4IDExLjMwODZWMTEuMzIyM0MxODkuNjggMTMuMDM4MSAxODguODggMTQuMDc3MSAxODcuNTMzIDE0LjA3NzFaTTE5NS43NjQgMTUuMTI5OUMxOTcuNSAxNS4xMjk5IDE5OC41NTMgMTQuMTQ1NSAxOTguODA2IDEzLjE0NzVMMTk4LjgxOSAxMy4wOTI4SDE5Ny42M0wxOTcuNjAzIDEzLjE1NDNDMTk3LjQwNCAxMy41OTg2IDE5Ni43ODkgMTQuMDcwMyAxOTUuNzkxIDE0LjA3MDNDMTk0LjQ3OSAxNC4wNzAzIDE5My42MzggMTMuMTgxNiAxOTMuNjA0IDExLjY1NzJIMTk4LjkwOFYxMS4xOTI0QzE5OC45MDggOC45OTEyMSAxOTcuNjkxIDcuNTAwOTggMTk1LjY4OCA3LjUwMDk4QzE5My42ODYgNy41MDA5OCAxOTIuMzg3IDkuMDU5NTcgMTkyLjM4NyAxMS4zMzU5VjExLjM0MjhDMTkyLjM4NyAxMy42NTMzIDE5My42NTggMTUuMTI5OSAxOTUuNzY0IDE1LjEyOTlaTTE5NS42ODIgOC41NjA1NUMxOTYuNzY5IDguNTYwNTUgMTk3LjU3NSA5LjI1MDk4IDE5Ny42OTggMTAuNzA3SDE5My42MjRDMTkzLjc1NCA5LjMwNTY2IDE5NC41ODggOC41NjA1NSAxOTUuNjgyIDguNTYwNTVaIiBmaWxsPSIjODc5MjlEIi8+Cjwvc3ZnPgo=");\n position: absolute;\n top: -2px;\n height: 0;\n z-index: -1;\n pointer-events: none;\n}\n.neeto-editor {\n max-width: 100% !important;\n border-radius: var(--neeto-ui-rounded);\n white-space: pre-wrap;\n padding: 16px;\n color: rgb(var(--neeto-ui-gray-800));\n background-color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor:focus {\n outline: none;\n}\n.neeto-editor a {\n pointer-events: none;\n}\n.neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor .ProseMirror-separator {\n display: none;\n}\n.neeto-editor.fixed-menu-active {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n.neeto-editor.attachments-active {\n border-bottom: none;\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n}\n.neeto-editor .is-empty {\n position: relative;\n}\n.neeto-editor.placeholder-active .is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n}\n.neeto-editor hr {\n margin: 8px 0;\n}\n.neeto-editor .ProseMirror-selectednode {\n outline: 3px solid rgb(var(--neeto-ui-pastel-blue));\n}\n.neeto-editor .has-focus {\n background: var(--focus-background-color);\n transition: background-color 200ms ease;\n}\n.neeto-editor-character-count {\n padding: 4px;\n color: rgb(var(--neeto-ui-gray-600));\n font-size: 12px;\n text-align: right;\n}\n.neeto-editor-error {\n color: rgb(var(--neeto-ui-error-500));\n border-width: 1px;\n border-color: rgb(var(--neeto-ui-error-500));\n border-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-error:focus-within {\n border-color: rgb(var(--neeto-ui-error-600));\n}\n.neeto-editor-content, .neeto-editor {\n white-space: pre-wrap;\n word-break: break-word;\n}\n.neeto-editor-content h1, .neeto-editor h1,\n.neeto-editor-content h2,\n.neeto-editor h2,\n.neeto-editor-content h3,\n.neeto-editor h3,\n.neeto-editor-content h4,\n.neeto-editor h4,\n.neeto-editor-content h5,\n.neeto-editor h5,\n.neeto-editor-content h6,\n.neeto-editor h6 {\n font-size: revert;\n margin: 0 0 16px 0;\n}\n.neeto-editor-content p, .neeto-editor p {\n line-height: var(--neeto-ui-leading-normal);\n color: rgb(var(--neeto-ui-gray-700));\n margin-bottom: 8px;\n}\n.neeto-editor-content p:empty::after, .neeto-editor p:empty::after {\n content: " ";\n}\n.neeto-editor-content p:last-child, .neeto-editor p:last-child {\n margin-bottom: 0;\n}\n.neeto-editor-content code, .neeto-editor code {\n padding: 2px;\n font-size: 85%;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-200));\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n}\n.neeto-editor-content pre, .neeto-editor pre {\n background-color: #f6f8fa;\n overflow-x: auto;\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 16px;\n}\n.neeto-editor-content pre > code, .neeto-editor pre > code {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: 400;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.neeto-editor-content blockquote, .neeto-editor blockquote {\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-black));\n border-left-width: 4px;\n border-left-color: #e5e7eb;\n quotes: "“" "”" "‘" "’";\n margin: 8px 0;\n padding-left: 12px;\n}\n.neeto-editor-content blockquote > p::before, .neeto-editor blockquote > p::before {\n content: "" !important;\n}\n.neeto-editor-content blockquote > p::after, .neeto-editor blockquote > p::after {\n content: "" !important;\n}\n.neeto-editor-content ul, .neeto-editor ul,\n.neeto-editor-content ol,\n.neeto-editor ol {\n list-style: revert;\n margin: revert;\n padding: revert;\n}\n.neeto-editor-content ul > li > p, .neeto-editor ul > li > p,\n.neeto-editor-content ol > li > p,\n.neeto-editor ol > li > p {\n margin-top: 0 !important;\n margin-bottom: 0.375rem !important;\n}\n.neeto-editor-content ul li::before, .neeto-editor ul li::before,\n.neeto-editor-content ol li::before,\n.neeto-editor ol li::before {\n background-color: rgb(var(--neeto-ui-black));\n}\n.neeto-editor-content a[href], .neeto-editor a[href] {\n color: rgb(var(--neeto-ui-primary-800));\n font-weight: 500;\n}\n.neeto-editor-content .video-wrapper, .neeto-editor .video-wrapper {\n width: 560px;\n height: 315px;\n margin: auto;\n}\n.neeto-editor-content mark, .neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor-content [data-variable], .neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor-content [data-type=mention], .neeto-editor [data-type=mention] {\n color: rgb(var(--neeto-ui-primary-800));\n}\n.neeto-editor-content--hidden {\n display: none;\n}\n.neeto-editor__image-wrapper {\n display: flex;\n color: unset !important;\n font-weight: normal !important;\n}\n.neeto-editor__image-wrapper figure {\n position: relative;\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image {\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image img,\n.neeto-editor__image-wrapper .neeto-editor__image video {\n display: inline-block;\n height: 100%;\n border: 2px solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded-lg);\n padding: 4px;\n}\n.neeto-editor__image-wrapper figcaption {\n margin-top: 4px;\n text-align: center;\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-normal);\n}\n.neeto-editor__image-wrapper figcaption a {\n display: inline-block;\n text-align: center;\n}\n.neeto-editor__image-wrapper figcaption.is-empty div:before {\n position: absolute;\n inset: 0;\n content: "Add a caption";\n color: rgb(var(--neeto-ui-gray-500));\n}\n.neeto-editor__image--left {\n justify-content: flex-start;\n}\n.neeto-editor__image--center {\n justify-content: center;\n}\n.neeto-editor__image--right {\n justify-content: flex-end;\n}\n.neeto-editor-fixed-menu {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0px 0px;\n border-bottom: none;\n background-color: rgb(var(--neeto-ui-white));\n text-align: center;\n position: relative;\n}\n.neeto-editor-fixed-menu--independant {\n border-radius: unset;\n border-bottom: thin solid rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-fixed-menu__item {\n border-radius: var(--neeto-ui-rounded-sm) !important;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item {\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor-fixed-menu__wrapper {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n overflow: auto;\n width: 100%;\n padding: 2px;\n gap: 0 4px;\n}\n.neeto-editor-fixed-menu__variables {\n position: absolute;\n right: 8px;\n bottom: -24px;\n z-index: 10;\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item {\n padding: 4px;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover, .neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-fixed-menu__right-options {\n display: flex;\n justify-self: flex-end;\n margin-left: auto;\n}\n.neeto-editor-fixed-menu__emoji-dropdown {\n max-height: unset !important;\n}\n.neeto-editor-fixed-menu__separator {\n display: flex;\n height: 28px;\n width: 32px;\n}\n.neeto-editor-fixed-menu__separator span {\n width: 100%;\n}\n.neeto-editor-fixed-menu__separator span:first-child {\n border-right: 1px solid rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 4px;\n align-items: center;\n padding: 8px;\n cursor: pointer;\n transition: var(--neeto-ui-transition);\n border-radius: 2px;\n}\n.neeto-editor-menu__item p {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-xs);\n line-height: 1;\n white-space: nowrap;\n}\n.neeto-editor-menu__item:hover, .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item:focus, .neeto-editor-menu__item:focus-visible {\n outline: rgb(var(--neeto-ui-gray-300)) auto 1px;\n}\n.neeto-editor-menu__item input[type=color] {\n visibility: hidden;\n height: 0;\n width: 0;\n}\n.neeto-editor-menu__item:disabled {\n opacity: 0.5;\n background-color: rgb(var(--neeto-ui-gray-100));\n}\n.neeto-editor-variables-suggestion {\n padding: 4px 0;\n}\n.neeto-editor-variables-list {\n padding: 4px 8px;\n min-width: 184px;\n max-width: 360px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block:not(:last-child) {\n margin-bottom: 12px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block h6 {\n font-size: var(--neeto-ui-text-xs);\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-gray-600));\n margin-bottom: 4px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable {\n padding: 4px 6px;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-700));\n line-height: 1;\n background-color: rgb(var(--neeto-ui-pastel-blue));\n border-radius: var(--neeto-ui-rounded-sm);\n transition: var(--neeto-ui-transition);\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable:hover {\n background-color: rgb(var(--neeto-ui-info-100));\n}\n.neeto-editor-link__item {\n display: flex !important;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 8px;\n padding: 8px !important;\n}\n.neeto-editor-font-size__wrapper {\n font-weight: var(--neeto-ui-font-normal) !important;\n padding: 8px !important;\n}\n.neeto-editor-bubble-menu {\n position: relative;\n display: flex;\n gap: 1px;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n border-radius: var(--neeto-ui-rounded);\n background: rgb(var(--neeto-ui-gray-800));\n padding: 0 4px;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-text {\n color: rgb(var(--neeto-ui-gray-200));\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-text:hover, .neeto-editor-bubble-menu button.neeto-ui-btn--style-text:active, .neeto-editor-bubble-menu button.neeto-ui-btn--style-text.active {\n color: rgb(var(--neeto-ui-gray-200)) !important;\n background-color: rgb(var(--neeto-ui-gray-600)) !important;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-secondary {\n min-width: -moz-fit-content;\n min-width: fit-content;\n background-color: rgb(var(--neeto-ui-gray-400));\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup {\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn {\n color: rgb(var(--neeto-ui-gray-200)) !important;\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:hover, .neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:active, .neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn.active {\n background-color: rgb(var(--neeto-ui-gray-600)) !important;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link {\n width: 256px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px;\n gap: 8px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input {\n background-color: transparent;\n outline: none;\n line-height: 20px;\n width: 100%;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only {\n padding: 0;\n min-height: 0;\n opacity: 0.8;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover {\n opacity: 1;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target {\n display: flex;\n align-items: center;\n gap: 4px;\n white-space: nowrap;\n font-size: var(--neeto-ui-text-xs);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item {\n width: 100%;\n text-align: left;\n padding: 8px 12px;\n font-size: var(--neeto-ui-text-xs);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child {\n border-top-left-radius: var(--neeto-ui-rounded);\n border-top-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child {\n border-bottom-left-radius: var(--neeto-ui-rounded);\n border-bottom-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu-animate-shake {\n animation: 1s linear infinite alternate both shake;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup {\n display: flex;\n min-width: unset;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup .neeto-ui-btn .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor__image-menu-btn {\n position: absolute !important;\n top: 4px;\n right: 4px;\n z-index: 1;\n padding: 2px !important;\n}\n.ne-media-uploader {\n display: flex;\n flex-direction: column;\n min-height: 184px;\n}\n.ne-media-uploader .ne-tab__wrapper .ne-tab {\n min-width: 88px;\n}\n.ne-media-uploader .ne-media-uploader__content {\n flex-grow: 1;\n display: flex;\n padding: 16px;\n}\n.ne-media-uploader .ne-media-uploader__progress {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n text-align: center;\n}\n.ne-media-uploader .ne-media-uploader__progress-title, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-label {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-sm);\n margin-bottom: 4px;\n}\n.ne-media-uploader .ne-media-uploader__progress-file, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-note {\n color: rgb(var(--neeto-ui-gray-400));\n font-size: var(--neeto-ui-text-xs);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n border: 1px dashed rgb(var(--neeto-ui-gray-400));\n box-sizing: border-box;\n border-radius: var(--neeto-ui-rounded);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root {\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-white));\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root::-moz-focus-inner {\n border: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 1.4;\n text-align: center;\n font-weight: var(--neeto-ui-font-normal);\n margin: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-arrow {\n visibility: hidden;\n display: none;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop--isDraggingOver {\n background-color: rgb(var(--neeto-ui-gray-200));\n border: 2px dashed rgb(var(--neeto-ui-primary-500));\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-browse {\n color: rgb(var(--neeto-ui-primary-500));\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd--error {\n color: rgb(var(--neeto-ui-error));\n font-size: var(--neeto-ui-text-xs);\n margin-top: 12px;\n text-align: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper {\n width: 100%;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container {\n max-height: 50vh;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-search {\n padding: 0px 8px;\n margin-bottom: 16px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery {\n width: 100%;\n right: -8px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__loader {\n display: flex;\n justify-content: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item {\n width: 33.3%;\n padding-right: 16px;\n padding-bottom: 16px;\n float: left;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder {\n width: 100%;\n position: relative;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner {\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img {\n height: 100%;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n animation: fade-in 1.2s 1s cubic-bezier(0.39, 0.575, 0.565, 1) both;\n border-radius: var(--neeto-ui-rounded);\n position: relative;\n cursor: pointer;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a {\n opacity: 0;\n position: absolute;\n left: 8px;\n bottom: 8px;\n margin: auto;\n color: rgb(var(--neeto-ui-white));\n font-size: 12px;\n font-weight: var(--neeto-ui-font-normal);\n line-height: 1;\n text-transform: capitalize;\n transition: var(--neeto-ui-transition);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover {\n text-decoration: underline;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a {\n opacity: 1;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n text-align: center;\n margin-top: 12px;\n}\n.neeto-editor-progress-bar__wrapper {\n width: 100%;\n max-width: 256px;\n margin-top: 10px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator {\n position: relative;\n width: 100%;\n height: 6px;\n border-radius: var(--neeto-ui-rounded-full);\n overflow: hidden;\n background-color: rgba(var(--neeto-ui-primary-500), 0.2);\n margin-top: 4px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator-inner {\n height: 100%;\n background-color: rgb(var(--neeto-ui-primary-500));\n}\n.neeto-editor-url-form__wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n padding: 0 24px;\n}\n.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper {\n width: 100%;\n flex-grow: 0;\n margin-bottom: 16px;\n}\n.neeto-editor-emoji {\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.emoji-mart.emoji-mart-light {\n font-size: 14px;\n color: rgb(var(--neeto-ui-gray-800));\n border: none;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor {\n color: rgb(var(--neeto-ui-gray-500));\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg {\n margin: auto;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar {\n background-color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected {\n color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-search input {\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span {\n padding-top: 8px;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span {\n cursor: pointer;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover::before {\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-scroll {\n height: 264px;\n padding-bottom: 0px;\n}\n.neeto-editor-emoji-suggestion {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 4px;\n gap: 2px;\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.neeto-editor-emoji-suggestion p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-emoji-suggestion span {\n height: 16px !important;\n width: 16px !important;\n font-size: 10px;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item {\n padding: 6px;\n font-size: var(--neeto-ui-text-2xl);\n transition: var(--neeto-ui-transition);\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n cursor: pointer;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-media-editor {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1.25rem;\n}\n.ne-media-editor button {\n margin-right: auto;\n}\n.ne-media-editor img,\n.ne-media-editor video {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: 208px;\n max-height: 400px;\n height: -moz-fit-content;\n height: fit-content;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.ne-media-editor__error {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n min-height: 288px;\n max-height: 400px;\n width: 100%;\n padding: 24px;\n background: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n gap: 8px;\n}\n.ne-media-editor__error h2 {\n font-size: var(--neeto-ui-text-lg);\n font-weight: var(--neeto-ui-font-medium);\n}\n.ne-media-editor .neeto-ui-input__wrapper {\n width: 100%;\n}\n.ne-media-editor .ne-media-editor__footer {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.5rem;\n}\n.ne-attachments {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.ne-attachments__items {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n.ne-attachments__attachment {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 2px 4px 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n border: 1px solid rgb(var(--neeto-ui-gray-200));\n background-color: rgb(var(--neeto-ui-white));\n width: 256px;\n}\n.ne-attachments__attachment-file-icon {\n height: auto;\n width: 15px;\n}\n.ne-attachments__attachment__progress {\n display: flex;\n opacity: 0.5;\n justify-content: space-between;\n width: 76%;\n}\n.ne-attachments__attachment__progress p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n}\n.ne-attachments__attachment__progress p:nth-child(2) {\n width: -moz-fit-content;\n width: fit-content;\n}\n.ne-attachments__attachment__progress-icon {\n width: 15px;\n height: auto;\n}\n.ne-attachments__attachment p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 75%;\n}\n.ne-attachments input[type=file] {\n display: none;\n}\n.ne-attachments--integrated {\n padding: 0px 6px;\n border: 1px solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-radius: 0px 0px var(--neeto-ui-rounded) var(--neeto-ui-rounded);\n}\n.ne-attachments__wrapper {\n position: relative;\n}\n.ne-attachments__wrapper.uppy-is-drag-over::after {\n position: absolute;\n inset: 7px;\n border-radius: 5px;\n background-color: rgba(var(--neeto-ui-primary-100), 0.3);\n border: 3px dashed rgb(var(--neeto-ui-primary-100));\n content: "Drop the file here";\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.ProseMirror {\n overflow-y: auto;\n height: 100%;\n white-space: break-spaces;\n}\n.ProseMirror:focus {\n outline: none;\n}',{});const IF=(e,n)=>{let{name:r,...i}=e;return t.createElement(_e,{name:r},(e=>{let{field:o,form:s,meta:a}=e;return t.createElement(TF,Pf({error:a.touched?a.error:"",initialValue:o.value,ref:n,onBlur:()=>s.setFieldTouched(r,!0),onChange:e=>s.setFieldValue(r,e)},i))}))};var LF=l(IF);
42
+ */!function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,p=2,h=4,f=1,m=2,g=1,b=2,y=4,v=8,w=16,_=32,x=64,E=128,k=256,M=512,D=30,C="...",S=800,A=16,N=1,O=2,T=3,I=1/0,L=9007199254740991,F=17976931348623157e292,z=0/0,j=4294967295,R=j-1,B=j>>>1,P=[["ary",E],["bind",g],["bindKey",b],["curry",v],["curryRight",w],["flip",M],["partial",_],["partialRight",x],["rearg",k]],U="[object Arguments]",H="[object Array]",$="[object AsyncFunction]",W="[object Boolean]",V="[object Date]",q="[object DOMException]",K="[object Error]",G="[object Function]",Y="[object GeneratorFunction]",Q="[object Map]",J="[object Number]",Z="[object Null]",X="[object Object]",ee="[object Promise]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",ie="[object String]",oe="[object Symbol]",se="[object Undefined]",ae="[object WeakMap]",le="[object WeakSet]",ce="[object ArrayBuffer]",ue="[object DataView]",de="[object Float32Array]",pe="[object Float64Array]",he="[object Int8Array]",fe="[object Int16Array]",me="[object Int32Array]",ge="[object Uint8Array]",be="[object Uint8ClampedArray]",ye="[object Uint16Array]",ve="[object Uint32Array]",we=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Me=RegExp(Ee.source),De=RegExp(ke.source),Ce=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ie=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Ie.source),Fe=/^\s+/,ze=/\s/,je=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Re=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,Pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,Xe="\\ud800-\\udfff",et="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",tt="\\u2700-\\u27bf",nt="a-z\\xdf-\\xf6\\xf8-\\xff",rt="A-Z\\xc0-\\xd6\\xd8-\\xde",it="\\ufe0e\\ufe0f",ot="\\xac\\xb1\\xd7\\xf7"+"\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf"+"\\u2000-\\u206f"+" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",st="['’]",at="["+Xe+"]",lt="["+ot+"]",ct="["+et+"]",ut="\\d+",dt="["+tt+"]",pt="["+nt+"]",ht="[^"+Xe+ot+ut+tt+nt+rt+"]",ft="\\ud83c[\\udffb-\\udfff]",mt="[^"+Xe+"]",gt="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="["+rt+"]",vt="\\u200d",wt="(?:"+pt+"|"+ht+")",_t="(?:"+yt+"|"+ht+")",xt="(?:"+st+"(?:d|ll|m|re|s|t|ve))?",Et="(?:"+st+"(?:D|LL|M|RE|S|T|VE))?",kt="(?:"+ct+"|"+ft+")"+"?",Mt="["+it+"]?",Dt=Mt+kt+("(?:"+vt+"(?:"+[mt,gt,bt].join("|")+")"+Mt+kt+")*"),Ct="(?:"+[dt,gt,bt].join("|")+")"+Dt,St="(?:"+[mt+ct+"?",ct,gt,bt,at].join("|")+")",At=RegExp(st,"g"),Nt=RegExp(ct,"g"),Ot=RegExp(ft+"(?="+ft+")|"+St+Dt,"g"),It=RegExp([yt+"?"+pt+"+"+xt+"(?="+[lt,yt,"$"].join("|")+")",_t+"+"+Et+"(?="+[lt,yt+wt,"$"].join("|")+")",yt+"?"+wt+"+"+xt,yt+"+"+Et,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ut,Ct].join("|"),"g"),Lt=RegExp("["+vt+Xe+et+it+"]"),Ft=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jt=-1,Rt={};Rt[de]=Rt[pe]=Rt[he]=Rt[fe]=Rt[me]=Rt[ge]=Rt[be]=Rt[ye]=Rt[ve]=!0,Rt[U]=Rt[H]=Rt[ce]=Rt[W]=Rt[ue]=Rt[V]=Rt[K]=Rt[G]=Rt[Q]=Rt[J]=Rt[X]=Rt[ne]=Rt[re]=Rt[ie]=Rt[ae]=!1;var Bt={};Bt[U]=Bt[H]=Bt[ce]=Bt[ue]=Bt[W]=Bt[V]=Bt[de]=Bt[pe]=Bt[he]=Bt[fe]=Bt[me]=Bt[Q]=Bt[J]=Bt[X]=Bt[ne]=Bt[re]=Bt[ie]=Bt[oe]=Bt[ge]=Bt[be]=Bt[ye]=Bt[ve]=!0,Bt[K]=Bt[G]=Bt[ae]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ut=parseFloat,Ht=parseInt,$t="object"==typeof Tt&&Tt&&Tt.Object===Object&&Tt,Wt="object"==typeof self&&self&&self.Object===Object&&self,Vt=$t||Wt||Function("return this")(),qt=t&&!t.nodeType&&t,Kt=qt&&"object"=="object"&&e&&!e.nodeType&&e,Gt=Kt&&Kt.exports===qt,Yt=Gt&&$t.process,Qt=function(){try{var e=Kt&&Kt.require&&Kt.require("util").types;return e||Yt&&Yt.binding&&Yt.binding("util")}catch(e){}}(),Jt=Qt&&Qt.isArrayBuffer,Zt=Qt&&Qt.isDate,Xt=Qt&&Qt.isMap,en=Qt&&Qt.isRegExp,tn=Qt&&Qt.isSet,nn=Qt&&Qt.isTypedArray;function rn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function on(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function sn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function an(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ln(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function cn(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function un(e,t){return!!(null==e?0:e.length)&&wn(e,t,0)>-1}function dn(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function pn(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function hn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function fn(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function mn(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function gn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var bn=kn("length");function yn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function vn(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wn(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):vn(e,xn,n)}function _n(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function xn(e){return e!=e}function En(e,t){var n=null==e?0:e.length;return n?Cn(e,t)/n:z}function kn(e){return function(t){return null==t?n:t[e]}}function Mn(e){return function(t){return null==e?n:e[t]}}function Dn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Cn(e,t){for(var r,i=-1,o=e.length;++i<o;){var s=t(e[i]);s!==n&&(r=r===n?s:r+s)}return r}function Sn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function An(e){return e?e.slice(0,Kn(e)+1).replace(Fe,""):e}function Nn(e){return function(t){return e(t)}}function On(e,t){return pn(t,(function(t){return e[t]}))}function Tn(e,t){return e.has(t)}function In(e,t){for(var n=-1,r=e.length;++n<r&&wn(t,e[n],0)>-1;);return n}function Ln(e,t){for(var n=e.length;n--&&wn(t,e[n],0)>-1;);return n}function Fn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var zn=Mn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),jn=Mn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Rn(e){return"\\"+Pt[e]}function Bn(e){return Lt.test(e)}function Pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Un(e,t){return function(n){return e(t(n))}}function Hn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==u||(e[n]=u,o[i++]=n)}return o}function $n(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Wn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Vn(e){return Bn(e)?function(e){var t=Ot.lastIndex=0;for(;Ot.test(e);)++t;return t}(e):bn(e)}function qn(e){return Bn(e)?function(e){return e.match(Ot)||[]}(e):function(e){return e.split("")}(e)}function Kn(e){for(var t=e.length;t--&&ze.test(e.charAt(t)););return t}var Gn=Mn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Yn=function e(t){var ze,Xe=(t=null==t?Vt:Yn.defaults(Vt.Object(),t,Yn.pick(Vt,zt))).Array,et=t.Date,tt=t.Error,nt=t.Function,rt=t.Math,it=t.Object,ot=t.RegExp,st=t.String,at=t.TypeError,lt=Xe.prototype,ct=nt.prototype,ut=it.prototype,dt=t["__core-js_shared__"],pt=ct.toString,ht=ut.hasOwnProperty,ft=0,mt=(ze=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||""))?"Symbol(src)_1."+ze:"",gt=ut.toString,bt=pt.call(it),yt=Vt._,vt=ot("^"+pt.call(ht).replace(Ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=Gt?t.Buffer:n,_t=t.Symbol,xt=t.Uint8Array,Et=wt?wt.allocUnsafe:n,kt=Un(it.getPrototypeOf,it),Mt=it.create,Dt=ut.propertyIsEnumerable,Ct=lt.splice,St=_t?_t.isConcatSpreadable:n,Ot=_t?_t.iterator:n,Tt=_t?_t.toStringTag:n,Lt=function(){try{var e=Vo(it,"defineProperty");return e({},"",{}),e}catch(e){}}(),Pt=t.clearTimeout!==Vt.clearTimeout&&t.clearTimeout,$t=et&&et.now!==Vt.Date.now&&et.now,Wt=t.setTimeout!==Vt.setTimeout&&t.setTimeout,qt=rt.ceil,Kt=rt.floor,Yt=it.getOwnPropertySymbols,Qt=wt?wt.isBuffer:n,bn=t.isFinite,Mn=lt.join,Qn=Un(it.keys,it),Jn=rt.max,Zn=rt.min,Xn=et.now,er=t.parseInt,tr=rt.random,nr=lt.reverse,rr=Vo(t,"DataView"),ir=Vo(t,"Map"),or=Vo(t,"Promise"),sr=Vo(t,"Set"),ar=Vo(t,"WeakMap"),lr=Vo(it,"create"),cr=ar&&new ar,ur={},dr=ys(rr),pr=ys(ir),hr=ys(or),fr=ys(sr),mr=ys(ar),gr=_t?_t.prototype:n,br=gr?gr.valueOf:n,yr=gr?gr.toString:n;function vr(e){if(Fa(e)&&!ka(e)&&!(e instanceof Er)){if(e instanceof xr)return e;if(ht.call(e,"__wrapped__"))return vs(e)}return new xr(e)}var wr=function(){function e(){}return function(t){if(!La(t))return{};if(Mt)return Mt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function _r(){}function xr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Er(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=j,this.__views__=[]}function kr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Mr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Dr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Cr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Dr;++t<n;)this.add(e[t])}function Sr(e){var t=this.__data__=new Mr(e);this.size=t.size}function Ar(e,t){var n=ka(e),r=!n&&Ea(e),i=!n&&!r&&Sa(e),o=!n&&!r&&!i&&$a(e),s=n||r||i||o,a=s?Sn(e.length,st):[],l=a.length;for(var c in e)!t&&!ht.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Zo(c,l))||a.push(c);return a}function Nr(e){var t=e.length;return t?e[Ci(0,t-1)]:n}function Or(e,t){return ms(lo(e),Pr(t,0,e.length))}function Tr(e){return ms(lo(e))}function Ir(e,t,r){(r!==n&&!wa(e[t],r)||r===n&&!(t in e))&&Rr(e,t,r)}function Lr(e,t,r){var i=e[t];ht.call(e,t)&&wa(i,r)&&(r!==n||t in e)||Rr(e,t,r)}function Fr(e,t){for(var n=e.length;n--;)if(wa(e[n][0],t))return n;return-1}function zr(e,t,n,r){return Vr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function jr(e,t){return e&&co(t,dl(t),e)}function Rr(e,t,n){"__proto__"==t&&Lt?Lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Br(e,t){for(var r=-1,i=t.length,o=Xe(i),s=null==e;++r<i;)o[r]=s?n:sl(e,t[r]);return o}function Pr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function Ur(e,t,r,i,o,s){var a,l=t&d,c=t&p,u=t&h;if(r&&(a=o?r(e,i,o,s):r(e)),a!==n)return a;if(!La(e))return e;var f=ka(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ht.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return lo(e,a)}else{var m=Go(e),g=m==G||m==Y;if(Sa(e))return no(e,l);if(m==X||m==U||g&&!o){if(a=c||g?{}:Qo(e),!l)return c?function(e,t){return co(e,Ko(e),t)}(e,function(e,t){return e&&co(t,pl(t),e)}(a,e)):function(e,t){return co(e,qo(e),t)}(e,jr(a,e))}else{if(!Bt[m])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case ce:return ro(e);case W:case V:return new r(+e);case ue:return function(e,t){var n=t?ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case pe:case he:case fe:case me:case ge:case be:case ye:case ve:return io(e,n);case Q:return new r;case J:case ie:return new r(e);case ne:return function(e){var t=new e.constructor(e.source,We.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new r;case oe:return i=e,br?it(br.call(i)):{}}var i}(e,m,l)}}s||(s=new Sr);var b=s.get(e);if(b)return b;s.set(e,a),Pa(e)?e.forEach((function(n){a.add(Ur(n,t,r,n,e,s))})):za(e)&&e.forEach((function(n,i){a.set(i,Ur(n,t,r,i,e,s))}));var y=f?n:(u?c?Ro:jo:c?pl:dl)(e);return sn(y||e,(function(n,i){y&&(n=e[i=n]),Lr(a,i,Ur(n,t,r,i,e,s))})),a}function Hr(e,t,r){var i=r.length;if(null==e)return!i;for(e=it(e);i--;){var o=r[i],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function $r(e,t,r){if("function"!=typeof e)throw new at(s);return ds((function(){e.apply(n,r)}),t)}function Wr(e,t,n,r){var o=-1,s=un,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=pn(t,Nn(n))),r?(s=dn,a=!1):t.length>=i&&(s=Tn,a=!1,t=new Cr(t));e:for(;++o<l;){var d=e[o],p=null==n?d:n(d);if(d=r||0!==d?d:0,a&&p==p){for(var h=u;h--;)if(t[h]===p)continue e;c.push(d)}else s(t,p,r)||c.push(d)}return c}vr.templateSettings={escape:Ce,evaluate:Se,interpolate:Ae,variable:"",imports:{_:vr}},vr.prototype=_r.prototype,vr.prototype.constructor=vr,xr.prototype=wr(_r.prototype),xr.prototype.constructor=xr,Er.prototype=wr(_r.prototype),Er.prototype.constructor=Er,kr.prototype.clear=function(){this.__data__=lr?lr(null):{},this.size=0},kr.prototype["delete"]=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},kr.prototype.get=function(e){var t=this.__data__;if(lr){var r=t[e];return r===l?n:r}return ht.call(t,e)?t[e]:n},kr.prototype.has=function(e){var t=this.__data__;return lr?t[e]!==n:ht.call(t,e)},kr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lr&&t===n?l:t,this},Mr.prototype.clear=function(){this.__data__=[],this.size=0},Mr.prototype["delete"]=function(e){var t=this.__data__,n=Fr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ct.call(t,n,1),--this.size,!0)},Mr.prototype.get=function(e){var t=this.__data__,r=Fr(t,e);return r<0?n:t[r][1]},Mr.prototype.has=function(e){return Fr(this.__data__,e)>-1},Mr.prototype.set=function(e,t){var n=this.__data__,r=Fr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Dr.prototype.clear=function(){this.size=0,this.__data__={hash:new kr,map:new(ir||Mr),string:new kr}},Dr.prototype["delete"]=function(e){var t=$o(this,e)["delete"](e);return this.size-=t?1:0,t},Dr.prototype.get=function(e){return $o(this,e).get(e)},Dr.prototype.has=function(e){return $o(this,e).has(e)},Dr.prototype.set=function(e,t){var n=$o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Cr.prototype.add=Cr.prototype.push=function(e){return this.__data__.set(e,l),this},Cr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.clear=function(){this.__data__=new Mr,this.size=0},Sr.prototype["delete"]=function(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n},Sr.prototype.get=function(e){return this.__data__.get(e)},Sr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Mr){var r=n.__data__;if(!ir||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dr(r)}return n.set(e,t),this.size=n.size,this};var Vr=ho(Xr),qr=ho(ei,!0);function Kr(e,t){var n=!0;return Vr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function Gr(e,t,r){for(var i=-1,o=e.length;++i<o;){var s=e[i],a=t(s);if(null!=a&&(l===n?a==a&&!Ha(a):r(a,l)))var l=a,c=s}return c}function Yr(e,t){var n=[];return Vr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Qr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=Jo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?Qr(a,t-1,n,r,i):hn(i,a):r||(i[i.length]=a)}return i}var Jr=fo(),Zr=fo(!0);function Xr(e,t){return e&&Jr(e,t,dl)}function ei(e,t){return e&&Zr(e,t,dl)}function ti(e,t){return cn(t,(function(t){return Oa(e[t])}))}function ni(e,t){for(var r=0,i=(t=Zi(t,e)).length;null!=e&&r<i;)e=e[bs(t[r++])];return r&&r==i?e:n}function ri(e,t,n){var r=t(e);return ka(e)?r:hn(r,n(e))}function ii(e){return null==e?e===n?se:Z:Tt&&Tt in it(e)?function(e){var t=ht.call(e,Tt),r=e[Tt];try{e[Tt]=n;var i=!0}catch(e){}var o=gt.call(e);i&&(t?e[Tt]=r:delete e[Tt]);return o}(e):function(e){return gt.call(e)}(e)}function oi(e,t){return e>t}function si(e,t){return null!=e&&ht.call(e,t)}function ai(e,t){return null!=e&&t in it(e)}function li(e,t,r){for(var i=r?dn:un,o=e[0].length,s=e.length,a=s,l=Xe(s),c=1/0,u=[];a--;){var d=e[a];a&&t&&(d=pn(d,Nn(t))),c=Zn(d.length,c),l[a]=!r&&(t||o>=120&&d.length>=120)?new Cr(a&&d):n}d=e[0];var p=-1,h=l[0];e:for(;++p<o&&u.length<c;){var f=d[p],m=t?t(f):f;if(f=r||0!==f?f:0,!(h?Tn(h,m):i(u,m,r))){for(a=s;--a;){var g=l[a];if(!(g?Tn(g,m):i(e[a],m,r)))continue e}h&&h.push(m),u.push(f)}}return u}function ci(e,t,r){var i=null==(e=as(e,t=Zi(t,e)))?e:e[bs(Ns(t))];return null==i?n:rn(i,e,r)}function ui(e){return Fa(e)&&ii(e)==U}function di(e,t,r,i,o){return e===t||(null==e||null==t||!Fa(e)&&!Fa(t)?e!=e&&t!=t:function(e,t,r,i,o,s){var a=ka(e),l=ka(t),c=a?H:Go(e),u=l?H:Go(t),d=(c=c==U?X:c)==X,p=(u=u==U?X:u)==X,h=c==u;if(h&&Sa(e)){if(!Sa(t))return!1;a=!0,d=!1}if(h&&!d)return s||(s=new Sr),a||$a(e)?Fo(e,t,r,i,o,s):function(e,t,n,r,i,o,s){switch(n){case ue:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ce:return!(e.byteLength!=t.byteLength||!o(new xt(e),new xt(t)));case W:case V:case J:return wa(+e,+t);case K:return e.name==t.name&&e.message==t.message;case ne:case ie:return e==t+"";case Q:var a=Pn;case re:var l=r&f;if(a||(a=$n),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=m,s.set(e,t);var u=Fo(a(e),a(t),r,i,o,s);return s["delete"](e),u;case oe:if(br)return br.call(e)==br.call(t)}return!1}(e,t,c,r,i,o,s);if(!(r&f)){var g=d&&ht.call(e,"__wrapped__"),b=p&&ht.call(t,"__wrapped__");if(g||b){var y=g?e.value():e,v=b?t.value():t;return s||(s=new Sr),o(y,v,r,i,s)}}if(!h)return!1;return s||(s=new Sr),function(e,t,r,i,o,s){var a=r&f,l=jo(e),c=l.length,u=jo(t).length;if(c!=u&&!a)return!1;var d=c;for(;d--;){var p=l[d];if(!(a?p in t:ht.call(t,p)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var b=a;for(;++d<c;){var y=e[p=l[d]],v=t[p];if(i)var w=a?i(v,y,p,t,e,s):i(y,v,p,e,t,s);if(!(w===n?y===v||o(y,v,r,i,s):w)){g=!1;break}b||(b="constructor"==p)}if(g&&!b){var _=e.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(g=!1)}return s["delete"](e),s["delete"](t),g}(e,t,r,i,o,s)}(e,t,r,i,di,o))}function pi(e,t,r,i){var o=r.length,s=o,a=!i;if(null==e)return!s;for(e=it(e);o--;){var l=r[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=r[o])[0],u=e[c],d=l[1];if(a&&l[2]){if(u===n&&!(c in e))return!1}else{var p=new Sr;if(i)var h=i(u,d,c,e,t,p);if(!(h===n?di(d,u,f|m,i,p):h))return!1}}return!0}function hi(e){return!(!La(e)||(t=e,mt&&mt in t))&&(Oa(e)?vt:Ke).test(ys(e));var t}function fi(e){return"function"==typeof e?e:null==e?jl:"object"==typeof e?ka(e)?wi(e[0],e[1]):vi(e):ql(e)}function mi(e){if(!rs(e))return Qn(e);var t=[];for(var n in it(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function gi(e){if(!La(e))return function(e){var t=[];if(null!=e)for(var n in it(e))t.push(n);return t}(e);var t=rs(e),n=[];for(var r in e)("constructor"!=r||!t&&ht.call(e,r))&&n.push(r);return n}function bi(e,t){return e<t}function yi(e,t){var n=-1,r=Da(e)?Xe(e.length):[];return Vr(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function vi(e){var t=Wo(e);return 1==t.length&&t[0][2]?os(t[0][0],t[0][1]):function(n){return n===e||pi(n,e,t)}}function wi(e,t){return es(e)&&is(t)?os(bs(e),t):function(r){var i=sl(r,e);return i===n&&i===t?al(r,e):di(t,i,f|m)}}function _i(e,t,r,i,o){e!==t&&Jr(t,(function(s,a){if(o||(o=new Sr),La(s))!function(e,t,r,i,o,s,a){var l=cs(e,r),c=cs(t,r),u=a.get(c);if(u)return void Ir(e,r,u);var d=s?s(l,c,r+"",e,t,a):n,p=d===n;if(p){var h=ka(c),f=!h&&Sa(c),m=!h&&!f&&$a(c);d=c,h||f||m?ka(l)?d=l:Ca(l)?d=lo(l):f?(p=!1,d=no(c,!0)):m?(p=!1,d=io(c,!0)):d=[]:Ra(c)||Ea(c)?(d=l,Ea(l)?d=Ja(l):La(l)&&!Oa(l)||(d=Qo(c))):p=!1}p&&(a.set(c,d),o(d,c,i,s,a),a["delete"](c));Ir(e,r,d)}(e,t,a,r,_i,i,o);else{var l=i?i(cs(e,a),s,a+"",e,t,o):n;l===n&&(l=s),Ir(e,a,l)}}),pl)}function xi(e,t){var r=e.length;if(r)return Zo(t+=t<0?r:0,r)?e[t]:n}function Ei(e,t,n){t=t.length?pn(t,(function(e){return ka(e)?function(t){return ni(t,1===e.length?e[0]:e)}:e})):[jl];var r=-1;t=pn(t,Nn(Ho()));var i=yi(e,(function(e,n,i){var o=pn(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;for(;++r<s;){var l=oo(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function ki(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=ni(e,s);n(a,s)&&Ti(o,Zi(s,e),a)}return o}function Mi(e,t,n,r){var i=r?_n:wn,o=-1,s=t.length,a=e;for(e===t&&(t=lo(t)),n&&(a=pn(e,Nn(n)));++o<s;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(a,u,l,r))>-1;)a!==e&&Ct.call(a,l,1),Ct.call(e,l,1);return e}function Di(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Zo(i)?Ct.call(e,i,1):Wi(e,i)}}return e}function Ci(e,t){return e+Kt(tr()*(t-e+1))}function Si(e,t){var n="";if(!e||t<1||t>L)return n;do{t%2&&(n+=e),(t=Kt(t/2))&&(e+=e)}while(t);return n}function Ai(e,t){return ps(ss(e,t,jl),e+"")}function Ni(e){return Nr(wl(e))}function Oi(e,t){var n=wl(e);return ms(n,Pr(t,0,n.length))}function Ti(e,t,r,i){if(!La(e))return e;for(var o=-1,s=(t=Zi(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=bs(t[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var d=l[c];(u=i?i(d,c,l):n)===n&&(u=La(d)?d:Zo(t[o+1])?[]:{})}Lr(l,c,u),l=l[c]}return e}var Ii=cr?function(e,t){return cr.set(e,t),e}:jl,Li=Lt?function(e,t){return Lt(e,"toString",{configurable:!0,enumerable:!1,value:Ll(t),writable:!0})}:jl;function Fi(e){return ms(wl(e))}function zi(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Xe(i);++r<i;)o[r]=e[r+t];return o}function ji(e,t){var n;return Vr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=B){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!Ha(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return Bi(e,t,jl,n)}function Bi(e,t,r,i){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,l=null===t,c=Ha(t),u=t===n;o<s;){var d=Kt((o+s)/2),p=r(e[d]),h=p!==n,f=null===p,m=p==p,g=Ha(p);if(a)var b=i||m;else b=u?m&&(i||h):l?m&&h&&(i||!f):c?m&&h&&!f&&(i||!g):!f&&!g&&(i?p<=t:p<t);b?o=d+1:s=d}return Zn(s,R)}function Pi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!wa(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function Ui(e){return"number"==typeof e?e:Ha(e)?z:+e}function Hi(e){if("string"==typeof e)return e;if(ka(e))return pn(e,Hi)+"";if(Ha(e))return yr?yr.call(e):"";var t=e+"";return"0"==t&&1/e==-I?"-0":t}function $i(e,t,n){var r=-1,o=un,s=e.length,a=!0,l=[],c=l;if(n)a=!1,o=dn;else if(s>=i){var u=t?null:Ao(e);if(u)return $n(u);a=!1,o=Tn,c=new Cr}else c=t?[]:l;e:for(;++r<s;){var d=e[r],p=t?t(d):d;if(d=n||0!==d?d:0,a&&p==p){for(var h=c.length;h--;)if(c[h]===p)continue e;t&&c.push(p),l.push(d)}else o(c,p,n)||(c!==l&&c.push(p),l.push(d))}return l}function Wi(e,t){return null==(e=as(e,t=Zi(t,e)))||delete e[bs(Ns(t))]}function Vi(e,t,n,r){return Ti(e,t,n(ni(e,t)),r)}function qi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?zi(e,r?0:o,r?o+1:i):zi(e,r?o+1:0,r?i:o)}function Ki(e,t){var n=e;return n instanceof Er&&(n=n.value()),fn(t,(function(e,t){return t.func.apply(t.thisArg,hn([e],t.args))}),n)}function Gi(e,t,n){var r=e.length;if(r<2)return r?$i(e[0]):[];for(var i=-1,o=Xe(r);++i<r;)for(var s=e[i],a=-1;++a<r;)a!=i&&(o[i]=Wr(o[i]||s,e[a],t,n));return $i(Qr(o,1),t,n)}function Yi(e,t,r){for(var i=-1,o=e.length,s=t.length,a={};++i<o;){var l=i<s?t[i]:n;r(a,e[i],l)}return a}function Qi(e){return Ca(e)?e:[]}function Ji(e){return"function"==typeof e?e:jl}function Zi(e,t){return ka(e)?e:es(e,t)?[e]:gs(Za(e))}var Xi=Ai;function eo(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:zi(e,t,r)}var to=Pt||function(e){return Vt.clearTimeout(e)};function no(e,t){if(t)return e.slice();var n=e.length,r=Et?Et(n):new e.constructor(n);return e.copy(r),r}function ro(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function io(e,t){var n=t?ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oo(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,s=Ha(e),a=t!==n,l=null===t,c=t==t,u=Ha(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!u&&e<t||u&&r&&o&&!i&&!s||l&&r&&o||!a&&o||!c)return-1}return 0}function so(e,t,n,r){for(var i=-1,o=e.length,s=n.length,a=-1,l=t.length,c=Jn(o-s,0),u=Xe(l+c),d=!r;++a<l;)u[a]=t[a];for(;++i<s;)(d||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[a++]=e[i++];return u}function ao(e,t,n,r){for(var i=-1,o=e.length,s=-1,a=n.length,l=-1,c=t.length,u=Jn(o-a,0),d=Xe(u+c),p=!r;++i<u;)d[i]=e[i];for(var h=i;++l<c;)d[h+l]=t[l];for(;++s<a;)(p||i<o)&&(d[h+n[s]]=e[i++]);return d}function lo(e,t){var n=-1,r=e.length;for(t||(t=Xe(r));++n<r;)t[n]=e[n];return t}function co(e,t,r,i){var o=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=i?i(r[l],e[l],l,r,e):n;c===n&&(c=e[l]),o?Rr(r,l,c):Lr(r,l,c)}return r}function uo(e,t){return function(n,r){var i=ka(n)?on:zr,o=t?t():{};return i(n,e,Ho(r,2),o)}}function po(e){return Ai((function(t,r){var i=-1,o=r.length,s=o>1?r[o-1]:n,a=o>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&Xo(r[0],r[1],a)&&(s=o<3?n:s,o=1),t=it(t);++i<o;){var l=r[i];l&&e(t,l,i,s)}return t}))}function ho(e,t){return function(n,r){if(null==n)return n;if(!Da(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=it(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function fo(e){return function(t,n,r){for(var i=-1,o=it(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}function mo(e){return function(t){var r=Bn(t=Za(t))?qn(t):n,i=r?r[0]:t.charAt(0),o=r?eo(r,1).join(""):t.slice(1);return i[e]()+o}}function go(e){return function(t){return fn(Ol(El(t).replace(At,"")),e,"")}}function bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=wr(e.prototype),r=e.apply(n,t);return La(r)?r:n}}function yo(e){return function(t,r,i){var o=it(t);if(!Da(t)){var s=Ho(r,3);t=dl(t),r=function(e){return s(o[e],e,o)}}var a=e(t,r,i);return a>-1?o[s?t[a]:a]:n}}function vo(e){return zo((function(t){var r=t.length,i=r,o=xr.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new at(s);if(o&&!l&&"wrapper"==Po(a))var l=new xr([],!0)}for(i=l?i:r;++i<r;){var c=Po(a=t[i]),u="wrapper"==c?Bo(a):n;l=u&&ts(u[0])&&u[1]==(E|v|_|k)&&!u[4].length&&1==u[9]?l[Po(u[0])].apply(l,u[3]):1==a.length&&ts(a)?l[c]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&ka(n))return l.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}function wo(e,t,r,i,o,s,a,l,c,u){var d=t&E,p=t&g,h=t&b,f=t&(v|w),m=t&M,y=h?n:bo(e);return function n(){for(var g=arguments.length,b=Xe(g),v=g;v--;)b[v]=arguments[v];if(f)var w=Uo(n),_=Fn(b,w);if(i&&(b=so(b,i,o,f)),s&&(b=ao(b,s,a,f)),g-=_,f&&g<u){var x=Hn(b,w);return Co(e,t,wo,n.placeholder,r,b,x,l,c,u-g)}var E=p?r:this,k=h?E[e]:e;return g=b.length,l?b=ls(b,l):m&&g>1&&b.reverse(),d&&c<g&&(b.length=c),this&&this!==Vt&&this instanceof n&&(k=y||bo(k)),k.apply(E,b)}}function _o(e,t){return function(n,r){return function(e,t,n,r){return Xr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function xo(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=Hi(r),i=Hi(i)):(r=Ui(r),i=Ui(i)),o=e(r,i)}return o}}function Eo(e){return zo((function(t){return t=pn(t,Nn(Ho())),Ai((function(n){var r=this;return e(t,(function(e){return rn(e,r,n)}))}))}))}function ko(e,t){var r=(t=t===n?" ":Hi(t)).length;if(r<2)return r?Si(t,e):t;var i=Si(t,qt(e/Vn(t)));return Bn(t)?eo(qn(i),0,e).join(""):i.slice(0,e)}function Mo(e){return function(t,r,i){return i&&"number"!=typeof i&&Xo(t,r,i)&&(r=i=n),t=Ka(t),r===n?(r=t,t=0):r=Ka(r),function(e,t,n,r){for(var i=-1,o=Jn(qt((t-e)/(n||1)),0),s=Xe(o);o--;)s[r?o:++i]=e,e+=n;return s}(t,r,i=i===n?t<r?1:-1:Ka(i),e)}}function Do(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qa(t),n=Qa(n)),e(t,n)}}function Co(e,t,r,i,o,s,a,l,c,u){var d=t&v;t|=d?_:x,(t&=~(d?x:_))&y||(t&=~(g|b));var p=[e,t,o,d?s:n,d?a:n,d?n:s,d?n:a,l,c,u],h=r.apply(n,p);return ts(e)&&us(h,p),h.placeholder=i,hs(h,e,t)}function So(e){var t=rt[e];return function(e,n){if(e=Qa(e),(n=null==n?0:Zn(Ga(n),292))&&bn(e)){var r=(Za(e)+"e").split("e");return+((r=(Za(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ao=sr&&1/$n(new sr([,-0]))[1]==I?function(e){return new sr(e)}:Hl;function No(e){return function(t){var n=Go(t);return n==Q?Pn(t):n==re?Wn(t):function(e,t){return pn(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Oo(e,t,r,i,o,a,l,c){var d=t&b;if(!d&&"function"!=typeof e)throw new at(s);var p=i?i.length:0;if(p||(t&=~(_|x),i=o=n),l=l===n?l:Jn(Ga(l),0),c=c===n?c:Ga(c),p-=o?o.length:0,t&x){var h=i,f=o;i=o=n}var m=d?n:Bo(e),M=[e,t,r,i,o,h,f,a,l,c];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<(g|b|E),s=r==E&&n==v||r==E&&n==k&&e[7].length<=t[8]||r==(E|k)&&t[7].length<=t[8]&&n==v;if(!o&&!s)return e;r&g&&(e[2]=t[2],i|=n&g?0:y);var a=t[3];if(a){var l=e[3];e[3]=l?so(l,a,t[4]):a,e[4]=l?Hn(e[3],u):t[4]}(a=t[5])&&(l=e[5],e[5]=l?ao(l,a,t[6]):a,e[6]=l?Hn(e[5],u):t[6]);(a=t[7])&&(e[7]=a);r&E&&(e[8]=null==e[8]?t[8]:Zn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(M,m),e=M[0],t=M[1],r=M[2],i=M[3],o=M[4],!(c=M[9]=M[9]===n?d?0:e.length:Jn(M[9]-p,0))&&t&(v|w)&&(t&=~(v|w)),t&&t!=g)D=t==v||t==w?function(e,t,r){var i=bo(e);return function o(){for(var s=arguments.length,a=Xe(s),l=s,c=Uo(o);l--;)a[l]=arguments[l];var u=s<3&&a[0]!==c&&a[s-1]!==c?[]:Hn(a,c);return(s-=u.length)<r?Co(e,t,wo,o.placeholder,n,a,u,n,n,r-s):rn(this&&this!==Vt&&this instanceof o?i:e,this,a)}}(e,t,c):t!=_&&t!=(g|_)||o.length?wo.apply(n,M):function(e,t,n,r){var i=t&g,o=bo(e);return function t(){for(var s=-1,a=arguments.length,l=-1,c=r.length,u=Xe(c+a),d=this&&this!==Vt&&this instanceof t?o:e;++l<c;)u[l]=r[l];for(;a--;)u[l++]=arguments[++s];return rn(d,i?n:this,u)}}(e,t,r,i);else var D=function(e,t,n){var r=t&g,i=bo(e);return function t(){return(this&&this!==Vt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return hs((m?Ii:us)(D,M),e,t)}function To(e,t,r,i){return e===n||wa(e,ut[r])&&!ht.call(i,r)?t:e}function Io(e,t,r,i,o,s){return La(e)&&La(t)&&(s.set(t,e),_i(e,t,n,Io,s),s["delete"](t)),e}function Lo(e){return Ra(e)?n:e}function Fo(e,t,r,i,o,s){var a=r&f,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,g=r&m?new Cr:n;for(s.set(e,t),s.set(t,e);++p<l;){var b=e[p],y=t[p];if(i)var v=a?i(y,b,p,t,e,s):i(b,y,p,e,t,s);if(v!==n){if(v)continue;h=!1;break}if(g){if(!gn(t,(function(e,t){if(!Tn(g,t)&&(b===e||o(b,e,r,i,s)))return g.push(t)}))){h=!1;break}}else if(b!==y&&!o(b,y,r,i,s)){h=!1;break}}return s["delete"](e),s["delete"](t),h}function zo(e){return ps(ss(e,n,Ms),e+"")}function jo(e){return ri(e,dl,qo)}function Ro(e){return ri(e,pl,Ko)}var Bo=cr?function(e){return cr.get(e)}:Hl;function Po(e){for(var t=e.name+"",n=ur[t],r=ht.call(ur,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Uo(e){return(ht.call(vr,"placeholder")?vr:e).placeholder}function Ho(){var e=vr.iteratee||Rl;return e=e===Rl?fi:e,arguments.length?e(arguments[0],arguments[1]):e}function $o(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Wo(e){for(var t=dl(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,is(i)]}return t}function Vo(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return hi(r)?r:n}var qo=Yt?function(e){return null==e?[]:(e=it(e),cn(Yt(e),(function(t){return Dt.call(e,t)})))}:Yl,Ko=Yt?function(e){for(var t=[];e;)hn(t,qo(e)),e=kt(e);return t}:Yl,Go=ii;function Yo(e,t,n){for(var r=-1,i=(t=Zi(t,e)).length,o=!1;++r<i;){var s=bs(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ia(i)&&Zo(s,i)&&(ka(e)||Ea(e))}function Qo(e){return"function"!=typeof e.constructor||rs(e)?{}:wr(kt(e))}function Jo(e){return ka(e)||Ea(e)||!!(St&&e&&e[St])}function Zo(e,t){var n=typeof e;return!!(t=null==t?L:t)&&("number"==n||"symbol"!=n&&Ye.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!La(n))return!1;var r=typeof t;return!!("number"==r?Da(n)&&Zo(t,n.length):"string"==r&&t in n)&&wa(n[t],e)}function es(e,t){if(ka(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ha(e))||(Oe.test(e)||!Ne.test(e)||null!=t&&e in it(t))}function ts(e){var t=Po(e),n=vr[t];if("function"!=typeof n||!(t in Er.prototype))return!1;if(e===n)return!0;var r=Bo(n);return!!r&&e===r[0]}(rr&&Go(new rr(new ArrayBuffer(1)))!=ue||ir&&Go(new ir)!=Q||or&&Go(or.resolve())!=ee||sr&&Go(new sr)!=re||ar&&Go(new ar)!=ae)&&(Go=function(e){var t=ii(e),r=t==X?e.constructor:n,i=r?ys(r):"";if(i)switch(i){case dr:return ue;case pr:return Q;case hr:return ee;case fr:return re;case mr:return ae}return t});var ns=dt?Oa:Ql;function rs(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ut)}function is(e){return e==e&&!La(e)}function os(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in it(r)))}}function ss(e,t,r){return t=Jn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Jn(n.length-t,0),s=Xe(o);++i<o;)s[i]=n[t+i];i=-1;for(var a=Xe(t+1);++i<t;)a[i]=n[i];return a[t]=r(s),rn(e,this,a)}}function as(e,t){return t.length<2?e:ni(e,zi(t,0,-1))}function ls(e,t){for(var r=e.length,i=Zn(t.length,r),o=lo(e);i--;){var s=t[i];e[i]=Zo(s,r)?o[s]:n}return e}function cs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var us=fs(Ii),ds=Wt||function(e,t){return Vt.setTimeout(e,t)},ps=fs(Li);function hs(e,t,n){var r=t+"";return ps(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(je,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return sn(P,(function(n){var r="_."+n[0];t&n[1]&&!un(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Re);return t?t[1].split(Be):[]}(r),n)))}function fs(e){var t=0,r=0;return function(){var i=Xn(),o=A-(i-r);if(r=i,o>0){if(++t>=S)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r<t;){var s=Ci(r,o),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var gs=function(e){var t=fa(e,(function(e){return n.size===c&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Te,(function(e,n,r,i){t.push(r?i.replace(He,"$1"):n||e)})),t}));function bs(e){if("string"==typeof e||Ha(e))return e;var t=e+"";return"0"==t&&1/e==-I?"-0":t}function ys(e){if(null!=e){try{return pt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function vs(e){if(e instanceof Er)return e.clone();var t=new xr(e.__wrapped__,e.__chain__);return t.__actions__=lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ws=Ai((function(e,t){return Ca(e)?Wr(e,Qr(t,1,Ca,!0)):[]})),_s=Ai((function(e,t){var r=Ns(t);return Ca(r)&&(r=n),Ca(e)?Wr(e,Qr(t,1,Ca,!0),Ho(r,2)):[]})),xs=Ai((function(e,t){var r=Ns(t);return Ca(r)&&(r=n),Ca(e)?Wr(e,Qr(t,1,Ca,!0),n,r):[]}));function Es(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ga(n);return i<0&&(i=Jn(r+i,0)),vn(e,Ho(t,3),i)}function ks(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==n&&(o=Ga(r),o=r<0?Jn(i+o,0):Zn(o,i-1)),vn(e,Ho(t,3),o,!0)}function Ms(e){return(null==e?0:e.length)?Qr(e,1):[]}function Ds(e){return e&&e.length?e[0]:n}var Cs=Ai((function(e){var t=pn(e,Qi);return t.length&&t[0]===e[0]?li(t):[]})),Ss=Ai((function(e){var t=Ns(e),r=pn(e,Qi);return t===Ns(r)?t=n:r.pop(),r.length&&r[0]===e[0]?li(r,Ho(t,2)):[]})),As=Ai((function(e){var t=Ns(e),r=pn(e,Qi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?li(r,n,t):[]}));function Ns(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Os=Ai(Ts);function Ts(e,t){return e&&e.length&&t&&t.length?Mi(e,t):e}var Is=zo((function(e,t){var n=null==e?0:e.length,r=Br(e,t);return Di(e,pn(t,(function(e){return Zo(e,n)?+e:e})).sort(oo)),r}));function Ls(e){return null==e?e:nr.call(e)}var Fs=Ai((function(e){return $i(Qr(e,1,Ca,!0))})),zs=Ai((function(e){var t=Ns(e);return Ca(t)&&(t=n),$i(Qr(e,1,Ca,!0),Ho(t,2))})),js=Ai((function(e){var t=Ns(e);return t="function"==typeof t?t:n,$i(Qr(e,1,Ca,!0),n,t)}));function Rs(e){if(!e||!e.length)return[];var t=0;return e=cn(e,(function(e){if(Ca(e))return t=Jn(e.length,t),!0})),Sn(t,(function(t){return pn(e,kn(t))}))}function Bs(e,t){if(!e||!e.length)return[];var r=Rs(e);return null==t?r:pn(r,(function(e){return rn(t,n,e)}))}var Ps=Ai((function(e,t){return Ca(e)?Wr(e,t):[]})),Us=Ai((function(e){return Gi(cn(e,Ca))})),Hs=Ai((function(e){var t=Ns(e);return Ca(t)&&(t=n),Gi(cn(e,Ca),Ho(t,2))})),$s=Ai((function(e){var t=Ns(e);return t="function"==typeof t?t:n,Gi(cn(e,Ca),n,t)})),Ws=Ai(Rs);var Vs=Ai((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,Bs(e,r)}));function qs(e){var t=vr(e);return t.__chain__=!0,t}function Ks(e,t){return t(e)}var Gs=zo((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return Br(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Er&&Zo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:Ks,args:[o],thisArg:n}),new xr(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var Ys=uo((function(e,t,n){ht.call(e,n)?++e[n]:Rr(e,n,1)}));var Qs=yo(Es),Js=yo(ks);function Zs(e,t){return(ka(e)?sn:Vr)(e,Ho(t,3))}function Xs(e,t){return(ka(e)?an:qr)(e,Ho(t,3))}var ea=uo((function(e,t,n){ht.call(e,n)?e[n].push(t):Rr(e,n,[t])}));var ta=Ai((function(e,t,n){var r=-1,i="function"==typeof t,o=Da(e)?Xe(e.length):[];return Vr(e,(function(e){o[++r]=i?rn(t,e,n):ci(e,t,n)})),o})),na=uo((function(e,t,n){Rr(e,n,t)}));function ra(e,t){return(ka(e)?pn:yi)(e,Ho(t,3))}var ia=uo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var oa=Ai((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),Ei(e,Qr(t,1),[])})),sa=$t||function(){return Vt.Date.now()};function aa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Oo(e,E,n,n,n,n,t)}function la(e,t){var r;if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var ca=Ai((function(e,t,n){var r=g;if(n.length){var i=Hn(n,Uo(ca));r|=_}return Oo(e,r,t,n,i)})),ua=Ai((function(e,t,n){var r=g|b;if(n.length){var i=Hn(n,Uo(ua));r|=_}return Oo(t,r,e,n,i)}));function da(e,t,r){var i,o,a,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new at(s);function m(t){var r=i,s=o;return i=o=n,d=t,l=e.apply(s,r)}function g(e){return d=e,c=ds(y,t),p?m(e):l}function b(e){var r=e-u;return u===n||r>=t||r<0||h&&e-d>=a}function y(){var e=sa();if(b(e))return v(e);c=ds(y,function(e){var n=t-(e-u);return h?Zn(n,a-(e-d)):n}(e))}function v(e){return c=n,f&&i?m(e):(i=o=n,l)}function w(){var e=sa(),r=b(e);if(i=arguments,o=this,u=e,r){if(c===n)return g(u);if(h)return to(c),c=ds(y,t),m(u)}return c===n&&(c=ds(y,t)),l}return t=Qa(t)||0,La(r)&&(p=!!r.leading,a=(h="maxWait"in r)?Jn(Qa(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),w.cancel=function(){c!==n&&to(c),d=0,i=u=o=c=n},w.flush=function(){return c===n?l:v(sa())},w}var pa=Ai((function(e,t){return $r(e,1,t)})),ha=Ai((function(e,t,n){return $r(e,Qa(t)||0,n)}));function fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(s);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(fa.Cache||Dr),n}function ma(e){if("function"!=typeof e)throw new at(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}fa.Cache=Dr;var ga=Xi((function(e,t){var n=(t=1==t.length&&ka(t[0])?pn(t[0],Nn(Ho())):pn(Qr(t,1),Nn(Ho()))).length;return Ai((function(r){for(var i=-1,o=Zn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return rn(e,this,r)}))})),ba=Ai((function(e,t){var r=Hn(t,Uo(ba));return Oo(e,_,n,t,r)})),ya=Ai((function(e,t){var r=Hn(t,Uo(ya));return Oo(e,x,n,t,r)})),va=zo((function(e,t){return Oo(e,k,n,n,n,t)}));function wa(e,t){return e===t||e!=e&&t!=t}var _a=Do(oi),xa=Do((function(e,t){return e>=t})),Ea=ui(function(){return arguments}())?ui:function(e){return Fa(e)&&ht.call(e,"callee")&&!Dt.call(e,"callee")},ka=Xe.isArray,Ma=Jt?Nn(Jt):function(e){return Fa(e)&&ii(e)==ce};function Da(e){return null!=e&&Ia(e.length)&&!Oa(e)}function Ca(e){return Fa(e)&&Da(e)}var Sa=Qt||Ql,Aa=Zt?Nn(Zt):function(e){return Fa(e)&&ii(e)==V};function Na(e){if(!Fa(e))return!1;var t=ii(e);return t==K||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!Ra(e)}function Oa(e){if(!La(e))return!1;var t=ii(e);return t==G||t==Y||t==$||t==te}function Ta(e){return"number"==typeof e&&e==Ga(e)}function Ia(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=L}function La(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Fa(e){return null!=e&&"object"==typeof e}var za=Xt?Nn(Xt):function(e){return Fa(e)&&Go(e)==Q};function ja(e){return"number"==typeof e||Fa(e)&&ii(e)==J}function Ra(e){if(!Fa(e)||ii(e)!=X)return!1;var t=kt(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pt.call(n)==bt}var Ba=en?Nn(en):function(e){return Fa(e)&&ii(e)==ne};var Pa=tn?Nn(tn):function(e){return Fa(e)&&Go(e)==re};function Ua(e){return"string"==typeof e||!ka(e)&&Fa(e)&&ii(e)==ie}function Ha(e){return"symbol"==typeof e||Fa(e)&&ii(e)==oe}var $a=nn?Nn(nn):function(e){return Fa(e)&&Ia(e.length)&&!!Rt[ii(e)]};var Wa=Do(bi),Va=Do((function(e,t){return e<=t}));function qa(e){if(!e)return[];if(Da(e))return Ua(e)?qn(e):lo(e);if(Ot&&e[Ot])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ot]());var t=Go(e);return(t==Q?Pn:t==re?$n:wl)(e)}function Ka(e){return e?(e=Qa(e))===I||e===-I?(e<0?-1:1)*F:e==e?e:0:0===e?e:0}function Ga(e){var t=Ka(e),n=t%1;return t==t?n?t-n:t:0}function Ya(e){return e?Pr(Ga(e),0,j):0}function Qa(e){if("number"==typeof e)return e;if(Ha(e))return z;if(La(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=La(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=An(e);var n=qe.test(e);return n||Ge.test(e)?Ht(e.slice(2),n?2:8):Ve.test(e)?z:+e}function Ja(e){return co(e,pl(e))}function Za(e){return null==e?"":Hi(e)}var Xa=po((function(e,t){if(rs(t)||Da(t))co(t,dl(t),e);else for(var n in t)ht.call(t,n)&&Lr(e,n,t[n])})),el=po((function(e,t){co(t,pl(t),e)})),tl=po((function(e,t,n,r){co(t,pl(t),e,r)})),nl=po((function(e,t,n,r){co(t,dl(t),e,r)})),rl=zo(Br);var il=Ai((function(e,t){e=it(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&Xo(t[0],t[1],o)&&(i=1);++r<i;)for(var s=t[r],a=pl(s),l=-1,c=a.length;++l<c;){var u=a[l],d=e[u];(d===n||wa(d,ut[u])&&!ht.call(e,u))&&(e[u]=s[u])}return e})),ol=Ai((function(e){return e.push(n,Io),rn(fl,n,e)}));function sl(e,t,r){var i=null==e?n:ni(e,t);return i===n?r:i}function al(e,t){return null!=e&&Yo(e,t,ai)}var ll=_o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),e[t]=n}),Ll(jl)),cl=_o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),ht.call(e,t)?e[t].push(n):e[t]=[n]}),Ho),ul=Ai(ci);function dl(e){return Da(e)?Ar(e):mi(e)}function pl(e){return Da(e)?Ar(e,!0):gi(e)}var hl=po((function(e,t,n){_i(e,t,n)})),fl=po((function(e,t,n,r){_i(e,t,n,r)})),ml=zo((function(e,t){var n={};if(null==e)return n;var r=!1;t=pn(t,(function(t){return t=Zi(t,e),r||(r=t.length>1),t})),co(e,Ro(e),n),r&&(n=Ur(n,d|p|h,Lo));for(var i=t.length;i--;)Wi(n,t[i]);return n}));var gl=zo((function(e,t){return null==e?{}:function(e,t){return ki(e,t,(function(t,n){return al(e,n)}))}(e,t)}));function bl(e,t){if(null==e)return{};var n=pn(Ro(e),(function(e){return[e]}));return t=Ho(t),ki(e,n,(function(e,n){return t(e,n[0])}))}var yl=No(dl),vl=No(pl);function wl(e){return null==e?[]:On(e,dl(e))}var _l=go((function(e,t,n){return t=t.toLowerCase(),e+(n?xl(t):t)}));function xl(e){return Nl(Za(e).toLowerCase())}function El(e){return(e=Za(e))&&e.replace(Qe,zn).replace(Nt,"")}var kl=go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ml=go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Dl=mo("toLowerCase");var Cl=go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Sl=go((function(e,t,n){return e+(n?" ":"")+Nl(t)}));var Al=go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Nl=mo("toUpperCase");function Ol(e,t,r){return e=Za(e),(t=r?n:t)===n?function(e){return Ft.test(e)}(e)?function(e){return e.match(It)||[]}(e):function(e){return e.match(Pe)||[]}(e):e.match(t)||[]}var Tl=Ai((function(e,t){try{return rn(e,n,t)}catch(e){return Na(e)?e:new tt(e)}})),Il=zo((function(e,t){return sn(t,(function(t){t=bs(t),Rr(e,t,ca(e[t],e))})),e}));function Ll(e){return function(){return e}}var Fl=vo(),zl=vo(!0);function jl(e){return e}function Rl(e){return fi("function"==typeof e?e:Ur(e,d))}var Bl=Ai((function(e,t){return function(n){return ci(n,e,t)}})),Pl=Ai((function(e,t){return function(n){return ci(e,n,t)}}));function Ul(e,t,n){var r=dl(t),i=ti(t,r);null!=n||La(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=ti(t,dl(t)));var o=!(La(n)&&"chain"in n&&!n.chain),s=Oa(e);return sn(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=lo(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,hn([this.value()],arguments))})})),e}function Hl(){}var $l=Eo(pn),Wl=Eo(ln),Vl=Eo(gn);function ql(e){return es(e)?kn(bs(e)):function(e){return function(t){return ni(t,e)}}(e)}var Kl=Mo(),Gl=Mo(!0);function Yl(){return[]}function Ql(){return!1}var Jl=xo((function(e,t){return e+t}),0),Zl=So("ceil"),Xl=xo((function(e,t){return e/t}),1),ec=So("floor");var tc=xo((function(e,t){return e*t}),1),nc=So("round"),rc=xo((function(e,t){return e-t}),0);return vr.after=function(e,t){if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){if(--e<1)return t.apply(this,arguments)}},vr.ary=aa,vr.assign=Xa,vr.assignIn=el,vr.assignInWith=tl,vr.assignWith=nl,vr.at=rl,vr.before=la,vr.bind=ca,vr.bindAll=Il,vr.bindKey=ua,vr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ka(e)?e:[e]},vr.chain=qs,vr.chunk=function(e,t,r){t=(r?Xo(e,t,r):t===n)?1:Jn(Ga(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,a=Xe(qt(i/t));o<i;)a[s++]=zi(e,o,o+=t);return a},vr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},vr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Xe(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return hn(ka(n)?lo(n):[n],Qr(t,1))},vr.cond=function(e){var t=null==e?0:e.length,n=Ho();return e=t?pn(e,(function(e){if("function"!=typeof e[1])throw new at(s);return[n(e[0]),e[1]]})):[],Ai((function(n){for(var r=-1;++r<t;){var i=e[r];if(rn(i[0],this,n))return rn(i[1],this,n)}}))},vr.conforms=function(e){return function(e){var t=dl(e);return function(n){return Hr(n,e,t)}}(Ur(e,d))},vr.constant=Ll,vr.countBy=Ys,vr.create=function(e,t){var n=wr(e);return null==t?n:jr(n,t)},vr.curry=function e(t,r,i){var o=Oo(t,v,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},vr.curryRight=function e(t,r,i){var o=Oo(t,w,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},vr.debounce=da,vr.defaults=il,vr.defaultsDeep=ol,vr.defer=pa,vr.delay=ha,vr.difference=ws,vr.differenceBy=_s,vr.differenceWith=xs,vr.drop=function(e,t,r){var i=null==e?0:e.length;return i?zi(e,(t=r||t===n?1:Ga(t))<0?0:t,i):[]},vr.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?zi(e,0,(t=i-(t=r||t===n?1:Ga(t)))<0?0:t):[]},vr.dropRightWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3),!0,!0):[]},vr.dropWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3),!0):[]},vr.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Xo(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=Ga(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:Ga(i))<0&&(i+=o),i=r>i?0:Ya(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},vr.filter=function(e,t){return(ka(e)?cn:Yr)(e,Ho(t,3))},vr.flatMap=function(e,t){return Qr(ra(e,t),1)},vr.flatMapDeep=function(e,t){return Qr(ra(e,t),I)},vr.flatMapDepth=function(e,t,r){return r=r===n?1:Ga(r),Qr(ra(e,t),r)},vr.flatten=Ms,vr.flattenDeep=function(e){return(null==e?0:e.length)?Qr(e,I):[]},vr.flattenDepth=function(e,t){return(null==e?0:e.length)?Qr(e,t=t===n?1:Ga(t)):[]},vr.flip=function(e){return Oo(e,M)},vr.flow=Fl,vr.flowRight=zl,vr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},vr.functions=function(e){return null==e?[]:ti(e,dl(e))},vr.functionsIn=function(e){return null==e?[]:ti(e,pl(e))},vr.groupBy=ea,vr.initial=function(e){return(null==e?0:e.length)?zi(e,0,-1):[]},vr.intersection=Cs,vr.intersectionBy=Ss,vr.intersectionWith=As,vr.invert=ll,vr.invertBy=cl,vr.invokeMap=ta,vr.iteratee=Rl,vr.keyBy=na,vr.keys=dl,vr.keysIn=pl,vr.map=ra,vr.mapKeys=function(e,t){var n={};return t=Ho(t,3),Xr(e,(function(e,r,i){Rr(n,t(e,r,i),e)})),n},vr.mapValues=function(e,t){var n={};return t=Ho(t,3),Xr(e,(function(e,r,i){Rr(n,r,t(e,r,i))})),n},vr.matches=function(e){return vi(Ur(e,d))},vr.matchesProperty=function(e,t){return wi(e,Ur(t,d))},vr.memoize=fa,vr.merge=hl,vr.mergeWith=fl,vr.method=Bl,vr.methodOf=Pl,vr.mixin=Ul,vr.negate=ma,vr.nthArg=function(e){return e=Ga(e),Ai((function(t){return xi(t,e)}))},vr.omit=ml,vr.omitBy=function(e,t){return bl(e,ma(Ho(t)))},vr.once=function(e){return la(2,e)},vr.orderBy=function(e,t,r,i){return null==e?[]:(ka(t)||(t=null==t?[]:[t]),ka(r=i?n:r)||(r=null==r?[]:[r]),Ei(e,t,r))},vr.over=$l,vr.overArgs=ga,vr.overEvery=Wl,vr.overSome=Vl,vr.partial=ba,vr.partialRight=ya,vr.partition=ia,vr.pick=gl,vr.pickBy=bl,vr.property=ql,vr.propertyOf=function(e){return function(t){return null==e?n:ni(e,t)}},vr.pull=Os,vr.pullAll=Ts,vr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mi(e,t,Ho(n,2)):e},vr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Mi(e,t,n,r):e},vr.pullAt=Is,vr.range=Kl,vr.rangeRight=Gl,vr.rearg=va,vr.reject=function(e,t){return(ka(e)?cn:Yr)(e,ma(Ho(t,3)))},vr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Ho(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Di(e,i),n},vr.rest=function(e,t){if("function"!=typeof e)throw new at(s);return Ai(e,t=t===n?t:Ga(t))},vr.reverse=Ls,vr.sampleSize=function(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Ga(t),(ka(e)?Or:Oi)(e,t)},vr.set=function(e,t,n){return null==e?e:Ti(e,t,n)},vr.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Ti(e,t,r,i)},vr.shuffle=function(e){return(ka(e)?Tr:Fi)(e)},vr.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Xo(e,t,r)?(t=0,r=i):(t=null==t?0:Ga(t),r=r===n?i:Ga(r)),zi(e,t,r)):[]},vr.sortBy=oa,vr.sortedUniq=function(e){return e&&e.length?Pi(e):[]},vr.sortedUniqBy=function(e,t){return e&&e.length?Pi(e,Ho(t,2)):[]},vr.split=function(e,t,r){return r&&"number"!=typeof r&&Xo(e,t,r)&&(t=r=n),(r=r===n?j:r>>>0)?(e=Za(e))&&("string"==typeof t||null!=t&&!Ba(t))&&!(t=Hi(t))&&Bn(e)?eo(qn(e),0,r):e.split(t,r):[]},vr.spread=function(e,t){if("function"!=typeof e)throw new at(s);return t=null==t?0:Jn(Ga(t),0),Ai((function(n){var r=n[t],i=eo(n,0,t);return r&&hn(i,r),rn(e,this,i)}))},vr.tail=function(e){var t=null==e?0:e.length;return t?zi(e,1,t):[]},vr.take=function(e,t,r){return e&&e.length?zi(e,0,(t=r||t===n?1:Ga(t))<0?0:t):[]},vr.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?zi(e,(t=i-(t=r||t===n?1:Ga(t)))<0?0:t,i):[]},vr.takeRightWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3),!1,!0):[]},vr.takeWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3)):[]},vr.tap=function(e,t){return t(e),e},vr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new at(s);return La(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),da(e,t,{leading:r,maxWait:t,trailing:i})},vr.thru=Ks,vr.toArray=qa,vr.toPairs=yl,vr.toPairsIn=vl,vr.toPath=function(e){return ka(e)?pn(e,bs):Ha(e)?[e]:lo(gs(Za(e)))},vr.toPlainObject=Ja,vr.transform=function(e,t,n){var r=ka(e),i=r||Sa(e)||$a(e);if(t=Ho(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:La(e)&&Oa(o)?wr(kt(e)):{}}return(i?sn:Xr)(e,(function(e,r,i){return t(n,e,r,i)})),n},vr.unary=function(e){return aa(e,1)},vr.union=Fs,vr.unionBy=zs,vr.unionWith=js,vr.uniq=function(e){return e&&e.length?$i(e):[]},vr.uniqBy=function(e,t){return e&&e.length?$i(e,Ho(t,2)):[]},vr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?$i(e,n,t):[]},vr.unset=function(e,t){return null==e||Wi(e,t)},vr.unzip=Rs,vr.unzipWith=Bs,vr.update=function(e,t,n){return null==e?e:Vi(e,t,Ji(n))},vr.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Vi(e,t,Ji(r),i)},vr.values=wl,vr.valuesIn=function(e){return null==e?[]:On(e,pl(e))},vr.without=Ps,vr.words=Ol,vr.wrap=function(e,t){return ba(Ji(t),e)},vr.xor=Us,vr.xorBy=Hs,vr.xorWith=$s,vr.zip=Ws,vr.zipObject=function(e,t){return Yi(e||[],t||[],Lr)},vr.zipObjectDeep=function(e,t){return Yi(e||[],t||[],Ti)},vr.zipWith=Vs,vr.entries=yl,vr.entriesIn=vl,vr.extend=el,vr.extendWith=tl,Ul(vr,vr),vr.add=Jl,vr.attempt=Tl,vr.camelCase=_l,vr.capitalize=xl,vr.ceil=Zl,vr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=Qa(r))==r?r:0),t!==n&&(t=(t=Qa(t))==t?t:0),Pr(Qa(e),t,r)},vr.clone=function(e){return Ur(e,h)},vr.cloneDeep=function(e){return Ur(e,d|h)},vr.cloneDeepWith=function(e,t){return Ur(e,d|h,t="function"==typeof t?t:n)},vr.cloneWith=function(e,t){return Ur(e,h,t="function"==typeof t?t:n)},vr.conformsTo=function(e,t){return null==t||Hr(e,t,dl(t))},vr.deburr=El,vr.defaultTo=function(e,t){return null==e||e!=e?t:e},vr.divide=Xl,vr.endsWith=function(e,t,r){e=Za(e),t=Hi(t);var i=e.length,o=r=r===n?i:Pr(Ga(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},vr.eq=wa,vr.escape=function(e){return(e=Za(e))&&De.test(e)?e.replace(ke,jn):e},vr.escapeRegExp=function(e){return(e=Za(e))&&Le.test(e)?e.replace(Ie,"\\$&"):e},vr.every=function(e,t,r){var i=ka(e)?ln:Kr;return r&&Xo(e,t,r)&&(t=n),i(e,Ho(t,3))},vr.find=Qs,vr.findIndex=Es,vr.findKey=function(e,t){return yn(e,Ho(t,3),Xr)},vr.findLast=Js,vr.findLastIndex=ks,vr.findLastKey=function(e,t){return yn(e,Ho(t,3),ei)},vr.floor=ec,vr.forEach=Zs,vr.forEachRight=Xs,vr.forIn=function(e,t){return null==e?e:Jr(e,Ho(t,3),pl)},vr.forInRight=function(e,t){return null==e?e:Zr(e,Ho(t,3),pl)},vr.forOwn=function(e,t){return e&&Xr(e,Ho(t,3))},vr.forOwnRight=function(e,t){return e&&ei(e,Ho(t,3))},vr.get=sl,vr.gt=_a,vr.gte=xa,vr.has=function(e,t){return null!=e&&Yo(e,t,si)},vr.hasIn=al,vr.head=Ds,vr.identity=jl,vr.includes=function(e,t,n,r){e=Da(e)?e:wl(e),n=n&&!r?Ga(n):0;var i=e.length;return n<0&&(n=Jn(i+n,0)),Ua(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wn(e,t,n)>-1},vr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ga(n);return i<0&&(i=Jn(r+i,0)),wn(e,t,i)},vr.inRange=function(e,t,r){return t=Ka(t),r===n?(r=t,t=0):r=Ka(r),function(e,t,n){return e>=Zn(t,n)&&e<Jn(t,n)}(e=Qa(e),t,r)},vr.invoke=ul,vr.isArguments=Ea,vr.isArray=ka,vr.isArrayBuffer=Ma,vr.isArrayLike=Da,vr.isArrayLikeObject=Ca,vr.isBoolean=function(e){return!0===e||!1===e||Fa(e)&&ii(e)==W},vr.isBuffer=Sa,vr.isDate=Aa,vr.isElement=function(e){return Fa(e)&&1===e.nodeType&&!Ra(e)},vr.isEmpty=function(e){if(null==e)return!0;if(Da(e)&&(ka(e)||"string"==typeof e||"function"==typeof e.splice||Sa(e)||$a(e)||Ea(e)))return!e.length;var t=Go(e);if(t==Q||t==re)return!e.size;if(rs(e))return!mi(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0},vr.isEqual=function(e,t){return di(e,t)},vr.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?di(e,t,n,r):!!i},vr.isError=Na,vr.isFinite=function(e){return"number"==typeof e&&bn(e)},vr.isFunction=Oa,vr.isInteger=Ta,vr.isLength=Ia,vr.isMap=za,vr.isMatch=function(e,t){return e===t||pi(e,t,Wo(t))},vr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,pi(e,t,Wo(t),r)},vr.isNaN=function(e){return ja(e)&&e!=+e},vr.isNative=function(e){if(ns(e))throw new tt(o);return hi(e)},vr.isNil=function(e){return null==e},vr.isNull=function(e){return null===e},vr.isNumber=ja,vr.isObject=La,vr.isObjectLike=Fa,vr.isPlainObject=Ra,vr.isRegExp=Ba,vr.isSafeInteger=function(e){return Ta(e)&&e>=-L&&e<=L},vr.isSet=Pa,vr.isString=Ua,vr.isSymbol=Ha,vr.isTypedArray=$a,vr.isUndefined=function(e){return e===n},vr.isWeakMap=function(e){return Fa(e)&&Go(e)==ae},vr.isWeakSet=function(e){return Fa(e)&&ii(e)==le},vr.join=function(e,t){return null==e?"":Mn.call(e,t)},vr.kebabCase=kl,vr.last=Ns,vr.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=Ga(r))<0?Jn(i+o,0):Zn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):vn(e,xn,o,!0)},vr.lowerCase=Ml,vr.lowerFirst=Dl,vr.lt=Wa,vr.lte=Va,vr.max=function(e){return e&&e.length?Gr(e,jl,oi):n},vr.maxBy=function(e,t){return e&&e.length?Gr(e,Ho(t,2),oi):n},vr.mean=function(e){return En(e,jl)},vr.meanBy=function(e,t){return En(e,Ho(t,2))},vr.min=function(e){return e&&e.length?Gr(e,jl,bi):n},vr.minBy=function(e,t){return e&&e.length?Gr(e,Ho(t,2),bi):n},vr.stubArray=Yl,vr.stubFalse=Ql,vr.stubObject=function(){return{}},vr.stubString=function(){return""},vr.stubTrue=function(){return!0},vr.multiply=tc,vr.nth=function(e,t){return e&&e.length?xi(e,Ga(t)):n},vr.noConflict=function(){return Vt._===this&&(Vt._=yt),this},vr.noop=Hl,vr.now=sa,vr.pad=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ko(Kt(i),n)+e+ko(qt(i),n)},vr.padEnd=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;return t&&r<t?e+ko(t-r,n):e},vr.padStart=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;return t&&r<t?ko(t-r,n)+e:e},vr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),er(Za(e).replace(Fe,""),t||0)},vr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Xo(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Ka(e),t===n?(t=e,e=0):t=Ka(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=tr();return Zn(e+o*(t-e+Ut("1e-"+((o+"").length-1))),t)}return Ci(e,t)},vr.reduce=function(e,t,n){var r=ka(e)?fn:Dn,i=arguments.length<3;return r(e,Ho(t,4),n,i,Vr)},vr.reduceRight=function(e,t,n){var r=ka(e)?mn:Dn,i=arguments.length<3;return r(e,Ho(t,4),n,i,qr)},vr.repeat=function(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Ga(t),Si(Za(e),t)},vr.replace=function(){var e=arguments,t=Za(e[0]);return e.length<3?t:t.replace(e[1],e[2])},vr.result=function(e,t,r){var i=-1,o=(t=Zi(t,e)).length;for(o||(o=1,e=n);++i<o;){var s=null==e?n:e[bs(t[i])];s===n&&(i=o,s=r),e=Oa(s)?s.call(e):s}return e},vr.round=nc,vr.runInContext=e,vr.sample=function(e){return(ka(e)?Nr:Ni)(e)},vr.size=function(e){if(null==e)return 0;if(Da(e))return Ua(e)?Vn(e):e.length;var t=Go(e);return t==Q||t==re?e.size:mi(e).length},vr.snakeCase=Cl,vr.some=function(e,t,r){var i=ka(e)?gn:ji;return r&&Xo(e,t,r)&&(t=n),i(e,Ho(t,3))},vr.sortedIndex=function(e,t){return Ri(e,t)},vr.sortedIndexBy=function(e,t,n){return Bi(e,t,Ho(n,2))},vr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Ri(e,t);if(r<n&&wa(e[r],t))return r}return-1},vr.sortedLastIndex=function(e,t){return Ri(e,t,!0)},vr.sortedLastIndexBy=function(e,t,n){return Bi(e,t,Ho(n,2),!0)},vr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Ri(e,t,!0)-1;if(wa(e[n],t))return n}return-1},vr.startCase=Sl,vr.startsWith=function(e,t,n){return e=Za(e),n=null==n?0:Pr(Ga(n),0,e.length),t=Hi(t),e.slice(n,n+t.length)==t},vr.subtract=rc,vr.sum=function(e){return e&&e.length?Cn(e,jl):0},vr.sumBy=function(e,t){return e&&e.length?Cn(e,Ho(t,2)):0},vr.template=function(e,t,r){var i=vr.templateSettings;r&&Xo(e,t,r)&&(t=n),e=Za(e),t=tl({},t,i,To);var o,s,l=tl({},t.imports,i.imports,To),c=dl(l),u=On(l,c),d=0,p=t.interpolate||Je,h="__p += '",f=ot((t.escape||Je).source+"|"+p.source+"|"+(p===Ae?$e:Je).source+"|"+(t.evaluate||Je).source+"|$","g"),m="//# sourceURL="+(ht.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jt+"]")+"\n";e.replace(f,(function(t,n,r,i,a,l){return r||(r=i),h+=e.slice(d,l).replace(Ze,Rn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=l+t.length,t})),h+="';\n";var g=ht.call(t,"variable")&&t.variable;if(g){if(Ue.test(g))throw new tt(a)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(we,""):h).replace(_e,"$1").replace(xe,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var b=Tl((function(){return nt(c,m+"return "+h).apply(n,u)}));if(b.source=h,Na(b))throw b;return b},vr.times=function(e,t){if((e=Ga(e))<1||e>L)return[];var n=j,r=Zn(e,j);t=Ho(t),e-=j;for(var i=Sn(r,t);++n<e;)t(n);return i},vr.toFinite=Ka,vr.toInteger=Ga,vr.toLength=Ya,vr.toLower=function(e){return Za(e).toLowerCase()},vr.toNumber=Qa,vr.toSafeInteger=function(e){return e?Pr(Ga(e),-L,L):0===e?e:0},vr.toString=Za,vr.toUpper=function(e){return Za(e).toUpperCase()},vr.trim=function(e,t,r){if((e=Za(e))&&(r||t===n))return An(e);if(!e||!(t=Hi(t)))return e;var i=qn(e),o=qn(t);return eo(i,In(i,o),Ln(i,o)+1).join("")},vr.trimEnd=function(e,t,r){if((e=Za(e))&&(r||t===n))return e.slice(0,Kn(e)+1);if(!e||!(t=Hi(t)))return e;var i=qn(e);return eo(i,0,Ln(i,qn(t))+1).join("")},vr.trimStart=function(e,t,r){if((e=Za(e))&&(r||t===n))return e.replace(Fe,"");if(!e||!(t=Hi(t)))return e;var i=qn(e);return eo(i,In(i,qn(t))).join("")},vr.truncate=function(e,t){var r=D,i=C;if(La(t)){var o="separator"in t?t.separator:o;r="length"in t?Ga(t.length):r,i="omission"in t?Hi(t.omission):i}var s=(e=Za(e)).length;if(Bn(e)){var a=qn(e);s=a.length}if(r>=s)return e;var l=r-Vn(i);if(l<1)return i;var c=a?eo(a,0,l).join(""):e.slice(0,l);if(o===n)return c+i;if(a&&(l+=c.length-l),Ba(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=ot(o.source,Za(We.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(Hi(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+i},vr.unescape=function(e){return(e=Za(e))&&Me.test(e)?e.replace(Ee,Gn):e},vr.uniqueId=function(e){var t=++ft;return Za(e)+t},vr.upperCase=Al,vr.upperFirst=Nl,vr.each=Zs,vr.eachRight=Xs,vr.first=Ds,Ul(vr,function(){var e={};return Xr(vr,(function(t,n){ht.call(vr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),vr.VERSION=r,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){vr[e].placeholder=vr})),sn(["drop","take"],(function(e,t){Er.prototype[e]=function(r){r=r===n?1:Jn(Ga(r),0);var i=this.__filtered__&&!t?new Er(this):this.clone();return i.__filtered__?i.__takeCount__=Zn(r,i.__takeCount__):i.__views__.push({size:Zn(r,j),type:e+(i.__dir__<0?"Right":"")}),i},Er.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),sn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==N||n==T;Er.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ho(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),sn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Er.prototype[e]=function(){return this[n](1).value()[0]}})),sn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Er.prototype[e]=function(){return this.__filtered__?new Er(this):this[n](1)}})),Er.prototype.compact=function(){return this.filter(jl)},Er.prototype.find=function(e){return this.filter(e).head()},Er.prototype.findLast=function(e){return this.reverse().find(e)},Er.prototype.invokeMap=Ai((function(e,t){return"function"==typeof e?new Er(this):this.map((function(n){return ci(n,e,t)}))})),Er.prototype.reject=function(e){return this.filter(ma(Ho(e)))},Er.prototype.slice=function(e,t){e=Ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Er(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=Ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},Er.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Er.prototype.toArray=function(){return this.take(j)},Xr(Er.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=vr[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(vr.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof Er,c=a[0],u=l||ka(t),d=function(e){var t=o.apply(vr,hn([e],a));return i&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=s&&!p,m=l&&!h;if(!s&&u){t=m?t:new Er(this);var g=e.apply(t,a);return g.__actions__.push({func:Ks,args:[d],thisArg:n}),new xr(g,p)}return f&&m?e.apply(this,a):(g=this.thru(d),f?i?g.value()[0]:g.value():g)})})),sn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=lt[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);vr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ka(i)?i:[],e)}return this[n]((function(n){return t.apply(ka(n)?n:[],e)}))}})),Xr(Er.prototype,(function(e,t){var n=vr[t];if(n){var r=n.name+"";ht.call(ur,r)||(ur[r]=[]),ur[r].push({name:t,func:n})}})),ur[wo(n,b).name]=[{name:"wrapper",func:n}],Er.prototype.clone=function(){var e=new Er(this.__wrapped__);return e.__actions__=lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=lo(this.__views__),e},Er.prototype.reverse=function(){if(this.__filtered__){var e=new Er(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Er.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ka(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Zn(t,e+s);break;case"takeRight":e=Jn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,c=r?a:s-1,u=this.__iteratees__,d=u.length,p=0,h=Zn(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return Ki(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var m=-1,g=e[c+=t];++m<d;){var b=u[m],y=b.iteratee,v=b.type,w=y(g);if(v==O)g=w;else if(!w){if(v==N)continue e;break e}}f[p++]=g}return f},vr.prototype.at=Gs,vr.prototype.chain=function(){return qs(this)},vr.prototype.commit=function(){return new xr(this.value(),this.__chain__)},vr.prototype.next=function(){this.__values__===n&&(this.__values__=qa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},vr.prototype.plant=function(e){for(var t,r=this;r instanceof _r;){var i=vs(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},vr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Er){var t=e;return this.__actions__.length&&(t=new Er(this)),(t=t.reverse()).__actions__.push({func:Ks,args:[Ls],thisArg:n}),new xr(t,this.__chain__)}return this.thru(Ls)},vr.prototype.toJSON=vr.prototype.valueOf=vr.prototype.value=function(){return Ki(this.__wrapped__,this.__actions__)},vr.prototype.first=vr.prototype.head,Ot&&(vr.prototype[Ot]=function(){return this}),vr}();Kt?((Kt.exports=Yn)._=Yn,qt._=Yn):Vt._=Yn}).call(Tt)}($I,$I.exports);const WI=()=>document.documentElement.style.setProperty("--focus-background-color","rgba(234, 243, 252, 0.5)"),VI=()=>document.documentElement.style.setProperty("--focus-background-color","transparent"),qI={onMouseEnter:WI,onMouseLeave:VI},KI=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?qI:{}};function GI(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var YI="undefined"!=typeof window&&"undefined"!=typeof document;function QI(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function JI(){return YI&&document.createElement("div")}function ZI(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!ZI(e[n],t[n]))return!1}return!0}return!1}function XI(e){var t=[];return e.forEach((function(e){t.find((function(t){return ZI(e,t)}))||t.push(e)})),t}var eL=YI?u:o;function tL(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var nL={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||tL(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&tL(t,"remove",e.props.className)},onAfterUpdate:r}}};function rL(e){return function(i){var o=i.children,s=i.content,a=i.visible,l=i.singleton,u=i.render,d=i.reference,p=i.disabled,h=void 0!==p&&p,f=i.ignoreAttributes,m=void 0===f||f;i.__source,i.__self;var g,b,y=GI(i,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),v=void 0!==a,w=void 0!==l,_=n(!1),x=_[0],E=_[1],k=n({}),M=k[0],D=k[1],C=n(),S=C[0],A=C[1],N=(g=function(){return{container:JI(),renders:1}},(b=r()).current||(b.current="function"==typeof g?g():g),b.current),O=Object.assign({ignoreAttributes:m},y,{content:N.container});v&&(O.trigger="manual",O.hideOnClick=!1),w&&(h=!0);var T=O,I=O.plugins||[];u&&(T=Object.assign({},O,{plugins:w&&null!=l.data?[].concat(I,[{fn:function(){return{onTrigger:function(e,t){var n=l.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,A(n.content)}}}}]):I,render:function(){return{popper:N.container}}}));var L=[d].concat(o?[o.type]:[]);return eL((function(){var t=d;d&&d.hasOwnProperty("current")&&(t=d.current);var n=e(t||N.ref||JI(),Object.assign({},T,{plugins:[nL].concat(O.plugins||[])}));return N.instance=n,h&&n.disable(),a&&n.show(),w&&l.hook({instance:n,content:s,props:T,setSingletonContent:A}),E(!0),function(){n.destroy(),null==l||l.cleanup(n)}}),L),eL((function(){var e;if(1!==N.renders){var t,n,r,i,o=N.instance;o.setProps((t=o.props,n=T,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:XI([].concat((null==(r=t.popperOptions)?void 0:r.modifiers)||[],(null==(i=n.popperOptions)?void 0:i.modifiers)||[]))})}))),null==(e=o.popperInstance)||e.forceUpdate(),h?o.disable():o.enable(),v&&(a?o.show():o.hide()),w&&l.hook({instance:o,content:s,props:T,setSingletonContent:A})}else N.renders++})),eL((function(){var e;if(u){var t=N.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;M.placement===n.placement&&M.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&M.escaped===(null==r?void 0:r.hasPopperEscaped)||D({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[M.placement,M.referenceHidden,M.escaped].concat(L)),t.createElement(t.Fragment,null,o?c(o,{ref:function(e){N.ref=e,QI(o.ref,e)}}):null,x&&me(u?u(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(M),S,N.instance):s,N.container))}}var iL=function(e,n){return l((function(r,i){var o=r.children,s=GI(r,["children"]);return t.createElement(e,Object.assign({},n,s),o?c(o,{ref:function(e){QI(i,e),QI(o.ref,e)}}):null)}))},oL=iL(rL(yM));class sL extends t.Component{constructor(e){super(e),Hp(this,"keydownHandler",(e=>{const t={Enter:this.enterHandler,ArrowUp:this.upHandler,ArrowDown:this.downHandler,ArrowLeft:this.leftArrowHandler,ArrowRight:this.rightArrowHandler};e.key in t&&t[e.key](e)})),Hp(this,"selectItem",(e=>{const{items:t,editor:n,range:r}=this.props,i=t[e],o=i&&i.command,s=hr(i.items);o&&s&&i.command({editor:n,range:r})})),Hp(this,"upHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+e.length-1)%e.length})})),Hp(this,"downHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+1)%e.length})})),Hp(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),Hp(this,"leftArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t}=this.props;e>0&&t(e-1)})),Hp(this,"rightArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t,items:n}=this.props,{selectedIndex:r}=this.state,i=n[r];i&&!hr(i.items)&&t(e+1)})),this.state={selectedIndex:0},this.menuRef=t.createRef()}componentDidMount(){const{menuIndex:e,activeMenuIndex:t}=this.props;e===t&&document.addEventListener("keydown",this.keydownHandler)}componentWillUnmount(){document.removeEventListener("keydown",this.keydownHandler)}componentDidUpdate(e){const{items:t,menuIndex:n,activeMenuIndex:r}=this.props,i=n===r;t!==e.items&&this.setState({selectedIndex:0}),PT({wrapperRef:this.menuRef,index:this.state.selectedIndex}),i?document.addEventListener("keydown",this.keydownHandler):document.removeEventListener("keydown",this.keydownHandler)}render(){const{items:e,menuIndex:n,activeMenuIndex:r}=this.props,{selectedIndex:i}=this.state,o=n===r;return t.createElement("div",{className:"neeto-editor-slash-commands__wrapper",ref:this.menuRef},e.map(((e,r)=>{const s=hr(e.items),a=t.createElement(aL,{index:r,item:e,key:e.title,selectItem:()=>s&&this.selectItem(r),selectedIndex:o?i:-1,onHover:()=>this.setState({selectedIndex:r})});return s?a:t.createElement(oL,{interactive:!0,key:e.title,placement:"right",visible:i===r,content:t.createElement(sL,Pf({},this.props,{items:e.items,menuIndex:n+1})),onCreate:e=>{let{popper:t}=e;return t.style.width="max-content"},onHide:()=>{this.isSubmenuOpened=!1},onShow:()=>{this.isSubmenuOpened=!0}},a)})))}}const aL=l(((e,n)=>{let{item:r,selectedIndex:i,index:o,selectItem:s,onHover:a}=e;const{Icon:l}=r;return t.createElement("div",{"data-cy":`neeto-editor-command-list-item-${o}`,ref:n,className:Lr("neeto-editor-slash-commands__item",{active:o===i}),onClick:s,onMouseEnter:a},l&&t.createElement(l,{size:20}),t.createElement("div",{className:"neeto-editor-slash-commands__item-content"},t.createElement("h5",null,r.title),t.createElement("p",null,r.description)))}));class lL extends t.Component{constructor(){super(...arguments),Hp(this,"state",{activeMenuIndex:0}),Hp(this,"onKeyDown",(e=>{let{event:t}=e;return["Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)})),Hp(this,"setActiveMenuIndex",(e=>this.setState({activeMenuIndex:e})))}render(){return t.createElement(sL,Pf({},this.props,{activeMenuIndex:this.state.activeMenuIndex,items:this.props.items,menuIndex:0,setActiveMenuIndex:this.setActiveMenuIndex}))}}const cL=[{optionName:Fr.PARAGRAPH,title:"Paragraph",description:"Add a plain text block.",Icon:R,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("paragraph").run()}},{optionName:Fr.H1,title:"H1",description:"Add a big heading.",Icon:B,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:1}).run()}},{optionName:Fr.H2,title:"H2",description:"Add a sub-heading.",Icon:P,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:2}).run()}},{optionName:Fr.H3,title:"H3",description:"Add a sub-heading of level 3.",Icon:U,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:3}).run()}},{optionName:Fr.H4,title:"H4",description:"Add a sub-heading of level 4.",Icon:U,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:4}).run()}},{optionName:Fr.H5,title:"H5",description:"Add a sub-heading of level 5.",Icon:U,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:5}).run()}},{optionName:Fr.H6,title:"H6",description:"Add a sub-heading of level 6.",Icon:U,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:6}).run()}},{optionName:Fr.LIST_ORDERED,title:"Numbered list",description:"Add a list with numbering.",Icon:H,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleOrderedList().run()}},{optionName:Fr.LIST_BULLETS,title:"Bulleted list",description:"Add a list with bullets.",Icon:$,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBulletList().run()}},{optionName:Fr.IMAGE_UPLOAD,title:"Image",description:"Add an image.",Icon:W,command:h},{optionName:Fr.VIDEO_UPLOAD,title:"Video",description:"Add a video.",Icon:V,command:h},{optionName:Fr.BLOCKQUOTE,title:"Blockquote",description:"Add a quote.",Icon:q,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBlockquote().run()}},{optionName:Fr.CODE_BLOCK,title:"Code block",description:"Add a code block with syntax highlighting.",Icon:K,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleCodeBlock().run()}},{optionName:Fr.EMOJI,title:"Emoji",description:"Add an emoji.",Icon:G,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).insertContent("::").run()}},{optionName:Fr.DIVIDER,title:"Divider",description:"Add an horizontal line to separate sections.",Icon:Y,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setHorizontalRule().run()}},{optionName:Fr.VIDEO_EMBED,title:"Embed Youtube/Loom/Vimeo",description:"Embed a video from major services.",Icon:Q,command:h},{optionName:Fr.PASTE_UNFORMATTED,title:"Paste Unformatted",description:"Paste by removing all styles.",Icon:J,command:e=>{let{editor:t,range:n}=e;return t.chain().focus().deleteRange(n).pasteUnformatted().run()}}],uL={title:"No results",command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).run()}},dL=e=>{let{editor:t,range:n}=e;const r=prompt("Please enter Youtube/Loom/Vimeo embed URL."),i=!!r&&(hL(r)||mL(r)||fL(r));i?t.chain().focus().deleteRange(n).setExternalVideo({src:i}).run():t.chain().focus().deleteRange(n).insertContent("#invalid").run()},pL=e=>{let{options:t,addonCommands:n,setMediaUploader:r}=e;const i=cL.map((e=>e.optionName===Fr.IMAGE_UPLOAD?pe("command",(e=>t=>{let{editor:n,range:r}=t;e(pe("image",!0)),n.chain().focus().deleteRange(r).run()})(r),e):e.optionName===Fr.VIDEO_UPLOAD?pe("command",(e=>t=>{let{editor:n,range:r}=t;e(pe("video",!0)),n.chain().focus().deleteRange(r).run()})(r),e):e.optionName===Fr.VIDEO_EMBED?pe("command",dL,e):e));return[...i.filter((e=>{let{optionName:n}=e;return t.includes(n)})),...n]},hL=e=>{const t=e.match(Br);return t&&`https://www.youtube.com/embed/${t[5]}`},fL=e=>{const t=e.match(Pr);return t&&`https://player.vimeo.com/video/${t[4]}?h=${t[5]}`},mL=e=>{const t=e.match(Ur);return t&&`https://www.loom.com/embed/${t[4]}?t=${t[5]||""}`},gL=new hy("commands");var bL=e=>{let{addonCommands:t,options:n,setMediaUploader:r}=e;const i=pL({options:n,addonCommands:t,setMediaUploader:r});return bx.create({name:"slash-commands",addOptions:()=>({HTMLAttributes:{class:"commands"},suggestion:{char:"/",startOfLine:!1,pluginKey:gL,command:e=>{let{editor:t,range:n,props:r}=e;r.command({editor:t,range:n})},items:e=>{let{query:t}=e;const n=i.filter((e=>{let{title:n}=e;return n.toLowerCase().includes(t.toLowerCase())}));return $I.exports.isEmpty(n)?[uL]:n},render:()=>{let e,t;return{onStart:n=>{e=new OM(lL,{props:n,editor:n.editor}),t=yM("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",arrow:!1,zIndex:99999,role:"dropdown",theme:"neeto-editor-slash-menu"}),WI()},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(t){var n;return null===(n=e.ref)||void 0===n?void 0:n.onKeyDown(t)},onExit(){t&&t[0].destroy(),e&&e.destroy(),VI()}}}}}),addProseMirrorPlugins(){return[tN({editor:this.editor,...this.options.suggestion})]}})};const yL=e=>{let{onClickVariable:n,variables:r}=e;const i=function(){const e=[],t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{const{category_key:r,category_label:i,variables:o}=n;if(r&&o){const e=o.map(pe("category_key",r));t.push({label:i,variables:e})}else e.push(n)})),$I.exports.isEmpty(e)||t.push({label:$I.exports.isEmpty(t)?null:"Others",variables:e}),t}(r);return g(r)?null:t.createElement("div",{className:"neeto-editor-variables-list"},i.map(((e,r)=>{let{label:i,variables:o}=e;return t.createElement(vL,{index:r,key:r,title:i,variables:o,onClickItem:n})})))},vL=e=>{let{index:n,title:r,variables:i,onClickItem:o}=e;return t.createElement("div",{className:"neeto-editor-variables-block","data-cy":`neeto-editor-variable-option-category-${n}`},r&&t.createElement("h6",null,r),t.createElement("div",{className:"neeto-editor-variables-row"},i.map((e=>t.createElement("button",{className:"neeto-editor-variable","data-cy":`neeto-editor-variable-option-item-${e.label}--${e.value}`,key:`${e.label}--${e.value}`,type:"button",onClick:()=>o(e)},e.label)))))},wL=e=>{let{items:n,command:r}=e;return t.createElement("div",{className:"neeto-editor-variables-suggestion"},t.createElement(yL,{variables:n,onClickVariable:e=>{const{category_key:t,key:n}=e,i=t?`${t}.${n}`:n;r({label:i,id:i})}}))},_L=new hy("variables"),xL=lE.create({name:"variable",addOptions:()=>({HTMLAttributes:{class:"neeto-editor-variable"},charOpen:"{{",charClose:"}}",renderLabel(e){let{options:t,node:n}=e;return`${t.charOpen}${n.attrs.label||n.attrs.id}${t.charClose}`},suggestion:{}}),group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML:()=>[{tag:"span[data-variable]"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;return["span",X_({"data-variable":""},this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:t})]},renderText(e){let{node:t}=e;return this.options.renderLabel({options:this.options,node:t})},addCommands(){return{setVariable:e=>t=>{let{chain:n}=t;n().focus().insertContent([{type:this.name,attrs:e},{type:"text",text:" "}]).run()}}},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command((e=>{let{tr:t,state:n}=e,r=!1;const{selection:i}=n,{empty:o,anchor:s}=i;return!!o&&(n.doc.nodesBetween(s-1,s,((e,n)=>{if(e.type.name===this.name)return r=!0,t.insertText("",n,n+e.nodeSize),!1})),r)}))}},addProseMirrorPlugins(){return[tN({editor:this.editor,...this.options.suggestion})]}}),EL={char:"{{",startOfLine:!1,pluginKey:_L,command:e=>{let{editor:t,range:n,props:r}=e;t.chain().focus().deleteRange(n).setVariable(r).run()},items:()=>[],render:()=>{let e,t;return{onStart:n=>{e=new OM(wL,{props:n,editor:n.editor}),t=yM("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onExit(){t[0].destroy(),e.destroy()}}}};var kL=e=>{let{suggestion:t={}}=e;return xL.configure({suggestion:{...EL,...t}})};const ML=e=>{var n;let{node:i,editor:o,getPos:s,updateAttributes:a,deleteNode:l}=e;const c=r(null),{alt:u,src:d,vidheight:p,vidwidth:h,align:f}=i.attrs,{view:m}=o;let b=p,y=h;const v=c.current?null===(n=c.current.querySelector("figcaption>div"))||void 0===n?void 0:n.textContent:u;return t.createElement(NM,{className:`neeto-editor__image-wrapper neeto-editor__image--${f}`},t.createElement("figure",{ref:c},t.createElement(NT,{align:f,deleteNode:l,updateAttributes:a}),t.createElement(AT,{lockAspectRatio:!0,className:"neeto-editor__image",size:{height:b,width:y},onResizeStop:(e,t,n)=>{b=n.offsetHeight,y=n.offsetWidth,m.dispatch(m.state.tr.setNodeMarkup(s(),void 0,{...i.attrs,vidheight:b,vidwidth:y,height:b,width:y})),o.commands.focus()}},t.createElement("video",Pf({controls:!0},i.attrs,{alt:v,preload:"metadata",src:d}))),t.createElement(AM,{as:"figcaption",className:Lr({"is-empty":g(v)})})))},DL=lE.create({name:"video",addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",draggable:!0,isolating:!0,addAttributes:()=>({src:{default:null,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("src")}},alt:{default:"",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("alt")}},vidheight:{default:288,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidheight")}},vidwidth:{default:"fit-content",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidwidth")}},align:{default:"left",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("align")}}}),parseHTML:()=>[{tag:"figure[data-video]",getAttrs:e=>"normal"!==e.style.fontWeight&&null,contentElement:"figcaption"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;const{align:r,src:i,vidheight:o,vidwidth:s}=t.attrs,a={class:"neeto-editor__image",style:`height:${o}px;width:${s}px;`};return["a",{href:i,target:"_blank",rel:"noopener noreferrer",class:`neeto-editor__image-wrapper neeto-editor__image--${r}`},["figure",X_(this.options.HTMLAttributes,{"data-video":""}),["div",a,["video",X_(n,{preload:"metadata",controls:!0,draggable:!1,contenteditable:!1})]],["figcaption",0]]]},addNodeView:()=>IM(ML),addCommands(){return{setVideo:e=>{let{caption:t,...n}=e;return e=>{let{chain:r}=e;return r().insertContent({type:this.name,attrs:n,content:t?[{type:"text",text:t}]:[]}).command((e=>{let{tr:t,commands:n}=e;const{doc:r,selection:i}=t,o=r.resolve(i.to).end();return n.setTextSelection(o)})).run()}}}}}),CL=e=>{var r;let{uppy:i}=e;const[s,a]=n(0);o((()=>{i.on("upload-progress",((e,t)=>{let{progress:n}=t;return a(n)}))}),[i]);const l=`${s}%`;return t.createElement("div",{className:"ne-media-uploader__progress"},t.createElement("p",{className:"ne-media-uploader__progress-title"},"Uploading..."),t.createElement("p",{className:"ne-media-uploader__progress-file"},null===(r=i.getFiles()[0])||void 0===r?void 0:r.name),t.createElement("div",{className:"neeto-editor-progress-bar__wrapper","data-cy":"neeto-editor-image-upload-progress-bar"},t.createElement("div",{className:"neeto-editor-progress-bar__percent"},t.createElement("p",null,l),t.createElement(_,{icon:F,size:"small",style:"text",onClick:()=>i.cancelAll()})),t.createElement("div",{className:"neeto-editor-progress-bar__indicator"},t.createElement("div",{className:"neeto-editor-progress-bar__indicator-inner",style:{width:l}}))))},SL=e=>{let{isImage:n,endpoint:r,onSuccess:i}=e;const o=n?Fp:zp,{uppy:s,isUploading:a}=If({endpoint:r,uppyConfig:o,onSuccess:i});return a?t.createElement(CL,{uppy:s}):t.createElement("div",{className:"ne-media-uploader__dnd-wrapper"},t.createElement(Zd,{className:"ne-media-uploader__dnd","data-cy":"neeto-editor-media-local-uploader",uppy:s,locale:{strings:{dropHereOr:"Drop your file(s) here or %{browse}",browse:"Browse"}},note:`Max. File Size: ${Bp(o.restrictions.maxFileSize)}`}))},AL=e=>{let{isImage:r,url:i,editor:o,onClose:s,alt:a="",setMediaUrl:l}=e;const[c,u]=n(a||""),[d,p]=n(!1),h=()=>{r?o.chain().focus().setFigure({src:i,caption:c,alt:c}).run():o.chain().focus().setVideo({src:i,caption:c,alt:c}).run(),s()};return t.createElement("div",{className:"ne-media-editor",onKeyDown:e=>{"Enter"===e.key&&h()}},t.createElement(_,{icon:Z,iconPosition:"left",label:"back",size:"small",style:"text",onClick:()=>l("")}),d?t.createElement("div",{className:"ne-media-editor__error"},t.createElement("h2",null,"Something Went Wrong!"),t.createElement("p",null,"The selected media cannot be displayed. Please try again.")):t.createElement(t.Fragment,null,r?t.createElement("img",{loading:"lazy",src:i,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}):t.createElement("video",{src:i,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}),t.createElement(w,{autoFocus:!0,label:"Caption",placeholder:"Enter a caption",value:c,onChange:e=>u(e.target.value)})),t.createElement("div",{className:"ne-media-editor__footer"},t.createElement(_,{disabled:d,label:"Done",onClick:h}),t.createElement(_,{label:"Cancel",style:"text",onClick:s})))};var NL={},OL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.create(null);function n(e,n){return t[e]=t[e]||[],t[e].push(n),this}function r(e,t){return t._once=!0,n(e,t),this}function i(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t[e].splice(t[e].indexOf(n),1):delete t[e],this}function o(e){for(var n=this,r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];var a=t[e]&&t[e].slice();return a&&a.forEach((function(t){t._once&&i(e,t),t.apply(n,o)})),this}return OL({},e,{on:n,once:r,off:i,emit:o})},IL=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,d=void 0,p=void 0,h=void 0,f=0===e.packed.indexOf("data-")?e.packed:"data-"+e.packed,m=e.sizes.slice().reverse(),g=!1!==e.position,b=e.container.nodeType?e.container:document.querySelector(e.container),y={all:function(){return E(b.children)},new:function(){return E(b.children).filter((function(e){return!e.hasAttribute(""+f)}))}},v=[D,C,S],w=[A,N,O,T],_=TL({pack:F,update:z,resize:j});return _;function x(e){e.forEach((function(e){return e()}))}function E(e){return Array.prototype.slice.call(e)}function k(e){return Array.apply(null,Array(e)).map((function(){return 0}))}function M(){return m.map((function(e){return e.mq&&window.matchMedia("(min-width: "+e.mq+")").matches})).indexOf(!0)}function D(){r=M()}function C(){i=-1===r?m[m.length-1]:m[r]}function S(){s=k(i.columns)}function A(){d=y[t?"new":"all"]()}function N(){0!==d.length&&(p=d.map((function(e){return e.clientWidth})),h=d.map((function(e){return e.clientHeight})))}function O(){d.forEach((function(e,t){o=s.indexOf(Math.min.apply(Math,s)),e.style.position="absolute",a=s[o]+"px",l=o*p[t]+o*i.gutter+"px",g?(e.style.top=a,e.style.left=l):e.style.transform="translate3d("+l+", "+a+", 0)",e.setAttribute(f,""),c=p[t],u=h[t],c&&u&&(s[o]+=u+i.gutter)}))}function T(){b.style.position="relative",b.style.width=i.columns*c+(i.columns-1)*i.gutter+"px",b.style.height=Math.max.apply(Math,s)-i.gutter+"px"}function I(){n||(window.requestAnimationFrame(L),n=!0)}function L(){r!==M()&&(F(),_.emit("resize",i)),n=!1}function F(){return t=!1,x(v.concat(w)),_.emit("pack")}function z(){return t=!0,x(w),_.emit("update")}function j(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",I),_}}}),LL=Lt(IL),FL={exports:{}},zL={exports:{}};!function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=t,o=a(i),s=a(od.exports);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),r=void 0;if(this.props.useWindow){var i=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:i.scrollTop;r=this.props.isReverse?o:this.calculateOffset(e,o)}else r=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;r<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,r=t.element,i=t.hasMore;t.initialLoad;var s=t.isReverse,a=t.loader;t.loadMore,t.pageStart;var l=t.ref;t.threshold,t.useCapture,t.useWindow,t.getScrollParent;var c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return i&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(r,c,u)}}]),t}(i.Component);l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},n.default=l,e.exports=n["default"]}(zL,zL.exports),FL.exports=zL.exports,Object.defineProperty(NL,"__esModule",{value:!0});var jL,RL,BL=NL.default=void 0,PL=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),UL=t,HL=qL(UL),$L=qL(od.exports),WL=qL(LL),VL=qL(FL.exports);function qL(e){return e&&e.__esModule?e:{default:e}}function KL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GL(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var YL=(RL=jL=function(e){function t(){var e,n,r;KL(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=GL(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.setContainerRef=function(e){r.masonryContainer=e},r.forcePack=function(){r.masonryContainer&&r.state.instance.pack()},r.forceUpdate=function(){r.masonryContainer&&r.state.instance.update()},r.createNewInstance=function(){var e=r.props,t=e.packed,n=e.sizes,i=e.children,o=e.position,s=(0,WL.default)({container:r.masonryContainer,packed:t,sizes:n,position:o});s.resize(!0),i.length>0&&s.pack(),r.setState((function(){return{instance:s}}))},GL(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,UL.Component),PL(t,[{key:"componentDidMount",value:function(){this.createNewInstance()}},{key:"componentDidUpdate",value:function(e){var t=this.props.children,n=this.state.instance;if(0!==e.children.length||0!==t.length)return 0===e.children.length&&t.length>0?n.pack():e.children.length!==t.length?this.props.pack?n.pack():n.update():void 0}},{key:"componentWillUnmount",value:function(){this.state&&this.state.instance.resize(!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.style;e.pack,e.packed,e.position,e.sizes;var i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className","style","pack","packed","position","sizes"]);return HL.default.createElement(VL.default,i,HL.default.createElement("div",{ref:this.setContainerRef,className:n,style:r},t))}}]),t}(),jL.propTypes={children:$L.default.arrayOf($L.default.element).isRequired,className:$L.default.string,initialLoad:$L.default.bool,pack:$L.default.bool,packed:$L.default.string,position:$L.default.bool,sizes:$L.default.array,style:$L.default.object},jL.defaultProps={className:"",initialLoad:!0,pack:!1,packed:"data-packed",position:!0,sizes:[{columns:1,gutter:20},{mq:"768px",columns:2,gutter:20},{mq:"1024px",columns:3,gutter:20}],style:{}},RL);BL=NL.default=YL;const QL=e=>{let{onSubmit:i,unsplashApiKey:s}=e;const a=r(null),[l,c]=n(""),[u,d]=n(!1),[p,h]=n([]),[f,m]=n(1),[g,b]=n(!0),[y,v]=n(!1),_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[r,i]=n(e);return o((()=>{const n=setTimeout((()=>{i(e)}),t);return()=>{clearTimeout(n)}}),[e]),r}(l||"latest");o((()=>{x(1)}),[_]);const x=async e=>{try{v(!0),d(!1);const t=await(e=>{let{pageNo:t,query:n,apiKey:r}=e;return de.get(zr,{headers:{Authorization:`Client-ID ${r}`},params:{page:t,per_page:30,order_by:"popular",query:n}})})({page:e,query:_,apiKey:s}),{data:{results:n,total_pages:r}}=t;h(1===e?n:[...p,...n]),m(e+1),b(e<r)}catch{d(!0)}finally{v(!1)}},E=t.createElement("div",{className:"neeto-editor-unsplash-gallery__loader"},t.createElement(M,null));return t.createElement("div",{className:"neeto-editor-unsplash-wrapper"},t.createElement(w,{autoFocus:!0,className:"neeto-editor-unsplash-search","data-cy":"neeto-editor-unsplash-image-picker-search-input",name:"text",placeholder:"Search Unsplash",value:l,onChange:e=>{let{target:{value:t}}=e;c(t)}}),u&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-error"},"Something went wrong! Please try again later."),!u&&!y&&hr(p)&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-no-results-error"},"No results"),!u&&t.createElement("div",{className:"neeto-editor-unsplash-container"},t.createElement(BL,{pack:!0,position:!0,className:"neeto-editor-unsplash-gallery",hasMore:g,loadMore:()=>{!y&&g&&f>1&&x(f)},loader:E,ref:a,style:{width:"100%"},useWindow:!1,sizes:[{columns:3,gutter:0},{mq:"768px",columns:3,gutter:0},{mq:"1024px",columns:3,gutter:0}]},p&&p.map(((e,n)=>t.createElement("div",{className:"neeto-editor-unsplash-gallery__item","data-cy":`neeto-editor-unsplash-image-picker-result-${n}`,key:n},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-placeholder",style:{paddingBottom:`${e.height/e.width*100}%`}},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-inner",id:`unsplashImage${n}`},t.createElement("img",{src:e.urls.regular,onClick:()=>i(e.urls.small)}),t.createElement("a",{href:`https://unsplash.com/@${e.user.username}`,rel:"noreferrer",target:"_blank"},e.user.name," "))))))),!g&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text"},"End of results")))},JL=e=>{let{buttonLabel:r="Submit",placeholder:i,onSubmit:o,className:s}=e;const[a,l]=n(""),[c,u]=n("");return t.createElement("div",{className:Lr("neeto-editor-url-form__wrapper",{[s]:s})},t.createElement(w,{autoFocus:!0,"data-cy":"neeto-editor-media-upload-url-input",error:c,name:"url",placeholder:i,value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)},onFocus:()=>u("")}),t.createElement(_,{"data-cy":"neeto-editor-media-upload-url-submit",disabled:!a,label:r,onClick:e=>{e.preventDefault(),Rr.test(a)?o(a):u("Please enter a valid url")}}))},ZL=e=>{let{mediaUploader:r,onClose:i,editor:o,uploadEndpoint:s,unsplashApiKey:a}=e;const[l,c]=n("local"),[u,d]=n(""),p=r.image||r.video;let h=a?Rp:Rp.slice(0,2);r.video&&(h=[]);const f=()=>{i(),d(""),c("local")};return t.createElement(S,{closeButton:!1,isOpen:p,onClose:f},t.createElement("div",{className:"ne-media-uploader"},!hr(h)&&t.createElement(A,null,h.map((e=>{let{key:n,title:r}=e;return t.createElement(A.Item,{active:l===n,key:n,onClick:()=>{d(""),c(n)}},r)}))),t.createElement("div",{className:"ne-media-uploader__content"},u?t.createElement(AL,{editor:o,isImage:r.image,setMediaUrl:d,url:u,onClose:f}):t.createElement(t.Fragment,null,"local"===l&&t.createElement(SL,{endpoint:s,isImage:r.image,onSuccess:d}),"link"===l&&t.createElement(JL,{placeholder:"Paste the link here...",buttonLabel:r.image?"Upload image":"Upload video",onSubmit:d}),"unsplash"===l&&t.createElement(QL,{unsplashApiKey:a,onSubmit:d})))))};var XL=[],eF=[];function tF(e,t){if(e&&"undefined"!=typeof document){var n,r=!0===t.prepend?"prepend":"append",i=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(i){var s=XL.indexOf(o);-1===s&&(s=XL.push(o)-1,eF[s]={}),n=eF[s]&&eF[s][r]?eF[s][r]:eF[s][r]=a()}else n=a();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function a(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),i=0;i<n.length;i++)e.setAttribute(n[i],t.attributes[n[i]]);var s="prepend"===r?"afterbegin":"beforeend";return o.insertAdjacentElement(s,e),e}}tF(".tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}",{});const nF=e=>{let{editor:r,handleClose:i,handleAnimateInvalidLink:s}=e;const[a,l]=n("");o((()=>{l(r.getAttributes("link").href||"")}),[]);const c=()=>{Rr.test(a)?(r.chain().focus().setLink({href:a}).run(),i()):hr(a)?(r.chain().focus().unsetLink().run(),i()):(l(""),s())};return t.createElement("div",{className:"neeto-editor-bubble-menu__link",onKeyDown:e=>{"Escape"===e.key?i():"Enter"===e.key&&c()}},t.createElement("input",{autoFocus:!0,className:"neeto-editor-bubble-menu-link__input","data-cy":"neeto-editor-link-input",name:"url",placeholder:"Paste or type a link...",value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)}}),t.createElement(_,{"data-cy":"neeto-editor-link-cancel-button",icon:F,size:"small",style:"icon",onClick:()=>{a?(l(""),r.chain().focus().unsetLink().run()):i()}}))},rF=e=>{let{tooltip:n,Icon:r,command:i,active:o,optionName:s,highlight:a}=e;return t.createElement(_,Pf({"data-cy":`neeto-editor-bubble-menu-${s}-option`,icon:r,key:s,size:"small",style:o?"secondary":"text",tooltipProps:{content:n,position:"bottom",theme:"dark",delay:[500]},onClick:i},KI(a)))},iF=e=>{let{editor:n,mentions:r,tooltipContent:i}=e;const o=jI(r),{Menu:s,MenuItem:a}=E;return g(o)?null:t.createElement(E,{buttonStyle:"text","data-cy":"neeto-editor-mention-option",icon:X,strategy:"fixed",buttonProps:{tooltipProps:{content:i,position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(s,null,o.map((e=>{let{key:r,name:i,imageUrl:o}=e;return t.createElement(a.Button,{"data-cy":`neeto-editor-mention-option-${r}`,key:r,onClick:()=>n.commands.setMention({id:r,label:i})},t.createElement(C,{size:"small",user:{name:i,imageUrl:o}}),t.createElement(x,{style:"body2"},i))}))))},oF=e=>{let{editor:n,isActive:r,setActive:i,tooltipContent:o}=e;return t.createElement(E,{buttonStyle:"text",closeOnSelect:!1,dropdownProps:{classNames:"neeto-editor-fixed-menu__emoji-dropdown"},icon:G,isOpen:r,position:"bottom-start",strategy:"fixed",buttonProps:{tooltipProps:{content:o,position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>i((e=>!e)),onClose:()=>i(!1)},t.createElement(tT,{editor:n,setActive:i}))},sF=e=>{let{size:n,color:r,strokeWidth:i,...o}=e;return t.createElement("svg",Pf({fill:"none",height:n,viewBox:"0 0 24 24",width:n},o),t.createElement("path",{d:"M13.8791 8.37527L8.39309 13.8613C7.56709 14.6873 7.56709 16.0273 8.39309 16.8533C9.21909 17.6793 10.5591 17.6793 11.3851 16.8533L18.6171 9.62127C20.1321 8.10627 20.1321 5.65027 18.6171 4.13527C17.1021 2.62027 14.6461 2.62027 13.1311 4.13527L5.89909 11.3673C3.69509 13.5713 3.69509 17.1433 5.89909 19.3473C8.10309 21.5513 11.6751 21.5513 13.8791 19.3473L18.2681 14.9583",stroke:r,strokeWidth:i}))};sF.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},sF.propTypes={color:od.exports.string,size:od.exports.oneOfType([od.exports.string,od.exports.number]),strokeWidth:od.exports.oneOfType([od.exports.string,od.exports.number])};const aF=[{label:"Paragraph",value:0},{label:"Heading 1",value:1},{label:"Heading 2",value:2},{label:"Heading 3",value:3}],lF=e=>{let{tooltips:t,editor:n,options:r,setMediaUploader:i,handleUploadAttachments:o}=e;const s=(e=>{let{tooltips:t,editor:n,setMediaUploader:r,handleUploadAttachments:i}=e;return{font:[{Icon:ee,command:()=>n.chain().focus().toggleBold().run(),active:n.isActive("bold"),optionName:"bold",tooltip:t.bold||"Bold"},{Icon:te,command:()=>n.chain().focus().toggleItalic().run(),active:n.isActive("italic"),optionName:"italic",tooltip:t.italic||"Italic"},{Icon:ne,command:()=>n.chain().focus().toggleUnderline().run(),active:n.isActive("underline"),optionName:"underline",tooltip:t.underline||"Underline"},{Icon:re,command:()=>n.chain().focus().toggleStrike().run(),active:n.isActive("strike"),optionName:"strike",tooltip:t.strike||"Strike"},{Icon:ie,command:()=>n.chain().focus().toggleHighlight().run(),active:n.isActive("highlight"),optionName:"highlight",tooltip:t.highlight||"Highlight"}],block:[{Icon:oe,command:()=>n.chain().focus().toggleBlockquote().run(),active:n.isActive("blockquote"),optionName:"block-quote",highlight:!0,tooltip:t.blockQuote||"Block Quote"},{Icon:K,command:()=>n.chain().focus().toggleCode().run(),active:n.isActive("code"),optionName:"code",tooltip:t.code||"Code"}],list:[{Icon:$,command:()=>n.chain().focus().toggleBulletList().run(),active:n.isActive("bulletList"),optionName:"bullet-list",highlight:!0,tooltip:t.bulletList||"Bullet List"},{Icon:H,command:()=>n.chain().focus().toggleOrderedList().run(),active:n.isActive("orderedList"),optionName:"ordered-list",highlight:!0,tooltip:t.orderedList||"Ordered List"}],misc:[{Icon:sF,command:i,active:!1,optionName:"attachments",tooltip:t.attachments||"Attachments"},{Icon:W,command:()=>r(pe("image",!0)),optionName:"image-upload",tooltip:t.imageUpload||"Image Upload"},{Icon:V,command:()=>r(pe("video",!0)),optionName:"video-upload",tooltip:t.videoUpload||"Video Upload"}],right:[{Icon:se,command:()=>n.chain().focus().undo().run(),active:!1,disabled:!n.can().undo(),optionName:"undo",tooltip:t.undo||"Undo"},{Icon:ae,command:()=>n.chain().focus().redo().run(),active:!1,disabled:!n.can().redo(),optionName:"redo",tooltip:t.redo||"Redo"}]}})({tooltips:t,editor:n,setMediaUploader:i,handleUploadAttachments:o});return we(["font","block","list","misc","right"].map((e=>[e,s[e].filter((e=>r.includes(e.optionName)))])))},cF=e=>{let{Icon:n,command:r,active:i,optionName:o,highlight:s,disabled:a,tooltip:l}=e;return t.createElement(_,Pf({className:"neeto-editor-fixed-menu__item","data-cy":`neeto-editor-fixed-menu-${o}-option`,disabled:a,icon:n,key:o,style:i?"secondary":"text",tooltipProps:{content:l,position:"bottom"},onClick:r},KI(s)))},uF=e=>{let{editor:t,commands:n}=e;const{to:r}=t.state.selection;return n.map((e=>{var n;return{...e,active:null===(n=e.active)||void 0===n?void 0:n.call(e,{editor:t}),command:()=>{var n;return null===(n=e.command)||void 0===n?void 0:n.call(e,{editor:t,range:{from:r,to:r}})}}}))},dF=e=>{let{editor:n,options:r,mentions:i,tooltips:o,setIsInvalidLink:s,isLinkOptionActive:a,setIsLinkOptionActive:l,setMediaUploader:c,handleUploadAttachments:u,isEmojiPickerActive:d,setIsEmojiPickerActive:p}=e;const{Menu:h,MenuItem:f}=E,m=(e=>{let{editor:t}=e;return[{optionName:"Heading 1",active:t.isActive("heading",{level:1}),command:()=>t.chain().focus().setNode("heading",{level:1}).run()},{optionName:"Heading 2",active:t.isActive("heading",{level:2}),command:()=>t.chain().focus().setNode("heading",{level:2}).run()},{optionName:"Heading 3",active:t.isActive("heading",{level:3}),command:()=>t.chain().focus().setNode("heading",{level:3}).run()},{optionName:"Ordered List",active:t.isActive("orderedList"),command:()=>t.chain().focus().toggleOrderedList().run()},{optionName:"Bulleted List",active:t.isActive("bulletList"),command:()=>t.chain().focus().toggleBulletList().run()},{optionName:"Text",active:t.isActive("paragraph"),command:()=>t.chain().focus().setNode("paragraph").run()}]})({editor:n}),g=(e=>{var t;return(null===(t=e.find(ve("active")))||void 0===t?void 0:t.optionName)||"Text"})(m),b=r.includes(Fr.EMOJI),y=r.includes(Fr.LINK),{font:v,block:w,list:_}=lF({editor:n,options:r,setMediaUploader:c,tooltips:o,handleUploadAttachments:u}),x=()=>{s(!0),setTimeout((()=>{s(!1)}),1e3)};return a?t.createElement(nF,{editor:n,handleAnimateInvalidLink:x,handleClose:()=>l(!1)}):t.createElement(t.Fragment,null,t.createElement(E,{buttonSize:"small",buttonStyle:"text",label:g,strategy:"fixed"},t.createElement(h,null,m.map((e=>{let{optionName:n,command:r}=e;return t.createElement(f.Button,{key:n,onClick:r},n)})))),v.map(rF),w.map(rF),b&&t.createElement(oF,{editor:n,isActive:d,setActive:p,tooltipContent:o.emoji||"Emoji"}),_.map(rF),y&&rF({Icon:le,command:()=>l(!0),active:n.isActive("link"),optionName:"link",highlight:!1,tooltip:o.link||"Link"}),t.createElement(iF,{editor:n,mentions:i,tooltipContent:o.mention||"Mention"}))},pF=e=>{let{editor:r,options:i,mentions:o=[],setMediaUploader:s,tooltips:a={},handleUploadAttachments:l,isEmojiPickerActive:c,setIsEmojiPickerActive:u}=e;const[d,p]=n(!1),[h,f]=n(!1),m=r&&r.view.state.selection.node,g=m&&"image"===m.type.name,b=[Fr.BOLD,Fr.ITALIC,Fr.UNDERLINE,Fr.STRIKETHROUGH,Fr.LINK],y=hr(i.filter((e=>b.includes(e))));return!r||!g&&y?null:t.createElement("div",null,t.createElement(xM,{editor:r,className:Lr("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":d}),tippyOptions:{arrow:Nk,zIndex:99999,onHide:()=>f(!1),theme:"neeto-editor-bubble-menu",maxWidth:500}},t.createElement(dF,{editor:r,handleUploadAttachments:l,isEmojiPickerActive:c,isLinkOptionActive:h,mentions:o,options:i,setIsEmojiPickerActive:u,setIsInvalidLink:p,setIsLinkOptionActive:f,setMediaUploader:s,tooltips:a})))},{Menu:hF,MenuItem:fF}=E,mF=e=>{var n;let{editor:r,tooltipContent:i}=e;const o=(null===(n=aF.find((e=>{let{value:t}=e;return n=t,r.isActive("heading",{level:n});var n})))||void 0===n?void 0:n.label)||"Paragraph";return t.createElement(E,{autoWidth:!0,buttonStyle:"text","data-cy":"neeto-editor-fixed-menu-font-size-option",label:o,placement:"bottom-start",buttonProps:{tooltipProps:{content:i,position:"bottom"},className:"neeto-editor-fixed-menu__item neeto-editor-font-size__wrapper"}},t.createElement(hF,null,aF.map((e=>{let{label:n,value:i}=e;return t.createElement(fF.Button,{"data-cy":`neeto-editor-fixed-menu-font-size-option-${n}`,key:i,onClick:()=>{return(e=i)?r.chain().focus().toggleHeading({level:e}).run():r.chain().focus().setNode("paragraph").run();var e}},n)}))))},{Menu:gF}=E,bF=e=>{let{editor:r,tooltipContent:i}=e;const[o,s]=n(""),[a,l]=n(""),[c,u]=n(!1),d=r.isActive("link"),p=()=>{u(!1),l(""),s("")},h=()=>{Rr.test(a)?(r.chain().focus().setLink({href:a}).run(),p()):s("Please enter a valid url")};return t.createElement(E,{buttonStyle:d?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:le,isOpen:c,position:"bottom",buttonProps:{tooltipProps:{content:i,position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>{l(r.getAttributes("link").href),u((e=>!e))},onClose:p},t.createElement(gF,{className:"neeto-editor-link__item",onKeyDown:e=>{"Escape"===e.key?p():"Enter"===e.key&&h()}},t.createElement(w,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-link-option-input",error:o,name:"url",placeholder:"Paste URL",value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)},onFocus:()=>s("")}),t.createElement(_,{"data-cy":"neeto-editor-fixed-menu-link-option-link-button",label:"Link",onClick:h}),d&&t.createElement(_,{"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button",label:"Unlink",style:"text",onClick:()=>{r.chain().focus().unsetLink().run(),l(""),p()}})))},{Menu:yF}=E,vF=e=>{let{editor:n,variables:r,tooltipContent:i}=e;return g(r)?null:t.createElement(E,{buttonSize:"small",buttonStyle:"secondary","data-cy":"neeto-editor-variable-option",icon:ce,strategy:"fixed",buttonProps:{tooltipProps:{content:i,position:"bottom"}}},t.createElement(yF,null,t.createElement(yL,{variables:r,onClickVariable:e=>{const{category_key:t,key:r}=e,i=t?`${t}.${r}`:r;n.chain().focus().setVariable({label:i}).run()}})))},wF=e=>{let{editor:n,options:r,mentions:i=[],variables:o=[],setMediaUploader:s,addonCommands:a=[],isIndependant:l=!0,className:c,tooltips:u={},handleUploadAttachments:d,isEmojiPickerActive:p,setIsEmojiPickerActive:h}=e;if(!n)return null;const{font:f,block:m,list:g,misc:b,right:y}=lF({tooltips:u,editor:n,options:r,setMediaUploader:s,handleUploadAttachments:d}),v=r.filter((e=>e.match(/^h[1-6]$/))).length>0,w=r.includes(Fr.EMOJI),_=r.includes(Fr.LINK),x=uF({editor:n,commands:a});return t.createElement("div",{className:Lr("neeto-editor-fixed-menu",{"neeto-editor-fixed-menu--independant":l,[c]:c})},t.createElement("div",{className:"neeto-editor-fixed-menu__wrapper"},v&&t.createElement(mF,{editor:n,tooltipContent:u.fontSize||"Font size"}),f.map(cF),m.map(cF),w&&t.createElement(oF,{editor:n,isActive:p,setActive:h,tooltipContent:u.emoji||"Emoji"}),g.map(cF),_&&t.createElement(bF,{editor:n,tooltipContent:u.link||"Link"}),b.map(cF),t.createElement(iF,{editor:n,mentions:i,tooltipContent:u.mention||"Mention"}),x.map(cF),t.createElement("div",{className:"neeto-editor-fixed-menu__right-options"},y.map(cF))),t.createElement("div",{className:"neeto-editor-fixed-menu__variables"},t.createElement(vF,{editor:n,tooltipContent:u.variables||"Variables",variables:o})))},_F=e=>{let{icon:n=null,onClick:r=(()=>{}),disabled:i=!1,className:o,tooltipProps:s,...a}=e;const l=n;return t.createElement(v,Pf({disabled:!s,onClick:()=>r()},s),t.createElement("button",Pf({className:Lr("ne-headless-btn",{[o]:o}),disabled:i,type:"button",onClick:r},a),n&&t.createElement(l,{"aria-hidden":"true",key:"2",size:18})))},xF={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t,props:{hideOnEsc:n,onClose:r}}=e;function i(e){"escape"===e.key.toLowerCase()&&n&&(r(),t())}return{onShow(){document.addEventListener("keydown",i)},onHide(){document.removeEventListener("keydown",i)}}}},EF=e=>{let{icon:r,isOpen:i,onClose:o=(()=>{}),children:s,className:a,onClick:l,buttonProps:c={},...u}=e;const[d,p]=n(!1);return t.createElement(oL,Pf({hideOnEsc:!0,interactive:!0,animation:!1,arrow:!1,duration:0,hideOnClick:!1,maxWidth:"none",offset:0,plugins:[xF],popperOptions:{strategy:"fixed"},role:"dropdown",theme:"light",trigger:"click",visible:i,className:Lr("ne-headless-dropdown",{[a]:a}),content:d&&t.createElement("div",{className:"ne-headless-dropdown__popup"},s),onClickOutside:o,onClose:o,onHidden:()=>p(!1),onMount:()=>p(!0)},u),t.createElement("span",null,t.createElement(_F,Pf({icon:r,onClick:l},c))))},kF=e=>{let{editor:n,isActive:r,setActive:i,tooltipContent:o}=e;return t.createElement(EF,{className:"ne-headless__emoji",icon:G,isOpen:r,buttonProps:{tooltipProps:{content:o,delay:[500],position:"bottom"}},onClick:()=>i((e=>!e)),onClose:()=>i(!1)},t.createElement(tT,{editor:n,setActive:i}))},MF=e=>{let{editor:n,optionName:r,command:i,disabled:o,Icon:s,isActive:a,setActive:l,tooltip:c}=e;return r===Fr.EMOJI?t.createElement(kF,{editor:n,isActive:a,setActive:l,tooltipContent:c||"Emoji"}):t.createElement(_F,{className:a?"ne-headless-btn--active":"",disabled:o,icon:s,tooltipProps:{content:c,delay:[500],position:"bottom"},onClick:i})},DF=e=>{let{tooltips:t,editor:n,options:r,setMediaUploader:i,handleUploadAttachments:o,isEmojiPickerActive:s,setIsEmojiPickerActive:a}=e;const l=(e=>{let{editor:t,tooltips:n,setMediaUploader:r,handleUploadAttachments:i,isEmojiPickerActive:o,setIsEmojiPickerActive:s}=e;return[{Icon:ee,command:()=>t.chain().focus().toggleBold().run(),active:t.isActive("bold"),optionName:"bold",tooltip:n.bold||"Bold"},{Icon:te,command:()=>t.chain().focus().toggleItalic().run(),active:t.isActive("italic"),optionName:"italic",tooltip:n.italic||"Italic"},{Icon:ne,command:()=>t.chain().focus().toggleUnderline().run(),active:t.isActive("underline"),optionName:"underline",tooltip:n.underline||"Underline"},{Icon:re,command:()=>t.chain().focus().toggleStrike().run(),active:t.isActive("strike"),optionName:"strike",tooltip:n.strike||"Strike"},{Icon:ie,command:()=>t.chain().focus().toggleHighlight().run(),active:t.isActive("highlight"),optionName:"highlight",tooltip:n.highlight||"Highlight"},{Icon:oe,command:()=>t.chain().focus().toggleBlockquote().run(),active:t.isActive("blockquote"),optionName:"block-quote",tooltip:n.blockQuote||"Block Quote"},{Icon:K,command:()=>t.chain().focus().toggleCode().run(),active:t.isActive("code"),optionName:"code",tooltip:n.code||"Code"},{Icon:$,command:()=>t.chain().focus().toggleBulletList().run(),active:t.isActive("bulletList"),optionName:"bullet-list",tooltip:n.bulletList||"Bullet List"},{Icon:H,command:()=>t.chain().focus().toggleOrderedList().run(),active:t.isActive("orderedList"),optionName:"ordered-list",tooltip:n.orderedList||"Ordered List"},{Icon:ue,command:i,optionName:"attachments",tooltip:n.attachments||"Attachments"},{Icon:W,command:()=>r(pe("image",!0)),optionName:"image-upload",tooltip:n.imageUpload||"Image Upload"},{Icon:V,command:()=>r(pe("video",!0)),optionName:"video-upload",tooltip:n.videoUpload||"Video Upload"},{Icon:G,command:()=>{},optionName:"emoji",tooltip:n.emoji||"Emoji",isActive:o,setActive:s},{Icon:se,command:()=>t.chain().focus().undo().run(),disabled:!t.can().undo(),optionName:"undo",tooltip:n.undo||"Undo"},{Icon:ae,command:()=>t.chain().focus().redo().run(),disabled:!t.can().redo(),optionName:"redo",tooltip:n.redo||"Redo"}]})({editor:n,tooltips:t,setMediaUploader:i,handleUploadAttachments:o,isEmojiPickerActive:s,setIsEmojiPickerActive:a});return r.map((e=>l.find((t=>{let{optionName:n}=t;return n===e})))).filter(Boolean)},CF=e=>{let{editor:n,options:r,tooltips:i={},setMediaUploader:o,addonCommands:s=[],children:a,className:l,handleUploadAttachments:c,isEmojiPickerActive:u,setIsEmojiPickerActive:d}=e;if(!n)return null;const p=[...DF({tooltips:i,editor:n,options:r,setMediaUploader:o,handleUploadAttachments:c,isEmojiPickerActive:u,setIsEmojiPickerActive:d}),...uF({editor:n,commands:s})];return t.createElement("div",{className:Lr("ne-headless",{[l]:l})},p.map((e=>t.createElement(MF,Pf({editor:n,key:e.optionName},e)))),a)},SF=e=>{const[r,i]=n(!1),[s,a]=n({image:!1,video:!1}),{menuType:l="fixed",addons:c=[],options:u=[],editor:d,uploadEndpoint:p=jr,editorSecrets:h={},handleUploadAttachments:f}=e,m={fixed:wF,bubble:pF,headless:CF,none:()=>t.createElement("div",null)}[l],b=g(u)?[...zM,...c]:u;return o((()=>{const e=e=>{(e.metaKey||e.ctrlKey)&&e.altKey&&("KeyE"===e.code?i((e=>!e)):"KeyA"===e.code?f():"KeyK"===e.code?a(pe("image",!0)):"KeyV"===e.code&&a(pe("video",!0)))};return"none"!==l&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[]),t.createElement(t.Fragment,null,t.createElement(m,Pf({},e,{handleUploadAttachments:f,isEmojiPickerActive:r,options:b,setIsEmojiPickerActive:i,setMediaUploader:a})),t.createElement(ZL,{editor:d,mediaUploader:s,unsplashApiKey:h.unsplash,uploadEndpoint:p,onClose:()=>a({image:!1,video:!1})}))},AF=e=>{let{rows:t}=e;return`min-height: ${t*BM+2*(jM+RM)}px;`},NF=(e,t)=>{const n=[];e.split(/\n/).forEach((e=>{const r={type:"paragraph"};e.length>0&&(r.content=[{type:"text",text:e}]);const i=gg.fromJSON(t.doc.type.schema,r);n.push(i)}));const r=qm.fromArray(n);return Zm.maxOpen(r)},OF=(e,s)=>{let{initialValue:a="",menuType:l="fixed",label:c="",required:u=!1,autoFocus:d=!1,hideSlashCommands:p=!1,defaults:f=zM,addons:b=[],addonCommands:y=[],tooltips:v={},className:w,contentClassName:_,uploadEndpoint:x=jr,onChange:E=h,onFocus:k=h,onBlur:M=h,onSubmit:D=h,variables:C=[],mentions:S=[],placeholder:A,extensions:O=[],editorSecrets:T={},rows:I=6,isCharacterCountActive:L=!1,keyboardShortcuts:F=[],error:z=null,config:j={},attachments:R=[],onChangeAttachments:B=h,...P}=e;const U=r(null),H=b.includes("attachments"),$="fixed"===l,W="bubble"===l,V=!p,q=!!A,[K,G]=n({image:!1,video:!1}),Y=r(null),Q=(e=>{let{placeholder:t,extensions:n,mentions:r,variables:i,isSlashCommandsActive:o,options:s,addonCommands:a,onSubmit:l,keyboardShortcuts:c,uploadEndpoint:u,config:d,setMediaUploader:p}=e;const h=be(d,JA);let f=[VM,WM,wC.configure(h.underline),YM.configure(h.highlight),QA.configure(h.codeBlock),FT.configure(h.figCaption),XA.configure(h.embeds),vC.configure(h.link),cT.configure(h.emojiSuggestion),rT.configure(h.emojiPicker),ZA.configure(h.customCommands),UM.configure(h.characterCount),qM.configure(h.focus),DL,LT({uploadEndpoint:u}),SS.configure(h.starterKit),jT({onSubmit:l,shortcuts:c}),HI.configure(be({placeholder:t},h.placeholder))];return o&&f.push(bL({options:s,addonCommands:a,setMediaUploader:p})),g(r)||f.push(UI({suggestion:{items:RI(r)}})),g(i)||f.push(kL({suggestion:{items:()=>i}})),f=f.concat(n),f})({placeholder:A,extensions:O,mentions:S,variables:C,isSlashCommandsActive:V,options:[...f,...b],addonCommands:y,onSubmit:D,keyboardShortcuts:F,uploadEndpoint:x,config:j,setMediaUploader:G});(e=>{let{initialValue:t}=e;o((()=>{![process.env.RAILS_ENV,"production"].includes("production")&&hr(t)&&console.warn(`[neeto-editor]: Empty value of "initialValue" in needtoEditor is expected to be "<p></p>" instead of "${t}".`)}),[t])})({initialValue:a});const J=Lr("neeto-editor",{"slash-active":V&&!q,"fixed-menu-active border":$,"bubble-menu-active":W,"placeholder-active":q,"attachments-active":H,[_]:_}),Z=LM({extensions:Q,content:a,injectCSS:!1,autofocus:d&&"end",editorProps:{attributes:{class:J,style:AF({rows:I})},clipboardTextParser:NF},parseOptions:{preserveWhitespace:!0},onCreate:e=>{let{editor:t}=e;return!d&&(e=>{const{state:t,view:n}=e,r=Hb.atEnd(t.doc),i=t.tr;i.setSelection(r),n.dispatch(i)})(t)},onUpdate:e=>{let{editor:t}=e;return E(t.getHTML())},onFocus:k,onBlur:M});return i(s,(()=>({editor:Z}))),y_.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!==e.plugins)},t.createElement("div",{ref:U,className:Lr({[w]:w,"ne-attachments__wrapper":H})},c&&t.createElement(N,{className:"neeto-ui-mb-2","data-cy":`${m(c)}-editor-label`,required:u},c),t.createElement(FM,{error:z,isFixedMenuActive:$},t.createElement(PM,{editor:Z,isActive:L},t.createElement(SF,{addonCommands:y,addons:b,defaults:f,editor:Z,editorSecrets:T,handleUploadAttachments:()=>{var e;return(null===(e=Y.current)||void 0===e?void 0:e.handleUploadAttachments())||h()},isIndependant:!1,mentions:S,menuType:l,tooltips:v,uploadEndpoint:x,variables:C}),t.createElement(DM,Pf({editor:Z},P)),t.createElement(ZL,{editor:Z,mediaUploader:K,unsplashApiKey:T.unsplash,uploadEndpoint:x,onClose:()=>G({image:!1,video:!1})}),H&&t.createElement(Hm,{attachments:R,className:"ne-attachments--integrated",dragDropRef:U,isIndependent:!1,ref:Y,onChange:B}))))};var TF=t.forwardRef(OF);tF('@charset "UTF-8";\n@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css");\n@keyframes shake {\n 0% {\n transform: translateX(0);\n }\n 10% {\n transform: translateX(-4px);\n }\n 20% {\n transform: translateX(4px);\n }\n 30% {\n transform: translateX(-4px);\n }\n 40% {\n transform: translateX(4px);\n }\n 50% {\n transform: translateX(-4px);\n }\n 60% {\n transform: translateX(4px);\n }\n 70% {\n transform: translateX(-4px);\n }\n 80% {\n transform: translateX(4px);\n }\n 90% {\n transform: translateX(-4px);\n }\n 100% {\n transform: translateX(0);\n }\n}\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.neeto-editor-slash-commands__wrapper {\n padding: 12px;\n overflow-y: auto;\n max-height: 384px;\n width: 256px;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 8px 12px;\n gap: 12px;\n border-radius: var(--neeto-ui-rounded);\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover, .neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5 {\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-mentions__wrapper {\n padding: 8px;\n width: 208px;\n max-height: 256px;\n overflow-y: auto;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 8px;\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded);\n gap: 8px;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item:hover, .neeto-editor-mentions__wrapper .neeto-editor-mentions__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.ProseMirror.slash-active p.is-empty:last-child::before {\n content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAwIDIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMy44MjEyOSAxNUg1LjA1MTc2VjYuMjQzMTZIOC4yMzA0N1Y1LjEzNTc0SDAuNjQyNTc4VjYuMjQzMTZIMy44MjEyOVYxNVpNOS43MjA3IDE3LjU4NEMxMS4wMjY0IDE3LjU4NCAxMS42MzQ4IDE3LjEwNTUgMTIuMjQzMiAxNS40NTEyTDE1LjEyMTEgNy42MzA4NkgxMy44NzAxTDExLjg1MzUgMTMuNjk0M0gxMS43NDQxTDkuNzIwNyA3LjYzMDg2SDguNDQ5MjJMMTEuMTc2OCAxNS4wMDY4TDExLjA0IDE1LjQ0NDNDMTAuNzczNCAxNi4yOTIgMTAuMzYzMyAxNi41OTk2IDkuNjg2NTIgMTYuNTk5NkM5LjUyMjQ2IDE2LjU5OTYgOS4zMzc4OSAxNi41OTI4IDkuMTk0MzQgMTYuNTY1NFYxNy41NDNDOS4zNTg0IDE3LjU3MDMgOS41NjM0OCAxNy41ODQgOS43MjA3IDE3LjU4NFpNMTYuNjkzNCAxNy40NjA5SDE3Ljg4MjhWMTMuODM3OUgxNy45OTIyQzE4LjM5NTUgMTQuNjI0IDE5LjI3NzMgMTUuMTI5OSAyMC4yODkxIDE1LjEyOTlDMjIuMTYyMSAxNS4xMjk5IDIzLjM3ODkgMTMuNjMyOCAyMy4zNzg5IDExLjMyMjNWMTEuMzA4NkMyMy4zNzg5IDkuMDExNzIgMjIuMTU1MyA3LjUwMDk4IDIwLjI4OTEgNy41MDA5OEMxOS4yNjM3IDcuNTAwOTggMTguNDQzNCA3Ljk4NjMzIDE3Ljk5MjIgOC44MDY2NEgxNy44ODI4VjcuNjMwODZIMTYuNjkzNFYxNy40NjA5Wk0yMC4wMTU2IDE0LjA3NzFDMTguNjc1OCAxNC4wNzcxIDE3Ljg1NTUgMTMuMDI0NCAxNy44NTU1IDExLjMyMjNWMTEuMzA4NkMxNy44NTU1IDkuNjA2NDUgMTguNjc1OCA4LjU1MzcxIDIwLjAxNTYgOC41NTM3MUMyMS4zNjIzIDguNTUzNzEgMjIuMTYyMSA5LjU5Mjc3IDIyLjE2MjEgMTEuMzA4NlYxMS4zMjIzQzIyLjE2MjEgMTMuMDM4MSAyMS4zNjIzIDE0LjA3NzEgMjAuMDE1NiAxNC4wNzcxWk0yOC4yNDYxIDE1LjEyOTlDMjkuOTgyNCAxNS4xMjk5IDMxLjAzNTIgMTQuMTQ1NSAzMS4yODgxIDEzLjE0NzVMMzEuMzAxOCAxMy4wOTI4SDMwLjExMjNMMzAuMDg1IDEzLjE1NDNDMjkuODg2NyAxMy41OTg2IDI5LjI3MTUgMTQuMDcwMyAyOC4yNzM0IDE0LjA3MDNDMjYuOTYwOSAxNC4wNzAzIDI2LjEyMDEgMTMuMTgxNiAyNi4wODU5IDExLjY1NzJIMzEuMzkwNlYxMS4xOTI0QzMxLjM5MDYgOC45OTEyMSAzMC4xNzM4IDcuNTAwOTggMjguMTcwOSA3LjUwMDk4QzI2LjE2OCA3LjUwMDk4IDI0Ljg2OTEgOS4wNTk1NyAyNC44NjkxIDExLjMzNTlWMTEuMzQyOEMyNC44NjkxIDEzLjY1MzMgMjYuMTQwNiAxNS4xMjk5IDI4LjI0NjEgMTUuMTI5OVpNMjguMTY0MSA4LjU2MDU1QzI5LjI1MSA4LjU2MDU1IDMwLjA1NzYgOS4yNTA5OCAzMC4xODA3IDEwLjcwN0gyNi4xMDY0QzI2LjIzNjMgOS4zMDU2NiAyNy4wNzAzIDguNTYwNTUgMjguMTY0MSA4LjU2MDU1WiIgZmlsbD0iIzg3OTI5RCIvPgo8cmVjdCB4PSIzNyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiByeD0iMyIgZmlsbD0iI0U5RUJFRCIvPgo8cGF0aCBkPSJNNTAuNDI4MiA1LjkxNDQzTDQzLjU3MTggMTQuMDg1NiIgc3Ryb2tlPSIjMjUyQzMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02NC43MjU2IDE1LjA1NDdDNjQuOTU4IDE1LjA1NDcgNjUuMTgzNiAxNS4wMjczIDY1LjQxNiAxNC45ODYzVjEzLjk3NDZDNjUuMTk3MyAxMy45OTUxIDY1LjA4MTEgMTQuMDAyIDY0Ljg2OTEgMTQuMDAyQzY0LjEwMzUgMTQuMDAyIDYzLjgwMjcgMTMuNjUzMyA2My44MDI3IDEyLjc4NTJWOC42MTUyM0g2NS40MTZWNy42MzA4Nkg2My44MDI3VjUuNzIzNjNINjIuNTcyM1Y3LjYzMDg2SDYxLjQxMDJWOC42MTUyM0g2Mi41NzIzVjEzLjA4NTlDNjIuNTcyMyAxNC40OTQxIDYzLjIwOCAxNS4wNTQ3IDY0LjcyNTYgMTUuMDU0N1pNNzAuMTEyMyAxNS4xMjk5QzcyLjIxMDkgMTUuMTI5OSA3My41MDk4IDEzLjY4MDcgNzMuNTA5OCAxMS4zMjIzVjExLjMwODZDNzMuNTA5OCA4Ljk0MzM2IDcyLjIxMDkgNy41MDA5OCA3MC4xMTIzIDcuNTAwOThDNjguMDEzNyA3LjUwMDk4IDY2LjcxNDggOC45NDMzNiA2Ni43MTQ4IDExLjMwODZWMTEuMzIyM0M2Ni43MTQ4IDEzLjY4MDcgNjguMDEzNyAxNS4xMjk5IDcwLjExMjMgMTUuMTI5OVpNNzAuMTEyMyAxNC4wNzcxQzY4LjcxNzggMTQuMDc3MSA2Ny45MzE2IDEzLjA1ODYgNjcuOTMxNiAxMS4zMjIzVjExLjMwODZDNjcuOTMxNiA5LjU2NTQzIDY4LjcxNzggOC41NTM3MSA3MC4xMTIzIDguNTUzNzFDNzEuNTA2OCA4LjU1MzcxIDcyLjI5MyA5LjU2NTQzIDcyLjI5MyAxMS4zMDg2VjExLjMyMjNDNzIuMjkzIDEzLjA1ODYgNzEuNTA2OCAxNC4wNzcxIDcwLjExMjMgMTQuMDc3MVpNODIuMzA3NiAxNS4xMjk5Qzg0LjA3ODEgMTUuMTI5OSA4NS4wNjkzIDE0LjE3OTcgODUuMzcwMSAxMi44NDY3TDg1LjM4MzggMTIuNzcxNUw4NC4yMDggMTIuNzc4M0w4NC4xOTQzIDEyLjgxOTNDODMuOTIwOSAxMy42Mzk2IDgzLjI5MiAxNC4wNzcxIDgyLjMwMDggMTQuMDc3MUM4MC45ODgzIDE0LjA3NzEgODAuMTQwNiAxMi45OTAyIDgwLjE0MDYgMTEuMjk0OVYxMS4yODEyQzgwLjE0MDYgOS42MjAxMiA4MC45NzQ2IDguNTUzNzEgODIuMzAwOCA4LjU1MzcxQzgzLjM2MDQgOC41NTM3MSA4NC4wMTY2IDkuMTQxNiA4NC4yMDEyIDkuODY2MjFMODQuMjA4IDkuODg2NzJIODUuMzkwNkw4NS4zODM4IDkuODQ1N0M4NS4xNjUgOC41MzMyIDg0LjA5MTggNy41MDA5OCA4Mi4zMDA4IDcuNTAwOThDODAuMjM2MyA3LjUwMDk4IDc4LjkyMzggOC45OTEyMSA3OC45MjM4IDExLjI4MTJWMTEuMjk0OUM3OC45MjM4IDEzLjYzMjggODAuMjQzMiAxNS4xMjk5IDgyLjMwNzYgMTUuMTI5OVpNODcuMTk1MyAxNUg4OC4zODQ4VjEwLjYzODdDODguMzg0OCA5LjM0NjY4IDg5LjEyOTkgOC41NTM3MSA5MC4zMDU3IDguNTUzNzFDOTEuNDgxNCA4LjU1MzcxIDkyLjAyODMgOS4xODk0NSA5Mi4wMjgzIDEwLjUxNTZWMTVIOTMuMjE3OFYxMC4yMjg1QzkzLjIxNzggOC40Nzg1MiA5Mi4yOTQ5IDcuNTAwOTggOTAuNjQwNiA3LjUwMDk4Qzg5LjU1MzcgNy41MDA5OCA4OC44NjMzIDcuOTU4OTggODguNDk0MSA4LjczODI4SDg4LjM4NDhWNC43MDUwOEg4Ny4xOTUzVjE1Wk05Ny4zOTQ1IDE1LjEyOTlDOTguMzg1NyAxNS4xMjk5IDk5LjE1ODIgMTQuNjk5MiA5OS42MjMgMTMuOTEzMUg5OS43MzI0VjE1SDEwMC45MjJWOS45NTUwOEMxMDAuOTIyIDguNDIzODMgOTkuOTE3IDcuNTAwOTggOTguMTE5MSA3LjUwMDk4Qzk2LjU0NjkgNy41MDA5OCA5NS40MjU4IDguMjgwMjcgOTUuMjM0NCA5LjQzNTU1TDk1LjIyNzUgOS40NzY1Nkg5Ni40MTdMOTYuNDIzOCA5LjQ1NjA1Qzk2LjYxNTIgOC44ODE4NCA5Ny4xOTYzIDguNTUzNzEgOTguMDc4MSA4LjU1MzcxQzk5LjE3ODcgOC41NTM3MSA5OS43MzI0IDkuMDQ1OSA5OS43MzI0IDkuOTU1MDhWMTAuNjI1TDk3LjYyMDEgMTAuNzU0OUM5NS45MDQzIDEwLjg1NzQgOTQuOTMzNiAxMS42MTYyIDk0LjkzMzYgMTIuOTI4N1YxMi45NDI0Qzk0LjkzMzYgMTQuMjgyMiA5NS45OTMyIDE1LjEyOTkgOTcuMzk0NSAxNS4xMjk5Wk05Ni4xNTA0IDEyLjkxNVYxMi45MDE0Qzk2LjE1MDQgMTIuMTY5OSA5Ni42NDI2IDExLjc3MzQgOTcuNzYzNyAxMS43MDUxTDk5LjczMjQgMTEuNTgyVjEyLjI1MkM5OS43MzI0IDEzLjMwNDcgOTguODUwNiAxNC4wOTc3IDk3LjY0MDYgMTQuMDk3N0M5Ni43ODYxIDE0LjA5NzcgOTYuMTUwNCAxMy42NjAyIDk2LjE1MDQgMTIuOTE1Wk0xMDMuMDk2IDE1SDEwNC4yODVWMTAuNjM4N0MxMDQuMjg1IDkuMzQ2NjggMTA1LjAzIDguNTUzNzEgMTA2LjIwNiA4LjU1MzcxQzEwNy4zODIgOC41NTM3MSAxMDcuOTI5IDkuMTg5NDUgMTA3LjkyOSAxMC41MTU2VjE1SDEwOS4xMThWMTAuMjI4NUMxMDkuMTE4IDguNDc4NTIgMTA4LjE5NSA3LjUwMDk4IDEwNi41NDEgNy41MDA5OEMxMDUuNDU0IDcuNTAwOTggMTA0Ljc2NCA3Ljk1ODk4IDEwNC4zOTUgOC43MzgyOEgxMDQuMjg1VjcuNjMwODZIMTAzLjA5NlYxNVpNMTE0LjMwNyAxNy41OTc3QzExNi4zMTYgMTcuNTk3NyAxMTcuNTg4IDE2LjU0NDkgMTE3LjU4OCAxNC44OTc1VjcuNjMwODZIMTE2LjM5OFY4Ljg0NzY2SDExNi4zMTZDMTE1Ljg2NSA4LjAxMzY3IDExNS4wNTkgNy41MDA5OCAxMTQuMDIgNy41MDA5OEMxMTIuMDkyIDcuNTAwOTggMTEwLjkwMiA4Ljk5ODA1IDExMC45MDIgMTEuMDYyNVYxMS4wNzYyQzExMC45MDIgMTMuMTQwNiAxMTIuMDg1IDE0LjYxNzIgMTEzLjk5MiAxNC42MTcyQzExNS4wMDQgMTQuNjE3MiAxMTUuODM4IDE0LjE1OTIgMTE2LjMwMyAxMy4zNDU3SDExNi40MTJWMTQuODM1OUMxMTYuNDEyIDE1LjkyMjkgMTE1LjYyNiAxNi41NDQ5IDExNC4zMDcgMTYuNTQ0OUMxMTMuMjQ3IDE2LjU0NDkgMTEyLjU5MSAxNi4xNDg0IDExMi40NjEgMTUuNTg3OUwxMTIuNDU0IDE1LjU4MTFIMTExLjIyNEwxMTEuMjEgMTUuNTg3OUMxMTEuMzk1IDE2Ljc5NzkgMTEyLjUyOSAxNy41OTc3IDExNC4zMDcgMTcuNTk3N1pNMTE0LjI1MiAxMy41NjQ1QzExMi44ODUgMTMuNTY0NSAxMTIuMTE5IDEyLjUzOTEgMTEyLjExOSAxMS4wNzYyVjExLjA2MjVDMTEyLjExOSA5LjU5OTYxIDExMi44ODUgOC41NTM3MSAxMTQuMjUyIDguNTUzNzFDMTE1LjYxMiA4LjU1MzcxIDExNi40MzkgOS41OTk2MSAxMTYuNDM5IDExLjA2MjVWMTEuMDc2MkMxMTYuNDM5IDEyLjUzOTEgMTE1LjYxOSAxMy41NjQ1IDExNC4yNTIgMTMuNTY0NVpNMTIyLjgxMSAxNS4xMjk5QzEyNC41NDcgMTUuMTI5OSAxMjUuNiAxNC4xNDU1IDEyNS44NTMgMTMuMTQ3NUwxMjUuODY2IDEzLjA5MjhIMTI0LjY3N0wxMjQuNjQ5IDEzLjE1NDNDMTI0LjQ1MSAxMy41OTg2IDEyMy44MzYgMTQuMDcwMyAxMjIuODM4IDE0LjA3MDNDMTIxLjUyNSAxNC4wNzAzIDEyMC42ODUgMTMuMTgxNiAxMjAuNjUgMTEuNjU3MkgxMjUuOTU1VjExLjE5MjRDMTI1Ljk1NSA4Ljk5MTIxIDEyNC43MzggNy41MDA5OCAxMjIuNzM1IDcuNTAwOThDMTIwLjczMiA3LjUwMDk4IDExOS40MzQgOS4wNTk1NyAxMTkuNDM0IDExLjMzNTlWMTEuMzQyOEMxMTkuNDM0IDEzLjY1MzMgMTIwLjcwNSAxNS4xMjk5IDEyMi44MTEgMTUuMTI5OVpNMTIyLjcyOSA4LjU2MDU1QzEyMy44MTUgOC41NjA1NSAxMjQuNjIyIDkuMjUwOTggMTI0Ljc0NSAxMC43MDdIMTIwLjY3MUMxMjAuODAxIDkuMzA1NjYgMTIxLjYzNSA4LjU2MDU1IDEyMi43MjkgOC41NjA1NVpNMTM1LjQwMiAxNS4xMjk5QzEzNy4yNjkgMTUuMTI5OSAxMzguNDkyIDEzLjYxOTEgMTM4LjQ5MiAxMS4zMjIzVjExLjMwODZDMTM4LjQ5MiA4Ljk5ODA1IDEzNy4yNzUgNy41MDA5OCAxMzUuNDAyIDcuNTAwOThDMTM0LjM5MSA3LjUwMDk4IDEzMy41MDkgOC4wMDY4NCAxMzMuMTA1IDguNzkyOTdIMTMyLjk5NlY0LjcwNTA4SDEzMS44MDdWMTVIMTMyLjk5NlYxMy44MjQySDEzMy4xMDVDMTMzLjU1NyAxNC42NDQ1IDEzNC4zNzcgMTUuMTI5OSAxMzUuNDAyIDE1LjEyOTlaTTEzNS4xMjkgMTQuMDc3MUMxMzMuNzg5IDE0LjA3NzEgMTMyLjk2OSAxMy4wMjQ0IDEzMi45NjkgMTEuMzIyM1YxMS4zMDg2QzEzMi45NjkgOS42MDY0NSAxMzMuNzg5IDguNTUzNzEgMTM1LjEyOSA4LjU1MzcxQzEzNi40NzYgOC41NTM3MSAxMzcuMjc1IDkuNTkyNzcgMTM3LjI3NSAxMS4zMDg2VjExLjMyMjNDMTM3LjI3NSAxMy4wMzgxIDEzNi40NzYgMTQuMDc3MSAxMzUuMTI5IDE0LjA3NzFaTTE0MC40MDYgMTVIMTQxLjU5NlY0LjcwNTA4SDE0MC40MDZWMTVaTTE0Ni45MDcgMTUuMTI5OUMxNDkuMDA2IDE1LjEyOTkgMTUwLjMwNSAxMy42ODA3IDE1MC4zMDUgMTEuMzIyM1YxMS4zMDg2QzE1MC4zMDUgOC45NDMzNiAxNDkuMDA2IDcuNTAwOTggMTQ2LjkwNyA3LjUwMDk4QzE0NC44MDkgNy41MDA5OCAxNDMuNTEgOC45NDMzNiAxNDMuNTEgMTEuMzA4NlYxMS4zMjIzQzE0My41MSAxMy42ODA3IDE0NC44MDkgMTUuMTI5OSAxNDYuOTA3IDE1LjEyOTlaTTE0Ni45MDcgMTQuMDc3MUMxNDUuNTEzIDE0LjA3NzEgMTQ0LjcyNyAxMy4wNTg2IDE0NC43MjcgMTEuMzIyM1YxMS4zMDg2QzE0NC43MjcgOS41NjU0MyAxNDUuNTEzIDguNTUzNzEgMTQ2LjkwNyA4LjU1MzcxQzE0OC4zMDIgOC41NTM3MSAxNDkuMDg4IDkuNTY1NDMgMTQ5LjA4OCAxMS4zMDg2VjExLjMyMjNDMTQ5LjA4OCAxMy4wNTg2IDE0OC4zMDIgMTQuMDc3MSAxNDYuOTA3IDE0LjA3NzFaTTE1NS4xNjUgMTUuMTI5OUMxNTYuOTM2IDE1LjEyOTkgMTU3LjkyNyAxNC4xNzk3IDE1OC4yMjggMTIuODQ2N0wxNTguMjQxIDEyLjc3MTVMMTU3LjA2NSAxMi43NzgzTDE1Ny4wNTIgMTIuODE5M0MxNTYuNzc4IDEzLjYzOTYgMTU2LjE0OSAxNC4wNzcxIDE1NS4xNTggMTQuMDc3MUMxNTMuODQ2IDE0LjA3NzEgMTUyLjk5OCAxMi45OTAyIDE1Mi45OTggMTEuMjk0OVYxMS4yODEyQzE1Mi45OTggOS42MjAxMiAxNTMuODMyIDguNTUzNzEgMTU1LjE1OCA4LjU1MzcxQzE1Ni4yMTggOC41NTM3MSAxNTYuODc0IDkuMTQxNiAxNTcuMDU5IDkuODY2MjFMMTU3LjA2NSA5Ljg4NjcySDE1OC4yNDhMMTU4LjI0MSA5Ljg0NTdDMTU4LjAyMiA4LjUzMzIgMTU2Ljk0OSA3LjUwMDk4IDE1NS4xNTggNy41MDA5OEMxNTMuMDk0IDcuNTAwOTggMTUxLjc4MSA4Ljk5MTIxIDE1MS43ODEgMTEuMjgxMlYxMS4yOTQ5QzE1MS43ODEgMTMuNjMyOCAxNTMuMTAxIDE1LjEyOTkgMTU1LjE2NSAxNS4xMjk5Wk0xNjAuMDUzIDE1SDE2MS4yNDJWMTIuMjA0MUwxNjEuOTMzIDExLjUzNDJMMTY0LjY5NCAxNUgxNjYuMTkxTDE2Mi43NjcgMTAuNzI3NUwxNjUuOTc5IDcuNjMwODZIMTY0LjUzN0wxNjEuMzUyIDEwLjg1MDZIMTYxLjI0MlY0LjcwNTA4SDE2MC4wNTNWMTVaTTE3NC4xNDIgMTUuMDU0N0MxNzQuMzc0IDE1LjA1NDcgMTc0LjYgMTUuMDI3MyAxNzQuODMyIDE0Ljk4NjNWMTMuOTc0NkMxNzQuNjEzIDEzLjk5NTEgMTc0LjQ5NyAxNC4wMDIgMTc0LjI4NSAxNC4wMDJDMTczLjUyIDE0LjAwMiAxNzMuMjE5IDEzLjY1MzMgMTczLjIxOSAxMi43ODUyVjguNjE1MjNIMTc0LjgzMlY3LjYzMDg2SDE3My4yMTlWNS43MjM2M0gxNzEuOTg4VjcuNjMwODZIMTcwLjgyNlY4LjYxNTIzSDE3MS45ODhWMTMuMDg1OUMxNzEuOTg4IDE0LjQ5NDEgMTcyLjYyNCAxNS4wNTQ3IDE3NC4xNDIgMTUuMDU0N1pNMTc3LjIzOCAxNy41ODRDMTc4LjU0NCAxNy41ODQgMTc5LjE1MiAxNy4xMDU1IDE3OS43NjEgMTUuNDUxMkwxODIuNjM5IDcuNjMwODZIMTgxLjM4OEwxNzkuMzcxIDEzLjY5NDNIMTc5LjI2MkwxNzcuMjM4IDcuNjMwODZIMTc1Ljk2N0wxNzguNjk0IDE1LjAwNjhMMTc4LjU1OCAxNS40NDQzQzE3OC4yOTEgMTYuMjkyIDE3Ny44ODEgMTYuNTk5NiAxNzcuMjA0IDE2LjU5OTZDMTc3LjA0IDE2LjU5OTYgMTc2Ljg1NSAxNi41OTI4IDE3Ni43MTIgMTYuNTY1NFYxNy41NDNDMTc2Ljg3NiAxNy41NzAzIDE3Ny4wODEgMTcuNTg0IDE3Ny4yMzggMTcuNTg0Wk0xODQuMjExIDE3LjQ2MDlIMTg1LjRWMTMuODM3OUgxODUuNTFDMTg1LjkxMyAxNC42MjQgMTg2Ljc5NSAxNS4xMjk5IDE4Ny44MDcgMTUuMTI5OUMxODkuNjggMTUuMTI5OSAxOTAuODk2IDEzLjYzMjggMTkwLjg5NiAxMS4zMjIzVjExLjMwODZDMTkwLjg5NiA5LjAxMTcyIDE4OS42NzMgNy41MDA5OCAxODcuODA3IDcuNTAwOThDMTg2Ljc4MSA3LjUwMDk4IDE4NS45NjEgNy45ODYzMyAxODUuNTEgOC44MDY2NEgxODUuNFY3LjYzMDg2SDE4NC4yMTFWMTcuNDYwOVpNMTg3LjUzMyAxNC4wNzcxQzE4Ni4xOTMgMTQuMDc3MSAxODUuMzczIDEzLjAyNDQgMTg1LjM3MyAxMS4zMjIzVjExLjMwODZDMTg1LjM3MyA5LjYwNjQ1IDE4Ni4xOTMgOC41NTM3MSAxODcuNTMzIDguNTUzNzFDMTg4Ljg4IDguNTUzNzEgMTg5LjY4IDkuNTkyNzcgMTg5LjY4IDExLjMwODZWMTEuMzIyM0MxODkuNjggMTMuMDM4MSAxODguODggMTQuMDc3MSAxODcuNTMzIDE0LjA3NzFaTTE5NS43NjQgMTUuMTI5OUMxOTcuNSAxNS4xMjk5IDE5OC41NTMgMTQuMTQ1NSAxOTguODA2IDEzLjE0NzVMMTk4LjgxOSAxMy4wOTI4SDE5Ny42M0wxOTcuNjAzIDEzLjE1NDNDMTk3LjQwNCAxMy41OTg2IDE5Ni43ODkgMTQuMDcwMyAxOTUuNzkxIDE0LjA3MDNDMTk0LjQ3OSAxNC4wNzAzIDE5My42MzggMTMuMTgxNiAxOTMuNjA0IDExLjY1NzJIMTk4LjkwOFYxMS4xOTI0QzE5OC45MDggOC45OTEyMSAxOTcuNjkxIDcuNTAwOTggMTk1LjY4OCA3LjUwMDk4QzE5My42ODYgNy41MDA5OCAxOTIuMzg3IDkuMDU5NTcgMTkyLjM4NyAxMS4zMzU5VjExLjM0MjhDMTkyLjM4NyAxMy42NTMzIDE5My42NTggMTUuMTI5OSAxOTUuNzY0IDE1LjEyOTlaTTE5NS42ODIgOC41NjA1NUMxOTYuNzY5IDguNTYwNTUgMTk3LjU3NSA5LjI1MDk4IDE5Ny42OTggMTAuNzA3SDE5My42MjRDMTkzLjc1NCA5LjMwNTY2IDE5NC41ODggOC41NjA1NSAxOTUuNjgyIDguNTYwNTVaIiBmaWxsPSIjODc5MjlEIi8+Cjwvc3ZnPgo=");\n position: absolute;\n top: -2px;\n height: 0;\n z-index: -1;\n pointer-events: none;\n}\n.neeto-editor {\n max-width: 100% !important;\n border-radius: var(--neeto-ui-rounded);\n white-space: pre-wrap;\n padding: 16px;\n color: rgb(var(--neeto-ui-gray-800));\n background-color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor:focus {\n outline: none;\n}\n.neeto-editor a {\n pointer-events: none;\n}\n.neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor .ProseMirror-separator {\n display: none;\n}\n.neeto-editor.fixed-menu-active {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n.neeto-editor.attachments-active {\n border-bottom: none;\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n}\n.neeto-editor .is-empty {\n position: relative;\n}\n.neeto-editor.placeholder-active .is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n}\n.neeto-editor hr {\n margin: 8px 0;\n}\n.neeto-editor .ProseMirror-selectednode {\n outline: 3px solid rgb(var(--neeto-ui-pastel-blue));\n}\n.neeto-editor .has-focus {\n background: var(--focus-background-color);\n transition: background-color 200ms ease;\n}\n.neeto-editor-character-count {\n padding: 4px;\n color: rgb(var(--neeto-ui-gray-600));\n font-size: 12px;\n text-align: right;\n}\n.neeto-editor-error {\n color: rgb(var(--neeto-ui-error-500));\n border-width: 1px;\n border-color: rgb(var(--neeto-ui-error-500));\n border-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-error:focus-within {\n border-color: rgb(var(--neeto-ui-error-600));\n}\n.neeto-editor-content, .neeto-editor {\n white-space: pre-wrap;\n word-break: break-word;\n}\n.neeto-editor-content h1, .neeto-editor h1,\n.neeto-editor-content h2,\n.neeto-editor h2,\n.neeto-editor-content h3,\n.neeto-editor h3,\n.neeto-editor-content h4,\n.neeto-editor h4,\n.neeto-editor-content h5,\n.neeto-editor h5,\n.neeto-editor-content h6,\n.neeto-editor h6 {\n font-size: revert;\n margin: 0 0 16px 0;\n}\n.neeto-editor-content p, .neeto-editor p {\n line-height: var(--neeto-ui-leading-normal);\n color: rgb(var(--neeto-ui-gray-700));\n margin-bottom: 8px;\n}\n.neeto-editor-content p:empty::after, .neeto-editor p:empty::after {\n content: " ";\n}\n.neeto-editor-content p:last-child, .neeto-editor p:last-child {\n margin-bottom: 0;\n}\n.neeto-editor-content code, .neeto-editor code {\n padding: 2px;\n font-size: 85%;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-200));\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n}\n.neeto-editor-content pre, .neeto-editor pre {\n background-color: #f6f8fa;\n overflow-x: auto;\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 16px;\n}\n.neeto-editor-content pre > code, .neeto-editor pre > code {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: 400;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.neeto-editor-content blockquote, .neeto-editor blockquote {\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-black));\n border-left-width: 4px;\n border-left-color: #e5e7eb;\n quotes: "“" "”" "‘" "’";\n margin: 8px 0;\n padding-left: 12px;\n}\n.neeto-editor-content blockquote > p::before, .neeto-editor blockquote > p::before {\n content: "" !important;\n}\n.neeto-editor-content blockquote > p::after, .neeto-editor blockquote > p::after {\n content: "" !important;\n}\n.neeto-editor-content ul, .neeto-editor ul,\n.neeto-editor-content ol,\n.neeto-editor ol {\n list-style: revert;\n margin: revert;\n padding: revert;\n}\n.neeto-editor-content ul > li > p, .neeto-editor ul > li > p,\n.neeto-editor-content ol > li > p,\n.neeto-editor ol > li > p {\n margin-top: 0 !important;\n margin-bottom: 0.375rem !important;\n}\n.neeto-editor-content ul li::before, .neeto-editor ul li::before,\n.neeto-editor-content ol li::before,\n.neeto-editor ol li::before {\n background-color: rgb(var(--neeto-ui-black));\n}\n.neeto-editor-content a[href], .neeto-editor a[href] {\n color: rgb(var(--neeto-ui-primary-800));\n font-weight: 500;\n}\n.neeto-editor-content .video-wrapper, .neeto-editor .video-wrapper {\n width: 560px;\n height: 315px;\n margin: auto;\n}\n.neeto-editor-content mark, .neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor-content [data-variable], .neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor-content [data-type=mention], .neeto-editor [data-type=mention] {\n color: rgb(var(--neeto-ui-primary-800));\n}\n.neeto-editor-content--hidden {\n display: none;\n}\n.neeto-editor__image-wrapper {\n display: flex;\n color: unset !important;\n font-weight: normal !important;\n}\n.neeto-editor__image-wrapper figure {\n position: relative;\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image {\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image img,\n.neeto-editor__image-wrapper .neeto-editor__image video {\n display: inline-block;\n height: 100%;\n border: 2px solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded-lg);\n padding: 4px;\n}\n.neeto-editor__image-wrapper figcaption {\n margin-top: 4px;\n text-align: center;\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-normal);\n}\n.neeto-editor__image-wrapper figcaption a {\n display: inline-block;\n text-align: center;\n}\n.neeto-editor__image-wrapper figcaption.is-empty div:before {\n position: absolute;\n inset: 0;\n content: "Add a caption";\n color: rgb(var(--neeto-ui-gray-500));\n}\n.neeto-editor__image--left {\n justify-content: flex-start;\n}\n.neeto-editor__image--center {\n justify-content: center;\n}\n.neeto-editor__image--right {\n justify-content: flex-end;\n}\n.neeto-editor-fixed-menu {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0px 0px;\n border-bottom: none;\n background-color: rgb(var(--neeto-ui-white));\n text-align: center;\n position: relative;\n}\n.neeto-editor-fixed-menu--independant {\n border-radius: unset;\n border-bottom: thin solid rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-fixed-menu__item {\n border-radius: var(--neeto-ui-rounded-sm) !important;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item {\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor-fixed-menu__wrapper {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n overflow: auto;\n width: 100%;\n padding: 2px;\n gap: 0 4px;\n}\n.neeto-editor-fixed-menu__variables {\n position: absolute;\n right: 8px;\n bottom: -24px;\n z-index: 10;\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item {\n padding: 4px;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover, .neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-fixed-menu__right-options {\n display: flex;\n justify-self: flex-end;\n margin-left: auto;\n}\n.neeto-editor-fixed-menu__emoji-dropdown {\n max-height: unset !important;\n}\n.neeto-editor-fixed-menu__separator {\n display: flex;\n height: 28px;\n width: 32px;\n}\n.neeto-editor-fixed-menu__separator span {\n width: 100%;\n}\n.neeto-editor-fixed-menu__separator span:first-child {\n border-right: 1px solid rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 4px;\n align-items: center;\n padding: 8px;\n cursor: pointer;\n transition: var(--neeto-ui-transition);\n border-radius: 2px;\n}\n.neeto-editor-menu__item p {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-xs);\n line-height: 1;\n white-space: nowrap;\n}\n.neeto-editor-menu__item:hover, .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item:focus, .neeto-editor-menu__item:focus-visible {\n outline: rgb(var(--neeto-ui-gray-300)) auto 1px;\n}\n.neeto-editor-menu__item input[type=color] {\n visibility: hidden;\n height: 0;\n width: 0;\n}\n.neeto-editor-menu__item:disabled {\n opacity: 0.5;\n background-color: rgb(var(--neeto-ui-gray-100));\n}\n.neeto-editor-variables-suggestion {\n padding: 4px 0;\n}\n.neeto-editor-variables-list {\n padding: 4px 8px;\n min-width: 184px;\n max-width: 360px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block:not(:last-child) {\n margin-bottom: 12px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block h6 {\n font-size: var(--neeto-ui-text-xs);\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-gray-600));\n margin-bottom: 4px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable {\n padding: 4px 6px;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-700));\n line-height: 1;\n background-color: rgb(var(--neeto-ui-pastel-blue));\n border-radius: var(--neeto-ui-rounded-sm);\n transition: var(--neeto-ui-transition);\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable:hover {\n background-color: rgb(var(--neeto-ui-info-100));\n}\n.neeto-editor-link__item {\n display: flex !important;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 8px;\n padding: 8px !important;\n}\n.neeto-editor-font-size__wrapper {\n font-weight: var(--neeto-ui-font-normal) !important;\n padding: 8px !important;\n}\n.neeto-editor-bubble-menu {\n position: relative;\n display: flex;\n gap: 1px;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n border-radius: var(--neeto-ui-rounded);\n background: rgb(var(--neeto-ui-gray-800));\n padding: 0 4px;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-text {\n color: rgb(var(--neeto-ui-gray-200));\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-text:hover, .neeto-editor-bubble-menu button.neeto-ui-btn--style-text:active, .neeto-editor-bubble-menu button.neeto-ui-btn--style-text.active {\n color: rgb(var(--neeto-ui-gray-200)) !important;\n background-color: rgb(var(--neeto-ui-gray-600)) !important;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-secondary {\n min-width: -moz-fit-content;\n min-width: fit-content;\n background-color: rgb(var(--neeto-ui-gray-400));\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup {\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn {\n color: rgb(var(--neeto-ui-gray-200)) !important;\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:hover, .neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:active, .neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn.active {\n background-color: rgb(var(--neeto-ui-gray-600)) !important;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link {\n width: 256px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px;\n gap: 8px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input {\n background-color: transparent;\n outline: none;\n line-height: 20px;\n width: 100%;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only {\n padding: 0;\n min-height: 0;\n opacity: 0.8;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover {\n opacity: 1;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target {\n display: flex;\n align-items: center;\n gap: 4px;\n white-space: nowrap;\n font-size: var(--neeto-ui-text-xs);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item {\n width: 100%;\n text-align: left;\n padding: 8px 12px;\n font-size: var(--neeto-ui-text-xs);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child {\n border-top-left-radius: var(--neeto-ui-rounded);\n border-top-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child {\n border-bottom-left-radius: var(--neeto-ui-rounded);\n border-bottom-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu-animate-shake {\n animation: 1s linear infinite alternate both shake;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup {\n display: flex;\n min-width: unset;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup .neeto-ui-btn .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor__image-menu-btn {\n position: absolute !important;\n top: 4px;\n right: 4px;\n z-index: 1;\n padding: 2px !important;\n}\n.ne-media-uploader {\n display: flex;\n flex-direction: column;\n min-height: 184px;\n}\n.ne-media-uploader .ne-tab__wrapper .ne-tab {\n min-width: 88px;\n}\n.ne-media-uploader .ne-media-uploader__content {\n flex-grow: 1;\n display: flex;\n padding: 16px;\n}\n.ne-media-uploader .ne-media-uploader__progress {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n text-align: center;\n}\n.ne-media-uploader .ne-media-uploader__progress-title, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-label {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-sm);\n margin-bottom: 4px;\n}\n.ne-media-uploader .ne-media-uploader__progress-file, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-note {\n color: rgb(var(--neeto-ui-gray-400));\n font-size: var(--neeto-ui-text-xs);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n border: 1px dashed rgb(var(--neeto-ui-gray-400));\n box-sizing: border-box;\n border-radius: var(--neeto-ui-rounded);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root {\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-white));\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root::-moz-focus-inner {\n border: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 1.4;\n text-align: center;\n font-weight: var(--neeto-ui-font-normal);\n margin: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-arrow {\n visibility: hidden;\n display: none;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop--isDraggingOver {\n background-color: rgb(var(--neeto-ui-gray-200));\n border: 2px dashed rgb(var(--neeto-ui-primary-500));\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-browse {\n color: rgb(var(--neeto-ui-primary-500));\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd--error {\n color: rgb(var(--neeto-ui-error));\n font-size: var(--neeto-ui-text-xs);\n margin-top: 12px;\n text-align: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper {\n width: 100%;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container {\n max-height: 50vh;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-search {\n padding: 0px 8px;\n margin-bottom: 16px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery {\n width: 100%;\n right: -8px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__loader {\n display: flex;\n justify-content: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item {\n width: 33.3%;\n padding-right: 16px;\n padding-bottom: 16px;\n float: left;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder {\n width: 100%;\n position: relative;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner {\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img {\n height: 100%;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n animation: fade-in 1.2s 1s cubic-bezier(0.39, 0.575, 0.565, 1) both;\n border-radius: var(--neeto-ui-rounded);\n position: relative;\n cursor: pointer;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a {\n opacity: 0;\n position: absolute;\n left: 8px;\n bottom: 8px;\n margin: auto;\n color: rgb(var(--neeto-ui-white));\n font-size: 12px;\n font-weight: var(--neeto-ui-font-normal);\n line-height: 1;\n text-transform: capitalize;\n transition: var(--neeto-ui-transition);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover {\n text-decoration: underline;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a {\n opacity: 1;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n text-align: center;\n margin-top: 12px;\n}\n.neeto-editor-progress-bar__wrapper {\n width: 100%;\n max-width: 256px;\n margin-top: 10px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator {\n position: relative;\n width: 100%;\n height: 6px;\n border-radius: var(--neeto-ui-rounded-full);\n overflow: hidden;\n background-color: rgba(var(--neeto-ui-primary-500), 0.2);\n margin-top: 4px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator-inner {\n height: 100%;\n background-color: rgb(var(--neeto-ui-primary-500));\n}\n.neeto-editor-url-form__wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n padding: 0 24px;\n}\n.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper {\n width: 100%;\n flex-grow: 0;\n margin-bottom: 16px;\n}\n.neeto-editor-emoji {\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.emoji-mart.emoji-mart-light {\n font-size: 14px;\n color: rgb(var(--neeto-ui-gray-800));\n border: none;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor {\n color: rgb(var(--neeto-ui-gray-500));\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg {\n margin: auto;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar {\n background-color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected {\n color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-search input {\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span {\n padding-top: 8px;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span {\n cursor: pointer;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover::before {\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-scroll {\n height: 264px;\n padding-bottom: 0px;\n}\n.neeto-editor-emoji-suggestion {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 4px;\n gap: 2px;\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.neeto-editor-emoji-suggestion p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-emoji-suggestion span {\n height: 16px !important;\n width: 16px !important;\n font-size: 10px;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item {\n padding: 6px;\n font-size: var(--neeto-ui-text-2xl);\n transition: var(--neeto-ui-transition);\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n cursor: pointer;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-media-editor {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1.25rem;\n}\n.ne-media-editor button {\n margin-right: auto;\n}\n.ne-media-editor img,\n.ne-media-editor video {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: 208px;\n max-height: 400px;\n height: -moz-fit-content;\n height: fit-content;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.ne-media-editor__error {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n min-height: 288px;\n max-height: 400px;\n width: 100%;\n padding: 24px;\n background: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n gap: 8px;\n}\n.ne-media-editor__error h2 {\n font-size: var(--neeto-ui-text-lg);\n font-weight: var(--neeto-ui-font-medium);\n}\n.ne-media-editor .neeto-ui-input__wrapper {\n width: 100%;\n}\n.ne-media-editor .ne-media-editor__footer {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.5rem;\n}\n.ne-attachments {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.ne-attachments__items {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n.ne-attachments__attachment {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 2px 4px 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n border: 1px solid rgb(var(--neeto-ui-gray-200));\n background-color: rgb(var(--neeto-ui-white));\n width: 256px;\n}\n.ne-attachments__attachment-file-icon {\n height: auto;\n width: 15px;\n}\n.ne-attachments__attachment__progress {\n display: flex;\n opacity: 0.5;\n justify-content: space-between;\n width: 76%;\n}\n.ne-attachments__attachment__progress p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n}\n.ne-attachments__attachment__progress p:nth-child(2) {\n width: -moz-fit-content;\n width: fit-content;\n}\n.ne-attachments__attachment__progress-icon {\n width: 15px;\n height: auto;\n}\n.ne-attachments__attachment p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 75%;\n}\n.ne-attachments input[type=file] {\n display: none;\n}\n.ne-attachments--integrated {\n padding: 0px 6px;\n border: 1px solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-radius: 0px 0px var(--neeto-ui-rounded) var(--neeto-ui-rounded);\n}\n.ne-attachments__wrapper {\n position: relative;\n}\n.ne-attachments__wrapper.uppy-is-drag-over::after {\n position: absolute;\n inset: 7px;\n border-radius: 5px;\n background-color: rgba(var(--neeto-ui-primary-100), 0.3);\n border: 3px dashed rgb(var(--neeto-ui-primary-100));\n content: "Drop the file here";\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.ProseMirror {\n overflow-y: auto;\n height: 100%;\n white-space: break-spaces;\n}\n.ProseMirror:focus {\n outline: none;\n}',{});const IF=(e,n)=>{let{name:r,...i}=e;return t.createElement(_e,{name:r},(e=>{let{field:o,form:s,meta:a}=e;return t.createElement(TF,Pf({error:a.touched?a.error:"",initialValue:o.value,ref:n,onBlur:()=>s.setFieldTouched(r,!0),onChange:e=>s.setFieldValue(r,e)},i))}))};var LF=l(IF);
43
43
  /*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */function FF(e){return FF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},FF(e)}function zF(e,t){return zF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zF(e,t)}function jF(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function RF(e,t,n){return RF=jF()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&zF(i,n.prototype),i},RF.apply(null,arguments)}function BF(e){return function(e){if(Array.isArray(e))return PF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return PF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PF(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var UF=Object.hasOwnProperty,HF=Object.setPrototypeOf,$F=Object.isFrozen,WF=Object.getPrototypeOf,VF=Object.getOwnPropertyDescriptor,qF=Object.freeze,KF=Object.seal,GF=Object.create,YF="undefined"!=typeof Reflect&&Reflect,QF=YF.apply,JF=YF.construct;QF||(QF=function(e,t,n){return e.apply(t,n)}),qF||(qF=function(e){return e}),KF||(KF=function(e){return e}),JF||(JF=function(e,t){return RF(e,BF(t))});var ZF,XF=cz(Array.prototype.forEach),ez=cz(Array.prototype.pop),tz=cz(Array.prototype.push),nz=cz(String.prototype.toLowerCase),rz=cz(String.prototype.match),iz=cz(String.prototype.replace),oz=cz(String.prototype.indexOf),sz=cz(String.prototype.trim),az=cz(RegExp.prototype.test),lz=(ZF=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return JF(ZF,t)});function cz(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return QF(e,t,r)}}function uz(e,t,n){n=n||nz,HF&&HF(e,null);for(var r=t.length;r--;){var i=t[r];if("string"==typeof i){var o=n(i);o!==i&&($F(t)||(t[r]=o),i=o)}e[i]=!0}return e}function dz(e){var t,n=GF(null);for(t in e)QF(UF,e,[t])&&(n[t]=e[t]);return n}function pz(e,t){for(;null!==e;){var n=VF(e,t);if(n){if(n.get)return cz(n.get);if("function"==typeof n.value)return cz(n.value)}e=WF(e)}return function(e){return console.warn("fallback value for",e),null}}var hz=qF(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),fz=qF(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mz=qF(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gz=qF(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),bz=qF(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),yz=qF(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),vz=qF(["#text"]),wz=qF(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),_z=qF(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),xz=qF(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ez=qF(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kz=KF(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Mz=KF(/<%[\w\W]*|[\w\W]*%>/gm),Dz=KF(/^data-[\-\w.\u00B7-\uFFFF]/),Cz=KF(/^aria-[\-\w]+$/),Sz=KF(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Az=KF(/^(?:\w+script|data):/i),Nz=KF(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Oz=KF(/^html$/i),Tz=function(){return"undefined"==typeof window?null:window},Iz=function(e,t){if("object"!==FF(e)||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var Lz=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tz(),n=function(t){return e(t)};if(n.version="2.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,p=t.HTMLFormElement,h=t.DOMParser,f=t.trustedTypes,m=l.prototype,g=pz(m,"cloneNode"),b=pz(m,"nextSibling"),y=pz(m,"childNodes"),v=pz(m,"parentNode");if("function"==typeof s){var w=i.createElement("template");w.content&&w.content.ownerDocument&&(i=w.content.ownerDocument)}var _=Iz(f,r),x=_?_.createHTML(""):"",E=i,k=E.implementation,M=E.createNodeIterator,D=E.createDocumentFragment,C=E.getElementsByTagName,S=r.importNode,A={};try{A=dz(i).documentMode?i.documentMode:{}}catch(e){}var N={};n.isSupported="function"==typeof v&&k&&void 0!==k.createHTMLDocument&&9!==A;var O,T,I=kz,L=Mz,F=Dz,z=Cz,j=Az,R=Nz,B=Sz,P=null,U=uz({},[].concat(BF(hz),BF(fz),BF(mz),BF(bz),BF(vz))),H=null,$=uz({},[].concat(BF(wz),BF(_z),BF(xz),BF(Ez))),W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,q=null,K=!0,G=!0,Y=!1,Q=!1,J=!1,Z=!1,X=!1,ee=!1,te=!1,ne=!1,re=!0,ie=!1,oe="user-content-",se=!0,ae=!1,le={},ce=null,ue=uz({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),de=null,pe=uz({},["audio","video","img","source","image","track"]),he=null,fe=uz({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml",ye=be,ve=!1,we=["application/xhtml+xml","text/html"],_e="text/html",xe=null,Ee=i.createElement("form"),ke=function(e){return e instanceof RegExp||e instanceof Function},Me=function(e){xe&&xe===e||(e&&"object"===FF(e)||(e={}),e=dz(e),O=O=-1===we.indexOf(e.PARSER_MEDIA_TYPE)?_e:e.PARSER_MEDIA_TYPE,T="application/xhtml+xml"===O?function(e){return e}:nz,P="ALLOWED_TAGS"in e?uz({},e.ALLOWED_TAGS,T):U,H="ALLOWED_ATTR"in e?uz({},e.ALLOWED_ATTR,T):$,he="ADD_URI_SAFE_ATTR"in e?uz(dz(fe),e.ADD_URI_SAFE_ATTR,T):fe,de="ADD_DATA_URI_TAGS"in e?uz(dz(pe),e.ADD_DATA_URI_TAGS,T):pe,ce="FORBID_CONTENTS"in e?uz({},e.FORBID_CONTENTS,T):ue,V="FORBID_TAGS"in e?uz({},e.FORBID_TAGS,T):{},q="FORBID_ATTR"in e?uz({},e.FORBID_ATTR,T):{},le="USE_PROFILES"in e&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,Y=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=e.SAFE_FOR_TEMPLATES||!1,J=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,ye=e.NAMESPACE||be,e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(W.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(G=!1),te&&(ee=!0),le&&(P=uz({},BF(vz)),H=[],!0===le.html&&(uz(P,hz),uz(H,wz)),!0===le.svg&&(uz(P,fz),uz(H,_z),uz(H,Ez)),!0===le.svgFilters&&(uz(P,mz),uz(H,_z),uz(H,Ez)),!0===le.mathMl&&(uz(P,bz),uz(H,xz),uz(H,Ez))),e.ADD_TAGS&&(P===U&&(P=dz(P)),uz(P,e.ADD_TAGS,T)),e.ADD_ATTR&&(H===$&&(H=dz(H)),uz(H,e.ADD_ATTR,T)),e.ADD_URI_SAFE_ATTR&&uz(he,e.ADD_URI_SAFE_ATTR,T),e.FORBID_CONTENTS&&(ce===ue&&(ce=dz(ce)),uz(ce,e.FORBID_CONTENTS,T)),se&&(P["#text"]=!0),J&&uz(P,["html","head","body"]),P.table&&(uz(P,["tbody"]),delete V.tbody),qF&&qF(e),xe=e)},De=uz({},["mi","mo","mn","ms","mtext"]),Ce=uz({},["foreignobject","desc","title","annotation-xml"]),Se=uz({},["title","style","font","a","script"]),Ae=uz({},fz);uz(Ae,mz),uz(Ae,gz);var Ne=uz({},bz);uz(Ne,yz);var Oe=function(e){var t=v(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});var n=nz(e.tagName),r=nz(t.tagName);return e.namespaceURI===ge?t.namespaceURI===be?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||De[r]):Boolean(Ae[n]):e.namespaceURI===me?t.namespaceURI===be?"math"===n:t.namespaceURI===ge?"math"===n&&Ce[r]:Boolean(Ne[n]):e.namespaceURI===be&&(!(t.namespaceURI===ge&&!Ce[r])&&(!(t.namespaceURI===me&&!De[r])&&(!Ne[n]&&(Se[n]||!Ae[n]))))},Te=function(e){tz(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=x}catch(t){e.remove()}}},Ie=function(e,t){try{tz(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){tz(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!H[e])if(ee||te)try{Te(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t,n;if(X)e="<remove></remove>"+e;else{var r=rz(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===O&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=_?_.createHTML(e):e;if(ye===be)try{t=(new h).parseFromString(o,O)}catch(e){}if(!t||!t.documentElement){t=k.createDocument(ye,"template",null);try{t.documentElement.innerHTML=ve?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),ye===be?C.call(t,J?"html":"body")[0]:J?t.documentElement:s},Fe=function(e){return M.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},ze=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},je=function(e){return"object"===FF(a)?e instanceof a:e&&"object"===FF(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Re=function(e,t,r){N[e]&&XF(N[e],(function(e){e.call(n,t,r,xe)}))},Be=function(e){var t;if(Re("beforeSanitizeElements",e,null),ze(e))return Te(e),!0;if(az(/[\u0080-\uFFFF]/,e.nodeName))return Te(e),!0;var r=T(e.nodeName);if(Re("uponSanitizeElement",e,{tagName:r,allowedTags:P}),e.hasChildNodes()&&!je(e.firstElementChild)&&(!je(e.content)||!je(e.content.firstElementChild))&&az(/<[/\w]/g,e.innerHTML)&&az(/<[/\w]/g,e.textContent))return Te(e),!0;if("select"===r&&az(/<template/i,e.innerHTML))return Te(e),!0;if(!P[r]||V[r]){if(!V[r]&&Ue(r)){if(W.tagNameCheck instanceof RegExp&&az(W.tagNameCheck,r))return!1;if(W.tagNameCheck instanceof Function&&W.tagNameCheck(r))return!1}if(se&&!ce[r]){var i=v(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&i)for(var s=o.length-1;s>=0;--s)i.insertBefore(g(o[s],!0),b(e))}return Te(e),!0}return e instanceof l&&!Oe(e)?(Te(e),!0):"noscript"!==r&&"noembed"!==r||!az(/<\/no(script|embed)/i,e.innerHTML)?(Q&&3===e.nodeType&&(t=e.textContent,t=iz(t,I," "),t=iz(t,L," "),e.textContent!==t&&(tz(n.removed,{element:e.cloneNode()}),e.textContent=t)),Re("afterSanitizeElements",e,null),!1):(Te(e),!0)},Pe=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in i||n in Ee))return!1;if(G&&!q[t]&&az(F,t));else if(K&&az(z,t));else if(!H[t]||q[t]){if(!(Ue(e)&&(W.tagNameCheck instanceof RegExp&&az(W.tagNameCheck,e)||W.tagNameCheck instanceof Function&&W.tagNameCheck(e))&&(W.attributeNameCheck instanceof RegExp&&az(W.attributeNameCheck,t)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(t))||"is"===t&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&az(W.tagNameCheck,n)||W.tagNameCheck instanceof Function&&W.tagNameCheck(n))))return!1}else if(he[t]);else if(az(B,iz(n,R,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==oz(n,"data:")||!de[e]){if(Y&&!az(j,iz(n,R,"")));else if(n)return!1}else;return!0},Ue=function(e){return e.indexOf("-")>0},He=function(e){var t,r,i,o;Re("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};for(o=s.length;o--;){var l=t=s[o],c=l.name,u=l.namespaceURI;if(r="value"===c?t.value:sz(t.value),i=T(c),a.attrName=i,a.attrValue=r,a.keepAttr=!0,a.forceKeepAttr=void 0,Re("uponSanitizeAttribute",e,a),r=a.attrValue,!a.forceKeepAttr&&(Ie(c,e),a.keepAttr))if(az(/\/>/i,r))Ie(c,e);else{Q&&(r=iz(r,I," "),r=iz(r,L," "));var d=T(e.nodeName);if(Pe(d,i,r)){if(!ie||"id"!==i&&"name"!==i||(Ie(c,e),r=oe+r),_&&"object"===FF(f)&&"function"==typeof f.getAttributeType)if(u);else switch(f.getAttributeType(d,i)){case"TrustedHTML":r=_.createHTML(r);break;case"TrustedScriptURL":r=_.createScriptURL(r)}try{u?e.setAttributeNS(u,c,r):e.setAttribute(c,r),ez(n.removed)}catch(e){}}}}Re("afterSanitizeAttributes",e,null)}},$e=function e(t){var n,r=Fe(t);for(Re("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Re("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof o&&e(n.content),He(n));Re("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var i,s,l,c,u,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ve=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw lz("toString is not a function");if("string"!=typeof(e=e.toString()))throw lz("dirty is not a string, aborting")}if(!n.isSupported){if("object"===FF(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(je(e))return t.toStaticHTML(e.outerHTML)}return e}if(Z||Me(d),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){var p=T(e.nodeName);if(!P[p]||V[p])throw lz("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(s=(i=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!ee&&!Q&&!J&&-1===e.indexOf("<"))return _&&ne?_.createHTML(e):e;if(!(i=Le(e)))return ee?null:ne?x:""}i&&X&&Te(i.firstChild);for(var h=Fe(ae?e:i);l=h.nextNode();)3===l.nodeType&&l===c||Be(l)||(l.content instanceof o&&$e(l.content),He(l),c=l);if(c=null,ae)return e;if(ee){if(te)for(u=D.call(i.ownerDocument);i.firstChild;)u.appendChild(i.firstChild);else u=i;return H.shadowroot&&(u=S.call(r,u,!0)),u}var f=J?i.outerHTML:i.innerHTML;return J&&P["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&az(Oz,i.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+f),Q&&(f=iz(f,I," "),f=iz(f,L," ")),_&&ne?_.createHTML(f):f},n.setConfig=function(e){Me(e),Z=!0},n.clearConfig=function(){xe=null,Z=!1},n.isValidAttribute=function(e,t,n){xe||Me({});var r=T(e),i=T(t);return Pe(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(N[e]=N[e]||[],tz(N[e],t))},n.removeHook=function(e){if(N[e])return ez(N[e])},n.removeHooks=function(e){N[e]&&(N[e]=[])},n.removeAllHooks=function(){N={}},n}();const Fz=e=>{let{content:n="",variables:r=[],className:i,...o}=e;const s=dr((e=>e.replace(lr,((e,t)=>{const n=or.highlightAuto(t.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&")).children.map(ur);return`<pre><code>${d(n)}</code></pre>`})))(n),r),a=Lz.sanitize;return t.createElement("div",Pf({"data-cy":"neeto-editor-content",className:Lr(sr,{[i]:i}),dangerouslySetInnerHTML:{__html:a(s,ar)}},o))};export{Hm as Attachments,TF as Editor,Fz as EditorContent,LF as FormikEditor,SF as Menu,fr as isEditorEmpty,dr as substituteVariables};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-editor",
3
- "version": "1.15.3",
3
+ "version": "1.15.5",
4
4
  "main": "./index.js",
5
5
  "module": "./index.js",
6
6
  "types": "./types.d.ts",