highcourt-affidavit-elements 0.2.16 → 0.2.18

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.
@@ -1,5 +1,5 @@
1
- import{a as L,b as Ut,c as Xs,d as Ft,e as jc,f as ot}from"./chunk-MON7YFGF.js";var al=Ft((A2,ol)=>{"use strict";var at=-1,Z=1,P=0;function cr(r,t,e,s,n){if(r===t)return r?[[P,r]]:[];if(e!=null){var i=_g(r,t,e);if(i)return i}var o=dn(r,t),a=r.substring(0,o);r=r.substring(o),t=t.substring(o),o=is(r,t);var l=r.substring(r.length-o);r=r.substring(0,r.length-o),t=t.substring(0,t.length-o);var u=Eg(r,t);return a&&u.unshift([P,a]),l&&u.push([P,l]),pn(u,n),s&&wg(u),u}function Eg(r,t){var e;if(!r)return[[Z,t]];if(!t)return[[at,r]];var s=r.length>t.length?r:t,n=r.length>t.length?t:r,i=s.indexOf(n);if(i!==-1)return e=[[Z,s.substring(0,i)],[P,n],[Z,s.substring(i+n.length)]],r.length>t.length&&(e[0][0]=e[2][0]=at),e;if(n.length===1)return[[at,r],[Z,t]];var o=Ng(r,t);if(o){var a=o[0],l=o[1],u=o[2],c=o[3],f=o[4],h=cr(a,u),p=cr(l,c);return h.concat([[P,f]],p)}return Tg(r,t)}function Tg(r,t){for(var e=r.length,s=t.length,n=Math.ceil((e+s)/2),i=n,o=2*n,a=new Array(o),l=new Array(o),u=0;u<o;u++)a[u]=-1,l[u]=-1;a[i+1]=0,l[i+1]=0;for(var c=e-s,f=c%2!==0,h=0,p=0,m=0,y=0,v=0;v<n;v++){for(var g=-v+h;g<=v-p;g+=2){var A=i+g,E;g===-v||g!==v&&a[A-1]<a[A+1]?E=a[A+1]:E=a[A-1]+1;for(var T=E-g;E<e&&T<s&&r.charAt(E)===t.charAt(T);)E++,T++;if(a[A]=E,E>e)p+=2;else if(T>s)h+=2;else if(f){var N=i+c-g;if(N>=0&&N<o&&l[N]!==-1){var _=e-l[N];if(E>=_)return Qa(r,t,E,T)}}}for(var Y=-v+m;Y<=v-y;Y+=2){var N=i+Y,_;Y===-v||Y!==v&&l[N-1]<l[N+1]?_=l[N+1]:_=l[N-1]+1;for(var mt=_-Y;_<e&&mt<s&&r.charAt(e-_-1)===t.charAt(s-mt-1);)_++,mt++;if(l[N]=_,_>e)y+=2;else if(mt>s)m+=2;else if(!f){var A=i+c-Y;if(A>=0&&A<o&&a[A]!==-1){var E=a[A],T=i+E-A;if(_=e-_,E>=_)return Qa(r,t,E,T)}}}}return[[at,r],[Z,t]]}function Qa(r,t,e,s){var n=r.substring(0,e),i=t.substring(0,s),o=r.substring(e),a=t.substring(s),l=cr(n,i),u=cr(o,a);return l.concat(u)}function dn(r,t){if(!r||!t||r.charAt(0)!==t.charAt(0))return 0;for(var e=0,s=Math.min(r.length,t.length),n=s,i=0;e<n;)r.substring(i,n)==t.substring(i,n)?(e=n,i=e):s=n,n=Math.floor((s-e)/2+e);return rl(r.charCodeAt(n-1))&&n--,n}function Ya(r,t){var e=r.length,s=t.length;if(e==0||s==0)return 0;e>s?r=r.substring(e-s):e<s&&(t=t.substring(0,e));var n=Math.min(e,s);if(r==t)return n;for(var i=0,o=1;;){var a=r.substring(n-o),l=t.indexOf(a);if(l==-1)return i;o+=l,(l==0||r.substring(n-o)==t.substring(0,o))&&(i=o,o++)}}function is(r,t){if(!r||!t||r.slice(-1)!==t.slice(-1))return 0;for(var e=0,s=Math.min(r.length,t.length),n=s,i=0;e<n;)r.substring(r.length-n,r.length-i)==t.substring(t.length-n,t.length-i)?(e=n,i=e):s=n,n=Math.floor((s-e)/2+e);return sl(r.charCodeAt(r.length-n))&&n--,n}function Ng(r,t){var e=r.length>t.length?r:t,s=r.length>t.length?t:r;if(e.length<4||s.length*2<e.length)return null;function n(p,m,y){for(var v=p.substring(y,y+Math.floor(p.length/4)),g=-1,A="",E,T,N,_;(g=m.indexOf(v,g+1))!==-1;){var Y=dn(p.substring(y),m.substring(g)),mt=is(p.substring(0,y),m.substring(0,g));A.length<mt+Y&&(A=m.substring(g-mt,g)+m.substring(g,g+Y),E=p.substring(0,y-mt),T=p.substring(y+Y),N=m.substring(0,g-mt),_=m.substring(g+Y))}return A.length*2>=p.length?[E,T,N,_,A]:null}var i=n(e,s,Math.ceil(e.length/4)),o=n(e,s,Math.ceil(e.length/2)),a;if(!i&&!o)return null;o?i?a=i[4].length>o[4].length?i:o:a=o:a=i;var l,u,c,f;r.length>t.length?(l=a[0],u=a[1],c=a[2],f=a[3]):(c=a[0],f=a[1],l=a[2],u=a[3]);var h=a[4];return[l,u,c,f,h]}function wg(r){for(var t=!1,e=[],s=0,n=null,i=0,o=0,a=0,l=0,u=0;i<r.length;)r[i][0]==P?(e[s++]=i,o=l,a=u,l=0,u=0,n=r[i][1]):(r[i][0]==Z?l+=r[i][1].length:u+=r[i][1].length,n&&n.length<=Math.max(o,a)&&n.length<=Math.max(l,u)&&(r.splice(e[s-1],0,[at,n]),r[e[s-1]+1][0]=Z,s--,s--,i=s>0?e[s-1]:-1,o=0,a=0,l=0,u=0,n=null,t=!0)),i++;for(t&&pn(r),Og(r),i=1;i<r.length;){if(r[i-1][0]==at&&r[i][0]==Z){var c=r[i-1][1],f=r[i][1],h=Ya(c,f),p=Ya(f,c);h>=p?(h>=c.length/2||h>=f.length/2)&&(r.splice(i,0,[P,f.substring(0,h)]),r[i-1][1]=c.substring(0,c.length-h),r[i+1][1]=f.substring(h),i++):(p>=c.length/2||p>=f.length/2)&&(r.splice(i,0,[P,c.substring(0,p)]),r[i-1][0]=Z,r[i-1][1]=f.substring(0,f.length-p),r[i+1][0]=at,r[i+1][1]=c.substring(p),i++),i++}i++}}var Ja=/[^a-zA-Z0-9]/,tl=/\s/,el=/[\r\n]/,Sg=/\n\r?\n$/,Lg=/^\r?\n\r?\n/;function Og(r){function t(p,m){if(!p||!m)return 6;var y=p.charAt(p.length-1),v=m.charAt(0),g=y.match(Ja),A=v.match(Ja),E=g&&y.match(tl),T=A&&v.match(tl),N=E&&y.match(el),_=T&&v.match(el),Y=N&&p.match(Sg),mt=_&&m.match(Lg);return Y||mt?5:N||_?4:g&&!E&&T?3:E||T?2:g||A?1:0}for(var e=1;e<r.length-1;){if(r[e-1][0]==P&&r[e+1][0]==P){var s=r[e-1][1],n=r[e][1],i=r[e+1][1],o=is(s,n);if(o){var a=n.substring(n.length-o);s=s.substring(0,s.length-o),n=a+n.substring(0,n.length-o),i=a+i}for(var l=s,u=n,c=i,f=t(s,n)+t(n,i);n.charAt(0)===i.charAt(0);){s+=n.charAt(0),n=n.substring(1)+i.charAt(0),i=i.substring(1);var h=t(s,n)+t(n,i);h>=f&&(f=h,l=s,u=n,c=i)}r[e-1][1]!=l&&(l?r[e-1][1]=l:(r.splice(e-1,1),e--),r[e][1]=u,c?r[e+1][1]=c:(r.splice(e+1,1),e--))}e++}}function pn(r,t){r.push([P,""]);for(var e=0,s=0,n=0,i="",o="",a;e<r.length;){if(e<r.length-1&&!r[e][1]){r.splice(e,1);continue}switch(r[e][0]){case Z:n++,o+=r[e][1],e++;break;case at:s++,i+=r[e][1],e++;break;case P:var l=e-n-s-1;if(t){if(l>=0&&il(r[l][1])){var u=r[l][1].slice(-1);if(r[l][1]=r[l][1].slice(0,-1),i=u+i,o=u+o,!r[l][1]){r.splice(l,1),e--;var c=l-1;r[c]&&r[c][0]===Z&&(n++,o=r[c][1]+o,c--),r[c]&&r[c][0]===at&&(s++,i=r[c][1]+i,c--),l=c}}if(nl(r[e][1])){var u=r[e][1].charAt(0);r[e][1]=r[e][1].slice(1),i+=u,o+=u}}if(e<r.length-1&&!r[e][1]){r.splice(e,1);break}if(i.length>0||o.length>0){i.length>0&&o.length>0&&(a=dn(o,i),a!==0&&(l>=0?r[l][1]+=o.substring(0,a):(r.splice(0,0,[P,o.substring(0,a)]),e++),o=o.substring(a),i=i.substring(a)),a=is(o,i),a!==0&&(r[e][1]=o.substring(o.length-a)+r[e][1],o=o.substring(0,o.length-a),i=i.substring(0,i.length-a)));var f=n+s;i.length===0&&o.length===0?(r.splice(e-f,f),e=e-f):i.length===0?(r.splice(e-f,f,[Z,o]),e=e-f+1):o.length===0?(r.splice(e-f,f,[at,i]),e=e-f+1):(r.splice(e-f,f,[at,i],[Z,o]),e=e-f+2)}e!==0&&r[e-1][0]===P?(r[e-1][1]+=r[e][1],r.splice(e,1)):e++,n=0,s=0,i="",o="";break}}r[r.length-1][1]===""&&r.pop();var h=!1;for(e=1;e<r.length-1;)r[e-1][0]===P&&r[e+1][0]===P&&(r[e][1].substring(r[e][1].length-r[e-1][1].length)===r[e-1][1]?(r[e][1]=r[e-1][1]+r[e][1].substring(0,r[e][1].length-r[e-1][1].length),r[e+1][1]=r[e-1][1]+r[e+1][1],r.splice(e-1,1),h=!0):r[e][1].substring(0,r[e+1][1].length)==r[e+1][1]&&(r[e-1][1]+=r[e+1][1],r[e][1]=r[e][1].substring(r[e+1][1].length)+r[e+1][1],r.splice(e+1,1),h=!0)),e++;h&&pn(r,t)}function rl(r){return r>=55296&&r<=56319}function sl(r){return r>=56320&&r<=57343}function nl(r){return sl(r.charCodeAt(0))}function il(r){return rl(r.charCodeAt(r.length-1))}function Cg(r){for(var t=[],e=0;e<r.length;e++)r[e][1].length>0&&t.push(r[e]);return t}function hn(r,t,e,s){return il(r)||nl(s)?null:Cg([[P,r],[at,t],[Z,e],[P,s]])}function _g(r,t,e){var s=typeof e=="number"?{index:e,length:0}:e.oldRange,n=typeof e=="number"?null:e.newRange,i=r.length,o=t.length;if(s.length===0&&(n===null||n.length===0)){var a=s.index,l=r.slice(0,a),u=r.slice(a),c=n?n.index:null;t:{var f=a+o-i;if(c!==null&&c!==f||f<0||f>o)break t;var h=t.slice(0,f),p=t.slice(f);if(p!==u)break t;var m=Math.min(a,f),y=l.slice(0,m),v=h.slice(0,m);if(y!==v)break t;var g=l.slice(m),A=h.slice(m);return hn(y,g,A,u)}t:{if(c!==null&&c!==a)break t;var E=a,h=t.slice(0,E),p=t.slice(E);if(h!==l)break t;var T=Math.min(i-E,o-E),N=u.slice(u.length-T),_=p.slice(p.length-T);if(N!==_)break t;var g=u.slice(0,u.length-T),A=p.slice(0,p.length-T);return hn(l,g,A,N)}}if(s.length>0&&n&&n.length===0)t:{var y=r.slice(0,s.index),N=r.slice(s.index+s.length),m=y.length,T=N.length;if(o<m+T)break t;var v=t.slice(0,m),_=t.slice(o-T);if(y!==v||N!==_)break t;var g=r.slice(m,i-T),A=t.slice(m,o-T);return hn(y,g,A,N)}return null}function os(r,t,e,s){return cr(r,t,e,s,!0)}os.INSERT=Z;os.DELETE=at;os.EQUAL=P;ol.exports=os});var Cn=Ft((fr,He)=>{"use strict";var qg=200,xl="__lodash_hash_undefined__",vl=9007199254740991,En="[object Arguments]",Ig="[object Array]",Al="[object Boolean]",El="[object Date]",kg="[object Error]",Tn="[object Function]",Tl="[object GeneratorFunction]",as="[object Map]",Nl="[object Number]",Nn="[object Object]",ll="[object Promise]",wl="[object RegExp]",ls="[object Set]",Sl="[object String]",Ll="[object Symbol]",gn="[object WeakMap]",Ol="[object ArrayBuffer]",us="[object DataView]",Cl="[object Float32Array]",_l="[object Float64Array]",ql="[object Int8Array]",Il="[object Int16Array]",kl="[object Int32Array]",Rl="[object Uint8Array]",Bl="[object Uint8ClampedArray]",Ml="[object Uint16Array]",Dl="[object Uint32Array]",Rg=/[\\^$.*+?()[\]{}|]/g,Bg=/\w*$/,Mg=/^\[object .+?Constructor\]$/,Dg=/^(?:0|[1-9]\d*)$/,S={};S[En]=S[Ig]=S[Ol]=S[us]=S[Al]=S[El]=S[Cl]=S[_l]=S[ql]=S[Il]=S[kl]=S[as]=S[Nl]=S[Nn]=S[wl]=S[ls]=S[Sl]=S[Ll]=S[Rl]=S[Bl]=S[Ml]=S[Dl]=!0;S[kg]=S[Tn]=S[gn]=!1;var jg=typeof global=="object"&&global&&global.Object===Object&&global,Pg=typeof self=="object"&&self&&self.Object===Object&&self,_t=jg||Pg||Function("return this")(),jl=typeof fr=="object"&&fr&&!fr.nodeType&&fr,ul=jl&&typeof He=="object"&&He&&!He.nodeType&&He,Ug=ul&&ul.exports===jl;function Fg(r,t){return r.set(t[0],t[1]),r}function Hg(r,t){return r.add(t),r}function zg(r,t){for(var e=-1,s=r?r.length:0;++e<s&&t(r[e],e,r)!==!1;);return r}function $g(r,t){for(var e=-1,s=t.length,n=r.length;++e<s;)r[n+e]=t[e];return r}function Pl(r,t,e,s){var n=-1,i=r?r.length:0;for(s&&i&&(e=r[++n]);++n<i;)e=t(e,r[n],n,r);return e}function Kg(r,t){for(var e=-1,s=Array(r);++e<r;)s[e]=t(e);return s}function Gg(r,t){return r?.[t]}function Ul(r){var t=!1;if(r!=null&&typeof r.toString!="function")try{t=!!(r+"")}catch{}return t}function cl(r){var t=-1,e=Array(r.size);return r.forEach(function(s,n){e[++t]=[n,s]}),e}function wn(r,t){return function(e){return r(t(e))}}function fl(r){var t=-1,e=Array(r.size);return r.forEach(function(s){e[++t]=s}),e}var Vg=Array.prototype,Wg=Function.prototype,cs=Object.prototype,mn=_t["__core-js_shared__"],hl=function(){var r=/[^.]+$/.exec(mn&&mn.keys&&mn.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Fl=Wg.toString,Qt=cs.hasOwnProperty,fs=cs.toString,Zg=RegExp("^"+Fl.call(Qt).replace(Rg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dl=Ug?_t.Buffer:void 0,pl=_t.Symbol,ml=_t.Uint8Array,Xg=wn(Object.getPrototypeOf,Object),Qg=Object.create,Yg=cs.propertyIsEnumerable,Jg=Vg.splice,gl=Object.getOwnPropertySymbols,t1=dl?dl.isBuffer:void 0,e1=wn(Object.keys,Object),bn=Ke(_t,"DataView"),hr=Ke(_t,"Map"),yn=Ke(_t,"Promise"),xn=Ke(_t,"Set"),vn=Ke(_t,"WeakMap"),dr=Ke(Object,"create"),r1=he(bn),s1=he(hr),n1=he(yn),i1=he(xn),o1=he(vn),bl=pl?pl.prototype:void 0,yl=bl?bl.valueOf:void 0;function fe(r){var t=-1,e=r?r.length:0;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}function a1(){this.__data__=dr?dr(null):{}}function l1(r){return this.has(r)&&delete this.__data__[r]}function u1(r){var t=this.__data__;if(dr){var e=t[r];return e===xl?void 0:e}return Qt.call(t,r)?t[r]:void 0}function c1(r){var t=this.__data__;return dr?t[r]!==void 0:Qt.call(t,r)}function f1(r,t){var e=this.__data__;return e[r]=dr&&t===void 0?xl:t,this}fe.prototype.clear=a1;fe.prototype.delete=l1;fe.prototype.get=u1;fe.prototype.has=c1;fe.prototype.set=f1;function qt(r){var t=-1,e=r?r.length:0;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}function h1(){this.__data__=[]}function d1(r){var t=this.__data__,e=hs(t,r);if(e<0)return!1;var s=t.length-1;return e==s?t.pop():Jg.call(t,e,1),!0}function p1(r){var t=this.__data__,e=hs(t,r);return e<0?void 0:t[e][1]}function m1(r){return hs(this.__data__,r)>-1}function g1(r,t){var e=this.__data__,s=hs(e,r);return s<0?e.push([r,t]):e[s][1]=t,this}qt.prototype.clear=h1;qt.prototype.delete=d1;qt.prototype.get=p1;qt.prototype.has=m1;qt.prototype.set=g1;function ze(r){var t=-1,e=r?r.length:0;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}function b1(){this.__data__={hash:new fe,map:new(hr||qt),string:new fe}}function y1(r){return ds(this,r).delete(r)}function x1(r){return ds(this,r).get(r)}function v1(r){return ds(this,r).has(r)}function A1(r,t){return ds(this,r).set(r,t),this}ze.prototype.clear=b1;ze.prototype.delete=y1;ze.prototype.get=x1;ze.prototype.has=v1;ze.prototype.set=A1;function $e(r){this.__data__=new qt(r)}function E1(){this.__data__=new qt}function T1(r){return this.__data__.delete(r)}function N1(r){return this.__data__.get(r)}function w1(r){return this.__data__.has(r)}function S1(r,t){var e=this.__data__;if(e instanceof qt){var s=e.__data__;if(!hr||s.length<qg-1)return s.push([r,t]),this;e=this.__data__=new ze(s)}return e.set(r,t),this}$e.prototype.clear=E1;$e.prototype.delete=T1;$e.prototype.get=N1;$e.prototype.has=w1;$e.prototype.set=S1;function L1(r,t){var e=Ln(r)||Q1(r)?Kg(r.length,String):[],s=e.length,n=!!s;for(var i in r)(t||Qt.call(r,i))&&!(n&&(i=="length"||V1(i,s)))&&e.push(i);return e}function Hl(r,t,e){var s=r[t];(!(Qt.call(r,t)&&Gl(s,e))||e===void 0&&!(t in r))&&(r[t]=e)}function hs(r,t){for(var e=r.length;e--;)if(Gl(r[e][0],t))return e;return-1}function O1(r,t){return r&&zl(t,On(t),r)}function An(r,t,e,s,n,i,o){var a;if(s&&(a=i?s(r,n,i,o):s(r)),a!==void 0)return a;if(!ps(r))return r;var l=Ln(r);if(l){if(a=$1(r),!t)return F1(r,a)}else{var u=ce(r),c=u==Tn||u==Tl;if(J1(r))return R1(r,t);if(u==Nn||u==En||c&&!i){if(Ul(r))return i?r:{};if(a=K1(c?{}:r),!t)return H1(r,O1(a,r))}else{if(!S[u])return i?r:{};a=G1(r,u,An,t)}}o||(o=new $e);var f=o.get(r);if(f)return f;if(o.set(r,a),!l)var h=e?z1(r):On(r);return zg(h||r,function(p,m){h&&(m=p,p=r[m]),Hl(a,m,An(p,t,e,s,m,r,o))}),a}function C1(r){return ps(r)?Qg(r):{}}function _1(r,t,e){var s=t(r);return Ln(r)?s:$g(s,e(r))}function q1(r){return fs.call(r)}function I1(r){if(!ps(r)||Z1(r))return!1;var t=Wl(r)||Ul(r)?Zg:Mg;return t.test(he(r))}function k1(r){if(!Kl(r))return e1(r);var t=[];for(var e in Object(r))Qt.call(r,e)&&e!="constructor"&&t.push(e);return t}function R1(r,t){if(t)return r.slice();var e=new r.constructor(r.length);return r.copy(e),e}function Sn(r){var t=new r.constructor(r.byteLength);return new ml(t).set(new ml(r)),t}function B1(r,t){var e=t?Sn(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.byteLength)}function M1(r,t,e){var s=t?e(cl(r),!0):cl(r);return Pl(s,Fg,new r.constructor)}function D1(r){var t=new r.constructor(r.source,Bg.exec(r));return t.lastIndex=r.lastIndex,t}function j1(r,t,e){var s=t?e(fl(r),!0):fl(r);return Pl(s,Hg,new r.constructor)}function P1(r){return yl?Object(yl.call(r)):{}}function U1(r,t){var e=t?Sn(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}function F1(r,t){var e=-1,s=r.length;for(t||(t=Array(s));++e<s;)t[e]=r[e];return t}function zl(r,t,e,s){e||(e={});for(var n=-1,i=t.length;++n<i;){var o=t[n],a=s?s(e[o],r[o],o,e,r):void 0;Hl(e,o,a===void 0?r[o]:a)}return e}function H1(r,t){return zl(r,$l(r),t)}function z1(r){return _1(r,On,$l)}function ds(r,t){var e=r.__data__;return W1(t)?e[typeof t=="string"?"string":"hash"]:e.map}function Ke(r,t){var e=Gg(r,t);return I1(e)?e:void 0}var $l=gl?wn(gl,Object):r0,ce=q1;(bn&&ce(new bn(new ArrayBuffer(1)))!=us||hr&&ce(new hr)!=as||yn&&ce(yn.resolve())!=ll||xn&&ce(new xn)!=ls||vn&&ce(new vn)!=gn)&&(ce=function(r){var t=fs.call(r),e=t==Nn?r.constructor:void 0,s=e?he(e):void 0;if(s)switch(s){case r1:return us;case s1:return as;case n1:return ll;case i1:return ls;case o1:return gn}return t});function $1(r){var t=r.length,e=r.constructor(t);return t&&typeof r[0]=="string"&&Qt.call(r,"index")&&(e.index=r.index,e.input=r.input),e}function K1(r){return typeof r.constructor=="function"&&!Kl(r)?C1(Xg(r)):{}}function G1(r,t,e,s){var n=r.constructor;switch(t){case Ol:return Sn(r);case Al:case El:return new n(+r);case us:return B1(r,s);case Cl:case _l:case ql:case Il:case kl:case Rl:case Bl:case Ml:case Dl:return U1(r,s);case as:return M1(r,s,e);case Nl:case Sl:return new n(r);case wl:return D1(r);case ls:return j1(r,s,e);case Ll:return P1(r)}}function V1(r,t){return t=t??vl,!!t&&(typeof r=="number"||Dg.test(r))&&r>-1&&r%1==0&&r<t}function W1(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function Z1(r){return!!hl&&hl in r}function Kl(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||cs;return r===e}function he(r){if(r!=null){try{return Fl.call(r)}catch{}try{return r+""}catch{}}return""}function X1(r){return An(r,!0,!0)}function Gl(r,t){return r===t||r!==r&&t!==t}function Q1(r){return Y1(r)&&Qt.call(r,"callee")&&(!Yg.call(r,"callee")||fs.call(r)==En)}var Ln=Array.isArray;function Vl(r){return r!=null&&t0(r.length)&&!Wl(r)}function Y1(r){return e0(r)&&Vl(r)}var J1=t1||s0;function Wl(r){var t=ps(r)?fs.call(r):"";return t==Tn||t==Tl}function t0(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=vl}function ps(r){var t=typeof r;return!!r&&(t=="object"||t=="function")}function e0(r){return!!r&&typeof r=="object"}function On(r){return Vl(r)?L1(r):k1(r)}function r0(){return[]}function s0(){return!1}He.exports=X1});var Fn=Ft((pr,Ve)=>{"use strict";var n0=200,Un="__lodash_hash_undefined__",Es=1,ou=2,au=9007199254740991,ms="[object Arguments]",kn="[object Array]",i0="[object AsyncFunction]",lu="[object Boolean]",uu="[object Date]",cu="[object Error]",fu="[object Function]",o0="[object GeneratorFunction]",gs="[object Map]",hu="[object Number]",a0="[object Null]",Ge="[object Object]",Zl="[object Promise]",l0="[object Proxy]",du="[object RegExp]",bs="[object Set]",pu="[object String]",u0="[object Symbol]",c0="[object Undefined]",Rn="[object WeakMap]",mu="[object ArrayBuffer]",ys="[object DataView]",f0="[object Float32Array]",h0="[object Float64Array]",d0="[object Int8Array]",p0="[object Int16Array]",m0="[object Int32Array]",g0="[object Uint8Array]",b0="[object Uint8ClampedArray]",y0="[object Uint16Array]",x0="[object Uint32Array]",v0=/[\\^$.*+?()[\]{}|]/g,A0=/^\[object .+?Constructor\]$/,E0=/^(?:0|[1-9]\d*)$/,C={};C[f0]=C[h0]=C[d0]=C[p0]=C[m0]=C[g0]=C[b0]=C[y0]=C[x0]=!0;C[ms]=C[kn]=C[mu]=C[lu]=C[ys]=C[uu]=C[cu]=C[fu]=C[gs]=C[hu]=C[Ge]=C[du]=C[bs]=C[pu]=C[Rn]=!1;var gu=typeof global=="object"&&global&&global.Object===Object&&global,T0=typeof self=="object"&&self&&self.Object===Object&&self,It=gu||T0||Function("return this")(),bu=typeof pr=="object"&&pr&&!pr.nodeType&&pr,Xl=bu&&typeof Ve=="object"&&Ve&&!Ve.nodeType&&Ve,yu=Xl&&Xl.exports===bu,_n=yu&&gu.process,Ql=function(){try{return _n&&_n.binding&&_n.binding("util")}catch{}}(),Yl=Ql&&Ql.isTypedArray;function N0(r,t){for(var e=-1,s=r==null?0:r.length,n=0,i=[];++e<s;){var o=r[e];t(o,e,r)&&(i[n++]=o)}return i}function w0(r,t){for(var e=-1,s=t.length,n=r.length;++e<s;)r[n+e]=t[e];return r}function S0(r,t){for(var e=-1,s=r==null?0:r.length;++e<s;)if(t(r[e],e,r))return!0;return!1}function L0(r,t){for(var e=-1,s=Array(r);++e<r;)s[e]=t(e);return s}function O0(r){return function(t){return r(t)}}function C0(r,t){return r.has(t)}function _0(r,t){return r?.[t]}function q0(r){var t=-1,e=Array(r.size);return r.forEach(function(s,n){e[++t]=[n,s]}),e}function I0(r,t){return function(e){return r(t(e))}}function k0(r){var t=-1,e=Array(r.size);return r.forEach(function(s){e[++t]=s}),e}var R0=Array.prototype,B0=Function.prototype,Ts=Object.prototype,qn=It["__core-js_shared__"],xu=B0.toString,Et=Ts.hasOwnProperty,Jl=function(){var r=/[^.]+$/.exec(qn&&qn.keys&&qn.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),vu=Ts.toString,M0=RegExp("^"+xu.call(Et).replace(v0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tu=yu?It.Buffer:void 0,xs=It.Symbol,eu=It.Uint8Array,Au=Ts.propertyIsEnumerable,D0=R0.splice,de=xs?xs.toStringTag:void 0,ru=Object.getOwnPropertySymbols,j0=tu?tu.isBuffer:void 0,P0=I0(Object.keys,Object),Bn=We(It,"DataView"),mr=We(It,"Map"),Mn=We(It,"Promise"),Dn=We(It,"Set"),jn=We(It,"WeakMap"),gr=We(Object,"create"),U0=ge(Bn),F0=ge(mr),H0=ge(Mn),z0=ge(Dn),$0=ge(jn),su=xs?xs.prototype:void 0,In=su?su.valueOf:void 0;function pe(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}function K0(){this.__data__=gr?gr(null):{},this.size=0}function G0(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}function V0(r){var t=this.__data__;if(gr){var e=t[r];return e===Un?void 0:e}return Et.call(t,r)?t[r]:void 0}function W0(r){var t=this.__data__;return gr?t[r]!==void 0:Et.call(t,r)}function Z0(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=gr&&t===void 0?Un:t,this}pe.prototype.clear=K0;pe.prototype.delete=G0;pe.prototype.get=V0;pe.prototype.has=W0;pe.prototype.set=Z0;function kt(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}function X0(){this.__data__=[],this.size=0}function Q0(r){var t=this.__data__,e=Ns(t,r);if(e<0)return!1;var s=t.length-1;return e==s?t.pop():D0.call(t,e,1),--this.size,!0}function Y0(r){var t=this.__data__,e=Ns(t,r);return e<0?void 0:t[e][1]}function J0(r){return Ns(this.__data__,r)>-1}function tb(r,t){var e=this.__data__,s=Ns(e,r);return s<0?(++this.size,e.push([r,t])):e[s][1]=t,this}kt.prototype.clear=X0;kt.prototype.delete=Q0;kt.prototype.get=Y0;kt.prototype.has=J0;kt.prototype.set=tb;function me(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}function eb(){this.size=0,this.__data__={hash:new pe,map:new(mr||kt),string:new pe}}function rb(r){var t=ws(this,r).delete(r);return this.size-=t?1:0,t}function sb(r){return ws(this,r).get(r)}function nb(r){return ws(this,r).has(r)}function ib(r,t){var e=ws(this,r),s=e.size;return e.set(r,t),this.size+=e.size==s?0:1,this}me.prototype.clear=eb;me.prototype.delete=rb;me.prototype.get=sb;me.prototype.has=nb;me.prototype.set=ib;function vs(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new me;++t<e;)this.add(r[t])}function ob(r){return this.__data__.set(r,Un),this}function ab(r){return this.__data__.has(r)}vs.prototype.add=vs.prototype.push=ob;vs.prototype.has=ab;function Jt(r){var t=this.__data__=new kt(r);this.size=t.size}function lb(){this.__data__=new kt,this.size=0}function ub(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}function cb(r){return this.__data__.get(r)}function fb(r){return this.__data__.has(r)}function hb(r,t){var e=this.__data__;if(e instanceof kt){var s=e.__data__;if(!mr||s.length<n0-1)return s.push([r,t]),this.size=++e.size,this;e=this.__data__=new me(s)}return e.set(r,t),this.size=e.size,this}Jt.prototype.clear=lb;Jt.prototype.delete=ub;Jt.prototype.get=cb;Jt.prototype.has=fb;Jt.prototype.set=hb;function db(r,t){var e=As(r),s=!e&&Ob(r),n=!e&&!s&&Pn(r),i=!e&&!s&&!n&&Ou(r),o=e||s||n||i,a=o?L0(r.length,String):[],l=a.length;for(var u in r)(t||Et.call(r,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Tb(u,l)))&&a.push(u);return a}function Ns(r,t){for(var e=r.length;e--;)if(Nu(r[e][0],t))return e;return-1}function pb(r,t,e){var s=t(r);return As(r)?s:w0(s,e(r))}function yr(r){return r==null?r===void 0?c0:a0:de&&de in Object(r)?Ab(r):Lb(r)}function nu(r){return br(r)&&yr(r)==ms}function Eu(r,t,e,s,n){return r===t?!0:r==null||t==null||!br(r)&&!br(t)?r!==r&&t!==t:mb(r,t,e,s,Eu,n)}function mb(r,t,e,s,n,i){var o=As(r),a=As(t),l=o?kn:Yt(r),u=a?kn:Yt(t);l=l==ms?Ge:l,u=u==ms?Ge:u;var c=l==Ge,f=u==Ge,h=l==u;if(h&&Pn(r)){if(!Pn(t))return!1;o=!0,c=!1}if(h&&!c)return i||(i=new Jt),o||Ou(r)?Tu(r,t,e,s,n,i):xb(r,t,l,e,s,n,i);if(!(e&Es)){var p=c&&Et.call(r,"__wrapped__"),m=f&&Et.call(t,"__wrapped__");if(p||m){var y=p?r.value():r,v=m?t.value():t;return i||(i=new Jt),n(y,v,e,s,i)}}return h?(i||(i=new Jt),vb(r,t,e,s,n,i)):!1}function gb(r){if(!Lu(r)||wb(r))return!1;var t=wu(r)?M0:A0;return t.test(ge(r))}function bb(r){return br(r)&&Su(r.length)&&!!C[yr(r)]}function yb(r){if(!Sb(r))return P0(r);var t=[];for(var e in Object(r))Et.call(r,e)&&e!="constructor"&&t.push(e);return t}function Tu(r,t,e,s,n,i){var o=e&Es,a=r.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=i.get(r);if(u&&i.get(t))return u==t;var c=-1,f=!0,h=e&ou?new vs:void 0;for(i.set(r,t),i.set(t,r);++c<a;){var p=r[c],m=t[c];if(s)var y=o?s(m,p,c,t,r,i):s(p,m,c,r,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(h){if(!S0(t,function(v,g){if(!C0(h,g)&&(p===v||n(p,v,e,s,i)))return h.push(g)})){f=!1;break}}else if(!(p===m||n(p,m,e,s,i))){f=!1;break}}return i.delete(r),i.delete(t),f}function xb(r,t,e,s,n,i,o){switch(e){case ys:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case mu:return!(r.byteLength!=t.byteLength||!i(new eu(r),new eu(t)));case lu:case uu:case hu:return Nu(+r,+t);case cu:return r.name==t.name&&r.message==t.message;case du:case pu:return r==t+"";case gs:var a=q0;case bs:var l=s&Es;if(a||(a=k0),r.size!=t.size&&!l)return!1;var u=o.get(r);if(u)return u==t;s|=ou,o.set(r,t);var c=Tu(a(r),a(t),s,n,i,o);return o.delete(r),c;case u0:if(In)return In.call(r)==In.call(t)}return!1}function vb(r,t,e,s,n,i){var o=e&Es,a=iu(r),l=a.length,u=iu(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var h=a[f];if(!(o?h in t:Et.call(t,h)))return!1}var p=i.get(r);if(p&&i.get(t))return p==t;var m=!0;i.set(r,t),i.set(t,r);for(var y=o;++f<l;){h=a[f];var v=r[h],g=t[h];if(s)var A=o?s(g,v,h,t,r,i):s(v,g,h,r,t,i);if(!(A===void 0?v===g||n(v,g,e,s,i):A)){m=!1;break}y||(y=h=="constructor")}if(m&&!y){var E=r.constructor,T=t.constructor;E!=T&&"constructor"in r&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof T=="function"&&T instanceof T)&&(m=!1)}return i.delete(r),i.delete(t),m}function iu(r){return pb(r,qb,Eb)}function ws(r,t){var e=r.__data__;return Nb(t)?e[typeof t=="string"?"string":"hash"]:e.map}function We(r,t){var e=_0(r,t);return gb(e)?e:void 0}function Ab(r){var t=Et.call(r,de),e=r[de];try{r[de]=void 0;var s=!0}catch{}var n=vu.call(r);return s&&(t?r[de]=e:delete r[de]),n}var Eb=ru?function(r){return r==null?[]:(r=Object(r),N0(ru(r),function(t){return Au.call(r,t)}))}:Ib,Yt=yr;(Bn&&Yt(new Bn(new ArrayBuffer(1)))!=ys||mr&&Yt(new mr)!=gs||Mn&&Yt(Mn.resolve())!=Zl||Dn&&Yt(new Dn)!=bs||jn&&Yt(new jn)!=Rn)&&(Yt=function(r){var t=yr(r),e=t==Ge?r.constructor:void 0,s=e?ge(e):"";if(s)switch(s){case U0:return ys;case F0:return gs;case H0:return Zl;case z0:return bs;case $0:return Rn}return t});function Tb(r,t){return t=t??au,!!t&&(typeof r=="number"||E0.test(r))&&r>-1&&r%1==0&&r<t}function Nb(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function wb(r){return!!Jl&&Jl in r}function Sb(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Ts;return r===e}function Lb(r){return vu.call(r)}function ge(r){if(r!=null){try{return xu.call(r)}catch{}try{return r+""}catch{}}return""}function Nu(r,t){return r===t||r!==r&&t!==t}var Ob=nu(function(){return arguments}())?nu:function(r){return br(r)&&Et.call(r,"callee")&&!Au.call(r,"callee")},As=Array.isArray;function Cb(r){return r!=null&&Su(r.length)&&!wu(r)}var Pn=j0||kb;function _b(r,t){return Eu(r,t)}function wu(r){if(!Lu(r))return!1;var t=yr(r);return t==fu||t==o0||t==i0||t==l0}function Su(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=au}function Lu(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function br(r){return r!=null&&typeof r=="object"}var Ou=Yl?O0(Yl):bb;function qb(r){return Cb(r)?db(r):yb(r)}function Ib(){return[]}function kb(){return!1}Ve.exports=_b});var Cu=Ft(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});var Rb=Cn(),Bb=Fn(),Hn;(function(r){function t(i={},o={},a=!1){typeof i!="object"&&(i={}),typeof o!="object"&&(o={});let l=Rb(o);a||(l=Object.keys(l).reduce((u,c)=>(l[c]!=null&&(u[c]=l[c]),u),{}));for(let u in i)i[u]!==void 0&&o[u]===void 0&&(l[u]=i[u]);return Object.keys(l).length>0?l:void 0}r.compose=t;function e(i={},o={}){typeof i!="object"&&(i={}),typeof o!="object"&&(o={});let a=Object.keys(i).concat(Object.keys(o)).reduce((l,u)=>(Bb(i[u],o[u])||(l[u]=o[u]===void 0?null:o[u]),l),{});return Object.keys(a).length>0?a:void 0}r.diff=e;function s(i={},o={}){i=i||{};let a=Object.keys(o).reduce((l,u)=>(o[u]!==i[u]&&i[u]!==void 0&&(l[u]=o[u]),l),{});return Object.keys(i).reduce((l,u)=>(i[u]!==o[u]&&o[u]===void 0&&(l[u]=null),l),a)}r.invert=s;function n(i,o,a=!1){if(typeof i!="object")return o;if(typeof o!="object")return;if(!a)return o;let l=Object.keys(o).reduce((u,c)=>(i[c]===void 0&&(u[c]=o[c]),u),{});return Object.keys(l).length>0?l:void 0}r.transform=n})(Hn||(Hn={}));zn.default=Hn});var Gn=Ft(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});var $n;(function(r){function t(e){return typeof e.delete=="number"?e.delete:typeof e.retain=="number"?e.retain:typeof e.retain=="object"&&e.retain!==null?1:typeof e.insert=="string"?e.insert.length:1}r.length=t})($n||($n={}));Kn.default=$n});var qu=Ft(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});var _u=Gn(),Vn=class{constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);let e=this.ops[this.index];if(e){let s=this.offset,n=_u.default.length(e);if(t>=n-s?(t=n-s,this.index+=1,this.offset=0):this.offset+=t,typeof e.delete=="number")return{delete:t};{let i={};return e.attributes&&(i.attributes=e.attributes),typeof e.retain=="number"?i.retain=t:typeof e.retain=="object"&&e.retain!==null?i.retain=e.retain:typeof e.insert=="string"?i.insert=e.insert.substr(s,t):i.insert=e.insert,i}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?_u.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let t=this.ops[this.index];return t?typeof t.delete=="number"?"delete":typeof t.retain=="number"||typeof t.retain=="object"&&t.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{let t=this.offset,e=this.index,s=this.next(),n=this.ops.slice(this.index);return this.offset=t,this.index=e,[s].concat(n)}}else return[]}};Wn.default=Vn});var lt=Ft((Bt,Ls)=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.AttributeMap=Bt.OpIterator=Bt.Op=void 0;var Ss=al(),Mb=Cn(),Zn=Fn(),be=Cu();Bt.AttributeMap=be.default;var Rt=Gn();Bt.Op=Rt.default;var ht=qu();Bt.OpIterator=ht.default;var Db="\0",Iu=(r,t)=>{if(typeof r!="object"||r===null)throw new Error(`cannot retain a ${typeof r}`);if(typeof t!="object"||t===null)throw new Error(`cannot retain a ${typeof t}`);let e=Object.keys(r)[0];if(!e||e!==Object.keys(t)[0])throw new Error(`embed types not matched: ${e} != ${Object.keys(t)[0]}`);return[e,r[e],t[e]]},Mt=class r{constructor(t){Array.isArray(t)?this.ops=t:t!=null&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}static registerEmbed(t,e){this.handlers[t]=e}static unregisterEmbed(t){delete this.handlers[t]}static getHandler(t){let e=this.handlers[t];if(!e)throw new Error(`no handlers for embed type "${t}"`);return e}insert(t,e){let s={};return typeof t=="string"&&t.length===0?this:(s.insert=t,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(s.attributes=e),this.push(s))}delete(t){return t<=0?this:this.push({delete:t})}retain(t,e){if(typeof t=="number"&&t<=0)return this;let s={retain:t};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(s.attributes=e),this.push(s)}push(t){let e=this.ops.length,s=this.ops[e-1];if(t=Mb(t),typeof s=="object"){if(typeof t.delete=="number"&&typeof s.delete=="number")return this.ops[e-1]={delete:s.delete+t.delete},this;if(typeof s.delete=="number"&&t.insert!=null&&(e-=1,s=this.ops[e-1],typeof s!="object"))return this.ops.unshift(t),this;if(Zn(t.attributes,s.attributes)){if(typeof t.insert=="string"&&typeof s.insert=="string")return this.ops[e-1]={insert:s.insert+t.insert},typeof t.attributes=="object"&&(this.ops[e-1].attributes=t.attributes),this;if(typeof t.retain=="number"&&typeof s.retain=="number")return this.ops[e-1]={retain:s.retain+t.retain},typeof t.attributes=="object"&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this}chop(){let t=this.ops[this.ops.length-1];return t&&typeof t.retain=="number"&&!t.attributes&&this.ops.pop(),this}filter(t){return this.ops.filter(t)}forEach(t){this.ops.forEach(t)}map(t){return this.ops.map(t)}partition(t){let e=[],s=[];return this.forEach(n=>{(t(n)?e:s).push(n)}),[e,s]}reduce(t,e){return this.ops.reduce(t,e)}changeLength(){return this.reduce((t,e)=>e.insert?t+Rt.default.length(e):e.delete?t-e.delete:t,0)}length(){return this.reduce((t,e)=>t+Rt.default.length(e),0)}slice(t=0,e=1/0){let s=[],n=new ht.default(this.ops),i=0;for(;i<e&&n.hasNext();){let o;i<t?o=n.next(t-i):(o=n.next(e-i),s.push(o)),i+=Rt.default.length(o)}return new r(s)}compose(t){let e=new ht.default(this.ops),s=new ht.default(t.ops),n=[],i=s.peek();if(i!=null&&typeof i.retain=="number"&&i.attributes==null){let a=i.retain;for(;e.peekType()==="insert"&&e.peekLength()<=a;)a-=e.peekLength(),n.push(e.next());i.retain-a>0&&s.next(i.retain-a)}let o=new r(n);for(;e.hasNext()||s.hasNext();)if(s.peekType()==="insert")o.push(s.next());else if(e.peekType()==="delete")o.push(e.next());else{let a=Math.min(e.peekLength(),s.peekLength()),l=e.next(a),u=s.next(a);if(u.retain){let c={};if(typeof l.retain=="number")c.retain=typeof u.retain=="number"?a:u.retain;else if(typeof u.retain=="number")l.retain==null?c.insert=l.insert:c.retain=l.retain;else{let h=l.retain==null?"insert":"retain",[p,m,y]=Iu(l[h],u.retain),v=r.getHandler(p);c[h]={[p]:v.compose(m,y,h==="retain")}}let f=be.default.compose(l.attributes,u.attributes,typeof l.retain=="number");if(f&&(c.attributes=f),o.push(c),!s.hasNext()&&Zn(o.ops[o.ops.length-1],c)){let h=new r(e.rest());return o.concat(h).chop()}}else typeof u.delete=="number"&&(typeof l.retain=="number"||typeof l.retain=="object"&&l.retain!==null)&&o.push(u)}return o.chop()}concat(t){let e=new r(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e}diff(t,e){if(this.ops===t.ops)return new r;let s=[this,t].map(l=>l.map(u=>{if(u.insert!=null)return typeof u.insert=="string"?u.insert:Db;let c=l===t?"on":"with";throw new Error("diff() called "+c+" non-document")}).join("")),n=new r,i=Ss(s[0],s[1],e,!0),o=new ht.default(this.ops),a=new ht.default(t.ops);return i.forEach(l=>{let u=l[1].length;for(;u>0;){let c=0;switch(l[0]){case Ss.INSERT:c=Math.min(a.peekLength(),u),n.push(a.next(c));break;case Ss.DELETE:c=Math.min(u,o.peekLength()),o.next(c),n.delete(c);break;case Ss.EQUAL:c=Math.min(o.peekLength(),a.peekLength(),u);let f=o.next(c),h=a.next(c);Zn(f.insert,h.insert)?n.retain(c,be.default.diff(f.attributes,h.attributes)):n.push(h).delete(c);break}u-=c}}),n.chop()}eachLine(t,e=`
2
- `){let s=new ht.default(this.ops),n=new r,i=0;for(;s.hasNext();){if(s.peekType()!=="insert")return;let o=s.peek(),a=Rt.default.length(o)-s.peekLength(),l=typeof o.insert=="string"?o.insert.indexOf(e,a)-a:-1;if(l<0)n.push(s.next());else if(l>0)n.push(s.next(l));else{if(t(n,s.next(1).attributes||{},i)===!1)return;i+=1,n=new r}}n.length()>0&&t(n,{},i)}invert(t){let e=new r;return this.reduce((s,n)=>{if(n.insert)e.delete(Rt.default.length(n));else{if(typeof n.retain=="number"&&n.attributes==null)return e.retain(n.retain),s+n.retain;if(n.delete||typeof n.retain=="number"){let i=n.delete||n.retain;return t.slice(s,s+i).forEach(a=>{n.delete?e.push(a):n.retain&&n.attributes&&e.retain(Rt.default.length(a),be.default.invert(n.attributes,a.attributes))}),s+i}else if(typeof n.retain=="object"&&n.retain!==null){let i=t.slice(s,s+1),o=new ht.default(i.ops).next(),[a,l,u]=Iu(n.retain,o.insert),c=r.getHandler(a);return e.retain({[a]:c.invert(l,u)},be.default.invert(n.attributes,o.attributes)),s+1}}return s},0),e.chop()}transform(t,e=!1){if(e=!!e,typeof t=="number")return this.transformPosition(t,e);let s=t,n=new ht.default(this.ops),i=new ht.default(s.ops),o=new r;for(;n.hasNext()||i.hasNext();)if(n.peekType()==="insert"&&(e||i.peekType()!=="insert"))o.retain(Rt.default.length(n.next()));else if(i.peekType()==="insert")o.push(i.next());else{let a=Math.min(n.peekLength(),i.peekLength()),l=n.next(a),u=i.next(a);if(l.delete)continue;if(u.delete)o.push(u);else{let c=l.retain,f=u.retain,h=typeof f=="object"&&f!==null?f:a;if(typeof c=="object"&&c!==null&&typeof f=="object"&&f!==null){let p=Object.keys(c)[0];if(p===Object.keys(f)[0]){let m=r.getHandler(p);m&&(h={[p]:m.transform(c[p],f[p],e)})}}o.retain(h,be.default.transform(l.attributes,u.attributes,e))}}return o.chop()}transformPosition(t,e=!1){e=!!e;let s=new ht.default(this.ops),n=0;for(;s.hasNext()&&n<=t;){let i=s.peekLength(),o=s.peekType();if(s.next(),o==="delete"){t-=Math.min(i,t-n);continue}else o==="insert"&&(n<t||!e)&&(t+=i);n+=i}return t}};Mt.Op=Rt.default;Mt.OpIterator=ht.default;Mt.AttributeMap=be.default;Mt.handlers={};Bt.default=Mt;typeof Ls=="object"&&(Ls.exports=Mt,Ls.exports.default=Mt)});var Bu=Ft((H2,Yn)=>{"use strict";var Hb=Object.prototype.hasOwnProperty,X="~";function xr(){}Object.create&&(xr.prototype=Object.create(null),new xr().__proto__||(X=!1));function zb(r,t,e){this.fn=r,this.context=t,this.once=e||!1}function Ru(r,t,e,s,n){if(typeof e!="function")throw new TypeError("The listener must be a function");var i=new zb(e,s||r,n),o=X?X+t:t;return r._events[o]?r._events[o].fn?r._events[o]=[r._events[o],i]:r._events[o].push(i):(r._events[o]=i,r._eventsCount++),r}function Os(r,t){--r._eventsCount===0?r._events=new xr:delete r._events[t]}function G(){this._events=new xr,this._eventsCount=0}G.prototype.eventNames=function(){var t=[],e,s;if(this._eventsCount===0)return t;for(s in e=this._events)Hb.call(e,s)&&t.push(X?s.slice(1):s);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(e)):t};G.prototype.listeners=function(t){var e=X?X+t:t,s=this._events[e];if(!s)return[];if(s.fn)return[s.fn];for(var n=0,i=s.length,o=new Array(i);n<i;n++)o[n]=s[n].fn;return o};G.prototype.listenerCount=function(t){var e=X?X+t:t,s=this._events[e];return s?s.fn?1:s.length:0};G.prototype.emit=function(t,e,s,n,i,o){var a=X?X+t:t;if(!this._events[a])return!1;var l=this._events[a],u=arguments.length,c,f;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),u){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,s),!0;case 4:return l.fn.call(l.context,e,s,n),!0;case 5:return l.fn.call(l.context,e,s,n,i),!0;case 6:return l.fn.call(l.context,e,s,n,i,o),!0}for(f=1,c=new Array(u-1);f<u;f++)c[f-1]=arguments[f];l.fn.apply(l.context,c)}else{var h=l.length,p;for(f=0;f<h;f++)switch(l[f].once&&this.removeListener(t,l[f].fn,void 0,!0),u){case 1:l[f].fn.call(l[f].context);break;case 2:l[f].fn.call(l[f].context,e);break;case 3:l[f].fn.call(l[f].context,e,s);break;case 4:l[f].fn.call(l[f].context,e,s,n);break;default:if(!c)for(p=1,c=new Array(u-1);p<u;p++)c[p-1]=arguments[p];l[f].fn.apply(l[f].context,c)}}return!0};G.prototype.on=function(t,e,s){return Ru(this,t,e,s,!1)};G.prototype.once=function(t,e,s){return Ru(this,t,e,s,!0)};G.prototype.removeListener=function(t,e,s,n){var i=X?X+t:t;if(!this._events[i])return this;if(!e)return Os(this,i),this;var o=this._events[i];if(o.fn)o.fn===e&&(!n||o.once)&&(!s||o.context===s)&&Os(this,i);else{for(var a=0,l=[],u=o.length;a<u;a++)(o[a].fn!==e||n&&!o[a].once||s&&o[a].context!==s)&&l.push(o[a]);l.length?this._events[i]=l.length===1?l[0]:l:Os(this,i)}return this};G.prototype.removeAllListeners=function(t){var e;return t?(e=X?X+t:t,this._events[e]&&Os(this,e)):(this._events=new xr,this._eventsCount=0),this};G.prototype.off=G.prototype.removeListener;G.prototype.addListener=G.prototype.on;G.prefixed=X;G.EventEmitter=G;typeof Yn<"u"&&(Yn.exports=G)});var Pc=typeof global=="object"&&global&&global.Object===Object&&global,kr=Pc;var Uc=typeof self=="object"&&self&&self.Object===Object&&self,Fc=kr||Uc||Function("return this")(),M=Fc;var Hc=M.Symbol,ct=Hc;var Pi=Object.prototype,zc=Pi.hasOwnProperty,$c=Pi.toString,er=ct?ct.toStringTag:void 0;function Kc(r){var t=zc.call(r,er),e=r[er];try{r[er]=void 0;var s=!0}catch{}var n=$c.call(r);return s&&(t?r[er]=e:delete r[er]),n}var Ui=Kc;var Gc=Object.prototype,Vc=Gc.toString;function Wc(r){return Vc.call(r)}var Fi=Wc;var Zc="[object Null]",Xc="[object Undefined]",Hi=ct?ct.toStringTag:void 0;function Qc(r){return r==null?r===void 0?Xc:Zc:Hi&&Hi in Object(r)?Ui(r):Fi(r)}var gt=Qc;function Yc(r){return r!=null&&typeof r=="object"}var H=Yc;var Jc=Array.isArray,ft=Jc;function tf(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var z=tf;function ef(r){return r}var Rr=ef;var rf="[object AsyncFunction]",sf="[object Function]",nf="[object GeneratorFunction]",of="[object Proxy]";function af(r){if(!z(r))return!1;var t=gt(r);return t==sf||t==nf||t==rf||t==of}var Ae=af;var lf=M["__core-js_shared__"],Br=lf;var zi=function(){var r=/[^.]+$/.exec(Br&&Br.keys&&Br.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function uf(r){return!!zi&&zi in r}var $i=uf;var cf=Function.prototype,ff=cf.toString;function hf(r){if(r!=null){try{return ff.call(r)}catch{}try{return r+""}catch{}}return""}var wt=hf;var df=/[\\^$.*+?()[\]{}|]/g,pf=/^\[object .+?Constructor\]$/,mf=Function.prototype,gf=Object.prototype,bf=mf.toString,yf=gf.hasOwnProperty,xf=RegExp("^"+bf.call(yf).replace(df,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vf(r){if(!z(r)||$i(r))return!1;var t=Ae(r)?xf:pf;return t.test(wt(r))}var Ki=vf;function Af(r,t){return r?.[t]}var Gi=Af;function Ef(r,t){var e=Gi(r,t);return Ki(e)?e:void 0}var J=Ef;var Tf=J(M,"WeakMap"),Mr=Tf;var Vi=Object.create,Nf=function(){function r(){}return function(t){if(!z(t))return{};if(Vi)return Vi(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}}(),Wi=Nf;function wf(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}var Zi=wf;function Sf(r,t){var e=-1,s=r.length;for(t||(t=Array(s));++e<s;)t[e]=r[e];return t}var Dr=Sf;var Lf=800,Of=16,Cf=Date.now;function _f(r){var t=0,e=0;return function(){var s=Cf(),n=Of-(s-e);if(e=s,n>0){if(++t>=Lf)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}var Xi=_f;function qf(r){return function(){return r}}var Qi=qf;var If=function(){try{var r=J(Object,"defineProperty");return r({},"",{}),r}catch{}}(),Ee=If;var kf=Ee?function(r,t){return Ee(r,"toString",{configurable:!0,enumerable:!1,value:Qi(t),writable:!0})}:Rr,Yi=kf;var Rf=Xi(Yi),Ji=Rf;function Bf(r,t){for(var e=-1,s=r==null?0:r.length;++e<s&&t(r[e],e,r)!==!1;);return r}var to=Bf;var Mf=9007199254740991,Df=/^(?:0|[1-9]\d*)$/;function jf(r,t){var e=typeof r;return t=t??Mf,!!t&&(e=="number"||e!="symbol"&&Df.test(r))&&r>-1&&r%1==0&&r<t}var jr=jf;function Pf(r,t,e){t=="__proto__"&&Ee?Ee(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}var Te=Pf;function Uf(r,t){return r===t||r!==r&&t!==t}var yt=Uf;var Ff=Object.prototype,Hf=Ff.hasOwnProperty;function zf(r,t,e){var s=r[t];(!(Hf.call(r,t)&&yt(s,e))||e===void 0&&!(t in r))&&Te(r,t,e)}var Pr=zf;function $f(r,t,e,s){var n=!e;e||(e={});for(var i=-1,o=t.length;++i<o;){var a=t[i],l=s?s(e[a],r[a],a,e,r):void 0;l===void 0&&(l=r[a]),n?Te(e,a,l):Pr(e,a,l)}return e}var xt=$f;var eo=Math.max;function Kf(r,t,e){return t=eo(t===void 0?r.length-1:t,0),function(){for(var s=arguments,n=-1,i=eo(s.length-t,0),o=Array(i);++n<i;)o[n]=s[t+n];n=-1;for(var a=Array(t+1);++n<t;)a[n]=s[n];return a[t]=e(o),Zi(r,this,a)}}var ro=Kf;function Gf(r,t){return Ji(ro(r,t,Rr),r+"")}var so=Gf;var Vf=9007199254740991;function Wf(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Vf}var Ur=Wf;function Zf(r){return r!=null&&Ur(r.length)&&!Ae(r)}var Ht=Zf;function Xf(r,t,e){if(!z(e))return!1;var s=typeof t;return(s=="number"?Ht(e)&&jr(t,e.length):s=="string"&&t in e)?yt(e[t],r):!1}var no=Xf;function Qf(r){return so(function(t,e){var s=-1,n=e.length,i=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(i=r.length>3&&typeof i=="function"?(n--,i):void 0,o&&no(e[0],e[1],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++s<n;){var a=e[s];a&&r(t,a,s,i)}return t})}var io=Qf;var Yf=Object.prototype;function Jf(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Yf;return r===e}var Ne=Jf;function th(r,t){for(var e=-1,s=Array(r);++e<r;)s[e]=t(e);return s}var oo=th;var eh="[object Arguments]";function rh(r){return H(r)&&gt(r)==eh}var Qs=rh;var ao=Object.prototype,sh=ao.hasOwnProperty,nh=ao.propertyIsEnumerable,ih=Qs(function(){return arguments}())?Qs:function(r){return H(r)&&sh.call(r,"callee")&&!nh.call(r,"callee")},rr=ih;function oh(){return!1}var lo=oh;var fo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,uo=fo&&typeof module=="object"&&module&&!module.nodeType&&module,ah=uo&&uo.exports===fo,co=ah?M.Buffer:void 0,lh=co?co.isBuffer:void 0,uh=lh||lo,St=uh;var ch="[object Arguments]",fh="[object Array]",hh="[object Boolean]",dh="[object Date]",ph="[object Error]",mh="[object Function]",gh="[object Map]",bh="[object Number]",yh="[object Object]",xh="[object RegExp]",vh="[object Set]",Ah="[object String]",Eh="[object WeakMap]",Th="[object ArrayBuffer]",Nh="[object DataView]",wh="[object Float32Array]",Sh="[object Float64Array]",Lh="[object Int8Array]",Oh="[object Int16Array]",Ch="[object Int32Array]",_h="[object Uint8Array]",qh="[object Uint8ClampedArray]",Ih="[object Uint16Array]",kh="[object Uint32Array]",O={};O[wh]=O[Sh]=O[Lh]=O[Oh]=O[Ch]=O[_h]=O[qh]=O[Ih]=O[kh]=!0;O[ch]=O[fh]=O[Th]=O[hh]=O[Nh]=O[dh]=O[ph]=O[mh]=O[gh]=O[bh]=O[yh]=O[xh]=O[vh]=O[Ah]=O[Eh]=!1;function Rh(r){return H(r)&&Ur(r.length)&&!!O[gt(r)]}var ho=Rh;function Bh(r){return function(t){return r(t)}}var we=Bh;var po=typeof exports=="object"&&exports&&!exports.nodeType&&exports,sr=po&&typeof module=="object"&&module&&!module.nodeType&&module,Mh=sr&&sr.exports===po,Ys=Mh&&kr.process,Dh=function(){try{var r=sr&&sr.require&&sr.require("util").types;return r||Ys&&Ys.binding&&Ys.binding("util")}catch{}}(),Lt=Dh;var mo=Lt&&Lt.isTypedArray,jh=mo?we(mo):ho,Se=jh;var Ph=Object.prototype,Uh=Ph.hasOwnProperty;function Fh(r,t){var e=ft(r),s=!e&&rr(r),n=!e&&!s&&St(r),i=!e&&!s&&!n&&Se(r),o=e||s||n||i,a=o?oo(r.length,String):[],l=a.length;for(var u in r)(t||Uh.call(r,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||jr(u,l)))&&a.push(u);return a}var Fr=Fh;function Hh(r,t){return function(e){return r(t(e))}}var Hr=Hh;var zh=Hr(Object.keys,Object),go=zh;var $h=Object.prototype,Kh=$h.hasOwnProperty;function Gh(r){if(!Ne(r))return go(r);var t=[];for(var e in Object(r))Kh.call(r,e)&&e!="constructor"&&t.push(e);return t}var bo=Gh;function Vh(r){return Ht(r)?Fr(r):bo(r)}var Le=Vh;function Wh(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var yo=Wh;var Zh=Object.prototype,Xh=Zh.hasOwnProperty;function Qh(r){if(!z(r))return yo(r);var t=Ne(r),e=[];for(var s in r)s=="constructor"&&(t||!Xh.call(r,s))||e.push(s);return e}var xo=Qh;function Yh(r){return Ht(r)?Fr(r,!0):xo(r)}var vt=Yh;var Jh=J(Object,"create"),Ot=Jh;function td(){this.__data__=Ot?Ot(null):{},this.size=0}var vo=td;function ed(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var Ao=ed;var rd="__lodash_hash_undefined__",sd=Object.prototype,nd=sd.hasOwnProperty;function id(r){var t=this.__data__;if(Ot){var e=t[r];return e===rd?void 0:e}return nd.call(t,r)?t[r]:void 0}var Eo=id;var od=Object.prototype,ad=od.hasOwnProperty;function ld(r){var t=this.__data__;return Ot?t[r]!==void 0:ad.call(t,r)}var To=ld;var ud="__lodash_hash_undefined__";function cd(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=Ot&&t===void 0?ud:t,this}var No=cd;function Oe(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}Oe.prototype.clear=vo;Oe.prototype.delete=Ao;Oe.prototype.get=Eo;Oe.prototype.has=To;Oe.prototype.set=No;var Js=Oe;function fd(){this.__data__=[],this.size=0}var wo=fd;function hd(r,t){for(var e=r.length;e--;)if(yt(r[e][0],t))return e;return-1}var zt=hd;var dd=Array.prototype,pd=dd.splice;function md(r){var t=this.__data__,e=zt(t,r);if(e<0)return!1;var s=t.length-1;return e==s?t.pop():pd.call(t,e,1),--this.size,!0}var So=md;function gd(r){var t=this.__data__,e=zt(t,r);return e<0?void 0:t[e][1]}var Lo=gd;function bd(r){return zt(this.__data__,r)>-1}var Oo=bd;function yd(r,t){var e=this.__data__,s=zt(e,r);return s<0?(++this.size,e.push([r,t])):e[s][1]=t,this}var Co=yd;function Ce(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}Ce.prototype.clear=wo;Ce.prototype.delete=So;Ce.prototype.get=Lo;Ce.prototype.has=Oo;Ce.prototype.set=Co;var $t=Ce;var xd=J(M,"Map"),Kt=xd;function vd(){this.size=0,this.__data__={hash:new Js,map:new(Kt||$t),string:new Js}}var _o=vd;function Ad(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}var qo=Ad;function Ed(r,t){var e=r.__data__;return qo(t)?e[typeof t=="string"?"string":"hash"]:e.map}var Gt=Ed;function Td(r){var t=Gt(this,r).delete(r);return this.size-=t?1:0,t}var Io=Td;function Nd(r){return Gt(this,r).get(r)}var ko=Nd;function wd(r){return Gt(this,r).has(r)}var Ro=wd;function Sd(r,t){var e=Gt(this,r),s=e.size;return e.set(r,t),this.size+=e.size==s?0:1,this}var Bo=Sd;function _e(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}_e.prototype.clear=_o;_e.prototype.delete=Io;_e.prototype.get=ko;_e.prototype.has=Ro;_e.prototype.set=Bo;var zr=_e;function Ld(r,t){for(var e=-1,s=t.length,n=r.length;++e<s;)r[n+e]=t[e];return r}var $r=Ld;var Od=Hr(Object.getPrototypeOf,Object),qe=Od;var Cd="[object Object]",_d=Function.prototype,qd=Object.prototype,Mo=_d.toString,Id=qd.hasOwnProperty,kd=Mo.call(Object);function Rd(r){if(!H(r)||gt(r)!=Cd)return!1;var t=qe(r);if(t===null)return!0;var e=Id.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Mo.call(e)==kd}var Do=Rd;function Bd(){this.__data__=new $t,this.size=0}var jo=Bd;function Md(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}var Po=Md;function Dd(r){return this.__data__.get(r)}var Uo=Dd;function jd(r){return this.__data__.has(r)}var Fo=jd;var Pd=200;function Ud(r,t){var e=this.__data__;if(e instanceof $t){var s=e.__data__;if(!Kt||s.length<Pd-1)return s.push([r,t]),this.size=++e.size,this;e=this.__data__=new zr(s)}return e.set(r,t),this.size=e.size,this}var Ho=Ud;function Ie(r){var t=this.__data__=new $t(r);this.size=t.size}Ie.prototype.clear=jo;Ie.prototype.delete=Po;Ie.prototype.get=Uo;Ie.prototype.has=Fo;Ie.prototype.set=Ho;var Vt=Ie;function Fd(r,t){return r&&xt(t,Le(t),r)}var zo=Fd;function Hd(r,t){return r&&xt(t,vt(t),r)}var $o=Hd;var Wo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ko=Wo&&typeof module=="object"&&module&&!module.nodeType&&module,zd=Ko&&Ko.exports===Wo,Go=zd?M.Buffer:void 0,Vo=Go?Go.allocUnsafe:void 0;function $d(r,t){if(t)return r.slice();var e=r.length,s=Vo?Vo(e):new r.constructor(e);return r.copy(s),s}var Kr=$d;function Kd(r,t){for(var e=-1,s=r==null?0:r.length,n=0,i=[];++e<s;){var o=r[e];t(o,e,r)&&(i[n++]=o)}return i}var Zo=Kd;function Gd(){return[]}var Gr=Gd;var Vd=Object.prototype,Wd=Vd.propertyIsEnumerable,Xo=Object.getOwnPropertySymbols,Zd=Xo?function(r){return r==null?[]:(r=Object(r),Zo(Xo(r),function(t){return Wd.call(r,t)}))}:Gr,ke=Zd;function Xd(r,t){return xt(r,ke(r),t)}var Qo=Xd;var Qd=Object.getOwnPropertySymbols,Yd=Qd?function(r){for(var t=[];r;)$r(t,ke(r)),r=qe(r);return t}:Gr,Vr=Yd;function Jd(r,t){return xt(r,Vr(r),t)}var Yo=Jd;function tp(r,t,e){var s=t(r);return ft(r)?s:$r(s,e(r))}var Wr=tp;function ep(r){return Wr(r,Le,ke)}var nr=ep;function rp(r){return Wr(r,vt,Vr)}var Jo=rp;var sp=J(M,"DataView"),Zr=sp;var np=J(M,"Promise"),Xr=np;var ip=J(M,"Set"),Qr=ip;var ta="[object Map]",op="[object Object]",ea="[object Promise]",ra="[object Set]",sa="[object WeakMap]",na="[object DataView]",ap=wt(Zr),lp=wt(Kt),up=wt(Xr),cp=wt(Qr),fp=wt(Mr),ae=gt;(Zr&&ae(new Zr(new ArrayBuffer(1)))!=na||Kt&&ae(new Kt)!=ta||Xr&&ae(Xr.resolve())!=ea||Qr&&ae(new Qr)!=ra||Mr&&ae(new Mr)!=sa)&&(ae=function(r){var t=gt(r),e=t==op?r.constructor:void 0,s=e?wt(e):"";if(s)switch(s){case ap:return na;case lp:return ta;case up:return ea;case cp:return ra;case fp:return sa}return t});var Ct=ae;var hp=Object.prototype,dp=hp.hasOwnProperty;function pp(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&dp.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var ia=pp;var mp=M.Uint8Array,Re=mp;function gp(r){var t=new r.constructor(r.byteLength);return new Re(t).set(new Re(r)),t}var Be=gp;function bp(r,t){var e=t?Be(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.byteLength)}var oa=bp;var yp=/\w*$/;function xp(r){var t=new r.constructor(r.source,yp.exec(r));return t.lastIndex=r.lastIndex,t}var aa=xp;var la=ct?ct.prototype:void 0,ua=la?la.valueOf:void 0;function vp(r){return ua?Object(ua.call(r)):{}}var ca=vp;function Ap(r,t){var e=t?Be(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var Yr=Ap;var Ep="[object Boolean]",Tp="[object Date]",Np="[object Map]",wp="[object Number]",Sp="[object RegExp]",Lp="[object Set]",Op="[object String]",Cp="[object Symbol]",_p="[object ArrayBuffer]",qp="[object DataView]",Ip="[object Float32Array]",kp="[object Float64Array]",Rp="[object Int8Array]",Bp="[object Int16Array]",Mp="[object Int32Array]",Dp="[object Uint8Array]",jp="[object Uint8ClampedArray]",Pp="[object Uint16Array]",Up="[object Uint32Array]";function Fp(r,t,e){var s=r.constructor;switch(t){case _p:return Be(r);case Ep:case Tp:return new s(+r);case qp:return oa(r,e);case Ip:case kp:case Rp:case Bp:case Mp:case Dp:case jp:case Pp:case Up:return Yr(r,e);case Np:return new s;case wp:case Op:return new s(r);case Sp:return aa(r);case Lp:return new s;case Cp:return ca(r)}}var fa=Fp;function Hp(r){return typeof r.constructor=="function"&&!Ne(r)?Wi(qe(r)):{}}var Jr=Hp;var zp="[object Map]";function $p(r){return H(r)&&Ct(r)==zp}var ha=$p;var da=Lt&&Lt.isMap,Kp=da?we(da):ha,pa=Kp;var Gp="[object Set]";function Vp(r){return H(r)&&Ct(r)==Gp}var ma=Vp;var ga=Lt&&Lt.isSet,Wp=ga?we(ga):ma,ba=Wp;var Zp=1,Xp=2,Qp=4,ya="[object Arguments]",Yp="[object Array]",Jp="[object Boolean]",tm="[object Date]",em="[object Error]",xa="[object Function]",rm="[object GeneratorFunction]",sm="[object Map]",nm="[object Number]",va="[object Object]",im="[object RegExp]",om="[object Set]",am="[object String]",lm="[object Symbol]",um="[object WeakMap]",cm="[object ArrayBuffer]",fm="[object DataView]",hm="[object Float32Array]",dm="[object Float64Array]",pm="[object Int8Array]",mm="[object Int16Array]",gm="[object Int32Array]",bm="[object Uint8Array]",ym="[object Uint8ClampedArray]",xm="[object Uint16Array]",vm="[object Uint32Array]",w={};w[ya]=w[Yp]=w[cm]=w[fm]=w[Jp]=w[tm]=w[hm]=w[dm]=w[pm]=w[mm]=w[gm]=w[sm]=w[nm]=w[va]=w[im]=w[om]=w[am]=w[lm]=w[bm]=w[ym]=w[xm]=w[vm]=!0;w[em]=w[xa]=w[um]=!1;function ts(r,t,e,s,n,i){var o,a=t&Zp,l=t&Xp,u=t&Qp;if(e&&(o=n?e(r,s,n,i):e(r)),o!==void 0)return o;if(!z(r))return r;var c=ft(r);if(c){if(o=ia(r),!a)return Dr(r,o)}else{var f=Ct(r),h=f==xa||f==rm;if(St(r))return Kr(r,a);if(f==va||f==ya||h&&!n){if(o=l||h?{}:Jr(r),!a)return l?Yo(r,$o(o,r)):Qo(r,zo(o,r))}else{if(!w[f])return n?r:{};o=fa(r,f,a)}}i||(i=new Vt);var p=i.get(r);if(p)return p;i.set(r,o),ba(r)?r.forEach(function(v){o.add(ts(v,t,e,v,r,i))}):pa(r)&&r.forEach(function(v,g){o.set(g,ts(v,t,e,g,r,i))});var m=u?l?Jo:nr:l?vt:Le,y=c?void 0:m(r);return to(y||r,function(v,g){y&&(g=v,v=r[g]),Pr(o,g,ts(v,t,e,g,r,i))}),o}var Aa=ts;var Am=1,Em=4;function Tm(r){return Aa(r,Am|Em)}var At=Tm;var Nm="__lodash_hash_undefined__";function wm(r){return this.__data__.set(r,Nm),this}var Ea=wm;function Sm(r){return this.__data__.has(r)}var Ta=Sm;function es(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new zr;++t<e;)this.add(r[t])}es.prototype.add=es.prototype.push=Ea;es.prototype.has=Ta;var Na=es;function Lm(r,t){for(var e=-1,s=r==null?0:r.length;++e<s;)if(t(r[e],e,r))return!0;return!1}var wa=Lm;function Om(r,t){return r.has(t)}var Sa=Om;var Cm=1,_m=2;function qm(r,t,e,s,n,i){var o=e&Cm,a=r.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=i.get(r),c=i.get(t);if(u&&c)return u==t&&c==r;var f=-1,h=!0,p=e&_m?new Na:void 0;for(i.set(r,t),i.set(t,r);++f<a;){var m=r[f],y=t[f];if(s)var v=o?s(y,m,f,t,r,i):s(m,y,f,r,t,i);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!wa(t,function(g,A){if(!Sa(p,A)&&(m===g||n(m,g,e,s,i)))return p.push(A)})){h=!1;break}}else if(!(m===y||n(m,y,e,s,i))){h=!1;break}}return i.delete(r),i.delete(t),h}var rs=qm;function Im(r){var t=-1,e=Array(r.size);return r.forEach(function(s,n){e[++t]=[n,s]}),e}var La=Im;function km(r){var t=-1,e=Array(r.size);return r.forEach(function(s){e[++t]=s}),e}var Oa=km;var Rm=1,Bm=2,Mm="[object Boolean]",Dm="[object Date]",jm="[object Error]",Pm="[object Map]",Um="[object Number]",Fm="[object RegExp]",Hm="[object Set]",zm="[object String]",$m="[object Symbol]",Km="[object ArrayBuffer]",Gm="[object DataView]",Ca=ct?ct.prototype:void 0,tn=Ca?Ca.valueOf:void 0;function Vm(r,t,e,s,n,i,o){switch(e){case Gm:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Km:return!(r.byteLength!=t.byteLength||!i(new Re(r),new Re(t)));case Mm:case Dm:case Um:return yt(+r,+t);case jm:return r.name==t.name&&r.message==t.message;case Fm:case zm:return r==t+"";case Pm:var a=La;case Hm:var l=s&Rm;if(a||(a=Oa),r.size!=t.size&&!l)return!1;var u=o.get(r);if(u)return u==t;s|=Bm,o.set(r,t);var c=rs(a(r),a(t),s,n,i,o);return o.delete(r),c;case $m:if(tn)return tn.call(r)==tn.call(t)}return!1}var _a=Vm;var Wm=1,Zm=Object.prototype,Xm=Zm.hasOwnProperty;function Qm(r,t,e,s,n,i){var o=e&Wm,a=nr(r),l=a.length,u=nr(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var h=a[f];if(!(o?h in t:Xm.call(t,h)))return!1}var p=i.get(r),m=i.get(t);if(p&&m)return p==t&&m==r;var y=!0;i.set(r,t),i.set(t,r);for(var v=o;++f<l;){h=a[f];var g=r[h],A=t[h];if(s)var E=o?s(A,g,h,t,r,i):s(g,A,h,r,t,i);if(!(E===void 0?g===A||n(g,A,e,s,i):E)){y=!1;break}v||(v=h=="constructor")}if(y&&!v){var T=r.constructor,N=t.constructor;T!=N&&"constructor"in r&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof N=="function"&&N instanceof N)&&(y=!1)}return i.delete(r),i.delete(t),y}var qa=Qm;var Ym=1,Ia="[object Arguments]",ka="[object Array]",ss="[object Object]",Jm=Object.prototype,Ra=Jm.hasOwnProperty;function tg(r,t,e,s,n,i){var o=ft(r),a=ft(t),l=o?ka:Ct(r),u=a?ka:Ct(t);l=l==Ia?ss:l,u=u==Ia?ss:u;var c=l==ss,f=u==ss,h=l==u;if(h&&St(r)){if(!St(t))return!1;o=!0,c=!1}if(h&&!c)return i||(i=new Vt),o||Se(r)?rs(r,t,e,s,n,i):_a(r,t,l,e,s,n,i);if(!(e&Ym)){var p=c&&Ra.call(r,"__wrapped__"),m=f&&Ra.call(t,"__wrapped__");if(p||m){var y=p?r.value():r,v=m?t.value():t;return i||(i=new Vt),n(y,v,e,s,i)}}return h?(i||(i=new Vt),qa(r,t,e,s,n,i)):!1}var Ba=tg;function Ma(r,t,e,s,n){return r===t?!0:r==null||t==null||!H(r)&&!H(t)?r!==r&&t!==t:Ba(r,t,e,s,Ma,n)}var Da=Ma;function eg(r){return function(t,e,s){for(var n=-1,i=Object(t),o=s(t),a=o.length;a--;){var l=o[r?a:++n];if(e(i[l],l,i)===!1)break}return t}}var ja=eg;var rg=ja(),Pa=rg;function sg(r,t,e){(e!==void 0&&!yt(r[t],e)||e===void 0&&!(t in r))&&Te(r,t,e)}var ir=sg;function ng(r){return H(r)&&Ht(r)}var Ua=ng;function ig(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}var or=ig;function og(r){return xt(r,vt(r))}var Fa=og;function ag(r,t,e,s,n,i,o){var a=or(r,e),l=or(t,e),u=o.get(l);if(u){ir(r,e,u);return}var c=i?i(a,l,e+"",r,t,o):void 0,f=c===void 0;if(f){var h=ft(l),p=!h&&St(l),m=!h&&!p&&Se(l);c=l,h||p||m?ft(a)?c=a:Ua(a)?c=Dr(a):p?(f=!1,c=Kr(l,!0)):m?(f=!1,c=Yr(l,!0)):c=[]:Do(l)||rr(l)?(c=a,rr(a)?c=Fa(a):(!z(a)||Ae(a))&&(c=Jr(l))):f=!1}f&&(o.set(l,c),n(c,l,s,i,o),o.delete(l)),ir(r,e,c)}var Ha=ag;function za(r,t,e,s,n){r!==t&&Pa(t,function(i,o){if(n||(n=new Vt),z(i))Ha(r,t,o,e,za,s,n);else{var a=s?s(or(r,o),i,o+"",r,t,n):void 0;a===void 0&&(a=i),ir(r,o,a)}},vt)}var $a=za;function lg(r,t){return Da(r,t)}var le=lg;var ug=io(function(r,t,e){$a(r,t,e)}),tt=ug;var ur={};jc(ur,{Attributor:()=>W,AttributorStore:()=>ar,BlockBlot:()=>ue,ClassAttributor:()=>D,ContainerBlot:()=>Ue,EmbedBlot:()=>q,InlineBlot:()=>ns,LeafBlot:()=>j,ParentBlot:()=>et,Registry:()=>Xt,Scope:()=>b,ScrollBlot:()=>lr,StyleAttributor:()=>rt,TextBlot:()=>Fe});var b=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(b||{}),W=class{constructor(t,e,s={}){this.attrName=t,this.keyName=e;let n=b.TYPE&b.ATTRIBUTE;this.scope=s.scope!=null?s.scope&b.LEVEL|n:b.ATTRIBUTE,s.whitelist!=null&&(this.whitelist=s.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){let e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}},Zt=class extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}},cg=(()=>{let r=class rn{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,s=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(s){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,s)}return null}create(e,s,n){let i=this.query(s);if(i==null)throw new Zt(`Unable to create ${s} blot`);let o=i,a=s instanceof Node||s.nodeType===Node.TEXT_NODE?s:o.create(n),l=new o(e,a,n);return rn.blots.set(l.domNode,l),l}find(e,s=!1){return rn.find(e,s)}query(e,s=b.ANY){let n;return typeof e=="string"?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:typeof e=="number"?e&b.LEVEL&b.BLOCK?n=this.types.block:e&b.LEVEL&b.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(n=this.classes[i],!!n)),n=n||this.tags[e.tagName]),n==null?null:"scope"in n&&s&b.LEVEL&n.scope&&s&b.TYPE&n.scope?n:null}register(...e){return e.map(s=>{let n="blotName"in s,i="attrName"in s;if(!n&&!i)throw new Zt("Invalid definition");if(n&&s.blotName==="abstract")throw new Zt("Cannot register abstract class");let o=n?s.blotName:i?s.attrName:void 0;return this.types[o]=s,i?typeof s.keyName=="string"&&(this.attributes[s.keyName]=s):n&&(s.className&&(this.classes[s.className]=s),s.tagName&&(Array.isArray(s.tagName)?s.tagName=s.tagName.map(a=>a.toUpperCase()):s.tagName=s.tagName.toUpperCase(),(Array.isArray(s.tagName)?s.tagName:[s.tagName]).forEach(a=>{(this.tags[a]==null||s.className==null)&&(this.tags[a]=s)}))),s})}};return r.blots=new WeakMap,r})(),Xt=cg;function Ka(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}var sn=class extends W{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){Ka(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){let e=(Ka(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}},D=sn;function en(r){let t=r.split("-"),e=t.slice(1).map(s=>s[0].toUpperCase()+s.slice(1)).join("");return t[0]+e}var nn=class extends W{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[en(this.keyName)]=e,!0):!1}remove(t){t.style[en(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){let e=t.style[en(this.keyName)];return this.canAdd(t,e)?e:""}},rt=nn,on=class{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};let t=Xt.find(this.domNode);if(t==null)return;let e=W.keys(this.domNode),s=D.keys(this.domNode),n=rt.keys(this.domNode);e.concat(s).concat(n).forEach(i=>{let o=t.scroll.query(i,b.ATTRIBUTE);o instanceof W&&(this.attributes[o.attrName]=o)})}copy(t){Object.keys(this.attributes).forEach(e=>{let s=this.attributes[e].value(this.domNode);t.format(e,s)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}},ar=on,Va=class{constructor(t,e){this.scroll=t,this.domNode=e,Xt.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new Zt("Blot definition missing tagName");let e,s;return Array.isArray(this.tagName)?(typeof t=="string"?(s=t.toUpperCase(),parseInt(s,10).toString()===s&&(s=parseInt(s,10))):typeof t=="number"&&(s=t),typeof s=="number"?e=document.createElement(this.tagName[s-1]):s&&this.tagName.indexOf(s)>-1?e=document.createElement(s):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){let t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),Xt.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,s,n){let i=this.isolate(t,e);if(this.scroll.query(s,b.BLOT)!=null&&n)i.wrap(s,n);else if(this.scroll.query(s,b.ATTRIBUTE)!=null){let o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(s,n)}}insertAt(t,e,s){let n=s==null?this.scroll.create("text",e):this.scroll.create(e,s),i=this.split(t);this.parent.insertBefore(n,i||void 0)}isolate(t,e){let s=this.split(t);if(s==null)throw new Error("Attempt to isolate at end");return s.split(e),s}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){let s=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(s,this.next||void 0),this.remove()),s}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){let s=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(s,this.next||void 0),typeof s.appendChild!="function")throw new Zt(`Cannot wrap ${t}`);return s.appendChild(this),s}};Va.blotName="abstract";var Wa=Va,Za=class extends Wa{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let s=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(s+=1),[this.parent.domNode,s]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Za.scope=b.INLINE_BLOT;var fg=Za,j=fg,an=class{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){let e=t.slice(1);this.append(...e)}}at(t){let e=this.iterator(),s=e();for(;s&&t>0;)t-=1,s=e();return s}contains(t){let e=this.iterator(),s=e();for(;s;){if(s===t)return!0;s=e()}return!1}indexOf(t){let e=this.iterator(),s=e(),n=0;for(;s;){if(s===t)return n;n+=1,s=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,s=this.head;for(;s!=null;){if(s===t)return e;e+=s.length(),s=s.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{let e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){let s=this.iterator(),n=s();for(;n;){let i=n.length();if(t<i||e&&t===i&&(n.next==null||n.next.length()!==0))return[n,t];t-=i,n=s()}return[null,0]}forEach(t){let e=this.iterator(),s=e();for(;s;)t(s),s=e()}forEachAt(t,e,s){if(e<=0)return;let[n,i]=this.find(t),o=t-i,a=this.iterator(n),l=a();for(;l&&o<t+e;){let u=l.length();t>o?s(l,t-o,Math.min(e,o+u-t)):s(l,0,Math.min(u,t+e-o)),o+=u,l=a()}}map(t){return this.reduce((e,s)=>(e.push(t(s)),e),[])}reduce(t,e){let s=this.iterator(),n=s();for(;n;)e=t(e,n),n=s();return e}};function Ga(r,t){let e=t.find(r);if(e)return e;try{return t.create(r)}catch{let s=t.create(b.INLINE);return Array.from(r.childNodes).forEach(n=>{s.domNode.appendChild(n)}),r.parentNode&&r.parentNode.replaceChild(s.domNode,r),s.attach(),s}}var hg=(()=>{let r=class Wt extends Wa{constructor(e,s){super(e,s),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,Wt.uiClass&&this.uiNode.classList.add(Wt.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new an,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{let s=Ga(e,this.scroll);this.insertBefore(s,this.children.head||void 0)}catch(s){if(s instanceof Zt)return;throw s}})}deleteAt(e,s){if(e===0&&s===this.length())return this.remove();this.children.forEachAt(e,s,(n,i,o)=>{n.deleteAt(i,o)})}descendant(e,s=0){let[n,i]=this.children.find(s);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,i]:n instanceof Wt?n.descendant(e,i):[null,-1]}descendants(e,s=0,n=Number.MAX_VALUE){let i=[],o=n;return this.children.forEachAt(s,n,(a,l,u)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&i.push(a),a instanceof Wt&&(i=i.concat(a.descendants(e,l,o))),o-=u}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(s=>{e||this.statics.allowedChildren.some(n=>s instanceof n)||(s.statics.scope===b.BLOCK_BLOT?(s.next!=null&&this.splitAfter(s),s.prev!=null&&this.splitAfter(s.prev),s.parent.unwrap(),e=!0):s instanceof Wt?s.unwrap():s.remove())})}formatAt(e,s,n,i){this.children.forEachAt(e,s,(o,a,l)=>{o.formatAt(a,l,n,i)})}insertAt(e,s,n){let[i,o]=this.children.find(e);if(i)i.insertAt(o,s,n);else{let a=n==null?this.scroll.create("text",s):this.scroll.create(s,n);this.appendChild(a)}}insertBefore(e,s){e.parent!=null&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,s||null),e.parent=this,s!=null&&(n=s.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,s)=>e+s.length(),0)}moveChildren(e,s){this.children.forEach(n=>{e.insertBefore(n,s)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){let s=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(s)}else this.remove()}path(e,s=!1){let[n,i]=this.children.find(e,s),o=[[this,e]];return n instanceof Wt?o.concat(n.path(i,s)):(n!=null&&o.push([n,i]),o)}removeChild(e){this.children.remove(e)}replaceWith(e,s){let n=typeof e=="string"?this.scroll.create(e,s):e;return n instanceof Wt&&this.moveChildren(n),super.replaceWith(n)}split(e,s=!1){if(!s){if(e===0)return this;if(e===this.length())return this.next}let n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(i,o,a)=>{let l=i.split(o,s);l!=null&&n.appendChild(l)}),n}splitAfter(e){let s=this.clone();for(;e.next!=null;)s.appendChild(e.next);return this.parent&&this.parent.insertBefore(s,this.next||void 0),s}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,s){let n=[],i=[];e.forEach(o=>{o.target===this.domNode&&o.type==="childList"&&(n.push(...o.addedNodes),i.push(...o.removedNodes))}),i.forEach(o=>{if(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;let a=this.scroll.find(o);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),n.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,a)=>o===a?0:o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let a=null;o.nextSibling!=null&&(a=this.scroll.find(o.nextSibling));let l=Ga(o,this.scroll);(l.next!==a||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,a||void 0))}),this.enforceAllowedChildren()}};return r.uiClass="",r})(),dg=hg,et=dg;function pg(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(let e in r)if(r[e]!==t[e])return!1;return!0}var Me=class De extends et{static create(t){return super.create(t)}static formats(t,e){let s=e.query(De.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new ar(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(s=>{s instanceof De||(s=s.wrap(De.blotName,!0)),this.attributes.copy(s)}),this.unwrap();else{let s=this.scroll.query(t,b.INLINE);if(s==null)return;s instanceof W?this.attributes.attribute(s,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){let t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,n){this.formats()[s]!=null||this.scroll.query(s,b.ATTRIBUTE)?this.isolate(t,e).format(s,n):super.formatAt(t,e,s,n)}optimize(t){super.optimize(t);let e=this.formats();if(Object.keys(e).length===0)return this.unwrap();let s=this.next;s instanceof De&&s.prev===this&&pg(e,s.formats())&&(s.moveChildren(this),s.remove())}replaceWith(t,e){let s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}wrap(t,e){let s=super.wrap(t,e);return s instanceof De&&this.attributes.move(s),s}};Me.allowedChildren=[Me,j],Me.blotName="inline",Me.scope=b.INLINE_BLOT,Me.tagName="SPAN";var mg=Me,ns=mg,je=class ln extends et{static create(t){return super.create(t)}static formats(t,e){let s=e.query(ln.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new ar(this.domNode)}format(t,e){let s=this.scroll.query(t,b.BLOCK);s!=null&&(s instanceof W?this.attributes.attribute(s,e):t===this.statics.blotName&&!e?this.replaceWith(ln.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){let t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,n){this.scroll.query(s,b.BLOCK)!=null?this.format(s,n):super.formatAt(t,e,s,n)}insertAt(t,e,s){if(s==null||this.scroll.query(e,b.INLINE)!=null)super.insertAt(t,e,s);else{let n=this.split(t);if(n!=null){let i=this.scroll.create(e,s);n.parent.insertBefore(i,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){let s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}};je.blotName="block",je.scope=b.BLOCK_BLOT,je.tagName="P",je.allowedChildren=[ns,je,j];var gg=je,ue=gg,un=class extends et{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,s,n){super.formatAt(t,e,s,n),this.enforceAllowedChildren()}insertAt(t,e,s){super.insertAt(t,e,s),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};un.blotName="container",un.scope=b.BLOCK_BLOT;var bg=un,Ue=bg,cn=class extends j{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,s,n){t===0&&e===this.length()?this.format(s,n):super.formatAt(t,e,s,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}},q=cn,yg={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},xg=100,Pe=class extends et{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(s=>{this.update(s)}),this.observer.observe(this.domNode,yg),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){let s=this.registry.find(t,e);return s?s.scroll===this?s:e?this.find(s.scroll.domNode.parentNode,!0):null:null}query(t,e=b.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach(s=>{s.remove()}):super.deleteAt(t,e)}formatAt(t,e,s,n){this.update(),super.formatAt(t,e,s,n)}insertAt(t,e,s){this.update(),super.insertAt(t,e,s)}optimize(t=[],e={}){super.optimize(e);let s=e.mutationsMap||new WeakMap,n=Array.from(this.observer.takeRecords());for(;n.length>0;)t.push(n.pop());let i=(l,u=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(s.has(l.domNode)||s.set(l.domNode,[]),u&&i(l.parent))},o=l=>{s.has(l.domNode)&&(l instanceof et&&l.children.forEach(o),s.delete(l.domNode),l.optimize(e))},a=t;for(let l=0;a.length>0;l+=1){if(l>=xg)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(u=>{let c=this.find(u.target,!0);c!=null&&(c.domNode===u.target&&(u.type==="childList"?(i(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(f=>{let h=this.find(f,!1);i(h,!1),h instanceof et&&h.children.forEach(p=>{i(p,!1)})})):u.type==="attributes"&&i(c.prev)),i(c))}),this.children.forEach(o),a=Array.from(this.observer.takeRecords()),n=a.slice();n.length>0;)t.push(n.pop())}}update(t,e={}){t=t||this.observer.takeRecords();let s=new WeakMap;t.map(n=>{let i=this.find(n.target,!0);return i==null?null:s.has(i.domNode)?(s.get(i.domNode).push(n),null):(s.set(i.domNode,[n]),i)}).forEach(n=>{n!=null&&n!==this&&s.has(n.domNode)&&n.update(s.get(n.domNode)||[],e)}),e.mutationsMap=s,s.has(this.domNode)&&super.update(s.get(this.domNode),e),this.optimize(t,e)}};Pe.blotName="scroll",Pe.defaultChild=ue,Pe.allowedChildren=[ue,Ue],Pe.scope=b.BLOCK_BLOT,Pe.tagName="DIV";var vg=Pe,lr=vg,fn=class Xa extends j{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,s){s==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,s)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Xa&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}let s=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(s,this.next||void 0),this.text=this.statics.value(this.domNode),s}update(t,e){t.some(s=>s.type==="characterData"&&s.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};fn.blotName="text",fn.scope=b.INLINE_BLOT;var Ag=fn,Fe=Ag;var ee=ot(lt(),1);var I=ot(lt(),1);var Xn=ot(lt(),1);var jb=(()=>{class r extends q{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}return r.blotName="break",r.tagName="BR",r})(),$=jb;var R=class extends Fe{},Pb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ye(r){return r.replace(/[&<>"']/g,t=>Pb[t])}var Ub=(()=>{class r extends ns{static allowedChildren=[r,$,q,R];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(e,s){let n=r.order.indexOf(e),i=r.order.indexOf(s);return n>=0||i>=0?n-i:e===s?0:e<s?-1:1}formatAt(e,s,n,i){if(r.compare(this.statics.blotName,n)<0&&this.scroll.query(n,b.BLOT)){let o=this.isolate(e,s);i&&o.wrap(n,i)}else super.formatAt(e,s,n,i)}optimize(e){if(super.optimize(e),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){let s=this.parent.isolate(this.offset(),this.length());this.moveChildren(s),s.wrap(this)}}}return r})(),K=Ub;var ku=1,B=(()=>{class r extends ue{cache={};delta(){return this.cache.delta==null&&(this.cache.delta=Qn(this)),this.cache.delta}deleteAt(e,s){super.deleteAt(e,s),this.cache={}}formatAt(e,s,n,i){s<=0||(this.scroll.query(n,b.BLOCK)?e+s===this.length()&&this.format(n,i):super.formatAt(e,Math.min(s,this.length()-e-1),n,i),this.cache={})}insertAt(e,s,n){if(n!=null){super.insertAt(e,s,n),this.cache={};return}if(s.length===0)return;let i=s.split(`
1
+ import{a as L,b as Ut,c as Xs,d as Ft,e as jc,f as ot}from"./chunk-GAL4ENT6.js";var al=Ft((A2,ol)=>{"use strict";var at=-1,Z=1,P=0;function cr(r,t,e,s,n){if(r===t)return r?[[P,r]]:[];if(e!=null){var i=_g(r,t,e);if(i)return i}var o=dn(r,t),a=r.substring(0,o);r=r.substring(o),t=t.substring(o),o=is(r,t);var l=r.substring(r.length-o);r=r.substring(0,r.length-o),t=t.substring(0,t.length-o);var u=Eg(r,t);return a&&u.unshift([P,a]),l&&u.push([P,l]),pn(u,n),s&&wg(u),u}function Eg(r,t){var e;if(!r)return[[Z,t]];if(!t)return[[at,r]];var s=r.length>t.length?r:t,n=r.length>t.length?t:r,i=s.indexOf(n);if(i!==-1)return e=[[Z,s.substring(0,i)],[P,n],[Z,s.substring(i+n.length)]],r.length>t.length&&(e[0][0]=e[2][0]=at),e;if(n.length===1)return[[at,r],[Z,t]];var o=Ng(r,t);if(o){var a=o[0],l=o[1],u=o[2],c=o[3],f=o[4],h=cr(a,u),p=cr(l,c);return h.concat([[P,f]],p)}return Tg(r,t)}function Tg(r,t){for(var e=r.length,s=t.length,n=Math.ceil((e+s)/2),i=n,o=2*n,a=new Array(o),l=new Array(o),u=0;u<o;u++)a[u]=-1,l[u]=-1;a[i+1]=0,l[i+1]=0;for(var c=e-s,f=c%2!==0,h=0,p=0,m=0,y=0,v=0;v<n;v++){for(var g=-v+h;g<=v-p;g+=2){var A=i+g,E;g===-v||g!==v&&a[A-1]<a[A+1]?E=a[A+1]:E=a[A-1]+1;for(var T=E-g;E<e&&T<s&&r.charAt(E)===t.charAt(T);)E++,T++;if(a[A]=E,E>e)p+=2;else if(T>s)h+=2;else if(f){var N=i+c-g;if(N>=0&&N<o&&l[N]!==-1){var _=e-l[N];if(E>=_)return Qa(r,t,E,T)}}}for(var Y=-v+m;Y<=v-y;Y+=2){var N=i+Y,_;Y===-v||Y!==v&&l[N-1]<l[N+1]?_=l[N+1]:_=l[N-1]+1;for(var mt=_-Y;_<e&&mt<s&&r.charAt(e-_-1)===t.charAt(s-mt-1);)_++,mt++;if(l[N]=_,_>e)y+=2;else if(mt>s)m+=2;else if(!f){var A=i+c-Y;if(A>=0&&A<o&&a[A]!==-1){var E=a[A],T=i+E-A;if(_=e-_,E>=_)return Qa(r,t,E,T)}}}}return[[at,r],[Z,t]]}function Qa(r,t,e,s){var n=r.substring(0,e),i=t.substring(0,s),o=r.substring(e),a=t.substring(s),l=cr(n,i),u=cr(o,a);return l.concat(u)}function dn(r,t){if(!r||!t||r.charAt(0)!==t.charAt(0))return 0;for(var e=0,s=Math.min(r.length,t.length),n=s,i=0;e<n;)r.substring(i,n)==t.substring(i,n)?(e=n,i=e):s=n,n=Math.floor((s-e)/2+e);return rl(r.charCodeAt(n-1))&&n--,n}function Ya(r,t){var e=r.length,s=t.length;if(e==0||s==0)return 0;e>s?r=r.substring(e-s):e<s&&(t=t.substring(0,e));var n=Math.min(e,s);if(r==t)return n;for(var i=0,o=1;;){var a=r.substring(n-o),l=t.indexOf(a);if(l==-1)return i;o+=l,(l==0||r.substring(n-o)==t.substring(0,o))&&(i=o,o++)}}function is(r,t){if(!r||!t||r.slice(-1)!==t.slice(-1))return 0;for(var e=0,s=Math.min(r.length,t.length),n=s,i=0;e<n;)r.substring(r.length-n,r.length-i)==t.substring(t.length-n,t.length-i)?(e=n,i=e):s=n,n=Math.floor((s-e)/2+e);return sl(r.charCodeAt(r.length-n))&&n--,n}function Ng(r,t){var e=r.length>t.length?r:t,s=r.length>t.length?t:r;if(e.length<4||s.length*2<e.length)return null;function n(p,m,y){for(var v=p.substring(y,y+Math.floor(p.length/4)),g=-1,A="",E,T,N,_;(g=m.indexOf(v,g+1))!==-1;){var Y=dn(p.substring(y),m.substring(g)),mt=is(p.substring(0,y),m.substring(0,g));A.length<mt+Y&&(A=m.substring(g-mt,g)+m.substring(g,g+Y),E=p.substring(0,y-mt),T=p.substring(y+Y),N=m.substring(0,g-mt),_=m.substring(g+Y))}return A.length*2>=p.length?[E,T,N,_,A]:null}var i=n(e,s,Math.ceil(e.length/4)),o=n(e,s,Math.ceil(e.length/2)),a;if(!i&&!o)return null;o?i?a=i[4].length>o[4].length?i:o:a=o:a=i;var l,u,c,f;r.length>t.length?(l=a[0],u=a[1],c=a[2],f=a[3]):(c=a[0],f=a[1],l=a[2],u=a[3]);var h=a[4];return[l,u,c,f,h]}function wg(r){for(var t=!1,e=[],s=0,n=null,i=0,o=0,a=0,l=0,u=0;i<r.length;)r[i][0]==P?(e[s++]=i,o=l,a=u,l=0,u=0,n=r[i][1]):(r[i][0]==Z?l+=r[i][1].length:u+=r[i][1].length,n&&n.length<=Math.max(o,a)&&n.length<=Math.max(l,u)&&(r.splice(e[s-1],0,[at,n]),r[e[s-1]+1][0]=Z,s--,s--,i=s>0?e[s-1]:-1,o=0,a=0,l=0,u=0,n=null,t=!0)),i++;for(t&&pn(r),Og(r),i=1;i<r.length;){if(r[i-1][0]==at&&r[i][0]==Z){var c=r[i-1][1],f=r[i][1],h=Ya(c,f),p=Ya(f,c);h>=p?(h>=c.length/2||h>=f.length/2)&&(r.splice(i,0,[P,f.substring(0,h)]),r[i-1][1]=c.substring(0,c.length-h),r[i+1][1]=f.substring(h),i++):(p>=c.length/2||p>=f.length/2)&&(r.splice(i,0,[P,c.substring(0,p)]),r[i-1][0]=Z,r[i-1][1]=f.substring(0,f.length-p),r[i+1][0]=at,r[i+1][1]=c.substring(p),i++),i++}i++}}var Ja=/[^a-zA-Z0-9]/,tl=/\s/,el=/[\r\n]/,Sg=/\n\r?\n$/,Lg=/^\r?\n\r?\n/;function Og(r){function t(p,m){if(!p||!m)return 6;var y=p.charAt(p.length-1),v=m.charAt(0),g=y.match(Ja),A=v.match(Ja),E=g&&y.match(tl),T=A&&v.match(tl),N=E&&y.match(el),_=T&&v.match(el),Y=N&&p.match(Sg),mt=_&&m.match(Lg);return Y||mt?5:N||_?4:g&&!E&&T?3:E||T?2:g||A?1:0}for(var e=1;e<r.length-1;){if(r[e-1][0]==P&&r[e+1][0]==P){var s=r[e-1][1],n=r[e][1],i=r[e+1][1],o=is(s,n);if(o){var a=n.substring(n.length-o);s=s.substring(0,s.length-o),n=a+n.substring(0,n.length-o),i=a+i}for(var l=s,u=n,c=i,f=t(s,n)+t(n,i);n.charAt(0)===i.charAt(0);){s+=n.charAt(0),n=n.substring(1)+i.charAt(0),i=i.substring(1);var h=t(s,n)+t(n,i);h>=f&&(f=h,l=s,u=n,c=i)}r[e-1][1]!=l&&(l?r[e-1][1]=l:(r.splice(e-1,1),e--),r[e][1]=u,c?r[e+1][1]=c:(r.splice(e+1,1),e--))}e++}}function pn(r,t){r.push([P,""]);for(var e=0,s=0,n=0,i="",o="",a;e<r.length;){if(e<r.length-1&&!r[e][1]){r.splice(e,1);continue}switch(r[e][0]){case Z:n++,o+=r[e][1],e++;break;case at:s++,i+=r[e][1],e++;break;case P:var l=e-n-s-1;if(t){if(l>=0&&il(r[l][1])){var u=r[l][1].slice(-1);if(r[l][1]=r[l][1].slice(0,-1),i=u+i,o=u+o,!r[l][1]){r.splice(l,1),e--;var c=l-1;r[c]&&r[c][0]===Z&&(n++,o=r[c][1]+o,c--),r[c]&&r[c][0]===at&&(s++,i=r[c][1]+i,c--),l=c}}if(nl(r[e][1])){var u=r[e][1].charAt(0);r[e][1]=r[e][1].slice(1),i+=u,o+=u}}if(e<r.length-1&&!r[e][1]){r.splice(e,1);break}if(i.length>0||o.length>0){i.length>0&&o.length>0&&(a=dn(o,i),a!==0&&(l>=0?r[l][1]+=o.substring(0,a):(r.splice(0,0,[P,o.substring(0,a)]),e++),o=o.substring(a),i=i.substring(a)),a=is(o,i),a!==0&&(r[e][1]=o.substring(o.length-a)+r[e][1],o=o.substring(0,o.length-a),i=i.substring(0,i.length-a)));var f=n+s;i.length===0&&o.length===0?(r.splice(e-f,f),e=e-f):i.length===0?(r.splice(e-f,f,[Z,o]),e=e-f+1):o.length===0?(r.splice(e-f,f,[at,i]),e=e-f+1):(r.splice(e-f,f,[at,i],[Z,o]),e=e-f+2)}e!==0&&r[e-1][0]===P?(r[e-1][1]+=r[e][1],r.splice(e,1)):e++,n=0,s=0,i="",o="";break}}r[r.length-1][1]===""&&r.pop();var h=!1;for(e=1;e<r.length-1;)r[e-1][0]===P&&r[e+1][0]===P&&(r[e][1].substring(r[e][1].length-r[e-1][1].length)===r[e-1][1]?(r[e][1]=r[e-1][1]+r[e][1].substring(0,r[e][1].length-r[e-1][1].length),r[e+1][1]=r[e-1][1]+r[e+1][1],r.splice(e-1,1),h=!0):r[e][1].substring(0,r[e+1][1].length)==r[e+1][1]&&(r[e-1][1]+=r[e+1][1],r[e][1]=r[e][1].substring(r[e+1][1].length)+r[e+1][1],r.splice(e+1,1),h=!0)),e++;h&&pn(r,t)}function rl(r){return r>=55296&&r<=56319}function sl(r){return r>=56320&&r<=57343}function nl(r){return sl(r.charCodeAt(0))}function il(r){return rl(r.charCodeAt(r.length-1))}function Cg(r){for(var t=[],e=0;e<r.length;e++)r[e][1].length>0&&t.push(r[e]);return t}function hn(r,t,e,s){return il(r)||nl(s)?null:Cg([[P,r],[at,t],[Z,e],[P,s]])}function _g(r,t,e){var s=typeof e=="number"?{index:e,length:0}:e.oldRange,n=typeof e=="number"?null:e.newRange,i=r.length,o=t.length;if(s.length===0&&(n===null||n.length===0)){var a=s.index,l=r.slice(0,a),u=r.slice(a),c=n?n.index:null;t:{var f=a+o-i;if(c!==null&&c!==f||f<0||f>o)break t;var h=t.slice(0,f),p=t.slice(f);if(p!==u)break t;var m=Math.min(a,f),y=l.slice(0,m),v=h.slice(0,m);if(y!==v)break t;var g=l.slice(m),A=h.slice(m);return hn(y,g,A,u)}t:{if(c!==null&&c!==a)break t;var E=a,h=t.slice(0,E),p=t.slice(E);if(h!==l)break t;var T=Math.min(i-E,o-E),N=u.slice(u.length-T),_=p.slice(p.length-T);if(N!==_)break t;var g=u.slice(0,u.length-T),A=p.slice(0,p.length-T);return hn(l,g,A,N)}}if(s.length>0&&n&&n.length===0)t:{var y=r.slice(0,s.index),N=r.slice(s.index+s.length),m=y.length,T=N.length;if(o<m+T)break t;var v=t.slice(0,m),_=t.slice(o-T);if(y!==v||N!==_)break t;var g=r.slice(m,i-T),A=t.slice(m,o-T);return hn(y,g,A,N)}return null}function os(r,t,e,s){return cr(r,t,e,s,!0)}os.INSERT=Z;os.DELETE=at;os.EQUAL=P;ol.exports=os});var Cn=Ft((fr,He)=>{"use strict";var qg=200,xl="__lodash_hash_undefined__",vl=9007199254740991,En="[object Arguments]",Ig="[object Array]",Al="[object Boolean]",El="[object Date]",kg="[object Error]",Tn="[object Function]",Tl="[object GeneratorFunction]",as="[object Map]",Nl="[object Number]",Nn="[object Object]",ll="[object Promise]",wl="[object RegExp]",ls="[object Set]",Sl="[object String]",Ll="[object Symbol]",gn="[object WeakMap]",Ol="[object ArrayBuffer]",us="[object DataView]",Cl="[object Float32Array]",_l="[object Float64Array]",ql="[object Int8Array]",Il="[object Int16Array]",kl="[object Int32Array]",Rl="[object Uint8Array]",Bl="[object Uint8ClampedArray]",Ml="[object Uint16Array]",Dl="[object Uint32Array]",Rg=/[\\^$.*+?()[\]{}|]/g,Bg=/\w*$/,Mg=/^\[object .+?Constructor\]$/,Dg=/^(?:0|[1-9]\d*)$/,S={};S[En]=S[Ig]=S[Ol]=S[us]=S[Al]=S[El]=S[Cl]=S[_l]=S[ql]=S[Il]=S[kl]=S[as]=S[Nl]=S[Nn]=S[wl]=S[ls]=S[Sl]=S[Ll]=S[Rl]=S[Bl]=S[Ml]=S[Dl]=!0;S[kg]=S[Tn]=S[gn]=!1;var jg=typeof global=="object"&&global&&global.Object===Object&&global,Pg=typeof self=="object"&&self&&self.Object===Object&&self,_t=jg||Pg||Function("return this")(),jl=typeof fr=="object"&&fr&&!fr.nodeType&&fr,ul=jl&&typeof He=="object"&&He&&!He.nodeType&&He,Ug=ul&&ul.exports===jl;function Fg(r,t){return r.set(t[0],t[1]),r}function Hg(r,t){return r.add(t),r}function zg(r,t){for(var e=-1,s=r?r.length:0;++e<s&&t(r[e],e,r)!==!1;);return r}function $g(r,t){for(var e=-1,s=t.length,n=r.length;++e<s;)r[n+e]=t[e];return r}function Pl(r,t,e,s){var n=-1,i=r?r.length:0;for(s&&i&&(e=r[++n]);++n<i;)e=t(e,r[n],n,r);return e}function Kg(r,t){for(var e=-1,s=Array(r);++e<r;)s[e]=t(e);return s}function Gg(r,t){return r?.[t]}function Ul(r){var t=!1;if(r!=null&&typeof r.toString!="function")try{t=!!(r+"")}catch{}return t}function cl(r){var t=-1,e=Array(r.size);return r.forEach(function(s,n){e[++t]=[n,s]}),e}function wn(r,t){return function(e){return r(t(e))}}function fl(r){var t=-1,e=Array(r.size);return r.forEach(function(s){e[++t]=s}),e}var Vg=Array.prototype,Wg=Function.prototype,cs=Object.prototype,mn=_t["__core-js_shared__"],hl=(function(){var r=/[^.]+$/.exec(mn&&mn.keys&&mn.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})(),Fl=Wg.toString,Qt=cs.hasOwnProperty,fs=cs.toString,Zg=RegExp("^"+Fl.call(Qt).replace(Rg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dl=Ug?_t.Buffer:void 0,pl=_t.Symbol,ml=_t.Uint8Array,Xg=wn(Object.getPrototypeOf,Object),Qg=Object.create,Yg=cs.propertyIsEnumerable,Jg=Vg.splice,gl=Object.getOwnPropertySymbols,t1=dl?dl.isBuffer:void 0,e1=wn(Object.keys,Object),bn=Ke(_t,"DataView"),hr=Ke(_t,"Map"),yn=Ke(_t,"Promise"),xn=Ke(_t,"Set"),vn=Ke(_t,"WeakMap"),dr=Ke(Object,"create"),r1=he(bn),s1=he(hr),n1=he(yn),i1=he(xn),o1=he(vn),bl=pl?pl.prototype:void 0,yl=bl?bl.valueOf:void 0;function fe(r){var t=-1,e=r?r.length:0;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}function a1(){this.__data__=dr?dr(null):{}}function l1(r){return this.has(r)&&delete this.__data__[r]}function u1(r){var t=this.__data__;if(dr){var e=t[r];return e===xl?void 0:e}return Qt.call(t,r)?t[r]:void 0}function c1(r){var t=this.__data__;return dr?t[r]!==void 0:Qt.call(t,r)}function f1(r,t){var e=this.__data__;return e[r]=dr&&t===void 0?xl:t,this}fe.prototype.clear=a1;fe.prototype.delete=l1;fe.prototype.get=u1;fe.prototype.has=c1;fe.prototype.set=f1;function qt(r){var t=-1,e=r?r.length:0;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}function h1(){this.__data__=[]}function d1(r){var t=this.__data__,e=hs(t,r);if(e<0)return!1;var s=t.length-1;return e==s?t.pop():Jg.call(t,e,1),!0}function p1(r){var t=this.__data__,e=hs(t,r);return e<0?void 0:t[e][1]}function m1(r){return hs(this.__data__,r)>-1}function g1(r,t){var e=this.__data__,s=hs(e,r);return s<0?e.push([r,t]):e[s][1]=t,this}qt.prototype.clear=h1;qt.prototype.delete=d1;qt.prototype.get=p1;qt.prototype.has=m1;qt.prototype.set=g1;function ze(r){var t=-1,e=r?r.length:0;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}function b1(){this.__data__={hash:new fe,map:new(hr||qt),string:new fe}}function y1(r){return ds(this,r).delete(r)}function x1(r){return ds(this,r).get(r)}function v1(r){return ds(this,r).has(r)}function A1(r,t){return ds(this,r).set(r,t),this}ze.prototype.clear=b1;ze.prototype.delete=y1;ze.prototype.get=x1;ze.prototype.has=v1;ze.prototype.set=A1;function $e(r){this.__data__=new qt(r)}function E1(){this.__data__=new qt}function T1(r){return this.__data__.delete(r)}function N1(r){return this.__data__.get(r)}function w1(r){return this.__data__.has(r)}function S1(r,t){var e=this.__data__;if(e instanceof qt){var s=e.__data__;if(!hr||s.length<qg-1)return s.push([r,t]),this;e=this.__data__=new ze(s)}return e.set(r,t),this}$e.prototype.clear=E1;$e.prototype.delete=T1;$e.prototype.get=N1;$e.prototype.has=w1;$e.prototype.set=S1;function L1(r,t){var e=Ln(r)||Q1(r)?Kg(r.length,String):[],s=e.length,n=!!s;for(var i in r)(t||Qt.call(r,i))&&!(n&&(i=="length"||V1(i,s)))&&e.push(i);return e}function Hl(r,t,e){var s=r[t];(!(Qt.call(r,t)&&Gl(s,e))||e===void 0&&!(t in r))&&(r[t]=e)}function hs(r,t){for(var e=r.length;e--;)if(Gl(r[e][0],t))return e;return-1}function O1(r,t){return r&&zl(t,On(t),r)}function An(r,t,e,s,n,i,o){var a;if(s&&(a=i?s(r,n,i,o):s(r)),a!==void 0)return a;if(!ps(r))return r;var l=Ln(r);if(l){if(a=$1(r),!t)return F1(r,a)}else{var u=ce(r),c=u==Tn||u==Tl;if(J1(r))return R1(r,t);if(u==Nn||u==En||c&&!i){if(Ul(r))return i?r:{};if(a=K1(c?{}:r),!t)return H1(r,O1(a,r))}else{if(!S[u])return i?r:{};a=G1(r,u,An,t)}}o||(o=new $e);var f=o.get(r);if(f)return f;if(o.set(r,a),!l)var h=e?z1(r):On(r);return zg(h||r,function(p,m){h&&(m=p,p=r[m]),Hl(a,m,An(p,t,e,s,m,r,o))}),a}function C1(r){return ps(r)?Qg(r):{}}function _1(r,t,e){var s=t(r);return Ln(r)?s:$g(s,e(r))}function q1(r){return fs.call(r)}function I1(r){if(!ps(r)||Z1(r))return!1;var t=Wl(r)||Ul(r)?Zg:Mg;return t.test(he(r))}function k1(r){if(!Kl(r))return e1(r);var t=[];for(var e in Object(r))Qt.call(r,e)&&e!="constructor"&&t.push(e);return t}function R1(r,t){if(t)return r.slice();var e=new r.constructor(r.length);return r.copy(e),e}function Sn(r){var t=new r.constructor(r.byteLength);return new ml(t).set(new ml(r)),t}function B1(r,t){var e=t?Sn(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.byteLength)}function M1(r,t,e){var s=t?e(cl(r),!0):cl(r);return Pl(s,Fg,new r.constructor)}function D1(r){var t=new r.constructor(r.source,Bg.exec(r));return t.lastIndex=r.lastIndex,t}function j1(r,t,e){var s=t?e(fl(r),!0):fl(r);return Pl(s,Hg,new r.constructor)}function P1(r){return yl?Object(yl.call(r)):{}}function U1(r,t){var e=t?Sn(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}function F1(r,t){var e=-1,s=r.length;for(t||(t=Array(s));++e<s;)t[e]=r[e];return t}function zl(r,t,e,s){e||(e={});for(var n=-1,i=t.length;++n<i;){var o=t[n],a=s?s(e[o],r[o],o,e,r):void 0;Hl(e,o,a===void 0?r[o]:a)}return e}function H1(r,t){return zl(r,$l(r),t)}function z1(r){return _1(r,On,$l)}function ds(r,t){var e=r.__data__;return W1(t)?e[typeof t=="string"?"string":"hash"]:e.map}function Ke(r,t){var e=Gg(r,t);return I1(e)?e:void 0}var $l=gl?wn(gl,Object):r0,ce=q1;(bn&&ce(new bn(new ArrayBuffer(1)))!=us||hr&&ce(new hr)!=as||yn&&ce(yn.resolve())!=ll||xn&&ce(new xn)!=ls||vn&&ce(new vn)!=gn)&&(ce=function(r){var t=fs.call(r),e=t==Nn?r.constructor:void 0,s=e?he(e):void 0;if(s)switch(s){case r1:return us;case s1:return as;case n1:return ll;case i1:return ls;case o1:return gn}return t});function $1(r){var t=r.length,e=r.constructor(t);return t&&typeof r[0]=="string"&&Qt.call(r,"index")&&(e.index=r.index,e.input=r.input),e}function K1(r){return typeof r.constructor=="function"&&!Kl(r)?C1(Xg(r)):{}}function G1(r,t,e,s){var n=r.constructor;switch(t){case Ol:return Sn(r);case Al:case El:return new n(+r);case us:return B1(r,s);case Cl:case _l:case ql:case Il:case kl:case Rl:case Bl:case Ml:case Dl:return U1(r,s);case as:return M1(r,s,e);case Nl:case Sl:return new n(r);case wl:return D1(r);case ls:return j1(r,s,e);case Ll:return P1(r)}}function V1(r,t){return t=t??vl,!!t&&(typeof r=="number"||Dg.test(r))&&r>-1&&r%1==0&&r<t}function W1(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function Z1(r){return!!hl&&hl in r}function Kl(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||cs;return r===e}function he(r){if(r!=null){try{return Fl.call(r)}catch{}try{return r+""}catch{}}return""}function X1(r){return An(r,!0,!0)}function Gl(r,t){return r===t||r!==r&&t!==t}function Q1(r){return Y1(r)&&Qt.call(r,"callee")&&(!Yg.call(r,"callee")||fs.call(r)==En)}var Ln=Array.isArray;function Vl(r){return r!=null&&t0(r.length)&&!Wl(r)}function Y1(r){return e0(r)&&Vl(r)}var J1=t1||s0;function Wl(r){var t=ps(r)?fs.call(r):"";return t==Tn||t==Tl}function t0(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=vl}function ps(r){var t=typeof r;return!!r&&(t=="object"||t=="function")}function e0(r){return!!r&&typeof r=="object"}function On(r){return Vl(r)?L1(r):k1(r)}function r0(){return[]}function s0(){return!1}He.exports=X1});var Fn=Ft((pr,Ve)=>{"use strict";var n0=200,Un="__lodash_hash_undefined__",Es=1,ou=2,au=9007199254740991,ms="[object Arguments]",kn="[object Array]",i0="[object AsyncFunction]",lu="[object Boolean]",uu="[object Date]",cu="[object Error]",fu="[object Function]",o0="[object GeneratorFunction]",gs="[object Map]",hu="[object Number]",a0="[object Null]",Ge="[object Object]",Zl="[object Promise]",l0="[object Proxy]",du="[object RegExp]",bs="[object Set]",pu="[object String]",u0="[object Symbol]",c0="[object Undefined]",Rn="[object WeakMap]",mu="[object ArrayBuffer]",ys="[object DataView]",f0="[object Float32Array]",h0="[object Float64Array]",d0="[object Int8Array]",p0="[object Int16Array]",m0="[object Int32Array]",g0="[object Uint8Array]",b0="[object Uint8ClampedArray]",y0="[object Uint16Array]",x0="[object Uint32Array]",v0=/[\\^$.*+?()[\]{}|]/g,A0=/^\[object .+?Constructor\]$/,E0=/^(?:0|[1-9]\d*)$/,C={};C[f0]=C[h0]=C[d0]=C[p0]=C[m0]=C[g0]=C[b0]=C[y0]=C[x0]=!0;C[ms]=C[kn]=C[mu]=C[lu]=C[ys]=C[uu]=C[cu]=C[fu]=C[gs]=C[hu]=C[Ge]=C[du]=C[bs]=C[pu]=C[Rn]=!1;var gu=typeof global=="object"&&global&&global.Object===Object&&global,T0=typeof self=="object"&&self&&self.Object===Object&&self,It=gu||T0||Function("return this")(),bu=typeof pr=="object"&&pr&&!pr.nodeType&&pr,Xl=bu&&typeof Ve=="object"&&Ve&&!Ve.nodeType&&Ve,yu=Xl&&Xl.exports===bu,_n=yu&&gu.process,Ql=(function(){try{return _n&&_n.binding&&_n.binding("util")}catch{}})(),Yl=Ql&&Ql.isTypedArray;function N0(r,t){for(var e=-1,s=r==null?0:r.length,n=0,i=[];++e<s;){var o=r[e];t(o,e,r)&&(i[n++]=o)}return i}function w0(r,t){for(var e=-1,s=t.length,n=r.length;++e<s;)r[n+e]=t[e];return r}function S0(r,t){for(var e=-1,s=r==null?0:r.length;++e<s;)if(t(r[e],e,r))return!0;return!1}function L0(r,t){for(var e=-1,s=Array(r);++e<r;)s[e]=t(e);return s}function O0(r){return function(t){return r(t)}}function C0(r,t){return r.has(t)}function _0(r,t){return r?.[t]}function q0(r){var t=-1,e=Array(r.size);return r.forEach(function(s,n){e[++t]=[n,s]}),e}function I0(r,t){return function(e){return r(t(e))}}function k0(r){var t=-1,e=Array(r.size);return r.forEach(function(s){e[++t]=s}),e}var R0=Array.prototype,B0=Function.prototype,Ts=Object.prototype,qn=It["__core-js_shared__"],xu=B0.toString,Et=Ts.hasOwnProperty,Jl=(function(){var r=/[^.]+$/.exec(qn&&qn.keys&&qn.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})(),vu=Ts.toString,M0=RegExp("^"+xu.call(Et).replace(v0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tu=yu?It.Buffer:void 0,xs=It.Symbol,eu=It.Uint8Array,Au=Ts.propertyIsEnumerable,D0=R0.splice,de=xs?xs.toStringTag:void 0,ru=Object.getOwnPropertySymbols,j0=tu?tu.isBuffer:void 0,P0=I0(Object.keys,Object),Bn=We(It,"DataView"),mr=We(It,"Map"),Mn=We(It,"Promise"),Dn=We(It,"Set"),jn=We(It,"WeakMap"),gr=We(Object,"create"),U0=ge(Bn),F0=ge(mr),H0=ge(Mn),z0=ge(Dn),$0=ge(jn),su=xs?xs.prototype:void 0,In=su?su.valueOf:void 0;function pe(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}function K0(){this.__data__=gr?gr(null):{},this.size=0}function G0(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}function V0(r){var t=this.__data__;if(gr){var e=t[r];return e===Un?void 0:e}return Et.call(t,r)?t[r]:void 0}function W0(r){var t=this.__data__;return gr?t[r]!==void 0:Et.call(t,r)}function Z0(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=gr&&t===void 0?Un:t,this}pe.prototype.clear=K0;pe.prototype.delete=G0;pe.prototype.get=V0;pe.prototype.has=W0;pe.prototype.set=Z0;function kt(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}function X0(){this.__data__=[],this.size=0}function Q0(r){var t=this.__data__,e=Ns(t,r);if(e<0)return!1;var s=t.length-1;return e==s?t.pop():D0.call(t,e,1),--this.size,!0}function Y0(r){var t=this.__data__,e=Ns(t,r);return e<0?void 0:t[e][1]}function J0(r){return Ns(this.__data__,r)>-1}function tb(r,t){var e=this.__data__,s=Ns(e,r);return s<0?(++this.size,e.push([r,t])):e[s][1]=t,this}kt.prototype.clear=X0;kt.prototype.delete=Q0;kt.prototype.get=Y0;kt.prototype.has=J0;kt.prototype.set=tb;function me(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}function eb(){this.size=0,this.__data__={hash:new pe,map:new(mr||kt),string:new pe}}function rb(r){var t=ws(this,r).delete(r);return this.size-=t?1:0,t}function sb(r){return ws(this,r).get(r)}function nb(r){return ws(this,r).has(r)}function ib(r,t){var e=ws(this,r),s=e.size;return e.set(r,t),this.size+=e.size==s?0:1,this}me.prototype.clear=eb;me.prototype.delete=rb;me.prototype.get=sb;me.prototype.has=nb;me.prototype.set=ib;function vs(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new me;++t<e;)this.add(r[t])}function ob(r){return this.__data__.set(r,Un),this}function ab(r){return this.__data__.has(r)}vs.prototype.add=vs.prototype.push=ob;vs.prototype.has=ab;function Jt(r){var t=this.__data__=new kt(r);this.size=t.size}function lb(){this.__data__=new kt,this.size=0}function ub(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}function cb(r){return this.__data__.get(r)}function fb(r){return this.__data__.has(r)}function hb(r,t){var e=this.__data__;if(e instanceof kt){var s=e.__data__;if(!mr||s.length<n0-1)return s.push([r,t]),this.size=++e.size,this;e=this.__data__=new me(s)}return e.set(r,t),this.size=e.size,this}Jt.prototype.clear=lb;Jt.prototype.delete=ub;Jt.prototype.get=cb;Jt.prototype.has=fb;Jt.prototype.set=hb;function db(r,t){var e=As(r),s=!e&&Ob(r),n=!e&&!s&&Pn(r),i=!e&&!s&&!n&&Ou(r),o=e||s||n||i,a=o?L0(r.length,String):[],l=a.length;for(var u in r)(t||Et.call(r,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Tb(u,l)))&&a.push(u);return a}function Ns(r,t){for(var e=r.length;e--;)if(Nu(r[e][0],t))return e;return-1}function pb(r,t,e){var s=t(r);return As(r)?s:w0(s,e(r))}function yr(r){return r==null?r===void 0?c0:a0:de&&de in Object(r)?Ab(r):Lb(r)}function nu(r){return br(r)&&yr(r)==ms}function Eu(r,t,e,s,n){return r===t?!0:r==null||t==null||!br(r)&&!br(t)?r!==r&&t!==t:mb(r,t,e,s,Eu,n)}function mb(r,t,e,s,n,i){var o=As(r),a=As(t),l=o?kn:Yt(r),u=a?kn:Yt(t);l=l==ms?Ge:l,u=u==ms?Ge:u;var c=l==Ge,f=u==Ge,h=l==u;if(h&&Pn(r)){if(!Pn(t))return!1;o=!0,c=!1}if(h&&!c)return i||(i=new Jt),o||Ou(r)?Tu(r,t,e,s,n,i):xb(r,t,l,e,s,n,i);if(!(e&Es)){var p=c&&Et.call(r,"__wrapped__"),m=f&&Et.call(t,"__wrapped__");if(p||m){var y=p?r.value():r,v=m?t.value():t;return i||(i=new Jt),n(y,v,e,s,i)}}return h?(i||(i=new Jt),vb(r,t,e,s,n,i)):!1}function gb(r){if(!Lu(r)||wb(r))return!1;var t=wu(r)?M0:A0;return t.test(ge(r))}function bb(r){return br(r)&&Su(r.length)&&!!C[yr(r)]}function yb(r){if(!Sb(r))return P0(r);var t=[];for(var e in Object(r))Et.call(r,e)&&e!="constructor"&&t.push(e);return t}function Tu(r,t,e,s,n,i){var o=e&Es,a=r.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=i.get(r);if(u&&i.get(t))return u==t;var c=-1,f=!0,h=e&ou?new vs:void 0;for(i.set(r,t),i.set(t,r);++c<a;){var p=r[c],m=t[c];if(s)var y=o?s(m,p,c,t,r,i):s(p,m,c,r,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(h){if(!S0(t,function(v,g){if(!C0(h,g)&&(p===v||n(p,v,e,s,i)))return h.push(g)})){f=!1;break}}else if(!(p===m||n(p,m,e,s,i))){f=!1;break}}return i.delete(r),i.delete(t),f}function xb(r,t,e,s,n,i,o){switch(e){case ys:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case mu:return!(r.byteLength!=t.byteLength||!i(new eu(r),new eu(t)));case lu:case uu:case hu:return Nu(+r,+t);case cu:return r.name==t.name&&r.message==t.message;case du:case pu:return r==t+"";case gs:var a=q0;case bs:var l=s&Es;if(a||(a=k0),r.size!=t.size&&!l)return!1;var u=o.get(r);if(u)return u==t;s|=ou,o.set(r,t);var c=Tu(a(r),a(t),s,n,i,o);return o.delete(r),c;case u0:if(In)return In.call(r)==In.call(t)}return!1}function vb(r,t,e,s,n,i){var o=e&Es,a=iu(r),l=a.length,u=iu(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var h=a[f];if(!(o?h in t:Et.call(t,h)))return!1}var p=i.get(r);if(p&&i.get(t))return p==t;var m=!0;i.set(r,t),i.set(t,r);for(var y=o;++f<l;){h=a[f];var v=r[h],g=t[h];if(s)var A=o?s(g,v,h,t,r,i):s(v,g,h,r,t,i);if(!(A===void 0?v===g||n(v,g,e,s,i):A)){m=!1;break}y||(y=h=="constructor")}if(m&&!y){var E=r.constructor,T=t.constructor;E!=T&&"constructor"in r&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof T=="function"&&T instanceof T)&&(m=!1)}return i.delete(r),i.delete(t),m}function iu(r){return pb(r,qb,Eb)}function ws(r,t){var e=r.__data__;return Nb(t)?e[typeof t=="string"?"string":"hash"]:e.map}function We(r,t){var e=_0(r,t);return gb(e)?e:void 0}function Ab(r){var t=Et.call(r,de),e=r[de];try{r[de]=void 0;var s=!0}catch{}var n=vu.call(r);return s&&(t?r[de]=e:delete r[de]),n}var Eb=ru?function(r){return r==null?[]:(r=Object(r),N0(ru(r),function(t){return Au.call(r,t)}))}:Ib,Yt=yr;(Bn&&Yt(new Bn(new ArrayBuffer(1)))!=ys||mr&&Yt(new mr)!=gs||Mn&&Yt(Mn.resolve())!=Zl||Dn&&Yt(new Dn)!=bs||jn&&Yt(new jn)!=Rn)&&(Yt=function(r){var t=yr(r),e=t==Ge?r.constructor:void 0,s=e?ge(e):"";if(s)switch(s){case U0:return ys;case F0:return gs;case H0:return Zl;case z0:return bs;case $0:return Rn}return t});function Tb(r,t){return t=t??au,!!t&&(typeof r=="number"||E0.test(r))&&r>-1&&r%1==0&&r<t}function Nb(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function wb(r){return!!Jl&&Jl in r}function Sb(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Ts;return r===e}function Lb(r){return vu.call(r)}function ge(r){if(r!=null){try{return xu.call(r)}catch{}try{return r+""}catch{}}return""}function Nu(r,t){return r===t||r!==r&&t!==t}var Ob=nu((function(){return arguments})())?nu:function(r){return br(r)&&Et.call(r,"callee")&&!Au.call(r,"callee")},As=Array.isArray;function Cb(r){return r!=null&&Su(r.length)&&!wu(r)}var Pn=j0||kb;function _b(r,t){return Eu(r,t)}function wu(r){if(!Lu(r))return!1;var t=yr(r);return t==fu||t==o0||t==i0||t==l0}function Su(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=au}function Lu(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function br(r){return r!=null&&typeof r=="object"}var Ou=Yl?O0(Yl):bb;function qb(r){return Cb(r)?db(r):yb(r)}function Ib(){return[]}function kb(){return!1}Ve.exports=_b});var Cu=Ft(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});var Rb=Cn(),Bb=Fn(),Hn;(function(r){function t(i={},o={},a=!1){typeof i!="object"&&(i={}),typeof o!="object"&&(o={});let l=Rb(o);a||(l=Object.keys(l).reduce((u,c)=>(l[c]!=null&&(u[c]=l[c]),u),{}));for(let u in i)i[u]!==void 0&&o[u]===void 0&&(l[u]=i[u]);return Object.keys(l).length>0?l:void 0}r.compose=t;function e(i={},o={}){typeof i!="object"&&(i={}),typeof o!="object"&&(o={});let a=Object.keys(i).concat(Object.keys(o)).reduce((l,u)=>(Bb(i[u],o[u])||(l[u]=o[u]===void 0?null:o[u]),l),{});return Object.keys(a).length>0?a:void 0}r.diff=e;function s(i={},o={}){i=i||{};let a=Object.keys(o).reduce((l,u)=>(o[u]!==i[u]&&i[u]!==void 0&&(l[u]=o[u]),l),{});return Object.keys(i).reduce((l,u)=>(i[u]!==o[u]&&o[u]===void 0&&(l[u]=null),l),a)}r.invert=s;function n(i,o,a=!1){if(typeof i!="object")return o;if(typeof o!="object")return;if(!a)return o;let l=Object.keys(o).reduce((u,c)=>(i[c]===void 0&&(u[c]=o[c]),u),{});return Object.keys(l).length>0?l:void 0}r.transform=n})(Hn||(Hn={}));zn.default=Hn});var Gn=Ft(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});var $n;(function(r){function t(e){return typeof e.delete=="number"?e.delete:typeof e.retain=="number"?e.retain:typeof e.retain=="object"&&e.retain!==null?1:typeof e.insert=="string"?e.insert.length:1}r.length=t})($n||($n={}));Kn.default=$n});var qu=Ft(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});var _u=Gn(),Vn=class{constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);let e=this.ops[this.index];if(e){let s=this.offset,n=_u.default.length(e);if(t>=n-s?(t=n-s,this.index+=1,this.offset=0):this.offset+=t,typeof e.delete=="number")return{delete:t};{let i={};return e.attributes&&(i.attributes=e.attributes),typeof e.retain=="number"?i.retain=t:typeof e.retain=="object"&&e.retain!==null?i.retain=e.retain:typeof e.insert=="string"?i.insert=e.insert.substr(s,t):i.insert=e.insert,i}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?_u.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let t=this.ops[this.index];return t?typeof t.delete=="number"?"delete":typeof t.retain=="number"||typeof t.retain=="object"&&t.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{let t=this.offset,e=this.index,s=this.next(),n=this.ops.slice(this.index);return this.offset=t,this.index=e,[s].concat(n)}}else return[]}};Wn.default=Vn});var lt=Ft((Bt,Ls)=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.AttributeMap=Bt.OpIterator=Bt.Op=void 0;var Ss=al(),Mb=Cn(),Zn=Fn(),be=Cu();Bt.AttributeMap=be.default;var Rt=Gn();Bt.Op=Rt.default;var ht=qu();Bt.OpIterator=ht.default;var Db="\0",Iu=(r,t)=>{if(typeof r!="object"||r===null)throw new Error(`cannot retain a ${typeof r}`);if(typeof t!="object"||t===null)throw new Error(`cannot retain a ${typeof t}`);let e=Object.keys(r)[0];if(!e||e!==Object.keys(t)[0])throw new Error(`embed types not matched: ${e} != ${Object.keys(t)[0]}`);return[e,r[e],t[e]]},Mt=class r{constructor(t){Array.isArray(t)?this.ops=t:t!=null&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}static registerEmbed(t,e){this.handlers[t]=e}static unregisterEmbed(t){delete this.handlers[t]}static getHandler(t){let e=this.handlers[t];if(!e)throw new Error(`no handlers for embed type "${t}"`);return e}insert(t,e){let s={};return typeof t=="string"&&t.length===0?this:(s.insert=t,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(s.attributes=e),this.push(s))}delete(t){return t<=0?this:this.push({delete:t})}retain(t,e){if(typeof t=="number"&&t<=0)return this;let s={retain:t};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(s.attributes=e),this.push(s)}push(t){let e=this.ops.length,s=this.ops[e-1];if(t=Mb(t),typeof s=="object"){if(typeof t.delete=="number"&&typeof s.delete=="number")return this.ops[e-1]={delete:s.delete+t.delete},this;if(typeof s.delete=="number"&&t.insert!=null&&(e-=1,s=this.ops[e-1],typeof s!="object"))return this.ops.unshift(t),this;if(Zn(t.attributes,s.attributes)){if(typeof t.insert=="string"&&typeof s.insert=="string")return this.ops[e-1]={insert:s.insert+t.insert},typeof t.attributes=="object"&&(this.ops[e-1].attributes=t.attributes),this;if(typeof t.retain=="number"&&typeof s.retain=="number")return this.ops[e-1]={retain:s.retain+t.retain},typeof t.attributes=="object"&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this}chop(){let t=this.ops[this.ops.length-1];return t&&typeof t.retain=="number"&&!t.attributes&&this.ops.pop(),this}filter(t){return this.ops.filter(t)}forEach(t){this.ops.forEach(t)}map(t){return this.ops.map(t)}partition(t){let e=[],s=[];return this.forEach(n=>{(t(n)?e:s).push(n)}),[e,s]}reduce(t,e){return this.ops.reduce(t,e)}changeLength(){return this.reduce((t,e)=>e.insert?t+Rt.default.length(e):e.delete?t-e.delete:t,0)}length(){return this.reduce((t,e)=>t+Rt.default.length(e),0)}slice(t=0,e=1/0){let s=[],n=new ht.default(this.ops),i=0;for(;i<e&&n.hasNext();){let o;i<t?o=n.next(t-i):(o=n.next(e-i),s.push(o)),i+=Rt.default.length(o)}return new r(s)}compose(t){let e=new ht.default(this.ops),s=new ht.default(t.ops),n=[],i=s.peek();if(i!=null&&typeof i.retain=="number"&&i.attributes==null){let a=i.retain;for(;e.peekType()==="insert"&&e.peekLength()<=a;)a-=e.peekLength(),n.push(e.next());i.retain-a>0&&s.next(i.retain-a)}let o=new r(n);for(;e.hasNext()||s.hasNext();)if(s.peekType()==="insert")o.push(s.next());else if(e.peekType()==="delete")o.push(e.next());else{let a=Math.min(e.peekLength(),s.peekLength()),l=e.next(a),u=s.next(a);if(u.retain){let c={};if(typeof l.retain=="number")c.retain=typeof u.retain=="number"?a:u.retain;else if(typeof u.retain=="number")l.retain==null?c.insert=l.insert:c.retain=l.retain;else{let h=l.retain==null?"insert":"retain",[p,m,y]=Iu(l[h],u.retain),v=r.getHandler(p);c[h]={[p]:v.compose(m,y,h==="retain")}}let f=be.default.compose(l.attributes,u.attributes,typeof l.retain=="number");if(f&&(c.attributes=f),o.push(c),!s.hasNext()&&Zn(o.ops[o.ops.length-1],c)){let h=new r(e.rest());return o.concat(h).chop()}}else typeof u.delete=="number"&&(typeof l.retain=="number"||typeof l.retain=="object"&&l.retain!==null)&&o.push(u)}return o.chop()}concat(t){let e=new r(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e}diff(t,e){if(this.ops===t.ops)return new r;let s=[this,t].map(l=>l.map(u=>{if(u.insert!=null)return typeof u.insert=="string"?u.insert:Db;let c=l===t?"on":"with";throw new Error("diff() called "+c+" non-document")}).join("")),n=new r,i=Ss(s[0],s[1],e,!0),o=new ht.default(this.ops),a=new ht.default(t.ops);return i.forEach(l=>{let u=l[1].length;for(;u>0;){let c=0;switch(l[0]){case Ss.INSERT:c=Math.min(a.peekLength(),u),n.push(a.next(c));break;case Ss.DELETE:c=Math.min(u,o.peekLength()),o.next(c),n.delete(c);break;case Ss.EQUAL:c=Math.min(o.peekLength(),a.peekLength(),u);let f=o.next(c),h=a.next(c);Zn(f.insert,h.insert)?n.retain(c,be.default.diff(f.attributes,h.attributes)):n.push(h).delete(c);break}u-=c}}),n.chop()}eachLine(t,e=`
2
+ `){let s=new ht.default(this.ops),n=new r,i=0;for(;s.hasNext();){if(s.peekType()!=="insert")return;let o=s.peek(),a=Rt.default.length(o)-s.peekLength(),l=typeof o.insert=="string"?o.insert.indexOf(e,a)-a:-1;if(l<0)n.push(s.next());else if(l>0)n.push(s.next(l));else{if(t(n,s.next(1).attributes||{},i)===!1)return;i+=1,n=new r}}n.length()>0&&t(n,{},i)}invert(t){let e=new r;return this.reduce((s,n)=>{if(n.insert)e.delete(Rt.default.length(n));else{if(typeof n.retain=="number"&&n.attributes==null)return e.retain(n.retain),s+n.retain;if(n.delete||typeof n.retain=="number"){let i=n.delete||n.retain;return t.slice(s,s+i).forEach(a=>{n.delete?e.push(a):n.retain&&n.attributes&&e.retain(Rt.default.length(a),be.default.invert(n.attributes,a.attributes))}),s+i}else if(typeof n.retain=="object"&&n.retain!==null){let i=t.slice(s,s+1),o=new ht.default(i.ops).next(),[a,l,u]=Iu(n.retain,o.insert),c=r.getHandler(a);return e.retain({[a]:c.invert(l,u)},be.default.invert(n.attributes,o.attributes)),s+1}}return s},0),e.chop()}transform(t,e=!1){if(e=!!e,typeof t=="number")return this.transformPosition(t,e);let s=t,n=new ht.default(this.ops),i=new ht.default(s.ops),o=new r;for(;n.hasNext()||i.hasNext();)if(n.peekType()==="insert"&&(e||i.peekType()!=="insert"))o.retain(Rt.default.length(n.next()));else if(i.peekType()==="insert")o.push(i.next());else{let a=Math.min(n.peekLength(),i.peekLength()),l=n.next(a),u=i.next(a);if(l.delete)continue;if(u.delete)o.push(u);else{let c=l.retain,f=u.retain,h=typeof f=="object"&&f!==null?f:a;if(typeof c=="object"&&c!==null&&typeof f=="object"&&f!==null){let p=Object.keys(c)[0];if(p===Object.keys(f)[0]){let m=r.getHandler(p);m&&(h={[p]:m.transform(c[p],f[p],e)})}}o.retain(h,be.default.transform(l.attributes,u.attributes,e))}}return o.chop()}transformPosition(t,e=!1){e=!!e;let s=new ht.default(this.ops),n=0;for(;s.hasNext()&&n<=t;){let i=s.peekLength(),o=s.peekType();if(s.next(),o==="delete"){t-=Math.min(i,t-n);continue}else o==="insert"&&(n<t||!e)&&(t+=i);n+=i}return t}};Mt.Op=Rt.default;Mt.OpIterator=ht.default;Mt.AttributeMap=be.default;Mt.handlers={};Bt.default=Mt;typeof Ls=="object"&&(Ls.exports=Mt,Ls.exports.default=Mt)});var Bu=Ft((H2,Yn)=>{"use strict";var Hb=Object.prototype.hasOwnProperty,X="~";function xr(){}Object.create&&(xr.prototype=Object.create(null),new xr().__proto__||(X=!1));function zb(r,t,e){this.fn=r,this.context=t,this.once=e||!1}function Ru(r,t,e,s,n){if(typeof e!="function")throw new TypeError("The listener must be a function");var i=new zb(e,s||r,n),o=X?X+t:t;return r._events[o]?r._events[o].fn?r._events[o]=[r._events[o],i]:r._events[o].push(i):(r._events[o]=i,r._eventsCount++),r}function Os(r,t){--r._eventsCount===0?r._events=new xr:delete r._events[t]}function G(){this._events=new xr,this._eventsCount=0}G.prototype.eventNames=function(){var t=[],e,s;if(this._eventsCount===0)return t;for(s in e=this._events)Hb.call(e,s)&&t.push(X?s.slice(1):s);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(e)):t};G.prototype.listeners=function(t){var e=X?X+t:t,s=this._events[e];if(!s)return[];if(s.fn)return[s.fn];for(var n=0,i=s.length,o=new Array(i);n<i;n++)o[n]=s[n].fn;return o};G.prototype.listenerCount=function(t){var e=X?X+t:t,s=this._events[e];return s?s.fn?1:s.length:0};G.prototype.emit=function(t,e,s,n,i,o){var a=X?X+t:t;if(!this._events[a])return!1;var l=this._events[a],u=arguments.length,c,f;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),u){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,s),!0;case 4:return l.fn.call(l.context,e,s,n),!0;case 5:return l.fn.call(l.context,e,s,n,i),!0;case 6:return l.fn.call(l.context,e,s,n,i,o),!0}for(f=1,c=new Array(u-1);f<u;f++)c[f-1]=arguments[f];l.fn.apply(l.context,c)}else{var h=l.length,p;for(f=0;f<h;f++)switch(l[f].once&&this.removeListener(t,l[f].fn,void 0,!0),u){case 1:l[f].fn.call(l[f].context);break;case 2:l[f].fn.call(l[f].context,e);break;case 3:l[f].fn.call(l[f].context,e,s);break;case 4:l[f].fn.call(l[f].context,e,s,n);break;default:if(!c)for(p=1,c=new Array(u-1);p<u;p++)c[p-1]=arguments[p];l[f].fn.apply(l[f].context,c)}}return!0};G.prototype.on=function(t,e,s){return Ru(this,t,e,s,!1)};G.prototype.once=function(t,e,s){return Ru(this,t,e,s,!0)};G.prototype.removeListener=function(t,e,s,n){var i=X?X+t:t;if(!this._events[i])return this;if(!e)return Os(this,i),this;var o=this._events[i];if(o.fn)o.fn===e&&(!n||o.once)&&(!s||o.context===s)&&Os(this,i);else{for(var a=0,l=[],u=o.length;a<u;a++)(o[a].fn!==e||n&&!o[a].once||s&&o[a].context!==s)&&l.push(o[a]);l.length?this._events[i]=l.length===1?l[0]:l:Os(this,i)}return this};G.prototype.removeAllListeners=function(t){var e;return t?(e=X?X+t:t,this._events[e]&&Os(this,e)):(this._events=new xr,this._eventsCount=0),this};G.prototype.off=G.prototype.removeListener;G.prototype.addListener=G.prototype.on;G.prefixed=X;G.EventEmitter=G;typeof Yn<"u"&&(Yn.exports=G)});var Pc=typeof global=="object"&&global&&global.Object===Object&&global,kr=Pc;var Uc=typeof self=="object"&&self&&self.Object===Object&&self,Fc=kr||Uc||Function("return this")(),M=Fc;var Hc=M.Symbol,ct=Hc;var Pi=Object.prototype,zc=Pi.hasOwnProperty,$c=Pi.toString,er=ct?ct.toStringTag:void 0;function Kc(r){var t=zc.call(r,er),e=r[er];try{r[er]=void 0;var s=!0}catch{}var n=$c.call(r);return s&&(t?r[er]=e:delete r[er]),n}var Ui=Kc;var Gc=Object.prototype,Vc=Gc.toString;function Wc(r){return Vc.call(r)}var Fi=Wc;var Zc="[object Null]",Xc="[object Undefined]",Hi=ct?ct.toStringTag:void 0;function Qc(r){return r==null?r===void 0?Xc:Zc:Hi&&Hi in Object(r)?Ui(r):Fi(r)}var gt=Qc;function Yc(r){return r!=null&&typeof r=="object"}var H=Yc;var Jc=Array.isArray,ft=Jc;function tf(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var z=tf;function ef(r){return r}var Rr=ef;var rf="[object AsyncFunction]",sf="[object Function]",nf="[object GeneratorFunction]",of="[object Proxy]";function af(r){if(!z(r))return!1;var t=gt(r);return t==sf||t==nf||t==rf||t==of}var Ae=af;var lf=M["__core-js_shared__"],Br=lf;var zi=(function(){var r=/[^.]+$/.exec(Br&&Br.keys&&Br.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function uf(r){return!!zi&&zi in r}var $i=uf;var cf=Function.prototype,ff=cf.toString;function hf(r){if(r!=null){try{return ff.call(r)}catch{}try{return r+""}catch{}}return""}var wt=hf;var df=/[\\^$.*+?()[\]{}|]/g,pf=/^\[object .+?Constructor\]$/,mf=Function.prototype,gf=Object.prototype,bf=mf.toString,yf=gf.hasOwnProperty,xf=RegExp("^"+bf.call(yf).replace(df,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vf(r){if(!z(r)||$i(r))return!1;var t=Ae(r)?xf:pf;return t.test(wt(r))}var Ki=vf;function Af(r,t){return r?.[t]}var Gi=Af;function Ef(r,t){var e=Gi(r,t);return Ki(e)?e:void 0}var J=Ef;var Tf=J(M,"WeakMap"),Mr=Tf;var Vi=Object.create,Nf=(function(){function r(){}return function(t){if(!z(t))return{};if(Vi)return Vi(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})(),Wi=Nf;function wf(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}var Zi=wf;function Sf(r,t){var e=-1,s=r.length;for(t||(t=Array(s));++e<s;)t[e]=r[e];return t}var Dr=Sf;var Lf=800,Of=16,Cf=Date.now;function _f(r){var t=0,e=0;return function(){var s=Cf(),n=Of-(s-e);if(e=s,n>0){if(++t>=Lf)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}var Xi=_f;function qf(r){return function(){return r}}var Qi=qf;var If=(function(){try{var r=J(Object,"defineProperty");return r({},"",{}),r}catch{}})(),Ee=If;var kf=Ee?function(r,t){return Ee(r,"toString",{configurable:!0,enumerable:!1,value:Qi(t),writable:!0})}:Rr,Yi=kf;var Rf=Xi(Yi),Ji=Rf;function Bf(r,t){for(var e=-1,s=r==null?0:r.length;++e<s&&t(r[e],e,r)!==!1;);return r}var to=Bf;var Mf=9007199254740991,Df=/^(?:0|[1-9]\d*)$/;function jf(r,t){var e=typeof r;return t=t??Mf,!!t&&(e=="number"||e!="symbol"&&Df.test(r))&&r>-1&&r%1==0&&r<t}var jr=jf;function Pf(r,t,e){t=="__proto__"&&Ee?Ee(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}var Te=Pf;function Uf(r,t){return r===t||r!==r&&t!==t}var yt=Uf;var Ff=Object.prototype,Hf=Ff.hasOwnProperty;function zf(r,t,e){var s=r[t];(!(Hf.call(r,t)&&yt(s,e))||e===void 0&&!(t in r))&&Te(r,t,e)}var Pr=zf;function $f(r,t,e,s){var n=!e;e||(e={});for(var i=-1,o=t.length;++i<o;){var a=t[i],l=s?s(e[a],r[a],a,e,r):void 0;l===void 0&&(l=r[a]),n?Te(e,a,l):Pr(e,a,l)}return e}var xt=$f;var eo=Math.max;function Kf(r,t,e){return t=eo(t===void 0?r.length-1:t,0),function(){for(var s=arguments,n=-1,i=eo(s.length-t,0),o=Array(i);++n<i;)o[n]=s[t+n];n=-1;for(var a=Array(t+1);++n<t;)a[n]=s[n];return a[t]=e(o),Zi(r,this,a)}}var ro=Kf;function Gf(r,t){return Ji(ro(r,t,Rr),r+"")}var so=Gf;var Vf=9007199254740991;function Wf(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Vf}var Ur=Wf;function Zf(r){return r!=null&&Ur(r.length)&&!Ae(r)}var Ht=Zf;function Xf(r,t,e){if(!z(e))return!1;var s=typeof t;return(s=="number"?Ht(e)&&jr(t,e.length):s=="string"&&t in e)?yt(e[t],r):!1}var no=Xf;function Qf(r){return so(function(t,e){var s=-1,n=e.length,i=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(i=r.length>3&&typeof i=="function"?(n--,i):void 0,o&&no(e[0],e[1],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++s<n;){var a=e[s];a&&r(t,a,s,i)}return t})}var io=Qf;var Yf=Object.prototype;function Jf(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Yf;return r===e}var Ne=Jf;function th(r,t){for(var e=-1,s=Array(r);++e<r;)s[e]=t(e);return s}var oo=th;var eh="[object Arguments]";function rh(r){return H(r)&&gt(r)==eh}var Qs=rh;var ao=Object.prototype,sh=ao.hasOwnProperty,nh=ao.propertyIsEnumerable,ih=Qs((function(){return arguments})())?Qs:function(r){return H(r)&&sh.call(r,"callee")&&!nh.call(r,"callee")},rr=ih;function oh(){return!1}var lo=oh;var fo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,uo=fo&&typeof module=="object"&&module&&!module.nodeType&&module,ah=uo&&uo.exports===fo,co=ah?M.Buffer:void 0,lh=co?co.isBuffer:void 0,uh=lh||lo,St=uh;var ch="[object Arguments]",fh="[object Array]",hh="[object Boolean]",dh="[object Date]",ph="[object Error]",mh="[object Function]",gh="[object Map]",bh="[object Number]",yh="[object Object]",xh="[object RegExp]",vh="[object Set]",Ah="[object String]",Eh="[object WeakMap]",Th="[object ArrayBuffer]",Nh="[object DataView]",wh="[object Float32Array]",Sh="[object Float64Array]",Lh="[object Int8Array]",Oh="[object Int16Array]",Ch="[object Int32Array]",_h="[object Uint8Array]",qh="[object Uint8ClampedArray]",Ih="[object Uint16Array]",kh="[object Uint32Array]",O={};O[wh]=O[Sh]=O[Lh]=O[Oh]=O[Ch]=O[_h]=O[qh]=O[Ih]=O[kh]=!0;O[ch]=O[fh]=O[Th]=O[hh]=O[Nh]=O[dh]=O[ph]=O[mh]=O[gh]=O[bh]=O[yh]=O[xh]=O[vh]=O[Ah]=O[Eh]=!1;function Rh(r){return H(r)&&Ur(r.length)&&!!O[gt(r)]}var ho=Rh;function Bh(r){return function(t){return r(t)}}var we=Bh;var po=typeof exports=="object"&&exports&&!exports.nodeType&&exports,sr=po&&typeof module=="object"&&module&&!module.nodeType&&module,Mh=sr&&sr.exports===po,Ys=Mh&&kr.process,Dh=(function(){try{var r=sr&&sr.require&&sr.require("util").types;return r||Ys&&Ys.binding&&Ys.binding("util")}catch{}})(),Lt=Dh;var mo=Lt&&Lt.isTypedArray,jh=mo?we(mo):ho,Se=jh;var Ph=Object.prototype,Uh=Ph.hasOwnProperty;function Fh(r,t){var e=ft(r),s=!e&&rr(r),n=!e&&!s&&St(r),i=!e&&!s&&!n&&Se(r),o=e||s||n||i,a=o?oo(r.length,String):[],l=a.length;for(var u in r)(t||Uh.call(r,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||jr(u,l)))&&a.push(u);return a}var Fr=Fh;function Hh(r,t){return function(e){return r(t(e))}}var Hr=Hh;var zh=Hr(Object.keys,Object),go=zh;var $h=Object.prototype,Kh=$h.hasOwnProperty;function Gh(r){if(!Ne(r))return go(r);var t=[];for(var e in Object(r))Kh.call(r,e)&&e!="constructor"&&t.push(e);return t}var bo=Gh;function Vh(r){return Ht(r)?Fr(r):bo(r)}var Le=Vh;function Wh(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var yo=Wh;var Zh=Object.prototype,Xh=Zh.hasOwnProperty;function Qh(r){if(!z(r))return yo(r);var t=Ne(r),e=[];for(var s in r)s=="constructor"&&(t||!Xh.call(r,s))||e.push(s);return e}var xo=Qh;function Yh(r){return Ht(r)?Fr(r,!0):xo(r)}var vt=Yh;var Jh=J(Object,"create"),Ot=Jh;function td(){this.__data__=Ot?Ot(null):{},this.size=0}var vo=td;function ed(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var Ao=ed;var rd="__lodash_hash_undefined__",sd=Object.prototype,nd=sd.hasOwnProperty;function id(r){var t=this.__data__;if(Ot){var e=t[r];return e===rd?void 0:e}return nd.call(t,r)?t[r]:void 0}var Eo=id;var od=Object.prototype,ad=od.hasOwnProperty;function ld(r){var t=this.__data__;return Ot?t[r]!==void 0:ad.call(t,r)}var To=ld;var ud="__lodash_hash_undefined__";function cd(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=Ot&&t===void 0?ud:t,this}var No=cd;function Oe(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}Oe.prototype.clear=vo;Oe.prototype.delete=Ao;Oe.prototype.get=Eo;Oe.prototype.has=To;Oe.prototype.set=No;var Js=Oe;function fd(){this.__data__=[],this.size=0}var wo=fd;function hd(r,t){for(var e=r.length;e--;)if(yt(r[e][0],t))return e;return-1}var zt=hd;var dd=Array.prototype,pd=dd.splice;function md(r){var t=this.__data__,e=zt(t,r);if(e<0)return!1;var s=t.length-1;return e==s?t.pop():pd.call(t,e,1),--this.size,!0}var So=md;function gd(r){var t=this.__data__,e=zt(t,r);return e<0?void 0:t[e][1]}var Lo=gd;function bd(r){return zt(this.__data__,r)>-1}var Oo=bd;function yd(r,t){var e=this.__data__,s=zt(e,r);return s<0?(++this.size,e.push([r,t])):e[s][1]=t,this}var Co=yd;function Ce(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}Ce.prototype.clear=wo;Ce.prototype.delete=So;Ce.prototype.get=Lo;Ce.prototype.has=Oo;Ce.prototype.set=Co;var $t=Ce;var xd=J(M,"Map"),Kt=xd;function vd(){this.size=0,this.__data__={hash:new Js,map:new(Kt||$t),string:new Js}}var _o=vd;function Ad(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}var qo=Ad;function Ed(r,t){var e=r.__data__;return qo(t)?e[typeof t=="string"?"string":"hash"]:e.map}var Gt=Ed;function Td(r){var t=Gt(this,r).delete(r);return this.size-=t?1:0,t}var Io=Td;function Nd(r){return Gt(this,r).get(r)}var ko=Nd;function wd(r){return Gt(this,r).has(r)}var Ro=wd;function Sd(r,t){var e=Gt(this,r),s=e.size;return e.set(r,t),this.size+=e.size==s?0:1,this}var Bo=Sd;function _e(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}_e.prototype.clear=_o;_e.prototype.delete=Io;_e.prototype.get=ko;_e.prototype.has=Ro;_e.prototype.set=Bo;var zr=_e;function Ld(r,t){for(var e=-1,s=t.length,n=r.length;++e<s;)r[n+e]=t[e];return r}var $r=Ld;var Od=Hr(Object.getPrototypeOf,Object),qe=Od;var Cd="[object Object]",_d=Function.prototype,qd=Object.prototype,Mo=_d.toString,Id=qd.hasOwnProperty,kd=Mo.call(Object);function Rd(r){if(!H(r)||gt(r)!=Cd)return!1;var t=qe(r);if(t===null)return!0;var e=Id.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Mo.call(e)==kd}var Do=Rd;function Bd(){this.__data__=new $t,this.size=0}var jo=Bd;function Md(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}var Po=Md;function Dd(r){return this.__data__.get(r)}var Uo=Dd;function jd(r){return this.__data__.has(r)}var Fo=jd;var Pd=200;function Ud(r,t){var e=this.__data__;if(e instanceof $t){var s=e.__data__;if(!Kt||s.length<Pd-1)return s.push([r,t]),this.size=++e.size,this;e=this.__data__=new zr(s)}return e.set(r,t),this.size=e.size,this}var Ho=Ud;function Ie(r){var t=this.__data__=new $t(r);this.size=t.size}Ie.prototype.clear=jo;Ie.prototype.delete=Po;Ie.prototype.get=Uo;Ie.prototype.has=Fo;Ie.prototype.set=Ho;var Vt=Ie;function Fd(r,t){return r&&xt(t,Le(t),r)}var zo=Fd;function Hd(r,t){return r&&xt(t,vt(t),r)}var $o=Hd;var Wo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ko=Wo&&typeof module=="object"&&module&&!module.nodeType&&module,zd=Ko&&Ko.exports===Wo,Go=zd?M.Buffer:void 0,Vo=Go?Go.allocUnsafe:void 0;function $d(r,t){if(t)return r.slice();var e=r.length,s=Vo?Vo(e):new r.constructor(e);return r.copy(s),s}var Kr=$d;function Kd(r,t){for(var e=-1,s=r==null?0:r.length,n=0,i=[];++e<s;){var o=r[e];t(o,e,r)&&(i[n++]=o)}return i}var Zo=Kd;function Gd(){return[]}var Gr=Gd;var Vd=Object.prototype,Wd=Vd.propertyIsEnumerable,Xo=Object.getOwnPropertySymbols,Zd=Xo?function(r){return r==null?[]:(r=Object(r),Zo(Xo(r),function(t){return Wd.call(r,t)}))}:Gr,ke=Zd;function Xd(r,t){return xt(r,ke(r),t)}var Qo=Xd;var Qd=Object.getOwnPropertySymbols,Yd=Qd?function(r){for(var t=[];r;)$r(t,ke(r)),r=qe(r);return t}:Gr,Vr=Yd;function Jd(r,t){return xt(r,Vr(r),t)}var Yo=Jd;function tp(r,t,e){var s=t(r);return ft(r)?s:$r(s,e(r))}var Wr=tp;function ep(r){return Wr(r,Le,ke)}var nr=ep;function rp(r){return Wr(r,vt,Vr)}var Jo=rp;var sp=J(M,"DataView"),Zr=sp;var np=J(M,"Promise"),Xr=np;var ip=J(M,"Set"),Qr=ip;var ta="[object Map]",op="[object Object]",ea="[object Promise]",ra="[object Set]",sa="[object WeakMap]",na="[object DataView]",ap=wt(Zr),lp=wt(Kt),up=wt(Xr),cp=wt(Qr),fp=wt(Mr),ae=gt;(Zr&&ae(new Zr(new ArrayBuffer(1)))!=na||Kt&&ae(new Kt)!=ta||Xr&&ae(Xr.resolve())!=ea||Qr&&ae(new Qr)!=ra||Mr&&ae(new Mr)!=sa)&&(ae=function(r){var t=gt(r),e=t==op?r.constructor:void 0,s=e?wt(e):"";if(s)switch(s){case ap:return na;case lp:return ta;case up:return ea;case cp:return ra;case fp:return sa}return t});var Ct=ae;var hp=Object.prototype,dp=hp.hasOwnProperty;function pp(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&dp.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var ia=pp;var mp=M.Uint8Array,Re=mp;function gp(r){var t=new r.constructor(r.byteLength);return new Re(t).set(new Re(r)),t}var Be=gp;function bp(r,t){var e=t?Be(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.byteLength)}var oa=bp;var yp=/\w*$/;function xp(r){var t=new r.constructor(r.source,yp.exec(r));return t.lastIndex=r.lastIndex,t}var aa=xp;var la=ct?ct.prototype:void 0,ua=la?la.valueOf:void 0;function vp(r){return ua?Object(ua.call(r)):{}}var ca=vp;function Ap(r,t){var e=t?Be(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var Yr=Ap;var Ep="[object Boolean]",Tp="[object Date]",Np="[object Map]",wp="[object Number]",Sp="[object RegExp]",Lp="[object Set]",Op="[object String]",Cp="[object Symbol]",_p="[object ArrayBuffer]",qp="[object DataView]",Ip="[object Float32Array]",kp="[object Float64Array]",Rp="[object Int8Array]",Bp="[object Int16Array]",Mp="[object Int32Array]",Dp="[object Uint8Array]",jp="[object Uint8ClampedArray]",Pp="[object Uint16Array]",Up="[object Uint32Array]";function Fp(r,t,e){var s=r.constructor;switch(t){case _p:return Be(r);case Ep:case Tp:return new s(+r);case qp:return oa(r,e);case Ip:case kp:case Rp:case Bp:case Mp:case Dp:case jp:case Pp:case Up:return Yr(r,e);case Np:return new s;case wp:case Op:return new s(r);case Sp:return aa(r);case Lp:return new s;case Cp:return ca(r)}}var fa=Fp;function Hp(r){return typeof r.constructor=="function"&&!Ne(r)?Wi(qe(r)):{}}var Jr=Hp;var zp="[object Map]";function $p(r){return H(r)&&Ct(r)==zp}var ha=$p;var da=Lt&&Lt.isMap,Kp=da?we(da):ha,pa=Kp;var Gp="[object Set]";function Vp(r){return H(r)&&Ct(r)==Gp}var ma=Vp;var ga=Lt&&Lt.isSet,Wp=ga?we(ga):ma,ba=Wp;var Zp=1,Xp=2,Qp=4,ya="[object Arguments]",Yp="[object Array]",Jp="[object Boolean]",tm="[object Date]",em="[object Error]",xa="[object Function]",rm="[object GeneratorFunction]",sm="[object Map]",nm="[object Number]",va="[object Object]",im="[object RegExp]",om="[object Set]",am="[object String]",lm="[object Symbol]",um="[object WeakMap]",cm="[object ArrayBuffer]",fm="[object DataView]",hm="[object Float32Array]",dm="[object Float64Array]",pm="[object Int8Array]",mm="[object Int16Array]",gm="[object Int32Array]",bm="[object Uint8Array]",ym="[object Uint8ClampedArray]",xm="[object Uint16Array]",vm="[object Uint32Array]",w={};w[ya]=w[Yp]=w[cm]=w[fm]=w[Jp]=w[tm]=w[hm]=w[dm]=w[pm]=w[mm]=w[gm]=w[sm]=w[nm]=w[va]=w[im]=w[om]=w[am]=w[lm]=w[bm]=w[ym]=w[xm]=w[vm]=!0;w[em]=w[xa]=w[um]=!1;function ts(r,t,e,s,n,i){var o,a=t&Zp,l=t&Xp,u=t&Qp;if(e&&(o=n?e(r,s,n,i):e(r)),o!==void 0)return o;if(!z(r))return r;var c=ft(r);if(c){if(o=ia(r),!a)return Dr(r,o)}else{var f=Ct(r),h=f==xa||f==rm;if(St(r))return Kr(r,a);if(f==va||f==ya||h&&!n){if(o=l||h?{}:Jr(r),!a)return l?Yo(r,$o(o,r)):Qo(r,zo(o,r))}else{if(!w[f])return n?r:{};o=fa(r,f,a)}}i||(i=new Vt);var p=i.get(r);if(p)return p;i.set(r,o),ba(r)?r.forEach(function(v){o.add(ts(v,t,e,v,r,i))}):pa(r)&&r.forEach(function(v,g){o.set(g,ts(v,t,e,g,r,i))});var m=u?l?Jo:nr:l?vt:Le,y=c?void 0:m(r);return to(y||r,function(v,g){y&&(g=v,v=r[g]),Pr(o,g,ts(v,t,e,g,r,i))}),o}var Aa=ts;var Am=1,Em=4;function Tm(r){return Aa(r,Am|Em)}var At=Tm;var Nm="__lodash_hash_undefined__";function wm(r){return this.__data__.set(r,Nm),this}var Ea=wm;function Sm(r){return this.__data__.has(r)}var Ta=Sm;function es(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new zr;++t<e;)this.add(r[t])}es.prototype.add=es.prototype.push=Ea;es.prototype.has=Ta;var Na=es;function Lm(r,t){for(var e=-1,s=r==null?0:r.length;++e<s;)if(t(r[e],e,r))return!0;return!1}var wa=Lm;function Om(r,t){return r.has(t)}var Sa=Om;var Cm=1,_m=2;function qm(r,t,e,s,n,i){var o=e&Cm,a=r.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=i.get(r),c=i.get(t);if(u&&c)return u==t&&c==r;var f=-1,h=!0,p=e&_m?new Na:void 0;for(i.set(r,t),i.set(t,r);++f<a;){var m=r[f],y=t[f];if(s)var v=o?s(y,m,f,t,r,i):s(m,y,f,r,t,i);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!wa(t,function(g,A){if(!Sa(p,A)&&(m===g||n(m,g,e,s,i)))return p.push(A)})){h=!1;break}}else if(!(m===y||n(m,y,e,s,i))){h=!1;break}}return i.delete(r),i.delete(t),h}var rs=qm;function Im(r){var t=-1,e=Array(r.size);return r.forEach(function(s,n){e[++t]=[n,s]}),e}var La=Im;function km(r){var t=-1,e=Array(r.size);return r.forEach(function(s){e[++t]=s}),e}var Oa=km;var Rm=1,Bm=2,Mm="[object Boolean]",Dm="[object Date]",jm="[object Error]",Pm="[object Map]",Um="[object Number]",Fm="[object RegExp]",Hm="[object Set]",zm="[object String]",$m="[object Symbol]",Km="[object ArrayBuffer]",Gm="[object DataView]",Ca=ct?ct.prototype:void 0,tn=Ca?Ca.valueOf:void 0;function Vm(r,t,e,s,n,i,o){switch(e){case Gm:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Km:return!(r.byteLength!=t.byteLength||!i(new Re(r),new Re(t)));case Mm:case Dm:case Um:return yt(+r,+t);case jm:return r.name==t.name&&r.message==t.message;case Fm:case zm:return r==t+"";case Pm:var a=La;case Hm:var l=s&Rm;if(a||(a=Oa),r.size!=t.size&&!l)return!1;var u=o.get(r);if(u)return u==t;s|=Bm,o.set(r,t);var c=rs(a(r),a(t),s,n,i,o);return o.delete(r),c;case $m:if(tn)return tn.call(r)==tn.call(t)}return!1}var _a=Vm;var Wm=1,Zm=Object.prototype,Xm=Zm.hasOwnProperty;function Qm(r,t,e,s,n,i){var o=e&Wm,a=nr(r),l=a.length,u=nr(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var h=a[f];if(!(o?h in t:Xm.call(t,h)))return!1}var p=i.get(r),m=i.get(t);if(p&&m)return p==t&&m==r;var y=!0;i.set(r,t),i.set(t,r);for(var v=o;++f<l;){h=a[f];var g=r[h],A=t[h];if(s)var E=o?s(A,g,h,t,r,i):s(g,A,h,r,t,i);if(!(E===void 0?g===A||n(g,A,e,s,i):E)){y=!1;break}v||(v=h=="constructor")}if(y&&!v){var T=r.constructor,N=t.constructor;T!=N&&"constructor"in r&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof N=="function"&&N instanceof N)&&(y=!1)}return i.delete(r),i.delete(t),y}var qa=Qm;var Ym=1,Ia="[object Arguments]",ka="[object Array]",ss="[object Object]",Jm=Object.prototype,Ra=Jm.hasOwnProperty;function tg(r,t,e,s,n,i){var o=ft(r),a=ft(t),l=o?ka:Ct(r),u=a?ka:Ct(t);l=l==Ia?ss:l,u=u==Ia?ss:u;var c=l==ss,f=u==ss,h=l==u;if(h&&St(r)){if(!St(t))return!1;o=!0,c=!1}if(h&&!c)return i||(i=new Vt),o||Se(r)?rs(r,t,e,s,n,i):_a(r,t,l,e,s,n,i);if(!(e&Ym)){var p=c&&Ra.call(r,"__wrapped__"),m=f&&Ra.call(t,"__wrapped__");if(p||m){var y=p?r.value():r,v=m?t.value():t;return i||(i=new Vt),n(y,v,e,s,i)}}return h?(i||(i=new Vt),qa(r,t,e,s,n,i)):!1}var Ba=tg;function Ma(r,t,e,s,n){return r===t?!0:r==null||t==null||!H(r)&&!H(t)?r!==r&&t!==t:Ba(r,t,e,s,Ma,n)}var Da=Ma;function eg(r){return function(t,e,s){for(var n=-1,i=Object(t),o=s(t),a=o.length;a--;){var l=o[r?a:++n];if(e(i[l],l,i)===!1)break}return t}}var ja=eg;var rg=ja(),Pa=rg;function sg(r,t,e){(e!==void 0&&!yt(r[t],e)||e===void 0&&!(t in r))&&Te(r,t,e)}var ir=sg;function ng(r){return H(r)&&Ht(r)}var Ua=ng;function ig(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}var or=ig;function og(r){return xt(r,vt(r))}var Fa=og;function ag(r,t,e,s,n,i,o){var a=or(r,e),l=or(t,e),u=o.get(l);if(u){ir(r,e,u);return}var c=i?i(a,l,e+"",r,t,o):void 0,f=c===void 0;if(f){var h=ft(l),p=!h&&St(l),m=!h&&!p&&Se(l);c=l,h||p||m?ft(a)?c=a:Ua(a)?c=Dr(a):p?(f=!1,c=Kr(l,!0)):m?(f=!1,c=Yr(l,!0)):c=[]:Do(l)||rr(l)?(c=a,rr(a)?c=Fa(a):(!z(a)||Ae(a))&&(c=Jr(l))):f=!1}f&&(o.set(l,c),n(c,l,s,i,o),o.delete(l)),ir(r,e,c)}var Ha=ag;function za(r,t,e,s,n){r!==t&&Pa(t,function(i,o){if(n||(n=new Vt),z(i))Ha(r,t,o,e,za,s,n);else{var a=s?s(or(r,o),i,o+"",r,t,n):void 0;a===void 0&&(a=i),ir(r,o,a)}},vt)}var $a=za;function lg(r,t){return Da(r,t)}var le=lg;var ug=io(function(r,t,e){$a(r,t,e)}),tt=ug;var ur={};jc(ur,{Attributor:()=>W,AttributorStore:()=>ar,BlockBlot:()=>ue,ClassAttributor:()=>D,ContainerBlot:()=>Ue,EmbedBlot:()=>q,InlineBlot:()=>ns,LeafBlot:()=>j,ParentBlot:()=>et,Registry:()=>Xt,Scope:()=>b,ScrollBlot:()=>lr,StyleAttributor:()=>rt,TextBlot:()=>Fe});var b=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(b||{}),W=class{constructor(t,e,s={}){this.attrName=t,this.keyName=e;let n=b.TYPE&b.ATTRIBUTE;this.scope=s.scope!=null?s.scope&b.LEVEL|n:b.ATTRIBUTE,s.whitelist!=null&&(this.whitelist=s.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){let e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}},Zt=class extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}},cg=(()=>{let r=class rn{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,s=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(s){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,s)}return null}create(e,s,n){let i=this.query(s);if(i==null)throw new Zt(`Unable to create ${s} blot`);let o=i,a=s instanceof Node||s.nodeType===Node.TEXT_NODE?s:o.create(n),l=new o(e,a,n);return rn.blots.set(l.domNode,l),l}find(e,s=!1){return rn.find(e,s)}query(e,s=b.ANY){let n;return typeof e=="string"?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:typeof e=="number"?e&b.LEVEL&b.BLOCK?n=this.types.block:e&b.LEVEL&b.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(n=this.classes[i],!!n)),n=n||this.tags[e.tagName]),n==null?null:"scope"in n&&s&b.LEVEL&n.scope&&s&b.TYPE&n.scope?n:null}register(...e){return e.map(s=>{let n="blotName"in s,i="attrName"in s;if(!n&&!i)throw new Zt("Invalid definition");if(n&&s.blotName==="abstract")throw new Zt("Cannot register abstract class");let o=n?s.blotName:i?s.attrName:void 0;return this.types[o]=s,i?typeof s.keyName=="string"&&(this.attributes[s.keyName]=s):n&&(s.className&&(this.classes[s.className]=s),s.tagName&&(Array.isArray(s.tagName)?s.tagName=s.tagName.map(a=>a.toUpperCase()):s.tagName=s.tagName.toUpperCase(),(Array.isArray(s.tagName)?s.tagName:[s.tagName]).forEach(a=>{(this.tags[a]==null||s.className==null)&&(this.tags[a]=s)}))),s})}};return r.blots=new WeakMap,r})(),Xt=cg;function Ka(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}var sn=class extends W{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){Ka(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){let e=(Ka(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}},D=sn;function en(r){let t=r.split("-"),e=t.slice(1).map(s=>s[0].toUpperCase()+s.slice(1)).join("");return t[0]+e}var nn=class extends W{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[en(this.keyName)]=e,!0):!1}remove(t){t.style[en(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){let e=t.style[en(this.keyName)];return this.canAdd(t,e)?e:""}},rt=nn,on=class{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};let t=Xt.find(this.domNode);if(t==null)return;let e=W.keys(this.domNode),s=D.keys(this.domNode),n=rt.keys(this.domNode);e.concat(s).concat(n).forEach(i=>{let o=t.scroll.query(i,b.ATTRIBUTE);o instanceof W&&(this.attributes[o.attrName]=o)})}copy(t){Object.keys(this.attributes).forEach(e=>{let s=this.attributes[e].value(this.domNode);t.format(e,s)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}},ar=on,Va=class{constructor(t,e){this.scroll=t,this.domNode=e,Xt.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new Zt("Blot definition missing tagName");let e,s;return Array.isArray(this.tagName)?(typeof t=="string"?(s=t.toUpperCase(),parseInt(s,10).toString()===s&&(s=parseInt(s,10))):typeof t=="number"&&(s=t),typeof s=="number"?e=document.createElement(this.tagName[s-1]):s&&this.tagName.indexOf(s)>-1?e=document.createElement(s):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){let t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),Xt.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,s,n){let i=this.isolate(t,e);if(this.scroll.query(s,b.BLOT)!=null&&n)i.wrap(s,n);else if(this.scroll.query(s,b.ATTRIBUTE)!=null){let o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(s,n)}}insertAt(t,e,s){let n=s==null?this.scroll.create("text",e):this.scroll.create(e,s),i=this.split(t);this.parent.insertBefore(n,i||void 0)}isolate(t,e){let s=this.split(t);if(s==null)throw new Error("Attempt to isolate at end");return s.split(e),s}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){let s=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(s,this.next||void 0),this.remove()),s}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){let s=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(s,this.next||void 0),typeof s.appendChild!="function")throw new Zt(`Cannot wrap ${t}`);return s.appendChild(this),s}};Va.blotName="abstract";var Wa=Va,Za=class extends Wa{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let s=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(s+=1),[this.parent.domNode,s]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Za.scope=b.INLINE_BLOT;var fg=Za,j=fg,an=class{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){let e=t.slice(1);this.append(...e)}}at(t){let e=this.iterator(),s=e();for(;s&&t>0;)t-=1,s=e();return s}contains(t){let e=this.iterator(),s=e();for(;s;){if(s===t)return!0;s=e()}return!1}indexOf(t){let e=this.iterator(),s=e(),n=0;for(;s;){if(s===t)return n;n+=1,s=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,s=this.head;for(;s!=null;){if(s===t)return e;e+=s.length(),s=s.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{let e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){let s=this.iterator(),n=s();for(;n;){let i=n.length();if(t<i||e&&t===i&&(n.next==null||n.next.length()!==0))return[n,t];t-=i,n=s()}return[null,0]}forEach(t){let e=this.iterator(),s=e();for(;s;)t(s),s=e()}forEachAt(t,e,s){if(e<=0)return;let[n,i]=this.find(t),o=t-i,a=this.iterator(n),l=a();for(;l&&o<t+e;){let u=l.length();t>o?s(l,t-o,Math.min(e,o+u-t)):s(l,0,Math.min(u,t+e-o)),o+=u,l=a()}}map(t){return this.reduce((e,s)=>(e.push(t(s)),e),[])}reduce(t,e){let s=this.iterator(),n=s();for(;n;)e=t(e,n),n=s();return e}};function Ga(r,t){let e=t.find(r);if(e)return e;try{return t.create(r)}catch{let s=t.create(b.INLINE);return Array.from(r.childNodes).forEach(n=>{s.domNode.appendChild(n)}),r.parentNode&&r.parentNode.replaceChild(s.domNode,r),s.attach(),s}}var hg=(()=>{let r=class Wt extends Wa{constructor(e,s){super(e,s),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,Wt.uiClass&&this.uiNode.classList.add(Wt.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new an,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{let s=Ga(e,this.scroll);this.insertBefore(s,this.children.head||void 0)}catch(s){if(s instanceof Zt)return;throw s}})}deleteAt(e,s){if(e===0&&s===this.length())return this.remove();this.children.forEachAt(e,s,(n,i,o)=>{n.deleteAt(i,o)})}descendant(e,s=0){let[n,i]=this.children.find(s);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,i]:n instanceof Wt?n.descendant(e,i):[null,-1]}descendants(e,s=0,n=Number.MAX_VALUE){let i=[],o=n;return this.children.forEachAt(s,n,(a,l,u)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&i.push(a),a instanceof Wt&&(i=i.concat(a.descendants(e,l,o))),o-=u}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(s=>{e||this.statics.allowedChildren.some(n=>s instanceof n)||(s.statics.scope===b.BLOCK_BLOT?(s.next!=null&&this.splitAfter(s),s.prev!=null&&this.splitAfter(s.prev),s.parent.unwrap(),e=!0):s instanceof Wt?s.unwrap():s.remove())})}formatAt(e,s,n,i){this.children.forEachAt(e,s,(o,a,l)=>{o.formatAt(a,l,n,i)})}insertAt(e,s,n){let[i,o]=this.children.find(e);if(i)i.insertAt(o,s,n);else{let a=n==null?this.scroll.create("text",s):this.scroll.create(s,n);this.appendChild(a)}}insertBefore(e,s){e.parent!=null&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,s||null),e.parent=this,s!=null&&(n=s.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,s)=>e+s.length(),0)}moveChildren(e,s){this.children.forEach(n=>{e.insertBefore(n,s)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){let s=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(s)}else this.remove()}path(e,s=!1){let[n,i]=this.children.find(e,s),o=[[this,e]];return n instanceof Wt?o.concat(n.path(i,s)):(n!=null&&o.push([n,i]),o)}removeChild(e){this.children.remove(e)}replaceWith(e,s){let n=typeof e=="string"?this.scroll.create(e,s):e;return n instanceof Wt&&this.moveChildren(n),super.replaceWith(n)}split(e,s=!1){if(!s){if(e===0)return this;if(e===this.length())return this.next}let n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(i,o,a)=>{let l=i.split(o,s);l!=null&&n.appendChild(l)}),n}splitAfter(e){let s=this.clone();for(;e.next!=null;)s.appendChild(e.next);return this.parent&&this.parent.insertBefore(s,this.next||void 0),s}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,s){let n=[],i=[];e.forEach(o=>{o.target===this.domNode&&o.type==="childList"&&(n.push(...o.addedNodes),i.push(...o.removedNodes))}),i.forEach(o=>{if(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;let a=this.scroll.find(o);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),n.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,a)=>o===a?0:o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let a=null;o.nextSibling!=null&&(a=this.scroll.find(o.nextSibling));let l=Ga(o,this.scroll);(l.next!==a||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,a||void 0))}),this.enforceAllowedChildren()}};return r.uiClass="",r})(),dg=hg,et=dg;function pg(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(let e in r)if(r[e]!==t[e])return!1;return!0}var Me=class De extends et{static create(t){return super.create(t)}static formats(t,e){let s=e.query(De.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new ar(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(s=>{s instanceof De||(s=s.wrap(De.blotName,!0)),this.attributes.copy(s)}),this.unwrap();else{let s=this.scroll.query(t,b.INLINE);if(s==null)return;s instanceof W?this.attributes.attribute(s,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){let t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,n){this.formats()[s]!=null||this.scroll.query(s,b.ATTRIBUTE)?this.isolate(t,e).format(s,n):super.formatAt(t,e,s,n)}optimize(t){super.optimize(t);let e=this.formats();if(Object.keys(e).length===0)return this.unwrap();let s=this.next;s instanceof De&&s.prev===this&&pg(e,s.formats())&&(s.moveChildren(this),s.remove())}replaceWith(t,e){let s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}wrap(t,e){let s=super.wrap(t,e);return s instanceof De&&this.attributes.move(s),s}};Me.allowedChildren=[Me,j],Me.blotName="inline",Me.scope=b.INLINE_BLOT,Me.tagName="SPAN";var mg=Me,ns=mg,je=class ln extends et{static create(t){return super.create(t)}static formats(t,e){let s=e.query(ln.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new ar(this.domNode)}format(t,e){let s=this.scroll.query(t,b.BLOCK);s!=null&&(s instanceof W?this.attributes.attribute(s,e):t===this.statics.blotName&&!e?this.replaceWith(ln.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){let t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,n){this.scroll.query(s,b.BLOCK)!=null?this.format(s,n):super.formatAt(t,e,s,n)}insertAt(t,e,s){if(s==null||this.scroll.query(e,b.INLINE)!=null)super.insertAt(t,e,s);else{let n=this.split(t);if(n!=null){let i=this.scroll.create(e,s);n.parent.insertBefore(i,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){let s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}};je.blotName="block",je.scope=b.BLOCK_BLOT,je.tagName="P",je.allowedChildren=[ns,je,j];var gg=je,ue=gg,un=class extends et{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,s,n){super.formatAt(t,e,s,n),this.enforceAllowedChildren()}insertAt(t,e,s){super.insertAt(t,e,s),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};un.blotName="container",un.scope=b.BLOCK_BLOT;var bg=un,Ue=bg,cn=class extends j{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,s,n){t===0&&e===this.length()?this.format(s,n):super.formatAt(t,e,s,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}},q=cn,yg={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},xg=100,Pe=class extends et{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(s=>{this.update(s)}),this.observer.observe(this.domNode,yg),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){let s=this.registry.find(t,e);return s?s.scroll===this?s:e?this.find(s.scroll.domNode.parentNode,!0):null:null}query(t,e=b.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach(s=>{s.remove()}):super.deleteAt(t,e)}formatAt(t,e,s,n){this.update(),super.formatAt(t,e,s,n)}insertAt(t,e,s){this.update(),super.insertAt(t,e,s)}optimize(t=[],e={}){super.optimize(e);let s=e.mutationsMap||new WeakMap,n=Array.from(this.observer.takeRecords());for(;n.length>0;)t.push(n.pop());let i=(l,u=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(s.has(l.domNode)||s.set(l.domNode,[]),u&&i(l.parent))},o=l=>{s.has(l.domNode)&&(l instanceof et&&l.children.forEach(o),s.delete(l.domNode),l.optimize(e))},a=t;for(let l=0;a.length>0;l+=1){if(l>=xg)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(u=>{let c=this.find(u.target,!0);c!=null&&(c.domNode===u.target&&(u.type==="childList"?(i(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(f=>{let h=this.find(f,!1);i(h,!1),h instanceof et&&h.children.forEach(p=>{i(p,!1)})})):u.type==="attributes"&&i(c.prev)),i(c))}),this.children.forEach(o),a=Array.from(this.observer.takeRecords()),n=a.slice();n.length>0;)t.push(n.pop())}}update(t,e={}){t=t||this.observer.takeRecords();let s=new WeakMap;t.map(n=>{let i=this.find(n.target,!0);return i==null?null:s.has(i.domNode)?(s.get(i.domNode).push(n),null):(s.set(i.domNode,[n]),i)}).forEach(n=>{n!=null&&n!==this&&s.has(n.domNode)&&n.update(s.get(n.domNode)||[],e)}),e.mutationsMap=s,s.has(this.domNode)&&super.update(s.get(this.domNode),e),this.optimize(t,e)}};Pe.blotName="scroll",Pe.defaultChild=ue,Pe.allowedChildren=[ue,Ue],Pe.scope=b.BLOCK_BLOT,Pe.tagName="DIV";var vg=Pe,lr=vg,fn=class Xa extends j{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,s){s==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,s)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Xa&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}let s=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(s,this.next||void 0),this.text=this.statics.value(this.domNode),s}update(t,e){t.some(s=>s.type==="characterData"&&s.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};fn.blotName="text",fn.scope=b.INLINE_BLOT;var Ag=fn,Fe=Ag;var ee=ot(lt(),1);var I=ot(lt(),1);var Xn=ot(lt(),1);var jb=(()=>{class r extends q{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}return r.blotName="break",r.tagName="BR",r})(),$=jb;var R=class extends Fe{},Pb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ye(r){return r.replace(/[&<>"']/g,t=>Pb[t])}var Ub=(()=>{class r extends ns{static allowedChildren=[r,$,q,R];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(e,s){let n=r.order.indexOf(e),i=r.order.indexOf(s);return n>=0||i>=0?n-i:e===s?0:e<s?-1:1}formatAt(e,s,n,i){if(r.compare(this.statics.blotName,n)<0&&this.scroll.query(n,b.BLOT)){let o=this.isolate(e,s);i&&o.wrap(n,i)}else super.formatAt(e,s,n,i)}optimize(e){if(super.optimize(e),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){let s=this.parent.isolate(this.offset(),this.length());this.moveChildren(s),s.wrap(this)}}}return r})(),K=Ub;var ku=1,B=(()=>{class r extends ue{cache={};delta(){return this.cache.delta==null&&(this.cache.delta=Qn(this)),this.cache.delta}deleteAt(e,s){super.deleteAt(e,s),this.cache={}}formatAt(e,s,n,i){s<=0||(this.scroll.query(n,b.BLOCK)?e+s===this.length()&&this.format(n,i):super.formatAt(e,Math.min(s,this.length()-e-1),n,i),this.cache={})}insertAt(e,s,n){if(n!=null){super.insertAt(e,s,n),this.cache={};return}if(s.length===0)return;let i=s.split(`
3
3
  `),o=i.shift();o.length>0&&(e<this.length()-1||this.children.tail==null?super.insertAt(Math.min(e,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let a=this;i.reduce((l,u)=>(a=a.split(l,!0),a.insertAt(0,u),u.length),e+o.length)}insertBefore(e,s){let{head:n}=this.children;super.insertBefore(e,s),n instanceof $&&n.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+ku),this.cache.length}moveChildren(e,s){super.moveChildren(e,s),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(s&&(e===0||e>=this.length()-ku)){let i=this.clone();return e===0?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}let n=super.split(e,s);return this.cache={},n}}return r.blotName="block",r.tagName="P",r.defaultChild=$,r.allowedChildren=[$,K,q,R],r})(),U=class extends q{attach(){super.attach(),this.attributes=new ar(this.domNode)}delta(){return new Xn.default().insert(this.value(),L(L({},this.formats()),this.attributes.values()))}format(t,e){let s=this.scroll.query(t,b.BLOCK_ATTRIBUTE);s!=null&&this.attributes.attribute(s,e)}formatAt(t,e,s,n){this.format(s,n)}insertAt(t,e,s){if(s!=null){super.insertAt(t,e,s);return}let n=e.split(`
4
4
  `),i=n.pop(),o=n.map(l=>{let u=this.scroll.create(B.blotName);return u.insertAt(0,l),u}),a=this.split(t);o.forEach(l=>{this.parent.insertBefore(l,a)}),i&&this.parent.insertBefore(this.scroll.create("text",i),a)}};U.scope=b.BLOCK_BLOT;function Qn(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(j).reduce((e,s)=>s.length()===0?e:e.insert(s.value(),st(s,{},t)),new Xn.default).insert(`
5
5
  `,st(r))}function st(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return r==null||("formats"in r&&typeof r.formats=="function"&&(t=L(L({},t),r.formats()),e&&delete t["code-token"]),r.parent==null||r.parent.statics.blotName==="scroll"||r.parent.statics.scope!==r.statics.scope)?t:st(r.parent,t,e)}var Fb=(()=>{class r extends q{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\uFEFF";static value(){}constructor(e,s,n){super(e,s),this.selection=n,this.textNode=document.createTextNode(r.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,s){if(this.savedLength!==0){super.format(e,s);return}let n=this,i=0;for(;n!=null&&n.statics.scope!==b.BLOCK_BLOT;)i+=n.offset(n.parent),n=n.parent;n!=null&&(this.savedLength=r.CONTENTS.length,n.optimize(),n.formatAt(i,r.CONTENTS.length,e,s),this.savedLength=0)}index(e,s){return e===this.textNode?0:super.index(e,s)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;let e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);let s=this.prev instanceof R?this.prev:null,n=s?s.length():0,i=this.next instanceof R?this.next:null,o=i?i.text:"",{textNode:a}=this,l=a.data.split(r.CONTENTS).join("");a.data=r.CONTENTS;let u;if(s)u=s,(l||i)&&(s.insertAt(s.length(),l+o),i&&i.remove());else if(i)u=i,i.insertAt(0,l);else{let c=document.createTextNode(l);u=this.scroll.create(c),this.parent.insertBefore(u,this)}if(this.remove(),e){let c=(p,m)=>s&&p===s.domNode?m:p===a?n+m-1:i&&p===i.domNode?n+l.length+m:null,f=c(e.start.node,e.start.offset),h=c(e.end.node,e.end.offset);if(f!==null&&h!==null)return{startNode:u.domNode,startOffset:f,endNode:u.domNode,endOffset:h}}return null}update(e,s){if(e.some(n=>n.type==="characterData"&&n.target===this.textNode)){let n=this.restore();n&&(s.range=n)}}optimize(e){super.optimize(e);let{parent:s}=this;for(;s;){if(s.domNode.tagName==="A"){this.savedLength=r.CONTENTS.length,s.isolate(this.offset(s),this.length()).unwrap(),this.savedLength=0;break}s=s.parent}}value(){return""}}return r})(),te=Fb;var Jn=ot(Bu(),1);var vr=new WeakMap;var ti=["error","warn","log","info"],ei="warn";function Mu(r){if(ei&&ti.indexOf(r)<=ti.indexOf(ei)){for(var t=arguments.length,e=new Array(t>1?t-1:0),s=1;s<t;s++)e[s-1]=arguments[s];console[r](...e)}}function ri(r){return ti.reduce((t,e)=>(t[e]=Mu.bind(console,e,r),t),{})}ri.level=r=>{ei=r};Mu.level=ri.level;var ut=ri;var si=ut("quill:events"),$b=["selectionchange","mousedown","mouseup","click"];$b.forEach(r=>{document.addEventListener(r,function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];Array.from(document.querySelectorAll(".ql-container")).forEach(n=>{let i=vr.get(n);i&&i.emitter&&i.emitter.handleDOM(...e)})})});var Kb=(()=>{class r extends Jn.default{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",si.error)}emit(){for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];return si.log.call(si,...s),super.emit(...s)}handleDOM(e){for(var s=arguments.length,n=new Array(s>1?s-1:0),i=1;i<s;i++)n[i-1]=arguments[i];(this.domListeners[e.type]||[]).forEach(o=>{let{node:a,handler:l}=o;(e.target===a||a.contains(e.target))&&l(e,...n)})}listenDOM(e,s,n){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:s,handler:n})}}return r})(),x=Kb;var ni=ut("quill:selection"),Q=class{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=t,this.length=e}},oi=class{constructor(t,e){this.emitter=e,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Q(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,x.sources.USER),1)}),this.emitter.on(x.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;let s=this.getNativeRange();s!=null&&s.start.node!==this.cursor.textNode&&this.emitter.once(x.events.SCROLL_UPDATE,(n,i)=>{try{this.root.contains(s.start.node)&&this.root.contains(s.end.node)&&this.setNativeRange(s.start.node,s.start.offset,s.end.node,s.end.offset);let o=i.some(a=>a.type==="characterData"||a.type==="childList"||a.type==="attributes"&&a.target===this.root);this.update(o?x.sources.SILENT:n)}catch{}})}),this.emitter.on(x.events.SCROLL_OPTIMIZE,(s,n)=>{if(n.range){let{startNode:i,startOffset:o,endNode:a,endOffset:l}=n.range;this.setNativeRange(i,o,a,l),this.update(x.sources.SILENT)}}),this.update(x.sources.SILENT)}handleComposition(){this.emitter.on(x.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(x.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){let t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(x.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(t,e){this.scroll.update();let s=this.getNativeRange();if(!(s==null||!s.native.collapsed||this.scroll.query(t,b.BLOCK))){if(s.start.node!==this.cursor.textNode){let n=this.scroll.find(s.start.node,!1);if(n==null)return;if(n instanceof j){let i=n.split(s.start.offset);n.parent.insertBefore(this.cursor,i)}else n.insertBefore(this.cursor,s.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=this.scroll.length();t=Math.min(t,s-1),e=Math.min(t+e,s-1)-t;let n,[i,o]=this.scroll.leaf(t);if(i==null)return null;if(e>0&&o===i.length()){let[c]=this.scroll.leaf(t+1);if(c){let[f]=this.scroll.line(t),[h]=this.scroll.line(t+1);f===h&&(i=c,o=0)}}[n,o]=i.position(o,!0);let a=document.createRange();if(e>0)return a.setStart(n,o),[i,o]=this.scroll.leaf(t+e),i==null?null:([n,o]=i.position(o,!0),a.setEnd(n,o),a.getBoundingClientRect());let l="left",u;if(n instanceof Text){if(!n.data.length)return null;o<n.data.length?(a.setStart(n,o),a.setEnd(n,o+1)):(a.setStart(n,o-1),a.setEnd(n,o),l="right"),u=a.getBoundingClientRect()}else{if(!(i.domNode instanceof Element))return null;u=i.domNode.getBoundingClientRect(),o>0&&(l="right")}return{bottom:u.top+u.height,height:u.height,left:u[l],right:u[l],top:u.top,width:0}}getNativeRange(){let t=document.getSelection();if(t==null||t.rangeCount<=0)return null;let e=t.getRangeAt(0);if(e==null)return null;let s=this.normalizeNative(e);return ni.info("getNativeRange",s),s}getRange(){let t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];let e=this.getNativeRange();return e==null?[null,null]:[this.normalizedToRange(e),e]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&ii(this.root,document.activeElement)}normalizedToRange(t){let e=[[t.start.node,t.start.offset]];t.native.collapsed||e.push([t.end.node,t.end.offset]);let s=e.map(o=>{let[a,l]=o,u=this.scroll.find(a,!0),c=u.offset(this.scroll);return l===0?c:u instanceof j?c+u.index(a,l):c+u.length()}),n=Math.min(Math.max(...s),this.scroll.length()-1),i=Math.min(n,...s);return new Q(i,n-i)}normalizeNative(t){if(!ii(this.root,t.startContainer)||!t.collapsed&&!ii(this.root,t.endContainer))return null;let e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(s=>{let{node:n,offset:i}=s;for(;!(n instanceof Text)&&n.childNodes.length>0;)if(n.childNodes.length>i)n=n.childNodes[i],i=0;else if(n.childNodes.length===i)n=n.lastChild,n instanceof Text?i=n.data.length:n.childNodes.length>0?i=n.childNodes.length:i=n.childNodes.length+1;else break;s.node=n,s.offset=i}),e}rangeToNative(t){let e=this.scroll.length(),s=(n,i)=>{n=Math.min(e-1,n);let[o,a]=this.scroll.leaf(n);return o?o.position(a,i):[null,-1]};return[...s(t.index,!1),...s(t.index+t.length,!0)]}setNativeRange(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(ni.info("setNativeRange",t,e,s,n),t!=null&&(this.root.parentNode==null||t.parentNode==null||s.parentNode==null))return;let o=document.getSelection();if(o!=null)if(t!=null){this.hasFocus()||this.root.focus({preventScroll:!0});let{native:a}=this.getNativeRange()||{};if(a==null||i||t!==a.startContainer||e!==a.startOffset||s!==a.endContainer||n!==a.endOffset){t instanceof Element&&t.tagName==="BR"&&(e=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),s instanceof Element&&s.tagName==="BR"&&(n=Array.from(s.parentNode.childNodes).indexOf(s),s=s.parentNode);let l=document.createRange();l.setStart(t,e),l.setEnd(s,n),o.removeAllRanges(),o.addRange(l)}}else o.removeAllRanges(),this.root.blur()}setRange(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x.sources.API;if(typeof e=="string"&&(s=e,e=!1),ni.info("setRange",t),t!=null){let n=this.rangeToNative(t);this.setNativeRange(...n,e)}else this.setNativeRange(null);this.update(s)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x.sources.USER,e=this.lastRange,[s,n]=this.getRange();if(this.lastRange=s,this.lastNative=n,this.lastRange!=null&&(this.savedRange=this.lastRange),!le(e,this.lastRange)){if(!this.composing&&n!=null&&n.native.collapsed&&n.start.node!==this.cursor.textNode){let o=this.cursor.restore();o&&this.setNativeRange(o.startNode,o.startOffset,o.endNode,o.endOffset)}let i=[x.events.SELECTION_CHANGE,At(this.lastRange),At(e),t];this.emitter.emit(x.events.EDITOR_CHANGE,...i),t!==x.sources.SILENT&&this.emitter.emit(...i)}}};function ii(r,t){try{t.parentNode}catch{return!1}return r.contains(t)}var Du=oi;var Gb=/^[ -~]*$/,li=class{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let e=this.scroll.length();this.scroll.batchStart();let s=ju(t),n=new I.default;return Wb(s.ops.slice()).reduce((o,a)=>{let l=I.Op.length(a),u=a.attributes||{},c=!1,f=!1;if(a.insert!=null){if(n.retain(l),typeof a.insert=="string"){let m=a.insert;f=!m.endsWith(`
@@ -1,5 +1,5 @@
1
1
  <!doctype html>
2
- <html lang="en" data-critters-container>
2
+ <html lang="en" data-beasties-container>
3
3
 
4
4
  <head>
5
5
  <meta charset="utf-8">
@@ -8,12 +8,13 @@
8
8
  <meta name="viewport" content="width=device-width, initial-scale=1">
9
9
  <link rel="icon" type="image/x-icon" href="favicon.ico">
10
10
  <!-- Load the published bundle from jsDelivr using loader.js (swap the version number when you cut a new release) -->
11
- <script src="https://cdn.jsdelivr.net/npm/highcourt-affidavit-elements@0.2.13/dist/affidavit-library/browser/loader.js" data-token="FHC-INTEG-pk_f0a01636119a45d218c2016758e368be"></script>
12
- <style>@layer primeng{@-webkit-keyframes p-fadein{0%{opacity:0}to{opacity:1}}}@-webkit-keyframes p-icon-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@font-face{font-family:Comfortaa;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/comfortaa/v47/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMDr4fIA9c.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Comfortaa;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/comfortaa/v47/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMDrcfIA9c.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Comfortaa;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/comfortaa/v47/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMDrAfIA9c.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Comfortaa;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/comfortaa/v47/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMDrwfIA9c.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Comfortaa;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/comfortaa/v47/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMDr0fIA9c.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Comfortaa;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/comfortaa/v47/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMDrMfIA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--surface-a: #c5c3c3;--surface-b: #efefef;--surface-c: #e9ecef;--surface-d: #dee2e6;--surface-e: #ffffff;--surface-f: #ffffff;--surface-g: #ffffff;--surface-f: #fdcf6f;--text-color: #212529;--text-color-secondary: #000000;--primary-color: #0d6449;--primary-color-text: #ffffff;--font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;--surface-0: #ffffff;--surface-50: #FAFAFA;--surface-100: #F5F5F5;--surface-200: #EEEEEE;--surface-300: #E0E0E0;--surface-400: #BDBDBD;--surface-500: #9E9E9E;--surface-600: #757575;--surface-700: #616161;--surface-800: #424242;--surface-900: #212121;--gray-50: #FAFAFA;--gray-100: #F5F5F5;--gray-200: #EEEEEE;--gray-300: #E0E0E0;--gray-400: #BDBDBD;--gray-500: #9E9E9E;--gray-600: #757575;--gray-700: #616161;--gray-800: #424242;--gray-900: #212121;--content-padding: 1.25rem;--inline-spacing: .5rem;--border-radius: 6px;--surface-ground: #F7F7FA;--surface-section: #ffffff;--surface-card: #ffffff;--surface-overlay: #ffffff;--surface-border: #dfe7ef;--surface-hover: #f6f9fc;--focus-ring: 0 0 0 .2rem #BFDBFE;--maskbg: rgba(0, 0, 0, .4);color-scheme:light}*{box-sizing:border-box}body{font-family:Comfortaa,sans-serif!important}:root{--blue-50: #f5f9ff;--blue-100: #d0e1fd;--blue-200: #abc9fb;--blue-300: #85b2f9;--blue-400: #609af8;--blue-500: #3b82f6;--blue-600: #326fd1;--blue-700: #295bac;--blue-800: #204887;--blue-900: #183462;--green-50: #f4fcf7;--green-100: #caf1d8;--green-200: #a0e6ba;--green-300: #76db9b;--green-400: #4cd07d;--green-500: #22c55e;--green-600: #1da750;--green-700: #188a42;--green-800: #136c34;--green-900: #0e4f26;--yellow-50: #fefbf3;--yellow-100: #faedc4;--yellow-200: #f6de95;--yellow-300: #f2d066;--yellow-400: #eec137;--yellow-500: #eab308;--yellow-600: #c79807;--yellow-700: #a47d06;--yellow-800: #816204;--yellow-900: #5e4803;--cyan-50: #f3fbfd;--cyan-100: #c3edf5;--cyan-200: #94e0ed;--cyan-300: #65d2e4;--cyan-400: #35c4dc;--cyan-500: #06b6d4;--cyan-600: #059bb4;--cyan-700: #047f94;--cyan-800: #036475;--cyan-900: #024955;--pink-50: #fef6fa;--pink-100: #fad3e7;--pink-200: #f7b0d3;--pink-300: #f38ec0;--pink-400: #f06bac;--pink-500: #ec4899;--pink-600: #c93d82;--pink-700: #a5326b;--pink-800: #822854;--pink-900: #5e1d3d;--indigo-50: #f7f7fe;--indigo-100: #dadafc;--indigo-200: #bcbdf9;--indigo-300: #9ea0f6;--indigo-400: #8183f4;--indigo-500: #6366f1;--indigo-600: #5457cd;--indigo-700: #4547a9;--indigo-800: #363885;--indigo-900: #282960;--teal-50: #f3fbfb;--teal-100: #c7eeea;--teal-200: #9ae0d9;--teal-300: #6dd3c8;--teal-400: #41c5b7;--teal-500: #14b8a6;--teal-600: #119c8d;--teal-700: #0e8174;--teal-800: #0b655b;--teal-900: #084a42;--orange-50: #fff8f3;--orange-100: #feddc7;--orange-200: #fcc39b;--orange-300: #fba86f;--orange-400: #fa8e42;--orange-500: #f97316;--orange-600: #d46213;--orange-700: #ae510f;--orange-800: #893f0c;--orange-900: #642e09;--bluegray-50: #f7f8f9;--bluegray-100: #dadee3;--bluegray-200: #bcc3cd;--bluegray-300: #9fa9b7;--bluegray-400: #818ea1;--bluegray-500: #64748b;--bluegray-600: #556376;--bluegray-700: #465161;--bluegray-800: #37404c;--bluegray-900: #282e38;--purple-50: #fbf7ff;--purple-100: #ead6fd;--purple-200: #dab6fc;--purple-300: #c996fa;--purple-400: #b975f9;--purple-500: #a855f7;--purple-600: #8f48d2;--purple-700: #763cad;--purple-800: #5c2f88;--purple-900: #432263;--red-50: #fff5f5;--red-100: #ffd0ce;--red-200: #ffaca7;--red-300: #ff8780;--red-400: #ff6259;--red-500: #ff3d32;--red-600: #d9342b;--red-700: #b32b23;--red-800: #8c221c;--red-900: #661814;--primary-50: #f5f9ff;--primary-100: #d0e1fd;--primary-200: #abc9fb;--primary-300: #85b2f9;--primary-400: #609af8;--primary-500: #3b82f6;--primary-600: #326fd1;--primary-700: #295bac;--primary-800: #204887;--primary-900: #183462}body{font-family:Poppins,sans-serif!important}@media print{@page{margin:0}body,html{background-color:#fff}}@-webkit-keyframes fadein{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadein{0%{opacity:.5}to{opacity:1}}
13
- </style><link rel="stylesheet" href="styles.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.css"></noscript><link rel="modulepreload" href="chunk-MON7YFGF.js"></head>
11
+ <!-- <script
12
+ src="https://cdn.jsdelivr.net/npm/highcourt-affidavit-elements@0.2.13/dist/affidavit-library/browser/loader.js"
13
+ data-token="FHC-INTEG-pk_f0a01636119a45d218c2016758e368be"></script> -->
14
+ <link rel="stylesheet" href="styles.css"></head>
14
15
 
15
16
  <body>
16
17
  <app-root></app-root>
17
- <script src="polyfills.js" type="module"></script><script src="main.js" type="module"></script></body>
18
+ <link rel="modulepreload" href="chunk-GAL4ENT6.js"><script src="polyfills.js" type="module"></script><script src="main.js" type="module"></script></body>
18
19
 
19
20
  </html>