@vaadin/rich-text-editor
Version:
vaadin-rich-text-editor
7 lines • 140 kB
JavaScript
/*!
* Quill Editor v1.3.6
* http://quilljs.com
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/
!function(t,e){t.Quill=e()}(window,(()=>(()=>{var t={423:()=>{let t=document.createElement("div");if(t.classList.toggle("test-class",!1),t.classList.contains("test-class")){let t=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,n){return arguments.length>1&&!this.contains(e)==!n?n:t.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(e=n[o],t.call(i,e,o,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},418:t=>{"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),o.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},o.prototype.listeners=function(t,e){var r=n?n+t:t,i=this._events[r];if(e)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,s=i.length,l=new Array(s);o<s;o++)l[o]=i[o].fn;return l},o.prototype.emit=function(t,e,r,i,o,s){var l=n?n+t:t;if(!this._events[l])return!1;var a,u,c=this._events[l],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,r),!0;case 4:return c.fn.call(c.context,e,r,i),!0;case 5:return c.fn.call(c.context,e,r,i,o),!0;case 6:return c.fn.call(c.context,e,r,i,o,s),!0}for(u=1,a=new Array(h-1);u<h;u++)a[u-1]=arguments[u];c.fn.apply(c.context,a)}else{var f,d=c.length;for(u=0;u<d;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),h){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,r);break;case 4:c[u].fn.call(c[u].context,e,r,i);break;default:if(!a)for(f=1,a=new Array(h-1);f<h;f++)a[f-1]=arguments[f];c[u].fn.apply(c[u].context,a)}}return!0},o.prototype.on=function(t,e,r){var o=new i(e,r||this),s=n?n+t:t;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],o]:this._events[s].push(o):(this._events[s]=o,this._eventsCount++),this},o.prototype.once=function(t,e,r){var o=new i(e,r||this,!0),s=n?n+t:t;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],o]:this._events[s].push(o):(this._events[s]=o,this._eventsCount++),this},o.prototype.removeListener=function(t,e,i,o){var s=n?n+t:t;if(!this._events[s])return this;if(!e)return 0==--this._eventsCount?this._events=new r:delete this._events[s],this;var l=this._events[s];if(l.fn)l.fn!==e||o&&!l.once||i&&l.context!==i||(0==--this._eventsCount?this._events=new r:delete this._events[s]);else{for(var a=0,u=[],c=l.length;a<c;a++)(l[a].fn!==e||o&&!l[a].once||i&&l[a].context!==i)&&u.push(l[a]);u.length?this._events[s]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new r:delete this._events[s]}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new r:delete this._events[e])):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=n,o.EventEmitter=o,t.exports=o},284:t=>{var e=-1,n=1,r=0;function i(t,u,c,h){if(t===u)return t?[[r,t]]:[];if(null!=c){var f=function(t,e,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,i="number"==typeof n?null:n.newRange,o=t.length,s=e.length;if(0===r.length&&(null===i||0===i.length)){var l=r.index,a=t.slice(0,l),u=t.slice(l),c=i?i.index:null,h=l+s-o;if((null===c||c===h)&&!(h<0||h>s)){var f=e.slice(0,h);if((m=e.slice(h))===u){var p=Math.min(l,h);if((v=a.slice(0,p))===(_=f.slice(0,p)))return d(v,a.slice(p),f.slice(p),u)}}if(null===c||c===l){var g=l,m=(f=e.slice(0,g),e.slice(g));if(f===a){var y=Math.min(o-g,s-g);if((b=u.slice(u.length-y))===(N=m.slice(m.length-y)))return d(a,u.slice(0,u.length-y),m.slice(0,m.length-y),b)}}}if(r.length>0&&i&&0===i.length){var v=t.slice(0,r.index),b=t.slice(r.index+r.length);if(!(s<(p=v.length)+(y=b.length))){var _=e.slice(0,p),N=e.slice(s-y);if(v===_&&b===N)return d(v,t.slice(p,o-y),e.slice(p,s-y),b)}}return null}(t,u,c);if(f)return f}var p=s(t,u),g=t.substring(0,p);p=l(t=t.substring(p),u=u.substring(p));var m=t.substring(t.length-p),y=function(t,a){var u;if(!t)return[[n,a]];if(!a)return[[e,t]];var c=t.length>a.length?t:a,h=t.length>a.length?a:t,f=c.indexOf(h);if(-1!==f)return u=[[n,c.substring(0,f)],[r,h],[n,c.substring(f+h.length)]],t.length>a.length&&(u[0][0]=u[2][0]=e),u;if(1===h.length)return[[e,t],[n,a]];var d=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function i(t,e,n){for(var r,i,o,a,u=t.substring(n,n+Math.floor(t.length/4)),c=-1,h="";-1!==(c=e.indexOf(u,c+1));){var f=s(t.substring(n),e.substring(c)),d=l(t.substring(0,n),e.substring(0,c));h.length<d+f&&(h=e.substring(c-d,c)+e.substring(c,c+f),r=t.substring(0,n-d),i=t.substring(n+f),o=e.substring(0,c-d),a=e.substring(c+f))}return 2*h.length>=t.length?[r,i,o,a,h]:null}var o,a,u,c,h,f=i(n,r,Math.ceil(n.length/4)),d=i(n,r,Math.ceil(n.length/2));if(!f&&!d)return null;o=d?f&&f[4].length>d[4].length?f:d:f;t.length>e.length?(a=o[0],u=o[1],c=o[2],h=o[3]):(c=o[0],h=o[1],a=o[2],u=o[3]);var p=o[4];return[a,u,c,h,p]}(t,a);if(d){var p=d[0],g=d[1],m=d[2],y=d[3],v=d[4],b=i(p,m),_=i(g,y);return b.concat([[r,v]],_)}return function(t,r){for(var i=t.length,s=r.length,l=Math.ceil((i+s)/2),a=l,u=2*l,c=new Array(u),h=new Array(u),f=0;f<u;f++)c[f]=-1,h[f]=-1;c[a+1]=0,h[a+1]=0;for(var d=i-s,p=d%2!=0,g=0,m=0,y=0,v=0,b=0;b<l;b++){for(var _=-b+g;_<=b-m;_+=2){for(var N=a+_,E=(T=_===-b||_!==b&&c[N-1]<c[N+1]?c[N+1]:c[N-1]+1)-_;T<i&&E<s&&t.charAt(T)===r.charAt(E);)T++,E++;if(c[N]=T,T>i)m+=2;else if(E>s)g+=2;else if(p){if((O=a+d-_)>=0&&O<u&&-1!==h[O])if(T>=(x=i-h[O]))return o(t,r,T,E)}}for(var A=-b+y;A<=b-v;A+=2){for(var x,O=a+A,w=(x=A===-b||A!==b&&h[O-1]<h[O+1]?h[O+1]:h[O-1]+1)-A;x<i&&w<s&&t.charAt(i-x-1)===r.charAt(s-w-1);)x++,w++;if(h[O]=x,x>i)v+=2;else if(w>s)y+=2;else if(!p){if((N=a+d-A)>=0&&N<u&&-1!==c[N]){var T;E=a+(T=c[N])-N;if(T>=(x=i-x))return o(t,r,T,E)}}}}return[[e,t],[n,r]]}(t,a)}(t=t.substring(0,t.length-p),u=u.substring(0,u.length-p));return g&&y.unshift([r,g]),m&&y.push([r,m]),a(y,h),y}function o(t,e,n,r){var o=t.substring(0,n),s=e.substring(0,r),l=t.substring(n),a=e.substring(r),u=i(o,s),c=i(l,a);return u.concat(c)}function s(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(o,i)==e.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return u(t.charCodeAt(i-1))&&i--,i}function l(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return c(t.charCodeAt(t.length-i))&&i--,i}function a(t,i){t.push([r,""]);for(var o,u=0,c=0,d=0,p="",g="";u<t.length;)if(u<t.length-1&&!t[u][1])t.splice(u,1);else switch(t[u][0]){case n:d++,g+=t[u][1],u++;break;case e:c++,p+=t[u][1],u++;break;case r:var m=u-d-c-1;if(i){if(m>=0&&f(t[m][1])){var y=t[m][1].slice(-1);if(t[m][1]=t[m][1].slice(0,-1),p=y+p,g=y+g,!t[m][1]){t.splice(m,1),u--;var v=m-1;t[v]&&t[v][0]===n&&(d++,g=t[v][1]+g,v--),t[v]&&t[v][0]===e&&(c++,p=t[v][1]+p,v--),m=v}}if(h(t[u][1])){y=t[u][1].charAt(0);t[u][1]=t[u][1].slice(1),p+=y,g+=y}}if(u<t.length-1&&!t[u][1]){t.splice(u,1);break}if(p.length>0||g.length>0){p.length>0&&g.length>0&&(0!==(o=s(g,p))&&(m>=0?t[m][1]+=g.substring(0,o):(t.splice(0,0,[r,g.substring(0,o)]),u++),g=g.substring(o),p=p.substring(o)),0!==(o=l(g,p))&&(t[u][1]=g.substring(g.length-o)+t[u][1],g=g.substring(0,g.length-o),p=p.substring(0,p.length-o)));var b=d+c;0===p.length&&0===g.length?(t.splice(u-b,b),u-=b):0===p.length?(t.splice(u-b,b,[n,g]),u=u-b+1):0===g.length?(t.splice(u-b,b,[e,p]),u=u-b+1):(t.splice(u-b,b,[e,p],[n,g]),u=u-b+2)}0!==u&&t[u-1][0]===r?(t[u-1][1]+=t[u][1],t.splice(u,1)):u++,d=0,c=0,p="",g=""}""===t[t.length-1][1]&&t.pop();var _=!1;for(u=1;u<t.length-1;)t[u-1][0]===r&&t[u+1][0]===r&&(t[u][1].substring(t[u][1].length-t[u-1][1].length)===t[u-1][1]?(t[u][1]=t[u-1][1]+t[u][1].substring(0,t[u][1].length-t[u-1][1].length),t[u+1][1]=t[u-1][1]+t[u+1][1],t.splice(u-1,1),_=!0):t[u][1].substring(0,t[u+1][1].length)==t[u+1][1]&&(t[u-1][1]+=t[u+1][1],t[u][1]=t[u][1].substring(t[u+1][1].length)+t[u+1][1],t.splice(u+1,1),_=!0)),u++;_&&a(t,i)}function u(t){return t>=55296&&t<=56319}function c(t){return t>=56320&&t<=57343}function h(t){return c(t.charCodeAt(0))}function f(t){return u(t.charCodeAt(t.length-1))}function d(t,i,o,s){return f(t)||h(s)?null:function(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}([[r,t],[e,i],[n,o],[r,s]])}function p(t,e,n){return i(t,e,n,!0)}p.INSERT=n,p.DELETE=e,p.EQUAL=r,t.exports=p},739:(t,e,n)=>{t=n.nmd(t);var r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Boolean]",l="[object Date]",a="[object Function]",u="[object GeneratorFunction]",c="[object Map]",h="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",g="[object Set]",m="[object String]",y="[object Symbol]",v="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",N="[object Float32Array]",E="[object Float64Array]",A="[object Int8Array]",x="[object Int16Array]",O="[object Int32Array]",w="[object Uint8Array]",T="[object Uint8ClampedArray]",k="[object Uint16Array]",S="[object Uint32Array]",L=/\w*$/,j=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,q={};q[o]=q["[object Array]"]=q[b]=q[_]=q[s]=q[l]=q[N]=q[E]=q[A]=q[x]=q[O]=q[c]=q[h]=q[f]=q[p]=q[g]=q[m]=q[y]=q[w]=q[T]=q[k]=q[S]=!0,q["[object Error]"]=q[a]=q[v]=!1;var R="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,I="object"==typeof self&&self&&self.Object===Object&&self,B=R||I||Function("return this")(),D=e&&!e.nodeType&&e,P=D&&t&&!t.nodeType&&t,M=P&&P.exports===D;function U(t,e){return t.set(e[0],e[1]),t}function z(t,e){return t.add(e),t}function F(t,e,n,r){var i=-1,o=t?t.length:0;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function K(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function $(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function W(t,e){return function(n){return t(e(n))}}function H(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var G,Y=Array.prototype,V=Function.prototype,X=Object.prototype,Z=B["__core-js_shared__"],Q=(G=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"",J=V.toString,tt=X.hasOwnProperty,et=X.toString,nt=RegExp("^"+J.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=M?B.Buffer:void 0,it=B.Symbol,ot=B.Uint8Array,st=W(Object.getPrototypeOf,Object),lt=Object.create,at=X.propertyIsEnumerable,ut=Y.splice,ct=Object.getOwnPropertySymbols,ht=rt?rt.isBuffer:void 0,ft=W(Object.keys,Object),dt=Pt(B,"DataView"),pt=Pt(B,"Map"),gt=Pt(B,"Promise"),mt=Pt(B,"Set"),yt=Pt(B,"WeakMap"),vt=Pt(Object,"create"),bt=Kt(dt),_t=Kt(pt),Nt=Kt(gt),Et=Kt(mt),At=Kt(yt),xt=it?it.prototype:void 0,Ot=xt?xt.valueOf:void 0;function wt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Tt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function kt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function St(t){this.__data__=new Tt(t)}function Lt(t,e){var n=Wt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Ht(t)}(t)&&tt.call(t,"callee")&&(!at.call(t,"callee")||et.call(t)==o)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,i=!!r;for(var s in t)!e&&!tt.call(t,s)||i&&("length"==s||zt(s,r))||n.push(s);return n}function jt(t,e,n){var r=t[e];tt.call(t,e)&&$t(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function Ct(t,e){for(var n=t.length;n--;)if($t(t[n][0],e))return n;return-1}function qt(t,e,n,r,i,d,v){var j;if(r&&(j=d?r(t,i,d,v):r(t)),void 0!==j)return j;if(!Vt(t))return t;var C=Wt(t);if(C){if(j=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&tt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(t,j)}else{var R=Ut(t),I=R==a||R==u;if(Gt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(R==f||R==o||I&&!d){if(K(t))return d?t:{};if(j=function(t){return"function"!=typeof t.constructor||Ft(t)?{}:(e=st(t),Vt(e)?lt(e):{});var e}(I?{}:t),!e)return function(t,e){return Bt(t,Mt(t),e)}(t,function(t,e){return t&&Bt(e,Xt(e),t)}(j,t))}else{if(!q[R])return d?t:{};j=function(t,e,n,r){var i=t.constructor;switch(e){case b:return It(t);case s:case l:return new i(+t);case _:return function(t,e){var n=e?It(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,r);case N:case E:case A:case x:case O:case w:case T:case k:case S:return function(t,e){var n=e?It(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case c:return function(t,e,n){var r=e?n($(t),!0):$(t);return F(r,U,new t.constructor)}(t,r,n);case h:case m:return new i(t);case p:return function(t){var e=new t.constructor(t.source,L.exec(t));return e.lastIndex=t.lastIndex,e}(t);case g:return function(t,e,n){var r=e?n(H(t),!0):H(t);return F(r,z,new t.constructor)}(t,r,n);case y:return o=t,Ot?Object(Ot.call(o)):{}}var o}(t,R,qt,e)}}v||(v=new St);var B=v.get(t);if(B)return B;if(v.set(t,j),!C)var D=n?function(t){return function(t,e,n){var r=e(t);return Wt(t)?r:function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}(r,n(t))}(t,Xt,Mt)}(t):Xt(t);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(D||t,(function(i,o){D&&(i=t[o=i]),jt(j,o,qt(i,e,n,r,o,t,v))})),j}function Rt(t){return!(!Vt(t)||(e=t,Q&&Q in e))&&(Yt(t)||K(t)?nt:j).test(Kt(t));var e}function It(t){var e=new t.constructor(t.byteLength);return new ot(e).set(new ot(t)),e}function Bt(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var s=e[i],l=r?r(n[s],t[s],s,n,t):void 0;jt(n,s,void 0===l?t[s]:l)}return n}function Dt(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Pt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Rt(n)?n:void 0}wt.prototype.clear=function(){this.__data__=vt?vt(null):{}},wt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},wt.prototype.get=function(t){var e=this.__data__;if(vt){var n=e[t];return n===r?void 0:n}return tt.call(e,t)?e[t]:void 0},wt.prototype.has=function(t){var e=this.__data__;return vt?void 0!==e[t]:tt.call(e,t)},wt.prototype.set=function(t,e){return this.__data__[t]=vt&&void 0===e?r:e,this},Tt.prototype.clear=function(){this.__data__=[]},Tt.prototype.delete=function(t){var e=this.__data__,n=Ct(e,t);return!(n<0)&&(n==e.length-1?e.pop():ut.call(e,n,1),!0)},Tt.prototype.get=function(t){var e=this.__data__,n=Ct(e,t);return n<0?void 0:e[n][1]},Tt.prototype.has=function(t){return Ct(this.__data__,t)>-1},Tt.prototype.set=function(t,e){var n=this.__data__,r=Ct(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},kt.prototype.clear=function(){this.__data__={hash:new wt,map:new(pt||Tt),string:new wt}},kt.prototype.delete=function(t){return Dt(this,t).delete(t)},kt.prototype.get=function(t){return Dt(this,t).get(t)},kt.prototype.has=function(t){return Dt(this,t).has(t)},kt.prototype.set=function(t,e){return Dt(this,t).set(t,e),this},St.prototype.clear=function(){this.__data__=new Tt},St.prototype.delete=function(t){return this.__data__.delete(t)},St.prototype.get=function(t){return this.__data__.get(t)},St.prototype.has=function(t){return this.__data__.has(t)},St.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Tt){var r=n.__data__;if(!pt||r.length<199)return r.push([t,e]),this;n=this.__data__=new kt(r)}return n.set(t,e),this};var Mt=ct?W(ct,Object):function(){return[]},Ut=function(t){return et.call(t)};function zt(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||C.test(t))&&t>-1&&t%1==0&&t<e}function Ft(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||X)}function Kt(t){if(null!=t){try{return J.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function $t(t,e){return t===e||t!=t&&e!=e}(dt&&Ut(new dt(new ArrayBuffer(1)))!=_||pt&&Ut(new pt)!=c||gt&&Ut(gt.resolve())!=d||mt&&Ut(new mt)!=g||yt&&Ut(new yt)!=v)&&(Ut=function(t){var e=et.call(t),n=e==f?t.constructor:void 0,r=n?Kt(n):void 0;if(r)switch(r){case bt:return _;case _t:return c;case Nt:return d;case Et:return g;case At:return v}return e});var Wt=Array.isArray;function Ht(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}(t.length)&&!Yt(t)}var Gt=ht||function(){return!1};function Yt(t){var e=Vt(t)?et.call(t):"";return e==a||e==u}function Vt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Xt(t){return Ht(t)?Lt(t):function(t){if(!Ft(t))return ft(t);var e=[];for(var n in Object(t))tt.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return qt(t,!0,!0)}},216:(t,e,n)=>{t=n.nmd(t);var r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,l="[object Arguments]",a="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",h="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",g="[object Map]",m="[object Number]",y="[object Null]",v="[object Object]",b="[object Promise]",_="[object Proxy]",N="[object RegExp]",E="[object Set]",A="[object String]",x="[object Symbol]",O="[object Undefined]",w="[object WeakMap]",T="[object ArrayBuffer]",k="[object DataView]",S=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[l]=j[a]=j[T]=j[c]=j[k]=j[h]=j[f]=j[d]=j[g]=j[m]=j[v]=j[N]=j[E]=j[A]=j[w]=!1;var C="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,q="object"==typeof self&&self&&self.Object===Object&&self,R=C||q||Function("return this")(),I=e&&!e.nodeType&&e,B=I&&t&&!t.nodeType&&t,D=B&&B.exports===I,P=D&&C.process,M=function(){try{return P&&P.binding&&P.binding("util")}catch(t){}}(),U=M&&M.isTypedArray;function z(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function F(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function K(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var $,W,H,G=Array.prototype,Y=Function.prototype,V=Object.prototype,X=R["__core-js_shared__"],Z=Y.toString,Q=V.hasOwnProperty,J=($=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+$:"",tt=V.toString,et=RegExp("^"+Z.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=D?R.Buffer:void 0,rt=R.Symbol,it=R.Uint8Array,ot=V.propertyIsEnumerable,st=G.splice,lt=rt?rt.toStringTag:void 0,at=Object.getOwnPropertySymbols,ut=nt?nt.isBuffer:void 0,ct=(W=Object.keys,H=Object,function(t){return W(H(t))}),ht=Mt(R,"DataView"),ft=Mt(R,"Map"),dt=Mt(R,"Promise"),pt=Mt(R,"Set"),gt=Mt(R,"WeakMap"),mt=Mt(Object,"create"),yt=Kt(ht),vt=Kt(ft),bt=Kt(dt),_t=Kt(pt),Nt=Kt(gt),Et=rt?rt.prototype:void 0,At=Et?Et.valueOf:void 0;function xt(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 Ot(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 wt(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 Tt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new wt;++e<n;)this.add(t[e])}function kt(t){var e=this.__data__=new Ot(t);this.size=e.size}function St(t,e){var n=Ht(t),r=!n&&Wt(t),i=!n&&!r&&Gt(t),o=!n&&!r&&!i&&Qt(t),s=n||r||i||o,l=s?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],a=l.length;for(var u in t)!e&&!Q.call(t,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ft(u,a))||l.push(u);return l}function Lt(t,e){for(var n=t.length;n--;)if($t(t[n][0],e))return n;return-1}function jt(t){return null==t?void 0===t?O:y:lt&< in Object(t)?function(t){var e=Q.call(t,lt),n=t[lt];try{t[lt]=void 0;var r=!0}catch(t){}var i=tt.call(t);r&&(e?t[lt]=n:delete t[lt]);return i}(t):function(t){return tt.call(t)}(t)}function Ct(t){return Zt(t)&&jt(t)==l}function qt(t,e,n,r,s){return t===e||(null==t||null==e||!Zt(t)&&!Zt(e)?t!=t&&e!=e:function(t,e,n,r,s,u){var d=Ht(t),p=Ht(e),y=d?a:zt(t),b=p?a:zt(e),_=(y=y==l?v:y)==v,O=(b=b==l?v:b)==v,w=y==b;if(w&&Gt(t)){if(!Gt(e))return!1;d=!0,_=!1}if(w&&!_)return u||(u=new kt),d||Qt(t)?Bt(t,e,n,r,s,u):function(t,e,n,r,s,l,a){switch(n){case k:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case T:return!(t.byteLength!=e.byteLength||!l(new it(t),new it(e)));case c:case h:case m:return $t(+t,+e);case f:return t.name==e.name&&t.message==e.message;case N:case A:return t==e+"";case g:var u=F;case E:var d=r&i;if(u||(u=K),t.size!=e.size&&!d)return!1;var p=a.get(t);if(p)return p==e;r|=o,a.set(t,e);var y=Bt(u(t),u(e),r,s,l,a);return a.delete(t),y;case x:if(At)return At.call(t)==At.call(e)}return!1}(t,e,y,n,r,s,u);if(!(n&i)){var S=_&&Q.call(t,"__wrapped__"),L=O&&Q.call(e,"__wrapped__");if(S||L){var j=S?t.value():t,C=L?e.value():e;return u||(u=new kt),s(j,C,n,r,u)}}if(!w)return!1;return u||(u=new kt),function(t,e,n,r,o,s){var l=n&i,a=Dt(t),u=a.length,c=Dt(e),h=c.length;if(u!=h&&!l)return!1;var f=u;for(;f--;){var d=a[f];if(!(l?d in e:Q.call(e,d)))return!1}var p=s.get(t);if(p&&s.get(e))return p==e;var g=!0;s.set(t,e),s.set(e,t);var m=l;for(;++f<u;){var y=t[d=a[f]],v=e[d];if(r)var b=l?r(v,y,d,e,t,s):r(y,v,d,t,e,s);if(!(void 0===b?y===v||o(y,v,n,r,s):b)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var _=t.constructor,N=e.constructor;_==N||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof N&&N instanceof N||(g=!1)}return s.delete(t),s.delete(e),g}(t,e,n,r,s,u)}(t,e,n,r,qt,s))}function Rt(t){return!(!Xt(t)||function(t){return!!J&&J in t}(t))&&(Yt(t)?et:S).test(Kt(t))}function It(t){if(n=(e=t)&&e.constructor,r="function"==typeof n&&n.prototype||V,e!==r)return ct(t);var e,n,r,i=[];for(var o in Object(t))Q.call(t,o)&&"constructor"!=o&&i.push(o);return i}function Bt(t,e,n,r,s,l){var a=n&i,u=t.length,c=e.length;if(u!=c&&!(a&&c>u))return!1;var h=l.get(t);if(h&&l.get(e))return h==e;var f=-1,d=!0,p=n&o?new Tt:void 0;for(l.set(t,e),l.set(e,t);++f<u;){var g=t[f],m=e[f];if(r)var y=a?r(m,g,f,e,t,l):r(g,m,f,t,e,l);if(void 0!==y){if(y)continue;d=!1;break}if(p){if(!z(e,(function(t,e){if(i=e,!p.has(i)&&(g===t||s(g,t,n,r,l)))return p.push(e);var i}))){d=!1;break}}else if(g!==m&&!s(g,m,n,r,l)){d=!1;break}}return l.delete(t),l.delete(e),d}function Dt(t){return function(t,e,n){var r=e(t);return Ht(t)?r:function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}(r,n(t))}(t,Jt,Ut)}function Pt(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Mt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Rt(n)?n:void 0}xt.prototype.clear=function(){this.__data__=mt?mt(null):{},this.size=0},xt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},xt.prototype.get=function(t){var e=this.__data__;if(mt){var n=e[t];return n===r?void 0:n}return Q.call(e,t)?e[t]:void 0},xt.prototype.has=function(t){var e=this.__data__;return mt?void 0!==e[t]:Q.call(e,t)},xt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=mt&&void 0===e?r:e,this},Ot.prototype.clear=function(){this.__data__=[],this.size=0},Ot.prototype.delete=function(t){var e=this.__data__,n=Lt(e,t);return!(n<0)&&(n==e.length-1?e.pop():st.call(e,n,1),--this.size,!0)},Ot.prototype.get=function(t){var e=this.__data__,n=Lt(e,t);return n<0?void 0:e[n][1]},Ot.prototype.has=function(t){return Lt(this.__data__,t)>-1},Ot.prototype.set=function(t,e){var n=this.__data__,r=Lt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},wt.prototype.clear=function(){this.size=0,this.__data__={hash:new xt,map:new(ft||Ot),string:new xt}},wt.prototype.delete=function(t){var e=Pt(this,t).delete(t);return this.size-=e?1:0,e},wt.prototype.get=function(t){return Pt(this,t).get(t)},wt.prototype.has=function(t){return Pt(this,t).has(t)},wt.prototype.set=function(t,e){var n=Pt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Tt.prototype.add=Tt.prototype.push=function(t){return this.__data__.set(t,r),this},Tt.prototype.has=function(t){return this.__data__.has(t)},kt.prototype.clear=function(){this.__data__=new Ot,this.size=0},kt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},kt.prototype.get=function(t){return this.__data__.get(t)},kt.prototype.has=function(t){return this.__data__.has(t)},kt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ot){var r=n.__data__;if(!ft||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new wt(r)}return n.set(t,e),this.size=n.size,this};var Ut=at?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}(at(t),(function(e){return ot.call(t,e)})))}:function(){return[]},zt=jt;function Ft(t,e){return!!(e=null==e?s:e)&&("number"==typeof t||L.test(t))&&t>-1&&t%1==0&&t<e}function Kt(t){if(null!=t){try{return Z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function $t(t,e){return t===e||t!=t&&e!=e}(ht&&zt(new ht(new ArrayBuffer(1)))!=k||ft&&zt(new ft)!=g||dt&&zt(dt.resolve())!=b||pt&&zt(new pt)!=E||gt&&zt(new gt)!=w)&&(zt=function(t){var e=jt(t),n=e==v?t.constructor:void 0,r=n?Kt(n):"";if(r)switch(r){case yt:return k;case vt:return g;case bt:return b;case _t:return E;case Nt:return w}return e});var Wt=Ct(function(){return arguments}())?Ct:function(t){return Zt(t)&&Q.call(t,"callee")&&!ot.call(t,"callee")},Ht=Array.isArray;var Gt=ut||function(){return!1};function Yt(t){if(!Xt(t))return!1;var e=jt(t);return e==d||e==p||e==u||e==_}function Vt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function Xt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Zt(t){return null!=t&&"object"==typeof t}var Qt=U?function(t){return function(e){return t(e)}}(U):function(t){return Zt(t)&&Vt(t.length)&&!!j[jt(t)]};function Jt(t){return null!=(e=t)&&Vt(e.length)&&!Yt(e)?St(t):It(t);var e}t.exports=function(t,e){return qt(t,e)}},124:(t,e,n)=>{t=n.nmd(t);var r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object AsyncFunction]",l="[object Function]",a="[object GeneratorFunction]",u="[object Null]",c="[object Object]",h="[object Proxy]",f="[object Undefined]",d=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[o]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g[l]=g["[object Map]"]=g["[object Number]"]=g[c]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var m="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,y="object"==typeof self&&self&&self.Object===Object&&self,v=m||y||Function("return this")(),b=e&&!e.nodeType&&e,_=b&&t&&!t.nodeType&&t,N=_&&_.exports===b,E=N&&m.process,A=function(){try{var t=_&&_.require&&_.require("util").types;return t||E&&E.binding&&E.binding("util")}catch(t){}}(),x=A&&A.isTypedArray;var O,w,T,k=Array.prototype,S=Function.prototype,L=Object.prototype,j=v["__core-js_shared__"],C=S.toString,q=L.hasOwnProperty,R=(O=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",I=L.toString,B=C.call(Object),D=RegExp("^"+C.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=N?v.Buffer:void 0,M=v.Symbol,U=v.Uint8Array,z=P?P.allocUnsafe:void 0,F=(w=Object.getPrototypeOf,T=Object,function(t){return w(T(t))}),K=Object.create,$=L.propertyIsEnumerable,W=k.splice,H=M?M.toStringTag:void 0,G=function(){try{var t=bt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Y=P?P.isBuffer:void 0,V=Math.max,X=Date.now,Z=bt(v,"Map"),Q=bt(Object,"create"),J=function(){function t(){}return function(e){if(!jt(e))return{};if(K)return K(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function tt(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 et(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 nt(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 rt(t){var e=this.__data__=new et(t);this.size=e.size}function it(t,e){var n=wt(t),r=!n&&Ot(t),i=!n&&!r&&kt(t),o=!n&&!r&&!i&&qt(t),s=n||r||i||o,l=s?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],a=l.length;for(var u in t)!e&&!q.call(t,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||_t(u,a))||l.push(u);return l}function ot(t,e,n){(void 0!==n&&!xt(t[e],n)||void 0===n&&!(e in t))&&at(t,e,n)}function st(t,e,n){var r=t[e];q.call(t,e)&&xt(r,n)&&(void 0!==n||e in t)||at(t,e,n)}function lt(t,e){for(var n=t.length;n--;)if(xt(t[n][0],e))return n;return-1}function at(t,e,n){"__proto__"==e&&G?G(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}tt.prototype.clear=function(){this.__data__=Q?Q(null):{},this.size=0},tt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},tt.prototype.get=function(t){var e=this.__data__;if(Q){var n=e[t];return n===r?void 0:n}return q.call(e,t)?e[t]:void 0},tt.prototype.has=function(t){var e=this.__data__;return Q?void 0!==e[t]:q.call(e,t)},tt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Q&&void 0===e?r:e,this},et.prototype.clear=function(){this.__data__=[],this.size=0},et.prototype.delete=function(t){var e=this.__data__,n=lt(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)},et.prototype.get=function(t){var e=this.__data__,n=lt(e,t);return n<0?void 0:e[n][1]},et.prototype.has=function(t){return lt(this.__data__,t)>-1},et.prototype.set=function(t,e){var n=this.__data__,r=lt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},nt.prototype.clear=function(){this.size=0,this.__data__={hash:new tt,map:new(Z||et),string:new tt}},nt.prototype.delete=function(t){var e=vt(this,t).delete(t);return this.size-=e?1:0,e},nt.prototype.get=function(t){return vt(this,t).get(t)},nt.prototype.has=function(t){return vt(this,t).has(t)},nt.prototype.set=function(t,e){var n=vt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},rt.prototype.clear=function(){this.__data__=new et,this.size=0},rt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},rt.prototype.get=function(t){return this.__data__.get(t)},rt.prototype.has=function(t){return this.__data__.has(t)},rt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof et){var r=n.__data__;if(!Z||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new nt(r)}return n.set(t,e),this.size=n.size,this};var ut,ct=function(t,e,n){for(var r=-1,i=Object(t),o=n(t),s=o.length;s--;){var l=o[ut?s:++r];if(!1===e(i[l],l,i))break}return t};function ht(t){return null==t?void 0===t?f:u:H&&H in Object(t)?function(t){var e=q.call(t,H),n=t[H];try{t[H]=void 0;var r=!0}catch(t){}var i=I.call(t);r&&(e?t[H]=n:delete t[H]);return i}(t):function(t){return I.call(t)}(t)}function ft(t){return Ct(t)&&ht(t)==o}function dt(t){return!(!jt(t)||function(t){return!!R&&R in t}(t))&&(St(t)?D:d).test(function(t){if(null!=t){try{return C.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function pt(t){if(!jt(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Nt(t),n=[];for(var r in t)("constructor"!=r||!e&&q.call(t,r))&&n.push(r);return n}function gt(t,e,n,r,i){t!==e&&ct(e,(function(o,s){if(i||(i=new rt),jt(o))!function(t,e,n,r,i,o,s){var l=Et(t,n),a=Et(e,n),u=s.get(a);if(u)return void ot(t,n,u);var h=o?o(l,a,n+"",t,e,s):void 0,f=void 0===h;if(f){var d=wt(a),p=!d&&kt(a),g=!d&&!p&&qt(a);h=a,d||p||g?wt(l)?h=l:Ct(_=l)&&Tt(_)?h=function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(l):p?(f=!1,h=function(t,e){if(e)return t.slice();var n=t.length,r=z?z(n):new t.constructor(n);return t.copy(r),r}(a,!0)):g?(f=!1,m=a,y=!0?(v=m.buffer,b=new v.constructor(v.byteLength),new U(b).set(new U(v)),b):m.buffer,h=new m.constructor(y,m.byteOffset,m.length)):h=[]:function(t){if(!Ct(t)||ht(t)!=c)return!1;var e=F(t);if(null===e)return!0;var n=q.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&C.call(n)==B}(a)||Ot(a)?(h=l,Ot(l)?h=function(t){return function(t,e,n,r){var i=!n;n||(n={});var o=-1,s=e.length;for(;++o<s;){var l=e[o],a=r?r(n[l],t[l],l,n,t):void 0;void 0===a&&(a=t[l]),i?at(n,l,a):st(n,l,a)}return n}(t,Rt(t))}(l):jt(l)&&!St(l)||(h=function(t){return"function"!=typeof t.constructor||Nt(t)?{}:J(F(t))}(a))):f=!1}var m,y,v,b;var _;f&&(s.set(a,h),i(h,a,r,o,s),s.delete(a));ot(t,n,h)}(t,e,s,n,gt,r,i);else{var l=r?r(Et(t,s),o,s+"",t,e,i):void 0;void 0===l&&(l=o),ot(t,s,l)}}),Rt)}function mt(t,e){return At(function(t,e,n){return e=V(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=V(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var l=Array(e+1);++i<e;)l[i]=r[i];return l[e]=n(s),function(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)}(t,this,l)}}(t,e,Dt),t+"")}var yt=G?function(t,e){return G(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:Dt;function vt(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function bt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return dt(n)?n:void 0}function _t(t,e){var n=typeof t;return!!(e=null==e?i:e)&&("number"==n||"symbol"!=n&&p.test(t))&&t>-1&&t%1==0&&t<e}function Nt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||L)}function Et(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var At=function(t){var e=0,n=0;return function(){var r=X(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(yt);function xt(t,e){return t===e||t!=t&&e!=e}var Ot=ft(function(){return arguments}())?ft:function(t){return Ct(t)&&q.call(t,"callee")&&!$.call(t,"callee")},wt=Array.isArray;function Tt(t){return null!=t&&Lt(t.length)&&!St(t)}var kt=Y||function(){return!1};function St(t){if(!jt(t))return!1;var e=ht(t);return e==l||e==a||e==s||e==h}function Lt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function jt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ct(t){return null!=t&&"object"==typeof t}var qt=x?function(t){return function(e){return t(e)}}(x):function(t){return Ct(t)&&Lt(t.length)&&!!g[ht(t)]};function Rt(t){return Tt(t)?it(t,!0):pt(t)}var It,Bt=(It=function(t,e,n){gt(t,e,n)},mt((function(t,e){var n=-1,r=e.length,i=r>1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=It.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(t,e,n){if(!jt(n))return!1;var r=typeof e;return!!("number"==r?Tt(n)&&_t(e,n.length):"string"==r&&e in n)&&xt(n[e],t)}(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var s=e[n];s&&It(t,s,n,i)}return t})));function Dt(t){return t}t.exports=Bt},538:function(t){var e;"undefined"!=typeof self&&self,e=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=9)}([function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return i(e,t),e}(Error);e.ParchmentError=o;var s,l={},a={},u={},c={};function h(t,e){var n;if(void 0===e&&(e=s.ANY),"string"==typeof t)n=c[t]||l[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof t)t&s.LEVEL&s.BLOCK?n=c.block:t&s.LEVEL&s.INLINE&&(n=c.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=a[r[i]])break;n=n||u[t.tagName]}return null==n?null:e&s.LEVEL&n.scope&&e&s.TYPE&n.scope?n:null}e.DATA_KEY="__blot",function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(s=e.Scope||(e.Scope={})),e.create=function(t,e){var n=h(t);if(null==n)throw new o("Unable to create "+t+" blot");var r=n,i=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(i,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=h,e.register=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length>1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");return c[r.blotName||r.attrName]=r,"string"==typeof r.keyName?l[r.keyName]=r:(null!=r.className&&(a[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(t){null!=u[t]&&null!=r.className||(u[t]=r)})))),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=i},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(11),s=n(5),l=n(0),a=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return i(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=u(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof l.ParchmentError)return;throw t}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,s){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=s})),i},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,i){t.formatAt(e,i,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var s=null==n?l.create("text",e):l.create(e,n);this.appendChild(s)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new l.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=l.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),i=r[0],o=r[1],s=[[this,t]];return i instanceof e?s.concat(i.path(o,n)):(null!=i&&s.push([i,o]),s)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,r,i){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],i=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),i.push.apply(i,t.removedNodes))})),i.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=l.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=l.find(t.nextSibling));var r=u(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(s.default);function u(t){var e=l.find(t);if(null==e)try{e=l.create(t)}catch(n){e=l.create(l.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),s=n(6),l=n(2),a=n(0),u=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new s.default(n.domNode),n}return i(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=a.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(l.default);e.default=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),s=n(0),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t;var t},e.scope=s.Scope.INLINE_BLOT,e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var s=r.create(this.statics.scope);o.wrap(s),s.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.i