@zipify/wysiwyg 2.5.6-0 → 2.6.0-0

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 (26) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/wysiwyg.css +39 -43
  3. package/dist/wysiwyg.mjs +36 -167
  4. package/lib/components/base/Button.vue +0 -6
  5. package/lib/components/base/dropdown/Dropdown.vue +1 -7
  6. package/lib/components/base/dropdown/DropdownActivator.vue +0 -20
  7. package/lib/components/base/dropdown/__tests__/DropdownActivator.test.js +1 -23
  8. package/lib/components/toolbar/controls/AlignmentControl.vue +1 -11
  9. package/lib/components/toolbar/controls/FontColorControl.vue +0 -13
  10. package/lib/components/toolbar/controls/FontFamilyControl.vue +0 -4
  11. package/lib/components/toolbar/controls/FontSizeControl.vue +0 -4
  12. package/lib/components/toolbar/controls/FontWeightControl.vue +0 -4
  13. package/lib/components/toolbar/controls/ItalicControl.vue +0 -13
  14. package/lib/components/toolbar/controls/LineHeightControl.vue +0 -13
  15. package/lib/components/toolbar/controls/StylePresetControl.vue +7 -1
  16. package/lib/components/toolbar/controls/UnderlineControl.vue +0 -12
  17. package/lib/components/toolbar/controls/__tests__/AlignmentControl.test.js +1 -43
  18. package/lib/components/toolbar/controls/__tests__/FontColorControl.test.js +1 -22
  19. package/lib/components/toolbar/controls/__tests__/FontFamilyControl.test.js +0 -1
  20. package/lib/components/toolbar/controls/__tests__/FontSizeControl.test.js +0 -1
  21. package/lib/components/toolbar/controls/__tests__/FontWeightControl.test.js +0 -1
  22. package/lib/components/toolbar/controls/__tests__/ItalicControl.test.js +1 -23
  23. package/lib/components/toolbar/controls/__tests__/LineHeightControl.test.js +1 -23
  24. package/lib/components/toolbar/controls/__tests__/UnderlineControl.test.js +1 -25
  25. package/package.json +1 -1
  26. package/lib/assets/icons/indicator.svg +0 -4
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
- */Fh=Ih,Mh=Ih.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,f=4294967295,h=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",i],["partialRight",s],["rearg",u]],d="[object Arguments]",m="[object Array]",g="[object Boolean]",v="[object Date]",y="[object Error]",b="[object Function]",_="[object GeneratorFunction]",w="[object Map]",E="[object Number]",C="[object Object]",k="[object Promise]",A="[object RegExp]",x="[object Set]",S="[object String]",O="[object Symbol]",N="[object WeakMap]",T="[object ArrayBuffer]",F="[object DataView]",M="[object Float32Array]",I="[object Float64Array]",$="[object Int8Array]",B="[object Int16Array]",L="[object Int32Array]",R="[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),G=RegExp(q.source),J=/<%-([\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*$/,ht=/^[-+]0x[0-9a-f]+$/i,dt=/^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",wt="\\u2700-\\u27bf",Et="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="['’]",St="[\\ud800-\\udfff]",Ot="["+At+"]",Nt="["+Dt+"]",Tt="\\d+",Ft="[\\u2700-\\u27bf]",Mt="["+Et+"]",It="[^\\ud800-\\udfff"+At+Tt+wt+Et+Ct+"]",$t="\\ud83c[\\udffb-\\udfff]",Bt="[^\\ud800-\\udfff]",Lt="(?:\\ud83c[\\udde6-\\uddff]){2}",Rt="[\\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,Lt,Rt].join("|")+")"+Ut+Wt+")*",Kt="(?:"+[Ft,Lt,Rt].join("|")+")"+qt,Gt="(?:"+[Bt+Nt+"?",Nt,Lt,Rt,St].join("|")+")",Jt=RegExp(xt,"g"),Yt=RegExp(Nt,"g"),Xt=RegExp($t+"(?="+$t+")|"+Gt+qt,"g"),Qt=RegExp([Pt+"?"+Mt+"+"+Ht+"(?="+[Ot,Pt,"$"].join("|")+")",zt+"+"+Vt+"(?="+[Ot,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[L]=re[R]=re[P]=re[j]=re[z]=!0,re[d]=re[m]=re[T]=re[g]=re[F]=re[v]=re[y]=re[b]=re[w]=re[E]=re[C]=re[A]=re[x]=re[S]=re[N]=!1;var oe={};oe[d]=oe[m]=oe[T]=oe[F]=oe[g]=oe[v]=oe[M]=oe[I]=oe[$]=oe[B]=oe[L]=oe[w]=oe[E]=oe[C]=oe[A]=oe[x]=oe[S]=oe[O]=oe[R]=oe[P]=oe[j]=oe[z]=!0,oe[y]=oe[b]=oe[N]=!1;var ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,ae=parseInt,ue="object"==typeof D&&D&&D.Object===Object&&D,le="object"==typeof self&&self&&self.Object===Object&&self,ce=ue||le||Function("return this")(),pe=Mh&&!Mh.nodeType&&Mh,fe=pe&&Fh&&!Fh.nodeType&&Fh,he=fe&&fe.exports===pe,de=he&&ue.process,me=function(){try{var t=fe&&fe.require&&fe.require("util").types;return t||de&&de.binding&&de.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 we(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 Ee(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 Se(t,e){return!(null==t||!t.length)&&Re(t,e,0)>-1}function Oe(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 Le(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 Re(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):Le(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 Ge(t){return function(e){return t(e)}}function Je(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&&Re(e,t[n],0)>-1;);return n}function Qe(t,e){for(var n=t.length;n--&&Re(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 hn=Ve({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),dn=function D(ot){var Dt=(ot=null==ot?ce:dn.defaults(ce.Object(),ot,dn.pick(ce,ee))).Array,wt=ot.Date,Et=ot.Error,Ct=ot.Function,kt=ot.Math,At=ot.Object,xt=ot.RegExp,St=ot.String,Ot=ot.TypeError,Nt=Dt.prototype,Tt=Ct.prototype,Ft=At.prototype,Mt=ot["__core-js_shared__"],It=Tt.toString,$t=Ft.hasOwnProperty,Bt=0,Lt=function(){var t=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Rt=Ft.toString,Pt=It.call(At),jt=ce._,zt=xt("^"+It.call($t).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=he?ot.Buffer:t,Vt=ot.Symbol,Wt=ot.Uint8Array,Ut=Ht?Ht.allocUnsafe:t,qt=sn(At.getPrototypeOf,At),Kt=At.create,Gt=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=hi(At,"defineProperty");return t({},"",{}),t}catch(t){}}(),pe=ot.clearTimeout!==ce.clearTimeout&&ot.clearTimeout,fe=wt&&wt.now!==ce.Date.now&&wt.now,de=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=wt.now,wn=ot.parseInt,En=kt.random,Cn=Nt.reverse,kn=hi(ot,"DataView"),An=hi(ot,"Map"),xn=hi(ot,"Promise"),Sn=hi(ot,"Set"),On=hi(ot,"WeakMap"),Nn=hi(At,"create"),Tn=On&&new On,Fn={},Mn=ji(kn),In=ji(An),$n=ji(xn),Bn=ji(Sn),Ln=ji(On),Rn=Vt?Vt.prototype:t,Pn=Rn?Rn.valueOf:t,jn=Rn?Rn.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__=f,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 Gn(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.__data__=new Gn;++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,St):[],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[Jr(0,n-1)]:t}function Zn(t,e){return Li(To(t),ur(e,0,t.length))}function tr(t){return Li(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 hr(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:Sa(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),h=f==b||f==_;if(Ys(e))return ko(e,u);if(f==C||f==d||h&&!i){if(a=l||h?{}: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,di(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 g:case v: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 L:case R:case P:case j:case z:return xo(t,n);case w:return new o;case E:case S: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 O:return r=t,Pn?At(Pn.call(r)):{}}}(e,f,u)}}s||(s=new Yn);var m=s.get(e);if(m)return m;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 y=p?t:(c?l?si:ii:l?Ia:Ma)(e);return Ce(y||e,(function(t,o){y&&(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 Ot(e);return Mi((function(){n.apply(t,o)}),r)}function fr(t,e,n,r){var o=-1,i=Se,s=!0,a=t.length,u=[],l=e.length;if(!a)return u;n&&(e=Ne(e,Ge(n))),r?(i=Oe,s=!1):e.length>=200&&(i=Ye,s=!1,e=new Jn(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:J,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},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(An||Kn),string:new qn}},Gn.prototype.delete=function(t){var e=pi(this,t).delete(t);return this.size-=e?1:0,e},Gn.prototype.get=function(t){return pi(this,t).get(t)},Gn.prototype.has=function(t){return pi(this,t).has(t)},Gn.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},Jn.prototype.add=Jn.prototype.push=function(t){return this.__data__.set(t,n),this},Jn.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 Gn(r)}return n.set(t,e),this.size=n.size,this};var hr=$o(Dr),dr=$o(wr,!0);function mr(t,e){var n=!0;return hr(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 hr(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 wr(t,e){return t&&_r(t,e,Ma)}function Er(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=Rt.call(e);return o&&(n?e[ue]=r:delete e[ue]),i}(e):function(t){return Rt.call(t)}(e)}function xr(t,e){return t>e}function Sr(t,e){return null!=t&&$t.call(t,e)}function Or(t,e){return null!=t&&e in At(t)}function Nr(e,n,r){for(var o=r?Oe:Se,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,Ge(n))),l=_n(p.length,l),u[a]=!r&&(n||i>=120&&p.length>=120)?new Jn(a&&p):t}p=e[0];var f=-1,h=u[0];t:for(;++f<i&&c.length<l;){var d=p[f],m=n?n(d):d;if(d=r||0!==d?d:0,!(h?Ye(h,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}h&&h.push(m),c.push(d)}}return c}function Tr(e,n,r){var o=null==(e=Oi(e,n=Do(n,e)))?e:e[Pi(Qi(n))];return null==o?t:we(o,e,r)}function Fr(t){return ra(t)&&Ar(t)==d}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?m:gi(e),c=u?m:gi(n),p=(l=l==d?C:l)==C,f=(c=c==d?C:c)==C,h=l==c;if(h&&Ys(e)){if(!Ys(n))return!1;a=!0,p=!1}if(h&&!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 g:case v:case E:return Hs(+t,+e);case y:return t.name==e.name&&t.message==e.message;case A:case S:return t==e+"";case w: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 O:if(Pn)return Pn.call(t)==Pn.call(e)}return!1}(e,n,l,r,o,i,s);if(!(1&r)){var b=p&&$t.call(e,"__wrapped__"),_=f&&$t.call(n,"__wrapped__");if(b||_){var D=b?e.value():e,k=_?n.value():n;return s||(s=new Yn),i(D,k,r,o,s)}}return!!h&&(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 h=s.get(e),d=s.get(n);if(h&&d)return h==n&&d==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 h=o(c,p,l,e,n,f);if(!(h===t?Mr(p,c,3,o,f):h))return!1}}return!0}function $r(t){return!(!na(t)||(e=t,Lt&&Lt 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):du(t)}function Lr(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 Rr(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=Gs(t)?Dt(t.length):[];return hr(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 wi(e)&&Ai(n)?xi(Pi(e),n):function(r){var o=Sa(r,e);return o===t&&o===n?Oa(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 h=qs(l),d=!h&&Ys(l),m=!h&&!d&&pa(l);p=l,h||d||m?qs(u)?p=u:Js(u)?p=To(u):d?(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,Ge(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=So(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:Re,i=-1,s=e.length,a=t;for(t===e&&(e=To(e)),n&&(a=Ne(t,Ge(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 Gr(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 Jr(t,e){return t+$e(En()*(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(Si(t,e,iu),t+"")}function Qr(t){return Qn(Ha(t))}function Zr(t,e){var n=Ha(t);return Li(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 Li(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 hr(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]),h=f!==t,d=null===f,m=f==f,g=ca(f);if(a)var v=o||m;else v=c?m&&(o||h):u?m&&h&&(o||!d):l?m&&h&&!d&&(o||!g):!d&&!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=Se,i=t.length,s=!0,a=[],u=a;if(n)s=!1,o=Oe;else if(i>=200){var l=e?null:Xo(t);if(l)return un(l);s=!1,o=Ye,u=new Jn}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=Oi(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 Js(t)?t:[]}function _o(t){return"function"==typeof t?t:iu}function Do(t,e){return qs(t)?t:wi(t,e)?[t]:Ri(_a(t))}var wo=Xr;function Eo(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 So(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 Oo(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 h=o;++u<l;)p[h+u]=e[u];for(;++s<a;)(f||o<i)&&(p[h+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)?Ee: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(!Gs(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 Lo(e){return function(n){var r=rn(n=_a(n))?pn(n):t,o=r?r[0]:n.charAt(0),i=r?Eo(r,1).join(""):n.slice(1);return o[e]()+i}}function Ro(t){return function(e){return Fe(Za(Ua(e).replace(Jt,"")),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(!Gs(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 Ot(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&&Ei(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ui(c[0])].apply(u,c[3]):1==a.length&&Ei(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,h=1&n,d=2&n,m=24&n,g=512&n,v=d?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=Oo(y,o,i,m)),s&&(y=No(y,s,u,m)),a-=D,m&&a<p){var w=an(y,_);return Jo(e,n,Ho,t.placeholder,r,y,w,l,c,p-a)}var E=h?r:this,C=d?E[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(E,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,Ge(ci())),Xr((function(n){var r=this;return t(e,(function(t){return we(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)?Eo(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 Go(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ya(e),n=ya(n)),t(e,n)}}function Jo(e,n,r,o,a,u,l,c,p,f){var h=8&n;n|=h?i:s,4&(n&=~(h?s:i))||(n&=-4);var d=[e,n,a,h?u:t,h?l:t,h?t:u,h?t:l,c,p,f],m=r.apply(t,d);return Ei(e)&&Fi(m,d),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=Sn&&1/un(new Sn([,-0]))[1]==l?function(t){return new Sn(t)}:cu;function Qo(t){return function(e){var n=gi(e);return n==w?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,h,d,m){var g=2&l;if(!g&&"function"!=typeof n)throw new Ot(e);var v=p?p.length:0;if(v||(l&=-97,p=f=t),d=d===t?d:bn(ga(d),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,h,d,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?Oo(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)w=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?Jo(e,n,Ho,i.placeholder,t,a,c,t,t,r-s):we(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 we(p,o?n:this,c)}}(n,l,c,p);else var w=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)(w,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,h=!0,d=2&r?new Jn: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;h=!1;break}if(d){if(!Ie(n,(function(t,e){if(!Ye(d,e)&&(m===t||i(m,t,r,o,s)))return d.push(e)}))){h=!1;break}}else if(m!==g&&!i(m,g,r,o,s)){h=!1;break}}return s.delete(e),s.delete(n),h}function oi(e){return Ii(Si(e,t,Ki),e+"")}function ii(t){return kr(t,Ma,di)}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 hi(e,n){var r=function(e,n){return null==e?t:e[n]}(e,n);return $r(r)?r:t}var di=Ve?function(t){return null==t?[]:(t=At(t),xe(Ve(t),(function(e){return Gt.call(t,e)})))}:vu,mi=Ve?function(t){for(var e=[];t;)Te(e,di(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?Gs(n)&&_i(e,n.length):"string"==r&&e in n)&&Hs(n[e],t)}function wi(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 Ei(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)!=w||xn&&gi(xn.resolve())!=k||Sn&&gi(new Sn)!=x||On&&gi(new On)!=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 w;case $n:return k;case Bn:return x;case Ln: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 Si(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),we(e,this,a)}}function Oi(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=de||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]&&!Se(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 Li(e,n){var r=-1,o=e.length,i=o-1;for(n=n===t?o:n;++r<n;){var s=Jr(r,i),a=e[s];e[s]=e[r],e[r]=a}return e.length=n,e}var Ri=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 Js(t)?fr(t,yr(e,1,Js,!0)):[]})),Vi=Xr((function(e,n){var r=Qi(n);return Js(r)&&(r=t),Js(e)?fr(e,yr(n,1,Js,!0),ci(r,2)):[]})),Wi=Xr((function(e,n){var r=Qi(n);return Js(r)&&(r=t),Js(e)?fr(e,yr(n,1,Js,!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)),Le(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)),Le(e,ci(n,3),i,!0)}function Ki(t){return null!=t&&t.length?yr(t,1):[]}function Gi(e){return e&&e.length?e[0]:t}var Ji=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 Gr(t,Ne(e,(function(t){return _i(t,n)?+t:t})).sort(So)),r}));function ns(t){return null==t?t:Cn.call(t)}var rs=Xr((function(t){return po(yr(t,1,Js,!0))})),os=Xr((function(e){var n=Qi(e);return Js(n)&&(n=t),po(yr(e,1,Js,!0),ci(n,2))})),is=Xr((function(e){var n=Qi(e);return n="function"==typeof n?n:t,po(yr(e,1,Js,!0),t,n)}));function ss(t){if(!t||!t.length)return[];var e=0;return t=xe(t,(function(t){if(Js(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 we(n,t,e)}))}var us=Xr((function(t,e){return Js(t)?fr(t,e):[]})),ls=Xr((function(t){return vo(xe(t,Js))})),cs=Xr((function(e){var n=Qi(e);return Js(n)&&(n=t),vo(xe(e,Js),ci(n,2))})),ps=Xr((function(e){var n=Qi(e);return n="function"==typeof n?n:t,vo(xe(e,Js),t,n)})),fs=Xr(ss),hs=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 ds(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:hr)(t,ci(e,3))}function Ds(t,e){return(qs(t)?ke:dr)(t,ci(e,3))}var ws=Mo((function(t,e,n){$t.call(t,n)?t[n].push(e):sr(t,n,[e])})),Es=Xr((function(t,e,n){var r=-1,o="function"==typeof e,i=Gs(t)?Dt(t.length):[];return hr(t,(function(t){i[++r]=o?we(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),[])})),Ss=fe||function(){return ce.Date.now()};function Os(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 Ot(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,h=!1,d=!0;if("function"!=typeof n)throw new Ot(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||h&&e-p>=a}function y(){var t=Ss();if(v(t))return b(t);l=Mi(y,function(t){var e=r-(t-c);return h?_n(e,a-(t-p)):e}(t))}function b(e){return l=t,d&&i?m(e):(i=s=t,u)}function _(){var e=Ss(),n=v(e);if(i=arguments,s=this,c=e,n){if(l===t)return g(c);if(h)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=(h="maxWait"in o)?bn(ya(o.maxWait)||0,r):a,d="trailing"in o?!!o.trailing:d),_.cancel=function(){l!==t&&Co(l),p=0,i=c=s=l=t},_.flush=function(){return l===t?u:b(Ss())},_}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 Ot(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||Gn),r}function Ls(t){if("function"!=typeof t)throw new Ot(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=Gn;var Rs=wo((function(t,e){var n=(e=1==e.length&&qs(e[0])?Ne(e[0],Ge(ci())):Ne(yr(e,1),Ge(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 we(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=Go(xr),Ws=Go((function(t,e){return t>=e})),Us=Fr(function(){return arguments}())?Fr:function(t){return ra(t)&&$t.call(t,"callee")&&!Gt.call(t,"callee")},qs=Dt.isArray,Ks=ge?Ge(ge):function(t){return ra(t)&&Ar(t)==T};function Gs(t){return null!=t&&ea(t.length)&&!Zs(t)}function Js(t){return ra(t)&&Gs(t)}var Ys=mn||yu,Xs=ve?Ge(ve):function(t){return ra(t)&&Ar(t)==v};function Qs(t){if(!ra(t))return!1;var e=Ar(t);return e==y||"[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==b||e==_||"[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?Ge(ye):function(t){return ra(t)&&gi(t)==w};function ia(t){return"number"==typeof t||ra(t)&&Ar(t)==E}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?Ge(be):function(t){return ra(t)&&Ar(t)==A},ua=_e?Ge(_e):function(t){return ra(t)&&gi(t)==x};function la(t){return"string"==typeof t||!qs(t)&&ra(t)&&Ar(t)==S}function ca(t){return"symbol"==typeof t||ra(t)&&Ar(t)==O}var pa=De?Ge(De):function(t){return ra(t)&&ea(t.length)&&!!re[Ar(t)]},fa=Go(Pr),ha=Go((function(t,e){return t<=e}));function da(t){if(!t)return[];if(Gs(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==w?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,f):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=dt.test(t);return n||gt.test(t)?ae(t.slice(2),n?2:8):ht.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)||Gs(e))Fo(e,Ma(e),t);else for(var n in e)$t.call(e,n)&&nr(t,n,e[n])})),wa=Io((function(t,e){Fo(e,Ia(e),t)})),Ea=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),we(Ba,t,e)}));function Sa(e,n,r){var o=null==e?t:Cr(e,n);return o===t?r:o}function Oa(t,e){return null!=t&&vi(t,e,Or)}var Na=Vo((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Rt.call(e)),t[e]=n}),nu(iu)),Ta=Vo((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Rt.call(e)),$t.call(t,e)?t[e].push(n):t[e]=[n]}),ci),Fa=Xr(Tr);function Ma(t){return Gs(t)?Xn(t):Lr(t)}function Ia(t){return Gs(t)?Xn(t,!0):Rr(t)}var $a=Io((function(t,e,n){Vr(t,e,n)})),Ba=Io((function(t,e,n,r){Vr(t,e,n,r)})),La=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})),Ra=oi((function(t,e){return null==t?{}:function(t,e){return qr(t,e,(function(e,n){return Oa(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?[]:Je(t,Ma(t))}var Va=Ro((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=Ro((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ka=Ro((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ga=Lo("toLowerCase"),Ja=Ro((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Ya=Ro((function(t,e,n){return t+(n?" ":"")+Qa(e)})),Xa=Ro((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Qa=Lo("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 we(e,t,n)}catch(t){return Qs(t)?t:new Et(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=Er(e,r);null!=n||na(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=Er(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),hu=Uo(Ie);function du(t){return wi(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"),wu=Wo((function(t,e){return t/e}),1),Eu=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 Ot(e);return t=ga(t),function(){if(--t<1)return n.apply(this,arguments)}},zn.ary=Os,zn.assign=Da,zn.assignIn=wa,zn.assignInWith=Ea,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=ds,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 Ot(e);return[r(t[0]),t[1]]})):[],Xr((function(e){for(var r=-1;++r<n;){var o=t[r];if(we(o[0],this,e))return we(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?[]:Er(t,Ma(t))},zn.functionsIn=function(t){return null==t?[]:Er(t,Ia(t))},zn.groupBy=ws,zn.initial=function(t){return null!=t&&t.length?oo(t,0,-1):[]},zn.intersection=Ji,zn.intersectionBy=Yi,zn.intersectionWith=Xi,zn.invert=Na,zn.invertBy=Ta,zn.invokeMap=Es,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=Ls,zn.nthArg=function(t){return t=ga(t),Xr((function(e){return Wr(e,t)}))},zn.omit=La,zn.omitBy=function(t,e){return Pa(t,Ls(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=Rs,zn.overEvery=fu,zn.overSome=hu,zn.partial=Ps,zn.partialRight=js,zn.partition=As,zn.pick=Ra,zn.pickBy=Pa,zn.property=du,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,Ls(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 Gr(t,o),n},zn.rest=function(n,r){if("function"!=typeof n)throw new Ot(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?f:r>>>0)?(e=_a(e))&&("string"==typeof n||null!=n&&!aa(n))&&!(n=co(n))&&rn(e)?Eo(pn(e),0,r):e.split(n,r):[]},zn.spread=function(t,n){if("function"!=typeof t)throw new Ot(e);return n=null==n?0:bn(ga(n),0),Xr((function(e){var r=e[n],o=Eo(e,0,n);return r&&Te(o,r),we(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 Ot(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=da,zn.toPairs=ja,zn.toPairsIn=za,zn.toPath=function(t){return qs(t)?Ne(t,Pi):ca(t)?[t]:To(Ri(_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 Os(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?[]:Je(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=hs,zn.entries=ja,zn.entriesIn=za,zn.extend=wa,zn.extendWith=Ea,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=wu,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))&&G.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),wr)},zn.floor=Eu,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&&wr(t,ci(e,3))},zn.get=Sa,zn.gt=Vs,zn.gte=Ws,zn.has=function(t,e){return null!=t&&vi(t,e,Sr)},zn.hasIn=Oa,zn.head=Gi,zn.identity=iu,zn.includes=function(t,e,n,r){t=Gs(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&&Re(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)),Re(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=Gs,zn.isArrayLikeObject=Js,zn.isBoolean=function(t){return!0===t||!1===t||ra(t)&&Ar(t)==g},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(Gs(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==w||e==x)return!t.size;if(ki(t))return!Lr(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 Et("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):Le(e,je,i,!0)},zn.lowerCase=Ka,zn.lowerFirst=Ga,zn.lt=fa,zn.lte=ha,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=Ss,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),wn(_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=En();return _n(e+i*(n-e+se("1e-"+((i+"").length-1))),n)}return Jr(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,hr)},zn.reduceRight=function(t,e,n){var r=qs(t)?Me:We,o=arguments.length<3;return r(t,ci(e,4),n,o,dr)},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=D,zn.sample=function(t){return(qs(t)?Qn:Qr)(t)},zn.size=function(t){if(null==t)return 0;if(Gs(t))return la(t)?cn(t):t.length;var e=gi(t);return e==w||e==x?t.size:Lr(t).length},zn.snakeCase=Ja,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=Ea({},n,o,ti);var i,s,a=Ea({},n.imports,o.imports,ti),u=Ma(a),l=Je(a,u),c=0,p=n.interpolate||bt,f="__p += '",h=xt((n.escape||bt).source+"|"+p.source+"|"+(p===X?pt:bt).source+"|"+(n.evaluate||bt).source+"|$","g"),d="//# sourceURL="+($t.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ne+"]")+"\n";e.replace(h,(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 Et("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,d+"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=f,r=_n(t,f);e=ci(e),t-=f;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 Eo(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 Eo(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 Eo(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?Eo(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 h=l.lastIndexOf(i);h>-1&&(l=l.slice(0,h))}return l+o},zn.unescape=function(t){return(t=_a(t))&&K.test(t)?t.replace(U,hn):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=Gi,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,f),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(Ls(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(f)},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__,h=!!this.__actions__.length,d=s&&!f,m=u&&!h;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 d&&m?e.apply(this,a):(g=this.thru(p),d?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,h=_n(u,this.__takeCount__);if(!n||!r&&o==u&&h==u)return go(t,this.__actions__);var d=[];t:for(;u--&&f<h;){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}}d[f++]=g}return d},zn.prototype.at=gs,zn.prototype.chain=function(){return ds(this)},zn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===t&&(this.__values__=da(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=dn)._=dn,pe._=dn):ce._=dn}.call(D);const $h=Object.freeze({COMMON:"common",DESKTOP:"desktop",TABLET:"tablet",MOBILE:"mobile",get values(){return[this.COMMON,this.MOBILE,this.TABLET,this.DESKTOP]}}),Bh=Object.freeze({UPPERCASE:"uppercase",LOWERCASE:"lowercase",CAPITALIZE:"capitalize"}),Lh=Object.freeze({LEFT:"left",CENTER:"center",RIGHT:"right",JUSTIFY:"justify",get values(){return[this.LEFT,this.CENTER,this.RIGHT,this.JUSTIFY]}}),Rh=Object.freeze({DOCUMENT:"doc",PARAGRAPH:"paragraph",HEADING:"heading",LIST:"list",LIST_ITEM:"listItem",TEXT:"text",get blocks(){return[this.PARAGRAPH,this.LIST,this.HEADING]}}),Ph=Object.freeze({DISC:"disc",CIRCLE:"circle",SQUARE:"square",DECIMAL:"decimal",ROMAN:"roman",LATIN:"latin",get values(){return[this.DISC,this.CIRCLE,this.SQUARE,this.DECIMAL,this.ROMAN,this.LATIN]},get ordered(){return[this.DECIMAL,this.ROMAN,this.LATIN]}}),jh=Object.freeze({ALIGNMENT:"alignment",BACKGROUND_COLOR:"background_color",FONT_COLOR:"font_color",FONT_FAMILY:"font_family",FONT_SIZE:"font_size",FONT_STYLE:"font_style",FONT_WEIGHT:"font_weight",LINE_HEIGHT:"line_height",TEXT_DECORATION:"text_decoration",SUPERSCRIPT:"superscript",MARGIN:"margin",LINK:"link",STYLE_PRESET:"style_preset",get attributes(){return[this.ALIGNMENT,this.LINE_HEIGHT,this.MARGIN]},get inlineMarks(){return[this.TEXT_DECORATION,this.LINK,this.SUPERSCRIPT,this.BACKGROUND_COLOR]},get marks(){return[this.BACKGROUND_COLOR,this.FONT_COLOR,this.FONT_FAMILY,this.FONT_SIZE,this.FONT_STYLE,this.FONT_WEIGHT,this.TEXT_DECORATION,this.SUPERSCRIPT]}}),zh=Object.freeze({SETTINGS:"settings",ALL:"_"}),Hh=Object.freeze({BLANK:"_blank",SELF:"_self"}),Vh=Object.freeze({URL:"url",BLOCK:"block"});var Wh=new WeakSet,Uh=new WeakSet,qh=new WeakSet,Kh=new WeakSet,Gh=new WeakSet,Jh=new WeakSet,Yh=new WeakSet,Xh=new WeakSet,Qh=new WeakSet;class Zh extends Vf{constructor(...t){super(...t),e(this,Qh),e(this,Xh),e(this,Yh),e(this,Jh),e(this,Gh),e(this,Kh),e(this,qh),e(this,Uh),e(this,Wh)}normalize(){return i(this,Wh,td).call(this,i(this,qh,nd)),this.content}}function td(t){i(this,Uh,ed).call(this,this.content,t)}function ed(t,e){for(const n of t.content)n.content&&i(this,Uh,ed).call(this,n,e),e.call(this,n)}function nd(t){if(t.content&&t.type!==Rh.LIST)for(const e of t.content)if(e.marks)for(const n of e.marks.slice())i(this,Gh,od).call(this,t,n)?i(this,Yh,sd).call(this,e,n):i(this,Kh,rd).call(this,t,n)&&(i(this,Yh,sd).call(this,e,n),i(this,Xh,ad).call(this,t,n))}function rd(t,e){if(jh.inlineMarks.includes(e.type))return!1;if(i(this,Jh,id).call(this,t,e.type))return!1;for(const n of t.content)if(n.content||t.type!==Rh.LIST_ITEM){if(!n.marks)return!1;if(!i(this,Gh,od).call(this,n,e))return!1}return!0}function od(t,e){var n;return(null===(n=t.marks)||void 0===n?void 0:n.some((t=>Ih.exports.isEqual(t,e))))??!1}function id(t,e){var n;return(null===(n=t.marks)||void 0===n?void 0:n.some((t=>t.type===e)))??!1}function sd(t,e){if(!t.marks)return;const n=i(this,Qh,ud).call(this,t,e.type);n>=0&&t.marks.splice(n,1),t.marks.length||delete t.marks}function ad(t,e){i(this,Yh,sd).call(this,t,e),t.marks??(t.marks=[]),t.marks.push(e)}function ud(t,e){var n;return(null===(n=t.marks)||void 0===n?void 0:n.findIndex((t=>t.type===e)))??null}class ld{static build(e,n={}){return"string"==typeof e?t(this,ld,cd).call(this,e,n):t(this,ld,pd).call(this,e)}static normalize(t,e={}){return ld.build(t,e).normalize()}}function cd(t,e){return new ph({content:t,parser:e.parser||new Hf})}function pd(t){return new Zh({content:t})}class fd{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 hd{static doc(t){return{type:Rh.DOCUMENT,content:t}}static list(t,e){return{type:Rh.LIST,attrs:{bullet:{type:t}},content:e.map((t=>t.type===Rh.LIST_ITEM?t:this.listItem([].concat(t))))}}static listItem(...e){const{attrs:n,content:r,marks:o}=t(this,hd,md).call(this,e);return{type:Rh.LIST_ITEM,...n?{attrs:n}:{},...o?{marks:o}:{},content:[].concat(r).map((t=>"string"==typeof t?this.paragraph(t):t))}}static heading(e,...n){const r=t(this,hd,dd).call(this,n,this.text);return r.attrs??(r.attrs={}),r.attrs.level=e,{type:Rh.HEADING,...r}}static paragraph(...e){return{type:Rh.PARAGRAPH,...t(this,hd,dd).call(this,e,this.text)}}static text(t,e){return{type:Rh.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}}}function dd(e){const{attrs:n,content:r,marks:o}=t(this,hd,md).call(this,e);return{content:"string"==typeof r?[this.text(r)]:r,...n?{attrs:n}:{},...o?{marks:o}:{}}}function md(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]}}function gd(t,e){if(!t.includes("em"))return parseInt(t);const n=fd.getComputedStyle(e).fontSize,r=parseFloat(t)*parseFloat(n);return Math.round(r)}function vd(t,e,n){if(!t.includes("px"))return t;const r=function(t,e){return(t.firstElementChild||t).style.fontSize||fd.getComputedStyle(e).fontSize}(e,n),o=gd(r,n);return o?(parseInt(t)/o).toFixed(2):null}const yd={start:Lh.LEFT,end:Lh.RIGHT};const bd=(t,e,n,r)=>({from:Math.max(r,t.pos),to:Math.min(r+n.nodeSize,e.pos)});function _d(t,e){return t.resolve(e).depth+1}const Dd=(t,e)=>t.eq(e);function wd(t){return t.type.create(Ih.exports.cloneDeep(t.attrs))}const Ed=mf.create({name:jh.FONT_FAMILY,group:zh.SETTINGS,addOptions:()=>({fonts:[]}),addAttributes:()=>({value:{required:!0}}),addCommands(){return{applyFontFamily:yf((({commands:t},e)=>{t.applyMark(this.name,{value:e});const n=t.findFontByName(e);let r=Ye(t.getFontWeight());n.isWeightSupported(r)||(r=n.findClosestWeight(r),t.applyFontWeight(r)),n.isItalicSupported(r)||t.removeItalic()})),getFont:yf((({commands:t})=>{const e=t.getFontFamily();return Ze((()=>{const n=Ye(e)||Ye(this.options.defaultPreset).common.font_family;return t.findFontByName(n)}))})),findFontByName:yf(((t,e)=>this.options.fonts.find((t=>t.name===e)))),getFontFamily:yf((({commands:t})=>t.getCommonSettingMark(this.name,t.getDefaultFontFamily()))),getDefaultFontFamily:yf((({commands:t})=>{const e=t.getPreset();return Ze((()=>Ye(e).common.font_family))}))}},parseHTML(){const t=t=>{const e=t.replace(/["']/g,"");return{value:this.options.fonts.some((t=>t.name===e))?e:Ye(this.options.defaultPreset).common.font_family}};return[{style:"--zw-font-family",getAttrs:t},{style:"font-family",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>_f({font_family:t.value?`"${t.value}"`:null})});function Cd(t,e){return t.split(" ").map((t=>`.${t}`)).join("")+e.id}const kd=Vp.create({name:jh.STYLE_PRESET,addStorage:()=>({presetStyleEl:null}),addGlobalAttributes(){return[{types:[Rh.PARAGRAPH,Rh.HEADING],attributes:{preset:{isRequired:!1,default:{id:this.options.defaultId},parseHTML:t=>{const e=Ye(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=Cd(this.options.baseClass,{id:n});if(t.matches(e))return{id:n};if(t.tagName===`H${null==r?void 0:r.level}`)return{id:n}}return"P"===t.tagName?{id:this.options.defaultId}:null},renderHTML:t=>t.preset?{class:this.options.baseClass+t.preset.id}: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:yf((()=>Ze((()=>this.options.presets.filter((t=>!t.hidden)))))),getPreset:yf((({commands:n})=>{const r=n.getBlockAttributes("preset",{id:this.options.defaultId}),o=n.getPresetList(),i=n.isLink(),s=n.getLinkPreset();return Ze((()=>{const n=t(Ye(o),Ye(r).id);if(!Ye(i))return n;const a=Ye(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:yf((({commands:e,chain:n},r)=>{var o;const i=t(Ye(e.getPresetList()),r),s=(null===(o=i.node)||void 0===o?void 0:o.type)??Rh.PARAGRAPH,a={preset:{id:r}};i.node&&(a.level=i.node.level);for(const t of jh.attributes)a[t]=Ye(e.getBlockAttributes(t));n().removeList().setNode(s,a).run()})),applyDefaultPreset:yf((({commands:t})=>{t.applyPreset(this.options.defaultId)})),removePreset:yf((({commands:t})=>{t.setNode(Rh.PARAGRAPH,{preset:null})})),getPresetCustomization:yf((({editor:t,commands:e})=>{const n=Qe(t,"state");return Ze((()=>{const{selection:t,doc:r}=Ye(n),{from:o,to:i}=t;return e._getSettingCustomization(r,o,i)}))})),isSettingCustomized:yf((({commands:t},e)=>{const n=t.getPresetCustomization(),r=jh.attributes.includes(e)?"attributes":"marks";return Ze((()=>{var t;return(null===(t=Ye(n)[r])||void 0===t?void 0:t.includes(e))??!1}))})),getContentCustomization:yf((({editor:t,commands:e})=>{const n=Qe(t,"state");return Ze((()=>{const{doc:t}=Ye(n);return e._getSettingCustomization(t,0,t.content.size)}))})),_getSettingCustomization:yf(((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)){jh.attributes.includes(e)&&n&&i.add(e)}for(const{type:e}of t.marks)jh.marks.includes(e.name)&&o.add(e.name)})),{attributes:Array.from(i),marks:Array.from(o)}})),removePresetCustomization:yf((({chain:t})=>{t().storeSelection().expandSelectionToBlock().removeMarks(jh.marks).resetAttributes(Rh.PARAGRAPH,jh.attributes).resetAttributes(Rh.HEADING,jh.attributes).restoreSelection().run()})),removeFormat:yf((({chain:t})=>{t().storeSelection().expandSelectionToBlock().removeAllMarks().applyDefaultPreset().restoreSelection().run()}))}},onCreate(){const t=fd.document.querySelector("[data-zw-styles]");if(t)this.storage.presetStyleEl=t;else{this.storage.presetStyleEl=fd.document.createElement("style"),this.storage.presetStyleEl.dataset.zwStyles="";for(const t of this.options.presets){const e=[` ${Cd(this.options.baseClass,t)} {`];for(const n of $h.values)for(const r of Object.keys(t[n])){const o=this.options.makeVariable({device:n,preset:t,property:r}),i=r.replace(/_/i,"-"),s=n===$h.COMMON?"preset":`preset-${n}`;e.push(`--zw-${s}-${i}: var(${o}, inherit);`)}e.push("}"),this.storage.presetStyleEl.innerHTML+=e.join(" ")}fd.head.append(this.storage.presetStyleEl)}}}),Ad=mf.create({name:jh.FONT_WEIGHT,group:zh.SETTINGS,addAttributes:()=>({value:{required:!0}}),addCommands(){return{applyFontWeight:yf((({commands:t},e)=>{t.applyMark(this.name,{value:e});Ye(t.getFont()).isItalicSupported(e)||t.removeItalic()})),toggleBold:yf((({commands:t})=>{const e=Ye(t.getFontWeight()),n=Ye(t.getFont()),r=Number(e)>=600?"400":"700",o=n.findClosestWeight(r);t.applyFontWeight(o)})),getFontWeight:yf((({commands:t})=>{const e=t.getCommonSettingMark(this.name,t.getDefaultFontWeight()),n=t.getFont();return Ze((()=>{const t=Ye(e),r=Ye(n);return r.isWeightSupported(t)?t:r.findClosestWeight(t)}))})),getDefaultFontWeight:yf((({commands:t})=>{const e=t.getPreset();return Ze((()=>Ye(e).common.font_weight))}))}},addKeyboardShortcuts:()=>({"Mod-b":Df("toggleBold"),"Mod-B":Df("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})=>_f({font_weight:t.value})}),xd=gf.create({name:"text",group:"inline"});var Sd=function(){};Sd.prototype.append=function(t){return t.length?(t=Sd.from(t),!this.length&&t||t.length<200&&this.leafAppend(t)||this.length<200&&t.leafPrepend(this)||this.appendInner(t)):this},Sd.prototype.prepend=function(t){return t.length?Sd.from(t).append(this):this},Sd.prototype.appendInner=function(t){return new Nd(this,t)},Sd.prototype.slice=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this.length),t>=e?Sd.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},Sd.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},Sd.prototype.forEach=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length),e<=n?this.forEachInner(t,e,n,0):this.forEachInvertedInner(t,e,n,0)},Sd.prototype.map=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(e,n){return r.push(t(e,n))}),e,n),r},Sd.from=function(t){return t instanceof Sd?t:t&&t.length?new Od(t):Sd.empty};var Od=function(t){function e(e){t.call(this),this.values=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,n){return 0==t&&n==this.length?this:new e(this.values.slice(t,n))},e.prototype.getInner=function(t){return this.values[t]},e.prototype.forEachInner=function(t,e,n,r){for(var o=e;o<n;o++)if(!1===t(this.values[o],r+o))return!1},e.prototype.forEachInvertedInner=function(t,e,n,r){for(var o=e-1;o>=n;o--)if(!1===t(this.values[o],r+o))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=200)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=200)return new e(t.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(Sd);Sd.empty=new Od([]);var Nd=function(t){function e(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return t<this.left.length?this.left.get(t):this.right.get(t-this.left.length)},e.prototype.forEachInner=function(t,e,n,r){var o=this.left.length;return!(e<o&&!1===this.left.forEachInner(t,e,Math.min(n,o),r))&&(!(n>o&&!1===this.right.forEachInner(t,Math.max(e-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},e.prototype.forEachInvertedInner=function(t,e,n,r){var o=this.left.length;return!(e>o&&!1===this.right.forEachInvertedInner(t,e-o,Math.max(n,o)-o,r+o))&&(!(n<o&&!1===this.left.forEachInvertedInner(t,Math.min(e,o),n,r))&&void 0)},e.prototype.sliceInner=function(t,e){if(0==t&&e==this.length)return this;var n=this.left.length;return e<=n?this.left.slice(t,e):t>=n?this.right.slice(t-n,e-n):this.left.slice(t,n).append(this.right.slice(0,e-n))},e.prototype.leafAppend=function(t){var n=this.right.leafAppend(t);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(t){var n=this.left.leafPrepend(t);if(n)return new e(n,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(Sd),Td=Sd;class Fd{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(0==this.eventCount)return null;let n,r,o=this.items.length;for(;;o--){if(this.items.get(o-1).selection){--o;break}}e&&(n=this.remapping(o,this.items.length),r=n.maps.length);let i,s,a=t.tr,u=[],l=[];return this.items.forEach(((t,e)=>{if(!t.step)return n||(n=this.remapping(o,e+1),r=n.maps.length),r--,void l.push(t);if(n){l.push(new Md(t.map));let e,o=t.step.map(n.slice(r));o&&a.maybeStep(o).doc&&(e=a.mapping.maps[a.mapping.maps.length-1],u.push(new Md(e,void 0,void 0,u.length+l.length))),r--,e&&n.appendMap(e,r)}else a.maybeStep(t.step);return t.selection?(i=n?t.selection.map(n.slice(r)):t.selection,s=new Fd(this.items.slice(0,o).append(l.reverse().concat(u)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:a,selection:i}}addTransform(t,e,n,r){let o=[],i=this.eventCount,s=this.items,a=!r&&s.length?s.get(s.length-1):null;for(let n=0;n<t.steps.length;n++){let u,l=t.steps[n].invert(t.docs[n]),c=new Md(t.mapping.maps[n],l,e);(u=a&&a.merge(c))&&(c=u,n?o.pop():s=s.slice(0,s.length-1)),o.push(c),e&&(i++,e=void 0),r||(a=c)}let u=i-n.depth;return u>$d&&(s=function(t,e){let n;return t.forEach(((t,r)=>{if(t.selection&&0==e--)return n=r,!1})),t.slice(n)}(s,u),i-=u),new Fd(s.append(o),i)}remapping(t,e){let n=new pu;return this.items.forEach(((e,r)=>{let o=null!=e.mirrorOffset&&r-e.mirrorOffset>=t?n.maps.length-e.mirrorOffset:void 0;n.appendMap(e.map,o)}),t,e),n}addMaps(t){return 0==this.eventCount?this:new Fd(this.items.append(t.map((t=>new Md(t)))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-e),o=t.mapping,i=t.steps.length,s=this.eventCount;this.items.forEach((t=>{t.selection&&s--}),r);let a=e;this.items.forEach((e=>{let r=o.getMirror(--a);if(null==r)return;i=Math.min(i,r);let u=o.maps[r];if(e.step){let i=t.steps[r].invert(t.docs[r]),l=e.selection&&e.selection.map(o.slice(a+1,r));l&&s++,n.push(new Md(u,i,l))}else n.push(new Md(u))}),r);let u=[];for(let t=e;t<i;t++)u.push(new Md(o.maps[t]));let l=this.items.slice(0,r).append(u).append(n),c=new Fd(l,s);return c.emptyItemCount()>500&&(c=c.compress(this.items.length-n.length)),c}emptyItemCount(){let t=0;return this.items.forEach((e=>{e.step||t++})),t}compress(t=this.items.length){let e=this.remapping(0,t),n=e.maps.length,r=[],o=0;return this.items.forEach(((i,s)=>{if(s>=t)r.push(i),i.selection&&o++;else if(i.step){let t=i.step.map(e.slice(n)),s=t&&t.getMap();if(n--,s&&e.appendMap(s,n),t){let a=i.selection&&i.selection.map(e.slice(n));a&&o++;let u,l=new Md(s.invert(),t,a),c=r.length-1;(u=r.length&&r[c].merge(l))?r[c]=u:r.push(l)}}else i.map&&n--}),this.items.length,0),new Fd(Td.from(r.reverse()),o)}}Fd.empty=new Fd(Td.empty,0);class Md{constructor(t,e,n,r){this.map=t,this.step=e,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new Md(e.getMap().invert(),e,this.selection)}}}class Id{constructor(t,e,n,r){this.done=t,this.undone=e,this.prevRanges=n,this.prevTime=r}}const $d=20;function Bd(t){let e=[];return t.forEach(((t,n,r,o)=>e.push(r,o))),e}function Ld(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),i=e.map(t[r+1],-1);o<=i&&n.push(o,i)}return n}function Rd(t,e,n,r){let o=zd(e),i=Hd.get(e).spec.config,s=(r?t.undone:t.done).popEvent(e,o);if(!s)return;let a=s.selection.resolve(s.transform.doc),u=(r?t.done:t.undone).addTransform(s.transform,e.selection.getBookmark(),i,o),l=new Id(r?u:s.remaining,r?s.remaining:u,null,0);n(s.transform.setSelection(a).setMeta(Hd,{redo:r,historyState:l}).scrollIntoView())}let Pd=!1,jd=null;function zd(t){let e=t.plugins;if(jd!=e){Pd=!1,jd=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){Pd=!0;break}}return Pd}const Hd=new il("history"),Vd=new il("closeHistory");function Wd(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new nl({key:Hd,state:{init:()=>new Id(Fd.empty,Fd.empty,null,0),apply:(e,n,r)=>function(t,e,n,r){let o,i=n.getMeta(Hd);if(i)return i.historyState;n.getMeta(Vd)&&(t=new Id(t.done,t.undone,null,0));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return t;if(s&&s.getMeta(Hd))return s.getMeta(Hd).redo?new Id(t.done.addTransform(n,void 0,r,zd(e)),t.undone,Bd(n.mapping.maps[n.steps.length-1]),t.prevTime):new Id(t.done,t.undone.addTransform(n,void 0,r,zd(e)),null,t.prevTime);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new Id(t.done.rebased(n,o),t.undone.rebased(n,o),Ld(t.prevRanges,n.mapping),t.prevTime):new Id(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Ld(t.prevRanges,n.mapping),t.prevTime);{let o=0==t.prevTime||!s&&(t.prevTime<(n.time||0)-r.newGroupDelay||!function(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach(((t,r)=>{for(let o=0;o<e.length;o+=2)t<=e[o+1]&&r>=e[o]&&(n=!0)})),n}(n,t.prevRanges)),i=s?Ld(t.prevRanges,n.mapping):Bd(n.mapping.maps[n.steps.length-1]);return new Id(t.done.addTransform(n,o?e.selection.getBookmark():void 0,r,zd(e)),Fd.empty,i,n.time)}}(n,r,e,t)},config:t,props:{handleDOMEvents:{beforeinput(t,e){let n=e.inputType,r="historyUndo"==n?Ud:"historyRedo"==n?qd:null;return!!r&&(e.preventDefault(),r(t.state,t.dispatch))}}}})}const Ud=(t,e)=>{let n=Hd.getState(t);return!(!n||0==n.done.eventCount)&&(e&&Rd(n,t,e,!1),!0)},qd=(t,e)=>{let n=Hd.getState(t);return!(!n||0==n.undone.eventCount)&&(e&&Rd(n,t,e,!0),!0)},Kd=Vp.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:t,dispatch:e})=>Ud(t,e),redo:()=>({state:t,dispatch:e})=>qd(t,e)}),addProseMirrorPlugins(){return[Wd(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}});class Gd extends hu{static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Gd(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 du.fail("No node at mark step's position");const n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks)),r=new la(ra.from(n),0,e.isLeaf?0:1);return du.fromReplace(t,this.pos,this.pos+1,r)}invert(t){const e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new Jd(this.pos,this.mark):this}map(t){const e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Gd(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}}hu.jsonID("removeNodeMark",Gd);class Jd extends hu{static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Jd(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 du.fail("No node at mark step's position");const n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks)),r=new la(ra.from(n),0,e.isLeaf?0:1);return du.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 Jd(this.pos,n);return new Jd(this.pos,this.mark)}}return new Gd(this.pos,this.mark)}map(t){const e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Jd(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}}hu.jsonID("addNodeMark",Jd);class Yd extends hu{static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Yd(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 du.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 la(ra.from(r),0,e.isLeaf?0:1);return du.fromReplace(t,this.pos,this.pos+1,o)}getMap(){return cu.empty}invert(t){return new Yd(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 Yd(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}}hu.jsonID("attr",Yd);const Xd=Vp.create({name:"node_processor",addCommands:()=>({setBlockAttributes:yf((({commands:t,state:e},n,r,o={})=>{const i=Ye(t.getBlockAttributes(n))??{},{doc:s,tr:a}=e,{from:u,to:l}=a.selection;s.nodesBetween(u,l,((t,e)=>{Rh.blocks.includes(t.type.name)&&a.step(new Yd(e,n,{...o,...i,...r}))}))})),getBlockAttributes:yf((({editor:t},e,n)=>Ze((()=>{let r=Object.assign({},n||{});for(const n of Rh.blocks){var o;Object.assign(r,(null===(o=t.getAttributes(n))||void 0===o?void 0:o[e])||{})}return Object.keys(r).length?r:null})))),removeBlockAttributes:yf((({commands:t},e)=>{for(const n of Rh.blocks)t.resetAttributes(n,e)})),applyMark:yf((({state:t,commands:e},n,r,o={})=>{const{tr:i,doc:s,schema:a}=t,{$from:u,$to:l}=i.selection,c=Gp(n,a);if(!(c.spec.group||"").includes(zh.SETTINGS))return e.setMark(n,r);if(u.pos===l.pos)return;s.nodesBetween(u.pos,l.pos,((t,s)=>{if(t.type.name===Rh.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),p=c.create({...(null==a?void 0:a.attrs)||{},...r}),f=bd(u,l,t,s);if(function(t,e,n,r=Dd){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,p,o.isAppliedToParent))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:p});t.isText?i.addMark(f.from,f.to,p):function(t,e,n,r){const o=_d(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 Jd(s,p))}))})),getMarks:yf((({editor:t},e)=>{const n=Qe(t,"state");return Ze((()=>{const{selection:t,doc:r}=Ye(n),{from:o,to:i}=Ye(t),s=[];return r.nodesBetween(o,i,(t=>{for(const n of t.marks)n.type.name===e&&s.unshift(n.attrs)})),s}))})),getMark:yf((({commands:t},e)=>{const n=t.getMarks(e);return Ze((()=>Ye(n)[0]??null))})),hasMark:yf((({commands:t},e)=>{const n=t.getMark(e);return Ze((()=>!!Ye(n)))})),getCommonSettingMark:yf((({commands:t},e,n)=>{const r=t.getMark(e);return Ze((()=>{var t;return(null===(t=Ye(r))||void 0===t?void 0:t.value)??Ye(n)}))})),getDeviceSettingMark:yf((({commands:t},e,n)=>{const r=t.getMarks(e),o=t.getDevice();return Ze((()=>{for(const t of Ye(r)){const e=t[Ye(o)];if(e)return e}return Ye(n)}))})),removeAllMarks:yf((({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:yf((({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:yf(((t,{tr:e,node:n,position:r,mark:o})=>n.isText?e.removeMark(r,r+n.nodeSize,o):e.step(new Gd(r,o))))})}),Qd=Vp.create({name:"text_processor",addCommands:()=>({getSelectedText:yf((({state:t})=>{const{from:e,to:n}=t.selection;return t.doc.textBetween(e,n," ")})),transformText:yf((({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=bd(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)}))}))})}),Zd=Vp.create({name:"selection_processor",addStorage:()=>({selection:null}),addCommands(){return{storeSelection:yf((({state:t})=>{this.storage.selection=t.selection})),restoreSelection:yf((({commands:t})=>{this.storage.selection&&t.setTextSelection(this.storage.selection)})),expandSelection:yf((({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:_d(t.doc,i);r=Math.min(r,i+n),o=Math.max(o,i+e.nodeSize-n)}})),e.setTextSelection({from:r,to:o})})),expandSelectionToBlock:yf((({commands:t})=>{t.expandSelection((({parent:t})=>t.type.name===Rh.DOCUMENT))}))}}}),tm=gf.create({name:"doc",topNode:!0,content:"block+"}).extend({marks:zh.SETTINGS}),em=gf.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",kp(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),nm=em.extend({marks:zh.ALL,addOptions:()=>({HTMLAttributes:{class:"zw-style"}})}),rm=gf.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]}`,kp(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 Ip({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),i=xp(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}})))}}),om=rm.extend({marks:zh.ALL,addOptions:()=>({levels:[1,2,3,4],HTMLAttributes:{class:"zw-style"}})});class im{static create(t,e){const n=new this(t,e||{});return new nl({key:new il(this.name),props:n.buildProps()})}constructor(t,e){this.options=e,this.editor=t}buildProps(){return{}}}class sm extends im{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=ld.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===Rh.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}}var am=new WeakSet;class um extends im{constructor(...t){super(...t),e(this,am)}buildProps(){return{decorations:i(this,am,lm).bind(this)}}}function lm({doc:t}){const e=[];return this.editor.isEditable?t.childCount>1?void 0:(t.descendants(((t,n)=>{if(!t.childCount){const r=$c.node(n,n+t.nodeSize,{class:"zw-wysiwyg__placeholder","data-placeholder":"Type your text here..."});e.push(r)}return!1})),Rc.create(t,e)):null}const cm=Vp.create({name:"prose_mirror_plugins",addProseMirrorPlugins(){return[sm.create(this.editor),um.create(this.editor)]}}),pm=mf.create({name:jh.FONT_SIZE,group:zh.SETTINGS,addOptions:()=>({minSize:1,maxSize:100}),addAttributes:()=>({mobile:{default:null},tablet:{default:null},desktop:{default:null}}),addCommands(){return{getFontSize:yf((({commands:t})=>t.getDeviceSettingMark(this.name,t.getDefaultFontSize()))),getDefaultFontSize:yf((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return Ze((()=>Ye(n)[Ye(e)].font_size.replace("px","")))})),applyFontSize:yf((({commands:t},e)=>{const n=Ye(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 Jd(r,a))}})})),increaseFontSize:yf((({commands:t})=>{const e=Number(Ye(t.getFontSize())),n=Math.min(e+1,this.options.maxSize);t.applyFontSize(String(n))})),decreaseFontSize:yf((({commands:t})=>{const e=Number(Ye(t.getFontSize())),n=Math.max(e-1,this.options.minSize);t.applyFontSize(String(n))}))}},addKeyboardShortcuts:()=>({"Mod-Shift-=":Df("increaseFontSize"),"Mod-Shift--":Df("decreaseFontSize")}),parseHTML(){const t=t=>{if(!t)return null;const e=gd(t,Ye(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 _f({font_size_mobile:e(t.mobile),font_size_tablet:e(t.tablet),font_size_desktop:e(t.desktop)})}}),fm=mf.create({name:jh.FONT_COLOR,group:zh.SETTINGS,addAttributes:()=>({value:{required:!0}}),addCommands(){return{getFontColor:yf((({commands:t})=>t.getCommonSettingMark(this.name,t.getDefaultFontColor()))),getDefaultFontColor:yf((({commands:t})=>{const e=t.getPreset();return Ze((()=>Ye(e).common.color))})),applyFontColor:yf((({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})=>_f({font_color:t.value})}),hm=mf.create({name:jh.BACKGROUND_COLOR,addAttributes:()=>({value:{required:!0}}),addCommands(){return{getBackgroundColor:yf((({commands:t})=>t.getCommonSettingMark(this.name,"rgba(255, 255, 255, 0%)"))),applyBackgroundColor:yf((({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})=>_f({background_color:t.value})}),dm=Vp.create({name:"device_manager",addCommands(){return{getDevice:yf((()=>Qe(this.options,"device")))}}}),mm=mf.create({name:jh.FONT_STYLE,group:zh.SETTINGS,addAttributes:()=>({italic:{required:!0}}),addCommands(){return{isItalic:yf((({commands:t})=>{const e=t.getMark(this.name),n=t.getDefaultFontStyle();return Ze((()=>{var t;return(null===(t=Ye(e))||void 0===t?void 0:t.italic)??Ye(n).italic}))})),isItalicAvailable:yf((({commands:t})=>{const e=t.getFont(),n=t.getFontWeight();return Ze((()=>{const t=Ye(e),r=Ye(n);return t.isItalicSupported(r)&&!t.isWeightItalicOnly(r)}))})),getDefaultFontStyle:yf((({commands:t})=>{const e=t.getPreset();return Ze((()=>({italic:"italic"===Ye(e).common.font_style})))})),toggleItalic:yf((({commands:t})=>{Ye(t.isItalicAvailable())&&(Ye(t.isItalic())?t.removeItalic():t.applyItalic())})),applyItalic:yf((({commands:t})=>{t.applyMark(this.name,{italic:!0})})),removeItalic:yf((({commands:t})=>{t.applyMark(this.name,{italic:!1})}))}},addKeyboardShortcuts:()=>({"Mod-i":Df("toggleItalic"),"Mod-I":Df("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})=>_f({font_style:t.italic?"italic":"normal"})}),gm=mf.create({name:jh.TEXT_DECORATION,priority:1e3,addAttributes:()=>({underline:{default:!1},strike_through:{default:!1}}),addCommands(){return{isUnderline:yf((({commands:t})=>{const e=t.getTextDecoration();return Ze((()=>Ye(e).underline))})),isStrikeThrough:yf((({commands:t})=>{const e=t.getTextDecoration();return Ze((()=>Ye(e).strike_through))})),getTextDecoration:yf((({commands:t})=>{const e=t.getMark(this.name),n=t.getDefaultTextDecoration();return Ze((()=>{const t=Ye(e)??{},r=Ye(n);return{underline:t.underline||r.underline,strike_through:t.strike_through||r.strike_through}}))})),isUnderlineCustomized:yf((({commands:t})=>{const e=t.isUnderline(),n=t.getDefaultTextDecoration();return Ze((()=>Ye(e)!==Ye(n).underline))})),getDefaultTextDecoration:yf((({commands:t})=>{const e=t.getPreset();return Ze((()=>{const{text_decoration:t}=Ye(e).common;return{underline:t.includes("underline"),strike_through:t.includes("line-through")}}))})),toggleUnderline:yf((({commands:t})=>{t.toggleTextDecoration("underline")})),toggleStrikeThrough:yf((({commands:t})=>{t.toggleTextDecoration("strike_through")})),toggleTextDecoration:yf((({commands:t},e,n=null)=>{const r=Ye(t.getTextDecoration()),o=n??!r[e];t.applyMark(this.name,{[e]:o})})),applyTextDecoration:yf((({commands:t},e)=>{t.toggleTextDecoration(e,!0)})),removeTextDecoration:yf((({commands:t},e)=>{t.toggleTextDecoration(e,!1)}))}},addKeyboardShortcuts:()=>({"Mod-u":Df("toggleUnderline"),"Mod-U":Df("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"),_f({text_decoration:e.join(" ")})}}),vm=Vp.create({name:"case_style",addCommands:()=>({applyCaseStyle:yf((({commands:t},e)=>{switch(e){case Bh.CAPITALIZE:return t.applyCapitalize();case Bh.LOWERCASE:return t.applyLowerCase();case Bh.UPPERCASE:return t.applyUpperCase()}})),applyCapitalize:yf((({commands:t})=>{t.transformText((({text:t})=>function(t){return t.toLowerCase().replace(/(?:^|\s)\S/g,(t=>t.toUpperCase()))}(t)))})),applyLowerCase:yf((({commands:t})=>{t.transformText((({text:t})=>t.toLowerCase()))})),applyUpperCase:yf((({commands:t})=>{t.transformText((({text:t})=>t.toUpperCase()))}))})}),ym={mobile:null,tablet:null,desktop:null},bm=Vp.create({name:jh.ALIGNMENT,addGlobalAttributes:()=>[{types:[Rh.PARAGRAPH,Rh.HEADING],attributes:{[jh.ALIGNMENT]:{isRequired:!1,parseHTML({style:t}){const e=function(t){const e=yd[t]||t;return Lh.values.includes(e)?e:null}(t.textAlign);if(e)return{desktop:e,tablet:e,mobile:e};const n=t.getPropertyValue("--zw-text-align-mobile")||null,r=t.getPropertyValue("--zw-text-align-tablet")||null,o=t.getPropertyValue("--zw-text-align-desktop")||null;return n||r||o?{desktop:o,tablet:r,mobile:n}:null},renderHTML:t=>t.alignment?bf({text_align_mobile:t.alignment.mobile,text_align_tablet:t.alignment.tablet,text_align_desktop:t.alignment.desktop}):null}}}],addCommands(){return{toggleAlignment:yf((({commands:t},e)=>{Ye(t.getAlignment())===e?t.removeAlignment():t.applyAlignment(e)})),applyAlignment:yf((({commands:t},e)=>{const n=Ye(t.getDevice());t.setBlockAttributes(this.name,{[n]:e},ym)})),removeAlignment:yf((({commands:t})=>t.removeBlockAttributes(this.name))),getAlignment:yf((({commands:t})=>{const e=t.getBlockAttributes(this.name,ym),n=t.getDevice(),r=t.getDefaultAlignment();return Ze((()=>{var t;return(null===(t=Ye(e))||void 0===t?void 0:t[Ye(n)])??Ye(r)}))})),getDefaultAlignment:yf((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return Ze((()=>Ye(n)[Ye(e)].alignment))}))}},addKeyboardShortcuts:()=>({"Mod-Shift-l":Df("applyAlignment",Lh.LEFT),"Mod-Shift-e":Df("applyAlignment",Lh.CENTER),"Mod-Shift-r":Df("applyAlignment",Lh.RIGHT),"Mod-Shift-j":Df("applyAlignment",Lh.JUSTIFY)})}),_m={mobile:null,tablet:null,desktop:null},Dm=Vp.create({name:jh.LINE_HEIGHT,addGlobalAttributes(){return[{types:[Rh.PARAGRAPH,Rh.HEADING],attributes:{[jh.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=vd(e,t,Ye(this.options.wrapperRef));return n?{desktop:n,tablet:n,mobile:null}:null},renderHTML:t=>t.line_height?bf({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:yf((({commands:t})=>{const e=t.getBlockAttributes(this.name,_m),n=t.getDevice(),r=t.getDefaultLineHeight();return Ze((()=>{var t;return(null===(t=Ye(e))||void 0===t?void 0:t[Ye(n)])??Ye(r)}))})),getDefaultLineHeight:yf((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return Ze((()=>Ye(n)[Ye(e)].line_height))})),applyLineHeight:yf((({commands:t},e)=>{const n=Ye(t.getDevice());t.setBlockAttributes(this.name,{[n]:e},_m)}))}}}),wm=gf.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",kp(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:Rh.LIST_ITEM,marks:zh.SETTINGS,addCommands(){const t=({selection:t})=>t.$cursor.before(t.$cursor.depth-1);return{listItemNewline:yf((({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 Jd(o,wd(t)));return!0}))}},addOptions:()=>({HTMLAttributes:{class:"zw-style"}}),addKeyboardShortcuts:()=>({Enter:t=>{var e;const{state:n,commands:r}=t.editor;if(null===(e=n.selection.$cursor)||void 0===e?void 0:e.path.some((t=>{var e;return(null===(e=t.type)||void 0===e?void 0:e.name)===Rh.LIST})))return r.listItemNewline()}})}),Em=gf.create({name:Rh.LIST,content:`${Rh.LIST_ITEM}+`,group:"block list",marks:zh.SETTINGS,addExtensions:()=>[wm],addOptions:()=>({baseClass:"",presetClass:""}),addAttributes:()=>({bullet:{default:{type:Ph.DISC}}}),parseHTML(){const t={a:Ph.ROMAN,i:Ph.LATIN,1:Ph.DECIMAL},e=e=>{for(const n of Ph.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)||Ph.DECIMAL}})},{tag:"ul",getAttrs:t=>({bullet:{type:e(t)||Ph.DISC}})}]},renderHTML({HTMLAttributes:t}){const e=[this.options.baseClass+t.bullet.type,this.options.presetClass];return[Ph.ordered.includes(t.bullet.type)?"ol":"ul",{class:e.join(" ")},0]},addCommands:()=>({getListType:yf((({commands:t})=>{const e=t.getBlockAttributes("bullet",{type:null});return Ze((()=>Ye(e).type??null))})),applyList:yf((({commands:t,chain:e},n)=>{if(Ye(t.getListType())!==n)return e().applyDefaultPreset().toggleList(Rh.LIST,Rh.LIST_ITEM).setBlockAttributes("bullet",{type:n}).command((({commands:t,tr:e})=>t._bubbleListItemMarks(e))).run();t.removeList()})),_bubbleListItemMarks:yf(((t,e)=>{const{doc:n,selection:r}=e,o=r.$from.start(),i=r.$to.end();function s(t,e){if(jh.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===Rh.LIST)return;if(t.type.name!==Rh.LIST_ITEM)return!1;const r=[];return t.forEach((o=>{for(const i of o.marks)i.isInSet(r)?e.step(new Gd(n+1,i)):s(t,i)&&(e.step(new Gd(n+1,i)),e.step(new Jd(n,wd(i))),r.push(i))})),!1}))})),removeList:yf((({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([Rh.LIST,Rh.LIST_ITEM].includes(t.type.name))return;if(r.type.name!==Rh.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 Jd(e,wd(t)));return!1})),t.liftListItem(Rh.LIST_ITEM)}))}),addInputRules(){const t=(t,e)=>function(t){return new Ip({find:t.find,handler:({state:e,range:n,match:r})=>{const o=xp(t.getAttributes,void 0,r)||{},i=e.tr.delete(n.from,n.to),s=i.doc.resolve(n.from).blockRange(),a=s&&Eu(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&&Au(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(Ph.DISC,/^\s*([-+*])\s$/),t(Ph.DECIMAL,/^(\d+)\.\s$/),t(Ph.LATIN,/^([ivx]{1,3})\.\s$/i),t(Ph.ROMAN,/^([a-z])\.\s$/i)]}});function Cm(t){this.j={},this.jr=[],this.jd=null,this.t=t}Cm.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=km();var o=Om(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 km=function(){return new Cm},Am=function(t){return new Cm(t)},xm=function(t,e,n){t.j[e]||(t.j[e]=n)},Sm=function(t,e,n){t.jr.push([e,n])},Om=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},Nm=function(t,e,n){for(var r=0;r<e.length;r++)xm(t,e[r],n)},Tm=function(t,e){for(var n=0;n<e.length;n++){var r=e[n][0],o=e[n][1];xm(t,r,o)}},Fm=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(),xm(t,e[i],o),t=o,i++;xm(t,e[s-1],n)},Mm="DOMAIN",Im="TLD",$m="NUM",Bm="AT",Lm="DOT",Rm="SLASH",Pm=Object.freeze({__proto__:null,DOMAIN:Mm,LOCALHOST:"LOCALHOST",TLD:Im,NUM:$m,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:Bm,BACKSLASH:"BACKSLASH",BACKTICK:"BACKTICK",CARET:"CARET",COLON:"COLON",COMMA:"COMMA",DOLLAR:"DOLLAR",DOT:Lm,EQUALS:"EQUALS",EXCLAMATION:"EXCLAMATION",HYPHEN:"HYPHEN",PERCENT:"PERCENT",PIPE:"PIPE",PLUS:"PLUS",POUND:"POUND",QUERY:"QUERY",QUOTE:"QUOTE",SEMI:"SEMI",SLASH:Rm,TILDE:"TILDE",UNDERSCORE:"UNDERSCORE",SYM:"SYM"}),jm="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(" "),zm=/(?:[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])/,Hm=/(?:[#\*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])/,Vm=/\uFE0F/,Wm=/\d/,Um=/\s/;function qm(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=km(),n=Am($m),r=Am(Mm),o=km(),i=Am("WS"),s=[[Wm,r],[zm,r],[Hm,r],[Vm,r]],a=function(){var t=Am(Mm);return t.j={"-":o},t.jr=[].concat(s),t},u=function(t){var e=a();return e.t=t,e};Tm(e,[["'",Am("APOSTROPHE")],["{",Am("OPENBRACE")],["[",Am("OPENBRACKET")],["<",Am("OPENANGLEBRACKET")],["(",Am("OPENPAREN")],["}",Am("CLOSEBRACE")],["]",Am("CLOSEBRACKET")],[">",Am("CLOSEANGLEBRACKET")],[")",Am("CLOSEPAREN")],["&",Am("AMPERSAND")],["*",Am("ASTERISK")],["@",Am(Bm)],["`",Am("BACKTICK")],["^",Am("CARET")],[":",Am("COLON")],[",",Am("COMMA")],["$",Am("DOLLAR")],[".",Am(Lm)],["=",Am("EQUALS")],["!",Am("EXCLAMATION")],["-",Am("HYPHEN")],["%",Am("PERCENT")],["|",Am("PIPE")],["+",Am("PLUS")],["#",Am("POUND")],["?",Am("QUERY")],['"',Am("QUOTE")],["/",Am(Rm)],[";",Am("SEMI")],["~",Am("TILDE")],["_",Am("UNDERSCORE")],["\\",Am("BACKSLASH")]]),xm(e,"\n",Am("NL")),Sm(e,Um,i),xm(i,"\n",km()),Sm(i,Um,i);for(var l=0;l<jm.length;l++)Fm(e,jm[l],u(Im),a);var c=a(),p=a(),f=a(),h=a();Fm(e,"file",c,a),Fm(e,"ftp",p,a),Fm(e,"http",f,a),Fm(e,"mailto",h,a);var d=a(),m=Am("PROTOCOL"),g=Am("MAILTO");xm(p,"s",d),xm(p,":",m),xm(f,"s",d),xm(f,":",m),xm(c,":",m),xm(d,":",m),xm(h,":",g);for(var v=a(),y=0;y<t.length;y++)Fm(e,t[y],v,a);return xm(v,":",m),Fm(e,"localhost",u("LOCALHOST"),a),Sm(e,Wm,n),Sm(e,zm,r),Sm(e,Hm,r),Sm(e,Vm,r),Sm(n,Wm,n),Sm(n,zm,r),Sm(n,Hm,r),Sm(n,Vm,r),xm(n,"-",o),xm(r,"-",o),xm(o,"-",o),Sm(r,Wm,r),Sm(r,zm,r),Sm(r,Hm,r),Sm(r,Vm,r),Sm(o,Wm,r),Sm(o,zm,r),Sm(o,Hm,r),Sm(o,Vm,r),e.jd=Am("SYM"),e}var Km={defaultProtocol:"http",events:null,format:Gm,formatHref:Gm,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:0,className:null,attributes:null,ignoreTags:[]};function Gm(t){return t}function Jm(){}function Ym(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}(Jm,n,e),n}Jm.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]:Km.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}}};var Xm=Ym("email",{isLink:!0}),Qm=Ym("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),Zm=Ym("text"),tg=Ym("nl"),eg=Ym("url",{isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Km.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===Rm;)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}}),ng=Object.freeze({__proto__:null,MultiToken:Jm,Base:Jm,createTokenClass:Ym,MailtoEmail:Xm,Email:Qm,Text:Zm,Nl:tg,Url:eg});function rg(){var t=km(),e=km(),n=km(),r=km(),o=km(),i=km(),s=km(),a=Am(eg),u=km(),l=Am(eg),c=Am(eg),p=km(),f=km(),h=km(),d=km(),m=km(),g=Am(eg),v=Am(eg),y=Am(eg),b=Am(eg),_=km(),D=km(),w=km(),E=km(),C=km(),k=km(),A=Am(Qm),x=km(),S=Am(Qm),O=Am(Xm),N=km(),T=km(),F=km(),M=km(),I=Am(tg);xm(t,"NL",I),xm(t,"PROTOCOL",e),xm(t,"MAILTO",n),xm(e,Rm,r),xm(r,Rm,o),xm(t,Im,i),xm(t,Mm,i),xm(t,"LOCALHOST",a),xm(t,$m,i),xm(o,Im,c),xm(o,Mm,c),xm(o,$m,c),xm(o,"LOCALHOST",c),xm(i,Lm,s),xm(C,Lm,k),xm(s,Im,a),xm(s,Mm,i),xm(s,$m,i),xm(s,"LOCALHOST",i),xm(k,Im,A),xm(k,Mm,C),xm(k,$m,C),xm(k,"LOCALHOST",C),xm(a,Lm,s),xm(A,Lm,k),xm(a,"COLON",u),xm(a,Rm,c),xm(u,$m,l),xm(l,Rm,c),xm(A,"COLON",x),xm(x,$m,S);var $=["AMPERSAND","ASTERISK",Bm,"BACKSLASH","BACKTICK","CARET","DOLLAR",Mm,"EQUALS","HYPHEN","LOCALHOST",$m,"PERCENT","PIPE","PLUS","POUND","PROTOCOL",Rm,"SYM","TILDE",Im,"UNDERSCORE"],B=["APOSTROPHE","CLOSEANGLEBRACKET","CLOSEBRACE","CLOSEBRACKET","CLOSEPAREN","COLON","COMMA",Lm,"EXCLAMATION","OPENANGLEBRACKET","OPENBRACE","OPENBRACKET","OPENPAREN","QUERY","QUOTE","SEMI"];xm(c,"OPENBRACE",f),xm(c,"OPENBRACKET",h),xm(c,"OPENANGLEBRACKET",d),xm(c,"OPENPAREN",m),xm(p,"OPENBRACE",f),xm(p,"OPENBRACKET",h),xm(p,"OPENANGLEBRACKET",d),xm(p,"OPENPAREN",m),xm(f,"CLOSEBRACE",c),xm(h,"CLOSEBRACKET",c),xm(d,"CLOSEANGLEBRACKET",c),xm(m,"CLOSEPAREN",c),xm(g,"CLOSEBRACE",c),xm(v,"CLOSEBRACKET",c),xm(y,"CLOSEANGLEBRACKET",c),xm(b,"CLOSEPAREN",c),xm(_,"CLOSEBRACE",c),xm(D,"CLOSEBRACKET",c),xm(w,"CLOSEANGLEBRACKET",c),xm(E,"CLOSEPAREN",c),Nm(f,$,g),Nm(h,$,v),Nm(d,$,y),Nm(m,$,b),Nm(f,B,_),Nm(h,B,D),Nm(d,B,w),Nm(m,B,E),Nm(g,$,g),Nm(v,$,v),Nm(y,$,y),Nm(b,$,b),Nm(g,B,g),Nm(v,B,v),Nm(y,B,y),Nm(b,B,b),Nm(_,$,g),Nm(D,$,v),Nm(w,$,y),Nm(E,$,b),Nm(_,B,_),Nm(D,B,D),Nm(w,B,w),Nm(E,B,E),Nm(c,$,c),Nm(p,$,c),Nm(c,B,p),Nm(p,B,p),xm(n,Im,O),xm(n,Mm,O),xm(n,$m,O),xm(n,"LOCALHOST",O),Nm(O,$,O),Nm(O,B,N),Nm(N,$,O),Nm(N,B,N);var L=["AMPERSAND","APOSTROPHE","ASTERISK","BACKSLASH","BACKTICK","CARET","CLOSEBRACE","DOLLAR",Mm,"EQUALS","HYPHEN",$m,"OPENBRACE","PERCENT","PIPE","PLUS","POUND","QUERY",Rm,"SYM","TILDE",Im,"UNDERSCORE"];return Nm(i,L,T),xm(i,Bm,F),Nm(a,L,T),xm(a,Bm,F),Nm(s,L,T),Nm(T,L,T),xm(T,Bm,F),xm(T,Lm,M),Nm(M,L,T),xm(F,Im,C),xm(F,Mm,C),xm(F,$m,C),xm(F,"LOCALHOST",A),t}function og(t,e,n){var r=n[0].s,o=n[n.length-1].e;return new t(e.substr(r,o-r),n)}var ig="undefined"!=typeof console&&console&&console.warn||function(){},sg={scanner:null,parser:null,pluginQueue:[],customProtocols:[],initialized:!1};function ag(t){if(sg.initialized&&ig('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");sg.customProtocols.push(t)}function ug(t){return sg.initialized||function(){sg.scanner={start:qm(sg.customProtocols),tokens:Pm},sg.parser={start:rg(),tokens:ng};for(var t={createTokenClass:Ym},e=0;e<sg.pluginQueue.length;e++)sg.pluginQueue[e][1]({scanner:sg.scanner,parser:sg.parser,utils:t});sg.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=Om(a,n[o].t));)s.push(n[o++]);for(;o<r&&(l=u||Om(a,n[o].t));)u=null,(a=l).accepts()?(f=0,p=a):f>=0&&f++,o++,c++;if(f<0)for(var h=o-c;h<o;h++)s.push(n[h]);else{s.length>0&&(i.push(og(Zm,e,s)),s=[]),o-=f,c-=f;var d=p.t,m=n.slice(o-c,o);i.push(og(d,e,m))}}return s.length>0&&i.push(og(Zm,e,s)),i}(sg.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=Om(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}(sg.scanner.start,t))}function lg(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=ug(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 cg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=ug(t);return 1===n.length&&n[0].isLink&&(!e||n[0].t===e)}function pg(t){return new nl({key:new il("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 Pu(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}})}))})),hf(r)}(a);return l.forEach((({oldRange:e,newRange:o})=>{df(e.from,e.to,n.doc).filter((e=>e.mark.type===t.type)).forEach((e=>{const o=df(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=cg(a),p=cg(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=>{lg(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 fg=mf.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(ag)},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",kp(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[vf({find:t=>lg(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(pg({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push((e={type:this.type},new nl({key:new il("handleClickLink"),props:{handleClick:(t,n,r)=>{var o;const i=ff(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 nl({key:new il("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=lg(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}}),hg=fg.extend({name:jh.LINK,addOptions(){var t;return{...null===(t=this.parent)||void 0===t?void 0:t.call(this),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:Hh.SELF,parseHTML:t=>t.getAttribute("target")||Hh.SELF},destination:{default:Vh.URL,parseHTML:t=>{const e=t.getAttribute("href");if(!e.startsWith("#"))return Vh.URL;const n=e.replace("#","");return Ye(this.options.pageBlocks).find((t=>t.id===parseInt(n)))?Vh.BLOCK:Vh.URL}}}},addCommands(){var t;return{...null===(t=this.parent)||void 0===t?void 0:t.call(this),applyLink:yf((({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(hd.text(n.text,[hd.mark(jh.LINK,n)])))),expandSelectionToLink:yf((({commands:t})=>{t.expandSelection((({node:t})=>this.type.isInSet(t.marks)))})),isLink:yf((({commands:t})=>t.hasMark(this.name))),getLinkPreset:yf((()=>Ze((()=>this.options.preset))))}},renderHTML({HTMLAttributes:t}){const e=t.destination===Vh.BLOCK?`#${t.href}`:t.href,n=`${Ye(this.options.basePresetClass)+Ye(this.options.preset).id} zw-style`;return["a",{href:e,target:t.target,class:n},0]}}),dg=mf.create({name:jh.SUPERSCRIPT,addCommands(){return{applySuperscript:yf((({commands:t})=>{t.setMark(this.name)})),removeSuperscript:yf((({commands:t})=>{t.unsetMark(this.name)})),toggleSuperscript:yf((({commands:t})=>{Ye(t.isSuperscript())?t.removeSuperscript():t.applySuperscript()})),isSuperscript:yf((({commands:t})=>{const e=t.getMark(this.name);return Ze((()=>!!Ye(e)))}))}},parseHTML:()=>[{tag:"sup"},{style:"vertical-align",getAttrs:t=>"super"===t&&null}],renderHTML:()=>["sup",{class:"zw-superscript"},0]}),mg=Vp.create({name:jh.MARGIN,addGlobalAttributes:()=>[{types:[Rh.PARAGRAPH,Rh.HEADING],attributes:{[jh.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?bf({margin:t.margin.value}):null}}}]});function gg(t){const e=e=>t.presetsRef.value.find((t=>t.id===e)),n=function(t){return We(t,!1),t}({default:null,link:null});return sn(t.presetsRef,(()=>{n.default=e(t.defaultPresetId),n.link=e(t.linkPresetId)}),{immediate:!0}),[tm,nm,om,xd,Kd,Xd,Qd,Zd,cm].concat([kd.configure({presets:t.presetsRef,defaultId:t.defaultPresetId,baseClass:t.basePresetClass,makeVariable:t.makePresetVariable}),Em.configure({baseClass:t.baseListClass,presetClass:t.basePresetClass+t.defaultPresetId}),dm.configure({device:t.deviceRef}),pm.configure({minSize:t.minFontSize,maxSize:t.maxFontSize,wrapperRef:t.wrapperRef}),Ed.configure({fonts:t.fonts,defaultPreset:Qe(n,"default")}),Ad,fm,hm,mm,gm,vm,dg,bm,Dm.configure({wrapperRef:t.wrapperRef}),hg.configure({preset:Qe(n,"link"),basePresetClass:t.basePresetClass,pageBlocks:t.pageBlocksRef}),mg])}class vg{static createWindow(){return(new d.JSDOM).window}types;parse(t){const{window:e}=new d.JSDOM(t);return this.types=e,e.document}}class yg{static build(t){fd.use(vg.createWindow());const e=function(t){return Np(jp.resolve(t))}(gg({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($h.DESKTOP),pageBlocksRef:Je([]),wrapperRef:fd.document.createElement("p")}));return new yg({schema:e,domParser:Ka.fromSchema(e)})}#e;#t;constructor({schema:t,domParser:e}){this.#e=t,this.#t=e}toJSON(t){const e=ld.build(t,{parser:new vg});return e.normalizeHTML(),this.#t.parse(e.dom.body)}}class bg{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)}}var _g=new WeakSet,Dg=new WeakSet,wg=new WeakSet;function Eg(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)))}function Cg(t){return JSON.stringify(t,((t,e)=>null===e?void 0:e),2)}function kg(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")}const Ag=new it,xg=[class extends bg{constructor(...t){super(...t),e(this,wg),e(this,Dg),e(this,_g),o(this,"name","to-json"),o(this,"description","migrate html to json"),o(this,"argument","<html>"),o(this,"options",[{flags:"-c, --config <path>",description:"Generator config",default:p.resolve(__dirname,"../bin/zp.config.json")},{flags:"-f, --format <type>",description:"Set output format",default:"rb"}])}doCommand(t,{config:e,format:n}){const r=p.resolve(process.cwd(),e),o=yg.build(require(r).editor).toJSON(i(this,_g,Eg).call(this,t)),s=i(this,Dg,Cg).call(this,o);this.output("rb"===n?i(this,wg,kg).call(this,s):s)}},class extends bg{name="version";description="display cli version";doCommand(){this.output("2.5.6-0")}}];for(const t of xg)(new t).install(Ag);Ag.parse();
14
+ */Fh=Ih,Mh=Ih.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,f=4294967295,h=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",i],["partialRight",s],["rearg",u]],d="[object Arguments]",m="[object Array]",g="[object Boolean]",v="[object Date]",y="[object Error]",b="[object Function]",_="[object GeneratorFunction]",w="[object Map]",E="[object Number]",C="[object Object]",k="[object Promise]",A="[object RegExp]",x="[object Set]",S="[object String]",O="[object Symbol]",N="[object WeakMap]",T="[object ArrayBuffer]",F="[object DataView]",M="[object Float32Array]",I="[object Float64Array]",$="[object Int8Array]",B="[object Int16Array]",L="[object Int32Array]",R="[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),G=RegExp(q.source),J=/<%-([\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*$/,ht=/^[-+]0x[0-9a-f]+$/i,dt=/^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",wt="\\u2700-\\u27bf",Et="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="['’]",St="[\\ud800-\\udfff]",Ot="["+At+"]",Nt="["+Dt+"]",Tt="\\d+",Ft="[\\u2700-\\u27bf]",Mt="["+Et+"]",It="[^\\ud800-\\udfff"+At+Tt+wt+Et+Ct+"]",$t="\\ud83c[\\udffb-\\udfff]",Bt="[^\\ud800-\\udfff]",Lt="(?:\\ud83c[\\udde6-\\uddff]){2}",Rt="[\\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,Lt,Rt].join("|")+")"+Ut+Wt+")*",Kt="(?:"+[Ft,Lt,Rt].join("|")+")"+qt,Gt="(?:"+[Bt+Nt+"?",Nt,Lt,Rt,St].join("|")+")",Jt=RegExp(xt,"g"),Yt=RegExp(Nt,"g"),Xt=RegExp($t+"(?="+$t+")|"+Gt+qt,"g"),Qt=RegExp([Pt+"?"+Mt+"+"+Ht+"(?="+[Ot,Pt,"$"].join("|")+")",zt+"+"+Vt+"(?="+[Ot,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[L]=re[R]=re[P]=re[j]=re[z]=!0,re[d]=re[m]=re[T]=re[g]=re[F]=re[v]=re[y]=re[b]=re[w]=re[E]=re[C]=re[A]=re[x]=re[S]=re[N]=!1;var oe={};oe[d]=oe[m]=oe[T]=oe[F]=oe[g]=oe[v]=oe[M]=oe[I]=oe[$]=oe[B]=oe[L]=oe[w]=oe[E]=oe[C]=oe[A]=oe[x]=oe[S]=oe[O]=oe[R]=oe[P]=oe[j]=oe[z]=!0,oe[y]=oe[b]=oe[N]=!1;var ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,ae=parseInt,ue="object"==typeof D&&D&&D.Object===Object&&D,le="object"==typeof self&&self&&self.Object===Object&&self,ce=ue||le||Function("return this")(),pe=Mh&&!Mh.nodeType&&Mh,fe=pe&&Fh&&!Fh.nodeType&&Fh,he=fe&&fe.exports===pe,de=he&&ue.process,me=function(){try{var t=fe&&fe.require&&fe.require("util").types;return t||de&&de.binding&&de.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 we(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 Ee(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 Se(t,e){return!(null==t||!t.length)&&Re(t,e,0)>-1}function Oe(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 Le(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 Re(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):Le(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 Ge(t){return function(e){return t(e)}}function Je(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&&Re(e,t[n],0)>-1;);return n}function Qe(t,e){for(var n=t.length;n--&&Re(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 hn=Ve({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),dn=function D(ot){var Dt=(ot=null==ot?ce:dn.defaults(ce.Object(),ot,dn.pick(ce,ee))).Array,wt=ot.Date,Et=ot.Error,Ct=ot.Function,kt=ot.Math,At=ot.Object,xt=ot.RegExp,St=ot.String,Ot=ot.TypeError,Nt=Dt.prototype,Tt=Ct.prototype,Ft=At.prototype,Mt=ot["__core-js_shared__"],It=Tt.toString,$t=Ft.hasOwnProperty,Bt=0,Lt=function(){var t=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Rt=Ft.toString,Pt=It.call(At),jt=ce._,zt=xt("^"+It.call($t).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=he?ot.Buffer:t,Vt=ot.Symbol,Wt=ot.Uint8Array,Ut=Ht?Ht.allocUnsafe:t,qt=sn(At.getPrototypeOf,At),Kt=At.create,Gt=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=hi(At,"defineProperty");return t({},"",{}),t}catch(t){}}(),pe=ot.clearTimeout!==ce.clearTimeout&&ot.clearTimeout,fe=wt&&wt.now!==ce.Date.now&&wt.now,de=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=wt.now,wn=ot.parseInt,En=kt.random,Cn=Nt.reverse,kn=hi(ot,"DataView"),An=hi(ot,"Map"),xn=hi(ot,"Promise"),Sn=hi(ot,"Set"),On=hi(ot,"WeakMap"),Nn=hi(At,"create"),Tn=On&&new On,Fn={},Mn=ji(kn),In=ji(An),$n=ji(xn),Bn=ji(Sn),Ln=ji(On),Rn=Vt?Vt.prototype:t,Pn=Rn?Rn.valueOf:t,jn=Rn?Rn.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__=f,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 Gn(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.__data__=new Gn;++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,St):[],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[Jr(0,n-1)]:t}function Zn(t,e){return Li(To(t),ur(e,0,t.length))}function tr(t){return Li(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 hr(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:Sa(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),h=f==b||f==_;if(Ys(e))return ko(e,u);if(f==C||f==d||h&&!i){if(a=l||h?{}: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,di(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 g:case v: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 L:case R:case P:case j:case z:return xo(t,n);case w:return new o;case E:case S: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 O:return r=t,Pn?At(Pn.call(r)):{}}}(e,f,u)}}s||(s=new Yn);var m=s.get(e);if(m)return m;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 y=p?t:(c?l?si:ii:l?Ia:Ma)(e);return Ce(y||e,(function(t,o){y&&(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 Ot(e);return Mi((function(){n.apply(t,o)}),r)}function fr(t,e,n,r){var o=-1,i=Se,s=!0,a=t.length,u=[],l=e.length;if(!a)return u;n&&(e=Ne(e,Ge(n))),r?(i=Oe,s=!1):e.length>=200&&(i=Ye,s=!1,e=new Jn(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:J,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},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(An||Kn),string:new qn}},Gn.prototype.delete=function(t){var e=pi(this,t).delete(t);return this.size-=e?1:0,e},Gn.prototype.get=function(t){return pi(this,t).get(t)},Gn.prototype.has=function(t){return pi(this,t).has(t)},Gn.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},Jn.prototype.add=Jn.prototype.push=function(t){return this.__data__.set(t,n),this},Jn.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 Gn(r)}return n.set(t,e),this.size=n.size,this};var hr=$o(Dr),dr=$o(wr,!0);function mr(t,e){var n=!0;return hr(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 hr(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 wr(t,e){return t&&_r(t,e,Ma)}function Er(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=Rt.call(e);return o&&(n?e[ue]=r:delete e[ue]),i}(e):function(t){return Rt.call(t)}(e)}function xr(t,e){return t>e}function Sr(t,e){return null!=t&&$t.call(t,e)}function Or(t,e){return null!=t&&e in At(t)}function Nr(e,n,r){for(var o=r?Oe:Se,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,Ge(n))),l=_n(p.length,l),u[a]=!r&&(n||i>=120&&p.length>=120)?new Jn(a&&p):t}p=e[0];var f=-1,h=u[0];t:for(;++f<i&&c.length<l;){var d=p[f],m=n?n(d):d;if(d=r||0!==d?d:0,!(h?Ye(h,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}h&&h.push(m),c.push(d)}}return c}function Tr(e,n,r){var o=null==(e=Oi(e,n=Do(n,e)))?e:e[Pi(Qi(n))];return null==o?t:we(o,e,r)}function Fr(t){return ra(t)&&Ar(t)==d}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?m:gi(e),c=u?m:gi(n),p=(l=l==d?C:l)==C,f=(c=c==d?C:c)==C,h=l==c;if(h&&Ys(e)){if(!Ys(n))return!1;a=!0,p=!1}if(h&&!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 g:case v:case E:return Hs(+t,+e);case y:return t.name==e.name&&t.message==e.message;case A:case S:return t==e+"";case w: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 O:if(Pn)return Pn.call(t)==Pn.call(e)}return!1}(e,n,l,r,o,i,s);if(!(1&r)){var b=p&&$t.call(e,"__wrapped__"),_=f&&$t.call(n,"__wrapped__");if(b||_){var D=b?e.value():e,k=_?n.value():n;return s||(s=new Yn),i(D,k,r,o,s)}}return!!h&&(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 h=s.get(e),d=s.get(n);if(h&&d)return h==n&&d==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 h=o(c,p,l,e,n,f);if(!(h===t?Mr(p,c,3,o,f):h))return!1}}return!0}function $r(t){return!(!na(t)||(e=t,Lt&&Lt 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):du(t)}function Lr(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 Rr(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=Gs(t)?Dt(t.length):[];return hr(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 wi(e)&&Ai(n)?xi(Pi(e),n):function(r){var o=Sa(r,e);return o===t&&o===n?Oa(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 h=qs(l),d=!h&&Ys(l),m=!h&&!d&&pa(l);p=l,h||d||m?qs(u)?p=u:Js(u)?p=To(u):d?(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,Ge(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=So(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:Re,i=-1,s=e.length,a=t;for(t===e&&(e=To(e)),n&&(a=Ne(t,Ge(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 Gr(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 Jr(t,e){return t+$e(En()*(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(Si(t,e,iu),t+"")}function Qr(t){return Qn(Ha(t))}function Zr(t,e){var n=Ha(t);return Li(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 Li(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 hr(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]),h=f!==t,d=null===f,m=f==f,g=ca(f);if(a)var v=o||m;else v=c?m&&(o||h):u?m&&h&&(o||!d):l?m&&h&&!d&&(o||!g):!d&&!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=Se,i=t.length,s=!0,a=[],u=a;if(n)s=!1,o=Oe;else if(i>=200){var l=e?null:Xo(t);if(l)return un(l);s=!1,o=Ye,u=new Jn}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=Oi(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 Js(t)?t:[]}function _o(t){return"function"==typeof t?t:iu}function Do(t,e){return qs(t)?t:wi(t,e)?[t]:Ri(_a(t))}var wo=Xr;function Eo(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 So(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 Oo(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 h=o;++u<l;)p[h+u]=e[u];for(;++s<a;)(f||o<i)&&(p[h+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)?Ee: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(!Gs(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 Lo(e){return function(n){var r=rn(n=_a(n))?pn(n):t,o=r?r[0]:n.charAt(0),i=r?Eo(r,1).join(""):n.slice(1);return o[e]()+i}}function Ro(t){return function(e){return Fe(Za(Ua(e).replace(Jt,"")),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(!Gs(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 Ot(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&&Ei(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ui(c[0])].apply(u,c[3]):1==a.length&&Ei(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,h=1&n,d=2&n,m=24&n,g=512&n,v=d?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=Oo(y,o,i,m)),s&&(y=No(y,s,u,m)),a-=D,m&&a<p){var w=an(y,_);return Jo(e,n,Ho,t.placeholder,r,y,w,l,c,p-a)}var E=h?r:this,C=d?E[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(E,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,Ge(ci())),Xr((function(n){var r=this;return t(e,(function(t){return we(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)?Eo(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 Go(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ya(e),n=ya(n)),t(e,n)}}function Jo(e,n,r,o,a,u,l,c,p,f){var h=8&n;n|=h?i:s,4&(n&=~(h?s:i))||(n&=-4);var d=[e,n,a,h?u:t,h?l:t,h?t:u,h?t:l,c,p,f],m=r.apply(t,d);return Ei(e)&&Fi(m,d),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=Sn&&1/un(new Sn([,-0]))[1]==l?function(t){return new Sn(t)}:cu;function Qo(t){return function(e){var n=gi(e);return n==w?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,h,d,m){var g=2&l;if(!g&&"function"!=typeof n)throw new Ot(e);var v=p?p.length:0;if(v||(l&=-97,p=f=t),d=d===t?d:bn(ga(d),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,h,d,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?Oo(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)w=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?Jo(e,n,Ho,i.placeholder,t,a,c,t,t,r-s):we(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 we(p,o?n:this,c)}}(n,l,c,p);else var w=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)(w,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,h=!0,d=2&r?new Jn: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;h=!1;break}if(d){if(!Ie(n,(function(t,e){if(!Ye(d,e)&&(m===t||i(m,t,r,o,s)))return d.push(e)}))){h=!1;break}}else if(m!==g&&!i(m,g,r,o,s)){h=!1;break}}return s.delete(e),s.delete(n),h}function oi(e){return Ii(Si(e,t,Ki),e+"")}function ii(t){return kr(t,Ma,di)}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 hi(e,n){var r=function(e,n){return null==e?t:e[n]}(e,n);return $r(r)?r:t}var di=Ve?function(t){return null==t?[]:(t=At(t),xe(Ve(t),(function(e){return Gt.call(t,e)})))}:vu,mi=Ve?function(t){for(var e=[];t;)Te(e,di(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?Gs(n)&&_i(e,n.length):"string"==r&&e in n)&&Hs(n[e],t)}function wi(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 Ei(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)!=w||xn&&gi(xn.resolve())!=k||Sn&&gi(new Sn)!=x||On&&gi(new On)!=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 w;case $n:return k;case Bn:return x;case Ln: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 Si(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),we(e,this,a)}}function Oi(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=de||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]&&!Se(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 Li(e,n){var r=-1,o=e.length,i=o-1;for(n=n===t?o:n;++r<n;){var s=Jr(r,i),a=e[s];e[s]=e[r],e[r]=a}return e.length=n,e}var Ri=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 Js(t)?fr(t,yr(e,1,Js,!0)):[]})),Vi=Xr((function(e,n){var r=Qi(n);return Js(r)&&(r=t),Js(e)?fr(e,yr(n,1,Js,!0),ci(r,2)):[]})),Wi=Xr((function(e,n){var r=Qi(n);return Js(r)&&(r=t),Js(e)?fr(e,yr(n,1,Js,!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)),Le(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)),Le(e,ci(n,3),i,!0)}function Ki(t){return null!=t&&t.length?yr(t,1):[]}function Gi(e){return e&&e.length?e[0]:t}var Ji=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 Gr(t,Ne(e,(function(t){return _i(t,n)?+t:t})).sort(So)),r}));function ns(t){return null==t?t:Cn.call(t)}var rs=Xr((function(t){return po(yr(t,1,Js,!0))})),os=Xr((function(e){var n=Qi(e);return Js(n)&&(n=t),po(yr(e,1,Js,!0),ci(n,2))})),is=Xr((function(e){var n=Qi(e);return n="function"==typeof n?n:t,po(yr(e,1,Js,!0),t,n)}));function ss(t){if(!t||!t.length)return[];var e=0;return t=xe(t,(function(t){if(Js(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 we(n,t,e)}))}var us=Xr((function(t,e){return Js(t)?fr(t,e):[]})),ls=Xr((function(t){return vo(xe(t,Js))})),cs=Xr((function(e){var n=Qi(e);return Js(n)&&(n=t),vo(xe(e,Js),ci(n,2))})),ps=Xr((function(e){var n=Qi(e);return n="function"==typeof n?n:t,vo(xe(e,Js),t,n)})),fs=Xr(ss),hs=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 ds(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:hr)(t,ci(e,3))}function Ds(t,e){return(qs(t)?ke:dr)(t,ci(e,3))}var ws=Mo((function(t,e,n){$t.call(t,n)?t[n].push(e):sr(t,n,[e])})),Es=Xr((function(t,e,n){var r=-1,o="function"==typeof e,i=Gs(t)?Dt(t.length):[];return hr(t,(function(t){i[++r]=o?we(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),[])})),Ss=fe||function(){return ce.Date.now()};function Os(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 Ot(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,h=!1,d=!0;if("function"!=typeof n)throw new Ot(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||h&&e-p>=a}function y(){var t=Ss();if(v(t))return b(t);l=Mi(y,function(t){var e=r-(t-c);return h?_n(e,a-(t-p)):e}(t))}function b(e){return l=t,d&&i?m(e):(i=s=t,u)}function _(){var e=Ss(),n=v(e);if(i=arguments,s=this,c=e,n){if(l===t)return g(c);if(h)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=(h="maxWait"in o)?bn(ya(o.maxWait)||0,r):a,d="trailing"in o?!!o.trailing:d),_.cancel=function(){l!==t&&Co(l),p=0,i=c=s=l=t},_.flush=function(){return l===t?u:b(Ss())},_}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 Ot(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||Gn),r}function Ls(t){if("function"!=typeof t)throw new Ot(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=Gn;var Rs=wo((function(t,e){var n=(e=1==e.length&&qs(e[0])?Ne(e[0],Ge(ci())):Ne(yr(e,1),Ge(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 we(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=Go(xr),Ws=Go((function(t,e){return t>=e})),Us=Fr(function(){return arguments}())?Fr:function(t){return ra(t)&&$t.call(t,"callee")&&!Gt.call(t,"callee")},qs=Dt.isArray,Ks=ge?Ge(ge):function(t){return ra(t)&&Ar(t)==T};function Gs(t){return null!=t&&ea(t.length)&&!Zs(t)}function Js(t){return ra(t)&&Gs(t)}var Ys=mn||yu,Xs=ve?Ge(ve):function(t){return ra(t)&&Ar(t)==v};function Qs(t){if(!ra(t))return!1;var e=Ar(t);return e==y||"[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==b||e==_||"[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?Ge(ye):function(t){return ra(t)&&gi(t)==w};function ia(t){return"number"==typeof t||ra(t)&&Ar(t)==E}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?Ge(be):function(t){return ra(t)&&Ar(t)==A},ua=_e?Ge(_e):function(t){return ra(t)&&gi(t)==x};function la(t){return"string"==typeof t||!qs(t)&&ra(t)&&Ar(t)==S}function ca(t){return"symbol"==typeof t||ra(t)&&Ar(t)==O}var pa=De?Ge(De):function(t){return ra(t)&&ea(t.length)&&!!re[Ar(t)]},fa=Go(Pr),ha=Go((function(t,e){return t<=e}));function da(t){if(!t)return[];if(Gs(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==w?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,f):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=dt.test(t);return n||gt.test(t)?ae(t.slice(2),n?2:8):ht.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)||Gs(e))Fo(e,Ma(e),t);else for(var n in e)$t.call(e,n)&&nr(t,n,e[n])})),wa=Io((function(t,e){Fo(e,Ia(e),t)})),Ea=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),we(Ba,t,e)}));function Sa(e,n,r){var o=null==e?t:Cr(e,n);return o===t?r:o}function Oa(t,e){return null!=t&&vi(t,e,Or)}var Na=Vo((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Rt.call(e)),t[e]=n}),nu(iu)),Ta=Vo((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Rt.call(e)),$t.call(t,e)?t[e].push(n):t[e]=[n]}),ci),Fa=Xr(Tr);function Ma(t){return Gs(t)?Xn(t):Lr(t)}function Ia(t){return Gs(t)?Xn(t,!0):Rr(t)}var $a=Io((function(t,e,n){Vr(t,e,n)})),Ba=Io((function(t,e,n,r){Vr(t,e,n,r)})),La=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})),Ra=oi((function(t,e){return null==t?{}:function(t,e){return qr(t,e,(function(e,n){return Oa(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?[]:Je(t,Ma(t))}var Va=Ro((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=Ro((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ka=Ro((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ga=Lo("toLowerCase"),Ja=Ro((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Ya=Ro((function(t,e,n){return t+(n?" ":"")+Qa(e)})),Xa=Ro((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Qa=Lo("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 we(e,t,n)}catch(t){return Qs(t)?t:new Et(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=Er(e,r);null!=n||na(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=Er(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),hu=Uo(Ie);function du(t){return wi(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"),wu=Wo((function(t,e){return t/e}),1),Eu=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 Ot(e);return t=ga(t),function(){if(--t<1)return n.apply(this,arguments)}},zn.ary=Os,zn.assign=Da,zn.assignIn=wa,zn.assignInWith=Ea,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=ds,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 Ot(e);return[r(t[0]),t[1]]})):[],Xr((function(e){for(var r=-1;++r<n;){var o=t[r];if(we(o[0],this,e))return we(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?[]:Er(t,Ma(t))},zn.functionsIn=function(t){return null==t?[]:Er(t,Ia(t))},zn.groupBy=ws,zn.initial=function(t){return null!=t&&t.length?oo(t,0,-1):[]},zn.intersection=Ji,zn.intersectionBy=Yi,zn.intersectionWith=Xi,zn.invert=Na,zn.invertBy=Ta,zn.invokeMap=Es,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=Ls,zn.nthArg=function(t){return t=ga(t),Xr((function(e){return Wr(e,t)}))},zn.omit=La,zn.omitBy=function(t,e){return Pa(t,Ls(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=Rs,zn.overEvery=fu,zn.overSome=hu,zn.partial=Ps,zn.partialRight=js,zn.partition=As,zn.pick=Ra,zn.pickBy=Pa,zn.property=du,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,Ls(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 Gr(t,o),n},zn.rest=function(n,r){if("function"!=typeof n)throw new Ot(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?f:r>>>0)?(e=_a(e))&&("string"==typeof n||null!=n&&!aa(n))&&!(n=co(n))&&rn(e)?Eo(pn(e),0,r):e.split(n,r):[]},zn.spread=function(t,n){if("function"!=typeof t)throw new Ot(e);return n=null==n?0:bn(ga(n),0),Xr((function(e){var r=e[n],o=Eo(e,0,n);return r&&Te(o,r),we(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 Ot(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=da,zn.toPairs=ja,zn.toPairsIn=za,zn.toPath=function(t){return qs(t)?Ne(t,Pi):ca(t)?[t]:To(Ri(_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 Os(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?[]:Je(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=hs,zn.entries=ja,zn.entriesIn=za,zn.extend=wa,zn.extendWith=Ea,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=wu,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))&&G.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),wr)},zn.floor=Eu,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&&wr(t,ci(e,3))},zn.get=Sa,zn.gt=Vs,zn.gte=Ws,zn.has=function(t,e){return null!=t&&vi(t,e,Sr)},zn.hasIn=Oa,zn.head=Gi,zn.identity=iu,zn.includes=function(t,e,n,r){t=Gs(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&&Re(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)),Re(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=Gs,zn.isArrayLikeObject=Js,zn.isBoolean=function(t){return!0===t||!1===t||ra(t)&&Ar(t)==g},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(Gs(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==w||e==x)return!t.size;if(ki(t))return!Lr(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 Et("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):Le(e,je,i,!0)},zn.lowerCase=Ka,zn.lowerFirst=Ga,zn.lt=fa,zn.lte=ha,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=Ss,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),wn(_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=En();return _n(e+i*(n-e+se("1e-"+((i+"").length-1))),n)}return Jr(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,hr)},zn.reduceRight=function(t,e,n){var r=qs(t)?Me:We,o=arguments.length<3;return r(t,ci(e,4),n,o,dr)},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=D,zn.sample=function(t){return(qs(t)?Qn:Qr)(t)},zn.size=function(t){if(null==t)return 0;if(Gs(t))return la(t)?cn(t):t.length;var e=gi(t);return e==w||e==x?t.size:Lr(t).length},zn.snakeCase=Ja,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=Ea({},n,o,ti);var i,s,a=Ea({},n.imports,o.imports,ti),u=Ma(a),l=Je(a,u),c=0,p=n.interpolate||bt,f="__p += '",h=xt((n.escape||bt).source+"|"+p.source+"|"+(p===X?pt:bt).source+"|"+(n.evaluate||bt).source+"|$","g"),d="//# sourceURL="+($t.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ne+"]")+"\n";e.replace(h,(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 Et("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,d+"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=f,r=_n(t,f);e=ci(e),t-=f;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 Eo(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 Eo(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 Eo(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?Eo(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 h=l.lastIndexOf(i);h>-1&&(l=l.slice(0,h))}return l+o},zn.unescape=function(t){return(t=_a(t))&&K.test(t)?t.replace(U,hn):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=Gi,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,f),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(Ls(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(f)},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__,h=!!this.__actions__.length,d=s&&!f,m=u&&!h;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 d&&m?e.apply(this,a):(g=this.thru(p),d?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,h=_n(u,this.__takeCount__);if(!n||!r&&o==u&&h==u)return go(t,this.__actions__);var d=[];t:for(;u--&&f<h;){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}}d[f++]=g}return d},zn.prototype.at=gs,zn.prototype.chain=function(){return ds(this)},zn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===t&&(this.__values__=da(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=dn)._=dn,pe._=dn):ce._=dn}.call(D);const $h=Object.freeze({COMMON:"common",DESKTOP:"desktop",TABLET:"tablet",MOBILE:"mobile",get values(){return[this.COMMON,this.MOBILE,this.TABLET,this.DESKTOP]}}),Bh=Object.freeze({UPPERCASE:"uppercase",LOWERCASE:"lowercase",CAPITALIZE:"capitalize"}),Lh=Object.freeze({LEFT:"left",CENTER:"center",RIGHT:"right",JUSTIFY:"justify",get values(){return[this.LEFT,this.CENTER,this.RIGHT,this.JUSTIFY]}}),Rh=Object.freeze({DOCUMENT:"doc",PARAGRAPH:"paragraph",HEADING:"heading",LIST:"list",LIST_ITEM:"listItem",TEXT:"text",get blocks(){return[this.PARAGRAPH,this.LIST,this.HEADING]}}),Ph=Object.freeze({DISC:"disc",CIRCLE:"circle",SQUARE:"square",DECIMAL:"decimal",ROMAN:"roman",LATIN:"latin",get values(){return[this.DISC,this.CIRCLE,this.SQUARE,this.DECIMAL,this.ROMAN,this.LATIN]},get ordered(){return[this.DECIMAL,this.ROMAN,this.LATIN]}}),jh=Object.freeze({ALIGNMENT:"alignment",BACKGROUND_COLOR:"background_color",FONT_COLOR:"font_color",FONT_FAMILY:"font_family",FONT_SIZE:"font_size",FONT_STYLE:"font_style",FONT_WEIGHT:"font_weight",LINE_HEIGHT:"line_height",TEXT_DECORATION:"text_decoration",SUPERSCRIPT:"superscript",MARGIN:"margin",LINK:"link",STYLE_PRESET:"style_preset",get attributes(){return[this.ALIGNMENT,this.LINE_HEIGHT,this.MARGIN]},get inlineMarks(){return[this.TEXT_DECORATION,this.LINK,this.SUPERSCRIPT,this.BACKGROUND_COLOR]},get marks(){return[this.BACKGROUND_COLOR,this.FONT_COLOR,this.FONT_FAMILY,this.FONT_SIZE,this.FONT_STYLE,this.FONT_WEIGHT,this.TEXT_DECORATION,this.SUPERSCRIPT]}}),zh=Object.freeze({SETTINGS:"settings",ALL:"_"}),Hh=Object.freeze({BLANK:"_blank",SELF:"_self"}),Vh=Object.freeze({URL:"url",BLOCK:"block"});var Wh=new WeakSet,Uh=new WeakSet,qh=new WeakSet,Kh=new WeakSet,Gh=new WeakSet,Jh=new WeakSet,Yh=new WeakSet,Xh=new WeakSet,Qh=new WeakSet;class Zh extends Vf{constructor(...t){super(...t),e(this,Qh),e(this,Xh),e(this,Yh),e(this,Jh),e(this,Gh),e(this,Kh),e(this,qh),e(this,Uh),e(this,Wh)}normalize(){return i(this,Wh,td).call(this,i(this,qh,nd)),this.content}}function td(t){i(this,Uh,ed).call(this,this.content,t)}function ed(t,e){for(const n of t.content)n.content&&i(this,Uh,ed).call(this,n,e),e.call(this,n)}function nd(t){if(t.content&&t.type!==Rh.LIST)for(const e of t.content)if(e.marks)for(const n of e.marks.slice())i(this,Gh,od).call(this,t,n)?i(this,Yh,sd).call(this,e,n):i(this,Kh,rd).call(this,t,n)&&(i(this,Yh,sd).call(this,e,n),i(this,Xh,ad).call(this,t,n))}function rd(t,e){if(jh.inlineMarks.includes(e.type))return!1;if(i(this,Jh,id).call(this,t,e.type))return!1;for(const n of t.content)if(n.content||t.type!==Rh.LIST_ITEM){if(!n.marks)return!1;if(!i(this,Gh,od).call(this,n,e))return!1}return!0}function od(t,e){var n;return(null===(n=t.marks)||void 0===n?void 0:n.some((t=>Ih.exports.isEqual(t,e))))??!1}function id(t,e){var n;return(null===(n=t.marks)||void 0===n?void 0:n.some((t=>t.type===e)))??!1}function sd(t,e){if(!t.marks)return;const n=i(this,Qh,ud).call(this,t,e.type);n>=0&&t.marks.splice(n,1),t.marks.length||delete t.marks}function ad(t,e){i(this,Yh,sd).call(this,t,e),t.marks??(t.marks=[]),t.marks.push(e)}function ud(t,e){var n;return(null===(n=t.marks)||void 0===n?void 0:n.findIndex((t=>t.type===e)))??null}class ld{static build(e,n={}){return"string"==typeof e?t(this,ld,cd).call(this,e,n):t(this,ld,pd).call(this,e)}static normalize(t,e={}){return ld.build(t,e).normalize()}}function cd(t,e){return new ph({content:t,parser:e.parser||new Hf})}function pd(t){return new Zh({content:t})}class fd{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 hd{static doc(t){return{type:Rh.DOCUMENT,content:t}}static list(t,e){return{type:Rh.LIST,attrs:{bullet:{type:t}},content:e.map((t=>t.type===Rh.LIST_ITEM?t:this.listItem([].concat(t))))}}static listItem(...e){const{attrs:n,content:r,marks:o}=t(this,hd,md).call(this,e);return{type:Rh.LIST_ITEM,...n?{attrs:n}:{},...o?{marks:o}:{},content:[].concat(r).map((t=>"string"==typeof t?this.paragraph(t):t))}}static heading(e,...n){const r=t(this,hd,dd).call(this,n,this.text);return r.attrs??(r.attrs={}),r.attrs.level=e,{type:Rh.HEADING,...r}}static paragraph(...e){return{type:Rh.PARAGRAPH,...t(this,hd,dd).call(this,e,this.text)}}static text(t,e){return{type:Rh.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}}}function dd(e){const{attrs:n,content:r,marks:o}=t(this,hd,md).call(this,e);return{content:"string"==typeof r?[this.text(r)]:r,...n?{attrs:n}:{},...o?{marks:o}:{}}}function md(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]}}function gd(t,e){if(!t.includes("em"))return parseInt(t);const n=fd.getComputedStyle(e).fontSize,r=parseFloat(t)*parseFloat(n);return Math.round(r)}function vd(t,e,n){if(!t.includes("px"))return t;const r=function(t,e){return(t.firstElementChild||t).style.fontSize||fd.getComputedStyle(e).fontSize}(e,n),o=gd(r,n);return o?(parseInt(t)/o).toFixed(2):null}const yd={start:Lh.LEFT,end:Lh.RIGHT};const bd=(t,e,n,r)=>({from:Math.max(r,t.pos),to:Math.min(r+n.nodeSize,e.pos)});function _d(t,e){return t.resolve(e).depth+1}const Dd=(t,e)=>t.eq(e);function wd(t){return t.type.create(Ih.exports.cloneDeep(t.attrs))}const Ed=mf.create({name:jh.FONT_FAMILY,group:zh.SETTINGS,addOptions:()=>({fonts:[]}),addAttributes:()=>({value:{required:!0}}),addCommands(){return{applyFontFamily:yf((({commands:t},e)=>{t.applyMark(this.name,{value:e});const n=t.findFontByName(e);let r=Ye(t.getFontWeight());n.isWeightSupported(r)||(r=n.findClosestWeight(r),t.applyFontWeight(r)),n.isItalicSupported(r)||t.removeItalic()})),getFont:yf((({commands:t})=>{const e=t.getFontFamily();return Ze((()=>{const n=Ye(e)||Ye(this.options.defaultPreset).common.font_family;return t.findFontByName(n)}))})),findFontByName:yf(((t,e)=>this.options.fonts.find((t=>t.name===e)))),getFontFamily:yf((({commands:t})=>t.getCommonSettingMark(this.name,t.getDefaultFontFamily()))),getDefaultFontFamily:yf((({commands:t})=>{const e=t.getPreset();return Ze((()=>Ye(e).common.font_family))}))}},parseHTML(){const t=t=>{const e=t.replace(/["']/g,"");return{value:this.options.fonts.some((t=>t.name===e))?e:Ye(this.options.defaultPreset).common.font_family}};return[{style:"--zw-font-family",getAttrs:t},{style:"font-family",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>_f({font_family:t.value?`"${t.value}"`:null})});function Cd(t,e){return t.split(" ").map((t=>`.${t}`)).join("")+e.id}const kd=Vp.create({name:jh.STYLE_PRESET,addStorage:()=>({presetStyleEl:null}),addGlobalAttributes(){return[{types:[Rh.PARAGRAPH,Rh.HEADING],attributes:{preset:{isRequired:!1,default:{id:this.options.defaultId},parseHTML:t=>{const e=Ye(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=Cd(this.options.baseClass,{id:n});if(t.matches(e))return{id:n};if(t.tagName===`H${null==r?void 0:r.level}`)return{id:n}}return"P"===t.tagName?{id:this.options.defaultId}:null},renderHTML:t=>t.preset?{class:this.options.baseClass+t.preset.id}: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:yf((()=>Ze((()=>this.options.presets.filter((t=>!t.hidden)))))),getPreset:yf((({commands:n})=>{const r=n.getBlockAttributes("preset",{id:this.options.defaultId}),o=n.getPresetList(),i=n.isLink(),s=n.getLinkPreset();return Ze((()=>{const n=t(Ye(o),Ye(r).id);if(!Ye(i))return n;const a=Ye(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:yf((({commands:e,chain:n},r)=>{var o;const i=t(Ye(e.getPresetList()),r),s=(null===(o=i.node)||void 0===o?void 0:o.type)??Rh.PARAGRAPH,a={preset:{id:r}};i.node&&(a.level=i.node.level);for(const t of jh.attributes)a[t]=Ye(e.getBlockAttributes(t));n().removeList().setNode(s,a).run()})),applyDefaultPreset:yf((({commands:t})=>{t.applyPreset(this.options.defaultId)})),removePreset:yf((({commands:t})=>{t.setNode(Rh.PARAGRAPH,{preset:null})})),getPresetCustomization:yf((({editor:t,commands:e})=>{const n=Qe(t,"state");return Ze((()=>{const{selection:t,doc:r}=Ye(n),{from:o,to:i}=t;return e._getSettingCustomization(r,o,i)}))})),isSettingCustomized:yf((({commands:t},e)=>{const n=t.getPresetCustomization(),r=jh.attributes.includes(e)?"attributes":"marks";return Ze((()=>{var t;return(null===(t=Ye(n)[r])||void 0===t?void 0:t.includes(e))??!1}))})),getContentCustomization:yf((({editor:t,commands:e})=>{const n=Qe(t,"state");return Ze((()=>{const{doc:t}=Ye(n);return e._getSettingCustomization(t,0,t.content.size)}))})),_getSettingCustomization:yf(((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)){jh.attributes.includes(e)&&n&&i.add(e)}for(const{type:e}of t.marks)jh.marks.includes(e.name)&&o.add(e.name)})),{attributes:Array.from(i),marks:Array.from(o)}})),removePresetCustomization:yf((({chain:t})=>{t().storeSelection().expandSelectionToBlock().removeMarks(jh.marks).resetAttributes(Rh.PARAGRAPH,jh.attributes).resetAttributes(Rh.HEADING,jh.attributes).restoreSelection().run()})),removeFormat:yf((({chain:t})=>{t().storeSelection().expandSelectionToBlock().removeAllMarks().applyDefaultPreset().restoreSelection().run()}))}},onCreate(){const t=fd.document.querySelector("[data-zw-styles]");if(t)this.storage.presetStyleEl=t;else{this.storage.presetStyleEl=fd.document.createElement("style"),this.storage.presetStyleEl.dataset.zwStyles="";for(const t of this.options.presets){const e=[` ${Cd(this.options.baseClass,t)} {`];for(const n of $h.values)for(const r of Object.keys(t[n])){const o=this.options.makeVariable({device:n,preset:t,property:r}),i=r.replace(/_/i,"-"),s=n===$h.COMMON?"preset":`preset-${n}`;e.push(`--zw-${s}-${i}: var(${o}, inherit);`)}e.push("}"),this.storage.presetStyleEl.innerHTML+=e.join(" ")}fd.head.append(this.storage.presetStyleEl)}}}),Ad=mf.create({name:jh.FONT_WEIGHT,group:zh.SETTINGS,addAttributes:()=>({value:{required:!0}}),addCommands(){return{applyFontWeight:yf((({commands:t},e)=>{t.applyMark(this.name,{value:e});Ye(t.getFont()).isItalicSupported(e)||t.removeItalic()})),toggleBold:yf((({commands:t})=>{const e=Ye(t.getFontWeight()),n=Ye(t.getFont()),r=Number(e)>=600?"400":"700",o=n.findClosestWeight(r);t.applyFontWeight(o)})),getFontWeight:yf((({commands:t})=>{const e=t.getCommonSettingMark(this.name,t.getDefaultFontWeight()),n=t.getFont();return Ze((()=>{const t=Ye(e),r=Ye(n);return r.isWeightSupported(t)?t:r.findClosestWeight(t)}))})),getDefaultFontWeight:yf((({commands:t})=>{const e=t.getPreset();return Ze((()=>Ye(e).common.font_weight))}))}},addKeyboardShortcuts:()=>({"Mod-b":Df("toggleBold"),"Mod-B":Df("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})=>_f({font_weight:t.value})}),xd=gf.create({name:"text",group:"inline"});var Sd=function(){};Sd.prototype.append=function(t){return t.length?(t=Sd.from(t),!this.length&&t||t.length<200&&this.leafAppend(t)||this.length<200&&t.leafPrepend(this)||this.appendInner(t)):this},Sd.prototype.prepend=function(t){return t.length?Sd.from(t).append(this):this},Sd.prototype.appendInner=function(t){return new Nd(this,t)},Sd.prototype.slice=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this.length),t>=e?Sd.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},Sd.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},Sd.prototype.forEach=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length),e<=n?this.forEachInner(t,e,n,0):this.forEachInvertedInner(t,e,n,0)},Sd.prototype.map=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(e,n){return r.push(t(e,n))}),e,n),r},Sd.from=function(t){return t instanceof Sd?t:t&&t.length?new Od(t):Sd.empty};var Od=function(t){function e(e){t.call(this),this.values=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,n){return 0==t&&n==this.length?this:new e(this.values.slice(t,n))},e.prototype.getInner=function(t){return this.values[t]},e.prototype.forEachInner=function(t,e,n,r){for(var o=e;o<n;o++)if(!1===t(this.values[o],r+o))return!1},e.prototype.forEachInvertedInner=function(t,e,n,r){for(var o=e-1;o>=n;o--)if(!1===t(this.values[o],r+o))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=200)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=200)return new e(t.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(Sd);Sd.empty=new Od([]);var Nd=function(t){function e(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return t<this.left.length?this.left.get(t):this.right.get(t-this.left.length)},e.prototype.forEachInner=function(t,e,n,r){var o=this.left.length;return!(e<o&&!1===this.left.forEachInner(t,e,Math.min(n,o),r))&&(!(n>o&&!1===this.right.forEachInner(t,Math.max(e-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},e.prototype.forEachInvertedInner=function(t,e,n,r){var o=this.left.length;return!(e>o&&!1===this.right.forEachInvertedInner(t,e-o,Math.max(n,o)-o,r+o))&&(!(n<o&&!1===this.left.forEachInvertedInner(t,Math.min(e,o),n,r))&&void 0)},e.prototype.sliceInner=function(t,e){if(0==t&&e==this.length)return this;var n=this.left.length;return e<=n?this.left.slice(t,e):t>=n?this.right.slice(t-n,e-n):this.left.slice(t,n).append(this.right.slice(0,e-n))},e.prototype.leafAppend=function(t){var n=this.right.leafAppend(t);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(t){var n=this.left.leafPrepend(t);if(n)return new e(n,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(Sd),Td=Sd;class Fd{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(0==this.eventCount)return null;let n,r,o=this.items.length;for(;;o--){if(this.items.get(o-1).selection){--o;break}}e&&(n=this.remapping(o,this.items.length),r=n.maps.length);let i,s,a=t.tr,u=[],l=[];return this.items.forEach(((t,e)=>{if(!t.step)return n||(n=this.remapping(o,e+1),r=n.maps.length),r--,void l.push(t);if(n){l.push(new Md(t.map));let e,o=t.step.map(n.slice(r));o&&a.maybeStep(o).doc&&(e=a.mapping.maps[a.mapping.maps.length-1],u.push(new Md(e,void 0,void 0,u.length+l.length))),r--,e&&n.appendMap(e,r)}else a.maybeStep(t.step);return t.selection?(i=n?t.selection.map(n.slice(r)):t.selection,s=new Fd(this.items.slice(0,o).append(l.reverse().concat(u)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:a,selection:i}}addTransform(t,e,n,r){let o=[],i=this.eventCount,s=this.items,a=!r&&s.length?s.get(s.length-1):null;for(let n=0;n<t.steps.length;n++){let u,l=t.steps[n].invert(t.docs[n]),c=new Md(t.mapping.maps[n],l,e);(u=a&&a.merge(c))&&(c=u,n?o.pop():s=s.slice(0,s.length-1)),o.push(c),e&&(i++,e=void 0),r||(a=c)}let u=i-n.depth;return u>$d&&(s=function(t,e){let n;return t.forEach(((t,r)=>{if(t.selection&&0==e--)return n=r,!1})),t.slice(n)}(s,u),i-=u),new Fd(s.append(o),i)}remapping(t,e){let n=new pu;return this.items.forEach(((e,r)=>{let o=null!=e.mirrorOffset&&r-e.mirrorOffset>=t?n.maps.length-e.mirrorOffset:void 0;n.appendMap(e.map,o)}),t,e),n}addMaps(t){return 0==this.eventCount?this:new Fd(this.items.append(t.map((t=>new Md(t)))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-e),o=t.mapping,i=t.steps.length,s=this.eventCount;this.items.forEach((t=>{t.selection&&s--}),r);let a=e;this.items.forEach((e=>{let r=o.getMirror(--a);if(null==r)return;i=Math.min(i,r);let u=o.maps[r];if(e.step){let i=t.steps[r].invert(t.docs[r]),l=e.selection&&e.selection.map(o.slice(a+1,r));l&&s++,n.push(new Md(u,i,l))}else n.push(new Md(u))}),r);let u=[];for(let t=e;t<i;t++)u.push(new Md(o.maps[t]));let l=this.items.slice(0,r).append(u).append(n),c=new Fd(l,s);return c.emptyItemCount()>500&&(c=c.compress(this.items.length-n.length)),c}emptyItemCount(){let t=0;return this.items.forEach((e=>{e.step||t++})),t}compress(t=this.items.length){let e=this.remapping(0,t),n=e.maps.length,r=[],o=0;return this.items.forEach(((i,s)=>{if(s>=t)r.push(i),i.selection&&o++;else if(i.step){let t=i.step.map(e.slice(n)),s=t&&t.getMap();if(n--,s&&e.appendMap(s,n),t){let a=i.selection&&i.selection.map(e.slice(n));a&&o++;let u,l=new Md(s.invert(),t,a),c=r.length-1;(u=r.length&&r[c].merge(l))?r[c]=u:r.push(l)}}else i.map&&n--}),this.items.length,0),new Fd(Td.from(r.reverse()),o)}}Fd.empty=new Fd(Td.empty,0);class Md{constructor(t,e,n,r){this.map=t,this.step=e,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new Md(e.getMap().invert(),e,this.selection)}}}class Id{constructor(t,e,n,r){this.done=t,this.undone=e,this.prevRanges=n,this.prevTime=r}}const $d=20;function Bd(t){let e=[];return t.forEach(((t,n,r,o)=>e.push(r,o))),e}function Ld(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),i=e.map(t[r+1],-1);o<=i&&n.push(o,i)}return n}function Rd(t,e,n,r){let o=zd(e),i=Hd.get(e).spec.config,s=(r?t.undone:t.done).popEvent(e,o);if(!s)return;let a=s.selection.resolve(s.transform.doc),u=(r?t.done:t.undone).addTransform(s.transform,e.selection.getBookmark(),i,o),l=new Id(r?u:s.remaining,r?s.remaining:u,null,0);n(s.transform.setSelection(a).setMeta(Hd,{redo:r,historyState:l}).scrollIntoView())}let Pd=!1,jd=null;function zd(t){let e=t.plugins;if(jd!=e){Pd=!1,jd=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){Pd=!0;break}}return Pd}const Hd=new il("history"),Vd=new il("closeHistory");function Wd(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new nl({key:Hd,state:{init:()=>new Id(Fd.empty,Fd.empty,null,0),apply:(e,n,r)=>function(t,e,n,r){let o,i=n.getMeta(Hd);if(i)return i.historyState;n.getMeta(Vd)&&(t=new Id(t.done,t.undone,null,0));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return t;if(s&&s.getMeta(Hd))return s.getMeta(Hd).redo?new Id(t.done.addTransform(n,void 0,r,zd(e)),t.undone,Bd(n.mapping.maps[n.steps.length-1]),t.prevTime):new Id(t.done,t.undone.addTransform(n,void 0,r,zd(e)),null,t.prevTime);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new Id(t.done.rebased(n,o),t.undone.rebased(n,o),Ld(t.prevRanges,n.mapping),t.prevTime):new Id(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Ld(t.prevRanges,n.mapping),t.prevTime);{let o=0==t.prevTime||!s&&(t.prevTime<(n.time||0)-r.newGroupDelay||!function(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach(((t,r)=>{for(let o=0;o<e.length;o+=2)t<=e[o+1]&&r>=e[o]&&(n=!0)})),n}(n,t.prevRanges)),i=s?Ld(t.prevRanges,n.mapping):Bd(n.mapping.maps[n.steps.length-1]);return new Id(t.done.addTransform(n,o?e.selection.getBookmark():void 0,r,zd(e)),Fd.empty,i,n.time)}}(n,r,e,t)},config:t,props:{handleDOMEvents:{beforeinput(t,e){let n=e.inputType,r="historyUndo"==n?Ud:"historyRedo"==n?qd:null;return!!r&&(e.preventDefault(),r(t.state,t.dispatch))}}}})}const Ud=(t,e)=>{let n=Hd.getState(t);return!(!n||0==n.done.eventCount)&&(e&&Rd(n,t,e,!1),!0)},qd=(t,e)=>{let n=Hd.getState(t);return!(!n||0==n.undone.eventCount)&&(e&&Rd(n,t,e,!0),!0)},Kd=Vp.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:t,dispatch:e})=>Ud(t,e),redo:()=>({state:t,dispatch:e})=>qd(t,e)}),addProseMirrorPlugins(){return[Wd(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}});class Gd extends hu{static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Gd(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 du.fail("No node at mark step's position");const n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks)),r=new la(ra.from(n),0,e.isLeaf?0:1);return du.fromReplace(t,this.pos,this.pos+1,r)}invert(t){const e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new Jd(this.pos,this.mark):this}map(t){const e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Gd(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}}hu.jsonID("removeNodeMark",Gd);class Jd extends hu{static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Jd(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 du.fail("No node at mark step's position");const n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks)),r=new la(ra.from(n),0,e.isLeaf?0:1);return du.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 Jd(this.pos,n);return new Jd(this.pos,this.mark)}}return new Gd(this.pos,this.mark)}map(t){const e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Jd(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}}hu.jsonID("addNodeMark",Jd);class Yd extends hu{static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Yd(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 du.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 la(ra.from(r),0,e.isLeaf?0:1);return du.fromReplace(t,this.pos,this.pos+1,o)}getMap(){return cu.empty}invert(t){return new Yd(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 Yd(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}}hu.jsonID("attr",Yd);const Xd=Vp.create({name:"node_processor",addCommands:()=>({setBlockAttributes:yf((({commands:t,state:e},n,r,o={})=>{const i=Ye(t.getBlockAttributes(n))??{},{doc:s,tr:a}=e,{from:u,to:l}=a.selection;s.nodesBetween(u,l,((t,e)=>{Rh.blocks.includes(t.type.name)&&a.step(new Yd(e,n,{...o,...i,...r}))}))})),getBlockAttributes:yf((({editor:t},e,n)=>Ze((()=>{let r=Object.assign({},n||{});for(const n of Rh.blocks){var o;Object.assign(r,(null===(o=t.getAttributes(n))||void 0===o?void 0:o[e])||{})}return Object.keys(r).length?r:null})))),removeBlockAttributes:yf((({commands:t},e)=>{for(const n of Rh.blocks)t.resetAttributes(n,e)})),applyMark:yf((({state:t,commands:e},n,r,o={})=>{const{tr:i,doc:s,schema:a}=t,{$from:u,$to:l}=i.selection,c=Gp(n,a);if(!(c.spec.group||"").includes(zh.SETTINGS))return e.setMark(n,r);if(u.pos===l.pos)return;s.nodesBetween(u.pos,l.pos,((t,s)=>{if(t.type.name===Rh.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),p=c.create({...(null==a?void 0:a.attrs)||{},...r}),f=bd(u,l,t,s);if(function(t,e,n,r=Dd){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,p,o.isAppliedToParent))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:p});t.isText?i.addMark(f.from,f.to,p):function(t,e,n,r){const o=_d(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 Jd(s,p))}))})),getMarks:yf((({editor:t},e)=>{const n=Qe(t,"state");return Ze((()=>{const{selection:t,doc:r}=Ye(n),{from:o,to:i}=Ye(t),s=[];return r.nodesBetween(o,i,(t=>{for(const n of t.marks)n.type.name===e&&s.unshift(n.attrs)})),s}))})),getMark:yf((({commands:t},e)=>{const n=t.getMarks(e);return Ze((()=>Ye(n)[0]??null))})),hasMark:yf((({commands:t},e)=>{const n=t.getMark(e);return Ze((()=>!!Ye(n)))})),getCommonSettingMark:yf((({commands:t},e,n)=>{const r=t.getMark(e);return Ze((()=>{var t;return(null===(t=Ye(r))||void 0===t?void 0:t.value)??Ye(n)}))})),getDeviceSettingMark:yf((({commands:t},e,n)=>{const r=t.getMarks(e),o=t.getDevice();return Ze((()=>{for(const t of Ye(r)){const e=t[Ye(o)];if(e)return e}return Ye(n)}))})),removeAllMarks:yf((({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:yf((({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:yf(((t,{tr:e,node:n,position:r,mark:o})=>n.isText?e.removeMark(r,r+n.nodeSize,o):e.step(new Gd(r,o))))})}),Qd=Vp.create({name:"text_processor",addCommands:()=>({getSelectedText:yf((({state:t})=>{const{from:e,to:n}=t.selection;return t.doc.textBetween(e,n," ")})),transformText:yf((({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=bd(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)}))}))})}),Zd=Vp.create({name:"selection_processor",addStorage:()=>({selection:null}),addCommands(){return{storeSelection:yf((({state:t})=>{this.storage.selection=t.selection})),restoreSelection:yf((({commands:t})=>{this.storage.selection&&t.setTextSelection(this.storage.selection)})),expandSelection:yf((({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:_d(t.doc,i);r=Math.min(r,i+n),o=Math.max(o,i+e.nodeSize-n)}})),e.setTextSelection({from:r,to:o})})),expandSelectionToBlock:yf((({commands:t})=>{t.expandSelection((({parent:t})=>t.type.name===Rh.DOCUMENT))}))}}}),tm=gf.create({name:"doc",topNode:!0,content:"block+"}).extend({marks:zh.SETTINGS}),em=gf.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",kp(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),nm=em.extend({marks:zh.ALL,addOptions:()=>({HTMLAttributes:{class:"zw-style"}})}),rm=gf.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]}`,kp(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 Ip({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),i=xp(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}})))}}),om=rm.extend({marks:zh.ALL,addOptions:()=>({levels:[1,2,3,4],HTMLAttributes:{class:"zw-style"}})});class im{static create(t,e){const n=new this(t,e||{});return new nl({key:new il(this.name),props:n.buildProps()})}constructor(t,e){this.options=e,this.editor=t}buildProps(){return{}}}class sm extends im{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=ld.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===Rh.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}}var am=new WeakSet;class um extends im{constructor(...t){super(...t),e(this,am)}buildProps(){return{decorations:i(this,am,lm).bind(this)}}}function lm({doc:t}){const e=[];return this.editor.isEditable?t.childCount>1?void 0:(t.descendants(((t,n)=>{if(!t.childCount){const r=$c.node(n,n+t.nodeSize,{class:"zw-wysiwyg__placeholder","data-placeholder":"Type your text here..."});e.push(r)}return!1})),Rc.create(t,e)):null}const cm=Vp.create({name:"prose_mirror_plugins",addProseMirrorPlugins(){return[sm.create(this.editor),um.create(this.editor)]}}),pm=mf.create({name:jh.FONT_SIZE,group:zh.SETTINGS,addOptions:()=>({minSize:1,maxSize:100}),addAttributes:()=>({mobile:{default:null},tablet:{default:null},desktop:{default:null}}),addCommands(){return{getFontSize:yf((({commands:t})=>t.getDeviceSettingMark(this.name,t.getDefaultFontSize()))),getDefaultFontSize:yf((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return Ze((()=>Ye(n)[Ye(e)].font_size.replace("px","")))})),applyFontSize:yf((({commands:t},e)=>{const n=Ye(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 Jd(r,a))}})})),increaseFontSize:yf((({commands:t})=>{const e=Number(Ye(t.getFontSize())),n=Math.min(e+1,this.options.maxSize);t.applyFontSize(String(n))})),decreaseFontSize:yf((({commands:t})=>{const e=Number(Ye(t.getFontSize())),n=Math.max(e-1,this.options.minSize);t.applyFontSize(String(n))}))}},addKeyboardShortcuts:()=>({"Mod-Shift-=":Df("increaseFontSize"),"Mod-Shift--":Df("decreaseFontSize")}),parseHTML(){const t=t=>{if(!t)return null;const e=gd(t,Ye(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 _f({font_size_mobile:e(t.mobile),font_size_tablet:e(t.tablet),font_size_desktop:e(t.desktop)})}}),fm=mf.create({name:jh.FONT_COLOR,group:zh.SETTINGS,addAttributes:()=>({value:{required:!0}}),addCommands(){return{getFontColor:yf((({commands:t})=>t.getCommonSettingMark(this.name,t.getDefaultFontColor()))),getDefaultFontColor:yf((({commands:t})=>{const e=t.getPreset();return Ze((()=>Ye(e).common.color))})),applyFontColor:yf((({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})=>_f({font_color:t.value})}),hm=mf.create({name:jh.BACKGROUND_COLOR,addAttributes:()=>({value:{required:!0}}),addCommands(){return{getBackgroundColor:yf((({commands:t})=>t.getCommonSettingMark(this.name,"rgba(255, 255, 255, 0%)"))),applyBackgroundColor:yf((({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})=>_f({background_color:t.value})}),dm=Vp.create({name:"device_manager",addCommands(){return{getDevice:yf((()=>Qe(this.options,"device")))}}}),mm=mf.create({name:jh.FONT_STYLE,group:zh.SETTINGS,addAttributes:()=>({italic:{required:!0}}),addCommands(){return{isItalic:yf((({commands:t})=>{const e=t.getMark(this.name),n=t.getDefaultFontStyle();return Ze((()=>{var t;return(null===(t=Ye(e))||void 0===t?void 0:t.italic)??Ye(n).italic}))})),isItalicAvailable:yf((({commands:t})=>{const e=t.getFont(),n=t.getFontWeight();return Ze((()=>{const t=Ye(e),r=Ye(n);return t.isItalicSupported(r)&&!t.isWeightItalicOnly(r)}))})),getDefaultFontStyle:yf((({commands:t})=>{const e=t.getPreset();return Ze((()=>({italic:"italic"===Ye(e).common.font_style})))})),toggleItalic:yf((({commands:t})=>{Ye(t.isItalicAvailable())&&(Ye(t.isItalic())?t.removeItalic():t.applyItalic())})),applyItalic:yf((({commands:t})=>{t.applyMark(this.name,{italic:!0})})),removeItalic:yf((({commands:t})=>{t.applyMark(this.name,{italic:!1})}))}},addKeyboardShortcuts:()=>({"Mod-i":Df("toggleItalic"),"Mod-I":Df("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})=>_f({font_style:t.italic?"italic":"normal"})}),gm=mf.create({name:jh.TEXT_DECORATION,priority:1e3,addAttributes:()=>({underline:{default:!1},strike_through:{default:!1}}),addCommands(){return{isUnderline:yf((({commands:t})=>{const e=t.getTextDecoration();return Ze((()=>Ye(e).underline))})),isStrikeThrough:yf((({commands:t})=>{const e=t.getTextDecoration();return Ze((()=>Ye(e).strike_through))})),getTextDecoration:yf((({commands:t})=>{const e=t.getMark(this.name),n=t.getDefaultTextDecoration();return Ze((()=>{const t=Ye(e)??{},r=Ye(n);return{underline:t.underline||r.underline,strike_through:t.strike_through||r.strike_through}}))})),isUnderlineCustomized:yf((({commands:t})=>{const e=t.isUnderline(),n=t.getDefaultTextDecoration();return Ze((()=>Ye(e)!==Ye(n).underline))})),getDefaultTextDecoration:yf((({commands:t})=>{const e=t.getPreset();return Ze((()=>{const{text_decoration:t}=Ye(e).common;return{underline:t.includes("underline"),strike_through:t.includes("line-through")}}))})),toggleUnderline:yf((({commands:t})=>{t.toggleTextDecoration("underline")})),toggleStrikeThrough:yf((({commands:t})=>{t.toggleTextDecoration("strike_through")})),toggleTextDecoration:yf((({commands:t},e,n=null)=>{const r=Ye(t.getTextDecoration()),o=n??!r[e];t.applyMark(this.name,{[e]:o})})),applyTextDecoration:yf((({commands:t},e)=>{t.toggleTextDecoration(e,!0)})),removeTextDecoration:yf((({commands:t},e)=>{t.toggleTextDecoration(e,!1)}))}},addKeyboardShortcuts:()=>({"Mod-u":Df("toggleUnderline"),"Mod-U":Df("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"),_f({text_decoration:e.join(" ")})}}),vm=Vp.create({name:"case_style",addCommands:()=>({applyCaseStyle:yf((({commands:t},e)=>{switch(e){case Bh.CAPITALIZE:return t.applyCapitalize();case Bh.LOWERCASE:return t.applyLowerCase();case Bh.UPPERCASE:return t.applyUpperCase()}})),applyCapitalize:yf((({commands:t})=>{t.transformText((({text:t})=>function(t){return t.toLowerCase().replace(/(?:^|\s)\S/g,(t=>t.toUpperCase()))}(t)))})),applyLowerCase:yf((({commands:t})=>{t.transformText((({text:t})=>t.toLowerCase()))})),applyUpperCase:yf((({commands:t})=>{t.transformText((({text:t})=>t.toUpperCase()))}))})}),ym={mobile:null,tablet:null,desktop:null},bm=Vp.create({name:jh.ALIGNMENT,addGlobalAttributes:()=>[{types:[Rh.PARAGRAPH,Rh.HEADING],attributes:{[jh.ALIGNMENT]:{isRequired:!1,parseHTML({style:t}){const e=function(t){const e=yd[t]||t;return Lh.values.includes(e)?e:null}(t.textAlign);if(e)return{desktop:e,tablet:e,mobile:e};const n=t.getPropertyValue("--zw-text-align-mobile")||null,r=t.getPropertyValue("--zw-text-align-tablet")||null,o=t.getPropertyValue("--zw-text-align-desktop")||null;return n||r||o?{desktop:o,tablet:r,mobile:n}:null},renderHTML:t=>t.alignment?bf({text_align_mobile:t.alignment.mobile,text_align_tablet:t.alignment.tablet,text_align_desktop:t.alignment.desktop}):null}}}],addCommands(){return{toggleAlignment:yf((({commands:t},e)=>{Ye(t.getAlignment())===e?t.removeAlignment():t.applyAlignment(e)})),applyAlignment:yf((({commands:t},e)=>{const n=Ye(t.getDevice());t.setBlockAttributes(this.name,{[n]:e},ym)})),removeAlignment:yf((({commands:t})=>t.removeBlockAttributes(this.name))),getAlignment:yf((({commands:t})=>{const e=t.getBlockAttributes(this.name,ym),n=t.getDevice(),r=t.getDefaultAlignment();return Ze((()=>{var t;return(null===(t=Ye(e))||void 0===t?void 0:t[Ye(n)])??Ye(r)}))})),getDefaultAlignment:yf((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return Ze((()=>Ye(n)[Ye(e)].alignment))}))}},addKeyboardShortcuts:()=>({"Mod-Shift-l":Df("applyAlignment",Lh.LEFT),"Mod-Shift-e":Df("applyAlignment",Lh.CENTER),"Mod-Shift-r":Df("applyAlignment",Lh.RIGHT),"Mod-Shift-j":Df("applyAlignment",Lh.JUSTIFY)})}),_m={mobile:null,tablet:null,desktop:null},Dm=Vp.create({name:jh.LINE_HEIGHT,addGlobalAttributes(){return[{types:[Rh.PARAGRAPH,Rh.HEADING],attributes:{[jh.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=vd(e,t,Ye(this.options.wrapperRef));return n?{desktop:n,tablet:n,mobile:null}:null},renderHTML:t=>t.line_height?bf({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:yf((({commands:t})=>{const e=t.getBlockAttributes(this.name,_m),n=t.getDevice(),r=t.getDefaultLineHeight();return Ze((()=>{var t;return(null===(t=Ye(e))||void 0===t?void 0:t[Ye(n)])??Ye(r)}))})),getDefaultLineHeight:yf((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return Ze((()=>Ye(n)[Ye(e)].line_height))})),applyLineHeight:yf((({commands:t},e)=>{const n=Ye(t.getDevice());t.setBlockAttributes(this.name,{[n]:e},_m)}))}}}),wm=gf.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",kp(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:Rh.LIST_ITEM,marks:zh.SETTINGS,addCommands(){const t=({selection:t})=>t.$cursor.before(t.$cursor.depth-1);return{listItemNewline:yf((({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 Jd(o,wd(t)));return!0}))}},addOptions:()=>({HTMLAttributes:{class:"zw-style"}}),addKeyboardShortcuts:()=>({Enter:t=>{var e;const{state:n,commands:r}=t.editor;if(null===(e=n.selection.$cursor)||void 0===e?void 0:e.path.some((t=>{var e;return(null===(e=t.type)||void 0===e?void 0:e.name)===Rh.LIST})))return r.listItemNewline()}})}),Em=gf.create({name:Rh.LIST,content:`${Rh.LIST_ITEM}+`,group:"block list",marks:zh.SETTINGS,addExtensions:()=>[wm],addOptions:()=>({baseClass:"",presetClass:""}),addAttributes:()=>({bullet:{default:{type:Ph.DISC}}}),parseHTML(){const t={a:Ph.ROMAN,i:Ph.LATIN,1:Ph.DECIMAL},e=e=>{for(const n of Ph.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)||Ph.DECIMAL}})},{tag:"ul",getAttrs:t=>({bullet:{type:e(t)||Ph.DISC}})}]},renderHTML({HTMLAttributes:t}){const e=[this.options.baseClass+t.bullet.type,this.options.presetClass];return[Ph.ordered.includes(t.bullet.type)?"ol":"ul",{class:e.join(" ")},0]},addCommands:()=>({getListType:yf((({commands:t})=>{const e=t.getBlockAttributes("bullet",{type:null});return Ze((()=>Ye(e).type??null))})),applyList:yf((({commands:t,chain:e},n)=>{if(Ye(t.getListType())!==n)return e().applyDefaultPreset().toggleList(Rh.LIST,Rh.LIST_ITEM).setBlockAttributes("bullet",{type:n}).command((({commands:t,tr:e})=>t._bubbleListItemMarks(e))).run();t.removeList()})),_bubbleListItemMarks:yf(((t,e)=>{const{doc:n,selection:r}=e,o=r.$from.start(),i=r.$to.end();function s(t,e){if(jh.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===Rh.LIST)return;if(t.type.name!==Rh.LIST_ITEM)return!1;const r=[];return t.forEach((o=>{for(const i of o.marks)i.isInSet(r)?e.step(new Gd(n+1,i)):s(t,i)&&(e.step(new Gd(n+1,i)),e.step(new Jd(n,wd(i))),r.push(i))})),!1}))})),removeList:yf((({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([Rh.LIST,Rh.LIST_ITEM].includes(t.type.name))return;if(r.type.name!==Rh.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 Jd(e,wd(t)));return!1})),t.liftListItem(Rh.LIST_ITEM)}))}),addInputRules(){const t=(t,e)=>function(t){return new Ip({find:t.find,handler:({state:e,range:n,match:r})=>{const o=xp(t.getAttributes,void 0,r)||{},i=e.tr.delete(n.from,n.to),s=i.doc.resolve(n.from).blockRange(),a=s&&Eu(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&&Au(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(Ph.DISC,/^\s*([-+*])\s$/),t(Ph.DECIMAL,/^(\d+)\.\s$/),t(Ph.LATIN,/^([ivx]{1,3})\.\s$/i),t(Ph.ROMAN,/^([a-z])\.\s$/i)]}});function Cm(t){this.j={},this.jr=[],this.jd=null,this.t=t}Cm.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=km();var o=Om(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 km=function(){return new Cm},Am=function(t){return new Cm(t)},xm=function(t,e,n){t.j[e]||(t.j[e]=n)},Sm=function(t,e,n){t.jr.push([e,n])},Om=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},Nm=function(t,e,n){for(var r=0;r<e.length;r++)xm(t,e[r],n)},Tm=function(t,e){for(var n=0;n<e.length;n++){var r=e[n][0],o=e[n][1];xm(t,r,o)}},Fm=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(),xm(t,e[i],o),t=o,i++;xm(t,e[s-1],n)},Mm="DOMAIN",Im="TLD",$m="NUM",Bm="AT",Lm="DOT",Rm="SLASH",Pm=Object.freeze({__proto__:null,DOMAIN:Mm,LOCALHOST:"LOCALHOST",TLD:Im,NUM:$m,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:Bm,BACKSLASH:"BACKSLASH",BACKTICK:"BACKTICK",CARET:"CARET",COLON:"COLON",COMMA:"COMMA",DOLLAR:"DOLLAR",DOT:Lm,EQUALS:"EQUALS",EXCLAMATION:"EXCLAMATION",HYPHEN:"HYPHEN",PERCENT:"PERCENT",PIPE:"PIPE",PLUS:"PLUS",POUND:"POUND",QUERY:"QUERY",QUOTE:"QUOTE",SEMI:"SEMI",SLASH:Rm,TILDE:"TILDE",UNDERSCORE:"UNDERSCORE",SYM:"SYM"}),jm="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(" "),zm=/(?:[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])/,Hm=/(?:[#\*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])/,Vm=/\uFE0F/,Wm=/\d/,Um=/\s/;function qm(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=km(),n=Am($m),r=Am(Mm),o=km(),i=Am("WS"),s=[[Wm,r],[zm,r],[Hm,r],[Vm,r]],a=function(){var t=Am(Mm);return t.j={"-":o},t.jr=[].concat(s),t},u=function(t){var e=a();return e.t=t,e};Tm(e,[["'",Am("APOSTROPHE")],["{",Am("OPENBRACE")],["[",Am("OPENBRACKET")],["<",Am("OPENANGLEBRACKET")],["(",Am("OPENPAREN")],["}",Am("CLOSEBRACE")],["]",Am("CLOSEBRACKET")],[">",Am("CLOSEANGLEBRACKET")],[")",Am("CLOSEPAREN")],["&",Am("AMPERSAND")],["*",Am("ASTERISK")],["@",Am(Bm)],["`",Am("BACKTICK")],["^",Am("CARET")],[":",Am("COLON")],[",",Am("COMMA")],["$",Am("DOLLAR")],[".",Am(Lm)],["=",Am("EQUALS")],["!",Am("EXCLAMATION")],["-",Am("HYPHEN")],["%",Am("PERCENT")],["|",Am("PIPE")],["+",Am("PLUS")],["#",Am("POUND")],["?",Am("QUERY")],['"',Am("QUOTE")],["/",Am(Rm)],[";",Am("SEMI")],["~",Am("TILDE")],["_",Am("UNDERSCORE")],["\\",Am("BACKSLASH")]]),xm(e,"\n",Am("NL")),Sm(e,Um,i),xm(i,"\n",km()),Sm(i,Um,i);for(var l=0;l<jm.length;l++)Fm(e,jm[l],u(Im),a);var c=a(),p=a(),f=a(),h=a();Fm(e,"file",c,a),Fm(e,"ftp",p,a),Fm(e,"http",f,a),Fm(e,"mailto",h,a);var d=a(),m=Am("PROTOCOL"),g=Am("MAILTO");xm(p,"s",d),xm(p,":",m),xm(f,"s",d),xm(f,":",m),xm(c,":",m),xm(d,":",m),xm(h,":",g);for(var v=a(),y=0;y<t.length;y++)Fm(e,t[y],v,a);return xm(v,":",m),Fm(e,"localhost",u("LOCALHOST"),a),Sm(e,Wm,n),Sm(e,zm,r),Sm(e,Hm,r),Sm(e,Vm,r),Sm(n,Wm,n),Sm(n,zm,r),Sm(n,Hm,r),Sm(n,Vm,r),xm(n,"-",o),xm(r,"-",o),xm(o,"-",o),Sm(r,Wm,r),Sm(r,zm,r),Sm(r,Hm,r),Sm(r,Vm,r),Sm(o,Wm,r),Sm(o,zm,r),Sm(o,Hm,r),Sm(o,Vm,r),e.jd=Am("SYM"),e}var Km={defaultProtocol:"http",events:null,format:Gm,formatHref:Gm,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:0,className:null,attributes:null,ignoreTags:[]};function Gm(t){return t}function Jm(){}function Ym(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}(Jm,n,e),n}Jm.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]:Km.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}}};var Xm=Ym("email",{isLink:!0}),Qm=Ym("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),Zm=Ym("text"),tg=Ym("nl"),eg=Ym("url",{isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Km.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===Rm;)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}}),ng=Object.freeze({__proto__:null,MultiToken:Jm,Base:Jm,createTokenClass:Ym,MailtoEmail:Xm,Email:Qm,Text:Zm,Nl:tg,Url:eg});function rg(){var t=km(),e=km(),n=km(),r=km(),o=km(),i=km(),s=km(),a=Am(eg),u=km(),l=Am(eg),c=Am(eg),p=km(),f=km(),h=km(),d=km(),m=km(),g=Am(eg),v=Am(eg),y=Am(eg),b=Am(eg),_=km(),D=km(),w=km(),E=km(),C=km(),k=km(),A=Am(Qm),x=km(),S=Am(Qm),O=Am(Xm),N=km(),T=km(),F=km(),M=km(),I=Am(tg);xm(t,"NL",I),xm(t,"PROTOCOL",e),xm(t,"MAILTO",n),xm(e,Rm,r),xm(r,Rm,o),xm(t,Im,i),xm(t,Mm,i),xm(t,"LOCALHOST",a),xm(t,$m,i),xm(o,Im,c),xm(o,Mm,c),xm(o,$m,c),xm(o,"LOCALHOST",c),xm(i,Lm,s),xm(C,Lm,k),xm(s,Im,a),xm(s,Mm,i),xm(s,$m,i),xm(s,"LOCALHOST",i),xm(k,Im,A),xm(k,Mm,C),xm(k,$m,C),xm(k,"LOCALHOST",C),xm(a,Lm,s),xm(A,Lm,k),xm(a,"COLON",u),xm(a,Rm,c),xm(u,$m,l),xm(l,Rm,c),xm(A,"COLON",x),xm(x,$m,S);var $=["AMPERSAND","ASTERISK",Bm,"BACKSLASH","BACKTICK","CARET","DOLLAR",Mm,"EQUALS","HYPHEN","LOCALHOST",$m,"PERCENT","PIPE","PLUS","POUND","PROTOCOL",Rm,"SYM","TILDE",Im,"UNDERSCORE"],B=["APOSTROPHE","CLOSEANGLEBRACKET","CLOSEBRACE","CLOSEBRACKET","CLOSEPAREN","COLON","COMMA",Lm,"EXCLAMATION","OPENANGLEBRACKET","OPENBRACE","OPENBRACKET","OPENPAREN","QUERY","QUOTE","SEMI"];xm(c,"OPENBRACE",f),xm(c,"OPENBRACKET",h),xm(c,"OPENANGLEBRACKET",d),xm(c,"OPENPAREN",m),xm(p,"OPENBRACE",f),xm(p,"OPENBRACKET",h),xm(p,"OPENANGLEBRACKET",d),xm(p,"OPENPAREN",m),xm(f,"CLOSEBRACE",c),xm(h,"CLOSEBRACKET",c),xm(d,"CLOSEANGLEBRACKET",c),xm(m,"CLOSEPAREN",c),xm(g,"CLOSEBRACE",c),xm(v,"CLOSEBRACKET",c),xm(y,"CLOSEANGLEBRACKET",c),xm(b,"CLOSEPAREN",c),xm(_,"CLOSEBRACE",c),xm(D,"CLOSEBRACKET",c),xm(w,"CLOSEANGLEBRACKET",c),xm(E,"CLOSEPAREN",c),Nm(f,$,g),Nm(h,$,v),Nm(d,$,y),Nm(m,$,b),Nm(f,B,_),Nm(h,B,D),Nm(d,B,w),Nm(m,B,E),Nm(g,$,g),Nm(v,$,v),Nm(y,$,y),Nm(b,$,b),Nm(g,B,g),Nm(v,B,v),Nm(y,B,y),Nm(b,B,b),Nm(_,$,g),Nm(D,$,v),Nm(w,$,y),Nm(E,$,b),Nm(_,B,_),Nm(D,B,D),Nm(w,B,w),Nm(E,B,E),Nm(c,$,c),Nm(p,$,c),Nm(c,B,p),Nm(p,B,p),xm(n,Im,O),xm(n,Mm,O),xm(n,$m,O),xm(n,"LOCALHOST",O),Nm(O,$,O),Nm(O,B,N),Nm(N,$,O),Nm(N,B,N);var L=["AMPERSAND","APOSTROPHE","ASTERISK","BACKSLASH","BACKTICK","CARET","CLOSEBRACE","DOLLAR",Mm,"EQUALS","HYPHEN",$m,"OPENBRACE","PERCENT","PIPE","PLUS","POUND","QUERY",Rm,"SYM","TILDE",Im,"UNDERSCORE"];return Nm(i,L,T),xm(i,Bm,F),Nm(a,L,T),xm(a,Bm,F),Nm(s,L,T),Nm(T,L,T),xm(T,Bm,F),xm(T,Lm,M),Nm(M,L,T),xm(F,Im,C),xm(F,Mm,C),xm(F,$m,C),xm(F,"LOCALHOST",A),t}function og(t,e,n){var r=n[0].s,o=n[n.length-1].e;return new t(e.substr(r,o-r),n)}var ig="undefined"!=typeof console&&console&&console.warn||function(){},sg={scanner:null,parser:null,pluginQueue:[],customProtocols:[],initialized:!1};function ag(t){if(sg.initialized&&ig('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");sg.customProtocols.push(t)}function ug(t){return sg.initialized||function(){sg.scanner={start:qm(sg.customProtocols),tokens:Pm},sg.parser={start:rg(),tokens:ng};for(var t={createTokenClass:Ym},e=0;e<sg.pluginQueue.length;e++)sg.pluginQueue[e][1]({scanner:sg.scanner,parser:sg.parser,utils:t});sg.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=Om(a,n[o].t));)s.push(n[o++]);for(;o<r&&(l=u||Om(a,n[o].t));)u=null,(a=l).accepts()?(f=0,p=a):f>=0&&f++,o++,c++;if(f<0)for(var h=o-c;h<o;h++)s.push(n[h]);else{s.length>0&&(i.push(og(Zm,e,s)),s=[]),o-=f,c-=f;var d=p.t,m=n.slice(o-c,o);i.push(og(d,e,m))}}return s.length>0&&i.push(og(Zm,e,s)),i}(sg.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=Om(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}(sg.scanner.start,t))}function lg(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=ug(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 cg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=ug(t);return 1===n.length&&n[0].isLink&&(!e||n[0].t===e)}function pg(t){return new nl({key:new il("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 Pu(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}})}))})),hf(r)}(a);return l.forEach((({oldRange:e,newRange:o})=>{df(e.from,e.to,n.doc).filter((e=>e.mark.type===t.type)).forEach((e=>{const o=df(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=cg(a),p=cg(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=>{lg(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 fg=mf.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(ag)},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",kp(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[vf({find:t=>lg(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(pg({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push((e={type:this.type},new nl({key:new il("handleClickLink"),props:{handleClick:(t,n,r)=>{var o;const i=ff(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 nl({key:new il("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=lg(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}}),hg=fg.extend({name:jh.LINK,addOptions(){var t;return{...null===(t=this.parent)||void 0===t?void 0:t.call(this),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:Hh.SELF,parseHTML:t=>t.getAttribute("target")||Hh.SELF},destination:{default:Vh.URL,parseHTML:t=>{const e=t.getAttribute("href");if(!e.startsWith("#"))return Vh.URL;const n=e.replace("#","");return Ye(this.options.pageBlocks).find((t=>t.id===parseInt(n)))?Vh.BLOCK:Vh.URL}}}},addCommands(){var t;return{...null===(t=this.parent)||void 0===t?void 0:t.call(this),applyLink:yf((({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(hd.text(n.text,[hd.mark(jh.LINK,n)])))),expandSelectionToLink:yf((({commands:t})=>{t.expandSelection((({node:t})=>this.type.isInSet(t.marks)))})),isLink:yf((({commands:t})=>t.hasMark(this.name))),getLinkPreset:yf((()=>Ze((()=>this.options.preset))))}},renderHTML({HTMLAttributes:t}){const e=t.destination===Vh.BLOCK?`#${t.href}`:t.href,n=`${Ye(this.options.basePresetClass)+Ye(this.options.preset).id} zw-style`;return["a",{href:e,target:t.target,class:n},0]}}),dg=mf.create({name:jh.SUPERSCRIPT,addCommands(){return{applySuperscript:yf((({commands:t})=>{t.setMark(this.name)})),removeSuperscript:yf((({commands:t})=>{t.unsetMark(this.name)})),toggleSuperscript:yf((({commands:t})=>{Ye(t.isSuperscript())?t.removeSuperscript():t.applySuperscript()})),isSuperscript:yf((({commands:t})=>{const e=t.getMark(this.name);return Ze((()=>!!Ye(e)))}))}},parseHTML:()=>[{tag:"sup"},{style:"vertical-align",getAttrs:t=>"super"===t&&null}],renderHTML:()=>["sup",{class:"zw-superscript"},0]}),mg=Vp.create({name:jh.MARGIN,addGlobalAttributes:()=>[{types:[Rh.PARAGRAPH,Rh.HEADING],attributes:{[jh.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?bf({margin:t.margin.value}):null}}}]});function gg(t){const e=e=>t.presetsRef.value.find((t=>t.id===e)),n=function(t){return We(t,!1),t}({default:null,link:null});return sn(t.presetsRef,(()=>{n.default=e(t.defaultPresetId),n.link=e(t.linkPresetId)}),{immediate:!0}),[tm,nm,om,xd,Kd,Xd,Qd,Zd,cm].concat([kd.configure({presets:t.presetsRef,defaultId:t.defaultPresetId,baseClass:t.basePresetClass,makeVariable:t.makePresetVariable}),Em.configure({baseClass:t.baseListClass,presetClass:t.basePresetClass+t.defaultPresetId}),dm.configure({device:t.deviceRef}),pm.configure({minSize:t.minFontSize,maxSize:t.maxFontSize,wrapperRef:t.wrapperRef}),Ed.configure({fonts:t.fonts,defaultPreset:Qe(n,"default")}),Ad,fm,hm,mm,gm,vm,dg,bm,Dm.configure({wrapperRef:t.wrapperRef}),hg.configure({preset:Qe(n,"link"),basePresetClass:t.basePresetClass,pageBlocks:t.pageBlocksRef}),mg])}class vg{static createWindow(){return(new d.JSDOM).window}types;parse(t){const{window:e}=new d.JSDOM(t);return this.types=e,e.document}}class yg{static build(t){fd.use(vg.createWindow());const e=function(t){return Np(jp.resolve(t))}(gg({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($h.DESKTOP),pageBlocksRef:Je([]),wrapperRef:fd.document.createElement("p")}));return new yg({schema:e,domParser:Ka.fromSchema(e)})}#e;#t;constructor({schema:t,domParser:e}){this.#e=t,this.#t=e}toJSON(t){const e=ld.build(t,{parser:new vg});return e.normalizeHTML(),this.#t.parse(e.dom.body)}}class bg{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)}}var _g=new WeakSet,Dg=new WeakSet,wg=new WeakSet;function Eg(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)))}function Cg(t){return JSON.stringify(t,((t,e)=>null===e?void 0:e),2)}function kg(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")}const Ag=new it,xg=[class extends bg{constructor(...t){super(...t),e(this,wg),e(this,Dg),e(this,_g),o(this,"name","to-json"),o(this,"description","migrate html to json"),o(this,"argument","<html>"),o(this,"options",[{flags:"-c, --config <path>",description:"Generator config",default:p.resolve(__dirname,"../bin/zp.config.json")},{flags:"-f, --format <type>",description:"Set output format",default:"rb"}])}doCommand(t,{config:e,format:n}){const r=p.resolve(process.cwd(),e),o=yg.build(require(r).editor).toJSON(i(this,_g,Eg).call(this,t)),s=i(this,Dg,Cg).call(this,o);this.output("rb"===n?i(this,wg,kg).call(this,s):s)}},class extends bg{name="version";description="display cli version";doCommand(){this.output("2.6.0-0")}}];for(const t of xg)(new t).install(Ag);Ag.parse();