@bigbinary/neeto-editor 1.10.4 → 1.10.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.
- package/index.js +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -353
package/index.js
CHANGED
|
@@ -56,5 +56,5 @@ return function(t){var n=e,i=n.lib,r=i.WordArray,o=i.Hasher,s=n.algo,a=r.create(
|
|
|
56
56
|
* Released under MIT license <https://lodash.com/license>
|
|
57
57
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
58
58
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
59
|
-
*/!function(e,t){(function(){var n,i="4.17.21",r=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__",p=1,d=2,h=4,f=1,m=2,g=1,v=2,b=4,y=8,x=16,w=32,_=64,k=128,E=256,M=512,C=30,O="...",D=800,S=16,T=1,A=2,N=3,j=1/0,L=9007199254740991,I=17976931348623157e292,z=0/0,R=4294967295,F=R-1,P=R>>>1,U=[["ary",k],["bind",g],["bindKey",v],["curry",y],["curryRight",x],["flip",M],["partial",w],["partialRight",_],["rearg",E]],H="[object Arguments]",$="[object Array]",W="[object AsyncFunction]",q="[object Boolean]",V="[object Date]",K="[object DOMException]",G="[object Error]",Y="[object Function]",Q="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",X="[object Null]",ee="[object Object]",te="[object Promise]",ne="[object Proxy]",ie="[object RegExp]",re="[object Set]",oe="[object String]",se="[object Symbol]",ae="[object Undefined]",le="[object WeakMap]",ce="[object WeakSet]",ue="[object ArrayBuffer]",pe="[object DataView]",de="[object Float32Array]",he="[object Float64Array]",fe="[object Int8Array]",me="[object Int16Array]",ge="[object Int32Array]",ve="[object Uint8Array]",be="[object Uint8ClampedArray]",ye="[object Uint16Array]",xe="[object Uint32Array]",we=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Ce=RegExp(Ee.source),Oe=RegExp(Me.source),De=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ne=/^\w*$/,je=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Le.source),ze=/^\s+/,Re=/\s/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/[()=,{}\[\]\/\s]/,$e=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,Ke=/^0b[01]+$/i,Ge=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,et="\\ud800-\\udfff",tt="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",nt="\\u2700-\\u27bf",it="a-z\\xdf-\\xf6\\xf8-\\xff",rt="A-Z\\xc0-\\xd6\\xd8-\\xde",ot="\\ufe0e\\ufe0f",st="\\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",at="['’]",lt="["+et+"]",ct="["+st+"]",ut="["+tt+"]",pt="\\d+",dt="["+nt+"]",ht="["+it+"]",ft="[^"+et+st+pt+nt+it+rt+"]",mt="\\ud83c[\\udffb-\\udfff]",gt="[^"+et+"]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="["+rt+"]",xt="\\u200d",wt="(?:"+ht+"|"+ft+")",_t="(?:"+yt+"|"+ft+")",kt="(?:"+at+"(?:d|ll|m|re|s|t|ve))?",Et="(?:"+at+"(?:D|LL|M|RE|S|T|VE))?",Mt="(?:"+ut+"|"+mt+")"+"?",Ct="["+ot+"]?",Ot=Ct+Mt+("(?:"+xt+"(?:"+[gt,vt,bt].join("|")+")"+Ct+Mt+")*"),Dt="(?:"+[dt,vt,bt].join("|")+")"+Ot,St="(?:"+[gt+ut+"?",ut,vt,bt,lt].join("|")+")",Tt=RegExp(at,"g"),At=RegExp(ut,"g"),Nt=RegExp(mt+"(?="+mt+")|"+St+Ot,"g"),jt=RegExp([yt+"?"+ht+"+"+kt+"(?="+[ct,yt,"$"].join("|")+")",_t+"+"+Et+"(?="+[ct,yt+wt,"$"].join("|")+")",yt+"?"+wt+"+"+kt,yt+"+"+Et,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pt,Dt].join("|"),"g"),Lt=RegExp("["+xt+et+tt+ot+"]"),It=/[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"],Rt=-1,Ft={};Ft[de]=Ft[he]=Ft[fe]=Ft[me]=Ft[ge]=Ft[ve]=Ft[be]=Ft[ye]=Ft[xe]=!0,Ft[H]=Ft[$]=Ft[ue]=Ft[q]=Ft[pe]=Ft[V]=Ft[G]=Ft[Y]=Ft[Z]=Ft[J]=Ft[ee]=Ft[ie]=Ft[re]=Ft[oe]=Ft[le]=!1;var Bt={};Bt[H]=Bt[$]=Bt[ue]=Bt[pe]=Bt[q]=Bt[V]=Bt[de]=Bt[he]=Bt[fe]=Bt[me]=Bt[ge]=Bt[Z]=Bt[J]=Bt[ee]=Bt[ie]=Bt[re]=Bt[oe]=Bt[se]=Bt[ve]=Bt[be]=Bt[ye]=Bt[xe]=!0,Bt[G]=Bt[Y]=Bt[le]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ut=parseFloat,Ht=parseInt,$t="object"==typeof B&&B&&B.Object===Object&&B,Wt="object"==typeof self&&self&&self.Object===Object&&self,qt=$t||Wt||Function("return this")(),Vt=t&&!t.nodeType&&t,Kt=Vt&&"object"=="object"&&e&&!e.nodeType&&e,Gt=Kt&&Kt.exports===Vt,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){}}(),Zt=Qt&&Qt.isArrayBuffer,Jt=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,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var s=e[r];t(i,s,n(s),e)}return i}function sn(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!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,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function cn(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}function un(e,t){return!!(null==e?0:e.length)&&xn(e,t,0)>-1}function pn(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function dn(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function hn(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function fn(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function mn(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function gn(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var vn=En("length");function bn(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function yn(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function xn(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):yn(e,_n,n)}function wn(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function _n(e){return e!=e}function kn(e,t){var n=null==e?0:e.length;return n?On(e,t)/n:z}function En(e){return function(t){return null==t?n:t[e]}}function Mn(e){return function(t){return null==e?n:e[t]}}function Cn(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function On(e,t){for(var i,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==n&&(i=i===n?s:i+s)}return i}function Dn(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Sn(e){return e?e.slice(0,Kn(e)+1).replace(ze,""):e}function Tn(e){return function(t){return e(t)}}function An(e,t){return dn(t,(function(t){return e[t]}))}function Nn(e,t){return e.has(t)}function jn(e,t){for(var n=-1,i=e.length;++n<i&&xn(t,e[n],0)>-1;);return n}function Ln(e,t){for(var n=e.length;n--&&xn(t,e[n],0)>-1;);return n}function In(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}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"}),Rn=Mn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Fn(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,i){n[++t]=[i,e]})),n}function Un(e,t){return function(n){return e(t(n))}}function Hn(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n];s!==t&&s!==u||(e[n]=u,o[r++]=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 qn(e){return Bn(e)?function(e){var t=Nt.lastIndex=0;for(;Nt.test(e);)++t;return t}(e):vn(e)}function Vn(e){return Bn(e)?function(e){return e.match(Nt)||[]}(e):function(e){return e.split("")}(e)}function Kn(e){for(var t=e.length;t--&&Re.test(e.charAt(t)););return t}var Gn=Mn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Yn=function e(t){var B,Re=(t=null==t?qt:Yn.defaults(qt.Object(),t,Yn.pick(qt,zt))).Array,et=t.Date,tt=t.Error,nt=t.Function,it=t.Math,rt=t.Object,ot=t.RegExp,st=t.String,at=t.TypeError,lt=Re.prototype,ct=nt.prototype,ut=rt.prototype,pt=t["__core-js_shared__"],dt=ct.toString,ht=ut.hasOwnProperty,ft=0,mt=(B=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",gt=ut.toString,vt=dt.call(rt),bt=qt._,yt=ot("^"+dt.call(ht).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=Gt?t.Buffer:n,wt=t.Symbol,_t=t.Uint8Array,kt=xt?xt.allocUnsafe:n,Et=Un(rt.getPrototypeOf,rt),Mt=rt.create,Ct=ut.propertyIsEnumerable,Ot=lt.splice,Dt=wt?wt.isConcatSpreadable:n,St=wt?wt.iterator:n,Nt=wt?wt.toStringTag:n,Lt=function(){try{var e=qo(rt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Pt=t.clearTimeout!==qt.clearTimeout&&t.clearTimeout,$t=et&&et.now!==qt.Date.now&&et.now,Wt=t.setTimeout!==qt.setTimeout&&t.setTimeout,Vt=it.ceil,Kt=it.floor,Yt=rt.getOwnPropertySymbols,Qt=xt?xt.isBuffer:n,vn=t.isFinite,Mn=lt.join,Qn=Un(rt.keys,rt),Zn=it.max,Jn=it.min,Xn=et.now,ei=t.parseInt,ti=it.random,ni=lt.reverse,ii=qo(t,"DataView"),ri=qo(t,"Map"),oi=qo(t,"Promise"),si=qo(t,"Set"),ai=qo(t,"WeakMap"),li=qo(rt,"create"),ci=ai&&new ai,ui={},pi=bs(ii),di=bs(ri),hi=bs(oi),fi=bs(si),mi=bs(ai),gi=wt?wt.prototype:n,vi=gi?gi.valueOf:n,bi=gi?gi.toString:n;function yi(e){if(Ia(e)&&!Ea(e)&&!(e instanceof ki)){if(e instanceof _i)return e;if(ht.call(e,"__wrapped__"))return ys(e)}return new _i(e)}var xi=function(){function e(){}return function(t){if(!La(t))return{};if(Mt)return Mt(t);e.prototype=t;var i=new e;return e.prototype=n,i}}();function wi(){}function _i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function ki(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Ei(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Mi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ci(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Oi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ci;++t<n;)this.add(e[t])}function Di(e){var t=this.__data__=new Mi(e);this.size=t.size}function Si(e,t){var n=Ea(e),i=!n&&ka(e),r=!n&&!i&&Da(e),o=!n&&!i&&!r&&$a(e),s=n||i||r||o,a=s?Dn(e.length,st):[],l=a.length;for(var c in e)!t&&!ht.call(e,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Jo(c,l))||a.push(c);return a}function Ti(e){var t=e.length;return t?e[Or(0,t-1)]:n}function Ai(e,t){return ms(lo(e),Pi(t,0,e.length))}function Ni(e){return ms(lo(e))}function ji(e,t,i){(i!==n&&!xa(e[t],i)||i===n&&!(t in e))&&Fi(e,t,i)}function Li(e,t,i){var r=e[t];ht.call(e,t)&&xa(r,i)&&(i!==n||t in e)||Fi(e,t,i)}function Ii(e,t){for(var n=e.length;n--;)if(xa(e[n][0],t))return n;return-1}function zi(e,t,n,i){return qi(e,(function(e,r,o){t(i,e,n(e),o)})),i}function Ri(e,t){return e&&co(t,pl(t),e)}function Fi(e,t,n){"__proto__"==t&&Lt?Lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Bi(e,t){for(var i=-1,r=t.length,o=Re(r),s=null==e;++i<r;)o[i]=s?n:sl(e,t[i]);return o}function Pi(e,t,i){return e==e&&(i!==n&&(e=e<=i?e:i),t!==n&&(e=e>=t?e:t)),e}function Ui(e,t,i,r,o,s){var a,l=t&p,c=t&d,u=t&h;if(i&&(a=o?i(e,r,o,s):i(e)),a!==n)return a;if(!La(e))return e;var f=Ea(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==Y||m==Q;if(Da(e))return no(e,l);if(m==ee||m==H||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,dl(t),e)}(a,e)):function(e,t){return co(e,Vo(e),t)}(e,Ri(a,e))}else{if(!Bt[m])return o?e:{};a=function(e,t,n){var i=e.constructor;switch(t){case ue:return io(e);case q:case V:return new i(+e);case pe:return function(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case he:case fe:case me:case ge:case ve:case be:case ye:case xe:return ro(e,n);case Z:return new i;case J:case oe:return new i(e);case ie:return function(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new i;case se:return r=e,vi?rt(vi.call(r)):{}}var r}(e,m,l)}}s||(s=new Di);var v=s.get(e);if(v)return v;s.set(e,a),Pa(e)?e.forEach((function(n){a.add(Ui(n,t,i,n,e,s))})):za(e)&&e.forEach((function(n,r){a.set(r,Ui(n,t,i,r,e,s))}));var b=f?n:(u?c?Fo:Ro:c?dl:pl)(e);return sn(b||e,(function(n,r){b&&(n=e[r=n]),Li(a,r,Ui(n,t,i,r,e,s))})),a}function Hi(e,t,i){var r=i.length;if(null==e)return!r;for(e=rt(e);r--;){var o=i[r],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function $i(e,t,i){if("function"!=typeof e)throw new at(s);return ps((function(){e.apply(n,i)}),t)}function Wi(e,t,n,i){var o=-1,s=un,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=dn(t,Tn(n))),i?(s=pn,a=!1):t.length>=r&&(s=Nn,a=!1,t=new Oi(t));e:for(;++o<l;){var p=e[o],d=null==n?p:n(p);if(p=i||0!==p?p:0,a&&d==d){for(var h=u;h--;)if(t[h]===d)continue e;c.push(p)}else s(t,d,i)||c.push(p)}return c}yi.templateSettings={escape:De,evaluate:Se,interpolate:Te,variable:"",imports:{_:yi}},yi.prototype=wi.prototype,yi.prototype.constructor=yi,_i.prototype=xi(wi.prototype),_i.prototype.constructor=_i,ki.prototype=xi(wi.prototype),ki.prototype.constructor=ki,Ei.prototype.clear=function(){this.__data__=li?li(null):{},this.size=0},Ei.prototype["delete"]=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ei.prototype.get=function(e){var t=this.__data__;if(li){var i=t[e];return i===l?n:i}return ht.call(t,e)?t[e]:n},Ei.prototype.has=function(e){var t=this.__data__;return li?t[e]!==n:ht.call(t,e)},Ei.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=li&&t===n?l:t,this},Mi.prototype.clear=function(){this.__data__=[],this.size=0},Mi.prototype["delete"]=function(e){var t=this.__data__,n=Ii(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ot.call(t,n,1),--this.size,!0)},Mi.prototype.get=function(e){var t=this.__data__,i=Ii(t,e);return i<0?n:t[i][1]},Mi.prototype.has=function(e){return Ii(this.__data__,e)>-1},Mi.prototype.set=function(e,t){var n=this.__data__,i=Ii(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Ci.prototype.clear=function(){this.size=0,this.__data__={hash:new Ei,map:new(ri||Mi),string:new Ei}},Ci.prototype["delete"]=function(e){var t=$o(this,e)["delete"](e);return this.size-=t?1:0,t},Ci.prototype.get=function(e){return $o(this,e).get(e)},Ci.prototype.has=function(e){return $o(this,e).has(e)},Ci.prototype.set=function(e,t){var n=$o(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Oi.prototype.add=Oi.prototype.push=function(e){return this.__data__.set(e,l),this},Oi.prototype.has=function(e){return this.__data__.has(e)},Di.prototype.clear=function(){this.__data__=new Mi,this.size=0},Di.prototype["delete"]=function(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n},Di.prototype.get=function(e){return this.__data__.get(e)},Di.prototype.has=function(e){return this.__data__.has(e)},Di.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Mi){var i=n.__data__;if(!ri||i.length<r-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ci(i)}return n.set(e,t),this.size=n.size,this};var qi=ho(Xi),Vi=ho(er,!0);function Ki(e,t){var n=!0;return qi(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function Gi(e,t,i){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(l===n?a==a&&!Ha(a):i(a,l)))var l=a,c=s}return c}function Yi(e,t){var n=[];return qi(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function Qi(e,t,n,i,r){var o=-1,s=e.length;for(n||(n=Zo),r||(r=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?Qi(a,t-1,n,i,r):hn(r,a):i||(r[r.length]=a)}return r}var Zi=fo(),Ji=fo(!0);function Xi(e,t){return e&&Zi(e,t,pl)}function er(e,t){return e&&Ji(e,t,pl)}function tr(e,t){return cn(t,(function(t){return Aa(e[t])}))}function nr(e,t){for(var i=0,r=(t=Jr(t,e)).length;null!=e&&i<r;)e=e[vs(t[i++])];return i&&i==r?e:n}function ir(e,t,n){var i=t(e);return Ea(e)?i:hn(i,n(e))}function rr(e){return null==e?e===n?ae:X:Nt&&Nt in rt(e)?function(e){var t=ht.call(e,Nt),i=e[Nt];try{e[Nt]=n;var r=!0}catch(e){}var o=gt.call(e);r&&(t?e[Nt]=i:delete e[Nt]);return o}(e):function(e){return gt.call(e)}(e)}function or(e,t){return e>t}function sr(e,t){return null!=e&&ht.call(e,t)}function ar(e,t){return null!=e&&t in rt(e)}function lr(e,t,i){for(var r=i?pn:un,o=e[0].length,s=e.length,a=s,l=Re(s),c=1/0,u=[];a--;){var p=e[a];a&&t&&(p=dn(p,Tn(t))),c=Jn(p.length,c),l[a]=!i&&(t||o>=120&&p.length>=120)?new Oi(a&&p):n}p=e[0];var d=-1,h=l[0];e:for(;++d<o&&u.length<c;){var f=p[d],m=t?t(f):f;if(f=i||0!==f?f:0,!(h?Nn(h,m):r(u,m,i))){for(a=s;--a;){var g=l[a];if(!(g?Nn(g,m):r(e[a],m,i)))continue e}h&&h.push(m),u.push(f)}}return u}function cr(e,t,i){var r=null==(e=as(e,t=Jr(t,e)))?e:e[vs(Ts(t))];return null==r?n:rn(r,e,i)}function ur(e){return Ia(e)&&rr(e)==H}function pr(e,t,i,r,o){return e===t||(null==e||null==t||!Ia(e)&&!Ia(t)?e!=e&&t!=t:function(e,t,i,r,o,s){var a=Ea(e),l=Ea(t),c=a?$:Go(e),u=l?$:Go(t),p=(c=c==H?ee:c)==ee,d=(u=u==H?ee:u)==ee,h=c==u;if(h&&Da(e)){if(!Da(t))return!1;a=!0,p=!1}if(h&&!p)return s||(s=new Di),a||$a(e)?Io(e,t,i,r,o,s):function(e,t,n,i,r,o,s){switch(n){case pe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ue:return!(e.byteLength!=t.byteLength||!o(new _t(e),new _t(t)));case q:case V:case J:return xa(+e,+t);case G:return e.name==t.name&&e.message==t.message;case ie:case oe:return e==t+"";case Z:var a=Pn;case re:var l=i&f;if(a||(a=$n),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;i|=m,s.set(e,t);var u=Io(a(e),a(t),i,r,o,s);return s["delete"](e),u;case se:if(vi)return vi.call(e)==vi.call(t)}return!1}(e,t,c,i,r,o,s);if(!(i&f)){var g=p&&ht.call(e,"__wrapped__"),v=d&&ht.call(t,"__wrapped__");if(g||v){var b=g?e.value():e,y=v?t.value():t;return s||(s=new Di),o(b,y,i,r,s)}}if(!h)return!1;return s||(s=new Di),function(e,t,i,r,o,s){var a=i&f,l=Ro(e),c=l.length,u=Ro(t).length;if(c!=u&&!a)return!1;var p=c;for(;p--;){var d=l[p];if(!(a?d in t:ht.call(t,d)))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 v=a;for(;++p<c;){var b=e[d=l[p]],y=t[d];if(r)var x=a?r(y,b,d,t,e,s):r(b,y,d,e,t,s);if(!(x===n?b===y||o(b,y,i,r,s):x)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return s["delete"](e),s["delete"](t),g}(e,t,i,r,o,s)}(e,t,i,r,pr,o))}function dr(e,t,i,r){var o=i.length,s=o,a=!r;if(null==e)return!s;for(e=rt(e);o--;){var l=i[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=i[o])[0],u=e[c],p=l[1];if(a&&l[2]){if(u===n&&!(c in e))return!1}else{var d=new Di;if(r)var h=r(u,p,c,e,t,d);if(!(h===n?pr(p,u,f|m,r,d):h))return!1}}return!0}function hr(e){return!(!La(e)||(t=e,mt&&mt in t))&&(Aa(e)?yt:Ge).test(bs(e));var t}function fr(e){return"function"==typeof e?e:null==e?Rl:"object"==typeof e?Ea(e)?xr(e[0],e[1]):yr(e):Vl(e)}function mr(e){if(!is(e))return Qn(e);var t=[];for(var n in rt(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function gr(e){if(!La(e))return function(e){var t=[];if(null!=e)for(var n in rt(e))t.push(n);return t}(e);var t=is(e),n=[];for(var i in e)("constructor"!=i||!t&&ht.call(e,i))&&n.push(i);return n}function vr(e,t){return e<t}function br(e,t){var n=-1,i=Ca(e)?Re(e.length):[];return qi(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function yr(e){var t=Wo(e);return 1==t.length&&t[0][2]?os(t[0][0],t[0][1]):function(n){return n===e||dr(n,e,t)}}function xr(e,t){return es(e)&&rs(t)?os(vs(e),t):function(i){var r=sl(i,e);return r===n&&r===t?al(i,e):pr(t,r,f|m)}}function wr(e,t,i,r,o){e!==t&&Zi(t,(function(s,a){if(o||(o=new Di),La(s))!function(e,t,i,r,o,s,a){var l=cs(e,i),c=cs(t,i),u=a.get(c);if(u)return void ji(e,i,u);var p=s?s(l,c,i+"",e,t,a):n,d=p===n;if(d){var h=Ea(c),f=!h&&Da(c),m=!h&&!f&&$a(c);p=c,h||f||m?Ea(l)?p=l:Oa(l)?p=lo(l):f?(d=!1,p=no(c,!0)):m?(d=!1,p=ro(c,!0)):p=[]:Fa(c)||ka(c)?(p=l,ka(l)?p=Za(l):La(l)&&!Aa(l)||(p=Qo(c))):d=!1}d&&(a.set(c,p),o(p,c,r,s,a),a["delete"](c));ji(e,i,p)}(e,t,a,i,wr,r,o);else{var l=r?r(cs(e,a),s,a+"",e,t,o):n;l===n&&(l=s),ji(e,a,l)}}),dl)}function _r(e,t){var i=e.length;if(i)return Jo(t+=t<0?i:0,i)?e[t]:n}function kr(e,t,n){t=t.length?dn(t,(function(e){return Ea(e)?function(t){return nr(t,1===e.length?e[0]:e)}:e})):[Rl];var i=-1;t=dn(t,Tn(Ho()));var r=br(e,(function(e,n,r){var o=dn(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,(function(e,t){return function(e,t,n){var i=-1,r=e.criteria,o=t.criteria,s=r.length,a=n.length;for(;++i<s;){var l=oo(r[i],o[i]);if(l)return i>=a?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Er(e,t,n){for(var i=-1,r=t.length,o={};++i<r;){var s=t[i],a=nr(e,s);n(a,s)&&Nr(o,Jr(s,e),a)}return o}function Mr(e,t,n,i){var r=i?wn:xn,o=-1,s=t.length,a=e;for(e===t&&(t=lo(t)),n&&(a=dn(e,Tn(n)));++o<s;)for(var l=0,c=t[o],u=n?n(c):c;(l=r(a,u,l,i))>-1;)a!==e&&Ot.call(a,l,1),Ot.call(e,l,1);return e}function Cr(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;Jo(r)?Ot.call(e,r,1):Wr(e,r)}}return e}function Or(e,t){return e+Kt(ti()*(t-e+1))}function Dr(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 Sr(e,t){return ds(ss(e,t,Rl),e+"")}function Tr(e){return Ti(xl(e))}function Ar(e,t){var n=xl(e);return ms(n,Pi(t,0,n.length))}function Nr(e,t,i,r){if(!La(e))return e;for(var o=-1,s=(t=Jr(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=vs(t[o]),u=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var p=l[c];(u=r?r(p,c,l):n)===n&&(u=La(p)?p:Jo(t[o+1])?[]:{})}Li(l,c,u),l=l[c]}return e}var jr=ci?function(e,t){return ci.set(e,t),e}:Rl,Lr=Lt?function(e,t){return Lt(e,"toString",{configurable:!0,enumerable:!1,value:Ll(t),writable:!0})}:Rl;function Ir(e){return ms(xl(e))}function zr(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Re(r);++i<r;)o[i]=e[i+t];return o}function Rr(e,t){var n;return qi(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function Fr(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=P){for(;i<r;){var o=i+r>>>1,s=e[o];null!==s&&!Ha(s)&&(n?s<=t:s<t)?i=o+1:r=o}return r}return Br(e,t,Rl,n)}function Br(e,t,i,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=i(t))!=t,l=null===t,c=Ha(t),u=t===n;o<s;){var p=Kt((o+s)/2),d=i(e[p]),h=d!==n,f=null===d,m=d==d,g=Ha(d);if(a)var v=r||m;else v=u?m&&(r||h):l?m&&h&&(r||!f):c?m&&h&&!f&&(r||!g):!f&&!g&&(r?d<=t:d<t);v?o=p+1:s=p}return Jn(s,F)}function Pr(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n],a=t?t(s):s;if(!n||!xa(a,l)){var l=a;o[r++]=0===s?0:s}}return o}function Ur(e){return"number"==typeof e?e:Ha(e)?z:+e}function Hr(e){if("string"==typeof e)return e;if(Ea(e))return dn(e,Hr)+"";if(Ha(e))return bi?bi.call(e):"";var t=e+"";return"0"==t&&1/e==-j?"-0":t}function $r(e,t,n){var i=-1,o=un,s=e.length,a=!0,l=[],c=l;if(n)a=!1,o=pn;else if(s>=r){var u=t?null:So(e);if(u)return $n(u);a=!1,o=Nn,c=new Oi}else c=t?[]:l;e:for(;++i<s;){var p=e[i],d=t?t(p):p;if(p=n||0!==p?p:0,a&&d==d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),l.push(p)}else o(c,d,n)||(c!==l&&c.push(d),l.push(p))}return l}function Wr(e,t){return null==(e=as(e,t=Jr(t,e)))||delete e[vs(Ts(t))]}function qr(e,t,n,i){return Nr(e,t,n(nr(e,t)),i)}function Vr(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?zr(e,i?0:o,i?o+1:r):zr(e,i?o+1:0,i?r:o)}function Kr(e,t){var n=e;return n instanceof ki&&(n=n.value()),fn(t,(function(e,t){return t.func.apply(t.thisArg,hn([e],t.args))}),n)}function Gr(e,t,n){var i=e.length;if(i<2)return i?$r(e[0]):[];for(var r=-1,o=Re(i);++r<i;)for(var s=e[r],a=-1;++a<i;)a!=r&&(o[r]=Wi(o[r]||s,e[a],t,n));return $r(Qi(o,1),t,n)}function Yr(e,t,i){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var l=r<s?t[r]:n;i(a,e[r],l)}return a}function Qr(e){return Oa(e)?e:[]}function Zr(e){return"function"==typeof e?e:Rl}function Jr(e,t){return Ea(e)?e:es(e,t)?[e]:gs(Ja(e))}var Xr=Sr;function eo(e,t,i){var r=e.length;return i=i===n?r:i,!t&&i>=r?e:zr(e,t,i)}var to=Pt||function(e){return qt.clearTimeout(e)};function no(e,t){if(t)return e.slice();var n=e.length,i=kt?kt(n):new e.constructor(n);return e.copy(i),i}function io(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function ro(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oo(e,t){if(e!==t){var i=e!==n,r=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||r&&a&&c||!i&&c||!o)return 1;if(!r&&!s&&!u&&e<t||u&&i&&o&&!r&&!s||l&&i&&o||!a&&o||!c)return-1}return 0}function so(e,t,n,i){for(var r=-1,o=e.length,s=n.length,a=-1,l=t.length,c=Zn(o-s,0),u=Re(l+c),p=!i;++a<l;)u[a]=t[a];for(;++r<s;)(p||r<o)&&(u[n[r]]=e[r]);for(;c--;)u[a++]=e[r++];return u}function ao(e,t,n,i){for(var r=-1,o=e.length,s=-1,a=n.length,l=-1,c=t.length,u=Zn(o-a,0),p=Re(u+c),d=!i;++r<u;)p[r]=e[r];for(var h=r;++l<c;)p[h+l]=t[l];for(;++s<a;)(d||r<o)&&(p[h+n[s]]=e[r++]);return p}function lo(e,t){var n=-1,i=e.length;for(t||(t=Re(i));++n<i;)t[n]=e[n];return t}function co(e,t,i,r){var o=!i;i||(i={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=r?r(i[l],e[l],l,i,e):n;c===n&&(c=e[l]),o?Fi(i,l,c):Li(i,l,c)}return i}function uo(e,t){return function(n,i){var r=Ea(n)?on:zi,o=t?t():{};return r(n,e,Ho(i,2),o)}}function po(e){return Sr((function(t,i){var r=-1,o=i.length,s=o>1?i[o-1]:n,a=o>2?i[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&Xo(i[0],i[1],a)&&(s=o<3?n:s,o=1),t=rt(t);++r<o;){var l=i[r];l&&e(t,l,r,s)}return t}))}function ho(e,t){return function(n,i){if(null==n)return n;if(!Ca(n))return e(n,i);for(var r=n.length,o=t?r:-1,s=rt(n);(t?o--:++o<r)&&!1!==i(s[o],o,s););return n}}function fo(e){return function(t,n,i){for(var r=-1,o=rt(t),s=i(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===n(o[l],l,o))break}return t}}function mo(e){return function(t){var i=Bn(t=Ja(t))?Vn(t):n,r=i?i[0]:t.charAt(0),o=i?eo(i,1).join(""):t.slice(1);return r[e]()+o}}function go(e){return function(t){return fn(Al(kl(t).replace(Tt,"")),e,"")}}function vo(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=xi(e.prototype),i=e.apply(n,t);return La(i)?i:n}}function bo(e){return function(t,i,r){var o=rt(t);if(!Ca(t)){var s=Ho(i,3);t=pl(t),i=function(e){return s(o[e],e,o)}}var a=e(t,i,r);return a>-1?o[s?t[a]:a]:n}}function yo(e){return zo((function(t){var i=t.length,r=i,o=_i.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new at(s);if(o&&!l&&"wrapper"==Po(a))var l=new _i([],!0)}for(r=l?r:i;++r<i;){var c=Po(a=t[r]),u="wrapper"==c?Bo(a):n;l=u&&ts(u[0])&&u[1]==(k|y|w|E)&&!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&&Ea(n))return l.plant(n).value();for(var r=0,o=i?t[r].apply(this,e):n;++r<i;)o=t[r].call(this,o);return o}}))}function xo(e,t,i,r,o,s,a,l,c,u){var p=t&k,d=t&g,h=t&v,f=t&(y|x),m=t&M,b=h?n:vo(e);return function n(){for(var g=arguments.length,v=Re(g),y=g;y--;)v[y]=arguments[y];if(f)var x=Uo(n),w=In(v,x);if(r&&(v=so(v,r,o,f)),s&&(v=ao(v,s,a,f)),g-=w,f&&g<u){var _=Hn(v,x);return Oo(e,t,xo,n.placeholder,i,v,_,l,c,u-g)}var k=d?i:this,E=h?k[e]:e;return g=v.length,l?v=ls(v,l):m&&g>1&&v.reverse(),p&&c<g&&(v.length=c),this&&this!==qt&&this instanceof n&&(E=b||vo(E)),E.apply(k,v)}}function wo(e,t){return function(n,i){return function(e,t,n,i){return Xi(e,(function(e,r,o){t(i,n(e),r,o)})),i}(n,e,t(i),{})}}function _o(e,t){return function(i,r){var o;if(i===n&&r===n)return t;if(i!==n&&(o=i),r!==n){if(o===n)return r;"string"==typeof i||"string"==typeof r?(i=Hr(i),r=Hr(r)):(i=Ur(i),r=Ur(r)),o=e(i,r)}return o}}function ko(e){return zo((function(t){return t=dn(t,Tn(Ho())),Sr((function(n){var i=this;return e(t,(function(e){return rn(e,i,n)}))}))}))}function Eo(e,t){var i=(t=t===n?" ":Hr(t)).length;if(i<2)return i?Dr(t,e):t;var r=Dr(t,Vt(e/qn(t)));return Bn(t)?eo(Vn(r),0,e).join(""):r.slice(0,e)}function Mo(e){return function(t,i,r){return r&&"number"!=typeof r&&Xo(t,i,r)&&(i=r=n),t=Ka(t),i===n?(i=t,t=0):i=Ka(i),function(e,t,n,i){for(var r=-1,o=Zn(Vt((t-e)/(n||1)),0),s=Re(o);o--;)s[i?o:++r]=e,e+=n;return s}(t,i,r=r===n?t<i?1:-1:Ka(r),e)}}function Co(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qa(t),n=Qa(n)),e(t,n)}}function Oo(e,t,i,r,o,s,a,l,c,u){var p=t&y;t|=p?w:_,(t&=~(p?_:w))&b||(t&=~(g|v));var d=[e,t,o,p?s:n,p?a:n,p?n:s,p?n:a,l,c,u],h=i.apply(n,d);return ts(e)&&us(h,d),h.placeholder=r,hs(h,e,t)}function Do(e){var t=it[e];return function(e,n){if(e=Qa(e),(n=null==n?0:Jn(Ga(n),292))&&vn(e)){var i=(Ja(e)+"e").split("e");return+((i=(Ja(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var So=si&&1/$n(new si([,-0]))[1]==j?function(e){return new si(e)}:Hl;function To(e){return function(t){var n=Go(t);return n==Z?Pn(t):n==re?Wn(t):function(e,t){return dn(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ao(e,t,i,r,o,a,l,c){var p=t&v;if(!p&&"function"!=typeof e)throw new at(s);var d=r?r.length:0;if(d||(t&=~(w|_),r=o=n),l=l===n?l:Zn(Ga(l),0),c=c===n?c:Ga(c),d-=o?o.length:0,t&_){var h=r,f=o;r=o=n}var m=p?n:Bo(e),M=[e,t,i,r,o,h,f,a,l,c];if(m&&function(e,t){var n=e[1],i=t[1],r=n|i,o=r<(g|v|k),s=i==k&&n==y||i==k&&n==E&&e[7].length<=t[8]||i==(k|E)&&t[7].length<=t[8]&&n==y;if(!o&&!s)return e;i&g&&(e[2]=t[2],r|=n&g?0:b);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);i&k&&(e[8]=null==e[8]?t[8]:Jn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(M,m),e=M[0],t=M[1],i=M[2],r=M[3],o=M[4],!(c=M[9]=M[9]===n?p?0:e.length:Zn(M[9]-d,0))&&t&(y|x)&&(t&=~(y|x)),t&&t!=g)C=t==y||t==x?function(e,t,i){var r=vo(e);return function o(){for(var s=arguments.length,a=Re(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)<i?Oo(e,t,xo,o.placeholder,n,a,u,n,n,i-s):rn(this&&this!==qt&&this instanceof o?r:e,this,a)}}(e,t,c):t!=w&&t!=(g|w)||o.length?xo.apply(n,M):function(e,t,n,i){var r=t&g,o=vo(e);return function t(){for(var s=-1,a=arguments.length,l=-1,c=i.length,u=Re(c+a),p=this&&this!==qt&&this instanceof t?o:e;++l<c;)u[l]=i[l];for(;a--;)u[l++]=arguments[++s];return rn(p,r?n:this,u)}}(e,t,i,r);else var C=function(e,t,n){var i=t&g,r=vo(e);return function t(){return(this&&this!==qt&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,i);return hs((m?jr:us)(C,M),e,t)}function No(e,t,i,r){return e===n||xa(e,ut[i])&&!ht.call(r,i)?t:e}function jo(e,t,i,r,o,s){return La(e)&&La(t)&&(s.set(t,e),wr(e,t,n,jo,s),s["delete"](t)),e}function Lo(e){return Fa(e)?n:e}function Io(e,t,i,r,o,s){var a=i&f,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),p=s.get(t);if(u&&p)return u==t&&p==e;var d=-1,h=!0,g=i&m?new Oi:n;for(s.set(e,t),s.set(t,e);++d<l;){var v=e[d],b=t[d];if(r)var y=a?r(b,v,d,t,e,s):r(v,b,d,e,t,s);if(y!==n){if(y)continue;h=!1;break}if(g){if(!gn(t,(function(e,t){if(!Nn(g,t)&&(v===e||o(v,e,i,r,s)))return g.push(t)}))){h=!1;break}}else if(v!==b&&!o(v,b,i,r,s)){h=!1;break}}return s["delete"](e),s["delete"](t),h}function zo(e){return ds(ss(e,n,Ms),e+"")}function Ro(e){return ir(e,pl,Vo)}function Fo(e){return ir(e,dl,Ko)}var Bo=ci?function(e){return ci.get(e)}:Hl;function Po(e){for(var t=e.name+"",n=ui[t],i=ht.call(ui,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function Uo(e){return(ht.call(yi,"placeholder")?yi:e).placeholder}function Ho(){var e=yi.iteratee||Fl;return e=e===Fl?fr:e,arguments.length?e(arguments[0],arguments[1]):e}function $o(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Wo(e){for(var t=pl(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,rs(r)]}return t}function qo(e,t){var i=function(e,t){return null==e?n:e[t]}(e,t);return hr(i)?i:n}var Vo=Yt?function(e){return null==e?[]:(e=rt(e),cn(Yt(e),(function(t){return Ct.call(e,t)})))}:Yl,Ko=Yt?function(e){for(var t=[];e;)hn(t,Vo(e)),e=Et(e);return t}:Yl,Go=rr;function Yo(e,t,n){for(var i=-1,r=(t=Jr(t,e)).length,o=!1;++i<r;){var s=vs(t[i]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++i!=r?o:!!(r=null==e?0:e.length)&&ja(r)&&Jo(s,r)&&(Ea(e)||ka(e))}function Qo(e){return"function"!=typeof e.constructor||is(e)?{}:xi(Et(e))}function Zo(e){return Ea(e)||ka(e)||!!(Dt&&e&&e[Dt])}function Jo(e,t){var n=typeof e;return!!(t=null==t?L:t)&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!La(n))return!1;var i=typeof t;return!!("number"==i?Ca(n)&&Jo(t,n.length):"string"==i&&t in n)&&xa(n[t],e)}function es(e,t){if(Ea(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ha(e))||(Ne.test(e)||!Ae.test(e)||null!=t&&e in rt(t))}function ts(e){var t=Po(e),n=yi[t];if("function"!=typeof n||!(t in ki.prototype))return!1;if(e===n)return!0;var i=Bo(n);return!!i&&e===i[0]}(ii&&Go(new ii(new ArrayBuffer(1)))!=pe||ri&&Go(new ri)!=Z||oi&&Go(oi.resolve())!=te||si&&Go(new si)!=re||ai&&Go(new ai)!=le)&&(Go=function(e){var t=rr(e),i=t==ee?e.constructor:n,r=i?bs(i):"";if(r)switch(r){case pi:return pe;case di:return Z;case hi:return te;case fi:return re;case mi:return le}return t});var ns=pt?Aa:Ql;function is(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ut)}function rs(e){return e==e&&!La(e)}function os(e,t){return function(i){return null!=i&&(i[e]===t&&(t!==n||e in rt(i)))}}function ss(e,t,i){return t=Zn(t===n?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=Zn(n.length-t,0),s=Re(o);++r<o;)s[r]=n[t+r];r=-1;for(var a=Re(t+1);++r<t;)a[r]=n[r];return a[t]=i(s),rn(e,this,a)}}function as(e,t){return t.length<2?e:nr(e,zr(t,0,-1))}function ls(e,t){for(var i=e.length,r=Jn(t.length,i),o=lo(e);r--;){var s=t[r];e[r]=Jo(s,i)?o[s]:n}return e}function cs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var us=fs(jr),ps=Wt||function(e,t){return qt.setTimeout(e,t)},ds=fs(Lr);function hs(e,t,n){var i=t+"";return ds(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Fe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return sn(U,(function(n){var i="_."+n[0];t&n[1]&&!un(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(Be);return t?t[1].split(Pe):[]}(i),n)))}function fs(e){var t=0,i=0;return function(){var r=Xn(),o=S-(r-i);if(i=r,o>0){if(++t>=D)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var i=-1,r=e.length,o=r-1;for(t=t===n?r:t;++i<t;){var s=Or(i,o),a=e[s];e[s]=e[i],e[i]=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(je,(function(e,n,i,r){t.push(i?r.replace($e,"$1"):n||e)})),t}));function vs(e){if("string"==typeof e||Ha(e))return e;var t=e+"";return"0"==t&&1/e==-j?"-0":t}function bs(e){if(null!=e){try{return dt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ys(e){if(e instanceof ki)return e.clone();var t=new _i(e.__wrapped__,e.__chain__);return t.__actions__=lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var xs=Sr((function(e,t){return Oa(e)?Wi(e,Qi(t,1,Oa,!0)):[]})),ws=Sr((function(e,t){var i=Ts(t);return Oa(i)&&(i=n),Oa(e)?Wi(e,Qi(t,1,Oa,!0),Ho(i,2)):[]})),_s=Sr((function(e,t){var i=Ts(t);return Oa(i)&&(i=n),Oa(e)?Wi(e,Qi(t,1,Oa,!0),n,i):[]}));function ks(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Ga(n);return r<0&&(r=Zn(i+r,0)),yn(e,Ho(t,3),r)}function Es(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return i!==n&&(o=Ga(i),o=i<0?Zn(r+o,0):Jn(o,r-1)),yn(e,Ho(t,3),o,!0)}function Ms(e){return(null==e?0:e.length)?Qi(e,1):[]}function Cs(e){return e&&e.length?e[0]:n}var Os=Sr((function(e){var t=dn(e,Qr);return t.length&&t[0]===e[0]?lr(t):[]})),Ds=Sr((function(e){var t=Ts(e),i=dn(e,Qr);return t===Ts(i)?t=n:i.pop(),i.length&&i[0]===e[0]?lr(i,Ho(t,2)):[]})),Ss=Sr((function(e){var t=Ts(e),i=dn(e,Qr);return(t="function"==typeof t?t:n)&&i.pop(),i.length&&i[0]===e[0]?lr(i,n,t):[]}));function Ts(e){var t=null==e?0:e.length;return t?e[t-1]:n}var As=Sr(Ns);function Ns(e,t){return e&&e.length&&t&&t.length?Mr(e,t):e}var js=zo((function(e,t){var n=null==e?0:e.length,i=Bi(e,t);return Cr(e,dn(t,(function(e){return Jo(e,n)?+e:e})).sort(oo)),i}));function Ls(e){return null==e?e:ni.call(e)}var Is=Sr((function(e){return $r(Qi(e,1,Oa,!0))})),zs=Sr((function(e){var t=Ts(e);return Oa(t)&&(t=n),$r(Qi(e,1,Oa,!0),Ho(t,2))})),Rs=Sr((function(e){var t=Ts(e);return t="function"==typeof t?t:n,$r(Qi(e,1,Oa,!0),n,t)}));function Fs(e){if(!e||!e.length)return[];var t=0;return e=cn(e,(function(e){if(Oa(e))return t=Zn(e.length,t),!0})),Dn(t,(function(t){return dn(e,En(t))}))}function Bs(e,t){if(!e||!e.length)return[];var i=Fs(e);return null==t?i:dn(i,(function(e){return rn(t,n,e)}))}var Ps=Sr((function(e,t){return Oa(e)?Wi(e,t):[]})),Us=Sr((function(e){return Gr(cn(e,Oa))})),Hs=Sr((function(e){var t=Ts(e);return Oa(t)&&(t=n),Gr(cn(e,Oa),Ho(t,2))})),$s=Sr((function(e){var t=Ts(e);return t="function"==typeof t?t:n,Gr(cn(e,Oa),n,t)})),Ws=Sr(Fs);var qs=Sr((function(e){var t=e.length,i=t>1?e[t-1]:n;return i="function"==typeof i?(e.pop(),i):n,Bs(e,i)}));function Vs(e){var t=yi(e);return t.__chain__=!0,t}function Ks(e,t){return t(e)}var Gs=zo((function(e){var t=e.length,i=t?e[0]:0,r=this.__wrapped__,o=function(t){return Bi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ki&&Jo(i)?((r=r.slice(i,+i+(t?1:0))).__actions__.push({func:Ks,args:[o],thisArg:n}),new _i(r,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]:Fi(e,n,1)}));var Qs=bo(ks),Zs=bo(Es);function Js(e,t){return(Ea(e)?sn:qi)(e,Ho(t,3))}function Xs(e,t){return(Ea(e)?an:Vi)(e,Ho(t,3))}var ea=uo((function(e,t,n){ht.call(e,n)?e[n].push(t):Fi(e,n,[t])}));var ta=Sr((function(e,t,n){var i=-1,r="function"==typeof t,o=Ca(e)?Re(e.length):[];return qi(e,(function(e){o[++i]=r?rn(t,e,n):cr(e,t,n)})),o})),na=uo((function(e,t,n){Fi(e,n,t)}));function ia(e,t){return(Ea(e)?dn:br)(e,Ho(t,3))}var ra=uo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var oa=Sr((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]]),kr(e,Qi(t,1),[])})),sa=$t||function(){return qt.Date.now()};function aa(e,t,i){return t=i?n:t,t=e&&null==t?e.length:t,Ao(e,k,n,n,n,n,t)}function la(e,t){var i;if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var ca=Sr((function(e,t,n){var i=g;if(n.length){var r=Hn(n,Uo(ca));i|=w}return Ao(e,i,t,n,r)})),ua=Sr((function(e,t,n){var i=g|v;if(n.length){var r=Hn(n,Uo(ua));i|=w}return Ao(t,i,e,n,r)}));function pa(e,t,i){var r,o,a,l,c,u,p=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw new at(s);function m(t){var i=r,s=o;return r=o=n,p=t,l=e.apply(s,i)}function g(e){return p=e,c=ps(b,t),d?m(e):l}function v(e){var i=e-u;return u===n||i>=t||i<0||h&&e-p>=a}function b(){var e=sa();if(v(e))return y(e);c=ps(b,function(e){var n=t-(e-u);return h?Jn(n,a-(e-p)):n}(e))}function y(e){return c=n,f&&r?m(e):(r=o=n,l)}function x(){var e=sa(),i=v(e);if(r=arguments,o=this,u=e,i){if(c===n)return g(u);if(h)return to(c),c=ps(b,t),m(u)}return c===n&&(c=ps(b,t)),l}return t=Qa(t)||0,La(i)&&(d=!!i.leading,a=(h="maxWait"in i)?Zn(Qa(i.maxWait)||0,t):a,f="trailing"in i?!!i.trailing:f),x.cancel=function(){c!==n&&to(c),p=0,r=u=o=c=n},x.flush=function(){return c===n?l:y(sa())},x}var da=Sr((function(e,t){return $i(e,1,t)})),ha=Sr((function(e,t,n){return $i(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 i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(fa.Cache||Ci),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=Ci;var ga=Xr((function(e,t){var n=(t=1==t.length&&Ea(t[0])?dn(t[0],Tn(Ho())):dn(Qi(t,1),Tn(Ho()))).length;return Sr((function(i){for(var r=-1,o=Jn(i.length,n);++r<o;)i[r]=t[r].call(this,i[r]);return rn(e,this,i)}))})),va=Sr((function(e,t){var i=Hn(t,Uo(va));return Ao(e,w,n,t,i)})),ba=Sr((function(e,t){var i=Hn(t,Uo(ba));return Ao(e,_,n,t,i)})),ya=zo((function(e,t){return Ao(e,E,n,n,n,t)}));function xa(e,t){return e===t||e!=e&&t!=t}var wa=Co(or),_a=Co((function(e,t){return e>=t})),ka=ur(function(){return arguments}())?ur:function(e){return Ia(e)&&ht.call(e,"callee")&&!Ct.call(e,"callee")},Ea=Re.isArray,Ma=Zt?Tn(Zt):function(e){return Ia(e)&&rr(e)==ue};function Ca(e){return null!=e&&ja(e.length)&&!Aa(e)}function Oa(e){return Ia(e)&&Ca(e)}var Da=Qt||Ql,Sa=Jt?Tn(Jt):function(e){return Ia(e)&&rr(e)==V};function Ta(e){if(!Ia(e))return!1;var t=rr(e);return t==G||t==K||"string"==typeof e.message&&"string"==typeof e.name&&!Fa(e)}function Aa(e){if(!La(e))return!1;var t=rr(e);return t==Y||t==Q||t==W||t==ne}function Na(e){return"number"==typeof e&&e==Ga(e)}function ja(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 Ia(e){return null!=e&&"object"==typeof e}var za=Xt?Tn(Xt):function(e){return Ia(e)&&Go(e)==Z};function Ra(e){return"number"==typeof e||Ia(e)&&rr(e)==J}function Fa(e){if(!Ia(e)||rr(e)!=ee)return!1;var t=Et(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&dt.call(n)==vt}var Ba=en?Tn(en):function(e){return Ia(e)&&rr(e)==ie};var Pa=tn?Tn(tn):function(e){return Ia(e)&&Go(e)==re};function Ua(e){return"string"==typeof e||!Ea(e)&&Ia(e)&&rr(e)==oe}function Ha(e){return"symbol"==typeof e||Ia(e)&&rr(e)==se}var $a=nn?Tn(nn):function(e){return Ia(e)&&ja(e.length)&&!!Ft[rr(e)]};var Wa=Co(vr),qa=Co((function(e,t){return e<=t}));function Va(e){if(!e)return[];if(Ca(e))return Ua(e)?Vn(e):lo(e);if(St&&e[St])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[St]());var t=Go(e);return(t==Z?Pn:t==re?$n:xl)(e)}function Ka(e){return e?(e=Qa(e))===j||e===-j?(e<0?-1:1)*I: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?Pi(Ga(e),0,R):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=Sn(e);var n=Ke.test(e);return n||Ye.test(e)?Ht(e.slice(2),n?2:8):Ve.test(e)?z:+e}function Za(e){return co(e,dl(e))}function Ja(e){return null==e?"":Hr(e)}var Xa=po((function(e,t){if(is(t)||Ca(t))co(t,pl(t),e);else for(var n in t)ht.call(t,n)&&Li(e,n,t[n])})),el=po((function(e,t){co(t,dl(t),e)})),tl=po((function(e,t,n,i){co(t,dl(t),e,i)})),nl=po((function(e,t,n,i){co(t,pl(t),e,i)})),il=zo(Bi);var rl=Sr((function(e,t){e=rt(e);var i=-1,r=t.length,o=r>2?t[2]:n;for(o&&Xo(t[0],t[1],o)&&(r=1);++i<r;)for(var s=t[i],a=dl(s),l=-1,c=a.length;++l<c;){var u=a[l],p=e[u];(p===n||xa(p,ut[u])&&!ht.call(e,u))&&(e[u]=s[u])}return e})),ol=Sr((function(e){return e.push(n,jo),rn(fl,n,e)}));function sl(e,t,i){var r=null==e?n:nr(e,t);return r===n?i:r}function al(e,t){return null!=e&&Yo(e,t,ar)}var ll=wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),e[t]=n}),Ll(Rl)),cl=wo((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=Sr(cr);function pl(e){return Ca(e)?Si(e):mr(e)}function dl(e){return Ca(e)?Si(e,!0):gr(e)}var hl=po((function(e,t,n){wr(e,t,n)})),fl=po((function(e,t,n,i){wr(e,t,n,i)})),ml=zo((function(e,t){var n={};if(null==e)return n;var i=!1;t=dn(t,(function(t){return t=Jr(t,e),i||(i=t.length>1),t})),co(e,Fo(e),n),i&&(n=Ui(n,p|d|h,Lo));for(var r=t.length;r--;)Wr(n,t[r]);return n}));var gl=zo((function(e,t){return null==e?{}:function(e,t){return Er(e,t,(function(t,n){return al(e,n)}))}(e,t)}));function vl(e,t){if(null==e)return{};var n=dn(Fo(e),(function(e){return[e]}));return t=Ho(t),Er(e,n,(function(e,n){return t(e,n[0])}))}var bl=To(pl),yl=To(dl);function xl(e){return null==e?[]:An(e,pl(e))}var wl=go((function(e,t,n){return t=t.toLowerCase(),e+(n?_l(t):t)}));function _l(e){return Tl(Ja(e).toLowerCase())}function kl(e){return(e=Ja(e))&&e.replace(Ze,zn).replace(At,"")}var El=go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ml=go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Cl=mo("toLowerCase");var Ol=go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Dl=go((function(e,t,n){return e+(n?" ":"")+Tl(t)}));var Sl=go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Tl=mo("toUpperCase");function Al(e,t,i){return e=Ja(e),(t=i?n:t)===n?function(e){return It.test(e)}(e)?function(e){return e.match(jt)||[]}(e):function(e){return e.match(Ue)||[]}(e):e.match(t)||[]}var Nl=Sr((function(e,t){try{return rn(e,n,t)}catch(e){return Ta(e)?e:new tt(e)}})),jl=zo((function(e,t){return sn(t,(function(t){t=vs(t),Fi(e,t,ca(e[t],e))})),e}));function Ll(e){return function(){return e}}var Il=yo(),zl=yo(!0);function Rl(e){return e}function Fl(e){return fr("function"==typeof e?e:Ui(e,p))}var Bl=Sr((function(e,t){return function(n){return cr(n,e,t)}})),Pl=Sr((function(e,t){return function(n){return cr(e,n,t)}}));function Ul(e,t,n){var i=pl(t),r=tr(t,i);null!=n||La(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=tr(t,pl(t)));var o=!(La(n)&&"chain"in n&&!n.chain),s=Aa(e);return sn(r,(function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),r=n.__actions__=lo(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,hn([this.value()],arguments))})})),e}function Hl(){}var $l=ko(dn),Wl=ko(ln),ql=ko(gn);function Vl(e){return es(e)?En(vs(e)):function(e){return function(t){return nr(t,e)}}(e)}var Kl=Mo(),Gl=Mo(!0);function Yl(){return[]}function Ql(){return!1}var Zl=_o((function(e,t){return e+t}),0),Jl=Do("ceil"),Xl=_o((function(e,t){return e/t}),1),ec=Do("floor");var tc=_o((function(e,t){return e*t}),1),nc=Do("round"),ic=_o((function(e,t){return e-t}),0);return yi.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)}},yi.ary=aa,yi.assign=Xa,yi.assignIn=el,yi.assignInWith=tl,yi.assignWith=nl,yi.at=il,yi.before=la,yi.bind=ca,yi.bindAll=jl,yi.bindKey=ua,yi.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ea(e)?e:[e]},yi.chain=Vs,yi.chunk=function(e,t,i){t=(i?Xo(e,t,i):t===n)?1:Zn(Ga(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,s=0,a=Re(Vt(r/t));o<r;)a[s++]=zr(e,o,o+=t);return a},yi.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r},yi.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Re(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return hn(Ea(n)?lo(n):[n],Qi(t,1))},yi.cond=function(e){var t=null==e?0:e.length,n=Ho();return e=t?dn(e,(function(e){if("function"!=typeof e[1])throw new at(s);return[n(e[0]),e[1]]})):[],Sr((function(n){for(var i=-1;++i<t;){var r=e[i];if(rn(r[0],this,n))return rn(r[1],this,n)}}))},yi.conforms=function(e){return function(e){var t=pl(e);return function(n){return Hi(n,e,t)}}(Ui(e,p))},yi.constant=Ll,yi.countBy=Ys,yi.create=function(e,t){var n=xi(e);return null==t?n:Ri(n,t)},yi.curry=function e(t,i,r){var o=Ao(t,y,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},yi.curryRight=function e(t,i,r){var o=Ao(t,x,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},yi.debounce=pa,yi.defaults=rl,yi.defaultsDeep=ol,yi.defer=da,yi.delay=ha,yi.difference=xs,yi.differenceBy=ws,yi.differenceWith=_s,yi.drop=function(e,t,i){var r=null==e?0:e.length;return r?zr(e,(t=i||t===n?1:Ga(t))<0?0:t,r):[]},yi.dropRight=function(e,t,i){var r=null==e?0:e.length;return r?zr(e,0,(t=r-(t=i||t===n?1:Ga(t)))<0?0:t):[]},yi.dropRightWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!0,!0):[]},yi.dropWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!0):[]},yi.fill=function(e,t,i,r){var o=null==e?0:e.length;return o?(i&&"number"!=typeof i&&Xo(e,t,i)&&(i=0,r=o),function(e,t,i,r){var o=e.length;for((i=Ga(i))<0&&(i=-i>o?0:o+i),(r=r===n||r>o?o:Ga(r))<0&&(r+=o),r=i>r?0:Ya(r);i<r;)e[i++]=t;return e}(e,t,i,r)):[]},yi.filter=function(e,t){return(Ea(e)?cn:Yi)(e,Ho(t,3))},yi.flatMap=function(e,t){return Qi(ia(e,t),1)},yi.flatMapDeep=function(e,t){return Qi(ia(e,t),j)},yi.flatMapDepth=function(e,t,i){return i=i===n?1:Ga(i),Qi(ia(e,t),i)},yi.flatten=Ms,yi.flattenDeep=function(e){return(null==e?0:e.length)?Qi(e,j):[]},yi.flattenDepth=function(e,t){return(null==e?0:e.length)?Qi(e,t=t===n?1:Ga(t)):[]},yi.flip=function(e){return Ao(e,M)},yi.flow=Il,yi.flowRight=zl,yi.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},yi.functions=function(e){return null==e?[]:tr(e,pl(e))},yi.functionsIn=function(e){return null==e?[]:tr(e,dl(e))},yi.groupBy=ea,yi.initial=function(e){return(null==e?0:e.length)?zr(e,0,-1):[]},yi.intersection=Os,yi.intersectionBy=Ds,yi.intersectionWith=Ss,yi.invert=ll,yi.invertBy=cl,yi.invokeMap=ta,yi.iteratee=Fl,yi.keyBy=na,yi.keys=pl,yi.keysIn=dl,yi.map=ia,yi.mapKeys=function(e,t){var n={};return t=Ho(t,3),Xi(e,(function(e,i,r){Fi(n,t(e,i,r),e)})),n},yi.mapValues=function(e,t){var n={};return t=Ho(t,3),Xi(e,(function(e,i,r){Fi(n,i,t(e,i,r))})),n},yi.matches=function(e){return yr(Ui(e,p))},yi.matchesProperty=function(e,t){return xr(e,Ui(t,p))},yi.memoize=fa,yi.merge=hl,yi.mergeWith=fl,yi.method=Bl,yi.methodOf=Pl,yi.mixin=Ul,yi.negate=ma,yi.nthArg=function(e){return e=Ga(e),Sr((function(t){return _r(t,e)}))},yi.omit=ml,yi.omitBy=function(e,t){return vl(e,ma(Ho(t)))},yi.once=function(e){return la(2,e)},yi.orderBy=function(e,t,i,r){return null==e?[]:(Ea(t)||(t=null==t?[]:[t]),Ea(i=r?n:i)||(i=null==i?[]:[i]),kr(e,t,i))},yi.over=$l,yi.overArgs=ga,yi.overEvery=Wl,yi.overSome=ql,yi.partial=va,yi.partialRight=ba,yi.partition=ra,yi.pick=gl,yi.pickBy=vl,yi.property=Vl,yi.propertyOf=function(e){return function(t){return null==e?n:nr(e,t)}},yi.pull=As,yi.pullAll=Ns,yi.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mr(e,t,Ho(n,2)):e},yi.pullAllWith=function(e,t,i){return e&&e.length&&t&&t.length?Mr(e,t,n,i):e},yi.pullAt=js,yi.range=Kl,yi.rangeRight=Gl,yi.rearg=ya,yi.reject=function(e,t){return(Ea(e)?cn:Yi)(e,ma(Ho(t,3)))},yi.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=Ho(t,3);++i<o;){var s=e[i];t(s,i,e)&&(n.push(s),r.push(i))}return Cr(e,r),n},yi.rest=function(e,t){if("function"!=typeof e)throw new at(s);return Sr(e,t=t===n?t:Ga(t))},yi.reverse=Ls,yi.sampleSize=function(e,t,i){return t=(i?Xo(e,t,i):t===n)?1:Ga(t),(Ea(e)?Ai:Ar)(e,t)},yi.set=function(e,t,n){return null==e?e:Nr(e,t,n)},yi.setWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:Nr(e,t,i,r)},yi.shuffle=function(e){return(Ea(e)?Ni:Ir)(e)},yi.slice=function(e,t,i){var r=null==e?0:e.length;return r?(i&&"number"!=typeof i&&Xo(e,t,i)?(t=0,i=r):(t=null==t?0:Ga(t),i=i===n?r:Ga(i)),zr(e,t,i)):[]},yi.sortBy=oa,yi.sortedUniq=function(e){return e&&e.length?Pr(e):[]},yi.sortedUniqBy=function(e,t){return e&&e.length?Pr(e,Ho(t,2)):[]},yi.split=function(e,t,i){return i&&"number"!=typeof i&&Xo(e,t,i)&&(t=i=n),(i=i===n?R:i>>>0)?(e=Ja(e))&&("string"==typeof t||null!=t&&!Ba(t))&&!(t=Hr(t))&&Bn(e)?eo(Vn(e),0,i):e.split(t,i):[]},yi.spread=function(e,t){if("function"!=typeof e)throw new at(s);return t=null==t?0:Zn(Ga(t),0),Sr((function(n){var i=n[t],r=eo(n,0,t);return i&&hn(r,i),rn(e,this,r)}))},yi.tail=function(e){var t=null==e?0:e.length;return t?zr(e,1,t):[]},yi.take=function(e,t,i){return e&&e.length?zr(e,0,(t=i||t===n?1:Ga(t))<0?0:t):[]},yi.takeRight=function(e,t,i){var r=null==e?0:e.length;return r?zr(e,(t=r-(t=i||t===n?1:Ga(t)))<0?0:t,r):[]},yi.takeRightWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!1,!0):[]},yi.takeWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3)):[]},yi.tap=function(e,t){return t(e),e},yi.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new at(s);return La(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),pa(e,t,{leading:i,maxWait:t,trailing:r})},yi.thru=Ks,yi.toArray=Va,yi.toPairs=bl,yi.toPairsIn=yl,yi.toPath=function(e){return Ea(e)?dn(e,vs):Ha(e)?[e]:lo(gs(Ja(e)))},yi.toPlainObject=Za,yi.transform=function(e,t,n){var i=Ea(e),r=i||Da(e)||$a(e);if(t=Ho(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:La(e)&&Aa(o)?xi(Et(e)):{}}return(r?sn:Xi)(e,(function(e,i,r){return t(n,e,i,r)})),n},yi.unary=function(e){return aa(e,1)},yi.union=Is,yi.unionBy=zs,yi.unionWith=Rs,yi.uniq=function(e){return e&&e.length?$r(e):[]},yi.uniqBy=function(e,t){return e&&e.length?$r(e,Ho(t,2)):[]},yi.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?$r(e,n,t):[]},yi.unset=function(e,t){return null==e||Wr(e,t)},yi.unzip=Fs,yi.unzipWith=Bs,yi.update=function(e,t,n){return null==e?e:qr(e,t,Zr(n))},yi.updateWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:qr(e,t,Zr(i),r)},yi.values=xl,yi.valuesIn=function(e){return null==e?[]:An(e,dl(e))},yi.without=Ps,yi.words=Al,yi.wrap=function(e,t){return va(Zr(t),e)},yi.xor=Us,yi.xorBy=Hs,yi.xorWith=$s,yi.zip=Ws,yi.zipObject=function(e,t){return Yr(e||[],t||[],Li)},yi.zipObjectDeep=function(e,t){return Yr(e||[],t||[],Nr)},yi.zipWith=qs,yi.entries=bl,yi.entriesIn=yl,yi.extend=el,yi.extendWith=tl,Ul(yi,yi),yi.add=Zl,yi.attempt=Nl,yi.camelCase=wl,yi.capitalize=_l,yi.ceil=Jl,yi.clamp=function(e,t,i){return i===n&&(i=t,t=n),i!==n&&(i=(i=Qa(i))==i?i:0),t!==n&&(t=(t=Qa(t))==t?t:0),Pi(Qa(e),t,i)},yi.clone=function(e){return Ui(e,h)},yi.cloneDeep=function(e){return Ui(e,p|h)},yi.cloneDeepWith=function(e,t){return Ui(e,p|h,t="function"==typeof t?t:n)},yi.cloneWith=function(e,t){return Ui(e,h,t="function"==typeof t?t:n)},yi.conformsTo=function(e,t){return null==t||Hi(e,t,pl(t))},yi.deburr=kl,yi.defaultTo=function(e,t){return null==e||e!=e?t:e},yi.divide=Xl,yi.endsWith=function(e,t,i){e=Ja(e),t=Hr(t);var r=e.length,o=i=i===n?r:Pi(Ga(i),0,r);return(i-=t.length)>=0&&e.slice(i,o)==t},yi.eq=xa,yi.escape=function(e){return(e=Ja(e))&&Oe.test(e)?e.replace(Me,Rn):e},yi.escapeRegExp=function(e){return(e=Ja(e))&&Ie.test(e)?e.replace(Le,"\\$&"):e},yi.every=function(e,t,i){var r=Ea(e)?ln:Ki;return i&&Xo(e,t,i)&&(t=n),r(e,Ho(t,3))},yi.find=Qs,yi.findIndex=ks,yi.findKey=function(e,t){return bn(e,Ho(t,3),Xi)},yi.findLast=Zs,yi.findLastIndex=Es,yi.findLastKey=function(e,t){return bn(e,Ho(t,3),er)},yi.floor=ec,yi.forEach=Js,yi.forEachRight=Xs,yi.forIn=function(e,t){return null==e?e:Zi(e,Ho(t,3),dl)},yi.forInRight=function(e,t){return null==e?e:Ji(e,Ho(t,3),dl)},yi.forOwn=function(e,t){return e&&Xi(e,Ho(t,3))},yi.forOwnRight=function(e,t){return e&&er(e,Ho(t,3))},yi.get=sl,yi.gt=wa,yi.gte=_a,yi.has=function(e,t){return null!=e&&Yo(e,t,sr)},yi.hasIn=al,yi.head=Cs,yi.identity=Rl,yi.includes=function(e,t,n,i){e=Ca(e)?e:xl(e),n=n&&!i?Ga(n):0;var r=e.length;return n<0&&(n=Zn(r+n,0)),Ua(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&xn(e,t,n)>-1},yi.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Ga(n);return r<0&&(r=Zn(i+r,0)),xn(e,t,r)},yi.inRange=function(e,t,i){return t=Ka(t),i===n?(i=t,t=0):i=Ka(i),function(e,t,n){return e>=Jn(t,n)&&e<Zn(t,n)}(e=Qa(e),t,i)},yi.invoke=ul,yi.isArguments=ka,yi.isArray=Ea,yi.isArrayBuffer=Ma,yi.isArrayLike=Ca,yi.isArrayLikeObject=Oa,yi.isBoolean=function(e){return!0===e||!1===e||Ia(e)&&rr(e)==q},yi.isBuffer=Da,yi.isDate=Sa,yi.isElement=function(e){return Ia(e)&&1===e.nodeType&&!Fa(e)},yi.isEmpty=function(e){if(null==e)return!0;if(Ca(e)&&(Ea(e)||"string"==typeof e||"function"==typeof e.splice||Da(e)||$a(e)||ka(e)))return!e.length;var t=Go(e);if(t==Z||t==re)return!e.size;if(is(e))return!mr(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0},yi.isEqual=function(e,t){return pr(e,t)},yi.isEqualWith=function(e,t,i){var r=(i="function"==typeof i?i:n)?i(e,t):n;return r===n?pr(e,t,n,i):!!r},yi.isError=Ta,yi.isFinite=function(e){return"number"==typeof e&&vn(e)},yi.isFunction=Aa,yi.isInteger=Na,yi.isLength=ja,yi.isMap=za,yi.isMatch=function(e,t){return e===t||dr(e,t,Wo(t))},yi.isMatchWith=function(e,t,i){return i="function"==typeof i?i:n,dr(e,t,Wo(t),i)},yi.isNaN=function(e){return Ra(e)&&e!=+e},yi.isNative=function(e){if(ns(e))throw new tt(o);return hr(e)},yi.isNil=function(e){return null==e},yi.isNull=function(e){return null===e},yi.isNumber=Ra,yi.isObject=La,yi.isObjectLike=Ia,yi.isPlainObject=Fa,yi.isRegExp=Ba,yi.isSafeInteger=function(e){return Na(e)&&e>=-L&&e<=L},yi.isSet=Pa,yi.isString=Ua,yi.isSymbol=Ha,yi.isTypedArray=$a,yi.isUndefined=function(e){return e===n},yi.isWeakMap=function(e){return Ia(e)&&Go(e)==le},yi.isWeakSet=function(e){return Ia(e)&&rr(e)==ce},yi.join=function(e,t){return null==e?"":Mn.call(e,t)},yi.kebabCase=El,yi.last=Ts,yi.lastIndexOf=function(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r;return i!==n&&(o=(o=Ga(i))<0?Zn(r+o,0):Jn(o,r-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):yn(e,_n,o,!0)},yi.lowerCase=Ml,yi.lowerFirst=Cl,yi.lt=Wa,yi.lte=qa,yi.max=function(e){return e&&e.length?Gi(e,Rl,or):n},yi.maxBy=function(e,t){return e&&e.length?Gi(e,Ho(t,2),or):n},yi.mean=function(e){return kn(e,Rl)},yi.meanBy=function(e,t){return kn(e,Ho(t,2))},yi.min=function(e){return e&&e.length?Gi(e,Rl,vr):n},yi.minBy=function(e,t){return e&&e.length?Gi(e,Ho(t,2),vr):n},yi.stubArray=Yl,yi.stubFalse=Ql,yi.stubObject=function(){return{}},yi.stubString=function(){return""},yi.stubTrue=function(){return!0},yi.multiply=tc,yi.nth=function(e,t){return e&&e.length?_r(e,Ga(t)):n},yi.noConflict=function(){return qt._===this&&(qt._=bt),this},yi.noop=Hl,yi.now=sa,yi.pad=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?qn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Eo(Kt(r),n)+e+Eo(Vt(r),n)},yi.padEnd=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?qn(e):0;return t&&i<t?e+Eo(t-i,n):e},yi.padStart=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?qn(e):0;return t&&i<t?Eo(t-i,n)+e:e},yi.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ei(Ja(e).replace(ze,""),t||0)},yi.random=function(e,t,i){if(i&&"boolean"!=typeof i&&Xo(e,t,i)&&(t=i=n),i===n&&("boolean"==typeof t?(i=t,t=n):"boolean"==typeof e&&(i=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 r=e;e=t,t=r}if(i||e%1||t%1){var o=ti();return Jn(e+o*(t-e+Ut("1e-"+((o+"").length-1))),t)}return Or(e,t)},yi.reduce=function(e,t,n){var i=Ea(e)?fn:Cn,r=arguments.length<3;return i(e,Ho(t,4),n,r,qi)},yi.reduceRight=function(e,t,n){var i=Ea(e)?mn:Cn,r=arguments.length<3;return i(e,Ho(t,4),n,r,Vi)},yi.repeat=function(e,t,i){return t=(i?Xo(e,t,i):t===n)?1:Ga(t),Dr(Ja(e),t)},yi.replace=function(){var e=arguments,t=Ja(e[0]);return e.length<3?t:t.replace(e[1],e[2])},yi.result=function(e,t,i){var r=-1,o=(t=Jr(t,e)).length;for(o||(o=1,e=n);++r<o;){var s=null==e?n:e[vs(t[r])];s===n&&(r=o,s=i),e=Aa(s)?s.call(e):s}return e},yi.round=nc,yi.runInContext=e,yi.sample=function(e){return(Ea(e)?Ti:Tr)(e)},yi.size=function(e){if(null==e)return 0;if(Ca(e))return Ua(e)?qn(e):e.length;var t=Go(e);return t==Z||t==re?e.size:mr(e).length},yi.snakeCase=Ol,yi.some=function(e,t,i){var r=Ea(e)?gn:Rr;return i&&Xo(e,t,i)&&(t=n),r(e,Ho(t,3))},yi.sortedIndex=function(e,t){return Fr(e,t)},yi.sortedIndexBy=function(e,t,n){return Br(e,t,Ho(n,2))},yi.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=Fr(e,t);if(i<n&&xa(e[i],t))return i}return-1},yi.sortedLastIndex=function(e,t){return Fr(e,t,!0)},yi.sortedLastIndexBy=function(e,t,n){return Br(e,t,Ho(n,2),!0)},yi.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Fr(e,t,!0)-1;if(xa(e[n],t))return n}return-1},yi.startCase=Dl,yi.startsWith=function(e,t,n){return e=Ja(e),n=null==n?0:Pi(Ga(n),0,e.length),t=Hr(t),e.slice(n,n+t.length)==t},yi.subtract=ic,yi.sum=function(e){return e&&e.length?On(e,Rl):0},yi.sumBy=function(e,t){return e&&e.length?On(e,Ho(t,2)):0},yi.template=function(e,t,i){var r=yi.templateSettings;i&&Xo(e,t,i)&&(t=n),e=Ja(e),t=tl({},t,r,No);var o,s,l=tl({},t.imports,r.imports,No),c=pl(l),u=An(l,c),p=0,d=t.interpolate||Je,h="__p += '",f=ot((t.escape||Je).source+"|"+d.source+"|"+(d===Te?We:Je).source+"|"+(t.evaluate||Je).source+"|$","g"),m="//# sourceURL="+(ht.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rt+"]")+"\n";e.replace(f,(function(t,n,i,r,a,l){return i||(i=r),h+=e.slice(p,l).replace(Xe,Fn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),p=l+t.length,t})),h+="';\n";var g=ht.call(t,"variable")&&t.variable;if(g){if(He.test(g))throw new tt(a)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(we,""):h).replace(_e,"$1").replace(ke,"$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 v=Nl((function(){return nt(c,m+"return "+h).apply(n,u)}));if(v.source=h,Ta(v))throw v;return v},yi.times=function(e,t){if((e=Ga(e))<1||e>L)return[];var n=R,i=Jn(e,R);t=Ho(t),e-=R;for(var r=Dn(i,t);++n<e;)t(n);return r},yi.toFinite=Ka,yi.toInteger=Ga,yi.toLength=Ya,yi.toLower=function(e){return Ja(e).toLowerCase()},yi.toNumber=Qa,yi.toSafeInteger=function(e){return e?Pi(Ga(e),-L,L):0===e?e:0},yi.toString=Ja,yi.toUpper=function(e){return Ja(e).toUpperCase()},yi.trim=function(e,t,i){if((e=Ja(e))&&(i||t===n))return Sn(e);if(!e||!(t=Hr(t)))return e;var r=Vn(e),o=Vn(t);return eo(r,jn(r,o),Ln(r,o)+1).join("")},yi.trimEnd=function(e,t,i){if((e=Ja(e))&&(i||t===n))return e.slice(0,Kn(e)+1);if(!e||!(t=Hr(t)))return e;var r=Vn(e);return eo(r,0,Ln(r,Vn(t))+1).join("")},yi.trimStart=function(e,t,i){if((e=Ja(e))&&(i||t===n))return e.replace(ze,"");if(!e||!(t=Hr(t)))return e;var r=Vn(e);return eo(r,jn(r,Vn(t))).join("")},yi.truncate=function(e,t){var i=C,r=O;if(La(t)){var o="separator"in t?t.separator:o;i="length"in t?Ga(t.length):i,r="omission"in t?Hr(t.omission):r}var s=(e=Ja(e)).length;if(Bn(e)){var a=Vn(e);s=a.length}if(i>=s)return e;var l=i-qn(r);if(l<1)return r;var c=a?eo(a,0,l).join(""):e.slice(0,l);if(o===n)return c+r;if(a&&(l+=c.length-l),Ba(o)){if(e.slice(l).search(o)){var u,p=c;for(o.global||(o=ot(o.source,Ja(qe.exec(o))+"g")),o.lastIndex=0;u=o.exec(p);)var d=u.index;c=c.slice(0,d===n?l:d)}}else if(e.indexOf(Hr(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r},yi.unescape=function(e){return(e=Ja(e))&&Ce.test(e)?e.replace(Ee,Gn):e},yi.uniqueId=function(e){var t=++ft;return Ja(e)+t},yi.upperCase=Sl,yi.upperFirst=Tl,yi.each=Js,yi.eachRight=Xs,yi.first=Cs,Ul(yi,function(){var e={};return Xi(yi,(function(t,n){ht.call(yi.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),yi.VERSION=i,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){yi[e].placeholder=yi})),sn(["drop","take"],(function(e,t){ki.prototype[e]=function(i){i=i===n?1:Zn(Ga(i),0);var r=this.__filtered__&&!t?new ki(this):this.clone();return r.__filtered__?r.__takeCount__=Jn(i,r.__takeCount__):r.__views__.push({size:Jn(i,R),type:e+(r.__dir__<0?"Right":"")}),r},ki.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),sn(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=n==T||n==N;ki.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ho(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),sn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");ki.prototype[e]=function(){return this[n](1).value()[0]}})),sn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");ki.prototype[e]=function(){return this.__filtered__?new ki(this):this[n](1)}})),ki.prototype.compact=function(){return this.filter(Rl)},ki.prototype.find=function(e){return this.filter(e).head()},ki.prototype.findLast=function(e){return this.reverse().find(e)},ki.prototype.invokeMap=Sr((function(e,t){return"function"==typeof e?new ki(this):this.map((function(n){return cr(n,e,t)}))})),ki.prototype.reject=function(e){return this.filter(ma(Ho(e)))},ki.prototype.slice=function(e,t){e=Ga(e);var i=this;return i.__filtered__&&(e>0||t<0)?new ki(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==n&&(i=(t=Ga(t))<0?i.dropRight(-t):i.take(t-e)),i)},ki.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ki.prototype.toArray=function(){return this.take(R)},Xi(ki.prototype,(function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=yi[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(yi.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof ki,c=a[0],u=l||Ea(t),p=function(e){var t=o.apply(yi,hn([e],a));return r&&d?t[0]:t};u&&i&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,h=!!this.__actions__.length,f=s&&!d,m=l&&!h;if(!s&&u){t=m?t:new ki(this);var g=e.apply(t,a);return g.__actions__.push({func:Ks,args:[p],thisArg:n}),new _i(g,d)}return f&&m?e.apply(this,a):(g=this.thru(p),f?r?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",i=/^(?:pop|shift)$/.test(e);yi.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Ea(r)?r:[],e)}return this[n]((function(n){return t.apply(Ea(n)?n:[],e)}))}})),Xi(ki.prototype,(function(e,t){var n=yi[t];if(n){var i=n.name+"";ht.call(ui,i)||(ui[i]=[]),ui[i].push({name:t,func:n})}})),ui[xo(n,v).name]=[{name:"wrapper",func:n}],ki.prototype.clone=function(){var e=new ki(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},ki.prototype.reverse=function(){if(this.__filtered__){var e=new ki(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ki.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ea(e),i=t<0,r=n?e.length:0,o=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Jn(t,e+s);break;case"takeRight":e=Zn(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=o.start,a=o.end,l=a-s,c=i?a:s-1,u=this.__iteratees__,p=u.length,d=0,h=Jn(l,this.__takeCount__);if(!n||!i&&r==l&&h==l)return Kr(e,this.__actions__);var f=[];e:for(;l--&&d<h;){for(var m=-1,g=e[c+=t];++m<p;){var v=u[m],b=v.iteratee,y=v.type,x=b(g);if(y==A)g=x;else if(!x){if(y==T)continue e;break e}}f[d++]=g}return f},yi.prototype.at=Gs,yi.prototype.chain=function(){return Vs(this)},yi.prototype.commit=function(){return new _i(this.value(),this.__chain__)},yi.prototype.next=function(){this.__values__===n&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},yi.prototype.plant=function(e){for(var t,i=this;i instanceof wi;){var r=ys(i);r.__index__=0,r.__values__=n,t?o.__wrapped__=r:t=r;var o=r;i=i.__wrapped__}return o.__wrapped__=e,t},yi.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ki){var t=e;return this.__actions__.length&&(t=new ki(this)),(t=t.reverse()).__actions__.push({func:Ks,args:[Ls],thisArg:n}),new _i(t,this.__chain__)}return this.thru(Ls)},yi.prototype.toJSON=yi.prototype.valueOf=yi.prototype.value=function(){return Kr(this.__wrapped__,this.__actions__)},yi.prototype.first=yi.prototype.head,St&&(yi.prototype[St]=function(){return this}),yi}();Kt?((Kt.exports=Yn)._=Yn,Vt._=Yn):qt._=Yn}).call(B)}(rP,rP.exports);const oP=()=>document.documentElement.style.setProperty("--focus-background-color","rgba(234, 243, 252, 0.5)"),sP=()=>document.documentElement.style.setProperty("--focus-background-color","transparent"),aP={onMouseEnter:oP,onMouseLeave:sP},lP=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?aP:{}};function cP(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}var uP="undefined"!=typeof window&&"undefined"!=typeof document;function pP(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function dP(){return uP&&document.createElement("div")}function hP(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(!hP(e[n],t[n]))return!1}return!0}return!1}function fP(e){var t=[];return e.forEach((function(e){t.find((function(t){return hP(e,t)}))||t.push(e)})),t}var mP=uP?c:r;function gP(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var vP={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 i(){e.props.className&&!n()||gP(t,"add",e.props.className)}return{onCreate:i,onBeforeUpdate:function(){n()&&gP(t,"remove",e.props.className)},onAfterUpdate:i}}};function bP(e){return function(r){var o=r.children,s=r.content,a=r.visible,c=r.singleton,u=r.render,p=r.reference,d=r.disabled,h=void 0!==d&&d,f=r.ignoreAttributes,m=void 0===f||f;r.__source,r.__self;var g,v,b=cP(r,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),y=void 0!==a,x=void 0!==c,w=n(!1),_=w[0],k=w[1],E=n({}),M=E[0],C=E[1],O=n(),D=O[0],S=O[1],T=(g=function(){return{container:dP(),renders:1}},(v=i()).current||(v.current="function"==typeof g?g():g),v.current),A=Object.assign({ignoreAttributes:m},b,{content:T.container});y&&(A.trigger="manual",A.hideOnClick=!1),x&&(h=!0);var N=A,j=A.plugins||[];u&&(N=Object.assign({},A,{plugins:x&&null!=c.data?[].concat(j,[{fn:function(){return{onTrigger:function(e,t){var n=c.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,S(n.content)}}}}]):j,render:function(){return{popper:T.container}}}));var L=[p].concat(o?[o.type]:[]);return mP((function(){var t=p;p&&p.hasOwnProperty("current")&&(t=p.current);var n=e(t||T.ref||dP(),Object.assign({},N,{plugins:[vP].concat(A.plugins||[])}));return T.instance=n,h&&n.disable(),a&&n.show(),x&&c.hook({instance:n,content:s,props:N,setSingletonContent:S}),k(!0),function(){n.destroy(),null==c||c.cleanup(n)}}),L),mP((function(){var e;if(1!==T.renders){var t,n,i,r,o=T.instance;o.setProps((t=o.props,n=N,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:fP([].concat((null==(i=t.popperOptions)?void 0:i.modifiers)||[],(null==(r=n.popperOptions)?void 0:r.modifiers)||[]))})}))),null==(e=o.popperInstance)||e.forceUpdate(),h?o.disable():o.enable(),y&&(a?o.show():o.hide()),x&&c.hook({instance:o,content:s,props:N,setSingletonContent:S})}else T.renders++})),mP((function(){var e;if(u){var t=T.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,i=null==(t=n.modifiersData)?void 0:t.hide;M.placement===n.placement&&M.referenceHidden===(null==i?void 0:i.isReferenceHidden)&&M.escaped===(null==i?void 0:i.hasPopperEscaped)||C({placement:n.placement,referenceHidden:null==i?void 0:i.isReferenceHidden,escaped:null==i?void 0:i.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[M.placement,M.referenceHidden,M.escaped].concat(L)),t.createElement(t.Fragment,null,o?l(o,{ref:function(e){T.ref=e,pP(o.ref,e)}}):null,_&&z(u?u(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(M),D,T.instance):s,T.container))}}var yP=function(e,n){return a((function(i,r){var o=i.children,s=cP(i,["children"]);return t.createElement(e,Object.assign({},n,s),o?l(o,{ref:function(e){pP(r,e),pP(o.ref,e)}}):null)}))},xP=yP(bP(rD));class wP extends t.Component{constructor(e){super(e),Nd(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)})),Nd(this,"selectItem",(e=>{const{items:t,editor:n,range:i}=this.props,r=t[e],o=r&&r.command,s=dg(r.items);o&&s&&r.command({editor:n,range:i})})),Nd(this,"upHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+e.length-1)%e.length})})),Nd(this,"downHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+1)%e.length})})),Nd(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),Nd(this,"leftArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t}=this.props;e>0&&t(e-1)})),Nd(this,"rightArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t,items:n}=this.props,{selectedIndex:i}=this.state,r=n[i];r&&!dg(r.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:i}=this.props,r=n===i;t!==e.items&&this.setState({selectedIndex:0}),pF({wrapperRef:this.menuRef,index:this.state.selectedIndex}),r?document.addEventListener("keydown",this.keydownHandler):document.removeEventListener("keydown",this.keydownHandler)}render(){const{items:e,menuIndex:n,activeMenuIndex:i}=this.props,{selectedIndex:r}=this.state,o=n===i;return t.createElement("div",{className:"neeto-editor-slash-commands__wrapper",ref:this.menuRef},e.map(((e,i)=>{const s=dg(e.items),a=t.createElement(_P,{index:i,item:e,key:e.title,selectItem:()=>s&&this.selectItem(i),selectedIndex:o?r:-1,onHover:()=>this.setState({selectedIndex:i})});return s?a:t.createElement(xP,{interactive:!0,key:e.title,placement:"right",visible:r===i,content:t.createElement(wP,Db({},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 _P=a(((e,n)=>{let{item:i,selectedIndex:r,index:o,selectItem:s,onHover:a}=e;const{Icon:l}=i;return t.createElement("div",{"data-cy":`neeto-editor-command-list-item-${o}`,ref:n,className:W("neeto-editor-slash-commands__item",{active:o===r}),onClick:s,onMouseEnter:a},l&&t.createElement(l,{size:20}),t.createElement("div",{className:"neeto-editor-slash-commands__item-content"},t.createElement("h5",null,i.title),t.createElement("p",null,i.description)))}));class kP extends t.Component{constructor(){super(...arguments),Nd(this,"state",{activeMenuIndex:0}),Nd(this,"onKeyDown",(e=>{let{event:t}=e;return["Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)})),Nd(this,"setActiveMenuIndex",(e=>this.setState({activeMenuIndex:e})))}render(){return t.createElement(wP,Db({},this.props,{activeMenuIndex:this.state.activeMenuIndex,items:this.props.items,menuIndex:0,setActiveMenuIndex:this.setActiveMenuIndex}))}}const EP=[{optionName:q.PARAGRAPH,title:"Paragraph",description:"Add a plain text block.",Icon:sp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("paragraph").run()}},{optionName:q.H1,title:"H1",description:"Add a big heading.",Icon:xp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:1}).run()}},{optionName:q.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:q.H3,title:"H3",description:"Add a sub-heading of level 3.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:3}).run()}},{optionName:q.H4,title:"H4",description:"Add a sub-heading of level 4.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:4}).run()}},{optionName:q.H5,title:"H5",description:"Add a sub-heading of level 5.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:5}).run()}},{optionName:q.H6,title:"H6",description:"Add a sub-heading of level 6.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:6}).run()}},{optionName:q.LIST_ORDERED,title:"Numbered list",description:"Add a list with numbering.",Icon:Gu,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleOrderedList().run()}},{optionName:q.LIST_BULLETS,title:"Bulleted list",description:"Add a list with bullets.",Icon:Vu,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBulletList().run()}},{optionName:q.IMAGE_UPLOAD,title:"Image",description:"Add an image.",Icon:Pu,command:hg},{optionName:q.VIDEO_UPLOAD,title:"Video",description:"Add a video.",Icon:Qu,command:hg},{optionName:q.ATTACHMENTS,title:"Attachments",description:"Add an attachment.",Icon:zu,command:hg},{optionName:q.BLOCKQUOTE,title:"Blockquote",description:"Add a quote.",Icon:xu,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBlockquote().run()}},{optionName:q.CODE_BLOCK,title:"Code block",description:"Add a code block with syntax highlighting.",Icon:Du,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleCodeBlock().run()}},{optionName:q.EMOJI,title:"Emoji",description:"Add an emoji.",Icon:fp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).insertContent("::").run()}},{optionName:q.DIVIDER,title:"Divider",description:"Add an horizontal line to separate sections.",Icon:np,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setHorizontalRule().run()}},{optionName:q.VIDEO_EMBED,title:"Embed Youtube/Loom/Vimeo",description:"Embed a video from major services.",Icon:Np,command:hg},{optionName:q.PASTE_UNFORMATTED,title:"Paste Unformatted",description:"Paste by removing all styles.",Icon:rp,command:e=>{let{editor:t,range:n}=e;return t.chain().focus().deleteRange(n).pasteUnformatted().run()}}],MP={title:"No results",command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).run()}},CP=e=>{let{editor:t,range:n}=e;const i=prompt("Please enter Youtube/Loom/Vimeo embed URL."),r=!!i&&(DP(i)||TP(i)||SP(i));r?t.chain().focus().deleteRange(n).setExternalVideo({src:r}).run():t.chain().focus().deleteRange(n).insertContent("#invalid").run()},OP=e=>{let{options:t,addonCommands:n,setMediaUploader:i}=e;const r=EP.map((e=>e.optionName===q.IMAGE_UPLOAD?gb("command",(e=>t=>{let{editor:n,range:i}=t;e(gb("image",!0)),n.chain().focus().deleteRange(i).run()})(i),e):e.optionName===q.VIDEO_UPLOAD?gb("command",(e=>t=>{let{editor:n,range:i}=t;e(gb("video",!0)),n.chain().focus().deleteRange(i).run()})(i),e):e.optionName===q.VIDEO_EMBED?gb("command",CP,e):e));return[...r.filter((e=>{let{optionName:n}=e;return t.includes(n)})),...n]},DP=e=>{const t=e.match(Y);return t&&`https://www.youtube.com/embed/${t[5]}`},SP=e=>{const t=e.match(Q);return t&&`https://player.vimeo.com/video/${t[4]}?h=${t[5]}`},TP=e=>{const t=e.match(Z);return t&&`https://www.loom.com/embed/${t[4]}?t=${t[5]||""}`},AP=new Xx("commands");var NP=e=>{let{addonCommands:t,options:n,setMediaUploader:i}=e;const r=OP({options:n,addonCommands:t,setMediaUploader:i});return iM.create({name:"slash-commands",addOptions:()=>({HTMLAttributes:{class:"commands"},suggestion:{char:"/",startOfLine:!1,pluginKey:AP,command:e=>{let{editor:t,range:n,props:i}=e;i.command({editor:t,range:n})},items:e=>{let{query:t}=e;const n=r.filter((e=>{let{title:n}=e;return n.toLowerCase().includes(t.toLowerCase())}));return rP.exports.isEmpty(n)?[MP]:n},render:()=>{let e,t;return{onStart:n=>{e=new vD(kP,{props:n,editor:n.editor}),t=rD("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"}),oP()},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(),sP()}}}}}),addProseMirrorPlugins(){return[CI({editor:this.editor,...this.options.suggestion})]}})};const jP=e=>{let{onClickVariable:n,variables:i}=e;const r=function(){const e=[],t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{const{category_key:i,category_label:r,variables:o}=n;if(i&&o){const e=o.map(gb("category_key",i));t.push({label:r,variables:e})}else e.push(n)})),rP.exports.isEmpty(e)||t.push({label:rP.exports.isEmpty(t)?null:"Others",variables:e}),t}(i);return Sd(i)?null:t.createElement("div",{className:"neeto-editor-variables-list"},r.map(((e,i)=>{let{label:r,variables:o}=e;return t.createElement(LP,{index:i,key:i,title:r,variables:o,onClickItem:n})})))},LP=e=>{let{index:n,title:i,variables:r,onClickItem:o}=e;return t.createElement("div",{className:"neeto-editor-variables-block","data-cy":`neeto-editor-variable-option-category-${n}`},i&&t.createElement("h6",null,i),t.createElement("div",{className:"neeto-editor-variables-row"},r.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)))))},IP=e=>{let{items:n,command:i}=e;return t.createElement("div",{className:"neeto-editor-variables-suggestion"},t.createElement(jP,{variables:n,onClickVariable:e=>{const{category_key:t,key:n}=e,r=t?`${t}.${n}`:n;i({label:r,id:r})}}))},zP=new Xx("variables"),RP=GM.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",BE({"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,i=!1;const{selection:r}=n,{empty:o,anchor:s}=r;return!!o&&(n.doc.nodesBetween(s-1,s,((e,n)=>{if(e.type.name===this.name)return i=!0,t.insertText("",n,n+e.nodeSize),!1})),i)}))}},addProseMirrorPlugins(){return[CI({editor:this.editor,...this.options.suggestion})]}}),FP={char:"{{",startOfLine:!1,pluginKey:zP,command:e=>{let{editor:t,range:n,props:i}=e;t.chain().focus().deleteRange(n).setVariable(i).run()},items:()=>[],render:()=>{let e,t;return{onStart:n=>{e=new vD(IP,{props:n,editor:n.editor}),t=rD("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 BP=e=>{let{suggestion:t={}}=e;return RP.configure({suggestion:{...FP,...t}})};const PP=e=>{var n;let{node:r,editor:o,getPos:s,updateAttributes:a,deleteNode:l}=e;const c=i(null),{alt:u,src:p,vidheight:d,vidwidth:h,align:f}=r.attrs,{view:m}=o;let g=d,v=h;const b=c.current?null===(n=c.current.querySelector("figcaption>div"))||void 0===n?void 0:n.textContent:u;return t.createElement(gD,{className:`neeto-editor__image-wrapper neeto-editor__image--${f}`},t.createElement("figure",{ref:c},t.createElement(tF,{align:f,deleteNode:l,updateAttributes:a}),t.createElement(eF,{lockAspectRatio:!0,className:"neeto-editor__image",size:{height:g,width:v},onResizeStop:(e,t,n)=>{g=n.offsetHeight,v=n.offsetWidth,m.dispatch(m.state.tr.setNodeMarkup(s(),void 0,{...r.attrs,vidheight:g,vidwidth:v,height:g,width:v})),o.commands.focus()}},t.createElement("video",Db({controls:!0},r.attrs,{alt:b,preload:"metadata",src:p}))),t.createElement(mD,{as:"figcaption",className:W({"is-empty":Sd(b)})})))},UP=GM.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:i,src:r,vidheight:o,vidwidth:s}=t.attrs,a={class:"neeto-editor__image",style:`height:${o}px;width:${s}px;`};return["a",{href:r,target:"_blank",rel:"noopener noreferrer",class:`neeto-editor__image-wrapper neeto-editor__image--${i}`},["figure",BE(this.options.HTMLAttributes,{"data-video":""}),["div",a,["video",BE(n,{preload:"metadata",controls:!0,draggable:!1,contenteditable:!1})]],["figcaption",0]]]},addNodeView:()=>yD(PP),addCommands(){return{setVideo:e=>{let{caption:t,...n}=e;return e=>{let{chain:i}=e;return i().insertContent({type:this.name,attrs:n,content:t?[{type:"text",text:t}]:[]}).command((e=>{let{tr:t,commands:n}=e;const{doc:i,selection:r}=t,o=i.resolve(r.to).end();return n.setTextSelection(o)})).run()}}}}}),HP=e=>{var i;let{uppy:o}=e;const[s,a]=n(0);r((()=>{o.on("upload-progress",((e,t)=>{let{progress:n}=t;return a(n)}))}),[o]);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===(i=o.getFiles()[0])||void 0===i?void 0:i.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(f,{icon:Cu,size:"small",style:"text",onClick:()=>o.cancelAll()})),t.createElement("div",{className:"neeto-editor-progress-bar__indicator"},t.createElement("div",{className:"neeto-editor-progress-bar__indicator-inner",style:{width:l}}))))},$P=e=>{let{isImage:n,endpoint:i,onSuccess:r}=e;const o=n?ic:rc,{uppy:s,isUploading:a}=eb({endpoint:i,uppyConfig:o,onSuccess:r});return a?t.createElement(HP,{uppy:s}):t.createElement("div",{className:"ne-media-uploader__dnd-wrapper"},t.createElement(xl,{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: ${jp(o.restrictions.maxFileSize)}`}))},WP=e=>{let{isImage:i,url:r,editor:o,onClose:s,alt:a=""}=e;const[l,c]=n(a||""),[u,p]=n(!1),d=()=>{i?o.chain().focus().setFigure({src:r,caption:l,alt:l}).run():o.chain().focus().setVideo({src:r,caption:l,alt:l}).run(),s()};return t.createElement("div",{className:"ne-media-editor",onKeyDown:e=>{"Enter"===e.key&&d()}},u?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,i?t.createElement("img",{loading:"lazy",src:r,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}):t.createElement("video",{src:r,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}),t.createElement(h,{autoFocus:!0,label:"Caption",placeholder:"Enter a caption",value:l,onChange:e=>c(e.target.value)})),t.createElement("div",{className:"ne-media-editor__footer"},t.createElement(f,{disabled:u,label:"Done",onClick:d}),t.createElement(f,{label:"Cancel",style:"text",onClick:s})))};var qP={},VP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},KP=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 i(e,t){return t._once=!0,n(e,t),this}function r(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,i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];var a=t[e]&&t[e].slice();return a&&a.forEach((function(t){t._once&&r(e,t),t.apply(n,o)})),this}return VP({},e,{on:n,once:i,off:r,emit:o})},GP=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,i=void 0,r=void 0,o=void 0,s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,p=void 0,d=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,v=e.container.nodeType?e.container:document.querySelector(e.container),b={all:function(){return k(v.children)},new:function(){return k(v.children).filter((function(e){return!e.hasAttribute(""+f)}))}},y=[C,O,D],x=[S,T,A,N],w=KP({pack:I,update:z,resize:R});return w;function _(e){e.forEach((function(e){return e()}))}function k(e){return Array.prototype.slice.call(e)}function E(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 C(){i=M()}function O(){r=-1===i?m[m.length-1]:m[i]}function D(){s=E(r.columns)}function S(){p=b[t?"new":"all"]()}function T(){0!==p.length&&(d=p.map((function(e){return e.clientWidth})),h=p.map((function(e){return e.clientHeight})))}function A(){p.forEach((function(e,t){o=s.indexOf(Math.min.apply(Math,s)),e.style.position="absolute",a=s[o]+"px",l=o*d[t]+o*r.gutter+"px",g?(e.style.top=a,e.style.left=l):e.style.transform="translate3d("+l+", "+a+", 0)",e.setAttribute(f,""),c=d[t],u=h[t],c&&u&&(s[o]+=u+r.gutter)}))}function N(){v.style.position="relative",v.style.width=r.columns*c+(r.columns-1)*r.gutter+"px",v.style.height=Math.max.apply(Math,s)-r.gutter+"px"}function j(){n||(window.requestAnimationFrame(L),n=!0)}function L(){i!==M()&&(I(),w.emit("resize",r)),n=!1}function I(){return t=!1,_(y.concat(x)),w.emit("pack")}function z(){return t=!0,_(x),w.emit("update")}function R(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",j),w}}}),YP=U(GP),QP={exports:{}},ZP={exports:{}};!function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=t,o=a(r),s=a(Oa.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),i(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),i=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:r.scrollTop;i=this.props.isReverse?o:this.calculateOffset(e,o)}else i=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;i<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,i=t.element,r=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 i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);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 r&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(i,c,u)}}]),t}(r.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"]}(ZP,ZP.exports),QP.exports=ZP.exports,Object.defineProperty(qP,"__esModule",{value:!0});var JP,XP,eU=qP.default=void 0,tU=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),nU=t,iU=aU(nU),rU=aU(Oa.exports),oU=aU(YP),sU=aU(QP.exports);function aU(e){return e&&e.__esModule?e:{default:e}}function lU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cU(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 uU=(XP=JP=function(e){function t(){var e,n,i;lU(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=cU(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),i.setContainerRef=function(e){i.masonryContainer=e},i.forcePack=function(){i.masonryContainer&&i.state.instance.pack()},i.forceUpdate=function(){i.masonryContainer&&i.state.instance.update()},i.createNewInstance=function(){var e=i.props,t=e.packed,n=e.sizes,r=e.children,o=e.position,s=(0,oU.default)({container:i.masonryContainer,packed:t,sizes:n,position:o});s.resize(!0),r.length>0&&s.pack(),i.setState((function(){return{instance:s}}))},cU(i,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,nU.Component),tU(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,i=e.style;e.pack,e.packed,e.position,e.sizes;var r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["children","className","style","pack","packed","position","sizes"]);return iU.default.createElement(sU.default,r,iU.default.createElement("div",{ref:this.setContainerRef,className:n,style:i},t))}}]),t}(),JP.propTypes={children:rU.default.arrayOf(rU.default.element).isRequired,className:rU.default.string,initialLoad:rU.default.bool,pack:rU.default.bool,packed:rU.default.string,position:rU.default.bool,sizes:rU.default.array,style:rU.default.object},JP.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:{}},XP);eU=qP.default=uU;const pU=e=>{let{onSubmit:o,unsplashApiKey:s}=e;const a=i(null),[l,c]=n(""),[u,p]=n(!1),[d,f]=n([]),[m,g]=n(1),[v,y]=n(!0),[x,w]=n(!1),_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[i,o]=n(e);return r((()=>{const n=setTimeout((()=>{o(e)}),t);return()=>{clearTimeout(n)}}),[e]),i}(l||"latest");r((()=>{k(1)}),[_]);const k=async e=>{try{w(!0),p(!1);const t=await(e=>{let{pageNo:t,query:n,apiKey:i}=e;return ig.get(V,{headers:{Authorization:`Client-ID ${i}`},params:{page:t,per_page:30,order_by:"popular",query:n}})})({page:e,query:_,apiKey:s}),{data:{results:n,total_pages:i}}=t;f(1===e?n:[...d,...n]),g(e+1),y(e<i)}catch{p(!0)}finally{w(!1)}};return t.createElement("div",{className:"neeto-editor-unsplash-wrapper"},t.createElement(h,{autoFocus:!0,"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&&!x&&dg(d)&&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(eU,{pack:!0,position:!0,className:"neeto-editor-unsplash-gallery",hasMore:v,loadMore:()=>{!x&&v&&m>1&&k(m)},loader:t.createElement(b,null),ref:a,style:{width:"100%"},useWindow:!1,sizes:[{columns:3,gutter:0},{mq:"768px",columns:3,gutter:0},{mq:"1024px",columns:3,gutter:0}]},d&&d.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:()=>o(e.urls.small)}),t.createElement("a",{href:`https://unsplash.com/@${e.user.username}`,rel:"noreferrer",target:"_blank"},e.user.name," "))))))),!v&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text"},"End of results")))},dU=e=>{let{buttonLabel:i="Submit",placeholder:r,onSubmit:o,className:s}=e;const[a,l]=n(""),[c,u]=n("");return t.createElement("div",{className:W("neeto-editor-url-form__wrapper",{[s]:s})},t.createElement(h,{autoFocus:!0,"data-cy":"neeto-editor-media-upload-url-input",error:c,name:"url",placeholder:r,value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)},onFocus:()=>u("")}),t.createElement(f,{"data-cy":"neeto-editor-media-upload-url-submit",disabled:!a,label:i,onClick:e=>{e.preventDefault(),G.test(a)?o(a):u("Please enter a valid url")}}))},hU=e=>{let{mediaUploader:i,onClose:r,editor:o,uploadEndpoint:s,unsplashApiKey:a}=e;const[l,c]=n("local"),[u,p]=n(""),d=i.image||i.video;let h=a?sc:sc.slice(0,2);i.video&&(h=[]);const f=()=>{r(),p(""),c("local")};return t.createElement(x,{closeButton:!1,isOpen:d,onClose:f},t.createElement("div",{className:"ne-media-uploader"},!rP.exports.isEmpty(h)&&t.createElement(w,null,h.map((e=>{let{key:n,title:i}=e;return t.createElement(w.Item,{active:l===n,key:n,onClick:()=>c(n)},i)}))),t.createElement("div",{className:"ne-media-uploader__content"},u?t.createElement(WP,{editor:o,isImage:i.image,url:u,onClose:f}):t.createElement(t.Fragment,null,"local"===l&&t.createElement($P,{endpoint:s,isImage:i.image,onSuccess:p}),"link"===l&&t.createElement(dU,{placeholder:"Paste the link here...",buttonLabel:i.image?"Upload image":"Upload video",onSubmit:p}),"unsplash"===l&&t.createElement(pU,{unsplashApiKey:a,onSubmit:p})))))};var fU=[],mU=[];function gU(e,t){if(e&&"undefined"!=typeof document){var n,i=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var s=fU.indexOf(o);-1===s&&(s=fU.push(o)-1,mU[s]={}),n=mU[s]&&mU[s][i]?mU[s][i]:mU[s][i]=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),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var s="prepend"===i?"afterbegin":"beforeend";return o.insertAdjacentElement(s,e),e}}gU(".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 vU=e=>{let{editor:i,handleClose:o,handleAnimateInvalidLink:s}=e;const[a,l]=n("");r((()=>{l(i.getAttributes("link").href||"")}),[]);const c=()=>{G.test(a)?(i.chain().focus().setLink({href:a}).run(),o()):dg(a)?(i.chain().focus().unsetLink().run(),o()):(l(""),s())};return t.createElement("div",{className:"neeto-editor-bubble-menu__link",onKeyDown:e=>{"Escape"===e.key?o():"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(f,{"data-cy":"neeto-editor-link-cancel-button",icon:Cu,size:"small",style:"icon",onClick:()=>{a?(l(""),i.chain().focus().unsetLink().run()):o()}}))},bU=16,yU="#2F3941",xU="#68737D",wU=e=>{let{icon:n,iconActive:i=!1,tooltipProps:r,highlight:o=!1,color:s,disabled:a,label:l,...c}=e;return t.createElement(d,r,t.createElement("button",Db({disabled:a,type:"button",className:W("neeto-editor-menu__item",{active:i})},lP(o),c),l&&t.createElement("p",null,l),n&&t.createElement(n,{size:bU,color:s||(i?yU:xU)})))};wU.propTypes={icon:Oa.exports.oneOfType([Oa.exports.element,Oa.exports.func]),iconActive:Oa.exports.bool,onClick:Oa.exports.func,tooltipProps:Oa.exports.object};const _U=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s}=e;return t.createElement(wU,{color:"white","data-cy":`neeto-editor-bubble-menu-${o}-option`,highlight:s,icon:n,iconActive:r,key:o,tooltipProps:{content:pg(o),position:"bottom",theme:"dark",delay:[500]},onClick:i})},kU=e=>{let{editor:n,mentions:i}=e;const r=JB(i),{Menu:o,MenuItem:s}=g;return Sd(r)?null:t.createElement(g,{buttonStyle:"text","data-cy":"neeto-editor-mention-option",icon:Lu,strategy:"fixed",buttonProps:{tooltipProps:{content:"Mention",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(o,null,r.map((e=>{let{key:i,name:r,imageUrl:o}=e;return t.createElement(s.Button,{"data-cy":`neeto-editor-mention-option-${i}`,key:i,onClick:()=>n.commands.setMention({id:i,label:r})},t.createElement(y,{size:"small",user:{name:r,imageUrl:o}}),t.createElement(m,{style:"body2"},r))}))))},EU=e=>{let{editor:n}=e;return t.createElement(g,{buttonStyle:"text",closeOnSelect:!1,dropdownProps:{classNames:"neeto-editor-fixed-menu__emoji-dropdown"},icon:fp,position:"bottom-start",strategy:"fixed",buttonProps:{tooltipProps:{content:"Emoji",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(CR,{editor:n}))},MU=()=>t.createElement("span",{className:"neeto-editor-fixed-menu__separator"},t.createElement("span",null),t.createElement("span",null));var CU=zp((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t}));const OU=[{label:"Paragraph",value:0},{label:"Heading 1",value:1},{label:"Heading 2",value:2},{label:"Heading 3",value:3}],DU=e=>{let{editor:t,options:n,setMediaUploader:i}=e;const r=((e,t)=>({font:[{Icon:gp,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:Ep,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:Dp,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:bp,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:Fu,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"}],block:[{Icon:lp,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote",highlight:!0},{Icon:Du,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"}],list:[{Icon:Vu,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list",highlight:!0},{Icon:Gu,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list",highlight:!0}],misc:[{Icon:zu,command:()=>{},active:!1,optionName:"attachments"},{Icon:Pu,command:()=>t(gb("image",!0)),optionName:"image-upload"},{Icon:Qu,command:()=>t(gb("video",!0)),optionName:"video-upload"}],right:[{Icon:Tp,command:()=>e.chain().focus().undo().run(),active:!1,disabled:!e.can().undo(),optionName:"undo"},{Icon:up,command:()=>e.chain().focus().redo().run(),active:!1,disabled:!e.can().redo(),optionName:"redo"}]}))(t,i);return CU(["font","block","list","misc","right"].map((e=>[e,r[e].filter((e=>n.includes(e.optionName)))])))},SU=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s,disabled:a}=e;return t.createElement(f,Db({className:"neeto-editor-fixed-menu__item","data-cy":`neeto-editor-fixed-menu-${o}-option`,disabled:a,icon:n,key:o,style:r?"secondary":"text",tooltipProps:{content:pg(o),position:"bottom"},onClick:i},lP(s)))},TU=e=>{let{editor:t,commands:n}=e;const{to:i}=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:i,to:i}})}}}))},AU=e=>{let{editor:i,options:r,mentions:o,setIsInvalidLink:s,isLinkOptionActive:a,setIsLinkOptionActive:l,setMediaUploader:c}=e;const[u,p]=n(!1),d=(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:i}),h=(e=>{var t;return(null===(t=e.find(JF("active")))||void 0===t?void 0:t.optionName)||"Text"})(d),f=r.includes(q.EMOJI),m=r.includes(q.LINK),{font:g,block:v,list:b}=DU({editor:i,options:r,setMediaUploader:c}),y=()=>{s(!0),setTimeout((()=>{s(!1)}),1e3)},x=()=>p(!1);return a?t.createElement(vU,{editor:i,handleAnimateInvalidLink:y,handleClose:()=>l(!1)}):t.createElement(t.Fragment,null,t.createElement(xP,{interactive:!0,arrow:!1,placement:"bottom",visible:u,content:t.createElement("div",{className:"neeto-editor-bubble-menu__dropdown"},d.map((e=>{let{optionName:n,command:i}=e;return t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-item",key:n,type:"button",onClick:()=>{i(),x()}},n)}))),onClickOutside:x},t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-target",type:"button",onClick:()=>p((e=>!e))},h,t.createElement(Nu,{size:14}))),t.createElement(MU,null),g.map(_U),t.createElement(MU,null),v.map(_U),f&&t.createElement(EU,{editor:i,theme:"dark"}),t.createElement(MU,null),b.map(_U),t.createElement(MU,null),m&&_U({Icon:Wu,command:()=>l(!0),active:i.isActive("link"),optionName:"link",highlight:!1}),t.createElement(kU,{editor:i,mentions:o,menuType:"bubble"}))},NU=e=>{let{editor:i,options:r,mentions:o=[],setMediaUploader:s}=e;const[a,l]=n(!1),[c,u]=n(!1),p=i&&i.view.state.selection.node,d=p&&"image"===p.type.name,h=[q.BOLD,q.ITALIC,q.UNDERLINE,q.STRIKETHROUGH,q.LINK],f=dg(r.filter((e=>h.includes(e))));return!i||!d&&f?null:t.createElement("div",null,t.createElement(lD,{editor:i,className:W("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":a}),tippyOptions:{arrow:gO,zIndex:99999,onHide:()=>u(!1),theme:"neeto-editor-bubble-menu",maxWidth:500}},t.createElement(AU,{editor:i,isLinkOptionActive:c,mentions:o,options:r,setIsInvalidLink:l,setIsLinkOptionActive:u,setMediaUploader:s})))},{Menu:jU,MenuItem:LU}=g,IU=e=>{var n;let{editor:i}=e;const r=(null===(n=OU.find((e=>{let{value:t}=e;return n=t,i.isActive("heading",{level:n});var n})))||void 0===n?void 0:n.label)||"Paragraph";return t.createElement(g,{autoWidth:!0,buttonStyle:"text","data-cy":"neeto-editor-fixed-menu-font-size-option",label:r,placement:"bottom-start",buttonProps:{tooltipProps:{content:"Font size",position:"bottom"},className:"neeto-editor-fixed-menu__item neeto-editor-font-size__wrapper"}},t.createElement(jU,null,OU.map((e=>{let{label:n,value:r}=e;return t.createElement(LU.Button,{"data-cy":`neeto-editor-fixed-menu-font-size-option-${n}`,key:r,onClick:()=>{return(e=r)?i.chain().focus().toggleHeading({level:e}).run():i.chain().focus().setNode("paragraph").run();var e}},n)}))))},{Menu:zU}=g,RU=e=>{let{editor:i}=e;const[r,o]=n(""),[s,a]=n(""),[l,c]=n(!1),u=i.isActive("link"),p=()=>c(!1),d=()=>{G.test(s)?(i.chain().focus().setLink({href:s}).run(),p()):o("Please enter a valid url")};return t.createElement(g,{buttonStyle:u?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:Wu,isOpen:l,position:"bottom",buttonProps:{tooltipProps:{content:"Link",position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>c((e=>!e)),onClose:p},t.createElement(zU,{className:"neeto-editor-link__item",onKeyDown:e=>{"Escape"===e.key?p():"Enter"===e.key&&d()}},t.createElement(h,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-link-option-input",error:r,name:"url",placeholder:"Paste URL",value:s,onChange:e=>{let{target:{value:t}}=e;return a(t)},onFocus:()=>o("")}),t.createElement(f,{"data-cy":"neeto-editor-fixed-menu-link-option-link-button",label:"Link",onClick:d}),u&&t.createElement(f,{"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button",label:"Unlink",onClick:()=>{i.chain().focus().unsetLink().run(),p()}})))},{Menu:FU}=g,BU=e=>{let{editor:n,variables:i}=e;return Sd(i)?null:t.createElement(g,{buttonSize:"small",buttonStyle:"secondary","data-cy":"neeto-editor-variable-option",icon:_u,strategy:"fixed",buttonProps:{tooltipProps:{content:"Variables",position:"bottom"}}},t.createElement(FU,null,t.createElement(jP,{variables:i,onClickVariable:e=>{const{category_key:t,key:i}=e,r=t?`${t}.${i}`:i;n.chain().focus().setVariable({label:r}).run()}})))},PU=e=>{let{editor:n,options:i,mentions:r=[],variables:o=[],setMediaUploader:s,addonCommands:a=[],isIndependant:l=!0,className:c}=e;if(!n)return null;const{font:u,block:p,list:d,misc:h,right:f}=DU({editor:n,options:i,setMediaUploader:s}),m=i.filter((e=>e.match(/^h[1-6]$/))).length>0,g=i.includes(q.EMOJI),v=i.includes(q.LINK),b=TU({editor:n,commands:a});return t.createElement("div",{className:W("neeto-editor-fixed-menu",{"neeto-editor-fixed-menu--independant":l,[c]:c})},t.createElement("div",{className:"neeto-editor-fixed-menu__wrapper"},m&&t.createElement(IU,{editor:n}),u.map(SU),p.map(SU),g&&t.createElement(EU,{editor:n}),d.map(SU),v&&t.createElement(RU,{editor:n}),h.map(SU),t.createElement(kU,{editor:n,mentions:r}),b.map(SU),t.createElement("div",{className:"neeto-editor-fixed-menu__right-options"},f.map(SU))),t.createElement("div",{className:"neeto-editor-fixed-menu__variables"},t.createElement(BU,{editor:n,variables:o})))},UU=e=>{let{icon:n=null,onClick:i=(()=>{}),disabled:r=!1,className:o,tooltipProps:s,...a}=e;const l=n;return t.createElement(d,Db({disabled:!s,onClick:()=>i()},s),t.createElement("button",Db({className:W("ne-headless-btn",{[o]:o}),disabled:r,type:"button",onClick:i},a),n&&t.createElement(l,{"aria-hidden":"true",key:"2",size:18})))},HU={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t,props:{hideOnEsc:n,onClose:i}}=e;function r(e){"escape"===e.key.toLowerCase()&&n&&(i(),t())}return{onShow(){document.addEventListener("keydown",r)},onHide(){document.removeEventListener("keydown",r)}}}},$U=e=>{let{icon:i,isOpen:r,onClose:o=(()=>{}),children:s,className:a,onClick:l,buttonProps:c={},...u}=e;const[p,d]=n(!1);return t.createElement(xP,Db({hideOnEsc:!0,interactive:!0,animation:!1,arrow:!1,duration:0,hideOnClick:!1,maxWidth:"none",offset:0,plugins:[HU],popperOptions:{strategy:"fixed"},role:"dropdown",theme:"light",trigger:"click",visible:r,className:W("ne-headless-dropdown",{[a]:a}),content:p&&t.createElement("div",{className:"ne-headless-dropdown__popup"},s),onClickOutside:o,onClose:o,onHidden:()=>d(!1),onMount:()=>d(!0)},u),t.createElement("span",null,t.createElement(UU,Db({icon:i,onClick:l},c))))},WU=e=>{let{editor:i,optionName:r}=e;const[o,s]=n(!1);return t.createElement($U,{className:"ne-headless__emoji",icon:fp,isOpen:o,buttonProps:{tooltipProps:{content:pg(r),delay:[500],position:"bottom"}},onClick:()=>s((e=>!e)),onClose:()=>s(!1)},t.createElement(CR,{editor:i}))},qU=e=>{let{editor:n,optionName:i,command:r,disabled:o,Icon:s,active:a}=e;return i===q.EMOJI?t.createElement(WU,{editor:n,optionName:i}):t.createElement(UU,{className:a?"ne-headless-btn--active":"",disabled:o,icon:s,tooltipProps:{content:pg(i),delay:[500],position:"bottom"},onClick:r})},VU=e=>{let{editor:t,options:n,setMediaUploader:i}=e;const r=((e,t)=>[{Icon:gp,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:Ep,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:Dp,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:bp,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:Fu,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"},{Icon:lp,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote"},{Icon:Du,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"},{Icon:Vu,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list"},{Icon:Gu,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list"},{Icon:File,command:()=>{},optionName:"attachments"},{Icon:Pu,command:()=>t(gb("image",!0)),optionName:"image-upload"},{Icon:Qu,command:()=>t(gb("video",!0)),optionName:"video-upload"},{Icon:fp,command:()=>{},optionName:"emoji"},{Icon:Tp,command:()=>e.chain().focus().undo().run(),disabled:!e.can().undo(),optionName:"undo"},{Icon:up,command:()=>e.chain().focus().redo().run(),disabled:!e.can().redo(),optionName:"redo"}])(t,i);return n.map((e=>r.find((t=>{let{optionName:n}=t;return n===e})))).filter(Boolean)},KU=e=>{let{editor:n,options:i,setMediaUploader:r,addonCommands:o=[],children:s}=e;if(!n)return null;const a=[...VU({editor:n,options:i,setMediaUploader:r}),...TU({editor:n,commands:o})];return t.createElement("div",{className:"ne-headless"},a.map((e=>t.createElement(qU,Db({editor:n,key:e.optionName},e)))),s)},GU=e=>{const[i,r]=n({image:!1,video:!1}),{menuType:o="fixed",addons:s=[],options:a=[],editor:l,uploadEndpoint:c=K,editorSecrets:u={}}=e,p={fixed:PU,bubble:NU,headless:KU,none:()=>t.createElement("div",null)}[o],d=Sd(a)?[...kD,...s]:a;return t.createElement(t.Fragment,null,t.createElement(p,Db({},e,{options:d,setMediaUploader:r})),t.createElement(hU,{editor:l,mediaUploader:i,unsplashApiKey:u.unsplash,uploadEndpoint:c,onClose:()=>r({image:!1,video:!1})}))},YU=e=>{let{rows:t}=e;return`min-height: ${t*CD+2*(ED+MD)}px;`},QU=(e,t)=>{const n=[];e.split(/\n/).forEach((e=>{const i={type:"paragraph"};e.length>0&&(i.content=[{type:"text",text:e}]);const r=ny.fromJSON(t.doc.type.schema,i);n.push(r)}));const i=Nb.fromArray(n);return Fb.maxOpen(i)},ZU=(e,i)=>{let{initialValue:o="",menuType:s="fixed",label:a="",required:l=!1,autoFocus:c=!1,hideSlashCommands:p=!1,defaults:d=kD,addons:h=[],addonCommands:f=[],className:m,contentClassName:g,uploadEndpoint:v=K,onChange:b=hg,onFocus:y=hg,onBlur:x=hg,onSubmit:w=hg,variables:k=[],mentions:E=[],placeholder:M,extensions:C=[],editorSecrets:O={},rows:D=6,isCharacterCountActive:S=!1,keyboardShortcuts:T=[],error:A=null,config:N={},...j}=e;const L="fixed"===s,I="bubble"===s,z=!p,R=!!M,[F,B]=n({image:!1,video:!1}),P=(e=>{let{placeholder:t,extensions:n,mentions:i,variables:r,isSlashCommandsActive:o,options:s,addonCommands:a,onSubmit:l,keyboardShortcuts:c,uploadEndpoint:u,config:p,setMediaUploader:d}=e;const h=ND(p,_I);let f=[RD,zD.configure(h.code),dT.configure(h.underline),UD.configure(h.highlight),wI.configure(h.codeBlock),sF.configure(h.figCaption),EI.configure(h.embeds),pT.configure(h.link),LR.configure(h.emojiSuggestion),DR.configure(h.emojiPicker),kI.configure(h.customCommands),jD.configure(h.characterCount),FD.configure(h.focus),UP,oF({uploadEndpoint:u}),xA.configure(h.starterKit),lF({onSubmit:l,shortcuts:c}),iP.configure(ND({placeholder:t},h.placeholder))];return o&&f.push(NP({options:s,addonCommands:a,setMediaUploader:d})),Sd(i)||f.push(nP({suggestion:{items:XB(i)}})),Sd(r)||f.push(BP({suggestion:{items:()=>r}})),f=f.concat(n),f})({placeholder:M,extensions:C,mentions:E,variables:k,isSlashCommandsActive:z,options:[...d,...h],addonCommands:f,onSubmit:w,keyboardShortcuts:T,uploadEndpoint:v,config:N,setMediaUploader:B});(e=>{let{initialValue:t}=e;r((()=>{![process.env.RAILS_ENV,"production"].includes("production")&&dg(t)&&console.warn(`[neeto-editor]: Empty value of "initialValue" in needtoEditor is expected to be "<p></p>" instead of "${t}".`)}),[t])})({initialValue:o});const U=W("neeto-editor",{"slash-active":z&&!R,"fixed-menu-active border":L,"bubble-menu-active":I,"placeholder-active":R,[g]:g}),H=xD({extensions:P,content:o,injectCSS:!1,autofocus:c&&"end",editorProps:{attributes:{class:U,style:YU({rows:D})},clipboardTextParser:QU},parseOptions:{preserveWhitespace:!0},onCreate:e=>{let{editor:t}=e;return!c&&(e=>{const{state:t,view:n}=e,i=Dx.atEnd(t.doc),r=t.tr;r.setSelection(i),n.dispatch(r)})(t)},onUpdate:e=>{let{editor:t}=e;return b(t.getHTML())},onFocus:y,onBlur:x});return u(i,(()=>({editor:H}))),rE.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!==e.plugins)},t.createElement("div",{className:W({[m]:m})},a&&t.createElement(_,{className:"neeto-ui-mb-2","data-cy":`${$=a,$.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}-editor-label`,required:l},a),t.createElement(_D,{error:A,isFixedMenuActive:L},t.createElement(OD,{editor:H,isActive:S},t.createElement(GU,{addonCommands:f,addons:h,defaults:d,editor:H,editorSecrets:O,isIndependant:!1,mentions:E,menuType:s,uploadEndpoint:v,variables:k}),t.createElement(dD,Db({editor:H},j)),t.createElement(hU,{editor:H,mediaUploader:F,unsplashApiKey:O.unsplash,uploadEndpoint:v,onClose:()=>B({image:!1,video:!1})}))));var $};var JU=t.forwardRef(ZU);gU('@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-radius: 0px 0px var(--neeto-ui-rounded) var(--neeto-ui-rounded);\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 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 .neeto-editor-menu__item:hover, .neeto-editor-bubble-menu .neeto-editor-menu__item:active, .neeto-editor-bubble-menu .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\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-gallery {\n width: 100%;\n right: -8px;\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 .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 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-file-attachments-wrapper {\n display: flex;\n flex-wrap: wrap;\n gap: 1rem;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper {\n display: flex;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n margin-top: 0.5rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n justify-content: space-between;\n align-items: center;\n border-radius: 0.25rem;\n border-width: 2px;\n width: 15rem;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper {\n display: flex;\n align-items: center;\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n gap: 0.25rem;\n width: 100%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .ne-file-attachment-progress-wrapper {\n display: flex;\n gap: auto;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n opacity: 0.5;\n width: 85%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .ne-file-attachment-progress-wrapper .truncate-ellipsis-progress {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 100%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .truncate-ellipsis {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 100%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .drop-down-container .menu-label {\n text-transform: capitalize;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .icon-opacity-50 {\n opacity: 0.5;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .rename-input {\n margin-right: 0.5rem;\n height: 90%;\n width: 100%;\n}\n.upload-btn {\n margin-top: 0.5rem;\n}\ninput[type=file] {\n display: none;\n}\n.ProseMirror {\n overflow-y: auto;\n height: 100%;\n white-space: break-spaces;\n}\n.ProseMirror:focus {\n outline: none;\n}',{});const XU=(e,n)=>{let{name:i,...r}=e;return t.createElement(R,{name:i},(e=>{let{field:o,form:s,meta:a}=e;return t.createElement(JU,Db({error:a.touched?a.error:"",initialValue:o.value,ref:n,onBlur:()=>s.setFieldTouched(i,!0),onChange:e=>s.setFieldValue(i,e)},r))}))};var eH=a(XU);
|
|
59
|
+
*/!function(e,t){(function(){var n,i="4.17.21",r=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__",p=1,d=2,h=4,f=1,m=2,g=1,v=2,b=4,y=8,x=16,w=32,_=64,k=128,E=256,M=512,C=30,O="...",D=800,S=16,T=1,A=2,N=3,j=1/0,L=9007199254740991,I=17976931348623157e292,z=0/0,R=4294967295,F=R-1,P=R>>>1,U=[["ary",k],["bind",g],["bindKey",v],["curry",y],["curryRight",x],["flip",M],["partial",w],["partialRight",_],["rearg",E]],H="[object Arguments]",$="[object Array]",W="[object AsyncFunction]",q="[object Boolean]",V="[object Date]",K="[object DOMException]",G="[object Error]",Y="[object Function]",Q="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",X="[object Null]",ee="[object Object]",te="[object Promise]",ne="[object Proxy]",ie="[object RegExp]",re="[object Set]",oe="[object String]",se="[object Symbol]",ae="[object Undefined]",le="[object WeakMap]",ce="[object WeakSet]",ue="[object ArrayBuffer]",pe="[object DataView]",de="[object Float32Array]",he="[object Float64Array]",fe="[object Int8Array]",me="[object Int16Array]",ge="[object Int32Array]",ve="[object Uint8Array]",be="[object Uint8ClampedArray]",ye="[object Uint16Array]",xe="[object Uint32Array]",we=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Ce=RegExp(Ee.source),Oe=RegExp(Me.source),De=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ne=/^\w*$/,je=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Le.source),ze=/^\s+/,Re=/\s/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/[()=,{}\[\]\/\s]/,$e=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,Ke=/^0b[01]+$/i,Ge=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,et="\\ud800-\\udfff",tt="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",nt="\\u2700-\\u27bf",it="a-z\\xdf-\\xf6\\xf8-\\xff",rt="A-Z\\xc0-\\xd6\\xd8-\\xde",ot="\\ufe0e\\ufe0f",st="\\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",at="['’]",lt="["+et+"]",ct="["+st+"]",ut="["+tt+"]",pt="\\d+",dt="["+nt+"]",ht="["+it+"]",ft="[^"+et+st+pt+nt+it+rt+"]",mt="\\ud83c[\\udffb-\\udfff]",gt="[^"+et+"]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="["+rt+"]",xt="\\u200d",wt="(?:"+ht+"|"+ft+")",_t="(?:"+yt+"|"+ft+")",kt="(?:"+at+"(?:d|ll|m|re|s|t|ve))?",Et="(?:"+at+"(?:D|LL|M|RE|S|T|VE))?",Mt="(?:"+ut+"|"+mt+")"+"?",Ct="["+ot+"]?",Ot=Ct+Mt+("(?:"+xt+"(?:"+[gt,vt,bt].join("|")+")"+Ct+Mt+")*"),Dt="(?:"+[dt,vt,bt].join("|")+")"+Ot,St="(?:"+[gt+ut+"?",ut,vt,bt,lt].join("|")+")",Tt=RegExp(at,"g"),At=RegExp(ut,"g"),Nt=RegExp(mt+"(?="+mt+")|"+St+Ot,"g"),jt=RegExp([yt+"?"+ht+"+"+kt+"(?="+[ct,yt,"$"].join("|")+")",_t+"+"+Et+"(?="+[ct,yt+wt,"$"].join("|")+")",yt+"?"+wt+"+"+kt,yt+"+"+Et,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pt,Dt].join("|"),"g"),Lt=RegExp("["+xt+et+tt+ot+"]"),It=/[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"],Rt=-1,Ft={};Ft[de]=Ft[he]=Ft[fe]=Ft[me]=Ft[ge]=Ft[ve]=Ft[be]=Ft[ye]=Ft[xe]=!0,Ft[H]=Ft[$]=Ft[ue]=Ft[q]=Ft[pe]=Ft[V]=Ft[G]=Ft[Y]=Ft[Z]=Ft[J]=Ft[ee]=Ft[ie]=Ft[re]=Ft[oe]=Ft[le]=!1;var Bt={};Bt[H]=Bt[$]=Bt[ue]=Bt[pe]=Bt[q]=Bt[V]=Bt[de]=Bt[he]=Bt[fe]=Bt[me]=Bt[ge]=Bt[Z]=Bt[J]=Bt[ee]=Bt[ie]=Bt[re]=Bt[oe]=Bt[se]=Bt[ve]=Bt[be]=Bt[ye]=Bt[xe]=!0,Bt[G]=Bt[Y]=Bt[le]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ut=parseFloat,Ht=parseInt,$t="object"==typeof B&&B&&B.Object===Object&&B,Wt="object"==typeof self&&self&&self.Object===Object&&self,qt=$t||Wt||Function("return this")(),Vt=t&&!t.nodeType&&t,Kt=Vt&&"object"=="object"&&e&&!e.nodeType&&e,Gt=Kt&&Kt.exports===Vt,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){}}(),Zt=Qt&&Qt.isArrayBuffer,Jt=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,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var s=e[r];t(i,s,n(s),e)}return i}function sn(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!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,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function cn(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}function un(e,t){return!!(null==e?0:e.length)&&xn(e,t,0)>-1}function pn(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function dn(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function hn(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function fn(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function mn(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function gn(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var vn=En("length");function bn(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function yn(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function xn(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):yn(e,_n,n)}function wn(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function _n(e){return e!=e}function kn(e,t){var n=null==e?0:e.length;return n?On(e,t)/n:z}function En(e){return function(t){return null==t?n:t[e]}}function Mn(e){return function(t){return null==e?n:e[t]}}function Cn(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function On(e,t){for(var i,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==n&&(i=i===n?s:i+s)}return i}function Dn(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Sn(e){return e?e.slice(0,Kn(e)+1).replace(ze,""):e}function Tn(e){return function(t){return e(t)}}function An(e,t){return dn(t,(function(t){return e[t]}))}function Nn(e,t){return e.has(t)}function jn(e,t){for(var n=-1,i=e.length;++n<i&&xn(t,e[n],0)>-1;);return n}function Ln(e,t){for(var n=e.length;n--&&xn(t,e[n],0)>-1;);return n}function In(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}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"}),Rn=Mn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Fn(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,i){n[++t]=[i,e]})),n}function Un(e,t){return function(n){return e(t(n))}}function Hn(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n];s!==t&&s!==u||(e[n]=u,o[r++]=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 qn(e){return Bn(e)?function(e){var t=Nt.lastIndex=0;for(;Nt.test(e);)++t;return t}(e):vn(e)}function Vn(e){return Bn(e)?function(e){return e.match(Nt)||[]}(e):function(e){return e.split("")}(e)}function Kn(e){for(var t=e.length;t--&&Re.test(e.charAt(t)););return t}var Gn=Mn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Yn=function e(t){var B,Re=(t=null==t?qt:Yn.defaults(qt.Object(),t,Yn.pick(qt,zt))).Array,et=t.Date,tt=t.Error,nt=t.Function,it=t.Math,rt=t.Object,ot=t.RegExp,st=t.String,at=t.TypeError,lt=Re.prototype,ct=nt.prototype,ut=rt.prototype,pt=t["__core-js_shared__"],dt=ct.toString,ht=ut.hasOwnProperty,ft=0,mt=(B=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",gt=ut.toString,vt=dt.call(rt),bt=qt._,yt=ot("^"+dt.call(ht).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=Gt?t.Buffer:n,wt=t.Symbol,_t=t.Uint8Array,kt=xt?xt.allocUnsafe:n,Et=Un(rt.getPrototypeOf,rt),Mt=rt.create,Ct=ut.propertyIsEnumerable,Ot=lt.splice,Dt=wt?wt.isConcatSpreadable:n,St=wt?wt.iterator:n,Nt=wt?wt.toStringTag:n,Lt=function(){try{var e=qo(rt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Pt=t.clearTimeout!==qt.clearTimeout&&t.clearTimeout,$t=et&&et.now!==qt.Date.now&&et.now,Wt=t.setTimeout!==qt.setTimeout&&t.setTimeout,Vt=it.ceil,Kt=it.floor,Yt=rt.getOwnPropertySymbols,Qt=xt?xt.isBuffer:n,vn=t.isFinite,Mn=lt.join,Qn=Un(rt.keys,rt),Zn=it.max,Jn=it.min,Xn=et.now,ei=t.parseInt,ti=it.random,ni=lt.reverse,ii=qo(t,"DataView"),ri=qo(t,"Map"),oi=qo(t,"Promise"),si=qo(t,"Set"),ai=qo(t,"WeakMap"),li=qo(rt,"create"),ci=ai&&new ai,ui={},pi=bs(ii),di=bs(ri),hi=bs(oi),fi=bs(si),mi=bs(ai),gi=wt?wt.prototype:n,vi=gi?gi.valueOf:n,bi=gi?gi.toString:n;function yi(e){if(Ia(e)&&!Ea(e)&&!(e instanceof ki)){if(e instanceof _i)return e;if(ht.call(e,"__wrapped__"))return ys(e)}return new _i(e)}var xi=function(){function e(){}return function(t){if(!La(t))return{};if(Mt)return Mt(t);e.prototype=t;var i=new e;return e.prototype=n,i}}();function wi(){}function _i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function ki(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Ei(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Mi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ci(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Oi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ci;++t<n;)this.add(e[t])}function Di(e){var t=this.__data__=new Mi(e);this.size=t.size}function Si(e,t){var n=Ea(e),i=!n&&ka(e),r=!n&&!i&&Da(e),o=!n&&!i&&!r&&$a(e),s=n||i||r||o,a=s?Dn(e.length,st):[],l=a.length;for(var c in e)!t&&!ht.call(e,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Jo(c,l))||a.push(c);return a}function Ti(e){var t=e.length;return t?e[Or(0,t-1)]:n}function Ai(e,t){return ms(lo(e),Pi(t,0,e.length))}function Ni(e){return ms(lo(e))}function ji(e,t,i){(i!==n&&!xa(e[t],i)||i===n&&!(t in e))&&Fi(e,t,i)}function Li(e,t,i){var r=e[t];ht.call(e,t)&&xa(r,i)&&(i!==n||t in e)||Fi(e,t,i)}function Ii(e,t){for(var n=e.length;n--;)if(xa(e[n][0],t))return n;return-1}function zi(e,t,n,i){return qi(e,(function(e,r,o){t(i,e,n(e),o)})),i}function Ri(e,t){return e&&co(t,pl(t),e)}function Fi(e,t,n){"__proto__"==t&&Lt?Lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Bi(e,t){for(var i=-1,r=t.length,o=Re(r),s=null==e;++i<r;)o[i]=s?n:sl(e,t[i]);return o}function Pi(e,t,i){return e==e&&(i!==n&&(e=e<=i?e:i),t!==n&&(e=e>=t?e:t)),e}function Ui(e,t,i,r,o,s){var a,l=t&p,c=t&d,u=t&h;if(i&&(a=o?i(e,r,o,s):i(e)),a!==n)return a;if(!La(e))return e;var f=Ea(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==Y||m==Q;if(Da(e))return no(e,l);if(m==ee||m==H||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,dl(t),e)}(a,e)):function(e,t){return co(e,Vo(e),t)}(e,Ri(a,e))}else{if(!Bt[m])return o?e:{};a=function(e,t,n){var i=e.constructor;switch(t){case ue:return io(e);case q:case V:return new i(+e);case pe:return function(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case he:case fe:case me:case ge:case ve:case be:case ye:case xe:return ro(e,n);case Z:return new i;case J:case oe:return new i(e);case ie:return function(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new i;case se:return r=e,vi?rt(vi.call(r)):{}}var r}(e,m,l)}}s||(s=new Di);var v=s.get(e);if(v)return v;s.set(e,a),Pa(e)?e.forEach((function(n){a.add(Ui(n,t,i,n,e,s))})):za(e)&&e.forEach((function(n,r){a.set(r,Ui(n,t,i,r,e,s))}));var b=f?n:(u?c?Fo:Ro:c?dl:pl)(e);return sn(b||e,(function(n,r){b&&(n=e[r=n]),Li(a,r,Ui(n,t,i,r,e,s))})),a}function Hi(e,t,i){var r=i.length;if(null==e)return!r;for(e=rt(e);r--;){var o=i[r],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function $i(e,t,i){if("function"!=typeof e)throw new at(s);return ps((function(){e.apply(n,i)}),t)}function Wi(e,t,n,i){var o=-1,s=un,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=dn(t,Tn(n))),i?(s=pn,a=!1):t.length>=r&&(s=Nn,a=!1,t=new Oi(t));e:for(;++o<l;){var p=e[o],d=null==n?p:n(p);if(p=i||0!==p?p:0,a&&d==d){for(var h=u;h--;)if(t[h]===d)continue e;c.push(p)}else s(t,d,i)||c.push(p)}return c}yi.templateSettings={escape:De,evaluate:Se,interpolate:Te,variable:"",imports:{_:yi}},yi.prototype=wi.prototype,yi.prototype.constructor=yi,_i.prototype=xi(wi.prototype),_i.prototype.constructor=_i,ki.prototype=xi(wi.prototype),ki.prototype.constructor=ki,Ei.prototype.clear=function(){this.__data__=li?li(null):{},this.size=0},Ei.prototype["delete"]=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ei.prototype.get=function(e){var t=this.__data__;if(li){var i=t[e];return i===l?n:i}return ht.call(t,e)?t[e]:n},Ei.prototype.has=function(e){var t=this.__data__;return li?t[e]!==n:ht.call(t,e)},Ei.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=li&&t===n?l:t,this},Mi.prototype.clear=function(){this.__data__=[],this.size=0},Mi.prototype["delete"]=function(e){var t=this.__data__,n=Ii(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ot.call(t,n,1),--this.size,!0)},Mi.prototype.get=function(e){var t=this.__data__,i=Ii(t,e);return i<0?n:t[i][1]},Mi.prototype.has=function(e){return Ii(this.__data__,e)>-1},Mi.prototype.set=function(e,t){var n=this.__data__,i=Ii(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Ci.prototype.clear=function(){this.size=0,this.__data__={hash:new Ei,map:new(ri||Mi),string:new Ei}},Ci.prototype["delete"]=function(e){var t=$o(this,e)["delete"](e);return this.size-=t?1:0,t},Ci.prototype.get=function(e){return $o(this,e).get(e)},Ci.prototype.has=function(e){return $o(this,e).has(e)},Ci.prototype.set=function(e,t){var n=$o(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Oi.prototype.add=Oi.prototype.push=function(e){return this.__data__.set(e,l),this},Oi.prototype.has=function(e){return this.__data__.has(e)},Di.prototype.clear=function(){this.__data__=new Mi,this.size=0},Di.prototype["delete"]=function(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n},Di.prototype.get=function(e){return this.__data__.get(e)},Di.prototype.has=function(e){return this.__data__.has(e)},Di.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Mi){var i=n.__data__;if(!ri||i.length<r-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ci(i)}return n.set(e,t),this.size=n.size,this};var qi=ho(Xi),Vi=ho(er,!0);function Ki(e,t){var n=!0;return qi(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function Gi(e,t,i){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(l===n?a==a&&!Ha(a):i(a,l)))var l=a,c=s}return c}function Yi(e,t){var n=[];return qi(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function Qi(e,t,n,i,r){var o=-1,s=e.length;for(n||(n=Zo),r||(r=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?Qi(a,t-1,n,i,r):hn(r,a):i||(r[r.length]=a)}return r}var Zi=fo(),Ji=fo(!0);function Xi(e,t){return e&&Zi(e,t,pl)}function er(e,t){return e&&Ji(e,t,pl)}function tr(e,t){return cn(t,(function(t){return Aa(e[t])}))}function nr(e,t){for(var i=0,r=(t=Jr(t,e)).length;null!=e&&i<r;)e=e[vs(t[i++])];return i&&i==r?e:n}function ir(e,t,n){var i=t(e);return Ea(e)?i:hn(i,n(e))}function rr(e){return null==e?e===n?ae:X:Nt&&Nt in rt(e)?function(e){var t=ht.call(e,Nt),i=e[Nt];try{e[Nt]=n;var r=!0}catch(e){}var o=gt.call(e);r&&(t?e[Nt]=i:delete e[Nt]);return o}(e):function(e){return gt.call(e)}(e)}function or(e,t){return e>t}function sr(e,t){return null!=e&&ht.call(e,t)}function ar(e,t){return null!=e&&t in rt(e)}function lr(e,t,i){for(var r=i?pn:un,o=e[0].length,s=e.length,a=s,l=Re(s),c=1/0,u=[];a--;){var p=e[a];a&&t&&(p=dn(p,Tn(t))),c=Jn(p.length,c),l[a]=!i&&(t||o>=120&&p.length>=120)?new Oi(a&&p):n}p=e[0];var d=-1,h=l[0];e:for(;++d<o&&u.length<c;){var f=p[d],m=t?t(f):f;if(f=i||0!==f?f:0,!(h?Nn(h,m):r(u,m,i))){for(a=s;--a;){var g=l[a];if(!(g?Nn(g,m):r(e[a],m,i)))continue e}h&&h.push(m),u.push(f)}}return u}function cr(e,t,i){var r=null==(e=as(e,t=Jr(t,e)))?e:e[vs(Ts(t))];return null==r?n:rn(r,e,i)}function ur(e){return Ia(e)&&rr(e)==H}function pr(e,t,i,r,o){return e===t||(null==e||null==t||!Ia(e)&&!Ia(t)?e!=e&&t!=t:function(e,t,i,r,o,s){var a=Ea(e),l=Ea(t),c=a?$:Go(e),u=l?$:Go(t),p=(c=c==H?ee:c)==ee,d=(u=u==H?ee:u)==ee,h=c==u;if(h&&Da(e)){if(!Da(t))return!1;a=!0,p=!1}if(h&&!p)return s||(s=new Di),a||$a(e)?Io(e,t,i,r,o,s):function(e,t,n,i,r,o,s){switch(n){case pe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ue:return!(e.byteLength!=t.byteLength||!o(new _t(e),new _t(t)));case q:case V:case J:return xa(+e,+t);case G:return e.name==t.name&&e.message==t.message;case ie:case oe:return e==t+"";case Z:var a=Pn;case re:var l=i&f;if(a||(a=$n),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;i|=m,s.set(e,t);var u=Io(a(e),a(t),i,r,o,s);return s["delete"](e),u;case se:if(vi)return vi.call(e)==vi.call(t)}return!1}(e,t,c,i,r,o,s);if(!(i&f)){var g=p&&ht.call(e,"__wrapped__"),v=d&&ht.call(t,"__wrapped__");if(g||v){var b=g?e.value():e,y=v?t.value():t;return s||(s=new Di),o(b,y,i,r,s)}}if(!h)return!1;return s||(s=new Di),function(e,t,i,r,o,s){var a=i&f,l=Ro(e),c=l.length,u=Ro(t).length;if(c!=u&&!a)return!1;var p=c;for(;p--;){var d=l[p];if(!(a?d in t:ht.call(t,d)))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 v=a;for(;++p<c;){var b=e[d=l[p]],y=t[d];if(r)var x=a?r(y,b,d,t,e,s):r(b,y,d,e,t,s);if(!(x===n?b===y||o(b,y,i,r,s):x)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return s["delete"](e),s["delete"](t),g}(e,t,i,r,o,s)}(e,t,i,r,pr,o))}function dr(e,t,i,r){var o=i.length,s=o,a=!r;if(null==e)return!s;for(e=rt(e);o--;){var l=i[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=i[o])[0],u=e[c],p=l[1];if(a&&l[2]){if(u===n&&!(c in e))return!1}else{var d=new Di;if(r)var h=r(u,p,c,e,t,d);if(!(h===n?pr(p,u,f|m,r,d):h))return!1}}return!0}function hr(e){return!(!La(e)||(t=e,mt&&mt in t))&&(Aa(e)?yt:Ge).test(bs(e));var t}function fr(e){return"function"==typeof e?e:null==e?Rl:"object"==typeof e?Ea(e)?xr(e[0],e[1]):yr(e):Vl(e)}function mr(e){if(!is(e))return Qn(e);var t=[];for(var n in rt(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function gr(e){if(!La(e))return function(e){var t=[];if(null!=e)for(var n in rt(e))t.push(n);return t}(e);var t=is(e),n=[];for(var i in e)("constructor"!=i||!t&&ht.call(e,i))&&n.push(i);return n}function vr(e,t){return e<t}function br(e,t){var n=-1,i=Ca(e)?Re(e.length):[];return qi(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function yr(e){var t=Wo(e);return 1==t.length&&t[0][2]?os(t[0][0],t[0][1]):function(n){return n===e||dr(n,e,t)}}function xr(e,t){return es(e)&&rs(t)?os(vs(e),t):function(i){var r=sl(i,e);return r===n&&r===t?al(i,e):pr(t,r,f|m)}}function wr(e,t,i,r,o){e!==t&&Zi(t,(function(s,a){if(o||(o=new Di),La(s))!function(e,t,i,r,o,s,a){var l=cs(e,i),c=cs(t,i),u=a.get(c);if(u)return void ji(e,i,u);var p=s?s(l,c,i+"",e,t,a):n,d=p===n;if(d){var h=Ea(c),f=!h&&Da(c),m=!h&&!f&&$a(c);p=c,h||f||m?Ea(l)?p=l:Oa(l)?p=lo(l):f?(d=!1,p=no(c,!0)):m?(d=!1,p=ro(c,!0)):p=[]:Fa(c)||ka(c)?(p=l,ka(l)?p=Za(l):La(l)&&!Aa(l)||(p=Qo(c))):d=!1}d&&(a.set(c,p),o(p,c,r,s,a),a["delete"](c));ji(e,i,p)}(e,t,a,i,wr,r,o);else{var l=r?r(cs(e,a),s,a+"",e,t,o):n;l===n&&(l=s),ji(e,a,l)}}),dl)}function _r(e,t){var i=e.length;if(i)return Jo(t+=t<0?i:0,i)?e[t]:n}function kr(e,t,n){t=t.length?dn(t,(function(e){return Ea(e)?function(t){return nr(t,1===e.length?e[0]:e)}:e})):[Rl];var i=-1;t=dn(t,Tn(Ho()));var r=br(e,(function(e,n,r){var o=dn(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,(function(e,t){return function(e,t,n){var i=-1,r=e.criteria,o=t.criteria,s=r.length,a=n.length;for(;++i<s;){var l=oo(r[i],o[i]);if(l)return i>=a?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Er(e,t,n){for(var i=-1,r=t.length,o={};++i<r;){var s=t[i],a=nr(e,s);n(a,s)&&Nr(o,Jr(s,e),a)}return o}function Mr(e,t,n,i){var r=i?wn:xn,o=-1,s=t.length,a=e;for(e===t&&(t=lo(t)),n&&(a=dn(e,Tn(n)));++o<s;)for(var l=0,c=t[o],u=n?n(c):c;(l=r(a,u,l,i))>-1;)a!==e&&Ot.call(a,l,1),Ot.call(e,l,1);return e}function Cr(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;Jo(r)?Ot.call(e,r,1):Wr(e,r)}}return e}function Or(e,t){return e+Kt(ti()*(t-e+1))}function Dr(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 Sr(e,t){return ds(ss(e,t,Rl),e+"")}function Tr(e){return Ti(xl(e))}function Ar(e,t){var n=xl(e);return ms(n,Pi(t,0,n.length))}function Nr(e,t,i,r){if(!La(e))return e;for(var o=-1,s=(t=Jr(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=vs(t[o]),u=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var p=l[c];(u=r?r(p,c,l):n)===n&&(u=La(p)?p:Jo(t[o+1])?[]:{})}Li(l,c,u),l=l[c]}return e}var jr=ci?function(e,t){return ci.set(e,t),e}:Rl,Lr=Lt?function(e,t){return Lt(e,"toString",{configurable:!0,enumerable:!1,value:Ll(t),writable:!0})}:Rl;function Ir(e){return ms(xl(e))}function zr(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Re(r);++i<r;)o[i]=e[i+t];return o}function Rr(e,t){var n;return qi(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function Fr(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=P){for(;i<r;){var o=i+r>>>1,s=e[o];null!==s&&!Ha(s)&&(n?s<=t:s<t)?i=o+1:r=o}return r}return Br(e,t,Rl,n)}function Br(e,t,i,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=i(t))!=t,l=null===t,c=Ha(t),u=t===n;o<s;){var p=Kt((o+s)/2),d=i(e[p]),h=d!==n,f=null===d,m=d==d,g=Ha(d);if(a)var v=r||m;else v=u?m&&(r||h):l?m&&h&&(r||!f):c?m&&h&&!f&&(r||!g):!f&&!g&&(r?d<=t:d<t);v?o=p+1:s=p}return Jn(s,F)}function Pr(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n],a=t?t(s):s;if(!n||!xa(a,l)){var l=a;o[r++]=0===s?0:s}}return o}function Ur(e){return"number"==typeof e?e:Ha(e)?z:+e}function Hr(e){if("string"==typeof e)return e;if(Ea(e))return dn(e,Hr)+"";if(Ha(e))return bi?bi.call(e):"";var t=e+"";return"0"==t&&1/e==-j?"-0":t}function $r(e,t,n){var i=-1,o=un,s=e.length,a=!0,l=[],c=l;if(n)a=!1,o=pn;else if(s>=r){var u=t?null:So(e);if(u)return $n(u);a=!1,o=Nn,c=new Oi}else c=t?[]:l;e:for(;++i<s;){var p=e[i],d=t?t(p):p;if(p=n||0!==p?p:0,a&&d==d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),l.push(p)}else o(c,d,n)||(c!==l&&c.push(d),l.push(p))}return l}function Wr(e,t){return null==(e=as(e,t=Jr(t,e)))||delete e[vs(Ts(t))]}function qr(e,t,n,i){return Nr(e,t,n(nr(e,t)),i)}function Vr(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?zr(e,i?0:o,i?o+1:r):zr(e,i?o+1:0,i?r:o)}function Kr(e,t){var n=e;return n instanceof ki&&(n=n.value()),fn(t,(function(e,t){return t.func.apply(t.thisArg,hn([e],t.args))}),n)}function Gr(e,t,n){var i=e.length;if(i<2)return i?$r(e[0]):[];for(var r=-1,o=Re(i);++r<i;)for(var s=e[r],a=-1;++a<i;)a!=r&&(o[r]=Wi(o[r]||s,e[a],t,n));return $r(Qi(o,1),t,n)}function Yr(e,t,i){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var l=r<s?t[r]:n;i(a,e[r],l)}return a}function Qr(e){return Oa(e)?e:[]}function Zr(e){return"function"==typeof e?e:Rl}function Jr(e,t){return Ea(e)?e:es(e,t)?[e]:gs(Ja(e))}var Xr=Sr;function eo(e,t,i){var r=e.length;return i=i===n?r:i,!t&&i>=r?e:zr(e,t,i)}var to=Pt||function(e){return qt.clearTimeout(e)};function no(e,t){if(t)return e.slice();var n=e.length,i=kt?kt(n):new e.constructor(n);return e.copy(i),i}function io(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function ro(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oo(e,t){if(e!==t){var i=e!==n,r=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||r&&a&&c||!i&&c||!o)return 1;if(!r&&!s&&!u&&e<t||u&&i&&o&&!r&&!s||l&&i&&o||!a&&o||!c)return-1}return 0}function so(e,t,n,i){for(var r=-1,o=e.length,s=n.length,a=-1,l=t.length,c=Zn(o-s,0),u=Re(l+c),p=!i;++a<l;)u[a]=t[a];for(;++r<s;)(p||r<o)&&(u[n[r]]=e[r]);for(;c--;)u[a++]=e[r++];return u}function ao(e,t,n,i){for(var r=-1,o=e.length,s=-1,a=n.length,l=-1,c=t.length,u=Zn(o-a,0),p=Re(u+c),d=!i;++r<u;)p[r]=e[r];for(var h=r;++l<c;)p[h+l]=t[l];for(;++s<a;)(d||r<o)&&(p[h+n[s]]=e[r++]);return p}function lo(e,t){var n=-1,i=e.length;for(t||(t=Re(i));++n<i;)t[n]=e[n];return t}function co(e,t,i,r){var o=!i;i||(i={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=r?r(i[l],e[l],l,i,e):n;c===n&&(c=e[l]),o?Fi(i,l,c):Li(i,l,c)}return i}function uo(e,t){return function(n,i){var r=Ea(n)?on:zi,o=t?t():{};return r(n,e,Ho(i,2),o)}}function po(e){return Sr((function(t,i){var r=-1,o=i.length,s=o>1?i[o-1]:n,a=o>2?i[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&Xo(i[0],i[1],a)&&(s=o<3?n:s,o=1),t=rt(t);++r<o;){var l=i[r];l&&e(t,l,r,s)}return t}))}function ho(e,t){return function(n,i){if(null==n)return n;if(!Ca(n))return e(n,i);for(var r=n.length,o=t?r:-1,s=rt(n);(t?o--:++o<r)&&!1!==i(s[o],o,s););return n}}function fo(e){return function(t,n,i){for(var r=-1,o=rt(t),s=i(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===n(o[l],l,o))break}return t}}function mo(e){return function(t){var i=Bn(t=Ja(t))?Vn(t):n,r=i?i[0]:t.charAt(0),o=i?eo(i,1).join(""):t.slice(1);return r[e]()+o}}function go(e){return function(t){return fn(Al(kl(t).replace(Tt,"")),e,"")}}function vo(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=xi(e.prototype),i=e.apply(n,t);return La(i)?i:n}}function bo(e){return function(t,i,r){var o=rt(t);if(!Ca(t)){var s=Ho(i,3);t=pl(t),i=function(e){return s(o[e],e,o)}}var a=e(t,i,r);return a>-1?o[s?t[a]:a]:n}}function yo(e){return zo((function(t){var i=t.length,r=i,o=_i.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new at(s);if(o&&!l&&"wrapper"==Po(a))var l=new _i([],!0)}for(r=l?r:i;++r<i;){var c=Po(a=t[r]),u="wrapper"==c?Bo(a):n;l=u&&ts(u[0])&&u[1]==(k|y|w|E)&&!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&&Ea(n))return l.plant(n).value();for(var r=0,o=i?t[r].apply(this,e):n;++r<i;)o=t[r].call(this,o);return o}}))}function xo(e,t,i,r,o,s,a,l,c,u){var p=t&k,d=t&g,h=t&v,f=t&(y|x),m=t&M,b=h?n:vo(e);return function n(){for(var g=arguments.length,v=Re(g),y=g;y--;)v[y]=arguments[y];if(f)var x=Uo(n),w=In(v,x);if(r&&(v=so(v,r,o,f)),s&&(v=ao(v,s,a,f)),g-=w,f&&g<u){var _=Hn(v,x);return Oo(e,t,xo,n.placeholder,i,v,_,l,c,u-g)}var k=d?i:this,E=h?k[e]:e;return g=v.length,l?v=ls(v,l):m&&g>1&&v.reverse(),p&&c<g&&(v.length=c),this&&this!==qt&&this instanceof n&&(E=b||vo(E)),E.apply(k,v)}}function wo(e,t){return function(n,i){return function(e,t,n,i){return Xi(e,(function(e,r,o){t(i,n(e),r,o)})),i}(n,e,t(i),{})}}function _o(e,t){return function(i,r){var o;if(i===n&&r===n)return t;if(i!==n&&(o=i),r!==n){if(o===n)return r;"string"==typeof i||"string"==typeof r?(i=Hr(i),r=Hr(r)):(i=Ur(i),r=Ur(r)),o=e(i,r)}return o}}function ko(e){return zo((function(t){return t=dn(t,Tn(Ho())),Sr((function(n){var i=this;return e(t,(function(e){return rn(e,i,n)}))}))}))}function Eo(e,t){var i=(t=t===n?" ":Hr(t)).length;if(i<2)return i?Dr(t,e):t;var r=Dr(t,Vt(e/qn(t)));return Bn(t)?eo(Vn(r),0,e).join(""):r.slice(0,e)}function Mo(e){return function(t,i,r){return r&&"number"!=typeof r&&Xo(t,i,r)&&(i=r=n),t=Ka(t),i===n?(i=t,t=0):i=Ka(i),function(e,t,n,i){for(var r=-1,o=Zn(Vt((t-e)/(n||1)),0),s=Re(o);o--;)s[i?o:++r]=e,e+=n;return s}(t,i,r=r===n?t<i?1:-1:Ka(r),e)}}function Co(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qa(t),n=Qa(n)),e(t,n)}}function Oo(e,t,i,r,o,s,a,l,c,u){var p=t&y;t|=p?w:_,(t&=~(p?_:w))&b||(t&=~(g|v));var d=[e,t,o,p?s:n,p?a:n,p?n:s,p?n:a,l,c,u],h=i.apply(n,d);return ts(e)&&us(h,d),h.placeholder=r,hs(h,e,t)}function Do(e){var t=it[e];return function(e,n){if(e=Qa(e),(n=null==n?0:Jn(Ga(n),292))&&vn(e)){var i=(Ja(e)+"e").split("e");return+((i=(Ja(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var So=si&&1/$n(new si([,-0]))[1]==j?function(e){return new si(e)}:Hl;function To(e){return function(t){var n=Go(t);return n==Z?Pn(t):n==re?Wn(t):function(e,t){return dn(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ao(e,t,i,r,o,a,l,c){var p=t&v;if(!p&&"function"!=typeof e)throw new at(s);var d=r?r.length:0;if(d||(t&=~(w|_),r=o=n),l=l===n?l:Zn(Ga(l),0),c=c===n?c:Ga(c),d-=o?o.length:0,t&_){var h=r,f=o;r=o=n}var m=p?n:Bo(e),M=[e,t,i,r,o,h,f,a,l,c];if(m&&function(e,t){var n=e[1],i=t[1],r=n|i,o=r<(g|v|k),s=i==k&&n==y||i==k&&n==E&&e[7].length<=t[8]||i==(k|E)&&t[7].length<=t[8]&&n==y;if(!o&&!s)return e;i&g&&(e[2]=t[2],r|=n&g?0:b);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);i&k&&(e[8]=null==e[8]?t[8]:Jn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(M,m),e=M[0],t=M[1],i=M[2],r=M[3],o=M[4],!(c=M[9]=M[9]===n?p?0:e.length:Zn(M[9]-d,0))&&t&(y|x)&&(t&=~(y|x)),t&&t!=g)C=t==y||t==x?function(e,t,i){var r=vo(e);return function o(){for(var s=arguments.length,a=Re(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)<i?Oo(e,t,xo,o.placeholder,n,a,u,n,n,i-s):rn(this&&this!==qt&&this instanceof o?r:e,this,a)}}(e,t,c):t!=w&&t!=(g|w)||o.length?xo.apply(n,M):function(e,t,n,i){var r=t&g,o=vo(e);return function t(){for(var s=-1,a=arguments.length,l=-1,c=i.length,u=Re(c+a),p=this&&this!==qt&&this instanceof t?o:e;++l<c;)u[l]=i[l];for(;a--;)u[l++]=arguments[++s];return rn(p,r?n:this,u)}}(e,t,i,r);else var C=function(e,t,n){var i=t&g,r=vo(e);return function t(){return(this&&this!==qt&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,i);return hs((m?jr:us)(C,M),e,t)}function No(e,t,i,r){return e===n||xa(e,ut[i])&&!ht.call(r,i)?t:e}function jo(e,t,i,r,o,s){return La(e)&&La(t)&&(s.set(t,e),wr(e,t,n,jo,s),s["delete"](t)),e}function Lo(e){return Fa(e)?n:e}function Io(e,t,i,r,o,s){var a=i&f,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),p=s.get(t);if(u&&p)return u==t&&p==e;var d=-1,h=!0,g=i&m?new Oi:n;for(s.set(e,t),s.set(t,e);++d<l;){var v=e[d],b=t[d];if(r)var y=a?r(b,v,d,t,e,s):r(v,b,d,e,t,s);if(y!==n){if(y)continue;h=!1;break}if(g){if(!gn(t,(function(e,t){if(!Nn(g,t)&&(v===e||o(v,e,i,r,s)))return g.push(t)}))){h=!1;break}}else if(v!==b&&!o(v,b,i,r,s)){h=!1;break}}return s["delete"](e),s["delete"](t),h}function zo(e){return ds(ss(e,n,Ms),e+"")}function Ro(e){return ir(e,pl,Vo)}function Fo(e){return ir(e,dl,Ko)}var Bo=ci?function(e){return ci.get(e)}:Hl;function Po(e){for(var t=e.name+"",n=ui[t],i=ht.call(ui,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function Uo(e){return(ht.call(yi,"placeholder")?yi:e).placeholder}function Ho(){var e=yi.iteratee||Fl;return e=e===Fl?fr:e,arguments.length?e(arguments[0],arguments[1]):e}function $o(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Wo(e){for(var t=pl(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,rs(r)]}return t}function qo(e,t){var i=function(e,t){return null==e?n:e[t]}(e,t);return hr(i)?i:n}var Vo=Yt?function(e){return null==e?[]:(e=rt(e),cn(Yt(e),(function(t){return Ct.call(e,t)})))}:Yl,Ko=Yt?function(e){for(var t=[];e;)hn(t,Vo(e)),e=Et(e);return t}:Yl,Go=rr;function Yo(e,t,n){for(var i=-1,r=(t=Jr(t,e)).length,o=!1;++i<r;){var s=vs(t[i]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++i!=r?o:!!(r=null==e?0:e.length)&&ja(r)&&Jo(s,r)&&(Ea(e)||ka(e))}function Qo(e){return"function"!=typeof e.constructor||is(e)?{}:xi(Et(e))}function Zo(e){return Ea(e)||ka(e)||!!(Dt&&e&&e[Dt])}function Jo(e,t){var n=typeof e;return!!(t=null==t?L:t)&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!La(n))return!1;var i=typeof t;return!!("number"==i?Ca(n)&&Jo(t,n.length):"string"==i&&t in n)&&xa(n[t],e)}function es(e,t){if(Ea(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ha(e))||(Ne.test(e)||!Ae.test(e)||null!=t&&e in rt(t))}function ts(e){var t=Po(e),n=yi[t];if("function"!=typeof n||!(t in ki.prototype))return!1;if(e===n)return!0;var i=Bo(n);return!!i&&e===i[0]}(ii&&Go(new ii(new ArrayBuffer(1)))!=pe||ri&&Go(new ri)!=Z||oi&&Go(oi.resolve())!=te||si&&Go(new si)!=re||ai&&Go(new ai)!=le)&&(Go=function(e){var t=rr(e),i=t==ee?e.constructor:n,r=i?bs(i):"";if(r)switch(r){case pi:return pe;case di:return Z;case hi:return te;case fi:return re;case mi:return le}return t});var ns=pt?Aa:Ql;function is(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ut)}function rs(e){return e==e&&!La(e)}function os(e,t){return function(i){return null!=i&&(i[e]===t&&(t!==n||e in rt(i)))}}function ss(e,t,i){return t=Zn(t===n?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=Zn(n.length-t,0),s=Re(o);++r<o;)s[r]=n[t+r];r=-1;for(var a=Re(t+1);++r<t;)a[r]=n[r];return a[t]=i(s),rn(e,this,a)}}function as(e,t){return t.length<2?e:nr(e,zr(t,0,-1))}function ls(e,t){for(var i=e.length,r=Jn(t.length,i),o=lo(e);r--;){var s=t[r];e[r]=Jo(s,i)?o[s]:n}return e}function cs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var us=fs(jr),ps=Wt||function(e,t){return qt.setTimeout(e,t)},ds=fs(Lr);function hs(e,t,n){var i=t+"";return ds(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Fe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return sn(U,(function(n){var i="_."+n[0];t&n[1]&&!un(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(Be);return t?t[1].split(Pe):[]}(i),n)))}function fs(e){var t=0,i=0;return function(){var r=Xn(),o=S-(r-i);if(i=r,o>0){if(++t>=D)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var i=-1,r=e.length,o=r-1;for(t=t===n?r:t;++i<t;){var s=Or(i,o),a=e[s];e[s]=e[i],e[i]=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(je,(function(e,n,i,r){t.push(i?r.replace($e,"$1"):n||e)})),t}));function vs(e){if("string"==typeof e||Ha(e))return e;var t=e+"";return"0"==t&&1/e==-j?"-0":t}function bs(e){if(null!=e){try{return dt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ys(e){if(e instanceof ki)return e.clone();var t=new _i(e.__wrapped__,e.__chain__);return t.__actions__=lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var xs=Sr((function(e,t){return Oa(e)?Wi(e,Qi(t,1,Oa,!0)):[]})),ws=Sr((function(e,t){var i=Ts(t);return Oa(i)&&(i=n),Oa(e)?Wi(e,Qi(t,1,Oa,!0),Ho(i,2)):[]})),_s=Sr((function(e,t){var i=Ts(t);return Oa(i)&&(i=n),Oa(e)?Wi(e,Qi(t,1,Oa,!0),n,i):[]}));function ks(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Ga(n);return r<0&&(r=Zn(i+r,0)),yn(e,Ho(t,3),r)}function Es(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return i!==n&&(o=Ga(i),o=i<0?Zn(r+o,0):Jn(o,r-1)),yn(e,Ho(t,3),o,!0)}function Ms(e){return(null==e?0:e.length)?Qi(e,1):[]}function Cs(e){return e&&e.length?e[0]:n}var Os=Sr((function(e){var t=dn(e,Qr);return t.length&&t[0]===e[0]?lr(t):[]})),Ds=Sr((function(e){var t=Ts(e),i=dn(e,Qr);return t===Ts(i)?t=n:i.pop(),i.length&&i[0]===e[0]?lr(i,Ho(t,2)):[]})),Ss=Sr((function(e){var t=Ts(e),i=dn(e,Qr);return(t="function"==typeof t?t:n)&&i.pop(),i.length&&i[0]===e[0]?lr(i,n,t):[]}));function Ts(e){var t=null==e?0:e.length;return t?e[t-1]:n}var As=Sr(Ns);function Ns(e,t){return e&&e.length&&t&&t.length?Mr(e,t):e}var js=zo((function(e,t){var n=null==e?0:e.length,i=Bi(e,t);return Cr(e,dn(t,(function(e){return Jo(e,n)?+e:e})).sort(oo)),i}));function Ls(e){return null==e?e:ni.call(e)}var Is=Sr((function(e){return $r(Qi(e,1,Oa,!0))})),zs=Sr((function(e){var t=Ts(e);return Oa(t)&&(t=n),$r(Qi(e,1,Oa,!0),Ho(t,2))})),Rs=Sr((function(e){var t=Ts(e);return t="function"==typeof t?t:n,$r(Qi(e,1,Oa,!0),n,t)}));function Fs(e){if(!e||!e.length)return[];var t=0;return e=cn(e,(function(e){if(Oa(e))return t=Zn(e.length,t),!0})),Dn(t,(function(t){return dn(e,En(t))}))}function Bs(e,t){if(!e||!e.length)return[];var i=Fs(e);return null==t?i:dn(i,(function(e){return rn(t,n,e)}))}var Ps=Sr((function(e,t){return Oa(e)?Wi(e,t):[]})),Us=Sr((function(e){return Gr(cn(e,Oa))})),Hs=Sr((function(e){var t=Ts(e);return Oa(t)&&(t=n),Gr(cn(e,Oa),Ho(t,2))})),$s=Sr((function(e){var t=Ts(e);return t="function"==typeof t?t:n,Gr(cn(e,Oa),n,t)})),Ws=Sr(Fs);var qs=Sr((function(e){var t=e.length,i=t>1?e[t-1]:n;return i="function"==typeof i?(e.pop(),i):n,Bs(e,i)}));function Vs(e){var t=yi(e);return t.__chain__=!0,t}function Ks(e,t){return t(e)}var Gs=zo((function(e){var t=e.length,i=t?e[0]:0,r=this.__wrapped__,o=function(t){return Bi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ki&&Jo(i)?((r=r.slice(i,+i+(t?1:0))).__actions__.push({func:Ks,args:[o],thisArg:n}),new _i(r,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]:Fi(e,n,1)}));var Qs=bo(ks),Zs=bo(Es);function Js(e,t){return(Ea(e)?sn:qi)(e,Ho(t,3))}function Xs(e,t){return(Ea(e)?an:Vi)(e,Ho(t,3))}var ea=uo((function(e,t,n){ht.call(e,n)?e[n].push(t):Fi(e,n,[t])}));var ta=Sr((function(e,t,n){var i=-1,r="function"==typeof t,o=Ca(e)?Re(e.length):[];return qi(e,(function(e){o[++i]=r?rn(t,e,n):cr(e,t,n)})),o})),na=uo((function(e,t,n){Fi(e,n,t)}));function ia(e,t){return(Ea(e)?dn:br)(e,Ho(t,3))}var ra=uo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var oa=Sr((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]]),kr(e,Qi(t,1),[])})),sa=$t||function(){return qt.Date.now()};function aa(e,t,i){return t=i?n:t,t=e&&null==t?e.length:t,Ao(e,k,n,n,n,n,t)}function la(e,t){var i;if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var ca=Sr((function(e,t,n){var i=g;if(n.length){var r=Hn(n,Uo(ca));i|=w}return Ao(e,i,t,n,r)})),ua=Sr((function(e,t,n){var i=g|v;if(n.length){var r=Hn(n,Uo(ua));i|=w}return Ao(t,i,e,n,r)}));function pa(e,t,i){var r,o,a,l,c,u,p=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw new at(s);function m(t){var i=r,s=o;return r=o=n,p=t,l=e.apply(s,i)}function g(e){return p=e,c=ps(b,t),d?m(e):l}function v(e){var i=e-u;return u===n||i>=t||i<0||h&&e-p>=a}function b(){var e=sa();if(v(e))return y(e);c=ps(b,function(e){var n=t-(e-u);return h?Jn(n,a-(e-p)):n}(e))}function y(e){return c=n,f&&r?m(e):(r=o=n,l)}function x(){var e=sa(),i=v(e);if(r=arguments,o=this,u=e,i){if(c===n)return g(u);if(h)return to(c),c=ps(b,t),m(u)}return c===n&&(c=ps(b,t)),l}return t=Qa(t)||0,La(i)&&(d=!!i.leading,a=(h="maxWait"in i)?Zn(Qa(i.maxWait)||0,t):a,f="trailing"in i?!!i.trailing:f),x.cancel=function(){c!==n&&to(c),p=0,r=u=o=c=n},x.flush=function(){return c===n?l:y(sa())},x}var da=Sr((function(e,t){return $i(e,1,t)})),ha=Sr((function(e,t,n){return $i(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 i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(fa.Cache||Ci),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=Ci;var ga=Xr((function(e,t){var n=(t=1==t.length&&Ea(t[0])?dn(t[0],Tn(Ho())):dn(Qi(t,1),Tn(Ho()))).length;return Sr((function(i){for(var r=-1,o=Jn(i.length,n);++r<o;)i[r]=t[r].call(this,i[r]);return rn(e,this,i)}))})),va=Sr((function(e,t){var i=Hn(t,Uo(va));return Ao(e,w,n,t,i)})),ba=Sr((function(e,t){var i=Hn(t,Uo(ba));return Ao(e,_,n,t,i)})),ya=zo((function(e,t){return Ao(e,E,n,n,n,t)}));function xa(e,t){return e===t||e!=e&&t!=t}var wa=Co(or),_a=Co((function(e,t){return e>=t})),ka=ur(function(){return arguments}())?ur:function(e){return Ia(e)&&ht.call(e,"callee")&&!Ct.call(e,"callee")},Ea=Re.isArray,Ma=Zt?Tn(Zt):function(e){return Ia(e)&&rr(e)==ue};function Ca(e){return null!=e&&ja(e.length)&&!Aa(e)}function Oa(e){return Ia(e)&&Ca(e)}var Da=Qt||Ql,Sa=Jt?Tn(Jt):function(e){return Ia(e)&&rr(e)==V};function Ta(e){if(!Ia(e))return!1;var t=rr(e);return t==G||t==K||"string"==typeof e.message&&"string"==typeof e.name&&!Fa(e)}function Aa(e){if(!La(e))return!1;var t=rr(e);return t==Y||t==Q||t==W||t==ne}function Na(e){return"number"==typeof e&&e==Ga(e)}function ja(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 Ia(e){return null!=e&&"object"==typeof e}var za=Xt?Tn(Xt):function(e){return Ia(e)&&Go(e)==Z};function Ra(e){return"number"==typeof e||Ia(e)&&rr(e)==J}function Fa(e){if(!Ia(e)||rr(e)!=ee)return!1;var t=Et(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&dt.call(n)==vt}var Ba=en?Tn(en):function(e){return Ia(e)&&rr(e)==ie};var Pa=tn?Tn(tn):function(e){return Ia(e)&&Go(e)==re};function Ua(e){return"string"==typeof e||!Ea(e)&&Ia(e)&&rr(e)==oe}function Ha(e){return"symbol"==typeof e||Ia(e)&&rr(e)==se}var $a=nn?Tn(nn):function(e){return Ia(e)&&ja(e.length)&&!!Ft[rr(e)]};var Wa=Co(vr),qa=Co((function(e,t){return e<=t}));function Va(e){if(!e)return[];if(Ca(e))return Ua(e)?Vn(e):lo(e);if(St&&e[St])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[St]());var t=Go(e);return(t==Z?Pn:t==re?$n:xl)(e)}function Ka(e){return e?(e=Qa(e))===j||e===-j?(e<0?-1:1)*I: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?Pi(Ga(e),0,R):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=Sn(e);var n=Ke.test(e);return n||Ye.test(e)?Ht(e.slice(2),n?2:8):Ve.test(e)?z:+e}function Za(e){return co(e,dl(e))}function Ja(e){return null==e?"":Hr(e)}var Xa=po((function(e,t){if(is(t)||Ca(t))co(t,pl(t),e);else for(var n in t)ht.call(t,n)&&Li(e,n,t[n])})),el=po((function(e,t){co(t,dl(t),e)})),tl=po((function(e,t,n,i){co(t,dl(t),e,i)})),nl=po((function(e,t,n,i){co(t,pl(t),e,i)})),il=zo(Bi);var rl=Sr((function(e,t){e=rt(e);var i=-1,r=t.length,o=r>2?t[2]:n;for(o&&Xo(t[0],t[1],o)&&(r=1);++i<r;)for(var s=t[i],a=dl(s),l=-1,c=a.length;++l<c;){var u=a[l],p=e[u];(p===n||xa(p,ut[u])&&!ht.call(e,u))&&(e[u]=s[u])}return e})),ol=Sr((function(e){return e.push(n,jo),rn(fl,n,e)}));function sl(e,t,i){var r=null==e?n:nr(e,t);return r===n?i:r}function al(e,t){return null!=e&&Yo(e,t,ar)}var ll=wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),e[t]=n}),Ll(Rl)),cl=wo((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=Sr(cr);function pl(e){return Ca(e)?Si(e):mr(e)}function dl(e){return Ca(e)?Si(e,!0):gr(e)}var hl=po((function(e,t,n){wr(e,t,n)})),fl=po((function(e,t,n,i){wr(e,t,n,i)})),ml=zo((function(e,t){var n={};if(null==e)return n;var i=!1;t=dn(t,(function(t){return t=Jr(t,e),i||(i=t.length>1),t})),co(e,Fo(e),n),i&&(n=Ui(n,p|d|h,Lo));for(var r=t.length;r--;)Wr(n,t[r]);return n}));var gl=zo((function(e,t){return null==e?{}:function(e,t){return Er(e,t,(function(t,n){return al(e,n)}))}(e,t)}));function vl(e,t){if(null==e)return{};var n=dn(Fo(e),(function(e){return[e]}));return t=Ho(t),Er(e,n,(function(e,n){return t(e,n[0])}))}var bl=To(pl),yl=To(dl);function xl(e){return null==e?[]:An(e,pl(e))}var wl=go((function(e,t,n){return t=t.toLowerCase(),e+(n?_l(t):t)}));function _l(e){return Tl(Ja(e).toLowerCase())}function kl(e){return(e=Ja(e))&&e.replace(Ze,zn).replace(At,"")}var El=go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ml=go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Cl=mo("toLowerCase");var Ol=go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Dl=go((function(e,t,n){return e+(n?" ":"")+Tl(t)}));var Sl=go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Tl=mo("toUpperCase");function Al(e,t,i){return e=Ja(e),(t=i?n:t)===n?function(e){return It.test(e)}(e)?function(e){return e.match(jt)||[]}(e):function(e){return e.match(Ue)||[]}(e):e.match(t)||[]}var Nl=Sr((function(e,t){try{return rn(e,n,t)}catch(e){return Ta(e)?e:new tt(e)}})),jl=zo((function(e,t){return sn(t,(function(t){t=vs(t),Fi(e,t,ca(e[t],e))})),e}));function Ll(e){return function(){return e}}var Il=yo(),zl=yo(!0);function Rl(e){return e}function Fl(e){return fr("function"==typeof e?e:Ui(e,p))}var Bl=Sr((function(e,t){return function(n){return cr(n,e,t)}})),Pl=Sr((function(e,t){return function(n){return cr(e,n,t)}}));function Ul(e,t,n){var i=pl(t),r=tr(t,i);null!=n||La(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=tr(t,pl(t)));var o=!(La(n)&&"chain"in n&&!n.chain),s=Aa(e);return sn(r,(function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),r=n.__actions__=lo(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,hn([this.value()],arguments))})})),e}function Hl(){}var $l=ko(dn),Wl=ko(ln),ql=ko(gn);function Vl(e){return es(e)?En(vs(e)):function(e){return function(t){return nr(t,e)}}(e)}var Kl=Mo(),Gl=Mo(!0);function Yl(){return[]}function Ql(){return!1}var Zl=_o((function(e,t){return e+t}),0),Jl=Do("ceil"),Xl=_o((function(e,t){return e/t}),1),ec=Do("floor");var tc=_o((function(e,t){return e*t}),1),nc=Do("round"),ic=_o((function(e,t){return e-t}),0);return yi.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)}},yi.ary=aa,yi.assign=Xa,yi.assignIn=el,yi.assignInWith=tl,yi.assignWith=nl,yi.at=il,yi.before=la,yi.bind=ca,yi.bindAll=jl,yi.bindKey=ua,yi.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ea(e)?e:[e]},yi.chain=Vs,yi.chunk=function(e,t,i){t=(i?Xo(e,t,i):t===n)?1:Zn(Ga(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,s=0,a=Re(Vt(r/t));o<r;)a[s++]=zr(e,o,o+=t);return a},yi.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r},yi.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Re(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return hn(Ea(n)?lo(n):[n],Qi(t,1))},yi.cond=function(e){var t=null==e?0:e.length,n=Ho();return e=t?dn(e,(function(e){if("function"!=typeof e[1])throw new at(s);return[n(e[0]),e[1]]})):[],Sr((function(n){for(var i=-1;++i<t;){var r=e[i];if(rn(r[0],this,n))return rn(r[1],this,n)}}))},yi.conforms=function(e){return function(e){var t=pl(e);return function(n){return Hi(n,e,t)}}(Ui(e,p))},yi.constant=Ll,yi.countBy=Ys,yi.create=function(e,t){var n=xi(e);return null==t?n:Ri(n,t)},yi.curry=function e(t,i,r){var o=Ao(t,y,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},yi.curryRight=function e(t,i,r){var o=Ao(t,x,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},yi.debounce=pa,yi.defaults=rl,yi.defaultsDeep=ol,yi.defer=da,yi.delay=ha,yi.difference=xs,yi.differenceBy=ws,yi.differenceWith=_s,yi.drop=function(e,t,i){var r=null==e?0:e.length;return r?zr(e,(t=i||t===n?1:Ga(t))<0?0:t,r):[]},yi.dropRight=function(e,t,i){var r=null==e?0:e.length;return r?zr(e,0,(t=r-(t=i||t===n?1:Ga(t)))<0?0:t):[]},yi.dropRightWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!0,!0):[]},yi.dropWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!0):[]},yi.fill=function(e,t,i,r){var o=null==e?0:e.length;return o?(i&&"number"!=typeof i&&Xo(e,t,i)&&(i=0,r=o),function(e,t,i,r){var o=e.length;for((i=Ga(i))<0&&(i=-i>o?0:o+i),(r=r===n||r>o?o:Ga(r))<0&&(r+=o),r=i>r?0:Ya(r);i<r;)e[i++]=t;return e}(e,t,i,r)):[]},yi.filter=function(e,t){return(Ea(e)?cn:Yi)(e,Ho(t,3))},yi.flatMap=function(e,t){return Qi(ia(e,t),1)},yi.flatMapDeep=function(e,t){return Qi(ia(e,t),j)},yi.flatMapDepth=function(e,t,i){return i=i===n?1:Ga(i),Qi(ia(e,t),i)},yi.flatten=Ms,yi.flattenDeep=function(e){return(null==e?0:e.length)?Qi(e,j):[]},yi.flattenDepth=function(e,t){return(null==e?0:e.length)?Qi(e,t=t===n?1:Ga(t)):[]},yi.flip=function(e){return Ao(e,M)},yi.flow=Il,yi.flowRight=zl,yi.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},yi.functions=function(e){return null==e?[]:tr(e,pl(e))},yi.functionsIn=function(e){return null==e?[]:tr(e,dl(e))},yi.groupBy=ea,yi.initial=function(e){return(null==e?0:e.length)?zr(e,0,-1):[]},yi.intersection=Os,yi.intersectionBy=Ds,yi.intersectionWith=Ss,yi.invert=ll,yi.invertBy=cl,yi.invokeMap=ta,yi.iteratee=Fl,yi.keyBy=na,yi.keys=pl,yi.keysIn=dl,yi.map=ia,yi.mapKeys=function(e,t){var n={};return t=Ho(t,3),Xi(e,(function(e,i,r){Fi(n,t(e,i,r),e)})),n},yi.mapValues=function(e,t){var n={};return t=Ho(t,3),Xi(e,(function(e,i,r){Fi(n,i,t(e,i,r))})),n},yi.matches=function(e){return yr(Ui(e,p))},yi.matchesProperty=function(e,t){return xr(e,Ui(t,p))},yi.memoize=fa,yi.merge=hl,yi.mergeWith=fl,yi.method=Bl,yi.methodOf=Pl,yi.mixin=Ul,yi.negate=ma,yi.nthArg=function(e){return e=Ga(e),Sr((function(t){return _r(t,e)}))},yi.omit=ml,yi.omitBy=function(e,t){return vl(e,ma(Ho(t)))},yi.once=function(e){return la(2,e)},yi.orderBy=function(e,t,i,r){return null==e?[]:(Ea(t)||(t=null==t?[]:[t]),Ea(i=r?n:i)||(i=null==i?[]:[i]),kr(e,t,i))},yi.over=$l,yi.overArgs=ga,yi.overEvery=Wl,yi.overSome=ql,yi.partial=va,yi.partialRight=ba,yi.partition=ra,yi.pick=gl,yi.pickBy=vl,yi.property=Vl,yi.propertyOf=function(e){return function(t){return null==e?n:nr(e,t)}},yi.pull=As,yi.pullAll=Ns,yi.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mr(e,t,Ho(n,2)):e},yi.pullAllWith=function(e,t,i){return e&&e.length&&t&&t.length?Mr(e,t,n,i):e},yi.pullAt=js,yi.range=Kl,yi.rangeRight=Gl,yi.rearg=ya,yi.reject=function(e,t){return(Ea(e)?cn:Yi)(e,ma(Ho(t,3)))},yi.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=Ho(t,3);++i<o;){var s=e[i];t(s,i,e)&&(n.push(s),r.push(i))}return Cr(e,r),n},yi.rest=function(e,t){if("function"!=typeof e)throw new at(s);return Sr(e,t=t===n?t:Ga(t))},yi.reverse=Ls,yi.sampleSize=function(e,t,i){return t=(i?Xo(e,t,i):t===n)?1:Ga(t),(Ea(e)?Ai:Ar)(e,t)},yi.set=function(e,t,n){return null==e?e:Nr(e,t,n)},yi.setWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:Nr(e,t,i,r)},yi.shuffle=function(e){return(Ea(e)?Ni:Ir)(e)},yi.slice=function(e,t,i){var r=null==e?0:e.length;return r?(i&&"number"!=typeof i&&Xo(e,t,i)?(t=0,i=r):(t=null==t?0:Ga(t),i=i===n?r:Ga(i)),zr(e,t,i)):[]},yi.sortBy=oa,yi.sortedUniq=function(e){return e&&e.length?Pr(e):[]},yi.sortedUniqBy=function(e,t){return e&&e.length?Pr(e,Ho(t,2)):[]},yi.split=function(e,t,i){return i&&"number"!=typeof i&&Xo(e,t,i)&&(t=i=n),(i=i===n?R:i>>>0)?(e=Ja(e))&&("string"==typeof t||null!=t&&!Ba(t))&&!(t=Hr(t))&&Bn(e)?eo(Vn(e),0,i):e.split(t,i):[]},yi.spread=function(e,t){if("function"!=typeof e)throw new at(s);return t=null==t?0:Zn(Ga(t),0),Sr((function(n){var i=n[t],r=eo(n,0,t);return i&&hn(r,i),rn(e,this,r)}))},yi.tail=function(e){var t=null==e?0:e.length;return t?zr(e,1,t):[]},yi.take=function(e,t,i){return e&&e.length?zr(e,0,(t=i||t===n?1:Ga(t))<0?0:t):[]},yi.takeRight=function(e,t,i){var r=null==e?0:e.length;return r?zr(e,(t=r-(t=i||t===n?1:Ga(t)))<0?0:t,r):[]},yi.takeRightWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!1,!0):[]},yi.takeWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3)):[]},yi.tap=function(e,t){return t(e),e},yi.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new at(s);return La(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),pa(e,t,{leading:i,maxWait:t,trailing:r})},yi.thru=Ks,yi.toArray=Va,yi.toPairs=bl,yi.toPairsIn=yl,yi.toPath=function(e){return Ea(e)?dn(e,vs):Ha(e)?[e]:lo(gs(Ja(e)))},yi.toPlainObject=Za,yi.transform=function(e,t,n){var i=Ea(e),r=i||Da(e)||$a(e);if(t=Ho(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:La(e)&&Aa(o)?xi(Et(e)):{}}return(r?sn:Xi)(e,(function(e,i,r){return t(n,e,i,r)})),n},yi.unary=function(e){return aa(e,1)},yi.union=Is,yi.unionBy=zs,yi.unionWith=Rs,yi.uniq=function(e){return e&&e.length?$r(e):[]},yi.uniqBy=function(e,t){return e&&e.length?$r(e,Ho(t,2)):[]},yi.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?$r(e,n,t):[]},yi.unset=function(e,t){return null==e||Wr(e,t)},yi.unzip=Fs,yi.unzipWith=Bs,yi.update=function(e,t,n){return null==e?e:qr(e,t,Zr(n))},yi.updateWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:qr(e,t,Zr(i),r)},yi.values=xl,yi.valuesIn=function(e){return null==e?[]:An(e,dl(e))},yi.without=Ps,yi.words=Al,yi.wrap=function(e,t){return va(Zr(t),e)},yi.xor=Us,yi.xorBy=Hs,yi.xorWith=$s,yi.zip=Ws,yi.zipObject=function(e,t){return Yr(e||[],t||[],Li)},yi.zipObjectDeep=function(e,t){return Yr(e||[],t||[],Nr)},yi.zipWith=qs,yi.entries=bl,yi.entriesIn=yl,yi.extend=el,yi.extendWith=tl,Ul(yi,yi),yi.add=Zl,yi.attempt=Nl,yi.camelCase=wl,yi.capitalize=_l,yi.ceil=Jl,yi.clamp=function(e,t,i){return i===n&&(i=t,t=n),i!==n&&(i=(i=Qa(i))==i?i:0),t!==n&&(t=(t=Qa(t))==t?t:0),Pi(Qa(e),t,i)},yi.clone=function(e){return Ui(e,h)},yi.cloneDeep=function(e){return Ui(e,p|h)},yi.cloneDeepWith=function(e,t){return Ui(e,p|h,t="function"==typeof t?t:n)},yi.cloneWith=function(e,t){return Ui(e,h,t="function"==typeof t?t:n)},yi.conformsTo=function(e,t){return null==t||Hi(e,t,pl(t))},yi.deburr=kl,yi.defaultTo=function(e,t){return null==e||e!=e?t:e},yi.divide=Xl,yi.endsWith=function(e,t,i){e=Ja(e),t=Hr(t);var r=e.length,o=i=i===n?r:Pi(Ga(i),0,r);return(i-=t.length)>=0&&e.slice(i,o)==t},yi.eq=xa,yi.escape=function(e){return(e=Ja(e))&&Oe.test(e)?e.replace(Me,Rn):e},yi.escapeRegExp=function(e){return(e=Ja(e))&&Ie.test(e)?e.replace(Le,"\\$&"):e},yi.every=function(e,t,i){var r=Ea(e)?ln:Ki;return i&&Xo(e,t,i)&&(t=n),r(e,Ho(t,3))},yi.find=Qs,yi.findIndex=ks,yi.findKey=function(e,t){return bn(e,Ho(t,3),Xi)},yi.findLast=Zs,yi.findLastIndex=Es,yi.findLastKey=function(e,t){return bn(e,Ho(t,3),er)},yi.floor=ec,yi.forEach=Js,yi.forEachRight=Xs,yi.forIn=function(e,t){return null==e?e:Zi(e,Ho(t,3),dl)},yi.forInRight=function(e,t){return null==e?e:Ji(e,Ho(t,3),dl)},yi.forOwn=function(e,t){return e&&Xi(e,Ho(t,3))},yi.forOwnRight=function(e,t){return e&&er(e,Ho(t,3))},yi.get=sl,yi.gt=wa,yi.gte=_a,yi.has=function(e,t){return null!=e&&Yo(e,t,sr)},yi.hasIn=al,yi.head=Cs,yi.identity=Rl,yi.includes=function(e,t,n,i){e=Ca(e)?e:xl(e),n=n&&!i?Ga(n):0;var r=e.length;return n<0&&(n=Zn(r+n,0)),Ua(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&xn(e,t,n)>-1},yi.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Ga(n);return r<0&&(r=Zn(i+r,0)),xn(e,t,r)},yi.inRange=function(e,t,i){return t=Ka(t),i===n?(i=t,t=0):i=Ka(i),function(e,t,n){return e>=Jn(t,n)&&e<Zn(t,n)}(e=Qa(e),t,i)},yi.invoke=ul,yi.isArguments=ka,yi.isArray=Ea,yi.isArrayBuffer=Ma,yi.isArrayLike=Ca,yi.isArrayLikeObject=Oa,yi.isBoolean=function(e){return!0===e||!1===e||Ia(e)&&rr(e)==q},yi.isBuffer=Da,yi.isDate=Sa,yi.isElement=function(e){return Ia(e)&&1===e.nodeType&&!Fa(e)},yi.isEmpty=function(e){if(null==e)return!0;if(Ca(e)&&(Ea(e)||"string"==typeof e||"function"==typeof e.splice||Da(e)||$a(e)||ka(e)))return!e.length;var t=Go(e);if(t==Z||t==re)return!e.size;if(is(e))return!mr(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0},yi.isEqual=function(e,t){return pr(e,t)},yi.isEqualWith=function(e,t,i){var r=(i="function"==typeof i?i:n)?i(e,t):n;return r===n?pr(e,t,n,i):!!r},yi.isError=Ta,yi.isFinite=function(e){return"number"==typeof e&&vn(e)},yi.isFunction=Aa,yi.isInteger=Na,yi.isLength=ja,yi.isMap=za,yi.isMatch=function(e,t){return e===t||dr(e,t,Wo(t))},yi.isMatchWith=function(e,t,i){return i="function"==typeof i?i:n,dr(e,t,Wo(t),i)},yi.isNaN=function(e){return Ra(e)&&e!=+e},yi.isNative=function(e){if(ns(e))throw new tt(o);return hr(e)},yi.isNil=function(e){return null==e},yi.isNull=function(e){return null===e},yi.isNumber=Ra,yi.isObject=La,yi.isObjectLike=Ia,yi.isPlainObject=Fa,yi.isRegExp=Ba,yi.isSafeInteger=function(e){return Na(e)&&e>=-L&&e<=L},yi.isSet=Pa,yi.isString=Ua,yi.isSymbol=Ha,yi.isTypedArray=$a,yi.isUndefined=function(e){return e===n},yi.isWeakMap=function(e){return Ia(e)&&Go(e)==le},yi.isWeakSet=function(e){return Ia(e)&&rr(e)==ce},yi.join=function(e,t){return null==e?"":Mn.call(e,t)},yi.kebabCase=El,yi.last=Ts,yi.lastIndexOf=function(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r;return i!==n&&(o=(o=Ga(i))<0?Zn(r+o,0):Jn(o,r-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):yn(e,_n,o,!0)},yi.lowerCase=Ml,yi.lowerFirst=Cl,yi.lt=Wa,yi.lte=qa,yi.max=function(e){return e&&e.length?Gi(e,Rl,or):n},yi.maxBy=function(e,t){return e&&e.length?Gi(e,Ho(t,2),or):n},yi.mean=function(e){return kn(e,Rl)},yi.meanBy=function(e,t){return kn(e,Ho(t,2))},yi.min=function(e){return e&&e.length?Gi(e,Rl,vr):n},yi.minBy=function(e,t){return e&&e.length?Gi(e,Ho(t,2),vr):n},yi.stubArray=Yl,yi.stubFalse=Ql,yi.stubObject=function(){return{}},yi.stubString=function(){return""},yi.stubTrue=function(){return!0},yi.multiply=tc,yi.nth=function(e,t){return e&&e.length?_r(e,Ga(t)):n},yi.noConflict=function(){return qt._===this&&(qt._=bt),this},yi.noop=Hl,yi.now=sa,yi.pad=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?qn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Eo(Kt(r),n)+e+Eo(Vt(r),n)},yi.padEnd=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?qn(e):0;return t&&i<t?e+Eo(t-i,n):e},yi.padStart=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?qn(e):0;return t&&i<t?Eo(t-i,n)+e:e},yi.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ei(Ja(e).replace(ze,""),t||0)},yi.random=function(e,t,i){if(i&&"boolean"!=typeof i&&Xo(e,t,i)&&(t=i=n),i===n&&("boolean"==typeof t?(i=t,t=n):"boolean"==typeof e&&(i=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 r=e;e=t,t=r}if(i||e%1||t%1){var o=ti();return Jn(e+o*(t-e+Ut("1e-"+((o+"").length-1))),t)}return Or(e,t)},yi.reduce=function(e,t,n){var i=Ea(e)?fn:Cn,r=arguments.length<3;return i(e,Ho(t,4),n,r,qi)},yi.reduceRight=function(e,t,n){var i=Ea(e)?mn:Cn,r=arguments.length<3;return i(e,Ho(t,4),n,r,Vi)},yi.repeat=function(e,t,i){return t=(i?Xo(e,t,i):t===n)?1:Ga(t),Dr(Ja(e),t)},yi.replace=function(){var e=arguments,t=Ja(e[0]);return e.length<3?t:t.replace(e[1],e[2])},yi.result=function(e,t,i){var r=-1,o=(t=Jr(t,e)).length;for(o||(o=1,e=n);++r<o;){var s=null==e?n:e[vs(t[r])];s===n&&(r=o,s=i),e=Aa(s)?s.call(e):s}return e},yi.round=nc,yi.runInContext=e,yi.sample=function(e){return(Ea(e)?Ti:Tr)(e)},yi.size=function(e){if(null==e)return 0;if(Ca(e))return Ua(e)?qn(e):e.length;var t=Go(e);return t==Z||t==re?e.size:mr(e).length},yi.snakeCase=Ol,yi.some=function(e,t,i){var r=Ea(e)?gn:Rr;return i&&Xo(e,t,i)&&(t=n),r(e,Ho(t,3))},yi.sortedIndex=function(e,t){return Fr(e,t)},yi.sortedIndexBy=function(e,t,n){return Br(e,t,Ho(n,2))},yi.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=Fr(e,t);if(i<n&&xa(e[i],t))return i}return-1},yi.sortedLastIndex=function(e,t){return Fr(e,t,!0)},yi.sortedLastIndexBy=function(e,t,n){return Br(e,t,Ho(n,2),!0)},yi.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Fr(e,t,!0)-1;if(xa(e[n],t))return n}return-1},yi.startCase=Dl,yi.startsWith=function(e,t,n){return e=Ja(e),n=null==n?0:Pi(Ga(n),0,e.length),t=Hr(t),e.slice(n,n+t.length)==t},yi.subtract=ic,yi.sum=function(e){return e&&e.length?On(e,Rl):0},yi.sumBy=function(e,t){return e&&e.length?On(e,Ho(t,2)):0},yi.template=function(e,t,i){var r=yi.templateSettings;i&&Xo(e,t,i)&&(t=n),e=Ja(e),t=tl({},t,r,No);var o,s,l=tl({},t.imports,r.imports,No),c=pl(l),u=An(l,c),p=0,d=t.interpolate||Je,h="__p += '",f=ot((t.escape||Je).source+"|"+d.source+"|"+(d===Te?We:Je).source+"|"+(t.evaluate||Je).source+"|$","g"),m="//# sourceURL="+(ht.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rt+"]")+"\n";e.replace(f,(function(t,n,i,r,a,l){return i||(i=r),h+=e.slice(p,l).replace(Xe,Fn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),p=l+t.length,t})),h+="';\n";var g=ht.call(t,"variable")&&t.variable;if(g){if(He.test(g))throw new tt(a)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(we,""):h).replace(_e,"$1").replace(ke,"$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 v=Nl((function(){return nt(c,m+"return "+h).apply(n,u)}));if(v.source=h,Ta(v))throw v;return v},yi.times=function(e,t){if((e=Ga(e))<1||e>L)return[];var n=R,i=Jn(e,R);t=Ho(t),e-=R;for(var r=Dn(i,t);++n<e;)t(n);return r},yi.toFinite=Ka,yi.toInteger=Ga,yi.toLength=Ya,yi.toLower=function(e){return Ja(e).toLowerCase()},yi.toNumber=Qa,yi.toSafeInteger=function(e){return e?Pi(Ga(e),-L,L):0===e?e:0},yi.toString=Ja,yi.toUpper=function(e){return Ja(e).toUpperCase()},yi.trim=function(e,t,i){if((e=Ja(e))&&(i||t===n))return Sn(e);if(!e||!(t=Hr(t)))return e;var r=Vn(e),o=Vn(t);return eo(r,jn(r,o),Ln(r,o)+1).join("")},yi.trimEnd=function(e,t,i){if((e=Ja(e))&&(i||t===n))return e.slice(0,Kn(e)+1);if(!e||!(t=Hr(t)))return e;var r=Vn(e);return eo(r,0,Ln(r,Vn(t))+1).join("")},yi.trimStart=function(e,t,i){if((e=Ja(e))&&(i||t===n))return e.replace(ze,"");if(!e||!(t=Hr(t)))return e;var r=Vn(e);return eo(r,jn(r,Vn(t))).join("")},yi.truncate=function(e,t){var i=C,r=O;if(La(t)){var o="separator"in t?t.separator:o;i="length"in t?Ga(t.length):i,r="omission"in t?Hr(t.omission):r}var s=(e=Ja(e)).length;if(Bn(e)){var a=Vn(e);s=a.length}if(i>=s)return e;var l=i-qn(r);if(l<1)return r;var c=a?eo(a,0,l).join(""):e.slice(0,l);if(o===n)return c+r;if(a&&(l+=c.length-l),Ba(o)){if(e.slice(l).search(o)){var u,p=c;for(o.global||(o=ot(o.source,Ja(qe.exec(o))+"g")),o.lastIndex=0;u=o.exec(p);)var d=u.index;c=c.slice(0,d===n?l:d)}}else if(e.indexOf(Hr(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r},yi.unescape=function(e){return(e=Ja(e))&&Ce.test(e)?e.replace(Ee,Gn):e},yi.uniqueId=function(e){var t=++ft;return Ja(e)+t},yi.upperCase=Sl,yi.upperFirst=Tl,yi.each=Js,yi.eachRight=Xs,yi.first=Cs,Ul(yi,function(){var e={};return Xi(yi,(function(t,n){ht.call(yi.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),yi.VERSION=i,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){yi[e].placeholder=yi})),sn(["drop","take"],(function(e,t){ki.prototype[e]=function(i){i=i===n?1:Zn(Ga(i),0);var r=this.__filtered__&&!t?new ki(this):this.clone();return r.__filtered__?r.__takeCount__=Jn(i,r.__takeCount__):r.__views__.push({size:Jn(i,R),type:e+(r.__dir__<0?"Right":"")}),r},ki.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),sn(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=n==T||n==N;ki.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ho(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),sn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");ki.prototype[e]=function(){return this[n](1).value()[0]}})),sn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");ki.prototype[e]=function(){return this.__filtered__?new ki(this):this[n](1)}})),ki.prototype.compact=function(){return this.filter(Rl)},ki.prototype.find=function(e){return this.filter(e).head()},ki.prototype.findLast=function(e){return this.reverse().find(e)},ki.prototype.invokeMap=Sr((function(e,t){return"function"==typeof e?new ki(this):this.map((function(n){return cr(n,e,t)}))})),ki.prototype.reject=function(e){return this.filter(ma(Ho(e)))},ki.prototype.slice=function(e,t){e=Ga(e);var i=this;return i.__filtered__&&(e>0||t<0)?new ki(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==n&&(i=(t=Ga(t))<0?i.dropRight(-t):i.take(t-e)),i)},ki.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ki.prototype.toArray=function(){return this.take(R)},Xi(ki.prototype,(function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=yi[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(yi.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof ki,c=a[0],u=l||Ea(t),p=function(e){var t=o.apply(yi,hn([e],a));return r&&d?t[0]:t};u&&i&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,h=!!this.__actions__.length,f=s&&!d,m=l&&!h;if(!s&&u){t=m?t:new ki(this);var g=e.apply(t,a);return g.__actions__.push({func:Ks,args:[p],thisArg:n}),new _i(g,d)}return f&&m?e.apply(this,a):(g=this.thru(p),f?r?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",i=/^(?:pop|shift)$/.test(e);yi.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Ea(r)?r:[],e)}return this[n]((function(n){return t.apply(Ea(n)?n:[],e)}))}})),Xi(ki.prototype,(function(e,t){var n=yi[t];if(n){var i=n.name+"";ht.call(ui,i)||(ui[i]=[]),ui[i].push({name:t,func:n})}})),ui[xo(n,v).name]=[{name:"wrapper",func:n}],ki.prototype.clone=function(){var e=new ki(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},ki.prototype.reverse=function(){if(this.__filtered__){var e=new ki(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ki.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ea(e),i=t<0,r=n?e.length:0,o=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Jn(t,e+s);break;case"takeRight":e=Zn(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=o.start,a=o.end,l=a-s,c=i?a:s-1,u=this.__iteratees__,p=u.length,d=0,h=Jn(l,this.__takeCount__);if(!n||!i&&r==l&&h==l)return Kr(e,this.__actions__);var f=[];e:for(;l--&&d<h;){for(var m=-1,g=e[c+=t];++m<p;){var v=u[m],b=v.iteratee,y=v.type,x=b(g);if(y==A)g=x;else if(!x){if(y==T)continue e;break e}}f[d++]=g}return f},yi.prototype.at=Gs,yi.prototype.chain=function(){return Vs(this)},yi.prototype.commit=function(){return new _i(this.value(),this.__chain__)},yi.prototype.next=function(){this.__values__===n&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},yi.prototype.plant=function(e){for(var t,i=this;i instanceof wi;){var r=ys(i);r.__index__=0,r.__values__=n,t?o.__wrapped__=r:t=r;var o=r;i=i.__wrapped__}return o.__wrapped__=e,t},yi.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ki){var t=e;return this.__actions__.length&&(t=new ki(this)),(t=t.reverse()).__actions__.push({func:Ks,args:[Ls],thisArg:n}),new _i(t,this.__chain__)}return this.thru(Ls)},yi.prototype.toJSON=yi.prototype.valueOf=yi.prototype.value=function(){return Kr(this.__wrapped__,this.__actions__)},yi.prototype.first=yi.prototype.head,St&&(yi.prototype[St]=function(){return this}),yi}();Kt?((Kt.exports=Yn)._=Yn,Vt._=Yn):qt._=Yn}).call(B)}(rP,rP.exports);const oP=()=>document.documentElement.style.setProperty("--focus-background-color","rgba(234, 243, 252, 0.5)"),sP=()=>document.documentElement.style.setProperty("--focus-background-color","transparent"),aP={onMouseEnter:oP,onMouseLeave:sP},lP=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?aP:{}};function cP(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}var uP="undefined"!=typeof window&&"undefined"!=typeof document;function pP(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function dP(){return uP&&document.createElement("div")}function hP(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(!hP(e[n],t[n]))return!1}return!0}return!1}function fP(e){var t=[];return e.forEach((function(e){t.find((function(t){return hP(e,t)}))||t.push(e)})),t}var mP=uP?c:r;function gP(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var vP={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 i(){e.props.className&&!n()||gP(t,"add",e.props.className)}return{onCreate:i,onBeforeUpdate:function(){n()&&gP(t,"remove",e.props.className)},onAfterUpdate:i}}};function bP(e){return function(r){var o=r.children,s=r.content,a=r.visible,c=r.singleton,u=r.render,p=r.reference,d=r.disabled,h=void 0!==d&&d,f=r.ignoreAttributes,m=void 0===f||f;r.__source,r.__self;var g,v,b=cP(r,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),y=void 0!==a,x=void 0!==c,w=n(!1),_=w[0],k=w[1],E=n({}),M=E[0],C=E[1],O=n(),D=O[0],S=O[1],T=(g=function(){return{container:dP(),renders:1}},(v=i()).current||(v.current="function"==typeof g?g():g),v.current),A=Object.assign({ignoreAttributes:m},b,{content:T.container});y&&(A.trigger="manual",A.hideOnClick=!1),x&&(h=!0);var N=A,j=A.plugins||[];u&&(N=Object.assign({},A,{plugins:x&&null!=c.data?[].concat(j,[{fn:function(){return{onTrigger:function(e,t){var n=c.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,S(n.content)}}}}]):j,render:function(){return{popper:T.container}}}));var L=[p].concat(o?[o.type]:[]);return mP((function(){var t=p;p&&p.hasOwnProperty("current")&&(t=p.current);var n=e(t||T.ref||dP(),Object.assign({},N,{plugins:[vP].concat(A.plugins||[])}));return T.instance=n,h&&n.disable(),a&&n.show(),x&&c.hook({instance:n,content:s,props:N,setSingletonContent:S}),k(!0),function(){n.destroy(),null==c||c.cleanup(n)}}),L),mP((function(){var e;if(1!==T.renders){var t,n,i,r,o=T.instance;o.setProps((t=o.props,n=N,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:fP([].concat((null==(i=t.popperOptions)?void 0:i.modifiers)||[],(null==(r=n.popperOptions)?void 0:r.modifiers)||[]))})}))),null==(e=o.popperInstance)||e.forceUpdate(),h?o.disable():o.enable(),y&&(a?o.show():o.hide()),x&&c.hook({instance:o,content:s,props:N,setSingletonContent:S})}else T.renders++})),mP((function(){var e;if(u){var t=T.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,i=null==(t=n.modifiersData)?void 0:t.hide;M.placement===n.placement&&M.referenceHidden===(null==i?void 0:i.isReferenceHidden)&&M.escaped===(null==i?void 0:i.hasPopperEscaped)||C({placement:n.placement,referenceHidden:null==i?void 0:i.isReferenceHidden,escaped:null==i?void 0:i.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[M.placement,M.referenceHidden,M.escaped].concat(L)),t.createElement(t.Fragment,null,o?l(o,{ref:function(e){T.ref=e,pP(o.ref,e)}}):null,_&&z(u?u(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(M),D,T.instance):s,T.container))}}var yP=function(e,n){return a((function(i,r){var o=i.children,s=cP(i,["children"]);return t.createElement(e,Object.assign({},n,s),o?l(o,{ref:function(e){pP(r,e),pP(o.ref,e)}}):null)}))},xP=yP(bP(rD));class wP extends t.Component{constructor(e){super(e),Nd(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)})),Nd(this,"selectItem",(e=>{const{items:t,editor:n,range:i}=this.props,r=t[e],o=r&&r.command,s=dg(r.items);o&&s&&r.command({editor:n,range:i})})),Nd(this,"upHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+e.length-1)%e.length})})),Nd(this,"downHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+1)%e.length})})),Nd(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),Nd(this,"leftArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t}=this.props;e>0&&t(e-1)})),Nd(this,"rightArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t,items:n}=this.props,{selectedIndex:i}=this.state,r=n[i];r&&!dg(r.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:i}=this.props,r=n===i;t!==e.items&&this.setState({selectedIndex:0}),pF({wrapperRef:this.menuRef,index:this.state.selectedIndex}),r?document.addEventListener("keydown",this.keydownHandler):document.removeEventListener("keydown",this.keydownHandler)}render(){const{items:e,menuIndex:n,activeMenuIndex:i}=this.props,{selectedIndex:r}=this.state,o=n===i;return t.createElement("div",{className:"neeto-editor-slash-commands__wrapper",ref:this.menuRef},e.map(((e,i)=>{const s=dg(e.items),a=t.createElement(_P,{index:i,item:e,key:e.title,selectItem:()=>s&&this.selectItem(i),selectedIndex:o?r:-1,onHover:()=>this.setState({selectedIndex:i})});return s?a:t.createElement(xP,{interactive:!0,key:e.title,placement:"right",visible:r===i,content:t.createElement(wP,Db({},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 _P=a(((e,n)=>{let{item:i,selectedIndex:r,index:o,selectItem:s,onHover:a}=e;const{Icon:l}=i;return t.createElement("div",{"data-cy":`neeto-editor-command-list-item-${o}`,ref:n,className:W("neeto-editor-slash-commands__item",{active:o===r}),onClick:s,onMouseEnter:a},l&&t.createElement(l,{size:20}),t.createElement("div",{className:"neeto-editor-slash-commands__item-content"},t.createElement("h5",null,i.title),t.createElement("p",null,i.description)))}));class kP extends t.Component{constructor(){super(...arguments),Nd(this,"state",{activeMenuIndex:0}),Nd(this,"onKeyDown",(e=>{let{event:t}=e;return["Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)})),Nd(this,"setActiveMenuIndex",(e=>this.setState({activeMenuIndex:e})))}render(){return t.createElement(wP,Db({},this.props,{activeMenuIndex:this.state.activeMenuIndex,items:this.props.items,menuIndex:0,setActiveMenuIndex:this.setActiveMenuIndex}))}}const EP=[{optionName:q.PARAGRAPH,title:"Paragraph",description:"Add a plain text block.",Icon:sp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("paragraph").run()}},{optionName:q.H1,title:"H1",description:"Add a big heading.",Icon:xp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:1}).run()}},{optionName:q.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:q.H3,title:"H3",description:"Add a sub-heading of level 3.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:3}).run()}},{optionName:q.H4,title:"H4",description:"Add a sub-heading of level 4.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:4}).run()}},{optionName:q.H5,title:"H5",description:"Add a sub-heading of level 5.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:5}).run()}},{optionName:q.H6,title:"H6",description:"Add a sub-heading of level 6.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:6}).run()}},{optionName:q.LIST_ORDERED,title:"Numbered list",description:"Add a list with numbering.",Icon:Gu,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleOrderedList().run()}},{optionName:q.LIST_BULLETS,title:"Bulleted list",description:"Add a list with bullets.",Icon:Vu,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBulletList().run()}},{optionName:q.IMAGE_UPLOAD,title:"Image",description:"Add an image.",Icon:Pu,command:hg},{optionName:q.VIDEO_UPLOAD,title:"Video",description:"Add a video.",Icon:Qu,command:hg},{optionName:q.ATTACHMENTS,title:"Attachments",description:"Add an attachment.",Icon:zu,command:hg},{optionName:q.BLOCKQUOTE,title:"Blockquote",description:"Add a quote.",Icon:xu,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBlockquote().run()}},{optionName:q.CODE_BLOCK,title:"Code block",description:"Add a code block with syntax highlighting.",Icon:Du,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleCodeBlock().run()}},{optionName:q.EMOJI,title:"Emoji",description:"Add an emoji.",Icon:fp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).insertContent("::").run()}},{optionName:q.DIVIDER,title:"Divider",description:"Add an horizontal line to separate sections.",Icon:np,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setHorizontalRule().run()}},{optionName:q.VIDEO_EMBED,title:"Embed Youtube/Loom/Vimeo",description:"Embed a video from major services.",Icon:Np,command:hg},{optionName:q.PASTE_UNFORMATTED,title:"Paste Unformatted",description:"Paste by removing all styles.",Icon:rp,command:e=>{let{editor:t,range:n}=e;return t.chain().focus().deleteRange(n).pasteUnformatted().run()}}],MP={title:"No results",command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).run()}},CP=e=>{let{editor:t,range:n}=e;const i=prompt("Please enter Youtube/Loom/Vimeo embed URL."),r=!!i&&(DP(i)||TP(i)||SP(i));r?t.chain().focus().deleteRange(n).setExternalVideo({src:r}).run():t.chain().focus().deleteRange(n).insertContent("#invalid").run()},OP=e=>{let{options:t,addonCommands:n,setMediaUploader:i}=e;const r=EP.map((e=>e.optionName===q.IMAGE_UPLOAD?gb("command",(e=>t=>{let{editor:n,range:i}=t;e(gb("image",!0)),n.chain().focus().deleteRange(i).run()})(i),e):e.optionName===q.VIDEO_UPLOAD?gb("command",(e=>t=>{let{editor:n,range:i}=t;e(gb("video",!0)),n.chain().focus().deleteRange(i).run()})(i),e):e.optionName===q.VIDEO_EMBED?gb("command",CP,e):e));return[...r.filter((e=>{let{optionName:n}=e;return t.includes(n)})),...n]},DP=e=>{const t=e.match(Y);return t&&`https://www.youtube.com/embed/${t[5]}`},SP=e=>{const t=e.match(Q);return t&&`https://player.vimeo.com/video/${t[4]}?h=${t[5]}`},TP=e=>{const t=e.match(Z);return t&&`https://www.loom.com/embed/${t[4]}?t=${t[5]||""}`},AP=new Xx("commands");var NP=e=>{let{addonCommands:t,options:n,setMediaUploader:i}=e;const r=OP({options:n,addonCommands:t,setMediaUploader:i});return iM.create({name:"slash-commands",addOptions:()=>({HTMLAttributes:{class:"commands"},suggestion:{char:"/",startOfLine:!1,pluginKey:AP,command:e=>{let{editor:t,range:n,props:i}=e;i.command({editor:t,range:n})},items:e=>{let{query:t}=e;const n=r.filter((e=>{let{title:n}=e;return n.toLowerCase().includes(t.toLowerCase())}));return rP.exports.isEmpty(n)?[MP]:n},render:()=>{let e,t;return{onStart:n=>{e=new vD(kP,{props:n,editor:n.editor}),t=rD("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"}),oP()},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(),sP()}}}}}),addProseMirrorPlugins(){return[CI({editor:this.editor,...this.options.suggestion})]}})};const jP=e=>{let{onClickVariable:n,variables:i}=e;const r=function(){const e=[],t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{const{category_key:i,category_label:r,variables:o}=n;if(i&&o){const e=o.map(gb("category_key",i));t.push({label:r,variables:e})}else e.push(n)})),rP.exports.isEmpty(e)||t.push({label:rP.exports.isEmpty(t)?null:"Others",variables:e}),t}(i);return Sd(i)?null:t.createElement("div",{className:"neeto-editor-variables-list"},r.map(((e,i)=>{let{label:r,variables:o}=e;return t.createElement(LP,{index:i,key:i,title:r,variables:o,onClickItem:n})})))},LP=e=>{let{index:n,title:i,variables:r,onClickItem:o}=e;return t.createElement("div",{className:"neeto-editor-variables-block","data-cy":`neeto-editor-variable-option-category-${n}`},i&&t.createElement("h6",null,i),t.createElement("div",{className:"neeto-editor-variables-row"},r.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)))))},IP=e=>{let{items:n,command:i}=e;return t.createElement("div",{className:"neeto-editor-variables-suggestion"},t.createElement(jP,{variables:n,onClickVariable:e=>{const{category_key:t,key:n}=e,r=t?`${t}.${n}`:n;i({label:r,id:r})}}))},zP=new Xx("variables"),RP=GM.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",BE({"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,i=!1;const{selection:r}=n,{empty:o,anchor:s}=r;return!!o&&(n.doc.nodesBetween(s-1,s,((e,n)=>{if(e.type.name===this.name)return i=!0,t.insertText("",n,n+e.nodeSize),!1})),i)}))}},addProseMirrorPlugins(){return[CI({editor:this.editor,...this.options.suggestion})]}}),FP={char:"{{",startOfLine:!1,pluginKey:zP,command:e=>{let{editor:t,range:n,props:i}=e;t.chain().focus().deleteRange(n).setVariable(i).run()},items:()=>[],render:()=>{let e,t;return{onStart:n=>{e=new vD(IP,{props:n,editor:n.editor}),t=rD("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 BP=e=>{let{suggestion:t={}}=e;return RP.configure({suggestion:{...FP,...t}})};const PP=e=>{var n;let{node:r,editor:o,getPos:s,updateAttributes:a,deleteNode:l}=e;const c=i(null),{alt:u,src:p,vidheight:d,vidwidth:h,align:f}=r.attrs,{view:m}=o;let g=d,v=h;const b=c.current?null===(n=c.current.querySelector("figcaption>div"))||void 0===n?void 0:n.textContent:u;return t.createElement(gD,{className:`neeto-editor__image-wrapper neeto-editor__image--${f}`},t.createElement("figure",{ref:c},t.createElement(tF,{align:f,deleteNode:l,updateAttributes:a}),t.createElement(eF,{lockAspectRatio:!0,className:"neeto-editor__image",size:{height:g,width:v},onResizeStop:(e,t,n)=>{g=n.offsetHeight,v=n.offsetWidth,m.dispatch(m.state.tr.setNodeMarkup(s(),void 0,{...r.attrs,vidheight:g,vidwidth:v,height:g,width:v})),o.commands.focus()}},t.createElement("video",Db({controls:!0},r.attrs,{alt:b,preload:"metadata",src:p}))),t.createElement(mD,{as:"figcaption",className:W({"is-empty":Sd(b)})})))},UP=GM.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:i,src:r,vidheight:o,vidwidth:s}=t.attrs,a={class:"neeto-editor__image",style:`height:${o}px;width:${s}px;`};return["a",{href:r,target:"_blank",rel:"noopener noreferrer",class:`neeto-editor__image-wrapper neeto-editor__image--${i}`},["figure",BE(this.options.HTMLAttributes,{"data-video":""}),["div",a,["video",BE(n,{preload:"metadata",controls:!0,draggable:!1,contenteditable:!1})]],["figcaption",0]]]},addNodeView:()=>yD(PP),addCommands(){return{setVideo:e=>{let{caption:t,...n}=e;return e=>{let{chain:i}=e;return i().insertContent({type:this.name,attrs:n,content:t?[{type:"text",text:t}]:[]}).command((e=>{let{tr:t,commands:n}=e;const{doc:i,selection:r}=t,o=i.resolve(r.to).end();return n.setTextSelection(o)})).run()}}}}}),HP=e=>{var i;let{uppy:o}=e;const[s,a]=n(0);r((()=>{o.on("upload-progress",((e,t)=>{let{progress:n}=t;return a(n)}))}),[o]);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===(i=o.getFiles()[0])||void 0===i?void 0:i.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(f,{icon:Cu,size:"small",style:"text",onClick:()=>o.cancelAll()})),t.createElement("div",{className:"neeto-editor-progress-bar__indicator"},t.createElement("div",{className:"neeto-editor-progress-bar__indicator-inner",style:{width:l}}))))},$P=e=>{let{isImage:n,endpoint:i,onSuccess:r}=e;const o=n?ic:rc,{uppy:s,isUploading:a}=eb({endpoint:i,uppyConfig:o,onSuccess:r});return a?t.createElement(HP,{uppy:s}):t.createElement("div",{className:"ne-media-uploader__dnd-wrapper"},t.createElement(xl,{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: ${jp(o.restrictions.maxFileSize)}`}))},WP=e=>{let{isImage:i,url:r,editor:o,onClose:s,alt:a=""}=e;const[l,c]=n(a||""),[u,p]=n(!1),d=()=>{i?o.chain().focus().setFigure({src:r,caption:l,alt:l}).run():o.chain().focus().setVideo({src:r,caption:l,alt:l}).run(),s()};return t.createElement("div",{className:"ne-media-editor",onKeyDown:e=>{"Enter"===e.key&&d()}},u?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,i?t.createElement("img",{loading:"lazy",src:r,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}):t.createElement("video",{src:r,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}),t.createElement(h,{autoFocus:!0,label:"Caption",placeholder:"Enter a caption",value:l,onChange:e=>c(e.target.value)})),t.createElement("div",{className:"ne-media-editor__footer"},t.createElement(f,{disabled:u,label:"Done",onClick:d}),t.createElement(f,{label:"Cancel",style:"text",onClick:s})))};var qP={},VP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},KP=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 i(e,t){return t._once=!0,n(e,t),this}function r(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,i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];var a=t[e]&&t[e].slice();return a&&a.forEach((function(t){t._once&&r(e,t),t.apply(n,o)})),this}return VP({},e,{on:n,once:i,off:r,emit:o})},GP=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,i=void 0,r=void 0,o=void 0,s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,p=void 0,d=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,v=e.container.nodeType?e.container:document.querySelector(e.container),b={all:function(){return k(v.children)},new:function(){return k(v.children).filter((function(e){return!e.hasAttribute(""+f)}))}},y=[C,O,D],x=[S,T,A,N],w=KP({pack:I,update:z,resize:R});return w;function _(e){e.forEach((function(e){return e()}))}function k(e){return Array.prototype.slice.call(e)}function E(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 C(){i=M()}function O(){r=-1===i?m[m.length-1]:m[i]}function D(){s=E(r.columns)}function S(){p=b[t?"new":"all"]()}function T(){0!==p.length&&(d=p.map((function(e){return e.clientWidth})),h=p.map((function(e){return e.clientHeight})))}function A(){p.forEach((function(e,t){o=s.indexOf(Math.min.apply(Math,s)),e.style.position="absolute",a=s[o]+"px",l=o*d[t]+o*r.gutter+"px",g?(e.style.top=a,e.style.left=l):e.style.transform="translate3d("+l+", "+a+", 0)",e.setAttribute(f,""),c=d[t],u=h[t],c&&u&&(s[o]+=u+r.gutter)}))}function N(){v.style.position="relative",v.style.width=r.columns*c+(r.columns-1)*r.gutter+"px",v.style.height=Math.max.apply(Math,s)-r.gutter+"px"}function j(){n||(window.requestAnimationFrame(L),n=!0)}function L(){i!==M()&&(I(),w.emit("resize",r)),n=!1}function I(){return t=!1,_(y.concat(x)),w.emit("pack")}function z(){return t=!0,_(x),w.emit("update")}function R(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",j),w}}}),YP=U(GP),QP={exports:{}},ZP={exports:{}};!function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=t,o=a(r),s=a(Oa.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),i(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),i=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:r.scrollTop;i=this.props.isReverse?o:this.calculateOffset(e,o)}else i=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;i<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,i=t.element,r=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 i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);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 r&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(i,c,u)}}]),t}(r.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"]}(ZP,ZP.exports),QP.exports=ZP.exports,Object.defineProperty(qP,"__esModule",{value:!0});var JP,XP,eU=qP.default=void 0,tU=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),nU=t,iU=aU(nU),rU=aU(Oa.exports),oU=aU(YP),sU=aU(QP.exports);function aU(e){return e&&e.__esModule?e:{default:e}}function lU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cU(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 uU=(XP=JP=function(e){function t(){var e,n,i;lU(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=cU(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),i.setContainerRef=function(e){i.masonryContainer=e},i.forcePack=function(){i.masonryContainer&&i.state.instance.pack()},i.forceUpdate=function(){i.masonryContainer&&i.state.instance.update()},i.createNewInstance=function(){var e=i.props,t=e.packed,n=e.sizes,r=e.children,o=e.position,s=(0,oU.default)({container:i.masonryContainer,packed:t,sizes:n,position:o});s.resize(!0),r.length>0&&s.pack(),i.setState((function(){return{instance:s}}))},cU(i,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,nU.Component),tU(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,i=e.style;e.pack,e.packed,e.position,e.sizes;var r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["children","className","style","pack","packed","position","sizes"]);return iU.default.createElement(sU.default,r,iU.default.createElement("div",{ref:this.setContainerRef,className:n,style:i},t))}}]),t}(),JP.propTypes={children:rU.default.arrayOf(rU.default.element).isRequired,className:rU.default.string,initialLoad:rU.default.bool,pack:rU.default.bool,packed:rU.default.string,position:rU.default.bool,sizes:rU.default.array,style:rU.default.object},JP.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:{}},XP);eU=qP.default=uU;const pU=e=>{let{onSubmit:o,unsplashApiKey:s}=e;const a=i(null),[l,c]=n(""),[u,p]=n(!1),[d,f]=n([]),[m,g]=n(1),[v,y]=n(!0),[x,w]=n(!1),_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[i,o]=n(e);return r((()=>{const n=setTimeout((()=>{o(e)}),t);return()=>{clearTimeout(n)}}),[e]),i}(l||"latest");r((()=>{k(1)}),[_]);const k=async e=>{try{w(!0),p(!1);const t=await(e=>{let{pageNo:t,query:n,apiKey:i}=e;return ig.get(V,{headers:{Authorization:`Client-ID ${i}`},params:{page:t,per_page:30,order_by:"popular",query:n}})})({page:e,query:_,apiKey:s}),{data:{results:n,total_pages:i}}=t;f(1===e?n:[...d,...n]),g(e+1),y(e<i)}catch{p(!0)}finally{w(!1)}};return t.createElement("div",{className:"neeto-editor-unsplash-wrapper"},t.createElement(h,{autoFocus:!0,"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&&!x&&dg(d)&&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(eU,{pack:!0,position:!0,className:"neeto-editor-unsplash-gallery",hasMore:v,loadMore:()=>{!x&&v&&m>1&&k(m)},loader:t.createElement(b,null),ref:a,style:{width:"100%"},useWindow:!1,sizes:[{columns:3,gutter:0},{mq:"768px",columns:3,gutter:0},{mq:"1024px",columns:3,gutter:0}]},d&&d.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:()=>o(e.urls.small)}),t.createElement("a",{href:`https://unsplash.com/@${e.user.username}`,rel:"noreferrer",target:"_blank"},e.user.name," "))))))),!v&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text"},"End of results")))},dU=e=>{let{buttonLabel:i="Submit",placeholder:r,onSubmit:o,className:s}=e;const[a,l]=n(""),[c,u]=n("");return t.createElement("div",{className:W("neeto-editor-url-form__wrapper",{[s]:s})},t.createElement(h,{autoFocus:!0,"data-cy":"neeto-editor-media-upload-url-input",error:c,name:"url",placeholder:r,value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)},onFocus:()=>u("")}),t.createElement(f,{"data-cy":"neeto-editor-media-upload-url-submit",disabled:!a,label:i,onClick:e=>{e.preventDefault(),G.test(a)?o(a):u("Please enter a valid url")}}))},hU=e=>{let{mediaUploader:i,onClose:r,editor:o,uploadEndpoint:s,unsplashApiKey:a}=e;const[l,c]=n("local"),[u,p]=n(""),d=i.image||i.video;let h=a?sc:sc.slice(0,2);i.video&&(h=[]);const f=()=>{r(),p(""),c("local")};return t.createElement(x,{closeButton:!1,isOpen:d,onClose:f},t.createElement("div",{className:"ne-media-uploader"},!rP.exports.isEmpty(h)&&t.createElement(w,null,h.map((e=>{let{key:n,title:i}=e;return t.createElement(w.Item,{active:l===n,key:n,onClick:()=>c(n)},i)}))),t.createElement("div",{className:"ne-media-uploader__content"},u?t.createElement(WP,{editor:o,isImage:i.image,url:u,onClose:f}):t.createElement(t.Fragment,null,"local"===l&&t.createElement($P,{endpoint:s,isImage:i.image,onSuccess:p}),"link"===l&&t.createElement(dU,{placeholder:"Paste the link here...",buttonLabel:i.image?"Upload image":"Upload video",onSubmit:p}),"unsplash"===l&&t.createElement(pU,{unsplashApiKey:a,onSubmit:p})))))};var fU=[],mU=[];function gU(e,t){if(e&&"undefined"!=typeof document){var n,i=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var s=fU.indexOf(o);-1===s&&(s=fU.push(o)-1,mU[s]={}),n=mU[s]&&mU[s][i]?mU[s][i]:mU[s][i]=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),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var s="prepend"===i?"afterbegin":"beforeend";return o.insertAdjacentElement(s,e),e}}gU(".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 vU=e=>{let{editor:i,handleClose:o,handleAnimateInvalidLink:s}=e;const[a,l]=n("");r((()=>{l(i.getAttributes("link").href||"")}),[]);const c=()=>{G.test(a)?(i.chain().focus().setLink({href:a}).run(),o()):dg(a)?(i.chain().focus().unsetLink().run(),o()):(l(""),s())};return t.createElement("div",{className:"neeto-editor-bubble-menu__link",onKeyDown:e=>{"Escape"===e.key?o():"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(f,{"data-cy":"neeto-editor-link-cancel-button",icon:Cu,size:"small",style:"icon",onClick:()=>{a?(l(""),i.chain().focus().unsetLink().run()):o()}}))},bU=16,yU="#2F3941",xU="#68737D",wU=e=>{let{icon:n,iconActive:i=!1,tooltipProps:r,highlight:o=!1,color:s,disabled:a,label:l,...c}=e;return t.createElement(d,r,t.createElement("button",Db({disabled:a,type:"button",className:W("neeto-editor-menu__item",{active:i})},lP(o),c),l&&t.createElement("p",null,l),n&&t.createElement(n,{size:bU,color:s||(i?yU:xU)})))};wU.propTypes={icon:Oa.exports.oneOfType([Oa.exports.element,Oa.exports.func]),iconActive:Oa.exports.bool,onClick:Oa.exports.func,tooltipProps:Oa.exports.object};const _U=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s}=e;return t.createElement(wU,{color:"white","data-cy":`neeto-editor-bubble-menu-${o}-option`,highlight:s,icon:n,iconActive:r,key:o,tooltipProps:{content:pg(o),position:"bottom",theme:"dark",delay:[500]},onClick:i})},kU=e=>{let{editor:n,mentions:i}=e;const r=JB(i),{Menu:o,MenuItem:s}=g;return Sd(r)?null:t.createElement(g,{buttonStyle:"text","data-cy":"neeto-editor-mention-option",icon:Lu,strategy:"fixed",buttonProps:{tooltipProps:{content:"Mention",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(o,null,r.map((e=>{let{key:i,name:r,imageUrl:o}=e;return t.createElement(s.Button,{"data-cy":`neeto-editor-mention-option-${i}`,key:i,onClick:()=>n.commands.setMention({id:i,label:r})},t.createElement(y,{size:"small",user:{name:r,imageUrl:o}}),t.createElement(m,{style:"body2"},r))}))))},EU=e=>{let{editor:n}=e;return t.createElement(g,{buttonStyle:"text",closeOnSelect:!1,dropdownProps:{classNames:"neeto-editor-fixed-menu__emoji-dropdown"},icon:fp,position:"bottom-start",strategy:"fixed",buttonProps:{tooltipProps:{content:"Emoji",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(CR,{editor:n}))},MU=()=>t.createElement("span",{className:"neeto-editor-fixed-menu__separator"},t.createElement("span",null),t.createElement("span",null));var CU=zp((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t}));const OU=[{label:"Paragraph",value:0},{label:"Heading 1",value:1},{label:"Heading 2",value:2},{label:"Heading 3",value:3}],DU=e=>{let{editor:t,options:n,setMediaUploader:i}=e;const r=((e,t)=>({font:[{Icon:gp,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:Ep,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:Dp,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:bp,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:Fu,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"}],block:[{Icon:lp,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote",highlight:!0},{Icon:Du,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"}],list:[{Icon:Vu,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list",highlight:!0},{Icon:Gu,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list",highlight:!0}],misc:[{Icon:zu,command:()=>{},active:!1,optionName:"attachments"},{Icon:Pu,command:()=>t(gb("image",!0)),optionName:"image-upload"},{Icon:Qu,command:()=>t(gb("video",!0)),optionName:"video-upload"}],right:[{Icon:Tp,command:()=>e.chain().focus().undo().run(),active:!1,disabled:!e.can().undo(),optionName:"undo"},{Icon:up,command:()=>e.chain().focus().redo().run(),active:!1,disabled:!e.can().redo(),optionName:"redo"}]}))(t,i);return CU(["font","block","list","misc","right"].map((e=>[e,r[e].filter((e=>n.includes(e.optionName)))])))},SU=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s,disabled:a}=e;return t.createElement(f,Db({className:"neeto-editor-fixed-menu__item","data-cy":`neeto-editor-fixed-menu-${o}-option`,disabled:a,icon:n,key:o,style:r?"secondary":"text",tooltipProps:{content:pg(o),position:"bottom"},onClick:i},lP(s)))},TU=e=>{let{editor:t,commands:n}=e;const{to:i}=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:i,to:i}})}}}))},AU=e=>{let{editor:i,options:r,mentions:o,setIsInvalidLink:s,isLinkOptionActive:a,setIsLinkOptionActive:l,setMediaUploader:c}=e;const[u,p]=n(!1),d=(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:i}),h=(e=>{var t;return(null===(t=e.find(JF("active")))||void 0===t?void 0:t.optionName)||"Text"})(d),f=r.includes(q.EMOJI),m=r.includes(q.LINK),{font:g,block:v,list:b}=DU({editor:i,options:r,setMediaUploader:c}),y=()=>{s(!0),setTimeout((()=>{s(!1)}),1e3)},x=()=>p(!1);return a?t.createElement(vU,{editor:i,handleAnimateInvalidLink:y,handleClose:()=>l(!1)}):t.createElement(t.Fragment,null,t.createElement(xP,{interactive:!0,arrow:!1,placement:"bottom",visible:u,content:t.createElement("div",{className:"neeto-editor-bubble-menu__dropdown"},d.map((e=>{let{optionName:n,command:i}=e;return t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-item",key:n,type:"button",onClick:()=>{i(),x()}},n)}))),onClickOutside:x},t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-target",type:"button",onClick:()=>p((e=>!e))},h,t.createElement(Nu,{size:14}))),t.createElement(MU,null),g.map(_U),t.createElement(MU,null),v.map(_U),f&&t.createElement(EU,{editor:i,theme:"dark"}),t.createElement(MU,null),b.map(_U),t.createElement(MU,null),m&&_U({Icon:Wu,command:()=>l(!0),active:i.isActive("link"),optionName:"link",highlight:!1}),t.createElement(kU,{editor:i,mentions:o,menuType:"bubble"}))},NU=e=>{let{editor:i,options:r,mentions:o=[],setMediaUploader:s}=e;const[a,l]=n(!1),[c,u]=n(!1),p=i&&i.view.state.selection.node,d=p&&"image"===p.type.name,h=[q.BOLD,q.ITALIC,q.UNDERLINE,q.STRIKETHROUGH,q.LINK],f=dg(r.filter((e=>h.includes(e))));return!i||!d&&f?null:t.createElement("div",null,t.createElement(lD,{editor:i,className:W("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":a}),tippyOptions:{arrow:gO,zIndex:99999,onHide:()=>u(!1),theme:"neeto-editor-bubble-menu",maxWidth:500}},t.createElement(AU,{editor:i,isLinkOptionActive:c,mentions:o,options:r,setIsInvalidLink:l,setIsLinkOptionActive:u,setMediaUploader:s})))},{Menu:jU,MenuItem:LU}=g,IU=e=>{var n;let{editor:i}=e;const r=(null===(n=OU.find((e=>{let{value:t}=e;return n=t,i.isActive("heading",{level:n});var n})))||void 0===n?void 0:n.label)||"Paragraph";return t.createElement(g,{autoWidth:!0,buttonStyle:"text","data-cy":"neeto-editor-fixed-menu-font-size-option",label:r,placement:"bottom-start",buttonProps:{tooltipProps:{content:"Font size",position:"bottom"},className:"neeto-editor-fixed-menu__item neeto-editor-font-size__wrapper"}},t.createElement(jU,null,OU.map((e=>{let{label:n,value:r}=e;return t.createElement(LU.Button,{"data-cy":`neeto-editor-fixed-menu-font-size-option-${n}`,key:r,onClick:()=>{return(e=r)?i.chain().focus().toggleHeading({level:e}).run():i.chain().focus().setNode("paragraph").run();var e}},n)}))))},{Menu:zU}=g,RU=e=>{let{editor:i}=e;const[r,o]=n(""),[s,a]=n(""),[l,c]=n(!1),u=i.isActive("link"),p=()=>c(!1),d=()=>{G.test(s)?(i.chain().focus().setLink({href:s}).run(),p()):o("Please enter a valid url")};return t.createElement(g,{buttonStyle:u?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:Wu,isOpen:l,position:"bottom",buttonProps:{tooltipProps:{content:"Link",position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>c((e=>!e)),onClose:p},t.createElement(zU,{className:"neeto-editor-link__item",onKeyDown:e=>{"Escape"===e.key?p():"Enter"===e.key&&d()}},t.createElement(h,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-link-option-input",error:r,name:"url",placeholder:"Paste URL",value:s,onChange:e=>{let{target:{value:t}}=e;return a(t)},onFocus:()=>o("")}),t.createElement(f,{"data-cy":"neeto-editor-fixed-menu-link-option-link-button",label:"Link",onClick:d}),u&&t.createElement(f,{"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button",label:"Unlink",onClick:()=>{i.chain().focus().unsetLink().run(),p()}})))},{Menu:FU}=g,BU=e=>{let{editor:n,variables:i}=e;return Sd(i)?null:t.createElement(g,{buttonSize:"small",buttonStyle:"secondary","data-cy":"neeto-editor-variable-option",icon:_u,strategy:"fixed",buttonProps:{tooltipProps:{content:"Variables",position:"bottom"}}},t.createElement(FU,null,t.createElement(jP,{variables:i,onClickVariable:e=>{const{category_key:t,key:i}=e,r=t?`${t}.${i}`:i;n.chain().focus().setVariable({label:r}).run()}})))},PU=e=>{let{editor:n,options:i,mentions:r=[],variables:o=[],setMediaUploader:s,addonCommands:a=[],isIndependant:l=!0,className:c}=e;if(!n)return null;const{font:u,block:p,list:d,misc:h,right:f}=DU({editor:n,options:i,setMediaUploader:s}),m=i.filter((e=>e.match(/^h[1-6]$/))).length>0,g=i.includes(q.EMOJI),v=i.includes(q.LINK),b=TU({editor:n,commands:a});return t.createElement("div",{className:W("neeto-editor-fixed-menu",{"neeto-editor-fixed-menu--independant":l,[c]:c})},t.createElement("div",{className:"neeto-editor-fixed-menu__wrapper"},m&&t.createElement(IU,{editor:n}),u.map(SU),p.map(SU),g&&t.createElement(EU,{editor:n}),d.map(SU),v&&t.createElement(RU,{editor:n}),h.map(SU),t.createElement(kU,{editor:n,mentions:r}),b.map(SU),t.createElement("div",{className:"neeto-editor-fixed-menu__right-options"},f.map(SU))),t.createElement("div",{className:"neeto-editor-fixed-menu__variables"},t.createElement(BU,{editor:n,variables:o})))},UU=e=>{let{icon:n=null,onClick:i=(()=>{}),disabled:r=!1,className:o,tooltipProps:s,...a}=e;const l=n;return t.createElement(d,Db({disabled:!s,onClick:()=>i()},s),t.createElement("button",Db({className:W("ne-headless-btn",{[o]:o}),disabled:r,type:"button",onClick:i},a),n&&t.createElement(l,{"aria-hidden":"true",key:"2",size:18})))},HU={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t,props:{hideOnEsc:n,onClose:i}}=e;function r(e){"escape"===e.key.toLowerCase()&&n&&(i(),t())}return{onShow(){document.addEventListener("keydown",r)},onHide(){document.removeEventListener("keydown",r)}}}},$U=e=>{let{icon:i,isOpen:r,onClose:o=(()=>{}),children:s,className:a,onClick:l,buttonProps:c={},...u}=e;const[p,d]=n(!1);return t.createElement(xP,Db({hideOnEsc:!0,interactive:!0,animation:!1,arrow:!1,duration:0,hideOnClick:!1,maxWidth:"none",offset:0,plugins:[HU],popperOptions:{strategy:"fixed"},role:"dropdown",theme:"light",trigger:"click",visible:r,className:W("ne-headless-dropdown",{[a]:a}),content:p&&t.createElement("div",{className:"ne-headless-dropdown__popup"},s),onClickOutside:o,onClose:o,onHidden:()=>d(!1),onMount:()=>d(!0)},u),t.createElement("span",null,t.createElement(UU,Db({icon:i,onClick:l},c))))},WU=e=>{let{editor:i,optionName:r}=e;const[o,s]=n(!1);return t.createElement($U,{className:"ne-headless__emoji",icon:fp,isOpen:o,buttonProps:{tooltipProps:{content:pg(r),delay:[500],position:"bottom"}},onClick:()=>s((e=>!e)),onClose:()=>s(!1)},t.createElement(CR,{editor:i}))},qU=e=>{let{editor:n,optionName:i,command:r,disabled:o,Icon:s,active:a}=e;return i===q.EMOJI?t.createElement(WU,{editor:n,optionName:i}):t.createElement(UU,{className:a?"ne-headless-btn--active":"",disabled:o,icon:s,tooltipProps:{content:pg(i),delay:[500],position:"bottom"},onClick:r})},VU=e=>{let{editor:t,options:n,setMediaUploader:i}=e;const r=((e,t)=>[{Icon:gp,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:Ep,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:Dp,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:bp,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:Fu,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"},{Icon:lp,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote"},{Icon:Du,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"},{Icon:Vu,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list"},{Icon:Gu,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list"},{Icon:File,command:()=>{},optionName:"attachments"},{Icon:Pu,command:()=>t(gb("image",!0)),optionName:"image-upload"},{Icon:Qu,command:()=>t(gb("video",!0)),optionName:"video-upload"},{Icon:fp,command:()=>{},optionName:"emoji"},{Icon:Tp,command:()=>e.chain().focus().undo().run(),disabled:!e.can().undo(),optionName:"undo"},{Icon:up,command:()=>e.chain().focus().redo().run(),disabled:!e.can().redo(),optionName:"redo"}])(t,i);return n.map((e=>r.find((t=>{let{optionName:n}=t;return n===e})))).filter(Boolean)},KU=e=>{let{editor:n,options:i,setMediaUploader:r,addonCommands:o=[],children:s,className:a}=e;if(!n)return null;const l=[...VU({editor:n,options:i,setMediaUploader:r}),...TU({editor:n,commands:o})];return t.createElement("div",{className:W("ne-headless",{[a]:a})},l.map((e=>t.createElement(qU,Db({editor:n,key:e.optionName},e)))),s)},GU=e=>{const[i,r]=n({image:!1,video:!1}),{menuType:o="fixed",addons:s=[],options:a=[],editor:l,uploadEndpoint:c=K,editorSecrets:u={}}=e,p={fixed:PU,bubble:NU,headless:KU,none:()=>t.createElement("div",null)}[o],d=Sd(a)?[...kD,...s]:a;return t.createElement(t.Fragment,null,t.createElement(p,Db({},e,{options:d,setMediaUploader:r})),t.createElement(hU,{editor:l,mediaUploader:i,unsplashApiKey:u.unsplash,uploadEndpoint:c,onClose:()=>r({image:!1,video:!1})}))},YU=e=>{let{rows:t}=e;return`min-height: ${t*CD+2*(ED+MD)}px;`},QU=(e,t)=>{const n=[];e.split(/\n/).forEach((e=>{const i={type:"paragraph"};e.length>0&&(i.content=[{type:"text",text:e}]);const r=ny.fromJSON(t.doc.type.schema,i);n.push(r)}));const i=Nb.fromArray(n);return Fb.maxOpen(i)},ZU=(e,i)=>{let{initialValue:o="",menuType:s="fixed",label:a="",required:l=!1,autoFocus:c=!1,hideSlashCommands:p=!1,defaults:d=kD,addons:h=[],addonCommands:f=[],className:m,contentClassName:g,uploadEndpoint:v=K,onChange:b=hg,onFocus:y=hg,onBlur:x=hg,onSubmit:w=hg,variables:k=[],mentions:E=[],placeholder:M,extensions:C=[],editorSecrets:O={},rows:D=6,isCharacterCountActive:S=!1,keyboardShortcuts:T=[],error:A=null,config:N={},...j}=e;const L="fixed"===s,I="bubble"===s,z=!p,R=!!M,[F,B]=n({image:!1,video:!1}),P=(e=>{let{placeholder:t,extensions:n,mentions:i,variables:r,isSlashCommandsActive:o,options:s,addonCommands:a,onSubmit:l,keyboardShortcuts:c,uploadEndpoint:u,config:p,setMediaUploader:d}=e;const h=ND(p,_I);let f=[RD,zD.configure(h.code),dT.configure(h.underline),UD.configure(h.highlight),wI.configure(h.codeBlock),sF.configure(h.figCaption),EI.configure(h.embeds),pT.configure(h.link),LR.configure(h.emojiSuggestion),DR.configure(h.emojiPicker),kI.configure(h.customCommands),jD.configure(h.characterCount),FD.configure(h.focus),UP,oF({uploadEndpoint:u}),xA.configure(h.starterKit),lF({onSubmit:l,shortcuts:c}),iP.configure(ND({placeholder:t},h.placeholder))];return o&&f.push(NP({options:s,addonCommands:a,setMediaUploader:d})),Sd(i)||f.push(nP({suggestion:{items:XB(i)}})),Sd(r)||f.push(BP({suggestion:{items:()=>r}})),f=f.concat(n),f})({placeholder:M,extensions:C,mentions:E,variables:k,isSlashCommandsActive:z,options:[...d,...h],addonCommands:f,onSubmit:w,keyboardShortcuts:T,uploadEndpoint:v,config:N,setMediaUploader:B});(e=>{let{initialValue:t}=e;r((()=>{![process.env.RAILS_ENV,"production"].includes("production")&&dg(t)&&console.warn(`[neeto-editor]: Empty value of "initialValue" in needtoEditor is expected to be "<p></p>" instead of "${t}".`)}),[t])})({initialValue:o});const U=W("neeto-editor",{"slash-active":z&&!R,"fixed-menu-active border":L,"bubble-menu-active":I,"placeholder-active":R,[g]:g}),H=xD({extensions:P,content:o,injectCSS:!1,autofocus:c&&"end",editorProps:{attributes:{class:U,style:YU({rows:D})},clipboardTextParser:QU},parseOptions:{preserveWhitespace:!0},onCreate:e=>{let{editor:t}=e;return!c&&(e=>{const{state:t,view:n}=e,i=Dx.atEnd(t.doc),r=t.tr;r.setSelection(i),n.dispatch(r)})(t)},onUpdate:e=>{let{editor:t}=e;return b(t.getHTML())},onFocus:y,onBlur:x});return u(i,(()=>({editor:H}))),rE.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!==e.plugins)},t.createElement("div",{className:W({[m]:m})},a&&t.createElement(_,{className:"neeto-ui-mb-2","data-cy":`${$=a,$.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}-editor-label`,required:l},a),t.createElement(_D,{error:A,isFixedMenuActive:L},t.createElement(OD,{editor:H,isActive:S},t.createElement(GU,{addonCommands:f,addons:h,defaults:d,editor:H,editorSecrets:O,isIndependant:!1,mentions:E,menuType:s,uploadEndpoint:v,variables:k}),t.createElement(dD,Db({editor:H},j)),t.createElement(hU,{editor:H,mediaUploader:F,unsplashApiKey:O.unsplash,uploadEndpoint:v,onClose:()=>B({image:!1,video:!1})}))));var $};var JU=t.forwardRef(ZU);gU('@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-radius: 0px 0px var(--neeto-ui-rounded) var(--neeto-ui-rounded);\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 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 .neeto-editor-menu__item:hover, .neeto-editor-bubble-menu .neeto-editor-menu__item:active, .neeto-editor-bubble-menu .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\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-gallery {\n width: 100%;\n right: -8px;\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 .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 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-file-attachments-wrapper {\n display: flex;\n flex-wrap: wrap;\n gap: 1rem;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper {\n display: flex;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n margin-top: 0.5rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n justify-content: space-between;\n align-items: center;\n border-radius: 0.25rem;\n border-width: 2px;\n width: 15rem;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper {\n display: flex;\n align-items: center;\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n gap: 0.25rem;\n width: 100%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .ne-file-attachment-progress-wrapper {\n display: flex;\n gap: auto;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n opacity: 0.5;\n width: 85%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .ne-file-attachment-progress-wrapper .truncate-ellipsis-progress {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 100%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .truncate-ellipsis {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 100%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .drop-down-container .menu-label {\n text-transform: capitalize;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .icon-opacity-50 {\n opacity: 0.5;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .rename-input {\n margin-right: 0.5rem;\n height: 90%;\n width: 100%;\n}\n.upload-btn {\n margin-top: 0.5rem;\n}\ninput[type=file] {\n display: none;\n}\n.ProseMirror {\n overflow-y: auto;\n height: 100%;\n white-space: break-spaces;\n}\n.ProseMirror:focus {\n outline: none;\n}',{});const XU=(e,n)=>{let{name:i,...r}=e;return t.createElement(R,{name:i},(e=>{let{field:o,form:s,meta:a}=e;return t.createElement(JU,Db({error:a.touched?a.error:"",initialValue:o.value,ref:n,onBlur:()=>s.setFieldTouched(i,!0),onChange:e=>s.setFieldValue(i,e)},r))}))};var eH=a(XU);
|
|
60
60
|
/*! @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 tH(e){return tH="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},tH(e)}function nH(e,t){return nH=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nH(e,t)}function iH(){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 rH(e,t,n){return rH=iH()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&nH(r,n.prototype),r},rH.apply(null,arguments)}function oH(e){return function(e){if(Array.isArray(e))return sH(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 sH(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 sH(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 sH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var aH=Object.hasOwnProperty,lH=Object.setPrototypeOf,cH=Object.isFrozen,uH=Object.getPrototypeOf,pH=Object.getOwnPropertyDescriptor,dH=Object.freeze,hH=Object.seal,fH=Object.create,mH="undefined"!=typeof Reflect&&Reflect,gH=mH.apply,vH=mH.construct;gH||(gH=function(e,t,n){return e.apply(t,n)}),dH||(dH=function(e){return e}),hH||(hH=function(e){return e}),vH||(vH=function(e,t){return rH(e,oH(t))});var bH,yH=SH(Array.prototype.forEach),xH=SH(Array.prototype.pop),wH=SH(Array.prototype.push),_H=SH(String.prototype.toLowerCase),kH=SH(String.prototype.match),EH=SH(String.prototype.replace),MH=SH(String.prototype.indexOf),CH=SH(String.prototype.trim),OH=SH(RegExp.prototype.test),DH=(bH=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return vH(bH,t)});function SH(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return gH(e,t,i)}}function TH(e,t,n){n=n||_H,lH&&lH(e,null);for(var i=t.length;i--;){var r=t[i];if("string"==typeof r){var o=n(r);o!==r&&(cH(t)||(t[i]=o),r=o)}e[r]=!0}return e}function AH(e){var t,n=fH(null);for(t in e)gH(aH,e,[t])&&(n[t]=e[t]);return n}function NH(e,t){for(;null!==e;){var n=pH(e,t);if(n){if(n.get)return SH(n.get);if("function"==typeof n.value)return SH(n.value)}e=uH(e)}return function(e){return console.warn("fallback value for",e),null}}var jH=dH(["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"]),LH=dH(["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"]),IH=dH(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),zH=dH(["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"]),RH=dH(["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"]),FH=dH(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),BH=dH(["#text"]),PH=dH(["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"]),UH=dH(["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"]),HH=dH(["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"]),$H=dH(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),WH=hH(/\{\{[\w\W]*|[\w\W]*\}\}/gm),qH=hH(/<%[\w\W]*|[\w\W]*%>/gm),VH=hH(/^data-[\-\w.\u00B7-\uFFFF]/),KH=hH(/^aria-[\-\w]+$/),GH=hH(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),YH=hH(/^(?:\w+script|data):/i),QH=hH(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ZH=hH(/^html$/i),JH=function(){return"undefined"==typeof window?null:window},XH=function(e,t){if("object"!==tH(e)||"function"!=typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var e$=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:JH(),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 i=t.document,r=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,p=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,d=t.HTMLFormElement,h=t.DOMParser,f=t.trustedTypes,m=l.prototype,g=NH(m,"cloneNode"),v=NH(m,"nextSibling"),b=NH(m,"childNodes"),y=NH(m,"parentNode");if("function"==typeof s){var x=r.createElement("template");x.content&&x.content.ownerDocument&&(r=x.content.ownerDocument)}var w=XH(f,i),_=w?w.createHTML(""):"",k=r,E=k.implementation,M=k.createNodeIterator,C=k.createDocumentFragment,O=k.getElementsByTagName,D=i.importNode,S={};try{S=AH(r).documentMode?r.documentMode:{}}catch(e){}var T={};n.isSupported="function"==typeof y&&E&&void 0!==E.createHTMLDocument&&9!==S;var A,N,j=WH,L=qH,I=VH,z=KH,R=YH,F=QH,B=GH,P=null,U=TH({},[].concat(oH(jH),oH(LH),oH(IH),oH(RH),oH(BH))),H=null,$=TH({},[].concat(oH(PH),oH(UH),oH(HH),oH($H))),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}})),q=null,V=null,K=!0,G=!0,Y=!1,Q=!1,Z=!1,J=!1,X=!1,ee=!1,te=!1,ne=!1,ie=!0,re=!1,oe="user-content-",se=!0,ae=!1,le={},ce=null,ue=TH({},["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"]),pe=null,de=TH({},["audio","video","img","source","image","track"]),he=null,fe=TH({},["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",ve="http://www.w3.org/1999/xhtml",be=ve,ye=!1,xe=["application/xhtml+xml","text/html"],we="text/html",_e=null,ke=r.createElement("form"),Ee=function(e){return e instanceof RegExp||e instanceof Function},Me=function(e){_e&&_e===e||(e&&"object"===tH(e)||(e={}),e=AH(e),A=A=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?we:e.PARSER_MEDIA_TYPE,N="application/xhtml+xml"===A?function(e){return e}:_H,P="ALLOWED_TAGS"in e?TH({},e.ALLOWED_TAGS,N):U,H="ALLOWED_ATTR"in e?TH({},e.ALLOWED_ATTR,N):$,he="ADD_URI_SAFE_ATTR"in e?TH(AH(fe),e.ADD_URI_SAFE_ATTR,N):fe,pe="ADD_DATA_URI_TAGS"in e?TH(AH(de),e.ADD_DATA_URI_TAGS,N):de,ce="FORBID_CONTENTS"in e?TH({},e.FORBID_CONTENTS,N):ue,q="FORBID_TAGS"in e?TH({},e.FORBID_TAGS,N):{},V="FORBID_ATTR"in e?TH({},e.FORBID_ATTR,N):{},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,Z=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,ie=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,be=e.NAMESPACE||ve,e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ee(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=TH({},oH(BH)),H=[],!0===le.html&&(TH(P,jH),TH(H,PH)),!0===le.svg&&(TH(P,LH),TH(H,UH),TH(H,$H)),!0===le.svgFilters&&(TH(P,IH),TH(H,UH),TH(H,$H)),!0===le.mathMl&&(TH(P,RH),TH(H,HH),TH(H,$H))),e.ADD_TAGS&&(P===U&&(P=AH(P)),TH(P,e.ADD_TAGS,N)),e.ADD_ATTR&&(H===$&&(H=AH(H)),TH(H,e.ADD_ATTR,N)),e.ADD_URI_SAFE_ATTR&&TH(he,e.ADD_URI_SAFE_ATTR,N),e.FORBID_CONTENTS&&(ce===ue&&(ce=AH(ce)),TH(ce,e.FORBID_CONTENTS,N)),se&&(P["#text"]=!0),Z&&TH(P,["html","head","body"]),P.table&&(TH(P,["tbody"]),delete q.tbody),dH&&dH(e),_e=e)},Ce=TH({},["mi","mo","mn","ms","mtext"]),Oe=TH({},["foreignobject","desc","title","annotation-xml"]),De=TH({},["title","style","font","a","script"]),Se=TH({},LH);TH(Se,IH),TH(Se,zH);var Te=TH({},RH);TH(Te,FH);var Ae=function(e){var t=y(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});var n=_H(e.tagName),i=_H(t.tagName);return e.namespaceURI===ge?t.namespaceURI===ve?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===i||Ce[i]):Boolean(Se[n]):e.namespaceURI===me?t.namespaceURI===ve?"math"===n:t.namespaceURI===ge?"math"===n&&Oe[i]:Boolean(Te[n]):e.namespaceURI===ve&&(!(t.namespaceURI===ge&&!Oe[i])&&(!(t.namespaceURI===me&&!Ce[i])&&(!Te[n]&&(De[n]||!Se[n]))))},Ne=function(e){wH(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},je=function(e,t){try{wH(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){wH(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!H[e])if(ee||te)try{Ne(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t,n;if(X)e="<remove></remove>"+e;else{var i=kH(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===A&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(be===ve)try{t=(new h).parseFromString(o,A)}catch(e){}if(!t||!t.documentElement){t=E.createDocument(be,"template",null);try{t.documentElement.innerHTML=ye?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(r.createTextNode(n),s.childNodes[0]||null),be===ve?O.call(t,Z?"html":"body")[0]:Z?t.documentElement:s},Ie=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 d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},Re=function(e){return"object"===tH(a)?e instanceof a:e&&"object"===tH(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Fe=function(e,t,i){T[e]&&yH(T[e],(function(e){e.call(n,t,i,_e)}))},Be=function(e){var t;if(Fe("beforeSanitizeElements",e,null),ze(e))return Ne(e),!0;if(OH(/[\u0080-\uFFFF]/,e.nodeName))return Ne(e),!0;var i=N(e.nodeName);if(Fe("uponSanitizeElement",e,{tagName:i,allowedTags:P}),e.hasChildNodes()&&!Re(e.firstElementChild)&&(!Re(e.content)||!Re(e.content.firstElementChild))&&OH(/<[/\w]/g,e.innerHTML)&&OH(/<[/\w]/g,e.textContent))return Ne(e),!0;if("select"===i&&OH(/<template/i,e.innerHTML))return Ne(e),!0;if(!P[i]||q[i]){if(!q[i]&&Ue(i)){if(W.tagNameCheck instanceof RegExp&&OH(W.tagNameCheck,i))return!1;if(W.tagNameCheck instanceof Function&&W.tagNameCheck(i))return!1}if(se&&!ce[i]){var r=y(e)||e.parentNode,o=b(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore(g(o[s],!0),v(e))}return Ne(e),!0}return e instanceof l&&!Ae(e)?(Ne(e),!0):"noscript"!==i&&"noembed"!==i||!OH(/<\/no(script|embed)/i,e.innerHTML)?(Q&&3===e.nodeType&&(t=e.textContent,t=EH(t,j," "),t=EH(t,L," "),e.textContent!==t&&(wH(n.removed,{element:e.cloneNode()}),e.textContent=t)),Fe("afterSanitizeElements",e,null),!1):(Ne(e),!0)},Pe=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in r||n in ke))return!1;if(G&&!V[t]&&OH(I,t));else if(K&&OH(z,t));else if(!H[t]||V[t]){if(!(Ue(e)&&(W.tagNameCheck instanceof RegExp&&OH(W.tagNameCheck,e)||W.tagNameCheck instanceof Function&&W.tagNameCheck(e))&&(W.attributeNameCheck instanceof RegExp&&OH(W.attributeNameCheck,t)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(t))||"is"===t&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&OH(W.tagNameCheck,n)||W.tagNameCheck instanceof Function&&W.tagNameCheck(n))))return!1}else if(he[t]);else if(OH(B,EH(n,F,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==MH(n,"data:")||!pe[e]){if(Y&&!OH(R,EH(n,F,"")));else if(n)return!1}else;return!0},Ue=function(e){return e.indexOf("-")>0},He=function(e){var t,i,r,o;Fe("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(i="value"===c?t.value:CH(t.value),r=N(c),a.attrName=r,a.attrValue=i,a.keepAttr=!0,a.forceKeepAttr=void 0,Fe("uponSanitizeAttribute",e,a),i=a.attrValue,!a.forceKeepAttr&&(je(c,e),a.keepAttr))if(OH(/\/>/i,i))je(c,e);else{Q&&(i=EH(i,j," "),i=EH(i,L," "));var p=N(e.nodeName);if(Pe(p,r,i)){if(!re||"id"!==r&&"name"!==r||(je(c,e),i=oe+i),w&&"object"===tH(f)&&"function"==typeof f.getAttributeType)if(u);else switch(f.getAttributeType(p,r)){case"TrustedHTML":i=w.createHTML(i);break;case"TrustedScriptURL":i=w.createScriptURL(i)}try{u?e.setAttributeNS(u,c,i):e.setAttribute(c,i),xH(n.removed)}catch(e){}}}}Fe("afterSanitizeAttributes",e,null)}},$e=function e(t){var n,i=Ie(t);for(Fe("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)Fe("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof o&&e(n.content),He(n));Fe("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var r,s,l,c,u,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ye=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Re(e)){if("function"!=typeof e.toString)throw DH("toString is not a function");if("string"!=typeof(e=e.toString()))throw DH("dirty is not a string, aborting")}if(!n.isSupported){if("object"===tH(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Re(e))return t.toStaticHTML(e.outerHTML)}return e}if(J||Me(p),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){var d=N(e.nodeName);if(!P[d]||q[d])throw DH("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(s=(r=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?r=s:r.appendChild(s);else{if(!ee&&!Q&&!Z&&-1===e.indexOf("<"))return w&&ne?w.createHTML(e):e;if(!(r=Le(e)))return ee?null:ne?_:""}r&&X&&Ne(r.firstChild);for(var h=Ie(ae?e:r);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=C.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return H.shadowroot&&(u=D.call(i,u,!0)),u}var f=Z?r.outerHTML:r.innerHTML;return Z&&P["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&OH(ZH,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),Q&&(f=EH(f,j," "),f=EH(f,L," ")),w&&ne?w.createHTML(f):f},n.setConfig=function(e){Me(e),J=!0},n.clearConfig=function(){_e=null,J=!1},n.isValidAttribute=function(e,t,n){_e||Me({});var i=N(e),r=N(t);return Pe(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(T[e]=T[e]||[],wH(T[e],t))},n.removeHook=function(e){if(T[e])return xH(T[e])},n.removeHooks=function(e){T[e]&&(T[e]=[])},n.removeAllHooks=function(){T={}},n}();const t$="neeto-editor-content",n$={ADD_TAGS:["iframe"],ADD_ATTR:["target","allow","allowfullscreen","frameborder"]},i$=/<pre><code>([\S\s]*?)<\/code><\/pre>/gim,r$=e=>{if(e.tagName){const n=e.children?e.children.map(r$):null;return t.createElement(e.tagName,e.properties,n)}return e.value},o$=e=>{let{content:n="",className:i,...r}=e;const o=(e=>e.replace(i$,((e,t)=>{const n=yI.highlightAuto(t.replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")).children.map(r$);return`<pre><code>${F(n)}</code></pre>`})))(n),s=e$.sanitize;return t.createElement("div",Db({"data-cy":"neeto-editor-content",className:W(t$,{[i]:i}),dangerouslySetInnerHTML:{__html:s(o,n$)}},r))};export{Ob as Attachments,JU as Editor,o$ as EditorContent,eH as FormikEditor,GU as Menu,fg as isEditorEmpty};
|