@zipify/wysiwyg 3.0.2-1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +1 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -11,4 +11,4 @@
11
11
  * Released under MIT license <https://lodash.com/license>
12
12
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
13
13
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
14
- */function yd(t){return t.type.create(vd.exports.cloneDeep(t.attrs))}md=vd,gd=vd.exports,function(){var t,e="Expected a function",n="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,i=32,s=64,a=128,u=256,l=1/0,c=9007199254740991,p=NaN,d=4294967295,h=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",i],["partialRight",s],["rearg",u]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",_="[object Function]",D="[object GeneratorFunction]",E="[object Map]",w="[object Number]",C="[object Object]",k="[object Promise]",A="[object RegExp]",x="[object Set]",O="[object String]",S="[object Symbol]",N="[object WeakMap]",T="[object ArrayBuffer]",F="[object DataView]",M="[object Float32Array]",I="[object Float64Array]",$="[object Int8Array]",B="[object Int16Array]",R="[object Int32Array]",L="[object Uint8Array]",P="[object Uint8ClampedArray]",j="[object Uint16Array]",z="[object Uint32Array]",H=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,K=RegExp(U.source),J=RegExp(q.source),G=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,ot=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,ht=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,_t=/['\n\r\u2028\u2029\\]/g,Dt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Et="\\u2700-\\u27bf",wt="a-z\\xdf-\\xf6\\xf8-\\xff",Ct="A-Z\\xc0-\\xd6\\xd8-\\xde",kt="\\ufe0e\\ufe0f",At="\\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",xt="['’]",Ot="[\\ud800-\\udfff]",St="["+At+"]",Nt="["+Dt+"]",Tt="\\d+",Ft="[\\u2700-\\u27bf]",Mt="["+wt+"]",It="[^\\ud800-\\udfff"+At+Tt+Et+wt+Ct+"]",$t="\\ud83c[\\udffb-\\udfff]",Bt="[^\\ud800-\\udfff]",Rt="(?:\\ud83c[\\udde6-\\uddff]){2}",Lt="[\\ud800-\\udbff][\\udc00-\\udfff]",Pt="["+Ct+"]",jt="(?:"+Mt+"|"+It+")",zt="(?:"+Pt+"|"+It+")",Ht="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Wt="(?:"+Nt+"|"+$t+")?",Ut="[\\ufe0e\\ufe0f]?",qt=Ut+Wt+"(?:\\u200d(?:"+[Bt,Rt,Lt].join("|")+")"+Ut+Wt+")*",Kt="(?:"+[Ft,Rt,Lt].join("|")+")"+qt,Jt="(?:"+[Bt+Nt+"?",Nt,Rt,Lt,Ot].join("|")+")",Gt=RegExp(xt,"g"),Yt=RegExp(Nt,"g"),Xt=RegExp($t+"(?="+$t+")|"+Jt+qt,"g"),Qt=RegExp([Pt+"?"+Mt+"+"+Ht+"(?="+[St,Pt,"$"].join("|")+")",zt+"+"+Vt+"(?="+[St,Pt+jt,"$"].join("|")+")",Pt+"?"+jt+"+"+Ht,Pt+"+"+Vt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tt,Kt].join("|"),"g"),Zt=RegExp("[\\u200d\\ud800-\\udfff"+Dt+kt+"]"),te=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ee=["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"],ne=-1,re={};re[M]=re[I]=re[$]=re[B]=re[R]=re[L]=re[P]=re[j]=re[z]=!0,re[m]=re[g]=re[T]=re[v]=re[F]=re[y]=re[b]=re[_]=re[E]=re[w]=re[C]=re[A]=re[x]=re[O]=re[N]=!1;var oe={};oe[m]=oe[g]=oe[T]=oe[F]=oe[v]=oe[y]=oe[M]=oe[I]=oe[$]=oe[B]=oe[R]=oe[E]=oe[w]=oe[C]=oe[A]=oe[x]=oe[O]=oe[S]=oe[L]=oe[P]=oe[j]=oe[z]=!0,oe[b]=oe[_]=oe[N]=!1;var ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,ae=parseInt,ue="object"==typeof f&&f&&f.Object===Object&&f,le="object"==typeof self&&self&&self.Object===Object&&self,ce=ue||le||Function("return this")(),pe=gd&&!gd.nodeType&&gd,fe=pe&&md&&!md.nodeType&&md,de=fe&&fe.exports===pe,he=de&&ue.process,me=function(){try{var t=fe&&fe.require&&fe.require("util").types;return t||he&&he.binding&&he.binding("util")}catch(t){}}(),ge=me&&me.isArrayBuffer,ve=me&&me.isDate,ye=me&&me.isMap,be=me&&me.isRegExp,_e=me&&me.isSet,De=me&&me.isTypedArray;function Ee(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function we(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var s=t[o];e(r,s,n(s),t)}return r}function Ce(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ke(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ae(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function xe(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}function Oe(t,e){return!(null==t||!t.length)&&Le(t,e,0)>-1}function Se(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function Ne(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Te(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function Fe(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function Me(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function Ie(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var $e=He("length");function Be(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r}function Re(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function Le(t,e,n){return e==e?function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):Re(t,je,n)}function Pe(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function je(t){return t!=t}function ze(t,e){var n=null==t?0:t.length;return n?Ue(t,e)/n:p}function He(e){return function(n){return null==n?t:n[e]}}function Ve(e){return function(n){return null==e?t:e[n]}}function We(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n}function Ue(e,n){for(var r,o=-1,i=e.length;++o<i;){var s=n(e[o]);s!==t&&(r=r===t?s:r+s)}return r}function qe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ke(t){return t?t.slice(0,fn(t)+1).replace(rt,""):t}function Je(t){return function(e){return t(e)}}function Ge(t,e){return Ne(e,(function(e){return t[e]}))}function Ye(t,e){return t.has(e)}function Xe(t,e){for(var n=-1,r=t.length;++n<r&&Le(e,t[n],0)>-1;);return n}function Qe(t,e){for(var n=t.length;n--&&Le(e,t[n],0)>-1;);return n}function Ze(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var tn=Ve({"À":"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"}),en=Ve({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(t){return"\\"+ie[t]}function rn(t){return Zt.test(t)}function on(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function sn(t,e){return function(n){return t(e(n))}}function an(t,e){for(var n=-1,o=t.length,i=0,s=[];++n<o;){var a=t[n];a!==e&&a!==r||(t[n]=r,s[i++]=n)}return s}function un(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function ln(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function cn(t){return rn(t)?function(t){for(var e=Xt.lastIndex=0;Xt.test(t);)++e;return e}(t):$e(t)}function pn(t){return rn(t)?function(t){return t.match(Xt)||[]}(t):function(t){return t.split("")}(t)}function fn(t){for(var e=t.length;e--&&ot.test(t.charAt(e)););return e}var dn=Ve({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hn=function f(ot){var Dt=(ot=null==ot?ce:hn.defaults(ce.Object(),ot,hn.pick(ce,ee))).Array,Et=ot.Date,wt=ot.Error,Ct=ot.Function,kt=ot.Math,At=ot.Object,xt=ot.RegExp,Ot=ot.String,St=ot.TypeError,Nt=Dt.prototype,Tt=Ct.prototype,Ft=At.prototype,Mt=ot["__core-js_shared__"],It=Tt.toString,$t=Ft.hasOwnProperty,Bt=0,Rt=function(){var t=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Lt=Ft.toString,Pt=It.call(At),jt=ce._,zt=xt("^"+It.call($t).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=de?ot.Buffer:t,Vt=ot.Symbol,Wt=ot.Uint8Array,Ut=Ht?Ht.allocUnsafe:t,qt=sn(At.getPrototypeOf,At),Kt=At.create,Jt=Ft.propertyIsEnumerable,Xt=Nt.splice,Zt=Vt?Vt.isConcatSpreadable:t,ie=Vt?Vt.iterator:t,ue=Vt?Vt.toStringTag:t,le=function(){try{var t=di(At,"defineProperty");return t({},"",{}),t}catch(t){}}(),pe=ot.clearTimeout!==ce.clearTimeout&&ot.clearTimeout,fe=Et&&Et.now!==ce.Date.now&&Et.now,he=ot.setTimeout!==ce.setTimeout&&ot.setTimeout,me=kt.ceil,$e=kt.floor,Ve=At.getOwnPropertySymbols,mn=Ht?Ht.isBuffer:t,gn=ot.isFinite,vn=Nt.join,yn=sn(At.keys,At),bn=kt.max,_n=kt.min,Dn=Et.now,En=ot.parseInt,wn=kt.random,Cn=Nt.reverse,kn=di(ot,"DataView"),An=di(ot,"Map"),xn=di(ot,"Promise"),On=di(ot,"Set"),Sn=di(ot,"WeakMap"),Nn=di(At,"create"),Tn=Sn&&new Sn,Fn={},Mn=ji(kn),In=ji(An),$n=ji(xn),Bn=ji(On),Rn=ji(Sn),Ln=Vt?Vt.prototype:t,Pn=Ln?Ln.valueOf:t,jn=Ln?Ln.toString:t;function zn(t){if(ra(t)&&!qs(t)&&!(t instanceof Un)){if(t instanceof Wn)return t;if($t.call(t,"__wrapped__"))return zi(t)}return new Wn(t)}var Hn=function(){function e(){}return function(n){if(!na(n))return{};if(Kt)return Kt(n);e.prototype=n;var r=new e;return e.prototype=t,r}}();function Vn(){}function Wn(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=t}function Un(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Jn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jn;++e<n;)this.add(t[e])}function Yn(t){var e=this.__data__=new Kn(t);this.size=e.size}function Xn(t,e){var n=qs(t),r=!n&&Us(t),o=!n&&!r&&Ys(t),i=!n&&!r&&!o&&pa(t),s=n||r||o||i,a=s?qe(t.length,Ot):[],u=a.length;for(var l in t)!e&&!$t.call(t,l)||s&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||_i(l,u))||a.push(l);return a}function Qn(e){var n=e.length;return n?e[Gr(0,n-1)]:t}function Zn(t,e){return Ri(To(t),ur(e,0,t.length))}function tr(t){return Ri(To(t))}function er(e,n,r){(r!==t&&!Hs(e[n],r)||r===t&&!(n in e))&&sr(e,n,r)}function nr(e,n,r){var o=e[n];$t.call(e,n)&&Hs(o,r)&&(r!==t||n in e)||sr(e,n,r)}function rr(t,e){for(var n=t.length;n--;)if(Hs(t[n][0],e))return n;return-1}function or(t,e,n,r){return dr(t,(function(t,o,i){e(r,t,n(t),i)})),r}function ir(t,e){return t&&Fo(e,Ma(e),t)}function sr(t,e,n){"__proto__"==e&&le?le(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ar(e,n){for(var r=-1,o=n.length,i=Dt(o),s=null==e;++r<o;)i[r]=s?t:Oa(e,n[r]);return i}function ur(e,n,r){return e==e&&(r!==t&&(e=e<=r?e:r),n!==t&&(e=e>=n?e:n)),e}function lr(e,n,r,o,i,s){var a,u=1&n,l=2&n,c=4&n;if(r&&(a=i?r(e,o,i,s):r(e)),a!==t)return a;if(!na(e))return e;var p=qs(e);if(p){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&$t.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!u)return To(e,a)}else{var f=gi(e),d=f==_||f==D;if(Ys(e))return ko(e,u);if(f==C||f==m||d&&!i){if(a=l||d?{}:yi(e),!u)return l?function(t,e){return Fo(t,mi(t),e)}(e,function(t,e){return t&&Fo(e,Ia(e),t)}(a,e)):function(t,e){return Fo(t,hi(t),e)}(e,ir(a,e))}else{if(!oe[f])return i?e:{};a=function(t,e,n){var r,o=t.constructor;switch(e){case T:return Ao(t);case v:case y:return new o(+t);case F:return function(t,e){var n=e?Ao(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case M:case I:case $:case B:case R:case L:case P:case j:case z:return xo(t,n);case E:return new o;case w:case O:return new o(t);case A:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case x:return new o;case S:return r=t,Pn?At(Pn.call(r)):{}}}(e,f,u)}}s||(s=new Yn);var h=s.get(e);if(h)return h;s.set(e,a),ua(e)?e.forEach((function(t){a.add(lr(t,n,r,t,e,s))})):oa(e)&&e.forEach((function(t,o){a.set(o,lr(t,n,r,o,e,s))}));var g=p?t:(c?l?si:ii:l?Ia:Ma)(e);return Ce(g||e,(function(t,o){g&&(t=e[o=t]),nr(a,o,lr(t,n,r,o,e,s))})),a}function cr(e,n,r){var o=r.length;if(null==e)return!o;for(e=At(e);o--;){var i=r[o],s=n[i],a=e[i];if(a===t&&!(i in e)||!s(a))return!1}return!0}function pr(n,r,o){if("function"!=typeof n)throw new St(e);return Mi((function(){n.apply(t,o)}),r)}function fr(t,e,n,r){var o=-1,i=Oe,s=!0,a=t.length,u=[],l=e.length;if(!a)return u;n&&(e=Ne(e,Je(n))),r?(i=Se,s=!1):e.length>=200&&(i=Ye,s=!1,e=new Gn(e));t:for(;++o<a;){var c=t[o],p=null==n?c:n(c);if(c=r||0!==c?c:0,s&&p==p){for(var f=l;f--;)if(e[f]===p)continue t;u.push(c)}else i(e,p,r)||u.push(c)}return u}zn.templateSettings={escape:G,evaluate:Y,interpolate:X,variable:"",imports:{_:zn}},zn.prototype=Vn.prototype,zn.prototype.constructor=zn,Wn.prototype=Hn(Vn.prototype),Wn.prototype.constructor=Wn,Un.prototype=Hn(Vn.prototype),Un.prototype.constructor=Un,qn.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},qn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},qn.prototype.get=function(e){var r=this.__data__;if(Nn){var o=r[e];return o===n?t:o}return $t.call(r,e)?r[e]:t},qn.prototype.has=function(e){var n=this.__data__;return Nn?n[e]!==t:$t.call(n,e)},qn.prototype.set=function(e,r){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Nn&&r===t?n:r,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(t){var e=this.__data__,n=rr(e,t);return!(n<0||(n==e.length-1?e.pop():Xt.call(e,n,1),--this.size,0))},Kn.prototype.get=function(e){var n=this.__data__,r=rr(n,e);return r<0?t:n[r][1]},Kn.prototype.has=function(t){return rr(this.__data__,t)>-1},Kn.prototype.set=function(t,e){var n=this.__data__,r=rr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(An||Kn),string:new qn}},Jn.prototype.delete=function(t){var e=pi(this,t).delete(t);return this.size-=e?1:0,e},Jn.prototype.get=function(t){return pi(this,t).get(t)},Jn.prototype.has=function(t){return pi(this,t).has(t)},Jn.prototype.set=function(t,e){var n=pi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(t){return this.__data__.set(t,n),this},Gn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Yn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Yn.prototype.get=function(t){return this.__data__.get(t)},Yn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!An||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(t,e),this.size=n.size,this};var dr=$o(Dr),hr=$o(Er,!0);function mr(t,e){var n=!0;return dr(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function gr(e,n,r){for(var o=-1,i=e.length;++o<i;){var s=e[o],a=n(s);if(null!=a&&(u===t?a==a&&!ca(a):r(a,u)))var u=a,l=s}return l}function vr(t,e){var n=[];return dr(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}function yr(t,e,n,r,o){var i=-1,s=t.length;for(n||(n=bi),o||(o=[]);++i<s;){var a=t[i];e>0&&n(a)?e>1?yr(a,e-1,n,r,o):Te(o,a):r||(o[o.length]=a)}return o}var br=Bo(),_r=Bo(!0);function Dr(t,e){return t&&br(t,e,Ma)}function Er(t,e){return t&&_r(t,e,Ma)}function wr(t,e){return xe(e,(function(e){return Zs(t[e])}))}function Cr(e,n){for(var r=0,o=(n=Do(n,e)).length;null!=e&&r<o;)e=e[Pi(n[r++])];return r&&r==o?e:t}function kr(t,e,n){var r=e(t);return qs(t)?r:Te(r,n(t))}function Ar(e){return null==e?e===t?"[object Undefined]":"[object Null]":ue&&ue in At(e)?function(e){var n=$t.call(e,ue),r=e[ue];try{e[ue]=t;var o=!0}catch(t){}var i=Lt.call(e);return o&&(n?e[ue]=r:delete e[ue]),i}(e):function(t){return Lt.call(t)}(e)}function xr(t,e){return t>e}function Or(t,e){return null!=t&&$t.call(t,e)}function Sr(t,e){return null!=t&&e in At(t)}function Nr(e,n,r){for(var o=r?Se:Oe,i=e[0].length,s=e.length,a=s,u=Dt(s),l=1/0,c=[];a--;){var p=e[a];a&&n&&(p=Ne(p,Je(n))),l=_n(p.length,l),u[a]=!r&&(n||i>=120&&p.length>=120)?new Gn(a&&p):t}p=e[0];var f=-1,d=u[0];t:for(;++f<i&&c.length<l;){var h=p[f],m=n?n(h):h;if(h=r||0!==h?h:0,!(d?Ye(d,m):o(c,m,r))){for(a=s;--a;){var g=u[a];if(!(g?Ye(g,m):o(e[a],m,r)))continue t}d&&d.push(m),c.push(h)}}return c}function Tr(e,n,r){var o=null==(e=Si(e,n=Do(n,e)))?e:e[Pi(Qi(n))];return null==o?t:Ee(o,e,r)}function Fr(t){return ra(t)&&Ar(t)==m}function Mr(e,n,r,o,i){return e===n||(null==e||null==n||!ra(e)&&!ra(n)?e!=e&&n!=n:function(e,n,r,o,i,s){var a=qs(e),u=qs(n),l=a?g:gi(e),c=u?g:gi(n),p=(l=l==m?C:l)==C,f=(c=c==m?C:c)==C,d=l==c;if(d&&Ys(e)){if(!Ys(n))return!1;a=!0,p=!1}if(d&&!p)return s||(s=new Yn),a||pa(e)?ri(e,n,r,o,i,s):function(t,e,n,r,o,i,s){switch(n){case F:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case T:return!(t.byteLength!=e.byteLength||!i(new Wt(t),new Wt(e)));case v:case y:case w:return Hs(+t,+e);case b:return t.name==e.name&&t.message==e.message;case A:case O:return t==e+"";case E:var a=on;case x:var u=1&r;if(a||(a=un),t.size!=e.size&&!u)return!1;var l=s.get(t);if(l)return l==e;r|=2,s.set(t,e);var c=ri(a(t),a(e),r,o,i,s);return s.delete(t),c;case S:if(Pn)return Pn.call(t)==Pn.call(e)}return!1}(e,n,l,r,o,i,s);if(!(1&r)){var h=p&&$t.call(e,"__wrapped__"),_=f&&$t.call(n,"__wrapped__");if(h||_){var D=h?e.value():e,k=_?n.value():n;return s||(s=new Yn),i(D,k,r,o,s)}}return!!d&&(s||(s=new Yn),function(e,n,r,o,i,s){var a=1&r,u=ii(e),l=u.length,c=ii(n).length;if(l!=c&&!a)return!1;for(var p=l;p--;){var f=u[p];if(!(a?f in n:$t.call(n,f)))return!1}var d=s.get(e),h=s.get(n);if(d&&h)return d==n&&h==e;var m=!0;s.set(e,n),s.set(n,e);for(var g=a;++p<l;){var v=e[f=u[p]],y=n[f];if(o)var b=a?o(y,v,f,n,e,s):o(v,y,f,e,n,s);if(!(b===t?v===y||i(v,y,r,o,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var _=e.constructor,D=n.constructor;_==D||!("constructor"in e)||!("constructor"in n)||"function"==typeof _&&_ instanceof _&&"function"==typeof D&&D instanceof D||(m=!1)}return s.delete(e),s.delete(n),m}(e,n,r,o,i,s))}(e,n,r,o,Mr,i))}function Ir(e,n,r,o){var i=r.length,s=i,a=!o;if(null==e)return!s;for(e=At(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var l=(u=r[i])[0],c=e[l],p=u[1];if(a&&u[2]){if(c===t&&!(l in e))return!1}else{var f=new Yn;if(o)var d=o(c,p,l,e,n,f);if(!(d===t?Mr(p,c,3,o,f):d))return!1}}return!0}function $r(t){return!(!na(t)||(e=t,Rt&&Rt in e))&&(Zs(t)?zt:mt).test(ji(t));var e}function Br(t){return"function"==typeof t?t:null==t?iu:"object"==typeof t?qs(t)?Hr(t[0],t[1]):zr(t):hu(t)}function Rr(t){if(!ki(t))return yn(t);var e=[];for(var n in At(t))$t.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Lr(t){if(!na(t))return function(t){var e=[];if(null!=t)for(var n in At(t))e.push(n);return e}(t);var e=ki(t),n=[];for(var r in t)("constructor"!=r||!e&&$t.call(t,r))&&n.push(r);return n}function Pr(t,e){return t<e}function jr(t,e){var n=-1,r=Js(t)?Dt(t.length):[];return dr(t,(function(t,o,i){r[++n]=e(t,o,i)})),r}function zr(t){var e=fi(t);return 1==e.length&&e[0][2]?xi(e[0][0],e[0][1]):function(n){return n===t||Ir(n,t,e)}}function Hr(e,n){return Ei(e)&&Ai(n)?xi(Pi(e),n):function(r){var o=Oa(r,e);return o===t&&o===n?Sa(r,e):Mr(n,o,3)}}function Vr(e,n,r,o,i){e!==n&&br(n,(function(s,a){if(i||(i=new Yn),na(s))!function(e,n,r,o,i,s,a){var u=Ti(e,r),l=Ti(n,r),c=a.get(l);if(c)er(e,r,c);else{var p=s?s(u,l,r+"",e,n,a):t,f=p===t;if(f){var d=qs(l),h=!d&&Ys(l),m=!d&&!h&&pa(l);p=l,d||h||m?qs(u)?p=u:Gs(u)?p=To(u):h?(f=!1,p=ko(l,!0)):m?(f=!1,p=xo(l,!0)):p=[]:sa(l)||Us(l)?(p=u,Us(u)?p=ba(u):na(u)&&!Zs(u)||(p=yi(l))):f=!1}f&&(a.set(l,p),i(p,l,o,s,a),a.delete(l)),er(e,r,p)}}(e,n,a,r,Vr,o,i);else{var u=o?o(Ti(e,a),s,a+"",e,n,i):t;u===t&&(u=s),er(e,a,u)}}),Ia)}function Wr(e,n){var r=e.length;if(r)return _i(n+=n<0?r:0,r)?e[n]:t}function Ur(t,e,n){e=e.length?Ne(e,(function(t){return qs(t)?function(e){return Cr(e,1===t.length?t[0]:t)}:t})):[iu];var r=-1;e=Ne(e,Je(ci()));var o=jr(t,(function(t,n,o){var i=Ne(e,(function(e){return e(t)}));return{criteria:i,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(o,(function(t,e){return function(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,s=o.length,a=n.length;++r<s;){var u=Oo(o[r],i[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function qr(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var s=e[r],a=Cr(t,s);n(a,s)&&to(i,Do(s,t),a)}return i}function Kr(t,e,n,r){var o=r?Pe:Le,i=-1,s=e.length,a=t;for(t===e&&(e=To(e)),n&&(a=Ne(t,Je(n)));++i<s;)for(var u=0,l=e[i],c=n?n(l):l;(u=o(a,c,u,r))>-1;)a!==t&&Xt.call(a,u,1),Xt.call(t,u,1);return t}function Jr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;_i(o)?Xt.call(t,o,1):fo(t,o)}}return t}function Gr(t,e){return t+$e(wn()*(e-t+1))}function Yr(t,e){var n="";if(!t||e<1||e>c)return n;do{e%2&&(n+=t),(e=$e(e/2))&&(t+=t)}while(e);return n}function Xr(t,e){return Ii(Oi(t,e,iu),t+"")}function Qr(t){return Qn(Ha(t))}function Zr(t,e){var n=Ha(t);return Ri(n,ur(e,0,n.length))}function to(e,n,r,o){if(!na(e))return e;for(var i=-1,s=(n=Do(n,e)).length,a=s-1,u=e;null!=u&&++i<s;){var l=Pi(n[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var p=u[l];(c=o?o(p,l,u):t)===t&&(c=na(p)?p:_i(n[i+1])?[]:{})}nr(u,l,c),u=u[l]}return e}var eo=Tn?function(t,e){return Tn.set(t,e),t}:iu,no=le?function(t,e){return le(t,"toString",{configurable:!0,enumerable:!1,value:nu(e),writable:!0})}:iu;function ro(t){return Ri(Ha(t))}function oo(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Dt(o);++r<o;)i[r]=t[r+e];return i}function io(t,e){var n;return dr(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}function so(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=t[i];null!==s&&!ca(s)&&(n?s<=e:s<e)?r=i+1:o=i}return o}return ao(t,e,iu,n)}function ao(e,n,r,o){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(n=r(n))!=n,u=null===n,l=ca(n),c=n===t;i<s;){var p=$e((i+s)/2),f=r(e[p]),d=f!==t,h=null===f,m=f==f,g=ca(f);if(a)var v=o||m;else v=c?m&&(o||d):u?m&&d&&(o||!h):l?m&&d&&!h&&(o||!g):!h&&!g&&(o?f<=n:f<n);v?i=p+1:s=p}return _n(s,4294967294)}function uo(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!Hs(a,u)){var u=a;i[o++]=0===s?0:s}}return i}function lo(t){return"number"==typeof t?t:ca(t)?p:+t}function co(t){if("string"==typeof t)return t;if(qs(t))return Ne(t,co)+"";if(ca(t))return jn?jn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function po(t,e,n){var r=-1,o=Oe,i=t.length,s=!0,a=[],u=a;if(n)s=!1,o=Se;else if(i>=200){var l=e?null:Xo(t);if(l)return un(l);s=!1,o=Ye,u=new Gn}else u=e?[]:a;t:for(;++r<i;){var c=t[r],p=e?e(c):c;if(c=n||0!==c?c:0,s&&p==p){for(var f=u.length;f--;)if(u[f]===p)continue t;e&&u.push(p),a.push(c)}else o(u,p,n)||(u!==a&&u.push(p),a.push(c))}return a}function fo(t,e){return null==(t=Si(t,e=Do(e,t)))||delete t[Pi(Qi(e))]}function ho(t,e,n,r){return to(t,e,n(Cr(t,e)),r)}function mo(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?oo(t,r?0:i,r?i+1:o):oo(t,r?i+1:0,r?o:i)}function go(t,e){var n=t;return n instanceof Un&&(n=n.value()),Fe(e,(function(t,e){return e.func.apply(e.thisArg,Te([t],e.args))}),n)}function vo(t,e,n){var r=t.length;if(r<2)return r?po(t[0]):[];for(var o=-1,i=Dt(r);++o<r;)for(var s=t[o],a=-1;++a<r;)a!=o&&(i[o]=fr(i[o]||s,t[a],e,n));return po(yr(i,1),e,n)}function yo(e,n,r){for(var o=-1,i=e.length,s=n.length,a={};++o<i;){var u=o<s?n[o]:t;r(a,e[o],u)}return a}function bo(t){return Gs(t)?t:[]}function _o(t){return"function"==typeof t?t:iu}function Do(t,e){return qs(t)?t:Ei(t,e)?[t]:Li(_a(t))}var Eo=Xr;function wo(e,n,r){var o=e.length;return r=r===t?o:r,!n&&r>=o?e:oo(e,n,r)}var Co=pe||function(t){return ce.clearTimeout(t)};function ko(t,e){if(e)return t.slice();var n=t.length,r=Ut?Ut(n):new t.constructor(n);return t.copy(r),r}function Ao(t){var e=new t.constructor(t.byteLength);return new Wt(e).set(new Wt(t)),e}function xo(t,e){var n=e?Ao(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Oo(e,n){if(e!==n){var r=e!==t,o=null===e,i=e==e,s=ca(e),a=n!==t,u=null===n,l=n==n,c=ca(n);if(!u&&!c&&!s&&e>n||s&&a&&l&&!u&&!c||o&&a&&l||!r&&l||!i)return 1;if(!o&&!s&&!c&&e<n||c&&r&&i&&!o&&!s||u&&r&&i||!a&&i||!l)return-1}return 0}function So(t,e,n,r){for(var o=-1,i=t.length,s=n.length,a=-1,u=e.length,l=bn(i-s,0),c=Dt(u+l),p=!r;++a<u;)c[a]=e[a];for(;++o<s;)(p||o<i)&&(c[n[o]]=t[o]);for(;l--;)c[a++]=t[o++];return c}function No(t,e,n,r){for(var o=-1,i=t.length,s=-1,a=n.length,u=-1,l=e.length,c=bn(i-a,0),p=Dt(c+l),f=!r;++o<c;)p[o]=t[o];for(var d=o;++u<l;)p[d+u]=e[u];for(;++s<a;)(f||o<i)&&(p[d+n[s]]=t[o++]);return p}function To(t,e){var n=-1,r=t.length;for(e||(e=Dt(r));++n<r;)e[n]=t[n];return e}function Fo(e,n,r,o){var i=!r;r||(r={});for(var s=-1,a=n.length;++s<a;){var u=n[s],l=o?o(r[u],e[u],u,r,e):t;l===t&&(l=e[u]),i?sr(r,u,l):nr(r,u,l)}return r}function Mo(t,e){return function(n,r){var o=qs(n)?we:or,i=e?e():{};return o(n,t,ci(r,2),i)}}function Io(e){return Xr((function(n,r){var o=-1,i=r.length,s=i>1?r[i-1]:t,a=i>2?r[2]:t;for(s=e.length>3&&"function"==typeof s?(i--,s):t,a&&Di(r[0],r[1],a)&&(s=i<3?t:s,i=1),n=At(n);++o<i;){var u=r[o];u&&e(n,u,o,s)}return n}))}function $o(t,e){return function(n,r){if(null==n)return n;if(!Js(n))return t(n,r);for(var o=n.length,i=e?o:-1,s=At(n);(e?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function Bo(t){return function(e,n,r){for(var o=-1,i=At(e),s=r(e),a=s.length;a--;){var u=s[t?a:++o];if(!1===n(i[u],u,i))break}return e}}function Ro(e){return function(n){var r=rn(n=_a(n))?pn(n):t,o=r?r[0]:n.charAt(0),i=r?wo(r,1).join(""):n.slice(1);return o[e]()+i}}function Lo(t){return function(e){return Fe(Za(Ua(e).replace(Gt,"")),t,"")}}function Po(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Hn(t.prototype),r=t.apply(n,e);return na(r)?r:n}}function jo(e){return function(n,r,o){var i=At(n);if(!Js(n)){var s=ci(r,3);n=Ma(n),r=function(t){return s(i[t],t,i)}}var a=e(n,r,o);return a>-1?i[s?n[a]:a]:t}}function zo(n){return oi((function(r){var o=r.length,i=o,s=Wn.prototype.thru;for(n&&r.reverse();i--;){var a=r[i];if("function"!=typeof a)throw new St(e);if(s&&!u&&"wrapper"==ui(a))var u=new Wn([],!0)}for(i=u?i:o;++i<o;){var l=ui(a=r[i]),c="wrapper"==l?ai(a):t;u=c&&wi(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ui(c[0])].apply(u,c[3]):1==a.length&&wi(a)?u[l]():u.thru(a)}return function(){var t=arguments,e=t[0];if(u&&1==t.length&&qs(e))return u.plant(e).value();for(var n=0,i=o?r[n].apply(this,t):e;++n<o;)i=r[n].call(this,i);return i}}))}function Ho(e,n,r,o,i,s,u,l,c,p){var f=n&a,d=1&n,h=2&n,m=24&n,g=512&n,v=h?t:Po(e);return function t(){for(var a=arguments.length,y=Dt(a),b=a;b--;)y[b]=arguments[b];if(m)var _=li(t),D=Ze(y,_);if(o&&(y=So(y,o,i,m)),s&&(y=No(y,s,u,m)),a-=D,m&&a<p){var E=an(y,_);return Go(e,n,Ho,t.placeholder,r,y,E,l,c,p-a)}var w=d?r:this,C=h?w[e]:e;return a=y.length,l?y=Ni(y,l):g&&a>1&&y.reverse(),f&&c<a&&(y.length=c),this&&this!==ce&&this instanceof t&&(C=v||Po(C)),C.apply(w,y)}}function Vo(t,e){return function(n,r){return function(t,e,n,r){return Dr(t,(function(t,o,i){e(r,n(t),o,i)})),r}(n,t,e(r),{})}}function Wo(e,n){return function(r,o){var i;if(r===t&&o===t)return n;if(r!==t&&(i=r),o!==t){if(i===t)return o;"string"==typeof r||"string"==typeof o?(r=co(r),o=co(o)):(r=lo(r),o=lo(o)),i=e(r,o)}return i}}function Uo(t){return oi((function(e){return e=Ne(e,Je(ci())),Xr((function(n){var r=this;return t(e,(function(t){return Ee(t,r,n)}))}))}))}function qo(e,n){var r=(n=n===t?" ":co(n)).length;if(r<2)return r?Yr(n,e):n;var o=Yr(n,me(e/cn(n)));return rn(n)?wo(pn(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(n,r,o){return o&&"number"!=typeof o&&Di(n,r,o)&&(r=o=t),n=ma(n),r===t?(r=n,n=0):r=ma(r),function(t,e,n,r){for(var o=-1,i=bn(me((e-t)/(n||1)),0),s=Dt(i);i--;)s[r?i:++o]=t,t+=n;return s}(n,r,o=o===t?n<r?1:-1:ma(o),e)}}function Jo(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ya(e),n=ya(n)),t(e,n)}}function Go(e,n,r,o,a,u,l,c,p,f){var d=8&n;n|=d?i:s,4&(n&=~(d?s:i))||(n&=-4);var h=[e,n,a,d?u:t,d?l:t,d?t:u,d?t:l,c,p,f],m=r.apply(t,h);return wi(e)&&Fi(m,h),m.placeholder=o,$i(m,e,n)}function Yo(t){var e=kt[t];return function(t,n){if(t=ya(t),(n=null==n?0:_n(ga(n),292))&&gn(t)){var r=(_a(t)+"e").split("e");return+((r=(_a(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Xo=On&&1/un(new On([,-0]))[1]==l?function(t){return new On(t)}:cu;function Qo(t){return function(e){var n=gi(e);return n==E?on(e):n==x?ln(e):function(t,e){return Ne(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Zo(n,l,c,p,f,d,h,m){var g=2&l;if(!g&&"function"!=typeof n)throw new St(e);var v=p?p.length:0;if(v||(l&=-97,p=f=t),h=h===t?h:bn(ga(h),0),m=m===t?m:ga(m),v-=f?f.length:0,l&s){var y=p,b=f;p=f=t}var _=g?t:ai(n),D=[n,l,c,p,f,y,b,d,h,m];if(_&&function(t,e){var n=t[1],o=e[1],i=n|o,s=i<131,l=o==a&&8==n||o==a&&n==u&&t[7].length<=e[8]||384==o&&e[7].length<=e[8]&&8==n;if(!s&&!l)return t;1&o&&(t[2]=e[2],i|=1&n?0:4);var c=e[3];if(c){var p=t[3];t[3]=p?So(p,c,e[4]):c,t[4]=p?an(t[3],r):e[4]}(c=e[5])&&(p=t[5],t[5]=p?No(p,c,e[6]):c,t[6]=p?an(t[5],r):e[6]),(c=e[7])&&(t[7]=c),o&a&&(t[8]=null==t[8]?e[8]:_n(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(D,_),n=D[0],l=D[1],c=D[2],p=D[3],f=D[4],!(m=D[9]=D[9]===t?g?0:n.length:bn(D[9]-v,0))&&24&l&&(l&=-25),l&&1!=l)E=8==l||l==o?function(e,n,r){var o=Po(e);return function i(){for(var s=arguments.length,a=Dt(s),u=s,l=li(i);u--;)a[u]=arguments[u];var c=s<3&&a[0]!==l&&a[s-1]!==l?[]:an(a,l);return(s-=c.length)<r?Go(e,n,Ho,i.placeholder,t,a,c,t,t,r-s):Ee(this&&this!==ce&&this instanceof i?o:e,this,a)}}(n,l,m):l!=i&&33!=l||f.length?Ho.apply(t,D):function(t,e,n,r){var o=1&e,i=Po(t);return function e(){for(var s=-1,a=arguments.length,u=-1,l=r.length,c=Dt(l+a),p=this&&this!==ce&&this instanceof e?i:t;++u<l;)c[u]=r[u];for(;a--;)c[u++]=arguments[++s];return Ee(p,o?n:this,c)}}(n,l,c,p);else var E=function(t,e,n){var r=1&e,o=Po(t);return function e(){return(this&&this!==ce&&this instanceof e?o:t).apply(r?n:this,arguments)}}(n,l,c);return $i((_?eo:Fi)(E,D),n,l)}function ti(e,n,r,o){return e===t||Hs(e,Ft[r])&&!$t.call(o,r)?n:e}function ei(e,n,r,o,i,s){return na(e)&&na(n)&&(s.set(n,e),Vr(e,n,t,ei,s),s.delete(n)),e}function ni(e){return sa(e)?t:e}function ri(e,n,r,o,i,s){var a=1&r,u=e.length,l=n.length;if(u!=l&&!(a&&l>u))return!1;var c=s.get(e),p=s.get(n);if(c&&p)return c==n&&p==e;var f=-1,d=!0,h=2&r?new Gn:t;for(s.set(e,n),s.set(n,e);++f<u;){var m=e[f],g=n[f];if(o)var v=a?o(g,m,f,n,e,s):o(m,g,f,e,n,s);if(v!==t){if(v)continue;d=!1;break}if(h){if(!Ie(n,(function(t,e){if(!Ye(h,e)&&(m===t||i(m,t,r,o,s)))return h.push(e)}))){d=!1;break}}else if(m!==g&&!i(m,g,r,o,s)){d=!1;break}}return s.delete(e),s.delete(n),d}function oi(e){return Ii(Oi(e,t,Ki),e+"")}function ii(t){return kr(t,Ma,hi)}function si(t){return kr(t,Ia,mi)}var ai=Tn?function(t){return Tn.get(t)}:cu;function ui(t){for(var e=t.name+"",n=Fn[e],r=$t.call(Fn,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e}function li(t){return($t.call(zn,"placeholder")?zn:t).placeholder}function ci(){var t=zn.iteratee||su;return t=t===su?Br:t,arguments.length?t(arguments[0],arguments[1]):t}function pi(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function fi(t){for(var e=Ma(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Ai(o)]}return e}function di(e,n){var r=function(e,n){return null==e?t:e[n]}(e,n);return $r(r)?r:t}var hi=Ve?function(t){return null==t?[]:(t=At(t),xe(Ve(t),(function(e){return Jt.call(t,e)})))}:vu,mi=Ve?function(t){for(var e=[];t;)Te(e,hi(t)),t=qt(t);return e}:vu,gi=Ar;function vi(t,e,n){for(var r=-1,o=(e=Do(e,t)).length,i=!1;++r<o;){var s=Pi(e[r]);if(!(i=null!=t&&n(t,s)))break;t=t[s]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&ea(o)&&_i(s,o)&&(qs(t)||Us(t))}function yi(t){return"function"!=typeof t.constructor||ki(t)?{}:Hn(qt(t))}function bi(t){return qs(t)||Us(t)||!!(Zt&&t&&t[Zt])}function _i(t,e){var n=typeof t;return!!(e=null==e?c:e)&&("number"==n||"symbol"!=n&&vt.test(t))&&t>-1&&t%1==0&&t<e}function Di(t,e,n){if(!na(n))return!1;var r=typeof e;return!!("number"==r?Js(n)&&_i(e,n.length):"string"==r&&e in n)&&Hs(n[e],t)}function Ei(t,e){if(qs(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ca(t))||Z.test(t)||!Q.test(t)||null!=e&&t in At(e)}function wi(t){var e=ui(t),n=zn[e];if("function"!=typeof n||!(e in Un.prototype))return!1;if(t===n)return!0;var r=ai(n);return!!r&&t===r[0]}(kn&&gi(new kn(new ArrayBuffer(1)))!=F||An&&gi(new An)!=E||xn&&gi(xn.resolve())!=k||On&&gi(new On)!=x||Sn&&gi(new Sn)!=N)&&(gi=function(e){var n=Ar(e),r=n==C?e.constructor:t,o=r?ji(r):"";if(o)switch(o){case Mn:return F;case In:return E;case $n:return k;case Bn:return x;case Rn:return N}return n});var Ci=Mt?Zs:yu;function ki(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ft)}function Ai(t){return t==t&&!na(t)}function xi(e,n){return function(r){return null!=r&&r[e]===n&&(n!==t||e in At(r))}}function Oi(e,n,r){return n=bn(n===t?e.length-1:n,0),function(){for(var t=arguments,o=-1,i=bn(t.length-n,0),s=Dt(i);++o<i;)s[o]=t[n+o];o=-1;for(var a=Dt(n+1);++o<n;)a[o]=t[o];return a[n]=r(s),Ee(e,this,a)}}function Si(t,e){return e.length<2?t:Cr(t,oo(e,0,-1))}function Ni(e,n){for(var r=e.length,o=_n(n.length,r),i=To(e);o--;){var s=n[o];e[o]=_i(s,r)?i[s]:t}return e}function Ti(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Fi=Bi(eo),Mi=he||function(t,e){return ce.setTimeout(t,e)},Ii=Bi(no);function $i(t,e,n){var r=e+"";return Ii(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ce(h,(function(n){var r="_."+n[0];e&n[1]&&!Oe(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(at):[]}(r),n)))}function Bi(e){var n=0,r=0;return function(){var o=Dn(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(t,arguments)}}function Ri(e,n){var r=-1,o=e.length,i=o-1;for(n=n===t?o:n;++r<n;){var s=Gr(r,i),a=e[s];e[s]=e[r],e[r]=a}return e.length=n,e}var Li=function(t){var e=Bs(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,n,r,o){e.push(r?o.replace(ct,"$1"):n||t)})),e}));function Pi(t){if("string"==typeof t||ca(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ji(t){if(null!=t){try{return It.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zi(t){if(t instanceof Un)return t.clone();var e=new Wn(t.__wrapped__,t.__chain__);return e.__actions__=To(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Hi=Xr((function(t,e){return Gs(t)?fr(t,yr(e,1,Gs,!0)):[]})),Vi=Xr((function(e,n){var r=Qi(n);return Gs(r)&&(r=t),Gs(e)?fr(e,yr(n,1,Gs,!0),ci(r,2)):[]})),Wi=Xr((function(e,n){var r=Qi(n);return Gs(r)&&(r=t),Gs(e)?fr(e,yr(n,1,Gs,!0),t,r):[]}));function Ui(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ga(n);return o<0&&(o=bn(r+o,0)),Re(t,ci(e,3),o)}function qi(e,n,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==t&&(i=ga(r),i=r<0?bn(o+i,0):_n(i,o-1)),Re(e,ci(n,3),i,!0)}function Ki(t){return null!=t&&t.length?yr(t,1):[]}function Ji(e){return e&&e.length?e[0]:t}var Gi=Xr((function(t){var e=Ne(t,bo);return e.length&&e[0]===t[0]?Nr(e):[]})),Yi=Xr((function(e){var n=Qi(e),r=Ne(e,bo);return n===Qi(r)?n=t:r.pop(),r.length&&r[0]===e[0]?Nr(r,ci(n,2)):[]})),Xi=Xr((function(e){var n=Qi(e),r=Ne(e,bo);return(n="function"==typeof n?n:t)&&r.pop(),r.length&&r[0]===e[0]?Nr(r,t,n):[]}));function Qi(e){var n=null==e?0:e.length;return n?e[n-1]:t}var Zi=Xr(ts);function ts(t,e){return t&&t.length&&e&&e.length?Kr(t,e):t}var es=oi((function(t,e){var n=null==t?0:t.length,r=ar(t,e);return Jr(t,Ne(e,(function(t){return _i(t,n)?+t:t})).sort(Oo)),r}));function ns(t){return null==t?t:Cn.call(t)}var rs=Xr((function(t){return po(yr(t,1,Gs,!0))})),os=Xr((function(e){var n=Qi(e);return Gs(n)&&(n=t),po(yr(e,1,Gs,!0),ci(n,2))})),is=Xr((function(e){var n=Qi(e);return n="function"==typeof n?n:t,po(yr(e,1,Gs,!0),t,n)}));function ss(t){if(!t||!t.length)return[];var e=0;return t=xe(t,(function(t){if(Gs(t))return e=bn(t.length,e),!0})),qe(e,(function(e){return Ne(t,He(e))}))}function as(e,n){if(!e||!e.length)return[];var r=ss(e);return null==n?r:Ne(r,(function(e){return Ee(n,t,e)}))}var us=Xr((function(t,e){return Gs(t)?fr(t,e):[]})),ls=Xr((function(t){return vo(xe(t,Gs))})),cs=Xr((function(e){var n=Qi(e);return Gs(n)&&(n=t),vo(xe(e,Gs),ci(n,2))})),ps=Xr((function(e){var n=Qi(e);return n="function"==typeof n?n:t,vo(xe(e,Gs),t,n)})),fs=Xr(ss),ds=Xr((function(e){var n=e.length,r=n>1?e[n-1]:t;return r="function"==typeof r?(e.pop(),r):t,as(e,r)}));function hs(t){var e=zn(t);return e.__chain__=!0,e}function ms(t,e){return e(t)}var gs=oi((function(e){var n=e.length,r=n?e[0]:0,o=this.__wrapped__,i=function(t){return ar(t,e)};return!(n>1||this.__actions__.length)&&o instanceof Un&&_i(r)?((o=o.slice(r,+r+(n?1:0))).__actions__.push({func:ms,args:[i],thisArg:t}),new Wn(o,this.__chain__).thru((function(e){return n&&!e.length&&e.push(t),e}))):this.thru(i)})),vs=Mo((function(t,e,n){$t.call(t,n)?++t[n]:sr(t,n,1)})),ys=jo(Ui),bs=jo(qi);function _s(t,e){return(qs(t)?Ce:dr)(t,ci(e,3))}function Ds(t,e){return(qs(t)?ke:hr)(t,ci(e,3))}var Es=Mo((function(t,e,n){$t.call(t,n)?t[n].push(e):sr(t,n,[e])})),ws=Xr((function(t,e,n){var r=-1,o="function"==typeof e,i=Js(t)?Dt(t.length):[];return dr(t,(function(t){i[++r]=o?Ee(e,t,n):Tr(t,e,n)})),i})),Cs=Mo((function(t,e,n){sr(t,n,e)}));function ks(t,e){return(qs(t)?Ne:jr)(t,ci(e,3))}var As=Mo((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),xs=Xr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Di(t,e[0],e[1])?e=[]:n>2&&Di(e[0],e[1],e[2])&&(e=[e[0]]),Ur(t,yr(e,1),[])})),Os=fe||function(){return ce.Date.now()};function Ss(e,n,r){return n=r?t:n,n=e&&null==n?e.length:n,Zo(e,a,t,t,t,t,n)}function Ns(n,r){var o;if("function"!=typeof r)throw new St(e);return n=ga(n),function(){return--n>0&&(o=r.apply(this,arguments)),n<=1&&(r=t),o}}var Ts=Xr((function(t,e,n){var r=1;if(n.length){var o=an(n,li(Ts));r|=i}return Zo(t,r,e,n,o)})),Fs=Xr((function(t,e,n){var r=3;if(n.length){var o=an(n,li(Fs));r|=i}return Zo(e,r,t,n,o)}));function Ms(n,r,o){var i,s,a,u,l,c,p=0,f=!1,d=!1,h=!0;if("function"!=typeof n)throw new St(e);function m(e){var r=i,o=s;return i=s=t,p=e,u=n.apply(o,r)}function g(t){return p=t,l=Mi(y,r),f?m(t):u}function v(e){var n=e-c;return c===t||n>=r||n<0||d&&e-p>=a}function y(){var t=Os();if(v(t))return b(t);l=Mi(y,function(t){var e=r-(t-c);return d?_n(e,a-(t-p)):e}(t))}function b(e){return l=t,h&&i?m(e):(i=s=t,u)}function _(){var e=Os(),n=v(e);if(i=arguments,s=this,c=e,n){if(l===t)return g(c);if(d)return Co(l),l=Mi(y,r),m(c)}return l===t&&(l=Mi(y,r)),u}return r=ya(r)||0,na(o)&&(f=!!o.leading,a=(d="maxWait"in o)?bn(ya(o.maxWait)||0,r):a,h="trailing"in o?!!o.trailing:h),_.cancel=function(){l!==t&&Co(l),p=0,i=c=s=l=t},_.flush=function(){return l===t?u:b(Os())},_}var Is=Xr((function(t,e){return pr(t,1,e)})),$s=Xr((function(t,e,n){return pr(t,ya(e)||0,n)}));function Bs(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new St(e);var r=function(){var e=arguments,o=n?n.apply(this,e):e[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,e);return r.cache=i.set(o,s)||i,s};return r.cache=new(Bs.Cache||Jn),r}function Rs(t){if("function"!=typeof t)throw new St(e);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Bs.Cache=Jn;var Ls=Eo((function(t,e){var n=(e=1==e.length&&qs(e[0])?Ne(e[0],Je(ci())):Ne(yr(e,1),Je(ci()))).length;return Xr((function(r){for(var o=-1,i=_n(r.length,n);++o<i;)r[o]=e[o].call(this,r[o]);return Ee(t,this,r)}))})),Ps=Xr((function(e,n){var r=an(n,li(Ps));return Zo(e,i,t,n,r)})),js=Xr((function(e,n){var r=an(n,li(js));return Zo(e,s,t,n,r)})),zs=oi((function(e,n){return Zo(e,u,t,t,t,n)}));function Hs(t,e){return t===e||t!=t&&e!=e}var Vs=Jo(xr),Ws=Jo((function(t,e){return t>=e})),Us=Fr(function(){return arguments}())?Fr:function(t){return ra(t)&&$t.call(t,"callee")&&!Jt.call(t,"callee")},qs=Dt.isArray,Ks=ge?Je(ge):function(t){return ra(t)&&Ar(t)==T};function Js(t){return null!=t&&ea(t.length)&&!Zs(t)}function Gs(t){return ra(t)&&Js(t)}var Ys=mn||yu,Xs=ve?Je(ve):function(t){return ra(t)&&Ar(t)==y};function Qs(t){if(!ra(t))return!1;var e=Ar(t);return e==b||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!sa(t)}function Zs(t){if(!na(t))return!1;var e=Ar(t);return e==_||e==D||"[object AsyncFunction]"==e||"[object Proxy]"==e}function ta(t){return"number"==typeof t&&t==ga(t)}function ea(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function na(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ra(t){return null!=t&&"object"==typeof t}var oa=ye?Je(ye):function(t){return ra(t)&&gi(t)==E};function ia(t){return"number"==typeof t||ra(t)&&Ar(t)==w}function sa(t){if(!ra(t)||Ar(t)!=C)return!1;var e=qt(t);if(null===e)return!0;var n=$t.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&It.call(n)==Pt}var aa=be?Je(be):function(t){return ra(t)&&Ar(t)==A},ua=_e?Je(_e):function(t){return ra(t)&&gi(t)==x};function la(t){return"string"==typeof t||!qs(t)&&ra(t)&&Ar(t)==O}function ca(t){return"symbol"==typeof t||ra(t)&&Ar(t)==S}var pa=De?Je(De):function(t){return ra(t)&&ea(t.length)&&!!re[Ar(t)]},fa=Jo(Pr),da=Jo((function(t,e){return t<=e}));function ha(t){if(!t)return[];if(Js(t))return la(t)?pn(t):To(t);if(ie&&t[ie])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[ie]());var e=gi(t);return(e==E?on:e==x?un:Ha)(t)}function ma(t){return t?(t=ya(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ga(t){var e=ma(t),n=e%1;return e==e?n?e-n:e:0}function va(t){return t?ur(ga(t),0,d):0}function ya(t){if("number"==typeof t)return t;if(ca(t))return p;if(na(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=na(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ke(t);var n=ht.test(t);return n||gt.test(t)?ae(t.slice(2),n?2:8):dt.test(t)?p:+t}function ba(t){return Fo(t,Ia(t))}function _a(t){return null==t?"":co(t)}var Da=Io((function(t,e){if(ki(e)||Js(e))Fo(e,Ma(e),t);else for(var n in e)$t.call(e,n)&&nr(t,n,e[n])})),Ea=Io((function(t,e){Fo(e,Ia(e),t)})),wa=Io((function(t,e,n,r){Fo(e,Ia(e),t,r)})),Ca=Io((function(t,e,n,r){Fo(e,Ma(e),t,r)})),ka=oi(ar),Aa=Xr((function(e,n){e=At(e);var r=-1,o=n.length,i=o>2?n[2]:t;for(i&&Di(n[0],n[1],i)&&(o=1);++r<o;)for(var s=n[r],a=Ia(s),u=-1,l=a.length;++u<l;){var c=a[u],p=e[c];(p===t||Hs(p,Ft[c])&&!$t.call(e,c))&&(e[c]=s[c])}return e})),xa=Xr((function(e){return e.push(t,ei),Ee(Ba,t,e)}));function Oa(e,n,r){var o=null==e?t:Cr(e,n);return o===t?r:o}function Sa(t,e){return null!=t&&vi(t,e,Sr)}var Na=Vo((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),t[e]=n}),nu(iu)),Ta=Vo((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),$t.call(t,e)?t[e].push(n):t[e]=[n]}),ci),Fa=Xr(Tr);function Ma(t){return Js(t)?Xn(t):Rr(t)}function Ia(t){return Js(t)?Xn(t,!0):Lr(t)}var $a=Io((function(t,e,n){Vr(t,e,n)})),Ba=Io((function(t,e,n,r){Vr(t,e,n,r)})),Ra=oi((function(t,e){var n={};if(null==t)return n;var r=!1;e=Ne(e,(function(e){return e=Do(e,t),r||(r=e.length>1),e})),Fo(t,si(t),n),r&&(n=lr(n,7,ni));for(var o=e.length;o--;)fo(n,e[o]);return n})),La=oi((function(t,e){return null==t?{}:function(t,e){return qr(t,e,(function(e,n){return Sa(t,n)}))}(t,e)}));function Pa(t,e){if(null==t)return{};var n=Ne(si(t),(function(t){return[t]}));return e=ci(e),qr(t,n,(function(t,n){return e(t,n[0])}))}var ja=Qo(Ma),za=Qo(Ia);function Ha(t){return null==t?[]:Ge(t,Ma(t))}var Va=Lo((function(t,e,n){return e=e.toLowerCase(),t+(n?Wa(e):e)}));function Wa(t){return Qa(_a(t).toLowerCase())}function Ua(t){return(t=_a(t))&&t.replace(yt,tn).replace(Yt,"")}var qa=Lo((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ka=Lo((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ja=Ro("toLowerCase"),Ga=Lo((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Ya=Lo((function(t,e,n){return t+(n?" ":"")+Qa(e)})),Xa=Lo((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Qa=Ro("toUpperCase");function Za(e,n,r){return e=_a(e),(n=r?t:n)===t?function(t){return te.test(t)}(e)?function(t){return t.match(Qt)||[]}(e):function(t){return t.match(ut)||[]}(e):e.match(n)||[]}var tu=Xr((function(e,n){try{return Ee(e,t,n)}catch(t){return Qs(t)?t:new wt(t)}})),eu=oi((function(t,e){return Ce(e,(function(e){e=Pi(e),sr(t,e,Ts(t[e],t))})),t}));function nu(t){return function(){return t}}var ru=zo(),ou=zo(!0);function iu(t){return t}function su(t){return Br("function"==typeof t?t:lr(t,1))}var au=Xr((function(t,e){return function(n){return Tr(n,t,e)}})),uu=Xr((function(t,e){return function(n){return Tr(t,n,e)}}));function lu(t,e,n){var r=Ma(e),o=wr(e,r);null!=n||na(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=wr(e,Ma(e)));var i=!(na(n)&&"chain"in n&&!n.chain),s=Zs(t);return Ce(o,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__),o=n.__actions__=To(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Te([this.value()],arguments))})})),t}function cu(){}var pu=Uo(Ne),fu=Uo(Ae),du=Uo(Ie);function hu(t){return Ei(t)?He(Pi(t)):function(t){return function(e){return Cr(e,t)}}(t)}var mu=Ko(),gu=Ko(!0);function vu(){return[]}function yu(){return!1}var bu,_u=Wo((function(t,e){return t+e}),0),Du=Yo("ceil"),Eu=Wo((function(t,e){return t/e}),1),wu=Yo("floor"),Cu=Wo((function(t,e){return t*e}),1),ku=Yo("round"),Au=Wo((function(t,e){return t-e}),0);return zn.after=function(t,n){if("function"!=typeof n)throw new St(e);return t=ga(t),function(){if(--t<1)return n.apply(this,arguments)}},zn.ary=Ss,zn.assign=Da,zn.assignIn=Ea,zn.assignInWith=wa,zn.assignWith=Ca,zn.at=ka,zn.before=Ns,zn.bind=Ts,zn.bindAll=eu,zn.bindKey=Fs,zn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qs(t)?t:[t]},zn.chain=hs,zn.chunk=function(e,n,r){n=(r?Di(e,n,r):n===t)?1:bn(ga(n),0);var o=null==e?0:e.length;if(!o||n<1)return[];for(var i=0,s=0,a=Dt(me(o/n));i<o;)a[s++]=oo(e,i,i+=n);return a},zn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o},zn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=Dt(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Te(qs(n)?To(n):[n],yr(e,1))},zn.cond=function(t){var n=null==t?0:t.length,r=ci();return t=n?Ne(t,(function(t){if("function"!=typeof t[1])throw new St(e);return[r(t[0]),t[1]]})):[],Xr((function(e){for(var r=-1;++r<n;){var o=t[r];if(Ee(o[0],this,e))return Ee(o[1],this,e)}}))},zn.conforms=function(t){return function(t){var e=Ma(t);return function(n){return cr(n,t,e)}}(lr(t,1))},zn.constant=nu,zn.countBy=vs,zn.create=function(t,e){var n=Hn(t);return null==e?n:ir(n,e)},zn.curry=function e(n,r,o){var i=Zo(n,8,t,t,t,t,t,r=o?t:r);return i.placeholder=e.placeholder,i},zn.curryRight=function e(n,r,i){var s=Zo(n,o,t,t,t,t,t,r=i?t:r);return s.placeholder=e.placeholder,s},zn.debounce=Ms,zn.defaults=Aa,zn.defaultsDeep=xa,zn.defer=Is,zn.delay=$s,zn.difference=Hi,zn.differenceBy=Vi,zn.differenceWith=Wi,zn.drop=function(e,n,r){var o=null==e?0:e.length;return o?oo(e,(n=r||n===t?1:ga(n))<0?0:n,o):[]},zn.dropRight=function(e,n,r){var o=null==e?0:e.length;return o?oo(e,0,(n=o-(n=r||n===t?1:ga(n)))<0?0:n):[]},zn.dropRightWhile=function(t,e){return t&&t.length?mo(t,ci(e,3),!0,!0):[]},zn.dropWhile=function(t,e){return t&&t.length?mo(t,ci(e,3),!0):[]},zn.fill=function(e,n,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Di(e,n,r)&&(r=0,o=i),function(e,n,r,o){var i=e.length;for((r=ga(r))<0&&(r=-r>i?0:i+r),(o=o===t||o>i?i:ga(o))<0&&(o+=i),o=r>o?0:va(o);r<o;)e[r++]=n;return e}(e,n,r,o)):[]},zn.filter=function(t,e){return(qs(t)?xe:vr)(t,ci(e,3))},zn.flatMap=function(t,e){return yr(ks(t,e),1)},zn.flatMapDeep=function(t,e){return yr(ks(t,e),l)},zn.flatMapDepth=function(e,n,r){return r=r===t?1:ga(r),yr(ks(e,n),r)},zn.flatten=Ki,zn.flattenDeep=function(t){return null!=t&&t.length?yr(t,l):[]},zn.flattenDepth=function(e,n){return null!=e&&e.length?yr(e,n=n===t?1:ga(n)):[]},zn.flip=function(t){return Zo(t,512)},zn.flow=ru,zn.flowRight=ou,zn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},zn.functions=function(t){return null==t?[]:wr(t,Ma(t))},zn.functionsIn=function(t){return null==t?[]:wr(t,Ia(t))},zn.groupBy=Es,zn.initial=function(t){return null!=t&&t.length?oo(t,0,-1):[]},zn.intersection=Gi,zn.intersectionBy=Yi,zn.intersectionWith=Xi,zn.invert=Na,zn.invertBy=Ta,zn.invokeMap=ws,zn.iteratee=su,zn.keyBy=Cs,zn.keys=Ma,zn.keysIn=Ia,zn.map=ks,zn.mapKeys=function(t,e){var n={};return e=ci(e,3),Dr(t,(function(t,r,o){sr(n,e(t,r,o),t)})),n},zn.mapValues=function(t,e){var n={};return e=ci(e,3),Dr(t,(function(t,r,o){sr(n,r,e(t,r,o))})),n},zn.matches=function(t){return zr(lr(t,1))},zn.matchesProperty=function(t,e){return Hr(t,lr(e,1))},zn.memoize=Bs,zn.merge=$a,zn.mergeWith=Ba,zn.method=au,zn.methodOf=uu,zn.mixin=lu,zn.negate=Rs,zn.nthArg=function(t){return t=ga(t),Xr((function(e){return Wr(e,t)}))},zn.omit=Ra,zn.omitBy=function(t,e){return Pa(t,Rs(ci(e)))},zn.once=function(t){return Ns(2,t)},zn.orderBy=function(e,n,r,o){return null==e?[]:(qs(n)||(n=null==n?[]:[n]),qs(r=o?t:r)||(r=null==r?[]:[r]),Ur(e,n,r))},zn.over=pu,zn.overArgs=Ls,zn.overEvery=fu,zn.overSome=du,zn.partial=Ps,zn.partialRight=js,zn.partition=As,zn.pick=La,zn.pickBy=Pa,zn.property=hu,zn.propertyOf=function(e){return function(n){return null==e?t:Cr(e,n)}},zn.pull=Zi,zn.pullAll=ts,zn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Kr(t,e,ci(n,2)):t},zn.pullAllWith=function(e,n,r){return e&&e.length&&n&&n.length?Kr(e,n,t,r):e},zn.pullAt=es,zn.range=mu,zn.rangeRight=gu,zn.rearg=zs,zn.reject=function(t,e){return(qs(t)?xe:vr)(t,Rs(ci(e,3)))},zn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=ci(e,3);++r<i;){var s=t[r];e(s,r,t)&&(n.push(s),o.push(r))}return Jr(t,o),n},zn.rest=function(n,r){if("function"!=typeof n)throw new St(e);return Xr(n,r=r===t?r:ga(r))},zn.reverse=ns,zn.sampleSize=function(e,n,r){return n=(r?Di(e,n,r):n===t)?1:ga(n),(qs(e)?Zn:Zr)(e,n)},zn.set=function(t,e,n){return null==t?t:to(t,e,n)},zn.setWith=function(e,n,r,o){return o="function"==typeof o?o:t,null==e?e:to(e,n,r,o)},zn.shuffle=function(t){return(qs(t)?tr:ro)(t)},zn.slice=function(e,n,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Di(e,n,r)?(n=0,r=o):(n=null==n?0:ga(n),r=r===t?o:ga(r)),oo(e,n,r)):[]},zn.sortBy=xs,zn.sortedUniq=function(t){return t&&t.length?uo(t):[]},zn.sortedUniqBy=function(t,e){return t&&t.length?uo(t,ci(e,2)):[]},zn.split=function(e,n,r){return r&&"number"!=typeof r&&Di(e,n,r)&&(n=r=t),(r=r===t?d:r>>>0)?(e=_a(e))&&("string"==typeof n||null!=n&&!aa(n))&&!(n=co(n))&&rn(e)?wo(pn(e),0,r):e.split(n,r):[]},zn.spread=function(t,n){if("function"!=typeof t)throw new St(e);return n=null==n?0:bn(ga(n),0),Xr((function(e){var r=e[n],o=wo(e,0,n);return r&&Te(o,r),Ee(t,this,o)}))},zn.tail=function(t){var e=null==t?0:t.length;return e?oo(t,1,e):[]},zn.take=function(e,n,r){return e&&e.length?oo(e,0,(n=r||n===t?1:ga(n))<0?0:n):[]},zn.takeRight=function(e,n,r){var o=null==e?0:e.length;return o?oo(e,(n=o-(n=r||n===t?1:ga(n)))<0?0:n,o):[]},zn.takeRightWhile=function(t,e){return t&&t.length?mo(t,ci(e,3),!1,!0):[]},zn.takeWhile=function(t,e){return t&&t.length?mo(t,ci(e,3)):[]},zn.tap=function(t,e){return e(t),t},zn.throttle=function(t,n,r){var o=!0,i=!0;if("function"!=typeof t)throw new St(e);return na(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Ms(t,n,{leading:o,maxWait:n,trailing:i})},zn.thru=ms,zn.toArray=ha,zn.toPairs=ja,zn.toPairsIn=za,zn.toPath=function(t){return qs(t)?Ne(t,Pi):ca(t)?[t]:To(Li(_a(t)))},zn.toPlainObject=ba,zn.transform=function(t,e,n){var r=qs(t),o=r||Ys(t)||pa(t);if(e=ci(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:na(t)&&Zs(i)?Hn(qt(t)):{}}return(o?Ce:Dr)(t,(function(t,r,o){return e(n,t,r,o)})),n},zn.unary=function(t){return Ss(t,1)},zn.union=rs,zn.unionBy=os,zn.unionWith=is,zn.uniq=function(t){return t&&t.length?po(t):[]},zn.uniqBy=function(t,e){return t&&t.length?po(t,ci(e,2)):[]},zn.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?po(e,t,n):[]},zn.unset=function(t,e){return null==t||fo(t,e)},zn.unzip=ss,zn.unzipWith=as,zn.update=function(t,e,n){return null==t?t:ho(t,e,_o(n))},zn.updateWith=function(e,n,r,o){return o="function"==typeof o?o:t,null==e?e:ho(e,n,_o(r),o)},zn.values=Ha,zn.valuesIn=function(t){return null==t?[]:Ge(t,Ia(t))},zn.without=us,zn.words=Za,zn.wrap=function(t,e){return Ps(_o(e),t)},zn.xor=ls,zn.xorBy=cs,zn.xorWith=ps,zn.zip=fs,zn.zipObject=function(t,e){return yo(t||[],e||[],nr)},zn.zipObjectDeep=function(t,e){return yo(t||[],e||[],to)},zn.zipWith=ds,zn.entries=ja,zn.entriesIn=za,zn.extend=Ea,zn.extendWith=wa,lu(zn,zn),zn.add=_u,zn.attempt=tu,zn.camelCase=Va,zn.capitalize=Wa,zn.ceil=Du,zn.clamp=function(e,n,r){return r===t&&(r=n,n=t),r!==t&&(r=(r=ya(r))==r?r:0),n!==t&&(n=(n=ya(n))==n?n:0),ur(ya(e),n,r)},zn.clone=function(t){return lr(t,4)},zn.cloneDeep=function(t){return lr(t,5)},zn.cloneDeepWith=function(e,n){return lr(e,5,n="function"==typeof n?n:t)},zn.cloneWith=function(e,n){return lr(e,4,n="function"==typeof n?n:t)},zn.conformsTo=function(t,e){return null==e||cr(t,e,Ma(e))},zn.deburr=Ua,zn.defaultTo=function(t,e){return null==t||t!=t?e:t},zn.divide=Eu,zn.endsWith=function(e,n,r){e=_a(e),n=co(n);var o=e.length,i=r=r===t?o:ur(ga(r),0,o);return(r-=n.length)>=0&&e.slice(r,i)==n},zn.eq=Hs,zn.escape=function(t){return(t=_a(t))&&J.test(t)?t.replace(q,en):t},zn.escapeRegExp=function(t){return(t=_a(t))&&nt.test(t)?t.replace(et,"\\$&"):t},zn.every=function(e,n,r){var o=qs(e)?Ae:mr;return r&&Di(e,n,r)&&(n=t),o(e,ci(n,3))},zn.find=ys,zn.findIndex=Ui,zn.findKey=function(t,e){return Be(t,ci(e,3),Dr)},zn.findLast=bs,zn.findLastIndex=qi,zn.findLastKey=function(t,e){return Be(t,ci(e,3),Er)},zn.floor=wu,zn.forEach=_s,zn.forEachRight=Ds,zn.forIn=function(t,e){return null==t?t:br(t,ci(e,3),Ia)},zn.forInRight=function(t,e){return null==t?t:_r(t,ci(e,3),Ia)},zn.forOwn=function(t,e){return t&&Dr(t,ci(e,3))},zn.forOwnRight=function(t,e){return t&&Er(t,ci(e,3))},zn.get=Oa,zn.gt=Vs,zn.gte=Ws,zn.has=function(t,e){return null!=t&&vi(t,e,Or)},zn.hasIn=Sa,zn.head=Ji,zn.identity=iu,zn.includes=function(t,e,n,r){t=Js(t)?t:Ha(t),n=n&&!r?ga(n):0;var o=t.length;return n<0&&(n=bn(o+n,0)),la(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&Le(t,e,n)>-1},zn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ga(n);return o<0&&(o=bn(r+o,0)),Le(t,e,o)},zn.inRange=function(e,n,r){return n=ma(n),r===t?(r=n,n=0):r=ma(r),function(t,e,n){return t>=_n(e,n)&&t<bn(e,n)}(e=ya(e),n,r)},zn.invoke=Fa,zn.isArguments=Us,zn.isArray=qs,zn.isArrayBuffer=Ks,zn.isArrayLike=Js,zn.isArrayLikeObject=Gs,zn.isBoolean=function(t){return!0===t||!1===t||ra(t)&&Ar(t)==v},zn.isBuffer=Ys,zn.isDate=Xs,zn.isElement=function(t){return ra(t)&&1===t.nodeType&&!sa(t)},zn.isEmpty=function(t){if(null==t)return!0;if(Js(t)&&(qs(t)||"string"==typeof t||"function"==typeof t.splice||Ys(t)||pa(t)||Us(t)))return!t.length;var e=gi(t);if(e==E||e==x)return!t.size;if(ki(t))return!Rr(t).length;for(var n in t)if($t.call(t,n))return!1;return!0},zn.isEqual=function(t,e){return Mr(t,e)},zn.isEqualWith=function(e,n,r){var o=(r="function"==typeof r?r:t)?r(e,n):t;return o===t?Mr(e,n,t,r):!!o},zn.isError=Qs,zn.isFinite=function(t){return"number"==typeof t&&gn(t)},zn.isFunction=Zs,zn.isInteger=ta,zn.isLength=ea,zn.isMap=oa,zn.isMatch=function(t,e){return t===e||Ir(t,e,fi(e))},zn.isMatchWith=function(e,n,r){return r="function"==typeof r?r:t,Ir(e,n,fi(n),r)},zn.isNaN=function(t){return ia(t)&&t!=+t},zn.isNative=function(t){if(Ci(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return $r(t)},zn.isNil=function(t){return null==t},zn.isNull=function(t){return null===t},zn.isNumber=ia,zn.isObject=na,zn.isObjectLike=ra,zn.isPlainObject=sa,zn.isRegExp=aa,zn.isSafeInteger=function(t){return ta(t)&&t>=-9007199254740991&&t<=c},zn.isSet=ua,zn.isString=la,zn.isSymbol=ca,zn.isTypedArray=pa,zn.isUndefined=function(e){return e===t},zn.isWeakMap=function(t){return ra(t)&&gi(t)==N},zn.isWeakSet=function(t){return ra(t)&&"[object WeakSet]"==Ar(t)},zn.join=function(t,e){return null==t?"":vn.call(t,e)},zn.kebabCase=qa,zn.last=Qi,zn.lastIndexOf=function(e,n,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==t&&(i=(i=ga(r))<0?bn(o+i,0):_n(i,o-1)),n==n?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(e,n,i):Re(e,je,i,!0)},zn.lowerCase=Ka,zn.lowerFirst=Ja,zn.lt=fa,zn.lte=da,zn.max=function(e){return e&&e.length?gr(e,iu,xr):t},zn.maxBy=function(e,n){return e&&e.length?gr(e,ci(n,2),xr):t},zn.mean=function(t){return ze(t,iu)},zn.meanBy=function(t,e){return ze(t,ci(e,2))},zn.min=function(e){return e&&e.length?gr(e,iu,Pr):t},zn.minBy=function(e,n){return e&&e.length?gr(e,ci(n,2),Pr):t},zn.stubArray=vu,zn.stubFalse=yu,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Cu,zn.nth=function(e,n){return e&&e.length?Wr(e,ga(n)):t},zn.noConflict=function(){return ce._===this&&(ce._=jt),this},zn.noop=cu,zn.now=Os,zn.pad=function(t,e,n){t=_a(t);var r=(e=ga(e))?cn(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return qo($e(o),n)+t+qo(me(o),n)},zn.padEnd=function(t,e,n){t=_a(t);var r=(e=ga(e))?cn(t):0;return e&&r<e?t+qo(e-r,n):t},zn.padStart=function(t,e,n){t=_a(t);var r=(e=ga(e))?cn(t):0;return e&&r<e?qo(e-r,n)+t:t},zn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),En(_a(t).replace(rt,""),e||0)},zn.random=function(e,n,r){if(r&&"boolean"!=typeof r&&Di(e,n,r)&&(n=r=t),r===t&&("boolean"==typeof n?(r=n,n=t):"boolean"==typeof e&&(r=e,e=t)),e===t&&n===t?(e=0,n=1):(e=ma(e),n===t?(n=e,e=0):n=ma(n)),e>n){var o=e;e=n,n=o}if(r||e%1||n%1){var i=wn();return _n(e+i*(n-e+se("1e-"+((i+"").length-1))),n)}return Gr(e,n)},zn.reduce=function(t,e,n){var r=qs(t)?Fe:We,o=arguments.length<3;return r(t,ci(e,4),n,o,dr)},zn.reduceRight=function(t,e,n){var r=qs(t)?Me:We,o=arguments.length<3;return r(t,ci(e,4),n,o,hr)},zn.repeat=function(e,n,r){return n=(r?Di(e,n,r):n===t)?1:ga(n),Yr(_a(e),n)},zn.replace=function(){var t=arguments,e=_a(t[0]);return t.length<3?e:e.replace(t[1],t[2])},zn.result=function(e,n,r){var o=-1,i=(n=Do(n,e)).length;for(i||(i=1,e=t);++o<i;){var s=null==e?t:e[Pi(n[o])];s===t&&(o=i,s=r),e=Zs(s)?s.call(e):s}return e},zn.round=ku,zn.runInContext=f,zn.sample=function(t){return(qs(t)?Qn:Qr)(t)},zn.size=function(t){if(null==t)return 0;if(Js(t))return la(t)?cn(t):t.length;var e=gi(t);return e==E||e==x?t.size:Rr(t).length},zn.snakeCase=Ga,zn.some=function(e,n,r){var o=qs(e)?Ie:io;return r&&Di(e,n,r)&&(n=t),o(e,ci(n,3))},zn.sortedIndex=function(t,e){return so(t,e)},zn.sortedIndexBy=function(t,e,n){return ao(t,e,ci(n,2))},zn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=so(t,e);if(r<n&&Hs(t[r],e))return r}return-1},zn.sortedLastIndex=function(t,e){return so(t,e,!0)},zn.sortedLastIndexBy=function(t,e,n){return ao(t,e,ci(n,2),!0)},zn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=so(t,e,!0)-1;if(Hs(t[n],e))return n}return-1},zn.startCase=Ya,zn.startsWith=function(t,e,n){return t=_a(t),n=null==n?0:ur(ga(n),0,t.length),e=co(e),t.slice(n,n+e.length)==e},zn.subtract=Au,zn.sum=function(t){return t&&t.length?Ue(t,iu):0},zn.sumBy=function(t,e){return t&&t.length?Ue(t,ci(e,2)):0},zn.template=function(e,n,r){var o=zn.templateSettings;r&&Di(e,n,r)&&(n=t),e=_a(e),n=wa({},n,o,ti);var i,s,a=wa({},n.imports,o.imports,ti),u=Ma(a),l=Ge(a,u),c=0,p=n.interpolate||bt,f="__p += '",d=xt((n.escape||bt).source+"|"+p.source+"|"+(p===X?pt:bt).source+"|"+(n.evaluate||bt).source+"|$","g"),h="//# sourceURL="+($t.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ne+"]")+"\n";e.replace(d,(function(t,n,r,o,a,u){return r||(r=o),f+=e.slice(c,u).replace(_t,nn),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),a&&(s=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),f+="';\n";var m=$t.call(n,"variable")&&n.variable;if(m){if(lt.test(m))throw new wt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(H,""):f).replace(V,"$1").replace(W,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=tu((function(){return Ct(u,h+"return "+f).apply(t,l)}));if(g.source=f,Qs(g))throw g;return g},zn.times=function(t,e){if((t=ga(t))<1||t>c)return[];var n=d,r=_n(t,d);e=ci(e),t-=d;for(var o=qe(r,e);++n<t;)e(n);return o},zn.toFinite=ma,zn.toInteger=ga,zn.toLength=va,zn.toLower=function(t){return _a(t).toLowerCase()},zn.toNumber=ya,zn.toSafeInteger=function(t){return t?ur(ga(t),-9007199254740991,c):0===t?t:0},zn.toString=_a,zn.toUpper=function(t){return _a(t).toUpperCase()},zn.trim=function(e,n,r){if((e=_a(e))&&(r||n===t))return Ke(e);if(!e||!(n=co(n)))return e;var o=pn(e),i=pn(n);return wo(o,Xe(o,i),Qe(o,i)+1).join("")},zn.trimEnd=function(e,n,r){if((e=_a(e))&&(r||n===t))return e.slice(0,fn(e)+1);if(!e||!(n=co(n)))return e;var o=pn(e);return wo(o,0,Qe(o,pn(n))+1).join("")},zn.trimStart=function(e,n,r){if((e=_a(e))&&(r||n===t))return e.replace(rt,"");if(!e||!(n=co(n)))return e;var o=pn(e);return wo(o,Xe(o,pn(n))).join("")},zn.truncate=function(e,n){var r=30,o="...";if(na(n)){var i="separator"in n?n.separator:i;r="length"in n?ga(n.length):r,o="omission"in n?co(n.omission):o}var s=(e=_a(e)).length;if(rn(e)){var a=pn(e);s=a.length}if(r>=s)return e;var u=r-cn(o);if(u<1)return o;var l=a?wo(a,0,u).join(""):e.slice(0,u);if(i===t)return l+o;if(a&&(u+=l.length-u),aa(i)){if(e.slice(u).search(i)){var c,p=l;for(i.global||(i=xt(i.source,_a(ft.exec(i))+"g")),i.lastIndex=0;c=i.exec(p);)var f=c.index;l=l.slice(0,f===t?u:f)}}else if(e.indexOf(co(i),u)!=u){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+o},zn.unescape=function(t){return(t=_a(t))&&K.test(t)?t.replace(U,dn):t},zn.uniqueId=function(t){var e=++Bt;return _a(t)+e},zn.upperCase=Xa,zn.upperFirst=Qa,zn.each=_s,zn.eachRight=Ds,zn.first=Ji,lu(zn,(bu={},Dr(zn,(function(t,e){$t.call(zn.prototype,e)||(bu[e]=t)})),bu),{chain:!1}),zn.VERSION="4.17.21",Ce(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){zn[t].placeholder=zn})),Ce(["drop","take"],(function(e,n){Un.prototype[e]=function(r){r=r===t?1:bn(ga(r),0);var o=this.__filtered__&&!n?new Un(this):this.clone();return o.__filtered__?o.__takeCount__=_n(r,o.__takeCount__):o.__views__.push({size:_n(r,d),type:e+(o.__dir__<0?"Right":"")}),o},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ce(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Un.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ci(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ce(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Un.prototype[t]=function(){return this[n](1).value()[0]}})),Ce(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Un.prototype[t]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(iu)},Un.prototype.find=function(t){return this.filter(t).head()},Un.prototype.findLast=function(t){return this.reverse().find(t)},Un.prototype.invokeMap=Xr((function(t,e){return"function"==typeof t?new Un(this):this.map((function(n){return Tr(n,t,e)}))})),Un.prototype.reject=function(t){return this.filter(Rs(ci(t)))},Un.prototype.slice=function(e,n){e=ga(e);var r=this;return r.__filtered__&&(e>0||n<0)?new Un(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==t&&(r=(n=ga(n))<0?r.dropRight(-n):r.take(n-e)),r)},Un.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Un.prototype.toArray=function(){return this.take(d)},Dr(Un.prototype,(function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=zn[o?"take"+("last"==n?"Right":""):n],s=o||/^find/.test(n);i&&(zn.prototype[n]=function(){var n=this.__wrapped__,a=o?[1]:arguments,u=n instanceof Un,l=a[0],c=u||qs(n),p=function(t){var e=i.apply(zn,Te([t],a));return o&&f?e[0]:e};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var f=this.__chain__,d=!!this.__actions__.length,h=s&&!f,m=u&&!d;if(!s&&c){n=m?n:new Un(this);var g=e.apply(n,a);return g.__actions__.push({func:ms,args:[p],thisArg:t}),new Wn(g,f)}return h&&m?e.apply(this,a):(g=this.thru(p),h?o?g.value()[0]:g.value():g)})})),Ce(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Nt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);zn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(qs(o)?o:[],t)}return this[n]((function(n){return e.apply(qs(n)?n:[],t)}))}})),Dr(Un.prototype,(function(t,e){var n=zn[e];if(n){var r=n.name+"";$t.call(Fn,r)||(Fn[r]=[]),Fn[r].push({name:e,func:n})}})),Fn[Ho(t,2).name]=[{name:"wrapper",func:t}],Un.prototype.clone=function(){var t=new Un(this.__wrapped__);return t.__actions__=To(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=To(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=To(this.__views__),t},Un.prototype.reverse=function(){if(this.__filtered__){var t=new Un(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Un.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=qs(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=_n(e,t+s);break;case"takeRight":t=bn(t,e-s)}}return{start:t,end:e}}(0,o,this.__views__),s=i.start,a=i.end,u=a-s,l=r?a:s-1,c=this.__iteratees__,p=c.length,f=0,d=_n(u,this.__takeCount__);if(!n||!r&&o==u&&d==u)return go(t,this.__actions__);var h=[];t:for(;u--&&f<d;){for(var m=-1,g=t[l+=e];++m<p;){var v=c[m],y=v.iteratee,b=v.type,_=y(g);if(2==b)g=_;else if(!_){if(1==b)continue t;break t}}h[f++]=g}return h},zn.prototype.at=gs,zn.prototype.chain=function(){return hs(this)},zn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===t&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?t:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var n,r=this;r instanceof Vn;){var o=zi(r);o.__index__=0,o.__values__=t,n?i.__wrapped__=o:n=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,n},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var n=e;return this.__actions__.length&&(n=new Un(this)),(n=n.reverse()).__actions__.push({func:ms,args:[ns],thisArg:t}),new Wn(n,this.__chain__)}return this.thru(ns)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,ie&&(zn.prototype[ie]=function(){return this}),zn}();fe?((fe.exports=hn)._=hn,pe._=hn):ce._=hn}.call(f);class bd extends ou{static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new bd(e.pos,t.markFromJSON(e.mark))}constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){const e=t.nodeAt(this.pos);if(!e)return iu.fail("No node at mark step's position");const n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks)),r=new ta(Js.from(n),0,e.isLeaf?0:1);return iu.fromReplace(t,this.pos,this.pos+1,r)}invert(t){const e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new _d(this.pos,this.mark):this}map(t){const e=t.mapResult(this.pos,1);return e.deletedAfter?null:new bd(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}}ou.jsonID("removeNodeMark",bd);class _d extends ou{static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new _d(e.pos,t.markFromJSON(e.mark))}constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){const e=t.nodeAt(this.pos);if(!e)return iu.fail("No node at mark step's position");const n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks)),r=new ta(Js.from(n),0,e.isLeaf?0:1);return iu.fromReplace(t,this.pos,this.pos+1,r)}invert(t){const e=t.nodeAt(this.pos);if(e){const t=this.mark.addToSet(e.marks);if(t.length===e.marks.length){for(const n of e.marks)if(!n.isInSet(t))return new _d(this.pos,n);return new _d(this.pos,this.mark)}}return new bd(this.pos,this.mark)}map(t){const e=t.mapResult(this.pos,1);return e.deletedAfter?null:new _d(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}}ou.jsonID("addNodeMark",_d);class Dd extends ou{static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Dd(e.pos,e.attr,e.value)}constructor(t,e,n){super(),this.pos=t,this.attr=e,this.value=n}apply(t){const e=t.nodeAt(this.pos);if(!e)return iu.fail("No node at attribute step's position");const n=Object.create(null);for(let t in e.attrs)n[t]=e.attrs[t];n[this.attr]=this.value;const r=e.type.create(n,null,e.marks),o=new ta(Js.from(r),0,e.isLeaf?0:1);return iu.fromReplace(t,this.pos,this.pos+1,o)}getMap(){return eu.empty}invert(t){return new Dd(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Dd(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}}ou.jsonID("attr",Dd);const Ed=Ip.create({name:"node_processor",addCommands:()=>({setBlockAttributes:Nf((({commands:t,state:e},n,r,o={})=>{const i=ze(t.getBlockAttributes(n))??{},{doc:s,tr:a}=e,{from:u,to:l}=a.selection;s.nodesBetween(u,l,((t,e)=>{id.blocks.includes(t.type.name)&&a.step(new Dd(e,n,{...o,...i,...r}))}))})),getBlockAttributes:Nf((({editor:t},e,n)=>We((()=>{let r=Object.assign({},n||{});for(const n of id.blocks)Object.assign(r,t.getAttributes(n)?.[e]||{});return Object.keys(r).length?r:null})))),removeBlockAttributes:Nf((({commands:t},e)=>{for(const n of id.blocks)t.resetAttributes(n,e)})),applyMark:Nf((({state:t,commands:e},n,r,o={})=>{const{tr:i,doc:s,schema:a}=t,{$from:u,$to:l}=i.selection,c=Pp(ad.LINK,a),p=Pp(n,a);if(!(p.spec.group||"").includes(ud.SETTINGS))return e.setMark(n,r);if(u.pos===l.pos)return;s.nodesBetween(u.pos,l.pos,((t,s)=>{if(t.type.name===id.LIST)return;const a=function(t,e){const n="string"==typeof e?e:e.name;return t.find((t=>t.type.name===n))}(t.marks,n),f=p.create({...a?.attrs||{},...r}),d=fd(u,l,t,s),h=!c.isInSet(t.marks)&&function(t,e,n,r=hd){const o=t.resolve(e).path.reverse();for(const t of o)if("number"!=typeof t)for(const e of t.marks)if(r(e,n))return!0;return!1}(i.doc,s,f,o.isAppliedToParent);if(h)return(t=>{if(!o.onAppliedToParent||!1===o.onAppliedToParent(t)){const{tr:n,node:r,position:o,mark:i}=t;e._removeNodeMark({tr:n,node:r,position:o,mark:i.type})}})({tr:i,node:t,position:s,mark:f});t.isText?i.addMark(d.from,d.to,f):function(t,e,n,r){const o=dd(t,r),i=e.from-o<=r,s=e.to+o>=n.nodeSize+r;return i&&s}(i.doc,i.selection,t,s)&&i.step(new _d(s,f))}))})),getMarks:Nf((({editor:t},e)=>{const n=Ve(t,"state");return We((()=>{const{selection:t,doc:r}=ze(n),{from:o,to:i}=ze(t),s=[];return r.nodesBetween(o,i,(t=>{for(const n of t.marks)n.type.name===e&&s.unshift(n.attrs)})),s}))})),getMark:Nf((({commands:t},e)=>{const n=t.getMarks(e);return We((()=>ze(n)[0]??null))})),hasMark:Nf((({commands:t},e)=>{const n=t.getMark(e);return We((()=>!!ze(n)))})),getCommonSettingMark:Nf((({commands:t},e,n)=>{const r=t.getMark(e);return We((()=>ze(r)?.value??ze(n)))})),getDeviceSettingMark:Nf((({commands:t},e,n)=>{const r=t.getMarks(e),o=t.getDevice();return We((()=>{for(const t of ze(r)){const e=t[ze(o)];if(e)return e}return ze(n)}))})),removeAllMarks:Nf((({state:t,commands:e})=>{const{tr:n,doc:r}=t,{from:o,to:i}=n.selection;r.nodesBetween(o,i,((t,r)=>{for(const o of t.marks)e._removeNodeMark({tr:n,node:t,position:r,mark:o})}))})),removeMarks:Nf((({state:t,commands:e},n)=>{const{tr:r,doc:o}=t,{from:i,to:s}=r.selection;o.nodesBetween(i,s,((t,o)=>{const i=t.marks.filter((t=>n.includes(t.type.name)));for(const n of i)e._removeNodeMark({tr:r,node:t,position:o,mark:n})}))})),_removeNodeMark:Nf(((t,{tr:e,node:n,position:r,mark:o})=>n.isText?e.removeMark(r,r+n.nodeSize,o):e.step(new bd(r,o))))})}),wd=Ip.create({name:"text_processor",addCommands:()=>({getSelectedText:Nf((({state:t})=>{const{from:e,to:n}=t.selection;return t.doc.textBetween(e,n," ")})),transformText:Nf((({state:t},e)=>{const{$from:n,$to:r}=t.tr.selection;n.pos!==r.pos&&t.doc.nodesBetween(n.pos,r.pos,((o,i)=>{if(!o.isText)return;const s=fd(n,r,o,i),a=Math.max(0,n.pos-i),u=Math.max(0,r.pos-i),l=e({text:o.textContent.substring(a,u)}),c=t.schema.text(l,o.marks);t.tr.replaceWith(s.from,s.to,c)}))}))})}),Cd=Ip.create({name:"selection_processor",addStorage:()=>({selection:null}),addCommands(){return{storeSelection:Nf((({state:t})=>{this.storage.selection=t.selection})),restoreSelection:Nf((({commands:t})=>{this.storage.selection&&t.setTextSelection(this.storage.selection)})),expandSelection:Nf((({tr:t,commands:e},n)=>{let r=t.selection.from,o=t.selection.to;t.doc.nodesBetween(r,o,((e,i,s)=>{if(n({node:e,parent:s})){const n=e.isText?0:dd(t.doc,i);r=Math.min(r,i+n),o=Math.max(o,i+e.nodeSize-n)}})),e.setTextSelection({from:r,to:o})})),expandSelectionToBlock:Nf((({commands:t})=>{t.expandSelection((({parent:t})=>t.type.name===id.DOCUMENT))}))}}}),kd=af.create({name:"doc",topNode:!0,content:"block+"}).extend({marks:ud.SETTINGS}),Ad=af.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",gp(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),xd=Ad.extend({marks:ud.ALL,addOptions:()=>({HTMLAttributes:{class:"zw-style"}})}),Od=af.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map((t=>({tag:`h${t}`,attrs:{level:t}})))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,gp(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.setNode(this.name,t),toggleHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return this.options.levels.reduce(((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})})),{})},addInputRules(){return this.options.levels.map((t=>function(t){return new kp({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),i=yp(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,i)}})}({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}})))}}),Sd=Od.extend({marks:ud.ALL,addOptions:()=>({levels:[1,2,3,4],HTMLAttributes:{class:"zw-style"}})});class Nd{static create(t,e){const n=new this(t,e||{});return new Ku({key:new Yu(this.name),props:n.buildProps()})}constructor(t,e){this.options=e,this.editor=t}buildProps(){return{}}}class Td extends Nd{buildProps(){return{transformPastedHTML:this._transformPastedHTML.bind(this),handlePaste:this._handlePaste.bind(this)}}_transformPastedHTML(t){if(t.includes("data-pm-slice")&&t.includes("zw-style"))return t;const e=Kh.build(t);return e.normalizeHTML(),this._removeDeprecatedStyles(e),e.normalizedHTML}_removeDeprecatedStyles(t){const e=t.dom.querySelectorAll('[style*="margin"]');for(const t of Array.from(e))t.style.removeProperty("margin"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-right"),t.style.removeProperty("margin-bottom"),t.style.removeProperty("margin-left")}_handlePaste(t,e,n){const r=this._insertPastedContent(t,n).scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste");return t.dispatch(r),!0}_insertPastedContent({state:t,input:e},n){return this._isFullBlockSelected(t)?t.tr.replaceSelectionWith(n.content,e.shiftKey):t.tr.replaceSelection(n)}_isFullBlockSelected(t){const e=this._expandSelectionToBlocks(t),n=this._isMatchPosition(e.from,t.selection.from),r=this._isMatchPosition(e.to,t.selection.to);return n&&r}_expandSelectionToBlocks({selection:t,doc:e}){let n=t.from,r=t.to;return e.nodesBetween(n,r,((t,e,o)=>{o.type.name===id.DOCUMENT&&(n=Math.min(n,e+1),r=Math.max(r,e+t.nodeSize-1))})),{from:n,to:r}}_isMatchPosition(t,e){return Math.abs(t-e)<5}}class Fd extends Nd{buildProps(){return{decorations:this.#t.bind(this)}}#t({doc:t}){const e=[];return this.editor.isEditable?t.childCount>1?void 0:(t.descendants(((t,n)=>{if(!t.childCount){const r=Ac.node(n,n+t.nodeSize,{class:"zw-wysiwyg__placeholder","data-placeholder":"Type your text here..."});e.push(r)}return!1})),Sc.create(t,e)):null}}const Md=Ip.create({name:"prose_mirror_plugins",addProseMirrorPlugins(){return[Td.create(this.editor),Fd.create(this.editor)]}}),Id=sf.create({name:ad.FONT_FAMILY,group:ud.SETTINGS,addOptions:()=>({fonts:[]}),addAttributes:()=>({value:{required:!0}}),addCommands(){return{applyFontFamily:Nf((({commands:t},e)=>{t.applyMark(this.name,{value:e});const n=t.findFontByName(e);let r=ze(t.getFontWeight());n.isWeightSupported(r)||(r=n.findClosestWeight(r),t.applyFontWeight(r)),n.isItalicSupported(r)||t.removeItalic()})),getFont:Nf((({commands:t})=>{const e=ze(this.options.defaultPreset),n=t.findFontByName(e.common.font_family),r=t.getFontFamily();return We((()=>t.findFontByName(ze(r))||n))})),findFontByName:Nf(((t,e)=>this.options.fonts.find((t=>t.name===e)))),getFontFamily:Nf((({commands:t})=>t.getCommonSettingMark(this.name,t.getDefaultFontFamily()))),getDefaultFontFamily:Nf((({commands:t})=>{const e=t.getPreset();return We((()=>ze(e).common.font_family))}))}},parseHTML(){const t=t=>({value:t.replace(/["']/g,"")});return[{style:"--zw-font-family",getAttrs:t},{style:"font-family",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Ff({font_family:t.value?`"${t.value}"`:null})}),$d=Ip.create({name:ad.STYLE_PRESET,addGlobalAttributes(){return[{types:[id.PARAGRAPH,id.HEADING],attributes:{preset:{isRequired:!1,default:{id:this.options.defaultId},parseHTML:t=>{const e=ze(this.options.presets);if("LI"===t.parentElement.tagName)return null;for(const{id:n,node:r,fallbackClass:o}of e){if(o&&t.classList.contains(o))return{id:n};const e=this.options.styleRenderer.makePresetCssClass({id:n});if(t.matches(e))return{id:n};if(t.tagName===`H${r?.level}`)return{id:n}}return"P"===t.tagName?{id:this.options.defaultId}:null},renderHTML:t=>t.preset?{class:this.options.styleRenderer.makePresetHtmlClass(t.preset)}:null}}}]},addCommands(){function t(t,e){return t.find((t=>e===t.id))}function e(t,e){const n={};for(const r of Object.keys(t)){const o=t[r],i=e[r],s=!i||"inherit"===i.toLowerCase();n[r]=s?o:i}return n}return{getPresetList:Nf((()=>We((()=>this.options.presets.filter((t=>!t.hidden)))))),getPreset:Nf((({commands:n})=>{const r=n.getBlockAttributes("preset",{id:this.options.defaultId}),o=n.getPresetList(),i=n.isLink(),s=n.getLinkPreset();return We((()=>{const n=t(ze(o),ze(r).id);if(!ze(i))return n;const a=ze(s);return{id:n.id,common:e(n.common,a.common),mobile:e(n.mobile,a.mobile),tablet:e(n.tablet,a.tablet),desktop:e(n.desktop,a.desktop)}}))})),applyPreset:Nf((({commands:e,chain:n},r)=>{const o=t(ze(e.getPresetList()),r),i=o.node?.type??id.PARAGRAPH,s={preset:{id:r}};o.node&&(s.level=o.node.level);for(const t of ad.attributes)s[t]=ze(e.getBlockAttributes(t));n().removeList().setNode(i,s).run()})),applyDefaultPreset:Nf((({commands:t})=>{t.applyPreset(this.options.defaultId)})),removePreset:Nf((({commands:t})=>{t.setNode(id.PARAGRAPH,{preset:null})})),getPresetCustomization:Nf((({editor:t,commands:e})=>{const n=Ve(t,"state");return We((()=>{const{selection:t,doc:r}=ze(n),{from:o,to:i}=t;return e._getSettingCustomization(r,o,i)}))})),isSettingCustomized:Nf((({commands:t},e)=>{const n=t.getPresetCustomization(),r=ad.attributes.includes(e)?"attributes":"marks";return We((()=>ze(n)[r]?.includes(e)??!1))})),getContentCustomization:Nf((({editor:t,commands:e})=>{const n=Ve(t,"state");return We((()=>{const{doc:t}=ze(n);return e._getSettingCustomization(t,0,t.content.size)}))})),_getSettingCustomization:Nf(((t,e,n,r)=>{const o=new Set,i=new Set;return e.nodesBetween(n,r,(t=>{for(const[e,n]of Object.entries(t.attrs)){ad.attributes.includes(e)&&n&&i.add(e)}for(const{type:e}of t.marks)ad.marks.includes(e.name)&&o.add(e.name)})),{attributes:Array.from(i),marks:Array.from(o)}})),removePresetCustomization:Nf((({chain:t})=>{t().storeSelection().expandSelectionToBlock().removeMarks(ad.marks).resetAttributes(id.PARAGRAPH,ad.attributes).resetAttributes(id.HEADING,ad.attributes).restoreSelection().run()})),removeFormat:Nf((({chain:t})=>{t().storeSelection().expandSelectionToBlock().removeAllMarks().applyDefaultPreset().restoreSelection().run()}))}},onCreate(){this.options.styleRenderer.inject(Jh.head,this.options.presets)}}),Bd=sf.create({name:ad.FONT_WEIGHT,group:ud.SETTINGS,addAttributes:()=>({value:{required:!0}}),addCommands(){return{applyFontWeight:Nf((({commands:t},e)=>{t.applyMark(this.name,{value:e});ze(t.getFont()).isItalicSupported(e)||t.removeItalic()})),toggleBold:Nf((({commands:t})=>{const e=ze(t.getFontWeight()),n=ze(t.getFont()),r=Number(e)>=600?"400":"700",o=n.findClosestWeight(r);t.applyFontWeight(o)})),getFontWeight:Nf((({commands:t})=>{const e=t.getCommonSettingMark(this.name,t.getDefaultFontWeight()),n=t.getFont();return We((()=>{const t=ze(e),r=ze(n);return r.isWeightSupported(t)?t:r.findClosestWeight(t)}))})),getDefaultFontWeight:Nf((({commands:t})=>{const e=t.getPreset();return We((()=>ze(e).common.font_weight))}))}},addKeyboardShortcuts:()=>({"Mod-b":Mf("toggleBold"),"Mod-B":Mf("toggleBold")}),parseHTML(){const t=t=>"bold"===t?{value:"700"}:!!Number(t)&&{value:t};return[{style:"--zw-font-weight",getAttrs:t},{style:"font-weight",getAttrs:t},{tag:"b",attrs:{value:"700"}},{tag:"strong",attrs:{value:"700"}}]},renderHTML:({HTMLAttributes:t})=>Ff({font_weight:t.value})}),Rd=sf.create({name:ad.FONT_SIZE,group:ud.SETTINGS,addOptions:()=>({minSize:1,maxSize:100}),addAttributes:()=>({mobile:{default:null},tablet:{default:null},desktop:{default:null}}),addCommands(){return{getFontSize:Nf((({commands:t})=>t.getDeviceSettingMark(this.name,t.getDefaultFontSize()))),getDefaultFontSize:Nf((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return We((()=>ze(n)[ze(e)].font_size.replace("px","")))})),applyFontSize:Nf((({commands:t},e)=>{const n=ze(t.getDevice());t.applyMark(this.name,{[n]:e},{isAppliedToParent:(t,e)=>t.type.name===e.type.name&&t.attrs[n]===e.attrs[n],onAppliedToParent:({tr:t,node:e,position:r,mark:o})=>{const i={...o.attrs,[n]:null},s=!Object.values(i).some((t=>!!t));if(s)return!1;const a=o.type.create(i);e.isText?t.addMark(r,r+e.nodeSize,a):t.step(new _d(r,a))}})})),increaseFontSize:Nf((({commands:t})=>{const e=Number(ze(t.getFontSize())),n=Math.min(e+1,this.options.maxSize);t.applyFontSize(String(n))})),decreaseFontSize:Nf((({commands:t})=>{const e=Number(ze(t.getFontSize())),n=Math.max(e-1,this.options.minSize);t.applyFontSize(String(n))}))}},addKeyboardShortcuts:()=>({"Mod-Shift-=":Mf("increaseFontSize"),"Mod-Shift--":Mf("decreaseFontSize")}),parseHTML(){const t=t=>{if(!t)return null;const e=td(t,ze(this.options.wrapperRef));return String(e)};return[{tag:'[style*="--zw-font-size"]',getAttrs:({style:e})=>({mobile:t(e.getPropertyValue("--zw-font-size-mobile")),tablet:t(e.getPropertyValue("--zw-font-size-tablet")),desktop:t(e.getPropertyValue("--zw-font-size-desktop"))})},{style:"font-size",getAttrs:e=>{const n=t(e);return{desktop:n,tablet:n,mobile:null}}}]},renderHTML({HTMLAttributes:t}){const e=t=>t?`${t}px`:null;return Ff({font_size_mobile:e(t.mobile),font_size_tablet:e(t.tablet),font_size_desktop:e(t.desktop)})}}),Ld=sf.create({name:ad.FONT_COLOR,group:ud.SETTINGS,addAttributes:()=>({value:{required:!0}}),addCommands(){return{getFontColor:Nf((({commands:t})=>t.getCommonSettingMark(this.name,t.getDefaultFontColor()))),getDefaultFontColor:Nf((({commands:t})=>{const e=t.getPreset();return We((()=>ze(e).common.color))})),applyFontColor:Nf((({commands:t},e)=>{t.applyMark(this.name,{value:e})}))}},parseHTML(){const t=t=>({value:Zf(t)});return[{style:"--zw-font-color",getAttrs:t},{style:"color",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Ff({font_color:t.value})}),Pd=sf.create({name:ad.BACKGROUND_COLOR,addAttributes:()=>({value:{required:!0}}),addCommands(){return{getBackgroundColor:Nf((({commands:t})=>t.getCommonSettingMark(this.name,"rgba(255, 255, 255, 0%)"))),applyBackgroundColor:Nf((({commands:t},e)=>{t.applyMark(this.name,{value:e})}))}},parseHTML(){const t=t=>({value:Zf(t)});return[{style:"--zw-background-color",getAttrs:t},{style:"background-color",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Ff({background_color:t.value})}),jd=Ip.create({name:"device_manager",addCommands(){return{getDevice:Nf((()=>Ve(this.options,"device")))}}}),zd=sf.create({name:ad.FONT_STYLE,group:ud.SETTINGS,addAttributes:()=>({italic:{required:!0}}),addCommands(){return{isItalic:Nf((({commands:t})=>{const e=t.getMark(this.name),n=t.getDefaultFontStyle();return We((()=>ze(e)?.italic??ze(n).italic))})),isItalicAvailable:Nf((({commands:t})=>{const e=t.getFont(),n=t.getFontWeight();return We((()=>{const t=ze(e),r=ze(n);return t.isItalicSupported(r)&&!t.isWeightItalicOnly(r)}))})),getDefaultFontStyle:Nf((({commands:t})=>{const e=t.getPreset();return We((()=>({italic:"italic"===ze(e).common.font_style})))})),toggleItalic:Nf((({commands:t})=>{ze(t.isItalicAvailable())&&(ze(t.isItalic())?t.removeItalic():t.applyItalic())})),applyItalic:Nf((({commands:t})=>{t.applyMark(this.name,{italic:!0})})),removeItalic:Nf((({commands:t})=>{t.applyMark(this.name,{italic:!1})}))}},addKeyboardShortcuts:()=>({"Mod-i":Mf("toggleItalic"),"Mod-I":Mf("toggleItalic")}),parseHTML(){const t=t=>({italic:t.includes("italic")});return[{tag:"i",attrs:{italic:!0}},{style:"--zw-font-style",getAttrs:t},{style:"font-style",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Ff({font_style:t.italic?"italic":"normal"})}),Hd=sf.create({name:ad.TEXT_DECORATION,priority:1e3,addAttributes:()=>({underline:{default:!1},strike_through:{default:!1}}),addCommands(){return{isUnderline:Nf((({commands:t})=>{const e=t.getTextDecoration();return We((()=>ze(e).underline))})),isStrikeThrough:Nf((({commands:t})=>{const e=t.getTextDecoration();return We((()=>ze(e).strike_through))})),getTextDecoration:Nf((({commands:t})=>{const e=t.getMark(this.name),n=t.getDefaultTextDecoration();return We((()=>{const t=ze(e)??{},r=ze(n);return{underline:t.underline||r.underline,strike_through:t.strike_through||r.strike_through}}))})),isUnderlineCustomized:Nf((({commands:t})=>{const e=t.isUnderline(),n=t.getDefaultTextDecoration();return We((()=>ze(e)!==ze(n).underline))})),getDefaultTextDecoration:Nf((({commands:t})=>{const e=t.getPreset();return We((()=>{const{text_decoration:t}=ze(e).common;return{underline:t.includes("underline"),strike_through:t.includes("line-through")}}))})),toggleUnderline:Nf((({commands:t})=>{t.toggleTextDecoration("underline")})),toggleStrikeThrough:Nf((({commands:t})=>{t.toggleTextDecoration("strike_through")})),toggleTextDecoration:Nf((({commands:t},e,n=null)=>{const r=ze(t.getTextDecoration()),o=n??!r[e];t.applyMark(this.name,{[e]:o})})),applyTextDecoration:Nf((({commands:t},e)=>{t.toggleTextDecoration(e,!0)})),removeTextDecoration:Nf((({commands:t},e)=>{t.toggleTextDecoration(e,!1)}))}},addKeyboardShortcuts:()=>({"Mod-u":Mf("toggleUnderline"),"Mod-U":Mf("toggleUnderline")}),parseHTML(){const t=t=>{const e=t.includes("underline"),n=t.includes("line-through");return!(!e&&!n)&&{underline:e,strike_through:n}};return[{style:"--zw-text-decoration",getAttrs:t},{style:"text-decoration-line",getAttrs:t},{style:"text-decoration",getAttrs:t},{tag:"s",attrs:{underline:!1,strike_through:!0}},{tag:"u",attrs:{underline:!0,strike_through:!1}}]},renderHTML({HTMLAttributes:t}){const e=[];return t.underline&&e.push("underline"),t.strike_through&&e.push("line-through"),e.length||e.push("none"),Ff({text_decoration:e.join(" ")})}}),Vd=Ip.create({name:"case_style",addCommands:()=>({applyCaseStyle:Nf((({commands:t},e)=>{switch(e){case rd.CAPITALIZE:return t.applyCapitalize();case rd.LOWERCASE:return t.applyLowerCase();case rd.UPPERCASE:return t.applyUpperCase()}})),applyCapitalize:Nf((({commands:t})=>{t.transformText((({text:t})=>function(t){return t.toLowerCase().replace(/(?:^|\s)\S/g,(t=>t.toUpperCase()))}(t)))})),applyLowerCase:Nf((({commands:t})=>{t.transformText((({text:t})=>t.toLowerCase()))})),applyUpperCase:Nf((({commands:t})=>{t.transformText((({text:t})=>t.toUpperCase()))}))})}),Wd={mobile:null,tablet:null,desktop:null},Ud=Ip.create({name:ad.ALIGNMENT,addGlobalAttributes:()=>[{types:[id.PARAGRAPH,id.HEADING],attributes:{[ad.ALIGNMENT]:{isRequired:!1,parseHTML({style:t}){const e=function(t){const e=pd[t]||t;return od.values.includes(e)?e:null}(t.textAlign);if(e)return{desktop:e,tablet:e,mobile:e};const n=t.getPropertyValue("--zw-alignment-mobile")||null,r=t.getPropertyValue("--zw-alignment-tablet")||null,o=t.getPropertyValue("--zw-alignment-desktop")||null;return n||r||o?{desktop:o,tablet:r,mobile:n}:null},renderHTML:t=>t.alignment?Tf({alignment_mobile:t.alignment.mobile,alignment_tablet:t.alignment.tablet,alignment_desktop:t.alignment.desktop}):null}}}],addCommands(){return{toggleAlignment:Nf((({commands:t},e)=>{ze(t.getAlignment())===e?t.removeAlignment():t.applyAlignment(e)})),applyAlignment:Nf((({commands:t},e)=>{const n=ze(t.getDevice());t.setBlockAttributes(this.name,{[n]:e},Wd)})),removeAlignment:Nf((({commands:t})=>t.removeBlockAttributes(this.name))),getAlignment:Nf((({commands:t})=>{const e=t.getBlockAttributes(this.name,Wd),n=t.getDevice(),r=t.getDefaultAlignment();return We((()=>ze(e)?.[ze(n)]??ze(r)))})),getDefaultAlignment:Nf((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return We((()=>ze(n)[ze(e)].alignment))}))}},addKeyboardShortcuts:()=>({"Mod-Shift-l":Mf("applyAlignment",od.LEFT),"Mod-Shift-e":Mf("applyAlignment",od.CENTER),"Mod-Shift-r":Mf("applyAlignment",od.RIGHT),"Mod-Shift-j":Mf("applyAlignment",od.JUSTIFY)})}),qd={mobile:null,tablet:null,desktop:null},Kd=Ip.create({name:ad.LINE_HEIGHT,addGlobalAttributes(){return[{types:[id.PARAGRAPH,id.HEADING],attributes:{[ad.LINE_HEIGHT]:{isRequired:!1,parseHTML:t=>{if(t.matches('[style*="--zw-line-height"]')){return{mobile:null,tablet:t.style.getPropertyValue("--zw-line-height-tablet")||null,desktop:t.style.getPropertyValue("--zw-line-height-desktop")||null}}const e=t.style.lineHeight;if(!e)return null;const n=ed(e,t,ze(this.options.wrapperRef));return n?{desktop:n,tablet:n,mobile:null}:null},renderHTML:t=>t.line_height?Tf({line_height_mobile:t.line_height.mobile,line_height_tablet:t.line_height.tablet,line_height_desktop:t.line_height.desktop}):null}}}]},addCommands(){return{getLineHeight:Nf((({commands:t})=>{const e=t.getBlockAttributes(this.name,qd),n=t.getDevice(),r=t.getDefaultLineHeight();return We((()=>ze(e)?.[ze(n)]??ze(r)))})),getDefaultLineHeight:Nf((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return We((()=>ze(n)[ze(e)].line_height))})),applyLineHeight:Nf((({commands:t},e)=>{const n=ze(t.getDevice());t.setBlockAttributes(this.name,{[n]:e},qd)}))}}}),Jd=af.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",gp(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}).extend({name:id.LIST_ITEM,marks:ud.SETTINGS,addCommands(){const t=({selection:t})=>t.$cursor.before(t.$cursor.depth-1);return{listItemNewline:Nf((({commands:e,tr:n})=>{const r=n.doc.nodeAt(t(n));if(!n.selection.$cursor.node().textContent)return!1;e.splitListItem(this.name);const o=t(n);for(const t of r.marks)n.step(new _d(o,yd(t)));return!0}))}},addOptions:()=>({HTMLAttributes:{class:"zw-style"}}),addKeyboardShortcuts:()=>({Enter:t=>{const{state:e,commands:n}=t.editor,r=e.selection.$cursor?.path.some((t=>t.type?.name===id.LIST));if(r)return n.listItemNewline()}})}),Gd=af.create({name:id.LIST,content:`${id.LIST_ITEM}+`,group:"block list",marks:ud.SETTINGS,addExtensions:()=>[Jd],addOptions:()=>({baseClass:"",presetClass:""}),addAttributes:()=>({bullet:{default:{type:sd.DISC}}}),parseHTML(){const t={a:sd.ROMAN,i:sd.LATIN,1:sd.DECIMAL},e=e=>{for(const n of sd.values){const r=`.${this.options.baseClass}${n}`;if(e.matches(r))return n;if(t[e.type.toLowerCase()]===n)return n}};return[{tag:"ol",getAttrs:t=>({bullet:{type:e(t)||sd.DECIMAL}})},{tag:"ul",getAttrs:t=>({bullet:{type:e(t)||sd.DISC}})}]},renderHTML({HTMLAttributes:t}){const e=[this.options.baseClass+t.bullet.type,this.options.presetClass];return[sd.ordered.includes(t.bullet.type)?"ol":"ul",{class:e.join(" ")},0]},addCommands:()=>({getListType:Nf((({commands:t})=>{const e=t.getBlockAttributes("bullet",{type:null});return We((()=>ze(e).type??null))})),applyList:Nf((({commands:t,chain:e},n)=>{if(ze(t.getListType())!==n)return e().applyDefaultPreset().toggleList(id.LIST,id.LIST_ITEM).setBlockAttributes("bullet",{type:n}).command((({commands:t,tr:e})=>t._bubbleListItemMarks(e))).run();t.removeList()})),_bubbleListItemMarks:Nf(((t,e)=>{const{doc:n,selection:r}=e,o=r.$from.start(),i=r.$to.end();function s(t,e){if(ad.inlineMarks.includes(e.type))return!1;if(e.type.isInSet(t.marks))return!1;for(const n of t.content.content)if(n.childCount){if(!n.marks)return!1;if(!e.isInSet(n.marks))return!1}return!0}n.nodesBetween(o,i,((t,n)=>{if(t.type.name===id.LIST)return;if(t.type.name!==id.LIST_ITEM)return!1;const r=[];return t.forEach((o=>{for(const i of o.marks)i.isInSet(r)?e.step(new bd(n+1,i)):s(t,i)&&(e.step(new bd(n+1,i)),e.step(new _d(n,yd(i))),r.push(i))})),!1}))})),removeList:Nf((({commands:t,state:e})=>{const{tr:n,doc:r,selection:o}=e,i=o.$from.start(),s=o.$to.end();r.nodesBetween(i,s,((t,e,r)=>{if([id.LIST,id.LIST_ITEM].includes(t.type.name))return;if(r.type.name!==id.LIST_ITEM)return!1;const o=r.marks.filter((function(e){return!e.type.isInSet(t.marks)}));for(const t of o)n.step(new _d(e,yd(t)));return!1})),t.liftListItem(id.LIST_ITEM)}))}),addInputRules(){const t=(t,e)=>function(t){return new kp({find:t.find,handler:({state:e,range:n,match:r})=>{const o=yp(t.getAttributes,void 0,r)||{},i=e.tr.delete(n.from,n.to),s=i.doc.resolve(n.from).blockRange(),a=s&&hu(s,t.type,o);if(!a)return null;i.wrap(s,a);const u=i.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&vu(i.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,u))&&i.join(n.from-1)}})}({find:e,type:this.type,getAttributes:{bullet:{type:t}},joinPredicate:(e,{attrs:n})=>n.bullet.type===t});return[t(sd.DISC,/^\s*([-+*])\s$/),t(sd.DECIMAL,/^(\d+)\.\s$/),t(sd.LATIN,/^([ivx]{1,3})\.\s$/i),t(sd.ROMAN,/^([a-z])\.\s$/i)]}});function Yd(t){this.j={},this.jr=[],this.jd=null,this.t=t}Yd.prototype={accepts:function(){return!!this.t},tt:function(t,e){if(e&&e.j)return this.j[t]=e,e;var n=e,r=this.j[t];if(r)return n&&(r.t=n),r;r=Xd();var o=eh(this,t);return o?(Object.assign(r.j,o.j),r.jr.append(o.jr),r.jr=o.jd,r.t=n||o.t):r.t=n,this.j[t]=r,r}};var Xd=function(){return new Yd},Qd=function(t){return new Yd(t)},Zd=function(t,e,n){t.j[e]||(t.j[e]=n)},th=function(t,e,n){t.jr.push([e,n])},eh=function(t,e){var n=t.j[e];if(n)return n;for(var r=0;r<t.jr.length;r++){var o=t.jr[r][0],i=t.jr[r][1];if(o.test(e))return i}return t.jd},nh=function(t,e,n){for(var r=0;r<e.length;r++)Zd(t,e[r],n)},rh=function(t,e){for(var n=0;n<e.length;n++){var r=e[n][0],o=e[n][1];Zd(t,r,o)}},oh=function(t,e,n,r){for(var o,i=0,s=e.length;i<s&&(o=t.j[e[i]]);)t=o,i++;if(i>=s)return[];for(;i<s-1;)o=r(),Zd(t,e[i],o),t=o,i++;Zd(t,e[s-1],n)},ih="DOMAIN",sh="TLD",ah="NUM",uh="AT",lh="DOT",ch="SLASH",ph=Object.freeze({__proto__:null,DOMAIN:ih,LOCALHOST:"LOCALHOST",TLD:sh,NUM:ah,PROTOCOL:"PROTOCOL",MAILTO:"MAILTO",WS:"WS",NL:"NL",OPENBRACE:"OPENBRACE",OPENBRACKET:"OPENBRACKET",OPENANGLEBRACKET:"OPENANGLEBRACKET",OPENPAREN:"OPENPAREN",CLOSEBRACE:"CLOSEBRACE",CLOSEBRACKET:"CLOSEBRACKET",CLOSEANGLEBRACKET:"CLOSEANGLEBRACKET",CLOSEPAREN:"CLOSEPAREN",AMPERSAND:"AMPERSAND",APOSTROPHE:"APOSTROPHE",ASTERISK:"ASTERISK",AT:uh,BACKSLASH:"BACKSLASH",BACKTICK:"BACKTICK",CARET:"CARET",COLON:"COLON",COMMA:"COMMA",DOLLAR:"DOLLAR",DOT:lh,EQUALS:"EQUALS",EXCLAMATION:"EXCLAMATION",HYPHEN:"HYPHEN",PERCENT:"PERCENT",PIPE:"PIPE",PLUS:"PLUS",POUND:"POUND",QUERY:"QUERY",QUOTE:"QUOTE",SEMI:"SEMI",SLASH:ch,TILDE:"TILDE",UNDERSCORE:"UNDERSCORE",SYM:"SYM"}),fh="aaa aarp abarth abb abbott abbvie abc able abogado abudhabi ac academy accenture accountant accountants aco actor ad adac ads adult ae aeg aero aetna af afamilycompany afl africa ag agakhan agency ai aig airbus airforce airtel akdn al alfaromeo alibaba alipay allfinanz allstate ally alsace alstom am amazon americanexpress americanfamily amex amfam amica amsterdam analytics android anquan anz ao aol apartments app apple aq aquarelle ar arab aramco archi army arpa art arte as asda asia associates at athleta attorney au auction audi audible audio auspost author auto autos avianca aw aws ax axa az azure ba baby baidu banamex bananarepublic band bank bar barcelona barclaycard barclays barefoot bargains baseball basketball bauhaus bayern bb bbc bbt bbva bcg bcn bd be beats beauty beer bentley berlin best bestbuy bet bf bg bh bharti bi bible bid bike bing bingo bio biz bj black blackfriday blockbuster blog bloomberg blue bm bms bmw bn bnpparibas bo boats boehringer bofa bom bond boo book booking bosch bostik boston bot boutique box br bradesco bridgestone broadway broker brother brussels bs bt budapest bugatti build builders business buy buzz bv bw by bz bzh ca cab cafe cal call calvinklein cam camera camp cancerresearch canon capetown capital capitalone car caravan cards care career careers cars casa case cash casino cat catering catholic cba cbn cbre cbs cc cd center ceo cern cf cfa cfd cg ch chanel channel charity chase chat cheap chintai christmas chrome church ci cipriani circle cisco citadel citi citic city cityeats ck cl claims cleaning click clinic clinique clothing cloud club clubmed cm cn co coach codes coffee college cologne com comcast commbank community company compare computer comsec condos construction consulting contact contractors cooking cookingchannel cool coop corsica country coupon coupons courses cpa cr credit creditcard creditunion cricket crown crs cruise cruises csc cu cuisinella cv cw cx cy cymru cyou cz dabur dad dance data date dating datsun day dclk dds de deal dealer deals degree delivery dell deloitte delta democrat dental dentist desi design dev dhl diamonds diet digital direct directory discount discover dish diy dj dk dm dnp do docs doctor dog domains dot download drive dtv dubai duck dunlop dupont durban dvag dvr dz earth eat ec eco edeka edu education ee eg email emerck energy engineer engineering enterprises epson equipment er ericsson erni es esq estate et etisalat eu eurovision eus events exchange expert exposed express extraspace fage fail fairwinds faith family fan fans farm farmers fashion fast fedex feedback ferrari ferrero fi fiat fidelity fido film final finance financial fire firestone firmdale fish fishing fit fitness fj fk flickr flights flir florist flowers fly fm fo foo food foodnetwork football ford forex forsale forum foundation fox fr free fresenius frl frogans frontdoor frontier ftr fujitsu fujixerox fun fund furniture futbol fyi ga gal gallery gallo gallup game games gap garden gay gb gbiz gd gdn ge gea gent genting george gf gg ggee gh gi gift gifts gives giving gl glade glass gle global globo gm gmail gmbh gmo gmx gn godaddy gold goldpoint golf goo goodyear goog google gop got gov gp gq gr grainger graphics gratis green gripe grocery group gs gt gu guardian gucci guge guide guitars guru gw gy hair hamburg hangout haus hbo hdfc hdfcbank health healthcare help helsinki here hermes hgtv hiphop hisamitsu hitachi hiv hk hkt hm hn hockey holdings holiday homedepot homegoods homes homesense honda horse hospital host hosting hot hoteles hotels hotmail house how hr hsbc ht hu hughes hyatt hyundai ibm icbc ice icu id ie ieee ifm ikano il im imamat imdb immo immobilien in inc industries infiniti info ing ink institute insurance insure int international intuit investments io ipiranga iq ir irish is ismaili ist istanbul it itau itv iveco jaguar java jcb je jeep jetzt jewelry jio jll jm jmp jnj jo jobs joburg jot joy jp jpmorgan jprs juegos juniper kaufen kddi ke kerryhotels kerrylogistics kerryproperties kfh kg kh ki kia kim kinder kindle kitchen kiwi km kn koeln komatsu kosher kp kpmg kpn kr krd kred kuokgroup kw ky kyoto kz la lacaixa lamborghini lamer lancaster lancia land landrover lanxess lasalle lat latino latrobe law lawyer lb lc lds lease leclerc lefrak legal lego lexus lgbt li lidl life lifeinsurance lifestyle lighting like lilly limited limo lincoln linde link lipsy live living lixil lk llc llp loan loans locker locus loft lol london lotte lotto love lpl lplfinancial lr ls lt ltd ltda lu lundbeck luxe luxury lv ly ma macys madrid maif maison makeup man management mango map market marketing markets marriott marshalls maserati mattel mba mc mckinsey md me med media meet melbourne meme memorial men menu merckmsd mg mh miami microsoft mil mini mint mit mitsubishi mk ml mlb mls mm mma mn mo mobi mobile moda moe moi mom monash money monster mormon mortgage moscow moto motorcycles mov movie mp mq mr ms msd mt mtn mtr mu museum mutual mv mw mx my mz na nab nagoya name nationwide natura navy nba nc ne nec net netbank netflix network neustar new news next nextdirect nexus nf nfl ng ngo nhk ni nico nike nikon ninja nissan nissay nl no nokia northwesternmutual norton now nowruz nowtv np nr nra nrw ntt nu nyc nz obi observer off office okinawa olayan olayangroup oldnavy ollo om omega one ong onl online onyourside ooo open oracle orange org organic origins osaka otsuka ott ovh pa page panasonic paris pars partners parts party passagens pay pccw pe pet pf pfizer pg ph pharmacy phd philips phone photo photography photos physio pics pictet pictures pid pin ping pink pioneer pizza pk pl place play playstation plumbing plus pm pn pnc pohl poker politie porn post pr pramerica praxi press prime pro prod productions prof progressive promo properties property protection pru prudential ps pt pub pw pwc py qa qpon quebec quest qvc racing radio raid re read realestate realtor realty recipes red redstone redumbrella rehab reise reisen reit reliance ren rent rentals repair report republican rest restaurant review reviews rexroth rich richardli ricoh ril rio rip rmit ro rocher rocks rodeo rogers room rs rsvp ru rugby ruhr run rw rwe ryukyu sa saarland safe safety sakura sale salon samsclub samsung sandvik sandvikcoromant sanofi sap sarl sas save saxo sb sbi sbs sc sca scb schaeffler schmidt scholarships school schule schwarz science scjohnson scot sd se search seat secure security seek select sener services ses seven sew sex sexy sfr sg sh shangrila sharp shaw shell shia shiksha shoes shop shopping shouji show showtime si silk sina singles site sj sk ski skin sky skype sl sling sm smart smile sn sncf so soccer social softbank software sohu solar solutions song sony soy spa space sport spot spreadbetting sr srl ss st stada staples star statebank statefarm stc stcgroup stockholm storage store stream studio study style su sucks supplies supply support surf surgery suzuki sv swatch swiftcover swiss sx sy sydney systems sz tab taipei talk taobao target tatamotors tatar tattoo tax taxi tc tci td tdk team tech technology tel temasek tennis teva tf tg th thd theater theatre tiaa tickets tienda tiffany tips tires tirol tj tjmaxx tjx tk tkmaxx tl tm tmall tn to today tokyo tools top toray toshiba total tours town toyota toys tr trade trading training travel travelchannel travelers travelersinsurance trust trv tt tube tui tunes tushu tv tvs tw tz ua ubank ubs ug uk unicom university uno uol ups us uy uz va vacations vana vanguard vc ve vegas ventures verisign versicherung vet vg vi viajes video vig viking villas vin vip virgin visa vision viva vivo vlaanderen vn vodka volkswagen volvo vote voting voto voyage vu vuelos wales walmart walter wang wanggou watch watches weather weatherchannel webcam weber website wed wedding weibo weir wf whoswho wien wiki williamhill win windows wine winners wme wolterskluwer woodside work works world wow ws wtc wtf xbox xerox xfinity xihuan xin xxx xyz yachts yahoo yamaxun yandex ye yodobashi yoga yokohama you youtube yt yun za zappos zara zero zip zm zone zuerich zw vermögensberater-ctb vermögensberatung-pwb ελ ευ бг бел дети ею католик ком қаз мкд мон москва онлайн орг рус рф сайт срб укр გე հայ ישראל קום ابوظبي اتصالات ارامكو الاردن البحرين الجزائر السعودية العليان المغرب امارات ایران بارت بازار بھارت بيتك پاکستان ڀارت تونس سودان سورية شبكة عراق عرب عمان فلسطين قطر كاثوليك كوم مصر مليسيا موريتانيا موقع همراه कॉम नेट भारत भारतम् भारोत संगठन বাংলা ভারত ভাৰত ਭਾਰਤ ભારત ଭାରତ இந்தியா இலங்கை சிங்கப்பூர் భారత్ ಭಾರತ ഭാരതം ලංකා คอม ไทย ລາວ 닷넷 닷컴 삼성 한국 アマゾン グーグル クラウド コム ストア セール ファッション ポイント みんな 世界 中信 中国 中國 中文网 亚马逊 企业 佛山 信息 健康 八卦 公司 公益 台湾 台灣 商城 商店 商标 嘉里 嘉里大酒店 在线 大众汽车 大拿 天主教 娱乐 家電 广东 微博 慈善 我爱你 手机 招聘 政务 政府 新加坡 新闻 时尚 書籍 机构 淡马锡 游戏 澳門 点看 移动 组织机构 网址 网店 网站 网络 联通 诺基亚 谷歌 购物 通販 集团 電訊盈科 飞利浦 食品 餐厅 香格里拉 香港".split(" "),dh=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/,hh=/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDD-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC5\uDED0-\uDED9\uDEE0-\uDEE7\uDEF0-\uDEF6])/,mh=/\uFE0F/,gh=/\d/,vh=/\s/;function yh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=Xd(),n=Qd(ah),r=Qd(ih),o=Xd(),i=Qd("WS"),s=[[gh,r],[dh,r],[hh,r],[mh,r]],a=function(){var t=Qd(ih);return t.j={"-":o},t.jr=[].concat(s),t},u=function(t){var e=a();return e.t=t,e};rh(e,[["'",Qd("APOSTROPHE")],["{",Qd("OPENBRACE")],["[",Qd("OPENBRACKET")],["<",Qd("OPENANGLEBRACKET")],["(",Qd("OPENPAREN")],["}",Qd("CLOSEBRACE")],["]",Qd("CLOSEBRACKET")],[">",Qd("CLOSEANGLEBRACKET")],[")",Qd("CLOSEPAREN")],["&",Qd("AMPERSAND")],["*",Qd("ASTERISK")],["@",Qd(uh)],["`",Qd("BACKTICK")],["^",Qd("CARET")],[":",Qd("COLON")],[",",Qd("COMMA")],["$",Qd("DOLLAR")],[".",Qd(lh)],["=",Qd("EQUALS")],["!",Qd("EXCLAMATION")],["-",Qd("HYPHEN")],["%",Qd("PERCENT")],["|",Qd("PIPE")],["+",Qd("PLUS")],["#",Qd("POUND")],["?",Qd("QUERY")],['"',Qd("QUOTE")],["/",Qd(ch)],[";",Qd("SEMI")],["~",Qd("TILDE")],["_",Qd("UNDERSCORE")],["\\",Qd("BACKSLASH")]]),Zd(e,"\n",Qd("NL")),th(e,vh,i),Zd(i,"\n",Xd()),th(i,vh,i);for(var l=0;l<fh.length;l++)oh(e,fh[l],u(sh),a);var c=a(),p=a(),f=a(),d=a();oh(e,"file",c,a),oh(e,"ftp",p,a),oh(e,"http",f,a),oh(e,"mailto",d,a);var h=a(),m=Qd("PROTOCOL"),g=Qd("MAILTO");Zd(p,"s",h),Zd(p,":",m),Zd(f,"s",h),Zd(f,":",m),Zd(c,":",m),Zd(h,":",m),Zd(d,":",g);for(var v=a(),y=0;y<t.length;y++)oh(e,t[y],v,a);return Zd(v,":",m),oh(e,"localhost",u("LOCALHOST"),a),th(e,gh,n),th(e,dh,r),th(e,hh,r),th(e,mh,r),th(n,gh,n),th(n,dh,r),th(n,hh,r),th(n,mh,r),Zd(n,"-",o),Zd(r,"-",o),Zd(o,"-",o),th(r,gh,r),th(r,dh,r),th(r,hh,r),th(r,mh,r),th(o,gh,r),th(o,dh,r),th(o,hh,r),th(o,mh,r),e.jd=Qd("SYM"),e}var bh={defaultProtocol:"http",events:null,format:_h,formatHref:_h,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:0,className:null,attributes:null,ignoreTags:[]};function _h(t){return t}function Dh(){}function Eh(t,e){function n(e,n){this.t=t,this.v=e,this.tk=n}return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(t.prototype);for(var o in n)r[o]=n[o];r.constructor=e,e.prototype=r}(Dh,n,e),n}Dh.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bh.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}}};var wh=Eh("email",{isLink:!0}),Ch=Eh("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),kh=Eh("text"),Ah=Eh("nl"),xh=Eh("url",{isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bh.defaultProtocol,e=this.tk,n=!1,r=!1,o=[],i=0;"PROTOCOL"===e[i].t;)n=!0,o.push(e[i].v),i++;for(;e[i].t===ch;)r=!0,o.push(e[i].v),i++;for(;i<e.length;i++)o.push(e[i].v);return o=o.join(""),n||r||(o="".concat(t,"://").concat(o)),o},hasProtocol:function(){return"PROTOCOL"===this.tk[0].t}}),Oh=Object.freeze({__proto__:null,MultiToken:Dh,Base:Dh,createTokenClass:Eh,MailtoEmail:wh,Email:Ch,Text:kh,Nl:Ah,Url:xh});function Sh(){var t=Xd(),e=Xd(),n=Xd(),r=Xd(),o=Xd(),i=Xd(),s=Xd(),a=Qd(xh),u=Xd(),l=Qd(xh),c=Qd(xh),p=Xd(),f=Xd(),d=Xd(),h=Xd(),m=Xd(),g=Qd(xh),v=Qd(xh),y=Qd(xh),b=Qd(xh),_=Xd(),D=Xd(),E=Xd(),w=Xd(),C=Xd(),k=Xd(),A=Qd(Ch),x=Xd(),O=Qd(Ch),S=Qd(wh),N=Xd(),T=Xd(),F=Xd(),M=Xd(),I=Qd(Ah);Zd(t,"NL",I),Zd(t,"PROTOCOL",e),Zd(t,"MAILTO",n),Zd(e,ch,r),Zd(r,ch,o),Zd(t,sh,i),Zd(t,ih,i),Zd(t,"LOCALHOST",a),Zd(t,ah,i),Zd(o,sh,c),Zd(o,ih,c),Zd(o,ah,c),Zd(o,"LOCALHOST",c),Zd(i,lh,s),Zd(C,lh,k),Zd(s,sh,a),Zd(s,ih,i),Zd(s,ah,i),Zd(s,"LOCALHOST",i),Zd(k,sh,A),Zd(k,ih,C),Zd(k,ah,C),Zd(k,"LOCALHOST",C),Zd(a,lh,s),Zd(A,lh,k),Zd(a,"COLON",u),Zd(a,ch,c),Zd(u,ah,l),Zd(l,ch,c),Zd(A,"COLON",x),Zd(x,ah,O);var $=["AMPERSAND","ASTERISK",uh,"BACKSLASH","BACKTICK","CARET","DOLLAR",ih,"EQUALS","HYPHEN","LOCALHOST",ah,"PERCENT","PIPE","PLUS","POUND","PROTOCOL",ch,"SYM","TILDE",sh,"UNDERSCORE"],B=["APOSTROPHE","CLOSEANGLEBRACKET","CLOSEBRACE","CLOSEBRACKET","CLOSEPAREN","COLON","COMMA",lh,"EXCLAMATION","OPENANGLEBRACKET","OPENBRACE","OPENBRACKET","OPENPAREN","QUERY","QUOTE","SEMI"];Zd(c,"OPENBRACE",f),Zd(c,"OPENBRACKET",d),Zd(c,"OPENANGLEBRACKET",h),Zd(c,"OPENPAREN",m),Zd(p,"OPENBRACE",f),Zd(p,"OPENBRACKET",d),Zd(p,"OPENANGLEBRACKET",h),Zd(p,"OPENPAREN",m),Zd(f,"CLOSEBRACE",c),Zd(d,"CLOSEBRACKET",c),Zd(h,"CLOSEANGLEBRACKET",c),Zd(m,"CLOSEPAREN",c),Zd(g,"CLOSEBRACE",c),Zd(v,"CLOSEBRACKET",c),Zd(y,"CLOSEANGLEBRACKET",c),Zd(b,"CLOSEPAREN",c),Zd(_,"CLOSEBRACE",c),Zd(D,"CLOSEBRACKET",c),Zd(E,"CLOSEANGLEBRACKET",c),Zd(w,"CLOSEPAREN",c),nh(f,$,g),nh(d,$,v),nh(h,$,y),nh(m,$,b),nh(f,B,_),nh(d,B,D),nh(h,B,E),nh(m,B,w),nh(g,$,g),nh(v,$,v),nh(y,$,y),nh(b,$,b),nh(g,B,g),nh(v,B,v),nh(y,B,y),nh(b,B,b),nh(_,$,g),nh(D,$,v),nh(E,$,y),nh(w,$,b),nh(_,B,_),nh(D,B,D),nh(E,B,E),nh(w,B,w),nh(c,$,c),nh(p,$,c),nh(c,B,p),nh(p,B,p),Zd(n,sh,S),Zd(n,ih,S),Zd(n,ah,S),Zd(n,"LOCALHOST",S),nh(S,$,S),nh(S,B,N),nh(N,$,S),nh(N,B,N);var R=["AMPERSAND","APOSTROPHE","ASTERISK","BACKSLASH","BACKTICK","CARET","CLOSEBRACE","DOLLAR",ih,"EQUALS","HYPHEN",ah,"OPENBRACE","PERCENT","PIPE","PLUS","POUND","QUERY",ch,"SYM","TILDE",sh,"UNDERSCORE"];return nh(i,R,T),Zd(i,uh,F),nh(a,R,T),Zd(a,uh,F),nh(s,R,T),nh(T,R,T),Zd(T,uh,F),Zd(T,lh,M),nh(M,R,T),Zd(F,sh,C),Zd(F,ih,C),Zd(F,ah,C),Zd(F,"LOCALHOST",A),t}function Nh(t,e,n){var r=n[0].s,o=n[n.length-1].e;return new t(e.substr(r,o-r),n)}var Th="undefined"!=typeof console&&console&&console.warn||function(){},Fh={scanner:null,parser:null,pluginQueue:[],customProtocols:[],initialized:!1};function Mh(t){if(Fh.initialized&&Th('linkifyjs: already initialized - will not register custom protocol "'.concat(t,'" until you manually call linkify.init(). To avoid this warning, please register all custom protocols before invoking linkify the first time.')),!/^[a-z-]+$/.test(t))throw Error("linkifyjs: protocols containing characters other than a-z or - (hyphen) are not supported");Fh.customProtocols.push(t)}function Ih(t){return Fh.initialized||function(){Fh.scanner={start:yh(Fh.customProtocols),tokens:ph},Fh.parser={start:Sh(),tokens:Oh};for(var t={createTokenClass:Eh},e=0;e<Fh.pluginQueue.length;e++)Fh.pluginQueue[e][1]({scanner:Fh.scanner,parser:Fh.parser,utils:t});Fh.initialized=!0}(),function(t,e,n){for(var r=n.length,o=0,i=[],s=[];o<r;){for(var a=t,u=null,l=null,c=0,p=null,f=-1;o<r&&!(u=eh(a,n[o].t));)s.push(n[o++]);for(;o<r&&(l=u||eh(a,n[o].t));)u=null,(a=l).accepts()?(f=0,p=a):f>=0&&f++,o++,c++;if(f<0)for(var d=o-c;d<o;d++)s.push(n[d]);else{s.length>0&&(i.push(Nh(kh,e,s)),s=[]),o-=f,c-=f;var h=p.t,m=n.slice(o-c,o);i.push(Nh(h,e,m))}}return s.length>0&&i.push(Nh(kh,e,s)),i}(Fh.parser.start,t,function(t,e){for(var n=function(t){for(var e=[],n=t.length,r=0;r<n;){var o=t.charCodeAt(r),i=void 0,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}(e.replace(/[A-Z]/g,(function(t){return t.toLowerCase()}))),r=n.length,o=[],i=0,s=0;s<r;){for(var a=t,u=null,l=0,c=null,p=-1,f=-1;s<r&&(u=eh(a,n[s]));)(a=u).accepts()?(p=0,f=0,c=a):p>=0&&(p+=n[s].length,f++),l+=n[s].length,i+=n[s].length,s++;i-=p,s-=f,l-=p,o.push({t:c.t,v:e.substr(i-l,l),s:i-l,e:i})}return o}(Fh.scanner.start,t))}function $h(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Ih(t),r=[],o=0;o<n.length;o++){var i=n[o];!i.isLink||e&&i.t!==e||r.push(i.toObject())}return r}function Bh(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Ih(t);return 1===n.length&&n[0].isLink&&(!e||n[0].t===e)}function Rh(t){return new Ku({key:new Yu("autolink"),appendTransaction:(e,n,r)=>{const o=e.some((t=>t.docChanged))&&!n.doc.eq(r.doc),i=e.some((t=>t.getMeta("preventAutolink")));if(!o||i)return;const{tr:s}=r,a=function(t,e){const n=new Nu(t);return e.forEach((t=>{t.steps.forEach((t=>{n.step(t)}))})),n}(n.doc,[...e]),{mapping:u}=a,l=function(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach(((t,o)=>{const i=[];if(t.ranges.length)t.forEach(((t,e)=>{i.push({from:t,to:e})}));else{const{from:t,to:e}=n[o];if(void 0===t||void 0===e)return;i.push({from:t,to:e})}i.forEach((({from:t,to:n})=>{const i=e.slice(o).map(t,-1),s=e.slice(o).map(n),a=e.invert().map(i,-1),u=e.invert().map(s);r.push({oldRange:{from:a,to:u},newRange:{from:i,to:s}})}))})),rf(r)}(a);return l.forEach((({oldRange:e,newRange:o})=>{of(e.from,e.to,n.doc).filter((e=>e.mark.type===t.type)).forEach((e=>{const o=of(u.map(e.from),u.map(e.to),r.doc).filter((e=>e.mark.type===t.type));if(!o.length)return;const i=o[0],a=n.doc.textBetween(e.from,e.to,void 0," "),l=r.doc.textBetween(i.from,i.to,void 0," "),c=Bh(a),p=Bh(l);c&&!p&&s.removeMark(i.from,i.to,t.type)})),function(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,((t,e)=>{n(t)&&r.push({node:t,pos:e})})),r}(r.doc,o,(t=>t.isTextblock)).forEach((e=>{$h(r.doc.textBetween(e.pos,e.pos+e.node.nodeSize,void 0," ")).filter((t=>t.isLink)).filter((e=>!t.validate||t.validate(e.value))).map((t=>({...t,from:e.pos+t.start+1,to:e.pos+t.end+1}))).filter((t=>{const e=o.from>=t.from&&o.from<=t.to,n=o.to>=t.from&&o.to<=t.to;return e||n})).forEach((e=>{s.addMark(e.from,e.to,t.type.create({href:e.href}))}))}))})),s.steps.length?s:void 0}})}const Lh=sf.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(Mh)},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:t}){return["a",gp(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[uf({find:t=>$h(t).filter((t=>!this.options.validate||this.options.validate(t.value))).filter((t=>t.isLink)).map((t=>({text:t.value,index:t.start,data:t}))),type:this.type,getAttributes:t=>{var e;return{href:null===(e=t.data)||void 0===e?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[];var e;return this.options.autolink&&t.push(Rh({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push((e={type:this.type},new Ku({key:new Yu("handleClickLink"),props:{handleClick:(t,n,r)=>{var o;const i=nf(t.state,e.type.name);return!(!(null===(o=r.target)||void 0===o?void 0:o.closest("a"))||!i.href||(window.open(i.href,i.target),0))}}}))),this.options.linkOnPaste&&t.push(function(t){return new Ku({key:new Yu("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:o}=e,{selection:i}=o,{empty:s}=i;if(s)return!1;let a="";r.content.forEach((t=>{a+=t.textContent}));const u=$h(a).find((t=>t.isLink&&t.value===a));return!(!a||!u||(t.editor.commands.setMark(t.type,{href:u.href}),0))}}})}({editor:this.editor,type:this.type})),t}}),Ph=Lh.extend({name:ad.LINK,addOptions(){return{...this.parent?.(),openOnClick:!1}},addAttributes(){return{href:{default:null,parseHTML:t=>{const e=t.getAttribute("href");return e.startsWith("#")?parseFloat(t.getAttribute("href").replace("#","")):e}},target:{default:ld.SELF,parseHTML:t=>t.getAttribute("target")||ld.SELF},destination:{default:cd.URL,parseHTML:t=>{const e=t.getAttribute("href");if(!e.startsWith("#"))return cd.URL;const n=e.replace("#","");return ze(this.options.pageBlocks).find((t=>t.id===parseInt(n)))?cd.BLOCK:cd.URL}}}},addCommands(){return{...this.parent?.(),applyLink:Nf((({commands:t,chain:e},n)=>t.getSelectedText()?e().applyMark(this.name,n).expandSelectionToLink().command((({tr:t})=>(t.insertText(n.text,t.selection.from,t.selection.to),!0))).run():t.insertContent(Yh.text(n.text,[Yh.mark(ad.LINK,n)])))),expandSelectionToLink:Nf((({commands:t})=>{t.expandSelection((({node:t})=>this.type.isInSet(t.marks)))})),isLink:Nf((({commands:t})=>t.hasMark(this.name))),getLinkPreset:Nf((()=>We((()=>this.options.preset))))}},renderHTML({HTMLAttributes:t}){const e=t.destination===cd.BLOCK?`#${t.href}`:t.href,n=`${ze(this.options.basePresetClass)+ze(this.options.preset).id} zw-style`;return["a",{href:e,target:t.target,class:n},0]}}),jh=sf.create({name:ad.SUPERSCRIPT,addCommands(){return{applySuperscript:Nf((({commands:t})=>{t.setMark(this.name)})),removeSuperscript:Nf((({commands:t})=>{t.unsetMark(this.name)})),toggleSuperscript:Nf((({commands:t})=>{ze(t.isSuperscript())?t.removeSuperscript():t.applySuperscript()})),isSuperscript:Nf((({commands:t})=>{const e=t.getMark(this.name);return We((()=>!!ze(e)))}))}},parseHTML:()=>[{tag:"sup"},{style:"vertical-align",getAttrs:t=>"super"===t&&null}],renderHTML:()=>["sup",{class:"zw-superscript"},0]}),zh=Ip.create({name:ad.MARGIN,addGlobalAttributes:()=>[{types:[id.PARAGRAPH,id.HEADING],attributes:{[ad.MARGIN]:{isRequired:!1,parseHTML(t){const{margin:e,marginTop:n,marginRight:r,marginBottom:o,marginLeft:i}=t.style;if(![e,n,r,o,i].some((t=>!!t)))return null;if(e)return{value:e};return{value:[n||0,r||0,o||0,i||0].join(" ")}},renderHTML:t=>t.margin?Tf({margin:t.margin.value}):null}}}]});function Hh(t){const e=e=>t.presetsRef.value.find((t=>t.id===e)),n=function(t){return $e(t,!1),t}({default:null,link:null});return Ye(t.presetsRef,(()=>{n.default=e(t.defaultPresetId),n.link=e(t.linkPresetId)}),{immediate:!0}),[kd,xd,Sd,lf,Sf,Ed,wd,Cd,Md].concat([$d.configure({presets:t.presetsRef,defaultId:t.defaultPresetId,styleRenderer:new Xh({baseClass:t.basePresetClass,makeVariable:t.makePresetVariable,linkPresetId:t.linkPresetId})}),Gd.configure({baseClass:t.baseListClass,presetClass:t.basePresetClass+t.defaultPresetId}),jd.configure({device:t.deviceRef}),Rd.configure({minSize:t.minFontSize,maxSize:t.maxFontSize,wrapperRef:t.wrapperRef}),Id.configure({fonts:t.fonts,defaultPreset:Ve(n,"default")}),Bd,Ld,Pd,zd,Hd,Vd,jh,Ud,Kd.configure({wrapperRef:t.wrapperRef}),Ph.configure({preset:Ve(n,"link"),basePresetClass:t.basePresetClass,pageBlocks:t.pageBlocksRef}),zh])}class Vh{#e=new DOMParser;types=window;parse(t){return this.#e.parseFromString(t,"text/html")}}class Wh{content;constructor({content:t}){this.content=t}normalize(){throw new Error("Implement abstract method")}}class Uh extends Wh{static BLOCK_NODE_NAMES=["P","H1","H2","H3","H4"];static ROOT_NODE_NAMES=Uh.BLOCK_NODE_NAMES.concat("UL","OL");static BLOCK_STYLES=["text-align","line-height","margin","margin-top","margin-bottom","margin-left","margin-right"];#n;constructor({content:t,parser:e}){super({content:t}),this.#n=e,this.dom=null}normalize(){return this.normalizeHTML(),this.normalizedHTML}normalizeHTML(){this.dom=this.#n.parse(this.content.replace(/(\r)?\n/g,"")),this.#r(),this.#o(),this.#i(this.#s,(t=>"BR"===t.tagName)),this.#i(this.#a,this.#u),this.#i(this.#l,(t=>"LI"===t.tagName)),this.#c(),this.#p()}get normalizedHTML(){return this.dom.body.innerHTML}get#f(){return this.#n.types.NodeFilter}get#d(){return this.#n.types.Node}#r(){const t=this.#h(this.#f.SHOW_COMMENT);this.#m(t,(t=>t.remove()))}#o(){const t=Array.from(this.dom.body.childNodes),e=this.dom.createDocumentFragment();let n;for(const r of t)this.#g(r)?(e.append(r),n=null):(n||(n=this.dom.createElement("p"),e.append(n)),n.append(r));this.dom.body.innerHTML="",this.dom.body.append(e)}#h(t,e){return this.dom.createNodeIterator(this.dom.body,t,e)}#i(t,e=(()=>!0)){const n=t=>"BODY"!==t.tagName&&e.call(this,t),r=this.#h(this.#f.SHOW_ELEMENT,{acceptNode:t=>n(t)?this.#f.FILTER_ACCEPT:this.#f.FILTER_REJECT});this.#m(r,t)}#m(t,e){let n=t.nextNode();for(;n;)e.call(this,n),n=t.nextNode()}#a(t){t.innerHTML.trim()||t.remove()}#l(t){const e=this.dom.createDocumentFragment(),n=Array.from(t.childNodes);let r,o;const i=n=>{this.#v(n,t,Uh.BLOCK_STYLES),e.append(n)};this.#v(t,t.parentElement,Uh.BLOCK_STYLES);for(const t of n)if(this.#u(t))i(t),r=null,o=t;else if("BR"===t.tagName&&o&&"BR"!==o?.tagName)t.remove(),o=t;else if("BR"!==t.tagName)r||(r=this.dom.createElement("p"),i(r)),r.append(t),o=t;else{const e=this.dom.createElement("p");e.append(t),i(e),r=null,o=t}t.append(e),this.#y(t,Uh.BLOCK_STYLES)}#u(t){return Uh.BLOCK_NODE_NAMES.includes(t.tagName)}#g(t){return Uh.ROOT_NODE_NAMES.includes(t.tagName)}#v(t,e,n){for(const r of n){const n=e.style.getPropertyValue(r);n&&!t.style.getPropertyValue(r)&&t.style.setProperty(r,n)}}#y(t,e){for(const n of e)t.style.removeProperty(n);0===t.style.length&&t.removeAttribute("style")}#s({parentElement:t}){if(!this.#u(t))return;if(!t.textContent)return;const e=this.dom.createDocumentFragment(),n=Array.from(t.childNodes),r=t.cloneNode(!0);r.innerHTML="";let o=r.cloneNode();const i=n=>{this.#v(n,t,Uh.BLOCK_STYLES),e.append(n)};for(const t of n)"BR"!==t.tagName?o.append(t):(i(o),o=r.cloneNode());e.append(o),t.replaceWith(e)}#c(){const t=this.dom.querySelectorAll('[style*="text-decoration"]:where(p, h1, h2, h3, h4, li)');for(const e of t)this.#b(e)}#b(t){const e=this.#_(t);if(t.style.removeProperty("text-decoration-line"),t.style.removeProperty("text-decoration"),t.style.cssText||t.removeAttribute("style"),!e.none)for(const n of t.childNodes){const r=this.#D(t,n),o=this.#_(r),i={underline:o.underline||e.underline,line_through:o.line_through||e.line_through};r.style.removeProperty("text-decoration-line"),r.style.removeProperty("text-decoration"),r.style.textDecoration=Object.entries(i).filter((([,t])=>t)).map((([t])=>t.replace("_","-"))).join(" ")}}#_(t){const{textDecoration:e,textDecorationLine:n}=t.style,r=e||n||"";return{none:r.includes("none"),underline:r.includes("underline"),line_through:r.includes("line-through")}}#p(){const t=this.dom.querySelectorAll('[style*="background-color"]:where(p, h1, h2, h3, h4, li)');for(const e of t)this.#E(e)}#E(t){const e=t.style.backgroundColor;t.style.removeProperty("background-color"),t.style.cssText||t.removeAttribute("style");for(const n of t.childNodes){const r=this.#D(t,n),o=r.style.backgroundColor||e;r.style.backgroundColor=o}}#D(t,e){if(e.nodeType!==this.#d.TEXT_NODE)return e;const n=this.dom.createElement("span");return n.append(e.cloneNode()),t.replaceChild(n,e),n}}class qh extends Wh{normalize(){return this.#i(this.#w),this.content}#i(t){this.#C(this.content,t)}#C(t,e){for(const n of t.content)n.content&&this.#C(n,e),e.call(this,n)}#w(t){if(t.content&&t.type!==id.LIST)for(const e of t.content)if(e.marks)for(const n of e.marks.slice())this.#k(t,n)?this.#A(e,n):this.#x(t,n)&&(this.#A(e,n),this.#O(t,n))}#x(t,e){if(ad.inlineMarks.includes(e.type))return!1;if(this.#S(t,e.type))return!1;for(const n of t.content)if(n.content||t.type!==id.LIST_ITEM){if(!n.marks)return!1;if(!this.#k(n,e))return!1}return!0}#k(t,e){return t.marks?.some((t=>vd.exports.isEqual(t,e)))??!1}#S(t,e){return t.marks?.some((t=>t.type===e))??!1}#A(t,e){if(!t.marks)return;const n=this.#N(t,e.type);n>=0&&t.marks.splice(n,1),t.marks.length||delete t.marks}#O(t,e){this.#A(t,e),t.marks??=[],t.marks.push(e)}#N(t,e){return t.marks?.findIndex((t=>t.type===e))??null}}class Kh{static build(t,e={}){return"string"==typeof t?this.#T(t,e):this.#F(t)}static#T(t,e){return new Uh({content:t,parser:e.parser||new Vh})}static#F(t){return new qh({content:t})}static normalize(t,e={}){return Kh.build(t,e).normalize()}}class Jh{static window=globalThis.window;static use(t){this.window=t}static get document(){return this.window.document}static get body(){return this.document.body}static get head(){return this.document.head}static getComputedStyle(t){return this.window.getComputedStyle(t)}}class Gh{static build({config:t,nodeDomParser:e}){const n=function(t){return Dp(Tp.resolve(t))}(Hh({fonts:t.fonts,minFontSize:0,maxFontSize:0,presetsRef:je(t.presets),defaultPresetId:t.defaultPresetId,linkPresetId:t.linkPresetId,makePresetVariable:()=>"",basePresetClass:t.basePresetClass,baseListClass:t.baseListClass,deviceRef:je(nd.DESKTOP),pageBlocksRef:je([]),wrapperRef:Jh.document.createElement("p")}));return new Gh({schema:n,domParser:La.fromSchema(n),nodeDomParser:e})}#M;#e;#I;constructor({schema:t,domParser:e,nodeDomParser:n}){this.#M=t,this.#e=e,this.#I=n}toJSON(t){const e=Kh.build(t,{parser:this.#I});return e.normalizeHTML(),this.#e.parse(e.dom.body).toJSON()}}class Yh{static doc(t){return{type:id.DOCUMENT,content:t}}static list(t,e){return{type:id.LIST,attrs:{bullet:{type:t}},content:e.map((t=>t.type===id.LIST_ITEM?t:this.listItem([].concat(t))))}}static listItem(...t){const{attrs:e,content:n,marks:r}=this.#$(t);return{type:id.LIST_ITEM,...e?{attrs:e}:{},...r?{marks:r}:{},content:[].concat(n).map((t=>"string"==typeof t?this.paragraph(t):t))}}static heading(t,...e){const n=this.#B(e,this.text);return n.attrs??={},n.attrs.level=t,{type:id.HEADING,...n}}static paragraph(...t){return{type:id.PARAGRAPH,...this.#B(t,this.text)}}static#B(t){const{attrs:e,content:n,marks:r}=this.#$(t);return{content:"string"==typeof n?[this.text(n)]:n,...e?{attrs:e}:{},...r?{marks:r}:{}}}static#$(t){return 1===t.length?{attrs:null,marks:null,content:t[0]}:2===t.length?{attrs:t[0],marks:null,content:t[1]}:{attrs:t[0],marks:t[1],content:t[2]}}static text(t,e){return{type:id.TEXT,...e?{marks:e}:{},text:t}}static mark(t,e){return{type:t,attrs:e}}static populateAllDevices(t){return{mobile:t,tablet:t,desktop:t}}}class Xh{#R;#L;#P;constructor({baseClass:t,makeVariable:e,linkPresetId:n}){this.#R=t,this.#L=e,this.#P=n}inject(t,e){let n=t.querySelector("[data-zw-styles]");n||(n=Jh.document.createElement("style"),n.dataset.zwStyles="",n.innerHTML=this.render(e),t.append(n))}render(t){let e="";for(const n of t){const t=n.id===this.#P;e+=` ${this.makePresetCssClass(n)} {`;for(const r of nd.values)for(const o of Object.keys(n[r])){const i=this.#L({device:r,preset:n,property:o}),s=this.#j(o,r);if(e+=`${s}: var(${i}, inherit);`,t){e+=`${s.replace("preset-","")}: var(${s});`}}e+="}"}return e}#j(t,e){return`--zw-preset-${"color"===t?"font-color":t.replace(/_/i,"-")}${e===nd.COMMON?"":`-${e}`}`}makePresetHtmlClass(t){return this.#R+t.id}makePresetCssClass(t){return this.makePresetHtmlClass(t).split(" ").map((t=>`.${t}`)).join("")}}class Qh{static createWindow(){return(new i.JSDOM).window}types;parse(t){const{window:e}=new i.JSDOM(t);return this.types=e,e.document}}class Zh{name;description;argument;options=[];doCommand(){throw new Error('Command "doCommand" is required')}install(t){if(!this.name)throw new Error('Command "name" is required');let e=t.command(this.name);if(this.description&&(e=e.description(this.description)),this.argument&&(e=e.argument(this.argument)),this.options.length)for(const t of this.options)e=e.option(t.flags,t.description,t.default);e.action(this.doCommand.bind(this))}output(t){console.log(t)}}const tm=new Y,em=[class extends Zh{name="to-json";description="migrate html to json";argument="<html...>";options=[{flags:"-c, --config <path>",description:"Generator config",default:n.resolve(__dirname,"../bin/zp.config.json")},{flags:"-f, --format <type>",description:"Set output format",default:"rb"}];doCommand(t,{config:e,format:r}){Jh.use(Qh.createWindow());const o=n.resolve(process.cwd(),e),i=Gh.build({config:require(o).editor,nodeDomParser:new Qh}),s=t.map((t=>i.toJSON(this.#z(t)))),a=1===s.length?s[0]:s,u=this.#H(a);this.output("rb"===r?this.#V(u):u)}#z(t){return t.replace(/\\(["'])/g,"$1").replace(/rgba\(\d{1,3}, ?\d{1,3}, ?\d{1,3}, (\d{1,2}%)\)/g,((t,e)=>t.replace(e,parseFloat(e)/100)))}#H(t){return JSON.stringify(t,((t,e)=>null===e?void 0:e),2)}#V(t){return t.replace(/\\"/g,'"').replace(/font-family: ?'(.+)'/g,'font-family: "$1"').replace(/'/g,"\\'").replace(/^[\t ]*"[^:\n\r]+(?<!\\)":/gm,(t=>t.replace(/"/g,""))).replace(/: "(.+)"([,\n])/g,": '$1'$2")}},class extends Zh{name="version";description="display cli version";doCommand(){this.output("3.0.2-1")}}];for(const t of em)(new t).install(tm);tm.parse();
14
+ */function yd(t){return t.type.create(vd.exports.cloneDeep(t.attrs))}md=vd,gd=vd.exports,function(){var t,e="Expected a function",n="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,i=32,s=64,a=128,u=256,l=1/0,c=9007199254740991,p=NaN,d=4294967295,h=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",i],["partialRight",s],["rearg",u]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",_="[object Function]",D="[object GeneratorFunction]",E="[object Map]",w="[object Number]",C="[object Object]",k="[object Promise]",A="[object RegExp]",x="[object Set]",O="[object String]",S="[object Symbol]",N="[object WeakMap]",T="[object ArrayBuffer]",F="[object DataView]",M="[object Float32Array]",I="[object Float64Array]",$="[object Int8Array]",B="[object Int16Array]",R="[object Int32Array]",L="[object Uint8Array]",P="[object Uint8ClampedArray]",j="[object Uint16Array]",z="[object Uint32Array]",H=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,K=RegExp(U.source),J=RegExp(q.source),G=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,ot=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,ht=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,_t=/['\n\r\u2028\u2029\\]/g,Dt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Et="\\u2700-\\u27bf",wt="a-z\\xdf-\\xf6\\xf8-\\xff",Ct="A-Z\\xc0-\\xd6\\xd8-\\xde",kt="\\ufe0e\\ufe0f",At="\\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",xt="['’]",Ot="[\\ud800-\\udfff]",St="["+At+"]",Nt="["+Dt+"]",Tt="\\d+",Ft="[\\u2700-\\u27bf]",Mt="["+wt+"]",It="[^\\ud800-\\udfff"+At+Tt+Et+wt+Ct+"]",$t="\\ud83c[\\udffb-\\udfff]",Bt="[^\\ud800-\\udfff]",Rt="(?:\\ud83c[\\udde6-\\uddff]){2}",Lt="[\\ud800-\\udbff][\\udc00-\\udfff]",Pt="["+Ct+"]",jt="(?:"+Mt+"|"+It+")",zt="(?:"+Pt+"|"+It+")",Ht="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Wt="(?:"+Nt+"|"+$t+")?",Ut="[\\ufe0e\\ufe0f]?",qt=Ut+Wt+"(?:\\u200d(?:"+[Bt,Rt,Lt].join("|")+")"+Ut+Wt+")*",Kt="(?:"+[Ft,Rt,Lt].join("|")+")"+qt,Jt="(?:"+[Bt+Nt+"?",Nt,Rt,Lt,Ot].join("|")+")",Gt=RegExp(xt,"g"),Yt=RegExp(Nt,"g"),Xt=RegExp($t+"(?="+$t+")|"+Jt+qt,"g"),Qt=RegExp([Pt+"?"+Mt+"+"+Ht+"(?="+[St,Pt,"$"].join("|")+")",zt+"+"+Vt+"(?="+[St,Pt+jt,"$"].join("|")+")",Pt+"?"+jt+"+"+Ht,Pt+"+"+Vt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tt,Kt].join("|"),"g"),Zt=RegExp("[\\u200d\\ud800-\\udfff"+Dt+kt+"]"),te=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ee=["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"],ne=-1,re={};re[M]=re[I]=re[$]=re[B]=re[R]=re[L]=re[P]=re[j]=re[z]=!0,re[m]=re[g]=re[T]=re[v]=re[F]=re[y]=re[b]=re[_]=re[E]=re[w]=re[C]=re[A]=re[x]=re[O]=re[N]=!1;var oe={};oe[m]=oe[g]=oe[T]=oe[F]=oe[v]=oe[y]=oe[M]=oe[I]=oe[$]=oe[B]=oe[R]=oe[E]=oe[w]=oe[C]=oe[A]=oe[x]=oe[O]=oe[S]=oe[L]=oe[P]=oe[j]=oe[z]=!0,oe[b]=oe[_]=oe[N]=!1;var ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,ae=parseInt,ue="object"==typeof f&&f&&f.Object===Object&&f,le="object"==typeof self&&self&&self.Object===Object&&self,ce=ue||le||Function("return this")(),pe=gd&&!gd.nodeType&&gd,fe=pe&&md&&!md.nodeType&&md,de=fe&&fe.exports===pe,he=de&&ue.process,me=function(){try{var t=fe&&fe.require&&fe.require("util").types;return t||he&&he.binding&&he.binding("util")}catch(t){}}(),ge=me&&me.isArrayBuffer,ve=me&&me.isDate,ye=me&&me.isMap,be=me&&me.isRegExp,_e=me&&me.isSet,De=me&&me.isTypedArray;function Ee(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function we(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var s=t[o];e(r,s,n(s),t)}return r}function Ce(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ke(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ae(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function xe(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}function Oe(t,e){return!(null==t||!t.length)&&Le(t,e,0)>-1}function Se(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function Ne(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Te(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function Fe(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function Me(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function Ie(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var $e=He("length");function Be(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r}function Re(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function Le(t,e,n){return e==e?function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):Re(t,je,n)}function Pe(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function je(t){return t!=t}function ze(t,e){var n=null==t?0:t.length;return n?Ue(t,e)/n:p}function He(e){return function(n){return null==n?t:n[e]}}function Ve(e){return function(n){return null==e?t:e[n]}}function We(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n}function Ue(e,n){for(var r,o=-1,i=e.length;++o<i;){var s=n(e[o]);s!==t&&(r=r===t?s:r+s)}return r}function qe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ke(t){return t?t.slice(0,fn(t)+1).replace(rt,""):t}function Je(t){return function(e){return t(e)}}function Ge(t,e){return Ne(e,(function(e){return t[e]}))}function Ye(t,e){return t.has(e)}function Xe(t,e){for(var n=-1,r=t.length;++n<r&&Le(e,t[n],0)>-1;);return n}function Qe(t,e){for(var n=t.length;n--&&Le(e,t[n],0)>-1;);return n}function Ze(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var tn=Ve({"À":"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"}),en=Ve({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(t){return"\\"+ie[t]}function rn(t){return Zt.test(t)}function on(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function sn(t,e){return function(n){return t(e(n))}}function an(t,e){for(var n=-1,o=t.length,i=0,s=[];++n<o;){var a=t[n];a!==e&&a!==r||(t[n]=r,s[i++]=n)}return s}function un(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function ln(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function cn(t){return rn(t)?function(t){for(var e=Xt.lastIndex=0;Xt.test(t);)++e;return e}(t):$e(t)}function pn(t){return rn(t)?function(t){return t.match(Xt)||[]}(t):function(t){return t.split("")}(t)}function fn(t){for(var e=t.length;e--&&ot.test(t.charAt(e)););return e}var dn=Ve({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hn=function f(ot){var Dt=(ot=null==ot?ce:hn.defaults(ce.Object(),ot,hn.pick(ce,ee))).Array,Et=ot.Date,wt=ot.Error,Ct=ot.Function,kt=ot.Math,At=ot.Object,xt=ot.RegExp,Ot=ot.String,St=ot.TypeError,Nt=Dt.prototype,Tt=Ct.prototype,Ft=At.prototype,Mt=ot["__core-js_shared__"],It=Tt.toString,$t=Ft.hasOwnProperty,Bt=0,Rt=function(){var t=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Lt=Ft.toString,Pt=It.call(At),jt=ce._,zt=xt("^"+It.call($t).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=de?ot.Buffer:t,Vt=ot.Symbol,Wt=ot.Uint8Array,Ut=Ht?Ht.allocUnsafe:t,qt=sn(At.getPrototypeOf,At),Kt=At.create,Jt=Ft.propertyIsEnumerable,Xt=Nt.splice,Zt=Vt?Vt.isConcatSpreadable:t,ie=Vt?Vt.iterator:t,ue=Vt?Vt.toStringTag:t,le=function(){try{var t=di(At,"defineProperty");return t({},"",{}),t}catch(t){}}(),pe=ot.clearTimeout!==ce.clearTimeout&&ot.clearTimeout,fe=Et&&Et.now!==ce.Date.now&&Et.now,he=ot.setTimeout!==ce.setTimeout&&ot.setTimeout,me=kt.ceil,$e=kt.floor,Ve=At.getOwnPropertySymbols,mn=Ht?Ht.isBuffer:t,gn=ot.isFinite,vn=Nt.join,yn=sn(At.keys,At),bn=kt.max,_n=kt.min,Dn=Et.now,En=ot.parseInt,wn=kt.random,Cn=Nt.reverse,kn=di(ot,"DataView"),An=di(ot,"Map"),xn=di(ot,"Promise"),On=di(ot,"Set"),Sn=di(ot,"WeakMap"),Nn=di(At,"create"),Tn=Sn&&new Sn,Fn={},Mn=ji(kn),In=ji(An),$n=ji(xn),Bn=ji(On),Rn=ji(Sn),Ln=Vt?Vt.prototype:t,Pn=Ln?Ln.valueOf:t,jn=Ln?Ln.toString:t;function zn(t){if(ra(t)&&!qs(t)&&!(t instanceof Un)){if(t instanceof Wn)return t;if($t.call(t,"__wrapped__"))return zi(t)}return new Wn(t)}var Hn=function(){function e(){}return function(n){if(!na(n))return{};if(Kt)return Kt(n);e.prototype=n;var r=new e;return e.prototype=t,r}}();function Vn(){}function Wn(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=t}function Un(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Jn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jn;++e<n;)this.add(t[e])}function Yn(t){var e=this.__data__=new Kn(t);this.size=e.size}function Xn(t,e){var n=qs(t),r=!n&&Us(t),o=!n&&!r&&Ys(t),i=!n&&!r&&!o&&pa(t),s=n||r||o||i,a=s?qe(t.length,Ot):[],u=a.length;for(var l in t)!e&&!$t.call(t,l)||s&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||_i(l,u))||a.push(l);return a}function Qn(e){var n=e.length;return n?e[Gr(0,n-1)]:t}function Zn(t,e){return Ri(To(t),ur(e,0,t.length))}function tr(t){return Ri(To(t))}function er(e,n,r){(r!==t&&!Hs(e[n],r)||r===t&&!(n in e))&&sr(e,n,r)}function nr(e,n,r){var o=e[n];$t.call(e,n)&&Hs(o,r)&&(r!==t||n in e)||sr(e,n,r)}function rr(t,e){for(var n=t.length;n--;)if(Hs(t[n][0],e))return n;return-1}function or(t,e,n,r){return dr(t,(function(t,o,i){e(r,t,n(t),i)})),r}function ir(t,e){return t&&Fo(e,Ma(e),t)}function sr(t,e,n){"__proto__"==e&&le?le(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ar(e,n){for(var r=-1,o=n.length,i=Dt(o),s=null==e;++r<o;)i[r]=s?t:Oa(e,n[r]);return i}function ur(e,n,r){return e==e&&(r!==t&&(e=e<=r?e:r),n!==t&&(e=e>=n?e:n)),e}function lr(e,n,r,o,i,s){var a,u=1&n,l=2&n,c=4&n;if(r&&(a=i?r(e,o,i,s):r(e)),a!==t)return a;if(!na(e))return e;var p=qs(e);if(p){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&$t.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!u)return To(e,a)}else{var f=gi(e),d=f==_||f==D;if(Ys(e))return ko(e,u);if(f==C||f==m||d&&!i){if(a=l||d?{}:yi(e),!u)return l?function(t,e){return Fo(t,mi(t),e)}(e,function(t,e){return t&&Fo(e,Ia(e),t)}(a,e)):function(t,e){return Fo(t,hi(t),e)}(e,ir(a,e))}else{if(!oe[f])return i?e:{};a=function(t,e,n){var r,o=t.constructor;switch(e){case T:return Ao(t);case v:case y:return new o(+t);case F:return function(t,e){var n=e?Ao(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case M:case I:case $:case B:case R:case L:case P:case j:case z:return xo(t,n);case E:return new o;case w:case O:return new o(t);case A:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case x:return new o;case S:return r=t,Pn?At(Pn.call(r)):{}}}(e,f,u)}}s||(s=new Yn);var h=s.get(e);if(h)return h;s.set(e,a),ua(e)?e.forEach((function(t){a.add(lr(t,n,r,t,e,s))})):oa(e)&&e.forEach((function(t,o){a.set(o,lr(t,n,r,o,e,s))}));var g=p?t:(c?l?si:ii:l?Ia:Ma)(e);return Ce(g||e,(function(t,o){g&&(t=e[o=t]),nr(a,o,lr(t,n,r,o,e,s))})),a}function cr(e,n,r){var o=r.length;if(null==e)return!o;for(e=At(e);o--;){var i=r[o],s=n[i],a=e[i];if(a===t&&!(i in e)||!s(a))return!1}return!0}function pr(n,r,o){if("function"!=typeof n)throw new St(e);return Mi((function(){n.apply(t,o)}),r)}function fr(t,e,n,r){var o=-1,i=Oe,s=!0,a=t.length,u=[],l=e.length;if(!a)return u;n&&(e=Ne(e,Je(n))),r?(i=Se,s=!1):e.length>=200&&(i=Ye,s=!1,e=new Gn(e));t:for(;++o<a;){var c=t[o],p=null==n?c:n(c);if(c=r||0!==c?c:0,s&&p==p){for(var f=l;f--;)if(e[f]===p)continue t;u.push(c)}else i(e,p,r)||u.push(c)}return u}zn.templateSettings={escape:G,evaluate:Y,interpolate:X,variable:"",imports:{_:zn}},zn.prototype=Vn.prototype,zn.prototype.constructor=zn,Wn.prototype=Hn(Vn.prototype),Wn.prototype.constructor=Wn,Un.prototype=Hn(Vn.prototype),Un.prototype.constructor=Un,qn.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},qn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},qn.prototype.get=function(e){var r=this.__data__;if(Nn){var o=r[e];return o===n?t:o}return $t.call(r,e)?r[e]:t},qn.prototype.has=function(e){var n=this.__data__;return Nn?n[e]!==t:$t.call(n,e)},qn.prototype.set=function(e,r){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Nn&&r===t?n:r,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(t){var e=this.__data__,n=rr(e,t);return!(n<0||(n==e.length-1?e.pop():Xt.call(e,n,1),--this.size,0))},Kn.prototype.get=function(e){var n=this.__data__,r=rr(n,e);return r<0?t:n[r][1]},Kn.prototype.has=function(t){return rr(this.__data__,t)>-1},Kn.prototype.set=function(t,e){var n=this.__data__,r=rr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(An||Kn),string:new qn}},Jn.prototype.delete=function(t){var e=pi(this,t).delete(t);return this.size-=e?1:0,e},Jn.prototype.get=function(t){return pi(this,t).get(t)},Jn.prototype.has=function(t){return pi(this,t).has(t)},Jn.prototype.set=function(t,e){var n=pi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(t){return this.__data__.set(t,n),this},Gn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Yn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Yn.prototype.get=function(t){return this.__data__.get(t)},Yn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!An||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(t,e),this.size=n.size,this};var dr=$o(Dr),hr=$o(Er,!0);function mr(t,e){var n=!0;return dr(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function gr(e,n,r){for(var o=-1,i=e.length;++o<i;){var s=e[o],a=n(s);if(null!=a&&(u===t?a==a&&!ca(a):r(a,u)))var u=a,l=s}return l}function vr(t,e){var n=[];return dr(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}function yr(t,e,n,r,o){var i=-1,s=t.length;for(n||(n=bi),o||(o=[]);++i<s;){var a=t[i];e>0&&n(a)?e>1?yr(a,e-1,n,r,o):Te(o,a):r||(o[o.length]=a)}return o}var br=Bo(),_r=Bo(!0);function Dr(t,e){return t&&br(t,e,Ma)}function Er(t,e){return t&&_r(t,e,Ma)}function wr(t,e){return xe(e,(function(e){return Zs(t[e])}))}function Cr(e,n){for(var r=0,o=(n=Do(n,e)).length;null!=e&&r<o;)e=e[Pi(n[r++])];return r&&r==o?e:t}function kr(t,e,n){var r=e(t);return qs(t)?r:Te(r,n(t))}function Ar(e){return null==e?e===t?"[object Undefined]":"[object Null]":ue&&ue in At(e)?function(e){var n=$t.call(e,ue),r=e[ue];try{e[ue]=t;var o=!0}catch(t){}var i=Lt.call(e);return o&&(n?e[ue]=r:delete e[ue]),i}(e):function(t){return Lt.call(t)}(e)}function xr(t,e){return t>e}function Or(t,e){return null!=t&&$t.call(t,e)}function Sr(t,e){return null!=t&&e in At(t)}function Nr(e,n,r){for(var o=r?Se:Oe,i=e[0].length,s=e.length,a=s,u=Dt(s),l=1/0,c=[];a--;){var p=e[a];a&&n&&(p=Ne(p,Je(n))),l=_n(p.length,l),u[a]=!r&&(n||i>=120&&p.length>=120)?new Gn(a&&p):t}p=e[0];var f=-1,d=u[0];t:for(;++f<i&&c.length<l;){var h=p[f],m=n?n(h):h;if(h=r||0!==h?h:0,!(d?Ye(d,m):o(c,m,r))){for(a=s;--a;){var g=u[a];if(!(g?Ye(g,m):o(e[a],m,r)))continue t}d&&d.push(m),c.push(h)}}return c}function Tr(e,n,r){var o=null==(e=Si(e,n=Do(n,e)))?e:e[Pi(Qi(n))];return null==o?t:Ee(o,e,r)}function Fr(t){return ra(t)&&Ar(t)==m}function Mr(e,n,r,o,i){return e===n||(null==e||null==n||!ra(e)&&!ra(n)?e!=e&&n!=n:function(e,n,r,o,i,s){var a=qs(e),u=qs(n),l=a?g:gi(e),c=u?g:gi(n),p=(l=l==m?C:l)==C,f=(c=c==m?C:c)==C,d=l==c;if(d&&Ys(e)){if(!Ys(n))return!1;a=!0,p=!1}if(d&&!p)return s||(s=new Yn),a||pa(e)?ri(e,n,r,o,i,s):function(t,e,n,r,o,i,s){switch(n){case F:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case T:return!(t.byteLength!=e.byteLength||!i(new Wt(t),new Wt(e)));case v:case y:case w:return Hs(+t,+e);case b:return t.name==e.name&&t.message==e.message;case A:case O:return t==e+"";case E:var a=on;case x:var u=1&r;if(a||(a=un),t.size!=e.size&&!u)return!1;var l=s.get(t);if(l)return l==e;r|=2,s.set(t,e);var c=ri(a(t),a(e),r,o,i,s);return s.delete(t),c;case S:if(Pn)return Pn.call(t)==Pn.call(e)}return!1}(e,n,l,r,o,i,s);if(!(1&r)){var h=p&&$t.call(e,"__wrapped__"),_=f&&$t.call(n,"__wrapped__");if(h||_){var D=h?e.value():e,k=_?n.value():n;return s||(s=new Yn),i(D,k,r,o,s)}}return!!d&&(s||(s=new Yn),function(e,n,r,o,i,s){var a=1&r,u=ii(e),l=u.length,c=ii(n).length;if(l!=c&&!a)return!1;for(var p=l;p--;){var f=u[p];if(!(a?f in n:$t.call(n,f)))return!1}var d=s.get(e),h=s.get(n);if(d&&h)return d==n&&h==e;var m=!0;s.set(e,n),s.set(n,e);for(var g=a;++p<l;){var v=e[f=u[p]],y=n[f];if(o)var b=a?o(y,v,f,n,e,s):o(v,y,f,e,n,s);if(!(b===t?v===y||i(v,y,r,o,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var _=e.constructor,D=n.constructor;_==D||!("constructor"in e)||!("constructor"in n)||"function"==typeof _&&_ instanceof _&&"function"==typeof D&&D instanceof D||(m=!1)}return s.delete(e),s.delete(n),m}(e,n,r,o,i,s))}(e,n,r,o,Mr,i))}function Ir(e,n,r,o){var i=r.length,s=i,a=!o;if(null==e)return!s;for(e=At(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var l=(u=r[i])[0],c=e[l],p=u[1];if(a&&u[2]){if(c===t&&!(l in e))return!1}else{var f=new Yn;if(o)var d=o(c,p,l,e,n,f);if(!(d===t?Mr(p,c,3,o,f):d))return!1}}return!0}function $r(t){return!(!na(t)||(e=t,Rt&&Rt in e))&&(Zs(t)?zt:mt).test(ji(t));var e}function Br(t){return"function"==typeof t?t:null==t?iu:"object"==typeof t?qs(t)?Hr(t[0],t[1]):zr(t):hu(t)}function Rr(t){if(!ki(t))return yn(t);var e=[];for(var n in At(t))$t.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Lr(t){if(!na(t))return function(t){var e=[];if(null!=t)for(var n in At(t))e.push(n);return e}(t);var e=ki(t),n=[];for(var r in t)("constructor"!=r||!e&&$t.call(t,r))&&n.push(r);return n}function Pr(t,e){return t<e}function jr(t,e){var n=-1,r=Js(t)?Dt(t.length):[];return dr(t,(function(t,o,i){r[++n]=e(t,o,i)})),r}function zr(t){var e=fi(t);return 1==e.length&&e[0][2]?xi(e[0][0],e[0][1]):function(n){return n===t||Ir(n,t,e)}}function Hr(e,n){return Ei(e)&&Ai(n)?xi(Pi(e),n):function(r){var o=Oa(r,e);return o===t&&o===n?Sa(r,e):Mr(n,o,3)}}function Vr(e,n,r,o,i){e!==n&&br(n,(function(s,a){if(i||(i=new Yn),na(s))!function(e,n,r,o,i,s,a){var u=Ti(e,r),l=Ti(n,r),c=a.get(l);if(c)er(e,r,c);else{var p=s?s(u,l,r+"",e,n,a):t,f=p===t;if(f){var d=qs(l),h=!d&&Ys(l),m=!d&&!h&&pa(l);p=l,d||h||m?qs(u)?p=u:Gs(u)?p=To(u):h?(f=!1,p=ko(l,!0)):m?(f=!1,p=xo(l,!0)):p=[]:sa(l)||Us(l)?(p=u,Us(u)?p=ba(u):na(u)&&!Zs(u)||(p=yi(l))):f=!1}f&&(a.set(l,p),i(p,l,o,s,a),a.delete(l)),er(e,r,p)}}(e,n,a,r,Vr,o,i);else{var u=o?o(Ti(e,a),s,a+"",e,n,i):t;u===t&&(u=s),er(e,a,u)}}),Ia)}function Wr(e,n){var r=e.length;if(r)return _i(n+=n<0?r:0,r)?e[n]:t}function Ur(t,e,n){e=e.length?Ne(e,(function(t){return qs(t)?function(e){return Cr(e,1===t.length?t[0]:t)}:t})):[iu];var r=-1;e=Ne(e,Je(ci()));var o=jr(t,(function(t,n,o){var i=Ne(e,(function(e){return e(t)}));return{criteria:i,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(o,(function(t,e){return function(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,s=o.length,a=n.length;++r<s;){var u=Oo(o[r],i[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function qr(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var s=e[r],a=Cr(t,s);n(a,s)&&to(i,Do(s,t),a)}return i}function Kr(t,e,n,r){var o=r?Pe:Le,i=-1,s=e.length,a=t;for(t===e&&(e=To(e)),n&&(a=Ne(t,Je(n)));++i<s;)for(var u=0,l=e[i],c=n?n(l):l;(u=o(a,c,u,r))>-1;)a!==t&&Xt.call(a,u,1),Xt.call(t,u,1);return t}function Jr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;_i(o)?Xt.call(t,o,1):fo(t,o)}}return t}function Gr(t,e){return t+$e(wn()*(e-t+1))}function Yr(t,e){var n="";if(!t||e<1||e>c)return n;do{e%2&&(n+=t),(e=$e(e/2))&&(t+=t)}while(e);return n}function Xr(t,e){return Ii(Oi(t,e,iu),t+"")}function Qr(t){return Qn(Ha(t))}function Zr(t,e){var n=Ha(t);return Ri(n,ur(e,0,n.length))}function to(e,n,r,o){if(!na(e))return e;for(var i=-1,s=(n=Do(n,e)).length,a=s-1,u=e;null!=u&&++i<s;){var l=Pi(n[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var p=u[l];(c=o?o(p,l,u):t)===t&&(c=na(p)?p:_i(n[i+1])?[]:{})}nr(u,l,c),u=u[l]}return e}var eo=Tn?function(t,e){return Tn.set(t,e),t}:iu,no=le?function(t,e){return le(t,"toString",{configurable:!0,enumerable:!1,value:nu(e),writable:!0})}:iu;function ro(t){return Ri(Ha(t))}function oo(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Dt(o);++r<o;)i[r]=t[r+e];return i}function io(t,e){var n;return dr(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}function so(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=t[i];null!==s&&!ca(s)&&(n?s<=e:s<e)?r=i+1:o=i}return o}return ao(t,e,iu,n)}function ao(e,n,r,o){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(n=r(n))!=n,u=null===n,l=ca(n),c=n===t;i<s;){var p=$e((i+s)/2),f=r(e[p]),d=f!==t,h=null===f,m=f==f,g=ca(f);if(a)var v=o||m;else v=c?m&&(o||d):u?m&&d&&(o||!h):l?m&&d&&!h&&(o||!g):!h&&!g&&(o?f<=n:f<n);v?i=p+1:s=p}return _n(s,4294967294)}function uo(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!Hs(a,u)){var u=a;i[o++]=0===s?0:s}}return i}function lo(t){return"number"==typeof t?t:ca(t)?p:+t}function co(t){if("string"==typeof t)return t;if(qs(t))return Ne(t,co)+"";if(ca(t))return jn?jn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function po(t,e,n){var r=-1,o=Oe,i=t.length,s=!0,a=[],u=a;if(n)s=!1,o=Se;else if(i>=200){var l=e?null:Xo(t);if(l)return un(l);s=!1,o=Ye,u=new Gn}else u=e?[]:a;t:for(;++r<i;){var c=t[r],p=e?e(c):c;if(c=n||0!==c?c:0,s&&p==p){for(var f=u.length;f--;)if(u[f]===p)continue t;e&&u.push(p),a.push(c)}else o(u,p,n)||(u!==a&&u.push(p),a.push(c))}return a}function fo(t,e){return null==(t=Si(t,e=Do(e,t)))||delete t[Pi(Qi(e))]}function ho(t,e,n,r){return to(t,e,n(Cr(t,e)),r)}function mo(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?oo(t,r?0:i,r?i+1:o):oo(t,r?i+1:0,r?o:i)}function go(t,e){var n=t;return n instanceof Un&&(n=n.value()),Fe(e,(function(t,e){return e.func.apply(e.thisArg,Te([t],e.args))}),n)}function vo(t,e,n){var r=t.length;if(r<2)return r?po(t[0]):[];for(var o=-1,i=Dt(r);++o<r;)for(var s=t[o],a=-1;++a<r;)a!=o&&(i[o]=fr(i[o]||s,t[a],e,n));return po(yr(i,1),e,n)}function yo(e,n,r){for(var o=-1,i=e.length,s=n.length,a={};++o<i;){var u=o<s?n[o]:t;r(a,e[o],u)}return a}function bo(t){return Gs(t)?t:[]}function _o(t){return"function"==typeof t?t:iu}function Do(t,e){return qs(t)?t:Ei(t,e)?[t]:Li(_a(t))}var Eo=Xr;function wo(e,n,r){var o=e.length;return r=r===t?o:r,!n&&r>=o?e:oo(e,n,r)}var Co=pe||function(t){return ce.clearTimeout(t)};function ko(t,e){if(e)return t.slice();var n=t.length,r=Ut?Ut(n):new t.constructor(n);return t.copy(r),r}function Ao(t){var e=new t.constructor(t.byteLength);return new Wt(e).set(new Wt(t)),e}function xo(t,e){var n=e?Ao(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Oo(e,n){if(e!==n){var r=e!==t,o=null===e,i=e==e,s=ca(e),a=n!==t,u=null===n,l=n==n,c=ca(n);if(!u&&!c&&!s&&e>n||s&&a&&l&&!u&&!c||o&&a&&l||!r&&l||!i)return 1;if(!o&&!s&&!c&&e<n||c&&r&&i&&!o&&!s||u&&r&&i||!a&&i||!l)return-1}return 0}function So(t,e,n,r){for(var o=-1,i=t.length,s=n.length,a=-1,u=e.length,l=bn(i-s,0),c=Dt(u+l),p=!r;++a<u;)c[a]=e[a];for(;++o<s;)(p||o<i)&&(c[n[o]]=t[o]);for(;l--;)c[a++]=t[o++];return c}function No(t,e,n,r){for(var o=-1,i=t.length,s=-1,a=n.length,u=-1,l=e.length,c=bn(i-a,0),p=Dt(c+l),f=!r;++o<c;)p[o]=t[o];for(var d=o;++u<l;)p[d+u]=e[u];for(;++s<a;)(f||o<i)&&(p[d+n[s]]=t[o++]);return p}function To(t,e){var n=-1,r=t.length;for(e||(e=Dt(r));++n<r;)e[n]=t[n];return e}function Fo(e,n,r,o){var i=!r;r||(r={});for(var s=-1,a=n.length;++s<a;){var u=n[s],l=o?o(r[u],e[u],u,r,e):t;l===t&&(l=e[u]),i?sr(r,u,l):nr(r,u,l)}return r}function Mo(t,e){return function(n,r){var o=qs(n)?we:or,i=e?e():{};return o(n,t,ci(r,2),i)}}function Io(e){return Xr((function(n,r){var o=-1,i=r.length,s=i>1?r[i-1]:t,a=i>2?r[2]:t;for(s=e.length>3&&"function"==typeof s?(i--,s):t,a&&Di(r[0],r[1],a)&&(s=i<3?t:s,i=1),n=At(n);++o<i;){var u=r[o];u&&e(n,u,o,s)}return n}))}function $o(t,e){return function(n,r){if(null==n)return n;if(!Js(n))return t(n,r);for(var o=n.length,i=e?o:-1,s=At(n);(e?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function Bo(t){return function(e,n,r){for(var o=-1,i=At(e),s=r(e),a=s.length;a--;){var u=s[t?a:++o];if(!1===n(i[u],u,i))break}return e}}function Ro(e){return function(n){var r=rn(n=_a(n))?pn(n):t,o=r?r[0]:n.charAt(0),i=r?wo(r,1).join(""):n.slice(1);return o[e]()+i}}function Lo(t){return function(e){return Fe(Za(Ua(e).replace(Gt,"")),t,"")}}function Po(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Hn(t.prototype),r=t.apply(n,e);return na(r)?r:n}}function jo(e){return function(n,r,o){var i=At(n);if(!Js(n)){var s=ci(r,3);n=Ma(n),r=function(t){return s(i[t],t,i)}}var a=e(n,r,o);return a>-1?i[s?n[a]:a]:t}}function zo(n){return oi((function(r){var o=r.length,i=o,s=Wn.prototype.thru;for(n&&r.reverse();i--;){var a=r[i];if("function"!=typeof a)throw new St(e);if(s&&!u&&"wrapper"==ui(a))var u=new Wn([],!0)}for(i=u?i:o;++i<o;){var l=ui(a=r[i]),c="wrapper"==l?ai(a):t;u=c&&wi(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ui(c[0])].apply(u,c[3]):1==a.length&&wi(a)?u[l]():u.thru(a)}return function(){var t=arguments,e=t[0];if(u&&1==t.length&&qs(e))return u.plant(e).value();for(var n=0,i=o?r[n].apply(this,t):e;++n<o;)i=r[n].call(this,i);return i}}))}function Ho(e,n,r,o,i,s,u,l,c,p){var f=n&a,d=1&n,h=2&n,m=24&n,g=512&n,v=h?t:Po(e);return function t(){for(var a=arguments.length,y=Dt(a),b=a;b--;)y[b]=arguments[b];if(m)var _=li(t),D=Ze(y,_);if(o&&(y=So(y,o,i,m)),s&&(y=No(y,s,u,m)),a-=D,m&&a<p){var E=an(y,_);return Go(e,n,Ho,t.placeholder,r,y,E,l,c,p-a)}var w=d?r:this,C=h?w[e]:e;return a=y.length,l?y=Ni(y,l):g&&a>1&&y.reverse(),f&&c<a&&(y.length=c),this&&this!==ce&&this instanceof t&&(C=v||Po(C)),C.apply(w,y)}}function Vo(t,e){return function(n,r){return function(t,e,n,r){return Dr(t,(function(t,o,i){e(r,n(t),o,i)})),r}(n,t,e(r),{})}}function Wo(e,n){return function(r,o){var i;if(r===t&&o===t)return n;if(r!==t&&(i=r),o!==t){if(i===t)return o;"string"==typeof r||"string"==typeof o?(r=co(r),o=co(o)):(r=lo(r),o=lo(o)),i=e(r,o)}return i}}function Uo(t){return oi((function(e){return e=Ne(e,Je(ci())),Xr((function(n){var r=this;return t(e,(function(t){return Ee(t,r,n)}))}))}))}function qo(e,n){var r=(n=n===t?" ":co(n)).length;if(r<2)return r?Yr(n,e):n;var o=Yr(n,me(e/cn(n)));return rn(n)?wo(pn(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(n,r,o){return o&&"number"!=typeof o&&Di(n,r,o)&&(r=o=t),n=ma(n),r===t?(r=n,n=0):r=ma(r),function(t,e,n,r){for(var o=-1,i=bn(me((e-t)/(n||1)),0),s=Dt(i);i--;)s[r?i:++o]=t,t+=n;return s}(n,r,o=o===t?n<r?1:-1:ma(o),e)}}function Jo(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ya(e),n=ya(n)),t(e,n)}}function Go(e,n,r,o,a,u,l,c,p,f){var d=8&n;n|=d?i:s,4&(n&=~(d?s:i))||(n&=-4);var h=[e,n,a,d?u:t,d?l:t,d?t:u,d?t:l,c,p,f],m=r.apply(t,h);return wi(e)&&Fi(m,h),m.placeholder=o,$i(m,e,n)}function Yo(t){var e=kt[t];return function(t,n){if(t=ya(t),(n=null==n?0:_n(ga(n),292))&&gn(t)){var r=(_a(t)+"e").split("e");return+((r=(_a(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Xo=On&&1/un(new On([,-0]))[1]==l?function(t){return new On(t)}:cu;function Qo(t){return function(e){var n=gi(e);return n==E?on(e):n==x?ln(e):function(t,e){return Ne(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Zo(n,l,c,p,f,d,h,m){var g=2&l;if(!g&&"function"!=typeof n)throw new St(e);var v=p?p.length:0;if(v||(l&=-97,p=f=t),h=h===t?h:bn(ga(h),0),m=m===t?m:ga(m),v-=f?f.length:0,l&s){var y=p,b=f;p=f=t}var _=g?t:ai(n),D=[n,l,c,p,f,y,b,d,h,m];if(_&&function(t,e){var n=t[1],o=e[1],i=n|o,s=i<131,l=o==a&&8==n||o==a&&n==u&&t[7].length<=e[8]||384==o&&e[7].length<=e[8]&&8==n;if(!s&&!l)return t;1&o&&(t[2]=e[2],i|=1&n?0:4);var c=e[3];if(c){var p=t[3];t[3]=p?So(p,c,e[4]):c,t[4]=p?an(t[3],r):e[4]}(c=e[5])&&(p=t[5],t[5]=p?No(p,c,e[6]):c,t[6]=p?an(t[5],r):e[6]),(c=e[7])&&(t[7]=c),o&a&&(t[8]=null==t[8]?e[8]:_n(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(D,_),n=D[0],l=D[1],c=D[2],p=D[3],f=D[4],!(m=D[9]=D[9]===t?g?0:n.length:bn(D[9]-v,0))&&24&l&&(l&=-25),l&&1!=l)E=8==l||l==o?function(e,n,r){var o=Po(e);return function i(){for(var s=arguments.length,a=Dt(s),u=s,l=li(i);u--;)a[u]=arguments[u];var c=s<3&&a[0]!==l&&a[s-1]!==l?[]:an(a,l);return(s-=c.length)<r?Go(e,n,Ho,i.placeholder,t,a,c,t,t,r-s):Ee(this&&this!==ce&&this instanceof i?o:e,this,a)}}(n,l,m):l!=i&&33!=l||f.length?Ho.apply(t,D):function(t,e,n,r){var o=1&e,i=Po(t);return function e(){for(var s=-1,a=arguments.length,u=-1,l=r.length,c=Dt(l+a),p=this&&this!==ce&&this instanceof e?i:t;++u<l;)c[u]=r[u];for(;a--;)c[u++]=arguments[++s];return Ee(p,o?n:this,c)}}(n,l,c,p);else var E=function(t,e,n){var r=1&e,o=Po(t);return function e(){return(this&&this!==ce&&this instanceof e?o:t).apply(r?n:this,arguments)}}(n,l,c);return $i((_?eo:Fi)(E,D),n,l)}function ti(e,n,r,o){return e===t||Hs(e,Ft[r])&&!$t.call(o,r)?n:e}function ei(e,n,r,o,i,s){return na(e)&&na(n)&&(s.set(n,e),Vr(e,n,t,ei,s),s.delete(n)),e}function ni(e){return sa(e)?t:e}function ri(e,n,r,o,i,s){var a=1&r,u=e.length,l=n.length;if(u!=l&&!(a&&l>u))return!1;var c=s.get(e),p=s.get(n);if(c&&p)return c==n&&p==e;var f=-1,d=!0,h=2&r?new Gn:t;for(s.set(e,n),s.set(n,e);++f<u;){var m=e[f],g=n[f];if(o)var v=a?o(g,m,f,n,e,s):o(m,g,f,e,n,s);if(v!==t){if(v)continue;d=!1;break}if(h){if(!Ie(n,(function(t,e){if(!Ye(h,e)&&(m===t||i(m,t,r,o,s)))return h.push(e)}))){d=!1;break}}else if(m!==g&&!i(m,g,r,o,s)){d=!1;break}}return s.delete(e),s.delete(n),d}function oi(e){return Ii(Oi(e,t,Ki),e+"")}function ii(t){return kr(t,Ma,hi)}function si(t){return kr(t,Ia,mi)}var ai=Tn?function(t){return Tn.get(t)}:cu;function ui(t){for(var e=t.name+"",n=Fn[e],r=$t.call(Fn,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e}function li(t){return($t.call(zn,"placeholder")?zn:t).placeholder}function ci(){var t=zn.iteratee||su;return t=t===su?Br:t,arguments.length?t(arguments[0],arguments[1]):t}function pi(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function fi(t){for(var e=Ma(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Ai(o)]}return e}function di(e,n){var r=function(e,n){return null==e?t:e[n]}(e,n);return $r(r)?r:t}var hi=Ve?function(t){return null==t?[]:(t=At(t),xe(Ve(t),(function(e){return Jt.call(t,e)})))}:vu,mi=Ve?function(t){for(var e=[];t;)Te(e,hi(t)),t=qt(t);return e}:vu,gi=Ar;function vi(t,e,n){for(var r=-1,o=(e=Do(e,t)).length,i=!1;++r<o;){var s=Pi(e[r]);if(!(i=null!=t&&n(t,s)))break;t=t[s]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&ea(o)&&_i(s,o)&&(qs(t)||Us(t))}function yi(t){return"function"!=typeof t.constructor||ki(t)?{}:Hn(qt(t))}function bi(t){return qs(t)||Us(t)||!!(Zt&&t&&t[Zt])}function _i(t,e){var n=typeof t;return!!(e=null==e?c:e)&&("number"==n||"symbol"!=n&&vt.test(t))&&t>-1&&t%1==0&&t<e}function Di(t,e,n){if(!na(n))return!1;var r=typeof e;return!!("number"==r?Js(n)&&_i(e,n.length):"string"==r&&e in n)&&Hs(n[e],t)}function Ei(t,e){if(qs(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ca(t))||Z.test(t)||!Q.test(t)||null!=e&&t in At(e)}function wi(t){var e=ui(t),n=zn[e];if("function"!=typeof n||!(e in Un.prototype))return!1;if(t===n)return!0;var r=ai(n);return!!r&&t===r[0]}(kn&&gi(new kn(new ArrayBuffer(1)))!=F||An&&gi(new An)!=E||xn&&gi(xn.resolve())!=k||On&&gi(new On)!=x||Sn&&gi(new Sn)!=N)&&(gi=function(e){var n=Ar(e),r=n==C?e.constructor:t,o=r?ji(r):"";if(o)switch(o){case Mn:return F;case In:return E;case $n:return k;case Bn:return x;case Rn:return N}return n});var Ci=Mt?Zs:yu;function ki(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ft)}function Ai(t){return t==t&&!na(t)}function xi(e,n){return function(r){return null!=r&&r[e]===n&&(n!==t||e in At(r))}}function Oi(e,n,r){return n=bn(n===t?e.length-1:n,0),function(){for(var t=arguments,o=-1,i=bn(t.length-n,0),s=Dt(i);++o<i;)s[o]=t[n+o];o=-1;for(var a=Dt(n+1);++o<n;)a[o]=t[o];return a[n]=r(s),Ee(e,this,a)}}function Si(t,e){return e.length<2?t:Cr(t,oo(e,0,-1))}function Ni(e,n){for(var r=e.length,o=_n(n.length,r),i=To(e);o--;){var s=n[o];e[o]=_i(s,r)?i[s]:t}return e}function Ti(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Fi=Bi(eo),Mi=he||function(t,e){return ce.setTimeout(t,e)},Ii=Bi(no);function $i(t,e,n){var r=e+"";return Ii(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ce(h,(function(n){var r="_."+n[0];e&n[1]&&!Oe(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(at):[]}(r),n)))}function Bi(e){var n=0,r=0;return function(){var o=Dn(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(t,arguments)}}function Ri(e,n){var r=-1,o=e.length,i=o-1;for(n=n===t?o:n;++r<n;){var s=Gr(r,i),a=e[s];e[s]=e[r],e[r]=a}return e.length=n,e}var Li=function(t){var e=Bs(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,n,r,o){e.push(r?o.replace(ct,"$1"):n||t)})),e}));function Pi(t){if("string"==typeof t||ca(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ji(t){if(null!=t){try{return It.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zi(t){if(t instanceof Un)return t.clone();var e=new Wn(t.__wrapped__,t.__chain__);return e.__actions__=To(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Hi=Xr((function(t,e){return Gs(t)?fr(t,yr(e,1,Gs,!0)):[]})),Vi=Xr((function(e,n){var r=Qi(n);return Gs(r)&&(r=t),Gs(e)?fr(e,yr(n,1,Gs,!0),ci(r,2)):[]})),Wi=Xr((function(e,n){var r=Qi(n);return Gs(r)&&(r=t),Gs(e)?fr(e,yr(n,1,Gs,!0),t,r):[]}));function Ui(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ga(n);return o<0&&(o=bn(r+o,0)),Re(t,ci(e,3),o)}function qi(e,n,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==t&&(i=ga(r),i=r<0?bn(o+i,0):_n(i,o-1)),Re(e,ci(n,3),i,!0)}function Ki(t){return null!=t&&t.length?yr(t,1):[]}function Ji(e){return e&&e.length?e[0]:t}var Gi=Xr((function(t){var e=Ne(t,bo);return e.length&&e[0]===t[0]?Nr(e):[]})),Yi=Xr((function(e){var n=Qi(e),r=Ne(e,bo);return n===Qi(r)?n=t:r.pop(),r.length&&r[0]===e[0]?Nr(r,ci(n,2)):[]})),Xi=Xr((function(e){var n=Qi(e),r=Ne(e,bo);return(n="function"==typeof n?n:t)&&r.pop(),r.length&&r[0]===e[0]?Nr(r,t,n):[]}));function Qi(e){var n=null==e?0:e.length;return n?e[n-1]:t}var Zi=Xr(ts);function ts(t,e){return t&&t.length&&e&&e.length?Kr(t,e):t}var es=oi((function(t,e){var n=null==t?0:t.length,r=ar(t,e);return Jr(t,Ne(e,(function(t){return _i(t,n)?+t:t})).sort(Oo)),r}));function ns(t){return null==t?t:Cn.call(t)}var rs=Xr((function(t){return po(yr(t,1,Gs,!0))})),os=Xr((function(e){var n=Qi(e);return Gs(n)&&(n=t),po(yr(e,1,Gs,!0),ci(n,2))})),is=Xr((function(e){var n=Qi(e);return n="function"==typeof n?n:t,po(yr(e,1,Gs,!0),t,n)}));function ss(t){if(!t||!t.length)return[];var e=0;return t=xe(t,(function(t){if(Gs(t))return e=bn(t.length,e),!0})),qe(e,(function(e){return Ne(t,He(e))}))}function as(e,n){if(!e||!e.length)return[];var r=ss(e);return null==n?r:Ne(r,(function(e){return Ee(n,t,e)}))}var us=Xr((function(t,e){return Gs(t)?fr(t,e):[]})),ls=Xr((function(t){return vo(xe(t,Gs))})),cs=Xr((function(e){var n=Qi(e);return Gs(n)&&(n=t),vo(xe(e,Gs),ci(n,2))})),ps=Xr((function(e){var n=Qi(e);return n="function"==typeof n?n:t,vo(xe(e,Gs),t,n)})),fs=Xr(ss),ds=Xr((function(e){var n=e.length,r=n>1?e[n-1]:t;return r="function"==typeof r?(e.pop(),r):t,as(e,r)}));function hs(t){var e=zn(t);return e.__chain__=!0,e}function ms(t,e){return e(t)}var gs=oi((function(e){var n=e.length,r=n?e[0]:0,o=this.__wrapped__,i=function(t){return ar(t,e)};return!(n>1||this.__actions__.length)&&o instanceof Un&&_i(r)?((o=o.slice(r,+r+(n?1:0))).__actions__.push({func:ms,args:[i],thisArg:t}),new Wn(o,this.__chain__).thru((function(e){return n&&!e.length&&e.push(t),e}))):this.thru(i)})),vs=Mo((function(t,e,n){$t.call(t,n)?++t[n]:sr(t,n,1)})),ys=jo(Ui),bs=jo(qi);function _s(t,e){return(qs(t)?Ce:dr)(t,ci(e,3))}function Ds(t,e){return(qs(t)?ke:hr)(t,ci(e,3))}var Es=Mo((function(t,e,n){$t.call(t,n)?t[n].push(e):sr(t,n,[e])})),ws=Xr((function(t,e,n){var r=-1,o="function"==typeof e,i=Js(t)?Dt(t.length):[];return dr(t,(function(t){i[++r]=o?Ee(e,t,n):Tr(t,e,n)})),i})),Cs=Mo((function(t,e,n){sr(t,n,e)}));function ks(t,e){return(qs(t)?Ne:jr)(t,ci(e,3))}var As=Mo((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),xs=Xr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Di(t,e[0],e[1])?e=[]:n>2&&Di(e[0],e[1],e[2])&&(e=[e[0]]),Ur(t,yr(e,1),[])})),Os=fe||function(){return ce.Date.now()};function Ss(e,n,r){return n=r?t:n,n=e&&null==n?e.length:n,Zo(e,a,t,t,t,t,n)}function Ns(n,r){var o;if("function"!=typeof r)throw new St(e);return n=ga(n),function(){return--n>0&&(o=r.apply(this,arguments)),n<=1&&(r=t),o}}var Ts=Xr((function(t,e,n){var r=1;if(n.length){var o=an(n,li(Ts));r|=i}return Zo(t,r,e,n,o)})),Fs=Xr((function(t,e,n){var r=3;if(n.length){var o=an(n,li(Fs));r|=i}return Zo(e,r,t,n,o)}));function Ms(n,r,o){var i,s,a,u,l,c,p=0,f=!1,d=!1,h=!0;if("function"!=typeof n)throw new St(e);function m(e){var r=i,o=s;return i=s=t,p=e,u=n.apply(o,r)}function g(t){return p=t,l=Mi(y,r),f?m(t):u}function v(e){var n=e-c;return c===t||n>=r||n<0||d&&e-p>=a}function y(){var t=Os();if(v(t))return b(t);l=Mi(y,function(t){var e=r-(t-c);return d?_n(e,a-(t-p)):e}(t))}function b(e){return l=t,h&&i?m(e):(i=s=t,u)}function _(){var e=Os(),n=v(e);if(i=arguments,s=this,c=e,n){if(l===t)return g(c);if(d)return Co(l),l=Mi(y,r),m(c)}return l===t&&(l=Mi(y,r)),u}return r=ya(r)||0,na(o)&&(f=!!o.leading,a=(d="maxWait"in o)?bn(ya(o.maxWait)||0,r):a,h="trailing"in o?!!o.trailing:h),_.cancel=function(){l!==t&&Co(l),p=0,i=c=s=l=t},_.flush=function(){return l===t?u:b(Os())},_}var Is=Xr((function(t,e){return pr(t,1,e)})),$s=Xr((function(t,e,n){return pr(t,ya(e)||0,n)}));function Bs(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new St(e);var r=function(){var e=arguments,o=n?n.apply(this,e):e[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,e);return r.cache=i.set(o,s)||i,s};return r.cache=new(Bs.Cache||Jn),r}function Rs(t){if("function"!=typeof t)throw new St(e);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Bs.Cache=Jn;var Ls=Eo((function(t,e){var n=(e=1==e.length&&qs(e[0])?Ne(e[0],Je(ci())):Ne(yr(e,1),Je(ci()))).length;return Xr((function(r){for(var o=-1,i=_n(r.length,n);++o<i;)r[o]=e[o].call(this,r[o]);return Ee(t,this,r)}))})),Ps=Xr((function(e,n){var r=an(n,li(Ps));return Zo(e,i,t,n,r)})),js=Xr((function(e,n){var r=an(n,li(js));return Zo(e,s,t,n,r)})),zs=oi((function(e,n){return Zo(e,u,t,t,t,n)}));function Hs(t,e){return t===e||t!=t&&e!=e}var Vs=Jo(xr),Ws=Jo((function(t,e){return t>=e})),Us=Fr(function(){return arguments}())?Fr:function(t){return ra(t)&&$t.call(t,"callee")&&!Jt.call(t,"callee")},qs=Dt.isArray,Ks=ge?Je(ge):function(t){return ra(t)&&Ar(t)==T};function Js(t){return null!=t&&ea(t.length)&&!Zs(t)}function Gs(t){return ra(t)&&Js(t)}var Ys=mn||yu,Xs=ve?Je(ve):function(t){return ra(t)&&Ar(t)==y};function Qs(t){if(!ra(t))return!1;var e=Ar(t);return e==b||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!sa(t)}function Zs(t){if(!na(t))return!1;var e=Ar(t);return e==_||e==D||"[object AsyncFunction]"==e||"[object Proxy]"==e}function ta(t){return"number"==typeof t&&t==ga(t)}function ea(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function na(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ra(t){return null!=t&&"object"==typeof t}var oa=ye?Je(ye):function(t){return ra(t)&&gi(t)==E};function ia(t){return"number"==typeof t||ra(t)&&Ar(t)==w}function sa(t){if(!ra(t)||Ar(t)!=C)return!1;var e=qt(t);if(null===e)return!0;var n=$t.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&It.call(n)==Pt}var aa=be?Je(be):function(t){return ra(t)&&Ar(t)==A},ua=_e?Je(_e):function(t){return ra(t)&&gi(t)==x};function la(t){return"string"==typeof t||!qs(t)&&ra(t)&&Ar(t)==O}function ca(t){return"symbol"==typeof t||ra(t)&&Ar(t)==S}var pa=De?Je(De):function(t){return ra(t)&&ea(t.length)&&!!re[Ar(t)]},fa=Jo(Pr),da=Jo((function(t,e){return t<=e}));function ha(t){if(!t)return[];if(Js(t))return la(t)?pn(t):To(t);if(ie&&t[ie])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[ie]());var e=gi(t);return(e==E?on:e==x?un:Ha)(t)}function ma(t){return t?(t=ya(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ga(t){var e=ma(t),n=e%1;return e==e?n?e-n:e:0}function va(t){return t?ur(ga(t),0,d):0}function ya(t){if("number"==typeof t)return t;if(ca(t))return p;if(na(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=na(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ke(t);var n=ht.test(t);return n||gt.test(t)?ae(t.slice(2),n?2:8):dt.test(t)?p:+t}function ba(t){return Fo(t,Ia(t))}function _a(t){return null==t?"":co(t)}var Da=Io((function(t,e){if(ki(e)||Js(e))Fo(e,Ma(e),t);else for(var n in e)$t.call(e,n)&&nr(t,n,e[n])})),Ea=Io((function(t,e){Fo(e,Ia(e),t)})),wa=Io((function(t,e,n,r){Fo(e,Ia(e),t,r)})),Ca=Io((function(t,e,n,r){Fo(e,Ma(e),t,r)})),ka=oi(ar),Aa=Xr((function(e,n){e=At(e);var r=-1,o=n.length,i=o>2?n[2]:t;for(i&&Di(n[0],n[1],i)&&(o=1);++r<o;)for(var s=n[r],a=Ia(s),u=-1,l=a.length;++u<l;){var c=a[u],p=e[c];(p===t||Hs(p,Ft[c])&&!$t.call(e,c))&&(e[c]=s[c])}return e})),xa=Xr((function(e){return e.push(t,ei),Ee(Ba,t,e)}));function Oa(e,n,r){var o=null==e?t:Cr(e,n);return o===t?r:o}function Sa(t,e){return null!=t&&vi(t,e,Sr)}var Na=Vo((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),t[e]=n}),nu(iu)),Ta=Vo((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),$t.call(t,e)?t[e].push(n):t[e]=[n]}),ci),Fa=Xr(Tr);function Ma(t){return Js(t)?Xn(t):Rr(t)}function Ia(t){return Js(t)?Xn(t,!0):Lr(t)}var $a=Io((function(t,e,n){Vr(t,e,n)})),Ba=Io((function(t,e,n,r){Vr(t,e,n,r)})),Ra=oi((function(t,e){var n={};if(null==t)return n;var r=!1;e=Ne(e,(function(e){return e=Do(e,t),r||(r=e.length>1),e})),Fo(t,si(t),n),r&&(n=lr(n,7,ni));for(var o=e.length;o--;)fo(n,e[o]);return n})),La=oi((function(t,e){return null==t?{}:function(t,e){return qr(t,e,(function(e,n){return Sa(t,n)}))}(t,e)}));function Pa(t,e){if(null==t)return{};var n=Ne(si(t),(function(t){return[t]}));return e=ci(e),qr(t,n,(function(t,n){return e(t,n[0])}))}var ja=Qo(Ma),za=Qo(Ia);function Ha(t){return null==t?[]:Ge(t,Ma(t))}var Va=Lo((function(t,e,n){return e=e.toLowerCase(),t+(n?Wa(e):e)}));function Wa(t){return Qa(_a(t).toLowerCase())}function Ua(t){return(t=_a(t))&&t.replace(yt,tn).replace(Yt,"")}var qa=Lo((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ka=Lo((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ja=Ro("toLowerCase"),Ga=Lo((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Ya=Lo((function(t,e,n){return t+(n?" ":"")+Qa(e)})),Xa=Lo((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Qa=Ro("toUpperCase");function Za(e,n,r){return e=_a(e),(n=r?t:n)===t?function(t){return te.test(t)}(e)?function(t){return t.match(Qt)||[]}(e):function(t){return t.match(ut)||[]}(e):e.match(n)||[]}var tu=Xr((function(e,n){try{return Ee(e,t,n)}catch(t){return Qs(t)?t:new wt(t)}})),eu=oi((function(t,e){return Ce(e,(function(e){e=Pi(e),sr(t,e,Ts(t[e],t))})),t}));function nu(t){return function(){return t}}var ru=zo(),ou=zo(!0);function iu(t){return t}function su(t){return Br("function"==typeof t?t:lr(t,1))}var au=Xr((function(t,e){return function(n){return Tr(n,t,e)}})),uu=Xr((function(t,e){return function(n){return Tr(t,n,e)}}));function lu(t,e,n){var r=Ma(e),o=wr(e,r);null!=n||na(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=wr(e,Ma(e)));var i=!(na(n)&&"chain"in n&&!n.chain),s=Zs(t);return Ce(o,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__),o=n.__actions__=To(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Te([this.value()],arguments))})})),t}function cu(){}var pu=Uo(Ne),fu=Uo(Ae),du=Uo(Ie);function hu(t){return Ei(t)?He(Pi(t)):function(t){return function(e){return Cr(e,t)}}(t)}var mu=Ko(),gu=Ko(!0);function vu(){return[]}function yu(){return!1}var bu,_u=Wo((function(t,e){return t+e}),0),Du=Yo("ceil"),Eu=Wo((function(t,e){return t/e}),1),wu=Yo("floor"),Cu=Wo((function(t,e){return t*e}),1),ku=Yo("round"),Au=Wo((function(t,e){return t-e}),0);return zn.after=function(t,n){if("function"!=typeof n)throw new St(e);return t=ga(t),function(){if(--t<1)return n.apply(this,arguments)}},zn.ary=Ss,zn.assign=Da,zn.assignIn=Ea,zn.assignInWith=wa,zn.assignWith=Ca,zn.at=ka,zn.before=Ns,zn.bind=Ts,zn.bindAll=eu,zn.bindKey=Fs,zn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qs(t)?t:[t]},zn.chain=hs,zn.chunk=function(e,n,r){n=(r?Di(e,n,r):n===t)?1:bn(ga(n),0);var o=null==e?0:e.length;if(!o||n<1)return[];for(var i=0,s=0,a=Dt(me(o/n));i<o;)a[s++]=oo(e,i,i+=n);return a},zn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o},zn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=Dt(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Te(qs(n)?To(n):[n],yr(e,1))},zn.cond=function(t){var n=null==t?0:t.length,r=ci();return t=n?Ne(t,(function(t){if("function"!=typeof t[1])throw new St(e);return[r(t[0]),t[1]]})):[],Xr((function(e){for(var r=-1;++r<n;){var o=t[r];if(Ee(o[0],this,e))return Ee(o[1],this,e)}}))},zn.conforms=function(t){return function(t){var e=Ma(t);return function(n){return cr(n,t,e)}}(lr(t,1))},zn.constant=nu,zn.countBy=vs,zn.create=function(t,e){var n=Hn(t);return null==e?n:ir(n,e)},zn.curry=function e(n,r,o){var i=Zo(n,8,t,t,t,t,t,r=o?t:r);return i.placeholder=e.placeholder,i},zn.curryRight=function e(n,r,i){var s=Zo(n,o,t,t,t,t,t,r=i?t:r);return s.placeholder=e.placeholder,s},zn.debounce=Ms,zn.defaults=Aa,zn.defaultsDeep=xa,zn.defer=Is,zn.delay=$s,zn.difference=Hi,zn.differenceBy=Vi,zn.differenceWith=Wi,zn.drop=function(e,n,r){var o=null==e?0:e.length;return o?oo(e,(n=r||n===t?1:ga(n))<0?0:n,o):[]},zn.dropRight=function(e,n,r){var o=null==e?0:e.length;return o?oo(e,0,(n=o-(n=r||n===t?1:ga(n)))<0?0:n):[]},zn.dropRightWhile=function(t,e){return t&&t.length?mo(t,ci(e,3),!0,!0):[]},zn.dropWhile=function(t,e){return t&&t.length?mo(t,ci(e,3),!0):[]},zn.fill=function(e,n,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Di(e,n,r)&&(r=0,o=i),function(e,n,r,o){var i=e.length;for((r=ga(r))<0&&(r=-r>i?0:i+r),(o=o===t||o>i?i:ga(o))<0&&(o+=i),o=r>o?0:va(o);r<o;)e[r++]=n;return e}(e,n,r,o)):[]},zn.filter=function(t,e){return(qs(t)?xe:vr)(t,ci(e,3))},zn.flatMap=function(t,e){return yr(ks(t,e),1)},zn.flatMapDeep=function(t,e){return yr(ks(t,e),l)},zn.flatMapDepth=function(e,n,r){return r=r===t?1:ga(r),yr(ks(e,n),r)},zn.flatten=Ki,zn.flattenDeep=function(t){return null!=t&&t.length?yr(t,l):[]},zn.flattenDepth=function(e,n){return null!=e&&e.length?yr(e,n=n===t?1:ga(n)):[]},zn.flip=function(t){return Zo(t,512)},zn.flow=ru,zn.flowRight=ou,zn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},zn.functions=function(t){return null==t?[]:wr(t,Ma(t))},zn.functionsIn=function(t){return null==t?[]:wr(t,Ia(t))},zn.groupBy=Es,zn.initial=function(t){return null!=t&&t.length?oo(t,0,-1):[]},zn.intersection=Gi,zn.intersectionBy=Yi,zn.intersectionWith=Xi,zn.invert=Na,zn.invertBy=Ta,zn.invokeMap=ws,zn.iteratee=su,zn.keyBy=Cs,zn.keys=Ma,zn.keysIn=Ia,zn.map=ks,zn.mapKeys=function(t,e){var n={};return e=ci(e,3),Dr(t,(function(t,r,o){sr(n,e(t,r,o),t)})),n},zn.mapValues=function(t,e){var n={};return e=ci(e,3),Dr(t,(function(t,r,o){sr(n,r,e(t,r,o))})),n},zn.matches=function(t){return zr(lr(t,1))},zn.matchesProperty=function(t,e){return Hr(t,lr(e,1))},zn.memoize=Bs,zn.merge=$a,zn.mergeWith=Ba,zn.method=au,zn.methodOf=uu,zn.mixin=lu,zn.negate=Rs,zn.nthArg=function(t){return t=ga(t),Xr((function(e){return Wr(e,t)}))},zn.omit=Ra,zn.omitBy=function(t,e){return Pa(t,Rs(ci(e)))},zn.once=function(t){return Ns(2,t)},zn.orderBy=function(e,n,r,o){return null==e?[]:(qs(n)||(n=null==n?[]:[n]),qs(r=o?t:r)||(r=null==r?[]:[r]),Ur(e,n,r))},zn.over=pu,zn.overArgs=Ls,zn.overEvery=fu,zn.overSome=du,zn.partial=Ps,zn.partialRight=js,zn.partition=As,zn.pick=La,zn.pickBy=Pa,zn.property=hu,zn.propertyOf=function(e){return function(n){return null==e?t:Cr(e,n)}},zn.pull=Zi,zn.pullAll=ts,zn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Kr(t,e,ci(n,2)):t},zn.pullAllWith=function(e,n,r){return e&&e.length&&n&&n.length?Kr(e,n,t,r):e},zn.pullAt=es,zn.range=mu,zn.rangeRight=gu,zn.rearg=zs,zn.reject=function(t,e){return(qs(t)?xe:vr)(t,Rs(ci(e,3)))},zn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=ci(e,3);++r<i;){var s=t[r];e(s,r,t)&&(n.push(s),o.push(r))}return Jr(t,o),n},zn.rest=function(n,r){if("function"!=typeof n)throw new St(e);return Xr(n,r=r===t?r:ga(r))},zn.reverse=ns,zn.sampleSize=function(e,n,r){return n=(r?Di(e,n,r):n===t)?1:ga(n),(qs(e)?Zn:Zr)(e,n)},zn.set=function(t,e,n){return null==t?t:to(t,e,n)},zn.setWith=function(e,n,r,o){return o="function"==typeof o?o:t,null==e?e:to(e,n,r,o)},zn.shuffle=function(t){return(qs(t)?tr:ro)(t)},zn.slice=function(e,n,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Di(e,n,r)?(n=0,r=o):(n=null==n?0:ga(n),r=r===t?o:ga(r)),oo(e,n,r)):[]},zn.sortBy=xs,zn.sortedUniq=function(t){return t&&t.length?uo(t):[]},zn.sortedUniqBy=function(t,e){return t&&t.length?uo(t,ci(e,2)):[]},zn.split=function(e,n,r){return r&&"number"!=typeof r&&Di(e,n,r)&&(n=r=t),(r=r===t?d:r>>>0)?(e=_a(e))&&("string"==typeof n||null!=n&&!aa(n))&&!(n=co(n))&&rn(e)?wo(pn(e),0,r):e.split(n,r):[]},zn.spread=function(t,n){if("function"!=typeof t)throw new St(e);return n=null==n?0:bn(ga(n),0),Xr((function(e){var r=e[n],o=wo(e,0,n);return r&&Te(o,r),Ee(t,this,o)}))},zn.tail=function(t){var e=null==t?0:t.length;return e?oo(t,1,e):[]},zn.take=function(e,n,r){return e&&e.length?oo(e,0,(n=r||n===t?1:ga(n))<0?0:n):[]},zn.takeRight=function(e,n,r){var o=null==e?0:e.length;return o?oo(e,(n=o-(n=r||n===t?1:ga(n)))<0?0:n,o):[]},zn.takeRightWhile=function(t,e){return t&&t.length?mo(t,ci(e,3),!1,!0):[]},zn.takeWhile=function(t,e){return t&&t.length?mo(t,ci(e,3)):[]},zn.tap=function(t,e){return e(t),t},zn.throttle=function(t,n,r){var o=!0,i=!0;if("function"!=typeof t)throw new St(e);return na(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Ms(t,n,{leading:o,maxWait:n,trailing:i})},zn.thru=ms,zn.toArray=ha,zn.toPairs=ja,zn.toPairsIn=za,zn.toPath=function(t){return qs(t)?Ne(t,Pi):ca(t)?[t]:To(Li(_a(t)))},zn.toPlainObject=ba,zn.transform=function(t,e,n){var r=qs(t),o=r||Ys(t)||pa(t);if(e=ci(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:na(t)&&Zs(i)?Hn(qt(t)):{}}return(o?Ce:Dr)(t,(function(t,r,o){return e(n,t,r,o)})),n},zn.unary=function(t){return Ss(t,1)},zn.union=rs,zn.unionBy=os,zn.unionWith=is,zn.uniq=function(t){return t&&t.length?po(t):[]},zn.uniqBy=function(t,e){return t&&t.length?po(t,ci(e,2)):[]},zn.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?po(e,t,n):[]},zn.unset=function(t,e){return null==t||fo(t,e)},zn.unzip=ss,zn.unzipWith=as,zn.update=function(t,e,n){return null==t?t:ho(t,e,_o(n))},zn.updateWith=function(e,n,r,o){return o="function"==typeof o?o:t,null==e?e:ho(e,n,_o(r),o)},zn.values=Ha,zn.valuesIn=function(t){return null==t?[]:Ge(t,Ia(t))},zn.without=us,zn.words=Za,zn.wrap=function(t,e){return Ps(_o(e),t)},zn.xor=ls,zn.xorBy=cs,zn.xorWith=ps,zn.zip=fs,zn.zipObject=function(t,e){return yo(t||[],e||[],nr)},zn.zipObjectDeep=function(t,e){return yo(t||[],e||[],to)},zn.zipWith=ds,zn.entries=ja,zn.entriesIn=za,zn.extend=Ea,zn.extendWith=wa,lu(zn,zn),zn.add=_u,zn.attempt=tu,zn.camelCase=Va,zn.capitalize=Wa,zn.ceil=Du,zn.clamp=function(e,n,r){return r===t&&(r=n,n=t),r!==t&&(r=(r=ya(r))==r?r:0),n!==t&&(n=(n=ya(n))==n?n:0),ur(ya(e),n,r)},zn.clone=function(t){return lr(t,4)},zn.cloneDeep=function(t){return lr(t,5)},zn.cloneDeepWith=function(e,n){return lr(e,5,n="function"==typeof n?n:t)},zn.cloneWith=function(e,n){return lr(e,4,n="function"==typeof n?n:t)},zn.conformsTo=function(t,e){return null==e||cr(t,e,Ma(e))},zn.deburr=Ua,zn.defaultTo=function(t,e){return null==t||t!=t?e:t},zn.divide=Eu,zn.endsWith=function(e,n,r){e=_a(e),n=co(n);var o=e.length,i=r=r===t?o:ur(ga(r),0,o);return(r-=n.length)>=0&&e.slice(r,i)==n},zn.eq=Hs,zn.escape=function(t){return(t=_a(t))&&J.test(t)?t.replace(q,en):t},zn.escapeRegExp=function(t){return(t=_a(t))&&nt.test(t)?t.replace(et,"\\$&"):t},zn.every=function(e,n,r){var o=qs(e)?Ae:mr;return r&&Di(e,n,r)&&(n=t),o(e,ci(n,3))},zn.find=ys,zn.findIndex=Ui,zn.findKey=function(t,e){return Be(t,ci(e,3),Dr)},zn.findLast=bs,zn.findLastIndex=qi,zn.findLastKey=function(t,e){return Be(t,ci(e,3),Er)},zn.floor=wu,zn.forEach=_s,zn.forEachRight=Ds,zn.forIn=function(t,e){return null==t?t:br(t,ci(e,3),Ia)},zn.forInRight=function(t,e){return null==t?t:_r(t,ci(e,3),Ia)},zn.forOwn=function(t,e){return t&&Dr(t,ci(e,3))},zn.forOwnRight=function(t,e){return t&&Er(t,ci(e,3))},zn.get=Oa,zn.gt=Vs,zn.gte=Ws,zn.has=function(t,e){return null!=t&&vi(t,e,Or)},zn.hasIn=Sa,zn.head=Ji,zn.identity=iu,zn.includes=function(t,e,n,r){t=Js(t)?t:Ha(t),n=n&&!r?ga(n):0;var o=t.length;return n<0&&(n=bn(o+n,0)),la(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&Le(t,e,n)>-1},zn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ga(n);return o<0&&(o=bn(r+o,0)),Le(t,e,o)},zn.inRange=function(e,n,r){return n=ma(n),r===t?(r=n,n=0):r=ma(r),function(t,e,n){return t>=_n(e,n)&&t<bn(e,n)}(e=ya(e),n,r)},zn.invoke=Fa,zn.isArguments=Us,zn.isArray=qs,zn.isArrayBuffer=Ks,zn.isArrayLike=Js,zn.isArrayLikeObject=Gs,zn.isBoolean=function(t){return!0===t||!1===t||ra(t)&&Ar(t)==v},zn.isBuffer=Ys,zn.isDate=Xs,zn.isElement=function(t){return ra(t)&&1===t.nodeType&&!sa(t)},zn.isEmpty=function(t){if(null==t)return!0;if(Js(t)&&(qs(t)||"string"==typeof t||"function"==typeof t.splice||Ys(t)||pa(t)||Us(t)))return!t.length;var e=gi(t);if(e==E||e==x)return!t.size;if(ki(t))return!Rr(t).length;for(var n in t)if($t.call(t,n))return!1;return!0},zn.isEqual=function(t,e){return Mr(t,e)},zn.isEqualWith=function(e,n,r){var o=(r="function"==typeof r?r:t)?r(e,n):t;return o===t?Mr(e,n,t,r):!!o},zn.isError=Qs,zn.isFinite=function(t){return"number"==typeof t&&gn(t)},zn.isFunction=Zs,zn.isInteger=ta,zn.isLength=ea,zn.isMap=oa,zn.isMatch=function(t,e){return t===e||Ir(t,e,fi(e))},zn.isMatchWith=function(e,n,r){return r="function"==typeof r?r:t,Ir(e,n,fi(n),r)},zn.isNaN=function(t){return ia(t)&&t!=+t},zn.isNative=function(t){if(Ci(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return $r(t)},zn.isNil=function(t){return null==t},zn.isNull=function(t){return null===t},zn.isNumber=ia,zn.isObject=na,zn.isObjectLike=ra,zn.isPlainObject=sa,zn.isRegExp=aa,zn.isSafeInteger=function(t){return ta(t)&&t>=-9007199254740991&&t<=c},zn.isSet=ua,zn.isString=la,zn.isSymbol=ca,zn.isTypedArray=pa,zn.isUndefined=function(e){return e===t},zn.isWeakMap=function(t){return ra(t)&&gi(t)==N},zn.isWeakSet=function(t){return ra(t)&&"[object WeakSet]"==Ar(t)},zn.join=function(t,e){return null==t?"":vn.call(t,e)},zn.kebabCase=qa,zn.last=Qi,zn.lastIndexOf=function(e,n,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==t&&(i=(i=ga(r))<0?bn(o+i,0):_n(i,o-1)),n==n?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(e,n,i):Re(e,je,i,!0)},zn.lowerCase=Ka,zn.lowerFirst=Ja,zn.lt=fa,zn.lte=da,zn.max=function(e){return e&&e.length?gr(e,iu,xr):t},zn.maxBy=function(e,n){return e&&e.length?gr(e,ci(n,2),xr):t},zn.mean=function(t){return ze(t,iu)},zn.meanBy=function(t,e){return ze(t,ci(e,2))},zn.min=function(e){return e&&e.length?gr(e,iu,Pr):t},zn.minBy=function(e,n){return e&&e.length?gr(e,ci(n,2),Pr):t},zn.stubArray=vu,zn.stubFalse=yu,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Cu,zn.nth=function(e,n){return e&&e.length?Wr(e,ga(n)):t},zn.noConflict=function(){return ce._===this&&(ce._=jt),this},zn.noop=cu,zn.now=Os,zn.pad=function(t,e,n){t=_a(t);var r=(e=ga(e))?cn(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return qo($e(o),n)+t+qo(me(o),n)},zn.padEnd=function(t,e,n){t=_a(t);var r=(e=ga(e))?cn(t):0;return e&&r<e?t+qo(e-r,n):t},zn.padStart=function(t,e,n){t=_a(t);var r=(e=ga(e))?cn(t):0;return e&&r<e?qo(e-r,n)+t:t},zn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),En(_a(t).replace(rt,""),e||0)},zn.random=function(e,n,r){if(r&&"boolean"!=typeof r&&Di(e,n,r)&&(n=r=t),r===t&&("boolean"==typeof n?(r=n,n=t):"boolean"==typeof e&&(r=e,e=t)),e===t&&n===t?(e=0,n=1):(e=ma(e),n===t?(n=e,e=0):n=ma(n)),e>n){var o=e;e=n,n=o}if(r||e%1||n%1){var i=wn();return _n(e+i*(n-e+se("1e-"+((i+"").length-1))),n)}return Gr(e,n)},zn.reduce=function(t,e,n){var r=qs(t)?Fe:We,o=arguments.length<3;return r(t,ci(e,4),n,o,dr)},zn.reduceRight=function(t,e,n){var r=qs(t)?Me:We,o=arguments.length<3;return r(t,ci(e,4),n,o,hr)},zn.repeat=function(e,n,r){return n=(r?Di(e,n,r):n===t)?1:ga(n),Yr(_a(e),n)},zn.replace=function(){var t=arguments,e=_a(t[0]);return t.length<3?e:e.replace(t[1],t[2])},zn.result=function(e,n,r){var o=-1,i=(n=Do(n,e)).length;for(i||(i=1,e=t);++o<i;){var s=null==e?t:e[Pi(n[o])];s===t&&(o=i,s=r),e=Zs(s)?s.call(e):s}return e},zn.round=ku,zn.runInContext=f,zn.sample=function(t){return(qs(t)?Qn:Qr)(t)},zn.size=function(t){if(null==t)return 0;if(Js(t))return la(t)?cn(t):t.length;var e=gi(t);return e==E||e==x?t.size:Rr(t).length},zn.snakeCase=Ga,zn.some=function(e,n,r){var o=qs(e)?Ie:io;return r&&Di(e,n,r)&&(n=t),o(e,ci(n,3))},zn.sortedIndex=function(t,e){return so(t,e)},zn.sortedIndexBy=function(t,e,n){return ao(t,e,ci(n,2))},zn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=so(t,e);if(r<n&&Hs(t[r],e))return r}return-1},zn.sortedLastIndex=function(t,e){return so(t,e,!0)},zn.sortedLastIndexBy=function(t,e,n){return ao(t,e,ci(n,2),!0)},zn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=so(t,e,!0)-1;if(Hs(t[n],e))return n}return-1},zn.startCase=Ya,zn.startsWith=function(t,e,n){return t=_a(t),n=null==n?0:ur(ga(n),0,t.length),e=co(e),t.slice(n,n+e.length)==e},zn.subtract=Au,zn.sum=function(t){return t&&t.length?Ue(t,iu):0},zn.sumBy=function(t,e){return t&&t.length?Ue(t,ci(e,2)):0},zn.template=function(e,n,r){var o=zn.templateSettings;r&&Di(e,n,r)&&(n=t),e=_a(e),n=wa({},n,o,ti);var i,s,a=wa({},n.imports,o.imports,ti),u=Ma(a),l=Ge(a,u),c=0,p=n.interpolate||bt,f="__p += '",d=xt((n.escape||bt).source+"|"+p.source+"|"+(p===X?pt:bt).source+"|"+(n.evaluate||bt).source+"|$","g"),h="//# sourceURL="+($t.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ne+"]")+"\n";e.replace(d,(function(t,n,r,o,a,u){return r||(r=o),f+=e.slice(c,u).replace(_t,nn),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),a&&(s=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),f+="';\n";var m=$t.call(n,"variable")&&n.variable;if(m){if(lt.test(m))throw new wt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(H,""):f).replace(V,"$1").replace(W,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=tu((function(){return Ct(u,h+"return "+f).apply(t,l)}));if(g.source=f,Qs(g))throw g;return g},zn.times=function(t,e){if((t=ga(t))<1||t>c)return[];var n=d,r=_n(t,d);e=ci(e),t-=d;for(var o=qe(r,e);++n<t;)e(n);return o},zn.toFinite=ma,zn.toInteger=ga,zn.toLength=va,zn.toLower=function(t){return _a(t).toLowerCase()},zn.toNumber=ya,zn.toSafeInteger=function(t){return t?ur(ga(t),-9007199254740991,c):0===t?t:0},zn.toString=_a,zn.toUpper=function(t){return _a(t).toUpperCase()},zn.trim=function(e,n,r){if((e=_a(e))&&(r||n===t))return Ke(e);if(!e||!(n=co(n)))return e;var o=pn(e),i=pn(n);return wo(o,Xe(o,i),Qe(o,i)+1).join("")},zn.trimEnd=function(e,n,r){if((e=_a(e))&&(r||n===t))return e.slice(0,fn(e)+1);if(!e||!(n=co(n)))return e;var o=pn(e);return wo(o,0,Qe(o,pn(n))+1).join("")},zn.trimStart=function(e,n,r){if((e=_a(e))&&(r||n===t))return e.replace(rt,"");if(!e||!(n=co(n)))return e;var o=pn(e);return wo(o,Xe(o,pn(n))).join("")},zn.truncate=function(e,n){var r=30,o="...";if(na(n)){var i="separator"in n?n.separator:i;r="length"in n?ga(n.length):r,o="omission"in n?co(n.omission):o}var s=(e=_a(e)).length;if(rn(e)){var a=pn(e);s=a.length}if(r>=s)return e;var u=r-cn(o);if(u<1)return o;var l=a?wo(a,0,u).join(""):e.slice(0,u);if(i===t)return l+o;if(a&&(u+=l.length-u),aa(i)){if(e.slice(u).search(i)){var c,p=l;for(i.global||(i=xt(i.source,_a(ft.exec(i))+"g")),i.lastIndex=0;c=i.exec(p);)var f=c.index;l=l.slice(0,f===t?u:f)}}else if(e.indexOf(co(i),u)!=u){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+o},zn.unescape=function(t){return(t=_a(t))&&K.test(t)?t.replace(U,dn):t},zn.uniqueId=function(t){var e=++Bt;return _a(t)+e},zn.upperCase=Xa,zn.upperFirst=Qa,zn.each=_s,zn.eachRight=Ds,zn.first=Ji,lu(zn,(bu={},Dr(zn,(function(t,e){$t.call(zn.prototype,e)||(bu[e]=t)})),bu),{chain:!1}),zn.VERSION="4.17.21",Ce(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){zn[t].placeholder=zn})),Ce(["drop","take"],(function(e,n){Un.prototype[e]=function(r){r=r===t?1:bn(ga(r),0);var o=this.__filtered__&&!n?new Un(this):this.clone();return o.__filtered__?o.__takeCount__=_n(r,o.__takeCount__):o.__views__.push({size:_n(r,d),type:e+(o.__dir__<0?"Right":"")}),o},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ce(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Un.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ci(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ce(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Un.prototype[t]=function(){return this[n](1).value()[0]}})),Ce(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Un.prototype[t]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(iu)},Un.prototype.find=function(t){return this.filter(t).head()},Un.prototype.findLast=function(t){return this.reverse().find(t)},Un.prototype.invokeMap=Xr((function(t,e){return"function"==typeof t?new Un(this):this.map((function(n){return Tr(n,t,e)}))})),Un.prototype.reject=function(t){return this.filter(Rs(ci(t)))},Un.prototype.slice=function(e,n){e=ga(e);var r=this;return r.__filtered__&&(e>0||n<0)?new Un(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==t&&(r=(n=ga(n))<0?r.dropRight(-n):r.take(n-e)),r)},Un.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Un.prototype.toArray=function(){return this.take(d)},Dr(Un.prototype,(function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=zn[o?"take"+("last"==n?"Right":""):n],s=o||/^find/.test(n);i&&(zn.prototype[n]=function(){var n=this.__wrapped__,a=o?[1]:arguments,u=n instanceof Un,l=a[0],c=u||qs(n),p=function(t){var e=i.apply(zn,Te([t],a));return o&&f?e[0]:e};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var f=this.__chain__,d=!!this.__actions__.length,h=s&&!f,m=u&&!d;if(!s&&c){n=m?n:new Un(this);var g=e.apply(n,a);return g.__actions__.push({func:ms,args:[p],thisArg:t}),new Wn(g,f)}return h&&m?e.apply(this,a):(g=this.thru(p),h?o?g.value()[0]:g.value():g)})})),Ce(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Nt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);zn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(qs(o)?o:[],t)}return this[n]((function(n){return e.apply(qs(n)?n:[],t)}))}})),Dr(Un.prototype,(function(t,e){var n=zn[e];if(n){var r=n.name+"";$t.call(Fn,r)||(Fn[r]=[]),Fn[r].push({name:e,func:n})}})),Fn[Ho(t,2).name]=[{name:"wrapper",func:t}],Un.prototype.clone=function(){var t=new Un(this.__wrapped__);return t.__actions__=To(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=To(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=To(this.__views__),t},Un.prototype.reverse=function(){if(this.__filtered__){var t=new Un(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Un.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=qs(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=_n(e,t+s);break;case"takeRight":t=bn(t,e-s)}}return{start:t,end:e}}(0,o,this.__views__),s=i.start,a=i.end,u=a-s,l=r?a:s-1,c=this.__iteratees__,p=c.length,f=0,d=_n(u,this.__takeCount__);if(!n||!r&&o==u&&d==u)return go(t,this.__actions__);var h=[];t:for(;u--&&f<d;){for(var m=-1,g=t[l+=e];++m<p;){var v=c[m],y=v.iteratee,b=v.type,_=y(g);if(2==b)g=_;else if(!_){if(1==b)continue t;break t}}h[f++]=g}return h},zn.prototype.at=gs,zn.prototype.chain=function(){return hs(this)},zn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===t&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?t:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var n,r=this;r instanceof Vn;){var o=zi(r);o.__index__=0,o.__values__=t,n?i.__wrapped__=o:n=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,n},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var n=e;return this.__actions__.length&&(n=new Un(this)),(n=n.reverse()).__actions__.push({func:ms,args:[ns],thisArg:t}),new Wn(n,this.__chain__)}return this.thru(ns)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,ie&&(zn.prototype[ie]=function(){return this}),zn}();fe?((fe.exports=hn)._=hn,pe._=hn):ce._=hn}.call(f);class bd extends ou{static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new bd(e.pos,t.markFromJSON(e.mark))}constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){const e=t.nodeAt(this.pos);if(!e)return iu.fail("No node at mark step's position");const n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks)),r=new ta(Js.from(n),0,e.isLeaf?0:1);return iu.fromReplace(t,this.pos,this.pos+1,r)}invert(t){const e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new _d(this.pos,this.mark):this}map(t){const e=t.mapResult(this.pos,1);return e.deletedAfter?null:new bd(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}}ou.jsonID("removeNodeMark",bd);class _d extends ou{static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new _d(e.pos,t.markFromJSON(e.mark))}constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){const e=t.nodeAt(this.pos);if(!e)return iu.fail("No node at mark step's position");const n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks)),r=new ta(Js.from(n),0,e.isLeaf?0:1);return iu.fromReplace(t,this.pos,this.pos+1,r)}invert(t){const e=t.nodeAt(this.pos);if(e){const t=this.mark.addToSet(e.marks);if(t.length===e.marks.length){for(const n of e.marks)if(!n.isInSet(t))return new _d(this.pos,n);return new _d(this.pos,this.mark)}}return new bd(this.pos,this.mark)}map(t){const e=t.mapResult(this.pos,1);return e.deletedAfter?null:new _d(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}}ou.jsonID("addNodeMark",_d);class Dd extends ou{static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Dd(e.pos,e.attr,e.value)}constructor(t,e,n){super(),this.pos=t,this.attr=e,this.value=n}apply(t){const e=t.nodeAt(this.pos);if(!e)return iu.fail("No node at attribute step's position");const n=Object.create(null);for(let t in e.attrs)n[t]=e.attrs[t];n[this.attr]=this.value;const r=e.type.create(n,null,e.marks),o=new ta(Js.from(r),0,e.isLeaf?0:1);return iu.fromReplace(t,this.pos,this.pos+1,o)}getMap(){return eu.empty}invert(t){return new Dd(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Dd(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}}ou.jsonID("attr",Dd);const Ed=Ip.create({name:"node_processor",addCommands:()=>({setBlockAttributes:Nf((({commands:t,state:e},n,r,o={})=>{const i=ze(t.getBlockAttributes(n))??{},{doc:s,tr:a}=e,{from:u,to:l}=a.selection;s.nodesBetween(u,l,((t,e)=>{id.blocks.includes(t.type.name)&&a.step(new Dd(e,n,{...o,...i,...r}))}))})),getBlockAttributes:Nf((({editor:t},e,n)=>We((()=>{let r=Object.assign({},n||{});for(const n of id.blocks)Object.assign(r,t.getAttributes(n)?.[e]||{});return Object.keys(r).length?r:null})))),removeBlockAttributes:Nf((({commands:t},e)=>{for(const n of id.blocks)t.resetAttributes(n,e)})),applyMark:Nf((({state:t,commands:e},n,r,o={})=>{const{tr:i,doc:s,schema:a}=t,{$from:u,$to:l}=i.selection,c=Pp(ad.LINK,a),p=Pp(n,a);if(!(p.spec.group||"").includes(ud.SETTINGS))return e.setMark(n,r);if(u.pos===l.pos)return;s.nodesBetween(u.pos,l.pos,((t,s)=>{if(t.type.name===id.LIST)return;const a=function(t,e){const n="string"==typeof e?e:e.name;return t.find((t=>t.type.name===n))}(t.marks,n),f=p.create({...a?.attrs||{},...r}),d=fd(u,l,t,s),h=!c.isInSet(t.marks)&&function(t,e,n,r=hd){const o=t.resolve(e).path.reverse();for(const t of o)if("number"!=typeof t)for(const e of t.marks)if(r(e,n))return!0;return!1}(i.doc,s,f,o.isAppliedToParent);if(h)return(t=>{if(!o.onAppliedToParent||!1===o.onAppliedToParent(t)){const{tr:n,node:r,position:o,mark:i}=t;e._removeNodeMark({tr:n,node:r,position:o,mark:i.type})}})({tr:i,node:t,position:s,mark:f});t.isText?i.addMark(d.from,d.to,f):function(t,e,n,r){const o=dd(t,r),i=e.from-o<=r,s=e.to+o>=n.nodeSize+r;return i&&s}(i.doc,i.selection,t,s)&&i.step(new _d(s,f))}))})),getMarks:Nf((({editor:t},e)=>{const n=Ve(t,"state");return We((()=>{const{selection:t,doc:r}=ze(n),{from:o,to:i}=ze(t),s=[];return r.nodesBetween(o,i,(t=>{for(const n of t.marks)n.type.name===e&&s.unshift(n.attrs)})),s}))})),getMark:Nf((({commands:t},e)=>{const n=t.getMarks(e);return We((()=>ze(n)[0]??null))})),hasMark:Nf((({commands:t},e)=>{const n=t.getMark(e);return We((()=>!!ze(n)))})),getCommonSettingMark:Nf((({commands:t},e,n)=>{const r=t.getMark(e);return We((()=>ze(r)?.value??ze(n)))})),getDeviceSettingMark:Nf((({commands:t},e,n)=>{const r=t.getMarks(e),o=t.getDevice();return We((()=>{for(const t of ze(r)){const e=t[ze(o)];if(e)return e}return ze(n)}))})),removeAllMarks:Nf((({state:t,commands:e})=>{const{tr:n,doc:r}=t,{from:o,to:i}=n.selection;r.nodesBetween(o,i,((t,r)=>{for(const o of t.marks)e._removeNodeMark({tr:n,node:t,position:r,mark:o})}))})),removeMarks:Nf((({state:t,commands:e},n)=>{const{tr:r,doc:o}=t,{from:i,to:s}=r.selection;o.nodesBetween(i,s,((t,o)=>{const i=t.marks.filter((t=>n.includes(t.type.name)));for(const n of i)e._removeNodeMark({tr:r,node:t,position:o,mark:n})}))})),_removeNodeMark:Nf(((t,{tr:e,node:n,position:r,mark:o})=>n.isText?e.removeMark(r,r+n.nodeSize,o):e.step(new bd(r,o))))})}),wd=Ip.create({name:"text_processor",addCommands:()=>({getSelectedText:Nf((({state:t})=>{const{from:e,to:n}=t.selection;return t.doc.textBetween(e,n," ")})),transformText:Nf((({state:t},e)=>{const{$from:n,$to:r}=t.tr.selection;n.pos!==r.pos&&t.doc.nodesBetween(n.pos,r.pos,((o,i)=>{if(!o.isText)return;const s=fd(n,r,o,i),a=Math.max(0,n.pos-i),u=Math.max(0,r.pos-i),l=e({text:o.textContent.substring(a,u)}),c=t.schema.text(l,o.marks);t.tr.replaceWith(s.from,s.to,c)}))}))})}),Cd=Ip.create({name:"selection_processor",addStorage:()=>({selection:null}),addCommands(){return{storeSelection:Nf((({state:t})=>{this.storage.selection=t.selection})),restoreSelection:Nf((({commands:t})=>{this.storage.selection&&t.setTextSelection(this.storage.selection)})),expandSelection:Nf((({tr:t,commands:e},n)=>{let r=t.selection.from,o=t.selection.to;t.doc.nodesBetween(r,o,((e,i,s)=>{if(n({node:e,parent:s})){const n=e.isText?0:dd(t.doc,i);r=Math.min(r,i+n),o=Math.max(o,i+e.nodeSize-n)}})),e.setTextSelection({from:r,to:o})})),expandSelectionToBlock:Nf((({commands:t})=>{t.expandSelection((({parent:t})=>t.type.name===id.DOCUMENT))}))}}}),kd=af.create({name:"doc",topNode:!0,content:"block+"}).extend({marks:ud.SETTINGS}),Ad=af.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",gp(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),xd=Ad.extend({marks:ud.ALL,addOptions:()=>({HTMLAttributes:{class:"zw-style"}})}),Od=af.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map((t=>({tag:`h${t}`,attrs:{level:t}})))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,gp(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.setNode(this.name,t),toggleHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return this.options.levels.reduce(((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})})),{})},addInputRules(){return this.options.levels.map((t=>function(t){return new kp({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),i=yp(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,i)}})}({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}})))}}),Sd=Od.extend({marks:ud.ALL,addOptions:()=>({levels:[1,2,3,4],HTMLAttributes:{class:"zw-style"}})});class Nd{static create(t,e){const n=new this(t,e||{});return new Ku({key:new Yu(this.name),props:n.buildProps()})}constructor(t,e){this.options=e,this.editor=t}buildProps(){return{}}}class Td extends Nd{buildProps(){return{transformPastedHTML:this._transformPastedHTML.bind(this),handlePaste:this._handlePaste.bind(this)}}_transformPastedHTML(t){if(t.includes("data-pm-slice")&&t.includes("zw-style"))return t;const e=Kh.build(t);return e.normalizeHTML(),this._removeDeprecatedStyles(e),e.normalizedHTML}_removeDeprecatedStyles(t){const e=t.dom.querySelectorAll('[style*="margin"]');for(const t of Array.from(e))t.style.removeProperty("margin"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-right"),t.style.removeProperty("margin-bottom"),t.style.removeProperty("margin-left")}_handlePaste(t,e,n){const r=this._insertPastedContent(t,n).scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste");return t.dispatch(r),!0}_insertPastedContent({state:t,input:e},n){return this._isFullBlockSelected(t)?t.tr.replaceSelectionWith(n.content,e.shiftKey):t.tr.replaceSelection(n)}_isFullBlockSelected(t){const e=this._expandSelectionToBlocks(t),n=this._isMatchPosition(e.from,t.selection.from),r=this._isMatchPosition(e.to,t.selection.to);return n&&r}_expandSelectionToBlocks({selection:t,doc:e}){let n=t.from,r=t.to;return e.nodesBetween(n,r,((t,e,o)=>{o.type.name===id.DOCUMENT&&(n=Math.min(n,e+1),r=Math.max(r,e+t.nodeSize-1))})),{from:n,to:r}}_isMatchPosition(t,e){return Math.abs(t-e)<5}}class Fd extends Nd{buildProps(){return{decorations:this.#t.bind(this)}}#t({doc:t}){const e=[];return this.editor.isEditable?t.childCount>1?void 0:(t.descendants(((t,n)=>{if(!t.childCount){const r=Ac.node(n,n+t.nodeSize,{class:"zw-wysiwyg__placeholder","data-placeholder":"Type your text here..."});e.push(r)}return!1})),Sc.create(t,e)):null}}const Md=Ip.create({name:"prose_mirror_plugins",addProseMirrorPlugins(){return[Td.create(this.editor),Fd.create(this.editor)]}}),Id=sf.create({name:ad.FONT_FAMILY,group:ud.SETTINGS,addOptions:()=>({fonts:[]}),addAttributes:()=>({value:{required:!0}}),addCommands(){return{applyFontFamily:Nf((({commands:t},e)=>{t.applyMark(this.name,{value:e});const n=t.findFontByName(e);let r=ze(t.getFontWeight());n.isWeightSupported(r)||(r=n.findClosestWeight(r),t.applyFontWeight(r)),n.isItalicSupported(r)||t.removeItalic()})),getFont:Nf((({commands:t})=>{const e=ze(this.options.defaultPreset),n=t.findFontByName(e.common.font_family),r=t.getFontFamily();return We((()=>t.findFontByName(ze(r))||n))})),findFontByName:Nf(((t,e)=>this.options.fonts.find((t=>t.name===e)))),getFontFamily:Nf((({commands:t})=>t.getCommonSettingMark(this.name,t.getDefaultFontFamily()))),getDefaultFontFamily:Nf((({commands:t})=>{const e=t.getPreset();return We((()=>ze(e).common.font_family))}))}},parseHTML(){const t=t=>({value:t.replace(/["']/g,"")});return[{style:"--zw-font-family",getAttrs:t},{style:"font-family",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Ff({font_family:t.value?`"${t.value}"`:null})}),$d=Ip.create({name:ad.STYLE_PRESET,addGlobalAttributes(){return[{types:[id.PARAGRAPH,id.HEADING],attributes:{preset:{isRequired:!1,default:{id:this.options.defaultId},parseHTML:t=>{const e=ze(this.options.presets);if("LI"===t.parentElement.tagName)return null;for(const{id:n,node:r,fallbackClass:o}of e){if(o&&t.classList.contains(o))return{id:n};const e=this.options.styleRenderer.makePresetCssClass({id:n});if(t.matches(e))return{id:n};if(t.tagName===`H${r?.level}`)return{id:n}}return"P"===t.tagName?{id:this.options.defaultId}:null},renderHTML:t=>t.preset?{class:this.options.styleRenderer.makePresetHtmlClass(t.preset)}:null}}}]},addCommands(){function t(t,e){return t.find((t=>e===t.id))}function e(t,e){const n={};for(const r of Object.keys(t)){const o=t[r],i=e[r],s=!i||"inherit"===i.toLowerCase();n[r]=s?o:i}return n}return{getPresetList:Nf((()=>We((()=>this.options.presets.filter((t=>!t.hidden)))))),getPreset:Nf((({commands:n})=>{const r=n.getBlockAttributes("preset",{id:this.options.defaultId}),o=n.getPresetList(),i=n.isLink(),s=n.getLinkPreset();return We((()=>{const n=t(ze(o),ze(r).id);if(!ze(i))return n;const a=ze(s);return{id:n.id,common:e(n.common,a.common),mobile:e(n.mobile,a.mobile),tablet:e(n.tablet,a.tablet),desktop:e(n.desktop,a.desktop)}}))})),applyPreset:Nf((({commands:e,chain:n},r)=>{const o=t(ze(e.getPresetList()),r),i=o.node?.type??id.PARAGRAPH,s={preset:{id:r}};o.node&&(s.level=o.node.level);for(const t of ad.attributes)s[t]=ze(e.getBlockAttributes(t));n().removeList().setNode(i,s).run()})),applyDefaultPreset:Nf((({commands:t})=>{t.applyPreset(this.options.defaultId)})),removePreset:Nf((({commands:t})=>{t.setNode(id.PARAGRAPH,{preset:null})})),getPresetCustomization:Nf((({editor:t,commands:e})=>{const n=Ve(t,"state");return We((()=>{const{selection:t,doc:r}=ze(n),{from:o,to:i}=t;return e._getSettingCustomization(r,o,i)}))})),isSettingCustomized:Nf((({commands:t},e)=>{const n=t.getPresetCustomization(),r=ad.attributes.includes(e)?"attributes":"marks";return We((()=>ze(n)[r]?.includes(e)??!1))})),getContentCustomization:Nf((({editor:t,commands:e})=>{const n=Ve(t,"state");return We((()=>{const{doc:t}=ze(n);return e._getSettingCustomization(t,0,t.content.size)}))})),_getSettingCustomization:Nf(((t,e,n,r)=>{const o=new Set,i=new Set;return e.nodesBetween(n,r,(t=>{for(const[e,n]of Object.entries(t.attrs)){ad.attributes.includes(e)&&n&&i.add(e)}for(const{type:e}of t.marks)ad.marks.includes(e.name)&&o.add(e.name)})),{attributes:Array.from(i),marks:Array.from(o)}})),removePresetCustomization:Nf((({chain:t})=>{t().storeSelection().expandSelectionToBlock().removeMarks(ad.marks).resetAttributes(id.PARAGRAPH,ad.attributes).resetAttributes(id.HEADING,ad.attributes).restoreSelection().run()})),removeFormat:Nf((({chain:t})=>{t().storeSelection().expandSelectionToBlock().removeAllMarks().applyDefaultPreset().restoreSelection().run()}))}},onCreate(){this.options.styleRenderer.inject(Jh.head,this.options.presets)}}),Bd=sf.create({name:ad.FONT_WEIGHT,group:ud.SETTINGS,addAttributes:()=>({value:{required:!0}}),addCommands(){return{applyFontWeight:Nf((({commands:t},e)=>{t.applyMark(this.name,{value:e});ze(t.getFont()).isItalicSupported(e)||t.removeItalic()})),toggleBold:Nf((({commands:t})=>{const e=ze(t.getFontWeight()),n=ze(t.getFont()),r=Number(e)>=600?"400":"700",o=n.findClosestWeight(r);t.applyFontWeight(o)})),getFontWeight:Nf((({commands:t})=>{const e=t.getCommonSettingMark(this.name,t.getDefaultFontWeight()),n=t.getFont();return We((()=>{const t=ze(e),r=ze(n);return r.isWeightSupported(t)?t:r.findClosestWeight(t)}))})),getDefaultFontWeight:Nf((({commands:t})=>{const e=t.getPreset();return We((()=>ze(e).common.font_weight))}))}},addKeyboardShortcuts:()=>({"Mod-b":Mf("toggleBold"),"Mod-B":Mf("toggleBold")}),parseHTML(){const t=t=>"bold"===t?{value:"700"}:!!Number(t)&&{value:t};return[{style:"--zw-font-weight",getAttrs:t},{style:"font-weight",getAttrs:t},{tag:"b",attrs:{value:"700"}},{tag:"strong",attrs:{value:"700"}}]},renderHTML:({HTMLAttributes:t})=>Ff({font_weight:t.value})}),Rd=sf.create({name:ad.FONT_SIZE,group:ud.SETTINGS,addOptions:()=>({minSize:1,maxSize:100}),addAttributes:()=>({mobile:{default:null},tablet:{default:null},desktop:{default:null}}),addCommands(){return{getFontSize:Nf((({commands:t})=>t.getDeviceSettingMark(this.name,t.getDefaultFontSize()))),getDefaultFontSize:Nf((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return We((()=>ze(n)[ze(e)].font_size.replace("px","")))})),applyFontSize:Nf((({commands:t},e)=>{const n=ze(t.getDevice());t.applyMark(this.name,{[n]:e},{isAppliedToParent:(t,e)=>t.type.name===e.type.name&&t.attrs[n]===e.attrs[n],onAppliedToParent:({tr:t,node:e,position:r,mark:o})=>{const i={...o.attrs,[n]:null},s=!Object.values(i).some((t=>!!t));if(s)return!1;const a=o.type.create(i);e.isText?t.addMark(r,r+e.nodeSize,a):t.step(new _d(r,a))}})})),increaseFontSize:Nf((({commands:t})=>{const e=Number(ze(t.getFontSize())),n=Math.min(e+1,this.options.maxSize);t.applyFontSize(String(n))})),decreaseFontSize:Nf((({commands:t})=>{const e=Number(ze(t.getFontSize())),n=Math.max(e-1,this.options.minSize);t.applyFontSize(String(n))}))}},addKeyboardShortcuts:()=>({"Mod-Shift-=":Mf("increaseFontSize"),"Mod-Shift--":Mf("decreaseFontSize")}),parseHTML(){const t=t=>{if(!t)return null;const e=td(t,ze(this.options.wrapperRef));return String(e)};return[{tag:'[style*="--zw-font-size"]',getAttrs:({style:e})=>({mobile:t(e.getPropertyValue("--zw-font-size-mobile")),tablet:t(e.getPropertyValue("--zw-font-size-tablet")),desktop:t(e.getPropertyValue("--zw-font-size-desktop"))})},{style:"font-size",getAttrs:e=>{const n=t(e);return{desktop:n,tablet:n,mobile:null}}}]},renderHTML({HTMLAttributes:t}){const e=t=>t?`${t}px`:null;return Ff({font_size_mobile:e(t.mobile),font_size_tablet:e(t.tablet),font_size_desktop:e(t.desktop)})}}),Ld=sf.create({name:ad.FONT_COLOR,group:ud.SETTINGS,addAttributes:()=>({value:{required:!0}}),addCommands(){return{getFontColor:Nf((({commands:t})=>t.getCommonSettingMark(this.name,t.getDefaultFontColor()))),getDefaultFontColor:Nf((({commands:t})=>{const e=t.getPreset();return We((()=>ze(e).common.color))})),applyFontColor:Nf((({commands:t},e)=>{t.applyMark(this.name,{value:e})}))}},parseHTML(){const t=t=>({value:Zf(t)});return[{style:"--zw-font-color",getAttrs:t},{style:"color",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Ff({font_color:t.value})}),Pd=sf.create({name:ad.BACKGROUND_COLOR,addAttributes:()=>({value:{required:!0}}),addCommands(){return{getBackgroundColor:Nf((({commands:t})=>t.getCommonSettingMark(this.name,"rgba(255, 255, 255, 0%)"))),applyBackgroundColor:Nf((({commands:t},e)=>{t.applyMark(this.name,{value:e})}))}},parseHTML(){const t=t=>({value:Zf(t)});return[{style:"--zw-background-color",getAttrs:t},{style:"background-color",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Ff({background_color:t.value})}),jd=Ip.create({name:"device_manager",addCommands(){return{getDevice:Nf((()=>Ve(this.options,"device")))}}}),zd=sf.create({name:ad.FONT_STYLE,group:ud.SETTINGS,addAttributes:()=>({italic:{required:!0}}),addCommands(){return{isItalic:Nf((({commands:t})=>{const e=t.getMark(this.name),n=t.getDefaultFontStyle();return We((()=>ze(e)?.italic??ze(n).italic))})),isItalicAvailable:Nf((({commands:t})=>{const e=t.getFont(),n=t.getFontWeight();return We((()=>{const t=ze(e),r=ze(n);return t.isItalicSupported(r)&&!t.isWeightItalicOnly(r)}))})),getDefaultFontStyle:Nf((({commands:t})=>{const e=t.getPreset();return We((()=>({italic:"italic"===ze(e).common.font_style})))})),toggleItalic:Nf((({commands:t})=>{ze(t.isItalicAvailable())&&(ze(t.isItalic())?t.removeItalic():t.applyItalic())})),applyItalic:Nf((({commands:t})=>{t.applyMark(this.name,{italic:!0})})),removeItalic:Nf((({commands:t})=>{t.applyMark(this.name,{italic:!1})}))}},addKeyboardShortcuts:()=>({"Mod-i":Mf("toggleItalic"),"Mod-I":Mf("toggleItalic")}),parseHTML(){const t=t=>({italic:t.includes("italic")});return[{tag:"i",attrs:{italic:!0}},{style:"--zw-font-style",getAttrs:t},{style:"font-style",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Ff({font_style:t.italic?"italic":"normal"})}),Hd=sf.create({name:ad.TEXT_DECORATION,priority:1e3,addAttributes:()=>({underline:{default:!1},strike_through:{default:!1}}),addCommands(){return{isUnderline:Nf((({commands:t})=>{const e=t.getTextDecoration();return We((()=>ze(e).underline))})),isStrikeThrough:Nf((({commands:t})=>{const e=t.getTextDecoration();return We((()=>ze(e).strike_through))})),getTextDecoration:Nf((({commands:t})=>{const e=t.getMark(this.name),n=t.getDefaultTextDecoration();return We((()=>{const t=ze(e)??{},r=ze(n);return{underline:t.underline||r.underline,strike_through:t.strike_through||r.strike_through}}))})),isUnderlineCustomized:Nf((({commands:t})=>{const e=t.isUnderline(),n=t.getDefaultTextDecoration();return We((()=>ze(e)!==ze(n).underline))})),getDefaultTextDecoration:Nf((({commands:t})=>{const e=t.getPreset();return We((()=>{const{text_decoration:t}=ze(e).common;return{underline:t.includes("underline"),strike_through:t.includes("line-through")}}))})),toggleUnderline:Nf((({commands:t})=>{t.toggleTextDecoration("underline")})),toggleStrikeThrough:Nf((({commands:t})=>{t.toggleTextDecoration("strike_through")})),toggleTextDecoration:Nf((({commands:t},e,n=null)=>{const r=ze(t.getTextDecoration()),o=n??!r[e];t.applyMark(this.name,{[e]:o})})),applyTextDecoration:Nf((({commands:t},e)=>{t.toggleTextDecoration(e,!0)})),removeTextDecoration:Nf((({commands:t},e)=>{t.toggleTextDecoration(e,!1)}))}},addKeyboardShortcuts:()=>({"Mod-u":Mf("toggleUnderline"),"Mod-U":Mf("toggleUnderline")}),parseHTML(){const t=t=>{const e=t.includes("underline"),n=t.includes("line-through");return!(!e&&!n)&&{underline:e,strike_through:n}};return[{style:"--zw-text-decoration",getAttrs:t},{style:"text-decoration-line",getAttrs:t},{style:"text-decoration",getAttrs:t},{tag:"s",attrs:{underline:!1,strike_through:!0}},{tag:"u",attrs:{underline:!0,strike_through:!1}}]},renderHTML({HTMLAttributes:t}){const e=[];return t.underline&&e.push("underline"),t.strike_through&&e.push("line-through"),e.length||e.push("none"),Ff({text_decoration:e.join(" ")})}}),Vd=Ip.create({name:"case_style",addCommands:()=>({applyCaseStyle:Nf((({commands:t},e)=>{switch(e){case rd.CAPITALIZE:return t.applyCapitalize();case rd.LOWERCASE:return t.applyLowerCase();case rd.UPPERCASE:return t.applyUpperCase()}})),applyCapitalize:Nf((({commands:t})=>{t.transformText((({text:t})=>function(t){return t.toLowerCase().replace(/(?:^|\s)\S/g,(t=>t.toUpperCase()))}(t)))})),applyLowerCase:Nf((({commands:t})=>{t.transformText((({text:t})=>t.toLowerCase()))})),applyUpperCase:Nf((({commands:t})=>{t.transformText((({text:t})=>t.toUpperCase()))}))})}),Wd={mobile:null,tablet:null,desktop:null},Ud=Ip.create({name:ad.ALIGNMENT,addGlobalAttributes:()=>[{types:[id.PARAGRAPH,id.HEADING],attributes:{[ad.ALIGNMENT]:{isRequired:!1,parseHTML({style:t}){const e=function(t){const e=pd[t]||t;return od.values.includes(e)?e:null}(t.textAlign);if(e)return{desktop:e,tablet:e,mobile:e};const n=t.getPropertyValue("--zw-alignment-mobile")||null,r=t.getPropertyValue("--zw-alignment-tablet")||null,o=t.getPropertyValue("--zw-alignment-desktop")||null;return n||r||o?{desktop:o,tablet:r,mobile:n}:null},renderHTML:t=>t.alignment?Tf({alignment_mobile:t.alignment.mobile,alignment_tablet:t.alignment.tablet,alignment_desktop:t.alignment.desktop}):null}}}],addCommands(){return{toggleAlignment:Nf((({commands:t},e)=>{ze(t.getAlignment())===e?t.removeAlignment():t.applyAlignment(e)})),applyAlignment:Nf((({commands:t},e)=>{const n=ze(t.getDevice());t.setBlockAttributes(this.name,{[n]:e},Wd)})),removeAlignment:Nf((({commands:t})=>t.removeBlockAttributes(this.name))),getAlignment:Nf((({commands:t})=>{const e=t.getBlockAttributes(this.name,Wd),n=t.getDevice(),r=t.getDefaultAlignment();return We((()=>ze(e)?.[ze(n)]??ze(r)))})),getDefaultAlignment:Nf((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return We((()=>ze(n)[ze(e)].alignment))}))}},addKeyboardShortcuts:()=>({"Mod-Shift-l":Mf("applyAlignment",od.LEFT),"Mod-Shift-e":Mf("applyAlignment",od.CENTER),"Mod-Shift-r":Mf("applyAlignment",od.RIGHT),"Mod-Shift-j":Mf("applyAlignment",od.JUSTIFY)})}),qd={mobile:null,tablet:null,desktop:null},Kd=Ip.create({name:ad.LINE_HEIGHT,addGlobalAttributes(){return[{types:[id.PARAGRAPH,id.HEADING],attributes:{[ad.LINE_HEIGHT]:{isRequired:!1,parseHTML:t=>{if(t.matches('[style*="--zw-line-height"]')){return{mobile:null,tablet:t.style.getPropertyValue("--zw-line-height-tablet")||null,desktop:t.style.getPropertyValue("--zw-line-height-desktop")||null}}const e=t.style.lineHeight;if(!e)return null;const n=ed(e,t,ze(this.options.wrapperRef));return n?{desktop:n,tablet:n,mobile:null}:null},renderHTML:t=>t.line_height?Tf({line_height_mobile:t.line_height.mobile,line_height_tablet:t.line_height.tablet,line_height_desktop:t.line_height.desktop}):null}}}]},addCommands(){return{getLineHeight:Nf((({commands:t})=>{const e=t.getBlockAttributes(this.name,qd),n=t.getDevice(),r=t.getDefaultLineHeight();return We((()=>ze(e)?.[ze(n)]??ze(r)))})),getDefaultLineHeight:Nf((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return We((()=>ze(n)[ze(e)].line_height))})),applyLineHeight:Nf((({commands:t},e)=>{const n=ze(t.getDevice());t.setBlockAttributes(this.name,{[n]:e},qd)}))}}}),Jd=af.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",gp(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}).extend({name:id.LIST_ITEM,marks:ud.SETTINGS,addCommands(){const t=({selection:t})=>t.$cursor.before(t.$cursor.depth-1);return{listItemNewline:Nf((({commands:e,tr:n})=>{const r=n.doc.nodeAt(t(n));if(!n.selection.$cursor.node().textContent)return!1;e.splitListItem(this.name);const o=t(n);for(const t of r.marks)n.step(new _d(o,yd(t)));return!0}))}},addOptions:()=>({HTMLAttributes:{class:"zw-style"}}),addKeyboardShortcuts:()=>({Enter:t=>{const{state:e,commands:n}=t.editor,r=e.selection.$cursor?.path.some((t=>t.type?.name===id.LIST));if(r)return n.listItemNewline()}})}),Gd=af.create({name:id.LIST,content:`${id.LIST_ITEM}+`,group:"block list",marks:ud.SETTINGS,addExtensions:()=>[Jd],addOptions:()=>({baseClass:"",presetClass:""}),addAttributes:()=>({bullet:{default:{type:sd.DISC}}}),parseHTML(){const t={a:sd.ROMAN,i:sd.LATIN,1:sd.DECIMAL},e=e=>{for(const n of sd.values){const r=`.${this.options.baseClass}${n}`;if(e.matches(r))return n;if(t[e.type.toLowerCase()]===n)return n}};return[{tag:"ol",getAttrs:t=>({bullet:{type:e(t)||sd.DECIMAL}})},{tag:"ul",getAttrs:t=>({bullet:{type:e(t)||sd.DISC}})}]},renderHTML({HTMLAttributes:t}){const e=[this.options.baseClass+t.bullet.type,this.options.presetClass];return[sd.ordered.includes(t.bullet.type)?"ol":"ul",{class:e.join(" ")},0]},addCommands:()=>({getListType:Nf((({commands:t})=>{const e=t.getBlockAttributes("bullet",{type:null});return We((()=>ze(e).type??null))})),applyList:Nf((({commands:t,chain:e},n)=>{if(ze(t.getListType())!==n)return e().applyDefaultPreset().toggleList(id.LIST,id.LIST_ITEM).setBlockAttributes("bullet",{type:n}).command((({commands:t,tr:e})=>t._bubbleListItemMarks(e))).run();t.removeList()})),_bubbleListItemMarks:Nf(((t,e)=>{const{doc:n,selection:r}=e,o=r.$from.start(),i=r.$to.end();function s(t,e){if(ad.inlineMarks.includes(e.type))return!1;if(e.type.isInSet(t.marks))return!1;for(const n of t.content.content)if(n.childCount){if(!n.marks)return!1;if(!e.isInSet(n.marks))return!1}return!0}n.nodesBetween(o,i,((t,n)=>{if(t.type.name===id.LIST)return;if(t.type.name!==id.LIST_ITEM)return!1;const r=[];return t.forEach((o=>{for(const i of o.marks)i.isInSet(r)?e.step(new bd(n+1,i)):s(t,i)&&(e.step(new bd(n+1,i)),e.step(new _d(n,yd(i))),r.push(i))})),!1}))})),removeList:Nf((({commands:t,state:e})=>{const{tr:n,doc:r,selection:o}=e,i=o.$from.start(),s=o.$to.end();r.nodesBetween(i,s,((t,e,r)=>{if([id.LIST,id.LIST_ITEM].includes(t.type.name))return;if(r.type.name!==id.LIST_ITEM)return!1;const o=r.marks.filter((function(e){return!e.type.isInSet(t.marks)}));for(const t of o)n.step(new _d(e,yd(t)));return!1})),t.liftListItem(id.LIST_ITEM)}))}),addInputRules(){const t=(t,e)=>function(t){return new kp({find:t.find,handler:({state:e,range:n,match:r})=>{const o=yp(t.getAttributes,void 0,r)||{},i=e.tr.delete(n.from,n.to),s=i.doc.resolve(n.from).blockRange(),a=s&&hu(s,t.type,o);if(!a)return null;i.wrap(s,a);const u=i.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&vu(i.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,u))&&i.join(n.from-1)}})}({find:e,type:this.type,getAttributes:{bullet:{type:t}},joinPredicate:(e,{attrs:n})=>n.bullet.type===t});return[t(sd.DISC,/^\s*([-+*])\s$/),t(sd.DECIMAL,/^(\d+)\.\s$/),t(sd.LATIN,/^([ivx]{1,3})\.\s$/i),t(sd.ROMAN,/^([a-z])\.\s$/i)]}});function Yd(t){this.j={},this.jr=[],this.jd=null,this.t=t}Yd.prototype={accepts:function(){return!!this.t},tt:function(t,e){if(e&&e.j)return this.j[t]=e,e;var n=e,r=this.j[t];if(r)return n&&(r.t=n),r;r=Xd();var o=eh(this,t);return o?(Object.assign(r.j,o.j),r.jr.append(o.jr),r.jr=o.jd,r.t=n||o.t):r.t=n,this.j[t]=r,r}};var Xd=function(){return new Yd},Qd=function(t){return new Yd(t)},Zd=function(t,e,n){t.j[e]||(t.j[e]=n)},th=function(t,e,n){t.jr.push([e,n])},eh=function(t,e){var n=t.j[e];if(n)return n;for(var r=0;r<t.jr.length;r++){var o=t.jr[r][0],i=t.jr[r][1];if(o.test(e))return i}return t.jd},nh=function(t,e,n){for(var r=0;r<e.length;r++)Zd(t,e[r],n)},rh=function(t,e){for(var n=0;n<e.length;n++){var r=e[n][0],o=e[n][1];Zd(t,r,o)}},oh=function(t,e,n,r){for(var o,i=0,s=e.length;i<s&&(o=t.j[e[i]]);)t=o,i++;if(i>=s)return[];for(;i<s-1;)o=r(),Zd(t,e[i],o),t=o,i++;Zd(t,e[s-1],n)},ih="DOMAIN",sh="TLD",ah="NUM",uh="AT",lh="DOT",ch="SLASH",ph=Object.freeze({__proto__:null,DOMAIN:ih,LOCALHOST:"LOCALHOST",TLD:sh,NUM:ah,PROTOCOL:"PROTOCOL",MAILTO:"MAILTO",WS:"WS",NL:"NL",OPENBRACE:"OPENBRACE",OPENBRACKET:"OPENBRACKET",OPENANGLEBRACKET:"OPENANGLEBRACKET",OPENPAREN:"OPENPAREN",CLOSEBRACE:"CLOSEBRACE",CLOSEBRACKET:"CLOSEBRACKET",CLOSEANGLEBRACKET:"CLOSEANGLEBRACKET",CLOSEPAREN:"CLOSEPAREN",AMPERSAND:"AMPERSAND",APOSTROPHE:"APOSTROPHE",ASTERISK:"ASTERISK",AT:uh,BACKSLASH:"BACKSLASH",BACKTICK:"BACKTICK",CARET:"CARET",COLON:"COLON",COMMA:"COMMA",DOLLAR:"DOLLAR",DOT:lh,EQUALS:"EQUALS",EXCLAMATION:"EXCLAMATION",HYPHEN:"HYPHEN",PERCENT:"PERCENT",PIPE:"PIPE",PLUS:"PLUS",POUND:"POUND",QUERY:"QUERY",QUOTE:"QUOTE",SEMI:"SEMI",SLASH:ch,TILDE:"TILDE",UNDERSCORE:"UNDERSCORE",SYM:"SYM"}),fh="aaa aarp abarth abb abbott abbvie abc able abogado abudhabi ac academy accenture accountant accountants aco actor ad adac ads adult ae aeg aero aetna af afamilycompany afl africa ag agakhan agency ai aig airbus airforce airtel akdn al alfaromeo alibaba alipay allfinanz allstate ally alsace alstom am amazon americanexpress americanfamily amex amfam amica amsterdam analytics android anquan anz ao aol apartments app apple aq aquarelle ar arab aramco archi army arpa art arte as asda asia associates at athleta attorney au auction audi audible audio auspost author auto autos avianca aw aws ax axa az azure ba baby baidu banamex bananarepublic band bank bar barcelona barclaycard barclays barefoot bargains baseball basketball bauhaus bayern bb bbc bbt bbva bcg bcn bd be beats beauty beer bentley berlin best bestbuy bet bf bg bh bharti bi bible bid bike bing bingo bio biz bj black blackfriday blockbuster blog bloomberg blue bm bms bmw bn bnpparibas bo boats boehringer bofa bom bond boo book booking bosch bostik boston bot boutique box br bradesco bridgestone broadway broker brother brussels bs bt budapest bugatti build builders business buy buzz bv bw by bz bzh ca cab cafe cal call calvinklein cam camera camp cancerresearch canon capetown capital capitalone car caravan cards care career careers cars casa case cash casino cat catering catholic cba cbn cbre cbs cc cd center ceo cern cf cfa cfd cg ch chanel channel charity chase chat cheap chintai christmas chrome church ci cipriani circle cisco citadel citi citic city cityeats ck cl claims cleaning click clinic clinique clothing cloud club clubmed cm cn co coach codes coffee college cologne com comcast commbank community company compare computer comsec condos construction consulting contact contractors cooking cookingchannel cool coop corsica country coupon coupons courses cpa cr credit creditcard creditunion cricket crown crs cruise cruises csc cu cuisinella cv cw cx cy cymru cyou cz dabur dad dance data date dating datsun day dclk dds de deal dealer deals degree delivery dell deloitte delta democrat dental dentist desi design dev dhl diamonds diet digital direct directory discount discover dish diy dj dk dm dnp do docs doctor dog domains dot download drive dtv dubai duck dunlop dupont durban dvag dvr dz earth eat ec eco edeka edu education ee eg email emerck energy engineer engineering enterprises epson equipment er ericsson erni es esq estate et etisalat eu eurovision eus events exchange expert exposed express extraspace fage fail fairwinds faith family fan fans farm farmers fashion fast fedex feedback ferrari ferrero fi fiat fidelity fido film final finance financial fire firestone firmdale fish fishing fit fitness fj fk flickr flights flir florist flowers fly fm fo foo food foodnetwork football ford forex forsale forum foundation fox fr free fresenius frl frogans frontdoor frontier ftr fujitsu fujixerox fun fund furniture futbol fyi ga gal gallery gallo gallup game games gap garden gay gb gbiz gd gdn ge gea gent genting george gf gg ggee gh gi gift gifts gives giving gl glade glass gle global globo gm gmail gmbh gmo gmx gn godaddy gold goldpoint golf goo goodyear goog google gop got gov gp gq gr grainger graphics gratis green gripe grocery group gs gt gu guardian gucci guge guide guitars guru gw gy hair hamburg hangout haus hbo hdfc hdfcbank health healthcare help helsinki here hermes hgtv hiphop hisamitsu hitachi hiv hk hkt hm hn hockey holdings holiday homedepot homegoods homes homesense honda horse hospital host hosting hot hoteles hotels hotmail house how hr hsbc ht hu hughes hyatt hyundai ibm icbc ice icu id ie ieee ifm ikano il im imamat imdb immo immobilien in inc industries infiniti info ing ink institute insurance insure int international intuit investments io ipiranga iq ir irish is ismaili ist istanbul it itau itv iveco jaguar java jcb je jeep jetzt jewelry jio jll jm jmp jnj jo jobs joburg jot joy jp jpmorgan jprs juegos juniper kaufen kddi ke kerryhotels kerrylogistics kerryproperties kfh kg kh ki kia kim kinder kindle kitchen kiwi km kn koeln komatsu kosher kp kpmg kpn kr krd kred kuokgroup kw ky kyoto kz la lacaixa lamborghini lamer lancaster lancia land landrover lanxess lasalle lat latino latrobe law lawyer lb lc lds lease leclerc lefrak legal lego lexus lgbt li lidl life lifeinsurance lifestyle lighting like lilly limited limo lincoln linde link lipsy live living lixil lk llc llp loan loans locker locus loft lol london lotte lotto love lpl lplfinancial lr ls lt ltd ltda lu lundbeck luxe luxury lv ly ma macys madrid maif maison makeup man management mango map market marketing markets marriott marshalls maserati mattel mba mc mckinsey md me med media meet melbourne meme memorial men menu merckmsd mg mh miami microsoft mil mini mint mit mitsubishi mk ml mlb mls mm mma mn mo mobi mobile moda moe moi mom monash money monster mormon mortgage moscow moto motorcycles mov movie mp mq mr ms msd mt mtn mtr mu museum mutual mv mw mx my mz na nab nagoya name nationwide natura navy nba nc ne nec net netbank netflix network neustar new news next nextdirect nexus nf nfl ng ngo nhk ni nico nike nikon ninja nissan nissay nl no nokia northwesternmutual norton now nowruz nowtv np nr nra nrw ntt nu nyc nz obi observer off office okinawa olayan olayangroup oldnavy ollo om omega one ong onl online onyourside ooo open oracle orange org organic origins osaka otsuka ott ovh pa page panasonic paris pars partners parts party passagens pay pccw pe pet pf pfizer pg ph pharmacy phd philips phone photo photography photos physio pics pictet pictures pid pin ping pink pioneer pizza pk pl place play playstation plumbing plus pm pn pnc pohl poker politie porn post pr pramerica praxi press prime pro prod productions prof progressive promo properties property protection pru prudential ps pt pub pw pwc py qa qpon quebec quest qvc racing radio raid re read realestate realtor realty recipes red redstone redumbrella rehab reise reisen reit reliance ren rent rentals repair report republican rest restaurant review reviews rexroth rich richardli ricoh ril rio rip rmit ro rocher rocks rodeo rogers room rs rsvp ru rugby ruhr run rw rwe ryukyu sa saarland safe safety sakura sale salon samsclub samsung sandvik sandvikcoromant sanofi sap sarl sas save saxo sb sbi sbs sc sca scb schaeffler schmidt scholarships school schule schwarz science scjohnson scot sd se search seat secure security seek select sener services ses seven sew sex sexy sfr sg sh shangrila sharp shaw shell shia shiksha shoes shop shopping shouji show showtime si silk sina singles site sj sk ski skin sky skype sl sling sm smart smile sn sncf so soccer social softbank software sohu solar solutions song sony soy spa space sport spot spreadbetting sr srl ss st stada staples star statebank statefarm stc stcgroup stockholm storage store stream studio study style su sucks supplies supply support surf surgery suzuki sv swatch swiftcover swiss sx sy sydney systems sz tab taipei talk taobao target tatamotors tatar tattoo tax taxi tc tci td tdk team tech technology tel temasek tennis teva tf tg th thd theater theatre tiaa tickets tienda tiffany tips tires tirol tj tjmaxx tjx tk tkmaxx tl tm tmall tn to today tokyo tools top toray toshiba total tours town toyota toys tr trade trading training travel travelchannel travelers travelersinsurance trust trv tt tube tui tunes tushu tv tvs tw tz ua ubank ubs ug uk unicom university uno uol ups us uy uz va vacations vana vanguard vc ve vegas ventures verisign versicherung vet vg vi viajes video vig viking villas vin vip virgin visa vision viva vivo vlaanderen vn vodka volkswagen volvo vote voting voto voyage vu vuelos wales walmart walter wang wanggou watch watches weather weatherchannel webcam weber website wed wedding weibo weir wf whoswho wien wiki williamhill win windows wine winners wme wolterskluwer woodside work works world wow ws wtc wtf xbox xerox xfinity xihuan xin xxx xyz yachts yahoo yamaxun yandex ye yodobashi yoga yokohama you youtube yt yun za zappos zara zero zip zm zone zuerich zw vermögensberater-ctb vermögensberatung-pwb ελ ευ бг бел дети ею католик ком қаз мкд мон москва онлайн орг рус рф сайт срб укр გე հայ ישראל קום ابوظبي اتصالات ارامكو الاردن البحرين الجزائر السعودية العليان المغرب امارات ایران بارت بازار بھارت بيتك پاکستان ڀارت تونس سودان سورية شبكة عراق عرب عمان فلسطين قطر كاثوليك كوم مصر مليسيا موريتانيا موقع همراه कॉम नेट भारत भारतम् भारोत संगठन বাংলা ভারত ভাৰত ਭਾਰਤ ભારત ଭାରତ இந்தியா இலங்கை சிங்கப்பூர் భారత్ ಭಾರತ ഭാരതം ලංකා คอม ไทย ລາວ 닷넷 닷컴 삼성 한국 アマゾン グーグル クラウド コム ストア セール ファッション ポイント みんな 世界 中信 中国 中國 中文网 亚马逊 企业 佛山 信息 健康 八卦 公司 公益 台湾 台灣 商城 商店 商标 嘉里 嘉里大酒店 在线 大众汽车 大拿 天主教 娱乐 家電 广东 微博 慈善 我爱你 手机 招聘 政务 政府 新加坡 新闻 时尚 書籍 机构 淡马锡 游戏 澳門 点看 移动 组织机构 网址 网店 网站 网络 联通 诺基亚 谷歌 购物 通販 集团 電訊盈科 飞利浦 食品 餐厅 香格里拉 香港".split(" "),dh=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/,hh=/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDD-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC5\uDED0-\uDED9\uDEE0-\uDEE7\uDEF0-\uDEF6])/,mh=/\uFE0F/,gh=/\d/,vh=/\s/;function yh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=Xd(),n=Qd(ah),r=Qd(ih),o=Xd(),i=Qd("WS"),s=[[gh,r],[dh,r],[hh,r],[mh,r]],a=function(){var t=Qd(ih);return t.j={"-":o},t.jr=[].concat(s),t},u=function(t){var e=a();return e.t=t,e};rh(e,[["'",Qd("APOSTROPHE")],["{",Qd("OPENBRACE")],["[",Qd("OPENBRACKET")],["<",Qd("OPENANGLEBRACKET")],["(",Qd("OPENPAREN")],["}",Qd("CLOSEBRACE")],["]",Qd("CLOSEBRACKET")],[">",Qd("CLOSEANGLEBRACKET")],[")",Qd("CLOSEPAREN")],["&",Qd("AMPERSAND")],["*",Qd("ASTERISK")],["@",Qd(uh)],["`",Qd("BACKTICK")],["^",Qd("CARET")],[":",Qd("COLON")],[",",Qd("COMMA")],["$",Qd("DOLLAR")],[".",Qd(lh)],["=",Qd("EQUALS")],["!",Qd("EXCLAMATION")],["-",Qd("HYPHEN")],["%",Qd("PERCENT")],["|",Qd("PIPE")],["+",Qd("PLUS")],["#",Qd("POUND")],["?",Qd("QUERY")],['"',Qd("QUOTE")],["/",Qd(ch)],[";",Qd("SEMI")],["~",Qd("TILDE")],["_",Qd("UNDERSCORE")],["\\",Qd("BACKSLASH")]]),Zd(e,"\n",Qd("NL")),th(e,vh,i),Zd(i,"\n",Xd()),th(i,vh,i);for(var l=0;l<fh.length;l++)oh(e,fh[l],u(sh),a);var c=a(),p=a(),f=a(),d=a();oh(e,"file",c,a),oh(e,"ftp",p,a),oh(e,"http",f,a),oh(e,"mailto",d,a);var h=a(),m=Qd("PROTOCOL"),g=Qd("MAILTO");Zd(p,"s",h),Zd(p,":",m),Zd(f,"s",h),Zd(f,":",m),Zd(c,":",m),Zd(h,":",m),Zd(d,":",g);for(var v=a(),y=0;y<t.length;y++)oh(e,t[y],v,a);return Zd(v,":",m),oh(e,"localhost",u("LOCALHOST"),a),th(e,gh,n),th(e,dh,r),th(e,hh,r),th(e,mh,r),th(n,gh,n),th(n,dh,r),th(n,hh,r),th(n,mh,r),Zd(n,"-",o),Zd(r,"-",o),Zd(o,"-",o),th(r,gh,r),th(r,dh,r),th(r,hh,r),th(r,mh,r),th(o,gh,r),th(o,dh,r),th(o,hh,r),th(o,mh,r),e.jd=Qd("SYM"),e}var bh={defaultProtocol:"http",events:null,format:_h,formatHref:_h,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:0,className:null,attributes:null,ignoreTags:[]};function _h(t){return t}function Dh(){}function Eh(t,e){function n(e,n){this.t=t,this.v=e,this.tk=n}return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(t.prototype);for(var o in n)r[o]=n[o];r.constructor=e,e.prototype=r}(Dh,n,e),n}Dh.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bh.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}}};var wh=Eh("email",{isLink:!0}),Ch=Eh("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),kh=Eh("text"),Ah=Eh("nl"),xh=Eh("url",{isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bh.defaultProtocol,e=this.tk,n=!1,r=!1,o=[],i=0;"PROTOCOL"===e[i].t;)n=!0,o.push(e[i].v),i++;for(;e[i].t===ch;)r=!0,o.push(e[i].v),i++;for(;i<e.length;i++)o.push(e[i].v);return o=o.join(""),n||r||(o="".concat(t,"://").concat(o)),o},hasProtocol:function(){return"PROTOCOL"===this.tk[0].t}}),Oh=Object.freeze({__proto__:null,MultiToken:Dh,Base:Dh,createTokenClass:Eh,MailtoEmail:wh,Email:Ch,Text:kh,Nl:Ah,Url:xh});function Sh(){var t=Xd(),e=Xd(),n=Xd(),r=Xd(),o=Xd(),i=Xd(),s=Xd(),a=Qd(xh),u=Xd(),l=Qd(xh),c=Qd(xh),p=Xd(),f=Xd(),d=Xd(),h=Xd(),m=Xd(),g=Qd(xh),v=Qd(xh),y=Qd(xh),b=Qd(xh),_=Xd(),D=Xd(),E=Xd(),w=Xd(),C=Xd(),k=Xd(),A=Qd(Ch),x=Xd(),O=Qd(Ch),S=Qd(wh),N=Xd(),T=Xd(),F=Xd(),M=Xd(),I=Qd(Ah);Zd(t,"NL",I),Zd(t,"PROTOCOL",e),Zd(t,"MAILTO",n),Zd(e,ch,r),Zd(r,ch,o),Zd(t,sh,i),Zd(t,ih,i),Zd(t,"LOCALHOST",a),Zd(t,ah,i),Zd(o,sh,c),Zd(o,ih,c),Zd(o,ah,c),Zd(o,"LOCALHOST",c),Zd(i,lh,s),Zd(C,lh,k),Zd(s,sh,a),Zd(s,ih,i),Zd(s,ah,i),Zd(s,"LOCALHOST",i),Zd(k,sh,A),Zd(k,ih,C),Zd(k,ah,C),Zd(k,"LOCALHOST",C),Zd(a,lh,s),Zd(A,lh,k),Zd(a,"COLON",u),Zd(a,ch,c),Zd(u,ah,l),Zd(l,ch,c),Zd(A,"COLON",x),Zd(x,ah,O);var $=["AMPERSAND","ASTERISK",uh,"BACKSLASH","BACKTICK","CARET","DOLLAR",ih,"EQUALS","HYPHEN","LOCALHOST",ah,"PERCENT","PIPE","PLUS","POUND","PROTOCOL",ch,"SYM","TILDE",sh,"UNDERSCORE"],B=["APOSTROPHE","CLOSEANGLEBRACKET","CLOSEBRACE","CLOSEBRACKET","CLOSEPAREN","COLON","COMMA",lh,"EXCLAMATION","OPENANGLEBRACKET","OPENBRACE","OPENBRACKET","OPENPAREN","QUERY","QUOTE","SEMI"];Zd(c,"OPENBRACE",f),Zd(c,"OPENBRACKET",d),Zd(c,"OPENANGLEBRACKET",h),Zd(c,"OPENPAREN",m),Zd(p,"OPENBRACE",f),Zd(p,"OPENBRACKET",d),Zd(p,"OPENANGLEBRACKET",h),Zd(p,"OPENPAREN",m),Zd(f,"CLOSEBRACE",c),Zd(d,"CLOSEBRACKET",c),Zd(h,"CLOSEANGLEBRACKET",c),Zd(m,"CLOSEPAREN",c),Zd(g,"CLOSEBRACE",c),Zd(v,"CLOSEBRACKET",c),Zd(y,"CLOSEANGLEBRACKET",c),Zd(b,"CLOSEPAREN",c),Zd(_,"CLOSEBRACE",c),Zd(D,"CLOSEBRACKET",c),Zd(E,"CLOSEANGLEBRACKET",c),Zd(w,"CLOSEPAREN",c),nh(f,$,g),nh(d,$,v),nh(h,$,y),nh(m,$,b),nh(f,B,_),nh(d,B,D),nh(h,B,E),nh(m,B,w),nh(g,$,g),nh(v,$,v),nh(y,$,y),nh(b,$,b),nh(g,B,g),nh(v,B,v),nh(y,B,y),nh(b,B,b),nh(_,$,g),nh(D,$,v),nh(E,$,y),nh(w,$,b),nh(_,B,_),nh(D,B,D),nh(E,B,E),nh(w,B,w),nh(c,$,c),nh(p,$,c),nh(c,B,p),nh(p,B,p),Zd(n,sh,S),Zd(n,ih,S),Zd(n,ah,S),Zd(n,"LOCALHOST",S),nh(S,$,S),nh(S,B,N),nh(N,$,S),nh(N,B,N);var R=["AMPERSAND","APOSTROPHE","ASTERISK","BACKSLASH","BACKTICK","CARET","CLOSEBRACE","DOLLAR",ih,"EQUALS","HYPHEN",ah,"OPENBRACE","PERCENT","PIPE","PLUS","POUND","QUERY",ch,"SYM","TILDE",sh,"UNDERSCORE"];return nh(i,R,T),Zd(i,uh,F),nh(a,R,T),Zd(a,uh,F),nh(s,R,T),nh(T,R,T),Zd(T,uh,F),Zd(T,lh,M),nh(M,R,T),Zd(F,sh,C),Zd(F,ih,C),Zd(F,ah,C),Zd(F,"LOCALHOST",A),t}function Nh(t,e,n){var r=n[0].s,o=n[n.length-1].e;return new t(e.substr(r,o-r),n)}var Th="undefined"!=typeof console&&console&&console.warn||function(){},Fh={scanner:null,parser:null,pluginQueue:[],customProtocols:[],initialized:!1};function Mh(t){if(Fh.initialized&&Th('linkifyjs: already initialized - will not register custom protocol "'.concat(t,'" until you manually call linkify.init(). To avoid this warning, please register all custom protocols before invoking linkify the first time.')),!/^[a-z-]+$/.test(t))throw Error("linkifyjs: protocols containing characters other than a-z or - (hyphen) are not supported");Fh.customProtocols.push(t)}function Ih(t){return Fh.initialized||function(){Fh.scanner={start:yh(Fh.customProtocols),tokens:ph},Fh.parser={start:Sh(),tokens:Oh};for(var t={createTokenClass:Eh},e=0;e<Fh.pluginQueue.length;e++)Fh.pluginQueue[e][1]({scanner:Fh.scanner,parser:Fh.parser,utils:t});Fh.initialized=!0}(),function(t,e,n){for(var r=n.length,o=0,i=[],s=[];o<r;){for(var a=t,u=null,l=null,c=0,p=null,f=-1;o<r&&!(u=eh(a,n[o].t));)s.push(n[o++]);for(;o<r&&(l=u||eh(a,n[o].t));)u=null,(a=l).accepts()?(f=0,p=a):f>=0&&f++,o++,c++;if(f<0)for(var d=o-c;d<o;d++)s.push(n[d]);else{s.length>0&&(i.push(Nh(kh,e,s)),s=[]),o-=f,c-=f;var h=p.t,m=n.slice(o-c,o);i.push(Nh(h,e,m))}}return s.length>0&&i.push(Nh(kh,e,s)),i}(Fh.parser.start,t,function(t,e){for(var n=function(t){for(var e=[],n=t.length,r=0;r<n;){var o=t.charCodeAt(r),i=void 0,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}(e.replace(/[A-Z]/g,(function(t){return t.toLowerCase()}))),r=n.length,o=[],i=0,s=0;s<r;){for(var a=t,u=null,l=0,c=null,p=-1,f=-1;s<r&&(u=eh(a,n[s]));)(a=u).accepts()?(p=0,f=0,c=a):p>=0&&(p+=n[s].length,f++),l+=n[s].length,i+=n[s].length,s++;i-=p,s-=f,l-=p,o.push({t:c.t,v:e.substr(i-l,l),s:i-l,e:i})}return o}(Fh.scanner.start,t))}function $h(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Ih(t),r=[],o=0;o<n.length;o++){var i=n[o];!i.isLink||e&&i.t!==e||r.push(i.toObject())}return r}function Bh(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Ih(t);return 1===n.length&&n[0].isLink&&(!e||n[0].t===e)}function Rh(t){return new Ku({key:new Yu("autolink"),appendTransaction:(e,n,r)=>{const o=e.some((t=>t.docChanged))&&!n.doc.eq(r.doc),i=e.some((t=>t.getMeta("preventAutolink")));if(!o||i)return;const{tr:s}=r,a=function(t,e){const n=new Nu(t);return e.forEach((t=>{t.steps.forEach((t=>{n.step(t)}))})),n}(n.doc,[...e]),{mapping:u}=a,l=function(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach(((t,o)=>{const i=[];if(t.ranges.length)t.forEach(((t,e)=>{i.push({from:t,to:e})}));else{const{from:t,to:e}=n[o];if(void 0===t||void 0===e)return;i.push({from:t,to:e})}i.forEach((({from:t,to:n})=>{const i=e.slice(o).map(t,-1),s=e.slice(o).map(n),a=e.invert().map(i,-1),u=e.invert().map(s);r.push({oldRange:{from:a,to:u},newRange:{from:i,to:s}})}))})),rf(r)}(a);return l.forEach((({oldRange:e,newRange:o})=>{of(e.from,e.to,n.doc).filter((e=>e.mark.type===t.type)).forEach((e=>{const o=of(u.map(e.from),u.map(e.to),r.doc).filter((e=>e.mark.type===t.type));if(!o.length)return;const i=o[0],a=n.doc.textBetween(e.from,e.to,void 0," "),l=r.doc.textBetween(i.from,i.to,void 0," "),c=Bh(a),p=Bh(l);c&&!p&&s.removeMark(i.from,i.to,t.type)})),function(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,((t,e)=>{n(t)&&r.push({node:t,pos:e})})),r}(r.doc,o,(t=>t.isTextblock)).forEach((e=>{$h(r.doc.textBetween(e.pos,e.pos+e.node.nodeSize,void 0," ")).filter((t=>t.isLink)).filter((e=>!t.validate||t.validate(e.value))).map((t=>({...t,from:e.pos+t.start+1,to:e.pos+t.end+1}))).filter((t=>{const e=o.from>=t.from&&o.from<=t.to,n=o.to>=t.from&&o.to<=t.to;return e||n})).forEach((e=>{s.addMark(e.from,e.to,t.type.create({href:e.href}))}))}))})),s.steps.length?s:void 0}})}const Lh=sf.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(Mh)},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:t}){return["a",gp(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[uf({find:t=>$h(t).filter((t=>!this.options.validate||this.options.validate(t.value))).filter((t=>t.isLink)).map((t=>({text:t.value,index:t.start,data:t}))),type:this.type,getAttributes:t=>{var e;return{href:null===(e=t.data)||void 0===e?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[];var e;return this.options.autolink&&t.push(Rh({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push((e={type:this.type},new Ku({key:new Yu("handleClickLink"),props:{handleClick:(t,n,r)=>{var o;const i=nf(t.state,e.type.name);return!(!(null===(o=r.target)||void 0===o?void 0:o.closest("a"))||!i.href||(window.open(i.href,i.target),0))}}}))),this.options.linkOnPaste&&t.push(function(t){return new Ku({key:new Yu("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:o}=e,{selection:i}=o,{empty:s}=i;if(s)return!1;let a="";r.content.forEach((t=>{a+=t.textContent}));const u=$h(a).find((t=>t.isLink&&t.value===a));return!(!a||!u||(t.editor.commands.setMark(t.type,{href:u.href}),0))}}})}({editor:this.editor,type:this.type})),t}}),Ph=Lh.extend({name:ad.LINK,addOptions(){return{...this.parent?.(),openOnClick:!1}},addAttributes(){return{href:{default:null,parseHTML:t=>{const e=t.getAttribute("href");return e.startsWith("#")?parseFloat(t.getAttribute("href").replace("#","")):e}},target:{default:ld.SELF,parseHTML:t=>t.getAttribute("target")||ld.SELF},destination:{default:cd.URL,parseHTML:t=>{const e=t.getAttribute("href");if(!e.startsWith("#"))return cd.URL;const n=e.replace("#","");return ze(this.options.pageBlocks).find((t=>t.id===parseInt(n)))?cd.BLOCK:cd.URL}}}},addCommands(){return{...this.parent?.(),applyLink:Nf((({commands:t,chain:e},n)=>t.getSelectedText()?e().applyMark(this.name,n).expandSelectionToLink().command((({tr:t})=>(t.insertText(n.text,t.selection.from,t.selection.to),!0))).run():t.insertContent(Yh.text(n.text,[Yh.mark(ad.LINK,n)])))),expandSelectionToLink:Nf((({commands:t})=>{t.expandSelection((({node:t})=>this.type.isInSet(t.marks)))})),isLink:Nf((({commands:t})=>t.hasMark(this.name))),getLinkPreset:Nf((()=>We((()=>this.options.preset))))}},renderHTML({HTMLAttributes:t}){const e=t.destination===cd.BLOCK?`#${t.href}`:t.href,n=`${ze(this.options.basePresetClass)+ze(this.options.preset).id} zw-style`;return["a",{href:e,target:t.target,class:n},0]}}),jh=sf.create({name:ad.SUPERSCRIPT,addCommands(){return{applySuperscript:Nf((({commands:t})=>{t.setMark(this.name)})),removeSuperscript:Nf((({commands:t})=>{t.unsetMark(this.name)})),toggleSuperscript:Nf((({commands:t})=>{ze(t.isSuperscript())?t.removeSuperscript():t.applySuperscript()})),isSuperscript:Nf((({commands:t})=>{const e=t.getMark(this.name);return We((()=>!!ze(e)))}))}},parseHTML:()=>[{tag:"sup"},{style:"vertical-align",getAttrs:t=>"super"===t&&null}],renderHTML:()=>["sup",{class:"zw-superscript"},0]}),zh=Ip.create({name:ad.MARGIN,addGlobalAttributes:()=>[{types:[id.PARAGRAPH,id.HEADING],attributes:{[ad.MARGIN]:{isRequired:!1,parseHTML(t){const{margin:e,marginTop:n,marginRight:r,marginBottom:o,marginLeft:i}=t.style;if(![e,n,r,o,i].some((t=>!!t)))return null;if(e)return{value:e};return{value:[n||0,r||0,o||0,i||0].join(" ")}},renderHTML:t=>t.margin?Tf({margin:t.margin.value}):null}}}]});function Hh(t){const e=e=>t.presetsRef.value.find((t=>t.id===e)),n=function(t){return $e(t,!1),t}({default:null,link:null});return Ye(t.presetsRef,(()=>{n.default=e(t.defaultPresetId),n.link=e(t.linkPresetId)}),{immediate:!0}),[kd,xd,Sd,lf,Sf,Ed,wd,Cd,Md].concat([$d.configure({presets:t.presetsRef,defaultId:t.defaultPresetId,styleRenderer:new Xh({baseClass:t.basePresetClass,makeVariable:t.makePresetVariable,linkPresetId:t.linkPresetId})}),Gd.configure({baseClass:t.baseListClass,presetClass:t.basePresetClass+t.defaultPresetId}),jd.configure({device:t.deviceRef}),Rd.configure({minSize:t.minFontSize,maxSize:t.maxFontSize,wrapperRef:t.wrapperRef}),Id.configure({fonts:t.fonts,defaultPreset:Ve(n,"default")}),Bd,Ld,Pd,zd,Hd,Vd,jh,Ud,Kd.configure({wrapperRef:t.wrapperRef}),Ph.configure({preset:Ve(n,"link"),basePresetClass:t.basePresetClass,pageBlocks:t.pageBlocksRef}),zh])}class Vh{#e=new DOMParser;types=window;parse(t){return this.#e.parseFromString(t,"text/html")}}class Wh{content;constructor({content:t}){this.content=t}normalize(){throw new Error("Implement abstract method")}}class Uh extends Wh{static BLOCK_NODE_NAMES=["P","H1","H2","H3","H4"];static ROOT_NODE_NAMES=Uh.BLOCK_NODE_NAMES.concat("UL","OL");static BLOCK_STYLES=["text-align","line-height","margin","margin-top","margin-bottom","margin-left","margin-right"];#n;constructor({content:t,parser:e}){super({content:t}),this.#n=e,this.dom=null}normalize(){return this.normalizeHTML(),this.normalizedHTML}normalizeHTML(){this.dom=this.#n.parse(this.content.replace(/(\r)?\n/g,"")),this.#r(),this.#o(),this.#i(this.#s,(t=>"BR"===t.tagName)),this.#i(this.#a,this.#u),this.#i(this.#l,(t=>"LI"===t.tagName)),this.#c(),this.#p()}get normalizedHTML(){return this.dom.body.innerHTML}get#f(){return this.#n.types.NodeFilter}get#d(){return this.#n.types.Node}#r(){const t=this.#h(this.#f.SHOW_COMMENT);this.#m(t,(t=>t.remove()))}#o(){const t=Array.from(this.dom.body.childNodes),e=this.dom.createDocumentFragment();let n;for(const r of t)this.#g(r)?(e.append(r),n=null):(n||(n=this.dom.createElement("p"),e.append(n)),n.append(r));this.dom.body.innerHTML="",this.dom.body.append(e)}#h(t,e){return this.dom.createNodeIterator(this.dom.body,t,e)}#i(t,e=(()=>!0)){const n=t=>"BODY"!==t.tagName&&e.call(this,t),r=this.#h(this.#f.SHOW_ELEMENT,{acceptNode:t=>n(t)?this.#f.FILTER_ACCEPT:this.#f.FILTER_REJECT});this.#m(r,t)}#m(t,e){let n=t.nextNode();for(;n;)e.call(this,n),n=t.nextNode()}#a(t){t.innerHTML.trim()||t.remove()}#l(t){const e=this.dom.createDocumentFragment(),n=Array.from(t.childNodes);let r,o;const i=n=>{this.#v(n,t,Uh.BLOCK_STYLES),e.append(n)};this.#v(t,t.parentElement,Uh.BLOCK_STYLES);for(const t of n)if(this.#u(t))i(t),r=null,o=t;else if("BR"===t.tagName&&o&&"BR"!==o?.tagName)t.remove(),o=t;else if("BR"!==t.tagName)r||(r=this.dom.createElement("p"),i(r)),r.append(t),o=t;else{const e=this.dom.createElement("p");e.append(t),i(e),r=null,o=t}t.append(e),this.#y(t,Uh.BLOCK_STYLES)}#u(t){return Uh.BLOCK_NODE_NAMES.includes(t.tagName)}#g(t){return Uh.ROOT_NODE_NAMES.includes(t.tagName)}#v(t,e,n){for(const r of n){const n=e.style.getPropertyValue(r);n&&!t.style.getPropertyValue(r)&&t.style.setProperty(r,n)}}#y(t,e){for(const n of e)t.style.removeProperty(n);0===t.style.length&&t.removeAttribute("style")}#s({parentElement:t}){if(!this.#u(t))return;if(!t.textContent)return;const e=this.dom.createDocumentFragment(),n=Array.from(t.childNodes),r=t.cloneNode(!0);r.innerHTML="";let o=r.cloneNode();const i=n=>{this.#v(n,t,Uh.BLOCK_STYLES),e.append(n)};for(const t of n)"BR"!==t.tagName?o.append(t):(i(o),o=r.cloneNode());e.append(o),t.replaceWith(e)}#c(){const t=this.dom.querySelectorAll('[style*="text-decoration"]:where(p, h1, h2, h3, h4, li)');for(const e of t)this.#b(e)}#b(t){const e=this.#_(t);if(t.style.removeProperty("text-decoration-line"),t.style.removeProperty("text-decoration"),t.style.cssText||t.removeAttribute("style"),!e.none)for(const n of t.childNodes){const r=this.#D(t,n),o=this.#_(r),i={underline:o.underline||e.underline,line_through:o.line_through||e.line_through};r.style.removeProperty("text-decoration-line"),r.style.removeProperty("text-decoration"),r.style.textDecoration=Object.entries(i).filter((([,t])=>t)).map((([t])=>t.replace("_","-"))).join(" ")}}#_(t){const{textDecoration:e,textDecorationLine:n}=t.style,r=e||n||"";return{none:r.includes("none"),underline:r.includes("underline"),line_through:r.includes("line-through")}}#p(){const t=this.dom.querySelectorAll('[style*="background-color"]:where(p, h1, h2, h3, h4, li)');for(const e of t)this.#E(e)}#E(t){const e=t.style.backgroundColor;t.style.removeProperty("background-color"),t.style.cssText||t.removeAttribute("style");for(const n of t.childNodes){const r=this.#D(t,n),o=r.style.backgroundColor||e;r.style.backgroundColor=o}}#D(t,e){if(e.nodeType!==this.#d.TEXT_NODE)return e;const n=this.dom.createElement("span");return n.append(e.cloneNode()),t.replaceChild(n,e),n}}class qh extends Wh{normalize(){return this.#i(this.#w),this.content}#i(t){this.#C(this.content,t)}#C(t,e){for(const n of t.content)n.content&&this.#C(n,e),e.call(this,n)}#w(t){if(t.content&&t.type!==id.LIST)for(const e of t.content)if(e.marks)for(const n of e.marks.slice())this.#k(t,n)?this.#A(e,n):this.#x(t,n)&&(this.#A(e,n),this.#O(t,n))}#x(t,e){if(ad.inlineMarks.includes(e.type))return!1;if(this.#S(t,e.type))return!1;for(const n of t.content)if(n.content||t.type!==id.LIST_ITEM){if(!n.marks)return!1;if(!this.#k(n,e))return!1}return!0}#k(t,e){return t.marks?.some((t=>vd.exports.isEqual(t,e)))??!1}#S(t,e){return t.marks?.some((t=>t.type===e))??!1}#A(t,e){if(!t.marks)return;const n=this.#N(t,e.type);n>=0&&t.marks.splice(n,1),t.marks.length||delete t.marks}#O(t,e){this.#A(t,e),t.marks??=[],t.marks.push(e)}#N(t,e){return t.marks?.findIndex((t=>t.type===e))??null}}class Kh{static build(t,e={}){return"string"==typeof t?this.#T(t,e):this.#F(t)}static#T(t,e){return new Uh({content:t,parser:e.parser||new Vh})}static#F(t){return new qh({content:t})}static normalize(t,e={}){return Kh.build(t,e).normalize()}}class Jh{static window=globalThis.window;static use(t){this.window=t}static get document(){return this.window.document}static get body(){return this.document.body}static get head(){return this.document.head}static getComputedStyle(t){return this.window.getComputedStyle(t)}}class Gh{static build({config:t,nodeDomParser:e}){const n=function(t){return Dp(Tp.resolve(t))}(Hh({fonts:t.fonts,minFontSize:0,maxFontSize:0,presetsRef:je(t.presets),defaultPresetId:t.defaultPresetId,linkPresetId:t.linkPresetId,makePresetVariable:()=>"",basePresetClass:t.basePresetClass,baseListClass:t.baseListClass,deviceRef:je(nd.DESKTOP),pageBlocksRef:je([]),wrapperRef:Jh.document.createElement("p")}));return new Gh({schema:n,domParser:La.fromSchema(n),nodeDomParser:e})}#M;#e;#I;constructor({schema:t,domParser:e,nodeDomParser:n}){this.#M=t,this.#e=e,this.#I=n}toJSON(t){const e=Kh.build(t,{parser:this.#I});return e.normalizeHTML(),this.#e.parse(e.dom.body).toJSON()}}class Yh{static doc(t){return{type:id.DOCUMENT,content:t}}static list(t,e){return{type:id.LIST,attrs:{bullet:{type:t}},content:e.map((t=>t.type===id.LIST_ITEM?t:this.listItem([].concat(t))))}}static listItem(...t){const{attrs:e,content:n,marks:r}=this.#$(t);return{type:id.LIST_ITEM,...e?{attrs:e}:{},...r?{marks:r}:{},content:[].concat(n).map((t=>"string"==typeof t?this.paragraph(t):t))}}static heading(t,...e){const n=this.#B(e,this.text);return n.attrs??={},n.attrs.level=t,{type:id.HEADING,...n}}static paragraph(...t){return{type:id.PARAGRAPH,...this.#B(t,this.text)}}static#B(t){const{attrs:e,content:n,marks:r}=this.#$(t);return{content:"string"==typeof n?[this.text(n)]:n,...e?{attrs:e}:{},...r?{marks:r}:{}}}static#$(t){return 1===t.length?{attrs:null,marks:null,content:t[0]}:2===t.length?{attrs:t[0],marks:null,content:t[1]}:{attrs:t[0],marks:t[1],content:t[2]}}static text(t,e){return{type:id.TEXT,...e?{marks:e}:{},text:t}}static mark(t,e){return{type:t,attrs:e}}static populateAllDevices(t){return{mobile:t,tablet:t,desktop:t}}}class Xh{#R;#L;#P;constructor({baseClass:t,makeVariable:e,linkPresetId:n}){this.#R=t,this.#L=e,this.#P=n}inject(t,e){let n=t.querySelector("[data-zw-styles]");n||(n=Jh.document.createElement("style"),n.dataset.zwStyles="",n.innerHTML=this.render(e),t.append(n))}render(t){let e="";for(const n of t){const t=n.id===this.#P;e+=` ${this.makePresetCssClass(n)} {`;for(const r of nd.values)for(const o of Object.keys(n[r])){const i=this.#L({device:r,preset:n,property:o}),s=this.#j(o,r);if(e+=`${s}: var(${i}, inherit);`,t){e+=`${s.replace("preset-","")}: var(${s});`}}e+="}"}return e}#j(t,e){return`--zw-preset-${"color"===t?"font-color":t.replace(/_/i,"-")}${e===nd.COMMON?"":`-${e}`}`}makePresetHtmlClass(t){return this.#R+t.id}makePresetCssClass(t){return this.makePresetHtmlClass(t).split(" ").map((t=>`.${t}`)).join("")}}class Qh{static createWindow(){return(new i.JSDOM).window}types;parse(t){const{window:e}=new i.JSDOM(t);return this.types=e,e.document}}class Zh{name;description;argument;options=[];doCommand(){throw new Error('Command "doCommand" is required')}install(t){if(!this.name)throw new Error('Command "name" is required');let e=t.command(this.name);if(this.description&&(e=e.description(this.description)),this.argument&&(e=e.argument(this.argument)),this.options.length)for(const t of this.options)e=e.option(t.flags,t.description,t.default);e.action(this.doCommand.bind(this))}output(t){console.log(t)}}const tm=new Y,em=[class extends Zh{name="to-json";description="migrate html to json";argument="<html...>";options=[{flags:"-c, --config <path>",description:"Generator config",default:n.resolve(__dirname,"../bin/zp.config.json")},{flags:"-f, --format <type>",description:"Set output format",default:"rb"}];doCommand(t,{config:e,format:r}){Jh.use(Qh.createWindow());const o=n.resolve(process.cwd(),e),i=Gh.build({config:require(o).editor,nodeDomParser:new Qh}),s=t.map((t=>i.toJSON(this.#z(t)))),a=1===s.length?s[0]:s,u=this.#H(a);this.output("rb"===r?this.#V(u):u)}#z(t){return t.replace(/\\(["'])/g,"$1").replace(/rgba\(\d{1,3}, ?\d{1,3}, ?\d{1,3}, (\d{1,2}%)\)/g,((t,e)=>t.replace(e,parseFloat(e)/100)))}#H(t){return JSON.stringify(t,((t,e)=>null===e?void 0:e),2)}#V(t){return t.replace(/\\"/g,'"').replace(/font-family: ?'(.+)'/g,'font-family: "$1"').replace(/'/g,"\\'").replace(/^[\t ]*"[^:\n\r]+(?<!\\)":/gm,(t=>t.replace(/"/g,""))).replace(/: "(.+)"([,\n])/g,": '$1'$2")}},class extends Zh{name="version";description="display cli version";doCommand(){this.output("3.0.2")}}];for(const t of em)(new t).install(tm);tm.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipify/wysiwyg",
3
- "version": "3.0.2-1",
3
+ "version": "3.0.2",
4
4
  "description": "Zipify modification of TipTap text editor",
5
5
  "main": "dist/wysiwyg.mjs",
6
6
  "bin": {