Files
swiftadmin/public/static/js/markdown/cherry-markdown.min.js
2022-08-19 19:48:37 +08:00

1 line
2.3 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).Cherry={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}var i,a,o=function(t){return t&&t.Math==Math&&t},s=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof e&&e)||function(){return this}()||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},l=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),A=Function.prototype,u=A.apply,h=A.call,f="object"==typeof Reflect&&Reflect.apply||(l?h.bind(u):function(){return h.apply(u,arguments)}),d=Function.prototype,p=d.bind,g=d.call,m=l&&p.bind(g,g),y=l?function(t){return t&&m(t)}:function(t){return t&&function(){return g.apply(t,arguments)}},v=function(t){return"function"==typeof t},b=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),w=Function.prototype.call,_=l?w.bind(w):function(){return w.apply(w,arguments)},E={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,x={f:C&&!E.call({1:2},1)?function(t){var e=C(this,t);return!!e&&e.enumerable}:E},B=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},T=y({}.toString),k=y("".slice),S=function(t){return k(T(t),8,-1)},I=s.Object,N=y("".split),M=c((function(){return!I("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?N(t,""):I(t)}:I,F=s.TypeError,D=function(t){if(null==t)throw F("Can't call method on "+t);return t},L=function(t){return M(D(t))},O=function(t){return"object"==typeof t?null!==t:v(t)},R={},U=function(t){return v(t)?t:void 0},P=function(t,e){return arguments.length<2?U(R[t])||U(s[t]):R[t]&&R[t][e]||s[t]&&s[t][e]},Q=y({}.isPrototypeOf),H=P("navigator","userAgent")||"",G=s.process,j=s.Deno,K=G&&G.versions||j&&j.version,$=K&&K.v8;$&&(a=(i=$.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!a&&H&&(!(i=H.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=H.match(/Chrome\/(\d+)/))&&(a=+i[1]);var Y=a,V=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),z=V&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W=s.Object,q=z?function(t){return"symbol"==typeof t}:function(t){var e=P("Symbol");return v(e)&&Q(e.prototype,W(t))},X=s.String,J=function(t){try{return X(t)}catch(t){return"Object"}},Z=s.TypeError,tt=function(t){if(v(t))return t;throw Z(J(t)+" is not a function")},et=function(t,e){var n=t[e];return null==n?void 0:tt(n)},nt=s.TypeError,rt=Object.defineProperty,it=s["__core-js_shared__"]||function(t,e){try{rt(s,t,{value:e,configurable:!0,writable:!0})}catch(n){s[t]=e}return e}("__core-js_shared__",{}),at=r((function(t){(t.exports=function(t,e){return it[t]||(it[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.6",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})})),ot=s.Object,st=function(t){return ot(D(t))},ct=y({}.hasOwnProperty),lt=Object.hasOwn||function(t,e){return ct(st(t),e)},At=0,ut=Math.random(),ht=y(1..toString),ft=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ht(++At+ut,36)},dt=at("wks"),pt=s.Symbol,gt=pt&&pt.for,mt=z?pt:pt&&pt.withoutSetter||ft,yt=function(t){if(!lt(dt,t)||!V&&"string"!=typeof dt[t]){var e="Symbol."+t;V&&lt(pt,t)?dt[t]=pt[t]:dt[t]=z&&gt?gt(e):mt(e)}return dt[t]},vt=s.TypeError,bt=yt("toPrimitive"),wt=function(t,e){if(!O(t)||q(t))return t;var n,r=et(t,bt);if(r){if(void 0===e&&(e="default"),n=_(r,t,e),!O(n)||q(n))return n;throw vt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&v(n=t.toString)&&!O(r=_(n,t)))return r;if(v(n=t.valueOf)&&!O(r=_(n,t)))return r;if("string"!==e&&v(n=t.toString)&&!O(r=_(n,t)))return r;throw nt("Can't convert object to primitive value")}(t,e)},_t=function(t){var e=wt(t,"string");return q(e)?e:e+""},Et=s.document,Ct=O(Et)&&O(Et.createElement),xt=function(t){return Ct?Et.createElement(t):{}},Bt=!b&&!c((function(){return 7!=Object.defineProperty(xt("div"),"a",{get:function(){return 7}}).a})),Tt=Object.getOwnPropertyDescriptor,kt={f:b?Tt:function(t,e){if(t=L(t),e=_t(e),Bt)try{return Tt(t,e)}catch(t){}if(lt(t,e))return B(!_(x.f,t,e),t[e])}},St=/#|\.prototype\./,It=function(t,e){var n=Mt[Nt(t)];return n==Dt||n!=Ft&&(v(e)?c(e):!!e)},Nt=It.normalize=function(t){return String(t).replace(St,".").toLowerCase()},Mt=It.data={},Ft=It.NATIVE="N",Dt=It.POLYFILL="P",Lt=It,Ot=y(y.bind),Rt=function(t,e){return tt(t),void 0===e?t:l?Ot(t,e):function(){return t.apply(e,arguments)}},Ut=b&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pt=s.String,Qt=s.TypeError,Ht=function(t){if(O(t))return t;throw Qt(Pt(t)+" is not an object")},Gt=s.TypeError,jt=Object.defineProperty,Kt=Object.getOwnPropertyDescriptor,$t={f:b?Ut?function(t,e,n){if(Ht(t),e=_t(e),Ht(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=Kt(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return jt(t,e,n)}:jt:function(t,e,n){if(Ht(t),e=_t(e),Ht(n),Bt)try{return jt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Gt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Yt=b?function(t,e,n){return $t.f(t,e,B(1,n))}:function(t,e,n){return t[e]=n,t},Vt=kt.f,zt=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return f(t,this,arguments)};return e.prototype=t.prototype,e},Wt=function(t,e){var n,r,i,a,o,c,l,A,u=t.target,h=t.global,f=t.stat,d=t.proto,p=h?s:f?s[u]:(s[u]||{}).prototype,g=h?R:R[u]||Yt(R,u,{})[u],m=g.prototype;for(i in e)n=!Lt(h?i:u+(f?".":"#")+i,t.forced)&&p&&lt(p,i),o=g[i],n&&(c=t.dontCallGetSet?(A=Vt(p,i))&&A.value:p[i]),a=n&&c?c:e[i],n&&typeof o==typeof a||(l=t.bind&&n?Rt(a,s):t.wrap&&n?zt(a):d&&v(a)?y(a):a,(t.sham||a&&a.sham||o&&o.sham)&&Yt(l,"sham",!0),Yt(g,i,l),d&&(lt(R,r=u+"Prototype")||Yt(R,r,{}),Yt(R[r],i,a),t.real&&m&&!m[i]&&Yt(m,i,a)))},qt=y([].slice),Xt=s.Function,Jt=y([].concat),Zt=y([].join),te={},ee=function(t,e,n){if(!lt(te,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";te[e]=Xt("C,a","return new C("+Zt(r,",")+")")}return te[e](t,n)},ne=l?Xt.bind:function(t){var e=tt(this),n=e.prototype,r=qt(arguments,1),i=function(){var n=Jt(r,qt(arguments));return this instanceof i?ee(e,n.length,n):e.apply(t,n)};return O(n)&&(i.prototype=n),i},re={};re[yt("toStringTag")]="z";var ie="[object z]"===String(re),ae=yt("toStringTag"),oe=s.Object,se="Arguments"==S(function(){return arguments}()),ce=ie?S:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=oe(t),ae))?n:se?S(e):"Object"==(r=S(e))&&v(e.callee)?"Arguments":r},le=y(Function.toString);v(it.inspectSource)||(it.inspectSource=function(t){return le(t)});var Ae=it.inspectSource,ue=function(){},he=[],fe=P("Reflect","construct"),de=/^\s*(?:class|function)\b/,pe=y(de.exec),ge=!de.exec(ue),me=function(t){if(!v(t))return!1;try{return fe(ue,he,t),!0}catch(t){return!1}},ye=function(t){if(!v(t))return!1;switch(ce(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ge||!!pe(de,Ae(t))}catch(t){return!0}};ye.sham=!0;var ve,be=!fe||c((function(){var t;return me(me.call)||!me(Object)||!me((function(){t=!0}))||t}))?ye:me,we=s.TypeError,_e=function(t){if(be(t))return t;throw we(J(t)+" is not a constructor")},Ee=Math.ceil,Ce=Math.floor,xe=Math.trunc||function(t){var e=+t;return(e>0?Ce:Ee)(e)},Be=function(t){var e=+t;return e!=e||0===e?0:xe(e)},Te=Math.max,ke=Math.min,Se=function(t,e){var n=Be(t);return n<0?Te(n+e,0):ke(n,e)},Ie=Math.min,Ne=function(t){return t>0?Ie(Be(t),9007199254740991):0},Me=function(t){return Ne(t.length)},Fe=function(t){return function(e,n,r){var i,a=L(e),o=Me(a),s=Se(r,o);if(t&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}},De={includes:Fe(!0),indexOf:Fe(!1)},Le={},Oe=De.indexOf,Re=y([].push),Ue=function(t,e){var n,r=L(t),i=0,a=[];for(n in r)!lt(Le,n)&&lt(r,n)&&Re(a,n);for(;e.length>i;)lt(r,n=e[i++])&&(~Oe(a,n)||Re(a,n));return a},Pe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qe=Object.keys||function(t){return Ue(t,Pe)},He={f:b&&!Ut?Object.defineProperties:function(t,e){Ht(t);for(var n,r=L(e),i=Qe(e),a=i.length,o=0;a>o;)$t.f(t,n=i[o++],r[n]);return t}},Ge=P("document","documentElement"),je=at("keys"),Ke=function(t){return je[t]||(je[t]=ft(t))},$e=Ke("IE_PROTO"),Ye=function(){},Ve=function(t){return"<script>"+t+"<\/script>"},ze=function(t){t.write(Ve("")),t.close();var e=t.parentWindow.Object;return t=null,e},We=function(){try{ve=new ActiveXObject("htmlfile")}catch(t){}var t,e;We="undefined"!=typeof document?document.domain&&ve?ze(ve):((e=xt("iframe")).style.display="none",Ge.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ve("document.F=Object")),t.close(),t.F):ze(ve);for(var n=Pe.length;n--;)delete We.prototype[Pe[n]];return We()};Le[$e]=!0;var qe=Object.create||function(t,e){var n;return null!==t?(Ye.prototype=Ht(t),n=new Ye,Ye.prototype=null,n[$e]=t):n=We(),void 0===e?n:He.f(n,e)},Xe=P("Reflect","construct"),Je=Object.prototype,Ze=[].push,tn=c((function(){function t(){}return!(Xe((function(){}),[],t)instanceof t)})),en=!c((function(){Xe((function(){}))})),nn=tn||en;Wt({target:"Reflect",stat:!0,forced:nn,sham:nn},{construct:function(t,e){_e(t),Ht(e);var n=arguments.length<3?t:_e(arguments[2]);if(en&&!tn)return Xe(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return f(Ze,r,e),new(f(ne,t,r))}var i=n.prototype,a=qe(O(i)?i:Je),o=f(t,a,e);return O(o)?o:a}});var rn=R.Reflect.construct,an=rn,on=Array.isArray||function(t){return"Array"==S(t)},sn=function(t,e,n){var r=_t(e);r in t?$t.f(t,r,B(0,n)):t[r]=n},cn=yt("species"),ln=function(t){return Y>=51||!c((function(){var e=[];return(e.constructor={})[cn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},An=ln("slice"),un=yt("species"),hn=s.Array,fn=Math.max;Wt({target:"Array",proto:!0,forced:!An},{slice:function(t,e){var n,r,i,a=L(this),o=Me(a),s=Se(t,o),c=Se(void 0===e?o:e,o);if(on(a)&&(n=a.constructor,(be(n)&&(n===hn||on(n.prototype))||O(n)&&null===(n=n[un]))&&(n=void 0),n===hn||void 0===n))return qt(a,s,c);for(r=new(void 0===n?hn:n)(fn(c-s,0)),i=0;s<c;s++,i++)s in a&&sn(r,i,a[s]);return r.length=i,r}});var dn,pn,gn,mn=function(t){return R[t+"Prototype"]},yn=mn("Array").slice,vn=Array.prototype,bn=function(t){var e=t.slice;return t===vn||Q(vn,t)&&e===vn.slice?yn:e},wn=bn,_n=s.String,En=function(t){if("Symbol"===ce(t))throw TypeError("Cannot convert a Symbol value to a string");return _n(t)},Cn=y("".charAt),xn=y("".charCodeAt),Bn=y("".slice),Tn=function(t){return function(e,n){var r,i,a=En(D(e)),o=Be(n),s=a.length;return o<0||o>=s?t?"":void 0:(r=xn(a,o))<55296||r>56319||o+1===s||(i=xn(a,o+1))<56320||i>57343?t?Cn(a,o):r:t?Bn(a,o,o+2):i-56320+(r-55296<<10)+65536}},kn={codeAt:Tn(!1),charAt:Tn(!0)},Sn=s.WeakMap,In=v(Sn)&&/native code/.test(Ae(Sn)),Nn=s.TypeError,Mn=s.WeakMap;if(In||it.state){var Fn=it.state||(it.state=new Mn),Dn=y(Fn.get),Ln=y(Fn.has),On=y(Fn.set);dn=function(t,e){if(Ln(Fn,t))throw new Nn("Object already initialized");return e.facade=t,On(Fn,t,e),e},pn=function(t){return Dn(Fn,t)||{}},gn=function(t){return Ln(Fn,t)}}else{var Rn=Ke("state");Le[Rn]=!0,dn=function(t,e){if(lt(t,Rn))throw new Nn("Object already initialized");return e.facade=t,Yt(t,Rn,e),e},pn=function(t){return lt(t,Rn)?t[Rn]:{}},gn=function(t){return lt(t,Rn)}}var Un,Pn,Qn,Hn={set:dn,get:pn,has:gn,enforce:function(t){return gn(t)?pn(t):dn(t,{})},getterFor:function(t){return function(e){var n;if(!O(e)||(n=pn(e)).type!==t)throw Nn("Incompatible receiver, "+t+" required");return n}}},Gn=Function.prototype,jn=b&&Object.getOwnPropertyDescriptor,Kn=lt(Gn,"name"),$n={EXISTS:Kn,PROPER:Kn&&"something"===function(){}.name,CONFIGURABLE:Kn&&(!b||b&&jn(Gn,"name").configurable)},Yn=!c((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Vn=Ke("IE_PROTO"),zn=s.Object,Wn=zn.prototype,qn=Yn?zn.getPrototypeOf:function(t){var e=st(t);if(lt(e,Vn))return e[Vn];var n=e.constructor;return v(n)&&e instanceof n?n.prototype:e instanceof zn?Wn:null},Xn=function(t,e,n,r){return r&&r.enumerable?t[e]=n:Yt(t,e,n),t},Jn=yt("iterator"),Zn=!1;[].keys&&("next"in(Qn=[].keys())?(Pn=qn(qn(Qn)))!==Object.prototype&&(Un=Pn):Zn=!0);var tr=null==Un||c((function(){var t={};return Un[Jn].call(t)!==t}));Un=tr?{}:qe(Un),v(Un[Jn])||Xn(Un,Jn,(function(){return this}));var er={IteratorPrototype:Un,BUGGY_SAFARI_ITERATORS:Zn},nr=ie?{}.toString:function(){return"[object "+ce(this)+"]"},rr=$t.f,ir=yt("toStringTag"),ar=function(t,e,n,r){if(t){var i=n?t:t.prototype;lt(i,ir)||rr(i,ir,{configurable:!0,value:e}),r&&!ie&&Yt(i,"toString",nr)}},or={},sr=er.IteratorPrototype,cr=function(){return this},lr=s.String,Ar=s.TypeError,ur=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=y(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Ht(n),function(t){if("object"==typeof t||v(t))return t;throw Ar("Can't set "+lr(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),hr=$n.PROPER,fr=er.BUGGY_SAFARI_ITERATORS,dr=yt("iterator"),pr=function(){return this},gr=function(t,e,n,r,i,a,o){!function(t,e,n,r){var i=e+" Iterator";t.prototype=qe(sr,{next:B(+!r,n)}),ar(t,i,!1,!0),or[i]=cr}(n,e,r);var s,c,l,A=function(t){if(t===i&&p)return p;if(!fr&&t in f)return f[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},u=e+" Iterator",h=!1,f=t.prototype,d=f[dr]||f["@@iterator"]||i&&f[i],p=!fr&&d||A(i),g="Array"==e&&f.entries||d;if(g&&(s=qn(g.call(new t)))!==Object.prototype&&s.next&&(ar(s,u,!0,!0),or[u]=pr),hr&&"values"==i&&d&&"values"!==d.name&&(h=!0,p=function(){return _(d,this)}),i)if(c={values:A("values"),keys:a?p:A("keys"),entries:A("entries")},o)for(l in c)(fr||h||!(l in f))&&Xn(f,l,c[l]);else Wt({target:e,proto:!0,forced:fr||h},c);return o&&f[dr]!==p&&Xn(f,dr,p,{name:i}),or[e]=p,c},mr=kn.charAt,yr=Hn.set,vr=Hn.getterFor("String Iterator");gr(String,"String",(function(t){yr(this,{type:"String Iterator",string:En(t),index:0})}),(function(){var t,e=vr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=mr(n,r),e.index+=t.length,{value:t,done:!1})}));var br=function(t,e,n){var r,i;Ht(t);try{if(!(r=et(t,"return"))){if("throw"===e)throw n;return n}r=_(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return Ht(r),n},wr=function(t,e,n,r){try{return r?e(Ht(n)[0],n[1]):e(n)}catch(e){br(t,"throw",e)}},_r=yt("iterator"),Er=Array.prototype,Cr=function(t){return void 0!==t&&(or.Array===t||Er[_r]===t)},xr=yt("iterator"),Br=function(t){if(null!=t)return et(t,xr)||et(t,"@@iterator")||or[ce(t)]},Tr=s.TypeError,kr=function(t,e){var n=arguments.length<2?Br(t):e;if(tt(n))return Ht(_(n,t));throw Tr(J(t)+" is not iterable")},Sr=s.Array,Ir=yt("iterator"),Nr=!1;try{var Mr=0,Fr={next:function(){return{done:!!Mr++}},return:function(){Nr=!0}};Fr[Ir]=function(){return this},Array.from(Fr,(function(){throw 2}))}catch(t){}var Dr=function(t,e){if(!e&&!Nr)return!1;var n=!1;try{var r={};r[Ir]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Lr=!Dr((function(t){Array.from(t)}));Wt({target:"Array",stat:!0,forced:Lr},{from:function(t){var e=st(t),n=be(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=void 0!==i;a&&(i=Rt(i,r>2?arguments[2]:void 0));var o,s,c,l,A,u,h=Br(e),f=0;if(!h||this==Sr&&Cr(h))for(o=Me(e),s=n?new this(o):Sr(o);o>f;f++)u=a?i(e[f],f):e[f],sn(s,f,u);else for(A=(l=kr(e,h)).next,s=n?new this:[];!(c=_(A,l)).done;f++)u=a?wr(l,i,[c.value,f],!0):c.value,sn(s,f,u);return s.length=f,s}});var Or=R.Array.from,Rr=Or,Ur=yt("species"),Pr=s.Array,Qr=function(t,e){return new(function(t){var e;return on(t)&&(e=t.constructor,(be(e)&&(e===Pr||on(e.prototype))||O(e)&&null===(e=e[Ur]))&&(e=void 0)),void 0===e?Pr:e}(t))(0===e?0:e)},Hr=yt("isConcatSpreadable"),Gr=s.TypeError,jr=Y>=51||!c((function(){var t=[];return t[Hr]=!1,t.concat()[0]!==t})),Kr=ln("concat"),$r=function(t){if(!O(t))return!1;var e=t[Hr];return void 0!==e?!!e:on(t)};Wt({target:"Array",proto:!0,arity:1,forced:!jr||!Kr},{concat:function(t){var e,n,r,i,a,o=st(this),s=Qr(o,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if($r(a=-1===e?o:arguments[e])){if(c+(i=Me(a))>9007199254740991)throw Gr("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in a&&sn(s,c,a[n])}else{if(c>=9007199254740991)throw Gr("Maximum allowed index exceeded");sn(s,c++,a)}return s.length=c,s}});var Yr=Pe.concat("length","prototype"),Vr={f:Object.getOwnPropertyNames||function(t){return Ue(t,Yr)}},zr=s.Array,Wr=Math.max,qr=Vr.f,Xr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Jr=function(t){try{return qr(t)}catch(t){return function(t,e,n){for(var r=Me(t),i=Se(e,r),a=Se(void 0===n?r:n,r),o=zr(Wr(a-i,0)),s=0;i<a;i++,s++)sn(o,s,t[i]);return o.length=s,o}(Xr)}},Zr={f:function(t){return Xr&&"Window"==S(t)?Jr(t):qr(L(t))}},ti={f:Object.getOwnPropertySymbols},ei={f:yt},ni=$t.f,ri=function(t){var e=R.Symbol||(R.Symbol={});lt(e,t)||ni(e,t,{value:ei.f(t)})},ii=function(){var t=P("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=yt("toPrimitive");e&&!e[r]&&Xn(e,r,(function(t){return _(n,this)}),{arity:1})},ai=y([].push),oi=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,a=6==t,o=7==t,s=5==t||a;return function(c,l,A,u){for(var h,f,d=st(c),p=M(d),g=Rt(l,A),m=Me(p),y=0,v=u||Qr,b=e?v(c,m):n||o?v(c,0):void 0;m>y;y++)if((s||y in p)&&(f=g(h=p[y],y,d),t))if(e)b[y]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return y;case 2:ai(b,h)}else switch(t){case 4:return!1;case 7:ai(b,h)}return a?-1:r||i?i:b}},si={forEach:oi(0),map:oi(1),filter:oi(2),some:oi(3),every:oi(4),find:oi(5),findIndex:oi(6),filterReject:oi(7)},ci=si.forEach,li=Ke("hidden"),Ai=Hn.set,ui=Hn.getterFor("Symbol"),hi=Object.prototype,fi=s.Symbol,di=fi&&fi.prototype,pi=s.TypeError,gi=s.QObject,mi=kt.f,yi=$t.f,vi=Zr.f,bi=x.f,wi=y([].push),_i=at("symbols"),Ei=at("op-symbols"),Ci=at("wks"),xi=!gi||!gi.prototype||!gi.prototype.findChild,Bi=b&&c((function(){return 7!=qe(yi({},"a",{get:function(){return yi(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=mi(hi,e);r&&delete hi[e],yi(t,e,n),r&&t!==hi&&yi(hi,e,r)}:yi,Ti=function(t,e){var n=_i[t]=qe(di);return Ai(n,{type:"Symbol",tag:t,description:e}),b||(n.description=e),n},ki=function(t,e,n){t===hi&&ki(Ei,e,n),Ht(t);var r=_t(e);return Ht(n),lt(_i,r)?(n.enumerable?(lt(t,li)&&t[li][r]&&(t[li][r]=!1),n=qe(n,{enumerable:B(0,!1)})):(lt(t,li)||yi(t,li,B(1,{})),t[li][r]=!0),Bi(t,r,n)):yi(t,r,n)},Si=function(t,e){Ht(t);var n=L(e),r=Qe(n).concat(Fi(n));return ci(r,(function(e){b&&!_(Ii,n,e)||ki(t,e,n[e])})),t},Ii=function(t){var e=_t(t),n=_(bi,this,e);return!(this===hi&&lt(_i,e)&&!lt(Ei,e))&&(!(n||!lt(this,e)||!lt(_i,e)||lt(this,li)&&this[li][e])||n)},Ni=function(t,e){var n=L(t),r=_t(e);if(n!==hi||!lt(_i,r)||lt(Ei,r)){var i=mi(n,r);return!i||!lt(_i,r)||lt(n,li)&&n[li][r]||(i.enumerable=!0),i}},Mi=function(t){var e=vi(L(t)),n=[];return ci(e,(function(t){lt(_i,t)||lt(Le,t)||wi(n,t)})),n},Fi=function(t){var e=t===hi,n=vi(e?Ei:L(t)),r=[];return ci(n,(function(t){!lt(_i,t)||e&&!lt(hi,t)||wi(r,_i[t])})),r};V||(di=(fi=function(){if(Q(di,this))throw pi("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?En(arguments[0]):void 0,e=ft(t),n=function(t){this===hi&&_(n,Ei,t),lt(this,li)&&lt(this[li],e)&&(this[li][e]=!1),Bi(this,e,B(1,t))};return b&&xi&&Bi(hi,e,{configurable:!0,set:n}),Ti(e,t)}).prototype,Xn(di,"toString",(function(){return ui(this).tag})),Xn(fi,"withoutSetter",(function(t){return Ti(ft(t),t)})),x.f=Ii,$t.f=ki,He.f=Si,kt.f=Ni,Vr.f=Zr.f=Mi,ti.f=Fi,ei.f=function(t){return Ti(yt(t),t)},b&&yi(di,"description",{configurable:!0,get:function(){return ui(this).description}})),Wt({global:!0,constructor:!0,wrap:!0,forced:!V,sham:!V},{Symbol:fi}),ci(Qe(Ci),(function(t){ri(t)})),Wt({target:"Symbol",stat:!0,forced:!V},{useSetter:function(){xi=!0},useSimple:function(){xi=!1}}),Wt({target:"Object",stat:!0,forced:!V,sham:!b},{create:function(t,e){return void 0===e?qe(t):Si(qe(t),e)},defineProperty:ki,defineProperties:Si,getOwnPropertyDescriptor:Ni}),Wt({target:"Object",stat:!0,forced:!V},{getOwnPropertyNames:Mi}),ii(),ar(fi,"Symbol"),Le[li]=!0;var Di=V&&!!Symbol.for&&!!Symbol.keyFor,Li=at("string-to-symbol-registry"),Oi=at("symbol-to-string-registry");Wt({target:"Symbol",stat:!0,forced:!Di},{for:function(t){var e=En(t);if(lt(Li,e))return Li[e];var n=P("Symbol")(e);return Li[e]=n,Oi[n]=e,n}});var Ri=at("symbol-to-string-registry");Wt({target:"Symbol",stat:!0,forced:!Di},{keyFor:function(t){if(!q(t))throw TypeError(J(t)+" is not a symbol");if(lt(Ri,t))return Ri[t]}});var Ui=P("JSON","stringify"),Pi=y(/./.exec),Qi=y("".charAt),Hi=y("".charCodeAt),Gi=y("".replace),ji=y(1..toString),Ki=/[\uD800-\uDFFF]/g,$i=/^[\uD800-\uDBFF]$/,Yi=/^[\uDC00-\uDFFF]$/,Vi=!V||c((function(){var t=P("Symbol")();return"[null]"!=Ui([t])||"{}"!=Ui({a:t})||"{}"!=Ui(Object(t))})),zi=c((function(){return'"\\udf06\\ud834"'!==Ui("\udf06\ud834")||'"\\udead"'!==Ui("\udead")})),Wi=function(t,e){var n=qt(arguments),r=e;if((O(e)||void 0!==t)&&!q(t))return on(e)||(e=function(t,e){if(v(r)&&(e=_(r,this,t,e)),!q(e))return e}),n[1]=e,f(Ui,null,n)},qi=function(t,e,n){var r=Qi(n,e-1),i=Qi(n,e+1);return Pi($i,t)&&!Pi(Yi,i)||Pi(Yi,t)&&!Pi($i,r)?"\\u"+ji(Hi(t,0),16):t};Ui&&Wt({target:"JSON",stat:!0,arity:3,forced:Vi||zi},{stringify:function(t,e,n){var r=qt(arguments),i=f(Vi?Wi:Ui,null,r);return zi&&"string"==typeof i?Gi(i,Ki,qi):i}});var Xi=!V||c((function(){ti.f(1)}));Wt({target:"Object",stat:!0,forced:Xi},{getOwnPropertySymbols:function(t){var e=ti.f;return e?e(st(t)):[]}}),ri("asyncIterator"),ri("hasInstance"),ri("isConcatSpreadable"),ri("iterator"),ri("match"),ri("matchAll"),ri("replace"),ri("search"),ri("species"),ri("split"),ri("toPrimitive"),ii(),ri("toStringTag"),ar(P("Symbol"),"Symbol"),ri("unscopables"),ar(s.JSON,"JSON",!0);var Ji=R.Symbol,Zi=Hn.set,ta=Hn.getterFor("Array Iterator"),ea=(gr(Array,"Array",(function(t,e){Zi(this,{type:"Array Iterator",target:L(t),index:0,kind:e})}),(function(){var t=ta(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),or.Arguments=or.Array,yt("toStringTag"));for(var na in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var ra=s[na],ia=ra&&ra.prototype;ia&&ce(ia)!==ea&&Yt(ia,ea,na),or[na]=or.Array}var aa=Ji,oa=aa,sa=Br;Wt({target:"Array",stat:!0},{isArray:on});var ca=R.Array.isArray,la=ca,Aa=c((function(){Qe(1)}));Wt({target:"Object",stat:!0,forced:Aa},{keys:function(t){return Qe(st(t))}});var ua=R.Object.keys,ha=ua,fa=R.Object.getOwnPropertySymbols,da=fa,pa=si.filter,ga=ln("filter");Wt({target:"Array",proto:!0,forced:!ga},{filter:function(t){return pa(this,t,arguments.length>1?arguments[1]:void 0)}});var ma=mn("Array").filter,ya=Array.prototype,va=function(t){var e=t.filter;return t===ya||Q(ya,t)&&e===ya.filter?ma:e},ba=kt.f,wa=c((function(){ba(1)}));Wt({target:"Object",stat:!0,forced:!b||wa,sham:!b},{getOwnPropertyDescriptor:function(t,e){return ba(L(t),e)}});var _a=r((function(t){var e=R.Object,n=t.exports=function(t,n){return e.getOwnPropertyDescriptor(t,n)};e.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),Ea=_a,Ca=function(t,e){var n=[][t];return!!n&&c((function(){n.call(null,e||function(){return 1},1)}))},xa=si.forEach,Ba=Ca("forEach")?[].forEach:function(t){return xa(this,t,arguments.length>1?arguments[1]:void 0)};Wt({target:"Array",proto:!0,forced:[].forEach!=Ba},{forEach:Ba});var Ta=mn("Array").forEach,ka=Array.prototype,Sa={DOMTokenList:!0,NodeList:!0},Ia=function(t){var e=t.forEach;return t===ka||Q(ka,t)&&e===ka.forEach||lt(Sa,ce(t))?Ta:e},Na=Ia,Ma=y([].concat),Fa=P("Reflect","ownKeys")||function(t){var e=Vr.f(Ht(t)),n=ti.f;return n?Ma(e,n(t)):e};Wt({target:"Object",stat:!0,sham:!b},{getOwnPropertyDescriptors:function(t){for(var e,n,r=L(t),i=kt.f,a=Fa(r),o={},s=0;a.length>s;)void 0!==(n=i(r,e=a[s++]))&&sn(o,e,n);return o}});var Da=R.Object.getOwnPropertyDescriptors,La=He.f;Wt({target:"Object",stat:!0,forced:Object.defineProperties!==La,sham:!b},{defineProperties:La});var Oa=r((function(t){var e=R.Object,n=t.exports=function(t,n){return e.defineProperties(t,n)};e.defineProperties.sham&&(n.sham=!0)})),Ra=$t.f;Wt({target:"Object",stat:!0,forced:Object.defineProperty!==Ra,sham:!b},{defineProperty:Ra});var Ua=r((function(t){var e=R.Object,n=t.exports=function(t,n,r){return e.defineProperty(t,n,r)};e.defineProperty.sham&&(n.sham=!0)})),Pa=Ua,Qa=n(r((function(t){t.exports=function(t){if(null==t)throw new TypeError("Cannot destructure undefined")},t.exports.__esModule=!0,t.exports.default=t.exports}))),Ha=n(r((function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}))),Ga=Ua,ja=n(r((function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Ga(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Ga(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}))),Ka=r((function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports})),$a=n(Ka);Wt({target:"Object",stat:!0,sham:!b},{create:qe});var Ya=R.Object,Va=function(t,e){return Ya.create(t,e)},za=Va;Wt({target:"Object",stat:!0},{setPrototypeOf:ur});var Wa=R.Object.setPrototypeOf,qa=r((function(t){function e(n,r){return t.exports=e=Wa||function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));n(qa);var Xa=n(r((function(t){t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=za(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Ga(t,"prototype",{writable:!1}),e&&qa(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports}))),Ja=aa;ri("asyncDispose"),ri("dispose"),ri("matcher"),ri("metadata"),ri("observable"),ri("patternMatch"),ri("replaceAll");var Za=Ja,to=ei.f("iterator"),eo=r((function(t){function e(n){return t.exports=e="function"==typeof Za&&"symbol"==typeof to?function(t){return typeof t}:function(t){return t&&"function"==typeof Za&&t.constructor===Za&&t!==Za.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),no=n(eo),ro=n(r((function(t){var e=eo.default;t.exports=function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return Ka(t)},t.exports.__esModule=!0,t.exports.default=t.exports}))),io=c((function(){qn(1)}));Wt({target:"Object",stat:!0,forced:io,sham:!Yn},{getPrototypeOf:function(t){return qn(st(t))}});var ao=R.Object.getPrototypeOf,oo=r((function(t){function e(n){return t.exports=e=Wa?ao:function(t){return t.__proto__||ao(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),so=n(oo),co=n(r((function(t){t.exports=function(t,e,n){return e in t?Ga(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports}))),lo=mn("Array").concat,Ao=Array.prototype,uo=function(t){var e=t.concat;return t===Ao||Q(Ao,t)&&e===Ao.concat?lo:e};Wt({target:"Function",proto:!0,forced:Function.bind!==ne},{bind:ne});var ho=mn("Function").bind,fo=Function.prototype,po=function(t){var e=t.bind;return t===fo||Q(fo,t)&&e===fo.bind?ho:e},go=po,mo=s.TypeError,yo=function(t,e){if(t<e)throw mo("Not enough arguments");return t},vo=/MSIE .\./.test(H),bo=s.Function,wo=function(t){return vo?function(e,n){var r=yo(arguments.length,1)>2,i=v(e)?e:bo(e),a=r?qt(arguments,2):void 0;return t(r?function(){f(i,this,a)}:i,n)}:t},_o={setTimeout:wo(s.setTimeout),setInterval:wo(s.setInterval)},Eo=_o.setInterval;Wt({global:!0,bind:!0,forced:s.setInterval!==Eo},{setInterval:Eo});var Co=_o.setTimeout;Wt({global:!0,bind:!0,forced:s.setTimeout!==Co},{setTimeout:Co});var xo=R.setTimeout;var Bo=function(){this.__data__=[],this.size=0};var To=function(t,e){return t===e||t!=t&&e!=e};var ko=function(t,e){for(var n=t.length;n--;)if(To(t[n][0],e))return n;return-1},So=Array.prototype.splice;var Io=function(t){var e=this.__data__,n=ko(e,t);return!(n<0)&&(n==e.length-1?e.pop():So.call(e,n,1),--this.size,!0)};var No=function(t){var e=this.__data__,n=ko(e,t);return n<0?void 0:e[n][1]};var Mo=function(t){return ko(this.__data__,t)>-1};var Fo=function(t,e){var n=this.__data__,r=ko(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Do(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Do.prototype.clear=Bo,Do.prototype.delete=Io,Do.prototype.get=No,Do.prototype.has=Mo,Do.prototype.set=Fo;var Lo=Do;var Oo=function(){this.__data__=new Lo,this.size=0};var Ro=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var Uo=function(t){return this.__data__.get(t)};var Po=function(t){return this.__data__.has(t)},Qo="object"==typeof e&&e&&e.Object===Object&&e,Ho="object"==typeof self&&self&&self.Object===Object&&self,Go=Qo||Ho||Function("return this")(),jo=Go.Symbol,Ko=Object.prototype,$o=Ko.hasOwnProperty,Yo=Ko.toString,Vo=jo?jo.toStringTag:void 0;var zo=function(t){var e=$o.call(t,Vo),n=t[Vo];try{t[Vo]=void 0;var r=!0}catch(t){}var i=Yo.call(t);return r&&(e?t[Vo]=n:delete t[Vo]),i},Wo=Object.prototype.toString;var qo=function(t){return Wo.call(t)},Xo=jo?jo.toStringTag:void 0;var Jo=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Xo&&Xo in Object(t)?zo(t):qo(t)};var Zo=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var ts=function(t){if(!Zo(t))return!1;var e=Jo(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},es=Go["__core-js_shared__"],ns=function(){var t=/[^.]+$/.exec(es&&es.keys&&es.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var rs=function(t){return!!ns&&ns in t},is=Function.prototype.toString;var as=function(t){if(null!=t){try{return is.call(t)}catch(t){}try{return t+""}catch(t){}}return""},os=/^\[object .+?Constructor\]$/,ss=Function.prototype,cs=Object.prototype,ls=ss.toString,As=cs.hasOwnProperty,us=RegExp("^"+ls.call(As).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var hs=function(t){return!(!Zo(t)||rs(t))&&(ts(t)?us:os).test(as(t))};var fs=function(t,e){return null==t?void 0:t[e]};var ds=function(t,e){var n=fs(t,e);return hs(n)?n:void 0},ps=ds(Go,"Map"),gs=ds(Object,"create");var ms=function(){this.__data__=gs?gs(null):{},this.size=0};var ys=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},vs=Object.prototype.hasOwnProperty;var bs=function(t){var e=this.__data__;if(gs){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return vs.call(e,t)?e[t]:void 0},ws=Object.prototype.hasOwnProperty;var _s=function(t){var e=this.__data__;return gs?void 0!==e[t]:ws.call(e,t)};var Es=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=gs&&void 0===e?"__lodash_hash_undefined__":e,this};function Cs(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Cs.prototype.clear=ms,Cs.prototype.delete=ys,Cs.prototype.get=bs,Cs.prototype.has=_s,Cs.prototype.set=Es;var xs=Cs;var Bs=function(){this.size=0,this.__data__={hash:new xs,map:new(ps||Lo),string:new xs}};var Ts=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var ks=function(t,e){var n=t.__data__;return Ts(e)?n["string"==typeof e?"string":"hash"]:n.map};var Ss=function(t){var e=ks(this,t).delete(t);return this.size-=e?1:0,e};var Is=function(t){return ks(this,t).get(t)};var Ns=function(t){return ks(this,t).has(t)};var Ms=function(t,e){var n=ks(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Fs(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Fs.prototype.clear=Bs,Fs.prototype.delete=Ss,Fs.prototype.get=Is,Fs.prototype.has=Ns,Fs.prototype.set=Ms;var Ds=Fs;var Ls=function(t,e){var n=this.__data__;if(n instanceof Lo){var r=n.__data__;if(!ps||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ds(r)}return n.set(t,e),this.size=n.size,this};function Os(t){var e=this.__data__=new Lo(t);this.size=e.size}Os.prototype.clear=Oo,Os.prototype.delete=Ro,Os.prototype.get=Uo,Os.prototype.has=Po,Os.prototype.set=Ls;var Rs=Os,Us=function(){try{var t=ds(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var Ps=function(t,e,n){"__proto__"==e&&Us?Us(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var Qs=function(t,e,n){(void 0!==n&&!To(t[e],n)||void 0===n&&!(e in t))&&Ps(t,e,n)};var Hs=function(t){return function(e,n,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var c=o[t?s:++i];if(!1===n(a[c],c,a))break}return e}}(),Gs=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?Go.Buffer:void 0,a=i?i.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}})),js=Go.Uint8Array;var Ks=function(t){var e=new t.constructor(t.byteLength);return new js(e).set(new js(t)),e};var $s=function(t,e){var n=e?Ks(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var Ys=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},Vs=Object.create,zs=function(){function t(){}return function(e){if(!Zo(e))return{};if(Vs)return Vs(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var Ws=function(t,e){return function(n){return t(e(n))}},qs=Ws(Object.getPrototypeOf,Object),Xs=Object.prototype;var Js=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Xs)};var Zs=function(t){return"function"!=typeof t.constructor||Js(t)?{}:zs(qs(t))};var tc=function(t){return null!=t&&"object"==typeof t};var ec=function(t){return tc(t)&&"[object Arguments]"==Jo(t)},nc=Object.prototype,rc=nc.hasOwnProperty,ic=nc.propertyIsEnumerable,ac=ec(function(){return arguments}())?ec:function(t){return tc(t)&&rc.call(t,"callee")&&!ic.call(t,"callee")},oc=Array.isArray;var sc=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var cc=function(t){return null!=t&&sc(t.length)&&!ts(t)};var lc=function(t){return tc(t)&&cc(t)};var Ac=function(){return!1},uc=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?Go.Buffer:void 0,a=(i?i.isBuffer:void 0)||Ac;t.exports=a})),hc=Function.prototype,fc=Object.prototype,dc=hc.toString,pc=fc.hasOwnProperty,gc=dc.call(Object);var mc=function(t){if(!tc(t)||"[object Object]"!=Jo(t))return!1;var e=qs(t);if(null===e)return!0;var n=pc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&dc.call(n)==gc},yc={};yc["[object Float32Array]"]=yc["[object Float64Array]"]=yc["[object Int8Array]"]=yc["[object Int16Array]"]=yc["[object Int32Array]"]=yc["[object Uint8Array]"]=yc["[object Uint8ClampedArray]"]=yc["[object Uint16Array]"]=yc["[object Uint32Array]"]=!0,yc["[object Arguments]"]=yc["[object Array]"]=yc["[object ArrayBuffer]"]=yc["[object Boolean]"]=yc["[object DataView]"]=yc["[object Date]"]=yc["[object Error]"]=yc["[object Function]"]=yc["[object Map]"]=yc["[object Number]"]=yc["[object Object]"]=yc["[object RegExp]"]=yc["[object Set]"]=yc["[object String]"]=yc["[object WeakMap]"]=!1;var vc=function(t){return tc(t)&&sc(t.length)&&!!yc[Jo(t)]};var bc=function(t){return function(e){return t(e)}},wc=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n&&Qo.process,a=function(){try{var t=r&&r.require&&r.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a})),_c=wc&&wc.isTypedArray,Ec=_c?bc(_c):vc;var Cc=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},xc=Object.prototype.hasOwnProperty;var Bc=function(t,e,n){var r=t[e];xc.call(t,e)&&To(r,n)&&(void 0!==n||e in t)||Ps(t,e,n)};var Tc=function(t,e,n,r){var i=!n;n||(n={});for(var a=-1,o=e.length;++a<o;){var s=e[a],c=r?r(n[s],t[s],s,n,t):void 0;void 0===c&&(c=t[s]),i?Ps(n,s,c):Bc(n,s,c)}return n};var kc=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},Sc=/^(?:0|[1-9]\d*)$/;var Ic=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Sc.test(t))&&t>-1&&t%1==0&&t<e},Nc=Object.prototype.hasOwnProperty;var Mc=function(t,e){var n=oc(t),r=!n&&ac(t),i=!n&&!r&&uc(t),a=!n&&!r&&!i&&Ec(t),o=n||r||i||a,s=o?kc(t.length,String):[],c=s.length;for(var l in t)!e&&!Nc.call(t,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ic(l,c))||s.push(l);return s};var Fc=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},Dc=Object.prototype.hasOwnProperty;var Lc=function(t){if(!Zo(t))return Fc(t);var e=Js(t),n=[];for(var r in t)("constructor"!=r||!e&&Dc.call(t,r))&&n.push(r);return n};var Oc=function(t){return cc(t)?Mc(t,!0):Lc(t)};var Rc=function(t){return Tc(t,Oc(t))};var Uc=function(t,e,n,r,i,a,o){var s=Cc(t,n),c=Cc(e,n),l=o.get(c);if(l)Qs(t,n,l);else{var A=a?a(s,c,n+"",t,e,o):void 0,u=void 0===A;if(u){var h=oc(c),f=!h&&uc(c),d=!h&&!f&&Ec(c);A=c,h||f||d?oc(s)?A=s:lc(s)?A=Ys(s):f?(u=!1,A=Gs(c,!0)):d?(u=!1,A=$s(c,!0)):A=[]:mc(c)||ac(c)?(A=s,ac(s)?A=Rc(s):Zo(s)&&!ts(s)||(A=Zs(c))):u=!1}u&&(o.set(c,A),i(A,c,r,a,o),o.delete(c)),Qs(t,n,A)}};var Pc=function t(e,n,r,i,a){e!==n&&Hs(n,(function(o,s){if(a||(a=new Rs),Zo(o))Uc(e,n,s,r,t,i,a);else{var c=i?i(Cc(e,s),o,s+"",e,n,a):void 0;void 0===c&&(c=o),Qs(e,s,c)}}),Oc)};var Qc=function(t){return t};var Hc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Gc=Math.max;var jc=function(t,e,n){return e=Gc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=Gc(r.length-e,0),o=Array(a);++i<a;)o[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(o),Hc(t,this,s)}};var Kc=function(t){return function(){return t}},$c=Us?function(t,e){return Us(t,"toString",{configurable:!0,enumerable:!1,value:Kc(e),writable:!0})}:Qc,Yc=Date.now;var Vc=function(t){var e=0,n=0;return function(){var r=Yc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}($c);var zc=function(t,e){return Vc(jc(t,e,Qc),t+"")};var Wc=function(t,e,n){if(!Zo(n))return!1;var r=typeof e;return!!("number"==r?cc(n)&&Ic(e,n.length):"string"==r&&e in n)&&To(n[e],t)};var qc=function(t){return zc((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,o&&Wc(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,a)}return e}))}((function(t,e,n,r){Pc(t,e,n,r)})),Xc=fa,Jc=De.indexOf,Zc=y([].indexOf),tl=!!Zc&&1/Zc([1],1,-0)<0,el=Ca("indexOf");Wt({target:"Array",proto:!0,forced:tl||!el},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return tl?Zc(this,t,e)||0:Jc(this,t,e)}});var nl=mn("Array").indexOf,rl=Array.prototype,il=function(t){var e=t.indexOf;return t===rl||Q(rl,t)&&e===rl.indexOf?nl:e},al=il,ol=ua,sl=r((function(t){t.exports=function(t,e){if(null==t)return{};var n,r,i={},a=ol(t);for(r=0;r<a.length;r++)n=a[r],al(e).call(e,n)>=0||(i[n]=t[n]);return i},t.exports.__esModule=!0,t.exports.default=t.exports}));n(sl);var cl=n(r((function(t){t.exports=function(t,e){if(null==t)return{};var n,r,i=sl(t,e);if(Xc){var a=Xc(t);for(r=0;r<a.length;r++)n=a[r],al(e).call(e,n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},t.exports.__esModule=!0,t.exports.default=t.exports}))),ll=Object.assign,Al=Object.defineProperty,ul=y([].concat),hl=!ll||c((function(){if(b&&1!==ll({b:1},ll(Al({},"a",{enumerable:!0,get:function(){Al(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=ll({},t)[n]||"abcdefghijklmnopqrst"!=Qe(ll({},e)).join("")}))?function(t,e){for(var n=st(t),r=arguments.length,i=1,a=ti.f,o=x.f;r>i;)for(var s,c=M(arguments[i++]),l=a?ul(Qe(c),a(c)):Qe(c),A=l.length,u=0;A>u;)s=l[u++],b&&!_(o,c,s)||(n[s]=c[s]);return n}:ll;Wt({target:"Object",stat:!0,arity:2,forced:Object.assign!==hl},{assign:hl});var fl,dl=R.Object.assign,pl=dl,gl="\t\n\v\f\r    \u2028\u2029\ufeff",ml=y("".replace),yl="["+gl+"]",vl=RegExp("^"+yl+yl+"*"),bl=RegExp(yl+yl+"*$"),wl=function(t){return function(e){var n=En(D(e));return 1&t&&(n=ml(n,vl,"")),2&t&&(n=ml(n,bl,"")),n}},_l={start:wl(1),end:wl(2),trim:wl(3)},El=$n.PROPER,Cl=_l.trim;Wt({target:"String",proto:!0,forced:(fl="trim",c((function(){return!!gl[fl]()||"…"!=="…"[fl]()||El&&gl[fl].name!==fl})))},{trim:function(){return Cl(this)}});var xl=mn("String").trim,Bl=String.prototype,Tl=function(t){var e=t.trim;return"string"==typeof t||t===Bl||Q(Bl,t)&&e===Bl.trim?xl:e},kl=r((function(t,e){t.exports=function(){var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),a=/Edge\/(\d+)/.exec(t),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(t),l=c&&/Qt\/\d+\.\d+/.test(t),A=!a&&/Chrome\//.test(t),u=/Opera\//.test(t),h=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),d=/PhantomJS/.test(t),p=!a&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),g=/Android/.test(t),m=p||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),y=p||/Mac/.test(e),v=/\bCrOS\b/.test(t),b=/win/i.test(e),w=u&&t.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(u=!1,c=!0);var _=y&&(l||u&&(null==w||w<12.11)),E=n||o&&s>=9;function C(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var x,B=function(t,e){var n=t.className,r=C(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function T(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function k(t,e){return T(t).appendChild(e)}function S(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var a=0;a<e.length;++a)i.appendChild(e[a]);return i}function I(t,e,n,r){var i=S(t,e,n,r);return i.setAttribute("role","presentation"),i}function N(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function M(){var t;try{t=document.activeElement}catch(e){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function F(t,e){var n=t.className;C(e).test(n)||(t.className+=(n?" ":"")+e)}function D(t,e){for(var n=t.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(e)&&(e+=" "+n[r]);return e}x=document.createRange?function(t,e,n,r){var i=document.createRange();return i.setEnd(r||t,n),i.setStart(t,e),i}:function(t,e,n){var r=document.body.createTextRange();try{r.moveToElementText(t.parentNode)}catch(t){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r};var L=function(t){t.select()};function O(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function R(t,e,n){for(var r in e||(e={}),t)!t.hasOwnProperty(r)||!1===n&&e.hasOwnProperty(r)||(e[r]=t[r]);return e}function U(t,e,n,r,i){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var a=r||0,o=i||0;;){var s=t.indexOf("\t",a);if(s<0||s>=e)return o+(e-a);o+=s-a,o+=n-o%n,a=s+1}}p?L=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:o&&(L=function(t){try{t.select()}catch(t){}});var P=function(){this.id=null,this.f=null,this.time=0,this.handler=O(this.onTimeout,this)};function Q(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}P.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},P.prototype.set=function(t,e){this.f=e;var n=+new Date+t;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=n)};var H={toString:function(){return"CodeMirror.Pass"}},G={scroll:!1},j={origin:"*mouse"},K={origin:"+move"};function $(t,e,n){for(var r=0,i=0;;){var a=t.indexOf("\t",r);-1==a&&(a=t.length);var o=a-r;if(a==t.length||i+o>=e)return r+Math.min(o,e-i);if(i+=a-r,r=a+1,(i+=n-i%n)>=e)return r}}var Y=[""];function V(t){for(;Y.length<=t;)Y.push(z(Y)+" ");return Y[t]}function z(t){return t[t.length-1]}function W(t,e){for(var n=[],r=0;r<t.length;r++)n[r]=e(t[r],r);return n}function q(){}function X(t,e){var n;return Object.create?n=Object.create(t):(q.prototype=t,n=new q),e&&R(e,n),n}var J=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Z(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||J.test(t))}function tt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&Z(t))||e.test(t):Z(t)}function et(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function rt(t){return t.charCodeAt(0)>=768&&nt.test(t)}function it(t,e,n){for(;(n<0?e>0:e<t.length)&&rt(t.charAt(e));)e+=n;return e}function at(t,e,n){for(var r=e>n?-1:1;;){if(e==n)return e;var i=(e+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==e)return t(a)?e:n;t(a)?n=a:e=a+r}}var ot=null;function st(t,e,n){var r;ot=null;for(var i=0;i<t.length;++i){var a=t[i];if(a.from<e&&a.to>e)return i;a.to==e&&(a.from!=a.to&&"before"==n?r=i:ot=i),a.from==e&&(a.from!=a.to&&"before"!=n?r=i:ot=i)}return null!=r?r:ot}var ct=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function a(t,e,n){this.level=t,this.from=e,this.to=n}return function(o,s){var c="ltr"==s?"L":"R";if(0==o.length||"ltr"==s&&!t.test(o))return!1;for(var l,A=o.length,u=[],h=0;h<A;++h)u.push((l=o.charCodeAt(h))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var f=0,d=c;f<A;++f){var p=u[f];"m"==p?u[f]=d:d=p}for(var g=0,m=c;g<A;++g){var y=u[g];"1"==y&&"r"==m?u[g]="n":n.test(y)&&(m=y,"r"==y&&(u[g]="R"))}for(var v=1,b=u[0];v<A-1;++v){var w=u[v];"+"==w&&"1"==b&&"1"==u[v+1]?u[v]="1":","!=w||b!=u[v+1]||"1"!=b&&"n"!=b||(u[v]=b),b=w}for(var _=0;_<A;++_){var E=u[_];if(","==E)u[_]="N";else if("%"==E){var C=void 0;for(C=_+1;C<A&&"%"==u[C];++C);for(var x=_&&"!"==u[_-1]||C<A&&"1"==u[C]?"1":"N",B=_;B<C;++B)u[B]=x;_=C-1}}for(var T=0,k=c;T<A;++T){var S=u[T];"L"==k&&"1"==S?u[T]="L":n.test(S)&&(k=S)}for(var I=0;I<A;++I)if(e.test(u[I])){var N=void 0;for(N=I+1;N<A&&e.test(u[N]);++N);for(var M="L"==(I?u[I-1]:c),F=M==("L"==(N<A?u[N]:c))?M?"L":"R":c,D=I;D<N;++D)u[D]=F;I=N-1}for(var L,O=[],R=0;R<A;)if(r.test(u[R])){var U=R;for(++R;R<A&&r.test(u[R]);++R);O.push(new a(0,U,R))}else{var P=R,Q=O.length,H="rtl"==s?1:0;for(++R;R<A&&"L"!=u[R];++R);for(var G=P;G<R;)if(i.test(u[G])){P<G&&(O.splice(Q,0,new a(1,P,G)),Q+=H);var j=G;for(++G;G<R&&i.test(u[G]);++G);O.splice(Q,0,new a(2,j,G)),Q+=H,P=G}else++G;P<R&&O.splice(Q,0,new a(1,P,R))}return"ltr"==s&&(1==O[0].level&&(L=o.match(/^\s+/))&&(O[0].from=L[0].length,O.unshift(new a(0,0,L[0].length))),1==z(O).level&&(L=o.match(/\s+$/))&&(z(O).to-=L[0].length,O.push(new a(0,A-L[0].length,A)))),"rtl"==s?O.reverse():O}}();function lt(t,e){var n=t.order;return null==n&&(n=t.order=ct(t.text,e)),n}var At=[],ut=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var r=t._handlers||(t._handlers={});r[e]=(r[e]||At).concat(n)}};function ht(t,e){return t._handlers&&t._handlers[e]||At}function ft(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var r=t._handlers,i=r&&r[e];if(i){var a=Q(i,n);a>-1&&(r[e]=i.slice(0,a).concat(i.slice(a+1)))}}}function dt(t,e){var n=ht(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function pt(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),dt(t,n||e.type,t,e),wt(e)||e.codemirrorIgnore}function gt(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),r=0;r<e.length;++r)-1==Q(n,e[r])&&n.push(e[r])}function mt(t,e){return ht(t,e).length>0}function yt(t){t.prototype.on=function(t,e){ut(this,t,e)},t.prototype.off=function(t,e){ft(this,t,e)}}function vt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function bt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function wt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function _t(t){vt(t),bt(t)}function Et(t){return t.target||t.srcElement}function Ct(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),y&&t.ctrlKey&&1==e&&(e=3),e}var xt,Bt,Tt=function(){if(o&&s<9)return!1;var t=S("div");return"draggable"in t||"dragDrop"in t}();function kt(t){if(null==xt){var e=S("span","");k(t,S("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(xt=e.offsetWidth<=1&&e.offsetHeight>2&&!(o&&s<8))}var n=xt?S("span",""):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function St(t){if(null!=Bt)return Bt;var e=k(t,document.createTextNode("AخA")),n=x(e,0,1).getBoundingClientRect(),r=x(e,1,2).getBoundingClientRect();return T(t),!(!n||n.left==n.right)&&(Bt=r.right-n.right<3)}var It=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var a=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),o=a.indexOf("\r");-1!=o?(n.push(a.slice(0,o)),e+=o+1):(n.push(a),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Nt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Mt=function(){var t=S("div");return"oncopy"in t||(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy)}(),Ft=null,Dt={},Lt={};function Ot(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Dt[t]=e}function Rt(t){if("string"==typeof t&&Lt.hasOwnProperty(t))t=Lt[t];else if(t&&"string"==typeof t.name&&Lt.hasOwnProperty(t.name)){var e=Lt[t.name];"string"==typeof e&&(e={name:e}),(t=X(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Rt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Rt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Ut(t,e){e=Rt(e);var n=Dt[e.name];if(!n)return Ut(t,"text/plain");var r=n(t,e);if(Pt.hasOwnProperty(e.name)){var i=Pt[e.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r["_"+a]=r[a]),r[a]=i[a])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var o in e.modeProps)r[o]=e.modeProps[o];return r}var Pt={};function Qt(t,e){R(e,Pt.hasOwnProperty(t)?Pt[t]:Pt[t]={})}function Ht(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Gt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function jt(t,e,n){return!t.startState||t.startState(e,n)}var Kt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function $t(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(e<a){n=i;break}e-=a}return n.lines[e]}function Yt(t,e,n){var r=[],i=e.line;return t.iter(e.line,n.line+1,(function(t){var a=t.text;i==n.line&&(a=a.slice(0,n.ch)),i==e.line&&(a=a.slice(e.ch)),r.push(a),++i})),r}function Vt(t,e,n){var r=[];return t.iter(e,n,(function(t){r.push(t.text)})),r}function zt(t,e){var n=e-t.height;if(n)for(var r=t;r;r=r.parent)r.height+=n}function Wt(t){if(null==t.parent)return null;for(var e=t.parent,n=Q(e.lines,t),r=e.parent;r;e=r,r=r.parent)for(var i=0;r.children[i]!=e;++i)n+=r.children[i].chunkSize();return n+e.first}function qt(t,e){var n=t.first;t:do{for(var r=0;r<t.children.length;++r){var i=t.children[r],a=i.height;if(e<a){t=i;continue t}e-=a,n+=i.chunkSize()}return n}while(!t.lines);for(var o=0;o<t.lines.length;++o){var s=t.lines[o].height;if(e<s)break;e-=s}return n+o}function Xt(t,e){return e>=t.first&&e<t.first+t.size}function Jt(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function Zt(t,e,n){if(void 0===n&&(n=null),!(this instanceof Zt))return new Zt(t,e,n);this.line=t,this.ch=e,this.sticky=n}function te(t,e){return t.line-e.line||t.ch-e.ch}function ee(t,e){return t.sticky==e.sticky&&0==te(t,e)}function ne(t){return Zt(t.line,t.ch)}function re(t,e){return te(t,e)<0?e:t}function ie(t,e){return te(t,e)<0?t:e}function ae(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function oe(t,e){if(e.line<t.first)return Zt(t.first,0);var n=t.first+t.size-1;return e.line>n?Zt(n,$t(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?Zt(t.line,e):n<0?Zt(t.line,0):t}(e,$t(t,e.line).text.length)}function se(t,e){for(var n=[],r=0;r<e.length;r++)n[r]=oe(t,e[r]);return n}Kt.prototype.eol=function(){return this.pos>=this.string.length},Kt.prototype.sol=function(){return this.pos==this.lineStart},Kt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Kt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Kt.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},Kt.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},Kt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Kt.prototype.skipToEnd=function(){this.pos=this.string.length},Kt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Kt.prototype.backUp=function(t){this.pos-=t},Kt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=U(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},Kt.prototype.indentation=function(){return U(this.string,null,this.tabSize)-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},Kt.prototype.match=function(t,e,n){if("string"!=typeof t){var r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},Kt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Kt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Kt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Kt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ce=function(t,e){this.state=t,this.lookAhead=e},le=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function Ae(t,e,n,r){var i=[t.state.modeGen],a={};ve(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],c=1,l=0;n.state=!0,ve(t,e.text,s.mode,n,(function(t,e){for(var n=c;l<t;){var r=i[c];r>t&&i.splice(c,1,t,i[c+1],r),c+=2,l=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,c-n,t,"overlay "+e),c=n+2;else for(;n<c;n+=2){var a=i[n+1];i[n+1]=(a?a+" ":"")+"overlay "+e}}),a),n.state=o,n.baseTokens=null,n.baseTokenPos=1},c=0;c<t.state.overlays.length;++c)s(c);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function ue(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var r=he(t,Wt(e)),i=e.text.length>t.options.maxHighlightLength&&Ht(t.doc.mode,r.state),a=Ae(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=a.styles,a.classes?e.styleClasses=a.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function he(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new le(r,!0,e);var a=function(t,e,n){for(var r,i,a=t.doc,o=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>o;--s){if(s<=a.first)return a.first;var c=$t(a,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof ce?l.lookAhead:0)<=a.modeFrontier))return s;var A=U(c.text,null,t.options.tabSize);(null==i||r>A)&&(i=s-1,r=A)}return i}(t,e,n),o=a>r.first&&$t(r,a-1).stateAfter,s=o?le.fromSaved(r,o,a):new le(r,jt(r.mode),a);return r.iter(a,e,(function(n){fe(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function fe(t,e,n,r){var i=t.doc.mode,a=new Kt(e,t.options.tabSize,n);for(a.start=a.pos=r||0,""==e&&de(i,n.state);!a.eol();)pe(i,a,n.state),a.start=a.pos}function de(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Gt(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function pe(t,e,n,r){for(var i=0;i<10;i++){r&&(r[0]=Gt(t,n).mode);var a=t.token(e,n);if(e.pos>e.start)return a}throw new Error("Mode "+t.name+" failed to advance stream.")}le.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},le.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},le.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},le.fromSaved=function(t,e,n){return e instanceof ce?new le(t,Ht(t.mode,e.state),n,e.lookAhead):new le(t,Ht(t.mode,e),n)},le.prototype.save=function(t){var e=!1!==t?Ht(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ce(e,this.maxLookAhead):e};var ge=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function me(t,e,n,r){var i,a,o=t.doc,s=o.mode,c=$t(o,(e=oe(o,e)).line),l=he(t,e.line,n),A=new Kt(c.text,t.options.tabSize,l);for(r&&(a=[]);(r||A.pos<e.ch)&&!A.eol();)A.start=A.pos,i=pe(s,A,l.state),r&&a.push(new ge(A,i,Ht(o.mode,l.state)));return r?a:new ge(A,i,l.state)}function ye(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==e[r]?e[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(e[r])||(e[r]+=" "+n[2])}return t}function ve(t,e,n,r,i,a,o){var s=n.flattenSpans;null==s&&(s=t.options.flattenSpans);var c,l=0,A=null,u=new Kt(e,t.options.tabSize,r),h=t.options.addModeClass&&[null];for(""==e&&ye(de(n,r.state),a);!u.eol();){if(u.pos>t.options.maxHighlightLength?(s=!1,o&&fe(t,e,r,u.pos),u.pos=e.length,c=null):c=ye(pe(n,u,r.state,h),a),h){var f=h[0].name;f&&(c="m-"+(c?f+" "+c:f))}if(!s||A!=c){for(;l<u.start;)i(l=Math.min(u.start,l+5e3),A);A=c}u.start=u.pos}for(;l<u.pos;){var d=Math.min(u.pos,l+5e3);i(d,A),l=d}}var be=!1,we=!1;function _e(t,e,n){this.marker=t,this.from=e,this.to=n}function Ee(t,e){if(t)for(var n=0;n<t.length;++n){var r=t[n];if(r.marker==e)return r}}function Ce(t,e){for(var n,r=0;r<t.length;++r)t[r]!=e&&(n||(n=[])).push(t[r]);return n}function xe(t,e){if(e.full)return null;var n=Xt(t,e.from.line)&&$t(t,e.from.line).markedSpans,r=Xt(t,e.to.line)&&$t(t,e.to.line).markedSpans;if(!n&&!r)return null;var i=e.from.ch,a=e.to.ch,o=0==te(e.from,e.to),s=function(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var a=t[i],o=a.marker;if(null==a.from||(o.inclusiveLeft?a.from<=e:a.from<e)||a.from==e&&"bookmark"==o.type&&(!n||!a.marker.insertLeft)){var s=null==a.to||(o.inclusiveRight?a.to>=e:a.to>e);(r||(r=[])).push(new _e(o,a.from,s?null:a.to))}}return r}(n,i,o),c=function(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var a=t[i],o=a.marker;if(null==a.to||(o.inclusiveRight?a.to>=e:a.to>e)||a.from==e&&"bookmark"==o.type&&(!n||a.marker.insertLeft)){var s=null==a.from||(o.inclusiveLeft?a.from<=e:a.from<e);(r||(r=[])).push(new _e(o,s?null:a.from-e,null==a.to?null:a.to-e))}}return r}(r,a,o),l=1==e.text.length,A=z(e.text).length+(l?i:0);if(s)for(var u=0;u<s.length;++u){var h=s[u];if(null==h.to){var f=Ee(c,h.marker);f?l&&(h.to=null==f.to?null:f.to+A):h.to=i}}if(c)for(var d=0;d<c.length;++d){var p=c[d];null!=p.to&&(p.to+=A),null==p.from?Ee(s,p.marker)||(p.from=A,l&&(s||(s=[])).push(p)):(p.from+=A,l&&(s||(s=[])).push(p))}s&&(s=Be(s)),c&&c!=s&&(c=Be(c));var g=[s];if(!l){var m,y=e.text.length-2;if(y>0&&s)for(var v=0;v<s.length;++v)null==s[v].to&&(m||(m=[])).push(new _e(s[v].marker,null,null));for(var b=0;b<y;++b)g.push(m);g.push(c)}return g}function Be(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function Te(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function ke(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function Se(t){return t.inclusiveLeft?-1:0}function Ie(t){return t.inclusiveRight?1:0}function Ne(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var r=t.find(),i=e.find(),a=te(r.from,i.from)||Se(t)-Se(e);if(a)return-a;var o=te(r.to,i.to)||Ie(t)-Ie(e);return o||e.id-t.id}function Me(t,e){var n,r=we&&t.markedSpans;if(r)for(var i=void 0,a=0;a<r.length;++a)(i=r[a]).marker.collapsed&&null==(e?i.from:i.to)&&(!n||Ne(n,i.marker)<0)&&(n=i.marker);return n}function Fe(t){return Me(t,!0)}function De(t){return Me(t,!1)}function Le(t,e){var n,r=we&&t.markedSpans;if(r)for(var i=0;i<r.length;++i){var a=r[i];a.marker.collapsed&&(null==a.from||a.from<e)&&(null==a.to||a.to>e)&&(!n||Ne(n,a.marker)<0)&&(n=a.marker)}return n}function Oe(t,e,n,r,i){var a=$t(t,e),o=we&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var c=o[s];if(c.marker.collapsed){var l=c.marker.find(0),A=te(l.from,n)||Se(c.marker)-Se(i),u=te(l.to,r)||Ie(c.marker)-Ie(i);if(!(A>=0&&u<=0||A<=0&&u>=0)&&(A<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?te(l.to,n)>=0:te(l.to,n)>0)||A>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?te(l.from,r)<=0:te(l.from,r)<0)))return!0}}}function Re(t){for(var e;e=Fe(t);)t=e.find(-1,!0).line;return t}function Ue(t,e){var n=$t(t,e),r=Re(n);return n==r?e:Wt(r)}function Pe(t,e){if(e>t.lastLine())return e;var n,r=$t(t,e);if(!Qe(t,r))return e;for(;n=De(r);)r=n.find(1,!0).line;return Wt(r)+1}function Qe(t,e){var n=we&&e.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&He(t,e,r))return!0}}function He(t,e,n){if(null==n.to){var r=n.marker.find(1,!0);return He(t,r.line,Ee(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var i=void 0,a=0;a<e.markedSpans.length;++a)if((i=e.markedSpans[a]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&He(t,e,i))return!0}function Ge(t){for(var e=0,n=(t=Re(t)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==t)break;e+=i.height}for(var a=n.parent;a;a=(n=a).parent)for(var o=0;o<a.children.length;++o){var s=a.children[o];if(s==n)break;e+=s.height}return e}function je(t){if(0==t.height)return 0;for(var e,n=t.text.length,r=t;e=Fe(r);){var i=e.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=t;e=De(r);){var a=e.find(0,!0);n-=r.text.length-a.from.ch,n+=(r=a.to.line).text.length-a.to.ch}return n}function Ke(t){var e=t.display,n=t.doc;e.maxLine=$t(n,n.first),e.maxLineLength=je(e.maxLine),e.maxLineChanged=!0,n.iter((function(t){var n=je(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var $e=function(t,e,n){this.text=t,ke(this,e),this.height=n?n(this):1};function Ye(t){t.parent=null,Te(t)}$e.prototype.lineNo=function(){return Wt(this)},yt($e);var Ve={},ze={};function We(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?ze:Ve;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function qe(t,e){var n=I("span",null,null,c?"padding-right: .1px":null),r={pre:I("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var a=i?e.rest[i-1]:e.line,o=void 0;r.pos=0,r.addToken=Je,St(t.display.measure)&&(o=lt(a,t.doc.direction))&&(r.addToken=Ze(r.addToken,o)),r.map=[],en(a,r,ue(t,a,e!=t.display.externalMeasured&&Wt(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=D(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=D(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(kt(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return dt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=D(r.pre.className,r.textClass||"")),r}function Xe(t){var e=S("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function Je(t,e,n,r,i,a,c){if(e){var l,A=t.splitSpaces?function(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;i<t.length;i++){var a=t.charAt(i);" "!=a||!n||i!=t.length-1&&32!=t.charCodeAt(i+1)||(a=" "),r+=a,n=" "==a}return r}(e,t.trailingSpace):e,u=t.cm.state.specialChars,h=!1;if(u.test(e)){l=document.createDocumentFragment();for(var f=0;;){u.lastIndex=f;var d=u.exec(e),p=d?d.index-f:e.length-f;if(p){var g=document.createTextNode(A.slice(f,f+p));o&&s<9?l.appendChild(S("span",[g])):l.appendChild(g),t.map.push(t.pos,t.pos+p,g),t.col+=p,t.pos+=p}if(!d)break;f+=p+1;var m=void 0;if("\t"==d[0]){var y=t.cm.options.tabSize,v=y-t.col%y;(m=l.appendChild(S("span",V(v),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),t.col+=v}else"\r"==d[0]||"\n"==d[0]?((m=l.appendChild(S("span","\r"==d[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",d[0]),t.col+=1):((m=t.cm.options.specialCharPlaceholder(d[0])).setAttribute("cm-text",d[0]),o&&s<9?l.appendChild(S("span",[m])):l.appendChild(m),t.col+=1);t.map.push(t.pos,t.pos+1,m),t.pos++}}else t.col+=e.length,l=document.createTextNode(A),t.map.push(t.pos,t.pos+e.length,l),o&&s<9&&(h=!0),t.pos+=e.length;if(t.trailingSpace=32==A.charCodeAt(e.length-1),n||r||i||h||a||c){var b=n||"";r&&(b+=r),i&&(b+=i);var w=S("span",[l],b,a);if(c)for(var _ in c)c.hasOwnProperty(_)&&"style"!=_&&"class"!=_&&w.setAttribute(_,c[_]);return t.content.appendChild(w)}t.content.appendChild(l)}}function Ze(t,e){return function(n,r,i,a,o,s,c){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,A=l+r.length;;){for(var u=void 0,h=0;h<e.length&&!((u=e[h]).to>l&&u.from<=l);h++);if(u.to>=A)return t(n,r,i,a,o,s,c);t(n,r.slice(0,u.to-l),i,a,null,s,c),a=null,r=r.slice(u.to-l),l=u.to}}}function tn(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function en(t,e,n){var r=t.markedSpans,i=t.text,a=0;if(r)for(var o,s,c,l,A,u,h,f=i.length,d=0,p=1,g="",m=0;;){if(m==d){c=l=A=s="",h=null,u=null,m=1/0;for(var y=[],v=void 0,b=0;b<r.length;++b){var w=r[b],_=w.marker;if("bookmark"==_.type&&w.from==d&&_.widgetNode)y.push(_);else if(w.from<=d&&(null==w.to||w.to>d||_.collapsed&&w.to==d&&w.from==d)){if(null!=w.to&&w.to!=d&&m>w.to&&(m=w.to,l=""),_.className&&(c+=" "+_.className),_.css&&(s=(s?s+";":"")+_.css),_.startStyle&&w.from==d&&(A+=" "+_.startStyle),_.endStyle&&w.to==m&&(v||(v=[])).push(_.endStyle,w.to),_.title&&((h||(h={})).title=_.title),_.attributes)for(var E in _.attributes)(h||(h={}))[E]=_.attributes[E];_.collapsed&&(!u||Ne(u.marker,_)<0)&&(u=w)}else w.from>d&&m>w.from&&(m=w.from)}if(v)for(var C=0;C<v.length;C+=2)v[C+1]==m&&(l+=" "+v[C]);if(!u||u.from==d)for(var x=0;x<y.length;++x)tn(e,0,y[x]);if(u&&(u.from||0)==d){if(tn(e,(null==u.to?f+1:u.to)-d,u.marker,null==u.from),null==u.to)return;u.to==d&&(u=!1)}}if(d>=f)break;for(var B=Math.min(f,m);;){if(g){var T=d+g.length;if(!u){var k=T>B?g.slice(0,B-d):g;e.addToken(e,k,o?o+c:c,A,d+k.length==m?l:"",s,h)}if(T>=B){g=g.slice(B-d),d=B;break}d=T,A=""}g=i.slice(a,a=n[p++]),o=We(n[p++],e.cm.options)}}else for(var S=1;S<n.length;S+=2)e.addToken(e,i.slice(a,a=n[S]),We(n[S+1],e.cm.options))}function nn(t,e,n){this.line=e,this.rest=function(t){for(var e,n;e=De(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}(e),this.size=this.rest?Wt(z(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Qe(t,e)}function rn(t,e,n){for(var r,i=[],a=e;a<n;a=r){var o=new nn(t.doc,$t(t.doc,a),a);r=a+o.size,i.push(o)}return i}var an=null,on=null;function sn(t,e){var n=ht(t,e);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);an?r=an.delayedCallbacks:on?r=on:(r=on=[],setTimeout(cn,0));for(var a=function(t){r.push((function(){return n[t].apply(null,i)}))},o=0;o<n.length;++o)a(o)}}function cn(){var t=on;on=null;for(var e=0;e<t.length;++e)t[e]()}function ln(t,e,n,r){for(var i=0;i<e.changes.length;i++){var a=e.changes[i];"text"==a?hn(t,e):"gutter"==a?dn(t,e,n,r):"class"==a?fn(t,e):"widget"==a&&pn(t,e,r)}e.changes=null}function An(t){return t.node==t.text&&(t.node=S("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),o&&s<8&&(t.node.style.zIndex=2)),t.node}function un(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):qe(t,e)}function hn(t,e){var n=e.text.className,r=un(t,e);e.text==e.node&&(e.node=r.pre),e.text.parentNode.replaceChild(r.pre,e.text),e.text=r.pre,r.bgClass!=e.bgClass||r.textClass!=e.textClass?(e.bgClass=r.bgClass,e.textClass=r.textClass,fn(t,e)):n&&(e.text.className=n)}function fn(t,e){!function(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=An(e);e.background=r.insertBefore(S("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}}(t,e),e.line.wrapClass?An(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var n=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=n||""}function dn(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var i=An(e);e.gutterBackground=S("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),i.insertBefore(e.gutterBackground,e.text)}var a=e.line.gutterMarkers;if(t.options.lineNumbers||a){var o=An(e),s=e.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(t.display.input.setUneditable(s),o.insertBefore(s,e.text),e.line.gutterClass&&(s.className+=" "+e.line.gutterClass),!t.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(e.lineNumber=s.appendChild(S("div",Jt(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),a)for(var c=0;c<t.display.gutterSpecs.length;++c){var l=t.display.gutterSpecs[c].className,A=a.hasOwnProperty(l)&&a[l];A&&s.appendChild(S("div",[A],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function pn(t,e,n){e.alignable&&(e.alignable=null);for(var r=C("CodeMirror-linewidget"),i=e.node.firstChild,a=void 0;i;i=a)a=i.nextSibling,r.test(i.className)&&e.node.removeChild(i);mn(t,e,n)}function gn(t,e,n,r){var i=un(t,e);return e.text=e.node=i.pre,i.bgClass&&(e.bgClass=i.bgClass),i.textClass&&(e.textClass=i.textClass),fn(t,e),dn(t,e,n,r),mn(t,e,r),e.node}function mn(t,e,n){if(yn(t,e.line,e,n,!0),e.rest)for(var r=0;r<e.rest.length;r++)yn(t,e.rest[r],e,n,!1)}function yn(t,e,n,r,i){if(e.widgets)for(var a=An(n),o=0,s=e.widgets;o<s.length;++o){var c=s[o],l=S("div",[c.node],"CodeMirror-linewidget"+(c.className?" "+c.className:""));c.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),vn(c,l,n,r),t.display.input.setUneditable(l),i&&c.above?a.insertBefore(l,n.gutter||n.text):a.appendChild(l),sn(c,"redraw")}}function vn(t,e,n,r){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var i=r.wrapperWidth;e.style.left=r.fixedPos+"px",t.coverGutter||(i-=r.gutterTotalWidth,e.style.paddingLeft=r.gutterTotalWidth+"px"),e.style.width=i+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-r.gutterTotalWidth+"px"))}function bn(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!N(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+e.display.wrapper.clientWidth+"px;"),k(e.display.measure,S("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function wn(t,e){for(var n=Et(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function _n(t){return t.lineSpace.offsetTop}function En(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Cn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=k(t.measure,S("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(t.cachedPaddingH=r),r}function xn(t){return 50-t.display.nativeBarWidth}function Bn(t){return t.display.scroller.clientWidth-xn(t)-t.display.barWidth}function Tn(t){return t.display.scroller.clientHeight-xn(t)-t.display.barHeight}function kn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var r=0;r<t.rest.length;r++)if(t.rest[r]==e)return{map:t.measure.maps[r],cache:t.measure.caches[r]};for(var i=0;i<t.rest.length;i++)if(Wt(t.rest[i])>n)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Sn(t,e,n,r){return Mn(t,Nn(t,e),n,r)}function In(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[lr(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function Nn(t,e){var n=Wt(e),r=In(t,n);r&&!r.text?r=null:r&&r.changes&&(ln(t,r,n,ir(t)),t.curOp.forceUpdate=!0),r||(r=function(t,e){var n=Wt(e=Re(e)),r=t.display.externalMeasured=new nn(t.doc,e,n);r.lineN=n;var i=r.built=qe(t,r);return r.text=i.pre,k(t.display.lineMeasure,i.pre),r}(t,e));var i=kn(r,e,n);return{line:e,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Mn(t,e,n,r,i){e.before&&(n=-1);var a,c=n+(r||"");return e.cache.hasOwnProperty(c)?a=e.cache[c]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(function(t,e,n){var r=t.options.lineWrapping,i=r&&Bn(t);if(!e.measure.heights||r&&e.measure.width!=i){var a=e.measure.heights=[];if(r){e.measure.width=i;for(var o=e.text.firstChild.getClientRects(),s=0;s<o.length-1;s++){var c=o[s],l=o[s+1];Math.abs(c.bottom-l.bottom)>2&&a.push((c.bottom+l.top)/2-n.top)}}a.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(a=function(t,e,n,r){var i,a=Ln(e.map,n,r),c=a.node,l=a.start,A=a.end,u=a.collapse;if(3==c.nodeType){for(var h=0;h<4;h++){for(;l&&rt(e.line.text.charAt(a.coverStart+l));)--l;for(;a.coverStart+A<a.coverEnd&&rt(e.line.text.charAt(a.coverStart+A));)++A;if((i=o&&s<9&&0==l&&A==a.coverEnd-a.coverStart?c.parentNode.getBoundingClientRect():On(x(c,l,A).getClientRects(),r)).left||i.right||0==l)break;A=l,l-=1,u="right"}o&&s<11&&(i=function(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(t){if(null!=Ft)return Ft;var e=k(t,S("span","x")),n=e.getBoundingClientRect(),r=x(e,0,1).getBoundingClientRect();return Ft=Math.abs(n.left-r.left)>1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}(t.display.measure,i))}else{var f;l>0&&(u=r="right"),i=t.options.lineWrapping&&(f=c.getClientRects()).length>1?f["right"==r?f.length-1:0]:c.getBoundingClientRect()}if(o&&s<9&&!l&&(!i||!i.left&&!i.right)){var d=c.parentNode.getClientRects()[0];i=d?{left:d.left,right:d.left+rr(t.display),top:d.top,bottom:d.bottom}:Dn}for(var p=i.top-e.rect.top,g=i.bottom-e.rect.top,m=(p+g)/2,y=e.view.measure.heights,v=0;v<y.length-1&&!(m<y[v]);v++);var b=v?y[v-1]:0,w=y[v],_={left:("right"==u?i.right:i.left)-e.rect.left,right:("left"==u?i.left:i.right)-e.rect.left,top:b,bottom:w};return i.left||i.right||(_.bogus=!0),t.options.singleCursorHeightPerLine||(_.rtop=p,_.rbottom=g),_}(t,e,n,r)).bogus||(e.cache[c]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var Fn,Dn={left:0,right:0,top:0,bottom:0};function Ln(t,e,n){for(var r,i,a,o,s,c,l=0;l<t.length;l+=3)if(s=t[l],c=t[l+1],e<s?(i=0,a=1,o="left"):e<c?a=1+(i=e-s):(l==t.length-3||e==c&&t[l+3]>e)&&(i=(a=c-s)-1,e>=c&&(o="right")),null!=i){if(r=t[l+2],s==c&&n==(r.insertLeft?"left":"right")&&(o=n),"left"==n&&0==i)for(;l&&t[l-2]==t[l-3]&&t[l-1].insertLeft;)r=t[2+(l-=3)],o="left";if("right"==n&&i==c-s)for(;l<t.length-3&&t[l+3]==t[l+4]&&!t[l+5].insertLeft;)r=t[(l+=3)+2],o="right";break}return{node:r,start:i,end:a,collapse:o,coverStart:s,coverEnd:c}}function On(t,e){var n=Dn;if("left"==e)for(var r=0;r<t.length&&(n=t[r]).left==n.right;r++);else for(var i=t.length-1;i>=0&&(n=t[i]).left==n.right;i--);return n}function Rn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function Un(t){t.display.externalMeasure=null,T(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)Rn(t.display.view[e])}function Pn(t){Un(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Qn(){return A&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Hn(){return A&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Gn(t){var e=0;if(t.widgets)for(var n=0;n<t.widgets.length;++n)t.widgets[n].above&&(e+=bn(t.widgets[n]));return e}function jn(t,e,n,r,i){if(!i){var a=Gn(e);n.top+=a,n.bottom+=a}if("line"==r)return n;r||(r="local");var o=Ge(e);if("local"==r?o+=_n(t.display):o-=t.display.viewOffset,"page"==r||"window"==r){var s=t.display.lineSpace.getBoundingClientRect();o+=s.top+("window"==r?0:Hn());var c=s.left+("window"==r?0:Qn());n.left+=c,n.right+=c}return n.top+=o,n.bottom+=o,n}function Kn(t,e,n){if("div"==n)return e;var r=e.left,i=e.top;if("page"==n)r-=Qn(),i-=Hn();else if("local"==n||!n){var a=t.display.sizer.getBoundingClientRect();r+=a.left,i+=a.top}var o=t.display.lineSpace.getBoundingClientRect();return{left:r-o.left,top:i-o.top}}function $n(t,e,n,r,i){return r||(r=$t(t.doc,e.line)),jn(t,r,Sn(t,r,e.ch,i),n)}function Yn(t,e,n,r,i,a){function o(e,o){var s=Mn(t,i,e,o?"right":"left",a);return o?s.left=s.right:s.right=s.left,jn(t,r,s,n)}r=r||$t(t.doc,e.line),i||(i=Nn(t,r));var s=lt(r,t.doc.direction),c=e.ch,l=e.sticky;if(c>=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!s)return o("before"==l?c-1:c,"before"==l);function A(t,e,n){return o(n?t-1:t,1==s[e].level!=n)}var u=st(s,c,l),h=ot,f=A(c,u,"before"==l);return null!=h&&(f.other=A(c,h,"before"!=l)),f}function Vn(t,e){var n=0;e=oe(t.doc,e),t.options.lineWrapping||(n=rr(t.display)*e.ch);var r=$t(t.doc,e.line),i=Ge(r)+_n(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function zn(t,e,n,r,i){var a=Zt(t,e,n);return a.xRel=i,r&&(a.outside=r),a}function Wn(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return zn(r.first,0,null,-1,-1);var i=qt(r,n),a=r.first+r.size-1;if(i>a)return zn(r.first+r.size-1,$t(r,a).text.length,null,1,1);e<0&&(e=0);for(var o=$t(r,i);;){var s=Zn(t,o,i,e,n),c=Le(o,s.ch+(s.xRel>0||s.outside>0?1:0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;o=$t(r,i=l.line)}}function qn(t,e,n,r){r-=Gn(e);var i=e.text.length,a=at((function(e){return Mn(t,n,e-1).bottom<=r}),i,0);return{begin:a,end:i=at((function(e){return Mn(t,n,e).top>r}),a,i)}}function Xn(t,e,n,r){return n||(n=Nn(t,e)),qn(t,e,n,jn(t,e,Mn(t,n,r),"line").top)}function Jn(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function Zn(t,e,n,r,i){i-=Ge(e);var a=Nn(t,e),o=Gn(e),s=0,c=e.text.length,l=!0,A=lt(e,t.doc.direction);if(A){var u=(t.options.lineWrapping?er:tr)(t,e,n,a,A,r,i);s=(l=1!=u.level)?u.from:u.to-1,c=l?u.to:u.from-1}var h,f,d=null,p=null,g=at((function(e){var n=Mn(t,a,e);return n.top+=o,n.bottom+=o,!!Jn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(d=e,p=n),!0)}),s,c),m=!1;if(p){var y=r-p.left<p.right-r,v=y==l;g=d+(v?0:1),f=v?"after":"before",h=y?p.left:p.right}else{l||g!=c&&g!=s||g++,f=0==g?"after":g==e.text.length?"before":Mn(t,a,g-(l?1:0)).bottom+o<=i==l?"after":"before";var b=Yn(t,Zt(n,g,f),"line",e,a);h=b.left,m=i<b.top?-1:i>=b.bottom?1:0}return zn(n,g=it(e.text,g,1),f,m,r-h)}function tr(t,e,n,r,i,a,o){var s=at((function(s){var c=i[s],l=1!=c.level;return Jn(Yn(t,Zt(n,l?c.to:c.from,l?"before":"after"),"line",e,r),a,o,!0)}),0,i.length-1),c=i[s];if(s>0){var l=1!=c.level,A=Yn(t,Zt(n,l?c.from:c.to,l?"after":"before"),"line",e,r);Jn(A,a,o,!0)&&A.top>o&&(c=i[s-1])}return c}function er(t,e,n,r,i,a,o){var s=qn(t,e,r,o),c=s.begin,l=s.end;/\s/.test(e.text.charAt(l-1))&&l--;for(var A=null,u=null,h=0;h<i.length;h++){var f=i[h];if(!(f.from>=l||f.to<=c)){var d=Mn(t,r,1!=f.level?Math.min(l,f.to)-1:Math.max(c,f.from)).right,p=d<a?a-d+1e9:d-a;(!A||u>p)&&(A=f,u=p)}}return A||(A=i[i.length-1]),A.from<c&&(A={from:c,to:A.to,level:A.level}),A.to>l&&(A={from:A.from,to:l,level:A.level}),A}function nr(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Fn){Fn=S("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)Fn.appendChild(document.createTextNode("x")),Fn.appendChild(S("br"));Fn.appendChild(document.createTextNode("x"))}k(t.measure,Fn);var n=Fn.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),T(t.measure),n||1}function rr(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=S("span","xxxxxxxxxx"),n=S("pre",[e],"CodeMirror-line-like");k(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function ir(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,a=e.gutters.firstChild,o=0;a;a=a.nextSibling,++o){var s=t.display.gutterSpecs[o].className;n[s]=a.offsetLeft+a.clientLeft+i,r[s]=a.clientWidth}return{fixedPos:ar(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function ar(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function or(t){var e=nr(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/rr(t.display)-3);return function(i){if(Qe(t.doc,i))return 0;var a=0;if(i.widgets)for(var o=0;o<i.widgets.length;o++)i.widgets[o].height&&(a+=i.widgets[o].height);return n?a+(Math.ceil(i.text.length/r)||1)*e:a+e}}function sr(t){var e=t.doc,n=or(t);e.iter((function(t){var e=n(t);e!=t.height&&zt(t,e)}))}function cr(t,e,n,r){var i=t.display;if(!n&&"true"==Et(e).getAttribute("cm-not-content"))return null;var a,o,s=i.lineSpace.getBoundingClientRect();try{a=e.clientX-s.left,o=e.clientY-s.top}catch(t){return null}var c,l=Wn(t,a,o);if(r&&l.xRel>0&&(c=$t(t.doc,l.line).text).length==l.ch){var A=U(c,c.length,t.options.tabSize)-c.length;l=Zt(l.line,Math.max(0,Math.round((a-Cn(t.display).left)/rr(t.display))-A))}return l}function lr(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;r<n.length;r++)if((e-=n[r].size)<0)return r}function Ar(t,e,n,r){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),r||(r=0);var i=t.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>e)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)we&&Ue(t.doc,e)<i.viewTo&&hr(t);else if(n<=i.viewFrom)we&&Pe(t.doc,n+r)>i.viewFrom?hr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)hr(t);else if(e<=i.viewFrom){var a=fr(t,n,n+r,1);a?(i.view=i.view.slice(a.index),i.viewFrom=a.lineN,i.viewTo+=r):hr(t)}else if(n>=i.viewTo){var o=fr(t,e,e,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):hr(t)}else{var s=fr(t,e,e,-1),c=fr(t,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(rn(t,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):hr(t)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:e<l.lineN+l.size&&(i.externalMeasured=null))}function ur(t,e,n){t.curOp.viewChanged=!0;var r=t.display,i=t.display.externalMeasured;if(i&&e>=i.lineN&&e<i.lineN+i.size&&(r.externalMeasured=null),!(e<r.viewFrom||e>=r.viewTo)){var a=r.view[lr(t,e)];if(null!=a.node){var o=a.changes||(a.changes=[]);-1==Q(o,n)&&o.push(n)}}}function hr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function fr(t,e,n,r){var i,a=lr(t,e),o=t.display.view;if(!we||n==t.doc.first+t.doc.size)return{index:a,lineN:n};for(var s=t.display.viewFrom,c=0;c<a;c++)s+=o[c].size;if(s!=e){if(r>0){if(a==o.length-1)return null;i=s+o[a].size-e,a++}else i=s-e;e+=i,n+=i}for(;Ue(t.doc,n)!=n;){if(a==(r<0?0:o.length-1))return null;n+=r*o[a-(r<0?1:0)].size,a+=r}return{index:a,lineN:n}}function dr(t){for(var e=t.display.view,n=0,r=0;r<e.length;r++){var i=e[r];i.hidden||i.node&&!i.changes||++n}return n}function pr(t){t.display.input.showSelection(t.display.input.prepareSelection())}function gr(t,e){void 0===e&&(e=!0);for(var n=t.doc,r={},i=r.cursors=document.createDocumentFragment(),a=r.selection=document.createDocumentFragment(),o=0;o<n.sel.ranges.length;o++)if(e||o!=n.sel.primIndex){var s=n.sel.ranges[o];if(!(s.from().line>=t.display.viewTo||s.to().line<t.display.viewFrom)){var c=s.empty();(c||t.options.showCursorWhenSelecting)&&mr(t,s.head,i),c||vr(t,s,a)}}return r}function mr(t,e,n){var r=Yn(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),i=n.appendChild(S("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",r.other){var a=n.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function yr(t,e){return t.top-e.top||t.left-e.left}function vr(t,e,n){var r=t.display,i=t.doc,a=document.createDocumentFragment(),o=Cn(t.display),s=o.left,c=Math.max(r.sizerWidth,Bn(t)-r.sizer.offsetLeft)-o.right,l="ltr"==i.direction;function A(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),a.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==n?c-t:n)+"px;\n height: "+(r-e)+"px"))}function u(e,n,r){var a,o,u=$t(i,e),h=u.text.length;function f(n,r){return $n(t,Zt(e,n),"div",u,r)}function d(e,n,r){var i=Xn(t,u,null,e),a="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(u.text.charAt(i.end-1))?2:1),a)[a]}var p=lt(u,i.direction);return function(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,a=0;a<t.length;++a){var o=t[a];(o.from<n&&o.to>e||e==n&&o.to==e)&&(r(Math.max(o.from,e),Math.min(o.to,n),1==o.level?"rtl":"ltr",a),i=!0)}i||r(e,n,"ltr")}(p,n||0,null==r?h:r,(function(t,e,i,u){var g="ltr"==i,m=f(t,g?"left":"right"),y=f(e-1,g?"right":"left"),v=null==n&&0==t,b=null==r&&e==h,w=0==u,_=!p||u==p.length-1;if(y.top-m.top<=3){var E=(l?b:v)&&_,C=(l?v:b)&&w?s:(g?m:y).left,x=E?c:(g?y:m).right;A(C,m.top,x-C,m.bottom)}else{var B,T,k,S;g?(B=l&&v&&w?s:m.left,T=l?c:d(t,i,"before"),k=l?s:d(e,i,"after"),S=l&&b&&_?c:y.right):(B=l?d(t,i,"before"):s,T=!l&&v&&w?c:m.right,k=!l&&b&&_?s:y.left,S=l?d(e,i,"after"):c),A(B,m.top,T-B,m.bottom),m.bottom<y.top&&A(s,m.bottom,null,y.top),A(k,y.top,S-k,y.bottom)}(!a||yr(m,a)<0)&&(a=m),yr(y,a)<0&&(a=y),(!o||yr(m,o)<0)&&(o=m),yr(y,o)<0&&(o=y)})),{start:a,end:o}}var h=e.from(),f=e.to();if(h.line==f.line)u(h.line,h.ch,f.ch);else{var d=$t(i,h.line),p=$t(i,f.line),g=Re(d)==Re(p),m=u(h.line,h.ch,g?d.text.length+1:null).end,y=u(f.line,g?0:null,f.ch).start;g&&(m.top<y.top-2?(A(m.right,m.top,null,m.bottom),A(s,y.top,y.left,y.bottom)):A(m.right,m.top,y.left-m.right,m.bottom)),m.bottom<y.top&&A(s,m.bottom,null,y.top)}n.appendChild(a)}function br(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval((function(){t.hasFocus()||Cr(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function wr(t){t.state.focused||(t.display.input.focus(),Er(t))}function _r(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Cr(t))}),100)}function Er(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(dt(t,"focus",t,e),t.state.focused=!0,F(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),c&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),br(t))}function Cr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(dt(t,"blur",t,e),t.state.focused=!1,B(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function xr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r<e.view.length;r++){var i=e.view[r],a=t.options.lineWrapping,c=void 0,l=0;if(!i.hidden){if(o&&s<8){var A=i.node.offsetTop+i.node.offsetHeight;c=A-n,n=A}else{var u=i.node.getBoundingClientRect();c=u.bottom-u.top,!a&&i.text.firstChild&&(l=i.text.firstChild.getBoundingClientRect().right-u.left-1)}var h=i.line.height-c;if((h>.005||h<-.005)&&(zt(i.line,c),Br(i.line),i.rest))for(var f=0;f<i.rest.length;f++)Br(i.rest[f]);if(l>t.display.sizerWidth){var d=Math.ceil(l/rr(t.display));d>t.display.maxLineLength&&(t.display.maxLineLength=d,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function Br(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Tr(t,e,n){var r=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;r=Math.floor(r-_n(t));var i=n&&null!=n.bottom?n.bottom:r+t.wrapper.clientHeight,a=qt(e,r),o=qt(e,i);if(n&&n.ensure){var s=n.ensure.from.line,c=n.ensure.to.line;s<a?(a=s,o=qt(e,Ge($t(e,s))+t.wrapper.clientHeight)):Math.min(c,e.lastLine())>=o&&(a=qt(e,Ge($t(e,c))-t.wrapper.clientHeight),o=c)}return{from:a,to:Math.max(o,a+1)}}function kr(t,e){var n=t.display,r=nr(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,a=Tn(t),o={};e.bottom-e.top>a&&(e.bottom=e.top+a);var s=t.doc.height+En(n),c=e.top<r,l=e.bottom>s-r;if(e.top<i)o.scrollTop=c?0:e.top;else if(e.bottom>i+a){var A=Math.min(e.top,(l?s:e.bottom)-a);A!=i&&(o.scrollTop=A)}var u=t.options.fixedGutter?0:n.gutters.offsetWidth,h=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-u,f=Bn(t)-n.gutters.offsetWidth,d=e.right-e.left>f;return d&&(e.right=e.left+f),e.left<10?o.scrollLeft=0:e.left<h?o.scrollLeft=Math.max(0,e.left+u-(d?0:10)):e.right>f+h-3&&(o.scrollLeft=e.right+(d?0:10)-f),o}function Sr(t,e){null!=e&&(Mr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Ir(t){Mr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Nr(t,e,n){null==e&&null==n||Mr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Mr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Fr(t,Vn(t,e.from),Vn(t,e.to),e.margin))}function Fr(t,e,n,r){var i=kr(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});Nr(t,i.scrollLeft,i.scrollTop)}function Dr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||si(t,{top:e}),Lr(t,e,!0),n&&si(t),ni(t,100))}function Lr(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Or(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,Ai(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Rr(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+En(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+xn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var Ur=function(t,e,n){this.cm=n;var r=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),ut(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),ut(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ur.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var a=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+a)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},Ur.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ur.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ur.prototype.zeroWidthHack=function(){var t=y&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new P,this.disableVert=new P},Ur.prototype.enableZeroWidthBar=function(t,e,n){t.style.pointerEvents="auto",e.set(1e3,(function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,r)}))},Ur.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Pr=function(){};function Qr(t,e){e||(e=Rr(t));var n=t.display.barWidth,r=t.display.barHeight;Hr(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&xr(t),Hr(t,Rr(t)),n=t.display.barWidth,r=t.display.barHeight}function Hr(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}Pr.prototype.update=function(){return{bottom:0,right:0}},Pr.prototype.setScrollLeft=function(){},Pr.prototype.setScrollTop=function(){},Pr.prototype.clear=function(){};var Gr={native:Ur,null:Pr};function jr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&B(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Gr[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),ut(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?Or(t,e):Dr(t,e)}),t),t.display.scrollbars.addClass&&F(t.display.wrapper,t.display.scrollbars.addClass)}var Kr=0;function $r(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Kr},e=t.curOp,an?an.ops.push(e):e.ownsGroup=an={ops:[e],delayedCallbacks:[]}}function Yr(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var r=0;r<t.ops.length;r++){var i=t.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<e.length)}(n)}finally{an=null,e(n)}}(e,(function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;!function(t){for(var e=t.ops,n=0;n<e.length;n++)Vr(e[n]);for(var r=0;r<e.length;r++)zr(e[r]);for(var i=0;i<e.length;i++)Wr(e[i]);for(var a=0;a<e.length;a++)qr(e[a]);for(var o=0;o<e.length;o++)Xr(e[o])}(t)}))}function Vr(t){var e=t.cm,n=e.display;!function(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=xn(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=xn(t)+"px",e.scrollbarsClipped=!0)}(e),t.updateMaxLine&&Ke(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new ii(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function zr(t){t.updatedDisplay=t.mustUpdate&&ai(t.cm,t.update)}function Wr(t){var e=t.cm,n=e.display;t.updatedDisplay&&xr(e),t.barMeasure=Rr(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Sn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+xn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Bn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function qr(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&Or(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==M();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&Qr(e,t.barMeasure),t.updatedDisplay&&li(e,t.barMeasure),t.selectionChanged&&br(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&wr(t.cm)}function Xr(t){var e=t.cm,n=e.display,r=e.doc;t.updatedDisplay&&oi(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&Lr(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&Or(e,t.scrollLeft,!0,!0),t.scrollToPos&&function(t,e){if(!pt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),i=null;if(e.top+r.top<0?i=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!d){var a=S("div","",null,"position: absolute;\n top: "+(e.top-n.viewOffset-_n(t.display))+"px;\n height: "+(e.bottom-e.top+xn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(a),a.scrollIntoView(i),t.display.lineSpace.removeChild(a)}}}(e,function(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?Zt(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?Zt(e.line,e.ch+1,"before"):e);for(var a=0;a<5;a++){var o=!1,s=Yn(t,e),c=n&&n!=e?Yn(t,n):s,l=kr(t,i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r}),A=t.doc.scrollTop,u=t.doc.scrollLeft;if(null!=l.scrollTop&&(Dr(t,l.scrollTop),Math.abs(t.doc.scrollTop-A)>1&&(o=!0)),null!=l.scrollLeft&&(Or(t,l.scrollLeft),Math.abs(t.doc.scrollLeft-u)>1&&(o=!0)),!o)break}return i}(e,oe(r,t.scrollToPos.from),oe(r,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,a=t.maybeUnhiddenMarkers;if(i)for(var o=0;o<i.length;++o)i[o].lines.length||dt(i[o],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&dt(a[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&dt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function Jr(t,e){if(t.curOp)return e();$r(t);try{return e()}finally{Yr(t)}}function Zr(t,e){return function(){if(t.curOp)return e.apply(t,arguments);$r(t);try{return e.apply(t,arguments)}finally{Yr(t)}}}function ti(t){return function(){if(this.curOp)return t.apply(this,arguments);$r(this);try{return t.apply(this,arguments)}finally{Yr(this)}}}function ei(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);$r(e);try{return t.apply(this,arguments)}finally{Yr(e)}}}function ni(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,O(ri,t))}function ri(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,r=he(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(a){if(r.line>=t.display.viewFrom){var o=a.styles,s=a.text.length>t.options.maxHighlightLength?Ht(e.mode,r.state):null,c=Ae(t,a,r,!0);s&&(r.state=s),a.styles=c.styles;var l=a.styleClasses,A=c.classes;A?a.styleClasses=A:l&&(a.styleClasses=null);for(var u=!o||o.length!=a.styles.length||l!=A&&(!l||!A||l.bgClass!=A.bgClass||l.textClass!=A.textClass),h=0;!u&&h<o.length;++h)u=o[h]!=a.styles[h];u&&i.push(r.line),a.stateAfter=r.save(),r.nextLine()}else a.text.length<=t.options.maxHighlightLength&&fe(t,a.text,r),a.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ni(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Jr(t,(function(){for(var e=0;e<i.length;e++)ur(t,i[e],"text")}))}}var ii=function(t,e,n){var r=t.display;this.viewport=e,this.visible=Tr(r,t.doc,e),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Bn(t),this.force=n,this.dims=ir(t),this.events=[]};function ai(t,e){var n=t.display,r=t.doc;if(e.editorIsHidden)return hr(t),!1;if(!e.force&&e.visible.from>=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==dr(t))return!1;ui(t)&&(hr(t),e.dims=ir(t));var i=r.first+r.size,a=Math.max(e.visible.from-t.options.viewportMargin,r.first),o=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFrom<a&&a-n.viewFrom<20&&(a=Math.max(r.first,n.viewFrom)),n.viewTo>o&&n.viewTo-o<20&&(o=Math.min(i,n.viewTo)),we&&(a=Ue(t.doc,a),o=Pe(t.doc,o));var s=a!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;!function(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=rn(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=rn(t,e,r.viewFrom).concat(r.view):r.viewFrom<e&&(r.view=r.view.slice(lr(t,e))),r.viewFrom=e,r.viewTo<n?r.view=r.view.concat(rn(t,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,lr(t,n)))),r.viewTo=n}(t,a,o),n.viewOffset=Ge($t(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var l=dr(t);if(!s&&0==l&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var A=function(t){if(t.hasFocus())return null;var e=M();if(!e||!N(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&N(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(t);return l>4&&(n.lineDiv.style.display="none"),function(t,e,n){var r=t.display,i=t.options.lineNumbers,a=r.lineDiv,o=a.firstChild;function s(e){var n=e.nextSibling;return c&&y&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var l=r.view,A=r.viewFrom,u=0;u<l.length;u++){var h=l[u];if(h.hidden);else if(h.node&&h.node.parentNode==a){for(;o!=h.node;)o=s(o);var f=i&&null!=e&&e<=A&&h.lineNumber;h.changes&&(Q(h.changes,"gutter")>-1&&(f=!1),ln(t,h,A,n)),f&&(T(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(Jt(t.options,A)))),o=h.node.nextSibling}else{var d=gn(t,h,A,n);a.insertBefore(d,o)}A+=h.size}for(;o;)o=s(o)}(t,n.updateLineNumbers,e.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=M()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&N(document.body,t.anchorNode)&&N(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}(A),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,ni(t,400)),n.updateLineNumbers=null,!0}function oi(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Bn(t))r&&(e.visible=Tr(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+En(t.display)-Tn(t),n.top)}),e.visible=Tr(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!ai(t,e))break;xr(t);var i=Rr(t);pr(t),Qr(t,i),li(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function si(t,e){var n=new ii(t,e);if(ai(t,n)){xr(t),oi(t,n);var r=Rr(t);pr(t),Qr(t,r),li(t,r),n.finish()}}function ci(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function li(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+xn(t)+"px"}function Ai(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=ar(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,a=r+"px",o=0;o<n.length;o++)if(!n[o].hidden){t.options.fixedGutter&&(n[o].gutter&&(n[o].gutter.style.left=a),n[o].gutterBackground&&(n[o].gutterBackground.style.left=a));var s=n[o].alignable;if(s)for(var c=0;c<s.length;c++)s[c].style.left=a}t.options.fixedGutter&&(e.gutters.style.left=r+i+"px")}}function ui(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=Jt(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(S("div",[S("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=i.firstChild.offsetWidth,o=i.offsetWidth-a;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(a,r.lineGutter.offsetWidth-o)+1,r.lineNumWidth=r.lineNumInnerWidth+o,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",ci(t.display),!0}return!1}function hi(t,e){for(var n=[],r=!1,i=0;i<t.length;i++){var a=t[i],o=null;if("string"!=typeof a&&(o=a.style,a=a.className),"CodeMirror-linenumbers"==a){if(!e)continue;r=!0}n.push({className:a,style:o})}return e&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function fi(t){var e=t.gutters,n=t.gutterSpecs;T(e),t.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],a=i.className,o=i.style,s=e.appendChild(S("div",null,"CodeMirror-gutter "+a));o&&(s.style.cssText=o),"CodeMirror-linenumbers"==a&&(t.lineGutter=s,s.style.width=(t.lineNumWidth||1)+"px")}e.style.display=n.length?"":"none",ci(t)}function di(t){fi(t.display),Ar(t),Ai(t)}function pi(t,e,r,i){var a=this;this.input=r,a.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),a.scrollbarFiller.setAttribute("cm-not-content","true"),a.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),a.gutterFiller.setAttribute("cm-not-content","true"),a.lineDiv=I("div",null,"CodeMirror-code"),a.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),a.cursorDiv=S("div",null,"CodeMirror-cursors"),a.measure=S("div",null,"CodeMirror-measure"),a.lineMeasure=S("div",null,"CodeMirror-measure"),a.lineSpace=I("div",[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,"position: relative; outline: none");var l=I("div",[a.lineSpace],"CodeMirror-lines");a.mover=S("div",[l],null,"position: relative"),a.sizer=S("div",[a.mover],"CodeMirror-sizer"),a.sizerWidth=null,a.heightForcer=S("div",null,null,"position: absolute; height: 50px; width: 1px;"),a.gutters=S("div",null,"CodeMirror-gutters"),a.lineGutter=null,a.scroller=S("div",[a.sizer,a.heightForcer,a.gutters],"CodeMirror-scroll"),a.scroller.setAttribute("tabIndex","-1"),a.wrapper=S("div",[a.scrollbarFiller,a.gutterFiller,a.scroller],"CodeMirror"),o&&s<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),c||n&&m||(a.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(a.wrapper):t(a.wrapper)),a.viewFrom=a.viewTo=e.first,a.reportedViewFrom=a.reportedViewTo=e.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=hi(i.gutters,i.lineNumbers),fi(a),r.init(a)}ii.prototype.signal=function(t,e){mt(t,e)&&this.events.push(arguments)},ii.prototype.finish=function(){for(var t=0;t<this.events.length;t++)dt.apply(null,this.events[t])};var gi=0,mi=null;function yi(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function vi(t){var e=yi(t);return e.x*=mi,e.y*=mi,e}function bi(t,e){var r=yi(e),i=r.x,a=r.y,o=t.display,s=o.scroller,l=s.scrollWidth>s.clientWidth,A=s.scrollHeight>s.clientHeight;if(i&&l||a&&A){if(a&&y&&c)t:for(var h=e.target,f=o.view;h!=s;h=h.parentNode)for(var d=0;d<f.length;d++)if(f[d].node==h){t.display.currentWheelTarget=h;break t}if(i&&!n&&!u&&null!=mi)return a&&A&&Dr(t,Math.max(0,s.scrollTop+a*mi)),Or(t,Math.max(0,s.scrollLeft+i*mi)),(!a||a&&A)&&vt(e),void(o.wheelStartX=null);if(a&&null!=mi){var p=a*mi,g=t.doc.scrollTop,m=g+o.wrapper.clientHeight;p<0?g=Math.max(0,g+p-50):m=Math.min(t.doc.height,m+p+50),si(t,{top:g,bottom:m})}gi<20&&(null==o.wheelStartX?(o.wheelStartX=s.scrollLeft,o.wheelStartY=s.scrollTop,o.wheelDX=i,o.wheelDY=a,setTimeout((function(){if(null!=o.wheelStartX){var t=s.scrollLeft-o.wheelStartX,e=s.scrollTop-o.wheelStartY,n=e&&o.wheelDY&&e/o.wheelDY||t&&o.wheelDX&&t/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(mi=(mi*gi+n)/(gi+1),++gi)}}),200)):(o.wheelDX+=i,o.wheelDY+=a))}}o?mi=-.53:n?mi=15:A?mi=-.7:h&&(mi=-1/3);var wi=function(t,e){this.ranges=t,this.primIndex=e};wi.prototype.primary=function(){return this.ranges[this.primIndex]},wi.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var n=this.ranges[e],r=t.ranges[e];if(!ee(n.anchor,r.anchor)||!ee(n.head,r.head))return!1}return!0},wi.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new _i(ne(this.ranges[e].anchor),ne(this.ranges[e].head));return new wi(t,this.primIndex)},wi.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},wi.prototype.contains=function(t,e){e||(e=t);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(te(e,r.from())>=0&&te(t,r.to())<=0)return n}return-1};var _i=function(t,e){this.anchor=t,this.head=e};function Ei(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return te(t.from(),e.from())})),n=Q(e,i);for(var a=1;a<e.length;a++){var o=e[a],s=e[a-1],c=te(s.to(),o.from());if(r&&!o.empty()?c>0:c>=0){var l=ie(s.from(),o.from()),A=re(s.to(),o.to()),u=s.empty()?o.from()==o.head:s.from()==s.head;a<=n&&--n,e.splice(--a,2,new _i(u?A:l,u?l:A))}}return new wi(e,n)}function Ci(t,e){return new wi([new _i(t,e||t)],0)}function xi(t){return t.text?Zt(t.from.line+t.text.length-1,z(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Bi(t,e){if(te(t,e.from)<0)return t;if(te(t,e.to)<=0)return xi(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=xi(e).ch-e.to.ch),Zt(n,r)}function Ti(t,e){for(var n=[],r=0;r<t.sel.ranges.length;r++){var i=t.sel.ranges[r];n.push(new _i(Bi(i.anchor,e),Bi(i.head,e)))}return Ei(t.cm,n,t.sel.primIndex)}function ki(t,e,n){return t.line==e.line?Zt(n.line,t.ch-e.ch+n.ch):Zt(n.line+(t.line-e.line),t.ch)}function Si(t){t.doc.mode=Ut(t.options,t.doc.modeOption),Ii(t)}function Ii(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,ni(t,100),t.state.modeGen++,t.curOp&&Ar(t)}function Ni(t,e){return 0==e.from.ch&&0==e.to.ch&&""==z(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Mi(t,e,n,r){function i(t){return n?n[t]:null}function a(t,n,i){!function(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),Te(t),ke(t,n);var i=r?r(t):1;i!=t.height&&zt(t,i)}(t,n,i,r),sn(t,"change",t,e)}function o(t,e){for(var n=[],a=t;a<e;++a)n.push(new $e(l[a],i(a),r));return n}var s=e.from,c=e.to,l=e.text,A=$t(t,s.line),u=$t(t,c.line),h=z(l),f=i(l.length-1),d=c.line-s.line;if(e.full)t.insert(0,o(0,l.length)),t.remove(l.length,t.size-l.length);else if(Ni(t,e)){var p=o(0,l.length-1);a(u,u.text,f),d&&t.remove(s.line,d),p.length&&t.insert(s.line,p)}else if(A==u)if(1==l.length)a(A,A.text.slice(0,s.ch)+h+A.text.slice(c.ch),f);else{var g=o(1,l.length-1);g.push(new $e(h+A.text.slice(c.ch),f,r)),a(A,A.text.slice(0,s.ch)+l[0],i(0)),t.insert(s.line+1,g)}else if(1==l.length)a(A,A.text.slice(0,s.ch)+l[0]+u.text.slice(c.ch),i(0)),t.remove(s.line+1,d);else{a(A,A.text.slice(0,s.ch)+l[0],i(0)),a(u,h+u.text.slice(c.ch),f);var m=o(1,l.length-1);d>1&&t.remove(s.line+1,d-1),t.insert(s.line+1,m)}sn(t,"change",t,e)}function Fi(t,e,n){!function t(r,i,a){if(r.linked)for(var o=0;o<r.linked.length;++o){var s=r.linked[o];if(s.doc!=i){var c=a&&s.sharedHist;n&&!c||(e(s.doc,c),t(s.doc,r,c))}}}(t,null,!0)}function Di(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,sr(t),Si(t),Li(t),t.options.lineWrapping||Ke(t),t.options.mode=e.modeOption,Ar(t)}function Li(t){("rtl"==t.doc.direction?F:B)(t.display.lineDiv,"CodeMirror-rtl")}function Oi(t){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function Ri(t,e){var n={from:ne(e.from),to:xi(e),text:Yt(t,e.from,e.to)};return Gi(t,n,e.from.line,e.to.line+1),Fi(t,(function(t){return Gi(t,n,e.from.line,e.to.line+1)}),!0),n}function Ui(t){for(;t.length&&z(t).ranges;)t.pop()}function Pi(t,e,n,r){var i=t.history;i.undone.length=0;var a,o,s=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(a=function(t,e){return e?(Ui(t.done),z(t.done)):t.done.length&&!z(t.done).ranges?z(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),z(t.done)):void 0}(i,i.lastOp==r)))o=z(a.changes),0==te(e.from,e.to)&&0==te(e.from,o.to)?o.to=xi(e):a.changes.push(Ri(t,e));else{var c=z(i.done);for(c&&c.ranges||Hi(t.sel,i.done),a={changes:[Ri(t,e)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,o||dt(t,"historyAdded")}function Qi(t,e,n,r){var i=t.history,a=r&&r.origin;n==i.lastSelOp||a&&i.lastSelOrigin==a&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==a||function(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,a,z(i.done),e))?i.done[i.done.length-1]=e:Hi(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=a,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ui(i.undone)}function Hi(t,e){var n=z(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Gi(t,e,n,r){var i=e["spans_"+t.id],a=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[a]=n.markedSpans),++a}))}function ji(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function Ki(t,e){var n=function(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var r=[],i=0;i<e.text.length;++i)r.push(ji(n[i]));return r}(t,e),r=xe(t,e);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var a=n[i],o=r[i];if(a&&o)t:for(var s=0;s<o.length;++s){for(var c=o[s],l=0;l<a.length;++l)if(a[l].marker==c.marker)continue t;a.push(c)}else o&&(n[i]=o)}return n}function $i(t,e,n){for(var r=[],i=0;i<t.length;++i){var a=t[i];if(a.ranges)r.push(n?wi.prototype.deepCopy.call(a):a);else{var o=a.changes,s=[];r.push({changes:s});for(var c=0;c<o.length;++c){var l=o[c],A=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),e)for(var u in l)(A=u.match(/^spans_(\d+)$/))&&Q(e,Number(A[1]))>-1&&(z(s)[u]=l[u],delete l[u])}}}return r}function Yi(t,e,n,r){if(r){var i=t.anchor;if(n){var a=te(e,i)<0;a!=te(n,i)<0?(i=e,e=n):a!=te(e,n)<0&&(e=n)}return new _i(i,e)}return new _i(n||e,e)}function Vi(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Ji(t,new wi([Yi(t.sel.primary(),e,n,i)],0),r)}function zi(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),a=0;a<t.sel.ranges.length;a++)r[a]=Yi(t.sel.ranges[a],e[a],null,i);Ji(t,Ei(t.cm,r,t.sel.primIndex),n)}function Wi(t,e,n,r){var i=t.sel.ranges.slice(0);i[e]=n,Ji(t,Ei(t.cm,i,t.sel.primIndex),r)}function qi(t,e,n,r){Ji(t,Ci(e,n),r)}function Xi(t,e,n){var r=t.history.done,i=z(r);i&&i.ranges?(r[r.length-1]=e,Zi(t,e,n)):Ji(t,e,n)}function Ji(t,e,n){Zi(t,e,n),Qi(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function Zi(t,e,n){(mt(t,"beforeSelectionChange")||t.cm&&mt(t.cm,"beforeSelectionChange"))&&(e=function(t,e,n){var r={ranges:e.ranges,update:function(e){this.ranges=[];for(var n=0;n<e.length;n++)this.ranges[n]=new _i(oe(t,e[n].anchor),oe(t,e[n].head))},origin:n&&n.origin};return dt(t,"beforeSelectionChange",t,r),t.cm&&dt(t.cm,"beforeSelectionChange",t.cm,r),r.ranges!=e.ranges?Ei(t.cm,r.ranges,r.ranges.length-1):e}(t,e,n));var r=n&&n.bias||(te(e.primary().head,t.sel.primary().head)<0?-1:1);ta(t,na(t,e,r,!0)),n&&!1===n.scroll||!t.cm||Ir(t.cm)}function ta(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,gt(t.cm)),sn(t,"cursorActivity",t))}function ea(t){ta(t,na(t,t.sel,null,!1))}function na(t,e,n,r){for(var i,a=0;a<e.ranges.length;a++){var o=e.ranges[a],s=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[a],c=ia(t,o.anchor,s&&s.anchor,n,r),l=ia(t,o.head,s&&s.head,n,r);(i||c!=o.anchor||l!=o.head)&&(i||(i=e.ranges.slice(0,a)),i[a]=new _i(c,l))}return i?Ei(t.cm,i,e.primIndex):e}function ra(t,e,n,r,i){var a=$t(t,e.line);if(a.markedSpans)for(var o=0;o<a.markedSpans.length;++o){var s=a.markedSpans[o],c=s.marker,l="selectLeft"in c?!c.selectLeft:c.inclusiveLeft,A="selectRight"in c?!c.selectRight:c.inclusiveRight;if((null==s.from||(l?s.from<=e.ch:s.from<e.ch))&&(null==s.to||(A?s.to>=e.ch:s.to>e.ch))){if(i&&(dt(c,"beforeCursorEnter"),c.explicitlyCleared)){if(a.markedSpans){--o;continue}break}if(!c.atomic)continue;if(n){var u=c.find(r<0?1:-1),h=void 0;if((r<0?A:l)&&(u=aa(t,u,-r,u&&u.line==e.line?a:null)),u&&u.line==e.line&&(h=te(u,n))&&(r<0?h<0:h>0))return ra(t,u,e,r,i)}var f=c.find(r<0?-1:1);return(r<0?l:A)&&(f=aa(t,f,r,f.line==e.line?a:null)),f?ra(t,f,e,r,i):null}}return e}function ia(t,e,n,r,i){var a=r||1,o=ra(t,e,n,a,i)||!i&&ra(t,e,n,a,!0)||ra(t,e,n,-a,i)||!i&&ra(t,e,n,-a,!0);return o||(t.cantEdit=!0,Zt(t.first,0))}function aa(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?oe(t,Zt(e.line-1)):null:n>0&&e.ch==(r||$t(t,e.line)).text.length?e.line<t.first+t.size-1?Zt(e.line+1,0):null:new Zt(e.line,e.ch+n)}function oa(t){t.setSelection(Zt(t.firstLine(),0),Zt(t.lastLine()),G)}function sa(t,e,n){var r={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(e,n,i,a){e&&(r.from=oe(t,e)),n&&(r.to=oe(t,n)),i&&(r.text=i),void 0!==a&&(r.origin=a)}),dt(t,"beforeChange",t,r),t.cm&&dt(t.cm,"beforeChange",t.cm,r),r.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ca(t,e,n){if(t.cm){if(!t.cm.curOp)return Zr(t.cm,ca)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(mt(t,"beforeChange")||t.cm&&mt(t.cm,"beforeChange"))||(e=sa(t,e,!0))){var r=be&&!n&&function(t,e,n){var r=null;if(t.iter(e.line,n.line+1,(function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||r&&-1!=Q(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:e,to:n}],a=0;a<r.length;++a)for(var o=r[a],s=o.find(0),c=0;c<i.length;++c){var l=i[c];if(!(te(l.to,s.from)<0||te(l.from,s.to)>0)){var A=[c,1],u=te(l.from,s.from),h=te(l.to,s.to);(u<0||!o.inclusiveLeft&&!u)&&A.push({from:l.from,to:s.from}),(h>0||!o.inclusiveRight&&!h)&&A.push({from:s.to,to:l.to}),i.splice.apply(i,A),c+=A.length-3}}return i}(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)la(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else la(t,e)}}function la(t,e){if(1!=e.text.length||""!=e.text[0]||0!=te(e.from,e.to)){var n=Ti(t,e);Pi(t,e,n,t.cm?t.cm.curOp.id:NaN),ha(t,e,n,xe(t,e));var r=[];Fi(t,(function(t,n){n||-1!=Q(r,t.history)||(ga(t.history,e),r.push(t.history)),ha(t,e,null,xe(t,e))}))}}function Aa(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,a=t.history,o=t.sel,s="undo"==e?a.done:a.undone,c="undo"==e?a.undone:a.done,l=0;l<s.length&&(i=s[l],n?!i.ranges||i.equals(t.sel):i.ranges);l++);if(l!=s.length){for(a.lastOrigin=a.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Hi(i,c),n&&!i.equals(t.sel))return void Ji(t,i,{clearRedo:!1});o=i}var A=[];Hi(o,c),c.push({changes:A,generation:a.generation}),a.generation=i.generation||++a.maxGeneration;for(var u=mt(t,"beforeChange")||t.cm&&mt(t.cm,"beforeChange"),h=function(n){var r=i.changes[n];if(r.origin=e,u&&!sa(t,r,!1))return s.length=0,{};A.push(Ri(t,r));var a=n?Ti(t,r):z(s);ha(t,r,a,Ki(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:xi(r)});var o=[];Fi(t,(function(t,e){e||-1!=Q(o,t.history)||(ga(t.history,r),o.push(t.history)),ha(t,r,null,Ki(t,r))}))},f=i.changes.length-1;f>=0;--f){var d=h(f);if(d)return d.v}}}}function ua(t,e){if(0!=e&&(t.first+=e,t.sel=new wi(W(t.sel.ranges,(function(t){return new _i(Zt(t.anchor.line+e,t.anchor.ch),Zt(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){Ar(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;r<n.viewTo;r++)ur(t.cm,r,"gutter")}}function ha(t,e,n,r){if(t.cm&&!t.cm.curOp)return Zr(t.cm,ha)(t,e,n,r);if(e.to.line<t.first)ua(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var i=e.text.length-1-(t.first-e.from.line);ua(t,i),e={from:Zt(t.first,0),to:Zt(e.to.line+i,e.to.ch),text:[z(e.text)],origin:e.origin}}var a=t.lastLine();e.to.line>a&&(e={from:e.from,to:Zt(a,$t(t,a).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Yt(t,e.from,e.to),n||(n=Ti(t,e)),t.cm?function(t,e,n){var r=t.doc,i=t.display,a=e.from,o=e.to,s=!1,c=a.line;t.options.lineWrapping||(c=Wt(Re($t(r,a.line))),r.iter(c,o.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&gt(t),Mi(r,e,n,or(t)),t.options.lineWrapping||(r.iter(c,a.line+e.text.length,(function(t){var e=je(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,r=e-1;r>n;r--){var i=$t(t,r).stateAfter;if(i&&(!(i instanceof ce)||r+i.lookAhead<e)){n=r+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}(r,a.line),ni(t,400);var l=e.text.length-(o.line-a.line)-1;e.full?Ar(t):a.line!=o.line||1!=e.text.length||Ni(t.doc,e)?Ar(t,a.line,o.line+1,l):ur(t,a.line,"text");var A=mt(t,"changes"),u=mt(t,"change");if(u||A){var h={from:a,to:o,text:e.text,removed:e.removed,origin:e.origin};u&&sn(t,"change",t,h),A&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(h)}t.display.selForContextMenu=null}(t.cm,e,r):Mi(t,e,r),Zi(t,n,G),t.cantEdit&&ia(t,Zt(t.firstLine(),0))&&(t.cantEdit=!1)}}function fa(t,e,n,r,i){var a;r||(r=n),te(r,n)<0&&(n=(a=[r,n])[0],r=a[1]),"string"==typeof e&&(e=t.splitLines(e)),ca(t,{from:n,to:r,text:e,origin:i})}function da(t,e,n,r){n<t.line?t.line+=r:e<t.line&&(t.line=e,t.ch=0)}function pa(t,e,n,r){for(var i=0;i<t.length;++i){var a=t[i],o=!0;if(a.ranges){a.copied||((a=t[i]=a.deepCopy()).copied=!0);for(var s=0;s<a.ranges.length;s++)da(a.ranges[s].anchor,e,n,r),da(a.ranges[s].head,e,n,r)}else{for(var c=0;c<a.changes.length;++c){var l=a.changes[c];if(n<l.from.line)l.from=Zt(l.from.line+r,l.from.ch),l.to=Zt(l.to.line+r,l.to.ch);else if(e<=l.to.line){o=!1;break}}o||(t.splice(0,i+1),i=0)}}}function ga(t,e){var n=e.from.line,r=e.to.line,i=e.text.length-(r-n)-1;pa(t.done,n,r,i),pa(t.undone,n,r,i)}function ma(t,e,n,r){var i=e,a=e;return"number"==typeof e?a=$t(t,ae(t,e)):i=Wt(e),null==i?null:(r(a,i)&&t.cm&&ur(t.cm,i,n),a)}function ya(t){this.lines=t,this.parent=null;for(var e=0,n=0;n<t.length;++n)t[n].parent=this,e+=t[n].height;this.height=e}function va(t){this.children=t;for(var e=0,n=0,r=0;r<t.length;++r){var i=t[r];e+=i.chunkSize(),n+=i.height,i.parent=this}this.size=e,this.height=n,this.parent=null}_i.prototype.from=function(){return ie(this.anchor,this.head)},_i.prototype.to=function(){return re(this.anchor,this.head)},_i.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},ya.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=t,r=t+e;n<r;++n){var i=this.lines[n];this.height-=i.height,Ye(i),sn(i,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=this},iterN:function(t,e,n){for(var r=t+e;t<r;++t)if(n(this.lines[t]))return!0}},va.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(t<i){var a=Math.min(e,i-t),o=r.height;if(r.removeInner(t,a),this.height-=o-r.height,i==a&&(this.children.splice(n--,1),r.parent=null),0==(e-=a))break;t=0}else t-=i}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof ya))){var s=[];this.collapse(s),this.children=[new ya(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,n){this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],a=i.chunkSize();if(t<=a){if(i.insertInner(t,e,n),i.lines&&i.lines.length>50){for(var o=i.lines.length%25+25,s=o;s<i.lines.length;){var c=new ya(i.lines.slice(s,s+=25));i.height-=c.height,this.children.splice(++r,0,c),c.parent=this}i.lines=i.lines.slice(0,o),this.maybeSpill()}break}t-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new va(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var n=Q(t.parent.children,t);t.parent.children.splice(n+1,0,e)}else{var r=new va(t.children);r.parent=t,t.children=[r,e],t=r}e.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],a=i.chunkSize();if(t<a){var o=Math.min(e,a-t);if(i.iterN(t,o,n))return!0;if(0==(e-=o))break;t=0}else t-=a}}};var ba=function(t,e,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=t,this.node=e};function wa(t,e,n){Ge(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Sr(t,n)}ba.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,n=this.line,r=Wt(n);if(null!=r&&e){for(var i=0;i<e.length;++i)e[i]==this&&e.splice(i--,1);e.length||(n.widgets=null);var a=bn(this);zt(n,Math.max(0,n.height-a)),t&&(Jr(t,(function(){wa(t,n,-a),ur(t,r,"widget")})),sn(t,"lineWidgetCleared",t,this,r))}},ba.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=bn(this)-e;i&&(Qe(this.doc,r)||zt(r,r.height+i),n&&Jr(n,(function(){n.curOp.forceUpdate=!0,wa(n,r,i),sn(n,"lineWidgetChanged",n,t,Wt(r))})))},yt(ba);var _a=0,Ea=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++_a};function Ca(t,e,n,r,i){if(r&&r.shared)return function(t,e,n,r,i){(r=R(r)).shared=!1;var a=[Ca(t,e,n,r,i)],o=a[0],s=r.widgetNode;return Fi(t,(function(t){s&&(r.widgetNode=s.cloneNode(!0)),a.push(Ca(t,oe(t,e),oe(t,n),r,i));for(var c=0;c<t.linked.length;++c)if(t.linked[c].isParent)return;o=z(a)})),new xa(a,o)}(t,e,n,r,i);if(t.cm&&!t.cm.curOp)return Zr(t.cm,Ca)(t,e,n,r,i);var a=new Ea(t,i),o=te(e,n);if(r&&R(r,a,!1),o>0||0==o&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=I("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(Oe(t,e.line,e,n,a)||e.line!=n.line&&Oe(t,n.line,e,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");we=!0}a.addToHistory&&Pi(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,c=e.line,l=t.cm;if(t.iter(c,n.line+1,(function(t){l&&a.collapsed&&!l.options.lineWrapping&&Re(t)==l.display.maxLine&&(s=!0),a.collapsed&&c!=e.line&&zt(t,0),function(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}(t,new _e(a,c==e.line?e.ch:null,c==n.line?n.ch:null)),++c})),a.collapsed&&t.iter(e.line,n.line+1,(function(e){Qe(t,e)&&zt(e,0)})),a.clearOnEnter&&ut(a,"beforeCursorEnter",(function(){return a.clear()})),a.readOnly&&(be=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),a.collapsed&&(a.id=++_a,a.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),a.collapsed)Ar(l,e.line,n.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var A=e.line;A<=n.line;A++)ur(l,A,"text");a.atomic&&ea(l.doc),sn(l,"markerAdded",l,a)}return a}Ea.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&$r(t),mt(this,"clear")){var n=this.find();n&&sn(this,"clear",n.from,n.to)}for(var r=null,i=null,a=0;a<this.lines.length;++a){var o=this.lines[a],s=Ee(o.markedSpans,this);t&&!this.collapsed?ur(t,Wt(o),"text"):t&&(null!=s.to&&(i=Wt(o)),null!=s.from&&(r=Wt(o))),o.markedSpans=Ce(o.markedSpans,s),null==s.from&&this.collapsed&&!Qe(this.doc,o)&&t&&zt(o,nr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var l=Re(this.lines[c]),A=je(l);A>t.display.maxLineLength&&(t.display.maxLine=l,t.display.maxLineLength=A,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&Ar(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&ea(t.doc)),t&&sn(t,"markerCleared",t,this,r,i),e&&Yr(t),this.parent&&this.parent.clear()}},Ea.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i<this.lines.length;++i){var a=this.lines[i],o=Ee(a.markedSpans,this);if(null!=o.from&&(n=Zt(e?a:Wt(a),o.from),-1==t))return n;if(null!=o.to&&(r=Zt(e?a:Wt(a),o.to),1==t))return r}return n&&{from:n,to:r}},Ea.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,r=this.doc.cm;e&&r&&Jr(r,(function(){var i=e.line,a=Wt(e.line),o=In(r,a);if(o&&(Rn(o),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Qe(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var c=bn(n)-s;c&&zt(i,i.height+c)}sn(r,"markerChanged",r,t)}))},Ea.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=Q(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Ea.prototype.detachLine=function(t){if(this.lines.splice(Q(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},yt(Ea);var xa=function(t,e){this.markers=t,this.primary=e;for(var n=0;n<t.length;++n)t[n].parent=this};function Ba(t){return t.findMarks(Zt(t.first,0),t.clipPos(Zt(t.lastLine())),(function(t){return t.parent}))}function Ta(t){for(var e=function(e){var n=t[e],r=[n.primary.doc];Fi(n.primary.doc,(function(t){return r.push(t)}));for(var i=0;i<n.markers.length;i++){var a=n.markers[i];-1==Q(r,a.doc)&&(a.parent=null,n.markers.splice(i--,1))}},n=0;n<t.length;n++)e(n)}xa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();sn(this,"clear")}},xa.prototype.find=function(t,e){return this.primary.find(t,e)},yt(xa);var ka=0,Sa=function(t,e,n,r,i){if(!(this instanceof Sa))return new Sa(t,e,n,r,i);null==n&&(n=0),va.call(this,[new ya([new $e("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var a=Zt(n,0);this.sel=Ci(a),this.history=new Oi(null),this.id=++ka,this.modeOption=e,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Mi(this,{from:a,to:a,text:t}),Ji(this,Ci(a),G)};Sa.prototype=X(va.prototype,{constructor:Sa,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,r=0;r<e.length;++r)n+=e[r].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=Vt(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:ei((function(t){var e=Zt(this.first,0),n=this.first+this.size-1;ca(this,{from:e,to:Zt(n,$t(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Nr(this.cm,0,0),Ji(this,Ci(e),G)})),replaceRange:function(t,e,n,r){fa(this,t,e=oe(this,e),n=n?oe(this,n):e,r)},getRange:function(t,e,n){var r=Yt(this,oe(this,t),oe(this,e));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(Xt(this,t))return $t(this,t)},getLineNumber:function(t){return Wt(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=$t(this,t)),Re(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return oe(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ei((function(t,e,n){qi(this,oe(this,"number"==typeof t?Zt(t,e||0):t),null,n)})),setSelection:ei((function(t,e,n){qi(this,oe(this,t),oe(this,e||t),n)})),extendSelection:ei((function(t,e,n){Vi(this,oe(this,t),e&&oe(this,e),n)})),extendSelections:ei((function(t,e){zi(this,se(this,t),e)})),extendSelectionsBy:ei((function(t,e){zi(this,se(this,W(this.sel.ranges,t)),e)})),setSelections:ei((function(t,e,n){if(t.length){for(var r=[],i=0;i<t.length;i++)r[i]=new _i(oe(this,t[i].anchor),oe(this,t[i].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),Ji(this,Ei(this.cm,r,e),n)}})),addSelection:ei((function(t,e,n){var r=this.sel.ranges.slice(0);r.push(new _i(oe(this,t),oe(this,e||t))),Ji(this,Ei(this.cm,r,r.length-1),n)})),getSelection:function(t){for(var e,n=this.sel.ranges,r=0;r<n.length;r++){var i=Yt(this,n[r].from(),n[r].to());e=e?e.concat(i):i}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Yt(this,n[r].from(),n[r].to());!1!==t&&(i=i.join(t||this.lineSeparator())),e[r]=i}return e},replaceSelection:function(t,e,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=t;this.replaceSelections(r,e,n||"+input")},replaceSelections:ei((function(t,e,n){for(var r=[],i=this.sel,a=0;a<i.ranges.length;a++){var o=i.ranges[a];r[a]={from:o.from(),to:o.to(),text:this.splitLines(t[a]),origin:n}}for(var s=e&&"end"!=e&&function(t,e,n){for(var r=[],i=Zt(t.first,0),a=i,o=0;o<e.length;o++){var s=e[o],c=ki(s.from,i,a),l=ki(xi(s),i,a);if(i=s.to,a=l,"around"==n){var A=t.sel.ranges[o],u=te(A.head,A.anchor)<0;r[o]=new _i(u?l:c,u?c:l)}else r[o]=new _i(c,c)}return new wi(r,t.sel.primIndex)}(this,r,e),c=r.length-1;c>=0;c--)ca(this,r[c]);s?Xi(this,s):this.cm&&Ir(this.cm)})),undo:ei((function(){Aa(this,"undo")})),redo:ei((function(){Aa(this,"redo")})),undoSelection:ei((function(){Aa(this,"undo",!0)})),redoSelection:ei((function(){Aa(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r<t.done.length;r++)t.done[r].ranges||++e;for(var i=0;i<t.undone.length;i++)t.undone[i].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){var t=this;this.history=new Oi(this.history.maxGeneration),Fi(this,(function(e){return e.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:$i(this.history.done),undone:$i(this.history.undone)}},setHistory:function(t){var e=this.history=new Oi(this.history.maxGeneration);e.done=$i(t.done.slice(0),null,!0),e.undone=$i(t.undone.slice(0),null,!0)},setGutterMarker:ei((function(t,e,n){return ma(this,t,"gutter",(function(t){var r=t.gutterMarkers||(t.gutterMarkers={});return r[e]=n,!n&&et(r)&&(t.gutterMarkers=null),!0}))})),clearGutter:ei((function(t){var e=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[t]&&ma(e,n,"gutter",(function(){return n.gutterMarkers[t]=null,et(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var e;if("number"==typeof t){if(!Xt(this,t))return null;if(e=t,!(t=$t(this,t)))return null}else if(null==(e=Wt(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:ei((function(t,e,n){return ma(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[r]){if(C(n).test(t[r]))return!1;t[r]+=" "+n}else t[r]=n;return!0}))})),removeLineClass:ei((function(t,e,n){return ma(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",i=t[r];if(!i)return!1;if(null==n)t[r]=null;else{var a=i.match(C(n));if(!a)return!1;var o=a.index+a[0].length;t[r]=i.slice(0,a.index)+(a.index&&o!=i.length?" ":"")+i.slice(o)||null}return!0}))})),addLineWidget:ei((function(t,e,n){return function(t,e,n,r){var i=new ba(t,n,r),a=t.cm;return a&&i.noHScroll&&(a.display.alignWidgets=!0),ma(t,e,"widget",(function(e){var n=e.widgets||(e.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=e,a&&!Qe(t,e)){var r=Ge(e)<t.scrollTop;zt(e,e.height+bn(i)),r&&Sr(a,i.height),a.curOp.forceUpdate=!0}return!0})),a&&sn(a,"lineWidgetAdded",a,i,"number"==typeof e?e:Wt(e)),i}(this,t,e,n)})),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return Ca(this,oe(this,t),oe(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return Ca(this,t=oe(this,t),t,n,"bookmark")},findMarksAt:function(t){var e=[],n=$t(this,(t=oe(this,t)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=t.ch)&&(null==i.to||i.to>=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=oe(this,t),e=oe(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(a){var o=a.markedSpans;if(o)for(var s=0;s<o.length;s++){var c=o[s];null!=c.to&&i==t.line&&t.ch>=c.to||null==c.from&&i!=t.line||null!=c.from&&i==e.line&&c.from>=e.ch||n&&!n(c.marker)||r.push(c.marker.parent||c.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&t.push(n[r].marker)})),t},posFromIndex:function(t){var e,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var a=i.text.length+r;if(a>t)return e=t,!0;t-=a,++n})),oe(this,Zt(n,e))},indexFromPos:function(t){var e=(t=oe(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){e+=t.text.length+n})),e},copy:function(t){var e=new Sa(Vt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var r=new Sa(Vt(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:t.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=r.find(),a=t.clipPos(i.from),o=t.clipPos(i.to);if(te(a,o)){var s=Ca(t,a,o,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Ba(this)),r},unlinkDoc:function(t){if(t instanceof Bo&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e)if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),Ta(Ba(this));break}if(t.history==this.history){var n=[t.id];Fi(t,(function(t){return n.push(t.id)}),!0),t.history=new Oi(null),t.history.done=$i(this.history.done,n),t.history.undone=$i(this.history.undone,n)}},iterLinkedDocs:function(t){Fi(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):It(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ei((function(t){var e;"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&Jr(e=this.cm,(function(){Li(e),Ar(e)})))}))}),Sa.prototype.eachLine=Sa.prototype.iter;var Ia=0;function Na(t){var e=this;if(Ma(e),!pt(e,t)&&!wn(e.display,t)){vt(t),o&&(Ia=+new Date);var n=cr(e,t,!0),r=t.dataTransfer.files;if(n&&!e.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,a=Array(i),s=0,c=function(){++s==i&&Zr(e,(function(){var t={from:n=oe(e.doc,n),to:n,text:e.doc.splitLines(a.filter((function(t){return null!=t})).join(e.doc.lineSeparator())),origin:"paste"};ca(e.doc,t),Xi(e.doc,Ci(oe(e.doc,n),oe(e.doc,xi(t))))}))()},l=function(t,n){if(e.options.allowDropFileTypes&&-1==Q(e.options.allowDropFileTypes,t.type))c();else{var r=new FileReader;r.onerror=function(){return c()},r.onload=function(){var t=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(a[n]=t),c()},r.readAsText(t)}},A=0;A<r.length;A++)l(r[A],A);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var u=t.dataTransfer.getData("Text");if(u){var h;if(e.state.draggingText&&!e.state.draggingText.copy&&(h=e.listSelections()),Zi(e.doc,Ci(n,n)),h)for(var f=0;f<h.length;++f)fa(e.doc,"",h[f].anchor,h[f].head,"drag");e.replaceSelection(u,"around","paste"),e.display.input.focus()}}catch(t){}}}}function Ma(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Fa(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<e.length;r++){var i=e[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var e=0;e<n.length;e++)t(n[e])}))}}var Da=!1;function La(){var t;Da||(ut(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,Fa(Oa)}),100))})),ut(window,"blur",(function(){return Fa(Cr)})),Da=!0)}function Oa(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var Ra={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ua=0;Ua<10;Ua++)Ra[Ua+48]=Ra[Ua+96]=String(Ua);for(var Pa=65;Pa<=90;Pa++)Ra[Pa]=String.fromCharCode(Pa);for(var Qa=1;Qa<=12;Qa++)Ra[Qa+111]=Ra[Qa+63235]="F"+Qa;var Ha={};function Ga(t){var e,n,r,i,a=t.split(/-(?!$)/);t=a[a.length-1];for(var o=0;o<a.length-1;o++){var s=a[o];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))e=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),i&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function ja(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete t[n];continue}for(var i=W(n.split(" "),Ga),a=0;a<i.length;a++){var o=void 0,s=void 0;a==i.length-1?(s=i.join(" "),o=r):(s=i.slice(0,a+1).join(" "),o="...");var c=e[s];if(c){if(c!=o)throw new Error("Inconsistent bindings for "+s)}else e[s]=o}delete t[n]}for(var l in e)t[l]=e[l];return t}function Ka(t,e,n,r){var i=(e=za(e)).call?e.call(t,r):e[t];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return Ka(t,e.fallthrough,n,r);for(var a=0;a<e.fallthrough.length;a++){var o=Ka(t,e.fallthrough[a],n,r);if(o)return o}}}function $a(t){var e="string"==typeof t?t:Ra[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function Ya(t,e,n){var r=t;return e.altKey&&"Alt"!=r&&(t="Alt-"+t),(_?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(t="Ctrl-"+t),(_?e.ctrlKey:e.metaKey)&&"Mod"!=r&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=r&&(t="Shift-"+t),t}function Va(t,e){if(u&&34==t.keyCode&&t.char)return!1;var n=Ra[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),Ya(n,t,e))}function za(t){return"string"==typeof t?Ha[t]:t}function Wa(t,e){for(var n=t.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var a=e(n[i]);r.length&&te(a.from,z(r).to)<=0;){var o=r.pop();if(te(o.from,a.from)<0){a.from=o.from;break}}r.push(a)}Jr(t,(function(){for(var e=r.length-1;e>=0;e--)fa(t.doc,"",r[e].from,r[e].to,"+delete");Ir(t)}))}function qa(t,e,n){var r=it(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Xa(t,e,n){var r=qa(t,e.ch,n);return null==r?null:new Zt(e.line,r,n<0?"after":"before")}function Ja(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var a=lt(n,e.doc.direction);if(a){var o,s=i<0?z(a):a[0],c=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var l=Nn(e,n);o=i<0?n.text.length-1:0;var A=Mn(e,l,o).top;o=at((function(t){return Mn(e,l,t).top==A}),i<0==(1==s.level)?s.from:s.to-1,o),"before"==c&&(o=qa(n,o,1))}else o=i<0?s.to:s.from;return new Zt(r,o,c)}}return new Zt(r,i<0?n.text.length:0,i<0?"before":"after")}Ha.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ha.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ha.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ha.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ha.default=y?Ha.macDefault:Ha.pcDefault;var Za={selectAll:oa,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),G)},killLine:function(t){return Wa(t,(function(e){if(e.empty()){var n=$t(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:Zt(e.head.line+1,0)}:{from:e.head,to:Zt(e.head.line,n)}}return{from:e.from(),to:e.to()}}))},deleteLine:function(t){return Wa(t,(function(e){return{from:Zt(e.from().line,0),to:oe(t.doc,Zt(e.to().line+1,0))}}))},delLineLeft:function(t){return Wa(t,(function(t){return{from:Zt(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return Wa(t,(function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}}))},delWrappedLineRight:function(t){return Wa(t,(function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:r}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(Zt(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(Zt(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(e){return to(t,e.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(e){return eo(t,e.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(e){return function(t,e){var n=$t(t.doc,e),r=function(t){for(var e;e=De(t);)t=e.find(1,!0).line;return t}(n);return r!=n&&(e=Wt(r)),Ja(!0,t,n,e,-1)}(t,e.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")}),K)},goLineLeft:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")}),K)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return r.ch<t.getLine(r.line).search(/\S/)?eo(t,e.head):r}),K)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),r=t.options.tabSize,i=0;i<n.length;i++){var a=n[i].from(),o=U(t.getLine(a.line),a.ch,r);e.push(V(r-o%r))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Jr(t,(function(){for(var e=t.listSelections(),n=[],r=0;r<e.length;r++)if(e[r].empty()){var i=e[r].head,a=$t(t.doc,i.line).text;if(a)if(i.ch==a.length&&(i=new Zt(i.line,i.ch-1)),i.ch>0)i=new Zt(i.line,i.ch+1),t.replaceRange(a.charAt(i.ch-1)+a.charAt(i.ch-2),Zt(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var o=$t(t.doc,i.line-1).text;o&&(i=new Zt(i.line,1),t.replaceRange(a.charAt(0)+t.doc.lineSeparator()+o.charAt(o.length-1),Zt(i.line-1,o.length-1),i,"+transpose"))}n.push(new _i(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Jr(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r<e.length;r++)t.indentLine(e[r].from().line,null,!0);Ir(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function to(t,e){var n=$t(t.doc,e),r=Re(n);return r!=n&&(e=Wt(r)),Ja(!0,t,r,e,1)}function eo(t,e){var n=to(t,e.line),r=$t(t.doc,n.line),i=lt(r,t.doc.direction);if(!i||0==i[0].level){var a=Math.max(n.ch,r.text.search(/\S/)),o=e.line==n.line&&e.ch<=a&&e.ch;return Zt(n.line,o?0:a,n.sticky)}return n}function no(t,e,n){if("string"==typeof e&&!(e=Za[e]))return!1;t.display.input.ensurePolled();var r=t.display.shift,i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),i=e(t)!=H}finally{t.display.shift=r,t.state.suppressEdits=!1}return i}var ro=new P;function io(t,e,n,r){var i=t.state.keySeq;if(i){if($a(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:ro.set(50,(function(){t.state.keySeq==i&&(t.state.keySeq=null,t.display.input.reset())})),ao(t,i+" "+e,n,r))return!0}return ao(t,e,n,r)}function ao(t,e,n,r){var i=function(t,e,n){for(var r=0;r<t.state.keyMaps.length;r++){var i=Ka(e,t.state.keyMaps[r],n,t);if(i)return i}return t.options.extraKeys&&Ka(e,t.options.extraKeys,n,t)||Ka(e,t.options.keyMap,n,t)}(t,e,r);return"multi"==i&&(t.state.keySeq=e),"handled"==i&&sn(t,"keyHandled",t,e,n),"handled"!=i&&"multi"!=i||(vt(n),br(t)),!!i}function oo(t,e){var n=Va(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?io(t,"Shift-"+n,e,(function(e){return no(t,e,!0)}))||io(t,n,e,(function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return no(t,e)})):io(t,n,e,(function(e){return no(t,e)})))}var so=null;function co(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||(e.curOp.focus=M(),pt(e,t)))){o&&s<11&&27==t.keyCode&&(t.returnValue=!1);var r=t.keyCode;e.display.shift=16==r||t.shiftKey;var i=oo(e,t);u&&(so=i?r:null,i||88!=r||Mt||!(y?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),n&&!y&&!i&&46==r&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||function(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(B(e,"CodeMirror-crosshair"),ft(document,"keyup",n),ft(document,"mouseover",n))}F(e,"CodeMirror-crosshair"),ut(document,"keyup",n),ut(document,"mouseover",n)}(e)}}function lo(t){16==t.keyCode&&(this.doc.sel.shift=!1),pt(this,t)}function Ao(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||wn(e.display,t)||pt(e,t)||t.ctrlKey&&!t.altKey||y&&t.metaKey)){var n=t.keyCode,r=t.charCode;if(u&&n==so)return so=null,void vt(t);if(!u||t.which&&!(t.which<10)||!oo(e,t)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(t,e,n){return io(t,"'"+n+"'",e,(function(e){return no(t,e,!0)}))}(e,t,i)||e.display.input.onKeyPress(t))}}}var uo,ho,fo=function(t,e,n){this.time=t,this.pos=e,this.button=n};function po(t){var e=this,n=e.display;if(!(pt(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,wn(n,t))c||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!yo(e,t)){var r=cr(e,t),i=Ct(t),a=r?function(t,e){var n=+new Date;return ho&&ho.compare(n,t,e)?(uo=ho=null,"triple"):uo&&uo.compare(n,t,e)?(ho=new fo(n,t,e),uo=null,"double"):(uo=new fo(n,t,e),ho=null,"single")}(r,i):"single";window.focus(),1==i&&e.state.selectingText&&e.state.selectingText(t),r&&function(t,e,n,r,i){var a="Click";return"double"==r?a="Double"+a:"triple"==r&&(a="Triple"+a),io(t,Ya(a=(1==e?"Left":2==e?"Middle":"Right")+a,i),i,(function(e){if("string"==typeof e&&(e=Za[e]),!e)return!1;var r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r=e(t,n)!=H}finally{t.state.suppressEdits=!1}return r}))}(e,i,r,a,t)||(1==i?r?function(t,e,n,r){o?setTimeout(O(wr,t),0):t.curOp.focus=M();var i,a=function(t,e,n){var r=t.getOption("configureMouse"),i=r?r(t,e,n):{};if(null==i.unit){var a=v?n.shiftKey&&n.metaKey:n.altKey;i.unit=a?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==i.extend||t.doc.extend)&&(i.extend=t.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}(t,n,r),l=t.doc.sel;t.options.dragDrop&&Tt&&!t.isReadOnly()&&"single"==n&&(i=l.contains(e))>-1&&(te((i=l.ranges[i]).from(),e)<0||e.xRel>0)&&(te(i.to(),e)>0||e.xRel<0)?function(t,e,n,r){var i=t.display,a=!1,l=Zr(t,(function(e){c&&(i.scroller.draggable=!1),t.state.draggingText=!1,ft(i.wrapper.ownerDocument,"mouseup",l),ft(i.wrapper.ownerDocument,"mousemove",A),ft(i.scroller,"dragstart",u),ft(i.scroller,"drop",l),a||(vt(e),r.addNew||Vi(t.doc,n,null,null,r.extend),c&&!h||o&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),A=function(t){a=a||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},u=function(){return a=!0};c&&(i.scroller.draggable=!0),t.state.draggingText=l,l.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),ut(i.wrapper.ownerDocument,"mouseup",l),ut(i.wrapper.ownerDocument,"mousemove",A),ut(i.scroller,"dragstart",u),ut(i.scroller,"drop",l),_r(t),setTimeout((function(){return i.input.focus()}),20)}(t,r,e,a):function(t,e,n,r){var i=t.display,a=t.doc;vt(e);var o,s,c=a.sel,l=c.ranges;if(r.addNew&&!r.extend?(s=a.sel.contains(n),o=s>-1?l[s]:new _i(n,n)):(o=a.sel.primary(),s=a.sel.primIndex),"rectangle"==r.unit)r.addNew||(o=new _i(n,n)),n=cr(t,e,!0,!0),s=-1;else{var A=go(t,n,r.unit);o=r.extend?Yi(o,A.anchor,A.head,r.extend):A}r.addNew?-1==s?(s=l.length,Ji(a,Ei(t,l.concat([o]),s),{scroll:!1,origin:"*mouse"})):l.length>1&&l[s].empty()&&"char"==r.unit&&!r.extend?(Ji(a,Ei(t,l.slice(0,s).concat(l.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=a.sel):Wi(a,s,o,j):(s=0,Ji(a,new wi([o],0),j),c=a.sel);var u=n;function h(e){if(0!=te(u,e))if(u=e,"rectangle"==r.unit){for(var i=[],l=t.options.tabSize,A=U($t(a,n.line).text,n.ch,l),h=U($t(a,e.line).text,e.ch,l),f=Math.min(A,h),d=Math.max(A,h),p=Math.min(n.line,e.line),g=Math.min(t.lastLine(),Math.max(n.line,e.line));p<=g;p++){var m=$t(a,p).text,y=$(m,f,l);f==d?i.push(new _i(Zt(p,y),Zt(p,y))):m.length>y&&i.push(new _i(Zt(p,y),Zt(p,$(m,d,l))))}i.length||i.push(new _i(n,n)),Ji(a,Ei(t,c.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var v,b=o,w=go(t,e,r.unit),_=b.anchor;te(w.anchor,_)>0?(v=w.head,_=ie(b.from(),w.anchor)):(v=w.anchor,_=re(b.to(),w.head));var E=c.ranges.slice(0);E[s]=function(t,e){var n=e.anchor,r=e.head,i=$t(t.doc,n.line);if(0==te(n,r)&&n.sticky==r.sticky)return e;var a=lt(i);if(!a)return e;var o=st(a,n.ch,n.sticky),s=a[o];if(s.from!=n.ch&&s.to!=n.ch)return e;var c,l=o+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==a.length)return e;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var A=st(a,r.ch,r.sticky),u=A-o||(r.ch-n.ch)*(1==s.level?-1:1);c=A==l-1||A==l?u<0:u>0}var h=a[l+(c?-1:0)],f=c==(1==h.level),d=f?h.from:h.to,p=f?"after":"before";return n.ch==d&&n.sticky==p?e:new _i(new Zt(n.line,d,p),r)}(t,new _i(oe(a,_),v)),Ji(a,Ei(t,E,s),j)}}var f=i.wrapper.getBoundingClientRect(),d=0;function p(e){t.state.selectingText=!1,d=1/0,e&&(vt(e),i.input.focus()),ft(i.wrapper.ownerDocument,"mousemove",g),ft(i.wrapper.ownerDocument,"mouseup",m),a.history.lastSelOrigin=null}var g=Zr(t,(function(e){0!==e.buttons&&Ct(e)?function e(n){var o=++d,s=cr(t,n,!0,"rectangle"==r.unit);if(s)if(0!=te(s,u)){t.curOp.focus=M(),h(s);var c=Tr(i,a);(s.line>=c.to||s.line<c.from)&&setTimeout(Zr(t,(function(){d==o&&e(n)})),150)}else{var l=n.clientY<f.top?-20:n.clientY>f.bottom?20:0;l&&setTimeout(Zr(t,(function(){d==o&&(i.scroller.scrollTop+=l,e(n))})),50)}}(e):p(e)})),m=Zr(t,p);t.state.selectingText=m,ut(i.wrapper.ownerDocument,"mousemove",g),ut(i.wrapper.ownerDocument,"mouseup",m)}(t,r,e,a)}(e,r,a,t):Et(t)==n.scroller&&vt(t):2==i?(r&&Vi(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(E?e.display.input.onContextMenu(t):_r(e)))}}function go(t,e,n){if("char"==n)return new _i(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new _i(Zt(e.line,0),oe(t.doc,Zt(e.line+1,0)));var r=n(t,e);return new _i(r.from,r.to)}function mo(t,e,n,r){var i,a;if(e.touches)i=e.touches[0].clientX,a=e.touches[0].clientY;else try{i=e.clientX,a=e.clientY}catch(t){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&vt(e);var o=t.display,s=o.lineDiv.getBoundingClientRect();if(a>s.bottom||!mt(t,n))return wt(e);a-=s.top-o.viewOffset;for(var c=0;c<t.display.gutterSpecs.length;++c){var l=o.gutters.childNodes[c];if(l&&l.getBoundingClientRect().right>=i)return dt(t,n,t,qt(t.doc,a),t.display.gutterSpecs[c].className,e),wt(e)}}function yo(t,e){return mo(t,e,"gutterClick",!0)}function vo(t,e){wn(t.display,e)||function(t,e){return!!mt(t,"gutterContextMenu")&&mo(t,e,"gutterContextMenu",!1)}(t,e)||pt(t,e,"contextmenu")||E||t.display.input.onContextMenu(e)}function bo(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Pn(t)}fo.prototype.compare=function(t,e,n){return this.time+400>t&&0==te(e,this.pos)&&n==this.button};var wo={toString:function(){return"CodeMirror.Init"}},_o={},Eo={};function Co(t,e,n){if(!e!=!(n&&n!=wo)){var r=t.display.dragFunctions,i=e?ut:ft;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function xo(t){t.options.lineWrapping?(F(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(B(t.display.wrapper,"CodeMirror-wrap"),Ke(t)),sr(t),Ar(t),Pn(t),setTimeout((function(){return Qr(t)}),100)}function Bo(t,e){var n=this;if(!(this instanceof Bo))return new Bo(t,e);this.options=e=e?R(e):{},R(_o,e,!1);var r=e.value;"string"==typeof r?r=new Sa(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Bo.inputStyles[e.inputStyle](this),a=this.display=new pi(t,r,i,e);for(var l in a.wrapper.CodeMirror=this,bo(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),jr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new P,keySeq:null,specialChars:null},e.autofocus&&!m&&a.input.focus(),o&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var e=t.display;ut(e.scroller,"mousedown",Zr(t,po)),ut(e.scroller,"dblclick",o&&s<11?Zr(t,(function(e){if(!pt(t,e)){var n=cr(t,e);if(n&&!yo(t,e)&&!wn(t.display,e)){vt(e);var r=t.findWordAt(n);Vi(t.doc,r.anchor,r.head)}}})):function(e){return pt(t,e)||vt(e)}),ut(e.scroller,"contextmenu",(function(e){return vo(t,e)})),ut(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||vo(t,n)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(r=e.activeTouch).end=+new Date)}function a(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}ut(e.scroller,"touchstart",(function(i){if(!pt(t,i)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(i)&&!yo(t,i)){e.input.ensurePolled(),clearTimeout(n);var a=+new Date;e.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),ut(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),ut(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!wn(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,s=t.coordsChar(e.activeTouch,"page");o=!r.prev||a(r,r.prev)?new _i(s,s):!r.prev.prev||a(r,r.prev.prev)?t.findWordAt(s):new _i(Zt(s.line,0),oe(t.doc,Zt(s.line+1,0))),t.setSelection(o.anchor,o.head),t.focus(),vt(n)}i()})),ut(e.scroller,"touchcancel",i),ut(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(Dr(t,e.scroller.scrollTop),Or(t,e.scroller.scrollLeft,!0),dt(t,"scroll",t))})),ut(e.scroller,"mousewheel",(function(e){return bi(t,e)})),ut(e.scroller,"DOMMouseScroll",(function(e){return bi(t,e)})),ut(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){pt(t,e)||_t(e)},over:function(e){pt(t,e)||(function(t,e){var n=cr(t,e);if(n){var r=document.createDocumentFragment();mr(t,n,r),t.display.dragCursor||(t.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),k(t.display.dragCursor,r)}}(t,e),_t(e))},start:function(e){return function(t,e){if(o&&(!t.state.draggingText||+new Date-Ia<100))_t(e);else if(!pt(t,e)&&!wn(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!h)){var n=S("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",u&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),u&&n.parentNode.removeChild(n)}}(t,e)},drop:Zr(t,Na),leave:function(e){pt(t,e)||Ma(t)}};var c=e.input.getField();ut(c,"keyup",(function(e){return lo.call(t,e)})),ut(c,"keydown",Zr(t,co)),ut(c,"keypress",Zr(t,Ao)),ut(c,"focus",(function(e){return Er(t,e)})),ut(c,"blur",(function(e){return Cr(t,e)}))}(this),La(),$r(this),this.curOp.forceUpdate=!0,Di(this,r),e.autofocus&&!m||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Er(n)}),20):Cr(this),Eo)Eo.hasOwnProperty(l)&&Eo[l](this,e[l],wo);ui(this),e.finishInit&&e.finishInit(this);for(var A=0;A<To.length;++A)To[A](this);Yr(this),c&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(a.lineDiv).textRendering&&(a.lineDiv.style.textRendering="auto")}Bo.defaults=_o,Bo.optionHandlers=Eo;var To=[];function ko(t,e,n,r){var i,a=t.doc;null==n&&(n="add"),"smart"==n&&(a.mode.indent?i=he(t,e).state:n="prev");var o=t.options.tabSize,s=$t(a,e),c=U(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var l,A=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((l=a.mode.indent(i,s.text.slice(A.length),s.text))==H||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=e>a.first?U($t(a,e-1).text,null,o):0:"add"==n?l=c+t.options.indentUnit:"subtract"==n?l=c-t.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var u="",h=0;if(t.options.indentWithTabs)for(var f=Math.floor(l/o);f;--f)h+=o,u+="\t";if(h<l&&(u+=V(l-h)),u!=A)return fa(a,u,Zt(e,0),Zt(e,A.length),"+input"),s.stateAfter=null,!0;for(var d=0;d<a.sel.ranges.length;d++){var p=a.sel.ranges[d];if(p.head.line==e&&p.head.ch<A.length){var g=Zt(e,A.length);Wi(a,d,new _i(g,g));break}}}Bo.defineInitHook=function(t){return To.push(t)};var So=null;function Io(t){So=t}function No(t,e,n,r,i){var a=t.doc;t.display.shift=!1,r||(r=a.sel);var o=+new Date-200,s="paste"==i||t.state.pasteIncoming>o,c=It(e),l=null;if(s&&r.ranges.length>1)if(So&&So.text.join("\n")==e){if(r.ranges.length%So.text.length==0){l=[];for(var A=0;A<So.text.length;A++)l.push(a.splitLines(So.text[A]))}}else c.length==r.ranges.length&&t.options.pasteLinesPerSelection&&(l=W(c,(function(t){return[t]})));for(var u=t.curOp.updateInput,h=r.ranges.length-1;h>=0;h--){var f=r.ranges[h],d=f.from(),p=f.to();f.empty()&&(n&&n>0?d=Zt(d.line,d.ch-n):t.state.overwrite&&!s?p=Zt(p.line,Math.min($t(a,p.line).text.length,p.ch+z(c).length)):s&&So&&So.lineWise&&So.text.join("\n")==c.join("\n")&&(d=p=Zt(d.line,0)));var g={from:d,to:p,text:l?l[h%l.length]:c,origin:i||(s?"paste":t.state.cutIncoming>o?"cut":"+input")};ca(t.doc,g),sn(t,"inputRead",t,g)}e&&!s&&Fo(t,e),Ir(t),t.curOp.updateInput<2&&(t.curOp.updateInput=u),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Mo(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Jr(e,(function(){return No(e,n,0,null,"paste")})),!0}function Fo(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var a=t.getModeAt(i.head),o=!1;if(a.electricChars){for(var s=0;s<a.electricChars.length;s++)if(e.indexOf(a.electricChars.charAt(s))>-1){o=ko(t,i.head.line,"smart");break}}else a.electricInput&&a.electricInput.test($t(t.doc,i.head.line).text.slice(0,i.head.ch))&&(o=ko(t,i.head.line,"smart"));o&&sn(t,"electricInput",t,i.head.line)}}}function Do(t){for(var e=[],n=[],r=0;r<t.doc.sel.ranges.length;r++){var i=t.doc.sel.ranges[r].head.line,a={anchor:Zt(i,0),head:Zt(i+1,0)};n.push(a),e.push(t.getRange(a.anchor,a.head))}return{text:e,ranges:n}}function Lo(t,e,n,r){t.setAttribute("autocorrect",n?"":"off"),t.setAttribute("autocapitalize",r?"":"off"),t.setAttribute("spellcheck",!!e)}function Oo(){var t=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=S("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return c?t.style.width="1000px":t.setAttribute("wrap","off"),p&&(t.style.border="1px solid black"),Lo(t),e}function Ro(t,e,n,r,i){var a=e,o=n,s=$t(t,e.line),c=i&&"rtl"==t.direction?-n:n;function l(a){var o,l;if("codepoint"==r){var A=s.text.charCodeAt(e.ch+(r>0?0:-1));o=isNaN(A)?null:new Zt(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(A>=55296&&A<56320?2:1))),-n)}else o=i?function(t,e,n,r){var i=lt(e,t.doc.direction);if(!i)return Xa(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=st(i,n.ch,n.sticky),o=i[a];if("ltr"==t.doc.direction&&o.level%2==0&&(r>0?o.to>n.ch:o.from<n.ch))return Xa(e,n,r);var s,c=function(t,n){return qa(e,t instanceof Zt?t.ch:t,n)},l=function(n){return t.options.lineWrapping?(s=s||Nn(t,e),Xn(t,e,s,n)):{begin:0,end:e.text.length}},A=l("before"==n.sticky?c(n,-1):n.ch);if("rtl"==t.doc.direction||1==o.level){var u=1==o.level==r<0,h=c(n,u?1:-1);if(null!=h&&(u?h<=o.to&&h<=A.end:h>=o.from&&h>=A.begin)){var f=u?"before":"after";return new Zt(n.line,h,f)}}var d=function(t,e,r){for(var a=function(t,e){return e?new Zt(n.line,c(t,1),"before"):new Zt(n.line,t,"after")};t>=0&&t<i.length;t+=e){var o=i[t],s=e>0==(1!=o.level),l=s?r.begin:c(r.end,-1);if(o.from<=l&&l<o.to)return a(l,s);if(l=s?o.from:c(o.to,-1),r.begin<=l&&l<r.end)return a(l,s)}},p=d(a+r,r,A);if(p)return p;var g=r>0?A.end:c(A.begin,-1);return null==g||r>0&&g==e.text.length||!(p=d(r>0?0:i.length-1,r,l(g)))?null:p}(t.cm,s,e,n):Xa(s,e,n);if(null==o){if(a||(l=e.line+c)<t.first||l>=t.first+t.size||(e=new Zt(l,e.ch,e.sticky),!(s=$t(t,l))))return!1;e=Ja(i,t.cm,s,e.line,c)}else e=o;return!0}if("char"==r||"codepoint"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var A=null,u="group"==r,h=t.cm&&t.cm.getHelper(e,"wordChars"),f=!0;!(n<0)||l(!f);f=!1){var d=s.text.charAt(e.ch)||"\n",p=tt(d,h)?"w":u&&"\n"==d?"n":!u||/\s/.test(d)?null:"p";if(!u||f||p||(p="s"),A&&A!=p){n<0&&(n=1,l(),e.sticky="after");break}if(p&&(A=p),n>0&&!l(!f))break}var g=ia(t,e,a,o,!0);return ee(a,g)&&(g.hitSide=!0),g}function Uo(t,e,n,r){var i,a,o=t.doc,s=e.left;if("page"==r){var c=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(c-.5*nr(t.display),3);i=(n>0?e.bottom:e.top)+n*l}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(a=Wn(t,s,i)).outside;){if(n<0?i<=0:i>=o.height){a.hitSide=!0;break}i+=5*n}return a}var Po=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new P,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Qo(t,e){var n=In(t,e.line);if(!n||n.hidden)return null;var r=$t(t.doc,e.line),i=kn(n,r,e.line),a=lt(r,t.doc.direction),o="left";a&&(o=st(a,e.ch)%2?"right":"left");var s=Ln(i.map,e.ch,o);return s.offset="right"==s.collapse?s.end:s.start,s}function Ho(t,e){return e&&(t.bad=!0),t}function Go(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return Ho(t.clipPos(Zt(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var i=0;i<t.display.view.length;i++){var a=t.display.view[i];if(a.node==r)return jo(a,e,n)}}function jo(t,e,n){var r=t.text.firstChild,i=!1;if(!e||!N(r,e))return Ho(Zt(Wt(t.line),0),!0);if(e==r&&(i=!0,e=r.childNodes[n],n=0,!e)){var a=t.rest?z(t.rest):t.line;return Ho(Zt(Wt(a),a.text.length),i)}var o=3==e.nodeType?e:null,s=e;for(o||1!=e.childNodes.length||3!=e.firstChild.nodeType||(o=e.firstChild,n&&(n=o.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var c=t.measure,l=c.maps;function A(e,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var a=i<0?c.map:l[i],o=0;o<a.length;o+=3){var s=a[o+2];if(s==e||s==n){var A=Wt(i<0?t.line:t.rest[i]),u=a[o]+r;return(r<0||s!=e)&&(u=a[o+(r?1:0)]),Zt(A,u)}}}var u=A(o,s,n);if(u)return Ho(u,i);for(var h=s.nextSibling,f=o?o.nodeValue.length-n:0;h;h=h.nextSibling){if(u=A(h,h.firstChild,0))return Ho(Zt(u.line,u.ch-f),i);f+=h.textContent.length}for(var d=s.previousSibling,p=n;d;d=d.previousSibling){if(u=A(d,d.firstChild,-1))return Ho(Zt(u.line,u.ch+p),i);p+=d.textContent.length}}Po.prototype.init=function(t){var e=this,n=this,r=n.cm,i=n.div=t.lineDiv;function a(t){for(var e=t.target;e;e=e.parentNode){if(e==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function o(t){if(a(t)&&!pt(r,t)){if(r.somethingSelected())Io({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=Do(r);Io({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation((function(){r.setSelections(e.ranges,0,G),r.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var o=So.text.join("\n");if(t.clipboardData.setData("Text",o),t.clipboardData.getData("Text")==o)return void t.preventDefault()}var s=Oo(),c=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),c.value=So.text.join("\n");var l=document.activeElement;L(c),setTimeout((function(){r.display.lineSpace.removeChild(s),l.focus(),l==i&&n.showPrimarySelection()}),50)}}Lo(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ut(i,"paste",(function(t){!a(t)||pt(r,t)||Mo(t,r)||s<=11&&setTimeout(Zr(r,(function(){return e.updateFromDOM()})),20)})),ut(i,"compositionstart",(function(t){e.composing={data:t.data,done:!1}})),ut(i,"compositionupdate",(function(t){e.composing||(e.composing={data:t.data,done:!1})})),ut(i,"compositionend",(function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)})),ut(i,"touchstart",(function(){return n.forceCompositionEnd()})),ut(i,"input",(function(){e.composing||e.readFromDOMSoon()})),ut(i,"copy",o),ut(i,"cut",o)},Po.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Po.prototype.prepareSelection=function(){var t=gr(this.cm,!1);return t.focus=document.activeElement==this.div,t},Po.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Po.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Po.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,r=e.doc.sel.primary(),i=r.from(),a=r.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||a.line<e.display.viewFrom)t.removeAllRanges();else{var o=Go(e,t.anchorNode,t.anchorOffset),s=Go(e,t.focusNode,t.focusOffset);if(!o||o.bad||!s||s.bad||0!=te(ie(o,s),i)||0!=te(re(o,s),a)){var c=e.display.view,l=i.line>=e.display.viewFrom&&Qo(e,i)||{node:c[0].measure.map[2],offset:0},A=a.line<e.display.viewTo&&Qo(e,a);if(!A){var u=c[c.length-1].measure,h=u.maps?u.maps[u.maps.length-1]:u.map;A={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(l&&A){var f,d=t.rangeCount&&t.getRangeAt(0);try{f=x(l.node,l.offset,A.offset,A.node)}catch(t){}f&&(!n&&e.state.focused?(t.collapse(l.node,l.offset),f.collapsed||(t.removeAllRanges(),t.addRange(f))):(t.removeAllRanges(),t.addRange(f)),d&&null==t.anchorNode?t.addRange(d):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Po.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},Po.prototype.showMultipleSelections=function(t){k(this.cm.display.cursorDiv,t.cursors),k(this.cm.display.selectionDiv,t.selection)},Po.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Po.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return N(this.div,e)},Po.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Po.prototype.blur=function(){this.div.blur()},Po.prototype.getField=function(){return this.div},Po.prototype.supportsTouch=function(){return!0},Po.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():Jr(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}))},Po.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Po.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(g&&A&&this.cm.display.gutterSpecs.length&&function(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Go(e,t.anchorNode,t.anchorOffset),r=Go(e,t.focusNode,t.focusOffset);n&&r&&Jr(e,(function(){Ji(e.doc,Ci(n,r),G),(n.bad||r.bad)&&(e.curOp.selectionChanged=!0)}))}}},Po.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,r=this.cm,i=r.display,a=r.doc.sel.primary(),o=a.from(),s=a.to();if(0==o.ch&&o.line>r.firstLine()&&(o=Zt(o.line-1,$t(r.doc,o.line-1).length)),s.ch==$t(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=Zt(s.line+1,0)),o.line<i.viewFrom||s.line>i.viewTo-1)return!1;o.line==i.viewFrom||0==(t=lr(r,o.line))?(e=Wt(i.view[0].line),n=i.view[0].node):(e=Wt(i.view[t].line),n=i.view[t-1].node.nextSibling);var c,l,A=lr(r,s.line);if(A==i.view.length-1?(c=i.viewTo-1,l=i.lineDiv.lastChild):(c=Wt(i.view[A+1].line)-1,l=i.view[A+1].node.previousSibling),!n)return!1;for(var u=r.doc.splitLines(function(t,e,n,r,i){var a="",o=!1,s=t.doc.lineSeparator(),c=!1;function l(){o&&(a+=s,c&&(a+=s),o=c=!1)}function A(t){t&&(l(),a+=t)}function u(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void A(n);var a,h=e.getAttribute("cm-marker");if(h){var f=t.findMarks(Zt(r,0),Zt(i+1,0),function(t){return function(e){return e.id==t}}(+h));return void(f.length&&(a=f[0].find(0))&&A(Yt(t.doc,a.from,a.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var d=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;d&&l();for(var p=0;p<e.childNodes.length;p++)u(e.childNodes[p]);/^(pre|p)$/i.test(e.nodeName)&&(c=!0),d&&(o=!0)}else 3==e.nodeType&&A(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;u(e),e!=n;)e=e.nextSibling,c=!1;return a}(r,n,l,e,c)),h=Yt(r.doc,Zt(e,0),Zt(c,$t(r.doc,c).text.length));u.length>1&&h.length>1;)if(z(u)==z(h))u.pop(),h.pop(),c--;else{if(u[0]!=h[0])break;u.shift(),h.shift(),e++}for(var f=0,d=0,p=u[0],g=h[0],m=Math.min(p.length,g.length);f<m&&p.charCodeAt(f)==g.charCodeAt(f);)++f;for(var y=z(u),v=z(h),b=Math.min(y.length-(1==u.length?f:0),v.length-(1==h.length?f:0));d<b&&y.charCodeAt(y.length-d-1)==v.charCodeAt(v.length-d-1);)++d;if(1==u.length&&1==h.length&&e==o.line)for(;f&&f>o.ch&&y.charCodeAt(y.length-d-1)==v.charCodeAt(v.length-d-1);)f--,d++;u[u.length-1]=y.slice(0,y.length-d).replace(/^\u200b+/,""),u[0]=u[0].slice(f).replace(/\u200b+$/,"");var w=Zt(e,f),_=Zt(c,h.length?z(h).length-d:0);return u.length>1||u[0]||te(w,_)?(fa(r.doc,u,w,_,"+input"),!0):void 0},Po.prototype.ensurePolled=function(){this.forceCompositionEnd()},Po.prototype.reset=function(){this.forceCompositionEnd()},Po.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Po.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Po.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Jr(this.cm,(function(){return Ar(t.cm)}))},Po.prototype.setUneditable=function(t){t.contentEditable="false"},Po.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Zr(this.cm,No)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Po.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Po.prototype.onContextMenu=function(){},Po.prototype.resetPosition=function(){},Po.prototype.needsContentAttribute=!0;var Ko=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new P,this.hasSelection=!1,this.composing=null};Ko.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function a(t){if(!pt(r,t)){if(r.somethingSelected())Io({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Do(r);Io({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,G):(n.prevInput="",i.value=e.text.join("\n"),L(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),p&&(i.style.width="0px"),ut(i,"input",(function(){o&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),ut(i,"paste",(function(t){pt(r,t)||Mo(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ut(i,"cut",a),ut(i,"copy",a),ut(t.scroller,"paste",(function(e){if(!wn(t,e)&&!pt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var a=new Event("paste");a.clipboardData=e.clipboardData,i.dispatchEvent(a)}})),ut(t.lineSpace,"selectstart",(function(e){wn(t,e)||vt(e)})),ut(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ut(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ko.prototype.createField=function(t){this.wrapper=Oo(),this.textarea=this.wrapper.firstChild},Ko.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Ko.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=gr(t);if(t.options.moveInputWithCursor){var i=Yn(t,n.sel.primary().head,"div"),a=e.wrapper.getBoundingClientRect(),o=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+o.top-a.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+o.left-a.left))}return r},Ko.prototype.showSelection=function(t){var e=this.cm.display;k(e.cursorDiv,t.cursors),k(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Ko.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&L(this.textarea),o&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",o&&s>=9&&(this.hasSelection=null))}},Ko.prototype.getField=function(){return this.textarea},Ko.prototype.supportsTouch=function(){return!1},Ko.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||M()!=this.textarea))try{this.textarea.focus()}catch(t){}},Ko.prototype.blur=function(){this.textarea.blur()},Ko.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ko.prototype.receivedFocus=function(){this.slowPoll()},Ko.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},Ko.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}))},Ko.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Nt(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(o&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var a=i.charCodeAt(0);if(8203!=a||r||(r=""),8666==a)return this.reset(),this.cm.execCommand("undo")}for(var c=0,l=Math.min(r.length,i.length);c<l&&r.charCodeAt(c)==i.charCodeAt(c);)++c;return Jr(e,(function(){No(e,i.slice(c),r.length-c,null,t.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ko.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ko.prototype.onKeyPress=function(){o&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ko.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var a=cr(n,t),l=r.scroller.scrollTop;if(a&&!u){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(a)&&Zr(n,Ji)(n.doc,Ci(a),G);var A,h=i.style.cssText,f=e.wrapper.style.cssText,d=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-d.top-5)+"px; left: "+(t.clientX-d.left-5)+"px;\n z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(A=window.scrollY),r.input.focus(),c&&window.scrollTo(null,A),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o&&s>=9&&g(),E){_t(t);var p=function(){ft(window,"mouseup",p),setTimeout(m,20)};ut(window,"mouseup",p)}else setTimeout(m,50)}function g(){if(null!=i.selectionStart){var t=n.somethingSelected(),a=""+(t?i.value:"");i.value="⇚",i.value=a,e.prevInput=t?"":"",i.selectionStart=1,i.selectionEnd=a.length,r.selForContextMenu=n.doc.sel}}function m(){if(e.contextMenuPending==m&&(e.contextMenuPending=!1,e.wrapper.style.cssText=f,i.style.cssText=h,o&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!o||o&&s<9)&&g();var t=0,a=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==e.prevInput?Zr(n,oa)(n):t++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(a,200)}}},Ko.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},Ko.prototype.setUneditable=function(){},Ko.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,r,i,a){t.defaults[n]=r,i&&(e[n]=a?function(t,e,n){n!=wo&&i(t,e,n)}:i)}t.defineOption=n,t.Init=wo,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,Si(t)}),!0),n("indentUnit",2,Si,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Ii(t),Pn(t),Ar(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var a=t.text.indexOf(e,i);if(-1==a)break;i=a+e.length,n.push(Zt(r,a))}r++}));for(var i=n.length-1;i>=0;i--)fa(t.doc,e,n[i],Zt(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=wo&&t.refresh()})),n("specialCharPlaceholder",Xe,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",m?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!b),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){bo(t),di(t)}),!0),n("keyMap","default",(function(t,e,n){var r=za(e),i=n!=wo&&za(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,xo,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=hi(e,t.options.lineNumbers),di(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?ar(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return Qr(t)}),!0),n("scrollbarStyle","native",(function(t){jr(t),Qr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=hi(t.options.gutters,e),di(t)}),!0),n("firstLineNumber",1,di,!0),n("lineNumberFormatter",(function(t){return t}),di,!0),n("showCursorWhenSelecting",!1,pr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Cr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Co),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,pr,!0),n("singleCursorHeightPerLine",!0,pr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ii,!0),n("addModeClass",!1,Ii,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Ii,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}(Bo),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&Zr(this,e[t])(this,n,i),dt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](za(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:ti((function(e,n){var r=e.token?e:t.getMode(this.options,e);if(r.startState)throw new Error("Overlays may not be stateful.");!function(t,e,n){for(var r=0,i=n(e);r<t.length&&n(t[r])<=i;)r++;t.splice(r,0,e)}(this.state.overlays,{mode:r,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(t){return t.priority})),this.state.modeGen++,Ar(this)})),removeOverlay:ti((function(t){for(var e=this.state.overlays,n=0;n<e.length;++n){var r=e[n].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return e.splice(n,1),this.state.modeGen++,void Ar(this)}})),indentLine:ti((function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),Xt(this.doc,t)&&ko(this,t,e,n)})),indentSelection:ti((function(t){for(var e=this.doc.sel.ranges,n=-1,r=0;r<e.length;r++){var i=e[r];if(i.empty())i.head.line>n&&(ko(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&Ir(this));else{var a=i.from(),o=i.to(),s=Math.max(n,a.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var c=s;c<n;++c)ko(this,c,t);var l=this.doc.sel.ranges;0==a.ch&&e.length==l.length&&l[r].from().ch>0&&Wi(this.doc,r,new _i(a,l[r].to()),G)}}})),getTokenAt:function(t,e){return me(this,t,e)},getLineTokens:function(t,e){return me(this,Zt(t),e,!0)},getTokenTypeAt:function(t){t=oe(this.doc,t);var e,n=ue(this,$t(this.doc,t.line)),r=0,i=(n.length-1)/2,a=t.ch;if(0==a)e=n[2];else for(;;){var o=r+i>>1;if((o?n[2*o-1]:0)>=a)i=o;else{if(!(n[2*o+1]<a)){e=n[2*o+2];break}r=o+1}}var s=e?e.indexOf("overlay "):-1;return s<0?e:0==s?null:e.slice(0,s-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var r=[];if(!n.hasOwnProperty(e))return r;var i=n[e],a=this.getModeAt(t);if("string"==typeof a[e])i[a[e]]&&r.push(i[a[e]]);else if(a[e])for(var o=0;o<a[e].length;o++){var s=i[a[e][o]];s&&r.push(s)}else a.helperType&&i[a.helperType]?r.push(i[a.helperType]):i[a.name]&&r.push(i[a.name]);for(var c=0;c<i._global.length;c++){var l=i._global[c];l.pred(a,this)&&-1==Q(r,l.val)&&r.push(l.val)}return r},getStateAfter:function(t,e){var n=this.doc;return he(this,(t=ae(n,null==t?n.first+n.size-1:t))+1,e).state},cursorCoords:function(t,e){var n=this.doc.sel.primary();return Yn(this,null==t?n.head:"object"==typeof t?oe(this.doc,t):t?n.from():n.to(),e||"page")},charCoords:function(t,e){return $n(this,oe(this.doc,t),e||"page")},coordsChar:function(t,e){return Wn(this,(t=Kn(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=Kn(this,{top:t,left:0},e||"page").top,qt(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var r,i=!1;if("number"==typeof t){var a=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>a&&(t=a,i=!0),r=$t(this.doc,t)}else r=t;return jn(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-Ge(r):0)},defaultTextHeight:function(){return nr(this.display)},defaultCharWidth:function(){return rr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var a,o,s,c=this.display,l=(t=Yn(this,oe(this.doc,t))).bottom,A=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),c.sizer.appendChild(e),"over"==r)l=t.top;else if("above"==r||"near"==r){var u=Math.max(c.wrapper.clientHeight,this.doc.height),h=Math.max(c.sizer.clientWidth,c.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>u)&&t.top>e.offsetHeight?l=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=u&&(l=t.bottom),A+e.offsetWidth>h&&(A=h-e.offsetWidth)}e.style.top=l+"px",e.style.left=e.style.right="","right"==i?(A=c.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?A=0:"middle"==i&&(A=(c.sizer.clientWidth-e.offsetWidth)/2),e.style.left=A+"px"),n&&(a=this,o={left:A,top:l,right:A+e.offsetWidth,bottom:l+e.offsetHeight},null!=(s=kr(a,o)).scrollTop&&Dr(a,s.scrollTop),null!=s.scrollLeft&&Or(a,s.scrollLeft))},triggerOnKeyDown:ti(co),triggerOnKeyPress:ti(Ao),triggerOnKeyUp:lo,triggerOnMouseDown:ti(po),execCommand:function(t){if(Za.hasOwnProperty(t))return Za[t].call(null,this)},triggerElectric:ti((function(t){Fo(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var a=oe(this.doc,t),o=0;o<e&&!(a=Ro(this.doc,a,i,n,r)).hitSide;++o);return a},moveH:ti((function(t,e){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ro(n.doc,r.head,t,e,n.options.rtlMoveVisually):t<0?r.from():r.to()}),K)})),deleteH:ti((function(t,e){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Wa(this,(function(n){var i=Ro(r,n.head,t,e,!1);return t<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(t,e,n,r){var i=1,a=r;e<0&&(i=-1,e=-e);for(var o=oe(this.doc,t),s=0;s<e;++s){var c=Yn(this,o,"div");if(null==a?a=c.left:c.left=a,(o=Uo(this,c,i,n)).hitSide)break}return o},moveV:ti((function(t,e){var n=this,r=this.doc,i=[],a=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(o){if(a)return t<0?o.from():o.to();var s=Yn(n,o.head,"div");null!=o.goalColumn&&(s.left=o.goalColumn),i.push(s.left);var c=Uo(n,s,t,e);return"page"==e&&o==r.sel.primary()&&Sr(n,$n(n,c,"div").top-s.top),c}),K),i.length)for(var o=0;o<r.sel.ranges.length;o++)r.sel.ranges[o].goalColumn=i[o]})),findWordAt:function(t){var e=$t(this.doc,t.line).text,n=t.ch,r=t.ch;if(e){var i=this.getHelper(t,"wordChars");"before"!=t.sticky&&r!=e.length||!n?++r:--n;for(var a=e.charAt(n),o=tt(a,i)?function(t){return tt(t,i)}:/\s/.test(a)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!tt(t)};n>0&&o(e.charAt(n-1));)--n;for(;r<e.length&&o(e.charAt(r));)++r}return new _i(Zt(t.line,n),Zt(t.line,r))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?F(this.display.cursorDiv,"CodeMirror-overwrite"):B(this.display.cursorDiv,"CodeMirror-overwrite"),dt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==M()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ti((function(t,e){Nr(this,t,e)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-xn(this)-this.display.barHeight,width:t.scrollWidth-xn(this)-this.display.barWidth,clientHeight:Tn(this),clientWidth:Bn(this)}},scrollIntoView:ti((function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:Zt(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?function(t,e){Mr(t),t.curOp.scrollToPos=e}(this,t):Fr(this,t.from,t.to,t.margin)})),setSize:ti((function(t,e){var n=this,r=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&Un(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){ur(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,dt(this,"refresh",this)})),operation:function(t){return Jr(this,t)},startOperation:function(){return $r(this)},endOperation:function(){return Yr(this)},refresh:ti((function(){var t=this.display.cachedTextHeight;Ar(this),this.curOp.forceUpdate=!0,Pn(this),Nr(this,this.doc.scrollLeft,this.doc.scrollTop),ci(this.display),(null==t||Math.abs(t-nr(this.display))>.5||this.options.lineWrapping)&&sr(this),dt(this,"refresh",this)})),swapDoc:ti((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Di(this,t),Pn(this),this.display.input.reset(),Nr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,sn(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},yt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,a){t.registerHelper(e,r,a),n[e]._global.push({pred:i,val:a})}}(Bo);var $o="iter insert remove copy getEditor constructor".split(" ");for(var Yo in Sa.prototype)Sa.prototype.hasOwnProperty(Yo)&&Q($o,Yo)<0&&(Bo.prototype[Yo]=function(t){return function(){return t.apply(this.doc,arguments)}}(Sa.prototype[Yo]));return yt(Sa),Bo.inputStyles={textarea:Ko,contenteditable:Po},Bo.defineMode=function(t){Bo.defaults.mode||"null"==t||(Bo.defaults.mode=t),Ot.apply(this,arguments)},Bo.defineMIME=function(t,e){Lt[t]=e},Bo.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Bo.defineMIME("text/plain","null"),Bo.defineExtension=function(t,e){Bo.prototype[t]=e},Bo.defineDocExtension=function(t,e){Sa.prototype[t]=e},Bo.fromTextArea=function(t,e){if((e=e?R(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=M();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(ut(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var a=t.form;i=a.submit;try{var o=a.submit=function(){r(),a.submit=i,a.submit(),a.submit=o}}catch(t){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(ft(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Bo((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s},function(t){t.off=ft,t.on=ut,t.wheelEventPixels=vi,t.Doc=Sa,t.splitLines=It,t.countColumn=U,t.findColumn=$,t.isWordChar=Z,t.Pass=H,t.signal=dt,t.Line=$e,t.changeEnd=xi,t.scrollbarModel=Gr,t.Pos=Zt,t.cmpPos=te,t.modes=Dt,t.mimeModes=Lt,t.resolveMode=Rt,t.getMode=Ut,t.modeExtensions=Pt,t.extendMode=Qt,t.copyState=Ht,t.startState=jt,t.innerMode=Gt,t.commands=Za,t.keyMap=Ha,t.keyName=Va,t.isModifierKey=$a,t.lookupKey=Ka,t.normalizeKeyMap=ja,t.StringStream=Kt,t.SharedTextMarker=xa,t.TextMarker=Ea,t.LineWidget=ba,t.e_preventDefault=vt,t.e_stopPropagation=bt,t.e_stop=_t,t.addClass=F,t.contains=N,t.rmClass=B,t.keyNames=Ra}(Bo),Bo.version="5.58.2",Bo}()})),Sl=(r((function(t,e){var n,r,i;r={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},(n=kl).defineMode("xml",(function(t,e){var a,o,s=t.indentUnit,c={},l=e.htmlMode?r:i;for(var A in l)c[A]=l[A];for(var A in e)c[A]=e[A];function u(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.next();return"<"==r?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(f("atom","]]>")):null:t.match("--")?n(f("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(function t(e){return function(n,r){for(var i;null!=(i=n.next());){if("<"==i)return r.tokenize=t(e+1),r.tokenize(n,r);if(">"==i){if(1==e){r.tokenize=u;break}return r.tokenize=t(e-1),r.tokenize(n,r)}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=f("meta","?>"),"meta"):(a=t.eat("/")?"closeTag":"openTag",e.tokenize=h,"tag bracket"):"&"==r?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function h(t,e){var n,r,i=t.next();if(">"==i||"/"==i&&t.eat(">"))return e.tokenize=u,a=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return a="equals",null;if("<"==i){e.tokenize=u,e.state=m,e.tagName=e.tagStart=null;var o=e.tokenize(t,e);return o?o+" tag error":"tag error"}return/[\'\"]/.test(i)?(e.tokenize=(n=i,(r=function(t,e){for(;!t.eol();)if(t.next()==n){e.tokenize=h;break}return"string"}).isInAttribute=!0,r),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=u;break}n.next()}return t}}function d(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(c.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function p(t){t.context&&(t.context=t.context.prev)}function g(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!c.contextGrabbers.hasOwnProperty(n)||!c.contextGrabbers[n].hasOwnProperty(e))return;p(t)}}function m(t,e,n){return"openTag"==t?(n.tagStart=e.column(),y):"closeTag"==t?v:m}function y(t,e,n){return"word"==t?(n.tagName=e.current(),o="tag",_):c.allowMissingTagName&&"endTag"==t?(o="tag bracket",_(t,0,n)):(o="error",y)}function v(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&c.implicitlyClosed.hasOwnProperty(n.context.tagName)&&p(n),n.context&&n.context.tagName==r||!1===c.matchClosing?(o="tag",b):(o="tag error",w)}return c.allowMissingTagName&&"endTag"==t?(o="tag bracket",b(t,0,n)):(o="error",w)}function b(t,e,n){return"endTag"!=t?(o="error",b):(p(n),m)}function w(t,e,n){return o="error",b(t,0,n)}function _(t,e,n){if("word"==t)return o="attribute",E;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||c.autoSelfClosers.hasOwnProperty(r)?g(n,r):(g(n,r),n.context=new d(n,r,i==n.indented)),m}return o="error",_}function E(t,e,n){return"equals"==t?C:(c.allowMissing||(o="error"),_(t,0,n))}function C(t,e,n){return"string"==t?x:"word"==t&&c.allowUnquoted?(o="string",_):(o="error",_(t,0,n))}function x(t,e,n){return"string"==t?x:_(t,0,n)}return u.isInText=!0,{startState:function(t){var e={tokenize:u,state:m,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;a=null;var n=e.tokenize(t,e);return(n||a)&&"comment"!=n&&(o=null,e.state=e.state(a||n,t,e),o&&(n="error"==o?n+" error":o)),n},indent:function(t,e,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return n.Pass;if(t.tokenize!=h&&t.tokenize!=u)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==c.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/<!\[CDATA\[/.test(e))return 0;var a=e&&/^<(\/)?([\w_:\.-]*)/.exec(e);if(a&&a[1])for(;i;){if(i.tagName==a[2]){i=i.prev;break}if(!c.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(a)for(;i;){var o=c.contextGrabbers[i.tagName];if(!o||!o.hasOwnProperty(a[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(t){t.state==C&&(t.state=_)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)n.tagName&&e.push(n.tagName);return e.reverse()}}})),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})),r((function(t,e){!function(t){t.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var e=0;e<t.modeInfo.length;e++){var n=t.modeInfo[e];n.mimes&&(n.mime=n.mimes[0])}t.findModeByMIME=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.mime==e)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==e)return r}return/\+xml$/.test(e)?t.findModeByMIME("application/xml"):/\+json$/.test(e)?t.findModeByMIME("application/json"):void 0},t.findModeByExtension=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==e)return r}},t.findModeByFileName=function(e){for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.file&&r.file.test(e))return r}var i=e.lastIndexOf("."),a=i>-1&&e.substring(i+1,e.length);if(a)return t.findModeByExtension(a)},t.findModeByName=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.name.toLowerCase()==e)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==e)return r}}}(kl)})),r((function(t,e){var n;(n=kl).defineMode("markdown",(function(t,e){var r=n.getMode(t,"text/html"),i="null"==r.name;void 0===e.highlightFormatting&&(e.highlightFormatting=!1),void 0===e.maxBlockquoteDepth&&(e.maxBlockquoteDepth=0),void 0===e.taskLists&&(e.taskLists=!1),void 0===e.strikethrough&&(e.strikethrough=!1),void 0===e.emoji&&(e.emoji=!1),void 0===e.fencedCodeBlockHighlighting&&(e.fencedCodeBlockHighlighting=!0),void 0===e.fencedCodeBlockDefaultMode&&(e.fencedCodeBlockDefaultMode="text/plain"),void 0===e.xml&&(e.xml=!0),void 0===e.tokenTypeOverrides&&(e.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var o in a)a.hasOwnProperty(o)&&e.tokenTypeOverrides[o]&&(a[o]=e.tokenTypeOverrides[o]);var s=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,l=/^\[(x| )\](?=\s)/i,A=e.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,u=/^ {0,3}(?:\={1,}|-{2,})\s*$/,h=/^[^#!\[\]*_\\<>` "'(~:]+/,f=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,d=/^\s*\[[^\]]+?\]:.*$/,p=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/;function g(t,e,n){return e.f=e.inline=n,n(t,e)}function m(t,e,n){return e.f=e.block=n,n(t,e)}function y(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==b){var e=i;if(!e){var a=n.innerMode(r,t.htmlState);e="xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText}e&&(t.f=C,t.block=v,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function v(r,i){var o,h=r.column()===i.indentation,p=!(o=i.prevLine.stream)||!/\S/.test(o.string),m=i.indentedCode,y=i.prevLine.hr,v=!1!==i.list,b=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var E=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,v)){for(i.list=null;E<i.listStack[i.listStack.length-1];)i.listStack.pop(),i.listStack.length?i.indentation=i.listStack[i.listStack.length-1]:i.list=!1;!1!==i.list&&(i.indentationDiff=E-i.listStack[i.listStack.length-1])}var C=!(p||y||i.prevLine.header||v&&m||i.prevLine.fencedCodeEnd),x=(!1===i.list||y||p)&&i.indentation<=b&&r.match(s),B=null;if(i.indentationDiff>=4&&(m||i.prevLine.fencedCodeEnd||i.prevLine.header||p))return r.skipToEnd(),i.indentedCode=!0,a.code;if(r.eatSpace())return null;if(h&&i.indentation<=b&&(B=r.match(A))&&B[1].length<=6)return i.quote=0,i.header=B[1].length,i.thisLine.header=!0,e.highlightFormatting&&(i.formatting="header"),i.f=i.inline,_(i);if(i.indentation<=b&&r.eat(">"))return i.quote=h?1:i.quote+1,e.highlightFormatting&&(i.formatting="quote"),r.eatSpace(),_(i);if(!x&&!i.setext&&h&&i.indentation<=b&&(B=r.match(c))){var T=B[1]?"ol":"ul";return i.indentation=E+r.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,e.taskLists&&r.match(l,!1)&&(i.taskList=!0),i.f=i.inline,e.highlightFormatting&&(i.formatting=["list","list-"+T]),_(i)}return h&&i.indentation<=b&&(B=r.match(f,!0))?(i.quote=0,i.fencedEndRE=new RegExp(B[1]+"+ *$"),i.localMode=e.fencedCodeBlockHighlighting&&function(e){if(n.findModeByName){var r=n.findModeByName(e);r&&(e=r.mime||r.mimes[0])}var i=n.getMode(t,e);return"null"==i.name?null:i}(B[2]||e.fencedCodeBlockDefaultMode),i.localMode&&(i.localState=n.startState(i.localMode)),i.f=i.block=w,e.highlightFormatting&&(i.formatting="code-block"),i.code=-1,_(i)):i.setext||!(C&&v||i.quote||!1!==i.list||i.code||x||d.test(r.string))&&(B=r.lookAhead(1))&&(B=B.match(u))?(i.setext?(i.header=i.setext,i.setext=0,r.skipToEnd(),e.highlightFormatting&&(i.formatting="header")):(i.header="="==B[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,_(i)):x?(r.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,a.hr):"["===r.peek()?g(r,i,k):g(r,i,i.inline)}function b(t,e){var a=r.token(t,e.htmlState);if(!i){var o=n.innerMode(r,e.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||e.md_inside&&t.current().indexOf(">")>-1)&&(e.f=C,e.block=v,e.htmlState=null)}return a}function w(t,n){var r,i=n.listStack[n.listStack.length-1]||0,o=n.indentation<i,s=i+3;return n.fencedEndRE&&n.indentation<=s&&(o||t.match(n.fencedEndRE))?(e.highlightFormatting&&(n.formatting="code-block"),o||(r=_(n)),n.localMode=n.localState=null,n.block=v,n.f=C,n.fencedEndRE=null,n.code=0,n.thisLine.fencedCodeEnd=!0,o?m(t,n,n.block):r):n.localMode?n.localMode.token(t,n.localState):(t.skipToEnd(),a.code)}function _(t){var n=[];if(t.formatting){n.push(a.formatting),"string"==typeof t.formatting&&(t.formatting=[t.formatting]);for(var r=0;r<t.formatting.length;r++)n.push(a.formatting+"-"+t.formatting[r]),"header"===t.formatting[r]&&n.push(a.formatting+"-"+t.formatting[r]+"-"+t.header),"quote"===t.formatting[r]&&(!e.maxBlockquoteDepth||e.maxBlockquoteDepth>=t.quote?n.push(a.formatting+"-"+t.formatting[r]+"-"+t.quote):n.push("error"))}if(t.taskOpen)return n.push("meta"),n.length?n.join(" "):null;if(t.taskClosed)return n.push("property"),n.length?n.join(" "):null;if(t.linkHref?n.push(a.linkHref,"url"):(t.strong&&n.push(a.strong),t.em&&n.push(a.em),t.strikethrough&&n.push(a.strikethrough),t.emoji&&n.push(a.emoji),t.linkText&&n.push(a.linkText),t.code&&n.push(a.code),t.image&&n.push(a.image),t.imageAltText&&n.push(a.imageAltText,"link"),t.imageMarker&&n.push(a.imageMarker)),t.header&&n.push(a.header,a.header+"-"+t.header),t.quote&&(n.push(a.quote),!e.maxBlockquoteDepth||e.maxBlockquoteDepth>=t.quote?n.push(a.quote+"-"+t.quote):n.push(a.quote+"-"+e.maxBlockquoteDepth)),!1!==t.list){var i=(t.listStack.length-1)%3;i?1===i?n.push(a.list2):n.push(a.list3):n.push(a.list1)}return t.trailingSpaceNewLine?n.push("trailing-space-new-line"):t.trailingSpace&&n.push("trailing-space-"+(t.trailingSpace%2?"a":"b")),n.length?n.join(" "):null}function E(t,e){if(t.match(h,!0))return _(e)}function C(t,i){var o=i.text(t,i);if(void 0!==o)return o;if(i.list)return i.list=null,_(i);if(i.taskList)return" "===t.match(l,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,e.highlightFormatting&&(i.formatting="task"),i.taskList=!1,_(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return e.highlightFormatting&&(i.formatting="header"),_(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var c=s;"("===s&&(c=")");var A="^\\s*(?:[^"+(c=(c+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+c;if(t.match(new RegExp(A),!0))return a.linkHref}if("`"===s){var u=i.formatting;e.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var h=t.current().length;if(0!=i.code||i.quote&&1!=h){if(h==i.code){var f=_(i);return i.code=0,f}return i.formatting=u,_(i)}return i.code=h,_(i)}if(i.code)return _(i);if("\\"===s&&(t.next(),e.highlightFormatting)){var d=_(i),g=a.formatting+"-escape";return d?d+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,e.highlightFormatting&&(i.formatting="image"),_(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,e.highlightFormatting&&(i.formatting="image"),_(i);if("]"===s&&i.imageAltText){e.highlightFormatting&&(i.formatting="image");var d=_(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=B,d}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,e.highlightFormatting&&(i.formatting="link")),_(i);if("]"===s&&i.linkText){e.highlightFormatting&&(i.formatting="link");var d=_(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?B:C,d}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=x,e.highlightFormatting&&(i.formatting="link"),(d=_(i))?d+=" ":d="",d+a.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=x,e.highlightFormatting&&(i.formatting="link"),(d=_(i))?d+=" ":d="",d+a.linkEmail;if(e.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var y=t.string.indexOf(">",t.pos);if(-1!=y){var v=t.string.substring(t.start,y);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(v)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=n.startState(r),m(t,i,b)}if(e.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var w=1,E=1==t.pos?" ":t.string.charAt(t.pos-2);w<3&&t.eat(s);)w++;var T=t.peek()||" ",k=!/\s/.test(T)&&(!p.test(T)||/\s/.test(E)||p.test(E)),S=!/\s/.test(E)&&(!p.test(E)||/\s/.test(T)||p.test(T)),I=null,N=null;if(w%2&&(i.em||!k||"*"!==s&&S&&!p.test(E)?i.em!=s||!S||"*"!==s&&k&&!p.test(T)||(I=!1):I=!0),w>1&&(i.strong||!k||"*"!==s&&S&&!p.test(E)?i.strong!=s||!S||"*"!==s&&k&&!p.test(T)||(N=!1):N=!0),null!=N||null!=I)return e.highlightFormatting&&(i.formatting=null==I?"strong":null==N?"em":"strong em"),!0===I&&(i.em=s),!0===N&&(i.strong=s),f=_(i),!1===I&&(i.em=!1),!1===N&&(i.strong=!1),f}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return _(i);t.backUp(1)}if(e.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)return e.highlightFormatting&&(i.formatting="strikethrough"),f=_(i),i.strikethrough=!1,f;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,e.highlightFormatting&&(i.formatting="strikethrough"),_(i)}else if(" "===s&&t.match(/^~~/,!0)){if(" "===t.peek())return _(i);t.backUp(2)}if(e.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,e.highlightFormatting&&(i.formatting="emoji");var M=_(i);return i.emoji=!1,M}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),_(i)}function x(t,n){if(">"===t.next()){n.f=n.inline=C,e.highlightFormatting&&(n.formatting="link");var r=_(n);return r?r+=" ":r="",r+a.linkInline}return t.match(/^[^>]+/,!0),a.linkInline}function B(t,n){if(t.eatSpace())return null;var r,i=t.next();return"("===i||"["===i?(n.f=n.inline=(r="("===i?")":"]",function(t,n){if(t.next()===r){n.f=n.inline=C,e.highlightFormatting&&(n.formatting="link-string");var i=_(n);return n.linkHref=!1,i}return t.match(T[r]),n.linkHref=!0,_(n)}),e.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,_(n)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function k(t,n){return t.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=S,t.next(),e.highlightFormatting&&(n.formatting="link"),n.linkText=!0,_(n)):g(t,n,C)}function S(t,n){if(t.match(/^\]:/,!0)){n.f=n.inline=I,e.highlightFormatting&&(n.formatting="link");var r=_(n);return n.linkText=!1,r}return t.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function I(t,e){return t.eatSpace()?null:(t.match(/^[^\s]+/,!0),void 0===t.peek()?e.linkTitle=!0:t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),e.f=e.inline=C,a.linkHref+" url")}var N={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:C,text:E,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&n.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?n.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(t,e){if(e.formatting=!1,t!=e.thisLine.stream){if(e.header=0,e.hr=!1,t.match(/^\s*$/,!0))return y(e),null;if(e.prevLine=e.thisLine,e.thisLine={stream:t},e.taskList=!1,e.trailingSpace=0,e.trailingSpaceNewLine=!1,!e.localState&&(e.f=e.block,e.f!=b)){var n=t.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(e.indentation=n,e.indentationDiff=null,n>0)return null}}return e.f(t,e)},innerMode:function(t){return t.block==b?{state:t.htmlState,mode:r}:t.localState?{state:t.localState,mode:t.localMode}:{state:t,mode:N}},indent:function(t,e,i){return t.block==b&&r.indent?r.indent(t.htmlState,e,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,e,i):n.Pass},blankLine:y,getType:_,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return N}),"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})),r((function(t,e){var n;(n=kl).overlayMode=function(t,e,r){return{startState:function(){return{base:n.startState(t),overlay:n.startState(e),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:n.copyState(t,r.base),overlay:n.copyState(e,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(n,i){return(n!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<n.start)&&(i.streamSeen=n,i.basePos=i.overlayPos=n.start),n.start==i.basePos&&(i.baseCur=t.token(n,i.base),i.basePos=n.pos),n.start==i.overlayPos&&(n.pos=n.start,i.overlayCur=e.token(n,i.overlay),i.overlayPos=n.pos),n.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(n){var i,a;return t.blankLine&&(i=t.blankLine(n.base)),e.blankLine&&(a=e.blankLine(n.overlay)),null==a?i:r&&null!=i?i+" "+a:a}}}})),r((function(t,e){var n,r;r=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i,(n=kl).defineMode("gfm",(function(t,e){var i=0,a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(t){return{code:t.code,codeBlock:t.codeBlock,ateSpace:t.ateSpace}},token:function(t,n){if(n.combineTokens=null,n.codeBlock)return t.match(/^```+/)?(n.codeBlock=!1,null):(t.skipToEnd(),null);if(t.sol()&&(n.code=!1),t.sol()&&t.match(/^```+/))return t.skipToEnd(),n.codeBlock=!0,null;if("`"===t.peek()){t.next();var a=t.pos;t.eatWhile("`");var o=1+t.pos-a;return n.code?o===i&&(n.code=!1):(i=o,n.code=!0),null}if(n.code)return t.next(),null;if(t.eatSpace())return n.ateSpace=!0,null;if((t.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==e.gitHubSpice)){if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return t.match(r)&&"]("!=t.string.slice(t.start-2,t.start)&&(0==t.start||/\W/.test(t.string.charAt(t.start-1)))?(n.combineTokens=!0,"link"):(t.next(),null)},blankLine:function(t){return t.code=!1,null}},o={taskLists:!0,strikethrough:!0,emoji:!0};for(var s in e)o[s]=e[s];return o.name="markdown",n.overlayMode(n.getMode(t,o),a)}),"markdown"),n.defineMIME("text/x-gfm","gfm")})),r((function(t,e){!function(t){var e=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(t,n){var r=n.line,i=0,a=0,o=e.exec(t.getLine(r)),s=o[1];do{var c=r+(i+=1),l=t.getLine(c),A=e.exec(l);if(A){var u=A[1],h=parseInt(o[3],10)+i-a,f=parseInt(A[3],10),d=f;if(s!==u||isNaN(f)){if(s.length>u.length)return;if(s.length<u.length&&1===i)return;a+=1}else h===f&&(d=f+1),h>f&&(d=h+1),t.replaceRange(l.replace(e,u+d+A[4]+A[5]),{line:c,ch:0},{line:c,ch:l.length})}}while(A)}t.commands.newlineAndIndentContinueMarkdownList=function(a){if(a.getOption("disableInput"))return t.Pass;for(var o=a.listSelections(),s=[],c=0;c<o.length;c++){var l=o[c].head,A=a.getStateAfter(l.line),u=t.innerMode(a.getMode(),A);if("markdown"!==u.mode.name)return void a.execCommand("newlineAndIndent");var h=!1!==(A=u.state).list,f=0!==A.quote,d=a.getLine(l.line),p=e.exec(d),g=/^\s*$/.test(d.slice(0,l.ch));if(!o[c].empty()||!h&&!f||!p||g)return void a.execCommand("newlineAndIndent");if(n.test(d)){var m=f&&/>\s*$/.test(d),y=!/>\s*$/.test(d);(m||y)&&a.replaceRange("",{line:l.line,ch:0},{line:l.line,ch:l.ch+1}),s[c]="\n"}else{var v=p[1],b=p[5],w=!(r.test(p[2])||p[2].indexOf(">")>=0),_=w?parseInt(p[3],10)+1+p[4]:p[2].replace("x"," ");s[c]="\n"+v+_+b,w&&i(a,l)}}a.replaceSelections(s)}}(kl)})),r((function(t,e){!function(t){var e=t.Pos;function n(t,e){return t.line-e.line||t.ch-e.ch}var r="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function a(t,e,n,r){this.line=e,this.ch=n,this.cm=t,this.text=t.getLine(e),this.min=r?Math.max(r.from,t.firstLine()):t.firstLine(),this.max=r?Math.min(r.to-1,t.lastLine()):t.lastLine()}function o(t,n){var r=t.cm.getTokenTypeAt(e(t.line,n));return r&&/\btag\b/.test(r)}function s(t){if(!(t.line>=t.max))return t.ch=0,t.text=t.cm.getLine(++t.line),!0}function c(t){if(!(t.line<=t.min))return t.text=t.cm.getLine(--t.line),t.ch=t.text.length,!0}function l(t){for(;;){var e=t.text.indexOf(">",t.ch);if(-1==e){if(s(t))continue;return}if(o(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e+1}}function A(t){for(;;){var e=t.ch?t.text.lastIndexOf("<",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(o(t,e+1)){i.lastIndex=e,t.ch=e;var n=i.exec(t.text);if(n&&n.index==e)return n}else t.ch=e}}function u(t){for(;;){i.lastIndex=t.ch;var e=i.exec(t.text);if(!e){if(s(t))continue;return}if(o(t,e.index+1))return t.ch=e.index+e[0].length,e;t.ch=e.index+1}}function h(t){for(;;){var e=t.ch?t.text.lastIndexOf(">",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(o(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e}}function f(t,n){for(var r=[];;){var i,a=u(t),o=t.line,s=t.ch-(a?a[0].length:0);if(!a||!(i=l(t)))return;if("selfClose"!=i)if(a[1]){for(var c=r.length-1;c>=0;--c)if(r[c]==a[2]){r.length=c;break}if(c<0&&(!n||n==a[2]))return{tag:a[2],from:e(o,s),to:e(t.line,t.ch)}}else r.push(a[2])}}function d(t,n){for(var r=[];;){var i=h(t);if(!i)return;if("selfClose"!=i){var a=t.line,o=t.ch,s=A(t);if(!s)return;if(s[1])r.push(s[2]);else{for(var c=r.length-1;c>=0;--c)if(r[c]==s[2]){r.length=c;break}if(c<0&&(!n||n==s[2]))return{tag:s[2],from:e(t.line,t.ch),to:e(a,o)}}}else A(t)}}t.registerHelper("fold","xml",(function(t,r){for(var i=new a(t,r.line,0);;){var o=u(i);if(!o||i.line!=r.line)return;var s=l(i);if(!s)return;if(!o[1]&&"selfClose"!=s){var c=e(i.line,i.ch),A=f(i,o[2]);return A&&n(A.from,c)>0?{from:c,to:A.from}:null}}})),t.findMatchingTag=function(t,r,i){var o=new a(t,r.line,r.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var s=l(o),c=s&&e(o.line,o.ch),u=s&&A(o);if(s&&u&&!(n(o,r)>0)){var h={from:e(o.line,o.ch),to:c,tag:u[2]};return"selfClose"==s?{open:h,close:null,at:"open"}:u[1]?{open:d(o,u[2]),close:h,at:"close"}:{open:h,close:f(o=new a(t,c.line,c.ch,i),u[2]),at:"open"}}}},t.findEnclosingTag=function(t,e,n,r){for(var i=new a(t,e.line,e.ch,n);;){var o=d(i,r);if(!o)break;var s=f(new a(t,e.line,e.ch,n),o.tag);if(s)return{open:o,close:s}}},t.scanForClosingTag=function(t,e,n,r){return f(new a(t,e.line,e.ch,r?{from:0,to:r}:null),n)}}(kl)})),r((function(t,e){!function(t){t.defineOption("autoCloseTags",!1,(function(o,s,c){if(c!=t.Init&&c&&o.removeKeyMap("autoCloseTags"),s){var l={name:"autoCloseTags"};"object"==typeof s&&!1===s.whenClosing||(l["'/'"]=function(e){return function(e){return e.getOption("disableInput")?t.Pass:r(e,!0)}(e)}),"object"==typeof s&&!1===s.whenOpening||(l["'>'"]=function(r){return function(r){if(r.getOption("disableInput"))return t.Pass;for(var o=r.listSelections(),s=[],c=r.getOption("autoCloseTags"),l=0;l<o.length;l++){if(!o[l].empty())return t.Pass;var A=o[l].head,u=r.getTokenAt(A),h=t.innerMode(r.getMode(),u.state),f=h.state,d=h.mode.xmlCurrentTag&&h.mode.xmlCurrentTag(f),p=d&&d.name;if(!p)return t.Pass;var g="html"==h.mode.configuration,m="object"==typeof c&&c.dontCloseTags||g&&e,y="object"==typeof c&&c.indentTags||g&&n;u.end>A.ch&&(p=p.slice(0,p.length-u.end+A.ch));var v=p.toLowerCase();if(!p||"string"==u.type&&(u.end!=A.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||1==u.string.length)||"tag"==u.type&&d.close||u.string.indexOf("/")==A.ch-u.start-1||m&&i(m,v)>-1||a(r,h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(f)||[],p,A,!0))return t.Pass;var b="object"==typeof c&&c.emptyTags;if(b&&i(b,p)>-1)s[l]={text:"/>",newPos:t.Pos(A.line,A.ch+2)};else{var w=y&&i(y,v)>-1;s[l]={indent:w,text:">"+(w?"\n\n":"")+"</"+p+">",newPos:w?t.Pos(A.line+1,0):t.Pos(A.line,A.ch+1)}}}var _="object"==typeof c&&c.dontIndentOnAutoClose;for(l=o.length-1;l>=0;l--){var E=s[l];r.replaceRange(E.text,o[l].head,o[l].anchor,"+insert");var C=r.listSelections().slice(0);C[l]={head:E.newPos,anchor:E.newPos},r.setSelections(C),!_&&E.indent&&(r.indentLine(E.newPos.line,null,!0),r.indentLine(E.newPos.line+1,null,!0))}}(r)}),o.addKeyMap(l)}}));var e=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function r(e,n){for(var r=e.listSelections(),i=[],o=n?"/":"</",s=e.getOption("autoCloseTags"),c="object"==typeof s&&s.dontIndentOnSlash,l=0;l<r.length;l++){if(!r[l].empty())return t.Pass;var A=r[l].head,u=e.getTokenAt(A),h=t.innerMode(e.getMode(),u.state),f=h.state;if(n&&("string"==u.type||"<"!=u.string.charAt(0)||u.start!=A.ch-1))return t.Pass;var d,p="xml"!=h.mode.name&&"htmlmixed"==e.getMode().name;if(p&&"javascript"==h.mode.name)d=o+"script";else if(p&&"css"==h.mode.name)d=o+"style";else{var g=h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(f);if(!g||g.length&&a(e,g,g[g.length-1],A))return t.Pass;d=o+g[g.length-1]}">"!=e.getLine(A.line).charAt(u.end)&&(d+=">"),i[l]=d}if(e.replaceSelections(i),r=e.listSelections(),!c)for(l=0;l<r.length;l++)(l==r.length-1||r[l].head.line<r[l+1].head.line)&&e.indentLine(r[l].head.line)}function i(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;++n)if(t[n]==e)return n;return-1}function a(e,n,r,i,a){if(!t.scanForClosingTag)return!1;var o=Math.min(e.lastLine()+1,i.line+500),s=t.scanForClosingTag(e,i,null,o);if(!s||s.tag!=r)return!1;for(var c=a?1:0,l=n.length-1;l>=0&&n[l]==r;l--)++c;for(i=s.to,l=1;l<c;l++){var A=t.scanForClosingTag(e,i,null,o);if(!A||A.tag!=r)return!1;i=A.to}return!0}t.commands.closeTag=function(t){return r(t)}}(kl)})),r((function(t,e){!function(t){function e(t){t.state.tagHit&&t.state.tagHit.clear(),t.state.tagOther&&t.state.tagOther.clear(),t.state.tagHit=t.state.tagOther=null}function n(n){n.state.failedTagMatch=!1,n.operation((function(){if(e(n),!n.somethingSelected()){var r=n.getCursor(),i=n.getViewport();i.from=Math.min(i.from,r.line),i.to=Math.max(r.line+1,i.to);var a=t.findMatchingTag(n,r,i);if(a){if(n.state.matchBothTags){var o="open"==a.at?a.open:a.close;o&&(n.state.tagHit=n.markText(o.from,o.to,{className:"CodeMirror-matchingtag"}))}var s="close"==a.at?a.open:a.close;s?n.state.tagOther=n.markText(s.from,s.to,{className:"CodeMirror-matchingtag"}):n.state.failedTagMatch=!0}}}))}function r(t){t.state.failedTagMatch&&n(t)}t.defineOption("matchTags",!1,(function(i,a,o){o&&o!=t.Init&&(i.off("cursorActivity",n),i.off("viewportChange",r),e(i)),a&&(i.state.matchBothTags="object"==typeof a&&a.bothTags,i.on("cursorActivity",n),i.on("viewportChange",r),n(i))})),t.commands.toMatchingTag=function(e){var n=t.findMatchingTag(e,e.getCursor());if(n){var r="close"==n.at?n.open:n.close;r&&e.extendSelection(r.to,r.from)}}}(kl)})),r((function(t,e){!function(t){var e,n,r=t.Pos;function i(t,e){for(var n=function(t){var e=t.flags;return null!=e?e:(t.ignoreCase?"i":"")+(t.global?"g":"")+(t.multiline?"m":"")}(t),r=n,i=0;i<e.length;i++)-1==r.indexOf(e.charAt(i))&&(r+=e.charAt(i));return n==r?t:new RegExp(t.source,r)}function a(t){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(t.source)}function o(t,e,n){e=i(e,"g");for(var a=n.line,o=n.ch,s=t.lastLine();a<=s;a++,o=0){e.lastIndex=o;var c=t.getLine(a),l=e.exec(c);if(l)return{from:r(a,l.index),to:r(a,l.index+l[0].length),match:l}}}function s(t,e,n){if(!a(e))return o(t,e,n);e=i(e,"gm");for(var s,c=1,l=n.line,A=t.lastLine();l<=A;){for(var u=0;u<c&&!(l>A);u++){var h=t.getLine(l++);s=null==s?h:s+"\n"+h}c*=2,e.lastIndex=n.ch;var f=e.exec(s);if(f){var d=s.slice(0,f.index).split("\n"),p=f[0].split("\n"),g=n.line+d.length-1,m=d[d.length-1].length;return{from:r(g,m),to:r(g+p.length-1,1==p.length?m+p[0].length:p[p.length-1].length),match:f}}}}function c(t,e,n){for(var r,i=0;i<=t.length;){e.lastIndex=i;var a=e.exec(t);if(!a)break;var o=a.index+a[0].length;if(o>t.length-n)break;(!r||o>r.index+r[0].length)&&(r=a),i=a.index+1}return r}function l(t,e,n){e=i(e,"g");for(var a=n.line,o=n.ch,s=t.firstLine();a>=s;a--,o=-1){var l=t.getLine(a),A=c(l,e,o<0?0:l.length-o);if(A)return{from:r(a,A.index),to:r(a,A.index+A[0].length),match:A}}}function A(t,e,n){if(!a(e))return l(t,e,n);e=i(e,"gm");for(var o,s=1,A=t.getLine(n.line).length-n.ch,u=n.line,h=t.firstLine();u>=h;){for(var f=0;f<s&&u>=h;f++){var d=t.getLine(u--);o=null==o?d:d+"\n"+o}s*=2;var p=c(o,e,A);if(p){var g=o.slice(0,p.index).split("\n"),m=p[0].split("\n"),y=u+g.length,v=g[g.length-1].length;return{from:r(y,v),to:r(y+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function u(t,e,n,r){if(t.length==e.length)return n;for(var i=0,a=n+Math.max(0,t.length-e.length);;){if(i==a)return i;var o=i+a>>1,s=r(t.slice(0,o)).length;if(s==n)return o;s>n?a=o:i=o+1}}function h(t,i,a,o){if(!i.length)return null;var s=o?e:n,c=s(i).split(/\r|\n\r?/);t:for(var l=a.line,A=a.ch,h=t.lastLine()+1-c.length;l<=h;l++,A=0){var f=t.getLine(l).slice(A),d=s(f);if(1==c.length){var p=d.indexOf(c[0]);if(-1==p)continue t;return a=u(f,d,p,s)+A,{from:r(l,u(f,d,p,s)+A),to:r(l,u(f,d,p+c[0].length,s)+A)}}var g=d.length-c[0].length;if(d.slice(g)==c[0]){for(var m=1;m<c.length-1;m++)if(s(t.getLine(l+m))!=c[m])continue t;var y=t.getLine(l+c.length-1),v=s(y),b=c[c.length-1];if(v.slice(0,b.length)==b)return{from:r(l,u(f,d,g,s)+A),to:r(l+c.length-1,u(y,v,b.length,s))}}}}function f(t,i,a,o){if(!i.length)return null;var s=o?e:n,c=s(i).split(/\r|\n\r?/);t:for(var l=a.line,A=a.ch,h=t.firstLine()-1+c.length;l>=h;l--,A=-1){var f=t.getLine(l);A>-1&&(f=f.slice(0,A));var d=s(f);if(1==c.length){var p=d.lastIndexOf(c[0]);if(-1==p)continue t;return{from:r(l,u(f,d,p,s)),to:r(l,u(f,d,p+c[0].length,s))}}var g=c[c.length-1];if(d.slice(0,g.length)==g){var m=1;for(a=l-c.length+1;m<c.length-1;m++)if(s(t.getLine(a+m))!=c[m])continue t;var y=t.getLine(l+1-c.length),v=s(y);if(v.slice(v.length-c[0].length)==c[0])return{from:r(l+1-c.length,u(y,v,y.length-c[0].length,s)),to:r(l,u(f,d,g.length,s))}}}}function d(t,e,n,a){var c;this.atOccurrence=!1,this.doc=t,n=n?t.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof a?c=a.caseFold:(c=a,a=null),"string"==typeof e?(null==c&&(c=!1),this.matches=function(n,r){return(n?f:h)(t,e,r,c)}):(e=i(e,"gm"),a&&!1===a.multiline?this.matches=function(n,r){return(n?l:o)(t,e,r)}:this.matches=function(n,r){return(n?A:s)(t,e,r)})}String.prototype.normalize?(e=function(t){return t.normalize("NFD").toLowerCase()},n=function(t){return t.normalize("NFD")}):(e=function(t){return t.toLowerCase()},n=function(t){return t}),d.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){for(var n=this.matches(e,this.doc.clipPos(e?this.pos.from:this.pos.to));n&&0==t.cmpPos(n.from,n.to);)e?n.from.ch?n.from=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(e,this.doc.clipPos(r(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=r(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(e,r(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=r(e?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(e,n){if(this.atOccurrence){var i=t.splitLines(e);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},t.defineExtension("getSearchCursor",(function(t,e,n){return new d(this.doc,t,e,n)})),t.defineDocExtension("getSearchCursor",(function(t,e,n){return new d(this,t,e,n)})),t.defineExtension("selectMatches",(function(e,n){for(var r=[],i=this.getSearchCursor(e,this.getCursor("from"),n);i.findNext()&&!(t.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(kl)})),r((function(t,e){!function(t){function e(t){t.state.placeholder&&(t.state.placeholder.parentNode.removeChild(t.state.placeholder),t.state.placeholder=null)}function n(t){e(t);var n=t.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=t.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=t.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),t.display.lineSpace.insertBefore(n,t.display.lineSpace.firstChild)}function r(t){a(t)&&n(t)}function i(t){var r=t.getWrapperElement(),i=a(t);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(t):e(t)}function a(t){return 1===t.lineCount()&&""===t.getLine(0)}t.defineOption("placeholder","",(function(a,o,s){var c=s&&s!=t.Init;if(o&&!c)a.on("blur",r),a.on("change",i),a.on("swapDoc",i),t.on(a.getInputField(),"compositionupdate",a.state.placeholderCompose=function(){!function(t){setTimeout((function(){var r=!1,i=t.getInputField();"TEXTAREA"==i.nodeName?r=!i.value:1==t.lineCount()&&(r=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),r?n(t):e(t)}),20)}(a)}),i(a);else if(!o&&c){a.off("blur",r),a.off("change",i),a.off("swapDoc",i),t.off(a.getInputField(),"compositionupdate",a.state.placeholderCompose),e(a);var l=a.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}o&&!a.hasFocus()&&r(a)}))}(kl)})),ca),Il=r((function(t){t.exports=function(t){if(Sl(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Il);var Nl=r((function(t){t.exports=function(t,e){var n=null==t?null:void 0!==Za&&sa(t)||t["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Nl);var Ml=bn,Fl=Or,Dl=r((function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Dl);var Ll=r((function(t){t.exports=function(t,e){var n;if(t){if("string"==typeof t)return Dl(t,e);var r=Ml(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Fl(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dl(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Ll);var Ol=r((function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Ol);var Rl=n(r((function(t){t.exports=function(t,e){return Il(t)||Nl(t,e)||Ll(t,e)||Ol()},t.exports.__esModule=!0,t.exports.default=t.exports}))),Ul=il,Pl=Va,Ql=_l.trim,Hl=s.parseInt,Gl=s.Symbol,jl=Gl&&Gl.iterator,Kl=/^[+-]?0x/i,$l=y(Kl.exec),Yl=8!==Hl(gl+"08")||22!==Hl(gl+"0x16")||jl&&!c((function(){Hl(Object(jl))}))?function(t,e){var n=Ql(En(t));return Hl(n,e>>>0||($l(Kl,n)?16:10))}:Hl;Wt({global:!0,forced:parseInt!=Yl},{parseInt:Yl});var Vl=R.parseInt,zl={run:function(t){var e,n="<div>".concat(t,"</div>");this.tagParser.formatEngine=this.mdFormatEngine,n=n.replace(/<!--[\s\S]*?-->/g,"");var r=this.htmlParser.parseHtml(n);return r=this.paragraphStyleClear(r),Tl(e=this.$dealHtml(r).replace(/\n{3,}/g,"\n\n\n").replace(/&gt;/g,">").replace(/&lt;/g,"<")).call(e,"\n")},$dealHtml:function(t){for(var e="",n=0;n<t.length;n++){var r=t[n];"tag"===r.type?e=this.$handleTagObject(r,e):"text"===r.type&&r.content.length>0&&(e+=r.content.replace(/&nbsp;/g," ").replace(/[\n]+/g,"\n"))}return e},$handleTagObject:function(t,e){var n,r,i,a=e;if(t.attrs.class&&Ul(n=t.attrs.class).call(n,"mermaid")>=0)try{a+=["\n```",t.attrs["data-type"],"\n",decodeURIComponent(atob(t.attrs["data-code"])),"\n```\n"].join("")}catch(e){a+=["\n```",t.attrs["data-type"],"\n",decodeURIComponent(t.attrs["data-code"]),"\n```\n"].join("")}else if(t.attrs.class&&Ul(r=t.attrs.class).call(r,"mathjax-wrapper")>=0)try{a+=" ".concat(decodeURIComponent(atob(t.attrs["data-source"]))," ")}catch(e){a+=" ".concat(decodeURIComponent(t.attrs["data-source"])," ")}else if(t.attrs["data-control"]&&"tapd-table"===t.attrs["data-control"]){if(a+=["\n```"," tapd-table ",t.attrs["data-size"],"\n"].join(""),t.children[1]&&t.children[1].children[0].content)a+=["\n",t.children[1].children[0].content.replace(/\s+/g,""),"\n```\n"].join("");else a+=["\n",'"工作表":{"数据":{"19::25":" "}} ',"\n```\n"].join("")}else if(t.attrs.class&&Ul(i=t.attrs.class).call(i,"ch-icon")>=0){var o;Ul(o=t.attrs.class).call(o,"ch-icon-check")>=0?a+="[x]":a+="[ ]"}else a+=this.$dealTag(t);return a},$dealTag:function(t){var e="";return t.children&&(e=this.$dealHtml(t.children)),"style"===t.name?"":"code"===t.name||"pre"===t.name?this.tagParser.codeParser(t,this.$dealCodeTag(t)):"function"==typeof this.tagParser["".concat(t.name,"Parser")]?this.tagParser["".concat(t.name,"Parser")](t,e):e},$dealCodeTag:function(t){if(t.children.length<0)return"";for(var e="",n=0;n<t.children.length;n++){var r=t.children[n];"text"!==r.type?("li"===r.name&&(e+="\n"),"br"===r.name&&(e+="\n"),e+=this.$dealCodeTag(r)):e+=r.content.replace(/&lt;/g,"<").replace(/&gt;/g,">")}return e},htmlParser:{attrRE:/([\w-]+)|['"]{1}([^'"]*)['"]{1}/g,lookup:{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,video:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},tagRE:/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g,empty:Pl?Pl(null):{},parseTags:function(t){var e,n=this,r=0,i={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return t.replace(this.attrRE,(function(a){r%2?e=a:0===r?((n.lookup[a]||"/"===t.charAt(t.length-2))&&(i.voidElement=!0),i.name=a):i.attrs[e]=a.replace(/['"]/g,""),r+=1})),i},parseHtml:function(t,e){var n=this,r=e||{};r.components||(r.components=this.empty);var i,a=[],o=-1,s=[],c={},l=!1;return t.replace(this.tagRE,(function(e,A){if(l){if(e!=="</".concat(i.name,">"))return;l=!1}var u,h="/"!==e.charAt(1),f=A+e.length,d=t.charAt(f);h&&(o+=1,"tag"===(i=n.parseTags(e)).type&&r.components[i.name]&&(i.type="component",l=!0),i.voidElement||l||!d||"<"===d||i.children.push({type:"text",content:wn(t).call(t,f,Ul(t).call(t,"<",f))}),c[i.tagName]=i,0===o&&a.push(i),(u=s[o-1])&&u.children.push(i),s[o]=i),h&&!i.voidElement||(o-=1,!l&&"<"!==d&&d&&s[o]&&s[o].children.push({type:"text",content:wn(t).call(t,f,Ul(t).call(t,"<",f))}))})),a}},tagParser:{formatEngine:{},pParser:function(t,e){var n=e.replace(/\t/g,"");return/\n$/.test(n)?n:"".concat(n,"\n")},divParser:function(t,e){var n=e.replace(/\t/g,"");return/\n$/.test(n)?n:"".concat(n,"\n")},spanParser:function(t,e){var n=e.replace(/\t/g,"");return t.attrs&&t.attrs.style,n},codeParser:function(t,e){return this.formatEngine.convertCode(e)},brParser:function(t,e){return this.formatEngine.convertBr(e,"\n")},imgParser:function(t,e){return t.attrs&&"tapd-graph"===t.attrs["data-control"]?this.formatEngine.convertGraph(t.attrs.title,t.attrs.src,t.attrs["data-origin-xml"],t):t.attrs&&t.attrs.src?this.formatEngine.convertImg(t.attrs.alt,t.attrs.src):void 0},videoParser:function(t,e){if(t.attrs&&t.attrs.src)return this.formatEngine.convertVideo(e,t.attrs.src,t.attrs.poster,t.attrs.title)},bParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertB(n[i]));return r.join("\n")},iParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertI(n[i]));return r.join("\n")},strikeParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertStrike(n[i]));return r.join("\n")},delParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertDel(n[i]));return r.join("\n")},uParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertU(n[i]));return r.join("\n")},aParser:function(t,e){return t.attrs&&t.attrs.href?this.formatEngine.convertA(e,t.attrs.href):""},supParser:function(t,e){return this.formatEngine.convertSup(e)},subParser:function(t,e){return this.formatEngine.convertSub(e)},tdParser:function(t,e){return this.formatEngine.convertTd(e)},trParser:function(t,e){return this.formatEngine.convertTr(e)},thParser:function(t,e){return this.formatEngine.convertTh(e)},theadParser:function(t,e){return this.formatEngine.convertThead(e)},tableParser:function(t,e){return this.formatEngine.convertTable(e)},liParser:function(t,e){return this.formatEngine.convertLi(e)},ulParser:function(t,e){return this.formatEngine.convertUl(e)},olParser:function(t,e){return this.formatEngine.convertOl(e)},strongParser:function(t,e){return this.formatEngine.convertStrong(e)},hrParser:function(t,e){return this.formatEngine.convertHr(e)},h1Parser:function(t,e){return this.formatEngine.convertH1(e)},h2Parser:function(t,e){return this.formatEngine.convertH2(e)},h3Parser:function(t,e){return this.formatEngine.convertH3(e)},h4Parser:function(t,e){return this.formatEngine.convertH4(e)},h5Parser:function(t,e){return this.formatEngine.convertH5(e)},h6Parser:function(t,e){return this.formatEngine.convertH6(e)},blockquoteParser:function(t,e){return this.formatEngine.convertBlockquote(e.replace(/\n+/g,"\n"))},addressParser:function(t,e){return this.formatEngine.convertAddress(e.replace(/\n+/g,"\n"))},styleParser:{colorAttrParser:function(t){var e=t.match(/color:\s*(#[a-zA-Z0-9]{3,6});/);return e&&e[1]?e[1]:""},sizeAttrParser:function(t){var e=t.match(/font-size:\s*([a-zA-Z0-9-]+?);/);if(e&&e[1]){var n,r=0;if(/[0-9]+px/.test(e[1]))r=Tl(n=e[1].replace(/px/,"")).call(n);else switch(e[1]){case"x-small":r=10;break;case"small":r=12;break;case"medium":r=16;break;case"large":r=18;break;case"x-large":r=24;break;case"xx-large":r=32;break;default:r=""}return r>0?r:""}return""},bgColorAttrParser:function(t){var e=t.match(/background-color:\s*([^;]+?);/);if(e&&e[1]){var n="";if(/rgb\([ 0-9]+,[ 0-9]+,[ 0-9]+\)/.test(e[1])){var r,i,a,o,s,c=e[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(c[1]&&c[2]&&c[3])c[1]=Vl(Tl(r=c[1]).call(r),10),c[2]=Vl(Tl(i=c[2]).call(i),10),c[3]=Vl(Tl(a=c[3]).call(a),10),n=uo(o=uo(s="#".concat(c[1].toString(16))).call(s,c[2].toString(16))).call(o,c[3].toString(16))}else{n=Rl(e,2)[1]}return n}return""}}},mdFormatEngine:{convertColor:function(t,e){var n,r=Tl(t).call(t);return!r||/\n/.test(r)?r:e?uo(n="!!".concat(e," ")).call(n,r,"!!"):r},convertSize:function(t,e){var n,r=Tl(t).call(t);return!r||/\n/.test(r)?r:e?uo(n="!".concat(e," ")).call(n,r,"!"):r},convertBgColor:function(t,e){var n,r=Tl(t).call(t);return!r||/\n/.test(r)?r:e?uo(n="!!!".concat(e," ")).call(n,r,"!!!"):r},convertBr:function(t,e){return t+e},convertCode:function(t){return/\n/.test(t)?"\n```\n".concat(t.replace(/\n+$/,""),"\n```\n"):" `".concat(t.replace(/`/g,"\\`"),"` ")},convertB:function(t){return/^\s*$/.test(t)?"":"**".concat(t,"**")},convertI:function(t){return/^\s*$/.test(t)?"":"*".concat(t,"*")},convertU:function(t){return/^\s*$/.test(t)?"":" /".concat(t,"/ ")},convertImg:function(t,e){var n,r=t&&t.length>0?r:"image";return uo(n="![".concat(r,"](")).call(n,e,")")},convertGraph:function(t,e,n,r){var i,a,o,s=t&&t.length>0?t:"graph",c="";if(r)try{var l,A=r.attrs;Na(l=ha(A)).call(l,(function(t){var e;Object.prototype.hasOwnProperty.call(A,t)&&(Ul(t).call(t,"data-graph-")>=0&&A[t]&&(c+=uo(e=" ".concat(t,"=")).call(e,A[t])))}))}catch(t){}return uo(i=uo(a=uo(o="![".concat(s,"](")).call(o,e,"){data-control=tapd-graph data-origin-xml=")).call(a,n)).call(i,c,"}")},convertVideo:function(t,e,n,r){var i,a,o=r&&r.length>0?r:"video";return uo(i=uo(a="!video[".concat(o,"](")).call(a,e,"){poster=")).call(i,n,"}")},convertA:function(t,e){var n;if(t===e)return"".concat(t," ");var r=Tl(t).call(t);return r?uo(n="[".concat(r,"](")).call(n,e,")"):r},convertSup:function(t){return"^".concat(Tl(t).call(t).replace(/\^/g,"\\^"),"^")},convertSub:function(t){return"^^".concat(Tl(t).call(t).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(t){return"~|".concat(Tl(t).call(t).replace(/\n/g,"<br>")," ~|")},convertTh:function(t){return"~|".concat(Tl(t).call(t).replace(/\n/g,"<br>")," ~|")},convertTr:function(t){return"".concat(t,"\n")},convertThead:function(t){return"".concat(t.replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"|:--|\n")},convertTable:function(t){var e="\n".concat(t.replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n");return/\|:--\|/.test(e)?e:"\n| |\n|:--|".concat(e)},convertLi:function(t){return"- ".concat(t.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(t){return"\n\n".concat(t,"\n\n")},convertOl:function(t){for(var e=t.split("\n"),n=1,r=0;r<e.length;r++)/^- /.test(e[r])&&(e[r]=e[r].replace(/^- /,"".concat(n,". ")),n+=1);var i=e.join("\n");return"\n\n".concat(i,"\n\n")},convertStrong:function(t){return/^\s*$/.test(t)?"":"**".concat(t,"**")},convertStrike:function(t){return/^\s*$/.test(t)?"":"~~".concat(t,"~~")},convertDel:function(t){return/^\s*$/.test(t)?"":"~~".concat(t,"~~")},convertHr:function(t){return/^\s*$/.test(t)?"\n\n----\n":"\n\n----\n".concat(t)},convertH1:function(t){return"# ".concat(Tl(t).call(t).replace(/\n+$/,""),"\n\n")},convertH2:function(t){return"## ".concat(Tl(t).call(t).replace(/\n+$/,""),"\n\n")},convertH3:function(t){return"### ".concat(Tl(t).call(t).replace(/\n+$/,""),"\n\n")},convertH4:function(t){return"#### ".concat(Tl(t).call(t).replace(/\n+$/,""),"\n\n")},convertH5:function(t){return"##### ".concat(Tl(t).call(t).replace(/\n+$/,""),"\n\n")},convertH6:function(t){return"###### ".concat(Tl(t).call(t).replace(/\n+$/,""),"\n\n")},convertBlockquote:function(t){return"\n>".concat(Tl(t).call(t),"\n\n")},convertAddress:function(t){return"\n>".concat(Tl(t).call(t),"\n\n")}},paragraphStyleClear:function(t){for(var e=0;e<t[0].children.length;e++){for(var n=[t[0].children[e]],r=[];n.length;){var i=n.shift(),a=this.notEmptyTagCount(i);if(1===a)r.push(i);else if(a>1)for(var o=0;o<i.children.length;o++)n.push(i.children[o]);else 1===r.length&&this.clearChildColorAttrs(r.pop()),r=[]}1===r.length&&this.clearChildColorAttrs(r.pop())}return t},notEmptyTagCount:function(t){if(!t||t.voidElement||"tag"===t.type&&!t.children.length||"text"===t.type&&!t.content.replace(/(\r|\n|\s)+/g,""))return 0;if(t.children&&t.children.length){for(var e=0,n=0;n<t.children.length;n++)e+=this.notEmptyTagCount(t.children[n]);return e}return 1},clearChildColorAttrs:function(t){var e=this;this.forEachHtmlParsedItems(t,(function(t){e.clearSelfNodeColorAttrs(t)}))},clearSelfNodeColorAttrs:function(t){if(t.attrs&&t.attrs.style){for(var e=t.attrs.style.split(";"),n=[],r=0;r<e.length;r++){var i;e[r]&&-1===Ul(i=e[r]).call(i,"color")&&n.push(e[r])}n.length?t.attrs.style="".concat(n.join(";"),";"):delete t.attrs.style}},forEachHtmlParsedItems:function(t,e){if(t&&(e(t),t.children&&t.children.length))for(var n=0;n<t.children.length;n++)this.forEachHtmlParsedItems(t.children[n],e)}},Wl=dl,ql=n(r((function(t){function e(){return t.exports=e=Wl||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(this,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}))),Xl={showSwitchBtnAfterPasteHtml:function(t,e,n,r){Tl(n).call(n)!==Tl(r).call(r)&&(this.init(t,e,n,r),this.setSelection(),this.bindListener(),this.initBubble(),this.showBubble(),"text"===this.getTypeFromLocalStorage()&&this.switchTextClick())},init:function(t,e,n,r){this.html=n,this.md=r,this.codemirror=e,this.currentCursor=t},getTypeFromLocalStorage:function(){return localStorage&&localStorage.getItem("cherry-paste-type")||"md"},setTypeToLocalStorage:function(t){localStorage&&localStorage.setItem("cherry-paste-type",t)},setSelection:function(){var t=this.codemirror.getCursor(),e=ql({},t),n=this.currentCursor;this.codemirror.setSelection(n,e)},bindListener:function(){var t=this;if(this.hasBindListener)return!0;this.hasBindListener=!0,this.codemirror.on("beforeSelectionChange",(function(e,n){t.hideBubble()})),this.codemirror.on("beforeChange",(function(e,n){t.hideBubble()})),this.codemirror.on("scroll",(function(e){t.updatePositionWhenScroll()}))},hideBubble:function(){if(this.noHide)return!0;"none"!==this.bubbleDom.style.display&&(this.bubbleDom.style.display="none")},updatePositionWhenScroll:function(){"block"===this.bubbleDom.style.display&&(this.bubbleDom.style.marginTop="".concat(this.bubbleDom.dataset.scrollTop-this.getScrollTop(),"px"))},getScrollTop:function(){return this.codemirror.getScrollInfo().top},showBubble:function(){var t=this.getLastSelectedPosition(),e=t.width,n=t.top;"block"!==this.bubbleDom.style.display&&(this.bubbleDom.style.display="block",this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=this.getScrollTop());var r=this.codemirror.getWrapperElement().querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(),i=r.left,a=r.width+i;this.bubbleDom.style.top="".concat(n,"px");var o=e-this.bubbleDom.offsetWidth/2;o<i?o=i:o+this.bubbleDom.offsetWidth>a&&(o=a-this.bubbleDom.offsetWidth)},initBubble:function(){var t,e;if(this.bubbleDom)return this.bubbleDom.setAttribute("data-type","md"),!0;var n=document.createElement("div");n.className="cherry-bubble cherry-switch-paste";var r=document.createElement("span");r.innerText="TEXT",r.title="粘贴为纯文本格式",r.className="cherry-toolbar-button cherry-text-btn";var i=document.createElement("span");i.innerText="Markdown",i.title="粘贴为markdown格式",i.className="cherry-toolbar-button cherry-md-btn";var a=document.createElement("span");a.className="switch-btn--bg",this.bubbleDom=n,this.switchText=r,this.switchMd=i,this.switchBG=a,this.bubbleDom.appendChild(r),this.bubbleDom.appendChild(i),this.bubbleDom.appendChild(a),this.bubbleDom.setAttribute("data-type","md"),this.codemirror.getWrapperElement().appendChild(this.bubbleDom),this.switchMd.addEventListener("click",go(t=this.switchMDClick).call(t,this)),this.switchText.addEventListener("click",go(e=this.switchTextClick).call(e,this))},switchMDClick:function(t){this.setTypeToLocalStorage("md"),"md"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","md"),this.codemirror.doc.replaceSelection(this.md),this.setSelection(),this.showBubble(),this.noHide=!1)},switchTextClick:function(t){this.setTypeToLocalStorage("text"),"text"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","text"),this.codemirror.doc.replaceSelection(this.html),this.setSelection(),this.showBubble(),this.noHide=!1)},getLastSelectedPosition:function(){var t=this.codemirror.getWrapperElement().getElementsByClassName("CodeMirror-selected"),e=0,n=0;if("object"!==no(t)||t.length<=0)return this.hideBubble(),{};for(var r=0;r<t.length;r++){var i=t[r].getBoundingClientRect(),a=i.left+i.width/2,o=i.top+i.height;o>n&&a>=e&&(n=o),a>e&&(e=a)}return{width:e,top:n}}};function Jl(t,e,n,r){return t.addEventListener?(t.addEventListener(e,n,r),!0):t.attachEvent?t.attachEvent("on".concat(e),n):void(t["on".concat(e)]=n)}function Zl(t,e,n,r){if(t.removeEventListener)t.removeEventListener(e,n,r);else{if(t.detachEvent)return t.detachEvent("on".concat(e),n);t["on".concat(e)]=null}}var tA=new Proxy({},{get:function(t,e,n){return function(){}}}),eA=["codemirror"],nA=function(){function t(e){var n=this;Ha(this,t),co(this,"onScroll",(function(t){if(n.disableScrollListener)n.disableScrollListener=!1;else{var e=t.getScrollerElement();if(e.scrollTop<=0)n.previewer.scrollToLineNum(0);else if(e.scrollTop+e.clientHeight>=e.scrollHeight-20)n.previewer.scrollToLineNum(null);else{var r=t.getScrollInfo().top,i=t.lineAtHeight(r,"local"),a=t.charCoords({line:i,ch:0},"local"),o=t.getLineHandle(i).height,s=100*(r-(a.bottom-o))/o/100;n.previewer.scrollToLineNum(i+1,s)}}})),co(this,"onMouseDown",(function(t,e){var r=t.getCursor().line,i=Math.abs(e.y-t.getWrapperElement().getBoundingClientRect().y);n.previewer.scrollToLineNumWithOffset(r+1,i)})),this.options={id:"code",editorDom:document.createElement("div"),wrapperDom:null,autoScrollByCursor:!0,convertWhenPaste:!0,codemirror:{lineNumbers:!1,cursorHeight:.85,indentUnit:4,tabSize:4,mode:"gfm",lineWrapping:!0,indentWithTabs:!0,autofocus:!0,theme:"default",autoCloseTags:!0,extraKeys:{Enter:"newlineAndIndentContinueMarkdownList"},matchTags:{bothTags:!0},placeholder:""},toolbars:{},onKeydown:function(){},onChange:function(){},onFocus:function(){},onBlur:function(){},onPaste:this.onPaste,onScroll:this.onScroll},this.animation={};var r=e.codemirror,i=cl(e,eA);r&&pl(this.options.codemirror,r),pl(this.options,i),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId()}return ja(t,[{key:"onPaste",value:function(t,e){var n=t.clipboardData;n?this.handlePaste(t,n,e):(n=window.clipboardData,this.handlePaste(t,n,e))}},{key:"handlePaste",value:function(t,e,n){for(var r=e.items,i=e.types||[],a=n.getDoc(),o=0;o<i.length;o++){var s=r[o];if(s&&"file"===s.kind&&s.type.match(/^image\//i)){var c=s.getAsFile();this.options.fileUpload(c,(function(t){"string"==typeof t&&a.replaceSelection("![enter image description here](".concat(t,")"))})),t.preventDefault()}}var l=e.getData("text/plain"),A=e.getData("Text/Html");if(!A||!this.options.convertWhenPaste)return!0;var u=A.replace(/<(html|head|body|!)/g,"");if(u.match(/<[a-zA-Z]/g).length<=1&&/<img/.test(u))return!0;var h=document.createElement("DIV");h.innerHTML=A,A=h.innerHTML;var f=zl.run(A);if("string"==typeof f&&Tl(f).call(f).length>0){var d=n.listSelections();if(n.getSelections().length<=1&&d[0]&&d[0].anchor){var p={};p.line=d[0].anchor.line,p.ch=d[0].anchor.ch,a.replaceSelection(f),Xl.showSwitchBtnAfterPasteHtml(p,n,l,f)}else a.replaceSelection(f);t.preventDefault()}h=null}},{key:"init",value:function(t){var e=this,n=this.options.editorDom.querySelector("#".concat(this.options.id));if(!(n instanceof HTMLTextAreaElement))throw new Error("The specific element is not a textarea.");var r=kl.fromTextArea(n,this.options.codemirror);r.addOverlay({name:"invisibles",token:function(t){var e,n=0,r=" "===t.peek();if(r){for(;r&&n<Number.MAX_VALUE;)n+=1,t.next(),r=" "===t.peek();e="whitespace whitespace-".concat(n)}else{for(;!t.eol();)t.next();e=""}return e}}),this.previewer=t,this.disableScrollListener=!1,this.options.value&&r.setOption("value",this.options.value),r.on("blur",(function(t,n){e.options.onBlur(n,t)})),r.on("focus",(function(t,n){e.options.onFocus(n,t)})),r.on("change",(function(t,n){e.options.onChange(n,t)})),r.on("keydown",(function(t,n){e.options.onKeydown(n,t)})),r.on("paste",(function(t,n){e.options.onPaste.call(e,n,t)})),this.options.autoScrollByCursor&&r.on("mousedown",(function(t,n){xo((function(){e.onMouseDown(t,n)}))})),r.on("drop",(function(t,n){var r=n.dataTransfer.files||[];if(r&&r.length>0)for(var i=function(n,i){var a=r[n],s=a.type||"";if(""===s||/^text/i.test(s))return o=i,"continue";var c=a.name&&a.name.replace(/\.[^.]+$/,"")||"enter description here",l=/^image/i.test(a.type);e.options.fileUpload(a,(function(e){var n,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;if("string"==typeof e){t.setSelection(t.getCursor());var A=s?uo(n="![".concat(a,"](")).call(n,e,")"):uo(r="[".concat(a,"](")).call(r,e,")");A=i?"\n".concat(A):A,i=!0,t.replaceSelection(A)}else o=i})),o=i},a=0,o=!1;a<r.length;a++)i(a,o)})),r.on("scroll",(function(t){e.options.onScroll(t)})),Jl(this.getEditorDom(),"wheel",(function(){e.disableScrollListener=!1,cancelAnimationFrame(e.animation.timer),e.animation.timer=0}),!1),this.editor=r}},{key:"jumpToLine",value:function(t,e,n){var r=this;if(null===t)return cancelAnimationFrame(this.animation.timer),this.disableScrollListener=!0,this.editor.scrollIntoView({line:this.editor.lineCount()-1,ch:1}),void(this.animation.timer=0);var i=this.editor.charCoords({line:t,ch:0},"local"),a=i.top;if(a+=(this.editor.charCoords({line:t+e,ch:0},"local").top-i.top)*n,this.animation.destinationTop=Math.ceil(a-15),!this.animation.timer){this.animation.timer=requestAnimationFrame((function t(){var e=r.editor.getScrollInfo().top,n=r.animation.destinationTop-e,i=Math.ceil(Math.min(Math.abs(n),Math.max(1,Math.abs(n)/(100/16.7))));if(n>0){if(e>=r.animation.destinationTop)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,e+i)}else{if(!(n<0))return void(r.animation.timer=0);if(e<=r.animation.destinationTop||e<=0)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,e-i)}e===r.editor.getScrollInfo().top||i>=Math.abs(n)?r.animation.timer=0:r.animation.timer=requestAnimationFrame(t)}))}}},{key:"scrollToLineNum",value:function(t,e,n){if(null!==t){var r=Math.max(0,t);this.jumpToLine(r,e,n),tA.log("滚动预览区域左侧应scroll to ",r)}else this.jumpToLine(null)}},{key:"getEditorDom",value:function(){return this.options.editorDom}},{key:"addListener",value:function(t,e){this.editor.on(t,e)}}]),t}(),rA=si.findIndex,iA=!0;"findIndex"in[]&&Array(1).findIndex((function(){iA=!1})),Wt({target:"Array",proto:!0,forced:iA},{findIndex:function(t){return rA(this,t,arguments.length>1?arguments[1]:void 0)}});var aA=mn("Array").findIndex,oA=Array.prototype,sA=function(t){var e=t.findIndex;return t===oA||Q(oA,t)&&e===oA.findIndex?aA:e},cA=ln("splice"),lA=s.TypeError,AA=Math.max,uA=Math.min;Wt({target:"Array",proto:!0,forced:!cA},{splice:function(t,e){var n,r,i,a,o,s,c=st(this),l=Me(c),A=Se(t,l),u=arguments.length;if(0===u?n=r=0:1===u?(n=0,r=l-A):(n=u-2,r=uA(AA(Be(e),0),l-A)),l+n-r>9007199254740991)throw lA("Maximum allowed length exceeded");for(i=Qr(c,r),a=0;a<r;a++)(o=A+a)in c&&sn(i,a,c[o]);if(i.length=r,n<r){for(a=A;a<l-r;a++)s=a+n,(o=a+r)in c?c[s]=c[o]:delete c[s];for(a=l;a>l-r+n;a--)delete c[a-1]}else if(n>r)for(a=l-r;a>A;a--)s=a+n-1,(o=a+r-1)in c?c[s]=c[o]:delete c[s];for(a=0;a<n;a++)c[a+A]=arguments[a+2];return c.length=l-r+n,i}});var hA=mn("Array").splice,fA=Array.prototype,dA=function(t){var e=t.splice;return t===fA||Q(fA,t)&&e===fA.splice?hA:e},pA=!1,gA={SEN:"sentence",PAR:"paragraph",DEFAULT:"sentence"},mA=function(){function t(e){Ha(this,t),co(this,"$engine",void 0),this.RULE=this.rule(e)}return ja(t,[{key:"getType",value:function(){return this.constructor.HOOK_TYPE||gA.DEFAULT}},{key:"getName",value:function(){return this.constructor.HOOK_NAME}},{key:"beforeMakeHtml",value:function(t){return t}},{key:"makeHtml",value:function(t){return t}},{key:"afterMakeHtml",value:function(t){return t}},{key:"onKeyDown",value:function(t,e){}},{key:"getOnKeyDown",value:function(){return this.onKeyDown||!1}},{key:"getAttributesTest",value:function(){return/^(color|fontSize|font-size|id|title|class|target|underline|line-through|overline|sub|super)$/}},{key:"$testAttributes",value:function(t,e){this.getAttributesTest().test(t)&&e()}},{key:"getAttributes",value:function(t){return{attrs:{},str:t}}},{key:"test",value:function(t){return!!this.RULE.reg&&this.RULE.reg.test(t)}},{key:"rule",value:function(t){return{begin:"",end:"",content:"",reg:new RegExp("")}}},{key:"mounted",value:function(){}}],[{key:"getMathJaxConfig",value:function(){return pA}},{key:"setMathJaxConfig",value:function(t){pA=t}}]),t}();co(mA,"HOOK_NAME","default"),co(mA,"HOOK_TYPE",gA.DEFAULT);var yA=si.map,vA=ln("map");Wt({target:"Array",proto:!0,forced:!vA},{map:function(t){return yA(this,t,arguments.length>1?arguments[1]:void 0)}});var bA=mn("Array").map,wA=Array.prototype,_A=function(t){var e=t.map;return t===wA||Q(wA,t)&&e===wA.map?bA:e};function EA(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!/^\n/.test(t))return e;if(n){var r,i,a,o=null!==(r=null===(i=t.match(/^\n+/g))||void 0===i||null===(a=i[0])||void 0===a?void 0:a.length)&&void 0!==r?r:0;return o>1?"\n\n".concat(e):"\n".concat(e)}return"\n\n".concat(e)}function CA(t,e){var n=(t.match(/\n/g)||[]).length;return""!==t&&(n-=2),n+e}function xA(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var BA=0,TA=function(t){Xa(n,t);var e=xA(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},i=r.needCache,a=r.defaultCache,o=void 0===a?{}:a;return Ha(this,n),(t=e.call(this,{})).needCache=!!i,t.sign="",i&&(t.cache=o||{},t.cacheKey="~~C".concat(BA),BA+=1),t}return ja(n,[{key:"toHtml",value:function(t,e){return t}},{key:"makeHtml",value:function(t,e){return e(t).html}},{key:"afterMakeHtml",value:function(t){return this.restoreCache(t)}},{key:"isContainsCache",value:function(t,e){if(e){var r=/^(\s*~~C\d+I\w+\$\s*)+$/g.test(t),i=new RegExp("~~C\\d+I".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(t);return r&&!i}return new RegExp("~~C\\d+I(?!".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$"),"g").test(t)}},{key:"$splitHtmlByCache",value:function(t){var e=new RegExp("\\n*~~C\\d+I(?!".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$\\n?"),"g");return{caches:t.match(e),contents:t.split(e)}}},{key:"makeExcludingCached",value:function(t,e){for(var n=this.$splitHtmlByCache(t),r=n.caches,i=n.contents,a=_A(i).call(i,e),o="",s=0;s<a.length;s++){var c;if(o+=a[s],r&&r[s])o+=Tl(c=r[s]).call(c)}return o}},{key:"getCacheWithSpace",value:function(t,e){var n,r,i,a,o,s,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=null!==(n=null===(r=e.match(/^\n+/))||void 0===r?void 0:r[0])&&void 0!==n?n:"",A=null!==(i=null===(a=e.match(/\n+$/))||void 0===a?void 0:a[0])&&void 0!==i?i:"";return c?EA(e,t):uo(o=uo(s="".concat(l)).call(s,t)).call(o,A)}},{key:"getLineCount",value:function(t){var e,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=t,s=null!==(e=null===(r=a.match(/^\n+/g))||void 0===r||null===(i=r[0])||void 0===i?void 0:i.length)&&void 0!==e?e:0;s=1===s?1:0,o=o.replace(/^\n+/g,"");var c=new RegExp("\n*~~C\\d+I(?:".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),l=0;return o=o.replace(c,(function(t,e){return l+=Vl(e,10),t.replace(/^\n+/g,"")})),s+l+(o.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var a=r||this.$engine.md5(t);return this.cache[a]={content:t,using:!0},uo(e=uo(n="".concat(this.cacheKey,"I")).call(n,a,"_L")).call(e,i,"$")}}},{key:"popCache",value:function(t){if(this.needCache)return this.cache[t].content||""}},{key:"resetCache",value:function(){if(this.needCache){for(var t=0,e=ha(this.cache);t<e.length;t++){var n=e[t];this.cache[n].using||delete this.cache[n]}for(var r=0,i=ha(this.cache);r<i.length;r++){var a=i[r];this.cache[a].using=!1}}}},{key:"restoreCache",value:function(t){var e,r=this;if(!this.needCache)return t;var i=new RegExp(uo(e="".concat(this.cacheKey,"I((?:")).call(e,n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+)\\$"),"g"),a=t.replace(i,(function(t,e){return r.popCache(e.replace(/_L\d+$/,""))}));return this.resetCache(),a}},{key:"checkCache",value:function(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.sign=this.$engine.md5(t),this.cache[this.sign]?(this.cache[this.sign].using=!0,uo(n=uo(r="".concat(this.cacheKey,"I")).call(r,this.sign,"_L")).call(n,i,"$")):this.toHtml(t,e)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(t){return!1}}]),n}(mA);co(TA,"HOOK_TYPE",gA.PAR),co(TA,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),co(TA,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var kA=c((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),SA=Object.isExtensible,IA=c((function(){SA(1)}))||kA?function(t){return!!O(t)&&((!kA||"ArrayBuffer"!=S(t))&&(!SA||SA(t)))}:SA,NA=!c((function(){return Object.isExtensible(Object.preventExtensions({}))})),MA=r((function(t){var e=$t.f,n=!1,r=ft("meta"),i=0,a=function(t){e(t,r,{value:{objectID:"O"+i++,weakData:{}}})},o=t.exports={enable:function(){o.enable=function(){},n=!0;var t=Vr.f,e=y([].splice),i={};i[r]=1,t(i).length&&(Vr.f=function(n){for(var i=t(n),a=0,o=i.length;a<o;a++)if(i[a]===r){e(i,a,1);break}return i},Wt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Zr.f}))},fastKey:function(t,e){if(!O(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!lt(t,r)){if(!IA(t))return"F";if(!e)return"E";a(t)}return t[r].objectID},getWeakData:function(t,e){if(!lt(t,r)){if(!IA(t))return!0;if(!e)return!1;a(t)}return t[r].weakData},onFreeze:function(t){return NA&&n&&IA(t)&&!lt(t,r)&&a(t),t}};Le[r]=!0})),FA=(MA.enable,MA.fastKey,MA.getWeakData,MA.onFreeze,s.TypeError),DA=function(t,e){this.stopped=t,this.result=e},LA=DA.prototype,OA=function(t,e,n){var r,i,a,o,s,c,l,A=n&&n.that,u=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),d=Rt(e,A),p=function(t){return r&&br(r,"normal",t),new DA(!0,t)},g=function(t){return u?(Ht(t),f?d(t[0],t[1],p):d(t[0],t[1])):f?d(t,p):d(t)};if(h)r=t;else{if(!(i=Br(t)))throw FA(J(t)+" is not iterable");if(Cr(i)){for(a=0,o=Me(t);o>a;a++)if((s=g(t[a]))&&Q(LA,s))return s;return new DA(!1)}r=kr(t,i)}for(c=r.next;!(l=_(c,r)).done;){try{s=g(l.value)}catch(t){br(r,"throw",t)}if("object"==typeof s&&s&&Q(LA,s))return s}return new DA(!1)},RA=s.TypeError,UA=function(t,e){if(Q(e,t))return t;throw RA("Incorrect invocation")},PA=$t.f,QA=si.forEach,HA=Hn.set,GA=Hn.getterFor,jA=function(t,e,n){var r,i=-1!==t.indexOf("Map"),a=-1!==t.indexOf("Weak"),o=i?"set":"add",l=s[t],A=l&&l.prototype,u={};if(b&&v(l)&&(a||A.forEach&&!c((function(){(new l).entries().next()})))){var h=(r=e((function(e,n){HA(UA(e,h),{type:t,collection:new l}),null!=n&&OA(n,e[o],{that:e,AS_ENTRIES:i})}))).prototype,f=GA(t);QA(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in A)||a&&"clear"==t||Yt(h,t,(function(n,r){var i=f(this).collection;if(!e&&a&&!O(n))return"get"==t&&void 0;var o=i[t](0===n?0:n,r);return e?this:o}))})),a||PA(h,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else r=n.getConstructor(e,t,i,o),MA.enable();return ar(r,t,!1,!0),u[t]=r,Wt({global:!0,forced:!0},u),a||n.setStrong(r,t,i),r},KA=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:Xn(t,r,e[r],n);return t},$A=yt("species"),YA=function(t){var e=P(t),n=$t.f;b&&e&&!e[$A]&&n(e,$A,{configurable:!0,get:function(){return this}})},VA=$t.f,zA=MA.fastKey,WA=Hn.set,qA=Hn.getterFor,XA={getConstructor:function(t,e,n,r){var i=t((function(t,i){UA(t,a),WA(t,{type:e,index:qe(null),first:void 0,last:void 0,size:0}),b||(t.size=0),null!=i&&OA(i,t[r],{that:t,AS_ENTRIES:n})})),a=i.prototype,o=qA(e),s=function(t,e,n){var r,i,a=o(t),s=c(t,e);return s?s.value=n:(a.last=s={index:i=zA(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=s),r&&(r.next=s),b?a.size++:t.size++,"F"!==i&&(a.index[i]=s)),t},c=function(t,e){var n,r=o(t),i=zA(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return KA(a,{clear:function(){for(var t=o(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,b?t.size=0:this.size=0},delete:function(t){var e=o(this),n=c(this,t);if(n){var r=n.next,i=n.previous;delete e.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),e.first==n&&(e.first=r),e.last==n&&(e.last=i),b?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=o(this),r=Rt(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),KA(a,n?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),b&&VA(a,"size",{get:function(){return o(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=qA(e),a=qA(r);gr(t,e,(function(t,e){WA(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=a(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),YA(e)}};jA("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),XA);var JA=R.Map,ZA=JA,tu=[].push;Wt({target:"Map",stat:!0,forced:!0},{from:function(t){var e,n,r,i,a=arguments.length,o=a>1?arguments[1]:void 0;return _e(this),(e=void 0!==o)&&tt(o),null==t?new this:(n=[],e?(r=0,i=Rt(o,a>2?arguments[2]:void 0),OA(t,(function(t){_(tu,n,i(t,r++))}))):OA(t,tu,{that:n}),new this(n))}});Wt({target:"Map",stat:!0,forced:!0},{of:function(){return new this(qt(arguments))}});Wt({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=Ht(this),n=tt(e.delete),r=!0,i=0,a=arguments.length;i<a;i++)t=_(n,e,arguments[i]),r=r&&t;return!!r}});Wt({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var n=Ht(this),r=tt(n.get),i=tt(n.has),a=tt(n.set),o=_(i,n,t)&&"update"in e?e.update(_(r,n,t),t,n):e.insert(t,n);return _(a,n,t,o),o}});var eu=kr;Wt({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var e=Ht(this),n=eu(e),r=Rt(t,arguments.length>1?arguments[1]:void 0);return!OA(n,(function(t,n,i){if(!r(n,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var nu=yt("species"),ru=function(t,e){var n,r=Ht(t).constructor;return void 0===r||null==(n=Ht(r)[nu])?e:_e(n)};Wt({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=Ht(this),n=eu(e),r=Rt(t,arguments.length>1?arguments[1]:void 0),i=new(ru(e,P("Map"))),a=tt(i.set);return OA(n,(function(t,n){r(n,t,e)&&_(a,i,t,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}}),Wt({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=Ht(this),n=eu(e),r=Rt(t,arguments.length>1?arguments[1]:void 0);return OA(n,(function(t,n,i){if(r(n,t,e))return i(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Wt({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=Ht(this),n=eu(e),r=Rt(t,arguments.length>1?arguments[1]:void 0);return OA(n,(function(t,n,i){if(r(n,t,e))return i(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var iu=y([].push);Wt({target:"Map",stat:!0,forced:!0},{groupBy:function(t,e){tt(e);var n=kr(t),r=new this,i=tt(r.has),a=tt(r.get),o=tt(r.set);return OA(n,(function(t){var n=e(t);_(i,r,n)?iu(_(a,r,n),t):_(o,r,n,[t])}),{IS_ITERATOR:!0}),r}});Wt({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return OA(eu(Ht(this)),(function(e,n,r){if((i=n)===(a=t)||i!=i&&a!=a)return r();var i,a}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}}),Wt({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var n=new this;tt(e);var r=tt(n.set);return OA(t,(function(t){_(r,n,e(t),t)})),n}}),Wt({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){return OA(eu(Ht(this)),(function(e,n,r){if(n===t)return r(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Wt({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=Ht(this),n=eu(e),r=Rt(t,arguments.length>1?arguments[1]:void 0),i=new(ru(e,P("Map"))),a=tt(i.set);return OA(n,(function(t,n){_(a,i,r(n,t,e),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}}),Wt({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=Ht(this),n=eu(e),r=Rt(t,arguments.length>1?arguments[1]:void 0),i=new(ru(e,P("Map"))),a=tt(i.set);return OA(n,(function(t,n){_(a,i,t,r(n,t,e))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}}),Wt({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=Ht(this),n=tt(e.set),r=arguments.length,i=0;i<r;)OA(arguments[i++],n,{that:e,AS_ENTRIES:!0});return e}});var au=s.TypeError;Wt({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=Ht(this),n=eu(e),r=arguments.length<2,i=r?void 0:arguments[1];if(tt(t),OA(n,(function(n,a){r?(r=!1,i=a):i=t(i,a,n,e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),r)throw au("Reduce of empty map with no initial value");return i}}),Wt({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var e=Ht(this),n=eu(e),r=Rt(t,arguments.length>1?arguments[1]:void 0);return OA(n,(function(t,n,i){if(r(n,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var ou=s.TypeError;Wt({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var n=Ht(this),r=tt(n.get),i=tt(n.has),a=tt(n.set),o=arguments.length;tt(e);var s=_(i,n,t);if(!s&&o<3)throw ou("Updating absent value");var c=s?_(r,n,t):tt(o>2?arguments[2]:void 0)(t,n);return _(a,n,t,e(c,t,n)),n}});var su=s.TypeError,cu=function(t,e){var n,r=Ht(this),i=tt(r.get),a=tt(r.has),o=tt(r.set),s=arguments.length>2?arguments[2]:void 0;if(!v(e)&&!v(s))throw su("At least one callback required");return _(a,r,t)?(n=_(i,r,t),v(e)&&(n=e(n),_(o,r,t,n))):v(s)&&(n=s(),_(o,r,t,n)),n};Wt({target:"Map",proto:!0,real:!0,forced:!0},{upsert:cu}),Wt({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:cu});var lu=ZA,Au=r((function(t){t.exports=function(t){var e;return-1!==al(e=Function.toString.call(t)).call(e,"[native code]")},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Au);var uu=rn,hu=po,fu=r((function(t){t.exports=function(){if("undefined"==typeof Reflect||!uu)return!1;if(uu.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(uu(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports}));n(fu);var du=r((function(t){function e(n,r,i){return fu()?(t.exports=e=uu,t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=e=function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(hu(Function).apply(t,r));return n&&qa(i,n.prototype),i},t.exports.__esModule=!0,t.exports.default=t.exports),e.apply(null,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),pu=n(du),gu=n(r((function(t){function e(n){var r="function"==typeof lu?new lu:void 0;return t.exports=e=function(t){if(null===t||!Au(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return du(t,arguments,oo(this).constructor)}return e.prototype=za(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),qa(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})));function mu(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var yu=function(t,e){if(!la(t)&&no(t)!==e.name.toLowerCase()||!la(t)&&"array"===e.name.toLowerCase())throw new TypeError("parameter given must be ".concat(e.name));return!0},vu=function(t,e){if(!(t instanceof e))throw new Error("the hook does not correctly inherit");return!0},bu=function(t){if("object"!==no(t))throw new Error("the hook must be a instance, not a class");return!0},wu=function(t){Xa(n,t);var e=mu(n);function n(t,r){var i;return Ha(this,n),(i=e.call(this,t)).name="Error",i.stack=i.buildStackTrace(r),i}return ja(n,[{key:"buildStackTrace",value:function(t){var e,n=t&&t.stack?t.stack:"";return uo(e="".concat(this.stack,"\nCaused By: ")).call(e,n)}}]),n}(gu(Error));function _u(t,e,n){var r,i;if(-1===t)tA.warn(uo(r=uo(i="Duplicate hook name [".concat(e.HOOK_NAME,"] found, hook [")).call(i,e.toString(),"] ")).call(r,isNaN(n)?"":"at index [".concat(n,"] "),"will not take effect."));else if(-2===t){var a;tA.warn(uo(a="Hook [".concat(e.toString(),"] ")).call(a,isNaN(n)?"":"at index [".concat(n,"] "),"is not a valid hook, and will not take effect."))}}function Eu(t){return Cu(t)||xu(t)}function Cu(t){return Object.prototype.isPrototypeOf.call(mA,t)}function xu(t){return Object.prototype.isPrototypeOf.call(TA,t)}function Bu(t){return Eu(t)&&!0===(null==t?void 0:t.Cherry$$CUSTOM)}var Tu=function(){function t(e,n){Ha(this,t),this.hookList={},this.hookNameList={},yu(e,Array),this.registerInternalHooks(e,n),this.registerCustomHooks(n.engine.customSyntax,n)}return ja(t,[{key:"registerInternalHooks",value:function(t,e){var n=this;Na(t).call(t,(function(t,r){_u(n.register(t,e),t,r)}))}},{key:"registerCustomHooks",value:function(t,e){var n=this;if(t){var r=ha(t);Na(r).call(r,(function(r){var i,a,o,s,c={},l=t[r];if(Cu(l))a=l;else{if(!Cu(s=null==(o=l)?void 0:o.syntaxClass)&&!xu(s))return;a=l.syntaxClass,c.force=Boolean(l.force),l.before?c.before=l.before:l.after&&(c.after=l.after)}Eu(a)?(Pa(a,"Cherry$$CUSTOM",{enumerable:!1,configurable:!1,writable:!1,value:!0}),i=n.register(a,e,c)):i=-2,_u(i,a,void 0)}))}}},{key:"getHookList",value:function(){return this.hookList}},{key:"getHookNameList",value:function(){return this.hookNameList}},{key:"register",value:function(t,e,n){var r,i,a=e.externals,o=e.engine,s=o.syntax;if(Eu(t)){i=t.HOOK_NAME,r=new t({externals:a,config:(null==s?void 0:s[i])||{},globalConfig:o.global})}else{if("function"!=typeof t)return-2;if(!(r=t(e))||!Eu(r.constructor))return-2;i=r.getName()}if(!1!==s[i]||Bu(t)){var c=r.getType();if(this.hookNameList[i]){var l;if(!Bu(t))return-1;if(!n.force)return-1;var A=this.hookNameList[i].type;this.hookList[A]=va(l=this.hookList[A]).call(l,(function(t){return t.getName()!==i}))}if(this.hookNameList[i]={type:c},this.hookList[c]=this.hookList[c]||[],Bu(t)){var u,h,f,d=-1;if(n.before){if(-1===(d=sA(u=this.hookList[c]).call(u,(function(t){return t.getName()===n.before}))))tA.warn(uo(h="Cannot find hook named [".concat(n.before,"],\n custom hook [")).call(h,i,"] will append to the end of the hooks."))}else if(n.after){var p,g;-1===(d=sA(p=this.hookList[c]).call(p,(function(t){return t.getName()===n.after})))?tA.warn(uo(g="Cannot find hook named [".concat(n.after,"],\n custom hook [")).call(g,i,"] will append to the end of the hooks.")):d+=1}if(d<0||d>=this.hookList[c].length)this.hookList[c].push(r);else dA(f=this.hookList[c]).call(f,d,0,r)}else this.hookList[c].push(r)}}}]),t}();function ku(t,e,n){var r=t.begin+t.content+t.end;return n&&(r=r.replace(/\[\\h\]/g,Iu).replace(/\\h/g,Iu)),new RegExp(r,e||"g")}function Su(){try{return new RegExp("(?<=.)"),!0}catch(t){}return!1}var Iu="[ \\t\\u00a0]",Nu="[\\u0021-\\u002F\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e]",Mu="[\\u0021-\\u002F\\u003a-\\u0040\\u005b\\u005d\\u005e\\u0060\\u007b-\\u007e \\t\\n“”¥。—《》【】「」·]",Fu=new RegExp([/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+/.source,"@",/[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*/.source].join("")),Du=new RegExp("^".concat(Fu.source,"$")),Lu=new RegExp('(?:\\S+(?::\\S*)?@)?(?:(?:1\\d\\d|2[01]\\d|22[0-3]|[1-9]\\d?)(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:1\\d\\d|2[0-4]\\d|25[0-4]|[1-9]\\d?))|(?![-_])(?:[-\\w\\xa1-\\xff]{0,63}[^-_]\\.)+(?:[a-zA-Z\\xa1-\\xff]{2,}\\.?))(?::\\d{2,5})?(?:[/?#][^\\s<>\\x00-\\x1f"\\(\\)]*)?'),Ou=new RegExp("(?:\\/\\/)".concat(Lu.source)),Ru=new RegExp("^".concat(Lu.source,"$")),Uu=new RegExp("^".concat(Ou.source,"$"));function Pu(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n={begin:"(?:^|\\n)(\\n*)",content:["(\\h*\\|[^\\n]+\\|?\\h*)","\\n","(?:(?:\\h*\\|\\h*:?[-]{1,}:?\\h*)+\\|?\\h*)","((\\n\\h*\\|[^\\n]+\\|?\\h*)*)"].join(""),end:"(?=$|\\n)"};n.reg=ku(n,"g",!0);var r={begin:"(?:^|\\n)(\\n*)",content:["(\\|?[^\\n|]+(\\|[^\\n|]+)+\\|?)","\\n","(?:\\|?\\h*:?[-]{1,}:?[\\h]*(?:\\|[\\h]*:?[-]{1,}:?\\h*)+\\|?)","((\\n\\|?([^\\n|]+(\\|[^\\n|]*)+)\\|?)*)"].join(""),end:"(?=$|\\n)"};if(r.reg=ku(r,"g",!0),!1===e)return{strict:n,loose:r};var i=uo(t="(?:".concat(n.begin+n.content+n.end,"|")).call(t,r.begin+r.content+r.end,")");return ku({begin:"",content:i,end:""},"g",!0)}function Qu(){var t={begin:/(?:^|\n)(\n*(?:[^\S\n]*))```([^`]*?)\n/,content:/([\w\W]*?)/,end:/[^\S\n]*```[ \t]*(?=$|\n+)/};return t.reg=new RegExp(t.begin.source+t.content.source+t.end.source,"g"),t}var Hu=r((function(t){t.exports=function(t){if(Sl(t))return Dl(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Hu);var Gu=r((function(t){t.exports=function(t){if(void 0!==Za&&null!=sa(t)||null!=t["@@iterator"])return Fl(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Gu);var ju=r((function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}));n(ju);var Ku=n(r((function(t){t.exports=function(t){return Hu(t)||Gu(t)||Ll(t)||ju()},t.exports.__esModule=!0,t.exports.default=t.exports}))),$u=n(r((function(t){t.exports=function(t){return Il(t)||Gu(t)||Ll(t)||Ol()},t.exports.__esModule=!0,t.exports.default=t.exports})));function Yu(t,e){var n=ha(t);if(da){var r=da(t);e&&(r=va(r).call(r,(function(e){return Ea(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vu(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Na(n=Yu(Object(i),!0)).call(n,(function(e){co(t,e,i[e])})):Da?Oa(t,Da(i)):Na(r=Yu(Object(i))).call(r,(function(e){Pa(t,e,Ea(i,e))}))}return t}function zu(t,e){if(!e.length)return t;var n=[],r=0;return Na(e).call(e,(function(i,a){n.push(wn(t).call(t,r,i.begin)),n.push(i.replacedText),r=i.begin+i.length,a===e.length-1&&n.push(wn(t).call(t,r))})),n.join("")}function Wu(t,e,n){var r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!e)return t;e.lastIndex=0;for(var o=0,s=[];null!==(r=e.exec(t));){var c={begin:r.index,length:r[0].length};if(i&&r.index===o-a){var l,A=r,u=$u(A),h=u[0],f=wn(u).call(u,2);s.push({begin:c.begin+a,length:c.length-a,replacedText:n.apply(void 0,uo(l=[wn(h).call(h,a),""]).call(l,Ku(f)))})}else s.push(Vu(Vu({},c),{},{replacedText:n.apply(void 0,Ku(r))}));o=e.lastIndex,e.lastIndex-=a}return e.lastIndex=0,zu(t,s)}function qu(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Xu=function(t){Xa(n,t);var e=qu(n);function n(){return Ha(this,n),e.apply(this,arguments)}return ja(n,[{key:"toHtml",value:function(t,e,n,r){var i,a;return uo(i=uo(a="".concat(e,'<span style="color:')).call(a,n,'">')).call(i,r,"</span>")}},{key:"makeHtml",value:function(t){return Su()?t.replace(this.RULE.reg,this.toHtml):Wu(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:Su()?"((?<!\\\\))!!":"(^|[^\\\\])!!",end:"!!",content:"(#[0-9a-zA-Z]{3,6}|[a-z]{3,20})[\\s]([\\w\\W]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(mA);function Ju(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(Xu,"HOOK_NAME","fontColor");var Zu=function(t){Xa(n,t);var e=Ju(n);function n(){return Ha(this,n),e.apply(this,arguments)}return ja(n,[{key:"toHtml",value:function(t,e,n,r){var i,a;return uo(i=uo(a="".concat(e,'<span style="background-color:')).call(a,n,'">')).call(i,r,"</span>")}},{key:"makeHtml",value:function(t){return Su()?t.replace(this.RULE.reg,this.toHtml):Wu(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:Su()?"((?<!\\\\))!!!":"(^|[^\\\\])!!!",end:"!!!",content:"(#[0-9a-zA-Z]{3,6}|[a-z]{3,10})[\\s]([\\w\\W]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(mA);function th(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(Zu,"HOOK_NAME","bgColor");var eh=function(t){Xa(n,t);var e=th(n);function n(){return Ha(this,n),e.apply(this,arguments)}return ja(n,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,'$2<span style="font-size:$4px;line-height:1em;">$5</span>$7'):t}},{key:"rule",value:function(){var t={begin:"((^|[^\\\\])(\\!))",end:"(\\!([\\s\\S]|$))",content:"([0-9]{1,2})[\\s]([\\w\\W]*?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(mA);function nh(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(eh,"HOOK_NAME","fontSize");var rh=function(t){Xa(n,t);var e=nh(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},i=r.config;return Ha(this,n),t=e.call(this,{config:i}),i?(t.needWhitespace=!!i.needWhitespace,t):ro(t)}return ja(n,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1<del>$2</del>"):t}},{key:"rule",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},e=t.config,n={};return(n=e.needWhitespace?{begin:"(^|[\\s])\\~T\\~T",end:"\\~T\\~T(?=\\s|$)",content:"([\\w\\W]+?)"}:{begin:"(^|[^\\\\])\\~T\\~T",end:"\\~T\\~T",content:"([\\w\\W]+?)"}).reg=new RegExp(n.begin+n.content+n.end,"g"),n}}]),n}(mA);function ih(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(rh,"HOOK_NAME","strikethrough");var ah=function(t){Xa(n,t);var e=ih(n);function n(){return Ha(this,n),e.apply(this,arguments)}return ja(n,[{key:"toHtml",value:function(t,e,n){var r;return uo(r="".concat(e,"<sup>")).call(r,n,"</sup>")}},{key:"makeHtml",value:function(t){return Su()?t.replace(this.RULE.reg,this.toHtml):Wu(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:Su()?"((?<!\\\\))\\^":"(^|[^\\\\])\\^",end:"\\^",content:"([\\w\\W]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(mA);function oh(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(ah,"HOOK_NAME","sup");var sh=function(t){Xa(n,t);var e=oh(n);function n(){return Ha(this,n),e.apply(this,arguments)}return ja(n,[{key:"toHtml",value:function(t,e,n){var r;return uo(r="".concat(e,"<sub>")).call(r,n,"</sub>")}},{key:"makeHtml",value:function(t){return Su()?t.replace(this.RULE.reg,this.toHtml):Wu(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:Su()?"((?<!\\\\))\\^\\^":"(^|[^\\\\])\\^\\^",end:"\\^\\^",content:"([\\w\\W]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(mA);co(sh,"HOOK_NAME","sub");var ch=r((function(t){var n=function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof a?new a(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++n}),t.__id},clone:function t(e,n){var r,a;switch(n=n||{},i.util.type(e)){case"Object":if(a=i.util.objId(e),n[a])return n[a];for(var o in r={},n[a]=r,e)e.hasOwnProperty(o)&&(r[o]=t(e[o],n));return r;case"Array":return a=i.util.objId(e),n[a]?n[a]:(r=[],n[a]=r,e.forEach((function(e,i){r[i]=t(e,n)})),r);default:return e}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var n in e)if(e[n].src==t)return e[n]}return null}},isActive:function(t,e,n){for(var r="no-"+e;t;){var i=t.classList;if(i.contains(e))return!0;if(i.contains(r))return!1;t=t.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(t,e){var n=i.util.clone(i.languages[t]);for(var r in e)n[r]=e[r];return n},insertBefore:function(t,e,n,r){var a=(r=r||i.languages)[t],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==e)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[t];return r[t]=o,i.languages.DFS(i.languages,(function(e,n){n===l&&e!=t&&(this[e]=o)})),o},DFS:function t(e,n,r,a){a=a||{};var o=i.util.objId;for(var s in e)if(e.hasOwnProperty(s)){n.call(e,s,e[s],r||s);var c=e[s],l=i.util.type(c);"Object"!==l||a[o(c)]?"Array"!==l||a[o(c)]||(a[o(c)]=!0,t(c,n,s,a)):(a[o(c)]=!0,t(c,n,null,a))}}},plugins:{},highlightAll:function(t,e){i.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,n){var r={callback:n,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var a,o=0;a=r.elements[o++];)i.highlightElement(a,!0===e,r.callback)},highlightElement:function(e,n,r){var a=i.util.getLanguage(e),o=i.languages[a];i.util.setLanguage(e,a);var s=e.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&i.util.setLanguage(s,a);var c={element:e,language:a,grammar:o,code:e.textContent};function l(t){c.highlightedCode=t,i.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,i.hooks.run("after-highlight",c),i.hooks.run("complete",c),r&&r.call(c.element)}if(i.hooks.run("before-sanity-check",c),(s=c.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!c.code)return i.hooks.run("complete",c),void(r&&r.call(c.element));if(i.hooks.run("before-highlight",c),c.grammar)if(n&&t.Worker){var A=new Worker(i.filename);A.onmessage=function(t){l(t.data)},A.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language));else l(i.util.encode(c.code))},highlight:function(t,e,n){var r={code:t,grammar:e,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var r in n)e[r]=n[r];delete e.rest}var A=new s;return c(A,A.head,t),function t(e,n,r,s,A,u){for(var h in r)if(r.hasOwnProperty(h)&&r[h]){var f=r[h];f=Array.isArray(f)?f:[f];for(var d=0;d<f.length;++d){if(u&&u.cause==h+","+d)return;var p=f[d],g=p.inside,m=!!p.lookbehind,y=!!p.greedy,v=p.alias;if(y&&!p.pattern.global){var b=p.pattern.toString().match(/[imsuy]*$/)[0];p.pattern=RegExp(p.pattern.source,b+"g")}for(var w=p.pattern||p,_=s.next,E=A;_!==n.tail&&!(u&&E>=u.reach);E+=_.value.length,_=_.next){var C=_.value;if(n.length>e.length)return;if(!(C instanceof a)){var x,B=1;if(y){if(!(x=o(w,E,e,m))||x.index>=e.length)break;var T=x.index,k=x.index+x[0].length,S=E;for(S+=_.value.length;T>=S;)_=_.next,S+=_.value.length;if(S-=_.value.length,E=S,_.value instanceof a)continue;for(var I=_;I!==n.tail&&(S<k||"string"==typeof I.value);I=I.next)B++,S+=I.value.length;B--,C=e.slice(E,S),x.index-=E}else if(!(x=o(w,0,C,m)))continue;T=x.index;var N=x[0],M=C.slice(0,T),F=C.slice(T+N.length),D=E+C.length;u&&D>u.reach&&(u.reach=D);var L=_.prev;M&&(L=c(n,L,M),E+=M.length),l(n,L,B);var O=new a(h,g?i.tokenize(N,g):N,v,N);if(_=c(n,L,O),F&&c(n,_,F),B>1){var R={cause:h+","+d,reach:D};t(e,n,r,_.prev,E,R),u&&R.reach>u.reach&&(u.reach=R.reach)}}}}}}(t,A,e,A.head,0),function(t){var e=[],n=t.head.next;for(;n!==t.tail;)e.push(n.value),n=n.next;return e}(A)},hooks:{all:{},add:function(t,e){var n=i.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=i.hooks.all[t];if(n&&n.length)for(var r,a=0;r=n[a++];)r(e)}},Token:a};function a(t,e,n,r){this.type=t,this.content=e,this.alias=n,this.length=0|(r||"").length}function o(t,e,n,r){t.lastIndex=e;var i=t.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function c(t,e,n){var r=e.next,i={value:n,prev:e,next:r};return e.next=i,r.prev=i,t.length++,i}function l(t,e,n){for(var r=e.next,i=0;i<n&&r!==t.tail;i++)r=r.next;e.next=r,r.prev=e,t.length-=i}if(t.Prism=i,a.stringify=function t(e,n){if("string"==typeof e)return e;if(Array.isArray(e)){var r="";return e.forEach((function(e){r+=t(e,n)})),r}var a={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},o=e.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run("wrap",a);var s="";for(var c in a.attributes)s+=" "+c+'="'+(a.attributes[c]||"").replace(/"/g,"&quot;")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+s+">"+a.content+"</"+a.tag+">"},!t.document)return t.addEventListener?(i.disableWorkerMessageHandler||t.addEventListener("message",(function(e){var n=JSON.parse(e.data),r=n.language,a=n.code,o=n.immediateClose;t.postMessage(i.highlight(a,i.languages[r],r)),o&&t.close()}),!1),i):i;var A=i.util.currentScript();function u(){i.manual||i.highlightAll()}if(A&&(i.filename=A.src,A.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var h=document.readyState;"loading"===h||"interactive"===h&&A&&A.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});t.exports&&(t.exports=n),void 0!==e&&(e.Prism=n)}));Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(t){function e(t,e){return t.replace(/<<(\d+)>>/g,(function(t,n){return"(?:"+e[+n]+")"}))}function n(t,n,r){return RegExp(e(t,n),r||"")}function r(t,e){for(var n=0;n<e;n++)t=t.replace(/<<self>>/g,(function(){return"(?:"+t+")"}));return t.replace(/<<self>>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",a="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function c(t){return"\\b(?:"+t.trim().replace(/ /g,"|")+")\\b"}var l=c(a),A=RegExp(c(i+" "+a+" "+o+" "+s)),u=c(a+" "+o+" "+s),h=c(i+" "+a+" "+s),f=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),d=r(/\((?:[^()]|<<self>>)*\)/.source,2),p=/@?\b[A-Za-z_]\w*\b/.source,g=e(/<<0>>(?:\s*<<1>>)?/.source,[p,f]),m=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,g]),y=/\[\s*(?:,\s*)*\]/.source,v=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,y]),b=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,d,y]),w=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[b]),_=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,m,y]),E={keyword:A,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,x=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[p,_]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[p]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:E},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:E},{pattern:n(/(\bwhere\s+)<<0>>/.source,[p]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:E},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[_,h,p]),inside:E}],keyword:A,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[p]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[p]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[d]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[_,m]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[_]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[p,f]),inside:{function:n(/^<<0>>/.source,[p]),generic:{pattern:RegExp(f),alias:"class-name",inside:E}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,p,_,A.source,d,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,d]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:A,"class-name":{pattern:RegExp(_),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=x+"|"+C,k=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),S=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),I=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,N=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,S]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[I,N]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[I]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[S]),inside:t.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var M=/:[^}\r\n]+/.source,F=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),D=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,M]),L=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),O=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,M]);function R(e,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[e]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,M]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:R(D,F)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[O]),lookbehind:!0,greedy:!0,inside:R(O,L)}],char:{pattern:RegExp(C),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(Prism),function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return e.source}));t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return e.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),function(t){var e=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(Prism),function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach((function(n){var r=e[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})}(Prism),function(t){var e=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,(function(){return e})),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,(function(){return r})),a={pattern:RegExp(r),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(t,e){return t=t.replace(/<OPT>/g,(function(){return i})).replace(/<SP>/g,(function(){return n})),RegExp(t,e)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:s(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[a,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:a,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker}(Prism),Prism.languages.git={comment:/^#.*/m,deleted:/^[-].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},Prism.languages.glsl=Prism.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/}),Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],function(t){var e=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+e.source+")?|"+e.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(t,e){e=(e||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return t}));return RegExp(n,e)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+i+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:e,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(t){return t=t.replace(/<inner>/g,(function(){return e})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(e){["url","bold","italic","strike","code-snippet"].forEach((function(n){e!==n&&(t.languages.markdown[e].inside.content.inside[n]=t.languages.markdown[n])}))})),t.hooks.add("after-tokenize",(function(t){"markdown"!==t.language&&"md"!==t.language||function t(e){if(e&&"string"!=typeof e)for(var n=0,r=e.length;n<r;n++){var i=e[n];if("code"===i.type){var a=i.content[1],o=i.content[3];if(a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content){var s=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),c="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());o.alias?"string"==typeof o.alias?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}else t(i.content)}}(t.tokens)})),t.hooks.add("wrap",(function(e){if("code-block"===e.type){for(var n="",r=0,i=e.classes.length;r<i;r++){var a=e.classes[r],l=/language-(.+)/.exec(a);if(l){n=l[1];break}}var A=t.languages[n];if(A)e.content=t.highlight(function(t){var e=t.replace(o,"");return e=e.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(t,e){var n;if("#"===(e=e.toLowerCase())[0])return n="x"===e[1]?parseInt(e.slice(2),16):Number(e.slice(1)),c(n);var r=s[e];return r||t}))}(e.content),A,n);else if(n&&"none"!==n&&t.plugins.autoloader){var u="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());e.attributes.id=u,t.plugins.autoloader.loadLanguages(n,(function(){var e=document.getElementById(u);e&&(e.innerHTML=t.highlight(e.textContent,t.languages[n],n))}))}}}));var o=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(Prism),Prism.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Prism.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Prism.hooks.add("after-tokenize",(function(t){if("graphql"===t.language)for(var e=t.tokens.filter((function(t){return"string"!=typeof t&&"comment"!==t.type&&"scalar"!==t.type})),n=0;n<e.length;){var r=e[n++];if("keyword"===r.type&&"mutation"===r.content){var i=[];if(u(["definition-mutation","punctuation"])&&"("===A(1).content){n+=2;var a=h(/^\($/,/^\)$/);if(-1===a)continue;for(;n<a;n++){var o=A(0);"variable"===o.type&&(f(o,"variable-input"),i.push(o.content))}n=a+1}if(u(["punctuation","property-query"])&&"{"===A(0).content&&(n++,f(A(0),"property-mutation"),i.length>0)){var s=h(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var l=e[c];"variable"===l.type&&i.indexOf(l.content)>=0&&f(l,"variable-input")}}}}function A(t){return e[n+t]}function u(t,e){e=e||0;for(var n=0;n<t.length;n++){var r=A(n+e);if(!r||r.type!==t[n])return!1}return!0}function h(t,r){for(var i=1,a=n;a<e.length;a++){var o=e[a],s=o.content;if("punctuation"===o.type&&"string"==typeof s)if(t.test(s))i++;else if(r.test(s)&&0===--i)return a}return-1}function f(t,e){var n=t.alias;n?Array.isArray(n)||(t.alias=n=[n]):t.alias=n=[],n.push(e)}})),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var e={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:e,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:e,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:e,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:e,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(Prism),function(t){var e={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",i=RegExp(r+"-"+r),a={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:i,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":e,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":e,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":a}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":a}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(Prism),Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,function(t){function e(t,e){return"___"+t.toUpperCase()+e+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,a){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(i,(function(t){if("function"==typeof a&&!a(t))return t;for(var i,s=o.length;-1!==n.code.indexOf(i=e(r,s));)++s;return o[s]=t,i})),n.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=t.languages[r];var i=0,a=Object.keys(n.tokenStack);!function o(s){for(var c=0;c<s.length&&!(i>=a.length);c++){var l=s[c];if("string"==typeof l||l.content&&"string"==typeof l.content){var A=a[i],u=n.tokenStack[A],h="string"==typeof l?l:l.content,f=e(r,A),d=h.indexOf(f);if(d>-1){++i;var p=h.substring(0,d),g=new t.Token(r,t.tokenize(u,n.grammar),"language-"+r,u),m=h.substring(d+f.length),y=[];p&&y.push.apply(y,o([p])),y.push(g),m&&y.push.apply(y,o([m])),"string"==typeof l?s.splice.apply(s,[c,1].concat(y)):l.content=y}}else l.content&&o(l.content)}return s}(n.tokens)}}}})}(Prism),Prism.languages.less=Prism.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),Prism.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss,function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var e=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,i=e.length;r<i;r++){var a=e[r];a="string"==typeof a?{filter:a,language:a}:a,t.languages[a.language]&&(n["filter-"+a.filter]={pattern:RegExp("((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+".replace("{{filter_name}}",(function(){return a.filter}))),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[a.language,"language-"+a.language],inside:t.languages[a.language]}}})}t.languages.insertBefore("haml","filter",n)}(Prism),function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return e.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json,Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/},function(t){var e=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],n="(?:"+(e=e.map((function(t){return t.replace("$","\\$")}))).join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+n+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"].join("|")+")\\b"),alias:"keyword"}})}(Prism),function(t){var e=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:e}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:e}},punctuation:/[{};]/}}(Prism),Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},Prism.languages.pascal.asm.inside=Prism.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),Prism.languages.objectpascal=Prism.languages.pascal,function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",(function(e){if(/<\?/.test(e.code)){t.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),t.hooks.add("after-tokenize",(function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"php")}))}(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/},Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(t,e){return t=t.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(t,e)}i=a(i).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(t){return t?"string"==typeof t?t:"string"==typeof t.content?t.content:t.content.map(o).join(""):""},s=function(e){for(var n=[],r=0;r<e.length;r++){var i=e[r],a=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:a=!0),(a||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var c=o(i);r<e.length-1&&("string"==typeof e[r+1]||"plain-text"===e[r+1].type)&&(c+=o(e[r+1]),e.splice(r+1,1)),r>0&&("string"==typeof e[r-1]||"plain-text"===e[r-1].type)&&(c=o(e[r-1])+c,e.splice(r-1,1),r--),e[r]=new t.Token("plain-text",c,null,c)}i.content&&"string"!=typeof i.content&&s(i.content)}};t.hooks.add("after-tokenize",(function(t){"jsx"!==t.language&&"tsx"!==t.language||s(t.tokens)}))}(Prism),function(t){var e=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",e),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var n=t.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var e=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:e,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:e,operator:n,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(Prism),function(t){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,o=0;o<i.length;o++)a[i[o]]=t.languages.bash[i[o]];t.languages.shell=t.languages.bash}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(t){t.inside.interpolation.inside=Prism.languages.swift})),Prism.languages["visual-basic"]={comment:{pattern:/(?:[']|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"];var lh=s.RangeError,Ah=String.fromCharCode,uh=String.fromCodePoint,hh=y([].join),fh=!!uh&&1!=uh.length;Wt({target:"String",stat:!0,arity:1,forced:fh},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],Se(e,1114111)!==e)throw lh(e+" is not a valid code point");n[i]=e<65536?Ah(e):Ah(55296+((e-=65536)>>10),e%1024+56320)}return hh(n,"")}});var dh,ph,gh=R.String.fromCodePoint;function mh(t,e){var n=ha(t);if(da){var r=da(t);e&&(r=va(r).call(r,(function(e){return Ea(t,e).enumerable}))),n.push.apply(n,r)}return n}function yh(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Na(n=mh(Object(i),!0)).call(n,(function(e){co(t,e,i[e])})):Da?Oa(t,Da(i)):Na(r=mh(Object(i))).call(r,(function(e){Pa(t,e,Ea(i,e))}))}return t}var vh={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#x27;"},bh={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},wh=yh(yh(yh(yh(yh(yh({},{34:"&quot;",38:"&amp;",39:"&apos;",60:"&lt;",62:"&gt;"}),{192:"&Agrave;",193:"&Aacute;",194:"&Acirc;",195:"&Atilde;",196:"&Auml;",197:"&Aring;",198:"&AElig;",199:"&Ccedil;",200:"&Egrave;",201:"&Eacute;",202:"&Ecirc;",203:"&Euml;",204:"&Igrave;",205:"&Iacute;",206:"&Icirc;",207:"&Iuml;",208:"&ETH;",209:"&Ntilde;",210:"&Ograve;",211:"&Oacute;",212:"&Ocirc;",213:"&Otilde;",214:"&Ouml;",216:"&Oslash;",217:"&Ugrave;",218:"&Uacute;",219:"&Ucirc;",220:"&Uuml;",221:"&Yacute;",222:"&THORN;",223:"&szlig;",224:"&agrave;",225:"&aacute;",226:"&acirc;",227:"&atilde;",228:"&auml;",229:"&aring;",230:"&aelig;",231:"&ccedil;",232:"&egrave;",233:"&eacute;",234:"&ecirc;",235:"&euml;",236:"&igrave;",237:"&iacute;",238:"&icirc;",239:"&iuml;",240:"&eth;",241:"&ntilde;",242:"&ograve;",243:"&oacute;",244:"&ocirc;",245:"&otilde;",246:"&ouml;",248:"&oslash;",249:"&ugrave;",250:"&uacute;",251:"&ucirc;",252:"&uuml;",253:"&yacute;",254:"&thorn;",255:"&yuml;"}),{160:"&nbsp;",161:"&iexcl;",162:"&cent;",163:"&pound;",164:"&curren;",165:"&yen;",166:"&brvbar;",167:"&sect;",168:"&uml;",169:"&copy;",170:"&ordf;",171:"&laquo;",172:"&not;",173:"&shy;",174:"&reg;",175:"&macr;",176:"&deg;",177:"&plusmn;",178:"&sup2;",179:"&sup3;",180:"&acute;",181:"&micro;",182:"&para;",184:"&cedil;",185:"&sup1;",186:"&ordm;",187:"&raquo;",188:"&frac14;",189:"&frac12;",190:"&frac34;",191:"&iquest;",215:"&times;",247:"&divide;"}),{8704:"&forall;",8706:"&part;",8707:"&exist;",8709:"&empty;",8711:"&nabla;",8712:"&isin;",8713:"&notin;",8715:"&ni;",8719:"&prod;",8721:"&sum;",8722:"&minus;",8727:"&lowast;",8730:"&radic;",8733:"&prop;",8734:"&infin;",8736:"&ang;",8743:"&and;",8744:"&or;",8745:"&cap;",8746:"&cup;",8747:"&int;",8756:"&there4;",8764:"&sim;",8773:"&cong;",8776:"&asymp;",8800:"&ne;",8801:"&equiv;",8804:"&le;",8805:"&ge;",8834:"&sub;",8835:"&sup;",8836:"&nsub;",8838:"&sube;",8839:"&supe;",8853:"&oplus;",8855:"&otimes;",8869:"&perp;",8901:"&sdot;"}),{913:"&Alpha;",914:"&Beta;",915:"&Gamma;",916:"&Delta;",917:"&Epsilon;",918:"&Zeta;",919:"&Eta;",920:"&Theta;",921:"&Iota;",922:"&Kappa;",923:"&Lambda;",924:"&Mu;",925:"&Nu;",926:"&Xi;",927:"&Omicron;",928:"&Pi;",929:"&Rho;",931:"&Sigma;",932:"&Tau;",933:"&Upsilon;",934:"&Phi;",935:"&Chi;",936:"&Psi;",937:"&Omega;",945:"&alpha;",946:"&beta;",947:"&gamma;",948:"&delta;",949:"&epsilon;",950:"&zeta;",951:"&eta;",952:"&theta;",953:"&iota;",954:"&kappa;",955:"&lambda;",956:"&mu;",957:"&nu;",958:"&xi;",959:"&omicron;",960:"&pi;",961:"&rho;",962:"&sigmaf;",963:"&sigma;",964:"&tau;",965:"&upsilon;",966:"&phi;",967:"&chi;",968:"&psi;",969:"&omega;",977:"&thetasym;",978:"&upsih;",982:"&piv;"}),{338:"&OElig;",339:"&oelig;",352:"&Scaron;",353:"&scaron;",376:"&Yuml;",402:"&fnof;",710:"&circ;",732:"&tilde;",8194:"&ensp;",8195:"&emsp;",8201:"&thinsp;",8204:"&zwnj;",8205:"&zwj;",8206:"&lrm;",8207:"&rlm;",8211:"&ndash;",8212:"&mdash;",8216:"&lsquo;",8217:"&rsquo;",8218:"&sbquo;",8220:"&ldquo;",8221:"&rdquo;",8222:"&bdquo;",8224:"&dagger;",8225:"&Dagger;",8226:"&bull;",8230:"&hellip;",8240:"&permil;",8242:"&prime;",8243:"&Prime;",8249:"&lsaquo;",8250:"&rsaquo;",8254:"&oline;",8364:"&euro;",8482:"&trade;",8592:"&larr;",8593:"&uarr;",8594:"&rarr;",8595:"&darr;",8596:"&harr;",8629:"&crarr;",8968:"&lceil;",8969:"&rceil;",8970:"&lfloor;",8971:"&rfloor;",9674:"&loz;",9824:"&spades;",9827:"&clubs;",9829:"&hearts;",9830:"&diams;"}),_h=ha(wh),Eh=_A(_h).call(_h,(function(t){return wh[t].replace(/^&(\w+);$/g,(function(t,e){return e.toLowerCase()}))})),Ch=function(t){return"string"!=typeof t||t.length<=0},xh=function(t){try{var e=gh(t);return!Ch(e)}catch(t){return!1}};var Bh=["h1|h2|h3|h4|h5|h6","ul|ol|li|dd|dl|dt","table|thead|tbody|tfoot|col|colgroup|th|td|tr","div|article|section|footer|aside|details|summary|code|audio|video|canvas|figure","address|center|cite|p|pre|blockquote|marquee|caption|figcaption|track|source|output|svg"].join("|"),Th=["span|a|link|b|s|i|del|u|em|strong|sup|sub|kbd","nav|font|bdi|samp|map|area|small|time|bdo|var|wbr|meter|dfn","ruby|rt|rp|mark|q|progress|input|textarea|select|ins"].join("|"),kh=new RegExp(uo(dh=uo(ph="^(".concat(Bh,"|")).call(ph,Th,"|")).call(dh,"br|img|hr",")( |$|/)"),"i");function Sh(t,e){return"string"!=typeof t?"":e?t.replace(/[<>&]/g,(function(t){return vh[t]||t})):t.replace(/[<>&"']/g,(function(t){return vh[t]||t}))}function Ih(t,e){if("string"!=typeof t)return"";var n=Nh(t);return Sh(n=function(t){return"string"!=typeof t?"":t.replace(/&(\w+);?/g,(function(t,e){return bh[e]||t}))}(n),e)}function Nh(t){return t.replace(/&#(\d+);?/g,(function(t,e){return wh[e]||t}))}function Mh(t){var e=function(t){return t.replace(/&#x([0-9a-f]+);?/gi,(function(t,e){var n=Vl("0x".concat(e),16);try{return gh(n)}catch(e){return t}}))}(function(t){return t.replace(/&#(\d+);?/g,(function(t,e){try{return gh(e)}catch(e){return t}}))}(t)).match(/^\s*([\w\W]+?)(?=:)/i);if(!e)return!0;var n=["javascript","data"],r=e[1].replace(/[\s]/g,"");return-1===Ul(n).call(n,r.toLowerCase())}function Fh(t){return encodeURI(t).replace(/[!'()*]/g,(function(t){return"%".concat(t.charCodeAt(0).toString(16))})).replace(/%25/g,"%")}function Dh(t,e){var n=ha(t);if(da){var r=da(t);e&&(r=va(r).call(r,(function(e){return Ea(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lh(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}ch.manual=!0;var Oh={figure:"figure"},Rh=function(t){Xa(n,t);var e=Lh(n);function n(t){t.externals;var r,i,a=t.config;(Ha(this,n),r=e.call(this,{needCache:!0}),n.inlineCodeCache={},r.codeCache={},r.customLang=[],r.customParser={},r.wrap=a.wrap,r.lineNumber=a.lineNumber,r.indentedCodeBlock=void 0===a.indentedCodeBlock||a.indentedCodeBlock,a&&a.customRenderer)&&(r.customLang=_A(i=ha(a.customRenderer)).call(i,(function(t){return t.toLowerCase()})),r.customParser=function(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Na(n=Dh(Object(i),!0)).call(n,(function(e){co(t,e,i[e])})):Da?Oa(t,Da(i)):Na(r=Dh(Object(i))).call(r,(function(e){Pa(t,e,Ea(i,e))}))}return t}({},a.customRenderer));return r.customHighlighter=a.highlighter,r}return ja(n,[{key:"$codeCache",value:function(t,e){return t&&e&&(this.codeCache[t]=e),this.codeCache[t]?this.codeCache[t]:(this.codeCache.length>40&&(this.codeCache.length=0),!1)}},{key:"parseCustomLanguage",value:function(t,e,n){var r,i,a,o,s,c=this.customParser[t];if(!c||"function"!=typeof c.render)return!1;var l=c.render(e,n.sign,this.$engine);if(!l)return!1;var A=Oh[c.constructor.TYPE]||"div";return uo(r=uo(i=uo(a=uo(o=uo(s="<".concat(A,' data-sign="')).call(s,n.sign,'" data-type="')).call(o,t,'" data-lines="')).call(a,n.lines,'">')).call(i,l,"</")).call(r,A,">")}},{key:"fillTag",value:function(t){var e=[];return _A(t).call(t,(function(t){if(!t)return"";for(var n=t;e.length;){var r,i=e.pop();n=uo(r="".concat(i)).call(r,n)}var a=n.match(/<span class="(.+?)">|<\/span>/g),o=0;if(!a)return n;for(;a.length;){var s=a.pop();/<\/span>/.test(s)?o+=1:o?o-=1:e.unshift(s.match(/<span class="(.+?)">/)[0])}for(var c=0;c<e.length;c++)n="".concat(n,"</span>");return n}))}},{key:"renderLineNumber",value:function(t){if(!this.lineNumber)return t;var e=t.split("\n");return e.pop(),e=this.fillTag(e),'<span class="code-line">'.concat(e.join('</span>\n<span class="code-line">'),"</span>")}},{key:"isInternalCustomLangCovered",value:function(t){var e;return-1!==Ul(e=this.customLang).call(e,t)}},{key:"computeLines",value:function(t,e,n){var r=e,i=this.getLineCount(t,r);return{sign:this.$engine.md5(t.replace(/^\n+/,"")+i),lines:i}}},{key:"appendMermaid",value:function(t,e){var n=t,r=e;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var i,a=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=uo(i="graph ".concat(a[1]||"TD","\n")).call(i,n),r="mermaid"}return/^seq$/i.test(r)&&!this.isInternalCustomLangCovered(r)&&(n="sequenceDiagram\n".concat(n),r="mermaid"),"mermaid"===r&&(n=(n=n.replace(/(^[\s]*)stateDiagram-v2\n/,"$1stateDiagram\n")).replace(/(^[\s]*)sequenceDiagram[ \t]*\n[\s]*autonumber[ \t]*\n/,"$1sequenceDiagram\n")),[n,r]}},{key:"wrapCode",value:function(t,e){var n,r;return uo(n=uo(r='<code class="language-'.concat(e)).call(r,this.wrap?" wrap":"",'">')).call(n,t,"</code>")}},{key:"renderCodeBlock",value:function(t,e,n,r){var i,a,o,s=t,c=e;return this.customHighlighter?s=this.customHighlighter(s,c):(c&&ch.languages[c]||(c="javascript"),s=ch.highlight(s,ch.languages[c],c),s=this.renderLineNumber(s)),s=uo(i=uo(a=uo(o='<div data-sign="'.concat(n,'" data-type="codeBlock" data-lines="')).call(o,r,'">\n <div class="cherry-copy-code-block" style="display:none;"><i class="ch-icon ch-icon-copy" title="copy"></i></div>\n <pre class="language-')).call(a,c,'">')).call(i,this.wrapCode(s,c),"</pre>\n </div>")}},{key:"$getIndentedCodeReg",value:function(){return new RegExp("(?:^|\\n\\s*\\n)(?: {4}|\\t)"+"([\\s\\S]+?)"+"(?=$|\\n( {0,3}[^ \\t\\n]|\\n[^ \\t\\n]))","g")}},{key:"$getIndentCodeBlock",value:function(t){var e=this;return this.indentedCodeBlock?this.$recoverCodeInIndent(t).replace(this.$getIndentedCodeReg(),(function(t,n){var r,i,a=(t.match(/\n/g)||[]).length,o=e.$engine.md5(t),s=uo(r=uo(i='<pre data-sign="'.concat(o,'" data-lines="')).call(i,a,'"><code>')).call(r,Sh(n.replace(/\n( {4}|\t)/g,"\n")),"</code></pre>");return EA(t,e.pushCache(s,o,a))})):t}},{key:"$replaceCodeInIndent",value:function(t){return this.indentedCodeBlock?t.replace(this.$getIndentedCodeReg(),(function(t){return t.replace(/`/g,"~~~IndentCode")})):t}},{key:"$recoverCodeInIndent",value:function(t){return this.indentedCodeBlock?t.replace(this.$getIndentedCodeReg(),(function(t){return t.replace(/~~~IndentCode/g,"`")})):t}},{key:"beforeMakeHtml",value:function(t,e,r){var i=this,a=t;a=(a=this.$replaceCodeInIndent(a)).replace(this.RULE.reg,(function(t,e,n,r){var a,o,s,c=r,l=i.computeLines(t,e,r),A=l.sign,u=l.lines,h=i.$codeCache(A);if(h&&""!==h)return i.getCacheWithSpace(i.pushCache(h,A,u),t);c=(c=(c=i.$recoverCodeInIndent(c)).replace(/~D/g,"$")).replace(/~T/g,"~");var f=null!==(a=null==e||null===(o=e.match(/[ ]/g))||void 0===o?void 0:o.length)&&void 0!==a?a:0;if(f>0){var d=new RegExp("(^|\\n)[ ]{1,".concat(f,"}"),"g");c=c.replace(d,"$1")}var p=Tl(n).call(n);if(/^(math|katex|latex)$/i.test(p)&&!i.isInternalCustomLangCovered(p)){var g,m=t.match(/^\s*/g);return uo(g="".concat(m,"~D~D\n")).call(g,c,"~D~D")}var y=i.appendMermaid(c,p),v=Rl(y,2);return c=v[0],p=v[1],-1!==Ul(s=i.customLang).call(s,p.toLowerCase())&&(h=i.parseCustomLanguage(p,c,{lines:u,sign:A}))&&""!==h?(i.$codeCache(A,h),i.getCacheWithSpace(i.pushCache(h,A,u),t)):(c=c.replace(/~X/g,"\\`"),h=(h=i.renderCodeBlock(c,p,A,u)).replace(/\\/g,"\\\\"),h=i.$codeCache(A,h),i.getCacheWithSpace(i.pushCache(h,A,u),t))}));var o=/(`+)(.+?(?:\n.+?)*?)\1/g;return o.test(a)&&(a=(a=(a=a.replace(/\\`/g,"~~not~inlineCode")).replace(o,(function(t,e,r){if("`"===Tl(r).call(r))return t;var a=r.replace(/~~not~inlineCode/g,"\\`");a=(a=i.$replaceSpecialChar(a)).replace(/\\/g,"\\\\");var o="<code>".concat(Sh(a),"</code>"),s=i.$engine.md5(o);return n.inlineCodeCache[s]=o,"~~CODE".concat(s,"$")}))).replace(/~~not~inlineCode/g,"\\`")),a=this.$getIndentCodeBlock(a)}},{key:"makeHtml",value:function(t){return t}},{key:"$replaceSpecialChar",value:function(t){var e=t.replace(/~Q/g,"\\~");return e=(e=(e=(e=e.replace(/~Y/g,"\\!")).replace(/~Z/g,"\\#")).replace(/~&/g,"\\&")).replace(/~K/g,"\\/")}},{key:"rule",value:function(){return Qu()}},{key:"mounted",value:function(t){}}]),n}(TA);function Uh(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(Rh,"HOOK_NAME","codeBlock"),co(Rh,"inlineCodeCache",{});var Ph=function(t){Xa(n,t);var e=Uh(n);function n(){return Ha(this,n),e.apply(this,arguments)}return ja(n,[{key:"makeHtml",value:function(t){return t}},{key:"afterMakeHtml",value:function(t){var e=t;return ha(Rh.inlineCodeCache).length>0&&(e=e.replace(/~~CODE([0-9a-zA-Z]+)\$/g,(function(t,e){return Rh.inlineCodeCache[e]})),Rh.inlineCodeCache={}),e}},{key:"rule",value:function(){var t={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return t.reg=ku(t,"g"),t}}]),n}(TA);co(Ph,"HOOK_NAME","inlineCode");var Qh=r((function(t){!function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],n=0,r=0;n<t.length;n++,r+=8)e[r>>>5]|=t[n]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},bytesToHex:function(t){for(var e=[],n=0;n<t.length;n++)e.push((t[n]>>>4).toString(16)),e.push((15&t[n]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(parseInt(t.substr(n,2),16));return e},bytesToBase64:function(t){for(var n=[],r=0;r<t.length;r+=3)for(var i=t[r]<<16|t[r+1]<<8|t[r+2],a=0;a<4;a++)8*r+6*a<=8*t.length?n.push(e.charAt(i>>>6*(3-a)&63)):n.push("=");return n.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r<t.length;i=++r%4)0!=i&&n.push((e.indexOf(t.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|e.indexOf(t.charAt(r))>>>6-2*i);return n}};t.exports=n}()})),Hh={utf8:{stringToBytes:function(t){return Hh.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(Hh.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e},bytesToString:function(t){for(var e=[],n=0;n<t.length;n++)e.push(String.fromCharCode(t[n]));return e.join("")}}},Gh=Hh,jh=function(t){return null!=t&&(Kh(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Kh(t.slice(0,0))}(t)||!!t._isBuffer)};function Kh(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var $h=r((function(t){!function(){var e=Qh,n=Gh.utf8,r=jh,i=Gh.bin,a=function(t,o){t.constructor==String?t=o&&"binary"===o.encoding?i.stringToBytes(t):n.stringToBytes(t):r(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var s=e.bytesToWords(t),c=8*t.length,l=1732584193,A=-271733879,u=-1732584194,h=271733878,f=0;f<s.length;f++)s[f]=16711935&(s[f]<<8|s[f]>>>24)|4278255360&(s[f]<<24|s[f]>>>8);s[c>>>5]|=128<<c%32,s[14+(c+64>>>9<<4)]=c;var d=a._ff,p=a._gg,g=a._hh,m=a._ii;for(f=0;f<s.length;f+=16){var y=l,v=A,b=u,w=h;l=d(l,A,u,h,s[f+0],7,-680876936),h=d(h,l,A,u,s[f+1],12,-389564586),u=d(u,h,l,A,s[f+2],17,606105819),A=d(A,u,h,l,s[f+3],22,-1044525330),l=d(l,A,u,h,s[f+4],7,-176418897),h=d(h,l,A,u,s[f+5],12,1200080426),u=d(u,h,l,A,s[f+6],17,-1473231341),A=d(A,u,h,l,s[f+7],22,-45705983),l=d(l,A,u,h,s[f+8],7,1770035416),h=d(h,l,A,u,s[f+9],12,-1958414417),u=d(u,h,l,A,s[f+10],17,-42063),A=d(A,u,h,l,s[f+11],22,-1990404162),l=d(l,A,u,h,s[f+12],7,1804603682),h=d(h,l,A,u,s[f+13],12,-40341101),u=d(u,h,l,A,s[f+14],17,-1502002290),l=p(l,A=d(A,u,h,l,s[f+15],22,1236535329),u,h,s[f+1],5,-165796510),h=p(h,l,A,u,s[f+6],9,-1069501632),u=p(u,h,l,A,s[f+11],14,643717713),A=p(A,u,h,l,s[f+0],20,-373897302),l=p(l,A,u,h,s[f+5],5,-701558691),h=p(h,l,A,u,s[f+10],9,38016083),u=p(u,h,l,A,s[f+15],14,-660478335),A=p(A,u,h,l,s[f+4],20,-405537848),l=p(l,A,u,h,s[f+9],5,568446438),h=p(h,l,A,u,s[f+14],9,-1019803690),u=p(u,h,l,A,s[f+3],14,-187363961),A=p(A,u,h,l,s[f+8],20,1163531501),l=p(l,A,u,h,s[f+13],5,-1444681467),h=p(h,l,A,u,s[f+2],9,-51403784),u=p(u,h,l,A,s[f+7],14,1735328473),l=g(l,A=p(A,u,h,l,s[f+12],20,-1926607734),u,h,s[f+5],4,-378558),h=g(h,l,A,u,s[f+8],11,-2022574463),u=g(u,h,l,A,s[f+11],16,1839030562),A=g(A,u,h,l,s[f+14],23,-35309556),l=g(l,A,u,h,s[f+1],4,-1530992060),h=g(h,l,A,u,s[f+4],11,1272893353),u=g(u,h,l,A,s[f+7],16,-155497632),A=g(A,u,h,l,s[f+10],23,-1094730640),l=g(l,A,u,h,s[f+13],4,681279174),h=g(h,l,A,u,s[f+0],11,-358537222),u=g(u,h,l,A,s[f+3],16,-722521979),A=g(A,u,h,l,s[f+6],23,76029189),l=g(l,A,u,h,s[f+9],4,-640364487),h=g(h,l,A,u,s[f+12],11,-421815835),u=g(u,h,l,A,s[f+15],16,530742520),l=m(l,A=g(A,u,h,l,s[f+2],23,-995338651),u,h,s[f+0],6,-198630844),h=m(h,l,A,u,s[f+7],10,1126891415),u=m(u,h,l,A,s[f+14],15,-1416354905),A=m(A,u,h,l,s[f+5],21,-57434055),l=m(l,A,u,h,s[f+12],6,1700485571),h=m(h,l,A,u,s[f+3],10,-1894986606),u=m(u,h,l,A,s[f+10],15,-1051523),A=m(A,u,h,l,s[f+1],21,-2054922799),l=m(l,A,u,h,s[f+8],6,1873313359),h=m(h,l,A,u,s[f+15],10,-30611744),u=m(u,h,l,A,s[f+6],15,-1560198380),A=m(A,u,h,l,s[f+13],21,1309151649),l=m(l,A,u,h,s[f+4],6,-145523070),h=m(h,l,A,u,s[f+11],10,-1120210379),u=m(u,h,l,A,s[f+2],15,718787259),A=m(A,u,h,l,s[f+9],21,-343485551),l=l+y>>>0,A=A+v>>>0,u=u+b>>>0,h=h+w>>>0}return e.endian([l,A,u,h])};a._ff=function(t,e,n,r,i,a,o){var s=t+(e&n|~e&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+e},a._gg=function(t,e,n,r,i,a,o){var s=t+(e&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+e},a._hh=function(t,e,n,r,i,a,o){var s=t+(e^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+e},a._ii=function(t,e,n,r,i,a,o){var s=t+(n^(e|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+e},a._blocksize=16,a._digestsize=16,t.exports=function(t,n){if(null==t)throw new Error("Illegal argument "+t);var r=e.wordsToBytes(a(t,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):e.bytesToHex(r)}}()})),Yh={},Vh=/^cherry-inner:\/\/([0-9a-f]+)$/i;var zh=function(){function t(){Ha(this,t)}return ja(t,null,[{key:"isInnerLink",value:function(t){return Vh.test(t)}},{key:"set",value:function(t){var e=$h(t);return Yh[e]=t,"cherry-inner://".concat(e)}},{key:"get",value:function(t){var e,n=null!==(e=t.match(Vh))&&void 0!==e?e:[],r=Rl(n,2)[1];if(r)return Yh[r]}},{key:"replace",value:function(t,e){var n,r=null!==(n=t.match(Vh))&&void 0!==n?n:[],i=Rl(r,2)[1];if(i)return Yh[i]=e,t}},{key:"restoreAll",value:function(e){return e.replace(/cherry-inner:\/\/([0-9a-f]+)/gi,(function(e){return t.get(e)||e}))}},{key:"clear",value:function(){Yh={}}}]),t}();function Wh(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var qh=function(t){Xa(n,t);var e=Wh(n);function n(t){var r,i=t.config,a=t.globalConfig;return Ha(this,n),(r=e.call(this,{config:i})).urlProcessor=a.urlProcessor,r.openNewPage=i.openNewPage,r}return ja(n,[{key:"beforeMakeHtml",value:function(t){return t.replace(this.RULE.reg,(function(t){return t.replace(/~D/g,"~1D")}))}},{key:"checkBrackets",value:function(t){for(var e=[],n="[".concat(t,"]"),r=function(t){return 1&wn(n).call(n,0,t).match(/\\*$/)[0].length},i=n.length-1;n[i]&&(i!==n.length-1||!r(i));i--)if("]"!==n[i]||r(i)||e.push("]"),"["===n[i]&&!r(i)&&(e.pop(),!e.length))return{isValid:!0,coreText:wn(n).call(n,i+1,n.length-1),extraLeadingChar:wn(n).call(n,0,i)};return{isValid:!1,coreText:t,extraLeadingChar:""}}},{key:"toHtml",value:function(t,e,n,r,i,a,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return t;if("url"===s){var l,A=this.checkBrackets(n),u=A.isValid,h=A.coreText,f=A.extraLeadingChar;if(!u)return t;c=i&&""!==Tl(i).call(i)?' title="'.concat(Sh(i.replace(/["']/g,"")),'"'):"",o?c+=' target="'.concat(o.replace(/{target\s*=\s*(.*?)}/,"$1"),'"'):this.openNewPage&&(c+=' target="_blank"');var d,p,g,m=Tl(r).call(r).replace(/~1D/g,"~D"),y=h.replace(/~1D/g,"~D");return Mh(m)?(m=Fh(m=this.urlProcessor(m,"link")),uo(d=uo(p=uo(g="".concat(e+f,'<a href="')).call(g,zh.set(m),'" rel="nofollow"')).call(p,c,">")).call(d,y,"</a>")):uo(l="".concat(e+f,"<span>")).call(l,n,"</span>")}return t}},{key:"toStdMarkdown",value:function(t){return t}},{key:"makeHtml",value:function(t){var e,n;return this.test(t)?Su()?t.replace(this.RULE.reg,go(n=this.toHtml).call(n,this)):Wu(t,this.RULE.reg,go(e=this.toHtml).call(e,this),!0,1):t}},{key:"rule",value:function(){var t={begin:Su()?"((?<!\\\\))":"(^|[^\\\\])",content:["\\[([^\\n]+?)\\]","[ \\t]*","".concat("(?:\\(([^\\s)]+)(?:[ \\t]((?:\".*?\")|(?:'.*?')))?\\)|\\[(").concat("(?:[^\\n]*?\\S[^\\n]*?)",")\\]")+")","(\\{target\\s*=\\s*(_blank|_parent|_self|_top)\\})?"].join(""),end:""};return t.reg=ku(t,"g"),t}}]),n}(mA);co(qh,"HOOK_NAME","link");var Xh=s.RangeError;Wt({target:"String",proto:!0},{repeat:function(t){var e=En(D(this)),n="",r=Be(t);if(r<0||r==1/0)throw Xh("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}});var Jh=mn("String").repeat,Zh=String.prototype,tf=function(t){var e=t.repeat;return"string"==typeof t||t===Zh||Q(Zh,t)&&e===Zh.repeat?Jh:e};function ef(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var nf=function(t){Xa(n,t);var e=ef(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},i=r.config;return Ha(this,n),t=e.call(this,{config:i}),i?(t.allowWhitespace=!!i.allowWhitespace,t):ro(t)}return ja(n,[{key:"makeHtml",value:function(t,e){var n=function(t,n,r,i){var a,o,s,c,l,A=r.length%2==1?"em":"strong",u=Math.floor(r.length/2),h=tf(a="<strong>").call(a,u),f=tf(o="</strong>").call(o,u);return"em"===A&&(h+="<em>",f="</em>".concat(f)),uo(s=uo(c=uo(l="".concat(n)).call(l,h)).call(c,e(i).html.replace(/_/g,"~U"))).call(s,f)},r=t;return(r=(r=this.allowWhitespace?(r=(r=r.replace(/(^|\n[\s]*)(\*)([^\s*](?:.*?)(?:(?:\n.*?)*?))\*/g,n)).replace(/(^|\n[\s]*)(\*{2,})((?:.*?)(?:(?:\n.*?)*?))\2/g,n)).replace(/([^\n*\\\s][ ]*)(\*+)((?:.*?)(?:(?:\n.*?)*?))\2/g,n):r.replace(this.RULE.asterisk.reg,n)).replace(this.RULE.underscore.reg,(function(t,n,r,i,a,o){var s,c,l,A,u;if(""===Tl(i).call(i))return t;var h=r.length%2==1?"em":"strong",f=Math.floor(r.length/2),d=tf(s="<strong>").call(s,f),p=tf(c="</strong>").call(c,f),g=e(i).html;return"em"===h&&(d+="<em>",p="</em>".concat(p)),uo(l=uo(A=uo(u="".concat(n)).call(u,d)).call(A,g)).call(l,p)}))).replace(/~U/g,"_")}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},e=t.config,n=!!e&&!!e.allowWhitespace,r=n?"(?:.*?)(?:(?:\\n.*?)*?)":"(?:(?:\\S|(?:\\S.*?\\S))(?:[ \\t]*\\n.*?)*?)",i={begin:"(^|[^\\\\])(\\*+)",content:"(".concat(r,")"),end:"\\2"},a={begin:"(^|".concat(Mu,")(_+)"),content:"(".concat(r,")"),end:"\\2(?=".concat(Mu,"|$)")};return i.reg=ku(i,"g"),a.reg=ku(a,"g"),{asterisk:i,underscore:a}}}]),n}(mA);function rf(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(nf,"HOOK_NAME","fontEmphasis");var af=function(t){Xa(n,t);var e=rf(n);function n(t){var r;return Ha(this,n),(r=e.call(this)).classicBr=t.globalConfig.classicBr,r.removeBrAfterBlock=null,r.removeBrBeforeBlock=null,r.removeNewlinesBetweenTags=null,r}return ja(n,[{key:"$cleanParagraph",value:function(t){var e=this.$engine.$cherry.options.engine.global.classicBr,n=t.replace(/^\n+/,"").replace(/\n+$/,"");return e?n:this.joinRawHtml(n).replace(/\n/g,"<br>").replace(/\r/g,"\n")}},{key:"joinRawHtml",value:function(t){if(!this.removeBrAfterBlock){var e,n,r,i,a=null!==(e=null===(n=this.$engine.htmlWhiteListAppend)||void 0===n?void 0:n.split("|"))&&void 0!==e?e:[];a=va(r=_A(a).call(a,(function(t){return/[a-z-]+/gi.test(t)?t:null}))).call(r,(function(t){return null!==t}));var o=uo(a).call(a,Bh).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(o,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(o,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(uo(i="<\\/(".concat(o,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(i,o,")(>| [^>]*?>)"),"ig")}return t.replace(this.removeBrAfterBlock,"<$1$2").replace(this.removeBrBeforeBlock,"</$1>").replace(this.removeNewlinesBetweenTags,"</$1>\r$2<$3$4")}},{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,r,i){var a;if(n.isContainsCache(t,!0))return t;var o,s=function(t){var r,i,a,o,s,c;if(""===Tl(t).call(t))return"";var l=e(t),A=l.sign,u=l.html,h="p";new RegExp("<(".concat(Bh,")[^>]*>"),"i").test(u)&&(h="div");var f=n.getLineCount(t,t);return uo(r=uo(i=uo(a=uo(o=uo(s=uo(c="<".concat(h,' data-sign="')).call(c,A)).call(s,f,'" data-type="')).call(o,h,'" data-lines="')).call(a,f,'">')).call(i,n.$cleanParagraph(u),"</")).call(r,h,">")};return n.isContainsCache(i)?n.makeExcludingCached(uo(o="".concat(r)).call(o,i),s):s(uo(a="".concat(r)).call(a,i))})):t}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",end:"(?=\\s*$|\\n\\n)",content:"([\\s\\S]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(TA);co(af,"HOOK_NAME","normalParagraph");var of=function(t){return void 0!==t&&(lt(t,"value")||lt(t,"writable"))};Wt({target:"Reflect",stat:!0},{get:function t(e,n){var r,i,a=arguments.length<3?e:arguments[2];return Ht(e)===a?e[n]:(r=kt.f(e,n))?of(r)?r.value:void 0===r.get?void 0:_(r.get,a):O(i=qn(e))?t(i,n,a):void 0}});var sf=R.Reflect.get,cf=_a,lf=r((function(t){t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=oo(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}));n(lf);var Af=n(r((function(t){function e(){return"undefined"!=typeof Reflect&&sf?(t.exports=e=sf,t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=e=function(t,e,n){var r=lf(t,e);if(r){var i=cf(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports),e.apply(this,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})));function uf(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var hf=/[\s\-_]/,ff=/[A-Za-z]/,df=/[0-9]/,pf=function(t){Xa(n,t);var e=uf(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0},i=(r.externals,r.config);return Ha(this,n),(t=e.call(this,{needCache:!0})).strict=!i||!!i.strict,t.RULE=t.rule(),t.headerIDCache=[],t.headerIDCounter={},t.config=i||{},t}return ja(n,[{key:"$parseTitleText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"string"!=typeof t?"":t.replace(/<.*?>/g,"").replace(/&#60;/g,"<").replace(/&#62;/g,">")}},{key:"$generateId",value:function(t){for(var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.length,r="",i=0;i<n;i++){var a=t.charAt(i);if(ff.test(a))r+=e?a.toLowerCase():a;else if(df.test(a))r+=a;else if(hf.test(a))r+=r.length<1||"-"!==r.charAt(r.length-1)?"-":"";else if(a.charCodeAt(0)>255)try{r+=encodeURIComponent(a)}catch(t){}}return r}},{key:"generateIDNoDup",value:function(t){var e,n=t.replace(/&#60;/g,"<").replace(/&#62;/g,">"),r=this.$generateId(n,!0),i=Ul(e=this.headerIDCache).call(e,r);if(-1!==i)this.headerIDCounter[i]+=1,r+="-".concat(this.headerIDCounter[i]+1);else{var a=this.headerIDCache.push(r);this.headerIDCounter[a-1]=1}return r}},{key:"$wrapHeader",value:function(t,e,n,r){var i,a,o,s,c,l,A,u=r(Tl(t).call(t)),h=u.html,f=h.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==f&&(h=h.substring(0,f.index),A=Rl(f,2)[1]);var d=this.$parseTitleText(h);if(!A){A=this.generateIDNoDup(d.replace(/~fn#([0-9]+)#/g,""))}var p=this.$engine.md5(uo(i=uo(a=uo(o="".concat(e,"-")).call(o,u.sign,"-")).call(a,A,"-")).call(i,n));return{html:[uo(s=uo(c=uo(l="<h".concat(e,' id="')).call(l,A,'" data-sign="')).call(c,p,'" data-lines="')).call(s,n,'">'),this.$getAnchor(A),"".concat(h),"</h".concat(e,">")].join(""),sign:"".concat(p)}}},{key:"$getAnchor",value:function(t){return"none"===(this.config.anchorStyle||"default")?"":'<a class="anchor" href="#'.concat(t,'"></a>')}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.test(n,"atx")&&(n=n.replace(this.RULE.atx.reg,(function(t,n,r,i){return""===Tl(i).call(i)?t:e.getCacheWithSpace(e.pushCache(t),t,!0)}))),this.test(n,"setext")&&(n=n.replace(this.RULE.setext.reg,(function(t,n,r){return""===Tl(r).call(r)||e.isContainsCache(r)?t:e.getCacheWithSpace(e.pushCache(t),t,!0)}))),n}},{key:"makeHtml",value:function(t,e){var n=this,r=this.restoreCache(t);return this.test(r,"atx")&&(r=r.replace(this.RULE.atx.reg,(function(t,r,i,a){var o=CA(r,n.getLineCount(t.replace(/^\n+/,""))),s=a.replace(/\s+#+\s*$/,""),c=n.$wrapHeader(s,i.length,o,e),l=c.html,A=c.sign;return n.getCacheWithSpace(n.pushCache(l,A,o),t,!0)}))),this.test(r,"setext")&&(r=r.replace(this.RULE.setext.reg,(function(t,r,i,a){if(n.isContainsCache(i))return t;var o=CA(r,n.getLineCount(t.replace(/^\n+/,""))),s="-"===a[0]?2:1,c=n.$wrapHeader(i,s,o,e),l=c.html,A=c.sign;return n.getCacheWithSpace(n.pushCache(l,A,o),t,!0)}))),r}},{key:"afterMakeHtml",value:function(t){var e=Af(so(n.prototype),"afterMakeHtml",this).call(this,t);return this.headerIDCache=[],this.headerIDCounter={},e}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",content:["(?:\\h*","(.+)",")\\n","(?:\\h*","([=]+|[-]+)",")"].join(""),end:"(?=$|\\n)"};t.reg=ku(t,"g",!0);var e={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(e.begin+="(?=\\h+)"),e.reg=ku(e,"g",!0),{setext:t,atx:e}}}]),n}(TA);function gf(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(pf,"HOOK_NAME","header");var mf=function(t){Xa(n,t);var e=gf(n);function n(){return Ha(this,n),e.apply(this,arguments)}return ja(n,[{key:"rule",value:function(){var t={};return t.reg=new RegExp(""),t}},{key:"beforeMakeHtml",value:function(t){return t.replace(/\\\n/g,"\\ \n")}},{key:"afterMakeHtml",value:function(t){var e=t.replace(/~Q/g,"~");return e=(e=(e=(e=(e=e.replace(/~X/g,"`")).replace(/~Y/g,"!")).replace(/~Z/g,"#")).replace(/~&/g,"&")).replace(/~K/g,"/")}}]),n}(mA);co(mf,"HOOK_NAME","transfer");var yf=s.TypeError,vf=function(t){return function(e,n,r,i){tt(n);var a=st(e),o=M(a),s=Me(a),c=t?s-1:0,l=t?-1:1;if(r<2)for(;;){if(c in o){i=o[c],c+=l;break}if(c+=l,t?c<0:s<=c)throw yf("Reduce of empty array with no initial value")}for(;t?c>=0:s>c;c+=l)c in o&&(i=n(i,o[c],c,a));return i}},bf={left:vf(!1),right:vf(!0)},wf="process"==S(s.process),_f=bf.left,Ef=Ca("reduce");Wt({target:"Array",proto:!0,forced:!Ef||!wf&&Y>79&&Y<83},{reduce:function(t){var e=arguments.length;return _f(this,t,e,e>1?arguments[1]:void 0)}});var Cf=mn("Array").reduce,xf=Array.prototype,Bf=function(t){var e=t.reduce;return t===xf||Q(xf,t)&&e===xf.reduce?Cf:e};function Tf(t,e){var n=ha(t);if(da){var r=da(t);e&&(r=va(r).call(r,(function(e){return Ea(t,e).enumerable}))),n.push.apply(n,r)}return n}function kf(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Na(n=Tf(Object(i),!0)).call(n,(function(e){co(t,e,i[e])})):Da?Oa(t,Da(i)):Na(r=Tf(Object(i))).call(r,(function(e){Pa(t,e,Ea(i,e))}))}return t}function Sf(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var If=function(t){Xa(n,t);var e=Sf(n);function n(t){var r,i=t.externals,a=t.config;Ha(this,n),r=e.call(this,{needCache:!0});var o=a.enableChart,s=a.chartRenderEngine,c=a.externals,l=a.chartEngineOptions,A=void 0===l?{}:l;if(r.chartRenderEngine=null,!0===o)try{r.chartRenderEngine=new s(kf(kf({},i&&c instanceof Array&&Bf(c).call(c,(function(t,e){return delete A[e],kf(kf({},t),{},co({},e,i[e]))}),{})),{},{renderer:"svg",width:500,height:300},A))}catch(t){console.warn(t)}return r}return ja(n,[{key:"$extendColumns",value:function(t,e){var n,r=e-t.length;return r<1?t:uo(t).call(t,tf(n="&nbsp;|").call(n,r).split("|",r))}},{key:"$parseChartOptions",value:function(t){if(!this.chartRenderEngine)return null;var e=/^[ ]*:(\w+):(?:[ ]*{(.*?)}[ ]*)?$/;if(!e.test(t))return null;var n=t.match(e),r=Rl(n,3),i=r[1],a=r[2];return{type:i,options:a?a.split(/\s*,\s*/):["x","y"]}}},{key:"$parseColumnAlignRules",value:function(t){var e=["U","L","R","C"];return{textAlignRules:_A(t).call(t,(function(t){var n=Tl(t).call(t),r=0;return/^:/.test(n)&&(r+=1),/:$/.test(n)&&(r+=2),e[r]})),COLUMN_ALIGN_MAP:{L:"left",R:"right",C:"center"}}}},{key:"$parseTable",value:function(t,e,n){var r,i,a,o,s,c,l=this,A=0,u=_A(t).call(t,(function(t,e){var n=t.replace(/\\\|/g,"~CS").split("|");return""===n[0]&&n.shift(),""===n[n.length-1]&&n.pop(),1!==e&&(A=Math.max(A,n.length)),n})),h=this.$parseColumnAlignRules(u[1]),f=h.textAlignRules,d=h.COLUMN_ALIGN_MAP,p={header:[],rows:[],colLength:A,rowLength:u.length-2},g=this.$parseChartOptions(u[0][0]),m=this.$engine.md5(u[0][0]);g&&(u[0][0]="");var y=_A(r=this.$extendColumns(u[0],A)).call(r,(function(t,n){var r,i;p.header.push(t.replace(/~CS/g,"\\|"));var a=e(Tl(r=t.replace(/~CS/g,"\\|")).call(r)).html;return uo(i="~CTH".concat(f[n]||"U"," ")).call(i,a," ~CTH$")})).join(""),v=Bf(u).call(u,(function(t,n,r){var i;if(r<=1)return t;var a=r-2;p.rows[a]=[];var o=_A(i=l.$extendColumns(n,A)).call(i,(function(t,n){var r,i;p.rows[a].push(t.replace(/~CS/g,"\\|"));var o=e(Tl(r=t.replace(/~CS/g,"\\|")).call(r)).html;return uo(i="~CTD".concat(f[n]||"U"," ")).call(i,o," ~CTD$")}));return t.push("~CTR".concat(o.join(""),"~CTR$")),t}),[]).join(""),b=this.$renderTable(d,y,v,n);if(!g)return b;var w=this.chartRenderEngine.render(g.type,g.options,p),_=uo(i=uo(a=uo(o=uo(s='<figure id="table_chart_'.concat(m,"_")).call(s,b.sign,'"\n data-sign="table_chart_')).call(o,m,"_")).call(a,b.sign,'" data-lines="0">')).call(i,w,"</figure>");return{html:uo(c="".concat(_)).call(c,b.html),sign:m+b.sign}}},{key:"$renderTable",value:function(t,e,n,r){var i,a,o,s,c=uo(i="~CTHD".concat(e,"~CTHD$~CTBD")).call(i,n,"~CTBD$"),l=this.$engine.md5(c),A=c.replace(/~CTHD\$/g,"</thead>").replace(/~CTHD/g,"<thead>").replace(/~CTBD\$/g,"</tbody>").replace(/~CTBD/g,"</tbody>").replace(/~CTR\$/g,"</tr>").replace(/~CTR/g,"<tr>").replace(/[ ]?~CTH\$/g,"</th>").replace(/[ ]?~CTD\$/g,"</td>").replace(/~CT(D|H)(L|R|C|U)[ ]?/g,(function(e,n,r){var i="<t".concat(n);return i+="U"===r?">":' align="'.concat(t[r],'">')})).replace(/\\\|/g,"|");return{html:uo(a=uo(o=uo(s='<div class="cherry-table-container" data-sign="'.concat(l)).call(s,r,'" data-lines="')).call(o,r,'">\n <table class="cherry-table">')).call(a,A,"</table></div>"),sign:l}}},{key:"makeHtml",value:function(t,e){var n=this,r=t;return this.test(r,"strict")&&(r=r.replace(this.RULE.strict.reg,(function(t,r){var i,a=n.getLineCount(t,r),o=_A(i=Tl(t).call(t).split(/\n/)).call(i,(function(t){var e;return Tl(e=String(t)).call(e)})),s=n.$parseTable(o,e,a),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,a),t)}))),this.test(r,"loose")&&(r=r.replace(this.RULE.loose.reg,(function(t,r){var i,a=n.getLineCount(t,r),o=_A(i=Tl(t).call(t).split(/\n/)).call(i,(function(t){var e;return Tl(e=String(t)).call(e)})),s=n.$parseTable(o,e,a),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,a),t)}))),r}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){return Pu()}}]),n}(TA);function Nf(){return"object"===("undefined"==typeof window?"undefined":no(window))}function Mf(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(If,"HOOK_NAME","table");var Ff=function(t){Xa(n,t);var e=Mf(n);function n(t){var r;return Ha(this,n),(r=e.call(this,{needCache:!0})).classicBr=t.globalConfig.classicBr,r}return ja(n,[{key:"beforeMakeHtml",value:function(t){var e=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,n,r){if(0===r)return t;var i,a,o=n.match(/\n/g).length,s="br".concat(o),c="",l=e.$engine.$cherry.options.engine.global.classicBr;Nf()?c=l?uo(i='<span data-sign="'.concat(s,'" data-type="br" data-lines="')).call(i,o,'"></span>'):uo(a='<p data-sign="'.concat(s,'" data-type="br" data-lines="')).call(a,o,'">&nbsp;</p>'):c=l?"":"<br/>";var A=e.pushCache(c,s);return"\n\n".concat(A,"\n")})):t}},{key:"makeHtml",value:function(t,e){return t}},{key:"rule",value:function(){var t={begin:"(?:\\n)",end:"",content:"((?:\\h*\\n){2,})"};return t.reg=ku(t,"g",!0),t}}]),n}(TA);function Df(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(Ff,"HOOK_NAME","br");var Lf=function(t){Xa(n,t);var e=Df(n);function n(){return Ha(this,n),e.call(this,{needCache:!0})}return ja(n,[{key:"beforeMakeHtml",value:function(t){var e=this;return t.replace(this.RULE.reg,(function(t,n){var r,i=(n.match(/\n/g)||[]).length+1,a="hr".concat(i);return EA(t,e.pushCache(uo(r='<hr data-sign="'.concat(a,'" data-lines="')).call(r,i,'" />'),a))}))}},{key:"makeHtml",value:function(t,e){return t}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)[ ]*",end:"(?=$|\\n)",content:"((?:-[ \\t]*){3,}|(?:\\*[ \\t]*){3,}|(?:_[ \\t]*){3,})"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(TA);co(Lf,"HOOK_NAME","hr");var Of={processExtendAttributesInAlt:function(t){var e=t.match(/#([0-9]+(px|em|pt|pc|in|mm|cm|ex|%)|auto)/g);if(!e)return"";var n="",r=Rl(e,2),i=r[0],a=r[1];return i&&(n=' width="'.concat(i.replace(/[ #]*/g,""),'"')),a&&(n+=' height="'.concat(a.replace(/[ #]*/g,""),'"')),n},processExtendStyleInAlt:function(t){var e=this.$getAlignment(t),n="",r=t.match(/#(border|shadow|radius|B|S|R)/g);if(r)for(var i=0;i<r.length;i++)switch(r[i]){case"#border":case"#B":e+="border:1px solid #888888;padding: 2px;box-sizing: border-box;",n+=" cherry-img-border";break;case"#shadow":case"#S":e+="box-shadow:0 2px 15px -5px rgb(0 0 0 / 50%);",n+=" cherry-img-shadow";break;case"#radius":case"#R":e+="border-radius: 15px;",n+=" cherry-img-radius"}return{extendStyles:e,extendClasses:n}},$getAlignment:function(t){var e=t.match(/#(center|right|left|float-right|float-left)/i);if(!e)return"";switch(Rl(e,2)[1]){case"center":return"transform:translateX(-50%);margin-left:50%;display:block;";case"right":return"transform:translateX(-100%);margin-left:100%;margin-right:-100%;display:block;";case"left":return"transform:translateX(0);margin-left:0;display:block;";case"float-right":return"float:right;transform:translateX(0);margin-left:0;display:block;";case"float-left":return"float:left;transform:translateX(0);margin-left:0;display:block;"}}};function Rf(t,e){var n=ha(t);if(da){var r=da(t);e&&(r=va(r).call(r,(function(e){return Ea(t,e).enumerable}))),n.push.apply(n,r)}return n}function Uf(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Pf=function(t,e,n,r,i,a,o,s,c){var l=void 0===i?"ref":"url",A="";if("ref"===l)return e;if("url"===l){var u,h,f,d,p,g,m,y,v=Of.processExtendAttributesInAlt(r),b=Of.processExtendStyleInAlt(r),w=b.extendStyles,_=b.extendClasses;w&&(w=' style="'.concat(w,'" ')),_&&(_=' class="'.concat(_,'" ')),A=a&&""!==Tl(a).call(a)?' title="'.concat(Ih(a),'"'):"",o&&(A+=" poster=".concat(Fh(o)));var E=c.urlProcessor(i,t),C=uo(u=uo(h=uo(f=uo(d=uo(p=uo(g=uo(m="<".concat(t,' src="')).call(m,zh.set(Fh(E)),'"')).call(g,A," ")).call(p,v," ")).call(d,w," ")).call(f,_,' controls="controls">')).call(h,Ih(r||""),"</")).call(u,t,">");return uo(y="".concat(n)).call(y,s.videoWrapper?s.videoWrapper(i):C)}return e},Qf=function(t){Xa(n,t);var e=Uf(n);function n(t){var r,i=t.config,a=t.globalConfig;return Ha(this,n),(r=e.call(this,null)).urlProcessor=a.urlProcessor,r.extendMedia={tag:["video","audio"],replacer:{video:function(t,e,n,r,o,s){return Pf("video",t,e,n,r,o,s,i,a)},audio:function(t,e,n,r,o,s){return Pf("audio",t,e,n,r,o,s,i,a)}}},r.RULE=r.rule(r.extendMedia),r}return ja(n,[{key:"toHtml",value:function(t,e,n,r,i,a){var o=void 0===r?"ref":"url",s="";if("ref"===o)return t;if("url"===o){var c,l,A,u,h,f,d,p=Of.processExtendAttributesInAlt(n),g=Of.processExtendStyleInAlt(n),m=g.extendStyles,y=g.extendClasses;m&&(m=' style="'.concat(m,'" ')),y&&(y=' class="'.concat(y,'" ')),s=i&&""!==Tl(i).call(i)?' title="'.concat(Ih(i.replace(/["']/g,"")),'"'):"";var v,b="src",w=this.$engine.$cherry.options;if(w.callback&&w.callback.beforeImageMounted){var _=w.callback.beforeImageMounted(b,r);b=_.srcProp||b,v=_.src||r}return uo(c=uo(l=uo(A=uo(u=uo(h=uo(f=uo(d="".concat(e,"<img ")).call(d,b,'="')).call(f,zh.set(Fh(this.urlProcessor(v,"image"))),'" ')).call(h,p," ")).call(u,m," ")).call(A,y,' alt="')).call(l,Ih(n||""),'"')).call(c,s,"/>")}return t}},{key:"toMediaHtml",value:function(t,e,n,r,i,a,o,s,c){var l,A;if(!this.extendMedia.replacer[n])return t;for(var u=arguments.length,h=new Array(u>9?u-9:0),f=9;f<u;f++)h[f-9]=arguments[f];return(l=this.extendMedia.replacer[n]).call.apply(l,uo(A=[this,t,e,r,i,a,c]).call(A,h))}},{key:"makeHtml",value:function(t){var e,n,r,i,a=t;this.test(a)&&(a=Su()?a.replace(this.RULE.reg,go(e=this.toHtml).call(e,this)):Wu(a,this.RULE.reg,go(n=this.toHtml).call(n,this),!0,1));this.testMedia(a)&&(a=Su()?a.replace(this.RULE.regExtend,go(r=this.toMediaHtml).call(r,this)):Wu(a,this.RULE.regExtend,go(i=this.toMediaHtml).call(i,this),!0,1));return a}},{key:"testMedia",value:function(t){return this.RULE.regExtend&&this.RULE.regExtend.test(t)}},{key:"rule",value:function(t){var e={begin:Su()?"((?<!\\\\))!":"(^|[^\\\\])!",content:["\\[([^\\n]*?)\\]","[ \\t]*","".concat('(?:\\(([^"][^\\s]+?)(?:[ \\t]((?:".*?")|(?:\'.*?\')))?\\)|\\[(').concat("(?:[^\\n]*?\\S[^\\n]*?)",")\\]")+")"].join(""),end:""};if(t){var n=function(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Na(n=Rf(Object(i),!0)).call(n,(function(e){co(t,e,i[e])})):Da?Oa(t,Da(i)):Na(r=Rf(Object(i))).call(r,(function(e){Pa(t,e,Ea(i,e))}))}return t}({},e);n.begin=Su()?"((?<!\\\\))!(".concat(t.tag.join("|"),")"):"(^|[^\\\\])!(".concat(t.tag.join("|"),")"),n.end="({poster=(.*)})?",e.regExtend=ku(n,"g")}return e.reg=ku(e,"g"),e}}]),n}(mA);function Hf(t,e){var n=ha(t);if(da){var r=da(t);e&&(r=va(r).call(r,(function(e){return Ea(t,e).enumerable}))),n.push.apply(n,r)}return n}function Gf(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Na(n=Hf(Object(i),!0)).call(n,(function(e){co(t,e,i[e])})):Da?Oa(t,Da(i)):Na(r=Hf(Object(i))).call(r,(function(e){Pa(t,e,Ea(i,e))}))}return t}function jf(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(Qf,"HOOK_NAME","image");function Kf(t){var e;if("object"!==no(t)&&ha(t).length<1)return"";var n=[""];return Na(e=ha(t)).call(e,(function(e){var r;n.push(uo(r="".concat(e,'="')).call(r,t[e],'"'))})),n.join(" ")}function $f(t,e){for(var n=/^(\t|[ ])/,r=t;n.test(r);)e.space+="\t"===r[0]?4:1,r=r.replace(n,"");return r}function Yf(t,e){var n=/^((([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]*?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/;return n.test(t)?t.replace(n,(function(t,n,r,i,a){return e.type=r.search(/[*+-]/g)>-1?"ul":"ol",e.listStyle=function(t){return/^[a-z]/.test(t)?"lower-greek":/^[一二三四五六七八九十]/.test(t)?"cjk-ideographic":/^I/.test(t)?"upper-roman":/^\+/.test(t)?"circle":/^\*/.test(t)?"square":"default"}(r),e.start=Number(r.replace(".",""))?Number(r.replace(".","")):1,a})):(e.type="blank",t)}var Vf=ja((function t(){Ha(this,t),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),zf=function(t){Xa(n,t);var e=jf(n);function n(t){var r,i=t.config;return Ha(this,n),(r=e.call(this,{needCache:!0})).config=i||{},r.tree=[],r.emptyLines=0,r.indentSpace=Math.max(r.config.indentSpace,2),r}return ja(n,[{key:"addNode",value:function(t,e,n,r){"blank"===t.type?this.tree[r].strs.push(t.strs[0]):(this.tree[n].children.push(e),this.tree[e]=Gf(Gf({},t),{},{parent:n}))}},{key:"buildTree",value:function(t,e){var n=t.split("\n");this.tree=[],n.unshift("");for(var r=t.match(/\n*$/g)[0].length,i=0;i<n.length-r;i++){var a=new Vf;if(n[i]=$f(n[i],a),n[i]=Yf(n[i],a),a.strs.push(e(n[i]).html),a.index=i,0!==i){for(var o=i-1;!this.tree[o];)o-=1;if("blank"===a.type)this.addNode(a,i,this.tree[o].parent,o);else{for(;!this.tree[o]||this.tree[o].space>a.space;)o-=1;var s=a.space,c=this.tree[o].space;s<c+this.indentSpace?this.config.listNested&&this.tree[o].type!==a.type?this.addNode(a,i,o):this.addNode(a,i,this.tree[o].parent):s<c+this.indentSpace+4?this.addNode(a,i,o):(a.type="blank",this.addNode(a,i,this.tree[o].parent,o))}}else a.space=-2,this.tree.push(a)}}},{key:"renderSubTree",value:function(t,e,n){var r,i,a,o=this,s=0,c={},l=Bf(e).call(e,(function(e,n){var r,i,a,c=o.tree[n],l={},A="<p>".concat(c.strs.join("<br>"),"</p>");c.lines+=o.getLineCount(c.strs.join("\n"));var u=c.children.length?o.renderTree(n):"";t.lines+=c.lines,s+=c.lines;return/<span class="ch-icon ch-icon-(square|check)"><\/span>/.test(A)&&(l.class="check-list-item"),uo(r=uo(i=uo(a="".concat(e,"<li")).call(a,Kf(l),">")).call(i,A)).call(r,u,"</li>")}),"");return void 0===t.parent&&(c["data-lines"]=0===t.index?s+this.emptyLines:s,c["data-sign"]=this.sign),e[0]&&"ol"===n&&(c.start=this.tree[e[0]].start),c.class="cherry-list__".concat(this.tree[e[0]].listStyle),uo(r=uo(i=uo(a="<".concat(n)).call(a,Kf(c),">")).call(i,l,"</")).call(r,n,">")}},{key:"renderTree",value:function(t){var e=this,n=0,r=this.tree[t],i=r.children;return Bf(i).call(i,(function(t,a,o){if(0===o)return t;if(e.tree[i[o]].type===e.tree[i[o-1]].type)return t;var s=e.renderSubTree(r,wn(i).call(i,n,o),e.tree[i[o-1]].type);return n=o,t+s}),"")+(i.length?this.renderSubTree(r,wn(i).call(i,n,i.length),this.tree[i[i.length-1]].type):"")}},{key:"toHtml",value:function(t,e){var n,r;this.emptyLines=null!==(n=null===(r=t.match(/^\n\n/))||void 0===r?void 0:r.length)&&void 0!==n?n:0;var i=t.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(t){return t.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(t,e,n){var r,i=/\s/.test(n)?'<span class="ch-icon ch-icon-square"></span>':'<span class="ch-icon ch-icon-check"></span>';return uo(r="".concat(e)).call(r,i)}))}(i),e);var a=this.renderTree(0);return this.pushCache(a,this.sign)}},{key:"makeHtml",value:function(t,e){var n=this,r="".concat(t,"~0");return this.test(r)&&(r=r.replace(this.RULE.reg,(function(t){return n.getCacheWithSpace(n.checkCache(t,e),t)}))),r=r.replace(/~0$/g,"")}},{key:"rule",value:function(){var t={begin:"(?:^|\n)(\n*)(([ ]{0,3}([*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)",content:"([^\\r]+?)",end:"(~0|\\n{2,}(?=\\S)(?![ \\t]*(?:[*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)))"};return t.reg=new RegExp(t.begin+t.content+t.end,"gm"),t}}]),n}(TA);function Wf(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}function qf(t){for(var e=/^(\t|[ ]{1,4})/,n=t,r=0;e.test(n);)n=n.replace(/^(\t|[ ]{1,4})/g,""),r+=1;return r}co(zf,"HOOK_NAME","list");var Xf=function(t){Xa(n,t);var e=Wf(n);function n(){return Ha(this,n),e.call(this,{needCache:!0})}return ja(n,[{key:"handleMatch",value:function(t,e){var n=this;return t.replace(this.RULE.reg,(function(t,r,i){for(var a,o,s,c=e(i),l=c.sign,A=c.html,u=n.signWithCache(A)||l,h=n.getLineCount(t,r),f=/^(([ \t]{0,3}([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]+?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/,d=qf(r),p=A.split("\n"),g=/^[>\s]+/,m=/>/g,y=1,v=0,b=uo(a=uo(o='<blockquote data-sign="'.concat(u,"_")).call(o,h,'" data-lines="')).call(a,h,'">'),w=0;p[w];w++){if(0!==w){var _=qf(p[w]);if(_<=d&&f.test(p[w]))break;d=_}var E,C=p[w].replace(g,(function(t){var e=t.match(m);return v=e&&e.length>y?e.length:y,""}));if(y===v&&0!==w&&(b+="<br>"),y<v)b+=tf(E="<blockquote>").call(E,v-y),y=v;b+=C}return b+=tf(s="</blockquote>").call(s,y),n.getCacheWithSpace(n.pushCache(b,u,h),t)}))}},{key:"makeHtml",value:function(t,e){return this.test(t)?this.handleMatch(t,e):t}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\s*)",content:["(",">(?:.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))(?:>*.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))*(?:>*.+?)","|",">(?:.+?)",")"].join(""),end:"(?=(\\n)|$)"};return t.reg=ku(t,"g"),t}}]),n}(TA);function Jf(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(Xf,"HOOK_NAME","blockquote");var Zf=function(t){Xa(n,t);var e=Jf(n);function n(t){var r,i=t.config,a=t.globalConfig;return Ha(this,n),(r=e.call(this,{config:i})).urlProcessor=a.urlProcessor,r}return ja(n,[{key:"isLinkInHtmlAttribute",value:function(t,e,n){for(var r,i=new RegExp(["<","([a-zA-Z][a-zA-Z0-9-]*)","(",["\\s+[a-zA-Z_:][a-zA-Z0-9_.:-]*","(",["\\s*=\\s*","(",["([^\\s\"'=<>`]+)","('[^']*')",'("[^"]*")'].join("|"),")"].join(""),")?"].join(""),")*","\\s*[/]?>"].join(""),"g");null!==(r=i.exec(t))&&!(r.index>e+n);)if(r.index<e&&r.index+r[0].length>=e+n)return!0;return!1}},{key:"isLinkInATag",value:function(t,e,n){for(var r,i=/<a.*>[^<]*<\/a>/g;null!==(r=i.exec(t))&&!(r.index>e+n);)if(r.index<e&&r.index+r[0].length>=e+n)return!0;return!1}},{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)&&(Fu.test(t)||Lu.test(t))?t.replace(this.RULE.reg,(function(t,e,r,i,a,o,s){var c,l,A;if(n.isLinkInHtmlAttribute(s,o,r.length+i.length)||n.isLinkInATag(s,o,r.length+i.length))return t;var u=r.toLowerCase(),h="",f="",d=!0;if(("<"!==e&&"&#60;"!==e||">"!==a&&"&#62;"!==a)&&(h=e,f=a,d=!1),""===Tl(i).call(i)||!d&&""===u&&!/www\./.test(i))return t;switch(u){case"javascript:":return t;case"mailto:":var p,g,m,y;return Du.test(i)?uo(p=uo(g=uo(m="".concat(h,'<a href="')).call(m,Fh(uo(y="".concat(u)).call(y,i)),'" rel="nofollow">')).call(g,Ih(i),"</a>")).call(p,f):t;case"":var v,b,w,_,E,C;if(h===f||!d)return Du.test(i)?uo(v=uo(b=uo(w="".concat(h,'<a href="mailto:')).call(w,Fh(i),'" rel="nofollow">')).call(b,Ih(i),"</a>")).call(v,f):Ru.test(i)?uo(_=uo(E="".concat(h)).call(E,n.renderLink("//".concat(i),i))).call(_,f):t;if(d)return Du.test(i)?uo(C='<a href="mailto:'.concat(Fh(i),'" rel="nofollow">')).call(C,Ih(i),"</a>"):Uu.test(i)||Ru.test(i)?n.renderLink(i):t;default:return Uu.test(i)?uo(c=uo(l="".concat(h)).call(l,n.renderLink(uo(A="".concat(u)).call(A,i)))).call(c,f):t}return t})):t}},{key:"rule",value:function(){var t,e={begin:"(<?)",content:["((?:[a-z][a-z0-9+.-]{1,31}:)?)",uo(t="((?:".concat(Ou.source,")|(?:")).call(t,Fu.source,"))")].join(""),end:"(>?)"};return e.reg=ku(e,"ig"),e}},{key:"renderLink",value:function(t,e){var n,r=e;"string"!=typeof r&&(r=t);var i=this.urlProcessor(t,"autolink");return uo(n='<a href="'.concat(Fh(i),'" rel="nofollow">')).call(n,Ih(r),"</a>")}}]),n}(mA);function td(){var t,e,n,r;Nf()&&(this.katex=null!==(t=null===(e=this.externals)||void 0===e?void 0:e.katex)&&void 0!==t?t:window.katex,this.MathJax=null!==(n=null===(r=this.externals)||void 0===r?void 0:r.MathJax)&&void 0!==n?n:window.MathJax)}co(Zf,"HOOK_NAME","autoLink");var ed=["&","<",">",'"',"'"],nd=function(t){return t.replace(new RegExp(Nu,"g"),(function(t){return-1!==Ul(ed).call(ed,t)?Sh(t):"\\".concat(t)}))},rd=_l.trim,id=y("".charAt),ad=s.parseFloat,od=s.Symbol,sd=od&&od.iterator,cd=1/ad(gl+"-0")!=-1/0||sd&&!c((function(){ad(Object(sd))}))?function(t){var e=rd(En(t)),n=ad(e);return 0===n&&"-"==id(e,0)?-0:n}:ad;Wt({global:!0,forced:parseFloat!=cd},{parseFloat:cd});var ld=R.parseFloat,Ad=yt("match"),ud=s.TypeError,hd=function(t){if(function(t){var e;return O(t)&&(void 0!==(e=t[Ad])?!!e:"RegExp"==S(t))}(t))throw ud("The method doesn't accept regular expressions");return t},fd=yt("match"),dd=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[fd]=!1,"/./"[t](e)}catch(t){}}return!1},pd=y("".startsWith),gd=y("".slice),md=Math.min,yd=dd("startsWith");Wt({target:"String",proto:!0,forced:!yd},{startsWith:function(t){var e=En(D(this));hd(t);var n=Ne(md(arguments.length>1?arguments[1]:void 0,e.length)),r=En(t);return pd?pd(e,r,n):gd(e,n,n+r.length)===r}});var vd=mn("String").startsWith,bd=String.prototype,wd=function(t){var e=t.startsWith;return"string"==typeof t||t===bd||Q(bd,t)&&e===bd.startsWith?vd:e};function _d(t,e){var n=ld(t),r=ld(e);return r>=0?n:n>=0?n+r:Math.min(n,r)}function Ed(t){var e=t.previousElementSibling,n=t.nextElementSibling;if(!e){var r=getComputedStyle(t),i=t.getBoundingClientRect();if(!n)return{height:Math.max(ld(r.marginTop)+i.height+ld(r.marginBottom),0),offsetTop:t.offsetTop-Math.abs(ld(r.marginTop))};var a=getComputedStyle(n),o=_d(r.marginBottom,a.marginTop);return{height:Math.max(ld(r.marginTop)+i.height+o,0),offsetTop:t.offsetTop-Math.abs(ld(r.marginTop))}}var s,c,l,A,u=getComputedStyle(t),h=t.getBoundingClientRect(),f=getComputedStyle(e),d=(s=f.marginBottom,c=u.marginTop,l=ld(s),(A=ld(c))<0?0:l>=0?Math.max(A-l,0):A);if(!n)return{height:Math.max(d+h.height+ld(u.marginBottom),0),offsetTop:t.offsetTop-Math.abs(ld(u.marginTop))};var p=getComputedStyle(n),g=_d(u.marginBottom,p.marginTop);return{height:Math.max(d+h.height+g,0),offsetTop:t.offsetTop-Math.abs(d)}}function Cd(t,e){if(!t||!t.tagName)return"";var n,r,i=document.createElement("div");return i.appendChild(t.cloneNode(!1)),n=i.innerHTML,e&&(r=Ul(n).call(n,">")+1,n=n.substring(0,r)+t.innerHTML+n.substring(r)),i=null,n}function xd(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=document.createElement(t);(i.className=n,void 0!==r)&&Na(e=ha(r)).call(e,(function(t){var e=r[t];if(wd(t).call(t,"data-")){var n=t.replace(/^data-/,"");i.dataset[n]=e}else i.setAttribute(t,e)}));return i}function Bd(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Td=function(t){Xa(n,t);var e=Bd(n);function n(t){var r,i,a=t.config;return Ha(this,n),i=e.call(this,{needCache:!0}),co($a(i),"engine","MathJax"),co($a(i),"katex",void 0),co($a(i),"MathJax",void 0),i.engine=Nf()?null!==(r=a.engine)&&void 0!==r?r:"MathJax":"node",i}return ja(n,[{key:"toHtml",value:function(t,e,n,r){var i,a,o;go(td).call(td,this)("engine");var s=t.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),c=e.replace(/^[ \f\r\t\v]*\n/,""),l=this.$engine.md5(t),A=this.getLineCount(s,c);if(/\n/.test(e)||(A-=1),/\n\s*$/.test(t)||(A-=1),A=A>0?A:0,"katex"===this.engine){var u,h,f=this.katex.renderToString(r,{throwOnError:!1,displayMode:!0}),d=uo(u=uo(h='<div data-sign="'.concat(l,'" class="Cherry-Math" data-type="mathBlock"\n data-lines="')).call(h,A,'">')).call(u,f,"</div>");return n+this.getCacheWithSpace(this.pushCache(d,l,A),t)}if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var p,g,m=Cd(this.MathJax.tex2svg(r),!0),y=uo(p=uo(g='<div data-sign="'.concat(l,'" class="Cherry-Math" data-type="mathBlock"\n data-lines="')).call(g,A,'">')).call(p,m,"</div>");return n+this.getCacheWithSpace(this.pushCache(y,l,A),t)}var v=uo(a=uo(o='<div data-sign="'.concat(l,'" class="Cherry-Math" data-type="mathBlock"\n data-lines="')).call(o,A,'">$$')).call(a,nd(r),"$$</div>");return n+this.getCacheWithSpace(this.pushCache(v,l,A),t)}},{key:"beforeMakeHtml",value:function(t){var e,n;return Su()?t.replace(this.RULE.reg,go(n=this.toHtml).call(n,this)):Wu(t,this.RULE.reg,go(e=this.toHtml).call(e,this),!0,1)}},{key:"makeHtml",value:function(t){return t}},{key:"rule",value:function(){var t={begin:Su()?"(\\s*)((?<!\\\\))~D~D\\s*":"(\\s*)(^|[^\\\\])~D~D\\s*",content:"([\\w\\W]*?)",end:"(\\s*)~D~D(?:\\s{0,1})"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(TA);function kd(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(Td,"HOOK_NAME","mathBlock");var Sd=function(t){Xa(n,t);var e=kd(n);function n(t){var r,i,a=t.config;return Ha(this,n),i=e.call(this,{needCache:!0}),co($a(i),"engine","MathJax"),co($a(i),"katex",void 0),co($a(i),"MathJax",void 0),i.engine=Nf()?null!==(r=a.engine)&&void 0!==r?r:"MathJax":"node",i}return ja(n,[{key:"toHtml",value:function(t,e,n){var r,i,a,o;if(!n)return t;go(td).call(td,this)("engine");var s=n.match(/\n/g),c=s?s.length+2:2,l=this.$engine.md5(t);if("katex"===this.engine&&null!==(r=this.katex)&&void 0!==r&&r.renderToString){var A,u,h=this.katex.renderToString(n,{throwOnError:!1}),f=uo(A=uo(u="".concat(e,'<span class="Cherry-InlineMath" data-type="mathBlock" data-lines="')).call(u,c,'">')).call(A,h,"</span>");return this.pushCache(f,TA.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var d,p,g=Cd(this.MathJax.tex2svg(n,{em:12,ex:6,display:!1}),!0),m=uo(d=uo(p="".concat(e,'<span class="Cherry-InlineMath" data-type="mathBlock" data-lines="')).call(p,c,'">')).call(d,g,"</span>");return this.pushCache(m,TA.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}var y=uo(a=uo(o="".concat(e,'<span class="Cherry-InlineMath" data-type="mathBlock"\n data-lines="')).call(o,c,'">$')).call(a,nd(n),"$</span>");return this.pushCache(y,TA.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}},{key:"beforeMakeHtml",value:function(t){var e,n;return this.test(t)?Su()?t.replace(this.RULE.reg,go(n=this.toHtml).call(n,this)):Wu(t,this.RULE.reg,go(e=this.toHtml).call(e,this),!0,1):t}},{key:"makeHtml",value:function(t){return t}},{key:"rule",value:function(){var t={begin:Su()?"((?<!\\\\))~D\\n?":"(^|[^\\\\])~D\\n?",content:"(.*?)\\n?",end:"~D"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(TA);co(Sd,"HOOK_NAME","inlineMath");Wt({target:"Array",proto:!0},{fill:function(t){for(var e=st(this),n=Me(e),r=arguments.length,i=Se(r>1?arguments[1]:void 0,n),a=r>2?arguments[2]:void 0,o=void 0===a?n:Se(a,n);o>i;)e[i++]=t;return e}});var Id=mn("Array").fill,Nd=Array.prototype,Md=function(t){var e=t.fill;return t===Nd||Q(Nd,t)&&e===Nd.fill?Id:e};function Fd(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}function Dd(t){return t}var Ld={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:Dd},Od=function(t){Xa(n,t);var e=Fd(n);function n(t){t.externals;var r,i,a=t.config;return Ha(this,n),i=e.call(this,{needCache:!0}),co($a(i),"tocStyle","nested"),co($a(i),"tocNodeClass","toc-li"),co($a(i),"tocContainerClass","toc"),co($a(i),"tocTitleClass","toc-title"),co($a(i),"linkProcessor",Dd),co($a(i),"baseLevel",1),co($a(i),"isFirstTocToken",!0),co($a(i),"allowMultiToc",!1),Na(r=ha(Ld)).call(r,(function(t){i[t]=a[t]||Ld[t]})),i}return ja(n,[{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.test(n,"extend")&&(n=n.replace(this.RULE.extend.reg,(function(t,n,r){var i;if(!e.allowMultiToc&&!e.isFirstTocToken)return uo(i="\n".concat(n)).call(i,'<p data-sign="empty-toc" data-lines="1">&nbsp;</p>');var a=e.pushCache(t);return e.isFirstTocToken=!1,EA(t,a)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(t,n,r){var i;return e.allowMultiToc||e.isFirstTocToken?(e.isFirstTocToken=!1,EA(t,e.pushCache(t))):uo(i="\n".concat(n)).call(i,'<p data-sign="empty-toc" data-lines="1">&nbsp;</p>')}))),n}},{key:"makeHtml",value:function(t){return t}},{key:"$makeLevel",value:function(t){for(var e="",n=this.baseLevel;n<t;n++)e+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";return e}},{key:"$makeTocItem",value:function(t,e){var n,r,i,a,o,s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c="";e&&(c=this.$makeLevel(t.level));var l=this.linkProcessor("#".concat(t.id));return uo(n=uo(r=uo(i=uo(a=uo(o='<li class="'.concat(this.tocNodeClass,'">')).call(o,c,'<a href="')).call(a,l,'" class="level-')).call(i,t.level,'">')).call(r,t.text,"</a>")).call(n,s?"</li>":"")}},{key:"$makePlainToc",value:function(t){var e=this;return _A(t).call(t,(function(t){return e.$makeTocItem(t,!0)})).join("")}},{key:"$makeNestedToc",value:function(t){var e,n,r=this,i=0,a=Md(e=new Array(7)).call(e,!1),o=Md(n=new Array(7)).call(n,!1),s="";Na(t).call(t,(function(t){var e=t.level;if(0===i){for(var n=e;n>=r.baseLevel;n--)s+="<ul>",o[n]=!0;return s+=r.$makeTocItem(t,!1,!1),a[e]=!0,void(i=e)}if(e<i){for(var c=i;c>=e;c--)a[c]&&(s+="</li>",a[c]=!1),o[c]&&c>e&&(s+="</ul>",o[c]=!1);a[e]=!0,s+=r.$makeTocItem(t,!1,!1),i=e}else if(e===i)a[i]&&(s+="</li>"),s+=r.$makeTocItem(t,!1,!1),a[e]=!0,o[e]=!0;else{for(var l=i+1;l<=e;l++)s+="<ul>",o[l]=!0;a[e]=!0,s+=r.$makeTocItem(t,!1,!1),i=e}}));for(var c=i;c>=this.baseLevel;c--)a[c]&&(s+="</li>",a[c]=!1),o[c]&&(s+="</ul>",o[c]=!1);return s}},{key:"$makeToc",value:function(t,e,n){var r,i,a,o=CA(n,1),s=uo(r=uo(i=uo(a='<dir class="'.concat(this.tocContainerClass,'" data-sign="')).call(a,e,"-")).call(i,o,'" data-lines="')).call(r,o,'">');return s+='<p class="'.concat(this.tocTitleClass,'">目录</p>'),t.length<=0?"":(this.baseLevel=Math.min.apply(Math,Ku(_A(t).call(t,(function(t){return t.level})))),"nested"===this.tocStyle?s+=this.$makeNestedToc(t):s+=this.$makePlainToc(t),s+="</dir>")}},{key:"afterMakeHtml",value:function(t){var e=this,r=Af(so(n.prototype),"afterMakeHtml",this).call(this,t),i=[],a="";return r.replace(/<h([1-6]) id="([^"]+?)" data-sign=".+?" data-lines="[0-9]+"><a[^/]+?\/a>(.+?)<\/h\1>/g,(function(t,e,n,r){var o,s=r.replace(/~fn#[0-9]+#/g,"");i.push({level:+e,id:n,text:s}),a+=uo(o="".concat(e)).call(o,n)})),a=this.$engine.md5(a),r=(r=(r=r.replace(/(?:^|\n)(\[\[|\[|【【)(toc|TOC)(\]\]|\]|】】)([<~])/,(function(t){return t.replace(/(\]\]|\]|】】)([<~])/,"$1\n$2")}))).replace(this.RULE.extend.reg,(function(t,n){return e.$makeToc(i,a,n)}))).replace(this.RULE.standard.reg,(function(t,n){return e.$makeToc(i,a,n)})),this.isFirstTocToken=!0,r}},{key:"test",value:function(t,e){return!!this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*((?:【【|\\[\\[)(?:toc|TOC)(?:\\]\\]|】】))[ ]*"};t.reg=new RegExp(t.begin+t.content+t.end,"g");var e={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*(\\[(?:toc|TOC)\\])[ ]*"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),{extend:t,standard:e}}}]),n}(TA);function Rd(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(Od,"HOOK_NAME","toc");var Ud=function(t){Xa(n,t);var e=Rd(n);function n(t){var r;t.externals,t.config;return Ha(this,n),(r=e.call(this)).footnoteCache={},r.footnoteMap={},r.footnote=[],r}return ja(n,[{key:"$cleanCache",value:function(){this.footnoteCache={},this.footnoteMap={},this.footnote=[]}},{key:"pushFootnoteCache",value:function(t,e){this.footnoteCache[t]=e}},{key:"getFootnoteCache",value:function(t){return this.footnoteCache[t]||null}},{key:"pushFootNote",value:function(t,e){var n,r,i,a,o,s;if(this.footnoteMap[t])return this.footnoteMap[t];var c=this.footnote.length+1,l={};l.fn=uo(n=uo(r=uo(i='<sup><a href="#fn:'.concat(c,'" id="fnref:')).call(i,c,'" title="')).call(r,t,'" class="footnote">[')).call(n,c,"]</a></sup>"),l.fnref=uo(a=uo(o=uo(s='<a href="#fnref:'.concat(c,'" id="fn:')).call(s,c,'" title="')).call(o,t,'" class="footnote-ref">[')).call(a,c,"]</a>"),l.num=c,l.note=Tl(e).call(e),this.footnote.push(l);var A="\0~fn#".concat(c-1,"#\0");return this.footnoteMap[t]=A,A}},{key:"getFootNote",value:function(){return this.footnote}},{key:"formatFootNote",value:function(){var t,e=this.getFootNote();if(e.length<=0)return"";var n=_A(e).call(e,(function(t){var e;return uo(e='<div class="one-footnote">\n'.concat(t.fnref)).call(e,t.note,"\n</div>")})).join(""),r=this.$engine.md5(n);return n=uo(t='<div class="footnote" data-sign="'.concat(r,'" data-lines="0"><div class="footnote-title">脚注</div>')).call(t,n,"</div>")}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.test(n)&&(n=(n=n.replace(this.RULE.reg,(function(t,n,r,i){return e.pushFootnoteCache(r,i),(t.match(/\n/g)||[]).join("")}))).replace(/\[\^([^\]]+?)\](?!:)/g,(function(t,n){var r=e.getFootnoteCache(n);return r?e.pushFootNote(n,r):t})),n+=this.formatFootNote()),n}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){var e=this.getFootNote(),n=t.replace(/\0~fn#([0-9]+)#\0/g,(function(t,n){return e[n].fn}));return this.$cleanCache(),n}},{key:"rule",value:function(){var t={begin:"(^|\\n)[ \t]*",content:["\\[\\^([^\\]]+?)\\]:\\h*","([\\s\\S]+?)"].join(""),end:"(?=\\s*$|\\n\\n)"};return t.reg=ku(t,"g",!0),t}}]),n}(TA);function Pd(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(Ud,"HOOK_NAME","footnote");var Qd=function(t){Xa(n,t);var e=Pd(n);function n(t){var r;t.externals,t.config;return Ha(this,n),(r=e.call(this)).commentCache={},r}return ja(n,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(t,e){var n,r=e.split(/[ ]+/g),i=$u(r),a=i[0],o=wn(i).call(i,1),s=zh.set(a);this.commentCache["".concat(t).toLowerCase()]=uo(n=[s]).call(n,Ku(o)).join(" ")}},{key:"getCommentReferenceCache",value:function(t){return this.commentCache["".concat(t).toLowerCase()]||null}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;if(this.test(n)){n=(n=n.replace(this.RULE.reg,(function(t,n,r,i){var a;return e.pushCommentReferenceCache(r,i),(null!==(a=t.match(/\n/g))&&void 0!==a?a:[]).join("")}))).replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(t,n,r){var i,a,o=e.getCommentReferenceCache(r);return o?n?uo(a="".concat(n,"(")).call(a,o,")"):uo(i="[".concat(r,"](")).call(i,o,")"):t})),this.$cleanCache()}return n}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){return zh.restoreAll(t)}},{key:"rule",value:function(){var t={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return t.reg=ku(t,"g",!0),t}}]),n}(TA);co(Qd,"HOOK_NAME","commentReference");var Hd=si.some,Gd=Ca("some");Wt({target:"Array",proto:!0,forced:!Gd},{some:function(t){return Hd(this,t,arguments.length>1?arguments[1]:void 0)}});var jd=mn("Array").some,Kd=Array.prototype,$d=function(t){var e=t.some;return t===Kd||Q(Kd,t)&&e===Kd.some?jd:e},Yd=r((function(t,e){t.exports=function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,n){return(e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function r(t,i,a){return(r=n()?Reflect.construct:function(t,n,r){var i=[null];i.push.apply(i,n);var a=new(Function.bind.apply(t,i));return r&&e(a,r.prototype),a}).apply(null,arguments)}function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=Object.hasOwnProperty,s=Object.setPrototypeOf,c=Object.isFrozen,l=Object.getPrototypeOf,A=Object.getOwnPropertyDescriptor,u=Object.freeze,h=Object.seal,f=Object.create,d="undefined"!=typeof Reflect&&Reflect,p=d.apply,g=d.construct;p||(p=function(t,e,n){return t.apply(e,n)}),u||(u=function(t){return t}),h||(h=function(t){return t}),g||(g=function(t,e){return r(t,i(e))});var m,y=k(Array.prototype.forEach),v=k(Array.prototype.pop),b=k(Array.prototype.push),w=k(String.prototype.toLowerCase),_=k(String.prototype.match),E=k(String.prototype.replace),C=k(String.prototype.indexOf),x=k(String.prototype.trim),B=k(RegExp.prototype.test),T=(m=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return g(m,e)});function k(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return p(t,e,r)}}function S(t,e){s&&s(t,null);for(var n=e.length;n--;){var r=e[n];if("string"==typeof r){var i=w(r);i!==r&&(c(e)||(e[n]=i),r=i)}t[r]=!0}return t}function I(t){var e,n=f(null);for(e in t)p(o,t,[e])&&(n[e]=t[e]);return n}function N(t,e){for(;null!==t;){var n=A(t,e);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}t=l(t)}return function(t){return console.warn("fallback value for",t),null}}var M=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),F=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=u(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),O=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),R=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=u(["#text"]),P=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Q=u(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),G=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),K=h(/<%[\w\W]*|[\w\W]*%>/gm),$=h(/^data-[\-\w.\u00B7-\uFFFF]/),Y=h(/^aria-[\-\w]+$/),V=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=h(/^(?:\w+script|data):/i),W=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=h(/^html$/i),X=function(){return"undefined"==typeof window?null:window},J=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var r=null;n.currentScript&&n.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=n.currentScript.getAttribute("data-tt-policy-suffix"));var i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),r=function(t){return e(t)};if(r.version="2.3.8",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var a=n.document,o=n.document,s=n.DocumentFragment,c=n.HTMLTemplateElement,l=n.Node,A=n.Element,h=n.NodeFilter,f=n.NamedNodeMap,d=void 0===f?n.NamedNodeMap||n.MozNamedAttrMap:f,p=n.HTMLFormElement,g=n.DOMParser,m=n.trustedTypes,k=A.prototype,Z=N(k,"cloneNode"),tt=N(k,"nextSibling"),et=N(k,"childNodes"),nt=N(k,"parentNode");if("function"==typeof c){var rt=o.createElement("template");rt.content&&rt.content.ownerDocument&&(o=rt.content.ownerDocument)}var it=J(m,a),at=it?it.createHTML(""):"",ot=o,st=ot.implementation,ct=ot.createNodeIterator,lt=ot.createDocumentFragment,At=ot.getElementsByTagName,ut=a.importNode,ht={};try{ht=I(o).documentMode?o.documentMode:{}}catch(t){}var ft={};r.isSupported="function"==typeof nt&&st&&void 0!==st.createHTMLDocument&&9!==ht;var dt,pt,gt=j,mt=K,yt=$,vt=Y,bt=z,wt=W,_t=V,Et=null,Ct=S({},[].concat(i(M),i(F),i(D),i(O),i(U))),xt=null,Bt=S({},[].concat(i(P),i(Q),i(H),i(G))),Tt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),kt=null,St=null,It=!0,Nt=!0,Mt=!1,Ft=!1,Dt=!1,Lt=!1,Ot=!1,Rt=!1,Ut=!1,Pt=!1,Qt=!0,Ht=!0,Gt=!1,jt={},Kt=null,$t=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Yt=null,Vt=S({},["audio","video","img","source","image","track"]),zt=null,Wt=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qt="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1999/xhtml",Zt=Jt,te=!1,ee=["application/xhtml+xml","text/html"],ne="text/html",re=null,ie=o.createElement("form"),ae=function(t){return t instanceof RegExp||t instanceof Function},oe=function(e){re&&re===e||(e&&"object"===t(e)||(e={}),e=I(e),Et="ALLOWED_TAGS"in e?S({},e.ALLOWED_TAGS):Ct,xt="ALLOWED_ATTR"in e?S({},e.ALLOWED_ATTR):Bt,zt="ADD_URI_SAFE_ATTR"in e?S(I(Wt),e.ADD_URI_SAFE_ATTR):Wt,Yt="ADD_DATA_URI_TAGS"in e?S(I(Vt),e.ADD_DATA_URI_TAGS):Vt,Kt="FORBID_CONTENTS"in e?S({},e.FORBID_CONTENTS):$t,kt="FORBID_TAGS"in e?S({},e.FORBID_TAGS):{},St="FORBID_ATTR"in e?S({},e.FORBID_ATTR):{},jt="USE_PROFILES"in e&&e.USE_PROFILES,It=!1!==e.ALLOW_ARIA_ATTR,Nt=!1!==e.ALLOW_DATA_ATTR,Mt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ft=e.SAFE_FOR_TEMPLATES||!1,Dt=e.WHOLE_DOCUMENT||!1,Rt=e.RETURN_DOM||!1,Ut=e.RETURN_DOM_FRAGMENT||!1,Pt=e.RETURN_TRUSTED_TYPE||!1,Ot=e.FORCE_BODY||!1,Qt=!1!==e.SANITIZE_DOM,Ht=!1!==e.KEEP_CONTENT,Gt=e.IN_PLACE||!1,_t=e.ALLOWED_URI_REGEXP||_t,Zt=e.NAMESPACE||Jt,e.CUSTOM_ELEMENT_HANDLING&&ae(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Tt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ae(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Tt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Tt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),dt=dt=-1===ee.indexOf(e.PARSER_MEDIA_TYPE)?ne:e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===dt?function(t){return t}:w,Ft&&(Nt=!1),Ut&&(Rt=!0),jt&&(Et=S({},i(U)),xt=[],!0===jt.html&&(S(Et,M),S(xt,P)),!0===jt.svg&&(S(Et,F),S(xt,Q),S(xt,G)),!0===jt.svgFilters&&(S(Et,D),S(xt,Q),S(xt,G)),!0===jt.mathMl&&(S(Et,O),S(xt,H),S(xt,G))),e.ADD_TAGS&&(Et===Ct&&(Et=I(Et)),S(Et,e.ADD_TAGS)),e.ADD_ATTR&&(xt===Bt&&(xt=I(xt)),S(xt,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&S(zt,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Kt===$t&&(Kt=I(Kt)),S(Kt,e.FORBID_CONTENTS)),Ht&&(Et["#text"]=!0),Dt&&S(Et,["html","head","body"]),Et.table&&(S(Et,["tbody"]),delete kt.tbody),u&&u(e),re=e)},se=S({},["mi","mo","mn","ms","mtext"]),ce=S({},["foreignobject","desc","title","annotation-xml"]),le=S({},["title","style","font","a","script"]),Ae=S({},F);S(Ae,D),S(Ae,L);var ue=S({},O);S(ue,R);var he=function(t){var e=nt(t);e&&e.tagName||(e={namespaceURI:Jt,tagName:"template"});var n=w(t.tagName),r=w(e.tagName);return t.namespaceURI===Xt?e.namespaceURI===Jt?"svg"===n:e.namespaceURI===qt?"svg"===n&&("annotation-xml"===r||se[r]):Boolean(Ae[n]):t.namespaceURI===qt?e.namespaceURI===Jt?"math"===n:e.namespaceURI===Xt?"math"===n&&ce[r]:Boolean(ue[n]):t.namespaceURI===Jt&&!(e.namespaceURI===Xt&&!ce[r])&&!(e.namespaceURI===qt&&!se[r])&&!ue[n]&&(le[n]||!Ae[n])},fe=function(t){b(r.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=at}catch(e){t.remove()}}},de=function(t,e){try{b(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){b(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!xt[t])if(Rt||Ut)try{fe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},pe=function(t){var e,n;if(Ot)t="<remove></remove>"+t;else{var r=_(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===dt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var i=it?it.createHTML(t):t;if(Zt===Jt)try{e=(new g).parseFromString(i,dt)}catch(t){}if(!e||!e.documentElement){e=st.createDocument(Zt,"template",null);try{e.documentElement.innerHTML=te?"":i}catch(t){}}var a=e.body||e.documentElement;return t&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),Zt===Jt?At.call(e,Dt?"html":"body")[0]:Dt?e.documentElement:a},ge=function(t){return ct.call(t.ownerDocument||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},me=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore)},ye=function(e){return"object"===t(l)?e instanceof l:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ve=function(t,e,n){ft[t]&&y(ft[t],(function(t){t.call(r,e,n,re)}))},be=function(t){var e;if(ve("beforeSanitizeElements",t,null),me(t))return fe(t),!0;if(B(/[\u0080-\uFFFF]/,t.nodeName))return fe(t),!0;var n=pt(t.nodeName);if(ve("uponSanitizeElement",t,{tagName:n,allowedTags:Et}),t.hasChildNodes()&&!ye(t.firstElementChild)&&(!ye(t.content)||!ye(t.content.firstElementChild))&&B(/<[/\w]/g,t.innerHTML)&&B(/<[/\w]/g,t.textContent))return fe(t),!0;if("select"===n&&B(/<template/i,t.innerHTML))return fe(t),!0;if(!Et[n]||kt[n]){if(!kt[n]&&_e(n)){if(Tt.tagNameCheck instanceof RegExp&&B(Tt.tagNameCheck,n))return!1;if(Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(n))return!1}if(Ht&&!Kt[n]){var i=nt(t)||t.parentNode,a=et(t)||t.childNodes;if(a&&i)for(var o=a.length-1;o>=0;--o)i.insertBefore(Z(a[o],!0),tt(t))}return fe(t),!0}return t instanceof A&&!he(t)?(fe(t),!0):"noscript"!==n&&"noembed"!==n||!B(/<\/no(script|embed)/i,t.innerHTML)?(Ft&&3===t.nodeType&&(e=t.textContent,e=E(e,gt," "),e=E(e,mt," "),t.textContent!==e&&(b(r.removed,{element:t.cloneNode()}),t.textContent=e)),ve("afterSanitizeElements",t,null),!1):(fe(t),!0)},we=function(t,e,n){if(Qt&&("id"===e||"name"===e)&&(n in o||n in ie))return!1;if(Nt&&!St[e]&&B(yt,e));else if(It&&B(vt,e));else if(!xt[e]||St[e]){if(!(_e(t)&&(Tt.tagNameCheck instanceof RegExp&&B(Tt.tagNameCheck,t)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(t))&&(Tt.attributeNameCheck instanceof RegExp&&B(Tt.attributeNameCheck,e)||Tt.attributeNameCheck instanceof Function&&Tt.attributeNameCheck(e))||"is"===e&&Tt.allowCustomizedBuiltInElements&&(Tt.tagNameCheck instanceof RegExp&&B(Tt.tagNameCheck,n)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(n))))return!1}else if(zt[e]);else if(B(_t,E(n,wt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==C(n,"data:")||!Yt[t])if(Mt&&!B(bt,E(n,wt,"")));else if(n)return!1;return!0},_e=function(t){return t.indexOf("-")>0},Ee=function(t){var e,n,i,a;ve("beforeSanitizeAttributes",t,null);var o=t.attributes;if(o){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xt};for(a=o.length;a--;){var c=e=o[a],l=c.name,A=c.namespaceURI;if(n="value"===l?e.value:x(e.value),i=pt(l),s.attrName=i,s.attrValue=n,s.keepAttr=!0,s.forceKeepAttr=void 0,ve("uponSanitizeAttribute",t,s),n=s.attrValue,!s.forceKeepAttr&&(de(l,t),s.keepAttr))if(B(/\/>/i,n))de(l,t);else{Ft&&(n=E(n,gt," "),n=E(n,mt," "));var u=pt(t.nodeName);if(we(u,i,n))try{A?t.setAttributeNS(A,l,n):t.setAttribute(l,n),v(r.removed)}catch(t){}}}ve("afterSanitizeAttributes",t,null)}},Ce=function t(e){var n,r=ge(e);for(ve("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)ve("uponSanitizeShadowNode",n,null),be(n)||(n.content instanceof s&&t(n.content),Ee(n));ve("afterSanitizeShadowDOM",e,null)};return r.sanitize=function(e,i){var o,c,A,u,h;if((te=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ye(e)){if("function"!=typeof e.toString)throw T("toString is not a function");if("string"!=typeof(e=e.toString()))throw T("dirty is not a string, aborting")}if(!r.isSupported){if("object"===t(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof e)return n.toStaticHTML(e);if(ye(e))return n.toStaticHTML(e.outerHTML)}return e}if(Lt||oe(i),r.removed=[],"string"==typeof e&&(Gt=!1),Gt){if(e.nodeName){var f=pt(e.nodeName);if(!Et[f]||kt[f])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)1===(c=(o=pe("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?o=c:o.appendChild(c);else{if(!Rt&&!Ft&&!Dt&&-1===e.indexOf("<"))return it&&Pt?it.createHTML(e):e;if(!(o=pe(e)))return Rt?null:Pt?at:""}o&&Ot&&fe(o.firstChild);for(var d=ge(Gt?e:o);A=d.nextNode();)3===A.nodeType&&A===u||be(A)||(A.content instanceof s&&Ce(A.content),Ee(A),u=A);if(u=null,Gt)return e;if(Rt){if(Ut)for(h=lt.call(o.ownerDocument);o.firstChild;)h.appendChild(o.firstChild);else h=o;return xt.shadowroot&&(h=ut.call(a,h,!0)),h}var p=Dt?o.outerHTML:o.innerHTML;return Dt&&Et["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&B(q,o.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+p),Ft&&(p=E(p,gt," "),p=E(p,mt," ")),it&&Pt?it.createHTML(p):p},r.setConfig=function(t){oe(t),Lt=!0},r.clearConfig=function(){re=null,Lt=!1},r.isValidAttribute=function(t,e,n){re||oe({});var r=pt(t),i=pt(e);return we(r,i,n)},r.addHook=function(t,e){"function"==typeof e&&(ft[t]=ft[t]||[],b(ft[t],e))},r.removeHook=function(t){if(ft[t])return v(ft[t])},r.removeHooks=function(t){ft[t]&&(ft[t]=[])},r.removeAllHooks=function(){ft={}},r}()}()}))(window);function Vd(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var zd=function(t){Xa(n,t);var e=Vd(n);function n(){return Ha(this,n),e.call(this,{needCache:!0})}return ja(n,[{key:"isAutoLinkTag",value:function(t){var e=[/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i,/^<(mailto:[^<> `]+)>$/i,/^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i];return $d(e).call(e,(function(e){return e.test(t)}))}},{key:"isHtmlComment",value:function(t){return/^<!--.*?-->$/.test(t)}},{key:"beforeMakeHtml",value:function(t,e){var n=this;this.$engine.htmlWhiteListAppend?(this.htmlWhiteListAppend=new RegExp("^(".concat(this.$engine.htmlWhiteListAppend,")( |$|/)"),"i"),this.htmlWhiteList=this.$engine.htmlWhiteListAppend.split("|")):(this.htmlWhiteListAppend=!1,this.htmlWhiteList=[]);var r=t;return r=(r=(r=(r=function(t){if("string"!=typeof t)return"";var e=t.replace(/&(\w+);?/g,(function(t,e){return-1===Ul(t).call(t,";")||-1===Ul(Eh).call(Eh,e.toLowerCase())?t.replace(/&/g,"&amp;"):t}));return e=(e=e.replace(/&#(?!x)(\d*);?/gi,(function(t,e){return Ch(e)||-1===Ul(t).call(t,";")||e.lenth>7||!xh(e)?t.replace(/&/g,"&amp;"):t}))).replace(/&#x([0-9a-f]*);?/gi,(function(t,e){if(Ch(e))return t.replace(/&/g,"&amp;");var n="0x".concat(e),r=Vl(n,16);return isNaN(r)||-1===Ul(t).call(t,";")||e.lenth>6||!xh(n)?t.replace(/&/g,"&amp;"):t}))}(r=Nh(r))).replace(/<[/]?(.*?)>/g,(function(t,e){return kh.test(e)||n.isAutoLinkTag(t)||n.isHtmlComment(t)||!1!==n.htmlWhiteListAppend&&n.htmlWhiteListAppend.test(e)?t.replace(/</g,"$#60;").replace(/>/g,"$#62;"):t.replace(/</g,"&#60;").replace(/>/g,"&#62;")}))).replace(/<(?=\/?(\w|\n|$))/g,"&#60;")).replace(/\$#60;/g,"<").replace(/\$#62;/g,">")}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){var e=t,n={ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]};if(!1!==this.htmlWhiteListAppend){var r;if(n.ADD_TAGS=this.htmlWhiteList,(this.htmlWhiteListAppend.test("style")||this.htmlWhiteListAppend.test("ALL"))&&(e=e.replace(/<style(>| [^>]*>).*?<\/style>/gi,(function(t){return t.replace(/<br>/gi,"")}))),this.htmlWhiteListAppend.test("iframe")||this.htmlWhiteListAppend.test("ALL"))n.ADD_ATTR=uo(r=n.ADD_ATTR).call(r,["align","frameborder","height","longdesc","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","width"]),n.SANITIZE_DOM=!1,e=e.replace(/<iframe(>| [^>]*>).*?<\/iframe>/gi,(function(t){return t.replace(/<br>/gi,"").replace(/\n/g,"")}));if(this.htmlWhiteListAppend.test("script")||this.htmlWhiteListAppend.test("ALL"))return e=e.replace(/<script(>| [^>]*>).*?<\/script>/gi,(function(t){return t.replace(/<br>/gi,"")}))}return Nf()||(n.FORBID_ATTR=["data-sign","data-lines"]),Yd.sanitize(e,n)}}]),n}(TA);co(zd,"HOOK_NAME","htmlBlock");var Wd={"+1":"1f44d","-1":"1f44e",100:"1f4af",1234:"1f522","1st_place_medal":"1f947","2nd_place_medal":"1f948","3rd_place_medal":"1f949","8ball":"1f3b1",a:"1f170",ab:"1f18e",abacus:"1f9ee",abc:"1f524",abcd:"1f521",accept:"1f251",adhesive_bandage:"1fa79",adult:"1f9d1",aerial_tramway:"1f6a1",afghanistan:"1f1e6-1f1eb",airplane:"2708",aland_islands:"1f1e6-1f1fd",alarm_clock:"23f0",albania:"1f1e6-1f1f1",alembic:"2697",algeria:"1f1e9-1f1ff",alien:"1f47d",ambulance:"1f691",american_samoa:"1f1e6-1f1f8",amphora:"1f3fa",anchor:"2693",andorra:"1f1e6-1f1e9",angel:"1f47c",anger:"1f4a2",angola:"1f1e6-1f1f4",angry:"1f620",anguilla:"1f1e6-1f1ee",anguished:"1f627",ant:"1f41c",antarctica:"1f1e6-1f1f6",antigua_barbuda:"1f1e6-1f1ec",apple:"1f34e",aquarius:"2652",argentina:"1f1e6-1f1f7",aries:"2648",armenia:"1f1e6-1f1f2",arrow_backward:"25c0",arrow_double_down:"23ec",arrow_double_up:"23eb",arrow_down:"2b07",arrow_down_small:"1f53d",arrow_forward:"25b6",arrow_heading_down:"2935",arrow_heading_up:"2934",arrow_left:"2b05",arrow_lower_left:"2199",arrow_lower_right:"2198",arrow_right:"27a1",arrow_right_hook:"21aa",arrow_up:"2b06",arrow_up_down:"2195",arrow_up_small:"1f53c",arrow_upper_left:"2196",arrow_upper_right:"2197",arrows_clockwise:"1f503",arrows_counterclockwise:"1f504",art:"1f3a8",articulated_lorry:"1f69b",artificial_satellite:"1f6f0",artist:"1f9d1-1f3a8",aruba:"1f1e6-1f1fc",ascension_island:"1f1e6-1f1e8",asterisk:"002a-20e3",astonished:"1f632",astronaut:"1f9d1-1f680",athletic_shoe:"1f45f",atm:"1f3e7",atom_symbol:"269b",australia:"1f1e6-1f1fa",austria:"1f1e6-1f1f9",auto_rickshaw:"1f6fa",avocado:"1f951",axe:"1fa93",azerbaijan:"1f1e6-1f1ff",b:"1f171",baby:"1f476",baby_bottle:"1f37c",baby_chick:"1f424",baby_symbol:"1f6bc",back:"1f519",bacon:"1f953",badger:"1f9a1",badminton:"1f3f8",bagel:"1f96f",baggage_claim:"1f6c4",baguette_bread:"1f956",bahamas:"1f1e7-1f1f8",bahrain:"1f1e7-1f1ed",balance_scale:"2696",bald_man:"1f468-1f9b2",bald_woman:"1f469-1f9b2",ballet_shoes:"1fa70",balloon:"1f388",ballot_box:"1f5f3",ballot_box_with_check:"2611",bamboo:"1f38d",banana:"1f34c",bangbang:"203c",bangladesh:"1f1e7-1f1e9",banjo:"1fa95",bank:"1f3e6",bar_chart:"1f4ca",barbados:"1f1e7-1f1e7",barber:"1f488",baseball:"26be",basket:"1f9fa",basketball:"1f3c0",basketball_man:"26f9-2642",basketball_woman:"26f9-2640",bat:"1f987",bath:"1f6c0",bathtub:"1f6c1",battery:"1f50b",beach_umbrella:"1f3d6",bear:"1f43b",bearded_person:"1f9d4",bed:"1f6cf",bee:"1f41d",beer:"1f37a",beers:"1f37b",beetle:"1f41e",beginner:"1f530",belarus:"1f1e7-1f1fe",belgium:"1f1e7-1f1ea",belize:"1f1e7-1f1ff",bell:"1f514",bellhop_bell:"1f6ce",benin:"1f1e7-1f1ef",bento:"1f371",bermuda:"1f1e7-1f1f2",beverage_box:"1f9c3",bhutan:"1f1e7-1f1f9",bicyclist:"1f6b4",bike:"1f6b2",biking_man:"1f6b4-2642",biking_woman:"1f6b4-2640",bikini:"1f459",billed_cap:"1f9e2",biohazard:"2623",bird:"1f426",birthday:"1f382",black_circle:"26ab",black_flag:"1f3f4",black_heart:"1f5a4",black_joker:"1f0cf",black_large_square:"2b1b",black_medium_small_square:"25fe",black_medium_square:"25fc",black_nib:"2712",black_small_square:"25aa",black_square_button:"1f532",blond_haired_man:"1f471-2642",blond_haired_person:"1f471",blond_haired_woman:"1f471-2640",blonde_woman:"1f471-2640",blossom:"1f33c",blowfish:"1f421",blue_book:"1f4d8",blue_car:"1f699",blue_heart:"1f499",blue_square:"1f7e6",blush:"1f60a",boar:"1f417",boat:"26f5",bolivia:"1f1e7-1f1f4",bomb:"1f4a3",bone:"1f9b4",book:"1f4d6",bookmark:"1f516",bookmark_tabs:"1f4d1",books:"1f4da",boom:"1f4a5",boot:"1f462",bosnia_herzegovina:"1f1e7-1f1e6",botswana:"1f1e7-1f1fc",bouncing_ball_man:"26f9-2642",bouncing_ball_person:"26f9",bouncing_ball_woman:"26f9-2640",bouquet:"1f490",bouvet_island:"1f1e7-1f1fb",bow:"1f647",bow_and_arrow:"1f3f9",bowing_man:"1f647-2642",bowing_woman:"1f647-2640",bowl_with_spoon:"1f963",bowling:"1f3b3",boxing_glove:"1f94a",boy:"1f466",brain:"1f9e0",brazil:"1f1e7-1f1f7",bread:"1f35e",breast_feeding:"1f931",bricks:"1f9f1",bride_with_veil:"1f470",bridge_at_night:"1f309",briefcase:"1f4bc",british_indian_ocean_territory:"1f1ee-1f1f4",british_virgin_islands:"1f1fb-1f1ec",broccoli:"1f966",broken_heart:"1f494",broom:"1f9f9",brown_circle:"1f7e4",brown_heart:"1f90e",brown_square:"1f7eb",brunei:"1f1e7-1f1f3",bug:"1f41b",building_construction:"1f3d7",bulb:"1f4a1",bulgaria:"1f1e7-1f1ec",bullettrain_front:"1f685",bullettrain_side:"1f684",burkina_faso:"1f1e7-1f1eb",burrito:"1f32f",burundi:"1f1e7-1f1ee",bus:"1f68c",business_suit_levitating:"1f574",busstop:"1f68f",bust_in_silhouette:"1f464",busts_in_silhouette:"1f465",butter:"1f9c8",butterfly:"1f98b",cactus:"1f335",cake:"1f370",calendar:"1f4c6",call_me_hand:"1f919",calling:"1f4f2",cambodia:"1f1f0-1f1ed",camel:"1f42b",camera:"1f4f7",camera_flash:"1f4f8",cameroon:"1f1e8-1f1f2",camping:"1f3d5",canada:"1f1e8-1f1e6",canary_islands:"1f1ee-1f1e8",cancer:"264b",candle:"1f56f",candy:"1f36c",canned_food:"1f96b",canoe:"1f6f6",cape_verde:"1f1e8-1f1fb",capital_abcd:"1f520",capricorn:"2651",car:"1f697",card_file_box:"1f5c3",card_index:"1f4c7",card_index_dividers:"1f5c2",caribbean_netherlands:"1f1e7-1f1f6",carousel_horse:"1f3a0",carrot:"1f955",cartwheeling:"1f938",cat:"1f431",cat2:"1f408",cayman_islands:"1f1f0-1f1fe",cd:"1f4bf",central_african_republic:"1f1e8-1f1eb",ceuta_melilla:"1f1ea-1f1e6",chad:"1f1f9-1f1e9",chains:"26d3",chair:"1fa91",champagne:"1f37e",chart:"1f4b9",chart_with_downwards_trend:"1f4c9",chart_with_upwards_trend:"1f4c8",checkered_flag:"1f3c1",cheese:"1f9c0",cherries:"1f352",cherry_blossom:"1f338",chess_pawn:"265f",chestnut:"1f330",chicken:"1f414",child:"1f9d2",children_crossing:"1f6b8",chile:"1f1e8-1f1f1",chipmunk:"1f43f",chocolate_bar:"1f36b",chopsticks:"1f962",christmas_island:"1f1e8-1f1fd",christmas_tree:"1f384",church:"26ea",cinema:"1f3a6",circus_tent:"1f3aa",city_sunrise:"1f307",city_sunset:"1f306",cityscape:"1f3d9",cl:"1f191",clamp:"1f5dc",clap:"1f44f",clapper:"1f3ac",classical_building:"1f3db",climbing:"1f9d7",climbing_man:"1f9d7-2642",climbing_woman:"1f9d7-2640",clinking_glasses:"1f942",clipboard:"1f4cb",clipperton_island:"1f1e8-1f1f5",clock1:"1f550",clock10:"1f559",clock1030:"1f565",clock11:"1f55a",clock1130:"1f566",clock12:"1f55b",clock1230:"1f567",clock130:"1f55c",clock2:"1f551",clock230:"1f55d",clock3:"1f552",clock330:"1f55e",clock4:"1f553",clock430:"1f55f",clock5:"1f554",clock530:"1f560",clock6:"1f555",clock630:"1f561",clock7:"1f556",clock730:"1f562",clock8:"1f557",clock830:"1f563",clock9:"1f558",clock930:"1f564",closed_book:"1f4d5",closed_lock_with_key:"1f510",closed_umbrella:"1f302",cloud:"2601",cloud_with_lightning:"1f329",cloud_with_lightning_and_rain:"26c8",cloud_with_rain:"1f327",cloud_with_snow:"1f328",clown_face:"1f921",clubs:"2663",cn:"1f1e8-1f1f3",coat:"1f9e5",cocktail:"1f378",coconut:"1f965",cocos_islands:"1f1e8-1f1e8",coffee:"2615",coffin:"26b0",cold_face:"1f976",cold_sweat:"1f630",collision:"1f4a5",colombia:"1f1e8-1f1f4",comet:"2604",comoros:"1f1f0-1f1f2",compass:"1f9ed",computer:"1f4bb",computer_mouse:"1f5b1",confetti_ball:"1f38a",confounded:"1f616",confused:"1f615",congo_brazzaville:"1f1e8-1f1ec",congo_kinshasa:"1f1e8-1f1e9",congratulations:"3297",construction:"1f6a7",construction_worker:"1f477",construction_worker_man:"1f477-2642",construction_worker_woman:"1f477-2640",control_knobs:"1f39b",convenience_store:"1f3ea",cook:"1f9d1-1f373",cook_islands:"1f1e8-1f1f0",cookie:"1f36a",cool:"1f192",cop:"1f46e",copyright:"00a9",corn:"1f33d",costa_rica:"1f1e8-1f1f7",cote_divoire:"1f1e8-1f1ee",couch_and_lamp:"1f6cb",couple:"1f46b",couple_with_heart:"1f491",couple_with_heart_man_man:"1f468-2764-1f468",couple_with_heart_woman_man:"1f469-2764-1f468",couple_with_heart_woman_woman:"1f469-2764-1f469",couplekiss:"1f48f",couplekiss_man_man:"1f468-2764-1f48b-1f468",couplekiss_man_woman:"1f469-2764-1f48b-1f468",couplekiss_woman_woman:"1f469-2764-1f48b-1f469",cow:"1f42e",cow2:"1f404",cowboy_hat_face:"1f920",crab:"1f980",crayon:"1f58d",credit_card:"1f4b3",crescent_moon:"1f319",cricket:"1f997",cricket_game:"1f3cf",croatia:"1f1ed-1f1f7",crocodile:"1f40a",croissant:"1f950",crossed_fingers:"1f91e",crossed_flags:"1f38c",crossed_swords:"2694",crown:"1f451",cry:"1f622",crying_cat_face:"1f63f",crystal_ball:"1f52e",cuba:"1f1e8-1f1fa",cucumber:"1f952",cup_with_straw:"1f964",cupcake:"1f9c1",cupid:"1f498",curacao:"1f1e8-1f1fc",curling_stone:"1f94c",curly_haired_man:"1f468-1f9b1",curly_haired_woman:"1f469-1f9b1",curly_loop:"27b0",currency_exchange:"1f4b1",curry:"1f35b",cursing_face:"1f92c",custard:"1f36e",customs:"1f6c3",cut_of_meat:"1f969",cyclone:"1f300",cyprus:"1f1e8-1f1fe",czech_republic:"1f1e8-1f1ff",dagger:"1f5e1",dancer:"1f483",dancers:"1f46f",dancing_men:"1f46f-2642",dancing_women:"1f46f-2640",dango:"1f361",dark_sunglasses:"1f576",dart:"1f3af",dash:"1f4a8",date:"1f4c5",de:"1f1e9-1f1ea",deaf_man:"1f9cf-2642",deaf_person:"1f9cf",deaf_woman:"1f9cf-2640",deciduous_tree:"1f333",deer:"1f98c",denmark:"1f1e9-1f1f0",department_store:"1f3ec",derelict_house:"1f3da",desert:"1f3dc",desert_island:"1f3dd",desktop_computer:"1f5a5",detective:"1f575",diamond_shape_with_a_dot_inside:"1f4a0",diamonds:"2666",diego_garcia:"1f1e9-1f1ec",disappointed:"1f61e",disappointed_relieved:"1f625",diving_mask:"1f93f",diya_lamp:"1fa94",dizzy:"1f4ab",dizzy_face:"1f635",djibouti:"1f1e9-1f1ef",dna:"1f9ec",do_not_litter:"1f6af",dog:"1f436",dog2:"1f415",dollar:"1f4b5",dolls:"1f38e",dolphin:"1f42c",dominica:"1f1e9-1f1f2",dominican_republic:"1f1e9-1f1f4",door:"1f6aa",doughnut:"1f369",dove:"1f54a",dragon:"1f409",dragon_face:"1f432",dress:"1f457",dromedary_camel:"1f42a",drooling_face:"1f924",drop_of_blood:"1fa78",droplet:"1f4a7",drum:"1f941",duck:"1f986",dumpling:"1f95f",dvd:"1f4c0","e-mail":"1f4e7",eagle:"1f985",ear:"1f442",ear_of_rice:"1f33e",ear_with_hearing_aid:"1f9bb",earth_africa:"1f30d",earth_americas:"1f30e",earth_asia:"1f30f",ecuador:"1f1ea-1f1e8",egg:"1f95a",eggplant:"1f346",egypt:"1f1ea-1f1ec",eight:"0038-20e3",eight_pointed_black_star:"2734",eight_spoked_asterisk:"2733",eject_button:"23cf",el_salvador:"1f1f8-1f1fb",electric_plug:"1f50c",elephant:"1f418",elf:"1f9dd",elf_man:"1f9dd-2642",elf_woman:"1f9dd-2640",email:"2709",end:"1f51a",england:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",envelope:"2709",envelope_with_arrow:"1f4e9",equatorial_guinea:"1f1ec-1f1f6",eritrea:"1f1ea-1f1f7",es:"1f1ea-1f1f8",estonia:"1f1ea-1f1ea",ethiopia:"1f1ea-1f1f9",eu:"1f1ea-1f1fa",euro:"1f4b6",european_castle:"1f3f0",european_post_office:"1f3e4",european_union:"1f1ea-1f1fa",evergreen_tree:"1f332",exclamation:"2757",exploding_head:"1f92f",expressionless:"1f611",eye:"1f441",eye_speech_bubble:"1f441-1f5e8",eyeglasses:"1f453",eyes:"1f440",face_with_head_bandage:"1f915",face_with_thermometer:"1f912",facepalm:"1f926",facepunch:"1f44a",factory:"1f3ed",factory_worker:"1f9d1-1f3ed",fairy:"1f9da",fairy_man:"1f9da-2642",fairy_woman:"1f9da-2640",falafel:"1f9c6",falkland_islands:"1f1eb-1f1f0",fallen_leaf:"1f342",family:"1f46a",family_man_boy:"1f468-1f466",family_man_boy_boy:"1f468-1f466-1f466",family_man_girl:"1f468-1f467",family_man_girl_boy:"1f468-1f467-1f466",family_man_girl_girl:"1f468-1f467-1f467",family_man_man_boy:"1f468-1f468-1f466",family_man_man_boy_boy:"1f468-1f468-1f466-1f466",family_man_man_girl:"1f468-1f468-1f467",family_man_man_girl_boy:"1f468-1f468-1f467-1f466",family_man_man_girl_girl:"1f468-1f468-1f467-1f467",family_man_woman_boy:"1f468-1f469-1f466",family_man_woman_boy_boy:"1f468-1f469-1f466-1f466",family_man_woman_girl:"1f468-1f469-1f467",family_man_woman_girl_boy:"1f468-1f469-1f467-1f466",family_man_woman_girl_girl:"1f468-1f469-1f467-1f467",family_woman_boy:"1f469-1f466",family_woman_boy_boy:"1f469-1f466-1f466",family_woman_girl:"1f469-1f467",family_woman_girl_boy:"1f469-1f467-1f466",family_woman_girl_girl:"1f469-1f467-1f467",family_woman_woman_boy:"1f469-1f469-1f466",family_woman_woman_boy_boy:"1f469-1f469-1f466-1f466",family_woman_woman_girl:"1f469-1f469-1f467",family_woman_woman_girl_boy:"1f469-1f469-1f467-1f466",family_woman_woman_girl_girl:"1f469-1f469-1f467-1f467",farmer:"1f9d1-1f33e",faroe_islands:"1f1eb-1f1f4",fast_forward:"23e9",fax:"1f4e0",fearful:"1f628",feet:"1f43e",female_detective:"1f575-2640",female_sign:"2640",ferris_wheel:"1f3a1",ferry:"26f4",field_hockey:"1f3d1",fiji:"1f1eb-1f1ef",file_cabinet:"1f5c4",file_folder:"1f4c1",film_projector:"1f4fd",film_strip:"1f39e",finland:"1f1eb-1f1ee",fire:"1f525",fire_engine:"1f692",fire_extinguisher:"1f9ef",firecracker:"1f9e8",firefighter:"1f9d1-1f692",fireworks:"1f386",first_quarter_moon:"1f313",first_quarter_moon_with_face:"1f31b",fish:"1f41f",fish_cake:"1f365",fishing_pole_and_fish:"1f3a3",fist:"270a",fist_left:"1f91b",fist_oncoming:"1f44a",fist_raised:"270a",fist_right:"1f91c",five:"0035-20e3",flags:"1f38f",flamingo:"1f9a9",flashlight:"1f526",flat_shoe:"1f97f",fleur_de_lis:"269c",flight_arrival:"1f6ec",flight_departure:"1f6eb",flipper:"1f42c",floppy_disk:"1f4be",flower_playing_cards:"1f3b4",flushed:"1f633",flying_disc:"1f94f",flying_saucer:"1f6f8",fog:"1f32b",foggy:"1f301",foot:"1f9b6",football:"1f3c8",footprints:"1f463",fork_and_knife:"1f374",fortune_cookie:"1f960",fountain:"26f2",fountain_pen:"1f58b",four:"0034-20e3",four_leaf_clover:"1f340",fox_face:"1f98a",fr:"1f1eb-1f1f7",framed_picture:"1f5bc",free:"1f193",french_guiana:"1f1ec-1f1eb",french_polynesia:"1f1f5-1f1eb",french_southern_territories:"1f1f9-1f1eb",fried_egg:"1f373",fried_shrimp:"1f364",fries:"1f35f",frog:"1f438",frowning:"1f626",frowning_face:"2639",frowning_man:"1f64d-2642",frowning_person:"1f64d",frowning_woman:"1f64d-2640",fu:"1f595",fuelpump:"26fd",full_moon:"1f315",full_moon_with_face:"1f31d",funeral_urn:"26b1",gabon:"1f1ec-1f1e6",gambia:"1f1ec-1f1f2",game_die:"1f3b2",garlic:"1f9c4",gb:"1f1ec-1f1e7",gear:"2699",gem:"1f48e",gemini:"264a",genie:"1f9de",genie_man:"1f9de-2642",genie_woman:"1f9de-2640",georgia:"1f1ec-1f1ea",ghana:"1f1ec-1f1ed",ghost:"1f47b",gibraltar:"1f1ec-1f1ee",gift:"1f381",gift_heart:"1f49d",giraffe:"1f992",girl:"1f467",globe_with_meridians:"1f310",gloves:"1f9e4",goal_net:"1f945",goat:"1f410",goggles:"1f97d",golf:"26f3",golfing:"1f3cc",golfing_man:"1f3cc-2642",golfing_woman:"1f3cc-2640",gorilla:"1f98d",grapes:"1f347",greece:"1f1ec-1f1f7",green_apple:"1f34f",green_book:"1f4d7",green_circle:"1f7e2",green_heart:"1f49a",green_salad:"1f957",green_square:"1f7e9",greenland:"1f1ec-1f1f1",grenada:"1f1ec-1f1e9",grey_exclamation:"2755",grey_question:"2754",grimacing:"1f62c",grin:"1f601",grinning:"1f600",guadeloupe:"1f1ec-1f1f5",guam:"1f1ec-1f1fa",guard:"1f482",guardsman:"1f482-2642",guardswoman:"1f482-2640",guatemala:"1f1ec-1f1f9",guernsey:"1f1ec-1f1ec",guide_dog:"1f9ae",guinea:"1f1ec-1f1f3",guinea_bissau:"1f1ec-1f1fc",guitar:"1f3b8",gun:"1f52b",guyana:"1f1ec-1f1fe",haircut:"1f487",haircut_man:"1f487-2642",haircut_woman:"1f487-2640",haiti:"1f1ed-1f1f9",hamburger:"1f354",hammer:"1f528",hammer_and_pick:"2692",hammer_and_wrench:"1f6e0",hamster:"1f439",hand:"270b",hand_over_mouth:"1f92d",handbag:"1f45c",handball_person:"1f93e",handshake:"1f91d",hankey:"1f4a9",hash:"0023-20e3",hatched_chick:"1f425",hatching_chick:"1f423",headphones:"1f3a7",health_worker:"1f9d1-2695",hear_no_evil:"1f649",heard_mcdonald_islands:"1f1ed-1f1f2",heart:"2764",heart_decoration:"1f49f",heart_eyes:"1f60d",heart_eyes_cat:"1f63b",heartbeat:"1f493",heartpulse:"1f497",hearts:"2665",heavy_check_mark:"2714",heavy_division_sign:"2797",heavy_dollar_sign:"1f4b2",heavy_exclamation_mark:"2757",heavy_heart_exclamation:"2763",heavy_minus_sign:"2796",heavy_multiplication_x:"2716",heavy_plus_sign:"2795",hedgehog:"1f994",helicopter:"1f681",herb:"1f33f",hibiscus:"1f33a",high_brightness:"1f506",high_heel:"1f460",hiking_boot:"1f97e",hindu_temple:"1f6d5",hippopotamus:"1f99b",hocho:"1f52a",hole:"1f573",honduras:"1f1ed-1f1f3",honey_pot:"1f36f",honeybee:"1f41d",hong_kong:"1f1ed-1f1f0",horse:"1f434",horse_racing:"1f3c7",hospital:"1f3e5",hot_face:"1f975",hot_pepper:"1f336",hotdog:"1f32d",hotel:"1f3e8",hotsprings:"2668",hourglass:"231b",hourglass_flowing_sand:"23f3",house:"1f3e0",house_with_garden:"1f3e1",houses:"1f3d8",hugs:"1f917",hungary:"1f1ed-1f1fa",hushed:"1f62f",ice_cream:"1f368",ice_cube:"1f9ca",ice_hockey:"1f3d2",ice_skate:"26f8",icecream:"1f366",iceland:"1f1ee-1f1f8",id:"1f194",ideograph_advantage:"1f250",imp:"1f47f",inbox_tray:"1f4e5",incoming_envelope:"1f4e8",india:"1f1ee-1f1f3",indonesia:"1f1ee-1f1e9",infinity:"267e",information_desk_person:"1f481",information_source:"2139",innocent:"1f607",interrobang:"2049",iphone:"1f4f1",iran:"1f1ee-1f1f7",iraq:"1f1ee-1f1f6",ireland:"1f1ee-1f1ea",isle_of_man:"1f1ee-1f1f2",israel:"1f1ee-1f1f1",it:"1f1ee-1f1f9",izakaya_lantern:"1f3ee",jack_o_lantern:"1f383",jamaica:"1f1ef-1f1f2",japan:"1f5fe",japanese_castle:"1f3ef",japanese_goblin:"1f47a",japanese_ogre:"1f479",jeans:"1f456",jersey:"1f1ef-1f1ea",jigsaw:"1f9e9",jordan:"1f1ef-1f1f4",joy:"1f602",joy_cat:"1f639",joystick:"1f579",jp:"1f1ef-1f1f5",judge:"1f9d1-2696",juggling_person:"1f939",kaaba:"1f54b",kangaroo:"1f998",kazakhstan:"1f1f0-1f1ff",kenya:"1f1f0-1f1ea",key:"1f511",keyboard:"2328",keycap_ten:"1f51f",kick_scooter:"1f6f4",kimono:"1f458",kiribati:"1f1f0-1f1ee",kiss:"1f48b",kissing:"1f617",kissing_cat:"1f63d",kissing_closed_eyes:"1f61a",kissing_heart:"1f618",kissing_smiling_eyes:"1f619",kite:"1fa81",kiwi_fruit:"1f95d",kneeling_man:"1f9ce-2642",kneeling_person:"1f9ce",kneeling_woman:"1f9ce-2640",knife:"1f52a",koala:"1f428",koko:"1f201",kosovo:"1f1fd-1f1f0",kr:"1f1f0-1f1f7",kuwait:"1f1f0-1f1fc",kyrgyzstan:"1f1f0-1f1ec",lab_coat:"1f97c",label:"1f3f7",lacrosse:"1f94d",lantern:"1f3ee",laos:"1f1f1-1f1e6",large_blue_circle:"1f535",large_blue_diamond:"1f537",large_orange_diamond:"1f536",last_quarter_moon:"1f317",last_quarter_moon_with_face:"1f31c",latin_cross:"271d",latvia:"1f1f1-1f1fb",laughing:"1f606",leafy_green:"1f96c",leaves:"1f343",lebanon:"1f1f1-1f1e7",ledger:"1f4d2",left_luggage:"1f6c5",left_right_arrow:"2194",left_speech_bubble:"1f5e8",leftwards_arrow_with_hook:"21a9",leg:"1f9b5",lemon:"1f34b",leo:"264c",leopard:"1f406",lesotho:"1f1f1-1f1f8",level_slider:"1f39a",liberia:"1f1f1-1f1f7",libra:"264e",libya:"1f1f1-1f1fe",liechtenstein:"1f1f1-1f1ee",light_rail:"1f688",link:"1f517",lion:"1f981",lips:"1f444",lipstick:"1f484",lithuania:"1f1f1-1f1f9",lizard:"1f98e",llama:"1f999",lobster:"1f99e",lock:"1f512",lock_with_ink_pen:"1f50f",lollipop:"1f36d",loop:"27bf",lotion_bottle:"1f9f4",lotus_position:"1f9d8",lotus_position_man:"1f9d8-2642",lotus_position_woman:"1f9d8-2640",loud_sound:"1f50a",loudspeaker:"1f4e2",love_hotel:"1f3e9",love_letter:"1f48c",love_you_gesture:"1f91f",low_brightness:"1f505",luggage:"1f9f3",luxembourg:"1f1f1-1f1fa",lying_face:"1f925",m:"24c2",macau:"1f1f2-1f1f4",macedonia:"1f1f2-1f1f0",madagascar:"1f1f2-1f1ec",mag:"1f50d",mag_right:"1f50e",mage:"1f9d9",mage_man:"1f9d9-2642",mage_woman:"1f9d9-2640",magnet:"1f9f2",mahjong:"1f004",mailbox:"1f4eb",mailbox_closed:"1f4ea",mailbox_with_mail:"1f4ec",mailbox_with_no_mail:"1f4ed",malawi:"1f1f2-1f1fc",malaysia:"1f1f2-1f1fe",maldives:"1f1f2-1f1fb",male_detective:"1f575-2642",male_sign:"2642",mali:"1f1f2-1f1f1",malta:"1f1f2-1f1f9",man:"1f468",man_artist:"1f468-1f3a8",man_astronaut:"1f468-1f680",man_cartwheeling:"1f938-2642",man_cook:"1f468-1f373",man_dancing:"1f57a",man_facepalming:"1f926-2642",man_factory_worker:"1f468-1f3ed",man_farmer:"1f468-1f33e",man_firefighter:"1f468-1f692",man_health_worker:"1f468-2695",man_in_manual_wheelchair:"1f468-1f9bd",man_in_motorized_wheelchair:"1f468-1f9bc",man_in_tuxedo:"1f935",man_judge:"1f468-2696",man_juggling:"1f939-2642",man_mechanic:"1f468-1f527",man_office_worker:"1f468-1f4bc",man_pilot:"1f468-2708",man_playing_handball:"1f93e-2642",man_playing_water_polo:"1f93d-2642",man_scientist:"1f468-1f52c",man_shrugging:"1f937-2642",man_singer:"1f468-1f3a4",man_student:"1f468-1f393",man_teacher:"1f468-1f3eb",man_technologist:"1f468-1f4bb",man_with_gua_pi_mao:"1f472",man_with_probing_cane:"1f468-1f9af",man_with_turban:"1f473-2642",mandarin:"1f34a",mango:"1f96d",mans_shoe:"1f45e",mantelpiece_clock:"1f570",manual_wheelchair:"1f9bd",maple_leaf:"1f341",marshall_islands:"1f1f2-1f1ed",martial_arts_uniform:"1f94b",martinique:"1f1f2-1f1f6",mask:"1f637",massage:"1f486",massage_man:"1f486-2642",massage_woman:"1f486-2640",mate:"1f9c9",mauritania:"1f1f2-1f1f7",mauritius:"1f1f2-1f1fa",mayotte:"1f1fe-1f1f9",meat_on_bone:"1f356",mechanic:"1f9d1-1f527",mechanical_arm:"1f9be",mechanical_leg:"1f9bf",medal_military:"1f396",medal_sports:"1f3c5",medical_symbol:"2695",mega:"1f4e3",melon:"1f348",memo:"1f4dd",men_wrestling:"1f93c-2642",menorah:"1f54e",mens:"1f6b9",mermaid:"1f9dc-2640",merman:"1f9dc-2642",merperson:"1f9dc",metal:"1f918",metro:"1f687",mexico:"1f1f2-1f1fd",microbe:"1f9a0",micronesia:"1f1eb-1f1f2",microphone:"1f3a4",microscope:"1f52c",middle_finger:"1f595",milk_glass:"1f95b",milky_way:"1f30c",minibus:"1f690",minidisc:"1f4bd",mobile_phone_off:"1f4f4",moldova:"1f1f2-1f1e9",monaco:"1f1f2-1f1e8",money_mouth_face:"1f911",money_with_wings:"1f4b8",moneybag:"1f4b0",mongolia:"1f1f2-1f1f3",monkey:"1f412",monkey_face:"1f435",monocle_face:"1f9d0",monorail:"1f69d",montenegro:"1f1f2-1f1ea",montserrat:"1f1f2-1f1f8",moon:"1f314",moon_cake:"1f96e",morocco:"1f1f2-1f1e6",mortar_board:"1f393",mosque:"1f54c",mosquito:"1f99f",motor_boat:"1f6e5",motor_scooter:"1f6f5",motorcycle:"1f3cd",motorized_wheelchair:"1f9bc",motorway:"1f6e3",mount_fuji:"1f5fb",mountain:"26f0",mountain_bicyclist:"1f6b5",mountain_biking_man:"1f6b5-2642",mountain_biking_woman:"1f6b5-2640",mountain_cableway:"1f6a0",mountain_railway:"1f69e",mountain_snow:"1f3d4",mouse:"1f42d",mouse2:"1f401",movie_camera:"1f3a5",moyai:"1f5ff",mozambique:"1f1f2-1f1ff",mrs_claus:"1f936",muscle:"1f4aa",mushroom:"1f344",musical_keyboard:"1f3b9",musical_note:"1f3b5",musical_score:"1f3bc",mute:"1f507",myanmar:"1f1f2-1f1f2",nail_care:"1f485",name_badge:"1f4db",namibia:"1f1f3-1f1e6",national_park:"1f3de",nauru:"1f1f3-1f1f7",nauseated_face:"1f922",nazar_amulet:"1f9ff",necktie:"1f454",negative_squared_cross_mark:"274e",nepal:"1f1f3-1f1f5",nerd_face:"1f913",netherlands:"1f1f3-1f1f1",neutral_face:"1f610",new:"1f195",new_caledonia:"1f1f3-1f1e8",new_moon:"1f311",new_moon_with_face:"1f31a",new_zealand:"1f1f3-1f1ff",newspaper:"1f4f0",newspaper_roll:"1f5de",next_track_button:"23ed",ng:"1f196",ng_man:"1f645-2642",ng_woman:"1f645-2640",nicaragua:"1f1f3-1f1ee",niger:"1f1f3-1f1ea",nigeria:"1f1f3-1f1ec",night_with_stars:"1f303",nine:"0039-20e3",niue:"1f1f3-1f1fa",no_bell:"1f515",no_bicycles:"1f6b3",no_entry:"26d4",no_entry_sign:"1f6ab",no_good:"1f645",no_good_man:"1f645-2642",no_good_woman:"1f645-2640",no_mobile_phones:"1f4f5",no_mouth:"1f636",no_pedestrians:"1f6b7",no_smoking:"1f6ad","non-potable_water":"1f6b1",norfolk_island:"1f1f3-1f1eb",north_korea:"1f1f0-1f1f5",northern_mariana_islands:"1f1f2-1f1f5",norway:"1f1f3-1f1f4",nose:"1f443",notebook:"1f4d3",notebook_with_decorative_cover:"1f4d4",notes:"1f3b6",nut_and_bolt:"1f529",o:"2b55",o2:"1f17e",ocean:"1f30a",octopus:"1f419",oden:"1f362",office:"1f3e2",office_worker:"1f9d1-1f4bc",oil_drum:"1f6e2",ok:"1f197",ok_hand:"1f44c",ok_man:"1f646-2642",ok_person:"1f646",ok_woman:"1f646-2640",old_key:"1f5dd",older_adult:"1f9d3",older_man:"1f474",older_woman:"1f475",om:"1f549",oman:"1f1f4-1f1f2",on:"1f51b",oncoming_automobile:"1f698",oncoming_bus:"1f68d",oncoming_police_car:"1f694",oncoming_taxi:"1f696",one:"0031-20e3",one_piece_swimsuit:"1fa71",onion:"1f9c5",open_book:"1f4d6",open_file_folder:"1f4c2",open_hands:"1f450",open_mouth:"1f62e",open_umbrella:"2602",ophiuchus:"26ce",orange:"1f34a",orange_book:"1f4d9",orange_circle:"1f7e0",orange_heart:"1f9e1",orange_square:"1f7e7",orangutan:"1f9a7",orthodox_cross:"2626",otter:"1f9a6",outbox_tray:"1f4e4",owl:"1f989",ox:"1f402",oyster:"1f9aa",package:"1f4e6",page_facing_up:"1f4c4",page_with_curl:"1f4c3",pager:"1f4df",paintbrush:"1f58c",pakistan:"1f1f5-1f1f0",palau:"1f1f5-1f1fc",palestinian_territories:"1f1f5-1f1f8",palm_tree:"1f334",palms_up_together:"1f932",panama:"1f1f5-1f1e6",pancakes:"1f95e",panda_face:"1f43c",paperclip:"1f4ce",paperclips:"1f587",papua_new_guinea:"1f1f5-1f1ec",parachute:"1fa82",paraguay:"1f1f5-1f1fe",parasol_on_ground:"26f1",parking:"1f17f",parrot:"1f99c",part_alternation_mark:"303d",partly_sunny:"26c5",partying_face:"1f973",passenger_ship:"1f6f3",passport_control:"1f6c2",pause_button:"23f8",paw_prints:"1f43e",peace_symbol:"262e",peach:"1f351",peacock:"1f99a",peanuts:"1f95c",pear:"1f350",pen:"1f58a",pencil:"1f4dd",pencil2:"270f",penguin:"1f427",pensive:"1f614",people_holding_hands:"1f9d1-1f91d-1f9d1",performing_arts:"1f3ad",persevere:"1f623",person_bald:"1f9d1-1f9b2",person_curly_hair:"1f9d1-1f9b1",person_fencing:"1f93a",person_in_manual_wheelchair:"1f9d1-1f9bd",person_in_motorized_wheelchair:"1f9d1-1f9bc",person_red_hair:"1f9d1-1f9b0",person_white_hair:"1f9d1-1f9b3",person_with_probing_cane:"1f9d1-1f9af",person_with_turban:"1f473",peru:"1f1f5-1f1ea",petri_dish:"1f9eb",philippines:"1f1f5-1f1ed",phone:"260e",pick:"26cf",pie:"1f967",pig:"1f437",pig2:"1f416",pig_nose:"1f43d",pill:"1f48a",pilot:"1f9d1-2708",pinching_hand:"1f90f",pineapple:"1f34d",ping_pong:"1f3d3",pirate_flag:"1f3f4-2620",pisces:"2653",pitcairn_islands:"1f1f5-1f1f3",pizza:"1f355",place_of_worship:"1f6d0",plate_with_cutlery:"1f37d",play_or_pause_button:"23ef",pleading_face:"1f97a",point_down:"1f447",point_left:"1f448",point_right:"1f449",point_up:"261d",point_up_2:"1f446",poland:"1f1f5-1f1f1",police_car:"1f693",police_officer:"1f46e",policeman:"1f46e-2642",policewoman:"1f46e-2640",poodle:"1f429",poop:"1f4a9",popcorn:"1f37f",portugal:"1f1f5-1f1f9",post_office:"1f3e3",postal_horn:"1f4ef",postbox:"1f4ee",potable_water:"1f6b0",potato:"1f954",pouch:"1f45d",poultry_leg:"1f357",pound:"1f4b7",pout:"1f621",pouting_cat:"1f63e",pouting_face:"1f64e",pouting_man:"1f64e-2642",pouting_woman:"1f64e-2640",pray:"1f64f",prayer_beads:"1f4ff",pregnant_woman:"1f930",pretzel:"1f968",previous_track_button:"23ee",prince:"1f934",princess:"1f478",printer:"1f5a8",probing_cane:"1f9af",puerto_rico:"1f1f5-1f1f7",punch:"1f44a",purple_circle:"1f7e3",purple_heart:"1f49c",purple_square:"1f7ea",purse:"1f45b",pushpin:"1f4cc",put_litter_in_its_place:"1f6ae",qatar:"1f1f6-1f1e6",question:"2753",rabbit:"1f430",rabbit2:"1f407",raccoon:"1f99d",racehorse:"1f40e",racing_car:"1f3ce",radio:"1f4fb",radio_button:"1f518",radioactive:"2622",rage:"1f621",railway_car:"1f683",railway_track:"1f6e4",rainbow:"1f308",rainbow_flag:"1f3f3-1f308",raised_back_of_hand:"1f91a",raised_eyebrow:"1f928",raised_hand:"270b",raised_hand_with_fingers_splayed:"1f590",raised_hands:"1f64c",raising_hand:"1f64b",raising_hand_man:"1f64b-2642",raising_hand_woman:"1f64b-2640",ram:"1f40f",ramen:"1f35c",rat:"1f400",razor:"1fa92",receipt:"1f9fe",record_button:"23fa",recycle:"267b",red_car:"1f697",red_circle:"1f534",red_envelope:"1f9e7",red_haired_man:"1f468-1f9b0",red_haired_woman:"1f469-1f9b0",red_square:"1f7e5",registered:"00ae",relaxed:"263a",relieved:"1f60c",reminder_ribbon:"1f397",repeat:"1f501",repeat_one:"1f502",rescue_worker_helmet:"26d1",restroom:"1f6bb",reunion:"1f1f7-1f1ea",revolving_hearts:"1f49e",rewind:"23ea",rhinoceros:"1f98f",ribbon:"1f380",rice:"1f35a",rice_ball:"1f359",rice_cracker:"1f358",rice_scene:"1f391",right_anger_bubble:"1f5ef",ring:"1f48d",ringed_planet:"1fa90",robot:"1f916",rocket:"1f680",rofl:"1f923",roll_eyes:"1f644",roll_of_paper:"1f9fb",roller_coaster:"1f3a2",romania:"1f1f7-1f1f4",rooster:"1f413",rose:"1f339",rosette:"1f3f5",rotating_light:"1f6a8",round_pushpin:"1f4cd",rowboat:"1f6a3",rowing_man:"1f6a3-2642",rowing_woman:"1f6a3-2640",ru:"1f1f7-1f1fa",rugby_football:"1f3c9",runner:"1f3c3",running:"1f3c3",running_man:"1f3c3-2642",running_shirt_with_sash:"1f3bd",running_woman:"1f3c3-2640",rwanda:"1f1f7-1f1fc",sa:"1f202",safety_pin:"1f9f7",safety_vest:"1f9ba",sagittarius:"2650",sailboat:"26f5",sake:"1f376",salt:"1f9c2",samoa:"1f1fc-1f1f8",san_marino:"1f1f8-1f1f2",sandal:"1f461",sandwich:"1f96a",santa:"1f385",sao_tome_principe:"1f1f8-1f1f9",sari:"1f97b",sassy_man:"1f481-2642",sassy_woman:"1f481-2640",satellite:"1f4e1",satisfied:"1f606",saudi_arabia:"1f1f8-1f1e6",sauna_man:"1f9d6-2642",sauna_person:"1f9d6",sauna_woman:"1f9d6-2640",sauropod:"1f995",saxophone:"1f3b7",scarf:"1f9e3",school:"1f3eb",school_satchel:"1f392",scientist:"1f9d1-1f52c",scissors:"2702",scorpion:"1f982",scorpius:"264f",scotland:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",scream:"1f631",scream_cat:"1f640",scroll:"1f4dc",seat:"1f4ba",secret:"3299",see_no_evil:"1f648",seedling:"1f331",selfie:"1f933",senegal:"1f1f8-1f1f3",serbia:"1f1f7-1f1f8",service_dog:"1f415-1f9ba",seven:"0037-20e3",seychelles:"1f1f8-1f1e8",shallow_pan_of_food:"1f958",shamrock:"2618",shark:"1f988",shaved_ice:"1f367",sheep:"1f411",shell:"1f41a",shield:"1f6e1",shinto_shrine:"26e9",ship:"1f6a2",shirt:"1f455",poo:"1f4a9",shoe:"1f45e",shopping:"1f6cd",shopping_cart:"1f6d2",shorts:"1fa73",shower:"1f6bf",shrimp:"1f990",shrug:"1f937",shushing_face:"1f92b",sierra_leone:"1f1f8-1f1f1",signal_strength:"1f4f6",singapore:"1f1f8-1f1ec",singer:"1f9d1-1f3a4",sint_maarten:"1f1f8-1f1fd",six:"0036-20e3",six_pointed_star:"1f52f",skateboard:"1f6f9",ski:"1f3bf",skier:"26f7",skull:"1f480",skull_and_crossbones:"2620",skunk:"1f9a8",sled:"1f6f7",sleeping:"1f634",sleeping_bed:"1f6cc",sleepy:"1f62a",slightly_frowning_face:"1f641",slightly_smiling_face:"1f642",slot_machine:"1f3b0",sloth:"1f9a5",slovakia:"1f1f8-1f1f0",slovenia:"1f1f8-1f1ee",small_airplane:"1f6e9",small_blue_diamond:"1f539",small_orange_diamond:"1f538",small_red_triangle:"1f53a",small_red_triangle_down:"1f53b",smile:"1f604",smile_cat:"1f638",smiley:"1f603",smiley_cat:"1f63a",smiling_face_with_three_hearts:"1f970",smiling_imp:"1f608",smirk:"1f60f",smirk_cat:"1f63c",smoking:"1f6ac",snail:"1f40c",snake:"1f40d",sneezing_face:"1f927",snowboarder:"1f3c2",snowflake:"2744",snowman:"26c4",snowman_with_snow:"2603",soap:"1f9fc",sob:"1f62d",soccer:"26bd",socks:"1f9e6",softball:"1f94e",solomon_islands:"1f1f8-1f1e7",somalia:"1f1f8-1f1f4",soon:"1f51c",sos:"1f198",sound:"1f509",south_africa:"1f1ff-1f1e6",south_georgia_south_sandwich_islands:"1f1ec-1f1f8",south_sudan:"1f1f8-1f1f8",space_invader:"1f47e",spades:"2660",spaghetti:"1f35d",sparkle:"2747",sparkler:"1f387",sparkles:"2728",sparkling_heart:"1f496",speak_no_evil:"1f64a",speaker:"1f508",speaking_head:"1f5e3",speech_balloon:"1f4ac",speedboat:"1f6a4",spider:"1f577",spider_web:"1f578",spiral_calendar:"1f5d3",spiral_notepad:"1f5d2",sponge:"1f9fd",spoon:"1f944",squid:"1f991",sri_lanka:"1f1f1-1f1f0",st_barthelemy:"1f1e7-1f1f1",st_helena:"1f1f8-1f1ed",st_kitts_nevis:"1f1f0-1f1f3",st_lucia:"1f1f1-1f1e8",st_martin:"1f1f2-1f1eb",st_pierre_miquelon:"1f1f5-1f1f2",st_vincent_grenadines:"1f1fb-1f1e8",stadium:"1f3df",standing_man:"1f9cd-2642",standing_person:"1f9cd",standing_woman:"1f9cd-2640",star:"2b50",star2:"1f31f",star_and_crescent:"262a",star_of_david:"2721",star_struck:"1f929",stars:"1f320",station:"1f689",statue_of_liberty:"1f5fd",steam_locomotive:"1f682",stethoscope:"1fa7a",stew:"1f372",stop_button:"23f9",stop_sign:"1f6d1",stopwatch:"23f1",straight_ruler:"1f4cf",strawberry:"1f353",stuck_out_tongue:"1f61b",stuck_out_tongue_closed_eyes:"1f61d",stuck_out_tongue_winking_eye:"1f61c",student:"1f9d1-1f393",studio_microphone:"1f399",stuffed_flatbread:"1f959",sudan:"1f1f8-1f1e9",sun_behind_large_cloud:"1f325",sun_behind_rain_cloud:"1f326",sun_behind_small_cloud:"1f324",sun_with_face:"1f31e",sunflower:"1f33b",sunglasses:"1f60e",sunny:"2600",sunrise:"1f305",sunrise_over_mountains:"1f304",superhero:"1f9b8",superhero_man:"1f9b8-2642",superhero_woman:"1f9b8-2640",supervillain:"1f9b9",supervillain_man:"1f9b9-2642",supervillain_woman:"1f9b9-2640",surfer:"1f3c4",surfing_man:"1f3c4-2642",surfing_woman:"1f3c4-2640",suriname:"1f1f8-1f1f7",sushi:"1f363",suspension_railway:"1f69f",svalbard_jan_mayen:"1f1f8-1f1ef",swan:"1f9a2",swaziland:"1f1f8-1f1ff",sweat:"1f613",sweat_drops:"1f4a6",sweat_smile:"1f605",sweden:"1f1f8-1f1ea",sweet_potato:"1f360",swim_brief:"1fa72",swimmer:"1f3ca",swimming_man:"1f3ca-2642",swimming_woman:"1f3ca-2640",switzerland:"1f1e8-1f1ed",symbols:"1f523",synagogue:"1f54d",syria:"1f1f8-1f1fe",syringe:"1f489","t-rex":"1f996",taco:"1f32e",tada:"1f389",taiwan:"1f1f9-1f1fc",tajikistan:"1f1f9-1f1ef",takeout_box:"1f961",tanabata_tree:"1f38b",tangerine:"1f34a",tanzania:"1f1f9-1f1ff",taurus:"2649",taxi:"1f695",tea:"1f375",teacher:"1f9d1-1f3eb",technologist:"1f9d1-1f4bb",teddy_bear:"1f9f8",telephone:"260e",telephone_receiver:"1f4de",telescope:"1f52d",tennis:"1f3be",tent:"26fa",test_tube:"1f9ea",thailand:"1f1f9-1f1ed",thermometer:"1f321",thinking:"1f914",thought_balloon:"1f4ad",thread:"1f9f5",three:"0033-20e3",thumbsdown:"1f44e",thumbsup:"1f44d",ticket:"1f3ab",tickets:"1f39f",tiger:"1f42f",tiger2:"1f405",timer_clock:"23f2",timor_leste:"1f1f9-1f1f1",tipping_hand_man:"1f481-2642",tipping_hand_person:"1f481",tipping_hand_woman:"1f481-2640",tired_face:"1f62b",tm:"2122",togo:"1f1f9-1f1ec",toilet:"1f6bd",tokelau:"1f1f9-1f1f0",tokyo_tower:"1f5fc",tomato:"1f345",tonga:"1f1f9-1f1f4",tongue:"1f445",toolbox:"1f9f0",tooth:"1f9b7",top:"1f51d",tophat:"1f3a9",tornado:"1f32a",tr:"1f1f9-1f1f7",trackball:"1f5b2",tractor:"1f69c",traffic_light:"1f6a5",train:"1f68b",train2:"1f686",tram:"1f68a",triangular_flag_on_post:"1f6a9",triangular_ruler:"1f4d0",trident:"1f531",trinidad_tobago:"1f1f9-1f1f9",tristan_da_cunha:"1f1f9-1f1e6",triumph:"1f624",trolleybus:"1f68e",trophy:"1f3c6",tropical_drink:"1f379",tropical_fish:"1f420",truck:"1f69a",trumpet:"1f3ba",tshirt:"1f455",tulip:"1f337",tumbler_glass:"1f943",tunisia:"1f1f9-1f1f3",turkey:"1f983",turkmenistan:"1f1f9-1f1f2",turks_caicos_islands:"1f1f9-1f1e8",turtle:"1f422",tuvalu:"1f1f9-1f1fb",tv:"1f4fa",twisted_rightwards_arrows:"1f500",two:"0032-20e3",two_hearts:"1f495",two_men_holding_hands:"1f46c",two_women_holding_hands:"1f46d",u5272:"1f239",u5408:"1f234",u55b6:"1f23a",u6307:"1f22f",u6708:"1f237",u6709:"1f236",u6e80:"1f235",u7121:"1f21a",u7533:"1f238",u7981:"1f232",u7a7a:"1f233",uganda:"1f1fa-1f1ec",uk:"1f1ec-1f1e7",ukraine:"1f1fa-1f1e6",umbrella:"2614",unamused:"1f612",underage:"1f51e",unicorn:"1f984",united_arab_emirates:"1f1e6-1f1ea",united_nations:"1f1fa-1f1f3",unlock:"1f513",up:"1f199",upside_down_face:"1f643",uruguay:"1f1fa-1f1fe",us:"1f1fa-1f1f8",us_outlying_islands:"1f1fa-1f1f2",us_virgin_islands:"1f1fb-1f1ee",uzbekistan:"1f1fa-1f1ff",v:"270c",vampire:"1f9db",vampire_man:"1f9db-2642",vampire_woman:"1f9db-2640",vanuatu:"1f1fb-1f1fa",vatican_city:"1f1fb-1f1e6",venezuela:"1f1fb-1f1ea",vertical_traffic_light:"1f6a6",vhs:"1f4fc",vibration_mode:"1f4f3",video_camera:"1f4f9",video_game:"1f3ae",vietnam:"1f1fb-1f1f3",violin:"1f3bb",virgo:"264d",volcano:"1f30b",volleyball:"1f3d0",vomiting_face:"1f92e",vs:"1f19a",vulcan_salute:"1f596",waffle:"1f9c7",wales:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",walking:"1f6b6",walking_man:"1f6b6-2642",walking_woman:"1f6b6-2640",wallis_futuna:"1f1fc-1f1eb",waning_crescent_moon:"1f318",waning_gibbous_moon:"1f316",warning:"26a0",wastebasket:"1f5d1",watch:"231a",water_buffalo:"1f403",water_polo:"1f93d",watermelon:"1f349",wave:"1f44b",wavy_dash:"3030",waxing_crescent_moon:"1f312",waxing_gibbous_moon:"1f314",wc:"1f6be",weary:"1f629",wedding:"1f492",weight_lifting:"1f3cb",weight_lifting_man:"1f3cb-2642",weight_lifting_woman:"1f3cb-2640",western_sahara:"1f1ea-1f1ed",whale:"1f433",whale2:"1f40b",wheel_of_dharma:"2638",wheelchair:"267f",white_check_mark:"2705",white_circle:"26aa",white_flag:"1f3f3",white_flower:"1f4ae",white_haired_man:"1f468-1f9b3",white_haired_woman:"1f469-1f9b3",white_heart:"1f90d",white_large_square:"2b1c",white_medium_small_square:"25fd",white_medium_square:"25fb",white_small_square:"25ab",white_square_button:"1f533",wilted_flower:"1f940",wind_chime:"1f390",wind_face:"1f32c",wine_glass:"1f377",wink:"1f609",wolf:"1f43a",woman:"1f469",woman_artist:"1f469-1f3a8",woman_astronaut:"1f469-1f680",woman_cartwheeling:"1f938-2640",woman_cook:"1f469-1f373",woman_dancing:"1f483",woman_facepalming:"1f926-2640",woman_factory_worker:"1f469-1f3ed",woman_farmer:"1f469-1f33e",woman_firefighter:"1f469-1f692",woman_health_worker:"1f469-2695",woman_in_manual_wheelchair:"1f469-1f9bd",woman_in_motorized_wheelchair:"1f469-1f9bc",woman_judge:"1f469-2696",woman_juggling:"1f939-2640",woman_mechanic:"1f469-1f527",woman_office_worker:"1f469-1f4bc",woman_pilot:"1f469-2708",woman_playing_handball:"1f93e-2640",woman_playing_water_polo:"1f93d-2640",woman_scientist:"1f469-1f52c",woman_shrugging:"1f937-2640",woman_singer:"1f469-1f3a4",woman_student:"1f469-1f393",woman_teacher:"1f469-1f3eb",woman_technologist:"1f469-1f4bb",woman_with_headscarf:"1f9d5",woman_with_probing_cane:"1f469-1f9af",woman_with_turban:"1f473-2640",womans_clothes:"1f45a",womans_hat:"1f452",women_wrestling:"1f93c-2640",womens:"1f6ba",woozy_face:"1f974",world_map:"1f5fa",worried:"1f61f",wrench:"1f527",wrestling:"1f93c",writing_hand:"270d",x:"274c",yarn:"1f9f6",yawning_face:"1f971",yellow_circle:"1f7e1",yellow_heart:"1f49b",yellow_square:"1f7e8",yemen:"1f1fe-1f1ea",yen:"1f4b4",yin_yang:"262f",yo_yo:"1fa80",yum:"1f60b",zambia:"1f1ff-1f1f2",zany_face:"1f92a",zap:"26a1",zebra:"1f993",zero:"0030-20e3",zimbabwe:"1f1ff-1f1fc",zipper_mouth_face:"1f910",zombie:"1f9df",zombie_man:"1f9df-2642",zombie_woman:"1f9df-2640",zzz:"1f4a4"};function qd(t,e){var n=ha(t);if(da){var r=da(t);e&&(r=va(r).call(r,(function(e){return Ea(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xd(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Na(n=qd(Object(i),!0)).call(n,(function(e){co(t,e,i[e])})):Da?Oa(t,Da(i)):Na(r=qd(Object(i))).call(r,(function(e){Pa(t,e,Ea(i,e))}))}return t}function Jd(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}function Zd(){for(var t=[],e=0,n="",r=0,i=arguments.length;r!==i;++r){var a=+(r<0||arguments.length<=r?void 0:arguments[r]);if(!(a<1114111&&a>>>0===a))throw new RangeError("Invalid code point: ".concat(a));a<=65535?e=t.push(a):(a-=65536,e=t.push(55296+(a>>10),a%1024+56320)),e>=16383&&(n+=String.fromCharCode.apply(null,t),t.length=0)}return n+String.fromCharCode.apply(null,t)}var tp=function(t){Xa(n,t);var e=Jd(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},i=r.config;if(Ha(this,n),(t=e.call(this,{config:i})).options={useUnicode:!0,upperCase:!1,customHandled:!1,resourceURL:"https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8",emojis:Xd({},Wd)},"object"!==no(i))return ro(t);var a=i.useUnicode,o=i.customResourceURL,s=i.customRenderer,c=i.upperCase;return t.options.useUnicode="boolean"==typeof a?a:t.options.useUnicode,t.options.upperCase="boolean"==typeof a?c:t.options.upperCase,!1===a&&"string"==typeof o&&(t.options.resourceURL=o),"function"==typeof s&&(t.options.customHandled=!0,t.options.customRenderer=s),t}return ja(n,[{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,e){var r;if(n.options.customHandled&&"function"==typeof n.options.customRenderer)return n.options.customRenderer(e);var i=n.options.emojis[e];if("string"!=typeof i)return t;if(n.options.useUnicode){var a,o=_A(a=i.split("-")).call(a,(function(t){return"0x".concat(t)}));return Zd.apply(void 0,Ku(o))}n.options.upperCase&&(i=i.toUpperCase());var s=n.options.resourceURL.replace(/\$\{code\}/g,i);return uo(r='<img class="emoji" src="'.concat(s,'" alt="')).call(r,Ih(e),'" />')})):t}},{key:"rule",value:function(){var t={begin:":",content:"([a-zA-Z0-9+_]+?)",end:":"};return t.reg=ku(t,"g"),t}}]),n}(mA);function ep(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(tp,"HOOK_NAME","emoji");var np=function(t){Xa(n,t);var e=ep(n);function n(){return Ha(this,n),e.apply(this,arguments)}return ja(n,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,'$1<span style="text-decoration: underline;">$2</span>$3'):t}},{key:"rule",value:function(){var t={begin:"(^| )\\/",end:"\\/( |$)",content:"([^\\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(mA);function rp(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(np,"HOOK_NAME","underline");var ip=function(t){Xa(n,t);var e=rp(n);function n(){return Ha(this,n),e.apply(this,arguments)}return ja(n,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1<mark>$2</mark>$3"):t}},{key:"rule",value:function(){var t={begin:"(^| )==",end:"==( |$|\\n)",content:"([^\\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(mA);co(ip,"HOOK_NAME","highLight"),R.JSON||(R.JSON={stringify:JSON.stringify});var ap=function(t,e,n){return f(R.JSON.stringify,null,arguments)},op=De.includes,sp=c((function(){return!Array(1).includes()}));Wt({target:"Array",proto:!0,forced:sp},{includes:function(t){return op(this,t,arguments.length>1?arguments[1]:void 0)}});var cp=mn("Array").includes,lp=y("".indexOf);Wt({target:"String",proto:!0,forced:!dd("includes")},{includes:function(t){return!!~lp(En(D(this)),En(hd(t)),arguments.length>1?arguments[1]:void 0)}});var Ap=mn("String").includes,up=Array.prototype,hp=String.prototype,fp=function(t){var e=t.includes;return t===up||Q(up,t)&&e===up.includes?cp:"string"==typeof t||t===hp||Q(hp,t)&&e===hp.includes?Ap:e};var dp=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var pp=function(t){return"symbol"==typeof t||tc(t)&&"[object Symbol]"==Jo(t)},gp=jo?jo.prototype:void 0,mp=gp?gp.toString:void 0;var yp=function t(e){if("string"==typeof e)return e;if(oc(e))return dp(e,t)+"";if(pp(e))return mp?mp.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};var vp=function(t){return null==t?"":yp(t)},bp=/[\\^$.*+?()[\]{}|]/g,wp=RegExp(bp.source);var _p=function(t){return(t=vp(t))&&wp.test(t)?t.replace(bp,"\\$&"):t},Ep=function(){return"CodeMirror.Pass"};function Cp(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var xp=function(t){Xa(n,t);var e=Cp(n);function n(t){var r,i=t.config;return Ha(this,n),(r=e.call(this,{needCache:!0})).initConfig(i),r.RULE=r.rule(),r}return ja(n,[{key:"initConfig",value:function(t){var e=this,n=t.suggester;this.suggester={},n&&(Na(n).call(n,(function(t){t.suggestList?(t.keyword||(t.keyword="@"),e.suggester[t.keyword]=t):console.warn("[cherry-suggester]: the suggestList of config is missing.")})),Tp.hasEditor()&&(Tp.editor=null))}},{key:"makeHtml",value:function(t){var e,n;if(!this.RULE.reg)return t;if(!Tp.hasEditor()&&Nf()){var r=this.$engine.$cherry.editor;Tp.setEditor(r),Tp.setSuggester(this.suggester),Tp.bindEvent()}return Su()?t.replace(this.RULE.reg,go(n=this.toHtml).call(n,this)):Wu(t,this.RULE.reg,go(e=this.toHtml).call(e,this),!0,1)}},{key:"toHtml",value:function(t,e,n,r){var i,a,o,s,c;return r?(null===(a=this.suggester[n])||void 0===a||null===(o=a.echo)||void 0===o?void 0:o.call(this,r))||uo(s=uo(c="".concat(e,'<span class="cherry-suggestion">')).call(c,n)).call(s,r,"</span>"):!1===(null===(i=this.suggester[n])||void 0===i?void 0:i.echo)?"".concat(e):this.suggester[n]?r?e+r:"".concat(e):e+r}},{key:"rule",value:function(){var t,e,n;if(!this.suggester||ha(this.suggester).length<=0)return{};var r=_A(t=ha(this.suggester)).call(t,(function(t){return _p(t)})).join("|");return{reg:new RegExp(uo(e=uo(n="".concat(Su()?"((?<!\\\\))[ ]":"(^|[^\\\\])[ ]","(")).call(n,r,")(([^")).call(e,r,"\\s])+)"),"g")}}},{key:"mounted",value:function(){if(!Tp.hasEditor()&&Nf()){var t=this.$engine.$cherry.editor;Tp.setEditor(t),Tp.setSuggester(this.suggester),Tp.bindEvent()}}}]),n}(mA);co(xp,"HOOK_NAME","suggester");var Bp=function(){function t(){Ha(this,t),this.searchCache=!1,this.searchKeyCache=[],this.optionList=[],this.cursorMove=!0,this.suggesterConfig={},!this.$suggesterPanel&&Nf()&&(document.body.append(this.createDom(t.panelWrap)),this.$suggesterPanel=document.querySelector(".cherry-suggester-panel"))}return ja(t,[{key:"hasEditor",value:function(){return!!this.editor&&!!this.editor.editor.display&&!!this.editor.editor.display.wrapper}},{key:"setEditor",value:function(t){this.editor=t}},{key:"setSuggester",value:function(t){this.suggesterConfig=t}},{key:"bindEvent",value:function(){var t=this,e=!1;this.editor.editor.on("change",(function(n,r){e=!0,t.onCodeMirrorChange(n,r)})),this.editor.editor.on("keydown",(function(n,r){e=!0,t.enableRelate()&&t.onKeyDown(n,r)})),this.editor.editor.on("cursorActivity",(function(){e||t.stopRelate(),e=!1}));var n=this.editor.editor.getOption("extraKeys"),r=["Up","Down","Enter"];Na(r).call(r,(function(e){if("function"==typeof n[e]){var r=n[e];n[e]=function(t){if(Tp.cursorMove){var e=r.call(t,t);return e||Ep()}}}else if(n[e]){if("string"==typeof n[e]){var i=n[e];n[e]=function(e){Tp.cursorMove&&t.editor.editor.execCommand(i)}}}else n[e]=function(){if(Tp.cursorMove)return Ep()}})),this.editor.editor.setOption("extraKeys",n),this.editor.editor.on("scroll",(function(e,n){t.searchCache&&t.relocatePanel(t.editor.editor)})),this.onClickPancelItem()}},{key:"onClickPancelItem",value:function(){var t=this;this.$suggesterPanel.addEventListener("click",(function(e){var n=function(t,e){var n,r=-1;return Na(n=t.childNodes).call(n,(function(t,n){return t===e?r=n:""})),r}(t.$suggesterPanel,e.target);n>-1&&t.pasteSelectResult(n),t.stopRelate()}),!1)}},{key:"showsuggesterPanel",value:function(e){var n=e.left,r=e.top,i=e.items;this.$suggesterPanel||(document.body.append(this.createDom(t.panelWrap)),this.$suggesterPanel=document.querySelector(".cherry-suggester-panel")),this.updatePanel(i),this.$suggesterPanel.style.left="".concat(n,"px"),this.$suggesterPanel.style.top="".concat(r,"px"),this.$suggesterPanel.style.display="block",this.$suggesterPanel.style.position="absolute",this.$suggesterPanel.style.zIndex="100"}},{key:"hidesuggesterPanel",value:function(){this.$suggesterPanel&&(this.$suggesterPanel.style.display="none")}},{key:"updatePanel",value:function(t){var e=this,n=_A(t).call(t,(function(t,n){return e.renderPanelItem(t,0===n)})).join("");this.suggesterConfig[this.keyword]&&this.suggesterConfig[this.keyword].suggestListRender&&(n=this.suggesterConfig[this.keyword].suggestListRender.call(this,t)||n),"string"==typeof n?this.$suggesterPanel.innerHTML=n:"object"===no(n)&&1===n.nodeType&&this.$suggesterPanel.append(n)}},{key:"renderPanelItem",value:function(t,e){return e?'<div class="cherry-suggester-panel__item cherry-suggester-panel__item--selected">'.concat(t,"</div>"):'<div class="cherry-suggester-panel__item">'.concat(t,"</div>")}},{key:"createDom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.template||(this.template=document.createElement("div")),this.template.innerHTML=Tl(t).call(t);var e=document.createDocumentFragment();return _A(Array.prototype).call(this.template.childNodes,(function(t,n){e.appendChild(t)})),e}},{key:"relocatePanel",value:function(t){var e=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!e)return!1;var n=t.getCursor(),r=t.lineInfo(n.line).handle.height,i=e.getBoundingClientRect(),a=i.top+r,o=i.left;this.showsuggesterPanel({left:o,top:a,items:this.optionList})}},{key:"startRelate",value:function(t,e,n){this.cursorFrom=n,this.keyword=e,this.searchCache=!0,this.searchKeyCache=[e],this.relocatePanel(t)}},{key:"stopRelate",value:function(){this.hidesuggesterPanel(),this.cursorFrom=null,this.cursorTo=null,this.keyword="",this.searchKeyCache=[],this.searchCache=!1,this.cursorMove=!0}},{key:"pasteSelectResult",value:function(t){if(this.cursorTo||(this.cursorTo=JSON.parse(ap(this.cursorFrom))),this.cursorTo&&(this.cursorTo.ch+=1,this.optionList[t])){var e,n=uo(e=" ".concat(this.keyword)).call(e,this.optionList[t]," ");this.editor.editor.replaceRange(n,this.cursorFrom,this.cursorTo)}}},{key:"findSelectedItemIndex",value:function(){return sA(Array.prototype).call(this.$suggesterPanel.childNodes,(function(t){return t.classList.contains("cherry-suggester-panel__item--selected")}))}},{key:"enableRelate",value:function(){return this.searchCache}},{key:"onCodeMirrorChange",value:function(t,e){var n=this,r=e.text,i=e.from,a=e.to,o=e.origin,s=1===r.length?r[0]:"";if(this.suggesterConfig[s])this.startRelate(t,s,i);else if(this.enableRelate()&&(s||"+delete"===o)){if(this.cursorTo=a,s)this.searchKeyCache.push(s);else if("+delete"===o&&(this.searchKeyCache.pop(),0===this.searchKeyCache.length))return void this.stopRelate();this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""),(function(t){t&&t.length&&(n.optionList=t,n.updatePanel(n.optionList))}))}}},{key:"onKeyDown",value:function(t,e){var n,r=this;if(!this.$suggesterPanel)return!1;var i=e.keyCode;if(fp(n=[38,40]).call(n,i)){this.cursorMove=!1;var a=this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected"),o=null;38!==i||a.previousElementSibling?40!==i||a.nextElementSibling?38===i?o=a.previousElementSibling:40===i&&(o=a.nextElementSibling):o=this.$suggesterPanel.firstElementChild:o=this.$suggesterPanel.lastElementChild,a.classList.remove("cherry-suggester-panel__item--selected"),o.classList.add("cherry-suggester-panel__item--selected")}else 13===i&&(e.stopPropagation(),this.cursorMove=!1,this.pasteSelectResult(this.findSelectedItemIndex()),t.focus(),xo((function(){r.stopRelate()}),0))}}]),t}();co(Bp,"panelWrap",'<div class="cherry-suggester-panel"></div>');var Tp=new Bp;function kp(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Sp=function(t){Xa(n,t);var e=kp(n);function n(){return Ha(this,n),e.apply(this,arguments)}return ja(n,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1<ruby>$2<rt>$3</rt></ruby>$4"):t}},{key:"rule",value:function(){var t={begin:"(^| )\\{",end:"\\}( |$)",content:"([^\n]+?)\\|([^\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(mA);co(Sp,"HOOK_NAME","ruby");var Ip=[Rh,Ph,Td,Sd,zd,Ud,Qd,mf,Ff,If,Xf,Od,pf,Lf,zf,af,tp,Qf,qh,Zf,nf,Zu,Xu,eh,sh,ah,Sp,rh,np,ip,xp],Np=function(){function t(e,n){Ha(this,t),this.$cherry=n,Pa(this,"_cherry",{get:function(){return tA.warn("`_engine._cherry` is deprecated. Use `$engine.$cherry` instead."),this.$cherry}}),this.initMath(e),this.$configInit(e),this.hookCenter=new Tu(Ip,e),this.hooks=this.hookCenter.getHookList(),this.md5Cache={},this.md5StrMap={},this.markdownParams=e,this.currentStrMd5=[],this.htmlWhiteListAppend=e.engine.global.htmlWhiteList}return ja(t,[{key:"initMath",value:function(t){var e=t.externals,n=t.engine.syntax,r=n.mathBlock.plugins;if(Nf()&&(n.mathBlock.src||n.inlineMath.src)&&!e.MathJax&&!window.MathJax){!function(t){if(Nf()){var e=t?["input/asciimath","[tex]/noerrors","[tex]/cancel","[tex]/color","[tex]/boldsymbol"]:[];window.MathJax={startup:{elements:[".Cherry-Math",".Cherry-InlineMath"],typeset:!0},tex:{inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],tags:"ams",packages:{"[+]":["noerrors","cancel","color"]},macros:{bm:["{\\boldsymbol{#1}}",1]}},options:{skipHtmlTags:["script","noscript","style","textarea","pre","code","a"],ignoreHtmlClass:"tex2jax_ignore",processHtmlClass:"tex2jax_process",enableMenu:!1},loader:{load:e}}}}(r);var i=document.createElement("script");i.src=n.mathBlock.src?n.mathBlock.src:n.inlineMath.src,i.async=!0,i.src&&document.head.appendChild(i)}}},{key:"$configInit",value:function(t){if(t.hooksConfig&&yu(t.hooksConfig.hooksList,Array))for(var e=0;e<t.hooksConfig.hooksList.length;e++){var n=t.hooksConfig.hooksList[e];try{"sentence"===n.getType()&&vu(n,mA),"paragraph"===n.getType()&&vu(n,TA),bu(n),Ip.push(n)}catch(t){throw new Error("the hook does not correctly inherit")}}}},{key:"$beforeMakeHtml",value:function(t){var e=t.replace(/~/g,"~T");return"\n"!==(e=(e=(e=e.replace(/\$/g,"~D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n"))[e.length-1]&&(e+="\n"),e=this.$fireHookAction(e,"sentence","beforeMakeHtml"),e=this.$fireHookAction(e,"paragraph","beforeMakeHtml")}},{key:"$afterMakeHtml",value:function(t){var e=this.$fireHookAction(t,"paragraph","afterMakeHtml");return e=(e=(e=(e=(e=e.replace(/~D/g,"$")).replace(/~T/g,"~")).replace(/\\<\//g,"\\ </")).replace(new RegExp("\\\\(".concat(Nu,")"),"g"),(function(t,e){return"&"===e?t:Sh(e)})).replace(/\\&(?!(amp|lt|gt|quot|apos);)/,(function(){return"&amp;"}))).replace(/\\ <\//g,"\\</"),e=zh.restoreAll(e)}},{key:"$dealSentenceByCache",value:function(t){var e=this;return this.$checkCache(t,(function(t){return e.$dealSentence(t)}))}},{key:"$dealSentence",value:function(t){var e;return this.$fireHookAction(t,"sentence","makeHtml",go(e=this.$dealSentenceByCache).call(e,this))}},{key:"$fireHookAction",value:function(t,e,n,r){var i=this,a=t,o="afterMakeHtml"===n?"reduceRight":"reduce";if(!this.hooks&&!this.hooks[e]&&!this.hooks[e][o])return a;try{a=this.hooks[e][o]((function(t,e){return e.$engine||(e.$engine=i,Pa(e,"_engine",{get:function(){return tA.warn("`this._engine` is deprecated. Use `this.$engine` instead."),this.$engine}})),e[n]?e[n](t,r,i.markdownParams):t}),a)}catch(t){throw new wu(t)}return a}},{key:"md5",value:function(t){return this.md5StrMap[t]||(this.md5StrMap[t]=$h(t)),this.md5StrMap[t]}},{key:"$checkCache",value:function(t,e){var n=this.md5(t);return void 0===this.md5Cache[n]&&(this.md5Cache[n]=e(t)),{sign:n,html:this.md5Cache[n]}}},{key:"$dealParagraph",value:function(t){var e;return this.$fireHookAction(t,"paragraph","makeHtml",go(e=this.$dealSentenceByCache).call(e,this))}},{key:"makeHtml",value:function(t){var e=this.$beforeMakeHtml(t);return e=this.$dealParagraph(e),e=this.$afterMakeHtml(e)}},{key:"mounted",value:function(){this.$fireHookAction("","sentence","mounted"),this.$fireHookAction("","paragraph","mounted")}},{key:"makeMarkdown",value:function(t){return zl.run(t)}}]),t}(),Mp=Array.isArray,Fp=Object.prototype.toString,Dp=Mp||function(t){return"[object Array]"===Fp.call(t)};var Lp=function(t){return t&&"VirtualNode"===t.type&&"2"===t.version};var Op=function(t){return t&&"Widget"===t.type};var Rp=function(t){return t&&"Thunk"===t.type};var Up=function(t){return t&&("function"==typeof t.hook&&!t.hasOwnProperty("hook")||"function"==typeof t.unhook&&!t.hasOwnProperty("unhook"))};var Pp=Gp,Qp={},Hp=[];function Gp(t,e,n,r,i){this.tagName=t,this.properties=e||Qp,this.children=n||Hp,this.key=null!=r?String(r):void 0,this.namespace="string"==typeof i?i:null;var a,o=n&&n.length||0,s=0,c=!1,l=!1,A=!1;for(var u in e)if(e.hasOwnProperty(u)){var h=e[u];Up(h)&&h.unhook&&(a||(a={}),a[u]=h)}for(var f=0;f<o;f++){var d=n[f];Lp(d)?(s+=d.count||0,!c&&d.hasWidgets&&(c=!0),!l&&d.hasThunks&&(l=!0),A||!d.hooks&&!d.descendantHooks||(A=!0)):!c&&Op(d)?"function"==typeof d.destroy&&(c=!0):!l&&Rp(d)&&(l=!0)}this.count=o+s,this.hasWidgets=c,this.hasThunks=l,this.hooks=a,this.descendantHooks=A}Gp.prototype.version="2",Gp.prototype.type="VirtualNode";var jp=Kp;function Kp(t){this.text=String(t)}Kp.prototype.version="2",Kp.prototype.type="VirtualText";var $p=function(t){return t&&"VirtualText"===t.type&&"2"===t.version};var Yp,Vp,zp,Wp=(Vp=String.prototype.split,zp=/()??/.exec("")[1]===Yp,function(t,e,n){if("[object RegExp]"!==Object.prototype.toString.call(e))return Vp.call(t,e,n);var r,i,a,o,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":""),l=0;for(e=new RegExp(e.source,c+"g"),t+="",zp||(r=new RegExp("^"+e.source+"$(?!\\s)",c)),n=n===Yp?-1>>>0:n>>>0;(i=e.exec(t))&&!((a=i.index+i[0].length)>l&&(s.push(t.slice(l,i.index)),!zp&&i.length>1&&i[0].replace(r,(function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===Yp&&(i[t]=Yp)})),i.length>1&&i.index<t.length&&Array.prototype.push.apply(s,i.slice(1)),o=i[0].length,l=a,s.length>=n));)e.lastIndex===i.index&&e.lastIndex++;return l===t.length?!o&&e.test("")||s.push(""):s.push(t.slice(l)),s.length>n?s.slice(0,n):s}),qp=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,Xp=/^\.|#/,Jp=function(t,e){if(!t)return"DIV";var n,r,i,a,o=!e.hasOwnProperty("id"),s=Wp(t,qp),c=null;Xp.test(s[1])&&(c="DIV");for(a=0;a<s.length;a++)(r=s[a])&&(i=r.charAt(0),c?"."===i?(n=n||[]).push(r.substring(1,r.length)):"#"===i&&o&&(e.id=r.substring(1,r.length)):c=r);n&&(e.className&&n.push(e.className),e.className=n.join(" "));return e.namespace?c:c.toUpperCase()};var Zp=tg;function tg(t){if(!(this instanceof tg))return new tg(t);this.value=t}tg.prototype.hook=function(t,e){t[e]!==this.value&&(t[e]=this.value)};var eg="undefined"!=typeof window?window:void 0!==e?e:{},ng=function(t,e){if(t in eg)return eg[t];return eg[t]=e,e};(function(t,e,n){var r="__INDIVIDUAL_ONE_VERSION_"+t,i=ng(r+"_ENFORCE_SINGLETON",e);if(i!==e)throw new Error("Can only have one copy of "+t+".\nYou already have version "+i+" installed.\nThis means you cannot install version "+e);ng(r,n)})("ev-store","7");var rg=function(t){var e=t["__EV_STORE_KEY@7"];e||(e=t["__EV_STORE_KEY@7"]={});return e};var ig=ag;function ag(t){if(!(this instanceof ag))return new ag(t);this.value=t}function og(t){return Lp(t)||$p(t)||Op(t)||Rp(t)}function sg(t){try{return JSON.stringify(t,null," ")}catch(e){return String(t)}}ag.prototype.hook=function(t,e){rg(t)[e.substr(3)]=this.value},ag.prototype.unhook=function(t,e){rg(t)[e.substr(3)]=void 0};var cg=function(t,e,n){var r,i,a,o,s=[];!n&&(c=e,"string"==typeof c||Dp(c)||og(c))&&(n=e,i={});var c;r=Jp(t,i=i||e||{}),i.hasOwnProperty("key")&&(a=i.key,i.key=void 0);i.hasOwnProperty("namespace")&&(o=i.namespace,i.namespace=void 0);"INPUT"!==r||o||!i.hasOwnProperty("value")||void 0===i.value||Up(i.value)||(i.value=Zp(i.value));(function(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];if(Up(n))continue;"ev-"===e.substr(0,3)&&(t[e]=ig(n))}})(i),null!=n&&function t(e,n,r,i){if("string"==typeof e)n.push(new jp(e));else if("number"==typeof e)n.push(new jp(String(e)));else if(og(e))n.push(e);else{if(!Dp(e)){if(null==e)return;throw function(t){var e=new Error;return e.type="virtual-hyperscript.unexpected.virtual-element",e.message="Unexpected virtual child passed to h().\nExpected a VNode / Vthunk / VWidget / string but:\ngot:\n"+sg(t.foreignObject)+".\nThe parent vnode is:\n"+sg(t.parentVnode),e.foreignObject=t.foreignObject,e.parentVnode=t.parentVnode,e}({foreignObject:e,parentVnode:{tagName:r,properties:i}})}for(var a=0;a<e.length;a++)t(e[a],n,r,i)}}(n,s,r,i);return new Pp(r,i,s,a,o)};Ag.NONE=0,Ag.VTEXT=1,Ag.VNODE=2,Ag.WIDGET=3,Ag.PROPS=4,Ag.ORDER=5,Ag.INSERT=6,Ag.REMOVE=7,Ag.THUNK=8;var lg=Ag;function Ag(t,e,n){this.type=Number(t),this.vNode=e,this.patch=n}Ag.prototype.version="2",Ag.prototype.type="VirtualPatch";var ug=function(t,e){var n=t,r=e;Rp(e)&&(r=hg(e,t));Rp(t)&&(n=hg(t,null));return{a:n,b:r}};function hg(t,e){var n=t.vnode;if(n||(n=t.vnode=t.render(e)),!(Lp(n)||$p(n)||Op(n)))throw new Error("thunk did not return a valid node");return n}var fg=function(t){return"object"==typeof t&&null!==t},dg=function t(e,n){var r;for(var i in e){i in n||((r=r||{})[i]=void 0);var a=e[i],o=n[i];if(a!==o)if(fg(a)&&fg(o))if(pg(o)!==pg(a))(r=r||{})[i]=o;else if(Up(o))(r=r||{})[i]=o;else{var s=t(a,o);s&&((r=r||{})[i]=s)}else(r=r||{})[i]=o}for(var c in n)c in e||((r=r||{})[c]=n[c]);return r};function pg(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__?t.__proto__:t.constructor?t.constructor.prototype:void 0}function gg(t,e){var n={a:t};return mg(t,e,n,0),n}function mg(t,e,n,r){if(t!==e){var i=n[r],a=!1;if(Rp(t)||Rp(e))vg(t,e,n,r);else if(null==e)Op(t)||(yg(t,n,r),i=n[r]),i=_g(i,new lg(lg.REMOVE,t,e));else if(Lp(e))if(Lp(t))if(t.tagName===e.tagName&&t.namespace===e.namespace&&t.key===e.key){var o=dg(t.properties,e.properties);o&&(i=_g(i,new lg(lg.PROPS,t,o))),i=function(t,e,n,r,i){for(var a=t.children,o=function(t,e){var n=wg(e),r=n.keys,i=n.free;if(i.length===e.length)return{children:e,moves:null};var a=wg(t),o=a.keys;if(a.free.length===t.length)return{children:e,moves:null};for(var s=[],c=0,l=i.length,A=0,u=0;u<t.length;u++){var h,f=t[u];f.key?r.hasOwnProperty(f.key)?(h=r[f.key],s.push(e[h])):(h=u-A++,s.push(null)):c<l?(h=i[c++],s.push(e[h])):(h=u-A++,s.push(null))}for(var d=c>=i.length?e.length:i[c],p=0;p<e.length;p++){var g=e[p];g.key?o.hasOwnProperty(g.key)||s.push(g):p>=d&&s.push(g)}for(var m,y=s.slice(),v=0,b=[],w=[],_=0;_<e.length;){var E=e[_];for(m=y[v];null===m&&y.length;)b.push(bg(y,v,null)),m=y[v];m&&m.key===E.key?(v++,_++):E.key?(m&&m.key&&r[m.key]!==_+1?(b.push(bg(y,v,m.key)),(m=y[v])&&m.key===E.key?v++:w.push({key:E.key,to:_})):w.push({key:E.key,to:_}),_++):m&&m.key&&b.push(bg(y,v,m.key))}for(;v<y.length;)m=y[v],b.push(bg(y,v,m&&m.key));if(b.length===A&&!w.length)return{children:s,moves:null};return{children:s,moves:{removes:b,inserts:w}}}(a,e.children),s=o.children,c=a.length,l=s.length,A=c>l?c:l,u=0;u<A;u++){var h=a[u],f=s[u];i+=1,h?mg(h,f,n,i):f&&(r=_g(r,new lg(lg.INSERT,null,f))),Lp(h)&&h.count&&(i+=h.count)}o.moves&&(r=_g(r,new lg(lg.ORDER,t,o.moves)));return r}(t,e,n,i,r)}else i=_g(i,new lg(lg.VNODE,t,e)),a=!0;else i=_g(i,new lg(lg.VNODE,t,e)),a=!0;else $p(e)?$p(t)?t.text!==e.text&&(i=_g(i,new lg(lg.VTEXT,t,e))):(i=_g(i,new lg(lg.VTEXT,t,e)),a=!0):Op(e)&&(Op(t)||(a=!0),i=_g(i,new lg(lg.WIDGET,t,e)));i&&(n[r]=i),a&&yg(t,n,r)}}function yg(t,e,n){!function t(e,n,r){if(Lp(e)){if(e.hooks&&(n[r]=_g(n[r],new lg(lg.PROPS,e,function(t){var e={};for(var n in t)e[n]=void 0;return e}(e.hooks)))),e.descendantHooks||e.hasThunks)for(var i=e.children,a=i.length,o=0;o<a;o++){var s=i[o];t(s,n,r+=1),Lp(s)&&s.count&&(r+=s.count)}}else Rp(e)&&vg(e,null,n,r)}(t,e,n),function t(e,n,r){if(Op(e))"function"==typeof e.destroy&&(n[r]=_g(n[r],new lg(lg.REMOVE,e,null)));else if(Lp(e)&&(e.hasWidgets||e.hasThunks))for(var i=e.children,a=i.length,o=0;o<a;o++){var s=i[o];t(s,n,r+=1),Lp(s)&&s.count&&(r+=s.count)}else Rp(e)&&vg(e,null,n,r)}(t,e,n)}function vg(t,e,n,r){var i=ug(t,e),a=gg(i.a,i.b);(function(t){for(var e in t)if("a"!==e)return!0;return!1})(a)&&(n[r]=new lg(lg.THUNK,null,a))}function bg(t,e,n){return t.splice(e,1),{from:e,key:n}}function wg(t){for(var e={},n=[],r=t.length,i=0;i<r;i++){var a=t[i];a.key?e[a.key]=i:n.push(i)}return{keys:e,free:n}}function _g(t,e){return t?(Dp(t)?t.push(e):t=[t,e],t):e}var Eg,Cg=gg,xg=function(t){return t&&t.default||t}(Object.freeze({__proto__:null,default:{}})),Bg=void 0!==e?e:"undefined"!=typeof window?window:{};"undefined"!=typeof document?Eg=document:(Eg=Bg["__GLOBAL_DOCUMENT_CACHE@4"])||(Eg=Bg["__GLOBAL_DOCUMENT_CACHE@4"]=xg);var Tg=Eg,kg=function(t,e,n){for(var r in e){var i=e[r];void 0===i?Sg(t,r,i,n):Up(i)?(Sg(t,r,i,n),i.hook&&i.hook(t,r,n?n[r]:void 0)):fg(i)?Ig(t,e,n,r,i):t[r]=i}};function Sg(t,e,n,r){if(r){var i=r[e];if(Up(i))i.unhook&&i.unhook(t,e,n);else if("attributes"===e)for(var a in i)t.removeAttribute(a);else if("style"===e)for(var o in i)t.style[o]="";else t[e]="string"==typeof i?"":null}}function Ig(t,e,n,r,i){var a=n?n[r]:void 0;if("attributes"!==r)if(a&&fg(a)&&Ng(a)!==Ng(i))t[r]=i;else{fg(t[r])||(t[r]={});var o="style"===r?"":void 0;for(var s in i){var c=i[s];t[r][s]=void 0===c?o:c}}else for(var l in i){var A=i[l];void 0===A?t.removeAttribute(l):t.setAttribute(l,A)}}function Ng(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__?t.__proto__:t.constructor?t.constructor.prototype:void 0}var Mg=function t(e,n){var r=n&&n.document||Tg,i=n?n.warn:null;if(e=ug(e).a,Op(e))return e.init();if($p(e))return r.createTextNode(e.text);if(!Lp(e))return i&&i("Item is not a valid virtual dom node",e),null;var a=null===e.namespace?r.createElement(e.tagName):r.createElementNS(e.namespace,e.tagName),o=e.properties;kg(a,o);for(var s=e.children,c=0;c<s.length;c++){var l=t(s[c],n);l&&a.appendChild(l)}return a};var Fg={},Dg=function(t,e,n,r){return n&&0!==n.length?(n.sort(Og),function t(e,n,r,i,a){if(i=i||{},e){Lg(r,a,a)&&(i[a]=e);var o=n.children;if(o)for(var s=e.childNodes,c=0;c<n.children.length;c++){a+=1;var l=o[c]||Fg,A=a+(l.count||0);Lg(r,a,A)&&t(s[c],l,r,i,a),a=A}}return i}(t,e,n,r,0)):{}};function Lg(t,e,n){if(0===t.length)return!1;for(var r,i,a=0,o=t.length-1;a<=o;){if(i=t[r=(o+a)/2>>0],a===o)return i>=e&&i<=n;if(i<e)a=r+1;else{if(!(i>n))return!0;o=r-1}}return!1}function Og(t,e){return t>e?1:-1}var Rg=function(t,e){if(Op(t)&&Op(e))return"name"in t&&"name"in e?t.id===e.id:t.init===e.init;return!1};var Ug=function(t,e,n){var r=t.type,i=t.vNode,a=t.patch;switch(r){case lg.REMOVE:return function(t,e){var n=t.parentNode;n&&n.removeChild(t);return Pg(t,e),null}(e,i);case lg.INSERT:return function(t,e,n){var r=n.render(e,n);t&&t.appendChild(r);return t}(e,a,n);case lg.VTEXT:return function(t,e,n,r){var i;if(3===t.nodeType)t.replaceData(0,t.length,n.text),i=t;else{var a=t.parentNode;i=r.render(n,r),a&&i!==t&&a.replaceChild(i,t)}return i}(e,0,a,n);case lg.WIDGET:return function(t,e,n,r){var i,a=Rg(e,n);i=a?n.update(e,t)||t:r.render(n,r);var o=t.parentNode;o&&i!==t&&o.replaceChild(i,t);a||Pg(t,e);return i}(e,i,a,n);case lg.VNODE:return function(t,e,n,r){var i=t.parentNode,a=r.render(n,r);i&&a!==t&&i.replaceChild(a,t);return a}(e,0,a,n);case lg.ORDER:return function(t,e){for(var n,r,i,a=t.childNodes,o={},s=0;s<e.removes.length;s++)r=e.removes[s],n=a[r.from],r.key&&(o[r.key]=n),t.removeChild(n);for(var c=a.length,l=0;l<e.inserts.length;l++)i=e.inserts[l],n=o[i.key],t.insertBefore(n,i.to>=c++?null:a[i.to])}(e,a),e;case lg.PROPS:return kg(e,a,i.properties),e;case lg.THUNK:return function(t,e){t&&e&&t!==e&&t.parentNode&&t.parentNode.replaceChild(e,t);return e}(e,n.patch(e,a,n));default:return e}};function Pg(t,e){"function"==typeof e.destroy&&Op(e)&&e.destroy(t)}function Qg(t,e,n){var r=function(t){var e=[];for(var n in t)"a"!==n&&e.push(Number(n));return e}(e);if(0===r.length)return t;var i=Dg(t,e.a,r),a=t.ownerDocument;n.document||a===Tg||(n.document=a);for(var o=0;o<r.length;o++){var s=r[o];t=Hg(t,i[s],e[s],n)}return t}function Hg(t,e,n,r){if(!e)return t;var i;if(Dp(n))for(var a=0;a<n.length;a++)i=Ug(n[a],e,r),e===t&&(t=i);else i=Ug(n,e,r),e===t&&(t=i);return t}var Gg=function t(e,n,r){return(r=r||{}).patch=r.patch&&r.patch!==t?r.patch:Qg,r.render=r.render||Mg,r.patch(e,n,r)},jg=function(){function t(e,n,r){Ha(this,t),this.options={newObj:e,oldObj:n,getElement:r}}return ja(t,[{key:"doDiff",value:function(){var t=this.findSnakes(this.options.newObj,this.options.oldObj);return this.assembleResult(t,this.options.newObj,this.options.oldObj)}},{key:"getElement",value:function(t,e){return"function"==typeof this.options.getElement?this.options.getElement(t,e):t[e]}},{key:"findSnakes",value:function(t,e){for(var n=t.length||0,r=e.length||0,i=n+r,a={1:0},o={0:{1:0}},s=0;s<=i;s++){for(var c={},l=-s;l<=s;l+=2){for(var A=l===-s||l!==s&&a[l-1]<a[l+1],u=a[A?l+1:l-1],h=A?u:u+1,f=h,d=h-l;f<r&&d<n&&this.getElement(e,f)===this.getElement(t,d);)f+=1,d+=1;if(a[l]=f,c[l]=f,f>=r&&d>=n)return o[s]=c,this.$backtraceSnakes(o,n,r,s)}o[s]=c}return[]}},{key:"$backtraceSnakes",value:function(t,e,n,r){for(var i=[],a={x:n,y:e},o=r;o>0;o--){var s=t[o],c=t[o-1],l=a.x-a.y,A=s[l],u=l===-o||l!==o&&c[l+1]>c[l-1],h=u?l+1:l-1,f=c[h],d=f-h,p=u?f:f+1;i.unshift({xStart:f,xMid:p,xEnd:A}),a.x=f,a.y=d}return i}},{key:"assembleResult",value:function(t,e,n){var r,i=this,a="",o=[],s=0,c=[],l={},A={},u={};return Na(t).call(t,(function(t,r){var h=t.xStart;if(0===r&&0!==t.xStart)for(var f=0;f<t.xStart;f++)a+="%c".concat(i.getElement(n,f),", "),o.push("color: gray"),s+=1;t.xMid-t.xStart==1?(l={type:"delete",oldIndex:t.xStart,newIndex:0},"delete"===A.type&&A.oldIndex===l.oldIndex-1&&(u=u?A:u),c.push(l),A=l,a+="%c".concat(i.getElement(n,t.xStart),", "),o.push("color: red"),h=t.xMid):(l={type:"insert",oldIndex:t.xStart,newIndex:s},"delete"===A.type&&A.oldIndex===l.oldIndex-1?(c.pop(),l={type:"update",oldIndex:(u=u?A:u).oldIndex,newIndex:s},o.push("color: blue")):o.push("color: green"),u={},c.push(l),A=l,a+="%c".concat(i.getElement(e,s),", "),s+=1);for(var d=0;d<t.xEnd-h;d++)a+="%c".concat(i.getElement(n,h+d),", "),o.push("color: gray"),s+=1})),tA.log.apply(tA,uo(r=[a]).call(r,o)),c}}]),t}();var Kg=new(function(){function t(){Ha(this,t),co(this,"Events",{previewerClose:"previewer:close",previewerOpen:"previewer:open",editorClose:"editor:close",editorOpen:"editor:open",toolbarHide:"toolbar:hide",toolbarShow:"toolbar:show"}),co(this,"emitter",function(t){return{all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map((function(t){t(n)})),(r=t.get("*"))&&r.slice().map((function(t){t(e,n)}))}}}())}return ja(t,[{key:"on",value:function(t,e,n){var r;this.emitter.on(uo(r="".concat(t,":")).call(r,e),n)}},{key:"emit",value:function(t,e){var n;this.emitter.emit(uo(n="".concat(t,":")).call(n,e))}}]),t}()),$g=r((function(t,e){t.exports=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};function e(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function r(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{c(r.next(t))}catch(t){a(t)}}function s(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}c((r=r.apply(t,e||[])).next())}))}function i(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function a(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||e)}for(var o=function(){function t(t,e,n,r){this.left=t,this.top=e,this.width=n,this.height=r}return t.prototype.add=function(e,n,r,i){return new t(this.left+e,this.top+n,this.width+r,this.height+i)},t.fromClientRect=function(e,n){return new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height)},t.fromDOMRectList=function(e,n){var r=Array.from(n).find((function(t){return 0!==t.width}));return r?new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),s=function(t,e){return o.fromClientRect(t,e.getBoundingClientRect())},c=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=t.charCodeAt(n++);56320==(64512&a)?e.push(((1023&i)<<10)+(1023&a)+65536):(e.push(i),n--)}else e.push(i)}return e},l=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],i=-1,a="";++i<n;){var o=t[i];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),h=0;h<A.length;h++)u[A.charCodeAt(h)]=h;for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="undefined"==typeof Uint8Array?[]:new Uint8Array(256),p=0;p<f.length;p++)d[f.charCodeAt(p)]=p;for(var g=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},m=function(){function t(t,e,n,r,i,a){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v="undefined"==typeof Uint8Array?[]:new Uint8Array(256),b=0;b<y.length;b++)v[y.charCodeAt(b)]=b;var w=10,_=13,E=15,C=17,x=18,B=19,T=20,k=21,S=22,I=24,N=25,M=26,F=27,D=28,L=30,O=32,R=33,U=34,P=35,Q=37,H=38,G=39,j=40,K=42,$=[9001,65288],Y=function(t,e){var n=function(t){var e,n,r,i,a,o=.75*t.length,s=t.length,c=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),A=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<s;e+=4)n=d[t.charCodeAt(e)],r=d[t.charCodeAt(e+1)],i=d[t.charCodeAt(e+2)],a=d[t.charCodeAt(e+3)],A[c++]=n<<2|r>>4,A[c++]=(15&r)<<4|i>>2,A[c++]=(3&i)<<6|63&a;return l}(t),r=Array.isArray(n)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n}(n):new Uint32Array(n),i=Array.isArray(n)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n}(n):new Uint16Array(n),a=g(i,12,r[4]/2),o=2===r[5]?g(i,(24+r[4])/2):function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))}(r,Math.ceil((24+r[4])/4));return new m(r[0],r[1],r[2],r[3],a,o)}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),V=[L,36],z=[1,2,3,5],W=[w,8],q=[F,M],X=z.concat(W),J=[H,G,j,U,P],Z=[E,_],tt=function(t,e,n,r){var i=r[n];if(Array.isArray(t)?-1!==t.indexOf(i):t===i)for(var a=n;a<=r.length;){if((c=r[++a])===e)return!0;if(c!==w)break}if(i===w)for(a=n;a>0;){var o=r[--a];if(Array.isArray(t)?-1!==t.indexOf(o):t===o)for(var s=n;s<=r.length;){var c;if((c=r[++s])===e)return!0;if(c!==w)break}if(o!==w)break}return!1},et=function(t,e){for(var n=t;n>=0;){var r=e[n];if(r!==w)return r;n--}return 0},nt=function(t,e,n,r,i){if(0===n[r])return"×";var a=r-1;if(Array.isArray(i)&&!0===i[a])return"×";var o=a-1,s=a+1,c=e[a],l=o>=0?e[o]:0,A=e[s];if(2===c&&3===A)return"×";if(-1!==z.indexOf(c))return"!";if(-1!==z.indexOf(A))return"×";if(-1!==W.indexOf(A))return"×";if(8===et(a,e))return"÷";if(11===Y.get(t[a]))return"×";if((c===O||c===R)&&11===Y.get(t[s]))return"×";if(7===c||7===A)return"×";if(9===c)return"×";if(-1===[w,_,E].indexOf(c)&&9===A)return"×";if(-1!==[C,x,B,I,D].indexOf(A))return"×";if(et(a,e)===S)return"×";if(tt(23,S,a,e))return"×";if(tt([C,x],k,a,e))return"×";if(tt(12,12,a,e))return"×";if(c===w)return"÷";if(23===c||23===A)return"×";if(16===A||16===c)return"÷";if(-1!==[_,E,k].indexOf(A)||14===c)return"×";if(36===l&&-1!==Z.indexOf(c))return"×";if(c===D&&36===A)return"×";if(A===T)return"×";if(-1!==V.indexOf(A)&&c===N||-1!==V.indexOf(c)&&A===N)return"×";if(c===F&&-1!==[Q,O,R].indexOf(A)||-1!==[Q,O,R].indexOf(c)&&A===M)return"×";if(-1!==V.indexOf(c)&&-1!==q.indexOf(A)||-1!==q.indexOf(c)&&-1!==V.indexOf(A))return"×";if(-1!==[F,M].indexOf(c)&&(A===N||-1!==[S,E].indexOf(A)&&e[s+1]===N)||-1!==[S,E].indexOf(c)&&A===N||c===N&&-1!==[N,D,I].indexOf(A))return"×";if(-1!==[N,D,I,C,x].indexOf(A))for(var u=a;u>=0;){if((h=e[u])===N)return"×";if(-1===[D,I].indexOf(h))break;u--}if(-1!==[F,M].indexOf(A))for(u=-1!==[C,x].indexOf(c)?o:a;u>=0;){var h;if((h=e[u])===N)return"×";if(-1===[D,I].indexOf(h))break;u--}if(H===c&&-1!==[H,G,U,P].indexOf(A)||-1!==[G,U].indexOf(c)&&-1!==[G,j].indexOf(A)||-1!==[j,P].indexOf(c)&&A===j)return"×";if(-1!==J.indexOf(c)&&-1!==[T,M].indexOf(A)||-1!==J.indexOf(A)&&c===F)return"×";if(-1!==V.indexOf(c)&&-1!==V.indexOf(A))return"×";if(c===I&&-1!==V.indexOf(A))return"×";if(-1!==V.concat(N).indexOf(c)&&A===S&&-1===$.indexOf(t[s])||-1!==V.concat(N).indexOf(A)&&c===x)return"×";if(41===c&&41===A){for(var f=n[a],d=1;f>0&&41===e[--f];)d++;if(d%2!=0)return"×"}return c===O&&A===R?"×":"÷"},rt=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=function(t,e){void 0===e&&(e="strict");var n=[],r=[],i=[];return t.forEach((function(t,a){var o=Y.get(t);if(o>50?(i.push(!0),o-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return r.push(a),n.push(16);if(4===o||11===o){if(0===a)return r.push(a),n.push(L);var s=n[a-1];return-1===X.indexOf(s)?(r.push(r[a-1]),n.push(s)):(r.push(a),n.push(L))}return r.push(a),31===o?n.push("strict"===e?k:Q):o===K||29===o?n.push(L):43===o?t>=131072&&t<=196605||t>=196608&&t<=262141?n.push(Q):n.push(L):void n.push(o)})),[r,n,i]}(t,e.lineBreak),r=n[0],i=n[1],a=n[2];return"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(i=i.map((function(t){return-1!==[N,L,K].indexOf(t)?Q:t}))),[r,i,"keep-all"===e.wordBreak?a.map((function(e,n){return e&&t[n]>=19968&&t[n]<=40959})):void 0]},it=function(){function t(t,e,n,r){this.codePoints=t,this.required="!"===e,this.start=n,this.end=r}return t.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),at=function(t){return t>=48&&t<=57},ot=function(t){return at(t)||t>=65&&t<=70||t>=97&&t<=102},st=function(t){return 10===t||9===t||32===t},ct=function(t){return function(t){return function(t){return t>=97&&t<=122}(t)||function(t){return t>=65&&t<=90}(t)}(t)||function(t){return t>=128}(t)||95===t},lt=function(t){return ct(t)||at(t)||45===t},At=function(t){return t>=0&&t<=8||11===t||t>=14&&t<=31||127===t},ut=function(t,e){return 92===t&&10!==e},ht=function(t,e,n){return 45===t?ct(e)||ut(e,n):!!ct(t)||!(92!==t||!ut(t,e))},ft=function(t,e,n){return 43===t||45===t?!!at(e)||46===e&&at(n):at(46===t?e:t)},dt=function(t){var e=0,n=1;43!==t[e]&&45!==t[e]||(45===t[e]&&(n=-1),e++);for(var r=[];at(t[e]);)r.push(t[e++]);var i=r.length?parseInt(l.apply(void 0,r),10):0;46===t[e]&&e++;for(var a=[];at(t[e]);)a.push(t[e++]);var o=a.length,s=o?parseInt(l.apply(void 0,a),10):0;69!==t[e]&&101!==t[e]||e++;var c=1;43!==t[e]&&45!==t[e]||(45===t[e]&&(c=-1),e++);for(var A=[];at(t[e]);)A.push(t[e++]);var u=A.length?parseInt(l.apply(void 0,A),10):0;return n*(i+s*Math.pow(10,-o))*Math.pow(10,c*u)},pt={type:2},gt={type:3},mt={type:4},yt={type:13},vt={type:8},bt={type:21},wt={type:9},_t={type:10},Et={type:11},Ct={type:12},xt={type:14},Bt={type:23},Tt={type:1},kt={type:25},St={type:24},It={type:26},Nt={type:27},Mt={type:28},Ft={type:29},Dt={type:31},Lt={type:32},Ot=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(c(t))},t.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==Lt;)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(lt(e)||ut(n,r)){var i=ht(e,n,r)?2:1;return{type:5,value:this.consumeName(),flags:i}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),yt;break;case 39:return this.consumeStringToken(39);case 40:return pt;case 41:return gt;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),xt;break;case 43:if(ft(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 44:return mt;case 45:var a=t,o=this.peekCodePoint(0),s=this.peekCodePoint(1);if(ft(a,o,s))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(ht(a,o,s))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(45===o&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),St;break;case 46:if(ft(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(42===c&&47===(c=this.consumeCodePoint()))return this.consumeToken();if(-1===c)return this.consumeToken()}break;case 58:return It;case 59:return Nt;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),kt;break;case 64:var A=this.peekCodePoint(0),u=this.peekCodePoint(1),h=this.peekCodePoint(2);if(ht(A,u,h))return{type:7,value:this.consumeName()};break;case 91:return Mt;case 92:if(ut(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case 93:return Ft;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),vt;break;case 123:return Et;case 125:return Ct;case 117:case 85:var f=this.peekCodePoint(0),d=this.peekCodePoint(1);return 43!==f||!ot(d)&&63!==d||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),wt;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),bt;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_t;break;case-1:return Lt}return st(t)?(this.consumeWhiteSpace(),Dt):at(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):ct(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:l(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return void 0===t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();ot(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;63===e&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(l.apply(void 0,t.map((function(t){return 63===t?48:t}))),16),end:parseInt(l.apply(void 0,t.map((function(t){return 63===t?70:t}))),16)};var r=parseInt(l.apply(void 0,t),16);if(45===this.peekCodePoint(0)&&ot(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var i=[];ot(e)&&i.length<6;)i.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(l.apply(void 0,i),16)}}return{type:30,start:r,end:r}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Bt)}for(;;){var r=this.consumeCodePoint();if(-1===r||41===r)return{type:22,value:l.apply(void 0,t)};if(st(r))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Bt);if(34===r||39===r||40===r||At(r))return this.consumeBadUrlRemnants(),Bt;if(92===r){if(!ut(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Bt;t.push(this.consumeEscapedCodePoint())}else t.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;st(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(41===t||-1===t)return;ut(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){for(var e="";t>0;){var n=Math.min(5e4,t);e+=l.apply(void 0,this._value.splice(0,n)),t-=n}return this._value.shift(),e},t.prototype.consumeStringToken=function(t){for(var e="",n=0;;){var r=this._value[n];if(-1===r||void 0===r||r===t)return{type:0,value:e+=this.consumeStringSlice(n)};if(10===r)return this._value.splice(0,n),Tt;if(92===r){var i=this._value[n+1];-1!==i&&void 0!==i&&(10===i?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):ut(r,i)&&(e+=this.consumeStringSlice(n),e+=l(this.consumeEscapedCodePoint()),n=-1))}n++}},t.prototype.consumeNumber=function(){var t=[],e=4,n=this.peekCodePoint(0);for(43!==n&&45!==n||t.push(this.consumeCodePoint());at(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&at(r))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;at(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((69===n||101===n)&&((43===r||45===r)&&at(i)||at(r)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;at(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[dt(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);return ht(r,i,a)?{type:15,number:e,flags:n,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(ot(t)){for(var e=l(t);ot(this.peekCodePoint(0))&&e.length<6;)e+=l(this.consumeCodePoint());st(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return 0===n||function(t){return t>=55296&&t<=57343}(n)||n>1114111?65533:n}return-1===t?65533:t},t.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(lt(e))t+=l(e);else{if(!ut(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=l(this.consumeEscapedCodePoint())}}},t}(),Rt=function(){function t(t){this._tokens=t}return t.create=function(e){var n=new Ot;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var t=this.consumeToken();31===t.type;)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(32===n.type||Yt(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return void 0===t?Lt:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),Ut=function(t){return 15===t.type},Pt=function(t){return 17===t.type},Qt=function(t){return 20===t.type},Ht=function(t){return 0===t.type},Gt=function(t,e){return Qt(t)&&t.value===e},jt=function(t){return 31!==t.type},Kt=function(t){return 31!==t.type&&4!==t.type},$t=function(t){var e=[],n=[];return t.forEach((function(t){if(4===t.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(n),void(n=[])}31!==t.type&&n.push(t)})),n.length&&e.push(n),e},Yt=function(t,e){return 11===e&&12===t.type||28===e&&29===t.type||2===e&&3===t.type},Vt=function(t){return 17===t.type||15===t.type},zt=function(t){return 16===t.type||Vt(t)},Wt=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},qt={type:17,number:0,flags:4},Xt={type:16,number:50,flags:4},Jt={type:16,number:100,flags:4},Zt=function(t,e,n){var r=t[0],i=t[1];return[te(r,e),te(void 0!==i?i:r,n)]},te=function(t,e){if(16===t.type)return t.number/100*e;if(Ut(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},ee=function(t,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},ne=function(t){return 15===t.type&&("deg"===t.unit||"grad"===t.unit||"rad"===t.unit||"turn"===t.unit)},re=function(t){switch(t.filter(Qt).map((function(t){return t.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[qt,qt];case"to top":case"bottom":return ie(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[qt,Jt];case"to right":case"left":return ie(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Jt,Jt];case"to bottom":case"top":return ie(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Jt,qt];case"to left":case"right":return ie(270)}return 0},ie=function(t){return Math.PI*t/180},ae=function(t,e){if(18===e.type){var n=de[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);return ce(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(4===e.value.length){r=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);var o=e.value.substring(3,4);return ce(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(6===e.value.length)return r=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),ce(parseInt(r,16),parseInt(i,16),parseInt(a,16),1);if(8===e.value.length)return r=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),o=e.value.substring(6,8),ce(parseInt(r,16),parseInt(i,16),parseInt(a,16),parseInt(o,16)/255)}if(20===e.type){var s=ge[e.value.toUpperCase()];if(void 0!==s)return s}return ge.TRANSPARENT},oe=function(t){return 0==(255&t)},se=function(t){var e=255&t,n=255&t>>8,r=255&t>>16,i=255&t>>24;return e<255?"rgba("+i+","+r+","+n+","+e/255+")":"rgb("+i+","+r+","+n+")"},ce=function(t,e,n,r){return(t<<24|e<<16|n<<8|Math.round(255*r)<<0)>>>0},le=function(t,e){if(17===t.type)return t.number;if(16===t.type){var n=3===e?1:255;return 3===e?t.number/100*n:Math.round(t.number/100*n)}return 0},Ae=function(t,e){var n=e.filter(Kt);if(3===n.length){var r=n.map(le),i=r[0],a=r[1],o=r[2];return ce(i,a,o,1)}if(4===n.length){var s=n.map(le),c=(i=s[0],a=s[1],o=s[2],s[3]);return ce(i,a,o,c)}return 0};function ue(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<.5?e:n<2/3?6*(e-t)*(2/3-n)+t:t}var he,fe=function(t,e){var n=e.filter(Kt),r=n[0],i=n[1],a=n[2],o=n[3],s=(17===r.type?ie(r.number):ee(t,r))/(2*Math.PI),c=zt(i)?i.number/100:0,l=zt(a)?a.number/100:0,A=void 0!==o&&zt(o)?te(o,1):1;if(0===c)return ce(255*l,255*l,255*l,1);var u=l<=.5?l*(c+1):l+c-l*c,h=2*l-u,f=ue(h,u,s+1/3),d=ue(h,u,s),p=ue(h,u,s-1/3);return ce(255*f,255*d,255*p,A)},de={hsl:fe,hsla:fe,rgb:Ae,rgba:Ae},pe=function(t,e){return ae(t,Rt.create(e).parseComponentValue())},ge={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},me={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(Qt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},ye={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ve=function(t,e){var n=ae(t,e[0]),r=e[1];return r&&zt(r)?{color:n,stop:r}:{color:n,stop:null}},be=function(t,e){var n=t[0],r=t[t.length-1];null===n.stop&&(n.stop=qt),null===r.stop&&(r.stop=Jt);for(var i=[],a=0,o=0;o<t.length;o++){var s=t[o].stop;if(null!==s){var c=te(s,e);c>a?i.push(c):i.push(a),a=c}else i.push(null)}var l=null;for(o=0;o<i.length;o++){var A=i[o];if(null===A)null===l&&(l=o);else if(null!==l){for(var u=o-l,h=(A-i[l-1])/(u+1),f=1;f<=u;f++)i[l+f-1]=h*f;l=null}}return t.map((function(t,n){return{color:t.color,stop:Math.max(Math.min(1,i[n]/e),0)}}))},we=function(t,e,n){var r="number"==typeof t?t:function(t,e,n){var r=e/2,i=n/2,a=te(t[0],e)-r,o=i-te(t[1],n);return(Math.atan2(o,a)+2*Math.PI)%(2*Math.PI)}(t,e,n),i=Math.abs(e*Math.sin(r))+Math.abs(n*Math.cos(r)),a=e/2,o=n/2,s=i/2,c=Math.sin(r-Math.PI/2)*s,l=Math.cos(r-Math.PI/2)*s;return[i,a-l,a+l,o-c,o+c]},_e=function(t,e){return Math.sqrt(t*t+e*e)},Ee=function(t,e,n,r,i){return[[0,0],[0,e],[t,0],[t,e]].reduce((function(t,e){var a=e[0],o=e[1],s=_e(n-a,r-o);return(i?s<t.optimumDistance:s>t.optimumDistance)?{optimumCorner:e,optimumDistance:s}:t}),{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Ce=function(t,e){var n=ie(180),r=[];return $t(e).forEach((function(e,i){if(0===i){var a=e[0];if(20===a.type&&-1!==["top","left","right","bottom"].indexOf(a.value))return void(n=re(e));if(ne(a))return void(n=(ee(t,a)+ie(270))%ie(360))}var o=ve(t,e);r.push(o)})),{angle:n,stops:r,type:1}},xe=function(t,e){var n=0,r=3,i=[],a=[];return $t(e).forEach((function(e,o){var s=!0;if(0===o?s=e.reduce((function(t,e){if(Qt(e))switch(e.value){case"center":return a.push(Xt),!1;case"top":case"left":return a.push(qt),!1;case"right":case"bottom":return a.push(Jt),!1}else if(zt(e)||Vt(e))return a.push(e),!1;return t}),s):1===o&&(s=e.reduce((function(t,e){if(Qt(e))switch(e.value){case"circle":return n=0,!1;case"ellipse":return n=1,!1;case"contain":case"closest-side":return r=0,!1;case"farthest-side":return r=1,!1;case"closest-corner":return r=2,!1;case"cover":case"farthest-corner":return r=3,!1}else if(Vt(e)||zt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t}),s)),s){var c=ve(t,e);i.push(c)}})),{size:r,shape:n,stops:i,position:a,type:2}},Be=function(t,e){if(22===e.type){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(18===e.type){var r=Te[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(t,e.values)}throw new Error("Unsupported image type "+e.type)},Te={"linear-gradient":function(t,e){var n=ie(180),r=[];return $t(e).forEach((function(e,i){if(0===i){var a=e[0];if(20===a.type&&"to"===a.value)return void(n=re(e));if(ne(a))return void(n=ee(t,a))}var o=ve(t,e);r.push(o)})),{angle:n,stops:r,type:1}},"-moz-linear-gradient":Ce,"-ms-linear-gradient":Ce,"-o-linear-gradient":Ce,"-webkit-linear-gradient":Ce,"radial-gradient":function(t,e){var n=0,r=3,i=[],a=[];return $t(e).forEach((function(e,o){var s=!0;if(0===o){var c=!1;s=e.reduce((function(t,e){if(c)if(Qt(e))switch(e.value){case"center":return a.push(Xt),t;case"top":case"left":return a.push(qt),t;case"right":case"bottom":return a.push(Jt),t}else(zt(e)||Vt(e))&&a.push(e);else if(Qt(e))switch(e.value){case"circle":return n=0,!1;case"ellipse":return n=1,!1;case"at":return c=!0,!1;case"closest-side":return r=0,!1;case"cover":case"farthest-side":return r=1,!1;case"contain":case"closest-corner":return r=2,!1;case"farthest-corner":return r=3,!1}else if(Vt(e)||zt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t}),s)}if(s){var l=ve(t,e);i.push(l)}})),{size:r,shape:n,stops:i,position:a,type:2}},"-moz-radial-gradient":xe,"-ms-radial-gradient":xe,"-o-radial-gradient":xe,"-webkit-radial-gradient":xe,"-webkit-gradient":function(t,e){var n=ie(180),r=[],i=1;return $t(e).forEach((function(e,n){var a=e[0];if(0===n){if(Qt(a)&&"linear"===a.value)return void(i=1);if(Qt(a)&&"radial"===a.value)return void(i=2)}if(18===a.type)if("from"===a.name){var o=ae(t,a.values[0]);r.push({stop:qt,color:o})}else if("to"===a.name)o=ae(t,a.values[0]),r.push({stop:Jt,color:o});else if("color-stop"===a.name){var s=a.values.filter(Kt);if(2===s.length){o=ae(t,s[1]);var c=s[0];Pt(c)&&r.push({stop:{type:16,number:100*c.number,flags:c.flags},color:o})}}})),1===i?{angle:(n+ie(180))%ie(360),stops:r,type:i}:{size:3,shape:0,stops:r,position:[],type:i}}},ke={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e.filter((function(t){return Kt(t)&&function(t){return!(20===t.type&&"none"===t.value||18===t.type&&!Te[t.name])}(t)})).map((function(e){return Be(t,e)}))}},Se={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(Qt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ie={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return $t(e).map((function(t){return t.filter(zt)})).map(Wt)}},Ne={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return $t(e).map((function(t){return t.filter(Qt).map((function(t){return t.value})).join(" ")})).map(Me)}},Me=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};!function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(he||(he={}));var Fe,De={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return $t(e).map((function(t){return t.filter(Le)}))}},Le=function(t){return Qt(t)||zt(t)},Oe=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Re=Oe("top"),Ue=Oe("right"),Pe=Oe("bottom"),Qe=Oe("left"),He=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return Wt(e.filter(zt))}}},Ge=He("top-left"),je=He("top-right"),Ke=He("bottom-right"),$e=He("bottom-left"),Ye=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ve=Ye("top"),ze=Ye("right"),We=Ye("bottom"),qe=Ye("left"),Xe=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Ut(e)?e.number:0}}},Je=Xe("top"),Ze=Xe("right"),tn=Xe("bottom"),en=Xe("left"),nn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},an={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Qt).reduce((function(t,e){return t|on(e.value)}),0)}},on=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},sn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},cn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(t){t.NORMAL="normal",t.STRICT="strict"}(Fe||(Fe={}));var ln,An={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return Fe.STRICT;case"normal":default:return Fe.NORMAL}}},un={name:"line-height",initialValue:"normal",prefix:!1,type:4},hn=function(t,e){return Qt(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:zt(t)?te(t,e):e},fn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return 20===e.type&&"none"===e.value?null:Be(t,e)}},dn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},pn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},gn=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},mn=gn("top"),yn=gn("right"),vn=gn("bottom"),bn=gn("left"),wn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Qt).map((function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},_n={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},En=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Cn=En("top"),xn=En("right"),Bn=En("bottom"),Tn=En("left"),kn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Sn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},In={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&Gt(e[0],"none")?[]:$t(e).map((function(e){for(var n={color:ge.TRANSPARENT,offsetX:qt,offsetY:qt,blur:qt},r=0,i=0;i<e.length;i++){var a=e[i];Vt(a)?(0===r?n.offsetX=a:1===r?n.offsetY=a:n.blur=a,r++):n.color=ae(t,a)}return n}))}},Nn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Mn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var n=Fn[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return n(e.values)}return null}},Fn={matrix:function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number}));return 6===e.length?e:null},matrix3d:function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number})),n=e[0],r=e[1];e[2],e[3];var i=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],s=e[13];return e[14],e[15],16===e.length?[n,r,i,a,o,s]:null}},Dn={type:16,number:50,flags:4},Ln=[Dn,Dn],On={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var n=e.filter(zt);return 2!==n.length?Ln:[n[0],n[1]]}},Rn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};!function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"}(ln||(ln={}));for(var Un={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return ln.BREAK_ALL;case"keep-all":return ln.KEEP_ALL;case"normal":default:return ln.NORMAL}}},Pn={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(20===e.type)return{auto:!0,order:0};if(Pt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Qn=function(t,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")},Hn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return Pt(e)?e.number:1}},Gn={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},jn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Qt).map((function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(t){return 0!==t}))}},Kn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var n=[],r=[];return e.forEach((function(t){switch(t.type){case 20:case 0:n.push(t.value);break;case 17:n.push(t.number.toString());break;case 4:r.push(n.join(" ")),n.length=0}})),n.length&&r.push(n.join(" ")),r.map((function(t){return-1===t.indexOf(" ")?t:"'"+t+"'"}))}},$n={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Yn={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(Pt(e))return e.number;if(Qt(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},Vn={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Qt).map((function(t){return t.value}))}},zn={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Wn=function(t,e){return 0!=(t&e)},qn={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e}},Xn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],i=e.filter(jt),a=0;a<i.length;a++){var o=i[a],s=i[a+1];if(20===o.type){var c=s&&Pt(s)?s.number:1;r.push({counter:o.value,increment:c})}}return r}},Jn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return[];for(var n=[],r=e.filter(jt),i=0;i<r.length;i++){var a=r[i],o=r[i+1];if(Qt(a)&&"none"!==a.value){var s=o&&Pt(o)?o.number:0;n.push({counter:a.value,reset:s})}}return n}},Zn={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(Ut).map((function(e){return Qn(t,e)}))}},tr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&"none"===n.value)return null;var r=[],i=e.filter(Ht);if(i.length%2!=0)return null;for(var a=0;a<i.length;a+=2){var o=i[a].value,s=i[a+1].value;r.push({open:o,close:s})}return r}},er=function(t,e,n){if(!t)return"";var r=t[Math.min(e,t.length-1)];return r?n?r.open:r.close:""},nr={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&Gt(e[0],"none")?[]:$t(e).map((function(e){for(var n={color:255,offsetX:qt,offsetY:qt,blur:qt,spread:qt,inset:!1},r=0,i=0;i<e.length;i++){var a=e[i];Gt(a,"inset")?n.inset=!0:Vt(a)?(0===r?n.offsetX=a:1===r?n.offsetY=a:2===r?n.blur=a:n.spread=a,r++):n.color=ae(t,a)}return n}))}},rr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var n=[];return e.filter(Qt).forEach((function(t){switch(t.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2)}})),[0,1,2].forEach((function(t){-1===n.indexOf(t)&&n.push(t)})),n}},ir={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ar={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Ut(e)?e.number:0}},or=function(){function t(t,e){var n,r;this.animationDuration=lr(t,Zn,e.animationDuration),this.backgroundClip=lr(t,me,e.backgroundClip),this.backgroundColor=lr(t,ye,e.backgroundColor),this.backgroundImage=lr(t,ke,e.backgroundImage),this.backgroundOrigin=lr(t,Se,e.backgroundOrigin),this.backgroundPosition=lr(t,Ie,e.backgroundPosition),this.backgroundRepeat=lr(t,Ne,e.backgroundRepeat),this.backgroundSize=lr(t,De,e.backgroundSize),this.borderTopColor=lr(t,Re,e.borderTopColor),this.borderRightColor=lr(t,Ue,e.borderRightColor),this.borderBottomColor=lr(t,Pe,e.borderBottomColor),this.borderLeftColor=lr(t,Qe,e.borderLeftColor),this.borderTopLeftRadius=lr(t,Ge,e.borderTopLeftRadius),this.borderTopRightRadius=lr(t,je,e.borderTopRightRadius),this.borderBottomRightRadius=lr(t,Ke,e.borderBottomRightRadius),this.borderBottomLeftRadius=lr(t,$e,e.borderBottomLeftRadius),this.borderTopStyle=lr(t,Ve,e.borderTopStyle),this.borderRightStyle=lr(t,ze,e.borderRightStyle),this.borderBottomStyle=lr(t,We,e.borderBottomStyle),this.borderLeftStyle=lr(t,qe,e.borderLeftStyle),this.borderTopWidth=lr(t,Je,e.borderTopWidth),this.borderRightWidth=lr(t,Ze,e.borderRightWidth),this.borderBottomWidth=lr(t,tn,e.borderBottomWidth),this.borderLeftWidth=lr(t,en,e.borderLeftWidth),this.boxShadow=lr(t,nr,e.boxShadow),this.color=lr(t,nn,e.color),this.direction=lr(t,rn,e.direction),this.display=lr(t,an,e.display),this.float=lr(t,sn,e.cssFloat),this.fontFamily=lr(t,Kn,e.fontFamily),this.fontSize=lr(t,$n,e.fontSize),this.fontStyle=lr(t,zn,e.fontStyle),this.fontVariant=lr(t,Vn,e.fontVariant),this.fontWeight=lr(t,Yn,e.fontWeight),this.letterSpacing=lr(t,cn,e.letterSpacing),this.lineBreak=lr(t,An,e.lineBreak),this.lineHeight=lr(t,un,e.lineHeight),this.listStyleImage=lr(t,fn,e.listStyleImage),this.listStylePosition=lr(t,dn,e.listStylePosition),this.listStyleType=lr(t,pn,e.listStyleType),this.marginTop=lr(t,mn,e.marginTop),this.marginRight=lr(t,yn,e.marginRight),this.marginBottom=lr(t,vn,e.marginBottom),this.marginLeft=lr(t,bn,e.marginLeft),this.opacity=lr(t,Hn,e.opacity);var i=lr(t,wn,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=lr(t,_n,e.overflowWrap),this.paddingTop=lr(t,Cn,e.paddingTop),this.paddingRight=lr(t,xn,e.paddingRight),this.paddingBottom=lr(t,Bn,e.paddingBottom),this.paddingLeft=lr(t,Tn,e.paddingLeft),this.paintOrder=lr(t,rr,e.paintOrder),this.position=lr(t,Sn,e.position),this.textAlign=lr(t,kn,e.textAlign),this.textDecorationColor=lr(t,Gn,null!==(n=e.textDecorationColor)&&void 0!==n?n:e.color),this.textDecorationLine=lr(t,jn,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=lr(t,In,e.textShadow),this.textTransform=lr(t,Nn,e.textTransform),this.transform=lr(t,Mn,e.transform),this.transformOrigin=lr(t,On,e.transformOrigin),this.visibility=lr(t,Rn,e.visibility),this.webkitTextStrokeColor=lr(t,ir,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=lr(t,ar,e.webkitTextStrokeWidth),this.wordBreak=lr(t,Un,e.wordBreak),this.zIndex=lr(t,Pn,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},t.prototype.isTransparent=function(){return oe(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return 0!==this.position},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return 0!==this.float},t.prototype.isInlineLevel=function(){return Wn(this.display,4)||Wn(this.display,33554432)||Wn(this.display,268435456)||Wn(this.display,536870912)||Wn(this.display,67108864)||Wn(this.display,134217728)},t}(),sr=function(t,e){this.content=lr(t,qn,e.content),this.quotes=lr(t,tr,e.quotes)},cr=function(t,e){this.counterIncrement=lr(t,Xn,e.counterIncrement),this.counterReset=lr(t,Jn,e.counterReset)},lr=function(t,e,n){var r=new Ot,i=null!=n?n.toString():e.initialValue;r.write(i);var a=new Rt(r.read());switch(e.type){case 2:var o=a.parseComponentValue();return e.parse(t,Qt(o)?o.value:e.initialValue);case 0:return e.parse(t,a.parseComponentValue());case 1:return e.parse(t,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return ee(t,a.parseComponentValue());case"color":return ae(t,a.parseComponentValue());case"image":return Be(t,a.parseComponentValue());case"length":var s=a.parseComponentValue();return Vt(s)?s:qt;case"length-percentage":var c=a.parseComponentValue();return zt(c)?c:qt;case"time":return Qn(t,a.parseComponentValue())}}},Ar=function(t,e){var n=function(t){switch(t.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(t);return 1===n||e===n},ur=function(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Ar(e,3),this.styles=new or(t,window.getComputedStyle(e,null)),ui(e)&&(this.styles.animationDuration.some((function(t){return t>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=s(this.context,e),Ar(e,4)&&(this.flags|=16)},hr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),dr=0;dr<hr.length;dr++)fr[hr.charCodeAt(dr)]=dr;for(var pr=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},gr=function(){function t(t,e,n,r,i,a){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),vr=0;vr<mr.length;vr++)yr[mr.charCodeAt(vr)]=vr;var br,wr=8,_r=9,Er=11,Cr=12,xr=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],i=-1,a="";++i<n;){var o=t[i];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},Br=function(t,e){var n=function(t){var e,n,r,i,a,o=.75*t.length,s=t.length,c=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),A=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<s;e+=4)n=fr[t.charCodeAt(e)],r=fr[t.charCodeAt(e+1)],i=fr[t.charCodeAt(e+2)],a=fr[t.charCodeAt(e+3)],A[c++]=n<<2|r>>4,A[c++]=(15&r)<<4|i>>2,A[c++]=(3&i)<<6|63&a;return l}(t),r=Array.isArray(n)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n}(n):new Uint32Array(n),i=Array.isArray(n)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n}(n):new Uint16Array(n),a=pr(i,12,r[4]/2),o=2===r[5]?pr(i,(24+r[4])/2):function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))}(r,Math.ceil((24+r[4])/4));return new gr(r[0],r[1],r[2],r[3],a,o)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),Tr=function(t){return Br.get(t)},kr=function(t,e,n){var r=n-2,i=e[r],a=e[n-1],o=e[n];if(2===a&&3===o)return"×";if(2===a||3===a||4===a)return"÷";if(2===o||3===o||4===o)return"÷";if(a===wr&&-1!==[wr,_r,Er,Cr].indexOf(o))return"×";if(!(a!==Er&&a!==_r||o!==_r&&10!==o))return"×";if((a===Cr||10===a)&&10===o)return"×";if(13===o||5===o)return"×";if(7===o)return"×";if(1===a)return"×";if(13===a&&14===o){for(;5===i;)i=e[--r];if(14===i)return"×"}if(15===a&&15===o){for(var s=0;15===i;)s++,i=e[--r];if(s%2==0)return"×"}return"÷"},Sr=function(t){var e=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=t.charCodeAt(n++);56320==(64512&a)?e.push(((1023&i)<<10)+(1023&a)+65536):(e.push(i),n--)}else e.push(i)}return e}(t),n=e.length,r=0,i=0,a=e.map(Tr);return{next:function(){if(r>=n)return{done:!0,value:null};for(var t="×";r<n&&"×"===(t=kr(0,a,++r)););if("×"!==t||r===n){var o=xr.apply(null,e.slice(i,r));return i=r,{value:o,done:!1}}return{done:!0,value:null}}}},Ir=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},Nr=function(t,e,n,r,i){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(i),o},Mr=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){return e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Fr={get SUPPORT_RANGE_BOUNDS(){var t=function(t){if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height="123px",n.style.display="block",t.body.appendChild(n),e.selectNode(n);var r=e.getBoundingClientRect(),i=Math.round(r.height);if(t.body.removeChild(n),123===i)return!0}}return!1}(document);return Object.defineProperty(Fr,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Fr.SUPPORT_RANGE_BOUNDS&&function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var n=t.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=e.firstChild,i=c(r.data).map((function(t){return l(t)})),a=0,o={},s=i.every((function(t,e){n.setStart(r,a),n.setEnd(r,a+t.length);var i=n.getBoundingClientRect();a+=t.length;var s=i.x>o.x||i.y>o.y;return o=i,0===e||s}));return t.body.removeChild(e),s}(document);return Object.defineProperty(Fr,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=function(t){var e=new Image,n=t.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),n.toDataURL()}catch(t){return!1}return!0}(document);return Object.defineProperty(Fr,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"==typeof Array.from&&"function"==typeof window.fetch?function(t){var e=t.createElement("canvas");e.width=100,e.height=100;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,100,100);var r=new Image,i=e.toDataURL();r.src=i;var a=Nr(100,100,0,0,r);return n.fillStyle="red",n.fillRect(0,0,100,100),Mr(a).then((function(e){n.drawImage(e,0,0);var r=n.getImageData(0,0,100,100).data;n.fillStyle="red",n.fillRect(0,0,100,100);var a=t.createElement("div");return a.style.backgroundImage="url("+i+")",a.style.height="100px",Ir(r)?Mr(Nr(100,100,0,0,a)):Promise.reject(!1)})).then((function(t){return n.drawImage(t,0,0),Ir(n.getImageData(0,0,100,100).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Fr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=void 0!==(new Image).crossOrigin;return Object.defineProperty(Fr,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Fr,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Fr,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Fr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Dr=function(t,e){this.text=t,this.bounds=e},Lr=function(t,e){var n=e.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(r,e);var a=s(t,r);return r.firstChild&&i.replaceChild(r.firstChild,r),a}}return o.EMPTY},Or=function(t,e,n){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(t,e),i.setEnd(t,e+n),i},Rr=function(t){if(Fr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map((function(t){return t.segment}))}return function(t){for(var e,n=Sr(t),r=[];!(e=n.next()).done;)e.value&&r.push(e.value.slice());return r}(t)},Ur=function(t,e){return 0!==e.letterSpacing?Rr(t):function(t,e){if(Fr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map((function(t){return t.segment}))}return Qr(t,e)}(t,e)},Pr=[32,160,4961,65792,65793,4153,4241],Qr=function(t,e){for(var n,r=function(t,e){var n=c(t),r=rt(n,e),i=r[0],a=r[1],o=r[2],s=n.length,l=0,A=0;return{next:function(){if(A>=s)return{done:!0,value:null};for(var t="×";A<s&&"×"===(t=nt(n,a,i,++A,o)););if("×"!==t||A===s){var e=new it(n,t,l,A);return l=A,{value:e,done:!1}}return{done:!0,value:null}}}}(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),i=[],a=function(){if(n.value){var t=n.value.slice(),e=c(t),r="";e.forEach((function(t){-1===Pr.indexOf(t)?r+=l(t):(r.length&&i.push(r),i.push(l(t)),r="")})),r.length&&i.push(r)}};!(n=r.next()).done;)a();return i},Hr=function(t,e,n){this.text=Gr(e.data,n.textTransform),this.textBounds=function(t,e,n,r){var i=Ur(e,n),a=[],s=0;return i.forEach((function(e){if(n.textDecorationLine.length||e.trim().length>0)if(Fr.SUPPORT_RANGE_BOUNDS){var i=Or(r,s,e.length).getClientRects();if(i.length>1){var c=Rr(e),l=0;c.forEach((function(e){a.push(new Dr(e,o.fromDOMRectList(t,Or(r,l+s,e.length).getClientRects()))),l+=e.length}))}else a.push(new Dr(e,o.fromDOMRectList(t,i)))}else{var A=r.splitText(e.length);a.push(new Dr(e,Lr(t,r))),r=A}else Fr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));s+=e.length})),a}(t,this.text,n,e)},Gr=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(jr,Kr);case 2:return t.toUpperCase();default:return t}},jr=/(^|\s|:|-|\(|\))([a-z])/g,Kr=function(t,e,n){return t.length>0?e+n.toUpperCase():t},$r=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return e(n,t),n}(ur),Yr=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return e(n,t),n}(ur),Vr=function(t){function n(e,n){var r=t.call(this,e,n)||this,i=new XMLSerializer,a=s(e,n);return n.setAttribute("width",a.width+"px"),n.setAttribute("height",a.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(n,t),n}(ur),zr=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return e(n,t),n}(ur),Wr=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return e(n,t),n}(ur),qr=[{type:15,flags:0,unit:"px",number:3}],Xr=[{type:16,flags:0,number:50}],Jr="password",Zr=function(t){function n(e,n){var r,i=t.call(this,e,n)||this;switch(i.type=n.type.toLowerCase(),i.checked=n.checked,i.value=function(t){var e=t.type===Jr?new Array(t.value.length+1).join("•"):t.value;return 0===e.length?t.placeholder||"":e}(n),"checkbox"!==i.type&&"radio"!==i.type||(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=(r=i.bounds).width>r.height?new o(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new o(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r),i.type){case"checkbox":i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=qr;break;case"radio":i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=Xr}return i}return e(n,t),n}(ur),ti=function(t){function n(e,n){var r=t.call(this,e,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return e(n,t),n}(ur),ei=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return e(n,t),n}(ur),ni=function(t){function n(e,n){var r=t.call(this,e,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=oi(e,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?pe(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):ge.TRANSPARENT,a=n.contentWindow.document.body?pe(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):ge.TRANSPARENT;r.backgroundColor=oe(i)?oe(a)?r.styles.backgroundColor:a:i}}catch(t){}return r}return e(n,t),n}(ur),ri=["OL","UL","MENU"],ii=function(t,e,n,r){for(var i=e.firstChild,a=void 0;i;i=a)if(a=i.nextSibling,li(i)&&i.data.trim().length>0)n.textNodes.push(new Hr(t,i,n.styles));else if(Ai(i))if(xi(i)&&i.assignedNodes)i.assignedNodes().forEach((function(e){return ii(t,e,n,r)}));else{var o=ai(t,i);o.styles.isVisible()&&(si(i,o,r)?o.flags|=4:ci(o.styles)&&(o.flags|=2),-1!==ri.indexOf(i.tagName)&&(o.flags|=8),n.elements.push(o),i.slot,i.shadowRoot?ii(t,i.shadowRoot,o,r):Ei(i)||gi(i)||Ci(i)||ii(t,i,o,r))}},ai=function(t,e){return bi(e)?new $r(t,e):yi(e)?new Yr(t,e):gi(e)?new Vr(t,e):fi(e)?new zr(t,e):di(e)?new Wr(t,e):pi(e)?new Zr(t,e):Ci(e)?new ti(t,e):Ei(e)?new ei(t,e):wi(e)?new ni(t,e):new ur(t,e)},oi=function(t,e){var n=ai(t,e);return n.flags|=4,ii(t,e,n,n),n},si=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||mi(t)&&n.styles.isTransparent()},ci=function(t){return t.isPositioned()||t.isFloating()},li=function(t){return t.nodeType===Node.TEXT_NODE},Ai=function(t){return t.nodeType===Node.ELEMENT_NODE},ui=function(t){return Ai(t)&&void 0!==t.style&&!hi(t)},hi=function(t){return"object"==typeof t.className},fi=function(t){return"LI"===t.tagName},di=function(t){return"OL"===t.tagName},pi=function(t){return"INPUT"===t.tagName},gi=function(t){return"svg"===t.tagName},mi=function(t){return"BODY"===t.tagName},yi=function(t){return"CANVAS"===t.tagName},vi=function(t){return"VIDEO"===t.tagName},bi=function(t){return"IMG"===t.tagName},wi=function(t){return"IFRAME"===t.tagName},_i=function(t){return"STYLE"===t.tagName},Ei=function(t){return"TEXTAREA"===t.tagName},Ci=function(t){return"SELECT"===t.tagName},xi=function(t){return"SLOT"===t.tagName},Bi=function(t){return t.tagName.indexOf("-")>0},Ti=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,n=t.counterIncrement,r=t.counterReset,i=!0;null!==n&&n.forEach((function(t){var n=e.counters[t.counter];n&&0!==t.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=t.increment)}));var a=[];return i&&r.forEach((function(t){var n=e.counters[t.counter];a.push(t.counter),n||(n=e.counters[t.counter]=[]),n.push(t.reset)})),a},t}(),ki={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Si={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ii={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Ni={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Mi=function(t,e,n,r,i,a){return t<e||t>n?Ri(t,i,a.length>0):r.integers.reduce((function(e,n,i){for(;t>=n;)t-=n,e+=r.values[i];return e}),"")+a},Fi=function(t,e,n,r){var i="";do{n||t--,i=r(t)+i,t/=e}while(t*e>=e);return i},Di=function(t,e,n,r,i){var a=n-e+1;return(t<0?"-":"")+(Fi(Math.abs(t),a,r,(function(t){return l(Math.floor(t%a)+e)}))+i)},Li=function(t,e,n){void 0===n&&(n=". ");var r=e.length;return Fi(Math.abs(t),r,!1,(function(t){return e[Math.floor(t%r)]}))+n},Oi=function(t,e,n,r,i,a){if(t<-9999||t>9999)return Ri(t,4,i.length>0);var o=Math.abs(t),s=i;if(0===o)return e[0]+s;for(var c=0;o>0&&c<=4;c++){var l=o%10;0===l&&Wn(a,1)&&""!==s?s=e[l]+s:l>1||1===l&&0===c||1===l&&1===c&&Wn(a,2)||1===l&&1===c&&Wn(a,4)&&t>100||1===l&&c>1&&Wn(a,8)?s=e[l]+(c>0?n[c-1]:"")+s:1===l&&c>0&&(s=n[c-1]+s),o=Math.floor(o/10)}return(t<0?r:"")+s},Ri=function(t,e,n){var r=n?". ":"",i=n?"、":"",a=n?", ":"",o=n?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Di(t,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return Li(t,"〇一二三四五六七八九",i);case 6:return Mi(t,1,3999,ki,3,r).toLowerCase();case 7:return Mi(t,1,3999,ki,3,r);case 8:return Di(t,945,969,!1,r);case 9:return Di(t,97,122,!1,r);case 10:return Di(t,65,90,!1,r);case 11:return Di(t,1632,1641,!0,r);case 12:case 49:return Mi(t,1,9999,Si,3,r);case 35:return Mi(t,1,9999,Si,3,r).toLowerCase();case 13:return Di(t,2534,2543,!0,r);case 14:case 30:return Di(t,6112,6121,!0,r);case 15:return Li(t,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Li(t,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Oi(t,"零一二三四五六七八九","十百千萬","負",i,14);case 47:return Oi(t,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",i,15);case 42:return Oi(t,"零一二三四五六七八九","十百千萬","负",i,14);case 41:return Oi(t,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",i,15);case 26:return Oi(t,"〇一二三四五六七八九","十百千万","マイナス",i,0);case 25:return Oi(t,"零壱弐参四伍六七八九","拾百千万","マイナス",i,7);case 31:return Oi(t,"영일이삼사오육칠팔구","십백천만","마이너스",a,7);case 33:return Oi(t,"零一二三四五六七八九","十百千萬","마이너스",a,0);case 32:return Oi(t,"零壹貳參四五六七八九","拾百千","마이너스",a,7);case 18:return Di(t,2406,2415,!0,r);case 20:return Mi(t,1,19999,Ni,3,r);case 21:return Di(t,2790,2799,!0,r);case 22:return Di(t,2662,2671,!0,r);case 22:return Mi(t,1,10999,Ii,3,r);case 23:return Li(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Li(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Di(t,3302,3311,!0,r);case 28:return Li(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Li(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Di(t,3792,3801,!0,r);case 37:return Di(t,6160,6169,!0,r);case 38:return Di(t,4160,4169,!0,r);case 39:return Di(t,2918,2927,!0,r);case 40:return Di(t,1776,1785,!0,r);case 43:return Di(t,3046,3055,!0,r);case 44:return Di(t,3174,3183,!0,r);case 45:return Di(t,3664,3673,!0,r);case 46:return Di(t,3872,3881,!0,r);case 3:default:return Di(t,48,57,!0,r)}},Ui=function(){function t(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new Ti,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(t,e){var n=this,a=Qi(t,e);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var o=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,c=a.contentWindow,l=c.document,A=ji(a).then((function(){return r(n,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(zi),c&&(c.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||c.scrollY===e.top&&c.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(c.scrollX-e.left,c.scrollY-e.top,0,0))),t=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Gi(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof t?[2,Promise.resolve().then((function(){return t(l,n)})).then((function(){return a}))]:[2,a]}}))}))}));return l.open(),l.write(Yi(document.doctype)+"<html></html>"),Vi(this.referenceElement.ownerDocument,o,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),A},t.prototype.createElementClone=function(t){if(Ar(t,2),yi(t))return this.createCanvasClone(t);if(vi(t))return this.createVideoClone(t);if(_i(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return bi(e)&&(bi(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Bi(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return $i(t.style,e),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&"string"==typeof e.cssText?t+e.cssText:t}),""),r=t.cloneNode(!1);return r.textContent=n,r}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),"SecurityError"!==t.name)throw t}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var r=t.cloneNode(!1);try{r.width=t.width,r.height=t.height;var i=t.getContext("2d"),a=r.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=null!==(e=t.getContext("webgl2"))&&void 0!==e?e:t.getContext("webgl");if(o){var s=o.getContextAttributes();!1===(null==s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}a.drawImage(t,0,0)}return r}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return r},t.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",t)}var r=t.ownerDocument.createElement("canvas");return r.width=t.offsetWidth,r.height=t.offsetHeight,r},t.prototype.appendChildNode=function(t,e,n){Ai(e)&&(function(t){return"SCRIPT"===t.tagName}(e)||e.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&Ai(e)&&_i(e)||t.appendChild(this.cloneNode(e,n))},t.prototype.cloneChildNodes=function(t,e,n){for(var r=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(Ai(i)&&xi(i)&&"function"==typeof i.assignedNodes){var a=i.assignedNodes();a.length&&a.forEach((function(t){return r.appendChildNode(e,t,n)}))}else this.appendChildNode(e,i,n)},t.prototype.cloneNode=function(t,e){if(li(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&Ai(t)&&(ui(t)||hi(t))){var r=this.createElementClone(t);r.style.transitionProperty="none";var i=n.getComputedStyle(t),a=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&ui(r)&&(this.clonedReferenceElement=r),mi(r)&&Xi(r);var s=this.counters.parse(new cr(this.context,i)),c=this.resolvePseudoContent(t,r,a,br.BEFORE);Bi(t)&&(e=!0),vi(t)||this.cloneChildNodes(t,r,e),c&&r.insertBefore(c,r.firstChild);var l=this.resolvePseudoContent(t,r,o,br.AFTER);return l&&r.appendChild(l),this.counters.pop(s),(i&&(this.options.copyStyles||hi(t))&&!wi(t)||e)&&$i(i,r),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([r,t.scrollLeft,t.scrollTop]),(Ei(t)||Ci(t))&&(Ei(r)||Ci(r))&&(r.value=t.value),r}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,n,r){var i=this;if(n){var a=n.content,o=e.ownerDocument;if(o&&a&&"none"!==a&&"-moz-alt-content"!==a&&"none"!==n.display){this.counters.parse(new cr(this.context,n));var s=new sr(this.context,n),c=o.createElement("html2canvaspseudoelement");$i(n,c),s.content.forEach((function(e){if(0===e.type)c.appendChild(o.createTextNode(e.value));else if(22===e.type){var n=o.createElement("img");n.src=e.value,n.style.opacity="1",c.appendChild(n)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(Qt);r.length&&c.appendChild(o.createTextNode(t.getAttribute(r[0].value)||""))}else if("counter"===e.name){var a=e.values.filter(Kt),l=a[0],A=a[1];if(l&&Qt(l)){var u=i.counters.getCounterValue(l.value),h=A&&Qt(A)?pn.parse(i.context,A.value):3;c.appendChild(o.createTextNode(Ri(u,h,!1)))}}else if("counters"===e.name){var f=e.values.filter(Kt),d=(l=f[0],f[1]);if(A=f[2],l&&Qt(l)){var p=i.counters.getCounterValues(l.value),g=A&&Qt(A)?pn.parse(i.context,A.value):3,m=d&&0===d.type?d.value:"",y=p.map((function(t){return Ri(t,g,!1)})).join(m);c.appendChild(o.createTextNode(y))}}}else if(20===e.type)switch(e.value){case"open-quote":c.appendChild(o.createTextNode(er(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(er(s.quotes,--i.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(e.value))}})),c.className=Wi+" "+qi;var l=r===br.BEFORE?" "+Wi:" "+qi;return hi(e)?e.className.baseValue+=l:e.className+=l,c}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(br||(br={}));var Pi,Qi=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute("data-html2canvas-ignore","true"),t.body.appendChild(n),n},Hi=function(t){return new Promise((function(e){t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}))},Gi=function(t){return Promise.all([].slice.call(t.images,0).map(Hi))},ji=function(t){return new Promise((function(e,n){var r=t.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var n=setInterval((function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),e(t))}),50)}}))},Ki=["all","d","content"],$i=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t.item(n);-1===Ki.indexOf(r)&&e.style.setProperty(r,t.getPropertyValue(r))}return e},Yi=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},Vi=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},zi=function(t){var e=t[0],n=t[1],r=t[2];e.scrollLeft=n,e.scrollTop=r},Wi="___html2canvas___pseudoelement_before",qi="___html2canvas___pseudoelement_after",Xi=function(t){Ji(t,"."+Wi+':before{\n content: "" !important;\n display: none !important;\n}\n .'+qi+':after{\n content: "" !important;\n display: none !important;\n}')},Ji=function(t,e){var n=t.ownerDocument;if(n){var r=n.createElement("style");r.textContent=e,t.appendChild(r)}},Zi=function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),ta=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:sa(t)||ia(t)?((this._cache[t]=this.loadImage(t)).catch((function(){})),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o=this;return i(this,(function(i){switch(i.label){case 0:return e=Zi.isSameOrigin(t),n=!aa(t)&&!0===this._options.useCORS&&Fr.SUPPORT_CORS_IMAGES&&!e,r=!aa(t)&&!e&&!sa(t)&&"string"==typeof this._options.proxy&&Fr.SUPPORT_CORS_XHR&&!n,e||!1!==this._options.allowTaint||aa(t)||sa(t)||r||n?(a=t,r?[4,this.proxy(a)]:[3,2]):[2];case 1:a=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise((function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,(oa(a)||n)&&(r.crossOrigin="anonymous"),r.src=a,!0===r.complete&&setTimeout((function(){return t(r)}),500),o._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,i.sent()]}}))}))},t.prototype.has=function(t){return void 0!==this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=t.substring(0,256);return new Promise((function(i,a){var o=Fr.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)i(s.response);else{var t=new FileReader;t.addEventListener("load",(function(){return i(t.result)}),!1),t.addEventListener("error",(function(t){return a(t)}),!1),t.readAsDataURL(s.response)}else a("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=a;var c=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+c+"url="+encodeURIComponent(t)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var l=e._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return a("Timed out ("+l+"ms) proxying "+r)}}s.send()}))},t}(),ea=/^data:image\/svg\+xml/i,na=/^data:image\/.*;base64,/i,ra=/^data:image\/.*/i,ia=function(t){return Fr.SUPPORT_SVG_DRAWING||!ca(t)},aa=function(t){return ra.test(t)},oa=function(t){return na.test(t)},sa=function(t){return"blob"===t.substr(0,4)},ca=function(t){return"svg"===t.substr(-3).toLowerCase()||ea.test(t)},la=function(){function t(t,e){this.type=0,this.x=t,this.y=e}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),Aa=function(t,e,n){return new la(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},ua=function(){function t(t,e,n,r){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,n){var r=Aa(this.start,this.startControl,e),i=Aa(this.startControl,this.endControl,e),a=Aa(this.endControl,this.end,e),o=Aa(r,i,e),s=Aa(i,a,e),c=Aa(o,s,e);return n?new t(this.start,r,o,c):new t(c,s,a,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),ha=function(t){return 1===t.type},fa=function(t){var e=t.styles,n=t.bounds,r=Zt(e.borderTopLeftRadius,n.width,n.height),i=r[0],a=r[1],o=Zt(e.borderTopRightRadius,n.width,n.height),s=o[0],c=o[1],l=Zt(e.borderBottomRightRadius,n.width,n.height),A=l[0],u=l[1],h=Zt(e.borderBottomLeftRadius,n.width,n.height),f=h[0],d=h[1],p=[];p.push((i+s)/n.width),p.push((f+A)/n.width),p.push((a+d)/n.height),p.push((c+u)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,a/=g,s/=g,c/=g,A/=g,u/=g,f/=g,d/=g);var m=n.width-s,y=n.height-u,v=n.width-A,b=n.height-d,w=e.borderTopWidth,_=e.borderRightWidth,E=e.borderBottomWidth,C=e.borderLeftWidth,x=te(e.paddingTop,t.bounds.width),B=te(e.paddingRight,t.bounds.width),T=te(e.paddingBottom,t.bounds.width),k=te(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?da(n.left+C/3,n.top+w/3,i-C/3,a-w/3,Pi.TOP_LEFT):new la(n.left+C/3,n.top+w/3),this.topRightBorderDoubleOuterBox=i>0||a>0?da(n.left+m,n.top+w/3,s-_/3,c-w/3,Pi.TOP_RIGHT):new la(n.left+n.width-_/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=A>0||u>0?da(n.left+v,n.top+y,A-_/3,u-E/3,Pi.BOTTOM_RIGHT):new la(n.left+n.width-_/3,n.top+n.height-E/3),this.bottomLeftBorderDoubleOuterBox=f>0||d>0?da(n.left+C/3,n.top+b,f-C/3,d-E/3,Pi.BOTTOM_LEFT):new la(n.left+C/3,n.top+n.height-E/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?da(n.left+2*C/3,n.top+2*w/3,i-2*C/3,a-2*w/3,Pi.TOP_LEFT):new la(n.left+2*C/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=i>0||a>0?da(n.left+m,n.top+2*w/3,s-2*_/3,c-2*w/3,Pi.TOP_RIGHT):new la(n.left+n.width-2*_/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=A>0||u>0?da(n.left+v,n.top+y,A-2*_/3,u-2*E/3,Pi.BOTTOM_RIGHT):new la(n.left+n.width-2*_/3,n.top+n.height-2*E/3),this.bottomLeftBorderDoubleInnerBox=f>0||d>0?da(n.left+2*C/3,n.top+b,f-2*C/3,d-2*E/3,Pi.BOTTOM_LEFT):new la(n.left+2*C/3,n.top+n.height-2*E/3),this.topLeftBorderStroke=i>0||a>0?da(n.left+C/2,n.top+w/2,i-C/2,a-w/2,Pi.TOP_LEFT):new la(n.left+C/2,n.top+w/2),this.topRightBorderStroke=i>0||a>0?da(n.left+m,n.top+w/2,s-_/2,c-w/2,Pi.TOP_RIGHT):new la(n.left+n.width-_/2,n.top+w/2),this.bottomRightBorderStroke=A>0||u>0?da(n.left+v,n.top+y,A-_/2,u-E/2,Pi.BOTTOM_RIGHT):new la(n.left+n.width-_/2,n.top+n.height-E/2),this.bottomLeftBorderStroke=f>0||d>0?da(n.left+C/2,n.top+b,f-C/2,d-E/2,Pi.BOTTOM_LEFT):new la(n.left+C/2,n.top+n.height-E/2),this.topLeftBorderBox=i>0||a>0?da(n.left,n.top,i,a,Pi.TOP_LEFT):new la(n.left,n.top),this.topRightBorderBox=s>0||c>0?da(n.left+m,n.top,s,c,Pi.TOP_RIGHT):new la(n.left+n.width,n.top),this.bottomRightBorderBox=A>0||u>0?da(n.left+v,n.top+y,A,u,Pi.BOTTOM_RIGHT):new la(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=f>0||d>0?da(n.left,n.top+b,f,d,Pi.BOTTOM_LEFT):new la(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||a>0?da(n.left+C,n.top+w,Math.max(0,i-C),Math.max(0,a-w),Pi.TOP_LEFT):new la(n.left+C,n.top+w),this.topRightPaddingBox=s>0||c>0?da(n.left+Math.min(m,n.width-_),n.top+w,m>n.width+_?0:Math.max(0,s-_),Math.max(0,c-w),Pi.TOP_RIGHT):new la(n.left+n.width-_,n.top+w),this.bottomRightPaddingBox=A>0||u>0?da(n.left+Math.min(v,n.width-C),n.top+Math.min(y,n.height-E),Math.max(0,A-_),Math.max(0,u-E),Pi.BOTTOM_RIGHT):new la(n.left+n.width-_,n.top+n.height-E),this.bottomLeftPaddingBox=f>0||d>0?da(n.left+C,n.top+Math.min(b,n.height-E),Math.max(0,f-C),Math.max(0,d-E),Pi.BOTTOM_LEFT):new la(n.left+C,n.top+n.height-E),this.topLeftContentBox=i>0||a>0?da(n.left+C+k,n.top+w+x,Math.max(0,i-(C+k)),Math.max(0,a-(w+x)),Pi.TOP_LEFT):new la(n.left+C+k,n.top+w+x),this.topRightContentBox=s>0||c>0?da(n.left+Math.min(m,n.width+C+k),n.top+w+x,m>n.width+C+k?0:s-C+k,c-(w+x),Pi.TOP_RIGHT):new la(n.left+n.width-(_+B),n.top+w+x),this.bottomRightContentBox=A>0||u>0?da(n.left+Math.min(v,n.width-(C+k)),n.top+Math.min(y,n.height+w+x),Math.max(0,A-(_+B)),u-(E+T),Pi.BOTTOM_RIGHT):new la(n.left+n.width-(_+B),n.top+n.height-(E+T)),this.bottomLeftContentBox=f>0||d>0?da(n.left+C+k,n.top+b,Math.max(0,f-(C+k)),d-(E+T),Pi.BOTTOM_LEFT):new la(n.left+C+k,n.top+n.height-(E+T))};!function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Pi||(Pi={}));var da=function(t,e,n,r,i){var a=(Math.sqrt(2)-1)/3*4,o=n*a,s=r*a,c=t+n,l=e+r;switch(i){case Pi.TOP_LEFT:return new ua(new la(t,l),new la(t,l-s),new la(c-o,e),new la(c,e));case Pi.TOP_RIGHT:return new ua(new la(t,e),new la(t+o,e),new la(c,l-s),new la(c,l));case Pi.BOTTOM_RIGHT:return new ua(new la(c,e),new la(c,e+s),new la(t+o,l),new la(t,l));case Pi.BOTTOM_LEFT:default:return new ua(new la(c,l),new la(c-o,l),new la(t,e+s),new la(t,e))}},pa=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},ga=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},ma=function(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6},ya=function(t,e){this.path=t,this.target=e,this.type=1},va=function(t){this.opacity=t,this.type=2,this.target=6},ba=function(t){return 1===t.type},wa=function(t,e){return t.length===e.length&&t.some((function(t,n){return t===e[n]}))},_a=function(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Ea=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new fa(this.container),this.container.styles.opacity<1&&this.effects.push(new va(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new ma(n,r,i))}if(0!==this.container.styles.overflowX){var a=pa(this.curves),o=ga(this.curves);wa(a,o)?this.effects.push(new ya(a,6)):(this.effects.push(new ya(a,2)),this.effects.push(new ya(o,4)))}}return t.prototype.getEffects=function(t){for(var e=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter((function(t){return!ba(t)}));if(e||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,i),e=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var a=pa(n.curves),o=ga(n.curves);wa(a,o)||r.unshift(new ya(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter((function(e){return Wn(e.target,t)}))},t}(),Ca=function(t,e,n,r){t.container.elements.forEach((function(i){var a=Wn(i.flags,4),o=Wn(i.flags,2),s=new Ea(i,t);Wn(i.styles.display,2048)&&r.push(s);var c=Wn(i.flags,8)?[]:r;if(a||o){var l=a||i.styles.isPositioned()?n:e,A=new _a(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var u=i.styles.zIndex.order;if(u<0){var h=0;l.negativeZIndex.some((function(t,e){return u>t.element.container.styles.zIndex.order?(h=e,!1):h>0})),l.negativeZIndex.splice(h,0,A)}else if(u>0){var f=0;l.positiveZIndex.some((function(t,e){return u>=t.element.container.styles.zIndex.order?(f=e+1,!1):f>0})),l.positiveZIndex.splice(f,0,A)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(A)}else i.styles.isFloating()?l.nonPositionedFloats.push(A):l.nonPositionedInlineLevel.push(A);Ca(s,A,a?A:n,c)}else i.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),Ca(s,e,n,c);Wn(i.flags,8)&&xa(i,c)}))},xa=function(t,e){for(var n=t instanceof Wr?t.start:1,r=t instanceof Wr&&t.reversed,i=0;i<e.length;i++){var a=e[i];a.container instanceof zr&&"number"==typeof a.container.value&&0!==a.container.value&&(n=a.container.value),a.listValue=Ri(n,a.container.styles.listStyleType,!0),n+=r?-1:1}},Ba=function(t,e){switch(e){case 0:return ka(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return ka(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return ka(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return ka(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Ta=function(t,e){var n=[];return ha(t)?n.push(t.subdivide(.5,!1)):n.push(t),ha(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},ka=function(t,e,n,r){var i=[];return ha(t)?i.push(t.subdivide(.5,!1)):i.push(t),ha(n)?i.push(n.subdivide(.5,!0)):i.push(n),ha(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),ha(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},Sa=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Ia=function(t){var e=t.styles,n=t.bounds,r=te(e.paddingLeft,n.width),i=te(e.paddingRight,n.width),a=te(e.paddingTop,n.width),o=te(e.paddingBottom,n.width);return n.add(r+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+i),-(e.borderTopWidth+e.borderBottomWidth+a+o))},Na=function(t,e,n){var r=function(t,e){return 0===t?e.bounds:2===t?Ia(e):Sa(e)}(La(t.styles.backgroundOrigin,e),t),i=function(t,e){return 0===t?e.bounds:2===t?Ia(e):Sa(e)}(La(t.styles.backgroundClip,e),t),a=Da(La(t.styles.backgroundSize,e),n,r),o=a[0],s=a[1],c=Zt(La(t.styles.backgroundPosition,e),r.width-o,r.height-s);return[Oa(La(t.styles.backgroundRepeat,e),c,a,r,i),Math.round(r.left+c[0]),Math.round(r.top+c[1]),o,s]},Ma=function(t){return Qt(t)&&t.value===he.AUTO},Fa=function(t){return"number"==typeof t},Da=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=t[0],s=t[1];if(!o)return[0,0];if(zt(o)&&s&&zt(s))return[te(o,n.width),te(s,n.height)];var c=Fa(a);if(Qt(o)&&(o.value===he.CONTAIN||o.value===he.COVER))return Fa(a)?n.width/n.height<a!=(o.value===he.COVER)?[n.width,n.width/a]:[n.height*a,n.height]:[n.width,n.height];var l=Fa(r),A=Fa(i),u=l||A;if(Ma(o)&&(!s||Ma(s)))return l&&A?[r,i]:c||u?u&&c?[l?r:i*a,A?i:r/a]:[l?r:n.width,A?i:n.height]:[n.width,n.height];if(c){var h=0,f=0;return zt(o)?h=te(o,n.width):zt(s)&&(f=te(s,n.height)),Ma(o)?h=f*a:s&&!Ma(s)||(f=h/a),[h,f]}var d=null,p=null;if(zt(o)?d=te(o,n.width):s&&zt(s)&&(p=te(s,n.height)),null===d||s&&!Ma(s)||(p=l&&A?d/r*i:n.height),null!==p&&Ma(o)&&(d=l&&A?p/i*r:n.width),null!==d&&null!==p)return[d,p];throw new Error("Unable to calculate background-size for element")},La=function(t,e){var n=t[e];return void 0===n?t[0]:n},Oa=function(t,e,n,r,i){var a=e[0],o=e[1],s=n[0],c=n[1];switch(t){case 2:return[new la(Math.round(r.left),Math.round(r.top+o)),new la(Math.round(r.left+r.width),Math.round(r.top+o)),new la(Math.round(r.left+r.width),Math.round(c+r.top+o)),new la(Math.round(r.left),Math.round(c+r.top+o))];case 3:return[new la(Math.round(r.left+a),Math.round(r.top)),new la(Math.round(r.left+a+s),Math.round(r.top)),new la(Math.round(r.left+a+s),Math.round(r.height+r.top)),new la(Math.round(r.left+a),Math.round(r.height+r.top))];case 1:return[new la(Math.round(r.left+a),Math.round(r.top+o)),new la(Math.round(r.left+a+s),Math.round(r.top+o)),new la(Math.round(r.left+a+s),Math.round(r.top+o+c)),new la(Math.round(r.left+a),Math.round(r.top+o+c))];default:return[new la(Math.round(i.left),Math.round(i.top)),new la(Math.round(i.left+i.width),Math.round(i.top)),new la(Math.round(i.left+i.width),Math.round(i.height+i.top)),new la(Math.round(i.left),Math.round(i.height+i.top))]}},Ra=function(){function t(t){this._data={},this._document=t}return t.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",a.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode("Hidden Text")),n.appendChild(i),n.appendChild(r);var o=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode("Hidden Text")),n.style.lineHeight="normal",r.style.verticalAlign="super";var s=r.offsetTop-n.offsetTop+2;return a.removeChild(n),{baseline:o,middle:s}},t.prototype.getMetrics=function(t,e){var n=t+" "+e;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},t}(),Ua=function(t,e){this.context=t,this.options=e},Pa=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new Ra(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return e(n,t),n.prototype.applyEffects=function(t){for(var e=this;this._activeEffects.length;)this.popEffect();t.forEach((function(t){return e.applyEffect(t)}))},n.prototype.applyEffect=function(t){this.ctx.save(),function(t){return 2===t.type}(t)&&(this.ctx.globalAlpha=t.opacity),function(t){return 0===t.type}(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),ba(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return t.element.container.styles.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},n.prototype.renderNode=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return Wn(t.container.flags,16),t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(t)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},n.prototype.renderTextWithLetterSpacing=function(t,e,n){var r=this;0===e?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n):Rr(t.text).reduce((function(e,i){return r.ctx.fillText(i,e,t.bounds.top+n),e+r.ctx.measureText(i).width}),t.bounds.left)},n.prototype.createFontStyle=function(t){var e=t.fontVariant.filter((function(t){return"normal"===t||"small-caps"===t})).join(""),n=Ka(t.fontFamily).join(", "),r=Ut(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,e,t.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(t,e){return r(this,void 0,void 0,(function(){var n,r,a,o,s,c,l,A,u=this;return i(this,(function(i){return n=this.createFontStyle(e),r=n[0],a=n[1],o=n[2],this.ctx.font=r,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(a,o),c=s.baseline,l=s.middle,A=e.paintOrder,t.textBounds.forEach((function(t){A.forEach((function(n){switch(n){case 0:u.ctx.fillStyle=se(e.color),u.renderTextWithLetterSpacing(t,e.letterSpacing,c);var r=e.textShadow;r.length&&t.text.trim().length&&(r.slice(0).reverse().forEach((function(n){u.ctx.shadowColor=se(n.color),u.ctx.shadowOffsetX=n.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=n.offsetY.number*u.options.scale,u.ctx.shadowBlur=n.blur.number,u.renderTextWithLetterSpacing(t,e.letterSpacing,c)})),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),e.textDecorationLine.length&&(u.ctx.fillStyle=se(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:u.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+c),t.bounds.width,1);break;case 2:u.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:u.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+l),t.bounds.width,1)}})));break;case 1:e.webkitTextStrokeWidth&&t.text.trim().length&&(u.ctx.strokeStyle=se(e.webkitTextStrokeColor),u.ctx.lineWidth=e.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter"}}))})),[2]}))}))},n.prototype.renderReplacedElement=function(t,e,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var r=Ia(t),i=ga(e);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(t){return r(this,void 0,void 0,(function(){var e,r,a,s,c,l,A,u,h,f,d,p,g,m,y,v,b,w;return i(this,(function(i){switch(i.label){case 0:this.applyEffects(t.getEffects(4)),e=t.container,r=t.curves,a=e.styles,s=0,c=e.textNodes,i.label=1;case 1:return s<c.length?(l=c[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:i.sent(),i.label=3;case 3:return s++,[3,1];case 4:if(!(e instanceof $r))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return y=i.sent(),this.renderReplacedElement(e,r,y),[3,8];case 7:return i.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof Yr&&this.renderReplacedElement(e,r,e.canvas),!(e instanceof Vr))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return y=i.sent(),this.renderReplacedElement(e,r,y),[3,12];case 11:return i.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof ni&&e.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree)]:[3,14];case 13:A=i.sent(),e.width&&e.height&&this.ctx.drawImage(A,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),i.label=14;case 14:if(e instanceof Zr&&(u=Math.min(e.bounds.width,e.bounds.height),"checkbox"===e.type?e.checked&&(this.ctx.save(),this.path([new la(e.bounds.left+.39363*u,e.bounds.top+.79*u),new la(e.bounds.left+.16*u,e.bounds.top+.5549*u),new la(e.bounds.left+.27347*u,e.bounds.top+.44071*u),new la(e.bounds.left+.39694*u,e.bounds.top+.5649*u),new la(e.bounds.left+.72983*u,e.bounds.top+.23*u),new la(e.bounds.left+.84*u,e.bounds.top+.34085*u),new la(e.bounds.left+.39363*u,e.bounds.top+.79*u)]),this.ctx.fillStyle=se(707406591),this.ctx.fill(),this.ctx.restore()):"radio"===e.type&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+u/2,e.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=se(707406591),this.ctx.fill(),this.ctx.restore())),Qa(e)&&e.value.length){switch(h=this.createFontStyle(a),b=h[0],f=h[1],d=this.fontMetrics.getMetrics(b,f).baseline,this.ctx.font=b,this.ctx.fillStyle=se(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ga(e.styles.textAlign),w=Ia(e),p=0,e.styles.textAlign){case 1:p+=w.width/2;break;case 2:p+=w.width}g=w.add(p,0,0,-w.height/2+1),this.ctx.save(),this.path([new la(w.left,w.top),new la(w.left+w.width,w.top),new la(w.left+w.width,w.top+w.height),new la(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Dr(e.value,g),a.letterSpacing,d),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Wn(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if(0!==(m=e.styles.listStyleImage).type)return[3,18];y=void 0,v=m.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(v)];case 16:return y=i.sent(),this.ctx.drawImage(y,e.bounds.left-(y.width+10),e.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error("Error loading list-style-image "+v),[3,18];case 18:return[3,20];case 19:t.listValue&&-1!==e.styles.listStyleType&&(b=this.createFontStyle(a)[0],this.ctx.font=b,this.ctx.fillStyle=se(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new o(e.bounds.left,e.bounds.top+te(e.styles.paddingTop,e.bounds.width),e.bounds.width,hn(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Dr(t.listValue,w),a.letterSpacing,hn(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}}))}))},n.prototype.renderStackContent=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o,s,c,l,A,u,h,f,d,p,g;return i(this,(function(i){switch(i.label){case 0:return Wn(t.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:i.sent(),e=0,n=t.negativeZIndex,i.label=2;case 2:return e<n.length?(g=n[e],[4,this.renderStack(g)]):[3,5];case 3:i.sent(),i.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:i.sent(),r=0,a=t.nonInlineLevel,i.label=7;case 7:return r<a.length?(g=a[r],[4,this.renderNode(g)]):[3,10];case 8:i.sent(),i.label=9;case 9:return r++,[3,7];case 10:o=0,s=t.nonPositionedFloats,i.label=11;case 11:return o<s.length?(g=s[o],[4,this.renderStack(g)]):[3,14];case 12:i.sent(),i.label=13;case 13:return o++,[3,11];case 14:c=0,l=t.nonPositionedInlineLevel,i.label=15;case 15:return c<l.length?(g=l[c],[4,this.renderStack(g)]):[3,18];case 16:i.sent(),i.label=17;case 17:return c++,[3,15];case 18:A=0,u=t.inlineLevel,i.label=19;case 19:return A<u.length?(g=u[A],[4,this.renderNode(g)]):[3,22];case 20:i.sent(),i.label=21;case 21:return A++,[3,19];case 22:h=0,f=t.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return h<f.length?(g=f[h],[4,this.renderStack(g)]):[3,26];case 24:i.sent(),i.label=25;case 25:return h++,[3,23];case 26:d=0,p=t.positiveZIndex,i.label=27;case 27:return d<p.length?(g=p[d],[4,this.renderStack(g)]):[3,30];case 28:i.sent(),i.label=29;case 29:return d++,[3,27];case 30:return[2]}}))}))},n.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},n.prototype.formatPath=function(t){var e=this;t.forEach((function(t,n){var r=ha(t)?t.start:t;0===n?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),ha(t)&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)}))},n.prototype.renderRepeat=function(t,e,n,r){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(t,e,n){var r;if(t.width===e&&t.height===n)return t;var i=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return i.width=Math.max(1,e),i.height=Math.max(1,n),i.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,e,n),i},n.prototype.renderBackgroundImage=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o,s;return i(this,(function(c){switch(c.label){case 0:e=t.styles.backgroundImage.length-1,n=function(n){var a,o,s,c,l,A,u,h,f,d,p,g,m,y,v,b,w,_,E,C,x,B,T,k,S,I,N,M,F,D,L;return i(this,(function(i){switch(i.label){case 0:if(0!==n.type)return[3,5];a=void 0,o=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.context.cache.match(o)];case 2:return a=i.sent(),[3,4];case 3:return i.sent(),r.context.logger.error("Error loading background-image "+o),[3,4];case 4:return a&&(s=Na(t,e,[a.width,a.height,a.width/a.height]),b=s[0],B=s[1],T=s[2],E=s[3],C=s[4],y=r.ctx.createPattern(r.resizeImage(a,E,C),"repeat"),r.renderRepeat(b,y,B,T)),[3,6];case 5:1===n.type?(c=Na(t,e,[null,null,null]),b=c[0],B=c[1],T=c[2],E=c[3],C=c[4],l=we(n.angle,E,C),A=l[0],u=l[1],h=l[2],f=l[3],d=l[4],(p=document.createElement("canvas")).width=E,p.height=C,g=p.getContext("2d"),m=g.createLinearGradient(u,f,h,d),be(n.stops,A).forEach((function(t){return m.addColorStop(t.stop,se(t.color))})),g.fillStyle=m,g.fillRect(0,0,E,C),E>0&&C>0&&(y=r.ctx.createPattern(p,"repeat"),r.renderRepeat(b,y,B,T))):function(t){return 2===t.type}(n)&&(v=Na(t,e,[null,null,null]),b=v[0],w=v[1],_=v[2],E=v[3],C=v[4],x=0===n.position.length?[Xt]:n.position,B=te(x[0],E),T=te(x[x.length-1],C),k=function(t,e,n,r,i){var a=0,o=0;switch(t.size){case 0:0===t.shape?a=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(a=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===t.shape)a=o=Math.min(_e(e,n),_e(e,n-i),_e(e-r,n),_e(e-r,n-i));else if(1===t.shape){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(e),Math.abs(e-r)),c=Ee(r,i,e,n,!0),l=c[0],A=c[1];o=s*(a=_e(l-e,(A-n)/s))}break;case 1:0===t.shape?a=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(a=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===t.shape)a=o=Math.max(_e(e,n),_e(e,n-i),_e(e-r,n),_e(e-r,n-i));else if(1===t.shape){s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(e),Math.abs(e-r));var u=Ee(r,i,e,n,!1);l=u[0],A=u[1],o=s*(a=_e(l-e,(A-n)/s))}}return Array.isArray(t.size)&&(a=te(t.size[0],r),o=2===t.size.length?te(t.size[1],i):a),[a,o]}(n,B,T,E,C),S=k[0],I=k[1],S>0&&I>0&&(N=r.ctx.createRadialGradient(w+B,_+T,0,w+B,_+T,S),be(n.stops,2*S).forEach((function(t){return N.addColorStop(t.stop,se(t.color))})),r.path(b),r.ctx.fillStyle=N,S!==I?(M=t.bounds.left+.5*t.bounds.width,F=t.bounds.top+.5*t.bounds.height,L=1/(D=I/S),r.ctx.save(),r.ctx.translate(M,F),r.ctx.transform(1,0,0,D,0,0),r.ctx.translate(-M,-F),r.ctx.fillRect(w,L*(_-F)+F,E,C*L),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return e--,[2]}}))},r=this,a=0,o=t.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return a<o.length?(s=o[a],[5,n(s)]):[3,4];case 2:c.sent(),c.label=3;case 3:return a++,[3,1];case 4:return[2]}}))}))},n.prototype.renderSolidBorder=function(t,e,n){return r(this,void 0,void 0,(function(){return i(this,(function(r){return this.path(Ba(n,e)),this.ctx.fillStyle=se(t),this.ctx.fill(),[2]}))}))},n.prototype.renderDoubleBorder=function(t,e,n,a){return r(this,void 0,void 0,(function(){var r,o;return i(this,(function(i){switch(i.label){case 0:return e<3?[4,this.renderSolidBorder(t,n,a)]:[3,2];case 1:return i.sent(),[2];case 2:return r=function(t,e){switch(e){case 0:return ka(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return ka(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return ka(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return ka(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}}(a,n),this.path(r),this.ctx.fillStyle=se(t),this.ctx.fill(),o=function(t,e){switch(e){case 0:return ka(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return ka(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return ka(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return ka(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}}(a,n),this.path(o),this.ctx.fill(),[2]}}))}))},n.prototype.renderNodeBackgroundAndBorders=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o,s,c,l,A=this;return i(this,(function(i){switch(i.label){case 0:return this.applyEffects(t.getEffects(2)),e=t.container.styles,n=!oe(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],a=Ha(La(e.backgroundClip,0),t.curves),n||e.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),oe(e.backgroundColor)||(this.ctx.fillStyle=se(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){A.ctx.save();var n=pa(t.curves),r=e.inset?0:1e4,i=function(t,e,n,r,i){return t.map((function(t,a){switch(a){case 0:return t.add(e,n);case 1:return t.add(e+r,n);case 2:return t.add(e+r,n+i);case 3:return t.add(e,n+i)}return t}))}(n,-r+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(A.path(n),A.ctx.clip(),A.mask(i)):(A.mask(n),A.ctx.clip(),A.path(i)),A.ctx.shadowOffsetX=e.offsetX.number+r,A.ctx.shadowOffsetY=e.offsetY.number,A.ctx.shadowColor=se(e.color),A.ctx.shadowBlur=e.blur.number,A.ctx.fillStyle=e.inset?se(e.color):"rgba(0,0,0,1)",A.ctx.fill(),A.ctx.restore()})),i.label=2;case 2:o=0,s=0,c=r,i.label=3;case 3:return s<c.length?0!==(l=c[s]).style&&!oe(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,2)]:[3,11]:[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,t.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,t.curves)];case 10:i.sent(),i.label=11;case 11:o++,i.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(t,e,n,a,o){return r(this,void 0,void 0,(function(){var r,s,c,l,A,u,h,f,d,p,g,m,y,v,b,w;return i(this,(function(i){return this.ctx.save(),r=function(t,e){switch(e){case 0:return Ta(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Ta(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Ta(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Ta(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}}(a,n),s=Ba(a,n),2===o&&(this.path(s),this.ctx.clip()),ha(s[0])?(c=s[0].start.x,l=s[0].start.y):(c=s[0].x,l=s[0].y),ha(s[1])?(A=s[1].end.x,u=s[1].end.y):(A=s[1].x,u=s[1].y),h=0===n||2===n?Math.abs(c-A):Math.abs(l-u),this.ctx.beginPath(),3===o?this.formatPath(r):this.formatPath(s.slice(0,2)),f=e<3?3*e:2*e,d=e<3?2*e:e,3===o&&(f=e,d=e),p=!0,h<=2*f?p=!1:h<=2*f+d?(f*=g=h/(2*f+d),d*=g):(m=Math.floor((h+d)/(f+d)),y=(h-m*f)/(m-1),d=(v=(h-(m+1)*f)/m)<=0||Math.abs(d-y)<Math.abs(d-v)?y:v),p&&(3===o?this.ctx.setLineDash([0,f+d]):this.ctx.setLineDash([f,d])),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=se(t),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(ha(s[0])&&(b=s[3],w=s[0],this.ctx.beginPath(),this.formatPath([new la(b.end.x,b.end.y),new la(w.start.x,w.start.y)]),this.ctx.stroke()),ha(s[1])&&(b=s[1],w=s[2],this.ctx.beginPath(),this.formatPath([new la(b.end.x,b.end.y),new la(w.start.x,w.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},n.prototype.render=function(t){return r(this,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=se(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),e=function(t){var e=new Ea(t,null),n=new _a(e),r=[];return Ca(e,n,n,r),xa(e.container,r),n}(t),[4,this.renderStack(e)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},n}(Ua),Qa=function(t){return t instanceof ei||t instanceof ti||t instanceof Zr&&"radio"!==t.type&&"checkbox"!==t.type},Ha=function(t,e){switch(t){case 0:return pa(e);case 2:return function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]}(e);case 1:default:return ga(e)}},Ga=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},ja=["-apple-system","system-ui"],Ka=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter((function(t){return-1===ja.indexOf(t)})):t},$a=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return e(n,t),n.prototype.render=function(t){return r(this,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:return e=Nr(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Ya(e)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=se(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},n}(Ua),Ya=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Va=function(){function t(t){var e=t.id,n=t.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,a([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,a([this.id,this.getTime()+"ms"],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,a([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,a([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.instances={},t}(),za=function(){function t(e,n){var r;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new Va({id:this.instanceName,enabled:e.logging}),this.cache=null!==(r=e.cache)&&void 0!==r?r:new ta(this,e)}return t.instanceCount=1,t}();"undefined"!=typeof window&&Zi.setContext(window);var Wa=function(t,e){return r(void 0,void 0,void 0,(function(){var r,a,c,l,A,u,h,f,d,p,g,m,y,v,b,w,_,E,C,x,B,T,k,S,I,N,M,F,D,L,O,R,U,P,Q,H,G,j;return i(this,(function(i){switch(i.label){case 0:if(!t||"object"!=typeof t)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=t.ownerDocument))throw new Error("Element is not attached to a Document");if(!(a=r.defaultView))throw new Error("Document is not attached to a Window");return c={allowTaint:null!==(T=e.allowTaint)&&void 0!==T&&T,imageTimeout:null!==(k=e.imageTimeout)&&void 0!==k?k:15e3,proxy:e.proxy,useCORS:null!==(S=e.useCORS)&&void 0!==S&&S},l=n({logging:null===(I=e.logging)||void 0===I||I,cache:e.cache},c),A={windowWidth:null!==(N=e.windowWidth)&&void 0!==N?N:a.innerWidth,windowHeight:null!==(M=e.windowHeight)&&void 0!==M?M:a.innerHeight,scrollX:null!==(F=e.scrollX)&&void 0!==F?F:a.pageXOffset,scrollY:null!==(D=e.scrollY)&&void 0!==D?D:a.pageYOffset},u=new o(A.scrollX,A.scrollY,A.windowWidth,A.windowHeight),h=new za(l,u),f=null!==(L=e.foreignObjectRendering)&&void 0!==L&&L,d={allowTaint:null!==(O=e.allowTaint)&&void 0!==O&&O,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:f,copyStyles:f},h.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),p=new Ui(h,t,d),(g=p.clonedReferenceElement)?[4,p.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=i.sent(),y=mi(g)||function(t){return"HTML"===t.tagName}(g)?function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),i=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new o(0,0,r,i)}(g.ownerDocument):s(h,g),v=y.width,b=y.height,w=y.left,_=y.top,E=qa(h,g,e.backgroundColor),C={canvas:e.canvas,backgroundColor:E,scale:null!==(U=null!==(R=e.scale)&&void 0!==R?R:a.devicePixelRatio)&&void 0!==U?U:1,x:(null!==(P=e.x)&&void 0!==P?P:0)+w,y:(null!==(Q=e.y)&&void 0!==Q?Q:0)+_,width:null!==(H=e.width)&&void 0!==H?H:Math.ceil(v),height:null!==(G=e.height)&&void 0!==G?G:Math.ceil(b)},f?(h.logger.debug("Document cloned, using foreign object rendering"),[4,new $a(h,C).render(g)]):[3,3];case 2:return x=i.sent(),[3,5];case 3:return h.logger.debug("Document cloned, element located at "+w+","+_+" with size "+v+"x"+b+" using computed rendering"),h.logger.debug("Starting DOM parsing"),B=oi(h,g),E===B.styles.backgroundColor&&(B.styles.backgroundColor=ge.TRANSPARENT),h.logger.debug("Starting renderer for element at "+C.x+","+C.y+" with size "+C.width+"x"+C.height),[4,new Pa(h,C).render(B)];case 4:x=i.sent(),i.label=5;case 5:return(null===(j=e.removeContainer)||void 0===j||j)&&(Ui.destroy(m)||h.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),h.logger.debug("Finished rendering"),[2,x]}}))}))},qa=function(t,e,n){var r=e.ownerDocument,i=r.documentElement?pe(t,getComputedStyle(r.documentElement).backgroundColor):ge.TRANSPARENT,a=r.body?pe(t,getComputedStyle(r.body).backgroundColor):ge.TRANSPARENT,o="string"==typeof n?pe(t,n):null===n?ge.TRANSPARENT:4294967295;return e===r.documentElement?oe(i)?oe(a)?o:a:i:o};return function(t,e){return void 0===e&&(e={}),Wa(t,e)}}()})),Yg=function(t,e){var n=t.cloneNode(!0),r=document.createElement("div");r.appendChild(n);var i=function(){var t,e=[];return Na(t=Rr(document.body.children)).call(t,(function(t,n){e[n]=t.style.display,t.style.display="none"})),e}();document.body.appendChild(r);var a=document.body.style.overflow;document.body.style.overflow="visible",e(n,(function(){r.remove(),function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Na(t=Rr(document.body.children)).call(t,(function(t,n){void 0!==e[n]&&(t.style.display=e[n])}))}(i),document.body.style.overflow=a}))};function Vg(t){Yg(t,(function(t,e){window.print(),e()}))}function zg(t){Yg(t,(function(t,e){window.scrollTo(0,0),$g(t,{allowTaint:!0,height:t.clientHeight,width:t.clientWidth,scrollY:0,scrollX:0}).then((function(t){var n,r,i=t.toDataURL("image/jpeg");n=i,(r=document.createElement("a")).style.display="none",r.href=n,r.download="cherry.png",document.body.appendChild(r),r.click(),document.body.removeChild(r),e()}))}))}var Wg={mouseResize:{},getImgPosition:function(){var t=this.img.getBoundingClientRect(),e=this.previewerDom.parentNode.getBoundingClientRect(),n=ld(this.img.style.padding)||0;return{bottom:t.bottom-e.bottom,top:t.top-e.top+1.5*n,height:t.height,width:t.width,right:t.right-e.right,left:t.left-e.left+1.5*n,x:t.x-e.x,y:t.y-e.y}},initBubbleButtons:function(){var t=this.getImgPosition();return{points:{arr:["leftTop","leftBottom","rightTop","rightBottom","leftMiddle","middleBottom","middleTop","rightMiddle"],arrInfo:{leftTop:{name:"20",left:0,top:0},leftBottom:{name:"00",left:0,top:0},rightTop:{name:"22",left:0,top:0},rightBottom:{name:"02",left:0,top:0},leftMiddle:{name:"10",left:0,top:0},middleBottom:{name:"01",left:0,top:0},middleTop:{name:"21",left:0,top:0},rightMiddle:{name:"12",left:0,top:0}}},imgSrc:this.img.src,style:{width:this.img.width,height:this.img.height,left:t.left-1,top:t.top-1,marginTop:0,marginLeft:0},scrollTop:this.previewerDom.scrollTop,position:t}},showBubble:function(t,e,n){this.$isResizing()||(this.img=t,this.previewerDom=n,this.container=e,this.buts=this.initBubbleButtons(),this.drawBubbleButs())},emit:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t){case"mousedown":return this.resizeBegin(e);case"mouseup":return this.resizeStop(e);case"mousemove":return this.resizeWorking(e);case"scroll":return this.dealScroll(e);case"remove":return this.remove();case"previewUpdate":return this.previewUpdate(e)}},previewUpdate:function(t){this.$isResizing()||(this.remove(),t())},drawBubbleButs:function(){var t,e=this;return this.butsLayout||(this.butsLayout=this.container,this.butsImg=document.createElement("div"),this.butsImg.className="cherry-previewer-img-size-hander__background",this.butsImg.style.backgroundImage="url(".concat(this.buts.imgSrc,")"),this.butsLayout.append(this.butsImg),this.butsPoints={},Na(t=ha(this.buts.points.arr)).call(t,(function(t){var n=e.buts.points.arr[t],r=document.createElement("div");r.className=["cherry-previewer-img-size-hander__points","cherry-previewer-img-size-hander__points-".concat(n)].join(" "),r.dataset.name=n,e.butsLayout.append(r),e.butsPoints["pints-".concat(n)]=r}))),this.updateBubbleButs()},remove:function(){this.butsLayout=!1},updateBubbleButs:function(){var t,e,n=this;this.$updatePointsInfo(),Na(t=ha(this.buts.style)).call(t,(function(t){n.butsLayout.style[t]="".concat(n.buts.style[t],"px")})),Na(e=ha(this.buts.points.arr)).call(e,(function(t){var e=n.buts.points.arr[t];n.butsPoints["pints-".concat(e)].style.top="".concat(n.buts.points.arrInfo[e].top,"px"),n.butsPoints["pints-".concat(e)].style.left="".concat(n.buts.points.arrInfo[e].left,"px")}))},$updatePointsInfo:function(){var t,e=this,n=this.buts.style.width,r=this.buts.style.height,i=this.$getPointsInfo(n,r);Na(t=ha(this.buts.points.arr)).call(t,(function(t){var n=e.buts.points.arr[t];e.buts.points.arrInfo[n].left!==i[n].left&&(e.buts.points.arrInfo[n].left=i[n].left),e.buts.points.arrInfo[n].top!==i[n].top&&(e.buts.points.arrInfo[n].top=i[n].top)}))},$getPointsInfo:function(t,e){return{leftTop:{left:0,top:0},leftBottom:{left:0,top:e},rightTop:{left:t,top:0},rightBottom:{left:t,top:e},leftMiddle:{left:0,top:e/2},middleBottom:{left:t/2,top:e},middleTop:{left:t/2,top:0},rightMiddle:{left:t,top:e/2}}},$isResizing:function(){return this.mouseResize.resize},dealScroll:function(t){var e=this.getImgPosition();this.butsLayout.style.marginTop!==e.top-this.buts.position.top&&(this.butsLayout.style.marginTop="".concat(e.top-this.buts.position.top,"px"),this.buts.style.marginTop="".concat(e.top-this.buts.position.top,"px")),this.butsLayout.style.marginLeft!==e.left-this.buts.position.left&&(this.butsLayout.style.marginLeft="".concat(e.left-this.buts.position.left,"px"),this.buts.style.marginLeft="".concat(e.left-this.buts.position.left,"px"))},initMouse:function(){return{left:0,top:0,resize:!1,name:""}},resizeBegin:function(t){var e=t.target;if(!e.classList.contains("cherry-previewer-img-size-hander__points"))return!1;this.mouseResize.left=t.clientX,this.mouseResize.top=t.clientY,this.mouseResize.resize=!0,this.mouseResize.name=e.getAttribute("data-name"),this.previewerDom.classList.add("doing-resize-img")},resizeStop:function(t,e,n,r){if(!this.$isResizing())return!1;this.img.style.width="".concat(this.buts.style.width,"px"),this.img.style.height="".concat(this.buts.style.height,"px"),this.buts.style.marginTop=0,this.buts.style.marginLeft=0,this.updateBubbleButs(),this.mouseResize.resize=!1,this.previewerDom.classList.remove("doing-resize-img"),this.change()},resizeWorking:function(t,e){if(this.$isResizing()){var n=t.clientX-this.mouseResize.left,r=t.clientY-this.mouseResize.top,i={};switch(this.mouseResize.name){case"leftTop":case"leftBottom":case"leftMiddle":i=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width-i.changeX,"leftMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height-i.changeY);break;case"rightTop":case"rightBottom":case"rightMiddle":i=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width+i.changeX,"rightMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height+i.changeY);break;case"middleTop":i=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height-i.changeY;break;case"middleBottom":i=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height+i.changeY}this.updateBubbleButs(),this.change()}},change:function(){this.emitChange(this.img,{width:this.buts.style.width,height:this.buts.style.height})},bindChange:function(t){this.emitChange=t},$getChange:function(t,e,n){var r={changeX:0,changeY:0};switch(n){case"y":r.changeY=e,r.changeX=e*this.buts.position.width/this.buts.position.height;break;default:r.changeX=t,r.changeY=t*this.buts.position.height/this.buts.position.width}return r}},qg={tableEditor:{info:{},tableCodes:[],editorDom:{}},emit:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(t){case"keyup":return this.$onInputChange(e);case"remove":return this.$remove();case"scroll":case"previewUpdate":return this.$setInputOffset();case"mouseup":return this.$tryRemoveMe(e,n)}},$tryRemoveMe:function(t,e){/textarea/i.test(t.target.tagName)||(this.$remove(),e())},$getTdPosition:function(){var t=this.tableEditor.info.tdNode.getBoundingClientRect(),e=this.previewerDom.parentNode.getBoundingClientRect();return{top:t.top-e.top,height:t.height,width:t.width,left:t.left-e.left,maxHeight:e.height}},$setInputOffset:function(){var t=this.$getTdPosition(),e=this.tableEditor.editorDom.inputDiv,n=e.getBoundingClientRect();n.width!==t.width&&(e.style.width="".concat(t.width,"px")),n.height!==t.height&&(e.style.height="".concat(t.height,"px")),n.top!==t.top&&(e.style.top="".concat(t.top,"px")),n.left!==t.left&&(e.style.left="".concat(t.left,"px")),t.top<0||t.top+t.height>t.maxHeight?e.style.display="none":e.style.display=""},$remove:function(){this.tableEditor={info:{},tableCodes:[],editorDom:{}}},$collectTableCode:function(){var t=[];this.codeMirror.getValue().replace(this.codeBlockReg,(function(t){return t.replace(/\|/g,".")})).replace(this.tableReg,(function(e){var n,r=e.replace(/^\n*/,""),i=((n=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=n?void 0:arguments[n])+e.match(/^\n*/)[0].length;t.push({code:r,offset:i})})),this.tableEditor.tableCodes=t},$collectTableDom:function(){var t,e,n=Rr(this.previewerDom.querySelectorAll("table.cherry-table")),r=this.$getClosestNode(this.td,"TABLE");if(!1===r)return!1;this.tableEditor.info={tableNode:r,tdNode:this.td,trNode:this.td.parentElement,tdIndex:Ul(t=Rr(this.td.parentElement.childNodes)).call(t,this.td),trIndex:Ul(e=Rr(this.td.parentElement.parentElement.childNodes)).call(e,this.td.parentElement),isTHead:"TBODY"!==this.td.parentElement.parentElement.tagName,totalTables:n.length,tableIndex:Ul(n).call(n,r),tableText:r.textContent.replace(/[\s]/g,"")}},$setSelection:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table",n=this.tableEditor.tableCodes[t],r=this.codeMirror.getValue(),i=this.tableEditor.info,a=wn(r).call(r,0,n.offset).match(/\n/g).length,o=this.$getTdOffset(n.code,i.isTHead,i.trIndex,i.tdIndex),s=o.preLine,c=o.preCh,l=o.plusCh,A=o.currentTd;if("table"===e){var u=a+n.code.match(/\n/g).length,h=n.code.match(/[^\n]+\n*$/)[0].length;this.codeMirror.setSelection({line:a,ch:0},{line:u,ch:h})}else this.codeMirror.setSelection({line:a+s,ch:c},{line:a+s,ch:c+l});this.tableEditor.info.code=A},$getTdOffset:function(t,e,n,r){for(var i=e?0:n+2,a=t.split(/\n/)[i].split(/\|/),o=/^\s*$/.test(a[0]),s=o?r+1:r,c=a[s],l=[],A=0;A<s;A++)l.push(a[A]);return{preLine:i,preCh:o?l.join("|").length+1:l.join("|").length,plusCh:c.length,currentTd:c}},$findTableInEditor:function(){if(this.$collectTableDom(),this.$collectTableCode(),this.tableEditor.info.totalTables!==this.tableEditor.tableCodes.length)return!1;this.$setSelection(this.tableEditor.info.tableIndex,"td")},$initReg:function(){this.tableReg=this.tableReg?this.tableReg:Pu(!0),this.codeBlockReg=this.codeBlockReg?this.codeBlockReg:Qu().reg},showBubble:function(t,e,n,r){this.td=t,this.previewerDom=n,this.container=e,this.codeMirror=r,this.$initReg(),this.$findTableInEditor(),this.$drawEditor()},$isEditing:function(){return this.tableEditor.editing},$drawEditor:function(){var t=document.createElement("div");t.className="cherry-previewer-table-content-hander__input";var e=document.createElement("textarea");t.append(e),this.tableEditor.editorDom.inputDiv=t,this.tableEditor.editorDom.inputDom=e,this.$updateEditorPosition(),this.container.append(this.tableEditor.editorDom.inputDiv),this.tableEditor.editorDom.inputDom.value=this.tableEditor.info.code.replace(/<br>/g,"\n"),this.tableEditor.editorDom.inputDom.focus()},$onInputChange:function(t){this.codeMirror.replaceSelection(t.target.value.replace(/\n/g,"<br>"),"around")},$updateEditorPosition:function(){this.$setInputOffset();var t=getComputedStyle(this.tableEditor.info.tdNode);this.tableEditor.editorDom.inputDom.style.textAlign=t.textAlign||"left",this.tableEditor.editorDom.inputDom.style.fontSize=t.fontSize||"16px",this.tableEditor.editorDom.inputDom.style.fontFamily=t.fontFamily,this.tableEditor.editorDom.inputDom.style.lineHeight=t.lineHeight,this.tableEditor.editorDom.inputDom.style.padding=t.padding,/left/.test(t.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),/right/.test(t.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px"),/center/.test(t.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px",this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),this.tableEditor.editorDom.inputDom.style.paddingBottom="0px"},$getClosestNode:function(t,e){return t.tagName===e?t:"BODY"!==t.parentNode.tagName&&this.$getClosestNode(t.parentNode,e)}};function Xg(t){function e(e){e.clipboardData.setData("text/html",t),e.clipboardData.setData("text/plain",t),e.preventDefault()}document.addEventListener("copy",e),document.execCommand("copy"),document.removeEventListener("copy",e)}var Jg=function(){function t(e){Ha(this,t),this.previewer=e,this.editor=e.editor,this.previewerDom=this.previewer.getDom(),this.bubbleHandler={emit:function(){}},this.init()}return ja(t,[{key:"init",value:function(){var t,e=this;this.previewerDom.addEventListener("click",go(t=this.$onClick).call(t,this)),document.addEventListener("mousedown",(function(t){e.bubbleHandler.emit("mousedown",t)})),document.addEventListener("mouseup",(function(t){e.bubbleHandler.emit("mouseup",t,(function(){e.$removeAllPreviewerBubbles()}))})),document.addEventListener("mousemove",(function(t){e.bubbleHandler.emit("mousemove",t)})),document.addEventListener("keyup",(function(t){e.bubbleHandler.emit("keyup",t)})),this.previewerDom.addEventListener("scroll",(function(t){e.bubbleHandler.emit("scroll",t)})),Kg.on(this.previewer.instanceId,Kg.Events.previewerClose,(function(){e.$removeAllPreviewerBubbles()})),this.previewer.options.afterUpdateCallBack.push((function(){e.bubbleHandler.emit("previewUpdate",(function(){e.$removeAllPreviewerBubbles()}))}))}},{key:"$onClick",value:function(t){var e=t.target;this.$dealCopyCodeBlock(t);var n=this.previewer.$cherry.getStatus();if("hide"!==n.editor){if(this.$removeAllPreviewerBubbles(),void 0!==e.tagName)switch(e.tagName){case"IMG":this.bubbleHandler=this.$showImgPreviewerBubbles(e);break;case"TD":case"TH":this.bubbleHandler=this.$showTablePreviewerBubbles(e)}}else"show"===n.previewer&&this.previewer.$cherry.options.callback.onClickPreview&&this.previewer.$cherry.options.callback.onClickPreview(t)}},{key:"$dealCopyCodeBlock",value:function(t){var e,n=t.target;if("cherry-copy-code-block"===n.className||"cherry-copy-code-block"===(null===(e=n.parentNode)||void 0===e?void 0:e.className)){var r="cherry-copy-code-block"===n.className?n.parentNode:n.parentNode.parentNode,i=r.innerText,a=this.previewer.$cherry.options.callback.onCopyCode(t,i);if(!1===a)return!1;var o=r.querySelector("i.ch-icon-copy");o&&(o.className=o.className.replace("copy","ok"),xo((function(){o.className=o.className.replace("ok","copy")}),1500)),Xg(a)}}},{key:"$removeAllPreviewerBubbles",value:function(){this.bubble&&(this.bubble.remove(),this.bubbleHandler.emit("remove"),this.bubble=null,this.bubbleHandler={emit:function(){}})}},{key:"$showTablePreviewerBubbles",value:function(t){return this.$createPreviewerBubbles("table-content-hander"),qg.showBubble(t,this.bubble,this.previewerDom,this.editor.editor),qg}},{key:"$showImgPreviewerBubbles",value:function(t){var e;this.$createPreviewerBubbles();var n=Rr(this.previewerDom.querySelectorAll("img"));return this.totalImgs=n.length,this.imgIndex=Ul(n).call(n,t),this.beginChangeImgValue(t)?(Wg.showBubble(t,this.bubble,this.previewerDom),Wg.bindChange(go(e=this.changeImgValue).call(e,this)),Wg):{emit:function(){}}}},{key:"beginChangeImgValue",value:function(t){var e,n=this.editor.editor.getValue(),r=t.getAttribute("src"),i=/!\[[^\n]*?\](\([^)]+\)|\[[^\]]+\])/g,a=n.match(i),o=a[this.imgIndex]?Tl(e=a[this.imgIndex].replace(/^!\[.*?\]\((.*?)\)/,"$1")).call(e):"";if(a.length===this.totalImgs||r===o){for(var s,c=this.editor.editor.getSearchCursor(i),l=0;l<=this.imgIndex;l++){var A,u;s=null!==(A=null===(u=c.findNext())||void 0===u?void 0:u[0])&&void 0!==A&&A}var h=c.from();if(!h)return!1;var f=h.line,d=/^!\[.*?((?:#center|#right|#left|#float-right|#float-left|#border|#B|#shadow|#S|#radius|#R)+).*?\].*$/;this.imgAppend=!!d.test(s)&&s.replace(d,"$1");var p=h.ch+s.replace(/^(!\[[^#\]]*).*$/,"$1").length,g=p+s.replace(/^(!\[[^#\]]*)([^\]]*?)\].*$/,"$2").length;return this.editor.editor.setSelection({line:f,ch:p},{line:f,ch:g}),!0}return!1}},{key:"changeImgValue",value:function(t,e){var n,r,i=this.imgAppend?" ".concat(this.imgAppend):"";this.editor.editor.replaceSelection(uo(n=uo(r="#".concat(Math.round(e.width),"px #")).call(r,Math.round(e.height),"px")).call(n,i),"around")}},{key:"$createPreviewerBubbles",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"img-size-hander";this.bubble||(this.bubble=document.createElement("div"),this.bubble.className="cherry-previewer-".concat(t),this.previewerDom.after(this.bubble))}},{key:"$showBorderBubbles",value:function(){}},{key:"$showBtnBubbles",value:function(){}}]),t}(),Zg=R.setInterval,tm=function(){function t(e,n){Ha(this,t),co(this,"options",{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(t){},failLoadOneImgCallback:function(t){},afterLoadOneImgCallback:function(t){},afterLoadAllImgCallback:function(){}}),pl(this.options,e),this.previewer=n,this.srcLoadedList=[],this.srcFailLoadedList={},this.srcLoadingList=[],this.srcList=[],this.loadingImgNum=0,this.lastLoadAllNum=0,this.previewerDom=this.previewer.getDomContainer()}return ja(t,[{key:"isLoaded",value:function(t){var e;return fp(e=this.srcLoadedList).call(e,t)}},{key:"isLoading",value:function(t){var e;return fp(e=this.srcLoadingList).call(e,t)}},{key:"loadFailed",value:function(t){this.srcFailLoadedList[t]=this.srcFailLoadedList[t]?this.srcFailLoadedList[t]+1:1}},{key:"isFailLoadedMax",value:function(t){return this.srcFailLoadedList[t]&&this.srcFailLoadedList[t]>this.options.maxTryTimesPerSrc}},{key:"isLoadedAllDone",value:function(){var t=this.previewerDom.querySelectorAll("img[data-src]"),e=this.srcLoadedList.length;return t.length<=0&&this.lastLoadAllNum<e&&(this.lastLoadAllNum=e,this.options.afterLoadAllImgCallback(),!0)}},{key:"loadOneImg",value:function(){for(var t=this,e=this.previewerDom.querySelectorAll("img[data-src]"),n=this.previewerDom.getBoundingClientRect().height+100,r=this.options.autoLoadImgNum,i=function(i){var a=e[i],o=a.getBoundingClientRect(),s=o.top>0&&o.top<n,c=t.srcList.length<=r;if(!s&&!c)return"continue";var l=a.getAttribute("data-src");if(!l)return"continue";if((t.isLoaded(l)||t.isFailLoadedMax(l))&&(a.setAttribute("src",l),a.removeAttribute("data-src")),t.isLoading(l))return"continue";if(t.loadingImgNum>t.options.maxNumPerTime)return{v:!1};var A,u=t.options.beforeLoadOneImgCallback(a);if(void 0!==u&&!u)return t.loadFailed(l),"continue";l=null!==(A=a.getAttribute("data-src"))&&void 0!==A?A:l,t.loadingImgNum+=1,t.srcList.push(l),t.srcLoadingList.push(l),t.tryLoadOneImg(l,(function(){var e,n;a.setAttribute("src",l),a.removeAttribute("data-src"),t.srcLoadedList.push(l),t.loadingImgNum-=1,dA(e=t.srcLoadingList).call(e,Ul(n=t.srcLoadingList).call(n,l),1),t.options.afterLoadOneImgCallback(a),t.loadOneImg()}),(function(){var e,n;t.loadFailed(l),t.loadingImgNum-=1,dA(e=t.srcLoadingList).call(e,Ul(n=t.srcLoadingList).call(n,l),1),t.options.failLoadOneImgCallback(a),t.loadOneImg()}))},a=0;a<e.length;a++){var o=i(a);if("continue"!==o&&"object"===no(o))return o.v}return!1}},{key:"tryLoadOneImg",value:function(t,e,n){var r=document.createElement("img");r.onload=function(){e(),r.remove()},r.onerror=function(){n(),r.remove()},r.setAttribute("src",t)}},{key:"doLazyLoad",value:function(){var t=this;if(!this.isRunning){this.isRunning=!0;var e=this.options.maxNumPerTime,n=function n(){t.loadOneImg();for(var r=1;r<e;r++)t.loadOneImg();xo(n,200)};n(),xo(n,200),Zg((function(){t.isLoadedAllDone()}),1e3)}}},{key:"changeDataSrc2Src",value:function(t){var e=this;return t.replace(/<img ([^>]*?)data-src="([^"]+)"([^>]*?)>/g,(function(t,n,r,i){var a,o;return uo(a=uo(o="<img ".concat(e.$removeSrc(n),' src="')).call(o,r,'" ')).call(a,e.$removeSrc(i),">").replace(/ {2,}/g," ")}))}},{key:"changeLoadedDataSrc2Src",value:function(t){var e=this;return t.replace(/<img ([^>]*?)data-src="([^"]+)"([^>]*?)>/g,(function(t,n,r,i){var a,o;return e.isLoaded(r)?uo(a=uo(o="<img ".concat(e.$removeSrc(n),' src="')).call(o,r,'" ')).call(a,e.$removeSrc(i),">").replace(/ {2,}/g," "):t}))}},{key:"$removeSrc",value:function(t){return" ".concat(t).replace(/^(.*?) src=".*?"(.*?$)/,"$1$2")}},{key:"changeSrc2DataSrc",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.options.loadingImgPath,i=this.options.noLoadImgNum,a=0;return t.replace(/<img ([^>]*?)src="([^"]+)"([^>]*?)>/g,(function(t,o,s,c){var l,A;if(!1===n){if(e.isLoaded(s)||/data-src="/.test(t)||!/ src="/.test(t))return t;if((a+=1)<i||i<0)return t;var u,h,f;if(r)return uo(u=uo(h=uo(f="<img ".concat(o,'src="')).call(f,r,'" data-src="')).call(h,s,'"')).call(u,c,">")}return uo(l=uo(A="<img ".concat(o,'data-src="')).call(A,s,'"')).call(l,c,">")}))}}]),t}(),em=function(){},nm=function(){function t(e){Ha(this,t),co(this,"applyingDomChanges",!1),co(this,"syncScrollLockTimer",0),co(this,"isMobilePreview",!1),this.options={previewerDom:document.createElement("div"),virtualDragLineDom:document.createElement("div"),editorMaskDom:document.createElement("div"),previewerMaskDom:document.createElement("div"),minBlockPercentage:.2,value:"",enablePreviewerBubble:!0,afterUpdateCallBack:[],isPreviewOnly:!1,previewerCache:{html:"",htmlChanged:!1,layout:{}},lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(t){},failLoadOneImgCallback:function(t){},afterLoadOneImgCallback:function(t){},afterLoadAllImgCallback:function(){}}},pl(this.options,e),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId(),this.animation={}}return ja(t,[{key:"init",value:function(t){this.disableScrollListener=!1,this.bindScroll(),this.editor=t,this.bindDrag(),this.$initPreviewerBubble(),this.lazyLoadImg=new tm(this.options.lazyLoadImg,this),this.lazyLoadImg.doLazyLoad()}},{key:"$initPreviewerBubble",value:function(){this.options.enablePreviewerBubble&&(this.previewerBubble=new Jg(this))}},{key:"getDomContainer",value:function(){return this.isMobilePreview?this.options.previewerDom.querySelector(".cherry-mobile-previewer-content"):this.options.previewerDom}},{key:"getDom",value:function(){return this.options.previewerDom}},{key:"getValue",value:function(){var t,e,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r="";if(r=this.isPreviewerHidden()?this.options.previewerCache.html:this.getDomContainer().innerHTML,r=this.lazyLoadImg.changeDataSrc2Src(r),!n||!this.$cherry.wrapperDom)return r;var i=this.$cherry.wrapperDom.getAttribute("data-inline-code-theme"),a=this.$cherry.wrapperDom.getAttribute("data-code-block-theme");return uo(t=uo(e='<div data-inline-code-theme="'.concat(i,'" data-code-block-theme="')).call(e,a,'">')).call(t,r,"</div>")}},{key:"isPreviewerHidden",value:function(){return this.options.previewerDom.classList.contains("cherry-previewer--hidden")}},{key:"calculateRealLayout",value:function(t){var e=+(t/(this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width)).toFixed(3);e<this.options.minBlockPercentage?e=+this.options.minBlockPercentage.toFixed(3):e>1-this.options.minBlockPercentage&&(e=+(1-this.options.minBlockPercentage).toFixed(3));var n=+(1-e).toFixed(3);return{editorPercentage:"".concat(100*e,"%"),previewerPercentage:"".concat(100*n,"%")}}},{key:"setRealLayout",value:function(t,e){var n=t,r=e;n&&r||(n="50%",r="50%"),this.editor.options.editorDom.style.width=n,this.options.previewerDom.style.width=r,this.syncVirtualLayoutFromReal()}},{key:"syncVirtualLayoutFromReal",value:function(){var t=this.editor.options.editorDom.getBoundingClientRect(),e=this.options.previewerDom.getBoundingClientRect(),n=t.height,r=this.editor.options.editorDom.offsetTop,i=t.left,a=t.width,o=e.left?e.left-i:0,s=e.width||0,c=this.options,l=c.editorMaskDom,A=c.previewerMaskDom,u=c.virtualDragLineDom;u.style.top="".concat(r,"px"),u.style.left="".concat(o,"px"),u.style.bottom="0px",l.style.height="".concat(n,"px"),l.style.top="".concat(r,"px"),l.style.left="0px",l.style.width="".concat(a,"px"),A.style.height="".concat(n,"px"),A.style.top="".concat(r,"px"),A.style.left="".concat(o,"px"),A.style.width="".concat(s,"px")}},{key:"calculateVirtualLayout",value:function(t,e){var n=this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width,r=t.toFixed(0),i=e-t;i<n*this.options.minBlockPercentage?i=+(n*this.options.minBlockPercentage).toFixed(0):i>n*(1-this.options.minBlockPercentage)&&(i=+(n*(1-this.options.minBlockPercentage)).toFixed(0));var a=n-i;return{startWidth:Vl(r,10),leftWidth:i,rightWidth:a}}},{key:"setVirtualLayout",value:function(t,e,n){var r=this.options,i=r.editorMaskDom,a=r.previewerMaskDom,o=r.virtualDragLineDom;i.style.left="".concat(0,"px"),i.style.width="".concat(e,"px"),o.style.left="".concat(0+e,"px"),a.style.left="".concat(0+e,"px"),a.style.width="".concat(n,"px")}},{key:"bindDrag",value:function(){var t,e=this,n=function(t){t&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,t.preventDefault?t.preventDefault():window.event.returnValue=!1;var n=e.editor.options.editorDom.getBoundingClientRect().left,r=t.clientX,i=e.calculateVirtualLayout(n,r);return e.setVirtualLayout(i.startWidth,i.leftWidth,i.rightWidth),!1},r=function t(r){r&&r.stopPropagation?r.stopPropagation():r.cancelBubble=!0,r.preventDefault?r.preventDefault():window.event.returnValue=!1;var i=e.editor.options.editorDom.getBoundingClientRect().left,a=r.clientX,o=e.calculateRealLayout(a-i);return e.setRealLayout(o.editorPercentage,o.previewerPercentage),e.editor.options.editorDom.classList.remove("no-select"),e.options.previewerDom.classList.remove("no-select"),e.options.editorMaskDom.classList.remove("cherry-editor-mask--show"),e.options.previewerMaskDom.classList.remove("cherry-previewer-mask--show"),e.options.virtualDragLineDom.classList.remove("cherry-drag--show"),e.editor.editor.refresh(),Zl(document,"mousemove",n,!1),Zl(document,"mouseup",t,!1),!1};Jl(this.options.virtualDragLineDom,"mousedown",(function(t){t&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,t.preventDefault?t.preventDefault():window.event.returnValue=!1,e.syncVirtualLayoutFromReal();var i=e.editor.options.editorDom.getBoundingClientRect().left,a=t.clientX,o=e.calculateVirtualLayout(i,a);return e.setVirtualLayout(o.startWidth,o.leftWidth,o.rightWidth),e.options.virtualDragLineDom.classList.contains("cherry-drag--show")||(e.options.virtualDragLineDom.classList.add("cherry-drag--show"),e.options.editorMaskDom.classList.add("cherry-editor-mask--show"),e.options.previewerMaskDom.classList.add("cherry-previewer-mask--show"),e.options.previewerDom.classList.add("no-select"),e.editor.options.editorDom.classList.add("no-select"),Jl(document,"mousemove",n,!1),Jl(document,"mouseup",r,!1)),!1}),!1),Jl(window,"resize",go(t=this.syncVirtualLayoutFromReal).call(t,this),!1),this.setRealLayout()}},{key:"bindScroll",value:function(){var t=this,e=this.getDomContainer();em=function(){if(t.applyingDomChanges)tA.log(new Date,"sync scroll locked");else if(t.disableScrollListener)t.disableScrollListener=!1;else if(e.scrollTop<=0)t.editor.scrollToLineNum(0,0,1);else if(e.scrollTop+e.offsetHeight>e.scrollHeight)t.editor.scrollToLineNum(null);else{for(var n,r=e.getBoundingClientRect(),i={x:r.left+r.width/2,y:r.top+1},a=function(t,e){if("function"==typeof document.elementsFromPoint)return document.elementsFromPoint(t,e);if("function"==typeof document.msElementsFromPoint){var n=document.msElementsFromPoint(t,e);return null!==n?Rr(n):n}var r,i=[],a=[];do{var o=document.elementFromPoint(t,e);r!==o?(r=o,i.push(r),a.push(r.style.pointerEvents),r.style.pointerEvents="none"):r=null}while(r);return Na(i).call(i,(function(t,e){t.style.pointerEvents=a[e]})),i}(i.x,i.y),o=0;o<a.length;o++)if(e.contains(a[o])){n=a[o];break}if(n&&n!==e){for(var s=n.closest("[data-sign]");s&&s.parentElement&&s.parentElement!==e;)s=s.parentElement.closest("[data-sign]");if(s){for(var c=0,l=s;l;)c+=+l.getAttribute("data-lines"),l=l.previousElementSibling;var A=getComputedStyle(s),u=ld(A.marginTop),h=ld(A.marginBottom),f=s.getBoundingClientRect(),d=f.height+u+h,p=f.y-u-r.y,g=+s.getAttribute("data-lines"),m=100*Math.abs(p)/d/100;return t.editor.scrollToLineNum(c-g,g,m)}}}},Jl(e,"scroll",em,!1),Jl(e,"wheel",(function(){t.disableScrollListener=!1,cancelAnimationFrame(t.animation.timer),t.animation.timer=0}),!1)}},{key:"removeScroll",value:function(){Zl(this.getDomContainer(),"scroll",em,!1)}},{key:"$html2H",value:function(t){if(void 0===t)return cg("span",{},[]);if(!t.tagName)return t.textContent;var e=t.tagName,n="true"===t.getAttribute("data-cm-atomic"),r=this.$getAttrsForH(t.attributes),i=[];if(!n&&t.childNodes&&t.childNodes.length>0)for(var a=0;a<t.childNodes.length;a++)i.push(this.$html2H(t.childNodes[a]));return cg(e,r,i)}},{key:"$getAttrsForH",value:function(t){if(!t)return{};for(var e={dataset:{}},n=0;n<t.length;n++){var r,i=t[n].name,a=t[n].value;if(/^(width|height)$/i.test(i)&&isNaN(a))e.style=e.style?e.style:[],e.style.push(uo(r="".concat(i,":")).call(r,a));else/^(class|id|href|rel|target|src|title|controls|align|width|height|style)$/i.test(i)?"style"===(i="class"===i?"className":i)?(e.style=e.style?e.style:[],e.style.push(a)):e[i]=a:("colspan"===i?i="colSpan":"rowspan"===i&&(i="rowSpan"),/^data-/i.test(i)?i=i.replace(/^data-/i,""):e[i]=a,e.dataset[i]=a)}return e.style&&(e.style={cssText:e.style.join(";")}),e}},{key:"$updateDom",value:function(t,e){var n=Cg(this.$html2H(e),this.$html2H(t));return Gg(e,n)}},{key:"$testChild",value:function(t){return!t.parentNode||(!!t.parentNode.classList.contains("cherry-previewer")||!t.parentNode.getAttribute("data-sign")&&this.$testChild(t.parentNode))}},{key:"_testMaxIndex",value:function(t,e){if(!e)return!1;for(var n=0;n<e.length;n++)if(t<=e[n])return!0;return!1}},{key:"$getSignData",value:function(t){for(var e=t.querySelectorAll("[data-sign]"),n={list:[],signs:{}},r=0;r<e.length;r++)if(this.$testChild(e[r])){var i=e[r].getAttribute("data-sign");n.list.push({sign:i,dom:e[r]}),n.signs[i]||(n.signs[i]=[]),n.signs[i].push(r)}return n}},{key:"_hasNewSign",value:function(t,e,n){var r;return t.length>0&&(Na(t).call(t,(function(t,i){var a;wn(a=t.sign).call(a,0,12)===wn(e).call(e,0,12)&&i>n&&(r={index:i>n?i:n,sign:e})})),r)}},{key:"$dealWithMyersDiffResult",value:function(t,e,n,r){var i=this;Na(t).call(t,(function(t){switch(n[t.newIndex].dom&&(n[t.newIndex].dom.innerHTML=i.lazyLoadImg.changeLoadedDataSrc2Src(n[t.newIndex].dom.innerHTML)),t.type){case"delete":r.removeChild(e[t.oldIndex].dom);break;case"insert":e[t.oldIndex]?r.insertBefore(n[t.newIndex].dom,e[t.oldIndex].dom):r.appendChild(n[t.newIndex].dom);break;case"update":try{if(n[t.newIndex].dom.querySelector("svg"))throw new Error;i.$updateDom(n[t.newIndex].dom,e[t.oldIndex].dom)}catch(i){r.insertBefore(n[t.newIndex].dom,e[t.oldIndex].dom),r.removeChild(e[t.oldIndex].dom)}}}))}},{key:"$dealUpdate",value:function(t,e,n){if(n.list!==e.list)if(n.list.length&&e.list.length){var r=new jg(n.list,e.list,(function(t,e){return t[e].sign})).doDiff();tA.log(r),this.$dealWithMyersDiffResult(r,e.list,n.list,t)}else if(n.list.length&&!e.list.length){var i;tA.log("add all"),Na(i=n.list).call(i,(function(e){t.appendChild(e.dom)}))}else if(!n.list.length&&e.list.length){var a;tA.log("delete all"),Na(a=e.list).call(a,(function(e){t.removeChild(e.dom)}))}}},{key:"update",value:function(t){var e=this,n=this.lazyLoadImg.changeSrc2DataSrc(t);if(this.isPreviewerHidden())this.doHtmlCache(n);else{window.clearTimeout(this.syncScrollLockTimer),this.applyingDomChanges=!0;var r=document.createElement("div"),i=this.getDomContainer();r.innerHTML=this.lazyLoadImg.changeSrc2DataSrc(t,!0);var a=this.$getSignData(r),o=this.$getSignData(i);try{this.$dealUpdate(i,o,a),this.afterUpdate()}finally{this.syncScrollLockTimer=xo((function(){e.applyingDomChanges=!1}),50)}}}},{key:"$dealEditAndPreviewOnly",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n={editorPercentage:"0%",previewerPercentage:"100%"};e&&(n={editorPercentage:"100%",previewerPercentage:"0%"});var r=this.editor.options.editorDom.getBoundingClientRect().width,i=this.calculateRealLayout(r);this.options.previewerCache.layout=i,this.setRealLayout(n.editorPercentage,n.previewerPercentage),this.options.virtualDragLineDom.classList.add("cherry-drag--hidden");var a=this.options.previewerDom,o=this.editor.options.editorDom;e?(a.classList.add("cherry-previewer--hidden"),o.classList.add("cherry-editor--full"),a.classList.remove("cherry-preview--full"),o.classList.remove("cherry-editor--hidden")):(a.classList.add("cherry-preview--full"),o.classList.add("cherry-editor--hidden"),a.classList.remove("cherry-previewer--hidden"),o.classList.remove("cherry-editor--full")),xo((function(){return t.editor.editor.refresh()}),0)}},{key:"previewOnly",value:function(){this.$dealEditAndPreviewOnly(!1),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),Kg.emit(this.instanceId,Kg.Events.previewerOpen),Kg.emit(this.instanceId,Kg.Events.editorClose)}},{key:"editOnly",value:function(){this.$dealEditAndPreviewOnly(!0),this.cleanHtmlCache(),Kg.emit(this.instanceId,Kg.Events.previewerClose),Kg.emit(this.instanceId,Kg.Events.editorOpen)}},{key:"recoverPreviewer",value:function(){var t=this;if(this.options.previewerDom.classList.remove("cherry-previewer--hidden"),this.options.virtualDragLineDom.classList.remove("cherry-drag--hidden"),this.editor.options.editorDom.classList.remove("cherry-editor--full"),this.options.previewerCache.layout!=={}){var e=this.options.previewerCache.layout;this.setRealLayout(e.editorPercentage,e.previewerPercentage)}this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),Kg.emit(this.instanceId,Kg.Events.previewerOpen),Kg.emit(this.instanceId,Kg.Events.editorOpen),xo((function(){return t.editor.editor.refresh()}),0)}},{key:"doHtmlCache",value:function(t){this.options.previewerCache.html=t,this.options.previewerCache.htmlChanged=!0}},{key:"cleanHtmlCache",value:function(){this.options.previewerCache.html="",this.options.previewerCache.htmlChanged=!1,this.options.previewerCache.layout={}}},{key:"afterUpdate",value:function(){var t;_A(t=this.options.afterUpdateCallBack).call(t,(function(t){return t()}))}},{key:"registerAfterUpdate",value:function(t){if(la(t)){var e;this.options.afterUpdateCallBack=uo(e=this.options.afterUpdateCallBack).call(e,t)}else{if(!t)throw new Error("[markdown error]: Previewer registerAfterUpdate params are undefined");this.options.afterUpdateCallBack.push(t)}}},{key:"$getTopByLineNum",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getDomContainer();if(null===t)return n.scrollHeight;for(var r="number"==typeof t?t:Vl(t,10),i=n.querySelectorAll("[data-sign]"),a=0,o=n.offsetTop,s=0;s<i.length;s++)if(i[s].parentNode===n){var c=Vl(i[s].getAttribute("data-lines"),10);if(!(a+c<r)){var l=Ed(i[s]),A=l.height,u=l.offsetTop,h=u-o,f=h+A*e;if(c>1){var d=c-Math.abs(r-(a+c))-1,p=d/c*A,g=A/c;f=h+p+g*e}return f}a+=c}}},{key:"scrollToLineNumWithOffset",value:function(t,e){var n=this.$getTopByLineNum(t)-e;this.$scrollAnimation(n)}},{key:"$scrollAnimation",value:function(t){var e=this;if(this.animation.destinationTop=t,!this.animation.timer){this.animation.timer=requestAnimationFrame((function t(){var n=e.getDomContainer(),r=n.scrollTop,i=e.animation.destinationTop-r,a=Math.ceil(Math.min(Math.abs(i),Math.max(1,Math.abs(i)/(100/16.7))));if(0===i||r>=n.scrollHeight||a>Math.abs(i))return cancelAnimationFrame(e.animation.timer),void(e.animation.timer=0);e.disableScrollListener=!0,e.getDomContainer().scrollTo(null,r+i/Math.abs(i)*a),e.animation.timer=requestAnimationFrame(t)}))}}},{key:"scrollToLineNum",value:function(t,e){var n=this.$getTopByLineNum(t,e);this.$scrollAnimation(n)}},{key:"export",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf";"pdf"===t?Vg(this.getDomContainer()):zg(this.getDomContainer())}}]),t}(),rm=navigator.userAgent,im=navigator.platform,am=(/gecko\/\d/i.test(rm),/MSIE \d/.test(rm)),om=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(rm),sm=/Edge\/(\d+)/.exec(rm),cm=((am||om||sm)&&(am?document.documentMode:(sm||om)[1]),!sm&&/WebKit\//.test(rm)),lm=(cm&&/Qt\/\d+\.\d+/.test(rm),!sm&&/Chrome\//.test(rm),/Opera\//.test(rm)),Am=(/Apple Computer/.test(navigator.vendor),/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(rm),/PhantomJS/.test(rm),!sm&&/AppleWebKit/.test(rm)&&/Mobile\/\w+/.test(rm)),um=/Android/.test(rm),hm=(Am||um||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(rm),Am||/Mac/.test(im)),fm=(/\bCrOS\b/.test(rm),/win/i.test(im),lm&&rm.match(/Version\/(\d*\.\d*)/));fm&&(fm=Number(fm[1])),fm&&fm>=15&&(lm=!1,cm=!0);var dm={zh_CN:{bold:"加粗",code:"代码",graph:"画图",h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",header:"标题",insert:"插入",italic:"斜体",list:"列表",quickTable:"表格",quote:"引用",size:"大小",color:"文字颜色&背景",strikethrough:"删除线",sub:"下标",sup:"上标",togglePreview:"预览",fullScreen:"全屏",image:"图片",audio:"音频",video:"视频",link:"超链接",hr:"分隔线",br:"换行",toc:"目录",pdf:"pdf",word:"word",table:"表格","line-table":"折线表格","bar-table":"柱状表格",formula:"公式",insertFormula:"公式",insertFlow:"流程图",insertSeq:"时序图",insertState:"状态图",insertClass:"类图",insertPie:"饼图",insertGantt:"甘特图",checklist:"清单",ol:"有序列表",ul:"无序列表",undo:"撤销",redo:"恢复",previewClose:"关闭预览",codeTheme:"代码主题",switchModel:"模式切换",switchPreview:"预览",switchEdit:"返回编辑",classicBr:"经典换行",normalBr:"常规换行",settings:"设置",mobilePreview:"移动端预览",copy:"复制内容",export:"导出"}};function pm(t,e){return t.style.left="".concat(e.left+e.width/2,"px"),t.style.top="".concat(e.top+e.height,"px"),t}function gm(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"absolute",n=t.getBoundingClientRect();return"fixed"===e?n:{left:t.offsetLeft,top:t.offsetTop,width:n.width,height:n.height}}var mm=function(){function t(e,n,r,i,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"absolute";Ha(this,t),this.name=n,this.dom=null,this.visible=!1,this.context=e,this.positionModel=o,this.init(n,r,i,a)}return ja(t,[{key:"init",value:function(t,e,n,r){var i=this,a=function(t,e,n){var r=xd("div",e,{name:t});return pm(r,n),r}(t,"cherry-dropdown",e);a.style.position=this.positionModel;var o="function"==typeof(null==r?void 0:r.click)?r.click:this.onClick;Na(n).call(n,(function(t){var e=xd("span","cherry-dropdown-item");if(t.noIcon)e.innerHTML="".concat(t.name);else{var n=xd("i","ch-icon ch-icon-".concat(t.iconName));e.appendChild(n),e.innerHTML+=dm.zh_CN[t.name]||Ih(t.name)}e.addEventListener("click",go(o).call(o,i.context,t.onclick,t.async),!1),a.appendChild(e)})),a.addEventListener("EditorHideToolbarSubMenu",(function(){i.hide()})),this.dom=a}},{key:"show",value:function(t){t&&pm(this.dom,t),this.dom.style.display="block",this.visible=!0}},{key:"hide",value:function(){this.dom.style.display="none",this.visible=!1}},{key:"onClick",value:function(){}}]),t}(),ym=function(){function t(e){Ha(this,t),co(this,"_onClick",void 0),this.bubbleMenu=!1,this.subMenu=null,this.name="",this.editor=e,this.dom=null,this.updateMarkdown=!0,this.subMenuConfig=[],this.positionModel="absolute","function"==typeof this._onClick&&(tA.warn("`MenuBase._onClick` is deprecated. Override `$onClick` instead"),this.$onClick=this._onClick)}return ja(t,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"setName",value:function(t,e){this.name=t,this.iconName=e}},{key:"createBtn",value:function(){var t,e,n=[];this.subMenuConfig.length>0&&n.push("cherry-toolbar-dropdown"),n.push("cherry-toolbar-button","cherry-toolbar-".concat(this.iconName?this.iconName:this.name));var r=xd("span",n.join(" "));if(this.iconName&&!fp(t=["insert","graph"]).call(t,this.name)){var i=xd("i","ch-icon ch-icon-".concat(this.iconName),{title:dm.zh_CN[this.name]||Ih(this.name)});r.appendChild(i)}else r.innerHTML=dm.zh_CN[this.name]||Ih(this.name);return r.addEventListener("click",go(e=this.$onClick).call(e,this),!1),this.dom=r,r}},{key:"$onClick",value:function(e){var n=this;if(e.stopPropagation(),this.subMenuConfig.length)return this.toggleSubMenu();if("function"==typeof this.onClick){t.cleanSubMenu();var r=this.editor.editor.getSelections(),i=_A(r).call(r,(function(t,r,i){return n.onClick(t,"",e)||i[r]}));!this.bubbleMenu&&this.updateMarkdown&&(this.editor.editor.replaceSelections(i,"around"),this.editor.editor.focus())}}},{key:"onKeyDown",value:function(t,e,n){var r=this,i=_A(e).call(e,(function(t){return r.onClick(t,n)}));return t.replaceSelections(i,"around")}},{key:"bindSubClick",value:function(t,e){return this.onClick(e,t)}},{key:"onClick",value:function(t,e,n){return t}},{key:"shortcutKeys",get:function(){return[]}},{key:"shortcutKey",value:function(t){var e,n=this;return Bf(e=this.shortcutKeys).call(e,(function(e,r){var i;return e[(i=r,t&&t.isMac?i.replace(/mod/i,"Command"):i.replace(/mod/i,"Ctrl"))]=function(t,e){return n.onKeyDown(e,e.getSelections(),r)},e}),{})}},{key:"initSubMenu",value:function(){if(this.subMenuConfig.length){/cherry-bubble/.test(this.dom.parentElement.className)?this.positionModel="fixed":this.positionModel="absolute";var t=gm(this.dom,this.positionModel);this.subMenu=new mm(this,this.name,t,this.subMenuConfig,{click:this.onSubClick},this.positionModel),this.editor.options.wrapperDom.appendChild(this.subMenu.dom)}}},{key:"showSubMenu",value:function(){if(!this.subMenu)return this.initSubMenu(),t.hideSubMenuExcept(this.subMenu.name),void this.subMenu.show();t.hideSubMenuExcept(this.subMenu.name),/cherry-bubble/.test(this.dom.parentElement.className)?this.positionModel="fixed":this.positionModel="absolute";var e=gm(this.dom,this.positionModel);this.subMenu.show(e)}},{key:"hideSubMenu",value:function(){this.subMenu&&this.subMenu.hide()}},{key:"toggleSubMenu",value:function(){if(this.subMenu&&this.subMenu.visible)return this.hideSubMenu();this.showSubMenu()}},{key:"onSubClick",value:function(t,e,n){if(e){var r,i=this.editor.editor.getSelection();t(i,!0,go(r=this.editor.editor.replaceSelection).call(r,this.editor.editor))}else{var a=this.editor.editor.getSelections(),o=_A(a).call(a,(function(e,n,r){return t(e)||r[n]}));this.updateMarkdown&&(this.editor.editor.replaceSelections(o,"around"),this.editor.editor.focus())}this.hideSubMenu()}}],[{key:"cleanSubMenu",value:function(){this.hideSubMenuExcept(null)}},{key:"hideSubMenuExcept",value:function(t){var e=document.querySelectorAll(".cherry-dropdown");Na(e).call(e,(function(e){t&&e.dataset.name===t||e.dispatchEvent(new Event("EditorHideToolbarSubMenu"))}))}}]),t}();function vm(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"word",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.getSelections().length>1)return e;if(e&&!r)return e;if("line"===n){var i=t.listSelections()[0],a=i.anchor,o=i.head;return a.line===o.line&&a.ch>o.ch||a.line>o.line?t.setSelection({line:o.line,ch:0},{line:a.line,ch:t.getLine(a.line).length}):t.setSelection({line:a.line,ch:0},{line:o.line,ch:t.getLine(o.line).length}),t.getSelection()}if("word"===n){var s=t.findWordAt(t.getCursor()),c=s.anchor,l=s.head;return t.setSelection(c,l),t.getSelection()}}function bm(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var wm=function(t){Xa(n,t);var e=bm(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("bold","bold"),r}return ja(n,[{key:"onClick",value:function(t){var e=vm(this.editor.editor,t)||"加粗";return/^\s*(\*\*|__)[\s\S]+(\1)/.test(e)?e.replace(/(^)(\s*)(\*\*|__)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):e.replace(/(^)([^\n]+)($)/gm,"$1**$2**$3")}},{key:"shortcutKeys",get:function(){return["Mod-b"]}}]),n}(ym);function _m(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Em=function(t){Xa(n,t);var e=_m(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("italic","italic"),r}return ja(n,[{key:"onClick",value:function(t){var e=vm(this.editor.editor,t)||"斜体";return/^\s*(\*|_)[\s\S]+(\1)/.test(e)?e.replace(/(^)(\s*)(\*|_)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):e.replace(/(^)([^\n]+)($)/gm,"$1 *$2* $3")}},{key:"shortcutKeys",get:function(){return["Mod-i"]}}]),n}(ym);function Cm(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var xm=function(t){Xa(n,t);var e=Cm(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("split","|"),r}return ja(n,[{key:"createBtn",value:function(){var t=document.createElement("i");return t.className="cherry-toolbar-button cherry-toolbar-split",t}}]),n}(ym);function Bm(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Tm=function(t){Xa(n,t);var e=Bm(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("strikethrough","strike"),r}return ja(n,[{key:"onClick",value:function(t){var e=vm(this.editor.editor,t)||"删除线";return/(~~)[\s\S]+(\1)/.test(t)?t.replace(/[\s]*(~~)([\s\S]+)(\1)[\s]*/g,"$2"):e.replace(/(^)[\s]*([\s\S]+)[\s]*($)/g,"$1 ~~$2~~ $3")}}]),n}(ym);function km(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Sm=function(t){Xa(n,t);var e=km(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("sub","sub"),r}return ja(n,[{key:"onClick",value:function(t){var e=vm(this.editor.editor,t)||"下标";return/^\s*(\^\^)[\s\S]+(\1)/.test(e)?e.replace(/(^)(\s*)(\^\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):e.replace(/(^)([^\n]+)($)/gm,"$1 ^^$2^^ $3")}}]),n}(ym);function Im(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Nm=function(t){Xa(n,t);var e=Im(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("sup","sup"),r}return ja(n,[{key:"onClick",value:function(t){var e=vm(this.editor.editor,t)||"上标";return/^\s*(\^)[\s\S]+(\1)/.test(t)?t.replace(/(^)(\s*)(\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):e.replace(/(^)([^\n]+)($)/gm,"$1 ^$2^ $3")}}]),n}(ym);function Mm(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Fm=function(t){Xa(n,t);var e=Mm(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("color","color"),r.bubbleMenu=!0,r.bubbleColor=new Dm(t),r}return ja(n,[{key:"onClick",value:function(t){var e=arguments.length>2?arguments[2]:void 0,n=vm(this.editor.editor,t)||"字体颜色或背景";if(e){this.bubbleColor.setSelection(n);var r=0,i=0;if(e.target.closest(".cherry-bubble")){var a=e.target.closest(".cherry-bubble"),o=a.getBoundingClientRect();r=o.top+a.offsetHeight,i=e.target.closest(".cherry-toolbar-color").offsetLeft+o.left}else{var s=e.target.closest(".cherry-toolbar-color"),c=s.getBoundingClientRect();r=c.top+s.offsetHeight,i=c.left}this.bubbleColor.show({left:i,top:r})}}}]),n}(ym),Dm=function(){function t(e){Ha(this,t),co(this,"colorStack",["#000000","#444444","#666666","#999999","#cccccc","#eeeeee","#f3f3f3","#ffffff","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#0000ff","#9900ff","#ff00ff","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc","#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd","#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0","#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79","#990000","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47","#660000","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]),this.editor=e,this.init(),this.initAction()}return ja(t,[{key:"setSelection",value:function(t){this.selection=t}},{key:"getFontColorDom",value:function(t){var e,n,r=_A(e=this.colorStack).call(e,(function(t){var e;return uo(e='<span class="cherry-color-item" unselectable="on" data-val="'.concat(t,'"\n style="background-color:')).call(e,t,'"></span>')})).join("");return uo(n="<h3>".concat(t,"</h3>")).call(n,r)}},{key:"getDom",value:function(){var t=document.createElement("div");t.classList.add("cherry-color-wrap"),t.classList.add("cherry-dropdown");var e=document.createElement("div");e.classList.add("cherry-color-text"),e.innerHTML=this.getFontColorDom("文本颜色"),t.appendChild(e);var n=document.createElement("div");return n.classList.add("cherry-color-bg"),n.innerHTML=this.getFontColorDom("背景颜色"),t.appendChild(n),t}},{key:"init",value:function(){this.dom=this.getDom(),this.editor.options.wrapperDom.appendChild(this.dom)}},{key:"onClick",value:function(){var t,e;return"text"===this.type?/^!!#\S+ [\s\S]+?!!/.test(this.selection)?this.selection.replace(/^!!#\S+ ([\s\S]+?)!!/,"!!".concat(this.colorValue," $1!!")):uo(e="!!".concat(this.colorValue," ")).call(e,this.selection,"!!"):/^!!!#\S+ [\s\S]+?!!!/.test(this.selection)?this.selection.replace(/^!!!#\S+ ([\s\S]+?)!!!/,"!!!".concat(this.colorValue," $1!!!")):uo(t="!!!".concat(this.colorValue," ")).call(t,this.selection,"!!!")}},{key:"initAction",value:function(){var t=this,e=this;this.dom.addEventListener("click",(function(n){var r=n.target;if(t.colorValue=r.getAttribute("data-val"),!t.colorValue)return!1;t.type=r.closest(".cherry-color-text")?"text":"bg";var i=t.editor.editor.getSelections(),a=_A(i).call(i,(function(e,n,r){return t.onClick()||r[n]}));e.editor.editor.replaceSelections(a,"around"),e.editor.editor.focus()}),!1),this.dom.addEventListener("EditorHideToolbarSubMenu",(function(){"none"!==t.dom.style.display&&(t.dom.style.display="none")}))}},{key:"show",value:function(t){var e=t.left,n=t.top;this.dom.style.left="".concat(e,"px"),this.dom.style.top="".concat(n,"px"),this.dom.style.display="block"}}]),t}();function Lm(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Om=function(t){Xa(n,t);var e=Lm(n);function n(t){var r,i,a,o,s,c;return Ha(this,n),(c=e.call(this,t)).setName("header","header"),c.subMenuConfig=[{iconName:"h1",name:"h1",onclick:go(r=c.bindSubClick).call(r,$a(c),"1")},{iconName:"h2",name:"h2",onclick:go(i=c.bindSubClick).call(i,$a(c),"2")},{iconName:"h3",name:"h3",onclick:go(a=c.bindSubClick).call(a,$a(c),"3")},{iconName:"h4",name:"h4",onclick:go(o=c.bindSubClick).call(o,$a(c),"4")},{iconName:"h5",name:"h5",onclick:go(s=c.bindSubClick).call(s,$a(c),"5")}],c}return ja(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"$getFlagStr",value:function(t){var e,n=+("string"==typeof t?t.replace(/[^0-9]+([0-9])/g,"$1"):t);return tf(e="#").call(e,n||1)}},{key:"onClick",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=vm(this.editor.editor,t,"line",!0)||"标题",r=this.$getFlagStr(e);if(/^\s*(#+)\s*.+/.test(n)){var i=!0,a=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,n,a,o){var s,c,l;return i=!!i&&n.length===r.length,uo(s=uo(c=uo(l="".concat(e)).call(l,r)).call(c,a)).call(s,o)}));return i?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):a}return n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}},{key:"shortcutKeys",get:function(){return["Mod-1","Mod-2","Mod-3","Mod-4","Mod-5","Mod-6"]}}]),n}(ym),Rm=si.find,Um=!0;"find"in[]&&Array(1).find((function(){Um=!1})),Wt({target:"Array",proto:!0,forced:Um},{find:function(t){return Rm(this,t,arguments.length>1?arguments[1]:void 0)}});var Pm=mn("Array").find,Qm=Array.prototype,Hm=function(t){var e=t.find;return t===Qm||Q(Qm,t)&&e===Qm.find?Pm:e},Gm=function(t,e){var n,r=document.createElement("td");return r.className=e||"table-item",Na(n=ha(t)).call(n,(function(e){r.dataset[e]=t[e]})),r},jm=function(){function t(e,n){var r=e.row,i=e.col;Ha(this,t),this.init(r,i,n),this.initEventListeners(),this.afterClick=function(){}}return ja(t,[{key:"init",value:function(t,e,n){var r=this,i=document.createElement("table"),a=[];i.className=["cherry-insert-table-menu","cherry-dropdown"].join(" ");for(var o=1;o<=t;o++){var s=document.createElement("tr");s.className="cherry-insert-table-menu-row",a[o-1]=[];for(var c=1;c<=e;c++){var l=Gm({row:o,col:c},"cherry-insert-table-menu-item");s.appendChild(l),a[o-1][c-1]=l}i.appendChild(s)}return i.style.display="none",i.addEventListener("EditorHideToolbarSubMenu",(function(){r.hide()})),this.dom=i,this.cell=a,this.maxRow=t,this.maxCol=e,this.activeRow=0,this.activeCol=0,this.dom}},{key:"initEventListeners",value:function(){var t,e;this.dom.addEventListener("mousemove",go(t=this.handleMouseMove).call(t,this),!1),this.dom.addEventListener("mouseup",go(e=this.handleMouseUp).call(e,this))}},{key:"setActiveCell",value:function(t,e){if(this.activeRow!==t||this.activeCol!==e){var n=Math.min(this.activeRow,t),r=Math.max(this.activeRow,t);if(n!==r)for(var i=r;i>n;i--)for(var a=1;a<=this.activeCol;a++)this.cell[i-1][a-1].classList.toggle("active");var o=Math.min(this.activeCol,e),s=Math.max(this.activeCol,e);if(o!==s)for(var c=s;c>o;c--)for(var l=1;l<=t;l++)this.cell[l-1][c-1].classList.toggle("active");this.activeRow=t,this.activeCol=e}}},{key:"handleMouseMove",value:function(t){var e=t.target;e!==this.dom&&(e.classList.contains("cherry-insert-table-menu-item")||(e=e.querySelector(".cherry-insert-table-menu-item")),e&&this.setActiveCell(e.dataset.row,e.dataset.col))}},{key:"handleMouseUp",value:function(t){var e=t.target;return e===this.dom||e.classList.contains("cherry-insert-table-menu-item")||(e=e.querySelector(".cherry-insert-table-menu-item")),this.afterClick(this.activeRow,this.activeCol),void this.hide()}},{key:"show",value:function(t){this.dom.style.display="block",this.afterClick=t}},{key:"hide",value:function(){this.dom.style.display="none";for(var t=0;t<this.maxRow;t++)for(var e=0;e<this.maxCol;e++)this.cell[t][e].classList.remove("active");this.activeRow=0,this.activeCol=0}}]),t}();function Km(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var $m=function(t){Xa(n,t);var e=Km(n);function n(t,r,i){var a,o,s,c,l,A,u,h,f,d,p,g,m,y;if(Ha(this,n),(y=e.call(this,t)).setName("insert","insert"),y.subBubbleTableMenu=new jm({row:9,col:9}),t.options.wrapperDom.appendChild(y.subBubbleTableMenu.dom),y.subMenuConfig=[{iconName:"image",name:"image",onclick:go(a=y.bindSubClick).call(a,$a(y),"image")},{iconName:"video",name:"audio",onclick:go(o=y.bindSubClick).call(o,$a(y),"audio")},{iconName:"video",name:"video",onclick:go(s=y.bindSubClick).call(s,$a(y),"video")},{iconName:"link",name:"link",onclick:go(c=y.bindSubClick).call(c,$a(y),"link")},{iconName:"line",name:"hr",onclick:go(l=y.bindSubClick).call(l,$a(y),"hr")},{iconName:"br",name:"br",onclick:go(A=y.bindSubClick).call(A,$a(y),"br")},{iconName:"code",name:"code",onclick:go(u=y.bindSubClick).call(u,$a(y),"code")},{iconName:"insertFormula",name:"formula",onclick:go(h=y.bindSubClick).call(h,$a(y),"formula")},{iconName:"toc",name:"toc",onclick:go(f=y.bindSubClick).call(f,$a(y),"toc")},{iconName:"table",name:"table",onclick:go(d=y.bindSubClick).call(d,$a(y),"table"),async:!0},{iconName:"pdf",name:"pdf",onclick:go(p=y.bindSubClick).call(p,$a(y),"pdf")},{iconName:"word",name:"word",onclick:go(g=y.bindSubClick).call(g,$a(y),"word")},{iconName:"pinyin",name:"ruby",onclick:go(m=y.bindSubClick).call(m,$a(y),"ruby")}],r instanceof Array){var v,b=_A(v=y.subMenuConfig).call(v,(function(t){return t.name}));y.subMenuConfig=Bf(r).call(r,(function(t,e){var n=Ul(b).call(b,e);return-1===n?t:"line-table"!==e&&"bar-table"!==e||!1!==i.markdownParams.engine.syntax.table.enableChart?(t.push(y.subMenuConfig[n]),t):t}),[])}return y}return ja(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"bindSubClick",value:function(t,e,n,r){return n?this.onClick(e,t,r):this.onClick(e,t)}},{key:"handleUpload",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",n=document.createElement("input");n.type="file",n.id="fileUpload",n.value="",n.style.display="none",n.addEventListener("change",(function(n){var r=Rl(n.target.files,1)[0];t.editor.options.fileUpload(r,(function(n){if("string"==typeof n&&n){var i,a="";if("image"===e)a=uo(i="![".concat(r.name,"](")).call(i,n,")");else if("video"===e){var o;a=uo(o="!video[".concat(r.name,"](")).call(o,n,")")}else if("audio"===e){var s;a=uo(s="!audio[".concat(r.name,"](")).call(s,n,")")}else{var c;a=uo(c="[".concat(r.name,"](")).call(c,n,")")}t.editor.editor.doc.replaceSelection(a)}}))})),n.click()}},{key:"onClick",value:function(t){var e,n,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;if(a=this.matchShortcutKey(a),/normal-table/.test(a)){var s,c,l,A,u,h,f=a.match(/([0-9]+)[^0-9]([0-9]+)/),d=f?+f[1]:3,p=f?+f[2]:5,g=tf(s=" Header |").call(s,p),m=tf(c=" ------ |").call(c,p),y="\n|".concat(tf(l=" Sample |").call(l,p)),v=uo(A=uo(u=uo(h="".concat(t,"\n\n|")).call(h,g,"\n|")).call(u,m)).call(A,tf(y).call(y,d),"\n\n");return v}var b=vm(this.editor.editor,t);switch(a){case"hr":return"".concat(t,"\n\n---\n");case"br":return"".concat(t,"<br>");case"code":return"\n``` \n".concat(t||"code...","\n```\n");case"formula":return"".concat(t,"\n\n$ e=mc^2 $\n\n");case"checklist":return"".concat(t,"\n\n- [x] No.1\n- [ ] No.2\n- [ ] No.3\n");case"toc":return"".concat(t,"\n\n[[toc]]\n");case"link":return"".concat(t,"[超链接](http://url.com) ");case"image":return this.handleUpload("image"),t;case"video":return this.handleUpload("video"),t;case"audio":return this.handleUpload("audio"),t;case"table":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(e,n){var r,i,a,s,c,l,A=tf(r=" Header |").call(r,n),u=tf(i=" ------ |").call(i,n),h="\n|".concat(tf(a=" Sample |").call(a,n)),f=uo(s=uo(c=uo(l="".concat(t,"\n\n|")).call(l,A,"\n|")).call(c,u)).call(s,tf(h).call(h,e),"\n\n");o(f)}));case"line-table":return uo(e="".concat(t,"\n\n")).call(e,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"bar-table":return uo(n="".concat(t,"\n\n")).call(n,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"headlessTable":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(e,n){var r,i,a,s,c,l=uo(r=uo(i="".concat(t,"\n\n||")).call(i,tf(a=" ~Header ||").call(a,n))).call(r,tf(s="\n||".concat(tf(c=" SampleT ||").call(c,n))).call(s,e-1),"\n\n");o(l)}));case"pdf":return this.handleUpload("pdf"),t;case"word":return this.handleUpload("word"),t;case"ruby":return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(b)?b.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1"):uo(r=" { ".concat(b," | ")).call(r,Tl(i=this.editor.$cherry.options.callback.changeString2Pinyin(b)).call(i)," } ")}}},{key:"matchShortcutKey",value:function(t){var e=this.shortcutKeyMaps(),n=Hm(e).call(e,(function(e){return e.shortcutKey===t}));return void 0!==n?n.shortKey:t}},{key:"shortcutKeyMaps",value:function(){return[{shortKey:"code",shortcutKey:"Mod-k"},{shortKey:"link",shortcutKey:"Mod-l"},{shortKey:"image",shortcutKey:"Mod-g"},{shortKey:"formula",shortcutKey:"Mod-m"}]}},{key:"shortcutKeys",get:function(){var t=this.shortcutKeyMaps();return _A(t).call(t,(function(t){return t.shortcutKey}))}}]),n}(ym);function Ym(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Vm=function(t){Xa(n,t);var e=Ym(n);function n(t){var r,i,a,o;return Ha(this,n),(o=e.call(this,t)).setName("list","list"),o.subMenuConfig=[{iconName:"ol",name:"ol",onclick:go(r=o.bindSubClick).call(r,$a(o),"1")},{iconName:"ul",name:"ul",onclick:go(i=o.bindSubClick).call(i,$a(o),"2")},{iconName:"checklist",name:"checklist",onclick:go(a=o.bindSubClick).call(a,$a(o),"3")}],o}return ja(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"$dealSelection",value:function(t,e){var n=t||"No.1\n No.1.1\nNo.2";n=n.replace(/^\n+/,"").replace(/\n+$/,"");var r="1.";switch(e){case"ol":r="1.";break;case"ul":r="-";break;case"checklist":r="- [x]"}if(n=n.replace(/^(\s*)([0-9a-zA-Z]+\.|- \[x\]|- \[ \]|-) /gm,"$1"),"1."===r){var i={};n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,(function(t,e,n){var r,a,o,s=(null===(r=e.match(/[ \t]/g))||void 0===r?void 0:r.length)||0;return i[s]=i[s]?i[s]+1:1,uo(a=uo(o="".concat(e)).call(o,i[s],". ")).call(a,n)}))}else n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,"$1".concat(r," $2"));return n}},{key:"onClick",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=[null,"ol","ul","checklist"],a=vm(this.editor.editor,t,"line",!0),o=a.match(/^\n*/),s=Rl(o,1),c=s[0],l=a.match(/\n*$/),A=Rl(l,1),u=A[0];return null!==i[r]?uo(e=uo(n="".concat(c)).call(n,this.$dealSelection(a,i[r]))).call(e,u):a}}]),n}(ym);function zm(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}function Wm(t,e){return[t,"```mermaid",e,"```"].join("\n")}var qm=["\tA[公司] --\x3e| 下 班 | B(菜市场)","\tB --\x3e C{看见<br>卖西瓜的}","\tC --\x3e|Yes| D[买一个包子]","\tC --\x3e|No| E[买一斤包子]"].join("\n"),Xm={flow:["FlowChart",Wm("左右结构","graph LR\n".concat(qm)),Wm("上下结构","graph TD\n".concat(qm))].join("\n"),sequence:Wm("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: 文本1","A->>B: 文本2","loop 循环1","loop 循环2","A->B: 文本3","end","loop 循环3","B --\x3e>A: 文本4","end","B --\x3e> B: 文本5","end"].join("\n")),state:Wm("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {"," \t[*] --\x3e D"," \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:Wm("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{"," \t+String newName"," \t+getNewName()","}","class Two{"," \t-int id"," \t-getId()","}"].join("\n")),pie:Wm("PieChart",["pie","title 饼图",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:Wm("GanttChart",["gantt","\ttitle 敏捷研发流程","\tsection 迭代前","\t\t交互设计 :a1, 2020-03-01, 4d","\t\tUI设计 :after a1, 5d","\t\t需求评审 : 1d","\tsection 迭代中","\t\t详细设计 :a2, 2020-03-11, 2d","\t\t开发 :2020-03-15, 7d","\t\t测试 :2020-03-22, 5d","\tsection 迭代后","\t\t发布: 1d","\t\t验收: 2d","\t\t回顾: 1d"].join("\n"))},Jm=function(t){Xa(n,t);var e=zm(n);function n(t){var r,i,a,o,s,c,l;return Ha(this,n),(l=e.call(this,t)).setName("graph","insertChart"),l.subMenuConfig=[{iconName:"insertFlow",name:"insertFlow",onclick:go(r=l.bindSubClick).call(r,$a(l),"1")},{iconName:"insertSeq",name:"insertSeq",onclick:go(i=l.bindSubClick).call(i,$a(l),"2")},{iconName:"insertState",name:"insertState",onclick:go(a=l.bindSubClick).call(a,$a(l),"3")},{iconName:"insertClass",name:"insertClass",onclick:go(o=l.bindSubClick).call(o,$a(l),"4")},{iconName:"insertPie",name:"insertPie",onclick:go(s=l.bindSubClick).call(s,$a(l),"5")},{iconName:"insertGantt",name:"insertGantt",onclick:go(c=l.bindSubClick).call(c,$a(l),"6")}],l}return ja(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="".concat(e),r=[,"flow","sequence","state","class","pie","gantt"],i=r[+n];if(r[+n])return"\n\n".concat(this.$getSampleCode(i),"\n")}},{key:"$getSampleCode",value:function(t){return Xm[t].replace(/\t/g," ")}}]),n}(ym);function Zm(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var ty=function(t){Xa(n,t);var e=Zm(n);function n(t){var r,i,a,o,s;return Ha(this,n),(s=e.call(this,t)).setName("size","size"),s.subMenuConfig=[{name:"小",noIcon:!0,onclick:go(r=s.bindSubClick).call(r,$a(s),"12")},{name:"中",noIcon:!0,onclick:go(i=s.bindSubClick).call(i,$a(s),"17")},{name:"大",noIcon:!0,onclick:go(a=s.bindSubClick).call(a,$a(s),"24")},{name:"特大",noIcon:!0,onclick:go(o=s.bindSubClick).call(o,$a(s),"32")}],s}return ja(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"_getFlagStr",value:function(t){for(var e=t.replace(/[^0-9]+([0-9])/g,"$1"),n="#",r=1;r<e;r++)n+="#";return n}},{key:"onClick",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"17",n=vm(this.editor.editor,t)||"字号";if(/^\s*(![0-9]+)[\s\S]+(!)/.test(t)){var r=!0,i=n.replace(/(^)(\s*)(![0-9]+)([^\n]+)(!)(\s*)($)/gm,(function(t,n,i,a,o,s,c,l){var A,u,h,f,d,p;return r=!!r&&a==="!".concat(e),uo(A=uo(u=uo(h=uo(f=uo(d=uo(p="".concat(n)).call(p,i,"!")).call(d,e)).call(f,o)).call(h,s)).call(u,c)).call(A,l)}));return r?n.replace(/(^)(\s*)(![0-9]+\s*)([^\n]+)(!)(\s*)($)/gm,"$1$4$7"):i}return n.replace(/(^)([^\n]+)($)/gm,"$1 !".concat(e," $2! $3"))}}]),n}(ym);function ey(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var ny=function(t){Xa(n,t);var e=ey(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("checklist","checklist"),r}return ja(n,[{key:"$dealSelection",value:function(t){var e=t||"No.1\n No.1.1\nNo.2";return e=(e=e.replace(/^\n+/,"").replace(/\n+$/,"")).replace(/^(\s*)(\S[\s\S]*?)$/gm,"$1- [ ] $2")}},{key:"onClick",value:function(t){var e,n,r=t.match(/^\n*/),i=Rl(r,1)[0],a=t.match(/\n*$/),o=Rl(a,1)[0];return uo(e=uo(n="".concat(i)).call(n,this.$dealSelection(t))).call(e,o)}}]),n}(ym);function ry(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var iy=function(t){Xa(n,t);var e=ry(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("h1","h1"),r}return ja(n,[{key:"onClick",value:function(t){var e=vm(this.editor.editor,t,"line",!0)||"标题";if(/^\s*(#+)\s*.+/.test(e)){var n=!0,r=e.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,r,i,a){var o,s;return n=!!n&&"#"===r,uo(o=uo(s="".concat(e,"#")).call(s,i)).call(o,a)}));return n?e.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):r}return e.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1# $3$4")}}]),n}(ym);function ay(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var oy=function(t){Xa(n,t);var e=ay(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("h2","h2"),r}return ja(n,[{key:"onClick",value:function(t){var e=vm(this.editor.editor,t,"line",!0)||"标题";if(/^\s*(#+)\s*.+/.test(e)){var n=!0,r=e.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,r,i,a){var o,s;return n=!!n&&"##"===r,uo(o=uo(s="".concat(e,"##")).call(s,i)).call(o,a)}));return n?e.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):r}return e.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1## $3$4")}}]),n}(ym);function sy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var cy=function(t){Xa(n,t);var e=sy(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("h3","h3"),r}return ja(n,[{key:"onClick",value:function(t){var e=vm(this.editor.editor,t,"line",!0)||"标题";if(/^\s*(#+)\s*.+/.test(e)){var n=!0,r=e.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,r,i,a){var o,s;return n=!!n&&"###"===r,uo(o=uo(s="".concat(e,"###")).call(s,i)).call(o,a)}));return n?e.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):r}return e.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1### $3$4")}}]),n}(ym),ly=si.every,Ay=Ca("every");Wt({target:"Array",proto:!0,forced:!Ay},{every:function(t){return ly(this,t,arguments.length>1?arguments[1]:void 0)}});var uy=mn("Array").every,hy=Array.prototype,fy=function(t){var e=t.every;return t===hy||Q(hy,t)&&e===hy.every?uy:e};function dy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var py=function(t){Xa(n,t);var e=dy(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("quote","blockquote"),r}return ja(n,[{key:"onClick",value:function(t){var e,n=vm(this.editor.editor,t,"line",!0)||"引用";return fy(e=n.split("\n")).call(e,(function(t){return/^\s*>[^\n]+$/.exec(t)}))?n.replace(/(^\s*)>\s*([^\n]+)($)/gm,"$1$2$3").replace(/\n+$/,"\n\n"):n.replace(/(^)([^\n]+)($)/gm,"$1> $2$3").replace(/\n+$/,"\n\n")}}]),n}(ym);function gy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var my=function(t){Xa(n,t);var e=gy(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("quickTable","table"),r}return ja(n,[{key:"onClick",value:function(t){return"".concat(t,"| LeftAlignedCol | CenterAlignedCol | RightAlignedCol |\n")+"| :--- | :---: | ---: |\n| sampleText | sampleText | sampleText |\n| **left**Text | centered Text | *right*Text |\n"}}]),n}(ym);function yy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var vy=function(t){Xa(n,t);var e=yy(n);function n(t,r){var i;return Ha(this,n),i=e.call(this,t),co($a(i),"$previewerHidden",!1),i.setName("previewClose","previewClose"),i.instanceId=r.$cherry.previewer.instanceId,i.updateMarkdown=!1,i.attachEventListeners(),i}return ja(n,[{key:"attachEventListeners",value:function(){var t=this;Kg.on(this.instanceId,Kg.Events.previewerClose,(function(){t.isHidden=!0})),Kg.on(this.instanceId,Kg.Events.previewerOpen,(function(){t.isHidden=!1}))}},{key:"isHidden",get:function(){return this.$previewerHidden},set:function(t){if(t!==this.$previewerHidden){var e=this.dom.querySelector("i");t?(e.classList.toggle("ch-icon-previewClose",!1),e.classList.toggle("ch-icon-preview",!0),e.title=dm.zh_CN.togglePreview):(e.classList.toggle("ch-icon-previewClose",!0),e.classList.toggle("ch-icon-preview",!1),e.title=dm.zh_CN.previewClose),this.$previewerHidden=t}}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.recoverPreviewer(!0),this.isHidden=!1):(this.editor.previewer.editOnly(!0),this.isHidden=!0)}}]),n}(ym);function by(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var wy=function(t){Xa(n,t);var e=by(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).updateMarkdown=!1,r.editor=t,r.setName("fullScreen","fullscreen"),r}return ja(n,[{key:"onClick",value:function(){var t=this.editor.options.editorDom.parentElement.classList;t.contains("fullscreen")?t.remove("fullscreen"):t.add("fullscreen"),this.editor.editor.refresh()}}]),n}(ym);function _y(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Ey=function(t){Xa(n,t);var e=_y(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).editor=t,r.setName("undo","undo"),r}return ja(n,[{key:"onClick",value:function(){this.editor.editor.undo()}}]),n}(ym);function Cy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var xy=function(t){Xa(n,t);var e=Cy(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).editor=t,r.setName("redo","redo"),r}return ja(n,[{key:"onClick",value:function(){this.editor.editor.redo()}}]),n}(ym);function By(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Ty=function(t){Xa(n,t);var e=By(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("code","code"),r}return ja(n,[{key:"onClick",value:function(t){return"\n``` \n".concat(t||"code...","\n```\n")}},{key:"shortcutKeys",get:function(){return["Mod-k"]}}]),n}(ym);function ky(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Sy=function(t){Xa(n,t);var e=ky(n);function n(t){var r,i,a,o,s,c,l,A,u;return Ha(this,n),(u=e.call(this,t)).setName("codeTheme"),u.updateMarkdown=!1,u.subMenuConfig=[{noIcon:!0,name:"default",onclick:go(r=u.bindSubClick).call(r,$a(u),"default")},{noIcon:!0,name:"dark",onclick:go(i=u.bindSubClick).call(i,$a(u),"dark")},{noIcon:!0,name:"funky",onclick:go(a=u.bindSubClick).call(a,$a(u),"funky")},{noIcon:!0,name:"okaidia",onclick:go(o=u.bindSubClick).call(o,$a(u),"okaidia")},{noIcon:!0,name:"twilight",onclick:go(s=u.bindSubClick).call(s,$a(u),"twilight")},{noIcon:!0,name:"coy",onclick:go(c=u.bindSubClick).call(c,$a(u),"coy")},{noIcon:!0,name:"solarized light",onclick:go(l=u.bindSubClick).call(l,$a(u),"solarized-light")},{noIcon:!0,name:"tomorrow night",onclick:go(A=u.bindSubClick).call(A,$a(u),"tomorrow-night")}],u}return ja(n,[{key:"onClick",value:function(){var t=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry").setAttribute("data-code-block-theme",t)}}]),n}(ym);function Iy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Ny=function(t){Xa(n,t);var e=Iy(n);function n(t){var r,i,a;return Ha(this,n),(a=e.call(this,t)).setName("export"),a.updateMarkdown=!1,a.subMenuConfig=[{noIcon:!0,name:"导出PDF",onclick:go(r=a.bindSubClick).call(r,$a(a),"pdf")},{noIcon:!0,name:"导出长图",onclick:go(i=a.bindSubClick).call(i,$a(a),"screenShot")}],a}return ja(n,[{key:"onClick",value:function(){var t=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry-dropdown[name=export]")&&(document.querySelector(".cherry-dropdown[name=export]").style.display="none"),this.editor.previewer.export(t)}}]),n}(ym);function My(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Fy=function(t){Xa(n,t);var e=My(n);function n(t,r){var i,a,o;Ha(this,n),(o=e.call(this,t)).setName("settings","settings"),o.engine=r;var s=o.engine.$cherry.options.engine.global.classicBr,c=t.options.defaultModel,l=s?"br":"normal",A=s?"classicBr":"normalBr",u="editOnly"===c?"preview":"previewClose",h="editOnly"===c?"togglePreview":"previewClose";return o.instanceId=r.$cherry.previewer.instanceId,o.subMenuConfig=[{iconName:l,name:A,onclick:go(i=o.bindSubClick).call(i,$a(o),"classicBr")},{iconName:u,name:h,onclick:go(a=o.bindSubClick).call(a,$a(o),"previewClose")}],o.attachEventListeners(),o}return ja(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"bindSubClick",value:function(t,e,n,r){return n?this.onClick(e,t,r):this.onClick(e,t)}},{key:"togglePreviewBtn",value:function(t){var e=this,n=t?"previewClose":"preview",r=t?"previewClose":"togglePreview";if(this.subMenu){var i=document.querySelector('.cherry-dropdown[name="settings"]');if(i){var a=i.querySelector(".ch-icon-previewClose,.ch-icon-preview");a.classList.toggle("ch-icon-previewClose"),a.classList.toggle("ch-icon-preview"),a.title=dm.zh_CN[r],a.parentElement.innerHTML=a.parentElement.innerHTML.replace(/<\/i>.+$/,"</i>".concat(dm.zh_CN[r]))}}else{var o;this.subMenuConfig=_A(o=this.subMenuConfig).call(o,(function(t){var i;return"previewClose"===t.iconName||"preview"===t.iconName?{iconName:n,name:r,onclick:go(i=e.bindSubClick).call(i,e,"previewClose")}:t}))}}},{key:"attachEventListeners",value:function(){var t=this;Kg.on(this.instanceId,Kg.Events.previewerClose,(function(){t.togglePreviewBtn(!1)})),Kg.on(this.instanceId,Kg.Events.previewerOpen,(function(){t.togglePreviewBtn(!0)}))}},{key:"onClick",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("classicBr"===e){var n,r,i=Rr(this.subMenu.dom.children),a=Rl(i,1),o=a[0];if(o.childNodes[1].textContent===dm.zh_CN.classicBr)o.children[0].setAttribute("class",o.children[0].getAttribute("class").replace("ch-icon-br","ch-icon-normal")),this.engine.$cherry.options.engine.global.classicBr=!1,Na(n=this.engine.hookCenter.hookList.paragraph).call(n,(function(t){t.classicBr=!1})),o.childNodes[1].textContent=dm.zh_CN.normalBr;else o.children[0].setAttribute("class",o.children[0].getAttribute("class").replace("ch-icon-normal","ch-icon-br")),this.engine.$cherry.options.engine.global.classicBr=!0,Na(r=this.engine.hookCenter.hookList.paragraph).call(r,(function(t){t.classicBr=!0})),o.childNodes[1].textContent=dm.zh_CN.classicBr;this.engine.$cherry.previewer.update(""),this.engine.$cherry.initText(this.engine.$cherry.editor.editor)}else"previewClose"===e&&(this.editor.previewer.isPreviewerHidden()?this.editor.previewer.recoverPreviewer(!0):this.editor.previewer.editOnly(!0));return t}}]),n}(ym);function Dy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Ly=function(t){Xa(n,t);var e=Dy(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("underline","underline"),r}return ja(n,[{key:"onClick",value:function(t){if(/^\s*(\/)[\s\S]+(\1)/.test(t))return t.replace(/(^)(\s*)(\/)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7");var e=t||"下划线";return e=e.replace(/(^)([^\n]+)($)/gm,"$1 /$2/ $3")}},{key:"shortcutKeys",get:function(){return["Mod-u"]}}]),n}(ym);function Oy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Ry=function(t){Xa(n,t);var e=Oy(n);function n(t,r,i){var a;return Ha(this,n),(a=e.call(this,t)).setName("switchPreview"),a.instanceId=i.instanceId,a.attachEventListeners(),a}return ja(n,[{key:"attachEventListeners",value:function(){var t=this;Kg.on(this.instanceId,Kg.Events.toolbarHide,(function(){t.dom.textContent=dm.zh_CN.switchEdit})),Kg.on(this.instanceId,Kg.Events.toolbarShow,(function(){t.dom.textContent=dm.zh_CN.switchPreview}))}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.previewOnly(),this.dom.parentElement.classList.add("preview-only"),this.dom.textContent=dm.zh_CN.switchEdit):(this.editor.previewer.editOnly(!0),this.dom.parentElement.classList.remove("preview-only"),this.dom.textContent=dm.zh_CN.switchPreview)}}]),n}(ym);function Uy(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image",n=document.createElement("input");n.type="file",n.id="fileUpload",n.value="",n.style.display="none",n.addEventListener("change",(function(n){var r=Rl(n.target.files,1)[0];t.options.fileUpload(r,(function(n){if("string"==typeof n&&n){var i,a="";if("image"===e)a=uo(i="![".concat(r.name,"](")).call(i,n,")");else if("video"===e){var o;a=uo(o="!video[".concat(r.name,"](")).call(o,n,")")}else if("audio"===e){var s;a=uo(s="!audio[".concat(r.name,"](")).call(s,n,")")}else{var c;a=uo(c="[".concat(r.name,"](")).call(c,n,")")}t.editor.doc.replaceSelection(a)}}))})),n.click()}function Py(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Qy=function(t){Xa(n,t);var e=Py(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("image","image"),r}return ja(n,[{key:"onClick",value:function(t){return Uy(this.editor,"image"),t}},{key:"shortcutKeys",get:function(){return["Mod-g"]}}]),n}(ym);function Hy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Gy=function(t){Xa(n,t);var e=Hy(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("audio","video"),r}return ja(n,[{key:"onClick",value:function(t){return Uy(this.editor,"audio"),t}}]),n}(ym);function jy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Ky=function(t){Xa(n,t);var e=jy(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("video","video"),r}return ja(n,[{key:"onClick",value:function(t){return Uy(this.editor,"video"),t}}]),n}(ym);function $y(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Yy=function(t){Xa(n,t);var e=$y(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("br","br"),r}return ja(n,[{key:"onClick",value:function(t){return"".concat(t,"<br>")}}]),n}(ym);function Vy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var zy=function(t){Xa(n,t);var e=Vy(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("hr","line"),r}return ja(n,[{key:"onClick",value:function(t){return"".concat(t,"\n\n---\n")}}]),n}(ym);function Wy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var qy=function(t){Xa(n,t);var e=Wy(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("formula","insertFormula"),r}return ja(n,[{key:"onClick",value:function(t){return"".concat(t," $ e=mc^2 $ ")}},{key:"shortcutKeys",get:function(){return["Mod-m"]}}]),n}(ym);function Xy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Jy=function(t){Xa(n,t);var e=Xy(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("link","link"),r}return ja(n,[{key:"onClick",value:function(t){return/^http/.test(t)?"[超链接](".concat(t,")"):"[".concat(t||"超链接","](http://url.com) ")}},{key:"shortcutKeys",get:function(){return["Mod-l"]}}]),n}(ym);function Zy(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var tv=function(t){Xa(n,t);var e=Zy(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("table","table"),r.subBubbleTableMenu=new jm({row:9,col:9}),t.options.wrapperDom.appendChild(r.subBubbleTableMenu.dom),r}return ja(n,[{key:"onClick",value:function(t){var e=this,n=this.dom.getBoundingClientRect();this.subBubbleTableMenu.dom.style.left="".concat(n.left+n.width,"px"),this.subBubbleTableMenu.dom.style.top="".concat(n.top+n.height,"px"),this.subBubbleTableMenu.show((function(n,r){var i,a,o,s,c,l,A=tf(i=" Header |").call(i,r),u=tf(a=" ------ |").call(a,r),h="\n|".concat(tf(o=" Sample |").call(o,r)),f=uo(s=uo(c=uo(l="".concat(t,"\n\n|")).call(l,A,"\n|")).call(c,u)).call(s,tf(h).call(h,n),"\n\n");e.editor.editor.replaceSelection(f,"around"),e.editor.editor.focus()}))}}]),n}(ym);function ev(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var nv=function(t){Xa(n,t);var e=ev(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("toc","toc"),r}return ja(n,[{key:"onClick",value:function(t){return"".concat(t,"\n\n[[toc]]\n")}}]),n}(ym);function rv(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var iv=function(t){Xa(n,t);var e=rv(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("lineTable","table"),r}return ja(n,[{key:"onClick",value:function(t){var e;return uo(e="".concat(t,"\n\n")).call(e,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}]),n}(ym);function av(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var ov=function(t){Xa(n,t);var e=av(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("brTable","table"),r}return ja(n,[{key:"onClick",value:function(t){var e;return uo(e="".concat(t,"\n\n")).call(e,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}]),n}(ym);function sv(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var cv=function(t){Xa(n,t);var e=sv(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("pdf","pdf"),r}return ja(n,[{key:"onClick",value:function(t){return Uy(this.editor,"pdf"),t}}]),n}(ym);function lv(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var Av=function(t){Xa(n,t);var e=lv(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("word","word"),r}return ja(n,[{key:"onClick",value:function(t){return Uy(this.editor,"word"),t}}]),n}(ym);function uv(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var hv=function(t){Xa(n,t);var e=uv(n);function n(t){var r;return Ha(this,n),(r=e.call(this,t)).setName("pinyin","pinyin"),r}return ja(n,[{key:"onClick",value:function(t){var e,n=vm(this.editor.editor,t)||"拼音";if(/^\s*\{[\s\S]+\|[\s\S]+\}/.test(n))return n.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1");var r=this.editor.$cherry.options.callback.changeString2Pinyin(n)||"pin yin";return uo(e=" { ".concat(n," | ")).call(e,Tl(r).call(r)," } ")}}]),n}(ym);function fv(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var dv=function(t){Xa(n,t);var e=fv(n);function n(t,r,i){var a;return Ha(this,n),(a=e.call(this,t)).previewer=i.options.previewer,a.updateMarkdown=!1,a.setName("mobilePreview","phone"),a}return ja(n,[{key:"onClick",value:function(){this.previewer.removeScroll();var t=this.previewer.getDomContainer();this.previewer.isMobilePreview?t.parentNode.innerHTML=t.innerHTML:t.innerHTML="<div class='cherry-mobile-previewer-content'>".concat(t.innerHTML,"</div>"),this.previewer.isMobilePreview=!this.previewer.isMobilePreview,this.previewer.bindScroll()}}]),n}(ym),pv=Error,gv=y("".replace),mv=String(pv("zxcasd").stack),yv=/\n\s*at [^:]*:[^\n]*/,vv=yv.test(mv),bv=function(t,e){if(vv&&"string"==typeof t&&!pv.prepareStackTrace)for(;e--;)t=gv(t,yv,"");return t},wv=function(t,e){O(e)&&"cause"in e&&Yt(t,"cause",e.cause)},_v=function(t,e){return void 0===t?arguments.length<2?"":e:En(t)},Ev=!c((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",B(1,7)),7!==t.stack)})),Cv=yt("toStringTag"),xv=s.Error,Bv=[].push,Tv=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,i=Q(kv,this);ur?n=ur(new xv,i?qn(this):kv):(n=i?this:qe(kv),Yt(n,Cv,"Error")),void 0!==e&&Yt(n,"message",_v(e)),Ev&&Yt(n,"stack",bv(n.stack,1)),wv(n,r);var a=[];return OA(t,Bv,{that:a}),Yt(n,"errors",a),n};ur?ur(Tv,xv):function(t,e,n){for(var r=Fa(e),i=$t.f,a=kt.f,o=0;o<r.length;o++){var s=r[o];lt(t,s)||n&&lt(n,s)||i(t,s,a(e,s))}}(Tv,xv,{name:!0});var kv=Tv.prototype=qe(xv.prototype,{constructor:B(1,Tv),message:B(1,""),name:B(1,"AggregateError")});Wt({global:!0,constructor:!0,arity:2},{AggregateError:Tv});var Sv,Iv,Nv,Mv,Fv=/(?:ipad|iphone|ipod).*applewebkit/i.test(H),Dv=s.setImmediate,Lv=s.clearImmediate,Ov=s.process,Rv=s.Dispatch,Uv=s.Function,Pv=s.MessageChannel,Qv=s.String,Hv=0,Gv={};try{Sv=s.location}catch(t){}var jv=function(t){if(lt(Gv,t)){var e=Gv[t];delete Gv[t],e()}},Kv=function(t){return function(){jv(t)}},$v=function(t){jv(t.data)},Yv=function(t){s.postMessage(Qv(t),Sv.protocol+"//"+Sv.host)};Dv&&Lv||(Dv=function(t){yo(arguments.length,1);var e=v(t)?t:Uv(t),n=qt(arguments,1);return Gv[++Hv]=function(){f(e,void 0,n)},Iv(Hv),Hv},Lv=function(t){delete Gv[t]},wf?Iv=function(t){Ov.nextTick(Kv(t))}:Rv&&Rv.now?Iv=function(t){Rv.now(Kv(t))}:Pv&&!Fv?(Mv=(Nv=new Pv).port2,Nv.port1.onmessage=$v,Iv=Rt(Mv.postMessage,Mv)):s.addEventListener&&v(s.postMessage)&&!s.importScripts&&Sv&&"file:"!==Sv.protocol&&!c(Yv)?(Iv=Yv,s.addEventListener("message",$v,!1)):Iv="onreadystatechange"in xt("script")?function(t){Ge.appendChild(xt("script")).onreadystatechange=function(){Ge.removeChild(this),jv(t)}}:function(t){setTimeout(Kv(t),0)});var Vv,zv,Wv,qv,Xv,Jv,Zv,tb,eb={set:Dv,clear:Lv},nb=/ipad|iphone|ipod/i.test(H)&&void 0!==s.Pebble,rb=/web0s(?!.*chrome)/i.test(H),ib=kt.f,ab=eb.set,ob=s.MutationObserver||s.WebKitMutationObserver,sb=s.document,cb=s.process,lb=s.Promise,Ab=ib(s,"queueMicrotask"),ub=Ab&&Ab.value;ub||(Vv=function(){var t,e;for(wf&&(t=cb.domain)&&t.exit();zv;){e=zv.fn,zv=zv.next;try{e()}catch(t){throw zv?qv():Wv=void 0,t}}Wv=void 0,t&&t.enter()},Fv||wf||rb||!ob||!sb?!nb&&lb&&lb.resolve?((Zv=lb.resolve(void 0)).constructor=lb,tb=Rt(Zv.then,Zv),qv=function(){tb(Vv)}):wf?qv=function(){cb.nextTick(Vv)}:(ab=Rt(ab,s),qv=function(){ab(Vv)}):(Xv=!0,Jv=sb.createTextNode(""),new ob(Vv).observe(Jv,{characterData:!0}),qv=function(){Jv.data=Xv=!Xv}));var hb=ub||function(t){var e={fn:t,next:void 0};Wv&&(Wv.next=e),zv||(zv=e,qv()),Wv=e},fb=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},db=function(){this.head=null,this.tail=null};db.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var pb,gb,mb=db,yb=s.Promise,vb="object"==typeof window&&"object"!=typeof Deno,bb=yb&&yb.prototype,wb=yt("species"),_b=!1,Eb=v(s.PromiseRejectionEvent),Cb={CONSTRUCTOR:Lt("Promise",(function(){var t=Ae(yb),e=t!==String(yb);if(!e&&66===Y)return!0;if(!bb.catch||!bb.finally)return!0;if(Y>=51&&/native code/.test(t))return!1;var n=new yb((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[wb]=r,!(_b=n.then((function(){}))instanceof r)||!e&&vb&&!Eb})),REJECTION_EVENT:Eb,SUBCLASSING:_b},xb=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=tt(e),this.reject=tt(n)},Bb={f:function(t){return new xb(t)}},Tb=eb.set,kb=Cb.CONSTRUCTOR,Sb=Cb.REJECTION_EVENT,Ib=Hn.getterFor("Promise"),Nb=Hn.set,Mb=yb&&yb.prototype,Fb=yb,Db=Mb,Lb=s.TypeError,Ob=s.document,Rb=s.process,Ub=Bb.f,Pb=Ub,Qb=!!(Ob&&Ob.createEvent&&s.dispatchEvent),Hb=function(t){var e;return!(!O(t)||!v(e=t.then))&&e},Gb=function(t,e){var n,r,i,a=e.value,o=1==e.state,s=o?t.ok:t.fail,c=t.resolve,l=t.reject,A=t.domain;try{s?(o||(2===e.rejection&&Vb(e),e.rejection=1),!0===s?n=a:(A&&A.enter(),n=s(a),A&&(A.exit(),i=!0)),n===t.promise?l(Lb("Promise-chain cycle")):(r=Hb(n))?_(r,n,c,l):c(n)):l(a)}catch(t){A&&!i&&A.exit(),l(t)}},jb=function(t,e){t.notified||(t.notified=!0,hb((function(){for(var n,r=t.reactions;n=r.get();)Gb(n,t);t.notified=!1,e&&!t.rejection&&$b(t)})))},Kb=function(t,e,n){var r,i;Qb?((r=Ob.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!Sb&&(i=s["on"+t])?i(r):"unhandledrejection"===t&&function(t,e){var n=s.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},$b=function(t){_(Tb,s,(function(){var e,n=t.facade,r=t.value;if(Yb(t)&&(e=fb((function(){wf?Rb.emit("unhandledRejection",r,n):Kb("unhandledrejection",n,r)})),t.rejection=wf||Yb(t)?2:1,e.error))throw e.value}))},Yb=function(t){return 1!==t.rejection&&!t.parent},Vb=function(t){_(Tb,s,(function(){var e=t.facade;wf?Rb.emit("rejectionHandled",e):Kb("rejectionhandled",e,t.value)}))},zb=function(t,e,n){return function(r){t(e,r,n)}},Wb=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,jb(t,!0))},qb=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Lb("Promise can't be resolved itself");var r=Hb(e);r?hb((function(){var n={done:!1};try{_(r,e,zb(qb,n,t),zb(Wb,n,t))}catch(e){Wb(n,e,t)}})):(t.value=e,t.state=1,jb(t,!1))}catch(e){Wb({done:!1},e,t)}}};kb&&(Db=(Fb=function(t){UA(this,Db),tt(t),_(pb,this);var e=Ib(this);try{t(zb(qb,e),zb(Wb,e))}catch(t){Wb(e,t)}}).prototype,(pb=function(t){Nb(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new mb,rejection:!1,state:0,value:void 0})}).prototype=Xn(Db,"then",(function(t,e){var n=Ib(this),r=Ub(ru(this,Fb));return n.parent=!0,r.ok=!v(t)||t,r.fail=v(e)&&e,r.domain=wf?Rb.domain:void 0,0==n.state?n.reactions.add(r):hb((function(){Gb(r,n)})),r.promise})),gb=function(){var t=new pb,e=Ib(t);this.promise=t,this.resolve=zb(qb,e),this.reject=zb(Wb,e)},Bb.f=Ub=function(t){return t===Fb||void 0===t?new gb(t):Pb(t)}),Wt({global:!0,constructor:!0,wrap:!0,forced:kb},{Promise:Fb}),ar(Fb,"Promise",!1,!0),YA("Promise");var Xb=Cb.CONSTRUCTOR||!Dr((function(t){yb.all(t).then(void 0,(function(){}))}));Wt({target:"Promise",stat:!0,forced:Xb},{all:function(t){var e=this,n=Bb.f(e),r=n.resolve,i=n.reject,a=fb((function(){var n=tt(e.resolve),a=[],o=0,s=1;OA(t,(function(t){var c=o++,l=!1;s++,_(n,e,t).then((function(t){l||(l=!0,a[c]=t,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise}});var Jb=Cb.CONSTRUCTOR;yb&&yb.prototype;Wt({target:"Promise",proto:!0,forced:Jb,real:!0},{catch:function(t){return this.then(void 0,t)}}),Wt({target:"Promise",stat:!0,forced:Xb},{race:function(t){var e=this,n=Bb.f(e),r=n.reject,i=fb((function(){var i=tt(e.resolve);OA(t,(function(t){_(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}}),Wt({target:"Promise",stat:!0,forced:Cb.CONSTRUCTOR},{reject:function(t){var e=Bb.f(this);return _(e.reject,void 0,t),e.promise}});var Zb=function(t,e){if(Ht(t),O(e)&&e.constructor===t)return e;var n=Bb.f(t);return(0,n.resolve)(e),n.promise},tw=Cb.CONSTRUCTOR,ew=P("Promise"),nw=!tw;Wt({target:"Promise",stat:!0,forced:!0},{resolve:function(t){return Zb(nw&&this===ew?yb:this,t)}}),Wt({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=Bb.f(e),r=n.resolve,i=n.reject,a=fb((function(){var n=tt(e.resolve),i=[],a=0,o=1;OA(t,(function(t){var s=a++,c=!1;o++,_(n,e,t).then((function(t){c||(c=!0,i[s]={status:"fulfilled",value:t},--o||r(i))}),(function(t){c||(c=!0,i[s]={status:"rejected",reason:t},--o||r(i))}))})),--o||r(i)}));return a.error&&i(a.value),n.promise}});Wt({target:"Promise",stat:!0},{any:function(t){var e=this,n=P("AggregateError"),r=Bb.f(e),i=r.resolve,a=r.reject,o=fb((function(){var r=tt(e.resolve),o=[],s=0,c=1,l=!1;OA(t,(function(t){var A=s++,u=!1;c++,_(r,e,t).then((function(t){u||l||(l=!0,i(t))}),(function(t){u||l||(u=!0,o[A]=t,--c||a(new n(o,"No one promise resolved")))}))})),--c||a(new n(o,"No one promise resolved"))}));return o.error&&a(o.value),r.promise}});var rw=yb&&yb.prototype,iw=!!yb&&c((function(){rw.finally.call({then:function(){}},(function(){}))}));Wt({target:"Promise",proto:!0,real:!0,forced:iw},{finally:function(t){var e=ru(this,P("Promise")),n=v(t);return this.then(n?function(n){return Zb(e,t()).then((function(){return n}))}:t,n?function(n){return Zb(e,t()).then((function(){throw n}))}:t)}});var aw=R.Promise,ow=aw;Wt({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=Bb.f(this),n=fb(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var sw=ow,cw=n(r((function(t){function e(t,e,n,r,i,a,o){try{var s=t[a](o),c=s.value}catch(t){return void n(t)}s.done?e(c):sw.resolve(c).then(r,i)}t.exports=function(t){return function(){var n=this,r=arguments;return new sw((function(i,a){var o=t.apply(n,r);function s(t){e(o,i,a,s,c,"next",t)}function c(t){e(o,i,a,s,c,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports}))),lw=Ia,Aw=y([].reverse),uw=[1,2];Wt({target:"Array",proto:!0,forced:String(uw)===String(uw.reverse())},{reverse:function(){return on(this)&&(this.length=this.length),Aw(this)}});var hw=mn("Array").reverse,fw=Array.prototype,dw=function(t){var e=t.reverse;return t===fw||Q(fw,t)&&e===fw.reverse?hw:e},pw=r((function(t){var e=eo.default;function n(){t.exports=n=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var r={},i=Object.prototype,a=i.hasOwnProperty,o="function"==typeof Za?Za:{},s=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function A(t,e,n){return Ga(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{A({},"")}catch(t){A=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof d?e:d,a=za(i.prototype),o=new x(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=_(o,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=h(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,o),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=u;var f={};function d(){}function p(){}function g(){}var m={};A(m,s,(function(){return this}));var y=ao&&ao(ao(B([])));y&&y!==i&&a.call(y,s)&&(m=y);var v=g.prototype=d.prototype=za(m);function b(t){var e;lw(e=["next","throw","return"]).call(e,(function(e){A(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,n){var r;this._invoke=function(i,o){function s(){return new n((function(r,s){!function r(i,o,s,c){var l=h(t[i],t,o);if("throw"!==l.type){var A=l.arg,u=A.value;return u&&"object"==e(u)&&a.call(u,"__await")?n.resolve(u.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):n.resolve(u).then((function(t){A.value=t,s(A)}),(function(t){return r("throw",t,s,c)}))}c(l.arg)}(i,o,r,s)}))}return r=r?r.then(s,s):s()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=h(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],lw(t).call(t,E,this),this.reset(!0)}function B(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(a.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=g,A(v,"constructor",g),A(g,"constructor",p),p.displayName=A(g,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Wa?Wa(t,g):(t.__proto__=g,A(t,l,"GeneratorFunction")),t.prototype=za(v),t},r.awrap=function(t){return{__await:t}},b(w.prototype),A(w.prototype,c,(function(){return this})),r.AsyncIterator=w,r.async=function(t,e,n,i,a){void 0===a&&(a=sw);var o=new w(u(t,e,n,i),a);return r.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},b(v),A(v,l,"Generator"),A(v,s,(function(){return this})),A(v,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var n in t)e.push(n);return dw(e).call(e),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},r.values=B,x.prototype={constructor:x,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,lw(e=this.tryEntries).call(e,C),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+Ml(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return o.type="throw",o.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:B(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}));n(pw);var gw=pw(),mw=aw;const yw={xml:!1,decodeEntities:!0},vw={_useHtmlParser2:!0,xmlMode:!0};function bw(t){return(null==t?void 0:t.xml)?"boolean"==typeof t.xml?vw:{...vw,...t.xml}:null!=t?t:void 0}var ww;!function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"}(ww||(ww={}));const _w=ww.Root,Ew=ww.Text,Cw=ww.Directive,xw=ww.Comment,Bw=ww.Script,Tw=ww.Style,kw=ww.Tag,Sw=ww.CDATA,Iw=ww.Doctype;class Nw{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Vw(this,t)}}class Mw extends Nw{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class Fw extends Mw{constructor(){super(...arguments),this.type=ww.Text}get nodeType(){return 3}}class Dw extends Mw{constructor(){super(...arguments),this.type=ww.Comment}get nodeType(){return 8}}class Lw extends Mw{constructor(t,e){super(e),this.name=t,this.type=ww.Directive}get nodeType(){return 1}}class Ow extends Nw{constructor(t){super(),this.children=t}get firstChild(){var t;return null!==(t=this.children[0])&&void 0!==t?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class Rw extends Ow{constructor(){super(...arguments),this.type=ww.CDATA}get nodeType(){return 4}}class Uw extends Ow{constructor(){super(...arguments),this.type=ww.Root}get nodeType(){return 9}}class Pw extends Ow{constructor(t,e,n=[],r=("script"===t?ww.Script:"style"===t?ww.Style:ww.Tag)){super(n),this.name=t,this.attribs=e,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var e,n;return{name:t,value:this.attribs[t],namespace:null===(e=this["x-attribsNamespace"])||void 0===e?void 0:e[t],prefix:null===(n=this["x-attribsPrefix"])||void 0===n?void 0:n[t]}})}}function Qw(t){return(e=t).type===ww.Tag||e.type===ww.Script||e.type===ww.Style;var e}function Hw(t){return t.type===ww.CDATA}function Gw(t){return t.type===ww.Text}function jw(t){return t.type===ww.Comment}function Kw(t){return t.type===ww.Directive}function $w(t){return t.type===ww.Root}function Yw(t){return Object.prototype.hasOwnProperty.call(t,"children")}function Vw(t,e=!1){let n;if(Gw(t))n=new Fw(t.data);else if(jw(t))n=new Dw(t.data);else if(Qw(t)){const r=e?zw(t.children):[],i=new Pw(t.name,{...t.attribs},r);r.forEach(t=>t.parent=i),null!=t.namespace&&(i.namespace=t.namespace),t["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...t["x-attribsPrefix"]}),n=i}else if(Hw(t)){const r=e?zw(t.children):[],i=new Rw(r);r.forEach(t=>t.parent=i),n=i}else if($w(t)){const r=e?zw(t.children):[],i=new Uw(r);r.forEach(t=>t.parent=i),t["x-mode"]&&(i["x-mode"]=t["x-mode"]),n=i}else{if(!Kw(t))throw new Error("Not implemented yet: "+t.type);{const e=new Lw(t.name,t.data);null!=t["x-name"]&&(e["x-name"]=t["x-name"],e["x-publicId"]=t["x-publicId"],e["x-systemId"]=t["x-systemId"]),n=e}}return n.startIndex=t.startIndex,n.endIndex=t.endIndex,null!=t.sourceCodeLocation&&(n.sourceCodeLocation=t.sourceCodeLocation),n}function zw(t){const e=t.map(t=>Vw(t,!0));for(let t=1;t<e.length;t++)e[t].prev=e[t-1],e[t-1].next=e[t];return e}const Ww={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class qw{constructor(t,e,n){this.dom=[],this.root=new Uw(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof e&&(n=e,e=Ww),"object"==typeof t&&(e=t,t=void 0),this.callback=null!=t?t:null,this.options=null!=e?e:Ww,this.elementCB=null!=n?n:null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new Uw(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,e){const n=this.options.xmlMode?ww.Tag:void 0,r=new Pw(t,e,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(t){const{lastNode:e}=this;if(e&&e.type===ww.Text)e.data+=t,this.options.withEndIndices&&(e.endIndex=this.parser.endIndex);else{const e=new Fw(t);this.addNode(e),this.lastNode=e}}oncomment(t){if(this.lastNode&&this.lastNode.type===ww.Comment)return void(this.lastNode.data+=t);const e=new Dw(t);this.addNode(e),this.lastNode=e}oncommentend(){this.lastNode=null}oncdatastart(){const t=new Fw(""),e=new Rw([t]);this.addNode(e),t.parent=e,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,e){const n=new Lw(t,e);this.addNode(n)}handleCallback(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t}addNode(t){const e=this.tagStack[this.tagStack.length-1],n=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),n&&(t.prev=n,n.next=t),t.parent=e,this.lastNode=null}}const Xw=/["&'<>$\x80-\uFFFF]/g,Jw=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),Zw=null!=String.prototype.codePointAt?(t,e)=>t.codePointAt(e):(t,e)=>55296==(64512&t.charCodeAt(e))?1024*(t.charCodeAt(e)-55296)+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e);function t_(t){let e,n="",r=0;for(;null!==(e=Xw.exec(t));){const i=e.index,a=t.charCodeAt(i),o=Jw.get(a);void 0!==o?(n+=t.substring(r,i)+o,r=i+1):(n+=`${t.substring(r,i)}&#x${Zw(t,i).toString(16)};`,r=Xw.lastIndex+=Number(55296==(64512&a)))}return n+t.substr(r)}function e_(t,e){return function(n){let r,i=0,a="";for(;r=t.exec(n);)i!==r.index&&(a+=n.substring(i,r.index)),a+=e.get(r[0].charCodeAt(0)),i=r.index+1;return a+n.substring(i)}}const n_=e_(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),r_=e_(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),i_=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(t=>[t.toLowerCase(),t])),a_=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(t=>[t.toLowerCase(),t])),o_=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function s_(t){return t.replace(/"/g,"&quot;")}const c_=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function l_(t,e={}){const n="length"in t?t:[t];let r="";for(let t=0;t<n.length;t++)r+=A_(n[t],e);return r}function A_(t,e){switch(t.type){case _w:return l_(t.children,e);case Iw:case Cw:return`<${t.data}>`;case xw:return function(t){return`\x3c!--${t.data}--\x3e`}(t);case Sw:return function(t){return`<![CDATA[${t.children[0].data}]]>`}(t);case Bw:case Tw:case kw:return function(t,e){var n;"foreign"===e.xmlMode&&(t.name=null!==(n=i_.get(t.name))&&void 0!==n?n:t.name,t.parent&&u_.has(t.parent.name)&&(e={...e,xmlMode:!1}));!e.xmlMode&&h_.has(t.name)&&(e={...e,xmlMode:"foreign"});let r="<"+t.name;const i=function(t,e){var n;if(!t)return;const r=!1===(null!==(n=e.encodeEntities)&&void 0!==n?n:e.decodeEntities)?s_:e.xmlMode||"utf8"!==e.encodeEntities?t_:n_;return Object.keys(t).map(n=>{var i,a;const o=null!==(i=t[n])&&void 0!==i?i:"";return"foreign"===e.xmlMode&&(n=null!==(a=a_.get(n))&&void 0!==a?a:n),e.emptyAttrs||e.xmlMode||""!==o?`${n}="${r(o)}"`:n}).join(" ")}(t.attribs,e);i&&(r+=" "+i);0===t.children.length&&(e.xmlMode?!1!==e.selfClosingTags:e.selfClosingTags&&c_.has(t.name))?(e.xmlMode||(r+=" "),r+="/>"):(r+=">",t.children.length>0&&(r+=l_(t.children,e)),!e.xmlMode&&c_.has(t.name)||(r+=`</${t.name}>`));return r}(t,e);case Ew:return function(t,e){var n;let r=t.data||"";!1===(null!==(n=e.encodeEntities)&&void 0!==n?n:e.decodeEntities)||!e.xmlMode&&t.parent&&o_.has(t.parent.name)||(r=e.xmlMode||"utf8"!==e.encodeEntities?t_(r):r_(r));return r}(t,e)}}const u_=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),h_=new Set(["svg","math"]);function f_(t,e){return l_(t,e)}function d_(t){return Array.isArray(t)?t.map(d_).join(""):Yw(t)&&!jw(t)?d_(t.children):Gw(t)?t.data:""}function p_(t){return Array.isArray(t)?t.map(p_).join(""):Yw(t)&&(t.type===ww.Tag||Hw(t))?p_(t.children):Gw(t)?t.data:""}function g_(t){return Yw(t)?t.children:[]}function m_(t){return t.parent||null}function y_(t){const e=m_(t);if(null!=e)return g_(e);const n=[t];let{prev:r,next:i}=t;for(;null!=r;)n.unshift(r),({prev:r}=r);for(;null!=i;)n.push(i),({next:i}=i);return n}function v_(t){let{next:e}=t;for(;null!==e&&!Qw(e);)({next:e}=e);return e}function b_(t){let{prev:e}=t;for(;null!==e&&!Qw(e);)({prev:e}=e);return e}function w_(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){const e=t.parent.children;e.splice(e.lastIndexOf(t),1)}}function __(t,e,n=!0,r=1/0){return Array.isArray(e)||(e=[e]),E_(t,e,n,r)}function E_(t,e,n,r){const i=[];for(const a of e){if(t(a)&&(i.push(a),--r<=0))break;if(n&&Yw(a)&&a.children.length>0){const e=E_(t,a.children,n,r);if(i.push(...e),(r-=e.length)<=0)break}}return i}function C_(t,e,n=!0){let r=null;for(let i=0;i<e.length&&!r;i++){const a=e[i];Qw(a)&&(t(a)?r=a:n&&a.children.length>0&&(r=C_(t,a.children,!0)))}return r}const x_={tag_name:t=>"function"==typeof t?e=>Qw(e)&&t(e.name):"*"===t?Qw:e=>Qw(e)&&e.name===t,tag_type:t=>"function"==typeof t?e=>t(e.type):e=>e.type===t,tag_contains:t=>"function"==typeof t?e=>Gw(e)&&t(e.data):e=>Gw(e)&&e.data===t};function B_(t,e){return"function"==typeof e?n=>Qw(n)&&e(n.attribs[t]):n=>Qw(n)&&n.attribs[t]===e}function T_(t,e){return n=>t(n)||e(n)}function k_(t){const e=Object.keys(t).map(e=>{const n=t[e];return Object.prototype.hasOwnProperty.call(x_,e)?x_[e](n):B_(e,n)});return 0===e.length?null:e.reduce(T_)}function S_(t,e,n=!0,r=1/0){return __(x_.tag_name(t),e,n,r)}var I_;function N_(t,e){const n=[],r=[];if(t===e)return 0;let i=Yw(t)?t:t.parent;for(;i;)n.unshift(i),i=i.parent;for(i=Yw(e)?e:e.parent;i;)r.unshift(i),i=i.parent;const a=Math.min(n.length,r.length);let o=0;for(;o<a&&n[o]===r[o];)o++;if(0===o)return I_.DISCONNECTED;const s=n[o-1],c=s.children,l=n[o],A=r[o];return c.indexOf(l)>c.indexOf(A)?s===e?I_.FOLLOWING|I_.CONTAINED_BY:I_.FOLLOWING:s===t?I_.PRECEDING|I_.CONTAINS:I_.PRECEDING}function M_(t){return(t=t.filter((t,e,n)=>!n.includes(t,e+1))).sort((t,e)=>{const n=N_(t,e);return n&I_.PRECEDING?-1:n&I_.FOLLOWING?1:0}),t}!function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"}(I_||(I_={}));const F_=["url","type","lang"],D_=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function L_(t){return S_("media:content",t).map(t=>{const{attribs:e}=t,n={medium:e.medium,isDefault:!!e.isDefault};for(const t of F_)e[t]&&(n[t]=e[t]);for(const t of D_)e[t]&&(n[t]=parseInt(e[t],10));return e.expression&&(n.expression=e.expression),n})}function O_(t,e){return S_(t,e,!0,1)[0]}function R_(t,e,n=!1){return d_(S_(t,e,n,1)).trim()}function U_(t,e,n,r,i=!1){const a=R_(n,r,i);a&&(t[e]=a)}function P_(t){return"rss"===t||"feed"===t||"rdf:RDF"===t}var Q_=Object.freeze({__proto__:null,isTag:Qw,isCDATA:Hw,isText:Gw,isComment:jw,isDocument:$w,hasChildren:Yw,getOuterHTML:f_,getInnerHTML:function(t,e){return Yw(t)?t.children.map(t=>f_(t,e)).join(""):""},getText:function t(e){return Array.isArray(e)?e.map(t).join(""):Qw(e)?"br"===e.name?"\n":t(e.children):Hw(e)?t(e.children):Gw(e)?e.data:""},textContent:d_,innerText:p_,getChildren:g_,getParent:m_,getSiblings:y_,getAttributeValue:function(t,e){var n;return null===(n=t.attribs)||void 0===n?void 0:n[e]},hasAttrib:function(t,e){return null!=t.attribs&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&null!=t.attribs[e]},getName:function(t){return t.name},nextElementSibling:v_,prevElementSibling:b_,removeElement:w_,replaceElement:function(t,e){const n=e.prev=t.prev;n&&(n.next=e);const r=e.next=t.next;r&&(r.prev=e);const i=e.parent=t.parent;if(i){const n=i.children;n[n.lastIndexOf(t)]=e,t.parent=null}},appendChild:function(t,e){if(w_(e),e.next=null,e.parent=t,t.children.push(e)>1){const n=t.children[t.children.length-2];n.next=e,e.prev=n}else e.prev=null},append:function(t,e){w_(e);const{parent:n}=t,r=t.next;if(e.next=r,e.prev=t,t.next=e,e.parent=n,r){if(r.prev=e,n){const t=n.children;t.splice(t.lastIndexOf(r),0,e)}}else n&&n.children.push(e)},prependChild:function(t,e){if(w_(e),e.parent=t,e.prev=null,1!==t.children.unshift(e)){const n=t.children[1];n.prev=e,e.next=n}else e.next=null},prepend:function(t,e){w_(e);const{parent:n}=t;if(n){const r=n.children;r.splice(r.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e},filter:__,find:E_,findOneChild:function(t,e){return e.find(t)},findOne:C_,existsOne:function t(e,n){return n.some(n=>Qw(n)&&(e(n)||n.children.length>0&&t(e,n.children)))},findAll:function(t,e){var n;const r=[],i=e.filter(Qw);let a;for(;a=i.shift();){const e=null===(n=a.children)||void 0===n?void 0:n.filter(Qw);e&&e.length>0&&i.unshift(...e),t(a)&&r.push(a)}return r},testElement:function(t,e){const n=k_(t);return!n||n(e)},getElements:function(t,e,n,r=1/0){const i=k_(t);return i?__(i,e,n,r):[]},getElementById:function(t,e,n=!0){return Array.isArray(e)||(e=[e]),C_(B_("id",t),e,n)},getElementsByTagName:S_,getElementsByTagType:function(t,e,n=!0,r=1/0){return __(x_.tag_type(t),e,n,r)},removeSubsets:function(t){let e=t.length;for(;--e>=0;){const n=t[e];if(e>0&&t.lastIndexOf(n,e-1)>=0)t.splice(e,1);else for(let r=n.parent;r;r=r.parent)if(t.includes(r)){t.splice(e,1);break}}return t},get DocumentPosition(){return I_},compareDocumentPosition:N_,uniqueSort:M_,getFeed:function(t){const e=O_(P_,t);return e?"feed"===e.name?function(t){var e;const n=t.children,r={type:"atom",items:S_("entry",n).map(t=>{var e;const{children:n}=t,r={media:L_(n)};U_(r,"id","id",n),U_(r,"title","title",n);const i=null===(e=O_("link",n))||void 0===e?void 0:e.attribs.href;i&&(r.link=i);const a=R_("summary",n)||R_("content",n);a&&(r.description=a);const o=R_("updated",n);return o&&(r.pubDate=new Date(o)),r})};U_(r,"id","id",n),U_(r,"title","title",n);const i=null===(e=O_("link",n))||void 0===e?void 0:e.attribs.href;i&&(r.link=i);U_(r,"description","subtitle",n);const a=R_("updated",n);a&&(r.updated=new Date(a));return U_(r,"author","email",n,!0),r}(e):function(t){var e,n;const r=null!==(n=null===(e=O_("channel",t.children))||void 0===e?void 0:e.children)&&void 0!==n?n:[],i={type:t.name.substr(0,3),id:"",items:S_("item",t.children).map(t=>{const{children:e}=t,n={media:L_(e)};U_(n,"id","guid",e),U_(n,"title","title",e),U_(n,"link","link",e),U_(n,"description","description",e);const r=R_("pubDate",e);return r&&(n.pubDate=new Date(r)),n})};U_(i,"title","title",r),U_(i,"link","link",r),U_(i,"description","description",r);const a=R_("lastBuildDate",r);a&&(i.updated=new Date(a));return U_(i,"author","managingEditor",r,!0),i}(e):null}});function H_(t,e,n){return t?t(null!=e?e:t._root.children,null,void 0,n).toString():""}function G_(t){const e=t||(this?this.root():[]);let n="";for(let t=0;t<e.length;t++)n+=d_(e[t]);return n}function j_(t,e){if(e===t)return!1;let n=e;for(;n&&n!==n.parent;)if(n=n.parent,n===t)return!0;return!1}function K_(t){if(Array.isArray(t))return!0;if("object"!=typeof t||!Object.prototype.hasOwnProperty.call(t,"length")||"number"!=typeof t.length||t.length<0)return!1;for(let e=0;e<t.length;e++)if(!(e in t))return!1;return!0}var $_,Y_=Object.freeze({__proto__:null,html:function(t,e){return H_(this,function(t,e){return!e&&"object"==typeof t&&null!=t&&!("length"in t)&&!("type"in t)}(t)?void(e=t):t,{...yw,...null==this?void 0:this._options,...bw(null!=e?e:{})})},xml:function(t){return H_(this,t,{...this._options,xmlMode:!0})},text:G_,parseHTML:function(t,e,n="boolean"==typeof e&&e){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e);const r=this.load(t,yw,!1);return n||r("script").remove(),r.root()[0].children.slice()},root:function(){return this(this._root)},contains:j_,merge:function(t,e){if(!K_(t)||!K_(e))return;let n=t.length;const r=+e.length;for(let i=0;i<r;i++)t[n++]=e[i];return t.length=n,t}});function V_(t){return null!=t.cheerio}function z_(t,e){const n=t.length;for(let r=0;r<n;r++)e(t[r],r);return t}function W_(t){const e="length"in t?Array.prototype.map.call(t,t=>Vw(t,!0)):[Vw(t,!0)],n=new Uw(e);return e.forEach(t=>{t.parent=n}),e}function q_(t){const e=t.indexOf("<");if(e<0||e>t.length-3)return!1;const n=t.charCodeAt(e+1);return(n>=$_.LowerA&&n<=$_.LowerZ||n>=$_.UpperA&&n<=$_.UpperZ||n===$_.Exclamation)&&t.includes(">",e+2)}!function(t){t[t.LowerA=97]="LowerA",t[t.LowerZ=122]="LowerZ",t[t.UpperA=65]="UpperA",t[t.UpperZ=90]="UpperZ",t[t.Exclamation=33]="Exclamation"}($_||($_={}));const X_=Object.prototype.hasOwnProperty,J_=/\s+/,Z_={null:null,true:!0,false:!1},tE=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,eE=/^{[^]*}$|^\[[^]*]$/;function nE(t,e,n){var r;if(t&&Qw(t))return null!==(r=t.attribs)&&void 0!==r||(t.attribs={}),e?X_.call(t.attribs,e)?!n&&tE.test(e)?e:t.attribs[e]:"option"===t.name&&"value"===e?G_(t.children):"input"!==t.name||"radio"!==t.attribs.type&&"checkbox"!==t.attribs.type||"value"!==e?void 0:"on":t.attribs}function rE(t,e,n){null===n?cE(t,e):t.attribs[e]=""+n}function iE(t,e,n){if(t&&Qw(t))return e in t?t[e]:!n&&tE.test(e)?void 0!==nE(t,e,!1):nE(t,e,n)}function aE(t,e,n,r){e in t?t[e]=n:rE(t,e,!r&&tE.test(e)?n?"":null:""+n)}function oE(t,e,n){var r;const i=t;null!==(r=i.data)&&void 0!==r||(i.data={}),"object"==typeof e?Object.assign(i.data,e):"string"==typeof e&&void 0!==n&&(i.data[e]=n)}function sE(t,e){let n,r,i;var a;null==e?(n=Object.keys(t.attribs).filter(t=>t.startsWith("data-")),r=n.map(t=>t.slice("data-".length).replace(/[_.-](\w|$)/g,(t,e)=>e.toUpperCase()))):(n=["data-"+(a=e,a.replace(/[A-Z]/g,"-$&").toLowerCase())],r=[e]);for(let e=0;e<n.length;++e){const a=n[e],o=r[e];if(X_.call(t.attribs,a)&&!X_.call(t.data,o)){if(i=t.attribs[a],X_.call(Z_,i))i=Z_[i];else if(i===String(Number(i)))i=Number(i);else if(eE.test(i))try{i=JSON.parse(i)}catch(t){}t.data[o]=i}}return null==e?t.data:i}function cE(t,e){t.attribs&&X_.call(t.attribs,e)&&delete t.attribs[e]}function lE(t){return t?t.trim().split(J_):[]}var AE,uE,hE=Object.freeze({__proto__:null,attr:function(t,e){if("object"==typeof t||void 0!==e){if("function"==typeof e){if("string"!=typeof t)throw new Error("Bad combination of arguments.");return z_(this,(n,r)=>{Qw(n)&&rE(n,t,e.call(n,r,n.attribs[t]))})}return z_(this,n=>{Qw(n)&&("object"==typeof t?Object.keys(t).forEach(e=>{const r=t[e];rE(n,e,r)}):rE(n,t,e))})}return arguments.length>1?this:nE(this[0],t,this.options.xmlMode)},prop:function(t,e){var n;if("string"==typeof t&&void 0===e)switch(t){case"style":{const t=this.css(),e=Object.keys(t);return e.forEach((e,n)=>{t[n]=e}),t.length=e.length,t}case"tagName":case"nodeName":{const t=this[0];return Qw(t)?t.name.toUpperCase():void 0}case"href":case"src":{const e=this[0];if(!Qw(e))return;const r=null===(n=e.attribs)||void 0===n?void 0:n[t];return"undefined"==typeof URL||("href"!==t||"a"!==e.tagName&&"link"!==e.name)&&("src"!==t||"img"!==e.tagName&&"iframe"!==e.tagName&&"audio"!==e.tagName&&"video"!==e.tagName&&"source"!==e.tagName)||void 0===r||!this.options.baseURI?r:new URL(r,this.options.baseURI).href}case"innerText":return p_(this[0]);case"textContent":return d_(this[0]);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return iE(this[0],t,this.options.xmlMode)}if("object"==typeof t||void 0!==e){if("function"==typeof e){if("object"==typeof t)throw new Error("Bad combination of arguments.");return z_(this,(n,r)=>{Qw(n)&&aE(n,t,e.call(n,r,iE(n,t,this.options.xmlMode)),this.options.xmlMode)})}return z_(this,n=>{Qw(n)&&("object"==typeof t?Object.keys(t).forEach(e=>{const r=t[e];aE(n,e,r,this.options.xmlMode)}):aE(n,t,e,this.options.xmlMode))})}},data:function(t,e){var n;const r=this[0];if(!r||!Qw(r))return;const i=r;return null!==(n=i.data)&&void 0!==n||(i.data={}),t?"object"==typeof t||void 0!==e?(z_(this,n=>{Qw(n)&&("object"==typeof t?oE(n,t):oE(n,t,e))}),this):X_.call(i.data,t)?i.data[t]:sE(i,t):sE(i)},val:function(t){const e=0===arguments.length,n=this[0];if(!n||!Qw(n))return e?void 0:this;switch(n.name){case"textarea":return this.text(t);case"select":{const n=this.find("option:selected");if(!e){if(null==this.attr("multiple")&&"object"==typeof t)return this;this.find("option").removeAttr("selected");const e="object"!=typeof t?[t]:t;for(let t=0;t<e.length;t++)this.find(`option[value="${e[t]}"]`).attr("selected","");return this}return this.attr("multiple")?n.toArray().map(t=>G_(t.children)):n.attr("value")}case"input":case"option":return e?this.attr("value"):this.attr("value",t)}},removeAttr:function(t){const e=lE(t);for(let t=0;t<e.length;t++)z_(this,n=>{Qw(n)&&cE(n,e[t])});return this},hasClass:function(t){return this.toArray().some(e=>{const n=Qw(e)&&e.attribs.class;let r=-1;if(n&&t.length)for(;(r=n.indexOf(t,r+1))>-1;){const e=r+t.length;if((0===r||J_.test(n[r-1]))&&(e===n.length||J_.test(n[e])))return!0}return!1})},addClass:function t(e){if("function"==typeof e)return z_(this,(n,r)=>{if(Qw(n)){const i=n.attribs.class||"";t.call([n],e.call(n,r,i))}});if(!e||"string"!=typeof e)return this;const n=e.split(J_),r=this.length;for(let t=0;t<r;t++){const e=this[t];if(!Qw(e))continue;const r=nE(e,"class",!1);if(r){let t=` ${r} `;for(let e=0;e<n.length;e++){const r=n[e]+" ";t.includes(" "+r)||(t+=r)}rE(e,"class",t.trim())}else rE(e,"class",n.join(" ").trim())}return this},removeClass:function t(e){if("function"==typeof e)return z_(this,(n,r)=>{Qw(n)&&t.call([n],e.call(n,r,n.attribs.class||""))});const n=lE(e),r=n.length,i=0===arguments.length;return z_(this,t=>{if(Qw(t))if(i)t.attribs.class="";else{const e=lE(t.attribs.class);let i=!1;for(let t=0;t<r;t++){const r=e.indexOf(n[t]);r>=0&&(e.splice(r,1),i=!0,t--)}i&&(t.attribs.class=e.join(" "))}})},toggleClass:function t(e,n){if("function"==typeof e)return z_(this,(r,i)=>{Qw(r)&&t.call([r],e.call(r,i,r.attribs.class||"",n),n)});if(!e||"string"!=typeof e)return this;const r=e.split(J_),i=r.length,a="boolean"==typeof n?n?1:-1:0,o=this.length;for(let t=0;t<o;t++){const e=this[t];if(!Qw(e))continue;const n=lE(e.attribs.class);for(let t=0;t<i;t++){const e=n.indexOf(r[t]);a>=0&&e<0?n.push(r[t]):a<=0&&e>=0&&n.splice(e,1)}e.attribs.class=n.join(" ")}return this}});!function(t){t.Attribute="attribute",t.Pseudo="pseudo",t.PseudoElement="pseudo-element",t.Tag="tag",t.Universal="universal",t.Adjacent="adjacent",t.Child="child",t.Descendant="descendant",t.Parent="parent",t.Sibling="sibling",t.ColumnCombinator="column-combinator"}(AE||(AE={})),function(t){t.Any="any",t.Element="element",t.End="end",t.Equals="equals",t.Exists="exists",t.Hyphen="hyphen",t.Not="not",t.Start="start"}(uE||(uE={}));const fE=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,dE=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,pE=new Map([[126,uE.Element],[94,uE.Start],[36,uE.End],[42,uE.Any],[33,uE.Not],[124,uE.Hyphen]]),gE=new Set(["has","not","matches","is","where","host","host-context"]);function mE(t){switch(t.type){case AE.Adjacent:case AE.Child:case AE.Descendant:case AE.Parent:case AE.Sibling:case AE.ColumnCombinator:return!0;default:return!1}}const yE=new Set(["contains","icontains"]);function vE(t,e,n){const r=parseInt(e,16)-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)}function bE(t){return t.replace(dE,vE)}function wE(t){return 39===t||34===t}function _E(t){return 32===t||9===t||10===t||12===t||13===t}function EE(t){const e=[],n=function t(e,n,r){let i=[];function a(t){const e=n.slice(r+t).match(fE);if(!e)throw new Error("Expected name, found "+n.slice(r));const[i]=e;return r+=t+i.length,bE(i)}function o(t){for(r+=t;r<n.length&&_E(n.charCodeAt(r));)r++}function s(){const t=r+=1;let e=1;for(;e>0&&r<n.length;r++)40!==n.charCodeAt(r)||c(r)?41!==n.charCodeAt(r)||c(r)||e--:e++;if(e)throw new Error("Parenthesis not matched");return bE(n.slice(t,r-1))}function c(t){let e=0;for(;92===n.charCodeAt(--t);)e++;return 1==(1&e)}function l(){if(i.length>0&&mE(i[i.length-1]))throw new Error("Did not expect successive traversals.")}function A(t){i.length>0&&i[i.length-1].type===AE.Descendant?i[i.length-1].type=t:(l(),i.push({type:t}))}function u(t,e){i.push({type:AE.Attribute,name:t,action:e,value:a(1),namespace:null,ignoreCase:"quirks"})}function h(){if(i.length&&i[i.length-1].type===AE.Descendant&&i.pop(),0===i.length)throw new Error("Empty sub-selector");e.push(i)}if(o(0),n.length===r)return r;t:for(;r<n.length;){const e=n.charCodeAt(r);switch(e){case 32:case 9:case 10:case 12:case 13:0!==i.length&&i[0].type===AE.Descendant||(l(),i.push({type:AE.Descendant})),o(1);break;case 62:A(AE.Child),o(1);break;case 60:A(AE.Parent),o(1);break;case 126:A(AE.Sibling),o(1);break;case 43:A(AE.Adjacent),o(1);break;case 46:u("class",uE.Element);break;case 35:u("id",uE.Equals);break;case 91:{let t;o(1);let e=null;124===n.charCodeAt(r)?t=a(1):n.startsWith("*|",r)?(e="*",t=a(2)):(t=a(0),124===n.charCodeAt(r)&&61!==n.charCodeAt(r+1)&&(e=t,t=a(1))),o(0);let s=uE.Exists;const l=pE.get(n.charCodeAt(r));if(l){if(s=l,61!==n.charCodeAt(r+1))throw new Error("Expected `=`");o(2)}else 61===n.charCodeAt(r)&&(s=uE.Equals,o(1));let A="",u=null;if("exists"!==s){if(wE(n.charCodeAt(r))){const t=n.charCodeAt(r);let e=r+1;for(;e<n.length&&(n.charCodeAt(e)!==t||c(e));)e+=1;if(n.charCodeAt(e)!==t)throw new Error("Attribute value didn't end");A=bE(n.slice(r+1,e)),r=e+1}else{const t=r;for(;r<n.length&&(!_E(n.charCodeAt(r))&&93!==n.charCodeAt(r)||c(r));)r+=1;A=bE(n.slice(t,r))}o(0);const t=32|n.charCodeAt(r);115===t?(u=!1,o(1)):105===t&&(u=!0,o(1))}if(93!==n.charCodeAt(r))throw new Error("Attribute selector didn't terminate");r+=1;const h={type:AE.Attribute,name:t,action:s,value:A,namespace:e,ignoreCase:u};i.push(h);break}case 58:{if(58===n.charCodeAt(r+1)){i.push({type:AE.PseudoElement,name:a(2).toLowerCase(),data:40===n.charCodeAt(r)?s():null});continue}const e=a(1).toLowerCase();let o=null;if(40===n.charCodeAt(r))if(gE.has(e)){if(wE(n.charCodeAt(r+1)))throw new Error(`Pseudo-selector ${e} cannot be quoted`);if(o=[],r=t(o,n,r+1),41!==n.charCodeAt(r))throw new Error(`Missing closing parenthesis in :${e} (${n})`);r+=1}else{if(o=s(),yE.has(e)){const t=o.charCodeAt(0);t===o.charCodeAt(o.length-1)&&wE(t)&&(o=o.slice(1,-1))}o=bE(o)}i.push({type:AE.Pseudo,name:e,data:o});break}case 44:h(),i=[],o(1);break;default:{if(n.startsWith("/*",r)){const t=n.indexOf("*/",r+2);if(t<0)throw new Error("Comment was not terminated");r=t+2,0===i.length&&o(0);break}let t,s=null;if(42===e)r+=1,t="*";else if(124===e){if(t="",124===n.charCodeAt(r+1)){A(AE.ColumnCombinator),o(2);break}}else{if(!fE.test(n.slice(r)))break t;t=a(0)}124===n.charCodeAt(r)&&124!==n.charCodeAt(r+1)&&(s=t,42===n.charCodeAt(r+1)?(t="*",r+=2):t=a(1)),i.push("*"===t?{type:AE.Universal,namespace:s}:{type:AE.Tag,name:t,namespace:s})}}}return h(),r}(e,""+t,0);if(n<t.length)throw new Error("Unmatched selector: "+t.slice(n));return e}var CE={trueFunc:function(){return!0},falseFunc:function(){return!1}},xE=CE.trueFunc,BE=CE.falseFunc;const TE=new Map([[AE.Universal,50],[AE.Tag,30],[AE.Attribute,1],[AE.Pseudo,0]]);function kE(t){return!TE.has(t.type)}const SE=new Map([[uE.Exists,10],[uE.Equals,8],[uE.Not,7],[uE.Start,6],[uE.End,6],[uE.Any,5]]);function IE(t){const e=t.map(NE);for(let n=1;n<t.length;n++){const r=e[n];if(!(r<0))for(let i=n-1;i>=0&&r<e[i];i--){const n=t[i+1];t[i+1]=t[i],t[i]=n,e[i+1]=e[i],e[i]=r}}}function NE(t){var e,n;let r=null!==(e=TE.get(t.type))&&void 0!==e?e:-1;return t.type===AE.Attribute?(r=null!==(n=SE.get(t.action))&&void 0!==n?n:4,t.action===uE.Equals&&"id"===t.name&&(r=9),t.ignoreCase&&(r>>=1)):t.type===AE.Pseudo&&(t.data?"has"===t.name||"contains"===t.name?r=0:Array.isArray(t.data)?(r=Math.min(...t.data.map(t=>Math.min(...t.map(NE)))),r<0&&(r=0)):r=2:r=3),r}const ME=/[-[\]{}()*+?.,\\^$|#\s]/g;function FE(t){return t.replace(ME,"\\$&")}const DE=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function LE(t,e){return"boolean"==typeof t.ignoreCase?t.ignoreCase:"quirks"===t.ignoreCase?!!e.quirksMode:!e.xmlMode&&DE.has(t.name)}const OE={equals(t,e,n){const{adapter:r}=n,{name:i}=e;let{value:a}=e;return LE(e,n)?(a=a.toLowerCase(),e=>{const n=r.getAttributeValue(e,i);return null!=n&&n.length===a.length&&n.toLowerCase()===a&&t(e)}):e=>r.getAttributeValue(e,i)===a&&t(e)},hyphen(t,e,n){const{adapter:r}=n,{name:i}=e;let{value:a}=e;const o=a.length;return LE(e,n)?(a=a.toLowerCase(),function(e){const n=r.getAttributeValue(e,i);return null!=n&&(n.length===o||"-"===n.charAt(o))&&n.substr(0,o).toLowerCase()===a&&t(e)}):function(e){const n=r.getAttributeValue(e,i);return null!=n&&(n.length===o||"-"===n.charAt(o))&&n.substr(0,o)===a&&t(e)}},element(t,e,n){const{adapter:r}=n,{name:i,value:a}=e;if(/\s/.test(a))return CE.falseFunc;const o=new RegExp(`(?:^|\\s)${FE(a)}(?:$|\\s)`,LE(e,n)?"i":"");return function(e){const n=r.getAttributeValue(e,i);return null!=n&&n.length>=a.length&&o.test(n)&&t(e)}},exists:(t,{name:e},{adapter:n})=>r=>n.hasAttrib(r,e)&&t(r),start(t,e,n){const{adapter:r}=n,{name:i}=e;let{value:a}=e;const o=a.length;return 0===o?CE.falseFunc:LE(e,n)?(a=a.toLowerCase(),e=>{const n=r.getAttributeValue(e,i);return null!=n&&n.length>=o&&n.substr(0,o).toLowerCase()===a&&t(e)}):e=>{var n;return!!(null===(n=r.getAttributeValue(e,i))||void 0===n?void 0:n.startsWith(a))&&t(e)}},end(t,e,n){const{adapter:r}=n,{name:i}=e;let{value:a}=e;const o=-a.length;return 0===o?CE.falseFunc:LE(e,n)?(a=a.toLowerCase(),e=>{var n;return(null===(n=r.getAttributeValue(e,i))||void 0===n?void 0:n.substr(o).toLowerCase())===a&&t(e)}):e=>{var n;return!!(null===(n=r.getAttributeValue(e,i))||void 0===n?void 0:n.endsWith(a))&&t(e)}},any(t,e,n){const{adapter:r}=n,{name:i,value:a}=e;if(""===a)return CE.falseFunc;if(LE(e,n)){const e=new RegExp(FE(a),"i");return function(n){const o=r.getAttributeValue(n,i);return null!=o&&o.length>=a.length&&e.test(o)&&t(n)}}return e=>{var n;return!!(null===(n=r.getAttributeValue(e,i))||void 0===n?void 0:n.includes(a))&&t(e)}},not(t,e,n){const{adapter:r}=n,{name:i}=e;let{value:a}=e;return""===a?e=>!!r.getAttributeValue(e,i)&&t(e):LE(e,n)?(a=a.toLowerCase(),e=>{const n=r.getAttributeValue(e,i);return(null==n||n.length!==a.length||n.toLowerCase()!==a)&&t(e)}):e=>r.getAttributeValue(e,i)!==a&&t(e)}},RE=new Set([9,10,12,13,32]),UE="0".charCodeAt(0),PE="9".charCodeAt(0);function QE(t){return function(t){const e=t[0],n=t[1]-1;if(n<0&&e<=0)return BE;if(-1===e)return t=>t<=n;if(0===e)return t=>t===n;if(1===e)return n<0?xE:t=>t>=n;const r=Math.abs(e),i=(n%r+r)%r;return e>1?t=>t>=n&&t%r===i:t=>t<=n&&t%r===i}(function(t){if("even"===(t=t.trim().toLowerCase()))return[2,0];if("odd"===t)return[2,1];let e=0,n=0,r=a(),i=o();if(e<t.length&&"n"===t.charAt(e)&&(e++,n=r*(null!=i?i:1),s(),e<t.length?(r=a(),s(),i=o()):r=i=0),null===i||e<t.length)throw new Error(`n-th rule couldn't be parsed ('${t}')`);return[n,r*i];function a(){return"-"===t.charAt(e)?(e++,-1):("+"===t.charAt(e)&&e++,1)}function o(){const n=e;let r=0;for(;e<t.length&&t.charCodeAt(e)>=UE&&t.charCodeAt(e)<=PE;)r=10*r+(t.charCodeAt(e)-UE),e++;return e===n?null:r}function s(){for(;e<t.length&&RE.has(t.charCodeAt(e));)e++}}(t))}function HE(t,e){return n=>{const r=e.getParent(n);return null!=r&&e.isTag(r)&&t(n)}}const GE={contains:(t,e,{adapter:n})=>function(r){return t(r)&&n.getText(r).includes(e)},icontains(t,e,{adapter:n}){const r=e.toLowerCase();return function(e){return t(e)&&n.getText(e).toLowerCase().includes(r)}},"nth-child"(t,e,{adapter:n,equals:r}){const i=QE(e);return i===CE.falseFunc?CE.falseFunc:i===CE.trueFunc?HE(t,n):function(e){const a=n.getSiblings(e);let o=0;for(let t=0;t<a.length&&!r(e,a[t]);t++)n.isTag(a[t])&&o++;return i(o)&&t(e)}},"nth-last-child"(t,e,{adapter:n,equals:r}){const i=QE(e);return i===CE.falseFunc?CE.falseFunc:i===CE.trueFunc?HE(t,n):function(e){const a=n.getSiblings(e);let o=0;for(let t=a.length-1;t>=0&&!r(e,a[t]);t--)n.isTag(a[t])&&o++;return i(o)&&t(e)}},"nth-of-type"(t,e,{adapter:n,equals:r}){const i=QE(e);return i===CE.falseFunc?CE.falseFunc:i===CE.trueFunc?HE(t,n):function(e){const a=n.getSiblings(e);let o=0;for(let t=0;t<a.length;t++){const i=a[t];if(r(e,i))break;n.isTag(i)&&n.getName(i)===n.getName(e)&&o++}return i(o)&&t(e)}},"nth-last-of-type"(t,e,{adapter:n,equals:r}){const i=QE(e);return i===CE.falseFunc?CE.falseFunc:i===CE.trueFunc?HE(t,n):function(e){const a=n.getSiblings(e);let o=0;for(let t=a.length-1;t>=0;t--){const i=a[t];if(r(e,i))break;n.isTag(i)&&n.getName(i)===n.getName(e)&&o++}return i(o)&&t(e)}},root:(t,e,{adapter:n})=>e=>{const r=n.getParent(e);return(null==r||!n.isTag(r))&&t(e)},scope(t,e,n,r){const{equals:i}=n;return r&&0!==r.length?1===r.length?e=>i(r[0],e)&&t(e):e=>r.includes(e)&&t(e):GE.root(t,e,n)},hover:jE("isHovered"),visited:jE("isVisited"),active:jE("isActive")};function jE(t){return function(e,n,{adapter:r}){const i=r[t];return"function"!=typeof i?CE.falseFunc:function(t){return i(t)&&e(t)}}}const KE={empty:(t,{adapter:e})=>!e.getChildren(t).some(t=>e.isTag(t)||""!==e.getText(t)),"first-child"(t,{adapter:e,equals:n}){if(e.prevElementSibling)return null==e.prevElementSibling(t);const r=e.getSiblings(t).find(t=>e.isTag(t));return null!=r&&n(t,r)},"last-child"(t,{adapter:e,equals:n}){const r=e.getSiblings(t);for(let i=r.length-1;i>=0;i--){if(n(t,r[i]))return!0;if(e.isTag(r[i]))break}return!1},"first-of-type"(t,{adapter:e,equals:n}){const r=e.getSiblings(t),i=e.getName(t);for(let a=0;a<r.length;a++){const o=r[a];if(n(t,o))return!0;if(e.isTag(o)&&e.getName(o)===i)break}return!1},"last-of-type"(t,{adapter:e,equals:n}){const r=e.getSiblings(t),i=e.getName(t);for(let a=r.length-1;a>=0;a--){const o=r[a];if(n(t,o))return!0;if(e.isTag(o)&&e.getName(o)===i)break}return!1},"only-of-type"(t,{adapter:e,equals:n}){const r=e.getName(t);return e.getSiblings(t).every(i=>n(t,i)||!e.isTag(i)||e.getName(i)!==r)},"only-child":(t,{adapter:e,equals:n})=>e.getSiblings(t).every(r=>n(t,r)||!e.isTag(r))};function $E(t,e,n,r){if(null===n){if(t.length>r)throw new Error(`Pseudo-class :${e} requires an argument`)}else if(t.length===r)throw new Error(`Pseudo-class :${e} doesn't have any arguments`)}const YE={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},VE={};function zE(t,e){const n=e.getSiblings(t);if(n.length<=1)return[];const r=n.indexOf(t);return r<0||r===n.length-1?[]:n.slice(r+1).filter(e.isTag)}function WE(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}const qE=(t,e,n,r,i)=>{const a=i(e,WE(n),r);return a===CE.trueFunc?t:a===CE.falseFunc?CE.falseFunc:e=>a(e)&&t(e)},XE={is:qE,matches:qE,where:qE,not(t,e,n,r,i){const a=i(e,WE(n),r);return a===CE.falseFunc?t:a===CE.trueFunc?CE.falseFunc:e=>!a(e)&&t(e)},has(t,e,n,r,i){const{adapter:a}=n,o=WE(n);o.relativeSelector=!0;const s=e.some(t=>t.some(kE))?[VE]:void 0,c=i(e,o,s);if(c===CE.falseFunc)return CE.falseFunc;const l=function(t,e){return t===CE.falseFunc?CE.falseFunc:n=>e.isTag(n)&&t(n)}(c,a);if(s&&c!==CE.trueFunc){const{shouldTestNextSiblings:e=!1}=c;return n=>{if(!t(n))return!1;s[0]=n;const r=a.getChildren(n),i=e?[...r,...zE(n,a)]:r;return a.existsOne(l,i)}}return e=>t(e)&&a.existsOne(l,a.getChildren(e))}};function JE(t,e){const n=e.getParent(t);return n&&e.isTag(n)?n:null}function ZE(t,e,n,r,i){const{adapter:a,equals:o}=n;switch(e.type){case AE.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case AE.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case AE.Attribute:if(null!=e.namespace)throw new Error("Namespaced attributes are not yet supported by css-select");return n.xmlMode&&!n.lowerCaseAttributeNames||(e.name=e.name.toLowerCase()),OE[e.action](t,e,n);case AE.Pseudo:return function(t,e,n,r,i){var a;const{name:o,data:s}=e;if(Array.isArray(s)){if(!(o in XE))throw new Error(`Unknown pseudo-class :${o}(${s})`);return XE[o](t,s,n,r,i)}const c=null===(a=n.pseudos)||void 0===a?void 0:a[o],l="string"==typeof c?c:YE[o];if("string"==typeof l){if(null!=s)throw new Error(`Pseudo ${o} doesn't have any arguments`);const e=EE(l);return XE.is(t,e,n,r,i)}if("function"==typeof c)return $E(c,o,s,1),e=>c(e,s)&&t(e);if(o in GE)return GE[o](t,s,n,r);if(o in KE){const e=KE[o];return $E(e,o,s,2),r=>e(r,n,s)&&t(r)}throw new Error("Unknown pseudo-class :"+o)}(t,e,n,r,i);case AE.Tag:{if(null!=e.namespace)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:r}=e;return n.xmlMode&&!n.lowerCaseTags||(r=r.toLowerCase()),function(e){return a.getName(e)===r&&t(e)}}case AE.Descendant:{if(!1===n.cacheResults||"undefined"==typeof WeakSet)return function(e){let n=e;for(;n=JE(n,a);)if(t(n))return!0;return!1};const e=new WeakSet;return function(n){let r=n;for(;r=JE(r,a);)if(!e.has(r)){if(a.isTag(r)&&t(r))return!0;e.add(r)}return!1}}case"_flexibleDescendant":return function(e){let n=e;do{if(t(n))return!0}while(n=JE(n,a));return!1};case AE.Parent:return function(e){return a.getChildren(e).some(e=>a.isTag(e)&&t(e))};case AE.Child:return function(e){const n=a.getParent(e);return null!=n&&a.isTag(n)&&t(n)};case AE.Sibling:return function(e){const n=a.getSiblings(e);for(let r=0;r<n.length;r++){const i=n[r];if(o(e,i))break;if(a.isTag(i)&&t(i))return!0}return!1};case AE.Adjacent:return a.prevElementSibling?function(e){const n=a.prevElementSibling(e);return null!=n&&t(n)}:function(e){const n=a.getSiblings(e);let r;for(let t=0;t<n.length;t++){const i=n[t];if(o(e,i))break;a.isTag(i)&&(r=i)}return!!r&&t(r)};case AE.Universal:if(null!=e.namespace&&"*"!==e.namespace)throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}function tC(t){return t.type===AE.Pseudo&&("scope"===t.name||Array.isArray(t.data)&&t.data.some(t=>t.some(tC)))}const eC={type:AE.Descendant},nC={type:"_flexibleDescendant"},rC={type:AE.Pseudo,name:"scope",data:null};function iC(t,e,n){var r;t.forEach(IE),n=null!==(r=e.context)&&void 0!==r?r:n;const i=Array.isArray(n),a=n&&(Array.isArray(n)?n:[n]);if(!1!==e.relativeSelector)!function(t,{adapter:e},n){const r=!!(null==n?void 0:n.every(t=>{const n=e.isTag(t)&&e.getParent(t);return t===VE||n&&e.isTag(n)}));for(const e of t){if(e.length>0&&kE(e[0])&&e[0].type!==AE.Descendant);else{if(!r||e.some(tC))continue;e.unshift(eC)}e.unshift(rC)}}(t,e,a);else if(t.some(t=>t.length>0&&kE(t[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1;const s=t.map(t=>{if(t.length>=2){const[e,n]=t;e.type!==AE.Pseudo||"scope"!==e.name||(i&&n.type===AE.Descendant?t[1]=nC:n.type!==AE.Adjacent&&n.type!==AE.Sibling||(o=!0))}return function(t,e,n){var r;return t.reduce((t,r)=>t===CE.falseFunc?CE.falseFunc:ZE(t,r,e,n,iC),null!==(r=e.rootFunc)&&void 0!==r?r:CE.trueFunc)}(t,e,a)}).reduce(aC,CE.falseFunc);return s.shouldTestNextSiblings=o,s}function aC(t,e){return e===CE.falseFunc||t===CE.trueFunc?t:t===CE.falseFunc||e===CE.trueFunc?e:function(n){return t(n)||e(n)}}const oC=(t,e)=>t===e,sC={adapter:Q_,equals:oC};const cC=(lC=iC,function(t,e,n){const r=function(t){var e,n,r,i;const a=null!=t?t:sC;return null!==(e=a.adapter)&&void 0!==e||(a.adapter=Q_),null!==(n=a.equals)&&void 0!==n||(a.equals=null!==(i=null===(r=a.adapter)||void 0===r?void 0:r.equals)&&void 0!==i?i:oC),a}(e);return lC(t,r,n)});var lC;function AC(t,e,n=!1){return n&&(t=function(t,e){const n=Array.isArray(t)?t.slice(0):[t],r=n.length;for(let t=0;t<r;t++){const r=zE(n[t],e);n.push(...r)}return n}(t,e)),Array.isArray(t)?e.removeSubsets(t):e.getChildren(t)}const uC=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function hC(t){return"pseudo"===t.type&&(!!uC.has(t.name)||!("not"!==t.name||!Array.isArray(t.data))&&t.data.some(t=>t.some(hC)))}function fC(t){const e=[],n=[];for(const r of t)r.some(hC)?e.push(r):n.push(r);return[n,e]}const dC={type:AE.Universal,namespace:null},pC={type:AE.Pseudo,name:"scope",data:null};function gC(t,e,n={}){return mC([t],e,n)}function mC(t,e,n={}){if("function"==typeof e)return t.some(e);const[r,i]=fC(EE(e));return r.length>0&&t.some(cC(r,n))||i.some(e=>bC(e,t,n).length>0)}function yC(t,e,n={}){return vC(EE(t),e,n)}function vC(t,e,n){if(0===e.length)return[];const[r,i]=fC(t);let a;if(r.length){const t=CC(e,r,n);if(0===i.length)return t;t.length&&(a=new Set(t))}for(let t=0;t<i.length&&(null==a?void 0:a.size)!==e.length;t++){const r=i[t];if(0===(a?e.filter(t=>Qw(t)&&!a.has(t)):e).length)break;const o=bC(r,e,n);if(o.length)if(a)o.forEach(t=>a.add(t));else{if(t===i.length-1)return o;a=new Set(o)}}return void 0!==a?a.size===e.length?e:e.filter(t=>a.has(t)):[]}function bC(t,e,n){var r;if(t.some(mE)){const i=null!==(r=n.root)&&void 0!==r?r:function(t){for(;t.parent;)t=t.parent;return t}(e[0]),a={...n,context:e,relativeSelector:!1};return t.push(pC),wC(i,t,a,!0,e.length)}return wC(e,t,n,!1,e.length)}function wC(t,e,n,r,i){const a=e.findIndex(hC),o=e.slice(0,a),s=e[a],c=e.length-1===a?i:1/0,l=function(t,e,n){const r=null!=e?parseInt(e,10):NaN;switch(t){case"first":return 1;case"nth":case"eq":return isFinite(r)?r>=0?r+1:1/0:0;case"lt":return isFinite(r)?r>=0?Math.min(r,n):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*n;case"even":return 2*n-1;case"last":case"not":return 1/0}}(s.name,s.data,c);if(0===l)return[];const A=(0!==o.length||Array.isArray(t)?0===o.length?(Array.isArray(t)?t:[t]).filter(Qw):r||o.some(mE)?_C(t,[o],n,l):CC(t,[o],n):g_(t).filter(Qw)).slice(0,l);let u=function(t,e,n,r){const i="string"==typeof n?parseInt(n,10):NaN;switch(t){case"first":case"lt":return e;case"last":return e.length>0?[e[e.length-1]]:e;case"nth":case"eq":return isFinite(i)&&Math.abs(i)<e.length?[i<0?e[e.length+i]:e[i]]:[];case"gt":return isFinite(i)?e.slice(i+1):[];case"even":return e.filter((t,e)=>e%2==0);case"odd":return e.filter((t,e)=>e%2==1);case"not":{const t=new Set(vC(n,e,r));return e.filter(e=>!t.has(e))}}}(s.name,A,s.data,n);if(0===u.length||e.length===a+1)return u;const h=e.slice(a+1),f=h.some(mE);if(f){if(mE(h[0])){const{type:t}=h[0];t!==AE.Sibling&&t!==AE.Adjacent||(u=AC(u,Q_,!0)),h.unshift(dC)}n={...n,relativeSelector:!1,rootFunc:t=>u.includes(t)}}else n.rootFunc&&n.rootFunc!==xE&&(n={...n,rootFunc:xE});return h.some(hC)?wC(u,h,n,!1,i):f?_C(u,[h],n,i):CC(u,[h],n)}function _C(t,e,n,r){return EC(t,cC(e,n,t),r)}function EC(t,e,n=1/0){return E_(t=>Qw(t)&&e(t),AC(t,Q_,e.shouldTestNextSiblings),!0,n)}function CC(t,e,n){const r=(Array.isArray(t)?t:[t]).filter(Qw);if(0===r.length)return r;const i=cC(e,n);return i===xE?r:r.filter(i)}const xC=/^\s*[~+]/;function BC(t){return function(e,...n){return function(r){var i;let a=t(e,this);return r&&(a=jC(a,r,this.options.xmlMode,null===(i=this._root)||void 0===i?void 0:i[0])),this._make(this.length>1&&a.length>1?n.reduce((t,e)=>e(t),a):a)}}}const TC=BC((t,e)=>{const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);n.push(i)}return(new Array).concat(...n)}),kC=BC((t,e)=>{const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);null!==i&&n.push(i)}return n});function SC(t,...e){let n=null;const r=BC((t,e)=>{const r=[];return z_(e,e=>{for(let i;(i=t(e))&&!(null==n?void 0:n(i,r.length));e=i)r.push(i)}),r})(t,...e);return function(t,e){n="string"==typeof t?e=>gC(e,t,this.options):t?GC(t):null;const i=r.call(this,e);return n=null,i}}function IC(t){return Array.from(new Set(t))}const NC=kC(({parent:t})=>t&&!$w(t)?t:null,IC),MC=TC(t=>{const e=[];for(;t.parent&&!$w(t.parent);)e.push(t.parent),t=t.parent;return e},M_,t=>t.reverse()),FC=SC(({parent:t})=>t&&!$w(t)?t:null,M_,t=>t.reverse());const DC=kC(t=>v_(t)),LC=TC(t=>{const e=[];for(;t.next;)Qw(t=t.next)&&e.push(t);return e},IC),OC=SC(t=>v_(t),IC),RC=kC(t=>b_(t)),UC=TC(t=>{const e=[];for(;t.prev;)Qw(t=t.prev)&&e.push(t);return e},IC),PC=SC(t=>b_(t),IC),QC=TC(t=>y_(t).filter(e=>Qw(e)&&e!==t),M_),HC=TC(t=>g_(t).filter(Qw),IC);function GC(t){return"function"==typeof t?(e,n)=>t.call(e,n,e):V_(t)?e=>Array.prototype.includes.call(t,e):function(e){return t===e}}function jC(t,e,n,r){return"string"==typeof e?yC(e,t,{xmlMode:n,root:r}):t.filter(GC(e))}var KC=Object.freeze({__proto__:null,find:function(t){var e;if(!t)return this._make([]);const n=this.toArray();if("string"!=typeof t){const e=V_(t)?t.toArray():[t];return this._make(e.filter(t=>n.some(e=>j_(e,t))))}const r=xC.test(t)?n:this.children().toArray(),i={context:n,root:null===(e=this._root)||void 0===e?void 0:e[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(function(t,e,n={},r=1/0){if("function"==typeof t)return EC(e,t);const[i,a]=fC(EE(t)),o=a.map(t=>wC(e,t,n,!0,r));return i.length&&o.push(_C(e,i,n,r)),0===o.length?[]:1===o.length?o[0]:M_(o.reduce((t,e)=>[...t,...e]))}(t,r,i))},parent:NC,parents:MC,parentsUntil:FC,closest:function(t){var e;const n=[];if(!t)return this._make(n);const r={xmlMode:this.options.xmlMode,root:null===(e=this._root)||void 0===e?void 0:e[0]},i="string"==typeof t?e=>gC(e,t,r):GC(t);return z_(this,t=>{for(;t&&Qw(t);){if(i(t,0)){n.includes(t)||n.push(t);break}t=t.parent}}),this._make(n)},next:DC,nextAll:LC,nextUntil:OC,prev:RC,prevAll:UC,prevUntil:PC,siblings:QC,children:HC,contents:function(){const t=this.toArray().reduce((t,e)=>Yw(e)?t.concat(e.children):t,[]);return this._make(t)},each:function(t){let e=0;const n=this.length;for(;e<n&&!1!==t.call(this[e],e,this[e]);)++e;return this},map:function(t){let e=[];for(let n=0;n<this.length;n++){const r=this[n],i=t.call(r,n,r);null!=i&&(e=e.concat(i))}return this._make(e)},filter:function(t){var e;return this._make(jC(this.toArray(),t,this.options.xmlMode,null===(e=this._root)||void 0===e?void 0:e[0]))},filterArray:jC,is:function(t){const e=this.toArray();return"string"==typeof t?mC(e.filter(Qw),t,this.options):!!t&&e.some(GC(t))},not:function(t){let e=this.toArray();if("string"==typeof t){const n=new Set(yC(t,e,this.options));e=e.filter(t=>!n.has(t))}else{const n=GC(t);e=e.filter((t,e)=>!n(t,e))}return this._make(e)},has:function(t){return this.filter("string"==typeof t?`:has(${t})`:(e,n)=>this._make(n).find(t).length>0)},first:function(){return this.length>1?this._make(this[0]):this},last:function(){return this.length>0?this._make(this[this.length-1]):this},eq:function(t){var e;return 0===(t=+t)&&this.length<=1?this:(t<0&&(t=this.length+t),this._make(null!==(e=this[t])&&void 0!==e?e:[]))},get:function(t){return null==t?this.toArray():this[t<0?this.length+t:t]},toArray:function(){return Array.prototype.slice.call(this)},index:function(t){let e,n;return null==t?(e=this.parent().children(),n=this[0]):"string"==typeof t?(e=this._make(t),n=this[0]):(e=this,n=V_(t)?t[0]:t),Array.prototype.indexOf.call(e,n)},slice:function(t,e){return this._make(Array.prototype.slice.call(this,t,e))},end:function(){var t;return null!==(t=this.prevObject)&&void 0!==t?t:this._make([])},add:function(t,e){const n=this._make(t,e),r=M_([...this.get(),...n.get()]);return this._make(r)},addBack:function(t){return this.prevObject?this.add(t?this.prevObject.filter(t):this.prevObject):this}});function $C(t,e){const n=Array.isArray(t)?t:[t];e?e.children=n:e=null;for(let t=0;t<n.length;t++){const r=n[t];r.parent&&r.parent.children!==n&&w_(r),e?(r.prev=n[t-1]||null,r.next=n[t+1]||null):r.prev=r.next=null,r.parent=e}return e}function YC(t){return function(...e){const n=this.length-1;return z_(this,(r,i)=>{if(!Yw(r))return;const a="function"==typeof e[0]?e[0].call(r,i,this._render(r.children)):e,o=this._makeDomArray(a,i<n);t(o,r.children,r)})}}function VC(t,e,n,r,i){var a,o;const s=[e,n,...r],c=0===e?null:t[e-1],l=e+n>=t.length?null:t[e+n];for(let t=0;t<r.length;++t){const n=r[t],A=n.parent;if(A){const t=A.children.indexOf(n);t>-1&&(A.children.splice(t,1),i===A&&e>t&&s[0]--)}n.parent=i,n.prev&&(n.prev.next=null!==(a=n.next)&&void 0!==a?a:null),n.next&&(n.next.prev=null!==(o=n.prev)&&void 0!==o?o:null),n.prev=0===t?c:r[t-1],n.next=t===r.length-1?l:r[t+1]}return c&&(c.next=r[0]),l&&(l.prev=r[r.length-1]),t.splice(...s)}const zC=YC((t,e,n)=>{VC(e,e.length,0,t,n)}),WC=YC((t,e,n)=>{VC(e,0,0,t,n)});function qC(t){return function(e){const n=this.length-1,r=this.parents().last();for(let i=0;i<this.length;i++){const a=this[i],o="function"==typeof e?e.call(a,i,a):"string"!=typeof e||q_(e)?e:r.find(e).clone(),[s]=this._makeDomArray(o,i<n);if(!s||!Yw(s))continue;let c=s,l=0;for(;l<c.children.length;){const t=c.children[l];Qw(t)?(c=t,l=0):l++}t(a,c,[s])}return this}}const XC=qC((t,e,n)=>{const{parent:r}=t;if(!r)return;const i=r.children,a=i.indexOf(t);$C([t],e),VC(i,a,0,n,r)}),JC=qC((t,e,n)=>{Yw(t)&&($C(t.children,e),$C(n,t))});var ZC=Object.freeze({__proto__:null,_makeDomArray:function(t,e){return null==t?[]:V_(t)?e?W_(t.get()):t.get():Array.isArray(t)?t.reduce((t,n)=>t.concat(this._makeDomArray(n,e)),[]):"string"==typeof t?this._parse(t,this.options,!1,null).children:e?W_([t]):[t]},appendTo:function(t){return(V_(t)?t:this._make(t)).append(this),this},prependTo:function(t){return(V_(t)?t:this._make(t)).prepend(this),this},append:zC,prepend:WC,wrap:XC,wrapInner:JC,unwrap:function(t){return this.parent(t).not("body").each((t,e)=>{this._make(e).replaceWith(e.children)}),this},wrapAll:function(t){const e=this[0];if(e){const n=this._make("function"==typeof t?t.call(e,0,e):t).insertBefore(e);let r;for(let t=0;t<n.length;t++)"tag"===n[t].type&&(r=n[t]);let i=0;for(;r&&i<r.children.length;){const t=r.children[i];"tag"===t.type?(r=t,i=0):i++}r&&this._make(r).append(this)}return this},after:function(...t){const e=this.length-1;return z_(this,(n,r)=>{const{parent:i}=n;if(!Yw(n)||!i)return;const a=i.children,o=a.indexOf(n);if(o<0)return;const s="function"==typeof t[0]?t[0].call(n,r,this._render(n.children)):t;VC(a,o+1,0,this._makeDomArray(s,r<e),i)})},insertAfter:function(t){"string"==typeof t&&(t=this._make(t)),this.remove();const e=[];return this._makeDomArray(t).forEach(t=>{const n=this.clone().toArray(),{parent:r}=t;if(!r)return;const i=r.children,a=i.indexOf(t);a<0||(VC(i,a+1,0,n,r),e.push(...n))}),this._make(e)},before:function(...t){const e=this.length-1;return z_(this,(n,r)=>{const{parent:i}=n;if(!Yw(n)||!i)return;const a=i.children,o=a.indexOf(n);if(o<0)return;const s="function"==typeof t[0]?t[0].call(n,r,this._render(n.children)):t;VC(a,o,0,this._makeDomArray(s,r<e),i)})},insertBefore:function(t){const e=this._make(t);this.remove();const n=[];return z_(e,t=>{const e=this.clone().toArray(),{parent:r}=t;if(!r)return;const i=r.children,a=i.indexOf(t);a<0||(VC(i,a,0,e,r),n.push(...e))}),this._make(n)},remove:function(t){return z_(t?this.filter(t):this,t=>{w_(t),t.prev=t.next=t.parent=null}),this},replaceWith:function(t){return z_(this,(e,n)=>{const{parent:r}=e;if(!r)return;const i=r.children,a="function"==typeof t?t.call(e,n,e):t,o=this._makeDomArray(a);$C(o,null);const s=i.indexOf(e);VC(i,s,1,o,r),o.includes(e)||(e.parent=e.prev=e.next=null)})},empty:function(){return z_(this,t=>{Yw(t)&&(t.children.forEach(t=>{t.next=t.prev=t.parent=null}),t.children.length=0)})},html:function(t){if(void 0===t){const t=this[0];return t&&Yw(t)?this._render(t.children):null}return z_(this,e=>{if(!Yw(e))return;e.children.forEach(t=>{t.next=t.prev=t.parent=null});$C(V_(t)?t.toArray():this._parse(""+t,this.options,!1,e).children,e)})},toString:function(){return this._render(this)},text:function(t){return void 0===t?G_(this):z_(this,"function"==typeof t?(e,n)=>this._make(e).text(t.call(e,n,G_([e]))):e=>{if(!Yw(e))return;e.children.forEach(t=>{t.next=t.prev=t.parent=null});$C(new Fw(""+t),e)})},clone:function(){return this._make(W_(this.get()))}});function tx(t,e){if(!t||!Qw(t))return;const n=function(t){if(!(t=(t||"").trim()))return{};const e={};let n;for(const r of t.split(";")){const t=r.indexOf(":");if(t<1||t===r.length-1){const t=r.trimEnd();t.length>0&&void 0!==n&&(e[n]+=";"+t)}else n=r.slice(0,t).trim(),e[n]=r.slice(t+1).trim()}return e}(t.attribs.style);if("string"==typeof e)return n[e];if(Array.isArray(e)){const t={};return e.forEach(e=>{null!=n[e]&&(t[e]=n[e])}),t}return n}var ex=Object.freeze({__proto__:null,css:function(t,e){return null!=t&&null!=e||"object"==typeof t&&!Array.isArray(t)?z_(this,(n,r)=>{Qw(n)&&function t(e,n,r,i){if("string"==typeof n){const t=tx(e),o="function"==typeof r?r.call(e,i,t[n]):r;""===o?delete t[n]:null!=o&&(t[n]=o),e.attribs.style=(a=t,Object.keys(a).reduce((t,e)=>`${t}${t?" ":""}${e}: ${a[e]};`,""))}else"object"==typeof n&&Object.keys(n).forEach((r,i)=>{t(e,r,n[r],i)});var a}(n,t,e,r)}):0!==this.length?tx(this[0],t):void 0}});const nx=/%20/g,rx=/\r?\n/g;var ix=Object.freeze({__proto__:null,serialize:function(){return this.serializeArray().map(t=>`${encodeURIComponent(t.name)}=${encodeURIComponent(t.value)}`).join("&").replace(nx,"+")},serializeArray:function(){return this.map((t,e)=>{const n=this._make(e);return Qw(e)&&"form"===e.name?n.find("input,select,textarea,keygen").toArray():n.filter("input,select,textarea,keygen").toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((t,e)=>{var n;const r=this._make(e),i=r.attr("name"),a=null!==(n=r.val())&&void 0!==n?n:"";return Array.isArray(a)?a.map(t=>({name:i,value:t.replace(rx,"\r\n")})):{name:i,value:a.replace(rx,"\r\n")}}).toArray()}});class ax{constructor(t,e,n){if(this.length=0,this.options=n,this._root=e,t){for(let e=0;e<t.length;e++)this[e]=t[e];this.length=t.length}}}ax.prototype.cheerio="[cheerio object]",ax.prototype.splice=Array.prototype.splice,ax.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(ax.prototype,hE,KC,ZC,ex,ix);const ox=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);var sx;!function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",t[t.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_F=102]="LATIN_SMALL_F",t[t.LATIN_SMALL_X=120]="LATIN_SMALL_X",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",t[t.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(sx||(sx={}));const cx="--",lx="[CDATA[",Ax="doctype",ux="script",hx="public",fx="system";function dx(t){return t>=55296&&t<=57343}function px(t){return 32!==t&&10!==t&&13!==t&&9!==t&&12!==t&&t>=1&&t<=31||t>=127&&t<=159}function gx(t){return t>=64976&&t<=65007||ox.has(t)}var mx;!function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.noncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(mx||(mx={}));class yx{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){const{line:e,col:n,offset:r}=this;return{code:t,startLine:e,endLine:e,startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const e=this.html.charCodeAt(this.pos+1);if(function(t){return t>=56320&&t<=57343}(e))return this.pos++,this._addGap(),1024*(t-55296)+9216+e}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,sx.EOF;return this._err(mx.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,e){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=e}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,e){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(e)return this.html.startsWith(t,this.pos);for(let e=0;e<t.length;e++){if((32|this.html.charCodeAt(this.pos+e))!==t.charCodeAt(e))return!1}return!0}peek(t){const e=this.pos+t;return e>=this.html.length?(this.endOfChunkHit=!this.lastChunkWritten,sx.EOF):this.html.charCodeAt(e)}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,sx.EOF;let t=this.html.charCodeAt(this.pos);if(t===sx.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,sx.LINE_FEED;if(t===sx.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,dx(t)&&(t=this._processSurrogate(t));return null===this.handler.onParseError||t>31&&t<127||t===sx.LINE_FEED||t===sx.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t}_checkForProblematicCharacters(t){px(t)?this._err(mx.controlCharacterInInputStream):gx(t)&&this._err(mx.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var vx;function bx(t,e){for(let n=t.attrs.length-1;n>=0;n--)if(t.attrs[n].name===e)return t.attrs[n].value;return null}!function(t){t[t.CHARACTER=0]="CHARACTER",t[t.NULL_CHARACTER=1]="NULL_CHARACTER",t[t.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",t[t.START_TAG=3]="START_TAG",t[t.END_TAG=4]="END_TAG",t[t.COMMENT=5]="COMMENT",t[t.DOCTYPE=6]="DOCTYPE",t[t.EOF=7]="EOF",t[t.HIBERNATION=8]="HIBERNATION"}(vx||(vx={}));var wx=r((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=new Uint16Array([7489,60,213,305,650,1181,1403,1488,1653,1758,1954,2006,2063,2634,2705,3489,3693,3849,3878,4298,4648,4833,5141,5277,5315,5343,5413,0,0,0,0,0,0,5483,5837,6541,7186,7645,8062,8288,8624,8845,9152,9211,9282,10276,10514,11528,11848,12238,12310,12986,13881,14252,14590,14888,14961,15072,15150,2048,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,92,98,102,109,115,127,132,139,144,149,152,166,179,185,200,207,108,105,103,32827,198,16582,80,32827,38,16422,99,117,116,101,32827,193,16577,114,101,118,101,59,16642,256,105,121,120,125,114,99,32827,194,16578,59,17424,114,59,49152,55349,56580,114,97,118,101,32827,192,16576,112,104,97,59,17297,97,99,114,59,16640,100,59,27219,256,103,112,157,161,111,110,59,16644,102,59,49152,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,24673,105,110,103,32827,197,16581,256,99,115,190,195,114,59,49152,55349,56476,105,103,110,59,25172,105,108,100,101,32827,195,16579,109,108,32827,196,16580,1024,97,99,101,102,111,114,115,117,229,251,254,279,284,290,295,298,256,99,114,234,242,107,115,108,97,115,104,59,25110,374,246,248,59,27367,101,100,59,25350,121,59,17425,384,99,114,116,261,267,276,97,117,115,101,59,25141,110,111,117,108,108,105,115,59,24876,97,59,17298,114,59,49152,55349,56581,112,102,59,49152,55349,56633,101,118,101,59,17112,99,242,275,109,112,101,113,59,25166,1792,72,79,97,99,100,101,102,104,105,108,111,114,115,117,333,337,342,384,414,418,437,439,442,476,533,627,632,638,99,121,59,17447,80,89,32827,169,16553,384,99,112,121,349,354,378,117,116,101,59,16646,256,59,105,359,360,25298,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,24901,108,101,121,115,59,24877,512,97,101,105,111,393,398,404,408,114,111,110,59,16652,100,105,108,32827,199,16583,114,99,59,16648,110,105,110,116,59,25136,111,116,59,16650,256,100,110,423,429,105,108,108,97,59,16568,116,101,114,68,111,116,59,16567,242,383,105,59,17319,114,99,108,101,512,68,77,80,84,455,459,465,470,111,116,59,25241,105,110,117,115,59,25238,108,117,115,59,25237,105,109,101,115,59,25239,111,256,99,115,482,504,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,25138,101,67,117,114,108,121,256,68,81,515,527,111,117,98,108,101,81,117,111,116,101,59,24605,117,111,116,101,59,24601,512,108,110,112,117,542,552,583,597,111,110,256,59,101,549,550,25143,59,27252,384,103,105,116,559,566,570,114,117,101,110,116,59,25185,110,116,59,25135,111,117,114,73,110,116,101,103,114,97,108,59,25134,256,102,114,588,590,59,24834,111,100,117,99,116,59,25104,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,25139,111,115,115,59,27183,99,114,59,49152,55349,56478,112,256,59,67,644,645,25299,97,112,59,25165,1408,68,74,83,90,97,99,101,102,105,111,115,672,684,688,692,696,715,727,737,742,819,1165,256,59,111,377,677,116,114,97,104,100,59,26897,99,121,59,17410,99,121,59,17413,99,121,59,17423,384,103,114,115,703,708,711,103,101,114,59,24609,114,59,24993,104,118,59,27364,256,97,121,720,725,114,111,110,59,16654,59,17428,108,256,59,116,733,734,25095,97,59,17300,114,59,49152,55349,56583,256,97,102,747,807,256,99,109,752,802,114,105,116,105,99,97,108,512,65,68,71,84,768,774,790,796,99,117,116,101,59,16564,111,372,779,781,59,17113,98,108,101,65,99,117,116,101,59,17117,114,97,118,101,59,16480,105,108,100,101,59,17116,111,110,100,59,25284,102,101,114,101,110,116,105,97,108,68,59,24902,1136,829,0,0,0,834,852,0,1029,102,59,49152,55349,56635,384,59,68,69,840,841,845,16552,111,116,59,24796,113,117,97,108,59,25168,98,108,101,768,67,68,76,82,85,86,867,882,898,975,994,1016,111,110,116,111,117,114,73,110,116,101,103,114,97,236,569,111,628,889,0,0,891,187,841,110,65,114,114,111,119,59,25043,256,101,111,903,932,102,116,384,65,82,84,912,918,929,114,114,111,119,59,25040,105,103,104,116,65,114,114,111,119,59,25044,101,229,714,110,103,256,76,82,939,964,101,102,116,256,65,82,947,953,114,114,111,119,59,26616,105,103,104,116,65,114,114,111,119,59,26618,105,103,104,116,65,114,114,111,119,59,26617,105,103,104,116,256,65,84,984,990,114,114,111,119,59,25042,101,101,59,25256,112,577,1001,0,0,1007,114,114,111,119,59,25041,111,119,110,65,114,114,111,119,59,25045,101,114,116,105,99,97,108,66,97,114,59,25125,110,768,65,66,76,82,84,97,1042,1066,1072,1118,1151,892,114,114,111,119,384,59,66,85,1053,1054,1058,24979,97,114,59,26899,112,65,114,114,111,119,59,25077,114,101,118,101,59,17169,101,102,116,722,1082,0,1094,0,1104,105,103,104,116,86,101,99,116,111,114,59,26960,101,101,86,101,99,116,111,114,59,26974,101,99,116,111,114,256,59,66,1113,1114,25021,97,114,59,26966,105,103,104,116,468,1127,0,1137,101,101,86,101,99,116,111,114,59,26975,101,99,116,111,114,256,59,66,1146,1147,25025,97,114,59,26967,101,101,256,59,65,1158,1159,25252,114,114,111,119,59,24999,256,99,116,1170,1175,114,59,49152,55349,56479,114,111,107,59,16656,2048,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1213,1216,1220,1227,1246,1250,1255,1262,1269,1313,1327,1334,1362,1373,1376,1381,71,59,16714,72,32827,208,16592,99,117,116,101,32827,201,16585,384,97,105,121,1234,1239,1244,114,111,110,59,16666,114,99,32827,202,16586,59,17453,111,116,59,16662,114,59,49152,55349,56584,114,97,118,101,32827,200,16584,101,109,101,110,116,59,25096,256,97,112,1274,1278,99,114,59,16658,116,121,595,1286,0,0,1298,109,97,108,108,83,113,117,97,114,101,59,26107,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,26027,256,103,112,1318,1322,111,110,59,16664,102,59,49152,55349,56636,115,105,108,111,110,59,17301,117,256,97,105,1340,1353,108,256,59,84,1346,1347,27253,105,108,100,101,59,25154,108,105,98,114,105,117,109,59,25036,256,99,105,1367,1370,114,59,24880,109,59,27251,97,59,17303,109,108,32827,203,16587,256,105,112,1386,1391,115,116,115,59,25091,111,110,101,110,116,105,97,108,69,59,24903,640,99,102,105,111,115,1413,1416,1421,1458,1484,121,59,17444,114,59,49152,55349,56585,108,108,101,100,595,1431,0,0,1443,109,97,108,108,83,113,117,97,114,101,59,26108,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,26026,880,1466,0,1471,0,0,1476,102,59,49152,55349,56637,65,108,108,59,25088,114,105,101,114,116,114,102,59,24881,99,242,1483,1536,74,84,97,98,99,100,102,103,111,114,115,116,1512,1516,1519,1530,1536,1554,1558,1563,1565,1571,1644,1650,99,121,59,17411,32827,62,16446,109,109,97,256,59,100,1527,1528,17299,59,17372,114,101,118,101,59,16670,384,101,105,121,1543,1548,1552,100,105,108,59,16674,114,99,59,16668,59,17427,111,116,59,16672,114,59,49152,55349,56586,59,25305,112,102,59,49152,55349,56638,101,97,116,101,114,768,69,70,71,76,83,84,1589,1604,1614,1622,1627,1638,113,117,97,108,256,59,76,1598,1599,25189,101,115,115,59,25307,117,108,108,69,113,117,97,108,59,25191,114,101,97,116,101,114,59,27298,101,115,115,59,25207,108,97,110,116,69,113,117,97,108,59,27262,105,108,100,101,59,25203,99,114,59,49152,55349,56482,59,25195,1024,65,97,99,102,105,111,115,117,1669,1675,1686,1691,1694,1706,1726,1738,82,68,99,121,59,17450,256,99,116,1680,1684,101,107,59,17095,59,16478,105,114,99,59,16676,114,59,24844,108,98,101,114,116,83,112,97,99,101,59,24843,496,1711,0,1714,102,59,24845,105,122,111,110,116,97,108,76,105,110,101,59,25856,256,99,116,1731,1733,242,1705,114,111,107,59,16678,109,112,324,1744,1752,111,119,110,72,117,109,240,303,113,117,97,108,59,25167,1792,69,74,79,97,99,100,102,103,109,110,111,115,116,117,1786,1790,1795,1799,1806,1818,1822,1825,1832,1860,1912,1931,1935,1941,99,121,59,17429,108,105,103,59,16690,99,121,59,17409,99,117,116,101,32827,205,16589,256,105,121,1811,1816,114,99,32827,206,16590,59,17432,111,116,59,16688,114,59,24849,114,97,118,101,32827,204,16588,384,59,97,112,1824,1839,1855,256,99,103,1844,1847,114,59,16682,105,110,97,114,121,73,59,24904,108,105,101,243,989,500,1865,0,1890,256,59,101,1869,1870,25132,256,103,114,1875,1880,114,97,108,59,25131,115,101,99,116,105,111,110,59,25282,105,115,105,98,108,101,256,67,84,1900,1906,111,109,109,97,59,24675,105,109,101,115,59,24674,384,103,112,116,1919,1923,1928,111,110,59,16686,102,59,49152,55349,56640,97,59,17305,99,114,59,24848,105,108,100,101,59,16680,491,1946,0,1950,99,121,59,17414,108,32827,207,16591,640,99,102,111,115,117,1964,1975,1980,1986,2e3,256,105,121,1969,1973,114,99,59,16692,59,17433,114,59,49152,55349,56589,112,102,59,49152,55349,56641,483,1991,0,1996,114,59,49152,55349,56485,114,99,121,59,17416,107,99,121,59,17412,896,72,74,97,99,102,111,115,2020,2024,2028,2033,2045,2050,2056,99,121,59,17445,99,121,59,17420,112,112,97,59,17306,256,101,121,2038,2043,100,105,108,59,16694,59,17434,114,59,49152,55349,56590,112,102,59,49152,55349,56642,99,114,59,49152,55349,56486,1408,74,84,97,99,101,102,108,109,111,115,116,2085,2089,2092,2128,2147,2483,2488,2503,2509,2615,2631,99,121,59,17417,32827,60,16444,640,99,109,110,112,114,2103,2108,2113,2116,2125,117,116,101,59,16697,98,100,97,59,17307,103,59,26602,108,97,99,101,116,114,102,59,24850,114,59,24990,384,97,101,121,2135,2140,2145,114,111,110,59,16701,100,105,108,59,16699,59,17435,256,102,115,2152,2416,116,1280,65,67,68,70,82,84,85,86,97,114,2174,2217,2225,2272,2278,2300,2351,2395,912,2410,256,110,114,2179,2191,103,108,101,66,114,97,99,107,101,116,59,26600,114,111,119,384,59,66,82,2201,2202,2206,24976,97,114,59,25060,105,103,104,116,65,114,114,111,119,59,25030,101,105,108,105,110,103,59,25352,111,501,2231,0,2243,98,108,101,66,114,97,99,107,101,116,59,26598,110,468,2248,0,2258,101,101,86,101,99,116,111,114,59,26977,101,99,116,111,114,256,59,66,2267,2268,25027,97,114,59,26969,108,111,111,114,59,25354,105,103,104,116,256,65,86,2287,2293,114,114,111,119,59,24980,101,99,116,111,114,59,26958,256,101,114,2305,2327,101,384,59,65,86,2313,2314,2320,25251,114,114,111,119,59,24996,101,99,116,111,114,59,26970,105,97,110,103,108,101,384,59,66,69,2340,2341,2345,25266,97,114,59,27087,113,117,97,108,59,25268,112,384,68,84,86,2359,2370,2380,111,119,110,86,101,99,116,111,114,59,26961,101,101,86,101,99,116,111,114,59,26976,101,99,116,111,114,256,59,66,2390,2391,25023,97,114,59,26968,101,99,116,111,114,256,59,66,2405,2406,25020,97,114,59,26962,105,103,104,116,225,924,115,768,69,70,71,76,83,84,2430,2443,2453,2461,2466,2477,113,117,97,108,71,114,101,97,116,101,114,59,25306,117,108,108,69,113,117,97,108,59,25190,114,101,97,116,101,114,59,25206,101,115,115,59,27297,108,97,110,116,69,113,117,97,108,59,27261,105,108,100,101,59,25202,114,59,49152,55349,56591,256,59,101,2493,2494,25304,102,116,97,114,114,111,119,59,25050,105,100,111,116,59,16703,384,110,112,119,2516,2582,2587,103,512,76,82,108,114,2526,2551,2562,2576,101,102,116,256,65,82,2534,2540,114,114,111,119,59,26613,105,103,104,116,65,114,114,111,119,59,26615,105,103,104,116,65,114,114,111,119,59,26614,101,102,116,256,97,114,947,2570,105,103,104,116,225,959,105,103,104,116,225,970,102,59,49152,55349,56643,101,114,256,76,82,2594,2604,101,102,116,65,114,114,111,119,59,24985,105,103,104,116,65,114,114,111,119,59,24984,384,99,104,116,2622,2624,2626,242,2124,59,25008,114,111,107,59,16705,59,25194,1024,97,99,101,102,105,111,115,117,2650,2653,2656,2679,2684,2693,2699,2702,112,59,26885,121,59,17436,256,100,108,2661,2671,105,117,109,83,112,97,99,101,59,24671,108,105,110,116,114,102,59,24883,114,59,49152,55349,56592,110,117,115,80,108,117,115,59,25107,112,102,59,49152,55349,56644,99,242,2678,59,17308,1152,74,97,99,101,102,111,115,116,117,2723,2727,2733,2752,2836,2841,3473,3479,3486,99,121,59,17418,99,117,116,101,59,16707,384,97,101,121,2740,2745,2750,114,111,110,59,16711,100,105,108,59,16709,59,17437,384,103,115,119,2759,2800,2830,97,116,105,118,101,384,77,84,86,2771,2783,2792,101,100,105,117,109,83,112,97,99,101,59,24587,104,105,256,99,110,2790,2776,235,2777,101,114,121,84,104,105,238,2777,116,101,100,256,71,76,2808,2822,114,101,97,116,101,114,71,114,101,97,116,101,242,1651,101,115,115,76,101,115,243,2632,76,105,110,101,59,16394,114,59,49152,55349,56593,512,66,110,112,116,2850,2856,2871,2874,114,101,97,107,59,24672,66,114,101,97,107,105,110,103,83,112,97,99,101,59,16544,102,59,24853,1664,59,67,68,69,71,72,76,78,80,82,83,84,86,2901,2902,2922,2940,2977,3051,3076,3166,3204,3238,3288,3425,3461,27372,256,111,117,2907,2916,110,103,114,117,101,110,116,59,25186,112,67,97,112,59,25197,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,25126,384,108,113,120,2947,2954,2971,101,109,101,110,116,59,25097,117,97,108,256,59,84,2962,2963,25184,105,108,100,101,59,49152,8770,824,105,115,116,115,59,25092,114,101,97,116,101,114,896,59,69,70,71,76,83,84,2998,2999,3005,3017,3027,3032,3045,25199,113,117,97,108,59,25201,117,108,108,69,113,117,97,108,59,49152,8807,824,114,101,97,116,101,114,59,49152,8811,824,101,115,115,59,25209,108,97,110,116,69,113,117,97,108,59,49152,10878,824,105,108,100,101,59,25205,117,109,112,324,3058,3069,111,119,110,72,117,109,112,59,49152,8782,824,113,117,97,108,59,49152,8783,824,101,256,102,115,3082,3111,116,84,114,105,97,110,103,108,101,384,59,66,69,3098,3099,3105,25322,97,114,59,49152,10703,824,113,117,97,108,59,25324,115,768,59,69,71,76,83,84,3125,3126,3132,3140,3147,3160,25198,113,117,97,108,59,25200,114,101,97,116,101,114,59,25208,101,115,115,59,49152,8810,824,108,97,110,116,69,113,117,97,108,59,49152,10877,824,105,108,100,101,59,25204,101,115,116,101,100,256,71,76,3176,3193,114,101,97,116,101,114,71,114,101,97,116,101,114,59,49152,10914,824,101,115,115,76,101,115,115,59,49152,10913,824,114,101,99,101,100,101,115,384,59,69,83,3218,3219,3227,25216,113,117,97,108,59,49152,10927,824,108,97,110,116,69,113,117,97,108,59,25312,256,101,105,3243,3257,118,101,114,115,101,69,108,101,109,101,110,116,59,25100,103,104,116,84,114,105,97,110,103,108,101,384,59,66,69,3275,3276,3282,25323,97,114,59,49152,10704,824,113,117,97,108,59,25325,256,113,117,3293,3340,117,97,114,101,83,117,256,98,112,3304,3321,115,101,116,256,59,69,3312,3315,49152,8847,824,113,117,97,108,59,25314,101,114,115,101,116,256,59,69,3331,3334,49152,8848,824,113,117,97,108,59,25315,384,98,99,112,3347,3364,3406,115,101,116,256,59,69,3355,3358,49152,8834,8402,113,117,97,108,59,25224,99,101,101,100,115,512,59,69,83,84,3378,3379,3387,3398,25217,113,117,97,108,59,49152,10928,824,108,97,110,116,69,113,117,97,108,59,25313,105,108,100,101,59,49152,8831,824,101,114,115,101,116,256,59,69,3416,3419,49152,8835,8402,113,117,97,108,59,25225,105,108,100,101,512,59,69,70,84,3438,3439,3445,3455,25153,113,117,97,108,59,25156,117,108,108,69,113,117,97,108,59,25159,105,108,100,101,59,25161,101,114,116,105,99,97,108,66,97,114,59,25124,99,114,59,49152,55349,56489,105,108,100,101,32827,209,16593,59,17309,1792,69,97,99,100,102,103,109,111,112,114,115,116,117,118,3517,3522,3529,3541,3547,3552,3559,3580,3586,3616,3618,3634,3647,3652,108,105,103,59,16722,99,117,116,101,32827,211,16595,256,105,121,3534,3539,114,99,32827,212,16596,59,17438,98,108,97,99,59,16720,114,59,49152,55349,56594,114,97,118,101,32827,210,16594,384,97,101,105,3566,3570,3574,99,114,59,16716,103,97,59,17321,99,114,111,110,59,17311,112,102,59,49152,55349,56646,101,110,67,117,114,108,121,256,68,81,3598,3610,111,117,98,108,101,81,117,111,116,101,59,24604,117,111,116,101,59,24600,59,27220,256,99,108,3623,3628,114,59,49152,55349,56490,97,115,104,32827,216,16600,105,364,3639,3644,100,101,32827,213,16597,101,115,59,27191,109,108,32827,214,16598,101,114,256,66,80,3659,3680,256,97,114,3664,3667,114,59,24638,97,99,256,101,107,3674,3676,59,25566,101,116,59,25524,97,114,101,110,116,104,101,115,105,115,59,25564,1152,97,99,102,104,105,108,111,114,115,3711,3719,3722,3727,3730,3732,3741,3760,3836,114,116,105,97,108,68,59,25090,121,59,17439,114,59,49152,55349,56595,105,59,17318,59,17312,117,115,77,105,110,117,115,59,16561,256,105,112,3746,3757,110,99,97,114,101,112,108,97,110,229,1693,102,59,24857,512,59,101,105,111,3769,3770,3808,3812,27323,99,101,100,101,115,512,59,69,83,84,3784,3785,3791,3802,25210,113,117,97,108,59,27311,108,97,110,116,69,113,117,97,108,59,25212,105,108,100,101,59,25214,109,101,59,24627,256,100,112,3817,3822,117,99,116,59,25103,111,114,116,105,111,110,256,59,97,549,3833,108,59,25117,256,99,105,3841,3846,114,59,49152,55349,56491,59,17320,512,85,102,111,115,3857,3862,3867,3871,79,84,32827,34,16418,114,59,49152,55349,56596,112,102,59,24858,99,114,59,49152,55349,56492,1536,66,69,97,99,101,102,104,105,111,114,115,117,3902,3907,3911,3936,3955,4007,4010,4013,4246,4265,4276,4286,97,114,114,59,26896,71,32827,174,16558,384,99,110,114,3918,3923,3926,117,116,101,59,16724,103,59,26603,114,256,59,116,3932,3933,24992,108,59,26902,384,97,101,121,3943,3948,3953,114,111,110,59,16728,100,105,108,59,16726,59,17440,256,59,118,3960,3961,24860,101,114,115,101,256,69,85,3970,3993,256,108,113,3975,3982,101,109,101,110,116,59,25099,117,105,108,105,98,114,105,117,109,59,25035,112,69,113,117,105,108,105,98,114,105,117,109,59,26991,114,187,3961,111,59,17313,103,104,116,1024,65,67,68,70,84,85,86,97,4033,4075,4083,4130,4136,4187,4231,984,256,110,114,4038,4050,103,108,101,66,114,97,99,107,101,116,59,26601,114,111,119,384,59,66,76,4060,4061,4065,24978,97,114,59,25061,101,102,116,65,114,114,111,119,59,25028,101,105,108,105,110,103,59,25353,111,501,4089,0,4101,98,108,101,66,114,97,99,107,101,116,59,26599,110,468,4106,0,4116,101,101,86,101,99,116,111,114,59,26973,101,99,116,111,114,256,59,66,4125,4126,25026,97,114,59,26965,108,111,111,114,59,25355,256,101,114,4141,4163,101,384,59,65,86,4149,4150,4156,25250,114,114,111,119,59,24998,101,99,116,111,114,59,26971,105,97,110,103,108,101,384,59,66,69,4176,4177,4181,25267,97,114,59,27088,113,117,97,108,59,25269,112,384,68,84,86,4195,4206,4216,111,119,110,86,101,99,116,111,114,59,26959,101,101,86,101,99,116,111,114,59,26972,101,99,116,111,114,256,59,66,4226,4227,25022,97,114,59,26964,101,99,116,111,114,256,59,66,4241,4242,25024,97,114,59,26963,256,112,117,4251,4254,102,59,24861,110,100,73,109,112,108,105,101,115,59,26992,105,103,104,116,97,114,114,111,119,59,25051,256,99,104,4281,4284,114,59,24859,59,25009,108,101,68,101,108,97,121,101,100,59,27124,1664,72,79,97,99,102,104,105,109,111,113,115,116,117,4324,4337,4343,4349,4377,4382,4433,4438,4449,4455,4533,4539,4543,256,67,99,4329,4334,72,99,121,59,17449,121,59,17448,70,84,99,121,59,17452,99,117,116,101,59,16730,640,59,97,101,105,121,4360,4361,4366,4371,4375,27324,114,111,110,59,16736,100,105,108,59,16734,114,99,59,16732,59,17441,114,59,49152,55349,56598,111,114,116,512,68,76,82,85,4394,4404,4414,4425,111,119,110,65,114,114,111,119,187,1054,101,102,116,65,114,114,111,119,187,2202,105,103,104,116,65,114,114,111,119,187,4061,112,65,114,114,111,119,59,24977,103,109,97,59,17315,97,108,108,67,105,114,99,108,101,59,25112,112,102,59,49152,55349,56650,626,4461,0,0,4464,116,59,25114,97,114,101,512,59,73,83,85,4475,4476,4489,4527,26017,110,116,101,114,115,101,99,116,105,111,110,59,25235,117,256,98,112,4495,4510,115,101,116,256,59,69,4503,4504,25231,113,117,97,108,59,25233,101,114,115,101,116,256,59,69,4520,4521,25232,113,117,97,108,59,25234,110,105,111,110,59,25236,99,114,59,49152,55349,56494,97,114,59,25286,512,98,99,109,112,4552,4571,4617,4619,256,59,115,4557,4558,25296,101,116,256,59,69,4557,4565,113,117,97,108,59,25222,256,99,104,4576,4613,101,101,100,115,512,59,69,83,84,4589,4590,4596,4607,25211,113,117,97,108,59,27312,108,97,110,116,69,113,117,97,108,59,25213,105,108,100,101,59,25215,84,104,225,3980,59,25105,384,59,101,115,4626,4627,4643,25297,114,115,101,116,256,59,69,4636,4637,25219,113,117,97,108,59,25223,101,116,187,4627,1408,72,82,83,97,99,102,104,105,111,114,115,4670,4676,4681,4693,4702,4721,4726,4767,4802,4808,4817,79,82,78,32827,222,16606,65,68,69,59,24866,256,72,99,4686,4690,99,121,59,17419,121,59,17446,256,98,117,4698,4700,59,16393,59,17316,384,97,101,121,4709,4714,4719,114,111,110,59,16740,100,105,108,59,16738,59,17442,114,59,49152,55349,56599,256,101,105,4731,4745,498,4736,0,4743,101,102,111,114,101,59,25140,97,59,17304,256,99,110,4750,4760,107,83,112,97,99,101,59,49152,8287,8202,83,112,97,99,101,59,24585,108,100,101,512,59,69,70,84,4779,4780,4786,4796,25148,113,117,97,108,59,25155,117,108,108,69,113,117,97,108,59,25157,105,108,100,101,59,25160,112,102,59,49152,55349,56651,105,112,108,101,68,111,116,59,24795,256,99,116,4822,4827,114,59,49152,55349,56495,114,111,107,59,16742,2785,4855,4878,4890,4902,0,4908,4913,0,0,0,0,0,4920,4925,4983,4997,0,5119,5124,5130,5136,256,99,114,4859,4865,117,116,101,32827,218,16602,114,256,59,111,4871,4872,24991,99,105,114,59,26953,114,483,4883,0,4886,121,59,17422,118,101,59,16748,256,105,121,4894,4899,114,99,32827,219,16603,59,17443,98,108,97,99,59,16752,114,59,49152,55349,56600,114,97,118,101,32827,217,16601,97,99,114,59,16746,256,100,105,4929,4969,101,114,256,66,80,4936,4957,256,97,114,4941,4944,114,59,16479,97,99,256,101,107,4951,4953,59,25567,101,116,59,25525,97,114,101,110,116,104,101,115,105,115,59,25565,111,110,256,59,80,4976,4977,25283,108,117,115,59,25230,256,103,112,4987,4991,111,110,59,16754,102,59,49152,55349,56652,1024,65,68,69,84,97,100,112,115,5013,5038,5048,5060,1e3,5074,5079,5107,114,114,111,119,384,59,66,68,4432,5024,5028,97,114,59,26898,111,119,110,65,114,114,111,119,59,25029,111,119,110,65,114,114,111,119,59,24981,113,117,105,108,105,98,114,105,117,109,59,26990,101,101,256,59,65,5067,5068,25253,114,114,111,119,59,24997,111,119,110,225,1011,101,114,256,76,82,5086,5096,101,102,116,65,114,114,111,119,59,24982,105,103,104,116,65,114,114,111,119,59,24983,105,256,59,108,5113,5114,17362,111,110,59,17317,105,110,103,59,16750,99,114,59,49152,55349,56496,105,108,100,101,59,16744,109,108,32827,220,16604,1152,68,98,99,100,101,102,111,115,118,5159,5164,5168,5171,5182,5253,5258,5264,5270,97,115,104,59,25259,97,114,59,27371,121,59,17426,97,115,104,256,59,108,5179,5180,25257,59,27366,256,101,114,5187,5189,59,25281,384,98,116,121,5196,5200,5242,97,114,59,24598,256,59,105,5199,5205,99,97,108,512,66,76,83,84,5217,5221,5226,5236,97,114,59,25123,105,110,101,59,16508,101,112,97,114,97,116,111,114,59,26456,105,108,100,101,59,25152,84,104,105,110,83,112,97,99,101,59,24586,114,59,49152,55349,56601,112,102,59,49152,55349,56653,99,114,59,49152,55349,56497,100,97,115,104,59,25258,640,99,101,102,111,115,5287,5292,5297,5302,5308,105,114,99,59,16756,100,103,101,59,25280,114,59,49152,55349,56602,112,102,59,49152,55349,56654,99,114,59,49152,55349,56498,512,102,105,111,115,5323,5328,5330,5336,114,59,49152,55349,56603,59,17310,112,102,59,49152,55349,56655,99,114,59,49152,55349,56499,1152,65,73,85,97,99,102,111,115,117,5361,5365,5369,5373,5380,5391,5396,5402,5408,99,121,59,17455,99,121,59,17415,99,121,59,17454,99,117,116,101,32827,221,16605,256,105,121,5385,5389,114,99,59,16758,59,17451,114,59,49152,55349,56604,112,102,59,49152,55349,56656,99,114,59,49152,55349,56500,109,108,59,16760,1024,72,97,99,100,101,102,111,115,5429,5433,5439,5451,5455,5469,5472,5476,99,121,59,17430,99,117,116,101,59,16761,256,97,121,5444,5449,114,111,110,59,16765,59,17431,111,116,59,16763,498,5460,0,5467,111,87,105,100,116,232,2777,97,59,17302,114,59,24872,112,102,59,24868,99,114,59,49152,55349,56501,3041,5507,5514,5520,0,5552,5558,5567,0,0,0,0,5574,5595,5611,5727,5741,0,5781,5787,5810,5817,0,5822,99,117,116,101,32827,225,16609,114,101,118,101,59,16643,768,59,69,100,105,117,121,5532,5533,5537,5539,5544,5549,25150,59,49152,8766,819,59,25151,114,99,32827,226,16610,116,101,32955,180,774,59,17456,108,105,103,32827,230,16614,256,59,114,178,5562,59,49152,55349,56606,114,97,118,101,32827,224,16608,256,101,112,5578,5590,256,102,112,5583,5588,115,121,109,59,24885,232,5587,104,97,59,17329,256,97,112,5599,99,256,99,108,5604,5607,114,59,16641,103,59,27199,612,5616,0,0,5642,640,59,97,100,115,118,5626,5627,5631,5633,5639,25127,110,100,59,27221,59,27228,108,111,112,101,59,27224,59,27226,896,59,101,108,109,114,115,122,5656,5657,5659,5662,5695,5711,5721,25120,59,27044,101,187,5657,115,100,256,59,97,5669,5670,25121,1121,5680,5682,5684,5686,5688,5690,5692,5694,59,27048,59,27049,59,27050,59,27051,59,27052,59,27053,59,27054,59,27055,116,256,59,118,5701,5702,25119,98,256,59,100,5708,5709,25278,59,27037,256,112,116,5716,5719,104,59,25122,187,185,97,114,114,59,25468,256,103,112,5731,5735,111,110,59,16645,102,59,49152,55349,56658,896,59,69,97,101,105,111,112,4801,5755,5757,5762,5764,5767,5770,59,27248,99,105,114,59,27247,59,25162,100,59,25163,115,59,16423,114,111,120,256,59,101,4801,5778,241,5763,105,110,103,32827,229,16613,384,99,116,121,5793,5798,5800,114,59,49152,55349,56502,59,16426,109,112,256,59,101,4801,5807,241,648,105,108,100,101,32827,227,16611,109,108,32827,228,16612,256,99,105,5826,5832,111,110,105,110,244,626,110,116,59,27153,2048,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,5869,5873,5936,5948,5955,5960,6008,6013,6112,6118,6201,6224,5901,6461,6472,6512,111,116,59,27373,256,99,114,5878,5918,107,512,99,101,112,115,5888,5893,5901,5907,111,110,103,59,25164,112,115,105,108,111,110,59,17398,114,105,109,101,59,24629,105,109,256,59,101,5914,5915,25149,113,59,25293,374,5922,5926,101,101,59,25277,101,100,256,59,103,5932,5933,25349,101,187,5933,114,107,256,59,116,4956,5943,98,114,107,59,25526,256,111,121,5889,5953,59,17457,113,117,111,59,24606,640,99,109,112,114,116,5971,5979,5985,5988,5992,97,117,115,256,59,101,266,265,112,116,121,118,59,27056,115,233,5900,110,111,245,275,384,97,104,119,5999,6001,6003,59,17330,59,24886,101,101,110,59,25196,114,59,49152,55349,56607,103,896,99,111,115,116,117,118,119,6029,6045,6067,6081,6101,6107,6110,384,97,105,117,6036,6038,6042,240,1888,114,99,59,26095,112,187,4977,384,100,112,116,6052,6056,6061,111,116,59,27136,108,117,115,59,27137,105,109,101,115,59,27138,625,6073,0,0,6078,99,117,112,59,27142,97,114,59,26117,114,105,97,110,103,108,101,256,100,117,6093,6098,111,119,110,59,26045,112,59,26035,112,108,117,115,59,27140,101,229,5188,229,5293,97,114,111,119,59,26893,384,97,107,111,6125,6182,6197,256,99,110,6130,6179,107,384,108,115,116,6138,1451,6146,111,122,101,110,103,101,59,27115,114,105,97,110,103,108,101,512,59,100,108,114,6162,6163,6168,6173,26036,111,119,110,59,26046,101,102,116,59,26050,105,103,104,116,59,26040,107,59,25635,433,6187,0,6195,434,6191,0,6193,59,26002,59,26001,52,59,26003,99,107,59,25992,256,101,111,6206,6221,256,59,113,6211,6214,49152,61,8421,117,105,118,59,49152,8801,8421,116,59,25360,512,112,116,119,120,6233,6238,6247,6252,102,59,49152,55349,56659,256,59,116,5067,6243,111,109,187,5068,116,105,101,59,25288,1536,68,72,85,86,98,100,104,109,112,116,117,118,6277,6294,6314,6331,6359,6363,6380,6399,6405,6410,6416,6433,512,76,82,108,114,6286,6288,6290,6292,59,25943,59,25940,59,25942,59,25939,640,59,68,85,100,117,6305,6306,6308,6310,6312,25936,59,25958,59,25961,59,25956,59,25959,512,76,82,108,114,6323,6325,6327,6329,59,25949,59,25946,59,25948,59,25945,896,59,72,76,82,104,108,114,6346,6347,6349,6351,6353,6355,6357,25937,59,25964,59,25955,59,25952,59,25963,59,25954,59,25951,111,120,59,27081,512,76,82,108,114,6372,6374,6376,6378,59,25941,59,25938,59,25872,59,25868,640,59,68,85,100,117,1725,6391,6393,6395,6397,59,25957,59,25960,59,25900,59,25908,105,110,117,115,59,25247,108,117,115,59,25246,105,109,101,115,59,25248,512,76,82,108,114,6425,6427,6429,6431,59,25947,59,25944,59,25880,59,25876,896,59,72,76,82,104,108,114,6448,6449,6451,6453,6455,6457,6459,25858,59,25962,59,25953,59,25950,59,25916,59,25892,59,25884,256,101,118,291,6466,98,97,114,32827,166,16550,512,99,101,105,111,6481,6486,6490,6496,114,59,49152,55349,56503,109,105,59,24655,109,256,59,101,5914,5916,108,384,59,98,104,6504,6505,6507,16476,59,27077,115,117,98,59,26568,364,6516,6526,108,256,59,101,6521,6522,24610,116,187,6522,112,384,59,69,101,303,6533,6535,59,27310,256,59,113,1756,1755,3297,6567,0,6632,6673,6677,6706,0,6711,6736,0,0,6836,0,0,6849,0,0,6945,6958,6989,6994,0,7165,0,7180,384,99,112,114,6573,6578,6621,117,116,101,59,16647,768,59,97,98,99,100,115,6591,6592,6596,6602,6613,6617,25129,110,100,59,27204,114,99,117,112,59,27209,256,97,117,6607,6610,112,59,27211,112,59,27207,111,116,59,27200,59,49152,8745,65024,256,101,111,6626,6629,116,59,24641,238,1683,512,97,101,105,117,6640,6651,6657,6661,496,6645,0,6648,115,59,27213,111,110,59,16653,100,105,108,32827,231,16615,114,99,59,16649,112,115,256,59,115,6668,6669,27212,109,59,27216,111,116,59,16651,384,100,109,110,6683,6688,6694,105,108,32955,184,429,112,116,121,118,59,27058,116,33024,162,59,101,6701,6702,16546,114,228,434,114,59,49152,55349,56608,384,99,101,105,6717,6720,6733,121,59,17479,99,107,256,59,109,6727,6728,26387,97,114,107,187,6728,59,17351,114,896,59,69,99,101,102,109,115,6751,6752,6754,6763,6820,6826,6830,26059,59,27075,384,59,101,108,6761,6762,6765,17094,113,59,25175,101,609,6772,0,0,6792,114,114,111,119,256,108,114,6780,6785,101,102,116,59,25018,105,103,104,116,59,25019,640,82,83,97,99,100,6802,6804,6806,6810,6815,187,3911,59,25800,115,116,59,25243,105,114,99,59,25242,97,115,104,59,25245,110,105,110,116,59,27152,105,100,59,27375,99,105,114,59,27074,117,98,115,256,59,117,6843,6844,26211,105,116,187,6844,748,6855,6868,6906,0,6922,111,110,256,59,101,6861,6862,16442,256,59,113,199,198,621,6873,0,0,6882,97,256,59,116,6878,6879,16428,59,16448,384,59,102,108,6888,6889,6891,25089,238,4448,101,256,109,120,6897,6902,101,110,116,187,6889,101,243,589,487,6910,0,6919,256,59,100,4795,6914,111,116,59,27245,110,244,582,384,102,114,121,6928,6932,6935,59,49152,55349,56660,111,228,596,33024,169,59,115,341,6941,114,59,24855,256,97,111,6949,6953,114,114,59,25013,115,115,59,26391,256,99,117,6962,6967,114,59,49152,55349,56504,256,98,112,6972,6980,256,59,101,6977,6978,27343,59,27345,256,59,101,6985,6986,27344,59,27346,100,111,116,59,25327,896,100,101,108,112,114,118,119,7008,7020,7031,7042,7084,7124,7161,97,114,114,256,108,114,7016,7018,59,26936,59,26933,624,7026,0,0,7029,114,59,25310,99,59,25311,97,114,114,256,59,112,7039,7040,25014,59,26941,768,59,98,99,100,111,115,7055,7056,7062,7073,7077,7080,25130,114,99,97,112,59,27208,256,97,117,7067,7070,112,59,27206,112,59,27210,111,116,59,25229,114,59,27205,59,49152,8746,65024,512,97,108,114,118,7093,7103,7134,7139,114,114,256,59,109,7100,7101,25015,59,26940,121,384,101,118,119,7111,7124,7128,113,624,7118,0,0,7122,114,101,227,7027,117,227,7029,101,101,59,25294,101,100,103,101,59,25295,101,110,32827,164,16548,101,97,114,114,111,119,256,108,114,7150,7155,101,102,116,187,7040,105,103,104,116,187,7101,101,228,7133,256,99,105,7169,7175,111,110,105,110,244,503,110,116,59,25137,108,99,116,121,59,25389,2432,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,7224,7227,7231,7261,7273,7285,7306,7326,7340,7351,7419,7423,7437,7547,7569,7595,7611,7622,7629,114,242,897,97,114,59,26981,512,103,108,114,115,7240,7245,7250,7252,103,101,114,59,24608,101,116,104,59,24888,242,4403,104,256,59,118,7258,7259,24592,187,2314,363,7265,7271,97,114,111,119,59,26895,97,227,789,256,97,121,7278,7283,114,111,110,59,16655,59,17460,384,59,97,111,818,7292,7300,256,103,114,703,7297,114,59,25034,116,115,101,113,59,27255,384,103,108,109,7313,7316,7320,32827,176,16560,116,97,59,17332,112,116,121,118,59,27057,256,105,114,7331,7336,115,104,116,59,27007,59,49152,55349,56609,97,114,256,108,114,7347,7349,187,2268,187,4126,640,97,101,103,115,118,7362,888,7382,7388,7392,109,384,59,111,115,806,7370,7380,110,100,256,59,115,806,7377,117,105,116,59,26214,97,109,109,97,59,17373,105,110,59,25330,384,59,105,111,7399,7400,7416,16631,100,101,33024,247,59,111,7399,7408,110,116,105,109,101,115,59,25287,110,248,7415,99,121,59,17490,99,623,7430,0,0,7434,114,110,59,25374,111,112,59,25357,640,108,112,116,117,119,7448,7453,7458,7497,7509,108,97,114,59,16420,102,59,49152,55349,56661,640,59,101,109,112,115,779,7469,7479,7485,7490,113,256,59,100,850,7475,111,116,59,25169,105,110,117,115,59,25144,108,117,115,59,25108,113,117,97,114,101,59,25249,98,108,101,98,97,114,119,101,100,103,229,250,110,384,97,100,104,4398,7517,7527,111,119,110,97,114,114,111,119,243,7299,97,114,112,111,111,110,256,108,114,7538,7542,101,102,244,7348,105,103,104,244,7350,354,7551,7557,107,97,114,111,247,3906,623,7562,0,0,7566,114,110,59,25375,111,112,59,25356,384,99,111,116,7576,7587,7590,256,114,121,7581,7585,59,49152,55349,56505,59,17493,108,59,27126,114,111,107,59,16657,256,100,114,7600,7604,111,116,59,25329,105,256,59,102,7610,6166,26047,256,97,104,7616,7619,114,242,1065,97,242,4006,97,110,103,108,101,59,27046,256,99,105,7634,7637,121,59,17503,103,114,97,114,114,59,26623,2304,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,7681,7689,7705,7736,1400,7740,7753,7777,7806,7845,7855,7869,7905,7978,7991,8004,8014,8026,256,68,111,7686,7476,111,244,7305,256,99,115,7694,7700,117,116,101,32827,233,16617,116,101,114,59,27246,512,97,105,111,121,7714,7719,7729,7734,114,111,110,59,16667,114,256,59,99,7725,7726,25174,32827,234,16618,108,111,110,59,25173,59,17485,111,116,59,16663,256,68,114,7745,7749,111,116,59,25170,59,49152,55349,56610,384,59,114,115,7760,7761,7767,27290,97,118,101,32827,232,16616,256,59,100,7772,7773,27286,111,116,59,27288,512,59,105,108,115,7786,7787,7794,7796,27289,110,116,101,114,115,59,25575,59,24851,256,59,100,7801,7802,27285,111,116,59,27287,384,97,112,115,7813,7817,7831,99,114,59,16659,116,121,384,59,115,118,7826,7827,7829,25093,101,116,187,7827,112,256,49,59,7837,7844,307,7841,7843,59,24580,59,24581,24579,256,103,115,7850,7852,59,16715,112,59,24578,256,103,112,7860,7864,111,110,59,16665,102,59,49152,55349,56662,384,97,108,115,7876,7886,7890,114,256,59,115,7882,7883,25301,108,59,27107,117,115,59,27249,105,384,59,108,118,7898,7899,7903,17333,111,110,187,7899,59,17397,512,99,115,117,118,7914,7923,7947,7971,256,105,111,7919,7729,114,99,187,7726,617,7929,0,0,7931,237,1352,97,110,116,256,103,108,7938,7942,116,114,187,7773,101,115,115,187,7802,384,97,101,105,7954,7958,7962,108,115,59,16445,115,116,59,25183,118,256,59,68,565,7968,68,59,27256,112,97,114,115,108,59,27109,256,68,97,7983,7987,111,116,59,25171,114,114,59,26993,384,99,100,105,7998,8001,7928,114,59,24879,111,244,850,256,97,104,8009,8011,59,17335,32827,240,16624,256,109,114,8019,8023,108,32827,235,16619,111,59,24748,384,99,105,112,8033,8036,8039,108,59,16417,115,244,1390,256,101,111,8044,8052,99,116,97,116,105,111,238,1369,110,101,110,116,105,97,108,229,1401,2529,8082,0,8094,0,8097,8103,0,0,8134,8140,0,8147,0,8166,8170,8192,0,8200,8282,108,108,105,110,103,100,111,116,115,101,241,7748,121,59,17476,109,97,108,101,59,26176,384,105,108,114,8109,8115,8129,108,105,103,59,32768,64259,617,8121,0,0,8125,103,59,32768,64256,105,103,59,32768,64260,59,49152,55349,56611,108,105,103,59,32768,64257,108,105,103,59,49152,102,106,384,97,108,116,8153,8156,8161,116,59,26221,105,103,59,32768,64258,110,115,59,26033,111,102,59,16786,496,8174,0,8179,102,59,49152,55349,56663,256,97,107,1471,8183,256,59,118,8188,8189,25300,59,27353,97,114,116,105,110,116,59,27149,256,97,111,8204,8277,256,99,115,8209,8274,945,8218,8240,8248,8261,8264,0,8272,946,8226,8229,8231,8234,8236,0,8238,32827,189,16573,59,24915,32827,188,16572,59,24917,59,24921,59,24923,435,8244,0,8246,59,24916,59,24918,692,8254,8257,0,0,8259,32827,190,16574,59,24919,59,24924,53,59,24920,438,8268,0,8270,59,24922,59,24925,56,59,24926,108,59,24644,119,110,59,25378,99,114,59,49152,55349,56507,2176,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,8322,8329,8351,8357,8368,8372,8432,8437,8442,8447,8451,8466,8504,791,8510,8530,8606,256,59,108,1613,8327,59,27276,384,99,109,112,8336,8341,8349,117,116,101,59,16885,109,97,256,59,100,8348,7386,17331,59,27270,114,101,118,101,59,16671,256,105,121,8362,8366,114,99,59,16669,59,17459,111,116,59,16673,512,59,108,113,115,1598,1602,8381,8393,384,59,113,115,1598,1612,8388,108,97,110,244,1637,512,59,99,100,108,1637,8402,8405,8421,99,59,27305,111,116,256,59,111,8412,8413,27264,256,59,108,8418,8419,27266,59,27268,256,59,101,8426,8429,49152,8923,65024,115,59,27284,114,59,49152,55349,56612,256,59,103,1651,1563,109,101,108,59,24887,99,121,59,17491,512,59,69,97,106,1626,8460,8462,8464,59,27282,59,27301,59,27300,512,69,97,101,115,8475,8477,8489,8500,59,25193,112,256,59,112,8483,8484,27274,114,111,120,187,8484,256,59,113,8494,8495,27272,256,59,113,8494,8475,105,109,59,25319,112,102,59,49152,55349,56664,256,99,105,8515,8518,114,59,24842,109,384,59,101,108,1643,8526,8528,59,27278,59,27280,33536,62,59,99,100,108,113,114,1518,8544,8554,8558,8563,8569,256,99,105,8549,8551,59,27303,114,59,27258,111,116,59,25303,80,97,114,59,27029,117,101,115,116,59,27260,640,97,100,101,108,115,8580,8554,8592,1622,8603,496,8585,0,8590,112,114,111,248,8350,114,59,27e3,113,256,108,113,1599,8598,108,101,115,243,8328,105,237,1643,256,101,110,8611,8621,114,116,110,101,113,113,59,49152,8809,65024,197,8618,1280,65,97,98,99,101,102,107,111,115,121,8644,8647,8689,8693,8698,8728,8733,8751,8808,8829,114,242,928,512,105,108,109,114,8656,8660,8663,8667,114,115,240,5252,102,187,8228,105,108,244,1705,256,100,114,8672,8676,99,121,59,17482,384,59,99,119,2292,8683,8687,105,114,59,26952,59,25005,97,114,59,24847,105,114,99,59,16677,384,97,108,114,8705,8718,8723,114,116,115,256,59,117,8713,8714,26213,105,116,187,8714,108,105,112,59,24614,99,111,110,59,25273,114,59,49152,55349,56613,115,256,101,119,8739,8745,97,114,111,119,59,26917,97,114,111,119,59,26918,640,97,109,111,112,114,8762,8766,8771,8798,8803,114,114,59,25087,116,104,116,59,25147,107,256,108,114,8777,8787,101,102,116,97,114,114,111,119,59,25001,105,103,104,116,97,114,114,111,119,59,25002,102,59,49152,55349,56665,98,97,114,59,24597,384,99,108,116,8815,8820,8824,114,59,49152,55349,56509,97,115,232,8692,114,111,107,59,16679,256,98,112,8834,8839,117,108,108,59,24643,104,101,110,187,7259,2785,8867,0,8874,0,8888,8901,8910,0,8917,8947,0,0,8952,8994,9063,9058,9087,0,9094,9130,9140,99,117,116,101,32827,237,16621,384,59,105,121,1905,8880,8885,114,99,32827,238,16622,59,17464,256,99,120,8892,8895,121,59,17461,99,108,32827,161,16545,256,102,114,927,8905,59,49152,55349,56614,114,97,118,101,32827,236,16620,512,59,105,110,111,1854,8925,8937,8942,256,105,110,8930,8934,110,116,59,27148,116,59,25133,102,105,110,59,27100,116,97,59,24873,108,105,103,59,16691,384,97,111,112,8958,8986,8989,384,99,103,116,8965,8968,8983,114,59,16683,384,101,108,112,1823,8975,8979,105,110,229,1934,97,114,244,1824,104,59,16689,102,59,25271,101,100,59,16821,640,59,99,102,111,116,1268,9004,9009,9021,9025,97,114,101,59,24837,105,110,256,59,116,9016,9017,25118,105,101,59,27101,100,111,244,8985,640,59,99,101,108,112,1879,9036,9040,9051,9057,97,108,59,25274,256,103,114,9045,9049,101,114,243,5475,227,9037,97,114,104,107,59,27159,114,111,100,59,27196,512,99,103,112,116,9071,9074,9078,9083,121,59,17489,111,110,59,16687,102,59,49152,55349,56666,97,59,17337,117,101,115,116,32827,191,16575,256,99,105,9098,9103,114,59,49152,55349,56510,110,640,59,69,100,115,118,1268,9115,9117,9121,1267,59,25337,111,116,59,25333,256,59,118,9126,9127,25332,59,25331,256,59,105,1911,9134,108,100,101,59,16681,491,9144,0,9148,99,121,59,17494,108,32827,239,16623,768,99,102,109,111,115,117,9164,9175,9180,9185,9191,9205,256,105,121,9169,9173,114,99,59,16693,59,17465,114,59,49152,55349,56615,97,116,104,59,16951,112,102,59,49152,55349,56667,483,9196,0,9201,114,59,49152,55349,56511,114,99,121,59,17496,107,99,121,59,17492,1024,97,99,102,103,104,106,111,115,9227,9238,9250,9255,9261,9265,9269,9275,112,112,97,256,59,118,9235,9236,17338,59,17392,256,101,121,9243,9248,100,105,108,59,16695,59,17466,114,59,49152,55349,56616,114,101,101,110,59,16696,99,121,59,17477,99,121,59,17500,112,102,59,49152,55349,56668,99,114,59,49152,55349,56512,2944,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,9328,9345,9350,9357,9361,9486,9533,9562,9600,9806,9822,9829,9849,9853,9882,9906,9944,10077,10088,10123,10176,10241,10258,384,97,114,116,9335,9338,9340,114,242,2502,242,917,97,105,108,59,26907,97,114,114,59,26894,256,59,103,2452,9355,59,27275,97,114,59,26978,2403,9381,0,9386,0,9393,0,0,0,0,0,9397,9402,0,9414,9416,9421,0,9465,117,116,101,59,16698,109,112,116,121,118,59,27060,114,97,238,2124,98,100,97,59,17339,103,384,59,100,108,2190,9409,9411,59,27025,229,2190,59,27269,117,111,32827,171,16555,114,1024,59,98,102,104,108,112,115,116,2201,9438,9446,9449,9451,9454,9457,9461,256,59,102,2205,9443,115,59,26911,115,59,26909,235,8786,112,59,25003,108,59,26937,105,109,59,26995,108,59,24994,384,59,97,101,9471,9472,9476,27307,105,108,59,26905,256,59,115,9481,9482,27309,59,49152,10925,65024,384,97,98,114,9493,9497,9501,114,114,59,26892,114,107,59,26482,256,97,107,9506,9516,99,256,101,107,9512,9514,59,16507,59,16475,256,101,115,9521,9523,59,27019,108,256,100,117,9529,9531,59,27023,59,27021,512,97,101,117,121,9542,9547,9558,9560,114,111,110,59,16702,256,100,105,9552,9556,105,108,59,16700,236,2224,226,9513,59,17467,512,99,113,114,115,9571,9574,9581,9597,97,59,26934,117,111,256,59,114,3609,5958,256,100,117,9586,9591,104,97,114,59,26983,115,104,97,114,59,26955,104,59,25010,640,59,102,103,113,115,9611,9612,2441,9715,9727,25188,116,640,97,104,108,114,116,9624,9636,9655,9666,9704,114,114,111,119,256,59,116,2201,9633,97,233,9462,97,114,112,111,111,110,256,100,117,9647,9652,111,119,110,187,1114,112,187,2406,101,102,116,97,114,114,111,119,115,59,25031,105,103,104,116,384,97,104,115,9677,9686,9694,114,114,111,119,256,59,115,2292,2215,97,114,112,111,111,110,243,3992,113,117,105,103,97,114,114,111,247,8688,104,114,101,101,116,105,109,101,115,59,25291,384,59,113,115,9611,2451,9722,108,97,110,244,2476,640,59,99,100,103,115,2476,9738,9741,9757,9768,99,59,27304,111,116,256,59,111,9748,9749,27263,256,59,114,9754,9755,27265,59,27267,256,59,101,9762,9765,49152,8922,65024,115,59,27283,640,97,100,101,103,115,9779,9785,9789,9801,9803,112,112,114,111,248,9414,111,116,59,25302,113,256,103,113,9795,9797,244,2441,103,116,242,9356,244,2459,105,237,2482,384,105,108,114,9813,2273,9818,115,104,116,59,27004,59,49152,55349,56617,256,59,69,2460,9827,59,27281,353,9833,9846,114,256,100,117,9650,9838,256,59,108,2405,9843,59,26986,108,107,59,25988,99,121,59,17497,640,59,97,99,104,116,2632,9864,9867,9873,9878,114,242,9665,111,114,110,101,242,7432,97,114,100,59,26987,114,105,59,26106,256,105,111,9887,9892,100,111,116,59,16704,117,115,116,256,59,97,9900,9901,25520,99,104,101,187,9901,512,69,97,101,115,9915,9917,9929,9940,59,25192,112,256,59,112,9923,9924,27273,114,111,120,187,9924,256,59,113,9934,9935,27271,256,59,113,9934,9915,105,109,59,25318,1024,97,98,110,111,112,116,119,122,9961,9972,9975,10010,10031,10049,10055,10064,256,110,114,9966,9969,103,59,26604,114,59,25085,114,235,2241,103,384,108,109,114,9983,9997,10004,101,102,116,256,97,114,2534,9991,105,103,104,116,225,2546,97,112,115,116,111,59,26620,105,103,104,116,225,2557,112,97,114,114,111,119,256,108,114,10021,10025,101,102,244,9453,105,103,104,116,59,25004,384,97,102,108,10038,10041,10045,114,59,27013,59,49152,55349,56669,117,115,59,27181,105,109,101,115,59,27188,353,10059,10063,115,116,59,25111,225,4942,384,59,101,102,10071,10072,6144,26058,110,103,101,187,10072,97,114,256,59,108,10084,10085,16424,116,59,27027,640,97,99,104,109,116,10099,10102,10108,10117,10119,114,242,2216,111,114,110,101,242,7564,97,114,256,59,100,3992,10115,59,26989,59,24590,114,105,59,25279,768,97,99,104,105,113,116,10136,10141,2624,10146,10158,10171,113,117,111,59,24633,114,59,49152,55349,56513,109,384,59,101,103,2482,10154,10156,59,27277,59,27279,256,98,117,9514,10163,111,256,59,114,3615,10169,59,24602,114,111,107,59,16706,33792,60,59,99,100,104,105,108,113,114,2091,10194,9785,10204,10208,10213,10218,10224,256,99,105,10199,10201,59,27302,114,59,27257,114,101,229,9714,109,101,115,59,25289,97,114,114,59,26998,117,101,115,116,59,27259,256,80,105,10229,10233,97,114,59,27030,384,59,101,102,10240,2349,6171,26051,114,256,100,117,10247,10253,115,104,97,114,59,26954,104,97,114,59,26982,256,101,110,10263,10273,114,116,110,101,113,113,59,49152,8808,65024,197,10270,1792,68,97,99,100,101,102,104,105,108,110,111,112,115,117,10304,10309,10370,10382,10387,10400,10405,10408,10458,10466,10468,2691,10483,10498,68,111,116,59,25146,512,99,108,112,114,10318,10322,10339,10365,114,32827,175,16559,256,101,116,10327,10329,59,26178,256,59,101,10334,10335,26400,115,101,187,10335,256,59,115,4155,10344,116,111,512,59,100,108,117,4155,10355,10359,10363,111,119,238,1164,101,102,244,2319,240,5073,107,101,114,59,26030,256,111,121,10375,10380,109,109,97,59,27177,59,17468,97,115,104,59,24596,97,115,117,114,101,100,97,110,103,108,101,187,5670,114,59,49152,55349,56618,111,59,24871,384,99,100,110,10415,10420,10441,114,111,32827,181,16565,512,59,97,99,100,5220,10429,10432,10436,115,244,5799,105,114,59,27376,111,116,32955,183,437,117,115,384,59,98,100,10450,6403,10451,25106,256,59,117,7484,10456,59,27178,355,10462,10465,112,59,27355,242,8722,240,2689,256,100,112,10473,10478,101,108,115,59,25255,102,59,49152,55349,56670,256,99,116,10488,10493,114,59,49152,55349,56514,112,111,115,187,5533,384,59,108,109,10505,10506,10509,17340,116,105,109,97,112,59,25272,3072,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,10562,10579,10622,10633,10648,10714,10729,10773,10778,10840,10845,10883,10901,10916,10920,11012,11015,11076,11135,11182,11316,11367,11388,11497,256,103,116,10567,10571,59,49152,8921,824,256,59,118,10576,3023,49152,8811,8402,384,101,108,116,10586,10610,10614,102,116,256,97,114,10593,10599,114,114,111,119,59,25037,105,103,104,116,97,114,114,111,119,59,25038,59,49152,8920,824,256,59,118,10619,3143,49152,8810,8402,105,103,104,116,97,114,114,111,119,59,25039,256,68,100,10638,10643,97,115,104,59,25263,97,115,104,59,25262,640,98,99,110,112,116,10659,10663,10668,10673,10700,108,97,187,734,117,116,101,59,16708,103,59,49152,8736,8402,640,59,69,105,111,112,3460,10684,10688,10693,10696,59,49152,10864,824,100,59,49152,8779,824,115,59,16713,114,111,248,3460,117,114,256,59,97,10707,10708,26222,108,256,59,115,10707,2872,499,10719,0,10723,112,32955,160,2871,109,112,256,59,101,3065,3072,640,97,101,111,117,121,10740,10750,10755,10768,10771,496,10745,0,10747,59,27203,111,110,59,16712,100,105,108,59,16710,110,103,256,59,100,3454,10762,111,116,59,49152,10861,824,112,59,27202,59,17469,97,115,104,59,24595,896,59,65,97,100,113,115,120,2962,10793,10797,10811,10817,10821,10832,114,114,59,25047,114,256,104,114,10803,10806,107,59,26916,256,59,111,5106,5104,111,116,59,49152,8784,824,117,105,246,2915,256,101,105,10826,10830,97,114,59,26920,237,2968,105,115,116,256,59,115,2976,2975,114,59,49152,55349,56619,512,69,101,115,116,3013,10854,10873,10876,384,59,113,115,3004,10861,3041,384,59,113,115,3004,3013,10868,108,97,110,244,3042,105,237,3050,256,59,114,2998,10881,187,2999,384,65,97,112,10890,10893,10897,114,242,10609,114,114,59,25006,97,114,59,27378,384,59,115,118,3981,10908,3980,256,59,100,10913,10914,25340,59,25338,99,121,59,17498,896,65,69,97,100,101,115,116,10935,10938,10942,10946,10949,10998,11001,114,242,10598,59,49152,8806,824,114,114,59,24986,114,59,24613,512,59,102,113,115,3131,10958,10979,10991,116,256,97,114,10964,10969,114,114,111,247,10945,105,103,104,116,97,114,114,111,247,10896,384,59,113,115,3131,10938,10986,108,97,110,244,3157,256,59,115,3157,10996,187,3126,105,237,3165,256,59,114,3125,11006,105,256,59,101,3098,3109,105,228,3472,256,112,116,11020,11025,102,59,49152,55349,56671,33152,172,59,105,110,11033,11034,11062,16556,110,512,59,69,100,118,2953,11044,11048,11054,59,49152,8953,824,111,116,59,49152,8949,824,481,2953,11059,11061,59,25335,59,25334,105,256,59,118,3256,11068,481,3256,11073,11075,59,25342,59,25341,384,97,111,114,11083,11107,11113,114,512,59,97,115,116,2939,11093,11098,11103,108,108,101,236,2939,108,59,49152,11005,8421,59,49152,8706,824,108,105,110,116,59,27156,384,59,99,101,3218,11120,11123,117,229,3237,256,59,99,3224,11128,256,59,101,3218,11133,241,3224,512,65,97,105,116,11144,11147,11165,11175,114,242,10632,114,114,384,59,99,119,11156,11157,11161,24987,59,49152,10547,824,59,49152,8605,824,103,104,116,97,114,114,111,119,187,11157,114,105,256,59,101,3275,3286,896,99,104,105,109,112,113,117,11197,11213,11225,11012,2936,11236,11247,512,59,99,101,114,3378,11206,3383,11209,117,229,3397,59,49152,55349,56515,111,114,116,621,11013,0,0,11222,97,114,225,11094,109,256,59,101,3438,11231,256,59,113,3444,3443,115,117,256,98,112,11243,11245,229,3320,229,3339,384,98,99,112,11254,11281,11289,512,59,69,101,115,11263,11264,3362,11268,25220,59,49152,10949,824,101,116,256,59,101,3355,11275,113,256,59,113,3363,11264,99,256,59,101,3378,11287,241,3384,512,59,69,101,115,11298,11299,3423,11303,25221,59,49152,10950,824,101,116,256,59,101,3416,11310,113,256,59,113,3424,11299,512,103,105,108,114,11325,11327,11333,11335,236,3031,108,100,101,32827,241,16625,231,3139,105,97,110,103,108,101,256,108,114,11346,11356,101,102,116,256,59,101,3098,11354,241,3110,105,103,104,116,256,59,101,3275,11365,241,3287,256,59,109,11372,11373,17341,384,59,101,115,11380,11381,11385,16419,114,111,59,24854,112,59,24583,1152,68,72,97,100,103,105,108,114,115,11407,11412,11417,11422,11427,11440,11446,11475,11491,97,115,104,59,25261,97,114,114,59,26884,112,59,49152,8781,8402,97,115,104,59,25260,256,101,116,11432,11436,59,49152,8805,8402,59,49152,62,8402,110,102,105,110,59,27102,384,65,101,116,11453,11457,11461,114,114,59,26882,59,49152,8804,8402,256,59,114,11466,11469,49152,60,8402,105,101,59,49152,8884,8402,256,65,116,11480,11484,114,114,59,26883,114,105,101,59,49152,8885,8402,105,109,59,49152,8764,8402,384,65,97,110,11504,11508,11522,114,114,59,25046,114,256,104,114,11514,11517,107,59,26915,256,59,111,5095,5093,101,97,114,59,26919,4691,6805,0,0,0,0,0,0,0,0,0,0,0,0,0,11565,0,11576,11592,11616,11621,11634,11652,6919,0,0,11661,11691,0,11720,11726,0,11740,11801,11819,11838,11843,256,99,115,11569,6807,117,116,101,32827,243,16627,256,105,121,11580,11589,114,256,59,99,6814,11586,32827,244,16628,59,17470,640,97,98,105,111,115,6816,11602,11607,456,11610,108,97,99,59,16721,118,59,27192,111,108,100,59,27068,108,105,103,59,16723,256,99,114,11625,11629,105,114,59,27071,59,49152,55349,56620,879,11641,0,0,11644,0,11650,110,59,17115,97,118,101,32827,242,16626,59,27073,256,98,109,11656,3572,97,114,59,27061,512,97,99,105,116,11669,11672,11685,11688,114,242,6784,256,105,114,11677,11680,114,59,27070,111,115,115,59,27067,110,229,3666,59,27072,384,97,101,105,11697,11701,11705,99,114,59,16717,103,97,59,17353,384,99,100,110,11712,11717,461,114,111,110,59,17343,59,27062,112,102,59,49152,55349,56672,384,97,101,108,11732,11735,466,114,59,27063,114,112,59,27065,896,59,97,100,105,111,115,118,11754,11755,11758,11784,11789,11792,11798,25128,114,242,6790,512,59,101,102,109,11767,11768,11778,11781,27229,114,256,59,111,11774,11775,24884,102,187,11775,32827,170,16554,32827,186,16570,103,111,102,59,25270,114,59,27222,108,111,112,101,59,27223,59,27227,384,99,108,111,11807,11809,11815,242,11777,97,115,104,32827,248,16632,108,59,25240,105,364,11823,11828,100,101,32827,245,16629,101,115,256,59,97,475,11834,115,59,27190,109,108,32827,246,16630,98,97,114,59,25405,2785,11870,0,11901,0,11904,11933,0,11938,11961,0,0,11979,3740,0,12051,0,0,12075,12220,0,12232,114,512,59,97,115,116,1027,11879,11890,3717,33024,182,59,108,11885,11886,16566,108,101,236,1027,617,11896,0,0,11899,109,59,27379,59,27389,121,59,17471,114,640,99,105,109,112,116,11915,11919,11923,6245,11927,110,116,59,16421,111,100,59,16430,105,108,59,24624,101,110,107,59,24625,114,59,49152,55349,56621,384,105,109,111,11944,11952,11956,256,59,118,11949,11950,17350,59,17365,109,97,244,2678,110,101,59,26126,384,59,116,118,11967,11968,11976,17344,99,104,102,111,114,107,187,8189,59,17366,256,97,117,11983,11999,110,256,99,107,11989,11997,107,256,59,104,8692,11995,59,24846,246,8692,115,1152,59,97,98,99,100,101,109,115,116,12019,12020,6408,12025,12029,12036,12038,12042,12046,16427,99,105,114,59,27171,105,114,59,27170,256,111,117,7488,12034,59,27173,59,27250,110,32955,177,3741,105,109,59,27174,119,111,59,27175,384,105,112,117,12057,12064,12069,110,116,105,110,116,59,27157,102,59,49152,55349,56673,110,100,32827,163,16547,1280,59,69,97,99,101,105,110,111,115,117,3784,12095,12097,12100,12103,12161,12169,12178,12158,12214,59,27315,112,59,27319,117,229,3801,256,59,99,3790,12108,768,59,97,99,101,110,115,3784,12121,12127,12134,12136,12158,112,112,114,111,248,12099,117,114,108,121,101,241,3801,241,3790,384,97,101,115,12143,12150,12154,112,112,114,111,120,59,27321,113,113,59,27317,105,109,59,25320,105,237,3807,109,101,256,59,115,12168,3758,24626,384,69,97,115,12152,12176,12154,240,12149,384,100,102,112,3820,12185,12207,384,97,108,115,12192,12197,12202,108,97,114,59,25390,105,110,101,59,25362,117,114,102,59,25363,256,59,116,3835,12212,239,3835,114,101,108,59,25264,256,99,105,12224,12229,114,59,49152,55349,56517,59,17352,110,99,115,112,59,24584,768,102,105,111,112,115,117,12250,8930,12255,12261,12267,12273,114,59,49152,55349,56622,112,102,59,49152,55349,56674,114,105,109,101,59,24663,99,114,59,49152,55349,56518,384,97,101,111,12280,12297,12307,116,256,101,105,12286,12293,114,110,105,111,110,243,1712,110,116,59,27158,115,116,256,59,101,12304,12305,16447,241,7961,244,3860,2688,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,12352,12369,12373,12377,12512,12558,12587,12615,12642,12658,12686,12806,12821,12836,12841,12888,12910,12914,12944,12976,12983,384,97,114,116,12359,12362,12364,114,242,4275,242,989,97,105,108,59,26908,97,114,242,7269,97,114,59,26980,896,99,100,101,110,113,114,116,12392,12405,12408,12415,12431,12436,12492,256,101,117,12397,12401,59,49152,8765,817,116,101,59,16725,105,227,4462,109,112,116,121,118,59,27059,103,512,59,100,101,108,4049,12425,12427,12429,59,27026,59,27045,229,4049,117,111,32827,187,16571,114,1408,59,97,98,99,102,104,108,112,115,116,119,4060,12460,12463,12471,12473,12476,12478,12480,12483,12487,12490,112,59,26997,256,59,102,4064,12468,115,59,26912,59,26931,115,59,26910,235,8797,240,10030,108,59,26949,105,109,59,26996,108,59,24995,59,24989,256,97,105,12497,12501,105,108,59,26906,111,256,59,110,12507,12508,25142,97,108,243,3870,384,97,98,114,12519,12522,12526,114,242,6117,114,107,59,26483,256,97,107,12531,12541,99,256,101,107,12537,12539,59,16509,59,16477,256,101,115,12546,12548,59,27020,108,256,100,117,12554,12556,59,27022,59,27024,512,97,101,117,121,12567,12572,12583,12585,114,111,110,59,16729,256,100,105,12577,12581,105,108,59,16727,236,4082,226,12538,59,17472,512,99,108,113,115,12596,12599,12605,12612,97,59,26935,100,104,97,114,59,26985,117,111,256,59,114,526,525,104,59,25011,384,97,99,103,12622,12639,3908,108,512,59,105,112,115,3960,12632,12635,4252,110,229,4283,97,114,244,4009,116,59,26029,384,105,108,114,12649,4131,12654,115,104,116,59,27005,59,49152,55349,56623,256,97,111,12663,12678,114,256,100,117,12669,12671,187,1147,256,59,108,4241,12676,59,26988,256,59,118,12683,12684,17345,59,17393,384,103,110,115,12693,12793,12796,104,116,768,97,104,108,114,115,116,12708,12720,12738,12760,12772,12782,114,114,111,119,256,59,116,4060,12717,97,233,12488,97,114,112,111,111,110,256,100,117,12731,12735,111,119,238,12670,112,187,4242,101,102,116,256,97,104,12746,12752,114,114,111,119,243,4074,97,114,112,111,111,110,243,1361,105,103,104,116,97,114,114,111,119,115,59,25033,113,117,105,103,97,114,114,111,247,12491,104,114,101,101,116,105,109,101,115,59,25292,103,59,17114,105,110,103,100,111,116,115,101,241,7986,384,97,104,109,12813,12816,12819,114,242,4074,97,242,1361,59,24591,111,117,115,116,256,59,97,12830,12831,25521,99,104,101,187,12831,109,105,100,59,27374,512,97,98,112,116,12850,12861,12864,12882,256,110,114,12855,12858,103,59,26605,114,59,25086,114,235,4099,384,97,102,108,12871,12874,12878,114,59,27014,59,49152,55349,56675,117,115,59,27182,105,109,101,115,59,27189,256,97,112,12893,12903,114,256,59,103,12899,12900,16425,116,59,27028,111,108,105,110,116,59,27154,97,114,242,12771,512,97,99,104,113,12923,12928,4284,12933,113,117,111,59,24634,114,59,49152,55349,56519,256,98,117,12539,12938,111,256,59,114,532,531,384,104,105,114,12951,12955,12960,114,101,229,12792,109,101,115,59,25290,105,512,59,101,102,108,12970,4185,6177,12971,26041,116,114,105,59,27086,108,117,104,97,114,59,26984,59,24862,3425,13013,13019,13023,13100,13112,13169,0,13178,13220,0,0,13292,13296,0,13352,13384,13402,13485,13489,13514,13553,0,13846,0,0,13875,99,117,116,101,59,16731,113,117,239,10170,1280,59,69,97,99,101,105,110,112,115,121,4589,13043,13045,13055,13058,13067,13071,13087,13094,13097,59,27316,496,13050,0,13052,59,27320,111,110,59,16737,117,229,4606,256,59,100,4595,13063,105,108,59,16735,114,99,59,16733,384,69,97,115,13078,13080,13083,59,27318,112,59,27322,105,109,59,25321,111,108,105,110,116,59,27155,105,237,4612,59,17473,111,116,384,59,98,101,13108,7495,13109,25285,59,27238,896,65,97,99,109,115,116,120,13126,13130,13143,13147,13150,13155,13165,114,114,59,25048,114,256,104,114,13136,13138,235,8744,256,59,111,2614,2612,116,32827,167,16551,105,59,16443,119,97,114,59,26921,109,256,105,110,13161,240,110,117,243,241,116,59,26422,114,256,59,111,13174,8277,49152,55349,56624,512,97,99,111,121,13186,13190,13201,13216,114,112,59,26223,256,104,121,13195,13199,99,121,59,17481,59,17480,114,116,621,13209,0,0,13212,105,228,5220,97,114,97,236,11887,32827,173,16557,256,103,109,13224,13236,109,97,384,59,102,118,13233,13234,13234,17347,59,17346,1024,59,100,101,103,108,110,112,114,4779,13253,13257,13262,13270,13278,13281,13286,111,116,59,27242,256,59,113,4785,4784,256,59,69,13267,13268,27294,59,27296,256,59,69,13275,13276,27293,59,27295,101,59,25158,108,117,115,59,27172,97,114,114,59,26994,97,114,242,4413,512,97,101,105,116,13304,13320,13327,13335,256,108,115,13309,13316,108,115,101,116,109,233,13162,104,112,59,27187,112,97,114,115,108,59,27108,256,100,108,5219,13332,101,59,25379,256,59,101,13340,13341,27306,256,59,115,13346,13347,27308,59,49152,10924,65024,384,102,108,112,13358,13363,13378,116,99,121,59,17484,256,59,98,13368,13369,16431,256,59,97,13374,13375,27076,114,59,25407,102,59,49152,55349,56676,97,256,100,114,13389,1026,101,115,256,59,117,13396,13397,26208,105,116,187,13397,384,99,115,117,13408,13433,13471,256,97,117,13413,13423,112,256,59,115,4488,13419,59,49152,8851,65024,112,256,59,115,4532,13429,59,49152,8852,65024,117,256,98,112,13439,13455,384,59,101,115,4503,4508,13446,101,116,256,59,101,4503,13453,241,4509,384,59,101,115,4520,4525,13462,101,116,256,59,101,4520,13469,241,4526,384,59,97,102,4475,13478,1456,114,357,13483,1457,187,4476,97,114,242,4424,512,99,101,109,116,13497,13502,13506,13509,114,59,49152,55349,56520,116,109,238,241,105,236,13333,97,114,230,4542,256,97,114,13518,13525,114,256,59,102,13524,6079,26118,256,97,110,13530,13549,105,103,104,116,256,101,112,13539,13546,112,115,105,108,111,238,7904,104,233,11951,115,187,10322,640,98,99,109,110,112,13563,13662,4617,13707,13710,1152,59,69,100,101,109,110,112,114,115,13582,13583,13585,13589,13598,13603,13612,13617,13622,25218,59,27333,111,116,59,27325,256,59,100,4570,13594,111,116,59,27331,117,108,116,59,27329,256,69,101,13608,13610,59,27339,59,25226,108,117,115,59,27327,97,114,114,59,27001,384,101,105,117,13629,13650,13653,116,384,59,101,110,13582,13637,13643,113,256,59,113,4570,13583,101,113,256,59,113,13611,13608,109,59,27335,256,98,112,13658,13660,59,27349,59,27347,99,768,59,97,99,101,110,115,4589,13676,13682,13689,13691,13094,112,112,114,111,248,13050,117,114,108,121,101,241,4606,241,4595,384,97,101,115,13698,13704,13083,112,112,114,111,248,13082,113,241,13079,103,59,26218,1664,49,50,51,59,69,100,101,104,108,109,110,112,115,13737,13740,13743,4636,13746,13748,13760,13769,13781,13786,13791,13800,13805,32827,185,16569,32827,178,16562,32827,179,16563,59,27334,256,111,115,13753,13756,116,59,27326,117,98,59,27352,256,59,100,4642,13765,111,116,59,27332,115,256,111,117,13775,13778,108,59,26569,98,59,27351,97,114,114,59,27003,117,108,116,59,27330,256,69,101,13796,13798,59,27340,59,25227,108,117,115,59,27328,384,101,105,117,13812,13833,13836,116,384,59,101,110,4636,13820,13826,113,256,59,113,4642,13746,101,113,256,59,113,13799,13796,109,59,27336,256,98,112,13841,13843,59,27348,59,27350,384,65,97,110,13852,13856,13869,114,114,59,25049,114,256,104,114,13862,13864,235,8750,256,59,111,2603,2601,119,97,114,59,26922,108,105,103,32827,223,16607,3041,13905,13917,13920,4814,13939,13945,0,13950,14018,0,0,0,0,0,14043,14083,0,14089,14188,0,0,0,14215,626,13910,0,0,13915,103,101,116,59,25366,59,17348,114,235,3679,384,97,101,121,13926,13931,13936,114,111,110,59,16741,100,105,108,59,16739,59,17474,108,114,101,99,59,25365,114,59,49152,55349,56625,512,101,105,107,111,13958,13981,14005,14012,498,13963,0,13969,101,256,52,102,4740,4737,97,384,59,115,118,13976,13977,13979,17336,121,109,59,17361,256,99,110,13986,14002,107,256,97,115,13992,13998,112,112,114,111,248,4801,105,109,187,4780,115,240,4766,256,97,115,14010,13998,240,4801,114,110,32827,254,16638,492,799,14022,8935,101,115,33152,215,59,98,100,14031,14032,14040,16599,256,59,97,6415,14037,114,59,27185,59,27184,384,101,112,115,14049,14051,14080,225,10829,512,59,98,99,102,1158,14060,14064,14068,111,116,59,25398,105,114,59,27377,256,59,111,14073,14076,49152,55349,56677,114,107,59,27354,225,13154,114,105,109,101,59,24628,384,97,105,112,14095,14098,14180,100,229,4680,896,97,100,101,109,112,115,116,14113,14157,14144,14161,14167,14172,14175,110,103,108,101,640,59,100,108,113,114,14128,14129,14134,14144,14146,26037,111,119,110,187,7611,101,102,116,256,59,101,10240,14142,241,2350,59,25180,105,103,104,116,256,59,101,12970,14155,241,4186,111,116,59,26092,105,110,117,115,59,27194,108,117,115,59,27193,98,59,27085,105,109,101,59,27195,101,122,105,117,109,59,25570,384,99,104,116,14194,14205,14209,256,114,121,14199,14203,59,49152,55349,56521,59,17478,99,121,59,17499,114,111,107,59,16743,256,105,111,14219,14222,120,244,6007,104,101,97,100,256,108,114,14231,14240,101,102,116,97,114,114,111,247,2127,105,103,104,116,97,114,114,111,119,187,3933,2304,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,14288,14291,14295,14308,14320,14332,14350,14364,14371,14388,14417,14429,14443,14505,14540,14546,14570,14582,114,242,1005,97,114,59,26979,256,99,114,14300,14306,117,116,101,32827,250,16634,242,4432,114,483,14314,0,14317,121,59,17502,118,101,59,16749,256,105,121,14325,14330,114,99,32827,251,16635,59,17475,384,97,98,104,14339,14342,14347,114,242,5037,108,97,99,59,16753,97,242,5059,256,105,114,14355,14360,115,104,116,59,27006,59,49152,55349,56626,114,97,118,101,32827,249,16633,353,14375,14385,114,256,108,114,14380,14382,187,2391,187,4227,108,107,59,25984,256,99,116,14393,14413,623,14399,0,0,14410,114,110,256,59,101,14405,14406,25372,114,187,14406,111,112,59,25359,114,105,59,26104,256,97,108,14422,14426,99,114,59,16747,32955,168,841,256,103,112,14434,14438,111,110,59,16755,102,59,49152,55349,56678,768,97,100,104,108,115,117,4427,14456,14461,4978,14481,14496,111,119,110,225,5043,97,114,112,111,111,110,256,108,114,14472,14476,101,102,244,14381,105,103,104,244,14383,105,384,59,104,108,14489,14490,14492,17349,187,5114,111,110,187,14490,112,97,114,114,111,119,115,59,25032,384,99,105,116,14512,14532,14536,623,14518,0,0,14529,114,110,256,59,101,14524,14525,25373,114,187,14525,111,112,59,25358,110,103,59,16751,114,105,59,26105,99,114,59,49152,55349,56522,384,100,105,114,14553,14557,14562,111,116,59,25328,108,100,101,59,16745,105,256,59,102,14128,14568,187,6163,256,97,109,14575,14578,114,242,14504,108,32827,252,16636,97,110,103,108,101,59,27047,1920,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,14620,14623,14633,14637,14773,14776,14781,14815,14820,14824,14835,14841,14845,14849,14880,114,242,1015,97,114,256,59,118,14630,14631,27368,59,27369,97,115,232,993,256,110,114,14642,14647,103,114,116,59,27036,896,101,107,110,112,114,115,116,13539,14662,14667,14674,14685,14692,14742,97,112,112,225,9237,111,116,104,105,110,231,7830,384,104,105,114,13547,11976,14681,111,112,244,12213,256,59,104,5047,14690,239,12685,256,105,117,14697,14701,103,109,225,13235,256,98,112,14706,14724,115,101,116,110,101,113,256,59,113,14717,14720,49152,8842,65024,59,49152,10955,65024,115,101,116,110,101,113,256,59,113,14735,14738,49152,8843,65024,59,49152,10956,65024,256,104,114,14747,14751,101,116,225,13980,105,97,110,103,108,101,256,108,114,14762,14767,101,102,116,187,2341,105,103,104,116,187,4177,121,59,17458,97,115,104,187,4150,384,101,108,114,14788,14802,14807,384,59,98,101,11754,14795,14799,97,114,59,25275,113,59,25178,108,105,112,59,25326,256,98,116,14812,5224,97,242,5225,114,59,49152,55349,56627,116,114,233,14766,115,117,256,98,112,14831,14833,187,3356,187,3417,112,102,59,49152,55349,56679,114,111,240,3835,116,114,233,14772,256,99,117,14854,14859,114,59,49152,55349,56523,256,98,112,14864,14872,110,256,69,101,14720,14870,187,14718,110,256,69,101,14738,14878,187,14736,105,103,122,97,103,59,27034,896,99,101,102,111,112,114,115,14902,14907,14934,14939,14932,14945,14954,105,114,99,59,16757,256,100,105,14912,14929,256,98,103,14917,14921,97,114,59,27231,101,256,59,113,5626,14927,59,25177,101,114,112,59,24856,114,59,49152,55349,56628,112,102,59,49152,55349,56680,256,59,101,5241,14950,97,116,232,5241,99,114,59,49152,55349,56524,2787,6030,14983,0,14987,0,14992,15003,0,0,15005,15016,15019,15023,0,0,15043,15054,0,15064,6108,6111,116,114,233,6097,114,59,49152,55349,56629,256,65,97,14996,14999,114,242,963,114,242,2550,59,17342,256,65,97,15009,15012,114,242,952,114,242,2539,97,240,10003,105,115,59,25339,384,100,112,116,6052,15029,15038,256,102,108,15034,6057,59,49152,55349,56681,105,109,229,6066,256,65,97,15047,15050,114,242,974,114,242,2561,256,99,113,15058,6072,114,59,49152,55349,56525,256,112,116,6102,15068,114,233,6100,1024,97,99,101,102,105,111,115,117,15088,15101,15112,15116,15121,15125,15131,15137,99,256,117,121,15094,15099,116,101,32827,253,16637,59,17487,256,105,121,15106,15110,114,99,59,16759,59,17483,110,32827,165,16549,114,59,49152,55349,56630,99,121,59,17495,112,102,59,49152,55349,56682,99,114,59,49152,55349,56526,256,99,109,15142,15145,121,59,17486,108,32827,255,16639,1280,97,99,100,101,102,104,105,111,115,119,15170,15176,15188,15192,15204,15209,15213,15220,15226,15232,99,117,116,101,59,16762,256,97,121,15181,15186,114,111,110,59,16766,59,17463,111,116,59,16764,256,101,116,15197,15201,116,114,230,5471,97,59,17334,114,59,49152,55349,56631,99,121,59,17462,103,114,97,114,114,59,25053,112,102,59,49152,55349,56683,99,114,59,49152,55349,56527,256,106,110,15237,15239,59,24589,106,59,24588])}));n(wx);var _x=r((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=new Uint16Array([512,97,103,108,113,9,21,24,27,621,15,0,0,18,112,59,16422,111,115,59,16423,116,59,16446,116,59,16444,117,111,116,59,16418])}));n(_x);var Ex=r((function(t,e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(t){var e;return t>=55296&&t<=57343||t>1114111?65533:null!==(e=r.get(t))&&void 0!==e?e:t}e.fromCodePoint=null!==(n=String.fromCodePoint)&&void 0!==n?n:function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)},e.replaceCodePoint=i,e.default=function(t){return(0,e.fromCodePoint)(i(t))}}));n(Ex);Ex.replaceCodePoint,Ex.fromCodePoint;var Cx=r((function(t,n){var r=e&&e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.decodeXML=n.decodeHTMLStrict=n.decodeHTML=n.determineBranch=n.BinTrieFlags=n.fromCodePoint=n.replaceCodePoint=n.decodeCodePoint=n.xmlDecodeTree=n.htmlDecodeTree=void 0;var i=r(wx);n.htmlDecodeTree=i.default;var a=r(_x);n.xmlDecodeTree=a.default;var o=r(Ex);n.decodeCodePoint=o.default;var s,c,l=Ex;function A(t){return function(e,n){for(var r="",i=0,a=0;(a=e.indexOf("&",a))>=0;)if(r+=e.slice(i,a),i=a,a+=1,e.charCodeAt(a)!==s.NUM){for(var l=0,A=1,h=0,f=t[h];a<e.length&&!((h=u(t,f,h+1,e.charCodeAt(a)))<0);a++,A++){var d=(f=t[h])&c.VALUE_LENGTH;if(d){var p;if(n&&e.charCodeAt(a)!==s.SEMI||(l=h,A=0),0===(p=(d>>14)-1))break;h+=p}}if(0!==l)r+=1===(p=(t[l]&c.VALUE_LENGTH)>>14)?String.fromCharCode(t[l]&~c.VALUE_LENGTH):2===p?String.fromCharCode(t[l+1]):String.fromCharCode(t[l+1],t[l+2]),i=a-A+1}else{var g=a+1,m=10,y=e.charCodeAt(g);(y|s.To_LOWER_BIT)===s.LOWER_X&&(m=16,a+=1,g+=1);do{y=e.charCodeAt(++a)}while(y>=s.ZERO&&y<=s.NINE||16===m&&(y|s.To_LOWER_BIT)>=s.LOWER_A&&(y|s.To_LOWER_BIT)<=s.LOWER_F);if(g!==a){var v=e.substring(g,a),b=parseInt(v,m);if(e.charCodeAt(a)===s.SEMI)a+=1;else if(n)continue;r+=(0,o.default)(b),i=a}}return r+e.slice(i)}}function u(t,e,n,r){var i=(e&c.BRANCH_LENGTH)>>7,a=e&c.JUMP_TABLE;if(0===i)return 0!==a&&r===a?n:-1;if(a){var o=r-a;return o<0||o>i?-1:t[n+o]-1}for(var s=n,l=s+i-1;s<=l;){var A=s+l>>>1,u=t[A];if(u<r)s=A+1;else{if(!(u>r))return t[A+i];l=A-1}}return-1}Object.defineProperty(n,"replaceCodePoint",{enumerable:!0,get:function(){return l.replaceCodePoint}}),Object.defineProperty(n,"fromCodePoint",{enumerable:!0,get:function(){return l.fromCodePoint}}),function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.To_LOWER_BIT=32]="To_LOWER_BIT"}(s||(s={})),function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"}(c=n.BinTrieFlags||(n.BinTrieFlags={})),n.determineBranch=u;var h=A(i.default),f=A(a.default);n.decodeHTML=function(t){return h(t,!1)},n.decodeHTMLStrict=function(t){return h(t,!0)},n.decodeXML=function(t){return f(t,!0)}}));n(Cx);Cx.decodeXML,Cx.decodeHTMLStrict,Cx.decodeHTML;var xx,Bx,Tx,kx,Sx,Ix=Cx.determineBranch,Nx=Cx.BinTrieFlags,Mx=Cx.fromCodePoint,Fx=Cx.replaceCodePoint,Dx=(Cx.decodeCodePoint,Cx.xmlDecodeTree),Lx=Cx.htmlDecodeTree;!function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"}(xx||(xx={})),function(t){t.TYPE="type",t.ACTION="action",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"}(Bx||(Bx={})),function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"}(Tx||(Tx={})),function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="strike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"}(kx||(kx={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SECTION=94]="SECTION",t[t.SELECT=95]="SELECT",t[t.SOURCE=96]="SOURCE",t[t.SMALL=97]="SMALL",t[t.SPAN=98]="SPAN",t[t.STRIKE=99]="STRIKE",t[t.STRONG=100]="STRONG",t[t.STYLE=101]="STYLE",t[t.SUB=102]="SUB",t[t.SUMMARY=103]="SUMMARY",t[t.SUP=104]="SUP",t[t.TABLE=105]="TABLE",t[t.TBODY=106]="TBODY",t[t.TEMPLATE=107]="TEMPLATE",t[t.TEXTAREA=108]="TEXTAREA",t[t.TFOOT=109]="TFOOT",t[t.TD=110]="TD",t[t.TH=111]="TH",t[t.THEAD=112]="THEAD",t[t.TITLE=113]="TITLE",t[t.TR=114]="TR",t[t.TRACK=115]="TRACK",t[t.TT=116]="TT",t[t.U=117]="U",t[t.UL=118]="UL",t[t.SVG=119]="SVG",t[t.VAR=120]="VAR",t[t.WBR=121]="WBR",t[t.XMP=122]="XMP"}(Sx||(Sx={}));const Ox=new Map([[kx.A,Sx.A],[kx.ADDRESS,Sx.ADDRESS],[kx.ANNOTATION_XML,Sx.ANNOTATION_XML],[kx.APPLET,Sx.APPLET],[kx.AREA,Sx.AREA],[kx.ARTICLE,Sx.ARTICLE],[kx.ASIDE,Sx.ASIDE],[kx.B,Sx.B],[kx.BASE,Sx.BASE],[kx.BASEFONT,Sx.BASEFONT],[kx.BGSOUND,Sx.BGSOUND],[kx.BIG,Sx.BIG],[kx.BLOCKQUOTE,Sx.BLOCKQUOTE],[kx.BODY,Sx.BODY],[kx.BR,Sx.BR],[kx.BUTTON,Sx.BUTTON],[kx.CAPTION,Sx.CAPTION],[kx.CENTER,Sx.CENTER],[kx.CODE,Sx.CODE],[kx.COL,Sx.COL],[kx.COLGROUP,Sx.COLGROUP],[kx.DD,Sx.DD],[kx.DESC,Sx.DESC],[kx.DETAILS,Sx.DETAILS],[kx.DIALOG,Sx.DIALOG],[kx.DIR,Sx.DIR],[kx.DIV,Sx.DIV],[kx.DL,Sx.DL],[kx.DT,Sx.DT],[kx.EM,Sx.EM],[kx.EMBED,Sx.EMBED],[kx.FIELDSET,Sx.FIELDSET],[kx.FIGCAPTION,Sx.FIGCAPTION],[kx.FIGURE,Sx.FIGURE],[kx.FONT,Sx.FONT],[kx.FOOTER,Sx.FOOTER],[kx.FOREIGN_OBJECT,Sx.FOREIGN_OBJECT],[kx.FORM,Sx.FORM],[kx.FRAME,Sx.FRAME],[kx.FRAMESET,Sx.FRAMESET],[kx.H1,Sx.H1],[kx.H2,Sx.H2],[kx.H3,Sx.H3],[kx.H4,Sx.H4],[kx.H5,Sx.H5],[kx.H6,Sx.H6],[kx.HEAD,Sx.HEAD],[kx.HEADER,Sx.HEADER],[kx.HGROUP,Sx.HGROUP],[kx.HR,Sx.HR],[kx.HTML,Sx.HTML],[kx.I,Sx.I],[kx.IMG,Sx.IMG],[kx.IMAGE,Sx.IMAGE],[kx.INPUT,Sx.INPUT],[kx.IFRAME,Sx.IFRAME],[kx.KEYGEN,Sx.KEYGEN],[kx.LABEL,Sx.LABEL],[kx.LI,Sx.LI],[kx.LINK,Sx.LINK],[kx.LISTING,Sx.LISTING],[kx.MAIN,Sx.MAIN],[kx.MALIGNMARK,Sx.MALIGNMARK],[kx.MARQUEE,Sx.MARQUEE],[kx.MATH,Sx.MATH],[kx.MENU,Sx.MENU],[kx.META,Sx.META],[kx.MGLYPH,Sx.MGLYPH],[kx.MI,Sx.MI],[kx.MO,Sx.MO],[kx.MN,Sx.MN],[kx.MS,Sx.MS],[kx.MTEXT,Sx.MTEXT],[kx.NAV,Sx.NAV],[kx.NOBR,Sx.NOBR],[kx.NOFRAMES,Sx.NOFRAMES],[kx.NOEMBED,Sx.NOEMBED],[kx.NOSCRIPT,Sx.NOSCRIPT],[kx.OBJECT,Sx.OBJECT],[kx.OL,Sx.OL],[kx.OPTGROUP,Sx.OPTGROUP],[kx.OPTION,Sx.OPTION],[kx.P,Sx.P],[kx.PARAM,Sx.PARAM],[kx.PLAINTEXT,Sx.PLAINTEXT],[kx.PRE,Sx.PRE],[kx.RB,Sx.RB],[kx.RP,Sx.RP],[kx.RT,Sx.RT],[kx.RTC,Sx.RTC],[kx.RUBY,Sx.RUBY],[kx.S,Sx.S],[kx.SCRIPT,Sx.SCRIPT],[kx.SECTION,Sx.SECTION],[kx.SELECT,Sx.SELECT],[kx.SOURCE,Sx.SOURCE],[kx.SMALL,Sx.SMALL],[kx.SPAN,Sx.SPAN],[kx.STRIKE,Sx.STRIKE],[kx.STRONG,Sx.STRONG],[kx.STYLE,Sx.STYLE],[kx.SUB,Sx.SUB],[kx.SUMMARY,Sx.SUMMARY],[kx.SUP,Sx.SUP],[kx.TABLE,Sx.TABLE],[kx.TBODY,Sx.TBODY],[kx.TEMPLATE,Sx.TEMPLATE],[kx.TEXTAREA,Sx.TEXTAREA],[kx.TFOOT,Sx.TFOOT],[kx.TD,Sx.TD],[kx.TH,Sx.TH],[kx.THEAD,Sx.THEAD],[kx.TITLE,Sx.TITLE],[kx.TR,Sx.TR],[kx.TRACK,Sx.TRACK],[kx.TT,Sx.TT],[kx.U,Sx.U],[kx.UL,Sx.UL],[kx.SVG,Sx.SVG],[kx.VAR,Sx.VAR],[kx.WBR,Sx.WBR],[kx.XMP,Sx.XMP]]);function Rx(t){var e;return null!==(e=Ox.get(t))&&void 0!==e?e:Sx.UNKNOWN}const Ux=Sx,Px={[xx.HTML]:new Set([Ux.ADDRESS,Ux.APPLET,Ux.AREA,Ux.ARTICLE,Ux.ASIDE,Ux.BASE,Ux.BASEFONT,Ux.BGSOUND,Ux.BLOCKQUOTE,Ux.BODY,Ux.BR,Ux.BUTTON,Ux.CAPTION,Ux.CENTER,Ux.COL,Ux.COLGROUP,Ux.DD,Ux.DETAILS,Ux.DIR,Ux.DIV,Ux.DL,Ux.DT,Ux.EMBED,Ux.FIELDSET,Ux.FIGCAPTION,Ux.FIGURE,Ux.FOOTER,Ux.FORM,Ux.FRAME,Ux.FRAMESET,Ux.H1,Ux.H2,Ux.H3,Ux.H4,Ux.H5,Ux.H6,Ux.HEAD,Ux.HEADER,Ux.HGROUP,Ux.HR,Ux.HTML,Ux.IFRAME,Ux.IMG,Ux.INPUT,Ux.LI,Ux.LINK,Ux.LISTING,Ux.MAIN,Ux.MARQUEE,Ux.MENU,Ux.META,Ux.NAV,Ux.NOEMBED,Ux.NOFRAMES,Ux.NOSCRIPT,Ux.OBJECT,Ux.OL,Ux.P,Ux.PARAM,Ux.PLAINTEXT,Ux.PRE,Ux.SCRIPT,Ux.SECTION,Ux.SELECT,Ux.SOURCE,Ux.STYLE,Ux.SUMMARY,Ux.TABLE,Ux.TBODY,Ux.TD,Ux.TEMPLATE,Ux.TEXTAREA,Ux.TFOOT,Ux.TH,Ux.THEAD,Ux.TITLE,Ux.TR,Ux.TRACK,Ux.UL,Ux.WBR,Ux.XMP]),[xx.MATHML]:new Set([Ux.MI,Ux.MO,Ux.MN,Ux.MS,Ux.MTEXT,Ux.ANNOTATION_XML]),[xx.SVG]:new Set([Ux.TITLE,Ux.FOREIGN_OBJECT,Ux.DESC]),[xx.XLINK]:new Set,[xx.XML]:new Set,[xx.XMLNS]:new Set};function Qx(t){return t===Ux.H1||t===Ux.H2||t===Ux.H3||t===Ux.H4||t===Ux.H5||t===Ux.H6}const Hx=new Set([kx.STYLE,kx.SCRIPT,kx.XMP,kx.IFRAME,kx.NOEMBED,kx.NOFRAMES,kx.PLAINTEXT]);const Gx=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var jx;!function(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",t[t.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",t[t.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",t[t.DECIMAL_CHARACTER_REFERENCE_START=76]="DECIMAL_CHARACTER_REFERENCE_START",t[t.HEXADEMICAL_CHARACTER_REFERENCE=77]="HEXADEMICAL_CHARACTER_REFERENCE",t[t.DECIMAL_CHARACTER_REFERENCE=78]="DECIMAL_CHARACTER_REFERENCE",t[t.NUMERIC_CHARACTER_REFERENCE_END=79]="NUMERIC_CHARACTER_REFERENCE_END"}(jx||(jx={}));const Kx={DATA:jx.DATA,RCDATA:jx.RCDATA,RAWTEXT:jx.RAWTEXT,SCRIPT_DATA:jx.SCRIPT_DATA,PLAINTEXT:jx.PLAINTEXT,CDATA_SECTION:jx.CDATA_SECTION};function $x(t){return t>=sx.DIGIT_0&&t<=sx.DIGIT_9}function Yx(t){return t>=sx.LATIN_CAPITAL_A&&t<=sx.LATIN_CAPITAL_Z}function Vx(t){return function(t){return t>=sx.LATIN_SMALL_A&&t<=sx.LATIN_SMALL_Z}(t)||Yx(t)}function zx(t){return Vx(t)||$x(t)}function Wx(t){return t>=sx.LATIN_CAPITAL_A&&t<=sx.LATIN_CAPITAL_F}function qx(t){return t>=sx.LATIN_SMALL_A&&t<=sx.LATIN_SMALL_F}function Xx(t){return t+32}function Jx(t){return t===sx.SPACE||t===sx.LINE_FEED||t===sx.TABULATION||t===sx.FORM_FEED}function Zx(t){return Jx(t)||t===sx.SOLIDUS||t===sx.GREATER_THAN_SIGN}class tB{constructor(t,e){this.options=t,this.handler=e,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=jx.DATA,this.returnState=jx.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new yx(e),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var e,n;null===(n=(e=this.handler).onParseError)||void 0===n||n.call(e,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==t||t())}write(t,e,n){this.active=!0,this.preprocessor.write(t,e),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t){this.state=t,this._unconsume(1)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let e=0;e<t;e++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,e){return!!this.preprocessor.startsWith(t,e)&&(this._advanceBy(t.length-1),!0)}_createStartTagToken(){this.currentToken={type:vx.START_TAG,tagName:"",tagID:Sx.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:vx.END_TAG,tagName:"",tagID:Sx.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:vx.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:vx.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,e){this.currentCharacterToken={type:t,chars:e,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,e;const n=this.currentToken;if(null===bx(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(t=(e=n.location).attrs)&&void 0!==t?t:e.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(mx.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Rx(t.tagName),t.type===vx.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(mx.endTagWithAttributes),t.selfClosing&&this._err(mx.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case vx.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case vx.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case vx.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:vx.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,e){if(this.currentCharacterToken){if(this.currentCharacterToken.type===t)return void(this.currentCharacterToken.chars+=e);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(t,e)}_emitCodePoint(t){let e=vx.CHARACTER;Jx(t)?e=vx.WHITESPACE_CHARACTER:t===sx.NULL&&(e=vx.NULL_CHARACTER),this._appendCharToCurrentCharacterToken(e,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(vx.CHARACTER,t)}_matchNamedCharacterReference(t){let e=null,n=0,r=!1;for(let a=0,o=Lx[0];a>=0&&(a=Ix(Lx,o,a+1,t),!(a<0));t=this._consume()){n+=1,o=Lx[a];const s=o&Nx.VALUE_LENGTH;if(s){const o=(s>>14)-1;if(t!==sx.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((i=this.preprocessor.peek(1))===sx.EQUALS_SIGN||zx(i))?(e=[sx.AMPERSAND],a+=o):(e=0===o?[Lx[a]&~Nx.VALUE_LENGTH]:1===o?[Lx[++a]]:[Lx[++a],Lx[++a]],n=0,r=t!==sx.SEMICOLON),0===o){this._consume();break}}}var i;return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(mx.missingSemicolonAfterCharacterReference),this._unconsume(1),e}_isCharacterReferenceInAttribute(){return this.returnState===jx.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===jx.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===jx.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case jx.DATA:this._stateData(t);break;case jx.RCDATA:this._stateRcdata(t);break;case jx.RAWTEXT:this._stateRawtext(t);break;case jx.SCRIPT_DATA:this._stateScriptData(t);break;case jx.PLAINTEXT:this._statePlaintext(t);break;case jx.TAG_OPEN:this._stateTagOpen(t);break;case jx.END_TAG_OPEN:this._stateEndTagOpen(t);break;case jx.TAG_NAME:this._stateTagName(t);break;case jx.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(t);break;case jx.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(t);break;case jx.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(t);break;case jx.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(t);break;case jx.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(t);break;case jx.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(t);break;case jx.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(t);break;case jx.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(t);break;case jx.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(t);break;case jx.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(t);break;case jx.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(t);break;case jx.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(t);break;case jx.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(t);break;case jx.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(t);break;case jx.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(t);break;case jx.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(t);break;case jx.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(t);break;case jx.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(t);break;case jx.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(t);break;case jx.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(t);break;case jx.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(t);break;case jx.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(t);break;case jx.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(t);break;case jx.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(t);break;case jx.ATTRIBUTE_NAME:this._stateAttributeName(t);break;case jx.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(t);break;case jx.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(t);break;case jx.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(t);break;case jx.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(t);break;case jx.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(t);break;case jx.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(t);break;case jx.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(t);break;case jx.BOGUS_COMMENT:this._stateBogusComment(t);break;case jx.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(t);break;case jx.COMMENT_START:this._stateCommentStart(t);break;case jx.COMMENT_START_DASH:this._stateCommentStartDash(t);break;case jx.COMMENT:this._stateComment(t);break;case jx.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(t);break;case jx.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(t);break;case jx.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(t);break;case jx.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(t);break;case jx.COMMENT_END_DASH:this._stateCommentEndDash(t);break;case jx.COMMENT_END:this._stateCommentEnd(t);break;case jx.COMMENT_END_BANG:this._stateCommentEndBang(t);break;case jx.DOCTYPE:this._stateDoctype(t);break;case jx.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(t);break;case jx.DOCTYPE_NAME:this._stateDoctypeName(t);break;case jx.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(t);break;case jx.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(t);break;case jx.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(t);break;case jx.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(t);break;case jx.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(t);break;case jx.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(t);break;case jx.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break;case jx.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(t);break;case jx.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(t);break;case jx.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(t);break;case jx.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(t);break;case jx.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(t);break;case jx.BOGUS_DOCTYPE:this._stateBogusDoctype(t);break;case jx.CDATA_SECTION:this._stateCdataSection(t);break;case jx.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(t);break;case jx.CDATA_SECTION_END:this._stateCdataSectionEnd(t);break;case jx.CHARACTER_REFERENCE:this._stateCharacterReference(t);break;case jx.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(t);break;case jx.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(t);break;case jx.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(t);break;case jx.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(t);break;case jx.DECIMAL_CHARACTER_REFERENCE_START:this._stateDecimalCharacterReferenceStart(t);break;case jx.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(t);break;case jx.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(t);break;case jx.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd();break;default:throw new Error("Unknown state")}}_stateData(t){switch(t){case sx.LESS_THAN_SIGN:this.state=jx.TAG_OPEN;break;case sx.AMPERSAND:this.returnState=jx.DATA,this.state=jx.CHARACTER_REFERENCE;break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this._emitCodePoint(t);break;case sx.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case sx.AMPERSAND:this.returnState=jx.RCDATA,this.state=jx.CHARACTER_REFERENCE;break;case sx.LESS_THAN_SIGN:this.state=jx.RCDATA_LESS_THAN_SIGN;break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this._emitChars("<22>");break;case sx.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case sx.LESS_THAN_SIGN:this.state=jx.RAWTEXT_LESS_THAN_SIGN;break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this._emitChars("<22>");break;case sx.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case sx.LESS_THAN_SIGN:this.state=jx.SCRIPT_DATA_LESS_THAN_SIGN;break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this._emitChars("<22>");break;case sx.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case sx.NULL:this._err(mx.unexpectedNullCharacter),this._emitChars("<22>");break;case sx.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Vx(t))this._createStartTagToken(),this.state=jx.TAG_NAME,this._stateTagName(t);else switch(t){case sx.EXCLAMATION_MARK:this.state=jx.MARKUP_DECLARATION_OPEN;break;case sx.SOLIDUS:this.state=jx.END_TAG_OPEN;break;case sx.QUESTION_MARK:this._err(mx.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=jx.BOGUS_COMMENT,this._stateBogusComment(t);break;case sx.EOF:this._err(mx.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(mx.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=jx.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Vx(t))this._createEndTagToken(),this.state=jx.TAG_NAME,this._stateTagName(t);else switch(t){case sx.GREATER_THAN_SIGN:this._err(mx.missingEndTagName),this.state=jx.DATA;break;case sx.EOF:this._err(mx.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(mx.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=jx.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const e=this.currentToken;switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:this.state=jx.BEFORE_ATTRIBUTE_NAME;break;case sx.SOLIDUS:this.state=jx.SELF_CLOSING_START_TAG;break;case sx.GREATER_THAN_SIGN:this.state=jx.DATA,this.emitCurrentTagToken();break;case sx.NULL:this._err(mx.unexpectedNullCharacter),e.tagName+="<22>";break;case sx.EOF:this._err(mx.eofInTag),this._emitEOFToken();break;default:e.tagName+=String.fromCodePoint(Yx(t)?Xx(t):t)}}_stateRcdataLessThanSign(t){t===sx.SOLIDUS?this.state=jx.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=jx.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Vx(t)?(this.state=jx.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=jx.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=jx.BEFORE_ATTRIBUTE_NAME,!1;case sx.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=jx.SELF_CLOSING_START_TAG,!1;case sx.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=jx.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=jx.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===sx.SOLIDUS?this.state=jx.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=jx.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Vx(t)?(this.state=jx.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=jx.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=jx.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case sx.SOLIDUS:this.state=jx.SCRIPT_DATA_END_TAG_OPEN;break;case sx.EXCLAMATION_MARK:this.state=jx.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=jx.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Vx(t)?(this.state=jx.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=jx.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=jx.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===sx.HYPHEN_MINUS?(this.state=jx.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=jx.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===sx.HYPHEN_MINUS?(this.state=jx.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=jx.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case sx.HYPHEN_MINUS:this.state=jx.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case sx.LESS_THAN_SIGN:this.state=jx.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this._emitChars("<22>");break;case sx.EOF:this._err(mx.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case sx.HYPHEN_MINUS:this.state=jx.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case sx.LESS_THAN_SIGN:this.state=jx.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this.state=jx.SCRIPT_DATA_ESCAPED,this._emitChars("<22>");break;case sx.EOF:this._err(mx.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=jx.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case sx.HYPHEN_MINUS:this._emitChars("-");break;case sx.LESS_THAN_SIGN:this.state=jx.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case sx.GREATER_THAN_SIGN:this.state=jx.SCRIPT_DATA,this._emitChars(">");break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this.state=jx.SCRIPT_DATA_ESCAPED,this._emitChars("<22>");break;case sx.EOF:this._err(mx.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=jx.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===sx.SOLIDUS?this.state=jx.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Vx(t)?(this._emitChars("<"),this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=jx.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Vx(t)?(this.state=jx.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=jx.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=jx.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(ux,!1)&&Zx(this.preprocessor.peek(ux.length))){this._emitCodePoint(t);for(let t=0;t<ux.length;t++)this._emitCodePoint(this._consume());this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=jx.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case sx.HYPHEN_MINUS:this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case sx.LESS_THAN_SIGN:this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this._emitChars("<22>");break;case sx.EOF:this._err(mx.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case sx.HYPHEN_MINUS:this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case sx.LESS_THAN_SIGN:this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("<22>");break;case sx.EOF:this._err(mx.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case sx.HYPHEN_MINUS:this._emitChars("-");break;case sx.LESS_THAN_SIGN:this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case sx.GREATER_THAN_SIGN:this.state=jx.SCRIPT_DATA,this._emitChars(">");break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("<22>");break;case sx.EOF:this._err(mx.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===sx.SOLIDUS?(this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(ux,!1)&&Zx(this.preprocessor.peek(ux.length))){this._emitCodePoint(t);for(let t=0;t<ux.length;t++)this._emitCodePoint(this._consume());this.state=jx.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=jx.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:break;case sx.SOLIDUS:case sx.GREATER_THAN_SIGN:case sx.EOF:this.state=jx.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break;case sx.EQUALS_SIGN:this._err(mx.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=jx.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=jx.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:case sx.SOLIDUS:case sx.GREATER_THAN_SIGN:case sx.EOF:this._leaveAttrName(),this.state=jx.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break;case sx.EQUALS_SIGN:this._leaveAttrName(),this.state=jx.BEFORE_ATTRIBUTE_VALUE;break;case sx.QUOTATION_MARK:case sx.APOSTROPHE:case sx.LESS_THAN_SIGN:this._err(mx.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this.currentAttr.name+="<22>";break;default:this.currentAttr.name+=String.fromCodePoint(Yx(t)?Xx(t):t)}}_stateAfterAttributeName(t){switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:break;case sx.SOLIDUS:this.state=jx.SELF_CLOSING_START_TAG;break;case sx.EQUALS_SIGN:this.state=jx.BEFORE_ATTRIBUTE_VALUE;break;case sx.GREATER_THAN_SIGN:this.state=jx.DATA,this.emitCurrentTagToken();break;case sx.EOF:this._err(mx.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=jx.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:break;case sx.QUOTATION_MARK:this.state=jx.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case sx.APOSTROPHE:this.state=jx.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case sx.GREATER_THAN_SIGN:this._err(mx.missingAttributeValue),this.state=jx.DATA,this.emitCurrentTagToken();break;default:this.state=jx.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case sx.QUOTATION_MARK:this.state=jx.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case sx.AMPERSAND:this.returnState=jx.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=jx.CHARACTER_REFERENCE;break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this.currentAttr.value+="<22>";break;case sx.EOF:this._err(mx.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case sx.APOSTROPHE:this.state=jx.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case sx.AMPERSAND:this.returnState=jx.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=jx.CHARACTER_REFERENCE;break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this.currentAttr.value+="<22>";break;case sx.EOF:this._err(mx.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:this._leaveAttrValue(),this.state=jx.BEFORE_ATTRIBUTE_NAME;break;case sx.AMPERSAND:this.returnState=jx.ATTRIBUTE_VALUE_UNQUOTED,this.state=jx.CHARACTER_REFERENCE;break;case sx.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=jx.DATA,this.emitCurrentTagToken();break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this.currentAttr.value+="<22>";break;case sx.QUOTATION_MARK:case sx.APOSTROPHE:case sx.LESS_THAN_SIGN:case sx.EQUALS_SIGN:case sx.GRAVE_ACCENT:this._err(mx.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break;case sx.EOF:this._err(mx.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:this._leaveAttrValue(),this.state=jx.BEFORE_ATTRIBUTE_NAME;break;case sx.SOLIDUS:this._leaveAttrValue(),this.state=jx.SELF_CLOSING_START_TAG;break;case sx.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=jx.DATA,this.emitCurrentTagToken();break;case sx.EOF:this._err(mx.eofInTag),this._emitEOFToken();break;default:this._err(mx.missingWhitespaceBetweenAttributes),this.state=jx.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case sx.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=jx.DATA,this.emitCurrentTagToken();break;case sx.EOF:this._err(mx.eofInTag),this._emitEOFToken();break;default:this._err(mx.unexpectedSolidusInTag),this.state=jx.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const e=this.currentToken;switch(t){case sx.GREATER_THAN_SIGN:this.state=jx.DATA,this.emitCurrentComment(e);break;case sx.EOF:this.emitCurrentComment(e),this._emitEOFToken();break;case sx.NULL:this._err(mx.unexpectedNullCharacter),e.data+="<22>";break;default:e.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(cx,!0)?(this._createCommentToken(cx.length+1),this.state=jx.COMMENT_START):this._consumeSequenceIfMatch(Ax,!1)?(this.currentLocation=this.getCurrentLocation(Ax.length+1),this.state=jx.DOCTYPE):this._consumeSequenceIfMatch(lx,!0)?this.inForeignNode?this.state=jx.CDATA_SECTION:(this._err(mx.cdataInHtmlContent),this._createCommentToken(lx.length+1),this.currentToken.data="[CDATA[",this.state=jx.BOGUS_COMMENT):this._ensureHibernation()||(this._err(mx.incorrectlyOpenedComment),this._createCommentToken(2),this.state=jx.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case sx.HYPHEN_MINUS:this.state=jx.COMMENT_START_DASH;break;case sx.GREATER_THAN_SIGN:{this._err(mx.abruptClosingOfEmptyComment),this.state=jx.DATA;const t=this.currentToken;this.emitCurrentComment(t);break}default:this.state=jx.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const e=this.currentToken;switch(t){case sx.HYPHEN_MINUS:this.state=jx.COMMENT_END;break;case sx.GREATER_THAN_SIGN:this._err(mx.abruptClosingOfEmptyComment),this.state=jx.DATA,this.emitCurrentComment(e);break;case sx.EOF:this._err(mx.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="-",this.state=jx.COMMENT,this._stateComment(t)}}_stateComment(t){const e=this.currentToken;switch(t){case sx.HYPHEN_MINUS:this.state=jx.COMMENT_END_DASH;break;case sx.LESS_THAN_SIGN:e.data+="<",this.state=jx.COMMENT_LESS_THAN_SIGN;break;case sx.NULL:this._err(mx.unexpectedNullCharacter),e.data+="<22>";break;case sx.EOF:this._err(mx.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const e=this.currentToken;switch(t){case sx.EXCLAMATION_MARK:e.data+="!",this.state=jx.COMMENT_LESS_THAN_SIGN_BANG;break;case sx.LESS_THAN_SIGN:e.data+="<";break;default:this.state=jx.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===sx.HYPHEN_MINUS?this.state=jx.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=jx.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===sx.HYPHEN_MINUS?this.state=jx.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=jx.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==sx.GREATER_THAN_SIGN&&t!==sx.EOF&&this._err(mx.nestedComment),this.state=jx.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const e=this.currentToken;switch(t){case sx.HYPHEN_MINUS:this.state=jx.COMMENT_END;break;case sx.EOF:this._err(mx.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="-",this.state=jx.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const e=this.currentToken;switch(t){case sx.GREATER_THAN_SIGN:this.state=jx.DATA,this.emitCurrentComment(e);break;case sx.EXCLAMATION_MARK:this.state=jx.COMMENT_END_BANG;break;case sx.HYPHEN_MINUS:e.data+="-";break;case sx.EOF:this._err(mx.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="--",this.state=jx.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const e=this.currentToken;switch(t){case sx.HYPHEN_MINUS:e.data+="--!",this.state=jx.COMMENT_END_DASH;break;case sx.GREATER_THAN_SIGN:this._err(mx.incorrectlyClosedComment),this.state=jx.DATA,this.emitCurrentComment(e);break;case sx.EOF:this._err(mx.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="--!",this.state=jx.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:this.state=jx.BEFORE_DOCTYPE_NAME;break;case sx.GREATER_THAN_SIGN:this.state=jx.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break;case sx.EOF:{this._err(mx.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(mx.missingWhitespaceBeforeDoctypeName),this.state=jx.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Yx(t))this._createDoctypeToken(String.fromCharCode(Xx(t))),this.state=jx.DOCTYPE_NAME;else switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:break;case sx.NULL:this._err(mx.unexpectedNullCharacter),this._createDoctypeToken("<22>"),this.state=jx.DOCTYPE_NAME;break;case sx.GREATER_THAN_SIGN:{this._err(mx.missingDoctypeName),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=jx.DATA;break}case sx.EOF:{this._err(mx.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=jx.DOCTYPE_NAME}}_stateDoctypeName(t){const e=this.currentToken;switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:this.state=jx.AFTER_DOCTYPE_NAME;break;case sx.GREATER_THAN_SIGN:this.state=jx.DATA,this.emitCurrentDoctype(e);break;case sx.NULL:this._err(mx.unexpectedNullCharacter),e.name+="<22>";break;case sx.EOF:this._err(mx.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.name+=String.fromCodePoint(Yx(t)?Xx(t):t)}}_stateAfterDoctypeName(t){const e=this.currentToken;switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:break;case sx.GREATER_THAN_SIGN:this.state=jx.DATA,this.emitCurrentDoctype(e);break;case sx.EOF:this._err(mx.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(hx,!1)?this.state=jx.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(fx,!1)?this.state=jx.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(mx.invalidCharacterSequenceAfterDoctypeName),e.forceQuirks=!0,this.state=jx.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const e=this.currentToken;switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:this.state=jx.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case sx.QUOTATION_MARK:this._err(mx.missingWhitespaceAfterDoctypePublicKeyword),e.publicId="",this.state=jx.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case sx.APOSTROPHE:this._err(mx.missingWhitespaceAfterDoctypePublicKeyword),e.publicId="",this.state=jx.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case sx.GREATER_THAN_SIGN:this._err(mx.missingDoctypePublicIdentifier),e.forceQuirks=!0,this.state=jx.DATA,this.emitCurrentDoctype(e);break;case sx.EOF:this._err(mx.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(mx.missingQuoteBeforeDoctypePublicIdentifier),e.forceQuirks=!0,this.state=jx.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const e=this.currentToken;switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:break;case sx.QUOTATION_MARK:e.publicId="",this.state=jx.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case sx.APOSTROPHE:e.publicId="",this.state=jx.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case sx.GREATER_THAN_SIGN:this._err(mx.missingDoctypePublicIdentifier),e.forceQuirks=!0,this.state=jx.DATA,this.emitCurrentDoctype(e);break;case sx.EOF:this._err(mx.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(mx.missingQuoteBeforeDoctypePublicIdentifier),e.forceQuirks=!0,this.state=jx.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const e=this.currentToken;switch(t){case sx.QUOTATION_MARK:this.state=jx.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case sx.NULL:this._err(mx.unexpectedNullCharacter),e.publicId+="<22>";break;case sx.GREATER_THAN_SIGN:this._err(mx.abruptDoctypePublicIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=jx.DATA;break;case sx.EOF:this._err(mx.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const e=this.currentToken;switch(t){case sx.APOSTROPHE:this.state=jx.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case sx.NULL:this._err(mx.unexpectedNullCharacter),e.publicId+="<22>";break;case sx.GREATER_THAN_SIGN:this._err(mx.abruptDoctypePublicIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=jx.DATA;break;case sx.EOF:this._err(mx.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const e=this.currentToken;switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:this.state=jx.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case sx.GREATER_THAN_SIGN:this.state=jx.DATA,this.emitCurrentDoctype(e);break;case sx.QUOTATION_MARK:this._err(mx.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),e.systemId="",this.state=jx.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case sx.APOSTROPHE:this._err(mx.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),e.systemId="",this.state=jx.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case sx.EOF:this._err(mx.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(mx.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=jx.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const e=this.currentToken;switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:break;case sx.GREATER_THAN_SIGN:this.emitCurrentDoctype(e),this.state=jx.DATA;break;case sx.QUOTATION_MARK:e.systemId="",this.state=jx.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case sx.APOSTROPHE:e.systemId="",this.state=jx.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case sx.EOF:this._err(mx.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(mx.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=jx.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const e=this.currentToken;switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:this.state=jx.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case sx.QUOTATION_MARK:this._err(mx.missingWhitespaceAfterDoctypeSystemKeyword),e.systemId="",this.state=jx.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case sx.APOSTROPHE:this._err(mx.missingWhitespaceAfterDoctypeSystemKeyword),e.systemId="",this.state=jx.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case sx.GREATER_THAN_SIGN:this._err(mx.missingDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=jx.DATA,this.emitCurrentDoctype(e);break;case sx.EOF:this._err(mx.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(mx.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=jx.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const e=this.currentToken;switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:break;case sx.QUOTATION_MARK:e.systemId="",this.state=jx.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case sx.APOSTROPHE:e.systemId="",this.state=jx.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case sx.GREATER_THAN_SIGN:this._err(mx.missingDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=jx.DATA,this.emitCurrentDoctype(e);break;case sx.EOF:this._err(mx.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(mx.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=jx.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const e=this.currentToken;switch(t){case sx.QUOTATION_MARK:this.state=jx.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case sx.NULL:this._err(mx.unexpectedNullCharacter),e.systemId+="<22>";break;case sx.GREATER_THAN_SIGN:this._err(mx.abruptDoctypeSystemIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=jx.DATA;break;case sx.EOF:this._err(mx.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const e=this.currentToken;switch(t){case sx.APOSTROPHE:this.state=jx.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case sx.NULL:this._err(mx.unexpectedNullCharacter),e.systemId+="<22>";break;case sx.GREATER_THAN_SIGN:this._err(mx.abruptDoctypeSystemIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=jx.DATA;break;case sx.EOF:this._err(mx.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const e=this.currentToken;switch(t){case sx.SPACE:case sx.LINE_FEED:case sx.TABULATION:case sx.FORM_FEED:break;case sx.GREATER_THAN_SIGN:this.emitCurrentDoctype(e),this.state=jx.DATA;break;case sx.EOF:this._err(mx.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(mx.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=jx.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const e=this.currentToken;switch(t){case sx.GREATER_THAN_SIGN:this.emitCurrentDoctype(e),this.state=jx.DATA;break;case sx.NULL:this._err(mx.unexpectedNullCharacter);break;case sx.EOF:this.emitCurrentDoctype(e),this._emitEOFToken()}}_stateCdataSection(t){switch(t){case sx.RIGHT_SQUARE_BRACKET:this.state=jx.CDATA_SECTION_BRACKET;break;case sx.EOF:this._err(mx.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===sx.RIGHT_SQUARE_BRACKET?this.state=jx.CDATA_SECTION_END:(this._emitChars("]"),this.state=jx.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case sx.GREATER_THAN_SIGN:this.state=jx.DATA;break;case sx.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=jx.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===sx.NUMBER_SIGN?this.state=jx.NUMERIC_CHARACTER_REFERENCE:zx(t)?(this.state=jx.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(sx.AMPERSAND),this._reconsumeInState(this.returnState))}_stateNamedCharacterReference(t){const e=this._matchNamedCharacterReference(t);if(this._ensureHibernation());else if(e){for(let t=0;t<e.length;t++)this._flushCodePointConsumedAsCharacterReference(e[t]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(sx.AMPERSAND),this.state=jx.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){zx(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===sx.SEMICOLON&&this._err(mx.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}_stateNumericCharacterReference(t){this.charRefCode=0,t===sx.LATIN_SMALL_X||t===sx.LATIN_CAPITAL_X?this.state=jx.HEXADEMICAL_CHARACTER_REFERENCE_START:(this.state=jx.DECIMAL_CHARACTER_REFERENCE_START,this._stateDecimalCharacterReferenceStart(t))}_stateHexademicalCharacterReferenceStart(t){!function(t){return $x(t)||Wx(t)||qx(t)}(t)?(this._err(mx.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(sx.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(sx.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState):(this.state=jx.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t))}_stateDecimalCharacterReferenceStart(t){$x(t)?(this.state=jx.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(mx.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(sx.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(sx.NUMBER_SIGN),this._reconsumeInState(this.returnState))}_stateHexademicalCharacterReference(t){Wx(t)?this.charRefCode=16*this.charRefCode+t-55:qx(t)?this.charRefCode=16*this.charRefCode+t-87:$x(t)?this.charRefCode=16*this.charRefCode+t-48:t===sx.SEMICOLON?this.state=jx.NUMERIC_CHARACTER_REFERENCE_END:(this._err(mx.missingSemicolonAfterCharacterReference),this.state=jx.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd())}_stateDecimalCharacterReference(t){$x(t)?this.charRefCode=10*this.charRefCode+t-48:t===sx.SEMICOLON?this.state=jx.NUMERIC_CHARACTER_REFERENCE_END:(this._err(mx.missingSemicolonAfterCharacterReference),this.state=jx.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd())}_stateNumericCharacterReferenceEnd(){if(this.charRefCode===sx.NULL)this._err(mx.nullCharacterReference),this.charRefCode=sx.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(mx.characterReferenceOutsideUnicodeRange),this.charRefCode=sx.REPLACEMENT_CHARACTER;else if(dx(this.charRefCode))this._err(mx.surrogateCharacterReference),this.charRefCode=sx.REPLACEMENT_CHARACTER;else if(gx(this.charRefCode))this._err(mx.noncharacterCharacterReference);else if(px(this.charRefCode)||this.charRefCode===sx.CARRIAGE_RETURN){this._err(mx.controlCharacterReference);const t=Gx.get(this.charRefCode);void 0!==t&&(this.charRefCode=t)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState)}}const eB=new Set([Sx.DD,Sx.DT,Sx.LI,Sx.OPTGROUP,Sx.OPTION,Sx.P,Sx.RB,Sx.RP,Sx.RT,Sx.RTC]),nB=new Set([...eB,Sx.CAPTION,Sx.COLGROUP,Sx.TBODY,Sx.TD,Sx.TFOOT,Sx.TH,Sx.THEAD,Sx.TR]),rB=new Map([[Sx.APPLET,xx.HTML],[Sx.CAPTION,xx.HTML],[Sx.HTML,xx.HTML],[Sx.MARQUEE,xx.HTML],[Sx.OBJECT,xx.HTML],[Sx.TABLE,xx.HTML],[Sx.TD,xx.HTML],[Sx.TEMPLATE,xx.HTML],[Sx.TH,xx.HTML],[Sx.ANNOTATION_XML,xx.MATHML],[Sx.MI,xx.MATHML],[Sx.MN,xx.MATHML],[Sx.MO,xx.MATHML],[Sx.MS,xx.MATHML],[Sx.MTEXT,xx.MATHML],[Sx.DESC,xx.SVG],[Sx.FOREIGN_OBJECT,xx.SVG],[Sx.TITLE,xx.SVG]]),iB=[Sx.H1,Sx.H2,Sx.H3,Sx.H4,Sx.H5,Sx.H6],aB=[Sx.TR,Sx.TEMPLATE,Sx.HTML],oB=[Sx.TBODY,Sx.TFOOT,Sx.THEAD,Sx.TEMPLATE,Sx.HTML],sB=[Sx.TABLE,Sx.TEMPLATE,Sx.HTML],cB=[Sx.TD,Sx.TH];class lB{constructor(t,e,n){this.treeAdapter=e,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Sx.UNKNOWN,this.current=t}get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===Sx.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===xx.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,e){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=e,this.currentTagId=e,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,e,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,e){const n=this._indexOf(t);this.items[n]=e,n===this.stackTop&&(this.current=e)}insertAfter(t,e,n){const r=this._indexOf(t)+1;this.items.splice(r,0,e),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(t){let e=this.stackTop+1;do{e=this.tagIDs.lastIndexOf(t,e-1)}while(e>0&&this.treeAdapter.getNamespaceURI(this.items[e])!==xx.HTML);this.shortenToLength(e<0?0:e)}shortenToLength(t){for(;this.stackTop>=t;){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,this.stackTop<t)}}popUntilElementPopped(t){const e=this._indexOf(t);this.shortenToLength(e<0?0:e)}popUntilPopped(t,e){const n=this._indexOfTagNames(t,e);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(iB,xx.HTML)}popUntilTableCellPopped(){this.popUntilPopped(cB,xx.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,e){for(let n=this.stackTop;n>=0;n--)if(t.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===e)return n;return-1}clearBackTo(t,e){const n=this._indexOfTagNames(t,e);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(sB,xx.HTML)}clearBackToTableBodyContext(){this.clearBackTo(oB,xx.HTML)}clearBackToTableRowContext(){this.clearBackTo(aB,xx.HTML)}remove(t){const e=this._indexOf(t);e>=0&&(e===this.stackTop?this.pop():(this.items.splice(e,1),this.tagIDs.splice(e,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Sx.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const e=this._indexOf(t)-1;return e>=0?this.items[e]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===Sx.HTML}hasInScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===xx.HTML)return!0;if(rB.get(n)===r)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const e=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(Qx(e)&&n===xx.HTML)return!0;if(rB.get(e)===n)return!1}return!0}hasInListItemScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===xx.HTML)return!0;if((n===Sx.UL||n===Sx.OL)&&r===xx.HTML||rB.get(n)===r)return!1}return!0}hasInButtonScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===xx.HTML)return!0;if(n===Sx.BUTTON&&r===xx.HTML||rB.get(n)===r)return!1}return!0}hasInTableScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===xx.HTML){if(n===t)return!0;if(n===Sx.TABLE||n===Sx.TEMPLATE||n===Sx.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const e=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===xx.HTML){if(e===Sx.TBODY||e===Sx.THEAD||e===Sx.TFOOT)return!0;if(e===Sx.TABLE||e===Sx.HTML)return!1}}return!0}hasInSelectScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===xx.HTML){if(n===t)return!0;if(n!==Sx.OPTION&&n!==Sx.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;eB.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;nB.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&nB.has(this.currentTagId);)this.pop()}}var AB;!function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"}(AB||(AB={}));const uB={type:AB.Marker};class hB{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,e){const n=[],r=e.length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let t=0;t<this.entries.length;t++){const e=this.entries[t];if(e.type===AB.Marker)break;const{element:o}=e;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===a){const e=this.treeAdapter.getAttrList(o);e.length===r&&n.push({idx:t,attrs:e})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<3)return;const e=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,e);if(n.length<3)return;const r=new Map(e.map(t=>[t.name,t.value]));let i=0;for(let t=0;t<n.length;t++){const e=n[t];e.attrs.every(t=>r.get(t.name)===t.value)&&(i+=1,i>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(uB)}pushElement(t,e){this._ensureNoahArkCondition(t),this.entries.unshift({type:AB.Element,element:t,token:e})}insertElementAfterBookmark(t,e){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:AB.Element,element:t,token:e})}removeEntry(t){const e=this.entries.indexOf(t);e>=0&&this.entries.splice(e,1)}clearToLastMarker(){const t=this.entries.indexOf(uB);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const e=this.entries.find(e=>e.type===AB.Marker||this.treeAdapter.getTagName(e.element)===t);return e&&e.type===AB.Element?e:null}getElementEntry(t){return this.entries.find(e=>e.type===AB.Element&&e.element===t)}}var fB;function dB(t){return{nodeName:fB.Text,value:t,parentNode:null}}!function(t){t.Document="#document",t.DocumentFragment="#document-fragment",t.Comment="#comment",t.Text="#text",t.DocumentType="#documentType"}(fB||(fB={}));const pB={createDocument:()=>({nodeName:fB.Document,mode:Tx.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:fB.DocumentFragment,childNodes:[]}),createElement:(t,e,n)=>({nodeName:t,tagName:t,attrs:n,namespaceURI:e,childNodes:[],parentNode:null}),createCommentNode:t=>({nodeName:fB.Comment,data:t,parentNode:null}),appendChild(t,e){t.childNodes.push(e),e.parentNode=t},insertBefore(t,e,n){const r=t.childNodes.indexOf(n);t.childNodes.splice(r,0,e),e.parentNode=t},setTemplateContent(t,e){t.content=e},getTemplateContent:t=>t.content,setDocumentType(t,e,n,r){const i=t.childNodes.find(t=>t.nodeName===fB.DocumentType);if(i)i.name=e,i.publicId=n,i.systemId=r;else{const i={nodeName:fB.DocumentType,name:e,publicId:n,systemId:r,parentNode:null};pB.appendChild(t,i)}},setDocumentMode(t,e){t.mode=e},getDocumentMode:t=>t.mode,detachNode(t){if(t.parentNode){const e=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(e,1),t.parentNode=null}},insertText(t,e){if(t.childNodes.length>0){const n=t.childNodes[t.childNodes.length-1];if(pB.isTextNode(n))return void(n.value+=e)}pB.appendChild(t,dB(e))},insertTextBefore(t,e,n){const r=t.childNodes[t.childNodes.indexOf(n)-1];r&&pB.isTextNode(r)?r.value+=e:pB.insertBefore(t,dB(e),n)},adoptAttributes(t,e){const n=new Set(t.attrs.map(t=>t.name));for(let r=0;r<e.length;r++)n.has(e[r].name)||t.attrs.push(e[r])},getFirstChild:t=>t.childNodes[0],getChildNodes:t=>t.childNodes,getParentNode:t=>t.parentNode,getAttrList:t=>t.attrs,getTagName:t=>t.tagName,getNamespaceURI:t=>t.namespaceURI,getTextNodeContent:t=>t.value,getCommentNodeContent:t=>t.data,getDocumentTypeNodeName:t=>t.name,getDocumentTypeNodePublicId:t=>t.publicId,getDocumentTypeNodeSystemId:t=>t.systemId,isTextNode:t=>"#text"===t.nodeName,isCommentNode:t=>"#comment"===t.nodeName,isDocumentTypeNode:t=>t.nodeName===fB.DocumentType,isElementNode:t=>Object.prototype.hasOwnProperty.call(t,"tagName"),setNodeSourceCodeLocation(t,e){t.sourceCodeLocation=e},getNodeSourceCodeLocation:t=>t.sourceCodeLocation,updateNodeSourceCodeLocation(t,e){t.sourceCodeLocation={...t.sourceCodeLocation,...e}}},gB=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],mB=[...gB,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],yB=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),vB=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],bB=[...vB,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function wB(t,e){return e.some(e=>t.startsWith(e))}const _B="text/html",EB="application/xhtml+xml",CB=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(t=>[t.toLowerCase(),t])),xB=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:xx.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:xx.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:xx.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:xx.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:xx.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:xx.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:xx.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:xx.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:xx.XML}],["xml:space",{prefix:"xml",name:"space",namespace:xx.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:xx.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:xx.XMLNS}]]),BB=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(t=>[t.toLowerCase(),t])),TB=new Set([Sx.B,Sx.BIG,Sx.BLOCKQUOTE,Sx.BODY,Sx.BR,Sx.CENTER,Sx.CODE,Sx.DD,Sx.DIV,Sx.DL,Sx.DT,Sx.EM,Sx.EMBED,Sx.H1,Sx.H2,Sx.H3,Sx.H4,Sx.H5,Sx.H6,Sx.HEAD,Sx.HR,Sx.I,Sx.IMG,Sx.LI,Sx.LISTING,Sx.MENU,Sx.META,Sx.NOBR,Sx.OL,Sx.P,Sx.PRE,Sx.RUBY,Sx.S,Sx.SMALL,Sx.SPAN,Sx.STRONG,Sx.STRIKE,Sx.SUB,Sx.SUP,Sx.TABLE,Sx.TT,Sx.U,Sx.UL,Sx.VAR]);function kB(t){for(let e=0;e<t.attrs.length;e++)if("definitionurl"===t.attrs[e].name){t.attrs[e].name="definitionURL";break}}function SB(t){for(let e=0;e<t.attrs.length;e++){const n=CB.get(t.attrs[e].name);null!=n&&(t.attrs[e].name=n)}}function IB(t){for(let e=0;e<t.attrs.length;e++){const n=xB.get(t.attrs[e].name);n&&(t.attrs[e].prefix=n.prefix,t.attrs[e].name=n.name,t.attrs[e].namespace=n.namespace)}}function NB(t,e,n,r){return(!r||r===xx.HTML)&&function(t,e,n){if(e===xx.MATHML&&t===Sx.ANNOTATION_XML)for(let t=0;t<n.length;t++)if(n[t].name===Bx.ENCODING){const e=n[t].value.toLowerCase();return e===_B||e===EB}return e===xx.SVG&&(t===Sx.FOREIGN_OBJECT||t===Sx.DESC||t===Sx.TITLE)}(t,e,n)||(!r||r===xx.MATHML)&&function(t,e){return e===xx.MATHML&&(t===Sx.MI||t===Sx.MO||t===Sx.MN||t===Sx.MS||t===Sx.MTEXT)}(t,e)}var MB;!function(t){t[t.INITIAL=0]="INITIAL",t[t.BEFORE_HTML=1]="BEFORE_HTML",t[t.BEFORE_HEAD=2]="BEFORE_HEAD",t[t.IN_HEAD=3]="IN_HEAD",t[t.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",t[t.AFTER_HEAD=5]="AFTER_HEAD",t[t.IN_BODY=6]="IN_BODY",t[t.TEXT=7]="TEXT",t[t.IN_TABLE=8]="IN_TABLE",t[t.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",t[t.IN_CAPTION=10]="IN_CAPTION",t[t.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",t[t.IN_TABLE_BODY=12]="IN_TABLE_BODY",t[t.IN_ROW=13]="IN_ROW",t[t.IN_CELL=14]="IN_CELL",t[t.IN_SELECT=15]="IN_SELECT",t[t.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",t[t.IN_TEMPLATE=17]="IN_TEMPLATE",t[t.AFTER_BODY=18]="AFTER_BODY",t[t.IN_FRAMESET=19]="IN_FRAMESET",t[t.AFTER_FRAMESET=20]="AFTER_FRAMESET",t[t.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",t[t.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(MB||(MB={}));const FB={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},DB=new Set([Sx.TABLE,Sx.TBODY,Sx.TFOOT,Sx.THEAD,Sx.TR]),LB={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:pB,onParseError:null};class OB{constructor(t,e,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=MB.INITIAL,this.originalInsertionMode=MB.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...LB,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=e?e:this.treeAdapter.createDocument(),this.tokenizer=new tB(this.options,this),this.activeFormattingElements=new hB(this.treeAdapter),this.fragmentContextID=n?Rx(this.treeAdapter.getTagName(n)):Sx.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new lB(this.document,this.treeAdapter,this)}static parse(t,e){const n=new this(e);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,e){const n={...LB,...e};null!=t||(t=n.treeAdapter.createElement(kx.TEMPLATE,xx.HTML,[]));const r=n.treeAdapter.createElement("documentmock",xx.HTML,[]),i=new this(n,r,t);return i.fragmentContextID===Sx.TEMPLATE&&i.tmplInsertionModeStack.unshift(MB.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),e=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,e),e}_err(t,e,n){var r;if(!this.onParseError)return;const i=null!==(r=t.location)&&void 0!==r?r:FB,a={code:e,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(t,e,n){var r,i;null===(i=(r=this.treeAdapter).onItemPush)||void 0===i||i.call(r,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,e)}onItemPop(t,e){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,t,this.openElements.current),e){let t,e;0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,e=this.fragmentContextID):({current:t,currentTagId:e}=this.openElements),this._setContextModes(t,e)}}_setContextModes(t,e){const n=t===this.document||this.treeAdapter.getNamespaceURI(t)===xx.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(e,t)}_switchToTextParsing(t,e){this._insertElement(t,xx.HTML),this.tokenizer.state=e,this.originalInsertionMode=this.insertionMode,this.insertionMode=MB.TEXT}switchToPlaintextParsing(){this.insertionMode=MB.TEXT,this.originalInsertionMode=MB.IN_BODY,this.tokenizer.state=Kx.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===kx.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===xx.HTML)switch(this.fragmentContextID){case Sx.TITLE:case Sx.TEXTAREA:this.tokenizer.state=Kx.RCDATA;break;case Sx.STYLE:case Sx.XMP:case Sx.IFRAME:case Sx.NOEMBED:case Sx.NOFRAMES:case Sx.NOSCRIPT:this.tokenizer.state=Kx.RAWTEXT;break;case Sx.SCRIPT:this.tokenizer.state=Kx.SCRIPT_DATA;break;case Sx.PLAINTEXT:this.tokenizer.state=Kx.PLAINTEXT}}_setDocumentType(t){const e=t.name||"",n=t.publicId||"",r=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,e,n,r),t.location){const e=this.treeAdapter.getChildNodes(this.document).find(t=>this.treeAdapter.isDocumentTypeNode(t));e&&this.treeAdapter.setNodeSourceCodeLocation(e,t.location)}}_attachElementToTree(t,e){if(this.options.sourceCodeLocationInfo){const n=e&&{...e,startTag:e};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const e=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(e,t)}}_appendElement(t,e){const n=this.treeAdapter.createElement(t.tagName,e,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,e){const n=this.treeAdapter.createElement(t.tagName,e,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,e){const n=this.treeAdapter.createElement(t,xx.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,e)}_insertTemplate(t){const e=this.treeAdapter.createElement(t.tagName,xx.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(e,n),this._attachElementToTree(e,t.location),this.openElements.push(e,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(kx.HTML,xx.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,Sx.HTML)}_appendCommentNode(t,e){const n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(e,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let e,n;if(this._shouldFosterParentOnInsertion()?(({parent:e,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(e,t.chars,n):this.treeAdapter.insertText(e,t.chars)):(e=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(e,t.chars)),!t.location)return;const r=this.treeAdapter.getChildNodes(e),i=n?r.lastIndexOf(n):r.length,a=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:e,endCol:n,endOffset:r}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:e,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,e){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(e,n)}_setEndLocation(t,e){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&e.location){const n=e.location,r=this.treeAdapter.getTagName(t),i=e.type===vx.END_TAG&&r===e.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let e,n;return 0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,n=this.fragmentContextID):({current:e,currentTagId:n}=this.openElements),(t.tagID!==Sx.SVG||this.treeAdapter.getTagName(e)!==kx.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(e)!==xx.MATHML)&&(this.tokenizer.inForeignNode||(t.tagID===Sx.MGLYPH||t.tagID===Sx.MALIGNMARK)&&!this._isIntegrationPoint(n,e,xx.HTML))}_processToken(t){switch(t.type){case vx.CHARACTER:this.onCharacter(t);break;case vx.NULL_CHARACTER:this.onNullCharacter(t);break;case vx.COMMENT:this.onComment(t);break;case vx.DOCTYPE:this.onDoctype(t);break;case vx.START_TAG:this._processStartTag(t);break;case vx.END_TAG:this.onEndTag(t);break;case vx.EOF:this.onEof(t);break;case vx.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(t)}}_isIntegrationPoint(t,e,n){return NB(t,this.treeAdapter.getNamespaceURI(e),this.treeAdapter.getAttrList(e),n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const e=this.activeFormattingElements.entries.findIndex(t=>t.type===AB.Marker||this.openElements.contains(t.element));for(let n=e<0?t-1:e-1;n>=0;n--){const t=this.activeFormattingElements.entries[n];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=MB.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Sx.P),this.openElements.popUntilTagNamePopped(Sx.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(0===t&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case Sx.TR:return void(this.insertionMode=MB.IN_ROW);case Sx.TBODY:case Sx.THEAD:case Sx.TFOOT:return void(this.insertionMode=MB.IN_TABLE_BODY);case Sx.CAPTION:return void(this.insertionMode=MB.IN_CAPTION);case Sx.COLGROUP:return void(this.insertionMode=MB.IN_COLUMN_GROUP);case Sx.TABLE:return void(this.insertionMode=MB.IN_TABLE);case Sx.BODY:return void(this.insertionMode=MB.IN_BODY);case Sx.FRAMESET:return void(this.insertionMode=MB.IN_FRAMESET);case Sx.SELECT:return void this._resetInsertionModeForSelect(t);case Sx.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Sx.HTML:return void(this.insertionMode=this.headElement?MB.AFTER_HEAD:MB.BEFORE_HEAD);case Sx.TD:case Sx.TH:if(t>0)return void(this.insertionMode=MB.IN_CELL);break;case Sx.HEAD:if(t>0)return void(this.insertionMode=MB.IN_HEAD)}this.insertionMode=MB.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let e=t-1;e>0;e--){const t=this.openElements.tagIDs[e];if(t===Sx.TEMPLATE)break;if(t===Sx.TABLE)return void(this.insertionMode=MB.IN_SELECT_IN_TABLE)}this.insertionMode=MB.IN_SELECT}_isElementCausesFosterParenting(t){return DB.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const e=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case Sx.TEMPLATE:if(this.treeAdapter.getNamespaceURI(e)===xx.HTML)return{parent:this.treeAdapter.getTemplateContent(e),beforeElement:null};break;case Sx.TABLE:{const n=this.treeAdapter.getParentNode(e);return n?{parent:n,beforeElement:e}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const e=this._findFosterParentingLocation();e.beforeElement?this.treeAdapter.insertBefore(e.parent,t,e.beforeElement):this.treeAdapter.appendChild(e.parent,t)}_isSpecialElement(t,e){const n=this.treeAdapter.getNamespaceURI(t);return Px[n].has(e)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(t,e){t._insertCharacters(e),t.framesetOk=!1}(this,t);else switch(this.insertionMode){case MB.INITIAL:YB(this,t);break;case MB.BEFORE_HTML:VB(this,t);break;case MB.BEFORE_HEAD:zB(this,t);break;case MB.IN_HEAD:XB(this,t);break;case MB.IN_HEAD_NO_SCRIPT:JB(this,t);break;case MB.AFTER_HEAD:ZB(this,t);break;case MB.IN_BODY:case MB.IN_CAPTION:case MB.IN_CELL:case MB.IN_TEMPLATE:nT(this,t);break;case MB.TEXT:case MB.IN_SELECT:case MB.IN_SELECT_IN_TABLE:this._insertCharacters(t);break;case MB.IN_TABLE:case MB.IN_TABLE_BODY:case MB.IN_ROW:uT(this,t);break;case MB.IN_TABLE_TEXT:gT(this,t);break;case MB.IN_COLUMN_GROUP:bT(this,t);break;case MB.AFTER_BODY:ST(this,t);break;case MB.AFTER_AFTER_BODY:IT(this,t)}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(t,e){e.chars="<22>",t._insertCharacters(e)}(this,t);else switch(this.insertionMode){case MB.INITIAL:YB(this,t);break;case MB.BEFORE_HTML:VB(this,t);break;case MB.BEFORE_HEAD:zB(this,t);break;case MB.IN_HEAD:XB(this,t);break;case MB.IN_HEAD_NO_SCRIPT:JB(this,t);break;case MB.AFTER_HEAD:ZB(this,t);break;case MB.TEXT:this._insertCharacters(t);break;case MB.IN_TABLE:case MB.IN_TABLE_BODY:case MB.IN_ROW:uT(this,t);break;case MB.IN_COLUMN_GROUP:bT(this,t);break;case MB.AFTER_BODY:ST(this,t);break;case MB.AFTER_AFTER_BODY:IT(this,t)}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML)KB(this,t);else switch(this.insertionMode){case MB.INITIAL:case MB.BEFORE_HTML:case MB.BEFORE_HEAD:case MB.IN_HEAD:case MB.IN_HEAD_NO_SCRIPT:case MB.AFTER_HEAD:case MB.IN_BODY:case MB.IN_TABLE:case MB.IN_CAPTION:case MB.IN_COLUMN_GROUP:case MB.IN_TABLE_BODY:case MB.IN_ROW:case MB.IN_CELL:case MB.IN_SELECT:case MB.IN_SELECT_IN_TABLE:case MB.IN_TEMPLATE:case MB.IN_FRAMESET:case MB.AFTER_FRAMESET:KB(this,t);break;case MB.IN_TABLE_TEXT:mT(this,t);break;case MB.AFTER_BODY:!function(t,e){t._appendCommentNode(e,t.openElements.items[0])}(this,t);break;case MB.AFTER_AFTER_BODY:case MB.AFTER_AFTER_FRAMESET:!function(t,e){t._appendCommentNode(e,t.document)}(this,t)}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case MB.INITIAL:!function(t,e){t._setDocumentType(e);const n=e.forceQuirks?Tx.QUIRKS:function(t){if("html"!==t.name)return Tx.QUIRKS;const{systemId:e}=t;if(e&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===e.toLowerCase())return Tx.QUIRKS;let{publicId:n}=t;if(null!==n){if(n=n.toLowerCase(),yB.has(n))return Tx.QUIRKS;let t=null===e?mB:gB;if(wB(n,t))return Tx.QUIRKS;if(t=null===e?vB:bB,wB(n,t))return Tx.LIMITED_QUIRKS}return Tx.NO_QUIRKS}(e);(function(t){return"html"===t.name&&null===t.publicId&&(null===t.systemId||"about:legacy-compat"===t.systemId)})(e)||t._err(e,mx.nonConformingDoctype);t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode=MB.BEFORE_HTML}(this,t);break;case MB.BEFORE_HEAD:case MB.IN_HEAD:case MB.IN_HEAD_NO_SCRIPT:case MB.AFTER_HEAD:this._err(t,mx.misplacedDoctype);break;case MB.IN_TABLE_TEXT:mT(this,t)}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,mx.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?function(t,e){if(function(t){const e=t.tagID;return e===Sx.FONT&&t.attrs.some(({name:t})=>t===Bx.COLOR||t===Bx.SIZE||t===Bx.FACE)||TB.has(e)}(e))NT(t),t._startTagOutsideForeignContent(e);else{const n=t._getAdjustedCurrentElement(),r=t.treeAdapter.getNamespaceURI(n);r===xx.MATHML?kB(e):r===xx.SVG&&(!function(t){const e=BB.get(t.tagName);null!=e&&(t.tagName=e,t.tagID=Rx(t.tagName))}(e),SB(e)),IB(e),e.selfClosing?t._appendElement(e,r):t._insertElement(e,r),e.ackSelfClosing=!0}}(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case MB.INITIAL:YB(this,t);break;case MB.BEFORE_HTML:!function(t,e){e.tagID===Sx.HTML?(t._insertElement(e,xx.HTML),t.insertionMode=MB.BEFORE_HEAD):VB(t,e)}(this,t);break;case MB.BEFORE_HEAD:!function(t,e){switch(e.tagID){case Sx.HTML:sT(t,e);break;case Sx.HEAD:t._insertElement(e,xx.HTML),t.headElement=t.openElements.current,t.insertionMode=MB.IN_HEAD;break;default:zB(t,e)}}(this,t);break;case MB.IN_HEAD:WB(this,t);break;case MB.IN_HEAD_NO_SCRIPT:!function(t,e){switch(e.tagID){case Sx.HTML:sT(t,e);break;case Sx.BASEFONT:case Sx.BGSOUND:case Sx.HEAD:case Sx.LINK:case Sx.META:case Sx.NOFRAMES:case Sx.STYLE:WB(t,e);break;case Sx.NOSCRIPT:t._err(e,mx.nestedNoscriptInHead);break;default:JB(t,e)}}(this,t);break;case MB.AFTER_HEAD:!function(t,e){switch(e.tagID){case Sx.HTML:sT(t,e);break;case Sx.BODY:t._insertElement(e,xx.HTML),t.framesetOk=!1,t.insertionMode=MB.IN_BODY;break;case Sx.FRAMESET:t._insertElement(e,xx.HTML),t.insertionMode=MB.IN_FRAMESET;break;case Sx.BASE:case Sx.BASEFONT:case Sx.BGSOUND:case Sx.LINK:case Sx.META:case Sx.NOFRAMES:case Sx.SCRIPT:case Sx.STYLE:case Sx.TEMPLATE:case Sx.TITLE:t._err(e,mx.abandonedHeadElementChild),t.openElements.push(t.headElement,Sx.HEAD),WB(t,e),t.openElements.remove(t.headElement);break;case Sx.HEAD:t._err(e,mx.misplacedStartTagForHeadElement);break;default:ZB(t,e)}}(this,t);break;case MB.IN_BODY:sT(this,t);break;case MB.IN_TABLE:hT(this,t);break;case MB.IN_TABLE_TEXT:mT(this,t);break;case MB.IN_CAPTION:!function(t,e){const n=e.tagID;yT.has(n)?t.openElements.hasInTableScope(Sx.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(Sx.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=MB.IN_TABLE,hT(t,e)):sT(t,e)}(this,t);break;case MB.IN_COLUMN_GROUP:vT(this,t);break;case MB.IN_TABLE_BODY:wT(this,t);break;case MB.IN_ROW:ET(this,t);break;case MB.IN_CELL:!function(t,e){const n=e.tagID;yT.has(n)?(t.openElements.hasInTableScope(Sx.TD)||t.openElements.hasInTableScope(Sx.TH))&&(t._closeTableCell(),ET(t,e)):sT(t,e)}(this,t);break;case MB.IN_SELECT:xT(this,t);break;case MB.IN_SELECT_IN_TABLE:!function(t,e){const n=e.tagID;n===Sx.CAPTION||n===Sx.TABLE||n===Sx.TBODY||n===Sx.TFOOT||n===Sx.THEAD||n===Sx.TR||n===Sx.TD||n===Sx.TH?(t.openElements.popUntilTagNamePopped(Sx.SELECT),t._resetInsertionMode(),t._processStartTag(e)):xT(t,e)}(this,t);break;case MB.IN_TEMPLATE:!function(t,e){switch(e.tagID){case Sx.BASE:case Sx.BASEFONT:case Sx.BGSOUND:case Sx.LINK:case Sx.META:case Sx.NOFRAMES:case Sx.SCRIPT:case Sx.STYLE:case Sx.TEMPLATE:case Sx.TITLE:WB(t,e);break;case Sx.CAPTION:case Sx.COLGROUP:case Sx.TBODY:case Sx.TFOOT:case Sx.THEAD:t.tmplInsertionModeStack[0]=MB.IN_TABLE,t.insertionMode=MB.IN_TABLE,hT(t,e);break;case Sx.COL:t.tmplInsertionModeStack[0]=MB.IN_COLUMN_GROUP,t.insertionMode=MB.IN_COLUMN_GROUP,vT(t,e);break;case Sx.TR:t.tmplInsertionModeStack[0]=MB.IN_TABLE_BODY,t.insertionMode=MB.IN_TABLE_BODY,wT(t,e);break;case Sx.TD:case Sx.TH:t.tmplInsertionModeStack[0]=MB.IN_ROW,t.insertionMode=MB.IN_ROW,ET(t,e);break;default:t.tmplInsertionModeStack[0]=MB.IN_BODY,t.insertionMode=MB.IN_BODY,sT(t,e)}}(this,t);break;case MB.AFTER_BODY:!function(t,e){e.tagID===Sx.HTML?sT(t,e):ST(t,e)}(this,t);break;case MB.IN_FRAMESET:!function(t,e){switch(e.tagID){case Sx.HTML:sT(t,e);break;case Sx.FRAMESET:t._insertElement(e,xx.HTML);break;case Sx.FRAME:t._appendElement(e,xx.HTML),e.ackSelfClosing=!0;break;case Sx.NOFRAMES:WB(t,e)}}(this,t);break;case MB.AFTER_FRAMESET:!function(t,e){switch(e.tagID){case Sx.HTML:sT(t,e);break;case Sx.NOFRAMES:WB(t,e)}}(this,t);break;case MB.AFTER_AFTER_BODY:!function(t,e){e.tagID===Sx.HTML?sT(t,e):IT(t,e)}(this,t);break;case MB.AFTER_AFTER_FRAMESET:!function(t,e){switch(e.tagID){case Sx.HTML:sT(t,e);break;case Sx.NOFRAMES:WB(t,e)}}(this,t)}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?function(t,e){if(e.tagID===Sx.P||e.tagID===Sx.BR)return NT(t),void t._endTagOutsideForeignContent(e);for(let n=t.openElements.stackTop;n>0;n--){const r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===xx.HTML){t._endTagOutsideForeignContent(e);break}const i=t.treeAdapter.getTagName(r);if(i.toLowerCase()===e.tagName){e.tagName=i,t.openElements.shortenToLength(n);break}}}(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case MB.INITIAL:YB(this,t);break;case MB.BEFORE_HTML:!function(t,e){const n=e.tagID;n!==Sx.HTML&&n!==Sx.HEAD&&n!==Sx.BODY&&n!==Sx.BR||VB(t,e)}(this,t);break;case MB.BEFORE_HEAD:!function(t,e){const n=e.tagID;n===Sx.HEAD||n===Sx.BODY||n===Sx.HTML||n===Sx.BR?zB(t,e):t._err(e,mx.endTagWithoutMatchingOpenElement)}(this,t);break;case MB.IN_HEAD:qB(this,t);break;case MB.IN_HEAD_NO_SCRIPT:!function(t,e){switch(e.tagID){case Sx.NOSCRIPT:t.openElements.pop(),t.insertionMode=MB.IN_HEAD;break;case Sx.BR:JB(t,e);break;default:t._err(e,mx.endTagWithoutMatchingOpenElement)}}(this,t);break;case MB.AFTER_HEAD:!function(t,e){switch(e.tagID){case Sx.BODY:case Sx.HTML:case Sx.BR:ZB(t,e);break;case Sx.TEMPLATE:qB(t,e);break;default:t._err(e,mx.endTagWithoutMatchingOpenElement)}}(this,t);break;case MB.IN_BODY:lT(this,t);break;case MB.TEXT:!function(t,e){var n;e.tagID===Sx.SCRIPT&&(null===(n=t.scriptHandler)||void 0===n||n.call(t,t.openElements.current));t.openElements.pop(),t.insertionMode=t.originalInsertionMode}(this,t);break;case MB.IN_TABLE:fT(this,t);break;case MB.IN_TABLE_TEXT:mT(this,t);break;case MB.IN_CAPTION:!function(t,e){const n=e.tagID;switch(n){case Sx.CAPTION:case Sx.TABLE:t.openElements.hasInTableScope(Sx.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(Sx.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=MB.IN_TABLE,n===Sx.TABLE&&fT(t,e));break;case Sx.BODY:case Sx.COL:case Sx.COLGROUP:case Sx.HTML:case Sx.TBODY:case Sx.TD:case Sx.TFOOT:case Sx.TH:case Sx.THEAD:case Sx.TR:break;default:lT(t,e)}}(this,t);break;case MB.IN_COLUMN_GROUP:!function(t,e){switch(e.tagID){case Sx.COLGROUP:t.openElements.currentTagId===Sx.COLGROUP&&(t.openElements.pop(),t.insertionMode=MB.IN_TABLE);break;case Sx.TEMPLATE:qB(t,e);break;case Sx.COL:break;default:bT(t,e)}}(this,t);break;case MB.IN_TABLE_BODY:_T(this,t);break;case MB.IN_ROW:CT(this,t);break;case MB.IN_CELL:!function(t,e){const n=e.tagID;switch(n){case Sx.TD:case Sx.TH:t.openElements.hasInTableScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=MB.IN_ROW);break;case Sx.TABLE:case Sx.TBODY:case Sx.TFOOT:case Sx.THEAD:case Sx.TR:t.openElements.hasInTableScope(n)&&(t._closeTableCell(),CT(t,e));break;case Sx.BODY:case Sx.CAPTION:case Sx.COL:case Sx.COLGROUP:case Sx.HTML:break;default:lT(t,e)}}(this,t);break;case MB.IN_SELECT:BT(this,t);break;case MB.IN_SELECT_IN_TABLE:!function(t,e){const n=e.tagID;n===Sx.CAPTION||n===Sx.TABLE||n===Sx.TBODY||n===Sx.TFOOT||n===Sx.THEAD||n===Sx.TR||n===Sx.TD||n===Sx.TH?t.openElements.hasInTableScope(n)&&(t.openElements.popUntilTagNamePopped(Sx.SELECT),t._resetInsertionMode(),t.onEndTag(e)):BT(t,e)}(this,t);break;case MB.IN_TEMPLATE:!function(t,e){e.tagID===Sx.TEMPLATE&&qB(t,e)}(this,t);break;case MB.AFTER_BODY:kT(this,t);break;case MB.IN_FRAMESET:!function(t,e){e.tagID!==Sx.FRAMESET||t.openElements.isRootHtmlElementCurrent()||(t.openElements.pop(),t.fragmentContext||t.openElements.currentTagId===Sx.FRAMESET||(t.insertionMode=MB.AFTER_FRAMESET))}(this,t);break;case MB.AFTER_FRAMESET:!function(t,e){e.tagID===Sx.HTML&&(t.insertionMode=MB.AFTER_AFTER_FRAMESET)}(this,t);break;case MB.AFTER_AFTER_BODY:IT(this,t)}}onEof(t){switch(this.insertionMode){case MB.INITIAL:YB(this,t);break;case MB.BEFORE_HTML:VB(this,t);break;case MB.BEFORE_HEAD:zB(this,t);break;case MB.IN_HEAD:XB(this,t);break;case MB.IN_HEAD_NO_SCRIPT:JB(this,t);break;case MB.AFTER_HEAD:ZB(this,t);break;case MB.IN_BODY:case MB.IN_TABLE:case MB.IN_CAPTION:case MB.IN_COLUMN_GROUP:case MB.IN_TABLE_BODY:case MB.IN_ROW:case MB.IN_CELL:case MB.IN_SELECT:case MB.IN_SELECT_IN_TABLE:AT(this,t);break;case MB.TEXT:!function(t,e){t._err(e,mx.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(e)}(this,t);break;case MB.IN_TABLE_TEXT:mT(this,t);break;case MB.IN_TEMPLATE:TT(this,t);break;case MB.AFTER_BODY:case MB.IN_FRAMESET:case MB.AFTER_FRAMESET:case MB.AFTER_AFTER_BODY:case MB.AFTER_AFTER_FRAMESET:$B(this,t)}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===sx.LINE_FEED)){if(1===t.chars.length)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(t);else switch(this.insertionMode){case MB.IN_HEAD:case MB.IN_HEAD_NO_SCRIPT:case MB.AFTER_HEAD:case MB.TEXT:case MB.IN_COLUMN_GROUP:case MB.IN_SELECT:case MB.IN_SELECT_IN_TABLE:case MB.IN_FRAMESET:case MB.AFTER_FRAMESET:this._insertCharacters(t);break;case MB.IN_BODY:case MB.IN_CAPTION:case MB.IN_CELL:case MB.IN_TEMPLATE:case MB.AFTER_BODY:case MB.AFTER_AFTER_BODY:case MB.AFTER_AFTER_FRAMESET:eT(this,t);break;case MB.IN_TABLE:case MB.IN_TABLE_BODY:case MB.IN_ROW:uT(this,t);break;case MB.IN_TABLE_TEXT:pT(this,t)}}}function RB(t,e){let n=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return n?t.openElements.contains(n.element)?t.openElements.hasInScope(e.tagID)||(n=null):(t.activeFormattingElements.removeEntry(n),n=null):cT(t,e),n}function UB(t,e){let n=null,r=t.openElements.stackTop;for(;r>=0;r--){const i=t.openElements.items[r];if(i===e.element)break;t._isSpecialElement(i,t.openElements.tagIDs[r])&&(n=i)}return n||(t.openElements.shortenToLength(r<0?0:r),t.activeFormattingElements.removeEntry(e)),n}function PB(t,e,n){let r=e,i=t.openElements.getCommonAncestor(e);for(let a=0,o=i;o!==n;a++,o=i){i=t.openElements.getCommonAncestor(o);const n=t.activeFormattingElements.getElementEntry(o),s=n&&a>=3;!n||s?(s&&t.activeFormattingElements.removeEntry(n),t.openElements.remove(o)):(o=QB(t,n),r===e&&(t.activeFormattingElements.bookmark=n),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(o,r),r=o)}return r}function QB(t,e){const n=t.treeAdapter.getNamespaceURI(e.element),r=t.treeAdapter.createElement(e.token.tagName,n,e.token.attrs);return t.openElements.replace(e.element,r),e.element=r,r}function HB(t,e,n){const r=Rx(t.treeAdapter.getTagName(e));if(t._isElementCausesFosterParenting(r))t._fosterParentElement(n);else{const i=t.treeAdapter.getNamespaceURI(e);r===Sx.TEMPLATE&&i===xx.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,n)}}function GB(t,e,n){const r=t.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=t.treeAdapter.createElement(i.tagName,r,i.attrs);t._adoptNodes(e,a),t.treeAdapter.appendChild(e,a),t.activeFormattingElements.insertElementAfterBookmark(a,i),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(e,a,i.tagID)}function jB(t,e){for(let n=0;n<8;n++){const n=RB(t,e);if(!n)break;const r=UB(t,n);if(!r)break;t.activeFormattingElements.bookmark=n;const i=PB(t,r,n.element),a=t.openElements.getCommonAncestor(n.element);t.treeAdapter.detachNode(i),a&&HB(t,a,i),GB(t,r,n)}}function KB(t,e){t._appendCommentNode(e,t.openElements.currentTmplContentOrNode)}function $B(t,e){if(t.stopped=!0,e.location){const n=t.fragmentContext?0:2;for(let r=t.openElements.stackTop;r>=n;r--)t._setEndLocation(t.openElements.items[r],e);if(!t.fragmentContext&&t.openElements.stackTop>=0){const n=t.openElements.items[0],r=t.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(t._setEndLocation(n,e),t.openElements.stackTop>=1)){const n=t.openElements.items[1],r=t.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&t._setEndLocation(n,e)}}}}function YB(t,e){t._err(e,mx.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,Tx.QUIRKS),t.insertionMode=MB.BEFORE_HTML,t._processToken(e)}function VB(t,e){t._insertFakeRootElement(),t.insertionMode=MB.BEFORE_HEAD,t._processToken(e)}function zB(t,e){t._insertFakeElement(kx.HEAD,Sx.HEAD),t.headElement=t.openElements.current,t.insertionMode=MB.IN_HEAD,t._processToken(e)}function WB(t,e){switch(e.tagID){case Sx.HTML:sT(t,e);break;case Sx.BASE:case Sx.BASEFONT:case Sx.BGSOUND:case Sx.LINK:case Sx.META:t._appendElement(e,xx.HTML),e.ackSelfClosing=!0;break;case Sx.TITLE:t._switchToTextParsing(e,Kx.RCDATA);break;case Sx.NOSCRIPT:t.options.scriptingEnabled?t._switchToTextParsing(e,Kx.RAWTEXT):(t._insertElement(e,xx.HTML),t.insertionMode=MB.IN_HEAD_NO_SCRIPT);break;case Sx.NOFRAMES:case Sx.STYLE:t._switchToTextParsing(e,Kx.RAWTEXT);break;case Sx.SCRIPT:t._switchToTextParsing(e,Kx.SCRIPT_DATA);break;case Sx.TEMPLATE:t._insertTemplate(e),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=MB.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(MB.IN_TEMPLATE);break;case Sx.HEAD:t._err(e,mx.misplacedStartTagForHeadElement);break;default:XB(t,e)}}function qB(t,e){switch(e.tagID){case Sx.HEAD:t.openElements.pop(),t.insertionMode=MB.AFTER_HEAD;break;case Sx.BODY:case Sx.BR:case Sx.HTML:XB(t,e);break;case Sx.TEMPLATE:t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==Sx.TEMPLATE&&t._err(e,mx.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(Sx.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(e,mx.endTagWithoutMatchingOpenElement);break;default:t._err(e,mx.endTagWithoutMatchingOpenElement)}}function XB(t,e){t.openElements.pop(),t.insertionMode=MB.AFTER_HEAD,t._processToken(e)}function JB(t,e){const n=e.type===vx.EOF?mx.openElementsLeftAfterEof:mx.disallowedContentInNoscriptInHead;t._err(e,n),t.openElements.pop(),t.insertionMode=MB.IN_HEAD,t._processToken(e)}function ZB(t,e){t._insertFakeElement(kx.BODY,Sx.BODY),t.insertionMode=MB.IN_BODY,tT(t,e)}function tT(t,e){switch(e.type){case vx.CHARACTER:nT(t,e);break;case vx.WHITESPACE_CHARACTER:eT(t,e);break;case vx.COMMENT:KB(t,e);break;case vx.START_TAG:sT(t,e);break;case vx.END_TAG:lT(t,e);break;case vx.EOF:AT(t,e)}}function eT(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function nT(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function rT(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,xx.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function iT(t){const e=bx(t,Bx.TYPE);return null!=e&&"hidden"===e.toLowerCase()}function aT(t,e){t._switchToTextParsing(e,Kx.RAWTEXT)}function oT(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,xx.HTML)}function sT(t,e){switch(e.tagID){case Sx.I:case Sx.S:case Sx.B:case Sx.U:case Sx.EM:case Sx.TT:case Sx.BIG:case Sx.CODE:case Sx.FONT:case Sx.SMALL:case Sx.STRIKE:case Sx.STRONG:!function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,xx.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e);break;case Sx.A:!function(t,e){const n=t.activeFormattingElements.getElementEntryInScopeWithTagName(kx.A);n&&(jB(t,e),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(e,xx.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e);break;case Sx.H1:case Sx.H2:case Sx.H3:case Sx.H4:case Sx.H5:case Sx.H6:!function(t,e){t.openElements.hasInButtonScope(Sx.P)&&t._closePElement(),Qx(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(e,xx.HTML)}(t,e);break;case Sx.P:case Sx.DL:case Sx.OL:case Sx.UL:case Sx.DIV:case Sx.DIR:case Sx.NAV:case Sx.MAIN:case Sx.MENU:case Sx.ASIDE:case Sx.CENTER:case Sx.FIGURE:case Sx.FOOTER:case Sx.HEADER:case Sx.HGROUP:case Sx.DIALOG:case Sx.DETAILS:case Sx.ADDRESS:case Sx.ARTICLE:case Sx.SECTION:case Sx.SUMMARY:case Sx.FIELDSET:case Sx.BLOCKQUOTE:case Sx.FIGCAPTION:!function(t,e){t.openElements.hasInButtonScope(Sx.P)&&t._closePElement(),t._insertElement(e,xx.HTML)}(t,e);break;case Sx.LI:case Sx.DD:case Sx.DT:!function(t,e){t.framesetOk=!1;const n=e.tagID;for(let e=t.openElements.stackTop;e>=0;e--){const r=t.openElements.tagIDs[e];if(n===Sx.LI&&r===Sx.LI||(n===Sx.DD||n===Sx.DT)&&(r===Sx.DD||r===Sx.DT)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.popUntilTagNamePopped(r);break}if(r!==Sx.ADDRESS&&r!==Sx.DIV&&r!==Sx.P&&t._isSpecialElement(t.openElements.items[e],r))break}t.openElements.hasInButtonScope(Sx.P)&&t._closePElement(),t._insertElement(e,xx.HTML)}(t,e);break;case Sx.BR:case Sx.IMG:case Sx.WBR:case Sx.AREA:case Sx.EMBED:case Sx.KEYGEN:rT(t,e);break;case Sx.HR:!function(t,e){t.openElements.hasInButtonScope(Sx.P)&&t._closePElement(),t._appendElement(e,xx.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}(t,e);break;case Sx.RB:case Sx.RTC:!function(t,e){t.openElements.hasInScope(Sx.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,xx.HTML)}(t,e);break;case Sx.RT:case Sx.RP:!function(t,e){t.openElements.hasInScope(Sx.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(Sx.RTC),t._insertElement(e,xx.HTML)}(t,e);break;case Sx.PRE:case Sx.LISTING:!function(t,e){t.openElements.hasInButtonScope(Sx.P)&&t._closePElement(),t._insertElement(e,xx.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}(t,e);break;case Sx.XMP:!function(t,e){t.openElements.hasInButtonScope(Sx.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,Kx.RAWTEXT)}(t,e);break;case Sx.SVG:!function(t,e){t._reconstructActiveFormattingElements(),SB(e),IB(e),e.selfClosing?t._appendElement(e,xx.SVG):t._insertElement(e,xx.SVG),e.ackSelfClosing=!0}(t,e);break;case Sx.HTML:!function(t,e){0===t.openElements.tmplCount&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}(t,e);break;case Sx.BASE:case Sx.LINK:case Sx.META:case Sx.STYLE:case Sx.TITLE:case Sx.SCRIPT:case Sx.BGSOUND:case Sx.BASEFONT:case Sx.TEMPLATE:WB(t,e);break;case Sx.BODY:!function(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&0===t.openElements.tmplCount&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,e.attrs))}(t,e);break;case Sx.FORM:!function(t,e){const n=t.openElements.tmplCount>0;t.formElement&&!n||(t.openElements.hasInButtonScope(Sx.P)&&t._closePElement(),t._insertElement(e,xx.HTML),n||(t.formElement=t.openElements.current))}(t,e);break;case Sx.NOBR:!function(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(Sx.NOBR)&&(jB(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,xx.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e);break;case Sx.MATH:!function(t,e){t._reconstructActiveFormattingElements(),kB(e),IB(e),e.selfClosing?t._appendElement(e,xx.MATHML):t._insertElement(e,xx.MATHML),e.ackSelfClosing=!0}(t,e);break;case Sx.TABLE:!function(t,e){t.treeAdapter.getDocumentMode(t.document)!==Tx.QUIRKS&&t.openElements.hasInButtonScope(Sx.P)&&t._closePElement(),t._insertElement(e,xx.HTML),t.framesetOk=!1,t.insertionMode=MB.IN_TABLE}(t,e);break;case Sx.INPUT:!function(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,xx.HTML),iT(e)||(t.framesetOk=!1),e.ackSelfClosing=!0}(t,e);break;case Sx.PARAM:case Sx.TRACK:case Sx.SOURCE:!function(t,e){t._appendElement(e,xx.HTML),e.ackSelfClosing=!0}(t,e);break;case Sx.IMAGE:!function(t,e){e.tagName=kx.IMG,e.tagID=Sx.IMG,rT(t,e)}(t,e);break;case Sx.BUTTON:!function(t,e){t.openElements.hasInScope(Sx.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(Sx.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,xx.HTML),t.framesetOk=!1}(t,e);break;case Sx.APPLET:case Sx.OBJECT:case Sx.MARQUEE:!function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,xx.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}(t,e);break;case Sx.IFRAME:!function(t,e){t.framesetOk=!1,t._switchToTextParsing(e,Kx.RAWTEXT)}(t,e);break;case Sx.SELECT:!function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,xx.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===MB.IN_TABLE||t.insertionMode===MB.IN_CAPTION||t.insertionMode===MB.IN_TABLE_BODY||t.insertionMode===MB.IN_ROW||t.insertionMode===MB.IN_CELL?MB.IN_SELECT_IN_TABLE:MB.IN_SELECT}(t,e);break;case Sx.OPTION:case Sx.OPTGROUP:!function(t,e){t.openElements.currentTagId===Sx.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,xx.HTML)}(t,e);break;case Sx.NOEMBED:aT(t,e);break;case Sx.FRAMESET:!function(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,xx.HTML),t.insertionMode=MB.IN_FRAMESET)}(t,e);break;case Sx.TEXTAREA:!function(t,e){t._insertElement(e,xx.HTML),t.skipNextNewLine=!0,t.tokenizer.state=Kx.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=MB.TEXT}(t,e);break;case Sx.NOSCRIPT:t.options.scriptingEnabled?aT(t,e):oT(t,e);break;case Sx.PLAINTEXT:!function(t,e){t.openElements.hasInButtonScope(Sx.P)&&t._closePElement(),t._insertElement(e,xx.HTML),t.tokenizer.state=Kx.PLAINTEXT}(t,e);break;case Sx.COL:case Sx.TH:case Sx.TD:case Sx.TR:case Sx.HEAD:case Sx.FRAME:case Sx.TBODY:case Sx.TFOOT:case Sx.THEAD:case Sx.CAPTION:case Sx.COLGROUP:break;default:oT(t,e)}}function cT(t,e){const n=e.tagName,r=e.tagID;for(let e=t.openElements.stackTop;e>0;e--){const i=t.openElements.items[e],a=t.openElements.tagIDs[e];if(r===a&&(r!==Sx.UNKNOWN||t.treeAdapter.getTagName(i)===n)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.stackTop>=e&&t.openElements.shortenToLength(e);break}if(t._isSpecialElement(i,a))break}}function lT(t,e){switch(e.tagID){case Sx.A:case Sx.B:case Sx.I:case Sx.S:case Sx.U:case Sx.EM:case Sx.TT:case Sx.BIG:case Sx.CODE:case Sx.FONT:case Sx.NOBR:case Sx.SMALL:case Sx.STRIKE:case Sx.STRONG:jB(t,e);break;case Sx.P:!function(t){t.openElements.hasInButtonScope(Sx.P)||t._insertFakeElement(kx.P,Sx.P),t._closePElement()}(t);break;case Sx.DL:case Sx.UL:case Sx.OL:case Sx.DIR:case Sx.DIV:case Sx.NAV:case Sx.PRE:case Sx.MAIN:case Sx.MENU:case Sx.ASIDE:case Sx.CENTER:case Sx.FIGURE:case Sx.FOOTER:case Sx.HEADER:case Sx.HGROUP:case Sx.DIALOG:case Sx.ADDRESS:case Sx.ARTICLE:case Sx.DETAILS:case Sx.SECTION:case Sx.SUMMARY:case Sx.LISTING:case Sx.FIELDSET:case Sx.BLOCKQUOTE:case Sx.FIGCAPTION:!function(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n))}(t,e);break;case Sx.LI:!function(t){t.openElements.hasInListItemScope(Sx.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(Sx.LI),t.openElements.popUntilTagNamePopped(Sx.LI))}(t);break;case Sx.DD:case Sx.DT:!function(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilTagNamePopped(n))}(t,e);break;case Sx.H1:case Sx.H2:case Sx.H3:case Sx.H4:case Sx.H5:case Sx.H6:!function(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}(t);break;case Sx.BR:!function(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(kx.BR,Sx.BR),t.openElements.pop(),t.framesetOk=!1}(t);break;case Sx.BODY:!function(t,e){if(t.openElements.hasInScope(Sx.BODY)&&(t.insertionMode=MB.AFTER_BODY,t.options.sourceCodeLocationInfo)){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t._setEndLocation(n,e)}}(t,e);break;case Sx.HTML:!function(t,e){t.openElements.hasInScope(Sx.BODY)&&(t.insertionMode=MB.AFTER_BODY,kT(t,e))}(t,e);break;case Sx.FORM:!function(t){const e=t.openElements.tmplCount>0,{formElement:n}=t;e||(t.formElement=null),(n||e)&&t.openElements.hasInScope(Sx.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(Sx.FORM):n&&t.openElements.remove(n))}(t);break;case Sx.APPLET:case Sx.OBJECT:case Sx.MARQUEE:!function(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker())}(t,e);break;case Sx.TEMPLATE:qB(t,e);break;default:cT(t,e)}}function AT(t,e){t.tmplInsertionModeStack.length>0?TT(t,e):$B(t,e)}function uT(t,e){if(DB.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=MB.IN_TABLE_TEXT,e.type){case vx.CHARACTER:gT(t,e);break;case vx.WHITESPACE_CHARACTER:pT(t,e)}else dT(t,e)}function hT(t,e){switch(e.tagID){case Sx.TD:case Sx.TH:case Sx.TR:!function(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(kx.TBODY,Sx.TBODY),t.insertionMode=MB.IN_TABLE_BODY,wT(t,e)}(t,e);break;case Sx.STYLE:case Sx.SCRIPT:case Sx.TEMPLATE:WB(t,e);break;case Sx.COL:!function(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(kx.COLGROUP,Sx.COLGROUP),t.insertionMode=MB.IN_COLUMN_GROUP,vT(t,e)}(t,e);break;case Sx.FORM:!function(t,e){t.formElement||0!==t.openElements.tmplCount||(t._insertElement(e,xx.HTML),t.formElement=t.openElements.current,t.openElements.pop())}(t,e);break;case Sx.TABLE:!function(t,e){t.openElements.hasInTableScope(Sx.TABLE)&&(t.openElements.popUntilTagNamePopped(Sx.TABLE),t._resetInsertionMode(),t._processStartTag(e))}(t,e);break;case Sx.TBODY:case Sx.TFOOT:case Sx.THEAD:!function(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,xx.HTML),t.insertionMode=MB.IN_TABLE_BODY}(t,e);break;case Sx.INPUT:!function(t,e){iT(e)?t._appendElement(e,xx.HTML):dT(t,e),e.ackSelfClosing=!0}(t,e);break;case Sx.CAPTION:!function(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,xx.HTML),t.insertionMode=MB.IN_CAPTION}(t,e);break;case Sx.COLGROUP:!function(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,xx.HTML),t.insertionMode=MB.IN_COLUMN_GROUP}(t,e);break;default:dT(t,e)}}function fT(t,e){switch(e.tagID){case Sx.TABLE:t.openElements.hasInTableScope(Sx.TABLE)&&(t.openElements.popUntilTagNamePopped(Sx.TABLE),t._resetInsertionMode());break;case Sx.TEMPLATE:qB(t,e);break;case Sx.BODY:case Sx.CAPTION:case Sx.COL:case Sx.COLGROUP:case Sx.HTML:case Sx.TBODY:case Sx.TD:case Sx.TFOOT:case Sx.TH:case Sx.THEAD:case Sx.TR:break;default:dT(t,e)}}function dT(t,e){const n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,tT(t,e),t.fosterParentingEnabled=n}function pT(t,e){t.pendingCharacterTokens.push(e)}function gT(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function mT(t,e){let n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n<t.pendingCharacterTokens.length;n++)dT(t,t.pendingCharacterTokens[n]);else for(;n<t.pendingCharacterTokens.length;n++)t._insertCharacters(t.pendingCharacterTokens[n]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}const yT=new Set([Sx.CAPTION,Sx.COL,Sx.COLGROUP,Sx.TBODY,Sx.TD,Sx.TFOOT,Sx.TH,Sx.THEAD,Sx.TR]);function vT(t,e){switch(e.tagID){case Sx.HTML:sT(t,e);break;case Sx.COL:t._appendElement(e,xx.HTML),e.ackSelfClosing=!0;break;case Sx.TEMPLATE:WB(t,e);break;default:bT(t,e)}}function bT(t,e){t.openElements.currentTagId===Sx.COLGROUP&&(t.openElements.pop(),t.insertionMode=MB.IN_TABLE,t._processToken(e))}function wT(t,e){switch(e.tagID){case Sx.TR:t.openElements.clearBackToTableBodyContext(),t._insertElement(e,xx.HTML),t.insertionMode=MB.IN_ROW;break;case Sx.TH:case Sx.TD:t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(kx.TR,Sx.TR),t.insertionMode=MB.IN_ROW,ET(t,e);break;case Sx.CAPTION:case Sx.COL:case Sx.COLGROUP:case Sx.TBODY:case Sx.TFOOT:case Sx.THEAD:t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=MB.IN_TABLE,hT(t,e));break;default:hT(t,e)}}function _T(t,e){const n=e.tagID;switch(e.tagID){case Sx.TBODY:case Sx.TFOOT:case Sx.THEAD:t.openElements.hasInTableScope(n)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=MB.IN_TABLE);break;case Sx.TABLE:t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=MB.IN_TABLE,fT(t,e));break;case Sx.BODY:case Sx.CAPTION:case Sx.COL:case Sx.COLGROUP:case Sx.HTML:case Sx.TD:case Sx.TH:case Sx.TR:break;default:fT(t,e)}}function ET(t,e){switch(e.tagID){case Sx.TH:case Sx.TD:t.openElements.clearBackToTableRowContext(),t._insertElement(e,xx.HTML),t.insertionMode=MB.IN_CELL,t.activeFormattingElements.insertMarker();break;case Sx.CAPTION:case Sx.COL:case Sx.COLGROUP:case Sx.TBODY:case Sx.TFOOT:case Sx.THEAD:case Sx.TR:t.openElements.hasInTableScope(Sx.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=MB.IN_TABLE_BODY,wT(t,e));break;default:hT(t,e)}}function CT(t,e){switch(e.tagID){case Sx.TR:t.openElements.hasInTableScope(Sx.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=MB.IN_TABLE_BODY);break;case Sx.TABLE:t.openElements.hasInTableScope(Sx.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=MB.IN_TABLE_BODY,_T(t,e));break;case Sx.TBODY:case Sx.TFOOT:case Sx.THEAD:(t.openElements.hasInTableScope(e.tagID)||t.openElements.hasInTableScope(Sx.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=MB.IN_TABLE_BODY,_T(t,e));break;case Sx.BODY:case Sx.CAPTION:case Sx.COL:case Sx.COLGROUP:case Sx.HTML:case Sx.TD:case Sx.TH:break;default:fT(t,e)}}function xT(t,e){switch(e.tagID){case Sx.HTML:sT(t,e);break;case Sx.OPTION:t.openElements.currentTagId===Sx.OPTION&&t.openElements.pop(),t._insertElement(e,xx.HTML);break;case Sx.OPTGROUP:t.openElements.currentTagId===Sx.OPTION&&t.openElements.pop(),t.openElements.currentTagId===Sx.OPTGROUP&&t.openElements.pop(),t._insertElement(e,xx.HTML);break;case Sx.INPUT:case Sx.KEYGEN:case Sx.TEXTAREA:case Sx.SELECT:t.openElements.hasInSelectScope(Sx.SELECT)&&(t.openElements.popUntilTagNamePopped(Sx.SELECT),t._resetInsertionMode(),e.tagID!==Sx.SELECT&&t._processStartTag(e));break;case Sx.SCRIPT:case Sx.TEMPLATE:WB(t,e)}}function BT(t,e){switch(e.tagID){case Sx.OPTGROUP:t.openElements.stackTop>0&&t.openElements.currentTagId===Sx.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===Sx.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===Sx.OPTGROUP&&t.openElements.pop();break;case Sx.OPTION:t.openElements.currentTagId===Sx.OPTION&&t.openElements.pop();break;case Sx.SELECT:t.openElements.hasInSelectScope(Sx.SELECT)&&(t.openElements.popUntilTagNamePopped(Sx.SELECT),t._resetInsertionMode());break;case Sx.TEMPLATE:qB(t,e)}}function TT(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(Sx.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(e)):$B(t,e)}function kT(t,e){var n;if(e.tagID===Sx.HTML){if(t.fragmentContext||(t.insertionMode=MB.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===Sx.HTML){t._setEndLocation(t.openElements.items[0],e);const r=t.openElements.items[1];r&&!(null===(n=t.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&t._setEndLocation(r,e)}}else ST(t,e)}function ST(t,e){t.insertionMode=MB.IN_BODY,tT(t,e)}function IT(t,e){t.insertionMode=MB.IN_BODY,tT(t,e)}function NT(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==xx.HTML&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}var MT=r((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.getCodePoint=e.xmlReplacer=void 0,e.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var n=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function r(t){for(var r,i="",a=0;null!==(r=e.xmlReplacer.exec(t));){var o=r.index,s=t.charCodeAt(o),c=n.get(s);void 0!==c?(i+=t.substring(a,o)+c,a=o+1):(i+="".concat(t.substring(a,o),"&#x").concat((0,e.getCodePoint)(t,o).toString(16),";"),a=e.xmlReplacer.lastIndex+=Number(55296==(64512&s)))}return i+t.substr(a)}function i(t,e){return function(n){for(var r,i=0,a="";r=t.exec(n);)i!==r.index&&(a+=n.substring(i,r.index)),a+=e.get(r[0].charCodeAt(0)),i=r.index+1;return a+n.substring(i)}}e.getCodePoint=null!=String.prototype.codePointAt?function(t,e){return t.codePointAt(e)}:function(t,e){return 55296==(64512&t.charCodeAt(e))?1024*(t.charCodeAt(e)-55296)+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e)},e.encodeXML=r,e.escape=r,e.escapeUTF8=i(/[&<>'"]/g,n),e.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),e.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))}));n(MT);var FT=MT.escapeText,DT=MT.escapeAttribute;MT.escapeUTF8,MT.escape,MT.encodeXML,MT.getCodePoint,MT.xmlReplacer;const LT=new Set([kx.AREA,kx.BASE,kx.BASEFONT,kx.BGSOUND,kx.BR,kx.COL,kx.EMBED,kx.FRAME,kx.HR,kx.IMG,kx.INPUT,kx.KEYGEN,kx.LINK,kx.META,kx.PARAM,kx.SOURCE,kx.TRACK,kx.WBR]);const OT={treeAdapter:pB,scriptingEnabled:!0};function RT(t,e){return UT(t,{...OT,...e})}function UT(t,e){return e.treeAdapter.isElementNode(t)?function(t,e){const n=e.treeAdapter.getTagName(t);return`<${n}${function(t,{treeAdapter:e}){let n="";for(const r of e.getAttrList(t)){if(n+=" ",r.namespace)switch(r.namespace){case xx.XML:n+="xml:"+r.name;break;case xx.XMLNS:"xmlns"!==r.name&&(n+="xmlns:"),n+=r.name;break;case xx.XLINK:n+="xlink:"+r.name;break;default:n+=`${r.prefix}:${r.name}`}else n+=r.name;n+=`="${DT(r.value)}"`}return n}(t,e)}>${function(t,e){return e.treeAdapter.isElementNode(t)&&e.treeAdapter.getNamespaceURI(t)===xx.HTML&&LT.has(e.treeAdapter.getTagName(t))}(t,e)?"":`${function(t,e){let n="";const r=e.treeAdapter.isElementNode(t)&&e.treeAdapter.getTagName(t)===kx.TEMPLATE&&e.treeAdapter.getNamespaceURI(t)===xx.HTML?e.treeAdapter.getTemplateContent(t):t,i=e.treeAdapter.getChildNodes(r);if(i)for(const t of i)n+=UT(t,e);return n}(t,e)}</${n}>`}`}(t,e):e.treeAdapter.isTextNode(t)?function(t,e){const{treeAdapter:n}=e,r=n.getTextNodeContent(t),i=n.getParentNode(t),a=i&&n.isElementNode(i)&&n.getTagName(i);return a&&n.getNamespaceURI(i)===xx.HTML&&(o=a,s=e.scriptingEnabled,Hx.has(o)||s&&o===kx.NOSCRIPT)?r:FT(r);var o,s}(t,e):e.treeAdapter.isCommentNode(t)?function(t,{treeAdapter:e}){return`\x3c!--${e.getCommentNodeContent(t)}--\x3e`}(t,e):e.treeAdapter.isDocumentTypeNode(t)?function(t,{treeAdapter:e}){return`<!DOCTYPE ${e.getDocumentTypeNodeName(t)}>`}(t,e):""}jA("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),XA);var PT=R.Set,QT=Math.min,HT=[].lastIndexOf,GT=!!HT&&1/[1].lastIndexOf(1,-0)<0,jT=Ca("lastIndexOf"),KT=GT||!jT?function(t){if(GT)return f(HT,this,arguments)||0;var e=L(this),n=Me(e),r=n-1;for(arguments.length>1&&(r=QT(r,Be(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}:HT;Wt({target:"Array",proto:!0,forced:KT!==[].lastIndexOf},{lastIndexOf:KT});mn("Array").lastIndexOf,mn("Array").entries;var $T,YT,VT,zT,WT,qT,XT,JT,ZT,tk=JA;new PT([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);!function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",t[t.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_F=102]="LATIN_SMALL_F",t[t.LATIN_SMALL_X=120]="LATIN_SMALL_X",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",t[t.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}($T||($T={})),function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.noncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(YT||(YT={})),function(t){t[t.CHARACTER=0]="CHARACTER",t[t.NULL_CHARACTER=1]="NULL_CHARACTER",t[t.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",t[t.START_TAG=3]="START_TAG",t[t.END_TAG=4]="END_TAG",t[t.COMMENT=5]="COMMENT",t[t.DOCTYPE=6]="DOCTYPE",t[t.EOF=7]="EOF",t[t.HIBERNATION=8]="HIBERNATION"}(VT||(VT={})),function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"}(WT||(WT={})),function(t){t.TYPE="type",t.ACTION="action",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"}(qT||(qT={})),function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"}(XT||(XT={})),function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="strike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"}(JT||(JT={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SECTION=94]="SECTION",t[t.SELECT=95]="SELECT",t[t.SOURCE=96]="SOURCE",t[t.SMALL=97]="SMALL",t[t.SPAN=98]="SPAN",t[t.STRIKE=99]="STRIKE",t[t.STRONG=100]="STRONG",t[t.STYLE=101]="STYLE",t[t.SUB=102]="SUB",t[t.SUMMARY=103]="SUMMARY",t[t.SUP=104]="SUP",t[t.TABLE=105]="TABLE",t[t.TBODY=106]="TBODY",t[t.TEMPLATE=107]="TEMPLATE",t[t.TEXTAREA=108]="TEXTAREA",t[t.TFOOT=109]="TFOOT",t[t.TD=110]="TD",t[t.TH=111]="TH",t[t.THEAD=112]="THEAD",t[t.TITLE=113]="TITLE",t[t.TR=114]="TR",t[t.TRACK=115]="TRACK",t[t.TT=116]="TT",t[t.U=117]="U",t[t.UL=118]="UL",t[t.SVG=119]="SVG",t[t.VAR=120]="VAR",t[t.WBR=121]="WBR",t[t.XMP=122]="XMP"}(ZT||(ZT={}));new tk([[JT.A,ZT.A],[JT.ADDRESS,ZT.ADDRESS],[JT.ANNOTATION_XML,ZT.ANNOTATION_XML],[JT.APPLET,ZT.APPLET],[JT.AREA,ZT.AREA],[JT.ARTICLE,ZT.ARTICLE],[JT.ASIDE,ZT.ASIDE],[JT.B,ZT.B],[JT.BASE,ZT.BASE],[JT.BASEFONT,ZT.BASEFONT],[JT.BGSOUND,ZT.BGSOUND],[JT.BIG,ZT.BIG],[JT.BLOCKQUOTE,ZT.BLOCKQUOTE],[JT.BODY,ZT.BODY],[JT.BR,ZT.BR],[JT.BUTTON,ZT.BUTTON],[JT.CAPTION,ZT.CAPTION],[JT.CENTER,ZT.CENTER],[JT.CODE,ZT.CODE],[JT.COL,ZT.COL],[JT.COLGROUP,ZT.COLGROUP],[JT.DD,ZT.DD],[JT.DESC,ZT.DESC],[JT.DETAILS,ZT.DETAILS],[JT.DIALOG,ZT.DIALOG],[JT.DIR,ZT.DIR],[JT.DIV,ZT.DIV],[JT.DL,ZT.DL],[JT.DT,ZT.DT],[JT.EM,ZT.EM],[JT.EMBED,ZT.EMBED],[JT.FIELDSET,ZT.FIELDSET],[JT.FIGCAPTION,ZT.FIGCAPTION],[JT.FIGURE,ZT.FIGURE],[JT.FONT,ZT.FONT],[JT.FOOTER,ZT.FOOTER],[JT.FOREIGN_OBJECT,ZT.FOREIGN_OBJECT],[JT.FORM,ZT.FORM],[JT.FRAME,ZT.FRAME],[JT.FRAMESET,ZT.FRAMESET],[JT.H1,ZT.H1],[JT.H2,ZT.H2],[JT.H3,ZT.H3],[JT.H4,ZT.H4],[JT.H5,ZT.H5],[JT.H6,ZT.H6],[JT.HEAD,ZT.HEAD],[JT.HEADER,ZT.HEADER],[JT.HGROUP,ZT.HGROUP],[JT.HR,ZT.HR],[JT.HTML,ZT.HTML],[JT.I,ZT.I],[JT.IMG,ZT.IMG],[JT.IMAGE,ZT.IMAGE],[JT.INPUT,ZT.INPUT],[JT.IFRAME,ZT.IFRAME],[JT.KEYGEN,ZT.KEYGEN],[JT.LABEL,ZT.LABEL],[JT.LI,ZT.LI],[JT.LINK,ZT.LINK],[JT.LISTING,ZT.LISTING],[JT.MAIN,ZT.MAIN],[JT.MALIGNMARK,ZT.MALIGNMARK],[JT.MARQUEE,ZT.MARQUEE],[JT.MATH,ZT.MATH],[JT.MENU,ZT.MENU],[JT.META,ZT.META],[JT.MGLYPH,ZT.MGLYPH],[JT.MI,ZT.MI],[JT.MO,ZT.MO],[JT.MN,ZT.MN],[JT.MS,ZT.MS],[JT.MTEXT,ZT.MTEXT],[JT.NAV,ZT.NAV],[JT.NOBR,ZT.NOBR],[JT.NOFRAMES,ZT.NOFRAMES],[JT.NOEMBED,ZT.NOEMBED],[JT.NOSCRIPT,ZT.NOSCRIPT],[JT.OBJECT,ZT.OBJECT],[JT.OL,ZT.OL],[JT.OPTGROUP,ZT.OPTGROUP],[JT.OPTION,ZT.OPTION],[JT.P,ZT.P],[JT.PARAM,ZT.PARAM],[JT.PLAINTEXT,ZT.PLAINTEXT],[JT.PRE,ZT.PRE],[JT.RB,ZT.RB],[JT.RP,ZT.RP],[JT.RT,ZT.RT],[JT.RTC,ZT.RTC],[JT.RUBY,ZT.RUBY],[JT.S,ZT.S],[JT.SCRIPT,ZT.SCRIPT],[JT.SECTION,ZT.SECTION],[JT.SELECT,ZT.SELECT],[JT.SOURCE,ZT.SOURCE],[JT.SMALL,ZT.SMALL],[JT.SPAN,ZT.SPAN],[JT.STRIKE,ZT.STRIKE],[JT.STRONG,ZT.STRONG],[JT.STYLE,ZT.STYLE],[JT.SUB,ZT.SUB],[JT.SUMMARY,ZT.SUMMARY],[JT.SUP,ZT.SUP],[JT.TABLE,ZT.TABLE],[JT.TBODY,ZT.TBODY],[JT.TEMPLATE,ZT.TEMPLATE],[JT.TEXTAREA,ZT.TEXTAREA],[JT.TFOOT,ZT.TFOOT],[JT.TD,ZT.TD],[JT.TH,ZT.TH],[JT.THEAD,ZT.THEAD],[JT.TITLE,ZT.TITLE],[JT.TR,ZT.TR],[JT.TRACK,ZT.TRACK],[JT.TT,ZT.TT],[JT.U,ZT.U],[JT.UL,ZT.UL],[JT.SVG,ZT.SVG],[JT.VAR,ZT.VAR],[JT.WBR,ZT.WBR],[JT.XMP,ZT.XMP]]);var ek,nk=ZT;co(zT={},WT.HTML,new PT([nk.ADDRESS,nk.APPLET,nk.AREA,nk.ARTICLE,nk.ASIDE,nk.BASE,nk.BASEFONT,nk.BGSOUND,nk.BLOCKQUOTE,nk.BODY,nk.BR,nk.BUTTON,nk.CAPTION,nk.CENTER,nk.COL,nk.COLGROUP,nk.DD,nk.DETAILS,nk.DIR,nk.DIV,nk.DL,nk.DT,nk.EMBED,nk.FIELDSET,nk.FIGCAPTION,nk.FIGURE,nk.FOOTER,nk.FORM,nk.FRAME,nk.FRAMESET,nk.H1,nk.H2,nk.H3,nk.H4,nk.H5,nk.H6,nk.HEAD,nk.HEADER,nk.HGROUP,nk.HR,nk.HTML,nk.IFRAME,nk.IMG,nk.INPUT,nk.LI,nk.LINK,nk.LISTING,nk.MAIN,nk.MARQUEE,nk.MENU,nk.META,nk.NAV,nk.NOEMBED,nk.NOFRAMES,nk.NOSCRIPT,nk.OBJECT,nk.OL,nk.P,nk.PARAM,nk.PLAINTEXT,nk.PRE,nk.SCRIPT,nk.SECTION,nk.SELECT,nk.SOURCE,nk.STYLE,nk.SUMMARY,nk.TABLE,nk.TBODY,nk.TD,nk.TEMPLATE,nk.TEXTAREA,nk.TFOOT,nk.TH,nk.THEAD,nk.TITLE,nk.TR,nk.TRACK,nk.UL,nk.WBR,nk.XMP])),co(zT,WT.MATHML,new PT([nk.MI,nk.MO,nk.MN,nk.MS,nk.MTEXT,nk.ANNOTATION_XML])),co(zT,WT.SVG,new PT([nk.TITLE,nk.FOREIGN_OBJECT,nk.DESC])),co(zT,WT.XLINK,new PT),co(zT,WT.XML,new PT),co(zT,WT.XMLNS,new PT),new PT([JT.STYLE,JT.SCRIPT,JT.XMP,JT.IFRAME,JT.NOEMBED,JT.NOFRAMES,JT.PLAINTEXT]),new tk([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);!function(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",t[t.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",t[t.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",t[t.DECIMAL_CHARACTER_REFERENCE_START=76]="DECIMAL_CHARACTER_REFERENCE_START",t[t.HEXADEMICAL_CHARACTER_REFERENCE=77]="HEXADEMICAL_CHARACTER_REFERENCE",t[t.DECIMAL_CHARACTER_REFERENCE=78]="DECIMAL_CHARACTER_REFERENCE",t[t.NUMERIC_CHARACTER_REFERENCE_END=79]="NUMERIC_CHARACTER_REFERENCE_END"}(ek||(ek={}));ek.DATA,ek.RCDATA,ek.RAWTEXT,ek.SCRIPT_DATA,ek.PLAINTEXT,ek.CDATA_SECTION;var rk,ik,ak=new PT([ZT.DD,ZT.DT,ZT.LI,ZT.OPTGROUP,ZT.OPTION,ZT.P,ZT.RB,ZT.RP,ZT.RT,ZT.RTC]);new PT(uo(rk=[]).call(rk,Ku(ak),[ZT.CAPTION,ZT.COLGROUP,ZT.TBODY,ZT.TD,ZT.TFOOT,ZT.TH,ZT.THEAD,ZT.TR])),new tk([[ZT.APPLET,WT.HTML],[ZT.CAPTION,WT.HTML],[ZT.HTML,WT.HTML],[ZT.MARQUEE,WT.HTML],[ZT.OBJECT,WT.HTML],[ZT.TABLE,WT.HTML],[ZT.TD,WT.HTML],[ZT.TEMPLATE,WT.HTML],[ZT.TH,WT.HTML],[ZT.ANNOTATION_XML,WT.MATHML],[ZT.MI,WT.MATHML],[ZT.MN,WT.MATHML],[ZT.MO,WT.MATHML],[ZT.MS,WT.MATHML],[ZT.MTEXT,WT.MATHML],[ZT.DESC,WT.SVG],[ZT.FOREIGN_OBJECT,WT.SVG],[ZT.TITLE,WT.SVG]]),ZT.H1,ZT.H2,ZT.H3,ZT.H4,ZT.H5,ZT.H6,ZT.TR,ZT.TEMPLATE,ZT.HTML,ZT.TBODY,ZT.TFOOT,ZT.THEAD,ZT.TEMPLATE,ZT.HTML,ZT.TABLE,ZT.TEMPLATE,ZT.HTML,ZT.TD,ZT.TH;!function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"}(ik||(ik={}));var ok,sk,ck;ik.Marker;!function(t){t.Document="#document",t.DocumentFragment="#document-fragment",t.Comment="#comment",t.Text="#text",t.DocumentType="#documentType"}(ok||(ok={}));var lk,Ak,uk;uo(sk=[]).call(sk,["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),new PT(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),uo(ck=[]).call(ck,["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),new tk(_A(lk=["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"]).call(lk,(function(t){return[t.toLowerCase(),t]}))),new tk([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:WT.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:WT.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:WT.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:WT.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:WT.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:WT.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:WT.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:WT.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:WT.XML}],["xml:space",{prefix:"xml",name:"space",namespace:WT.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:WT.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:WT.XMLNS}]]),new tk(_A(Ak=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"]).call(Ak,(function(t){return[t.toLowerCase(),t]}))),new PT([ZT.B,ZT.BIG,ZT.BLOCKQUOTE,ZT.BODY,ZT.BR,ZT.CENTER,ZT.CODE,ZT.DD,ZT.DIV,ZT.DL,ZT.DT,ZT.EM,ZT.EMBED,ZT.H1,ZT.H2,ZT.H3,ZT.H4,ZT.H5,ZT.H6,ZT.HEAD,ZT.HR,ZT.I,ZT.IMG,ZT.LI,ZT.LISTING,ZT.MENU,ZT.META,ZT.NOBR,ZT.OL,ZT.P,ZT.PRE,ZT.RUBY,ZT.S,ZT.SMALL,ZT.SPAN,ZT.STRONG,ZT.STRIKE,ZT.SUB,ZT.SUP,ZT.TABLE,ZT.TT,ZT.U,ZT.UL,ZT.VAR]);!function(t){t[t.INITIAL=0]="INITIAL",t[t.BEFORE_HTML=1]="BEFORE_HTML",t[t.BEFORE_HEAD=2]="BEFORE_HEAD",t[t.IN_HEAD=3]="IN_HEAD",t[t.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",t[t.AFTER_HEAD=5]="AFTER_HEAD",t[t.IN_BODY=6]="IN_BODY",t[t.TEXT=7]="TEXT",t[t.IN_TABLE=8]="IN_TABLE",t[t.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",t[t.IN_CAPTION=10]="IN_CAPTION",t[t.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",t[t.IN_TABLE_BODY=12]="IN_TABLE_BODY",t[t.IN_ROW=13]="IN_ROW",t[t.IN_CELL=14]="IN_CELL",t[t.IN_SELECT=15]="IN_SELECT",t[t.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",t[t.IN_TEMPLATE=17]="IN_TEMPLATE",t[t.AFTER_BODY=18]="AFTER_BODY",t[t.IN_FRAMESET=19]="IN_FRAMESET",t[t.AFTER_FRAMESET=20]="AFTER_FRAMESET",t[t.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",t[t.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(uk||(uk={}));new PT([ZT.TABLE,ZT.TBODY,ZT.TFOOT,ZT.THEAD,ZT.TR]),new PT([ZT.CAPTION,ZT.COL,ZT.COLGROUP,ZT.TBODY,ZT.TD,ZT.TFOOT,ZT.TH,ZT.THEAD,ZT.TR]),new PT([JT.AREA,JT.BASE,JT.BASEFONT,JT.BGSOUND,JT.BR,JT.COL,JT.EMBED,JT.FRAME,JT.HR,JT.IMG,JT.INPUT,JT.KEYGEN,JT.LINK,JT.META,JT.PARAM,JT.SOURCE,JT.TRACK,JT.WBR]);function hk(t,e){var n=ha(t);if(da){var r=da(t);e&&(r=va(r).call(r,(function(e){return Ea(t,e).enumerable}))),n.push.apply(n,r)}return n}function fk(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Na(n=hk(Object(i),!0)).call(n,(function(e){co(t,e,i[e])})):Da?Oa(t,Da(i)):Na(r=hk(Object(i))).call(r,(function(e){Pa(t,e,Ea(i,e))}))}return t}function dk(t){return new Fw(t)}function pk(t){var e=fp(t).call(t,'"')?"'":'"';return e+t+e}var gk={isCommentNode:jw,isElementNode:Qw,isTextNode:Gw,createDocument:function(){var t=new Uw([]);return t["x-mode"]=XT.NO_QUIRKS,t},createDocumentFragment:function(){return new Uw([])},createElement:function(t,e,n){for(var r=Pl(null),i=Pl(null),a=Pl(null),o=0;o<n.length;o++){var s=n[o].name;r[s]=n[o].value,i[s]=n[o].namespace,a[s]=n[o].prefix}var c=new Pw(t,r,[]);return c.namespace=e,c["x-attribsNamespace"]=i,c["x-attribsPrefix"]=a,c},createCommentNode:function(t){return new Dw(t)},appendChild:function(t,e){var n=t.children[t.children.length-1];n&&(n.next=e,e.prev=n),t.children.push(e),e.parent=t},insertBefore:function(t,e,n){var r,i,a=Ul(r=t.children).call(r,n),o=n.prev;o&&(o.next=e,e.prev=o),n.prev=e,e.next=n,dA(i=t.children).call(i,a,0,e),e.parent=t},setTemplateContent:function(t,e){gk.appendChild(t,e)},getTemplateContent:function(t){return t.children[0]},setDocumentType:function(t,e,n,r){var i,a=function(t,e,n){var r="!DOCTYPE ";return t&&(r+=t),e?r+=" PUBLIC ".concat(pk(e)):n&&(r+=" SYSTEM"),n&&(r+=" ".concat(pk(n))),r}(e,n,r),o=Hm(i=t.children).call(i,(function(t){return Kw(t)&&"!doctype"===t.name}));o?o.data=null!=a?a:null:(o=new Lw("!doctype",a),gk.appendChild(t,o)),o["x-name"]=null!=e?e:void 0,o["x-publicId"]=null!=n?n:void 0,o["x-systemId"]=null!=r?r:void 0},setDocumentMode:function(t,e){t["x-mode"]=e},getDocumentMode:function(t){return t["x-mode"]},detachNode:function(t){if(t.parent){var e,n,r=Ul(e=t.parent.children).call(e,t),i=t.prev,a=t.next;t.prev=null,t.next=null,i&&(i.next=a),a&&(a.prev=i),dA(n=t.parent.children).call(n,r,1),t.parent=null}},insertText:function(t,e){var n=t.children[t.children.length-1];n&&Gw(n)?n.data+=e:gk.appendChild(t,dk(e))},insertTextBefore:function(t,e,n){var r,i=t.children[Ul(r=t.children).call(r,n)-1];i&&Gw(i)?i.data+=e:gk.insertBefore(t,dk(e),n)},adoptAttributes:function(t,e){for(var n=0;n<e.length;n++){var r=e[n].name;void 0===t.attribs[r]&&(t.attribs[r]=e[n].value,t["x-attribsNamespace"][r]=e[n].namespace,t["x-attribsPrefix"][r]=e[n].prefix)}},getFirstChild:function(t){return t.children[0]},getChildNodes:function(t){return t.children},getParentNode:function(t){return t.parent},getAttrList:function(t){return t.attributes},getTagName:function(t){return t.name},getNamespaceURI:function(t){return t.namespace},getTextNodeContent:function(t){return t.data},getCommentNodeContent:function(t){return t.data},getDocumentTypeNodeName:function(t){var e;return null!==(e=t["x-name"])&&void 0!==e?e:""},getDocumentTypeNodePublicId:function(t){var e;return null!==(e=t["x-publicId"])&&void 0!==e?e:""},getDocumentTypeNodeSystemId:function(t){var e;return null!==(e=t["x-systemId"])&&void 0!==e?e:""},isDocumentTypeNode:function(t){return Kw(t)&&"!doctype"===t.name},setNodeSourceCodeLocation:function(t,e){e&&(t.startIndex=e.startOffset,t.endIndex=e.endOffset),t.sourceCodeLocation=e},getNodeSourceCodeLocation:function(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation:function(t,e){null!=e.endOffset&&(t.endIndex=e.endOffset),t.sourceCodeLocation=fk(fk({},t.sourceCodeLocation),e)}};function mk(t,e,n,r){const i={scriptingEnabled:"boolean"!=typeof e.scriptingEnabled||e.scriptingEnabled,treeAdapter:gk,sourceCodeLocationInfo:e.sourceCodeLocationInfo};return n?function(t,e){return OB.parse(t,e)}(t,i):function(t,e,n){"string"==typeof t&&(n=e,e=t,t=null);const r=OB.getFragmentParser(t,n);return r.tokenizer.write(e,!0),r.getFragment()}(r,t,i)}const yk={treeAdapter:gk};var vk,bk,wk;function _k(t){return t===vk.Space||t===vk.NewLine||t===vk.Tab||t===vk.FormFeed||t===vk.CarriageReturn}function Ek(t){return t===vk.Slash||t===vk.Gt||_k(t)}function Ck(t){return t>=vk.Zero&&t<=vk.Nine}!function(t){t[t.Tab=9]="Tab",t[t.NewLine=10]="NewLine",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationMark=33]="ExclamationMark",t[t.Num=35]="Num",t[t.Amp=38]="Amp",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Zero=48]="Zero",t[t.Nine=57]="Nine",t[t.Semi=59]="Semi",t[t.Lt=60]="Lt",t[t.Eq=61]="Eq",t[t.Gt=62]="Gt",t[t.Questionmark=63]="Questionmark",t[t.UpperA=65]="UpperA",t[t.LowerA=97]="LowerA",t[t.UpperF=70]="UpperF",t[t.LowerF=102]="LowerF",t[t.UpperZ=90]="UpperZ",t[t.LowerZ=122]="LowerZ",t[t.LowerX=120]="LowerX",t[t.OpeningSquareBracket=91]="OpeningSquareBracket"}(vk||(vk={})),function(t){t[t.Text=1]="Text",t[t.BeforeTagName=2]="BeforeTagName",t[t.InTagName=3]="InTagName",t[t.InSelfClosingTag=4]="InSelfClosingTag",t[t.BeforeClosingTagName=5]="BeforeClosingTagName",t[t.InClosingTagName=6]="InClosingTagName",t[t.AfterClosingTagName=7]="AfterClosingTagName",t[t.BeforeAttributeName=8]="BeforeAttributeName",t[t.InAttributeName=9]="InAttributeName",t[t.AfterAttributeName=10]="AfterAttributeName",t[t.BeforeAttributeValue=11]="BeforeAttributeValue",t[t.InAttributeValueDq=12]="InAttributeValueDq",t[t.InAttributeValueSq=13]="InAttributeValueSq",t[t.InAttributeValueNq=14]="InAttributeValueNq",t[t.BeforeDeclaration=15]="BeforeDeclaration",t[t.InDeclaration=16]="InDeclaration",t[t.InProcessingInstruction=17]="InProcessingInstruction",t[t.BeforeComment=18]="BeforeComment",t[t.CDATASequence=19]="CDATASequence",t[t.InSpecialComment=20]="InSpecialComment",t[t.InCommentLike=21]="InCommentLike",t[t.BeforeSpecialS=22]="BeforeSpecialS",t[t.SpecialStartSequence=23]="SpecialStartSequence",t[t.InSpecialTag=24]="InSpecialTag",t[t.BeforeEntity=25]="BeforeEntity",t[t.BeforeNumericEntity=26]="BeforeNumericEntity",t[t.InNamedEntity=27]="InNamedEntity",t[t.InNumericEntity=28]="InNumericEntity",t[t.InHexEntity=29]="InHexEntity"}(bk||(bk={})),function(t){t[t.NoValue=0]="NoValue",t[t.Unquoted=1]="Unquoted",t[t.Single=2]="Single",t[t.Double=3]="Double"}(wk||(wk={}));const xk={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class Bk{constructor({xmlMode:t=!1,decodeEntities:e=!0},n){this.cbs=n,this.state=bk.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=bk.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=t,this.decodeEntities=e,this.entityTrie=t?Dx:Lx}reset(){this.state=bk.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=bk.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(t){t===vk.Lt||!this.decodeEntities&&this.fastForwardTo(vk.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=bk.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===vk.Amp&&(this.state=bk.BeforeEntity)}stateSpecialStartSequence(t){const e=this.sequenceIndex===this.currentSequence.length;if(e?Ek(t):(32|t)===this.currentSequence[this.sequenceIndex]){if(!e)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=bk.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===vk.Gt||_k(t)){const e=this.index-this.currentSequence.length;if(this.sectionStart<e){const t=this.index;this.index=e,this.cbs.ontext(this.sectionStart,e),this.index=t}return this.isSpecial=!1,this.sectionStart=e+2,void this.stateInClosingTagName(t)}this.sequenceIndex=0}(32|t)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===xk.TitleEnd?this.decodeEntities&&t===vk.Amp&&(this.state=bk.BeforeEntity):this.fastForwardTo(vk.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(t===vk.Lt)}stateCDATASequence(t){t===xk.Cdata[this.sequenceIndex]?++this.sequenceIndex===xk.Cdata.length&&(this.state=bk.InCommentLike,this.currentSequence=xk.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=bk.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===xk.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=bk.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!Ek(t):function(t){return t>=vk.LowerA&&t<=vk.LowerZ||t>=vk.UpperA&&t<=vk.UpperZ}(t)}startSpecial(t,e){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=e,this.state=bk.SpecialStartSequence}stateBeforeTagName(t){if(t===vk.ExclamationMark)this.state=bk.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===vk.Questionmark)this.state=bk.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const e=32|t;this.sectionStart=this.index,this.xmlMode||e!==xk.TitleEnd[2]?this.state=this.xmlMode||e!==xk.ScriptEnd[2]?bk.InTagName:bk.BeforeSpecialS:this.startSpecial(xk.TitleEnd,3)}else t===vk.Slash?this.state=bk.BeforeClosingTagName:(this.state=bk.Text,this.stateText(t))}stateInTagName(t){Ek(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=bk.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){_k(t)||(t===vk.Gt?this.state=bk.Text:(this.state=this.isTagStartChar(t)?bk.InClosingTagName:bk.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===vk.Gt||_k(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=bk.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===vk.Gt||this.fastForwardTo(vk.Gt))&&(this.state=bk.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===vk.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=bk.InSpecialTag,this.sequenceIndex=0):this.state=bk.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===vk.Slash?this.state=bk.InSelfClosingTag:_k(t)||(this.state=bk.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===vk.Gt?(this.cbs.onselfclosingtag(this.index),this.state=bk.Text,this.baseState=bk.Text,this.sectionStart=this.index+1,this.isSpecial=!1):_k(t)||(this.state=bk.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===vk.Eq||Ek(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=bk.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===vk.Eq?this.state=bk.BeforeAttributeValue:t===vk.Slash||t===vk.Gt?(this.cbs.onattribend(wk.NoValue,this.index),this.state=bk.BeforeAttributeName,this.stateBeforeAttributeName(t)):_k(t)||(this.cbs.onattribend(wk.NoValue,this.index),this.state=bk.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===vk.DoubleQuote?(this.state=bk.InAttributeValueDq,this.sectionStart=this.index+1):t===vk.SingleQuote?(this.state=bk.InAttributeValueSq,this.sectionStart=this.index+1):_k(t)||(this.sectionStart=this.index,this.state=bk.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,e){t===e||!this.decodeEntities&&this.fastForwardTo(e)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(e===vk.DoubleQuote?wk.Double:wk.Single,this.index),this.state=bk.BeforeAttributeName):this.decodeEntities&&t===vk.Amp&&(this.baseState=this.state,this.state=bk.BeforeEntity)}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,vk.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,vk.SingleQuote)}stateInAttributeValueNoQuotes(t){_k(t)||t===vk.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(wk.Unquoted,this.index),this.state=bk.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===vk.Amp&&(this.baseState=this.state,this.state=bk.BeforeEntity)}stateBeforeDeclaration(t){t===vk.OpeningSquareBracket?(this.state=bk.CDATASequence,this.sequenceIndex=0):this.state=t===vk.Dash?bk.BeforeComment:bk.InDeclaration}stateInDeclaration(t){(t===vk.Gt||this.fastForwardTo(vk.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=bk.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===vk.Gt||this.fastForwardTo(vk.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=bk.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===vk.Dash?(this.state=bk.InCommentLike,this.currentSequence=xk.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=bk.InDeclaration}stateInSpecialComment(t){(t===vk.Gt||this.fastForwardTo(vk.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=bk.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const e=32|t;e===xk.ScriptEnd[3]?this.startSpecial(xk.ScriptEnd,4):e===xk.StyleEnd[3]?this.startSpecial(xk.StyleEnd,4):(this.state=bk.InTagName,this.stateInTagName(t))}stateBeforeEntity(t){this.entityExcess=1,this.entityResult=0,t===vk.Num?this.state=bk.BeforeNumericEntity:t===vk.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=bk.InNamedEntity,this.stateInNamedEntity(t))}stateInNamedEntity(t){if(this.entityExcess+=1,this.trieIndex=Ix(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];const e=this.trieCurrent&Nx.VALUE_LENGTH;if(e){const n=(e>>14)-1;if(this.allowLegacyEntity()||t===vk.Semi){const t=this.index-this.entityExcess+1;t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,0===n&&this.emitNamedEntity()}else this.trieIndex+=n}}emitNamedEntity(){if(this.state=this.baseState,0===this.entityResult)return;switch((this.entityTrie[this.entityResult]&Nx.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~Nx.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(t){(32|t)===vk.LowerX?(this.entityExcess++,this.state=bk.InHexEntity):(this.state=bk.InNumericEntity,this.stateInNumericEntity(t))}emitNumericEntity(t){const e=this.index-this.entityExcess-1;e+2+Number(this.state===bk.InHexEntity)!==this.index&&(e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.sectionStart=this.index+Number(t),this.emitCodePoint(Fx(this.entityResult))),this.state=this.baseState}stateInNumericEntity(t){t===vk.Semi?this.emitNumericEntity(!0):Ck(t)?(this.entityResult=10*this.entityResult+(t-vk.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(t){t===vk.Semi?this.emitNumericEntity(!0):Ck(t)?(this.entityResult=16*this.entityResult+(t-vk.Zero),this.entityExcess++):!function(t){return t>=vk.UpperA&&t<=vk.UpperF||t>=vk.LowerA&&t<=vk.LowerF}(t)?(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--):(this.entityResult=16*this.entityResult+((32|t)-vk.LowerA+10),this.entityExcess++)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===bk.Text||this.baseState===bk.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===bk.Text||this.state===bk.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==bk.InAttributeValueDq&&this.state!==bk.InAttributeValueSq&&this.state!==bk.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const t=this.buffer.charCodeAt(this.index-this.offset);this.state===bk.Text?this.stateText(t):this.state===bk.SpecialStartSequence?this.stateSpecialStartSequence(t):this.state===bk.InSpecialTag?this.stateInSpecialTag(t):this.state===bk.CDATASequence?this.stateCDATASequence(t):this.state===bk.InAttributeValueDq?this.stateInAttributeValueDoubleQuotes(t):this.state===bk.InAttributeName?this.stateInAttributeName(t):this.state===bk.InCommentLike?this.stateInCommentLike(t):this.state===bk.InSpecialComment?this.stateInSpecialComment(t):this.state===bk.BeforeAttributeName?this.stateBeforeAttributeName(t):this.state===bk.InTagName?this.stateInTagName(t):this.state===bk.InClosingTagName?this.stateInClosingTagName(t):this.state===bk.BeforeTagName?this.stateBeforeTagName(t):this.state===bk.AfterAttributeName?this.stateAfterAttributeName(t):this.state===bk.InAttributeValueSq?this.stateInAttributeValueSingleQuotes(t):this.state===bk.BeforeAttributeValue?this.stateBeforeAttributeValue(t):this.state===bk.BeforeClosingTagName?this.stateBeforeClosingTagName(t):this.state===bk.AfterClosingTagName?this.stateAfterClosingTagName(t):this.state===bk.BeforeSpecialS?this.stateBeforeSpecialS(t):this.state===bk.InAttributeValueNq?this.stateInAttributeValueNoQuotes(t):this.state===bk.InSelfClosingTag?this.stateInSelfClosingTag(t):this.state===bk.InDeclaration?this.stateInDeclaration(t):this.state===bk.BeforeDeclaration?this.stateBeforeDeclaration(t):this.state===bk.BeforeComment?this.stateBeforeComment(t):this.state===bk.InProcessingInstruction?this.stateInProcessingInstruction(t):this.state===bk.InNamedEntity?this.stateInNamedEntity(t):this.state===bk.BeforeEntity?this.stateBeforeEntity(t):this.state===bk.InHexEntity?this.stateInHexEntity(t):this.state===bk.InNumericEntity?this.stateInNumericEntity(t):this.stateBeforeNumericEntity(t),this.index++}this.cleanup()}finish(){this.state===bk.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.state===bk.InCommentLike?this.currentSequence===xk.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===bk.InNumericEntity&&this.allowLegacyEntity()||this.state===bk.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===bk.InTagName||this.state===bk.BeforeAttributeName||this.state===bk.BeforeAttributeValue||this.state===bk.AfterAttributeName||this.state===bk.InAttributeName||this.state===bk.InAttributeValueSq||this.state===bk.InAttributeValueDq||this.state===bk.InAttributeValueNq||this.state===bk.InClosingTagName||this.cbs.ontext(this.sectionStart,t)}emitPartial(t,e){this.baseState!==bk.Text&&this.baseState!==bk.InSpecialTag?this.cbs.onattribdata(t,e):this.cbs.ontext(t,e)}emitCodePoint(t){this.baseState!==bk.Text&&this.baseState!==bk.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)}}const Tk=new Set(["input","option","optgroup","select","button","datalist","textarea"]),kk=new Set(["p"]),Sk=new Set(["thead","tbody"]),Ik=new Set(["dd","dt"]),Nk=new Set(["rt","rp"]),Mk=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",kk],["h1",kk],["h2",kk],["h3",kk],["h4",kk],["h5",kk],["h6",kk],["select",Tk],["input",Tk],["output",Tk],["button",Tk],["datalist",Tk],["textarea",Tk],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Ik],["dt",Ik],["address",kk],["article",kk],["aside",kk],["blockquote",kk],["details",kk],["div",kk],["dl",kk],["fieldset",kk],["figcaption",kk],["figure",kk],["footer",kk],["form",kk],["header",kk],["hr",kk],["main",kk],["nav",kk],["ol",kk],["pre",kk],["section",kk],["table",kk],["ul",kk],["rt",Nk],["rp",Nk],["tbody",Sk],["tfoot",Sk]]),Fk=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Dk=new Set(["math","svg"]),Lk=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Ok=/\s|\//;class Rk{constructor(t,e={}){var n,r,i,a,o;this.options=e,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=t?t:{},this.lowerCaseTagNames=null!==(n=e.lowerCaseTags)&&void 0!==n?n:!e.xmlMode,this.lowerCaseAttributeNames=null!==(r=e.lowerCaseAttributeNames)&&void 0!==r?r:!e.xmlMode,this.tokenizer=new(null!==(i=e.Tokenizer)&&void 0!==i?i:Bk)(this.options,this),null===(o=(a=this.cbs).onparserinit)||void 0===o||o.call(a,this)}ontext(t,e){var n,r;const i=this.getSlice(t,e);this.endIndex=e-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,i),this.startIndex=e}ontextentity(t){var e,n;const r=this.tokenizer.getSectionStart();this.endIndex=r-1,null===(n=(e=this.cbs).ontext)||void 0===n||n.call(e,Mx(t)),this.startIndex=r}isVoidElement(t){return!this.options.xmlMode&&Fk.has(t)}onopentagname(t,e){this.endIndex=e;let n=this.getSlice(t,e);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(t){var e,n,r,i;this.openTagStart=this.startIndex,this.tagname=t;const a=!this.options.xmlMode&&Mk.get(t);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){const t=this.stack.pop();null===(n=(e=this.cbs).onclosetag)||void 0===n||n.call(e,t,!0)}this.isVoidElement(t)||(this.stack.push(t),Dk.has(t)?this.foreignContext.push(!0):Lk.has(t)&&this.foreignContext.push(!1)),null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var e,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(e=this.cbs).onopentag)||void 0===n||n.call(e,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,e){var n,r,i,a,o,s;this.endIndex=e;let c=this.getSlice(t,e);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(Dk.has(c)||Lk.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))this.options.xmlMode||"br"!==c||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(a=(i=this.cbs).onopentag)||void 0===a||a.call(i,"br",{},!0),null===(s=(o=this.cbs).onclosetag)||void 0===s||s.call(o,"br",!1));else{const t=this.stack.lastIndexOf(c);if(-1!==t)if(this.cbs.onclosetag){let e=this.stack.length-t;for(;e--;)this.cbs.onclosetag(this.stack.pop(),0!==e)}else this.stack.length=t;else this.options.xmlMode||"p"!==c||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=e+1}onselfclosingtag(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var e,n;const r=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===r&&(null===(n=(e=this.cbs).onclosetag)||void 0===n||n.call(e,r,!t),this.stack.pop())}onattribname(t,e){this.startIndex=t;const n=this.getSlice(t,e);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(t,e){this.attribvalue+=this.getSlice(t,e)}onattribentity(t){this.attribvalue+=Mx(t)}onattribend(t,e){var n,r;this.endIndex=e,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,t===wk.Double?'"':t===wk.Single?"'":t===wk.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const e=t.search(Ok);let n=e<0?t:t.substr(0,e);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(t,e){this.endIndex=e;const n=this.getSlice(t,e);if(this.cbs.onprocessinginstruction){const t=this.getInstructionName(n);this.cbs.onprocessinginstruction("!"+t,"!"+n)}this.startIndex=e+1}onprocessinginstruction(t,e){this.endIndex=e;const n=this.getSlice(t,e);if(this.cbs.onprocessinginstruction){const t=this.getInstructionName(n);this.cbs.onprocessinginstruction("?"+t,"?"+n)}this.startIndex=e+1}oncomment(t,e,n){var r,i,a,o;this.endIndex=e,null===(i=(r=this.cbs).oncomment)||void 0===i||i.call(r,this.getSlice(t,e-n)),null===(o=(a=this.cbs).oncommentend)||void 0===o||o.call(a),this.startIndex=e+1}oncdata(t,e,n){var r,i,a,o,s,c,l,A,u,h;this.endIndex=e;const f=this.getSlice(t,e-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(r=this.cbs).oncdatastart)||void 0===i||i.call(r),null===(o=(a=this.cbs).ontext)||void 0===o||o.call(a,f),null===(c=(s=this.cbs).oncdataend)||void 0===c||c.call(s)):(null===(A=(l=this.cbs).oncomment)||void 0===A||A.call(l,`[CDATA[${f}]]`),null===(h=(u=this.cbs).oncommentend)||void 0===h||h.call(u)),this.startIndex=e+1}onend(){var t,e;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let t=this.stack.length;t>0;this.cbs.onclosetag(this.stack[--t],!0));}null===(e=(t=this.cbs).onend)||void 0===e||e.call(t)}reset(){var t,e,n,r;null===(e=(t=this.cbs).onreset)||void 0===e||e.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,e){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(t-this.bufferOffset,e-this.bufferOffset);for(;e-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,e-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var e,n;this.ended?null===(n=(e=this.cbs).onerror)||void 0===n||n.call(e,new Error(".write() after done!")):(this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++))}end(t){var e,n;this.ended?null===(n=(e=this.cbs).onerror)||void 0===n||n.call(e,Error(".end() after done!")):(t&&this.write(t),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}}var Uk=function(t,e){return function n(r,i,a=!0){if(null==r)throw new Error("cheerio.load() expects a string");const o={...yw,...bw(i)},s=t(r,o,a,null);class c extends ax{_make(t,e){const n=l(t,e);return n.prevObject=this,n}_parse(e,n,r,i){return t(e,n,r,i)}_render(t){return e(t,this.options)}}function l(e,n,r=s,i){if(e&&V_(e))return e;const a={...o,...bw(i)},l="string"==typeof r?[t(r,a,!1,null)]:"length"in r?r:[r],A=V_(l)?l:new c(l,null,a);if(A._root=A,!e)return new c(void 0,A,a);const u="string"==typeof e&&q_(e)?t(e,a,!1,null).children:(h=e).name||"root"===h.type||"text"===h.type||"comment"===h.type?[e]:Array.isArray(e)?e:void 0;var h;const f=new c(u,A,a);if(u)return f;if("string"!=typeof e)throw new Error("Unexpected type of selector");let d=e;const p=n?"string"==typeof n?q_(n)?new c([t(n,a,!1,null)],A,a):(d=`${n} ${d}`,A):V_(n)?n:new c(Array.isArray(n)?n:[n],A,a):A;return p?p.find(d):f}return Object.assign(l,Y_,{load:n,_root:s,_options:o,fn:c.prototype,prototype:c.prototype}),l}}(function(t){return function(e,n,r,i){if("undefined"!=typeof Buffer&&Buffer.isBuffer(e)&&(e=e.toString()),"string"==typeof e)return t(e,n,r,i);const a=e;if(!Array.isArray(a)&&$w(a))return a;const o=new Uw([]);return $C(a,o),o}}((t,e,n,r)=>e.xmlMode||e._useHtmlParser2?function(t,e){const n=new qw(void 0,e);return new Rk(n,e).end(t),n.root}(t,e):mk(t,e,n,r)),(t,e)=>e.xmlMode||e._useHtmlParser2?l_(t,e):function(t){const e="length"in t?t:[t];for(let t=0;t<e.length;t+=1){const n=e[t];$w(n)&&Array.prototype.splice.call(e,t,1,...n.children)}let n="";for(let t=0;t<e.length;t+=1){n+=RT(e[t],yk)}return n}(t))([]),Pk=r((function(t,e){function n(t){var e=[].slice.call(arguments,1);e.unshift("["+t+"]"),process.stderr.write(e.join(" ")+"\n")}t.exports=function(t){return n.bind(null,t)}})),Qk=r((function(t,e){Pk("lex");t.exports=function(t){var e,n="",r=0,i=-1,a=0,o=1,s="before-selector",c=[s],l={},A=[],u=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function h(t){return t?c[c.length-1-t]:s}function f(e){var n=t.slice(i).indexOf(e);return n>0&&n}function d(t){return t===p(1)}function p(e){return t[i+(e||1)]}function g(){var t=c.pop();return s=c[c.length-1],t}function m(t){return s=t,c.push(s),c.length}function y(t){var e=s;return c[c.length-1]=s=t,e}function v(e){if(1==(e||1))"\n"==t[i]?(o++,r=1):r++,i++;else{var n=t.slice(i,i+e).split("\n");n.length>1&&(o+=n.length-1,r=1),r+=n[n.length-1].length,i+=e}}function b(){l.end={line:o,col:r},A.push(l),n="",l={}}function w(t){l={type:t,start:{line:o,col:r}}}for(;v(),e=t[i];)switch(e){case" ":switch(h()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":n+=e}break;case"\n":case"\t":case"\r":case"\f":switch(h()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":n+=e;break;case"at-value":"\n"===e&&(l.value=n.trim(),b(),g())}break;case":":switch(h()){case"name":l.name=n.trim(),n="",y("before-value");break;case"before-selector":n+=e,w("selector"),m("selector");break;case"before-value":y("value"),n+=e;break;default:n+=e}break;case";":switch(h()){case"name":case"before-value":case"value":n.trim().length>0&&(l.value=n.trim(),b()),y("before-name");break;case"value-paren":n+=e;break;case"at-value":l.value=n.trim(),b(),g();break;case"before-name":break;default:n+=e}break;case"{":switch(h()){case"selector":if("\\"===p(-1)){n+=e;break}l.text=n.trim(),b(),y("before-name"),a+=1;break;case"at-group":switch(l.name=n.trim(),l.type){case"font-face":case"viewport":case"page":m("before-name");break;default:m("before-selector")}b(),a+=1;break;case"name":case"at-rule":l.name=n.trim(),b(),m("before-name"),a+=1;break;case"comment":case"double-string":case"single-string":n+=e;break;case"before-value":y("value"),n+=e}break;case"}":switch(h()){case"before-name":case"name":case"before-value":case"value":n&&(l.value=n.trim()),l.name&&l.value&&b(),w("end"),b(),g(),"at-group"===h()&&(w("at-group-end"),b(),g()),a>0&&(a-=1);break;case"at-group":case"before-selector":case"selector":if("\\"===p(-1)){n+=e;break}a>0&&"at-group"===h(1)&&(w("at-group-end"),b()),a>1&&g(),a>0&&(a-=1);break;case"double-string":case"single-string":case"comment":n+=e}break;case'"':case"'":switch(h()){case"double-string":'"'===e&&"\\"!==p(-1)&&g();break;case"single-string":"'"===e&&"\\"!==p(-1)&&g();break;case"before-at-value":y("at-value"),m('"'===e?"double-string":"single-string");break;case"before-value":y("value"),m('"'===e?"double-string":"single-string");break;case"comment":break;default:"\\"!==p(-1)&&m('"'===e?"double-string":"single-string")}n+=e;break;case"/":switch(h()){case"comment":case"double-string":case"single-string":n+=e;break;case"before-value":case"selector":case"name":case"value":if(d("*")){var _=f("*/");_&&v(_+1)}else"before-value"==h()&&y("value"),n+=e;break;default:d("*")?(w("comment"),m("comment"),v()):n+=e}break;case"*":switch(h()){case"comment":d("/")?(l.text=n,v(),b(),g()):n+=e;break;case"before-selector":n+=e,w("selector"),m("selector");break;case"before-value":y("value"),n+=e;break;default:n+=e}break;case"@":switch(h()){case"comment":case"double-string":case"single-string":n+=e;break;case"before-value":y("value"),n+=e;break;default:for(var E,C,x=!1,B=0,T=u.length;!x&&B<T;++B)E=(C=u[B]).name||C,S=void 0,S=i+1,(k=E)===t.slice(S,S+k.length)&&(x=!0,w(E),m(C.state||"at-group"),v(E.length),C.prefix&&(l.prefix=C.prefix),C.type&&(l.type=C.type));x||(n+=e)}break;case"(":switch(h()){case"value":m("value-paren");break;case"before-value":y("value")}n+=e;break;case")":switch(h()){case"value-paren":g();break;case"before-value":y("value")}n+=e;break;default:switch(h()){case"before-selector":w("selector"),m("selector");break;case"before-name":w("property"),y("name");break;case"before-value":y("value");break;case"before-at-value":y("at-value")}n+=e}var k,S;return A}})),Hk=r((function(t,e){var n,r,i,a;Pk("parse");function o(t,e){var n;e||(e={});for(var r=["type","name","value"],a={},o=0;o<r.length;++o)t[n=r[o]]&&(a[n]=e[n]||t[n]);for(r=Object.keys(e),o=0;o<r.length;++o)a[n=r[o]]||(a[n]=e[n]);return i&&(a.position={start:t.start,end:t.end}),a}function s(){return a.shift()}function c(t){r+=1;var e={};switch(t.type){case"font-face":case"viewport":e.declarations=u();break;case"page":e.prefix=t.prefix,e.declarations=u();break;default:e.prefix=t.prefix,e.rules=A((function(){return r}))}return o(t,e)}function l(t){switch(t.type){case"property":return function(t){return o(t)}(t);case"selector":return function(t){return o(t,{type:"rule",selectors:t.text.split(",").map((function(t){return t.trim()})),declarations:u()})}(t);case"at-group-end":return void(r-=1);case"media":case"keyframes":return c(t);case"comment":if(n)return function(t){return o(t,{text:t.text})}(t);break;case"charset":case"import":case"namespace":return function(t){return o(t)}(t);case"font-face":case"supports":case"viewport":case"document":case"page":return c(t)}}function A(t){for(var e,n,r=[];(n=s())&&t&&t(n);)(e=l(n))&&r.push(e);return n&&"end"!==n.type&&a.unshift(n),r}function u(){return A((function(t){return"property"===t.type||"comment"===t.type}))}t.exports=function(t,e){var o;e||(e={}),n=!!e.comments,i=!!e.position,r=0,a=Array.isArray(t)?t.slice():Qk(t);var c,A=[];for(;c=s();)(o=l(c))&&A.push(o);return{type:"stylesheet",stylesheet:{rules:A}}}})),Gk=r((function(t,e){var n,r,i,a,o,s;Pk("stringify");function c(t){if(!t)return r?"":Array(a).join(i||"");a+=t}function l(t){var e="",n=t.prefix||"";t.name&&(e=" "+t.name);var r="page"!==t.type;return"@"+n+t.type+e+s+f(t,r)+o}function A(t){return n?"/*"+(t.text||"")+"*/"+o:""}function u(t){var e;return t.selectors?e=t.selectors.join(","+o):(e="@"+t.type,e+=t.name?" "+t.name:""),c()+e+s+f(t)+o}function h(t,e){return t.reduce((function(t,n){var r="comment"===n.type?A(n):e(n);return r&&t.push(r),t}),[])}function f(t,e){var n=t.declarations,r=d;return t.rules&&(n=t.rules,r=u),(n=function(t,e){if(!t)return"";c(1);var n=h(t,e);if(c(-1),!n.length)return"";return n.join(o)}(n,r))&&(n=o+n+(e?"":o)),"{"+n+c()+"}"}function d(t){if("property"===t.type)return function(t){var e=t.name?t.name+":"+s:"";return c()+e+t.value+";"}(t)}function p(t){switch(t.type){case"rule":return u(t);case"media":case"keyframes":return l(t);case"comment":return A(t);case"import":case"charset":case"namespace":return function(t){return"@"+t.type+" "+t.value+";"+o}(t);case"font-face":case"supports":case"viewport":case"document":case"page":return l(t)}}t.exports=function(t,e){e||(e={}),i=e.indentation||"",r=!!e.compress,n=!!e.comments,a=1,r?o=s="":(o="\n",s=" ");return h(t.stylesheet.rules,p).join("\n").trim()}})),jk={lex:Qk,parse:Hk,stringify:Gk},Kk=/([-.*+?^${}()|[\]\/\\])/g,$k=/\\/g,Yk=function(t){return(t+"").replace(Kk,"\\$1")},Vk=function(t){return(t+"").replace($k,"")},zk=RegExp("^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(/<combinator>/,"["+Yk(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),Wk=function(t){this.combinator=t||" ",this.tag="*"};Wk.prototype.toString=function(){if(!this.raw){var t,e,n="";if(n+=this.tag||"*",this.id&&(n+="#"+this.id),this.classes&&(n+="."+this.classList.join(".")),this.attributes)for(t=0;e=this.attributes[t++];)n+="["+e.name+(e.operator?e.operator+'"'+e.value+'"':"")+"]";if(this.pseudos)for(t=0;e=this.pseudos[t++];)n+=":"+e.name,e.value&&(n+="("+e.value+")");this.raw=n}return this.raw};var qk=function(){this.length=0};qk.prototype.toString=function(){if(!this.raw){for(var t,e="",n=0;t=this[n++];)1!==n&&(e+=" ")," "!==t.combinator&&(e+=t.combinator+" "),e+=t;this.raw=e}return this.raw};var Xk=function(t,e,n,r,i,a,o,s,c,l,A,u,h,f,d,p){var g,m;if((e||!this.length)&&(g=this[this.length++]=new qk,e))return"";if(g||(g=this[this.length-1]),(n||r||!g.length)&&(m=g[g.length++]=new Wk(n)),m||(m=g[g.length-1]),i)m.tag=Vk(i);else if(a)m.id=Vk(a);else if(o){var y=Vk(o),v=m.classes||(m.classes={});if(!v[y]){v[y]=Yk(o);var b=m.classList||(m.classList=[]);b.push(y),b.sort()}}else h?(p=p||d,(m.pseudos||(m.pseudos=[])).push({type:1==u.length?"class":"element",name:Vk(h),escapedName:Yk(h),value:p?Vk(p):null,escapedValue:p?Yk(p):null})):s&&(A=A?Yk(A):null,(m.attributes||(m.attributes=[])).push({operator:c,name:Vk(s),escapedName:Yk(s),value:A?Vk(A):null,escapedValue:A?Yk(A):null}));return""},Jk=function(t){this.length=0;for(var e,n=this,r=t;t;){if((e=t.replace(zk,(function(){return Xk.apply(n,arguments)})))===t)throw new Error(r+" is an invalid expression");t=e}};Jk.prototype.toString=function(){if(!this.raw){for(var t,e=[],n=0;t=this[n++];)e.push(t);this.raw=e.join(", ")}return this.raw};var Zk={},tS=function(t){return null==t?null:(t=(""+t).replace(/^\s+|\s+$/g,""),Zk[t]||(Zk[t]=new Jk(t)))},eS=r((function(t,e){function n(t,e){this.text=t,this.spec=void 0,this.styleAttribute=e||!1}function r(t){try{return tS(t)[0]}catch(t){return[]}}t.exports=n,n.prototype.parsed=function(){return this.tokens||(this.tokens=r(this.text)),this.tokens},n.prototype.specificity=function(){var t=this.styleAttribute;return this.spec||(this.spec=function e(n,i){for(var a=i||r(n),o=[t?1:0,0,0,0],s=[],c=0;c<a.length;c++){var l=a[c],A=l.pseudos;if(l.id&&o[1]++,l.attributes&&(o[2]+=l.attributes.length),l.classList&&(o[2]+=l.classList.length),l.tag&&"*"!==l.tag&&o[3]++,A){o[3]+=A.length;for(var u=0;u<A.length;u++)"not"===A[u].name&&(s.push(A[u].value),o[3]--)}}for(var h=s.length;h--;)for(var f=e(s[h]),d=4;d--;)o[d]+=f[d];return o}(this.text,this.parsed())),this.spec}})),nS=r((function(t,e){function n(t,e,n,r,i){this.prop=t,this.value=e,this.selector=n,this.priority=r||0,this.additionalPriority=i||[]}t.exports=n,n.prototype.compareFunc=function(t){var e=[];e.push.apply(e,this.selector.specificity()),e.push.apply(e,this.additionalPriority),e[0]+=this.priority;var n=[];return n.push.apply(n,t.selector.specificity()),n.push.apply(n,t.additionalPriority),n[0]+=t.priority,rS.compareFunc(e,n)},n.prototype.compare=function(t){return 1===this.compareFunc(t)?this:t},n.prototype.toString=function(){return this.prop+": "+this.value.replace(/['"]+/g,"")+";"}})),rS=r((function(t,e){e.Selector=eS,e.Property=nS,e.extract=function(t){for(var e=0,n=[],r="",i=0,a=t.length;i<a;i++){var o=t.charAt(i);e?("]"!==o&&")"!==o||e--,r+=o):","===o?(n.push(r),r=""):("["!==o&&"("!==o||e++,(r.length||","!==o&&"\n"!==o&&" "!==o)&&(r+=o))}return r.length&&n.push(r),n},e.parseCSS=function(t){for(var e=jk.parse(t,{position:!0,comments:!0}),n=void 0!==e.stylesheet&&e.stylesheet.rules?e.stylesheet.rules:[],r=[],i=0,a=n.length;i<a;i++)if("rule"==n[i].type)for(var o=n[i],s=o.selectors,c=0,l=s.length;c<l;c++)r.push([s[c],o.declarations]);return r},e.getPreservedText=function(t,e,n){for(var r=jk.parse(t,{position:!0,comments:!0}),i=void 0!==r.stylesheet&&r.stylesheet.rules?r.stylesheet.rules:[],a=[],o=i.length-1;o>=0;o--)(e.fontFaces&&"font-face"===i[o].type||e.mediaQueries&&"media"===i[o].type||e.keyFrames&&"keyframes"===i[o].type||e.pseudos&&i[o].selectors&&this.matchesPseudo(i[o].selectors[0],n))&&a.unshift(jk.stringify({stylesheet:{rules:[i[o]]}},{comments:!1,indentation:" "})),i[o].position.start;return 0!==a.length&&"\n"+a.join("\n")+"\n"},e.normalizeLineEndings=function(t){return t.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n")},e.matchesPseudo=function(t,e){return e.find((function(e){return t.indexOf(e)>-1}))},e.compareFunc=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return t.length-e.length},e.compare=function(t,n){return 1==e.compareFunc(t,n)?t:n},e.getDefaultOptions=function(t){var e=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,url:""},t);return e.webResources=e.webResources||{},e}})),iS=(rS.Selector,rS.Property,rS.extract,rS.parseCSS,rS.getPreservedText,rS.normalizeLineEndings,rS.matchesPseudo,rS.compareFunc,rS.compare,rS.getDefaultOptions,r((function(t){t.exports=function(e,n,r,i){var a,o=(a=[],{encodeEntities:function(e){var n=t.exports.codeBlocks;return Object.keys(n).forEach((function(t){var r=new RegExp(n[t].start+"([\\S\\s]*?)"+n[t].end,"g");e=e.replace(r,(function(t,e){return a.push(t),"JUICE_CODE_BLOCK_"+(a.length-1)+"_"}))})),e},decodeEntities:function(t){for(var e=0;e<a.length;e++){var n=new RegExp("JUICE_CODE_BLOCK_"+e+'_(="")?',"gi");t=t.replace(n,(function(){return a[e]}))}return t}}),s=function(t,e,n){return e=Object.assign({decodeEntities:!1,_useHtmlParser2:!0},e),t=n(t),Uk.load(t,e)}(e,n,o.encodeEntities),c=[s];c.push.apply(c,i);var l=r.apply(void 0,c)||s;return n&&n.xmlMode?o.decodeEntities(l.xml()):o.decodeEntities(l.html())},t.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}}))),aS=(iS.codeBlocks,function(t){if(isNaN(t))return NaN;for(var e=String(+t).split(""),n=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],r="",i=3;i--;)r=(n[+e.pop()+10*i]||"")+r;return Array(+e.join("")+1).join("M")+r}),oS=function(t){for(var e,n="";t>0;)e=(t-1)%26,n=String.fromCharCode(65+e)+n,t=(t-e)/26|0;return n||void 0},sS=function(t){function e(e,o,s){s=s||{};var c=rS.parseCSS(o),l=[],A="style",u={};if(s.styleAttributeName&&(A=s.styleAttributeName),c.forEach((function(r){var i=r[0],o=r[1],c=new rS.Selector(i),h=c.parsed();if(!h)return;for(var f,d=function(t){if(0===t.length)return;var e=t[t.length-1].pseudos;if(!e)return;for(var n=0;n<e.length;n++)if(a(e[n]))return e[n].name}(h),p=0;p<h.length;++p){var g=h[p];if(g.pseudos)for(var m=0;m<g.pseudos.length;++m){var y=g.pseudos[m];if(t.ignoredPseudos.indexOf(y.name)>=0)return}}if(d){var v=h[h.length-1],b=v.pseudos;v.pseudos=function(t){return t.filter((function(t){return!a(t)}))}(v.pseudos),i=h.toString(),v.pseudos=b}try{f=e(i)}catch(t){return}f.each((function(){var r=this;if(!(r.name&&t.nonVisualElements.indexOf(r.name.toUpperCase())>=0)){if(d){var i="pseudo"+d,a=r[i];a||((a=r[i]=e("<span />").get(0)).pseudoElementType=d,a.pseudoElementParent=r,a.counterProps=r.counterProps,r[i]=a),r=a}if(!r.styleProps){if(r.styleProps={},e(r).attr(A)){var h="* { "+e(r).attr(A)+" } ";g(rS.parseCSS(h)[0][1],new rS.Selector("<style>",!0))}l.push(r)}r.counterProps||(r.counterProps=r.parent&&r.parent.counterProps?Object.create(r.parent.counterProps):{}),g(o,c)}function f(t,e){for(var n=e.split(/\s+/),r=0;r<n.length;r++){var i=n[r],a=parseInt(n[r+1],10);isNaN(a)?t.counterProps[i]=u[i]=0:t.counterProps[i]=u[n[r++]]=a}}function p(t,e){for(var n=e.split(/\s+/),r=0;r<n.length;r++){var i=n[r];if(void 0!==t.counterProps[i]){var a=parseInt(n[r+1],10);isNaN(a)?t.counterProps[i]=u[i]+=1:t.counterProps[i]=u[n[r++]]+=a}}}function g(e,i){for(var a=0,o=e.length;a<o;a++)if("property"==e[a].type){var c=e[a].name,l=e[a].value;"counter-reset"===c&&f(r,l),"counter-increment"===c&&p(r,l);var A=null!==l.match(/!important$/);A&&!s.preserveImportant&&(l=n(l));var u=[e[a].position.start.line,e[a].position.start.col],h=new rS.Property(c,l,i,A?2:0,u),d=r.styleProps[c];t.excludedProperties.indexOf(c)<0&&(d&&d.compare(h)===h||!d)&&(d&&d.selector!==i?delete r.styleProps[c]:d&&(h.nextProp=d),r.styleProps[c]=h)}}}))})),l.forEach((function(t){Object.keys(t.styleProps).length;var n=[];Object.keys(t.styleProps).forEach((function(e){for(var r=t.styleProps[e];void 0!==r;)n.push(r),r=r.nextProp})),n.sort((function(t,e){return t.compareFunc(e)}));var r=n.filter((function(t){return"content"!==t.prop})).map((function(t){return t.prop+": "+t.value.replace(/["]/g,"'")+";"})).join(" ");r&&e(t).attr(A,r)})),s.inlinePseudoElements&&l.forEach((function(t){if(t.pseudoElementType&&t.styleProps.content){var n=function(t){var e=t.styleProps.content.value;if("none"===e||"normal"===e)return"";var n=e.match(/^\s*url\s*\(\s*(.*?)\s*\)\s*$/i);if(n){return{img:n[1].replace(/^['"]|['"]$/g,"")}}for(var a=[],o=e.split(/['"]/),s=0;s<o.length;s++)if(""!==o[s]){var c=o[s].match(/var\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);if(c){var l=r(t,c[1])||c[2];a.push(l.replace(/^['"]|['"]$/g,""))}else{var A=o[s].match(/counter\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);if(A&&A[1]in t.counterProps){var u=t.counterProps[A[1]];a.push(i(u,A[3]))}else{var h=o[s].match(/attr\s*\(\s*(.*?)\s*\)/i);if(h){var f=h[1];a.push(t.pseudoElementParent?t.pseudoElementParent.attribs[f]:t.attribs[f])}else a.push(o[s])}}}return e=(e=a.join("")).replace(/\\/g,"")}(t);n.img?(t.name="img",e(t).attr("src",n.img)):e(t).text(n);var a=t.pseudoElementParent;"before"===t.pseudoElementType?e(a).prepend(t):e(a).append(t)}})),s.applyWidthAttributes&&l.forEach((function(t){d(t,"width")})),s.applyHeightAttributes&&l.forEach((function(t){d(t,"height")})),s.applyAttributesTableElements&&l.forEach((function(r){if(!r.name)return;var i=r.name.toUpperCase(),a=Object.keys(t.styleToAttribute);if(t.tableElements.indexOf(i)>-1)for(var o in r.styleProps)if(a.indexOf(r.styleProps[o].prop)>-1){var c=t.styleToAttribute[r.styleProps[o].prop],l=r.styleProps[o].value;if(s.preserveImportant&&(l=n(l)),"background"===c&&(l=p(l)),/(linear|radial)-gradient\(/i.test(l))continue;e(r).attr(c,l)}})),s.insertPreservedExtraCss&&s.extraCss){var h=rS.getPreservedText(s.extraCss,{mediaQueries:s.preserveMediaQueries,fontFaces:s.preserveFontFaces,keyFrames:s.preserveKeyFrames});if(h){var f=null;!0!==s.insertPreservedExtraCss?f=e(s.insertPreservedExtraCss):((f=e("head")).length||(f=e("body")),f.length||(f=e.root())),f.first().append("<style>"+h+"</style>")}}function d(r,i){if(r.name){var a=r.name.toUpperCase();if(t[i+"Elements"].indexOf(a)>-1)for(var o in r.styleProps)if(r.styleProps[o].prop===i){var c=r.styleProps[o].value;if(s.preserveImportant&&(c=n(c)),c.match(/px/)){var l=c.replace("px","");return void e(r).attr(i,l)}if(t.tableElements.indexOf(a)>-1&&c.match(/\%/))return void e(r).attr(i,c)}}}function p(t){return 0!==t.indexOf("url(")?t:t.replace(/^url\((["'])?([^"']+)\1\)$/,"$2")}}function n(t){return t.replace(/\s*!important$/,"")}function r(t,e){for(;t;){if(e in t.styleProps)return t.styleProps[e].value;t=t.parent||t.pseudoElementParent}}function i(t,e){switch(e){case"lower-roman":return aS(t).toLowerCase();case"upper-roman":return aS(t);case"lower-latin":case"lower-alpha":return oS(t).toLowerCase();case"upper-latin":case"upper-alpha":return oS(t);default:return t.toString()}}function a(t){return"before"===t.name||"after"===t.name}return t.ignoredPseudos=["hover","active","focus","visited","link"],t.widthElements=["TABLE","TD","TH","IMG"],t.heightElements=["TABLE","TD","TH","IMG"],t.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],t.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],t.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},t.excludedProperties=[],t.juiceDocument=function(n,r){r=rS.getDefaultOptions(r);var i=function(e,n){return function(e,n){var r,i,a,o=[];return e("style").each((function(){var s=!!(a=this).childNodes;if(1===(r=s?a.childNodes:a.children).length){if(i=r[0].data,n.applyStyleTags&&void 0===e(a).attr("data-embed")&&o.push(i),n.removeStyleTags&&void 0===e(a).attr("data-embed")){var c=s?a.childNodes[0].nodeValue:a.children[0].data,l=rS.getPreservedText(c,{mediaQueries:n.preserveMediaQueries,fontFaces:n.preserveFontFaces,keyFrames:n.preserveKeyFrames,pseudos:n.preservePseudos},t.ignoredPseudos);l?s?a.childNodes[0].nodeValue=l:a.children[0].data=l:e(a).remove()}e(a).removeAttr("data-embed")}else n.removeStyleTags&&e(a).remove()})),o}(e,n).join("\n")}(n,r);return i+="\n"+r.extraCss,e(n,i,r),n},t.inlineDocument=e,t}((function(t,e){return iS(t,{xmlMode:e&&e.xmlMode},cS,[e])})),cS=function(t,e){return sS.juiceDocument(t,e)};sS.inlineContent=function(t,e,n){return iS(t,{xmlMode:n&&n.xmlMode},sS.inlineDocument,[e,n])};var lS=sS;function AS(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var uS={bold:wm,italic:Em,"|":xm,strikethrough:Tm,sub:Sm,sup:Nm,header:Om,insert:$m,list:Vm,graph:Jm,size:ty,checklist:ny,h1:iy,h2:oy,h3:cy,color:Fm,quote:py,quickTable:my,togglePreview:vy,code:Ty,codeTheme:Sy,export:Ny,settings:Fy,fullScreen:wy,mobilePreview:dv,copy:function(t){Xa(r,t);var e,n=AS(r);function r(t,e,i){var a;return Ha(this,r),(a=n.call(this,t)).previewer=i.options.previewer,a.isLoading=!1,a.updateMarkdown=!1,a.setName("copy","copy"),a}return ja(r,[{key:"adaptWechat",value:(e=cw(gw.mark((function t(e){var n,r,i,a,o;return gw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=/(<figure data-lines=.+?<)div(.+?<\/)div(>.*?<\/figure>)/g,r=e.replace(n,(function(t,e,n,r){var i,a;return uo(i=uo(a="".concat(e,"p")).call(a,n,"p")).call(i,r)})),i=/(<img.+?src=")(.+?)(".*?>)/g,a=[],r.replace(i,(function(t,e,n){var r,i;a.push((r=n,new mw((function(t){var e=document.createElement("CANVAS"),n=e.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=function(){e.height=a.height,e.width=a.width,n.drawImage(a,0,0);var r=e.toDataURL(i||"image/png");t(r),e=null},a.src=r}))))})),t.next=7,mw.all(a);case 7:return o=t.sent,t.abrupt("return",r.replace(i,(function(t,e,n,r){return e+o.shift()+r})));case 9:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})},{key:"getStyleFromSheets",value:function(t){var e,n=va(e=Rr(document.styleSheets)).call(e,(function(e){var n;return Ul(n=e.cssRules[0].cssText).call(n,t)>-1}));return"<style>".concat(Bf(n).call(n,(function(t,e){var n;return t+Bf(n=Rr(e.cssRules)).call(n,(function(t,e){return t+e.cssText}),"")}),""),"</style>")}},{key:"computeStyle",value:function(){return{mathStyle:this.getStyleFromSheets("mjx-container"),echartStyle:"<style>figure>p{overflow:hidden;position:relative;width:500px;height:300px;background:transparent;}</style>",cherryStyle:this.getStyleFromSheets("cherry")}}},{key:"toggleLoading",value:function(){this.isLoading?document.querySelector(".icon-loading").outerHTML='<i class="ch-icon ch-icon-copy" title="复制内容"></i>':document.querySelector(".ch-icon-copy").outerHTML='<div class="icon-loading loading"></div>';this.isLoading=!this.isLoading}},{key:"onClick",value:function(t){var e=this;this.toggleLoading();var n=document.querySelector(".cherry").getAttribute("data-inline-code-theme"),r=document.querySelector(".cherry").getAttribute("data-code-block-theme"),i=this.computeStyle(),a=i.mathStyle,o=i.echartStyle,s=i.cherryStyle,c=this.previewer.isPreviewerHidden()?this.previewer.options.previewerCache.html:this.previewer.getValue();this.adaptWechat(c).then((function(t){var i,c,l;Xg(lS(uo(i=uo(c=uo(l='<div data-inline-code-theme="'.concat(n,'" data-code-block-theme="')).call(l,r,'">\n <div class="cherry-markdown">')).call(c,t,"</div>\n </div>")).call(i,a+o+s))),e.toggleLoading()}))}}]),r}(ym),undo:Ey,redo:xy,underline:Ly,switchModel:Ry,image:Qy,audio:Gy,video:Ky,br:Yy,hr:zy,formula:qy,link:Jy,table:tv,toc:nv,lineTable:iv,barTable:ov,pdf:cv,word:Av,ruby:hv},hS=function(){function t(e){return Ha(this,t),this.init(e)}return ja(t,[{key:"init",value:function(t){var e=t.options,n=e.buttonConfig,r=e.editor,i=e.customMenu,a=e.engine;return Bf(n).call(n,(function(e,n){if("string"==typeof n)uS[n]?e.push(new uS[n](r,a,t)):i[n]&&e.push(new i[n](r,a,t));else if("object"===no(n)){var o=ha(n);if(1!==o.length)return e;var s=Rl(o,1)[0];uS[s]?e.push(new uS[s](r,n[s],a,t)):i[s]&&e.push(new i[s](r,n[s],a,t))}return e}),[])}}]),t}();function fS(t,e){var n=ha(t);if(da){var r=da(t);e&&(r=va(r).call(r,(function(e){return Ea(t,e).enumerable}))),n.push.apply(n,r)}return n}function dS(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Na(n=fS(Object(i),!0)).call(n,(function(e){co(t,e,i[e])})):Da?Oa(t,Da(i)):Na(r=fS(Object(i))).call(r,(function(e){Pa(t,e,Ea(i,e))}))}return t}function pS(t){var e="";return t.ctrlKey&&(e+="Ctrl-"),t.altKey&&(e+="Alt-"),t.metaKey&&hm&&(e+="Command-"),t.key&&(e+=t.key.toLowerCase()),e}var gS=function(){function t(e){Ha(this,t),this.instanceId="cherry-toolbar-".concat((new Date).getTime()),this.options={dom:document.createElement("div"),buttonConfig:["bold"],editor:{},extensions:[],keysmap:{},engine:{},customMenu:[]},pl(this.options,e),this.initExtension(),this.init()}return ja(t,[{key:"init",value:function(){this.collectShortcutKey()}},{key:"previewOnly",value:function(){this.options.dom.classList.add("preview-only"),Kg.emit(this.instanceId,Kg.Events.toolbarHide)}},{key:"showToolbar",value:function(){this.options.dom.classList.remove("preview-only"),Kg.emit(this.instanceId,Kg.Events.toolbarShow)}},{key:"initExtension",value:function(){var t;this.options.extensions=new hS(this);var e=document.createDocumentFragment();Na(t=this.options.extensions).call(t,(function(t){e.appendChild(t.createBtn())})),this.options.dom.appendChild(e)}},{key:"collectShortcutKey",value:function(){var t,e=this;Na(t=this.options.extensions).call(t,(function(t){t.shortcutKey&&(e.options.keysmap=dS(dS({},e.options.keysmap),t.shortcutKey({isMac:hm})))}))}},{key:"collectToolbarHandler",value:function(){var t;Na(t=this.options.extensions).call(t,(function(t){t.onClick}))}},{key:"matchShortcutKey",value:function(t){var e,n=this,r=pS(t);return $d(e=this.options.extensions).call(e,(function(t){return n.options.keysmap[r]}))}},{key:"fireShortcutKey",value:function(t,e){var n=pS(t);this.options.keysmap[n]&&this.options.keysmap[n](t,e)}}]),t}();function mS(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var yS=function(t){Xa(n,t);var e=mS(n);function n(){return Ha(this,n),e.apply(this,arguments)}return ja(n,[{key:"init",value:function(){this.addSelectionChangeListener(),this.bubbleDom=this.options.dom,this.editorDom=this.options.editor.getEditorDom(),this.initBubbleDom(),this.editorDom.querySelector(".CodeMirror").appendChild(this.bubbleDom)}},{key:"getScrollTop",value:function(){return this.options.editor.editor.getScrollInfo().top}},{key:"updatePositionWhenScroll",value:function(){"block"===this.bubbleDom.style.display&&(this.bubbleDom.style.marginTop="".concat(ld(this.bubbleDom.dataset.scrollTop)-this.getScrollTop(),"px"),ym.cleanSubMenu())}},{key:"showBubble",value:function(t,e){"block"!==this.bubbleDom.style.display&&(this.bubbleDom.style.display="block",this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=String(this.getScrollTop())),this.bubbleDom.style.visibility="visible";var n=this.editorDom.querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(),r=this.editorDom.getBoundingClientRect(),i=n.left-r.left,a=n.width+i,o=t;o<2*this.bubbleDom.offsetHeight?(o+=this.bubbleDom.offsetHeight-this.bubbleTop.getBoundingClientRect().height,this.bubbleTop.style.display="block",this.bubbleBottom.style.display="none"):(o-=this.bubbleDom.offsetHeight+2*this.bubbleBottom.getBoundingClientRect().height,this.bubbleTop.style.display="none",this.bubbleBottom.style.display="block"),this.bubbleDom.style.top="".concat(o,"px");var s=e-this.bubbleDom.offsetWidth/2;s<i?(s=i,this.$setBubbleCursorPosition("".concat(e-i,"px"))):s+this.bubbleDom.offsetWidth>a?(s=a-this.bubbleDom.offsetWidth,this.$setBubbleCursorPosition("".concat(e-s,"px"))):this.$setBubbleCursorPosition("50%"),this.bubbleDom.style.left="".concat(s,"px")}},{key:"hideBubble",value:function(){"none"!==this.bubbleDom.style.display&&(this.bubbleDom.style.display="none")}},{key:"$setBubbleCursorPosition",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"50%";if("50%"===t)this.bubbleTop.style.left="50%",this.bubbleBottom.style.left="50%";else{var e=ld(t)<10?"10px":t;this.bubbleTop.style.left=e,this.bubbleBottom.style.left=e}}},{key:"initBubbleDom",value:function(){var t=document.createElement("div");t.className="cherry-bubble-top";var e=document.createElement("div");e.className="cherry-bubble-bottom",this.bubbleTop=t,this.bubbleBottom=e,this.bubbleDom.appendChild(t),this.bubbleDom.appendChild(e)}},{key:"getBubbleDom",value:function(){return this.bubbleDom}},{key:"addSelectionChangeListener",value:function(){var t=this;this.options.editor.addListener("change",(function(e){t.hideBubble(),ym.cleanSubMenu()})),this.options.editor.addListener("refresh",(function(e){t.hideBubble(),ym.cleanSubMenu()})),this.options.editor.addListener("scroll",(function(e){t.updatePositionWhenScroll()})),this.options.editor.addListener("beforeSelectionChange",(function(e,n){if("*mouse"!==n.origin&&(null!==n.origin||void 0===n.origin))return!0;if(!n.ranges[0])return!0;var r=1e6*n.ranges[0].anchor.line+n.ranges[0].anchor.ch,i=1e6*n.ranges[0].head.line+n.ranges[0].head.ch,a="asc";r>i&&(a="desc"),ym.cleanSubMenu(),xo((function(){if(e.getSelections().join("").length<=0)t.hideBubble();else{var n=e.getWrapperElement().getElementsByClassName("CodeMirror-selected"),r=t.editorDom.getBoundingClientRect(),i=0,o=0;if("object"!==no(n)||n.length<=0)t.hideBubble();else{for(var s=0;s<n.length;s++){var c=n[s].getBoundingClientRect(),l=c.top-r.top;"asc"===a?l>=o&&(o=l,i=c.left-r.left+c.width/2):(l<=o||o<=0)&&(o=l,i=c.left-r.left+c.width/2)}t.showBubble(o,i)}}}),10)}))}}]),n}(gS);function vS(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var bS=function(t){Xa(n,t);var e=vS(n);function n(){return Ha(this,n),e.apply(this,arguments)}return ja(n,[{key:"init",value:function(){this.editorDom=this.options.editor.getEditorDom(),this.editorDom.querySelector(".CodeMirror-scroll").appendChild(this.options.dom),this.initAction()}},{key:"initAction",value:function(){var t=this;this.options.editor.addListener("cursorActivity",(function(e,n){t.cursorActivity(n,e)})),this.options.editor.addListener("update",(function(e,n){t.cursorActivity(n,e)})),this.options.editor.addListener("refresh",(function(e,n){xo((function(){t.cursorActivity(n,e)}),0)}))}},{key:"update",value:function(t,e){var n=e.getCursor();if(this.isHidden(n.line,e))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block"}},{key:"cursorActivity",value:function(t,e){var n=e.getCursor(),r=document.querySelector(".cherry-editor .CodeMirror-lines");if(!r)return!1;var i=getComputedStyle(r),a=ld(i.paddingLeft),o=ld(i.paddingTop);if(this.isHidden(n.line,e))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block",this.options.dom.style.left="".concat(a,"px"),this.options.dom.style.top="".concat(this.getLineHeight(n.line,e)+o,"px")}},{key:"isHidden",value:function(t,e){return e.getSelections().length>1||(e.getSelection().length>0||!!e.getLine(t))}},{key:"getLineHeight",value:function(t,e){var n=0;return e.getDoc().eachLine(0,t,(function(t){n+=t.height})),n}}]),n}(gS);function wS(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}var _S=function(t){Xa(n,t);var e=wS(n);function n(t){var r;return Ha(this,n),(r=e.call(this)).options={dom:document.createElement("div"),buttonConfig:["mobilePreview","copy"],editor:{},previewer:{},extensions:[],keysmap:{},engine:{},customMenu:[]},pl(r.options,t),r.initExtension(),r}return ja(n)}(gS);function ES(t,e){if(la(e))return e}function CS(t,e,n,r){if(t===e)return t?[[0,t]]:[];if(null!=n){var i=function(t,e,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,i="number"==typeof n?null:n.newRange,a=t.length,o=e.length;if(0===r.length&&(null===i||0===i.length)){var s=r.index,c=t.slice(0,s),l=t.slice(s),A=i?i.index:null,u=s+o-a;if((null===A||A===u)&&!(u<0||u>o)){var h=e.slice(0,u);if((v=e.slice(u))===l){var f=Math.min(s,u),d=c.slice(0,f),p=h.slice(0,f);if(d===p){var g=c.slice(f),m=h.slice(f);return MS(d,g,m,l)}}}if(null===A||A===s){var y=s,v=(h=e.slice(0,y),e.slice(y));if(h===c){var b=Math.min(a-y,o-y),w=l.slice(l.length-b),_=v.slice(v.length-b);if(w===_){g=l.slice(0,l.length-b),m=v.slice(0,v.length-b);return MS(c,g,m,w)}}}}if(r.length>0&&i&&0===i.length){d=t.slice(0,r.index),w=t.slice(r.index+r.length),f=d.length,b=w.length;if(!(o<f+b)){p=e.slice(0,f),_=e.slice(o-b);if(d===p&&w===_){g=t.slice(f,a-b),m=e.slice(f,o-b);return MS(d,g,m,w)}}}return null}(t,e,n);if(i)return i}var a=BS(t,e),o=t.substring(0,a);a=TS(t=t.substring(a),e=e.substring(a));var s=t.substring(t.length-a),c=function(t,e){var n;if(!t)return[[1,e]];if(!e)return[[-1,t]];var r=t.length>e.length?t:e,i=t.length>e.length?e:t,a=r.indexOf(i);if(-1!==a)return n=[[1,r.substring(0,a)],[0,i],[1,r.substring(a+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=-1),n;if(1===i.length)return[[-1,t],[1,e]];var o=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function i(t,e,n){for(var r,i,a,o,s=t.substring(n,n+Math.floor(t.length/4)),c=-1,l="";-1!==(c=e.indexOf(s,c+1));){var A=BS(t.substring(n),e.substring(c)),u=TS(t.substring(0,n),e.substring(0,c));l.length<u+A&&(l=e.substring(c-u,c)+e.substring(c,c+A),r=t.substring(0,n-u),i=t.substring(n+A),a=e.substring(0,c-u),o=e.substring(c+A))}return 2*l.length>=t.length?[r,i,a,o,l]:null}var a,o,s,c,l,A=i(n,r,Math.ceil(n.length/4)),u=i(n,r,Math.ceil(n.length/2));if(!A&&!u)return null;a=u?A&&A[4].length>u[4].length?A:u:A;t.length>e.length?(o=a[0],s=a[1],c=a[2],l=a[3]):(c=a[0],l=a[1],o=a[2],s=a[3]);var h=a[4];return[o,s,c,l,h]}(t,e);if(o){var s=o[0],c=o[1],l=o[2],A=o[3],u=o[4],h=CS(s,l),f=CS(c,A);return h.concat([[0,u]],f)}return function(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),a=i,o=2*i,s=new Array(o),c=new Array(o),l=0;l<o;l++)s[l]=-1,c[l]=-1;s[a+1]=0,c[a+1]=0;for(var A=n-r,u=A%2!=0,h=0,f=0,d=0,p=0,g=0;g<i;g++){for(var m=-g+h;m<=g-f;m+=2){for(var y=a+m,v=(C=m===-g||m!==g&&s[y-1]<s[y+1]?s[y+1]:s[y-1]+1)-m;C<n&&v<r&&t.charAt(C)===e.charAt(v);)C++,v++;if(s[y]=C,C>n)f+=2;else if(v>r)h+=2;else if(u){if((_=a+A-m)>=0&&_<o&&-1!==c[_]){var b=n-c[_];if(C>=b)return xS(t,e,C,v)}}}for(var w=-g+d;w<=g-p;w+=2){for(var _=a+w,E=(b=w===-g||w!==g&&c[_-1]<c[_+1]?c[_+1]:c[_-1]+1)-w;b<n&&E<r&&t.charAt(n-b-1)===e.charAt(r-E-1);)b++,E++;if(c[_]=b,b>n)p+=2;else if(E>r)d+=2;else if(!u){if((y=a+A-w)>=0&&y<o&&-1!==s[y]){var C=s[y];v=a+C-y;if(C>=(b=n-b))return xS(t,e,C,v)}}}}return[[-1,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-a),e=e.substring(0,e.length-a));return o&&c.unshift([0,o]),s&&c.push([0,s]),function t(e,n){e.push([0,""]);var r,i=0,a=0,o=0,s="",c="";for(;i<e.length;)if(i<e.length-1&&!e[i][1])e.splice(i,1);else switch(e[i][0]){case 1:o++,c+=e[i][1],i++;break;case-1:a++,s+=e[i][1],i++;break;case 0:var l=i-o-a-1;if(n){if(l>=0&&NS(e[l][1])){var A=e[l][1].slice(-1);if(e[l][1]=e[l][1].slice(0,-1),s=A+s,c=A+c,!e[l][1]){e.splice(l,1),i--;var u=l-1;e[u]&&1===e[u][0]&&(o++,c=e[u][1]+c,u--),e[u]&&-1===e[u][0]&&(a++,s=e[u][1]+s,u--),l=u}}if(IS(e[i][1])){A=e[i][1].charAt(0);e[i][1]=e[i][1].slice(1),s+=A,c+=A}}if(i<e.length-1&&!e[i][1]){e.splice(i,1);break}if(s.length>0||c.length>0){s.length>0&&c.length>0&&(0!==(r=BS(c,s))&&(l>=0?e[l][1]+=c.substring(0,r):(e.splice(0,0,[0,c.substring(0,r)]),i++),c=c.substring(r),s=s.substring(r)),0!==(r=TS(c,s))&&(e[i][1]=c.substring(c.length-r)+e[i][1],c=c.substring(0,c.length-r),s=s.substring(0,s.length-r)));var h=o+a;0===s.length&&0===c.length?(e.splice(i-h,h),i-=h):0===s.length?(e.splice(i-h,h,[1,c]),i=i-h+1):0===c.length?(e.splice(i-h,h,[-1,s]),i=i-h+1):(e.splice(i-h,h,[-1,s],[1,c]),i=i-h+2)}0!==i&&0===e[i-1][0]?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,o=0,a=0,s="",c=""}""===e[e.length-1][1]&&e.pop();var f=!1;i=1;for(;i<e.length-1;)0===e[i-1][0]&&0===e[i+1][0]&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)===e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),f=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),f=!0)),i++;f&&t(e,n)}(c,r),c}function xS(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),o=t.substring(n),s=e.substring(r),c=CS(i,a),l=CS(o,s);return c.concat(l)}function BS(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(a,i)==e.substring(a,i)?a=n=i:r=i,i=Math.floor((r-n)/2+n);return kS(t.charCodeAt(i-1))&&i--,i}function TS(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(t.length-i,t.length-a)==e.substring(e.length-i,e.length-a)?a=n=i:r=i,i=Math.floor((r-n)/2+n);return SS(t.charCodeAt(t.length-i))&&i--,i}function kS(t){return t>=55296&&t<=56319}function SS(t){return t>=56320&&t<=57343}function IS(t){return SS(t.charCodeAt(0))}function NS(t){return kS(t.charCodeAt(t.length-1))}function MS(t,e,n,r){return NS(t)||IS(r)?null:function(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}([[0,t],[-1,e],[1,n],[0,r]])}function FS(t,e,n){return CS(t,e,n,!0)}FS.INSERT=1,FS.DELETE=-1,FS.EQUAL=0;var DS=FS;function LS(t,e,n){for(var r=DS(e,n),i=t,a=t,o=0;o<r.length;o++){var s=r[o];if(a<=0)return i;var c=s[0],l=s[1].length;switch(c){case DS.EQUAL:if(a<=l)return i;a-=l;break;case DS.DELETE:if(a<=l)return i-l+a;a-=l,i-=l;break;case DS.INSERT:i+=l}}return i}var OS=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},RS=Ws(Object.keys,Object),US=Object.prototype.hasOwnProperty;var PS=function(t){if(!Js(t))return RS(t);var e=[];for(var n in Object(t))US.call(t,n)&&"constructor"!=n&&e.push(n);return e};var QS=function(t){return cc(t)?Mc(t):PS(t)};var HS=function(t,e){return t&&Tc(e,QS(e),t)};var GS=function(t,e){return t&&Tc(e,Oc(e),t)};var jS=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a};var KS=function(){return[]},$S=Object.prototype.propertyIsEnumerable,YS=Object.getOwnPropertySymbols,VS=YS?function(t){return null==t?[]:(t=Object(t),jS(YS(t),(function(e){return $S.call(t,e)})))}:KS;var zS=function(t,e){return Tc(t,VS(t),e)};var WS=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},qS=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)WS(e,VS(t)),t=qs(t);return e}:KS;var XS=function(t,e){return Tc(t,qS(t),e)};var JS=function(t,e,n){var r=e(t);return oc(t)?r:WS(r,n(t))};var ZS=function(t){return JS(t,QS,VS)};var tI=function(t){return JS(t,Oc,qS)},eI=ds(Go,"DataView"),nI=ds(Go,"Promise"),rI=ds(Go,"Set"),iI=ds(Go,"WeakMap"),aI=as(eI),oI=as(ps),sI=as(nI),cI=as(rI),lI=as(iI),AI=Jo;(eI&&"[object DataView]"!=AI(new eI(new ArrayBuffer(1)))||ps&&"[object Map]"!=AI(new ps)||nI&&"[object Promise]"!=AI(nI.resolve())||rI&&"[object Set]"!=AI(new rI)||iI&&"[object WeakMap]"!=AI(new iI))&&(AI=function(t){var e=Jo(t),n="[object Object]"==e?t.constructor:void 0,r=n?as(n):"";if(r)switch(r){case aI:return"[object DataView]";case oI:return"[object Map]";case sI:return"[object Promise]";case cI:return"[object Set]";case lI:return"[object WeakMap]"}return e});var uI=AI,hI=Object.prototype.hasOwnProperty;var fI=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&hI.call(t,"index")&&(n.index=t.index,n.input=t.input),n};var dI=function(t,e){var n=e?Ks(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)},pI=/\w*$/;var gI=function(t){var e=new t.constructor(t.source,pI.exec(t));return e.lastIndex=t.lastIndex,e},mI=jo?jo.prototype:void 0,yI=mI?mI.valueOf:void 0;var vI=function(t){return yI?Object(yI.call(t)):{}};var bI=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Ks(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return dI(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return $s(t,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return gI(t);case"[object Set]":return new r;case"[object Symbol]":return vI(t)}};var wI=function(t){return tc(t)&&"[object Map]"==uI(t)},_I=wc&&wc.isMap,EI=_I?bc(_I):wI;var CI=function(t){return tc(t)&&"[object Set]"==uI(t)},xI=wc&&wc.isSet,BI=xI?bc(xI):CI,TI={};TI["[object Arguments]"]=TI["[object Array]"]=TI["[object ArrayBuffer]"]=TI["[object DataView]"]=TI["[object Boolean]"]=TI["[object Date]"]=TI["[object Float32Array]"]=TI["[object Float64Array]"]=TI["[object Int8Array]"]=TI["[object Int16Array]"]=TI["[object Int32Array]"]=TI["[object Map]"]=TI["[object Number]"]=TI["[object Object]"]=TI["[object RegExp]"]=TI["[object Set]"]=TI["[object String]"]=TI["[object Symbol]"]=TI["[object Uint8Array]"]=TI["[object Uint8ClampedArray]"]=TI["[object Uint16Array]"]=TI["[object Uint32Array]"]=!0,TI["[object Error]"]=TI["[object Function]"]=TI["[object WeakMap]"]=!1;var kI=function t(e,n,r,i,a,o){var s,c=1&n,l=2&n,A=4&n;if(r&&(s=a?r(e,i,a,o):r(e)),void 0!==s)return s;if(!Zo(e))return e;var u=oc(e);if(u){if(s=fI(e),!c)return Ys(e,s)}else{var h=uI(e),f="[object Function]"==h||"[object GeneratorFunction]"==h;if(uc(e))return Gs(e,c);if("[object Object]"==h||"[object Arguments]"==h||f&&!a){if(s=l||f?{}:Zs(e),!c)return l?XS(e,GS(s,e)):zS(e,HS(s,e))}else{if(!TI[h])return a?e:{};s=bI(e,h,c)}}o||(o=new Rs);var d=o.get(e);if(d)return d;o.set(e,s),BI(e)?e.forEach((function(i){s.add(t(i,n,r,i,e,o))})):EI(e)&&e.forEach((function(i,a){s.set(a,t(i,n,r,a,e,o))}));var p=u?void 0:(A?l?tI:ZS:l?Oc:QS)(e);return OS(p||e,(function(i,a){p&&(i=e[a=i]),Bc(s,a,t(i,n,r,a,e,o))})),s};var SI=function(t){return kI(t,5)},II={urlProcessor:function(t,e){return t},fileUpload:function(t,e){e("images/demo-dog.png")},afterChange:function(t,e){},afterInit:function(t,e){},beforeImageMounted:function(t,e){return{srcProp:t,src:e}},onClickPreview:function(t){},onCopyCode:function(t,e){return e},changeString2Pinyin:function(t){return t}},NI=SI({externals:{},engine:{global:{classicBr:!1,urlProcessor:II.urlProcessor,htmlWhiteList:""},syntax:{list:{listNested:!1,indentSpace:2},table:{enableChart:!1},inlineCode:{theme:"red"},codeBlock:{theme:"dark",wrap:!0,lineNumber:!0,customRenderer:{},indentedCodeBlock:!0},emoji:{useUnicode:!0},fontEmphasis:{allowWhitespace:!1},strikethrough:{needWhitespace:!1},mathBlock:{engine:"MathJax",src:"",plugins:!0},inlineMath:{engine:"MathJax",src:""},toc:{allowMultiToc:!1},header:{anchorStyle:"default"}}},editor:{theme:"default",height:"100%",defaultModel:"edit&preview",convertWhenPaste:!0,codemirror:{autofocus:!0}},toolbars:{theme:"dark",showToolbar:!0,toolbar:["bold","italic","strikethrough","|","color","header","ruby","|","list",{insert:["image","audio","video","link","hr","br","code","formula","toc","table","line-table","bar-table","pdf","word"]},"graph","settings"],sidebar:[],bubble:["bold","italic","underline","strikethrough","sub","sup","quote","|","size","color"],float:["h1","h2","h3","|","checklist","quote","quickTable","code"]},fileUpload:II.fileUpload,callback:{afterChange:II.afterChange,afterInit:II.afterInit,beforeImageMounted:II.beforeImageMounted,onClickPreview:II.onClickPreview,onCopyCode:II.onCopyCode,changeString2Pinyin:II.changeString2Pinyin},previewer:{dom:!1,className:"cherry-markdown",enablePreviewerBubble:!0,lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(t){return!0},failLoadOneImgCallback:function(t){},afterLoadOneImgCallback:function(t){},afterLoadAllImgCallback:function(){}}},isPreviewOnly:!1,autoScrollByCursor:!0,forceAppend:!0});function MI(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}function FI(t,e,n){var r,i={};return Na(r=ha(t)).call(r,(function(r){-1!==Ul(e).call(e,r)&&("object"===no(n)?"string"==typeof n[r]?no(t[r])===n[r]&&(i[r]=t[r]):t[r]instanceof n[r]&&(i[r]=t[r]):"string"==typeof n&&no(t[r])===n&&(i[r]=t[r]))})),i}var DI={HOOKS_TYPE_LIST:gA},LI=[];Nf()||Na(LI).call(LI,(function(t){}));var OI=function(){function t(){Ha(this,t)}return ja(t,null,[{key:"usePlugin",value:function(e){var n;if(this===t)throw new Error("`usePlugin` is not allowed to called through CherryStatic class.");if(this.initialized)throw new Error("The function `usePlugin` should be called before Cherry is instantiated.");if(!0!==e.$cherry$mounted){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e.install.apply(e,uo(n=[this.config.defaults]).call(n,i)),e.$cherry$mounted=!0}}}]),t}();function RI(t,e){var n=ha(t);if(da){var r=da(t);e&&(r=va(r).call(r,(function(e){return Ea(t,e).enumerable}))),n.push.apply(n,r)}return n}function UI(t,e){var n=void 0!==oa&&sa(t)||t["@@iterator"];if(!n){if(la(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return PI(t,e);var r=wn(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Rr(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PI(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function PI(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function QI(t){var e=function(){if("undefined"==typeof Reflect||!an)return!1;if(an.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(an(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=so(t);if(e){var i=so(this).constructor;n=an(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}co(OI,"createSyntaxHook",(function(t,e,n){var r,i=e===gA.PAR?TA:mA,a=FI(n,["beforeMakeHtml","makeHtml","afterMakeHtml","rule","test"],"function"),o={needCache:n.needCache,defaultCache:n.defaultCache};return co(r=function(t){Xa(r,t);var n=MI(r);function r(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ha(this,r),(t=e===gA.PAR?n.call(this,{needCache:!!o.needCache,defaultCache:o.defaultCache}):n.call(this)).config=i.config,ro(t)}return ja(r,[{key:"beforeMakeHtml",value:function(){for(var t,e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a.beforeMakeHtml?a.beforeMakeHtml.apply(this,i):(t=Af(so(r.prototype),"beforeMakeHtml",this)).call.apply(t,uo(e=[this]).call(e,i))}},{key:"makeHtml",value:function(){for(var t,e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a.makeHtml?a.makeHtml.apply(this,i):(t=Af(so(r.prototype),"makeHtml",this)).call.apply(t,uo(e=[this]).call(e,i))}},{key:"afterMakeHtml",value:function(){for(var t,e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a.afterMakeHtml?a.afterMakeHtml.apply(this,i):(t=Af(so(r.prototype),"afterMakeHtml",this)).call.apply(t,uo(e=[this]).call(e,i))}},{key:"test",value:function(){for(var t,e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a.test?a.test.apply(this,i):(t=Af(so(r.prototype),"test",this)).call.apply(t,uo(e=[this]).call(e,i))}},{key:"rule",value:function(){for(var t,e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a.rule?a.rule.apply(this,i):(t=Af(so(r.prototype),"rule",this)).call.apply(t,uo(e=[this]).call(e,i))}}]),r}(i),"HOOK_NAME",t),r})),co(OI,"createMenuHook",(function(t,e){var n=FI(e,["subMenuConfig","onClick","shortcutKeys","iconName"],{subMenuConfig:Array,onClick:"function",shortcutKeys:Array,iconName:"string"});return function(e){Xa(i,e);var r=MI(i);function i(e){var a;return Ha(this,i),(a=r.call(this,e)).setName(t,n.iconName),a.subMenuConfig=n.subMenuConfig||[],a}return ja(i,[{key:"onClick",value:function(){for(var t,e,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n.onClick?n.onClick.apply(this,a):(t=Af(so(i.prototype),"onClick",this)).call.apply(t,uo(e=[this]).call(e,a))}},{key:"shortcutKeys",get:function(){return n.shortcutKeys?n.shortcutKeys:[]}}]),i}(ym)})),co(OI,"constants",DI),co(OI,"VERSION","0.7.6");var HI=function(t){Xa(n,t);var e=QI(n);function n(t){var r,i;Ha(this,n),i=e.call(this),n.initialized=!0;var a,o=SI(n.config.defaults);return i.defaultToolbar=o.toolbars.toolbar,yu(t,Object),i.options=qc({},o,t,ES),"function"==typeof i.options.engine.global.urlProcessor&&(i.options.engine.global.urlProcessor=(a=i.options.engine.global.urlProcessor,function(t,e){if(zh.isInnerLink(t)){var n=a(zh.get(t),e);return zh.replace(t,n)}return a(t,e)})),i.status={toolbar:"show",previewer:"show",editor:"show"},(i.options.isPreviewOnly||"previewOnly"===i.options.editor.defaultModel)&&(i.options.toolbars.showToolbar=!1,i.options.editor.defaultModel="previewOnly",i.status.editor="hide",i.status.toolbar="hide"),i.instanceId=uo(r="cherry-".concat((new Date).getTime())).call(r,Math.random()),i.options.instanceId=i.instanceId,i.engine=new Np(i.options,$a(i)),i.init(),i}return ja(n,[{key:"init",value:function(){var t,e=this,n=this.options.id?document.getElementById(this.options.id):this.options.el;if(!n){if(!this.options.forceAppend)return!1;(n=document.createElement("div")).id=this.options.id||"cherry-markdown",document.body.appendChild(n)}n.style.height||(n.style.height=this.options.editor.height),this.cherryDom=n;var r=this.createWrapper(),i=this.createEditor(),a=this.createPreviewer();!1!==this.options.toolbars.showToolbar&&!1!==this.options.toolbars.toolbar||(r.classList.add("cherry--no-toolbar"),this.options.toolbars.toolbar=this.defaultToolbar),yu(this.options.toolbars.toolbar,Array),this.toolbar=this.createToolbar(i),this.sidebar=this.createSidebar(i);var o=document.createDocumentFragment();o.appendChild(this.toolbar.options.dom),o.appendChild(i.options.editorDom),o.appendChild(this.sidebar.options.dom),this.options.previewer.dom||o.appendChild(a.options.previewerDom),o.appendChild(a.options.virtualDragLineDom),o.appendChild(a.options.editorMaskDom),o.appendChild(a.options.previewerMaskDom),r.appendChild(o),n.appendChild(r),i.init(a),this.createBubble(i),this.createFloatMenu(i),a.init(i),a.registerAfterUpdate(go(t=this.engine.mounted).call(t,this.engine)),this.initText(i.editor),this.switchModel(this.options.editor.defaultModel),this.cherryDomResize(),Kg.on(this.instanceId,Kg.Events.toolbarHide,(function(){e.status.toolbar="hide"})),Kg.on(this.instanceId,Kg.Events.toolbarShow,(function(){e.status.toolbar="show"})),Kg.on(this.instanceId,Kg.Events.previewerClose,(function(){e.status.previewer="hide"})),Kg.on(this.instanceId,Kg.Events.previewerOpen,(function(){e.status.previewer="show"})),Kg.on(this.instanceId,Kg.Events.editorClose,(function(){e.status.editor="hide"})),Kg.on(this.instanceId,Kg.Events.editorOpen,(function(){e.status.editor="show"}))}},{key:"cherryDomResize",value:function(){var t=this,e=new ResizeObserver((function(e){var n,r=UI(e);try{for(r.s();!(n=r.n()).done;)Qa(n.value),xo((function(){return t.editor.editor.refresh()}),10)}catch(t){r.e(t)}finally{r.f()}}));e.observe(this.cherryDom),this.cherryDomReiszeObserver=e}},{key:"switchModel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"edit&preview";switch(t){case"edit&preview":this.previewer&&(this.previewer.editOnly(!0),this.previewer.recoverPreviewer()),this.toolbar&&this.toolbar.showToolbar();break;case"editOnly":this.previewer.isPreviewerHidden()||this.previewer.editOnly(!0),this.toolbar&&this.toolbar.showToolbar();break;case"previewOnly":this.previewer.previewOnly(),this.toolbar&&this.toolbar.previewOnly()}}},{key:"getInstanceId",value:function(){return this.instanceId}},{key:"getStatus",value:function(){return this.status}},{key:"getValue",value:function(){return this.editor.editor.getValue()}},{key:"getMarkdown",value:function(){return this.getValue()}},{key:"getCodeMirror",value:function(){return this.editor.editor}},{key:"getHtml",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.previewer.getValue(t)}},{key:"getPreviewer",value:function(){return this.previewer}},{key:"getToc",value:function(){var t=this.getHtml(),e=[];return t.replace(/<h([1-6]).*?id="([^"]+?)".*?>(.+?)<\/h[0-6]>/g,(function(t,n,r,i){return e.push({level:+n,id:r,text:i}),t})),e}},{key:"setValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!1===e)return this.editor.editor.setValue(t);var n=this.editor.editor,r=this.getValue(),i=n.getDoc().indexFromPos(n.getCursor()),a=LS(i,r,t),o=n.setValue(t),s=n.getDoc().posFromIndex(a);return n.setCursor(s),o}},{key:"insert",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n&&this.editor.editor.setSelection({line:n[0],ch:n[1]},{line:n[0],ch:n[1]});var i=this.editor.editor.replaceSelection(t,e?"around":"end");return r&&this.editor.editor.focus(),i}},{key:"insertValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.insert(t,e,n,r)}},{key:"setMarkdown",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.setValue(t,e)}},{key:"createWrapper",value:function(){var t="dark"===this.options.toolbars.theme?"dark":"",e=this.options.engine.syntax.inlineCode.theme,n=this.options.engine.syntax.codeBlock.theme;"dark"===n?n="tomorrow-night":"light"===n&&(n="solarized-light");var r=xd("div","cherry clearfix",{"data-toolbarTheme":t,"data-inlineCodeTheme":e,"data-codeBlockTheme":n});return this.wrapperDom=r,r}},{key:"createToolbar",value:function(t){var e=xd("div","cherry-toolbar");return this.toolbar=new gS({dom:e,editor:t,buttonConfig:this.options.toolbars.toolbar,customMenu:this.options.toolbars.customMenu,engine:this.engine}),this.toolbar}},{key:"createSidebar",value:function(t){var e="dark"===this.options.toolbars.theme?"dark":"",n=xd("div","cherry-sidebar ".concat(e));return this.sidebar=new _S({dom:n,editor:t,buttonConfig:this.options.toolbars.sidebar,customMenu:this.options.toolbars.customMenu,engine:this.engine,previewer:this.previewer}),this.sidebar}},{key:"createFloatMenu",value:function(t){var e=xd("div","cherry-floatmenu");this.options.toolbars.float&&(yu(this.options.toolbars.float,Array),this.floatMenu=new bS({dom:e,editor:t,buttonConfig:this.options.toolbars.float,engine:this.engine}))}},{key:"createBubble",value:function(t){var e=xd("div","cherry-bubble");this.options.toolbars.bubble&&(yu(this.options.toolbars.bubble,Array),this.bubble=new yS({dom:e,editor:t,buttonConfig:this.options.toolbars.bubble,engine:this.engine}))}},{key:"createEditor",value:function(){var t,e,n=xd("textarea","",{id:"code",name:"code"});n.textContent=this.options.value;var r=xd("div","cherry-editor");return r.appendChild(n),this.editor=new nA(function(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Na(n=RI(Object(i),!0)).call(n,(function(e){co(t,e,i[e])})):Da?Oa(t,Da(i)):Na(r=RI(Object(i))).call(r,(function(e){Pa(t,e,Ea(i,e))}))}return t}({$cherry:this,editorDom:r,wrapperDom:this.wrapperDom,value:this.options.value,onKeydown:go(t=this.fireShortcutKey).call(t,this),onChange:go(e=this.editText).call(e,this),toolbars:this.options.toolbars,fileUpload:this.options.fileUpload,autoScrollByCursor:this.options.autoScrollByCursor},this.options.editor)),this.editor}},{key:"createPreviewer",value:function(){var t,e="autonumber"===(this.options.engine.syntax.header&&this.options.engine.syntax.header.anchorStyle||"default")?" head-num":"",n=this.options.previewer,r=n.className,i=n.dom,a=n.enablePreviewerBubble,o=["cherry-previewer",r||"",e].join(" ");i?(t=i).className+=" ".concat(o):t=xd("div",o);var s=xd("div","cherry-drag"),c=xd("div","cherry-editor-mask"),l=xd("div","cherry-previewer-mask");return this.previewer=new nm({$cherry:this,virtualDragLineDom:s,editorMaskDom:c,previewerMaskDom:l,previewerDom:t,value:this.options.value,isPreviewOnly:this.options.isPreviewOnly,enablePreviewerBubble:a,lazyLoadImg:this.options.previewer.lazyLoadImg}),this.previewer}},{key:"initText",value:function(t){try{var e=t.getValue(),n=this.engine.makeHtml(e);this.previewer.update(n),this.options.callback.afterInit&&this.options.callback.afterInit(e,n)}catch(t){throw new wu(t)}}},{key:"editText",value:function(t,e){var n=this;try{this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=xo((function(){var t=e.getValue(),r=n.engine.makeHtml(t);n.previewer.update(r),n.options.callback.afterChange&&n.options.callback.afterChange(t,r),e.scrollIntoView(null)}),50)}catch(t){throw new wu(t)}}},{key:"onChange",value:function(t){this.editor.editor.on("change",(function(e){t({markdown:e.getValue()})}))}},{key:"fireShortcutKey",value:function(t,e){this.toolbar.matchShortcutKey(t)&&(t.preventDefault(),this.toolbar.fireShortcutKey(t,e))}},{key:"export",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf";this.previewer.export(t)}}]),n}(OI);function GI(t,e){var n=ha(t);if(da){var r=da(t);e&&(r=va(r).call(r,(function(e){return Ea(t,e).enumerable}))),n.push.apply(n,r)}return n}function jI(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Na(n=GI(Object(i),!0)).call(n,(function(e){co(t,e,i[e])})):Da?Oa(t,Da(i)):Na(r=GI(Object(i))).call(r,(function(e){Pa(t,e,Ea(i,e))}))}return t}co(HI,"initialized",!1),co(HI,"config",{defaults:NI}),window&&(window.Cherry=HI);var KI={theme:"default",altFontFamily:"sans-serif",fontFamily:"sans-serif",themeCSS:".label foreignObject { font-size: 90%; overflow: visible; } .label { font-family: sans-serif; }",flowchart:{useMaxWidth:!1},sequence:{useMaxWidth:!1},startOnLoad:!1,logLevel:5},$I=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ha(this,t),co(this,"mermaidAPIRefs",null),co(this,"options",KI),co(this,"dom",null),co(this,"mermaidCanvas",null);var n=e.mermaid,r=e.mermaidAPI;if(!(r||window.mermaidAPI||n&&n.mermaidAPI||window.mermaid&&window.mermaid.mermaidAPI))throw new Error("code-block-mermaid-plugin[init]: Package mermaid or mermaidAPI not found.");this.options=jI(jI({},KI),e||{}),this.mermaidAPIRefs=r||window.mermaidAPI||n.mermaidAPI||window.mermaid.mermaidAPI,delete this.options.mermaid,delete this.options.mermaidAPI,this.mermaidAPIRefs.initialize(this.options)}return ja(t,[{key:"mountMermaidCanvas",value:function(t){this.mermaidCanvas&&document.body.contains(this.mermaidCanvas)||(this.mermaidCanvas=document.createElement("div"),this.mermaidCanvas.style="width:1024px;opacity:0;position:fixed;top:100%;",(t.$cherry.wrapperDom||document.body).appendChild(this.mermaidCanvas))}},{key:"convertMermaidSvgToImg",value:function(t,e){var n,r=new DOMParser,i=function(t){return t.replace("<svg ",'<svg style="max-width:100%;height:auto;font-family:sans-serif;" ')};try{var a=r.parseFromString(t,"image/svg+xml"),o=a.documentElement;if("svg"===o.tagName.toLowerCase()){o.style.maxWidth="100%",o.style.height="auto",o.style.fontFamily="sans-serif";var s,c=document.getElementById(e).getBBox();if(o.hasAttribute("viewBox"))c=o.viewBox.baseVal;else o.setAttribute("viewBox",uo(s="0 0 ".concat(c.width," ")).call(s,c.height));"100%"===o.getAttribute("width")&&o.setAttribute("width","".concat(c.width)),"100%"===o.getAttribute("height")&&o.setAttribute("height","".concat(c.height)),n=a.documentElement.outerHTML}else n=i(t)}catch(e){n=i(t)}return n}},{key:"render",value:function(t,e,n){var r,i,a=this,o=e;o||(o=Math.round(1e8*Math.random())),this.mountMermaidCanvas(n);var s=uo(r="mermaid-".concat(o,"-")).call(r,(new Date).getTime());try{this.mermaidAPIRefs.render(s,t,(function(t){var e=t.replace(/\s*markerUnits="0"/g,"").replace(/\s*x="NaN"/g,"").replace(/<br>/g,"<br/>");i=a.convertMermaidSvgToImg(e,s)}),this.mermaidCanvas)}catch(t){return!1}return i}}],[{key:"install",value:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];qc(e,{engine:{syntax:{codeBlock:{customRenderer:{mermaid:pu(t,r)}}}}})}}]),t}();co($I,"TYPE","figure");var YI=function(){var t,e,n,r,i,a,o,s,c,l,A,u,h,f,d,p,g,m,y,v,b,w,_,E,C,x,B,T,k,S,I,N,M,F,D,L,O,R,U,P,Q,H,G,j,K,$,Y,V,z,W,q,X,J,Z,tt,et=Vl(5),nt=null;function rt(){this.fc=0,this.dl=0}function it(){this.dyn_tree=null,this.static_tree=null,this.extra_bits=null,this.extra_base=0,this.elems=0,this.max_length=0,this.max_code=0}function at(t,e,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r}function ot(){this.next=null,this.len=0,this.ptr=new Array(8192),this.off=0}var st=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ct=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],lt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],At=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ut=[new at(0,0,0,0),new at(4,4,8,4),new at(4,5,16,8),new at(4,6,32,32),new at(4,4,16,16),new at(8,16,32,32),new at(8,16,128,128),new at(8,32,128,256),new at(32,128,258,1024),new at(32,258,258,4096)];function ht(e){e.next=t,t=e}function ft(t){return A[32768+t]}function dt(t,e){return A[32768+t]=e}function pt(r){nt[a+i++]=r,a+i==8192&&function(){if(0!=i){var r,o;for(null!=t?(s=t,t=t.next):s=new ot,s.next=null,s.len=s.off=0,r=s,null==e?e=n=r:n=n.next=r,r.len=i-a,o=0;o<r.len;o++)r.ptr[o]=nt[a+o];i=a=0}var s}()}function gt(t){t&=65535,a+i<8190?(nt[a+i++]=255&t,nt[a+i++]=t>>>8):(pt(255&t),pt(t>>>8))}function mt(){d=8191&(d<<et^255&s[b+3-1]),p=ft(d),A[32767&b]=p,dt(d,b)}function yt(t,e){Ot(e[t].fc,e[t].dl)}function vt(t){return 255&(t<256?G[t]:G[256+(t>>7)])}function bt(t,e,n){return t[e].fc<t[n].fc||t[e].fc==t[n].fc&&Q[e]<=Q[n]}function wt(t,e,n){var r;for(r=0;r<n&&tt<Z.length;r++)t[e+r]=255&Z.charCodeAt(tt++);return r}function _t(t){var e,n,r=C,i=b,a=v,o=b>32506?b-32506:0,c=b+258,l=s[i+a-1],u=s[i+a];v>=T&&(r>>=2);do{if(s[(e=t)+a]==u&&s[e+a-1]==l&&s[e]==s[i]&&s[++e]==s[i+1]){i+=2,e++;do{}while(s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&i<c);if(n=258-(c-i),i=c-258,n>a){if(w=t,a=n,n>=258)break;l=s[i+a-1],u=s[i+a]}}}while((t=A[32767&t])>o&&0!=--r);return a}function Et(){var t,e,n=65536-E-b;if(-1==n)n--;else if(b>=65274){for(t=0;t<32768;t++)s[t]=s[t+32768];for(w-=32768,b-=32768,f-=32768,t=0;t<8192;t++)dt(t,(e=ft(t))>=32768?e-32768:0);for(t=0;t<32768;t++)e=A[t],A[t]=e>=32768?e-32768:0;n+=32768}_||((t=wt(s,b+E,n))<=0?_=!0:E+=t)}function Ct(){_||(u=0,h=0,function(){var t,e,n,r,i;if(0!=N[0].dl)return;for(F.dyn_tree=k,F.static_tree=I,F.extra_bits=st,F.extra_base=257,F.elems=286,F.max_length=15,F.max_code=0,D.dyn_tree=S,D.static_tree=N,D.extra_bits=ct,D.extra_base=0,D.elems=30,D.max_length=15,D.max_code=0,L.dyn_tree=M,L.static_tree=null,L.extra_bits=lt,L.extra_base=0,L.elems=19,L.max_length=7,L.max_code=0,n=0,r=0;r<28;r++)for(j[r]=n,t=0;t<1<<st[r];t++)H[n++]=r;for(H[n-1]=r,i=0,r=0;r<16;r++)for(K[r]=i,t=0;t<1<<ct[r];t++)G[i++]=r;for(i>>=7;r<30;r++)for(K[r]=i<<7,t=0;t<1<<ct[r]-7;t++)G[256+i++]=r;for(e=0;e<=15;e++)O[e]=0;t=0;for(;t<=143;)I[t++].dl=8,O[8]++;for(;t<=255;)I[t++].dl=9,O[9]++;for(;t<=279;)I[t++].dl=7,O[7]++;for(;t<=287;)I[t++].dl=8,O[8]++;for(St(I,287),t=0;t<30;t++)N[t].dl=5,N[t].fc=Rt(t,5);Tt()}(),function(){var t;for(t=0;t<8192;t++)A[32768+t]=0;if(x=ut[B].max_lazy,T=ut[B].good_length,C=ut[B].max_chain,b=0,f=0,(E=wt(s,0,65536))<=0)return _=!0,void(E=0);for(_=!1;E<262&&!_;)Et();for(d=0,t=0;t<2;t++)d=8191&(d<<et^255&s[t])}(),e=null,i=0,a=0,B<=3?(v=2,y=0):(y=2,m=0),o=!1)}function xt(t,n,i){var a;return r||(Ct(),r=!0,0!=E)?(a=Bt(t,n,i))==i?i:o?a:(B<=3?function(){for(;0!=E&&null==e;){var t;if(mt(),0!=p&&b-p<=32506&&(y=_t(p))>E&&(y=E),y>=3)if(t=Dt(b-w,y-3),E-=y,y<=x){y--;do{b++,mt()}while(0!=--y);b++}else b+=y,y=0,d=8191&((d=255&s[b])<<et^255&s[b+1]);else t=Dt(0,255&s[b]),E--,b++;for(t&&(Ft(0),f=b);E<262&&!_;)Et()}}():function(){for(;0!=E&&null==e;){if(mt(),v=y,g=w,y=2,0!=p&&v<x&&b-p<=32506&&((y=_t(p))>E&&(y=E),3==y&&b-w>4096&&y--),v>=3&&y<=v){var t;t=Dt(b-1-g,v-3),E-=v-1,v-=2;do{b++,mt()}while(0!=--v);m=0,y=2,b++,t&&(Ft(0),f=b)}else 0!=m?(Dt(0,255&s[b-1])&&(Ft(0),f=b),b++,E--):(m=1,b++,E--);for(;E<262&&!_;)Et()}}(),0==E&&(0!=m&&Dt(0,255&s[b-1]),Ft(1),o=!0),a+Bt(t,a+n,i-a)):(o=!0,0)}function Bt(t,n,r){var o,s,c;for(o=0;null!=e&&o<r;){for((s=r-o)>e.len&&(s=e.len),c=0;c<s;c++)t[n+o+c]=e.ptr[e.off+c];var l;if(e.off+=s,e.len-=s,o+=s,0==e.len)l=e,e=e.next,ht(l)}if(o==r)return o;if(a<i){for((s=r-o)>i-a&&(s=i-a),c=0;c<s;c++)t[n+o+c]=nt[a+c];o+=s,i==(a+=s)&&(i=a=0)}return o}function Tt(){var t;for(t=0;t<286;t++)k[t].fc=0;for(t=0;t<30;t++)S[t].fc=0;for(t=0;t<19;t++)M[t].fc=0;k[256].fc=1,X=J=0,Y=V=z=0,W=0,q=1}function kt(t,e){for(var n=R[e],r=e<<1;r<=U&&(r<U&&bt(t,R[r+1],R[r])&&r++,!bt(t,n,R[r]));)R[e]=R[r],e=r,r<<=1;R[e]=n}function St(t,e){var n,r,i=new Array(16),a=0;for(n=1;n<=15;n++)a=a+O[n-1]<<1,i[n]=a;for(r=0;r<=e;r++){var o=t[r].dl;0!=o&&(t[r].fc=Rt(i[o]++,o))}}function It(t){var e,n,r=t.dyn_tree,i=t.static_tree,a=t.elems,o=-1,s=a;for(U=0,P=573,e=0;e<a;e++)0!=r[e].fc?(R[++U]=o=e,Q[e]=0):r[e].dl=0;for(;U<2;){var c=R[++U]=o<2?++o:0;r[c].fc=1,Q[c]=0,X--,null!=i&&(J-=i[c].dl)}for(t.max_code=o,e=U>>1;e>=1;e--)kt(r,e);do{e=R[1],R[1]=R[U--],kt(r,1),n=R[1],R[--P]=e,R[--P]=n,r[s].fc=r[e].fc+r[n].fc,Q[e]>Q[n]+1?Q[s]=Q[e]:Q[s]=Q[n]+1,r[e].dl=r[n].dl=s,R[1]=s++,kt(r,1)}while(U>=2);R[--P]=R[1],function(t){var e,n,r,i,a,o,s=t.dyn_tree,c=t.extra_bits,l=t.extra_base,A=t.max_code,u=t.max_length,h=t.static_tree,f=0;for(i=0;i<=15;i++)O[i]=0;for(s[R[P]].dl=0,e=P+1;e<573;e++)(i=s[s[n=R[e]].dl].dl+1)>u&&(i=u,f++),s[n].dl=i,n>A||(O[i]++,a=0,n>=l&&(a=c[n-l]),o=s[n].fc,X+=o*(i+a),null!=h&&(J+=o*(h[n].dl+a)));if(0!=f){do{for(i=u-1;0==O[i];)i--;O[i]--,O[i+1]+=2,O[u]--,f-=2}while(f>0);for(i=u;0!=i;i--)for(n=O[i];0!=n;)(r=R[--e])>A||(s[r].dl!=i&&(X+=(i-s[r].dl)*s[r].fc,s[r].fc=i),n--)}}(t),St(r,o)}function Nt(t,e){var n,r,i=-1,a=t[0].dl,o=0,s=7,c=4;for(0==a&&(s=138,c=3),t[e+1].dl=65535,n=0;n<=e;n++)r=a,a=t[n+1].dl,++o<s&&r==a||(o<c?M[r].fc+=o:0!=r?(r!=i&&M[r].fc++,M[16].fc++):o<=10?M[17].fc++:M[18].fc++,o=0,i=r,0==a?(s=138,c=3):r==a?(s=6,c=3):(s=7,c=4))}function Mt(t,e){var n,r,i=-1,a=t[0].dl,o=0,s=7,c=4;for(0==a&&(s=138,c=3),n=0;n<=e;n++)if(r=a,a=t[n+1].dl,!(++o<s&&r==a)){if(o<c)do{yt(r,M)}while(0!=--o);else 0!=r?(r!=i&&(yt(r,M),o--),yt(16,M),Ot(o-3,2)):o<=10?(yt(17,M),Ot(o-3,3)):(yt(18,M),Ot(o-11,7));o=0,i=r,0==a?(s=138,c=3):r==a?(s=6,c=3):(s=7,c=4)}}function Ft(t){var e,n,r,i,a;if(i=b-f,$[z]=W,It(F),It(D),r=function(){var t;for(Nt(k,F.max_code),Nt(S,D.max_code),It(L),t=18;t>=3&&0==M[At[t]].dl;t--);return X+=3*(t+1)+5+5+4,t}(),(n=J+3+7>>3)<=(e=X+3+7>>3)&&(e=n),i+4<=e&&f>=0)for(Ot(0+t,3),Ut(),gt(i),gt(~i),a=0;a<i;a++)pt(s[f+a]);else n==e?(Ot(2+t,3),Lt(I,N)):(Ot(4+t,3),function(t,e,n){var r;for(Ot(t-257,5),Ot(e-1,5),Ot(n-4,4),r=0;r<n;r++)Ot(M[At[r]].dl,3);Mt(k,t-1),Mt(S,e-1)}(F.max_code+1,D.max_code+1,r+1),Lt(k,S));Tt(),0!=t&&Ut()}function Dt(t,e){if(l[Y++]=e,0==t?k[e].fc++:(t--,k[H[e]+256+1].fc++,S[vt(t)].fc++,c[V++]=t,W|=q),q<<=1,0==(7&Y)&&($[z++]=W,W=0,q=1),B>2&&0==(4095&Y)){var n,r=8*Y,i=b-f;for(n=0;n<30;n++)r+=S[n].fc*(5+ct[n]);if(r>>=3,V<Vl(Y/2)&&r<Vl(i/2))return!0}return 8191==Y||8192==V}function Lt(t,e){var n,r,i,a,o=0,s=0,A=0,u=0;if(0!=Y)do{0==(7&o)&&(u=$[A++]),r=255&l[o++],0==(1&u)?yt(r,t):(yt((i=H[r])+256+1,t),0!=(a=st[i])&&Ot(r-=j[i],a),yt(i=vt(n=c[s++]),e),0!=(a=ct[i])&&Ot(n-=K[i],a)),u>>=1}while(o<Y);yt(256,t)}function Ot(t,e){h>16-e?(gt(u|=t<<h),u=t>>16-h,h+=e-16):(u|=t<<h,h+=e)}function Rt(t,e){var n=0;do{n|=1&t,t>>=1,n<<=1}while(--e>0);return n>>1}function Ut(){h>8?gt(u):h>0&&pt(u),u=0,h=0}return function(i,a){var o,u;Z=i,tt=0,void 0===a&&(a=6),function(i){var a;if(i?i<1?i=1:i>9&&(i=9):i=6,B=i,r=!1,_=!1,null==nt){for(t=e=n=null,nt=new Array(8192),s=new Array(65536),c=new Array(8192),l=new Array(32832),A=new Array(65536),k=new Array(573),a=0;a<573;a++)k[a]=new rt;for(S=new Array(61),a=0;a<61;a++)S[a]=new rt;for(I=new Array(288),a=0;a<288;a++)I[a]=new rt;for(N=new Array(30),a=0;a<30;a++)N[a]=new rt;for(M=new Array(39),a=0;a<39;a++)M[a]=new rt;F=new it,D=new it,L=new it,O=new Array(16),R=new Array(573),Q=new Array(573),H=new Array(256),G=new Array(512),j=new Array(29),K=new Array(30),$=new Array(Vl(1024))}}(a);for(var h=new Array(1024),f=[];(o=xt(h,0,h.length))>0;){var d=new Array(o);for(u=0;u<o;u++)d[u]=String.fromCharCode(h[u]);f[f.length]=d.join("")}return Z=null,f.join("")}}();function VI(t,e){var n=ha(t);if(da){var r=da(t);e&&(r=va(r).call(r,(function(e){return Ea(t,e).enumerable}))),n.push.apply(n,r)}return n}function zI(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Na(n=VI(Object(i),!0)).call(n,(function(e){co(t,e,i[e])})):Da?Oa(t,Da(i)):Na(r=VI(Object(i))).call(r,(function(e){Pa(t,e,Ea(i,e))}))}return t}function WI(t,e,n){var r=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,a=63&n,o="";return o+=qI(63&t>>2),o+=qI(63&r),o+=qI(63&i),o+=qI(63&a)}function qI(t){var e=t;return e<10?String.fromCharCode(48+e):(e-=10)<26?String.fromCharCode(65+e):(e-=26)<26?String.fromCharCode(97+e):0===(e-=26)?"-":1===e?"_":"?"}function XI(t,e){var n,r=unescape(encodeURIComponent(t));return uo(n="".concat(e,"/svg/")).call(n,function(t){for(var e="",n=0;n<t.length;n+=3)n+2===t.length?e+=WI(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1===t.length?e+=WI(t.charCodeAt(n),0,0):e+=WI(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(YI(r,9)))}var JI=function(){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ha(this,t);var r="http://www.plantuml.com/plantuml";this.baseUrl=null!==(e=n.baseUrl)&&void 0!==e?e:r}return ja(t,[{key:"render",value:function(t,e){var n,r,i=e;i||(i=Math.round(1e8*Math.random()));var a=uo(n="plantuml-".concat(i,"-")).call(n,(new Date).getTime());return uo(r='<img id="'.concat(a,'" src="')).call(r,XI(t,this.baseUrl),'" />')}}],[{key:"install",value:function(e,n){var r;qc(e,{engine:{syntax:{codeBlock:{customRenderer:{plantuml:new t(zI(zI({},n),null!==(r=e.engine.syntax.plantuml)&&void 0!==r?r:{}))}}}}})}}]),t}(),ZI={1362:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,6],n=[1,7],r=[1,8],i=[1,9],a=[1,12],o=[1,11],s=[1,15,24],c=[1,19],l=[1,31],A=[1,34],u=[1,32],h=[1,33],f=[1,35],d=[1,36],p=[1,37],g=[1,38],m=[1,41],y=[1,42],v=[1,43],b=[1,44],w=[15,24],_=[1,56],E=[1,57],C=[1,58],x=[1,59],B=[1,60],T=[1,61],k=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],S=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],I=[7,8,9,10,15,18,22,24],N=[47,77,78,79,80],M=[47,54,55,77,78,79,80],F=[47,50,51,52,53,77,78,79,80],D=[15,24,31],L=[1,93],O={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,CLASS_DIAGRAM:22,statements:23,EOF:24,statement:25,className:26,alphaNumToken:27,classLiteralName:28,GENERICTYPE:29,relationStatement:30,LABEL:31,classStatement:32,methodStatement:33,annotationStatement:34,clickStatement:35,cssClassStatement:36,CLASS:37,STYLE_SEPARATOR:38,STRUCT_START:39,members:40,STRUCT_STOP:41,ANNOTATION_START:42,ANNOTATION_END:43,MEMBER:44,SEPARATOR:45,relation:46,STR:47,relationType:48,lineType:49,AGGREGATION:50,EXTENSION:51,COMPOSITION:52,DEPENDENCY:53,LINE:54,DOTTED_LINE:55,CALLBACK:56,LINK:57,LINK_TARGET:58,CLICK:59,CALLBACK_NAME:60,CALLBACK_ARGS:61,HREF:62,CSSCLASS:63,commentToken:64,textToken:65,graphCodeTokens:66,textNoTagsToken:67,TAGSTART:68,TAGEND:69,"==":70,"--":71,PCT:72,DEFAULT:73,SPACE:74,MINUS:75,keywords:76,UNICODE_TEXT:77,NUM:78,ALPHA:79,BQUOTE_STR:80,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"CLASS_DIAGRAM",24:"EOF",29:"GENERICTYPE",31:"LABEL",37:"CLASS",38:"STYLE_SEPARATOR",39:"STRUCT_START",41:"STRUCT_STOP",42:"ANNOTATION_START",43:"ANNOTATION_END",44:"MEMBER",45:"SEPARATOR",47:"STR",50:"AGGREGATION",51:"EXTENSION",52:"COMPOSITION",53:"DEPENDENCY",54:"LINE",55:"DOTTED_LINE",56:"CALLBACK",57:"LINK",58:"LINK_TARGET",59:"CLICK",60:"CALLBACK_NAME",61:"CALLBACK_ARGS",62:"HREF",63:"CSSCLASS",66:"graphCodeTokens",68:"TAGSTART",69:"TAGEND",70:"==",71:"--",72:"PCT",73:"DEFAULT",74:"SPACE",75:"MINUS",76:"keywords",77:"UNICODE_TEXT",78:"NUM",79:"ALPHA",80:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[23,1],[23,2],[23,3],[26,1],[26,1],[26,2],[26,2],[26,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[32,2],[32,4],[32,5],[32,7],[34,4],[40,1],[40,2],[33,1],[33,2],[33,1],[33,1],[30,3],[30,4],[30,4],[30,5],[46,3],[46,2],[46,2],[46,1],[48,1],[48,1],[48,1],[48,1],[49,1],[49,1],[35,3],[35,4],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[36,3],[64,1],[64,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[67,1],[67,1],[67,1],[67,1],[27,1],[27,1],[27,1],[28,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.setDirection("TB");break;case 5:r.setDirection("BT");break;case 6:r.setDirection("RL");break;case 7:r.setDirection("LR");break;case 11:r.parseDirective("%%{","open_directive");break;case 12:r.parseDirective(a[s],"type_directive");break;case 13:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 14:r.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=a[s];break;case 21:this.$=a[s-1]+a[s];break;case 22:case 23:this.$=a[s-1]+"~"+a[s];break;case 24:r.addRelation(a[s]);break;case 25:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 33:r.addClass(a[s]);break;case 34:r.addClass(a[s-2]),r.setCssClass(a[s-2],a[s]);break;case 35:r.addClass(a[s-3]),r.addMembers(a[s-3],a[s-1]);break;case 36:r.addClass(a[s-5]),r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 37:r.addAnnotation(a[s],a[s-2]);break;case 38:this.$=[a[s]];break;case 39:a[s].push(a[s-1]),this.$=a[s];break;case 40:case 42:case 43:break;case 41:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 44:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 45:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:"none"};break;case 46:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:"none",relationTitle2:a[s-1]};break;case 47:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 48:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 49:this.$={type1:"none",type2:a[s],lineType:a[s-1]};break;case 50:this.$={type1:a[s-1],type2:"none",lineType:a[s]};break;case 51:this.$={type1:"none",type2:"none",lineType:a[s]};break;case 52:this.$=r.relationType.AGGREGATION;break;case 53:this.$=r.relationType.EXTENSION;break;case 54:this.$=r.relationType.COMPOSITION;break;case 55:this.$=r.relationType.DEPENDENCY;break;case 56:this.$=r.lineType.LINE;break;case 57:this.$=r.lineType.DOTTED_LINE;break;case 58:case 64:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 59:case 65:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 60:case 68:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 61:case 69:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 62:case 70:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 63:case 71:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 66:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 67:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 72:r.setCssClass(a[s-1],a[s])}},table:[{3:1,4:2,5:3,6:4,7:e,8:n,9:r,10:i,11:5,12:10,18:a,22:o},{1:[3]},{1:[2,1]},{1:[2,2]},{3:13,4:2,5:3,6:4,7:e,8:n,9:r,10:i,11:5,12:10,18:a,22:o},{1:[2,8]},t(s,[2,4]),t(s,[2,5]),t(s,[2,6]),t(s,[2,7]),{13:14,19:[1,15]},{15:[1,16]},{19:[2,11]},{1:[2,3]},{14:17,16:[1,18],21:c},t([16,21],[2,12]),{5:29,6:28,7:e,8:n,9:r,10:i,12:10,18:a,23:20,25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:l,42:A,44:u,45:h,56:f,57:d,59:p,63:g,77:m,78:y,79:v,80:b},{15:[1,45]},{17:46,20:[1,47]},{15:[2,14]},{24:[1,48]},{15:[1,49],24:[2,16]},t(w,[2,24],{31:[1,50]}),t(w,[2,26]),t(w,[2,27]),t(w,[2,28]),t(w,[2,29]),t(w,[2,30]),t(w,[2,31]),t(w,[2,32]),t(w,[2,40],{46:51,48:54,49:55,31:[1,53],47:[1,52],50:_,51:E,52:C,53:x,54:B,55:T}),{26:62,27:39,28:40,77:m,78:y,79:v,80:b},t(w,[2,42]),t(w,[2,43]),{27:63,77:m,78:y,79:v},{26:64,27:39,28:40,77:m,78:y,79:v,80:b},{26:65,27:39,28:40,77:m,78:y,79:v,80:b},{26:66,27:39,28:40,77:m,78:y,79:v,80:b},{47:[1,67]},t(k,[2,19],{27:39,28:40,26:68,29:[1,69],77:m,78:y,79:v,80:b}),t(k,[2,20],{29:[1,70]}),t(S,[2,86]),t(S,[2,87]),t(S,[2,88]),t([15,24,29,31,38,39,47,50,51,52,53,54,55,60,62],[2,89]),t(I,[2,9]),{14:71,21:c},{21:[2,13]},{1:[2,15]},{5:29,6:28,7:e,8:n,9:r,10:i,12:10,18:a,23:72,24:[2,17],25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:l,42:A,44:u,45:h,56:f,57:d,59:p,63:g,77:m,78:y,79:v,80:b},t(w,[2,25]),{26:73,27:39,28:40,47:[1,74],77:m,78:y,79:v,80:b},{46:75,48:54,49:55,50:_,51:E,52:C,53:x,54:B,55:T},t(w,[2,41]),{49:76,54:B,55:T},t(N,[2,51],{48:77,50:_,51:E,52:C,53:x}),t(M,[2,52]),t(M,[2,53]),t(M,[2,54]),t(M,[2,55]),t(F,[2,56]),t(F,[2,57]),t(w,[2,33],{38:[1,78],39:[1,79]}),{43:[1,80]},{47:[1,81]},{47:[1,82]},{60:[1,83],62:[1,84]},{27:85,77:m,78:y,79:v},t(k,[2,21]),t(k,[2,22]),t(k,[2,23]),{15:[1,86]},{24:[2,18]},t(D,[2,44]),{26:87,27:39,28:40,77:m,78:y,79:v,80:b},{26:88,27:39,28:40,47:[1,89],77:m,78:y,79:v,80:b},t(N,[2,50],{48:90,50:_,51:E,52:C,53:x}),t(N,[2,49]),{27:91,77:m,78:y,79:v},{40:92,44:L},{26:94,27:39,28:40,77:m,78:y,79:v,80:b},t(w,[2,58],{47:[1,95]}),t(w,[2,60],{47:[1,97],58:[1,96]}),t(w,[2,64],{47:[1,98],61:[1,99]}),t(w,[2,68],{47:[1,101],58:[1,100]}),t(w,[2,72]),t(I,[2,10]),t(D,[2,46]),t(D,[2,45]),{26:102,27:39,28:40,77:m,78:y,79:v,80:b},t(N,[2,48]),t(w,[2,34],{39:[1,103]}),{41:[1,104]},{40:105,41:[2,38],44:L},t(w,[2,37]),t(w,[2,59]),t(w,[2,61]),t(w,[2,62],{58:[1,106]}),t(w,[2,65]),t(w,[2,66],{47:[1,107]}),t(w,[2,69]),t(w,[2,70],{58:[1,108]}),t(D,[2,47]),{40:109,44:L},t(w,[2,35]),{41:[2,39]},t(w,[2,63]),t(w,[2,67]),t(w,[2,71]),{41:[1,110]},t(w,[2,36])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],12:[2,11],13:[2,3],19:[2,14],47:[2,13],48:[2,15],72:[2,18],105:[2,39]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,_,E,C,x,B,T,k,S={};;){if(_=n[n.length-1],this.defaultActions[_]?E=this.defaultActions[_]:(null==b&&(b=v()),E=o[_]&&o[_][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[_])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,w?(b=w,w=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},R={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:case 10:case 12:case 19:break;case 11:return 15;case 13:case 14:return 22;case 15:return this.begin("struct"),39;case 16:return"EOF_IN_STRUCT";case 17:return"OPEN_IN_STRUCT";case 18:return this.popState(),41;case 20:return"MEMBER";case 21:return 37;case 22:return 63;case 23:return 56;case 24:return 57;case 25:return 59;case 26:return 42;case 27:return 43;case 28:this.begin("generic");break;case 29:case 32:case 35:case 38:case 41:case 44:this.popState();break;case 30:return"GENERICTYPE";case 31:this.begin("string");break;case 33:return"STR";case 34:this.begin("bqstring");break;case 36:return"BQUOTE_STR";case 37:this.begin("href");break;case 39:return 62;case 40:this.begin("callback_name");break;case 42:this.popState(),this.begin("callback_args");break;case 43:return 60;case 45:return 61;case 46:case 47:case 48:case 49:return 58;case 50:case 51:return 51;case 52:case 53:return 53;case 54:return 52;case 55:return 50;case 56:return 54;case 57:return 55;case 58:return 31;case 59:return 38;case 60:return 75;case 61:return"DOT";case 62:return"PLUS";case 63:return 72;case 64:case 65:return"EQUALS";case 66:return 79;case 67:return"PUNCTUATION";case 68:return 78;case 69:return 77;case 70:return 74;case 71:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[44,45],inclusive:!1},callback_name:{rules:[41,42,43],inclusive:!1},href:{rules:[38,39],inclusive:!1},struct:{rules:[16,17,18,19,20],inclusive:!1},generic:{rules:[29,30],inclusive:!1},bqstring:{rules:[35,36],inclusive:!1},string:{rules:[32,33],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,13,14,15,21,22,23,24,25,26,27,28,31,34,37,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71],inclusive:!0}}};function U(){this.yy={}}return O.lexer=R,U.prototype=O,O.Parser=U,new U}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(8218).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},5890:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,23,40],i=[1,17],a=[1,20],o=[1,25],s=[1,26],c=[1,27],l=[1,28],A=[1,37],u=[23,37,38],h=[4,6,9,11,23,40],f=[33,34,35,36],d=[22,29],p={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,ALPHANUM:23,attribute:24,attributeType:25,attributeName:26,attributeKeyType:27,COMMENT:28,ATTRIBUTE_WORD:29,ATTRIBUTE_KEY:30,cardinality:31,relType:32,ZERO_OR_ONE:33,ZERO_OR_MORE:34,ONE_OR_MORE:35,ONLY_ONE:36,NON_IDENTIFYING:37,IDENTIFYING:38,WORD:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"ALPHANUM",28:"COMMENT",29:"ATTRIBUTE_WORD",30:"ATTRIBUTE_KEY",33:"ZERO_OR_ONE",34:"ZERO_OR_MORE",35:"ONE_OR_MORE",36:"ONLY_ONE",37:"NON_IDENTIFYING",38:"IDENTIFYING",39:"WORD",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[17,1],[21,1],[21,2],[24,2],[24,3],[24,3],[24,4],[25,1],[26,1],[27,1],[18,3],[31,1],[31,1],[31,1],[31,1],[32,1],[32,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:case 16:case 23:case 24:case 25:case 34:this.$=a[s];break;case 12:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 13:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]);break;case 14:r.addEntity(a[s-2]);break;case 15:r.addEntity(a[s]);break;case 17:this.$=[a[s]];break;case 18:a[s].push(a[s-1]),this.$=a[s];break;case 19:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 20:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyType:a[s]};break;case 21:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 22:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyType:a[s-1],attributeComment:a[s]};break;case 26:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 27:this.$=r.Cardinality.ZERO_OR_ONE;break;case 28:this.$=r.Cardinality.ZERO_OR_MORE;break;case 29:this.$=r.Cardinality.ONE_OR_MORE;break;case 30:this.$=r.Cardinality.ONLY_ONE;break;case 31:this.$=r.Identification.NON_IDENTIFYING;break;case 32:this.$=r.Identification.IDENTIFYING;break;case 33:this.$=a[s].replace(/"/g,"");break;case 35:r.parseDirective("%%{","open_directive");break;case 36:r.parseDirective(a[s],"type_directive");break;case 37:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 38:r.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:e,7:3,12:4,40:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,40:n},{13:8,41:[1,9]},{41:[2,35]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:i,40:n},{1:[2,2]},{14:18,15:[1,19],43:a},t([15,43],[2,36]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:15,10:21,12:4,17:16,23:i,40:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),t(r,[2,15],{18:22,31:24,20:[1,23],33:o,34:s,35:c,36:l}),t([6,9,11,15,20,23,33,34,35,36,40],[2,16]),{11:[1,29]},{16:30,42:[1,31]},{11:[2,38]},t(r,[2,5]),{17:32,23:i},{21:33,22:[1,34],24:35,25:36,29:A},{32:38,37:[1,39],38:[1,40]},t(u,[2,27]),t(u,[2,28]),t(u,[2,29]),t(u,[2,30]),t(h,[2,9]),{14:41,43:a},{43:[2,37]},{15:[1,42]},{22:[1,43]},t(r,[2,14]),{21:44,22:[2,17],24:35,25:36,29:A},{26:45,29:[1,46]},{29:[2,23]},{31:47,33:o,34:s,35:c,36:l},t(f,[2,31]),t(f,[2,32]),{11:[1,48]},{19:49,23:[1,51],39:[1,50]},t(r,[2,13]),{22:[2,18]},t(d,[2,19],{27:52,28:[1,53],30:[1,54]}),t([22,28,29,30],[2,24]),{23:[2,26]},t(h,[2,10]),t(r,[2,12]),t(r,[2,33]),t(r,[2,34]),t(d,[2,20],{28:[1,55]}),t(d,[2,21]),t([22,28,29],[2,25]),t(d,[2,22])],defaultActions:{5:[2,35],7:[2,2],20:[2,38],31:[2,37],37:[2,23],44:[2,18],47:[2,26]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,_,E,C,x,B,T,k,S={};;){if(_=n[n.length-1],this.defaultActions[_]?E=this.defaultActions[_]:(null==b&&(b=v()),E=o[_]&&o[_][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[_])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,w?(b=w,w=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},g={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:case 6:case 8:case 13:case 17:break;case 7:return 11;case 9:return 9;case 10:return 39;case 11:return 4;case 12:return this.begin("block"),20;case 14:return 30;case 15:return 29;case 16:return 28;case 18:return this.popState(),22;case 19:case 32:return e.yytext[0];case 20:case 24:return 33;case 21:case 25:return 34;case 22:case 26:return 35;case 23:return 36;case 27:case 29:case 30:return 37;case 28:return 38;case 31:return 23;case 33:return 6}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:(?:PK)|(?:FK))/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},block:{rules:[13,14,15,16,17,18,19],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,20,21,22,23,24,25,26,27,28,29,30,31,32,33],inclusive:!0}}};function m(){this.yy={}}return p.lexer=g,m.prototype=p,p.Parser=m,new m}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(8009).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3602:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,9],n=[1,7],r=[1,6],i=[1,8],a=[1,20,21,22,23,38,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],o=[2,10],s=[1,20],c=[1,21],l=[1,22],A=[1,23],u=[1,30],h=[1,59],f=[1,45],d=[1,49],p=[1,33],g=[1,34],m=[1,35],y=[1,36],v=[1,37],b=[1,53],w=[1,60],_=[1,48],E=[1,50],C=[1,52],x=[1,56],B=[1,57],T=[1,38],k=[1,39],S=[1,40],I=[1,41],N=[1,58],M=[1,47],F=[1,51],D=[1,54],L=[1,55],O=[1,46],R=[1,63],U=[1,68],P=[1,20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],Q=[1,72],H=[1,71],G=[1,73],j=[20,21,23,74,75],K=[1,94],$=[1,99],Y=[1,102],V=[1,103],z=[1,96],W=[1,101],q=[1,104],X=[1,97],J=[1,109],Z=[1,108],tt=[1,98],et=[1,100],nt=[1,105],rt=[1,106],it=[1,107],at=[1,110],ot=[20,21,22,23,74,75],st=[20,21,22,23,48,74,75],ct=[20,21,22,23,40,47,48,50,52,54,56,58,59,60,62,64,66,67,69,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],lt=[20,21,23],At=[20,21,23,47,59,60,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],ut=[1,12,20,21,22,23,24,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],ht=[47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],ft=[1,143],dt=[1,151],pt=[1,152],gt=[1,153],mt=[1,154],yt=[1,138],vt=[1,139],bt=[1,135],wt=[1,146],_t=[1,147],Et=[1,148],Ct=[1,149],xt=[1,150],Bt=[1,155],Tt=[1,156],kt=[1,141],St=[1,144],It=[1,140],Nt=[1,137],Mt=[20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],Ft=[1,159],Dt=[20,21,22,23,26,47,59,60,84,98,99,102,104,105,115,116,117,118,119,120],Lt=[20,21,22,23,24,26,38,40,41,42,47,51,53,55,57,59,60,61,63,65,66,68,70,74,75,79,80,81,82,83,84,85,88,98,99,102,104,105,106,107,115,116,117,118,119,120],Ot=[12,21,22,24],Rt=[22,99],Ut=[1,242],Pt=[1,237],Qt=[1,238],Ht=[1,246],Gt=[1,243],jt=[1,240],Kt=[1,239],$t=[1,241],Yt=[1,244],Vt=[1,245],zt=[1,247],Wt=[1,265],qt=[20,21,23,99],Xt=[20,21,22,23,59,60,79,95,98,99,102,103,104,105,106],Jt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,link:44,node:45,vertex:46,AMP:47,STYLE_SEPARATOR:48,idString:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,ALPHA:59,COLON:60,PIPE:61,CYLINDERSTART:62,CYLINDEREND:63,DIAMOND_START:64,DIAMOND_STOP:65,TAGEND:66,TRAPSTART:67,TRAPEND:68,INVTRAPSTART:69,INVTRAPEND:70,linkStatement:71,arrowText:72,TESTSTR:73,START_LINK:74,LINK:75,textToken:76,STR:77,keywords:78,STYLE:79,LINKSTYLE:80,CLASSDEF:81,CLASS:82,CLICK:83,DOWN:84,UP:85,textNoTags:86,textNoTagsToken:87,DEFAULT:88,stylesOpt:89,alphaNum:90,CALLBACKNAME:91,CALLBACKARGS:92,HREF:93,LINK_TARGET:94,HEX:95,numList:96,INTERPOLATE:97,NUM:98,COMMA:99,style:100,styleComponent:101,MINUS:102,UNIT:103,BRKT:104,DOT:105,PCT:106,TAGSTART:107,alphaNumToken:108,idStringToken:109,alphaNumStatement:110,direction_tb:111,direction_bt:112,direction_rl:113,direction_lr:114,PUNCTUATION:115,UNICODE_TEXT:116,PLUS:117,EQUALS:118,MULT:119,UNDERSCORE:120,graphCodeTokens:121,ARROW_CROSS:122,ARROW_POINT:123,ARROW_CIRCLE:124,ARROW_OPEN:125,QUOTE:126,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",47:"AMP",48:"STYLE_SEPARATOR",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"ALPHA",60:"COLON",61:"PIPE",62:"CYLINDERSTART",63:"CYLINDEREND",64:"DIAMOND_START",65:"DIAMOND_STOP",66:"TAGEND",67:"TRAPSTART",68:"TRAPEND",69:"INVTRAPSTART",70:"INVTRAPEND",73:"TESTSTR",74:"START_LINK",75:"LINK",77:"STR",79:"STYLE",80:"LINKSTYLE",81:"CLASSDEF",82:"CLASS",83:"CLICK",84:"DOWN",85:"UP",88:"DEFAULT",91:"CALLBACKNAME",92:"CALLBACKARGS",93:"HREF",94:"LINK_TARGET",95:"HEX",97:"INTERPOLATE",98:"NUM",99:"COMMA",102:"MINUS",103:"UNIT",104:"BRKT",105:"DOT",106:"PCT",107:"TAGSTART",111:"direction_tb",112:"direction_bt",113:"direction_rl",114:"direction_lr",115:"PUNCTUATION",116:"UNICODE_TEXT",117:"PLUS",118:"EQUALS",119:"MULT",120:"UNDERSCORE",122:"ARROW_CROSS",123:"ARROW_POINT",124:"ARROW_CIRCLE",125:"ARROW_OPEN",126:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[45,1],[45,5],[45,3],[46,4],[46,6],[46,4],[46,4],[46,4],[46,8],[46,4],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,1],[44,2],[44,3],[44,3],[44,1],[44,3],[71,1],[72,3],[39,1],[39,2],[39,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[86,1],[86,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[96,1],[96,3],[89,1],[89,3],[100,1],[100,2],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[87,1],[87,1],[87,1],[87,1],[49,1],[49,2],[90,1],[90,2],[110,1],[110,1],[110,1],[110,1],[43,1],[43,1],[43,1],[43,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.parseDirective("%%{","open_directive");break;case 6:r.parseDirective(a[s],"type_directive");break;case 7:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 8:r.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:a[s]!==[]&&a[s-1].push(a[s]),this.$=a[s-1];break;case 12:case 78:case 80:case 92:case 148:case 150:case 151:case 74:case 146:this.$=a[s];break;case 19:r.setDirection("TB"),this.$="TB";break;case 20:r.setDirection(a[s-1]),this.$=a[s-1];break;case 35:this.$=a[s-1].nodes;break;case 41:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 42:this.$=r.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 43:this.$=r.addSubGraph(void 0,a[s-1],void 0);break;case 48:r.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 49:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 50:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 51:this.$={stmt:a[s],nodes:a[s]};break;case 52:case 119:case 121:this.$=[a[s]];break;case 53:this.$=a[s-4].concat(a[s]);break;case 54:this.$=[a[s-2]],r.setClass(a[s-2],a[s]);break;case 55:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"square");break;case 56:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],"circle");break;case 57:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"ellipse");break;case 58:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"stadium");break;case 59:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"subroutine");break;case 60:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 61:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"cylinder");break;case 62:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"round");break;case 63:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"diamond");break;case 64:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],"hexagon");break;case 65:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"odd");break;case 66:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"trapezoid");break;case 67:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"inv_trapezoid");break;case 68:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"lean_right");break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"lean_left");break;case 70:this.$=a[s],r.addVertex(a[s]);break;case 71:a[s-1].text=a[s],this.$=a[s-1];break;case 72:case 73:a[s-2].text=a[s-1],this.$=a[s-2];break;case 75:var c=r.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1]};break;case 76:c=r.destructLink(a[s]),this.$={type:c.type,stroke:c.stroke,length:c.length};break;case 77:this.$=a[s-1];break;case 79:case 93:case 149:case 147:this.$=a[s-1]+""+a[s];break;case 94:case 95:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 96:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 97:case 105:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 98:case 106:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 99:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 101:case 107:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 102:case 108:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 103:case 109:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 104:case 110:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 111:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 112:case 114:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 113:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 115:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 116:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 117:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 118:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 120:case 122:a[s-2].push(a[s]),this.$=a[s-2];break;case 124:this.$=a[s-1]+a[s];break;case 152:this.$="v";break;case 153:this.$="-";break;case 154:this.$={stmt:"dir",value:"TB"};break;case 155:this.$={stmt:"dir",value:"BT"};break;case 156:this.$={stmt:"dir",value:"RL"};break;case 157:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:e,16:4,21:n,22:r,24:i},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:e,16:4,21:n,22:r,24:i},t(a,o,{17:11}),{7:12,13:[1,13]},{16:14,21:n,22:r,24:i},{16:15,21:n,22:r,24:i},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:s,21:c,22:l,23:A,32:24,33:25,34:26,35:27,36:28,37:29,38:u,43:31,45:32,46:42,47:h,49:43,59:f,60:d,79:p,80:g,81:m,82:y,83:v,84:b,88:w,98:_,99:E,102:C,104:x,105:B,109:44,111:T,112:k,113:S,114:I,115:N,116:M,117:F,118:D,119:L,120:O},{8:61,10:[1,62],15:R},t([10,15],[2,6]),t(a,[2,17]),t(a,[2,18]),t(a,[2,19]),{20:[1,65],21:[1,66],22:U,27:64,30:67},t(P,[2,11]),t(P,[2,12]),t(P,[2,13]),t(P,[2,14]),t(P,[2,15]),t(P,[2,16]),{9:69,20:Q,21:H,23:G,44:70,71:74,74:[1,75],75:[1,76]},{9:77,20:Q,21:H,23:G},{9:78,20:Q,21:H,23:G},{9:79,20:Q,21:H,23:G},{9:80,20:Q,21:H,23:G},{9:81,20:Q,21:H,23:G},{9:83,20:Q,21:H,22:[1,82],23:G},t(P,[2,44]),t(j,[2,51],{30:84,22:U}),{22:[1,85]},{22:[1,86]},{22:[1,87]},{22:[1,88]},{26:K,47:$,59:Y,60:V,77:[1,92],84:z,90:91,91:[1,89],93:[1,90],98:W,99:q,102:X,104:J,105:Z,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(P,[2,154]),t(P,[2,155]),t(P,[2,156]),t(P,[2,157]),t(ot,[2,52],{48:[1,111]}),t(st,[2,70],{109:123,40:[1,112],47:h,50:[1,113],52:[1,114],54:[1,115],56:[1,116],58:[1,117],59:f,60:d,62:[1,118],64:[1,119],66:[1,120],67:[1,121],69:[1,122],84:b,88:w,98:_,99:E,102:C,104:x,105:B,115:N,116:M,117:F,118:D,119:L,120:O}),t(ct,[2,146]),t(ct,[2,171]),t(ct,[2,172]),t(ct,[2,173]),t(ct,[2,174]),t(ct,[2,175]),t(ct,[2,176]),t(ct,[2,177]),t(ct,[2,178]),t(ct,[2,179]),t(ct,[2,180]),t(ct,[2,181]),t(ct,[2,182]),t(ct,[2,183]),t(ct,[2,184]),t(ct,[2,185]),t(ct,[2,186]),{9:124,20:Q,21:H,23:G},{11:125,14:[1,126]},t(lt,[2,8]),t(a,[2,20]),t(a,[2,26]),t(a,[2,27]),{21:[1,127]},t(At,[2,34],{30:128,22:U}),t(P,[2,35]),{45:129,46:42,47:h,49:43,59:f,60:d,84:b,88:w,98:_,99:E,102:C,104:x,105:B,109:44,115:N,116:M,117:F,118:D,119:L,120:O},t(ut,[2,45]),t(ut,[2,46]),t(ut,[2,47]),t(ht,[2,74],{72:130,61:[1,132],73:[1,131]}),{22:ft,24:dt,26:pt,38:gt,39:133,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t([47,59,60,61,73,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,76]),t(P,[2,36]),t(P,[2,37]),t(P,[2,38]),t(P,[2,39]),t(P,[2,40]),{22:ft,24:dt,26:pt,38:gt,39:157,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(Mt,o,{17:158}),t(j,[2,50],{47:Ft}),{26:K,47:$,59:Y,60:V,84:z,90:160,95:[1,161],98:W,99:q,102:X,104:J,105:Z,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},{88:[1,162],96:163,98:[1,164]},{26:K,47:$,59:Y,60:V,84:z,88:[1,165],90:166,98:W,99:q,102:X,104:J,105:Z,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},{26:K,47:$,59:Y,60:V,84:z,90:167,98:W,99:q,102:X,104:J,105:Z,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(lt,[2,97],{22:[1,168],92:[1,169]}),t(lt,[2,101],{22:[1,170]}),t(lt,[2,105],{108:95,110:172,22:[1,171],26:K,47:$,59:Y,60:V,84:z,98:W,99:q,102:X,104:J,105:Z,115:tt,116:et,117:nt,118:rt,119:it,120:at}),t(lt,[2,107],{22:[1,173]}),t(Dt,[2,148]),t(Dt,[2,150]),t(Dt,[2,151]),t(Dt,[2,152]),t(Dt,[2,153]),t(Lt,[2,158]),t(Lt,[2,159]),t(Lt,[2,160]),t(Lt,[2,161]),t(Lt,[2,162]),t(Lt,[2,163]),t(Lt,[2,164]),t(Lt,[2,165]),t(Lt,[2,166]),t(Lt,[2,167]),t(Lt,[2,168]),t(Lt,[2,169]),t(Lt,[2,170]),{47:h,49:174,59:f,60:d,84:b,88:w,98:_,99:E,102:C,104:x,105:B,109:44,115:N,116:M,117:F,118:D,119:L,120:O},{22:ft,24:dt,26:pt,38:gt,39:175,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,39:177,42:mt,47:$,50:[1,176],59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,39:178,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,39:179,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,39:180,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{59:[1,181]},{22:ft,24:dt,26:pt,38:gt,39:182,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,39:183,42:mt,47:$,59:Y,60:V,64:[1,184],66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,39:185,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,39:186,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,39:187,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(ct,[2,147]),t(Ot,[2,3]),{8:188,15:R},{15:[2,7]},t(a,[2,28]),t(At,[2,33]),t(j,[2,48],{30:189,22:U}),t(ht,[2,71],{22:[1,190]}),{22:[1,191]},{22:ft,24:dt,26:pt,38:gt,39:192,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,42:mt,47:$,59:Y,60:V,66:yt,74:vt,75:[1,193],76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(Lt,[2,78]),t(Lt,[2,80]),t(Lt,[2,136]),t(Lt,[2,137]),t(Lt,[2,138]),t(Lt,[2,139]),t(Lt,[2,140]),t(Lt,[2,141]),t(Lt,[2,142]),t(Lt,[2,143]),t(Lt,[2,144]),t(Lt,[2,145]),t(Lt,[2,81]),t(Lt,[2,82]),t(Lt,[2,83]),t(Lt,[2,84]),t(Lt,[2,85]),t(Lt,[2,86]),t(Lt,[2,87]),t(Lt,[2,88]),t(Lt,[2,89]),t(Lt,[2,90]),t(Lt,[2,91]),{9:196,20:Q,21:H,22:ft,23:G,24:dt,26:pt,38:gt,40:[1,195],42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{18:18,19:19,20:s,21:c,22:l,23:A,32:24,33:25,34:26,35:27,36:28,37:29,38:u,42:[1,197],43:31,45:32,46:42,47:h,49:43,59:f,60:d,79:p,80:g,81:m,82:y,83:v,84:b,88:w,98:_,99:E,102:C,104:x,105:B,109:44,111:T,112:k,113:S,114:I,115:N,116:M,117:F,118:D,119:L,120:O},{22:U,30:198},{22:[1,199],26:K,47:$,59:Y,60:V,84:z,98:W,99:q,102:X,104:J,105:Z,108:95,110:172,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:[1,200]},{22:[1,201]},{22:[1,202],99:[1,203]},t(Rt,[2,119]),{22:[1,204]},{22:[1,205],26:K,47:$,59:Y,60:V,84:z,98:W,99:q,102:X,104:J,105:Z,108:95,110:172,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:[1,206],26:K,47:$,59:Y,60:V,84:z,98:W,99:q,102:X,104:J,105:Z,108:95,110:172,115:tt,116:et,117:nt,118:rt,119:it,120:at},{77:[1,207]},t(lt,[2,99],{22:[1,208]}),{77:[1,209],94:[1,210]},{77:[1,211]},t(Dt,[2,149]),{77:[1,212],94:[1,213]},t(ot,[2,54],{109:123,47:h,59:f,60:d,84:b,88:w,98:_,99:E,102:C,104:x,105:B,115:N,116:M,117:F,118:D,119:L,120:O}),{22:ft,24:dt,26:pt,38:gt,41:[1,214],42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,39:215,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,42:mt,47:$,51:[1,216],59:Y,60:V,66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,42:mt,47:$,53:[1,217],59:Y,60:V,66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,42:mt,47:$,55:[1,218],59:Y,60:V,66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,42:mt,47:$,57:[1,219],59:Y,60:V,66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{60:[1,220]},{22:ft,24:dt,26:pt,38:gt,42:mt,47:$,59:Y,60:V,63:[1,221],66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,42:mt,47:$,59:Y,60:V,65:[1,222],66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,39:223,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,41:[1,224],42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,42:mt,47:$,59:Y,60:V,66:yt,68:[1,225],70:[1,226],74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:ft,24:dt,26:pt,38:gt,42:mt,47:$,59:Y,60:V,66:yt,68:[1,228],70:[1,227],74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{9:229,20:Q,21:H,23:G},t(j,[2,49],{47:Ft}),t(ht,[2,73]),t(ht,[2,72]),{22:ft,24:dt,26:pt,38:gt,42:mt,47:$,59:Y,60:V,61:[1,230],66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(ht,[2,75]),t(Lt,[2,79]),{22:ft,24:dt,26:pt,38:gt,39:231,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(Mt,o,{17:232}),t(P,[2,43]),{46:233,47:h,49:43,59:f,60:d,84:b,88:w,98:_,99:E,102:C,104:x,105:B,109:44,115:N,116:M,117:F,118:D,119:L,120:O},{22:Ut,59:Pt,60:Qt,79:Ht,89:234,95:Gt,98:jt,100:235,101:236,102:Kt,103:$t,104:Yt,105:Vt,106:zt},{22:Ut,59:Pt,60:Qt,79:Ht,89:248,95:Gt,98:jt,100:235,101:236,102:Kt,103:$t,104:Yt,105:Vt,106:zt},{22:Ut,59:Pt,60:Qt,79:Ht,89:249,95:Gt,97:[1,250],98:jt,100:235,101:236,102:Kt,103:$t,104:Yt,105:Vt,106:zt},{22:Ut,59:Pt,60:Qt,79:Ht,89:251,95:Gt,97:[1,252],98:jt,100:235,101:236,102:Kt,103:$t,104:Yt,105:Vt,106:zt},{98:[1,253]},{22:Ut,59:Pt,60:Qt,79:Ht,89:254,95:Gt,98:jt,100:235,101:236,102:Kt,103:$t,104:Yt,105:Vt,106:zt},{22:Ut,59:Pt,60:Qt,79:Ht,89:255,95:Gt,98:jt,100:235,101:236,102:Kt,103:$t,104:Yt,105:Vt,106:zt},{26:K,47:$,59:Y,60:V,84:z,90:256,98:W,99:q,102:X,104:J,105:Z,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(lt,[2,98]),{77:[1,257]},t(lt,[2,102],{22:[1,258]}),t(lt,[2,103]),t(lt,[2,106]),t(lt,[2,108],{22:[1,259]}),t(lt,[2,109]),t(st,[2,55]),{22:ft,24:dt,26:pt,38:gt,42:mt,47:$,51:[1,260],59:Y,60:V,66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(st,[2,62]),t(st,[2,57]),t(st,[2,58]),t(st,[2,59]),{59:[1,261]},t(st,[2,61]),t(st,[2,63]),{22:ft,24:dt,26:pt,38:gt,42:mt,47:$,59:Y,60:V,65:[1,262],66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(st,[2,65]),t(st,[2,66]),t(st,[2,68]),t(st,[2,67]),t(st,[2,69]),t(Ot,[2,4]),t([22,47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,77]),{22:ft,24:dt,26:pt,38:gt,41:[1,263],42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{18:18,19:19,20:s,21:c,22:l,23:A,32:24,33:25,34:26,35:27,36:28,37:29,38:u,42:[1,264],43:31,45:32,46:42,47:h,49:43,59:f,60:d,79:p,80:g,81:m,82:y,83:v,84:b,88:w,98:_,99:E,102:C,104:x,105:B,109:44,111:T,112:k,113:S,114:I,115:N,116:M,117:F,118:D,119:L,120:O},t(ot,[2,53]),t(lt,[2,111],{99:Wt}),t(qt,[2,121],{101:266,22:Ut,59:Pt,60:Qt,79:Ht,95:Gt,98:jt,102:Kt,103:$t,104:Yt,105:Vt,106:zt}),t(Xt,[2,123]),t(Xt,[2,125]),t(Xt,[2,126]),t(Xt,[2,127]),t(Xt,[2,128]),t(Xt,[2,129]),t(Xt,[2,130]),t(Xt,[2,131]),t(Xt,[2,132]),t(Xt,[2,133]),t(Xt,[2,134]),t(Xt,[2,135]),t(lt,[2,112],{99:Wt}),t(lt,[2,113],{99:Wt}),{22:[1,267]},t(lt,[2,114],{99:Wt}),{22:[1,268]},t(Rt,[2,120]),t(lt,[2,94],{99:Wt}),t(lt,[2,95],{99:Wt}),t(lt,[2,96],{108:95,110:172,26:K,47:$,59:Y,60:V,84:z,98:W,99:q,102:X,104:J,105:Z,115:tt,116:et,117:nt,118:rt,119:it,120:at}),t(lt,[2,100]),{94:[1,269]},{94:[1,270]},{51:[1,271]},{61:[1,272]},{65:[1,273]},{9:274,20:Q,21:H,23:G},t(P,[2,42]),{22:Ut,59:Pt,60:Qt,79:Ht,95:Gt,98:jt,100:275,101:236,102:Kt,103:$t,104:Yt,105:Vt,106:zt},t(Xt,[2,124]),{26:K,47:$,59:Y,60:V,84:z,90:276,98:W,99:q,102:X,104:J,105:Z,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},{26:K,47:$,59:Y,60:V,84:z,90:277,98:W,99:q,102:X,104:J,105:Z,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(lt,[2,104]),t(lt,[2,110]),t(st,[2,56]),{22:ft,24:dt,26:pt,38:gt,39:278,42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:134,77:bt,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(st,[2,64]),t(Mt,o,{17:279}),t(qt,[2,122],{101:266,22:Ut,59:Pt,60:Qt,79:Ht,95:Gt,98:jt,102:Kt,103:$t,104:Yt,105:Vt,106:zt}),t(lt,[2,117],{108:95,110:172,22:[1,280],26:K,47:$,59:Y,60:V,84:z,98:W,99:q,102:X,104:J,105:Z,115:tt,116:et,117:nt,118:rt,119:it,120:at}),t(lt,[2,118],{108:95,110:172,22:[1,281],26:K,47:$,59:Y,60:V,84:z,98:W,99:q,102:X,104:J,105:Z,115:tt,116:et,117:nt,118:rt,119:it,120:at}),{22:ft,24:dt,26:pt,38:gt,41:[1,282],42:mt,47:$,59:Y,60:V,66:yt,74:vt,76:194,78:145,79:wt,80:_t,81:Et,82:Ct,83:xt,84:Bt,85:Tt,87:136,88:kt,98:W,99:q,102:St,104:J,105:Z,106:It,107:Nt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{18:18,19:19,20:s,21:c,22:l,23:A,32:24,33:25,34:26,35:27,36:28,37:29,38:u,42:[1,283],43:31,45:32,46:42,47:h,49:43,59:f,60:d,79:p,80:g,81:m,82:y,83:v,84:b,88:w,98:_,99:E,102:C,104:x,105:B,109:44,111:T,112:k,113:S,114:I,115:N,116:M,117:F,118:D,119:L,120:O},{22:Ut,59:Pt,60:Qt,79:Ht,89:284,95:Gt,98:jt,100:235,101:236,102:Kt,103:$t,104:Yt,105:Vt,106:zt},{22:Ut,59:Pt,60:Qt,79:Ht,89:285,95:Gt,98:jt,100:235,101:236,102:Kt,103:$t,104:Yt,105:Vt,106:zt},t(st,[2,60]),t(P,[2,41]),t(lt,[2,115],{99:Wt}),t(lt,[2,116],{99:Wt})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],126:[2,7]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,_,E,C,x,B,T,k,S={};;){if(_=n[n.length-1],this.defaultActions[_]?E=this.defaultActions[_]:(null==b&&(b=v()),E=o[_]&&o[_][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[_])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,w?(b=w,w=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},Zt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:this.begin("string");break;case 8:case 17:case 20:case 23:case 26:this.popState();break;case 9:return"STR";case 10:return 79;case 11:return 88;case 12:return 80;case 13:return 97;case 14:return 81;case 15:return 82;case 16:this.begin("href");break;case 18:return 93;case 19:this.begin("callbackname");break;case 21:this.popState(),this.begin("callbackargs");break;case 22:return 91;case 24:return 92;case 25:this.begin("click");break;case 27:return 83;case 28:case 29:return t.lex.firstGraph()&&this.begin("dir"),24;case 30:return 38;case 31:return 42;case 32:case 33:case 34:case 35:return 94;case 36:return this.popState(),25;case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:return this.popState(),26;case 47:return 111;case 48:return 112;case 49:return 113;case 50:return 114;case 51:return 98;case 52:return 104;case 53:return 48;case 54:return 60;case 55:return 47;case 56:return 20;case 57:return 99;case 58:return 119;case 59:case 60:case 61:return 75;case 62:case 63:case 64:return 74;case 65:return 52;case 66:return 53;case 67:return 54;case 68:return 55;case 69:return 56;case 70:return 57;case 71:return 58;case 72:return 62;case 73:return 63;case 74:return 102;case 75:return 105;case 76:return 120;case 77:return 117;case 78:return 106;case 79:case 80:return 118;case 81:return 107;case 82:return 66;case 83:return 85;case 84:return"SEP";case 85:return 84;case 86:return 59;case 87:return 68;case 88:return 67;case 89:return 70;case 90:return 69;case 91:return 115;case 92:return 116;case 93:return 61;case 94:return 50;case 95:return 51;case 96:return 40;case 97:return 41;case 98:return 64;case 99:return 65;case 100:return 126;case 101:return 21;case 102:return 22;case 103:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[23,24],inclusive:!1},callbackname:{rules:[20,21,22],inclusive:!1},href:{rules:[17,18],inclusive:!1},click:{rules:[26,27],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[36,37,38,39,40,41,42,43,44,45,46],inclusive:!1},string:{rules:[8,9],inclusive:!1},INITIAL:{rules:[0,5,6,7,10,11,12,13,14,15,16,19,25,28,29,30,31,32,33,34,35,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],inclusive:!0}}};function te(){this.yy={}}return Jt.lexer=Zt,te.prototype=Jt,Jt.Parser=te,new te}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(5354).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},9959:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,3],n=[1,5],r=[7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],i=[1,15],a=[1,16],o=[1,17],s=[1,18],c=[1,19],l=[1,20],A=[1,21],u=[1,22],h=[1,23],f=[1,25],d=[1,27],p=[1,30],g=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],m={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,section:20,clickStatement:21,taskTxt:22,taskData:23,openDirective:24,typeDirective:25,closeDirective:26,":":27,argDirective:28,click:29,callbackname:30,callbackargs:31,href:32,clickStatementDebug:33,open_directive:34,type_directive:35,arg_directive:36,close_directive:37,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"includes",18:"todayMarker",19:"title",20:"section",22:"taskTxt",23:"taskData",27:":",29:"click",30:"callbackname",31:"callbackargs",32:"href",34:"open_directive",35:"type_directive",36:"arg_directive",37:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[21,2],[21,3],[21,3],[21,4],[21,3],[21,4],[21,2],[33,2],[33,3],[33,3],[33,4],[33,3],[33,4],[33,2],[24,1],[25,1],[28,1],[26,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 2:return a[s-1];case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 9:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 10:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 11:r.TopAxis(),this.$=a[s].substr(8);break;case 12:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 13:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 14:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 15:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 16:r.setTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 17:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 19:r.addTask(a[s-1],a[s]),this.$="task";break;case 23:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 24:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 25:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 26:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 27:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 28:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 29:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 30:case 36:this.$=a[s-1]+" "+a[s];break;case 31:case 32:case 34:this.$=a[s-2]+" "+a[s-1]+" "+a[s];break;case 33:case 35:this.$=a[s-3]+" "+a[s-2]+" "+a[s-1]+" "+a[s];break;case 37:r.parseDirective("%%{","open_directive");break;case 38:r.parseDirective(a[s],"type_directive");break;case 39:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 40:r.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:e,24:4,34:n},{1:[3]},{3:6,4:2,5:e,24:4,34:n},t(r,[2,3],{6:7}),{25:8,35:[1,9]},{35:[2,37]},{1:[2,1]},{4:26,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:i,13:a,14:o,15:s,16:c,17:l,18:A,19:u,20:h,21:24,22:f,24:4,29:d,34:n},{26:28,27:[1,29],37:p},t([27,37],[2,38]),t(r,[2,8],{1:[2,2]}),t(r,[2,4]),{4:26,10:31,12:i,13:a,14:o,15:s,16:c,17:l,18:A,19:u,20:h,21:24,22:f,24:4,29:d,34:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),t(r,[2,18]),{23:[1,32]},t(r,[2,20]),{30:[1,33],32:[1,34]},{11:[1,35]},{28:36,36:[1,37]},{11:[2,40]},t(r,[2,5]),t(r,[2,19]),t(r,[2,23],{31:[1,38],32:[1,39]}),t(r,[2,29],{30:[1,40]}),t(g,[2,21]),{26:41,37:p},{37:[2,39]},t(r,[2,24],{32:[1,42]}),t(r,[2,25]),t(r,[2,27],{31:[1,43]}),{11:[1,44]},t(r,[2,26]),t(r,[2,28]),t(g,[2,22])],defaultActions:{5:[2,37],6:[2,1],30:[2,40],37:[2,39]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,_,E,C,x,B,T,k,S={};;){if(_=n[n.length-1],this.defaultActions[_]?E=this.defaultActions[_]:(null==b&&(b=v()),E=o[_]&&o[_][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[_])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,w?(b=w,w=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},y={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),34;case 1:return this.begin("type_directive"),35;case 2:return this.popState(),this.begin("arg_directive"),27;case 3:return this.popState(),this.popState(),37;case 4:return 36;case 5:case 6:case 7:case 9:case 10:case 11:break;case 8:return 11;case 12:this.begin("href");break;case 13:case 16:case 19:case 22:this.popState();break;case 14:return 32;case 15:this.begin("callbackname");break;case 17:this.popState(),this.begin("callbackargs");break;case 18:return 30;case 20:return 31;case 21:this.begin("click");break;case 23:return 29;case 24:return 5;case 25:return 12;case 26:return 13;case 27:return 14;case 28:return 15;case 29:return 17;case 30:return 16;case 31:return 18;case 32:return"date";case 33:return 19;case 34:return 20;case 35:return 22;case 36:return 23;case 37:return 27;case 38:return 7;case 39:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[19,20],inclusive:!1},callbackname:{rules:[16,17,18],inclusive:!1},href:{rules:[13,14],inclusive:!1},click:{rules:[22,23],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};function v(){this.yy={}}return m.lexer=y,v.prototype=m,m.Parser=v,new v}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(6878).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},2553:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[2,3],n=[1,7],r=[7,12,15,17,19,20,21],i=[7,11,12,15,17,19,20,21],a=[2,20],o=[1,32],s={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,":":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:return r.setDirection(a[s-3]),a[s-1];case 4:r.setOptions(a[s-1]),this.$=a[s];break;case 5:a[s-1]+=a[s],this.$=a[s-1];break;case 7:this.$=[];break;case 8:a[s-1].push(a[s]),this.$=a[s-1];break;case 9:this.$=a[s-1];break;case 11:r.commit(a[s]);break;case 12:r.branch(a[s]);break;case 13:r.checkout(a[s]);break;case 14:r.merge(a[s]);break;case 15:r.reset(a[s]);break;case 16:this.$="";break;case 17:this.$=a[s];break;case 18:this.$=a[s-1]+":"+a[s];break;case 19:this.$=a[s-1]+":"+r.count,r.count=0;break;case 20:r.count=0;break;case 21:r.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:e,9:6,12:n},{5:[1,8]},{7:[1,9]},t(r,[2,7],{10:10,11:[1,11]}),t(i,[2,6]),{6:12,7:e,9:6,12:n},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},t(i,[2,5]),{7:[1,21]},t(r,[2,8]),{12:[1,22]},t(r,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},t(r,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:a,25:31,26:o},{12:a,25:33,26:o},{12:[2,18]},{12:a,25:34,26:o},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,_,E,C,x,B,T,k,S={};;){if(_=n[n.length-1],this.defaultActions[_]?E=this.defaultActions[_]:(null==b&&(b=v()),E=o[_]&&o[_][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[_])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,w?(b=w,w=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},c={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 12;case 1:case 2:case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin("options");break;case 15:case 18:this.popState();break;case 16:return 11;case 17:this.begin("string");break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};function l(){this.yy={}}return s.lexer=c,l.prototype=s,s.Parser=l,new l}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(8183).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},6765:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,r,i,a,o){switch(a.length,i){case 1:return r;case 4:break;case 6:r.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},t(e,[2,3]),t(e,[2,4]),t(e,[2,5]),t(e,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,_,E,C,x,B,T,k,S={};;){if(_=n[n.length-1],this.defaultActions[_]?E=this.defaultActions[_]:(null==b&&(b=v()),E=o[_]&&o[_][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[_])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,w?(b=w,w=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},r={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function i(){this.yy={}}return n.lexer=r,i.prototype=n,n.Parser=i,new i}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(1428).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},7062:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,4],n=[1,5],r=[1,6],i=[1,7],a=[1,9],o=[1,11,13,20,21,22,23],s=[2,5],c=[1,6,11,13,20,21,22,23],l=[20,21,22],A=[2,8],u=[1,18],h=[1,19],f=[1,24],d=[6,20,21,22,23],p={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,openDirective:15,typeDirective:16,closeDirective:17,":":18,argDirective:19,NEWLINE:20,";":21,EOF:22,open_directive:23,type_directive:24,arg_directive:25,close_directive:26,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",18:":",20:"NEWLINE",21:";",22:"EOF",23:"open_directive",24:"type_directive",25:"arg_directive",26:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[15,1],[16,1],[19,1],[17,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.setShowData(!0);break;case 7:this.$=a[s-1];break;case 9:r.addSection(a[s-1],r.cleanupValue(a[s]));break;case 10:this.$=a[s].trim(),r.setTitle(this.$);break;case 17:r.parseDirective("%%{","open_directive");break;case 18:r.parseDirective(a[s],"type_directive");break;case 19:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 20:r.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:e,15:8,20:n,21:r,22:i,23:a},{1:[3]},{3:10,4:2,5:3,6:e,15:8,20:n,21:r,22:i,23:a},{3:11,4:2,5:3,6:e,15:8,20:n,21:r,22:i,23:a},t(o,s,{7:12,8:[1,13]}),t(c,[2,14]),t(c,[2,15]),t(c,[2,16]),{16:14,24:[1,15]},{24:[2,17]},{1:[2,1]},{1:[2,2]},t(l,A,{15:8,9:16,10:17,5:20,1:[2,3],11:u,13:h,23:a}),t(o,s,{7:21}),{17:22,18:[1,23],26:f},t([18,26],[2,18]),t(o,[2,6]),{4:25,20:n,21:r,22:i},{12:[1,26]},{14:[1,27]},t(l,[2,11]),t(l,A,{15:8,9:16,10:17,5:20,1:[2,4],11:u,13:h,23:a}),t(d,[2,12]),{19:28,25:[1,29]},t(d,[2,20]),t(o,[2,7]),t(l,[2,9]),t(l,[2,10]),{17:30,26:f},{26:[2,19]},t(d,[2,13])],defaultActions:{9:[2,17],10:[2,1],11:[2,2],29:[2,19]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,_,E,C,x,B,T,k,S={};;){if(_=n[n.length-1],this.defaultActions[_]?E=this.defaultActions[_]:(null==b&&(b=v()),E=o[_]&&o[_][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[_])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,w?(b=w,w=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},g={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),23;case 1:return this.begin("type_directive"),24;case 2:return this.popState(),this.begin("arg_directive"),18;case 3:return this.popState(),this.popState(),26;case 4:return 25;case 5:case 6:case 8:case 9:break;case 7:return 20;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:this.begin("string");break;case 13:this.popState();break;case 14:return"txt";case 15:return 6;case 16:return 8;case 17:return"value";case 18:return 22}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,15,16,17,18],inclusive:!0}}};function m(){this.yy={}}return p.lexer=g,m.prototype=p,p.Parser=m,new m}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(4551).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3176:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,3],n=[1,5],r=[1,17],i=[2,10],a=[1,21],o=[1,22],s=[1,23],c=[1,24],l=[1,25],A=[1,26],u=[1,19],h=[1,27],f=[1,28],d=[1,31],p=[66,67],g=[5,8,14,35,36,37,38,39,40,48,55,57,66,67],m=[5,6,8,14,35,36,37,38,39,40,48,66,67],y=[1,51],v=[1,52],b=[1,53],w=[1,54],_=[1,55],E=[1,56],C=[1,57],x=[57,58],B=[1,69],T=[1,65],k=[1,66],S=[1,67],I=[1,68],N=[1,70],M=[1,74],F=[1,75],D=[1,72],L=[1,73],O=[5,8,14,35,36,37,38,39,40,48,66,67],R={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,open_directive:14,type_directive:15,arg_directive:16,close_directive:17,requirementDef:18,elementDef:19,relationshipDef:20,requirementType:21,requirementName:22,STRUCT_START:23,requirementBody:24,ID:25,COLONSEP:26,id:27,TEXT:28,text:29,RISK:30,riskLevel:31,VERIFYMTHD:32,verifyType:33,STRUCT_STOP:34,REQUIREMENT:35,FUNCTIONAL_REQUIREMENT:36,INTERFACE_REQUIREMENT:37,PERFORMANCE_REQUIREMENT:38,PHYSICAL_REQUIREMENT:39,DESIGN_CONSTRAINT:40,LOW_RISK:41,MED_RISK:42,HIGH_RISK:43,VERIFY_ANALYSIS:44,VERIFY_DEMONSTRATION:45,VERIFY_INSPECTION:46,VERIFY_TEST:47,ELEMENT:48,elementName:49,elementBody:50,TYPE:51,type:52,DOCREF:53,ref:54,END_ARROW_L:55,relationship:56,LINE:57,END_ARROW_R:58,CONTAINS:59,COPIES:60,DERIVES:61,SATISFIES:62,VERIFIES:63,REFINES:64,TRACES:65,unqString:66,qString:67,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"open_directive",15:"type_directive",16:"arg_directive",17:"close_directive",23:"STRUCT_START",25:"ID",26:"COLONSEP",28:"TEXT",30:"RISK",32:"VERIFYMTHD",34:"STRUCT_STOP",35:"REQUIREMENT",36:"FUNCTIONAL_REQUIREMENT",37:"INTERFACE_REQUIREMENT",38:"PERFORMANCE_REQUIREMENT",39:"PHYSICAL_REQUIREMENT",40:"DESIGN_CONSTRAINT",41:"LOW_RISK",42:"MED_RISK",43:"HIGH_RISK",44:"VERIFY_ANALYSIS",45:"VERIFY_DEMONSTRATION",46:"VERIFY_INSPECTION",47:"VERIFY_TEST",48:"ELEMENT",51:"TYPE",53:"DOCREF",55:"END_ARROW_L",57:"LINE",58:"END_ARROW_R",59:"CONTAINS",60:"COPIES",61:"DERIVES",62:"SATISFIES",63:"VERIFIES",64:"REFINES",65:"TRACES",66:"unqString",67:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[18,5],[24,5],[24,5],[24,5],[24,5],[24,2],[24,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[31,1],[31,1],[31,1],[33,1],[33,1],[33,1],[33,1],[19,5],[50,5],[50,5],[50,2],[50,1],[20,5],[20,5],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[22,1],[22,1],[27,1],[27,1],[29,1],[29,1],[49,1],[49,1],[52,1],[52,1],[54,1],[54,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 6:r.parseDirective("%%{","open_directive");break;case 7:r.parseDirective(a[s],"type_directive");break;case 8:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 9:r.parseDirective("}%%","close_directive","pie");break;case 10:this.$=[];break;case 16:r.addRequirement(a[s-3],a[s-4]);break;case 17:r.setNewReqId(a[s-2]);break;case 18:r.setNewReqText(a[s-2]);break;case 19:r.setNewReqRisk(a[s-2]);break;case 20:r.setNewReqVerifyMethod(a[s-2]);break;case 23:this.$=r.RequirementType.REQUIREMENT;break;case 24:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 26:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 27:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 28:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 29:this.$=r.RiskLevel.LOW_RISK;break;case 30:this.$=r.RiskLevel.MED_RISK;break;case 31:this.$=r.RiskLevel.HIGH_RISK;break;case 32:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 33:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 34:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 35:this.$=r.VerifyType.VERIFY_TEST;break;case 36:r.addElement(a[s-3]);break;case 37:r.setNewElementType(a[s-2]);break;case 38:r.setNewElementDocRef(a[s-2]);break;case 41:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 42:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 43:this.$=r.Relationships.CONTAINS;break;case 44:this.$=r.Relationships.COPIES;break;case 45:this.$=r.Relationships.DERIVES;break;case 46:this.$=r.Relationships.SATISFIES;break;case 47:this.$=r.Relationships.VERIFIES;break;case 48:this.$=r.Relationships.REFINES;break;case 49:this.$=r.Relationships.TRACES}},table:[{3:1,4:2,6:e,9:4,14:n},{1:[3]},{3:7,4:2,5:[1,6],6:e,9:4,14:n},{5:[1,8]},{10:9,15:[1,10]},{15:[2,6]},{3:11,4:2,6:e,9:4,14:n},{1:[2,2]},{4:16,5:r,7:12,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:c,39:l,40:A,48:u,66:h,67:f},{11:29,12:[1,30],17:d},t([12,17],[2,7]),{1:[2,1]},{8:[1,32]},{4:16,5:r,7:33,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:c,39:l,40:A,48:u,66:h,67:f},{4:16,5:r,7:34,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:c,39:l,40:A,48:u,66:h,67:f},{4:16,5:r,7:35,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:c,39:l,40:A,48:u,66:h,67:f},{4:16,5:r,7:36,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:c,39:l,40:A,48:u,66:h,67:f},{4:16,5:r,7:37,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:c,39:l,40:A,48:u,66:h,67:f},{22:38,66:[1,39],67:[1,40]},{49:41,66:[1,42],67:[1,43]},{55:[1,44],57:[1,45]},t(p,[2,23]),t(p,[2,24]),t(p,[2,25]),t(p,[2,26]),t(p,[2,27]),t(p,[2,28]),t(g,[2,52]),t(g,[2,53]),t(m,[2,4]),{13:46,16:[1,47]},t(m,[2,9]),{1:[2,3]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{23:[1,48]},{23:[2,50]},{23:[2,51]},{23:[1,49]},{23:[2,56]},{23:[2,57]},{56:50,59:y,60:v,61:b,62:w,63:_,64:E,65:C},{56:58,59:y,60:v,61:b,62:w,63:_,64:E,65:C},{11:59,17:d},{17:[2,8]},{5:[1,60]},{5:[1,61]},{57:[1,62]},t(x,[2,43]),t(x,[2,44]),t(x,[2,45]),t(x,[2,46]),t(x,[2,47]),t(x,[2,48]),t(x,[2,49]),{58:[1,63]},t(m,[2,5]),{5:B,24:64,25:T,28:k,30:S,32:I,34:N},{5:M,34:F,50:71,51:D,53:L},{27:76,66:h,67:f},{27:77,66:h,67:f},t(O,[2,16]),{26:[1,78]},{26:[1,79]},{26:[1,80]},{26:[1,81]},{5:B,24:82,25:T,28:k,30:S,32:I,34:N},t(O,[2,22]),t(O,[2,36]),{26:[1,83]},{26:[1,84]},{5:M,34:F,50:85,51:D,53:L},t(O,[2,40]),t(O,[2,41]),t(O,[2,42]),{27:86,66:h,67:f},{29:87,66:[1,88],67:[1,89]},{31:90,41:[1,91],42:[1,92],43:[1,93]},{33:94,44:[1,95],45:[1,96],46:[1,97],47:[1,98]},t(O,[2,21]),{52:99,66:[1,100],67:[1,101]},{54:102,66:[1,103],67:[1,104]},t(O,[2,39]),{5:[1,105]},{5:[1,106]},{5:[2,54]},{5:[2,55]},{5:[1,107]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[1,108]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[1,109]},{5:[2,58]},{5:[2,59]},{5:[1,110]},{5:[2,60]},{5:[2,61]},{5:B,24:111,25:T,28:k,30:S,32:I,34:N},{5:B,24:112,25:T,28:k,30:S,32:I,34:N},{5:B,24:113,25:T,28:k,30:S,32:I,34:N},{5:B,24:114,25:T,28:k,30:S,32:I,34:N},{5:M,34:F,50:115,51:D,53:L},{5:M,34:F,50:116,51:D,53:L},t(O,[2,17]),t(O,[2,18]),t(O,[2,19]),t(O,[2,20]),t(O,[2,37]),t(O,[2,38])],defaultActions:{5:[2,6],7:[2,2],11:[2,1],32:[2,3],33:[2,11],34:[2,12],35:[2,13],36:[2,14],37:[2,15],39:[2,50],40:[2,51],42:[2,56],43:[2,57],47:[2,8],88:[2,54],89:[2,55],91:[2,29],92:[2,30],93:[2,31],95:[2,32],96:[2,33],97:[2,34],98:[2,35],100:[2,58],101:[2,59],103:[2,60],104:[2,61]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,_,E,C,x,B,T,k,S={};;){if(_=n[n.length-1],this.defaultActions[_]?E=this.defaultActions[_]:(null==b&&(b=v()),E=o[_]&&o[_][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[_])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,w?(b=w,w=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},U={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),14;case 1:return this.begin("type_directive"),15;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),17;case 4:return 16;case 5:return 5;case 6:case 7:case 8:break;case 9:return 8;case 10:return 6;case 11:return 23;case 12:return 34;case 13:return 26;case 14:return 25;case 15:return 28;case 16:return 30;case 17:return 32;case 18:return 35;case 19:return 36;case 20:return 37;case 21:return 38;case 22:return 39;case 23:return 40;case 24:return 41;case 25:return 42;case 26:return 43;case 27:return 44;case 28:return 45;case 29:return 46;case 30:return 47;case 31:return 48;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 62;case 36:return 63;case 37:return 64;case 38:return 65;case 39:return 51;case 40:return 53;case 41:return 55;case 42:return 58;case 43:return 57;case 44:this.begin("string");break;case 45:this.popState();break;case 46:return"qString";case 47:return e.yytext=e.yytext.trim(),66}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[45,46],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,47],inclusive:!0}}};function P(){this.yy={}}return R.lexer=U,P.prototype=R,R.Parser=P,new P}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(8800).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},6876:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,3],r=[1,5],i=[1,7],a=[2,5],o=[1,15],s=[1,17],c=[1,18],l=[1,19],A=[1,21],u=[1,22],h=[1,23],f=[1,29],d=[1,30],p=[1,31],g=[1,32],m=[1,33],y=[1,34],v=[1,37],b=[1,38],w=[1,39],_=[1,40],E=[1,41],C=[1,42],x=[1,45],B=[1,4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],T=[1,58],k=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,42,46,47,48,49,57,67],S=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,41,42,46,47,48,49,57,67],I=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,42,46,47,48,49,57,67],N=[55,56,57],M=[1,4,5,7,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],F={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,activate:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,text2:31,loop:32,end:33,rect:34,opt:35,alt:36,else_sections:37,par:38,par_sections:39,and:40,else:41,note:42,placement:43,over:44,actor_pair:45,links:46,link:47,properties:48,details:49,spaceList:50,",":51,left_of:52,right_of:53,signaltype:54,"+":55,"-":56,ACTOR:57,SOLID_OPEN_ARROW:58,DOTTED_OPEN_ARROW:59,SOLID_ARROW:60,DOTTED_ARROW:61,SOLID_CROSS:62,DOTTED_CROSS:63,SOLID_POINT:64,DOTTED_POINT:65,TXT:66,open_directive:67,type_directive:68,arg_directive:69,close_directive:70,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"activate",24:"deactivate",30:"title",32:"loop",33:"end",34:"rect",35:"opt",36:"alt",38:"par",40:"and",41:"else",42:"note",44:"over",46:"links",47:"link",48:"properties",49:"details",51:",",52:"left_of",53:"right_of",55:"+",56:"-",57:"ACTOR",58:"SOLID_OPEN_ARROW",59:"DOTTED_OPEN_ARROW",60:"SOLID_ARROW",61:"DOTTED_ARROW",62:"SOLID_CROSS",63:"DOTTED_CROSS",64:"SOLID_POINT",65:"DOTTED_POINT",66:"TXT",67:"open_directive",68:"type_directive",69:"arg_directive",70:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[39,1],[39,4],[37,1],[37,4],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[50,2],[50,1],[45,3],[45,1],[43,1],[43,1],[21,5],[21,5],[21,4],[17,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[31,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:return r.apply(a[s]),a[s];case 5:case 9:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:case 45:this.$=a[s];break;case 12:a[s-3].type="addParticipant",a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 13:a[s-1].type="addParticipant",this.$=a[s-1];break;case 14:a[s-3].type="addActor",a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 15:a[s-1].type="addActor",this.$=a[s-1];break;case 17:r.enableSequenceNumbers();break;case 18:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1]};break;case 19:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1]};break;case 25:this.$=[{type:"setTitle",text:a[s-1]}];break;case 26:a[s-1].unshift({type:"loopStart",loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:"loopEnd",loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 27:a[s-1].unshift({type:"rectStart",color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:"rectEnd",color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 28:a[s-1].unshift({type:"optStart",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:"optEnd",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 29:a[s-1].unshift({type:"altStart",altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 30:a[s-1].unshift({type:"parStart",parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 33:this.$=a[s-3].concat([{type:"and",parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 35:this.$=a[s-3].concat([{type:"else",altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 36:this.$=[a[s-1],{type:"addNote",placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 37:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 38:this.$=[a[s-1],{type:"addLinks",actor:a[s-1].actor,text:a[s]}];break;case 39:this.$=[a[s-1],{type:"addALink",actor:a[s-1].actor,text:a[s]}];break;case 40:this.$=[a[s-1],{type:"addProperties",actor:a[s-1].actor,text:a[s]}];break;case 41:this.$=[a[s-1],{type:"addDetails",actor:a[s-1].actor,text:a[s]}];break;case 44:this.$=[a[s-2],a[s]];break;case 46:this.$=r.PLACEMENT.LEFTOF;break;case 47:this.$=r.PLACEMENT.RIGHTOF;break;case 48:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1]}];break;case 49:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4]}];break;case 50:this.$=[a[s-3],a[s-1],{type:"addMessage",from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 51:this.$={type:"addParticipant",actor:a[s]};break;case 52:this.$=r.LINETYPE.SOLID_OPEN;break;case 53:this.$=r.LINETYPE.DOTTED_OPEN;break;case 54:this.$=r.LINETYPE.SOLID;break;case 55:this.$=r.LINETYPE.DOTTED;break;case 56:this.$=r.LINETYPE.SOLID_CROSS;break;case 57:this.$=r.LINETYPE.DOTTED_CROSS;break;case 58:this.$=r.LINETYPE.SOLID_POINT;break;case 59:this.$=r.LINETYPE.DOTTED_POINT;break;case 60:this.$=r.parseMessage(a[s].trim().substring(1));break;case 61:r.parseDirective("%%{","open_directive");break;case 62:r.parseDirective(a[s],"type_directive");break;case 63:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 64:r.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:e,5:n,6:4,7:r,11:6,67:i},{1:[3]},{3:8,4:e,5:n,6:4,7:r,11:6,67:i},{3:9,4:e,5:n,6:4,7:r,11:6,67:i},{3:10,4:e,5:n,6:4,7:r,11:6,67:i},t([1,4,5,16,20,22,23,24,30,32,34,35,36,38,42,46,47,48,49,57,67],a,{8:11}),{12:12,68:[1,13]},{68:[2,61]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:35,9:14,10:16,11:6,16:c,17:36,20:l,21:20,22:A,23:u,24:h,25:24,26:25,27:26,28:27,29:28,30:f,32:d,34:p,35:g,36:m,38:y,42:v,46:b,47:w,48:_,49:E,57:C,67:i},{13:43,14:[1,44],70:x},t([14,70],[2,62]),t(B,[2,6]),{6:35,10:46,11:6,16:c,17:36,20:l,21:20,22:A,23:u,24:h,25:24,26:25,27:26,28:27,29:28,30:f,32:d,34:p,35:g,36:m,38:y,42:v,46:b,47:w,48:_,49:E,57:C,67:i},t(B,[2,8]),t(B,[2,9]),{17:47,57:C},{17:48,57:C},{5:[1,49]},t(B,[2,17]),{17:50,57:C},{17:51,57:C},{5:[1,52]},{5:[1,53]},{5:[1,54]},{5:[1,55]},{5:[1,56]},{31:57,66:T},{19:[1,59]},{19:[1,60]},{19:[1,61]},{19:[1,62]},{19:[1,63]},t(B,[2,31]),{54:64,58:[1,65],59:[1,66],60:[1,67],61:[1,68],62:[1,69],63:[1,70],64:[1,71],65:[1,72]},{43:73,44:[1,74],52:[1,75],53:[1,76]},{17:77,57:C},{17:78,57:C},{17:79,57:C},{17:80,57:C},t([5,18,51,58,59,60,61,62,63,64,65,66],[2,51]),{5:[1,81]},{15:82,69:[1,83]},{5:[2,64]},t(B,[2,7]),{5:[1,85],18:[1,84]},{5:[1,87],18:[1,86]},t(B,[2,16]),{5:[1,88]},{5:[1,89]},t(B,[2,20]),t(B,[2,21]),t(B,[2,22]),t(B,[2,23]),t(B,[2,24]),{5:[1,90]},{5:[2,60]},t(k,a,{8:91}),t(k,a,{8:92}),t(k,a,{8:93}),t(S,a,{37:94,8:95}),t(I,a,{39:96,8:97}),{17:100,55:[1,98],56:[1,99],57:C},t(N,[2,52]),t(N,[2,53]),t(N,[2,54]),t(N,[2,55]),t(N,[2,56]),t(N,[2,57]),t(N,[2,58]),t(N,[2,59]),{17:101,57:C},{17:103,45:102,57:C},{57:[2,46]},{57:[2,47]},{31:104,66:T},{31:105,66:T},{31:106,66:T},{31:107,66:T},t(M,[2,10]),{13:108,70:x},{70:[2,63]},{19:[1,109]},t(B,[2,13]),{19:[1,110]},t(B,[2,15]),t(B,[2,18]),t(B,[2,19]),t(B,[2,25]),{4:o,5:s,6:35,9:14,10:16,11:6,16:c,17:36,20:l,21:20,22:A,23:u,24:h,25:24,26:25,27:26,28:27,29:28,30:f,32:d,33:[1,111],34:p,35:g,36:m,38:y,42:v,46:b,47:w,48:_,49:E,57:C,67:i},{4:o,5:s,6:35,9:14,10:16,11:6,16:c,17:36,20:l,21:20,22:A,23:u,24:h,25:24,26:25,27:26,28:27,29:28,30:f,32:d,33:[1,112],34:p,35:g,36:m,38:y,42:v,46:b,47:w,48:_,49:E,57:C,67:i},{4:o,5:s,6:35,9:14,10:16,11:6,16:c,17:36,20:l,21:20,22:A,23:u,24:h,25:24,26:25,27:26,28:27,29:28,30:f,32:d,33:[1,113],34:p,35:g,36:m,38:y,42:v,46:b,47:w,48:_,49:E,57:C,67:i},{33:[1,114]},{4:o,5:s,6:35,9:14,10:16,11:6,16:c,17:36,20:l,21:20,22:A,23:u,24:h,25:24,26:25,27:26,28:27,29:28,30:f,32:d,33:[2,34],34:p,35:g,36:m,38:y,41:[1,115],42:v,46:b,47:w,48:_,49:E,57:C,67:i},{33:[1,116]},{4:o,5:s,6:35,9:14,10:16,11:6,16:c,17:36,20:l,21:20,22:A,23:u,24:h,25:24,26:25,27:26,28:27,29:28,30:f,32:d,33:[2,32],34:p,35:g,36:m,38:y,40:[1,117],42:v,46:b,47:w,48:_,49:E,57:C,67:i},{17:118,57:C},{17:119,57:C},{31:120,66:T},{31:121,66:T},{31:122,66:T},{51:[1,123],66:[2,45]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},{5:[1,124]},{5:[1,125]},{5:[1,126]},t(B,[2,26]),t(B,[2,27]),t(B,[2,28]),t(B,[2,29]),{19:[1,127]},t(B,[2,30]),{19:[1,128]},{31:129,66:T},{31:130,66:T},{5:[2,50]},{5:[2,36]},{5:[2,37]},{17:131,57:C},t(M,[2,11]),t(B,[2,12]),t(B,[2,14]),t(S,a,{8:95,37:132}),t(I,a,{8:97,39:133}),{5:[2,48]},{5:[2,49]},{66:[2,44]},{33:[2,35]},{33:[2,33]}],defaultActions:{7:[2,61],8:[2,1],9:[2,2],10:[2,3],45:[2,64],58:[2,60],75:[2,46],76:[2,47],83:[2,63],104:[2,38],105:[2,39],106:[2,40],107:[2,41],120:[2,50],121:[2,36],122:[2,37],129:[2,48],130:[2,49],131:[2,44],132:[2,35],133:[2,33]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,_,E,C,x,B,T,k,S={};;){if(_=n[n.length-1],this.defaultActions[_]?E=this.defaultActions[_]:(null==b&&(b=v()),E=o[_]&&o[_][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[_])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,w?(b=w,w=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},D={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),67;case 1:return this.begin("type_directive"),68;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),70;case 4:return 69;case 5:case 39:case 52:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return this.begin("ID"),20;case 13:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),57;case 14:return this.popState(),this.popState(),this.begin("LINE"),18;case 15:return this.popState(),this.popState(),5;case 16:return this.begin("LINE"),32;case 17:return this.begin("LINE"),34;case 18:return this.begin("LINE"),35;case 19:return this.begin("LINE"),36;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),38;case 22:return this.begin("LINE"),40;case 23:return this.popState(),19;case 24:return 33;case 25:return 52;case 26:return 53;case 27:return 46;case 28:return 47;case 29:return 48;case 30:return 49;case 31:return 44;case 32:return 42;case 33:return this.begin("ID"),23;case 34:return this.begin("ID"),24;case 35:return 30;case 36:return 7;case 37:return 22;case 38:return 51;case 40:return e.yytext=e.yytext.trim(),57;case 41:return 60;case 42:return 61;case 43:return 58;case 44:return 59;case 45:return 62;case 46:return 63;case 47:return 64;case 48:return 65;case 49:return 66;case 50:return 55;case 51:return 56;case 53:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,13],inclusive:!1},ALIAS:{rules:[7,8,14,15],inclusive:!1},LINE:{rules:[7,8,23],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],inclusive:!0}}};function L(){this.yy={}}return F.lexer=D,L.prototype=F,F.Parser=L,new L}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(1993).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3584:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,3],r=[1,5],i=[1,7],a=[2,5],o=[1,15],s=[1,17],c=[1,19],l=[1,20],A=[1,21],u=[1,22],h=[1,30],f=[1,23],d=[1,24],p=[1,25],g=[1,26],m=[1,27],y=[1,32],v=[1,33],b=[1,34],w=[1,35],_=[1,31],E=[1,38],C=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],x=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],B=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],T=[4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],k={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"--\x3e":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,openDirective:31,typeDirective:32,closeDirective:33,":":34,argDirective:35,direction_tb:36,direction_bt:37,direction_rl:38,direction_lr:39,eol:40,";":41,EDGE_STATE:42,left_of:43,right_of:44,open_directive:45,type_directive:46,arg_directive:47,close_directive:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"--\x3e",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CHOICE",26:"CONCURRENT",27:"note",29:"NOTE_TEXT",34:":",36:"direction_tb",37:"direction_bt",38:"direction_rl",39:"direction_lr",41:";",42:"EDGE_STATE",43:"left_of",44:"right_of",45:"open_directive",46:"type_directive",47:"arg_directive",48:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[40,1],[40,1],[11,1],[11,1],[28,1],[28,1],[31,1],[32,1],[35,1],[33,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:return r.setRootDoc(a[s]),a[s];case 5:this.$=[];break;case 6:"nl"!=a[s]&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 7:case 8:case 36:case 37:this.$=a[s];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:a[s],type:"default",description:""};break;case 11:this.$={stmt:"state",id:a[s-1],type:"default",description:r.trimColon(a[s])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:a[s-2],type:"default",description:""},state2:{stmt:"state",id:a[s],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:a[s-3],type:"default",description:""},state2:{stmt:"state",id:a[s-1],type:"default",description:""},description:a[s].substr(1).trim()};break;case 17:this.$={stmt:"state",id:a[s-3],type:"default",description:"",doc:a[s-1]};break;case 18:var c=a[s],l=a[s-2].trim();if(a[s].match(":")){var A=a[s].split(":");c=A[0],l=[l,A[1]]}this.$={stmt:"state",id:c,type:"default",description:l};break;case 19:this.$={stmt:"state",id:a[s-3],type:"default",description:a[s-5],doc:a[s-1]};break;case 20:this.$={stmt:"state",id:a[s],type:"fork"};break;case 21:this.$={stmt:"state",id:a[s],type:"join"};break;case 22:this.$={stmt:"state",id:a[s],type:"choice"};break;case 23:this.$={stmt:"state",id:r.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 30:r.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 31:r.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 32:r.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 33:r.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:r.parseDirective("%%{","open_directive");break;case 41:r.parseDirective(a[s],"type_directive");break;case 42:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 43:r.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:e,5:n,6:4,7:r,31:6,45:i},{1:[3]},{3:8,4:e,5:n,6:4,7:r,31:6,45:i},{3:9,4:e,5:n,6:4,7:r,31:6,45:i},{3:10,4:e,5:n,6:4,7:r,31:6,45:i},t([1,4,5,14,15,17,20,22,23,24,25,26,27,36,37,38,39,42,45],a,{8:11}),{32:12,46:[1,13]},{46:[2,40]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:28,9:14,10:16,11:18,14:c,15:l,17:A,20:u,22:h,23:f,24:d,25:p,26:g,27:m,30:29,31:6,36:y,37:v,38:b,39:w,42:_,45:i},{33:36,34:[1,37],48:E},t([34,48],[2,41]),t(C,[2,6]),{6:28,10:39,11:18,14:c,15:l,17:A,20:u,22:h,23:f,24:d,25:p,26:g,27:m,30:29,31:6,36:y,37:v,38:b,39:w,42:_,45:i},t(C,[2,8]),t(C,[2,9]),t(C,[2,10],{12:[1,40],13:[1,41]}),t(C,[2,14]),{16:[1,42]},t(C,[2,16],{18:[1,43]}),{21:[1,44]},t(C,[2,20]),t(C,[2,21]),t(C,[2,22]),t(C,[2,23]),{28:45,29:[1,46],43:[1,47],44:[1,48]},t(C,[2,26]),t(C,[2,27]),t(x,[2,36]),t(x,[2,37]),t(C,[2,30]),t(C,[2,31]),t(C,[2,32]),t(C,[2,33]),t(B,[2,28]),{35:49,47:[1,50]},t(B,[2,43]),t(C,[2,7]),t(C,[2,11]),{11:51,22:h,42:_},t(C,[2,15]),t(T,a,{8:52}),{22:[1,53]},{22:[1,54]},{21:[1,55]},{22:[2,38]},{22:[2,39]},{33:56,48:E},{48:[2,42]},t(C,[2,12],{12:[1,57]}),{4:o,5:s,6:28,9:14,10:16,11:18,14:c,15:l,17:A,19:[1,58],20:u,22:h,23:f,24:d,25:p,26:g,27:m,30:29,31:6,36:y,37:v,38:b,39:w,42:_,45:i},t(C,[2,18],{18:[1,59]}),{29:[1,60]},{22:[1,61]},t(B,[2,29]),t(C,[2,13]),t(C,[2,17]),t(T,a,{8:62}),t(C,[2,24]),t(C,[2,25]),{4:o,5:s,6:28,9:14,10:16,11:18,14:c,15:l,17:A,19:[1,63],20:u,22:h,23:f,24:d,25:p,26:g,27:m,30:29,31:6,36:y,37:v,38:b,39:w,42:_,45:i},t(C,[2,19])],defaultActions:{7:[2,40],8:[2,1],9:[2,2],10:[2,3],47:[2,38],48:[2,39],50:[2,42]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,_,E,C,x,B,T,k,S={};;){if(_=n[n.length-1],this.defaultActions[_]?E=this.defaultActions[_]:(null==b&&(b=v()),E=o[_]&&o[_][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[_])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,w?(b=w,w=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},S={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:case 26:return 36;case 1:case 27:return 37;case 2:case 28:return 38;case 3:case 29:return 39;case 4:return this.begin("open_directive"),45;case 5:return this.begin("type_directive"),46;case 6:return this.popState(),this.begin("arg_directive"),34;case 7:return this.popState(),this.popState(),48;case 8:return 47;case 9:case 10:case 12:case 13:case 14:case 15:case 39:case 45:break;case 11:case 59:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 33:case 36:this.popState();break;case 19:this.pushState("STATE");break;case 20:case 23:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),23;case 21:case 24:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),24;case 22:case 25:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),25;case 30:this.begin("STATE_STRING");break;case 31:return this.popState(),this.pushState("STATE_ID"),"AS";case 32:case 47:return this.popState(),"ID";case 34:return"STATE_DESCR";case 35:return 17;case 37:return this.popState(),this.pushState("struct"),18;case 38:return this.popState(),19;case 40:return this.begin("NOTE"),27;case 41:return this.popState(),this.pushState("NOTE_ID"),43;case 42:return this.popState(),this.pushState("NOTE_ID"),44;case 43:this.popState(),this.pushState("FLOATING_NOTE");break;case 44:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 46:return"NOTE_TEXT";case 48:return this.popState(),this.pushState("NOTE_TEXT"),22;case 49:return this.popState(),e.yytext=e.yytext.substr(2).trim(),29;case 50:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),29;case 51:case 52:return 7;case 53:return 14;case 54:return 42;case 55:return 22;case 56:return e.yytext=e.yytext.trim(),12;case 57:return 13;case 58:return 26;case 60:return"INVALID"}},rules:[/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,19,26,27,28,29,38,39,40,54,55,56,57,58],inclusive:!1},FLOATING_NOTE_ID:{rules:[47],inclusive:!1},FLOATING_NOTE:{rules:[44,45,46],inclusive:!1},NOTE_TEXT:{rules:[49,50],inclusive:!1},NOTE_ID:{rules:[48],inclusive:!1},NOTE:{rules:[41,42,43],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[32],inclusive:!1},STATE_STRING:{rules:[33,34],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,20,21,22,23,24,25,30,31,35,36,37],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,37,40,51,52,53,54,55,56,57,59,60],inclusive:!0}}};function I(){this.yy={}}return k.lexer=S,I.prototype=k,k.Parser=I,new I}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(3069).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},9763:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,17,18,19,21],i=[1,15],a=[1,16],o=[1,17],s=[1,21],c=[4,6,9,11,17,18,19,21],l={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,section:18,taskName:19,taskData:20,open_directive:21,type_directive:22,arg_directive:23,close_directive:24,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"section",19:"taskName",20:"taskData",21:"open_directive",22:"type_directive",23:"arg_directive",24:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 11:r.setTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$="task";break;case 15:r.parseDirective("%%{","open_directive");break;case 16:r.parseDirective(a[s],"type_directive");break;case 17:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 18:r.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:e,7:3,12:4,21:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,21:n},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:a,19:o,21:n},{1:[2,2]},{14:19,15:[1,20],24:s},t([15,24],[2,16]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:18,10:22,12:4,17:i,18:a,19:o,21:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),t(r,[2,12]),{20:[1,23]},t(r,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},t(r,[2,5]),t(r,[2,13]),t(c,[2,9]),{14:27,24:s},{24:[2,17]},{11:[1,28]},t(c,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,_,E,C,x,B,T,k,S={};;){if(_=n[n.length-1],this.defaultActions[_]?E=this.defaultActions[_]:(null==b&&(b=v()),E=o[_]&&o[_][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[_])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,w?(b=w,w=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},A={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),21;case 1:return this.begin("type_directive"),22;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),24;case 4:return 23;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return 18;case 13:return 19;case 14:return 20;case 15:return 15;case 16:return 6;case 17:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function u(){this.yy={}}return l.lexer=A,u.prototype=l,l.Parser=u,new u}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(9143).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},9609:t=>{var e=/^(%20|\s)*(javascript|data)/im,n=/[^\x20-\x7E]/gim,r=/^([^:]+):/gm,i=[".","/"];t.exports={sanitizeUrl:function(t){if(!t)return"about:blank";var a,o,s=t.replace(n,"").trim();return function(t){return i.indexOf(t[0])>-1}(s)?s:(o=s.match(r))?(a=o[0],e.test(a)?"about:blank":s):"about:blank"}}},3841:t=>{t.exports=function(t,e){return t.intersect(e)}},7458:(t,e,n)=>{n.d(e,{Z:()=>AC});var r=n(1941),i=n.n(r),a={debug:1,info:2,warn:3,error:4,fatal:5},o={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fatal";isNaN(t)&&(t=t.toLowerCase(),void 0!==a[t]&&(t=a[t])),o.trace=function(){},o.debug=function(){},o.info=function(){},o.warn=function(){},o.error=function(){},o.fatal=function(){},t<=a.fatal&&(o.fatal=console.error?console.error.bind(console,c("FATAL"),"color: orange"):console.log.bind(console,"",c("FATAL"))),t<=a.error&&(o.error=console.error?console.error.bind(console,c("ERROR"),"color: orange"):console.log.bind(console,"",c("ERROR"))),t<=a.warn&&(o.warn=console.warn?console.warn.bind(console,c("WARN"),"color: orange"):console.log.bind(console,"",c("WARN"))),t<=a.info&&(o.info=console.info?console.info.bind(console,c("INFO"),"color: lightblue"):console.log.bind(console,"",c("INFO"))),t<=a.debug&&(o.debug=console.debug?console.debug.bind(console,c("DEBUG"),"color: lightgreen"):console.log.bind(console,"",c("DEBUG")))},c=function(t){var e=i()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")};function l(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function A(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function u(t){return t}var h=1e-6;function f(t){return"translate("+t+",0)"}function d(t){return"translate(0,"+t+")"}function p(t){return e=>+t(e)}function g(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function m(){return!this.__axis}function y(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=1===t||4===t?-1:1,A=4===t||2===t?"x":"y",y=1===t||3===t?f:d;function v(f){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,v=null==i?e.tickFormat?e.tickFormat.apply(e,n):u:i,b=Math.max(a,0)+s,w=e.range(),_=+w[0]+c,E=+w[w.length-1]+c,C=(e.bandwidth?g:p)(e.copy(),c),x=f.selection?f.selection():f,B=x.selectAll(".domain").data([null]),T=x.selectAll(".tick").data(d,e).order(),k=T.exit(),S=T.enter().append("g").attr("class","tick"),I=T.select("line"),N=T.select("text");B=B.merge(B.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(S),I=I.merge(S.append("line").attr("stroke","currentColor").attr(A+"2",l*a)),N=N.merge(S.append("text").attr("fill","currentColor").attr(A,l*b).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),f!==x&&(B=B.transition(f),T=T.transition(f),I=I.transition(f),N=N.transition(f),k=k.transition(f).attr("opacity",h).attr("transform",(function(t){return isFinite(t=C(t))?y(t+c):this.getAttribute("transform")})),S.attr("opacity",h).attr("transform",(function(t){var e=this.parentNode.__axis;return y((e&&isFinite(e=e(t))?e:C(t))+c)}))),k.remove(),B.attr("d",4===t||2===t?o?"M"+l*o+","+_+"H"+c+"V"+E+"H"+l*o:"M"+c+","+_+"V"+E:o?"M"+_+","+l*o+"V"+c+"H"+E+"V"+l*o:"M"+_+","+c+"H"+E),T.attr("opacity",1).attr("transform",(function(t){return y(C(t)+c)})),I.attr(A+"2",l*a),N.attr(A,l*b).text(v),x.filter(m).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),x.each((function(){this.__axis=C}))}return v.scale=function(t){return arguments.length?(e=t,v):e},v.ticks=function(){return n=Array.from(arguments),v},v.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),v):n.slice()},v.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),v):r&&r.slice()},v.tickFormat=function(t){return arguments.length?(i=t,v):i},v.tickSize=function(t){return arguments.length?(a=o=+t,v):a},v.tickSizeInner=function(t){return arguments.length?(a=+t,v):a},v.tickSizeOuter=function(t){return arguments.length?(o=+t,v):o},v.tickPadding=function(t){return arguments.length?(s=+t,v):s},v.offset=function(t){return arguments.length?(c=+t,v):c},v}function v(){}function b(t){return null==t?v:function(){return this.querySelector(t)}}function w(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function _(){return[]}function E(t){return null==t?_:function(){return this.querySelectorAll(t)}}function C(t){return function(){return this.matches(t)}}function x(t){return function(e){return e.matches(t)}}var B=Array.prototype.find;function T(){return this.firstElementChild}var k=Array.prototype.filter;function S(){return Array.from(this.children)}function I(t){return new Array(t.length)}function N(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function M(t){return function(){return t}}function F(t,e,n,r,i,a){for(var o,s=0,c=e.length,l=a.length;s<l;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new N(t,a[s]);for(;s<c;++s)(o=e[s])&&(i[s]=o)}function D(t,e,n,r,i,a,o){var s,c,l,A=new Map,u=e.length,h=a.length,f=new Array(u);for(s=0;s<u;++s)(c=e[s])&&(f[s]=l=o.call(c,c.__data__,s,e)+"",A.has(l)?i[s]=c:A.set(l,c));for(s=0;s<h;++s)l=o.call(t,a[s],s,a)+"",(c=A.get(l))?(r[s]=c,c.__data__=a[s],A.delete(l)):n[s]=new N(t,a[s]);for(s=0;s<u;++s)(c=e[s])&&A.get(f[s])===c&&(i[s]=c)}function L(t){return t.__data__}function O(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function R(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}N.prototype={constructor:N,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var U="http://www.w3.org/1999/xhtml";const P={svg:"http://www.w3.org/2000/svg",xhtml:U,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Q(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),P.hasOwnProperty(e)?{space:P[e],local:t}:t}function H(t){return function(){this.removeAttribute(t)}}function G(t){return function(){this.removeAttributeNS(t.space,t.local)}}function j(t,e){return function(){this.setAttribute(t,e)}}function K(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function $(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Y(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function V(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function z(t){return function(){this.style.removeProperty(t)}}function W(t,e,n){return function(){this.style.setProperty(t,e,n)}}function q(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function X(t,e){return t.style.getPropertyValue(e)||V(t).getComputedStyle(t,null).getPropertyValue(e)}function J(t){return function(){delete this[t]}}function Z(t,e){return function(){this[t]=e}}function tt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function et(t){return t.trim().split(/^|\s+/)}function nt(t){return t.classList||new rt(t)}function rt(t){this._node=t,this._names=et(t.getAttribute("class")||"")}function it(t,e){for(var n=nt(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function at(t,e){for(var n=nt(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function ot(t){return function(){it(this,t)}}function st(t){return function(){at(this,t)}}function ct(t,e){return function(){(e.apply(this,arguments)?it:at)(this,t)}}function lt(){this.textContent=""}function At(t){return function(){this.textContent=t}}function ut(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function ht(){this.innerHTML=""}function ft(t){return function(){this.innerHTML=t}}function dt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function pt(){this.nextSibling&&this.parentNode.appendChild(this)}function gt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===U&&e.documentElement.namespaceURI===U?e.createElement(t):e.createElementNS(n,t)}}function yt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function vt(t){var e=Q(t);return(e.local?yt:mt)(e)}function bt(){return null}function wt(){var t=this.parentNode;t&&t.removeChild(this)}function _t(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Et(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ct(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function xt(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Bt(t,e,n){return function(){var r,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function Tt(t,e,n){var r=V(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function kt(t,e){return function(){return Tt(this,t,e)}}function St(t,e){return function(){return Tt(this,t,e.apply(this,arguments))}}rt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var It=[null];function Nt(t,e){this._groups=t,this._parents=e}function Mt(){return new Nt([[document.documentElement]],It)}Nt.prototype=Mt.prototype={constructor:Nt,select:function(t){"function"!=typeof t&&(t=b(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],c=s.length,l=r[i]=new Array(c),A=0;A<c;++A)(a=s[A])&&(o=t.call(a,a.__data__,A,s))&&("__data__"in a&&(o.__data__=a.__data__),l[A]=o);return new Nt(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return w(t.apply(this,arguments))}}(t):E(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],c=s.length,l=0;l<c;++l)(o=s[l])&&(r.push(t.call(o,o.__data__,l,s)),i.push(o));return new Nt(r,i)},selectChild:function(t){return this.select(null==t?T:function(t){return function(){return B.call(this.children,t)}}("function"==typeof t?t:x(t)))},selectChildren:function(t){return this.selectAll(null==t?S:function(t){return function(){return k.call(this.children,t)}}("function"==typeof t?t:x(t)))},filter:function(t){"function"!=typeof t&&(t=C(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new Nt(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,L);var n=e?D:F,r=this._parents,i=this._groups;"function"!=typeof t&&(t=M(t));for(var a=i.length,o=new Array(a),s=new Array(a),c=new Array(a),l=0;l<a;++l){var A=r[l],u=i[l],h=u.length,f=O(t.call(A,A&&A.__data__,l,r)),d=f.length,p=s[l]=new Array(d),g=o[l]=new Array(d),m=c[l]=new Array(h);n(A,u,p,g,m,f,e);for(var y,v,b=0,w=0;b<d;++b)if(y=p[b]){for(b>=w&&(w=b+1);!(v=g[w])&&++w<d;);y._next=v||null}}return(o=new Nt(o,r))._enter=s,o._exit=c,o},enter:function(){return new Nt(this._enter||this._groups.map(I),this._parents)},exit:function(){return new Nt(this._exit||this._groups.map(I),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),c=0;c<o;++c)for(var l,A=n[c],u=r[c],h=A.length,f=s[c]=new Array(h),d=0;d<h;++d)(l=A[d]||u[d])&&(f[d]=l);for(;c<i;++c)s[c]=n[c];return new Nt(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=R);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],c=s.length,l=i[a]=new Array(c),A=0;A<c;++A)(o=s[A])&&(l[A]=o);l.sort(e)}return new Nt(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=Q(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?G:H:"function"==typeof e?n.local?Y:$:n.local?K:j)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?z:"function"==typeof e?q:W)(t,e,null==n?"":n)):X(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?J:"function"==typeof e?tt:Z)(t,e)):this.node()[t]},classed:function(t,e){var n=et(t+"");if(arguments.length<2){for(var r=nt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?ct:e?ot:st)(n,e))},text:function(t){return arguments.length?this.each(null==t?lt:("function"==typeof t?ut:At)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ht:("function"==typeof t?dt:ft)(t)):this.node().innerHTML},raise:function(){return this.each(pt)},lower:function(){return this.each(gt)},append:function(t){var e="function"==typeof t?t:vt(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:vt(t),r=null==e?bt:"function"==typeof e?e:b(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(wt)},clone:function(t){return this.select(t?Et:_t)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=Ct(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?Bt:xt,r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var c,l=0,A=s.length;l<A;++l)for(r=0,c=s[l];r<o;++r)if((i=a[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?St:kt)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)(r=i[a])&&(yield r)}};const Ft=Mt;var Dt={value:()=>{}};function Lt(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Ot(r)}function Ot(t){this._=t}function Rt(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Ut(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Pt(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Dt,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Ot.prototype=Lt.prototype={constructor:Ot,on:function(t,e){var n,r=this._,i=Rt(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=Pt(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Pt(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=Ut(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Ot(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};const Qt=Lt;var Ht,Gt,jt=0,Kt=0,$t=0,Yt=0,Vt=0,zt=0,Wt="object"==typeof performance&&performance.now?performance:Date,qt="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Xt(){return Vt||(qt(Jt),Vt=Wt.now()+zt)}function Jt(){Vt=0}function Zt(){this._call=this._time=this._next=null}function te(t,e,n){var r=new Zt;return r.restart(t,e,n),r}function ee(){Vt=(Yt=Wt.now())+zt,jt=Kt=0;try{!function(){Xt(),++jt;for(var t,e=Ht;e;)(t=Vt-e._time)>=0&&e._call.call(void 0,t),e=e._next;--jt}()}finally{jt=0,function(){for(var t,e,n=Ht,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ht=e);Gt=t,re(r)}(),Vt=0}}function ne(){var t=Wt.now(),e=t-Yt;e>1e3&&(zt-=e,Yt=t)}function re(t){jt||(Kt&&(Kt=clearTimeout(Kt)),t-Vt>24?(t<1/0&&(Kt=setTimeout(ee,t-Wt.now()-zt)),$t&&($t=clearInterval($t))):($t||(Yt=Wt.now(),$t=setInterval(ne,1e3)),jt=1,qt(ee)))}function ie(t,e,n){var r=new Zt;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}Zt.prototype=te.prototype={constructor:Zt,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Xt():+n)+(null==e?0:+e),this._next||Gt===this||(Gt?Gt._next=this:Ht=this,Gt=this),this._call=t,this._time=n,re()},stop:function(){this._call&&(this._call=null,this._time=1/0,re())}};var ae=Qt("start","end","cancel","interrupt"),oe=[];function se(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var l,A,u,h;if(1!==n.state)return s();for(l in i)if((h=i[l]).name===n.name){if(3===h.state)return ie(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+l<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[l])}if(ie((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(c))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(u=n.tween.length),l=0,A=-1;l<u;++l)(h=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++A]=h);r.length=A+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=te((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:ae,tween:oe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function ce(t,e){var n=Ae(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function le(t,e){var n=Ae(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Ae(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function ue(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var he,fe=180/Math.PI,de={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function pe(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*fe,skewX:Math.atan(c)*fe,scaleX:o,scaleY:s}}function ge(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],c=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var c=o.push("translate(",null,e,null,n);s.push({i:c-4,x:ue(t,i)},{i:c-2,x:ue(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,c),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:ue(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:ue(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:ue(t,n)},{i:s-2,x:ue(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n<r;)s[(e=c[n]).i]=e.x(t);return s.join("")}}}var me=ge((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?de:pe(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),ye=ge((function(t){return null==t?de:(he||(he=document.createElementNS("http://www.w3.org/2000/svg","g")),he.setAttribute("transform",t),(t=he.transform.baseVal.consolidate())?pe((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):de)}),", ",")",")");function ve(t,e){var n,r;return function(){var i=le(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function be(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=le(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===e){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function we(t,e,n){var r=t._id;return t.each((function(){var t=le(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Ae(t,r).value[e]}}function _e(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ee(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Ce(){}var xe=1/.7,Be="\\s*([+-]?\\d+)\\s*",Te="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ke="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Se=/^#([0-9a-f]{3,8})$/,Ie=new RegExp("^rgb\\("+[Be,Be,Be]+"\\)$"),Ne=new RegExp("^rgb\\("+[ke,ke,ke]+"\\)$"),Me=new RegExp("^rgba\\("+[Be,Be,Be,Te]+"\\)$"),Fe=new RegExp("^rgba\\("+[ke,ke,ke,Te]+"\\)$"),De=new RegExp("^hsl\\("+[Te,ke,ke]+"\\)$"),Le=new RegExp("^hsla\\("+[Te,ke,ke,Te]+"\\)$"),Oe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Re(){return this.rgb().formatHex()}function Ue(){return this.rgb().formatRgb()}function Pe(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Se.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Qe(e):3===n?new Ke(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?He(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?He(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ie.exec(t))?new Ke(e[1],e[2],e[3],1):(e=Ne.exec(t))?new Ke(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Me.exec(t))?He(e[1],e[2],e[3],e[4]):(e=Fe.exec(t))?He(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=De.exec(t))?ze(e[1],e[2]/100,e[3]/100,1):(e=Le.exec(t))?ze(e[1],e[2]/100,e[3]/100,e[4]):Oe.hasOwnProperty(t)?Qe(Oe[t]):"transparent"===t?new Ke(NaN,NaN,NaN,0):null}function Qe(t){return new Ke(t>>16&255,t>>8&255,255&t,1)}function He(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ke(t,e,n,r)}function Ge(t){return t instanceof Ce||(t=Pe(t)),t?new Ke((t=t.rgb()).r,t.g,t.b,t.opacity):new Ke}function je(t,e,n,r){return 1===arguments.length?Ge(t):new Ke(t,e,n,null==r?1:r)}function Ke(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function $e(){return"#"+Ve(this.r)+Ve(this.g)+Ve(this.b)}function Ye(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Ve(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ze(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new qe(t,e,n,r)}function We(t){if(t instanceof qe)return new qe(t.h,t.s,t.l,t.opacity);if(t instanceof Ce||(t=Pe(t)),!t)return new qe;if(t instanceof qe)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new qe(o,s,c,t.opacity)}function qe(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Xe(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}_e(Ce,Pe,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Re,formatHex:Re,formatHsl:function(){return We(this).formatHsl()},formatRgb:Ue,toString:Ue}),_e(Ke,je,Ee(Ce,{brighter:function(t){return t=null==t?xe:Math.pow(xe,t),new Ke(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ke(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$e,formatHex:$e,formatRgb:Ye,toString:Ye})),_e(qe,(function(t,e,n,r){return 1===arguments.length?We(t):new qe(t,e,n,null==r?1:r)}),Ee(Ce,{brighter:function(t){return t=null==t?xe:Math.pow(xe,t),new qe(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new qe(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Ke(Xe(t>=240?t-240:t+120,i,r),Xe(t,i,r),Xe(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Je=t=>()=>t;function Ze(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Je(isNaN(t)?e:t)}const tn=function t(e){var n=function(t){return 1==(t=+t)?Ze:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Je(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=je(t)).r,(e=je(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=Ze(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);var en=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nn=new RegExp(en.source,"g");function rn(t,e){var n,r,i,a=en.lastIndex=nn.lastIndex=0,o=-1,s=[],c=[];for(t+="",e+="";(n=en.exec(t))&&(r=nn.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:ue(n,r)})),a=nn.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)s[(n=c[r]).i]=n.x(t);return s.join("")})}function an(t,e){var n;return("number"==typeof e?ue:e instanceof Pe?tn:(n=Pe(e))?(e=n,tn):rn)(t,e)}function on(t){return function(){this.removeAttribute(t)}}function sn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function cn(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function ln(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function An(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttribute(t))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttribute(t)}}function un(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttributeNS(t.space,t.local)}}function hn(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function fn(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function dn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&fn(t,i)),n}return i._value=e,i}function pn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&hn(t,i)),n}return i._value=e,i}function gn(t,e){return function(){ce(this,t).delay=+e.apply(this,arguments)}}function mn(t,e){return e=+e,function(){ce(this,t).delay=e}}function yn(t,e){return function(){le(this,t).duration=+e.apply(this,arguments)}}function vn(t,e){return e=+e,function(){le(this,t).duration=e}}function bn(t,e){if("function"!=typeof e)throw new Error;return function(){le(this,t).ease=e}}function wn(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?ce:le;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var _n=Ft.prototype.constructor;function En(t){return function(){this.style.removeProperty(t)}}function Cn(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function xn(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Cn(t,a,n)),r}return a._value=e,a}function Bn(t){return function(e){this.textContent=t.call(this,e)}}function Tn(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Bn(r)),e}return r._value=t,r}var kn=0;function Sn(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function In(){return++kn}var Nn=Ft.prototype;Sn.prototype=function(t){return Ft().transition(t)}.prototype={constructor:Sn,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=b(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s,c,l=r[o],A=l.length,u=a[o]=new Array(A),h=0;h<A;++h)(s=l[h])&&(c=t.call(s,s.__data__,h,l))&&("__data__"in s&&(c.__data__=s.__data__),u[h]=c,se(u[h],e,n,h,u,Ae(s,n)));return new Sn(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=E(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c,l=r[s],A=l.length,u=0;u<A;++u)if(c=l[u]){for(var h,f=t.call(c,c.__data__,u,l),d=Ae(c,n),p=0,g=f.length;p<g;++p)(h=f[p])&&se(h,e,n,p,f,d);a.push(f),o.push(c)}return new Sn(a,o,e,n)},selectChild:Nn.selectChild,selectChildren:Nn.selectChildren,filter:function(t){"function"!=typeof t&&(t=C(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new Sn(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var c,l=e[s],A=n[s],u=l.length,h=o[s]=new Array(u),f=0;f<u;++f)(c=l[f]||A[f])&&(h[f]=c);for(;s<r;++s)o[s]=e[s];return new Sn(o,this._parents,this._name,this._id)},selection:function(){return new _n(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=In(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)if(o=s[l]){var A=Ae(o,e);se(o,t,n,l,s,{time:A.time+A.delay+A.duration,delay:0,duration:A.duration,ease:A.ease})}return new Sn(r,this._parents,t,n)},call:Nn.call,nodes:Nn.nodes,node:Nn.node,size:Nn.size,empty:Nn.empty,each:Nn.each,on:function(t,e){var n=this._id;return arguments.length<2?Ae(this.node(),n).on.on(t):this.each(wn(n,t,e))},attr:function(t,e){var n=Q(t),r="transform"===n?ye:an;return this.attrTween(t,"function"==typeof e?(n.local?un:An)(n,r,we(this,"attr."+t,e)):null==e?(n.local?sn:on)(n):(n.local?ln:cn)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Q(t);return this.tween(n,(r.local?dn:pn)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?me:an;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=X(this,t),o=(this.style.removeProperty(t),X(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,En(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=X(this,t),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=X(this,t)),o===c?null:o===r&&c===i?a:(i=c,a=e(r=o,s))}}(t,r,we(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e,s="end."+o;return function(){var c=le(this,t),l=c.on,A=null==c.value[o]?a||(a=En(e)):void 0;l===n&&i===A||(r=(n=l).copy()).on(s,i=A),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,a=n+"";return function(){var o=X(this,t);return o===a?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,xn(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(we(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Tn(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Ae(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?ve:be)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?gn:mn)(e,t)):Ae(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?yn:vn)(e,t)):Ae(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(bn(e,t)):Ae(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;le(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},c={value:function(){0==--i&&a()}};n.each((function(){var n=le(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),n.on=e})),0===i&&a()}))},[Symbol.iterator]:Nn[Symbol.iterator]};var Mn={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Fn(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Dn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ln(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function On(){}Ft.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},Ft.prototype.transition=function(t){var e,n;t instanceof Sn?(e=t._id,t=t._name):(e=In(),(n=Mn).time=Xt(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)(o=s[l])&&se(o,t,e,l,s,n||Fn(o,e));return new Sn(r,this._parents,t,e)};var Rn=1/.7,Un="\\s*([+-]?\\d+)\\s*",Pn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hn=/^#([0-9a-f]{3,8})$/,Gn=new RegExp("^rgb\\("+[Un,Un,Un]+"\\)$"),jn=new RegExp("^rgb\\("+[Qn,Qn,Qn]+"\\)$"),Kn=new RegExp("^rgba\\("+[Un,Un,Un,Pn]+"\\)$"),$n=new RegExp("^rgba\\("+[Qn,Qn,Qn,Pn]+"\\)$"),Yn=new RegExp("^hsl\\("+[Pn,Qn,Qn]+"\\)$"),Vn=new RegExp("^hsla\\("+[Pn,Qn,Qn,Pn]+"\\)$"),zn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Wn(){return this.rgb().formatHex()}function qn(){return this.rgb().formatRgb()}function Xn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Hn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Jn(e):3===n?new nr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Zn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Zn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Gn.exec(t))?new nr(e[1],e[2],e[3],1):(e=jn.exec(t))?new nr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Kn.exec(t))?Zn(e[1],e[2],e[3],e[4]):(e=$n.exec(t))?Zn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Yn.exec(t))?or(e[1],e[2]/100,e[3]/100,1):(e=Vn.exec(t))?or(e[1],e[2]/100,e[3]/100,e[4]):zn.hasOwnProperty(t)?Jn(zn[t]):"transparent"===t?new nr(NaN,NaN,NaN,0):null}function Jn(t){return new nr(t>>16&255,t>>8&255,255&t,1)}function Zn(t,e,n,r){return r<=0&&(t=e=n=NaN),new nr(t,e,n,r)}function tr(t){return t instanceof On||(t=Xn(t)),t?new nr((t=t.rgb()).r,t.g,t.b,t.opacity):new nr}function er(t,e,n,r){return 1===arguments.length?tr(t):new nr(t,e,n,null==r?1:r)}function nr(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function rr(){return"#"+ar(this.r)+ar(this.g)+ar(this.b)}function ir(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ar(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function or(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new cr(t,e,n,r)}function sr(t){if(t instanceof cr)return new cr(t.h,t.s,t.l,t.opacity);if(t instanceof On||(t=Xn(t)),!t)return new cr;if(t instanceof cr)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new cr(o,s,c,t.opacity)}function cr(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function lr(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Dn(On,Xn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Wn,formatHex:Wn,formatHsl:function(){return sr(this).formatHsl()},formatRgb:qn,toString:qn}),Dn(nr,er,Ln(On,{brighter:function(t){return t=null==t?Rn:Math.pow(Rn,t),new nr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new nr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rr,formatHex:rr,formatRgb:ir,toString:ir})),Dn(cr,(function(t,e,n,r){return 1===arguments.length?sr(t):new cr(t,e,n,null==r?1:r)}),Ln(On,{brighter:function(t){return t=null==t?Rn:Math.pow(Rn,t),new cr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new cr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new nr(lr(t>=240?t-240:t+120,i,r),lr(t,i,r),lr(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Ar=Math.PI/180,ur=180/Math.PI,hr=6/29*3*(6/29);function fr(t){if(t instanceof dr)return new dr(t.l,t.a,t.b,t.opacity);if(t instanceof wr)return _r(t);t instanceof nr||(t=tr(t));var e,n,r=yr(t.r),i=yr(t.g),a=yr(t.b),o=pr((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?e=n=o:(e=pr((.4360747*r+.3850649*i+.1430804*a)/.96422),n=pr((.0139322*r+.0971045*i+.7141733*a)/.82521)),new dr(116*o-16,500*(e-o),200*(o-n),t.opacity)}function dr(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function pr(t){return t>.008856451679035631?Math.pow(t,1/3):t/hr+4/29}function gr(t){return t>6/29?t*t*t:hr*(t-4/29)}function mr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function yr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function vr(t){if(t instanceof wr)return new wr(t.h,t.c,t.l,t.opacity);if(t instanceof dr||(t=fr(t)),0===t.a&&0===t.b)return new wr(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*ur;return new wr(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function br(t,e,n,r){return 1===arguments.length?vr(t):new wr(t,e,n,null==r?1:r)}function wr(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function _r(t){if(isNaN(t.h))return new dr(t.l,0,0,t.opacity);var e=t.h*Ar;return new dr(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Dn(dr,(function(t,e,n,r){return 1===arguments.length?fr(t):new dr(t,e,n,null==r?1:r)}),Ln(On,{brighter:function(t){return new dr(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new dr(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new nr(mr(3.1338561*(e=.96422*gr(e))-1.6168667*(t=1*gr(t))-.4906146*(n=.82521*gr(n))),mr(-.9787684*e+1.9161415*t+.033454*n),mr(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Dn(wr,br,Ln(On,{brighter:function(t){return new wr(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new wr(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return _r(this).rgb()}}));const Er=t=>()=>t;function Cr(t,e){return function(n){return t+n*e}}function xr(t,e){var n=e-t;return n?Cr(t,n):Er(isNaN(t)?e:t)}const Br=function(t){return function(e,n){var r=t((e=br(e)).h,(n=br(n)).h),i=xr(e.c,n.c),a=xr(e.l,n.l),o=xr(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}((function(t,e){var n=e-t;return n?Cr(t,n>180||n<-180?n-360*Math.round(n/360):n):Er(isNaN(t)?e:t)}));var Tr=Math.sqrt(50),kr=Math.sqrt(10),Sr=Math.sqrt(2);function Ir(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=Tr?10:a>=kr?5:a>=Sr?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Tr?10:a>=kr?5:a>=Sr?2:1)}function Nr(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Tr?i*=10:a>=kr?i*=5:a>=Sr&&(i*=2),e<t?-i:i}function Mr(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Fr(t){let e=t,n=t,r=t;function i(t,e,i=0,a=t.length){if(i<a){if(0!==n(e,e))return a;do{const n=i+a>>>1;r(t[n],e)<0?i=n+1:a=n}while(i<a)}return i}return 2!==t.length&&(e=(e,n)=>t(e)-n,n=Mr,r=(e,n)=>Mr(t(e),n)),{left:i,center:function(t,n,r=0,a=t.length){const o=i(t,n,r,a-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,i=0,a=t.length){if(i<a){if(0!==n(e,e))return a;do{const n=i+a>>>1;r(t[n],e)<=0?i=n+1:a=n}while(i<a)}return i}}}const Dr=Fr(Mr).right,Lr=(Fr((function(t){return null===t?NaN:+t})).center,Dr);function Or(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Rr(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Ur(){}var Pr=1.4285714285714286,Qr="\\s*([+-]?\\d+)\\s*",Hr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jr=/^#([0-9a-f]{3,8})$/,Kr=new RegExp("^rgb\\("+[Qr,Qr,Qr]+"\\)$"),$r=new RegExp("^rgb\\("+[Gr,Gr,Gr]+"\\)$"),Yr=new RegExp("^rgba\\("+[Qr,Qr,Qr,Hr]+"\\)$"),Vr=new RegExp("^rgba\\("+[Gr,Gr,Gr,Hr]+"\\)$"),zr=new RegExp("^hsl\\("+[Hr,Gr,Gr]+"\\)$"),Wr=new RegExp("^hsla\\("+[Hr,Gr,Gr,Hr]+"\\)$"),qr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Xr(){return this.rgb().formatHex()}function Jr(){return this.rgb().formatRgb()}function Zr(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=jr.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ti(e):3===n?new ii(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ei(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ei(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Kr.exec(t))?new ii(e[1],e[2],e[3],1):(e=$r.exec(t))?new ii(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Yr.exec(t))?ei(e[1],e[2],e[3],e[4]):(e=Vr.exec(t))?ei(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=zr.exec(t))?ci(e[1],e[2]/100,e[3]/100,1):(e=Wr.exec(t))?ci(e[1],e[2]/100,e[3]/100,e[4]):qr.hasOwnProperty(t)?ti(qr[t]):"transparent"===t?new ii(NaN,NaN,NaN,0):null}function ti(t){return new ii(t>>16&255,t>>8&255,255&t,1)}function ei(t,e,n,r){return r<=0&&(t=e=n=NaN),new ii(t,e,n,r)}function ni(t){return t instanceof Ur||(t=Zr(t)),t?new ii((t=t.rgb()).r,t.g,t.b,t.opacity):new ii}function ri(t,e,n,r){return 1===arguments.length?ni(t):new ii(t,e,n,null==r?1:r)}function ii(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function ai(){return"#"+si(this.r)+si(this.g)+si(this.b)}function oi(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function si(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ci(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ai(t,e,n,r)}function li(t){if(t instanceof Ai)return new Ai(t.h,t.s,t.l,t.opacity);if(t instanceof Ur||(t=Zr(t)),!t)return new Ai;if(t instanceof Ai)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Ai(o,s,c,t.opacity)}function Ai(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ui(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Or(Ur,Zr,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Xr,formatHex:Xr,formatHsl:function(){return li(this).formatHsl()},formatRgb:Jr,toString:Jr}),Or(ii,ri,Rr(Ur,{brighter:function(t){return t=null==t?Pr:Math.pow(Pr,t),new ii(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ii(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ai,formatHex:ai,formatRgb:oi,toString:oi})),Or(Ai,(function(t,e,n,r){return 1===arguments.length?li(t):new Ai(t,e,n,null==r?1:r)}),Rr(Ur,{brighter:function(t){return t=null==t?Pr:Math.pow(Pr,t),new Ai(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ai(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ii(ui(t>=240?t-240:t+120,i,r),ui(t,i,r),ui(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const hi=t=>()=>t;function fi(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):hi(isNaN(t)?e:t)}const di=function t(e){var n=function(t){return 1==(t=+t)?fi:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):hi(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=ri(t)).r,(e=ri(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=fi(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function pi(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=Ei(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function gi(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function mi(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function yi(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Ei(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var vi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bi=new RegExp(vi.source,"g");function wi(t,e){var n,r,i,a=vi.lastIndex=bi.lastIndex=0,o=-1,s=[],c=[];for(t+="",e+="";(n=vi.exec(t))&&(r=bi.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:mi(n,r)})),a=bi.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)s[(n=c[r]).i]=n.x(t);return s.join("")})}function _i(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function Ei(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?hi(e):("number"===i?mi:"string"===i?(n=Zr(e))?(e=n,di):wi:e instanceof Zr?di:e instanceof Date?gi:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?pi:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?yi:mi:_i))(t,e)}function Ci(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function xi(t){return+t}var Bi=[0,1];function Ti(t){return t}function ki(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function Si(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=ki(i,r),a=n(o,a)):(r=ki(r,i),a=n(a,o)),function(t){return a(r(t))}}function Ii(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=ki(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=Lr(t,e,1,r)-1;return a[n](i[n](e))}}function Ni(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Mi(){return function(){var t,e,n,r,i,a,o=Bi,s=Bi,c=Ei,l=Ti;function A(){var t,e,n,c=Math.min(o.length,s.length);return l!==Ti&&(t=o[0],e=o[c-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?Ii:Si,i=a=null,u}function u(e){return null==e||isNaN(e=+e)?n:(i||(i=r(o.map(t),s,c)))(t(l(e)))}return u.invert=function(n){return l(e((a||(a=r(s,o.map(t),mi)))(n)))},u.domain=function(t){return arguments.length?(o=Array.from(t,xi),A()):o.slice()},u.range=function(t){return arguments.length?(s=Array.from(t),A()):s.slice()},u.rangeRound=function(t){return s=Array.from(t),c=Ci,A()},u.clamp=function(t){return arguments.length?(l=!!t||Ti,A()):l!==Ti},u.interpolate=function(t){return arguments.length?(c=t,A()):c},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,r){return t=n,e=r,A()}}()(Ti,Ti)}function Fi(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Di,Li=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Oi(t){if(!(e=Li.exec(t)))throw new Error("invalid format: "+t);var e;return new Ri({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Ri(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ui(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Pi(t){return(t=Ui(Math.abs(t)))?t[1]:NaN}function Qi(t,e){var n=Ui(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Oi.prototype=Ri.prototype,Ri.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Hi={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Qi(100*t,e),r:Qi,s:function(t,e){var n=Ui(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Di=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Ui(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Gi(t){return t}var ji,Ki,$i,Yi=Array.prototype.map,Vi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zi(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=Ir(t,e,n))||!isFinite(o))return[];if(o>0){let n=Math.round(t/o),r=Math.round(e/o);for(n*o<t&&++n,r*o>e&&--r,a=new Array(i=r-n+1);++s<i;)a[s]=(n+s)*o}else{o=-o;let n=Math.round(t*o),r=Math.round(e*o);for(n/o<t&&++n,r/o>e&&--r,a=new Array(i=r-n+1);++s<i;)a[s]=(n+s)/o}return r&&a.reverse(),a}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var i,a=Nr(t,e,n);switch((r=Oi(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Pi(e)/3)))-Pi(Math.abs(t)))}(a,o))||(r.precision=i),$i(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Pi(e)-Pi(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Pi(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return Ki(r)}(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,a=e(),o=0,s=a.length-1,c=a[o],l=a[s],A=10;for(l<c&&(i=c,c=l,l=i,i=o,o=s,s=i);A-- >0;){if((i=Ir(c,l,n))===r)return a[o]=c,a[s]=l,e(a);if(i>0)c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}ji=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Gi:(e=Yi.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Gi:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Yi.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"":t.minus+"",A=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=Oi(t)).fill,n=t.align,u=t.sign,h=t.symbol,f=t.zero,d=t.width,p=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(p=!0,y="g"):Hi[y]||(void 0===g&&(g=12),m=!0,y="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var v="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",b="$"===h?a:/[%p]/.test(y)?c:"",w=Hi[y],_=/[defgprs%]/.test(y);function E(t){var i,a,c,h=v,E=b;if("c"===y)E=w(t)+E,t="";else{var C=(t=+t)<0||1/t<0;if(t=isNaN(t)?A:w(Math.abs(t),g),m&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),C&&0==+t&&"+"!==u&&(C=!1),h=(C?"("===u?u:l:"-"===u||"("===u?"":u)+h,E=("s"===y?Vi[8+Di/3]:"")+E+(C&&"("===u?")":""),_)for(i=-1,a=t.length;++i<a;)if(48>(c=t.charCodeAt(i))||c>57){E=(46===c?o+t.slice(i+1):t.slice(i))+E,t=t.slice(0,i);break}}p&&!f&&(t=r(t,1/0));var x=h.length+t.length+E.length,B=x<d?new Array(d-x+1).join(e):"";switch(p&&f&&(t=r(B+t,B.length?d-E.length:1/0),B=""),n){case"<":t=h+t+E+B;break;case"=":t=h+B+t+E;break;case"^":t=B.slice(0,x=B.length>>1)+h+t+E+B.slice(x);break;default:t=B+h+t+E}return s(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),E.toString=function(){return t+""},E}return{format:u,formatPrefix:function(t,e){var n=u(((t=Oi(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Pi(e)/3))),i=Math.pow(10,-r),a=Vi[8+r/3];return function(t){return n(i*t)+a}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ki=ji.format,$i=ji.formatPrefix;class Wi extends Map{constructor(t,e=Xi){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(qi(this,t))}has(t){return super.has(qi(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function qi({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Xi(t){return null!==t&&"object"==typeof t?t.valueOf():t}const Ji=Symbol("implicit");const Zi=1e3,ta=6e4,ea=36e5,na=864e5,ra=6048e5,ia=31536e6;var aa=new Date,oa=new Date;function sa(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return sa((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return aa.setTime(+e),oa.setTime(+r),t(aa),t(oa),Math.floor(n(aa,oa))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var ca=sa((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));ca.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?sa((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):ca:null};const la=ca;const Aa=sa((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Zi)}),(function(t,e){return(e-t)/Zi}),(function(t){return t.getUTCSeconds()}));const ua=sa((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Zi)}),(function(t,e){t.setTime(+t+e*ta)}),(function(t,e){return(e-t)/ta}),(function(t){return t.getMinutes()}));const ha=sa((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Zi-t.getMinutes()*ta)}),(function(t,e){t.setTime(+t+e*ea)}),(function(t,e){return(e-t)/ea}),(function(t){return t.getHours()}));const fa=sa(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ta)/na,t=>t.getDate()-1);function da(t){return sa((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ta)/ra}))}var pa=da(0),ga=da(1),ma=(da(2),da(3),da(4));da(5),da(6);const ya=sa((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));var va=sa((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));va.every=function(t){return isFinite(t=Math.floor(t))&&t>0?sa((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const ba=va;sa((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*ta)}),(function(t,e){return(e-t)/ta}),(function(t){return t.getUTCMinutes()})),sa((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*ea)}),(function(t,e){return(e-t)/ea}),(function(t){return t.getUTCHours()}));const wa=sa((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/na}),(function(t){return t.getUTCDate()-1}));function _a(t){return sa((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/ra}))}var Ea=_a(0),Ca=_a(1),xa=(_a(2),_a(3),_a(4)),Ba=(_a(5),_a(6),sa((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),sa((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Ba.every=function(t){return isFinite(t=Math.floor(t))&&t>0?sa((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Ta=Ba;const[ka,Sa]=function(t,e,n,r,i,a){const o=[[Aa,1,Zi],[Aa,5,5e3],[Aa,15,15e3],[Aa,30,3e4],[a,1,ta],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,ea],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,na],[r,2,1728e5],[n,1,ra],[e,1,2592e6],[e,3,7776e6],[t,1,ia]];function s(e,n,r){const i=Math.abs(n-e)/r,a=Fr(([,,t])=>t).right(o,i);if(a===o.length)return t.every(Nr(e/ia,n/ia,r));if(0===a)return la.every(Math.max(Nr(e,n,r),1));const[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:s(t,e,n),a=i?i.range(t,+e+1):[];return r?a.reverse():a},s]}(ba,ya,pa,fa,ha,ua);function Ia(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Na(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ma(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Fa,Da,La={"-":"",_:" ",0:"0"},Oa=/^\s*\d+/,Ra=/^%/,Ua=/[\\^$*+?|[\]().{}]/g;function Pa(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function Qa(t){return t.replace(Ua,"\\$&")}function Ha(t){return new RegExp("^(?:"+t.map(Qa).join("|")+")","i")}function Ga(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function ja(t,e,n){var r=Oa.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ka(t,e,n){var r=Oa.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function $a(t,e,n){var r=Oa.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Ya(t,e,n){var r=Oa.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Va(t,e,n){var r=Oa.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function za(t,e,n){var r=Oa.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Wa(t,e,n){var r=Oa.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function qa(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Xa(t,e,n){var r=Oa.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Ja(t,e,n){var r=Oa.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Za(t,e,n){var r=Oa.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function to(t,e,n){var r=Oa.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function eo(t,e,n){var r=Oa.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function no(t,e,n){var r=Oa.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ro(t,e,n){var r=Oa.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function io(t,e,n){var r=Oa.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function ao(t,e,n){var r=Oa.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function oo(t,e,n){var r=Ra.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function so(t,e,n){var r=Oa.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function co(t,e,n){var r=Oa.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function lo(t,e){return Pa(t.getDate(),e,2)}function Ao(t,e){return Pa(t.getHours(),e,2)}function uo(t,e){return Pa(t.getHours()%12||12,e,2)}function ho(t,e){return Pa(1+fa.count(ba(t),t),e,3)}function fo(t,e){return Pa(t.getMilliseconds(),e,3)}function po(t,e){return fo(t,e)+"000"}function go(t,e){return Pa(t.getMonth()+1,e,2)}function mo(t,e){return Pa(t.getMinutes(),e,2)}function yo(t,e){return Pa(t.getSeconds(),e,2)}function vo(t){var e=t.getDay();return 0===e?7:e}function bo(t,e){return Pa(pa.count(ba(t)-1,t),e,2)}function wo(t){var e=t.getDay();return e>=4||0===e?ma(t):ma.ceil(t)}function _o(t,e){return t=wo(t),Pa(ma.count(ba(t),t)+(4===ba(t).getDay()),e,2)}function Eo(t){return t.getDay()}function Co(t,e){return Pa(ga.count(ba(t)-1,t),e,2)}function xo(t,e){return Pa(t.getFullYear()%100,e,2)}function Bo(t,e){return Pa((t=wo(t)).getFullYear()%100,e,2)}function To(t,e){return Pa(t.getFullYear()%1e4,e,4)}function ko(t,e){var n=t.getDay();return Pa((t=n>=4||0===n?ma(t):ma.ceil(t)).getFullYear()%1e4,e,4)}function So(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Pa(e/60|0,"0",2)+Pa(e%60,"0",2)}function Io(t,e){return Pa(t.getUTCDate(),e,2)}function No(t,e){return Pa(t.getUTCHours(),e,2)}function Mo(t,e){return Pa(t.getUTCHours()%12||12,e,2)}function Fo(t,e){return Pa(1+wa.count(Ta(t),t),e,3)}function Do(t,e){return Pa(t.getUTCMilliseconds(),e,3)}function Lo(t,e){return Do(t,e)+"000"}function Oo(t,e){return Pa(t.getUTCMonth()+1,e,2)}function Ro(t,e){return Pa(t.getUTCMinutes(),e,2)}function Uo(t,e){return Pa(t.getUTCSeconds(),e,2)}function Po(t){var e=t.getUTCDay();return 0===e?7:e}function Qo(t,e){return Pa(Ea.count(Ta(t)-1,t),e,2)}function Ho(t){var e=t.getUTCDay();return e>=4||0===e?xa(t):xa.ceil(t)}function Go(t,e){return t=Ho(t),Pa(xa.count(Ta(t),t)+(4===Ta(t).getUTCDay()),e,2)}function jo(t){return t.getUTCDay()}function Ko(t,e){return Pa(Ca.count(Ta(t)-1,t),e,2)}function $o(t,e){return Pa(t.getUTCFullYear()%100,e,2)}function Yo(t,e){return Pa((t=Ho(t)).getUTCFullYear()%100,e,2)}function Vo(t,e){return Pa(t.getUTCFullYear()%1e4,e,4)}function zo(t,e){var n=t.getUTCDay();return Pa((t=n>=4||0===n?xa(t):xa.ceil(t)).getUTCFullYear()%1e4,e,4)}function Wo(){return"+0000"}function qo(){return"%"}function Xo(t){return+t}function Jo(t){return Math.floor(+t/1e3)}function Zo(t){return new Date(t)}function ts(t){return t instanceof Date?+t:+new Date(+t)}function es(t,e,n,r,i,a,o,s,c,l){var A=Mi(),u=A.invert,h=A.domain,f=l(".%L"),d=l(":%S"),p=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y");function w(t){return(c(t)<t?f:s(t)<t?d:o(t)<t?p:a(t)<t?g:r(t)<t?i(t)<t?m:y:n(t)<t?v:b)(t)}return A.invert=function(t){return new Date(u(t))},A.domain=function(t){return arguments.length?h(Array.from(t,ts)):h().map(Zo)},A.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},A.tickFormat=function(t,e){return null==e?w:l(e)},A.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}(n,t)):A},A.copy=function(){return Ni(A,es(t,e,n,r,i,a,o,s,c,l))},A}function ns(){}function rs(t){return null==t?ns:function(){return this.querySelector(t)}}function is(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function as(){return[]}function os(t){return null==t?as:function(){return this.querySelectorAll(t)}}function ss(t){return function(){return this.matches(t)}}function cs(t){return function(e){return e.matches(t)}}Fa=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,l=Ha(i),A=Ga(i),u=Ha(a),h=Ga(a),f=Ha(o),d=Ga(o),p=Ha(s),g=Ga(s),m=Ha(c),y=Ga(c),v={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:lo,e:lo,f:po,g:Bo,G:ko,H:Ao,I:uo,j:ho,L:fo,m:go,M:mo,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Xo,s:Jo,S:yo,u:vo,U:bo,V:_o,w:Eo,W:Co,x:null,X:null,y:xo,Y:To,Z:So,"%":qo},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Io,e:Io,f:Lo,g:Yo,G:zo,H:No,I:Mo,j:Fo,L:Do,m:Oo,M:Ro,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Xo,s:Jo,S:Uo,u:Po,U:Qo,V:Go,w:jo,W:Ko,x:null,X:null,y:$o,Y:Vo,Z:Wo,"%":qo},w={a:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return C(t,e,n,r)},d:Za,e:Za,f:ao,g:Wa,G:za,H:eo,I:eo,j:to,L:io,m:Ja,M:no,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=A.get(r[0].toLowerCase()),n+r[0].length):-1},q:Xa,Q:so,s:co,S:ro,u:Ka,U:$a,V:Ya,w:ja,W:Va,x:function(t,e,r){return C(t,n,e,r)},X:function(t,e,n){return C(t,r,e,n)},y:Wa,Y:za,Z:qa,"%":oo};function _(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===t.charCodeAt(s)&&(o.push(t.slice(c,s)),null!=(i=La[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),c=s+1);return o.push(t.slice(c,s)),o.join("")}}function E(t,e){return function(n){var r,i,a=Ma(1900,void 0,1);if(C(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Na(Ma(a.y,0,1))).getUTCDay(),r=i>4||0===i?Ca.ceil(r):Ca(r),r=wa.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=Ia(Ma(a.y,0,1))).getDay(),r=i>4||0===i?ga.ceil(r):ga(r),r=fa.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Na(Ma(a.y,0,1)).getUTCDay():Ia(Ma(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Na(a)):Ia(a)}}function C(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o<s;){if(r>=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in La?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return v.x=_(n,v),v.X=_(r,v),v.c=_(e,v),b.x=_(n,b),b.X=_(r,b),b.c=_(e,b),{format:function(t){var e=_(t+="",v);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Da=Fa.format,Fa.parse,Fa.utcFormat,Fa.utcParse;var ls=Array.prototype.find;function As(){return this.firstElementChild}var us=Array.prototype.filter;function hs(){return Array.from(this.children)}function fs(t){return new Array(t.length)}function ds(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ps(t){return function(){return t}}function gs(t,e,n,r,i,a){for(var o,s=0,c=e.length,l=a.length;s<l;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new ds(t,a[s]);for(;s<c;++s)(o=e[s])&&(i[s]=o)}function ms(t,e,n,r,i,a,o){var s,c,l,A=new Map,u=e.length,h=a.length,f=new Array(u);for(s=0;s<u;++s)(c=e[s])&&(f[s]=l=o.call(c,c.__data__,s,e)+"",A.has(l)?i[s]=c:A.set(l,c));for(s=0;s<h;++s)l=o.call(t,a[s],s,a)+"",(c=A.get(l))?(r[s]=c,c.__data__=a[s],A.delete(l)):n[s]=new ds(t,a[s]);for(s=0;s<u;++s)(c=e[s])&&A.get(f[s])===c&&(i[s]=c)}function ys(t){return t.__data__}function vs(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function bs(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}ds.prototype={constructor:ds,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var ws="http://www.w3.org/1999/xhtml";const _s={svg:"http://www.w3.org/2000/svg",xhtml:ws,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Es(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),_s.hasOwnProperty(e)?{space:_s[e],local:t}:t}function Cs(t){return function(){this.removeAttribute(t)}}function xs(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Bs(t,e){return function(){this.setAttribute(t,e)}}function Ts(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ks(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Ss(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Is(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ns(t){return function(){this.style.removeProperty(t)}}function Ms(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Fs(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ds(t,e){return t.style.getPropertyValue(e)||Is(t).getComputedStyle(t,null).getPropertyValue(e)}function Ls(t){return function(){delete this[t]}}function Os(t,e){return function(){this[t]=e}}function Rs(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Us(t){return t.trim().split(/^|\s+/)}function Ps(t){return t.classList||new Qs(t)}function Qs(t){this._node=t,this._names=Us(t.getAttribute("class")||"")}function Hs(t,e){for(var n=Ps(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Gs(t,e){for(var n=Ps(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function js(t){return function(){Hs(this,t)}}function Ks(t){return function(){Gs(this,t)}}function $s(t,e){return function(){(e.apply(this,arguments)?Hs:Gs)(this,t)}}function Ys(){this.textContent=""}function Vs(t){return function(){this.textContent=t}}function zs(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Ws(){this.innerHTML=""}function qs(t){return function(){this.innerHTML=t}}function Xs(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Js(){this.nextSibling&&this.parentNode.appendChild(this)}function Zs(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function tc(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ws&&e.documentElement.namespaceURI===ws?e.createElement(t):e.createElementNS(n,t)}}function ec(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function nc(t){var e=Es(t);return(e.local?ec:tc)(e)}function rc(){return null}function ic(){var t=this.parentNode;t&&t.removeChild(this)}function ac(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function oc(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function sc(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function cc(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function lc(t,e,n){return function(){var r,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function Ac(t,e,n){var r=Is(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function uc(t,e){return function(){return Ac(this,t,e)}}function hc(t,e){return function(){return Ac(this,t,e.apply(this,arguments))}}Qs.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var fc=[null];function dc(t,e){this._groups=t,this._parents=e}function pc(){return new dc([[document.documentElement]],fc)}dc.prototype=pc.prototype={constructor:dc,select:function(t){"function"!=typeof t&&(t=rs(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],c=s.length,l=r[i]=new Array(c),A=0;A<c;++A)(a=s[A])&&(o=t.call(a,a.__data__,A,s))&&("__data__"in a&&(o.__data__=a.__data__),l[A]=o);return new dc(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return is(t.apply(this,arguments))}}(t):os(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],c=s.length,l=0;l<c;++l)(o=s[l])&&(r.push(t.call(o,o.__data__,l,s)),i.push(o));return new dc(r,i)},selectChild:function(t){return this.select(null==t?As:function(t){return function(){return ls.call(this.children,t)}}("function"==typeof t?t:cs(t)))},selectChildren:function(t){return this.selectAll(null==t?hs:function(t){return function(){return us.call(this.children,t)}}("function"==typeof t?t:cs(t)))},filter:function(t){"function"!=typeof t&&(t=ss(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new dc(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,ys);var n=e?ms:gs,r=this._parents,i=this._groups;"function"!=typeof t&&(t=ps(t));for(var a=i.length,o=new Array(a),s=new Array(a),c=new Array(a),l=0;l<a;++l){var A=r[l],u=i[l],h=u.length,f=vs(t.call(A,A&&A.__data__,l,r)),d=f.length,p=s[l]=new Array(d),g=o[l]=new Array(d),m=c[l]=new Array(h);n(A,u,p,g,m,f,e);for(var y,v,b=0,w=0;b<d;++b)if(y=p[b]){for(b>=w&&(w=b+1);!(v=g[w])&&++w<d;);y._next=v||null}}return(o=new dc(o,r))._enter=s,o._exit=c,o},enter:function(){return new dc(this._enter||this._groups.map(fs),this._parents)},exit:function(){return new dc(this._exit||this._groups.map(fs),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),c=0;c<o;++c)for(var l,A=n[c],u=r[c],h=A.length,f=s[c]=new Array(h),d=0;d<h;++d)(l=A[d]||u[d])&&(f[d]=l);for(;c<i;++c)s[c]=n[c];return new dc(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=bs);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],c=s.length,l=i[a]=new Array(c),A=0;A<c;++A)(o=s[A])&&(l[A]=o);l.sort(e)}return new dc(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=Es(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?xs:Cs:"function"==typeof e?n.local?Ss:ks:n.local?Ts:Bs)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Ns:"function"==typeof e?Fs:Ms)(t,e,null==n?"":n)):Ds(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ls:"function"==typeof e?Rs:Os)(t,e)):this.node()[t]},classed:function(t,e){var n=Us(t+"");if(arguments.length<2){for(var r=Ps(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?$s:e?js:Ks)(n,e))},text:function(t){return arguments.length?this.each(null==t?Ys:("function"==typeof t?zs:Vs)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Ws:("function"==typeof t?Xs:qs)(t)):this.node().innerHTML},raise:function(){return this.each(Js)},lower:function(){return this.each(Zs)},append:function(t){var e="function"==typeof t?t:nc(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:nc(t),r=null==e?rc:"function"==typeof e?e:rs(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(ic)},clone:function(t){return this.select(t?oc:ac)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=sc(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?lc:cc,r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var c,l=0,A=s.length;l<A;++l)for(r=0,c=s[l];r<o;++r)if((i=a[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?hc:uc)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)(r=i[a])&&(yield r)}};const gc=pc;function mc(t){return"string"==typeof t?new dc([[document.querySelector(t)]],[document.documentElement]):new dc([[t]],fc)}function yc(t){return"string"==typeof t?new dc([document.querySelectorAll(t)],[document.documentElement]):new dc([is(t)],fc)}const vc=Math.PI,bc=2*vc,wc=1e-6,_c=bc-wc;function Ec(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Cc(){return new Ec}Ec.prototype=Cc.prototype={constructor:Ec,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-t,c=r-e,l=a-t,A=o-e,u=l*l+A*A;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>wc)if(Math.abs(A*s-c*l)>wc&&i){var h=n-a,f=r-o,d=s*s+c*c,p=h*h+f*f,g=Math.sqrt(d),m=Math.sqrt(u),y=i*Math.tan((vc-Math.acos((d+u-p)/(2*g*m)))/2),v=y/m,b=y/g;Math.abs(v-1)>wc&&(this._+="L"+(t+v*l)+","+(e+v*A)),this._+="A"+i+","+i+",0,0,"+ +(A*h>l*f)+","+(this._x1=t+b*s)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+o,l=e+s,A=1^a,u=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>wc||Math.abs(this._y1-l)>wc)&&(this._+="L"+c+","+l),n&&(u<0&&(u=u%bc+bc),u>_c?this._+="A"+n+","+n+",0,1,"+A+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+A+","+(this._x1=c)+","+(this._y1=l):u>wc&&(this._+="A"+n+","+n+",0,"+ +(u>=vc)+","+A+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const xc=Cc;function Bc(t){return function(){return t}}var Tc=Math.abs,kc=Math.atan2,Sc=Math.cos,Ic=Math.max,Nc=Math.min,Mc=Math.sin,Fc=Math.sqrt,Dc=1e-12,Lc=Math.PI,Oc=Lc/2,Rc=2*Lc;function Uc(t){return t>1?0:t<-1?Lc:Math.acos(t)}function Pc(t){return t>=1?Oc:t<=-1?-Oc:Math.asin(t)}function Qc(t){return t.innerRadius}function Hc(t){return t.outerRadius}function Gc(t){return t.startAngle}function jc(t){return t.endAngle}function Kc(t){return t&&t.padAngle}function $c(t,e,n,r,i,a,o,s){var c=n-t,l=r-e,A=o-i,u=s-a,h=u*c-A*l;if(!(h*h<Dc))return[t+(h=(A*(e-a)-u*(t-i))/h)*c,e+h*l]}function Yc(t,e,n,r,i,a,o){var s=t-n,c=e-r,l=(o?a:-a)/Fc(s*s+c*c),A=l*c,u=-l*s,h=t+A,f=e+u,d=n+A,p=r+u,g=(h+d)/2,m=(f+p)/2,y=d-h,v=p-f,b=y*y+v*v,w=i-a,_=h*p-d*f,E=(v<0?-1:1)*Fc(Ic(0,w*w*b-_*_)),C=(_*v-y*E)/b,x=(-_*y-v*E)/b,B=(_*v+y*E)/b,T=(-_*y+v*E)/b,k=C-g,S=x-m,I=B-g,N=T-m;return k*k+S*S>I*I+N*N&&(C=B,x=T),{cx:C,cy:x,x01:-A,y01:-u,x11:C*(i/w-1),y11:x*(i/w-1)}}function Vc(){var t=Qc,e=Hc,n=Bc(0),r=null,i=Gc,a=jc,o=Kc,s=null;function c(){var c,l,A=+t.apply(this,arguments),u=+e.apply(this,arguments),h=i.apply(this,arguments)-Oc,f=a.apply(this,arguments)-Oc,d=Tc(f-h),p=f>h;if(s||(s=c=xc()),u<A&&(l=u,u=A,A=l),u>Dc)if(d>Rc-Dc)s.moveTo(u*Sc(h),u*Mc(h)),s.arc(0,0,u,h,f,!p),A>Dc&&(s.moveTo(A*Sc(f),A*Mc(f)),s.arc(0,0,A,f,h,p));else{var g,m,y=h,v=f,b=h,w=f,_=d,E=d,C=o.apply(this,arguments)/2,x=C>Dc&&(r?+r.apply(this,arguments):Fc(A*A+u*u)),B=Nc(Tc(u-A)/2,+n.apply(this,arguments)),T=B,k=B;if(x>Dc){var S=Pc(x/A*Mc(C)),I=Pc(x/u*Mc(C));(_-=2*S)>Dc?(b+=S*=p?1:-1,w-=S):(_=0,b=w=(h+f)/2),(E-=2*I)>Dc?(y+=I*=p?1:-1,v-=I):(E=0,y=v=(h+f)/2)}var N=u*Sc(y),M=u*Mc(y),F=A*Sc(w),D=A*Mc(w);if(B>Dc){var L,O=u*Sc(v),R=u*Mc(v),U=A*Sc(b),P=A*Mc(b);if(d<Lc&&(L=$c(N,M,U,P,O,R,F,D))){var Q=N-L[0],H=M-L[1],G=O-L[0],j=R-L[1],K=1/Mc(Uc((Q*G+H*j)/(Fc(Q*Q+H*H)*Fc(G*G+j*j)))/2),$=Fc(L[0]*L[0]+L[1]*L[1]);T=Nc(B,(A-$)/(K-1)),k=Nc(B,(u-$)/(K+1))}}E>Dc?k>Dc?(g=Yc(U,P,N,M,u,k,p),m=Yc(O,R,F,D,u,k,p),s.moveTo(g.cx+g.x01,g.cy+g.y01),k<B?s.arc(g.cx,g.cy,k,kc(g.y01,g.x01),kc(m.y01,m.x01),!p):(s.arc(g.cx,g.cy,k,kc(g.y01,g.x01),kc(g.y11,g.x11),!p),s.arc(0,0,u,kc(g.cy+g.y11,g.cx+g.x11),kc(m.cy+m.y11,m.cx+m.x11),!p),s.arc(m.cx,m.cy,k,kc(m.y11,m.x11),kc(m.y01,m.x01),!p))):(s.moveTo(N,M),s.arc(0,0,u,y,v,!p)):s.moveTo(N,M),A>Dc&&_>Dc?T>Dc?(g=Yc(F,D,O,R,A,-T,p),m=Yc(N,M,U,P,A,-T,p),s.lineTo(g.cx+g.x01,g.cy+g.y01),T<B?s.arc(g.cx,g.cy,T,kc(g.y01,g.x01),kc(m.y01,m.x01),!p):(s.arc(g.cx,g.cy,T,kc(g.y01,g.x01),kc(g.y11,g.x11),!p),s.arc(0,0,A,kc(g.cy+g.y11,g.cx+g.x11),kc(m.cy+m.y11,m.cx+m.x11),p),s.arc(m.cx,m.cy,T,kc(m.y11,m.x11),kc(m.y01,m.x01),!p))):s.arc(0,0,A,w,b,p):s.lineTo(F,D)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Lc/2;return[Sc(r)*n,Mc(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Bc(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Bc(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Bc(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Bc(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Bc(+t),c):i},c.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Bc(+t),c):a},c.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Bc(+t),c):o},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}function zc(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Wc(t){this._context=t}function qc(t){return new Wc(t)}function Xc(t){return t[0]}function Jc(t){return t[1]}function Zc(t,e){var n=Bc(!0),r=null,i=qc,a=null;function o(o){var s,c,l,A=(o=zc(o)).length,u=!1;for(null==r&&(a=i(l=xc())),s=0;s<=A;++s)!(s<A&&n(c=o[s],s,o))===u&&((u=!u)?a.lineStart():a.lineEnd()),u&&a.point(+t(c,s,o),+e(c,s,o));if(l)return a=null,l+""||null}return t="function"==typeof t?t:void 0===t?Xc:Bc(t),e="function"==typeof e?e:void 0===e?Jc:Bc(e),o.x=function(e){return arguments.length?(t="function"==typeof e?e:Bc(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:Bc(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:Bc(!!t),o):n},o.curve=function(t){return arguments.length?(i=t,null!=r&&(a=i(r)),o):i},o.context=function(t){return arguments.length?(null==t?r=a=null:a=i(r=t),o):r},o}function tl(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function el(t){return t}function nl(){}function rl(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function il(t){this._context=t}function al(t){return new il(t)}function ol(t){this._context=t}function sl(t){this._context=t}function cl(t){this._context=t}function ll(t){return t<0?-1:1}function Al(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(ll(a)+ll(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function ul(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function hl(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function fl(t){this._context=t}function dl(t){this._context=new pl(t)}function pl(t){this._context=t}function gl(t){this._context=t}function ml(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function yl(t,e){this._context=t,this._t=e}Wc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},il.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:rl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:rl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ol.prototype={areaStart:nl,areaEnd:nl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:rl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},sl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:rl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},cl.prototype={areaStart:nl,areaEnd:nl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},fl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:hl(this,this._t0,ul(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,hl(this,ul(this,n=Al(this,t,e)),n);break;default:hl(this,this._t0,n=Al(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(dl.prototype=Object.create(fl.prototype)).point=function(t,e){fl.prototype.point.call(this,e,t)},pl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},gl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=ml(t),i=ml(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},yl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var vl=new Date,bl=new Date;function wl(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return wl((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return vl.setTime(+e),bl.setTime(+r),t(vl),t(bl),Math.floor(n(vl,bl))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}const _l=6048e5;function El(t){return wl((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/_l}))}var Cl=El(0),xl=El(1),Bl=(El(2),El(3),El(4));El(5),El(6);const Tl=wl((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}));function kl(t){return wl((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/_l}))}var Sl=kl(0),Il=kl(1),Nl=(kl(2),kl(3),kl(4));kl(5),kl(6);const Ml=wl(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5,t=>t.getDate()-1);var Fl=wl((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Fl.every=function(t){return isFinite(t=Math.floor(t))&&t>0?wl((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Dl=Fl;var Ll=wl((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Ll.every=function(t){return isFinite(t=Math.floor(t))&&t>0?wl((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Ol=Ll;function Rl(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ul(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Pl(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Ql,Hl,Gl={"-":"",_:" ",0:"0"},jl=/^\s*\d+/,Kl=/^%/,$l=/[\\^$*+?|[\]().{}]/g;function Yl(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function Vl(t){return t.replace($l,"\\$&")}function zl(t){return new RegExp("^(?:"+t.map(Vl).join("|")+")","i")}function Wl(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function ql(t,e,n){var r=jl.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Xl(t,e,n){var r=jl.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Jl(t,e,n){var r=jl.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Zl(t,e,n){var r=jl.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function tA(t,e,n){var r=jl.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function eA(t,e,n){var r=jl.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function nA(t,e,n){var r=jl.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rA(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function iA(t,e,n){var r=jl.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function aA(t,e,n){var r=jl.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function oA(t,e,n){var r=jl.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function sA(t,e,n){var r=jl.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function cA(t,e,n){var r=jl.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function lA(t,e,n){var r=jl.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function AA(t,e,n){var r=jl.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function uA(t,e,n){var r=jl.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function hA(t,e,n){var r=jl.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function fA(t,e,n){var r=Kl.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function dA(t,e,n){var r=jl.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function pA(t,e,n){var r=jl.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function gA(t,e){return Yl(t.getDate(),e,2)}function mA(t,e){return Yl(t.getHours(),e,2)}function yA(t,e){return Yl(t.getHours()%12||12,e,2)}function vA(t,e){return Yl(1+Ml.count(Dl(t),t),e,3)}function bA(t,e){return Yl(t.getMilliseconds(),e,3)}function wA(t,e){return bA(t,e)+"000"}function _A(t,e){return Yl(t.getMonth()+1,e,2)}function EA(t,e){return Yl(t.getMinutes(),e,2)}function CA(t,e){return Yl(t.getSeconds(),e,2)}function xA(t){var e=t.getDay();return 0===e?7:e}function BA(t,e){return Yl(Sl.count(Dl(t)-1,t),e,2)}function TA(t){var e=t.getDay();return e>=4||0===e?Nl(t):Nl.ceil(t)}function kA(t,e){return t=TA(t),Yl(Nl.count(Dl(t),t)+(4===Dl(t).getDay()),e,2)}function SA(t){return t.getDay()}function IA(t,e){return Yl(Il.count(Dl(t)-1,t),e,2)}function NA(t,e){return Yl(t.getFullYear()%100,e,2)}function MA(t,e){return Yl((t=TA(t)).getFullYear()%100,e,2)}function FA(t,e){return Yl(t.getFullYear()%1e4,e,4)}function DA(t,e){var n=t.getDay();return Yl((t=n>=4||0===n?Nl(t):Nl.ceil(t)).getFullYear()%1e4,e,4)}function LA(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Yl(e/60|0,"0",2)+Yl(e%60,"0",2)}function OA(t,e){return Yl(t.getUTCDate(),e,2)}function RA(t,e){return Yl(t.getUTCHours(),e,2)}function UA(t,e){return Yl(t.getUTCHours()%12||12,e,2)}function PA(t,e){return Yl(1+Tl.count(Ol(t),t),e,3)}function QA(t,e){return Yl(t.getUTCMilliseconds(),e,3)}function HA(t,e){return QA(t,e)+"000"}function GA(t,e){return Yl(t.getUTCMonth()+1,e,2)}function jA(t,e){return Yl(t.getUTCMinutes(),e,2)}function KA(t,e){return Yl(t.getUTCSeconds(),e,2)}function $A(t){var e=t.getUTCDay();return 0===e?7:e}function YA(t,e){return Yl(Cl.count(Ol(t)-1,t),e,2)}function VA(t){var e=t.getUTCDay();return e>=4||0===e?Bl(t):Bl.ceil(t)}function zA(t,e){return t=VA(t),Yl(Bl.count(Ol(t),t)+(4===Ol(t).getUTCDay()),e,2)}function WA(t){return t.getUTCDay()}function qA(t,e){return Yl(xl.count(Ol(t)-1,t),e,2)}function XA(t,e){return Yl(t.getUTCFullYear()%100,e,2)}function JA(t,e){return Yl((t=VA(t)).getUTCFullYear()%100,e,2)}function ZA(t,e){return Yl(t.getUTCFullYear()%1e4,e,4)}function tu(t,e){var n=t.getUTCDay();return Yl((t=n>=4||0===n?Bl(t):Bl.ceil(t)).getUTCFullYear()%1e4,e,4)}function eu(){return"+0000"}function nu(){return"%"}function ru(t){return+t}function iu(t){return Math.floor(+t/1e3)}Ql=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,l=zl(i),A=Wl(i),u=zl(a),h=Wl(a),f=zl(o),d=Wl(o),p=zl(s),g=Wl(s),m=zl(c),y=Wl(c),v={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:gA,e:gA,f:wA,g:MA,G:DA,H:mA,I:yA,j:vA,L:bA,m:_A,M:EA,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ru,s:iu,S:CA,u:xA,U:BA,V:kA,w:SA,W:IA,x:null,X:null,y:NA,Y:FA,Z:LA,"%":nu},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:OA,e:OA,f:HA,g:JA,G:tu,H:RA,I:UA,j:PA,L:QA,m:GA,M:jA,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ru,s:iu,S:KA,u:$A,U:YA,V:zA,w:WA,W:qA,x:null,X:null,y:XA,Y:ZA,Z:eu,"%":nu},w={a:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return C(t,e,n,r)},d:oA,e:oA,f:hA,g:nA,G:eA,H:cA,I:cA,j:sA,L:uA,m:aA,M:lA,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=A.get(r[0].toLowerCase()),n+r[0].length):-1},q:iA,Q:dA,s:pA,S:AA,u:Xl,U:Jl,V:Zl,w:ql,W:tA,x:function(t,e,r){return C(t,n,e,r)},X:function(t,e,n){return C(t,r,e,n)},y:nA,Y:eA,Z:rA,"%":fA};function _(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===t.charCodeAt(s)&&(o.push(t.slice(c,s)),null!=(i=Gl[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),c=s+1);return o.push(t.slice(c,s)),o.join("")}}function E(t,e){return function(n){var r,i,a=Pl(1900,void 0,1);if(C(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Ul(Pl(a.y,0,1))).getUTCDay(),r=i>4||0===i?xl.ceil(r):xl(r),r=Tl.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=Rl(Pl(a.y,0,1))).getDay(),r=i>4||0===i?Il.ceil(r):Il(r),r=Ml.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Ul(Pl(a.y,0,1)).getUTCDay():Rl(Pl(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Ul(a)):Rl(a)}}function C(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o<s;){if(r>=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in Gl?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return v.x=_(n,v),v.X=_(r,v),v.c=_(e,v),b.x=_(n,b),b.X=_(r,b),b.c=_(e,b),{format:function(t){var e=_(t+="",v);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Hl=Ql.format,Ql.parse,Ql.utcFormat,Ql.utcParse;var au={value:()=>{}};function ou(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new su(r)}function su(t){this._=t}function cu(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function lu(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Au(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=au,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}su.prototype=ou.prototype={constructor:su,on:function(t,e){var n,r=this._,i=cu(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=Au(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Au(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=lu(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new su(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};const uu=ou;var hu,fu,du=0,pu=0,gu=0,mu=0,yu=0,vu=0,bu="object"==typeof performance&&performance.now?performance:Date,wu="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function _u(){return yu||(wu(Eu),yu=bu.now()+vu)}function Eu(){yu=0}function Cu(){this._call=this._time=this._next=null}function xu(t,e,n){var r=new Cu;return r.restart(t,e,n),r}function Bu(){yu=(mu=bu.now())+vu,du=pu=0;try{!function(){_u(),++du;for(var t,e=hu;e;)(t=yu-e._time)>=0&&e._call.call(void 0,t),e=e._next;--du}()}finally{du=0,function(){for(var t,e,n=hu,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:hu=e);fu=t,ku(r)}(),yu=0}}function Tu(){var t=bu.now(),e=t-mu;e>1e3&&(vu-=e,mu=t)}function ku(t){du||(pu&&(pu=clearTimeout(pu)),t-yu>24?(t<1/0&&(pu=setTimeout(Bu,t-bu.now()-vu)),gu&&(gu=clearInterval(gu))):(gu||(mu=bu.now(),gu=setInterval(Tu,1e3)),du=1,wu(Bu)))}function Su(t,e,n){var r=new Cu;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}Cu.prototype=xu.prototype={constructor:Cu,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?_u():+n)+(null==e?0:+e),this._next||fu===this||(fu?fu._next=this:hu=this,fu=this),this._call=t,this._time=n,ku()},stop:function(){this._call&&(this._call=null,this._time=1/0,ku())}};var Iu=uu("start","end","cancel","interrupt"),Nu=[];function Mu(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var l,A,u,h;if(1!==n.state)return s();for(l in i)if((h=i[l]).name===n.name){if(3===h.state)return Su(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+l<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[l])}if(Su((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(c))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(u=n.tween.length),l=0,A=-1;l<u;++l)(h=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++A]=h);r.length=A+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=xu((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:Iu,tween:Nu,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Fu(t,e){var n=Lu(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Du(t,e){var n=Lu(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Lu(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Ou(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Ru,Uu=180/Math.PI,Pu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Qu(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*Uu,skewX:Math.atan(c)*Uu,scaleX:o,scaleY:s}}function Hu(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],c=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var c=o.push("translate(",null,e,null,n);s.push({i:c-4,x:Ou(t,i)},{i:c-2,x:Ou(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,c),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Ou(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Ou(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Ou(t,n)},{i:s-2,x:Ou(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n<r;)s[(e=c[n]).i]=e.x(t);return s.join("")}}}var Gu=Hu((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Pu:Qu(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),ju=Hu((function(t){return null==t?Pu:(Ru||(Ru=document.createElementNS("http://www.w3.org/2000/svg","g")),Ru.setAttribute("transform",t),(t=Ru.transform.baseVal.consolidate())?Qu((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Pu)}),", ",")",")");function Ku(t,e){var n,r;return function(){var i=Du(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function $u(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=Du(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===e){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Yu(t,e,n){var r=t._id;return t.each((function(){var t=Du(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Lu(t,r).value[e]}}const Vu=function t(e){var n=function(t){return 1==(t=+t)?xr:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Er(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=er(t)).r,(e=er(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=xr(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);var zu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wu=new RegExp(zu.source,"g");function qu(t,e){var n,r,i,a=zu.lastIndex=Wu.lastIndex=0,o=-1,s=[],c=[];for(t+="",e+="";(n=zu.exec(t))&&(r=Wu.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:Ou(n,r)})),a=Wu.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)s[(n=c[r]).i]=n.x(t);return s.join("")})}function Xu(t,e){var n;return("number"==typeof e?Ou:e instanceof Xn?Vu:(n=Xn(e))?(e=n,Vu):qu)(t,e)}function Ju(t){return function(){this.removeAttribute(t)}}function Zu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function th(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function eh(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function nh(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttribute(t))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttribute(t)}}function rh(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttributeNS(t.space,t.local)}}function ih(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function ah(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function oh(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&ah(t,i)),n}return i._value=e,i}function sh(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&ih(t,i)),n}return i._value=e,i}function ch(t,e){return function(){Fu(this,t).delay=+e.apply(this,arguments)}}function lh(t,e){return e=+e,function(){Fu(this,t).delay=e}}function Ah(t,e){return function(){Du(this,t).duration=+e.apply(this,arguments)}}function uh(t,e){return e=+e,function(){Du(this,t).duration=e}}function hh(t,e){if("function"!=typeof e)throw new Error;return function(){Du(this,t).ease=e}}function fh(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Fu:Du;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var dh=gc.prototype.constructor;function ph(t){return function(){this.style.removeProperty(t)}}function gh(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function mh(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&gh(t,a,n)),r}return a._value=e,a}function yh(t){return function(e){this.textContent=t.call(this,e)}}function vh(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&yh(r)),e}return r._value=t,r}var bh=0;function wh(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function _h(){return++bh}var Eh=gc.prototype;wh.prototype=function(t){return gc().transition(t)}.prototype={constructor:wh,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=rs(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s,c,l=r[o],A=l.length,u=a[o]=new Array(A),h=0;h<A;++h)(s=l[h])&&(c=t.call(s,s.__data__,h,l))&&("__data__"in s&&(c.__data__=s.__data__),u[h]=c,Mu(u[h],e,n,h,u,Lu(s,n)));return new wh(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=os(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c,l=r[s],A=l.length,u=0;u<A;++u)if(c=l[u]){for(var h,f=t.call(c,c.__data__,u,l),d=Lu(c,n),p=0,g=f.length;p<g;++p)(h=f[p])&&Mu(h,e,n,p,f,d);a.push(f),o.push(c)}return new wh(a,o,e,n)},selectChild:Eh.selectChild,selectChildren:Eh.selectChildren,filter:function(t){"function"!=typeof t&&(t=ss(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new wh(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var c,l=e[s],A=n[s],u=l.length,h=o[s]=new Array(u),f=0;f<u;++f)(c=l[f]||A[f])&&(h[f]=c);for(;s<r;++s)o[s]=e[s];return new wh(o,this._parents,this._name,this._id)},selection:function(){return new dh(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=_h(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)if(o=s[l]){var A=Lu(o,e);Mu(o,t,n,l,s,{time:A.time+A.delay+A.duration,delay:0,duration:A.duration,ease:A.ease})}return new wh(r,this._parents,t,n)},call:Eh.call,nodes:Eh.nodes,node:Eh.node,size:Eh.size,empty:Eh.empty,each:Eh.each,on:function(t,e){var n=this._id;return arguments.length<2?Lu(this.node(),n).on.on(t):this.each(fh(n,t,e))},attr:function(t,e){var n=Es(t),r="transform"===n?ju:Xu;return this.attrTween(t,"function"==typeof e?(n.local?rh:nh)(n,r,Yu(this,"attr."+t,e)):null==e?(n.local?Zu:Ju)(n):(n.local?eh:th)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Es(t);return this.tween(n,(r.local?oh:sh)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Gu:Xu;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Ds(this,t),o=(this.style.removeProperty(t),Ds(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,ph(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=Ds(this,t),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=Ds(this,t)),o===c?null:o===r&&c===i?a:(i=c,a=e(r=o,s))}}(t,r,Yu(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e,s="end."+o;return function(){var c=Du(this,t),l=c.on,A=null==c.value[o]?a||(a=ph(e)):void 0;l===n&&i===A||(r=(n=l).copy()).on(s,i=A),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,a=n+"";return function(){var o=Ds(this,t);return o===a?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,mh(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Yu(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,vh(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Lu(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?Ku:$u)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?ch:lh)(e,t)):Lu(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Ah:uh)(e,t)):Lu(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(hh(e,t)):Lu(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Du(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},c={value:function(){0==--i&&a()}};n.each((function(){var n=Du(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),n.on=e})),0===i&&a()}))},[Symbol.iterator]:Eh[Symbol.iterator]};var Ch={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function xh(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Bh(){}function Th(t){return null==t?Bh:function(){return this.querySelector(t)}}function kh(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Sh(){return[]}function Ih(t){return null==t?Sh:function(){return this.querySelectorAll(t)}}function Nh(t){return function(){return this.matches(t)}}function Mh(t){return function(e){return e.matches(t)}}gc.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},gc.prototype.transition=function(t){var e,n;t instanceof wh?(e=t._id,t=t._name):(e=_h(),(n=Ch).time=_u(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)(o=s[l])&&Mu(o,t,e,l,s,n||xh(o,e));return new wh(r,this._parents,t,e)};var Fh=Array.prototype.find;function Dh(){return this.firstElementChild}var Lh=Array.prototype.filter;function Oh(){return Array.from(this.children)}function Rh(t){return new Array(t.length)}function Uh(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Ph(t){return function(){return t}}function Qh(t,e,n,r,i,a){for(var o,s=0,c=e.length,l=a.length;s<l;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new Uh(t,a[s]);for(;s<c;++s)(o=e[s])&&(i[s]=o)}function Hh(t,e,n,r,i,a,o){var s,c,l,A=new Map,u=e.length,h=a.length,f=new Array(u);for(s=0;s<u;++s)(c=e[s])&&(f[s]=l=o.call(c,c.__data__,s,e)+"",A.has(l)?i[s]=c:A.set(l,c));for(s=0;s<h;++s)l=o.call(t,a[s],s,a)+"",(c=A.get(l))?(r[s]=c,c.__data__=a[s],A.delete(l)):n[s]=new Uh(t,a[s]);for(s=0;s<u;++s)(c=e[s])&&A.get(f[s])===c&&(i[s]=c)}function Gh(t){return t.__data__}function jh(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Kh(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Uh.prototype={constructor:Uh,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var $h="http://www.w3.org/1999/xhtml";const Yh={svg:"http://www.w3.org/2000/svg",xhtml:$h,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vh(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Yh.hasOwnProperty(e)?{space:Yh[e],local:t}:t}function zh(t){return function(){this.removeAttribute(t)}}function Wh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function qh(t,e){return function(){this.setAttribute(t,e)}}function Xh(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Jh(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Zh(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function tf(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ef(t){return function(){this.style.removeProperty(t)}}function nf(t,e,n){return function(){this.style.setProperty(t,e,n)}}function rf(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function af(t,e){return t.style.getPropertyValue(e)||tf(t).getComputedStyle(t,null).getPropertyValue(e)}function of(t){return function(){delete this[t]}}function sf(t,e){return function(){this[t]=e}}function cf(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function lf(t){return t.trim().split(/^|\s+/)}function Af(t){return t.classList||new uf(t)}function uf(t){this._node=t,this._names=lf(t.getAttribute("class")||"")}function hf(t,e){for(var n=Af(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function ff(t,e){for(var n=Af(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function df(t){return function(){hf(this,t)}}function pf(t){return function(){ff(this,t)}}function gf(t,e){return function(){(e.apply(this,arguments)?hf:ff)(this,t)}}function mf(){this.textContent=""}function yf(t){return function(){this.textContent=t}}function vf(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function bf(){this.innerHTML=""}function wf(t){return function(){this.innerHTML=t}}function _f(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Ef(){this.nextSibling&&this.parentNode.appendChild(this)}function Cf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function xf(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===$h&&e.documentElement.namespaceURI===$h?e.createElement(t):e.createElementNS(n,t)}}function Bf(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Tf(t){var e=Vh(t);return(e.local?Bf:xf)(e)}function kf(){return null}function Sf(){var t=this.parentNode;t&&t.removeChild(this)}function If(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Nf(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Mf(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Ff(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Df(t,e,n){return function(){var r,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function Lf(t,e,n){var r=tf(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Of(t,e){return function(){return Lf(this,t,e)}}function Rf(t,e){return function(){return Lf(this,t,e.apply(this,arguments))}}uf.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Uf=[null];function Pf(t,e){this._groups=t,this._parents=e}function Qf(){return new Pf([[document.documentElement]],Uf)}Pf.prototype=Qf.prototype={constructor:Pf,select:function(t){"function"!=typeof t&&(t=Th(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],c=s.length,l=r[i]=new Array(c),A=0;A<c;++A)(a=s[A])&&(o=t.call(a,a.__data__,A,s))&&("__data__"in a&&(o.__data__=a.__data__),l[A]=o);return new Pf(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return kh(t.apply(this,arguments))}}(t):Ih(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],c=s.length,l=0;l<c;++l)(o=s[l])&&(r.push(t.call(o,o.__data__,l,s)),i.push(o));return new Pf(r,i)},selectChild:function(t){return this.select(null==t?Dh:function(t){return function(){return Fh.call(this.children,t)}}("function"==typeof t?t:Mh(t)))},selectChildren:function(t){return this.selectAll(null==t?Oh:function(t){return function(){return Lh.call(this.children,t)}}("function"==typeof t?t:Mh(t)))},filter:function(t){"function"!=typeof t&&(t=Nh(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new Pf(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Gh);var n=e?Hh:Qh,r=this._parents,i=this._groups;"function"!=typeof t&&(t=Ph(t));for(var a=i.length,o=new Array(a),s=new Array(a),c=new Array(a),l=0;l<a;++l){var A=r[l],u=i[l],h=u.length,f=jh(t.call(A,A&&A.__data__,l,r)),d=f.length,p=s[l]=new Array(d),g=o[l]=new Array(d),m=c[l]=new Array(h);n(A,u,p,g,m,f,e);for(var y,v,b=0,w=0;b<d;++b)if(y=p[b]){for(b>=w&&(w=b+1);!(v=g[w])&&++w<d;);y._next=v||null}}return(o=new Pf(o,r))._enter=s,o._exit=c,o},enter:function(){return new Pf(this._enter||this._groups.map(Rh),this._parents)},exit:function(){return new Pf(this._exit||this._groups.map(Rh),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),c=0;c<o;++c)for(var l,A=n[c],u=r[c],h=A.length,f=s[c]=new Array(h),d=0;d<h;++d)(l=A[d]||u[d])&&(f[d]=l);for(;c<i;++c)s[c]=n[c];return new Pf(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Kh);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],c=s.length,l=i[a]=new Array(c),A=0;A<c;++A)(o=s[A])&&(l[A]=o);l.sort(e)}return new Pf(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=Vh(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Wh:zh:"function"==typeof e?n.local?Zh:Jh:n.local?Xh:qh)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?ef:"function"==typeof e?rf:nf)(t,e,null==n?"":n)):af(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?of:"function"==typeof e?cf:sf)(t,e)):this.node()[t]},classed:function(t,e){var n=lf(t+"");if(arguments.length<2){for(var r=Af(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?gf:e?df:pf)(n,e))},text:function(t){return arguments.length?this.each(null==t?mf:("function"==typeof t?vf:yf)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?bf:("function"==typeof t?_f:wf)(t)):this.node().innerHTML},raise:function(){return this.each(Ef)},lower:function(){return this.each(Cf)},append:function(t){var e="function"==typeof t?t:Tf(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:Tf(t),r=null==e?kf:"function"==typeof e?e:Th(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Sf)},clone:function(t){return this.select(t?Nf:If)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=Mf(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?Df:Ff,r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var c,l=0,A=s.length;l<A;++l)for(r=0,c=s[l];r<o;++r)if((i=a[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?Rf:Of)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)(r=i[a])&&(yield r)}};const Hf=Qf;var Gf={value:()=>{}};function jf(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Kf(r)}function Kf(t){this._=t}function $f(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Yf(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Vf(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Gf,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Kf.prototype=jf.prototype={constructor:Kf,on:function(t,e){var n,r=this._,i=$f(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=Vf(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Vf(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=Yf(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Kf(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};const zf=jf;var Wf,qf,Xf=0,Jf=0,Zf=0,td=0,ed=0,nd=0,rd="object"==typeof performance&&performance.now?performance:Date,id="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ad(){return ed||(id(od),ed=rd.now()+nd)}function od(){ed=0}function sd(){this._call=this._time=this._next=null}function cd(t,e,n){var r=new sd;return r.restart(t,e,n),r}function ld(){ed=(td=rd.now())+nd,Xf=Jf=0;try{!function(){ad(),++Xf;for(var t,e=Wf;e;)(t=ed-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Xf}()}finally{Xf=0,function(){for(var t,e,n=Wf,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Wf=e);qf=t,ud(r)}(),ed=0}}function Ad(){var t=rd.now(),e=t-td;e>1e3&&(nd-=e,td=t)}function ud(t){Xf||(Jf&&(Jf=clearTimeout(Jf)),t-ed>24?(t<1/0&&(Jf=setTimeout(ld,t-rd.now()-nd)),Zf&&(Zf=clearInterval(Zf))):(Zf||(td=rd.now(),Zf=setInterval(Ad,1e3)),Xf=1,id(ld)))}function hd(t,e,n){var r=new sd;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}sd.prototype=cd.prototype={constructor:sd,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ad():+n)+(null==e?0:+e),this._next||qf===this||(qf?qf._next=this:Wf=this,qf=this),this._call=t,this._time=n,ud()},stop:function(){this._call&&(this._call=null,this._time=1/0,ud())}};var fd=zf("start","end","cancel","interrupt"),dd=[];function pd(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var l,A,u,h;if(1!==n.state)return s();for(l in i)if((h=i[l]).name===n.name){if(3===h.state)return hd(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+l<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[l])}if(hd((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(c))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(u=n.tween.length),l=0,A=-1;l<u;++l)(h=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++A]=h);r.length=A+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=cd((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:fd,tween:dd,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function gd(t,e){var n=yd(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function md(t,e){var n=yd(t,e);if(n.state>3)throw new Error("too late; already running");return n}function yd(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function vd(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var bd,wd=180/Math.PI,_d={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ed(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*wd,skewX:Math.atan(c)*wd,scaleX:o,scaleY:s}}function Cd(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],c=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var c=o.push("translate(",null,e,null,n);s.push({i:c-4,x:vd(t,i)},{i:c-2,x:vd(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,c),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:vd(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:vd(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:vd(t,n)},{i:s-2,x:vd(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n<r;)s[(e=c[n]).i]=e.x(t);return s.join("")}}}var xd=Cd((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?_d:Ed(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Bd=Cd((function(t){return null==t?_d:(bd||(bd=document.createElementNS("http://www.w3.org/2000/svg","g")),bd.setAttribute("transform",t),(t=bd.transform.baseVal.consolidate())?Ed((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):_d)}),", ",")",")");function Td(t,e){var n,r;return function(){var i=md(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function kd(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=md(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===e){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Sd(t,e,n){var r=t._id;return t.each((function(){var t=md(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return yd(t,r).value[e]}}function Id(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Nd(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Md(){}var Fd=1.4285714285714286,Dd="\\s*([+-]?\\d+)\\s*",Ld="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Od="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Rd=/^#([0-9a-f]{3,8})$/,Ud=new RegExp("^rgb\\("+[Dd,Dd,Dd]+"\\)$"),Pd=new RegExp("^rgb\\("+[Od,Od,Od]+"\\)$"),Qd=new RegExp("^rgba\\("+[Dd,Dd,Dd,Ld]+"\\)$"),Hd=new RegExp("^rgba\\("+[Od,Od,Od,Ld]+"\\)$"),Gd=new RegExp("^hsl\\("+[Ld,Od,Od]+"\\)$"),jd=new RegExp("^hsla\\("+[Ld,Od,Od,Ld]+"\\)$"),Kd={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function $d(){return this.rgb().formatHex()}function Yd(){return this.rgb().formatRgb()}function Vd(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Rd.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?zd(e):3===n?new Jd(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Wd(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Wd(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ud.exec(t))?new Jd(e[1],e[2],e[3],1):(e=Pd.exec(t))?new Jd(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Qd.exec(t))?Wd(e[1],e[2],e[3],e[4]):(e=Hd.exec(t))?Wd(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Gd.exec(t))?np(e[1],e[2]/100,e[3]/100,1):(e=jd.exec(t))?np(e[1],e[2]/100,e[3]/100,e[4]):Kd.hasOwnProperty(t)?zd(Kd[t]):"transparent"===t?new Jd(NaN,NaN,NaN,0):null}function zd(t){return new Jd(t>>16&255,t>>8&255,255&t,1)}function Wd(t,e,n,r){return r<=0&&(t=e=n=NaN),new Jd(t,e,n,r)}function qd(t){return t instanceof Md||(t=Vd(t)),t?new Jd((t=t.rgb()).r,t.g,t.b,t.opacity):new Jd}function Xd(t,e,n,r){return 1===arguments.length?qd(t):new Jd(t,e,n,null==r?1:r)}function Jd(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Zd(){return"#"+ep(this.r)+ep(this.g)+ep(this.b)}function tp(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ep(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function np(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ip(t,e,n,r)}function rp(t){if(t instanceof ip)return new ip(t.h,t.s,t.l,t.opacity);if(t instanceof Md||(t=Vd(t)),!t)return new ip;if(t instanceof ip)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new ip(o,s,c,t.opacity)}function ip(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ap(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Id(Md,Vd,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:$d,formatHex:$d,formatHsl:function(){return rp(this).formatHsl()},formatRgb:Yd,toString:Yd}),Id(Jd,Xd,Nd(Md,{brighter:function(t){return t=null==t?Fd:Math.pow(Fd,t),new Jd(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Jd(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Zd,formatHex:Zd,formatRgb:tp,toString:tp})),Id(ip,(function(t,e,n,r){return 1===arguments.length?rp(t):new ip(t,e,n,null==r?1:r)}),Nd(Md,{brighter:function(t){return t=null==t?Fd:Math.pow(Fd,t),new ip(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ip(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Jd(ap(t>=240?t-240:t+120,i,r),ap(t,i,r),ap(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const op=t=>()=>t;function sp(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):op(isNaN(t)?e:t)}const cp=function t(e){var n=function(t){return 1==(t=+t)?sp:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):op(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Xd(t)).r,(e=Xd(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=sp(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);var lp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ap=new RegExp(lp.source,"g");function up(t,e){var n,r,i,a=lp.lastIndex=Ap.lastIndex=0,o=-1,s=[],c=[];for(t+="",e+="";(n=lp.exec(t))&&(r=Ap.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:vd(n,r)})),a=Ap.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)s[(n=c[r]).i]=n.x(t);return s.join("")})}function hp(t,e){var n;return("number"==typeof e?vd:e instanceof Vd?cp:(n=Vd(e))?(e=n,cp):up)(t,e)}function fp(t){return function(){this.removeAttribute(t)}}function dp(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pp(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function gp(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function mp(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttribute(t))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttribute(t)}}function yp(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttributeNS(t.space,t.local)}}function vp(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function bp(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function wp(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&bp(t,i)),n}return i._value=e,i}function _p(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&vp(t,i)),n}return i._value=e,i}function Ep(t,e){return function(){gd(this,t).delay=+e.apply(this,arguments)}}function Cp(t,e){return e=+e,function(){gd(this,t).delay=e}}function xp(t,e){return function(){md(this,t).duration=+e.apply(this,arguments)}}function Bp(t,e){return e=+e,function(){md(this,t).duration=e}}function Tp(t,e){if("function"!=typeof e)throw new Error;return function(){md(this,t).ease=e}}function kp(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?gd:md;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Sp=Hf.prototype.constructor;function Ip(t){return function(){this.style.removeProperty(t)}}function Np(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Mp(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Np(t,a,n)),r}return a._value=e,a}function Fp(t){return function(e){this.textContent=t.call(this,e)}}function Dp(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Fp(r)),e}return r._value=t,r}var Lp=0;function Op(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Rp(){return++Lp}var Up=Hf.prototype;Op.prototype=function(t){return Hf().transition(t)}.prototype={constructor:Op,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Th(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s,c,l=r[o],A=l.length,u=a[o]=new Array(A),h=0;h<A;++h)(s=l[h])&&(c=t.call(s,s.__data__,h,l))&&("__data__"in s&&(c.__data__=s.__data__),u[h]=c,pd(u[h],e,n,h,u,yd(s,n)));return new Op(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ih(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c,l=r[s],A=l.length,u=0;u<A;++u)if(c=l[u]){for(var h,f=t.call(c,c.__data__,u,l),d=yd(c,n),p=0,g=f.length;p<g;++p)(h=f[p])&&pd(h,e,n,p,f,d);a.push(f),o.push(c)}return new Op(a,o,e,n)},selectChild:Up.selectChild,selectChildren:Up.selectChildren,filter:function(t){"function"!=typeof t&&(t=Nh(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new Op(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var c,l=e[s],A=n[s],u=l.length,h=o[s]=new Array(u),f=0;f<u;++f)(c=l[f]||A[f])&&(h[f]=c);for(;s<r;++s)o[s]=e[s];return new Op(o,this._parents,this._name,this._id)},selection:function(){return new Sp(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Rp(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)if(o=s[l]){var A=yd(o,e);pd(o,t,n,l,s,{time:A.time+A.delay+A.duration,delay:0,duration:A.duration,ease:A.ease})}return new Op(r,this._parents,t,n)},call:Up.call,nodes:Up.nodes,node:Up.node,size:Up.size,empty:Up.empty,each:Up.each,on:function(t,e){var n=this._id;return arguments.length<2?yd(this.node(),n).on.on(t):this.each(kp(n,t,e))},attr:function(t,e){var n=Vh(t),r="transform"===n?Bd:hp;return this.attrTween(t,"function"==typeof e?(n.local?yp:mp)(n,r,Sd(this,"attr."+t,e)):null==e?(n.local?dp:fp)(n):(n.local?gp:pp)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Vh(t);return this.tween(n,(r.local?wp:_p)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?xd:hp;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=af(this,t),o=(this.style.removeProperty(t),af(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,Ip(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=af(this,t),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=af(this,t)),o===c?null:o===r&&c===i?a:(i=c,a=e(r=o,s))}}(t,r,Sd(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e,s="end."+o;return function(){var c=md(this,t),l=c.on,A=null==c.value[o]?a||(a=Ip(e)):void 0;l===n&&i===A||(r=(n=l).copy()).on(s,i=A),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,a=n+"";return function(){var o=af(this,t);return o===a?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,Mp(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Sd(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Dp(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=yd(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?Td:kd)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Ep:Cp)(e,t)):yd(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?xp:Bp)(e,t)):yd(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Tp(e,t)):yd(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;md(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},c={value:function(){0==--i&&a()}};n.each((function(){var n=md(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),n.on=e})),0===i&&a()}))},[Symbol.iterator]:Up[Symbol.iterator]};var Pp={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Qp(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Hp(t,e,n){this.k=t,this.x=e,this.y=n}Hf.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},Hf.prototype.transition=function(t){var e,n;t instanceof Op?(e=t._id,t=t._name):(e=Rp(),(n=Pp).time=ad(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)(o=s[l])&&pd(o,t,e,l,s,n||Qp(o,e));return new Op(r,this._parents,t,e)},Hp.prototype={constructor:Hp,scale:function(t){return 1===t?this:new Hp(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Hp(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Hp.prototype;var Gp=Math.abs,jp=String.fromCharCode;function Kp(t){return t.trim()}function $p(t,e,n){return t.replace(e,n)}function Yp(t,e){return t.indexOf(e)}function Vp(t,e){return 0|t.charCodeAt(e)}function zp(t,e,n){return t.slice(e,n)}function Wp(t){return t.length}function qp(t){return t.length}function Xp(t,e){return e.push(t),t}function Jp(t,e){for(var n="",r=qp(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function Zp(t,e,n,r){switch(t.type){case"@import":case"decl":return t.return=t.return||t.value;case"comm":return"";case"@keyframes":return t.return=t.value+"{"+Jp(t.children,r)+"}";case"rule":t.value=t.props.join(",")}return Wp(n=Jp(t.children,r))?t.return=t.value+"{"+n+"}":""}var tg=1,eg=1,ng=0,rg=0,ig=0,ag="";function og(t,e,n,r,i,a,o){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:tg,column:eg,length:o,return:""}}function sg(){return ig=rg<ng?Vp(ag,rg++):0,eg++,10===ig&&(eg=1,tg++),ig}function cg(){return Vp(ag,rg)}function lg(){return rg}function Ag(t,e){return zp(ag,t,e)}function ug(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function hg(t){return Kp(Ag(rg-1,function t(e){for(;sg();)switch(ig){case e:return rg;case 34:case 39:34!==e&&39!==e&&t(ig);break;case 40:41===e&&t(e);break;case 92:sg()}return rg}(91===t?t+2:40===t?t+1:t)))}function fg(t){for(;(ig=cg())&&ig<33;)sg();return ug(t)>2||ug(ig)>3?"":" "}function dg(t,e){for(;--e&&sg()&&!(ig<48||ig>102||ig>57&&ig<65||ig>70&&ig<97););return Ag(t,lg()+(e<6&&32==cg()&&32==sg()))}function pg(t,e){for(;sg()&&t+ig!==57&&(t+ig!==84||47!==cg()););return"/*"+Ag(e,rg-1)+"*"+jp(47===t?t:sg())}function gg(t){for(;!ug(cg());)sg();return Ag(t,rg)}function mg(t){return function(t){return ag="",t}(function t(e,n,r,i,a,o,s,c,l){for(var A=0,u=0,h=s,f=0,d=0,p=0,g=1,m=1,y=1,v=0,b="",w=a,_=o,E=i,C=b;m;)switch(p=v,v=sg()){case 40:if(108!=p&&58==C.charCodeAt(h-1)){-1!=Yp(C+=$p(hg(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=hg(v);break;case 9:case 10:case 13:case 32:C+=fg(p);break;case 92:C+=dg(lg()-1,7);continue;case 47:switch(cg()){case 42:case 47:Xp(vg(pg(sg(),lg()),n,r),l);break;default:C+="/"}break;case 123*g:c[A++]=Wp(C)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:d>0&&Wp(C)-h&&Xp(d>32?bg(C+";",i,r,h-1):bg($p(C," ","")+";",i,r,h-2),l);break;case 59:C+=";";default:if(Xp(E=yg(C,n,r,A,u,a,c,b,w=[],_=[],h),o),123===v)if(0===u)t(C,n,E,E,w,o,h,c,_);else switch(f){case 100:case 109:case 115:t(e,E,E,i&&Xp(yg(e,E,E,0,0,a,c,b,a,w=[],h),_),a,_,h,c,i?w:_);break;default:t(C,E,E,E,[""],_,0,c,_)}}A=u=d=0,g=y=1,b=C="",h=s;break;case 58:h=1+Wp(C),d=p;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(ig=rg>0?Vp(ag,--rg):0,eg--,10===ig&&(eg=1,tg--),ig))continue;switch(C+=jp(v),v*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:c[A++]=(Wp(C)-1)*y,y=1;break;case 64:45===cg()&&(C+=hg(sg())),f=cg(),u=h=Wp(b=C+=gg(lg())),v++;break;case 45:45===p&&2==Wp(C)&&(g=0)}}return o}("",null,null,null,[""],t=function(t){return tg=eg=1,ng=Wp(ag=t),rg=0,[]}(t),0,[0],t))}function yg(t,e,n,r,i,a,o,s,c,l,A){for(var u=i-1,h=0===i?a:[""],f=qp(h),d=0,p=0,g=0;d<r;++d)for(var m=0,y=zp(t,u+1,u=Gp(p=o[d])),v=t;m<f;++m)(v=Kp(p>0?h[m]+" "+y:$p(y,/&\f/g,h[m])))&&(c[g++]=v);return og(t,e,n,0===i?"rule":s,c,l,A)}function vg(t,e,n){return og(t,e,n,"comm",jp(ig),zp(t,2,-2),0)}function bg(t,e,n,r){return og(t,e,n,"decl",zp(t,0,r),zp(t,r+1,-1),r)}var wg=n(9609),_g=n(7856),Eg=n.n(_g),Cg=function(t){var e=t.replace(/\\u[\dA-F]{4}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\u/g,""),16))}));return(e=(e=e.replace(/\\x([0-9a-f]{2})/gi,(function(t,e){return String.fromCharCode(parseInt(e,16))}))).replace(/\\[\d\d\d]{3}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\/g,""),8))}))).replace(/\\[\d\d\d]{2}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\/g,""),8))}))},xg=function(t){for(var e="",n=0;n>=0;){if(!((n=t.indexOf("<script"))>=0)){e+=t,n=-1;break}e+=t.substr(0,n),(n=(t=t.substr(n+1)).indexOf("<\/script>"))>=0&&(n+=9,t=t.substr(n))}var r=Cg(e);return(r=(r=(r=r.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},Bg=function(t,e){return t?Eg().sanitize(function(t,e){var n=t,r=!0;if(!e.flowchart||!1!==e.flowchart.htmlLabels&&"false"!==e.flowchart.htmlLabels||(r=!1),r){var i=e.securityLevel;"antiscript"===i||"strict"===i?n=xg(n):"loose"!==i&&(n=(n=(n=Sg(n)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),n=kg(n))}return n}(t,e)):t},Tg=/<br\s*\/?>/gi,kg=function(t){return t.replace(/#br#/g,"<br/>")},Sg=function(t){return t.replace(Tg,"#br#")},Ig=function(t){return"false"!==t&&!1!==t};const Ng={getRows:function(t){if(!t)return 1;var e=Sg(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:Bg,sanitizeTextOrArray:function(t,e){return"string"==typeof t?Bg(t,e):t.flat().map((function(t){return Bg(t,e)}))},hasBreaks:function(t){return Tg.test(t)},splitBreaks:function(t){return t.split(Tg)},lineBreakRegex:Tg,removeScript:xg,getUrl:function(t){var e="";return t&&(e=(e=(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),e},evaluate:Ig,removeEscapes:Cg};var Mg=n(8613),Fg=function(t,e){return e?(0,Mg.adjust)(t,{s:-40,l:10}):(0,Mg.adjust)(t,{s:-40,l:-10})};function Dg(t){return(Dg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Lg=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var e,n;return e=t,(n=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#ddd":"#333"),this.secondaryColor=this.secondaryColor||(0,Mg.adjust)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,Mg.adjust)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Fg(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Fg(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Fg(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Fg(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,Mg.invert)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,Mg.invert)(this.tertiaryColor),this.lineColor=this.lineColor||(0,Mg.invert)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,Mg.darken)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,Mg.darken)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,Mg.invert)(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,Mg.lighten)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||(0,Mg.adjust)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,Mg.adjust)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,Mg.adjust)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,Mg.adjust)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,Mg.adjust)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,Mg.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,Mg.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,Mg.adjust)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,Mg.adjust)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,Mg.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,Mg.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,Mg.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,Mg.adjust)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,Mg.adjust)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,Mg.adjust)(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,Mg.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(t){var e=this;if("object"===Dg(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Og(t){return(Og="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Rg=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,Mg.lighten)(this.primaryColor,16),this.tertiaryColor=(0,Mg.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=Fg(this.primaryColor,this.darkMode),this.secondaryBorderColor=Fg(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Fg(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,Mg.invert)(this.primaryColor),this.secondaryTextColor=(0,Mg.invert)(this.secondaryColor),this.tertiaryTextColor=(0,Mg.invert)(this.tertiaryColor),this.lineColor=(0,Mg.invert)(this.background),this.textColor=(0,Mg.invert)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,Mg.lighten)((0,Mg.invert)("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,Mg.rgba)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,Mg.darken)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=(0,Mg.rgba)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,Mg.rgba)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var e,n;return e=t,(n=[{key:"updateColors",value:function(){this.secondBkg=(0,Mg.lighten)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,Mg.lighten)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,Mg.lighten)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,Mg.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,Mg.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,Mg.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,Mg.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,Mg.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,Mg.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,Mg.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(t){var e=this;if("object"===Og(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ug(t){return(Ug="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Pg=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=(0,Mg.adjust)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=(0,Mg.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=Fg(this.primaryColor,this.darkMode),this.secondaryBorderColor=Fg(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Fg(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,Mg.invert)(this.primaryColor),this.secondaryTextColor=(0,Mg.invert)(this.secondaryColor),this.tertiaryTextColor=(0,Mg.invert)(this.tertiaryColor),this.lineColor=(0,Mg.invert)(this.background),this.textColor=(0,Mg.invert)(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,Mg.rgba)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var e,n;return e=t,(n=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,Mg.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,Mg.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,Mg.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,Mg.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,Mg.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,Mg.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,Mg.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||(0,Mg.adjust)(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||(0,Mg.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,Mg.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,Mg.adjust)(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||(0,Mg.adjust)(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||(0,Mg.adjust)(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||(0,Mg.adjust)(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||(0,Mg.adjust)(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||(0,Mg.adjust)(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||(0,Mg.adjust)(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(t){var e=this;if("object"===Ug(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Qg(t){return(Qg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Hg=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,Mg.lighten)("#cde498",10),this.primaryBorderColor=Fg(this.primaryColor,this.darkMode),this.secondaryBorderColor=Fg(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Fg(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,Mg.invert)(this.primaryColor),this.secondaryTextColor=(0,Mg.invert)(this.secondaryColor),this.tertiaryTextColor=(0,Mg.invert)(this.primaryColor),this.lineColor=(0,Mg.invert)(this.background),this.textColor=(0,Mg.invert)(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,n;return e=t,(n=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=(0,Mg.darken)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,Mg.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,Mg.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,Mg.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,Mg.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,Mg.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,Mg.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,Mg.adjust)(this.primaryColor,{l:-30}),this.pie5=this.pie5||(0,Mg.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,Mg.adjust)(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||(0,Mg.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,Mg.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,Mg.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,Mg.adjust)(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||(0,Mg.adjust)(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||(0,Mg.adjust)(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(t){var e=this;if("object"===Qg(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Gg(t){return(Gg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var jg=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,Mg.lighten)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=(0,Mg.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=Fg(this.primaryColor,this.darkMode),this.secondaryBorderColor=Fg(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Fg(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,Mg.invert)(this.primaryColor),this.secondaryTextColor=(0,Mg.invert)(this.secondaryColor),this.tertiaryTextColor=(0,Mg.invert)(this.tertiaryColor),this.lineColor=(0,Mg.invert)(this.background),this.textColor=(0,Mg.invert)(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,n;return e=t,(n=[{key:"updateColors",value:function(){this.secondBkg=(0,Mg.lighten)(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=(0,Mg.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=(0,Mg.lighten)(this.contrast,30),this.sectionBkgColor2=(0,Mg.lighten)(this.contrast,30),this.taskBorderColor=(0,Mg.darken)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,Mg.lighten)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,Mg.darken)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,Mg.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,Mg.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,Mg.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,Mg.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,Mg.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,Mg.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(t){var e=this;if("object"===Gg(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const Kg={base:{getThemeVariables:function(t){var e=new Lg;return e.calculate(t),e}},dark:{getThemeVariables:function(t){var e=new Rg;return e.calculate(t),e}},default:{getThemeVariables:function(t){var e=new Pg;return e.calculate(t),e}},forest:{getThemeVariables:function(t){var e=new Hg;return e.calculate(t),e}},neutral:{getThemeVariables:function(t){var e=new jg;return e.calculate(t),e}}};function $g(t){return function(t){if(Array.isArray(t))return Yg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Yg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yg(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Vg(t){return(Vg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var zg={theme:"default",themeVariables:Kg.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open-Sans", "sans-serif"',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open-Sans", "sans-serif"',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},git:{arrowMarkerAbsolute:!1,useWidth:void 0,useMaxWidth:!0},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20}};zg.class.arrowMarkerAbsolute=zg.arrowMarkerAbsolute,zg.git.arrowMarkerAbsolute=zg.arrowMarkerAbsolute;var Wg=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(e).reduce((function(r,i){return Array.isArray(e[i])?r:"object"===Vg(e[i])&&null!==e[i]?[].concat($g(r),[n+i],$g(t(e[i],""))):[].concat($g(r),[n+i])}),[])}(zg,"");const qg=zg;function Xg(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=tm(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Jg(t){return(Jg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zg(t){return function(t){if(Array.isArray(t))return em(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||tm(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tm(t,e){if(t){if("string"==typeof t)return em(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?em(t,e):void 0}}function em(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var nm,rm={curveBasis:al,curveBasisClosed:function(t){return new ol(t)},curveBasisOpen:function(t){return new sl(t)},curveLinear:qc,curveLinearClosed:function(t){return new cl(t)},curveMonotoneX:function(t){return new fl(t)},curveMonotoneY:function(t){return new dl(t)},curveNatural:function(t){return new gl(t)},curveStep:function(t){return new yl(t,.5)},curveStepAfter:function(t){return new yl(t,1)},curveStepBefore:function(t){return new yl(t,0)}},im=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,am=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,om=/\s*%%.*\n/gm,sm=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var n=new RegExp("[%]{2}(?![{]".concat(am.source,")(?=[}][%]{2}).*\n"),"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),o.debug("Detecting diagram directive".concat(null!==e?" type:"+e:""," based on the text:").concat(t));for(var r,i=[];null!==(r=im.exec(t));)if(r.index===im.lastIndex&&im.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){var a=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:a,args:s})}return 0===i.length&&i.push({type:t,args:null}),1===i.length?i[0]:i}catch(n){return o.error("ERROR: ".concat(n.message," - Unable to parse directive\n ").concat(null!==e?" type:"+e:""," based on the text:").concat(t)),{type:null,args:null}}},cm=function(t,e){return(t=t.replace(im,"").replace(om,"\n")).match(/^\s*sequenceDiagram/)?"sequence":t.match(/^\s*gantt/)?"gantt":t.match(/^\s*classDiagram-v2/)?"classDiagram":t.match(/^\s*classDiagram/)?e&&e.class&&"dagre-wrapper"===e.class.defaultRenderer?"classDiagram":"class":t.match(/^\s*stateDiagram-v2/)?"stateDiagram":t.match(/^\s*stateDiagram/)?e&&e.class&&"dagre-wrapper"===e.state.defaultRenderer?"stateDiagram":"state":t.match(/^\s*gitGraph/)?"git":t.match(/^\s*flowchart/)?"flowchart-v2":t.match(/^\s*info/)?"info":t.match(/^\s*pie/)?"pie":t.match(/^\s*erDiagram/)?"er":t.match(/^\s*journey/)?"journey":t.match(/^\s*requirement/)||t.match(/^\s*requirementDiagram/)?"requirement":e&&e.flowchart&&"dagre-wrapper"===e.flowchart.defaultRenderer?"flowchart-v2":"flowchart"},lm=function(t,e){var n={};return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=e?e.apply(void 0,i):i[0];if(o in n)return n[o];var s=t.apply(void 0,i);return n[o]=s,s}},Am=function(t,e){if(!t)return e;var n="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return rm[n]||e},um=function(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},hm=function(t){for(var e="",n="",r=0;r<t.length;r++)void 0!==t[r]&&(t[r].startsWith("color:")||t[r].startsWith("text-align:")?n=n+t[r]+";":e=e+t[r]+";");return{style:e,labelStyle:n}},fm=0,dm=function(){return fm++,"id-"+Math.random().toString(36).substr(2,12)+"-"+fm},pm=function(t){return function(t){for(var e="",n="0123456789abcdef",r=n.length,i=0;i<t;i++)e+=n.charAt(Math.floor(Math.random()*r));return e}(t.length)},gm=function t(e,n,r){var i=Object.assign({depth:2,clobber:!1},r),a=i.depth,o=i.clobber;return Array.isArray(n)&&!Array.isArray(e)?(n.forEach((function(n){return t(e,n,r)})),e):Array.isArray(n)&&Array.isArray(e)?(n.forEach((function(t){-1===e.indexOf(t)&&e.push(t)})),e):void 0===e||a<=0?null!=e&&"object"===Jg(e)&&"object"===Jg(n)?Object.assign(e,n):n:(void 0!==n&&"object"===Jg(e)&&"object"===Jg(n)&&Object.keys(n).forEach((function(r){"object"!==Jg(n[r])||void 0!==e[r]&&"object"!==Jg(e[r])?(o||"object"!==Jg(e[r])&&"object"!==Jg(n[r]))&&(e[r]=n[r]):(void 0===e[r]&&(e[r]=Array.isArray(n[r])?[]:{}),e[r]=t(e[r],n[r],{depth:a-1,clobber:o}))})),e)},mm=function(t,e){var n=e.text.replace(Ng.lineBreakRegex," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.style("text-anchor",e.anchor),r.style("font-family",e.fontFamily),r.style("font-size",e.fontSize),r.style("font-weight",e.fontWeight),r.attr("fill",e.fill),void 0!==e.class&&r.attr("class",e.class);var i=r.append("tspan");return i.attr("x",e.x+2*e.textMargin),i.attr("fill",e.fill),i.text(n),r},ym=lm((function(t,e,n){if(!t)return t;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),Ng.lineBreakRegex.test(t))return t;var r=t.split(" "),i=[],a="";return r.forEach((function(t,o){var s=bm("".concat(t," "),n),c=bm(a,n);if(s>e){var l=vm(t,e,"-",n),A=l.hyphenatedStrings,u=l.remainingWord;i.push.apply(i,[a].concat(Zg(A))),a=u}else c+s>=e?(i.push(a),a=t):a=[a,t].filter(Boolean).join(" ");o+1===r.length&&i.push(a)})),i.filter((function(t){return""!==t})).join(n.joinWith)}),(function(t,e,n){return"".concat(t,"-").concat(e,"-").concat(n.fontSize,"-").concat(n.fontWeight,"-").concat(n.fontFamily,"-").concat(n.joinWith)})),vm=lm((function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);var i=t.split(""),a=[],o="";return i.forEach((function(t,s){var c="".concat(o).concat(t);if(bm(c,r)>=e){var l=s+1,A=i.length===l,u="".concat(c).concat(n);a.push(A?c:u),o=""}else o=c})),{hyphenatedStrings:a,remainingWord:o}}),(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;return"".concat(t,"-").concat(e,"-").concat(n,"-").concat(r.fontSize,"-").concat(r.fontWeight,"-").concat(r.fontFamily)})),bm=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),wm(t,e).width},wm=lm((function(t,e){var n=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),r=n.fontSize,i=n.fontFamily,a=n.fontWeight;if(!t)return{width:0,height:0};var o=["sans-serif",i],s=t.split(Ng.lineBreakRegex),c=[],l=mc("body");if(!l.remove)return{width:0,height:0,lineHeight:0};for(var A=l.append("svg"),u=0,h=o;u<h.length;u++){var f,d=h[u],p=0,g={width:0,height:0,lineHeight:0},m=Xg(s);try{for(m.s();!(f=m.n()).done;){var y=f.value,v={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};v.text=y;var b=mm(A,v).style("font-size",r).style("font-weight",a).style("font-family",d),w=(b._groups||b)[0][0].getBBox();g.width=Math.round(Math.max(g.width,w.width)),p=Math.round(w.height),g.height+=p,g.lineHeight=Math.round(Math.max(g.lineHeight,p))}}catch(t){m.e(t)}finally{m.f()}c.push(g)}return A.remove(),c[isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1]}),(function(t,e){return"".concat(t,"-").concat(e.fontSize,"-").concat(e.fontWeight,"-").concat(e.fontFamily)})),_m=function(t,e,n){var r=new Map;return r.set("height",t),n?(r.set("width","100%"),r.set("style","max-width: ".concat(e,"px;"))):r.set("width",e),r},Em=function(t,e,n,r){!function(t,e){var n,r=Xg(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.attr(i[0],i[1])}}catch(t){r.e(t)}finally{r.f()}}(t,_m(e,n,r))},Cm=function t(e){o.debug("directiveSanitizer called with",e),"object"===Jg(e)&&(e.length?e.forEach((function(e){return t(e)})):Object.keys(e).forEach((function(n){o.debug("Checking key",n),0===n.indexOf("__")&&(o.debug("sanitize deleting __ option",n),delete e[n]),n.indexOf("proto")>=0&&(o.debug("sanitize deleting proto option",n),delete e[n]),n.indexOf("constr")>=0&&(o.debug("sanitize deleting constr option",n),delete e[n]),n.indexOf("themeCSS")>=0&&(o.debug("sanitizing themeCss option"),e[n]=xm(e[n])),Wg.indexOf(n)<0?(o.debug("sanitize deleting option",n),delete e[n]):"object"===Jg(e[n])&&(o.debug("sanitize deleting object",n),t(e[n]))})))},xm=function(t){return(t.match(/\{/g)||[]).length!==(t.match(/\}/g)||[]).length?"{ /* ERROR: Unbalanced CSS */ }":t};const Bm={assignWithDepth:gm,wrapLabel:ym,calculateTextHeight:function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),wm(t,e).height},calculateTextWidth:bm,calculateTextDimensions:wm,calculateSvgSizeAttrs:_m,configureSvgSize:Em,detectInit:function(t,e){var n=sm(t,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){var i=n.map((function(t){return t.args}));Cm(i),r=gm(r,Zg(i))}else r=n.args;if(r){var a=cm(t,e);["config"].forEach((function(t){void 0!==r[t]&&("flowchart-v2"===a&&(a="flowchart"),r[a]=r[t],delete r[t])}))}return r},detectDirective:sm,detectType:cm,isSubstringInArray:function(t,e){for(var n=0;n<e.length;n++)if(e[n].match(t))return n;return-1},interpolateToCurve:Am,calcLabelPosition:function(t){return function(t){var e,n=0;t.forEach((function(t){n+=um(t,e),e=t}));var r=n/2,i=void 0;return e=void 0,t.forEach((function(t){if(e&&!i){var n=um(t,e);if(n<r)r-=n;else{var a=r/n;a<=0&&(i=e),a>=1&&(i={x:t.x,y:t.y}),a>0&&a<1&&(i={x:(1-a)*e.x+a*t.x,y:(1-a)*e.y+a*t.y})}}e=t})),i}(t)},calcCardinalityPosition:function(t,e,n){var r;o.info("our points",e),e[0]!==n&&(e=e.reverse()),e.forEach((function(t){um(t,r),r=t}));var i,a=25;r=void 0,e.forEach((function(t){if(r&&!i){var e=um(t,r);if(e<a)a-=e;else{var n=a/e;n<=0&&(i=r),n>=1&&(i={x:t.x,y:t.y}),n>0&&n<1&&(i={x:(1-n)*r.x+n*t.x,y:(1-n)*r.y+n*t.y})}}r=t}));var s=t?10:5,c=Math.atan2(e[0].y-i.y,e[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(c)*s+(e[0].x+i.x)/2,l.y=-Math.cos(c)*s+(e[0].y+i.y)/2,l},calcTerminalLabelPosition:function(t,e,n){var r,i=JSON.parse(JSON.stringify(n));o.info("our points",i),"start_left"!==e&&"start_right"!==e&&(i=i.reverse()),i.forEach((function(t){um(t,r),r=t}));var a,s=25+t;r=void 0,i.forEach((function(t){if(r&&!a){var e=um(t,r);if(e<s)s-=e;else{var n=s/e;n<=0&&(a=r),n>=1&&(a={x:t.x,y:t.y}),n>0&&n<1&&(a={x:(1-n)*r.x+n*t.x,y:(1-n)*r.y+n*t.y})}}r=t}));var c=10+.5*t,l=Math.atan2(i[0].y-a.y,i[0].x-a.x),A={x:0,y:0};return A.x=Math.sin(l)*c+(i[0].x+a.x)/2,A.y=-Math.cos(l)*c+(i[0].y+a.y)/2,"start_left"===e&&(A.x=Math.sin(l+Math.PI)*c+(i[0].x+a.x)/2,A.y=-Math.cos(l+Math.PI)*c+(i[0].y+a.y)/2),"end_right"===e&&(A.x=Math.sin(l-Math.PI)*c+(i[0].x+a.x)/2-5,A.y=-Math.cos(l-Math.PI)*c+(i[0].y+a.y)/2-5),"end_left"===e&&(A.x=Math.sin(l)*c+(i[0].x+a.x)/2-5,A.y=-Math.cos(l)*c+(i[0].y+a.y)/2-5),A},formatUrl:function(t,e){var n=t.trim();if(n)return"loose"!==e.securityLevel?(0,wg.sanitizeUrl)(n):n},getStylesFromArray:hm,generateId:dm,random:pm,memoize:lm,runFunc:function(t){for(var e,n=t.split("."),r=n.length-1,i=n[r],a=window,o=0;o<r;o++)if(!(a=a[n[o]]))return;for(var s=arguments.length,c=new Array(s>1?s-1:0),l=1;l<s;l++)c[l-1]=arguments[l];(e=a)[i].apply(e,c)},entityDecode:function(t){return nm=nm||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),nm.innerHTML=t,unescape(nm.textContent)},initIdGeneratior:function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.deterministic=e,this.seed=n,this.count=n?n.length:0}var e,n;return e=t,(n=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),directiveSanitizer:Cm,sanitizeCss:xm};function Tm(t){return(Tm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var km,Sm=Object.freeze(qg),Im=gm({},Sm),Nm=[],Mm=gm({},Sm),Fm=function(t,e){for(var n=gm({},t),r={},i=0;i<e.length;i++){var a=e[i];Om(a),r=gm(r,a)}if(n=gm(n,r),r.theme){var o=gm({},km),s=gm(o.themeVariables||{},r.themeVariables);n.themeVariables=Kg[n.theme].getThemeVariables(s)}return Mm=n,n},Dm=function(){return gm({},Im)},Lm=function(){return gm({},Mm)},Om=function t(e){Object.keys(Im.secure).forEach((function(t){void 0!==e[Im.secure[t]]&&(o.debug("Denied attempt to modify a secure key ".concat(Im.secure[t]),e[Im.secure[t]]),delete e[Im.secure[t]])})),Object.keys(e).forEach((function(t){0===t.indexOf("__")&&delete e[t]})),Object.keys(e).forEach((function(n){"string"==typeof e[n]&&(e[n].indexOf("<")>-1||e[n].indexOf(">")>-1||e[n].indexOf("url(data:")>-1)&&delete e[n],"object"===Tm(e[n])&&t(e[n])}))},Rm=function(t){t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),Nm.push(t),Fm(Im,Nm)},Um=function(){Fm(Im,Nm=[])};function Pm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Qm="classid-",Hm=[],Gm={},jm=0,Km=[],$m=function(t){var e="",n=t;if(t.indexOf("~")>0){var r=t.split("~");n=r[0],e=Ng.sanitizeText(r[1],Lm())}return{className:n,type:e}},Ym=function(t){var e=$m(t);void 0===Gm[e.className]&&(Gm[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:Qm+e.className+"-"+jm},jm++)},Vm=function(t){for(var e=Object.keys(Gm),n=0;n<e.length;n++)if(Gm[e[n]].id===t)return Gm[e[n]].domId},zm=function(t,e){var n=$m(t).className,r=Gm[n];if("string"==typeof e){var i=e.trim();i.startsWith("<<")&&i.endsWith(">>")?r.annotations.push(i.substring(2,i.length-2)):i.indexOf(")")>0?r.methods.push(i):i&&r.members.push(i)}},Wm=function(t,e){t.split(",").forEach((function(t){var n=t;t[0].match(/\d/)&&(n=Qm+n),void 0!==Gm[n]&&Gm[n].cssClasses.push(e)}))},qm={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},Xm=function(t){var e=mc(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=mc("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),mc(t).select("svg").selectAll("g.node").on("mouseover",(function(){var t=mc(this);if(null!==t.attr("title")){var n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),t.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),mc(this).classed("hover",!1)}))};Km.push(Xm);var Jm="TB";const Zm={parseDirective:function(t,e,n){sC.parseDirective(this,t,e,n)},getConfig:function(){return Lm().class},addClass:Ym,bindFunctions:function(t){Km.forEach((function(e){e(t)}))},clear:function(){Hm=[],Gm={},(Km=[]).push(Xm)},getClass:function(t){return Gm[t]},getClasses:function(){return Gm},addAnnotation:function(t,e){var n=$m(t).className;Gm[n].annotations.push(e)},getRelations:function(){return Hm},addRelation:function(t){o.debug("Adding relation: "+JSON.stringify(t)),Ym(t.id1),Ym(t.id2),t.id1=$m(t.id1).className,t.id2=$m(t.id2).className,Hm.push(t)},getDirection:function(){return Jm},setDirection:function(t){Jm=t},addMember:zm,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((function(e){return zm(t,e)})))},cleanupLabel:function(t){return":"===t.substring(0,1)?Ng.sanitizeText(t.substr(1).trim(),Lm()):t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:qm,setClickEvent:function(t,e,n){t.split(",").forEach((function(t){(function(t,e,n){var r=Lm(),i=t,a=Vm(i);if("loose"===r.securityLevel&&void 0!==e&&void 0!==Gm[i]){var o=[];if("string"==typeof n){o=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var s=0;s<o.length;s++){var c=o[s].trim();'"'===c.charAt(0)&&'"'===c.charAt(c.length-1)&&(c=c.substr(1,c.length-2)),o[s]=c}}0===o.length&&o.push(a),Km.push((function(){var t=document.querySelector('[id="'.concat(a,'"]'));null!==t&&t.addEventListener("click",(function(){var t;Bm.runFunc.apply(Bm,[e].concat(function(t){if(Array.isArray(t))return Pm(t)}(t=o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Pm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pm(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}),!1)}))}})(t,e,n),Gm[t].haveCallback=!0})),Wm(t,"clickable")},setCssClass:Wm,setLink:function(t,e,n){var r=Lm();t.split(",").forEach((function(t){var i=t;t[0].match(/\d/)&&(i=Qm+i),void 0!==Gm[i]&&(Gm[i].link=Bm.formatUrl(e,r),Gm[i].linkTarget="string"==typeof n?n:"_blank")})),Wm(t,"clickable")},setTooltip:function(t,e){var n=Lm();t.split(",").forEach((function(t){void 0!==e&&(Gm[t].tooltip=Ng.sanitizeText(e,n))}))},lookUpDomId:Vm};var ty=n(681),ey=n.n(ty),ny=n(8282),ry=n.n(ny),iy=n(1362),ay=n.n(iy),oy=0,sy=function(t){var e=t.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),n=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!n?cy(e):n?ly(n):Ay(t)},cy=function(t){var e="",n="";try{var r=t[1]?t[1].trim():"",i=t[2]?t[2].trim():"",a=t[3]?hy(t[3].trim()):"",o=t[4]?t[4].trim():"",s=t[5]?t[5].trim():"";n=r+i+a+" "+o,e=fy(s)}catch(e){n=t}return{displayText:n,cssStyle:e}},ly=function(t){var e="",n="";try{var r=t[1]?t[1].trim():"",i=t[2]?t[2].trim():"",a=t[3]?hy(t[3].trim()):"",o=t[4]?t[4].trim():"";n=r+i+"("+a+")"+(t[5]?" : "+hy(t[5]).trim():""),e=fy(o)}catch(e){n=t}return{displayText:n,cssStyle:e}},Ay=function(t){var e="",n="",r="",i=t.indexOf("("),a=t.indexOf(")");if(i>1&&a>i&&a<=t.length){var o="",s="",c=t.substring(0,1);c.match(/\w/)?s=t.substring(0,i).trim():(c.match(/\+|-|~|#/)&&(o=c),s=t.substring(1,i).trim());var l=t.substring(i+1,a),A=t.substring(a+1,1);n=fy(A),e=o+s+"("+hy(l.trim())+")",a<"".length&&""!==(r=t.substring(a+2).trim())&&(r=" : "+hy(r))}else e=hy(t);return{displayText:e,cssStyle:n}},uy=function(t,e,n,r){var i=sy(e),a=t.append("tspan").attr("x",r.padding).text(i.displayText);""!==i.cssStyle&&a.attr("style",i.cssStyle),n||a.attr("dy",r.textHeight)},hy=function t(e){var n=e;return-1!=e.indexOf("~")?t(n=(n=n.replace("~","<")).replace("~",">")):n},fy=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const dy=function(t,e,n){o.info("Rendering class "+e);var r,i=e.id,a={id:i,label:e.id,width:0,height:0},s=t.append("g").attr("id",Vm(i)).attr("class","classGroup");r=e.link?s.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",n.textHeight+n.padding).attr("x",0):s.append("text").attr("y",n.textHeight+n.padding).attr("x",0);var c=!0;e.annotations.forEach((function(t){var e=r.append("tspan").text("«"+t+"»");c||e.attr("dy",n.textHeight),c=!1}));var l=e.id;void 0!==e.type&&""!==e.type&&(l+="<"+e.type+">");var A=r.append("tspan").text(l).attr("class","title");c||A.attr("dy",n.textHeight);var u=r.node().getBBox().height,h=s.append("line").attr("x1",0).attr("y1",n.padding+u+n.dividerMargin/2).attr("y2",n.padding+u+n.dividerMargin/2),f=s.append("text").attr("x",n.padding).attr("y",u+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");c=!0,e.members.forEach((function(t){uy(f,t,c,n),c=!1}));var d=f.node().getBBox(),p=s.append("line").attr("x1",0).attr("y1",n.padding+u+n.dividerMargin+d.height).attr("y2",n.padding+u+n.dividerMargin+d.height),g=s.append("text").attr("x",n.padding).attr("y",u+2*n.dividerMargin+d.height+n.textHeight).attr("fill","white").attr("class","classText");c=!0,e.methods.forEach((function(t){uy(g,t,c,n),c=!1}));var m=s.node().getBBox(),y=" ";e.cssClasses.length>0&&(y+=e.cssClasses.join(" "));var v=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*n.padding).attr("height",m.height+n.padding+.5*n.dividerMargin).attr("class",y).node().getBBox().width;return r.node().childNodes.forEach((function(t){t.setAttribute("x",(v-t.getBBox().width)/2)})),e.tooltip&&r.insert("title").text(e.tooltip),h.attr("x2",v),p.attr("x2",v),a.width=v,a.height=m.height+n.padding+.5*n.dividerMargin,a};iy.parser.yy=Zm;var py={},gy={dividerMargin:10,padding:5,textHeight:10},my=function(t){var e=Object.entries(py).find((function(e){return e[1].label===t}));if(e)return e[0]};const yy=function(t){Object.keys(t).forEach((function(e){gy[e]=t[e]}))};var vy={extension:function(t,e,n){o.trace("Making markers for ",n),t.append("defs").append("marker").attr("id",e+"-extensionStart").attr("class","marker extension "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(t,e){t.append("defs").append("marker").attr("id",e+"-compositionStart").attr("class","marker composition "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(t,e){t.append("defs").append("marker").attr("id",e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(t,e){t.append("defs").append("marker").attr("id",e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},point:function(t,e){t.append("marker").attr("id",e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(t,e){t.append("marker").attr("id",e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(t,e){t.append("marker").attr("id",e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(t,e){t.append("defs").append("marker").attr("id",e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};function by(t){return(by="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}const wy=function(t,e,n,r){var i,a,s,c,l,A,u=t||"";if("object"===by(u)&&(u=u[0]),Ig(Lm().flowchart.htmlLabels))return u=u.replace(/\\n|\n/g,"<br />"),o.info("vertexText"+u),i={isNode:r,label:u.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")})),labelStyle:e.replace("fill:","color:")},c=(s=mc(document.createElementNS("http://www.w3.org/2000/svg","foreignObject"))).append("xhtml:div"),l=i.label,A=i.isNode?"nodeLabel":"edgeLabel",c.html('<span class="'+A+'" '+(i.labelStyle?'style="'+i.labelStyle+'"':"")+">"+l+"</span>"),(a=i.labelStyle)&&c.attr("style",a),c.style("display","inline-block"),c.style("white-space","nowrap"),c.attr("xmlns","http://www.w3.org/1999/xhtml"),s.node();var h=document.createElementNS("http://www.w3.org/2000/svg","text");h.setAttribute("style",e.replace("color:","fill:"));var f=[];f="string"==typeof u?u.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(u)?u:[];for(var d=0;d<f.length;d++){var p=document.createElementNS("http://www.w3.org/2000/svg","tspan");p.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),p.setAttribute("dy","1em"),p.setAttribute("x","0"),n?p.setAttribute("class","title-row"):p.setAttribute("class","row"),p.textContent=f[d].trim(),h.appendChild(p)}return h};var _y=function(t,e,n,r){var i;i=n||"node default";var a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),o=a.insert("g").attr("class","label").attr("style",e.labelStyle),s="string"==typeof e.labelText?e.labelText:e.labelText[0],c=o.node().appendChild(wy(Bg(rC(s),Lm()),e.labelStyle,!1,r)),l=c.getBBox();if(Ig(Lm().flowchart.htmlLabels)){var A=c.children[0],u=mc(c);l=A.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}var h=e.padding/2;return o.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),{shapeSvg:a,bbox:l,halfPadding:h,label:o}},Ey=function(t,e){var n=e.node().getBBox();t.width=n.width,t.height=n.height};function Cy(t,e,n,r){return t.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+n/2+")")}var xy={},By={},Ty={},ky=function(t,e){return o.trace("In isDecendant",e," ",t," = ",By[e].indexOf(t)>=0),By[e].indexOf(t)>=0},Sy=function t(e,n,r,i){o.warn("Copying children of ",e,"root",i,"data",n.node(e),i);var a=n.children(e)||[];e!==i&&a.push(e),o.warn("Copying (nodes) clusterId",e,"nodes",a),a.forEach((function(a){if(n.children(a).length>0)t(a,n,r,i);else{var s=n.node(a);o.info("cp ",a," to ",i," with parent ",e),r.setNode(a,s),i!==n.parent(a)&&(o.warn("Setting parent",a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(o.debug("Setting parent",a,e),r.setParent(a,e)):(o.info("In copy ",e,"root",i,"data",n.node(e),i),o.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==i,"node!==clusterId",a!==e));var c=n.edges(a);o.debug("Copying Edges",c),c.forEach((function(t){o.info("Edge",t);var a=n.edge(t.v,t.w,t.name);o.info("Edge data",a,i);try{!function(t,e){return o.info("Decendants of ",e," is ",By[e]),o.info("Edge is ",t),t.v!==e&&t.w!==e&&(By[e]?(o.info("Here "),By[e].indexOf(t.v)>=0||!!ky(t.v,e)||!!ky(t.w,e)||By[e].indexOf(t.w)>=0):(o.debug("Tilt, ",e,",not in decendants"),!1))}(t,i)?o.info("Skipping copy of edge ",t.v,"--\x3e",t.w," rootId: ",i," clusterId:",e):(o.info("Copying as ",t.v,t.w,a,t.name),r.setEdge(t.v,t.w,a,t.name),o.info("newGraph edges ",r.edges(),r.edge(r.edges()[0])))}catch(t){o.error(t)}}))}o.debug("Removing node",a),n.removeNode(a)}))},Iy=function t(e,n){o.trace("Searching",e);var r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return o.trace("This is a valid node",e),e;for(var i=0;i<r.length;i++){var a=t(r[i],n);if(a)return o.trace("Found replacement for",e," => ",a),a}},Ny=function(t){return xy[t]&&xy[t].externalConnections&&xy[t]?xy[t].id:t},My=function(t,e){!t||e>10?o.debug("Opting out, no graph "):(o.debug("Opting in, graph "),t.nodes().forEach((function(e){t.children(e).length>0&&(o.warn("Cluster identified",e," Replacement id in edges: ",Iy(e,t)),By[e]=function t(e,n){for(var r=n.children(e),i=[].concat(r),a=0;a<r.length;a++)Ty[r[a]]=e,i=i.concat(t(r[a],n));return i}(e,t),xy[e]={id:Iy(e,t),clusterData:t.node(e)})})),t.nodes().forEach((function(e){var n=t.children(e),r=t.edges();n.length>0?(o.debug("Cluster identified",e,By),r.forEach((function(t){t.v!==e&&t.w!==e&&ky(t.v,e)^ky(t.w,e)&&(o.warn("Edge: ",t," leaves cluster ",e),o.warn("Decendants of XXX ",e,": ",By[e]),xy[e].externalConnections=!0)}))):o.debug("Not a cluster ",e,By)})),t.edges().forEach((function(e){var n=t.edge(e);o.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),o.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));var r=e.v,i=e.w;o.warn("Fix XXX",xy,"ids:",e.v,e.w,"Translateing: ",xy[e.v]," --- ",xy[e.w]),(xy[e.v]||xy[e.w])&&(o.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),r=Ny(e.v),i=Ny(e.w),t.removeEdge(e.v,e.w,e.name),r!==e.v&&(n.fromCluster=e.v),i!==e.w&&(n.toCluster=e.w),o.warn("Fix Replacing with XXX",r,i,e.name),t.setEdge(r,i,n,e.name))})),o.warn("Adjusted Graph",ry().json.write(t)),Fy(t,0),o.trace(xy))},Fy=function t(e,n){if(o.warn("extractor - ",n,ry().json.write(e),e.children("D")),n>10)o.error("Bailing out");else{for(var r=e.nodes(),i=!1,a=0;a<r.length;a++){var s=r[a],c=e.children(s);i=i||c.length>0}if(i){o.debug("Nodes = ",r,n);for(var l=0;l<r.length;l++){var A=r[l];if(o.debug("Extracting node",A,xy,xy[A]&&!xy[A].externalConnections,!e.parent(A),e.node(A),e.children("D")," Depth ",n),xy[A])if(!xy[A].externalConnections&&e.children(A)&&e.children(A).length>0){o.warn("Cluster without external connections, without a parent and with children",A,n);var u="TB"===e.graph().rankdir?"LR":"TB";xy[A]&&xy[A].clusterData&&xy[A].clusterData.dir&&(u=xy[A].clusterData.dir,o.warn("Fixing dir",xy[A].clusterData.dir,u));var h=new(ry().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));o.warn("Old graph before copy",ry().json.write(e)),Sy(A,e,h,A),e.setNode(A,{clusterNode:!0,id:A,clusterData:xy[A].clusterData,labelText:xy[A].labelText,graph:h}),o.warn("New graph after copy node: (",A,")",ry().json.write(h)),o.debug("Old graph after copy",ry().json.write(e))}else o.warn("Cluster ** ",A," **not meeting the criteria !externalConnections:",!xy[A].externalConnections," no parent: ",!e.parent(A)," children ",e.children(A)&&e.children(A).length>0,e.children("D"),n),o.debug(xy);else o.debug("Not a cluster",A,n)}r=e.nodes(),o.warn("New list of nodes",r);for(var f=0;f<r.length;f++){var d=r[f],p=e.node(d);o.warn(" Now next level",d,p),p.clusterNode&&t(p.graph,n+1)}}else o.debug("Done, no node has children",e.nodes())}},Dy=function(t){return function t(e,n){if(0===n.length)return[];var r=Object.assign(n);return n.forEach((function(n){var i=e.children(n),a=t(e,i);r=r.concat(a)})),r}(t,t.children())},Ly=n(3841);function Oy(t,e){return t*e>0}const Ry=function(t,e,n,r){var i,a,o,s,c,l,A,u,h,f,d,p,g;if(i=e.y-t.y,o=t.x-e.x,c=e.x*t.y-t.x*e.y,h=i*n.x+o*n.y+c,f=i*r.x+o*r.y+c,!(0!==h&&0!==f&&Oy(h,f)||(a=r.y-n.y,s=n.x-r.x,l=r.x*n.y-n.x*r.y,A=a*t.x+s*t.y+l,u=a*e.x+s*e.y+l,0!==A&&0!==u&&Oy(A,u)||0==(d=i*s-a*o))))return p=Math.abs(d/2),{x:(g=o*l-s*c)<0?(g-p)/d:(g+p)/d,y:(g=a*c-i*l)<0?(g-p)/d:(g+p)/d}},Uy=function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,l=t.height/2;return Math.abs(s)*c>Math.abs(o)*l?(s<0&&(l=-l),n=0===s?0:l*o/s,r=l):(o<0&&(c=-c),n=c,r=0===o?0:c*s/o),{x:i+n,y:a+r}},Py=(n.n(Ly)(),function(t,e,n){return function(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,s=a-r.y,c=Math.sqrt(e*e*s*s+n*n*o*o),l=Math.abs(e*n*o/c);r.x<i&&(l=-l);var A=Math.abs(e*n*s/c);return r.y<a&&(A=-A),{x:i+l,y:a+A}}(t,e,e,n)}),Qy=function(t,e,n){var r=t.x,i=t.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)})):(o=Math.min(o,e.x),s=Math.min(s,e.y));for(var c=r-t.width/2-o,l=i-t.height/2-s,A=0;A<e.length;A++){var u=e[A],h=e[A<e.length-1?A+1:0],f=Ry(t,n,{x:c+u.x,y:l+u.y},{x:c+h.x,y:l+h.y});f&&a.push(f)}return a.length?(a.length>1&&a.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,s=e.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1})),a[0]):t},Hy=Uy;function Gy(t){return(Gy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var jy=function(t,e,n){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=70,a=10;"LR"===n&&(i=10,a=70);var o=r.append("rect").attr("x",-1*i/2).attr("y",-1*a/2).attr("width",i).attr("height",a).attr("class","fork-join");return Ey(e,o),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return Hy(e,t)},r},Ky={question:function(t,e){var n=_y(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding+(i.height+e.padding),s=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];o.info("Question main (Circle)");var c=Cy(r,a,a,s);return c.attr("style",e.style),Ey(e,c),e.intersect=function(t){return o.warn("Intersect called"),Qy(e,s,t)},r},rect:function(t,e){var n=_y(t,e,"node "+e.classes,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding;o.trace("Classes = ",e.classes);var s=r.insert("rect",":first-child"),c=i.width+e.padding,l=i.height+e.padding;if(s.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",c).attr("height",l),e.props){var A=new Set(Object.keys(e.props));e.props.borders&&(function(t,e,n,r){var i=[],a=function(t){i.push(t),i.push(0)},s=function(t){i.push(0),i.push(t)};e.includes("t")?(o.debug("add top border"),a(n)):s(n),e.includes("r")?(o.debug("add right border"),a(r)):s(r),e.includes("b")?(o.debug("add bottom border"),a(n)):s(n),e.includes("l")?(o.debug("add left border"),a(r)):s(r),t.attr("stroke-dasharray",i.join(" "))}(s,e.props.borders,c,l),A.delete("borders")),A.forEach((function(t){o.warn("Unknown node property ".concat(t))}))}return Ey(e,s),e.intersect=function(t){return Hy(e,t)},r},rectWithTitle:function(t,e){var n;n=e.classes?"node "+e.classes:"node default";var r,i=t.insert("g").attr("class",n).attr("id",e.domId||e.id),a=i.insert("rect",":first-child"),s=i.insert("line"),c=i.insert("g").attr("class","label"),l=e.labelText.flat?e.labelText.flat():e.labelText;r="object"===Gy(l)?l[0]:l,o.info("Label text abc79",r,l,"object"===Gy(l));var A=c.node().appendChild(wy(r,e.labelStyle,!0,!0)),u={width:0,height:0};if(Ig(Lm().flowchart.htmlLabels)){var h=A.children[0],f=mc(A);u=h.getBoundingClientRect(),f.attr("width",u.width),f.attr("height",u.height)}o.info("Text 2",l);var d=l.slice(1,l.length),p=A.getBBox(),g=c.node().appendChild(wy(d.join?d.join("<br/>"):d,e.labelStyle,!0,!0));if(Ig(Lm().flowchart.htmlLabels)){var m=g.children[0],y=mc(g);u=m.getBoundingClientRect(),y.attr("width",u.width),y.attr("height",u.height)}var v=e.padding/2;return mc(g).attr("transform","translate( "+(u.width>p.width?0:(p.width-u.width)/2)+", "+(p.height+v+5)+")"),mc(A).attr("transform","translate( "+(u.width<p.width?0:-(p.width-u.width)/2)+", 0)"),u=c.node().getBBox(),c.attr("transform","translate("+-u.width/2+", "+(-u.height/2-v+3)+")"),a.attr("class","outer title-state").attr("x",-u.width/2-v).attr("y",-u.height/2-v).attr("width",u.width+e.padding).attr("height",u.height+e.padding),s.attr("class","divider").attr("x1",-u.width/2-v).attr("x2",u.width/2+v).attr("y1",-u.height/2-v+p.height+v).attr("y2",-u.height/2-v+p.height+v),Ey(e,a),e.intersect=function(t){return Hy(e,t)},i},choice:function(t,e){var n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return n.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map((function(t){return t.x+","+t.y})).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return Py(e,14,t)},n},circle:function(t,e){var n=_y(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding,s=r.insert("circle",":first-child");return s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),o.info("Circle main"),Ey(e,s),e.intersect=function(t){return o.info("Circle intersect",e,i.width/2+a,t),Py(e,i.width/2+a,t)},r},stadium:function(t,e){var n=_y(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.height+e.padding,o=i.width+a/4+e.padding,s=r.insert("rect",":first-child").attr("style",e.style).attr("rx",a/2).attr("ry",a/2).attr("x",-o/2).attr("y",-a/2).attr("width",o).attr("height",a);return Ey(e,s),e.intersect=function(t){return Hy(e,t)},r},hexagon:function(t,e){var n=_y(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.height+e.padding,o=a/4,s=i.width+2*o+e.padding,c=[{x:o,y:0},{x:s-o,y:0},{x:s,y:-a/2},{x:s-o,y:-a},{x:o,y:-a},{x:0,y:-a/2}],l=Cy(r,s,a,c);return l.attr("style",e.style),Ey(e,l),e.intersect=function(t){return Qy(e,c,t)},r},rect_left_inv_arrow:function(t,e){var n=_y(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:-o/2,y:0},{x:a,y:0},{x:a,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}];return Cy(r,a,o,s).attr("style",e.style),e.width=a+o,e.height=o,e.intersect=function(t){return Qy(e,s,t)},r},lean_right:function(t,e){var n=_y(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:-2*o/6,y:0},{x:a-o/6,y:0},{x:a+2*o/6,y:-o},{x:o/6,y:-o}],c=Cy(r,a,o,s);return c.attr("style",e.style),Ey(e,c),e.intersect=function(t){return Qy(e,s,t)},r},lean_left:function(t,e){var n=_y(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:2*o/6,y:0},{x:a+o/6,y:0},{x:a-2*o/6,y:-o},{x:-o/6,y:-o}],c=Cy(r,a,o,s);return c.attr("style",e.style),Ey(e,c),e.intersect=function(t){return Qy(e,s,t)},r},trapezoid:function(t,e){var n=_y(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:-2*o/6,y:0},{x:a+2*o/6,y:0},{x:a-o/6,y:-o},{x:o/6,y:-o}],c=Cy(r,a,o,s);return c.attr("style",e.style),Ey(e,c),e.intersect=function(t){return Qy(e,s,t)},r},inv_trapezoid:function(t,e){var n=_y(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:o/6,y:0},{x:a-o/6,y:0},{x:a+2*o/6,y:-o},{x:-2*o/6,y:-o}],c=Cy(r,a,o,s);return c.attr("style",e.style),Ey(e,c),e.intersect=function(t){return Qy(e,s,t)},r},rect_right_inv_arrow:function(t,e){var n=_y(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:0,y:0},{x:a+o/2,y:0},{x:a,y:-o/2},{x:a+o/2,y:-o},{x:0,y:-o}],c=Cy(r,a,o,s);return c.attr("style",e.style),Ey(e,c),e.intersect=function(t){return Qy(e,s,t)},r},cylinder:function(t,e){var n=_y(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=a/2,s=o/(2.5+a/50),c=i.height+s+e.padding,l="M 0,"+s+" a "+o+","+s+" 0,0,0 "+a+" 0 a "+o+","+s+" 0,0,0 "+-a+" 0 l 0,"+c+" a "+o+","+s+" 0,0,0 "+a+" 0 l 0,"+-c,A=r.attr("label-offset-y",s).insert("path",":first-child").attr("style",e.style).attr("d",l).attr("transform","translate("+-a/2+","+-(c/2+s)+")");return Ey(e,A),e.intersect=function(t){var n=Hy(e,t),r=n.x-e.x;if(0!=o&&(Math.abs(r)<e.width/2||Math.abs(r)==e.width/2&&Math.abs(n.y-e.y)>e.height/2-s)){var i=s*s*(1-r*r/(o*o));0!=i&&(i=Math.sqrt(i)),i=s-i,t.y-e.y>0&&(i=-i),n.y+=i}return n},r},start:function(t,e){var n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=n.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Ey(e,r),e.intersect=function(t){return Py(e,7,t)},n},end:function(t,e){var n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=n.insert("circle",":first-child"),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),r.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Ey(e,i),e.intersect=function(t){return Py(e,7,t)},n},note:function(t,e){var n=_y(t,e,"node "+e.classes,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding;o.info("Classes = ",e.classes);var s=r.insert("rect",":first-child");return s.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),Ey(e,s),e.intersect=function(t){return Hy(e,t)},r},subroutine:function(t,e){var n=_y(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:0,y:0},{x:a,y:0},{x:a,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],c=Cy(r,a,o,s);return c.attr("style",e.style),Ey(e,c),e.intersect=function(t){return Qy(e,s,t)},r},fork:jy,join:jy,class_box:function(t,e){var n,r=e.padding/2;n=e.classes?"node "+e.classes:"node default";var i=t.insert("g").attr("class",n).attr("id",e.domId||e.id),a=i.insert("rect",":first-child"),o=i.insert("line"),s=i.insert("line"),c=0,l=4,A=i.insert("g").attr("class","label"),u=0,h=e.classData.annotations&&e.classData.annotations[0],f=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",d=A.node().appendChild(wy(f,e.labelStyle,!0,!0)),p=d.getBBox();if(Ig(Lm().flowchart.htmlLabels)){var g=d.children[0],m=mc(d);p=g.getBoundingClientRect(),m.attr("width",p.width),m.attr("height",p.height)}e.classData.annotations[0]&&(l+=p.height+4,c+=p.width);var y=e.classData.id;void 0!==e.classData.type&&""!==e.classData.type&&(Lm().flowchart.htmlLabels?y+="&lt;"+e.classData.type+"&gt;":y+="<"+e.classData.type+">");var v=A.node().appendChild(wy(y,e.labelStyle,!0,!0));mc(v).attr("class","classTitle");var b=v.getBBox();if(Ig(Lm().flowchart.htmlLabels)){var w=v.children[0],_=mc(v);b=w.getBoundingClientRect(),_.attr("width",b.width),_.attr("height",b.height)}l+=b.height+4,b.width>c&&(c=b.width);var E=[];e.classData.members.forEach((function(t){var n=sy(t),r=n.displayText;Lm().flowchart.htmlLabels&&(r=r.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var i=A.node().appendChild(wy(r,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0)),a=i.getBBox();if(Ig(Lm().flowchart.htmlLabels)){var o=i.children[0],s=mc(i);a=o.getBoundingClientRect(),s.attr("width",a.width),s.attr("height",a.height)}a.width>c&&(c=a.width),l+=a.height+4,E.push(i)})),l+=8;var C=[];if(e.classData.methods.forEach((function(t){var n=sy(t),r=n.displayText;Lm().flowchart.htmlLabels&&(r=r.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var i=A.node().appendChild(wy(r,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0)),a=i.getBBox();if(Ig(Lm().flowchart.htmlLabels)){var o=i.children[0],s=mc(i);a=o.getBoundingClientRect(),s.attr("width",a.width),s.attr("height",a.height)}a.width>c&&(c=a.width),l+=a.height+4,C.push(i)})),l+=8,h){var x=(c-p.width)/2;mc(d).attr("transform","translate( "+(-1*c/2+x)+", "+-1*l/2+")"),u=p.height+4}var B=(c-b.width)/2;return mc(v).attr("transform","translate( "+(-1*c/2+B)+", "+(-1*l/2+u)+")"),u+=b.height+4,o.attr("class","divider").attr("x1",-c/2-r).attr("x2",c/2+r).attr("y1",-l/2-r+8+u).attr("y2",-l/2-r+8+u),u+=8,E.forEach((function(t){mc(t).attr("transform","translate( "+-c/2+", "+(-1*l/2+u+4)+")"),u+=b.height+4})),u+=8,s.attr("class","divider").attr("x1",-c/2-r).attr("x2",c/2+r).attr("y1",-l/2-r+8+u).attr("y2",-l/2-r+8+u),u+=8,C.forEach((function(t){mc(t).attr("transform","translate( "+-c/2+", "+(-1*l/2+u)+")"),u+=b.height+4})),a.attr("class","outer title-state").attr("x",-c/2-r).attr("y",-l/2-r).attr("width",c+e.padding).attr("height",l+e.padding),Ey(e,a),e.intersect=function(t){return Hy(e,t)},i}},$y={},Yy=function(t){var e=$y[t.id];o.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");var n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},Vy={rect:function(t,e){o.trace("Creating subgraph rect for ",e.id,e);var n=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),a=i.node().appendChild(wy(e.labelText,e.labelStyle,void 0,!0)),s=a.getBBox();if(Ig(Lm().flowchart.htmlLabels)){var c=a.children[0],l=mc(a);s=c.getBoundingClientRect(),l.attr("width",s.width),l.attr("height",s.height)}var A=0*e.padding,u=A/2,h=e.width<=s.width+A?s.width+A:e.width;e.width<=s.width+A?e.diff=(s.width-e.width)/2:e.diff=-e.padding/2,o.trace("Data ",e,JSON.stringify(e)),r.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-h/2).attr("y",e.y-e.height/2-u).attr("width",h).attr("height",e.height+A),i.attr("transform","translate("+(e.x-s.width/2)+", "+(e.y-e.height/2+e.padding/3)+")");var f=r.node().getBBox();return e.width=f.width,e.height=f.height,e.intersect=function(t){return Uy(e,t)},n},roundedWithTitle:function(t,e){var n=t.insert("g").attr("class",e.classes).attr("id",e.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),a=n.append("rect"),o=i.node().appendChild(wy(e.labelText,e.labelStyle,void 0,!0)),s=o.getBBox();if(Ig(Lm().flowchart.htmlLabels)){var c=o.children[0],l=mc(o);s=c.getBoundingClientRect(),l.attr("width",s.width),l.attr("height",s.height)}s=o.getBBox();var A=0*e.padding,u=A/2,h=e.width<=s.width+e.padding?s.width+e.padding:e.width;e.width<=s.width+e.padding?e.diff=(s.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,r.attr("class","outer").attr("x",e.x-h/2-u).attr("y",e.y-e.height/2-u).attr("width",h+A).attr("height",e.height+A),a.attr("class","inner").attr("x",e.x-h/2-u).attr("y",e.y-e.height/2-u+s.height-1).attr("width",h+A).attr("height",e.height+A-s.height-3),i.attr("transform","translate("+(e.x-s.width/2)+", "+(e.y-e.height/2-e.padding/3+(Ig(Lm().flowchart.htmlLabels)?5:3))+")");var f=r.node().getBBox();return e.height=f.height,e.intersect=function(t){return Uy(e,t)},n},noteGroup:function(t,e){var n=t.insert("g").attr("class","note-cluster").attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,a=i/2;r.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");var o=r.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return Uy(e,t)},n},divider:function(t,e){var n=t.insert("g").attr("class",e.classes).attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,a=i/2;r.attr("class","divider").attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2).attr("width",e.width+i).attr("height",e.height+i);var o=r.node().getBBox();return e.width=o.width,e.height=o.height,e.diff=-e.padding/2,e.intersect=function(t){return Uy(e,t)},n}},zy={},Wy={},qy={};function Xy(t,e){Lm().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}var Jy=function(t,e){o.warn("abc88 cutPathAtIntersect",t,e);var n=[],r=t[0],i=!1;return t.forEach((function(t){if(o.info("abc88 checking point",t,e),function(t,e){var n=t.x,r=t.y,i=Math.abs(e.x-n),a=Math.abs(e.y-r),o=t.width/2,s=t.height/2;return i>=o||a>=s}(e,t)||i)o.warn("abc88 outside",t,r),r=t,i||n.push(t);else{var a=function(t,e,n){o.warn("intersection calc abc89:\n outsidePoint: ".concat(JSON.stringify(e),"\n insidePoint : ").concat(JSON.stringify(n),"\n node : x:").concat(t.x," y:").concat(t.y," w:").concat(t.width," h:").concat(t.height));var r=t.x,i=t.y,a=Math.abs(r-n.x),s=t.width/2,c=n.x<e.x?s-a:s+a,l=t.height/2,A=Math.abs(e.y-n.y),u=Math.abs(e.x-n.x);if(Math.abs(i-e.y)*s>Math.abs(r-e.x)*l){var h=n.y<e.y?e.y-l-i:i-l-e.y;c=u*h/A;var f={x:n.x<e.x?n.x+c:n.x-u+c,y:n.y<e.y?n.y+A-h:n.y-A+h};return 0===c&&(f.x=e.x,f.y=e.y),0===u&&(f.x=e.x),0===A&&(f.y=e.y),o.warn("abc89 topp/bott calc, Q ".concat(A,", q ").concat(h,", R ").concat(u,", r ").concat(c),f),f}var d=A*(c=n.x<e.x?e.x-s-r:r-s-e.x)/u,p=n.x<e.x?n.x+u-c:n.x-u+c,g=n.y<e.y?n.y+d:n.y-d;return o.warn("sides calc abc89, Q ".concat(A,", q ").concat(d,", R ").concat(u,", r ").concat(c),{_x:p,_y:g}),0===c&&(p=e.x,g=e.y),0===u&&(p=e.x),0===A&&(g=e.y),{x:p,y:g}}(e,r,t);o.warn("abc88 inside",t,r,a),o.warn("abc88 intersection",a);var s=!1;n.forEach((function(t){s=s||t.x===a.x&&t.y===a.y})),n.find((function(t){return t.x===a.x&&t.y===a.y}))?o.warn("abc88 no intersect",a,n):n.push(a),i=!0}})),o.warn("abc88 returning points",n),n},Zy=function t(e,n,r,i){o.info("Graph in recursive render: XXX",ry().json.write(n),i);var a=n.graph().rankdir;o.trace("Dir in recursive render - dir:",a);var s=e.insert("g").attr("class","root");n.nodes()?o.info("Recursive render XXX",n.nodes()):o.info("No nodes found for",n),n.edges().length>0&&o.trace("Recursive edges",n.edge(n.edges()[0]));var c=s.insert("g").attr("class","clusters"),l=s.insert("g").attr("class","edgePaths"),A=s.insert("g").attr("class","edgeLabels"),u=s.insert("g").attr("class","nodes");n.nodes().forEach((function(e){var s=n.node(e);if(void 0!==i){var c=JSON.parse(JSON.stringify(i.clusterData));o.info("Setting data for cluster XXX (",e,") ",c,i),n.setNode(i.id,c),n.parent(e)||(o.trace("Setting parent",e,i.id),n.setParent(e,i.id,c))}if(o.info("(Insert) Node XXX"+e+": "+JSON.stringify(n.node(e))),s&&s.clusterNode){o.info("Cluster identified",e,s.width,n.node(e));var l=t(u,s.graph,r,n.node(e)),A=l.elem;Ey(s,A),s.diff=l.diff||0,o.info("Node bounds (abc123)",e,s,s.width,s.x,s.y),function(t,e){$y[e.id]=t}(A,s),o.warn("Recursive render complete ",A,s)}else n.children(e).length>0?(o.info("Cluster - the non recursive path XXX",e,s.id,s,n),o.info(Iy(s.id,n)),xy[s.id]={id:Iy(s.id,n),node:s}):(o.info("Node - the non recursive path",e,s.id,s),function(t,e,n){var r,i;e.link?(r=t.insert("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget||"_blank"),i=Ky[e.shape](r,e,n)):r=i=Ky[e.shape](t,e,n),e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),$y[e.id]=r,e.haveCallback&&$y[e.id].attr("class",$y[e.id].attr("class")+" clickable")}(u,n.node(e),a))})),n.edges().forEach((function(t){var e=n.edge(t.v,t.w,t.name);o.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(n.edge(t))),o.info("Fix",xy,"ids:",t.v,t.w,"Translateing: ",xy[t.v],xy[t.w]),function(t,e){var n=wy(e.label,e.labelStyle),r=t.insert("g").attr("class","edgeLabel"),i=r.insert("g").attr("class","label");i.node().appendChild(n);var a,o=n.getBBox();if(Ig(Lm().flowchart.htmlLabels)){var s=n.children[0],c=mc(n);o=s.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}if(i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),Wy[e.id]=r,e.width=o.width,e.height=o.height,e.startLabelLeft){var l=wy(e.startLabelLeft,e.labelStyle),A=t.insert("g").attr("class","edgeTerminals"),u=A.insert("g").attr("class","inner");a=u.node().appendChild(l);var h=l.getBBox();u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),qy[e.id]||(qy[e.id]={}),qy[e.id].startLeft=A,Xy(a,e.startLabelLeft)}if(e.startLabelRight){var f=wy(e.startLabelRight,e.labelStyle),d=t.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner");a=d.node().appendChild(f),p.node().appendChild(f);var g=f.getBBox();p.attr("transform","translate("+-g.width/2+", "+-g.height/2+")"),qy[e.id]||(qy[e.id]={}),qy[e.id].startRight=d,Xy(a,e.startLabelRight)}if(e.endLabelLeft){var m=wy(e.endLabelLeft,e.labelStyle),y=t.insert("g").attr("class","edgeTerminals"),v=y.insert("g").attr("class","inner");a=v.node().appendChild(m);var b=m.getBBox();v.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),y.node().appendChild(m),qy[e.id]||(qy[e.id]={}),qy[e.id].endLeft=y,Xy(a,e.endLabelLeft)}if(e.endLabelRight){var w=wy(e.endLabelRight,e.labelStyle),_=t.insert("g").attr("class","edgeTerminals"),E=_.insert("g").attr("class","inner");a=E.node().appendChild(w);var C=w.getBBox();E.attr("transform","translate("+-C.width/2+", "+-C.height/2+")"),_.node().appendChild(w),qy[e.id]||(qy[e.id]={}),qy[e.id].endRight=_,Xy(a,e.endLabelRight)}}(A,e)})),n.edges().forEach((function(t){o.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t))})),o.info("#############################################"),o.info("### Layout ###"),o.info("#############################################"),o.info(n),ey().layout(n),o.info("Graph after layout:",ry().json.write(n));var h=0;return Dy(n).forEach((function(t){var e=n.node(t);o.info("Position "+t+": "+JSON.stringify(n.node(t))),o.info("Position "+t+": ("+e.x,","+e.y,") width: ",e.width," height: ",e.height),e&&e.clusterNode?Yy(e):n.children(t).length>0?(function(t,e){o.trace("Inserting cluster");var n=e.shape||"rect";zy[e.id]=Vy[n](t,e)}(c,e),xy[e.id].node=e):Yy(e)})),n.edges().forEach((function(t){var e=n.edge(t);o.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e),e),function(t,e){o.info("Moving label abc78 ",t.id,t.label,Wy[t.id]);var n=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){var r=Wy[t.id],i=t.x,a=t.y;if(n){var s=Bm.calcLabelPosition(n);o.info("Moving label from (",i,",",a,") to (",s.x,",",s.y,") abc78")}r.attr("transform","translate("+i+", "+a+")")}if(t.startLabelLeft){var c=qy[t.id].startLeft,l=t.x,A=t.y;if(n){var u=Bm.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",n);l=u.x,A=u.y}c.attr("transform","translate("+l+", "+A+")")}if(t.startLabelRight){var h=qy[t.id].startRight,f=t.x,d=t.y;if(n){var p=Bm.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",n);f=p.x,d=p.y}h.attr("transform","translate("+f+", "+d+")")}if(t.endLabelLeft){var g=qy[t.id].endLeft,m=t.x,y=t.y;if(n){var v=Bm.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",n);m=v.x,y=v.y}g.attr("transform","translate("+m+", "+y+")")}if(t.endLabelRight){var b=qy[t.id].endRight,w=t.x,_=t.y;if(n){var E=Bm.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",n);w=E.x,_=E.y}b.attr("transform","translate("+w+", "+_+")")}}(e,function(t,e,n,r,i,a){var s=n.points,c=!1,l=a.node(e.v),A=a.node(e.w);o.info("abc88 InsertEdge: ",n),A.intersect&&l.intersect&&((s=s.slice(1,n.points.length-1)).unshift(l.intersect(s[0])),o.info("Last point",s[s.length-1],A,A.intersect(s[s.length-1])),s.push(A.intersect(s[s.length-1]))),n.toCluster&&(o.info("to cluster abc88",r[n.toCluster]),s=Jy(n.points,r[n.toCluster].node),c=!0),n.fromCluster&&(o.info("from cluster abc88",r[n.fromCluster]),s=Jy(s.reverse(),r[n.fromCluster].node).reverse(),c=!0);var u,h=s.filter((function(t){return!Number.isNaN(t.y)}));u=("graph"===i||"flowchart"===i)&&n.curve||al;var f,d=Zc().x((function(t){return t.x})).y((function(t){return t.y})).curve(u);switch(n.thickness){case"normal":f="edge-thickness-normal";break;case"thick":f="edge-thickness-thick";break;default:f=""}switch(n.pattern){case"solid":f+=" edge-pattern-solid";break;case"dotted":f+=" edge-pattern-dotted";break;case"dashed":f+=" edge-pattern-dashed"}var p=t.append("path").attr("d",d(h)).attr("id",n.id).attr("class"," "+f+(n.classes?" "+n.classes:"")).attr("style",n.style),g="";switch(Lm().state.arrowMarkerAbsolute&&(g=(g=(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),o.info("arrowTypeStart",n.arrowTypeStart),o.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":p.attr("marker-start","url("+g+"#"+i+"-crossStart)");break;case"arrow_point":p.attr("marker-start","url("+g+"#"+i+"-pointStart)");break;case"arrow_barb":p.attr("marker-start","url("+g+"#"+i+"-barbStart)");break;case"arrow_circle":p.attr("marker-start","url("+g+"#"+i+"-circleStart)");break;case"aggregation":p.attr("marker-start","url("+g+"#"+i+"-aggregationStart)");break;case"extension":p.attr("marker-start","url("+g+"#"+i+"-extensionStart)");break;case"composition":p.attr("marker-start","url("+g+"#"+i+"-compositionStart)");break;case"dependency":p.attr("marker-start","url("+g+"#"+i+"-dependencyStart)")}switch(n.arrowTypeEnd){case"arrow_cross":p.attr("marker-end","url("+g+"#"+i+"-crossEnd)");break;case"arrow_point":p.attr("marker-end","url("+g+"#"+i+"-pointEnd)");break;case"arrow_barb":p.attr("marker-end","url("+g+"#"+i+"-barbEnd)");break;case"arrow_circle":p.attr("marker-end","url("+g+"#"+i+"-circleEnd)");break;case"aggregation":p.attr("marker-end","url("+g+"#"+i+"-aggregationEnd)");break;case"extension":p.attr("marker-end","url("+g+"#"+i+"-extensionEnd)");break;case"composition":p.attr("marker-end","url("+g+"#"+i+"-compositionEnd)");break;case"dependency":p.attr("marker-end","url("+g+"#"+i+"-dependencyEnd)")}var m={};return c&&(m.updatedPath=s),m.originalPath=n.points,m}(l,t,e,xy,r,n))})),n.nodes().forEach((function(t){var e=n.node(t);o.info(t,e.type,e.diff),"group"===e.type&&(h=e.diff)})),{elem:s,diff:h}},tv=function(t,e,n,r,i){(function(t,e,n,r){e.forEach((function(e){vy[e](t,n,r)}))})(t,n,r,i),$y={},Wy={},qy={},zy={},By={},Ty={},xy={},o.warn("Graph at first:",ry().json.write(e)),My(e),o.warn("Graph after:",ry().json.write(e)),Zy(t,e,r)};iy.parser.yy=Zm;var ev={dividerMargin:10,padding:5,textHeight:10};function nv(t){var e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;default:e="none"}return e}var rv={},iv=[],av="",ov=function(t){return void 0===rv[t]&&(rv[t]={attributes:[]},o.info("Added new entity :",t)),rv[t]};const sv={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,n){sC.parseDirective(this,t,e,n)},getConfig:function(){return Lm().er},addEntity:ov,addAttributes:function(t,e){var n,r=ov(t);for(n=e.length-1;n>=0;n--)r.attributes.push(e[n]),o.debug("Added attribute ",e[n].attributeName)},getEntities:function(){return rv},addRelationship:function(t,e,n,r){var i={entityA:t,roleA:e,entityB:n,relSpec:r};iv.push(i),o.debug("Added new relationship :",i)},getRelationships:function(){return iv},clear:function(){rv={},iv=[],av=""},setTitle:function(t){av=t},getTitle:function(){return av}};var cv=n(5890),lv=n.n(cv),Av={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};const uv=Av;var hv={},fv=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},dv=0;const pv=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)hv[e[n]]=t[e[n]]};function gv(t){return(gv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var yv,vv,bv="flowchart-",wv=0,_v=Lm(),Ev={},Cv=[],xv=[],Bv=[],Tv={},kv={},Sv=0,Iv=!0,Nv=[],Mv=function(t){for(var e=Object.keys(Ev),n=0;n<e.length;n++)if(Ev[e[n]].id===t)return Ev[e[n]].domId;return t},Fv=function(t,e,n,r){var i={start:t,end:e,type:void 0,text:""};void 0!==(r=n.text)&&(i.text=Ng.sanitizeText(r.trim(),_v),'"'===i.text[0]&&'"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1))),void 0!==n&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length),Cv.push(i)},Dv=function(t,e){t.split(",").forEach((function(t){var n=t;void 0!==Ev[n]&&Ev[n].classes.push(e),void 0!==Tv[n]&&Tv[n].classes.push(e)}))},Lv=function(t){var e=mc(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=mc("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),mc(t).select("svg").selectAll("g.node").on("mouseover",(function(){var t=mc(this);if(null!==t.attr("title")){var n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),t.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),mc(this).classed("hover",!1)}))};Nv.push(Lv);var Ov=function(t){for(var e=0;e<Bv.length;e++)if(Bv[e].id===t)return e;return-1},Rv=-1,Uv=[],Pv=function(t,e){var n=!1;return t.forEach((function(t){t.nodes.indexOf(e)>=0&&(n=!0)})),n},Qv=function(t,e){var n=[];return t.nodes.forEach((function(r,i){Pv(e,r)||n.push(t.nodes[i])})),{nodes:n}};const Hv={parseDirective:function(t,e,n){sC.parseDirective(this,t,e,n)},defaultConfig:function(){return Sm.flowchart},addVertex:function(t,e,n,r,i,a){var o,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=t;void 0!==c&&0!==c.trim().length&&(void 0===Ev[c]&&(Ev[c]={id:c,domId:bv+c+"-"+wv,styles:[],classes:[]}),wv++,void 0!==e?(_v=Lm(),'"'===(o=Ng.sanitizeText(e.trim(),_v))[0]&&'"'===o[o.length-1]&&(o=o.substring(1,o.length-1)),Ev[c].text=o):void 0===Ev[c].text&&(Ev[c].text=t),void 0!==n&&(Ev[c].type=n),null!=r&&r.forEach((function(t){Ev[c].styles.push(t)})),null!=i&&i.forEach((function(t){Ev[c].classes.push(t)})),void 0!==a&&(Ev[c].dir=a),Ev[c].props=s)},lookUpDomId:Mv,addLink:function(t,e,n,r){var i,a;for(i=0;i<t.length;i++)for(a=0;a<e.length;a++)Fv(t[i],e[a],n,r)},updateLinkInterpolate:function(t,e){t.forEach((function(t){"default"===t?Cv.defaultInterpolate=e:Cv[t].interpolate=e}))},updateLink:function(t,e){t.forEach((function(t){"default"===t?Cv.defaultStyle=e:(-1===Bm.isSubstringInArray("fill",e)&&e.push("fill:none"),Cv[t].style=e)}))},addClass:function(t,e){void 0===xv[t]&&(xv[t]={id:t,styles:[],textStyles:[]}),null!=e&&e.forEach((function(e){if(e.match("color")){var n=e.replace("fill","bgFill").replace("color","fill");xv[t].textStyles.push(n)}xv[t].styles.push(e)}))},setDirection:function(t){(yv=t).match(/.*</)&&(yv="RL"),yv.match(/.*\^/)&&(yv="BT"),yv.match(/.*>/)&&(yv="LR"),yv.match(/.*v/)&&(yv="TB")},setClass:Dv,setTooltip:function(t,e){t.split(",").forEach((function(t){void 0!==e&&(kv["gen-1"===vv?Mv(t):t]=Ng.sanitizeText(e,_v))}))},getTooltip:function(t){return kv[t]},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){!function(t,e,n){var r=Mv(t);if("loose"===Lm().securityLevel&&void 0!==e){var i=[];if("string"==typeof n){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var a=0;a<i.length;a++){var o=i[a].trim();'"'===o.charAt(0)&&'"'===o.charAt(o.length-1)&&(o=o.substr(1,o.length-2)),i[a]=o}}0===i.length&&i.push(t),void 0!==Ev[t]&&(Ev[t].haveCallback=!0,Nv.push((function(){var t=document.querySelector('[id="'.concat(r,'"]'));null!==t&&t.addEventListener("click",(function(){var t;Bm.runFunc.apply(Bm,[e].concat(function(t){if(Array.isArray(t))return mv(t)}(t=i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return mv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mv(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}),!1)})))}}(t,e,n)})),Dv(t,"clickable")},setLink:function(t,e,n){t.split(",").forEach((function(t){void 0!==Ev[t]&&(Ev[t].link=Bm.formatUrl(e,_v),Ev[t].linkTarget=n)})),Dv(t,"clickable")},bindFunctions:function(t){Nv.forEach((function(e){e(t)}))},getDirection:function(){return yv.trim()},getVertices:function(){return Ev},getEdges:function(){return Cv},getClasses:function(){return xv},clear:function(t){Ev={},xv={},Cv=[],(Nv=[]).push(Lv),Bv=[],Tv={},Sv=0,kv=[],Iv=!0,vv=t||"gen-1"},setGen:function(t){vv=t||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(t,e,n){var r=t.trim(),i=n;t===n&&n.match(/\s/)&&(r=void 0);var a=[],s=function(t){var e,n={boolean:{},number:{},string:{}},r=[];return{nodeList:t.filter((function(t){var i=gv(t);return t.stmt&&"dir"===t.stmt?(e=t.value,!1):""!==t.trim()&&(i in n?!n[i].hasOwnProperty(t)&&(n[i][t]=!0):!(r.indexOf(t)>=0)&&r.push(t))})),dir:e}}(a.concat.apply(a,e)),c=s.nodeList,l=s.dir;if(a=c,"gen-1"===vv){o.warn("LOOKING UP");for(var A=0;A<a.length;A++)a[A]=Mv(a[A])}r=r||"subGraph"+Sv,i=i||"",i=Ng.sanitizeText(i,_v),Sv+=1;var u={id:r,nodes:a,title:i.trim(),classes:[],dir:l};return o.info("Adding",u.id,u.nodes,u.dir),u.nodes=Qv(u,Bv).nodes,Bv.push(u),Tv[r]=u,r},getDepthFirstPos:function(t){return Uv[t]},indexNodes:function(){Rv=-1,Bv.length>0&&function t(e,n){var r=Bv[n].nodes;if(!((Rv+=1)>2e3)){if(Uv[Rv]=n,Bv[n].id===e)return{result:!0,count:0};for(var i=0,a=1;i<r.length;){var o=Ov(r[i]);if(o>=0){var s=t(e,o);if(s.result)return{result:!0,count:a+s.count};a+=s.count}i+=1}return{result:!1,count:a}}}("none",Bv.length-1)},getSubGraphs:function(){return Bv},destructLink:function(t,e){var n,r=function(t){var e=t.trim(),n=e.slice(0,-1),r="arrow_open";switch(e.slice(-1)){case"x":r="arrow_cross","x"===e[0]&&(r="double_"+r,n=n.slice(1));break;case">":r="arrow_point","<"===e[0]&&(r="double_"+r,n=n.slice(1));break;case"o":r="arrow_circle","o"===e[0]&&(r="double_"+r,n=n.slice(1))}var i="normal",a=n.length-1;"="===n[0]&&(i="thick");var o=function(t,e){for(var n=e.length,r=0,i=0;i<n;++i)"."===e[i]&&++r;return r}(0,n);return o&&(i="dotted",a=o),{type:r,stroke:i,length:a}}(t);if(e){if((n=function(t){var e=t.trim(),n="arrow_open";switch(e[0]){case"<":n="arrow_point",e=e.slice(1);break;case"x":n="arrow_cross",e=e.slice(1);break;case"o":n="arrow_circle",e=e.slice(1)}var r="normal";return-1!==e.indexOf("=")&&(r="thick"),-1!==e.indexOf(".")&&(r="dotted"),{type:n,stroke:r}}(e)).stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===n.type)n.type=r.type;else{if(n.type!==r.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return"double_arrow"===n.type&&(n.type="double_arrow_point"),n.length=r.length,n}return r},lex:{firstGraph:function(){return!!Iv&&(Iv=!1,!0)}},exists:Pv,makeUniq:Qv};var Gv=n(3602),jv=n.n(Gv),Kv=n(4949),$v=n.n(Kv),Yv=n(8284),Vv=n.n(Yv);function zv(t,e,n){var r=.9*(e.width+e.height),i=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}],a=ab(t,r,r,i);return n.intersect=function(t){return $v().intersect.polygon(n,i,t)},a}function Wv(t,e,n){var r=e.height,i=r/4,a=e.width+2*i,o=[{x:i,y:0},{x:a-i,y:0},{x:a,y:-r/2},{x:a-i,y:-r},{x:i,y:-r},{x:0,y:-r/2}],s=ab(t,a,r,o);return n.intersect=function(t){return $v().intersect.polygon(n,o,t)},s}function qv(t,e,n){var r=e.width,i=e.height,a=[{x:-i/2,y:0},{x:r,y:0},{x:r,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}],o=ab(t,r,i,a);return n.intersect=function(t){return $v().intersect.polygon(n,a,t)},o}function Xv(t,e,n){var r=e.width,i=e.height,a=[{x:-2*i/6,y:0},{x:r-i/6,y:0},{x:r+2*i/6,y:-i},{x:i/6,y:-i}],o=ab(t,r,i,a);return n.intersect=function(t){return $v().intersect.polygon(n,a,t)},o}function Jv(t,e,n){var r=e.width,i=e.height,a=[{x:2*i/6,y:0},{x:r+i/6,y:0},{x:r-2*i/6,y:-i},{x:-i/6,y:-i}],o=ab(t,r,i,a);return n.intersect=function(t){return $v().intersect.polygon(n,a,t)},o}function Zv(t,e,n){var r=e.width,i=e.height,a=[{x:-2*i/6,y:0},{x:r+2*i/6,y:0},{x:r-i/6,y:-i},{x:i/6,y:-i}],o=ab(t,r,i,a);return n.intersect=function(t){return $v().intersect.polygon(n,a,t)},o}function tb(t,e,n){var r=e.width,i=e.height,a=[{x:i/6,y:0},{x:r-i/6,y:0},{x:r+2*i/6,y:-i},{x:-2*i/6,y:-i}],o=ab(t,r,i,a);return n.intersect=function(t){return $v().intersect.polygon(n,a,t)},o}function eb(t,e,n){var r=e.width,i=e.height,a=[{x:0,y:0},{x:r+i/2,y:0},{x:r,y:-i/2},{x:r+i/2,y:-i},{x:0,y:-i}],o=ab(t,r,i,a);return n.intersect=function(t){return $v().intersect.polygon(n,a,t)},o}function nb(t,e,n){var r=e.height,i=e.width+r/4,a=t.insert("rect",":first-child").attr("rx",r/2).attr("ry",r/2).attr("x",-i/2).attr("y",-r/2).attr("width",i).attr("height",r);return n.intersect=function(t){return $v().intersect.rect(n,t)},a}function rb(t,e,n){var r=e.width,i=e.height,a=[{x:0,y:0},{x:r,y:0},{x:r,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],o=ab(t,r,i,a);return n.intersect=function(t){return $v().intersect.polygon(n,a,t)},o}function ib(t,e,n){var r=e.width,i=r/2,a=i/(2.5+r/50),o=e.height+a,s="M 0,"+a+" a "+i+","+a+" 0,0,0 "+r+" 0 a "+i+","+a+" 0,0,0 "+-r+" 0 l 0,"+o+" a "+i+","+a+" 0,0,0 "+r+" 0 l 0,"+-o,c=t.attr("label-offset-y",a).insert("path",":first-child").attr("d",s).attr("transform","translate("+-r/2+","+-(o/2+a)+")");return n.intersect=function(t){var e=$v().intersect.rect(n,t),r=e.x-n.x;if(0!=i&&(Math.abs(r)<n.width/2||Math.abs(r)==n.width/2&&Math.abs(e.y-n.y)>n.height/2-a)){var o=a*a*(1-r*r/(i*i));0!=o&&(o=Math.sqrt(o)),o=a-o,t.y-n.y>0&&(o=-o),e.y+=o}return e},c}function ab(t,e,n,r){return t.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("transform","translate("+-e/2+","+n/2+")")}var ob={};const sb=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)ob[e[n]]=t[e[n]]},cb=function(t,e){o.info("Drawing flowchart"),Hv.clear(),Hv.setGen("gen-1");var n=jv().parser;n.yy=Hv,n.parse(t);var r=Hv.getDirection();void 0===r&&(r="TD");for(var i,a=Lm().flowchart,s=a.nodeSpacing||50,c=a.rankSpacing||50,l=new(ry().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:s,ranksep:c,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),A=Hv.getSubGraphs(),u=A.length-1;u>=0;u--)i=A[u],Hv.addVertex(i.id,i.title,"group",void 0,i.classes);var h=Hv.getVertices();o.warn("Get vertices",h);var f=Hv.getEdges(),d=0;for(d=A.length-1;d>=0;d--){i=A[d],yc("cluster").append("text");for(var p=0;p<i.nodes.length;p++)o.warn("Setting subgraph",i.nodes[p],Hv.lookUpDomId(i.nodes[p]),Hv.lookUpDomId(i.id)),l.setParent(Hv.lookUpDomId(i.nodes[p]),Hv.lookUpDomId(i.id))}(function(t,e,n){var r=mc('[id="'.concat(n,'"]'));Object.keys(t).forEach((function(n){var i=t[n],a="default";i.classes.length>0&&(a=i.classes.join(" "));var s,c=hm(i.styles),l=void 0!==i.text?i.text:i.id;if(Ig(Lm().flowchart.htmlLabels)){var A={label:l.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")}))};(s=Vv()(r,A).node()).parentNode.removeChild(s)}else{var u=document.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("style",c.labelStyle.replace("color:","fill:"));for(var h=l.split(Ng.lineBreakRegex),f=0;f<h.length;f++){var d=document.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.setAttribute("dy","1em"),d.setAttribute("x","1"),d.textContent=h[f],u.appendChild(d)}s=u}var p=0,g="";switch(i.type){case"round":p=5,g="rect";break;case"square":case"group":default:g="rect";break;case"diamond":g="question";break;case"hexagon":g="hexagon";break;case"odd":case"odd_right":g="rect_left_inv_arrow";break;case"lean_right":g="lean_right";break;case"lean_left":g="lean_left";break;case"trapezoid":g="trapezoid";break;case"inv_trapezoid":g="inv_trapezoid";break;case"circle":g="circle";break;case"ellipse":g="ellipse";break;case"stadium":g="stadium";break;case"subroutine":g="subroutine";break;case"cylinder":g="cylinder"}o.warn("Adding node",i.id,i.domId),e.setNode(Hv.lookUpDomId(i.id),{labelType:"svg",labelStyle:c.labelStyle,shape:g,label:s,rx:p,ry:p,class:a,style:c.style,id:Hv.lookUpDomId(i.id)})}))})(h,l,e),function(t,e){var n,r,i=0;if(void 0!==t.defaultStyle){var a=hm(t.defaultStyle);n=a.style,r=a.labelStyle}t.forEach((function(a){i++;var o="L-"+a.start+"-"+a.end,s="LS-"+a.start,c="LE-"+a.end,l={};"arrow_open"===a.type?l.arrowhead="none":l.arrowhead="normal";var A="",u="";if(void 0!==a.style){var h=hm(a.style);A=h.style,u=h.labelStyle}else switch(a.stroke){case"normal":A="fill:none",void 0!==n&&(A=n),void 0!==r&&(u=r);break;case"dotted":A="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":A=" stroke-width: 3.5px;fill:none"}l.style=A,l.labelStyle=u,void 0!==a.interpolate?l.curve=Am(a.interpolate,qc):void 0!==t.defaultInterpolate?l.curve=Am(t.defaultInterpolate,qc):l.curve=Am(ob.curve,qc),void 0===a.text?void 0!==a.style&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",Ig(Lm().flowchart.htmlLabels)?(l.labelType="html",l.label='<span id="L-'.concat(o,'" class="edgeLabel L-').concat(s,"' L-").concat(c,'">').concat(a.text.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")})),"</span>")):(l.labelType="text",l.label=a.text.replace(Ng.lineBreakRegex,"\n"),void 0===a.style&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=s+" "+c,l.minlen=a.length||1,e.setEdge(Hv.lookUpDomId(a.start),Hv.lookUpDomId(a.end),l,i)}))}(f,l);var g=new($v().render);(function(t){t.shapes().question=zv,t.shapes().hexagon=Wv,t.shapes().stadium=nb,t.shapes().subroutine=rb,t.shapes().cylinder=ib,t.shapes().rect_left_inv_arrow=qv,t.shapes().lean_right=Xv,t.shapes().lean_left=Jv,t.shapes().trapezoid=Zv,t.shapes().inv_trapezoid=tb,t.shapes().rect_right_inv_arrow=eb})(g),g.arrows().none=function(t,e,n,r){var i=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");$v().util.applyStyle(i,n[r+"Style"])},g.arrows().normal=function(t,e){t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};var m=mc('[id="'.concat(e,'"]'));m.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),o.warn(l);var y=mc("#"+e+" g");g(y,l),y.selectAll("g.node").attr("title",(function(){return Hv.getTooltip(this.id)}));var v=a.diagramPadding,b=m.node().getBBox(),w=b.width+2*v,_=b.height+2*v;Em(m,_,w,a.useMaxWidth);var E="".concat(b.x-v," ").concat(b.y-v," ").concat(w," ").concat(_);for(o.debug("viewBox ".concat(E)),m.attr("viewBox",E),Hv.indexNodes("subGraph"+d),d=0;d<A.length;d++)if("undefined"!==(i=A[d]).title){var C=document.querySelectorAll("#"+e+' [id="'+Hv.lookUpDomId(i.id)+'"] rect'),x=document.querySelectorAll("#"+e+' [id="'+Hv.lookUpDomId(i.id)+'"]'),B=C[0].x.baseVal.value,T=C[0].y.baseVal.value,k=C[0].width.baseVal.value,S=mc(x[0]).select(".label");S.attr("transform","translate(".concat(B+k/2,", ").concat(T+14,")")),S.attr("id",e+"Text");for(var I=0;I<i.classes.length;I++)x[0].classList.add(i.classes[I])}Ig(a.htmlLabels);for(var N=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),M=0;M<N.length;M++){var F=N[M],D=F.getBBox(),L=document.createElementNS("http://www.w3.org/2000/svg","rect");L.setAttribute("rx",0),L.setAttribute("ry",0),L.setAttribute("width",D.width),L.setAttribute("height",D.height),F.insertBefore(L,F.firstChild)}Object.keys(h).forEach((function(t){var n=h[t];if(n.link){var r=mc("#"+e+' [id="'+Hv.lookUpDomId(t)+'"]');if(r){var i=document.createElementNS("http://www.w3.org/2000/svg","a");i.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),i.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),i.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),n.linkTarget&&i.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);var a=r.insert((function(){return i}),":first-child"),o=r.select(".label-container");o&&a.append((function(){return o.node()}));var s=r.select(".label");s&&a.append((function(){return s.node()}))}}}))};var lb={};const Ab=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)lb[e[n]]=t[e[n]]};function ub(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var hb,fb,db="",pb="",gb="",mb=[],yb=[],vb="",bb=[],wb=[],_b="",Eb=["active","done","crit","milestone"],Cb=[],xb=!1,Bb=!1,Tb=0,kb=function(t,e,n,r){return!(r.indexOf(t.format(e.trim()))>=0)&&(t.isoWeekday()>=6&&n.indexOf("weekends")>=0||n.indexOf(t.format("dddd").toLowerCase())>=0||n.indexOf(t.format(e.trim()))>=0)},Sb=function(t,e,n,r){if(n.length&&!t.manualEndTime){var a=i()(t.startTime,e,!0);a.add(1,"d");var o=i()(t.endTime,e,!0),s=Ib(a,o,e,n,r);t.endTime=o.toDate(),t.renderEndTime=s}},Ib=function(t,e,n,r,i){for(var a=!1,o=null;t<=e;)a||(o=e.toDate()),(a=kb(t,n,r,i))&&e.add(1,"d"),t.add(1,"d");return o},Nb=function(t,e,n){n=n.trim();var r=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==r){var a=null;if(r[1].split(" ").forEach((function(t){var e=Ub(t);void 0!==e&&(a?e.endTime>a.endTime&&(a=e):a=e)})),a)return a.endTime;var s=new Date;return s.setHours(0,0,0,0),s}var c=i()(n,e.trim(),!0);return c.isValid()?c.toDate():(o.debug("Invalid date:"+n),o.debug("With date format:"+e.trim()),new Date)},Mb=function(t,e){if(null!==t)switch(t[2]){case"s":e.add(t[1],"seconds");break;case"m":e.add(t[1],"minutes");break;case"h":e.add(t[1],"hours");break;case"d":e.add(t[1],"days");break;case"w":e.add(t[1],"weeks")}return e.toDate()},Fb=function(t,e,n,r){r=r||!1,n=n.trim();var a=i()(n,e.trim(),!0);return a.isValid()?(r&&a.add(1,"d"),a.toDate()):Mb(/^([\d]+)([wdhms])/.exec(n.trim()),i()(t))},Db=0,Lb=function(t){return void 0===t?"task"+(Db+=1):t},Ob=[],Rb={},Ub=function(t){var e=Rb[t];return Ob[e]},Pb=function(){for(var t=function(t){var e=Ob[t],n="";switch(Ob[t].raw.startTime.type){case"prevTaskEnd":var r=Ub(e.prevTaskId);e.startTime=r.endTime;break;case"getStartDate":(n=Nb(0,db,Ob[t].raw.startTime.startData))&&(Ob[t].startTime=n)}return Ob[t].startTime&&(Ob[t].endTime=Fb(Ob[t].startTime,db,Ob[t].raw.endTime.data,xb),Ob[t].endTime&&(Ob[t].processed=!0,Ob[t].manualEndTime=i()(Ob[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Sb(Ob[t],db,yb,mb))),Ob[t].processed},e=!0,n=0;n<Ob.length;n++)t(n),e=e&&Ob[n].processed;return e},Qb=function(t,e){t.split(",").forEach((function(t){var n=Ub(t);void 0!==n&&n.classes.push(e)}))},Hb=function(t,e){Cb.push((function(){var n=document.querySelector('[id="'.concat(t,'"]'));null!==n&&n.addEventListener("click",(function(){e()}))})),Cb.push((function(){var n=document.querySelector('[id="'.concat(t,'-text"]'));null!==n&&n.addEventListener("click",(function(){e()}))}))};const Gb={parseDirective:function(t,e,n){sC.parseDirective(this,t,e,n)},getConfig:function(){return Lm().gantt},clear:function(){bb=[],wb=[],_b="",Cb=[],vb="",Db=0,hb=void 0,fb=void 0,Ob=[],db="",pb="",gb="",mb=[],yb=[],xb=!1,Bb=!1,Tb=0},setDateFormat:function(t){db=t},getDateFormat:function(){return db},enableInclusiveEndDates:function(){xb=!0},endDatesAreInclusive:function(){return xb},enableTopAxis:function(){Bb=!0},topAxisEnabled:function(){return Bb},setAxisFormat:function(t){pb=t},getAxisFormat:function(){return pb},setTodayMarker:function(t){gb=t},getTodayMarker:function(){return gb},setTitle:function(t){vb=t},getTitle:function(){return vb},addSection:function(t){_b=t,bb.push(t)},getSections:function(){return bb},getTasks:function(){for(var t=Pb(),e=0;!t&&e<10;)t=Pb(),e++;return wb=Ob},addTask:function(t,e){var n={section:_b,type:_b,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=function(t,e){var n=(":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),r={};jb(n,r,Eb);for(var i=0;i<n.length;i++)n[i]=n[i].trim();switch(n.length){case 1:r.id=Lb(),r.startTime={type:"prevTaskEnd",id:t},r.endTime={data:n[0]};break;case 2:r.id=Lb(),r.startTime={type:"getStartDate",startData:n[0]},r.endTime={data:n[1]};break;case 3:r.id=Lb(n[0]),r.startTime={type:"getStartDate",startData:n[1]},r.endTime={data:n[2]}}return r}(fb,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=fb,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=Tb,Tb++;var i=Ob.push(n);fb=n.id,Rb[n.id]=i-1},findTaskById:Ub,addTaskOrg:function(t,e){var n={section:_b,type:_b,description:t,task:t,classes:[]},r=function(t,e){var n=(":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),r={};jb(n,r,Eb);for(var a=0;a<n.length;a++)n[a]=n[a].trim();var o="";switch(n.length){case 1:r.id=Lb(),r.startTime=t.endTime,o=n[0];break;case 2:r.id=Lb(),r.startTime=Nb(0,db,n[0]),o=n[1];break;case 3:r.id=Lb(n[0]),r.startTime=Nb(0,db,n[1]),o=n[2]}return o&&(r.endTime=Fb(r.startTime,db,o,xb),r.manualEndTime=i()(o,"YYYY-MM-DD",!0).isValid(),Sb(r,db,yb,mb)),r}(hb,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,hb=n,wb.push(n)},setIncludes:function(t){mb=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return mb},setExcludes:function(t){yb=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return yb},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){!function(t,e,n){if("loose"===Lm().securityLevel&&void 0!==e){var r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var i=0;i<r.length;i++){var a=r[i].trim();'"'===a.charAt(0)&&'"'===a.charAt(a.length-1)&&(a=a.substr(1,a.length-2)),r[i]=a}}0===r.length&&r.push(t),void 0!==Ub(t)&&Hb(t,(function(){var t;Bm.runFunc.apply(Bm,[e].concat(function(t){if(Array.isArray(t))return ub(t)}(t=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ub(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ub(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}))}}(t,e,n)})),Qb(t,"clickable")},setLink:function(t,e){var n=e;"loose"!==Lm().securityLevel&&(n=(0,wg.sanitizeUrl)(e)),t.split(",").forEach((function(t){void 0!==Ub(t)&&Hb(t,(function(){window.open(n,"_self")}))})),Qb(t,"clickable")},bindFunctions:function(t){Cb.forEach((function(e){e(t)}))},durationToDate:Mb,isInvalidDate:kb};function jb(t,e,n){for(var r=!0;r;)r=!1,n.forEach((function(n){var i=new RegExp("^\\s*"+n+"\\s*$");t[0].match(i)&&(e[n]=!0,t.shift(1),r=!0)}))}var Kb,$b=n(9959),Yb=n.n($b);$b.parser.yy=Gb;const Vb=function(t,e){var n=Lm().gantt;$b.parser.yy.clear(),$b.parser.parse(t);var r=document.getElementById(e);void 0===(Kb=r.parentElement.offsetWidth)&&(Kb=1200),void 0!==n.useWidth&&(Kb=n.useWidth);var a=$b.parser.yy.getTasks(),o=a.length*(n.barHeight+n.barGap)+2*n.topPadding;r.setAttribute("viewBox","0 0 "+Kb+" "+o);for(var s=mc('[id="'.concat(e,'"]')),c=function(){return Fi.apply(es(ka,Sa,ba,ya,pa,fa,ha,ua,Aa,Da).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([A(a,(function(t){return t.startTime})),l(a,(function(t){return t.endTime}))]).rangeRound([0,Kb-n.leftPadding-n.rightPadding]),u=[],h=0;h<a.length;h++)u.push(a[h].type);var f=u;u=function(t){for(var e={},n=[],r=0,i=t.length;r<i;++r)Object.prototype.hasOwnProperty.call(e,t[r])||(e[t[r]]=!0,n.push(t[r]));return n}(u),a.sort((function(t,e){var n=t.startTime,r=e.startTime,i=0;return n>r?i=1:n<r&&(i=-1),i})),function(t,e,r){var a=n.barHeight,o=a+n.barGap,l=n.topPadding,A=n.leftPadding;(function t(){var e=Mi();return e.copy=function(){return Ni(e,t())},Fi.apply(e,arguments),zi(e)})().domain([0,u.length]).range(["#00B9FA","#F95002"]).interpolate(Br),function(t,e,r,a,o,l,A,u){var h=l.reduce((function(t,e){var n=e.startTime;return t?Math.min(t,n):n}),0),f=l.reduce((function(t,e){var n=e.endTime;return t?Math.max(t,n):n}),0),d=$b.parser.yy.getDateFormat();if(h&&f){for(var p=[],g=null,m=i()(h);m.valueOf()<=f;)$b.parser.yy.isInvalidDate(m,d,A,u)?g?g.end=m.clone():g={start:m.clone(),end:m.clone()}:g&&(p.push(g),g=null),m.add(1,"d");s.append("g").selectAll("rect").data(p).enter().append("rect").attr("id",(function(t){return"exclude-"+t.start.format("YYYY-MM-DD")})).attr("x",(function(t){return c(t.start)+r})).attr("y",n.gridLineStartPadding).attr("width",(function(t){var e=t.end.clone().add(1,"day");return c(e)-c(t.start)})).attr("height",o-e-n.gridLineStartPadding).attr("transform-origin",(function(e,n){return(c(e.start)+r+.5*(c(e.end)-c(e.start))).toString()+"px "+(n*t+.5*o).toString()+"px"})).attr("class","exclude-range")}}(o,l,A,0,r,t,$b.parser.yy.getExcludes(),$b.parser.yy.getIncludes()),function(t,e,r,i){var a,o=(a=c,y(3,a)).tickSize(-i+e+n.gridLineStartPadding).tickFormat(Hl($b.parser.yy.getAxisFormat()||n.axisFormat||"%Y-%m-%d"));if(s.append("g").attr("class","grid").attr("transform","translate("+t+", "+(i-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),Gb.topAxisEnabled()||n.topAxis){var l=function(t){return y(1,t)}(c).tickSize(-i+e+n.gridLineStartPadding).tickFormat(Hl($b.parser.yy.getAxisFormat()||n.axisFormat||"%Y-%m-%d"));s.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(l).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(A,l,0,r),function(t,e,r,i,a,o,l){s.append("g").selectAll("rect").data(t).enter().append("rect").attr("x",0).attr("y",(function(t,n){return t.order*e+r-2})).attr("width",(function(){return l-n.rightPadding/2})).attr("height",e).attr("class",(function(t){for(var e=0;e<u.length;e++)if(t.type===u[e])return"section section"+e%n.numberSectionStyles;return"section section0"}));var A=s.append("g").selectAll("rect").data(t).enter();A.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?c(t.startTime)+i+.5*(c(t.endTime)-c(t.startTime))-.5*a:c(t.startTime)+i})).attr("y",(function(t,n){return t.order*e+r})).attr("width",(function(t){return t.milestone?a:c(t.renderEndTime||t.endTime)-c(t.startTime)})).attr("height",a).attr("transform-origin",(function(t,n){return n=t.order,(c(t.startTime)+i+.5*(c(t.endTime)-c(t.startTime))).toString()+"px "+(n*e+r+.5*a).toString()+"px"})).attr("class",(function(t){var e="";t.classes.length>0&&(e=t.classes.join(" "));for(var r=0,i=0;i<u.length;i++)t.type===u[i]&&(r=i%n.numberSectionStyles);var a="";return t.active?t.crit?a+=" activeCrit":a=" active":t.done?a=t.crit?" doneCrit":" done":t.crit&&(a+=" crit"),0===a.length&&(a=" task"),t.milestone&&(a=" milestone "+a),"task"+(a+=r)+" "+e})),A.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",n.fontSize).attr("x",(function(t){var e=c(t.startTime),r=c(t.renderEndTime||t.endTime);t.milestone&&(e+=.5*(c(t.endTime)-c(t.startTime))-.5*a),t.milestone&&(r=e+a);var o=this.getBBox().width;return o>r-e?r+o+1.5*n.leftPadding>l?e+i-5:r+i+5:(r-e)/2+e+i})).attr("y",(function(t,i){return t.order*e+n.barHeight/2+(n.fontSize/2-2)+r})).attr("text-height",a).attr("class",(function(t){var e=c(t.startTime),r=c(t.endTime);t.milestone&&(r=e+a);var i=this.getBBox().width,o="";t.classes.length>0&&(o=t.classes.join(" "));for(var s=0,A=0;A<u.length;A++)t.type===u[A]&&(s=A%n.numberSectionStyles);var h="";return t.active&&(h=t.crit?"activeCritText"+s:"activeText"+s),t.done?h=t.crit?h+" doneCritText"+s:h+" doneText"+s:t.crit&&(h=h+" critText"+s),t.milestone&&(h+=" milestoneText"),i>r-e?r+i+1.5*n.leftPadding>l?o+" taskTextOutsideLeft taskTextOutside"+s+" "+h:o+" taskTextOutsideRight taskTextOutside"+s+" "+h+" width-"+i:o+" taskText taskText"+s+" "+h+" width-"+i}))}(t,o,l,A,a,0,e),function(t,e){for(var r=[],i=0,a=0;a<u.length;a++)r[a]=[u[a],(o=u[a],c=f,function(t){for(var e=t.length,n={};e;)n[t[--e]]=(n[t[e]]||0)+1;return n}(c)[o]||0)];var o,c;s.append("g").selectAll("text").data(r).enter().append((function(t){var e=t[0].split(Ng.lineBreakRegex),n=-(e.length-1)/2,r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for(var i=0;i<e.length;i++){var a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttribute("alignment-baseline","central"),a.setAttribute("x","10"),i>0&&a.setAttribute("dy","1em"),a.textContent=e[i],r.appendChild(a)}return r})).attr("x",10).attr("y",(function(n,a){if(!(a>0))return n[1]*t/2+e;for(var o=0;o<a;o++)return i+=r[a-1][1],n[1]*t/2+i*t+e})).attr("font-size",n.sectionFontSize).attr("font-size",n.sectionFontSize).attr("class",(function(t){for(var e=0;e<u.length;e++)if(t[0]===u[e])return"sectionTitle sectionTitle"+e%n.numberSectionStyles;return"sectionTitle"}))}(o,l),function(t,e,r,i){var a=Gb.getTodayMarker();if("off"!==a){var o=s.append("g").attr("class","today"),l=new Date,A=o.append("line");A.attr("x1",c(l)+t).attr("x2",c(l)+t).attr("y1",n.titleTopMargin).attr("y2",i-n.titleTopMargin).attr("class","today"),""!==a&&A.attr("style",a.replace(/,/g,";"))}}(A,0,0,r)}(a,Kb,o),Em(s,o,Kb,n.useMaxWidth),s.append("text").text($b.parser.yy.getTitle()).attr("x",Kb/2).attr("y",n.titleTopMargin).attr("class","titleText")};var zb={},Wb=null,qb={master:Wb},Xb="master",Jb="LR",Zb=0;function tw(){return pm({length:7})}function ew(t,e){for(o.debug("Entering isfastforwardable:",t.id,e.id);t.seq<=e.seq&&t!==e&&null!=e.parent;){if(Array.isArray(e.parent))return o.debug("In merge commit:",e.parent),ew(t,zb[e.parent[0]])||ew(t,zb[e.parent[1]]);e=zb[e.parent]}return o.debug(t.id,e.id),t.id===e.id}var nw={};function rw(t,e,n){var r=t.indexOf(e);-1===r?t.push(n):t.splice(r,1,n)}var iw=function(){var t=Object.keys(zb).map((function(t){return zb[t]}));return t.forEach((function(t){o.debug(t.id)})),t.sort((function(t,e){return e.seq-t.seq})),t};const aw={setDirection:function(t){Jb=t},setOptions:function(t){o.debug("options str",t),t=(t=t&&t.trim())||"{}";try{nw=JSON.parse(t)}catch(t){o.error("error while parsing gitGraph options",t.message)}},getOptions:function(){return nw},commit:function(t){var e={id:tw(),message:t,seq:Zb++,parent:null==Wb?null:Wb.id};Wb=e,zb[e.id]=e,qb[Xb]=e.id,o.debug("in pushCommit "+e.id)},branch:function(t){qb[t]=null!=Wb?Wb.id:null,o.debug("in createBranch")},merge:function(t){var e=zb[qb[Xb]],n=zb[qb[t]];if(function(t,e){return t.seq>e.seq&&ew(e,t)}(e,n))o.debug("Already merged");else{if(ew(e,n))qb[Xb]=qb[t],Wb=zb[qb[Xb]];else{var r={id:tw(),message:"merged branch "+t+" into "+Xb,seq:Zb++,parent:[null==Wb?null:Wb.id,qb[t]]};Wb=r,zb[r.id]=r,qb[Xb]=r.id}o.debug(qb),o.debug("in mergeBranch")}},checkout:function(t){o.debug("in checkout");var e=qb[Xb=t];Wb=zb[e]},reset:function(t){o.debug("in reset",t);var e=t.split(":")[0],n=parseInt(t.split(":")[1]),r="HEAD"===e?Wb:zb[qb[e]];for(o.debug(r,n);n>0;)if(n--,!(r=zb[r.parent])){var i="Critical error - unique parent commit not found during reset";throw o.error(i),i}Wb=r,qb[Xb]=r.id},prettyPrint:function(){o.debug(zb),function t(e){var n=e.reduce((function(t,e){return t.seq>e.seq?t:e}),e[0]),r="";e.forEach((function(t){r+=t===n?"\t*":"\t|"}));var i,a,s,c=[r,n.id,n.seq];for(var l in qb)qb[l]===n.id&&c.push(l);if(o.debug(c.join(" ")),Array.isArray(n.parent)){var A=zb[n.parent[0]];rw(e,n,A),e.push(zb[n.parent[1]])}else{if(null==n.parent)return;var u=zb[n.parent];rw(e,n,u)}i=e,a=function(t){return t.id},s=Object.create(null),t(e=i.reduce((function(t,e){var n=a(e);return s[n]||(s[n]=!0,t.push(e)),t}),[]))}([iw()[0]])},clear:function(){zb={},qb={master:Wb=null},Xb="master",Zb=0},getBranchesAsObjArray:function(){var t=[];for(var e in qb)t.push({name:e,commit:zb[qb[e]]});return t},getBranches:function(){return qb},getCommits:function(){return zb},getCommitsArray:iw,getCurrentBranch:function(){return Xb},getDirection:function(){return Jb},getHead:function(){return Wb}};var ow,sw=n(2553),cw=n.n(sw),lw={},Aw={nodeSpacing:150,nodeFillColor:"yellow",nodeStrokeWidth:2,nodeStrokeColor:"grey",lineStrokeWidth:4,branchOffset:50,lineColor:"grey",leftMargin:50,branchColors:["#442f74","#983351","#609732","#AA9A39"],nodeRadius:10,nodeLabel:{width:75,height:100,x:-25,y:0}},uw={};function hw(t,e,n,r){var i=Am(r,al),a=Aw.branchColors[n%Aw.branchColors.length],o=Zc().x((function(t){return Math.round(t.x)})).y((function(t){return Math.round(t.y)})).curve(i);t.append("svg:path").attr("d",o(e)).style("stroke",a).style("stroke-width",Aw.lineStrokeWidth).style("fill","none")}function fw(t,e){e=e||t.node().getBBox();var n=t.node().getCTM();return{left:n.e+e.x*n.a,top:n.f+e.y*n.d,width:e.width,height:e.height}}function dw(t,e,n,r,i){o.debug("svgDrawLineForCommits: ",e,n);var a=fw(t.select("#node-"+e+" circle")),s=fw(t.select("#node-"+n+" circle"));switch(r){case"LR":if(a.left-s.left>Aw.nodeSpacing){var c={x:a.left-Aw.nodeSpacing,y:s.top+s.height/2};hw(t,[c,{x:s.left+s.width,y:s.top+s.height/2}],i,"linear"),hw(t,[{x:a.left,y:a.top+a.height/2},{x:a.left-Aw.nodeSpacing/2,y:a.top+a.height/2},{x:a.left-Aw.nodeSpacing/2,y:c.y},c],i)}else hw(t,[{x:a.left,y:a.top+a.height/2},{x:a.left-Aw.nodeSpacing/2,y:a.top+a.height/2},{x:a.left-Aw.nodeSpacing/2,y:s.top+s.height/2},{x:s.left+s.width,y:s.top+s.height/2}],i);break;case"BT":if(s.top-a.top>Aw.nodeSpacing){var l={x:s.left+s.width/2,y:a.top+a.height+Aw.nodeSpacing};hw(t,[l,{x:s.left+s.width/2,y:s.top}],i,"linear"),hw(t,[{x:a.left+a.width/2,y:a.top+a.height},{x:a.left+a.width/2,y:a.top+a.height+Aw.nodeSpacing/2},{x:s.left+s.width/2,y:l.y-Aw.nodeSpacing/2},l],i)}else hw(t,[{x:a.left+a.width/2,y:a.top+a.height},{x:a.left+a.width/2,y:a.top+Aw.nodeSpacing/2},{x:s.left+s.width/2,y:s.top-Aw.nodeSpacing/2},{x:s.left+s.width/2,y:s.top}],i)}}function pw(t,e){return t.select(e).node().cloneNode(!0)}function gw(t,e,n,r){var i,a=Object.keys(lw).length;if("string"==typeof e)do{if(i=lw[e],o.debug("in renderCommitHistory",i.id,i.seq),t.select("#node-"+e).size()>0)return;t.append((function(){return pw(t,"#def-commit")})).attr("class","commit").attr("id",(function(){return"node-"+i.id})).attr("transform",(function(){switch(r){case"LR":return"translate("+(i.seq*Aw.nodeSpacing+Aw.leftMargin)+", "+ow*Aw.branchOffset+")";case"BT":return"translate("+(ow*Aw.branchOffset+Aw.leftMargin)+", "+(a-i.seq)*Aw.nodeSpacing+")"}})).attr("fill",Aw.nodeFillColor).attr("stroke",Aw.nodeStrokeColor).attr("stroke-width",Aw.nodeStrokeWidth);var s=void 0;for(var c in n)if(n[c].commit===i){s=n[c];break}s&&(o.debug("found branch ",s.name),t.select("#node-"+i.id+" p").append("xhtml:span").attr("class","branch-label").text(s.name+", ")),t.select("#node-"+i.id+" p").append("xhtml:span").attr("class","commit-id").text(i.id),""!==i.message&&"BT"===r&&t.select("#node-"+i.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+i.message),e=i.parent}while(e&&lw[e]);Array.isArray(e)&&(o.debug("found merge commmit",e),gw(t,e[0],n,r),ow++,gw(t,e[1],n,r),ow--)}function mw(t,e,n,r){for(r=r||0;e.seq>0&&!e.lineDrawn;)"string"==typeof e.parent?(dw(t,e.id,e.parent,n,r),e.lineDrawn=!0,e=lw[e.parent]):Array.isArray(e.parent)&&(dw(t,e.id,e.parent[0],n,r),dw(t,e.id,e.parent[1],n,r+1),mw(t,lw[e.parent[1]],n,r+1),e.lineDrawn=!0,e=lw[e.parent[0]])}const yw=function(t){uw=t};var vw="",bw=!1;const ww={setMessage:function(t){o.debug("Setting message to: "+t),vw=t},getMessage:function(){return vw},setInfo:function(t){bw=t},getInfo:function(){return bw}};var _w=n(6765),Ew=n.n(_w),Cw={};const xw=function(t){Object.keys(t).forEach((function(e){Cw[e]=t[e]}))};var Bw=n(7062),Tw=n.n(Bw),kw={},Sw="",Iw=!1;const Nw={parseDirective:function(t,e,n){sC.parseDirective(this,t,e,n)},getConfig:function(){return Lm().pie},addSection:function(t,e){void 0===kw[t]&&(kw[t]=e,o.debug("Added new section :",t))},getSections:function(){return kw},cleanupValue:function(t){return":"===t.substring(0,1)?(t=t.substring(1).trim(),Number(t.trim())):Number(t.trim())},clear:function(){kw={},Sw="",Iw=!1},setTitle:function(t){Sw=t},getTitle:function(){return Sw},setShowData:function(t){Iw=t},getShowData:function(){return Iw}};var Mw,Fw=Lm();const Dw=function(t,e){try{Fw=Lm();var n=Tw().parser;n.yy=Nw,o.debug("Rendering info diagram\n"+t),n.yy.clear(),n.parse(t),o.debug("Parsed info diagram");var r=document.getElementById(e);void 0===(Mw=r.parentElement.offsetWidth)&&(Mw=1200),void 0!==Fw.useWidth&&(Mw=Fw.useWidth),void 0!==Fw.pie.useWidth&&(Mw=Fw.pie.useWidth);var i=mc("#"+e);Em(i,450,Mw,Fw.pie.useMaxWidth),r.setAttribute("viewBox","0 0 "+Mw+" 450");var a=Math.min(Mw,450)/2-40,s=i.append("g").attr("transform","translate("+Mw/2+",225)"),c=Nw.getSections(),l=0;Object.keys(c).forEach((function(t){l+=c[t]}));var A=Fw.themeVariables,u=[A.pie1,A.pie2,A.pie3,A.pie4,A.pie5,A.pie6,A.pie7,A.pie8,A.pie9,A.pie10,A.pie11,A.pie12],h=function t(){var e=new Wi,n=[],r=[],i=Ji;function a(t){let a=e.get(t);if(void 0===a){if(i!==Ji)return i;e.set(t,a=n.push(t)-1)}return r[a%r.length]}return a.domain=function(t){if(!arguments.length)return n.slice();n=[],e=new Wi;for(const r of t)e.has(r)||e.set(r,n.push(r)-1);return a},a.range=function(t){return arguments.length?(r=Array.from(t),a):r.slice()},a.unknown=function(t){return arguments.length?(i=t,a):i},a.copy=function(){return t(n,r).unknown(i)},Fi.apply(a,arguments),a}().range(u),f=function(){var t=el,e=tl,n=null,r=Bc(0),i=Bc(Rc),a=Bc(0);function o(o){var s,c,l,A,u,h=(o=zc(o)).length,f=0,d=new Array(h),p=new Array(h),g=+r.apply(this,arguments),m=Math.min(Rc,Math.max(-Rc,i.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/h,a.apply(this,arguments)),v=y*(m<0?-1:1);for(s=0;s<h;++s)(u=p[d[s]=s]=+t(o[s],s,o))>0&&(f+=u);for(null!=e?d.sort((function(t,n){return e(p[t],p[n])})):null!=n&&d.sort((function(t,e){return n(o[t],o[e])})),s=0,l=f?(m-h*v)/f:0;s<h;++s,g=A)c=d[s],A=g+((u=p[c])>0?u*l:0)+v,p[c]={data:o[c],index:s,value:u,startAngle:g,endAngle:A,padAngle:y};return p}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:Bc(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Bc(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Bc(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Bc(+t),o):a},o}().value((function(t){return t[1]}))(Object.entries(c)),d=Vc().innerRadius(0).outerRadius(a);s.selectAll("mySlices").data(f).enter().append("path").attr("d",d).attr("fill",(function(t){return h(t.data[0])})).attr("class","pieCircle"),s.selectAll("mySlices").data(f).enter().append("text").text((function(t){return(t.data[1]/l*100).toFixed(0)+"%"})).attr("transform",(function(t){return"translate("+d.centroid(t)+")"})).style("text-anchor","middle").attr("class","slice"),s.append("text").text(n.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var p=s.selectAll(".legend").data(h.domain()).enter().append("g").attr("class","legend").attr("transform",(function(t,e){return"translate(216,"+(22*e-22*h.domain().length/2)+")"}));p.append("rect").attr("width",18).attr("height",18).style("fill",h).style("stroke",h),p.data(f).append("text").attr("x",22).attr("y",14).text((function(t){return n.yy.getShowData()||Fw.showData||Fw.pie.showData?t.data[0]+" ["+t.data[1]+"]":t.data[0]}))}catch(t){o.error("Error while rendering info diagram"),o.error(t)}};var Lw=n(3176),Ow=n.n(Lw),Rw=[],Uw={},Pw={},Qw={},Hw={};const Gw={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(t,e,n){sC.parseDirective(this,t,e,n)},getConfig:function(){return Lm().req},addRequirement:function(t,e){return void 0===Pw[t]&&(Pw[t]={name:t,type:e,id:Uw.id,text:Uw.text,risk:Uw.risk,verifyMethod:Uw.verifyMethod}),Uw={},Pw[t]},getRequirements:function(){return Pw},setNewReqId:function(t){void 0!==Uw&&(Uw.id=t)},setNewReqText:function(t){void 0!==Uw&&(Uw.text=t)},setNewReqRisk:function(t){void 0!==Uw&&(Uw.risk=t)},setNewReqVerifyMethod:function(t){void 0!==Uw&&(Uw.verifyMethod=t)},addElement:function(t){return void 0===Hw[t]&&(Hw[t]={name:t,type:Qw.type,docRef:Qw.docRef},o.info("Added new requirement: ",t)),Qw={},Hw[t]},getElements:function(){return Hw},setNewElementType:function(t){void 0!==Qw&&(Qw.type=t)},setNewElementDocRef:function(t){void 0!==Qw&&(Qw.docRef=t)},addRelationship:function(t,e,n){Rw.push({type:t,src:e,dst:n})},getRelationships:function(){return Rw},clear:function(){Rw=[],Uw={},Pw={},Qw={},Hw={}}};var jw={CONTAINS:"contains",ARROW:"arrow"};const Kw=jw;var $w={},Yw=0,Vw=function(t,e){return t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",$w.rect_min_width+"px").attr("height",$w.rect_min_height+"px")},zw=function(t,e,n){var r=$w.rect_min_width/2,i=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",r).attr("y",$w.rect_padding).attr("dominant-baseline","hanging"),a=0;n.forEach((function(t){0==a?i.append("tspan").attr("text-anchor","middle").attr("x",$w.rect_min_width/2).attr("dy",0).text(t):i.append("tspan").attr("text-anchor","middle").attr("x",$w.rect_min_width/2).attr("dy",.75*$w.line_height).text(t),a++}));var o=1.5*$w.rect_padding+a*$w.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",$w.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:i,y:o}},Ww=function(t,e,n,r){var i=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",$w.rect_padding).attr("y",r).attr("dominant-baseline","hanging"),a=0,o=[];return n.forEach((function(t){for(var e=t.length;e>30&&a<3;){var n=t.substring(0,30);e=(t=t.substring(30,t.length)).length,o[o.length]=n,a++}if(3==a){var r=o[o.length-1];o[o.length-1]=r.substring(0,r.length-4)+"..."}else o[o.length]=t;a=0})),o.forEach((function(t){i.append("tspan").attr("x",$w.rect_padding).attr("dy",$w.line_height).text(t)})),i},qw=function(t){return t.replace(/\s/g,"").replace(/\./g,"_")};const Xw=function(t){if(void 0!==t)for(var e=Object.keys(t),n=0;n<e.length;n++)$w[e[n]]=t[e[n]]};var Jw=n(6876),Zw=n.n(Jw),t_=void 0,e_={},n_=[],r_="",i_=!1,a_=!1,o_=!1,s_=function(t,e,n,r){var i=e_[t];i&&e===i.name&&null==n||(null!=n&&null!=n.text||(n={text:e,wrap:null,type:r}),null!=r&&null!=n.text||(n={text:e,wrap:null,type:r}),e_[t]={name:e,description:n.text,wrap:void 0===n.wrap&&u_()||!!n.wrap,prevActor:t_,links:{},properties:{},actorCnt:null,rectData:null,type:r||"participant"},t_&&e_[t_]&&(e_[t_].nextActor=t),t_=t)},c_=function(t){var e,n=0;for(e=0;e<n_.length;e++)n_[e].type===h_.ACTIVE_START&&n_[e].from.actor===t&&n++,n_[e].type===h_.ACTIVE_END&&n_[e].from.actor===t&&n--;return n},l_=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{text:void 0,wrap:void 0},r=arguments.length>3?arguments[3]:void 0;if(r===h_.ACTIVE_END){var i=c_(t.actor);if(i<1){var a=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw a.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},a}}return n_.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&u_()||!!n.wrap,type:r}),!0},A_=function(t){return e_[t]},u_=function(){return o_},h_={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},f_=function(t,e,n){n.text,void 0===n.wrap&&u_()||n.wrap;var r=[].concat(t,t);n_.push({from:r[0],to:r[1],message:n.text,wrap:void 0===n.wrap&&u_()||!!n.wrap,type:h_.NOTE,placement:e})},d_=function(t,e){var n=A_(t);try{var r=Bg(e.text,Lm());r=(r=r.replace(/&amp;/g,"&")).replace(/&equals;/g,"="),p_(n,JSON.parse(r))}catch(t){o.error("error while parsing actor link text",t)}};function p_(t,e){if(null==t.links)t.links=e;else for(var n in e)t.links[n]=e[n]}var g_=function(t,e){var n=A_(t);try{var r=Bg(e.text,Lm());m_(n,JSON.parse(r))}catch(t){o.error("error while parsing actor properties text",t)}};function m_(t,e){if(null==t.properties)t.properties=e;else for(var n in e)t.properties[n]=e[n]}var y_=function(t,e){var n=A_(t),r=document.getElementById(e.text);try{var i=r.innerHTML,a=JSON.parse(i);a.properties&&m_(n,a.properties),a.links&&p_(n,a.links)}catch(t){o.error("error while parsing actor details text",t)}},v_=function(t){r_=t.text,i_=void 0===t.wrap&&u_()||!!t.wrap};const b_={addActor:s_,addMessage:function(t,e,n,r){n_.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&u_()||!!n.wrap,answer:r})},addSignal:l_,addLinks:d_,addDetails:y_,addProperties:g_,autoWrap:u_,setWrap:function(t){o_=t},enableSequenceNumbers:function(){a_=!0},showSequenceNumbers:function(){return a_},getMessages:function(){return n_},getActors:function(){return e_},getActor:A_,getActorKeys:function(){return Object.keys(e_)},getActorProperty:function(t,e){if(void 0!==t&&void 0!==t.properties)return t.properties[e]},getTitle:function(){return r_},parseDirective:function(t,e,n){sC.parseDirective(this,t,e,n)},getConfig:function(){return Lm().sequence},getTitleWrapped:function(){return i_},clear:function(){e_={},n_=[]},parseMessage:function(t){var e=t.trim(),n={text:e.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:null!==e.match(/^[:]?wrap:/)||null===e.match(/^[:]?nowrap:/)&&void 0};return o.debug("parseMessage:",n),n},LINETYPE:h_,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:f_,setTitle:v_,apply:function t(e){if(e instanceof Array)e.forEach((function(e){t(e)}));else switch(e.type){case"addParticipant":s_(e.actor,e.actor,e.description,"participant");break;case"addActor":s_(e.actor,e.actor,e.description,"actor");break;case"activeStart":case"activeEnd":l_(e.actor,void 0,void 0,e.signalType);break;case"addNote":f_(e.actor,e.placement,e.text);break;case"addLinks":d_(e.actor,e.text);break;case"addALink":!function(t,e){var n=A_(t);try{var r={},i=Bg(e.text,Lm()),a=i.indexOf("@"),s=(i=(i=i.replace(/&amp;/g,"&")).replace(/&equals;/g,"=")).slice(0,a-1).trim(),c=i.slice(a+1).trim();r[s]=c,p_(n,r)}catch(t){o.error("error while parsing actor link text",t)}}(e.actor,e.text);break;case"addProperties":g_(e.actor,e.text);break;case"addDetails":y_(e.actor,e.text);break;case"addMessage":l_(e.from,e.to,e.msg,e.signalType);break;case"loopStart":l_(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":l_(void 0,void 0,void 0,e.signalType);break;case"rectStart":l_(void 0,void 0,e.color,e.signalType);break;case"optStart":l_(void 0,void 0,e.optText,e.signalType);break;case"altStart":case"else":l_(void 0,void 0,e.altText,e.signalType);break;case"setTitle":v_(e.text);break;case"parStart":case"and":l_(void 0,void 0,e.parText,e.signalType)}}};var w_=[],__=function(t,e){var n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},E_=function(t,e){var n;n=function(){var n=document.querySelectorAll(t);n[0].addEventListener("mouseover",(function(){C_("actor"+e+"_popup")})),n[0].addEventListener("mouseout",(function(){x_("actor"+e+"_popup")}))},w_.push(n)},C_=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="block")},x_=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="none")},B_=function(t,e){var n=0,r=0,i=e.text.split(Ng.lineBreakRegex),a=[],o=0,s=function(){return e.y};if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":s=function(){return Math.round(e.y+e.textMargin)};break;case"middle":case"center":s=function(){return Math.round(e.y+(n+r+e.textMargin)/2)};break;case"bottom":case"end":s=function(){return Math.round(e.y+(n+r+2*e.textMargin)-e.textMargin)}}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="text-after-edge",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="text-before-edge",e.alignmentBaseline="middle"}for(var c=0;c<i.length;c++){var l=i[c];void 0!==e.textMargin&&0===e.textMargin&&void 0!==e.fontSize&&(o=c*e.fontSize);var A=t.append("text");if(A.attr("x",e.x),A.attr("y",s()),void 0!==e.anchor&&A.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&A.style("font-family",e.fontFamily),void 0!==e.fontSize&&A.style("font-size",e.fontSize),void 0!==e.fontWeight&&A.style("font-weight",e.fontWeight),void 0!==e.fill&&A.attr("fill",e.fill),void 0!==e.class&&A.attr("class",e.class),void 0!==e.dy?A.attr("dy",e.dy):0!==o&&A.attr("dy",o),e.tspan){var u=A.append("tspan");u.attr("x",e.x),void 0!==e.fill&&u.attr("fill",e.fill),u.text(l)}else A.text(l);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(r+=(A._groups||A)[0][0].getBBox().height,n=r),a.push(A)}return a},T_=-1,k_=function(){function t(t,e,n,i,a,o,s){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,c){for(var l=c.actorFontSize,A=c.actorFontFamily,u=c.actorFontWeight,h=t.split(Ng.lineBreakRegex),f=0;f<h.length;f++){var d=f*l-l*(h.length-1)/2,p=e.append("text").attr("x",n+a/2).attr("y",i).style("text-anchor","middle").style("font-size",l).style("font-weight",u).style("font-family",A);p.append("tspan").attr("x",n+a/2).attr("dy",d).text(h[f]),p.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(p,s)}}function n(t,n,i,a,o,s,c,l){var A=n.append("switch"),u=A.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,A,i,a,o,s,c,l),r(u,c)}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}(),S_=function(){function t(t,e,n,i,a,o,s){r(e.append("text").attr("x",n).attr("y",i).style("text-anchor","start").text(t),s)}function e(t,e,n,i,a,o,s,c){for(var l=c.actorFontSize,A=c.actorFontFamily,u=c.actorFontWeight,h=t.split(Ng.lineBreakRegex),f=0;f<h.length;f++){var d=f*l-l*(h.length-1)/2,p=e.append("text").attr("x",n).attr("y",i).style("text-anchor","start").style("font-size",l).style("font-weight",u).style("font-family",A);p.append("tspan").attr("x",n).attr("dy",d).text(h[f]),p.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(p,s)}}function n(t,n,i,a,o,s,c,l){var A=n.append("switch"),u=A.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,A,i,a,0,s,c,l),r(u,c)}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}();const I_=__,N_=function(t,e,n){switch(e.type){case"actor":return function(t,e,n){var r=e.x+e.width/2;0===e.y&&(T_++,t.append("line").attr("id","actor"+T_).attr("x1",r).attr("y1",80).attr("x2",r).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var i=t.append("g");i.attr("class","actor-man");var a={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};a.x=e.x,a.y=e.y,a.fill="#eaeaea",a.width=e.width,a.height=e.height,a.class="actor",a.rx=3,a.ry=3,i.append("line").attr("id","actor-man-torso"+T_).attr("x1",r).attr("y1",e.y+25).attr("x2",r).attr("y2",e.y+45),i.append("line").attr("id","actor-man-arms"+T_).attr("x1",r-18).attr("y1",e.y+33).attr("x2",r+18).attr("y2",e.y+33),i.append("line").attr("x1",r-18).attr("y1",e.y+60).attr("x2",r).attr("y2",e.y+45),i.append("line").attr("x1",r).attr("y1",e.y+45).attr("x2",r+16).attr("y2",e.y+60);var o=i.append("circle");o.attr("cx",e.x+e.width/2),o.attr("cy",e.y+10),o.attr("r",15),o.attr("width",e.width),o.attr("height",e.height);var s=i.node().getBBox();return e.height=s.height,k_(n)(e.description,i,a.x,a.y+35,a.width,a.height,{class:"actor"},n),e.height}(t,e,n);case"participant":return function(t,e,n){var r=e.x+e.width/2,i=t.append("g"),a=i;0===e.y&&(T_++,a.append("line").attr("id","actor"+T_).attr("x1",r).attr("y1",5).attr("x2",r).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),a=i.append("g"),e.actorCnt=T_,null!=e.links&&(a.attr("id","root-"+T_),E_("#root-"+T_,T_)));var o={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},s="actor";null!=e.properties&&e.properties.class?s=e.properties.class:o.fill="#eaeaea",o.x=e.x,o.y=e.y,o.width=e.width,o.height=e.height,o.class=s,o.rx=3,o.ry=3;var c=__(a,o);if(e.rectData=o,null!=e.properties&&e.properties.icon){var l=e.properties.icon.trim();"@"===l.charAt(0)?function(t,e,n,r){var i=t.append("use");i.attr("x",e),i.attr("y",n);var a=(0,wg.sanitizeUrl)(r);i.attr("xlink:href","#"+a)}(a,o.x+o.width-20,o.y+10,l.substr(1)):function(t,e,n,r){var i=t.append("image");i.attr("x",e),i.attr("y",n);var a=(0,wg.sanitizeUrl)(r);i.attr("xlink:href",a)}(a,o.x+o.width-20,o.y+10,l)}k_(n)(e.description,a,o.x,o.y,o.width,o.height,{class:"actor"},n);var A=e.height;if(c.node){var u=c.node().getBBox();e.height=u.height,A=u.height}return A}(t,e,n)}},M_=function(t,e,n,r,i){if(void 0===e.links||null===e.links||0===Object.keys(e.links).length)return{height:0,width:0};var a=e.links,o=e.actorCnt,s=e.rectData,c="none";i&&(c="block !important");var l=t.append("g");l.attr("id","actor"+o+"_popup"),l.attr("class","actorPopupMenu"),l.attr("display",c),E_("#actor"+o+"_popup",o);var A="";void 0!==s.class&&(A=" "+s.class);var u=s.width>n?s.width:n,h=l.append("rect");if(h.attr("class","actorPopupMenuPanel"+A),h.attr("x",s.x),h.attr("y",s.height),h.attr("fill",s.fill),h.attr("stroke",s.stroke),h.attr("width",u),h.attr("height",s.height),h.attr("rx",s.rx),h.attr("ry",s.ry),null!=a){var f=20;for(var d in a){var p=l.append("a"),g=(0,wg.sanitizeUrl)(a[d]);p.attr("xlink:href",g),p.attr("target","_blank"),S_(r)(d,p,s.x+10,s.height+f,u,20,{class:"actor"},r),f+=30}}return h.attr("height",f),{height:s.height+f,width:u}},F_=function(t){return t.append("g")},D_=function(t,e,n,r){var i=r.boxMargin,a=r.boxTextMargin,o=r.labelBoxHeight,s=r.labelBoxWidth,c=r.messageFontFamily,l=r.messageFontSize,A=r.messageFontWeight,u=t.append("g"),h=function(t,e,n,r){return u.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",r).attr("class","loopLine")};h(e.startx,e.starty,e.stopx,e.starty),h(e.stopx,e.starty,e.stopx,e.stopy),h(e.startx,e.stopy,e.stopx,e.stopy),h(e.startx,e.starty,e.startx,e.stopy),void 0!==e.sections&&e.sections.forEach((function(t){h(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")}));var f={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0};f.text=n,f.x=e.startx,f.y=e.starty,f.fontFamily=c,f.fontSize=l,f.fontWeight=A,f.anchor="middle",f.valign="middle",f.tspan=!1,f.width=s||50,f.height=o||20,f.textMargin=a,f.class="labelText",function(t,e){var n=t.append("polygon");n.attr("points",function(t,e,n,r,i){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+r-7)+" "+(t+n-8.4)+","+(e+r)+" "+t+","+(e+r)}(e.x,e.y,e.width,e.height)),n.attr("class","labelBox"),e.y=e.y+e.height/2,B_(t,e)}(u,f),(f={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}).text=e.title,f.x=e.startx+s/2+(e.stopx-e.startx)/2,f.y=e.starty+i+a,f.anchor="middle",f.valign="middle",f.textMargin=a,f.class="loopText",f.fontFamily=c,f.fontSize=l,f.fontWeight=A,f.wrap=!0;var d=B_(u,f);return void 0!==e.sectionTitles&&e.sectionTitles.forEach((function(t,n){if(t.message){f.text=t.message,f.x=e.startx+(e.stopx-e.startx)/2,f.y=e.sections[n].y+i+a,f.class="loopText",f.anchor="middle",f.valign="middle",f.tspan=!1,f.fontFamily=c,f.fontSize=l,f.fontWeight=A,f.wrap=e.wrap,d=B_(u,f);var r=Math.round(d.map((function(t){return(t._groups||t)[0][0].getBBox().height})).reduce((function(t,e){return t+e})));e.sections[n].height+=r-(i+a)}})),e.height=Math.round(e.stopy-e.starty),u},L_=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},O_=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}};wg.sanitizeUrl,Jw.parser.yy=b_;var R_={},U_={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((function(t){return t.height||0})))+(0===this.loops.length?0:this.loops.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))+(0===this.messages.length?0:this.messages.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))+(0===this.notes.length?0:this.notes.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,K_(Jw.parser.yy.getConfig())},updateVal:function(t,e,n,r){void 0===t[e]?t[e]=n:t[e]=r(n,t[e])},updateBounds:function(t,e,n,r){var i=this,a=0;function o(o){return function(s){a++;var c=i.sequenceItems.length-a+1;i.updateVal(s,"starty",e-c*R_.boxMargin,Math.min),i.updateVal(s,"stopy",r+c*R_.boxMargin,Math.max),i.updateVal(U_.data,"startx",t-c*R_.boxMargin,Math.min),i.updateVal(U_.data,"stopx",n+c*R_.boxMargin,Math.max),"activation"!==o&&(i.updateVal(s,"startx",t-c*R_.boxMargin,Math.min),i.updateVal(s,"stopx",n+c*R_.boxMargin,Math.max),i.updateVal(U_.data,"starty",e-c*R_.boxMargin,Math.min),i.updateVal(U_.data,"stopy",r+c*R_.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(t,e,n,r){var i=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,r),s=Math.max(e,r);this.updateVal(U_.data,"startx",i,Math.min),this.updateVal(U_.data,"starty",o,Math.min),this.updateVal(U_.data,"stopx",a,Math.max),this.updateVal(U_.data,"stopy",s,Math.max),this.updateBounds(i,o,a,s)},newActivation:function(t,e,n){var r=n[t.from.actor],i=$_(t.from.actor).length||0,a=r.x+r.width/2+(i-1)*R_.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+R_.activationWidth,stopy:void 0,actor:t.from.actor,anchored:F_(e)})},endActivation:function(t){var e=this.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){var e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:U_.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},P_=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},Q_=function(t){return{fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}},H_=function(t){return{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}},G_=function(t,e,n,r){for(var i=0,a=0,o=0,s=0;s<n.length;s++){var c=e[n[s]];c.width=c.width||R_.width,c.height=Math.max(c.height||R_.height,R_.height),c.margin=c.margin||R_.actorMargin,c.x=i+a,c.y=r;var l=N_(t,c,R_);o=Math.max(o,l),U_.insert(c.x,r,c.x+c.width,c.height),i+=c.width,a+=c.margin,U_.models.addActor(c)}U_.bumpVerticalPos(o)},j_=function(t,e,n){for(var r=0,i=0,a=0;a<n.length;a++){var o=e[n[a]],s=z_(o),c=M_(t,o,s,R_,R_.forceMenus);c.height>r&&(r=c.height),c.width+o.x>i&&(i=c.width+o.x)}return{maxHeight:r,maxWidth:i}},K_=function(t){gm(R_,t),t.fontFamily&&(R_.actorFontFamily=R_.noteFontFamily=R_.messageFontFamily=t.fontFamily),t.fontSize&&(R_.actorFontSize=R_.noteFontSize=R_.messageFontSize=t.fontSize),t.fontWeight&&(R_.actorFontWeight=R_.noteFontWeight=R_.messageFontWeight=t.fontWeight)},$_=function(t){return U_.activations.filter((function(e){return e.actor===t}))},Y_=function(t,e){var n=e[t],r=$_(t);return[r.reduce((function(t,e){return Math.min(t,e.startx)}),n.x+n.width/2),r.reduce((function(t,e){return Math.max(t,e.stopx)}),n.x+n.width/2)]};function V_(t,e,n,r,i){U_.bumpVerticalPos(n);var a=r;if(e.id&&e.message&&t[e.id]){var s=t[e.id].width,c=P_(R_);e.message=Bm.wrapLabel("[".concat(e.message,"]"),s-2*R_.wrapPadding,c),e.width=s,e.wrap=!0;var l=Bm.calculateTextDimensions(e.message,c),A=Math.max(l.height,R_.labelBoxHeight);a=r+A,o.debug("".concat(A," - ").concat(e.message))}i(e),U_.bumpVerticalPos(a)}var z_=function(t){var e=0,n=H_(R_);for(var r in t.links){var i=Bm.calculateTextDimensions(r,n).width+2*R_.wrapPadding+2*R_.boxMargin;e<i&&(e=i)}return e};const W_={bounds:U_,drawActors:G_,drawActorsPopup:j_,setConf:K_,draw:function(t,e){R_=Lm().sequence,Jw.parser.yy.clear(),Jw.parser.yy.setWrap(R_.wrap),Jw.parser.parse(t+"\n"),U_.init(),o.debug("C:".concat(JSON.stringify(R_,null,2)));var n=mc('[id="'.concat(e,'"]')),r=Jw.parser.yy.getActors(),i=Jw.parser.yy.getActorKeys(),a=Jw.parser.yy.getMessages(),s=Jw.parser.yy.getTitle(),c=function(t,e){var n={};return e.forEach((function(e){if(t[e.to]&&t[e.from]){var r=t[e.to];if(e.placement===Jw.parser.yy.PLACEMENT.LEFTOF&&!r.prevActor)return;if(e.placement===Jw.parser.yy.PLACEMENT.RIGHTOF&&!r.nextActor)return;var i=void 0!==e.placement,a=!i,o=i?Q_(R_):P_(R_),s=e.wrap?Bm.wrapLabel(e.message,R_.width-2*R_.wrapPadding,o):e.message,c=Bm.calculateTextDimensions(s,o).width+2*R_.wrapPadding;a&&e.from===r.nextActor?n[e.to]=Math.max(n[e.to]||0,c):a&&e.from===r.prevActor?n[e.from]=Math.max(n[e.from]||0,c):a&&e.from===e.to?(n[e.from]=Math.max(n[e.from]||0,c/2),n[e.to]=Math.max(n[e.to]||0,c/2)):e.placement===Jw.parser.yy.PLACEMENT.RIGHTOF?n[e.from]=Math.max(n[e.from]||0,c):e.placement===Jw.parser.yy.PLACEMENT.LEFTOF?n[r.prevActor]=Math.max(n[r.prevActor]||0,c):e.placement===Jw.parser.yy.PLACEMENT.OVER&&(r.prevActor&&(n[r.prevActor]=Math.max(n[r.prevActor]||0,c/2)),r.nextActor&&(n[e.from]=Math.max(n[e.from]||0,c/2)))}})),o.debug("maxMessageWidthPerActor:",n),n}(r,a);R_.height=function(t,e){var n=0;for(var r in Object.keys(t).forEach((function(e){var r=t[e];r.wrap&&(r.description=Bm.wrapLabel(r.description,R_.width-2*R_.wrapPadding,H_(R_)));var i=Bm.calculateTextDimensions(r.description,H_(R_));r.width=r.wrap?R_.width:Math.max(R_.width,i.width+2*R_.wrapPadding),r.height=r.wrap?Math.max(i.height,R_.height):R_.height,n=Math.max(n,r.height)})),e){var i=t[r];if(i){var a=t[i.nextActor];if(a){var o=e[r]+R_.actorMargin-i.width/2-a.width/2;i.margin=Math.max(o,R_.actorMargin)}}}return Math.max(n,R_.height)}(r,c),function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")}(n),function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}(n),function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}(n),G_(n,r,i,0);var l=function(t,e){var n,r,i,a={},s=[];return t.forEach((function(t){switch(t.id=Bm.random({length:10}),t.type){case Jw.parser.yy.LINETYPE.LOOP_START:case Jw.parser.yy.LINETYPE.ALT_START:case Jw.parser.yy.LINETYPE.OPT_START:case Jw.parser.yy.LINETYPE.PAR_START:s.push({id:t.id,msg:t.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case Jw.parser.yy.LINETYPE.ALT_ELSE:case Jw.parser.yy.LINETYPE.PAR_AND:t.message&&(n=s.pop(),a[n.id]=n,a[t.id]=n,s.push(n));break;case Jw.parser.yy.LINETYPE.LOOP_END:case Jw.parser.yy.LINETYPE.ALT_END:case Jw.parser.yy.LINETYPE.OPT_END:case Jw.parser.yy.LINETYPE.PAR_END:n=s.pop(),a[n.id]=n;break;case Jw.parser.yy.LINETYPE.ACTIVE_START:var c=e[t.from?t.from.actor:t.to.actor],l=$_(t.from?t.from.actor:t.to.actor).length,A=c.x+c.width/2+(l-1)*R_.activationWidth/2,u={startx:A,stopx:A+R_.activationWidth,actor:t.from.actor,enabled:!0};U_.activations.push(u);break;case Jw.parser.yy.LINETYPE.ACTIVE_END:var h=U_.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);delete U_.activations.splice(h,1)[0]}void 0!==t.placement?(r=function(t,e){var n=e[t.from].x,r=e[t.to].x,i=t.wrap&&t.message,a=Bm.calculateTextDimensions(i?Bm.wrapLabel(t.message,R_.width,Q_(R_)):t.message,Q_(R_)),s={width:i?R_.width:Math.max(R_.width,a.width+2*R_.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===Jw.parser.yy.PLACEMENT.RIGHTOF?(s.width=i?Math.max(R_.width,a.width):Math.max(e[t.from].width/2+e[t.to].width/2,a.width+2*R_.noteMargin),s.startx=n+(e[t.from].width+R_.actorMargin)/2):t.placement===Jw.parser.yy.PLACEMENT.LEFTOF?(s.width=i?Math.max(R_.width,a.width+2*R_.noteMargin):Math.max(e[t.from].width/2+e[t.to].width/2,a.width+2*R_.noteMargin),s.startx=n-s.width+(e[t.from].width-R_.actorMargin)/2):t.to===t.from?(a=Bm.calculateTextDimensions(i?Bm.wrapLabel(t.message,Math.max(R_.width,e[t.from].width),Q_(R_)):t.message,Q_(R_)),s.width=i?Math.max(R_.width,e[t.from].width):Math.max(e[t.from].width,R_.width,a.width+2*R_.noteMargin),s.startx=n+(e[t.from].width-s.width)/2):(s.width=Math.abs(n+e[t.from].width/2-(r+e[t.to].width/2))+R_.actorMargin,s.startx=n<r?n+e[t.from].width/2-R_.actorMargin/2:r+e[t.to].width/2-R_.actorMargin/2),i&&(s.message=Bm.wrapLabel(t.message,s.width-2*R_.wrapPadding,Q_(R_))),o.debug("NM:[".concat(s.startx,",").concat(s.stopx,",").concat(s.starty,",").concat(s.stopy,":").concat(s.width,",").concat(s.height,"=").concat(t.message,"]")),s}(t,e),t.noteModel=r,s.forEach((function(t){(n=t).from=Math.min(n.from,r.startx),n.to=Math.max(n.to,r.startx+r.width),n.width=Math.max(n.width,Math.abs(n.from-n.to))-R_.labelBoxWidth}))):(i=function(t,e){var n=!1;if([Jw.parser.yy.LINETYPE.SOLID_OPEN,Jw.parser.yy.LINETYPE.DOTTED_OPEN,Jw.parser.yy.LINETYPE.SOLID,Jw.parser.yy.LINETYPE.DOTTED,Jw.parser.yy.LINETYPE.SOLID_CROSS,Jw.parser.yy.LINETYPE.DOTTED_CROSS,Jw.parser.yy.LINETYPE.SOLID_POINT,Jw.parser.yy.LINETYPE.DOTTED_POINT].includes(t.type)&&(n=!0),!n)return{};var r=Y_(t.from,e),i=Y_(t.to,e),a=r[0]<=i[0]?1:0,o=r[0]<i[0]?0:1,s=r.concat(i),c=Math.abs(i[o]-r[a]);t.wrap&&t.message&&(t.message=Bm.wrapLabel(t.message,Math.max(c+2*R_.wrapPadding,R_.width),P_(R_)));var l=Bm.calculateTextDimensions(t.message,P_(R_));return{width:Math.max(t.wrap?0:l.width+2*R_.wrapPadding,c+2*R_.wrapPadding,R_.width),height:0,startx:r[a],stopx:i[o],starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,s),toBounds:Math.max.apply(null,s)}}(t,e),t.msgModel=i,i.startx&&i.stopx&&s.length>0&&s.forEach((function(r){if(n=r,i.startx===i.stopx){var a=e[t.from],o=e[t.to];n.from=Math.min(a.x-i.width/2,a.x-a.width/2,n.from),n.to=Math.max(o.x+i.width/2,o.x+a.width/2,n.to),n.width=Math.max(n.width,Math.abs(n.to-n.from))-R_.labelBoxWidth}else n.from=Math.min(i.startx,n.from),n.to=Math.max(i.stopx,n.to),n.width=Math.max(n.width,i.width)-R_.labelBoxWidth})))})),U_.activations=[],o.debug("Loop type widths:",a),a}(a,r);(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")})(n),function(t){var e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}(n),function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}(n),function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)}(n);var A=1;a.forEach((function(t){var e,i,a;switch(t.type){case Jw.parser.yy.LINETYPE.NOTE:i=t.noteModel,function(t,e){U_.bumpVerticalPos(R_.boxMargin),e.height=R_.boxMargin,e.starty=U_.getVerticalPos();var n=O_();n.x=e.startx,n.y=e.starty,n.width=e.width||R_.width,n.class="note";var r=t.append("g"),i=I_(r,n),a=L_();a.x=e.startx,a.y=e.starty,a.width=n.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=R_.noteFontFamily,a.fontSize=R_.noteFontSize,a.fontWeight=R_.noteFontWeight,a.anchor=R_.noteAlign,a.textMargin=R_.noteMargin,a.valign=R_.noteAlign;var o=B_(r,a),s=Math.round(o.map((function(t){return(t._groups||t)[0][0].getBBox().height})).reduce((function(t,e){return t+e})));i.attr("height",s+2*R_.noteMargin),e.height+=s+2*R_.noteMargin,U_.bumpVerticalPos(s+2*R_.noteMargin),e.stopy=e.starty+s+2*R_.noteMargin,e.stopx=e.startx+n.width,U_.insert(e.startx,e.starty,e.stopx,e.stopy),U_.models.addNote(e)}(n,i);break;case Jw.parser.yy.LINETYPE.ACTIVE_START:U_.newActivation(t,n,r);break;case Jw.parser.yy.LINETYPE.ACTIVE_END:!function(t,e){var n=U_.endActivation(t);n.starty+18>e&&(n.starty=e-6,e+=12),function(t,e,n,r,i){var a={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},o=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+i%3,a.width=e.stopx-e.startx,a.height=n-e.starty,__(o,a)}(0,n,e,0,$_(t.from.actor).length),U_.insert(n.startx,e-10,n.stopx,e)}(t,U_.getVerticalPos());break;case Jw.parser.yy.LINETYPE.LOOP_START:V_(l,t,R_.boxMargin,R_.boxMargin+R_.boxTextMargin,(function(t){return U_.newLoop(t)}));break;case Jw.parser.yy.LINETYPE.LOOP_END:e=U_.endLoop(),D_(n,e,"loop",R_),U_.bumpVerticalPos(e.stopy-U_.getVerticalPos()),U_.models.addLoop(e);break;case Jw.parser.yy.LINETYPE.RECT_START:V_(l,t,R_.boxMargin,R_.boxMargin,(function(t){return U_.newLoop(void 0,t.message)}));break;case Jw.parser.yy.LINETYPE.RECT_END:e=U_.endLoop(),function(t,e){__(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()}(n,e),U_.models.addLoop(e),U_.bumpVerticalPos(e.stopy-U_.getVerticalPos());break;case Jw.parser.yy.LINETYPE.OPT_START:V_(l,t,R_.boxMargin,R_.boxMargin+R_.boxTextMargin,(function(t){return U_.newLoop(t)}));break;case Jw.parser.yy.LINETYPE.OPT_END:e=U_.endLoop(),D_(n,e,"opt",R_),U_.bumpVerticalPos(e.stopy-U_.getVerticalPos()),U_.models.addLoop(e);break;case Jw.parser.yy.LINETYPE.ALT_START:V_(l,t,R_.boxMargin,R_.boxMargin+R_.boxTextMargin,(function(t){return U_.newLoop(t)}));break;case Jw.parser.yy.LINETYPE.ALT_ELSE:V_(l,t,R_.boxMargin+R_.boxTextMargin,R_.boxMargin,(function(t){return U_.addSectionToLoop(t)}));break;case Jw.parser.yy.LINETYPE.ALT_END:e=U_.endLoop(),D_(n,e,"alt",R_),U_.bumpVerticalPos(e.stopy-U_.getVerticalPos()),U_.models.addLoop(e);break;case Jw.parser.yy.LINETYPE.PAR_START:V_(l,t,R_.boxMargin,R_.boxMargin+R_.boxTextMargin,(function(t){return U_.newLoop(t)}));break;case Jw.parser.yy.LINETYPE.PAR_AND:V_(l,t,R_.boxMargin+R_.boxTextMargin,R_.boxMargin,(function(t){return U_.addSectionToLoop(t)}));break;case Jw.parser.yy.LINETYPE.PAR_END:e=U_.endLoop(),D_(n,e,"par",R_),U_.bumpVerticalPos(e.stopy-U_.getVerticalPos()),U_.models.addLoop(e);break;default:try{(a=t.msgModel).starty=U_.getVerticalPos(),a.sequenceIndex=A,function(t,e){U_.bumpVerticalPos(10);var n=e.startx,r=e.stopx,i=e.starty,a=e.message,o=e.type,s=e.sequenceIndex,c=Ng.splitBreaks(a).length,l=Bm.calculateTextDimensions(a,P_(R_)),A=l.height/c;e.height+=A,U_.bumpVerticalPos(A);var u=L_();u.x=n,u.y=i+10,u.width=r-n,u.class="messageText",u.dy="1em",u.text=a,u.fontFamily=R_.messageFontFamily,u.fontSize=R_.messageFontSize,u.fontWeight=R_.messageFontWeight,u.anchor=R_.messageAlign,u.valign=R_.messageAlign,u.textMargin=R_.wrapPadding,u.tspan=!1,B_(t,u);var h,f,d=l.height-10,p=l.width;if(n===r){f=U_.getVerticalPos()+d,R_.rightAngles?h=t.append("path").attr("d","M ".concat(n,",").concat(f," H ").concat(n+Math.max(R_.width/2,p/2)," V ").concat(f+25," H ").concat(n)):(d+=R_.boxMargin,f=U_.getVerticalPos()+d,h=t.append("path").attr("d","M "+n+","+f+" C "+(n+60)+","+(f-10)+" "+(n+60)+","+(f+30)+" "+n+","+(f+20))),d+=30;var g=Math.max(p/2,R_.width/2);U_.insert(n-g,U_.getVerticalPos()-10+d,r+g,U_.getVerticalPos()+30+d)}else d+=R_.boxMargin,f=U_.getVerticalPos()+d,(h=t.append("line")).attr("x1",n),h.attr("y1",f),h.attr("x2",r),h.attr("y2",f),U_.insert(n,f-10,r,f);o===Jw.parser.yy.LINETYPE.DOTTED||o===Jw.parser.yy.LINETYPE.DOTTED_CROSS||o===Jw.parser.yy.LINETYPE.DOTTED_POINT||o===Jw.parser.yy.LINETYPE.DOTTED_OPEN?(h.style("stroke-dasharray","3, 3"),h.attr("class","messageLine1")):h.attr("class","messageLine0");var m="";R_.arrowMarkerAbsolute&&(m=(m=(m=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),h.attr("stroke-width",2),h.attr("stroke","none"),h.style("fill","none"),o!==Jw.parser.yy.LINETYPE.SOLID&&o!==Jw.parser.yy.LINETYPE.DOTTED||h.attr("marker-end","url("+m+"#arrowhead)"),o!==Jw.parser.yy.LINETYPE.SOLID_POINT&&o!==Jw.parser.yy.LINETYPE.DOTTED_POINT||h.attr("marker-end","url("+m+"#filled-head)"),o!==Jw.parser.yy.LINETYPE.SOLID_CROSS&&o!==Jw.parser.yy.LINETYPE.DOTTED_CROSS||h.attr("marker-end","url("+m+"#crosshead)"),(b_.showSequenceNumbers()||R_.showSequenceNumbers)&&(h.attr("marker-start","url("+m+"#sequencenumber)"),t.append("text").attr("x",n).attr("y",f+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(s)),U_.bumpVerticalPos(d),e.height+=d,e.stopy=e.starty+e.height,U_.insert(e.fromBounds,e.starty,e.toBounds,e.stopy)}(n,a),U_.models.addMessage(a)}catch(t){o.error("error while drawing message",t)}}[Jw.parser.yy.LINETYPE.SOLID_OPEN,Jw.parser.yy.LINETYPE.DOTTED_OPEN,Jw.parser.yy.LINETYPE.SOLID,Jw.parser.yy.LINETYPE.DOTTED,Jw.parser.yy.LINETYPE.SOLID_CROSS,Jw.parser.yy.LINETYPE.DOTTED_CROSS,Jw.parser.yy.LINETYPE.SOLID_POINT,Jw.parser.yy.LINETYPE.DOTTED_POINT].includes(t.type)&&A++})),R_.mirrorActors&&(U_.bumpVerticalPos(2*R_.boxMargin),G_(n,r,i,U_.getVerticalPos()),U_.bumpVerticalPos(R_.boxMargin),function(t,e){t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)}(n,U_.getVerticalPos()));var u=j_(n,r,i),h=U_.getBounds().bounds;o.debug("For line height fix Querying: #"+e+" .actor-line"),yc("#"+e+" .actor-line").attr("y2",h.stopy);var f=h.stopy-h.starty;f<u.maxHeight&&(f=u.maxHeight);var d=f+2*R_.diagramMarginY;R_.mirrorActors&&(d=d-R_.boxMargin+R_.bottomMarginAdj);var p=h.stopx-h.startx;p<u.maxWidth&&(p=u.maxWidth);var g=p+2*R_.diagramMarginX;s&&n.append("text").text(s).attr("x",(h.stopx-h.startx)/2-2*R_.diagramMarginX).attr("y",-25),Em(n,d,g,R_.useMaxWidth);var m=s?40:0;n.attr("viewBox",h.startx-R_.diagramMarginX+" -"+(R_.diagramMarginY+m)+" "+g+" "+(d+m)),o.debug("models:",U_.models)}};var q_=n(3584),X_=n.n(q_);function J_(t){return(J_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Z_=function(t){return JSON.parse(JSON.stringify(t))},tE=[],eE={root:{relations:[],states:{},documents:{}}},nE=eE.root,rE=0,iE=function(t,e,n,r,i){void 0===nE.states[t]?nE.states[t]={id:t,descriptions:[],type:e,doc:n,note:i}:(nE.states[t].doc||(nE.states[t].doc=n),nE.states[t].type||(nE.states[t].type=e)),r&&(o.info("Adding state ",t,r),"string"==typeof r&&sE(t,r.trim()),"object"===J_(r)&&r.forEach((function(e){return sE(t,e.trim())}))),i&&(nE.states[t].note=i,nE.states[t].note.text=Ng.sanitizeText(nE.states[t].note.text,Lm()))},aE=function(){nE=(eE={root:{relations:[],states:{},documents:{}}}).root,nE=eE.root,rE=0,lE=[]},oE=function(t,e,n){var r=t,i=e,a="default",o="default";"[*]"===t&&(r="start"+ ++rE,a="start"),"[*]"===e&&(i="end"+rE,o="end"),iE(r,a),iE(i,o),nE.relations.push({id1:r,id2:i,title:Ng.sanitizeText(n,Lm())})},sE=function(t,e){var n=nE.states[t],r=e;":"===r[0]&&(r=r.substr(1).trim()),n.descriptions.push(Ng.sanitizeText(r,Lm()))},cE=0,lE=[],AE="TB";const uE={parseDirective:function(t,e,n){sC.parseDirective(this,t,e,n)},getConfig:function(){return Lm().state},addState:iE,clear:aE,getState:function(t){return nE.states[t]},getStates:function(){return nE.states},getRelations:function(){return nE.relations},getClasses:function(){return lE},getDirection:function(){return AE},addRelation:oE,getDividerId:function(){return"divider-id-"+ ++cE},setDirection:function(t){AE=t},cleanupLabel:function(t){return":"===t.substring(0,1)?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){o.info("Documents = ",eE)},getRootDoc:function(){return tE},setRootDoc:function(t){o.info("Setting root doc",t),tE=t},getRootDocV2:function(){return function t(e,n,r){if("relation"===n.stmt)t(e,n.state1,!0),t(e,n.state2,!1);else if("state"===n.stmt&&"[*]"===n.id&&(n.id=r?e.id+"_start":e.id+"_end",n.start=r),n.doc){var i=[],a=0,o=[];for(a=0;a<n.doc.length;a++)if("divider"===n.doc[a].type){var s=Z_(n.doc[a]);s.doc=Z_(o),i.push(s),o=[]}else o.push(n.doc[a]);if(i.length>0&&o.length>0){var c={stmt:"state",id:dm(),type:"divider",doc:Z_(o)};i.push(Z_(c)),n.doc=i}n.doc.forEach((function(e){return t(n,e,!0)}))}}({id:"root"},{id:"root",doc:tE},!0),{id:"root",doc:tE}},extract:function(t){var e;e=t.doc?t.doc:t,o.info(e),aE(),o.info("Extract",e),e.forEach((function(t){"state"===t.stmt&&iE(t.id,t.type,t.doc,t.description,t.note),"relation"===t.stmt&&oE(t.state1.id,t.state2.id,t.description)}))},trimColon:function(t){return t&&":"===t[0]?t.substr(1).trim():t.trim()}};function hE(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var fE,dE=function(t,e,n){var r,i=Lm().state.padding,a=2*Lm().state.padding,o=t.node().getBBox(),s=o.width,c=o.x,l=t.append("text").attr("x",0).attr("y",Lm().state.titleShift).attr("font-size",Lm().state.fontSize).attr("class","state-title").text(e.id),A=l.node().getBBox().width+a,u=Math.max(A,s);u===s&&(u+=a);var h=t.node().getBBox();e.doc,r=c-i,A>s&&(r=(s-u)/2+i),Math.abs(c-h.x)<i&&A>s&&(r=c-(A-s)/2);var f=1-Lm().state.textHeight;return t.insert("rect",":first-child").attr("x",r).attr("y",f).attr("class",n?"alt-composit":"composit").attr("width",u).attr("height",h.height+Lm().state.textHeight+Lm().state.titleShift+1).attr("rx","0"),l.attr("x",r+i),A<=s&&l.attr("x",c+(u-a)/2-A/2+i),t.insert("rect",":first-child").attr("x",r).attr("y",Lm().state.titleShift-Lm().state.textHeight-Lm().state.padding).attr("width",u).attr("height",3*Lm().state.textHeight).attr("rx",Lm().state.radius),t.insert("rect",":first-child").attr("x",r).attr("y",Lm().state.titleShift-Lm().state.textHeight-Lm().state.padding).attr("width",u).attr("height",h.height+3+2*Lm().state.textHeight).attr("rx",Lm().state.radius),t},pE=function(t,e){var n=e.id,r={id:n,label:e.id,width:0,height:0},i=t.append("g").attr("id",n).attr("class","stateGroup");"start"===e.type&&function(t){t.append("circle").attr("class","start-state").attr("r",Lm().state.sizeUnit).attr("cx",Lm().state.padding+Lm().state.sizeUnit).attr("cy",Lm().state.padding+Lm().state.sizeUnit)}(i),"end"===e.type&&function(t){t.append("circle").attr("class","end-state-outer").attr("r",Lm().state.sizeUnit+Lm().state.miniPadding).attr("cx",Lm().state.padding+Lm().state.sizeUnit+Lm().state.miniPadding).attr("cy",Lm().state.padding+Lm().state.sizeUnit+Lm().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",Lm().state.sizeUnit).attr("cx",Lm().state.padding+Lm().state.sizeUnit+2).attr("cy",Lm().state.padding+Lm().state.sizeUnit+2)}(i),"fork"!==e.type&&"join"!==e.type||function(t,e){var n=Lm().state.forkWidth,r=Lm().state.forkHeight;if(e.parentId){var i=n;n=r,r=i}t.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",r).attr("x",Lm().state.padding).attr("y",Lm().state.padding)}(i,e),"note"===e.type&&function(t,e){e.attr("class","state-note");var n=e.append("rect").attr("x",0).attr("y",Lm().state.padding),r=function(t,e,n,r){var i=0,a=r.append("text");a.style("text-anchor","start"),a.attr("class","noteText");var o,s=t.replace(/\r\n/g,"<br/>"),c=(s=s.replace(/\n/g,"<br/>")).split(Ng.lineBreakRegex),l=1.25*Lm().state.noteMargin,A=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return hE(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hE(t,e):void 0}}(t))){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(c);try{for(A.s();!(o=A.n()).done;){var u=o.value.trim();if(u.length>0){var h=a.append("tspan");h.text(u),0===l&&(l+=h.node().getBBox().height),i+=l,h.attr("x",0+Lm().state.noteMargin),h.attr("y",0+i+1.25*Lm().state.noteMargin)}}}catch(t){A.e(t)}finally{A.f()}return{textWidth:a.node().getBBox().width,textHeight:i}}(t,0,0,e.append("g")),i=r.textWidth,a=r.textHeight;n.attr("height",a+2*Lm().state.noteMargin),n.attr("width",i+2*Lm().state.noteMargin)}(e.note.text,i),"divider"===e.type&&function(t){t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Lm().state.textHeight).attr("class","divider").attr("x2",2*Lm().state.textHeight).attr("y1",0).attr("y2",0)}(i),"default"===e.type&&0===e.descriptions.length&&function(t,e){var n=t.append("text").attr("x",2*Lm().state.padding).attr("y",Lm().state.textHeight+2*Lm().state.padding).attr("font-size",Lm().state.fontSize).attr("class","state-title").text(e.id).node().getBBox();t.insert("rect",":first-child").attr("x",Lm().state.padding).attr("y",Lm().state.padding).attr("width",n.width+2*Lm().state.padding).attr("height",n.height+2*Lm().state.padding).attr("rx",Lm().state.radius)}(i,e),"default"===e.type&&e.descriptions.length>0&&function(t,e){var n=t.append("text").attr("x",2*Lm().state.padding).attr("y",Lm().state.textHeight+1.3*Lm().state.padding).attr("font-size",Lm().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),r=n.height,i=t.append("text").attr("x",Lm().state.padding).attr("y",r+.4*Lm().state.padding+Lm().state.dividerMargin+Lm().state.textHeight).attr("class","state-description"),a=!0,o=!0;e.descriptions.forEach((function(t){a||(function(t,e,n){var r=t.append("tspan").attr("x",2*Lm().state.padding).text(e);n||r.attr("dy",Lm().state.textHeight)}(i,t,o),o=!1),a=!1}));var s=t.append("line").attr("x1",Lm().state.padding).attr("y1",Lm().state.padding+r+Lm().state.dividerMargin/2).attr("y2",Lm().state.padding+r+Lm().state.dividerMargin/2).attr("class","descr-divider"),c=i.node().getBBox(),l=Math.max(c.width,n.width);s.attr("x2",l+3*Lm().state.padding),t.insert("rect",":first-child").attr("x",Lm().state.padding).attr("y",Lm().state.padding).attr("width",l+2*Lm().state.padding).attr("height",c.height+r+2*Lm().state.padding).attr("rx",Lm().state.radius)}(i,e);var a=i.node().getBBox();return r.width=a.width+2*Lm().state.padding,r.height=a.height+2*Lm().state.padding,r},gE=0;q_.parser.yy=uE;var mE={};const yE=function(t,e){fE=Lm().state,q_.parser.yy.clear(),q_.parser.parse(t),o.debug("Rendering diagram "+t);var n=mc("[id='".concat(e,"']"));n.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new(ry().Graph)({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}})),function t(e,n,r,i){var a,s=new(ry().Graph)({compound:!0,multigraph:!0}),c=!0;for(a=0;a<e.length;a++)if("relation"===e[a].stmt){c=!1;break}r?s.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:c?1:fE.edgeLengthFactor,nodeSep:c?1:50,isMultiGraph:!0}):s.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:c?1:fE.edgeLengthFactor,nodeSep:c?1:50,ranker:"tight-tree",isMultiGraph:!0}),s.setDefaultEdgeLabel((function(){return{}})),uE.extract(e);for(var l=uE.getStates(),A=uE.getRelations(),u=Object.keys(l),h=0;h<u.length;h++){var f=l[u[h]];r&&(f.parentId=r);var d=void 0;if(f.doc){var p=n.append("g").attr("id",f.id).attr("class","stateGroup");d=t(f.doc,p,f.id,!i);var g=(p=dE(p,f,i)).node().getBBox();d.width=g.width,d.height=g.height+fE.padding/2,mE[f.id]={y:fE.compositTitleSize}}else d=pE(n,f);if(f.note){var m={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},y=pE(n,m);"left of"===f.note.position?(s.setNode(d.id+"-note",y),s.setNode(d.id,d)):(s.setNode(d.id,d),s.setNode(d.id+"-note",y)),s.setParent(d.id,d.id+"-group"),s.setParent(d.id+"-note",d.id+"-group")}else s.setNode(d.id,d)}o.debug("Count=",s.nodeCount(),s);var v=0;A.forEach((function(t){var e;v++,o.debug("Setting edge",t),s.setEdge(t.id1,t.id2,{relation:t,width:(e=t.title,e?e.length*fE.fontSizeFactor:1),height:fE.labelHeight*Ng.getRows(t.title).length,labelpos:"c"},"id"+v)})),ey().layout(s),o.debug("Graph after layout",s.nodes());var b=n.node();s.nodes().forEach((function(t){void 0!==t&&void 0!==s.node(t)?(o.warn("Node "+t+": "+JSON.stringify(s.node(t))),mc("#"+b.id+" #"+t).attr("transform","translate("+(s.node(t).x-s.node(t).width/2)+","+(s.node(t).y+(mE[t]?mE[t].y:0)-s.node(t).height/2)+" )"),mc("#"+b.id+" #"+t).attr("data-x-shift",s.node(t).x-s.node(t).width/2),document.querySelectorAll("#"+b.id+" #"+t+" .divider").forEach((function(t){var e=t.parentElement,n=0,r=0;e&&(e.parentElement&&(n=e.parentElement.getBBox().width),r=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(r)&&(r=0)),t.setAttribute("x1",0-r+8),t.setAttribute("x2",n-r-8)}))):o.debug("No Node "+t+": "+JSON.stringify(s.node(t)))}));var w=b.getBBox();s.edges().forEach((function(t){void 0!==t&&void 0!==s.edge(t)&&(o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(s.edge(t))),function(t,e,n){e.points=e.points.filter((function(t){return!Number.isNaN(t.y)}));var r=e.points,i=Zc().x((function(t){return t.x})).y((function(t){return t.y})).curve(al),a=t.append("path").attr("d",i(r)).attr("id","edge"+gE).attr("class","transition"),s="";if(Lm().state.arrowMarkerAbsolute&&(s=(s=(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),a.attr("marker-end","url("+s+"#"+function(t){switch(t){case uE.relationType.AGGREGATION:return"aggregation";case uE.relationType.EXTENSION:return"extension";case uE.relationType.COMPOSITION:return"composition";case uE.relationType.DEPENDENCY:return"dependency"}}(uE.relationType.DEPENDENCY)+"End)"),void 0!==n.title){for(var c=t.append("g").attr("class","stateLabel"),l=Bm.calcLabelPosition(e.points),A=l.x,u=l.y,h=Ng.getRows(n.title),f=0,d=[],p=0,g=0,m=0;m<=h.length;m++){var y=c.append("text").attr("text-anchor","middle").text(h[m]).attr("x",A).attr("y",u+f),v=y.node().getBBox();if(p=Math.max(p,v.width),g=Math.min(g,v.x),o.info(v.x,A,u+f),0===f){var b=y.node().getBBox();f=b.height,o.info("Title height",f,u)}d.push(y)}var w=f*h.length;if(h.length>1){var _=(h.length-1)*f*.5;d.forEach((function(t,e){return t.attr("y",u+e*f-_)})),w=f*h.length}var E=c.node().getBBox();c.insert("rect",":first-child").attr("class","box").attr("x",A-p/2-Lm().state.padding/2).attr("y",u-w/2-Lm().state.padding/2-3.5).attr("width",p+Lm().state.padding).attr("height",w+Lm().state.padding),o.info(E)}gE++}(n,s.edge(t),s.edge(t).relation))})),w=b.getBBox();var _={id:r||"root",label:r||"root",width:0,height:0};return _.width=w.width+2*fE.padding,_.height=w.height+2*fE.padding,o.debug("Doc rendered",_,s),_}(uE.getRootDoc(),n,void 0,!1);var r=fE.padding,i=n.node().getBBox(),a=i.width+2*r,s=i.height+2*r;Em(n,s,1.75*a,fE.useMaxWidth),n.attr("viewBox","".concat(i.x-fE.padding," ").concat(i.y-fE.padding," ")+a+" "+s)};var vE={},bE={},wE=function(t,e,n,r){if("root"!==n.id){var i="rect";!0===n.start&&(i="start"),!1===n.start&&(i="end"),"default"!==n.type&&(i=n.type),bE[n.id]||(bE[n.id]={id:n.id,shape:i,description:Ng.sanitizeText(n.id,Lm()),classes:"statediagram-state"}),n.description&&(Array.isArray(bE[n.id].description)?(bE[n.id].shape="rectWithTitle",bE[n.id].description.push(n.description)):bE[n.id].description.length>0?(bE[n.id].shape="rectWithTitle",bE[n.id].description===n.id?bE[n.id].description=[n.description]:bE[n.id].description=[bE[n.id].description,n.description]):(bE[n.id].shape="rect",bE[n.id].description=n.description),bE[n.id].description=Ng.sanitizeTextOrArray(bE[n.id].description,Lm())),1===bE[n.id].description.length&&"rectWithTitle"===bE[n.id].shape&&(bE[n.id].shape="rect"),!bE[n.id].type&&n.doc&&(o.info("Setting cluster for ",n.id,CE(n)),bE[n.id].type="group",bE[n.id].dir=CE(n),bE[n.id].shape="divider"===n.type?"divider":"roundedWithTitle",bE[n.id].classes=bE[n.id].classes+" "+(r?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var a={labelStyle:"",shape:bE[n.id].shape,labelText:bE[n.id].description,classes:bE[n.id].classes,style:"",id:n.id,dir:bE[n.id].dir,domId:"state-"+n.id+"-"+_E,type:bE[n.id].type,padding:15};if(n.note){var s={labelStyle:"",shape:"note",labelText:n.note.text,classes:"statediagram-note",style:"",id:n.id+"----note-"+_E,domId:"state-"+n.id+"----note-"+_E,type:bE[n.id].type,padding:15},c={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:bE[n.id].classes,style:"",id:n.id+"----parent",domId:"state-"+n.id+"----parent-"+_E,type:"group",padding:0};_E++,t.setNode(n.id+"----parent",c),t.setNode(s.id,s),t.setNode(n.id,a),t.setParent(n.id,n.id+"----parent"),t.setParent(s.id,n.id+"----parent");var l=n.id,A=s.id;"left of"===n.note.position&&(l=s.id,A=n.id),t.setEdge(l,A,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else t.setNode(n.id,a)}e&&"root"!==e.id&&(o.trace("Setting node ",n.id," to be child of its parent ",e.id),t.setParent(n.id,e.id)),n.doc&&(o.trace("Adding nodes children "),EE(t,n,n.doc,!r))},_E=0,EE=function(t,e,n,r){o.trace("items",n),n.forEach((function(n){if("state"===n.stmt||"default"===n.stmt)wE(t,e,n,r);else if("relation"===n.stmt){wE(t,e,n.state1,r),wE(t,e,n.state2,r);var i={id:"edge"+_E,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:Ng.sanitizeText(n.description,Lm()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},a=n.state1.id,o=n.state2.id;t.setEdge(a,o,i,_E),_E++}}))},CE=function(t,e){var n=e||"TB";if(t.doc)for(var r=0;r<t.doc.length;r++){var i=t.doc[r];"dir"===i.stmt&&(n=i.value)}return n};const xE=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)vE[e[n]]=t[e[n]]};function BE(t){return function(t){if(Array.isArray(t))return TE(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return TE(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?TE(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TE(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var kE="",SE="",IE=[],NE=[],ME=[],FE=function(){for(var t=!0,e=0;e<ME.length;e++)ME[e].processed,t=t&&ME[e].processed;return t};const DE={parseDirective:function(t,e,n){sC.parseDirective(this,t,e,n)},getConfig:function(){return Lm().journey},clear:function(){IE.length=0,NE.length=0,SE="",kE="",ME.length=0},setTitle:function(t){kE=t},getTitle:function(){return kE},addSection:function(t){SE=t,IE.push(t)},getSections:function(){return IE},getTasks:function(){for(var t=FE(),e=0;!t&&e<100;)t=FE(),e++;return NE.push.apply(NE,ME),NE},addTask:function(t,e){var n=e.substr(1).split(":"),r=0,i=[];1===n.length?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(","));var a=i.map((function(t){return t.trim()})),o={section:SE,type:SE,people:a,task:t,score:r};ME.push(o)},addTaskOrg:function(t){var e={section:SE,type:SE,description:t,task:t,classes:[]};NE.push(e)},getActors:function(){return t=[],NE.forEach((function(e){e.people&&t.push.apply(t,BE(e.people))})),BE(new Set(t)).sort();var t}};var LE=n(9763),OE=n.n(LE),RE=function(t,e){var n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},UE=function(t,e){var n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},PE=-1,QE=function(){function t(t,e,n,i,a,o,s,c){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("font-color",c).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,c,l){for(var A=c.taskFontSize,u=c.taskFontFamily,h=t.split(/<br\s*\/?>/gi),f=0;f<h.length;f++){var d=f*A-A*(h.length-1)/2,p=e.append("text").attr("x",n+a/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",A).style("font-family",u);p.append("tspan").attr("x",n+a/2).attr("dy",d).text(h[f]),p.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(p,s)}}function n(t,n,i,a,o,s,c,l){var A=n.append("switch"),u=A.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,A,i,a,o,s,c,l),r(u,c)}function r(t,e){for(var n in e)n in e&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}();const HE=UE,GE=function(t,e,n){var r=t.append("g"),i={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=n.width,i.height=n.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,RE(r,i),QE(n)(e.text,r,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},n,e.colour)},jE=function(t,e,n){var r,i,a,o=e.x+n.width/2,s=t.append("g");PE++,s.append("line").attr("id","task"+PE).attr("x1",o).attr("y1",e.y).attr("x2",o).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),r=s,i={cx:o,cy:300+30*(5-e.score),score:e.score},r.append("circle").attr("cx",i.cx).attr("cy",i.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(a=r.append("g")).append("circle").attr("cx",i.cx-5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",i.cx+5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.score>3?function(t){var e=Vc().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+i.cx+","+(i.cy+2)+")")}(a):i.score<3?function(t){var e=Vc().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+i.cx+","+(i.cy+7)+")")}(a):function(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",i.cx-5).attr("y1",i.cy+7).attr("x2",i.cx+5).attr("y2",i.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(a);var c={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=n.width,c.height=n.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,RE(s,c);var l=e.x+14;e.people.forEach((function(t){var n=e.actors[t].color,r={cx:l,cy:e.y,r:7,fill:n,stroke:"#000",title:t,pos:e.actors[t].position};UE(s,r),l+=10})),QE(n)(e.task,s,c.x,c.y,c.width,c.height,{class:"task"},n,e.colour)};LE.parser.yy=DE;var KE={},$E=Lm().journey,YE=Lm().journey.leftMargin,VE={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,n,r){void 0===t[e]?t[e]=n:t[e]=r(n,t[e])},updateBounds:function(t,e,n,r){var i=Lm().journey,a=this,o=0;this.sequenceItems.forEach((function(s){o++;var c=a.sequenceItems.length-o+1;a.updateVal(s,"starty",e-c*i.boxMargin,Math.min),a.updateVal(s,"stopy",r+c*i.boxMargin,Math.max),a.updateVal(VE.data,"startx",t-c*i.boxMargin,Math.min),a.updateVal(VE.data,"stopx",n+c*i.boxMargin,Math.max),a.updateVal(s,"startx",t-c*i.boxMargin,Math.min),a.updateVal(s,"stopx",n+c*i.boxMargin,Math.max),a.updateVal(VE.data,"starty",e-c*i.boxMargin,Math.min),a.updateVal(VE.data,"stopy",r+c*i.boxMargin,Math.max)}))},insert:function(t,e,n,r){var i=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,r),s=Math.max(e,r);this.updateVal(VE.data,"startx",i,Math.min),this.updateVal(VE.data,"starty",o,Math.min),this.updateVal(VE.data,"stopx",a,Math.max),this.updateVal(VE.data,"stopy",s,Math.max),this.updateBounds(i,o,a,s)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},zE=$E.sectionFills,WE=$E.sectionColours;const qE=function(t){Object.keys(t).forEach((function(e){$E[e]=t[e]}))};var XE={};const JE=function(t){return"g.classGroup text {\n fill: ".concat(t.nodeBorder,";\n fill: ").concat(t.classText,";\n stroke: none;\n font-family: ").concat(t.fontFamily,";\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ").concat(t.classText,";\n}\n.edgeLabel .label rect {\n fill: ").concat(t.mainBkg,";\n}\n.label text {\n fill: ").concat(t.classText,";\n}\n.edgeLabel .label span {\n background: ").concat(t.mainBkg,";\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ").concat(t.nodeBorder,";\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n}\n\ng.classGroup line {\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(t.mainBkg,";\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ").concat(t.nodeBorder,";\n font-size: 10px;\n}\n\n.relation {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n}\n\n")},ZE=function(t){return".label {\n font-family: ".concat(t.fontFamily,";\n color: ").concat(t.nodeTextColor||t.textColor,";\n }\n .cluster-label text {\n fill: ").concat(t.titleColor,";\n }\n .cluster-label span {\n color: ").concat(t.titleColor,";\n }\n\n .label text,span {\n fill: ").concat(t.nodeTextColor||t.textColor,";\n color: ").concat(t.nodeTextColor||t.textColor,";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(t.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(t.lineColor,";\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ").concat(t.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(t.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n background-color: ").concat(t.edgeLabelBackground,";\n fill: ").concat(t.edgeLabelBackground,";\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(t.clusterBkg,";\n stroke: ").concat(t.clusterBorder,";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(t.titleColor,";\n }\n\n .cluster span {\n color: ").concat(t.titleColor,";\n }\n /* .cluster div {\n color: ").concat(t.titleColor,";\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(t.fontFamily,";\n font-size: 12px;\n background: ").concat(t.tertiaryColor,";\n border: 1px solid ").concat(t.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n")},tC=function(t){return"\ndefs #statediagram-barbEnd {\n fill: ".concat(t.transitionColor,";\n stroke: ").concat(t.transitionColor,";\n }\ng.stateGroup text {\n fill: ").concat(t.nodeBorder,";\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ").concat(t.textColor,";\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ").concat(t.stateLabelColor,";\n}\n\ng.stateGroup rect {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n}\n\ng.stateGroup line {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1;\n}\n\n.transition {\n stroke: ").concat(t.transitionColor,";\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ").concat(t.background,";\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ").concat(t.noteBorderColor,";\n fill: ").concat(t.noteBkgColor,";\n\n text {\n fill: ").concat(t.noteTextColor,";\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(t.mainBkg,";\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ").concat(t.labelBackgroundColor,";\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ").concat(t.transitionLabelColor||t.tertiaryTextColor,";\n}\n.label div .edgeLabel {\n color: ").concat(t.transitionLabelColor||t.tertiaryTextColor,";\n}\n\n.stateLabel text {\n fill: ").concat(t.stateLabelColor,";\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ").concat(t.specialStateColor,";\n stroke: ").concat(t.specialStateColor,";\n}\n\n.node .fork-join {\n fill: ").concat(t.specialStateColor,";\n stroke: ").concat(t.specialStateColor,";\n}\n\n.node circle.state-end {\n fill: ").concat(t.innerEndBackground,";\n stroke: ").concat(t.background,";\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ").concat(t.compositeBackground||t.background,";\n // stroke: ").concat(t.background,";\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ").concat(t.stateBkg||t.mainBkg,";\n stroke: ").concat(t.stateBorder||t.nodeBorder,";\n stroke-width: 1px;\n}\n.node polygon {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.stateBorder||t.nodeBorder,";;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ").concat(t.lineColor,";\n}\n\n.statediagram-cluster rect {\n fill: ").concat(t.compositeTitleBackground,";\n stroke: ").concat(t.stateBorder||t.nodeBorder,";\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ").concat(t.stateLabelColor,";\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ").concat(t.stateBorder||t.nodeBorder,";\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ").concat(t.compositeBackground||t.background,";\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ").concat(t.altBackground?t.altBackground:"#efefef",";\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ").concat(t.altBackground?t.altBackground:"#efefef",";\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ").concat(t.noteBkgColor,";\n stroke: ").concat(t.noteBorderColor,";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ").concat(t.noteBkgColor,";\n stroke: ").concat(t.noteBorderColor,";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ").concat(t.noteTextColor,";\n}\n\n.statediagram-note .nodeLabel {\n color: ").concat(t.noteTextColor,";\n}\n.statediagram .edgeLabel {\n color: red; // ").concat(t.noteTextColor,";\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ").concat(t.lineColor,";\n stroke: ").concat(t.lineColor,";\n stroke-width: 1;\n}\n")};var eC={flowchart:ZE,"flowchart-v2":ZE,sequence:function(t){return".actor {\n stroke: ".concat(t.actorBorder,";\n fill: ").concat(t.actorBkg,";\n }\n\n text.actor > tspan {\n fill: ").concat(t.actorTextColor,";\n stroke: none;\n }\n\n .actor-line {\n stroke: ").concat(t.actorLineColor,";\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ").concat(t.signalColor,";\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.signalColor,";\n }\n\n #arrowhead path {\n fill: ").concat(t.signalColor,";\n stroke: ").concat(t.signalColor,";\n }\n\n .sequenceNumber {\n fill: ").concat(t.sequenceNumberColor,";\n }\n\n #sequencenumber {\n fill: ").concat(t.signalColor,";\n }\n\n #crosshead path {\n fill: ").concat(t.signalColor,";\n stroke: ").concat(t.signalColor,";\n }\n\n .messageText {\n fill: ").concat(t.signalTextColor,";\n stroke: ").concat(t.signalTextColor,";\n }\n\n .labelBox {\n stroke: ").concat(t.labelBoxBorderColor,";\n fill: ").concat(t.labelBoxBkgColor,";\n }\n\n .labelText, .labelText > tspan {\n fill: ").concat(t.labelTextColor,";\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ").concat(t.loopTextColor,";\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.labelBoxBorderColor,";\n fill: ").concat(t.labelBoxBorderColor,";\n }\n\n .note {\n //stroke: #decc93;\n stroke: ").concat(t.noteBorderColor,";\n fill: ").concat(t.noteBkgColor,";\n }\n\n .noteText, .noteText > tspan {\n fill: ").concat(t.noteTextColor,";\n stroke: none;\n }\n\n .activation0 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .activation1 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .activation2 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ").concat(t.actorBkg,";\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ").concat(t.actorBorder,";\n fill: ").concat(t.actorBkg,";\n }\n .actor-man circle, line {\n stroke: ").concat(t.actorBorder,";\n fill: ").concat(t.actorBkg,";\n stroke-width: 2px;\n }\n")},gantt:function(t){return'\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n .exclude-range {\n fill: '.concat(t.excludeBkgColor,";\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ").concat(t.sectionBkgColor,";\n }\n\n .section2 {\n fill: ").concat(t.sectionBkgColor2,";\n }\n\n .section1,\n .section3 {\n fill: ").concat(t.altSectionBkgColor,";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle1 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle2 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle3 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle {\n text-anchor: start;\n // font-size: ").concat(t.ganttFontSize,";\n // text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(t.gridColor,";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(t.fontFamily,";\n fill: ").concat(t.textColor,";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(t.todayLineColor,";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n // .taskText:not([font-size]) {\n // font-size: ").concat(t.ganttFontSize,";\n // }\n\n .taskTextOutsideRight {\n fill: ").concat(t.taskTextDarkColor,";\n text-anchor: start;\n // font-size: ").concat(t.ganttFontSize,";\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(t.taskTextDarkColor,";\n text-anchor: end;\n // font-size: ").concat(t.ganttFontSize,";\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(t.taskTextColor,";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(t.taskBkgColor,";\n stroke: ").concat(t.taskBorderColor,";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(t.taskTextOutsideColor,";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(t.taskTextOutsideColor,";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(t.activeTaskBkgColor,";\n stroke: ").concat(t.activeTaskBorderColor,";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(t.doneTaskBorderColor,";\n fill: ").concat(t.doneTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.critBkgColor,";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.activeTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.doneTaskBkgColor,";\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.textColor," ;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n")},classDiagram:JE,"classDiagram-v2":JE,class:JE,stateDiagram:tC,state:tC,git:function(){return"\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n"},info:function(){return""},pie:function(t){return"\n .pieCircle{\n stroke: ".concat(t.pieStrokeColor,";\n stroke-width : ").concat(t.pieStrokeWidth,";\n opacity : ").concat(t.pieOpacity,";\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ").concat(t.pieTitleTextSize,";\n fill: ").concat(t.pieTitleTextColor,";\n font-family: ").concat(t.fontFamily,";\n }\n .slice {\n font-family: ").concat(t.fontFamily,";\n fill: ").concat(t.pieSectionTextColor,";\n font-size:").concat(t.pieSectionTextSize,";\n // fill: white;\n }\n .legend text {\n fill: ").concat(t.pieLegendTextColor,";\n font-family: ").concat(t.fontFamily,";\n font-size: ").concat(t.pieLegendTextSize,";\n }\n")},er:function(t){return"\n .entityBox {\n fill: ".concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n }\n\n .attributeBoxOdd {\n fill: #ffffff;\n stroke: ").concat(t.nodeBorder,";\n }\n\n .attributeBoxEven {\n fill: #f2f2f2;\n stroke: ").concat(t.nodeBorder,";\n }\n\n .relationshipLabelBox {\n fill: ").concat(t.tertiaryColor,";\n opacity: 0.7;\n background-color: ").concat(t.tertiaryColor,";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(t.lineColor,";\n }\n")},journey:function(t){return".label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ".concat(t.textColor,";\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ").concat(t.textColor,"\n }\n\n .legend {\n fill: ").concat(t.textColor,";\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ").concat(t.textColor,"\n }\n\n .face {\n ").concat(t.faceColor?"fill: ".concat(t.faceColor):"fill: #FFF8DC",";\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(t.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(t.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(t.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ").concat(t.titleColor,";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ").concat(t.tertiaryColor,";\n border: 1px solid ").concat(t.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType0):"",";\n }\n .task-type-1, .section-type-1 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType1):"",";\n }\n .task-type-2, .section-type-2 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType2):"",";\n }\n .task-type-3, .section-type-3 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType3):"",";\n }\n .task-type-4, .section-type-4 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType4):"",";\n }\n .task-type-5, .section-type-5 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType5):"",";\n }\n .task-type-6, .section-type-6 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType6):"",";\n }\n .task-type-7, .section-type-7 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType7):"",";\n }\n\n .actor-0 {\n ").concat(t.actor0?"fill: ".concat(t.actor0):"",";\n }\n .actor-1 {\n ").concat(t.actor1?"fill: ".concat(t.actor1):"",";\n }\n .actor-2 {\n ").concat(t.actor2?"fill: ".concat(t.actor2):"",";\n }\n .actor-3 {\n ").concat(t.actor3?"fill: ".concat(t.actor3):"",";\n }\n .actor-4 {\n ").concat(t.actor4?"fill: ".concat(t.actor4):"",";\n }\n .actor-5 {\n ").concat(t.actor5?"fill: ".concat(t.actor5):"",";\n }\n\n }\n")},requirement:function(t){return"\n\n marker {\n fill: ".concat(t.relationColor,";\n stroke: ").concat(t.relationColor,";\n }\n\n marker.cross {\n stroke: ").concat(t.lineColor,";\n }\n\n svg {\n font-family: ").concat(t.fontFamily,";\n font-size: ").concat(t.fontSize,";\n }\n\n .reqBox {\n fill: ").concat(t.requirementBackground,";\n fill-opacity: 100%;\n stroke: ").concat(t.requirementBorderColor,";\n stroke-width: ").concat(t.requirementBorderSize,";\n }\n \n .reqTitle, .reqLabel{\n fill: ").concat(t.requirementTextColor,";\n }\n .reqLabelBox {\n fill: ").concat(t.relationLabelBackground,";\n fill-opacity: 100%;\n }\n\n .req-title-line {\n stroke: ").concat(t.requirementBorderColor,";\n stroke-width: ").concat(t.requirementBorderSize,";\n }\n .relationshipLine {\n stroke: ").concat(t.relationColor,";\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ").concat(t.relationLabelColor,";\n }\n\n")}};function nC(t){return(nC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var rC=function(t){return t.replace(/fl°°/g,(function(){return"&#"})).replace(/fl°/g,(function(){return"&"})).replace(/¶ß/g,(function(){return";"}))},iC={};function aC(t){var e;yw(t.git),sb(t.flowchart),Ab(t.flowchart),void 0!==t.sequenceDiagram&&W_.setConf(gm(t.sequence,t.sequenceDiagram)),W_.setConf(t.sequence),t.gantt,yy(t.class),t.state,xE(t.state),xw(t.class),pv(t.er),qE(t.journey),Xw(t.requirement),e=t.class,Object.keys(e).forEach((function(t){XE[t]=e[t]}))}var oC=Object.freeze({render:function(t,e,n,r){Um();var i=e,a=Bm.detectInit(i);a&&(Cm(a),Rm(a));var s=Lm();if(e.length>s.maxTextSize&&(i="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),void 0!==r)r.innerHTML="",mc(r).append("div").attr("id","d"+t).attr("style","font-family: "+s.fontFamily).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g");else{var c=document.getElementById(t);c&&c.remove();var l=document.querySelector("#d"+t);l&&l.remove(),mc("body").append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}window.txt=i,i=i.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,(function(t){var e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"}));var A=mc("#d"+t).node(),u=Bm.detectType(i,s),h=A.firstChild,f=h.firstChild,d="";if(void 0!==s.themeCSS&&(d+="\n".concat(s.themeCSS)),void 0!==s.fontFamily&&(d+="\n:root { --mermaid-font-family: ".concat(s.fontFamily,"}")),void 0!==s.altFontFamily&&(d+="\n:root { --mermaid-alt-font-family: ".concat(s.altFontFamily,"}")),"flowchart"===u||"flowchart-v2"===u||"graph"===u){var p=function(t){o.info("Extracting classes"),Hv.clear();try{var e=jv().parser;return e.yy=Hv,e.parse(t),Hv.getClasses()}catch(t){return}}(i),g=s.htmlLabels||s.flowchart.htmlLabels;for(var m in p)g?(d+="\n.".concat(m," > * { ").concat(p[m].styles.join(" !important; ")," !important; }"),d+="\n.".concat(m," span { ").concat(p[m].styles.join(" !important; ")," !important; }")):(d+="\n.".concat(m," path { ").concat(p[m].styles.join(" !important; ")," !important; }"),d+="\n.".concat(m," rect { ").concat(p[m].styles.join(" !important; ")," !important; }"),d+="\n.".concat(m," polygon { ").concat(p[m].styles.join(" !important; ")," !important; }"),d+="\n.".concat(m," ellipse { ").concat(p[m].styles.join(" !important; ")," !important; }"),d+="\n.".concat(m," circle { ").concat(p[m].styles.join(" !important; ")," !important; }"),p[m].textStyles&&(d+="\n.".concat(m," tspan { ").concat(p[m].textStyles.join(" !important; ")," !important; }")))}var y=function(t,e){return Jp(mg("".concat(t,"{").concat(e,"}")),Zp)}("#".concat(t),function(t,e,n){return" {\n font-family: ".concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n fill: ").concat(n.textColor,"\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ").concat(n.errorBkgColor,";\n }\n .error-text {\n fill: ").concat(n.errorTextColor,";\n stroke: ").concat(n.errorTextColor,";\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ").concat(n.lineColor,";\n stroke: ").concat(n.lineColor,";\n }\n .marker.cross {\n stroke: ").concat(n.lineColor,";\n }\n\n svg {\n font-family: ").concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n }\n\n ").concat(eC[t](n),"\n\n ").concat(e,"\n")}(u,d,s.themeVariables)),v=document.createElement("style");v.innerHTML="#".concat(t," ")+y,h.insertBefore(v,f);try{switch(u){case"git":s.flowchart.arrowMarkerAbsolute=s.arrowMarkerAbsolute,yw(s.git),function(t,e,n){try{var r=cw().parser;r.yy=aw,r.yy.clear(),o.debug("in gitgraph renderer",t+"\n","id:",e,!1),r.parse(t+"\n"),Aw=Object.assign(Aw,uw,aw.getOptions()),o.debug("effective options",Aw);var i=aw.getDirection();lw=aw.getCommits();var a=aw.getBranchesAsObjArray();"BT"===i&&(Aw.nodeLabel.x=a.length*Aw.branchOffset,Aw.nodeLabel.width="100%",Aw.nodeLabel.y=-2*Aw.nodeRadius);var s=mc('[id="'.concat(e,'"]'));for(var c in function(t){t.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",Aw.nodeRadius).attr("cx",0).attr("cy",0),t.select("#def-commit").append("foreignObject").attr("width",Aw.nodeLabel.width).attr("height",Aw.nodeLabel.height).attr("x",Aw.nodeLabel.x).attr("y",Aw.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")}(s),ow=1,a){var l=a[c];gw(s,l.commit.id,a,i),mw(s,l.commit,i),ow++}s.attr("height",(function(){return"BT"===i?Object.keys(lw).length*Aw.nodeSpacing:(a.length+1)*Aw.branchOffset}))}catch(t){o.error("Error while rendering gitgraph"),o.error(t.message)}}(i,t);break;case"flowchart":s.flowchart.arrowMarkerAbsolute=s.arrowMarkerAbsolute,sb(s.flowchart),cb(i,t);break;case"flowchart-v2":s.flowchart.arrowMarkerAbsolute=s.arrowMarkerAbsolute,Ab(s.flowchart),function(t,e){o.info("Drawing flowchart"),Hv.clear(),Hv.setGen("gen-2");var n=jv().parser;n.yy=Hv,n.parse(t);var r=Hv.getDirection();void 0===r&&(r="TD");var i,a=Lm().flowchart,s=a.nodeSpacing||50,c=a.rankSpacing||50,l=new(ry().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:s,ranksep:c,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),A=Hv.getSubGraphs();o.info("Subgraphs - ",A);for(var u=A.length-1;u>=0;u--)i=A[u],o.info("Subgraph - ",i),Hv.addVertex(i.id,i.title,"group",void 0,i.classes,i.dir);var h=Hv.getVertices(),f=Hv.getEdges();o.info(f);var d=0;for(d=A.length-1;d>=0;d--){i=A[d],yc("cluster").append("text");for(var p=0;p<i.nodes.length;p++)o.info("Setting up subgraphs",i.nodes[p],i.id),l.setParent(i.nodes[p],i.id)}(function(t,e,n){var r=mc('[id="'.concat(n,'"]'));Object.keys(t).forEach((function(n){var i=t[n],a="default";i.classes.length>0&&(a=i.classes.join(" "));var s,c=hm(i.styles),l=void 0!==i.text?i.text:i.id;if(Ig(Lm().flowchart.htmlLabels)){var A={label:l.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")}))};(s=Vv()(r,A).node()).parentNode.removeChild(s)}else{var u=document.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("style",c.labelStyle.replace("color:","fill:"));for(var h=l.split(Ng.lineBreakRegex),f=0;f<h.length;f++){var d=document.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.setAttribute("dy","1em"),d.setAttribute("x","1"),d.textContent=h[f],u.appendChild(d)}s=u}var p=0,g="";switch(i.type){case"round":p=5,g="rect";break;case"square":case"group":default:g="rect";break;case"diamond":g="question";break;case"hexagon":g="hexagon";break;case"odd":case"odd_right":g="rect_left_inv_arrow";break;case"lean_right":g="lean_right";break;case"lean_left":g="lean_left";break;case"trapezoid":g="trapezoid";break;case"inv_trapezoid":g="inv_trapezoid";break;case"circle":g="circle";break;case"ellipse":g="ellipse";break;case"stadium":g="stadium";break;case"subroutine":g="subroutine";break;case"cylinder":g="cylinder"}e.setNode(i.id,{labelStyle:c.labelStyle,shape:g,labelText:l,rx:p,ry:p,class:a,style:c.style,id:i.id,link:i.link,linkTarget:i.linkTarget,tooltip:Hv.getTooltip(i.id)||"",domId:Hv.lookUpDomId(i.id),haveCallback:i.haveCallback,width:"group"===i.type?500:void 0,dir:i.dir,type:i.type,props:i.props,padding:Lm().flowchart.padding}),o.info("setNode",{labelStyle:c.labelStyle,shape:g,labelText:l,rx:p,ry:p,class:a,style:c.style,id:i.id,domId:Hv.lookUpDomId(i.id),width:"group"===i.type?500:void 0,type:i.type,dir:i.dir,props:i.props,padding:Lm().flowchart.padding})}))})(h,l,e),function(t,e){o.info("abc78 edges = ",t);var n,r,i=0,a={};if(void 0!==t.defaultStyle){var s=hm(t.defaultStyle);n=s.style,r=s.labelStyle}t.forEach((function(s){i++;var c="L-"+s.start+"-"+s.end;void 0===a[c]?(a[c]=0,o.info("abc78 new entry",c,a[c])):(a[c]++,o.info("abc78 new entry",c,a[c]));var l=c+"-"+a[c];o.info("abc78 new link id to be used is",c,l,a[c]);var A="LS-"+s.start,u="LE-"+s.end,h={style:"",labelStyle:""};switch(h.minlen=s.length||1,"arrow_open"===s.type?h.arrowhead="none":h.arrowhead="normal",h.arrowTypeStart="arrow_open",h.arrowTypeEnd="arrow_open",s.type){case"double_arrow_cross":h.arrowTypeStart="arrow_cross";case"arrow_cross":h.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":h.arrowTypeStart="arrow_point";case"arrow_point":h.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":h.arrowTypeStart="arrow_circle";case"arrow_circle":h.arrowTypeEnd="arrow_circle"}var f="",d="";switch(s.stroke){case"normal":f="fill:none;",void 0!==n&&(f=n),void 0!==r&&(d=r),h.thickness="normal",h.pattern="solid";break;case"dotted":h.thickness="normal",h.pattern="dotted",h.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":h.thickness="thick",h.pattern="solid",h.style="stroke-width: 3.5px;fill:none;"}if(void 0!==s.style){var p=hm(s.style);f=p.style,d=p.labelStyle}h.style=h.style+=f,h.labelStyle=h.labelStyle+=d,void 0!==s.interpolate?h.curve=Am(s.interpolate,qc):void 0!==t.defaultInterpolate?h.curve=Am(t.defaultInterpolate,qc):h.curve=Am(lb.curve,qc),void 0===s.text?void 0!==s.style&&(h.arrowheadStyle="fill: #333"):(h.arrowheadStyle="fill: #333",h.labelpos="c"),h.labelType="text",h.label=s.text.replace(Ng.lineBreakRegex,"\n"),void 0===s.style&&(h.style=h.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),h.labelStyle=h.labelStyle.replace("color:","fill:"),h.id=l,h.classes="flowchart-link "+A+" "+u,e.setEdge(s.start,s.end,h,i)}))}(f,l);var g=mc('[id="'.concat(e,'"]'));g.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var m=mc("#"+e+" g");tv(m,l,["point","circle","cross"],"flowchart",e);var y=a.diagramPadding,v=g.node().getBBox(),b=v.width+2*y,w=v.height+2*y;if(o.debug("new ViewBox 0 0 ".concat(b," ").concat(w),"translate(".concat(y-l._label.marginx,", ").concat(y-l._label.marginy,")")),Em(g,w,b,a.useMaxWidth),g.attr("viewBox","0 0 ".concat(b," ").concat(w)),g.select("g").attr("transform","translate(".concat(y-l._label.marginx,", ").concat(y-v.y,")")),Hv.indexNodes("subGraph"+d),!a.htmlLabels)for(var _=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),E=0;E<_.length;E++){var C=_[E],x=C.getBBox(),B=document.createElementNS("http://www.w3.org/2000/svg","rect");B.setAttribute("rx",0),B.setAttribute("ry",0),B.setAttribute("width",x.width),B.setAttribute("height",x.height),C.insertBefore(B,C.firstChild)}Object.keys(h).forEach((function(t){var n=h[t];if(n.link){var r=mc("#"+e+' [id="'+t+'"]');if(r){var i=document.createElementNS("http://www.w3.org/2000/svg","a");i.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),i.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),i.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),n.linkTarget&&i.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);var a=r.insert((function(){return i}),":first-child"),o=r.select(".label-container");o&&a.append((function(){return o.node()}));var s=r.select(".label");s&&a.append((function(){return s.node()}))}}}))}(i,t);break;case"sequence":s.sequence.arrowMarkerAbsolute=s.arrowMarkerAbsolute,s.sequenceDiagram?(W_.setConf(Object.assign(s.sequence,s.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):W_.setConf(s.sequence),W_.draw(i,t);break;case"gantt":s.gantt.arrowMarkerAbsolute=s.arrowMarkerAbsolute,s.gantt,Vb(i,t);break;case"class":s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,yy(s.class),function(t,e){py={},iy.parser.yy.clear(),iy.parser.parse(t),o.info("Rendering diagram "+t);var n,r=mc("[id='".concat(e,"']"));r.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(n=r).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),n.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),n.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");var i=new(ry().Graph)({multigraph:!0});i.setGraph({isMultiGraph:!0}),i.setDefaultEdgeLabel((function(){return{}}));for(var a=Zm.getClasses(),s=Object.keys(a),c=0;c<s.length;c++){var l=a[s[c]],A=dy(r,l,gy);py[A.id]=A,i.setNode(A.id,A),o.info("Org height: "+A.height)}Zm.getRelations().forEach((function(t){o.info("tjoho"+my(t.id1)+my(t.id2)+JSON.stringify(t)),i.setEdge(my(t.id1),my(t.id2),{relation:t},t.title||"DEFAULT")})),ey().layout(i),i.nodes().forEach((function(t){void 0!==t&&void 0!==i.node(t)&&(o.debug("Node "+t+": "+JSON.stringify(i.node(t))),mc("#"+Vm(t)).attr("transform","translate("+(i.node(t).x-i.node(t).width/2)+","+(i.node(t).y-i.node(t).height/2)+" )"))})),i.edges().forEach((function(t){void 0!==t&&void 0!==i.edge(t)&&(o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(i.edge(t))),function(t,e,n,r){var i=function(t){switch(t){case qm.AGGREGATION:return"aggregation";case qm.EXTENSION:return"extension";case qm.COMPOSITION:return"composition";case qm.DEPENDENCY:return"dependency"}};e.points=e.points.filter((function(t){return!Number.isNaN(t.y)}));var a,s,c=e.points,l=Zc().x((function(t){return t.x})).y((function(t){return t.y})).curve(al),A=t.append("path").attr("d",l(c)).attr("id","edge"+oy).attr("class","relation"),u="";r.arrowMarkerAbsolute&&(u=(u=(u=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),1==n.relation.lineType&&A.attr("class","relation dashed-line"),"none"!==n.relation.type1&&A.attr("marker-start","url("+u+"#"+i(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&A.attr("marker-end","url("+u+"#"+i(n.relation.type2)+"End)");var h,f,d,p,g=e.points.length,m=Bm.calcLabelPosition(e.points);if(a=m.x,s=m.y,g%2!=0&&g>1){var y=Bm.calcCardinalityPosition("none"!==n.relation.type1,e.points,e.points[0]),v=Bm.calcCardinalityPosition("none"!==n.relation.type2,e.points,e.points[g-1]);o.debug("cardinality_1_point "+JSON.stringify(y)),o.debug("cardinality_2_point "+JSON.stringify(v)),h=y.x,f=y.y,d=v.x,p=v.y}if(void 0!==n.title){var b=t.append("g").attr("class","classLabel"),w=b.append("text").attr("class","label").attr("x",a).attr("y",s).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=w;var _=w.node().getBBox();b.insert("rect",":first-child").attr("class","box").attr("x",_.x-r.padding/2).attr("y",_.y-r.padding/2).attr("width",_.width+r.padding).attr("height",_.height+r.padding)}o.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1&&t.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",h).attr("y",f).attr("fill","black").attr("font-size","6").text(n.relationTitle1),void 0!==n.relationTitle2&&"none"!==n.relationTitle2&&t.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",d).attr("y",p).attr("fill","black").attr("font-size","6").text(n.relationTitle2),oy++}(r,i.edge(t),i.edge(t).relation,gy))}));var u=r.node().getBBox(),h=u.width+40,f=u.height+40;Em(r,f,h,gy.useMaxWidth);var d="".concat(u.x-20," ").concat(u.y-20," ").concat(h," ").concat(f);o.debug("viewBox ".concat(d)),r.attr("viewBox",d)}(i,t);break;case"classDiagram":s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,function(t){Object.keys(t).forEach((function(e){ev[e]=t[e]}))}(s.class),function(t,e){o.info("Drawing class"),Zm.clear(),iy.parser.parse(t);var n=Lm().flowchart;o.info("config:",n);var r=n.nodeSpacing||50,i=n.rankSpacing||50,a=new(ry().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:Zm.getDirection(),nodesep:r,ranksep:i,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),s=Zm.getClasses(),c=Zm.getRelations();o.info(c),function(t,e){var n=Object.keys(t);o.info("keys:",n),o.info(t),n.forEach((function(n){var r=t[n],i="";r.cssClasses.length>0&&(i=i+" "+r.cssClasses.join(" "));var a,s={labelStyle:""},c=void 0!==r.text?r.text:r.id;r.type,a="class_box",e.setNode(r.id,{labelStyle:s.labelStyle,shape:a,labelText:c,classData:r,rx:0,ry:0,class:i,style:s.style,id:r.id,domId:r.domId,haveCallback:r.haveCallback,link:r.link,width:"group"===r.type?500:void 0,type:r.type,padding:Lm().flowchart.padding}),o.info("setNode",{labelStyle:s.labelStyle,shape:a,labelText:c,rx:0,ry:0,class:i,style:s.style,id:r.id,width:"group"===r.type?500:void 0,type:r.type,padding:Lm().flowchart.padding})}))}(s,a),function(t,e){var n=0;t.forEach((function(r){n++;var i={classes:"relation"};i.pattern=1==r.relation.lineType?"dashed":"solid",i.id="id"+n,"arrow_open"===r.type?i.arrowhead="none":i.arrowhead="normal",o.info(i,r),i.startLabelRight="none"===r.relationTitle1?"":r.relationTitle1,i.endLabelLeft="none"===r.relationTitle2?"":r.relationTitle2,i.arrowTypeStart=nv(r.relation.type1),i.arrowTypeEnd=nv(r.relation.type2);var a="",s="";if(void 0!==r.style){var c=hm(r.style);a=c.style,s=c.labelStyle}else a="fill:none";i.style=a,i.labelStyle=s,void 0!==r.interpolate?i.curve=Am(r.interpolate,qc):void 0!==t.defaultInterpolate?i.curve=Am(t.defaultInterpolate,qc):i.curve=Am(ev.curve,qc),r.text=r.title,void 0===r.text?void 0!==r.style&&(i.arrowheadStyle="fill: #333"):(i.arrowheadStyle="fill: #333",i.labelpos="c",Lm().flowchart.htmlLabels?(i.labelType="html",i.label='<span class="edgeLabel">'+r.text+"</span>"):(i.labelType="text",i.label=r.text.replace(Ng.lineBreakRegex,"\n"),void 0===r.style&&(i.style=i.style||"stroke: #333; stroke-width: 1.5px;fill:none"),i.labelStyle=i.labelStyle.replace("color:","fill:"))),e.setEdge(r.id1,r.id2,i,n)}))}(c,a);var l=mc('[id="'.concat(e,'"]'));l.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var A=mc("#"+e+" g");tv(A,a,["aggregation","extension","composition","dependency"],"classDiagram",e);var u=l.node().getBBox(),h=u.width+16,f=u.height+16;if(o.debug("new ViewBox 0 0 ".concat(h," ").concat(f),"translate(".concat(8-a._label.marginx,", ").concat(8-a._label.marginy,")")),Em(l,f,h,n.useMaxWidth),l.attr("viewBox","0 0 ".concat(h," ").concat(f)),l.select("g").attr("transform","translate(".concat(8-a._label.marginx,", ").concat(8-u.y,")")),!n.htmlLabels)for(var d=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),p=0;p<d.length;p++){var g=d[p],m=g.getBBox(),y=document.createElementNS("http://www.w3.org/2000/svg","rect");y.setAttribute("rx",0),y.setAttribute("ry",0),y.setAttribute("width",m.width),y.setAttribute("height",m.height),g.insertBefore(y,g.firstChild)}}(i,t);break;case"state":s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,s.state,yE(i,t);break;case"stateDiagram":s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,xE(s.state),function(t,e){o.info("Drawing state diagram (v2)",e),uE.clear(),bE={};var n=X_().parser;n.yy=uE,n.parse(t);var r=uE.getDirection();void 0===r&&(r="LR");var i=Lm().state,a=i.nodeSpacing||50,s=i.rankSpacing||50;o.info(uE.getRootDocV2()),uE.extract(uE.getRootDocV2()),o.info(uE.getRootDocV2());var c=new(ry().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:CE(uE.getRootDocV2()),nodesep:a,ranksep:s,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));wE(c,void 0,uE.getRootDocV2(),!0);var l=mc('[id="'.concat(e,'"]')),A=mc("#"+e+" g");tv(A,c,["barb"],"statediagram",e);var u=l.node().getBBox(),h=u.width+16,f=u.height+16;l.attr("class","statediagram");var d=l.node().getBBox();Em(l,f,1.75*h,i.useMaxWidth);var p="".concat(d.x-8," ").concat(d.y-8," ").concat(h," ").concat(f);o.debug("viewBox ".concat(p)),l.attr("viewBox",p);for(var g=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),m=0;m<g.length;m++){var y=g[m],v=y.getBBox(),b=document.createElementNS("http://www.w3.org/2000/svg","rect");b.setAttribute("rx",0),b.setAttribute("ry",0),b.setAttribute("width",v.width),b.setAttribute("height",v.height),y.insertBefore(b,y.firstChild)}}(i,t);break;case"info":s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,xw(s.class),function(t,e,n){try{var r=Ew().parser;r.yy=ww,o.debug("Renering info diagram\n"+t),r.parse(t),o.debug("Parsed info diagram");var i=mc("#"+e);i.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v 8.13.8"),i.attr("height",100),i.attr("width",400)}catch(t){o.error("Error while rendering info diagram"),o.error(t.message)}}(i,t);break;case"pie":Dw(i,t);break;case"er":pv(s.er),function(t,e){o.info("Drawing ER diagram"),sv.clear();var n=lv().parser;n.yy=sv;try{n.parse(t)}catch(t){o.debug("Parsing failed")}var r,i=mc("[id='".concat(e,"']"));(function(t,e){var n;t.append("defs").append("marker").attr("id",Av.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",Av.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(n=t.append("defs").append("marker").attr("id",Av.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(n=t.append("defs").append("marker").attr("id",Av.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",Av.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",Av.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(n=t.append("defs").append("marker").attr("id",Av.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(n=t.append("defs").append("marker").attr("id",Av.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(i,hv),r=new(ry().Graph)({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:hv.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));var a=function(t,e,n){var r;return Object.keys(e).forEach((function(i){var a=t.append("g").attr("id",i);r=void 0===r?i:r;var o="entity-"+i,s=a.append("text").attr("class","er entityLabel").attr("id",o).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Lm().fontFamily+"; font-size: "+hv.fontSize+"px").text(i),c=function(t,e,n){var r=hv.entityPadding/3,i=hv.entityPadding/3,a=.85*hv.fontSize,o=e.node().getBBox(),s=[],c=!1,l=!1,A=0,u=0,h=0,f=0,d=0,p=o.height+2*r,g=1;n.forEach((function(n){var i="".concat(e.node().id,"-attr-").concat(g),o=0,m=0,y=t.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Lm().fontFamily+"; font-size: "+a+"px").text(n.attributeType),v=t.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Lm().fontFamily+"; font-size: "+a+"px").text(n.attributeName),b={};b.tn=y,b.nn=v;var w=y.node().getBBox(),_=v.node().getBBox();if(u=Math.max(u,w.width),h=Math.max(h,_.width),o+=w.width,o+=_.width,m=Math.max(w.height,_.height),c||void 0!==n.attributeKeyType){var E=t.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Lm().fontFamily+"; font-size: "+a+"px").text(n.attributeKeyType||"");b.kn=E;var C=E.node().getBBox();o+=C.width,f=Math.max(f,o),m=Math.max(m,C.height),c=!0}if(l||void 0!==n.attributeComment){var x=t.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Lm().fontFamily+"; font-size: "+a+"px").text(n.attributeComment||"");b.cn=x;var B=x.node().getBBox();o+=B.width,d=Math.max(o,_.width),m=Math.max(m,B.height),l=!0}b.height=m,s.push(b),A=Math.max(A,o),p+=m+2*r,g+=1}));var m={width:Math.max(hv.minEntityWidth,Math.max(o.width+2*hv.entityPadding,A+4*i)),height:n.length>0?p:Math.max(hv.minEntityHeight,o.height+2*hv.entityPadding)},y=Math.max(0,m.width-A-4*i);if(n.length>0){e.attr("transform","translate("+m.width/2+","+(r+o.height/2)+")");var v=o.height+2*r,b="attributeBoxOdd";s.forEach((function(e){var n=v+r+e.height/2;e.tn.attr("transform","translate("+i+","+n+")");var a=t.insert("rect","#"+e.tn.node().id).attr("class","er ".concat(b)).attr("fill",hv.fill).attr("fill-opacity","100%").attr("stroke",hv.stroke).attr("x",0).attr("y",v).attr("width",2*u+y/2).attr("height",e.tn.node().getBBox().height+2*r);e.nn.attr("transform","translate("+(parseFloat(a.attr("width"))+i)+","+n+")"),t.insert("rect","#"+e.nn.node().id).attr("class","er ".concat(b)).attr("fill",hv.fill).attr("fill-opacity","100%").attr("stroke",hv.stroke).attr("x","".concat(a.attr("x")+a.attr("width"))).attr("y",v).attr("width",h+2*i+y/2).attr("height",e.nn.node().getBBox().height+2*r),c&&(e.kn.attr("transform","translate("+(parseFloat(a.attr("width"))+i)+","+n+")"),t.insert("rect","#"+e.kn.node().id).attr("class","er ".concat(b)).attr("fill",hv.fill).attr("fill-opacity","100%").attr("stroke",hv.stroke).attr("x","".concat(a.attr("x")+a.attr("width"))).attr("y",v).attr("width",f+2*i+y/2).attr("height",e.kn.node().getBBox().height+2*r)),l&&(e.cn.attr("transform","translate("+(parseFloat(a.attr("width"))+i)+","+n+")"),t.insert("rect","#"+e.cn.node().id).attr("class","er ".concat(b)).attr("fill",hv.fill).attr("fill-opacity","100%").attr("stroke",hv.stroke).attr("x","".concat(a.attr("x")+a.attr("width"))).attr("y",v).attr("width",d+2*i+y/2).attr("height",e.cn.node().getBBox().height+2*r)),v+=e.height+2*r,b="attributeBoxOdd"==b?"attributeBoxEven":"attributeBoxOdd"}))}else m.height=Math.max(hv.minEntityHeight,p),e.attr("transform","translate("+m.width/2+","+m.height/2+")");return m}(a,s,e[i].attributes),l=c.width,A=c.height,u=a.insert("rect","#"+o).attr("class","er entityBox").attr("fill",hv.fill).attr("fill-opacity","100%").attr("stroke",hv.stroke).attr("x",0).attr("y",0).attr("width",l).attr("height",A).node().getBBox();n.setNode(i,{width:u.width,height:u.height,shape:"rect",id:i})})),r}(i,sv.getEntities(),r),s=function(t,e){return t.forEach((function(t){e.setEdge(t.entityA,t.entityB,{relationship:t},fv(t))})),t}(sv.getRelationships(),r);ey().layout(r),function(t,e){e.nodes().forEach((function(n){void 0!==n&&void 0!==e.node(n)&&t.select("#"+n).attr("transform","translate("+(e.node(n).x-e.node(n).width/2)+","+(e.node(n).y-e.node(n).height/2)+" )")}))}(i,r),s.forEach((function(t){!function(t,e,n,r){dv++;var i=n.edge(e.entityA,e.entityB,fv(e)),a=Zc().x((function(t){return t.x})).y((function(t){return t.y})).curve(al),o=t.insert("path","#"+r).attr("class","er relationshipLine").attr("d",a(i.points)).attr("stroke",hv.stroke).attr("fill","none");e.relSpec.relType===sv.Identification.NON_IDENTIFYING&&o.attr("stroke-dasharray","8,8");var s="";switch(hv.arrowMarkerAbsolute&&(s=(s=(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),e.relSpec.cardA){case sv.Cardinality.ZERO_OR_ONE:o.attr("marker-end","url("+s+"#"+uv.ZERO_OR_ONE_END+")");break;case sv.Cardinality.ZERO_OR_MORE:o.attr("marker-end","url("+s+"#"+uv.ZERO_OR_MORE_END+")");break;case sv.Cardinality.ONE_OR_MORE:o.attr("marker-end","url("+s+"#"+uv.ONE_OR_MORE_END+")");break;case sv.Cardinality.ONLY_ONE:o.attr("marker-end","url("+s+"#"+uv.ONLY_ONE_END+")")}switch(e.relSpec.cardB){case sv.Cardinality.ZERO_OR_ONE:o.attr("marker-start","url("+s+"#"+uv.ZERO_OR_ONE_START+")");break;case sv.Cardinality.ZERO_OR_MORE:o.attr("marker-start","url("+s+"#"+uv.ZERO_OR_MORE_START+")");break;case sv.Cardinality.ONE_OR_MORE:o.attr("marker-start","url("+s+"#"+uv.ONE_OR_MORE_START+")");break;case sv.Cardinality.ONLY_ONE:o.attr("marker-start","url("+s+"#"+uv.ONLY_ONE_START+")")}var c=o.node().getTotalLength(),l=o.node().getPointAtLength(.5*c),A="rel"+dv,u=t.append("text").attr("class","er relationshipLabel").attr("id",A).attr("x",l.x).attr("y",l.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Lm().fontFamily+"; font-size: "+hv.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+A).attr("class","er relationshipLabelBox").attr("x",l.x-u.width/2).attr("y",l.y-u.height/2).attr("width",u.width).attr("height",u.height).attr("fill","white").attr("fill-opacity","85%")}(i,t,r,a)}));var c=hv.diagramPadding,l=i.node().getBBox(),A=l.width+2*c,u=l.height+2*c;Em(i,u,A,hv.useMaxWidth),i.attr("viewBox","".concat(l.x-c," ").concat(l.y-c," ").concat(A," ").concat(u))}(i,t);break;case"journey":qE(s.journey),function(t,e){var n=Lm().journey;LE.parser.yy.clear(),LE.parser.parse(t+"\n"),VE.init();var r=mc("#"+e);r.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),r.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z");var i=LE.parser.yy.getTasks(),a=LE.parser.yy.getTitle(),o=LE.parser.yy.getActors();for(var s in KE)delete KE[s];var c=0;o.forEach((function(t){KE[t]={color:n.actorColours[c%n.actorColours.length],position:c},c++})),function(t){var e=Lm().journey,n=60;Object.keys(KE).forEach((function(r){var i=KE[r].color,a={cx:20,cy:n,r:7,fill:i,stroke:"#000",pos:KE[r].position};HE(t,a);var o={x:40,y:n+7,fill:"#666",text:r,textMargin:5|e.boxTextMargin};(function(t,e){var n=e.text.replace(/<br\s*\/?>/gi," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),void 0!==e.class&&r.attr("class",e.class);var i=r.append("tspan");i.attr("x",e.x+2*e.textMargin),i.text(n)})(t,o),n+=20}))}(r),VE.insert(0,0,YE,50*Object.keys(KE).length),function(t,e,n){for(var r=Lm().journey,i="",a=0+(2*r.height+r.diagramMarginY),o=0,s="#CCC",c="black",l=0,A=0;A<e.length;A++){var u=e[A];if(i!==u.section){s=zE[o%zE.length],l=o%zE.length,c=WE[o%WE.length];var h={x:A*r.taskMargin+A*r.width+YE,y:50,text:u.section,fill:s,num:l,colour:c};GE(t,h,r),i=u.section,o++}var f=u.people.reduce((function(t,e){return KE[e]&&(t[e]=KE[e]),t}),{});u.x=A*r.taskMargin+A*r.width+YE,u.y=a,u.width=r.diagramMarginX,u.height=r.diagramMarginY,u.colour=c,u.fill=s,u.num=l,u.actors=f,jE(t,u,r),VE.insert(u.x,u.y,u.x+u.width+r.taskMargin,450)}}(r,i);var l=VE.getBounds();a&&r.append("text").text(a).attr("x",YE).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var A=l.stopy-l.starty+2*n.diagramMarginY,u=YE+l.stopx+2*n.diagramMarginX;Em(r,A,u,n.useMaxWidth),r.append("line").attr("x1",YE).attr("y1",4*n.height).attr("x2",u-YE-4).attr("y2",4*n.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var h=a?70:0;r.attr("viewBox","".concat(l.startx," -25 ").concat(u," ").concat(A+h)),r.attr("preserveAspectRatio","xMinYMin meet"),r.attr("height",A+h+25)}(i,t);break;case"requirement":Xw(s.requirement),function(t,e){Lw.parser.yy=Gw,Lw.parser.yy.clear(),Lw.parser.parse(t);var n=mc("[id='".concat(e,"']"));!function(t,e){var n=t.append("defs").append("marker").attr("id",jw.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");n.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none"),n.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1),n.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1),t.append("defs").append("marker").attr("id",jw.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d","M0,0\n L".concat(e.line_height,",").concat(e.line_height/2,"\n M").concat(e.line_height,",").concat(e.line_height/2,"\n L0,").concat(e.line_height)).attr("stroke-width",1)}(n,$w);var r=new(ry().Graph)({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:$w.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}})),i=Gw.getRequirements(),a=Gw.getElements(),s=Gw.getRelationships();!function(t,e,n){Object.keys(t).forEach((function(r){var i=t[r];r=qw(r),o.info("Added new requirement: ",r);var a=n.append("g").attr("id",r),s=Vw(a,"req-"+r),c=zw(a,r+"_title",["<<".concat(i.type,">>"),"".concat(i.name)]),l=(Ww(a,r+"_body",["Id: ".concat(i.id),"Text: ".concat(i.text),"Risk: ".concat(i.risk),"Verification: ".concat(i.verifyMethod)],c.y),s.node().getBBox());e.setNode(r,{width:l.width,height:l.height,shape:"rect",id:r})}))}(i,r,n),function(t,e,n){Object.keys(t).forEach((function(r){var i=t[r],a=qw(r),o=n.append("g").attr("id",a),s="element-"+a,c=Vw(o,s),l=zw(o,s+"_title",["<<Element>>","".concat(r)]),A=(Ww(o,s+"_body",["Type: ".concat(i.type||"Not Specified"),"Doc Ref: ".concat(i.docRef||"None")],l.y),c.node().getBBox());e.setNode(a,{width:A.width,height:A.height,shape:"rect",id:a})}))}(a,r,n),function(t,e){t.forEach((function(t){var n=qw(t.src),r=qw(t.dst);e.setEdge(n,r,{relationship:t})}))}(s,r),ey().layout(r),function(t,e){e.nodes().forEach((function(n){void 0!==n&&void 0!==e.node(n)&&(t.select("#"+n),t.select("#"+n).attr("transform","translate("+(e.node(n).x-e.node(n).width/2)+","+(e.node(n).y-e.node(n).height/2)+" )"))}))}(n,r),s.forEach((function(t){!function(t,e,n,r){var i=n.edge(qw(e.src),qw(e.dst)),a=Zc().x((function(t){return t.x})).y((function(t){return t.y})),o=t.insert("path","#"+r).attr("class","er relationshipLine").attr("d",a(i.points)).attr("fill","none");e.type==Gw.Relationships.CONTAINS?o.attr("marker-start","url("+Ng.getUrl($w.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)"):(o.attr("stroke-dasharray","10,7"),o.attr("marker-end","url("+Ng.getUrl($w.arrowMarkerAbsolute)+"#"+Kw.ARROW+"_line_ending)")),function(t,e,n,r){var i=e.node().getTotalLength(),a=e.node().getPointAtLength(.5*i),o="rel"+Yw;Yw++;var s=t.append("text").attr("class","req relationshipLabel").attr("id",o).attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(r).node().getBBox();t.insert("rect","#"+o).attr("class","req reqLabelBox").attr("x",a.x-s.width/2).attr("y",a.y-s.height/2).attr("width",s.width).attr("height",s.height).attr("fill","white").attr("fill-opacity","85%")}(t,o,0,"<<".concat(e.type,">>"))}(n,t,r,e)}));var c=$w.rect_padding,l=n.node().getBBox(),A=l.width+2*c,u=l.height+2*c;Em(n,u,A,$w.useMaxWidth),n.attr("viewBox","".concat(l.x-c," ").concat(l.y-c," ").concat(A," ").concat(u))}(i,t)}}catch(e){throw function(t,e){try{o.debug("Renering svg for syntax error\n");var n=mc("#"+t),r=n.append("g");r.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),r.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),r.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),r.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),r.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),r.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),r.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),r.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version 8.13.8"),n.attr("height",100),n.attr("width",400),n.attr("viewBox","768 0 512 512")}catch(t){o.error("Error while rendering info diagram"),o.error(t.message)}}(t),e}mc('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var b=mc("#d"+t).node().innerHTML;if(o.debug("cnf.arrowMarkerAbsolute",s.arrowMarkerAbsolute),s.arrowMarkerAbsolute&&"false"!==s.arrowMarkerAbsolute||(b=b.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),b=(b=rC(b)).replace(/<br>/g,"<br/>"),void 0!==n)switch(u){case"flowchart":case"flowchart-v2":n(b,Hv.bindFunctions);break;case"gantt":n(b,Gb.bindFunctions);break;case"class":case"classDiagram":n(b,Zm.bindFunctions);break;default:n(b)}else o.debug("CB = undefined!");w_.forEach((function(t){t()})),w_=[];var w=mc("#d"+t).node();return null!==w&&"function"==typeof w.remove&&mc("#d"+t).node().remove(),b},parse:function(t){var e=Lm(),n=Bm.detectInit(t,e);n&&o.debug("reinit ",n);var r,i=Bm.detectType(t,e);switch(o.debug("Type "+i),i){case"git":(r=cw()).parser.yy=aw;break;case"flowchart":case"flowchart-v2":Hv.clear(),(r=jv()).parser.yy=Hv;break;case"sequence":(r=Zw()).parser.yy=b_;break;case"gantt":(r=Yb()).parser.yy=Gb;break;case"class":case"classDiagram":(r=ay()).parser.yy=Zm;break;case"state":case"stateDiagram":(r=X_()).parser.yy=uE;break;case"info":o.debug("info info info"),(r=Ew()).parser.yy=ww;break;case"pie":o.debug("pie"),(r=Tw()).parser.yy=Nw;break;case"er":o.debug("er"),(r=lv()).parser.yy=sv;break;case"journey":o.debug("Journey"),(r=OE()).parser.yy=DE;break;case"requirement":case"requirementDiagram":o.debug("RequirementDiagram"),(r=Ow()).parser.yy=Gw}return r.parser.yy.graphType=i,r.parser.yy.parseError=function(t,e){throw{str:t,hash:e}},r.parse(t),r},parseDirective:function(t,e,n,r){try{if(void 0!==e)switch(e=e.trim(),n){case"open_directive":iC={};break;case"type_directive":iC.type=e.toLowerCase();break;case"arg_directive":iC.args=JSON.parse(e);break;case"close_directive":(function(t,e,n){switch(o.debug("Directive type=".concat(e.type," with args:"),e.args),e.type){case"init":case"initialize":["config"].forEach((function(t){void 0!==e.args[t]&&("flowchart-v2"===n&&(n="flowchart"),e.args[n]=e.args[t],delete e.args[t])})),o.debug("sanitize in handleDirective",e.args),Cm(e.args),o.debug("sanitize in handleDirective (done)",e.args),e.args,Rm(e.args);break;case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap("wrap"===e.type);break;case"themeCss":o.warn("themeCss encountered");break;default:o.warn("Unhandled directive: source: '%%{".concat(e.type,": ").concat(JSON.stringify(e.args?e.args:{}),"}%%"),e)}})(t,iC,r),iC=null}}catch(t){o.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(n)),o.error(t.message)}},initialize:function(t){t&&t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),function(t){km=gm({},t)}(t),t&&t.theme&&Kg[t.theme]?t.themeVariables=Kg[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Kg.default.getThemeVariables(t.themeVariables));var e="object"===nC(t)?function(t){return Im=gm({},Sm),Im=gm(Im,t),t.theme&&(Im.themeVariables=Kg[t.theme].getThemeVariables(t.themeVariables)),Mm=Fm(Im,Nm),Im}(t):Dm();aC(e),s(e.logLevel)},reinitialize:function(){},getConfig:Lm,setConfig:function(t){return gm(Mm,t),Lm()},getSiteConfig:Dm,updateSiteConfig:function(t){return Im=gm(Im,t),Fm(Im,Nm),Im},reset:function(){Um()},globalReset:function(){Um(),aC(Lm())},defaultConfig:Sm});s(Lm().logLevel),Um(Lm());const sC=oC;var cC=function(){lC.startOnLoad?sC.getConfig().startOnLoad&&lC.init():void 0===lC.startOnLoad&&(o.debug("In start, no config"),sC.getConfig().startOnLoad&&lC.init())};"undefined"!=typeof document&&window.addEventListener("load",(function(){cC()}),!1);var lC={startOnLoad:!0,htmlLabels:!0,mermaidAPI:sC,parse:sC.parse,render:sC.render,init:function(){var t,e,n=this,r=sC.getConfig();arguments.length>=2?(void 0!==arguments[0]&&(lC.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],"function"==typeof arguments[arguments.length-1]?(e=arguments[arguments.length-1],o.debug("Callback function found")):void 0!==r.mermaid&&("function"==typeof r.mermaid.callback?(e=r.mermaid.callback,o.debug("Callback function found")):o.debug("No Callback function found")),t=void 0===t?document.querySelectorAll(".mermaid"):"string"==typeof t?document.querySelectorAll(t):t instanceof window.Node?[t]:t,o.debug("Start On Load before: "+lC.startOnLoad),void 0!==lC.startOnLoad&&(o.debug("Start On Load inner: "+lC.startOnLoad),sC.updateSiteConfig({startOnLoad:lC.startOnLoad})),void 0!==lC.ganttConfig&&sC.updateSiteConfig({gantt:lC.ganttConfig});for(var i,a=new Bm.initIdGeneratior(r.deterministicIds,r.deterministicIDSeed),s=function(r){var s=t[r];if(s.getAttribute("data-processed"))return"continue";s.setAttribute("data-processed",!0);var c="mermaid-".concat(a.next());i=s.innerHTML,i=Bm.entityDecode(i).trim().replace(/<br\s*\/?>/gi,"<br/>");var l=Bm.detectInit(i);l&&o.debug("Detected early reinit: ",l);try{sC.render(c,i,(function(t,n){s.innerHTML=t,void 0!==e&&e(c),n&&n(s)}),s)}catch(t){o.warn("Syntax Error rendering"),o.warn(t),n.parseError&&n.parseError(t)}},c=0;c<t.length;c++)s(c)},initialize:function(t){void 0!==t.mermaid&&(void 0!==t.mermaid.startOnLoad&&(lC.startOnLoad=t.mermaid.startOnLoad),void 0!==t.mermaid.htmlLabels&&(lC.htmlLabels="false"!==t.mermaid.htmlLabels&&!1!==t.mermaid.htmlLabels)),sC.initialize(t)},contentLoaded:cC};const AC=lC},4949:(t,e,n)=>{t.exports={graphlib:n(6614),dagre:n(1463),intersect:n(8114),render:n(5787),util:n(8355),version:n(5689)}},9144:(t,e,n)=>{var r=n(8355);function i(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])}t.exports={default:i,normal:i,vee:function(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])},undirected:function(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])}}},5632:(t,e,n)=>{var r=n(8355),i=n(4322),a=n(1322);t.exports=function(t,e){var n,o=e.nodes().filter((function(t){return r.isSubgraph(e,t)})),s=t.selectAll("g.cluster").data(o,(function(t){return t}));return s.selectAll("*").remove(),s.enter().append("g").attr("class","cluster").attr("id",(function(t){return e.node(t).id})).style("opacity",0),s=t.selectAll("g.cluster"),r.applyTransition(s,e).style("opacity",1),s.each((function(t){var n=e.node(t),r=i.select(this);i.select(this).append("rect");var o=r.append("g").attr("class","label");a(o,n,n.clusterLabelPos)})),s.selectAll("rect").each((function(t){var n=e.node(t),a=i.select(this);r.applyStyle(a,n.style)})),n=s.exit?s.exit():s.selectAll(null),r.applyTransition(n,e).style("opacity",0).remove(),s}},6315:(t,e,n)=>{var r=n(1034),i=n(1322),a=n(8355),o=n(4322);t.exports=function(t,e){var n,s=t.selectAll("g.edgeLabel").data(e.edges(),(function(t){return a.edgeToId(t)})).classed("update",!0);return s.exit().remove(),s.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(s=t.selectAll("g.edgeLabel")).each((function(t){var n=o.select(this);n.select(".label").remove();var a=e.edge(t),s=i(n,e.edge(t),0,0).classed("label",!0),c=s.node().getBBox();a.labelId&&s.attr("id",a.labelId),r.has(a,"width")||(a.width=c.width),r.has(a,"height")||(a.height=c.height)})),n=s.exit?s.exit():s.selectAll(null),a.applyTransition(n,e).style("opacity",0).remove(),s}},940:(t,e,n)=>{var r=n(1034),i=n(7584),a=n(8355),o=n(4322);function s(t,e){var n=(o.line||o.svg.line)().x((function(t){return t.x})).y((function(t){return t.y}));return(n.curve||n.interpolate)(t.curve),n(e)}t.exports=function(t,e,n){var c=t.selectAll("g.edgePath").data(e.edges(),(function(t){return a.edgeToId(t)})).classed("update",!0),l=function(t,e){var n=t.enter().append("g").attr("class","edgePath").style("opacity",0);return n.append("path").attr("class","path").attr("d",(function(t){var n=e.edge(t),i=e.node(t.v).elem;return s(n,r.range(n.points.length).map((function(){return e=(t=i).getBBox(),{x:(n=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(e.width/2,e.height/2)).e,y:n.f};var t,e,n})))})),n.append("defs"),n}(c,e);!function(t,e){var n=t.exit();a.applyTransition(n,e).style("opacity",0).remove()}(c,e);var A=void 0!==c.merge?c.merge(l):c;return a.applyTransition(A,e).style("opacity",1),A.each((function(t){var n=o.select(this),r=e.edge(t);r.elem=this,r.id&&n.attr("id",r.id),a.applyClass(n,r.class,(n.classed("update")?"update ":"")+"edgePath")})),A.selectAll("path.path").each((function(t){var n=e.edge(t);n.arrowheadId=r.uniqueId("arrowhead");var c=o.select(this).attr("marker-end",(function(){return"url("+(t=location.href,e=n.arrowheadId,t.split("#")[0]+"#"+e+")");var t,e})).style("fill","none");a.applyTransition(c,e).attr("d",(function(t){return function(t,e){var n=t.edge(e),r=t.node(e.v),a=t.node(e.w),o=n.points.slice(1,n.points.length-1);return o.unshift(i(r,o[0])),o.push(i(a,o[o.length-1])),s(n,o)}(e,t)})),a.applyStyle(c,n.style)})),A.selectAll("defs *").remove(),A.selectAll("defs").each((function(t){var r=e.edge(t);(0,n[r.arrowhead])(o.select(this),r.arrowheadId,r,"arrowhead")})),A}},607:(t,e,n)=>{var r=n(1034),i=n(1322),a=n(8355),o=n(4322);t.exports=function(t,e,n){var s,c=e.nodes().filter((function(t){return!a.isSubgraph(e,t)})),l=t.selectAll("g.node").data(c,(function(t){return t})).classed("update",!0);return l.exit().remove(),l.enter().append("g").attr("class","node").style("opacity",0),(l=t.selectAll("g.node")).each((function(t){var s=e.node(t),c=o.select(this);a.applyClass(c,s.class,(c.classed("update")?"update ":"")+"node"),c.select("g.label").remove();var l=c.append("g").attr("class","label"),A=i(l,s),u=n[s.shape],h=r.pick(A.node().getBBox(),"width","height");s.elem=this,s.id&&c.attr("id",s.id),s.labelId&&l.attr("id",s.labelId),r.has(s,"width")&&(h.width=s.width),r.has(s,"height")&&(h.height=s.height),h.width+=s.paddingLeft+s.paddingRight,h.height+=s.paddingTop+s.paddingBottom,l.attr("transform","translate("+(s.paddingLeft-s.paddingRight)/2+","+(s.paddingTop-s.paddingBottom)/2+")");var f=o.select(this);f.select(".label-container").remove();var d=u(f,h,s).classed("label-container",!0);a.applyStyle(d,s.style);var p=d.node().getBBox();s.width=p.width,s.height=p.height})),s=l.exit?l.exit():l.selectAll(null),a.applyTransition(s,e).style("opacity",0).remove(),l}},4322:(t,e,n)=>{var r;if(!r)try{r=n(7188)}catch(t){}r||(r=window.d3),t.exports=r},1463:(t,e,n)=>{var r;try{r=n(681)}catch(t){}r||(r=window.dagre),t.exports=r},6614:(t,e,n)=>{var r;try{r=n(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},8114:(t,e,n)=>{t.exports={node:n(7584),circle:n(6587),ellipse:n(3260),polygon:n(5337),rect:n(8049)}},6587:(t,e,n)=>{var r=n(3260);t.exports=function(t,e,n){return r(t,e,e,n)}},3260:t=>{t.exports=function(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,s=a-r.y,c=Math.sqrt(e*e*s*s+n*n*o*o),l=Math.abs(e*n*o/c);r.x<i&&(l=-l);var A=Math.abs(e*n*s/c);return r.y<a&&(A=-A),{x:i+l,y:a+A}}},6808:t=>{function e(t,e){return t*e>0}t.exports=function(t,n,r,i){var a,o,s,c,l,A,u,h,f,d,p,g,m;if(a=n.y-t.y,s=t.x-n.x,l=n.x*t.y-t.x*n.y,f=a*r.x+s*r.y+l,d=a*i.x+s*i.y+l,!(0!==f&&0!==d&&e(f,d)||(o=i.y-r.y,c=r.x-i.x,A=i.x*r.y-r.x*i.y,u=o*t.x+c*t.y+A,h=o*n.x+c*n.y+A,0!==u&&0!==h&&e(u,h)||0==(p=a*c-o*s))))return g=Math.abs(p/2),{x:(m=s*A-c*l)<0?(m-g)/p:(m+g)/p,y:(m=o*l-a*A)<0?(m-g)/p:(m+g)/p}}},7584:t=>{t.exports=function(t,e){return t.intersect(e)}},5337:(t,e,n)=>{var r=n(6808);t.exports=function(t,e,n){var i=t.x,a=t.y,o=[],s=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;e.forEach((function(t){s=Math.min(s,t.x),c=Math.min(c,t.y)}));for(var l=i-t.width/2-s,A=a-t.height/2-c,u=0;u<e.length;u++){var h=e[u],f=e[u<e.length-1?u+1:0],d=r(t,n,{x:l+h.x,y:A+h.y},{x:l+f.x,y:A+f.y});d&&o.push(d)}return o.length?(o.length>1&&o.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,s=e.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1})),o[0]):t}},8049:t=>{t.exports=function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,l=t.height/2;return Math.abs(s)*c>Math.abs(o)*l?(s<0&&(l=-l),n=0===s?0:l*o/s,r=l):(o<0&&(c=-c),n=c,r=0===o?0:c*s/o),{x:i+n,y:a+r}}},8284:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var a=e.label;switch(typeof a){case"function":i.insert(a);break;case"object":i.insert((function(){return a}));break;default:i.html(a)}r.applyStyle(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var o=i.node().getBoundingClientRect();return n.attr("width",o.width).attr("height",o.height),n}},1322:(t,e,n)=>{var r=n(7318),i=n(8284),a=n(8287);t.exports=function(t,e,n){var o=e.label,s=t.append("g");"svg"===e.labelType?a(s,e):"string"!=typeof o||"html"===e.labelType?i(s,e):r(s,e);var c,l=s.node().getBBox();switch(n){case"top":c=-e.height/2;break;case"bottom":c=e.height/2-l.height;break;default:c=-l.height/2}return s.attr("transform","translate("+-l.width/2+","+c+")"),s}},8287:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){var n=t;return n.node().appendChild(e.label),r.applyStyle(n,e.labelStyle),n}},7318:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){for(var n=t.append("text"),i=function(t){for(var e,n="",r=!1,i=0;i<t.length;++i)e=t[i],r?(n+="n"===e?"\n":e,r=!1):"\\"===e?r=!0:n+=e;return n}(e.label).split("\n"),a=0;a<i.length;a++)n.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(i[a]);return r.applyStyle(n,e.labelStyle),n}},1034:(t,e,n)=>{var r;try{r={defaults:n(1747),each:n(6073),isFunction:n(3560),isPlainObject:n(8630),pick:n(9722),has:n(8721),range:n(6026),uniqueId:n(3955)}}catch(t){}r||(r=window._),t.exports=r},6381:(t,e,n)=>{var r=n(8355),i=n(4322);t.exports=function(t,e){var n=t.filter((function(){return!i.select(this).classed("update")}));function a(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}n.attr("transform",a),r.applyTransition(t,e).style("opacity",1).attr("transform",a),r.applyTransition(n.selectAll("rect"),e).attr("width",(function(t){return e.node(t).width})).attr("height",(function(t){return e.node(t).height})).attr("x",(function(t){return-e.node(t).width/2})).attr("y",(function(t){return-e.node(t).height/2}))}},4577:(t,e,n)=>{var r=n(8355),i=n(4322),a=n(1034);t.exports=function(t,e){function n(t){var n=e.edge(t);return a.has(n,"x")?"translate("+n.x+","+n.y+")":""}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},4849:(t,e,n)=>{var r=n(8355),i=n(4322);t.exports=function(t,e){function n(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},5787:(t,e,n)=>{var r=n(1034),i=n(4322),a=n(1463).layout;t.exports=function(){var t=n(607),e=n(5632),i=n(6315),l=n(940),A=n(4849),u=n(4577),h=n(6381),f=n(4418),d=n(9144),p=function(n,p){!function(t){t.nodes().forEach((function(e){var n=t.node(e);r.has(n,"label")||t.children(e).length||(n.label=e),r.has(n,"paddingX")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,"paddingY")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,"padding")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,o),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){n[t]=Number(n[t])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),t.edges().forEach((function(e){var n=t.edge(e);r.has(n,"label")||(n.label=""),r.defaults(n,s)}))}(p);var g=c(n,"output"),m=c(g,"clusters"),y=c(g,"edgePaths"),v=i(c(g,"edgeLabels"),p),b=t(c(g,"nodes"),p,f);a(p),A(b,p),u(v,p),l(y,p,d);var w=e(m,p);h(w,p),function(t){r.each(t.nodes(),(function(e){var n=t.node(e);r.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,r.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(p)};return p.createNodes=function(e){return arguments.length?(t=e,p):t},p.createClusters=function(t){return arguments.length?(e=t,p):e},p.createEdgeLabels=function(t){return arguments.length?(i=t,p):i},p.createEdgePaths=function(t){return arguments.length?(l=t,p):l},p.shapes=function(t){return arguments.length?(f=t,p):f},p.arrows=function(t){return arguments.length?(d=t,p):d},p};var o={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},s={arrowhead:"normal",curve:i.curveLinear};function c(t,e){var n=t.select("g."+e);return n.empty()&&(n=t.append("g").attr("class",e)),n}},4418:(t,e,n)=>{var r=n(8049),i=n(3260),a=n(6587),o=n(5337);t.exports={rect:function(t,e,n){var i=t.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return n.intersect=function(t){return r(n,t)},i},ellipse:function(t,e,n){var r=e.width/2,a=e.height/2,o=t.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",r).attr("ry",a);return n.intersect=function(t){return i(n,r,a,t)},o},circle:function(t,e,n){var r=Math.max(e.width,e.height)/2,i=t.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",r);return n.intersect=function(t){return a(n,r,t)},i},diamond:function(t,e,n){var r=e.width*Math.SQRT2/2,i=e.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],s=t.insert("polygon",":first-child").attr("points",a.map((function(t){return t.x+","+t.y})).join(" "));return n.intersect=function(t){return o(n,a,t)},s}}},8355:(t,e,n)=>{var r=n(1034);t.exports={isSubgraph:function(t,e){return!!t.children(e).length},edgeToId:function(t){return a(t.v)+":"+a(t.w)+":"+a(t.name)},applyStyle:function(t,e){e&&t.attr("style",e)},applyClass:function(t,e,n){e&&t.attr("class",e).attr("class",n+" "+t.attr("class"))},applyTransition:function(t,e){var n=e.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function a(t){return t?String(t).replace(i,"\\:"):""}},5689:t=>{t.exports="0.6.4"},7188:(t,e,n)=>{n.r(e),n.d(e,{FormatSpecifier:()=>rc,active:()=>Jr,arc:()=>rw,area:()=>lw,areaRadial:()=>yw,ascending:()=>i,autoType:()=>No,axisBottom:()=>it,axisLeft:()=>at,axisRight:()=>rt,axisTop:()=>nt,bisect:()=>l,bisectLeft:()=>c,bisectRight:()=>s,bisector:()=>a,blob:()=>us,brush:()=>Ti,brushSelection:()=>Ci,brushX:()=>xi,brushY:()=>Bi,buffer:()=>fs,chord:()=>Oi,clientPoint:()=>In,cluster:()=>bf,color:()=>Ye,contourDensity:()=>to,contours:()=>za,create:()=>Ib,creator:()=>ie,cross:()=>h,csv:()=>ys,csvFormat:()=>yo,csvFormatBody:()=>vo,csvFormatRow:()=>wo,csvFormatRows:()=>bo,csvFormatValue:()=>_o,csvParse:()=>go,csvParseRows:()=>mo,cubehelix:()=>Ua,curveBasis:()=>Jw,curveBasisClosed:()=>t_,curveBasisOpen:()=>n_,curveBundle:()=>i_,curveCardinal:()=>s_,curveCardinalClosed:()=>l_,curveCardinalOpen:()=>u_,curveCatmullRom:()=>d_,curveCatmullRomClosed:()=>g_,curveCatmullRomOpen:()=>y_,curveLinear:()=>aw,curveLinearClosed:()=>b_,curveMonotoneX:()=>k_,curveMonotoneY:()=>S_,curveNatural:()=>M_,curveStep:()=>D_,curveStepAfter:()=>O_,curveStepBefore:()=>L_,customEvent:()=>ge,descending:()=>f,deviation:()=>g,dispatch:()=>ht,drag:()=>so,dragDisable:()=>Te,dragEnable:()=>ke,dsv:()=>ms,dsvFormat:()=>fo,easeBack:()=>as,easeBackIn:()=>rs,easeBackInOut:()=>as,easeBackOut:()=>is,easeBounce:()=>ts,easeBounceIn:()=>Zo,easeBounceInOut:()=>es,easeBounceOut:()=>ts,easeCircle:()=>Xo,easeCircleIn:()=>Wo,easeCircleInOut:()=>Xo,easeCircleOut:()=>qo,easeCubic:()=>zr,easeCubicIn:()=>Yr,easeCubicInOut:()=>zr,easeCubicOut:()=>Vr,easeElastic:()=>cs,easeElasticIn:()=>ss,easeElasticInOut:()=>ls,easeElasticOut:()=>cs,easeExp:()=>zo,easeExpIn:()=>Yo,easeExpInOut:()=>zo,easeExpOut:()=>Vo,easeLinear:()=>Fo,easePoly:()=>Po,easePolyIn:()=>Ro,easePolyInOut:()=>Po,easePolyOut:()=>Uo,easeQuad:()=>Oo,easeQuadIn:()=>Do,easeQuadInOut:()=>Oo,easeQuadOut:()=>Lo,easeSin:()=>Ko,easeSinIn:()=>Go,easeSinInOut:()=>Ko,easeSinOut:()=>jo,entries:()=>fa,event:()=>Ae,extent:()=>m,forceCenter:()=>Ts,forceCollide:()=>Qs,forceLink:()=>js,forceManyBody:()=>zs,forceRadial:()=>Ws,forceSimulation:()=>Vs,forceX:()=>qs,forceY:()=>Xs,format:()=>cc,formatDefaultLocale:()=>fc,formatLocale:()=>hc,formatPrefix:()=>lc,formatSpecifier:()=>nc,geoAlbers:()=>Dh,geoAlbersUsa:()=>Lh,geoArea:()=>ll,geoAzimuthalEqualArea:()=>Ph,geoAzimuthalEqualAreaRaw:()=>Uh,geoAzimuthalEquidistant:()=>Hh,geoAzimuthalEquidistantRaw:()=>Qh,geoBounds:()=>eA,geoCentroid:()=>fA,geoCircle:()=>CA,geoClipAntimeridian:()=>OA,geoClipCircle:()=>RA,geoClipExtent:()=>HA,geoClipRectangle:()=>QA,geoConicConformal:()=>Vh,geoConicConformalRaw:()=>Yh,geoConicEqualArea:()=>Fh,geoConicEqualAreaRaw:()=>Mh,geoConicEquidistant:()=>Xh,geoConicEquidistantRaw:()=>qh,geoContains:()=>cu,geoDistance:()=>ZA,geoEqualEarth:()=>af,geoEqualEarthRaw:()=>rf,geoEquirectangular:()=>Wh,geoEquirectangularRaw:()=>zh,geoGnomonic:()=>sf,geoGnomonicRaw:()=>of,geoGraticule:()=>uu,geoGraticule10:()=>hu,geoIdentity:()=>cf,geoInterpolate:()=>fu,geoLength:()=>qA,geoMercator:()=>jh,geoMercatorRaw:()=>Gh,geoNaturalEarth1:()=>Af,geoNaturalEarth1Raw:()=>lf,geoOrthographic:()=>hf,geoOrthographicRaw:()=>uf,geoPath:()=>ph,geoProjection:()=>Sh,geoProjectionMutator:()=>Ih,geoRotation:()=>wA,geoStereographic:()=>df,geoStereographicRaw:()=>ff,geoStream:()=>qc,geoTransform:()=>gh,geoTransverseMercator:()=>gf,geoTransverseMercatorRaw:()=>pf,gray:()=>ya,hcl:()=>Ta,hierarchy:()=>_f,histogram:()=>N,hsl:()=>rn,html:()=>xs,image:()=>bs,interpolate:()=>kn,interpolateArray:()=>bn,interpolateBasis:()=>cn,interpolateBasisClosed:()=>ln,interpolateBlues:()=>rb,interpolateBrBG:()=>pv,interpolateBuGn:()=>Fv,interpolateBuPu:()=>Lv,interpolateCividis:()=>db,interpolateCool:()=>mb,interpolateCubehelix:()=>Dd,interpolateCubehelixDefault:()=>pb,interpolateCubehelixLong:()=>Ld,interpolateDate:()=>_n,interpolateDiscrete:()=>bd,interpolateGnBu:()=>Rv,interpolateGreens:()=>ab,interpolateGreys:()=>sb,interpolateHcl:()=>Nd,interpolateHclLong:()=>Md,interpolateHsl:()=>Td,interpolateHslLong:()=>kd,interpolateHue:()=>wd,interpolateInferno:()=>kb,interpolateLab:()=>Sd,interpolateMagma:()=>Tb,interpolateNumber:()=>En,interpolateNumberArray:()=>yn,interpolateObject:()=>Cn,interpolateOrRd:()=>Pv,interpolateOranges:()=>fb,interpolatePRGn:()=>mv,interpolatePiYG:()=>vv,interpolatePlasma:()=>Sb,interpolatePuBu:()=>jv,interpolatePuBuGn:()=>Hv,interpolatePuOr:()=>wv,interpolatePuRd:()=>$v,interpolatePurples:()=>lb,interpolateRainbow:()=>vb,interpolateRdBu:()=>Ev,interpolateRdGy:()=>xv,interpolateRdPu:()=>Vv,interpolateRdYlBu:()=>Tv,interpolateRdYlGn:()=>Sv,interpolateReds:()=>ub,interpolateRgb:()=>dn,interpolateRgbBasis:()=>gn,interpolateRgbBasisClosed:()=>mn,interpolateRound:()=>_d,interpolateSinebow:()=>Eb,interpolateSpectral:()=>Nv,interpolateString:()=>Tn,interpolateTransformCss:()=>fr,interpolateTransformSvg:()=>dr,interpolateTurbo:()=>Cb,interpolateViridis:()=>Bb,interpolateWarm:()=>gb,interpolateYlGn:()=>Xv,interpolateYlGnBu:()=>Wv,interpolateYlOrBr:()=>Zv,interpolateYlOrRd:()=>eb,interpolateZoom:()=>xd,interrupt:()=>ir,interval:()=>eE,isoFormat:()=>Z_,isoParse:()=>tE,json:()=>_s,keys:()=>ua,lab:()=>va,lch:()=>Ba,line:()=>cw,lineRadial:()=>mw,linkHorizontal:()=>Tw,linkRadial:()=>Sw,linkVertical:()=>kw,local:()=>Mb,map:()=>ea,matcher:()=>mt,max:()=>L,mean:()=>O,median:()=>R,merge:()=>U,min:()=>P,mouse:()=>Mn,namespace:()=>xt,namespaces:()=>Ct,nest:()=>na,now:()=>jn,pack:()=>Vf,packEnclose:()=>kf,packSiblings:()=>Hf,pairs:()=>A,partition:()=>Zf,path:()=>$i,permute:()=>Q,pie:()=>hw,piecewise:()=>Od,pointRadial:()=>vw,polygonArea:()=>Ud,polygonCentroid:()=>Pd,polygonContains:()=>Kd,polygonHull:()=>jd,polygonLength:()=>$d,precisionFixed:()=>dc,precisionPrefix:()=>pc,precisionRound:()=>gc,quadtree:()=>Ds,quantile:()=>M,quantize:()=>Rd,radialArea:()=>yw,radialLine:()=>mw,randomBates:()=>Xd,randomExponential:()=>Jd,randomIrwinHall:()=>qd,randomLogNormal:()=>Wd,randomNormal:()=>zd,randomUniform:()=>Vd,range:()=>E,rgb:()=>qe,ribbon:()=>Xi,scaleBand:()=>op,scaleDiverging:()=>Xy,scaleDivergingLog:()=>Jy,scaleDivergingPow:()=>tv,scaleDivergingSqrt:()=>ev,scaleDivergingSymlog:()=>Zy,scaleIdentity:()=>_p,scaleImplicit:()=>ip,scaleLinear:()=>wp,scaleLog:()=>Np,scaleOrdinal:()=>ap,scalePoint:()=>cp,scalePow:()=>Qp,scaleQuantile:()=>Gp,scaleQuantize:()=>jp,scaleSequential:()=>Ky,scaleSequentialLog:()=>$y,scaleSequentialPow:()=>Vy,scaleSequentialQuantile:()=>Wy,scaleSequentialSqrt:()=>zy,scaleSequentialSymlog:()=>Yy,scaleSqrt:()=>Hp,scaleSymlog:()=>Lp,scaleThreshold:()=>Kp,scaleTime:()=>Ny,scaleUtc:()=>Hy,scan:()=>H,schemeAccent:()=>iv,schemeBlues:()=>nb,schemeBrBG:()=>dv,schemeBuGn:()=>Mv,schemeBuPu:()=>Dv,schemeCategory10:()=>rv,schemeDark2:()=>av,schemeGnBu:()=>Ov,schemeGreens:()=>ib,schemeGreys:()=>ob,schemeOrRd:()=>Uv,schemeOranges:()=>hb,schemePRGn:()=>gv,schemePaired:()=>ov,schemePastel1:()=>sv,schemePastel2:()=>cv,schemePiYG:()=>yv,schemePuBu:()=>Gv,schemePuBuGn:()=>Qv,schemePuOr:()=>bv,schemePuRd:()=>Kv,schemePurples:()=>cb,schemeRdBu:()=>_v,schemeRdGy:()=>Cv,schemeRdPu:()=>Yv,schemeRdYlBu:()=>Bv,schemeRdYlGn:()=>kv,schemeReds:()=>Ab,schemeSet1:()=>lv,schemeSet2:()=>Av,schemeSet3:()=>uv,schemeSpectral:()=>Iv,schemeTableau10:()=>hv,schemeYlGn:()=>qv,schemeYlGnBu:()=>zv,schemeYlOrBr:()=>Jv,schemeYlOrRd:()=>tb,select:()=>Ce,selectAll:()=>Db,selection:()=>Ee,selector:()=>dt,selectorAll:()=>gt,set:()=>Aa,shuffle:()=>G,stack:()=>Q_,stackOffsetDiverging:()=>G_,stackOffsetExpand:()=>H_,stackOffsetNone:()=>R_,stackOffsetSilhouette:()=>j_,stackOffsetWiggle:()=>K_,stackOrderAppearance:()=>$_,stackOrderAscending:()=>V_,stackOrderDescending:()=>W_,stackOrderInsideOut:()=>q_,stackOrderNone:()=>U_,stackOrderReverse:()=>X_,stratify:()=>id,style:()=>Ot,sum:()=>j,svg:()=>Bs,symbol:()=>zw,symbolCircle:()=>Iw,symbolCross:()=>Nw,symbolDiamond:()=>Dw,symbolSquare:()=>Pw,symbolStar:()=>Uw,symbolTriangle:()=>Hw,symbolWye:()=>Yw,symbols:()=>Vw,text:()=>ps,thresholdFreedmanDiaconis:()=>F,thresholdScott:()=>D,thresholdSturges:()=>I,tickFormat:()=>vp,tickIncrement:()=>k,tickStep:()=>S,ticks:()=>T,timeDay:()=>vg,timeDays:()=>bg,timeFormat:()=>am,timeFormatDefaultLocale:()=>By,timeFormatLocale:()=>rm,timeFriday:()=>lg,timeFridays:()=>gg,timeHour:()=>_g,timeHours:()=>Eg,timeInterval:()=>Vp,timeMillisecond:()=>Ng,timeMilliseconds:()=>Mg,timeMinute:()=>xg,timeMinutes:()=>Bg,timeMonday:()=>ag,timeMondays:()=>hg,timeMonth:()=>Jp,timeMonths:()=>Zp,timeParse:()=>om,timeSaturday:()=>Ag,timeSaturdays:()=>mg,timeSecond:()=>kg,timeSeconds:()=>Sg,timeSunday:()=>ig,timeSundays:()=>ug,timeThursday:()=>cg,timeThursdays:()=>pg,timeTuesday:()=>og,timeTuesdays:()=>fg,timeWednesday:()=>sg,timeWednesdays:()=>dg,timeWeek:()=>ig,timeWeeks:()=>ug,timeYear:()=>Wp,timeYears:()=>qp,timeout:()=>Xn,timer:()=>Yn,timerFlush:()=>Vn,touch:()=>Nn,touches:()=>Lb,transition:()=>jr,transpose:()=>K,tree:()=>ud,treemap:()=>gd,treemapBinary:()=>md,treemapDice:()=>Jf,treemapResquarify:()=>vd,treemapSlice:()=>hd,treemapSliceDice:()=>yd,treemapSquarify:()=>pd,tsv:()=>vs,tsvFormat:()=>Bo,tsvFormatBody:()=>To,tsvFormatRow:()=>So,tsvFormatRows:()=>ko,tsvFormatValue:()=>Io,tsvParse:()=>Co,tsvParseRows:()=>xo,utcDay:()=>Wg,utcDays:()=>qg,utcFormat:()=>sm,utcFriday:()=>Pg,utcFridays:()=>Yg,utcHour:()=>Oy,utcHours:()=>Ry,utcMillisecond:()=>Ng,utcMilliseconds:()=>Mg,utcMinute:()=>Py,utcMinutes:()=>Qy,utcMonday:()=>Lg,utcMondays:()=>Gg,utcMonth:()=>Fy,utcMonths:()=>Dy,utcParse:()=>cm,utcSaturday:()=>Qg,utcSaturdays:()=>Vg,utcSecond:()=>kg,utcSeconds:()=>Sg,utcSunday:()=>Dg,utcSundays:()=>Hg,utcThursday:()=>Ug,utcThursdays:()=>$g,utcTuesday:()=>Og,utcTuesdays:()=>jg,utcWednesday:()=>Rg,utcWednesdays:()=>Kg,utcWeek:()=>Dg,utcWeeks:()=>Hg,utcYear:()=>Jg,utcYears:()=>Zg,values:()=>ha,variance:()=>p,version:()=>r,voronoi:()=>HE,window:()=>Mt,xml:()=>Cs,zip:()=>Y,zoom:()=>eC,zoomIdentity:()=>$E,zoomTransform:()=>YE});var r="5.16.0";function i(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function a(t){var e;return 1===t.length&&(e=t,t=function(t,n){return i(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}var o=a(i),s=o.right,c=o.left;const l=s;function A(t,e){null==e&&(e=u);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return a}function u(t,e){return[t,e]}function h(t,e,n){var r,i,a,o,s=t.length,c=e.length,l=new Array(s*c);for(null==n&&(n=u),r=a=0;r<s;++r)for(o=t[r],i=0;i<c;++i,++a)l[a]=n(o,e[i]);return l}function f(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function d(t){return null===t?NaN:+t}function p(t,e){var n,r,i=t.length,a=0,o=-1,s=0,c=0;if(null==e)for(;++o<i;)isNaN(n=d(t[o]))||(c+=(r=n-s)*(n-(s+=r/++a)));else for(;++o<i;)isNaN(n=d(e(t[o],o,t)))||(c+=(r=n-s)*(n-(s+=r/++a)));if(a>1)return c/(a-1)}function g(t,e){var n=p(t,e);return n?Math.sqrt(n):n}function m(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(n=t[o])&&n>=n)for(r=i=n;++o<a;)null!=(n=t[o])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++o<a;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=i=n;++o<a;)null!=(n=e(t[o],o,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}var y=Array.prototype,v=y.slice,b=y.map;function w(t){return function(){return t}}function _(t){return t}function E(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(i);++r<i;)a[r]=t+r*n;return a}var C=Math.sqrt(50),x=Math.sqrt(10),B=Math.sqrt(2);function T(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=k(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s<i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s<i;)a[s]=(t-s)/o;return r&&a.reverse(),a}function k(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=C?10:a>=x?5:a>=B?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=C?10:a>=x?5:a>=B?2:1)}function S(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=C?i*=10:a>=x?i*=5:a>=B&&(i*=2),e<t?-i:i}function I(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function N(){var t=_,e=m,n=I;function r(r){var i,a,o=r.length,s=new Array(o);for(i=0;i<o;++i)s[i]=t(r[i],i,r);var c=e(s),A=c[0],u=c[1],h=n(s,A,u);Array.isArray(h)||(h=S(A,u,h),h=E(Math.ceil(A/h)*h,u,h));for(var f=h.length;h[0]<=A;)h.shift(),--f;for(;h[f-1]>u;)h.pop(),--f;var d,p=new Array(f+1);for(i=0;i<=f;++i)(d=p[i]=[]).x0=i>0?h[i-1]:A,d.x1=i<f?h[i]:u;for(i=0;i<o;++i)A<=(a=s[i])&&a<=u&&p[l(h,a,0,f)].push(r[i]);return p}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:w(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:w([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?w(v.call(t)):w(t),r):n},r}function M(t,e,n){if(null==n&&(n=d),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}}function F(t,e,n){return t=b.call(t,d).sort(i),Math.ceil((n-e)/(2*(M(t,.75)-M(t,.25))*Math.pow(t.length,-1/3)))}function D(t,e,n){return Math.ceil((n-e)/(3.5*g(t)*Math.pow(t.length,-1/3)))}function L(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<i;)null!=(n=t[a])&&n>r&&(r=n)}else for(;++a<i;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<i;)null!=(n=e(t[a],a,t))&&n>r&&(r=n);return r}function O(t,e){var n,r=t.length,i=r,a=-1,o=0;if(null==e)for(;++a<r;)isNaN(n=d(t[a]))?--i:o+=n;else for(;++a<r;)isNaN(n=d(e(t[a],a,t)))?--i:o+=n;if(i)return o/i}function R(t,e){var n,r=t.length,a=-1,o=[];if(null==e)for(;++a<r;)isNaN(n=d(t[a]))||o.push(n);else for(;++a<r;)isNaN(n=d(e(t[a],a,t)))||o.push(n);return M(o.sort(i),.5)}function U(t){for(var e,n,r,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(n=new Array(o);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n}function P(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<i;)null!=(n=t[a])&&r>n&&(r=n)}else for(;++a<i;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<i;)null!=(n=e(t[a],a,t))&&r>n&&(r=n);return r}function Q(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}function H(t,e){if(n=t.length){var n,r,a=0,o=0,s=t[o];for(null==e&&(e=i);++a<n;)(e(r=t[a],s)<0||0!==e(s,s))&&(s=r,o=a);return 0===e(s,s)?o:void 0}}function G(t,e,n){for(var r,i,a=(null==n?t.length:n)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,r=t[a+e],t[a+e]=t[i+e],t[i+e]=r;return t}function j(t,e){var n,r=t.length,i=-1,a=0;if(null==e)for(;++i<r;)(n=+t[i])&&(a+=n);else for(;++i<r;)(n=+e(t[i],i,t))&&(a+=n);return a}function K(t){if(!(i=t.length))return[];for(var e=-1,n=P(t,$),r=new Array(n);++e<n;)for(var i,a=-1,o=r[e]=new Array(i);++a<i;)o[a]=t[a][e];return r}function $(t){return t.length}function Y(){return K(arguments)}var V=Array.prototype.slice;function z(t){return t}var W=1e-6;function q(t){return"translate("+(t+.5)+",0)"}function X(t){return"translate(0,"+(t+.5)+")"}function J(t){return function(e){return+t(e)}}function Z(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function tt(){return!this.__axis}function et(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,c=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",A=1===t||3===t?q:X;function u(u){var h=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,f=null==i?e.tickFormat?e.tickFormat.apply(e,n):z:i,d=Math.max(a,0)+s,p=e.range(),g=+p[0]+.5,m=+p[p.length-1]+.5,y=(e.bandwidth?Z:J)(e.copy()),v=u.selection?u.selection():u,b=v.selectAll(".domain").data([null]),w=v.selectAll(".tick").data(h,e).order(),_=w.exit(),E=w.enter().append("g").attr("class","tick"),C=w.select("line"),x=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(E),C=C.merge(E.append("line").attr("stroke","currentColor").attr(l+"2",c*a)),x=x.merge(E.append("text").attr("fill","currentColor").attr(l,c*d).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),u!==v&&(b=b.transition(u),w=w.transition(u),C=C.transition(u),x=x.transition(u),_=_.transition(u).attr("opacity",W).attr("transform",(function(t){return isFinite(t=y(t))?A(t):this.getAttribute("transform")})),E.attr("opacity",W).attr("transform",(function(t){var e=this.parentNode.__axis;return A(e&&isFinite(e=e(t))?e:y(t))}))),_.remove(),b.attr("d",4===t||2==t?o?"M"+c*o+","+g+"H0.5V"+m+"H"+c*o:"M0.5,"+g+"V"+m:o?"M"+g+","+c*o+"V0.5H"+m+"V"+c*o:"M"+g+",0.5H"+m),w.attr("opacity",1).attr("transform",(function(t){return A(y(t))})),C.attr(l+"2",c*a),x.attr(l,c*d).text(f),v.filter(tt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),v.each((function(){this.__axis=y}))}return u.scale=function(t){return arguments.length?(e=t,u):e},u.ticks=function(){return n=V.call(arguments),u},u.tickArguments=function(t){return arguments.length?(n=null==t?[]:V.call(t),u):n.slice()},u.tickValues=function(t){return arguments.length?(r=null==t?null:V.call(t),u):r&&r.slice()},u.tickFormat=function(t){return arguments.length?(i=t,u):i},u.tickSize=function(t){return arguments.length?(a=o=+t,u):a},u.tickSizeInner=function(t){return arguments.length?(a=+t,u):a},u.tickSizeOuter=function(t){return arguments.length?(o=+t,u):o},u.tickPadding=function(t){return arguments.length?(s=+t,u):s},u}function nt(t){return et(1,t)}function rt(t){return et(2,t)}function it(t){return et(3,t)}function at(t){return et(4,t)}var ot={value:function(){}};function st(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new ct(r)}function ct(t){this._=t}function lt(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function At(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function ut(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=ot,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}ct.prototype=st.prototype={constructor:ct,on:function(t,e){var n,r=this._,i=lt(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=ut(r[n],t.name,e);else if(null==e)for(n in r)r[n]=ut(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=At(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new ct(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};const ht=st;function ft(){}function dt(t){return null==t?ft:function(){return this.querySelector(t)}}function pt(){return[]}function gt(t){return null==t?pt:function(){return this.querySelectorAll(t)}}function mt(t){return function(){return this.matches(t)}}function yt(t){return new Array(t.length)}function vt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function bt(t,e,n,r,i,a){for(var o,s=0,c=e.length,l=a.length;s<l;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new vt(t,a[s]);for(;s<c;++s)(o=e[s])&&(i[s]=o)}function wt(t,e,n,r,i,a,o){var s,c,l,A={},u=e.length,h=a.length,f=new Array(u);for(s=0;s<u;++s)(c=e[s])&&(f[s]=l="$"+o.call(c,c.__data__,s,e),l in A?i[s]=c:A[l]=c);for(s=0;s<h;++s)(c=A[l="$"+o.call(t,a[s],s,a)])?(r[s]=c,c.__data__=a[s],A[l]=null):n[s]=new vt(t,a[s]);for(s=0;s<u;++s)(c=e[s])&&A[f[s]]===c&&(i[s]=c)}function _t(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}vt.prototype={constructor:vt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Et="http://www.w3.org/1999/xhtml";const Ct={svg:"http://www.w3.org/2000/svg",xhtml:Et,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xt(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Ct.hasOwnProperty(e)?{space:Ct[e],local:t}:t}function Bt(t){return function(){this.removeAttribute(t)}}function Tt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function kt(t,e){return function(){this.setAttribute(t,e)}}function St(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function It(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Nt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Mt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ft(t){return function(){this.style.removeProperty(t)}}function Dt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Lt(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ot(t,e){return t.style.getPropertyValue(e)||Mt(t).getComputedStyle(t,null).getPropertyValue(e)}function Rt(t){return function(){delete this[t]}}function Ut(t,e){return function(){this[t]=e}}function Pt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Qt(t){return t.trim().split(/^|\s+/)}function Ht(t){return t.classList||new Gt(t)}function Gt(t){this._node=t,this._names=Qt(t.getAttribute("class")||"")}function jt(t,e){for(var n=Ht(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Kt(t,e){for(var n=Ht(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function $t(t){return function(){jt(this,t)}}function Yt(t){return function(){Kt(this,t)}}function Vt(t,e){return function(){(e.apply(this,arguments)?jt:Kt)(this,t)}}function zt(){this.textContent=""}function Wt(t){return function(){this.textContent=t}}function qt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Xt(){this.innerHTML=""}function Jt(t){return function(){this.innerHTML=t}}function Zt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function te(){this.nextSibling&&this.parentNode.appendChild(this)}function ee(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ne(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Et&&e.documentElement.namespaceURI===Et?e.createElement(t):e.createElementNS(n,t)}}function re(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ie(t){var e=xt(t);return(e.local?re:ne)(e)}function ae(){return null}function oe(){var t=this.parentNode;t&&t.removeChild(this)}function se(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ce(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}Gt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var le={},Ae=null;function ue(t,e,n){return t=he(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function he(t,e,n){return function(r){var i=Ae;Ae=r;try{t.call(this,this.__data__,e,n)}finally{Ae=i}}}function fe(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function de(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function pe(t,e,n){var r=le.hasOwnProperty(t.type)?ue:he;return function(i,a,o){var s,c=this.__on,l=r(e,a,o);if(c)for(var A=0,u=c.length;A<u;++A)if((s=c[A]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=l,s.capture=n),void(s.value=e);this.addEventListener(t.type,l,n),s={type:t.type,name:t.name,value:e,listener:l,capture:n},c?c.push(s):this.__on=[s]}}function ge(t,e,n,r){var i=Ae;t.sourceEvent=Ae,Ae=t;try{return e.apply(n,r)}finally{Ae=i}}function me(t,e,n){var r=Mt(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function ye(t,e){return function(){return me(this,t,e)}}function ve(t,e){return function(){return me(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(le={mouseenter:"mouseover",mouseleave:"mouseout"}));var be=[null];function we(t,e){this._groups=t,this._parents=e}function _e(){return new we([[document.documentElement]],be)}we.prototype=_e.prototype={constructor:we,select:function(t){"function"!=typeof t&&(t=dt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],c=s.length,l=r[i]=new Array(c),A=0;A<c;++A)(a=s[A])&&(o=t.call(a,a.__data__,A,s))&&("__data__"in a&&(o.__data__=a.__data__),l[A]=o);return new we(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=gt(t));for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],c=s.length,l=0;l<c;++l)(o=s[l])&&(r.push(t.call(o,o.__data__,l,s)),i.push(o));return new we(r,i)},filter:function(t){"function"!=typeof t&&(t=mt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new we(r,this._parents)},data:function(t,e){if(!t)return d=new Array(this.size()),A=-1,this.each((function(t){d[++A]=t})),d;var n,r=e?wt:bt,i=this._parents,a=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var o=a.length,s=new Array(o),c=new Array(o),l=new Array(o),A=0;A<o;++A){var u=i[A],h=a[A],f=h.length,d=t.call(u,u&&u.__data__,A,i),p=d.length,g=c[A]=new Array(p),m=s[A]=new Array(p);r(u,h,g,m,l[A]=new Array(f),d,e);for(var y,v,b=0,w=0;b<p;++b)if(y=g[b]){for(b>=w&&(w=b+1);!(v=m[w])&&++w<p;);y._next=v||null}}return(s=new we(s,i))._enter=c,s._exit=l,s},enter:function(){return new we(this._enter||this._groups.map(yt),this._parents)},exit:function(){return new we(this._exit||this._groups.map(yt),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var c,l=e[s],A=n[s],u=l.length,h=o[s]=new Array(u),f=0;f<u;++f)(c=l[f]||A[f])&&(h[f]=c);for(;s<r;++s)o[s]=e[s];return new we(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=_t);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],c=s.length,l=i[a]=new Array(c),A=0;A<c;++A)(o=s[A])&&(l[A]=o);l.sort(e)}return new we(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=xt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Tt:Bt:"function"==typeof e?n.local?Nt:It:n.local?St:kt)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Ft:"function"==typeof e?Lt:Dt)(t,e,null==n?"":n)):Ot(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Rt:"function"==typeof e?Pt:Ut)(t,e)):this.node()[t]},classed:function(t,e){var n=Qt(t+"");if(arguments.length<2){for(var r=Ht(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?Vt:e?$t:Yt)(n,e))},text:function(t){return arguments.length?this.each(null==t?zt:("function"==typeof t?qt:Wt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Xt:("function"==typeof t?Zt:Jt)(t)):this.node().innerHTML},raise:function(){return this.each(te)},lower:function(){return this.each(ee)},append:function(t){var e="function"==typeof t?t:ie(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:ie(t),r=null==e?ae:"function"==typeof e?e:dt(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(oe)},clone:function(t){return this.select(t?ce:se)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=fe(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?pe:de,null==n&&(n=!1),r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var c,l=0,A=s.length;l<A;++l)for(r=0,c=s[l];r<o;++r)if((i=a[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?ve:ye)(t,e))}};const Ee=_e;function Ce(t){return"string"==typeof t?new we([[document.querySelector(t)]],[document.documentElement]):new we([[t]],be)}function xe(){Ae.stopImmediatePropagation()}function Be(){Ae.preventDefault(),Ae.stopImmediatePropagation()}function Te(t){var e=t.document.documentElement,n=Ce(t).on("dragstart.drag",Be,!0);"onselectstart"in e?n.on("selectstart.drag",Be,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function ke(t,e){var n=t.document.documentElement,r=Ce(t).on("dragstart.drag",null);e&&(r.on("click.drag",Be,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Se(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ie(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Ne(){}var Me=1/.7,Fe="\\s*([+-]?\\d+)\\s*",De="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Le="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Oe=/^#([0-9a-f]{3,8})$/,Re=new RegExp("^rgb\\("+[Fe,Fe,Fe]+"\\)$"),Ue=new RegExp("^rgb\\("+[Le,Le,Le]+"\\)$"),Pe=new RegExp("^rgba\\("+[Fe,Fe,Fe,De]+"\\)$"),Qe=new RegExp("^rgba\\("+[Le,Le,Le,De]+"\\)$"),He=new RegExp("^hsl\\("+[De,Le,Le]+"\\)$"),Ge=new RegExp("^hsla\\("+[De,Le,Le,De]+"\\)$"),je={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ke(){return this.rgb().formatHex()}function $e(){return this.rgb().formatRgb()}function Ye(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Oe.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ve(e):3===n?new Xe(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ze(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ze(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Re.exec(t))?new Xe(e[1],e[2],e[3],1):(e=Ue.exec(t))?new Xe(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Pe.exec(t))?ze(e[1],e[2],e[3],e[4]):(e=Qe.exec(t))?ze(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=He.exec(t))?en(e[1],e[2]/100,e[3]/100,1):(e=Ge.exec(t))?en(e[1],e[2]/100,e[3]/100,e[4]):je.hasOwnProperty(t)?Ve(je[t]):"transparent"===t?new Xe(NaN,NaN,NaN,0):null}function Ve(t){return new Xe(t>>16&255,t>>8&255,255&t,1)}function ze(t,e,n,r){return r<=0&&(t=e=n=NaN),new Xe(t,e,n,r)}function We(t){return t instanceof Ne||(t=Ye(t)),t?new Xe((t=t.rgb()).r,t.g,t.b,t.opacity):new Xe}function qe(t,e,n,r){return 1===arguments.length?We(t):new Xe(t,e,n,null==r?1:r)}function Xe(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Je(){return"#"+tn(this.r)+tn(this.g)+tn(this.b)}function Ze(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function tn(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function en(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new an(t,e,n,r)}function nn(t){if(t instanceof an)return new an(t.h,t.s,t.l,t.opacity);if(t instanceof Ne||(t=Ye(t)),!t)return new an;if(t instanceof an)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new an(o,s,c,t.opacity)}function rn(t,e,n,r){return 1===arguments.length?nn(t):new an(t,e,n,null==r?1:r)}function an(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function on(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function sn(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function cn(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r<e-1?t[r+2]:2*a-i;return sn((n-r/e)*e,o,i,a,s)}}function ln(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],a=t[r%e],o=t[(r+1)%e],s=t[(r+2)%e];return sn((n-r/e)*e,i,a,o,s)}}function An(t){return function(){return t}}function un(t,e){return function(n){return t+n*e}}function hn(t,e){var n=e-t;return n?un(t,n>180||n<-180?n-360*Math.round(n/360):n):An(isNaN(t)?e:t)}function fn(t,e){var n=e-t;return n?un(t,n):An(isNaN(t)?e:t)}Se(Ne,Ye,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ke,formatHex:Ke,formatHsl:function(){return nn(this).formatHsl()},formatRgb:$e,toString:$e}),Se(Xe,qe,Ie(Ne,{brighter:function(t){return t=null==t?Me:Math.pow(Me,t),new Xe(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Xe(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Je,formatHex:Je,formatRgb:Ze,toString:Ze})),Se(an,rn,Ie(Ne,{brighter:function(t){return t=null==t?Me:Math.pow(Me,t),new an(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new an(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Xe(on(t>=240?t-240:t+120,i,r),on(t,i,r),on(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const dn=function t(e){var n=function(t){return 1==(t=+t)?fn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):An(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=qe(t)).r,(e=qe(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=fn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function pn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=qe(e[n]),a[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return a=t(a),o=t(o),s=t(s),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=s(t),r+""}}}var gn=pn(cn),mn=pn(ln);function yn(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function vn(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function bn(t,e){return(vn(e)?yn:wn)(t,e)}function wn(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=kn(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function _n(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function En(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Cn(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=kn(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var xn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bn=new RegExp(xn.source,"g");function Tn(t,e){var n,r,i,a=xn.lastIndex=Bn.lastIndex=0,o=-1,s=[],c=[];for(t+="",e+="";(n=xn.exec(t))&&(r=Bn.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:En(n,r)})),a=Bn.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)s[(n=c[r]).i]=n.x(t);return s.join("")})}function kn(t,e){var n,r=typeof e;return null==e||"boolean"===r?An(e):("number"===r?En:"string"===r?(n=Ye(e))?(e=n,dn):Tn:e instanceof Ye?dn:e instanceof Date?_n:vn(e)?yn:Array.isArray(e)?wn:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Cn:En)(t,e)}function Sn(){for(var t,e=Ae;t=e.sourceEvent;)e=t;return e}function In(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}function Nn(t,e,n){arguments.length<3&&(n=e,e=Sn().changedTouches);for(var r,i=0,a=e?e.length:0;i<a;++i)if((r=e[i]).identifier===n)return In(t,r);return null}function Mn(t){var e=Sn();return e.changedTouches&&(e=e.changedTouches[0]),In(t,e)}var Fn,Dn,Ln=0,On=0,Rn=0,Un=0,Pn=0,Qn=0,Hn="object"==typeof performance&&performance.now?performance:Date,Gn="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function jn(){return Pn||(Gn(Kn),Pn=Hn.now()+Qn)}function Kn(){Pn=0}function $n(){this._call=this._time=this._next=null}function Yn(t,e,n){var r=new $n;return r.restart(t,e,n),r}function Vn(){jn(),++Ln;for(var t,e=Fn;e;)(t=Pn-e._time)>=0&&e._call.call(null,t),e=e._next;--Ln}function zn(){Pn=(Un=Hn.now())+Qn,Ln=On=0;try{Vn()}finally{Ln=0,function(){for(var t,e,n=Fn,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Fn=e);Dn=t,qn(r)}(),Pn=0}}function Wn(){var t=Hn.now(),e=t-Un;e>1e3&&(Qn-=e,Un=t)}function qn(t){Ln||(On&&(On=clearTimeout(On)),t-Pn>24?(t<1/0&&(On=setTimeout(zn,t-Hn.now()-Qn)),Rn&&(Rn=clearInterval(Rn))):(Rn||(Un=Hn.now(),Rn=setInterval(Wn,1e3)),Ln=1,Gn(zn)))}function Xn(t,e,n){var r=new $n;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}$n.prototype=Yn.prototype={constructor:$n,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?jn():+n)+(null==e?0:+e),this._next||Dn===this||(Dn?Dn._next=this:Fn=this,Dn=this),this._call=t,this._time=n,qn()},stop:function(){this._call&&(this._call=null,this._time=1/0,qn())}};var Jn=ht("start","end","cancel","interrupt"),Zn=[];function tr(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var l,A,u,h;if(1!==n.state)return s();for(l in i)if((h=i[l]).name===n.name){if(3===h.state)return Xn(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+l<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[l])}if(Xn((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(c))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(u=n.tween.length),l=0,A=-1;l<u;++l)(h=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++A]=h);r.length=A+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Yn((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:Jn,tween:Zn,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function er(t,e){var n=rr(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function nr(t,e){var n=rr(t,e);if(n.state>3)throw new Error("too late; already running");return n}function rr(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function ir(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}var ar,or,sr,cr,lr=180/Math.PI,Ar={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ur(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*lr,skewX:Math.atan(c)*lr,scaleX:o,scaleY:s}}function hr(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],c=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var c=o.push("translate(",null,e,null,n);s.push({i:c-4,x:En(t,i)},{i:c-2,x:En(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,c),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:En(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:En(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:En(t,n)},{i:s-2,x:En(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n<r;)s[(e=c[n]).i]=e.x(t);return s.join("")}}}var fr=hr((function(t){return"none"===t?Ar:(ar||(ar=document.createElement("DIV"),or=document.documentElement,sr=document.defaultView),ar.style.transform=t,t=sr.getComputedStyle(or.appendChild(ar),null).getPropertyValue("transform"),or.removeChild(ar),ur(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),dr=hr((function(t){return null==t?Ar:(cr||(cr=document.createElementNS("http://www.w3.org/2000/svg","g")),cr.setAttribute("transform",t),(t=cr.transform.baseVal.consolidate())?ur((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Ar)}),", ",")",")");function pr(t,e){var n,r;return function(){var i=nr(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function gr(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=nr(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===e){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function mr(t,e,n){var r=t._id;return t.each((function(){var t=nr(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return rr(t,r).value[e]}}function yr(t,e){var n;return("number"==typeof e?En:e instanceof Ye?dn:(n=Ye(e))?(e=n,dn):Tn)(t,e)}function vr(t){return function(){this.removeAttribute(t)}}function br(t){return function(){this.removeAttributeNS(t.space,t.local)}}function wr(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function _r(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function Er(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttribute(t))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttribute(t)}}function Cr(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttributeNS(t.space,t.local)}}function xr(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Br(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Tr(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Br(t,i)),n}return i._value=e,i}function kr(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&xr(t,i)),n}return i._value=e,i}function Sr(t,e){return function(){er(this,t).delay=+e.apply(this,arguments)}}function Ir(t,e){return e=+e,function(){er(this,t).delay=e}}function Nr(t,e){return function(){nr(this,t).duration=+e.apply(this,arguments)}}function Mr(t,e){return e=+e,function(){nr(this,t).duration=e}}function Fr(t,e){if("function"!=typeof e)throw new Error;return function(){nr(this,t).ease=e}}function Dr(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?er:nr;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Lr=Ee.prototype.constructor;function Or(t){return function(){this.style.removeProperty(t)}}function Rr(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ur(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Rr(t,a,n)),r}return a._value=e,a}function Pr(t){return function(e){this.textContent=t.call(this,e)}}function Qr(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Pr(r)),e}return r._value=t,r}var Hr=0;function Gr(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function jr(t){return Ee().transition(t)}function Kr(){return++Hr}var $r=Ee.prototype;function Yr(t){return t*t*t}function Vr(t){return--t*t*t+1}function zr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Gr.prototype=jr.prototype={constructor:Gr,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=dt(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s,c,l=r[o],A=l.length,u=a[o]=new Array(A),h=0;h<A;++h)(s=l[h])&&(c=t.call(s,s.__data__,h,l))&&("__data__"in s&&(c.__data__=s.__data__),u[h]=c,tr(u[h],e,n,h,u,rr(s,n)));return new Gr(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=gt(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c,l=r[s],A=l.length,u=0;u<A;++u)if(c=l[u]){for(var h,f=t.call(c,c.__data__,u,l),d=rr(c,n),p=0,g=f.length;p<g;++p)(h=f[p])&&tr(h,e,n,p,f,d);a.push(f),o.push(c)}return new Gr(a,o,e,n)},filter:function(t){"function"!=typeof t&&(t=mt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new Gr(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var c,l=e[s],A=n[s],u=l.length,h=o[s]=new Array(u),f=0;f<u;++f)(c=l[f]||A[f])&&(h[f]=c);for(;s<r;++s)o[s]=e[s];return new Gr(o,this._parents,this._name,this._id)},selection:function(){return new Lr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Kr(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)if(o=s[l]){var A=rr(o,e);tr(o,t,n,l,s,{time:A.time+A.delay+A.duration,delay:0,duration:A.duration,ease:A.ease})}return new Gr(r,this._parents,t,n)},call:$r.call,nodes:$r.nodes,node:$r.node,size:$r.size,empty:$r.empty,each:$r.each,on:function(t,e){var n=this._id;return arguments.length<2?rr(this.node(),n).on.on(t):this.each(Dr(n,t,e))},attr:function(t,e){var n=xt(t),r="transform"===n?dr:yr;return this.attrTween(t,"function"==typeof e?(n.local?Cr:Er)(n,r,mr(this,"attr."+t,e)):null==e?(n.local?br:vr)(n):(n.local?_r:wr)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=xt(t);return this.tween(n,(r.local?Tr:kr)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?fr:yr;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Ot(this,t),o=(this.style.removeProperty(t),Ot(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,Or(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=Ot(this,t),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=Ot(this,t)),o===c?null:o===r&&c===i?a:(i=c,a=e(r=o,s))}}(t,r,mr(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e,s="end."+o;return function(){var c=nr(this,t),l=c.on,A=null==c.value[o]?a||(a=Or(e)):void 0;l===n&&i===A||(r=(n=l).copy()).on(s,i=A),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,a=n+"";return function(){var o=Ot(this,t);return o===a?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,Ur(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(mr(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Qr(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=rr(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?pr:gr)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Sr:Ir)(e,t)):rr(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Nr:Mr)(e,t)):rr(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Fr(e,t)):rr(this.node(),e).ease},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},c={value:function(){0==--i&&a()}};n.each((function(){var n=nr(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),n.on=e}))}))}};var Wr={time:null,delay:0,duration:250,ease:zr};function qr(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return Wr.time=jn(),Wr;return n}Ee.prototype.interrupt=function(t){return this.each((function(){ir(this,t)}))},Ee.prototype.transition=function(t){var e,n;t instanceof Gr?(e=t._id,t=t._name):(e=Kr(),(n=Wr).time=jn(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)(o=s[l])&&tr(o,t,e,l,s,n||qr(o,e));return new Gr(r,this._parents,t,e)};var Xr=[null];function Jr(t,e){var n,r,i=t.__transition;if(i)for(r in e=null==e?null:e+"",i)if((n=i[r]).state>1&&n.name===e)return new Gr([[t]],Xr,e,+r);return null}function Zr(t){return function(){return t}}function ti(t,e,n){this.target=t,this.type=e,this.selection=n}function ei(){Ae.stopImmediatePropagation()}function ni(){Ae.preventDefault(),Ae.stopImmediatePropagation()}var ri={name:"drag"},ii={name:"space"},ai={name:"handle"},oi={name:"center"};function si(t){return[+t[0],+t[1]]}function ci(t){return[si(t[0]),si(t[1])]}function li(t){return function(e){return Nn(e,Ae.touches,t)}}var Ai={name:"x",handles:["w","e"].map(yi),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},ui={name:"y",handles:["n","s"].map(yi),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},hi={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(yi),input:function(t){return null==t?null:ci(t)},output:function(t){return t}},fi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},di={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},pi={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},gi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},mi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function yi(t){return{type:t}}function vi(){return!Ae.ctrlKey&&!Ae.button}function bi(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function wi(){return navigator.maxTouchPoints||"ontouchstart"in this}function _i(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ei(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Ci(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function xi(){return ki(Ai)}function Bi(){return ki(ui)}function Ti(){return ki(hi)}function ki(t){var e,n=bi,r=vi,i=wi,a=!0,o=ht("start","brush","end"),s=6;function c(e){var n=e.property("__brush",p).selectAll(".overlay").data([yi("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",fi.overlay).merge(n).each((function(){var t=_i(this).extent;Ce(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([yi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",fi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return fi[t.type]})),e.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",d).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){var t=Ce(this),e=_i(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function A(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new u(t,e,n):r}function u(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function h(){if((!e||Ae.touches)&&r.apply(this,arguments)){var n,i,o,s,c,u,h,f,d,p,g,m=this,y=Ae.target.__data__.type,v="selection"===(a&&Ae.metaKey?y="overlay":y)?ri:a&&Ae.altKey?oi:ai,b=t===ui?null:gi[y],w=t===Ai?null:mi[y],_=_i(m),E=_.extent,C=_.selection,x=E[0][0],B=E[0][1],T=E[1][0],k=E[1][1],S=0,I=0,N=b&&w&&a&&Ae.shiftKey,M=Ae.touches?li(Ae.changedTouches[0].identifier):Mn,F=M(m),D=F,L=A(m,arguments,!0).beforestart();"overlay"===y?(C&&(d=!0),_.selection=C=[[n=t===ui?x:F[0],o=t===Ai?B:F[1]],[c=t===ui?T:n,h=t===Ai?k:o]]):(n=C[0][0],o=C[0][1],c=C[1][0],h=C[1][1]),i=n,s=o,u=c,f=h;var O=Ce(m).attr("pointer-events","none"),R=O.selectAll(".overlay").attr("cursor",fi[y]);if(Ae.touches)L.moved=P,L.ended=H;else{var U=Ce(Ae.view).on("mousemove.brush",P,!0).on("mouseup.brush",H,!0);a&&U.on("keydown.brush",G,!0).on("keyup.brush",j,!0),Te(Ae.view)}ei(),ir(m),l.call(m),L.start()}function P(){var t=M(m);!N||p||g||(Math.abs(t[0]-D[0])>Math.abs(t[1]-D[1])?g=!0:p=!0),D=t,d=!0,ni(),Q()}function Q(){var t;switch(S=D[0]-F[0],I=D[1]-F[1],v){case ii:case ri:b&&(S=Math.max(x-n,Math.min(T-c,S)),i=n+S,u=c+S),w&&(I=Math.max(B-o,Math.min(k-h,I)),s=o+I,f=h+I);break;case ai:b<0?(S=Math.max(x-n,Math.min(T-n,S)),i=n+S,u=c):b>0&&(S=Math.max(x-c,Math.min(T-c,S)),i=n,u=c+S),w<0?(I=Math.max(B-o,Math.min(k-o,I)),s=o+I,f=h):w>0&&(I=Math.max(B-h,Math.min(k-h,I)),s=o,f=h+I);break;case oi:b&&(i=Math.max(x,Math.min(T,n-S*b)),u=Math.max(x,Math.min(T,c+S*b))),w&&(s=Math.max(B,Math.min(k,o-I*w)),f=Math.max(B,Math.min(k,h+I*w)))}u<i&&(b*=-1,t=n,n=c,c=t,t=i,i=u,u=t,y in di&&R.attr("cursor",fi[y=di[y]])),f<s&&(w*=-1,t=o,o=h,h=t,t=s,s=f,f=t,y in pi&&R.attr("cursor",fi[y=pi[y]])),_.selection&&(C=_.selection),p&&(i=C[0][0],u=C[1][0]),g&&(s=C[0][1],f=C[1][1]),C[0][0]===i&&C[0][1]===s&&C[1][0]===u&&C[1][1]===f||(_.selection=[[i,s],[u,f]],l.call(m),L.brush())}function H(){if(ei(),Ae.touches){if(Ae.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else ke(Ae.view,d),U.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);O.attr("pointer-events","all"),R.attr("cursor",fi.overlay),_.selection&&(C=_.selection),Ei(C)&&(_.selection=null,l.call(m)),L.end()}function G(){switch(Ae.keyCode){case 16:N=b&&w;break;case 18:v===ai&&(b&&(c=u-S*b,n=i+S*b),w&&(h=f-I*w,o=s+I*w),v=oi,Q());break;case 32:v!==ai&&v!==oi||(b<0?c=u-S:b>0&&(n=i-S),w<0?h=f-I:w>0&&(o=s-I),v=ii,R.attr("cursor",fi.selection),Q());break;default:return}ni()}function j(){switch(Ae.keyCode){case 16:N&&(p=g=N=!1,Q());break;case 18:v===oi&&(b<0?c=u:b>0&&(n=i),w<0?h=f:w>0&&(o=s),v=ai,Q());break;case 32:v===ii&&(Ae.altKey?(b&&(c=u-S*b,n=i+S*b),w&&(h=f-I*w,o=s+I*w),v=oi):(b<0?c=u:b>0&&(n=i),w<0?h=f:w>0&&(o=s),v=ai),R.attr("cursor",fi[y]),Q());break;default:return}ni()}}function f(){A(this,arguments).moved()}function d(){A(this,arguments).ended()}function p(){var e=this.__brush||{selection:null};return e.extent=ci(n.apply(this,arguments)),e.dim=t,e}return c.move=function(e,n){e.selection?e.on("start.brush",(function(){A(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){A(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=A(e,arguments),a=r.selection,o=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=kn(a,o);function c(t){r.selection=1===t&&null===o?null:s(t),l.call(e),i.brush()}return null!==a&&null!==o?c:c(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,a=t.input("function"==typeof n?n.apply(e,r):n,i.extent),o=A(e,r).beforestart();ir(e),i.selection=null===a?null:a,l.call(e),o.start().brush().end()}))},c.clear=function(t){c.move(t,null)},u.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){ge(new ti(c,e,t.output(this.state.selection)),o.apply,o,[e,this.that,this.args])}},c.extent=function(t){return arguments.length?(n="function"==typeof t?t:Zr(ci(t)),c):n},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:Zr(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Zr(!!t),c):i},c.handleSize=function(t){return arguments.length?(s=+t,c):s},c.keyModifiers=function(t){return arguments.length?(a=!!t,c):a},c.on=function(){var t=o.on.apply(o,arguments);return t===o?c:t},c}var Si=Math.cos,Ii=Math.sin,Ni=Math.PI,Mi=Ni/2,Fi=2*Ni,Di=Math.max;function Li(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}function Oi(){var t=0,e=null,n=null,r=null;function i(i){var a,o,s,c,l,A,u=i.length,h=[],f=E(u),d=[],p=[],g=p.groups=new Array(u),m=new Array(u*u);for(a=0,l=-1;++l<u;){for(o=0,A=-1;++A<u;)o+=i[l][A];h.push(o),d.push(E(u)),a+=o}for(e&&f.sort((function(t,n){return e(h[t],h[n])})),n&&d.forEach((function(t,e){t.sort((function(t,r){return n(i[e][t],i[e][r])}))})),c=(a=Di(0,Fi-t*u)/a)?t:Fi/u,o=0,l=-1;++l<u;){for(s=o,A=-1;++A<u;){var y=f[l],v=d[y][A],b=i[y][v],w=o,_=o+=b*a;m[v*u+y]={index:y,subindex:v,startAngle:w,endAngle:_,value:b}}g[y]={index:y,startAngle:s,endAngle:o,value:h[y]},o+=c}for(l=-1;++l<u;)for(A=l-1;++A<u;){var C=m[A*u+l],x=m[l*u+A];(C.value||x.value)&&p.push(C.value<x.value?{source:x,target:C}:{source:C,target:x})}return r?p.sort(r):p}return i.padAngle=function(e){return arguments.length?(t=Di(0,e),i):t},i.sortGroups=function(t){return arguments.length?(e=t,i):e},i.sortSubgroups=function(t){return arguments.length?(n=t,i):n},i.sortChords=function(t){return arguments.length?(null==t?r=null:(r=Li(t))._=t,i):r&&r._},i}var Ri=Array.prototype.slice;function Ui(t){return function(){return t}}var Pi=Math.PI,Qi=2*Pi,Hi=1e-6,Gi=Qi-Hi;function ji(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ki(){return new ji}ji.prototype=Ki.prototype={constructor:ji,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-t,c=r-e,l=a-t,A=o-e,u=l*l+A*A;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>Hi)if(Math.abs(A*s-c*l)>Hi&&i){var h=n-a,f=r-o,d=s*s+c*c,p=h*h+f*f,g=Math.sqrt(d),m=Math.sqrt(u),y=i*Math.tan((Pi-Math.acos((d+u-p)/(2*g*m)))/2),v=y/m,b=y/g;Math.abs(v-1)>Hi&&(this._+="L"+(t+v*l)+","+(e+v*A)),this._+="A"+i+","+i+",0,0,"+ +(A*h>l*f)+","+(this._x1=t+b*s)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+o,l=e+s,A=1^a,u=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>Hi||Math.abs(this._y1-l)>Hi)&&(this._+="L"+c+","+l),n&&(u<0&&(u=u%Qi+Qi),u>Gi?this._+="A"+n+","+n+",0,1,"+A+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+A+","+(this._x1=c)+","+(this._y1=l):u>Hi&&(this._+="A"+n+","+n+",0,"+ +(u>=Pi)+","+A+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const $i=Ki;function Yi(t){return t.source}function Vi(t){return t.target}function zi(t){return t.radius}function Wi(t){return t.startAngle}function qi(t){return t.endAngle}function Xi(){var t=Yi,e=Vi,n=zi,r=Wi,i=qi,a=null;function o(){var o,s=Ri.call(arguments),c=t.apply(this,s),l=e.apply(this,s),A=+n.apply(this,(s[0]=c,s)),u=r.apply(this,s)-Mi,h=i.apply(this,s)-Mi,f=A*Si(u),d=A*Ii(u),p=+n.apply(this,(s[0]=l,s)),g=r.apply(this,s)-Mi,m=i.apply(this,s)-Mi;if(a||(a=o=$i()),a.moveTo(f,d),a.arc(0,0,A,u,h),u===g&&h===m||(a.quadraticCurveTo(0,0,p*Si(g),p*Ii(g)),a.arc(0,0,p,g,m)),a.quadraticCurveTo(0,0,f,d),a.closePath(),o)return a=null,o+""||null}return o.radius=function(t){return arguments.length?(n="function"==typeof t?t:Ui(+t),o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Ui(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Ui(+t),o):i},o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(t){return arguments.length?(e=t,o):e},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}var Ji="$";function Zi(){}function ta(t,e){var n=new Zi;if(t instanceof Zi)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i<a;)n.set(i,t[i]);else for(;++i<a;)n.set(e(r=t[i],i,t),r)}else if(t)for(var o in t)n.set(o,t[o]);return n}Zi.prototype=ta.prototype={constructor:Zi,has:function(t){return Ji+t in this},get:function(t){return this[Ji+t]},set:function(t,e){return this[Ji+t]=e,this},remove:function(t){var e=Ji+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===Ji&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===Ji&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===Ji&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===Ji&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===Ji&&++t;return t},empty:function(){for(var t in this)if(t[0]===Ji)return!1;return!0},each:function(t){for(var e in this)e[0]===Ji&&t(this[e],e.slice(1),this)}};const ea=ta;function na(){var t,e,n,r=[],i=[];function a(n,i,o,s){if(i>=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var c,l,A,u=-1,h=n.length,f=r[i++],d=ea(),p=o();++u<h;)(A=d.get(c=f(l=n[u])+""))?A.push(l):d.set(c,[l]);return d.each((function(t,e){s(p,e,a(t,i,o,s))})),p}return n={object:function(t){return a(t,0,ra,ia)},map:function(t){return a(t,0,aa,oa)},entries:function(t){return function t(n,a){if(++a>r.length)return n;var o,s=i[a-1];return null!=e&&a>=r.length?o=n.entries():(o=[],n.each((function(e,n){o.push({key:n,values:t(e,a)})}))),null!=s?o.sort((function(t,e){return s(t.key,e.key)})):o}(a(t,0,aa,oa),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function ra(){return{}}function ia(t,e,n){t[e]=n}function aa(){return ea()}function oa(t,e,n){t.set(e,n)}function sa(){}var ca=ea.prototype;function la(t,e){var n=new sa;if(t instanceof sa)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}sa.prototype=la.prototype={constructor:sa,has:ca.has,add:function(t){return this[Ji+(t+="")]=t,this},remove:ca.remove,clear:ca.clear,values:ca.keys,size:ca.size,empty:ca.empty,each:ca.each};const Aa=la;function ua(t){var e=[];for(var n in t)e.push(n);return e}function ha(t){var e=[];for(var n in t)e.push(t[n]);return e}function fa(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e}var da=Math.PI/180,pa=180/Math.PI,ga=6/29*3*(6/29);function ma(t){if(t instanceof ba)return new ba(t.l,t.a,t.b,t.opacity);if(t instanceof ka)return Sa(t);t instanceof Xe||(t=We(t));var e,n,r=Ca(t.r),i=Ca(t.g),a=Ca(t.b),o=wa((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?e=n=o:(e=wa((.4360747*r+.3850649*i+.1430804*a)/.96422),n=wa((.0139322*r+.0971045*i+.7141733*a)/.82521)),new ba(116*o-16,500*(e-o),200*(o-n),t.opacity)}function ya(t,e){return new ba(t,0,0,null==e?1:e)}function va(t,e,n,r){return 1===arguments.length?ma(t):new ba(t,e,n,null==r?1:r)}function ba(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function wa(t){return t>.008856451679035631?Math.pow(t,1/3):t/ga+4/29}function _a(t){return t>6/29?t*t*t:ga*(t-4/29)}function Ea(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ca(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xa(t){if(t instanceof ka)return new ka(t.h,t.c,t.l,t.opacity);if(t instanceof ba||(t=ma(t)),0===t.a&&0===t.b)return new ka(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*pa;return new ka(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Ba(t,e,n,r){return 1===arguments.length?xa(t):new ka(n,e,t,null==r?1:r)}function Ta(t,e,n,r){return 1===arguments.length?xa(t):new ka(t,e,n,null==r?1:r)}function ka(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Sa(t){if(isNaN(t.h))return new ba(t.l,0,0,t.opacity);var e=t.h*da;return new ba(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Se(ba,va,Ie(Ne,{brighter:function(t){return new ba(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new ba(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new Xe(Ea(3.1338561*(e=.96422*_a(e))-1.6168667*(t=1*_a(t))-.4906146*(n=.82521*_a(n))),Ea(-.9787684*e+1.9161415*t+.033454*n),Ea(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Se(ka,Ta,Ie(Ne,{brighter:function(t){return new ka(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new ka(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Sa(this).rgb()}}));var Ia=1.78277,Na=-.29227,Ma=-.90649,Fa=1.97294,Da=Fa*Ma,La=Fa*Ia,Oa=Ia*Na- -.14861*Ma;function Ra(t){if(t instanceof Pa)return new Pa(t.h,t.s,t.l,t.opacity);t instanceof Xe||(t=We(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(Oa*r+Da*e-La*n)/(Oa+Da-La),a=r-i,o=(Fa*(n-i)-Na*a)/Ma,s=Math.sqrt(o*o+a*a)/(Fa*i*(1-i)),c=s?Math.atan2(o,a)*pa-120:NaN;return new Pa(c<0?c+360:c,s,i,t.opacity)}function Ua(t,e,n,r){return 1===arguments.length?Ra(t):new Pa(t,e,n,null==r?1:r)}function Pa(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Se(Pa,Ua,Ie(Ne,{brighter:function(t){return t=null==t?Me:Math.pow(Me,t),new Pa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Pa(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*da,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new Xe(255*(e+n*(-.14861*r+Ia*i)),255*(e+n*(Na*r+Ma*i)),255*(e+n*(Fa*r)),this.opacity)}}));var Qa=Array.prototype.slice;function Ha(t,e){return t-e}function Ga(t){return function(){return t}}function ja(t,e){for(var n,r=-1,i=e.length;++r<i;)if(n=Ka(t,e[r]))return n;return 0}function Ka(t,e){for(var n=e[0],r=e[1],i=-1,a=0,o=t.length,s=o-1;a<o;s=a++){var c=t[a],l=c[0],A=c[1],u=t[s],h=u[0],f=u[1];if($a(c,u,e))return 0;A>r!=f>r&&n<(h-l)*(r-A)/(f-A)+l&&(i=-i)}return i}function $a(t,e,n){var r,i,a,o;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],a=n[r],o=e[r],i<=a&&a<=o||o<=a&&a<=i)}function Ya(){}var Va=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function za(){var t=1,e=1,n=I,r=s;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(Ha);else{var r=m(t),i=r[0],o=r[1];e=S(i,o,e),e=E(Math.floor(i/e)*e,Math.floor(o/e)*e,e)}return e.map((function(e){return a(t,e)}))}function a(n,i){var a=[],s=[];return function(n,r,i){var a,s,c,l,A,u,h=new Array,f=new Array;for(a=s=-1,l=n[0]>=r,Va[l<<1].forEach(d);++a<t-1;)c=l,l=n[a+1]>=r,Va[c|l<<1].forEach(d);for(Va[l<<0].forEach(d);++s<e-1;){for(a=-1,l=n[s*t+t]>=r,A=n[s*t]>=r,Va[l<<1|A<<2].forEach(d);++a<t-1;)c=l,l=n[s*t+t+a+1]>=r,u=A,A=n[s*t+a+1]>=r,Va[c|l<<1|A<<2|u<<3].forEach(d);Va[l|A<<3].forEach(d)}for(a=-1,A=n[s*t]>=r,Va[A<<2].forEach(d);++a<t-1;)u=A,A=n[s*t+a+1]>=r,Va[A<<2|u<<3].forEach(d);function d(t){var e,n,r=[t[0][0]+a,t[0][1]+s],c=[t[1][0]+a,t[1][1]+s],l=o(r),A=o(c);(e=f[l])?(n=h[A])?(delete f[e.end],delete h[n.start],e===n?(e.ring.push(c),i(e.ring)):h[e.start]=f[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete f[e.end],e.ring.push(c),f[e.end=A]=e):(e=h[A])?(n=f[l])?(delete h[e.start],delete f[n.end],e===n?(e.ring.push(c),i(e.ring)):h[n.start]=f[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete h[e.start],e.ring.unshift(r),h[e.start=l]=e):h[l]=f[A]={start:l,end:A,ring:[r,c]}}Va[A<<3].forEach(d)}(n,i,(function(t){r(t,n,i),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e<n;)r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return r}(t)>0?a.push([t]):s.push(t)})),s.forEach((function(t){for(var e,n=0,r=a.length;n<r;++n)if(-1!==ja((e=a[n])[0],t))return void e.push(t)})),{type:"MultiPolygon",value:i,coordinates:a}}function o(e){return 2*e[0]+e[1]*(t+1)*4}function s(n,r,i){n.forEach((function(n){var a,o=n[0],s=n[1],c=0|o,l=0|s,A=r[l*t+c];o>0&&o<t&&c===o&&(a=r[l*t+c-1],n[0]=o+(i-a)/(A-a)-.5),s>0&&s<e&&l===s&&(a=r[(l-1)*t+c],n[1]=s+(i-a)/(A-a)-.5)}))}return i.contour=a,i.size=function(n){if(!arguments.length)return[t,e];var r=Math.ceil(n[0]),a=Math.ceil(n[1]);if(!(r>0&&a>0))throw new Error("invalid size");return t=r,e=a,i},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Ga(Qa.call(t)):Ga(t),i):n},i.smooth=function(t){return arguments.length?(r=t?s:Ya,i):r===s},i}function Wa(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o<i;++o)for(var s=0,c=0;s<r+n;++s)s<r&&(c+=t.data[s+o*r]),s>=n&&(s>=a&&(c-=t.data[s-a+o*r]),e.data[s-n+o*r]=c/Math.min(s+1,r-1+a-s,a))}function qa(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o<r;++o)for(var s=0,c=0;s<i+n;++s)s<i&&(c+=t.data[o+s*r]),s>=n&&(s>=a&&(c-=t.data[o+(s-a)*r]),e.data[o+(s-n)*r]=c/Math.min(s+1,i-1+a-s,a))}function Xa(t){return t[0]}function Ja(t){return t[1]}function Za(){return 1}function to(){var t=Xa,e=Ja,n=Za,r=960,i=500,a=20,o=2,s=3*a,c=r+2*s>>o,l=i+2*s>>o,A=Ga(20);function u(r){var i=new Float32Array(c*l),u=new Float32Array(c*l);r.forEach((function(r,a,A){var u=+t(r,a,A)+s>>o,h=+e(r,a,A)+s>>o,f=+n(r,a,A);u>=0&&u<c&&h>=0&&h<l&&(i[u+h*c]+=f)})),Wa({width:c,height:l,data:i},{width:c,height:l,data:u},a>>o),qa({width:c,height:l,data:u},{width:c,height:l,data:i},a>>o),Wa({width:c,height:l,data:i},{width:c,height:l,data:u},a>>o),qa({width:c,height:l,data:u},{width:c,height:l,data:i},a>>o),Wa({width:c,height:l,data:i},{width:c,height:l,data:u},a>>o),qa({width:c,height:l,data:u},{width:c,height:l,data:i},a>>o);var f=A(i);if(!Array.isArray(f)){var d=L(i);f=S(0,d,f),(f=E(0,Math.floor(d/f)*f,f)).shift()}return za().thresholds(f).size([c,l])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*o),t.coordinates.forEach(f),t}function f(t){t.forEach(d)}function d(t){t.forEach(p)}function p(t){t[0]=t[0]*Math.pow(2,o)-s,t[1]=t[1]*Math.pow(2,o)-s}function g(){return c=r+2*(s=3*a)>>o,l=i+2*s>>o,u}return u.x=function(e){return arguments.length?(t="function"==typeof e?e:Ga(+e),u):t},u.y=function(t){return arguments.length?(e="function"==typeof t?t:Ga(+t),u):e},u.weight=function(t){return arguments.length?(n="function"==typeof t?t:Ga(+t),u):n},u.size=function(t){if(!arguments.length)return[r,i];var e=Math.ceil(t[0]),n=Math.ceil(t[1]);if(!(e>=0||e>=0))throw new Error("invalid size");return r=e,i=n,g()},u.cellSize=function(t){if(!arguments.length)return 1<<o;if(!((t=+t)>=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(t)/Math.LN2),g()},u.thresholds=function(t){return arguments.length?(A="function"==typeof t?t:Array.isArray(t)?Ga(Qa.call(t)):Ga(t),u):A},u.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return a=Math.round((Math.sqrt(4*t*t+1)-1)/2),g()},u}function eo(t){return function(){return t}}function no(t,e,n,r,i,a,o,s,c,l){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=a,this.y=o,this.dx=s,this.dy=c,this._=l}function ro(){return!Ae.ctrlKey&&!Ae.button}function io(){return this.parentNode}function ao(t){return null==t?{x:Ae.x,y:Ae.y}:t}function oo(){return navigator.maxTouchPoints||"ontouchstart"in this}function so(){var t,e,n,r,i=ro,a=io,o=ao,s=oo,c={},l=ht("start","drag","end"),A=0,u=0;function h(t){t.on("mousedown.drag",f).filter(s).on("touchstart.drag",g).on("touchmove.drag",m).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){if(!r&&i.apply(this,arguments)){var o=v("mouse",a.apply(this,arguments),Mn,this,arguments);o&&(Ce(Ae.view).on("mousemove.drag",d,!0).on("mouseup.drag",p,!0),Te(Ae.view),xe(),n=!1,t=Ae.clientX,e=Ae.clientY,o("start"))}}function d(){if(Be(),!n){var r=Ae.clientX-t,i=Ae.clientY-e;n=r*r+i*i>u}c.mouse("drag")}function p(){Ce(Ae.view).on("mousemove.drag mouseup.drag",null),ke(Ae.view,n),Be(),c.mouse("end")}function g(){if(i.apply(this,arguments)){var t,e,n=Ae.changedTouches,r=a.apply(this,arguments),o=n.length;for(t=0;t<o;++t)(e=v(n[t].identifier,r,Nn,this,arguments))&&(xe(),e("start"))}}function m(){var t,e,n=Ae.changedTouches,r=n.length;for(t=0;t<r;++t)(e=c[n[t].identifier])&&(Be(),e("drag"))}function y(){var t,e,n=Ae.changedTouches,i=n.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<i;++t)(e=c[n[t].identifier])&&(xe(),e("end"))}function v(t,e,n,r,i){var a,s,u,f=n(e,t),d=l.copy();if(ge(new no(h,"beforestart",a,t,A,f[0],f[1],0,0,d),(function(){return null!=(Ae.subject=a=o.apply(r,i))&&(s=a.x-f[0]||0,u=a.y-f[1]||0,!0)})))return function o(l){var p,g=f;switch(l){case"start":c[t]=o,p=A++;break;case"end":delete c[t],--A;case"drag":f=n(e,t),p=A}ge(new no(h,l,a,t,p,f[0]+s,f[1]+u,f[0]-g[0],f[1]-g[1],d),d.apply,d,[l,r,i])}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:eo(!!t),h):i},h.container=function(t){return arguments.length?(a="function"==typeof t?t:eo(t),h):a},h.subject=function(t){return arguments.length?(o="function"==typeof t?t:eo(t),h):o},h.touchable=function(t){return arguments.length?(s="function"==typeof t?t:eo(!!t),h):s},h.on=function(){var t=l.on.apply(l,arguments);return t===l?h:t},h.clickDistance=function(t){return arguments.length?(u=(t=+t)*t,h):Math.sqrt(u)},h}no.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var co={},lo={};function Ao(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function uo(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function ho(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function fo(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,s=0,c=a<=0,l=!1;function A(){if(c)return lo;if(l)return l=!1,co;var e,r,i=o;if(34===t.charCodeAt(i)){for(;o++<a&&34!==t.charCodeAt(o)||34===t.charCodeAt(++o););return(e=o)>=a?c=!0:10===(r=t.charCodeAt(o++))?l=!0:13===r&&(l=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o<a;){if(10===(r=t.charCodeAt(e=o++)))l=!0;else if(13===r)l=!0,10===t.charCodeAt(o)&&++o;else if(r!==n)continue;return t.slice(i,e)}return c=!0,t.slice(i,a)}for(10===t.charCodeAt(a-1)&&--a,13===t.charCodeAt(a-1)&&--a;(r=A())!==lo;){for(var u=[];r!==co&&r!==lo;)u.push(r),r=A();e&&null==(u=e(u,s++))||i.push(u)}return i}function i(e,n){return e.map((function(e){return n.map((function(t){return o(e[t])})).join(t)}))}function a(e){return e.map(o).join(t)}function o(t){return null==t?"":t instanceof Date?function(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+ho(-t,6):t>9999?"+"+ho(t,6):ho(t,4)}(t.getUTCFullYear())+"-"+ho(t.getUTCMonth()+1,2)+"-"+ho(t.getUTCDate(),2)+(i?"T"+ho(e,2)+":"+ho(n,2)+":"+ho(r,2)+"."+ho(i,3)+"Z":r?"T"+ho(e,2)+":"+ho(n,2)+":"+ho(r,2)+"Z":n||e?"T"+ho(e,2)+":"+ho(n,2)+"Z":"")}(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,a=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=Ao(t);return function(r,i){return e(n(r),i,t)}}(t,e):Ao(t)}));return a.columns=i||[],a},parseRows:r,format:function(e,n){return null==n&&(n=uo(e)),[n.map(o).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=uo(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:o}}var po=fo(","),go=po.parse,mo=po.parseRows,yo=po.format,vo=po.formatBody,bo=po.formatRows,wo=po.formatRow,_o=po.formatValue,Eo=fo("\t"),Co=Eo.parse,xo=Eo.parseRows,Bo=Eo.format,To=Eo.formatBody,ko=Eo.formatRows,So=Eo.formatRow,Io=Eo.formatValue;function No(t){for(var e in t){var n,r,i=t[e].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Mo&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}var Mo=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Fo(t){return+t}function Do(t){return t*t}function Lo(t){return t*(2-t)}function Oo(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var Ro=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),Uo=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),Po=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Qo=Math.PI,Ho=Qo/2;function Go(t){return 1==+t?1:1-Math.cos(t*Ho)}function jo(t){return Math.sin(t*Ho)}function Ko(t){return(1-Math.cos(Qo*t))/2}function $o(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Yo(t){return $o(1-+t)}function Vo(t){return 1-$o(t)}function zo(t){return((t*=2)<=1?$o(1-t):2-$o(t-1))/2}function Wo(t){return 1-Math.sqrt(1-t*t)}function qo(t){return Math.sqrt(1- --t*t)}function Xo(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Jo=7.5625;function Zo(t){return 1-ts(1-t)}function ts(t){return(t=+t)<.36363636363636365?Jo*t*t:t<.7272727272727273?Jo*(t-=.5454545454545454)*t+.75:t<.9090909090909091?Jo*(t-=.8181818181818182)*t+.9375:Jo*(t-=.9545454545454546)*t+.984375}function es(t){return((t*=2)<=1?1-ts(1-t):ts(t-1)+1)/2}var ns=1.70158,rs=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(ns),is=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(ns),as=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(ns),os=2*Math.PI,ss=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=os);function i(t){return e*$o(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*os)},i.period=function(n){return t(e,n)},i}(1,.3),cs=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=os);function i(t){return 1-e*$o(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*os)},i.period=function(n){return t(e,n)},i}(1,.3),ls=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=os);function i(t){return((t=2*t-1)<0?e*$o(-t)*Math.sin((r-t)/n):2-e*$o(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*os)},i.period=function(n){return t(e,n)},i}(1,.3);function As(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function us(t,e){return fetch(t,e).then(As)}function hs(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function fs(t,e){return fetch(t,e).then(hs)}function ds(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function ps(t,e){return fetch(t,e).then(ds)}function gs(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),ps(e,n).then((function(e){return t(e,r)}))}}function ms(t,e,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=fo(t);return ps(e,n).then((function(t){return i.parse(t,r)}))}var ys=gs(go),vs=gs(Co);function bs(t,e){return new Promise((function(n,r){var i=new Image;for(var a in e)i[a]=e[a];i.onerror=r,i.onload=function(){n(i)},i.src=t}))}function ws(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function _s(t,e){return fetch(t,e).then(ws)}function Es(t){return function(e,n){return ps(e,n).then((function(e){return(new DOMParser).parseFromString(e,t)}))}}const Cs=Es("application/xml");var xs=Es("text/html"),Bs=Es("image/svg+xml");function Ts(t,e){var n;function r(){var r,i,a=n.length,o=0,s=0;for(r=0;r<a;++r)o+=(i=n[r]).x,s+=i.y;for(o=o/a-t,s=s/a-e,r=0;r<a;++r)(i=n[r]).x-=o,i.y-=s}return null==t&&(t=0),null==e&&(e=0),r.initialize=function(t){n=t},r.x=function(e){return arguments.length?(t=+e,r):t},r.y=function(t){return arguments.length?(e=+t,r):e},r}function ks(t){return function(){return t}}function Ss(){return 1e-6*(Math.random()-.5)}function Is(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a,o,s,c,l,A,u,h,f=t._root,d={data:r},p=t._x0,g=t._y0,m=t._x1,y=t._y1;if(!f)return t._root=d,t;for(;f.length;)if((l=e>=(a=(p+m)/2))?p=a:m=a,(A=n>=(o=(g+y)/2))?g=o:y=o,i=f,!(f=f[u=A<<1|l]))return i[u]=d,t;if(s=+t._x.call(null,f.data),c=+t._y.call(null,f.data),e===s&&n===c)return d.next=f,i?i[u]=d:t._root=d,t;do{i=i?i[u]=new Array(4):t._root=new Array(4),(l=e>=(a=(p+m)/2))?p=a:m=a,(A=n>=(o=(g+y)/2))?g=o:y=o}while((u=A<<1|l)==(h=(c>=o)<<1|s>=a));return i[h]=f,i[u]=d,t}function Ns(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Ms(t){return t[0]}function Fs(t){return t[1]}function Ds(t,e,n){var r=new Ls(null==e?Ms:e,null==n?Fs:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Ls(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function Os(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Rs=Ds.prototype=Ls.prototype;function Us(t){return t.x+t.vx}function Ps(t){return t.y+t.vy}function Qs(t){var e,n,r=1,i=1;function a(){for(var t,a,s,c,l,A,u,h=e.length,f=0;f<i;++f)for(a=Ds(e,Us,Ps).visitAfter(o),t=0;t<h;++t)s=e[t],A=n[s.index],u=A*A,c=s.x+s.vx,l=s.y+s.vy,a.visit(d);function d(t,e,n,i,a){var o=t.data,h=t.r,f=A+h;if(!o)return e>c+f||i<c-f||n>l+f||a<l-f;if(o.index>s.index){var d=c-o.x-o.vx,p=l-o.y-o.vy,g=d*d+p*p;g<f*f&&(0===d&&(g+=(d=Ss())*d),0===p&&(g+=(p=Ss())*p),g=(f-(g=Math.sqrt(g)))/g*r,s.vx+=(d*=g)*(f=(h*=h)/(u+h)),s.vy+=(p*=g)*f,o.vx-=d*(f=1-f),o.vy-=p*f)}}}function o(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function s(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;r<a;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!=typeof t&&(t=ks(null==t?1:+t)),a.initialize=function(t){e=t,s()},a.iterations=function(t){return arguments.length?(i=+t,a):i},a.strength=function(t){return arguments.length?(r=+t,a):r},a.radius=function(e){return arguments.length?(t="function"==typeof e?e:ks(+e),s(),a):t},a}function Hs(t){return t.index}function Gs(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function js(t){var e,n,r,i,a,o=Hs,s=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},c=ks(30),l=1;function A(r){for(var i=0,o=t.length;i<l;++i)for(var s,c,A,u,h,f,d,p=0;p<o;++p)c=(s=t[p]).source,u=(A=s.target).x+A.vx-c.x-c.vx||Ss(),h=A.y+A.vy-c.y-c.vy||Ss(),u*=f=((f=Math.sqrt(u*u+h*h))-n[p])/f*r*e[p],h*=f,A.vx-=u*(d=a[p]),A.vy-=h*d,c.vx+=u*(d=1-d),c.vy+=h*d}function u(){if(r){var s,c,l=r.length,A=t.length,u=ea(r,o);for(s=0,i=new Array(l);s<A;++s)(c=t[s]).index=s,"object"!=typeof c.source&&(c.source=Gs(u,c.source)),"object"!=typeof c.target&&(c.target=Gs(u,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(s=0,a=new Array(A);s<A;++s)c=t[s],a[s]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);e=new Array(A),h(),n=new Array(A),f()}}function h(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+s(t[n],n,t)}function f(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+c(t[e],e,t)}return null==t&&(t=[]),A.initialize=function(t){r=t,u()},A.links=function(e){return arguments.length?(t=e,u(),A):t},A.id=function(t){return arguments.length?(o=t,A):o},A.iterations=function(t){return arguments.length?(l=+t,A):l},A.strength=function(t){return arguments.length?(s="function"==typeof t?t:ks(+t),h(),A):s},A.distance=function(t){return arguments.length?(c="function"==typeof t?t:ks(+t),f(),A):c},A}function Ks(t){return t.x}function $s(t){return t.y}Rs.copy=function(){var t,e,n=new Ls(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Os(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=Os(e));return n},Rs.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return Is(this.cover(e,n),e,n,t)},Rs.addAll=function(t){var e,n,r,i,a=t.length,o=new Array(a),s=new Array(a),c=1/0,l=1/0,A=-1/0,u=-1/0;for(n=0;n<a;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(o[n]=r,s[n]=i,r<c&&(c=r),r>A&&(A=r),i<l&&(l=i),i>u&&(u=i));if(c>A||l>u)return this;for(this.cover(c,l).cover(A,u),n=0;n<a;++n)Is(this,o[n],s[n],t[n]);return this},Rs.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,a=(r=Math.floor(e))+1;else{for(var o,s,c=i-n,l=this._root;n>t||t>=i||r>e||e>=a;)switch(s=(e<r)<<1|t<n,(o=new Array(4))[s]=l,l=o,c*=2,s){case 0:i=n+c,a=r+c;break;case 1:n=i-c,a=r+c;break;case 2:i=n+c,r=a-c;break;case 3:n=i-c,r=a-c}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this},Rs.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Rs.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Rs.find=function(t,e,n){var r,i,a,o,s,c,l,A=this._x0,u=this._y0,h=this._x1,f=this._y1,d=[],p=this._root;for(p&&d.push(new Ns(p,A,u,h,f)),null==n?n=1/0:(A=t-n,u=e-n,h=t+n,f=e+n,n*=n);c=d.pop();)if(!(!(p=c.node)||(i=c.x0)>h||(a=c.y0)>f||(o=c.x1)<A||(s=c.y1)<u))if(p.length){var g=(i+o)/2,m=(a+s)/2;d.push(new Ns(p[3],g,m,o,s),new Ns(p[2],i,m,g,s),new Ns(p[1],g,a,o,m),new Ns(p[0],i,a,g,m)),(l=(e>=m)<<1|t>=g)&&(c=d[d.length-1],d[d.length-1]=d[d.length-1-l],d[d.length-1-l]=c)}else{var y=t-+this._x.call(null,p.data),v=e-+this._y.call(null,p.data),b=y*y+v*v;if(b<n){var w=Math.sqrt(n=b);A=t-w,u=e-w,h=t+w,f=e+w,r=p.data}}return r},Rs.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,n,r,i,a,o,s,c,l,A,u,h,f=this._root,d=this._x0,p=this._y0,g=this._x1,m=this._y1;if(!f)return this;if(f.length)for(;;){if((l=a>=(s=(d+g)/2))?d=s:g=s,(A=o>=(c=(p+m)/2))?p=c:m=c,e=f,!(f=f[u=A<<1|l]))return this;if(!f.length)break;(e[u+1&3]||e[u+2&3]||e[u+3&3])&&(n=e,h=u)}for(;f.data!==t;)if(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):e?(i?e[u]=i:delete e[u],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[h]=f:this._root=f),this):(this._root=i,this)},Rs.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},Rs.root=function(){return this._root},Rs.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},Rs.visit=function(t){var e,n,r,i,a,o,s=[],c=this._root;for(c&&s.push(new Ns(c,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(c=e.node,r=e.x0,i=e.y0,a=e.x1,o=e.y1)&&c.length){var l=(r+a)/2,A=(i+o)/2;(n=c[3])&&s.push(new Ns(n,l,A,a,o)),(n=c[2])&&s.push(new Ns(n,r,A,l,o)),(n=c[1])&&s.push(new Ns(n,l,i,a,A)),(n=c[0])&&s.push(new Ns(n,r,i,l,A))}return this},Rs.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new Ns(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var a,o=e.x0,s=e.y0,c=e.x1,l=e.y1,A=(o+c)/2,u=(s+l)/2;(a=i[0])&&n.push(new Ns(a,o,s,A,u)),(a=i[1])&&n.push(new Ns(a,A,s,c,u)),(a=i[2])&&n.push(new Ns(a,o,u,A,l)),(a=i[3])&&n.push(new Ns(a,A,u,c,l))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Rs.x=function(t){return arguments.length?(this._x=t,this):this._x},Rs.y=function(t){return arguments.length?(this._y=t,this):this._y};var Ys=Math.PI*(3-Math.sqrt(5));function Vs(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=ea(),c=Yn(A),l=ht("tick","end");function A(){u(),l.call("tick",e),n<r&&(c.stop(),l.call("end",e))}function u(r){var c,l,A=t.length;void 0===r&&(r=1);for(var u=0;u<r;++u)for(n+=(a-n)*i,s.each((function(t){t(n)})),c=0;c<A;++c)null==(l=t[c]).fx?l.x+=l.vx*=o:(l.x=l.fx,l.vx=0),null==l.fy?l.y+=l.vy*=o:(l.y=l.fy,l.vy=0);return e}function h(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(n),a=n*Ys;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function f(e){return e.initialize&&e.initialize(t),e}return null==t&&(t=[]),h(),e={tick:u,restart:function(){return c.restart(A),e},stop:function(){return c.stop(),e},nodes:function(n){return arguments.length?(t=n,h(),s.each(f),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(a=+t,e):a},velocityDecay:function(t){return arguments.length?(o=1-t,e):1-o},force:function(t,n){return arguments.length>1?(null==n?s.remove(t):s.set(t,f(n)),e):s.get(t)},find:function(e,n,r){var i,a,o,s,c,l=0,A=t.length;for(null==r?r=1/0:r*=r,l=0;l<A;++l)(o=(i=e-(s=t[l]).x)*i+(a=n-s.y)*a)<r&&(c=s,r=o);return c},on:function(t,n){return arguments.length>1?(l.on(t,n),e):l.on(t)}}}function zs(){var t,e,n,r,i=ks(-30),a=1,o=1/0,s=.81;function c(r){var i,a=t.length,o=Ds(t,Ks,$s).visitAfter(A);for(n=r,i=0;i<a;++i)e=t[i],o.visit(u)}function l(){if(t){var e,n,a=t.length;for(r=new Array(a),e=0;e<a;++e)n=t[e],r[n.index]=+i(n,e,t)}}function A(t){var e,n,i,a,o,s=0,c=0;if(t.length){for(i=a=o=0;o<4;++o)(e=t[o])&&(n=Math.abs(e.value))&&(s+=e.value,c+=n,i+=n*e.x,a+=n*e.y);t.x=i/c,t.y=a/c}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=r[e.data.index]}while(e=e.next)}t.value=s}function u(t,i,c,l){if(!t.value)return!0;var A=t.x-e.x,u=t.y-e.y,h=l-i,f=A*A+u*u;if(h*h/s<f)return f<o&&(0===A&&(f+=(A=Ss())*A),0===u&&(f+=(u=Ss())*u),f<a&&(f=Math.sqrt(a*f)),e.vx+=A*t.value*n/f,e.vy+=u*t.value*n/f),!0;if(!(t.length||f>=o)){(t.data!==e||t.next)&&(0===A&&(f+=(A=Ss())*A),0===u&&(f+=(u=Ss())*u),f<a&&(f=Math.sqrt(a*f)));do{t.data!==e&&(h=r[t.data.index]*n/f,e.vx+=A*h,e.vy+=u*h)}while(t=t.next)}}return c.initialize=function(e){t=e,l()},c.strength=function(t){return arguments.length?(i="function"==typeof t?t:ks(+t),l(),c):i},c.distanceMin=function(t){return arguments.length?(a=t*t,c):Math.sqrt(a)},c.distanceMax=function(t){return arguments.length?(o=t*t,c):Math.sqrt(o)},c.theta=function(t){return arguments.length?(s=t*t,c):Math.sqrt(s)},c}function Ws(t,e,n){var r,i,a,o=ks(.1);function s(t){for(var o=0,s=r.length;o<s;++o){var c=r[o],l=c.x-e||1e-6,A=c.y-n||1e-6,u=Math.sqrt(l*l+A*A),h=(a[o]-u)*i[o]*t/u;c.vx+=l*h,c.vy+=A*h}}function c(){if(r){var e,n=r.length;for(i=new Array(n),a=new Array(n),e=0;e<n;++e)a[e]=+t(r[e],e,r),i[e]=isNaN(a[e])?0:+o(r[e],e,r)}}return"function"!=typeof t&&(t=ks(+t)),null==e&&(e=0),null==n&&(n=0),s.initialize=function(t){r=t,c()},s.strength=function(t){return arguments.length?(o="function"==typeof t?t:ks(+t),c(),s):o},s.radius=function(e){return arguments.length?(t="function"==typeof e?e:ks(+e),c(),s):t},s.x=function(t){return arguments.length?(e=+t,s):e},s.y=function(t){return arguments.length?(n=+t,s):n},s}function qs(t){var e,n,r,i=ks(.1);function a(t){for(var i,a=0,o=e.length;a<o;++a)(i=e[a]).vx+=(r[a]-i.x)*n[a]*t}function o(){if(e){var a,o=e.length;for(n=new Array(o),r=new Array(o),a=0;a<o;++a)n[a]=isNaN(r[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return"function"!=typeof t&&(t=ks(null==t?0:+t)),a.initialize=function(t){e=t,o()},a.strength=function(t){return arguments.length?(i="function"==typeof t?t:ks(+t),o(),a):i},a.x=function(e){return arguments.length?(t="function"==typeof e?e:ks(+e),o(),a):t},a}function Xs(t){var e,n,r,i=ks(.1);function a(t){for(var i,a=0,o=e.length;a<o;++a)(i=e[a]).vy+=(r[a]-i.y)*n[a]*t}function o(){if(e){var a,o=e.length;for(n=new Array(o),r=new Array(o),a=0;a<o;++a)n[a]=isNaN(r[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return"function"!=typeof t&&(t=ks(null==t?0:+t)),a.initialize=function(t){e=t,o()},a.strength=function(t){return arguments.length?(i="function"==typeof t?t:ks(+t),o(),a):i},a.y=function(e){return arguments.length?(t="function"==typeof e?e:ks(+e),o(),a):t},a}function Js(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Zs(t){return(t=Js(Math.abs(t)))?t[1]:NaN}var tc,ec=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nc(t){if(!(e=ec.exec(t)))throw new Error("invalid format: "+t);var e;return new rc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function rc(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function ic(t,e){var n=Js(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}nc.prototype=rc.prototype,rc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ac={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return ic(100*t,e)},r:ic,s:function(t,e){var n=Js(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(tc=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Js(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function oc(t){return t}var sc,cc,lc,Ac=Array.prototype.map,uc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hc(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?oc:(e=Ac.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?oc:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Ac.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",A=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=nc(t)).fill,n=t.align,u=t.sign,h=t.symbol,f=t.zero,d=t.width,p=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(p=!0,y="g"):ac[y]||(void 0===g&&(g=12),m=!0,y="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var v="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",b="$"===h?a:/[%p]/.test(y)?c:"",w=ac[y],_=/[defgprs%]/.test(y);function E(t){var i,a,c,h=v,E=b;if("c"===y)E=w(t)+E,t="";else{var C=(t=+t)<0||1/t<0;if(t=isNaN(t)?A:w(Math.abs(t),g),m&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),C&&0==+t&&"+"!==u&&(C=!1),h=(C?"("===u?u:l:"-"===u||"("===u?"":u)+h,E=("s"===y?uc[8+tc/3]:"")+E+(C&&"("===u?")":""),_)for(i=-1,a=t.length;++i<a;)if(48>(c=t.charCodeAt(i))||c>57){E=(46===c?o+t.slice(i+1):t.slice(i))+E,t=t.slice(0,i);break}}p&&!f&&(t=r(t,1/0));var x=h.length+t.length+E.length,B=x<d?new Array(d-x+1).join(e):"";switch(p&&f&&(t=r(B+t,B.length?d-E.length:1/0),B=""),n){case"<":t=h+t+E+B;break;case"=":t=h+B+t+E;break;case"^":t=B.slice(0,x=B.length>>1)+h+t+E+B.slice(x);break;default:t=B+h+t+E}return s(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),E.toString=function(){return t+""},E}return{format:u,formatPrefix:function(t,e){var n=u(((t=nc(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Zs(e)/3))),i=Math.pow(10,-r),a=uc[8+r/3];return function(t){return n(i*t)+a}}}}function fc(t){return sc=hc(t),cc=sc.format,lc=sc.formatPrefix,sc}function dc(t){return Math.max(0,-Zs(Math.abs(t)))}function pc(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Zs(e)/3)))-Zs(Math.abs(t)))}function gc(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Zs(e)-Zs(t))+1}function mc(){return new yc}function yc(){this.reset()}fc({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),yc.prototype={constructor:yc,reset:function(){this.s=this.t=0},add:function(t){bc(vc,t,this.t),bc(this,vc.s,this.s),this.s?this.t+=vc.t:this.s=vc.t},valueOf:function(){return this.s}};var vc=new yc;function bc(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var wc=1e-6,_c=1e-12,Ec=Math.PI,Cc=Ec/2,xc=Ec/4,Bc=2*Ec,Tc=180/Ec,kc=Ec/180,Sc=Math.abs,Ic=Math.atan,Nc=Math.atan2,Mc=Math.cos,Fc=Math.ceil,Dc=Math.exp,Lc=Math.log,Oc=Math.pow,Rc=Math.sin,Uc=Math.sign||function(t){return t>0?1:t<0?-1:0},Pc=Math.sqrt,Qc=Math.tan;function Hc(t){return t>1?0:t<-1?Ec:Math.acos(t)}function Gc(t){return t>1?Cc:t<-1?-Cc:Math.asin(t)}function jc(t){return(t=Rc(t/2))*t}function Kc(){}function $c(t,e){t&&Vc.hasOwnProperty(t.type)&&Vc[t.type](t,e)}var Yc={Feature:function(t,e){$c(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)$c(n[r].geometry,e)}},Vc={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){zc(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)zc(n[r],e,0)},Polygon:function(t,e){Wc(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)Wc(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)$c(n[r],e)}};function zc(t,e,n){var r,i=-1,a=t.length-n;for(e.lineStart();++i<a;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function Wc(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)zc(t[n],e,1);e.polygonEnd()}function qc(t,e){t&&Yc.hasOwnProperty(t.type)?Yc[t.type](t,e):$c(t,e)}var Xc,Jc,Zc,tl,el,nl=mc(),rl=mc(),il={point:Kc,lineStart:Kc,lineEnd:Kc,polygonStart:function(){nl.reset(),il.lineStart=al,il.lineEnd=ol},polygonEnd:function(){var t=+nl;rl.add(t<0?Bc+t:t),this.lineStart=this.lineEnd=this.point=Kc},sphere:function(){rl.add(Bc)}};function al(){il.point=sl}function ol(){cl(Xc,Jc)}function sl(t,e){il.point=cl,Xc=t,Jc=e,Zc=t*=kc,tl=Mc(e=(e*=kc)/2+xc),el=Rc(e)}function cl(t,e){var n=(t*=kc)-Zc,r=n>=0?1:-1,i=r*n,a=Mc(e=(e*=kc)/2+xc),o=Rc(e),s=el*o,c=tl*a+s*Mc(i),l=s*r*Rc(i);nl.add(Nc(l,c)),Zc=t,tl=a,el=o}function ll(t){return rl.reset(),qc(t,il),2*rl}function Al(t){return[Nc(t[1],t[0]),Gc(t[2])]}function ul(t){var e=t[0],n=t[1],r=Mc(n);return[r*Mc(e),r*Rc(e),Rc(n)]}function hl(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function fl(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function dl(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function pl(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function gl(t){var e=Pc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ml,yl,vl,bl,wl,_l,El,Cl,xl,Bl,Tl,kl,Sl,Il,Nl,Ml,Fl,Dl,Ll,Ol,Rl,Ul,Pl,Ql,Hl,Gl,jl=mc(),Kl={point:$l,lineStart:Vl,lineEnd:zl,polygonStart:function(){Kl.point=Wl,Kl.lineStart=ql,Kl.lineEnd=Xl,jl.reset(),il.polygonStart()},polygonEnd:function(){il.polygonEnd(),Kl.point=$l,Kl.lineStart=Vl,Kl.lineEnd=zl,nl<0?(ml=-(vl=180),yl=-(bl=90)):jl>wc?bl=90:jl<-1e-6&&(yl=-90),Bl[0]=ml,Bl[1]=vl},sphere:function(){ml=-(vl=180),yl=-(bl=90)}};function $l(t,e){xl.push(Bl=[ml=t,vl=t]),e<yl&&(yl=e),e>bl&&(bl=e)}function Yl(t,e){var n=ul([t*kc,e*kc]);if(Cl){var r=fl(Cl,n),i=fl([r[1],-r[0],0],r);gl(i),i=Al(i);var a,o=t-wl,s=o>0?1:-1,c=i[0]*Tc*s,l=Sc(o)>180;l^(s*wl<c&&c<s*t)?(a=i[1]*Tc)>bl&&(bl=a):l^(s*wl<(c=(c+360)%360-180)&&c<s*t)?(a=-i[1]*Tc)<yl&&(yl=a):(e<yl&&(yl=e),e>bl&&(bl=e)),l?t<wl?Jl(ml,t)>Jl(ml,vl)&&(vl=t):Jl(t,vl)>Jl(ml,vl)&&(ml=t):vl>=ml?(t<ml&&(ml=t),t>vl&&(vl=t)):t>wl?Jl(ml,t)>Jl(ml,vl)&&(vl=t):Jl(t,vl)>Jl(ml,vl)&&(ml=t)}else xl.push(Bl=[ml=t,vl=t]);e<yl&&(yl=e),e>bl&&(bl=e),Cl=n,wl=t}function Vl(){Kl.point=Yl}function zl(){Bl[0]=ml,Bl[1]=vl,Kl.point=$l,Cl=null}function Wl(t,e){if(Cl){var n=t-wl;jl.add(Sc(n)>180?n+(n>0?360:-360):n)}else _l=t,El=e;il.point(t,e),Yl(t,e)}function ql(){il.lineStart()}function Xl(){Wl(_l,El),il.lineEnd(),Sc(jl)>wc&&(ml=-(vl=180)),Bl[0]=ml,Bl[1]=vl,Cl=null}function Jl(t,e){return(e-=t)<0?e+360:e}function Zl(t,e){return t[0]-e[0]}function tA(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function eA(t){var e,n,r,i,a,o,s;if(bl=vl=-(ml=yl=1/0),xl=[],qc(t,Kl),n=xl.length){for(xl.sort(Zl),e=1,a=[r=xl[0]];e<n;++e)tA(r,(i=xl[e])[0])||tA(r,i[1])?(Jl(r[0],i[1])>Jl(r[0],r[1])&&(r[1]=i[1]),Jl(i[0],r[1])>Jl(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,e=0,r=a[n=a.length-1];e<=n;r=i,++e)i=a[e],(s=Jl(r[1],i[0]))>o&&(o=s,ml=i[0],vl=r[1])}return xl=Bl=null,ml===1/0||yl===1/0?[[NaN,NaN],[NaN,NaN]]:[[ml,yl],[vl,bl]]}var nA={sphere:Kc,point:rA,lineStart:aA,lineEnd:cA,polygonStart:function(){nA.lineStart=lA,nA.lineEnd=AA},polygonEnd:function(){nA.lineStart=aA,nA.lineEnd=cA}};function rA(t,e){t*=kc;var n=Mc(e*=kc);iA(n*Mc(t),n*Rc(t),Rc(e))}function iA(t,e,n){++Tl,Sl+=(t-Sl)/Tl,Il+=(e-Il)/Tl,Nl+=(n-Nl)/Tl}function aA(){nA.point=oA}function oA(t,e){t*=kc;var n=Mc(e*=kc);Ql=n*Mc(t),Hl=n*Rc(t),Gl=Rc(e),nA.point=sA,iA(Ql,Hl,Gl)}function sA(t,e){t*=kc;var n=Mc(e*=kc),r=n*Mc(t),i=n*Rc(t),a=Rc(e),o=Nc(Pc((o=Hl*a-Gl*i)*o+(o=Gl*r-Ql*a)*o+(o=Ql*i-Hl*r)*o),Ql*r+Hl*i+Gl*a);kl+=o,Ml+=o*(Ql+(Ql=r)),Fl+=o*(Hl+(Hl=i)),Dl+=o*(Gl+(Gl=a)),iA(Ql,Hl,Gl)}function cA(){nA.point=rA}function lA(){nA.point=uA}function AA(){hA(Ul,Pl),nA.point=rA}function uA(t,e){Ul=t,Pl=e,t*=kc,e*=kc,nA.point=hA;var n=Mc(e);Ql=n*Mc(t),Hl=n*Rc(t),Gl=Rc(e),iA(Ql,Hl,Gl)}function hA(t,e){t*=kc;var n=Mc(e*=kc),r=n*Mc(t),i=n*Rc(t),a=Rc(e),o=Hl*a-Gl*i,s=Gl*r-Ql*a,c=Ql*i-Hl*r,l=Pc(o*o+s*s+c*c),A=Gc(l),u=l&&-A/l;Ll+=u*o,Ol+=u*s,Rl+=u*c,kl+=A,Ml+=A*(Ql+(Ql=r)),Fl+=A*(Hl+(Hl=i)),Dl+=A*(Gl+(Gl=a)),iA(Ql,Hl,Gl)}function fA(t){Tl=kl=Sl=Il=Nl=Ml=Fl=Dl=Ll=Ol=Rl=0,qc(t,nA);var e=Ll,n=Ol,r=Rl,i=e*e+n*n+r*r;return i<_c&&(e=Ml,n=Fl,r=Dl,kl<wc&&(e=Sl,n=Il,r=Nl),(i=e*e+n*n+r*r)<_c)?[NaN,NaN]:[Nc(n,e)*Tc,Gc(r/Pc(i))*Tc]}function dA(t){return function(){return t}}function pA(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function gA(t,e){return[Sc(t)>Ec?t+Math.round(-t/Bc)*Bc:t,e]}function mA(t,e,n){return(t%=Bc)?e||n?pA(vA(t),bA(e,n)):vA(t):e||n?bA(e,n):gA}function yA(t){return function(e,n){return[(e+=t)>Ec?e-Bc:e<-Ec?e+Bc:e,n]}}function vA(t){var e=yA(t);return e.invert=yA(-t),e}function bA(t,e){var n=Mc(t),r=Rc(t),i=Mc(e),a=Rc(e);function o(t,e){var o=Mc(e),s=Mc(t)*o,c=Rc(t)*o,l=Rc(e),A=l*n+s*r;return[Nc(c*i-A*a,s*n-l*r),Gc(A*i+c*a)]}return o.invert=function(t,e){var o=Mc(e),s=Mc(t)*o,c=Rc(t)*o,l=Rc(e),A=l*i-c*a;return[Nc(c*i+l*a,s*n+A*r),Gc(A*n-s*r)]},o}function wA(t){function e(e){return(e=t(e[0]*kc,e[1]*kc))[0]*=Tc,e[1]*=Tc,e}return t=mA(t[0]*kc,t[1]*kc,t.length>2?t[2]*kc:0),e.invert=function(e){return(e=t.invert(e[0]*kc,e[1]*kc))[0]*=Tc,e[1]*=Tc,e},e}function _A(t,e,n,r,i,a){if(n){var o=Mc(e),s=Rc(e),c=r*n;null==i?(i=e+r*Bc,a=e-c/2):(i=EA(o,i),a=EA(o,a),(r>0?i<a:i>a)&&(i+=r*Bc));for(var l,A=i;r>0?A>a:A<a;A-=c)l=Al([o,-s*Mc(A),-s*Rc(A)]),t.point(l[0],l[1])}}function EA(t,e){(e=ul(e))[0]-=t,gl(e);var n=Hc(-e[1]);return((-e[2]<0?-n:n)+Bc-wc)%Bc}function CA(){var t,e,n=dA([0,0]),r=dA(90),i=dA(6),a={point:function(n,r){t.push(n=e(n,r)),n[0]*=Tc,n[1]*=Tc}};function o(){var o=n.apply(this,arguments),s=r.apply(this,arguments)*kc,c=i.apply(this,arguments)*kc;return t=[],e=mA(-o[0]*kc,-o[1]*kc,0).invert,_A(a,s,c,1),o={type:"Polygon",coordinates:[t]},t=e=null,o}return o.center=function(t){return arguments.length?(n="function"==typeof t?t:dA([+t[0],+t[1]]),o):n},o.radius=function(t){return arguments.length?(r="function"==typeof t?t:dA(+t),o):r},o.precision=function(t){return arguments.length?(i="function"==typeof t?t:dA(+t),o):i},o}function xA(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:Kc,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function BA(t,e){return Sc(t[0]-e[0])<wc&&Sc(t[1]-e[1])<wc}function TA(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function kA(t,e,n,r,i){var a,o,s=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],o=t[e];if(BA(r,o)){if(!r[2]&&!o[2]){for(i.lineStart(),a=0;a<e;++a)i.point((r=t[a])[0],r[1]);return void i.lineEnd()}o[0]+=2e-6}s.push(n=new TA(r,t,null,!0)),c.push(n.o=new TA(r,null,n,!1)),s.push(n=new TA(o,t,null,!1)),c.push(n.o=new TA(o,null,n,!0))}})),s.length){for(c.sort(e),SA(s),SA(c),a=0,o=c.length;a<o;++a)c[a].e=n=!n;for(var l,A,u=s[0];;){for(var h=u,f=!0;h.v;)if((h=h.n)===u)return;l=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(f)for(a=0,o=l.length;a<o;++a)i.point((A=l[a])[0],A[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(f)for(l=h.p.z,a=l.length-1;a>=0;--a)i.point((A=l[a])[0],A[1]);else r(h.x,h.p.x,-1,i);h=h.p}l=(h=h.o).z,f=!f}while(!h.v);i.lineEnd()}}}function SA(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}gA.invert=gA;var IA=mc();function NA(t){return Sc(t[0])<=Ec?t[0]:Uc(t[0])*((Sc(t[0])+Ec)%Bc-Ec)}function MA(t,e){var n=NA(e),r=e[1],i=Rc(r),a=[Rc(n),-Mc(n),0],o=0,s=0;IA.reset(),1===i?r=Cc+wc:-1===i&&(r=-Cc-wc);for(var c=0,l=t.length;c<l;++c)if(u=(A=t[c]).length)for(var A,u,h=A[u-1],f=NA(h),d=h[1]/2+xc,p=Rc(d),g=Mc(d),m=0;m<u;++m,f=v,p=w,g=_,h=y){var y=A[m],v=NA(y),b=y[1]/2+xc,w=Rc(b),_=Mc(b),E=v-f,C=E>=0?1:-1,x=C*E,B=x>Ec,T=p*w;if(IA.add(Nc(T*C*Rc(x),g*_+T*Mc(x))),o+=B?E+C*Bc:E,B^f>=n^v>=n){var k=fl(ul(h),ul(y));gl(k);var S=fl(a,k);gl(S);var I=(B^E>=0?-1:1)*Gc(S[2]);(r>I||r===I&&(k[0]||k[1]))&&(s+=B^E>=0?1:-1)}}return(o<-1e-6||o<wc&&IA<-1e-6)^1&s}function FA(t,e,n,r){return function(i){var a,o,s,c=e(i),l=xA(),A=e(l),u=!1,h={point:f,lineStart:p,lineEnd:g,polygonStart:function(){h.point=m,h.lineStart=y,h.lineEnd=v,o=[],a=[]},polygonEnd:function(){h.point=f,h.lineStart=p,h.lineEnd=g,o=U(o);var t=MA(a,r);o.length?(u||(i.polygonStart(),u=!0),kA(o,LA,t,n,i)):t&&(u||(i.polygonStart(),u=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),u&&(i.polygonEnd(),u=!1),o=a=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(e,n){t(e,n)&&i.point(e,n)}function d(t,e){c.point(t,e)}function p(){h.point=d,c.lineStart()}function g(){h.point=f,c.lineEnd()}function m(t,e){s.push([t,e]),A.point(t,e)}function y(){A.lineStart(),s=[]}function v(){m(s[0][0],s[0][1]),A.lineEnd();var t,e,n,r,c=A.clean(),h=l.result(),f=h.length;if(s.pop(),a.push(s),s=null,f)if(1&c){if((e=(n=h[0]).length-1)>0){for(u||(i.polygonStart(),u=!0),i.lineStart(),t=0;t<e;++t)i.point((r=n[t])[0],r[1]);i.lineEnd()}}else f>1&&2&c&&h.push(h.pop().concat(h.shift())),o.push(h.filter(DA))}return h}}function DA(t){return t.length>1}function LA(t,e){return((t=t.x)[0]<0?t[1]-Cc-wc:Cc-t[1])-((e=e.x)[0]<0?e[1]-Cc-wc:Cc-e[1])}const OA=FA((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?Ec:-Ec,c=Sc(a-n);Sc(c-Ec)<wc?(t.point(n,r=(r+o)/2>0?Cc:-Cc),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(a,r),e=0):i!==s&&c>=Ec&&(Sc(n-i)<wc&&(n-=i*wc),Sc(a-s)<wc&&(a-=s*wc),r=function(t,e,n,r){var i,a,o=Rc(t-n);return Sc(o)>wc?Ic((Rc(e)*(a=Mc(r))*Rc(n)-Rc(r)*(i=Mc(e))*Rc(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=a,r=o),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Cc,r.point(-Ec,i),r.point(0,i),r.point(Ec,i),r.point(Ec,0),r.point(Ec,-i),r.point(0,-i),r.point(-Ec,-i),r.point(-Ec,0),r.point(-Ec,i);else if(Sc(t[0]-e[0])>wc){var a=t[0]<e[0]?Ec:-Ec;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(e[0],e[1])}),[-Ec,-Cc]);function RA(t){var e=Mc(t),n=6*kc,r=e>0,i=Sc(e)>wc;function a(t,n){return Mc(t)*Mc(n)>e}function o(t,n,r){var i=[1,0,0],a=fl(ul(t),ul(n)),o=hl(a,a),s=a[0],c=o-s*s;if(!c)return!r&&t;var l=e*o/c,A=-e*s/c,u=fl(i,a),h=pl(i,l);dl(h,pl(a,A));var f=u,d=hl(h,f),p=hl(f,f),g=d*d-p*(hl(h,h)-1);if(!(g<0)){var m=Pc(g),y=pl(f,(-d-m)/p);if(dl(y,h),y=Al(y),!r)return y;var v,b=t[0],w=n[0],_=t[1],E=n[1];w<b&&(v=b,b=w,w=v);var C=w-b,x=Sc(C-Ec)<wc;if(!x&&E<_&&(v=_,_=E,E=v),x||C<wc?x?_+E>0^y[1]<(Sc(y[0]-b)<wc?_:E):_<=y[1]&&y[1]<=E:C>Ec^(b<=y[0]&&y[0]<=w)){var B=pl(f,(-d+m)/p);return dl(B,h),[y,Al(B)]}}}function s(e,n){var i=r?t:Ec-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return FA(a,(function(t){var e,n,c,l,A;return{lineStart:function(){l=c=!1,A=1},point:function(u,h){var f,d=[u,h],p=a(u,h),g=r?p?0:s(u,h):p?s(u+(u<0?Ec:-Ec),h):0;if(!e&&(l=c=p)&&t.lineStart(),p!==c&&(!(f=o(e,d))||BA(e,f)||BA(d,f))&&(d[2]=1),p!==c)A=0,p?(t.lineStart(),f=o(d,e),t.point(f[0],f[1])):(f=o(e,d),t.point(f[0],f[1],2),t.lineEnd()),e=f;else if(i&&e&&r^p){var m;g&n||!(m=o(d,e,!0))||(A=0,r?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1],3)))}!p||e&&BA(e,d)||t.point(d[0],d[1]),e=d,c=p,n=g},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return A|(l&&c)<<1}}}),(function(e,r,i,a){_A(a,t,n,i,e,r)}),r?[0,-t]:[-Ec,t-Ec])}var UA=1e9,PA=-UA;function QA(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,s,l){var A=0,u=0;if(null==i||(A=o(i,s))!==(u=o(a,s))||c(i,a)<0^s>0)do{l.point(0===A||3===A?t:n,A>1?r:e)}while((A=(A+s+4)%4)!==u);else l.point(a[0],a[1])}function o(r,i){return Sc(r[0]-t)<wc?i>0?0:3:Sc(r[0]-n)<wc?i>0?2:1:Sc(r[1]-e)<wc?i>0?1:0:i>0?3:2}function s(t,e){return c(t.x,e.x)}function c(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var c,l,A,u,h,f,d,p,g,m,y,v=o,b=xA(),w={point:_,lineStart:function(){w.point=E,l&&l.push(A=[]),m=!0,g=!1,d=p=NaN},lineEnd:function(){c&&(E(u,h),f&&g&&b.rejoin(),c.push(b.result())),w.point=_,g&&v.lineEnd()},polygonStart:function(){v=b,c=[],l=[],y=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=l.length;n<i;++n)for(var a,o,s=l[n],c=1,A=s.length,u=s[0],h=u[0],f=u[1];c<A;++c)a=h,o=f,h=(u=s[c])[0],f=u[1],o<=r?f>r&&(h-a)*(r-o)>(f-o)*(t-a)&&++e:f<=r&&(h-a)*(r-o)<(f-o)*(t-a)&&--e;return e}(),n=y&&e,i=(c=U(c)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&kA(c,s,e,a,o),o.polygonEnd()),v=o,c=l=A=null}};function _(t,e){i(t,e)&&v.point(t,e)}function E(a,o){var s=i(a,o);if(l&&A.push([a,o]),m)u=a,h=o,f=s,m=!1,s&&(v.lineStart(),v.point(a,o));else if(s&&g)v.point(a,o);else{var c=[d=Math.max(PA,Math.min(UA,d)),p=Math.max(PA,Math.min(UA,p))],b=[a=Math.max(PA,Math.min(UA,a)),o=Math.max(PA,Math.min(UA,o))];!function(t,e,n,r,i,a){var o,s=t[0],c=t[1],l=0,A=1,u=e[0]-s,h=e[1]-c;if(o=n-s,u||!(o>0)){if(o/=u,u<0){if(o<l)return;o<A&&(A=o)}else if(u>0){if(o>A)return;o>l&&(l=o)}if(o=i-s,u||!(o<0)){if(o/=u,u<0){if(o>A)return;o>l&&(l=o)}else if(u>0){if(o<l)return;o<A&&(A=o)}if(o=r-c,h||!(o>0)){if(o/=h,h<0){if(o<l)return;o<A&&(A=o)}else if(h>0){if(o>A)return;o>l&&(l=o)}if(o=a-c,h||!(o<0)){if(o/=h,h<0){if(o>A)return;o>l&&(l=o)}else if(h>0){if(o<l)return;o<A&&(A=o)}return l>0&&(t[0]=s+l*u,t[1]=c+l*h),A<1&&(e[0]=s+A*u,e[1]=c+A*h),!0}}}}}(c,b,t,e,n,r)?s&&(v.lineStart(),v.point(a,o),y=!1):(g||(v.lineStart(),v.point(c[0],c[1])),v.point(b[0],b[1]),s||v.lineEnd(),y=!1)}d=a,p=o,g=s}return w}}function HA(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=QA(r,i,a,o)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],t=e=null,n):[[r,i],[a,o]]}}}var GA,jA,KA,$A=mc(),YA={sphere:Kc,point:Kc,lineStart:function(){YA.point=zA,YA.lineEnd=VA},lineEnd:Kc,polygonStart:Kc,polygonEnd:Kc};function VA(){YA.point=YA.lineEnd=Kc}function zA(t,e){GA=t*=kc,jA=Rc(e*=kc),KA=Mc(e),YA.point=WA}function WA(t,e){t*=kc;var n=Rc(e*=kc),r=Mc(e),i=Sc(t-GA),a=Mc(i),o=r*Rc(i),s=KA*n-jA*r*a,c=jA*n+KA*r*a;$A.add(Nc(Pc(o*o+s*s),c)),GA=t,jA=n,KA=r}function qA(t){return $A.reset(),qc(t,YA),+$A}var XA=[null,null],JA={type:"LineString",coordinates:XA};function ZA(t,e){return XA[0]=t,XA[1]=e,qA(JA)}var tu={Feature:function(t,e){return nu(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(nu(n[r].geometry,e))return!0;return!1}},eu={Sphere:function(){return!0},Point:function(t,e){return ru(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(ru(n[r],e))return!0;return!1},LineString:function(t,e){return iu(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(iu(n[r],e))return!0;return!1},Polygon:function(t,e){return au(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(au(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(nu(n[r],e))return!0;return!1}};function nu(t,e){return!(!t||!eu.hasOwnProperty(t.type))&&eu[t.type](t,e)}function ru(t,e){return 0===ZA(t,e)}function iu(t,e){for(var n,r,i,a=0,o=t.length;a<o;a++){if(0===(r=ZA(t[a],e)))return!0;if(a>0&&(i=ZA(t[a],t[a-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<_c*i)return!0;n=r}return!1}function au(t,e){return!!MA(t.map(ou),su(e))}function ou(t){return(t=t.map(su)).pop(),t}function su(t){return[t[0]*kc,t[1]*kc]}function cu(t,e){return(t&&tu.hasOwnProperty(t.type)?tu[t.type]:nu)(t,e)}function lu(t,e,n){var r=E(t,e-wc,n).concat(e);return function(t){return r.map((function(e){return[t,e]}))}}function Au(t,e,n){var r=E(t,e-wc,n).concat(e);return function(t){return r.map((function(e){return[e,t]}))}}function uu(){var t,e,n,r,i,a,o,s,c,l,A,u,h=10,f=h,d=90,p=360,g=2.5;function m(){return{type:"MultiLineString",coordinates:y()}}function y(){return E(Fc(r/d)*d,n,d).map(A).concat(E(Fc(s/p)*p,o,p).map(u)).concat(E(Fc(e/h)*h,t,h).filter((function(t){return Sc(t%d)>wc})).map(c)).concat(E(Fc(a/f)*f,i,f).filter((function(t){return Sc(t%p)>wc})).map(l))}return m.lines=function(){return y().map((function(t){return{type:"LineString",coordinates:t}}))},m.outline=function(){return{type:"Polygon",coordinates:[A(r).concat(u(o).slice(1),A(n).reverse().slice(1),u(s).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.extentMajor(t).extentMinor(t):m.extentMinor()},m.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),s>o&&(t=s,s=o,o=t),m.precision(g)):[[r,s],[n,o]]},m.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),m.precision(g)):[[e,a],[t,i]]},m.step=function(t){return arguments.length?m.stepMajor(t).stepMinor(t):m.stepMinor()},m.stepMajor=function(t){return arguments.length?(d=+t[0],p=+t[1],m):[d,p]},m.stepMinor=function(t){return arguments.length?(h=+t[0],f=+t[1],m):[h,f]},m.precision=function(h){return arguments.length?(g=+h,c=lu(a,i,90),l=Au(e,t,g),A=lu(s,o,90),u=Au(r,n,g),m):g},m.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function hu(){return uu()()}function fu(t,e){var n=t[0]*kc,r=t[1]*kc,i=e[0]*kc,a=e[1]*kc,o=Mc(r),s=Rc(r),c=Mc(a),l=Rc(a),A=o*Mc(n),u=o*Rc(n),h=c*Mc(i),f=c*Rc(i),d=2*Gc(Pc(jc(a-r)+o*c*jc(i-n))),p=Rc(d),g=d?function(t){var e=Rc(t*=d)/p,n=Rc(d-t)/p,r=n*A+e*h,i=n*u+e*f,a=n*s+e*l;return[Nc(i,r)*Tc,Nc(a,Pc(r*r+i*i))*Tc]}:function(){return[n*Tc,r*Tc]};return g.distance=d,g}function du(t){return t}var pu,gu,mu,yu,vu=mc(),bu=mc(),wu={point:Kc,lineStart:Kc,lineEnd:Kc,polygonStart:function(){wu.lineStart=_u,wu.lineEnd=xu},polygonEnd:function(){wu.lineStart=wu.lineEnd=wu.point=Kc,vu.add(Sc(bu)),bu.reset()},result:function(){var t=vu/2;return vu.reset(),t}};function _u(){wu.point=Eu}function Eu(t,e){wu.point=Cu,pu=mu=t,gu=yu=e}function Cu(t,e){bu.add(yu*t-mu*e),mu=t,yu=e}function xu(){Cu(pu,gu)}const Bu=wu;var Tu=1/0,ku=Tu,Su=-Tu,Iu=Su;const Nu={point:function(t,e){t<Tu&&(Tu=t),t>Su&&(Su=t),e<ku&&(ku=e),e>Iu&&(Iu=e)},lineStart:Kc,lineEnd:Kc,polygonStart:Kc,polygonEnd:Kc,result:function(){var t=[[Tu,ku],[Su,Iu]];return Su=Iu=-(ku=Tu=1/0),t}};var Mu,Fu,Du,Lu,Ou=0,Ru=0,Uu=0,Pu=0,Qu=0,Hu=0,Gu=0,ju=0,Ku=0,$u={point:Yu,lineStart:Vu,lineEnd:qu,polygonStart:function(){$u.lineStart=Xu,$u.lineEnd=Ju},polygonEnd:function(){$u.point=Yu,$u.lineStart=Vu,$u.lineEnd=qu},result:function(){var t=Ku?[Gu/Ku,ju/Ku]:Hu?[Pu/Hu,Qu/Hu]:Uu?[Ou/Uu,Ru/Uu]:[NaN,NaN];return Ou=Ru=Uu=Pu=Qu=Hu=Gu=ju=Ku=0,t}};function Yu(t,e){Ou+=t,Ru+=e,++Uu}function Vu(){$u.point=zu}function zu(t,e){$u.point=Wu,Yu(Du=t,Lu=e)}function Wu(t,e){var n=t-Du,r=e-Lu,i=Pc(n*n+r*r);Pu+=i*(Du+t)/2,Qu+=i*(Lu+e)/2,Hu+=i,Yu(Du=t,Lu=e)}function qu(){$u.point=Yu}function Xu(){$u.point=Zu}function Ju(){th(Mu,Fu)}function Zu(t,e){$u.point=th,Yu(Mu=Du=t,Fu=Lu=e)}function th(t,e){var n=t-Du,r=e-Lu,i=Pc(n*n+r*r);Pu+=i*(Du+t)/2,Qu+=i*(Lu+e)/2,Hu+=i,Gu+=(i=Lu*t-Du*e)*(Du+t),ju+=i*(Lu+e),Ku+=3*i,Yu(Du=t,Lu=e)}const eh=$u;function nh(t){this._context=t}nh.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Bc)}},result:Kc};var rh,ih,ah,oh,sh,ch=mc(),lh={point:Kc,lineStart:function(){lh.point=Ah},lineEnd:function(){rh&&uh(ih,ah),lh.point=Kc},polygonStart:function(){rh=!0},polygonEnd:function(){rh=null},result:function(){var t=+ch;return ch.reset(),t}};function Ah(t,e){lh.point=uh,ih=oh=t,ah=sh=e}function uh(t,e){oh-=t,sh-=e,ch.add(Pc(oh*oh+sh*sh)),oh=t,sh=e}const hh=lh;function fh(){this._string=[]}function dh(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function ph(t,e){var n,r,i=4.5;function a(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),qc(t,n(r))),r.result()}return a.area=function(t){return qc(t,n(Bu)),Bu.result()},a.measure=function(t){return qc(t,n(hh)),hh.result()},a.bounds=function(t){return qc(t,n(Nu)),Nu.result()},a.centroid=function(t){return qc(t,n(eh)),eh.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,du):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new fh):new nh(e=t),"function"!=typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)}function gh(t){return{stream:mh(t)}}function mh(t){return function(e){var n=new yh;for(var r in t)n[r]=t[r];return n.stream=e,n}}function yh(){}function vh(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),qc(n,t.stream(Nu)),e(Nu.result()),null!=r&&t.clipExtent(r),t}function bh(t,e,n){return vh(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,s])}),n)}function wh(t,e,n){return bh(t,[[0,0],e],n)}function _h(t,e,n){return vh(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])}),n)}function Eh(t,e,n){return vh(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])}),n)}fh.prototype={_radius:4.5,_circle:dh(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=dh(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},yh.prototype={constructor:yh,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Ch=Mc(30*kc);function xh(t,e){return+e?function(t,e){function n(r,i,a,o,s,c,l,A,u,h,f,d,p,g){var m=l-r,y=A-i,v=m*m+y*y;if(v>4*e&&p--){var b=o+h,w=s+f,_=c+d,E=Pc(b*b+w*w+_*_),C=Gc(_/=E),x=Sc(Sc(_)-1)<wc||Sc(a-u)<wc?(a+u)/2:Nc(w,b),B=t(x,C),T=B[0],k=B[1],S=T-r,I=k-i,N=y*S-m*I;(N*N/v>e||Sc((m*S+y*I)/v-.5)>.3||o*h+s*f+c*d<Ch)&&(n(r,i,a,o,s,c,T,k,x,b/=E,w/=E,_,p,g),g.point(T,k),n(T,k,x,b,w,_,l,A,u,h,f,d,p,g))}}return function(e){var r,i,a,o,s,c,l,A,u,h,f,d,p={point:g,lineStart:m,lineEnd:v,polygonStart:function(){e.polygonStart(),p.lineStart=b},polygonEnd:function(){e.polygonEnd(),p.lineStart=m}};function g(n,r){n=t(n,r),e.point(n[0],n[1])}function m(){A=NaN,p.point=y,e.lineStart()}function y(r,i){var a=ul([r,i]),o=t(r,i);n(A,u,l,h,f,d,A=o[0],u=o[1],l=r,h=a[0],f=a[1],d=a[2],16,e),e.point(A,u)}function v(){p.point=g,e.lineEnd()}function b(){m(),p.point=w,p.lineEnd=_}function w(t,e){y(r=t,e),i=A,a=u,o=h,s=f,c=d,p.point=y}function _(){n(A,u,l,h,f,d,i,a,r,o,s,c,16,e),p.lineEnd=v,v()}return p}}(t,e):function(t){return mh({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}var Bh=mh({point:function(t,e){this.stream.point(t*kc,e*kc)}});function Th(t,e,n,r,i){function a(a,o){return[e+t*(a*=r),n-t*(o*=i)]}return a.invert=function(a,o){return[(a-e)/t*r,(n-o)/t*i]},a}function kh(t,e,n,r,i,a){var o=Mc(a),s=Rc(a),c=o*t,l=s*t,A=o/t,u=s/t,h=(s*n-o*e)/t,f=(s*e+o*n)/t;function d(t,a){return[c*(t*=r)-l*(a*=i)+e,n-l*t-c*a]}return d.invert=function(t,e){return[r*(A*t-u*e+h),i*(f-u*t-A*e)]},d}function Sh(t){return Ih((function(){return t}))()}function Ih(t){var e,n,r,i,a,o,s,c,l,A,u=150,h=480,f=250,d=0,p=0,g=0,m=0,y=0,v=0,b=1,w=1,_=null,E=OA,C=null,x=du,B=.5;function T(t){return c(t[0]*kc,t[1]*kc)}function k(t){return(t=c.invert(t[0],t[1]))&&[t[0]*Tc,t[1]*Tc]}function S(){var t=kh(u,0,0,b,w,v).apply(null,e(d,p)),r=(v?kh:Th)(u,h-t[0],f-t[1],b,w,v);return n=mA(g,m,y),s=pA(e,r),c=pA(n,s),o=xh(s,B),I()}function I(){return l=A=null,T}return T.stream=function(t){return l&&A===t?l:l=Bh(function(t){return mh({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}(n)(E(o(x(A=t)))))},T.preclip=function(t){return arguments.length?(E=t,_=void 0,I()):E},T.postclip=function(t){return arguments.length?(x=t,C=r=i=a=null,I()):x},T.clipAngle=function(t){return arguments.length?(E=+t?RA(_=t*kc):(_=null,OA),I()):_*Tc},T.clipExtent=function(t){return arguments.length?(x=null==t?(C=r=i=a=null,du):QA(C=+t[0][0],r=+t[0][1],i=+t[1][0],a=+t[1][1]),I()):null==C?null:[[C,r],[i,a]]},T.scale=function(t){return arguments.length?(u=+t,S()):u},T.translate=function(t){return arguments.length?(h=+t[0],f=+t[1],S()):[h,f]},T.center=function(t){return arguments.length?(d=t[0]%360*kc,p=t[1]%360*kc,S()):[d*Tc,p*Tc]},T.rotate=function(t){return arguments.length?(g=t[0]%360*kc,m=t[1]%360*kc,y=t.length>2?t[2]%360*kc:0,S()):[g*Tc,m*Tc,y*Tc]},T.angle=function(t){return arguments.length?(v=t%360*kc,S()):v*Tc},T.reflectX=function(t){return arguments.length?(b=t?-1:1,S()):b<0},T.reflectY=function(t){return arguments.length?(w=t?-1:1,S()):w<0},T.precision=function(t){return arguments.length?(o=xh(s,B=t*t),I()):Pc(B)},T.fitExtent=function(t,e){return bh(T,t,e)},T.fitSize=function(t,e){return wh(T,t,e)},T.fitWidth=function(t,e){return _h(T,t,e)},T.fitHeight=function(t,e){return Eh(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&k,S()}}function Nh(t){var e=0,n=Ec/3,r=Ih(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*kc,n=t[1]*kc):[e*Tc,n*Tc]},i}function Mh(t,e){var n=Rc(t),r=(n+Rc(e))/2;if(Sc(r)<wc)return function(t){var e=Mc(t);function n(t,n){return[t*e,Rc(n)/e]}return n.invert=function(t,n){return[t/e,Gc(n*e)]},n}(t);var i=1+n*(2*r-n),a=Pc(i)/r;function o(t,e){var n=Pc(i-2*r*Rc(e))/r;return[n*Rc(t*=r),a-n*Mc(t)]}return o.invert=function(t,e){var n=a-e,o=Nc(t,Sc(n))*Uc(n);return n*r<0&&(o-=Ec*Uc(t)*Uc(n)),[o/r,Gc((i-(t*t+n*n)*r*r)/(2*r))]},o}function Fh(){return Nh(Mh).scale(155.424).center([0,33.6442])}function Dh(){return Fh().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Lh(){var t,e,n,r,i,a,o=Dh(),s=Fh().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Fh().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,e){a=[t,e]}};function A(t){var e=t[0],o=t[1];return a=null,n.point(e,o),a||(r.point(e,o),a)||(i.point(e,o),a)}function u(){return t=e=null,A}return A.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:o).invert(t)},A.stream=function(n){return t&&e===n?t:(r=[o.stream(e=n),s.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},A.precision=function(t){return arguments.length?(o.precision(t),s.precision(t),c.precision(t),u()):o.precision()},A.scale=function(t){return arguments.length?(o.scale(t),s.scale(.35*t),c.scale(t),A.translate(o.translate())):o.scale()},A.translate=function(t){if(!arguments.length)return o.translate();var e=o.scale(),a=+t[0],A=+t[1];return n=o.translate(t).clipExtent([[a-.455*e,A-.238*e],[a+.455*e,A+.238*e]]).stream(l),r=s.translate([a-.307*e,A+.201*e]).clipExtent([[a-.425*e+wc,A+.12*e+wc],[a-.214*e-wc,A+.234*e-wc]]).stream(l),i=c.translate([a-.205*e,A+.212*e]).clipExtent([[a-.214*e+wc,A+.166*e+wc],[a-.115*e-wc,A+.234*e-wc]]).stream(l),u()},A.fitExtent=function(t,e){return bh(A,t,e)},A.fitSize=function(t,e){return wh(A,t,e)},A.fitWidth=function(t,e){return _h(A,t,e)},A.fitHeight=function(t,e){return Eh(A,t,e)},A.scale(1070)}function Oh(t){return function(e,n){var r=Mc(e),i=Mc(n),a=t(r*i);return[a*i*Rc(e),a*Rc(n)]}}function Rh(t){return function(e,n){var r=Pc(e*e+n*n),i=t(r),a=Rc(i),o=Mc(i);return[Nc(e*a,r*o),Gc(r&&n*a/r)]}}var Uh=Oh((function(t){return Pc(2/(1+t))}));function Ph(){return Sh(Uh).scale(124.75).clipAngle(179.999)}Uh.invert=Rh((function(t){return 2*Gc(t/2)}));var Qh=Oh((function(t){return(t=Hc(t))&&t/Rc(t)}));function Hh(){return Sh(Qh).scale(79.4188).clipAngle(179.999)}function Gh(t,e){return[t,Lc(Qc((Cc+e)/2))]}function jh(){return Kh(Gh).scale(961/Bc)}function Kh(t){var e,n,r,i=Sh(t),a=i.center,o=i.scale,s=i.translate,c=i.clipExtent,l=null;function A(){var a=Ec*o(),s=i(wA(i.rotate()).invert([0,0]));return c(null==l?[[s[0]-a,s[1]-a],[s[0]+a,s[1]+a]]:t===Gh?[[Math.max(s[0]-a,l),e],[Math.min(s[0]+a,n),r]]:[[l,Math.max(s[1]-a,e)],[n,Math.min(s[1]+a,r)]])}return i.scale=function(t){return arguments.length?(o(t),A()):o()},i.translate=function(t){return arguments.length?(s(t),A()):s()},i.center=function(t){return arguments.length?(a(t),A()):a()},i.clipExtent=function(t){return arguments.length?(null==t?l=e=n=r=null:(l=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),A()):null==l?null:[[l,e],[n,r]]},A()}function $h(t){return Qc((Cc+t)/2)}function Yh(t,e){var n=Mc(t),r=t===e?Rc(t):Lc(n/Mc(e))/Lc($h(e)/$h(t)),i=n*Oc($h(t),r)/r;if(!r)return Gh;function a(t,e){i>0?e<-Cc+wc&&(e=-Cc+wc):e>Cc-wc&&(e=Cc-wc);var n=i/Oc($h(e),r);return[n*Rc(r*t),i-n*Mc(r*t)]}return a.invert=function(t,e){var n=i-e,a=Uc(r)*Pc(t*t+n*n),o=Nc(t,Sc(n))*Uc(n);return n*r<0&&(o-=Ec*Uc(t)*Uc(n)),[o/r,2*Ic(Oc(i/a,1/r))-Cc]},a}function Vh(){return Nh(Yh).scale(109.5).parallels([30,30])}function zh(t,e){return[t,e]}function Wh(){return Sh(zh).scale(152.63)}function qh(t,e){var n=Mc(t),r=t===e?Rc(t):(n-Mc(e))/(e-t),i=n/r+t;if(Sc(r)<wc)return zh;function a(t,e){var n=i-e,a=r*t;return[n*Rc(a),i-n*Mc(a)]}return a.invert=function(t,e){var n=i-e,a=Nc(t,Sc(n))*Uc(n);return n*r<0&&(a-=Ec*Uc(t)*Uc(n)),[a/r,i-Uc(r)*Pc(t*t+n*n)]},a}function Xh(){return Nh(qh).scale(131.154).center([0,13.9389])}Qh.invert=Rh((function(t){return t})),Gh.invert=function(t,e){return[t,2*Ic(Dc(e))-Cc]},zh.invert=zh;var Jh=1.340264,Zh=-.081106,tf=893e-6,ef=.003796,nf=Pc(3)/2;function rf(t,e){var n=Gc(nf*Rc(e)),r=n*n,i=r*r*r;return[t*Mc(n)/(nf*(Jh+3*Zh*r+i*(7*tf+9*ef*r))),n*(Jh+Zh*r+i*(tf+ef*r))]}function af(){return Sh(rf).scale(177.158)}function of(t,e){var n=Mc(e),r=Mc(t)*n;return[n*Rc(t)/r,Rc(e)/r]}function sf(){return Sh(of).scale(144.049).clipAngle(60)}function cf(){var t,e,n,r,i,a,o,s=1,c=0,l=0,A=1,u=1,h=0,f=null,d=1,p=1,g=mh({point:function(t,e){var n=v([t,e]);this.stream.point(n[0],n[1])}}),m=du;function y(){return d=s*A,p=s*u,a=o=null,v}function v(n){var r=n[0]*d,i=n[1]*p;if(h){var a=i*t-r*e;r=r*t+i*e,i=a}return[r+c,i+l]}return v.invert=function(n){var r=n[0]-c,i=n[1]-l;if(h){var a=i*t+r*e;r=r*t-i*e,i=a}return[r/d,i/p]},v.stream=function(t){return a&&o===t?a:a=g(m(o=t))},v.postclip=function(t){return arguments.length?(m=t,f=n=r=i=null,y()):m},v.clipExtent=function(t){return arguments.length?(m=null==t?(f=n=r=i=null,du):QA(f=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),y()):null==f?null:[[f,n],[r,i]]},v.scale=function(t){return arguments.length?(s=+t,y()):s},v.translate=function(t){return arguments.length?(c=+t[0],l=+t[1],y()):[c,l]},v.angle=function(n){return arguments.length?(e=Rc(h=n%360*kc),t=Mc(h),y()):h*Tc},v.reflectX=function(t){return arguments.length?(A=t?-1:1,y()):A<0},v.reflectY=function(t){return arguments.length?(u=t?-1:1,y()):u<0},v.fitExtent=function(t,e){return bh(v,t,e)},v.fitSize=function(t,e){return wh(v,t,e)},v.fitWidth=function(t,e){return _h(v,t,e)},v.fitHeight=function(t,e){return Eh(v,t,e)},v}function lf(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function Af(){return Sh(lf).scale(175.295)}function uf(t,e){return[Mc(e)*Rc(t),Rc(e)]}function hf(){return Sh(uf).scale(249.5).clipAngle(90.000001)}function ff(t,e){var n=Mc(e),r=1+Mc(t)*n;return[n*Rc(t)/r,Rc(e)/r]}function df(){return Sh(ff).scale(250).clipAngle(142)}function pf(t,e){return[Lc(Qc((Cc+e)/2)),-t]}function gf(){var t=Kh(pf),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function mf(t,e){return t.parent===e.parent?1:2}function yf(t,e){return t+e.x}function vf(t,e){return Math.max(t,e.y)}function bf(){var t=mf,e=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(yf,0)/t.length}(n),e.y=function(t){return 1+t.reduce(vf,0)}(n)):(e.x=a?o+=t(e,a):0,e.y=0,a=e)}));var s=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),l=s.x-t(s,c)/2,A=c.x+t(c,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(A-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function wf(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function _f(t,e){var n,r,i,a,o,s=new Bf(t),c=+t.value&&(s.value=t.value),l=[s];for(null==e&&(e=Ef);n=l.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)l.push(r=n.children[a]=new Bf(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(xf)}function Ef(t){return t.children}function Cf(t){t.data=t.data.data}function xf(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Bf(t){this.data=t,this.depth=this.height=0,this.parent=null}rf.invert=function(t,e){for(var n,r=e,i=r*r,a=i*i*i,o=0;o<12&&(a=(i=(r-=n=(r*(Jh+Zh*i+a*(tf+ef*i))-e)/(Jh+3*Zh*i+a*(7*tf+9*ef*i)))*r)*i*i,!(Sc(n)<_c));++o);return[nf*t*(Jh+3*Zh*i+a*(7*tf+9*ef*i))/Mc(r),Gc(Rc(r)/nf)]},of.invert=Rh(Ic),lf.invert=function(t,e){var n,r=e,i=25;do{var a=r*r,o=a*a;r-=n=(r*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Sc(n)>wc&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},uf.invert=Rh(Gc),ff.invert=Rh((function(t){return 2*Ic(t)})),pf.invert=function(t,e){return[-e,2*Ic(Dc(t))-Cc]},Bf.prototype=_f.prototype={constructor:Bf,count:function(){return this.eachAfter(wf)},each:function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r<i;++r)o.push(n[r])}while(o.length);return this},eachAfter:function(t){for(var e,n,r,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)a.push(e[n]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return _f(this).eachBefore(Cf)}};var Tf=Array.prototype.slice;function kf(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(Tf.call(t))).length,a=[];r<i;)e=t[r],n&&Nf(n,e)?++r:(n=Ff(a=Sf(a,e)),r=0);return n}function Sf(t,e){var n,r;if(Mf(e,t))return[e];for(n=0;n<t.length;++n)if(If(e,t[n])&&Mf(Df(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(If(Df(t[n],t[r]),e)&&If(Df(t[n],e),t[r])&&If(Df(t[r],e),t[n])&&Mf(Lf(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function If(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function Nf(t,e){var n=t.r-e.r+1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Mf(t,e){for(var n=0;n<e.length;++n)if(!Nf(t,e[n]))return!1;return!0}function Ff(t){switch(t.length){case 1:return function(t){return{x:t.x,y:t.y,r:t.r}}(t[0]);case 2:return Df(t[0],t[1]);case 3:return Lf(t[0],t[1],t[2])}}function Df(t,e){var n=t.x,r=t.y,i=t.r,a=e.x,o=e.y,s=e.r,c=a-n,l=o-r,A=s-i,u=Math.sqrt(c*c+l*l);return{x:(n+a+c/u*A)/2,y:(r+o+l/u*A)/2,r:(u+i+s)/2}}function Lf(t,e,n){var r=t.x,i=t.y,a=t.r,o=e.x,s=e.y,c=e.r,l=n.x,A=n.y,u=n.r,h=r-o,f=r-l,d=i-s,p=i-A,g=c-a,m=u-a,y=r*r+i*i-a*a,v=y-o*o-s*s+c*c,b=y-l*l-A*A+u*u,w=f*d-h*p,_=(d*b-p*v)/(2*w)-r,E=(p*g-d*m)/w,C=(f*v-h*b)/(2*w)-i,x=(h*m-f*g)/w,B=E*E+x*x-1,T=2*(a+_*E+C*x),k=_*_+C*C-a*a,S=-(B?(T+Math.sqrt(T*T-4*B*k))/(2*B):k/T);return{x:r+_+E*S,y:i+C+x*S,r:S}}function Of(t,e,n){var r,i,a,o,s=t.x-e.x,c=t.y-e.y,l=s*s+c*c;l?(i=e.r+n.r,i*=i,o=t.r+n.r,i>(o*=o)?(r=(l+o-i)/(2*l),a=Math.sqrt(Math.max(0,o/l-r*r)),n.x=t.x-r*s-a*c,n.y=t.y-r*c+a*s):(r=(l+i-o)/(2*l),a=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*s-a*c,n.y=e.y+r*c+a*s)):(n.x=e.x+n.r,n.y=e.y)}function Rf(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Uf(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function Pf(t){this._=t,this.next=null,this.previous=null}function Qf(t){if(!(i=t.length))return 0;var e,n,r,i,a,o,s,c,l,A,u;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;Of(n,e,r=t[2]),e=new Pf(e),n=new Pf(n),r=new Pf(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){Of(e._,n._,r=t[s]),r=new Pf(r),c=n.next,l=e.previous,A=n._.r,u=e._.r;do{if(A<=u){if(Rf(c._,r._)){n=c,e.next=n,n.previous=e,--s;continue t}A+=c._.r,c=c.next}else{if(Rf(l._,r._)){(e=l).next=n,n.previous=e,--s;continue t}u+=l._.r,l=l.previous}}while(c!==l.next);for(r.previous=e,r.next=n,e.next=n.previous=n=r,a=Uf(e);(r=r.next)!==n;)(o=Uf(r))<a&&(e=r,a=o);n=e.next}for(e=[n._],r=n;(r=r.next)!==n;)e.push(r._);for(r=kf(e),s=0;s<i;++s)(e=t[s]).x-=r.x,e.y-=r.y;return r.r}function Hf(t){return Qf(t),t}function Gf(t){return null==t?null:jf(t)}function jf(t){if("function"!=typeof t)throw new Error;return t}function Kf(){return 0}function $f(t){return function(){return t}}function Yf(t){return Math.sqrt(t.value)}function Vf(){var t=null,e=1,n=1,r=Kf;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(zf(t)).eachAfter(Wf(r,.5)).eachBefore(qf(1)):i.eachBefore(zf(Yf)).eachAfter(Wf(Kf,1)).eachAfter(Wf(r,i.r/Math.min(e,n))).eachBefore(qf(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=Gf(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:$f(+t),i):r},i}function zf(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function Wf(t,e){return function(n){if(r=n.children){var r,i,a,o=r.length,s=t(n)*e||0;if(s)for(i=0;i<o;++i)r[i].r+=s;if(a=Qf(r),s)for(i=0;i<o;++i)r[i].r-=s;n.r=a+s}}}function qf(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function Xf(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Jf(t,e,n,r,i){for(var a,o=t.children,s=-1,c=o.length,l=t.value&&(r-e)/t.value;++s<c;)(a=o[s]).y0=n,a.y1=i,a.x0=e,a.x1=e+=a.value*l}function Zf(){var t=1,e=1,n=0,r=!1;function i(i){var a=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(r){r.children&&Jf(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,a=r.y0,o=r.x1-n,s=r.y1-n;o<i&&(i=o=(i+o)/2),s<a&&(a=s=(a+s)/2),r.x0=i,r.y0=a,r.x1=o,r.y1=s}}(e,a)),r&&i.eachBefore(Xf),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i}var td={depth:-1},ed={};function nd(t){return t.id}function rd(t){return t.parentId}function id(){var t=nd,e=rd;function n(n){var r,i,a,o,s,c,l,A=n.length,u=new Array(A),h={};for(i=0;i<A;++i)r=n[i],s=u[i]=new Bf(r),null!=(c=t(r,i,n))&&(c+="")&&(h[l="$"+(s.id=c)]=l in h?ed:s);for(i=0;i<A;++i)if(s=u[i],null!=(c=e(n[i],i,n))&&(c+="")){if(!(o=h["$"+c]))throw new Error("missing: "+c);if(o===ed)throw new Error("ambiguous: "+c);o.children?o.children.push(s):o.children=[s],s.parent=o}else{if(a)throw new Error("multiple roots");a=s}if(!a)throw new Error("no root");if(a.parent=td,a.eachBefore((function(t){t.depth=t.parent.depth+1,--A})).eachBefore(xf),a.parent=null,A>0)throw new Error("cycle");return a}return n.id=function(e){return arguments.length?(t=jf(e),n):t},n.parentId=function(t){return arguments.length?(e=jf(t),n):e},n}function ad(t,e){return t.parent===e.parent?1:2}function od(t){var e=t.children;return e?e[0]:t.t}function sd(t){var e=t.children;return e?e[e.length-1]:t.t}function cd(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function ld(t,e,n){return t.a.parent===e.parent?t.a:n}function Ad(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function ud(){var t=ad,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,a,o=new Ad(t,0),s=[o];e=s.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)s.push(n=e.children[i]=new Ad(r[i],i)),n.parent=e;return(o.parent=new Ad(null,0)).children=[o],o}(i);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),r)i.eachBefore(s);else{var l=i,A=i,u=i;i.eachBefore((function(t){t.x<l.x&&(l=t),t.x>A.x&&(A=t),t.depth>u.depth&&(u=t)}));var h=l===A?1:t(l,A)/2,f=h-l.x,d=e/(A.x+h+f),p=n/(u.depth||1);i.eachBefore((function(t){t.x=(t.x+f)*d,t.y=t.depth*p}))}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,o=e,s=n,c=a.parent.children[0],l=a.m,A=o.m,u=s.m,h=c.m;s=sd(s),a=od(a),s&&a;)c=od(c),(o=sd(o)).a=e,(i=s.z+u-a.z-l+t(s._,a._))>0&&(cd(ld(s,e,r),e,i),l+=i,A+=i),u+=s.m,l+=a.m,h+=c.m,A+=o.m;s&&!sd(o)&&(o.t=s,o.m+=u-A),a&&!od(c)&&(c.t=a,c.m+=l-h,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function hd(t,e,n,r,i){for(var a,o=t.children,s=-1,c=o.length,l=t.value&&(i-n)/t.value;++s<c;)(a=o[s]).x0=e,a.x1=r,a.y0=n,a.y1=n+=a.value*l}Ad.prototype=Object.create(Bf.prototype);var fd=(1+Math.sqrt(5))/2;function dd(t,e,n,r,i,a){for(var o,s,c,l,A,u,h,f,d,p,g,m=[],y=e.children,v=0,b=0,w=y.length,_=e.value;v<w;){c=i-n,l=a-r;do{A=y[b++].value}while(!A&&b<w);for(u=h=A,g=A*A*(p=Math.max(l/c,c/l)/(_*t)),d=Math.max(h/g,g/u);b<w;++b){if(A+=s=y[b].value,s<u&&(u=s),s>h&&(h=s),g=A*A*p,(f=Math.max(h/g,g/u))>d){A-=s;break}d=f}m.push(o={value:A,dice:c<l,children:y.slice(v,b)}),o.dice?Jf(o,n,r,i,_?r+=l*A/_:a):hd(o,n,r,_?n+=c*A/_:i,a),_-=A,v=b}return m}const pd=function t(e){function n(t,n,r,i,a){dd(e,t,n,r,i,a)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(fd);function gd(){var t=pd,e=!1,n=1,r=1,i=[0],a=Kf,o=Kf,s=Kf,c=Kf,l=Kf;function A(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(u),i=[0],e&&t.eachBefore(Xf),t}function u(e){var n=i[e.depth],r=e.x0+n,A=e.y0+n,u=e.x1-n,h=e.y1-n;u<r&&(r=u=(r+u)/2),h<A&&(A=h=(A+h)/2),e.x0=r,e.y0=A,e.x1=u,e.y1=h,e.children&&(n=i[e.depth+1]=a(e)/2,r+=l(e)-n,A+=o(e)-n,(u-=s(e)-n)<r&&(r=u=(r+u)/2),(h-=c(e)-n)<A&&(A=h=(A+h)/2),t(e,r,A,u,h))}return A.round=function(t){return arguments.length?(e=!!t,A):e},A.size=function(t){return arguments.length?(n=+t[0],r=+t[1],A):[n,r]},A.tile=function(e){return arguments.length?(t=jf(e),A):t},A.padding=function(t){return arguments.length?A.paddingInner(t).paddingOuter(t):A.paddingInner()},A.paddingInner=function(t){return arguments.length?(a="function"==typeof t?t:$f(+t),A):a},A.paddingOuter=function(t){return arguments.length?A.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):A.paddingTop()},A.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:$f(+t),A):o},A.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:$f(+t),A):s},A.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:$f(+t),A):c},A.paddingLeft=function(t){return arguments.length?(l="function"==typeof t?t:$f(+t),A):l},A}function md(t,e,n,r,i){var a,o,s=t.children,c=s.length,l=new Array(c+1);for(l[0]=o=a=0;a<c;++a)l[a+1]=o+=s[a].value;!function t(e,n,r,i,a,o,c){if(e>=n-1){var A=s[e];return A.x0=i,A.y0=a,A.x1=o,void(A.y1=c)}for(var u=l[e],h=r/2+u,f=e+1,d=n-1;f<d;){var p=f+d>>>1;l[p]<h?f=p+1:d=p}h-l[f-1]<l[f]-h&&e+1<f&&--f;var g=l[f]-u,m=r-g;if(o-i>c-a){var y=(i*m+o*g)/r;t(e,f,g,i,a,y,c),t(f,n,m,y,a,o,c)}else{var v=(a*m+c*g)/r;t(e,f,g,i,a,o,v),t(f,n,m,i,v,o,c)}}(0,c,t.value,e,n,r,i)}function yd(t,e,n,r,i){(1&t.depth?hd:Jf)(t,e,n,r,i)}const vd=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,s,c,l,A,u=-1,h=o.length,f=t.value;++u<h;){for(c=(s=o[u]).children,l=s.value=0,A=c.length;l<A;++l)s.value+=c[l].value;s.dice?Jf(s,n,r,i,r+=(a-r)*s.value/f):hd(s,n,r,n+=(i-n)*s.value/f,a),f-=s.value}else t._squarify=o=dd(e,t,n,r,i,a),o.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(fd);function bd(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function wd(t,e){var n=hn(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}function _d(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Ed=Math.SQRT2;function Cd(t){return((t=Math.exp(t))+1/t)/2}function xd(t,e){var n,r,i=t[0],a=t[1],o=t[2],s=e[0],c=e[1],l=e[2],A=s-i,u=c-a,h=A*A+u*u;if(h<1e-12)r=Math.log(l/o)/Ed,n=function(t){return[i+t*A,a+t*u,o*Math.exp(Ed*t*r)]};else{var f=Math.sqrt(h),d=(l*l-o*o+4*h)/(2*o*2*f),p=(l*l-o*o-4*h)/(2*l*2*f),g=Math.log(Math.sqrt(d*d+1)-d),m=Math.log(Math.sqrt(p*p+1)-p);r=(m-g)/Ed,n=function(t){var e,n=t*r,s=Cd(g),c=o/(2*f)*(s*(e=Ed*n+g,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+c*A,a+c*u,o*s/Cd(Ed*n+g)]}}return n.duration=1e3*r,n}function Bd(t){return function(e,n){var r=t((e=rn(e)).h,(n=rn(n)).h),i=fn(e.s,n.s),a=fn(e.l,n.l),o=fn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+""}}}const Td=Bd(hn);var kd=Bd(fn);function Sd(t,e){var n=fn((t=va(t)).l,(e=va(e)).l),r=fn(t.a,e.a),i=fn(t.b,e.b),a=fn(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=a(e),t+""}}function Id(t){return function(e,n){var r=t((e=Ta(e)).h,(n=Ta(n)).h),i=fn(e.c,n.c),a=fn(e.l,n.l),o=fn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}const Nd=Id(hn);var Md=Id(fn);function Fd(t){return function e(n){function r(e,r){var i=t((e=Ua(e)).h,(r=Ua(r)).h),a=fn(e.s,r.s),o=fn(e.l,r.l),s=fn(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}const Dd=Fd(hn);var Ld=Fd(fn);function Od(t,e){for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n<r;)a[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return a[e](t-e)}}function Rd(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}function Ud(t){for(var e,n=-1,r=t.length,i=t[r-1],a=0;++n<r;)e=i,i=t[n],a+=e[1]*i[0]-e[0]*i[1];return a/2}function Pd(t){for(var e,n,r=-1,i=t.length,a=0,o=0,s=t[i-1],c=0;++r<i;)e=s,s=t[r],c+=n=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*n,o+=(e[1]+s[1])*n;return[a/(c*=3),o/c]}function Qd(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function Hd(t,e){return t[0]-e[0]||t[1]-e[1]}function Gd(t){for(var e=t.length,n=[0,1],r=2,i=2;i<e;++i){for(;r>1&&Qd(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function jd(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e<n;++e)r[e]=[+t[e][0],+t[e][1],e];for(r.sort(Hd),e=0;e<n;++e)i[e]=[r[e][0],-r[e][1]];var a=Gd(r),o=Gd(i),s=o[0]===a[0],c=o[o.length-1]===a[a.length-1],l=[];for(e=a.length-1;e>=0;--e)l.push(t[r[a[e]][2]]);for(e=+s;e<o.length-c;++e)l.push(t[r[o[e]][2]]);return l}function Kd(t,e){for(var n,r,i=t.length,a=t[i-1],o=e[0],s=e[1],c=a[0],l=a[1],A=!1,u=0;u<i;++u)n=(a=t[u])[0],(r=a[1])>s!=l>s&&o<(c-n)*(s-r)/(l-r)+n&&(A=!A),c=n,l=r;return A}function $d(t){for(var e,n,r=-1,i=t.length,a=t[i-1],o=a[0],s=a[1],c=0;++r<i;)e=o,n=s,e-=o=(a=t[r])[0],n-=s=a[1],c+=Math.sqrt(e*e+n*n);return c}function Yd(){return Math.random()}const Vd=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(Yd),zd=function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var a;if(null!=r)a=r,r=null;else do{r=2*e()-1,a=2*e()-1,i=r*r+a*a}while(!i||i>1);return t+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(Yd),Wd=function t(e){function n(){var t=zd.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Yd),qd=function t(e){function n(t){return function(){for(var n=0,r=0;r<t;++r)n+=e();return n}}return n.source=t,n}(Yd),Xd=function t(e){function n(t){var n=qd.source(e)(t);return function(){return n()/t}}return n.source=t,n}(Yd),Jd=function t(e){function n(t){return function(){return-Math.log(1-e())/t}}return n.source=t,n}(Yd);function Zd(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function tp(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t)}return this}var ep=Array.prototype,np=ep.map,rp=ep.slice,ip={name:"implicit"};function ap(){var t=ea(),e=[],n=[],r=ip;function i(i){var a=i+"",o=t.get(a);if(!o){if(r!==ip)return r;t.set(a,o=e.push(i))}return n[(o-1)%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=ea();for(var r,a,o=-1,s=n.length;++o<s;)t.has(a=(r=n[o])+"")||t.set(a,e.push(r));return i},i.range=function(t){return arguments.length?(n=rp.call(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return ap(e,n).unknown(r)},Zd.apply(i,arguments),i}function op(){var t,e,n=ap().unknown(void 0),r=n.domain,i=n.range,a=[0,1],o=!1,s=0,c=0,l=.5;function A(){var n=r().length,A=a[1]<a[0],u=a[A-0],h=a[1-A];t=(h-u)/Math.max(1,n-s+2*c),o&&(t=Math.floor(t)),u+=(h-u-t*(n-s))*l,e=t*(1-s),o&&(u=Math.round(u),e=Math.round(e));var f=E(n).map((function(e){return u+t*e}));return i(A?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),A()):r()},n.range=function(t){return arguments.length?(a=[+t[0],+t[1]],A()):a.slice()},n.rangeRound=function(t){return a=[+t[0],+t[1]],o=!0,A()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(o=!!t,A()):o},n.padding=function(t){return arguments.length?(s=Math.min(1,c=+t),A()):s},n.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),A()):s},n.paddingOuter=function(t){return arguments.length?(c=+t,A()):c},n.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),A()):l},n.copy=function(){return op(r(),a).round(o).paddingInner(s).paddingOuter(c).align(l)},Zd.apply(A(),arguments)}function sp(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return sp(e())},t}function cp(){return sp(op.apply(null,arguments).paddingInner(1))}function lp(t){return+t}var Ap=[0,1];function up(t){return t}function hp(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function fp(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function dp(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=hp(i,r),a=n(o,a)):(r=hp(r,i),a=n(a,o)),function(t){return a(r(t))}}function pp(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=hp(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=l(t,e,1,r)-1;return a[n](i[n](e))}}function gp(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function mp(){var t,e,n,r,i,a,o=Ap,s=Ap,c=kn,l=up;function A(){return r=Math.min(o.length,s.length)>2?pp:dp,i=a=null,u}function u(e){return isNaN(e=+e)?n:(i||(i=r(o.map(t),s,c)))(t(l(e)))}return u.invert=function(n){return l(e((a||(a=r(s,o.map(t),En)))(n)))},u.domain=function(t){return arguments.length?(o=np.call(t,lp),l===up||(l=fp(o)),A()):o.slice()},u.range=function(t){return arguments.length?(s=rp.call(t),A()):s.slice()},u.rangeRound=function(t){return s=rp.call(t),c=_d,A()},u.clamp=function(t){return arguments.length?(l=t?fp(o):up,u):l!==up},u.interpolate=function(t){return arguments.length?(c=t,A()):c},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,r){return t=n,e=r,A()}}function yp(t,e){return mp()(t,e)}function vp(t,e,n,r){var i,a=S(t,e,n);switch((r=nc(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=pc(a,o))||(r.precision=i),lc(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=gc(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=dc(a))||(r.precision=i-2*("%"===r.type))}return cc(r)}function bp(t){var e=t.domain;return t.ticks=function(t){var n=e();return T(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return vp(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,s=i[a],c=i[o];return c<s&&(r=s,s=c,c=r,r=a,a=o,o=r),(r=k(s,c,n))>0?r=k(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=k(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[a]=Math.floor(s/r)*r,i[o]=Math.ceil(c/r)*r,e(i)):r<0&&(i[a]=Math.ceil(s*r)/r,i[o]=Math.floor(c*r)/r,e(i)),t},t}function wp(){var t=yp(up,up);return t.copy=function(){return gp(t,wp())},Zd.apply(t,arguments),bp(t)}function _p(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=np.call(e,lp),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return _p(t).unknown(e)},t=arguments.length?np.call(t,lp):[0,1],bp(n)}function Ep(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function Cp(t){return Math.log(t)}function xp(t){return Math.exp(t)}function Bp(t){return-Math.log(-t)}function Tp(t){return-Math.exp(-t)}function kp(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Sp(t){return function(e){return-t(-e)}}function Ip(t){var e,n,r=t(Cp,xp),i=r.domain,a=10;function o(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(a),n=function(t){return 10===t?kp:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(a),i()[0]<0?(e=Sp(e),n=Sp(n),t(Bp,Tp)):t(Cp,xp),r}return r.base=function(t){return arguments.length?(a=+t,o()):a},r.domain=function(t){return arguments.length?(i(t),o()):i()},r.ticks=function(t){var r,o=i(),s=o[0],c=o[o.length-1];(r=c<s)&&(h=s,s=c,c=h);var l,A,u,h=e(s),f=e(c),d=null==t?10:+t,p=[];if(!(a%1)&&f-h<d){if(h=Math.round(h)-1,f=Math.round(f)+1,s>0){for(;h<f;++h)for(A=1,l=n(h);A<a;++A)if(!((u=l*A)<s)){if(u>c)break;p.push(u)}}else for(;h<f;++h)for(A=a-1,l=n(h);A>=1;--A)if(!((u=l*A)<s)){if(u>c)break;p.push(u)}}else p=T(h,f,Math.min(f-h,d)).map(n);return r?p.reverse():p},r.tickFormat=function(t,i){if(null==i&&(i=10===a?".0e":","),"function"!=typeof i&&(i=cc(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a<a-.5&&(r*=a),r<=o?i(t):""}},r.nice=function(){return i(Ep(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Np(){var t=Ip(mp()).domain([1,10]);return t.copy=function(){return gp(t,Np()).base(t.base())},Zd.apply(t,arguments),t}function Mp(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Fp(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Dp(t){var e=1,n=t(Mp(e),Fp(e));return n.constant=function(n){return arguments.length?t(Mp(e=+n),Fp(e)):e},bp(n)}function Lp(){var t=Dp(mp());return t.copy=function(){return gp(t,Lp()).constant(t.constant())},Zd.apply(t,arguments)}function Op(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Rp(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Up(t){return t<0?-t*t:t*t}function Pp(t){var e=t(up,up),n=1;function r(){return 1===n?t(up,up):.5===n?t(Rp,Up):t(Op(n),Op(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},bp(e)}function Qp(){var t=Pp(mp());return t.copy=function(){return gp(t,Qp()).exponent(t.exponent())},Zd.apply(t,arguments),t}function Hp(){return Qp.apply(null,arguments).exponent(.5)}function Gp(){var t,e=[],n=[],r=[];function a(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t<i;)r[t-1]=M(e,t/i);return o}function o(e){return isNaN(e=+e)?t:n[l(r,e)]}return o.invertExtent=function(t){var i=n.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:e[0],i<r.length?r[i]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,r=0,o=t.length;r<o;++r)null==(n=t[r])||isNaN(n=+n)||e.push(n);return e.sort(i),a()},o.range=function(t){return arguments.length?(n=rp.call(t),a()):n.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return Gp().domain(e).range(n).unknown(t)},Zd.apply(o,arguments)}function jp(){var t,e=0,n=1,r=1,i=[.5],a=[0,1];function o(e){return e<=e?a[l(i,e,0,r)]:t}function s(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return o}return o.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],s()):[e,n]},o.range=function(t){return arguments.length?(r=(a=rp.call(t)).length-1,s()):a.slice()},o.invertExtent=function(t){var o=a.indexOf(t);return o<0?[NaN,NaN]:o<1?[e,i[0]]:o>=r?[i[r-1],n]:[i[o-1],i[o]]},o.unknown=function(e){return arguments.length?(t=e,o):o},o.thresholds=function(){return i.slice()},o.copy=function(){return jp().domain([e,n]).range(a).unknown(t)},Zd.apply(bp(o),arguments)}function Kp(){var t,e=[.5],n=[0,1],r=1;function i(i){return i<=i?n[l(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=rp.call(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=rp.call(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Kp().domain(e).range(n).unknown(t)},Zd.apply(i,arguments)}var $p=new Date,Yp=new Date;function Vp(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return Vp((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return $p.setTime(+e),Yp.setTime(+r),t($p),t(Yp),Math.floor(n($p,Yp))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var zp=Vp((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));zp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Vp((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Wp=zp;var qp=zp.range,Xp=Vp((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const Jp=Xp;var Zp=Xp.range,tg=6e4,eg=36e5,ng=6048e5;function rg(t){return Vp((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*tg)/ng}))}var ig=rg(0),ag=rg(1),og=rg(2),sg=rg(3),cg=rg(4),lg=rg(5),Ag=rg(6),ug=ig.range,hg=ag.range,fg=og.range,dg=sg.range,pg=cg.range,gg=lg.range,mg=Ag.range,yg=Vp((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*tg)/864e5}),(function(t){return t.getDate()-1}));const vg=yg;var bg=yg.range,wg=Vp((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*tg)}),(function(t,e){t.setTime(+t+e*eg)}),(function(t,e){return(e-t)/eg}),(function(t){return t.getHours()}));const _g=wg;var Eg=wg.range,Cg=Vp((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+e*tg)}),(function(t,e){return(e-t)/tg}),(function(t){return t.getMinutes()}));const xg=Cg;var Bg=Cg.range,Tg=Vp((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()}));const kg=Tg;var Sg=Tg.range,Ig=Vp((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Ig.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Vp((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Ig:null};const Ng=Ig;var Mg=Ig.range;function Fg(t){return Vp((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/ng}))}var Dg=Fg(0),Lg=Fg(1),Og=Fg(2),Rg=Fg(3),Ug=Fg(4),Pg=Fg(5),Qg=Fg(6),Hg=Dg.range,Gg=Lg.range,jg=Og.range,Kg=Rg.range,$g=Ug.range,Yg=Pg.range,Vg=Qg.range,zg=Vp((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}));const Wg=zg;var qg=zg.range,Xg=Vp((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Xg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Vp((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Jg=Xg;var Zg=Xg.range;function tm(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function em(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function nm(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function rm(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,l=pm(i),A=gm(i),u=pm(a),h=gm(a),f=pm(o),d=gm(o),p=pm(s),g=gm(s),m=pm(c),y=gm(c),v={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Rm,e:Rm,f:Gm,g:Zm,G:ey,H:Um,I:Pm,j:Qm,L:Hm,m:jm,M:Km,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Cy,s:xy,S:$m,u:Ym,U:Vm,V:Wm,w:qm,W:Xm,x:null,X:null,y:Jm,Y:ty,Z:ny,"%":Ey},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:ry,e:ry,f:cy,g:vy,G:wy,H:iy,I:ay,j:oy,L:sy,m:ly,M:Ay,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Cy,s:xy,S:uy,u:hy,U:fy,V:py,w:gy,W:my,x:null,X:null,y:yy,Y:by,Z:_y,"%":Ey},w={a:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return C(t,e,n,r)},d:Tm,e:Tm,f:Fm,g:Em,G:_m,H:Sm,I:Sm,j:km,L:Mm,m:Bm,M:Im,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=A[r[0].toLowerCase()],n+r[0].length):-1},q:xm,Q:Lm,s:Om,S:Nm,u:ym,U:vm,V:bm,w:mm,W:wm,x:function(t,e,r){return C(t,n,e,r)},X:function(t,e,n){return C(t,r,e,n)},y:Em,Y:_m,Z:Cm,"%":Dm};function _(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===t.charCodeAt(s)&&(o.push(t.slice(c,s)),null!=(i=lm[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),c=s+1);return o.push(t.slice(c,s)),o.join("")}}function E(t,e){return function(n){var r,i,a=nm(1900,void 0,1);if(C(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=em(nm(a.y,0,1))).getUTCDay(),r=i>4||0===i?Lg.ceil(r):Lg(r),r=Wg.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=tm(nm(a.y,0,1))).getDay(),r=i>4||0===i?ag.ceil(r):ag(r),r=vg.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?em(nm(a.y,0,1)).getUTCDay():tm(nm(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,em(a)):tm(a)}}function C(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o<s;){if(r>=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in lm?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return v.x=_(n,v),v.X=_(r,v),v.c=_(e,v),b.x=_(n,b),b.X=_(r,b),b.c=_(e,b),{format:function(t){var e=_(t+="",v);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t+="",!0);return e.toString=function(){return t},e}}}var im,am,om,sm,cm,lm={"-":"",_:" ",0:"0"},Am=/^\s*\d+/,um=/^%/,hm=/[\\^$*+?|[\]().{}]/g;function fm(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function dm(t){return t.replace(hm,"\\$&")}function pm(t){return new RegExp("^(?:"+t.map(dm).join("|")+")","i")}function gm(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function mm(t,e,n){var r=Am.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function ym(t,e,n){var r=Am.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function vm(t,e,n){var r=Am.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function bm(t,e,n){var r=Am.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function wm(t,e,n){var r=Am.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function _m(t,e,n){var r=Am.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Em(t,e,n){var r=Am.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Cm(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function xm(t,e,n){var r=Am.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Bm(t,e,n){var r=Am.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Tm(t,e,n){var r=Am.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function km(t,e,n){var r=Am.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Sm(t,e,n){var r=Am.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Im(t,e,n){var r=Am.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Nm(t,e,n){var r=Am.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Mm(t,e,n){var r=Am.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Fm(t,e,n){var r=Am.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Dm(t,e,n){var r=um.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lm(t,e,n){var r=Am.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Om(t,e,n){var r=Am.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Rm(t,e){return fm(t.getDate(),e,2)}function Um(t,e){return fm(t.getHours(),e,2)}function Pm(t,e){return fm(t.getHours()%12||12,e,2)}function Qm(t,e){return fm(1+vg.count(Wp(t),t),e,3)}function Hm(t,e){return fm(t.getMilliseconds(),e,3)}function Gm(t,e){return Hm(t,e)+"000"}function jm(t,e){return fm(t.getMonth()+1,e,2)}function Km(t,e){return fm(t.getMinutes(),e,2)}function $m(t,e){return fm(t.getSeconds(),e,2)}function Ym(t){var e=t.getDay();return 0===e?7:e}function Vm(t,e){return fm(ig.count(Wp(t)-1,t),e,2)}function zm(t){var e=t.getDay();return e>=4||0===e?cg(t):cg.ceil(t)}function Wm(t,e){return t=zm(t),fm(cg.count(Wp(t),t)+(4===Wp(t).getDay()),e,2)}function qm(t){return t.getDay()}function Xm(t,e){return fm(ag.count(Wp(t)-1,t),e,2)}function Jm(t,e){return fm(t.getFullYear()%100,e,2)}function Zm(t,e){return fm((t=zm(t)).getFullYear()%100,e,2)}function ty(t,e){return fm(t.getFullYear()%1e4,e,4)}function ey(t,e){var n=t.getDay();return fm((t=n>=4||0===n?cg(t):cg.ceil(t)).getFullYear()%1e4,e,4)}function ny(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+fm(e/60|0,"0",2)+fm(e%60,"0",2)}function ry(t,e){return fm(t.getUTCDate(),e,2)}function iy(t,e){return fm(t.getUTCHours(),e,2)}function ay(t,e){return fm(t.getUTCHours()%12||12,e,2)}function oy(t,e){return fm(1+Wg.count(Jg(t),t),e,3)}function sy(t,e){return fm(t.getUTCMilliseconds(),e,3)}function cy(t,e){return sy(t,e)+"000"}function ly(t,e){return fm(t.getUTCMonth()+1,e,2)}function Ay(t,e){return fm(t.getUTCMinutes(),e,2)}function uy(t,e){return fm(t.getUTCSeconds(),e,2)}function hy(t){var e=t.getUTCDay();return 0===e?7:e}function fy(t,e){return fm(Dg.count(Jg(t)-1,t),e,2)}function dy(t){var e=t.getUTCDay();return e>=4||0===e?Ug(t):Ug.ceil(t)}function py(t,e){return t=dy(t),fm(Ug.count(Jg(t),t)+(4===Jg(t).getUTCDay()),e,2)}function gy(t){return t.getUTCDay()}function my(t,e){return fm(Lg.count(Jg(t)-1,t),e,2)}function yy(t,e){return fm(t.getUTCFullYear()%100,e,2)}function vy(t,e){return fm((t=dy(t)).getUTCFullYear()%100,e,2)}function by(t,e){return fm(t.getUTCFullYear()%1e4,e,4)}function wy(t,e){var n=t.getUTCDay();return fm((t=n>=4||0===n?Ug(t):Ug.ceil(t)).getUTCFullYear()%1e4,e,4)}function _y(){return"+0000"}function Ey(){return"%"}function Cy(t){return+t}function xy(t){return Math.floor(+t/1e3)}function By(t){return im=rm(t),am=im.format,om=im.parse,sm=im.utcFormat,cm=im.utcParse,im}By({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ty=31536e6;function ky(t){return new Date(t)}function Sy(t){return t instanceof Date?+t:+new Date(+t)}function Iy(t,e,n,r,i,o,s,c,l){var A=yp(up,up),u=A.invert,h=A.domain,f=l(".%L"),d=l(":%S"),p=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),w=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,Ty]];function _(a){return(s(a)<a?f:o(a)<a?d:i(a)<a?p:r(a)<a?g:e(a)<a?n(a)<a?m:y:t(a)<a?v:b)(a)}function E(e,n,r,i){if(null==e&&(e=10),"number"==typeof e){var o=Math.abs(r-n)/e,s=a((function(t){return t[2]})).right(w,o);s===w.length?(i=S(n/Ty,r/Ty,e),e=t):s?(i=(s=w[o/w[s-1][2]<w[s][2]/o?s-1:s])[1],e=s[0]):(i=Math.max(S(n,r,e),1),e=c)}return null==i?e:e.every(i)}return A.invert=function(t){return new Date(u(t))},A.domain=function(t){return arguments.length?h(np.call(t,Sy)):h().map(ky)},A.ticks=function(t,e){var n,r=h(),i=r[0],a=r[r.length-1],o=a<i;return o&&(n=i,i=a,a=n),n=(n=E(t,i,a,e))?n.range(i,a+1):[],o?n.reverse():n},A.tickFormat=function(t,e){return null==e?_:l(e)},A.nice=function(t,e){var n=h();return(t=E(t,n[0],n[n.length-1],e))?h(Ep(n,t)):A},A.copy=function(){return gp(A,Iy(t,e,n,r,i,o,s,c,l))},A}function Ny(){return Zd.apply(Iy(Wp,Jp,ig,vg,_g,xg,kg,Ng,am).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var My=Vp((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const Fy=My;var Dy=My.range,Ly=Vp((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*eg)}),(function(t,e){return(e-t)/eg}),(function(t){return t.getUTCHours()}));const Oy=Ly;var Ry=Ly.range,Uy=Vp((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*tg)}),(function(t,e){return(e-t)/tg}),(function(t){return t.getUTCMinutes()}));const Py=Uy;var Qy=Uy.range;function Hy(){return Zd.apply(Iy(Jg,Fy,Dg,Wg,Oy,Py,kg,Ng,sm).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gy(){var t,e,n,r,i,a=0,o=1,s=up,c=!1;function l(e){return isNaN(e=+e)?i:s(0===n?.5:(e=(r(e)-t)*n,c?Math.max(0,Math.min(1,e)):e))}return l.domain=function(i){return arguments.length?(t=r(a=+i[0]),e=r(o=+i[1]),n=t===e?0:1/(e-t),l):[a,o]},l.clamp=function(t){return arguments.length?(c=!!t,l):c},l.interpolator=function(t){return arguments.length?(s=t,l):s},l.unknown=function(t){return arguments.length?(i=t,l):i},function(i){return r=i,t=i(a),e=i(o),n=t===e?0:1/(e-t),l}}function jy(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ky(){var t=bp(Gy()(up));return t.copy=function(){return jy(t,Ky())},tp.apply(t,arguments)}function $y(){var t=Ip(Gy()).domain([1,10]);return t.copy=function(){return jy(t,$y()).base(t.base())},tp.apply(t,arguments)}function Yy(){var t=Dp(Gy());return t.copy=function(){return jy(t,Yy()).constant(t.constant())},tp.apply(t,arguments)}function Vy(){var t=Pp(Gy());return t.copy=function(){return jy(t,Vy()).exponent(t.exponent())},tp.apply(t,arguments)}function zy(){return Vy.apply(null,arguments).exponent(.5)}function Wy(){var t=[],e=up;function n(n){if(!isNaN(n=+n))return e((l(t,n)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var r,a=0,o=e.length;a<o;++a)null==(r=e[a])||isNaN(r=+r)||t.push(r);return t.sort(i),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Wy(e).domain(t)},tp.apply(n,arguments)}function qy(){var t,e,n,r,i,a,o,s=0,c=.5,l=1,A=up,u=!1;function h(t){return isNaN(t=+t)?o:(t=.5+((t=+a(t))-e)*(t<e?r:i),A(u?Math.max(0,Math.min(1,t)):t))}return h.domain=function(o){return arguments.length?(t=a(s=+o[0]),e=a(c=+o[1]),n=a(l=+o[2]),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),h):[s,c,l]},h.clamp=function(t){return arguments.length?(u=!!t,h):u},h.interpolator=function(t){return arguments.length?(A=t,h):A},h.unknown=function(t){return arguments.length?(o=t,h):o},function(o){return a=o,t=o(s),e=o(c),n=o(l),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),h}}function Xy(){var t=bp(qy()(up));return t.copy=function(){return jy(t,Xy())},tp.apply(t,arguments)}function Jy(){var t=Ip(qy()).domain([.1,1,10]);return t.copy=function(){return jy(t,Jy()).base(t.base())},tp.apply(t,arguments)}function Zy(){var t=Dp(qy());return t.copy=function(){return jy(t,Zy()).constant(t.constant())},tp.apply(t,arguments)}function tv(){var t=Pp(qy());return t.copy=function(){return jy(t,tv()).exponent(t.exponent())},tp.apply(t,arguments)}function ev(){return tv.apply(null,arguments).exponent(.5)}function nv(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}const rv=nv("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),iv=nv("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),av=nv("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),ov=nv("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),sv=nv("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),cv=nv("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),lv=nv("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Av=nv("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),uv=nv("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),hv=nv("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function fv(t){return gn(t[t.length-1])}var dv=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(nv);const pv=fv(dv);var gv=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(nv);const mv=fv(gv);var yv=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(nv);const vv=fv(yv);var bv=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(nv);const wv=fv(bv);var _v=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(nv);const Ev=fv(_v);var Cv=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(nv);const xv=fv(Cv);var Bv=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(nv);const Tv=fv(Bv);var kv=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(nv);const Sv=fv(kv);var Iv=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(nv);const Nv=fv(Iv);var Mv=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(nv);const Fv=fv(Mv);var Dv=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(nv);const Lv=fv(Dv);var Ov=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(nv);const Rv=fv(Ov);var Uv=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(nv);const Pv=fv(Uv);var Qv=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(nv);const Hv=fv(Qv);var Gv=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(nv);const jv=fv(Gv);var Kv=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(nv);const $v=fv(Kv);var Yv=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(nv);const Vv=fv(Yv);var zv=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(nv);const Wv=fv(zv);var qv=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(nv);const Xv=fv(qv);var Jv=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(nv);const Zv=fv(Jv);var tb=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(nv);const eb=fv(tb);var nb=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(nv);const rb=fv(nb);var ib=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(nv);const ab=fv(ib);var ob=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(nv);const sb=fv(ob);var cb=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(nv);const lb=fv(cb);var Ab=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(nv);const ub=fv(Ab);var hb=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(nv);const fb=fv(hb);function db(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}const pb=Ld(Ua(300,.5,0),Ua(-240,.5,1));var gb=Ld(Ua(-100,.75,.35),Ua(80,1.5,.8)),mb=Ld(Ua(260,.75,.35),Ua(80,1.5,.8)),yb=Ua();function vb(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return yb.h=360*t-100,yb.s=1.5-1.5*e,yb.l=.8-.9*e,yb+""}var bb=qe(),wb=Math.PI/3,_b=2*Math.PI/3;function Eb(t){var e;return t=(.5-t)*Math.PI,bb.r=255*(e=Math.sin(t))*e,bb.g=255*(e=Math.sin(t+wb))*e,bb.b=255*(e=Math.sin(t+_b))*e,bb+""}function Cb(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function xb(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const Bb=xb(nv("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Tb=xb(nv("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),kb=xb(nv("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Sb=xb(nv("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Ib(t){return Ce(ie(t).call(document.documentElement))}var Nb=0;function Mb(){return new Fb}function Fb(){this._="@"+(++Nb).toString(36)}function Db(t){return"string"==typeof t?new we([document.querySelectorAll(t)],[document.documentElement]):new we([null==t?[]:t],be)}function Lb(t,e){null==e&&(e=Sn().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n<r;++n)i[n]=In(t,e[n]);return i}function Ob(t){return function(){return t}}Fb.prototype=Mb.prototype={constructor:Fb,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Rb=Math.abs,Ub=Math.atan2,Pb=Math.cos,Qb=Math.max,Hb=Math.min,Gb=Math.sin,jb=Math.sqrt,Kb=1e-12,$b=Math.PI,Yb=$b/2,Vb=2*$b;function zb(t){return t>1?0:t<-1?$b:Math.acos(t)}function Wb(t){return t>=1?Yb:t<=-1?-Yb:Math.asin(t)}function qb(t){return t.innerRadius}function Xb(t){return t.outerRadius}function Jb(t){return t.startAngle}function Zb(t){return t.endAngle}function tw(t){return t&&t.padAngle}function ew(t,e,n,r,i,a,o,s){var c=n-t,l=r-e,A=o-i,u=s-a,h=u*c-A*l;if(!(h*h<Kb))return[t+(h=(A*(e-a)-u*(t-i))/h)*c,e+h*l]}function nw(t,e,n,r,i,a,o){var s=t-n,c=e-r,l=(o?a:-a)/jb(s*s+c*c),A=l*c,u=-l*s,h=t+A,f=e+u,d=n+A,p=r+u,g=(h+d)/2,m=(f+p)/2,y=d-h,v=p-f,b=y*y+v*v,w=i-a,_=h*p-d*f,E=(v<0?-1:1)*jb(Qb(0,w*w*b-_*_)),C=(_*v-y*E)/b,x=(-_*y-v*E)/b,B=(_*v+y*E)/b,T=(-_*y+v*E)/b,k=C-g,S=x-m,I=B-g,N=T-m;return k*k+S*S>I*I+N*N&&(C=B,x=T),{cx:C,cy:x,x01:-A,y01:-u,x11:C*(i/w-1),y11:x*(i/w-1)}}function rw(){var t=qb,e=Xb,n=Ob(0),r=null,i=Jb,a=Zb,o=tw,s=null;function c(){var c,l,A=+t.apply(this,arguments),u=+e.apply(this,arguments),h=i.apply(this,arguments)-Yb,f=a.apply(this,arguments)-Yb,d=Rb(f-h),p=f>h;if(s||(s=c=$i()),u<A&&(l=u,u=A,A=l),u>Kb)if(d>Vb-Kb)s.moveTo(u*Pb(h),u*Gb(h)),s.arc(0,0,u,h,f,!p),A>Kb&&(s.moveTo(A*Pb(f),A*Gb(f)),s.arc(0,0,A,f,h,p));else{var g,m,y=h,v=f,b=h,w=f,_=d,E=d,C=o.apply(this,arguments)/2,x=C>Kb&&(r?+r.apply(this,arguments):jb(A*A+u*u)),B=Hb(Rb(u-A)/2,+n.apply(this,arguments)),T=B,k=B;if(x>Kb){var S=Wb(x/A*Gb(C)),I=Wb(x/u*Gb(C));(_-=2*S)>Kb?(b+=S*=p?1:-1,w-=S):(_=0,b=w=(h+f)/2),(E-=2*I)>Kb?(y+=I*=p?1:-1,v-=I):(E=0,y=v=(h+f)/2)}var N=u*Pb(y),M=u*Gb(y),F=A*Pb(w),D=A*Gb(w);if(B>Kb){var L,O=u*Pb(v),R=u*Gb(v),U=A*Pb(b),P=A*Gb(b);if(d<$b&&(L=ew(N,M,U,P,O,R,F,D))){var Q=N-L[0],H=M-L[1],G=O-L[0],j=R-L[1],K=1/Gb(zb((Q*G+H*j)/(jb(Q*Q+H*H)*jb(G*G+j*j)))/2),$=jb(L[0]*L[0]+L[1]*L[1]);T=Hb(B,(A-$)/(K-1)),k=Hb(B,(u-$)/(K+1))}}E>Kb?k>Kb?(g=nw(U,P,N,M,u,k,p),m=nw(O,R,F,D,u,k,p),s.moveTo(g.cx+g.x01,g.cy+g.y01),k<B?s.arc(g.cx,g.cy,k,Ub(g.y01,g.x01),Ub(m.y01,m.x01),!p):(s.arc(g.cx,g.cy,k,Ub(g.y01,g.x01),Ub(g.y11,g.x11),!p),s.arc(0,0,u,Ub(g.cy+g.y11,g.cx+g.x11),Ub(m.cy+m.y11,m.cx+m.x11),!p),s.arc(m.cx,m.cy,k,Ub(m.y11,m.x11),Ub(m.y01,m.x01),!p))):(s.moveTo(N,M),s.arc(0,0,u,y,v,!p)):s.moveTo(N,M),A>Kb&&_>Kb?T>Kb?(g=nw(F,D,O,R,A,-T,p),m=nw(N,M,U,P,A,-T,p),s.lineTo(g.cx+g.x01,g.cy+g.y01),T<B?s.arc(g.cx,g.cy,T,Ub(g.y01,g.x01),Ub(m.y01,m.x01),!p):(s.arc(g.cx,g.cy,T,Ub(g.y01,g.x01),Ub(g.y11,g.x11),!p),s.arc(0,0,A,Ub(g.cy+g.y11,g.cx+g.x11),Ub(m.cy+m.y11,m.cx+m.x11),p),s.arc(m.cx,m.cy,T,Ub(m.y11,m.x11),Ub(m.y01,m.x01),!p))):s.arc(0,0,A,w,b,p):s.lineTo(F,D)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-$b/2;return[Pb(r)*n,Gb(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Ob(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Ob(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Ob(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Ob(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Ob(+t),c):i},c.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Ob(+t),c):a},c.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Ob(+t),c):o},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}function iw(t){this._context=t}function aw(t){return new iw(t)}function ow(t){return t[0]}function sw(t){return t[1]}function cw(){var t=ow,e=sw,n=Ob(!0),r=null,i=aw,a=null;function o(o){var s,c,l,A=o.length,u=!1;for(null==r&&(a=i(l=$i())),s=0;s<=A;++s)!(s<A&&n(c=o[s],s,o))===u&&((u=!u)?a.lineStart():a.lineEnd()),u&&a.point(+t(c,s,o),+e(c,s,o));if(l)return a=null,l+""||null}return o.x=function(e){return arguments.length?(t="function"==typeof e?e:Ob(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:Ob(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:Ob(!!t),o):n},o.curve=function(t){return arguments.length?(i=t,null!=r&&(a=i(r)),o):i},o.context=function(t){return arguments.length?(null==t?r=a=null:a=i(r=t),o):r},o}function lw(){var t=ow,e=null,n=Ob(0),r=sw,i=Ob(!0),a=null,o=aw,s=null;function c(c){var l,A,u,h,f,d=c.length,p=!1,g=new Array(d),m=new Array(d);for(null==a&&(s=o(f=$i())),l=0;l<=d;++l){if(!(l<d&&i(h=c[l],l,c))===p)if(p=!p)A=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),u=l-1;u>=A;--u)s.point(g[u],m[u]);s.lineEnd(),s.areaEnd()}p&&(g[l]=+t(h,l,c),m[l]=+n(h,l,c),s.point(e?+e(h,l,c):g[l],r?+r(h,l,c):m[l]))}if(f)return s=null,f+""||null}function l(){return cw().defined(i).curve(o).context(a)}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:Ob(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:Ob(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Ob(+t),c):e},c.y=function(t){return arguments.length?(n="function"==typeof t?t:Ob(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:Ob(+t),c):n},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Ob(+t),c):r},c.lineX0=c.lineY0=function(){return l().x(t).y(n)},c.lineY1=function(){return l().x(t).y(r)},c.lineX1=function(){return l().x(e).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:Ob(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),c):a},c}function Aw(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function uw(t){return t}function hw(){var t=uw,e=Aw,n=null,r=Ob(0),i=Ob(Vb),a=Ob(0);function o(o){var s,c,l,A,u,h=o.length,f=0,d=new Array(h),p=new Array(h),g=+r.apply(this,arguments),m=Math.min(Vb,Math.max(-Vb,i.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/h,a.apply(this,arguments)),v=y*(m<0?-1:1);for(s=0;s<h;++s)(u=p[d[s]=s]=+t(o[s],s,o))>0&&(f+=u);for(null!=e?d.sort((function(t,n){return e(p[t],p[n])})):null!=n&&d.sort((function(t,e){return n(o[t],o[e])})),s=0,l=f?(m-h*v)/f:0;s<h;++s,g=A)c=d[s],A=g+((u=p[c])>0?u*l:0)+v,p[c]={data:o[c],index:s,value:u,startAngle:g,endAngle:A,padAngle:y};return p}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:Ob(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Ob(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Ob(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Ob(+t),o):a},o}iw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var fw=pw(aw);function dw(t){this._curve=t}function pw(t){function e(e){return new dw(t(e))}return e._curve=t,e}function gw(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(pw(t)):e()._curve},t}function mw(){return gw(cw().curve(fw))}function yw(){var t=lw().curve(fw),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return gw(n())},delete t.lineX0,t.lineEndAngle=function(){return gw(r())},delete t.lineX1,t.lineInnerRadius=function(){return gw(i())},delete t.lineY0,t.lineOuterRadius=function(){return gw(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(pw(t)):e()._curve},t}function vw(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}dw.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var bw=Array.prototype.slice;function ww(t){return t.source}function _w(t){return t.target}function Ew(t){var e=ww,n=_w,r=ow,i=sw,a=null;function o(){var o,s=bw.call(arguments),c=e.apply(this,s),l=n.apply(this,s);if(a||(a=o=$i()),t(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),o)return a=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(r="function"==typeof t?t:Ob(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:Ob(+t),o):i},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}function Cw(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function xw(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function Bw(t,e,n,r,i){var a=vw(e,n),o=vw(e,n=(n+i)/2),s=vw(r,n),c=vw(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],c[0],c[1])}function Tw(){return Ew(Cw)}function kw(){return Ew(xw)}function Sw(){var t=Ew(Bw);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const Iw={draw:function(t,e){var n=Math.sqrt(e/$b);t.moveTo(n,0),t.arc(0,0,n,0,Vb)}},Nw={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};var Mw=Math.sqrt(1/3),Fw=2*Mw;const Dw={draw:function(t,e){var n=Math.sqrt(e/Fw),r=n*Mw;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var Lw=Math.sin($b/10)/Math.sin(7*$b/10),Ow=Math.sin(Vb/10)*Lw,Rw=-Math.cos(Vb/10)*Lw;const Uw={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=Ow*n,i=Rw*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=Vb*a/5,s=Math.cos(o),c=Math.sin(o);t.lineTo(c*n,-s*n),t.lineTo(s*r-c*i,c*r+s*i)}t.closePath()}},Pw={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}};var Qw=Math.sqrt(3);const Hw={draw:function(t,e){var n=-Math.sqrt(e/(3*Qw));t.moveTo(0,2*n),t.lineTo(-Qw*n,-n),t.lineTo(Qw*n,-n),t.closePath()}};var Gw=-.5,jw=Math.sqrt(3)/2,Kw=1/Math.sqrt(12),$w=3*(Kw/2+1);const Yw={draw:function(t,e){var n=Math.sqrt(e/$w),r=n/2,i=n*Kw,a=r,o=n*Kw+n,s=-a,c=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(s,c),t.lineTo(Gw*r-jw*i,jw*r+Gw*i),t.lineTo(Gw*a-jw*o,jw*a+Gw*o),t.lineTo(Gw*s-jw*c,jw*s+Gw*c),t.lineTo(Gw*r+jw*i,Gw*i-jw*r),t.lineTo(Gw*a+jw*o,Gw*o-jw*a),t.lineTo(Gw*s+jw*c,Gw*c-jw*s),t.closePath()}};var Vw=[Iw,Nw,Dw,Pw,Uw,Hw,Yw];function zw(){var t=Ob(Iw),e=Ob(64),n=null;function r(){var r;if(n||(n=r=$i()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:Ob(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:Ob(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function Ww(){}function qw(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Xw(t){this._context=t}function Jw(t){return new Xw(t)}function Zw(t){this._context=t}function t_(t){return new Zw(t)}function e_(t){this._context=t}function n_(t){return new e_(t)}function r_(t,e){this._basis=new Xw(t),this._beta=e}Xw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:qw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:qw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Zw.prototype={areaStart:Ww,areaEnd:Ww,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:qw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},e_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:qw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},r_.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*e[c]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const i_=function t(e){function n(t){return 1===e?new Xw(t):new r_(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function a_(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function o_(t,e){this._context=t,this._k=(1-e)/6}o_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:a_(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:a_(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const s_=function t(e){function n(t){return new o_(t,e)}return n.tension=function(e){return t(+e)},n}(0);function c_(t,e){this._context=t,this._k=(1-e)/6}c_.prototype={areaStart:Ww,areaEnd:Ww,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:a_(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const l_=function t(e){function n(t){return new c_(t,e)}return n.tension=function(e){return t(+e)},n}(0);function A_(t,e){this._context=t,this._k=(1-e)/6}A_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:a_(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const u_=function t(e){function n(t){return new A_(t,e)}return n.tension=function(e){return t(+e)},n}(0);function h_(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Kb){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Kb){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,A=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/A,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/A}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function f_(t,e){this._context=t,this._alpha=e}f_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:h_(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const d_=function t(e){function n(t){return e?new f_(t,e):new o_(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function p_(t,e){this._context=t,this._alpha=e}p_.prototype={areaStart:Ww,areaEnd:Ww,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:h_(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const g_=function t(e){function n(t){return e?new p_(t,e):new c_(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function m_(t,e){this._context=t,this._alpha=e}m_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:h_(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const y_=function t(e){function n(t){return e?new m_(t,e):new A_(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function v_(t){this._context=t}function b_(t){return new v_(t)}function w_(t){return t<0?-1:1}function __(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(w_(a)+w_(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function E_(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function C_(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function x_(t){this._context=t}function B_(t){this._context=new T_(t)}function T_(t){this._context=t}function k_(t){return new x_(t)}function S_(t){return new B_(t)}function I_(t){this._context=t}function N_(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function M_(t){return new I_(t)}function F_(t,e){this._context=t,this._t=e}function D_(t){return new F_(t,.5)}function L_(t){return new F_(t,0)}function O_(t){return new F_(t,1)}function R_(t,e){if((i=t.length)>1)for(var n,r,i,a=1,o=t[e[0]],s=o.length;a<i;++a)for(r=o,o=t[e[a]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function U_(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function P_(t,e){return t[e]}function Q_(){var t=Ob([]),e=U_,n=R_,r=P_;function i(i){var a,o,s=t.apply(this,arguments),c=i.length,l=s.length,A=new Array(l);for(a=0;a<l;++a){for(var u,h=s[a],f=A[a]=new Array(c),d=0;d<c;++d)f[d]=u=[0,+r(i[d],h,d,i)],u.data=i[d];f.key=h}for(a=0,o=e(A);a<l;++a)A[o[a]].index=a;return n(A,o),A}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:Ob(bw.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:Ob(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?U_:"function"==typeof t?t:Ob(bw.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?R_:t,i):n},i}function H_(t,e){if((r=t.length)>0){for(var n,r,i,a=0,o=t[0].length;a<o;++a){for(i=n=0;n<r;++n)i+=t[n][a][1]||0;if(i)for(n=0;n<r;++n)t[n][a][1]/=i}R_(t,e)}}function G_(t,e){if((s=t.length)>0)for(var n,r,i,a,o,s,c=0,l=t[e[0]].length;c<l;++c)for(a=o=0,n=0;n<s;++n)(i=(r=t[e[n]][c])[1]-r[0])>0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)}function j_(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r<a;++r){for(var o=0,s=0;o<n;++o)s+=t[o][r][1]||0;i[r][1]+=i[r][0]=-s/2}R_(t,e)}}function K_(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;o<r;++o){for(var s=0,c=0,l=0;s<i;++s){for(var A=t[e[s]],u=A[o][1]||0,h=(u-(A[o-1][1]||0))/2,f=0;f<s;++f){var d=t[e[f]];h+=(d[o][1]||0)-(d[o-1][1]||0)}c+=u,l+=h*u}n[o-1][1]+=n[o-1][0]=a,c&&(a-=l/c)}n[o-1][1]+=n[o-1][0]=a,R_(t,e)}}function $_(t){var e=t.map(Y_);return U_(t).sort((function(t,n){return e[t]-e[n]}))}function Y_(t){for(var e,n=-1,r=0,i=t.length,a=-1/0;++n<i;)(e=+t[n][1])>a&&(a=e,r=n);return r}function V_(t){var e=t.map(z_);return U_(t).sort((function(t,n){return e[t]-e[n]}))}function z_(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}function W_(t){return V_(t).reverse()}function q_(t){var e,n,r=t.length,i=t.map(z_),a=$_(t),o=0,s=0,c=[],l=[];for(e=0;e<r;++e)n=a[e],o<s?(o+=i[n],c.push(n)):(s+=i[n],l.push(n));return l.reverse().concat(c)}function X_(t){return U_(t).reverse()}v_.prototype={areaStart:Ww,areaEnd:Ww,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},x_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:C_(this,this._t0,E_(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,C_(this,E_(this,n=__(this,t,e)),n);break;default:C_(this,this._t0,n=__(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(B_.prototype=Object.create(x_.prototype)).point=function(t,e){x_.prototype.point.call(this,e,t)},T_.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},I_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=N_(t),i=N_(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},F_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var J_="%Y-%m-%dT%H:%M:%S.%LZ";const Z_=Date.prototype.toISOString?function(t){return t.toISOString()}:sm(J_);const tE=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:cm(J_);function eE(t,e,n){var r=new $n,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?jn():+n,r.restart((function a(o){o+=i,r.restart(a,i+=e,n),t(o)}),e,n),r)}function nE(t){return function(){return t}}function rE(t){return t[0]}function iE(t){return t[1]}function aE(){this._=null}function oE(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function sE(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function cE(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function lE(t){for(;t.L;)t=t.L;return t}aE.prototype={constructor:aE,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=lE(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(sE(this,n),n=(t=n).U),n.C=!1,r.C=!0,cE(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(cE(this,n),n=(t=n).U),n.C=!1,r.C=!0,sE(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,a=t.L,o=t.R;if(n=a?o?lE(o):a:o,i?i.L===t?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=o,o.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,sE(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,cE(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,sE(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,cE(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,sE(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,cE(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const AE=aE;function uE(t,e,n,r){var i=[null,null],a=LE.push(i)-1;return i.left=t,i.right=e,n&&fE(i,t,e,n),r&&fE(i,e,t,r),FE[t.index].halfedges.push(a),FE[e.index].halfedges.push(a),i}function hE(t,e,n){var r=[e,n];return r.left=t,r}function fE(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function dE(t,e,n,r,i){var a,o=t[0],s=t[1],c=o[0],l=o[1],A=0,u=1,h=s[0]-c,f=s[1]-l;if(a=e-c,h||!(a>0)){if(a/=h,h<0){if(a<A)return;a<u&&(u=a)}else if(h>0){if(a>u)return;a>A&&(A=a)}if(a=r-c,h||!(a<0)){if(a/=h,h<0){if(a>u)return;a>A&&(A=a)}else if(h>0){if(a<A)return;a<u&&(u=a)}if(a=n-l,f||!(a>0)){if(a/=f,f<0){if(a<A)return;a<u&&(u=a)}else if(f>0){if(a>u)return;a>A&&(A=a)}if(a=i-l,f||!(a<0)){if(a/=f,f<0){if(a>u)return;a>A&&(A=a)}else if(f>0){if(a<A)return;a<u&&(u=a)}return!(A>0||u<1)||(A>0&&(t[0]=[c+A*h,l+A*f]),u<1&&(t[1]=[c+u*h,l+u*f]),!0)}}}}}function pE(t,e,n,r,i){var a=t[1];if(a)return!0;var o,s,c=t[0],l=t.left,A=t.right,u=l[0],h=l[1],f=A[0],d=A[1],p=(u+f)/2,g=(h+d)/2;if(d===h){if(p<e||p>=r)return;if(u>f){if(c){if(c[1]>=i)return}else c=[p,n];a=[p,i]}else{if(c){if(c[1]<n)return}else c=[p,i];a=[p,n]}}else if(s=g-(o=(u-f)/(d-h))*p,o<-1||o>1)if(u>f){if(c){if(c[1]>=i)return}else c=[(n-s)/o,n];a=[(i-s)/o,i]}else{if(c){if(c[1]<n)return}else c=[(i-s)/o,i];a=[(n-s)/o,n]}else if(h<d){if(c){if(c[0]>=r)return}else c=[e,o*e+s];a=[r,o*r+s]}else{if(c){if(c[0]<e)return}else c=[r,o*r+s];a=[e,o*e+s]}return t[0]=c,t[1]=a,!0}function gE(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function mE(t,e){return e[+(e.left!==t.site)]}function yE(t,e){return e[+(e.left===t.site)]}var vE,bE=[];function wE(){oE(this),this.x=this.y=this.arc=this.site=this.cy=null}function _E(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,a=n.site;if(r!==a){var o=i[0],s=i[1],c=r[0]-o,l=r[1]-s,A=a[0]-o,u=a[1]-s,h=2*(c*u-l*A);if(!(h>=-RE)){var f=c*c+l*l,d=A*A+u*u,p=(u*f-l*d)/h,g=(c*d-A*f)/h,m=bE.pop()||new wE;m.arc=t,m.site=i,m.x=p+o,m.y=(m.cy=g+s)+Math.sqrt(p*p+g*g),t.circle=m;for(var y=null,v=DE._;v;)if(m.y<v.y||m.y===v.y&&m.x<=v.x){if(!v.L){y=v.P;break}v=v.L}else{if(!v.R){y=v;break}v=v.R}DE.insert(y,m),y||(vE=m)}}}}function EE(t){var e=t.circle;e&&(e.P||(vE=e.N),DE.remove(e),bE.push(e),oE(e),t.circle=null)}var CE=[];function xE(){oE(this),this.edge=this.site=this.circle=null}function BE(t){var e=CE.pop()||new xE;return e.site=t,e}function TE(t){EE(t),ME.remove(t),CE.push(t),oE(t)}function kE(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],a=t.P,o=t.N,s=[t];TE(t);for(var c=a;c.circle&&Math.abs(n-c.circle.x)<OE&&Math.abs(r-c.circle.cy)<OE;)a=c.P,s.unshift(c),TE(c),c=a;s.unshift(c),EE(c);for(var l=o;l.circle&&Math.abs(n-l.circle.x)<OE&&Math.abs(r-l.circle.cy)<OE;)o=l.N,s.push(l),TE(l),l=o;s.push(l),EE(l);var A,u=s.length;for(A=1;A<u;++A)l=s[A],c=s[A-1],fE(l.edge,c.site,l.site,i);c=s[0],(l=s[u-1]).edge=uE(c.site,l.site,null,i),_E(c),_E(l)}function SE(t){for(var e,n,r,i,a=t[0],o=t[1],s=ME._;s;)if((r=IE(s,o)-a)>OE)s=s.L;else{if(!((i=a-NE(s,o))>OE)){r>-OE?(e=s.P,n=s):i>-OE?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){FE[t.index]={site:t,halfedges:[]}}(t);var c=BE(t);if(ME.insert(e,c),e||n){if(e===n)return EE(e),n=BE(e.site),ME.insert(c,n),c.edge=n.edge=uE(e.site,c.site),_E(e),void _E(n);if(n){EE(e),EE(n);var l=e.site,A=l[0],u=l[1],h=t[0]-A,f=t[1]-u,d=n.site,p=d[0]-A,g=d[1]-u,m=2*(h*g-f*p),y=h*h+f*f,v=p*p+g*g,b=[(g*y-f*v)/m+A,(h*v-p*y)/m+u];fE(n.edge,l,d,b),c.edge=uE(l,t,null,b),n.edge=uE(t,d,null,b),_E(e),_E(n)}else c.edge=uE(e.site,c.site)}}function IE(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var s=(n=o.site)[0],c=n[1],l=c-e;if(!l)return s;var A=s-r,u=1/a-1/l,h=A/l;return u?(-h+Math.sqrt(h*h-2*u*(A*A/(-2*l)-c+l/2+i-a/2)))/u+r:(r+s)/2}function NE(t,e){var n=t.N;if(n)return IE(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var ME,FE,DE,LE,OE=1e-6,RE=1e-12;function UE(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function PE(t,e){return e[1]-t[1]||e[0]-t[0]}function QE(t,e){var n,r,i,a=t.sort(PE).pop();for(LE=[],FE=new Array(t.length),ME=new AE,DE=new AE;;)if(i=vE,a&&(!i||a[1]<i.y||a[1]===i.y&&a[0]<i.x))a[0]===n&&a[1]===r||(SE(a),n=a[0],r=a[1]),a=t.pop();else{if(!i)break;kE(i.arc)}if(function(){for(var t,e,n,r,i=0,a=FE.length;i<a;++i)if((t=FE[i])&&(r=(e=t.halfedges).length)){var o=new Array(r),s=new Array(r);for(n=0;n<r;++n)o[n]=n,s[n]=gE(t,LE[e[n]]);for(o.sort((function(t,e){return s[e]-s[t]})),n=0;n<r;++n)s[n]=e[o[n]];for(n=0;n<r;++n)e[n]=s[n]}}(),e){var o=+e[0][0],s=+e[0][1],c=+e[1][0],l=+e[1][1];!function(t,e,n,r){for(var i,a=LE.length;a--;)pE(i=LE[a],t,e,n,r)&&dE(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>OE||Math.abs(i[0][1]-i[1][1])>OE)||delete LE[a]}(o,s,c,l),function(t,e,n,r){var i,a,o,s,c,l,A,u,h,f,d,p,g=FE.length,m=!0;for(i=0;i<g;++i)if(a=FE[i]){for(o=a.site,s=(c=a.halfedges).length;s--;)LE[c[s]]||c.splice(s,1);for(s=0,l=c.length;s<l;)d=(f=yE(a,LE[c[s]]))[0],p=f[1],u=(A=mE(a,LE[c[++s%l]]))[0],h=A[1],(Math.abs(d-u)>OE||Math.abs(p-h)>OE)&&(c.splice(s,0,LE.push(hE(o,f,Math.abs(d-t)<OE&&r-p>OE?[t,Math.abs(u-t)<OE?h:r]:Math.abs(p-r)<OE&&n-d>OE?[Math.abs(h-r)<OE?u:n,r]:Math.abs(d-n)<OE&&p-e>OE?[n,Math.abs(u-n)<OE?h:e]:Math.abs(p-e)<OE&&d-t>OE?[Math.abs(h-e)<OE?u:t,e]:null))-1),++l);l&&(m=!1)}if(m){var y,v,b,w=1/0;for(i=0,m=null;i<g;++i)(a=FE[i])&&(b=(y=(o=a.site)[0]-t)*y+(v=o[1]-e)*v)<w&&(w=b,m=a);if(m){var _=[t,e],E=[t,r],C=[n,r],x=[n,e];m.halfedges.push(LE.push(hE(o=m.site,_,E))-1,LE.push(hE(o,E,C))-1,LE.push(hE(o,C,x))-1,LE.push(hE(o,x,_))-1)}}for(i=0;i<g;++i)(a=FE[i])&&(a.halfedges.length||delete FE[i])}(o,s,c,l)}this.edges=LE,this.cells=FE,ME=DE=LE=FE=null}function HE(){var t=rE,e=iE,n=null;function r(r){return new QE(r.map((function(n,i){var a=[Math.round(t(n,i,r)/OE)*OE,Math.round(e(n,i,r)/OE)*OE];return a.index=i,a.data=n,a})),n)}return r.polygons=function(t){return r(t).polygons()},r.links=function(t){return r(t).links()},r.triangles=function(t){return r(t).triangles()},r.x=function(e){return arguments.length?(t="function"==typeof e?e:nE(+e),r):t},r.y=function(t){return arguments.length?(e="function"==typeof t?t:nE(+t),r):e},r.extent=function(t){return arguments.length?(n=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(t){return arguments.length?(n=null==t?null:[[0,0],[+t[0],+t[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r}function GE(t){return function(){return t}}function jE(t,e,n){this.target=t,this.type=e,this.transform=n}function KE(t,e,n){this.k=t,this.x=e,this.y=n}QE.prototype={constructor:QE,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return mE(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,r){if(a=(i=n.halfedges).length)for(var i,a,o,s=n.site,c=-1,l=e[i[a-1]],A=l.left===s?l.right:l.left;++c<a;)o=A,A=(l=e[i[c]]).left===s?l.right:l.left,o&&A&&r<o.index&&r<A.index&&UE(s,o,A)<0&&t.push([s.data,o.data,A.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){for(var r,i,a=this,o=a._found||0,s=a.cells.length;!(i=a.cells[o]);)if(++o>=s)return null;var c=t-i.site[0],l=e-i.site[1],A=c*c+l*l;do{i=a.cells[r=o],o=null,i.halfedges.forEach((function(n){var r=a.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var c=t-s[0],l=e-s[1],u=c*c+l*l;u<A&&(A=u,o=s.index)}}))}while(null!==o);return a._found=r,null==n||A<=n*n?i.site:null}},KE.prototype={constructor:KE,scale:function(t){return 1===t?this:new KE(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new KE(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var $E=new KE(1,0,0);function YE(t){for(;!t.__zoom;)if(!(t=t.parentNode))return $E;return t.__zoom}function VE(){Ae.stopImmediatePropagation()}function zE(){Ae.preventDefault(),Ae.stopImmediatePropagation()}function WE(){return!Ae.ctrlKey&&!Ae.button}function qE(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function XE(){return this.__zoom||$E}function JE(){return-Ae.deltaY*(1===Ae.deltaMode?.05:Ae.deltaMode?1:.002)}function ZE(){return navigator.maxTouchPoints||"ontouchstart"in this}function tC(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function eC(){var t,e,n=WE,r=qE,i=tC,a=JE,o=ZE,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,A=xd,u=ht("start","zoom","end"),h=500,f=0;function d(t){t.property("__zoom",XE).on("wheel.zoom",w).on("mousedown.zoom",_).on("dblclick.zoom",E).filter(o).on("touchstart.zoom",C).on("touchmove.zoom",x).on("touchend.zoom touchcancel.zoom",B).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(t,e){return(e=Math.max(s[0],Math.min(s[1],e)))===t.k?t:new KE(e,t.x,t.y)}function g(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new KE(t.k,r,i)}function m(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function y(t,e,n){t.on("start.zoom",(function(){v(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){v(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,a=v(t,i),o=r.apply(t,i),s=null==n?m(o):"function"==typeof n?n.apply(t,i):n,c=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),l=t.__zoom,u="function"==typeof e?e.apply(t,i):e,h=A(l.invert(s).concat(c/l.k),u.invert(s).concat(c/u.k));return function(t){if(1===t)t=u;else{var e=h(t),n=c/e[2];t=new KE(n,s[0]-e[0]*n,s[1]-e[1]*n)}a.zoom(null,t)}}))}function v(t,e,n){return!n&&t.__zooming||new b(t,e)}function b(t,e){this.that=t,this.args=e,this.active=0,this.extent=r.apply(t,e),this.taps=0}function w(){if(n.apply(this,arguments)){var t=v(this,arguments),e=this.__zoom,r=Math.max(s[0],Math.min(s[1],e.k*Math.pow(2,a.apply(this,arguments)))),o=Mn(this);if(t.wheel)t.mouse[0][0]===o[0]&&t.mouse[0][1]===o[1]||(t.mouse[1]=e.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(e.k===r)return;t.mouse=[o,e.invert(o)],ir(this),t.start()}zE(),t.wheel=setTimeout(l,150),t.zoom("mouse",i(g(p(e,r),t.mouse[0],t.mouse[1]),t.extent,c))}function l(){t.wheel=null,t.end()}}function _(){if(!e&&n.apply(this,arguments)){var t=v(this,arguments,!0),r=Ce(Ae.view).on("mousemove.zoom",l,!0).on("mouseup.zoom",A,!0),a=Mn(this),o=Ae.clientX,s=Ae.clientY;Te(Ae.view),VE(),t.mouse=[a,this.__zoom.invert(a)],ir(this),t.start()}function l(){if(zE(),!t.moved){var e=Ae.clientX-o,n=Ae.clientY-s;t.moved=e*e+n*n>f}t.zoom("mouse",i(g(t.that.__zoom,t.mouse[0]=Mn(t.that),t.mouse[1]),t.extent,c))}function A(){r.on("mousemove.zoom mouseup.zoom",null),ke(Ae.view,t.moved),zE(),t.end()}}function E(){if(n.apply(this,arguments)){var t=this.__zoom,e=Mn(this),a=t.invert(e),o=t.k*(Ae.shiftKey?.5:2),s=i(g(p(t,o),e,a),r.apply(this,arguments),c);zE(),l>0?Ce(this).transition().duration(l).call(y,s,e):Ce(this).call(d.transform,s)}}function C(){if(n.apply(this,arguments)){var e,r,i,a,o=Ae.touches,s=o.length,c=v(this,arguments,Ae.changedTouches.length===s);for(VE(),r=0;r<s;++r)a=[a=Nn(this,o,(i=o[r]).identifier),this.__zoom.invert(a),i.identifier],c.touch0?c.touch1||c.touch0[2]===a[2]||(c.touch1=a,c.taps=0):(c.touch0=a,e=!0,c.taps=1+!!t);t&&(t=clearTimeout(t)),e&&(c.taps<2&&(t=setTimeout((function(){t=null}),h)),ir(this),c.start())}}function x(){if(this.__zooming){var e,n,r,a,o=v(this,arguments),s=Ae.changedTouches,l=s.length;for(zE(),t&&(t=clearTimeout(t)),o.taps=0,e=0;e<l;++e)r=Nn(this,s,(n=s[e]).identifier),o.touch0&&o.touch0[2]===n.identifier?o.touch0[0]=r:o.touch1&&o.touch1[2]===n.identifier&&(o.touch1[0]=r);if(n=o.that.__zoom,o.touch1){var A=o.touch0[0],u=o.touch0[1],h=o.touch1[0],f=o.touch1[1],d=(d=h[0]-A[0])*d+(d=h[1]-A[1])*d,m=(m=f[0]-u[0])*m+(m=f[1]-u[1])*m;n=p(n,Math.sqrt(d/m)),r=[(A[0]+h[0])/2,(A[1]+h[1])/2],a=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!o.touch0)return;r=o.touch0[0],a=o.touch0[1]}o.zoom("touch",i(g(n,r,a),o.extent,c))}}function B(){if(this.__zooming){var t,n,r=v(this,arguments),i=Ae.changedTouches,a=i.length;for(VE(),e&&clearTimeout(e),e=setTimeout((function(){e=null}),h),t=0;t<a;++t)n=i[t],r.touch0&&r.touch0[2]===n.identifier?delete r.touch0:r.touch1&&r.touch1[2]===n.identifier&&delete r.touch1;if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0]);else if(r.end(),2===r.taps){var o=Ce(this).on("dblclick.zoom");o&&o.apply(this,arguments)}}}return d.transform=function(t,e,n){var r=t.selection?t.selection():t;r.property("__zoom",XE),t!==r?y(t,e,n):r.interrupt().each((function(){v(this,arguments).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},d.scaleBy=function(t,e,n){d.scaleTo(t,(function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n}),n)},d.scaleTo=function(t,e,n){d.transform(t,(function(){var t=r.apply(this,arguments),a=this.__zoom,o=null==n?m(t):"function"==typeof n?n.apply(this,arguments):n,s=a.invert(o),l="function"==typeof e?e.apply(this,arguments):e;return i(g(p(a,l),o,s),t,c)}),n)},d.translateBy=function(t,e,n){d.transform(t,(function(){return i(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),r.apply(this,arguments),c)}))},d.translateTo=function(t,e,n,a){d.transform(t,(function(){var t=r.apply(this,arguments),o=this.__zoom,s=null==a?m(t):"function"==typeof a?a.apply(this,arguments):a;return i($E.translate(s[0],s[1]).scale(o.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),a)},b.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){ge(new jE(d,t,this.that.__zoom),u.apply,u,[t,this.that,this.args])}},d.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:GE(+t),d):a},d.filter=function(t){return arguments.length?(n="function"==typeof t?t:GE(!!t),d):n},d.touchable=function(t){return arguments.length?(o="function"==typeof t?t:GE(!!t),d):o},d.extent=function(t){return arguments.length?(r="function"==typeof t?t:GE([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),d):r},d.scaleExtent=function(t){return arguments.length?(s[0]=+t[0],s[1]=+t[1],d):[s[0],s[1]]},d.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],d):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},d.constrain=function(t){return arguments.length?(i=t,d):i},d.duration=function(t){return arguments.length?(l=+t,d):l},d.interpolate=function(t){return arguments.length?(A=t,d):A},d.on=function(){var t=u.on.apply(u,arguments);return t===u?d:t},d.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,d):Math.sqrt(f)},d}YE.prototype=KE.prototype},681:(t,e,n)=>{t.exports={graphlib:n(574),layout:n(8123),debug:n(7570),util:{time:n(1138).time,notime:n(1138).notime},version:n(8177)}},1207:(t,e,n)=>{var r=n(8436),i=n(4079);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};return r.forEach(t.nodes(),(function a(o){r.has(i,o)||(i[o]=!0,n[o]=!0,r.forEach(t.outEdges(o),(function(t){r.has(n,t.w)?e.push(t):a(t.w)})),delete n[o])})),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},1133:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n,r,a,o){var s={width:0,height:0,rank:o,borderType:e},c=a[e][o-1],l=i.addDummyNode(t,"border",s,n);a[e][o]=l,t.setParent(l,r),c&&t.setEdge(c,l,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var i=t.children(n),o=t.node(n);if(i.length&&r.forEach(i,e),r.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,c=o.maxRank+1;s<c;++s)a(t,"borderLeft","_bl",n,o,s),a(t,"borderRight","_br",n,o,s)}}))}},3258:(t,e,n)=>{var r=n(8436);function i(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){a(t.edge(e))}))}function a(t){var e=t.width;t.width=t.height,t.height=e}function o(t){t.y=-t.y}function s(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,o),r.has(n,"y")&&o(n)}))}(t),"lr"!==e&&"rl"!==e||(function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(t),i(t))}}},7822:t=>{function e(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},e.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},e.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},7570:(t,e,n)=>{var r=n(8436),i=n(1138),a=n(574).Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new a({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},574:(t,e,n)=>{var r;try{r=n(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},4079:(t,e,n)=>{var r=n(8436),i=n(574).Graph,a=n(7822);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,o=0,s=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),a=r+i;n.setEdge(t.v,t.w,a),s=Math.max(s,n.node(t.v).out+=i),o=Math.max(o,n.node(t.w).in+=i)}));var l=r.range(s+o+3).map((function(){return new a})),A=o+1;return r.forEach(n.nodes(),(function(t){c(l,A,n.node(t))})),{graph:n,buckets:l,zeroIdx:A}}(t,e||o),l=function(t,e,n){for(var r,i=[],a=e[e.length-1],o=e[0];t.nodeCount();){for(;r=o.dequeue();)s(t,e,n,r);for(;r=a.dequeue();)s(t,e,n,r);if(t.nodeCount())for(var c=e.length-2;c>0;--c)if(r=e[c].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,(function(e){return t.outEdges(e.v,e.w)})),!0)};var o=r.constant(1);function s(t,e,n,i,a){var o=a?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);a&&o.push({v:r.v,w:r.w}),s.out-=i,c(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),a=r.w,o=t.node(a);o.in-=i,c(e,n,o)})),t.removeNode(i.v),o}function c(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},8123:(t,e,n)=>{var r=n(8436),i=n(1207),a=n(5995),o=n(8093),s=n(1138).normalizeRanks,c=n(4219),l=n(1138).removeEmptyRanks,A=n(2981),u=n(1133),h=n(3258),f=n(3408),d=n(7873),p=n(1138),g=n(574).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?p.time:p.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new g({multigraph:!0,compound:!0}),n=B(t.graph());return e.setGraph(r.merge({},y,x(n,m),r.pick(n,v))),r.forEach(t.nodes(),(function(n){var i=B(t.node(n));e.setNode(n,r.defaults(x(i,b),w)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=B(t.edge(n));e.setEdge(n,r.merge({},E,x(i,_),r.pick(i,C)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){A.run(t)})),e(" rank",(function(){o(p.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};p.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){l(t)})),e(" nestingGraph.cleanup",(function(){A.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){a.run(t)})),e(" parentDummyChains",(function(){c(t)})),e(" addBorderSegments",(function(){u(t)})),e(" order",(function(){f(t)})),e(" insertSelfEdges",(function(){!function(t){var e=p.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var a=t.node(e);a.order=i+n,r.forEach(a.selfEdges,(function(e){p.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:a.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete a.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){h.adjust(t)})),e(" position",(function(){d(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),a=t.node(n.borderBottom),o=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-o.x),n.height=Math.abs(a.y-i.y),n.x=o.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){a.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){h.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),s=o.marginx||0,c=o.marginy||0;function l(t){var r=t.x,o=t.y,s=t.width,c=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,o-c/2),a=Math.max(a,o+c/2)}r.forEach(t.nodes(),(function(e){l(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&l(n)})),e-=s,i-=c,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var a=t.edge(n);r.forEach(a.points,(function(t){t.x-=e,t.y-=i})),r.has(a,"x")&&(a.x-=e),r.has(a,"y")&&(a.y-=i)})),o.width=n-e+s,o.height=a-i+c}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(p.intersectRect(a,n)),i.points.push(p.intersectRect(o,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),a=e.edge(n);i.points=a.points,r.has(a,"x")&&(i.x=a.x,i.y=a.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},v=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},C=["labelpos"];function x(t,e){return r.mapValues(r.pick(t,e),Number)}function B(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},8436:(t,e,n)=>{var r;try{r={cloneDeep:n(361),constant:n(5703),defaults:n(1747),each:n(6073),filter:n(3105),find:n(3311),flatten:n(5564),forEach:n(4486),forIn:n(2620),has:n(8721),isUndefined:n(2353),last:n(928),map:n(5161),mapValues:n(6604),max:n(6162),merge:n(3857),min:n(3632),minBy:n(2762),now:n(7771),pick:n(9722),range:n(6026),reduce:n(4061),sortBy:n(9734),uniqueId:n(3955),values:n(2628),zipObject:n(7287)}}catch(t){}r||(r=window._),t.exports=r},2981:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n,o,s,c,l){var A=t.children(l);if(A.length){var u=i.addBorderNode(t,"_bt"),h=i.addBorderNode(t,"_bb"),f=t.node(l);t.setParent(u,l),f.borderTop=u,t.setParent(h,l),f.borderBottom=h,r.forEach(A,(function(r){a(t,e,n,o,s,c,r);var i=t.node(r),A=i.borderTop?i.borderTop:r,f=i.borderBottom?i.borderBottom:r,d=i.borderTop?o:2*o,p=A!==f?1:s-c[l]+1;t.setEdge(u,A,{weight:d,minlen:p,nestingEdge:!0}),t.setEdge(f,h,{weight:d,minlen:p,nestingEdge:!0})})),t.parent(l)||t.setEdge(e,u,{weight:0,minlen:s+c[l]})}else l!==e&&t.setEdge(e,l,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,a){var o=t.children(i);o&&o.length&&r.forEach(o,(function(t){n(t,a+1)})),e[i]=a}return r.forEach(t.children(),(function(t){n(t,1)})),e}(t),o=r.max(r.values(n))-1,s=2*o+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=s}));var c=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){a(t,e,s,c,o,n,r)})),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},5995:(t,e,n)=>{var r=n(8436),i=n(1138);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,a,o=e.v,s=t.node(o).rank,c=e.w,l=t.node(c).rank,A=e.name,u=t.edge(e),h=u.labelRank;if(l!==s+1){for(t.removeEdge(e),a=0,++s;s<l;++a,++s)u.points=[],r={width:0,height:0,edgeLabel:u,edgeObj:e,rank:s},n=i.addDummyNode(t,"edge",r,"_d"),s===h&&(r.width=u.width,r.height=u.height,r.dummy="edge-label",r.labelpos=u.labelpos),t.setEdge(o,n,{weight:u.weight},A),0===a&&t.graph().dummyChains.push(n),o=n;t.setEdge(o,c,{weight:u.weight},A)}}(t,e)}))},undo:function(t){r.forEach(t.graph().dummyChains,(function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)}))}}},5093:(t,e,n)=>{var r=n(8436);t.exports=function(t,e,n){var i,a={};r.forEach(n,(function(n){for(var r,o,s=t.parent(n);s;){if((r=t.parent(s))?(o=a[r],a[r]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=r}}))}},5439:(t,e,n)=>{var r=n(8436);t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},3128:(t,e,n)=>{var r=n(8436),i=n(574).Graph;t.exports=function(t,e,n){var a=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),o=new i({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var s=t.node(i),c=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(o.setNode(i),o.setParent(i,c||a),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,a=o.edge(n,i),s=r.isUndefined(a)?0:a.weight;o.setEdge(n,i,{weight:t.edge(e).weight+s})})),r.has(s,"minRank")&&o.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),o}},6630:(t,e,n)=>{var r=n(8436);function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),a=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),o=1;o<n.length;)o<<=1;var s=2*o-1;o-=1;var c=r.map(new Array(s),(function(){return 0})),l=0;return r.forEach(a.forEach((function(t){var e=t.pos+o;c[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=c[e+1]),c[e=e-1>>1]+=t.weight;l+=t.weight*n}))),l}t.exports=function(t,e){for(var n=0,r=1;r<e.length;++r)n+=i(t,e[r-1],e[r]);return n}},3408:(t,e,n)=>{var r=n(8436),i=n(2588),a=n(6630),o=n(1026),s=n(3128),c=n(5093),l=n(574).Graph,A=n(1138);function u(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function h(t,e){var n=new l;r.forEach(t,(function(t){var i=t.graph().root,a=o(t,i,n,e);r.forEach(a.vs,(function(e,n){t.node(e).order=n})),c(t,n,a.vs)}))}function f(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=A.maxRank(t),n=u(t,r.range(1,e+1),"inEdges"),o=u(t,r.range(e-1,-1,-1),"outEdges"),s=i(t);f(t,s);for(var c,l=Number.POSITIVE_INFINITY,d=0,p=0;p<4;++d,++p){h(d%2?n:o,d%4>=2),s=A.buildLayerMatrix(t);var g=a(t,s);g<l&&(p=0,c=r.cloneDeep(s),l=g)}f(t,c)}},2588:(t,e,n)=>{var r=n(8436);t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),a=r.map(r.range(i+1),(function(){return[]})),o=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(o,(function n(i){if(!r.has(e,i)){e[i]=!0;var o=t.node(i);a[o.rank].push(i),r.forEach(t.successors(i),n)}})),a}},9567:(t,e,n)=>{var r=n(8436);t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){var n,i,a,o;e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&(i=e,a=0,o=0,(n=t).weight&&(a+=n.barycenter*n.weight,o+=n.weight),i.weight&&(a+=i.barycenter*i.weight,o+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=a/o,n.weight=o,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var a=t.pop();e.push(a),r.forEach(a.in.reverse(),n(a)),r.forEach(a.out,i(a))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},1026:(t,e,n)=>{var r=n(8436),i=n(5439),a=n(9567),o=n(7304);t.exports=function t(e,n,s,c){var l=e.children(n),A=e.node(n),u=A?A.borderLeft:void 0,h=A?A.borderRight:void 0,f={};u&&(l=r.filter(l,(function(t){return t!==u&&t!==h})));var d=i(e,l);r.forEach(d,(function(n){if(e.children(n.v).length){var i=t(e,n.v,s,c);f[n.v]=i,r.has(i,"barycenter")&&(a=n,o=i,r.isUndefined(a.barycenter)?(a.barycenter=o.barycenter,a.weight=o.weight):(a.barycenter=(a.barycenter*a.weight+o.barycenter*o.weight)/(a.weight+o.weight),a.weight+=o.weight))}var a,o}));var p=a(d,s);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(p,f);var g=o(p,c);if(u&&(g.vs=r.flatten([u,g.vs,h],!0),e.predecessors(u).length)){var m=e.node(e.predecessors(u)[0]),y=e.node(e.predecessors(h)[0]);r.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+m.order+y.order)/(g.weight+2),g.weight+=2}return g}},7304:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,o=i.partition(t,(function(t){return r.has(t,"barycenter")})),s=o.lhs,c=r.sortBy(o.rhs,(function(t){return-t.i})),l=[],A=0,u=0,h=0;s.sort((n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i})),h=a(l,c,h),r.forEach(s,(function(t){h+=t.vs.length,l.push(t.vs),A+=t.barycenter*t.weight,u+=t.weight,h=a(l,c,h)}));var f={vs:r.flatten(l,!0)};return u&&(f.barycenter=A/u,f.weight=u),f}},4219:(t,e,n)=>{var r=n(8436);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),(function i(a){var o=n;r.forEach(t.children(a),i),e[a]={low:o,lim:n++}})),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,a=function(t,e,n,r){var i,a,o=[],s=[],c=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),o.push(i)}while(i&&(e[i].low>c||l>e[i].lim));for(a=i,i=r;(i=t.parent(i))!==a;)s.push(i);return{path:o.concat(s.reverse()),lca:a}}(t,e,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],A=!0;n!==i.w;){if(r=t.node(n),A){for(;(l=o[c])!==s&&t.node(l).maxRank<r.rank;)c++;l===s&&(A=!1)}if(!A){for(;c<o.length-1&&t.node(l=o[c+1]).minRank<=r.rank;)c++;l=o[c]}t.setParent(n,l),n=t.successors(n)[0]}}))}},3573:(t,e,n)=>{var r=n(8436),i=n(574).Graph,a=n(1138);function o(t,e){var n={};return r.reduce(e,(function(e,i){var a=0,o=0,s=e.length,l=r.last(i);return r.forEach(i,(function(e,A){var u=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),h=u?t.node(u).order:s;(u||e===l)&&(r.forEach(i.slice(o,A+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),o=i.order;!(o<a||h<o)||i.dummy&&t.node(e).dummy||c(n,r,e)}))})),o=A+1,a=h)})),i})),n}function s(t,e){var n={};function i(e,i,a,o,s){var l;r.forEach(r.range(i,a),(function(i){l=e[i],t.node(l).dummy&&r.forEach(t.predecessors(l),(function(e){var r=t.node(e);r.dummy&&(r.order<o||r.order>s)&&c(n,e,l)}))}))}return r.reduce(e,(function(e,n){var a,o=-1,s=0;return r.forEach(n,(function(r,c){if("border"===t.node(r).dummy){var l=t.predecessors(r);l.length&&(a=t.node(l[0]).order,i(n,s,c,o,a),s=c,o=a)}i(n,s,n.length,a,e.length)})),n})),n}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function l(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function A(t,e,n,i){var a={},o={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){a[t]=t,o[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var c=i(t);if(c.length)for(var A=((c=r.sortBy(c,(function(t){return s[t]}))).length-1)/2,u=Math.floor(A),h=Math.ceil(A);u<=h;++u){var f=c[u];o[t]===t&&e<s[f]&&!l(n,t,f)&&(o[f]=t,o[t]=a[t]=a[f],e=s[f])}}))})),{root:a,align:o}}function u(t,e,n,a,o){var s={},c=function(t,e,n,a){var o=new i,s=t.graph(),c=function(t,e,n){return function(i,a,o){var s,c=i.node(a),l=i.node(o),A=0;if(A+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=-c.width/2;break;case"r":s=c.width/2}if(s&&(A+=n?s:-s),s=0,A+=(c.dummy?e:t)/2,A+=(l.dummy?e:t)/2,A+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=l.width/2;break;case"r":s=-l.width/2}return s&&(A+=n?s:-s),s=0,A}}(s.nodesep,s.edgesep,a);return r.forEach(e,(function(e){var i;r.forEach(e,(function(e){var r=n[e];if(o.setNode(r),i){var a=n[i],s=o.edge(a,r);o.setEdge(a,r,Math.max(c(t,e,i),s||0))}i=e}))})),o}(t,e,n,o),l=o?"borderLeft":"borderRight";function A(t,e){for(var n=c.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return A((function(t){s[t]=c.inEdges(t).reduce((function(t,e){return Math.max(t,s[e.v]+c.edge(e))}),0)}),c.predecessors.bind(c)),A((function(e){var n=c.outEdges(e).reduce((function(t,e){return Math.min(t,s[e.w]-c.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==l&&(s[e]=Math.max(s[e],n))}),c.successors.bind(c)),r.forEach(a,(function(t){s[t]=s[n[t]]})),s}function h(t,e){return r.minBy(r.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(e,(function(e,r){var a=function(t,e){return t.node(e).width}(t,r)/2;n=Math.max(e+a,n),i=Math.min(e-a,i)})),n-i}))}function f(t,e){var n=r.values(e),i=r.min(n),a=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(o){var s,c=n+o,l=t[c];if(l!==e){var A=r.values(l);(s="l"===o?i-r.min(A):a-r.max(A))&&(t[c]=r.mapValues(l,(function(t){return t+s})))}}))}))}function d(t,e){return r.mapValues(t.ul,(function(n,i){if(e)return t[e.toLowerCase()][i];var a=r.sortBy(r.map(t,i));return(a[1]+a[2])/2}))}t.exports={positionX:function(t){var e,n=a.buildLayerMatrix(t),i=r.merge(o(t,n),s(t,n)),c={};r.forEach(["u","d"],(function(a){e="u"===a?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(e=r.map(e,(function(t){return r.values(t).reverse()})));var o=("u"===a?t.predecessors:t.successors).bind(t),s=A(0,e,i,o),l=u(t,e,s.root,s.align,"r"===n);"r"===n&&(l=r.mapValues(l,(function(t){return-t}))),c[a+n]=l}))}));var l=h(t,c);return f(c,l),d(c,t.graph().align)},findType1Conflicts:o,findType2Conflicts:s,addConflict:c,hasConflict:l,verticalAlignment:A,horizontalCompaction:u,alignCoordinates:f,findSmallestWidthAlignment:h,balance:d}},7873:(t,e,n)=>{var r=n(8436),i=n(1138),a=n(3573).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,a=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=a+i/2})),a+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(a(t),(function(e,n){t.node(n).x=e}))}},300:(t,e,n)=>{var r=n(8436),i=n(574).Graph,a=n(6681).slack;function o(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var o=r.v,s=i===o?r.w:o;t.hasNode(s)||a(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))})),t.nodeCount()}function s(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return a(e,n)}))}function c(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),l=t.nodes()[0],A=t.nodeCount();for(r.setNode(l,{});o(r,t)<A;)e=s(r,t),n=r.hasNode(e.v)?a(t,e):-a(t,e),c(r,t,n);return r}},8093:(t,e,n)=>{var r=n(6681).longestPath,i=n(300),a=n(2472);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:!function(t){a(t)}(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":o(t)}};var o=r},2472:(t,e,n)=>{var r=n(8436),i=n(300),a=n(6681).slack,o=n(6681).longestPath,s=n(574).alg.preorder,c=n(574).alg.postorder,l=n(1138).simplify;function A(t){t=l(t),o(t);var e,n=i(t);for(f(n),u(n,t);e=p(n);)m(n,t,e,g(n,t,e))}function u(t,e){var n=c(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n).parent;t.edge(n,r).cutvalue=h(t,e,n)}(t,e,n)}))}function h(t,e,n){var i=t.node(n).parent,a=!0,o=e.edge(n,i),s=0;return o||(a=!1,o=e.edge(i,n)),s=o.weight,r.forEach(e.nodeEdges(n),(function(r){var o,c,l=r.v===n,A=l?r.w:r.v;if(A!==i){var u=l===a,h=e.edge(r).weight;if(s+=u?h:-h,o=n,c=A,t.hasEdge(o,c)){var f=t.edge(n,A).cutvalue;s+=u?-f:f}}})),s}function f(t,e){arguments.length<2&&(e=t.nodes()[0]),d(t,{},1,e)}function d(t,e,n,i,a){var o=n,s=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(a){r.has(e,a)||(n=d(t,e,n,a,i))})),s.low=o,s.lim=n++,a?s.parent=a:delete s.parent,n}function p(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function g(t,e,n){var i=n.v,o=n.w;e.hasEdge(i,o)||(i=n.w,o=n.v);var s=t.node(i),c=t.node(o),l=s,A=!1;s.lim>c.lim&&(l=c,A=!0);var u=r.filter(e.edges(),(function(e){return A===y(0,t.node(e.v),l)&&A!==y(0,t.node(e.w),l)}));return r.minBy(u,(function(t){return a(e,t)}))}function m(t,e,n,i){var a=n.v,o=n.w;t.removeEdge(a,o),t.setEdge(i.v,i.w,{}),f(t),u(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)}))}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=A,A.initLowLimValues=f,A.initCutValues=u,A.calcCutValue=h,A.leaveEdge=p,A.enterEdge=g,A.exchangeEdges=m},6681:(t,e,n)=>{var r=n(8436);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var a=t.node(i);if(r.has(e,i))return a.rank;e[i]=!0;var o=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),a.rank=o}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},1138:(t,e,n)=>{var r=n(8436),i=n(574).Graph;function a(t,e,n,i){var a;do{a=r.uniqueId(i)}while(t.hasNode(a));return n.dummy=e,t.setNode(a,n),a}function o(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:a,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,l=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*c>Math.abs(o)*l?(s<0&&(l=-l),n=l*o/s,r=l):(o<0&&(c=-c),n=c,r=c*s/o),{x:i+n,y:a+r}},buildLayerMatrix:function(t){var e=r.map(r.range(o(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),a=i.rank;r.isUndefined(a)||(e[a][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,a=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%a!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),a(t,"border",i,e)},maxRank:o,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){r.now();try{return e()}finally{r.now()}},notime:function(t,e){return e()}}},8177:t=>{t.exports="0.8.5"},7856:function(t){t.exports=function(){var t=Object.hasOwnProperty,e=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,o=Object.seal,s=Object.create,c="undefined"!=typeof Reflect&&Reflect,l=c.apply,A=c.construct;l||(l=function(t,e,n){return t.apply(e,n)}),a||(a=function(t){return t}),o||(o=function(t){return t}),A||(A=function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e))))});var u,h=_(Array.prototype.forEach),f=_(Array.prototype.pop),d=_(Array.prototype.push),p=_(String.prototype.toLowerCase),g=_(String.prototype.match),m=_(String.prototype.replace),y=_(String.prototype.indexOf),v=_(String.prototype.trim),b=_(RegExp.prototype.test),w=(u=TypeError,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return A(u,e)});function _(t){return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return l(t,e,r)}}function E(t,r){e&&e(t,null);for(var i=r.length;i--;){var a=r[i];if("string"==typeof a){var o=p(a);o!==a&&(n(r)||(r[i]=o),a=o)}t[a]=!0}return t}function C(e){var n=s(null),r=void 0;for(r in e)l(t,e,[r])&&(n[r]=e[r]);return n}function x(t,e){for(;null!==t;){var n=i(t,e);if(n){if(n.get)return _(n.get);if("function"==typeof n.value)return _(n.value)}t=r(t)}return function(t){return console.warn("fallback value for",t),null}}var B=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),T=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),k=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),S=a(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),N=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=a(["#text"]),F=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),D=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),L=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),O=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),R=o(/\{\{[\s\S]*|[\s\S]*\}\}/gm),U=o(/<%[\s\S]*|[\s\S]*%>/gm),P=o(/^data-[\-\w.\u00B7-\uFFFF]/),Q=o(/^aria-[\-\w]+$/),H=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=o(/^(?:\w+script|data):/i),j=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function $(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var Y=function(){return"undefined"==typeof window?null:window},V=function(t,e){if("object"!==(void 0===t?"undefined":K(t))||"function"!=typeof t.createPolicy)return null;var n=null,r="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(r)&&(n=e.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y(),n=function(e){return t(e)};if(n.version="2.3.4",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,i=e.document,o=e.DocumentFragment,s=e.HTMLTemplateElement,c=e.Node,l=e.Element,A=e.NodeFilter,u=e.NamedNodeMap,_=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,z=e.HTMLFormElement,W=e.DOMParser,q=e.trustedTypes,X=l.prototype,J=x(X,"cloneNode"),Z=x(X,"nextSibling"),tt=x(X,"childNodes"),et=x(X,"parentNode");if("function"==typeof s){var nt=i.createElement("template");nt.content&&nt.content.ownerDocument&&(i=nt.content.ownerDocument)}var rt=V(q,r),it=rt&&Ot?rt.createHTML(""):"",at=i,ot=at.implementation,st=at.createNodeIterator,ct=at.createDocumentFragment,lt=at.getElementsByTagName,At=r.importNode,ut={};try{ut=C(i).documentMode?i.documentMode:{}}catch(t){}var ht={};n.isSupported="function"==typeof et&&ot&&void 0!==ot.createHTMLDocument&&9!==ut;var ft=R,dt=U,pt=P,gt=Q,mt=G,yt=j,vt=H,bt=null,wt=E({},[].concat($(B),$(T),$(k),$(I),$(M))),_t=null,Et=E({},[].concat($(F),$(D),$(L),$(O))),Ct=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xt=null,Bt=null,Tt=!0,kt=!0,St=!1,It=!1,Nt=!1,Mt=!1,Ft=!1,Dt=!1,Lt=!1,Ot=!1,Rt=!0,Ut=!0,Pt=!1,Qt={},Ht=null,Gt=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),jt=null,Kt=E({},["audio","video","img","source","image","track"]),$t=null,Yt=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vt="http://www.w3.org/1998/Math/MathML",zt="http://www.w3.org/2000/svg",Wt="http://www.w3.org/1999/xhtml",qt=Wt,Xt=!1,Jt=void 0,Zt=["application/xhtml+xml","text/html"],te="text/html",ee=void 0,ne=null,re=i.createElement("form"),ie=function(t){return t instanceof RegExp||t instanceof Function},ae=function(t){ne&&ne===t||(t&&"object"===(void 0===t?"undefined":K(t))||(t={}),t=C(t),bt="ALLOWED_TAGS"in t?E({},t.ALLOWED_TAGS):wt,_t="ALLOWED_ATTR"in t?E({},t.ALLOWED_ATTR):Et,$t="ADD_URI_SAFE_ATTR"in t?E(C(Yt),t.ADD_URI_SAFE_ATTR):Yt,jt="ADD_DATA_URI_TAGS"in t?E(C(Kt),t.ADD_DATA_URI_TAGS):Kt,Ht="FORBID_CONTENTS"in t?E({},t.FORBID_CONTENTS):Gt,xt="FORBID_TAGS"in t?E({},t.FORBID_TAGS):{},Bt="FORBID_ATTR"in t?E({},t.FORBID_ATTR):{},Qt="USE_PROFILES"in t&&t.USE_PROFILES,Tt=!1!==t.ALLOW_ARIA_ATTR,kt=!1!==t.ALLOW_DATA_ATTR,St=t.ALLOW_UNKNOWN_PROTOCOLS||!1,It=t.SAFE_FOR_TEMPLATES||!1,Nt=t.WHOLE_DOCUMENT||!1,Dt=t.RETURN_DOM||!1,Lt=t.RETURN_DOM_FRAGMENT||!1,Ot=t.RETURN_TRUSTED_TYPE||!1,Ft=t.FORCE_BODY||!1,Rt=!1!==t.SANITIZE_DOM,Ut=!1!==t.KEEP_CONTENT,Pt=t.IN_PLACE||!1,vt=t.ALLOWED_URI_REGEXP||vt,qt=t.NAMESPACE||Wt,t.CUSTOM_ELEMENT_HANDLING&&ie(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ct.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ie(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ct.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ct.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Jt=Jt=-1===Zt.indexOf(t.PARSER_MEDIA_TYPE)?te:t.PARSER_MEDIA_TYPE,ee="application/xhtml+xml"===Jt?function(t){return t}:p,It&&(kt=!1),Lt&&(Dt=!0),Qt&&(bt=E({},[].concat($(M))),_t=[],!0===Qt.html&&(E(bt,B),E(_t,F)),!0===Qt.svg&&(E(bt,T),E(_t,D),E(_t,O)),!0===Qt.svgFilters&&(E(bt,k),E(_t,D),E(_t,O)),!0===Qt.mathMl&&(E(bt,I),E(_t,L),E(_t,O))),t.ADD_TAGS&&(bt===wt&&(bt=C(bt)),E(bt,t.ADD_TAGS)),t.ADD_ATTR&&(_t===Et&&(_t=C(_t)),E(_t,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&E($t,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(Ht===Gt&&(Ht=C(Ht)),E(Ht,t.FORBID_CONTENTS)),Ut&&(bt["#text"]=!0),Nt&&E(bt,["html","head","body"]),bt.table&&(E(bt,["tbody"]),delete xt.tbody),a&&a(t),ne=t)},oe=E({},["mi","mo","mn","ms","mtext"]),se=E({},["foreignobject","desc","title","annotation-xml"]),ce=E({},T);E(ce,k),E(ce,S);var le=E({},I);E(le,N);var Ae=function(t){var e=et(t);e&&e.tagName||(e={namespaceURI:Wt,tagName:"template"});var n=p(t.tagName),r=p(e.tagName);if(t.namespaceURI===zt)return e.namespaceURI===Wt?"svg"===n:e.namespaceURI===Vt?"svg"===n&&("annotation-xml"===r||oe[r]):Boolean(ce[n]);if(t.namespaceURI===Vt)return e.namespaceURI===Wt?"math"===n:e.namespaceURI===zt?"math"===n&&se[r]:Boolean(le[n]);if(t.namespaceURI===Wt){if(e.namespaceURI===zt&&!se[r])return!1;if(e.namespaceURI===Vt&&!oe[r])return!1;var i=E({},["title","style","font","a","script"]);return!le[n]&&(i[n]||!ce[n])}return!1},ue=function(t){d(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=it}catch(e){t.remove()}}},he=function(t,e){try{d(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){d(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!_t[t])if(Dt||Lt)try{ue(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},fe=function(t){var e=void 0,n=void 0;if(Ft)t="<remove></remove>"+t;else{var r=g(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===Jt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var a=rt?rt.createHTML(t):t;if(qt===Wt)try{e=(new W).parseFromString(a,Jt)}catch(t){}if(!e||!e.documentElement){e=ot.createDocument(qt,"template",null);try{e.documentElement.innerHTML=Xt?"":a}catch(t){}}var o=e.body||e.documentElement;return t&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),qt===Wt?lt.call(e,Nt?"html":"body")[0]:Nt?e.documentElement:o},de=function(t){return st.call(t.ownerDocument||t,t,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT,null,!1)},pe=function(t){return t instanceof z&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof _)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore)},ge=function(t){return"object"===(void 0===c?"undefined":K(c))?t instanceof c:t&&"object"===(void 0===t?"undefined":K(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},me=function(t,e,r){ht[t]&&h(ht[t],(function(t){t.call(n,e,r,ne)}))},ye=function(t){var e=void 0;if(me("beforeSanitizeElements",t,null),pe(t))return ue(t),!0;if(g(t.nodeName,/[\u0080-\uFFFF]/))return ue(t),!0;var r=ee(t.nodeName);if(me("uponSanitizeElement",t,{tagName:r,allowedTags:bt}),!ge(t.firstElementChild)&&(!ge(t.content)||!ge(t.content.firstElementChild))&&b(/<[/\w]/g,t.innerHTML)&&b(/<[/\w]/g,t.textContent))return ue(t),!0;if("select"===r&&b(/<template/i,t.innerHTML))return ue(t),!0;if(!bt[r]||xt[r]){if(Ut&&!Ht[r]){var i=et(t)||t.parentNode,a=tt(t)||t.childNodes;if(a&&i)for(var o=a.length-1;o>=0;--o)i.insertBefore(J(a[o],!0),Z(t))}if(!xt[r]&&be(r)){if(Ct.tagNameCheck instanceof RegExp&&b(Ct.tagNameCheck,r))return!1;if(Ct.tagNameCheck instanceof Function&&Ct.tagNameCheck(r))return!1}return ue(t),!0}return t instanceof l&&!Ae(t)?(ue(t),!0):"noscript"!==r&&"noembed"!==r||!b(/<\/no(script|embed)/i,t.innerHTML)?(It&&3===t.nodeType&&(e=t.textContent,e=m(e,ft," "),e=m(e,dt," "),t.textContent!==e&&(d(n.removed,{element:t.cloneNode()}),t.textContent=e)),me("afterSanitizeElements",t,null),!1):(ue(t),!0)},ve=function(t,e,n){if(Rt&&("id"===e||"name"===e)&&(n in i||n in re))return!1;if(kt&&!Bt[e]&&b(pt,e));else if(Tt&&b(gt,e));else if(!_t[e]||Bt[e]){if(!(be(t)&&(Ct.tagNameCheck instanceof RegExp&&b(Ct.tagNameCheck,t)||Ct.tagNameCheck instanceof Function&&Ct.tagNameCheck(t))&&(Ct.attributeNameCheck instanceof RegExp&&b(Ct.attributeNameCheck,e)||Ct.attributeNameCheck instanceof Function&&Ct.attributeNameCheck(e))||"is"===e&&Ct.allowCustomizedBuiltInElements&&(Ct.tagNameCheck instanceof RegExp&&b(Ct.tagNameCheck,n)||Ct.tagNameCheck instanceof Function&&Ct.tagNameCheck(n))))return!1}else if($t[e]);else if(b(vt,m(n,yt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==y(n,"data:")||!jt[t])if(St&&!b(mt,m(n,yt,"")));else if(n)return!1;return!0},be=function(t){return t.indexOf("-")>0},we=function(t){var e=void 0,r=void 0,i=void 0,a=void 0;me("beforeSanitizeAttributes",t,null);var o=t.attributes;if(o){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_t};for(a=o.length;a--;){var c=e=o[a],l=c.name,A=c.namespaceURI;if(r=v(e.value),i=ee(l),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,me("uponSanitizeAttribute",t,s),r=s.attrValue,!s.forceKeepAttr&&(he(l,t),s.keepAttr))if(b(/\/>/i,r))he(l,t);else{It&&(r=m(r,ft," "),r=m(r,dt," "));var u=ee(t.nodeName);if(ve(u,i,r))try{A?t.setAttributeNS(A,l,r):t.setAttribute(l,r),f(n.removed)}catch(t){}}}me("afterSanitizeAttributes",t,null)}},_e=function t(e){var n=void 0,r=de(e);for(me("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)me("uponSanitizeShadowNode",n,null),ye(n)||(n.content instanceof o&&t(n.content),we(n));me("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t,i){var a=void 0,s=void 0,l=void 0,A=void 0,u=void 0;if((Xt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!ge(t)){if("function"!=typeof t.toString)throw w("toString is not a function");if("string"!=typeof(t=t.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported){if("object"===K(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof t)return e.toStaticHTML(t);if(ge(t))return e.toStaticHTML(t.outerHTML)}return t}if(Mt||ae(i),n.removed=[],"string"==typeof t&&(Pt=!1),Pt);else if(t instanceof c)1===(s=(a=fe("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?a=s:a.appendChild(s);else{if(!Dt&&!It&&!Nt&&-1===t.indexOf("<"))return rt&&Ot?rt.createHTML(t):t;if(!(a=fe(t)))return Dt?null:it}a&&Ft&&ue(a.firstChild);for(var h=de(Pt?t:a);l=h.nextNode();)3===l.nodeType&&l===A||ye(l)||(l.content instanceof o&&_e(l.content),we(l),A=l);if(A=null,Pt)return t;if(Dt){if(Lt)for(u=ct.call(a.ownerDocument);a.firstChild;)u.appendChild(a.firstChild);else u=a;return _t.shadowroot&&(u=At.call(r,u,!0)),u}var f=Nt?a.outerHTML:a.innerHTML;return It&&(f=m(f,ft," "),f=m(f,dt," ")),rt&&Ot?rt.createHTML(f):f},n.setConfig=function(t){ae(t),Mt=!0},n.clearConfig=function(){ne=null,Mt=!1},n.isValidAttribute=function(t,e,n){ne||ae({});var r=ee(t),i=ee(e);return ve(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&(ht[t]=ht[t]||[],d(ht[t],e))},n.removeHook=function(t){ht[t]&&f(ht[t])},n.removeHooks=function(t){ht[t]&&(ht[t]=[])},n.removeAllHooks=function(){ht={}},n}()}()},8282:(t,e,n)=>{var r=n(2354);t.exports={Graph:r.Graph,json:n(8974),alg:n(2440),version:r.version}},2842:(t,e,n)=>{var r=n(9126);t.exports=function(t){var e,n={},i=[];function a(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),a),r.each(t.predecessors(i),a))}return r.each(t.nodes(),(function(t){e=[],a(t),e.length&&i.push(e)})),i}},3984:(t,e,n)=>{var r=n(9126);t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],o={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,i,a,o,s){r.has(a,n)||(a[n]=!0,i||s.push(n),r.each(o(n),(function(n){t(e,n,i,a,o,s)})),i&&s.push(n))}(t,e,"post"===n,o,i,a)})),a}},4847:(t,e,n)=>{var r=n(3763),i=n(9126);t.exports=function(t,e,n){return i.transform(t.nodes(),(function(i,a){i[a]=r(t,a,e,n)}),{})}},3763:(t,e,n)=>{var r=n(9126),i=n(9675);t.exports=function(t,e,n,r){return function(t,e,n,r){var a,o,s={},c=new i,l=function(t){var e=t.v!==a?t.v:t.w,r=s[e],i=n(t),l=o.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);l<r.distance&&(r.distance=l,r.predecessor=a,c.decrease(e,l))};for(t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;s[t]={distance:n},c.add(t,n)}));c.size()>0&&(a=c.removeMin(),(o=s[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(l);return s}(t,String(e),n||a,r||function(e){return t.outEdges(e)})};var a=r.constant(1)},9096:(t,e,n)=>{var r=n(9126),i=n(5023);t.exports=function(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},8924:(t,e,n)=>{var r=n(9126);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,a=e(n);r[t][i]={distance:a,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var a=r[n];i.forEach((function(n){var r=a[t],i=e[n],o=a[n],s=r.distance+i.distance;s<o.distance&&(o.distance=s,o.predecessor=i.predecessor)}))}))})),r}(t,e||i,n||function(e){return t.outEdges(e)})};var i=r.constant(1)},2440:(t,e,n)=>{t.exports={components:n(2842),dijkstra:n(3763),dijkstraAll:n(4847),findCycles:n(9096),floydWarshall:n(8924),isAcyclic:n(2707),postorder:n(8828),preorder:n(2648),prim:n(514),tarjan:n(5023),topsort:n(2166)}},2707:(t,e,n)=>{var r=n(2166);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},8828:(t,e,n)=>{var r=n(3984);t.exports=function(t,e){return r(t,e,"post")}},2648:(t,e,n)=>{var r=n(3984);t.exports=function(t,e){return r(t,e,"pre")}},514:(t,e,n)=>{var r=n(9126),i=n(771),a=n(9675);t.exports=function(t,e){var n,o=new i,s={},c=new a;function l(t){var r=t.v===n?t.w:t.v,i=c.priority(r);if(void 0!==i){var a=e(t);a<i&&(s[r]=n,c.decrease(r,a))}}if(0===t.nodeCount())return o;r.each(t.nodes(),(function(t){c.add(t,Number.POSITIVE_INFINITY),o.setNode(t)})),c.decrease(t.nodes()[0],0);for(var A=!1;c.size()>0;){if(n=c.removeMin(),r.has(s,n))o.setEdge(n,s[n]);else{if(A)throw new Error("Input graph is not connected: "+t);A=!0}t.nodeEdges(n).forEach(l)}return o}},5023:(t,e,n)=>{var r=n(9126);t.exports=function(t){var e=0,n=[],i={},a=[];function o(s){var c=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){r.has(i,t)?i[t].onStack&&(c.lowlink=Math.min(c.lowlink,i[t].index)):(o(t),c.lowlink=Math.min(c.lowlink,i[t].lowlink))})),c.lowlink===c.index){var l,A=[];do{l=n.pop(),i[l].onStack=!1,A.push(l)}while(s!==l);a.push(A)}}return t.nodes().forEach((function(t){r.has(i,t)||o(t)})),a}},2166:(t,e,n)=>{var r=n(9126);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),(function o(s){if(r.has(n,s))throw new a;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),o),delete n[s],i.push(s))})),r.size(e)!==t.nodeCount())throw new a;return i}function a(){}t.exports=i,i.CycleException=a,a.prototype=new Error},9675:(t,e,n)=>{var r=n(9126);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,a=i.length;return n[t]=a,i.push({key:t,priority:e}),this._decrease(a),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},i.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],a=n[e];n[t]=a,n[e]=i,r[a.key]=t,r[i.key]=e}},771:(t,e,n)=>{var r=n(9126);t.exports=a;var i="\0";function a(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function o(t,e){t[e]?t[e]++:t[e]=1}function s(t,e){--t[e]||delete t[e]}function c(t,e,n,i){var a=""+e,o=""+n;if(!t&&a>o){var s=a;a=o,o=s}return a+""+o+""+(r.isUndefined(i)?"\0":i)}function l(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function A(t,e){return c(t,e.v,e.w,e.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(t){return this._label=t,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},a.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},a.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},a.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=i,this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},a.prototype.node=function(t){return this._nodes[t]},a.prototype.hasNode=function(t){return r.has(this._nodes,t)},a.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},a.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=i;else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},a.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},a.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==i)return e}},a.prototype.children=function(t){if(r.isUndefined(t)&&(t=i),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===i)return this.nodes();if(this.hasNode(t))return[]}},a.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},a.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},a.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},a.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},a.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,function t(r){var a=n.parent(r);return void 0===a||e.hasNode(a)?(i[r]=a,a):a in i?i[a]:t(a)}(t))})),e},a.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},a.prototype.setEdge=function(){var t,e,n,i,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(t=s.v,e=s.w,n=s.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=s,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var A=c(this._isDirected,t,e,n);if(r.has(this._edgeLabels,A))return a&&(this._edgeLabels[A]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[A]=a?i:this._defaultEdgeLabelFn(t,e,n);var u=l(this._isDirected,t,e,n);return t=u.v,e=u.w,Object.freeze(u),this._edgeObjs[A]=u,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][A]=u,this._out[t][A]=u,this._edgeCount++,this},a.prototype.edge=function(t,e,n){var r=1===arguments.length?A(this._isDirected,arguments[0]):c(this._isDirected,t,e,n);return this._edgeLabels[r]},a.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?A(this._isDirected,arguments[0]):c(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},a.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?A(this._isDirected,arguments[0]):c(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[e],t),s(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},a.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},a.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},a.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},2354:(t,e,n)=>{t.exports={Graph:n(771),version:n(9631)}},8974:(t,e,n)=>{var r=n(9126),i=n(771);function a(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),a={v:e};return r.isUndefined(n)||(a.value=n),r.isUndefined(i)||(a.parent=i),a}))}function o(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:a(t),edges:o(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},9126:(t,e,n)=>{var r;try{r={clone:n(6678),constant:n(5703),each:n(6073),filter:n(3105),has:n(8721),isArray:n(1469),isEmpty:n(1609),isFunction:n(3560),isUndefined:n(2353),keys:n(3674),map:n(5161),reduce:n(4061),size:n(4238),transform:n(8718),union:n(3386),values:n(2628)}}catch(t){}r||(r=window._),t.exports=r},9631:t=>{t.exports="2.1.8"},1773:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(7628),a=function(){function t(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new i.default}return t.prototype.set=function(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=0,this},t.prototype._ensureHSL=function(){var t=this.data,e=t.h,n=t.s,i=t.l;void 0===e&&(t.h=r.default.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=r.default.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=r.default.channel.rgb2hsl(t,"l"))},t.prototype._ensureRGB=function(){var t=this.data,e=t.r,n=t.g,i=t.b;void 0===e&&(t.r=r.default.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=r.default.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=r.default.channel.hsl2rgb(t,"b"))},Object.defineProperty(t.prototype,"r",{get:function(){var t=this.data,e=t.r;return this.type.is(2)||void 0===e?(this._ensureHSL(),r.default.channel.hsl2rgb(t,"r")):e},set:function(t){this.type.set(1),this.changed=!0,this.data.r=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){var t=this.data,e=t.g;return this.type.is(2)||void 0===e?(this._ensureHSL(),r.default.channel.hsl2rgb(t,"g")):e},set:function(t){this.type.set(1),this.changed=!0,this.data.g=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){var t=this.data,e=t.b;return this.type.is(2)||void 0===e?(this._ensureHSL(),r.default.channel.hsl2rgb(t,"b")):e},set:function(t){this.type.set(1),this.changed=!0,this.data.b=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"h",{get:function(){var t=this.data,e=t.h;return this.type.is(1)||void 0===e?(this._ensureRGB(),r.default.channel.rgb2hsl(t,"h")):e},set:function(t){this.type.set(2),this.changed=!0,this.data.h=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"s",{get:function(){var t=this.data,e=t.s;return this.type.is(1)||void 0===e?(this._ensureRGB(),r.default.channel.rgb2hsl(t,"s")):e},set:function(t){this.type.set(2),this.changed=!0,this.data.s=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"l",{get:function(){var t=this.data,e=t.l;return this.type.is(1)||void 0===e?(this._ensureRGB(),r.default.channel.rgb2hsl(t,"l")):e},set:function(t){this.type.set(2),this.changed=!0,this.data.l=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a",{get:function(){return this.data.a},set:function(t){this.changed=!0,this.data.a=t},enumerable:!0,configurable:!0}),t}();e.default=a},8167:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=new(n(1773).default)({r:0,g:0,b:0,a:0},"transparent");e.default=r},7628:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.type=0}return t.prototype.get=function(){return this.type},t.prototype.set=function(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t},t.prototype.reset=function(){this.type=0},t.prototype.is=function(t){return this.type===t},t}();e.default=n},1655:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(8167),i=n(6061),a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:function(t){if(35===t.charCodeAt(0)){var e=t.match(a.re);if(e){var n=e[1],i=parseInt(n,16),o=n.length,s=o%4==0,c=o>4,l=c?1:17,A=c?8:4,u=s?0:-1,h=c?255:15;return r.default.set({r:(i>>A*(u+3)&h)*l,g:(i>>A*(u+2)&h)*l,b:(i>>A*(u+1)&h)*l,a:s?(i&h)*l/255:1},t)}}},stringify:function(t){var e=t.r,n=t.g,r=t.b,a=t.a;return a<1?"#"+i.DEC2HEX[Math.round(e)]+i.DEC2HEX[Math.round(n)]+i.DEC2HEX[Math.round(r)]+i.DEC2HEX[Math.round(255*a)]:"#"+i.DEC2HEX[Math.round(e)]+i.DEC2HEX[Math.round(n)]+i.DEC2HEX[Math.round(r)]}};e.default=a},8589:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(8167),a={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:function(t){var e=t.match(a.hueRe);if(e){var n=e[1];switch(e[2]){case"grad":return r.default.channel.clamp.h(.9*parseFloat(n));case"rad":return r.default.channel.clamp.h(180*parseFloat(n)/Math.PI);case"turn":return r.default.channel.clamp.h(360*parseFloat(n))}}return r.default.channel.clamp.h(parseFloat(t))},parse:function(t){var e=t.charCodeAt(0);if(104===e||72===e){var n=t.match(a.re);if(n){var o=n[1],s=n[2],c=n[3],l=n[4],A=n[5];return i.default.set({h:a._hue2deg(o),s:r.default.channel.clamp.s(parseFloat(s)),l:r.default.channel.clamp.l(parseFloat(c)),a:l?r.default.channel.clamp.a(A?parseFloat(l)/100:parseFloat(l)):1},t)}}},stringify:function(t){var e=t.h,n=t.s,i=t.l,a=t.a;return a<1?"hsla("+r.default.lang.round(e)+", "+r.default.lang.round(n)+"%, "+r.default.lang.round(i)+"%, "+a+")":"hsl("+r.default.lang.round(e)+", "+r.default.lang.round(n)+"%, "+r.default.lang.round(i)+"%)"}};e.default=a},2191:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1655),i=n(7538),a=n(6762),o=n(8589),s={format:{keyword:i.default,hex:r.default,rgb:a.default,rgba:a.default,hsl:o.default,hsla:o.default},parse:function(t){if("string"!=typeof t)return t;var e=r.default.parse(t)||a.default.parse(t)||o.default.parse(t)||i.default.parse(t);if(e)return e;throw new Error('Unsupported color format: "'+t+'"')},stringify:function(t){return!t.changed&&t.color?t.color:t.type.is(2)||void 0===t.data.r?o.default.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?a.default.stringify(t):r.default.stringify(t)}};e.default=s},7538:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1655),i={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:function(t){t=t.toLowerCase();var e=i.colors[t];if(e)return r.default.parse(e)},stringify:function(t){var e=r.default.stringify(t);for(var n in i.colors)if(i.colors[n]===e)return n}};e.default=i},6762:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(8167),a={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:function(t){var e=t.charCodeAt(0);if(114===e||82===e){var n=t.match(a.re);if(n){var o=n[1],s=n[2],c=n[3],l=n[4],A=n[5],u=n[6],h=n[7],f=n[8];return i.default.set({r:r.default.channel.clamp.r(s?2.55*parseFloat(o):parseFloat(o)),g:r.default.channel.clamp.g(l?2.55*parseFloat(c):parseFloat(c)),b:r.default.channel.clamp.b(u?2.55*parseFloat(A):parseFloat(A)),a:h?r.default.channel.clamp.a(f?parseFloat(h)/100:parseFloat(h)):1},t)}}},stringify:function(t){var e=t.r,n=t.g,i=t.b,a=t.a;return a<1?"rgba("+r.default.lang.round(e)+", "+r.default.lang.round(n)+", "+r.default.lang.round(i)+", "+r.default.lang.round(a)+")":"rgb("+r.default.lang.round(e)+", "+r.default.lang.round(n)+", "+r.default.lang.round(i)+")"}};e.default=a},6061:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i={};e.DEC2HEX=i;for(var a=0;a<=255;a++)i[a]=r.default.unit.dec2hex(a)},8613:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(1203))},5371:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191),i=n(418);e.default=function(t,e){var n=r.default.parse(t),a={};for(var o in e)e[o]&&(a[o]=n[o]+e[o]);return i.default(t,a)}},1416:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(2191);e.default=function(t,e,n){var a=i.default.parse(t),o=a[e],s=r.default.channel.clamp[e](o+n);return o!==s&&(a[e]=s),i.default.stringify(a)}},9353:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"a")}},3394:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"b")}},418:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(2191);e.default=function(t,e){var n=i.default.parse(t);for(var a in e)n[a]=r.default.channel.clamp[a](e[a]);return i.default.stringify(n)}},6197:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(2191);e.default=function(t,e){return r.default.lang.round(i.default.parse(t)[e])}},7361:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t){return r.default(t,"h",180)}},3042:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(8346);e.default=function(t,e){var n=i.default(t),a=i.default(e),o=Math.max(n,a),s=Math.min(n,a),c=(o+Number.EPSILON)/(s+Number.EPSILON);return r.default.lang.round(r.default.lang.clamp(c,1,10))}},1364:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t,e){return r.default(t,"l",-e)}},9610:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t,e){return r.default(t,"s",-e)}},572:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(418);e.default=function(t){return r.default(t,{s:0})}},2299:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"g")}},3116:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(8167),a=n(2191);e.default=function(t,e,n,o){void 0===o&&(o=1);var s=i.default.set({h:r.default.channel.clamp.h(t),s:r.default.channel.clamp.s(e),l:r.default.channel.clamp.l(n),a:r.default.channel.clamp.a(o)});return a.default.stringify(s)}},3008:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"h")}},1203:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6538);e.hex=r.default;var i=n(6538);e.rgb=i.default;var a=n(6538);e.rgba=a.default;var o=n(3116);e.hsl=o.default;var s=n(3116);e.hsla=s.default;var c=n(2619);e.toKeyword=c.default;var l=n(4307);e.toHex=l.default;var A=n(4125);e.toRgba=A.default;var u=n(7329);e.toHsla=u.default;var h=n(6197);e.channel=h.default;var f=n(9640);e.red=f.default;var d=n(2299);e.green=d.default;var p=n(3394);e.blue=p.default;var g=n(3008);e.hue=g.default;var m=n(6451);e.saturation=m.default;var y=n(9235);e.lightness=y.default;var v=n(9353);e.alpha=v.default;var b=n(9353);e.opacity=b.default;var w=n(3042);e.contrast=w.default;var _=n(8346);e.luminance=_.default;var E=n(4117);e.isDark=E.default;var C=n(2224);e.isLight=C.default;var x=n(585);e.isValid=x.default;var B=n(1080);e.saturate=B.default;var T=n(9610);e.desaturate=T.default;var k=n(3235);e.lighten=k.default;var S=n(1364);e.darken=S.default;var I=n(7189);e.opacify=I.default;var N=n(7189);e.fadeIn=N.default;var M=n(4989);e.transparentize=M.default;var F=n(4989);e.fadeOut=F.default;var D=n(7361);e.complement=D.default;var L=n(572);e.grayscale=L.default;var O=n(5371);e.adjust=O.default;var R=n(418);e.change=R.default;var U=n(566);e.invert=U.default;var P=n(1861);e.mix=P.default;var Q=n(7081);e.scale=Q.default},566:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191),i=n(1861);e.default=function(t,e){void 0===e&&(e=100);var n=r.default.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,i.default(n,t,e)}},4117:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2224);e.default=function(t){return!r.default(t)}},2224:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(8346);e.default=function(t){return r.default(t)>=.5}},585:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191);e.default=function(t){try{return r.default.parse(t),!0}catch(t){return!1}}},3235:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t,e){return r.default(t,"l",e)}},9235:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"l")}},8346:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(2191);e.default=function(t){var e=i.default.parse(t),n=e.r,a=e.g,o=e.b,s=.2126*r.default.channel.toLinear(n)+.7152*r.default.channel.toLinear(a)+.0722*r.default.channel.toLinear(o);return r.default.lang.round(s)}},1861:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191),i=n(6538);e.default=function(t,e,n){void 0===n&&(n=50);var a=r.default.parse(t),o=a.r,s=a.g,c=a.b,l=a.a,A=r.default.parse(e),u=A.r,h=A.g,f=A.b,d=A.a,p=n/100,g=2*p-1,m=l-d,y=((g*m==-1?g:(g+m)/(1+g*m))+1)/2,v=1-y,b=o*y+u*v,w=s*y+h*v,_=c*y+f*v,E=l*p+d*(1-p);return i.default(b,w,_,E)}},7189:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t,e){return r.default(t,"a",e)}},9640:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"r")}},6538:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(8167),a=n(2191),o=n(418);e.default=function(t,e,n,s){if(void 0===n&&(n=0),void 0===s&&(s=1),"number"!=typeof t)return o.default(t,{a:e});var c=i.default.set({r:r.default.channel.clamp.r(t),g:r.default.channel.clamp.g(e),b:r.default.channel.clamp.b(n),a:r.default.channel.clamp.a(s)});return a.default.stringify(c)}},1080:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t,e){return r.default(t,"s",e)}},6451:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"s")}},7081:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(2191),a=n(5371);e.default=function(t,e){var n,o,s,c=i.default.parse(t),l={};for(var A in e)l[A]=(n=c[A],o=e[A],s=r.default.channel.max[A],o>0?(s-n)*o/100:n*o/100);return a.default(t,l)}},4307:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191);e.default=function(t){return r.default.format.hex.stringify(r.default.parse(t))}},7329:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191);e.default=function(t){return r.default.format.hsla.stringify(r.default.parse(t))}},2619:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191);e.default=function(t){return r.default.format.keyword.stringify(r.default.parse(t))}},4125:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191);e.default=function(t){return r.default.format.rgba.stringify(r.default.parse(t))}},4989:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t,e){return r.default(t,"a",-e)}},7994:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:function(t){return t>=255?255:t<0?0:t},g:function(t){return t>=255?255:t<0?0:t},b:function(t){return t>=255?255:t<0?0:t},h:function(t){return t%360},s:function(t){return t>=100?100:t<0?0:t},l:function(t){return t>=100?100:t<0?0:t},a:function(t){return t>=1?1:t<0?0:t}},toLinear:function(t){var e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t},hsl2rgb:function(t,e){var r=t.h,i=t.s,a=t.l;if(!i)return 2.55*a;r/=360,i/=100;var o=(a/=100)<.5?a*(1+i):a+i-a*i,s=2*a-o;switch(e){case"r":return 255*n.hue2rgb(s,o,r+1/3);case"g":return 255*n.hue2rgb(s,o,r);case"b":return 255*n.hue2rgb(s,o,r-1/3)}},rgb2hsl:function(t,e){var n=t.r,r=t.g,i=t.b;n/=255,r/=255,i/=255;var a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;if("l"===e)return 100*s;if(a===o)return 0;var c=a-o;if("s"===e)return 100*(s>.5?c/(2-a-o):c/(a+o));switch(a){case n:return 60*((r-i)/c+(r<i?6:0));case r:return 60*((i-n)/c+2);case i:return 60*((n-r)/c+4);default:return-1}}};e.default=n},1083:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(7994),i=n(4027),a=n(318),o={channel:r.default,lang:i.default,unit:a.default};e.default=o},4027:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n={clamp:function(t,e,n){return e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t))},round:function(t){return Math.round(1e10*t)/1e10}};e.default=n},318:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n={dec2hex:function(t){var e=Math.round(t).toString(16);return e.length>1?e:"0"+e}};e.default=n},8552:(t,e,n)=>{var r=n(852)(n(5639),"DataView");t.exports=r},1989:(t,e,n)=>{var r=n(1789),i=n(401),a=n(7667),o=n(1327),s=n(1866);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c},8407:(t,e,n)=>{var r=n(7040),i=n(2188),a=n(2117),o=n(7518),s=n(4705);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c},7071:(t,e,n)=>{var r=n(852)(n(5639),"Map");t.exports=r},3369:(t,e,n)=>{var r=n(4785),i=n(1285),a=n(6e3),o=n(9916),s=n(5265);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c},3818:(t,e,n)=>{var r=n(852)(n(5639),"Promise");t.exports=r},8525:(t,e,n)=>{var r=n(852)(n(5639),"Set");t.exports=r},8668:(t,e,n)=>{var r=n(3369),i=n(619),a=n(2385);function o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,t.exports=o},6384:(t,e,n)=>{var r=n(8407),i=n(7465),a=n(3779),o=n(7599),s=n(4758),c=n(4309);function l(t){var e=this.__data__=new r(t);this.size=e.size}l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=s,l.prototype.set=c,t.exports=l},2705:(t,e,n)=>{var r=n(5639).Symbol;t.exports=r},1149:(t,e,n)=>{var r=n(5639).Uint8Array;t.exports=r},577:(t,e,n)=>{var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}},7443:(t,e,n)=>{var r=n(2118);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},4636:(t,e,n)=>{var r=n(2545),i=n(5694),a=n(1469),o=n(4144),s=n(5776),c=n(6719),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=a(t),A=!n&&i(t),u=!n&&!A&&o(t),h=!n&&!A&&!u&&c(t),f=n||A||u||h,d=f?r(t.length,String):[],p=d.length;for(var g in t)!e&&!l.call(t,g)||f&&("length"==g||u&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,p))||d.push(g);return d}},9932:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},2488:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},2663:t=>{t.exports=function(t,e,n,r){var i=-1,a=null==t?0:t.length;for(r&&a&&(n=t[++i]);++i<a;)n=e(n,t[i],i,t);return n}},2908:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},8983:(t,e,n)=>{var r=n(371)("length");t.exports=r},6556:(t,e,n)=>{var r=n(9465),i=n(7813);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},4865:(t,e,n)=>{var r=n(9465),i=n(7813),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var o=t[e];a.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:(t,e,n)=>{var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:(t,e,n)=>{var r=n(8363),i=n(3674);t.exports=function(t,e){return t&&r(e,i(e),t)}},3886:(t,e,n)=>{var r=n(8363),i=n(1704);t.exports=function(t,e){return t&&r(e,i(e),t)}},9465:(t,e,n)=>{var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},5990:(t,e,n)=>{var r=n(6384),i=n(7412),a=n(4865),o=n(4037),s=n(3886),c=n(4626),l=n(278),A=n(8805),u=n(1911),h=n(8234),f=n(6904),d=n(4160),p=n(3824),g=n(9148),m=n(8517),y=n(1469),v=n(4144),b=n(6688),w=n(3218),_=n(2928),E=n(3674),C=n(1704),x="[object Arguments]",B="[object Function]",T="[object Object]",k={};k[x]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[T]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[B]=k["[object WeakMap]"]=!1,t.exports=function t(e,n,S,I,N,M){var F,D=1&n,L=2&n,O=4&n;if(S&&(F=N?S(e,I,N,M):S(e)),void 0!==F)return F;if(!w(e))return e;var R=y(e);if(R){if(F=p(e),!D)return l(e,F)}else{var U=d(e),P=U==B||"[object GeneratorFunction]"==U;if(v(e))return c(e,D);if(U==T||U==x||P&&!N){if(F=L||P?{}:m(e),!D)return L?u(e,s(F,e)):A(e,o(F,e))}else{if(!k[U])return N?e:{};F=g(e,U,D)}}M||(M=new r);var Q=M.get(e);if(Q)return Q;M.set(e,F),_(e)?e.forEach((function(r){F.add(t(r,n,S,r,e,M))})):b(e)&&e.forEach((function(r,i){F.set(i,t(r,n,S,i,e,M))}));var H=R?void 0:(O?L?f:h:L?C:E)(e);return i(H||e,(function(r,i){H&&(r=e[i=r]),a(F,i,t(r,n,S,i,e,M))})),F}},3118:(t,e,n)=>{var r=n(3218),i=Object.create,a=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=a},9881:(t,e,n)=>{var r=n(7816),i=n(9291)(r);t.exports=i},6029:(t,e,n)=>{var r=n(3448);t.exports=function(t,e,n){for(var i=-1,a=t.length;++i<a;){var o=t[i],s=e(o);if(null!=s&&(void 0===c?s==s&&!r(s):n(s,c)))var c=s,l=o}return l}},760:(t,e,n)=>{var r=n(9881);t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},1848:t=>{t.exports=function(t,e,n,r){for(var i=t.length,a=n+(r?1:-1);r?a--:++a<i;)if(e(t[a],a,t))return a;return-1}},1078:(t,e,n)=>{var r=n(2488),i=n(7285);t.exports=function t(e,n,a,o,s){var c=-1,l=e.length;for(a||(a=i),s||(s=[]);++c<l;){var A=e[c];n>0&&a(A)?n>1?t(A,n-1,a,o,s):r(s,A):o||(s[s.length]=A)}return s}},8483:(t,e,n)=>{var r=n(5063)();t.exports=r},7816:(t,e,n)=>{var r=n(8483),i=n(3674);t.exports=function(t,e){return t&&r(t,e,i)}},7786:(t,e,n)=>{var r=n(1811),i=n(327);t.exports=function(t,e){for(var n=0,a=(e=r(e,t)).length;null!=t&&n<a;)t=t[i(e[n++])];return n&&n==a?t:void 0}},8866:(t,e,n)=>{var r=n(2488),i=n(1469);t.exports=function(t,e,n){var a=e(t);return i(t)?a:r(a,n(t))}},4239:(t,e,n)=>{var r=n(2705),i=n(9607),a=n(2333),o=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?i(t):a(t)}},3325:t=>{t.exports=function(t,e){return t>e}},8565:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,n)=>{var r=n(1848),i=n(2722),a=n(2351);t.exports=function(t,e,n){return e==e?a(t,e,n):r(t,i,n)}},9454:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},939:(t,e,n)=>{var r=n(2492),i=n(7005);t.exports=function t(e,n,a,o,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,a,o,t,s))}},2492:(t,e,n)=>{var r=n(6384),i=n(7114),a=n(8351),o=n(6096),s=n(4160),c=n(1469),l=n(4144),A=n(6719),u="[object Arguments]",h="[object Array]",f="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,g,m){var y=c(t),v=c(e),b=y?h:s(t),w=v?h:s(e),_=(b=b==u?f:b)==f,E=(w=w==u?f:w)==f,C=b==w;if(C&&l(t)){if(!l(e))return!1;y=!0,_=!1}if(C&&!_)return m||(m=new r),y||A(t)?i(t,e,n,p,g,m):a(t,e,b,n,p,g,m);if(!(1&n)){var x=_&&d.call(t,"__wrapped__"),B=E&&d.call(e,"__wrapped__");if(x||B){var T=x?t.value():t,k=B?e.value():e;return m||(m=new r),g(T,k,n,p,m)}}return!!C&&(m||(m=new r),o(t,e,n,p,g,m))}},5588:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},2958:(t,e,n)=>{var r=n(6384),i=n(939);t.exports=function(t,e,n,a){var o=n.length,s=o,c=!a;if(null==t)return!s;for(t=Object(t);o--;){var l=n[o];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<s;){var A=(l=n[o])[0],u=t[A],h=l[1];if(c&&l[2]){if(void 0===u&&!(A in t))return!1}else{var f=new r;if(a)var d=a(u,h,A,t,e,f);if(!(void 0===d?i(h,u,3,a,f):d))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,n)=>{var r=n(3560),i=n(5346),a=n(3218),o=n(346),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,A=c.toString,u=l.hasOwnProperty,h=RegExp("^"+A.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||i(t))&&(r(t)?h:s).test(o(t))}},9221:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},8749:(t,e,n)=>{var r=n(4239),i=n(1780),a=n(7005),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return a(t)&&i(t.length)&&!!o[r(t)]}},7206:(t,e,n)=>{var r=n(1573),i=n(6432),a=n(6557),o=n(1469),s=n(9601);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?o(t)?i(t[0],t[1]):r(t):s(t)}},280:(t,e,n)=>{var r=n(5726),i=n(6916),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:(t,e,n)=>{var r=n(3218),i=n(5726),a=n(3498),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return a(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&o.call(t,s))&&n.push(s);return n}},433:t=>{t.exports=function(t,e){return t<e}},9199:(t,e,n)=>{var r=n(9881),i=n(8612);t.exports=function(t,e){var n=-1,a=i(t)?Array(t.length):[];return r(t,(function(t,r,i){a[++n]=e(t,r,i)})),a}},1573:(t,e,n)=>{var r=n(2958),i=n(1499),a=n(2634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},6432:(t,e,n)=>{var r=n(939),i=n(1917),a=n(9095),o=n(5403),s=n(9162),c=n(2634),l=n(327);t.exports=function(t,e){return o(t)&&s(e)?c(l(t),e):function(n){var o=i(n,t);return void 0===o&&o===e?a(n,t):r(e,o,3)}}},2980:(t,e,n)=>{var r=n(6384),i=n(6556),a=n(8483),o=n(9783),s=n(3218),c=n(1704),l=n(6390);t.exports=function t(e,n,A,u,h){e!==n&&a(n,(function(a,c){if(h||(h=new r),s(a))o(e,n,c,A,t,u,h);else{var f=u?u(l(e,c),a,c+"",e,n,h):void 0;void 0===f&&(f=a),i(e,c,f)}}),c)}},9783:(t,e,n)=>{var r=n(6556),i=n(4626),a=n(7133),o=n(278),s=n(8517),c=n(5694),l=n(1469),A=n(9246),u=n(4144),h=n(3560),f=n(3218),d=n(8630),p=n(6719),g=n(6390),m=n(3678);t.exports=function(t,e,n,y,v,b,w){var _=g(t,n),E=g(e,n),C=w.get(E);if(C)r(t,n,C);else{var x=b?b(_,E,n+"",t,e,w):void 0,B=void 0===x;if(B){var T=l(E),k=!T&&u(E),S=!T&&!k&&p(E);x=E,T||k||S?l(_)?x=_:A(_)?x=o(_):k?(B=!1,x=i(E,!0)):S?(B=!1,x=a(E,!0)):x=[]:d(E)||c(E)?(x=_,c(_)?x=m(_):f(_)&&!h(_)||(x=s(E))):B=!1}B&&(w.set(E,x),v(x,E,y,b,w),w.delete(E)),r(t,n,x)}}},9556:(t,e,n)=>{var r=n(9932),i=n(7786),a=n(7206),o=n(9199),s=n(1131),c=n(1717),l=n(5022),A=n(6557),u=n(1469);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return u(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[A];var h=-1;e=r(e,c(a));var f=o(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++h,value:t}}));return s(f,(function(t,e){return l(t,e,n)}))}},5970:(t,e,n)=>{var r=n(3012),i=n(9095);t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},3012:(t,e,n)=>{var r=n(7786),i=n(611),a=n(1811);t.exports=function(t,e,n){for(var o=-1,s=e.length,c={};++o<s;){var l=e[o],A=r(t,l);n(A,l)&&i(c,a(l,t),A)}return c}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,n)=>{var r=n(7786);t.exports=function(t){return function(e){return r(e,t)}}},98:t=>{var e=Math.ceil,n=Math.max;t.exports=function(t,r,i,a){for(var o=-1,s=n(e((r-t)/(i||1)),0),c=Array(s);s--;)c[a?s:++o]=t,t+=i;return c}},107:t=>{t.exports=function(t,e,n,r,i){return i(t,(function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)})),n}},5976:(t,e,n)=>{var r=n(6557),i=n(5357),a=n(61);t.exports=function(t,e){return a(i(t,e,r),t+"")}},611:(t,e,n)=>{var r=n(4865),i=n(1811),a=n(5776),o=n(3218),s=n(327);t.exports=function(t,e,n,c){if(!o(t))return t;for(var l=-1,A=(e=i(e,t)).length,u=A-1,h=t;null!=h&&++l<A;){var f=s(e[l]),d=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(l!=u){var p=h[f];void 0===(d=c?c(p,f,h):void 0)&&(d=o(p)?p:a(e[l+1])?[]:{})}r(h,f,d),h=h[f]}return t}},6560:(t,e,n)=>{var r=n(5703),i=n(8777),a=n(6557),o=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:a;t.exports=o},1131:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},2545:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},531:(t,e,n)=>{var r=n(2705),i=n(9932),a=n(1469),o=n(3448),s=r?r.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(a(e))return i(e,t)+"";if(o(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},7561:(t,e,n)=>{var r=n(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},5652:(t,e,n)=>{var r=n(8668),i=n(7443),a=n(1196),o=n(4757),s=n(3593),c=n(1814);t.exports=function(t,e,n){var l=-1,A=i,u=t.length,h=!0,f=[],d=f;if(n)h=!1,A=a;else if(u>=200){var p=e?null:s(t);if(p)return c(p);h=!1,A=o,d=new r}else d=e?[]:f;t:for(;++l<u;){var g=t[l],m=e?e(g):g;if(g=n||0!==g?g:0,h&&m==m){for(var y=d.length;y--;)if(d[y]===m)continue t;e&&d.push(m),f.push(g)}else A(d,m,n)||(d!==f&&d.push(m),f.push(g))}return f}},7415:(t,e,n)=>{var r=n(9932);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},1757:t=>{t.exports=function(t,e,n){for(var r=-1,i=t.length,a=e.length,o={};++r<i;){var s=r<a?e[r]:void 0;n(o,t[r],s)}return o}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4290:(t,e,n)=>{var r=n(6557);t.exports=function(t){return"function"==typeof t?t:r}},1811:(t,e,n)=>{var r=n(1469),i=n(5403),a=n(5514),o=n(9833);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:a(o(t))}},4318:(t,e,n)=>{var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}},7157:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:(t,e,n)=>{var r=n(2705),i=r?r.prototype:void 0,a=i?i.valueOf:void 0;t.exports=function(t){return a?Object(a.call(t)):{}}},7133:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},6393:(t,e,n)=>{var r=n(3448);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,a=t==t,o=r(t),s=void 0!==e,c=null===e,l=e==e,A=r(e);if(!c&&!A&&!o&&t>e||o&&s&&l&&!c&&!A||i&&s&&l||!n&&l||!a)return 1;if(!i&&!o&&!A&&t<e||A&&n&&a&&!i&&!o||c&&n&&a||!s&&a||!l)return-1}return 0}},5022:(t,e,n)=>{var r=n(6393);t.exports=function(t,e,n){for(var i=-1,a=t.criteria,o=e.criteria,s=a.length,c=n.length;++i<s;){var l=r(a[i],o[i]);if(l)return i>=c?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}},278:t=>{t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:(t,e,n)=>{var r=n(4865),i=n(9465);t.exports=function(t,e,n,a){var o=!n;n||(n={});for(var s=-1,c=e.length;++s<c;){var l=e[s],A=a?a(n[l],t[l],l,n,t):void 0;void 0===A&&(A=t[l]),o?i(n,l,A):r(n,l,A)}return n}},8805:(t,e,n)=>{var r=n(8363),i=n(9551);t.exports=function(t,e){return r(t,i(t),e)}},1911:(t,e,n)=>{var r=n(8363),i=n(1442);t.exports=function(t,e){return r(t,i(t),e)}},4429:(t,e,n)=>{var r=n(5639)["__core-js_shared__"];t.exports=r},1750:(t,e,n)=>{var r=n(5976),i=n(6612);t.exports=function(t){return r((function(e,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);++r<a;){var c=n[r];c&&t(e,c,r,o)}return e}))}},9291:(t,e,n)=>{var r=n(8612);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var a=n.length,o=e?a:-1,s=Object(n);(e?o--:++o<a)&&!1!==i(s[o],o,s););return n}}},5063:t=>{t.exports=function(t){return function(e,n,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var c=o[t?s:++i];if(!1===n(a[c],c,a))break}return e}}},7740:(t,e,n)=>{var r=n(7206),i=n(8612),a=n(3674);t.exports=function(t){return function(e,n,o){var s=Object(e);if(!i(e)){var c=r(n,3);e=a(e),n=function(t){return c(s[t],t,s)}}var l=t(e,n,o);return l>-1?s[c?e[l]:l]:void 0}}},7445:(t,e,n)=>{var r=n(98),i=n(6612),a=n(8601);t.exports=function(t){return function(e,n,o){return o&&"number"!=typeof o&&i(e,n,o)&&(n=o=void 0),e=a(e),void 0===n?(n=e,e=0):n=a(n),o=void 0===o?e<n?1:-1:a(o),r(e,n,o,t)}}},3593:(t,e,n)=>{var r=n(8525),i=n(308),a=n(1814),o=r&&1/a(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=o},8777:(t,e,n)=>{var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},7114:(t,e,n)=>{var r=n(8668),i=n(2908),a=n(4757);t.exports=function(t,e,n,o,s,c){var l=1&n,A=t.length,u=e.length;if(A!=u&&!(l&&u>A))return!1;var h=c.get(t),f=c.get(e);if(h&&f)return h==e&&f==t;var d=-1,p=!0,g=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++d<A;){var m=t[d],y=e[d];if(o)var v=l?o(y,m,d,e,t,c):o(m,y,d,t,e,c);if(void 0!==v){if(v)continue;p=!1;break}if(g){if(!i(e,(function(t,e){if(!a(g,e)&&(m===t||s(m,t,n,o,c)))return g.push(e)}))){p=!1;break}}else if(m!==y&&!s(m,y,n,o,c)){p=!1;break}}return c.delete(t),c.delete(e),p}},8351:(t,e,n)=>{var r=n(2705),i=n(1149),a=n(7813),o=n(7114),s=n(8776),c=n(1814),l=r?r.prototype:void 0,A=l?l.valueOf:void 0;t.exports=function(t,e,n,r,l,u,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!u(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=s;case"[object Set]":var d=1&r;if(f||(f=c),t.size!=e.size&&!d)return!1;var p=h.get(t);if(p)return p==e;r|=2,h.set(t,e);var g=o(f(t),f(e),r,l,u,h);return h.delete(t),g;case"[object Symbol]":if(A)return A.call(t)==A.call(e)}return!1}},6096:(t,e,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,a,o,s){var c=1&n,l=r(t),A=l.length;if(A!=r(e).length&&!c)return!1;for(var u=A;u--;){var h=l[u];if(!(c?h in e:i.call(e,h)))return!1}var f=s.get(t),d=s.get(e);if(f&&d)return f==e&&d==t;var p=!0;s.set(t,e),s.set(e,t);for(var g=c;++u<A;){var m=t[h=l[u]],y=e[h];if(a)var v=c?a(y,m,h,e,t,s):a(m,y,h,t,e,s);if(!(void 0===v?m===y||o(m,y,n,a,s):v)){p=!1;break}g||(g="constructor"==h)}if(p&&!g){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return s.delete(t),s.delete(e),p}},9021:(t,e,n)=>{var r=n(5564),i=n(5357),a=n(61);t.exports=function(t){return a(i(t,void 0,r),t+"")}},1957:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:(t,e,n)=>{var r=n(8866),i=n(9551),a=n(3674);t.exports=function(t){return r(t,a,i)}},6904:(t,e,n)=>{var r=n(8866),i=n(1442),a=n(1704);t.exports=function(t){return r(t,a,i)}},5050:(t,e,n)=>{var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:(t,e,n)=>{var r=n(9162),i=n(3674);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var a=e[n],o=t[a];e[n]=[a,o,r(o)]}return e}},852:(t,e,n)=>{var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},5924:(t,e,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:(t,e,n)=>{var r=n(2705),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=o.call(t);return r&&(e?t[s]=n:delete t[s]),i}},9551:(t,e,n)=>{var r=n(4963),i=n(479),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(t){return null==t?[]:(t=Object(t),r(o(t),(function(e){return a.call(t,e)})))}:i;t.exports=s},1442:(t,e,n)=>{var r=n(2488),i=n(5924),a=n(9551),o=n(479),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,a(t)),t=i(t);return e}:o;t.exports=s},4160:(t,e,n)=>{var r=n(8552),i=n(7071),a=n(3818),o=n(8525),s=n(577),c=n(4239),l=n(346),A="[object Map]",u="[object Promise]",h="[object Set]",f="[object WeakMap]",d="[object DataView]",p=l(r),g=l(i),m=l(a),y=l(o),v=l(s),b=c;(r&&b(new r(new ArrayBuffer(1)))!=d||i&&b(new i)!=A||a&&b(a.resolve())!=u||o&&b(new o)!=h||s&&b(new s)!=f)&&(b=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?l(n):"";if(r)switch(r){case p:return d;case g:return A;case m:return u;case y:return h;case v:return f}return e}),t.exports=b},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,n)=>{var r=n(1811),i=n(5694),a=n(1469),o=n(5776),s=n(1780),c=n(327);t.exports=function(t,e,n){for(var l=-1,A=(e=r(e,t)).length,u=!1;++l<A;){var h=c(e[l]);if(!(u=null!=t&&n(t,h)))break;t=t[h]}return u||++l!=A?u:!!(A=null==t?0:t.length)&&s(A)&&o(h,A)&&(a(t)||i(t))}},2689:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},1789:(t,e,n)=>{var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},1327:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},1866:(t,e,n)=>{var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:(t,e,n)=>{var r=n(4318),i=n(7157),a=n(3147),o=n(419),s=n(7133);t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return a(t);case"[object Symbol]":return o(t)}}},8517:(t,e,n)=>{var r=n(3118),i=n(5924),a=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||a(t)?{}:r(i(t))}},7285:(t,e,n)=>{var r=n(2705),i=n(5694),a=n(1469),o=r?r.isConcatSpreadable:void 0;t.exports=function(t){return a(t)||i(t)||!!(o&&t&&t[o])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:(t,e,n)=>{var r=n(7813),i=n(8612),a=n(5776),o=n(3218);t.exports=function(t,e,n){if(!o(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&a(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},5403:(t,e,n)=>{var r=n(1469),i=n(3448),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||o.test(t)||!a.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,n)=>{var r,i=n(4429),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!a&&a in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},9162:(t,e,n)=>{var r=n(3218);t.exports=function(t){return t==t&&!r(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},2188:(t,e,n)=>{var r=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},2117:(t,e,n)=>{var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:(t,e,n)=>{var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:(t,e,n)=>{var r=n(8470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:(t,e,n)=>{var r=n(1989),i=n(8407),a=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},1285:(t,e,n)=>{var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:(t,e,n)=>{var r=n(5050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},2634:t=>{t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},4523:(t,e,n)=>{var r=n(8306);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},4536:(t,e,n)=>{var r=n(852)(Object,"create");t.exports=r},6916:(t,e,n)=>{var r=n(5569)(Object.keys,Object);t.exports=r},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:(t,e,n)=>{t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,o=a&&a.exports===i&&r.process,s=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},5357:(t,e,n)=>{var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var a=arguments,o=-1,s=i(a.length-e,0),c=Array(s);++o<s;)c[o]=a[e+o];o=-1;for(var l=Array(e+1);++o<e;)l[o]=a[o];return l[e]=n(c),r(t,this,l)}}},5639:(t,e,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();t.exports=a},6390:t=>{t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},61:(t,e,n)=>{var r=n(6560),i=n(1275)(r);t.exports=i},1275:t=>{var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),a=16-(i-r);if(r=i,a>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:(t,e,n)=>{var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,n)=>{var r=n(8407),i=n(7071),a=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(t,e),this.size=n.size,this}},2351:t=>{t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},8016:(t,e,n)=>{var r=n(8983),i=n(2689),a=n(1903);t.exports=function(t){return i(t)?a(t):r(t)}},5514:(t,e,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(a,"$1"):n||t)})),e}));t.exports=o},327:(t,e,n)=>{var r=n(3448);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},1903:t=>{var e="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",o="(?:"+e+"|"+n+")?",s="[\\ufe0e\\ufe0f]?",c=s+o+"(?:\\u200d(?:"+[r,i,a].join("|")+")"+s+o+")*",l="(?:"+[r+e+"?",e,i,a,"[\\ud800-\\udfff]"].join("|")+")",A=RegExp(n+"(?="+n+")|"+l+c,"g");t.exports=function(t){for(var e=A.lastIndex=0;A.test(t);)++e;return e}},6678:(t,e,n)=>{var r=n(5990);t.exports=function(t){return r(t,4)}},361:(t,e,n)=>{var r=n(5990);t.exports=function(t){return r(t,5)}},5703:t=>{t.exports=function(t){return function(){return t}}},1747:(t,e,n)=>{var r=n(5976),i=n(7813),a=n(6612),o=n(1704),s=Object.prototype,c=s.hasOwnProperty,l=r((function(t,e){t=Object(t);var n=-1,r=e.length,l=r>2?e[2]:void 0;for(l&&a(e[0],e[1],l)&&(r=1);++n<r;)for(var A=e[n],u=o(A),h=-1,f=u.length;++h<f;){var d=u[h],p=t[d];(void 0===p||i(p,s[d])&&!c.call(t,d))&&(t[d]=A[d])}return t}));t.exports=l},6073:(t,e,n)=>{t.exports=n(4486)},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3105:(t,e,n)=>{var r=n(4963),i=n(760),a=n(7206),o=n(1469);t.exports=function(t,e){return(o(t)?r:i)(t,a(e,3))}},3311:(t,e,n)=>{var r=n(7740)(n(998));t.exports=r},998:(t,e,n)=>{var r=n(1848),i=n(7206),a=n(554),o=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var c=null==n?0:a(n);return c<0&&(c=o(s+c,0)),r(t,i(e,3),c)}},5564:(t,e,n)=>{var r=n(1078);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},4486:(t,e,n)=>{var r=n(7412),i=n(9881),a=n(4290),o=n(1469);t.exports=function(t,e){return(o(t)?r:i)(t,a(e))}},2620:(t,e,n)=>{var r=n(8483),i=n(4290),a=n(1704);t.exports=function(t,e){return null==t?t:r(t,i(e),a)}},1917:(t,e,n)=>{var r=n(7786);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},8721:(t,e,n)=>{var r=n(8565),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},9095:(t,e,n)=>{var r=n(13),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,n)=>{var r=n(9454),i=n(7005),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&o.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,n)=>{var r=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},9246:(t,e,n)=>{var r=n(8612),i=n(7005);t.exports=function(t){return i(t)&&r(t)}},4144:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=n(5062),a=e&&!e.nodeType&&e,o=a&&t&&!t.nodeType&&t,s=o&&o.exports===a?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c},1609:(t,e,n)=>{var r=n(280),i=n(4160),a=n(5694),o=n(1469),s=n(8612),c=n(4144),l=n(5726),A=n(6719),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||A(t)||a(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!r(t).length;for(var n in t)if(u.call(t,n))return!1;return!0}},3560:(t,e,n)=>{var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,n)=>{var r=n(5588),i=n(1717),a=n(1167),o=a&&a.isMap,s=o?i(o):r;t.exports=s},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8630:(t,e,n)=>{var r=n(4239),i=n(5924),a=n(7005),o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,A=c.call(Object);t.exports=function(t){if(!a(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==A}},2928:(t,e,n)=>{var r=n(9221),i=n(1717),a=n(1167),o=a&&a.isSet,s=o?i(o):r;t.exports=s},7037:(t,e,n)=>{var r=n(4239),i=n(1469),a=n(7005);t.exports=function(t){return"string"==typeof t||!i(t)&&a(t)&&"[object String]"==r(t)}},3448:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},6719:(t,e,n)=>{var r=n(8749),i=n(1717),a=n(1167),o=a&&a.isTypedArray,s=o?i(o):r;t.exports=s},2353:t=>{t.exports=function(t){return void 0===t}},3674:(t,e,n)=>{var r=n(4636),i=n(280),a=n(8612);t.exports=function(t){return a(t)?r(t):i(t)}},1704:(t,e,n)=>{var r=n(4636),i=n(313),a=n(8612);t.exports=function(t){return a(t)?r(t,!0):i(t)}},928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},5161:(t,e,n)=>{var r=n(9932),i=n(7206),a=n(9199),o=n(1469);t.exports=function(t,e){return(o(t)?r:a)(t,i(e,3))}},6604:(t,e,n)=>{var r=n(9465),i=n(7816),a=n(7206);t.exports=function(t,e){var n={};return e=a(e,3),i(t,(function(t,i,a){r(n,i,e(t,i,a))})),n}},6162:(t,e,n)=>{var r=n(6029),i=n(3325),a=n(6557);t.exports=function(t){return t&&t.length?r(t,a,i):void 0}},8306:(t,e,n)=>{var r=n(3369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},3857:(t,e,n)=>{var r=n(2980),i=n(1750)((function(t,e,n){r(t,e,n)}));t.exports=i},3632:(t,e,n)=>{var r=n(6029),i=n(433),a=n(6557);t.exports=function(t){return t&&t.length?r(t,a,i):void 0}},2762:(t,e,n)=>{var r=n(6029),i=n(7206),a=n(433);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),a):void 0}},308:t=>{t.exports=function(){}},7771:(t,e,n)=>{var r=n(5639);t.exports=function(){return r.Date.now()}},9722:(t,e,n)=>{var r=n(5970),i=n(9021)((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},9601:(t,e,n)=>{var r=n(371),i=n(9152),a=n(5403),o=n(327);t.exports=function(t){return a(t)?r(o(t)):i(t)}},6026:(t,e,n)=>{var r=n(7445)();t.exports=r},4061:(t,e,n)=>{var r=n(2663),i=n(9881),a=n(7206),o=n(107),s=n(1469);t.exports=function(t,e,n){var c=s(t)?r:o,l=arguments.length<3;return c(t,a(e,4),n,l,i)}},4238:(t,e,n)=>{var r=n(280),i=n(4160),a=n(8612),o=n(7037),s=n(8016);t.exports=function(t){if(null==t)return 0;if(a(t))return o(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},9734:(t,e,n)=>{var r=n(1078),i=n(9556),a=n(5976),o=n(6612),s=a((function(t,e){if(null==t)return[];var n=e.length;return n>1&&o(t,e[0],e[1])?e=[]:n>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},8601:(t,e,n)=>{var r=n(4841);t.exports=function(t){return t?1/0===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},554:(t,e,n)=>{var r=n(8601);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},4841:(t,e,n)=>{var r=n(7561),i=n(3218),a=n(3448),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):o.test(t)?NaN:+t}},3678:(t,e,n)=>{var r=n(8363),i=n(1704);t.exports=function(t){return r(t,i(t))}},9833:(t,e,n)=>{var r=n(531);t.exports=function(t){return null==t?"":r(t)}},8718:(t,e,n)=>{var r=n(7412),i=n(3118),a=n(7816),o=n(7206),s=n(5924),c=n(1469),l=n(4144),A=n(3560),u=n(3218),h=n(6719);t.exports=function(t,e,n){var f=c(t),d=f||l(t)||h(t);if(e=o(e,4),null==n){var p=t&&t.constructor;n=d?f?new p:[]:u(t)&&A(p)?i(s(t)):{}}return(d?r:a)(t,(function(t,r,i){return e(n,t,r,i)})),n}},3386:(t,e,n)=>{var r=n(1078),i=n(5976),a=n(5652),o=n(9246),s=i((function(t){return a(r(t,1,o,!0))}));t.exports=s},3955:(t,e,n)=>{var r=n(9833),i=0;t.exports=function(t){var e=++i;return r(t)+e}},2628:(t,e,n)=>{var r=n(7415),i=n(3674);t.exports=function(t){return null==t?[]:r(t,i(t))}},7287:(t,e,n)=>{var r=n(4865),i=n(1757);t.exports=function(t,e){return i(t||[],e||[],r)}},9234:()=>{},1748:(t,e,n)=>{var r={"./locale":9234,"./locale.js":9234};function i(t){var e=a(t);return n(e)}function a(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=a,t.exports=i,i.id=1748},1941:function(t,e,n){(t=n.nmd(t)).exports=function(){var e,r;function i(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function l(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function A(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function h(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,r){return ve(t,e,n,r,!0).utc()}function d(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=d(t),n=r.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function g(t){var e=f(NaN);return null!=t?h(d(e),t):d(e).userInvalidated=!0,e}r=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var m=i.momentProperties=[];function y(t,e){var n,r,i;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=d(e)),s(e._locale)||(t._locale=e._locale),0<m.length)for(n=0;n<m.length;n++)s(i=e[r=m[n]])||(t[r]=i);return t}var v=!1;function b(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function w(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function _(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function E(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=_(e)),n}function C(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&E(t[r])!==E(e[r]))&&o++;return o+a}function x(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function B(t,e){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var r,a=[],o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(var s in r+="\n["+o+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[o];a.push(r)}x(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var T,k={};function S(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),k[t]||(x(e),k[t]=!0)}function I(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function N(t,e){var n,r=h({},t);for(n in e)u(e,n)&&(o(t[n])&&o(e[n])?(r[n]={},h(r[n],t[n]),h(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)u(t,n)&&!u(e,n)&&o(t[n])&&(r[n]=h({},r[n]));return r}function M(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,T=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var F={};function D(t,e){var n=t.toLowerCase();F[n]=F[n+"s"]=F[e]=t}function L(t){return"string"==typeof t?F[t]||F[t.toLowerCase()]:void 0}function O(t){var e,n,r={};for(n in t)u(t,n)&&(e=L(n))&&(r[e]=t[n]);return r}var R={};function U(t,e){R[t]=e}function P(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Q=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},j={};function K(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(j[t]=i),e&&(j[e[0]]=function(){return P(i.apply(this,arguments),e[1],e[2])}),n&&(j[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function $(t,e){return t.isValid()?(e=Y(e,t.localeData()),G[e]=G[e]||function(t){var e,n,r,i=t.match(Q);for(e=0,n=i.length;e<n;e++)j[i[e]]?i[e]=j[i[e]]:i[e]=(r=i[e]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(e){var r,a="";for(r=0;r<n;r++)a+=I(i[r])?i[r].call(e,t):i[r];return a}}(e),G[e](t)):t.localeData().invalidDate()}function Y(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(H.lastIndex=0;0<=n&&H.test(t);)t=t.replace(H,r),H.lastIndex=0,n-=1;return t}var V=/\d/,z=/\d\d/,W=/\d{3}/,q=/\d{4}/,X=/[+-]?\d{6}/,J=/\d\d?/,Z=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,rt=/[+-]?\d{1,6}/,it=/\d+/,at=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,lt={};function At(t,e,n){lt[t]=I(e)?e:function(t,r){return t&&n?n:e}}function ut(t,e){return u(lt,t)?lt[t](e._strict,e._locale):new RegExp(ht(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i}))))}function ht(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function dt(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),c(e)&&(r=function(t,n){n[e]=E(t)}),n=0;n<t.length;n++)ft[t[n]]=r}function pt(t,e){dt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function gt(t){return mt(t)?366:365}function mt(t){return t%4==0&&t%100!=0||t%400==0}K("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),K(0,["YY",2],0,(function(){return this.year()%100})),K(0,["YYYY",4],0,"year"),K(0,["YYYYY",5],0,"year"),K(0,["YYYYYY",6,!0],0,"year"),D("year","y"),U("year",1),At("Y",at),At("YY",J,z),At("YYYY",nt,q),At("YYYYY",rt,X),At("YYYYYY",rt,X),dt(["YYYYY","YYYYYY"],0),dt("YYYY",(function(t,e){e[0]=2===t.length?i.parseTwoDigitYear(t):E(t)})),dt("YY",(function(t,e){e[0]=i.parseTwoDigitYear(t)})),dt("Y",(function(t,e){e[0]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return E(t)+(68<E(t)?1900:2e3)};var yt,vt=bt("FullYear",!0);function bt(t,e){return function(n){return null!=n?(_t(this,t,n),i.updateOffset(this,e),this):wt(this,t)}}function wt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function _t(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&mt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Et(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Et(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%12+12)%12;return t+=(e-n)/12,1===n?mt(t)?29:28:31-n%7%2}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},K("M",["MM",2],"Mo",(function(){return this.month()+1})),K("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),K("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),D("month","M"),U("month",8),At("M",J),At("MM",J,z),At("MMM",(function(t,e){return e.monthsShortRegex(t)})),At("MMMM",(function(t,e){return e.monthsRegex(t)})),dt(["M","MM"],(function(t,e){e[1]=E(t)-1})),dt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[1]=i:d(n).invalidMonth=t}));var Ct=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Bt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Tt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=E(e);else if(!c(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Et(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function kt(t){return null!=t?(Tt(this,t),i.updateOffset(this,!0),this):wt(this,"Month")}var St=ct,It=ct;function Nt(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=f([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),a.sort(t),e=0;e<12;e++)r[e]=ht(r[e]),i[e]=ht(i[e]);for(e=0;e<24;e++)a[e]=ht(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Mt(t){var e;if(t<100&&0<=t){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Ft(t,e,n){var r=7+e-n;return-(7+Mt(t,0,r).getUTCDay()-e)%7+r-1}function Dt(t,e,n,r,i){var a,o,s=1+7*(e-1)+(7+n-r)%7+Ft(t,r,i);return o=s<=0?gt(a=t-1)+s:s>gt(t)?(a=t+1,s-gt(t)):(a=t,s),{year:a,dayOfYear:o}}function Lt(t,e,n){var r,i,a=Ft(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?r=o+Ot(i=t.year()-1,e,n):o>Ot(t.year(),e,n)?(r=o-Ot(t.year(),e,n),i=t.year()+1):(i=t.year(),r=o),{week:r,year:i}}function Ot(t,e,n){var r=Ft(t,e,n),i=Ft(t+1,e,n);return(gt(t)-r+i)/7}function Rt(t,e){return t.slice(e,7).concat(t.slice(0,e))}K("w",["ww",2],"wo","week"),K("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),U("week",5),U("isoWeek",5),At("w",J),At("ww",J,z),At("W",J),At("WW",J,z),pt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=E(t)})),K("d",0,"do","day"),K("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),K("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),K("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),K("e",0,0,"weekday"),K("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),At("d",J),At("e",J),At("E",J),At("dd",(function(t,e){return e.weekdaysMinRegex(t)})),At("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),At("dddd",(function(t,e){return e.weekdaysRegex(t)})),pt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:d(n).invalidWeekday=t})),pt(["d","e","E"],(function(t,e,n,r){e[r]=E(t)}));var Ut="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ht=ct,Gt=ct,jt=ct;function Kt(){function t(t,e){return e.length-t.length}var e,n,r,i,a,o=[],s=[],c=[],l=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(r),s.push(i),c.push(a),l.push(r),l.push(i),l.push(a);for(o.sort(t),s.sort(t),c.sort(t),l.sort(t),e=0;e<7;e++)s[e]=ht(s[e]),c[e]=ht(c[e]),l[e]=ht(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function $t(){return this.hours()%12||12}function Yt(t,e){K(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Vt(t,e){return e._meridiemParse}K("H",["HH",2],0,"hour"),K("h",["hh",2],0,$t),K("k",["kk",2],0,(function(){return this.hours()||24})),K("hmm",0,0,(function(){return""+$t.apply(this)+P(this.minutes(),2)})),K("hmmss",0,0,(function(){return""+$t.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),K("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),K("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),Yt("a",!0),Yt("A",!1),D("hour","h"),U("hour",13),At("a",Vt),At("A",Vt),At("H",J),At("h",J),At("k",J),At("HH",J,z),At("hh",J,z),At("kk",J,z),At("hmm",Z),At("hmmss",tt),At("Hmm",Z),At("Hmmss",tt),dt(["H","HH"],3),dt(["k","kk"],(function(t,e,n){var r=E(t);e[3]=24===r?0:r})),dt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),dt(["h","hh"],(function(t,e,n){e[3]=E(t),d(n).bigHour=!0})),dt("hmm",(function(t,e,n){var r=t.length-2;e[3]=E(t.substr(0,r)),e[4]=E(t.substr(r)),d(n).bigHour=!0})),dt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[3]=E(t.substr(0,r)),e[4]=E(t.substr(r,2)),e[5]=E(t.substr(i)),d(n).bigHour=!0})),dt("Hmm",(function(t,e,n){var r=t.length-2;e[3]=E(t.substr(0,r)),e[4]=E(t.substr(r))})),dt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[3]=E(t.substr(0,r)),e[4]=E(t.substr(r,2)),e[5]=E(t.substr(i))}));var zt,Wt=bt("Hours",!0),qt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xt,monthsShort:Bt,week:{dow:0,doy:6},weekdays:Ut,weekdaysMin:Qt,weekdaysShort:Pt,meridiemParse:/[ap]\.?m?\.?/i},Xt={},Jt={};function Zt(t){return t?t.toLowerCase().replace("_","-"):t}function te(e){var r=null;if(!Xt[e]&&t&&t.exports)try{r=zt._abbr,n(1748)("./"+e),ee(r)}catch(e){}return Xt[e]}function ee(t,e){var n;return t&&((n=s(e)?re(t):ne(t,e))?zt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),zt._abbr}function ne(t,e){if(null===e)return delete Xt[t],null;var n,r=qt;if(e.abbr=t,null!=Xt[t])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Xt[t]._config;else if(null!=e.parentLocale)if(null!=Xt[e.parentLocale])r=Xt[e.parentLocale]._config;else{if(null==(n=te(e.parentLocale)))return Jt[e.parentLocale]||(Jt[e.parentLocale]=[]),Jt[e.parentLocale].push({name:t,config:e}),null;r=n._config}return Xt[t]=new M(N(r,e)),Jt[t]&&Jt[t].forEach((function(t){ne(t.name,t.config)})),ee(t),Xt[t]}function re(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return zt;if(!a(t)){if(e=te(t))return e;t=[t]}return function(t){for(var e,n,r,i,a=0;a<t.length;){for(e=(i=Zt(t[a]).split("-")).length,n=(n=Zt(t[a+1]))?n.split("-"):null;0<e;){if(r=te(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&C(i,n,!0)>=e-1)break;e--}a++}return zt}(t)}function ie(t){var e,n=t._a;return n&&-2===d(t).overflow&&(e=n[1]<0||11<n[1]?1:n[2]<1||n[2]>Et(n[0],n[1])?2:n[3]<0||24<n[3]||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||59<n[4]?4:n[5]<0||59<n[5]?5:n[6]<0||999<n[6]?6:-1,d(t)._overflowDayOfYear&&(e<0||2<e)&&(e=2),d(t)._overflowWeeks&&-1===e&&(e=7),d(t)._overflowWeekday&&-1===e&&(e=8),d(t).overflow=e),t}function ae(t,e,n){return null!=t?t:null!=e?e:n}function oe(t){var e,n,r,a,o,s=[];if(!t._d){var c,l;for(c=t,l=new Date(i.now()),r=c._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,n,r,i,a,o,s,c;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)a=1,o=4,n=ae(e.GG,t._a[0],Lt(be(),1,4).year),r=ae(e.W,1),((i=ae(e.E,1))<1||7<i)&&(c=!0);else{a=t._locale._week.dow,o=t._locale._week.doy;var l=Lt(be(),a,o);n=ae(e.gg,t._a[0],l.year),r=ae(e.w,l.week),null!=e.d?((i=e.d)<0||6<i)&&(c=!0):null!=e.e?(i=e.e+a,(e.e<0||6<e.e)&&(c=!0)):i=a}r<1||r>Ot(n,a,o)?d(t)._overflowWeeks=!0:null!=c?d(t)._overflowWeekday=!0:(s=Dt(n,r,i,a,o),t._a[0]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(o=ae(t._a[0],r[0]),(t._dayOfYear>gt(o)||0===t._dayOfYear)&&(d(t)._overflowDayOfYear=!0),n=Mt(o,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Mt:function(t,e,n,r,i,a,o){var s;return t<100&&0<=t?(s=new Date(t+400,e,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,a,o),s}).apply(null,s),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==a&&(d(t).weekdayMismatch=!0)}}var se=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ce=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,le=/Z|[+-]\d\d(?::?\d\d)?/,Ae=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ue=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],he=/^\/?Date\((\-?\d+)/i;function fe(t){var e,n,r,i,a,o,s=t._i,c=se.exec(s)||ce.exec(s);if(c){for(d(t).iso=!0,e=0,n=Ae.length;e<n;e++)if(Ae[e][1].exec(c[1])){i=Ae[e][0],r=!1!==Ae[e][2];break}if(null==i)return void(t._isValid=!1);if(c[3]){for(e=0,n=ue.length;e<n;e++)if(ue[e][1].exec(c[3])){a=(c[2]||" ")+ue[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(c[4]){if(!le.exec(c[4]))return void(t._isValid=!1);o="Z"}t._f=i+(a||"")+(o||""),me(t)}else t._isValid=!1}var de=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,pe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ge(t){var e,n,r,i=de.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(i){var a=function(t,e,n,r,i,a){var o=[function(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}(t),Bt.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}(i[4],i[3],i[2],i[5],i[6],i[7]);if(n=a,r=t,(e=i[1])&&Pt.indexOf(e)!==new Date(n[0],n[1],n[2]).getDay()&&(d(r).weekdayMismatch=!0,!(r._isValid=!1)))return;t._a=a,t._tzm=function(t,e,n){if(t)return pe[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(i[8],i[9],i[10]),t._d=Mt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),d(t).rfc2822=!0}else t._isValid=!1}function me(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],d(t).empty=!0;var e,n,r,a,o,s,c,l,A=""+t._i,h=A.length,f=0;for(r=Y(t._f,t._locale).match(Q)||[],e=0;e<r.length;e++)a=r[e],(n=(A.match(ut(a,t))||[])[0])&&(0<(o=A.substr(0,A.indexOf(n))).length&&d(t).unusedInput.push(o),A=A.slice(A.indexOf(n)+n.length),f+=n.length),j[a]?(n?d(t).empty=!1:d(t).unusedTokens.push(a),s=a,l=t,null!=(c=n)&&u(ft,s)&&ft[s](c,l._a,l,s)):t._strict&&!n&&d(t).unusedTokens.push(a);d(t).charsLeftOver=h-f,0<A.length&&d(t).unusedInput.push(A),t._a[3]<=12&&!0===d(t).bigHour&&0<t._a[3]&&(d(t).bigHour=void 0),d(t).parsedDateParts=t._a.slice(0),d(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0)),e)}(t._locale,t._a[3],t._meridiem),oe(t),ie(t)}else ge(t);else fe(t)}function ye(t){var e,n,r,u,f=t._i,m=t._f;return t._locale=t._locale||re(t._l),null===f||void 0===m&&""===f?g({nullInput:!0}):("string"==typeof f&&(t._i=f=t._locale.preparse(f)),w(f)?new b(ie(f)):(l(f)?t._d=f:a(m)?function(t){var e,n,r,i,a;if(0===t._f.length)return d(t).invalidFormat=!0,t._d=new Date(NaN);for(i=0;i<t._f.length;i++)a=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],me(e),p(e)&&(a+=d(e).charsLeftOver,a+=10*d(e).unusedTokens.length,d(e).score=a,(null==r||a<r)&&(r=a,n=e));h(t,n||e)}(t):m?me(t):s(n=(e=t)._i)?e._d=new Date(i.now()):l(n)?e._d=new Date(n.valueOf()):"string"==typeof n?(r=e,null===(u=he.exec(r._i))?(fe(r),!1===r._isValid&&(delete r._isValid,ge(r),!1===r._isValid&&(delete r._isValid,i.createFromInputFallback(r)))):r._d=new Date(+u[1])):a(n)?(e._a=A(n.slice(0),(function(t){return parseInt(t,10)})),oe(e)):o(n)?function(t){if(!t._d){var e=O(t._i);t._a=A([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),oe(t)}}(e):c(n)?e._d=new Date(n):i.createFromInputFallback(e),p(t)||(t._d=null),t))}function ve(t,e,n,r,i){var s,c={};return!0!==n&&!1!==n||(r=n,n=void 0),(o(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||a(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=i,c._l=n,c._i=t,c._f=e,c._strict=r,(s=new b(ie(ye(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function be(t,e,n,r){return ve(t,e,n,r,!1)}i.createFromInputFallback=B("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var we=B("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=be.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()})),_e=B("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=be.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:g()}));function Ee(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return be();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Ce=["year","quarter","month","week","day","hour","minute","second","millisecond"];function xe(t){var e=O(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,c=e.minute||0,l=e.second||0,A=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===yt.call(Ce,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,r=0;r<Ce.length;++r)if(t[Ce[r]]){if(n)return!1;parseFloat(t[Ce[r]])!==E(t[Ce[r]])&&(n=!0)}return!0}(e),this._milliseconds=+A+1e3*l+6e4*c+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=re(),this._bubble()}function Be(t){return t instanceof xe}function Te(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ke(t,e){K(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+P(~~(t/60),2)+e+P(~~t%60,2)}))}ke("Z",":"),ke("ZZ",""),At("Z",st),At("ZZ",st),dt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=Ie(st,t)}));var Se=/([\+\-]|\d\d)/gi;function Ie(t,e){var n=(e||"").match(t);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Se)||["-",0,0],i=60*r[1]+E(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Ne(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(w(t)||l(t)?t.valueOf():be(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):be(t).local()}function Me(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Fe(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var De=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Le=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Oe(t,e){var n,r,i,a=t,o=null;return Be(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:c(t)?(a={},e?a[e]=t:a.milliseconds=t):(o=De.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:E(o[2])*n,h:E(o[3])*n,m:E(o[4])*n,s:E(o[5])*n,ms:E(Te(1e3*o[6]))*n}):(o=Le.exec(t))?(n="-"===o[1]?-1:1,a={y:Re(o[2],n),M:Re(o[3],n),w:Re(o[4],n),d:Re(o[5],n),h:Re(o[6],n),m:Re(o[7],n),s:Re(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=function(t,e){var n;return t.isValid()&&e.isValid()?(e=Ne(e,t),t.isBefore(e)?n=Ue(t,e):((n=Ue(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(be(a.from),be(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new xe(a),Be(t)&&u(t,"_locale")&&(r._locale=t._locale),r}function Re(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ue(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Pe(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(S(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Qe(this,Oe(n="string"==typeof n?+n:n,r),t),this}}function Qe(t,e,n,r){var a=e._milliseconds,o=Te(e._days),s=Te(e._months);t.isValid()&&(r=null==r||r,s&&Tt(t,wt(t,"Month")+s*n),o&&_t(t,"Date",wt(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),r&&i.updateOffset(t,o||s))}Oe.fn=xe.prototype,Oe.invalid=function(){return Oe(NaN)};var He=Pe(1,"add"),Ge=Pe(-1,"subtract");function je(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function Ke(t){var e;return void 0===t?this._locale._abbr:(null!=(e=re(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $e=B("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Ye(){return this._locale}var Ve=126227808e5;function ze(t,e){return(t%e+e)%e}function We(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-Ve:new Date(t,e,n).valueOf()}function qe(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-Ve:Date.UTC(t,e,n)}function Xe(t,e){K(0,[t,t.length],0,e)}function Je(t,e,n,r,i){var a;return null==t?Lt(this,r,i).year:((a=Ot(t,r,i))<e&&(e=a),function(t,e,n,r,i){var a=Dt(t,e,n,r,i),o=Mt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,t,e,n,r,i))}K(0,["gg",2],0,(function(){return this.weekYear()%100})),K(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Xe("gggg","weekYear"),Xe("ggggg","weekYear"),Xe("GGGG","isoWeekYear"),Xe("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),At("G",at),At("g",at),At("GG",J,z),At("gg",J,z),At("GGGG",nt,q),At("gggg",nt,q),At("GGGGG",rt,X),At("ggggg",rt,X),pt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=E(t)})),pt(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),K("Q",0,"Qo","quarter"),D("quarter","Q"),U("quarter",7),At("Q",V),dt("Q",(function(t,e){e[1]=3*(E(t)-1)})),K("D",["DD",2],"Do","date"),D("date","D"),U("date",9),At("D",J),At("DD",J,z),At("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),dt(["D","DD"],2),dt("Do",(function(t,e){e[2]=E(t.match(J)[0])}));var Ze=bt("Date",!0);K("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),U("dayOfYear",4),At("DDD",et),At("DDDD",W),dt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=E(t)})),K("m",["mm",2],0,"minute"),D("minute","m"),U("minute",14),At("m",J),At("mm",J,z),dt(["m","mm"],4);var tn=bt("Minutes",!1);K("s",["ss",2],0,"second"),D("second","s"),U("second",15),At("s",J),At("ss",J,z),dt(["s","ss"],5);var en,nn=bt("Seconds",!1);for(K("S",0,0,(function(){return~~(this.millisecond()/100)})),K(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),K(0,["SSS",3],0,"millisecond"),K(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),K(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),K(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),K(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),K(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),K(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),D("millisecond","ms"),U("millisecond",16),At("S",et,V),At("SS",et,z),At("SSS",et,W),en="SSSS";en.length<=9;en+="S")At(en,it);function rn(t,e){e[6]=E(1e3*("0."+t))}for(en="S";en.length<=9;en+="S")dt(en,rn);var an=bt("Milliseconds",!1);K("z",0,0,"zoneAbbr"),K("zz",0,0,"zoneName");var on=b.prototype;function sn(t){return t}on.add=He,on.calendar=function(t,e){var n=t||be(),r=Ne(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=e&&(I(e[a])?e[a].call(this,n):e[a]);return this.format(o||this.localeData().calendar(a,this,be(n)))},on.clone=function(){return new b(this)},on.diff=function(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=Ne(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=L(e)){case"year":a=je(this,r)/12;break;case"month":a=je(this,r);break;case"quarter":a=je(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:_(a)},on.endOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?qe:We;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-ze(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-ze(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-ze(e,1e3)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},on.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=$(this,t);return this.localeData().postformat(e)},on.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||be(t).isValid())?Oe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},on.fromNow=function(t){return this.from(be(),t)},on.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||be(t).isValid())?Oe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},on.toNow=function(t){return this.to(be(),t)},on.get=function(t){return I(this[t=L(t)])?this[t]():this},on.invalidAt=function(){return d(this).overflow},on.isAfter=function(t,e){var n=w(t)?t:be(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=L(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},on.isBefore=function(t,e){var n=w(t)?t:be(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=L(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},on.isBetween=function(t,e,n,r){var i=w(t)?t:be(t),a=w(e)?e:be(e);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))},on.isSame=function(t,e){var n,r=w(t)?t:be(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=L(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},on.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},on.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},on.isValid=function(){return p(this)},on.lang=$e,on.locale=Ke,on.localeData=Ye,on.max=_e,on.min=we,on.parsingFlags=function(){return h({},d(this))},on.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:R[n]});return e.sort((function(t,e){return t.priority-e.priority})),e}(t=O(t)),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit]);else if(I(this[t=L(t)]))return this[t](e);return this},on.startOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?qe:We;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ze(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=ze(e,6e4);break;case"second":e=this._d.valueOf(),e-=ze(e,1e3)}return this._d.setTime(e),i.updateOffset(this,!0),this},on.subtract=Ge,on.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},on.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},on.toDate=function(){return new Date(this.valueOf())},on.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||9999<n.year()?$(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(n,"Z")):$(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},on.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},on.toJSON=function(){return this.isValid()?this.toISOString():null},on.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},on.unix=function(){return Math.floor(this.valueOf()/1e3)},on.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},on.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},on.year=vt,on.isLeapYear=function(){return mt(this.year())},on.weekYear=function(t){return Je.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},on.isoWeekYear=function(t){return Je.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},on.quarter=on.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},on.month=kt,on.daysInMonth=function(){return Et(this.year(),this.month())},on.week=on.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},on.isoWeek=on.isoWeeks=function(t){var e=Lt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},on.weeksInYear=function(){var t=this.localeData()._week;return Ot(this.year(),t.dow,t.doy)},on.isoWeeksInYear=function(){return Ot(this.year(),1,4)},on.date=Ze,on.day=on.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-r,"d")):r},on.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},on.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e,n,r=(e=t,n=this.localeData(),"string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?r:r-7)},on.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},on.hour=on.hours=Wt,on.minute=on.minutes=tn,on.second=on.seconds=nn,on.millisecond=on.milliseconds=an,on.utcOffset=function(t,e,n){var r,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?a:Me(this);if("string"==typeof t){if(null===(t=Ie(st,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Me(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==t&&(!e||this._changeInProgress?Qe(this,Oe(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this},on.utc=function(t){return this.utcOffset(0,t)},on.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Me(this),"m")),this},on.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ie(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},on.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?be(t).utcOffset():0,(this.utcOffset()-t)%60==0)},on.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},on.isLocal=function(){return!!this.isValid()&&!this._isUTC},on.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},on.isUtc=Fe,on.isUTC=Fe,on.zoneAbbr=function(){return this._isUTC?"UTC":""},on.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},on.dates=B("dates accessor is deprecated. Use date instead.",Ze),on.months=B("months accessor is deprecated. Use month instead",kt),on.years=B("years accessor is deprecated. Use year instead",vt),on.zone=B("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),on.isDSTShifted=B("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),(t=ye(t))._a){var e=t._isUTC?f(t._a):be(t._a);this._isDSTShifted=this.isValid()&&0<C(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted}));var cn=M.prototype;function ln(t,e,n,r){var i=re(),a=f().set(r,e);return i[n](a,t)}function An(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return ln(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=ln(t,r,n,"month");return i}function un(t,e,n,r){"boolean"==typeof t?c(e)&&(n=e,e=void 0):(e=t,t=!1,c(n=e)&&(n=e,e=void 0)),e=e||"";var i,a=re(),o=t?a._week.dow:0;if(null!=n)return ln(e,(n+o)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=ln(e,(i+o)%7,r,"day");return s}cn.calendar=function(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return I(r)?r.call(e,n):r},cn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},cn.invalidDate=function(){return this._invalidDate},cn.ordinal=function(t){return this._ordinal.replace("%d",t)},cn.preparse=sn,cn.postformat=sn,cn.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return I(i)?i(t,e,n,r):i.replace(/%d/i,t)},cn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return I(n)?n(e):n.replace(/%s/i,e)},cn.set=function(t){var e,n;for(n in t)I(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},cn.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ct).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},cn.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ct.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},cn.monthsParse=function(t,e,n){var r,i,a;if(this._monthsParseExact)return function(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=yt.call(this._shortMonthsParse,o))?i:null:-1!==(i=yt.call(this._longMonthsParse,o))?i:null:"MMM"===e?-1!==(i=yt.call(this._shortMonthsParse,o))||-1!==(i=yt.call(this._longMonthsParse,o))?i:null:-1!==(i=yt.call(this._longMonthsParse,o))||-1!==(i=yt.call(this._shortMonthsParse,o))?i:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},cn.monthsRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Nt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=It),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},cn.monthsShortRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Nt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=St),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},cn.week=function(t){return Lt(t,this._week.dow,this._week.doy).week},cn.firstDayOfYear=function(){return this._week.doy},cn.firstDayOfWeek=function(){return this._week.dow},cn.weekdays=function(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Rt(n,this._week.dow):t?n[t.day()]:n},cn.weekdaysMin=function(t){return!0===t?Rt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},cn.weekdaysShort=function(t){return!0===t?Rt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},cn.weekdaysParse=function(t,e,n){var r,i,a;if(this._weekdaysParseExact)return function(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=yt.call(this._weekdaysParse,o))?i:null:"ddd"===e?-1!==(i=yt.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=yt.call(this._minWeekdaysParse,o))?i:null:"dddd"===e?-1!==(i=yt.call(this._weekdaysParse,o))||-1!==(i=yt.call(this._shortWeekdaysParse,o))||-1!==(i=yt.call(this._minWeekdaysParse,o))?i:null:"ddd"===e?-1!==(i=yt.call(this._shortWeekdaysParse,o))||-1!==(i=yt.call(this._weekdaysParse,o))||-1!==(i=yt.call(this._minWeekdaysParse,o))?i:null:-1!==(i=yt.call(this._minWeekdaysParse,o))||-1!==(i=yt.call(this._weekdaysParse,o))||-1!==(i=yt.call(this._shortWeekdaysParse,o))?i:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},cn.weekdaysRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Ht),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},cn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Gt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},cn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},cn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},cn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},ee("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===E(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=B("moment.lang is deprecated. Use moment.locale instead.",ee),i.langData=B("moment.langData is deprecated. Use moment.localeData instead.",re);var hn=Math.abs;function fn(t,e,n,r){var i=Oe(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function dn(t){return t<0?Math.floor(t):Math.ceil(t)}function pn(t){return 4800*t/146097}function gn(t){return 146097*t/4800}function mn(t){return function(){return this.as(t)}}var yn=mn("ms"),vn=mn("s"),bn=mn("m"),wn=mn("h"),_n=mn("d"),En=mn("w"),Cn=mn("M"),xn=mn("Q"),Bn=mn("y");function Tn(t){return function(){return this.isValid()?this._data[t]:NaN}}var kn=Tn("milliseconds"),Sn=Tn("seconds"),In=Tn("minutes"),Nn=Tn("hours"),Mn=Tn("days"),Fn=Tn("months"),Dn=Tn("years"),Ln=Math.round,On={ss:44,s:45,m:45,h:22,d:26,M:11},Rn=Math.abs;function Un(t){return(0<t)-(t<0)||+t}function Pn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Rn(this._milliseconds)/1e3,r=Rn(this._days),i=Rn(this._months);e=_((t=_(n/60))/60),n%=60,t%=60;var a=_(i/12),o=i%=12,s=r,c=e,l=t,A=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var h=u<0?"-":"",f=Un(this._months)!==Un(u)?"-":"",d=Un(this._days)!==Un(u)?"-":"",p=Un(this._milliseconds)!==Un(u)?"-":"";return h+"P"+(a?f+a+"Y":"")+(o?f+o+"M":"")+(s?d+s+"D":"")+(c||l||A?"T":"")+(c?p+c+"H":"")+(l?p+l+"M":"")+(A?p+A+"S":"")}var Qn=xe.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var t=this._data;return this._milliseconds=hn(this._milliseconds),this._days=hn(this._days),this._months=hn(this._months),t.milliseconds=hn(t.milliseconds),t.seconds=hn(t.seconds),t.minutes=hn(t.minutes),t.hours=hn(t.hours),t.months=hn(t.months),t.years=hn(t.years),this},Qn.add=function(t,e){return fn(this,t,e,1)},Qn.subtract=function(t,e){return fn(this,t,e,-1)},Qn.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=L(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+pn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(gn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},Qn.asMilliseconds=yn,Qn.asSeconds=vn,Qn.asMinutes=bn,Qn.asHours=wn,Qn.asDays=_n,Qn.asWeeks=En,Qn.asMonths=Cn,Qn.asQuarters=xn,Qn.asYears=Bn,Qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN},Qn._bubble=function(){var t,e,n,r,i,a=this._milliseconds,o=this._days,s=this._months,c=this._data;return 0<=a&&0<=o&&0<=s||a<=0&&o<=0&&s<=0||(a+=864e5*dn(gn(s)+o),s=o=0),c.milliseconds=a%1e3,t=_(a/1e3),c.seconds=t%60,e=_(t/60),c.minutes=e%60,n=_(e/60),c.hours=n%24,s+=i=_(pn(o+=_(n/24))),o-=dn(gn(i)),r=_(s/12),s%=12,c.days=o,c.months=s,c.years=r,this},Qn.clone=function(){return Oe(this)},Qn.get=function(t){return t=L(t),this.isValid()?this[t+"s"]():NaN},Qn.milliseconds=kn,Qn.seconds=Sn,Qn.minutes=In,Qn.hours=Nn,Qn.days=Mn,Qn.weeks=function(){return _(this.days()/7)},Qn.months=Fn,Qn.years=Dn,Qn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e,n,r,i,a,o,s,c,l,A,u=this.localeData(),h=(e=!t,n=u,r=Oe(this).abs(),i=Ln(r.as("s")),a=Ln(r.as("m")),o=Ln(r.as("h")),s=Ln(r.as("d")),c=Ln(r.as("M")),l=Ln(r.as("y")),(A=i<=On.ss&&["s",i]||i<On.s&&["ss",i]||a<=1&&["m"]||a<On.m&&["mm",a]||o<=1&&["h"]||o<On.h&&["hh",o]||s<=1&&["d"]||s<On.d&&["dd",s]||c<=1&&["M"]||c<On.M&&["MM",c]||l<=1&&["y"]||["yy",l])[2]=e,A[3]=0<+this,A[4]=n,function(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}.apply(null,A));return t&&(h=u.pastFuture(+this,h)),u.postformat(h)},Qn.toISOString=Pn,Qn.toString=Pn,Qn.toJSON=Pn,Qn.locale=Ke,Qn.localeData=Ye,Qn.toIsoString=B("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pn),Qn.lang=$e,K("X",0,0,"unix"),K("x",0,0,"valueOf"),At("x",at),At("X",/[+-]?\d+(\.\d{1,3})?/),dt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))})),dt("x",(function(t,e,n){n._d=new Date(E(t))})),i.version="2.24.0",e=be,i.fn=on,i.min=function(){return Ee("isBefore",[].slice.call(arguments,0))},i.max=function(){return Ee("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(t){return be(1e3*t)},i.months=function(t,e){return An(t,e,"months")},i.isDate=l,i.locale=ee,i.invalid=g,i.duration=Oe,i.isMoment=w,i.weekdays=function(t,e,n){return un(t,e,n,"weekdays")},i.parseZone=function(){return be.apply(null,arguments).parseZone()},i.localeData=re,i.isDuration=Be,i.monthsShort=function(t,e){return An(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return un(t,e,n,"weekdaysMin")},i.defineLocale=ne,i.updateLocale=function(t,e){if(null!=e){var n,r,i=qt;null!=(r=te(t))&&(i=r._config),(n=new M(e=N(i,e))).parentLocale=Xt[t],Xt[t]=n,ee(t)}else null!=Xt[t]&&(null!=Xt[t].parentLocale?Xt[t]=Xt[t].parentLocale:null!=Xt[t]&&delete Xt[t]);return Xt[t]},i.locales=function(){return T(Xt)},i.weekdaysShort=function(t,e,n){return un(t,e,n,"weekdaysShort")},i.normalizeUnits=L,i.relativeTimeRounding=function(t){return void 0===t?Ln:"function"==typeof t&&(Ln=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==On[t]&&(void 0===e?On[t]:(On[t]=e,"s"===t&&(On.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=on,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},6470:t=>{function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function n(t,e){for(var n,r="",i=0,a=-1,o=0,s=0;s<=t.length;++s){if(s<t.length)n=t.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===o);else if(a!==s-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),a=s,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,a=s,o=0;continue}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+t.slice(a+1,s):r=t.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var t,r="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(void 0===t&&(t=process.cwd()),o=t),e(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(t){if(e(t),0===t.length)return".";var r=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!r)).length||r||(t="."),t.length>0&&i&&(t+="/"),r?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,n=0;n<arguments.length;++n){var i=arguments[n];e(i),i.length>0&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":r.normalize(t)},relative:function(t,n){if(e(t),e(n),t===n)return"";if((t=r.resolve(t))===(n=r.resolve(n)))return"";for(var i=1;i<t.length&&47===t.charCodeAt(i);++i);for(var a=t.length,o=a-i,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var c=n.length-s,l=o<c?o:c,A=-1,u=0;u<=l;++u){if(u===l){if(c>l){if(47===n.charCodeAt(s+u))return n.slice(s+u+1);if(0===u)return n.slice(s+u)}else o>l&&(47===t.charCodeAt(i+u)?A=u:0===u&&(A=0));break}var h=t.charCodeAt(i+u);if(h!==n.charCodeAt(s+u))break;47===h&&(A=u)}var f="";for(u=i+A+1;u<=a;++u)u!==a&&47!==t.charCodeAt(u)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(s+A):(s+=A,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),r=47===n,i=-1,a=!0,o=t.length-1;o>=1;--o)if(47===(n=t.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?r?"/":".":r&&1===i?"//":t.slice(0,i)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var r,i=0,a=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var s=n.length-1,c=-1;for(r=t.length-1;r>=0;--r){var l=t.charCodeAt(r);if(47===l){if(!o){i=r+1;break}}else-1===c&&(o=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?-1==--s&&(a=r):(s=-1,a=c))}return i===a?a=c:-1===a&&(a=t.length),t.slice(i,a)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!o){i=r+1;break}}else-1===a&&(o=!1,a=r+1);return-1===a?"":t.slice(i,a)},extname:function(t){e(t);for(var n=-1,r=0,i=-1,a=!0,o=0,s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(47!==c)-1===i&&(a=!1,i=s+1),46===c?-1===n?n=s:1!==o&&(o=1):-1!==n&&(o=-1);else if(!a){r=s+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+"/"+r:r}(0,t)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var r,i=t.charCodeAt(0),a=47===i;a?(n.root="/",r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,A=t.length-1,u=0;A>=r;--A)if(47!==(i=t.charCodeAt(A)))-1===c&&(l=!1,c=A+1),46===i?-1===o?o=A:1!==u&&(u=1):-1!==o&&(u=-1);else if(!l){s=A+1;break}return-1===o||-1===c||0===u||1===u&&o===c-1&&o===s+1?-1!==c&&(n.base=n.name=0===s&&a?t.slice(1,c):t.slice(s,c)):(0===s&&a?(n.name=t.slice(1,o),n.base=t.slice(1,c)):(n.name=t.slice(s,o),n.base=t.slice(s,c)),n.ext=t.slice(o,c)),s>0?n.dir=t.slice(0,s-1):a&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,t.exports=r},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{}},tN={};function eN(t){var e=tN[t];if(void 0!==e)return e.exports;var n=tN[t]={id:t,loaded:!1,exports:{}};return ZI[t].call(n.exports,n,n.exports,eN),n.loaded=!0,n.exports}eN.c=tN,eN.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return eN.d(e,{a:e}),e},eN.d=(t,e)=>{for(var n in e)eN.o(e,n)&&!eN.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},eN.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),eN.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),eN.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},eN.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var nN=eN(eN.s=7458).Z,rN=null==nN?void 0:nN.mermaidAPI;HI.usePlugin($I,{mermaidAPI:rN,theme:"default",sequence:{useMaxWidth:!1,showSequenceNumbers:!0}}),HI.usePlugin(JI,{}),t.MenuHookBase=ym,t.SyntaxHookBase=mA,t.default=HI,Object.defineProperty(t,"__esModule",{value:!0})}));