403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/GXModules/Gambio/StyleEdit/Build/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/GXModules/Gambio/StyleEdit/Build/js/chunk-vendors.95579fce.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"014b":function(t,e,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),s=n("63b6"),a=n("9138"),l=n("ebfd").KEY,c=n("294c"),u=n("dbdb"),d=n("45f2"),h=n("62a0"),f=n("5168"),p=n("ccb9"),g=n("6718"),m=n("47ee"),v=n("9003"),b=n("e4ae"),y=n("f772"),w=n("36c3"),k=n("1bc3"),_=n("aebd"),x=n("a159"),C=n("0395"),S=n("bf0b"),T=n("d9f6"),O=n("c3a1"),P=S.f,A=T.f,E=C.f,M=r.Symbol,I=r.JSON,N=I&&I.stringify,j="prototype",D=f("_hidden"),L=f("toPrimitive"),B={}.propertyIsEnumerable,R=u("symbol-registry"),F=u("symbols"),$=u("op-symbols"),V=Object[j],z="function"==typeof M,H=r.QObject,W=!H||!H[j]||!H[j].findChild,U=o&&c(function(){return 7!=x(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(V,e);r&&delete V[e],A(t,e,n),r&&t!==V&&A(V,e,r)}:A,q=function(t){var e=F[t]=x(M[j]);return e._k=t,e},G=z&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},Y=function(t,e,n){return t===V&&Y($,e,n),b(t),e=k(e,!0),b(n),i(F,e)?(n.enumerable?(i(t,D)&&t[D][e]&&(t[D][e]=!1),n=x(n,{enumerable:_(0,!1)})):(i(t,D)||A(t,D,_(1,{})),t[D][e]=!0),U(t,e,n)):A(t,e,n)},K=function(t,e){b(t);var n,r=m(e=w(e)),i=0,o=r.length;while(o>i)Y(t,n=r[i++],e[n]);return t},X=function(t,e){return void 0===e?x(t):K(x(t),e)},J=function(t){var e=B.call(this,t=k(t,!0));return!(this===V&&i(F,t)&&!i($,t))&&(!(e||!i(this,t)||!i(F,t)||i(this,D)&&this[D][t])||e)},Q=function(t,e){if(t=w(t),e=k(e,!0),t!==V||!i(F,e)||i($,e)){var n=P(t,e);return!n||!i(F,e)||i(t,D)&&t[D][e]||(n.enumerable=!0),n}},Z=function(t){var e,n=E(w(t)),r=[],o=0;while(n.length>o)i(F,e=n[o++])||e==D||e==l||r.push(e);return r},tt=function(t){var e,n=t===V,r=E(n?$:w(t)),o=[],s=0;while(r.length>s)!i(F,e=r[s++])||n&&!i(V,e)||o.push(F[e]);return o};z||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===V&&e.call($,n),i(this,D)&&i(this[D],t)&&(this[D][t]=!1),U(this,t,_(1,n))};return o&&W&&U(V,t,{configurable:!0,set:e}),q(t)},a(M[j],"toString",function(){return this._k}),S.f=Q,T.f=Y,n("6abf").f=C.f=Z,n("355d").f=J,n("9aa9").f=tt,o&&!n("b8e3")&&a(V,"propertyIsEnumerable",J,!0),p.f=function(t){return q(f(t))}),s(s.G+s.W+s.F*!z,{Symbol:M});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)f(et[nt++]);for(var rt=O(f.store),it=0;rt.length>it;)g(rt[it++]);s(s.S+s.F*!z,"Symbol",{for:function(t){return i(R,t+="")?R[t]:R[t]=M(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in R)if(R[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!z,"Object",{create:X,defineProperty:Y,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),I&&s(s.S+s.F*(!z||c(function(){var t=M();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){var e,n,r=[t],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=e=r[1],(y(e)||void 0!==t)&&!G(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!G(e))return e}),r[1]=e,N.apply(I,r)}}),M[j][L]||n("35e8")(M[j],L,M[j].valueOf),d(M,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),s=n("32e9"),a=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};t.exports=function(t,e,n,v,b,y,w){l(n,e,v);var k,_,x,C=function(t){if(!h&&t in P)return P[t];switch(t){case p:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",T=b==g,O=!1,P=t.prototype,A=P[d]||P[f]||b&&P[b],E=A||C(b),M=b?T?C("entries"):E:void 0,I="Array"==e&&P.entries||A;if(I&&(x=u(I.call(new t)),x!==Object.prototype&&x.next&&(c(x,S,!0),r||"function"==typeof x[d]||s(x,d,m))),T&&A&&A.name!==g&&(O=!0,E=function(){return A.call(this)}),r&&!w||!h&&!O&&P[d]||s(P,d,E),a[e]=E,a[S]=m,b)if(k={values:T?E:C(g),keys:y?E:C(p),entries:M},w)for(_ in k)_ in P||o(P,_,k[_]);else i(i.P+i.F*(h||O),e,k);return k}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),l=r(n),c=a.length;return l<0||l>=c?t?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):o:t?a.slice(l,l+2):s-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0395":function(t,e,n){var r=n("36c3"),i=n("6abf").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(e){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?a(t):i(r(t))}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"097d":function(t,e,n){"use strict";var r=n("5ca1"),i=n("8378"),o=n("7726"),s=n("ebd6"),a=n("bcaa");r(r.P+r.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},"0a06":function(t,e,n){"use strict";var r=n("2444"),i=n("c532"),o=n("f6b4"),s=n("5270");function a(t){this.defaults=t,this.interceptors={request:new o,response:new o}}a.prototype.request=function(t){"string"===typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),t=i.merge(r,{method:"get"},this.defaults,t),t.method=t.method.toLowerCase();var e=[s,void 0],n=Promise.resolve(t);this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});while(e.length)n=n.then(e.shift(),e.shift());return n},i.forEach(["delete","get","head","options"],function(t){a.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){a.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=a},"0a49":function(t,e,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),s=n("9def"),a=n("cd1c");t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,d=6==t,h=5==t||d,f=e||a;return function(e,a,p){for(var g,m,v=o(e),b=i(v),y=r(a,p,3),w=s(b.length),k=0,_=n?f(e,w):l?f(e,0):void 0;w>k;k++)if((h||k in b)&&(g=b[k],m=y(g,k,v),t))if(n)_[k]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return k;case 2:_.push(g)}else if(u)return!1;return d?-1:c||u?u:_}}},"0a90":function(t,e,n){var r=n("63b6"),i=n("10ff");r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},"0bfb":function(t,e,n){"use strict";var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0fc9":function(t,e,n){var r=n("3a38"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"10ff":function(t,e,n){var r=n("e53d").parseFloat,i=n("a1ce").trim;t.exports=1/r(n("e692")+"-0")!==-1/0?function(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},1169:function(t,e,n){var r=n("2d95");t.exports=Array.isArray||function(t){return"Array"==r(t)}},1173:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},"11e9":function(t,e,n){var r=n("52a7"),i=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),l=n("c69a"),c=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?c:function(t,e){if(t=o(t),e=s(e,!0),l)try{return c(t,e)}catch(n){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},"13c8":function(t,e,n){var r=n("c3a1"),i=n("36c3"),o=n("355d").f;t.exports=function(t){return function(e){var n,s=i(e),a=r(s),l=a.length,c=0,u=[];while(l>c)o.call(s,n=a[c++])&&u.push(t?[n,s[n]]:s[n]);return u}}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);var n,s=o(e),a=s.length,l=0;while(a>l)r.f(t,n=s[l++],e[n]);return t}},"14b9":function(t,e,n){var r=n("5ca1");r(r.P,"String",{repeat:n("9744")})},1654:function(t,e,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1980:function(t,e,n){(function(e,r){t.exports=r(n("53fe"))})("undefined"!==typeof self&&self,function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),l=r(n),c=a.length;return l<0||l>=c?t?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):o:t?a.slice(l,l+2):s-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0bfb":function(t,e,n){"use strict";var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0fc9":function(t,e,n){var r=n("3a38"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},1654:function(t,e,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(t,e,n){var r=n("63b6");r(r.S,"Array",{isArray:n("9003")})},"1bc3":function(t,e,n){var r=n("f772");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"20fd":function(t,e,n){"use strict";var r=n("d9f6"),i=n("aebd");t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},"214f":function(t,e,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),s=n("be13"),a=n("2b4c"),l=n("520a"),c=a("species"),u=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var h=a(t),f=!o(function(){var e={};return e[h]=function(){return 7},7!=""[t](e)}),p=f?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!e}):void 0;if(!f||!p||"replace"===t&&!u||"split"===t&&!d){var g=/./[h],m=n(s,h,""[t],function(t,e,n,r,i){return e.exec===l?f&&!i?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),v=m[0],b=m[1];r(String.prototype,t,v),i(RegExp.prototype,h,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},"241e":function(t,e,n){var r=n("25eb");t.exports=function(t){return Object(r(t))}},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),l="toString",c=(""+a).split(l);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(o(n,s)||i(n,s,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,l,function(){return"function"==typeof this&&this[s]||a.call(this)})},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))};a.store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(t,e,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),s=n("35e8"),a=n("481b"),l=n("8f60"),c=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};t.exports=function(t,e,n,v,b,y,w){l(n,e,v);var k,_,x,C=function(t){if(!h&&t in P)return P[t];switch(t){case p:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",T=b==g,O=!1,P=t.prototype,A=P[d]||P[f]||b&&P[b],E=A||C(b),M=b?T?C("entries"):E:void 0,I="Array"==e&&P.entries||A;if(I&&(x=u(I.call(new t)),x!==Object.prototype&&x.next&&(c(x,S,!0),r||"function"==typeof x[d]||s(x,d,m))),T&&A&&A.name!==g&&(O=!0,E=function(){return A.call(this)}),r&&!w||!h&&!O&&P[d]||s(P,d,E),a[e]=E,a[S]=m,b)if(k={values:T?E:C(g),keys:y?E:C(p),entries:M},w)for(_ in k)_ in P||o(P,_,k[_]);else i(i.P+i.F*(h||O),e,k);return k}},"32a6":function(t,e,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",function(){return function(t){return i(r(t))}})},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var r=n("e53d").document;t.exports=r&&r.documentElement},"335c":function(t,e,n){var r=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var r=n("d9f6"),i=n("aebd");t.exports=n("8e60")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var r=n("335c"),i=n("25eb");t.exports=function(t){return r(i(t))}},3702:function(t,e,n){var r=n("481b"),i=n("5168")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},"3a38":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"40c3":function(t,e,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"45f2":function(t,e,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"481b":function(t,e){t.exports={}},"4aa6":function(t,e,n){t.exports=n("dc62")},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"4ee1":function(t,e,n){var r=n("5168")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(s){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(s){}return n}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5147:function(t,e,n){var r=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(i){}}return!0}},5168:function(t,e,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,s="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))};a.store=r},5176:function(t,e,n){t.exports=n("51b6")},"51b6":function(t,e,n){n("a3c3"),t.exports=n("584a").Object.assign},"520a":function(t,e,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,s=i,a="lastIndex",l=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t[a]||0!==e[a]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(s=function(t){var e,n,s,u,d=this;return c&&(n=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),l&&(e=d[a]),s=i.call(d,t),l&&s&&(d[a]=d.global?s.index+s[0].length:e),c&&s&&s.length>1&&o.call(s[0],n,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)}),s}),t.exports=s},"53e2":function(t,e,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"549b":function(t,e,n){"use strict";var r=n("d864"),i=n("63b6"),o=n("241e"),s=n("b0dc"),a=n("3702"),l=n("b447"),c=n("20fd"),u=n("7cd6");i(i.S+i.F*!n("4ee1")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,d,h=o(t),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,b=u(h);if(m&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==b||f==Array&&a(b))for(e=l(h.length),n=new f(e);e>v;v++)c(n,v,m?g(h[v],v):h[v]);else for(d=b.call(h),n=new f;!(i=d.next()).done;v++)c(n,v,m?s(d,g,[i.value,v],!0):i.value);return n.length=v,n}})},"54a1":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("95d5")},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",s=i[o]||(i[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var r=n("dbdb")("keys"),i=n("62a0");t.exports=function(t){return r[t]||(r[t]=i(t))}},"584a":function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(t,e,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");t.exports=function(t){return function(e,n,s){var a,l=r(e),c=i(l.length),u=o(s,c);if(t&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),s=n("2aba"),a=n("9b43"),l="prototype",c=function(t,e,n){var u,d,h,f,p=t&c.F,g=t&c.G,m=t&c.S,v=t&c.P,b=t&c.B,y=g?r:m?r[e]||(r[e]={}):(r[e]||{})[l],w=g?i:i[e]||(i[e]={}),k=w[l]||(w[l]={});for(u in g&&(n=e),n)d=!p&&y&&void 0!==y[u],h=(d?y:n)[u],f=b&&d?a(h,r):v&&"function"==typeof h?a(Function.call,h):h,y&&s(y,u,h,t&c.U),w[u]!=h&&o(w,u,f),v&&k[u]!=h&&(k[u]=h)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5f1b":function(t,e,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"63b6":function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("d864"),s=n("35e8"),a=n("07e3"),l="prototype",c=function(t,e,n){var u,d,h,f=t&c.F,p=t&c.G,g=t&c.S,m=t&c.P,v=t&c.B,b=t&c.W,y=p?i:i[e]||(i[e]={}),w=y[l],k=p?r:g?r[e]:(r[e]||{})[l];for(u in p&&(n=e),n)d=!f&&k&&void 0!==k[u],d&&a(y,u)||(h=d?k[u]:n[u],y[u]=p&&"function"!=typeof k[u]?n[u]:v&&d?o(h,r):b&&k[u]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[l]=t[l],e}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[u]=h,t&c.R&&w&&!w[u]&&s(w,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},6762:function(t,e,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6c1c":function(t,e,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),s=n("5168")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<a.length;l++){var c=a[l],u=r[c],d=u&&u.prototype;d&&!d[s]&&i(d,s,c),o[c]=o.Array}},"71c1":function(t,e,n){var r=n("3a38"),i=n("25eb");t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),l=r(n),c=a.length;return l<0||l>=c?t?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):o:t?a.slice(l,l+2):s-56320+(o-55296<<10)+65536)}}},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(t,e,n){t.exports=n("d2d5")},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7cd6":function(t,e,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"7e90":function(t,e,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){i(t);var n,s=o(e),a=s.length,l=0;while(a>l)r.f(t,n=s[l++],e[n]);return t}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8aae":function(t,e,n){n("32a6"),t.exports=n("584a").Object.keys},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(t,e,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),s={};n("35e8")(s,n("5168")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},9003:function(t,e,n){var r=n("6b4c");t.exports=Array.isArray||function(t){return"Array"==r(t)}},9138:function(t,e,n){t.exports=n("35e8")},9306:function(t,e,n){"use strict";var r=n("c3a1"),i=n("9aa9"),o=n("355d"),s=n("241e"),a=n("335c"),l=Object.assign;t.exports=!l||n("294c")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r})?function(t,e){var n=s(t),l=arguments.length,c=1,u=i.f,d=o.f;while(l>c){var h,f=a(arguments[c++]),p=u?r(f).concat(u(f)):r(f),g=p.length,m=0;while(g>m)d.call(f,h=p[m++])&&(n[h]=f[h])}return n}:l},9427:function(t,e,n){var r=n("63b6");r(r.S,"Object",{create:n("a159")})},"95d5":function(t,e,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");t.exports=n("584a").isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(r(e))}},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(t,e,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),s=n("5559")("IE_PROTO"),a=function(){},l="prototype",c=function(){var t,e=n("1ec9")("iframe"),r=o.length,i="<",s=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+s+"document.F=Object"+i+"/script"+s),t.close(),c=t.F;while(r--)delete c[l][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[l]=r(t),n=new a,a[l]=null,n[s]=t):n=c(),void 0===e?n:i(n,e)}},a352:function(e,n){e.exports=t},a3c3:function(t,e,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a481:function(t,e,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),s=n("4588"),a=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,g){return[function(r,i){var o=t(this),s=void 0==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=g(n,t,this,e);if(i.done)return i.value;var d=r(t),h=String(this),f="function"===typeof e;f||(e=String(e));var v=d.global;if(v){var b=d.unicode;d.lastIndex=0}var y=[];while(1){var w=l(d,h);if(null===w)break;if(y.push(w),!v)break;var k=String(w[0]);""===k&&(d.lastIndex=a(h,o(d.lastIndex),b))}for(var _="",x=0,C=0;C<y.length;C++){w=y[C];for(var S=String(w[0]),T=c(u(s(w.index),h.length),0),O=[],P=1;P<w.length;P++)O.push(p(w[P]));var A=w.groups;if(f){var E=[S].concat(O,T,h);void 0!==A&&E.push(A);var M=String(e.apply(void 0,E))}else M=m(S,h,T,O,A,e);T>=x&&(_+=h.slice(x,T)+M,x=T+S.length)}return _+h.slice(x)}];function m(t,e,r,o,s,a){var l=r+t.length,c=o.length,u=f;return void 0!==s&&(s=i(s),u=h),n.call(a,u,function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(l);case"<":a=s[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>c){var h=d(u/10);return 0===h?n:h<=c?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):n}a=o[u-1]}return void 0===a?"":a})}})},a4bb:function(t,e,n){t.exports=n("8aae")},a745:function(t,e,n){t.exports=n("f410")},aae3:function(t,e,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0c5:function(t,e,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b0dc:function(t,e,n){var r=n("e4ae");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(s){var o=t["return"];throw void 0!==o&&r(o.call(t)),s}}},b447:function(t,e,n){var r=n("3a38"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,s){var a,l=r(e),c=i(l.length),u=o(s,c);if(t&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),s=n("36c3");t.exports=n("30f1")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(t,e,n){var r=n("e6f3"),i=n("1691");t.exports=Object.keys||function(t){return r(t,i)}},c649:function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return s}),n.d(e,"a",function(){return c}),n("a481");var r=n("4aa6"),i=n.n(r);function o(){return"undefined"!==typeof window?window.console:t.console}var s=o();function a(t){var e=i()(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var l=/-(\w)/g,c=a(function(t){return t.replace(l,function(t,e){return e?e.toUpperCase():""})})}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c8bb:function(t,e,n){t.exports=n("54a1")},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce7e:function(t,e,n){var r=n("63b6"),i=n("584a"),o=n("294c");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},d2c8:function(t,e,n){var r=n("aae3"),i=n("be13");t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},d2d5:function(t,e,n){n("1654"),n("549b"),t.exports=n("584a").Array.from},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d864:function(t,e,n){var r=n("79aa");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),s=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",s=i[o]||(i[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(t,e,n){n("9427");var r=n("584a").Object;t.exports=function(t,e){return r.create(t,e)}},e4ae:function(t,e,n){var r=n("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(t,e,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),s=n("5559")("IE_PROTO");t.exports=function(t,e){var n,a=i(t),l=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);while(e.length>l)r(a,n=e[l++])&&(~o(c,n)||c.push(n));return c}},f410:function(t,e,n){n("1af6"),t.exports=n("584a").Array.isArray},f559:function(t,e,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),s="startsWith",a=""[s];r(r.P+r.F*n("5147")(s),"String",{startsWith:function(t){var e=o(this,t,s),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(t,e,n){"use strict";var r;n.r(e),"undefined"!==typeof window&&(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]);var i=n("5176"),o=n.n(i),s=(n("f559"),n("a4bb")),a=n.n(s),l=(n("6762"),n("2fdb"),n("a745")),c=n.n(l);function u(t){if(c()(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}var d=n("774e"),h=n.n(d),f=n("c8bb"),p=n.n(f);function g(t){if(p()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return h()(t)}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function v(t){return u(t)||g(t)||m()}var b=n("a352"),y=n.n(b),w=n("c649");function k(t,e,n){return void 0==n?t:(t=null==t?{}:t,t[e]=n,t)}function _(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function x(t,e,n){var r=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,r)}function C(t,e){return t.map(function(t){return t.elm}).indexOf(e)}function S(t,e,n,r){if(!t)return[];var i=t.map(function(t){return t.elm}),o=e.length-r,s=v(e).map(function(t,e){return e>=o?i.length:i.indexOf(t)});return n?s.filter(function(t){return-1!==t}):s}function T(t,e){var n=this;this.$nextTick(function(){return n.$emit(t.toLowerCase(),e)})}function O(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),T.call(e,t,n)}}function P(t){if(!t)return!1;var e=t.pull;return"function"===typeof e?"clone"===e():"clone"===e}var A=["Start","Add","Remove","Update","End"],E=["Choose","Sort","Filter","Clone"],M=["Move"].concat(A,E).map(function(t){return"on"+t}),I=null,N={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},j={name:"draggable",inheritAttrs:!1,props:N,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1,isCloning:!1}},render:function(t){var e=this,n=this.$slots.default;if(n&&1===n.length){var r=n[0];r.componentOptions&&["transition-group","TransitionGroup"].includes(r.componentOptions.tag)&&(this.transitionMode=!0)}var i=0,o=0,s=n,l=this.$slots,c=l.header,u=l.footer;c&&(i=c.length,s=s?[].concat(v(c),v(s)):v(c)),u&&(o=u.length,s=s?[].concat(v(s),v(u)):v(u)),this.headerOffset=i,this.footerOffset=o;var d=null,h=function(t,e){d=k(d,t,e)},f=a()(this.$attrs).filter(function(t){return"id"===t||t.startsWith("data-")}).reduce(function(t,n){return t[n]=e.$attrs[n],t},{});if(h("attrs",f),this.componentData){var p=this.componentData,g=p.on,m=p.props;h("on",g),h("props",m)}return t(this.getTag(),d,s)},created:function(){null!==this.list&&null!==this.value&&w["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&w["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&w["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};A.forEach(function(n){e["on"+n]=O.call(t,n)}),E.forEach(function(n){e["on"+n]=T.bind(t,n)});var n=a()(this.$attrs).reduce(function(e,n){return e[Object(w["a"])(n)]=t.$attrs[n],e},{}),r=o()({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new y.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getTag:function(){return this.tag||this.element},getIsCloning:function(){var t=this.$attrs.group,e=t||this.getOptionGroup();return P(e)},getOptionGroup:function(){var t=this.options;if(t)return t.group},updateOptions:function(t){for(var e in t){var n=Object(w["a"])(e);-1==M.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1==this.$children.length,this.init=!0),this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick(function(){t.visibleIndexes=S(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)})},getUnderlyingVm:function(t){var e=C(this.getChildrenNodes()||[],t);if(-1===e)return null;var n=this.realList[e];return{index:e,element:n}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&"transition-group"===e.$options._componentTag?e.$parent:e},emitChanges:function(t){var e=this;this.$nextTick(function(){e.$emit("change",t)})},alterList:function(t){if(this.list)t(this.list);else{var e=v(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,v(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,r=this.getUnderlyingPotencialDraggableComponent(e);if(!r)return{component:r};var i=r.realList,s={list:i,component:r};if(e!==n&&i&&r.getUnderlyingVm){var a=r.getUnderlyingVm(n);if(a)return o()(a,s)}return s},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){var e=this.getChildrenNodes();e[t].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),this.isCloning=this.getIsCloning(),t.item._underlying_vm_=this.clone(this.context.element),I=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){_(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var r={element:e,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(t){if(x(this.rootContainer,t.item,t.oldIndex),this.isCloning)_(t.clone);else{var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}},onDragUpdate:function(t){_(t.item),x(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var r={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=v(e.to.children).filter(function(t){return"none"!==t.style["display"]}),r=n.indexOf(e.related),i=t.component.getVmIndex(r),o=-1!=n.indexOf(I);return o||!e.willInsertAfter?i:i+1},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(t),i=this.context,s=this.computeFutureIndex(r,t);o()(i,{futureIndex:s});var a=o()({},t,{relatedContext:r,draggedContext:i});return n(a,e)},onDragEnd:function(){this.computeIndexes(),I=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",j);var D=j;e["default"]=D}})["default"]})},1991:function(t,e,n){var r,i,o,s=n("9b43"),a=n("31f4"),l=n("fab2"),c=n("230e"),u=n("7726"),d=u.process,h=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,g=u.Dispatch,m=0,v={},b="onreadystatechange",y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},w=function(t){y.call(t.data)};h&&f||(h=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return v[++m]=function(){a("function"==typeof t?t:Function(t),e)},r(m),m},f=function(t){delete v[t]},"process"==n("2d95")(d)?r=function(t){d.nextTick(s(y,t,1))}:g&&g.now?r=function(t){g.now(s(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=w,r=s(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",w,!1)):r=b in c("script")?function(t){l.appendChild(c("script"))[b]=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:h,clear:f}},"1af6":function(t,e,n){var r=n("63b6");r(r.S,"Array",{isArray:n("9003")})},"1b63":function(t,e,n){(function(t){t(n("56b3"),n("7b00"))})(function(t){"use strict";t.defineMode("sass",function(e){var n=t.mimeModes["text/css"],r=n.propertyKeywords||{},i=n.colorKeywords||{},o=n.valueKeywords||{},s=n.fontProperties||{};function a(t){return new RegExp("^"+t.join("|"))}var l,c=["true","false","null","auto"],u=new RegExp("^"+c.join("|")),d=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],h=a(d),f=/^::?[a-zA-Z_][\w\-]*/;function p(t){return!t.peek()||t.match(/\s+$/,!1)}function g(t,e){var n=t.peek();return")"===n?(t.next(),e.tokenizer=k,"operator"):"("===n?(t.next(),t.eatSpace(),"operator"):"'"===n||'"'===n?(e.tokenizer=v(t.next()),"string"):(e.tokenizer=v(")",!1),"string")}function m(t,e){return function(n,r){return n.sol()&&n.indentation()<=t?(r.tokenizer=k,k(n,r)):(e&&n.skipTo("*/")?(n.next(),n.next(),r.tokenizer=k):n.skipToEnd(),"comment")}}function v(t,e){function n(r,i){var o=r.next(),s=r.peek(),a=r.string.charAt(r.pos-2),l="\\"!==o&&s===t||o===t&&"\\"!==a;return l?(o!==t&&e&&r.next(),p(r)&&(i.cursorHalf=0),i.tokenizer=k,"string"):"#"===o&&"{"===s?(i.tokenizer=b(n),r.next(),"operator"):"string"}return null==e&&(e=!0),n}function b(t){return function(e,n){return"}"===e.peek()?(e.next(),n.tokenizer=t,"operator"):k(e,n)}}function y(t){if(0==t.indentCount){t.indentCount++;var n=t.scopes[0].offset,r=n+e.indentUnit;t.scopes.unshift({offset:r})}}function w(t){1!=t.scopes.length&&t.scopes.shift()}function k(t,e){var n=t.peek();if(t.match("/*"))return e.tokenizer=m(t.indentation(),!0),e.tokenizer(t,e);if(t.match("//"))return e.tokenizer=m(t.indentation(),!1),e.tokenizer(t,e);if(t.match("#{"))return e.tokenizer=b(k),"operator";if('"'===n||"'"===n)return t.next(),e.tokenizer=v(n),"string";if(e.cursorHalf){if("#"===n&&(t.next(),t.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)))return p(t)&&(e.cursorHalf=0),"number";if(t.match(/^-?[0-9\.]+/))return p(t)&&(e.cursorHalf=0),"number";if(t.match(/^(px|em|in)\b/))return p(t)&&(e.cursorHalf=0),"unit";if(t.match(u))return p(t)&&(e.cursorHalf=0),"keyword";if(t.match(/^url/)&&"("===t.peek())return e.tokenizer=g,p(t)&&(e.cursorHalf=0),"atom";if("$"===n)return t.next(),t.eatWhile(/[\w-]/),p(t)&&(e.cursorHalf=0),"variable-2";if("!"===n)return t.next(),e.cursorHalf=0,t.match(/^[\w]+/)?"keyword":"operator";if(t.match(h))return p(t)&&(e.cursorHalf=0),"operator";if(t.eatWhile(/[\w-]/))return p(t)&&(e.cursorHalf=0),l=t.current().toLowerCase(),o.hasOwnProperty(l)?"atom":i.hasOwnProperty(l)?"keyword":r.hasOwnProperty(l)?(e.prevProp=t.current().toLowerCase(),"property"):"tag";if(p(t))return e.cursorHalf=0,null}else{if("-"===n&&t.match(/^-\w+-/))return"meta";if("."===n){if(t.next(),t.match(/^[\w-]+/))return y(e),"qualifier";if("#"===t.peek())return y(e),"tag"}if("#"===n){if(t.next(),t.match(/^[\w-]+/))return y(e),"builtin";if("#"===t.peek())return y(e),"tag"}if("$"===n)return t.next(),t.eatWhile(/[\w-]/),"variable-2";if(t.match(/^-?[0-9\.]+/))return"number";if(t.match(/^(px|em|in)\b/))return"unit";if(t.match(u))return"keyword";if(t.match(/^url/)&&"("===t.peek())return e.tokenizer=g,"atom";if("="===n&&t.match(/^=[\w-]+/))return y(e),"meta";if("+"===n&&t.match(/^\+[\w-]+/))return"variable-3";if("@"===n&&t.match(/@extend/)&&(t.match(/\s*[\w]/)||w(e)),t.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return y(e),"def";if("@"===n)return t.next(),t.eatWhile(/[\w-]/),"def";if(t.eatWhile(/[\w-]/)){if(t.match(/ *: *[\w-\+\$#!\("']/,!1)){l=t.current().toLowerCase();var a=e.prevProp+"-"+l;return r.hasOwnProperty(a)?"property":r.hasOwnProperty(l)?(e.prevProp=l,"property"):s.hasOwnProperty(l)?"property":"tag"}return t.match(/ *:/,!1)?(y(e),e.cursorHalf=1,e.prevProp=t.current().toLowerCase(),"property"):t.match(/ *,/,!1)?"tag":(y(e),"tag")}if(":"===n)return t.match(f)?"variable-3":(t.next(),e.cursorHalf=1,"operator")}return t.match(h)?"operator":(t.next(),null)}function _(t,n){t.sol()&&(n.indentCount=0);var r=n.tokenizer(t,n),i=t.current();if("@return"!==i&&"}"!==i||w(n),null!==r){for(var o=t.pos-i.length,s=o+e.indentUnit*n.indentCount,a=[],l=0;l<n.scopes.length;l++){var c=n.scopes[l];c.offset<=s&&a.push(c)}n.scopes=a}return r}return{startState:function(){return{tokenizer:k,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(t,e){var n=_(t,e);return e.lastToken={style:n,content:t.current()},n},indent:function(t){return t.scopes[0].offset}}},"css"),t.defineMIME("text/x-sass","sass")})},"1bc3":function(t,e,n){var r=n("f772");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},"1ec9":function(t,e,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"1fa8":function(t,e,n){var r=n("cb7c");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(s){var o=t["return"];throw void 0!==o&&r(o.call(t)),s}}},"20fd":function(t,e,n){"use strict";var r=n("d9f6"),i=n("aebd");t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},"214f":function(t,e,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),s=n("be13"),a=n("2b4c"),l=n("520a"),c=a("species"),u=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var h=a(t),f=!o(function(){var e={};return e[h]=function(){return 7},7!=""[t](e)}),p=f?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!e}):void 0;if(!f||!p||"replace"===t&&!u||"split"===t&&!d){var g=/./[h],m=n(s,h,""[t],function(t,e,n,r,i){return e.exec===l?f&&!i?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),v=m[0],b=m[1];r(String.prototype,t,v),i(RegExp.prototype,h,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},"241e":function(t,e,n){var r=n("25eb");t.exports=function(t){return Object(r(t))}},2444:function(t,e,n){"use strict";(function(e){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function a(){var t;return"undefined"!==typeof XMLHttpRequest?t=n("b50d"):"undefined"!==typeof e&&(t=n("b50d")),t}var l={adapter:a(),transformRequest:[function(t,e){return i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(t){l.headers[t]={}}),r.forEach(["post","put","patch"],function(t){l.headers[t]=r.merge(o)}),t.exports=l}).call(this,n("4362"))},"24c5":function(t,e,n){"use strict";var r,i,o,s,a=n("b8e3"),l=n("e53d"),c=n("d864"),u=n("40c3"),d=n("63b6"),h=n("f772"),f=n("79aa"),p=n("1173"),g=n("a22a"),m=n("f201"),v=n("4178").set,b=n("aba2")(),y=n("656e"),w=n("4439"),k=n("bc13"),_=n("cd78"),x="Promise",C=l.TypeError,S=l.process,T=S&&S.versions,O=T&&T.v8||"",P=l[x],A="process"==u(S),E=function(){},M=i=y.f,I=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[n("5168")("species")]=function(t){t(E,E)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e&&0!==O.indexOf("6.6")&&-1===k.indexOf("Chrome/66")}catch(r){}}(),N=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},j=function(t,e){if(!t._n){t._n=!0;var n=t._c;b(function(){var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s,a=i?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{a?(i||(2==t._h&&B(t),t._h=1),!0===a?n=r:(u&&u.enter(),n=a(r),u&&(u.exit(),s=!0)),n===e.promise?c(C("Promise-chain cycle")):(o=N(n))?o.call(n,l,c):l(n)):c(r)}catch(d){u&&!s&&u.exit(),c(d)}};while(n.length>o)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&D(t)})}},D=function(t){v.call(l,function(){var e,n,r,i=t._v,o=L(t);if(o&&(e=w(function(){A?S.emit("unhandledRejection",i,t):(n=l.onunhandledrejection)?n({promise:t,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=A||L(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},L=function(t){return 1!==t._h&&0===(t._a||t._c).length},B=function(t){v.call(l,function(){var e;A?S.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),j(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw C("Promise can't be resolved itself");(e=N(t))?b(function(){var r={_w:n,_d:!1};try{e.call(t,c(F,r,1),c(R,r,1))}catch(i){R.call(r,i)}}):(n._v=t,n._s=1,j(n,!1))}catch(r){R.call({_w:n,_d:!1},r)}}};I||(P=function(t){p(this,P,x,"_h"),f(t),r.call(this);try{t(c(F,this,1),c(R,this,1))}catch(e){R.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("5c95")(P.prototype,{then:function(t,e){var n=M(m(this,P));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=A?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(F,t,1),this.reject=c(R,t,1)},y.f=M=function(t){return t===P||t===s?new o(t):i(t)}),d(d.G+d.W+d.F*!I,{Promise:P}),n("45f2")(P,x),n("4c95")(x),s=n("584a")[x],d(d.S+d.F*!I,x,{reject:function(t){var e=M(this),n=e.reject;return n(t),e.promise}}),d(d.S+d.F*(a||!I),x,{resolve:function(t){return _(a&&this===s?P:this,t)}}),d(d.S+d.F*!(I&&n("4ee1")(function(t){P.all(t)["catch"](E)})),x,{all:function(t){var e=this,n=M(e),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,s=1;g(t,!1,function(t){var a=o++,l=!1;n.push(void 0),s++,e.resolve(t).then(function(t){l||(l=!0,n[a]=t,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,i=w(function(){g(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"268f":function(t,e,n){t.exports=n("fde4")},"27ee":function(t,e,n){var r=n("23c6"),i=n("2b4c")("iterator"),o=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},2831:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r={name:"default-section",props:{section:{type:Object,required:!0},currentIndex:{type:[Number,String],required:!1,default:1/0},renderSuggestion:{type:Function,required:!1},normalizeItemFunction:{type:Function,required:!0}},data:function(){return{_currentIndex:null}},computed:{list:function(){var t=this.section,e=t.limit,n=t.data;return n.length<e&&(e=n.length),n.slice(0,e)}},methods:{getItemIndex:function(t){return this.section.start_index+t},getItemByIndex:function(t){return this.section.data[t]},onMouseEnter:function(t){var e=t.currentTarget.getAttribute("data-suggestion-index");this._currentIndex=e,this.$emit("updateCurrentIndex",e)},onMouseLeave:function(){this.$emit("updateCurrentIndex",null)}},render:function(t){var e=this,n={beforeSection:this.$scopedSlots["before-section-"+this.section.name],afterSectionDefault:this.$scopedSlots["after-section"],afterSectionNamed:this.$scopedSlots["after-section-"+this.section.name]},r="autosuggest__results-before autosuggest__results-before--"+this.section.name,i=n.beforeSection&&n.beforeSection({section:this.section,className:r})||[];return t("ul",{attrs:{role:"listbox","aria-labelledby":"autosuggest"}},[i[0]&&i[0]||this.section.label&&t("li",{class:r},this.section.label)||"",this.list.map(function(n,r){var i=e.normalizeItemFunction(e.section.name,e.section.type,e.section.label,n);return t("li",{attrs:{role:"option","data-suggestion-index":e.getItemIndex(r),"data-section-name":e.section.name,id:"autosuggest__results-item--"+e.getItemIndex(r)},key:e.getItemIndex(r),class:{"autosuggest__results-item--highlighted":e.getItemIndex(r)==e._currentIndex,"autosuggest__results-item":!0},on:{mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave}},[e.renderSuggestion?e.renderSuggestion(i):e.$scopedSlots.default&&e.$scopedSlots.default({_key:r,suggestion:i})])}),n.afterSectionDefault&&n.afterSectionDefault({section:this.section,className:"autosuggest__results-after autosuggest__results-after--"+this.section.name}),n.afterSectionNamed&&n.afterSectionNamed({section:this.section,className:"autosuggest__results_after autosuggest__results-after--"+this.section.name})])}};function i(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function o(t,e){i(t,e)||(t.className+=" "+e)}function s(t,e){t.classList&&t.classList.remove(e)}var a={name:"default",type:"default-section"},l={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:t.componentAttrIdAutosuggest}},[t._t("before-input"),n("input",t._g(t._b({class:[t.isOpen?"autosuggest__input--open":"",t.internal_inputProps.class],attrs:{type:t.internal_inputProps.type,autocomplete:t.internal_inputProps.autocomplete,role:"combobox","aria-autocomplete":"list","aria-owns":"autosuggest__results","aria-activedescendant":t.isOpen&&null!==t.currentIndex?"autosuggest__results-item--"+t.currentIndex:"","aria-haspopup":t.isOpen?"true":"false","aria-expanded":t.isOpen?"true":"false"},domProps:{value:t.internalValue},on:{input:t.inputHandler,keydown:t.handleKeyStroke}},"input",t.internal_inputProps,!1),t.listeners)),t._t("after-input"),t._v(" "),n("div",{class:t.componentAttrClassAutosuggestResultsContainer},[t.isOpen?n("div",{class:t.componentAttrClassAutosuggestResults,attrs:{"aria-labelledby":t.componentAttrIdAutosuggest}},[t._t("before-suggestions"),t._v(" "),t._l(t.computedSections,function(e,r){return n(e.type,{key:t.getSectionRef(r),ref:t.getSectionRef(r),refInFor:!0,tag:"component",attrs:{"current-index":t.currentIndex,"normalize-item-function":t.normalizeItem,"render-suggestion":t.renderSuggestion,section:e},on:{updateCurrentIndex:t.updateCurrentIndex},scopedSlots:t._u([{key:"before-section-"+(e.name||e.label),fn:function(n){var r=n.section,i=n.className;return[t._t("before-section-"+(e.name||e.label),null,{section:r,className:i})]}},{key:"default",fn:function(e){var n=e.suggestion,r=e._key;return[t._t("default",[t._v(" "+t._s(n.item)+" ")],{suggestion:n,index:r})]}},{key:"after-section-"+(e.name||e.label),fn:function(n){var r=n.section;return[t._t("after-section-"+(e.name||e.label),null,{section:r})]}},{key:"after-section",fn:function(e){var n=e.section;return[t._t("after-section",null,{section:n})]}}])})}),t._v(" "),t._t("after-suggestions")],2):t._e()])],2)},staticRenderFns:[],name:"Autosuggest",components:{DefaultSection:r},props:{value:{type:String,default:null},inputProps:{type:Object,required:!0},limit:{type:Number,required:!1,default:1/0},suggestions:{type:Array,required:!0},renderSuggestion:{type:Function,required:!1,default:null},getSuggestionValue:{type:Function,required:!1,default:function(t){var e=t.item;return"object"==typeof e&&e.hasOwnProperty("name")?e.name:e}},shouldRenderSuggestions:{type:Function,required:!1,default:function(t,e){return t>0&&!e}},sectionConfigs:{type:Object,required:!1,default:function(){return{default:{onSelected:null}}}},onSelected:{type:Function,required:!1,default:null},componentAttrIdAutosuggest:{type:String,required:!1,default:"autosuggest"},componentAttrClassAutosuggestResultsContainer:{type:String,required:!1,default:"autosuggest__results-container"},componentAttrClassAutosuggestResults:{type:String,required:!1,default:"autosuggest__results"}},data:function(){return{internalValue:null,searchInputOriginal:null,currentIndex:null,currentItem:null,loading:!1,didSelectFromOptions:!1,internal_inputProps:{},defaultInputProps:{type:"text",autocomplete:"off"},clientXMouseDownInitial:null}},computed:{listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(t){},click:function(){t.loading=!1,t.$listeners.click&&t.$listeners.click(t.currentItem),t.ensureItemVisible(t.currentItem,t.currentIndex)},selected:function(){t.currentItem&&t.sectionConfigs[t.currentItem.name]&&t.sectionConfigs[t.currentItem.name].onSelected?t.sectionConfigs[t.currentItem.name].onSelected(t.currentItem,t.searchInputOriginal):t.sectionConfigs.default.onSelected?t.sectionConfigs.default.onSelected(null,t.searchInputOriginal):t.$listeners.selected&&t.$emit("selected",t.currentItem),t.setChangeItem(null)}})},isOpen:function(){return this.shouldRenderSuggestions(this.totalResults,this.loading)},computedSections:function(){var t=this,e=0;return this.suggestions.map(function(n){if(n.data){var r,i,o=n.name?n.name:a.name,s=null;t.sectionConfigs[o]&&(r=t.sectionConfigs[o].limit,s=t.sectionConfigs[o].type,i=t.sectionConfigs[o].label),s=s||a.type,r=(r=r||t.limit)||1/0,r=n.data.length<r?n.data.length:r;var l={name:o,label:i=i||n.label,type:s,limit:r,data:n.data,start_index:e,end_index:e+r-1};return e+=r,l}})},totalResults:function(){return this.computedSections.reduce(function(t,e){var n=e.limit,r=e.data;return t+(r.length>=n?n:r.length)},0)}},watch:{value:{handler:function(t){this.internalValue=t},immediate:!0}},created:function(){this.internal_inputProps=Object.assign({},this.defaultInputProps,this.inputProps),this.loading=!0},mounted:function(){document.addEventListener("mouseup",this.onDocumentMouseUp),document.addEventListener("mousedown",this.onDocumentMouseDown)},beforeDestroy:function(){document.removeEventListener("mouseup",this.onDocumentMouseUp),document.removeEventListener("mousedown",this.onDocumentMouseDown)},methods:{inputHandler:function(t){var e=t.target.value;this.$emit("input",e),this.internalValue=e,this.didSelectFromOptions||(this.searchInputOriginal=e,this.currentIndex=null)},getSectionRef:function(t){return"computed_section_"+t},getItemByIndex:function(t){var e=!1;if(null===t)return e;for(var n=0;n<this.computedSections.length;n++)if(t>=this.computedSections[n].start_index&&t<=this.computedSections[n].end_index){var r=t-this.computedSections[n].start_index,i=this.$refs["computed_section_"+n][0];if(i){e=this.normalizeItem(this.computedSections[n].name,this.computedSections[n].type,i.section.label,i.getItemByIndex(r));break}}return e},handleKeyStroke:function(t){var e=t.keyCode;if(!([16,9,18,91,93].indexOf(e)>-1))switch(this.loading=!1,this.didSelectFromOptions=!1,e){case 40:case 38:if(t.preventDefault(),this.isOpen){if(38===e&&null===this.currentIndex)break;var n=40===e?1:-1,r=parseInt(this.currentIndex)+n;this.setCurrentIndex(r,this.totalResults),this.didSelectFromOptions=!0,this.totalResults>0&&this.currentIndex>=0?(this.setChangeItem(this.getItemByIndex(this.currentIndex)),this.didSelectFromOptions=!0):-1==this.currentIndex&&(this.currentIndex=null,this.internalValue=this.searchInputOriginal,t.preventDefault())}break;case 13:t.preventDefault(),this.totalResults>0&&this.currentIndex>=0&&(this.setChangeItem(this.getItemByIndex(this.currentIndex),!0),this.didSelectFromOptions=!0),this.loading=!0,this.listeners.selected(this.didSelectFromOptions);break;case 27:this.isOpen&&(this.loading=!0,this.currentIndex=null,this.internalValue=this.searchInputOriginal,this.$emit("input",this.searchInputOriginal),t.preventDefault())}},setChangeItem:function(t,e){if(void 0===e&&(e=!1),null!==this.currentIndex&&t){if(t){this.currentItem=t;var n=this.getSuggestionValue(t);this.internalValue=n,e&&(this.searchInputOriginal=n),this.ensureItemVisible(t,this.currentIndex)}}else this.currentItem=null},normalizeItem:function(t,e,n,r){return{name:t,type:e,label:n,item:r}},ensureItemVisible:function(t,e){var n=this.$el.querySelector("."+this.componentAttrClassAutosuggestResults);if(t&&(e||0===e)&&n){var r=this.$el.querySelector("#autosuggest__results-item--"+e);if(r){var i=n.clientHeight,o=n.scrollTop,s=r.clientHeight,a=r.offsetTop;s+a>=o+i?n.scrollTop=s+a-i:a<o&&o>0&&(n.scrollTop=a)}}},updateCurrentIndex:function(t){this.setCurrentIndex(t,-1,!0)},clickedOnScrollbar:function(t,e){var n=this.$el.querySelector("."+this.componentAttrClassAutosuggestResults),r=n&&n.clientWidth<=e+17&&e+17<=n.clientWidth+34;return"DIV"===t.target.tagName&&n&&r||!1},onDocumentMouseDown:function(t){var e=t.target.getBoundingClientRect?t.target.getBoundingClientRect():0;this.clientXMouseDownInitial=t.clientX-e.left},onDocumentMouseUp:function(t){if(!this.$el.contains(t.target))return this.loading=!0,void(this.currentIndex=null);"INPUT"===t.target.tagName||this.clickedOnScrollbar(t,this.clientXMouseDownInitial)||(this.loading=!0,this.didSelectFromOptions=!0,this.setChangeItem(this.getItemByIndex(this.currentIndex),!0),this.listeners.selected(!0))},setCurrentIndex:function(t,e,n){void 0===e&&(e=-1),void 0===n&&(n=!1);var r=t;n||(null===this.currentIndex||t>=e)&&(r=0),this.currentIndex=r;var i=this.$el.querySelector("#autosuggest__results-item--"+this.currentIndex),a="autosuggest__results-item--highlighted";this.$el.querySelector("."+a)&&s(this.$el.querySelector("."+a),a),i&&o(i,a)}}},c={install:function(t){t.component("vue-autosuggest-default-section",r),t.component("vue-autosuggest",l)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(c)},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):i&&(l=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}n.d(e,"a",function(){return r})},"28a5":function(t,e,n){"use strict";var r=n("aae3"),i=n("cb7c"),o=n("ebd6"),s=n("0390"),a=n("9def"),l=n("5f1b"),c=n("520a"),u=n("79e5"),d=Math.min,h=[].push,f="split",p="length",g="lastIndex",m=4294967295,v=!u(function(){RegExp(m,"y")});n("214f")("split",2,function(t,e,n,u){var b;return b="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[p]||2!="ab"[f](/(?:ab)*/)[p]||4!="."[f](/(.?)(.?)/)[p]||"."[f](/()()/)[p]>1||""[f](/.?/)[p]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(i,t,e);var o,s,a,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,f=void 0===e?m:e>>>0,v=new RegExp(t.source,u+"g");while(o=c.call(v,i)){if(s=v[g],s>d&&(l.push(i.slice(d,o.index)),o[p]>1&&o.index<i[p]&&h.apply(l,o.slice(1)),a=o[0][p],d=s,l[p]>=f))break;v[g]===o.index&&v[g]++}return d===i[p]?!a&&v.test("")||l.push(""):l.push(i.slice(d)),l[p]>f?l.slice(0,f):l}:"0"[f](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var i=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,r):b.call(String(i),n,r)},function(t,e){var r=u(b,t,this,e,b!==n);if(r.done)return r.value;var c=i(t),h=String(this),f=o(c,RegExp),p=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),y=new f(v?c:"^(?:"+c.source+")",g),w=void 0===e?m:e>>>0;if(0===w)return[];if(0===h.length)return null===l(y,h)?[h]:[];var k=0,_=0,x=[];while(_<h.length){y.lastIndex=v?_:0;var C,S=l(y,v?h:h.slice(_));if(null===S||(C=d(a(y.lastIndex+(v?0:_)),h.length))===k)_=s(h,_,p);else{if(x.push(h.slice(k,_)),x.length===w)return x;for(var T=1;T<=S.length-1;T++)if(x.push(S[T]),x.length===w)return x;_=k=C}}return x.push(h.slice(k)),x}]})},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),l="toString",c=(""+a).split(l);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(o(n,s)||i(n,s,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,l,function(){return"function"==typeof this&&this[s]||a.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},l="prototype",c=function(){var t,e=n("230e")("iframe"),r=o.length,i="<",s=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+s+"document.F=Object"+i+"/script"+s),t.close(),c=t.F;while(r--)delete c[l][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[l]=r(t),n=new a,a[l]=null,n[s]=t):n=c(),void 0===e?n:i(n,e)}},"2b0e":function(t,e,n){"use strict";n.r(e),function(t){
/*!
 * Vue.js v2.6.10
 * (c) 2014-2019 Evan You
 * Released under the MIT License.
 */
var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function s(t){return!1===t}function a(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function l(t){return null!==t&&"object"===typeof t}var c=Object.prototype.toString;function u(t){return"[object Object]"===c.call(t)}function d(t){return"[object RegExp]"===c.call(t)}function h(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}m("slot,component",!0);var v=m("key,ref,slot,slot-scope,is");function b(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function w(t,e){return y.call(t,e)}function k(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var _=/-(\w)/g,x=k(function(t){return t.replace(_,function(t,e){return e?e.toUpperCase():""})}),C=k(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),S=/\B([A-Z])/g,T=k(function(t){return t.replace(S,"-$1").toLowerCase()});function O(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function P(t,e){return t.bind(e)}var A=Function.prototype.bind?P:O;function E(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function M(t,e){for(var n in e)t[n]=e[n];return t}function I(t){for(var e={},n=0;n<t.length;n++)t[n]&&M(e,t[n]);return e}function N(t,e,n){}var j=function(t,e,n){return!1},D=function(t){return t};function L(t,e){if(t===e)return!0;var n=l(t),r=l(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every(function(t,n){return L(t,e[n])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every(function(n){return L(t[n],e[n])})}catch(c){return!1}}function B(t,e){for(var n=0;n<t.length;n++)if(L(t[n],e))return n;return-1}function R(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var F="data-server-rendered",$=["component","directive","filter"],V=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],z={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:j,isReservedAttr:j,isUnknownElement:j,getTagNamespace:N,parsePlatformTagName:D,mustUseProp:j,async:!0,_lifecycleHooks:V},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function W(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function U(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var q=new RegExp("[^"+H.source+".$_\\d]");function G(t){if(!q.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var Y,K="__proto__"in{},X="undefined"!==typeof window,J="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Q=J&&WXEnvironment.platform.toLowerCase(),Z=X&&window.navigator.userAgent.toLowerCase(),tt=Z&&/msie|trident/.test(Z),et=Z&&Z.indexOf("msie 9.0")>0,nt=Z&&Z.indexOf("edge/")>0,rt=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===Q),it=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),ot={}.watch,st=!1;if(X)try{var at={};Object.defineProperty(at,"passive",{get:function(){st=!0}}),window.addEventListener("test-passive",null,at)}catch(xs){}var lt=function(){return void 0===Y&&(Y=!X&&!J&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ct=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var dt,ht="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);dt="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ft=N,pt=0,gt=function(){this.id=pt++,this.subs=[]};gt.prototype.addSub=function(t){this.subs.push(t)},gt.prototype.removeSub=function(t){b(this.subs,t)},gt.prototype.depend=function(){gt.target&&gt.target.addDep(this)},gt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},gt.target=null;var mt=[];function vt(t){mt.push(t),gt.target=t}function bt(){mt.pop(),gt.target=mt[mt.length-1]}var yt=function(t,e,n,r,i,o,s,a){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},wt={child:{configurable:!0}};wt.child.get=function(){return this.componentInstance},Object.defineProperties(yt.prototype,wt);var kt=function(t){void 0===t&&(t="");var e=new yt;return e.text=t,e.isComment=!0,e};function _t(t){return new yt(void 0,void 0,void 0,String(t))}function xt(t){var e=new yt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var Ct=Array.prototype,St=Object.create(Ct),Tt=["push","pop","shift","unshift","splice","sort","reverse"];Tt.forEach(function(t){var e=Ct[t];U(St,t,function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=e.apply(this,n),s=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&s.observeArray(i),s.dep.notify(),o})});var Ot=Object.getOwnPropertyNames(St),Pt=!0;function At(t){Pt=t}var Et=function(t){this.value=t,this.dep=new gt,this.vmCount=0,U(t,"__ob__",this),Array.isArray(t)?(K?Mt(t,St):It(t,St,Ot),this.observeArray(t)):this.walk(t)};function Mt(t,e){t.__proto__=e}function It(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];U(t,o,e[o])}}function Nt(t,e){var n;if(l(t)&&!(t instanceof yt))return w(t,"__ob__")&&t.__ob__ instanceof Et?n=t.__ob__:Pt&&!lt()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Et(t)),e&&n&&n.vmCount++,n}function jt(t,e,n,r,i){var o=new gt,s=Object.getOwnPropertyDescriptor(t,e);if(!s||!1!==s.configurable){var a=s&&s.get,l=s&&s.set;a&&!l||2!==arguments.length||(n=t[e]);var c=!i&&Nt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):n;return gt.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(e)&&Bt(e))),e},set:function(e){var r=a?a.call(t):n;e===r||e!==e&&r!==r||a&&!l||(l?l.call(t,e):n=e,c=!i&&Nt(e),o.notify())}})}}function Dt(t,e,n){if(Array.isArray(t)&&h(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(jt(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Lt(t,e){if(Array.isArray(t)&&h(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||w(t,e)&&(delete t[e],n&&n.dep.notify())}}function Bt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Bt(e)}Et.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)jt(t,e[n])},Et.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Nt(t[e])};var Rt=z.optionMergeStrategies;function Ft(t,e){if(!e)return t;for(var n,r,i,o=ht?Reflect.ownKeys(e):Object.keys(e),s=0;s<o.length;s++)n=o[s],"__ob__"!==n&&(r=t[n],i=e[n],w(t,n)?r!==i&&u(r)&&u(i)&&Ft(r,i):Dt(t,n,i));return t}function $t(t,e,n){return n?function(){var r="function"===typeof e?e.call(n,n):e,i="function"===typeof t?t.call(n,n):t;return r?Ft(r,i):i}:e?t?function(){return Ft("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function Vt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?zt(n):n}function zt(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function Ht(t,e,n,r){var i=Object.create(t||null);return e?M(i,e):i}Rt.data=function(t,e,n){return n?$t(t,e,n):e&&"function"!==typeof e?t:$t(t,e)},V.forEach(function(t){Rt[t]=Vt}),$.forEach(function(t){Rt[t+"s"]=Ht}),Rt.watch=function(t,e,n,r){if(t===ot&&(t=void 0),e===ot&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in M(i,t),e){var s=i[o],a=e[o];s&&!Array.isArray(s)&&(s=[s]),i[o]=s?s.concat(a):Array.isArray(a)?a:[a]}return i},Rt.props=Rt.methods=Rt.inject=Rt.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return M(i,t),e&&M(i,e),i},Rt.provide=$t;var Wt=function(t,e){return void 0===e?t:e};function Ut(t,e){var n=t.props;if(n){var r,i,o,s={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=x(i),s[o]={type:null})}else if(u(n))for(var a in n)i=n[a],o=x(a),s[o]=u(i)?i:{type:i};else 0;t.props=s}}function qt(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var s=n[o];r[o]=u(s)?M({from:o},s):{from:s}}else 0}}function Gt(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"===typeof r&&(e[n]={bind:r,update:r})}}function Yt(t,e,n){if("function"===typeof e&&(e=e.options),Ut(e,n),qt(e,n),Gt(e),!e._base&&(e.extends&&(t=Yt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Yt(t,e.mixins[r],n);var o,s={};for(o in t)a(o);for(o in e)w(t,o)||a(o);function a(r){var i=Rt[r]||Wt;s[r]=i(t[r],e[r],n,r)}return s}function Kt(t,e,n,r){if("string"===typeof n){var i=t[e];if(w(i,n))return i[n];var o=x(n);if(w(i,o))return i[o];var s=C(o);if(w(i,s))return i[s];var a=i[n]||i[o]||i[s];return a}}function Xt(t,e,n,r){var i=e[t],o=!w(n,t),s=n[t],a=te(Boolean,i.type);if(a>-1)if(o&&!w(i,"default"))s=!1;else if(""===s||s===T(t)){var l=te(String,i.type);(l<0||a<l)&&(s=!0)}if(void 0===s){s=Jt(r,i,t);var c=Pt;At(!0),Nt(s),At(c)}return s}function Jt(t,e,n){if(w(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof r&&"Function"!==Qt(e.type)?r.call(t):r}}function Qt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Zt(t,e){return Qt(t)===Qt(e)}function te(t,e){if(!Array.isArray(e))return Zt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Zt(e[n],t))return n;return-1}function ee(t,e,n){vt();try{if(e){var r=e;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var s=!1===i[o].call(r,t,e,n);if(s)return}catch(xs){re(xs,r,"errorCaptured hook")}}}re(t,e,n)}finally{bt()}}function ne(t,e,n,r,i){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&f(o)&&!o._handled&&(o.catch(function(t){return ee(t,r,i+" (Promise/async)")}),o._handled=!0)}catch(xs){ee(xs,r,i)}return o}function re(t,e,n){if(z.errorHandler)try{return z.errorHandler.call(null,t,e,n)}catch(xs){xs!==t&&ie(xs,null,"config.errorHandler")}ie(t,e,n)}function ie(t,e,n){if(!X&&!J||"undefined"===typeof console)throw t;console.error(t)}var oe,se=!1,ae=[],le=!1;function ce(){le=!1;var t=ae.slice(0);ae.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&ut(Promise)){var ue=Promise.resolve();oe=function(){ue.then(ce),rt&&setTimeout(N)},se=!0}else if(tt||"undefined"===typeof MutationObserver||!ut(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())oe="undefined"!==typeof setImmediate&&ut(setImmediate)?function(){setImmediate(ce)}:function(){setTimeout(ce,0)};else{var de=1,he=new MutationObserver(ce),fe=document.createTextNode(String(de));he.observe(fe,{characterData:!0}),oe=function(){de=(de+1)%2,fe.data=String(de)},se=!0}function pe(t,e){var n;if(ae.push(function(){if(t)try{t.call(e)}catch(xs){ee(xs,e,"nextTick")}else n&&n(e)}),le||(le=!0,oe()),!t&&"undefined"!==typeof Promise)return new Promise(function(t){n=t})}var ge=new dt;function me(t){ve(t,ge),ge.clear()}function ve(t,e){var n,r,i=Array.isArray(t);if(!(!i&&!l(t)||Object.isFrozen(t)||t instanceof yt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i){n=t.length;while(n--)ve(t[n],e)}else{r=Object.keys(t),n=r.length;while(n--)ve(t[r[n]],e)}}}var be=k(function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}});function ye(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return ne(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)ne(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function we(t,e,n,i,s,a){var l,c,u,d;for(l in t)c=t[l],u=e[l],d=be(l),r(c)||(r(u)?(r(c.fns)&&(c=t[l]=ye(c,a)),o(d.once)&&(c=t[l]=s(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,t[l]=u));for(l in e)r(t[l])&&(d=be(l),i(d.name,e[l],d.capture))}function ke(t,e,n){var s;t instanceof yt&&(t=t.data.hook||(t.data.hook={}));var a=t[e];function l(){n.apply(this,arguments),b(s.fns,l)}r(a)?s=ye([l]):i(a.fns)&&o(a.merged)?(s=a,s.fns.push(l)):s=ye([a,l]),s.merged=!0,t[e]=s}function _e(t,e,n){var o=e.options.props;if(!r(o)){var s={},a=t.attrs,l=t.props;if(i(a)||i(l))for(var c in o){var u=T(c);xe(s,l,c,u,!0)||xe(s,a,c,u,!1)}return s}}function xe(t,e,n,r,o){if(i(e)){if(w(e,n))return t[n]=e[n],o||delete e[n],!0;if(w(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function Ce(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function Se(t){return a(t)?[_t(t)]:Array.isArray(t)?Oe(t):void 0}function Te(t){return i(t)&&i(t.text)&&s(t.isComment)}function Oe(t,e){var n,s,l,c,u=[];for(n=0;n<t.length;n++)s=t[n],r(s)||"boolean"===typeof s||(l=u.length-1,c=u[l],Array.isArray(s)?s.length>0&&(s=Oe(s,(e||"")+"_"+n),Te(s[0])&&Te(c)&&(u[l]=_t(c.text+s[0].text),s.shift()),u.push.apply(u,s)):a(s)?Te(c)?u[l]=_t(c.text+s):""!==s&&u.push(_t(s)):Te(s)&&Te(c)?u[l]=_t(c.text+s.text):(o(t._isVList)&&i(s.tag)&&r(s.key)&&i(e)&&(s.key="__vlist"+e+"_"+n+"__"),u.push(s)));return u}function Pe(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Ae(t){var e=Ee(t.$options.inject,t);e&&(At(!1),Object.keys(e).forEach(function(n){jt(t,n,e[n])}),At(!0))}function Ee(t,e){if(t){for(var n=Object.create(null),r=ht?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var s=t[o].from,a=e;while(a){if(a._provided&&w(a._provided,s)){n[o]=a._provided[s];break}a=a.$parent}if(!a)if("default"in t[o]){var l=t[o].default;n[o]="function"===typeof l?l.call(e):l}else 0}}return n}}function Me(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==e&&o.fnContext!==e||!s||null==s.slot)(n.default||(n.default=[])).push(o);else{var a=s.slot,l=n[a]||(n[a]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in n)n[c].every(Ie)&&delete n[c];return n}function Ie(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Ne(t,e,r){var i,o=Object.keys(e).length>0,s=t?!!t.$stable:!o,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&r&&r!==n&&a===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=je(e,l,t[l]))}else i={};for(var c in e)c in i||(i[c]=De(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),U(i,"$stable",s),U(i,"$key",a),U(i,"$hasNormal",o),i}function je(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Se(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function De(t,e){return function(){return t[e]}}function Le(t,e){var n,r,o,s,a;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r);else if("number"===typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(l(t))if(ht&&t[Symbol.iterator]){n=[];var c=t[Symbol.iterator](),u=c.next();while(!u.done)n.push(e(u.value,n.length)),u=c.next()}else for(s=Object.keys(t),n=new Array(s.length),r=0,o=s.length;r<o;r++)a=s[r],n[r]=e(t[a],a,r);return i(n)||(n=[]),n._isVList=!0,n}function Be(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=M(M({},r),n)),i=o(n)||e):i=this.$slots[t]||e;var s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function Re(t){return Kt(this.$options,"filters",t,!0)||D}function Fe(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function $e(t,e,n,r,i){var o=z.keyCodes[e]||n;return i&&r&&!z.keyCodes[e]?Fe(i,r):o?Fe(o,t):r?T(r)!==e:void 0}function Ve(t,e,n,r,i){if(n)if(l(n)){var o;Array.isArray(n)&&(n=I(n));var s=function(s){if("class"===s||"style"===s||v(s))o=t;else{var a=t.attrs&&t.attrs.type;o=r||z.mustUseProp(e,a,s)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=x(s),c=T(s);if(!(l in o)&&!(c in o)&&(o[s]=n[s],i)){var u=t.on||(t.on={});u["update:"+s]=function(t){n[s]=t}}};for(var a in n)s(a)}else;return t}function ze(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e?r:(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),We(r,"__static__"+t,!1),r)}function He(t,e,n){return We(t,"__once__"+e+(n?"_"+n:""),!0),t}function We(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!==typeof t[r]&&Ue(t[r],e+"_"+r,n);else Ue(t,e,n)}function Ue(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function qe(t,e){if(e)if(u(e)){var n=t.on=t.on?M({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function Ge(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Ge(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Ye(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"===typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Ke(t,e){return"string"===typeof t?e+t:t}function Xe(t){t._o=He,t._n=g,t._s=p,t._l=Le,t._t=Be,t._q=L,t._i=B,t._m=ze,t._f=Re,t._k=$e,t._b=Ve,t._v=_t,t._e=kt,t._u=Ge,t._g=qe,t._d=Ye,t._p=Ke}function Je(t,e,r,i,s){var a,l=this,c=s.options;w(i,"_uid")?(a=Object.create(i),a._original=i):(a=i,i=i._original);var u=o(c._compiled),d=!u;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=Ee(c.inject,i),this.slots=function(){return l.$slots||Ne(t.scopedSlots,l.$slots=Me(r,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Ne(t.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Ne(t.scopedSlots,this.$slots)),c._scopeId?this._c=function(t,e,n,r){var o=dn(a,t,e,n,r,d);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return dn(a,t,e,n,r,d)}}function Qe(t,e,r,o,s){var a=t.options,l={},c=a.props;if(i(c))for(var u in c)l[u]=Xt(u,c,e||n);else i(r.attrs)&&tn(l,r.attrs),i(r.props)&&tn(l,r.props);var d=new Je(r,l,s,o,t),h=a.render.call(null,d._c,d);if(h instanceof yt)return Ze(h,r,d.parent,a,d);if(Array.isArray(h)){for(var f=Se(h)||[],p=new Array(f.length),g=0;g<f.length;g++)p[g]=Ze(f[g],r,d.parent,a,d);return p}}function Ze(t,e,n,r,i){var o=xt(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function tn(t,e){for(var n in e)t[x(n)]=e[n]}Xe(Je.prototype);var en={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;en.prepatch(n,n)}else{var r=t.componentInstance=on(t,En);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,r=e.componentInstance=t.componentInstance;Dn(r,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,Fn(n,"mounted")),t.data.keepAlive&&(e._isMounted?Qn(n):Bn(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Rn(e,!0):e.$destroy())}},nn=Object.keys(en);function rn(t,e,n,s,a){if(!r(t)){var c=n.$options._base;if(l(t)&&(t=c.extend(t)),"function"===typeof t){var u;if(r(t.cid)&&(u=t,t=kn(u,c),void 0===t))return wn(u,e,n,s,a);e=e||{},kr(t),i(e.model)&&ln(t.options,e);var d=_e(e,t,a);if(o(t.options.functional))return Qe(t,d,e,n,s);var h=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var f=e.slot;e={},f&&(e.slot=f)}sn(e);var p=t.options.name||a,g=new yt("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:d,listeners:h,tag:a,children:s},u);return g}}}function on(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function sn(t){for(var e=t.hook||(t.hook={}),n=0;n<nn.length;n++){var r=nn[n],i=e[r],o=en[r];i===o||i&&i._merged||(e[r]=i?an(o,i):o)}}function an(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function ln(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),s=o[r],a=e.model.callback;i(s)?(Array.isArray(s)?-1===s.indexOf(a):s!==a)&&(o[r]=[a].concat(s)):o[r]=a}var cn=1,un=2;function dn(t,e,n,r,i,s){return(Array.isArray(n)||a(n))&&(i=r,r=n,n=void 0),o(s)&&(i=un),hn(t,e,n,r,i)}function hn(t,e,n,r,o){if(i(n)&&i(n.__ob__))return kt();if(i(n)&&i(n.is)&&(e=n.is),!e)return kt();var s,a,l;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===un?r=Se(r):o===cn&&(r=Ce(r)),"string"===typeof e)?(a=t.$vnode&&t.$vnode.ns||z.getTagNamespace(e),s=z.isReservedTag(e)?new yt(z.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!i(l=Kt(t.$options,"components",e))?new yt(e,n,r,void 0,void 0,t):rn(l,n,t,r,e)):s=rn(e,n,t,r);return Array.isArray(s)?s:i(s)?(i(a)&&fn(s,a),i(n)&&pn(n),s):kt()}function fn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),i(t.children))for(var s=0,a=t.children.length;s<a;s++){var l=t.children[s];i(l.tag)&&(r(l.ns)||o(n)&&"svg"!==l.tag)&&fn(l,e,n)}}function pn(t){l(t.style)&&me(t.style),l(t.class)&&me(t.class)}function gn(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=Me(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return dn(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return dn(t,e,n,r,i,!0)};var o=r&&r.data;jt(t,"$attrs",o&&o.attrs||n,null,!0),jt(t,"$listeners",e._parentListeners||n,null,!0)}var mn,vn=null;function bn(t){Xe(t.prototype),t.prototype.$nextTick=function(t){return pe(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=Ne(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{vn=e,t=r.call(e._renderProxy,e.$createElement)}catch(xs){ee(xs,e,"render"),t=e._vnode}finally{vn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof yt||(t=kt()),t.parent=i,t}}function yn(t,e){return(t.__esModule||ht&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function wn(t,e,n,r,i){var o=kt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}function kn(t,e){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;var n=vn;if(n&&i(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(n&&!i(t.owners)){var s=t.owners=[n],a=!0,c=null,u=null;n.$on("hook:destroyed",function(){return b(s,n)});var d=function(t){for(var e=0,n=s.length;e<n;e++)s[e].$forceUpdate();t&&(s.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},h=R(function(n){t.resolved=yn(n,e),a?s.length=0:d(!0)}),p=R(function(e){i(t.errorComp)&&(t.error=!0,d(!0))}),g=t(h,p);return l(g)&&(f(g)?r(t.resolved)&&g.then(h,p):f(g.component)&&(g.component.then(h,p),i(g.error)&&(t.errorComp=yn(g.error,e)),i(g.loading)&&(t.loadingComp=yn(g.loading,e),0===g.delay?t.loading=!0:c=setTimeout(function(){c=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,d(!1))},g.delay||200)),i(g.timeout)&&(u=setTimeout(function(){u=null,r(t.resolved)&&p(null)},g.timeout)))),a=!1,t.loading?t.loadingComp:t.resolved}}function _n(t){return t.isComment&&t.asyncFactory}function xn(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||_n(n)))return n}}function Cn(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Pn(t,e)}function Sn(t,e){mn.$on(t,e)}function Tn(t,e){mn.$off(t,e)}function On(t,e){var n=mn;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function Pn(t,e,n){mn=t,we(e,n||{},Sn,Tn,On,t),mn=void 0}function An(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,s=n._events[t];if(!s)return n;if(!e)return n._events[t]=null,n;var a=s.length;while(a--)if(o=s[a],o===e||o.fn===e){s.splice(a,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?E(n):n;for(var r=E(arguments,1),i='event handler for "'+t+'"',o=0,s=n.length;o<s;o++)ne(n[o],e,r,e,i)}return e}}var En=null;function Mn(t){var e=En;return En=t,function(){En=e}}function In(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Nn(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=Mn(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Fn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||b(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Fn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function jn(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=kt),Fn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new nr(t,r,N,{before:function(){t._isMounted&&!t._isDestroyed&&Fn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Fn(t,"mounted")),t}function Dn(t,e,r,i,o){var s=i.data.scopedSlots,a=t.$scopedSlots,l=!!(s&&!s.$stable||a!==n&&!a.$stable||s&&t.$scopedSlots.$key!==s.$key),c=!!(o||t.$options._renderChildren||l);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){At(!1);for(var u=t._props,d=t.$options._propKeys||[],h=0;h<d.length;h++){var f=d[h],p=t.$options.props;u[f]=Xt(f,p,e,t)}At(!0),t.$options.propsData=e}r=r||n;var g=t.$options._parentListeners;t.$options._parentListeners=r,Pn(t,r,g),c&&(t.$slots=Me(o,i.context),t.$forceUpdate())}function Ln(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function Bn(t,e){if(e){if(t._directInactive=!1,Ln(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Bn(t.$children[n]);Fn(t,"activated")}}function Rn(t,e){if((!e||(t._directInactive=!0,!Ln(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Rn(t.$children[n]);Fn(t,"deactivated")}}function Fn(t,e){vt();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)ne(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),bt()}var $n=[],Vn=[],zn={},Hn=!1,Wn=!1,Un=0;function qn(){Un=$n.length=Vn.length=0,zn={},Hn=Wn=!1}var Gn=0,Yn=Date.now;if(X&&!tt){var Kn=window.performance;Kn&&"function"===typeof Kn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return Kn.now()})}function Xn(){var t,e;for(Gn=Yn(),Wn=!0,$n.sort(function(t,e){return t.id-e.id}),Un=0;Un<$n.length;Un++)t=$n[Un],t.before&&t.before(),e=t.id,zn[e]=null,t.run();var n=Vn.slice(),r=$n.slice();qn(),Zn(n),Jn(r),ct&&z.devtools&&ct.emit("flush")}function Jn(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Fn(r,"updated")}}function Qn(t){t._inactive=!1,Vn.push(t)}function Zn(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Bn(t[e],!0)}function tr(t){var e=t.id;if(null==zn[e]){if(zn[e]=!0,Wn){var n=$n.length-1;while(n>Un&&$n[n].id>t.id)n--;$n.splice(n+1,0,t)}else $n.push(t);Hn||(Hn=!0,pe(Xn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new dt,this.newDepIds=new dt,this.expression="","function"===typeof e?this.getter=e:(this.getter=G(e),this.getter||(this.getter=N)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;vt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(xs){if(!this.user)throw xs;ee(xs,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&me(t),bt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(xs){ee(xs,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:N,set:N};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function or(t){t._watchers=[];var e=t.$options;e.props&&sr(t,e.props),e.methods&&pr(t,e.methods),e.data?ar(t):Nt(t._data={},!0),e.computed&&ur(t,e.computed),e.watch&&e.watch!==ot&&gr(t,e.watch)}function sr(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||At(!1);var s=function(o){i.push(o);var s=Xt(o,e,n,t);jt(r,o,s),o in t||ir(t,"_props",o)};for(var a in e)s(a);At(!0)}function ar(t){var e=t.$options.data;e=t._data="function"===typeof e?lr(e,t):e||{},u(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&w(r,o)||W(o)||ir(t,"_data",o)}Nt(e,!0)}function lr(t,e){vt();try{return t.call(e,e)}catch(xs){return ee(xs,e,"data()"),{}}finally{bt()}}var cr={lazy:!0};function ur(t,e){var n=t._computedWatchers=Object.create(null),r=lt();for(var i in e){var o=e[i],s="function"===typeof o?o:o.get;0,r||(n[i]=new nr(t,s||N,N,cr)),i in t||dr(t,i,o)}}function dr(t,e,n){var r=!lt();"function"===typeof n?(rr.get=r?hr(e):fr(n),rr.set=N):(rr.get=n.get?r&&!1!==n.cache?hr(e):fr(n.get):N,rr.set=n.set||N),Object.defineProperty(t,e,rr)}function hr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),gt.target&&e.depend(),e.value}}function fr(t){return function(){return t.call(this,this)}}function pr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?N:A(e[n],t)}function gr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)mr(t,n,r[i]);else mr(t,n,r)}}function mr(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,r)}function vr(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Dt,t.prototype.$delete=Lt,t.prototype.$watch=function(t,e,n){var r=this;if(u(e))return mr(r,t,e,n);n=n||{},n.user=!0;var i=new nr(r,t,e,n);if(n.immediate)try{e.call(r,i.value)}catch(o){ee(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var br=0;function yr(t){t.prototype._init=function(t){var e=this;e._uid=br++,e._isVue=!0,t&&t._isComponent?wr(e,t):e.$options=Yt(kr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,In(e),Cn(e),gn(e),Fn(e,"beforeCreate"),Ae(e),or(e),Pe(e),Fn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function wr(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function kr(t){var e=t.options;if(t.super){var n=kr(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var i=_r(t);i&&M(t.extendOptions,i),e=t.options=Yt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function _r(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}function xr(t){this._init(t)}function Cr(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=E(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Sr(t){t.mixin=function(t){return this.options=Yt(this.options,t),this}}function Tr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var s=function(t){this._init(t)};return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=e++,s.options=Yt(n.options,t),s["super"]=n,s.options.props&&Or(s),s.options.computed&&Pr(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,$.forEach(function(t){s[t]=n[t]}),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=t,s.sealedOptions=M({},s.options),i[r]=s,s}}function Or(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Pr(t){var e=t.options.computed;for(var n in e)dr(t.prototype,n,e[n])}function Ar(t){$.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Er(t){return t&&(t.Ctor.options.name||t.tag)}function Mr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function Ir(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var s=n[o];if(s){var a=Er(s.componentOptions);a&&!e(a)&&Nr(n,o,r,i)}}}function Nr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,b(n,e)}yr(xr),vr(xr),An(xr),Nn(xr),bn(xr);var jr=[String,RegExp,Array],Dr={name:"keep-alive",abstract:!0,props:{include:jr,exclude:jr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Nr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",function(e){Ir(t,function(t){return Mr(e,t)})}),this.$watch("exclude",function(e){Ir(t,function(t){return!Mr(e,t)})})},render:function(){var t=this.$slots.default,e=xn(t),n=e&&e.componentOptions;if(n){var r=Er(n),i=this,o=i.include,s=i.exclude;if(o&&(!r||!Mr(o,r))||s&&r&&Mr(s,r))return e;var a=this,l=a.cache,c=a.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;l[u]?(e.componentInstance=l[u].componentInstance,b(c,u),c.push(u)):(l[u]=e,c.push(u),this.max&&c.length>parseInt(this.max)&&Nr(l,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Lr={KeepAlive:Dr};function Br(t){var e={get:function(){return z}};Object.defineProperty(t,"config",e),t.util={warn:ft,extend:M,mergeOptions:Yt,defineReactive:jt},t.set=Dt,t.delete=Lt,t.nextTick=pe,t.observable=function(t){return Nt(t),t},t.options=Object.create(null),$.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,M(t.options.components,Lr),Cr(t),Sr(t),Tr(t),Ar(t)}Br(xr),Object.defineProperty(xr.prototype,"$isServer",{get:lt}),Object.defineProperty(xr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xr,"FunctionalRenderContext",{value:Je}),xr.version="2.6.10";var Rr=m("style,class"),Fr=m("input,textarea,option,select,progress"),$r=function(t,e,n){return"value"===n&&Fr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Vr=m("contenteditable,draggable,spellcheck"),zr=m("events,caret,typing,plaintext-only"),Hr=function(t,e){return Yr(e)||"false"===e?"false":"contenteditable"===t&&zr(e)?e:"true"},Wr=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Ur="http://www.w3.org/1999/xlink",qr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Gr=function(t){return qr(t)?t.slice(6,t.length):""},Yr=function(t){return null==t||!1===t};function Kr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Xr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Xr(e,n.data));return Jr(e.staticClass,e.class)}function Xr(t,e){return{staticClass:Qr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Jr(t,e){return i(t)||i(e)?Qr(t,Zr(e)):""}function Qr(t,e){return t?e?t+" "+e:t:e||""}function Zr(t){return Array.isArray(t)?ti(t):l(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Zr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function ei(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var ni={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ri=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ii=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),oi=function(t){return ri(t)||ii(t)};function si(t){return ii(t)?"svg":"math"===t?"math":void 0}var ai=Object.create(null);function li(t){if(!X)return!0;if(oi(t))return!1;if(t=t.toLowerCase(),null!=ai[t])return ai[t];var e=document.createElement(t);return t.indexOf("-")>-1?ai[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ai[t]=/HTMLUnknownElement/.test(e.toString())}var ci=m("text,number,password,search,email,tel,url");function ui(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function di(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function hi(t,e){return document.createElementNS(ni[t],e)}function fi(t){return document.createTextNode(t)}function pi(t){return document.createComment(t)}function gi(t,e,n){t.insertBefore(e,n)}function mi(t,e){t.removeChild(e)}function vi(t,e){t.appendChild(e)}function bi(t){return t.parentNode}function yi(t){return t.nextSibling}function wi(t){return t.tagName}function ki(t,e){t.textContent=e}function _i(t,e){t.setAttribute(e,"")}var xi=Object.freeze({createElement:di,createElementNS:hi,createTextNode:fi,createComment:pi,insertBefore:gi,removeChild:mi,appendChild:vi,parentNode:bi,nextSibling:yi,tagName:wi,setTextContent:ki,setStyleScope:_i}),Ci={create:function(t,e){Si(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Si(t,!0),Si(e))},destroy:function(t){Si(t,!0)}};function Si(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,s=r.$refs;e?Array.isArray(s[n])?b(s[n],o):s[n]===o&&(s[n]=void 0):t.data.refInFor?Array.isArray(s[n])?s[n].indexOf(o)<0&&s[n].push(o):s[n]=[o]:s[n]=o}}var Ti=new yt("",{},[]),Oi=["create","activate","update","remove","destroy"];function Pi(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Ai(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Ai(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||ci(r)&&ci(o)}function Ei(t,e,n){var r,o,s={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(s[o]=r);return s}function Mi(t){var e,n,s={},l=t.modules,c=t.nodeOps;for(e=0;e<Oi.length;++e)for(s[Oi[e]]=[],n=0;n<l.length;++n)i(l[n][Oi[e]])&&s[Oi[e]].push(l[n][Oi[e]]);function u(t){return new yt(c.tagName(t).toLowerCase(),{},[],void 0,t)}function d(t,e){function n(){0===--n.listeners&&h(t)}return n.listeners=e,n}function h(t){var e=c.parentNode(t);i(e)&&c.removeChild(e,t)}function f(t,e,n,r,s,a,l){if(i(t.elm)&&i(a)&&(t=a[l]=xt(t)),t.isRootInsert=!s,!p(t,e,n,r)){var u=t.data,d=t.children,h=t.tag;i(h)?(t.elm=t.ns?c.createElementNS(t.ns,h):c.createElement(h,t),_(t),y(t,d,e),i(u)&&k(t,e),b(n,t.elm,r)):o(t.isComment)?(t.elm=c.createComment(t.text),b(n,t.elm,r)):(t.elm=c.createTextNode(t.text),b(n,t.elm,r))}}function p(t,e,n,r){var s=t.data;if(i(s)){var a=i(t.componentInstance)&&s.keepAlive;if(i(s=s.hook)&&i(s=s.init)&&s(t,!1),i(t.componentInstance))return g(t,e),b(n,t.elm,r),o(a)&&v(t,e,n,r),!0}}function g(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,w(t)?(k(t,e),_(t)):(Si(t),e.push(t))}function v(t,e,n,r){var o,a=t;while(a.componentInstance)if(a=a.componentInstance._vnode,i(o=a.data)&&i(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](Ti,a);e.push(a);break}b(n,t.elm,r)}function b(t,e,n){i(t)&&(i(n)?c.parentNode(n)===t&&c.insertBefore(t,e,n):c.appendChild(t,e))}function y(t,e,n){if(Array.isArray(e)){0;for(var r=0;r<e.length;++r)f(e[r],n,t.elm,null,!0,e,r)}else a(t.text)&&c.appendChild(t.elm,c.createTextNode(String(t.text)))}function w(t){while(t.componentInstance)t=t.componentInstance._vnode;return i(t.tag)}function k(t,n){for(var r=0;r<s.create.length;++r)s.create[r](Ti,t);e=t.data.hook,i(e)&&(i(e.create)&&e.create(Ti,t),i(e.insert)&&n.push(t))}function _(t){var e;if(i(e=t.fnScopeId))c.setStyleScope(t.elm,e);else{var n=t;while(n)i(e=n.context)&&i(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e),n=n.parent}i(e=En)&&e!==t.context&&e!==t.fnContext&&i(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e)}function x(t,e,n,r,i,o){for(;r<=i;++r)f(n[r],o,t,e,!1,n,r)}function C(t){var e,n,r=t.data;if(i(r))for(i(e=r.hook)&&i(e=e.destroy)&&e(t),e=0;e<s.destroy.length;++e)s.destroy[e](t);if(i(e=t.children))for(n=0;n<t.children.length;++n)C(t.children[n])}function S(t,e,n,r){for(;n<=r;++n){var o=e[n];i(o)&&(i(o.tag)?(T(o),C(o)):h(o.elm))}}function T(t,e){if(i(e)||i(t.data)){var n,r=s.remove.length+1;for(i(e)?e.listeners+=r:e=d(t.elm,r),i(n=t.componentInstance)&&i(n=n._vnode)&&i(n.data)&&T(n,e),n=0;n<s.remove.length;++n)s.remove[n](t,e);i(n=t.data.hook)&&i(n=n.remove)?n(t,e):e()}else h(t.elm)}function O(t,e,n,o,s){var a,l,u,d,h=0,p=0,g=e.length-1,m=e[0],v=e[g],b=n.length-1,y=n[0],w=n[b],k=!s;while(h<=g&&p<=b)r(m)?m=e[++h]:r(v)?v=e[--g]:Pi(m,y)?(A(m,y,o,n,p),m=e[++h],y=n[++p]):Pi(v,w)?(A(v,w,o,n,b),v=e[--g],w=n[--b]):Pi(m,w)?(A(m,w,o,n,b),k&&c.insertBefore(t,m.elm,c.nextSibling(v.elm)),m=e[++h],w=n[--b]):Pi(v,y)?(A(v,y,o,n,p),k&&c.insertBefore(t,v.elm,m.elm),v=e[--g],y=n[++p]):(r(a)&&(a=Ei(e,h,g)),l=i(y.key)?a[y.key]:P(y,e,h,g),r(l)?f(y,o,t,m.elm,!1,n,p):(u=e[l],Pi(u,y)?(A(u,y,o,n,p),e[l]=void 0,k&&c.insertBefore(t,u.elm,m.elm)):f(y,o,t,m.elm,!1,n,p)),y=n[++p]);h>g?(d=r(n[b+1])?null:n[b+1].elm,x(t,d,n,p,b,o)):p>b&&S(t,e,h,g)}function P(t,e,n,r){for(var o=n;o<r;o++){var s=e[o];if(i(s)&&Pi(t,s))return o}}function A(t,e,n,a,l,u){if(t!==e){i(e.elm)&&i(a)&&(e=a[l]=xt(e));var d=e.elm=t.elm;if(o(t.isAsyncPlaceholder))i(e.asyncFactory.resolved)?I(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))e.componentInstance=t.componentInstance;else{var h,f=e.data;i(f)&&i(h=f.hook)&&i(h=h.prepatch)&&h(t,e);var p=t.children,g=e.children;if(i(f)&&w(e)){for(h=0;h<s.update.length;++h)s.update[h](t,e);i(h=f.hook)&&i(h=h.update)&&h(t,e)}r(e.text)?i(p)&&i(g)?p!==g&&O(d,p,g,n,u):i(g)?(i(t.text)&&c.setTextContent(d,""),x(d,null,g,0,g.length-1,n)):i(p)?S(d,p,0,p.length-1):i(t.text)&&c.setTextContent(d,""):t.text!==e.text&&c.setTextContent(d,e.text),i(f)&&i(h=f.hook)&&i(h=h.postpatch)&&h(t,e)}}}function E(t,e,n){if(o(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var M=m("attrs,class,staticClass,staticStyle,key");function I(t,e,n,r){var s,a=e.tag,l=e.data,c=e.children;if(r=r||l&&l.pre,e.elm=t,o(e.isComment)&&i(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(i(l)&&(i(s=l.hook)&&i(s=s.init)&&s(e,!0),i(s=e.componentInstance)))return g(e,n),!0;if(i(a)){if(i(c))if(t.hasChildNodes())if(i(s=l)&&i(s=s.domProps)&&i(s=s.innerHTML)){if(s!==t.innerHTML)return!1}else{for(var u=!0,d=t.firstChild,h=0;h<c.length;h++){if(!d||!I(d,c[h],n,r)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else y(e,c,n);if(i(l)){var f=!1;for(var p in l)if(!M(p)){f=!0,k(e,n);break}!f&&l["class"]&&me(l["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,a){if(!r(e)){var l=!1,d=[];if(r(t))l=!0,f(e,d);else{var h=i(t.nodeType);if(!h&&Pi(t,e))A(t,e,d,null,null,a);else{if(h){if(1===t.nodeType&&t.hasAttribute(F)&&(t.removeAttribute(F),n=!0),o(n)&&I(t,e,d))return E(e,d,!0),t;t=u(t)}var p=t.elm,g=c.parentNode(p);if(f(e,d,p._leaveCb?null:g,c.nextSibling(p)),i(e.parent)){var m=e.parent,v=w(e);while(m){for(var b=0;b<s.destroy.length;++b)s.destroy[b](m);if(m.elm=e.elm,v){for(var y=0;y<s.create.length;++y)s.create[y](Ti,m);var k=m.data.hook.insert;if(k.merged)for(var _=1;_<k.fns.length;_++)k.fns[_]()}else Si(m);m=m.parent}}i(g)?S(g,[t],0,0):i(t.tag)&&C(t)}}return E(e,d,l),e.elm}i(t)&&C(t)}}var Ii={create:Ni,update:Ni,destroy:function(t){Ni(t,Ti)}};function Ni(t,e){(t.data.directives||e.data.directives)&&ji(t,e)}function ji(t,e){var n,r,i,o=t===Ti,s=e===Ti,a=Li(t.data.directives,t.context),l=Li(e.data.directives,e.context),c=[],u=[];for(n in l)r=a[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Ri(i,"update",e,t),i.def&&i.def.componentUpdated&&u.push(i)):(Ri(i,"bind",e,t),i.def&&i.def.inserted&&c.push(i));if(c.length){var d=function(){for(var n=0;n<c.length;n++)Ri(c[n],"inserted",e,t)};o?ke(e,"insert",d):d()}if(u.length&&ke(e,"postpatch",function(){for(var n=0;n<u.length;n++)Ri(u[n],"componentUpdated",e,t)}),!o)for(n in a)l[n]||Ri(a[n],"unbind",t,t,s)}var Di=Object.create(null);function Li(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)r=t[n],r.modifiers||(r.modifiers=Di),i[Bi(r)]=r,r.def=Kt(e.$options,"directives",r.name,!0);return i}function Bi(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Ri(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(xs){ee(xs,n.context,"directive "+t.name+" "+e+" hook")}}var Fi=[Ci,Ii];function $i(t,e){var n=e.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(t.data.attrs)||!r(e.data.attrs))){var o,s,a,l=e.elm,c=t.data.attrs||{},u=e.data.attrs||{};for(o in i(u.__ob__)&&(u=e.data.attrs=M({},u)),u)s=u[o],a=c[o],a!==s&&Vi(l,o,s);for(o in(tt||nt)&&u.value!==c.value&&Vi(l,"value",u.value),c)r(u[o])&&(qr(o)?l.removeAttributeNS(Ur,Gr(o)):Vr(o)||l.removeAttribute(o))}}function Vi(t,e,n){t.tagName.indexOf("-")>-1?zi(t,e,n):Wr(e)?Yr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Vr(e)?t.setAttribute(e,Hr(e,n)):qr(e)?Yr(n)?t.removeAttributeNS(Ur,Gr(e)):t.setAttributeNS(Ur,e,n):zi(t,e,n)}function zi(t,e,n){if(Yr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Hi={create:$i,update:$i};function Wi(t,e){var n=e.elm,o=e.data,s=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(s)||r(s.staticClass)&&r(s.class)))){var a=Kr(e),l=n._transitionClasses;i(l)&&(a=Qr(a,Zr(l))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var Ui,qi={create:Wi,update:Wi},Gi="__r",Yi="__c";function Ki(t){if(i(t[Gi])){var e=tt?"change":"input";t[e]=[].concat(t[Gi],t[e]||[]),delete t[Gi]}i(t[Yi])&&(t.change=[].concat(t[Yi],t.change||[]),delete t[Yi])}function Xi(t,e,n){var r=Ui;return function i(){var o=e.apply(null,arguments);null!==o&&Zi(t,i,n,r)}}var Ji=se&&!(it&&Number(it[1])<=53);function Qi(t,e,n,r){if(Ji){var i=Gn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Ui.addEventListener(t,e,st?{capture:n,passive:r}:n)}function Zi(t,e,n,r){(r||Ui).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Ui=e.elm,Ki(n),we(n,i,Qi,Zi,Xi,e.context),Ui=void 0}}var eo,no={create:to,update:to};function ro(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,s=e.elm,a=t.data.domProps||{},l=e.data.domProps||{};for(n in i(l.__ob__)&&(l=e.data.domProps=M({},l)),a)n in l||(s[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=o;var c=r(o)?"":String(o);io(s,c)&&(s.value=c)}else if("innerHTML"===n&&ii(s.tagName)&&r(s.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+o+"</svg>";var u=eo.firstChild;while(s.firstChild)s.removeChild(s.firstChild);while(u.firstChild)s.appendChild(u.firstChild)}else if(o!==a[n])try{s[n]=o}catch(xs){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||so(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(xs){}return n&&t.value!==e}function so(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return g(n)!==g(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var ao={create:ro,update:ro},lo=k(function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e});function co(t){var e=uo(t.style);return t.staticStyle?M(t.staticStyle,e):e}function uo(t){return Array.isArray(t)?I(t):"string"===typeof t?lo(t):t}function ho(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=co(i.data))&&M(r,n)}(n=co(t.data))&&M(r,n);var o=t;while(o=o.parent)o.data&&(n=co(o.data))&&M(r,n);return r}var fo,po=/^--/,go=/\s*!important$/,mo=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if(go.test(n))t.style.setProperty(T(e),n.replace(go,""),"important");else{var r=bo(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},vo=["Webkit","Moz","ms"],bo=k(function(t){if(fo=fo||document.createElement("div").style,t=x(t),"filter"!==t&&t in fo)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<vo.length;n++){var r=vo[n]+e;if(r in fo)return r}});function yo(t,e){var n=e.data,o=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var s,a,l=e.elm,c=o.staticStyle,u=o.normalizedStyle||o.style||{},d=c||u,h=uo(e.data.style)||{};e.data.normalizedStyle=i(h.__ob__)?M({},h):h;var f=ho(e,!0);for(a in d)r(f[a])&&mo(l,a,"");for(a in f)s=f[a],s!==d[a]&&mo(l,a,null==s?"":s)}}var wo={create:yo,update:yo},ko=/\s+/;function _o(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(ko).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function xo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(ko).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Co(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&M(e,So(t.name||"v")),M(e,t),e}return"string"===typeof t?So(t):void 0}}var So=k(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),To=X&&!et,Oo="transition",Po="animation",Ao="transition",Eo="transitionend",Mo="animation",Io="animationend";To&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ao="WebkitTransition",Eo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Mo="WebkitAnimation",Io="webkitAnimationEnd"));var No=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function jo(t){No(function(){No(t)})}function Do(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),_o(t,e))}function Lo(t,e){t._transitionClasses&&b(t._transitionClasses,e),xo(t,e)}function Bo(t,e,n){var r=Fo(t,e),i=r.type,o=r.timeout,s=r.propCount;if(!i)return n();var a=i===Oo?Eo:Io,l=0,c=function(){t.removeEventListener(a,u),n()},u=function(e){e.target===t&&++l>=s&&c()};setTimeout(function(){l<s&&c()},o+1),t.addEventListener(a,u)}var Ro=/\b(transform|all)(,|$)/;function Fo(t,e){var n,r=window.getComputedStyle(t),i=(r[Ao+"Delay"]||"").split(", "),o=(r[Ao+"Duration"]||"").split(", "),s=$o(i,o),a=(r[Mo+"Delay"]||"").split(", "),l=(r[Mo+"Duration"]||"").split(", "),c=$o(a,l),u=0,d=0;e===Oo?s>0&&(n=Oo,u=s,d=o.length):e===Po?c>0&&(n=Po,u=c,d=l.length):(u=Math.max(s,c),n=u>0?s>c?Oo:Po:null,d=n?n===Oo?o.length:l.length:0);var h=n===Oo&&Ro.test(r[Ao+"Property"]);return{type:n,timeout:u,propCount:d,hasTransform:h}}function $o(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return Vo(e)+Vo(t[n])}))}function Vo(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function zo(t,e){var n=t.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=Co(t.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var s=o.css,a=o.type,c=o.enterClass,u=o.enterToClass,d=o.enterActiveClass,h=o.appearClass,f=o.appearToClass,p=o.appearActiveClass,m=o.beforeEnter,v=o.enter,b=o.afterEnter,y=o.enterCancelled,w=o.beforeAppear,k=o.appear,_=o.afterAppear,x=o.appearCancelled,C=o.duration,S=En,T=En.$vnode;while(T&&T.parent)S=T.context,T=T.parent;var O=!S._isMounted||!t.isRootInsert;if(!O||k||""===k){var P=O&&h?h:c,A=O&&p?p:d,E=O&&f?f:u,M=O&&w||m,I=O&&"function"===typeof k?k:v,N=O&&_||b,j=O&&x||y,D=g(l(C)?C.enter:C);0;var L=!1!==s&&!et,B=Uo(I),F=n._enterCb=R(function(){L&&(Lo(n,E),Lo(n,A)),F.cancelled?(L&&Lo(n,P),j&&j(n)):N&&N(n),n._enterCb=null});t.data.show||ke(t,"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),I&&I(n,F)}),M&&M(n),L&&(Do(n,P),Do(n,A),jo(function(){Lo(n,P),F.cancelled||(Do(n,E),B||(Wo(D)?setTimeout(F,D):Bo(n,a,F)))})),t.data.show&&(e&&e(),I&&I(n,F)),L||B||F()}}}function Ho(t,e){var n=t.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=Co(t.data.transition);if(r(o)||1!==n.nodeType)return e();if(!i(n._leaveCb)){var s=o.css,a=o.type,c=o.leaveClass,u=o.leaveToClass,d=o.leaveActiveClass,h=o.beforeLeave,f=o.leave,p=o.afterLeave,m=o.leaveCancelled,v=o.delayLeave,b=o.duration,y=!1!==s&&!et,w=Uo(f),k=g(l(b)?b.leave:b);0;var _=n._leaveCb=R(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),y&&(Lo(n,u),Lo(n,d)),_.cancelled?(y&&Lo(n,c),m&&m(n)):(e(),p&&p(n)),n._leaveCb=null});v?v(x):x()}function x(){_.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),h&&h(n),y&&(Do(n,c),Do(n,d),jo(function(){Lo(n,c),_.cancelled||(Do(n,u),w||(Wo(k)?setTimeout(_,k):Bo(n,a,_)))})),f&&f(n,_),y||w||_())}}function Wo(t){return"number"===typeof t&&!isNaN(t)}function Uo(t){if(r(t))return!1;var e=t.fns;return i(e)?Uo(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function qo(t,e){!0!==e.data.show&&zo(e)}var Go=X?{create:qo,activate:qo,remove:function(t,e){!0!==t.data.show?Ho(t,e):e()}}:{},Yo=[Hi,qi,no,ao,wo,Go],Ko=Yo.concat(Fi),Xo=Mi({nodeOps:xi,modules:Ko});et&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&is(t,"input")});var Jo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?ke(n,"postpatch",function(){Jo.componentUpdated(t,e,n)}):Qo(t,e,n.context),t._vOptions=[].map.call(t.options,es)):("textarea"===n.tag||ci(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",ns),t.addEventListener("compositionend",rs),t.addEventListener("change",rs),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Qo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,es);if(i.some(function(t,e){return!L(t,r[e])})){var o=t.multiple?e.value.some(function(t){return ts(t,i)}):e.value!==e.oldValue&&ts(e.value,i);o&&is(t,"change")}}}};function Qo(t,e,n){Zo(t,e,n),(tt||nt)&&setTimeout(function(){Zo(t,e,n)},0)}function Zo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,s,a=0,l=t.options.length;a<l;a++)if(s=t.options[a],i)o=B(r,es(s))>-1,s.selected!==o&&(s.selected=o);else if(L(es(s),r))return void(t.selectedIndex!==a&&(t.selectedIndex=a));i||(t.selectedIndex=-1)}}function ts(t,e){return e.every(function(e){return!L(e,t)})}function es(t){return"_value"in t?t._value:t.value}function ns(t){t.target.composing=!0}function rs(t){t.target.composing&&(t.target.composing=!1,is(t.target,"input"))}function is(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function os(t){return!t.componentInstance||t.data&&t.data.transition?t:os(t.componentInstance._vnode)}var ss={bind:function(t,e,n){var r=e.value;n=os(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,zo(n,function(){t.style.display=o})):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=os(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?zo(n,function(){t.style.display=t.__vOriginalDisplay}):Ho(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},as={model:Jo,show:ss},ls={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function cs(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?cs(xn(e.children)):t}function us(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[x(o)]=i[o];return e}function ds(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function hs(t){while(t=t.parent)if(t.data.transition)return!0}function fs(t,e){return e.key===t.key&&e.tag===t.tag}var ps=function(t){return t.tag||_n(t)},gs=function(t){return"show"===t.name},ms={name:"transition",props:ls,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(ps),n.length)){0;var r=this.mode;0;var i=n[0];if(hs(this.$vnode))return i;var o=cs(i);if(!o)return i;if(this._leaving)return ds(t,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=us(this),c=this._vnode,u=cs(c);if(o.data.directives&&o.data.directives.some(gs)&&(o.data.show=!0),u&&u.data&&!fs(o,u)&&!_n(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=M({},l);if("out-in"===r)return this._leaving=!0,ke(d,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),ds(t,i);if("in-out"===r){if(_n(o))return c;var h,f=function(){h()};ke(l,"afterEnter",f),ke(l,"enterCancelled",f),ke(d,"delayLeave",function(t){h=t})}}return i}}},vs=M({tag:String,moveClass:String},ls);delete vs.mode;var bs={props:vs,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Mn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],s=us(this),a=0;a<i.length;a++){var l=i[a];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=s;else;}if(r){for(var c=[],u=[],d=0;d<r.length;d++){var h=r[d];h.data.transition=s,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?c.push(h):u.push(h)}this.kept=t(e,null,c),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(ys),t.forEach(ws),t.forEach(ks),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,r=n.style;Do(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Eo,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Eo,t),n._moveCb=null,Lo(n,e))})}}))},methods:{hasMove:function(t,e){if(!To)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){xo(n,t)}),_o(n,e),n.style.display="none",this.$el.appendChild(n);var r=Fo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function ys(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ws(t){t.data.newPos=t.elm.getBoundingClientRect()}function ks(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var _s={Transition:ms,TransitionGroup:bs};xr.config.mustUseProp=$r,xr.config.isReservedTag=oi,xr.config.isReservedAttr=Rr,xr.config.getTagNamespace=si,xr.config.isUnknownElement=li,M(xr.options.directives,as),M(xr.options.components,_s),xr.prototype.__patch__=X?Xo:N,xr.prototype.$mount=function(t,e){return t=t&&X?ui(t):void 0,jn(this,t,e)},X&&setTimeout(function(){z.devtools&&ct&&ct.emit("init",xr)},0),e["default"]=xr}.call(this,n("c8ba"))},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))};a.store=r},"2b88":function(t,e,n){"use strict";
/*! 
  * portal-vue © Thorsten Lünborg, 2019 
  * 
  * Version: 2.1.6
  * 
  * LICENCE: MIT 
  * 
  * https://github.com/linusborg/portal-vue
  * 
 */function r(t){return t&&"object"===typeof t&&"default"in t?t["default"]:t}Object.defineProperty(e,"__esModule",{value:!0});var i=r(n("2b0e"));function o(t){return o="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},o(t)}function s(t){return a(t)||l(t)||c()}function a(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function l(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var u="undefined"!==typeof window;function d(t){return Array.isArray(t)||"object"===o(t)?Object.freeze(t):t}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce(function(t,n){var r=n.passengers[0],i="function"===typeof r?r(e):n.passengers;return t.concat(i)},[])}function f(t,e){return t.map(function(t,e){return[e,t]}).sort(function(t,n){return e(t[1],n[1])||t[0]-n[0]}).map(function(t){return t[1]})}function p(t,e){return e.reduce(function(e,n){return t.hasOwnProperty(n)&&(e[n]=t[n]),e},{})}var g={},m={},v={},b=i.extend({data:function(){return{transports:g,targets:m,sources:v,trackInstances:u}},methods:{open:function(t){if(u){var e=t.to,n=t.from,r=t.passengers,o=t.order,s=void 0===o?1/0:o;if(e&&n&&r){var a={to:e,from:n,passengers:d(r),order:s},l=Object.keys(this.transports);-1===l.indexOf(e)&&i.set(this.transports,e,[]);var c=this.$_getTransportIndex(a),h=this.transports[e].slice(0);-1===c?h.push(a):h[c]=a,this.transports[e]=f(h,function(t,e){return t.order-e.order})}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.to,r=t.from;if(n&&(r||!1!==e)&&this.transports[n])if(e)this.transports[n]=[];else{var i=this.$_getTransportIndex(t);if(i>=0){var o=this.transports[n].slice(0);o.splice(i,1),this.transports[n]=o}}},registerTarget:function(t,e,n){u&&(this.trackInstances&&!n&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,n){u&&(this.trackInstances&&!n&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,n=t.from;for(var r in this.transports[e])if(this.transports[e][r].from===n)return+r;return-1}}}),y=new b(g),w=1,k=i.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(w++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick(function(){y.registerSource(t.name,t)})},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){y.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};y.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"===typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:s(t),order:this.order};y.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(n,[this.normalizeOwnChildren(e)]):this.slim?t():t(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),_=i.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:y.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick(function(){y.registerTarget(t.name,t)})},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){y.unregisterTarget(e),y.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick(function(){t.firstRender=!1})},beforeDestroy:function(){y.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return h(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),n=this.children(),r=this.transition||this.tag;return e?n[0]:this.slim&&!r?t():t(r,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),x=0,C=["disabled","name","order","slim","slotProps","tag","to"],S=["multiple","transition"],T=i.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(x++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!==typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(y.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n        Aborting because 'bail: true' is set")):this.portalTarget=y.targets[e.name];else{var n=e.append;if(n){var r="string"===typeof n?n:"DIV",i=document.createElement(r);t.appendChild(i),t=i}var o=p(this.$props,S);o.slim=this.targetSlim,o.tag=this.targetTag,o.slotProps=this.targetSlotProps,o.name=this.to,this.portalTarget=new _({el:t,parent:this.$parent||this,propsData:o})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=p(this.$props,C);return t(k,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var n=this.$scopedSlots.manual({to:this.to});return Array.isArray(n)&&(n=n[0]),n||t()}});function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",k),t.component(e.portalTargetName||"PortalTarget",_),t.component(e.MountingPortalName||"MountingPortal",T)}var P={install:O};e.default=P,e.Portal=k,e.PortalTarget=_,e.MountingPortal=T,e.Wormhole=y},"2d00":function(t,e){t.exports=!1},"2d1f":function(t,e,n){t.exports=n("b606")},"2d83":function(t,e,n){"use strict";var r=n("387f");t.exports=function(t,e,n,i,o){var s=new Error(t);return r(s,e,n,i,o)}},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f62":function(t,e,n){"use strict";
/**
 * vuex v3.1.0
 * (c) 2019 Evan You
 * @license MIT
 */
function r(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}n.d(e,"b",function(){return M});var i="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t){i&&(t._devtoolHook=i,i.emit("vuex:init",t),i.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){i.emit("vuex:mutation",t,e)}))}function s(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function a(t){return null!==t&&"object"===typeof t}function l(t){return t&&"function"===typeof t.then}var c=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},c.prototype.addChild=function(t,e){this._children[t]=e},c.prototype.removeChild=function(t){delete this._children[t]},c.prototype.getChild=function(t){return this._children[t]},c.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},c.prototype.forEachChild=function(t){s(this._children,t)},c.prototype.forEachGetter=function(t){this._rawModule.getters&&s(this._rawModule.getters,t)},c.prototype.forEachAction=function(t){this._rawModule.actions&&s(this._rawModule.actions,t)},c.prototype.forEachMutation=function(t){this._rawModule.mutations&&s(this._rawModule.mutations,t)},Object.defineProperties(c.prototype,u);var d=function(t){this.register([],t,!1)};function h(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;h(t.concat(r),e.getChild(r),n.modules[r])}}d.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},d.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},d.prototype.update=function(t){h([],this.root,t)},d.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new c(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&s(e.modules,function(e,i){r.register(t.concat(i),e,n)})},d.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var f;var p=function(t){var e=this;void 0===t&&(t={}),!f&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new f;var i=this,s=this,a=s.dispatch,l=s.commit;this.dispatch=function(t,e){return a.call(i,t,e)},this.commit=function(t,e,n){return l.call(i,t,e,n)},this.strict=r;var c=this._modules.root.state;y(this,c,[],this._modules.root),b(this,c),n.forEach(function(t){return t(e)});var u=void 0!==t.devtools?t.devtools:f.config.devtools;u&&o(this)},g={state:{configurable:!0}};function m(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function v(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;y(t,n,[],t._modules.root,!0),b(t,n,e)}function b(t,e,n){var r=t._vm;t.getters={};var i=t._wrappedGetters,o={};s(i,function(e,n){o[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var a=f.config.silent;f.config.silent=!0,t._vm=new f({data:{$$state:e},computed:o}),f.config.silent=a,t.strict&&S(t),r&&(n&&t._withCommit(function(){r._data.$$state=null}),f.nextTick(function(){return r.$destroy()}))}function y(t,e,n,r,i){var o=!n.length,s=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[s]=r),!o&&!i){var a=T(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit(function(){f.set(a,l,r.state)})}var c=r.context=w(t,s,n);r.forEachMutation(function(e,n){var r=s+n;_(t,r,e,c)}),r.forEachAction(function(e,n){var r=e.root?n:s+n,i=e.handler||e;x(t,r,i,c)}),r.forEachGetter(function(e,n){var r=s+n;C(t,r,e,c)}),r.forEachChild(function(r,o){y(t,e,n.concat(o),r,i)})}function w(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=O(n,r,i),s=o.payload,a=o.options,l=o.type;return a&&a.root||(l=e+l),t.dispatch(l,s)},commit:r?t.commit:function(n,r,i){var o=O(n,r,i),s=o.payload,a=o.options,l=o.type;a&&a.root||(l=e+l),t.commit(l,s,a)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return k(t,e)}},state:{get:function(){return T(t.state,n)}}}),i}function k(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach(function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}}),n}function _(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push(function(e){n.call(t,r.state,e)})}function x(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push(function(e,i){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return l(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):o})}function C(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function S(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}function T(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function O(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function P(t){f&&t===f||(f=t,r(f))}g.state.get=function(){return this._vm._data.$$state},g.state.set=function(t){0},p.prototype.commit=function(t,e,n){var r=this,i=O(t,e,n),o=i.type,s=i.payload,a=(i.options,{type:o,payload:s}),l=this._mutations[o];l&&(this._withCommit(function(){l.forEach(function(t){t(s)})}),this._subscribers.forEach(function(t){return t(a,r.state)}))},p.prototype.dispatch=function(t,e){var n=this,r=O(t,e),i=r.type,o=r.payload,s={type:i,payload:o},a=this._actions[i];if(a){try{this._actionSubscribers.filter(function(t){return t.before}).forEach(function(t){return t.before(s,n.state)})}catch(c){0}var l=a.length>1?Promise.all(a.map(function(t){return t(o)})):a[0](o);return l.then(function(t){try{n._actionSubscribers.filter(function(t){return t.after}).forEach(function(t){return t.after(s,n.state)})}catch(c){0}return t})}},p.prototype.subscribe=function(t){return m(t,this._subscribers)},p.prototype.subscribeAction=function(t){var e="function"===typeof t?{before:t}:t;return m(e,this._actionSubscribers)},p.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},p.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},p.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),y(this,this.state,t,this._modules.get(t),n.preserveState),b(this,this.state)},p.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=T(e.state,t.slice(0,-1));f.delete(n,t[t.length-1])}),v(this)},p.prototype.hotUpdate=function(t){this._modules.update(t),v(this,!0)},p.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(p.prototype,g);var A=D(function(t,e){var n={};return j(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=L(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0}),n}),E=D(function(t,e){var n={};return j(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=L(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n}),M=D(function(t,e){var n={};return j(e).forEach(function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||L(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0}),n}),I=D(function(t,e){var n={};return j(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=L(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n}),N=function(t){return{mapState:A.bind(null,t),mapGetters:M.bind(null,t),mapMutations:E.bind(null,t),mapActions:I.bind(null,t)}};function j(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function D(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function L(t,e,n){var r=t._modulesNamespaceMap[n];return r}var B={Store:p,install:P,version:"3.1.0",mapState:A,mapMutations:E,mapGetters:M,mapActions:I,createNamespacedHelpers:N};e["a"]=B},"2fdb":function(t,e,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},3024:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"30b5":function(t,e,n){"use strict";var r=n("c532");function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var s=[];r.forEach(e,function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))}))}),o=s.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},"30f1":function(t,e,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),s=n("35e8"),a=n("481b"),l=n("8f60"),c=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};t.exports=function(t,e,n,v,b,y,w){l(n,e,v);var k,_,x,C=function(t){if(!h&&t in P)return P[t];switch(t){case p:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",T=b==g,O=!1,P=t.prototype,A=P[d]||P[f]||b&&P[b],E=A||C(b),M=b?T?C("entries"):E:void 0,I="Array"==e&&P.entries||A;if(I&&(x=u(I.call(new t)),x!==Object.prototype&&x.next&&(c(x,S,!0),r||"function"==typeof x[d]||s(x,d,m))),T&&A&&A.name!==g&&(O=!0,E=function(){return A.call(this)}),r&&!w||!h&&!O&&P[d]||s(P,d,E),a[e]=E,a[S]=m,b)if(k={values:T?E:C(g),keys:y?E:C(p),entries:M},w)for(_ in k)_ in P||o(P,_,k[_]);else i(i.P+i.F*(h||O),e,k);return k}},"31f4":function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"32a6":function(t,e,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",function(){return function(t){return i(r(t))}})},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var r=n("e53d").document;t.exports=r&&r.documentElement},"335c":function(t,e,n){var r=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"33a4":function(t,e,n){var r=n("84f2"),i=n("2b4c")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var r=n("d9f6"),i=n("aebd");t.exports=n("8e60")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var r=n("335c"),i=n("25eb");t.exports=function(t){return r(i(t))}},3702:function(t,e,n){var r=n("481b"),i=n("5168")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},3730:function(t,e,n){
/*!
 * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md.
 */
!function(e,n){t.exports=n()}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(1))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";n.r(e);var r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},i=n(0),o="object"==typeof self&&self&&self.Object===Object&&self,s=i.a||o||Function("return this")(),a=function(){return s.Date.now()},l=s.Symbol,c=Object.prototype,u=c.hasOwnProperty,d=c.toString,h=l?l.toStringTag:void 0,f=function(t){var e=u.call(t,h),n=t[h];try{t[h]=void 0;var r=!0}catch(t){}var i=d.call(t);return r&&(e?t[h]=n:delete t[h]),i},p=Object.prototype.toString,g=function(t){return p.call(t)},m="[object Null]",v="[object Undefined]",b=l?l.toStringTag:void 0,y=function(t){return null==t?void 0===t?v:m:b&&b in Object(t)?f(t):g(t)},w=function(t){return null!=t&&"object"==typeof t},k="[object Symbol]",_=function(t){return"symbol"==typeof t||w(t)&&y(t)==k},x=NaN,C=/^\s+|\s+$/g,S=/^[-+]0x[0-9a-f]+$/i,T=/^0b[01]+$/i,O=/^0o[0-7]+$/i,P=parseInt,A=function(t){if("number"==typeof t)return t;if(_(t))return x;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(C,"");var n=T.test(t);return n||O.test(t)?P(t.slice(2),n?2:8):S.test(t)?x:+t},E="Expected a function",M=Math.max,I=Math.min,N=function(t,e,n){var i,o,s,l,c,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError(E);function g(e){var n=i,r=o;return i=o=void 0,d=e,l=t.apply(r,n)}function m(t){var n=t-u;return void 0===u||n>=e||n<0||f&&t-d>=s}function v(){var t=a();if(m(t))return b(t);c=setTimeout(v,function(t){var n=e-(t-u);return f?I(n,s-(t-d)):n}(t))}function b(t){return c=void 0,p&&i?g(t):(i=o=void 0,l)}function y(){var t=a(),n=m(t);if(i=arguments,o=this,u=t,n){if(void 0===c)return function(t){return d=t,c=setTimeout(v,e),h?g(t):l}(u);if(f)return c=setTimeout(v,e),g(u)}return void 0===c&&(c=setTimeout(v,e)),l}return e=A(e)||0,r(n)&&(h=!!n.leading,s=(f="maxWait"in n)?M(A(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==c&&clearTimeout(c),d=0,i=u=o=c=void 0},y.flush=function(){return void 0===c?l:b(a())},y},j={name:"ckeditor",render(t){return t(this.tagName,{domProps:{innerHTML:this.value||""}})},props:{editor:{type:Function,default:null},value:{type:String,default:""},config:{type:Object,default:()=>({})},tagName:{type:String,default:"div"},disabled:{type:Boolean,default:!1}},data:()=>({instance:null,$_lastEditorData:{type:String,default:""}}),mounted(){this.editor.create(this.$el,this.config).then(t=>{this.instance=t,t.isReadOnly=this.disabled,this.$_setUpEditorEvents(),this.$emit("ready",t)}).catch(t=>{console.error(t)})},beforeDestroy(){this.instance&&(this.instance.destroy(),this.instance=null),this.$emit("destroy",this.instance)},watch:{value(t,e){t!==e&&t!==this.$_lastEditorData&&this.instance.setData(t)},disabled(t){this.instance.isReadOnly=t}},methods:{$_setUpEditorEvents(){const t=this.instance;t.model.document.on("change:data",N(e=>{const n=this.$_lastEditorData=t.getData();this.$emit("input",n,e,t)},300)),t.editing.view.document.on("focus",e=>{this.$emit("focus",e,t)}),t.editing.view.document.on("blur",e=>{this.$emit("blur",e,t)})}}};const D={install(t){t.component("ckeditor",j)},component:j};e.default=D}]).default})},3846:function(t,e,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"386d":function(t,e,n){"use strict";var r=n("cb7c"),i=n("83a1"),o=n("5f1b");n("214f")("search",1,function(t,e,n,s){return[function(n){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var a=r(t),l=String(this),c=a.lastIndex;i(c,0)||(a.lastIndex=0);var u=o(a,l);return i(a.lastIndex,c)||(a.lastIndex=c),null===u?-1:u.index}]})},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t}},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},3934:function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},"3a38":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"3b8d":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("795b"),i=n.n(r);function o(t,e,n,r,o,s,a){try{var l=t[s](a),c=l.value}catch(u){return void n(u)}l.done?e(c):i.a.resolve(c).then(r,o)}function s(t){return function(){var e=this,n=arguments;return new i.a(function(r,i){var s=t.apply(e,n);function a(t){o(s,r,i,a,l,"next",t)}function l(t){o(s,r,i,a,l,"throw",t)}a(void 0)})}}},"3c11":function(t,e,n){"use strict";var r=n("63b6"),i=n("584a"),o=n("e53d"),s=n("f201"),a=n("cd78");r(r.P+r.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},"40c3":function(t,e,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},4178:function(t,e,n){var r,i,o,s=n("d864"),a=n("3024"),l=n("32fc"),c=n("1ec9"),u=n("e53d"),d=u.process,h=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,g=u.Dispatch,m=0,v={},b="onreadystatechange",y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},w=function(t){y.call(t.data)};h&&f||(h=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return v[++m]=function(){a("function"==typeof t?t:Function(t),e)},r(m),m},f=function(t){delete v[t]},"process"==n("6b4c")(d)?r=function(t){d.nextTick(s(y,t,1))}:g&&g.now?r=function(t){g.now(s(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=w,r=s(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",w,!1)):r=b in c("script")?function(t){l.appendChild(c("script"))[b]=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:h,clear:f}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},4362:function(t,e,n){e.nextTick=function(t){setTimeout(t,0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"43fc":function(t,e,n){"use strict";var r=n("63b6"),i=n("656e"),o=n("4439");r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},4439:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"454f":function(t,e,n){n("46a7");var r=n("584a").Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"45f2":function(t,e,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"467f":function(t,e,n){"use strict";var r=n("2d83");t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"469f":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("7d7b")},"46a7":function(t,e,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47ee":function(t,e,n){var r=n("c3a1"),i=n("9aa9"),o=n("355d");t.exports=function(t){var e=r(t),n=i.f;if(n){var s,a=n(t),l=o.f,c=0;while(a.length>c)l.call(t,s=a[c++])&&e.push(s)}return e}},"481b":function(t,e){t.exports={}},4917:function(t,e,n){"use strict";var r=n("cb7c"),i=n("9def"),o=n("0390"),s=n("5f1b");n("214f")("match",1,function(t,e,n,a){return[function(n){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var l=r(t),c=String(this);if(!l.global)return s(l,c);var u=l.unicode;l.lastIndex=0;var d,h=[],f=0;while(null!==(d=s(l,c))){var p=String(d[0]);h[f]=p,""===p&&(l.lastIndex=o(c,i(l.lastIndex),u)),f++}return 0===f?null:h}]})},"4a59":function(t,e,n){var r=n("9b43"),i=n("1fa8"),o=n("33a4"),s=n("cb7c"),a=n("9def"),l=n("27ee"),c={},u={};e=t.exports=function(t,e,n,d,h){var f,p,g,m,v=h?function(){return t}:l(t),b=r(n,d,e?2:1),y=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(f=a(t.length);f>y;y++)if(m=e?b(s(p=t[y])[0],p[1]):b(t[y]),m===c||m===u)return m}else for(g=v.call(t);!(p=g.next()).done;)if(m=i(g,b,p.value,e),m===c||m===u)return m};e.BREAK=c,e.RETURN=u},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"4c95":function(t,e,n){"use strict";var r=n("e53d"),i=n("584a"),o=n("d9f6"),s=n("8e60"),a=n("5168")("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},"4ee1":function(t,e,n){var r=n("5168")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(s){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(s){}return n}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5147:function(t,e,n){var r=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(i){}}return!0}},5168:function(t,e,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,s="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))};a.store=r},"520a":function(t,e,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,s=i,a="lastIndex",l=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t[a]||0!==e[a]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(s=function(t){var e,n,s,u,d=this;return c&&(n=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),l&&(e=d[a]),s=i.call(d,t),l&&s&&(d[a]=d.global?s.index+s[0].length:e),c&&s&&s.length>1&&o.call(s[0],n,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)}),s}),t.exports=s},5270:function(t,e,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),s=n("2444"),a=n("d925"),l=n("e683");function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){c(t),t.baseURL&&!a(t.url)&&(t.url=l(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var e=t.adapter||s.adapter;return e(t).then(function(e){return c(t),e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return o(e)||(c(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"53e2":function(t,e,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"53fe":function(t,e,n){var r,i;
/**!
 * Sortable
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */
/**!
 * Sortable
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */
(function(o){"use strict";r=o,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i)})(function(){"use strict";if("undefined"===typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var t,e,n,r,i,o,s,a,l,c,u,d,h,f,p,g,m,v,b,y,w,k,_,x,C,S,T=[],O=!1,P=!1,A=!1,E=[],M=!1,I=!1,N=[],j=/\s+/g,D="Sortable"+(new Date).getTime(),L=window,B=L.document,R=L.parseInt,F=L.setTimeout,$=L.jQuery||L.Zepto,V=L.Polymer,z={capture:!1,passive:!1},H=!!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie|iemobile)/i),W=!!navigator.userAgent.match(/Edge/i),U=!!navigator.userAgent.match(/firefox/i),q=!(!navigator.userAgent.match(/safari/i)||navigator.userAgent.match(/chrome/i)||navigator.userAgent.match(/android/i)),G=!!navigator.userAgent.match(/iP(ad|od|hone)/i),Y=G,K=W||H?"cssFloat":"float",X="draggable"in B.createElement("div"),J=function(){if(H)return!1;var t=B.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}(),Q=!1,Z=!1,tt=Math.abs,et=Math.min,nt=Math.max,rt=[],it=function(t,e){var n=Pt(t),r=R(n.width)-R(n.paddingLeft)-R(n.paddingRight)-R(n.borderLeftWidth)-R(n.borderRightWidth),i=Dt(t,0,e),o=Dt(t,1,e),s=i&&Pt(i),a=o&&Pt(o),l=s&&R(s.marginLeft)+R(s.marginRight)+Xt(i).width,c=a&&R(a.marginLeft)+R(a.marginRight)+Xt(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&"none"!==s.float){var u="left"===s.float?"left":"right";return!o||"both"!==a.clear&&a.clear!==u?"horizontal":"vertical"}return i&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||l>=r&&"none"===n[K]||o&&"none"===n[K]&&l+c>r)?"vertical":"horizontal"},ot=function(t,e){for(var n=0;n<E.length;n++)if(!Lt(E[n])){var r=Xt(E[n]),i=E[n][D].options.emptyInsertThreshold,o=t>=r.left-i&&t<=r.right+i,s=e>=r.top-i&&e<=r.bottom+i;if(o&&s)return E[n]}},st=function(t,e,n,r,i){var o=Xt(n),s="vertical"===r?o.left:o.top,a="vertical"===r?o.right:o.bottom,l="vertical"===r?t:e;return s<l&&l<a},at=function(e,n,r){var i=e===t&&S||Xt(e),o=n===t&&S||Xt(n),s="vertical"===r?i.left:i.top,a="vertical"===r?i.right:i.bottom,l="vertical"===r?i.width:i.height,c="vertical"===r?o.left:o.top,u="vertical"===r?o.right:o.bottom,d="vertical"===r?o.width:o.height;return s===c||a===u||s+l/2===c+d/2},lt=function(t,e){if(!t||!t.getBoundingClientRect)return ct();var n=t,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Pt(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n||!n.getBoundingClientRect||n===B.body)return ct();if(r||e)return n;r=!0}}}while(n=n.parentNode);return ct()},ct=function(){return H?B.documentElement:B.scrollingElement},ut=function(t,e,n){t.scrollLeft+=e,t.scrollTop+=n},dt=Ht(function(t,e,n,r){if(e.scroll){var i=n?n[D]:window,o=e.scrollSensitivity,s=e.scrollSpeed,u=t.clientX,d=t.clientY,h=ct(),f=!1;l!==n&&(ht(),a=e.scroll,c=e.scrollFn,!0===a&&(a=lt(n,!0),l=a));var p=0,g=a;do{var m,v,y,w,k,_,x,C,S,P=g,A=Xt(P),E=A.top,M=A.bottom,I=A.left,N=A.right,j=A.width,L=A.height;if(m=P.scrollWidth,v=P.scrollHeight,y=Pt(P),C=P.scrollLeft,S=P.scrollTop,P===h?(_=j<m&&("auto"===y.overflowX||"scroll"===y.overflowX||"visible"===y.overflowX),x=L<v&&("auto"===y.overflowY||"scroll"===y.overflowY||"visible"===y.overflowY)):(_=j<m&&("auto"===y.overflowX||"scroll"===y.overflowX),x=L<v&&("auto"===y.overflowY||"scroll"===y.overflowY)),w=_&&(tt(N-u)<=o&&C+j<m)-(tt(I-u)<=o&&!!C),k=x&&(tt(M-d)<=o&&S+L<v)-(tt(E-d)<=o&&!!S),!T[p])for(var B=0;B<=p;B++)T[B]||(T[B]={});T[p].vx==w&&T[p].vy==k&&T[p].el===P||(T[p].el=P,T[p].vx=w,T[p].vy=k,clearInterval(T[p].pid),!P||0==w&&0==k||(f=!0,T[p].pid=setInterval(function(){r&&0===this.layer&&(kt.active._emulateDragOver(!0),kt.active._onTouchMove(b,!0));var e=T[this.layer].vy?T[this.layer].vy*s:0,n=T[this.layer].vx?T[this.layer].vx*s:0;"function"===typeof c&&"continue"!==c.call(i,n,e,t,b,T[this.layer].el)||ut(T[this.layer].el,n,e)}.bind({layer:p}),24))),p++}while(e.bubbleScroll&&g!==h&&(g=lt(g,!1)));O=f}},30),ht=function(){T.forEach(function(t){clearInterval(t.pid)}),T=[]},ft=function(t){function e(t,n){return function(r,i,o,s){var a=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==t&&(n||a))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"===typeof t)return e(t(r,i,o,s),n)(r,i,o,s);var l=(n?r:i).options.group.name;return!0===t||"string"===typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},r=t.group;r&&"object"==typeof r||(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},pt=function(e){t&&t.parentNode&&t.parentNode[D]&&t.parentNode[D]._computeIsAligned(e)},gt=function(t,e){var n=e;while(!n[D])n=n.parentNode;return t===n},mt=function(t,e,n){var r=t.parentNode;while(r&&!r[D])r=r.parentNode;r&&r[D][n](Ut(e,{artificialBubble:!0}))},vt=function(){!J&&n&&Pt(n,"display","none")},bt=function(){!J&&n&&Pt(n,"display","")};B.addEventListener("click",function(t){if(A)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),A=!1,!1},!0);var yt,wt=function(e){if(e=e.touches?e.touches[0]:e,t){var n=ot(e.clientX,e.clientY);n&&n[D]._onDragOver({clientX:e.clientX,clientY:e.clientY,target:n,rootEl:n})}};function kt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be HTMLElement, not "+{}.toString.call(t);this.el=t,this.options=e=Ut({},e),t[D]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0,draggable:/[uo]l/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return it(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,touchStartThreshold:R(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==kt.supportPointer&&("PointerEvent"in window||window.navigator&&"msPointerEnabled"in window.navigator),emptyInsertThreshold:5};for(var r in n)!(r in e)&&(e[r]=n[r]);for(var i in ft(e),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&X,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?St(t,"pointerdown",this._onTapStart):(St(t,"mousedown",this._onTapStart),St(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(St(t,"dragover",this),St(t,"dragenter",this)),E.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[])}function _t(t,e,n,r){if(t){n=n||B;do{if(null!=e&&(">"===e[0]&&t.parentNode===n&&zt(t,e.substring(1))||zt(t,e))||r&&t===n)return t;if(t===n)break}while(t=xt(t))}return null}function xt(t){return t.host&&t!==B&&t.host.nodeType?t.host:t.parentNode}function Ct(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function St(t,e,n){t.addEventListener(e,n,z)}function Tt(t,e,n){t.removeEventListener(e,n,z)}function Ot(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(j," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(j," ")}}function Pt(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return B.defaultView&&B.defaultView.getComputedStyle?n=B.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=n+("string"===typeof n?"":"px")}}function At(t){var e="";do{var n=Pt(t,"transform");n&&"none"!==n&&(e=n+" "+e)}while(t=t.parentNode);return window.DOMMatrix?new DOMMatrix(e):window.WebKitCSSMatrix?new WebKitCSSMatrix(e):window.CSSMatrix?new CSSMatrix(e):void 0}function Et(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Mt(t,e,n,i,o,s,a,l,c){t=t||e[D];var u,d=t.options,h="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||H||W?(u=B.createEvent("Event"),u.initEvent(n,!0,!0)):u=new CustomEvent(n,{bubbles:!0,cancelable:!0}),u.to=o||e,u.from=s||e,u.item=i||e,u.clone=r,u.oldIndex=a,u.newIndex=l,u.originalEvent=c,u.pullMode=f?f.lastPutMode:void 0,e&&e.dispatchEvent(u),d[h]&&d[h].call(t,u)}function It(t,e,n,r,i,o,s,a){var l,c,u=t[D],d=u.options.onMove;return!window.CustomEvent||H||W?(l=B.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=r,l.related=i||e,l.relatedRect=o||Xt(e),l.willInsertAfter=a,l.originalEvent=s,t.dispatchEvent(l),d&&(c=d.call(u,l,s)),c}function Nt(t){t.draggable=!1}function jt(){Q=!1}function Dt(e,r,i){var o=0,s=0,a=e.children;while(s<a.length){if("none"!==a[s].style.display&&a[s]!==n&&a[s]!==t&&_t(a[s],i.draggable,e,!1)){if(o===r)return a[s];o++}s++}return null}function Lt(t){var e=t.lastElementChild;while(e&&(e===n||"none"===e.style.display))e=e.previousElementSibling;return e||null}function Bt(t,e,n){var r=Xt(Lt(n)),i="vertical"===e?t.clientY:t.clientX,o="vertical"===e?t.clientX:t.clientY,s="vertical"===e?r.bottom:r.right,a="vertical"===e?r.left:r.top,l="vertical"===e?r.right:r.bottom,c=10;return"vertical"===e?o>l+c||o<=l&&i>s&&o>=a:i>s&&o>a||i<=s&&o>l+c}function Rt(e,n,r,i,o,s,a){var l=Xt(n),c="vertical"===r?e.clientY:e.clientX,u="vertical"===r?l.height:l.width,d="vertical"===r?l.top:l.left,h="vertical"===r?l.bottom:l.right,f=Xt(t),p=!1;if(!s)if(a&&x<u*i)if(!M&&(1===k?c>d+u*o/2:c<h-u*o/2)&&(M=!0),M)p=!0;else{"vertical"===r?f.top:f.left,"vertical"===r?f.bottom:f.right;if(1===k?c<d+x:c>h-x)return-1*k}else if(c>d+u*(1-i)/2&&c<h-u*(1-i)/2)return Ft(n);return p=p||s,p&&(c<d+u*o/2||c>h-u*o/2)?c>d+u/2?1:-1:0}function Ft(e){var n=Vt(t),r=Vt(e);return n<r?1:-1}function $t(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;while(n--)r+=e.charCodeAt(n);return r.toString(36)}function Vt(t,e){var n=0;if(!t||!t.parentNode)return-1;while(t&&(t=t.previousElementSibling))"TEMPLATE"!==t.nodeName.toUpperCase()&&t!==r&&n++;return n}function zt(t,e){if(t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}function Ht(t,e){return function(){if(!yt){var n=arguments,r=this;yt=F(function(){1===n.length?t.call(r,n[0]):t.apply(r,n),yt=void 0},e)}}}function Wt(){clearTimeout(yt),yt=void 0}function Ut(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function qt(t){return V&&V.dom?V.dom(t).cloneNode(!0):$?$(t).clone(!0)[0]:t.cloneNode(!0)}function Gt(t){rt.length=0;var e=t.getElementsByTagName("input"),n=e.length;while(n--){var r=e[n];r.checked&&rt.push(r)}}function Yt(t){return F(t,0)}function Kt(t){return clearTimeout(t)}function Xt(t,e,n,r){if(t.getBoundingClientRect||t===L){var i,o,s,a,l,c,u;if(t!==L&&t!==ct()?(i=t.getBoundingClientRect(),o=i.top,s=i.left,a=i.bottom,l=i.right,c=i.height,u=i.width):(o=0,s=0,a=window.innerHeight,l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),r&&t!==L&&(n=n||t.parentNode,!H))do{if(n&&n.getBoundingClientRect&&"none"!==Pt(n,"transform")){var d=n.getBoundingClientRect();o-=d.top+R(Pt(n,"border-top-width")),s-=d.left+R(Pt(n,"border-left-width")),a=o+i.height,l=s+i.width;break}}while(n=n.parentNode);if(e&&t!==L){var h=At(n||t),f=h&&h.a,p=h&&h.d;h&&(o/=p,s/=f,u/=f,c/=p,a=o+c,l=s+u)}return{top:o,left:s,bottom:a,right:l,width:u,height:c}}}function Jt(t,e){var n=lt(t,!0),r=Xt(t)[e];while(n){var i,o=Xt(n)[e];if(i="top"===e||"left"===e?r>=o:r<=o,!i)return n;if(n===ct())break;n=lt(n,!1)}return!1}function Qt(t){var e=0,n=0,r=ct();if(t)do{var i=At(t),o=i.a,s=i.d;e+=t.scrollLeft*o,n+=t.scrollTop*s}while(t!==r&&(t=t.parentNode));return[e,n]}return St(B,"dragover",wt),St(B,"mousemove",wt),St(B,"touchmove",wt),kt.prototype={constructor:kt,_computeIsAligned:function(e){var r;if(n&&!J?(vt(),r=B.elementFromPoint(e.clientX,e.clientY),bt()):r=e.target,r=_t(r,this.options.draggable,this.el,!1),!Z&&t&&t.parentNode===this.el){for(var i=this.el.children,o=0;o<i.length;o++)_t(i[o],this.options.draggable,this.el,!1)&&i[o]!==r&&(i[o].sortableMouseAligned=st(e.clientX,e.clientY,i[o],this._getDirection(e,null),this.options));_t(r,this.options.draggable,this.el,!0)||(w=null),Z=!0,F(function(){Z=!1},30)}},_getDirection:function(e,n){return"function"===typeof this.options.direction?this.options.direction.call(this,e,n,t):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n,r=this,i=this.el,o=this.options,a=o.preventOnFilter,l=e.type,c=e.touches&&e.touches[0],u=(c||e).target,d=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,h=o.filter;if(Gt(i),(!H||e.artificialBubble||gt(i,u))&&!t&&!(/mousedown|pointerdown/.test(l)&&0!==e.button||o.disabled)&&!d.isContentEditable)if(u=_t(u,o.draggable,i,!1),u){if(s!==u){if(n=Vt(u,o.draggable),"function"===typeof h){if(h.call(this,e,u,this))return Mt(r,d,"filter",u,i,i,n),void(a&&e.cancelable&&e.preventDefault())}else if(h&&(h=h.split(",").some(function(t){if(t=_t(d,t.trim(),i,!1),t)return Mt(r,t,"filter",u,i,i,n),!0}),h))return void(a&&e.cancelable&&e.preventDefault());o.handle&&!_t(d,o.handle,i,!1)||this._prepareDragStart(e,c,u,n)}}else H&&mt(i,e,"_onTapStart")}},_handleAutoScroll:function(e,n){if(t&&this.options.scroll){var r=e.clientX,i=e.clientY,o=B.elementFromPoint(r,i),s=this;if(n||W||H||q){dt(e,s.options,o,n);var a=lt(o,!0);!O||p&&r===g&&i===m||(p&&clearInterval(p),p=setInterval(function(){if(t){var o=lt(B.elementFromPoint(r,i),!0);o!==a&&(a=o,ht(),dt(e,s.options,a,n))}},10),g=r,m=i)}else{if(!s.options.bubbleScroll||lt(o,!0)===ct())return void ht();dt(e,s.options,lt(o,!1),!1)}}},_prepareDragStart:function(n,r,a,l){var c,d=this,f=d.el,p=d.options,g=f.ownerDocument;a&&!t&&a.parentNode===f&&(i=f,t=a,e=t.parentNode,o=t.nextSibling,s=a,h=p.group,u=l,v={target:t,clientX:(r||n).clientX,clientY:(r||n).clientY},this._lastX=(r||n).clientX,this._lastY=(r||n).clientY,t.style["will-change"]="all",t.style.transition="",t.style.transform="",c=function(){d._disableDelayedDragEvents(),!U&&d.nativeDraggable&&(t.draggable=!0),d._triggerDragStart(n,r),Mt(d,i,"choose",t,i,i,u),Ot(t,p.chosenClass,!0)},p.ignore.split(",").forEach(function(e){Et(t,e.trim(),Nt)}),p.supportPointer?St(g,"pointerup",d._onDrop):(St(g,"mouseup",d._onDrop),St(g,"touchend",d._onDrop),St(g,"touchcancel",d._onDrop)),U&&this.nativeDraggable&&(this.options.touchStartThreshold=4,t.draggable=!0),!p.delay||this.nativeDraggable&&(W||H)?c():(St(g,"mouseup",d._disableDelayedDrag),St(g,"touchend",d._disableDelayedDrag),St(g,"touchcancel",d._disableDelayedDrag),St(g,"mousemove",d._delayedDragTouchMoveHandler),St(g,"touchmove",d._delayedDragTouchMoveHandler),p.supportPointer&&St(g,"pointermove",d._delayedDragTouchMoveHandler),d._dragStartTimer=F(c,p.delay)))},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;nt(tt(e.clientX-this._lastX),tt(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){t&&Nt(t),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Tt(t,"mouseup",this._disableDelayedDrag),Tt(t,"touchend",this._disableDelayedDrag),Tt(t,"touchcancel",this._disableDelayedDrag),Tt(t,"mousemove",this._delayedDragTouchMoveHandler),Tt(t,"touchmove",this._delayedDragTouchMoveHandler),Tt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||("touch"==e.pointerType?e:null),!this.nativeDraggable||n?this.options.supportPointer?St(B,"pointermove",this._onTouchMove):St(B,n?"touchmove":"mousemove",this._onTouchMove):(St(t,"dragend",this),St(i,"dragstart",this._onDragStart));try{B.selection?Yt(function(){B.selection.empty()}):window.getSelection().removeAllRanges()}catch(r){}},_dragStarted:function(e,n){if(P=!1,i&&t){this.nativeDraggable&&(St(B,"dragover",this._handleAutoScroll),St(B,"dragover",pt));var r=this.options;!e&&Ot(t,r.dragClass,!1),Ot(t,r.ghostClass,!0),Pt(t,"transform",""),kt.active=this,e&&this._appendGhost(),Mt(this,i,"start",t,i,i,u,void 0,n)}else this._nulling()},_emulateDragOver:function(e){if(b){if(this._lastX===b.clientX&&this._lastY===b.clientY&&!e)return;this._lastX=b.clientX,this._lastY=b.clientY,vt();var n=B.elementFromPoint(b.clientX,b.clientY),r=n;while(n&&n.shadowRoot)n=n.shadowRoot.elementFromPoint(b.clientX,b.clientY),r=n;if(r)do{var i;if(r[D])if(i=r[D]._onDragOver({clientX:b.clientX,clientY:b.clientY,target:n,rootEl:r}),i&&!this.options.dragoverBubble)break;n=r}while(r=r.parentNode);t.parentNode[D]._computeIsAligned(b),bt()}},_onTouchMove:function(t,e){if(v){var r=this.options,i=r.fallbackTolerance,o=r.fallbackOffset,s=t.touches?t.touches[0]:t,a=n&&At(n),l=n&&a&&a.a,c=n&&a&&a.d,u=Y&&C&&Qt(C),d=(s.clientX-v.clientX+o.x)/(l||1)+(u?u[0]-N[0]:0)/(l||1),h=(s.clientY-v.clientY+o.y)/(c||1)+(u?u[1]-N[1]:0)/(c||1),f=t.touches?"translate3d("+d+"px,"+h+"px,0)":"translate("+d+"px,"+h+"px)";if(!kt.active&&!P){if(i&&et(tt(s.clientX-this._lastX),tt(s.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}!e&&this._handleAutoScroll(s,!0),y=!0,b=s,Pt(n,"webkitTransform",f),Pt(n,"mozTransform",f),Pt(n,"msTransform",f),Pt(n,"transform",f),t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!n){var e=this.options.fallbackOnBody?B.body:i,r=Xt(t,!0,e,!Y),o=(Pt(t),this.options);if(Y){C=e;while("static"===Pt(C,"position")&&"none"===Pt(C,"transform")&&C!==B)C=C.parentNode;if(C!==B){var s=Xt(C,!0);r.top-=s.top,r.left-=s.left}C!==B.body&&C!==B.documentElement?(C===B&&(C=ct()),r.top+=C.scrollTop,r.left+=C.scrollLeft):C=ct(),N=Qt(C)}n=t.cloneNode(!0),Ot(n,o.ghostClass,!1),Ot(n,o.fallbackClass,!0),Ot(n,o.dragClass,!0),Pt(n,"box-sizing","border-box"),Pt(n,"margin",0),Pt(n,"top",r.top),Pt(n,"left",r.left),Pt(n,"width",r.width),Pt(n,"height",r.height),Pt(n,"opacity","0.8"),Pt(n,"position",Y?"absolute":"fixed"),Pt(n,"zIndex","100000"),Pt(n,"pointerEvents","none"),e.appendChild(n)}},_onDragStart:function(e,n){var o=this,s=e.dataTransfer,a=o.options;r=qt(t),r.draggable=!1,r.style["will-change"]="",this._hideClone(),Ot(r,o.options.chosenClass,!1),o._cloneId=Yt(function(){o.options.removeCloneOnHide||i.insertBefore(r,t),Mt(o,i,"clone",t)}),!n&&Ot(t,a.dragClass,!0),n?(A=!0,o._loopId=setInterval(o._emulateDragOver,50)):(Tt(B,"mouseup",o._onDrop),Tt(B,"touchend",o._onDrop),Tt(B,"touchcancel",o._onDrop),s&&(s.effectAllowed="move",a.setData&&a.setData.call(o,s,t)),St(B,"drop",o),Pt(t,"transform","translateZ(0)")),P=!0,o._dragStartId=Yt(o._dragStarted.bind(o,n,e)),St(B,"selectstart",o),q&&Pt(B.body,"user-select","none")},_onDragOver:function(n){var r,s,a,l=this.el,c=n.target,d=this.options,p=d.group,g=kt.active,m=h===p,v=d.sort,b=this;if(!Q&&(!H||n.rootEl||n.artificialBubble||gt(l,c))){if(void 0!==n.preventDefault&&n.cancelable&&n.preventDefault(),y=!0,c=_t(c,d.draggable,l,!0),_t(n.target,null,t,!0)||c.animated)return W(!1);if(c!==t&&(A=!1),g&&!d.disabled&&(m?v||(a=!i.contains(t)):f===this||(this.lastPutMode=h.checkPull(this,g,t,n))&&p.checkPut(this,g,t,n))){var C=this._getDirection(n,c);if(r=Xt(t),a)return this._hideClone(),e=i,o?i.insertBefore(t,o):i.appendChild(t),W(!0);var T=Lt(l);if(!T||Bt(n,C,l)&&!T.animated){if(T&&l===n.target&&(c=T),c&&(s=Xt(c)),m?g._hideClone():g._showClone(this),!1!==It(i,l,t,r,c,s,n,!!c))return l.appendChild(t),e=l,S=null,U(),W(!0)}else if(c&&c!==t&&c.parentNode===l){var O,P=0,E=c.sortableMouseAligned,N=t.parentNode!==l,j="vertical"===C?"top":"left",L=Jt(c,"top")||Jt(t,"top"),R=L?L.scrollTop:void 0;if(w!==c&&(_=null,O=Xt(c)[j],M=!1),at(t,c,C)&&E||N||L||d.invertSwap||"insert"===_||"swap"===_?("swap"!==_&&(I=d.invertSwap||N),P=Rt(n,c,C,d.swapThreshold,null==d.invertedSwapThreshold?d.swapThreshold:d.invertedSwapThreshold,I,w===c),_="swap"):(P=Ft(c),_="insert"),0===P)return W(!1);S=null,w=c,k=P,s=Xt(c);var $=c.nextElementSibling,V=!1;V=1===P;var z=It(i,l,t,r,c,s,n,V);if(!1!==z)return 1!==z&&-1!==z||(V=1===z),Q=!0,F(jt,30),m?g._hideClone():g._showClone(this),V&&!$?l.appendChild(t):c.parentNode.insertBefore(t,V?$:c),L&&ut(L,0,R-L.scrollTop),e=t.parentNode,void 0===O||I||(x=tt(O-Xt(c)[j])),U(),W(!0)}if(l.contains(t))return W(!1)}return H&&!n.rootEl&&mt(l,n,"_onDragOver"),!1}function W(e){return e&&(m?g._hideClone():g._showClone(b),g&&(Ot(t,f?f.options.ghostClass:g.options.ghostClass,!1),Ot(t,d.ghostClass,!0)),f!==b&&b!==kt.active?f=b:b===kt.active&&(f=null),r&&b._animate(r,t),c&&s&&b._animate(s,c)),(c===t&&!t.animated||c===l&&!c.animated)&&(w=null),d.dragoverBubble||n.rootEl||c===B||(b._handleAutoScroll(n),t.parentNode[D]._computeIsAligned(n)),!d.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),!0}function U(){Mt(b,i,"change",c,l,i,u,Vt(t,d.draggable),n)}},_animate:function(e,n){var r=this.options.animation;if(r){var i=Xt(n);if(n===t&&(S=i),1===e.nodeType&&(e=Xt(e)),e.left+e.width/2!==i.left+i.width/2||e.top+e.height/2!==i.top+i.height/2){var o=At(this.el),s=o&&o.a,a=o&&o.d;Pt(n,"transition","none"),Pt(n,"transform","translate3d("+(e.left-i.left)/(s||1)+"px,"+(e.top-i.top)/(a||1)+"px,0)"),n.offsetWidth,Pt(n,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),Pt(n,"transform","translate3d(0,0,0)")}"number"===typeof n.animated&&clearTimeout(n.animated),n.animated=F(function(){Pt(n,"transition",""),Pt(n,"transform",""),n.animated=!1},r)}},_offUpEvents:function(){var t=this.el.ownerDocument;Tt(B,"touchmove",this._onTouchMove),Tt(B,"pointermove",this._onTouchMove),Tt(t,"mouseup",this._onDrop),Tt(t,"touchend",this._onDrop),Tt(t,"pointerup",this._onDrop),Tt(t,"touchcancel",this._onDrop),Tt(B,"selectstart",this)},_onDrop:function(s){var a=this.el,l=this.options;P=!1,O=!1,I=!1,M=!1,clearInterval(this._loopId),clearInterval(p),ht(),Wt(),clearTimeout(this._dragStartTimer),Kt(this._cloneId),Kt(this._dragStartId),Tt(B,"mousemove",this._onTouchMove),this.nativeDraggable&&(Tt(B,"drop",this),Tt(a,"dragstart",this._onDragStart),Tt(B,"dragover",this._handleAutoScroll),Tt(B,"dragover",pt)),q&&Pt(B.body,"user-select",""),this._offUpEvents(),s&&(y&&(s.cancelable&&s.preventDefault(),!l.dropBubble&&s.stopPropagation()),n&&n.parentNode&&n.parentNode.removeChild(n),(i===e||f&&"clone"!==f.lastPutMode)&&r&&r.parentNode&&r.parentNode.removeChild(r),t&&(this.nativeDraggable&&Tt(t,"dragend",this),Nt(t),t.style["will-change"]="",Ot(t,f?f.options.ghostClass:this.options.ghostClass,!1),Ot(t,this.options.chosenClass,!1),Mt(this,i,"unchoose",t,e,i,u,null,s),i!==e?(d=Vt(t,l.draggable),d>=0&&(Mt(null,e,"add",t,e,i,u,d,s),Mt(this,i,"remove",t,e,i,u,d,s),Mt(null,e,"sort",t,e,i,u,d,s),Mt(this,i,"sort",t,e,i,u,d,s)),f&&f.save()):t.nextSibling!==o&&(d=Vt(t,l.draggable),d>=0&&(Mt(this,i,"update",t,e,i,u,d,s),Mt(this,i,"sort",t,e,i,u,d,s))),kt.active&&(null!=d&&-1!==d||(d=u),Mt(this,i,"end",t,e,i,u,d,s),this.save()))),this._nulling()},_nulling:function(){i=t=e=n=o=r=s=a=l=T.length=p=g=m=v=b=y=d=u=w=k=S=f=h=kt.active=null,rt.forEach(function(t){t.checked=!0}),rt.length=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":t&&(this._onDragOver(e),Ct(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)t=n[r],_t(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||$t(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,r){var i=n.children[r];_t(i,this.options.draggable,n,!1)&&(e[t]=i)},this),t.forEach(function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return _t(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];n[t]=e,"group"===t&&ft(n)},destroy:function(){var t=this.el;t[D]=null,Tt(t,"mousedown",this._onTapStart),Tt(t,"touchstart",this._onTapStart),Tt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Tt(t,"dragover",this),Tt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),E.splice(E.indexOf(this.el),1),this.el=t=null},_hideClone:function(){r.cloneHidden||(Pt(r,"display","none"),r.cloneHidden=!0,r.parentNode&&this.options.removeCloneOnHide&&r.parentNode.removeChild(r))},_showClone:function(e){"clone"===e.lastPutMode?r.cloneHidden&&(i.contains(t)&&!this.options.group.revertClone?i.insertBefore(r,t):o?i.insertBefore(r,o):i.appendChild(r),this.options.group.revertClone&&this._animate(t,r),Pt(r,"display",""),r.cloneHidden=!1):this._hideClone()}},St(B,"touchmove",function(t){(kt.active||P)&&t.cancelable&&t.preventDefault()}),kt.utils={on:St,off:Tt,css:Pt,find:Et,is:function(t,e){return!!_t(t,e,t,!1)},extend:Ut,throttle:Ht,closest:_t,toggleClass:Ot,clone:qt,index:Vt,nextTick:Yt,cancelNextTick:Kt,detectDirection:it,getChild:Dt},kt.create=function(t,e){return new kt(t,e)},kt.version="1.8.4",kt})},"549b":function(t,e,n){"use strict";var r=n("d864"),i=n("63b6"),o=n("241e"),s=n("b0dc"),a=n("3702"),l=n("b447"),c=n("20fd"),u=n("7cd6");i(i.S+i.F*!n("4ee1")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,d,h=o(t),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,b=u(h);if(m&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==b||f==Array&&a(b))for(e=l(h.length),n=new f(e);e>v;v++)c(n,v,m?g(h[v],v):h[v]);else for(d=b.call(h),n=new f;!(i=d.next()).done;v++)c(n,v,m?s(d,g,[i.value,v],!0):i.value);return n.length=v,n}})},"54a1":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("95d5")},"551c":function(t,e,n){"use strict";var r,i,o,s,a=n("2d00"),l=n("7726"),c=n("9b43"),u=n("23c6"),d=n("5ca1"),h=n("d3f4"),f=n("d8e8"),p=n("f605"),g=n("4a59"),m=n("ebd6"),v=n("1991").set,b=n("8079")(),y=n("a5b8"),w=n("9c80"),k=n("a25f"),_=n("bcaa"),x="Promise",C=l.TypeError,S=l.process,T=S&&S.versions,O=T&&T.v8||"",P=l[x],A="process"==u(S),E=function(){},M=i=y.f,I=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(E,E)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e&&0!==O.indexOf("6.6")&&-1===k.indexOf("Chrome/66")}catch(r){}}(),N=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},j=function(t,e){if(!t._n){t._n=!0;var n=t._c;b(function(){var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s,a=i?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{a?(i||(2==t._h&&B(t),t._h=1),!0===a?n=r:(u&&u.enter(),n=a(r),u&&(u.exit(),s=!0)),n===e.promise?c(C("Promise-chain cycle")):(o=N(n))?o.call(n,l,c):l(n)):c(r)}catch(d){u&&!s&&u.exit(),c(d)}};while(n.length>o)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&D(t)})}},D=function(t){v.call(l,function(){var e,n,r,i=t._v,o=L(t);if(o&&(e=w(function(){A?S.emit("unhandledRejection",i,t):(n=l.onunhandledrejection)?n({promise:t,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=A||L(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},L=function(t){return 1!==t._h&&0===(t._a||t._c).length},B=function(t){v.call(l,function(){var e;A?S.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),j(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw C("Promise can't be resolved itself");(e=N(t))?b(function(){var r={_w:n,_d:!1};try{e.call(t,c(F,r,1),c(R,r,1))}catch(i){R.call(r,i)}}):(n._v=t,n._s=1,j(n,!1))}catch(r){R.call({_w:n,_d:!1},r)}}};I||(P=function(t){p(this,P,x,"_h"),f(t),r.call(this);try{t(c(F,this,1),c(R,this,1))}catch(e){R.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("dcbc")(P.prototype,{then:function(t,e){var n=M(m(this,P));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=A?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(F,t,1),this.reject=c(R,t,1)},y.f=M=function(t){return t===P||t===s?new o(t):i(t)}),d(d.G+d.W+d.F*!I,{Promise:P}),n("7f20")(P,x),n("7a56")(x),s=n("8378")[x],d(d.S+d.F*!I,x,{reject:function(t){var e=M(this),n=e.reject;return n(t),e.promise}}),d(d.S+d.F*(a||!I),x,{resolve:function(t){return _(a&&this===s?P:this,t)}}),d(d.S+d.F*!(I&&n("5cc5")(function(t){P.all(t)["catch"](E)})),x,{all:function(t){var e=this,n=M(e),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,s=1;g(t,!1,function(t){var a=o++,l=!1;n.push(void 0),s++,e.resolve(t).then(function(t){l||(l=!0,n[a]=t,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,i=w(function(){g(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",s=i[o]||(i[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var r=n("dbdb")("keys"),i=n("62a0");t.exports=function(t){return r[t]||(r[t]=i(t))}},"56b3":function(t,e,n){(function(e,n){t.exports=n()})(0,function(){"use strict";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),o=/Edge\/(\d+)/.exec(t),s=r||i||o,a=s&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(t),c=l&&/Qt\/\d+\.\d+/.test(t),u=!o&&/Chrome\//.test(t),d=/Opera\//.test(t),h=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),p=/PhantomJS/.test(t),g=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),m=/Android/.test(t),v=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),b=g||/Mac/.test(e),y=/\bCrOS\b/.test(t),w=/win/i.test(e),k=d&&t.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(d=!1,l=!0);var _=b&&(c||d&&(null==k||k<12.11)),x=n||s&&a>=9;function C(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var S,T=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 O(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function P(t,e){return O(t).appendChild(e)}function A(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 o=0;o<e.length;++o)i.appendChild(e[o]);return i}function E(t,e,n,r){var i=A(t,e,n,r);return i.setAttribute("role","presentation"),i}function M(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 I(){var t;try{t=document.activeElement}catch(e){t=document.body||null}while(t&&t.shadowRoot&&t.shadowRoot.activeElement)t=t.shadowRoot.activeElement;return t}function N(t,e){var n=t.className;C(e).test(n)||(t.className+=(n?" ":"")+e)}function j(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}S=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(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r};var D=function(t){t.select()};function L(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function B(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 R(t,e,n,r,i){null==e&&(e=t.search(/[^\s\u00a0]/),-1==e&&(e=t.length));for(var o=r||0,s=i||0;;){var a=t.indexOf("\t",o);if(a<0||a>=e)return s+(e-o);s+=a-o,s+=n-s%n,o=a+1}}g?D=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:s&&(D=function(t){try{t.select()}catch(e){}});var F=function(){this.id=null};function $(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}F.prototype.set=function(t,e){clearTimeout(this.id),this.id=setTimeout(e,t)};var V=30,z={toString:function(){return"CodeMirror.Pass"}},H={scroll:!1},W={origin:"*mouse"},U={origin:"+move"};function q(t,e,n){for(var r=0,i=0;;){var o=t.indexOf("\t",r);-1==o&&(o=t.length);var s=o-r;if(o==t.length||i+s>=e)return r+Math.min(s,e-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=e)return r}}var G=[""];function Y(t){while(G.length<=t)G.push(K(G)+" ");return G[t]}function K(t){return t[t.length-1]}function X(t,e){for(var n=[],r=0;r<t.length;r++)n[r]=e(t[r],r);return n}function J(t,e,n){var r=0,i=n(e);while(r<t.length&&n(t[r])<=i)r++;t.splice(r,0,e)}function Q(){}function Z(t,e){var n;return Object.create?n=Object.create(t):(Q.prototype=t,n=new Q),e&&B(e,n),n}var tt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function et(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||tt.test(t))}function nt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&et(t))||e.test(t):et(t)}function rt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var it=/[\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 ot(t){return t.charCodeAt(0)>=768&&it.test(t)}function st(t,e,n){while((n<0?e>0:e<t.length)&&ot(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,o=r<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+r}}function lt(t,e,r){var i=this;this.input=r,i.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=A("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=E("div",null,"CodeMirror-code"),i.selectionDiv=A("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=A("div",null,"CodeMirror-cursors"),i.measure=A("div",null,"CodeMirror-measure"),i.lineMeasure=A("div",null,"CodeMirror-measure"),i.lineSpace=E("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=E("div",[i.lineSpace],"CodeMirror-lines");i.mover=A("div",[o],null,"position: relative"),i.sizer=A("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=A("div",null,null,"position: absolute; height: "+V+"px; width: 1px;"),i.gutters=A("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=A("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=A("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),s&&a<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),l||n&&v||(i.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(i.wrapper):t(i.wrapper)),i.viewFrom=i.viewTo=e.first,i.reportedViewFrom=i.reportedViewTo=e.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,r.init(i)}function ct(t,e){if(e-=t.first,e<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");var n=t;while(!n.lines)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(e<o){n=i;break}e-=o}return n.lines[e]}function ut(t,e,n){var r=[],i=e.line;return t.iter(e.line,n.line+1,function(t){var o=t.text;i==n.line&&(o=o.slice(0,n.ch)),i==e.line&&(o=o.slice(e.ch)),r.push(o),++i}),r}function dt(t,e,n){var r=[];return t.iter(e,n,function(t){r.push(t.text)}),r}function ht(t,e){var n=e-t.height;if(n)for(var r=t;r;r=r.parent)r.height+=n}function ft(t){if(null==t.parent)return null;for(var e=t.parent,n=$(e.lines,t),r=e.parent;r;e=r,r=r.parent)for(var i=0;;++i){if(r.children[i]==e)break;n+=r.children[i].chunkSize()}return n+e.first}function pt(t,e){var n=t.first;t:do{for(var r=0;r<t.children.length;++r){var i=t.children[r],o=i.height;if(e<o){t=i;continue t}e-=o,n+=i.chunkSize()}return n}while(!t.lines);for(var s=0;s<t.lines.length;++s){var a=t.lines[s],l=a.height;if(e<l)break;e-=l}return n+s}function gt(t,e){return e>=t.first&&e<t.first+t.size}function mt(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function vt(t,e,n){if(void 0===n&&(n=null),!(this instanceof vt))return new vt(t,e,n);this.line=t,this.ch=e,this.sticky=n}function bt(t,e){return t.line-e.line||t.ch-e.ch}function yt(t,e){return t.sticky==e.sticky&&0==bt(t,e)}function wt(t){return vt(t.line,t.ch)}function kt(t,e){return bt(t,e)<0?e:t}function _t(t,e){return bt(t,e)<0?t:e}function xt(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function Ct(t,e){if(e.line<t.first)return vt(t.first,0);var n=t.first+t.size-1;return e.line>n?vt(n,ct(t,n).text.length):St(e,ct(t,e.line).text.length)}function St(t,e){var n=t.ch;return null==n||n>e?vt(t.line,e):n<0?vt(t.line,0):t}function Tt(t,e){for(var n=[],r=0;r<e.length;r++)n[r]=Ct(t,e[r]);return n}var Ot=!1,Pt=!1;function At(){Ot=!0}function Et(){Pt=!0}function Mt(t,e,n){this.marker=t,this.from=e,this.to=n}function It(t,e){if(t)for(var n=0;n<t.length;++n){var r=t[n];if(r.marker==e)return r}}function Nt(t,e){for(var n,r=0;r<t.length;++r)t[r]!=e&&(n||(n=[])).push(t[r]);return n}function jt(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}function Dt(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var o=t[i],s=o.marker,a=null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e);if(a||o.from==e&&"bookmark"==s.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(s.inclusiveRight?o.to>=e:o.to>e);(r||(r=[])).push(new Mt(s,o.from,l?null:o.to))}}return r}function Lt(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var o=t[i],s=o.marker,a=null==o.to||(s.inclusiveRight?o.to>=e:o.to>e);if(a||o.from==e&&"bookmark"==s.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e);(r||(r=[])).push(new Mt(s,l?null:o.from-e,null==o.to?null:o.to-e))}}return r}function Bt(t,e){if(e.full)return null;var n=gt(t,e.from.line)&&ct(t,e.from.line).markedSpans,r=gt(t,e.to.line)&&ct(t,e.to.line).markedSpans;if(!n&&!r)return null;var i=e.from.ch,o=e.to.ch,s=0==bt(e.from,e.to),a=Dt(n,i,s),l=Lt(r,o,s),c=1==e.text.length,u=K(e.text).length+(c?i:0);if(a)for(var d=0;d<a.length;++d){var h=a[d];if(null==h.to){var f=It(l,h.marker);f?c&&(h.to=null==f.to?null:f.to+u):h.to=i}}if(l)for(var p=0;p<l.length;++p){var g=l[p];if(null!=g.to&&(g.to+=u),null==g.from){var m=It(a,g.marker);m||(g.from=u,c&&(a||(a=[])).push(g))}else g.from+=u,c&&(a||(a=[])).push(g)}a&&(a=Rt(a)),l&&l!=a&&(l=Rt(l));var v=[a];if(!c){var b,y=e.text.length-2;if(y>0&&a)for(var w=0;w<a.length;++w)null==a[w].to&&(b||(b=[])).push(new Mt(a[w].marker,null,null));for(var k=0;k<y;++k)v.push(b);v.push(l)}return v}function Rt(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 Ft(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!=$(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:e,to:n}],o=0;o<r.length;++o)for(var s=r[o],a=s.find(0),l=0;l<i.length;++l){var c=i[l];if(!(bt(c.to,a.from)<0||bt(c.from,a.to)>0)){var u=[l,1],d=bt(c.from,a.from),h=bt(c.to,a.to);(d<0||!s.inclusiveLeft&&!d)&&u.push({from:c.from,to:a.from}),(h>0||!s.inclusiveRight&&!h)&&u.push({from:a.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function $t(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function Vt(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function zt(t){return t.inclusiveLeft?-1:0}function Ht(t){return t.inclusiveRight?1:0}function Wt(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var r=t.find(),i=e.find(),o=bt(r.from,i.from)||zt(t)-zt(e);if(o)return-o;var s=bt(r.to,i.to)||Ht(t)-Ht(e);return s||e.id-t.id}function Ut(t,e){var n,r=Pt&&t.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&null==(e?i.from:i.to)&&(!n||Wt(n,i.marker)<0)&&(n=i.marker);return n}function qt(t){return Ut(t,!0)}function Gt(t){return Ut(t,!1)}function Yt(t,e){var n,r=Pt&&t.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<e)&&(null==o.to||o.to>e)&&(!n||Wt(n,o.marker)<0)&&(n=o.marker)}return n}function Kt(t,e,n,r,i){var o=ct(t,e),s=Pt&&o.markedSpans;if(s)for(var a=0;a<s.length;++a){var l=s[a];if(l.marker.collapsed){var c=l.marker.find(0),u=bt(c.from,n)||zt(l.marker)-zt(i),d=bt(c.to,r)||Ht(l.marker)-Ht(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?bt(c.to,n)>=0:bt(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?bt(c.from,r)<=0:bt(c.from,r)<0)))return!0}}}function Xt(t){var e;while(e=qt(t))t=e.find(-1,!0).line;return t}function Jt(t){var e;while(e=Gt(t))t=e.find(1,!0).line;return t}function Qt(t){var e,n;while(e=Gt(t))t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function Zt(t,e){var n=ct(t,e),r=Xt(n);return n==r?e:ft(r)}function te(t,e){if(e>t.lastLine())return e;var n,r=ct(t,e);if(!ee(t,r))return e;while(n=Gt(r))r=n.find(1,!0).line;return ft(r)+1}function ee(t,e){var n=Pt&&e.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&ne(t,e,r))return!0}}function ne(t,e,n){if(null==n.to){var r=n.marker.find(1,!0);return ne(t,r.line,It(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var i=void 0,o=0;o<e.markedSpans.length;++o)if(i=e.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&ne(t,e,i))return!0}function re(t){t=Xt(t);for(var e=0,n=t.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==t)break;e+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var s=0;s<o.children.length;++s){var a=o.children[s];if(a==n)break;e+=a.height}return e}function ie(t){if(0==t.height)return 0;var e,n=t.text.length,r=t;while(e=qt(r)){var i=e.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}r=t;while(e=Gt(r)){var o=e.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function oe(t){var e=t.display,n=t.doc;e.maxLine=ct(n,n.first),e.maxLineLength=ie(e.maxLine),e.maxLineChanged=!0,n.iter(function(t){var n=ie(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)})}function se(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,o=0;o<t.length;++o){var s=t[o];(s.from<n&&s.to>e||e==n&&s.to==e)&&(r(Math.max(s.from,e),Math.min(s.to,n),1==s.level?"rtl":"ltr",o),i=!0)}i||r(e,n,"ltr")}var ae=null;function le(t,e,n){var r;ae=null;for(var i=0;i<t.length;++i){var o=t[i];if(o.from<e&&o.to>e)return i;o.to==e&&(o.from!=o.to&&"before"==n?r=i:ae=i),o.from==e&&(o.from!=o.to&&"before"!=n?r=i:ae=i)}return null!=r?r:ae}var ce=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?t.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?e.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,s=/[Lb1n]/,a=/[1n]/;function l(t,e,n){this.level=t,this.from=e,this.to=n}return function(t,e){var c="ltr"==e?"L":"R";if(0==t.length||"ltr"==e&&!r.test(t))return!1;for(var u=t.length,d=[],h=0;h<u;++h)d.push(n(t.charCodeAt(h)));for(var f=0,p=c;f<u;++f){var g=d[f];"m"==g?d[f]=p:p=g}for(var m=0,v=c;m<u;++m){var b=d[m];"1"==b&&"r"==v?d[m]="n":o.test(b)&&(v=b,"r"==b&&(d[m]="R"))}for(var y=1,w=d[0];y<u-1;++y){var k=d[y];"+"==k&&"1"==w&&"1"==d[y+1]?d[y]="1":","!=k||w!=d[y+1]||"1"!=w&&"n"!=w||(d[y]=w),w=k}for(var _=0;_<u;++_){var x=d[_];if(","==x)d[_]="N";else if("%"==x){var C=void 0;for(C=_+1;C<u&&"%"==d[C];++C);for(var S=_&&"!"==d[_-1]||C<u&&"1"==d[C]?"1":"N",T=_;T<C;++T)d[T]=S;_=C-1}}for(var O=0,P=c;O<u;++O){var A=d[O];"L"==P&&"1"==A?d[O]="L":o.test(A)&&(P=A)}for(var E=0;E<u;++E)if(i.test(d[E])){var M=void 0;for(M=E+1;M<u&&i.test(d[M]);++M);for(var I="L"==(E?d[E-1]:c),N="L"==(M<u?d[M]:c),j=I==N?I?"L":"R":c,D=E;D<M;++D)d[D]=j;E=M-1}for(var L,B=[],R=0;R<u;)if(s.test(d[R])){var F=R;for(++R;R<u&&s.test(d[R]);++R);B.push(new l(0,F,R))}else{var $=R,V=B.length;for(++R;R<u&&"L"!=d[R];++R);for(var z=$;z<R;)if(a.test(d[z])){$<z&&B.splice(V,0,new l(1,$,z));var H=z;for(++z;z<R&&a.test(d[z]);++z);B.splice(V,0,new l(2,H,z)),$=z}else++z;$<R&&B.splice(V,0,new l(1,$,R))}return"ltr"==e&&(1==B[0].level&&(L=t.match(/^\s+/))&&(B[0].from=L[0].length,B.unshift(new l(0,0,L[0].length))),1==K(B).level&&(L=t.match(/\s+$/))&&(K(B).to-=L[0].length,B.push(new l(0,u-L[0].length,u)))),"rtl"==e?B.reverse():B}}();function ue(t,e){var n=t.order;return null==n&&(n=t.order=ce(t.text,e)),n}var de=[],he=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]||de).concat(n)}};function fe(t,e){return t._handlers&&t._handlers[e]||de}function pe(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 o=$(i,n);o>-1&&(r[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function ge(t,e){var n=fe(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 me(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),ge(t,n||e.type,t,e),_e(e)||e.codemirrorIgnore}function ve(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==$(n,e[r])&&n.push(e[r])}function be(t,e){return fe(t,e).length>0}function ye(t){t.prototype.on=function(t,e){he(this,t,e)},t.prototype.off=function(t,e){pe(this,t,e)}}function we(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function ke(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function _e(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function xe(t){we(t),ke(t)}function Ce(t){return t.target||t.srcElement}function Se(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),b&&t.ctrlKey&&1==e&&(e=3),e}var Te,Oe,Pe=function(){if(s&&a<9)return!1;var t=A("div");return"draggable"in t||"dragDrop"in t}();function Ae(t){if(null==Te){var e=A("span","​");P(t,A("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Te=e.offsetWidth<=1&&e.offsetHeight>2&&!(s&&a<8))}var n=Te?A("span","​"):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ee(t){if(null!=Oe)return Oe;var e=P(t,document.createTextNode("AخA")),n=S(e,0,1).getBoundingClientRect(),r=S(e,1,2).getBoundingClientRect();return O(t),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}var Me=3!="\n\nb".split(/\n/).length?function(t){var e=0,n=[],r=t.length;while(e<=r){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),s=o.indexOf("\r");-1!=s?(n.push(o.slice(0,s)),e+=s+1):(n.push(o),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Ie=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(e){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(n){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Ne=function(){var t=A("div");return"oncopy"in t||(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy)}(),je=null;function De(t){if(null!=je)return je;var e=P(t,A("span","x")),n=e.getBoundingClientRect(),r=S(e,0,1).getBoundingClientRect();return je=Math.abs(n.left-r.left)>1}var Le={},Be={};function Re(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Le[t]=e}function Fe(t,e){Be[t]=e}function $e(t){if("string"==typeof t&&Be.hasOwnProperty(t))t=Be[t];else if(t&&"string"==typeof t.name&&Be.hasOwnProperty(t.name)){var e=Be[t.name];"string"==typeof e&&(e={name:e}),t=Z(e,t),t.name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return $e("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return $e("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Ve(t,e){e=$e(e);var n=Le[e.name];if(!n)return Ve(t,"text/plain");var r=n(t,e);if(ze.hasOwnProperty(e.name)){var i=ze[e.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var s in e.modeProps)r[s]=e.modeProps[s];return r}var ze={};function He(t,e){var n=ze.hasOwnProperty(t)?ze[t]:ze[t]={};B(e,n)}function We(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 Ue(t,e){var n;while(t.innerMode){if(n=t.innerMode(e),!n||n.mode==t)break;e=n.state,t=n.mode}return n||{mode:t,state:e}}function qe(t,e,n){return!t.startState||t.startState(e,n)}var Ge=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};Ge.prototype.eol=function(){return this.pos>=this.string.length},Ge.prototype.sol=function(){return this.pos==this.lineStart},Ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ge.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ge.prototype.eat=function(t){var e,n=this.string.charAt(this.pos);if(e="string"==typeof t?n==t:n&&(t.test?t.test(n):t(n)),e)return++this.pos,n},Ge.prototype.eatWhile=function(t){var e=this.pos;while(this.eat(t));return this.pos>e},Ge.prototype.eatSpace=function(){var t=this,e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++t.pos;return this.pos>e},Ge.prototype.skipToEnd=function(){this.pos=this.string.length},Ge.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Ge.prototype.backUp=function(t){this.pos-=t},Ge.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=R(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},Ge.prototype.indentation=function(){return R(this.string,null,this.tabSize)-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},Ge.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},o=this.string.substr(this.pos,t.length);if(i(o)==i(t))return!1!==e&&(this.pos+=t.length),!0},Ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ge.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Ge.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Ge.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var Ye=function(t,e){this.state=t,this.lookAhead=e},Ke=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 Xe(t,e,n,r){var i=[t.state.modeGen],o={};sn(t,e.text,t.doc.mode,n,function(t,e){return i.push(t,e)},o,r);for(var s=n.state,a=function(r){n.baseTokens=i;var a=t.state.overlays[r],l=1,c=0;n.state=!0,sn(t,e.text,a.mode,n,function(t,e){var n=l;while(c<t){var r=i[l];r>t&&i.splice(l,1,t,i[l+1],r),l+=2,c=Math.min(t,r)}if(e)if(a.opaque)i.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+e}},o),n.state=s,n.baseTokens=null,n.baseTokenPos=1},l=0;l<t.state.overlays.length;++l)a(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Je(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var r=Qe(t,ft(e)),i=e.text.length>t.options.maxHighlightLength&&We(t.doc.mode,r.state),o=Xe(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.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 Qe(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new Ke(r,!0,e);var o=an(t,e,n),s=o>r.first&&ct(r,o-1).stateAfter,a=s?Ke.fromSaved(r,s,o):new Ke(r,qe(r.mode),o);return r.iter(o,e,function(n){Ze(t,n.text,a);var r=a.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?a.save():null,a.nextLine()}),n&&(r.modeFrontier=a.line),a}function Ze(t,e,n,r){var i=t.doc.mode,o=new Ge(e,t.options.tabSize,n);o.start=o.pos=r||0,""==e&&tn(i,n.state);while(!o.eol())en(i,o,n.state),o.start=o.pos}function tn(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Ue(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function en(t,e,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ue(t,n).mode);var o=t.token(e,n);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}Ke.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},Ke.prototype.baseToken=function(t){var e=this;if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=t)e.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Ke.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ke.fromSaved=function(t,e,n){return e instanceof Ye?new Ke(t,We(t.mode,e.state),n,e.lookAhead):new Ke(t,We(t.mode,e),n)},Ke.prototype.save=function(t){var e=!1!==t?We(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ye(e,this.maxLookAhead):e};var nn=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function rn(t,e,n,r){var i,o=t.doc,s=o.mode;e=Ct(o,e);var a,l=ct(o,e.line),c=Qe(t,e.line,n),u=new Ge(l.text,t.options.tabSize,c);r&&(a=[]);while((r||u.pos<e.ch)&&!u.eol())u.start=u.pos,i=en(s,u,c.state),r&&a.push(new nn(u,i,We(o.mode,c.state)));return r?a:new nn(u,i,c.state)}function on(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 sn(t,e,n,r,i,o,s){var a=n.flattenSpans;null==a&&(a=t.options.flattenSpans);var l,c=0,u=null,d=new Ge(e,t.options.tabSize,r),h=t.options.addModeClass&&[null];""==e&&on(tn(n,r.state),o);while(!d.eol()){if(d.pos>t.options.maxHighlightLength?(a=!1,s&&Ze(t,e,r,d.pos),d.pos=e.length,l=null):l=on(en(n,d,r.state,h),o),h){var f=h[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!a||u!=l){while(c<d.start)c=Math.min(d.start,c+5e3),i(c,u);u=l}d.start=d.pos}while(c<d.pos){var p=Math.min(d.pos,c+5e3);i(p,u),c=p}}function an(t,e,n){for(var r,i,o=t.doc,s=n?-1:e-(t.doc.mode.innerMode?1e3:100),a=e;a>s;--a){if(a<=o.first)return o.first;var l=ct(o,a-1),c=l.stateAfter;if(c&&(!n||a+(c instanceof Ye?c.lookAhead:0)<=o.modeFrontier))return a;var u=R(l.text,null,t.options.tabSize);(null==i||r>u)&&(i=a-1,r=u)}return i}function ln(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=ct(t,r).stateAfter;if(i&&(!(i instanceof Ye)||r+i.lookAhead<e)){n=r+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}var cn=function(t,e,n){this.text=t,Vt(this,e),this.height=n?n(this):1};function un(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),$t(t),Vt(t,n);var i=r?r(t):1;i!=t.height&&ht(t,i)}function dn(t){t.parent=null,$t(t)}cn.prototype.lineNo=function(){return ft(this)},ye(cn);var hn={},fn={};function pn(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?fn:hn;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function gn(t,e){var n=E("span",null,null,l?"padding-right: .1px":null),r={pre:E("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 o=i?e.rest[i-1]:e.line,s=void 0;r.pos=0,r.addToken=vn,Ee(t.display.measure)&&(s=ue(o,t.doc.direction))&&(r.addToken=yn(r.addToken,s)),r.map=[];var a=e!=t.display.externalMeasured&&ft(o);kn(o,r,Je(t,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=j(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=j(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ae(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(l){var c=r.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ge(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=j(r.pre.className,r.textClass||"")),r}function mn(t){var e=A("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function vn(t,e,n,r,i,o,l){if(e){var c,u=t.splitSpaces?bn(e,t.trailingSpace):e,d=t.cm.state.specialChars,h=!1;if(d.test(e)){c=document.createDocumentFragment();var f=0;while(1){d.lastIndex=f;var p=d.exec(e),g=p?p.index-f:e.length-f;if(g){var m=document.createTextNode(u.slice(f,f+g));s&&a<9?c.appendChild(A("span",[m])):c.appendChild(m),t.map.push(t.pos,t.pos+g,m),t.col+=g,t.pos+=g}if(!p)break;f+=g+1;var v=void 0;if("\t"==p[0]){var b=t.cm.options.tabSize,y=b-t.col%b;v=c.appendChild(A("span",Y(y),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),t.col+=y}else"\r"==p[0]||"\n"==p[0]?(v=c.appendChild(A("span","\r"==p[0]?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",p[0]),t.col+=1):(v=t.cm.options.specialCharPlaceholder(p[0]),v.setAttribute("cm-text",p[0]),s&&a<9?c.appendChild(A("span",[v])):c.appendChild(v),t.col+=1);t.map.push(t.pos,t.pos+1,v),t.pos++}}else t.col+=e.length,c=document.createTextNode(u),t.map.push(t.pos,t.pos+e.length,c),s&&a<9&&(h=!0),t.pos+=e.length;if(t.trailingSpace=32==u.charCodeAt(e.length-1),n||r||i||h||o){var w=n||"";r&&(w+=r),i&&(w+=i);var k=A("span",[c],w,o);if(l)for(var _ in l)l.hasOwnProperty(_)&&"style"!=_&&"class"!=_&&k.setAttribute(_,l[_]);return t.content.appendChild(k)}t.content.appendChild(c)}}function bn(t,e){if(t.length>1&&!/  /.test(t))return t;for(var n=e,r="",i=0;i<t.length;i++){var o=t.charAt(i);" "!=o||!n||i!=t.length-1&&32!=t.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function yn(t,e){return function(n,r,i,o,s,a,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,h=0;h<e.length;h++)if(d=e[h],d.to>c&&d.from<=c)break;if(d.to>=u)return t(n,r,i,o,s,a,l);t(n,r.slice(0,d.to-c),i,o,null,a,l),o=null,r=r.slice(d.to-c),c=d.to}}}function wn(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 kn(t,e,n){var r=t.markedSpans,i=t.text,o=0;if(r)for(var s,a,l,c,u,d,h,f=i.length,p=0,g=1,m="",v=0;;){if(v==p){l=c=u=a="",h=null,d=null,v=1/0;for(var b=[],y=void 0,w=0;w<r.length;++w){var k=r[w],_=k.marker;if("bookmark"==_.type&&k.from==p&&_.widgetNode)b.push(_);else if(k.from<=p&&(null==k.to||k.to>p||_.collapsed&&k.to==p&&k.from==p)){if(null!=k.to&&k.to!=p&&v>k.to&&(v=k.to,c=""),_.className&&(l+=" "+_.className),_.css&&(a=(a?a+";":"")+_.css),_.startStyle&&k.from==p&&(u+=" "+_.startStyle),_.endStyle&&k.to==v&&(y||(y=[])).push(_.endStyle,k.to),_.title&&((h||(h={})).title=_.title),_.attributes)for(var x in _.attributes)(h||(h={}))[x]=_.attributes[x];_.collapsed&&(!d||Wt(d.marker,_)<0)&&(d=k)}else k.from>p&&v>k.from&&(v=k.from)}if(y)for(var C=0;C<y.length;C+=2)y[C+1]==v&&(c+=" "+y[C]);if(!d||d.from==p)for(var S=0;S<b.length;++S)wn(e,0,b[S]);if(d&&(d.from||0)==p){if(wn(e,(null==d.to?f+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=f)break;var T=Math.min(f,v);while(1){if(m){var O=p+m.length;if(!d){var P=O>T?m.slice(0,T-p):m;e.addToken(e,P,s?s+l:l,u,p+P.length==v?c:"",a,h)}if(O>=T){m=m.slice(T-p),p=T;break}p=O,u=""}m=i.slice(o,o=n[g++]),s=pn(n[g++],e.cm.options)}}else for(var A=1;A<n.length;A+=2)e.addToken(e,i.slice(o,o=n[A]),pn(n[A+1],e.cm.options))}function _n(t,e,n){this.line=e,this.rest=Qt(e),this.size=this.rest?ft(K(this.rest))-n+1:1,this.node=this.text=null,this.hidden=ee(t,e)}function xn(t,e,n){for(var r,i=[],o=e;o<n;o=r){var s=new _n(t.doc,ct(t.doc,o),o);r=o+s.size,i.push(s)}return i}var Cn=null;function Sn(t){Cn?Cn.ops.push(t):t.ownsGroup=Cn={ops:[t],delayedCallbacks:[]}}function Tn(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)while(i.cursorActivityCalled<i.cursorActivityHandlers.length)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<e.length)}function On(t,e){var n=t.ownsGroup;if(n)try{Tn(n)}finally{Cn=null,e(n)}}var Pn=null;function An(t,e){var n=fe(t,e);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);Cn?r=Cn.delayedCallbacks:Pn?r=Pn:(r=Pn=[],setTimeout(En,0));for(var o=function(t){r.push(function(){return n[t].apply(null,i)})},s=0;s<n.length;++s)o(s)}}function En(){var t=Pn;Pn=null;for(var e=0;e<t.length;++e)t[e]()}function Mn(t,e,n,r){for(var i=0;i<e.changes.length;i++){var o=e.changes[i];"text"==o?Dn(t,e):"gutter"==o?Bn(t,e,n,r):"class"==o?Ln(t,e):"widget"==o&&Rn(t,e,r)}e.changes=null}function In(t){return t.node==t.text&&(t.node=A("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),s&&a<8&&(t.node.style.zIndex=2)),t.node}function Nn(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=In(e);e.background=r.insertBefore(A("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}}function jn(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):gn(t,e)}function Dn(t,e){var n=e.text.className,r=jn(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,Ln(t,e)):n&&(e.text.className=n)}function Ln(t,e){Nn(t,e),e.line.wrapClass?In(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 Bn(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=In(e);e.gutterBackground=A("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 o=e.line.gutterMarkers;if(t.options.lineNumbers||o){var s=In(e),a=e.gutter=A("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(t.display.input.setUneditable(a),s.insertBefore(a,e.text),e.line.gutterClass&&(a.className+=" "+e.line.gutterClass),!t.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(e.lineNumber=a.appendChild(A("div",mt(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<t.options.gutters.length;++l){var c=t.options.gutters[l],u=o.hasOwnProperty(c)&&o[c];u&&a.appendChild(A("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function Rn(t,e,n){e.alignable&&(e.alignable=null);for(var r=e.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&e.node.removeChild(r);$n(t,e,n)}function Fn(t,e,n,r){var i=jn(t,e);return e.text=e.node=i.pre,i.bgClass&&(e.bgClass=i.bgClass),i.textClass&&(e.textClass=i.textClass),Ln(t,e),Bn(t,e,n,r),$n(t,e,r),e.node}function $n(t,e,n){if(Vn(t,e.line,e,n,!0),e.rest)for(var r=0;r<e.rest.length;r++)Vn(t,e.rest[r],e,n,!1)}function Vn(t,e,n,r,i){if(e.widgets)for(var o=In(n),s=0,a=e.widgets;s<a.length;++s){var l=a[s],c=A("div",[l.node],"CodeMirror-linewidget");l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),zn(l,c,n,r),t.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),An(l,"redraw")}}function zn(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 Hn(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!M(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;"),P(e.display.measure,A("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function Wn(t,e){for(var n=Ce(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 Un(t){return t.lineSpace.offsetTop}function qn(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Gn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=P(t.measure,A("pre","x")),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 Yn(t){return V-t.display.nativeBarWidth}function Kn(t){return t.display.scroller.clientWidth-Yn(t)-t.display.barWidth}function Xn(t){return t.display.scroller.clientHeight-Yn(t)-t.display.barHeight}function Jn(t,e,n){var r=t.options.lineWrapping,i=r&&Kn(t);if(!e.measure.heights||r&&e.measure.width!=i){var o=e.measure.heights=[];if(r){e.measure.width=i;for(var s=e.text.firstChild.getClientRects(),a=0;a<s.length-1;a++){var l=s[a],c=s[a+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Qn(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(ft(t.rest[i])>n)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Zn(t,e){e=Xt(e);var n=ft(e),r=t.display.externalMeasured=new _n(t.doc,e,n);r.lineN=n;var i=r.built=gn(t,r);return r.text=i.pre,P(t.display.lineMeasure,i.pre),r}function tr(t,e,n,r){return rr(t,nr(t,e),n,r)}function er(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 nr(t,e){var n=ft(e),r=er(t,n);r&&!r.text?r=null:r&&r.changes&&(Mn(t,r,n,Mr(t)),t.curOp.forceUpdate=!0),r||(r=Zn(t,e));var i=Qn(r,e,n);return{line:e,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function rr(t,e,n,r,i){e.before&&(n=-1);var o,s=n+(r||"");return e.cache.hasOwnProperty(s)?o=e.cache[s]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(Jn(t,e.view,e.rect),e.hasHeights=!0),o=lr(t,e,n,r),o.bogus||(e.cache[s]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var ir,or={left:0,right:0,top:0,bottom:0};function sr(t,e,n){for(var r,i,o,s,a,l,c=0;c<t.length;c+=3)if(a=t[c],l=t[c+1],e<a?(i=0,o=1,s="left"):e<l?(i=e-a,o=i+1):(c==t.length-3||e==l&&t[c+3]>e)&&(o=l-a,i=o-1,e>=l&&(s="right")),null!=i){if(r=t[c+2],a==l&&n==(r.insertLeft?"left":"right")&&(s=n),"left"==n&&0==i)while(c&&t[c-2]==t[c-3]&&t[c-1].insertLeft)r=t[2+(c-=3)],s="left";if("right"==n&&i==l-a)while(c<t.length-3&&t[c+3]==t[c+4]&&!t[c+5].insertLeft)r=t[(c+=3)+2],s="right";break}return{node:r,start:i,end:o,collapse:s,coverStart:a,coverEnd:l}}function ar(t,e){var n=or;if("left"==e){for(var r=0;r<t.length;r++)if((n=t[r]).left!=n.right)break}else for(var i=t.length-1;i>=0;i--)if((n=t[i]).left!=n.right)break;return n}function lr(t,e,n,r){var i,o=sr(e.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){while(c&&ot(e.line.text.charAt(o.coverStart+c)))--c;while(o.coverStart+u<o.coverEnd&&ot(e.line.text.charAt(o.coverStart+u)))++u;if(i=s&&a<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():ar(S(l,c,u).getClientRects(),r),i.left||i.right||0==c)break;u=c,c-=1,d="right"}s&&a<11&&(i=cr(t.display.measure,i))}else{var f;c>0&&(d=r="right"),i=t.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(s&&a<9&&!c&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Er(t.display),top:p.top,bottom:p.bottom}:or}for(var g=i.top-e.rect.top,m=i.bottom-e.rect.top,v=(g+m)/2,b=e.view.measure.heights,y=0;y<b.length-1;y++)if(v<b[y])break;var w=y?b[y-1]:0,k=b[y],_={left:("right"==d?i.right:i.left)-e.rect.left,right:("left"==d?i.left:i.right)-e.rect.left,top:w,bottom:k};return i.left||i.right||(_.bogus=!0),t.options.singleCursorHeightPerLine||(_.rtop=g,_.rbottom=m),_}function cr(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!De(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}}function ur(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 dr(t){t.display.externalMeasure=null,O(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)ur(t.display.view[e])}function hr(t){dr(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function fr(){return u&&m?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function pr(){return u&&m?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function gr(t){var e=0;if(t.widgets)for(var n=0;n<t.widgets.length;++n)t.widgets[n].above&&(e+=Hn(t.widgets[n]));return e}function mr(t,e,n,r,i){if(!i){var o=gr(e);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var s=re(e);if("local"==r?s+=Un(t.display):s-=t.display.viewOffset,"page"==r||"window"==r){var a=t.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==r?0:pr());var l=a.left+("window"==r?0:fr());n.left+=l,n.right+=l}return n.top+=s,n.bottom+=s,n}function vr(t,e,n){if("div"==n)return e;var r=e.left,i=e.top;if("page"==n)r-=fr(),i-=pr();else if("local"==n||!n){var o=t.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var s=t.display.lineSpace.getBoundingClientRect();return{left:r-s.left,top:i-s.top}}function br(t,e,n,r,i){return r||(r=ct(t.doc,e.line)),mr(t,r,tr(t,r,e.ch,i),n)}function yr(t,e,n,r,i,o){function s(e,s){var a=rr(t,i,e,s?"right":"left",o);return s?a.left=a.right:a.right=a.left,mr(t,r,a,n)}r=r||ct(t.doc,e.line),i||(i=nr(t,r));var a=ue(r,t.doc.direction),l=e.ch,c=e.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!a)return s("before"==c?l-1:l,"before"==c);function u(t,e,n){var r=a[e],i=1==r.level;return s(n?t-1:t,i!=n)}var d=le(a,l,c),h=ae,f=u(l,d,"before"==c);return null!=h&&(f.other=u(l,h,"before"!=c)),f}function wr(t,e){var n=0;e=Ct(t.doc,e),t.options.lineWrapping||(n=Er(t.display)*e.ch);var r=ct(t.doc,e.line),i=re(r)+Un(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function kr(t,e,n,r,i){var o=vt(t,e,n);return o.xRel=i,r&&(o.outside=!0),o}function _r(t,e,n){var r=t.doc;if(n+=t.display.viewOffset,n<0)return kr(r.first,0,null,!0,-1);var i=pt(r,n),o=r.first+r.size-1;if(i>o)return kr(r.first+r.size-1,ct(r,o).text.length,null,!0,1);e<0&&(e=0);for(var s=ct(r,i);;){var a=Tr(t,s,i,e,n),l=Yt(s,a.ch+(a.xRel>0?1:0));if(!l)return a;var c=l.find(1);if(c.line==i)return c;s=ct(r,i=c.line)}}function xr(t,e,n,r){r-=gr(e);var i=e.text.length,o=at(function(e){return rr(t,n,e-1).bottom<=r},i,0);return i=at(function(e){return rr(t,n,e).top>r},o,i),{begin:o,end:i}}function Cr(t,e,n,r){n||(n=nr(t,e));var i=mr(t,e,rr(t,n,r),"line").top;return xr(t,e,n,i)}function Sr(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function Tr(t,e,n,r,i){i-=re(e);var o=nr(t,e),s=gr(e),a=0,l=e.text.length,c=!0,u=ue(e,t.doc.direction);if(u){var d=(t.options.lineWrapping?Pr:Or)(t,e,n,o,u,r,i);c=1!=d.level,a=c?d.from:d.to-1,l=c?d.to:d.from-1}var h,f,p=null,g=null,m=at(function(e){var n=rr(t,o,e);return n.top+=s,n.bottom+=s,!!Sr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=e,g=n),!0)},a,l),v=!1;if(g){var b=r-g.left<g.right-r,y=b==c;m=p+(y?0:1),f=y?"after":"before",h=b?g.left:g.right}else{c||m!=l&&m!=a||m++,f=0==m?"after":m==e.text.length?"before":rr(t,o,m-(c?1:0)).bottom+s<=i==c?"after":"before";var w=yr(t,vt(n,m,f),"line",e,o);h=w.left,v=i<w.top||i>=w.bottom}return m=st(e.text,m,1),kr(n,m,f,v,r-h)}function Or(t,e,n,r,i,o,s){var a=at(function(a){var l=i[a],c=1!=l.level;return Sr(yr(t,vt(n,c?l.to:l.from,c?"before":"after"),"line",e,r),o,s,!0)},0,i.length-1),l=i[a];if(a>0){var c=1!=l.level,u=yr(t,vt(n,c?l.from:l.to,c?"after":"before"),"line",e,r);Sr(u,o,s,!0)&&u.top>s&&(l=i[a-1])}return l}function Pr(t,e,n,r,i,o,s){var a=xr(t,e,r,s),l=a.begin,c=a.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var u=null,d=null,h=0;h<i.length;h++){var f=i[h];if(!(f.from>=c||f.to<=l)){var p=1!=f.level,g=rr(t,r,p?Math.min(c,f.to)-1:Math.max(l,f.from)).right,m=g<o?o-g+1e9:g-o;(!u||d>m)&&(u=f,d=m)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Ar(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==ir){ir=A("pre");for(var e=0;e<49;++e)ir.appendChild(document.createTextNode("x")),ir.appendChild(A("br"));ir.appendChild(document.createTextNode("x"))}P(t.measure,ir);var n=ir.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),O(t.measure),n||1}function Er(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=A("span","xxxxxxxxxx"),n=A("pre",[e]);P(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function Mr(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,o=e.gutters.firstChild,s=0;o;o=o.nextSibling,++s)n[t.options.gutters[s]]=o.offsetLeft+o.clientLeft+i,r[t.options.gutters[s]]=o.clientWidth;return{fixedPos:Ir(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function Ir(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Nr(t){var e=Ar(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/Er(t.display)-3);return function(i){if(ee(t.doc,i))return 0;var o=0;if(i.widgets)for(var s=0;s<i.widgets.length;s++)i.widgets[s].height&&(o+=i.widgets[s].height);return n?o+(Math.ceil(i.text.length/r)||1)*e:o+e}}function jr(t){var e=t.doc,n=Nr(t);e.iter(function(t){var e=n(t);e!=t.height&&ht(t,e)})}function Dr(t,e,n,r){var i=t.display;if(!n&&"true"==Ce(e).getAttribute("cm-not-content"))return null;var o,s,a=i.lineSpace.getBoundingClientRect();try{o=e.clientX-a.left,s=e.clientY-a.top}catch(e){return null}var l,c=_r(t,o,s);if(r&&1==c.xRel&&(l=ct(t.doc,c.line).text).length==c.ch){var u=R(l,l.length,t.options.tabSize)-l.length;c=vt(c.line,Math.max(0,Math.round((o-Gn(t.display).left)/Er(t.display))-u))}return c}function Lr(t,e){if(e>=t.display.viewTo)return null;if(e-=t.display.viewFrom,e<0)return null;for(var n=t.display.view,r=0;r<n.length;r++)if(e-=n[r].size,e<0)return r}function Br(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Rr(t,e){void 0===e&&(e=!0);for(var n=t.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),s=0;s<n.sel.ranges.length;s++)if(e||s!=n.sel.primIndex){var a=n.sel.ranges[s];if(!(a.from().line>=t.display.viewTo||a.to().line<t.display.viewFrom)){var l=a.empty();(l||t.options.showCursorWhenSelecting)&&Fr(t,a.head,i),l||Vr(t,a,o)}}return r}function Fr(t,e,n){var r=yr(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),i=n.appendChild(A("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 o=n.appendChild(A("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function $r(t,e){return t.top-e.top||t.left-e.left}function Vr(t,e,n){var r=t.display,i=t.doc,o=document.createDocumentFragment(),s=Gn(t.display),a=s.left,l=Math.max(r.sizerWidth,Kn(t)-r.sizer.offsetLeft)-s.right,c="ltr"==i.direction;function u(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),o.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n                             top: "+e+"px; width: "+(null==n?l-t:n)+"px;\n                             height: "+(r-e)+"px"))}function d(e,n,r){var o,s,d=ct(i,e),h=d.text.length;function f(n,r){return br(t,vt(e,n),"div",d,r)}function p(e,n,r){var i=Cr(t,d,null,e),o="ltr"==n==("after"==r)?"left":"right",s="after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1);return f(s,o)[o]}var g=ue(d,i.direction);return se(g,n||0,null==r?h:r,function(t,e,i,d){var m="ltr"==i,v=f(t,m?"left":"right"),b=f(e-1,m?"right":"left"),y=null==n&&0==t,w=null==r&&e==h,k=0==d,_=!g||d==g.length-1;if(b.top-v.top<=3){var x=(c?y:w)&&k,C=(c?w:y)&&_,S=x?a:(m?v:b).left,T=C?l:(m?b:v).right;u(S,v.top,T-S,v.bottom)}else{var O,P,A,E;m?(O=c&&y&&k?a:v.left,P=c?l:p(t,i,"before"),A=c?a:p(e,i,"after"),E=c&&w&&_?l:b.right):(O=c?p(t,i,"before"):a,P=!c&&y&&k?l:v.right,A=!c&&w&&_?a:b.left,E=c?p(e,i,"after"):l),u(O,v.top,P-O,v.bottom),v.bottom<b.top&&u(a,v.bottom,null,b.top),u(A,b.top,E-A,b.bottom)}(!o||$r(v,o)<0)&&(o=v),$r(b,o)<0&&(o=b),(!s||$r(v,s)<0)&&(s=v),$r(b,s)<0&&(s=b)}),{start:o,end:s}}var h=e.from(),f=e.to();if(h.line==f.line)d(h.line,h.ch,f.ch);else{var p=ct(i,h.line),g=ct(i,f.line),m=Xt(p)==Xt(g),v=d(h.line,h.ch,m?p.text.length+1:null).end,b=d(f.line,m?0:null,f.ch).start;m&&(v.top<b.top-2?(u(v.right,v.top,null,v.bottom),u(a,b.top,b.left,b.bottom)):u(v.right,v.top,b.left-v.right,v.bottom)),v.bottom<b.top&&u(a,v.bottom,null,b.top)}n.appendChild(o)}function zr(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(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Hr(t){t.state.focused||(t.display.input.focus(),Ur(t))}function Wr(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,qr(t))},100)}function Ur(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(ge(t,"focus",t,e),t.state.focused=!0,N(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),zr(t))}function qr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(ge(t,"blur",t,e),t.state.focused=!1,T(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function Gr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r<e.view.length;r++){var i=e.view[r],o=t.options.lineWrapping,l=void 0,c=0;if(!i.hidden){if(s&&a<8){var u=i.node.offsetTop+i.node.offsetHeight;l=u-n,n=u}else{var d=i.node.getBoundingClientRect();l=d.bottom-d.top,!o&&i.text.firstChild&&(c=i.text.firstChild.getBoundingClientRect().right-d.left-1)}var h=i.line.height-l;if((h>.005||h<-.005)&&(ht(i.line,l),Yr(i.line),i.rest))for(var f=0;f<i.rest.length;f++)Yr(i.rest[f]);if(c>t.display.sizerWidth){var p=Math.ceil(c/Er(t.display));p>t.display.maxLineLength&&(t.display.maxLineLength=p,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function Yr(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 Kr(t,e,n){var r=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;r=Math.floor(r-Un(t));var i=n&&null!=n.bottom?n.bottom:r+t.wrapper.clientHeight,o=pt(e,r),s=pt(e,i);if(n&&n.ensure){var a=n.ensure.from.line,l=n.ensure.to.line;a<o?(o=a,s=pt(e,re(ct(e,a))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=s&&(o=pt(e,re(ct(e,l))-t.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function Xr(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=Ir(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=r+"px",s=0;s<n.length;s++)if(!n[s].hidden){t.options.fixedGutter&&(n[s].gutter&&(n[s].gutter.style.left=o),n[s].gutterBackground&&(n[s].gutterBackground.style.left=o));var a=n[s].alignable;if(a)for(var l=0;l<a.length;l++)a[l].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=r+i+"px")}}function Jr(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=mt(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(A("div",[A("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,s=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-s)+1,r.lineNumWidth=r.lineNumInnerWidth+s,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Gi(t),!0}return!1}function Qr(t,e){if(!me(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&&!p){var o=A("div","​",null,"position: absolute;\n                         top: "+(e.top-n.viewOffset-Un(t.display))+"px;\n                         height: "+(e.bottom-e.top+Yn(t)+n.barHeight)+"px;\n                         left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(i),t.display.lineSpace.removeChild(o)}}}function Zr(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(e=e.ch?vt(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e,n="before"==e.sticky?vt(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var s=!1,a=yr(t,e),l=n&&n!=e?yr(t,n):a;i={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-r,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+r};var c=ei(t,i),u=t.doc.scrollTop,d=t.doc.scrollLeft;if(null!=c.scrollTop&&(li(t,c.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(s=!0)),null!=c.scrollLeft&&(ui(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-d)>1&&(s=!0)),!s)break}return i}function ti(t,e){var n=ei(t,e);null!=n.scrollTop&&li(t,n.scrollTop),null!=n.scrollLeft&&ui(t,n.scrollLeft)}function ei(t,e){var n=t.display,r=Ar(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=Xn(t),s={};e.bottom-e.top>o&&(e.bottom=e.top+o);var a=t.doc.height+qn(n),l=e.top<r,c=e.bottom>a-r;if(e.top<i)s.scrollTop=l?0:e.top;else if(e.bottom>i+o){var u=Math.min(e.top,(c?a:e.bottom)-o);u!=i&&(s.scrollTop=u)}var d=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,h=Kn(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),f=e.right-e.left>h;return f&&(e.right=e.left+h),e.left<10?s.scrollLeft=0:e.left<d?s.scrollLeft=Math.max(0,e.left-(f?0:10)):e.right>h+d-3&&(s.scrollLeft=e.right+(f?0:10)-h),s}function ni(t,e){null!=e&&(si(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function ri(t){si(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function ii(t,e,n){null==e&&null==n||si(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function oi(t,e){si(t),t.curOp.scrollToPos=e}function si(t){var e=t.curOp.scrollToPos;if(e){t.curOp.scrollToPos=null;var n=wr(t,e.from),r=wr(t,e.to);ai(t,n,r,e.margin)}}function ai(t,e,n,r){var i=ei(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});ii(t,i.scrollLeft,i.scrollTop)}function li(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||Ui(t,{top:e}),ci(t,e,!0),n&&Ui(t),Bi(t,100))}function ci(t,e,n){e=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 ui(t,e,n,r){e=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,Xr(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function di(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+qn(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+Yn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var hi=function(t,e,n){this.cm=n;var r=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),he(r,"scroll",function(){r.clientHeight&&e(r.scrollTop,"vertical")}),he(i,"scroll",function(){i.clientWidth&&e(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};hi.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 o=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"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}},hi.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},hi.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},hi.prototype.zeroWidthHack=function(){var t=b&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},hi.prototype.enableZeroWidthBar=function(t,e,n){function r(){var i=t.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=t?t.style.pointerEvents="none":e.set(1e3,r)}t.style.pointerEvents="auto",e.set(1e3,r)},hi.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var fi=function(){};function pi(t,e){e||(e=di(t));var n=t.display.barWidth,r=t.display.barHeight;gi(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Gr(t),gi(t,di(t)),n=t.display.barWidth,r=t.display.barHeight}function gi(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=""}fi.prototype.update=function(){return{bottom:0,right:0}},fi.prototype.setScrollLeft=function(){},fi.prototype.setScrollTop=function(){},fi.prototype.clear=function(){};var mi={native:hi,null:fi};function vi(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&T(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new mi[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),he(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?ui(t,e):li(t,e)},t),t.display.scrollbars.addClass&&N(t.display.wrapper,t.display.scrollbars.addClass)}var bi=0;function yi(t){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:++bi},Sn(t.curOp)}function wi(t){var e=t.curOp;e&&On(e,function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;ki(t)})}function ki(t){for(var e=t.ops,n=0;n<e.length;n++)_i(e[n]);for(var r=0;r<e.length;r++)xi(e[r]);for(var i=0;i<e.length;i++)Ci(e[i]);for(var o=0;o<e.length;o++)Si(e[o]);for(var s=0;s<e.length;s++)Ti(e[s])}function _i(t){var e=t.cm,n=e.display;$i(e),t.updateMaxLine&&oe(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 Fi(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function xi(t){t.updatedDisplay=t.mustUpdate&&Hi(t.cm,t.update)}function Ci(t){var e=t.cm,n=e.display;t.updatedDisplay&&Gr(e),t.barMeasure=di(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=tr(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+Yn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Kn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Si(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&ui(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==I();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&pi(e,t.barMeasure),t.updatedDisplay&&Yi(e,t.barMeasure),t.selectionChanged&&zr(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&Hr(t.cm)}function Ti(t){var e=t.cm,n=e.display,r=e.doc;if(t.updatedDisplay&&Wi(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&ci(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&ui(e,t.scrollLeft,!0,!0),t.scrollToPos){var i=Zr(e,Ct(r,t.scrollToPos.from),Ct(r,t.scrollToPos.to),t.scrollToPos.margin);Qr(e,i)}var o=t.maybeHiddenMarkers,s=t.maybeUnhiddenMarkers;if(o)for(var a=0;a<o.length;++a)o[a].lines.length||ge(o[a],"hide");if(s)for(var l=0;l<s.length;++l)s[l].lines.length&&ge(s[l],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&ge(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function Oi(t,e){if(t.curOp)return e();yi(t);try{return e()}finally{wi(t)}}function Pi(t,e){return function(){if(t.curOp)return e.apply(t,arguments);yi(t);try{return e.apply(t,arguments)}finally{wi(t)}}}function Ai(t){return function(){if(this.curOp)return t.apply(this,arguments);yi(this);try{return t.apply(this,arguments)}finally{wi(this)}}}function Ei(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);yi(e);try{return t.apply(this,arguments)}finally{wi(e)}}}function Mi(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)Pt&&Zt(t.doc,e)<i.viewTo&&Ni(t);else if(n<=i.viewFrom)Pt&&te(t.doc,n+r)>i.viewFrom?Ni(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)Ni(t);else if(e<=i.viewFrom){var o=ji(t,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Ni(t)}else if(n>=i.viewTo){var s=ji(t,e,e,-1);s?(i.view=i.view.slice(0,s.index),i.viewTo=s.lineN):Ni(t)}else{var a=ji(t,e,e,-1),l=ji(t,n,n+r,1);a&&l?(i.view=i.view.slice(0,a.index).concat(xn(t,a.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Ni(t)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:e<c.lineN+c.size&&(i.externalMeasured=null))}function Ii(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 o=r.view[Lr(t,e)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==$(s,n)&&s.push(n)}}}function Ni(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ji(t,e,n,r){var i,o=Lr(t,e),s=t.display.view;if(!Pt||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var a=t.display.viewFrom,l=0;l<o;l++)a+=s[l].size;if(a!=e){if(r>0){if(o==s.length-1)return null;i=a+s[o].size-e,o++}else i=a-e;e+=i,n+=i}while(Zt(t.doc,n)!=n){if(o==(r<0?0:s.length-1))return null;n+=r*s[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Di(t,e,n){var r=t.display,i=r.view;0==i.length||e>=r.viewTo||n<=r.viewFrom?(r.view=xn(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=xn(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(xn(t,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Lr(t,n)))),r.viewTo=n}function Li(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 Bi(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,L(Ri,t))}function Ri(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,r=Qe(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),function(o){if(r.line>=t.display.viewFrom){var s=o.styles,a=o.text.length>t.options.maxHighlightLength?We(e.mode,r.state):null,l=Xe(t,o,r,!0);a&&(r.state=a),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!s||s.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!d&&h<s.length;++h)d=s[h]!=o.styles[h];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=t.options.maxHighlightLength&&Ze(t,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Bi(t,t.options.workDelay),!0}),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Oi(t,function(){for(var e=0;e<i.length;e++)Ii(t,i[e],"text")})}}var Fi=function(t,e,n){var r=t.display;this.viewport=e,this.visible=Kr(r,t.doc,e),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Kn(t),this.force=n,this.dims=Mr(t),this.events=[]};function $i(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=Yn(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=Yn(t)+"px",e.scrollbarsClipped=!0)}function Vi(t){if(t.hasFocus())return null;var e=I();if(!e||!M(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&M(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function zi(t){if(t&&t.activeElt&&t.activeElt!=I()&&(t.activeElt.focus(),t.anchorNode&&M(document.body,t.anchorNode)&&M(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)}}function Hi(t,e){var n=t.display,r=t.doc;if(e.editorIsHidden)return Ni(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==Li(t))return!1;Jr(t)&&(Ni(t),e.dims=Mr(t));var i=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),s=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>s&&n.viewTo-s<20&&(s=Math.min(i,n.viewTo)),Pt&&(o=Zt(t.doc,o),s=te(t.doc,s));var a=o!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;Di(t,o,s),n.viewOffset=re(ct(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var l=Li(t);if(!a&&0==l&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Vi(t);return l>4&&(n.lineDiv.style.display="none"),qi(t,n.updateLineNumbers,e.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,zi(c),O(n.cursorDiv),O(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,Bi(t,400)),n.updateLineNumbers=null,!0}function Wi(t,e){for(var n=e.viewport,r=!0;;r=!1){if((!r||!t.options.lineWrapping||e.oldDisplayWidth==Kn(t))&&(n&&null!=n.top&&(n={top:Math.min(t.doc.height+qn(t.display)-Xn(t),n.top)}),e.visible=Kr(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo))break;if(!Hi(t,e))break;Gr(t);var i=di(t);Br(t),pi(t,i),Yi(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 Ui(t,e){var n=new Fi(t,e);if(Hi(t,n)){Gr(t),Wi(t,n);var r=di(t);Br(t),pi(t,r),Yi(t,r),n.finish()}}function qi(t,e,n){var r=t.display,i=t.options.lineNumbers,o=r.lineDiv,s=o.firstChild;function a(e){var n=e.nextSibling;return l&&b&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var h=c[d];if(h.hidden);else if(h.node&&h.node.parentNode==o){while(s!=h.node)s=a(s);var f=i&&null!=e&&e<=u&&h.lineNumber;h.changes&&($(h.changes,"gutter")>-1&&(f=!1),Mn(t,h,u,n)),f&&(O(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(mt(t.options,u)))),s=h.node.nextSibling}else{var p=Fn(t,h,u,n);o.insertBefore(p,s)}u+=h.size}while(s)s=a(s)}function Gi(t){var e=t.display.gutters.offsetWidth;t.display.sizer.style.marginLeft=e+"px"}function Yi(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+Yn(t)+"px"}function Ki(t){var e=t.display.gutters,n=t.options.gutters;O(e);for(var r=0;r<n.length;++r){var i=n[r],o=e.appendChild(A("div",null,"CodeMirror-gutter "+i));"CodeMirror-linenumbers"==i&&(t.display.lineGutter=o,o.style.width=(t.display.lineNumWidth||1)+"px")}e.style.display=r?"":"none",Gi(t)}function Xi(t){var e=$(t.gutters,"CodeMirror-linenumbers");-1==e&&t.lineNumbers?t.gutters=t.gutters.concat(["CodeMirror-linenumbers"]):e>-1&&!t.lineNumbers&&(t.gutters=t.gutters.slice(0),t.gutters.splice(e,1))}Fi.prototype.signal=function(t,e){be(t,e)&&this.events.push(arguments)},Fi.prototype.finish=function(){for(var t=this,e=0;e<this.events.length;e++)ge.apply(null,t.events[e])};var Ji=0,Qi=null;function Zi(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 to(t){var e=Zi(t);return e.x*=Qi,e.y*=Qi,e}function eo(t,e){var r=Zi(e),i=r.x,o=r.y,s=t.display,a=s.scroller,c=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(i&&c||o&&u){if(o&&b&&l)t:for(var h=e.target,f=s.view;h!=a;h=h.parentNode)for(var p=0;p<f.length;p++)if(f[p].node==h){t.display.currentWheelTarget=h;break t}if(i&&!n&&!d&&null!=Qi)return o&&u&&li(t,Math.max(0,a.scrollTop+o*Qi)),ui(t,Math.max(0,a.scrollLeft+i*Qi)),(!o||o&&u)&&we(e),void(s.wheelStartX=null);if(o&&null!=Qi){var g=o*Qi,m=t.doc.scrollTop,v=m+s.wrapper.clientHeight;g<0?m=Math.max(0,m+g-50):v=Math.min(t.doc.height,v+g+50),Ui(t,{top:m,bottom:v})}Ji<20&&(null==s.wheelStartX?(s.wheelStartX=a.scrollLeft,s.wheelStartY=a.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout(function(){if(null!=s.wheelStartX){var t=a.scrollLeft-s.wheelStartX,e=a.scrollTop-s.wheelStartY,n=e&&s.wheelDY&&e/s.wheelDY||t&&s.wheelDX&&t/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(Qi=(Qi*Ji+n)/(Ji+1),++Ji)}},200)):(s.wheelDX+=i,s.wheelDY+=o))}}s?Qi=-.53:n?Qi=15:u?Qi=-.7:h&&(Qi=-1/3);var no=function(t,e){this.ranges=t,this.primIndex=e};no.prototype.primary=function(){return this.ranges[this.primIndex]},no.prototype.equals=function(t){var e=this;if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var r=e.ranges[n],i=t.ranges[n];if(!yt(r.anchor,i.anchor)||!yt(r.head,i.head))return!1}return!0},no.prototype.deepCopy=function(){for(var t=this,e=[],n=0;n<this.ranges.length;n++)e[n]=new ro(wt(t.ranges[n].anchor),wt(t.ranges[n].head));return new no(e,this.primIndex)},no.prototype.somethingSelected=function(){for(var t=this,e=0;e<this.ranges.length;e++)if(!t.ranges[e].empty())return!0;return!1},no.prototype.contains=function(t,e){var n=this;e||(e=t);for(var r=0;r<this.ranges.length;r++){var i=n.ranges[r];if(bt(e,i.from())>=0&&bt(t,i.to())<=0)return r}return-1};var ro=function(t,e){this.anchor=t,this.head=e};function io(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort(function(t,e){return bt(t.from(),e.from())}),n=$(e,i);for(var o=1;o<e.length;o++){var s=e[o],a=e[o-1],l=bt(a.to(),s.from());if(r&&!s.empty()?l>0:l>=0){var c=_t(a.from(),s.from()),u=kt(a.to(),s.to()),d=a.empty()?s.from()==s.head:a.from()==a.head;o<=n&&--n,e.splice(--o,2,new ro(d?u:c,d?c:u))}}return new no(e,n)}function oo(t,e){return new no([new ro(t,e||t)],0)}function so(t){return t.text?vt(t.from.line+t.text.length-1,K(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function ao(t,e){if(bt(t,e.from)<0)return t;if(bt(t,e.to)<=0)return so(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+=so(e).ch-e.to.ch),vt(n,r)}function lo(t,e){for(var n=[],r=0;r<t.sel.ranges.length;r++){var i=t.sel.ranges[r];n.push(new ro(ao(i.anchor,e),ao(i.head,e)))}return io(t.cm,n,t.sel.primIndex)}function co(t,e,n){return t.line==e.line?vt(n.line,t.ch-e.ch+n.ch):vt(n.line+(t.line-e.line),t.ch)}function uo(t,e,n){for(var r=[],i=vt(t.first,0),o=i,s=0;s<e.length;s++){var a=e[s],l=co(a.from,i,o),c=co(so(a),i,o);if(i=a.to,o=c,"around"==n){var u=t.sel.ranges[s],d=bt(u.head,u.anchor)<0;r[s]=new ro(d?c:l,d?l:c)}else r[s]=new ro(l,l)}return new no(r,t.sel.primIndex)}function ho(t){t.doc.mode=Ve(t.options,t.doc.modeOption),fo(t)}function fo(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,Bi(t,100),t.state.modeGen++,t.curOp&&Mi(t)}function po(t,e){return 0==e.from.ch&&0==e.to.ch&&""==K(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function go(t,e,n,r){function i(t){return n?n[t]:null}function o(t,n,i){un(t,n,i,r),An(t,"change",t,e)}function s(t,e){for(var n=[],o=t;o<e;++o)n.push(new cn(c[o],i(o),r));return n}var a=e.from,l=e.to,c=e.text,u=ct(t,a.line),d=ct(t,l.line),h=K(c),f=i(c.length-1),p=l.line-a.line;if(e.full)t.insert(0,s(0,c.length)),t.remove(c.length,t.size-c.length);else if(po(t,e)){var g=s(0,c.length-1);o(d,d.text,f),p&&t.remove(a.line,p),g.length&&t.insert(a.line,g)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,a.ch)+h+u.text.slice(l.ch),f);else{var m=s(1,c.length-1);m.push(new cn(h+u.text.slice(l.ch),f,r)),o(u,u.text.slice(0,a.ch)+c[0],i(0)),t.insert(a.line+1,m)}else if(1==c.length)o(u,u.text.slice(0,a.ch)+c[0]+d.text.slice(l.ch),i(0)),t.remove(a.line+1,p);else{o(u,u.text.slice(0,a.ch)+c[0],i(0)),o(d,h+d.text.slice(l.ch),f);var v=s(1,c.length-1);p>1&&t.remove(a.line+1,p-1),t.insert(a.line+1,v)}An(t,"change",t,e)}function mo(t,e,n){function r(t,i,o){if(t.linked)for(var s=0;s<t.linked.length;++s){var a=t.linked[s];if(a.doc!=i){var l=o&&a.sharedHist;n&&!l||(e(a.doc,l),r(a.doc,t,l))}}}r(t,null,!0)}function vo(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,jr(t),ho(t),bo(t),t.options.lineWrapping||oe(t),t.options.mode=e.modeOption,Mi(t)}function bo(t){("rtl"==t.doc.direction?N:T)(t.display.lineDiv,"CodeMirror-rtl")}function yo(t){Oi(t,function(){bo(t),Mi(t)})}function wo(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 ko(t,e){var n={from:wt(e.from),to:so(e),text:ut(t,e.from,e.to)};return Po(t,n,e.from.line,e.to.line+1),mo(t,function(t){return Po(t,n,e.from.line,e.to.line+1)},!0),n}function _o(t){while(t.length){var e=K(t);if(!e.ranges)break;t.pop()}}function xo(t,e){return e?(_o(t.done),K(t.done)):t.done.length&&!K(t.done).ranges?K(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),K(t.done)):void 0}function Co(t,e,n,r){var i=t.history;i.undone.length=0;var o,s,a=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>a-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=xo(i,i.lastOp==r)))s=K(o.changes),0==bt(e.from,e.to)&&0==bt(e.from,s.to)?s.to=so(e):o.changes.push(ko(t,e));else{var l=K(i.done);l&&l.ranges||Oo(t.sel,i.done),o={changes:[ko(t,e)],generation:i.generation},i.done.push(o);while(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=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,s||ge(t,"historyAdded")}function So(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)}function To(t,e,n,r){var i=t.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||So(t,o,K(i.done),e))?i.done[i.done.length-1]=e:Oo(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&_o(i.undone)}function Oo(t,e){var n=K(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Po(t,e,n,r){var i=e["spans_"+t.id],o=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]={}))[o]=n.markedSpans),++o})}function Ao(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 Eo(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var r=[],i=0;i<e.text.length;++i)r.push(Ao(n[i]));return r}function Mo(t,e){var n=Eo(t,e),r=Bt(t,e);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],s=r[i];if(o&&s)t:for(var a=0;a<s.length;++a){for(var l=s[a],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue t;o.push(l)}else s&&(n[i]=s)}return n}function Io(t,e,n){for(var r=[],i=0;i<t.length;++i){var o=t[i];if(o.ranges)r.push(n?no.prototype.deepCopy.call(o):o);else{var s=o.changes,a=[];r.push({changes:a});for(var l=0;l<s.length;++l){var c=s[l],u=void 0;if(a.push({from:c.from,to:c.to,text:c.text}),e)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&$(e,Number(u[1]))>-1&&(K(a)[d]=c[d],delete c[d])}}}return r}function No(t,e,n,r){if(r){var i=t.anchor;if(n){var o=bt(e,i)<0;o!=bt(n,i)<0?(i=e,e=n):o!=bt(e,n)<0&&(e=n)}return new ro(i,e)}return new ro(n||e,e)}function jo(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),$o(t,new no([No(t.sel.primary(),e,n,i)],0),r)}function Do(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)r[o]=No(t.sel.ranges[o],e[o],null,i);var s=io(t.cm,r,t.sel.primIndex);$o(t,s,n)}function Lo(t,e,n,r){var i=t.sel.ranges.slice(0);i[e]=n,$o(t,io(t.cm,i,t.sel.primIndex),r)}function Bo(t,e,n,r){$o(t,oo(e,n),r)}function Ro(t,e,n){var r={ranges:e.ranges,update:function(e){var n=this;this.ranges=[];for(var r=0;r<e.length;r++)n.ranges[r]=new ro(Ct(t,e[r].anchor),Ct(t,e[r].head))},origin:n&&n.origin};return ge(t,"beforeSelectionChange",t,r),t.cm&&ge(t.cm,"beforeSelectionChange",t.cm,r),r.ranges!=e.ranges?io(t.cm,r.ranges,r.ranges.length-1):e}function Fo(t,e,n){var r=t.history.done,i=K(r);i&&i.ranges?(r[r.length-1]=e,Vo(t,e,n)):$o(t,e,n)}function $o(t,e,n){Vo(t,e,n),To(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function Vo(t,e,n){(be(t,"beforeSelectionChange")||t.cm&&be(t.cm,"beforeSelectionChange"))&&(e=Ro(t,e,n));var r=n&&n.bias||(bt(e.primary().head,t.sel.primary().head)<0?-1:1);zo(t,Wo(t,e,r,!0)),n&&!1===n.scroll||!t.cm||ri(t.cm)}function zo(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,ve(t.cm)),An(t,"cursorActivity",t))}function Ho(t){zo(t,Wo(t,t.sel,null,!1))}function Wo(t,e,n,r){for(var i,o=0;o<e.ranges.length;o++){var s=e.ranges[o],a=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],l=qo(t,s.anchor,a&&a.anchor,n,r),c=qo(t,s.head,a&&a.head,n,r);(i||l!=s.anchor||c!=s.head)&&(i||(i=e.ranges.slice(0,o)),i[o]=new ro(l,c))}return i?io(t.cm,i,e.primIndex):e}function Uo(t,e,n,r,i){var o=ct(t,e.line);if(o.markedSpans)for(var s=0;s<o.markedSpans.length;++s){var a=o.markedSpans[s],l=a.marker;if((null==a.from||(l.inclusiveLeft?a.from<=e.ch:a.from<e.ch))&&(null==a.to||(l.inclusiveRight?a.to>=e.ch:a.to>e.ch))){if(i&&(ge(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(n){var c=l.find(r<0?1:-1),u=void 0;if((r<0?l.inclusiveRight:l.inclusiveLeft)&&(c=Go(t,c,-r,c&&c.line==e.line?o:null)),c&&c.line==e.line&&(u=bt(c,n))&&(r<0?u<0:u>0))return Uo(t,c,e,r,i)}var d=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(d=Go(t,d,r,d.line==e.line?o:null)),d?Uo(t,d,e,r,i):null}}return e}function qo(t,e,n,r,i){var o=r||1,s=Uo(t,e,n,o,i)||!i&&Uo(t,e,n,o,!0)||Uo(t,e,n,-o,i)||!i&&Uo(t,e,n,-o,!0);return s||(t.cantEdit=!0,vt(t.first,0))}function Go(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?Ct(t,vt(e.line-1)):null:n>0&&e.ch==(r||ct(t,e.line)).text.length?e.line<t.first+t.size-1?vt(e.line+1,0):null:new vt(e.line,e.ch+n)}function Yo(t){t.setSelection(vt(t.firstLine(),0),vt(t.lastLine()),H)}function Ko(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,o){e&&(r.from=Ct(t,e)),n&&(r.to=Ct(t,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ge(t,"beforeChange",t,r),t.cm&&ge(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 Xo(t,e,n){if(t.cm){if(!t.cm.curOp)return Pi(t.cm,Xo)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(be(t,"beforeChange")||t.cm&&be(t.cm,"beforeChange"))||(e=Ko(t,e,!0),e)){var r=Ot&&!n&&Ft(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)Jo(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else Jo(t,e)}}function Jo(t,e){if(1!=e.text.length||""!=e.text[0]||0!=bt(e.from,e.to)){var n=lo(t,e);Co(t,e,n,t.cm?t.cm.curOp.id:NaN),ts(t,e,n,Bt(t,e));var r=[];mo(t,function(t,n){n||-1!=$(r,t.history)||(os(t.history,e),r.push(t.history)),ts(t,e,null,Bt(t,e))})}}function Qo(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,o=t.history,s=t.sel,a="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,c=0;c<a.length;c++)if(i=a[c],n?i.ranges&&!i.equals(t.sel):!i.ranges)break;if(c!=a.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(i=a.pop(),!i.ranges){if(r)return void a.push(i);break}if(Oo(i,l),n&&!i.equals(t.sel))return void $o(t,i,{clearRedo:!1});s=i}var u=[];Oo(s,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=be(t,"beforeChange")||t.cm&&be(t.cm,"beforeChange"),h=function(n){var r=i.changes[n];if(r.origin=e,d&&!Ko(t,r,!1))return a.length=0,{};u.push(ko(t,r));var o=n?lo(t,r):K(a);ts(t,r,o,Mo(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:so(r)});var s=[];mo(t,function(t,e){e||-1!=$(s,t.history)||(os(t.history,r),s.push(t.history)),ts(t,r,null,Mo(t,r))})},f=i.changes.length-1;f>=0;--f){var p=h(f);if(p)return p.v}}}}function Zo(t,e){if(0!=e&&(t.first+=e,t.sel=new no(X(t.sel.ranges,function(t){return new ro(vt(t.anchor.line+e,t.anchor.ch),vt(t.head.line+e,t.head.ch))}),t.sel.primIndex),t.cm)){Mi(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;r<n.viewTo;r++)Ii(t.cm,r,"gutter")}}function ts(t,e,n,r){if(t.cm&&!t.cm.curOp)return Pi(t.cm,ts)(t,e,n,r);if(e.to.line<t.first)Zo(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);Zo(t,i),e={from:vt(t.first,0),to:vt(e.to.line+i,e.to.ch),text:[K(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:vt(o,ct(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=ut(t,e.from,e.to),n||(n=lo(t,e)),t.cm?es(t.cm,e,r):go(t,e,r),Vo(t,n,H)}}function es(t,e,n){var r=t.doc,i=t.display,o=e.from,s=e.to,a=!1,l=o.line;t.options.lineWrapping||(l=ft(Xt(ct(r,o.line))),r.iter(l,s.line+1,function(t){if(t==i.maxLine)return a=!0,!0})),r.sel.contains(e.from,e.to)>-1&&ve(t),go(r,e,n,Nr(t)),t.options.lineWrapping||(r.iter(l,o.line+e.text.length,function(t){var e=ie(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,a=!1)}),a&&(t.curOp.updateMaxLine=!0)),ln(r,o.line),Bi(t,400);var c=e.text.length-(s.line-o.line)-1;e.full?Mi(t):o.line!=s.line||1!=e.text.length||po(t.doc,e)?Mi(t,o.line,s.line+1,c):Ii(t,o.line,"text");var u=be(t,"changes"),d=be(t,"change");if(d||u){var h={from:o,to:s,text:e.text,removed:e.removed,origin:e.origin};d&&An(t,"change",t,h),u&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(h)}t.display.selForContextMenu=null}function ns(t,e,n,r,i){var o;r||(r=n),bt(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof e&&(e=t.splitLines(e)),Xo(t,{from:n,to:r,text:e,origin:i})}function rs(t,e,n,r){n<t.line?t.line+=r:e<t.line&&(t.line=e,t.ch=0)}function is(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i],s=!0;if(o.ranges){o.copied||(o=t[i]=o.deepCopy(),o.copied=!0);for(var a=0;a<o.ranges.length;a++)rs(o.ranges[a].anchor,e,n,r),rs(o.ranges[a].head,e,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=vt(c.from.line+r,c.from.ch),c.to=vt(c.to.line+r,c.to.ch);else if(e<=c.to.line){s=!1;break}}s||(t.splice(0,i+1),i=0)}}}function os(t,e){var n=e.from.line,r=e.to.line,i=e.text.length-(r-n)-1;is(t.done,n,r,i),is(t.undone,n,r,i)}function ss(t,e,n,r){var i=e,o=e;return"number"==typeof e?o=ct(t,xt(t,e)):i=ft(e),null==i?null:(r(o,i)&&t.cm&&Ii(t.cm,i,n),o)}function as(t){var e=this;this.lines=t,this.parent=null;for(var n=0,r=0;r<t.length;++r)t[r].parent=e,n+=t[r].height;this.height=n}function ls(t){var e=this;this.children=t;for(var n=0,r=0,i=0;i<t.length;++i){var o=t[i];n+=o.chunkSize(),r+=o.height,o.parent=e}this.size=n,this.height=r,this.parent=null}ro.prototype.from=function(){return _t(this.anchor,this.head)},ro.prototype.to=function(){return kt(this.anchor,this.head)},ro.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},as.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=this,r=t,i=t+e;r<i;++r){var o=n.lines[r];n.height-=o.height,dn(o),An(o,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){var r=this;this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var i=0;i<e.length;++i)e[i].parent=r},iterN:function(t,e,n){for(var r=this,i=t+e;t<i;++t)if(n(r.lines[t]))return!0}},ls.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){var n=this;this.size-=e;for(var r=0;r<this.children.length;++r){var i=n.children[r],o=i.chunkSize();if(t<o){var s=Math.min(e,o-t),a=i.height;if(i.removeInner(t,s),n.height-=a-i.height,o==s&&(n.children.splice(r--,1),i.parent=null),0==(e-=s))break;t=0}else t-=o}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof as))){var l=[];this.collapse(l),this.children=[new as(l)],this.children[0].parent=this}},collapse:function(t){for(var e=this,n=0;n<this.children.length;++n)e.children[n].collapse(t)},insertInner:function(t,e,n){var r=this;this.size+=e.length,this.height+=n;for(var i=0;i<this.children.length;++i){var o=r.children[i],s=o.chunkSize();if(t<=s){if(o.insertInner(t,e,n),o.lines&&o.lines.length>50){for(var a=o.lines.length%25+25,l=a;l<o.lines.length;){var c=new as(o.lines.slice(l,l+=25));o.height-=c.height,r.children.splice(++i,0,c),c.parent=r}o.lines=o.lines.slice(0,a),r.maybeSpill()}break}t-=s}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=t.children.splice(t.children.length-5,5),n=new ls(e);if(t.parent){t.size-=n.size,t.height-=n.height;var r=$(t.parent.children,t);t.parent.children.splice(r+1,0,n)}else{var i=new ls(t.children);i.parent=t,t.children=[i,n],t=i}n.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=this,i=0;i<this.children.length;++i){var o=r.children[i],s=o.chunkSize();if(t<s){var a=Math.min(e,s-t);if(o.iterN(t,a,n))return!0;if(0==(e-=a))break;t=0}else t-=s}}};var cs=function(t,e,n){var r=this;if(n)for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);this.doc=t,this.node=e};function us(t,e,n){re(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&ni(t,n)}function ds(t,e,n,r){var i=new cs(t,n,r),o=t.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),ss(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,o&&!ee(t,e)){var r=re(e)<t.scrollTop;ht(e,e.height+Hn(i)),r&&ni(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&An(o,"lineWidgetAdded",o,i,"number"==typeof e?e:ft(e)),i}cs.prototype.clear=function(){var t=this,e=this.doc.cm,n=this.line.widgets,r=this.line,i=ft(r);if(null!=i&&n){for(var o=0;o<n.length;++o)n[o]==t&&n.splice(o--,1);n.length||(r.widgets=null);var s=Hn(this);ht(r,Math.max(0,r.height-s)),e&&(Oi(e,function(){us(e,r,-s),Ii(e,i,"widget")}),An(e,"lineWidgetCleared",e,this,i))}},cs.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Hn(this)-e;i&&(ee(this.doc,r)||ht(r,r.height+i),n&&Oi(n,function(){n.curOp.forceUpdate=!0,us(n,r,i),An(n,"lineWidgetChanged",n,t,ft(r))}))},ye(cs);var hs=0,fs=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++hs};function ps(t,e,n,r,i){if(r&&r.shared)return ms(t,e,n,r,i);if(t.cm&&!t.cm.curOp)return Pi(t.cm,ps)(t,e,n,r,i);var o=new fs(t,i),s=bt(e,n);if(r&&B(r,o,!1),s>0||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=E("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Kt(t,e.line,e,n,o)||e.line!=n.line&&Kt(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Et()}o.addToHistory&&Co(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var a,l=e.line,c=t.cm;if(t.iter(l,n.line+1,function(t){c&&o.collapsed&&!c.options.lineWrapping&&Xt(t)==c.display.maxLine&&(a=!0),o.collapsed&&l!=e.line&&ht(t,0),jt(t,new Mt(o,l==e.line?e.ch:null,l==n.line?n.ch:null)),++l}),o.collapsed&&t.iter(e.line,n.line+1,function(e){ee(t,e)&&ht(e,0)}),o.clearOnEnter&&he(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(At(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++hs,o.atomic=!0),c){if(a&&(c.curOp.updateMaxLine=!0),o.collapsed)Mi(c,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=e.line;u<=n.line;u++)Ii(c,u,"text");o.atomic&&Ho(c.doc),An(c,"markerAdded",c,o)}return o}fs.prototype.clear=function(){var t=this;if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&yi(e),be(this,"clear")){var r=this.find();r&&An(this,"clear",r.from,r.to)}for(var i=null,o=null,s=0;s<this.lines.length;++s){var a=t.lines[s],l=It(a.markedSpans,t);e&&!t.collapsed?Ii(e,ft(a),"text"):e&&(null!=l.to&&(o=ft(a)),null!=l.from&&(i=ft(a))),a.markedSpans=Nt(a.markedSpans,l),null==l.from&&t.collapsed&&!ee(t.doc,a)&&e&&ht(a,Ar(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var u=Xt(t.lines[c]),d=ie(u);d>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=d,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&Mi(e,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ho(e.doc)),e&&An(e,"markerCleared",e,this,i,o),n&&wi(e),this.parent&&this.parent.clear()}},fs.prototype.find=function(t,e){var n,r,i=this;null==t&&"bookmark"==this.type&&(t=1);for(var o=0;o<this.lines.length;++o){var s=i.lines[o],a=It(s.markedSpans,i);if(null!=a.from&&(n=vt(e?s:ft(s),a.from),-1==t))return n;if(null!=a.to&&(r=vt(e?s:ft(s),a.to),1==t))return r}return n&&{from:n,to:r}},fs.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,r=this.doc.cm;e&&r&&Oi(r,function(){var i=e.line,o=ft(e.line),s=er(r,o);if(s&&(ur(s),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!ee(n.doc,i)&&null!=n.height){var a=n.height;n.height=null;var l=Hn(n)-a;l&&ht(i,i.height+l)}An(r,"markerChanged",r,t)})},fs.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=$(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},fs.prototype.detachLine=function(t){if(this.lines.splice($(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},ye(fs);var gs=function(t,e){var n=this;this.markers=t,this.primary=e;for(var r=0;r<t.length;++r)t[r].parent=n};function ms(t,e,n,r,i){r=B(r),r.shared=!1;var o=[ps(t,e,n,r,i)],s=o[0],a=r.widgetNode;return mo(t,function(t){a&&(r.widgetNode=a.cloneNode(!0)),o.push(ps(t,Ct(t,e),Ct(t,n),r,i));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;s=K(o)}),new gs(o,s)}function vs(t){return t.findMarks(vt(t.first,0),t.clipPos(vt(t.lastLine())),function(t){return t.parent})}function bs(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=r.find(),o=t.clipPos(i.from),s=t.clipPos(i.to);if(bt(o,s)){var a=ps(t,o,s,r.primary,r.primary.type);r.markers.push(a),a.parent=r}}}function ys(t){for(var e=function(e){var n=t[e],r=[n.primary.doc];mo(n.primary.doc,function(t){return r.push(t)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==$(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<t.length;n++)e(n)}gs.prototype.clear=function(){var t=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)t.markers[e].clear();An(this,"clear")}},gs.prototype.find=function(t,e){return this.primary.find(t,e)},ye(gs);var ws=0,ks=function(t,e,n,r,i){if(!(this instanceof ks))return new ks(t,e,n,r,i);null==n&&(n=0),ls.call(this,[new as([new cn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=vt(n,0);this.sel=oo(o),this.history=new wo(null),this.id=++ws,this.modeOption=e,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),go(this,{from:o,to:o,text:t}),$o(this,oo(o),H)};ks.prototype=Z(ls.prototype,{constructor:ks,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=dt(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:Ei(function(t){var e=vt(this.first,0),n=this.first+this.size-1;Xo(this,{from:e,to:vt(n,ct(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&ii(this.cm,0,0),$o(this,oo(e),H)}),replaceRange:function(t,e,n,r){e=Ct(this,e),n=n?Ct(this,n):e,ns(this,t,e,n,r)},getRange:function(t,e,n){var r=ut(this,Ct(this,t),Ct(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(gt(this,t))return ct(this,t)},getLineNumber:function(t){return ft(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=ct(this,t)),Xt(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return Ct(this,t)},getCursor:function(t){var e,n=this.sel.primary();return e=null==t||"head"==t?n.head:"anchor"==t?n.anchor:"end"==t||"to"==t||!1===t?n.to():n.from(),e},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ei(function(t,e,n){Bo(this,Ct(this,"number"==typeof t?vt(t,e||0):t),null,n)}),setSelection:Ei(function(t,e,n){Bo(this,Ct(this,t),Ct(this,e||t),n)}),extendSelection:Ei(function(t,e,n){jo(this,Ct(this,t),e&&Ct(this,e),n)}),extendSelections:Ei(function(t,e){Do(this,Tt(this,t),e)}),extendSelectionsBy:Ei(function(t,e){var n=X(this.sel.ranges,t);Do(this,Tt(this,n),e)}),setSelections:Ei(function(t,e,n){var r=this;if(t.length){for(var i=[],o=0;o<t.length;o++)i[o]=new ro(Ct(r,t[o].anchor),Ct(r,t[o].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),$o(this,io(this.cm,i,e),n)}}),addSelection:Ei(function(t,e,n){var r=this.sel.ranges.slice(0);r.push(new ro(Ct(this,t),Ct(this,e||t))),$o(this,io(this.cm,r,r.length-1),n)}),getSelection:function(t){for(var e,n=this,r=this.sel.ranges,i=0;i<r.length;i++){var o=ut(n,r[i].from(),r[i].to());e=e?e.concat(o):o}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=this,n=[],r=this.sel.ranges,i=0;i<r.length;i++){var o=ut(e,r[i].from(),r[i].to());!1!==t&&(o=o.join(t||e.lineSeparator())),n[i]=o}return n},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=this,i=[],o=this.sel,s=0;s<o.ranges.length;s++){var a=o.ranges[s];i[s]={from:a.from(),to:a.to(),text:r.splitLines(t[s]),origin:n}}for(var l=e&&"end"!=e&&uo(this,i,e),c=i.length-1;c>=0;c--)Xo(r,i[c]);l?Fo(this,l):this.cm&&ri(this.cm)}),undo:Ei(function(){Qo(this,"undo")}),redo:Ei(function(){Qo(this,"redo")}),undoSelection:Ei(function(){Qo(this,"undo",!0)}),redoSelection:Ei(function(){Qo(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(){this.history=new wo(this.history.maxGeneration)},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:Io(this.history.done),undone:Io(this.history.undone)}},setHistory:function(t){var e=this.history=new wo(this.history.maxGeneration);e.done=Io(t.done.slice(0),null,!0),e.undone=Io(t.undone.slice(0),null,!0)},setGutterMarker:Ei(function(t,e,n){return ss(this,t,"gutter",function(t){var r=t.gutterMarkers||(t.gutterMarkers={});return r[e]=n,!n&&rt(r)&&(t.gutterMarkers=null),!0})}),clearGutter:Ei(function(t){var e=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[t]&&ss(e,n,"gutter",function(){return n.gutterMarkers[t]=null,rt(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(t){var e;if("number"==typeof t){if(!gt(this,t))return null;if(e=t,t=ct(this,t),!t)return null}else if(e=ft(t),null==e)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 ss(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 ss(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 o=i.match(C(n));if(!o)return!1;var s=o.index+o[0].length;t[r]=i.slice(0,o.index)+(o.index&&s!=i.length?" ":"")+i.slice(s)||null}return!0})}),addLineWidget:Ei(function(t,e,n){return ds(this,t,e,n)}),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return ps(this,Ct(this,t),Ct(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 t=Ct(this,t),ps(this,t,t,n,"bookmark")},findMarksAt:function(t){t=Ct(this,t);var e=[],n=ct(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=Ct(this,t),e=Ct(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,function(o){var s=o.markedSpans;if(s)for(var a=0;a<s.length;a++){var l=s[a];null!=l.to&&i==t.line&&t.ch>=l.to||null==l.from&&i!=t.line||null!=l.from&&i==e.line&&l.from>=e.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.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 o=i.text.length+r;if(o>t)return e=t,!0;t-=o,++n}),Ct(this,vt(n,e))},indexFromPos:function(t){t=Ct(this,t);var e=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 ks(dt(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 ks(dt(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}],bs(r,vs(this)),r},unlinkDoc:function(t){var e=this;if(t instanceof La&&(t=t.doc),this.linked)for(var n=0;n<this.linked.length;++n){var r=e.linked[n];if(r.doc==t){e.linked.splice(n,1),t.unlinkDoc(e),ys(vs(e));break}}if(t.history==this.history){var i=[t.id];mo(t,function(t){return i.push(t.id)},!0),t.history=new wo(null),t.history.done=Io(this.history.done,i),t.history.undone=Io(this.history.undone,i)}},iterLinkedDocs:function(t){mo(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Me(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Ei(function(t){"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(t){return t.order=null}),this.cm&&yo(this.cm))})}),ks.prototype.eachLine=ks.prototype.iter;var _s=0;function xs(t){var e=this;if(Ts(e),!me(e,t)&&!Wn(e.display,t)){we(t),s&&(_s=+new Date);var n=Dr(e,t,!0),r=t.dataTransfer.files;if(n&&!e.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,l=function(t,r){if(!e.options.allowDropFileTypes||-1!=$(e.options.allowDropFileTypes,t.type)){var s=new FileReader;s.onload=Pi(e,function(){var t=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(t)&&(t=""),o[r]=t,++a==i){n=Ct(e.doc,n);var l={from:n,to:n,text:e.doc.splitLines(o.join(e.doc.lineSeparator())),origin:"paste"};Xo(e.doc,l),Fo(e.doc,oo(n,so(l)))}}),s.readAsText(t)}},c=0;c<i;++c)l(r[c],c);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 d;if(e.state.draggingText&&!e.state.draggingText.copy&&(d=e.listSelections()),Vo(e.doc,oo(n,n)),d)for(var h=0;h<d.length;++h)ns(e.doc,"",d[h].anchor,d[h].head,"drag");e.replaceSelection(u,"around","paste"),e.display.input.focus()}}catch(t){}}}}function Cs(t,e){if(s&&(!t.state.draggingText||+new Date-_s<100))xe(e);else if(!me(t,e)&&!Wn(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!h)){var n=A("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function Ss(t,e){var n=Dr(t,e);if(n){var r=document.createDocumentFragment();Fr(t,n,r),t.display.dragCursor||(t.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),P(t.display.dragCursor,r)}}function Ts(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Os(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 Ps=!1;function As(){Ps||(Es(),Ps=!0)}function Es(){var t;he(window,"resize",function(){null==t&&(t=setTimeout(function(){t=null,Os(Ms)},100))}),he(window,"blur",function(){return Os(qr)})}function Ms(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var Is={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:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ns=0;Ns<10;Ns++)Is[Ns+48]=Is[Ns+96]=String(Ns);for(var js=65;js<=90;js++)Is[js]=String.fromCharCode(js);for(var Ds=1;Ds<=12;Ds++)Is[Ds+111]=Is[Ds+63235]="F"+Ds;var Ls={};function Bs(t){var e,n,r,i,o=t.split(/-(?!$)/);t=o[o.length-1];for(var s=0;s<o.length-1;s++){var a=o[s];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))e=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);r=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),i&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function Rs(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=X(n.split(" "),Bs),o=0;o<i.length;o++){var s=void 0,a=void 0;o==i.length-1?(a=i.join(" "),s=r):(a=i.slice(0,o+1).join(" "),s="...");var l=e[a];if(l){if(l!=s)throw new Error("Inconsistent bindings for "+a)}else e[a]=s}delete t[n]}for(var c in e)t[c]=e[c];return t}function Fs(t,e,n,r){e=Hs(e);var i=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 Fs(t,e.fallthrough,n,r);for(var o=0;o<e.fallthrough.length;o++){var s=Fs(t,e.fallthrough[o],n,r);if(s)return s}}}function $s(t){var e="string"==typeof t?t:Is[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function Vs(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)&&"Cmd"!=r&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=r&&(t="Shift-"+t),t}function zs(t,e){if(d&&34==t.keyCode&&t["char"])return!1;var n=Is[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),Vs(n,t,e))}function Hs(t){return"string"==typeof t?Ls[t]:t}function Ws(t,e){for(var n=t.doc.sel.ranges,r=[],i=0;i<n.length;i++){var o=e(n[i]);while(r.length&&bt(o.from,K(r).to)<=0){var s=r.pop();if(bt(s.from,o.from)<0){o.from=s.from;break}}r.push(o)}Oi(t,function(){for(var e=r.length-1;e>=0;e--)ns(t.doc,"",r[e].from,r[e].to,"+delete");ri(t)})}function Us(t,e,n){var r=st(t.text,e+n,n);return r<0||r>t.text.length?null:r}function qs(t,e,n){var r=Us(t,e.ch,n);return null==r?null:new vt(e.line,r,n<0?"after":"before")}function Gs(t,e,n,r,i){if(t){var o=ue(n,e.doc.direction);if(o){var s,a=i<0?K(o):o[0],l=i<0==(1==a.level),c=l?"after":"before";if(a.level>0||"rtl"==e.doc.direction){var u=nr(e,n);s=i<0?n.text.length-1:0;var d=rr(e,u,s).top;s=at(function(t){return rr(e,u,t).top==d},i<0==(1==a.level)?a.from:a.to-1,s),"before"==c&&(s=Us(n,s,1))}else s=i<0?a.to:a.from;return new vt(r,s,c)}}return new vt(r,i<0?n.text.length:0,i<0?"before":"after")}function Ys(t,e,n,r){var i=ue(e,t.doc.direction);if(!i)return qs(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 o=le(i,n.ch,n.sticky),s=i[o];if("ltr"==t.doc.direction&&s.level%2==0&&(r>0?s.to>n.ch:s.from<n.ch))return qs(e,n,r);var a,l=function(t,n){return Us(e,t instanceof vt?t.ch:t,n)},c=function(n){return t.options.lineWrapping?(a=a||nr(t,e),Cr(t,e,a,n)):{begin:0,end:e.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==t.doc.direction||1==s.level){var d=1==s.level==r<0,h=l(n,d?1:-1);if(null!=h&&(d?h<=s.to&&h<=u.end:h>=s.from&&h>=u.begin)){var f=d?"before":"after";return new vt(n.line,h,f)}}var p=function(t,e,r){for(var o=function(t,e){return e?new vt(n.line,l(t,1),"before"):new vt(n.line,t,"after")};t>=0&&t<i.length;t+=e){var s=i[t],a=e>0==(1!=s.level),c=a?r.begin:l(r.end,-1);if(s.from<=c&&c<s.to)return o(c,a);if(c=a?s.from:l(s.to,-1),r.begin<=c&&c<r.end)return o(c,a)}},g=p(o+r,r,u);if(g)return g;var m=r>0?u.end:l(u.begin,-1);return null==m||r>0&&m==e.text.length||(g=p(r>0?0:i.length-1,r,c(m)),!g)?null:g}Ls.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"},Ls.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"},Ls.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"},Ls.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"]},Ls["default"]=b?Ls.macDefault:Ls.pcDefault;var Ks={selectAll:Yo,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),H)},killLine:function(t){return Ws(t,function(e){if(e.empty()){var n=ct(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:vt(e.head.line+1,0)}:{from:e.head,to:vt(e.head.line,n)}}return{from:e.from(),to:e.to()}})},deleteLine:function(t){return Ws(t,function(e){return{from:vt(e.from().line,0),to:Ct(t.doc,vt(e.to().line+1,0))}})},delLineLeft:function(t){return Ws(t,function(t){return{from:vt(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(t){return Ws(t,function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return{from:r,to:e.from()}})},delWrappedLineRight:function(t){return Ws(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(vt(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(vt(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(e){return Xs(t,e.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(e){return Qs(t,e.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(e){return Js(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")},U)},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")},U)},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/)?Qs(t,e.head):r},U)},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,"char")},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 o=n[i].from(),s=R(t.getLine(o.line),o.ch,r);e.push(Y(r-s%r))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Oi(t,function(){for(var e=t.listSelections(),n=[],r=0;r<e.length;r++)if(e[r].empty()){var i=e[r].head,o=ct(t.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new vt(i.line,i.ch-1)),i.ch>0)i=new vt(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),vt(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var s=ct(t.doc,i.line-1).text;s&&(i=new vt(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+s.charAt(s.length-1),vt(i.line-1,s.length-1),i,"+transpose"))}n.push(new ro(i,i))}t.setSelections(n)})},newlineAndIndent:function(t){return Oi(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);ri(t)})},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Xs(t,e){var n=ct(t.doc,e),r=Xt(n);return r!=n&&(e=ft(r)),Gs(!0,t,r,e,1)}function Js(t,e){var n=ct(t.doc,e),r=Jt(n);return r!=n&&(e=ft(r)),Gs(!0,t,n,e,-1)}function Qs(t,e){var n=Xs(t,e.line),r=ct(t.doc,n.line),i=ue(r,t.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),s=e.line==n.line&&e.ch<=o&&e.ch;return vt(n.line,s?0:o,n.sticky)}return n}function Zs(t,e,n){if("string"==typeof e&&(e=Ks[e],!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)!=z}finally{t.display.shift=r,t.state.suppressEdits=!1}return i}function ta(t,e,n){for(var r=0;r<t.state.keyMaps.length;r++){var i=Fs(e,t.state.keyMaps[r],n,t);if(i)return i}return t.options.extraKeys&&Fs(e,t.options.extraKeys,n,t)||Fs(e,t.options.keyMap,n,t)}var ea=new F;function na(t,e,n,r){var i=t.state.keySeq;if(i){if($s(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:ea.set(50,function(){t.state.keySeq==i&&(t.state.keySeq=null,t.display.input.reset())}),ra(t,i+" "+e,n,r))return!0}return ra(t,e,n,r)}function ra(t,e,n,r){var i=ta(t,e,r);return"multi"==i&&(t.state.keySeq=e),"handled"==i&&An(t,"keyHandled",t,e,n),"handled"!=i&&"multi"!=i||(we(n),zr(t)),!!i}function ia(t,e){var n=zs(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?na(t,"Shift-"+n,e,function(e){return Zs(t,e,!0)})||na(t,n,e,function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return Zs(t,e)}):na(t,n,e,function(e){return Zs(t,e)}))}function oa(t,e,n){return na(t,"'"+n+"'",e,function(e){return Zs(t,e,!0)})}var sa=null;function aa(t){var e=this;if(e.curOp.focus=I(),!me(e,t)){s&&a<11&&27==t.keyCode&&(t.returnValue=!1);var n=t.keyCode;e.display.shift=16==n||t.shiftKey;var r=ia(e,t);d&&(sa=r?n:null,!r&&88==n&&!Ne&&(b?t.metaKey:t.ctrlKey)&&e.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||la(e)}}function la(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(T(e,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n))}N(e,"CodeMirror-crosshair"),he(document,"keyup",n),he(document,"mouseover",n)}function ca(t){16==t.keyCode&&(this.doc.sel.shift=!1),me(this,t)}function ua(t){var e=this;if(!(Wn(e.display,t)||me(e,t)||t.ctrlKey&&!t.altKey||b&&t.metaKey)){var n=t.keyCode,r=t.charCode;if(d&&n==sa)return sa=null,void we(t);if(!d||t.which&&!(t.which<10)||!ia(e,t)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(oa(e,t,i)||e.display.input.onKeyPress(t))}}}var da,ha,fa=400,pa=function(t,e,n){this.time=t,this.pos=e,this.button=n};function ga(t,e){var n=+new Date;return ha&&ha.compare(n,t,e)?(da=ha=null,"triple"):da&&da.compare(n,t,e)?(ha=new pa(n,t,e),da=null,"double"):(da=new pa(n,t,e),ha=null,"single")}function ma(t){var e=this,n=e.display;if(!(me(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,Wn(n,t))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!Sa(e,t)){var r=Dr(e,t),i=Se(t),o=r?ga(r,i):"single";window.focus(),1==i&&e.state.selectingText&&e.state.selectingText(t),r&&va(e,i,r,o,t)||(1==i?r?ya(e,r,o,t):Ce(t)==n.scroller&&we(t):2==i?(r&&jo(e.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(x?e.display.input.onContextMenu(t):Wr(e)))}}function va(t,e,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),o=(1==e?"Left":2==e?"Middle":"Right")+o,na(t,Vs(o,i),i,function(e){if("string"==typeof e&&(e=Ks[e]),!e)return!1;var r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r=e(t,n)!=z}finally{t.state.suppressEdits=!1}return r})}function ba(t,e,n){var r=t.getOption("configureMouse"),i=r?r(t,e,n):{};if(null==i.unit){var o=y?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"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=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}function ya(t,e,n,r){s?setTimeout(L(Hr,t),0):t.curOp.focus=I();var i,o=ba(t,n,r),a=t.doc.sel;t.options.dragDrop&&Pe&&!t.isReadOnly()&&"single"==n&&(i=a.contains(e))>-1&&(bt((i=a.ranges[i]).from(),e)<0||e.xRel>0)&&(bt(i.to(),e)>0||e.xRel<0)?wa(t,r,e,o):_a(t,r,e,o)}function wa(t,e,n,r){var i=t.display,o=!1,c=Pi(t,function(e){l&&(i.scroller.draggable=!1),t.state.draggingText=!1,pe(i.wrapper.ownerDocument,"mouseup",c),pe(i.wrapper.ownerDocument,"mousemove",u),pe(i.scroller,"dragstart",d),pe(i.scroller,"drop",c),o||(we(e),r.addNew||jo(t.doc,n,null,null,r.extend),l||s&&9==a?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),u=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),t.state.draggingText=c,c.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),he(i.wrapper.ownerDocument,"mouseup",c),he(i.wrapper.ownerDocument,"mousemove",u),he(i.scroller,"dragstart",d),he(i.scroller,"drop",c),Wr(t),setTimeout(function(){return i.input.focus()},20)}function ka(t,e,n){if("char"==n)return new ro(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new ro(vt(e.line,0),Ct(t.doc,vt(e.line+1,0)));var r=n(t,e);return new ro(r.from,r.to)}function _a(t,e,n,r){var i=t.display,o=t.doc;we(e);var s,a,l=o.sel,c=l.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(n),s=a>-1?c[a]:new ro(n,n)):(s=o.sel.primary(),a=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new ro(n,n)),n=Dr(t,e,!0,!0),a=-1;else{var u=ka(t,n,r.unit);s=r.extend?No(s,u.anchor,u.head,r.extend):u}r.addNew?-1==a?(a=c.length,$o(o,io(t,c.concat([s]),a),{scroll:!1,origin:"*mouse"})):c.length>1&&c[a].empty()&&"char"==r.unit&&!r.extend?($o(o,io(t,c.slice(0,a).concat(c.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Lo(o,a,s,W):(a=0,$o(o,new no([s],0),W),l=o.sel);var d=n;function h(e){if(0!=bt(d,e))if(d=e,"rectangle"==r.unit){for(var i=[],c=t.options.tabSize,u=R(ct(o,n.line).text,n.ch,c),h=R(ct(o,e.line).text,e.ch,c),f=Math.min(u,h),p=Math.max(u,h),g=Math.min(n.line,e.line),m=Math.min(t.lastLine(),Math.max(n.line,e.line));g<=m;g++){var v=ct(o,g).text,b=q(v,f,c);f==p?i.push(new ro(vt(g,b),vt(g,b))):v.length>b&&i.push(new ro(vt(g,b),vt(g,q(v,p,c))))}i.length||i.push(new ro(n,n)),$o(o,io(t,l.ranges.slice(0,a).concat(i),a),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var y,w=s,k=ka(t,e,r.unit),_=w.anchor;bt(k.anchor,_)>0?(y=k.head,_=_t(w.from(),k.anchor)):(y=k.anchor,_=kt(w.to(),k.head));var x=l.ranges.slice(0);x[a]=xa(t,new ro(Ct(o,_),y)),$o(o,io(t,x,a),W)}}var f=i.wrapper.getBoundingClientRect(),p=0;function g(e){var n=++p,s=Dr(t,e,!0,"rectangle"==r.unit);if(s)if(0!=bt(s,d)){t.curOp.focus=I(),h(s);var a=Kr(i,o);(s.line>=a.to||s.line<a.from)&&setTimeout(Pi(t,function(){p==n&&g(e)}),150)}else{var l=e.clientY<f.top?-20:e.clientY>f.bottom?20:0;l&&setTimeout(Pi(t,function(){p==n&&(i.scroller.scrollTop+=l,g(e))}),50)}}function m(e){t.state.selectingText=!1,p=1/0,we(e),i.input.focus(),pe(i.wrapper.ownerDocument,"mousemove",v),pe(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var v=Pi(t,function(t){0!==t.buttons&&Se(t)?g(t):m(t)}),b=Pi(t,m);t.state.selectingText=b,he(i.wrapper.ownerDocument,"mousemove",v),he(i.wrapper.ownerDocument,"mouseup",b)}function xa(t,e){var n=e.anchor,r=e.head,i=ct(t.doc,n.line);if(0==bt(n,r)&&n.sticky==r.sticky)return e;var o=ue(i);if(!o)return e;var s=le(o,n.ch,n.sticky),a=o[s];if(a.from!=n.ch&&a.to!=n.ch)return e;var l,c=s+(a.from==n.ch==(1!=a.level)?0:1);if(0==c||c==o.length)return e;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=le(o,r.ch,r.sticky),d=u-s||(r.ch-n.ch)*(1==a.level?-1:1);l=u==c-1||u==c?d<0:d>0}var h=o[c+(l?-1:0)],f=l==(1==h.level),p=f?h.from:h.to,g=f?"after":"before";return n.ch==p&&n.sticky==g?e:new ro(new vt(n.line,p,g),r)}function Ca(t,e,n,r){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(e){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&we(e);var s=t.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!be(t,n))return _e(e);o-=a.top-s.viewOffset;for(var l=0;l<t.options.gutters.length;++l){var c=s.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i){var u=pt(t.doc,o),d=t.options.gutters[l];return ge(t,n,t,u,d,e),_e(e)}}}function Sa(t,e){return Ca(t,e,"gutterClick",!0)}function Ta(t,e){Wn(t.display,e)||Oa(t,e)||me(t,e,"contextmenu")||x||t.display.input.onContextMenu(e)}function Oa(t,e){return!!be(t,"gutterContextMenu")&&Ca(t,e,"gutterContextMenu",!1)}function Pa(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hr(t)}pa.prototype.compare=function(t,e,n){return this.time+fa>t&&0==bt(e,this.pos)&&n==this.button};var Aa={toString:function(){return"CodeMirror.Init"}},Ea={},Ma={};function Ia(t){var e=t.optionHandlers;function n(n,r,i,o){t.defaults[n]=r,i&&(e[n]=o?function(t,e,n){n!=Aa&&i(t,e,n)}:i)}t.defineOption=n,t.Init=Aa,n("value","",function(t,e){return t.setValue(e)},!0),n("mode",null,function(t,e){t.doc.modeOption=e,ho(t)},!0),n("indentUnit",2,ho,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(t){fo(t),hr(t),Mi(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 o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,n.push(vt(r,o))}r++});for(var i=n.length-1;i>=0;i--)ns(t.doc,e,n[i],vt(n[i].line,n[i].ch+e.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Aa&&t.refresh()}),n("specialCharPlaceholder",mn,function(t){return t.refresh()},!0),n("electricChars",!0),n("inputStyle",v?"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",!w),n("wholeLineUpdateBefore",!0),n("theme","default",function(t){Pa(t),Na(t)},!0),n("keyMap","default",function(t,e,n){var r=Hs(e),i=n!=Aa&&Hs(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Da,!0),n("gutters",[],function(t){Xi(t.options),Na(t)},!0),n("fixedGutter",!0,function(t,e){t.display.gutters.style.left=e?Ir(t.display)+"px":"0",t.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(t){return pi(t)},!0),n("scrollbarStyle","native",function(t){vi(t),pi(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)},!0),n("lineNumbers",!1,function(t){Xi(t.options),Na(t)},!0),n("firstLineNumber",1,Na,!0),n("lineNumberFormatter",function(t){return t},Na,!0),n("showCursorWhenSelecting",!1,Br,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(t,e){"nocursor"==e&&(qr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)}),n("disableInput",!1,function(t,e){e||t.display.input.reset()},!0),n("dragDrop",!0,ja),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Br,!0),n("singleCursorHeightPerLine",!0,Br,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,fo,!0),n("addModeClass",!1,fo,!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,fo,!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)}function Na(t){Ki(t),Mi(t),Xr(t)}function ja(t,e,n){var r=n&&n!=Aa;if(!e!=!r){var i=t.display.dragFunctions,o=e?he:pe;o(t.display.scroller,"dragstart",i.start),o(t.display.scroller,"dragenter",i.enter),o(t.display.scroller,"dragover",i.over),o(t.display.scroller,"dragleave",i.leave),o(t.display.scroller,"drop",i.drop)}}function Da(t){t.options.lineWrapping?(N(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(T(t.display.wrapper,"CodeMirror-wrap"),oe(t)),jr(t),Mi(t),hr(t),setTimeout(function(){return pi(t)},100)}function La(t,e){var n=this;if(!(this instanceof La))return new La(t,e);this.options=e=e?B(e):{},B(Ea,e,!1),Xi(e);var r=e.value;"string"==typeof r?r=new ks(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new La.inputStyles[e.inputStyle](this),o=this.display=new lt(t,r,i);for(var c in o.wrapper.CodeMirror=this,Ki(this),Pa(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vi(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 F,keySeq:null,specialChars:null},e.autofocus&&!v&&o.input.focus(),s&&a<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Ba(this),As(),yi(this),this.curOp.forceUpdate=!0,vo(this,r),e.autofocus&&!v||this.hasFocus()?setTimeout(L(Ur,this),20):qr(this),Ma)Ma.hasOwnProperty(c)&&Ma[c](n,e[c],Aa);Jr(this),e.finishInit&&e.finishInit(this);for(var u=0;u<Ra.length;++u)Ra[u](n);wi(this),l&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Ba(t){var e=t.display;he(e.scroller,"mousedown",Pi(t,ma)),he(e.scroller,"dblclick",s&&a<11?Pi(t,function(e){if(!me(t,e)){var n=Dr(t,e);if(n&&!Sa(t,e)&&!Wn(t.display,e)){we(e);var r=t.findWordAt(n);jo(t.doc,r.anchor,r.head)}}}):function(e){return me(t,e)||we(e)}),he(e.scroller,"contextmenu",function(e){return Ta(t,e)});var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout(function(){return e.activeTouch=null},1e3),r=e.activeTouch,r.end=+new Date)}function o(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}function l(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}he(e.scroller,"touchstart",function(i){if(!me(t,i)&&!o(i)&&!Sa(t,i)){e.input.ensurePolled(),clearTimeout(n);var s=+new Date;e.activeTouch={start:s,moved:!1,prev:s-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}}),he(e.scroller,"touchmove",function(){e.activeTouch&&(e.activeTouch.moved=!0)}),he(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||l(r,r.prev)?new ro(s,s):!r.prev.prev||l(r,r.prev.prev)?t.findWordAt(s):new ro(vt(s.line,0),Ct(t.doc,vt(s.line+1,0))),t.setSelection(o.anchor,o.head),t.focus(),we(n)}i()}),he(e.scroller,"touchcancel",i),he(e.scroller,"scroll",function(){e.scroller.clientHeight&&(li(t,e.scroller.scrollTop),ui(t,e.scroller.scrollLeft,!0),ge(t,"scroll",t))}),he(e.scroller,"mousewheel",function(e){return eo(t,e)}),he(e.scroller,"DOMMouseScroll",function(e){return eo(t,e)}),he(e.wrapper,"scroll",function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0}),e.dragFunctions={enter:function(e){me(t,e)||xe(e)},over:function(e){me(t,e)||(Ss(t,e),xe(e))},start:function(e){return Cs(t,e)},drop:Pi(t,xs),leave:function(e){me(t,e)||Ts(t)}};var c=e.input.getField();he(c,"keyup",function(e){return ca.call(t,e)}),he(c,"keydown",Pi(t,aa)),he(c,"keypress",Pi(t,ua)),he(c,"focus",function(e){return Ur(t,e)}),he(c,"blur",function(e){return qr(t,e)})}La.defaults=Ea,La.optionHandlers=Ma;var Ra=[];function Fa(t,e,n,r){var i,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Qe(t,e).state:n="prev");var s=t.options.tabSize,a=ct(o,e),l=R(a.text,null,s);a.stateAfter&&(a.stateAfter=null);var c,u=a.text.match(/^\s*/)[0];if(r||/\S/.test(a.text)){if("smart"==n&&(c=o.mode.indent(i,a.text.slice(u.length),a.text),c==z||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>o.first?R(ct(o,e-1).text,null,s):0:"add"==n?c=l+t.options.indentUnit:"subtract"==n?c=l-t.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",h=0;if(t.options.indentWithTabs)for(var f=Math.floor(c/s);f;--f)h+=s,d+="\t";if(h<c&&(d+=Y(c-h)),d!=u)return ns(o,d,vt(e,0),vt(e,u.length),"+input"),a.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==e&&g.head.ch<u.length){var m=vt(e,u.length);Lo(o,p,new ro(m,m));break}}}La.defineInitHook=function(t){return Ra.push(t)};var $a=null;function Va(t){$a=t}function za(t,e,n,r,i){var o=t.doc;t.display.shift=!1,r||(r=o.sel);var s=+new Date-200,a="paste"==i||t.state.pasteIncoming>s,l=Me(e),c=null;if(a&&r.ranges.length>1)if($a&&$a.text.join("\n")==e){if(r.ranges.length%$a.text.length==0){c=[];for(var u=0;u<$a.text.length;u++)c.push(o.splitLines($a.text[u]))}}else l.length==r.ranges.length&&t.options.pasteLinesPerSelection&&(c=X(l,function(t){return[t]}));for(var d=t.curOp.updateInput,h=r.ranges.length-1;h>=0;h--){var f=r.ranges[h],p=f.from(),g=f.to();f.empty()&&(n&&n>0?p=vt(p.line,p.ch-n):t.state.overwrite&&!a?g=vt(g.line,Math.min(ct(o,g.line).text.length,g.ch+K(l).length)):a&&$a&&$a.lineWise&&$a.text.join("\n")==e&&(p=g=vt(p.line,0)));var m={from:p,to:g,text:c?c[h%c.length]:l,origin:i||(a?"paste":t.state.cutIncoming>s?"cut":"+input")};Xo(t.doc,m),An(t,"inputRead",t,m)}e&&!a&&Wa(t,e),ri(t),t.curOp.updateInput<2&&(t.curOp.updateInput=d),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ha(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Oi(e,function(){return za(e,n,0,null,"paste")}),!0}function Wa(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 o=t.getModeAt(i.head),s=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(e.indexOf(o.electricChars.charAt(a))>-1){s=Fa(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ct(t.doc,i.head.line).text.slice(0,i.head.ch))&&(s=Fa(t,i.head.line,"smart"));s&&An(t,"electricInput",t,i.head.line)}}}function Ua(t){for(var e=[],n=[],r=0;r<t.doc.sel.ranges.length;r++){var i=t.doc.sel.ranges[r].head.line,o={anchor:vt(i,0),head:vt(i+1,0)};n.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:n}}function qa(t,e,n,r){t.setAttribute("autocorrect",!!n),t.setAttribute("autocapitalize",!!r),t.setAttribute("spellcheck",!!e)}function Ga(){var t=A("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=A("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?t.style.width="1000px":t.setAttribute("wrap","off"),g&&(t.style.border="1px solid black"),qa(t),e}function Ya(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)&&Pi(this,e[t])(this,n,i),ge(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"](Hs(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:Ai(function(e,n){var r=e.token?e:t.getMode(this.options,e);if(r.startState)throw new Error("Overlays may not be stateful.");J(this.state.overlays,{mode:r,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},function(t){return t.priority}),this.state.modeGen++,Mi(this)}),removeOverlay:Ai(function(t){for(var e=this,n=this.state.overlays,r=0;r<n.length;++r){var i=n[r].modeSpec;if(i==t||"string"==typeof t&&i.name==t)return n.splice(r,1),e.state.modeGen++,void Mi(e)}}),indentLine:Ai(function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),gt(this.doc,t)&&Fa(this,t,e,n)}),indentSelection:Ai(function(t){for(var e=this,n=this.doc.sel.ranges,r=-1,i=0;i<n.length;i++){var o=n[i];if(o.empty())o.head.line>r&&(Fa(e,o.head.line,t,!0),r=o.head.line,i==e.doc.sel.primIndex&&ri(e));else{var s=o.from(),a=o.to(),l=Math.max(r,s.line);r=Math.min(e.lastLine(),a.line-(a.ch?0:1))+1;for(var c=l;c<r;++c)Fa(e,c,t);var u=e.doc.sel.ranges;0==s.ch&&n.length==u.length&&u[i].from().ch>0&&Lo(e.doc,i,new ro(s,u[i].to()),H)}}}),getTokenAt:function(t,e){return rn(this,t,e)},getLineTokens:function(t,e){return rn(this,vt(t),e,!0)},getTokenTypeAt:function(t){t=Ct(this.doc,t);var e,n=Je(this,ct(this.doc,t.line)),r=0,i=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var s=r+i>>1;if((s?n[2*s-1]:0)>=o)i=s;else{if(!(n[2*s+1]<o)){e=n[2*s+2];break}r=s+1}}var a=e?e.indexOf("overlay "):-1;return a<0?e:0==a?null:e.slice(0,a-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=this,i=[];if(!n.hasOwnProperty(e))return i;var o=n[e],s=this.getModeAt(t);if("string"==typeof s[e])o[s[e]]&&i.push(o[s[e]]);else if(s[e])for(var a=0;a<s[e].length;a++){var l=o[s[e][a]];l&&i.push(l)}else s.helperType&&o[s.helperType]?i.push(o[s.helperType]):o[s.name]&&i.push(o[s.name]);for(var c=0;c<o._global.length;c++){var u=o._global[c];u.pred(s,r)&&-1==$(i,u.val)&&i.push(u.val)}return i},getStateAfter:function(t,e){var n=this.doc;return t=xt(n,null==t?n.first+n.size-1:t),Qe(this,t+1,e).state},cursorCoords:function(t,e){var n,r=this.doc.sel.primary();return n=null==t?r.head:"object"==typeof t?Ct(this.doc,t):t?r.from():r.to(),yr(this,n,e||"page")},charCoords:function(t,e){return br(this,Ct(this.doc,t),e||"page")},coordsChar:function(t,e){return t=vr(this,t,e||"page"),_r(this,t.left,t.top)},lineAtHeight:function(t,e){return t=vr(this,{top:t,left:0},e||"page").top,pt(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var r,i=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,i=!0),r=ct(this.doc,t)}else r=t;return mr(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-re(r):0)},defaultTextHeight:function(){return Ar(this.display)},defaultCharWidth:function(){return Er(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var o=this.display;t=yr(this,Ct(this.doc,t));var s=t.bottom,a=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),o.sizer.appendChild(e),"over"==r)s=t.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>l)&&t.top>e.offsetHeight?s=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=l&&(s=t.bottom),a+e.offsetWidth>c&&(a=c-e.offsetWidth)}e.style.top=s+"px",e.style.left=e.style.right="","right"==i?(a=o.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?a=0:"middle"==i&&(a=(o.sizer.clientWidth-e.offsetWidth)/2),e.style.left=a+"px"),n&&ti(this,{left:a,top:s,right:a+e.offsetWidth,bottom:s+e.offsetHeight})},triggerOnKeyDown:Ai(aa),triggerOnKeyPress:Ai(ua),triggerOnKeyUp:ca,triggerOnMouseDown:Ai(ma),execCommand:function(t){if(Ks.hasOwnProperty(t))return Ks[t].call(null,this)},triggerElectric:Ai(function(t){Wa(this,t)}),findPosH:function(t,e,n,r){var i=this,o=1;e<0&&(o=-1,e=-e);for(var s=Ct(this.doc,t),a=0;a<e;++a)if(s=Ka(i.doc,s,o,n,r),s.hitSide)break;return s},moveH:Ai(function(t,e){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Ka(n.doc,r.head,t,e,n.options.rtlMoveVisually):t<0?r.from():r.to()},U)}),deleteH:Ai(function(t,e){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Ws(this,function(n){var i=Ka(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=this,o=1,s=r;e<0&&(o=-1,e=-e);for(var a=Ct(this.doc,t),l=0;l<e;++l){var c=yr(i,a,"div");if(null==s?s=c.left:c.left=s,a=Xa(i,c,o,n),a.hitSide)break}return a},moveV:Ai(function(t,e){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(s){if(o)return t<0?s.from():s.to();var a=yr(n,s.head,"div");null!=s.goalColumn&&(a.left=s.goalColumn),i.push(a.left);var l=Xa(n,a,t,e);return"page"==e&&s==r.sel.primary()&&ni(n,br(n,l,"div").top-a.top),l},U),i.length)for(var s=0;s<r.sel.ranges.length;s++)r.sel.ranges[s].goalColumn=i[s]}),findWordAt:function(t){var e=this.doc,n=ct(e,t.line).text,r=t.ch,i=t.ch;if(n){var o=this.getHelper(t,"wordChars");"before"!=t.sticky&&i!=n.length||!r?++i:--r;var s=n.charAt(r),a=nt(s,o)?function(t){return nt(t,o)}:/\s/.test(s)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!nt(t)};while(r>0&&a(n.charAt(r-1)))--r;while(i<n.length&&a(n.charAt(i)))++i}return new ro(vt(t.line,r),vt(t.line,i))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?N(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==I()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Ai(function(t,e){ii(this,t,e)}),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-Yn(this)-this.display.barHeight,width:t.scrollWidth-Yn(this)-this.display.barWidth,clientHeight:Xn(this),clientWidth:Kn(this)}},scrollIntoView:Ai(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:vt(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?oi(this,t):ai(this,t.from,t.to,t.margin)}),setSize:Ai(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&&dr(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){Ii(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,ge(this,"refresh",this)}),operation:function(t){return Oi(this,t)},startOperation:function(){return yi(this)},endOperation:function(){return wi(this)},refresh:Ai(function(){var t=this.display.cachedTextHeight;Mi(this),this.curOp.forceUpdate=!0,hr(this),ii(this,this.doc.scrollLeft,this.doc.scrollTop),Gi(this),(null==t||Math.abs(t-Ar(this.display))>.5)&&jr(this),ge(this,"refresh",this)}),swapDoc:Ai(function(t){var e=this.doc;return e.cm=null,vo(this,t),hr(this),this.display.input.reset(),ii(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,An(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}},ye(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,o){t.registerHelper(e,r,o),n[e]._global.push({pred:i,val:o})}}function Ka(t,e,n,r,i){var o=e,s=n,a=ct(t,e.line);function l(){var r=e.line+n;return!(r<t.first||r>=t.first+t.size)&&(e=new vt(r,e.ch,e.sticky),a=ct(t,r))}function c(r){var o;if(o=i?Ys(t.cm,a,e,n):qs(a,e,n),null==o){if(r||!l())return!1;e=Gs(i,t.cm,a,e.line,n)}else e=o;return!0}if("char"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,d="group"==r,h=t.cm&&t.cm.getHelper(e,"wordChars"),f=!0;;f=!1){if(n<0&&!c(!f))break;var p=a.text.charAt(e.ch)||"\n",g=nt(p,h)?"w":d&&"\n"==p?"n":!d||/\s/.test(p)?null:"p";if(!d||f||g||(g="s"),u&&u!=g){n<0&&(n=1,c(),e.sticky="after");break}if(g&&(u=g),n>0&&!c(!f))break}var m=qo(t,e,o,s,!0);return yt(o,m)&&(m.hitSide=!0),m}function Xa(t,e,n,r){var i,o,s=t.doc,a=e.left;if("page"==r){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*Ar(t.display),3);i=(n>0?e.bottom:e.top)+n*c}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;;){if(o=_r(t,a,i),!o.outside)break;if(n<0?i<=0:i>=s.height){o.hitSide=!0;break}i+=5*n}return o}var Ja=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Qa(t,e){var n=er(t,e.line);if(!n||n.hidden)return null;var r=ct(t.doc,e.line),i=Qn(n,r,e.line),o=ue(r,t.doc.direction),s="left";if(o){var a=le(o,e.ch);s=a%2?"right":"left"}var l=sr(i.map,e.ch,s);return l.offset="right"==l.collapse?l.end:l.start,l}function Za(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function tl(t,e){return e&&(t.bad=!0),t}function el(t,e,n,r,i){var o="",s=!1,a=t.doc.lineSeparator(),l=!1;function c(t){return function(e){return e.id==t}}function u(){s&&(o+=a,l&&(o+=a),s=l=!1)}function d(t){t&&(u(),o+=t)}function h(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void d(n);var o,f=e.getAttribute("cm-marker");if(f){var p=t.findMarks(vt(r,0),vt(i+1,0),c(+f));return void(p.length&&(o=p[0].find(0))&&d(ut(t.doc,o.from,o.to).join(a)))}if("false"==e.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;g&&u();for(var m=0;m<e.childNodes.length;m++)h(e.childNodes[m]);/^(pre|p)$/i.test(e.nodeName)&&(l=!0),g&&(s=!0)}else 3==e.nodeType&&d(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;;){if(h(e),e==n)break;e=e.nextSibling,l=!1}return o}function nl(t,e,n){var r;if(e==t.display.lineDiv){if(r=t.display.lineDiv.childNodes[n],!r)return tl(t.clipPos(vt(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 o=t.display.view[i];if(o.node==r)return rl(o,e,n)}}function rl(t,e,n){var r=t.text.firstChild,i=!1;if(!e||!M(r,e))return tl(vt(ft(t.line),0),!0);if(e==r&&(i=!0,e=r.childNodes[n],n=0,!e)){var o=t.rest?K(t.rest):t.line;return tl(vt(ft(o),o.text.length),i)}var s=3==e.nodeType?e:null,a=e;s||1!=e.childNodes.length||3!=e.firstChild.nodeType||(s=e.firstChild,n&&(n=s.nodeValue.length));while(a.parentNode!=r)a=a.parentNode;var l=t.measure,c=l.maps;function u(e,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],s=0;s<o.length;s+=3){var a=o[s+2];if(a==e||a==n){var u=ft(i<0?t.line:t.rest[i]),d=o[s]+r;return(r<0||a!=e)&&(d=o[s+(r?1:0)]),vt(u,d)}}}var d=u(s,a,n);if(d)return tl(d,i);for(var h=a.nextSibling,f=s?s.nodeValue.length-n:0;h;h=h.nextSibling){if(d=u(h,h.firstChild,0),d)return tl(vt(d.line,d.ch-f),i);f+=h.textContent.length}for(var p=a.previousSibling,g=n;p;p=p.previousSibling){if(d=u(p,p.firstChild,-1),d)return tl(vt(d.line,d.ch+g),i);g+=p.textContent.length}}Ja.prototype.init=function(t){var e=this,n=this,r=n.cm,i=n.div=t.lineDiv;function o(t){if(!me(r,t)){if(r.somethingSelected())Va({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=Ua(r);Va({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation(function(){r.setSelections(e.ranges,0,H),r.replaceSelection("",null,"cut")})}if(t.clipboardData){t.clipboardData.clearData();var o=$a.text.join("\n");if(t.clipboardData.setData("Text",o),t.clipboardData.getData("Text")==o)return void t.preventDefault()}var s=Ga(),a=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),a.value=$a.text.join("\n");var l=document.activeElement;D(a),setTimeout(function(){r.display.lineSpace.removeChild(s),l.focus(),l==i&&n.showPrimarySelection()},50)}}qa(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),he(i,"paste",function(t){me(r,t)||Ha(t,r)||a<=11&&setTimeout(Pi(r,function(){return e.updateFromDOM()}),20)}),he(i,"compositionstart",function(t){e.composing={data:t.data,done:!1}}),he(i,"compositionupdate",function(t){e.composing||(e.composing={data:t.data,done:!1})}),he(i,"compositionend",function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)}),he(i,"touchstart",function(){return n.forceCompositionEnd()}),he(i,"input",function(){e.composing||e.readFromDOMSoon()}),he(i,"copy",o),he(i,"cut",o)},Ja.prototype.prepareSelection=function(){var t=Rr(this.cm,!1);return t.focus=this.cm.state.focused,t},Ja.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Ja.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ja.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,r=e.doc.sel.primary(),i=r.from(),o=r.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||o.line<e.display.viewFrom)t.removeAllRanges();else{var s=nl(e,t.anchorNode,t.anchorOffset),a=nl(e,t.focusNode,t.focusOffset);if(!s||s.bad||!a||a.bad||0!=bt(_t(s,a),i)||0!=bt(kt(s,a),o)){var l=e.display.view,c=i.line>=e.display.viewFrom&&Qa(e,i)||{node:l[0].measure.map[2],offset:0},u=o.line<e.display.viewTo&&Qa(e,o);if(!u){var d=l[l.length-1].measure,h=d.maps?d.maps[d.maps.length-1]:d.map;u={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(c&&u){var f,p=t.rangeCount&&t.getRangeAt(0);try{f=S(c.node,c.offset,u.offset,u.node)}catch(g){}f&&(!n&&e.state.focused?(t.collapse(c.node,c.offset),f.collapsed||(t.removeAllRanges(),t.addRange(f))):(t.removeAllRanges(),t.addRange(f)),p&&null==t.anchorNode?t.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Ja.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)},Ja.prototype.showMultipleSelections=function(t){P(this.cm.display.cursorDiv,t.cursors),P(this.cm.display.selectionDiv,t.selection)},Ja.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Ja.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return M(this.div,e)},Ja.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ja.prototype.blur=function(){this.div.blur()},Ja.prototype.getField=function(){return this.div},Ja.prototype.supportsTouch=function(){return!0},Ja.prototype.receivedFocus=function(){var t=this;function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}this.selectionInEditor()?this.pollSelection():Oi(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},Ja.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Ja.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(m&&u&&this.cm.options.gutters.length&&Za(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=nl(e,t.anchorNode,t.anchorOffset),r=nl(e,t.focusNode,t.focusOffset);n&&r&&Oi(e,function(){$o(e.doc,oo(n,r),H),(n.bad||r.bad)&&(e.curOp.selectionChanged=!0)})}}},Ja.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),s=o.from(),a=o.to();if(0==s.ch&&s.line>r.firstLine()&&(s=vt(s.line-1,ct(r.doc,s.line-1).length)),a.ch==ct(r.doc,a.line).text.length&&a.line<r.lastLine()&&(a=vt(a.line+1,0)),s.line<i.viewFrom||a.line>i.viewTo-1)return!1;s.line==i.viewFrom||0==(t=Lr(r,s.line))?(e=ft(i.view[0].line),n=i.view[0].node):(e=ft(i.view[t].line),n=i.view[t-1].node.nextSibling);var l,c,u=Lr(r,a.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=ft(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;var d=r.doc.splitLines(el(r,n,c,e,l)),h=ut(r.doc,vt(e,0),vt(l,ct(r.doc,l).text.length));while(d.length>1&&h.length>1)if(K(d)==K(h))d.pop(),h.pop(),l--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),e++}var f=0,p=0,g=d[0],m=h[0],v=Math.min(g.length,m.length);while(f<v&&g.charCodeAt(f)==m.charCodeAt(f))++f;var b=K(d),y=K(h),w=Math.min(b.length-(1==d.length?f:0),y.length-(1==h.length?f:0));while(p<w&&b.charCodeAt(b.length-p-1)==y.charCodeAt(y.length-p-1))++p;if(1==d.length&&1==h.length&&e==s.line)while(f&&f>s.ch&&b.charCodeAt(b.length-p-1)==y.charCodeAt(y.length-p-1))f--,p++;d[d.length-1]=b.slice(0,b.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var k=vt(e,f),_=vt(l,h.length?K(h).length-p:0);return d.length>1||d[0]||bt(k,_)?(ns(r.doc,d,k,_,"+input"),!0):void 0},Ja.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ja.prototype.reset=function(){this.forceCompositionEnd()},Ja.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ja.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))},Ja.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Oi(this.cm,function(){return Mi(t.cm)})},Ja.prototype.setUneditable=function(t){t.contentEditable="false"},Ja.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Pi(this.cm,za)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Ja.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Ja.prototype.onContextMenu=function(){},Ja.prototype.resetPosition=function(){},Ja.prototype.needsContentAttribute=!0;var il=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};function ol(t,e){if(e=e?B(e):{},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=I();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=a.getValue()}var i;if(t.form&&(he(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var s=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=s}}catch(l){}}e.finishInit=function(e){e.save=r,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,r(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(pe(t.form,"submit",r),"function"==typeof t.form.submit&&(t.form.submit=i))}},t.style.display="none";var a=La(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},e);return a}function sl(t){t.off=pe,t.on=he,t.wheelEventPixels=to,t.Doc=ks,t.splitLines=Me,t.countColumn=R,t.findColumn=q,t.isWordChar=et,t.Pass=z,t.signal=ge,t.Line=cn,t.changeEnd=so,t.scrollbarModel=mi,t.Pos=vt,t.cmpPos=bt,t.modes=Le,t.mimeModes=Be,t.resolveMode=$e,t.getMode=Ve,t.modeExtensions=ze,t.extendMode=He,t.copyState=We,t.startState=qe,t.innerMode=Ue,t.commands=Ks,t.keyMap=Ls,t.keyName=zs,t.isModifierKey=$s,t.lookupKey=Fs,t.normalizeKeyMap=Rs,t.StringStream=Ge,t.SharedTextMarker=gs,t.TextMarker=fs,t.LineWidget=cs,t.e_preventDefault=we,t.e_stopPropagation=ke,t.e_stop=xe,t.addClass=N,t.contains=M,t.rmClass=T,t.keyNames=Is}il.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!me(r,t)){if(r.somethingSelected())Va({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Ua(r);Va({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,H):(n.prevInput="",i.value=e.text.join("\n"),D(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),g&&(i.style.width="0px"),he(i,"input",function(){s&&a>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()}),he(i,"paste",function(t){me(r,t)||Ha(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),he(i,"cut",o),he(i,"copy",o),he(t.scroller,"paste",function(e){if(!Wn(t,e)&&!me(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}}),he(t.lineSpace,"selectstart",function(e){Wn(t,e)||we(e)}),he(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"})}}),he(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},il.prototype.createField=function(t){this.wrapper=Ga(),this.textarea=this.wrapper.firstChild},il.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=Rr(t);if(t.options.moveInputWithCursor){var i=yr(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),s=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+s.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+s.left-o.left))}return r},il.prototype.showSelection=function(t){var e=this.cm,n=e.display;P(n.cursorDiv,t.cursors),P(n.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},il.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&&D(this.textarea),s&&a>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||I()!=this.textarea))try{this.textarea.focus()}catch(t){}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},il.prototype.fastPoll=function(){var t=!1,e=this;function n(){var r=e.poll();r||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}e.pollingFast=!0,e.polling.set(20,n)},il.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Ie(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(s&&a>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}var l=0,c=Math.min(r.length,i.length);while(l<c&&r.charCodeAt(l)==i.charCodeAt(l))++l;return Oi(e,function(){za(e,i.slice(l),r.length-l,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},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){s&&a>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=Dr(n,t),c=r.scroller.scrollTop;if(o&&!d){var u=n.options.resetSelectionOnContextMenu;u&&-1==n.doc.sel.contains(o)&&Pi(n,$o)(n.doc,oo(o),H);var h,f=i.style.cssText,p=e.wrapper.style.cssText,g=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(t.clientY-g.top-5)+"px; left: "+(t.clientX-g.left-5)+"px;\n      z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(h=window.scrollY),r.input.focus(),l&&window.scrollTo(null,h),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=b,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),s&&a>=9&&v(),x){xe(t);var m=function(){pe(window,"mouseup",m),setTimeout(b,20)};he(window,"mouseup",m)}else setTimeout(b,50)}function v(){if(null!=i.selectionStart){var t=n.somethingSelected(),o="​"+(t?i.value:"");i.value="⇚",i.value=o,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function b(){if(e.contextMenuPending==b&&(e.contextMenuPending=!1,e.wrapper.style.cssText=p,i.style.cssText=f,s&&a<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!s||s&&a<9)&&v();var t=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?Pi(n,Yo)(n):t++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},il.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,Ia(La),Ya(La);var al="iter insert remove copy getEditor constructor".split(" ");for(var ll in ks.prototype)ks.prototype.hasOwnProperty(ll)&&$(al,ll)<0&&(La.prototype[ll]=function(t){return function(){return t.apply(this.doc,arguments)}}(ks.prototype[ll]));return ye(ks),La.inputStyles={textarea:il,contenteditable:Ja},La.defineMode=function(t){La.defaults.mode||"null"==t||(La.defaults.mode=t),Re.apply(this,arguments)},La.defineMIME=Fe,La.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),La.defineMIME("text/plain","null"),La.defineExtension=function(t,e){La.prototype[t]=e},La.defineDocExtension=function(t,e){ks.prototype[t]=e},La.fromTextArea=ol,sl(La),La.version="5.44.0",La})},"584a":function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"59ad":function(t,e,n){t.exports=n("7be7")},"5b4e":function(t,e,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");t.exports=function(t){return function(e,n,s){var a,l=r(e),c=i(l.length),u=o(s,c);if(t&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},"5c95":function(t,e,n){var r=n("35e8");t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),s=n("2aba"),a=n("9b43"),l="prototype",c=function(t,e,n){var u,d,h,f,p=t&c.F,g=t&c.G,m=t&c.S,v=t&c.P,b=t&c.B,y=g?r:m?r[e]||(r[e]={}):(r[e]||{})[l],w=g?i:i[e]||(i[e]={}),k=w[l]||(w[l]={});for(u in g&&(n=e),n)d=!p&&y&&void 0!==y[u],h=(d?y:n)[u],f=b&&d?a(h,r):v&&"function"==typeof h?a(Function.call,h):h,y&&s(y,u,h,t&c.U),w[u]!=h&&o(w,u,f),v&&k[u]!=h&&(k[u]=h)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5cc5":function(t,e,n){var r=n("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(s){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(s){}return n}},"5d58":function(t,e,n){t.exports=n("d8d6")},"5d6b":function(t,e,n){var r=n("e53d").parseInt,i=n("a1ce").trim,o=n("e692"),s=/^[-+]?0[xX]/;t.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(t,e){var n=i(String(t),3);return r(n,e>>>0||(s.test(n)?16:10))}:r},"5d73":function(t,e,n){t.exports=n("469f")},"5dbc":function(t,e,n){var r=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"5f1b":function(t,e,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"5f5b":function(t,e,n){"use strict";var r=n("2b0e"),i=r["default"],o=n("938d"),s=function(t){Object(o["a"])()||console.warn("[BootstrapVue warn]: ".concat(t))},a=function(t){return!o["j"]&&(s("".concat(t,": Can not be called during SSR.")),!0)},l=function(t){return!o["g"]&&(s("".concat(t,": Requires Promise support.")),!0)},c=function(t){return!o["d"]&&(s("".concat(t,": Requires MutationObserver support.")),!0)},u=s,d=Array.from,h=Array.isArray,f=function(t,e){return-1!==t.indexOf(e)},p=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Array.prototype.concat.apply([],e)};function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(n,!0).forEach(function(e){v(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){return b="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},b(t)}var y=Object.assign,w=Object.getOwnPropertyNames,k=Object.keys,_=Object.defineProperties,x=Object.defineProperty,C=Object.freeze,S=(Object.getOwnPropertyDescriptor,Object.getOwnPropertySymbols,Object.getPrototypeOf,Object.create),T=(Object.isFrozen,Object.is,function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}),O=function(t){return Object.prototype.toString.call(t)},P=function(t){return null!==t&&"object"===b(t)},A=function(t){return"[object Object]"===Object.prototype.toString.call(t)},E=function(t,e){return k(t).filter(function(t){return-1===e.indexOf(t)}).reduce(function(e,n){return m({},e,v({},n,t[n]))},{})},M=function(){return{enumerable:!0,configurable:!1,writable:!1}},I=function t(e){var n=k(e);return n.forEach(function(n){var r=e[n];e[n]=r&&(A(r)||h(r))?t(r):r}),C(e)};function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(n,!0).forEach(function(e){D(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function D(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L(t){return F(t)||R(t)||B()}function B(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function R(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function F(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}var $=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return h(e)?e.reduce(function(e,n){return[].concat(L(e),[t(n,n)])},[]):A(e)?k(e).reduce(function(n,r){return j({},n,D({},r,t(e[r],e[r])))},{}):n},V=$,z=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(e=h(e)?e.join("."):e,!e||!P(t))return n;if(e in t)return t[e];e=String(e).replace(/\[(\d+)]/g,".$1");var r=e.split(".").filter(Boolean);return 0===r.length?n:r.every(function(e){return P(t)&&e in t&&null!=(t=t[e])})?t:n},H=z;function W(t){return W="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},W(t)}var U=function(t){return W(t)},q=function(t){return Object.prototype.toString.call(t).slice(8,-1)},G=function(t){return void 0===t},Y=function(t){return null===t},K=function(t){return G(t)||Y(t)},X=function(t){return"function"===U(t)},J=function(t){return"boolean"===U(t)},Q=function(t){return"string"===U(t)},Z=function(t){return"number"===U(t)},tt=function(t){return t instanceof Date},et=function(t){return t instanceof Event},nt=function(t){return"RegExp"===q(t)},rt=function(t){return!K(t)&&X(t.then)&&X(t.catch)},it=I({breakpoints:["xs","sm","md","lg","xl"],BAlert:{dismissLabel:"Close",variant:"info"},BBadge:{variant:"secondary"},BButton:{variant:"secondary"},BButtonClose:{textVariant:null,ariaLabel:"Close"},BCardSubTitle:{subTitleTextVariant:"muted"},BCarousel:{labelPrev:"Previous Slide",labelNext:"Next Slide",labelGotoSlide:"Goto Slide",labelIndicators:"Select a slide to display"},BDropdown:{toggleText:"Toggle Dropdown",variant:"secondary",splitVariant:null},BFormFile:{browseText:"Browse",placeholder:"No file chosen",dropPlaceholder:"Drop files here"},BFormText:{textVariant:"muted"},BImg:{blankColor:"transparent"},BImgLazy:{blankColor:"transparent"},BJumbotron:{bgVariant:null,borderVariant:null,textVariant:null},BListGroupItem:{variant:null},BModal:{titleTag:"h5",size:"md",headerBgVariant:null,headerBorderVariant:null,headerTextVariant:null,headerCloseVariant:null,bodyBgVariant:null,bodyTextVariant:null,footerBgVariant:null,footerBorderVariant:null,footerTextVariant:null,cancelTitle:"Cancel",cancelVariant:"secondary",okTitle:"OK",okVariant:"primary",headerCloseLabel:"Close"},BNavbar:{variant:null},BNavbarToggle:{label:"Toggle navigation"},BPopover:{boundary:"scrollParent",boundaryPadding:5,customClass:null,delay:0,variant:null},BProgress:{variant:null},BProgressBar:{variant:null},BSpinner:{variant:null},BTable:{selectedVariant:"primary",headVariant:null,footVariant:null},BToast:{toaster:"b-toaster-top-right",autoHideDelay:5e3,variant:null,toastClass:null,headerClass:null,bodyClass:null,solid:!1},BToaster:{ariaLive:null,ariaAtomic:null,role:null},BTooltip:{boundary:"scrollParent",boundaryPadding:5,customClass:null,delay:0,variant:null}});function ot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function st(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)}}function at(t,e,n){return e&&st(t.prototype,e),n&&st(t,n),t}var lt="$bvConfig",ct=function(){function t(){ot(this,t),this.$_config={},this.$_cachedBreakpoints=null}return at(t,[{key:"getDefaults",value:function(){return this.defaults}},{key:"setConfig",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(A(e)){var n=w(e);n.forEach(function(n){if(T(it,n)){var r=e[n];if("breakpoints"===n){var i=e.breakpoints;!h(i)||i.length<2||i.some(function(t){return!Q(t)||0===t.length})?u('config: "breakpoints" must be an array of at least 2 breakpoint names'):t.$_config.breakpoints=V(i)}else if(A(r)){var o=w(r);o.forEach(function(e){T(it[n],e)?(t.$_config[n]=t.$_config[n]||{},G(r[e])||(t.$_config[n][e]=V(r[e]))):u('config: unknown config property "'.concat(n,'.{$prop}"'))})}}else u('config: unknown config property "'.concat(n,'"'))})}}},{key:"resetConfig",value:function(){this.$_config={}}},{key:"getConfig",value:function(){return V(this.$_config)}},{key:"getConfigValue",value:function(t){return V(H(this.$_config,t,H(it,t)))}},{key:"defaults",get:function(){return it}}],[{key:"Defaults",get:function(){return it}}]),t}(),ut=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;e.prototype[lt]=i.prototype[lt]=e.prototype[lt]||i.prototype[lt]||new ct,e.prototype[lt].setConfig(t)};function dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dt(n,!0).forEach(function(e){ft(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dt(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ft(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pt=function(){var t=!1,e=["Multiple instances of Vue detected!","You may need to set up an alias for Vue in your bundler config.","See: https://bootstrap-vue.js.org/docs#using-module-bundlers"].join("\n");return function(n){t||i===n||o["k"]||u(e),t=!0}}(),gt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.components,n=t.directives,r=t.plugins,i=function t(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.installed||(t.installed=!0,pt(i),ut(o,i),yt(i,e),kt(i,n),vt(i,r))};return i.installed=!1,i},mt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ht({},e,{install:gt(t)})},vt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e)n&&e[n]&&t.use(e[n])},bt=function(t,e,n){t&&e&&n&&t.component(e,n)},yt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e)bt(t,n,e[n])},wt=function(t,e,n){t&&e&&n&&t.directive(e.replace(/^VB/,"B"),n)},kt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e)wt(t,n,e[n])},_t=function(t){var e=S(null);return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=JSON.stringify(r);return e[o]=e[o]||t.apply(null,r)}},xt=_t,Ct="$bvConfig",St=i.prototype,Tt=function(t){return St[Ct]?St[Ct].getConfigValue(t):V(H(it,t))},Ot=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?Tt("".concat(t,".").concat(e)):Tt(t)||{}},Pt=function(){return Tt("breakpoints")},At=xt(function(){return Pt()}),Et=function(){return V(At())},Mt=xt(function(){var t=Et();return t[0]="",t}),It=o["i"]?window:{},Nt=o["b"]?document:{},jt="undefined"!==typeof Element?Element.prototype:{},Dt=jt.matches||jt.msMatchesSelector||jt.webkitMatchesSelector,Lt=jt.closest||function(t){var e=this;do{if(Yt(e,t))return e;e=e.parentElement||e.parentNode}while(!Y(e)&&e.nodeType===Node.ELEMENT_NODE);return null},Bt=It.requestAnimationFrame||It.webkitRequestAnimationFrame||It.mozRequestAnimationFrame||It.msRequestAnimationFrame||It.oRequestAnimationFrame||function(t){return setTimeout(t,16)},Rt=It.MutationObserver||It.WebKitMutationObserver||It.MozMutationObserver||null,Ft=function(t){return o["e"]?P(t)?t:{useCapture:Boolean(t||!1)}:Boolean(P(t)?t.useCapture:t)},$t=function(t,e,n,r){t&&t.addEventListener&&t.addEventListener(e,n,Ft(r))},Vt=function(t,e,n,r){t&&t.removeEventListener&&t.removeEventListener(e,n,Ft(r))},zt=function(t){return Boolean(t&&t.nodeType===Node.ELEMENT_NODE)},Ht=function(t){if(!zt(t)||!Xt(Nt.body,t))return!1;if("none"===t.style.display)return!1;var e=oe(t);return Boolean(e&&e.height>0&&e.width>0)},Wt=function(t){return!zt(t)||t.disabled||Boolean(re(t,"disabled"))||te(t,"disabled")},Ut=function(t){return zt(t)&&t.offsetHeight},qt=function(t,e){return d((zt(e)?e:Nt).querySelectorAll(t))},Gt=function(t,e){return(zt(e)?e:Nt).querySelector(t)||null},Yt=function(t,e){return!!zt(t)&&Dt.call(t,e)},Kt=function(t,e){if(!zt(e))return null;var n=Lt.call(e,t);return n===e?null:n},Xt=function(t,e){return!(!t||!X(t.contains))&&t.contains(e)},Jt=function(t){return Nt.getElementById(/^#/.test(t)?t.slice(1):t)||null},Qt=function(t,e){e&&zt(t)&&t.classList&&t.classList.add(e)},Zt=function(t,e){e&&zt(t)&&t.classList&&t.classList.remove(e)},te=function(t,e){return!!(e&&zt(t)&&t.classList)&&t.classList.contains(e)},ee=function(t,e,n){e&&zt(t)&&t.setAttribute(e,n)},ne=function(t,e){e&&zt(t)&&t.removeAttribute(e)},re=function(t,e){return e&&zt(t)?t.getAttribute(e):null},ie=function(t,e){return e&&zt(t)?t.hasAttribute(e):null},oe=function(t){return zt(t)?t.getBoundingClientRect():null},se=function(t){return o["i"]&&zt(t)?It.getComputedStyle(t):{}},ae=function(){return o["i"]&&It.getSelection?It.getSelection():null},le=function(t){var e={top:0,left:0};if(!zt(t)||0===t.getClientRects().length)return e;var n=oe(t);if(n){var r=t.ownerDocument.defaultView;e.top=n.top+r.pageYOffset,e.left=n.left+r.pageXOffset}return e},ce=function(t){var e={top:0,left:0};if(!zt(t))return e;var n={top:0,left:0},r=se(t);if("fixed"===r.position)e=oe(t)||e;else{e=le(t);var i=t.ownerDocument,o=t.offsetParent||i.documentElement;while(o&&(o===i.body||o===i.documentElement)&&"static"===se(o).position)o=o.parentNode;if(o&&o!==t&&o.nodeType===Node.ELEMENT_NODE){n=le(o);var s=se(o);n.top+=parseFloat(s.borderTopWidth),n.left+=parseFloat(s.borderLeftWidth)}}return{top:e.top-n.top-parseFloat(r.marginTop),left:e.left-n.left-parseFloat(r.marginLeft)}},ue=function(){return(ue=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)},de={kebab:/-(\w)/g,styleProp:/:(.*)/,styleList:/;(?![^(]*\))/g};function he(t,e){return e?e.toUpperCase():""}function fe(t){for(var e,n={},r=0,i=t.split(de.styleList);r<i.length;r++){var o=i[r].split(de.styleProp),s=o[0],a=o[1];(s=s.trim())&&("string"==typeof a&&(a=a.trim()),n[(e=s,e.replace(de.kebab,he))]=a)}return n}function pe(){for(var t,e,n={},r=arguments.length;r--;)for(var i=0,o=Object.keys(arguments[r]);i<o.length;i++)switch(t=o[i]){case"class":case"style":case"directives":if(Array.isArray(n[t])||(n[t]=[]),"style"===t){var s=void 0;s=Array.isArray(arguments[r].style)?arguments[r].style:[arguments[r].style];for(var a=0;a<s.length;a++){var l=s[a];"string"==typeof l&&(s[a]=fe(l))}arguments[r].style=s}n[t]=n[t].concat(arguments[r][t]);break;case"staticClass":if(!arguments[r][t])break;void 0===n[t]&&(n[t]=""),n[t]&&(n[t]+=" "),n[t]+=arguments[r][t].trim();break;case"on":case"nativeOn":n[t]||(n[t]={});for(var c=0,u=Object.keys(arguments[r][t]||{});c<u.length;c++)e=u[c],n[t][e]?n[t][e]=[].concat(n[t][e],arguments[r][t][e]):n[t][e]=arguments[r][t][e];break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":n[t]||(n[t]={}),n[t]=ue({},arguments[r][t],n[t]);break;case"slot":case"key":case"ref":case"tag":case"show":case"keepAlive":default:n[t]||(n[t]=arguments[r][t])}return n}function ge(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function me(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ge(n,!0).forEach(function(e){ve(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ge(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var be={name:"",enterClass:"",enterActiveClass:"",enterToClass:"show",leaveClass:"show",leaveActiveClass:"",leaveToClass:""},ye=me({},be,{enterActiveClass:"fade",leaveActiveClass:"fade"}),we=i.extend({name:"BVTransition",functional:!0,props:{noFade:{type:Boolean,default:!1},mode:{type:String},transProps:{type:Object,default:null}},render:function(t,e){var n=e.children,r=e.data,i=(e.listeners,e.props),o=i.transProps;return A(o)||(o=i.noFade?be:ye),o=me({mode:i.mode},o,{css:!0}),t("transition",pe(r,{props:o}),n)}}),ke=we,_e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Boolean(e[t]||n[t])},xe=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]:{},i=n[t]||r[t];return X(i)?i(e):i},Ce={methods:{hasNormalizedSlot:function(t){return _e(t,this.$scopedSlots,this.$slots)},normalizeSlot:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=xe(t,e,this.$scopedSlots,this.$slots);return n?p(n):n}}};function Se(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Te="BButtonClose",Oe={disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:function(){return Ot(Te,"ariaLabel")}},textVariant:{type:String,default:function(){return Ot(Te,"textVariant")}}},Pe=i.extend({name:Te,functional:!0,props:Oe,render:function(t,e){var n=e.props,r=e.data,i=(e.listeners,e.slots),o=e.scopedSlots,s=i(),a=o||{},l={staticClass:"close",class:Se({},"text-".concat(n.textVariant),n.textVariant),attrs:{type:"button",disabled:n.disabled,"aria-label":n.ariaLabel?String(n.ariaLabel):null},on:{click:function(t){n.disabled&&et(t)&&(t.stopPropagation(),t.preventDefault())}}};return _e("default",a,s)||(l.domProps={innerHTML:"&times;"}),t("button",pe(r,l),xe("default",{},a,s))}});function Ae(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ee="BAlert",Me=function(t){return""===t||J(t)?0:(t=parseInt(t,10),t>0?t:0)},Ie=function(t){return""===t||!0===t||!(parseInt(t,10)<1)&&Boolean(t)},Ne=function(t){return!isNaN(parseInt(t,10))},je=i.extend({name:Ee,mixins:[Ce],model:{prop:"show",event:"input"},props:{variant:{type:String,default:function(){return Ot(Ee,"variant")}},dismissible:{type:Boolean,default:!1},dismissLabel:{type:String,default:function(){return Ot(Ee,"dismissLabel")}},show:{type:[Boolean,Number,String],default:!1},fade:{type:Boolean,default:!1}},data:function(){return{countDownTimerId:null,countDown:0,localShow:Ie(this.show)}},watch:{show:function(t){this.countDown=Me(t),this.localShow=Ie(t)},countDown:function(t){var e=this;this.clearTimer(),Ne(this.show)&&(this.$emit("dismiss-count-down",t),this.show!==t&&this.$emit("input",t),t>0?(this.localShow=!0,this.countDownTimerId=setTimeout(function(){e.countDown--},1e3)):this.$nextTick(function(){Bt(function(){e.localShow=!1})}))},localShow:function(t){t||!this.dismissible&&!Ne(this.show)||this.$emit("dismissed"),Ne(this.show)||this.show===t||this.$emit("input",t)}},created:function(){this.countDown=Me(this.show),this.localShow=Ie(this.show)},mounted:function(){this.countDown=Me(this.show),this.localShow=Ie(this.show)},beforeDestroy:function(){this.clearTimer()},methods:{dismiss:function(){this.clearTimer(),this.countDown=0,this.localShow=!1},clearTimer:function(){this.countDownTimerId&&(clearInterval(this.countDownTimerId),this.countDownTimerId=null)}},render:function(t){var e;if(this.localShow){var n=t();this.dismissible&&(n=t(Pe,{attrs:{"aria-label":this.dismissLabel},on:{click:this.dismiss}},[this.normalizeSlot("dismiss")])),e=t("div",{key:this._uid,staticClass:"alert",class:Ae({"alert-dismissible":this.dismissible},"alert-".concat(this.variant),this.variant),attrs:{role:"alert","aria-live":"polite","aria-atomic":!0}},[n,this.normalizeSlot("default")]),e=[e]}return t(ke,{props:{noFade:!this.fade}},e)}}),De=mt({components:{BAlert:je}}),Le=function(t){return t},Be=Le,Re=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Be;return(h(t)?t.slice():k(t)).reduce(function(t,r){return t[n(r)]=e[r],t},{})},Fe=Re,$e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return K(t)?"":h(t)||A(t)&&t.toString===Object.prototype.toString?JSON.stringify(t,null,e):String(t)},Ve=$e,ze="a",He=/%2C/g,We=/[!'()*]/g,Ue=function(t){return"%"+t.charCodeAt(0).toString(16)},qe=function(t){return encodeURIComponent(Ve(t)).replace(We,Ue).replace(He,",")},Ge=decodeURIComponent,Ye=function(t){if(!A(t))return"";var e=k(t).map(function(e){var n=t[e];return G(n)?"":Y(n)?qe(e):h(n)?n.reduce(function(t,n){return Y(n)?t.push(qe(e)):G(n)||t.push(qe(e)+"="+qe(n)),t},[]).join("&"):qe(e)+"="+qe(n)}).filter(function(t){return t.length>0}).join("&");return e?"?".concat(e):""},Ke=function(t){var e={};return t=Ve(t).trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=Ge(n.shift()),i=n.length>0?Ge(n.join("=")):null;G(e[r])?e[r]=i:h(e[r])?e[r].push(i):e[r]=[e[r],i]}),e):e},Xe=function(t){return Ve(t).toLowerCase()!==ze},Je=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.to,n=t.disabled,r=arguments.length>1?arguments[1]:void 0;return r.$router&&e&&!n?r.$nuxt?"nuxt-link":"router-link":ze},Qe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.target,n=t.rel;return"_blank"===e&&Y(n)?"noopener":n||null},Ze=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.href,n=t.to,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ze,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";if(Xe(r))return null;if(e)return e;if(n){if(Q(n))return n||o;if(A(n)&&(n.path||n.query||n.hash)){var s=Ve(n.path),a=Ye(n.query),l=Ve(n.hash);return l=l&&"#"!==l.charAt(0)?"#".concat(l):l,"".concat(s).concat(a).concat(l)||o}}return i};function tn(t){return rn(t)||nn(t)||en()}function en(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function nn(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function rn(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function on(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function sn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?on(n,!0).forEach(function(e){an(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):on(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function an(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ln=function(){return{href:{type:String,default:null},rel:{type:String,default:null},target:{type:String,default:"_self"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{type:[String,Object],default:null},append:{type:Boolean,default:!1},replace:{type:Boolean,default:!1},event:{type:[String,Array],default:"click"},activeClass:{type:String},exact:{type:Boolean,default:!1},exactActiveClass:{type:String},routerTag:{type:String,default:"a"},noPrefetch:{type:Boolean,default:!1}}},cn=(ln(),i.extend({name:"BLink",mixins:[Ce],inheritAttrs:!1,props:ln(),computed:{computedTag:function(){return Je({to:this.to,disabled:this.disabled},this)},isRouterLink:function(){return Xe(this.computedTag)},computedRel:function(){return Qe({target:this.target,rel:this.rel})},computedHref:function(){return Ze({to:this.to,href:this.href},this.computedTag)},computedProps:function(){return this.isRouterLink?sn({},this.$props,{tag:this.routerTag}):{}}},methods:{onClick:function(t){var e=arguments,n=et(t),r=this.isRouterLink,i=this.$listeners.click;n&&this.disabled?(t.stopPropagation(),t.stopImmediatePropagation()):(r&&t.currentTarget.__vue__&&t.currentTarget.__vue__.$emit("click",t),p(i).filter(function(t){return X(t)}).forEach(function(t){t.apply(void 0,tn(e))}),this.$root.$emit("clicked::link",t)),n&&(this.disabled||!r&&"#"===this.computedHref)&&t.preventDefault()},focus:function(){this.$el&&this.$el.focus&&this.$el.focus()},blur:function(){this.$el&&this.$el.blur&&this.$el.blur()}},render:function(t){var e=this.computedTag,n=this.computedRel,r=this.computedHref,i=this.isRouterLink,o=sn({},this.$listeners,{click:this.onClick}),s={class:{active:this.active,disabled:this.disabled},attrs:sn({},this.$attrs,{rel:n,target:this.target,tabindex:this.disabled?"-1":G(this.$attrs.tabindex)?null:this.$attrs.tabindex,"aria-disabled":this.disabled?"true":null}),props:this.computedProps,on:i?{}:o,nativeOn:i?o:{}};return r?s.attrs.href=r:delete s.props.href,t(e,s,this.normalizeSlot("default"))}}));function un(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function dn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?un(n,!0).forEach(function(e){hn(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):un(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fn="BBadge",pn=ln();delete pn.href.default,delete pn.to.default;var gn=dn({},pn,{tag:{type:String,default:"span"},variant:{type:String,default:function(){return Ot(fn,"variant")}},pill:{type:Boolean,default:!1}}),mn=i.extend({name:fn,functional:!0,props:gn,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.href||n.to?cn:n.tag,s={staticClass:"badge",class:[n.variant?"badge-".concat(n.variant):"badge-secondary",{"badge-pill":Boolean(n.pill),active:n.active,disabled:n.disabled}],props:Fe(pn,n)};return t(o,pe(r,s),i)}}),vn=mt({components:{BBadge:mn}}),bn=/(<([^>]+)>)/gi,yn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(bn,"")},wn=function(t,e){return t?{innerHTML:t}:e?{textContent:e}:{}};function kn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kn(n,!0).forEach(function(e){xn(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kn(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function xn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cn=_n({},ln(),{text:{type:String,default:null},html:{type:String,default:null},ariaCurrent:{type:String,default:"location"}}),Sn=i.extend({name:"BBreadcrumbLink",functional:!0,props:Cn,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.active?"span":cn,s={props:Fe(Cn,n)};return n.active&&(s.attrs={"aria-current":n.ariaCurrent}),i||(s.domProps=wn(n.html,n.text)),t(o,pe(r,s),i)}}),Tn=i.extend({name:"BBreadcrumbItem",functional:!0,props:Cn,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t("li",pe(r,{staticClass:"breadcrumb-item",class:{active:n.active}}),[t(Sn,{props:n},i)])}});function On(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Pn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?On(n,!0).forEach(function(e){An(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):On(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function An(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var En={items:{type:Array,default:null}},Mn=i.extend({name:"BBreadcrumb",functional:!0,props:En,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=i;if(h(n.items)){var s=!1;o=n.items.map(function(e,r){P(e)||(e={text:Ve(e)});var i=e.active;return i&&(s=!0),i||s||(i=r+1===n.items.length),t(Tn,{props:Pn({},e,{active:i})})})}return t("ol",pe(r,{staticClass:"breadcrumb"}),o)}}),In=mt({components:{BBreadcrumb:Mn,BBreadcrumbItem:Tn,BBreadcrumbLink:Sn}});function Nn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function jn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nn(n,!0).forEach(function(e){Dn(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nn(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Dn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ln="BButton",Bn={block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:null},variant:{type:String,default:function(){return Ot(Ln,"variant")}},type:{type:String,default:"button"},tag:{type:String,default:"button"},pill:{type:Boolean,default:!1},squared:{type:Boolean,default:!1},pressed:{type:Boolean,default:null}},Rn=ln();delete Rn.href.default,delete Rn.to.default;var Fn=k(Rn),$n=jn({},Rn,{},Bn),Vn=function(t){"focusin"===t.type?Qt(t.target,"focus"):"focusout"===t.type&&Zt(t.target,"focus")},zn=function(t){return Boolean(t.href||t.to||t.tag&&"a"===String(t.tag).toLowerCase())},Hn=function(t){return J(t.pressed)},Wn=function(t){return!zn(t)&&(!t.tag||"button"===String(t.tag).toLowerCase())},Un=function(t){return!zn(t)&&!Wn(t)},qn=function(t){var e;return["btn-".concat(t.variant||Ot(Ln,"variant")),(e={},Dn(e,"btn-".concat(t.size),Boolean(t.size)),Dn(e,"btn-block",t.block),Dn(e,"rounded-pill",t.pill),Dn(e,"rounded-0",t.squared&&!t.pill),Dn(e,"disabled",t.disabled),Dn(e,"active",t.pressed),e)]},Gn=function(t){return zn(t)?Fe(Fn,t):null},Yn=function(t,e){var n=Wn(t),r=zn(t),i=Hn(t),o=Un(t),s=e.attrs&&e.attrs["role"]?e.attrs["role"]:null,a=e.attrs?e.attrs["tabindex"]:null;return o&&(a="0"),{type:n&&!r?t.type:null,disabled:n?t.disabled:null,role:o?"button":s,"aria-disabled":o?String(t.disabled):null,"aria-pressed":i?String(t.pressed):null,autocomplete:i?"off":null,tabindex:t.disabled&&!n?"-1":a}},Kn=i.extend({name:Ln,functional:!0,props:$n,render:function(t,e){var n=e.props,r=e.data,i=e.listeners,o=e.children,s=Hn(n),a=zn(n),l={click:function(t){n.disabled&&et(t)?(t.stopPropagation(),t.preventDefault()):s&&i&&i["update:pressed"]&&p(i["update:pressed"]).forEach(function(t){X(t)&&t(!n.pressed)})}};s&&(l.focusin=Vn,l.focusout=Vn);var c={staticClass:"btn",class:qn(n),props:Gn(n),attrs:Yn(n,r),on:l};return t(a?cn:n.tag,pe(r,c),o)}}),Xn=mt({components:{BButton:Kn,BBtn:Kn,BButtonClose:Pe,BBtnClose:Pe}});function Jn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qn={vertical:{type:Boolean,default:!1},size:{type:String,default:null},tag:{type:String,default:"div"},ariaRole:{type:String,default:"group"}},Zn=i.extend({name:"BButtonGroup",functional:!0,props:Qn,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,pe(r,{class:Jn({"btn-group":!n.vertical,"btn-group-vertical":n.vertical},"btn-group-".concat(n.size),Boolean(n.size)),attrs:{role:n.ariaRole}}),i)}}),tr=mt({components:{BButtonGroup:Zn,BBtnGroup:Zn}}),er={SPACE:32,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,PAGEUP:33,PAGEDOWN:34,HOME:36,END:35,TAB:9,SHIFT:16,CTRL:17,BACKSPACE:8,ALT:18,PAUSE:19,BREAK:19,INSERT:45,INS:45,DELETE:46},nr=er,rr=[".btn:not(.disabled):not([disabled]):not(.dropdown-item)",".form-control:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])",'input[type="checkbox"]:not(.disabled)','input[type="radio"]:not(.disabled)'].join(","),ir=i.extend({name:"BButtonToolbar",mixins:[Ce],props:{justify:{type:Boolean,default:!1},keyNav:{type:Boolean,default:!1}},mounted:function(){this.keyNav&&this.getItems()},methods:{onFocusin:function(t){t.target===this.$el&&(t.preventDefault(),t.stopPropagation(),this.focusFirst(t))},stop:function(t){t.preventDefault(),t.stopPropagation()},onKeydown:function(t){if(this.keyNav){var e=t.keyCode,n=t.shiftKey;e===nr.UP||e===nr.LEFT?(this.stop(t),n?this.focusFirst(t):this.focusPrev(t)):e!==nr.DOWN&&e!==nr.RIGHT||(this.stop(t),n?this.focusLast(t):this.focusNext(t))}},setItemFocus:function(t){t&&t.focus&&t.focus()},focusFirst:function(t){var e=this.getItems();this.setItemFocus(e[0])},focusPrev:function(t){var e=this.getItems(),n=e.indexOf(t.target);n>-1&&(e=e.slice(0,n).reverse(),this.setItemFocus(e[0]))},focusNext:function(t){var e=this.getItems(),n=e.indexOf(t.target);n>-1&&(e=e.slice(n+1),this.setItemFocus(e[0]))},focusLast:function(t){var e=this.getItems().reverse();this.setItemFocus(e[0])},getItems:function(){var t=qt(rr,this.$el);return t.forEach(function(t){t.tabIndex=-1}),t.filter(function(t){return Ht(t)})}},render:function(t){return t("div",{staticClass:"btn-toolbar",class:{"justify-content-between":this.justify},attrs:{role:"toolbar",tabindex:this.keyNav?"0":null},on:this.keyNav?{focusin:this.onFocusin,keydown:this.onKeydown}:{}},[this.normalizeSlot("default")])}}),or=mt({components:{BButtonToolbar:ir,BBtnToolbar:ir}}),sr=function(t){return Q(t)||(t=String(t)),t=t.trim(),t.charAt(0).toUpperCase()+t.slice(1)},ar=sr,lr=function(t,e){return t+ar(e)},cr=lr,ur=function(t){return t=String(t),t.charAt(0).toLowerCase()+t.slice(1)},dr=ur,hr=function(t,e){return dr(e.replace(t,""))},fr=hr;function pr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function gr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pr(n,!0).forEach(function(e){mr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pr(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function mr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Be;if(h(t))return t.map(e);var n={};for(var r in t)t.hasOwnProperty(r)&&(n[e(r)]=P(t[r])?gr({},t[r]):t[r]);return n},br=vr,yr={props:{tag:{type:String,default:"div"},bgVariant:{type:String,default:null},borderVariant:{type:String,default:null},textVariant:{type:String,default:null}}},wr={title:{type:String,default:""},titleTag:{type:String,default:"h4"}},kr=i.extend({name:"BCardTitle",functional:!0,props:wr,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.titleTag,pe(r,{staticClass:"card-title"}),i||n.title)}}),_r="BCardSubTitle",xr={subTitle:{type:String,default:""},subTitleTag:{type:String,default:"h6"},subTitleTextVariant:{type:String,default:function(){return Ot(_r,"subTitleTextVariant")}}},Cr=i.extend({name:_r,functional:!0,props:xr,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.subTitleTag,pe(r,{staticClass:"card-subtitle",class:[n.subTitleTextVariant?"text-".concat(n.subTitleTextVariant):null]}),i||n.subTitle)}});function Sr(t){return Pr(t)||Or(t)||Tr()}function Tr(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Or(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function Pr(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function Ar(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Er(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ar(n,!0).forEach(function(e){Mr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ar(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Mr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ir=Er({},br(yr.props,cr.bind(null,"body")),{bodyClass:{type:[String,Object,Array],default:null}},wr,{},xr,{overlay:{type:Boolean,default:!1}}),Nr=i.extend({name:"BCardBody",functional:!0,props:Ir,render:function(t,e){var n,r=e.props,i=e.data,o=e.children,s=t(),a=t(),l=o||[t()];return r.title&&(s=t(kr,{props:Fe(wr,r)})),r.subTitle&&(a=t(Cr,{props:Fe(xr,r),class:["mb-2"]})),t(r.bodyTag,pe(i,{staticClass:"card-body",class:[(n={"card-img-overlay":r.overlay},Mr(n,"bg-".concat(r.bodyBgVariant),Boolean(r.bodyBgVariant)),Mr(n,"border-".concat(r.bodyBorderVariant),Boolean(r.bodyBorderVariant)),Mr(n,"text-".concat(r.bodyTextVariant),Boolean(r.bodyTextVariant)),n),r.bodyClass||{}]}),[s,a].concat(Sr(l)))}});function jr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Dr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jr(n,!0).forEach(function(e){Lr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jr(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Lr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Br=Dr({},br(yr.props,cr.bind(null,"header")),{header:{type:String,default:null},headerHtml:{type:String,default:null},headerClass:{type:[String,Object,Array],default:null}}),Rr=i.extend({name:"BCardHeader",functional:!0,props:Br,render:function(t,e){var n,r=e.props,i=e.data,o=e.children;return t(r.headerTag,pe(i,{staticClass:"card-header",class:[r.headerClass,(n={},Lr(n,"bg-".concat(r.headerBgVariant),Boolean(r.headerBgVariant)),Lr(n,"border-".concat(r.headerBorderVariant),Boolean(r.headerBorderVariant)),Lr(n,"text-".concat(r.headerTextVariant),Boolean(r.headerTextVariant)),n)]}),o||[t("div",{domProps:wn(r.headerHtml,r.header)})])}});function Fr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function $r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fr(n,!0).forEach(function(e){Vr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fr(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Vr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zr=$r({},br(yr.props,cr.bind(null,"footer")),{footer:{type:String,default:null},footerHtml:{type:String,default:null},footerClass:{type:[String,Object,Array],default:null}}),Hr=i.extend({name:"BCardFooter",functional:!0,props:zr,render:function(t,e){var n,r=e.props,i=e.data,o=e.children;return t(r.footerTag,pe(i,{staticClass:"card-footer",class:[r.footerClass,(n={},Vr(n,"bg-".concat(r.footerBgVariant),Boolean(r.footerBgVariant)),Vr(n,"border-".concat(r.footerBorderVariant),Boolean(r.footerBorderVariant)),Vr(n,"text-".concat(r.footerTextVariant),Boolean(r.footerTextVariant)),n)]}),o||[t("div",{domProps:wn(r.footerHtml,r.footer)})])}}),Wr={src:{type:String,default:null,required:!0},alt:{type:String,default:null},top:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},left:{type:Boolean,default:!1},start:{type:Boolean,default:!1},right:{type:Boolean,default:!1},end:{type:Boolean,default:!1},height:{type:String,default:null},width:{type:String,default:null}},Ur=i.extend({name:"BCardImg",functional:!0,props:Wr,render:function(t,e){var n=e.props,r=e.data,i="card-img";return n.top?i+="-top":n.right||n.end?i+="-right":n.bottom?i+="-bottom":(n.left||n.start)&&(i+="-left"),t("img",pe(r,{class:[i],attrs:{src:n.src,alt:n.alt,height:n.height,width:n.width}}))}});function qr(t){return Kr(t)||Yr(t)||Gr()}function Gr(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Yr(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function Kr(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function Xr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Jr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xr(n,!0).forEach(function(e){Qr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xr(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Qr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zr=br(Wr,cr.bind(null,"img"));Zr.imgSrc.required=!1;var ti=Jr({},Ir,{},Br,{},zr,{},Zr,{},br(yr.props),{align:{type:String,default:null},noBody:{type:Boolean,default:!1}}),ei=i.extend({name:"BCard",functional:!0,props:ti,render:function(t,e){var n,r=e.props,i=e.data,o=e.slots,s=e.scopedSlots,a=o(),l=s||{},c=t(),u=t(),d=t(),h=t(),f=t();if(r.imgSrc){var p=t(Ur,{props:Fe(Zr,r,fr.bind(null,"img"))});r.imgBottom?f=p:c=p}return(r.header||_e("header",l,a))&&(u=t(Rr,{props:Fe(Br,r)},xe("header",{},l,a))),d=xe("default",{},l,a)||[],r.noBody||(d=[t(Nr,{props:Fe(Ir,r)},qr(d))]),(r.footer||_e("footer",l,a))&&(h=t(Hr,{props:Fe(zr,r)},xe("footer",{},l,a))),t(r.tag,pe(i,{staticClass:"card",class:(n={"flex-row":r.imgLeft||r.imgStart,"flex-row-reverse":(r.imgRight||r.imgEnd)&&!(r.imgLeft||r.imgStart)},Qr(n,"text-".concat(r.align),Boolean(r.align)),Qr(n,"bg-".concat(r.bgVariant),Boolean(r.bgVariant)),Qr(n,"border-".concat(r.borderVariant),Boolean(r.borderVariant)),Qr(n,"text-".concat(r.textVariant),Boolean(r.textVariant)),n)}),[c,u].concat(qr(d),[h,f]))}});function ni(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ri="BImg",ii='<svg width="%{w}" height="%{h}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 %{w} %{h}" preserveAspectRatio="none"><rect width="100%" height="100%" style="fill:%{f};"></rect></svg>',oi={src:{type:String,default:null},alt:{type:String,default:null},width:{type:[Number,String],default:null},height:{type:[Number,String],default:null},block:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fluidGrow:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},thumbnail:{type:Boolean,default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},center:{type:Boolean,default:!1},blank:{type:Boolean,default:!1},blankColor:{type:String,default:function(){return Ot(ri,"blankColor")}}},si=function(t,e,n){var r=encodeURIComponent(ii.replace("%{w}",String(t)).replace("%{h}",String(e)).replace("%{f}",n));return"data:image/svg+xml;charset=UTF-8,".concat(r)},ai=i.extend({name:ri,functional:!0,props:oi,render:function(t,e){var n,r=e.props,i=e.data,o=r.src,s=parseInt(r.width,10)?parseInt(r.width,10):null,a=parseInt(r.height,10)?parseInt(r.height,10):null,l=null,c=r.block;return r.blank&&(!a&&Boolean(s)?a=s:!s&&Boolean(a)&&(s=a),s||a||(s=1,a=1),o=si(s,a,r.blankColor||"transparent")),r.left?l="float-left":r.right?l="float-right":r.center&&(l="mx-auto",c=!0),t("img",pe(i,{attrs:{src:o,alt:r.alt,width:s?String(s):null,height:a?String(a):null},class:(n={"img-thumbnail":r.thumbnail,"img-fluid":r.fluid||r.fluidGrow,"w-100":r.fluidGrow,rounded:""===r.rounded||!0===r.rounded},ni(n,"rounded-".concat(r.rounded),Q(r.rounded)&&""!==r.rounded),ni(n,l,Boolean(l)),ni(n,"d-block",c),n)}))}}),li="BImgLazy",ci=100,ui={passive:!0,capture:!1},di={src:{type:String,default:null,required:!0},alt:{type:String,default:null},width:{type:[Number,String],default:null},height:{type:[Number,String],default:null},blankSrc:{type:String,default:null},blankColor:{type:String,default:function(){return Ot(li,"blankColor")}},blankWidth:{type:[Number,String],default:null},blankHeight:{type:[Number,String],default:null},show:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fluidGrow:{type:Boolean,default:!1},block:{type:Boolean,default:!1},thumbnail:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},center:{type:Boolean,default:!1},offset:{type:[Number,String],default:360},throttle:{type:[Number,String],default:ci}},hi=i.extend({name:li,props:di,data:function(){return{isShown:!1,scrollTimeout:null,observer:null}},computed:{computedSrc:function(){return!this.blankSrc||this.isShown?this.src:this.blankSrc},computedBlank:function(){return!(this.isShown||this.blankSrc)},computedWidth:function(){return this.isShown?this.width:this.blankWidth||this.width},computedHeight:function(){return this.isShown?this.height:this.blankHeight||this.height}},watch:{show:function(t,e){t!==e&&(this.isShown=t,t||this.setListeners(!0))},isShown:function(t,e){t!==e&&this.$emit("update:show",t)}},created:function(){this.isShown=this.show},mounted:function(){this.isShown?this.setListeners(!1):this.setListeners(!0)},activated:function(){this.isShown||this.setListeners(!0)},deactivated:function(){this.setListeners(!1)},beforeDestroy:function(){this.setListeners(!1)},methods:{setListeners:function(t){var e=this;this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.observer&&(this.observer.unobserve(this.$el),this.observer.disconnect(),this.observer=null);var n=["scroll","resize","orientationchange"];n.forEach(function(t){return Vt(window,t,e.onScroll,ui)}),Vt(this.$el,"load",this.checkView,ui),Vt(document,"transitionend",this.onScroll,ui),t&&(o["c"]?(this.observer=new IntersectionObserver(this.doShow,{root:null,rootMargin:"".concat(parseInt(this.offset,10)||0,"px"),threshold:0}),this.observer.observe(this.$el)):(n.forEach(function(t){return $t(window,t,e.onScroll,ui)}),$t(this.$el,"load",this.checkView,ui),$t(document,"transitionend",this.onScroll,ui)))},doShow:function(t){t&&(t[0].isIntersecting||t[0].intersectionRatio>0)&&(this.isShown=!0,this.setListeners(!1))},checkView:function(){if(this.isShown)this.setListeners(!1);else{var t=parseInt(this.offset,10)||0,e=document.documentElement,n={l:0-t,t:0-t,b:e.clientHeight+t,r:e.clientWidth+t},r=oe(this.$el);r.right>=n.l&&r.bottom>=n.t&&r.left<=n.r&&r.top<=n.b&&this.doShow([{isIntersecting:!0}])}},onScroll:function(){this.isShown?this.setListeners(!1):(clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(this.checkView,parseInt(this.throttle,10)||ci))}},render:function(t){return t(ai,{props:{src:this.computedSrc,blank:this.computedBlank,width:this.computedWidth,height:this.computedHeight,alt:this.alt,blankColor:this.blankColor,fluid:this.fluid,fluidGrow:this.fluidGrow,block:this.block,thumbnail:this.thumbnail,rounded:this.rounded,left:this.left,right:this.right,center:this.center}})}});function fi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function pi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fi(n,!0).forEach(function(e){gi(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fi(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function gi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mi=E(di,["left","right","center","block","rounded","thumbnail","fluid","fluidGrow"]),vi=pi({},mi,{top:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},left:{type:Boolean,default:!1},start:{type:Boolean,default:!1},right:{type:Boolean,default:!1},end:{type:Boolean,default:!1}}),bi=i.extend({name:"BCardImgLazy",functional:!0,props:vi,render:function(t,e){var n=e.props,r=e.data,i="card-img";n.top?i+="-top":n.right||n.end?i+="-right":n.bottom?i+="-bottom":(n.left||n.start)&&(i+="-left");var o=pi({},n,{left:!1,right:!1,center:!1});return t(hi,pe(r,{class:[i],props:o}))}}),yi={textTag:{type:String,default:"p"}},wi=i.extend({name:"BCardText",functional:!0,props:yi,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.textTag,pe(r,{staticClass:"card-text"}),i)}}),ki={tag:{type:String,default:"div"},deck:{type:Boolean,default:!1},columns:{type:Boolean,default:!1}},_i=i.extend({name:"BCardGroup",functional:!0,props:ki,render:function(t,e){var n=e.props,r=e.data,i=e.children,o="card-group";return n.deck?o="card-deck":n.columns&&(o="card-columns"),t(n.tag,pe(r,{class:o}),i)}}),xi=mt({components:{BCard:ei,BCardHeader:Rr,BCardBody:Nr,BCardTitle:kr,BCardSubTitle:Cr,BCardFooter:Hr,BCardImg:Ur,BCardImgLazy:bi,BCardText:wi,BCardGroup:_i}}),Ci=function(){},Si=Ci;function Ti(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Oi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ti(n,!0).forEach(function(e){Pi(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ti(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Pi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ai=function(t,e,n){if(t=t?t.$el||t:null,!zt(t))return null;if(c("observeDom"))return null;var r=new Rt(function(t){for(var n=!1,r=0;r<t.length&&!n;r++){var i=t[r],o=i.type,s=i.target;"characterData"===o&&s.nodeType===Node.TEXT_NODE?n=!0:"attributes"===o?n=!0:"childList"===o&&(i.addedNodes.length>0||i.removedNodes.length>0)&&(n=!0)}n&&e()});return r.observe(t,Oi({childList:!0,subtree:!0},n)),r},Ei=Ai,Mi={props:{id:{type:String,default:null}},data:function(){return{localId_:null}},computed:{safeId:function(){var t=this.id||this.localId_,e=function(e){return t?(e=String(e||"").replace(/\s+/g,"_"),e?t+"_"+e:t):null};return e}},mounted:function(){var t=this;this.$nextTick(function(){t.localId_="__BVID__".concat(t._uid)})}},Ii="BCarousel",Ni={next:{dirClass:"carousel-item-left",overlayClass:"carousel-item-next"},prev:{dirClass:"carousel-item-right",overlayClass:"carousel-item-prev"}},ji=650,Di=500,Li=40,Bi={TOUCH:"touch",PEN:"pen"},Ri={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend oTransitionEnd",transition:"transitionend"},Fi={passive:!0,capture:!1},$i=function(t){for(var e in Ri)if(!G(t.style[e]))return Ri[e];return null},Vi=i.extend({name:"BCarousel",mixins:[Mi,Ce],provide:function(){return{bvCarousel:this}},model:{prop:"value",event:"input"},props:{labelPrev:{type:String,default:function(){return Ot(Ii,"labelPrev")}},labelNext:{type:String,default:function(){return Ot(Ii,"labelNext")}},labelGotoSlide:{type:String,default:function(){return Ot(Ii,"labelGotoSlide")}},labelIndicators:{type:String,default:function(){return Ot(Ii,"labelIndicators")}},interval:{type:Number,default:5e3},indicators:{type:Boolean,default:!1},controls:{type:Boolean,default:!1},noAnimation:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},noTouch:{type:Boolean,default:!1},noHoverPause:{type:Boolean,default:!1},imgWidth:{type:[Number,String]},imgHeight:{type:[Number,String]},background:{type:String},value:{type:Number,default:0}},data:function(){return{index:this.value||0,isSliding:!1,transitionEndEvent:null,slides:[],direction:null,isPaused:!(parseInt(this.interval,10)>0),touchStartX:0,touchDeltaX:0}},watch:{value:function(t,e){t!==e&&this.setSlide(t)},interval:function(t,e){t!==e&&(t?(this.pause(!0),this.start(!1)):this.pause(!1))},isPaused:function(t,e){t!==e&&this.$emit(t?"paused":"unpaused")},index:function(t,e){t===e||this.isSliding||this.doSlide(t,e)}},created:function(){this._intervalId=null,this._animationTimeout=null,this._touchTimeout=null,this.isPaused=!(parseInt(this.interval,10)>0)},mounted:function(){this.transitionEndEvent=$i(this.$el)||null,this.updateSlides(),Ei(this.$refs.inner,this.updateSlides.bind(this),{subtree:!1,childList:!0,attributes:!0,attributeFilter:["id"]})},beforeDestroy:function(){clearTimeout(this._animationTimeout),clearTimeout(this._touchTimeout),clearInterval(this._intervalId),this._intervalId=null,this._animationTimeout=null,this._touchTimeout=null},methods:{setSlide:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(o["j"]&&document.visibilityState&&document.hidden)){var r=this.slides.length;0!==r&&(this.isSliding?this.$once("sliding-end",function(){return e.setSlide(t,n)}):(this.direction=n,t=Math.floor(t),this.index=t>=r?0:t>=0?t:r-1))}},prev:function(){this.setSlide(this.index-1,"prev")},next:function(){this.setSlide(this.index+1,"next")},pause:function(t){t||(this.isPaused=!0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)},start:function(t){t||(this.isPaused=!1),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this.interval&&this.slides.length>1&&(this._intervalId=setInterval(this.next,Math.max(1e3,this.interval)))},restart:function(t){this.$el.contains(document.activeElement)||this.start()},doSlide:function(t,e){var n=this,r=Boolean(this.interval),i=this.calcDirection(this.direction,e,t),o=i.overlayClass,s=i.dirClass,a=this.slides[e],l=this.slides[t];if(a&&l){if(this.isSliding=!0,r&&this.pause(!1),this.$emit("sliding-start",t),this.$emit("input",this.index),this.noAnimation)Qt(l,"active"),Zt(a,"active"),this.isSliding=!1,this.$nextTick(function(){return n.$emit("sliding-end",t)});else{Qt(l,o),Ut(l),Qt(a,s),Qt(l,s);var c=!1,u=function e(r){if(!c){if(c=!0,n.transitionEndEvent){var i=n.transitionEndEvent.split(/\s+/);i.forEach(function(t){return Vt(a,t,e,Fi)})}n._animationTimeout=null,Zt(l,s),Zt(l,o),Qt(l,"active"),Zt(a,"active"),Zt(a,s),Zt(a,o),ee(a,"aria-current","false"),ee(l,"aria-current","true"),ee(a,"aria-hidden","true"),ee(l,"aria-hidden","false"),n.isSliding=!1,n.direction=null,n.$nextTick(function(){return n.$emit("sliding-end",t)})}};if(this.transitionEndEvent){var d=this.transitionEndEvent.split(/\s+/);d.forEach(function(t){return $t(a,t,u,Fi)})}this._animationTimeout=setTimeout(u,ji)}r&&this.start(!1)}},updateSlides:function(){this.pause(!0),this.slides=qt(".carousel-item",this.$refs.inner);var t=this.slides.length,e=Math.max(0,Math.min(Math.floor(this.index),t-1));this.slides.forEach(function(n,r){var i=r+1;r===e?(Qt(n,"active"),ee(n,"aria-current","true")):(Zt(n,"active"),ee(n,"aria-current","false")),ee(n,"aria-posinset",String(i)),ee(n,"aria-setsize",String(t))}),this.setSlide(e),this.start(this.isPaused)},calcDirection:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t?Ni[t]:n>e?Ni.next:Ni.prev},handleClick:function(t,e){var n=t.keyCode;"click"!==t.type&&n!==nr.SPACE&&n!==nr.ENTER||(t.preventDefault(),t.stopPropagation(),e())},handleSwipe:function(){var t=Math.abs(this.touchDeltaX);if(!(t<=Li)){var e=t/this.touchDeltaX;e>0?this.prev():e<0&&this.next()}},touchStart:function(t){o["f"]&&Bi[t.pointerType.toUpperCase()]?this.touchStartX=t.clientX:o["f"]||(this.touchStartX=t.touches[0].clientX)},touchMove:function(t){t.touches&&t.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=t.touches[0].clientX-this.touchStartX},touchEnd:function(t){o["f"]&&Bi[t.pointerType.toUpperCase()]&&(this.touchDeltaX=t.clientX-this.touchStartX),this.handleSwipe(),this.pause(!1),this._touchTimeout&&clearTimeout(this._touchTimeout),this._touchTimeout=setTimeout(this.start,Di+Math.max(1e3,this.interval))}},render:function(t){var e=this,n=t("div",{ref:"inner",class:["carousel-inner"],attrs:{id:this.safeId("__BV_inner_"),role:"list"}},[this.normalizeSlot("default")]),r=t();this.controls&&(r=[t("a",{class:["carousel-control-prev"],attrs:{href:"#",role:"button","aria-controls":this.safeId("__BV_inner_")},on:{click:function(t){e.handleClick(t,e.prev)},keydown:function(t){e.handleClick(t,e.prev)}}},[t("span",{class:["carousel-control-prev-icon"],attrs:{"aria-hidden":"true"}}),t("span",{class:["sr-only"]},[this.labelPrev])]),t("a",{class:["carousel-control-next"],attrs:{href:"#",role:"button","aria-controls":this.safeId("__BV_inner_")},on:{click:function(t){e.handleClick(t,e.next)},keydown:function(t){e.handleClick(t,e.next)}}},[t("span",{class:["carousel-control-next-icon"],attrs:{"aria-hidden":"true"}}),t("span",{class:["sr-only"]},[this.labelNext])])]);var i=t("ol",{class:["carousel-indicators"],directives:[{name:"show",rawName:"v-show",value:this.indicators,expression:"indicators"}],attrs:{id:this.safeId("__BV_indicators_"),"aria-hidden":this.indicators?"false":"true","aria-label":this.labelIndicators,"aria-owns":this.safeId("__BV_inner_")}},this.slides.map(function(n,r){return t("li",{key:"slide_".concat(r),class:{active:r===e.index},attrs:{role:"button",id:e.safeId("__BV_indicator_".concat(r+1,"_")),tabindex:e.indicators?"0":"-1","aria-current":r===e.index?"true":"false","aria-label":"".concat(e.labelGotoSlide," ").concat(r+1),"aria-describedby":e.slides[r].id||null,"aria-controls":e.safeId("__BV_inner_")},on:{click:function(t){e.handleClick(t,function(){e.setSlide(r)})},keydown:function(t){e.handleClick(t,function(){e.setSlide(r)})}}})})),s={mouseenter:this.noHoverPause?Si:this.pause,mouseleave:this.noHoverPause?Si:this.restart,focusin:this.pause,focusout:this.restart,keydown:function(t){if(!/input|textarea/i.test(t.target.tagName)){var n=t.keyCode;n!==nr.LEFT&&n!==nr.RIGHT||(t.preventDefault(),t.stopPropagation(),e[n===nr.LEFT?"prev":"next"]())}}};return!this.noTouch&&o["h"]&&(o["f"]?(s["&pointerdown"]=this.touchStart,s["&pointerup"]=this.touchEnd):(s["&touchstart"]=this.touchStart,s["&touchmove"]=this.touchMove,s["&touchend"]=this.touchEnd)),t("div",{staticClass:"carousel",class:{slide:!this.noAnimation,"carousel-fade":!this.noAnimation&&this.fade,"pointer-event":!this.noTouch&&o["h"]&&o["f"]},style:{background:this.background},attrs:{role:"region",id:this.safeId(),"aria-busy":this.isSliding?"true":"false"},on:s},[n,r,i])}}),zi={imgSrc:{type:String},imgAlt:{type:String},imgWidth:{type:[Number,String]},imgHeight:{type:[Number,String]},imgBlank:{type:Boolean,default:!1},imgBlankColor:{type:String,default:"transparent"},contentVisibleUp:{type:String},contentTag:{type:String,default:"div"},caption:{type:String},captionHtml:{type:String},captionTag:{type:String,default:"h3"},text:{type:String},textHtml:{type:String},textTag:{type:String,default:"p"},background:{type:String}},Hi=i.extend({name:"BCarouselSlide",mixins:[Mi,Ce],inject:{bvCarousel:{default:function(){return{noTouch:!0}}}},props:zi,computed:{contentClasses:function(){return[this.contentVisibleUp?"d-none":"",this.contentVisibleUp?"d-".concat(this.contentVisibleUp,"-block"):""]},computedWidth:function(){return this.imgWidth||this.bvCarousel.imgWidth||null},computedHeight:function(){return this.imgHeight||this.bvCarousel.imgHeight||null}},render:function(t){var e=!this.bvCarousel.noTouch&&o["h"],n=this.normalizeSlot("img");n||!this.imgSrc&&!this.imgBlank||(n=t(ai,{props:{fluidGrow:!0,block:!0,src:this.imgSrc,blank:this.imgBlank,blankColor:this.imgBlankColor,width:this.computedWidth,height:this.computedHeight,alt:this.imgAlt},on:e?{dragstart:function(t){t.preventDefault()}}:{}})),n||(n=t());var r=t(),i=[!(!this.caption&&!this.captionHtml)&&t(this.captionTag,{domProps:wn(this.captionHtml,this.caption)}),!(!this.text&&!this.textHtml)&&t(this.textTag,{domProps:wn(this.textHtml,this.text)}),this.normalizeSlot("default")||!1];return i.some(Boolean)&&(r=t(this.contentTag,{staticClass:"carousel-caption",class:this.contentClasses},i.map(function(e){return e||t()}))),t("div",{staticClass:"carousel-item",style:{background:this.background||this.bvCarousel.background||null},attrs:{id:this.safeId(),role:"listitem"}},[n,r])}}),Wi=mt({components:{BCarousel:Vi,BCarouselSlide:Hi}}),Ui={methods:{listenOnRoot:function(t,e){var n=this;return this.$root.$on(t,e),this.$on("hook:beforeDestroy",function(){n.$root.$off(t,e)}),this},listenOnRootOnce:function(t,e){var n=this;return this.$root.$once(t,e),this.$on("hook:beforeDestroy",function(){n.$root.$off(t,e)}),this},emitOnRoot:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(e=this.$root).$emit.apply(e,[t].concat(r)),this}}},qi="bv::collapse::state",Gi="bv::collapse::accordion",Yi="bv::collapse::sync::state",Ki="bv::toggle::collapse",Xi="bv::request::collapse::state",Ji={passive:!0,capture:!1},Qi=i.extend({name:"BCollapse",mixins:[Ui,Ce],model:{prop:"visible",event:"input"},props:{id:{type:String,required:!0},isNav:{type:Boolean,default:!1},accordion:{type:String,default:null},visible:{type:Boolean,default:!1},tag:{type:String,default:"div"}},data:function(){return{show:this.visible,transitioning:!1}},computed:{classObject:function(){return{"navbar-collapse":this.isNav,collapse:!this.transitioning,show:this.show&&!this.transitioning}}},watch:{visible:function(t){t!==this.show&&(this.show=t)},show:function(t,e){t!==e&&this.emitState()}},created:function(){this.show=this.visible},mounted:function(){var t=this;this.show=this.visible,this.listenOnRoot(Ki,this.handleToggleEvt),this.listenOnRoot(Gi,this.handleAccordionEvt),this.isNav&&(this.setWindowEvents(!0),this.handleResize()),this.$nextTick(function(){t.emitState()}),this.listenOnRoot(Xi,function(e){e===t.id&&t.$nextTick(t.emitSync)})},updated:function(){this.emitSync()},deactivated:function(){this.isNav&&this.setWindowEvents(!1)},activated:function(){this.isNav&&this.setWindowEvents(!0),this.emitSync()},beforeDestroy:function(){this.show=!1,this.isNav&&o["j"]&&this.setWindowEvents(!1)},methods:{setWindowEvents:function(t){var e=t?$t:Vt;e(window,"resize",this.handleResize,Ji),e(window,"orientationchange",this.handleResize,Ji)},toggle:function(){this.show=!this.show},onEnter:function(t){t.style.height=0,Ut(t),t.style.height=t.scrollHeight+"px",this.transitioning=!0,this.$emit("show")},onAfterEnter:function(t){t.style.height=null,this.transitioning=!1,this.$emit("shown")},onLeave:function(t){t.style.height="auto",t.style.display="block",t.style.height=oe(t).height+"px",Ut(t),this.transitioning=!0,t.style.height=0,this.$emit("hide")},onAfterLeave:function(t){t.style.height=null,this.transitioning=!1,this.$emit("hidden")},emitState:function(){this.$emit("input",this.show),this.$root.$emit(qi,this.id,this.show),this.accordion&&this.show&&this.$root.$emit(Gi,this.id,this.accordion)},emitSync:function(){this.$root.$emit(Yi,this.id,this.show)},checkDisplayBlock:function(){var t=te(this.$el,"show");Zt(this.$el,"show");var e="block"===se(this.$el).display;return t&&Qt(this.$el,"show"),e},clickHandler:function(t){var e=t.target;this.isNav&&e&&"block"===se(this.$el).display&&(Yt(e,".nav-link,.dropdown-item")||Kt(".nav-link,.dropdown-item",e))&&(this.checkDisplayBlock()||(this.show=!1))},handleToggleEvt:function(t){t===this.id&&this.toggle()},handleAccordionEvt:function(t,e){this.accordion&&e===this.accordion&&(t===this.id?this.show||this.toggle():this.show&&this.toggle())},handleResize:function(){this.show="block"===se(this.$el).display}},render:function(t){var e=t(this.tag,{class:this.classObject,directives:[{name:"show",value:this.show}],attrs:{id:this.id||null},on:{click:this.clickHandler}},[this.normalizeSlot("default")]);return t("transition",{props:{enterClass:"",enterActiveClass:"collapsing",enterToClass:"",leaveClass:"",leaveActiveClass:"collapsing",leaveToClass:""},on:{enter:this.onEnter,afterEnter:this.onAfterEnter,leave:this.onLeave,afterLeave:this.onAfterLeave}},[e])}}),Zi=function(t,e){if(t.length!==e.length)return!1;for(var n=!0,r=0;n&&r<t.length;r++)n=to(t[r],e[r]);return n},to=function t(e,n){if(e===n)return!0;var r=tt(e),i=tt(n);if(r||i)return!(!r||!i)&&e.getTime()===n.getTime();if(r=h(e),i=h(n),r||i)return!(!r||!i)&&Zi(e,n);if(r=P(e),i=P(n),r||i){if(!r||!i)return!1;var o=k(e).length,s=k(n).length;if(o!==s)return!1;for(var a in e){var l=e.hasOwnProperty(a),c=n.hasOwnProperty(a);if(l&&!c||!l&&c||!t(e[a],n[a]))return!1}}return String(e)===String(n)},eo=to,no={hover:!0,click:!0,focus:!0},ro="__BV_boundEventListeners__",io=function(t){var e=k(t.modifiers||{}).filter(function(t){return!no[t]});return t.value&&e.push(t.value),e},oo=function(t,e,n,r){var i=io(e),o=function(){r({targets:i,vnode:t})};return k(no).forEach(function(r){if(n[r]||e.modifiers[r]){$t(t.elm,r,o);var i=t.elm[ro]||{};i[r]=i[r]||[],i[r].push(o),t.elm[ro]=i}}),i},so=function(t,e,n){k(no).forEach(function(r){if(n[r]||e.modifiers[r]){var i=t.elm[ro]&&t.elm[ro][r];i&&(i.forEach(function(e){return Vt(t.elm,r,e)}),delete t.elm[ro][r])}})},ao={click:!0},lo="__BV_toggle__",co="__BV_toggle_STATE__",uo="__BV_toggle_CONTROLS__",ho="__BV_toggle_TARGETS__",fo="bv::toggle::collapse",po="bv::collapse::state",go="bv::collapse::sync::state",mo="bv::request::collapse::state",vo=function(t,e){t[e]=null,delete t[e]},bo=function(t){var e=t.targets,n=t.vnode;e.forEach(function(t){n.context.$root.$emit(fo,t)})},yo=function(t,e,n){if(o["j"]){if(!eo(io(e),t[ho])){so(n,e,ao);var r=oo(n,e,ao,bo);t[ho]=r,t[uo]=r.join(" "),ee(t,"aria-controls",t[uo]),r.forEach(function(t){n.context.$root.$emit(mo,t)})}!0===t[co]?(Qt(t,"collapsed"),ee(t,"aria-expanded","true")):!1===t[co]&&(Zt(t,"collapsed"),ee(t,"aria-expanded","false")),ee(t,"aria-controls",t[uo])}},wo={bind:function(t,e,n){var r=oo(n,e,ao,bo);if(o["j"]&&n.context&&r.length>0){t[ho]=r,t[uo]=r.join(" "),t[co]=!1,ee(t,"aria-controls",t[uo]),ee(t,"aria-expanded","false"),"BUTTON"!==t.tagName&&ee(t,"role","button");var i=function(e,n){var r=t[ho]||[];-1!==r.indexOf(e)&&(ee(t,"aria-expanded",n?"true":"false"),t[co]=n,n?Zt(t,"collapsed"):Qt(t,"collapsed"))};t[lo]=i,n.context.$root.$on(po,t[lo]),n.context.$root.$on(go,t[lo])}},componentUpdated:yo,updated:yo,unbind:function(t,e,n){so(n,e,ao),t[lo]&&(n.context.$root.$off(po,t[lo]),n.context.$root.$off(go,t[lo])),vo(t,lo),vo(t,co),vo(t,uo),vo(t,ho),Zt(t,"collapsed"),ne(t,"aria-expanded"),ne(t,"aria-controls"),ne(t,"role")}},ko=mt({components:{BCollapse:Qi},directives:{VBToggle:wo}}),_o=o["i"]?window:{},xo=_o.HTMLElement||Object,Co=n("f0bd");function So(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function To(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)}}function Oo(t,e,n){return e&&To(t.prototype,e),n&&To(t,n),t}var Po=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(So(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));y(this,t.Defaults,this.constructor.Defaults,n,{type:e}),_(this,{type:M(),cancelable:M(),nativeEvent:M(),target:M(),relatedTarget:M(),vueTarget:M(),componentId:M()});var r=!1;this.preventDefault=function(){this.cancelable&&(r=!0)},x(this,"defaultPrevented",{enumerable:!0,get:function(){return r}})}return Oo(t,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),t}(),Ao=Po,Eo={data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(t,e){t!==e&&(Vt(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,!1),t&&$t(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,!1))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="ontouchstart"in document.documentElement?"touchstart":"click"),this.listenForClickOut&&$t(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,!1)},beforeDestroy:function(){Vt(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,!1)},methods:{isClickOut:function(t){return!Xt(this.$el,t.target)},_clickOutHandler:function(t){this.clickOutHandler&&this.isClickOut(t)&&this.clickOutHandler(t)}}},Mo={data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(t,e){t!==e&&(Vt(this.focusInElement,"focusin",this._focusInHandler,!1),t&&$t(this.focusInElement,"focusin",this._focusInHandler,!1))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&$t(this.focusInElement,"focusin",this._focusInHandler,!1)},beforeDestroy:function(){Vt(this.focusInElement,"focusin",this._focusInHandler,!1)},methods:{_focusInHandler:function(t){this.focusInHandler&&this.focusInHandler(t)}}};function Io(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function No(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Io(n,!0).forEach(function(e){jo(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Io(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function jo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Do=function(t){return(t||[]).filter(Ht)},Lo={FORM_CHILD:".dropdown form",ITEM_SELECTOR:[".dropdown-item",".b-dropdown-form"].map(function(t){return"".concat(t,":not(.disabled):not([disabled])")}).join(", ")},Bo={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},Ro={mixins:[Eo,Mo],provide:function(){return{bvDropdown:this}},props:{disabled:{type:Boolean,default:!1},text:{type:String,default:""},html:{type:String},dropup:{type:Boolean,default:!1},dropright:{type:Boolean,default:!1},dropleft:{type:Boolean,default:!1},right:{type:Boolean,default:!1},offset:{type:[Number,String],default:0},noFlip:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},popperOpts:{default:function(){}}},data:function(){return{visible:!1,inNavbar:null,visibleChangePrevented:!1}},computed:{toggler:function(){var t=this.$refs.toggle;return t?t.$el||t:null},directionClass:function(){return this.dropup?"dropup":this.dropright?"dropright":this.dropleft?"dropleft":""}},watch:{visible:function(t,e){if(this.visibleChangePrevented)this.visibleChangePrevented=!1;else if(t!==e){var n=t?"show":"hide",r=new Ao(n,{cancelable:!0,vueTarget:this,target:this.$refs.menu,relatedTarget:null});if(this.emitEvent(r),r.defaultPrevented)return this.visibleChangePrevented=!0,this.visible=e,void this.$off("hidden",this.focusToggler);"show"===n?this.showMenu():this.hideMenu()}},disabled:function(t,e){t!==e&&t&&this.visible&&(this.visible=!1)}},created:function(){this._popper=null},deactivated:function(){this.visible=!1,this.whileOpenListen(!1),this.removePopper()},beforeDestroy:function(){this.visible=!1,this.whileOpenListen(!1),this.removePopper()},methods:{emitEvent:function(t){var e=t.type;this.$emit(e,t),this.$root.$emit("bv::dropdown::".concat(e),t)},showMenu:function(){var t=this;if(!this.disabled){if(this.$root.$emit("bv::dropdown::shown",this),Y(this.inNavbar)&&this.isNav&&(this.inNavbar=Boolean(Kt(".navbar",this.$el))),!this.inNavbar)if("undefined"===typeof Co["a"])u("b-dropdown: Popper.js not found. Falling back to CSS positioning.");else{var e=this.dropup&&this.right||this.split?this.$el:this.$refs.toggle;e=e.$el||e,this.createPopper(e)}this.whileOpenListen(!0),this.$nextTick(function(){t.focusMenu(),t.$emit("shown")})}},hideMenu:function(){this.whileOpenListen(!1),this.$root.$emit("bv::dropdown::hidden",this),this.$emit("hidden"),this.removePopper()},createPopper:function(t){this.removePopper(),this._popper=new Co["a"](t,this.$refs.menu,this.getPopperConfig())},removePopper:function(){this._popper&&this._popper.destroy(),this._popper=null},getPopperConfig:function(){var t=Bo.BOTTOM;this.dropup?t=this.right?Bo.TOPEND:Bo.TOP:this.dropright?t=Bo.RIGHT:this.dropleft?t=Bo.LEFT:this.right&&(t=Bo.BOTTOMEND);var e={placement:t,modifiers:{offset:{offset:this.offset||0},flip:{enabled:!this.noFlip}}};return this.boundary&&(e.modifiers.preventOverflow={boundariesElement:this.boundary}),No({},e,{},this.popperOpts||{})},whileOpenListen:function(t){t?(this.$root.$on("bv::dropdown::shown",this.rootCloseListener),this.listenForClickOut=!0,this.listenForFocusIn=!0):(this.$root.$off("bv::dropdown::shown",this.rootCloseListener),this.listenForClickOut=!1,this.listenForFocusIn=!1)},rootCloseListener:function(t){t!==this&&(this.visible=!1)},show:function(){var t=this;this.disabled||Bt(function(){t.visible=!0})},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.disabled||(this.visible=!1,t&&this.$once("hidden",this.focusToggler))},toggle:function(t){t=t||{};var e=t.type,n=t.keyCode;"click"!==e&&("keydown"!==e||n!==nr.ENTER&&n!==nr.SPACE&&n!==nr.DOWN)||(this.disabled?this.visible=!1:(this.$emit("toggle",t),t.preventDefault(),t.stopPropagation(),this.visible?this.hide(!0):this.show()))},click:function(t){this.disabled?this.visible=!1:this.$emit("click",t)},onKeydown:function(t){var e=t.keyCode;e===nr.ESC?this.onEsc(t):e===nr.DOWN?this.focusNext(t,!1):e===nr.UP&&this.focusNext(t,!0)},onEsc:function(t){this.visible&&(this.visible=!1,t.preventDefault(),t.stopPropagation(),this.$once("hidden",this.focusToggler))},clickOutHandler:function(){this.visible&&(this.visible=!1)},focusInHandler:function(t){var e=t.target;!this.visible||Xt(this.$refs.menu,e)||Xt(this.toggler,e)||(this.visible=!1)},focusNext:function(t,e){var n=this;!this.visible||t&&Kt(Lo.FORM_CHILD,t.target)||(t.preventDefault(),t.stopPropagation(),this.$nextTick(function(){var r=n.getItems();if(!(r.length<1)){var i=r.indexOf(t.target);e&&i>0?i--:!e&&i<r.length-1&&i++,i<0&&(i=0),n.focusItem(i,r)}}))},focusItem:function(t,e){var n=e.find(function(e,n){return n===t});n&&n.focus&&n.focus()},getItems:function(){return Do(qt(Lo.ITEM_SELECTOR,this.$refs.menu))},focusMenu:function(){this.$refs.menu.focus&&this.$refs.menu.focus()},focusToggler:function(){var t=this;this.$nextTick(function(){var e=t.toggler;e&&e.focus&&e.focus()})}}},Fo="BDropdown",$o={toggleText:{type:String,default:function(){return Ot(Fo,"toggleText")}},size:{type:String,default:null},variant:{type:String,default:function(){return Ot(Fo,"variant")}},menuClass:{type:[String,Array],default:null},toggleTag:{type:String,default:"button"},toggleClass:{type:[String,Array],default:null},noCaret:{type:Boolean,default:!1},split:{type:Boolean,default:!1},splitHref:{type:String},splitTo:{type:[String,Object]},splitVariant:{type:String,default:function(){return Ot(Fo,"splitVariant")}},splitButtonType:{type:String,default:"button",validator:function(t){return f(["button","submit","reset"],t)}},role:{type:String,default:"menu"},boundary:{type:[String,xo],default:"scrollParent"}},Vo=i.extend({name:Fo,mixins:[Mi,Ro,Ce],props:$o,computed:{dropdownClasses:function(){return[this.directionClass,{show:this.visible,"position-static":"scrollParent"!==this.boundary||!this.boundary}]},menuClasses:function(){return[this.menuClass,{"dropdown-menu-right":this.right,show:this.visible}]},toggleClasses:function(){return[this.toggleClass,{"dropdown-toggle-split":this.split,"dropdown-toggle-no-caret":this.noCaret&&!this.split}]}},render:function(t){var e=t(),n=this.normalizeSlot("button-content")||this.normalizeSlot("text")||this.html||yn(this.text);if(this.split){var r={disabled:this.disabled,variant:this.splitVariant||this.variant,size:this.size};this.splitTo?r.to=this.splitTo:this.splitHref?r.href=this.splitHref:this.splitButtonType&&(r.type=this.splitButtonType),e=t(Kn,{ref:"button",props:r,attrs:{id:this.safeId("_BV_button_")},on:{click:this.click}},[n])}var i=t(Kn,{ref:"toggle",staticClass:"dropdown-toggle",class:this.toggleClasses,props:{variant:this.variant,size:this.size,disabled:this.disabled,tag:this.toggleTag},attrs:{id:this.safeId("_BV_toggle_"),"aria-haspopup":"true","aria-expanded":this.visible?"true":"false"},on:{click:this.toggle,keydown:this.toggle}},[this.split?t("span",{class:["sr-only"]},[this.toggleText]):n]),o=t("ul",{ref:"menu",staticClass:"dropdown-menu",class:this.menuClasses,attrs:{role:this.role,tabindex:"-1","aria-labelledby":this.safeId(this.split?"_BV_button_":"_BV_toggle_")},on:{keydown:this.onKeydown}},!this.lazy||this.visible?this.normalizeSlot("default",{hide:this.hide}):[t()]);return t("div",{staticClass:"dropdown btn-group b-dropdown",class:this.dropdownClasses,attrs:{id:this.safeId()}},[e,i,o])}});function zo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Ho(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zo(n,!0).forEach(function(e){Wo(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zo(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Wo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Uo=ln(),qo=i.extend({name:"BDropdownItem",mixins:[Ce],inheritAttrs:!1,inject:{bvDropdown:{default:null}},props:Ho({},Uo,{variant:{type:String,default:null}}),methods:{closeDropdown:function(){var t=this;Bt(function(){t.bvDropdown&&t.bvDropdown.hide(!0)})},onClick:function(t){this.$emit("click",t),this.closeDropdown()}},render:function(t){return t("li",[t(cn,{props:this.$props,staticClass:"dropdown-item",class:Wo({},"text-".concat(this.variant),this.variant&&!(this.active||this.disabled)),attrs:Ho({},this.$attrs,{role:"menuitem"}),on:{click:this.onClick},ref:"item"},this.normalizeSlot("default"))])}});function Go(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Yo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Go(n,!0).forEach(function(e){Ko(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Go(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Ko(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xo={active:{type:Boolean,default:!1},activeClass:{type:String,default:"active"},disabled:{type:Boolean,default:!1},variant:{type:String,default:null}},Jo=i.extend({name:"BDropdownItemButton",mixins:[Ce],inheritAttrs:!1,inject:{bvDropdown:{default:null}},props:Xo,methods:{closeDropdown:function(){this.bvDropdown&&this.bvDropdown.hide(!0)},onClick:function(t){this.$emit("click",t),this.closeDropdown()}},render:function(t){var e;return t("li",[t("button",{staticClass:"dropdown-item",class:(e={},Ko(e,this.activeClass,this.active),Ko(e,"text-".concat(this.variant),this.variant&&!(this.active||this.disabled)),e),attrs:Yo({},this.$attrs,{role:"menuitem",type:"button",disabled:this.disabled}),on:{click:this.onClick},ref:"button"},this.normalizeSlot("default"))])}});function Qo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zo={id:{type:String,default:null},tag:{type:String,default:"header"},variant:{type:String,default:null}},ts=i.extend({name:"BDropdownHeader",functional:!0,inheritAttrs:!1,props:Zo,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t("li",[t(n.tag,pe(r,{staticClass:"dropdown-header",class:Qo({},"text-".concat(n.variant),n.variant),attrs:{id:n.id||null,role:"heading"},ref:"header"}),i)])}}),es={tag:{type:String,default:"hr"}},ns=i.extend({name:"BDropdownDivider",functional:!0,inheritAttrs:!1,props:es,render:function(t,e){var n=e.props,r=e.data;return t("li",[t(n.tag,pe(r,{staticClass:"dropdown-divider",attrs:{role:"separator","aria-orientation":"horizontal"},ref:"divider"}))])}}),rs={id:{type:String,default:null},inline:{type:Boolean,default:!1},novalidate:{type:Boolean,default:!1},validated:{type:Boolean,default:!1}},is=i.extend({name:"BForm",functional:!0,props:rs,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t("form",pe(r,{class:{"form-inline":n.inline,"was-validated":n.validated},attrs:{id:n.id,novalidate:n.novalidate}}),i)}});function os(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ss(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?os(n,!0).forEach(function(e){as(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):os(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function as(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ls=i.extend({name:"BDropdownForm",functional:!0,inheritAttrs:!1,props:ss({},rs,{disabled:{type:Boolean,default:!1}}),render:function(t,e){var n=e.props,r=e.data,i=e.children;return t("li",[t(is,pe(r,{ref:"form",staticClass:"b-dropdown-form",class:{disabled:n.disabled},props:n,attrs:{disabled:n.disabled,tabindex:n.disabled?null:"-1"}}),i)])}});function cs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var us=i.extend({name:"BDropdownText",functional:!0,inheritAttrs:!1,props:{tag:{type:String,default:"p"},variant:{type:String,default:null}},render:function(t,e){var n=e.props,r=e.data,i=e.children;return t("li",[t(n.tag,pe(r,{staticClass:"b-dropdown-text",class:cs({},"text-".concat(n.variant),n.variant),props:n,ref:"text"}),i)])}});function ds(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hs={id:{type:String,default:null},header:{type:String,default:null},headerTag:{type:String,default:"header"},headerVariant:{type:String,default:null},headerClasses:{type:[String,Array,Object],default:null},ariaDescribedby:{type:String,default:null}},fs=i.extend({name:"BDropdownGroup",functional:!0,inheritAttrs:!1,props:hs,render:function(t,e){var n,r=e.props,i=e.data,o=e.slots,s=e.scopedSlots,a=o(),l=s||{},c=null;(_e("header",l,a)||r.header)&&(c=r.id?"_bv_".concat(r.id,"_group_dd_header"):null,n=t(r.headerTag,{staticClass:"dropdown-header",class:[r.headerClasses,ds({},"text-".concat(r.variant),r.variant)],attrs:{id:c,role:"heading"}},xe("header",{},l,a)||r.header));var u=[c,r.ariaDescribedBy].filter(Boolean).join(" ").trim();return t("li",[n||t(),t("ul",pe(i,{staticClass:"list-unstyled",attrs:{id:r.id||null,"aria-describedby":u||null}}),xe("default",{},l,a))])}}),ps=mt({components:{BDropdown:Vo,BDd:Vo,BDropdownItem:qo,BDdItem:qo,BDropdownItemButton:Jo,BDropdownItemBtn:Jo,BDdItemButton:Jo,BDdItemBtn:Jo,BDropdownHeader:ts,BDdHeader:ts,BDropdownDivider:ns,BDdDivider:ns,BDropdownForm:ls,BDdForm:ls,BDropdownText:us,BDdText:us,BDropdownGroup:fs,BDdGroup:fs}});function gs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ms={type:{type:String,default:"iframe",validator:function(t){return f(["iframe","embed","video","object","img","b-img","b-img-lazy"],t)}},tag:{type:String,default:"div"},aspect:{type:String,default:"16by9"}},vs=i.extend({name:"BEmbed",functional:!0,props:ms,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,{ref:r.ref,staticClass:"embed-responsive",class:gs({},"embed-responsive-".concat(n.aspect),Boolean(n.aspect))},[t(n.type,pe(r,{ref:"",staticClass:"embed-responsive-item"}),i)])}}),bs=mt({components:{BEmbed:vs}}),ys={props:{options:{type:[Array,Object],default:function(){return[]}},valueField:{type:String,default:"value"},textField:{type:String,default:"text"},htmlField:{type:String,default:"html"},disabledField:{type:String,default:"disabled"}},computed:{formOptions:function(){var t=this.options,e=this.valueField,n=this.textField,r=this.htmlField,i=this.disabledField;return h(t)?t.map(function(t){if(A(t)){var o=t[e],s=String(t[n]);return{value:G(o)?s:o,text:yn(s),html:t[r],disabled:Boolean(t[i])}}return{value:t,text:yn(String(t)),disabled:!1}}):k(t).map(function(o){var s=t[o]||{};if(A(s)){var a=s[e],l=s[n];return{value:G(a)?o:a,text:G(l)?yn(String(o)):yn(String(l)),html:s[r],disabled:Boolean(s[i])}}return{value:o,text:yn(String(s)),disabled:!1}})}}};function ws(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ks(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ws(n,!0).forEach(function(e){_s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ws(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xs=i.extend({name:"BFormDatalist",mixins:[ys,Ce],props:{id:{type:String,default:null,required:!0}},render:function(t){var e=this.formOptions.map(function(e,n){return t("option",{key:"option_".concat(n,"_opt"),attrs:{disabled:e.disabled},domProps:ks({},wn(e.html,e.text),{value:e.value})})});return t("datalist",{attrs:{id:this.id}},[e,this.normalizeSlot("default")])}});function Cs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ss="BFormText",Ts={id:{type:String,default:null},tag:{type:String,default:"small"},textVariant:{type:String,default:function(){return Ot(Ss,"textVariant")}},inline:{type:Boolean,default:!1}},Os=i.extend({name:Ss,functional:!0,props:Ts,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,pe(r,{class:Cs({"form-text":!n.inline},"text-".concat(n.textVariant),Boolean(n.textVariant)),attrs:{id:n.id}}),i)}}),Ps={id:{type:String,default:null},tag:{type:String,default:"div"},tooltip:{type:Boolean,default:!1},forceShow:{type:Boolean,default:!1},state:{type:[Boolean,String],default:null},ariaLive:{type:String,default:null},role:{type:String,default:null}},As=i.extend({name:"BFormInvalidFeedback",functional:!0,props:Ps,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=!0===n.forceShow||!1===n.state||"invalid"===n.state;return t(n.tag,pe(r,{class:{"invalid-feedback":!n.tooltip,"invalid-tooltip":n.tooltip,"d-block":o},attrs:{id:n.id,role:n.role,"aria-live":n.ariaLive,"aria-atomic":n.ariaLive?"true":null}}),i)}}),Es={id:{type:String,default:null},tag:{type:String,default:"div"},tooltip:{type:Boolean,default:!1},forceShow:{type:Boolean,default:!1},state:{type:[Boolean,String],default:null},ariaLive:{type:String,default:null},role:{type:String,default:null}},Ms=i.extend({name:"BFormValidFeedback",functional:!0,props:Es,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=!0===n.forceShow||!0===n.state||"valid"===n.state;return t(n.tag,pe(r,{class:{"valid-feedback":!n.tooltip,"valid-tooltip":n.tooltip,"d-block":o},attrs:{id:n.id,role:n.role,"aria-live":n.ariaLive,"aria-atomic":n.ariaLive?"true":null}}),i)}}),Is={tag:{type:String,default:"div"}},Ns=i.extend({name:"BFormRow",functional:!0,props:Is,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,pe(r,{staticClass:"form-row"}),i)}}),js=mt({components:{BForm:is,BFormDatalist:xs,BDatalist:xs,BFormText:Os,BFormInvalidFeedback:As,BFormFeedback:As,BFormValidFeedback:Ms,BFormRow:Ns}}),Ds={props:{state:{type:[String,Boolean],default:null}},computed:{computedState:function(){var t=this.state;return""===t?null:!0===t||"valid"===t||!1!==t&&"invalid"!==t&&null},stateClass:function(){var t=this.computedState;return!0===t?"is-valid":!1===t?"is-invalid":null}}},Ls=function(t,e){return e+(t?ar(t):"")},Bs=Ls;function Rs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Fs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rs(n,!0).forEach(function(e){$s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rs(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function $s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vs=function(){return{type:[Boolean,String,Number],default:!1}},zs=function(){return{type:[String,Number],default:null}},Hs=function(t,e,n){var r=t;if(!G(n)&&!Y(n)&&!1!==n)return e&&(r+="-".concat(e)),"col"!==t||""!==n&&!0!==n?(r+="-".concat(n),r.toLowerCase()):r.toLowerCase()},Ws=xt(Hs),Us=S(null),qs=function(){var t=Mt().filter(Boolean),e=t.reduce(function(t,e){return e&&(t[e]=Vs()),t},S(null)),n=t.reduce(function(t,e){return t[Bs(e,"offset")]=zs(),t},S(null)),r=t.reduce(function(t,e){return t[Bs(e,"order")]=zs(),t},S(null));return Us=y(S(null),{col:k(e),offset:k(n),order:k(r)}),Fs({col:{type:Boolean,default:!1},cols:zs()},e,{offset:zs()},n,{order:zs()},r,{alignSelf:{type:String,default:null,validator:function(t){return f(["auto","start","end","center","baseline","stretch"],t)}},tag:{type:String,default:"div"}})},Gs={name:"BCol",functional:!0,get props(){return delete this.props,this.props=qs()},render:function(t,e){var n,r=e.props,i=e.data,o=e.children,s=[];for(var a in Us)for(var l=Us[a],c=0;c<l.length;c++){var u=Ws(a,l[c].replace(a,""),r[l[c]]);u&&s.push(u)}var d=s.some(function(t){return/^col-/.test(t)});return s.push((n={col:r.col||!d&&!r.cols},$s(n,"col-".concat(r.cols),r.cols),$s(n,"offset-".concat(r.offset),r.offset),$s(n,"order-".concat(r.order),r.order),$s(n,"align-self-".concat(r.alignSelf),r.alignSelf),n)),t(r.tag,pe(i,{class:s}),o)}};function Ys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Ks(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ys(n,!0).forEach(function(e){Xs(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ys(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Xs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Js="BFormGroup",Qs="input:not([disabled]),textarea:not([disabled]),select:not([disabled])",Zs='Props "horizontal" and "breakpoint" are deprecated. Use "label-cols(-{breakpoint})" props instead.',ta=function(t,e){var n=e.normalizeSlot("invalid-feedback")||e.invalidFeedback,r=t();return n&&(r=t(As,{props:{id:e.invalidFeedbackId,state:e.computedState,tooltip:e.tooltip,ariaLive:e.feedbackAriaLive,role:e.feedbackAriaLive?"alert":null},attrs:{tabindex:n?"-1":null}},[n])),r},ea=function(t,e){var n=e.normalizeSlot("valid-feedback")||e.validFeedback,r=t();return n&&(r=t(Ms,{props:{id:e.validFeedbackId,state:e.computedState,tooltip:e.tooltip,ariaLive:e.feedbackAriaLive,role:e.feedbackAriaLive?"alert":null},attrs:{tabindex:n?"-1":null}},[n])),r},na=function(t,e){var n=e.normalizeSlot("description")||e.description,r=t();return n&&(r=t(Os,{attrs:{id:e.descriptionId,tabindex:n?"-1":null}},[n])),r},ra=function(t,e){var n=e.normalizeSlot("label")||e.label,r=e.labelFor,i=!r,o=e.isHorizontal,s=i?"legend":"label";if(n||o){if(e.labelSrOnly){var a=t();return n&&(a=t(s,{class:"sr-only",attrs:{id:e.labelId,for:r||null}},[n])),t(o?Gs:"div",{props:o?e.labelColProps:{}},[a])}return t(o?Gs:s,{on:i?{click:e.legendClick}:{},props:o?Ks({tag:s},e.labelColProps):{},attrs:{id:e.labelId,for:r||null,tabindex:i?"-1":null},class:[o||i?"col-form-label":"",!o&&i?"pt-0":"",o||i?"":"d-block",e.labelSize?"col-form-label-".concat(e.labelSize):"",e.labelAlignClasses,e.labelClass]},[n])}return t()},ia=xt(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return"".concat(e).concat(ar(t))}),oa=function(){var t=Mt(),e=t.reduce(function(t,e){return t[ia(e,"labelCols")]={type:[Number,String,Boolean],default:!e&&null},t},S(null)),n=t.reduce(function(t,e){return t[ia(e,"labelAlign")]={type:String,default:null},t},S(null));return Ks({label:{type:String,default:null},labelFor:{type:String,default:null},labelSize:{type:String,default:null},labelSrOnly:{type:Boolean,default:!1}},e,{},n,{labelClass:{type:[String,Array,Object],default:null},description:{type:String,default:null},invalidFeedback:{type:String,default:null},validFeedback:{type:String,default:null},tooltip:{type:Boolean,default:!1},feedbackAriaLive:{type:String,default:"assertive"},validated:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1,deprecated:Zs},breakpoint:{type:String,default:null,deprecated:Zs}})},sa={name:Js,mixins:[Mi,Ds,Ce],get props(){return delete this.props,this.props=oa()},computed:{labelColProps:function(){var t=this,e={};if(this.horizontal){u("b-form-group: ".concat(Zs));var n=this.breakpoint||Mt()[1],r=parseInt(this.labelCols,10)||3;return e[n]=r>0?r:3,e}return Mt().forEach(function(n){var r=t[ia(n,"labelCols")];if(r=""===r||(r||!1),J(r)||(r=parseInt(r,10)||0,r=r>0&&r),r){var i=n||(J(r)?"col":"cols");e[i]=r}}),e},labelAlignClasses:function(){var t=this,e=[];return Mt().forEach(function(n){var r=t[ia(n,"labelAlign")]||null;if(r){var i=n?"text-".concat(n,"-").concat(r):"text-".concat(r);e.push(i)}}),e},isHorizontal:function(){return k(this.labelColProps).length>0},labelId:function(){return this.$slots["label"]||this.label?this.safeId("_BV_label_"):null},descriptionId:function(){return this.$slots["description"]||this.description?this.safeId("_BV_description_"):null},hasInvalidFeedback:function(){var t=this.$slots;return!1===this.computedState&&(t["invalid-feedback"]||this.invalidFeedback)},invalidFeedbackId:function(){return this.hasInvalidFeedback?this.safeId("_BV_feedback_invalid_"):null},hasValidFeedback:function(){return!0===this.computedState&&(this.$slots["valid-feedback"]||this.validFeedback)},validFeedbackId:function(){return this.hasValidFeedback?this.safeId("_BV_feedback_valid_"):null},describedByIds:function(){return[this.descriptionId,this.invalidFeedbackId,this.validFeedbackId].filter(Boolean).join(" ")||null}},watch:{describedByIds:function(t,e){t!==e&&this.setInputDescribedBy(t,e)}},mounted:function(){var t=this;this.$nextTick(function(){t.setInputDescribedBy(t.describedByIds)})},methods:{legendClick:function(t){if(!this.labelFor){var e=t.target?t.target.tagName:"";if(!/^(input|select|textarea|label|button|a)$/i.test(e)){var n=qt(Qs,this.$refs.content).filter(Ht);n&&1===n.length&&n[0].focus&&n[0].focus()}}},setInputDescribedBy:function(t,e){if(this.labelFor&&o["j"]){var n=Gt("#".concat(this.labelFor),this.$refs.content);if(n){var r="aria-describedby",i=(re(n,r)||"").split(/\s+/);t=(t||"").split(/\s+/),e=(e||"").split(/\s+/),i=i.filter(function(t){return!f(e,t)}).concat(t).filter(Boolean),i=k(i.reduce(function(t,e){return Ks({},t,Xs({},e,!0))},{})).join(" ").trim(),i?ee(n,r,i):ne(n,r)}}}},render:function(t){var e=!this.labelFor,n=this.isHorizontal,r=ra(t,this),i=t(n?Gs:"div",{ref:"content",attrs:{tabindex:e?"-1":null,role:e?"group":null}},[this.normalizeSlot("default")||t(),ta(t,this),ea(t,this),na(t,this)]),o={staticClass:"form-group",class:[this.validated?"was-validated":null,this.stateClass],attrs:{id:this.safeId(),disabled:e?this.disabled:null,role:e?null:"group","aria-invalid":!1===this.computedState?"true":null,"aria-labelledby":e&&n?this.labelId:null,"aria-describedby":e?this.describedByIds:null}};return t(e?"fieldset":n?Ns:"div",o,n&&e?[t(Ns,{},[r,i])]:[r,i])}},aa=mt({components:{BFormGroup:sa,BFormFieldset:sa}}),la=function(t,e){for(var n=0;n<t.length;n++)if(eo(t[n],e))return n;return-1},ca=la,ua="input, textarea, select",da={props:{name:{type:String},id:{type:String},disabled:{type:Boolean},required:{type:Boolean,default:!1},form:{type:String,default:null},autofocus:{type:Boolean,default:!1}},mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{handleAutofocus:function(){var t=this;this.$nextTick(function(){Bt(function(){var e=t.$el;t.autofocus&&Ht(e)&&(Yt(e,ua)||(e=Gt(ua,e)),e&&e.focus&&e.focus())})})}}};function ha(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fa={mixins:[Ce],model:{prop:"checked",event:"input"},props:{value:{},checked:{},inline:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},button:{type:Boolean,default:!1},buttonVariant:{type:String,default:null},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},data:function(){return{localChecked:this.isGroup?this.bvGroup.checked:this.checked,hasFocus:!1}},computed:{computedLocalChecked:{get:function(){return this.isGroup?this.bvGroup.localChecked:this.localChecked},set:function(t){this.isGroup?this.bvGroup.localChecked=t:this.localChecked=t}},isGroup:function(){return Boolean(this.bvGroup)},isBtnMode:function(){return this.isGroup?this.bvGroup.buttons:this.button},isPlain:function(){return!this.isBtnMode&&(this.isGroup?this.bvGroup.plain:this.plain)},isCustom:function(){return!this.isBtnMode&&!this.isPlain},isSwitch:function(){return!(this.isBtnMode||this.isRadio||this.isPlain)&&(this.isGroup?this.bvGroup.switches:this.switch)},isInline:function(){return this.isGroup?this.bvGroup.inline:this.inline},isDisabled:function(){return this.isGroup&&this.bvGroup.disabled||this.disabled},isRequired:function(){return Boolean(this.getName&&(this.isGroup?this.bvGroup.required:this.required))},getName:function(){return(this.isGroup?this.bvGroup.groupName:this.name)||null},getForm:function(){return(this.isGroup?this.bvGroup.form:this.form)||null},getSize:function(){return(this.isGroup?this.bvGroup.size:this.size)||""},getState:function(){return this.isGroup?this.bvGroup.computedState:this.computedState},getButtonVariant:function(){return this.buttonVariant?this.buttonVariant:this.isGroup&&this.bvGroup.buttonVariant?this.bvGroup.buttonVariant:"secondary"},buttonClasses:function(){return["btn","btn-".concat(this.getButtonVariant),this.getSize?"btn-".concat(this.getSize):"",this.isDisabled?"disabled":"",this.isChecked?"active":"",this.hasFocus?"focus":""]}},watch:{checked:function(t,e){this.computedLocalChecked=t}},methods:{handleFocus:function(t){t.target&&("focus"===t.type?this.hasFocus=!0:"blur"===t.type&&(this.hasFocus=!1))},focus:function(){!this.isDisabled&&this.$refs.input&&this.$refs.input.focus&&this.$refs.input.focus()},blur:function(){!this.isDisabled&&this.$refs.input&&this.$refs.input.blur&&this.$refs.input.blur()}},render:function(t){var e=this.normalizeSlot("default"),n={change:this.handleChange};this.isBtnMode&&(n.focus=n.blur=this.handleFocus);var r=t("input",{ref:"input",key:"input",on:n,class:{"form-check-input":this.isPlain,"custom-control-input":this.isCustom,"is-valid":!0===this.getState&&!this.isBtnMode,"is-invalid":!1===this.getState&&!this.isBtnMode,"position-static":this.isPlain&&!e},directives:[{name:"model",rawName:"v-model",value:this.computedLocalChecked,expression:"computedLocalChecked"}],attrs:{id:this.safeId(),type:this.isRadio?"radio":"checkbox",name:this.getName,form:this.getForm,disabled:this.isDisabled,required:this.isRequired,autocomplete:"off","aria-required":this.isRequired||null,"aria-label":this.ariaLabel||null,"aria-labelledby":this.ariaLabelledby||null},domProps:{value:this.value,checked:this.isChecked}});if(this.isBtnMode){var i=t("label",{class:this.buttonClasses},[r,e]);return this.isGroup||(i=t("div",{class:["btn-group-toggle","d-inline-block"]},[i])),i}var o=t();return this.isPlain&&!e||(o=t("label",{class:{"form-check-label":this.isPlain,"custom-control-label":this.isCustom},attrs:{for:this.safeId()}},e)),t("div",{class:ha({"form-check":this.isPlain,"form-check-inline":this.isPlain&&this.isInline,"custom-control":this.isCustom,"custom-control-inline":this.isCustom&&this.isInline,"custom-checkbox":this.isCustom&&this.isCheck&&!this.isSwitch,"custom-switch":this.isSwitch,"custom-radio":this.isCustom&&this.isRadio},"form-control-".concat(this.getSize),Boolean(this.getSize&&!this.isBtnMode))},[r,o])}},pa={props:{size:{type:String,default:null}},computed:{sizeFormClass:function(){return[this.size?"form-control-".concat(this.size):null]},sizeBtnClass:function(){return[this.size?"btn-".concat(this.size):null]}}},ga=i.extend({name:"BFormCheckbox",mixins:[fa,Mi,da,pa,Ds],inject:{bvGroup:{from:"bvCheckGroup",default:!1}},props:{value:{default:!0},uncheckedValue:{default:!1},indeterminate:{type:Boolean,default:!1},switch:{type:Boolean,default:!1},checked:{type:[String,Number,Object,Array,Boolean],default:null}},computed:{isChecked:function(){var t=this.computedLocalChecked,e=this.value;return h(t)?ca(t,e)>-1:eo(t,e)},isRadio:function(){return!1},isCheck:function(){return!0}},watch:{computedLocalChecked:function(t,e){this.$emit("input",t),this.$refs&&this.$refs.input&&this.$emit("update:indeterminate",this.$refs.input.indeterminate)},indeterminate:function(t,e){this.setIndeterminate(t)}},mounted:function(){this.setIndeterminate(this.indeterminate)},methods:{handleChange:function(t){var e=t.target,n=e.checked,r=e.indeterminate,i=this.computedLocalChecked,o=this.value,s=h(i),a=s?null:this.uncheckedValue;if(s){var l=ca(i,o);n&&l<0?i=i.concat(o):!n&&l>-1&&(i=i.slice(0,l).concat(i.slice(l+1)))}else i=n?o:a;this.computedLocalChecked=i,this.$emit("change",n?o:a),this.isGroup&&this.bvGroup.$emit("change",i),this.$emit("update:indeterminate",r)},setIndeterminate:function(t){h(this.computedLocalChecked)&&(t=!1),this.$refs&&this.$refs.input&&(this.$refs.input.indeterminate=t,this.$emit("update:indeterminate",t))}}}),ma=i.extend({name:"BFormRadio",mixins:[Mi,fa,da,pa,Ds],inject:{bvGroup:{from:"bvRadioGroup",default:!1}},props:{checked:{type:[String,Object,Number,Boolean],default:null}},computed:{isChecked:function(){return eo(this.value,this.computedLocalChecked)},isRadio:function(){return!0},isCheck:function(){return!1}},watch:{computedLocalChecked:function(t,e){this.$emit("input",this.computedLocalChecked)}},methods:{handleChange:function(t){var e=t.target.checked,n=this.value;this.computedLocalChecked=n,this.$emit("change",e?n:null),this.isGroup&&this.bvGroup.$emit("change",e?n:null)}}}),va={mixins:[Ce],model:{prop:"checked",event:"input"},props:{validated:{type:Boolean,default:!1},ariaInvalid:{type:[Boolean,String],default:!1},stacked:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},buttons:{type:Boolean,default:!1},buttonVariant:{type:String,default:"secondary"}},computed:{inline:function(){return!this.stacked},groupName:function(){return this.name||this.safeId()},groupClasses:function(){return this.buttons?["btn-group-toggle",this.inline?"btn-group":"btn-group-vertical",this.size?"btn-group-".concat(this.size):"",this.validated?"was-validated":""]:[this.validated?"was-validated":""]},computedAriaInvalid:function(){var t=this.ariaInvalid;return!0===t||"true"===t||""===t?"true":!1===this.computedState?"true":null}},watch:{checked:function(t,e){this.localChecked=t},localChecked:function(t,e){this.$emit("input",t)}},render:function(t){var e=this,n=this.formOptions.map(function(n,r){var i="_BV_option_".concat(r,"_");return t(e.isRadioGroup?ma:ga,{key:i,props:{id:e.safeId(i),value:n.value,disabled:n.disabled||!1}},[t("span",{domProps:wn(n.html,n.text)})])});return t("div",{class:this.groupClasses,attrs:{id:this.safeId(),role:this.isRadioGroup?"radiogroup":"group",tabindex:"-1","aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid}},[this.normalizeSlot("first"),n,this.normalizeSlot("default")])}},ba={switches:{type:Boolean,default:!1},checked:{type:[String,Number,Object,Array,Boolean],default:null}},ya=i.extend({name:"BFormCheckboxGroup",mixins:[Mi,da,va,ys,pa,Ds],provide:function(){return{bvCheckGroup:this}},props:ba,data:function(){return{localChecked:this.checked||[]}},computed:{isRadioGroup:function(){return!1}}}),wa=mt({components:{BFormCheckbox:ga,BCheckbox:ga,BCheck:ga,BFormCheckboxGroup:ya,BCheckboxGroup:ya,BCheckGroup:ya}}),ka={checked:{type:[String,Object,Number,Boolean],default:null}},_a=i.extend({name:"BFormRadioGroup",mixins:[Mi,da,va,ys,pa,Ds],provide:function(){return{bvRadioGroup:this}},props:ka,data:function(){return{localChecked:this.checked}},computed:{isRadioGroup:function(){return!0}}}),xa=mt({components:{BFormRadio:ma,BRadio:ma,BFormRadioGroup:_a,BRadioGroup:_a}}),Ca={model:{prop:"value",event:"update"},props:{value:{type:[String,Number],default:""},ariaInvalid:{type:[Boolean,String],default:!1},readonly:{type:Boolean,default:!1},plaintext:{type:Boolean,default:!1},autocomplete:{type:String,default:null},placeholder:{type:String,default:null},formatter:{type:Function,default:null},trim:{type:Boolean,default:!1},number:{type:Boolean,default:!1},lazyFormatter:{type:Boolean,value:!1}},data:function(){return{localValue:this.stringifyValue(this.value)}},computed:{computedClass:function(){return[{"custom-range":"range"===this.type,"form-control-plaintext":this.plaintext&&"range"!==this.type&&"color"!==this.type,"form-control":!this.plaintext&&"range"!==this.type||"color"===this.type},this.sizeFormClass,this.stateClass]},computedAriaInvalid:function(){return this.ariaInvalid&&"false"!==this.ariaInvalid?!0===this.ariaInvalid?"true":this.ariaInvalid:!1===this.computedState?"true":null}},watch:{value:function(t){t!==this.localValue&&(this.localValue=this.stringifyValue(t))}},mounted:function(){var t=this.stringifyValue(this.value);t!==this.localValue&&(this.localValue=t)},methods:{stringifyValue:function(t){return G(t)||Y(t)?"":String(t)},getFormatted:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t=this.stringifyValue(t),this.lazyFormatter&&!n||!X(this.formatter)||(t=this.formatter(t,e)),t},updateValue:function(t){if(t=this.stringifyValue(t),t!==this.localValue){if(this.localValue=t,this.number){var e=parseFloat(t);t=isNaN(e)?t:e}else this.trim&&(t=t.trim());this.$emit("update",t)}else this.$refs.input&&t!==this.$refs.input.value&&(this.$refs.input.value=t)},onInput:function(t){if(!t.target.composing){var e=this.getFormatted(t.target.value,t);!1===e||t.defaultPrevented?t.preventDefault():(this.updateValue(e),this.$emit("input",e))}},onChange:function(t){if(!t.target.composing){var e=this.getFormatted(t.target.value,t);!1===e||t.defaultPrevented?t.preventDefault():(this.updateValue(e),this.$emit("change",e))}},onBlur:function(t){if(this.lazyFormatter){var e=this.getFormatted(t.target.value,t,!0);if(!1===e)return;this.updateValue(e)}this.$emit("blur",t)},focus:function(){this.disabled||this.$el.focus()},blur:function(){this.disabled||this.$el.blur()}}},Sa={computed:{selectionStart:{cache:!1,get:function(){return this.$refs.input.selectionStart},set:function(t){this.$refs.input.selectionStart=t}},selectionEnd:{cache:!1,get:function(){return this.$refs.input.selectionEnd},set:function(t){this.$refs.input.selectionEnd=t}},selectionDirection:{cache:!1,get:function(){return this.$refs.input.selectionDirection},set:function(t){this.$refs.input.selectionDirection=t}}},methods:{select:function(){var t;(t=this.$refs.input).select.apply(t,arguments)},setSelectionRange:function(){var t;(t=this.$refs.input).setSelectionRange.apply(t,arguments)},setRangeText:function(){var t;(t=this.$refs.input).setRangeText.apply(t,arguments)}}},Ta={computed:{validity:{cache:!1,get:function(){return this.$refs.input.validity}},validationMessage:{cache:!1,get:function(){return this.$refs.input.validationMessage}},willValidate:{cache:!1,get:function(){return this.$refs.input.willValidate}}},methods:{setCustomValidity:function(){var t;return(t=this.$refs.input).setCustomValidity.apply(t,arguments)},checkValidity:function(){var t;return(t=this.$refs.input).checkValidity.apply(t,arguments)},reportValidity:function(){var t;return(t=this.$refs.input).reportValidity.apply(t,arguments)}}};function Oa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Pa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oa(n,!0).forEach(function(e){Aa(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oa(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Aa(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ea=["text","password","email","number","url","tel","search","range","color","date","time","datetime","datetime-local","month","week"],Ma=i.extend({name:"BFormInput",mixins:[Mi,da,pa,Ds,Ca,Sa,Ta],props:{type:{type:String,default:"text",validator:function(t){return f(Ea,t)}},noWheel:{type:Boolean,default:!1},min:{type:[String,Number],default:null},max:{type:[String,Number],default:null},step:{type:[String,Number],default:null},list:{type:String,default:null}},computed:{localType:function(){return f(Ea,this.type)?this.type:"text"}},watch:{noWheel:function(t){this.setWheelStopper(t)}},mounted:function(){this.setWheelStopper(this.noWheel)},deactivated:function(){this.setWheelStopper(!1)},activated:function(){this.setWheelStopper(this.noWheel)},beforeDestroy:function(){this.setWheelStopper(!1)},methods:{setWheelStopper:function(t){var e=this.$el;t?($t(e,"focus",this.onWheelFocus),$t(e,"blur",this.onWheelBlur)):(Vt(e,"focus",this.onWheelFocus),Vt(e,"blur",this.onWheelBlur),Vt(document,"wheel",this.stopWheel))},onWheelFocus:function(t){$t(document,"wheel",this.stopWheel)},onWheelBlur:function(t){Vt(document,"wheel",this.stopWheel)},stopWheel:function(t){t.preventDefault(),this.$el.blur()}},render:function(t){var e=this;return t("input",{ref:"input",class:e.computedClass,directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"}],attrs:{id:e.safeId(),name:e.name,form:e.form||null,type:e.localType,disabled:e.disabled,placeholder:e.placeholder,required:e.required,autocomplete:e.autocomplete||null,readonly:e.readonly||e.plaintext,min:e.min,max:e.max,step:e.step,list:"password"!==e.localType?e.list:null,"aria-required":e.required?"true":null,"aria-invalid":e.computedAriaInvalid},domProps:{value:e.localValue},on:Pa({},e.$listeners,{input:e.onInput,change:e.onChange,blur:e.onBlur})})}}),Ia=mt({components:{BFormInput:Ma,BInput:Ma}});function Na(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ja(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Na(n,!0).forEach(function(e){Da(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Na(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Da(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var La=i.extend({name:"BFormTextarea",mixins:[Mi,da,pa,Ds,Ca,Sa,Ta],props:{rows:{type:[Number,String],default:2},maxRows:{type:[Number,String],default:null},wrap:{type:String,default:"soft"},noResize:{type:Boolean,default:!1},noAutoShrink:{type:Boolean,default:!1}},data:function(){return{dontResize:!0,heightInPx:null}},computed:{computedStyle:function(){var t={resize:!this.computedRows||this.noResize?"none":null};return this.computedRows||(t.height=this.heightInPx,t.overflowY="scroll"),t},computedMinRows:function(){return Math.max(parseInt(this.rows,10)||2,2)},computedMaxRows:function(){return Math.max(this.computedMinRows,parseInt(this.maxRows,10)||0)},computedRows:function(){return this.computedMinRows===this.computedMaxRows?this.computedMinRows:null}},watch:{dontResize:function(t,e){t||this.setHeight()},localValue:function(t,e){this.setHeight()}},mounted:function(){var t=this;this.$nextTick(function(){t.dontResize=!1})},activated:function(){var t=this;this.$nextTick(function(){t.dontResize=!1})},deactivated:function(){this.dontResize=!0},beforeDestroy:function(){this.dontResize=!0},methods:{setHeight:function(){var t=this;this.$nextTick(function(){t.heightInPx=t.computeHeight()})},computeHeight:function(){if(this.$isServer||!Y(this.computedRows))return null;var t=this.$el;if(!Ht(t))return null;var e=se(t),n=parseFloat(e.lineHeight),r=(parseFloat(e.borderTopWidth)||0)+(parseFloat(e.borderBottomWidth)||0),i=(parseFloat(e.paddingTop)||0)+(parseFloat(e.paddingBottom)||0),o=r+i,s=n*this.computedMinRows+o,a=t.style.height||e.height;t.style.height="auto";var l=t.scrollHeight;t.style.height=a;var c=Math.max((l-i)/n,2),u=Math.min(Math.max(c,this.computedMinRows),this.computedMaxRows),d=Math.max(Math.ceil(u*n+o),s);return this.noAutoShrink&&(parseFloat(a)||0)>d?a:"".concat(d,"px")}},render:function(t){var e=this;return t("textarea",{ref:"input",class:e.computedClass,style:e.computedStyle,directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"}],attrs:{id:e.safeId(),name:e.name,form:e.form||null,disabled:e.disabled,placeholder:e.placeholder,required:e.required,autocomplete:e.autocomplete||null,readonly:e.readonly||e.plaintext,rows:e.computedRows,wrap:e.wrap||null,"aria-required":e.required?"true":null,"aria-invalid":e.computedAriaInvalid},domProps:{value:e.localValue},on:ja({},e.$listeners,{input:e.onInput,change:e.onChange,blur:e.onBlur})})}}),Ba=mt({components:{BFormTextarea:La,BTextarea:La}}),Ra={props:{plain:{type:Boolean,default:!1}},computed:{custom:function(){return!this.plain}}},Fa="BFormFile",$a=i.extend({name:Fa,mixins:[Mi,da,Ds,Ra,Ce],model:{prop:"value",event:"input"},props:{value:{default:null},accept:{type:String,default:""},capture:{type:Boolean,default:!1},placeholder:{type:String,default:function(){return Ot(Fa,"placeholder")}},browseText:{type:String,default:function(){return Ot(Fa,"browseText")}},dropPlaceholder:{type:String,default:function(){return Ot(Fa,"dropPlaceholder")}},multiple:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},noTraverse:{type:Boolean,default:!1},noDrop:{type:Boolean,default:!1},fileNameFormatter:{type:Function,default:null}},data:function(){return{selectedFile:null,dragging:!1,hasFocus:!1}},computed:{selectLabel:function(){if(this.dragging&&this.dropPlaceholder)return this.dropPlaceholder;if(!this.selectedFile||0===this.selectedFile.length)return this.placeholder;var t=p(this.selectedFile).filter(Boolean);return this.hasNormalizedSlot("file-name")?[this.normalizeSlot("file-name",{files:t,names:t.map(function(t){return t.name})})]:X(this.fileNameFormatter)?String(this.fileNameFormatter(t)):t.map(function(t){return t.name}).join(", ")}},watch:{selectedFile:function(t,e){t===e||h(t)&&h(e)&&t.length===e.length&&t.every(function(t,n){return t===e[n]})||(!t&&this.multiple?this.$emit("input",[]):this.$emit("input",t))},value:function(t){(!t||h(t)&&0===t.length)&&this.reset()}},methods:{focusHandler:function(t){this.plain||"focusout"===t.type?this.hasFocus=!1:this.hasFocus=!0},reset:function(){try{this.$refs.input.value=""}catch(t){}this.$refs.input.type="",this.$refs.input.type="file",this.selectedFile=this.multiple?[]:null},onFileChange:function(t){var e=this;this.$emit("change",t);var n=t.dataTransfer&&t.dataTransfer.items;if(!n||this.noTraverse)this.setFiles(t.target.files||t.dataTransfer.files);else{for(var r=[],i=0;i<n.length;i++){var o=n[i].webkitGetAsEntry();o&&r.push(this.traverseFileTree(o))}Promise.all(r).then(function(t){e.setFiles(d(t))})}},setFiles:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(t)if(this.multiple){for(var e=[],n=0;n<t.length;n++)e.push(t[n]);this.selectedFile=e}else this.selectedFile=t[0]||null;else this.selectedFile=null},onReset:function(){this.selectedFile=this.multiple?[]:null},onDragover:function(t){t.preventDefault(),t.stopPropagation(),!this.noDrop&&this.custom&&(this.dragging=!0,t.dataTransfer.dropEffect="copy")},onDragleave:function(t){t.preventDefault(),t.stopPropagation(),this.dragging=!1},onDrop:function(t){t.preventDefault(),t.stopPropagation(),this.noDrop||(this.dragging=!1,t.dataTransfer.files&&t.dataTransfer.files.length>0&&this.onFileChange(t))},traverseFileTree:function(t,e){var n=this;return new Promise(function(r){e=e||"",t.isFile?t.file(function(t){t.$path=e,r(t)}):t.isDirectory&&t.createReader().readEntries(function(i){for(var o=[],s=0;s<i.length;s++)o.push(n.traverseFileTree(i[s],e+t.name+"/"));Promise.all(o).then(function(t){r(d(t))})})})}},render:function(t){var e=t("input",{ref:"input",class:[{"form-control-file":this.plain,"custom-file-input":this.custom,focus:this.custom&&this.hasFocus},this.stateClass],attrs:{type:"file",id:this.safeId(),name:this.name,disabled:this.disabled,required:this.required,form:this.form||null,capture:this.capture||null,accept:this.accept||null,multiple:this.multiple,webkitdirectory:this.directory,"aria-required":this.required?"true":null},on:{change:this.onFileChange,focusin:this.focusHandler,focusout:this.focusHandler,reset:this.onReset}});if(this.plain)return e;var n=t("label",{staticClass:"custom-file-label",class:[this.dragging?"dragging":null],attrs:{for:this.safeId(),"data-browse":this.browseText||null}},this.selectLabel);return t("div",{staticClass:"custom-file b-form-file",class:this.stateClass,attrs:{id:this.safeId("_BV_file_outer_")},on:{dragover:this.onDragover,dragleave:this.onDragleave,drop:this.onDrop}},[e,n])}}),Va=mt({components:{BFormFile:$a,BFile:$a}});function za(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Ha(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?za(n,!0).forEach(function(e){Wa(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):za(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Wa(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ua=i.extend({name:"BFormSelect",mixins:[Mi,Ce,da,pa,Ds,Ra,ys],model:{prop:"value",event:"input"},props:{value:{},multiple:{type:Boolean,default:!1},selectSize:{type:Number,default:0},ariaInvalid:{type:[Boolean,String],default:!1}},data:function(){return{localValue:this.value}},computed:{computedSelectSize:function(){return this.plain||0!==this.selectSize?this.selectSize:null},inputClass:function(){return[this.plain?"form-control":"custom-select",this.size&&this.plain?"form-control-".concat(this.size):null,this.size&&!this.plain?"custom-select-".concat(this.size):null,this.stateClass]},computedAriaInvalid:function(){return!0===this.ariaInvalid||"true"===this.ariaInvalid?"true":"is-invalid"===this.stateClass?"true":null}},watch:{value:function(t,e){this.localValue=t},localValue:function(t,e){this.$emit("input",this.localValue)}},methods:{focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()}},render:function(t){var e=this,n=this.formOptions.map(function(e,n){return t("option",{key:"option_".concat(n,"_opt"),attrs:{disabled:Boolean(e.disabled)},domProps:Ha({},wn(e.html,e.text),{value:e.value})})});return t("select",{ref:"input",class:this.inputClass,directives:[{name:"model",rawName:"v-model",value:this.localValue,expression:"localValue"}],attrs:{id:this.safeId(),name:this.name,form:this.form||null,multiple:this.multiple||null,size:this.computedSelectSize,disabled:this.disabled,required:this.required,"aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid},on:{change:function(t){var n=t.target,r=d(n.options).filter(function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});e.localValue=n.multiple?r:r[0],e.$nextTick(function(){e.$emit("change",e.localValue)})}}},[this.normalizeSlot("first"),n,this.normalizeSlot("default")])}}),qa=mt({components:{BFormSelect:Ua,BSelect:Ua}}),Ga=mt({components:{BImg:ai,BImgLazy:hi}}),Ya={tag:{type:String,default:"div"}},Ka=i.extend({name:"BInputGroupText",functional:!0,props:Ya,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,pe(r,{staticClass:"input-group-text"}),i)}});function Xa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Ja(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xa(n,!0).forEach(function(e){Qa(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xa(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Qa(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Za={id:{type:String,default:null},tag:{type:String,default:"div"},isText:{type:Boolean,default:!1}},tl=i.extend({name:"BInputGroupAddon",functional:!0,props:Ja({},Za,{append:{type:Boolean,default:!1}}),render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,pe(r,{class:{"input-group-append":n.append,"input-group-prepend":!n.append},attrs:{id:n.id}}),n.isText?[t(Ka,i)]:i)}});function el(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function nl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?el(n,!0).forEach(function(e){rl(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):el(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function rl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var il=i.extend({name:"BInputGroupPrepend",functional:!0,props:Za,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(tl,pe(r,{props:nl({},n,{append:!1})}),i)}});function ol(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function sl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ol(n,!0).forEach(function(e){al(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ol(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function al(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ll=i.extend({name:"BInputGroupAppend",functional:!0,props:Za,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(tl,pe(r,{props:sl({},n,{append:!0})}),i)}});function cl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ul(t){return fl(t)||hl(t)||dl()}function dl(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function hl(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function fl(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}var pl={id:{type:String},size:{type:String},prepend:{type:String},prependHtml:{type:String},append:{type:String},appendHtml:{type:String},tag:{type:String,default:"div"}},gl=i.extend({name:"BInputGroup",functional:!0,props:pl,render:function(t,e){var n=e.props,r=e.data,i=e.slots,o=e.scopedSlots,s=i(),a=o||{},l=[];return n.prepend||n.prependHtml||_e("prepend",a,s)?l.push(t(il,[n.prepend||n.prependHtml?t(Ka,{domProps:wn(n.prependHtml,n.prepend)}):t(),xe("prepend",{},a,s)||t()])):l.push(t()),_e("default",a,s)?l.push.apply(l,ul(xe("default",{},a,s))):l.push(t()),n.append||n.appendHtml||_e("append",a,s)?l.push(t(ll,[n.append||n.appendHtml?t(Ka,{domProps:wn(n.appendHtml,n.append)}):t(),xe("append",{},a,s)||t()])):l.push(t()),t(n.tag,pe(r,{staticClass:"input-group",class:cl({},"input-group-".concat(n.size),Boolean(n.size)),attrs:{id:n.id||null,role:"group"}}),l)}}),ml=mt({components:{BInputGroup:gl,BInputGroupAddon:tl,BInputGroupPrepend:il,BInputGroupAppend:ll,BInputGroupText:Ka}}),vl={tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},bl=i.extend({name:"BContainer",functional:!0,props:vl,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,pe(r,{class:{container:!n.fluid,"container-fluid":n.fluid}}),i)}});function yl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wl="BJumbotron",kl={fluid:{type:Boolean,default:!1},containerFluid:{type:Boolean,default:!1},header:{type:String,default:null},headerHtml:{type:String,default:null},headerTag:{type:String,default:"h1"},headerLevel:{type:[Number,String],default:"3"},lead:{type:String,default:null},leadHtml:{type:String,default:null},leadTag:{type:String,default:"p"},tag:{type:String,default:"div"},bgVariant:{type:String,default:function(){return Ot(wl,"bgVariant")}},borderVariant:{type:String,default:function(){return Ot(wl,"borderVariant")}},textVariant:{type:String,default:function(){return Ot(wl,"textVariant")}}},_l=i.extend({name:wl,functional:!0,props:kl,render:function(t,e){var n,r=e.props,i=e.data,o=e.slots,s=e.scopedSlots,a=[],l=o(),c=s||{};return(r.header||_e("header",c,l)||r.headerHtml)&&a.push(t(r.headerTag,{class:yl({},"display-".concat(r.headerLevel),Boolean(r.headerLevel))},xe("header",{},c,l)||r.headerHtml||yn(r.header))),(r.lead||_e("lead",c,l)||r.leadHtml)&&a.push(t(r.leadTag,{staticClass:"lead"},xe("lead",{},c,l)||r.leadHtml||yn(r.lead))),_e("default",c,l)&&a.push(xe("default",{},c,l)),r.fluid&&(a=[t(bl,{props:{fluid:r.containerFluid}},a)]),t(r.tag,pe(i,{staticClass:"jumbotron",class:(n={"jumbotron-fluid":r.fluid},yl(n,"text-".concat(r.textVariant),Boolean(r.textVariant)),yl(n,"bg-".concat(r.bgVariant),Boolean(r.bgVariant)),yl(n,"border-".concat(r.borderVariant),Boolean(r.borderVariant)),yl(n,"border",Boolean(r.borderVariant)),n)}),a)}}),xl=mt({components:{BJumbotron:_l}});function Cl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Sl=["start","end","center"],Tl={tag:{type:String,default:"div"},noGutters:{type:Boolean,default:!1},alignV:{type:String,default:null,validator:function(t){return f(Sl.concat(["baseline","stretch"]),t)}},alignH:{type:String,default:null,validator:function(t){return f(Sl.concat(["between","around"]),t)}},alignContent:{type:String,default:null,validator:function(t){return f(Sl.concat(["between","around","stretch"]),t)}}},Ol=i.extend({name:"BRow",functional:!0,props:Tl,render:function(t,e){var n,r=e.props,i=e.data,o=e.children;return t(r.tag,pe(i,{staticClass:"row",class:(n={"no-gutters":r.noGutters},Cl(n,"align-items-".concat(r.alignV),r.alignV),Cl(n,"justify-content-".concat(r.alignH),r.alignH),Cl(n,"align-content-".concat(r.alignContent),r.alignContent),n)}),o)}}),Pl=mt({components:{BContainer:bl,BRow:Ol,BCol:Gs,BFormRow:Ns}}),Al=mt({components:{BLink:cn}});function El(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ml={tag:{type:String,default:"div"},flush:{type:Boolean,default:!1},horizontal:{type:[Boolean,String],default:!1}},Il=i.extend({name:"BListGroup",functional:!0,props:Ml,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=""===n.horizontal||n.horizontal;o=!n.flush&&o;var s={staticClass:"list-group",class:El({"list-group-flush":n.flush,"list-group-horizontal":!0===o},"list-group-horizontal-".concat(o),Q(o))};return t(n.tag,pe(r,s),i)}});function Nl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function jl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nl(n,!0).forEach(function(e){Dl(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nl(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Dl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ll="BListGroupItem",Bl=["a","router-link","button","b-link"],Rl=ln();delete Rl.href.default,delete Rl.to.default;var Fl=jl({tag:{type:String,default:"div"},action:{type:Boolean,default:null},button:{type:Boolean,default:null},variant:{type:String,default:function(){return Ot(Ll,"variant")}}},Rl),$l=i.extend({name:Ll,functional:!0,props:Fl,render:function(t,e){var n,r=e.props,i=e.data,o=e.children,s=r.button?"button":r.href||r.to?cn:r.tag,a=Boolean(r.href||r.to||r.action||r.button||f(Bl,r.tag)),l={},c={};"button"===s?(i.attrs&&i.attrs.type||(l.type="button"),r.disabled&&(l.disabled=!0)):c=Fe(Rl,r);var u={attrs:l,props:c,staticClass:"list-group-item",class:(n={},Dl(n,"list-group-item-".concat(r.variant),Boolean(r.variant)),Dl(n,"list-group-item-action",a),Dl(n,"active",r.active),Dl(n,"disabled",r.disabled),n)};return t(s,pe(i,u),o)}}),Vl=mt({components:{BListGroup:Il,BListGroupItem:$l}}),zl={tag:{type:String,default:"div"}},Hl=i.extend({name:"BMediaBody",functional:!0,props:zl,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,pe(r,{staticClass:"media-body"}),i)}});function Wl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ul={tag:{type:String,default:"div"},verticalAlign:{type:String,default:"top"}},ql=i.extend({name:"BMediaAside",functional:!0,props:Ul,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,pe(r,{staticClass:"d-flex",class:Wl({},"align-self-".concat(n.verticalAlign),n.verticalAlign)}),i)}}),Gl={tag:{type:String,default:"div"},rightAlign:{type:Boolean,default:!1},verticalAlign:{type:String,default:"top"},noBody:{type:Boolean,default:!1}},Yl=i.extend({name:"BMedia",functional:!0,props:Gl,render:function(t,e){var n=e.props,r=e.data,i=e.slots,o=e.scopedSlots,s=e.children,a=n.noBody?s:[];if(!n.noBody){var l=i(),c=o||{},u=xe("aside",{},c,l),d=xe("default",{},c,l);u&&!n.rightAlign&&a.push(t(ql,{staticClass:"mr-3",props:{verticalAlign:n.verticalAlign}},u)),a.push(t(Hl,{},d)),u&&n.rightAlign&&a.push(t(ql,{staticClass:"ml-3",props:{verticalAlign:n.verticalAlign}},u))}return t(n.tag,pe(r,{staticClass:"media"}),a)}}),Kl=mt({components:{BMedia:Yl,BMediaAside:ql,BMediaBody:Hl}}),Xl=1040,Jl={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},Ql=i.extend({data:function(){return{modals:[],baseZIndex:null,scrollbarWidth:null,isBodyOverflowing:!1}},computed:{modalCount:function(){return this.modals.length},modalsAreOpen:function(){return this.modalCount>0}},watch:{modalCount:function(t,e){o["j"]&&(this.getScrollbarWidth(),t>0&&0===e?(this.checkScrollbar(),this.setScrollbar(),Qt(document.body,"modal-open")):0===t&&e>0&&(this.resetScrollbar(),Zt(document.body,"modal-open")),ee(document.body,"data-modal-open-count",String(t)))},modals:function(t,e){var n=this;this.checkScrollbar(),Bt(function(){n.updateModals(t||[])})}},methods:{registerModal:function(t){var e=this;t&&-1===this.modals.indexOf(t)&&(this.modals.push(t),t.$once("hook:beforeDestroy",function(){e.unregisterModal(t)}))},unregisterModal:function(t){var e=this.modals.indexOf(t);e>-1&&(this.modals.splice(e,1),t._isBeingDestroyed||t._isDestroyed||this.resetModal(t))},getBaseZIndex:function(){if(Y(this.baseZIndex)&&o["j"]){var t=document.createElement("div");t.className="modal-backdrop d-none",t.style.display="none",document.body.appendChild(t),this.baseZIndex=parseInt(se(t).zIndex||Xl,10),document.body.removeChild(t)}return this.baseZIndex||Xl},getScrollbarWidth:function(){if(Y(this.scrollbarWidth)&&o["j"]){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t),this.scrollbarWidth=oe(t).width-t.clientWidth,document.body.removeChild(t)}return this.scrollbarWidth||0},updateModals:function(t){var e=this,n=this.getBaseZIndex(),r=this.getScrollbarWidth();t.forEach(function(t,i){t.zIndex=n+i,t.scrollbarWidth=r,t.isTop=i===e.modals.length-1,t.isBodyOverflowing=e.isBodyOverflowing})},resetModal:function(t){t&&(t.zIndex=this.getBaseZIndex(),t.isTop=!0,t.isBodyOverflowing=!1)},checkScrollbar:function(){var t=oe(document.body),e=t.left,n=t.right;this.isBodyOverflowing=e+n<window.innerWidth},setScrollbar:function(){var t=document.body;if(t._paddingChangedForModal=t._paddingChangedForModal||[],t._marginChangedForModal=t._marginChangedForModal||[],this.isBodyOverflowing){var e=this.scrollbarWidth;qt(Jl.FIXED_CONTENT).forEach(function(n){var r=n.style.paddingRight,i=se(n).paddingRight||0;ee(n,"data-padding-right",r),n.style.paddingRight="".concat(parseFloat(i)+e,"px"),t._paddingChangedForModal.push(n)}),qt(Jl.STICKY_CONTENT).forEach(function(n){var r=n.style.marginRight,i=se(n).marginRight||0;ee(n,"data-margin-right",r),n.style.marginRight="".concat(parseFloat(i)-e,"px"),t._marginChangedForModal.push(n)}),qt(Jl.NAVBAR_TOGGLER).forEach(function(n){var r=n.style.marginRight,i=se(n).marginRight||0;ee(n,"data-margin-right",r),n.style.marginRight="".concat(parseFloat(i)+e,"px"),t._marginChangedForModal.push(n)});var n=t.style.paddingRight,r=se(t).paddingRight;ee(t,"data-padding-right",n),t.style.paddingRight="".concat(parseFloat(r)+e,"px")}},resetScrollbar:function(){var t=document.body;t._paddingChangedForModal&&t._paddingChangedForModal.forEach(function(t){ie(t,"data-padding-right")&&(t.style.paddingRight=re(t,"data-padding-right")||"",ne(t,"data-padding-right"))}),t._marginChangedForModal&&t._marginChangedForModal.forEach(function(t){ie(t,"data-margin-right")&&(t.style.marginRight=re(t,"data-margin-right")||"",ne(t,"data-margin-right"))}),t._paddingChangedForModal=null,t._marginChangedForModal=null,ie(t,"data-padding-right")&&(t.style.paddingRight=re(t,"data-padding-right")||"",ne(t,"data-padding-right"))}}}),Zl=new Ql;function tc(t){return tc="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},tc(t)}function ec(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function nc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ec(n,!0).forEach(function(e){rc(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ec(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function rc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ic(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oc(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)}}function sc(t,e,n){return e&&oc(t.prototype,e),n&&oc(t,n),t}function ac(t,e){return!e||"object"!==tc(e)&&"function"!==typeof e?lc(t):e}function lc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cc(t,e,n){return cc="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=uc(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}},cc(t,e,n||t)}function uc(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=dc(t),null===t)break;return t}function dc(t){return dc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},dc(t)}function hc(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fc(t,e)}function fc(t,e){return fc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},fc(t,e)}var pc=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ic(this,e),n=ac(this,dc(e).call(this,t,r)),_(lc(n),{trigger:M()}),n}return hc(e,t),sc(e,[{key:"cancel",value:function(){u("b-modal: evt.cancel() is deprecated. Please use evt.preventDefault()."),this.preventDefault()}},{key:"modalId",get:function(){return u("b-modal: evt.modalId is deprecated. Please use evt.componentId."),this.componentId}}],[{key:"Defaults",get:function(){return nc({},cc(dc(e),"Defaults",this),{trigger:null})}}]),e}(Ao),gc=pc,mc=i.extend({abstract:!0,name:"BTransporterTargetSingle",props:{nodes:{type:[Array,Function]}},data:function(t){return{updatedNodes:t.nodes}},destroyed:function(){var t=this.$el;t&&t.parentNode&&t.parentNode.removeChild(t)},render:function(t){var e=X(this.updatedNodes)?this.updatedNodes({}):this.updatedNodes;return e=p(e).filter(Boolean),e&&e.length>0&&!e[0].text?e[0]:t()}}),vc=i.extend({name:"BTransporterSingle",mixins:[Ce],props:{disabled:{type:Boolean,default:!1},container:{type:[String,xo],default:"body"},tag:{type:String,default:"div"}},watch:{disabled:{immediate:!0,handler:function(t){t?this.unmountTarget():this.$nextTick(this.mountTarget)}}},created:function(){this._bv_defaultFn=null,this._bv_target=null},beforeMount:function(){this.mountTarget()},updated:function(){var t=this;this.$nextTick(function(){t.updateTarget()})},beforeDestroy:function(){this.unmountTarget(),this._bv_defaultFn=null},methods:{getContainer:function(){if(o["j"]){var t=this.container;return Q(t)?Gt(t):t}return null},mountTarget:function(){if(!this._bv_target){var t=this.getContainer();if(t){var e=document.createElement("div");t.appendChild(e),this._bv_target=new mc({el:e,parent:this,propsData:{nodes:p(this.normalizeSlot("default"))}})}}},updateTarget:function(){if(o["j"]&&this._bv_target){var t=this.$scopedSlots.default;this.disabled||(t&&this._bv_defaultFn!==t?this._bv_target.updatedNodes=t:t||(this._bv_target.updatedNodes=this.$slots.default)),this._bv_defaultFn=t}},unmountTarget:function(){this._bv_target&&(this._bv_target.$destroy(),this._bv_target=null)}},render:function(t){if(this.disabled){var e=p(this.normalizeSlot("default")).filter(Boolean);if(e.length>0&&!e[0].text)return e[0]}return t()}});function bc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function yc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bc(n,!0).forEach(function(e){wc(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bc(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function wc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kc="BModal",_c={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["style","class"]},xc={passive:!0,capture:!1},Cc={size:{type:String,default:function(){return Ot(kc,"size")}},centered:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},buttonSize:{type:String,default:""},noStacking:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1},noEnforceFocus:{type:Boolean,default:!1},title:{type:String,default:""},titleHtml:{type:String},titleTag:{type:String,default:function(){return Ot(kc,"titleTag")}},titleClass:{type:[String,Array,Object],default:null},titleSrOnly:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},headerBgVariant:{type:String,default:function(){return Ot(kc,"headerBgVariant")}},headerBorderVariant:{type:String,default:function(){return Ot(kc,"headerBorderVariant")}},headerTextVariant:{type:String,default:function(){return Ot(kc,"headerTextVariant")}},headerCloseVariant:{type:String,default:function(){return Ot(kc,"headerCloseVariant")}},headerClass:{type:[String,Array,Object],default:null},bodyBgVariant:{type:String,default:function(){return Ot(kc,"bodyBgVariant")}},bodyTextVariant:{type:String,default:function(){return Ot(kc,"bodyTextVariant")}},modalClass:{type:[String,Array,Object],default:null},dialogClass:{type:[String,Array,Object],default:null},contentClass:{type:[String,Array,Object],default:null},bodyClass:{type:[String,Array,Object],default:null},footerBgVariant:{type:String,default:function(){return Ot(kc,"footerBgVariant")}},footerBorderVariant:{type:String,default:function(){return Ot(kc,"footerBorderVariant")}},footerTextVariant:{type:String,default:function(){return Ot(kc,"footerTextVariant")}},footerClass:{type:[String,Array,Object],default:null},hideHeader:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideHeaderClose:{type:Boolean,default:!1},hideBackdrop:{type:Boolean,default:!1},okOnly:{type:Boolean,default:!1},okDisabled:{type:Boolean,default:!1},cancelDisabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},returnFocus:{default:null},headerCloseLabel:{type:String,default:function(){return Ot(kc,"headerCloseLabel")}},cancelTitle:{type:String,default:function(){return Ot(kc,"cancelTitle")}},cancelTitleHtml:{type:String},okTitle:{type:String,default:function(){return Ot(kc,"okTitle")}},okTitleHtml:{type:String},cancelVariant:{type:String,default:function(){return Ot(kc,"cancelVariant")}},okVariant:{type:String,default:function(){return Ot(kc,"okVariant")}},lazy:{type:Boolean,default:!1},busy:{type:Boolean,default:!1},static:{type:Boolean,default:!1}},Sc=i.extend({name:kc,mixins:[Mi,Ui,Ce],model:{prop:"visible",event:"change"},props:Cc,data:function(){return{isHidden:!0,isVisible:!1,isTransitioning:!1,isShow:!1,isBlock:!1,isOpening:!1,isClosing:!1,ignoreBackdropClick:!1,isModalOverflowing:!1,return_focus:this.returnFocus||null,scrollbarWidth:0,zIndex:Zl.getBaseZIndex(),isTop:!0,isBodyOverflowing:!1}},computed:{modalClasses:function(){return[{fade:!this.noFade,show:this.isShow},this.modalClass]},modalStyles:function(){var t="".concat(this.scrollbarWidth,"px");return{paddingLeft:!this.isBodyOverflowing&&this.isModalOverflowing?t:"",paddingRight:this.isBodyOverflowing&&!this.isModalOverflowing?t:"",display:this.isBlock?"block":"none"}},dialogClasses:function(){var t;return[(t={},wc(t,"modal-".concat(this.size),Boolean(this.size)),wc(t,"modal-dialog-centered",this.centered),wc(t,"modal-dialog-scrollable",this.scrollable),t),this.dialogClass]},headerClasses:function(){var t;return[(t={},wc(t,"bg-".concat(this.headerBgVariant),Boolean(this.headerBgVariant)),wc(t,"text-".concat(this.headerTextVariant),Boolean(this.headerTextVariant)),wc(t,"border-".concat(this.headerBorderVariant),Boolean(this.headerBorderVariant)),t),this.headerClass]},titleClases:function(){return[{"sr-only":this.titleSrOnly},this.titleClass]},bodyClasses:function(){var t;return[(t={},wc(t,"bg-".concat(this.bodyBgVariant),Boolean(this.bodyBgVariant)),wc(t,"text-".concat(this.bodyTextVariant),Boolean(this.bodyTextVariant)),t),this.bodyClass]},footerClasses:function(){var t;return[(t={},wc(t,"bg-".concat(this.footerBgVariant),Boolean(this.footerBgVariant)),wc(t,"text-".concat(this.footerTextVariant),Boolean(this.footerTextVariant)),wc(t,"border-".concat(this.footerBorderVariant),Boolean(this.footerBorderVariant)),t),this.footerClass]},modalOuterStyle:function(){return{position:"absolute",zIndex:this.zIndex}},slotScope:function(){return{ok:this.onOk,cancel:this.onCancel,close:this.onClose,hide:this.hide,visible:this.isVisible}}},watch:{visible:function(t,e){t!==e&&this[t?"show":"hide"]()}},created:function(){this._observer=null},mounted:function(){this.zIndex=Zl.getBaseZIndex(),this.listenOnRoot("bv::show::modal",this.showHandler),this.listenOnRoot("bv::hide::modal",this.hideHandler),this.listenOnRoot("bv::toggle::modal",this.toggleHandler),this.listenOnRoot("bv::modal::show",this.modalListener),!0===this.visible&&this.$nextTick(this.show)},beforeDestroy:function(){this._observer&&(this._observer.disconnect(),this._observer=null),this.setEnforceFocus(!1),this.setResizeEvent(!1),this.isVisible&&(this.isVisible=!1,this.isShow=!1,this.isTransitioning=!1)},methods:{updateModel:function(t){t!==this.visible&&this.$emit("change",t)},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new gc(t,yc({cancelable:!1,target:this.$refs.modal||this.$el||null,relatedTarget:null,trigger:null},e,{vueTarget:this,componentId:this.safeId()}))},show:function(){if(!this.isVisible&&!this.isOpening)if(this.isClosing)this.$once("hidden",this.show);else{this.isOpening=!0,this.return_focus=this.return_focus||this.getActiveElement();var t=this.buildEvent("show",{cancelable:!0});if(this.emitEvent(t),t.defaultPrevented||this.isVisible)return this.isOpening=!1,void this.updateModel(!1);this.doShow()}},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.isVisible&&!this.isClosing){this.isClosing=!0;var e=this.buildEvent("hide",{cancelable:"FORCE"!==t,trigger:t||null});if("ok"===t?this.$emit("ok",e):"cancel"===t?this.$emit("cancel",e):"headerclose"===t&&this.$emit("close",e),this.emitEvent(e),e.defaultPrevented||!this.isVisible)return this.isClosing=!1,void this.updateModel(!0);this._observer&&(this._observer.disconnect(),this._observer=null),this.isVisible=!1,this.updateModel(!1)}},toggle:function(t){t&&(this.return_focus=t),this.isVisible?this.hide("toggle"):this.show()},getActiveElement:function(){if(o["j"]){var t=document.activeElement;if(t&&t!==document.body&&t.focus)return t}return null},doShow:function(){var t=this;Zl.modalsAreOpen&&this.noStacking?this.listenOnRootOnce("bv::modal::hidden",this.doShow):(Zl.registerModal(this),this.isHidden=!1,this.$nextTick(function(){t.isVisible=!0,t.isOpening=!1,t.updateModel(!0),t.$nextTick(function(){t._observer=Ei(t.$refs.content,t.checkModalOverflow.bind(t),_c)})}))},onBeforeEnter:function(){this.isTransitioning=!0,this.setResizeEvent(!0)},onEnter:function(){this.isBlock=!0},onAfterEnter:function(){var t=this;this.checkModalOverflow(),this.isShow=!0,this.isTransitioning=!1,this.$nextTick(function(){t.emitEvent(t.buildEvent("shown")),t.focusFirst(),t.setEnforceFocus(!0)})},onBeforeLeave:function(){this.isTransitioning=!0,this.setResizeEvent(!1)},onLeave:function(){this.isShow=!1},onAfterLeave:function(){var t=this;this.isBlock=!1,this.isTransitioning=!1,this.setEnforceFocus(!1),this.isModalOverflowing=!1,this.isHidden=!0,this.$nextTick(function(){t.returnFocusTo(),t.isClosing=!1,t.return_focus=null,Zl.unregisterModal(t),t.emitEvent(t.buildEvent("hidden"))})},emitEvent:function(t){var e=t.type;this.emitOnRoot("bv::modal::".concat(e),t,t.componentId),this.$emit(e,t)},onDialogMousedown:function(){var t=this,e=this.$refs.modal,n=function n(r){Vt(e,"mouseup",n,xc),r.target===e&&(t.ignoreBackdropClick=!0)};$t(e,"mouseup",n,xc)},onClickOut:function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:this.isVisible&&!this.noCloseOnBackdrop&&Xt(document.body,t.target)&&(Xt(this.$refs.content,t.target)||this.hide("backdrop"))},onOk:function(){this.hide("ok")},onCancel:function(){this.hide("cancel")},onClose:function(){this.hide("headerclose")},onEsc:function(t){t.keyCode===nr.ESC&&this.isVisible&&!this.noCloseOnEsc&&this.hide("esc")},focusHandler:function(t){var e=this.$refs.modal;!this.noEnforceFocus&&this.isTop&&this.isVisible&&e&&document!==t.target&&!Xt(e,t.target)&&e.focus({preventScroll:!0})},setEnforceFocus:function(t){var e=t?$t:Vt;e(document,"focusin",this.focusHandler,xc)},setResizeEvent:function(t){var e=t?$t:Vt;e(window,"resize",this.checkModalOverflow,xc),e(window,"orientationchange",this.checkModalOverflow,xc)},showHandler:function(t,e){t===this.safeId()&&(this.return_focus=e||this.getActiveElement(),this.show())},hideHandler:function(t){t===this.safeId()&&this.hide("event")},toggleHandler:function(t,e){t===this.safeId()&&this.toggle(e)},modalListener:function(t){this.noStacking&&t.vueTarget!==this&&this.hide()},focusFirst:function(){if(o["j"]){var t=this.$refs.modal,e=this.getActiveElement();!t||e&&Xt(t,e)||this.$nextTick(function(){t.scrollTop=0,t.focus()})}},returnFocusTo:function(){var t=this.returnFocus||this.return_focus||null;t=Q(t)?Gt(t):t,t&&(t=t.$el||t,Ht(t)&&t.focus&&t.focus())},checkModalOverflow:function(){if(this.isVisible){var t=this.$refs.modal;this.isModalOverflowing=t.scrollHeight>document.documentElement.clientHeight}},makeModal:function(t){var e=t();if(!this.hideHeader){var n=this.normalizeSlot("modal-header",this.slotScope);if(!n){var r=t();this.hideHeaderClose||(r=t(Pe,{props:{disabled:this.isTransitioning,ariaLabel:this.headerCloseLabel,textVariant:this.headerCloseVariant||this.headerTextVariant},on:{click:this.onClose}},[this.normalizeSlot("modal-header-close")]));var i=!this.hasNormalizedSlot("modal-title")&&this.titleHtml?{innerHTML:this.titleHtml}:{};n=[t(this.titleTag,{staticClass:"modal-title",class:this.titleClases,attrs:{id:this.safeId("__BV_modal_title_")},domProps:i},[this.normalizeSlot("modal-title",this.slotScope)||yn(this.title)]),r]}e=t("header",{ref:"header",staticClass:"modal-header",class:this.headerClasses,attrs:{id:this.safeId("__BV_modal_header_")}},[n])}var o=t("div",{ref:"body",staticClass:"modal-body",class:this.bodyClasses,attrs:{id:this.safeId("__BV_modal_body_")}},this.normalizeSlot("default",this.slotScope)),s=t();if(!this.hideFooter){var a=this.normalizeSlot("modal-footer",this.slotScope);if(!a){var l=t();if(!this.okOnly){var c=this.cancelTitleHtml?{innerHTML:this.cancelTitleHtml}:null;l=t(Kn,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},on:{click:this.onCancel}},[this.normalizeSlot("modal-cancel")||(c?t("span",{domProps:c}):yn(this.cancelTitle))])}var u=this.okTitleHtml?{innerHTML:this.okTitleHtml}:null,d=t(Kn,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},on:{click:this.onOk}},[this.normalizeSlot("modal-ok")||(u?t("span",{domProps:u}):yn(this.okTitle))]);a=[l,d]}s=t("footer",{ref:"footer",staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.safeId("__BV_modal_footer_")}},[a])}var h=t("div",{ref:"content",staticClass:"modal-content",class:this.contentClass,attrs:{role:"document",id:this.safeId("__BV_modal_content_")}},[e,o,s]),f=t("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown}},[h]),p=t("div",{ref:"modal",staticClass:"modal",class:this.modalClasses,style:this.modalStyles,directives:[{name:"show",rawName:"v-show",value:this.isVisible,expression:"isVisible"}],attrs:{id:this.safeId(),role:"dialog",tabindex:"-1","aria-hidden":this.isVisible?null:"true","aria-modal":this.isVisible?"true":null,"aria-label":this.ariaLabel,"aria-labelledby":this.hideHeader||this.ariaLabel||!(this.hasNormalizedSlot("modal-title")||this.titleHtml||this.title)?null:this.safeId("__BV_modal_title_"),"aria-describedby":this.safeId("__BV_modal_body_")},on:{keydown:this.onEsc,click:this.onClickOut}},[f]);p=t("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[p]);var g=t();!this.hideBackdrop&&this.isVisible&&(g=t("div",{staticClass:"modal-backdrop",attrs:{id:this.safeId("__BV_modal_backdrop_")}},[this.normalizeSlot("modal-backdrop")])),g=t(ke,{props:{noFade:this.noFade}},[g]);var m=t();return this.isVisible&&this.isTop&&!this.noEnforceFocus&&(m=t("div",{attrs:{tabindex:"0"}})),t("div",{key:"modal-outer-".concat(this._uid),style:this.modalOuterStyle,attrs:{id:this.safeId("__BV_modal_outer_")}},[p,m,g])}},render:function(t){return this.static?this.lazy&&this.isHidden?t():this.makeModal(t):this.isHidden?t():t(vc,{},[this.makeModal(t)])}}),Tc=Sc,Oc={click:!0},Pc="bv::show::modal",Ac=function(t,e,n){"BUTTON"!==t.tagName&&ee(t,"role","button")},Ec={bind:function(t,e,n){oo(n,e,Oc,function(t){var e=t.targets,n=t.vnode;e.forEach(function(t){n.context.$root.$emit(Pc,t,n.elm)})}),Ac(t,e,n)},updated:Ac,componentUpdated:Ac,unbind:function(t,e,n){so(n,e,Oc),"BUTTON"!==t.tagName&&ne(t,"role","button")}};function Mc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ic(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)}}function Nc(t,e,n){return e&&Ic(t.prototype,e),n&&Ic(t,n),t}function jc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Dc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jc(n,!0).forEach(function(e){Lc(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jc(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Lc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bc(t){return $c(t)||Fc(t)||Rc()}function Rc(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Fc(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function $c(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}var Vc="$bvModal",zc="_bv__modal",Hc=["id"].concat(Bc(k(E(Cc,["busy","lazy","noStacking","static","visible"])))),Wc=function(t){},Uc={msgBoxContent:"default",title:"modal-title",okTitle:"modal-ok",cancelTitle:"modal-cancel"},qc=function(t){return Hc.reduce(function(e,n){return G(t[n])||(e[n]=t[n]),e},{})},Gc=function(t){var e=t.extend({name:"BMsgBox",extends:Tc,destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},mounted:function(){var t=this,e=function(){var e=t;t.$nextTick(function(){setTimeout(function(){return e.$destroy()},0)})};if(this.$parent.$once("hook:destroyed",e),this.$once("hidden",e),this.$router&&this.$route){var n=this.$watch("$router",e);this.$once("hook:beforeDestroy",n)}this.show()}}),n=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wc;if(!a(Vc)&&!l(Vc)){var i=new e({parent:n,propsData:Dc({},qc(Ot("BModal")||{}),{hideHeaderClose:!0,hideHeader:!(t.title||t.titleHtml)},E(t,k(Uc)),{lazy:!1,busy:!1,visible:!1,noStacking:!1,noEnforceFocus:!1})});return k(Uc).forEach(function(e){G(t[e])||(i.$slots[Uc[e]]=p(t[e]))}),new Promise(function(t,e){var n=!1;i.$once("hook:destroyed",function(){n||e(new Error("BootstrapVue MsgBox destroyed before resolve"))}),i.$on("hide",function(e){if(!e.defaultPrevented){var i=r(e);e.defaultPrevented||(n=!0,t(i))}});var o=document.createElement("div");document.body.appendChild(o),i.$mount(o)})}},r=function(){function t(e){Mc(this,t),y(this,{_vm:e,_root:e.$root}),_(this,{_vm:M(),_root:M()})}return Nc(t,[{key:"show",value:function(t){if(t&&this._root){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this._root).$emit.apply(e,["bv::show::modal",t].concat(r))}}},{key:"hide",value:function(t){if(t&&this._root){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this._root).$emit.apply(e,["bv::hide::modal",t].concat(r))}}},{key:"msgBox",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(t&&!l(Vc)&&!a(Vc)&&X(r))return n(Dc({},qc(e),{msgBoxContent:t}),this._vm,r)}},{key:"msgBoxOk",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Dc({},e,{okOnly:!0,okDisabled:!1,hideFooter:!1,msgBoxContent:t});return this.msgBox(t,n,function(t){return!0})}},{key:"msgBoxConfirm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Dc({},e,{okOnly:!1,okDisabled:!1,cancelDisabled:!1,hideFooter:!1});return this.msgBox(t,n,function(t){var e=t.trigger;return"ok"===e||"cancel"!==e&&null})}}]),t}();t.mixin({beforeCreate:function(){this[zc]=new r(this)}}),t.prototype.hasOwnProperty(Vc)||x(t.prototype,Vc,{get:function(){return this&&this[zc]||s("'".concat(Vc,"' must be accessed from a Vue instance 'this' context")),this[zc]}})},Yc=mt({plugins:{plugin:Gc}}),Kc=mt({components:{BModal:Sc},directives:{VBModal:Ec},plugins:{BVModalPlugin:Yc}});function Xc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jc='Setting prop "is-nav-bar" is deprecated. Use the <b-navbar-nav> component instead.',Qc={tag:{type:String,default:"ul"},fill:{type:Boolean,default:!1},justified:{type:Boolean,default:!1},align:{type:String,default:null},tabs:{type:Boolean,default:!1},pills:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},small:{type:Boolean,default:!1},isNavBar:{type:Boolean,default:!1,deprecated:Jc}},Zc=function(t){return t="left"===t?"start":"right"===t?"end":t,"justify-content-".concat(t)},tu=i.extend({name:"BNav",functional:!0,props:Qc,render:function(t,e){var n,r=e.props,i=e.data,o=e.children;return t(r.tag,pe(i,{class:(n={nav:!r.isNavBar,"navbar-nav":r.isNavBar,"nav-tabs":r.tabs&&!r.isNavBar,"nav-pills":r.pills&&!r.isNavBar,"flex-column":r.vertical&&!r.isNavBar,"nav-fill":!r.vertical&&r.fill,"nav-justified":!r.vertical&&r.justified},Xc(n,Zc(r.align),!r.vertical&&r.align),Xc(n,"small",r.small),n)}),o)}});function eu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function nu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?eu(n,!0).forEach(function(e){ru(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eu(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ru(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var iu=ln(),ou=i.extend({name:"BNavItem",functional:!0,props:nu({},iu,{linkAttrs:{type:Object,default:function(){}},linkClasses:{type:[String,Object,Array],default:null}}),render:function(t,e){var n=e.props,r=e.data,i=e.listeners,o=e.children;return delete r.on,t("li",pe(r,{staticClass:"nav-item"}),[t(cn,{staticClass:"nav-link",class:n.linkClasses,attrs:n.linkAttrs,props:n,on:i},o)])}}),su={tag:{type:String,default:"span"}},au=i.extend({name:"BNavText",functional:!0,props:su,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,pe(r,{staticClass:"navbar-text"}),i)}});function lu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function cu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lu(n,!0).forEach(function(e){uu(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lu(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function uu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var du=E(rs,["inline"]),hu=i.extend({name:"BNavForm",functional:!0,props:du,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(is,pe(r,{props:cu({},n,{inline:!0})}),i)}});function fu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function pu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fu(n,!0).forEach(function(e){gu(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fu(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function gu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mu=pu({},Fe(["menuClass","toggleClass","noCaret","role"],$o),{extraMenuClasses:{type:String,default:"",deprecated:'Setting prop "extra-menu-classes" is deprecated. Use "menu-class" prop instead.'},extraToggleClasses:{type:String,default:"",deprecated:'Setting prop "extra-toggle-classes" is deprecated. Use "toggle-class" prop instead.'}}),vu=i.extend({name:"BNavItemDropdown",mixins:[Mi,Ro,Ce],props:mu,computed:{isNav:function(){return!0},dropdownClasses:function(){return[this.directionClass,{show:this.visible}]},menuClasses:function(){return[this.extraMenuClasses,this.menuClass,{"dropdown-menu-right":this.right,show:this.visible}]},toggleClasses:function(){return[this.extraToggleClasses,this.toggleClass,{"dropdown-toggle-no-caret":this.noCaret}]}},render:function(t){var e=t(cn,{ref:"toggle",staticClass:"nav-link dropdown-toggle",class:this.toggleClasses,props:{href:"#",disabled:this.disabled},attrs:{id:this.safeId("_BV_button_"),"aria-haspopup":"true","aria-expanded":this.visible?"true":"false"},on:{click:this.toggle,keydown:this.toggle}},[this.$slots["button-content"]||this.$slots.text||t("span",{domProps:wn(this.html,this.text)})]),n=t("ul",{staticClass:"dropdown-menu",class:this.menuClasses,ref:"menu",attrs:{tabindex:"-1","aria-labelledby":this.safeId("_BV_button_")},on:{keydown:this.onKeydown}},!this.lazy||this.visible?this.normalizeSlot("default",{hide:this.hide}):[t()]);return t("li",{staticClass:"nav-item b-nav-dropdown dropdown",class:this.dropdownClasses,attrs:{id:this.safeId()}},[e,n])}}),bu=mt({components:{BNav:tu,BNavItem:ou,BNavText:au,BNavForm:hu,BNavItemDropdown:vu,BNavItemDd:vu,BNavDropdown:vu,BNavDd:vu},plugins:{DropdownPlugin:ps}});function yu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wu="BNavbar",ku={tag:{type:String,default:"nav"},type:{type:String,default:"light"},variant:{type:String,default:function(){return Ot(wu,"variant")}},toggleable:{type:[Boolean,String],default:!1},fixed:{type:String},sticky:{type:Boolean,default:!1},print:{type:Boolean,default:!1}},_u=i.extend({name:wu,functional:!0,props:ku,render:function(t,e){var n,r=e.props,i=e.data,o=e.children,s="",a=Pt()[0];return r.toggleable&&Q(r.toggleable)&&r.toggleable!==a?s="navbar-expand-".concat(r.toggleable):!1===r.toggleable&&(s="navbar-expand"),t(r.tag,pe(i,{staticClass:"navbar",class:(n={"d-print":r.print,"sticky-top":r.sticky},yu(n,"navbar-".concat(r.type),Boolean(r.type)),yu(n,"bg-".concat(r.variant),Boolean(r.variant)),yu(n,"fixed-".concat(r.fixed),Boolean(r.fixed)),yu(n,"".concat(s),Boolean(s)),n),attrs:{role:"nav"===r.tag?null:"navigation"}}),o)}});function xu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cu=Fe(["tag","fill","justified","align","small"],Qc),Su=function(t){return t="left"===t?"start":"right"===t?"end":t,"justify-content-".concat(t)},Tu=i.extend({name:"BNavbarNav",functional:!0,props:Cu,render:function(t,e){var n,r=e.props,i=e.data,o=e.children;return t(r.tag,pe(i,{staticClass:"navbar-nav",class:(n={"nav-fill":r.fill,"nav-justified":r.justified},xu(n,Su(r.align),r.align),xu(n,"small",r.small),n)}),o)}});function Ou(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Pu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ou(n,!0).forEach(function(e){Au(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ou(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Au(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Eu=ln();Eu.href.default=void 0,Eu.to.default=void 0;var Mu=Pu({},Eu,{tag:{type:String,default:"div"}}),Iu=i.extend({name:"BNavbarBrand",functional:!0,props:Mu,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=Boolean(n.to||n.href),s=o?cn:n.tag;return t(s,pe(r,{staticClass:"navbar-brand",props:o?Fe(Eu,n):{}}),i)}}),Nu="BNavbarToggle",ju="bv::toggle::collapse",Du="bv::collapse::state",Lu="bv::collapse::sync::state",Bu=i.extend({name:Nu,mixins:[Ui,Ce],props:{label:{type:String,default:function(){return Ot(Nu,"label")}},target:{type:String,required:!0}},data:function(){return{toggleState:!1}},created:function(){this.listenOnRoot(Du,this.handleStateEvt),this.listenOnRoot(Lu,this.handleStateEvt)},methods:{onClick:function(t){this.$emit("click",t),t.defaultPrevented||this.$root.$emit(ju,this.target)},handleStateEvt:function(t,e){t===this.target&&(this.toggleState=e)}},render:function(t){return t("button",{class:["navbar-toggler"],attrs:{type:"button","aria-label":this.label,"aria-controls":this.target,"aria-expanded":this.toggleState?"true":"false"},on:{click:this.onClick}},[this.normalizeSlot("default")||t("span",{class:["navbar-toggler-icon"]})])}}),Ru=mt({components:{BNavbar:_u,BNavbarNav:Tu,BNavbarBrand:Iu,BNavbarToggle:Bu,BNavToggle:Bu},plugins:{NavPlugin:bu,CollapsePlugin:ko,DropdownPlugin:ps}}),Fu=function(t){return Array.apply(null,{length:t})},$u=Fu,Vu=3,zu=5,Hu=function(t,e){return $u(e).map(function(e,n){return{number:t+n,classes:null}})},Wu=function(t){var e=parseInt(t,10)||1;return e<1?zu:e},Uu=function(t,e){var n=parseInt(t,10)||1;return n>e?e:n<1?1:n},qu=function(t){if(t.keyCode===nr.SPACE)return t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),t.currentTarget.click(),!1},Gu={disabled:{type:Boolean,default:!1},value:{type:[Number,String],default:null,validator:function(t){var e=parseInt(t,10);return!(!Y(t)&&(isNaN(e)||e<1))||(u("pagination: v-model value must be a number greater than 0"),!1)}},limit:{type:[Number,String],default:zu,validator:function(t){var e=parseInt(t,10);return!(isNaN(e)||e<1)||(u('pagination: prop "limit" must be a number greater than 0'),!1)}},size:{type:String,default:"md"},align:{type:String,default:"left"},hideGotoEndButtons:{type:Boolean,default:!1},ariaLabel:{type:String,default:"Pagination"},labelFirstPage:{type:String,default:"Go to first page"},firstText:{type:String,default:"«"},labelPrevPage:{type:String,default:"Go to previous page"},prevText:{type:String,default:"‹"},labelNextPage:{type:String,default:"Go to next page"},nextText:{type:String,default:"›"},labelLastPage:{type:String,default:"Go to last page"},lastText:{type:String,default:"»"},labelPage:{type:[String,Function],default:"Go to page"},hideEllipsis:{type:Boolean,default:!1},ellipsisText:{type:String,default:"…"}},Yu={mixins:[Ce],model:{prop:"value",event:"input"},props:Gu,data:function(){var t=parseInt(this.value,10);return{currentPage:t>0?t:-1,localNumPages:1,localLimit:zu}},computed:{btnSize:function(){return this.size?"pagination-".concat(this.size):""},alignment:function(){var t=this.align;return"center"===t?"justify-content-center":"end"===t||"right"===t?"justify-content-end":"fill"===t?"text-center":""},computedCurrentPage:function(){return Uu(this.currentPage,this.localNumPages)},paginationParams:function(){var t=this.limit,e=this.localNumPages,n=this.computedCurrentPage,r=this.hideEllipsis,i=!1,o=!1,s=t,a=1;return e<=t?s=e:n<t-1&&t>Vu?r||(o=!0,s=t-1):e-n+2<t&&t>Vu?(r||(s=t-1,i=!0),a=e-s+1):(t>Vu&&!r&&(s=t-2,i=o=!0),a=n-Math.floor(s/2)),a<1?a=1:a>e-s&&(a=e-s+1),{showFirstDots:i,showLastDots:o,numLinks:s,startNum:a}},pageList:function(){var t=this.paginationParams,e=t.numLinks,n=t.startNum,r=this.computedCurrentPage,i=Hu(n,e);if(i.length>3){var o=r-n,s="bv-d-xs-down-none";if(0===o)for(var a=3;a<i.length;a++)i[a].classes=s;else if(o===i.length-1)for(var l=0;l<i.length-3;l++)i[l].classes=s;else{for(var c=0;c<o-1;c++)i[c].classes=s;for(var u=i.length-1;u>o+1;u--)i[u].classes=s}}return i}},watch:{value:function(t,e){t!==e&&(this.currentPage=Uu(t,this.localNumPages))},currentPage:function(t,e){t!==e&&this.$emit("input",t>0?t:null)},limit:function(t,e){t!==e&&(this.localLimit=Wu(t))}},created:function(){var t=this;this.localLimit=Wu(this.limit),this.$nextTick(function(){t.currentPage=t.currentPage>t.localNumPages?t.localNumPages:t.currentPage})},methods:{getButtons:function(){return qt("a.page-link",this.$el).filter(function(t){return Ht(t)})},setBtnFocus:function(t){t.focus()},focusCurrent:function(){var t=this;this.$nextTick(function(){var e=t.getButtons().find(function(e){return parseInt(re(e,"aria-posinset"),10)===t.computedCurrentPage});e&&e.focus?t.setBtnFocus(e):t.focusFirst()})},focusFirst:function(){var t=this;this.$nextTick(function(){var e=t.getButtons().find(function(t){return!Wt(t)});e&&e.focus&&e!==document.activeElement&&t.setBtnFocus(e)})},focusLast:function(){var t=this;this.$nextTick(function(){var e=t.getButtons().reverse().find(function(t){return!Wt(t)});e&&e.focus&&e!==document.activeElement&&t.setBtnFocus(e)})},focusPrev:function(){var t=this;this.$nextTick(function(){var e=t.getButtons(),n=e.indexOf(document.activeElement);n>0&&!Wt(e[n-1])&&e[n-1].focus&&t.setBtnFocus(e[n-1])})},focusNext:function(){var t=this;this.$nextTick(function(){var e=t.getButtons(),n=e.indexOf(document.activeElement),r=e.length-1;n<r&&!Wt(e[n+1])&&e[n+1].focus&&t.setBtnFocus(e[n+1])})}},render:function(t){var e=this,n=[],r=this.localNumPages,i=this.disabled,o=this.paginationParams,s=o.showFirstDots,a=o.showLastDots,l=this.computedCurrentPage,c="fill"===this.align,u=function(t){return t===l},d=this.currentPage<1,h=function(n,o,s,a,l,h){var f=i||u(l)||d||n<1||n>r,p=n<1?1:n>r?r:n,g={disabled:f,page:p,index:p-1},m=e.normalizeSlot(s,g)||Ve(a)||t(),v=t(f?"span":cn,{staticClass:"page-link",props:f?{}:e.linkProps(n),attrs:{role:"menuitem",tabindex:f?null:"-1","aria-label":o,"aria-controls":e.ariaControls||null,"aria-disabled":f?"true":null},on:f?{}:{click:function(t){e.onClick(n,t)},keydown:qu}},[m]);return t("li",{key:h,staticClass:"page-item",class:{disabled:f,"flex-fill":c},attrs:{role:"none presentation","aria-hidden":f?"true":null}},[v])},f=function(n){return t("li",{key:"ellipsis-".concat(n?"last":"first"),staticClass:"page-item",class:["disabled","bv-d-xs-down-none",c?"flex-fill":""],attrs:{role:"separator"}},[t("span",{staticClass:"page-link"},[e.normalizeSlot("ellipsis-text")||Ve(e.ellipsisText)||t()])])};n.push(this.hideGotoEndButtons?t():h(1,this.labelFirstPage,"first-text",this.firstText,1,"bookend-goto-first")),n.push(h(l-1,this.labelPrevPage,"prev-text",this.prevText,1,"bookend-goto-prev")),n.push(s?f(!1):t()),this.pageList.forEach(function(o,s){var a=u(o.number)&&!d,l=i?null:a||d&&0===s?"0":"-1",h={role:"menuitemradio","aria-disabled":i?"true":null,"aria-controls":e.ariaControls||null,"aria-label":X(e.labelPage)?e.labelPage(o.number):"".concat(e.labelPage," ").concat(o.number),"aria-checked":a?"true":"false","aria-posinset":o.number,"aria-setsize":r,tabindex:l},f=Ve(e.makePage(o.number)),p={page:o.number,index:o.number-1,content:f,active:a,disabled:i},g=t(i?"span":cn,{props:i?{}:e.linkProps(o.number),staticClass:"page-link",attrs:h,on:i?{}:{click:function(t){e.onClick(o.number,t)},keydown:qu}},[e.normalizeSlot("page",p)||f]);n.push(t("li",{key:"page-".concat(o.number),staticClass:"page-item",class:[{disabled:i,active:a,"flex-fill":c},o.classes],attrs:{role:"none presentation"}},[g]))}),n.push(a?f(!0):t()),n.push(h(l+1,this.labelNextPage,"next-text",this.nextText,r,"bookend-goto-next")),n.push(this.hideGotoEndButtons?t():h(r,this.labelLastPage,"last-text",this.lastText,r,"bookend-goto-last"));var p=t("ul",{ref:"ul",staticClass:"pagination",class:["b-pagination",this.btnSize,this.alignment],attrs:{role:"menubar","aria-disabled":i?"true":"false","aria-label":this.ariaLabel||null},on:{keydown:function(t){var n=t.keyCode,r=t.shiftKey;n===nr.LEFT?(t.preventDefault(),r?e.focusFirst():e.focusPrev()):n===nr.RIGHT&&(t.preventDefault(),r?e.focusLast():e.focusNext())}}},n);return this.isNav?t("nav",{attrs:{"aria-disabled":i?"true":null,"aria-hidden":i?"true":"false"}},[p]):p}},Ku=20,Xu=0,Ju=function(t){var e=parseInt(t,10)||Ku;return e<1?1:e},Qu=function(t){var e=parseInt(t,10)||Xu;return e<0?0:e},Zu={perPage:{type:[Number,String],default:Ku},totalRows:{type:[Number,String],default:Xu},ariaControls:{type:String,default:null}},td=i.extend({name:"BPagination",mixins:[Yu],props:Zu,computed:{numberOfPages:function(){var t=Math.ceil(Qu(this.totalRows)/Ju(this.perPage));return t<1?1:t}},watch:{numberOfPages:function(t){t!==this.localNumPages&&(this.localNumPages=t,this.currentPage=1)}},created:function(){var t=this;this.localNumPages=this.numberOfPages;var e=parseInt(this.value,10)||0;e>0?this.currentPage=e:this.$nextTick(function(){t.currentPage=0})},mounted:function(){this.localNumPages=this.numberOfPages},methods:{onClick:function(t,e){var n=this;t>this.numberOfPages?t=this.numberOfPages:t<1&&(t=1),this.currentPage=t,this.$emit("change",this.currentPage),this.$nextTick(function(){var t=e.target;Ht(t)&&n.$el.contains(t)&&t.focus?t.focus():n.focusCurrent()})},makePage:function(t){return t},linkProps:function(t){return{href:"#"}}}}),ed=mt({components:{BPagination:td}}),nd={numberOfPages:{type:[Number,String],default:1,validator:function(t){var e=parseInt(t,10);return!(isNaN(e)||e<1)||(u('b-pagination: prop "number-of-pages" must be a number greater than 0'),!1)}},baseUrl:{type:String,default:"/"},useRouter:{type:Boolean,default:!1},linkGen:{type:Function,default:null},pageGen:{type:Function,default:null},pages:{type:Array,default:null},noPageDetect:{type:Boolean,default:!1},activeClass:{type:String},exact:{type:Boolean,default:!1},exactActiveClass:{type:String},noPrefetch:{type:Boolean,default:!1}},rd=function(t){var e=parseInt(t,10)||1;return e<1?1:e},id=i.extend({name:"BPaginationNav",mixins:[Yu],props:nd,computed:{isNav:function(){return!0},computedValue:function(){var t=parseInt(this.value,10);return isNaN(t)||t<1?null:t}},watch:{numberOfPages:function(t,e){var n=this;this.$nextTick(function(){n.setNumPages()})},pages:function(t,e){var n=this;this.$nextTick(function(){n.setNumPages()})}},created:function(){this.setNumPages()},mounted:function(){var t=this;this.$router&&this.$watch("$route",function(e,n){t.$nextTick(function(){Bt(function(){t.guessCurrentPage()})})})},methods:{setNumPages:function(){var t=this;h(this.pages)&&this.pages.length>0?this.localNumPages=this.pages.length:this.localNumPages=rd(this.numberOfPages),this.$nextTick(function(){t.guessCurrentPage()})},onClick:function(t,e){var n=this;t!==this.currentPage&&(Bt(function(){n.currentPage=t,n.$emit("change",t)}),this.$nextTick(function(){try{var t=e.currentTarget||e.target;t.blur()}catch(n){}}))},getPageInfo:function(t){if(!h(this.pages)||0===this.pages.length||G(this.pages[t-1])){var e="".concat(this.baseUrl).concat(t);return{link:this.useRouter?{path:e}:e,text:Ve(t)}}var n=this.pages[t-1];if(P(n)){var r=n.link;return{link:P(r)?r:this.useRouter?{path:r}:r,text:Ve(n.text||t)}}return{link:Ve(n),text:Ve(t)}},makePage:function(t){var e=this.getPageInfo(t);return this.pageGen&&X(this.pageGen)?this.pageGen(t,e):e.text},makeLink:function(t){var e=this.getPageInfo(t);return this.linkGen&&X(this.linkGen)?this.linkGen(t,e):e.link},linkProps:function(t){var e=this.makeLink(t),n={target:this.target||null,rel:this.rel||null,disabled:this.disabled,exact:this.exact,activeClass:this.activeClass,exactActiveClass:this.exactActiveClass,append:this.append,replace:this.replace,noPrefetch:this.noPrefetch};return this.useRouter||P(e)?n.to=e:n.href=e,n},resolveLink:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{t=document.createElement("a"),t.href=Ze({to:e},"a","/","/"),document.body.appendChild(t);var n=t,r=n.pathname,i=n.hash,o=n.search;return document.body.removeChild(t),{path:r,hash:i,query:Ke(o)}}catch(s){try{t&&t.parentNode&&t.parentNode.removeChild(t)}catch(s){}return{}}},resolveRoute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{var e=this.$router.resolve(t,this.$route).route;return{path:e.path,hash:e.hash,query:e.query}}catch(n){return{}}},guessCurrentPage:function(){var t=this.computedValue,e=this.$router,n=this.$route;if(!this.noPageDetect&&!t&&(o["j"]||!o["j"]&&e))for(var r=e&&n?{path:n.path,hash:n.hash,query:n.query}:{},i=o["j"]?window.location||document.location:null,s=i?{path:i.pathname,hash:i.hash,query:Ke(i.search)}:{},a=1;!t&&a<=this.localNumPages;a++){var l=this.makeLink(a);t=e&&(P(l)||this.useRouter)?eo(this.resolveRoute(l),r)?a:null:o["j"]?eo(this.resolveLink(l),s)?a:null:-1}this.currentPage=t>0?t:0}}}),od=mt({components:{BPaginationNav:id}});function sd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ad(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sd(n,!0).forEach(function(e){ld(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sd(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ld(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ud(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)}}function dd(t,e,n){return e&&ud(t.prototype,e),n&&ud(t,n),t}var hd="tooltip",fd="bs-tooltip",pd=new RegExp("\\b".concat(fd,"\\S+"),"g"),gd=150,md="bv::modal::hidden",vd=".modal-content",bd="dropdown",yd=".dropdown-menu.show",wd={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left",TOPLEFT:"top",TOPRIGHT:"top",RIGHTTOP:"right",RIGHTBOTTOM:"right",BOTTOMLEFT:"bottom",BOTTOMRIGHT:"bottom",LEFTTOP:"left",LEFTBOTTOM:"left"},kd={AUTO:0,TOPLEFT:-1,TOP:0,TOPRIGHT:1,RIGHTTOP:-1,RIGHT:0,RIGHTBOTTOM:1,BOTTOMLEFT:-1,BOTTOM:0,BOTTOMRIGHT:1,LEFTTOP:-1,LEFT:0,LEFTBOTTOM:1},_d={SHOW:"show",OUT:"out"},xd={FADE:"fade",SHOW:"show"},Cd={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},Sd={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,placement:"top",offset:0,arrowPadding:6,container:!1,fallbackPlacement:"flip",callbacks:{},boundary:"scrollParent",boundaryPadding:5,variant:null,customClass:null},Td={WebkitTransition:["webkitTransitionEnd"],MozTransition:["transitionend"],OTransition:["otransitionend","oTransitionEnd"],transition:["transitionend"]},Od={passive:!0,capture:!1},Pd=1,Ad=function(t){return"__BV_".concat(t,"_").concat(Pd++,"__")},Ed=function(){function t(e,n,r){cd(this,t),this.$isEnabled=!0,this.$fadeTimeout=null,this.$hoverTimeout=null,this.$visibleInterval=null,this.$hoverState="",this.$activeTrigger={},this.$popper=null,this.$element=e,this.$tip=null,this.$id=Ad(this.constructor.NAME),this.$parent=r||null,this.$root=r&&r.$root?r.$root:null,this.$routeWatcher=null,this.$forceHide=this.forceHide.bind(this),this.$doHide=this.doHide.bind(this),this.$doShow=this.doShow.bind(this),this.$doDisable=this.doDisable.bind(this),this.$doEnable=this.doEnable.bind(this),this._noop=Si.bind(this),this.updateConfig(n),r&&r.$once("hook:beforeDestroy",this.destroy.bind(this))}return dd(t,[{key:"updateConfig",value:function(t){var e=ad({},this.constructor.Default,{},t);t.delay&&Z(t.delay)&&(e.delay={show:t.delay,hide:t.delay}),t.title&&Z(t.title)&&(e.title=t.title.toString()),t.content&&Z(t.content)&&(e.content=t.content.toString()),this.fixTitle(),this.$config=e,this.unListen(),this.listen()}},{key:"destroy",value:function(){this.unListen(),this.setWhileOpenListeners(!1),clearTimeout(this.$hoverTimeout),this.$hoverTimeout=null,clearTimeout(this.$fadeTimeout),this.$fadeTimeout=null,this.$popper&&this.$popper.destroy(),this.$popper=null,this.$tip&&this.$tip.parentElement&&this.$tip.parentElement.removeChild(this.$tip),this.$tip=null,this.$id=null,this.$isEnabled=null,this.$parent=null,this.$root=null,this.$element=null,this.$config=null,this.$hoverState=null,this.$activeTrigger=null,this.$forceHide=null,this.$doHide=null,this.$doShow=null,this.$doDisable=null,this.$doEnable=null}},{key:"enable",value:function(){var t=new Ao("enabled",{cancelable:!1,target:this.$element,relatedTarget:null});this.$isEnabled=!0,this.emitEvent(t)}},{key:"disable",value:function(){var t=new Ao("disabled",{cancelable:!1,target:this.$element,relatedTarget:null});this.$isEnabled=!1,this.emitEvent(t)}},{key:"toggle",value:function(t){this.$isEnabled&&(this.dropdownOpen()||(t?(this.$activeTrigger.click=!this.$activeTrigger.click,this.isWithActiveTrigger()?this.enter(null):this.leave(null)):te(this.getTipElement(),xd.SHOW)?this.leave(null):this.enter(null)))}},{key:"show",value:function(){var t=this;if(document.body.contains(this.$element)&&Ht(this.$element)&&!this.dropdownOpen()){var e=this.getTipElement();if(this.fixTitle(),this.setContent(e),this.isWithContent(e)){ee(e,"id",this.$id),this.addAriaDescribedby(),this.$config.animation?Qt(e,xd.FADE):Zt(e,xd.FADE);var n=this.getPlacement(),r=this.constructor.getAttachment(n);this.addAttachmentClass(r);var i=new Ao("show",{cancelable:!0,target:this.$element,relatedTarget:e});if(this.emitEvent(i),i.defaultPrevented)this.$tip=null;else{var o=this.getContainer();document.body.contains(e)||o.appendChild(e),this.removePopper(),this.$popper=new Co["a"](this.$element,e,this.getPopperConfig(n,e));var s=function(){t.$config.animation&&t.fixTransition(e);var n=t.$hoverState;t.$hoverState=null,n===_d.OUT&&t.leave(null);var r=new Ao("shown",{cancelable:!1,target:t.$element,relatedTarget:e});t.emitEvent(r)};this.setWhileOpenListeners(!0),Qt(e,xd.SHOW),this.transitionOnce(e,s)}}else this.$tip=null}}},{key:"visibleCheck",value:function(t){var e=this;clearInterval(this.$visibleInterval),this.$visibleInterval=null,t&&(this.$visibleInterval=setInterval(function(){var t=e.$tip;t&&!Ht(e.$element)&&te(t,xd.SHOW)&&e.forceHide()},100))}},{key:"setWhileOpenListeners",value:function(t){this.setModalListener(t),this.setDropdownListener(t),this.visibleCheck(t),this.setOnTouchStartListener(t),t&&/(focus|blur)/.test(this.$config.trigger)?$t(this.$tip,"focusout",this,Od):Vt(this.$tip,"focusout",this,Od)}},{key:"forceHide",value:function(){this.$tip&&te(this.$tip,xd.SHOW)&&(this.setWhileOpenListeners(!1),clearTimeout(this.$hoverTimeout),this.$hoverTimeout=null,this.$hoverState="",this.$activeTrigger={},this.hide(null,!0))}},{key:"hide",value:function(t,e){var n=this,r=this.$tip;if(r){var i=new Ao("hide",{cancelable:!e,target:this.$element,relatedTarget:r});if(this.emitEvent(i),!i.defaultPrevented){var o=function(){n.$hoverState!==_d.SHOW&&r.parentNode&&(r.parentNode.removeChild(r),n.removeAriaDescribedby(),n.removePopper(),n.$tip=null),t&&t();var e=new Ao("hidden",{cancelable:!1,target:n.$element,relatedTarget:null});n.emitEvent(e)};this.setWhileOpenListeners(!1),e&&Zt(r,xd.FADE),Zt(r,xd.SHOW),this.$activeTrigger={},this.transitionOnce(r,o),this.$hoverState=""}}}},{key:"emitEvent",value:function(t){var e=t.type,n=this.$root;n&&n.$emit&&n.$emit("bv::".concat(this.constructor.NAME,"::").concat(e),t);var r=this.$config.callbacks||{};X(r[e])&&r[e](t)}},{key:"getContainer",value:function(){var t=this.$config.container,e=document.body;return!1===t?Kt(vd,this.$element)||e:Gt(t,e)||e}},{key:"addAriaDescribedby",value:function(){var t=re(this.$element,"aria-describedby")||"";t=t.split(/\s+/).concat(this.$id).join(" ").trim(),ee(this.$element,"aria-describedby",t)}},{key:"removeAriaDescribedby",value:function(){var t=this,e=re(this.$element,"aria-describedby")||"";e=e.split(/\s+/).filter(function(e){return e!==t.$id}).join(" ").trim(),e?ee(this.$element,"aria-describedby",e):ne(this.$element,"aria-describedby")}},{key:"removePopper",value:function(){this.$popper&&this.$popper.destroy(),this.$popper=null}},{key:"transitionOnce",value:function(t,e){var n=this,r=this.getTransitionEndEvents(),i=!1;clearTimeout(this.$fadeTimeout),this.$fadeTimeout=null;var o=function o(){i||(i=!0,clearTimeout(n.$fadeTimeout),n.$fadeTimeout=null,r.forEach(function(e){Vt(t,e,o,Od)}),e())};te(t,xd.FADE)?(r.forEach(function(e){$t(t,e,o,Od)}),this.$fadeTimeout=setTimeout(o,gd)):o()}},{key:"getTransitionEndEvents",value:function(){for(var t in Td)if(!G(this.$element.style[t]))return Td[t];return[]}},{key:"update",value:function(){Y(this.$popper)||this.$popper.scheduleUpdate()}},{key:"isWithContent",value:function(t){return t=t||this.$tip,!!t&&Boolean((Gt(Cd.TOOLTIP_INNER,t)||{}).innerHTML)}},{key:"addAttachmentClass",value:function(t){Qt(this.getTipElement(),"".concat(fd,"-").concat(t))}},{key:"getTipElement",value:function(){return this.$tip||(this.$tip=this.compileTemplate(this.$config.template)||this.compileTemplate(this.constructor.Default.template)),this.$tip.tabIndex=-1,this.$config.variant&&Qt(this.$tip,"b-".concat(this.constructor.NAME,"-").concat(this.$config.variant)),this.$config.customClass&&Qt(this.$tip,String(this.$config.customClass)),this.$tip}},{key:"compileTemplate",value:function(t){if(!t||!Q(t))return null;var e=document.createElement("div");e.innerHTML=t.trim();var n=e.firstElementChild?e.removeChild(e.firstElementChild):null;return e=null,n}},{key:"setContent",value:function(t){this.setElementContent(Gt(Cd.TOOLTIP_INNER,t),this.getTitle()),Zt(t,xd.FADE),Zt(t,xd.SHOW)}},{key:"setElementContent",value:function(t,e){if(t){var n=this.$config.html;P(e)&&e.nodeType?n?e.parentElement!==t&&(t.innerHTML="",t.appendChild(e)):t.innerText=e.innerText:t[n?"innerHTML":"innerText"]=e}}},{key:"getTitle",value:function(){var t=this.$config.title||"";return X(t)&&(t=t(this.$element)),P(t)&&t.nodeType&&!t.innerHTML.trim()&&(t=""),Q(t)&&(t=t.trim()),t||(t=re(this.$element,"title")||re(this.$element,"data-original-title")||"",t=t.trim()),t}},{key:"listen",value:function(){var t=this,e=this.$element;if(e){var n=this.$config.trigger.trim().split(/\s+/);this.setRootListener(!0),n.forEach(function(n){"click"===n?$t(e,"click",t,Od):"focus"===n?($t(e,"focusin",t,Od),$t(e,"focusout",t,Od)):"blur"===n?$t(e,"focusout",t,Od):"hover"===n&&($t(e,"mouseenter",t,Od),$t(e,"mouseleave",t,Od))},this)}}},{key:"unListen",value:function(){var t=this,e=this.$element;if(e){var n=["click","focusin","focusout","mouseenter","mouseleave"];n.forEach(function(n){Vt(e,n,t,Od)},this),this.setRootListener(!1)}}},{key:"handleEvent",value:function(t){if(!Wt(this.$element)&&this.$isEnabled&&!this.dropdownOpen()){var e=t.type,n=t.target,r=t.relatedTarget,i=this.$element,o=this.$tip;if("click"===e)this.toggle(t);else if("focusin"===e||"mouseenter"===e)this.enter(t);else if("focusout"===e){if(o&&i&&i.contains(n)&&o.contains(r))return;if(o&&i&&o.contains(n)&&i.contains(r))return;if(o&&o.contains(n)&&o.contains(r))return;if(i&&i.contains(n)&&i.contains(r))return;this.leave(t)}else"mouseleave"===e&&this.leave(t)}}},{key:"setModalListener",value:function(t){var e=this.$element;if(e&&this.$root){var n=Kt(vd,e);n&&this.$root[t?"$on":"$off"](md,this.$forceHide)}}},{key:"setDropdownListener",value:function(t){var e=this.$element;e&&this.$root&&te(e,bd)&&e&&e.__vue__&&e.__vue__[t?"$on":"$off"]("shown",this.$forceHide)}},{key:"setRootListener",value:function(t){var e=this.$root;if(e){var n=t?"$on":"$off";e[n]("bv::hide::".concat(this.constructor.NAME),this.$doHide),e[n]("bv::show::".concat(this.constructor.NAME),this.$doShow),e[n]("bv::disable::".concat(this.constructor.NAME),this.$doDisable),e[n]("bv::enable::".concat(this.constructor.NAME),this.$doEnable)}}},{key:"dropdownOpen",value:function(){return te(this.$element,bd)&&Gt(yd,this.$element)}},{key:"doHide",value:function(t){t?this.$element&&this.$element.id&&this.$element.id===t&&this.hide():this.forceHide()}},{key:"doShow",value:function(t){t?t&&this.$element&&this.$element.id&&this.$element.id===t&&this.show():this.show()}},{key:"doDisable",value:function(t){t?this.$element&&this.$element.id&&this.$element.id===t&&this.disable():this.disable()}},{key:"doEnable",value:function(t){t?this.$element&&this.$element.id&&this.$element.id===t&&this.enable():this.enable()}},{key:"setOnTouchStartListener",value:function(t){var e=this;"ontouchstart"in document.documentElement&&d(document.body.children).forEach(function(n){t?$t(n,"mouseover",e._noop):Vt(n,"mouseover",e._noop)})}},{key:"fixTitle",value:function(){var t=this.$element;!re(t,"title")&&Q(re(t,"data-original-title"))||(ee(t,"data-original-title",re(t,"title")||""),ee(t,"title",""))}},{key:"enter",value:function(t){var e=this;t&&(this.$activeTrigger["focusin"===t.type?"focus":"hover"]=!0),te(this.getTipElement(),xd.SHOW)||this.$hoverState===_d.SHOW?this.$hoverState=_d.SHOW:(clearTimeout(this.$hoverTimeout),this.$hoverState=_d.SHOW,this.$config.delay&&this.$config.delay.show?this.$hoverTimeout=setTimeout(function(){e.$hoverState===_d.SHOW&&e.show()},this.$config.delay.show):this.show())}},{key:"leave",value:function(t){var e=this;t&&(this.$activeTrigger["focusout"===t.type?"focus":"hover"]=!1,"focusout"===t.type&&/blur/.test(this.$config.trigger)&&(this.$activeTrigger.click=!1,this.$activeTrigger.hover=!1)),this.isWithActiveTrigger()||(clearTimeout(this.$hoverTimeout),this.$hoverState=_d.OUT,this.$config.delay&&this.$config.delay.hide?this.$hoverTimeout=setTimeout(function(){e.$hoverState===_d.OUT&&e.hide()},this.$config.delay.hide):this.hide())}},{key:"getPopperConfig",value:function(t,e){var n=this;return{placement:this.constructor.getAttachment(t),modifiers:{offset:{offset:this.getOffset(t,e)},flip:{behavior:this.$config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{padding:this.$config.boundaryPadding,boundariesElement:this.$config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&n.handlePopperPlacementChange(t)},onUpdate:function(t){n.handlePopperPlacementChange(t)}}}},{key:"getOffset",value:function(t,e){if(!this.$config.offset){var n=Gt(Cd.ARROW,e),r=parseFloat(se(n).width)+parseFloat(this.$config.arrowPadding);switch(kd[t.toUpperCase()]){case 1:return"+50%p - ".concat(r,"px");case-1:return"-50%p + ".concat(r,"px");default:return 0}}return this.$config.offset}},{key:"getPlacement",value:function(){var t=this.$config.placement;return X(t)?t.call(this,this.$tip,this.$element):t}},{key:"isWithActiveTrigger",value:function(){for(var t in this.$activeTrigger)if(this.$activeTrigger[t])return!0;return!1}},{key:"cleanTipClass",value:function(){var t=this.getTipElement(),e=t.className.match(pd);!Y(e)&&e.length>0&&e.forEach(function(e){Zt(t,e)})}},{key:"handlePopperPlacementChange",value:function(t){this.cleanTipClass(),this.addAttachmentClass(this.constructor.getAttachment(t.placement))}},{key:"fixTransition",value:function(t){var e=this.$config.animation||!1;Y(re(t,"x-placement"))&&(Zt(t,xd.FADE),this.$config.animation=!1,this.hide(),this.show(),this.$config.animation=e)}}],[{key:"getAttachment",value:function(t){return wd[t.toUpperCase()]}},{key:"Default",get:function(){return Sd}},{key:"NAME",get:function(){return hd}}]),t}(),Md=Ed;function Id(t){return Id="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},Id(t)}function Nd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jd(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)}}function Dd(t,e,n){return e&&jd(t.prototype,e),n&&jd(t,n),t}function Ld(t,e){return!e||"object"!==Id(e)&&"function"!==typeof e?Bd(t):e}function Bd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rd(t){return Rd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Rd(t)}function Fd(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$d(t,e)}function $d(t,e){return $d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},$d(t,e)}function Vd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function zd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vd(n,!0).forEach(function(e){Hd(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vd(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Hd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Wd="popover",Ud="bs-popover",qd=new RegExp("\\b".concat(Ud,"\\S+"),"g"),Gd=zd({},Md.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Yd={FADE:"fade",SHOW:"show"},Kd={TITLE:".popover-header",CONTENT:".popover-body"},Xd=function(t){function e(){return Nd(this,e),Ld(this,Rd(e).apply(this,arguments))}return Fd(e,t),Dd(e,[{key:"isWithContent",value:function(t){if(t=t||this.$tip,!t)return!1;var e=Boolean((Gt(Kd.TITLE,t)||{}).innerHTML),n=Boolean((Gt(Kd.CONTENT,t)||{}).innerHTML);return e||n}},{key:"addAttachmentClass",value:function(t){Qt(this.getTipElement(),"".concat(Ud,"-").concat(t))}},{key:"setContent",value:function(t){this.setElementContent(Gt(Kd.TITLE,t),this.getTitle()),this.setElementContent(Gt(Kd.CONTENT,t),this.getContent()),Zt(t,Yd.FADE),Zt(t,Yd.SHOW)}},{key:"cleanTipClass",value:function(){var t=this.getTipElement(),e=t.className.match(qd);!Y(e)&&e.length>0&&e.forEach(function(e){Zt(t,e)})}},{key:"getTitle",value:function(){var t=this.$config.title||"";return X(t)&&(t=t(this.$element)),P(t)&&t.nodeType&&!t.innerHTML.trim()&&(t=""),Q(t)&&(t=t.trim()),t||(t=re(this.$element,"title")||re(this.$element,"data-original-title")||"",t=t.trim()),t}},{key:"getContent",value:function(){var t=this.$config.content||"";return X(t)&&(t=t(this.$element)),P(t)&&t.nodeType&&!t.innerHTML.trim()&&(t=""),Q(t)&&(t=t.trim()),t}}],[{key:"Default",get:function(){return Gd}},{key:"NAME",get:function(){return Wd}}]),e}(Md),Jd=Xd;function Qd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Zd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qd(n,!0).forEach(function(e){th(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qd(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function th(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var eh={top:"top",topleft:"topleft",topright:"topright",right:"right",righttop:"righttop",rightbottom:"rightbottom",bottom:"bottom",bottomleft:"bottomleft",bottomright:"bottomright",left:"left",lefttop:"lefttop",leftbottom:"leftbottom",auto:"auto"},nh={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["class","style"]},rh={props:{target:{type:[String,Object,xo,Function]},offset:{type:[Number,String],default:0},noFade:{type:Boolean,default:!1},container:{type:String,default:null},show:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{localShow:!1}},computed:{baseConfig:function(){var t=this.container,e=P(this.delay)?this.delay:parseInt(this.delay,10)||0;return{title:(this.title||"").trim()||"",content:(this.content||"").trim()||"",placement:eh[this.placement]||"auto",fallbackPlacement:this.fallbackPlacement||"flip",container:!!t&&(/^#/.test(t)?t:"#".concat(t)),boundary:this.boundary,boundaryPadding:this.boundaryPadding,delay:e||0,offset:this.offset||0,animation:!this.noFade,variant:this.variant,customClass:this.customClass,trigger:h(this.triggers)?this.triggers.join(" "):this.triggers,callbacks:{show:this.onShow,shown:this.onShown,hide:this.onHide,hidden:this.onHidden,enabled:this.onEnabled,disabled:this.onDisabled}}}},watch:{show:function(t,e){t!==e&&(t?this.onOpen():this.onClose())},disabled:function(t,e){t!==e&&(t?this.onDisable():this.onEnable())},localShow:function(t,e){t!==this.show&&this.$emit("update:show",t)}},created:function(){this._toolpop=null,this._obs_title=null,this._obs_content=null},mounted:function(){var t=this;this.$nextTick(function(){t.createToolpop()&&(t.disabled&&t.onDisable(),t.$on("open",t.onOpen),t.$on("close",t.onClose),t.$on("disable",t.onDisable),t.$on("enable",t.onEnable),t.setObservers(!0),t.show&&t.onOpen())})},updated:function(){this._toolpop&&this._toolpop.updateConfig(this.getConfig())},activated:function(){this.setObservers(!0)},deactivated:function(){this._toolpop&&(this.setObservers(!1),this._toolpop.hide())},beforeDestroy:function(){this.$off("open",this.onOpen),this.$off("close",this.onClose),this.$off("disable",this.onDisable),this.$off("enable",this.onEnable),this.setObservers(!1),this.bringItBack(),this._toolpop&&(this._toolpop.destroy(),this._toolpop=null)},methods:{getConfig:function(){var t=Zd({},this.baseConfig);return this.$refs.title&&this.$refs.title.innerHTML.trim()&&(t.title=this.$refs.title,t.html=!0),this.$refs.content&&this.$refs.content.innerHTML.trim()&&(t.content=this.$refs.content,t.html=!0),t},onOpen:function(){this._toolpop&&!this.localShow&&(this.localShow=!0,this._toolpop.show())},onClose:function(t){this._toolpop&&this.localShow?this._toolpop.hide(t):X(t)&&t()},onDisable:function(){this._toolpop&&this._toolpop.disable()},onEnable:function(){this._toolpop&&this._toolpop.enable()},updatePosition:function(){this._toolpop&&this._toolpop.update()},getTarget:function(){var t=this.target;return X(t)&&(t=t()),Q(t)?Jt(t):P(t)&&zt(t.$el)?t.$el:P(t)&&zt(t)?t:null},onShow:function(t){this.$emit("show",t),this.localShow=!(t&&t.defaultPrevented)},onShown:function(t){this.setObservers(!0),this.$emit("shown",t),this.localShow=!0},onHide:function(t){this.$emit("hide",t),this.localShow=!(!t||!t.defaultPrevented)},onHidden:function(t){this.setObservers(!1),this.bringItBack(),this.$emit("hidden",t),this.localShow=!1},onEnabled:function(t){t&&"enabled"===t.type&&(this.$emit("update:disabled",!1),this.$emit("disabled"))},onDisabled:function(t){t&&"disabled"===t.type&&(this.$emit("update:disabled",!0),this.$emit("enabled"))},bringItBack:function(){this.$el&&this.$refs.title&&this.$el.appendChild(this.$refs.title),this.$el&&this.$refs.content&&this.$el.appendChild(this.$refs.content)},setObservers:function(t){t?(this.$refs.title&&(this._obs_title=Ei(this.$refs.title,this.updatePosition.bind(this),nh)),this.$refs.content&&(this._obs_content=Ei(this.$refs.content,this.updatePosition.bind(this),nh))):(this._obs_title&&(this._obs_title.disconnect(),this._obs_title=null),this._obs_content&&(this._obs_content.disconnect(),this._obs_content=null))}}},ih="BPopover",oh={title:{type:String,default:""},content:{type:String,default:""},triggers:{type:[String,Array],default:"click"},placement:{type:String,default:"right"},fallbackPlacement:{type:[String,Array],default:"flip",validator:function(t){return h(t)||f(["flip","clockwise","counterclockwise"],t)}},variant:{type:String,default:function(){return Ot(ih,"variant")}},customClass:{type:String,default:function(){return Ot(ih,"customClass")}},delay:{type:[Number,Object,String],default:function(){return Ot(ih,"delay")}},boundary:{type:[String,xo],default:function(){return Ot(ih,"boundary")}},boundaryPadding:{type:Number,default:function(){return Ot(ih,"boundaryPadding")}}},sh=i.extend({name:ih,mixins:[rh,Ce],props:oh,methods:{createToolpop:function(){var t=this.getTarget();return t?this._toolpop=new Jd(t,this.getConfig(),this):(this._toolpop=null,u("b-popover: 'target' element not found!")),this._toolpop}},render:function(t){return t("div",{class:["d-none"],style:{display:"none"},attrs:{"aria-hidden":!0}},[t("div",{ref:"title"},this.normalizeSlot("title")),t("div",{ref:"content"},this.normalizeSlot("default"))])}});function ah(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function lh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ah(n,!0).forEach(function(e){ch(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ah(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ch(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uh="__BV_PopOver__",dh={focus:!0,hover:!0,click:!0,blur:!0},hh=/^html$/,fh=/^nofade$/i,ph=/^(auto|top(left|right)?|bottom(left|right)?|left(top|bottom)?|right(top|bottom)?)$/,gh=/^(window|viewport|scrollParent)$/,mh=/^d\d+$/,vh=/^o-?\d+$/,bh=/^v-.+$/,yh=function(t){var e="BPopover",n={delay:Ot(e,"delay"),boundary:String(Ot(e,"boundary")),boundaryPadding:parseInt(Ot(e,"boundaryPadding"),10)||0,variant:Ot(e,"variant"),customClass:Ot(e,"customClass")};Q(t.value)?n.content=t.value:X(t.value)?n.content=t.value:P(t.value)&&(n=lh({},n,{},t.value)),t.arg&&(n.container="#".concat(t.arg)),k(t.modifiers).forEach(function(t){if(hh.test(t))n.html=!0;else if(fh.test(t))n.animation=!1;else if(ph.test(t))n.placement=t;else if(gh.test(t))n.boundary=t;else if(mh.test(t)){var e=parseInt(t.slice(1),10)||0;e&&(n.delay=e)}else if(vh.test(t)){var r=parseInt(t.slice(1),10)||0;r&&(n.offset=r)}else bh.test(t)&&(n.variant=t.slice(2)||null)});var r={},i=Q(n.trigger)?n.trigger.trim().split(/\s+/):[];return i.forEach(function(t){dh[t]&&(r[t]=!0)}),k(dh).forEach(function(e){t.modifiers[e]&&(r[e]=!0)}),n.trigger=k(r).join(" "),"blur"===n.trigger&&(n.trigger="focus"),n.trigger||delete n.trigger,n},wh=function(t,e,n){if(o["j"])if(Co["a"]){var r=yh(e);t[uh]?t[uh].updateConfig(r):t[uh]=new Jd(t,r,n.context)}else u("v-b-popover: Popper.js is required for PopOvers to work")},kh=function(t){t[uh]&&(t[uh].destroy(),t[uh]=null,delete t[uh])},_h={bind:function(t,e,n){wh(t,e,n)},inserted:function(t,e,n){wh(t,e,n)},update:function(t,e,n){e.value!==e.oldValue&&wh(t,e,n)},componentUpdated:function(t,e,n){e.value!==e.oldValue&&wh(t,e,n)},unbind:function(t){kh(t)}},xh=mt({components:{BPopover:sh},directives:{VBPopover:_h}}),Ch="BProgressBar",Sh=i.extend({name:Ch,mixins:[Ce],inject:{bvProgress:{default:function(){return{}}}},props:{value:{type:Number,default:0},label:{type:String,default:null},labelHtml:{type:String},max:{type:Number,default:null},precision:{type:Number,default:null},variant:{type:String,default:function(){return Ot(Ch,"variant")}},striped:{type:Boolean,default:null},animated:{type:Boolean,default:null},showProgress:{type:Boolean,default:null},showValue:{type:Boolean,default:null}},computed:{progressBarClasses:function(){return[this.computedVariant?"bg-".concat(this.computedVariant):"",this.computedStriped||this.computedAnimated?"progress-bar-striped":"",this.computedAnimated?"progress-bar-animated":""]},progressBarStyles:function(){return{width:this.value/this.computedMax*100+"%"}},computedProgress:function(){var t=Math.pow(10,this.computedPrecision);return Math.round(100*t*this.value/this.computedMax)/t},computedMax:function(){return Z(this.max)?this.max:this.bvProgress.max||100},computedVariant:function(){return this.variant||this.bvProgress.variant},computedPrecision:function(){return Z(this.precision)?this.precision:this.bvProgress.precision||0},computedStriped:function(){return J(this.striped)?this.striped:this.bvProgress.striped||!1},computedAnimated:function(){return J(this.animated)?this.animated:this.bvProgress.animated||!1},computedShowProgress:function(){return J(this.showProgress)?this.showProgress:this.bvProgress.showProgress||!1},computedShowValue:function(){return J(this.showValue)?this.showValue:this.bvProgress.showValue||!1}},render:function(t){var e=t();return this.hasNormalizedSlot("default")?e=this.normalizeSlot("default"):this.label||this.labelHtml?e=t("span",{domProps:wn(this.labelHtml,this.label)}):this.computedShowProgress?e=this.computedProgress.toFixed(this.computedPrecision):this.computedShowValue&&(e=this.value.toFixed(this.computedPrecision)),t("div",{staticClass:"progress-bar",class:this.progressBarClasses,style:this.progressBarStyles,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuemax":this.computedMax.toString(),"aria-valuenow":this.value.toFixed(this.computedPrecision)}},[e])}}),Th="BProgress",Oh=i.extend({name:Th,mixins:[Ce],provide:function(){return{bvProgress:this}},props:{variant:{type:String,default:function(){return Ot(Th,"variant")}},striped:{type:Boolean,default:!1},animated:{type:Boolean,default:!1},height:{type:String,default:null},precision:{type:Number,default:0},showProgress:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1},max:{type:Number,default:100},value:{type:Number,default:0}},computed:{progressHeight:function(){return{height:this.height||null}}},render:function(t){var e=this.normalizeSlot("default");return e||(e=t(Sh,{props:{value:this.value,max:this.max,precision:this.precision,variant:this.variant,animated:this.animated,striped:this.striped,showProgress:this.showProgress,showValue:this.showValue}})),t("div",{class:["progress"],style:this.progressHeight},[e])}}),Ph=mt({components:{BProgress:Oh,BProgressBar:Sh}});function Ah(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Eh="BSpinner",Mh=i.extend({name:Eh,functional:!0,props:{type:{type:String,default:"border"},label:{type:String,default:null},variant:{type:String,default:function(){return Ot(Eh,"variant")}},small:{type:Boolean,default:!1},role:{type:String,default:"status"},tag:{type:String,default:"span"}},render:function(t,e){var n,r=e.props,i=e.data,o=e.slots,s=e.scopedSlots,a=o(),l=s||{},c=xe("label",{},l,a)||r.label;return c&&(c=t("span",{staticClass:"sr-only"},c)),t(r.tag,pe(i,{attrs:{role:c?r.role||"status":null,"aria-hidden":c?null:"true"},class:(n={},Ah(n,"spinner-".concat(r.type),Boolean(r.type)),Ah(n,"spinner-".concat(r.type,"-sm"),r.small),Ah(n,"text-".concat(r.variant),Boolean(r.variant)),n)}),[c||t()])}}),Ih=mt({components:{BSpinner:Mh}}),Nh=function(t){return t.replace(/_/g," ").replace(/([a-z])([A-Z])/g,function(t,e,n){return e+" "+n}).replace(/(\s|^)(\w)/g,function(t,e,n){return e+n.toUpperCase()})},jh=Nh,Dh={_rowVariant:!0,_cellVariants:!0,_showDetails:!0},Lh=["a","a *","button","button *","input:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])","textarea:not(.disabled):not([disabled])",'[role="link"]','[role="link"] *','[role="button"]','[role="button"] *',"[tabindex]:not(.disabled):not([disabled])"].join(",");function Bh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Rh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bh(n,!0).forEach(function(e){Fh(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bh(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Fh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $h=function(t,e){var n=null;return Q(e)?n={key:t,label:e}:X(e)?n={key:t,formatter:e}:P(e)?(n=Rh({},e),n.key=n.key||t):!1!==e&&(n={key:t}),n},Vh=function(t,e){var n=[];if(h(t)?t.filter(function(t){return t}).forEach(function(t){if(Q(t))n.push({key:t,label:jh(t)});else if(P(t)&&t.key&&Q(t.key))n.push(Rh({},t));else if(P(t)&&1===k(t).length){var e=k(t)[0],r=$h(e,t[e]);r&&n.push(r)}}):t&&P(t)&&k(t).length>0&&k(t).forEach(function(e){var r=$h(e,t[e]);r&&n.push(r)}),0===n.length&&h(e)&&e.length>0){var r=e[0];k(r).forEach(function(t){Dh[t]||n.push({key:t,label:jh(t)})})}var i={};return n.filter(function(t){return!i[t.key]&&(i[t.key]=!0,t.label=Q(t.label)?t.label:jh(t.key),!0)})},zh=Vh,Hh={props:{items:{type:Array,default:function(){return[]}},fields:{type:[Array,Object],default:null},primaryKey:{type:String,default:null},value:{type:Array,default:function(){return[]}}},data:function(){return{localItems:h(this.items)?this.items.slice():[]}},computed:{computedFields:function(){return zh(this.fields,this.localItems)},computedFieldsObj:function(){return this.computedFields.reduce(function(t,e){return t[e.key]=e,t},{})},computedItems:function(){return(this.paginatedItems||this.sortedItems||this.filteredItems||this.localItems||[]).slice()},context:function(){return{filter:this.localFilter,sortBy:this.localSortBy,sortDesc:this.localSortDesc,perPage:parseInt(this.perPage,10)||0,currentPage:parseInt(this.currentPage,10)||1,apiUrl:this.apiUrl}}},watch:{items:function(t){h(t)?this.localItems=t.slice():(G(t)||Y(t))&&(this.localItems=[])},computedItems:function(t){this.$emit("input",t)},context:function(t,e){eo(t,e)||this.$emit("context-changed",t)}},mounted:function(){this.$emit("input",this.computedItems)},methods:{getFieldFormatter:function(t){var e=this.computedFieldsObj,n=e[t],r=this.$parent,i=n&&n.formatter;return Q(i)&&X(r[i])?i=r[i]:X(i)||(i=void 0),i}}},Wh=function(t){return k(t).reduce(function(e,n){return Dh[n]||(e[n]=t[n]),e},{})},Uh=Wh,qh=function t(e){return K(e)?"":P(e)&&!tt(e)?k(e).sort().filter(function(t){return!K(t)}).map(function(n){return t(e[n])}).join(" "):String(e)},Gh=qh,Yh=function(t){return P(t)?Gh(Uh(t)):""},Kh=Yh,Xh='Supplying a function to prop "filter" is deprecated. Use "filter-function" instead.',Jh={props:{filter:{type:[String,RegExp,Object,Array,Function],default:null,deprecation:Xh},filterFunction:{type:Function,default:null}},data:function(){return{isFiltered:!1}},computed:{localFiltering:function(){return!this.hasProvider||!!this.noProviderFiltering},filteredCheck:function(){return{filteredItems:this.filteredItems,localItems:this.localItems,localFilter:this.localFilter}},localFilter:function(){return X(this.filter)?"":!this.localFiltering||X(this.filterFunction)||Q(this.filter)||nt(this.filter)?V(this.filter):""},localFilterFn:function(){var t=this.filterFunction,e=this.filter;return X(t)?t:X(e)?(u("b-table: ".concat(Xh)),e):null},filteredItems:function(){var t=this.localItems||[],e=null;if(this.localFiltering){var n=this.localFilter;e=this.filterFnFactory(this.localFilterFn,n)||this.defaultFilterFnFactory(n)}return e&&t.length>0?t.filter(e):t}},watch:{filteredCheck:function(t){var e=t.filteredItems,n=(t.localItems,t.localFilter),r=!1;n?eo(n,[])||eo(n,{})?r=!1:n&&(r=!0):r=!1,r&&this.$emit("filtered",e,e.length),this.isFiltered=r},isFiltered:function(t,e){!1===t&&!0===e&&this.$emit("filtered",this.localItems,this.localItems.length)}},created:function(){var t=this;this.$nextTick(function(){t.isFiltered=Boolean(t.localFilter)})},methods:{filterFnFactory:function(t,e){if(!t||!X(t)||!e||eo(e,[])||eo(e,{}))return null;var n=function(n){return t(n,e)};return n},defaultFilterFnFactory:function(t){if(!t||!Q(t)&&!nt(t))return null;var e=t;if(Q(e)){var n=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replace(/[\s\uFEFF\xA0]+/g,"\\s+");e=new RegExp(".*".concat(n,".*"),"i")}var r=function(t){return e.lastIndex=0,e.test(Kh(t))};return r}}},Qh=function(t,e){return t.map(function(t,e){return[e,t]}).sort(function(t,e){return this(t[1],e[1])||t[0]-e[0]}.bind(e)).map(function(t){return t[1]})},Zh=Qh,tf=function(t,e,n,r,i,o){var s=H(t,n,""),a=H(e,n,"");return X(r)&&(s=r(s,n,t),a=r(a,n,e)),s=G(s)||Y(s)?"":s,a=G(a)||Y(a)?"":a,tt(s)&&tt(a)||Z(s)&&Z(a)?s<a?-1:s>a?1:0:Gh(s).localeCompare(Gh(a),o,i)},ef=tf;function nf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function rf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nf(n,!0).forEach(function(e){of(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nf(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function of(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sf={props:{sortBy:{type:String,default:""},sortDesc:{type:Boolean,default:!1},sortDirection:{type:String,default:"asc",validator:function(t){return f(["asc","desc","last"],t)}},sortCompare:{type:Function,default:null},sortCompareOptions:{type:Object,default:function(){return{numeric:!0}}},sortCompareLocale:{type:String},noSortReset:{type:Boolean,default:!1},labelSortAsc:{type:String,default:"Click to sort Ascending"},labelSortDesc:{type:String,default:"Click to sort Descending"},labelSortClear:{type:String,default:"Click to clear sorting"},noLocalSorting:{type:Boolean,default:!1},noFooterSorting:{type:Boolean,default:!1}},data:function(){return{localSortBy:this.sortBy||"",localSortDesc:this.sortDesc||!1}},computed:{localSorting:function(){return this.hasProvider?!!this.noProviderSorting:!this.noLocalSorting},isSortable:function(){return this.computedFields.some(function(t){return t.sortable})},sortedItems:function(){var t=(this.filteredItems||this.localItems||[]).slice(),e=this.localSortBy,n=this.localSortDesc,r=this.sortCompare,i=this.localSorting,o=rf({},this.sortCompareOptions,{usage:"sort"}),s=this.sortCompareLocale||void 0;if(e&&i){var a=this.getFieldFormatter(e);return Zh(t,function(t,i){var l=null;return X(r)&&(l=r(t,i,e,n,a,o,s)),(G(l)||Y(l)||!1===l)&&(l=ef(t,i,e,a,o,s)),(l||0)*(n?-1:1)})}return t}},watch:{isSortable:function(t,e){t?this.isSortable&&this.$on("head-clicked",this.handleSort):this.$off("head-clicked",this.handleSort)},sortDesc:function(t,e){t!==this.localSortDesc&&(this.localSortDesc=t||!1)},sortBy:function(t,e){t!==this.localSortBy&&(this.localSortBy=t||"")},localSortDesc:function(t,e){t!==e&&this.$emit("update:sortDesc",t)},localSortBy:function(t,e){t!==e&&this.$emit("update:sortBy",t)}},created:function(){this.isSortable&&this.$on("head-clicked",this.handleSort)},methods:{handleSort:function(t,e,n,r){var i=this;if(this.isSortable&&(!r||!this.noFooterSorting)){var o=!1,s=function(){var t=e.sortDirection||i.sortDirection;"asc"===t?i.localSortDesc=!1:"desc"===t&&(i.localSortDesc=!0)};e.sortable?(t===this.localSortBy?this.localSortDesc=!this.localSortDesc:(this.localSortBy=t,s()),o=!0):this.localSortBy&&!this.noSortReset&&(this.localSortBy="",s(),o=!0),o&&this.$emit("sort-changed",this.context)}},sortTheadThClasses:function(t,e,n){return{}},sortTheadThAttrs:function(t,e,n){if(!this.isSortable||n&&this.noFooterSorting)return{};var r=e.sortable,i="";e.label&&e.label.trim()||e.headerTitle||(i=jh(t));var o="";if(r)if(this.localSortBy===t)o=this.localSortDesc?this.labelSortAsc:this.labelSortDesc;else{o=this.localSortDesc?this.labelSortDesc:this.labelSortAsc;var s=this.sortDirection||e.sortDirection;"asc"===s?o=this.labelSortAsc:"desc"===s&&(o=this.labelSortDesc)}else this.noSortReset||(o=this.localSortBy?this.labelSortClear:"");i=[i.trim(),o.trim()].filter(Boolean).join(": ");var a=r&&this.localSortBy===t?this.localSortDesc?"descending":"ascending":r?"none":null;return{"aria-label":i||null,"aria-sort":a}}}},af={props:{perPage:{type:[Number,String],default:0},currentPage:{type:[Number,String],default:1}},computed:{localPaging:function(){return!this.hasProvider||!!this.noProviderPaging},paginatedItems:function(){var t=this.sortedItems||this.filteredItems||this.localItems||[],e=Math.max(parseInt(this.currentPage,10)||1,1),n=Math.max(parseInt(this.perPage,10)||0,0);return this.localPaging&&n&&(t=t.slice((e-1)*n,e*n)),t}}},lf={props:{caption:{type:String,default:null},captionHtml:{type:String},captionTop:{type:Boolean,default:!1}},computed:{captionClasses:function(){return{"b-table-caption-top":this.captionTop}},captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var t=this.$createElement,e=this.normalizeSlot("table-caption"),n=t();if(e||this.caption||this.captionHtml){var r={key:"caption",class:this.captionClasses,attrs:{id:this.captionId}};e||(r.domProps=wn(this.captionHtml,this.caption)),n=t("caption",r,[e])}return n}}},cf={methods:{renderColgroup:function(){var t=this.$createElement,e=this.computedFields,n=t();return this.hasNormalizedSlot("table-colgroup")&&(n=t("colgroup",{key:"colgroup"},[this.normalizeSlot("table-colgroup",{columns:e.length,fields:e})])),n}}},uf=["TD","TH","TR"],df=function(t){if(!t||!t.target)return!1;var e=t.target;if(e.disabled||-1!==uf.indexOf(e.tagName))return!1;if(Kt(".dropdown-menu",e))return!0;var n="LABEL"===e.tagName?e:Kt("label",e);if(n){var r=re(n,"for"),i=r?Jt(r):Gt("input, select, textarea",n);if(i&&!i.disabled)return!0}return Yt(e,Lh)},hf=df,ff=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=ae();return!!(e&&""!==e.toString()&&e.containsNode&&zt(t))&&e.containsNode(t,!0)},pf=ff;function gf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function mf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gf(n,!0).forEach(function(e){vf(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gf(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function vf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bf={props:{headVariant:{type:String,default:function(){return Ot("BTable","headVariant")}},theadClass:{type:[String,Array,Object],default:null},theadTrClass:{type:[String,Array,Object],default:null}},computed:{headClasses:function(){return[this.headVariant?"thead-"+this.headVariant:"",this.theadClass]}},methods:{fieldClasses:function(t){return[t.variant?"table-"+t.variant:"",t.class?t.class:"",t.thClass?t.thClass:""]},headClicked:function(t,e,n){this.stopIfBusy&&this.stopIfBusy(t)||hf(t)||pf(this.$el)||(t.stopPropagation(),t.preventDefault(),this.$emit("head-clicked",e.key,e,t,n))},renderThead:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.$createElement,r=this.computedFields||[];if(!0===this.isStacked||0===r.length)return n();var i=function(r,i){var o=null;r.label.trim()||r.headerTitle||(o=jh(r.key));var s=t.$listeners["head-clicked"]||t.isSortable,a={};s&&(a.click=function(n){t.headClicked(n,r,e)},a.keydown=function(n){var i=n.keyCode;i!==nr.ENTER&&i!==nr.SPACE||t.headClicked(n,r,e)});var l=t.isSortable?t.sortTheadThAttrs(r.key,r,e):{},c=t.isSortable?t.sortTheadThClasses(r.key,r,e):null,u={key:r.key,class:[t.fieldClasses(r),c],style:r.thStyle||{},attrs:mf({tabindex:s?"0":null,abbr:r.headerAbbr||null,title:r.headerTitle||null,role:"columnheader",scope:"col","aria-colindex":String(i+1),"aria-label":o},l),on:a},d={label:r.label,column:r.key,field:r},h=e&&t.hasNormalizedSlot("FOOT_".concat(r.key))?t.normalizeSlot("FOOT_".concat(r.key),d):t.normalizeSlot("HEAD_".concat(r.key),d);return h||(u.domProps=wn(r.labelHtml)),n("th",u,h||r.label)},o=r.map(i).filter(function(t){return t}),s=[];if(e)s.push(n("tr",{class:this.tfootTrClass,attrs:{role:"row"}},o));else{var a={columns:r.length,fields:r};s.push(this.normalizeSlot("thead-top",a)||n()),s.push(n("tr",{class:this.theadTrClass,attrs:{role:"row"}},o))}return n(e?"tfoot":"thead",{key:e?"tfoot":"thead",class:e?this.footClasses:this.headClasses,attrs:{role:"rowgroup"}},s)}}},yf={props:{footClone:{type:Boolean,default:!1},footVariant:{type:String,default:function(){return Ot("BTable","footVariant")}},tfootClass:{type:[String,Array,Object],default:null},tfootTrClass:{type:[String,Array,Object],default:null}},computed:{footClasses:function(){var t=this.footVariant||this.headVariant||null;return[t?"thead-".concat(t):"",this.tfootClass]}},methods:{renderTfoot:function(){var t=this.$createElement;return this.footClone?this.renderThead(!0):t()}}};function wf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function kf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wf(n,!0).forEach(function(e){_f(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wf(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xf={props:{tbodyTrClass:{type:[String,Array,Function],default:null}},methods:{tdClasses:function(t,e){var n="";return e._cellVariants&&e._cellVariants[t.key]&&(n="".concat(this.dark?"bg":"table","-").concat(e._cellVariants[t.key])),[t.variant&&!n?"".concat(this.dark?"bg":"table","-").concat(t.variant):"",n,t.class?t.class:"",this.getTdValues(e,t.key,t.tdClass,"")]},tdAttrs:function(t,e,n){var r={role:"cell","aria-colindex":String(n+1)};return t.isRowHeader&&(r.scope="row",r.role="rowheader"),this.isStacked&&(r["data-label"]=t.label),kf({},r,{},this.getTdValues(e,t.key,t.tdAttr,{}))},rowClasses:function(t){return[t._rowVariant?"".concat(this.dark?"bg":"table","-").concat(t._rowVariant):"",X(this.tbodyTrClass)?this.tbodyTrClass(t,"row"):this.tbodyTrClass]},getTdValues:function(t,e,n,r){var i=this.$parent;if(n){var o=H(t,e,"");return X(n)?n(o,e,t):Q(n)&&X(i[n])?i[n](o,e,t):n}return r},getFormattedValue:function(t,e){var n=e.key,r=this.getFieldFormatter(n),i=H(t,n,null);return X(r)&&(i=r(i,n,t)),G(i)||Y(i)?"":i},tbodyRowKeydown:function(t,e,n){var r=t.keyCode,i=t.target,o=this.$refs.itemRows;if((!this.stopIfBusy||!this.stopIfBusy(t))&&i&&"TR"===i.tagName&&i===document.activeElement&&0===i.tabIndex&&(!o||0!==o.length)){var s=o.indexOf(i);if(r===nr.ENTER||r===nr.SPACE)t.stopPropagation(),t.preventDefault(),this.rowClicked(t,e,n);else if(f([nr.UP,nr.DOWN,nr.HOME,nr.END],r)){t.stopPropagation(),t.preventDefault();var a=t.shiftKey;r===nr.HOME||a&&r===nr.UP?o[0].focus():r===nr.END||a&&r===nr.DOWN?o[o.length-1].focus():r===nr.UP&&s>0?o[s-1].focus():r===nr.DOWN&&s<o.length-1&&o[s+1].focus()}}},rowClicked:function(t,e,n){this.stopIfBusy&&this.stopIfBusy(t)||hf(t)||pf(this.$el)||this.$emit("row-clicked",e,n,t)},middleMouseRowClicked:function(t,e,n){this.stopIfBusy&&this.stopIfBusy(t)||this.$emit("row-middle-clicked",e,n,t)},rowDblClicked:function(t,e,n){this.stopIfBusy&&this.stopIfBusy(t)||hf(t)||this.$emit("row-dblclicked",e,n,t)},rowHovered:function(t,e,n){this.stopIfBusy&&this.stopIfBusy(t)||this.$emit("row-hovered",e,n,t)},rowUnhovered:function(t,e,n){this.stopIfBusy&&this.stopIfBusy(t)||this.$emit("row-unhovered",e,n,t)},rowContextmenu:function(t,e,n){this.stopIfBusy&&this.stopIfBusy(t)||this.$emit("row-contextmenu",e,n,t)},renderTbodyRowCell:function(t,e,n,r){var i=this,o=this.$createElement,s=this.$scopedSlots,a=s["row-details"],l=this.getFormattedValue(n,t),c={key:"row-".concat(r,"-cell-").concat(e,"-").concat(t.key),class:this.tdClasses(t,n),attrs:this.tdAttrs(t,n,e)},u=function(){a&&i.$set(n,"_showDetails",!n._showDetails)},d={item:n,index:r,field:t,unformatted:H(n,t.key,""),value:l,toggleDetails:u,detailsShowing:Boolean(n._showDetails)};this.selectedRows&&(d.rowSelected=Boolean(this.selectedRows[r]));var h=s[t.key]?s[t.key](d):Ve(l);return this.isStacked&&(h=[o("div",{},[h])]),o(t.isRowHeader?"th":"td",c,[h])},renderTbodyRow:function(t,e){var n=this,r=this.$createElement,i=this.$scopedSlots,o=this.computedFields,s=this.striped,a=this.$listeners["row-clicked"]||this.selectable,l=i["row-details"],c=Boolean(t._showDetails&&l),u=[],d=c?this.safeId("_details_".concat(e,"_")):null,h=function(){l&&n.$set(t,"_showDetails",!t._showDetails)},f=o.map(function(r,i){return n.renderTbodyRowCell(r,i,t,e)}),p=null;this.currentPage&&this.perPage&&this.perPage>0&&(p=String((this.currentPage-1)*this.perPage+e+1));var g=this.primaryKey,m=!g||G(t[g])||Y(t[g])?String(e):Ve(t[g]),v=!g||G(t[g])||Y(t[g])?null:this.safeId("_row_".concat(t[g])),b={};a&&(b["click"]=function(r){n.rowClicked(r,t,e)},b["keydown"]=function(r){n.tbodyRowKeydown(r,t,e)});var y=this.selectableRowClasses?this.selectableRowClasses(e):{},w=this.selectableRowAttrs?this.selectableRowAttrs(e):{};if(u.push(r("tr",{key:"__b-table-row-".concat(m,"__"),ref:"itemRows",refInFor:!0,class:[this.rowClasses(t),y,{"b-table-has-details":c}],attrs:kf({id:v,tabindex:a?"0":null,"data-pk":v?String(t[g]):null,"aria-describedby":d,"aria-owns":d,"aria-rowindex":p,role:"row"},w),on:kf({},b,{auxclick:function(r){2===r.which&&n.middleMouseRowClicked(r,t,e)},contextmenu:function(r){n.rowContextmenu(r,t,e)},dblclick:function(r){n.rowDblClicked(r,t,e)},mouseenter:function(r){n.rowHovered(r,t,e)},mouseleave:function(r){n.rowUnhovered(r,t,e)}})},f)),c){var k={colspan:String(o.length),role:"cell"},_={id:d,role:"row"},x=r("td",{attrs:k},[l({item:t,index:e,fields:o,toggleDetails:h})]);s&&u.push(r("tr",{key:"__b-table-details-".concat(e,"-stripe__"),staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"}})),u.push(r("tr",{key:"__b-table-details-".concat(e,"__"),staticClass:"b-table-details",class:[X(this.tbodyTrClass)?this.tbodyTrClass(t,"row-details"):this.tbodyTrClass],attrs:_},[x]))}else l&&(u.push(r()),s&&u.push(r()));return u}}};function Cf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Sf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cf(n,!0).forEach(function(e){Tf(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cf(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Tf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Of={mixins:[xf],props:{tbodyClass:{type:[String,Array],default:null},tbodyTransitionProps:{type:Object},tbodyTransitionHandlers:{type:Object}},methods:{renderTbody:function(){var t=this,e=this.$createElement,n=this.computedItems,r=[],i=this.renderBusy?this.renderBusy():null;i?r.push(i):(r.push(this.renderTopRow?this.renderTopRow():e()),n.forEach(function(e,n){r.push(t.renderTbodyRow(e,n))}),r.push(this.renderEmpty?this.renderEmpty():e()),r.push(this.renderBottomRow?this.renderBottomRow():e()));var o=this.tbodyTransitionProps||this.tbodyTransitionHandlers,s={},a={};o&&(a=this.tbodyTransitionHandlers||{},s=Sf({},this.tbodyTransitionProps||{},{tag:"tbody"}));var l=e(o?"transition-group":"tbody",{props:s,on:a,class:[this.tbodyClass],attrs:{role:"rowgroup"}},r);return l}}},Pf={props:{showEmpty:{type:Boolean,default:!1},emptyText:{type:String,default:"There are no records to show"},emptyHtml:{type:String},emptyFilteredText:{type:String,default:"There are no records matching your request"},emptyFilteredHtml:{type:String}},methods:{renderEmpty:function(){var t,e=this.$createElement,n=this.computedItems;return!this.showEmpty||n&&0!==n.length||this.computedBusy&&this.hasNormalizedSlot("table-busy")||(t=this.normalizeSlot(this.isFiltered?"emptyfiltered":"empty",{emptyFilteredHtml:this.emptyFilteredHtml,emptyFilteredText:this.emptyFilteredText,emptyHtml:this.emptyHtml,emptyText:this.emptyText,fields:this.computedFields,items:this.computedItems}),t||(t=e("div",{class:["text-center","my-2"],domProps:this.isFiltered?wn(this.emptyFilteredHtml,this.emptyFilteredText):wn(this.emptyHtml,this.emptyText)})),t=e("td",{attrs:{colspan:String(this.computedFields.length),role:"cell"}},[e("div",{attrs:{role:"alert","aria-live":"polite"}},[t])]),t=e("tr",{key:this.isFiltered?"_b-table-empty-filtered-row_":"_b-table-empty-row_",staticClass:"b-table-empty-row",class:[X(this.tbodyTrClass)?this.tbodyTrClass(null,"row-empty"):this.tbodyTrClass],attrs:{role:"row"}},[t])),t||e()}}},Af={methods:{renderTopRow:function(){var t=this.$createElement;if(!this.hasNormalizedSlot("top-row")||!0===this.isStacked)return t();var e=this.computedFields;return t("tr",{key:"top-row",staticClass:"b-table-top-row",class:[X(this.tbodyTrClass)?this.tbodyTrClass(null,"row-top"):this.tbodyTrClass],attrs:{role:"row"}},[this.normalizeSlot("top-row",{columns:e.length,fields:e})])}}},Ef={methods:{renderBottomRow:function(){var t=this.$createElement;if(!this.hasNormalizedSlot("bottom-row")||!0===this.isStacked)return t();var e=this.computedFields;return t("tr",{key:"__b-table-bottom-row__",staticClass:"b-table-bottom-row",class:[X(this.tbodyTrClass)?this.tbodyTrClass(null,"row-bottom"):this.tbodyTrClass],attrs:{role:"row"}},this.normalizeSlot("bottom-row",{columns:e.length,fields:e}))}}},Mf={props:{busy:{type:Boolean,default:!1}},data:function(){return{localBusy:!1}},computed:{computedBusy:function(){return this.busy||this.localBusy}},watch:{localBusy:function(t,e){t!==e&&this.$emit("update:busy",t)}},methods:{stopIfBusy:function(t){return!!this.computedBusy&&(t.preventDefault(),t.stopPropagation(),!0)},renderBusy:function(){var t=this.$createElement;if(this.computedBusy&&this.hasNormalizedSlot("table-busy")){var e={role:this.isStacked?"row":null},n={colspan:String(this.computedFields.length),role:this.isStacked?"cell":null};return t("tr",{key:"table-busy-slot",staticClass:"b-table-busy-slot",class:[X(this.tbodyTrClass)?this.tbodyTrClass(null,"table-busy"):this.tbodyTrClass],attrs:e},[t("td",{attrs:n},[this.normalizeSlot("table-busy")])])}return null}}};function If(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Nf={props:{selectable:{type:Boolean,default:!1},selectMode:{type:String,default:"multi"},selectedVariant:{type:String,default:function(){return Ot("BTable","selectedVariant")}}},data:function(){return{selectedRows:[],selectedLastRow:-1}},computed:{selectableTableClasses:function(){var t,e=this.selectable,n=e&&this.selectedRows&&this.selectedRows.some(Boolean);return t={"b-table-selectable":e},If(t,"b-table-select-".concat(this.selectMode),e),If(t,"b-table-selecting",n),t},selectableTableAttrs:function(){return{"aria-multiselectable":this.selectableIsMultiSelect}},selectableIsMultiSelect:function(){return this.selectable?f(["range","multi"],this.selectMode)?"true":"false":null}},watch:{computedItems:function(t,e){this.selectedLastRow=-1;var n=!1;if(this.selectable&&this.selectedRows.length>0){n=h(t)&&h(e)&&t.length===e.length;for(var r=0;n&&r<t.length;r++)n=eo(Uh(t[r]),Uh(e[r]))}n||this.clearSelected()},selectable:function(t,e){this.clearSelected(),this.setSelectionHandlers(t)},selectMode:function(t,e){this.clearSelected()},selectedRows:function(t,e){var n=this;if(this.selectable&&!eo(t,e)){var r=[];t.forEach(function(t,e){t&&r.push(n.computedItems[e])}),this.$emit("row-selected",r)}}},beforeMount:function(){this.selectable&&this.setSelectionHandlers(!0)},methods:{isRowSelected:function(t){return Boolean(this.selectedRows[t])},selectableRowClasses:function(t){var e=this.isRowSelected(t),n=this.dark?"bg":"table",r=this.selectedVariant;return If({"b-table-row-selected":this.selectable&&e},"".concat(n,"-").concat(r),this.selectable&&e&&r)},selectableRowAttrs:function(t){return{"aria-selected":this.selectable?this.isRowSelected(t)?"true":"false":null}},clearSelected:function(){var t=this.selectedRows.reduce(function(t,e){return t||e},!1);t&&(this.selectedLastClicked=-1,this.selectedRows=[])},setSelectionHandlers:function(t){var e=t?"$on":"$off";this[e]("row-clicked",this.selectionHandler),this[e]("filtered",this.clearSelected),this[e]("context-changed",this.clearSelected)},selectionHandler:function(t,e,n){if(this.selectable){var r=this.selectedRows.slice(),i=!r[e],o=this.selectMode;if("single"===o)r=[];else if("range"===o)if(this.selectedLastRow>-1&&n.shiftKey){for(var s=Math.min(this.selectedLastRow,e);s<=Math.max(this.selectedLastRow,e);s++)r[s]=!0;i=!0}else n.ctrlKey||n.metaKey||(r=[],i=!0),this.selectedLastRow=i?e:-1;r[e]=i,this.selectedRows=r}else this.clearSelected()}}};function jf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Df(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jf(n,!0).forEach(function(e){Lf(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jf(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Lf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Bf={mixins:[Ui],props:{items:{type:[Array,Function],default:function(){return[]}},noProviderPaging:{type:Boolean,default:!1},noProviderSorting:{type:Boolean,default:!1},noProviderFiltering:{type:Boolean,default:!1},apiUrl:{type:String,default:""}},computed:{hasProvider:function(){return X(this.items)},providerTriggerContext:function(){var t={apiUrl:this.apiUrl,filter:null,sortBy:null,sortDesc:null,perPage:null,currentPage:null};return this.noProviderFiltering||(t.filter=this.localFilter),this.noProviderSorting||(t.sortBy=this.localSortBy,t.sortDesc=this.localSortDesc),this.noProviderPaging||(t.perPage=this.perPage,t.currentPage=this.currentPage),Df({},t)}},watch:{items:function(t,e){(this.hasProvider||X(t))&&this.$nextTick(this._providerUpdate)},providerTriggerContext:function(t,e){eo(t,e)||this.$nextTick(this._providerUpdate)}},mounted:function(){var t=this;!this.hasProvider||this.localItems&&0!==this.localItems.length||this._providerUpdate(),this.listenOnRoot("bv::refresh::table",function(e){e!==t.id&&e!==t||t.refresh()})},methods:{refresh:function(){this.$off("refreshed",this.refresh),this.computedBusy?this.localBusy&&this.hasProvider&&this.$on("refreshed",this.refresh):(this.clearSelected(),this.hasProvider?this.$nextTick(this._providerUpdate):this.localItems=h(this.items)?this.items.slice():[])},_providerSetLocal:function(t){this.localItems=h(t)?t.slice():[],this.localBusy=!1,this.$emit("refreshed"),this.id&&this.emitOnRoot("bv::table::refreshed",this.id)},_providerUpdate:function(){var t=this;this.hasProvider&&(this.computedBusy?this.$nextTick(this.refresh):(this.localBusy=!0,this.$nextTick(function(){try{var e=t.items(t.context,t._providerSetLocal);rt(e)?e.then(function(e){t._providerSetLocal(e)}):h(e)?t._providerSetLocal(e):2!==t.items.length&&(u("b-table provider function didn't request callback and did not return a promise or data"),t.localBusy=!1)}catch(n){u("b-table provider function error [".concat(n.name,"] ").concat(n.message)),t.localBusy=!1,t.$off("refreshed",t.refresh)}})))}}};function Rf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Ff(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rf(n,!0).forEach(function(e){$f(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rf(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function $f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vf={inheritAttrs:!1,props:{striped:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},small:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},responsive:{type:[Boolean,String],default:!1},stacked:{type:[Boolean,String],default:!1},tableClass:{type:[String,Array,Object],default:null}},computed:{isStacked:function(){return""===this.stacked||this.stacked},isResponsive:function(){var t=""===this.responsive||this.responsive;return!this.isStacked&&t},responsiveClass:function(){return!0===this.isResponsive?"table-responsive":this.isResponsive?"table-responsive-".concat(this.responsive):""},tableClasses:function(){return[this.tableClass,$f({"table-striped":this.striped,"table-hover":this.hover&&this.computedItems.length>0&&!this.computedBusy,"table-dark":this.dark,"table-bordered":this.bordered,"table-borderless":this.borderless,"table-sm":this.small,border:this.outlined,"b-table-fixed":this.fixed,"b-table-stacked":!0===this.stacked||""===this.stacked},"b-table-stacked-".concat(this.stacked),!0!==this.stacked&&this.stacked),this.selectableTableClasses]},tableAttrs:function(){var t=[(this.$attrs||{})["aria-describedby"],this.captionId].filter(Boolean).join(" ")||null,e=this.computedItems,n=this.computedFields,r=this.selectableTableAttrs||{};return Ff({"aria-rowcount":this.filteredItems&&this.filteredItems.length>e.length?String(this.filteredItems.length):null},this.$attrs,{id:this.safeId(),role:this.isStacked?"table":null,"aria-busy":this.computedBusy?"true":"false","aria-colcount":String(n.length),"aria-describedby":t},r)}},render:function(t){var e=this.renderCaption?this.renderCaption():null,n=this.renderColgroup?this.renderColgroup():null,r=this.renderThead(),i=this.renderTfoot(),o=this.renderTbody(),s=t("table",{key:"b-table",staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs},[e,n,r,i,o].filter(Boolean));return this.isResponsive?t("div",{key:"b-table-responsive",class:this.responsiveClass},[s]):s}},zf=i.extend({name:"BTable",mixins:[Mi,Ce,Hh,Vf,bf,yf,Of,Jh,sf,af,lf,cf,Nf,Pf,Af,Ef,Mf,Bf]}),Hf=i.extend({name:"BTableLite",mixins:[Mi,Ce,Hh,Vf,bf,yf,Of,lf,cf]}),Wf=mt({components:{BTable:zf,BTableLite:Hf}});function Uf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function qf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Uf(n,!0).forEach(function(e){Gf(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Uf(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Gf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yf=E(Qc,["tabs","isNavBar"]),Kf=function(t){return!t.disabled},Xf=i.extend({name:"BTabButtonHelper",inject:{bvTabs:{default:function(){return{}}}},props:{tab:{default:null},tabs:{type:Array,default:function(){return[]}},id:{type:String,default:null},controls:{type:String,default:null},tabIndex:{type:Number,default:null},posInSet:{type:Number,default:null},setSize:{type:Number,default:null},noKeyNav:{type:Boolean,default:!1}},methods:{focus:function(){this.$refs&&this.$refs.link&&this.$refs.link.focus&&this.$refs.link.focus()},handleEvt:function(t){var e=function(){t.preventDefault(),t.stopPropagation()};if(!this.tab.disabled){var n=t.type,r=t.keyCode,i=t.shiftKey;"click"===n?(e(),this.$emit("click",t)):"keydown"!==n||this.noKeyNav||r!==nr.SPACE?"keydown"!==n||this.noKeyNav||(r===nr.UP||r===nr.LEFT||r===nr.HOME?(e(),i||r===nr.HOME?this.$emit("first",t):this.$emit("prev",t)):r!==nr.DOWN&&r!==nr.RIGHT&&r!==nr.END||(e(),i||r===nr.END?this.$emit("last",t):this.$emit("next",t))):(e(),this.$emit("click",t))}}},render:function(t){var e=t(cn,{ref:"link",staticClass:"nav-link",class:[{active:this.tab.localActive&&!this.tab.disabled,disabled:this.tab.disabled},this.tab.titleLinkClass,this.tab.localActive?this.bvTabs.activeNavItemClass:null],props:{href:this.tab.href,disabled:this.tab.disabled},attrs:{role:"tab",id:this.id,tabindex:this.tabIndex,"aria-selected":this.tab.localActive&&!this.tab.disabled?"true":"false","aria-setsize":this.setSize,"aria-posinset":this.posInSet,"aria-controls":this.controls},on:{click:this.handleEvt,keydown:this.handleEvt}},[this.tab.normalizeSlot("title")||this.tab.title]);return t("li",{staticClass:"nav-item",class:[this.tab.titleItemClass],attrs:{role:"presentation"}},[e])}}),Jf=i.extend({name:"BTabs",mixins:[Mi,Ce],provide:function(){return{bvTabs:this}},model:{prop:"value",event:"input"},props:qf({},Yf,{tag:{type:String,default:"div"},card:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},end:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noNavStyle:{type:Boolean,default:!1},noKeyNav:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},contentClass:{type:[String,Array,Object],default:null},navClass:{type:[String,Array,Object],default:null},navWrapperClass:{type:[String,Array,Object],default:null},activeNavItemClass:{type:[String,Array,Object],default:null},activeTabClass:{type:[String,Array,Object],default:null},value:{type:Number,default:null}}),data:function(){var t=parseInt(this.value,10);return t=isNaN(t)?-1:t,{currentTab:t,tabs:[],registeredTabs:[],isMounted:!1}},computed:{fade:function(){return!this.noFade},navStyle:function(){return this.pills?"pills":"tabs"},localNavClass:function(){var t=[];return this.card&&(this.vertical?t.push("card-header","h-100","border-bottom-0","rounded-0"):t.push("card-header-".concat(this.navStyle))),[].concat(t,[this.navClass])}},watch:{currentTab:function(t,e){var n=-1;this.tabs.forEach(function(e,r){t!==r||e.disabled?e.localActive=!1:(e.localActive=!0,n=r)}),this.$emit("input",n)},value:function(t,e){if(t!==e){t=parseInt(t,10),t=isNaN(t)?-1:t,e=parseInt(e,10)||0;var n=this.tabs;n[t]&&!n[t].disabled?this.currentTab=t:t<e?this.previousTab():this.nextTab()}},registeredTabs:function(t,e){var n=this;this.$nextTick(function(){Bt(function(){n.updateTabs()})})},tabs:function(t,e){var n=this;eo(t.map(function(t){return t._uid}),e.map(function(t){return t._uid}))||this.$nextTick(function(){n.$emit("changed",t.slice(),e.slice())})},isMounted:function(t,e){var n=this;t&&Bt(function(){n.updateTabs()}),this.setObserver(t)}},created:function(){var t=this,e=parseInt(this.value,10);this.currentTab=isNaN(e)?-1:e,this._bvObserver=null,this.$nextTick(function(){t.updateTabs()})},mounted:function(){var t=this;this.updateTabs(),this.$nextTick(function(){t.isMounted=!0})},deactivated:function(){this.isMounted=!1},activated:function(){var t=this,e=parseInt(this.value,10);this.currentTab=isNaN(e)?-1:e,this.$nextTick(function(){t.updateTabs(),t.isMounted=!0})},beforeDestroy:function(){this.isMounted=!1},destroyed:function(){this.tabs=[]},methods:{registerTab:function(t){var e=this;f(this.registeredTabs,t)||(this.registeredTabs.push(t),t.$once("hook:destroyed",function(){e.unregisterTab(t)}))},unregisterTab:function(t){this.registeredTabs=this.registeredTabs.slice().filter(function(e){return e!==t})},setObserver:function(t){if(t){this.setObserver(!1);var e=this,n=function(){e.$nextTick(function(){Bt(function(){e.updateTabs()})})};this._bvObserver=Ei(this.$refs.tabsContainer,n,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["id"]})}else this._bvObserver&&this._bvObserver.disconnect&&this._bvObserver.disconnect(),this._bvObserver=null},getTabs:function(){var t=this.registeredTabs.filter(function(t){return 0===t.$children.filter(function(t){return t._isTab}).length}),e=[];if(this.isMounted&&t.length>0){var n=t.map(function(t){return"#".concat(t.safeId())}).join(", ");e=qt(n,this.$el).map(function(t){return t.id}).filter(Boolean)}return Zh(t,function(t,n){return e.indexOf(t.safeId())-e.indexOf(n.safeId())})},updateTabs:function(){var t=this.getTabs(),e=t.indexOf(t.slice().reverse().find(function(t){return t.localActive&&!t.disabled}));if(e<0){var n=this.currentTab;n>=t.length?e=t.indexOf(t.slice().reverse().find(Kf)):t[n]&&!t[n].disabled&&(e=n)}e<0&&(e=t.indexOf(t.find(Kf))),t.forEach(function(t,e){t.localActive=!1}),t[e]&&(t[e].localActive=!0),this.tabs=t,this.currentTab=e},getButtonForTab:function(t){return(this.$refs.buttons||[]).find(function(e){return e.tab===t})},updateButton:function(t){var e=this.getButtonForTab(t);e&&e.$forceUpdate&&e.$forceUpdate()},activateTab:function(t){var e=!1;if(t){var n=this.tabs.indexOf(t);!t.disabled&&n>-1&&(e=!0,this.currentTab=n)}return e||this.$emit("input",this.currentTab),e},deactivateTab:function(t){return!!t&&this.activateTab(this.tabs.filter(function(e){return e!==t}).find(Kf))},focusButton:function(t){var e=this;this.$nextTick(function(){var n=e.getButtonForTab(t);n&&n.focus&&n.focus()})},emitTabClick:function(t,e){et(e)&&t&&t.$emit&&!t.disabled&&t.$emit("click",e)},clickTab:function(t,e){this.activateTab(t),this.emitTabClick(t,e)},firstTab:function(t){var e=this.tabs.find(Kf);this.activateTab(e)&&t&&(this.focusButton(e),this.emitTabClick(e,t))},previousTab:function(t){var e=Math.max(this.currentTab,0),n=this.tabs.slice(0,e).reverse().find(Kf);this.activateTab(n)&&t&&(this.focusButton(n),this.emitTabClick(n,t))},nextTab:function(t){var e=Math.max(this.currentTab,-1),n=this.tabs.slice(e+1).find(Kf);this.activateTab(n)&&t&&(this.focusButton(n),this.emitTabClick(n,t))},lastTab:function(t){var e=this.tabs.slice().reverse().find(Kf);this.activateTab(e)&&t&&(this.focusButton(e),this.emitTabClick(e,t))}},render:function(t){var e=this,n=this.tabs,r=n.find(function(t){return t.localActive&&!t.disabled}),i=n.find(function(t){return!t.disabled}),o=n.map(function(o,s){var a=null;return e.noKeyNav||(a=-1,(r===o||!r&&i===o)&&(a=null)),t(Xf,{key:o._uid||s,ref:"buttons",refInFor:!0,props:{tab:o,tabs:n,id:o.controlledBy||(e.tab&&e.tab.safeId?e.tab.safeId("_BV_tab_button_"):null),controls:e.tab&&e.tab.safeId?e.tab.safeId():null,tabIndex:a,setSize:n.length,posInSet:s+1,noKeyNav:e.noKeyNav},on:{click:function(t){e.clickTab(o,t)},first:e.firstTab,prev:e.previousTab,next:e.nextTab,last:e.lastTab}})}),s=t(tu,{ref:"nav",class:this.localNavClass,attrs:{role:"tablist",id:this.safeId("_BV_tab_controls_")},props:{fill:this.fill,justified:this.justified,align:this.align,tabs:!this.noNavStyle&&!this.pills,pills:!this.noNavStyle&&this.pills,vertical:this.vertical,small:this.small}},[this.normalizeSlot("tabs-start")||t(!1),o,this.normalizeSlot("tabs-end")||this.normalizeSlot("tabs")||t(!1)]);s=t("div",{key:"bv-tabs-nav",class:[{"card-header":this.card&&!this.vertical&&!(this.end||this.bottom),"card-footer":this.card&&!this.vertical&&(this.end||this.bottom),"col-auto":this.vertical},this.navWrapperClass]},[s]);var a=t();n&&0!==n.length||(a=t("div",{key:"bv-empty-tab",class:["tab-pane","active",{"card-body":this.card}]},this.normalizeSlot("empty")));var l=t("div",{ref:"tabsContainer",key:"bv-tabs-container",staticClass:"tab-content",class:[{col:this.vertical},this.contentClass],attrs:{id:this.safeId("_BV_tab_container_")}},p(this.normalizeSlot("default"),a));return t(this.tag,{staticClass:"tabs",class:{row:this.vertical,"no-gutters":this.vertical&&this.card},attrs:{id:this.safeId()}},[this.end||this.bottom?l:t(),[s],this.end||this.bottom?t():l])}}),Qf='Setting prop "href" is deprecated. Use the <b-nav> component instead.',Zf=i.extend({name:"BTab",mixins:[Mi,Ce],inject:{bvTabs:{default:function(){return{noKeyNav:!0}}}},props:{active:{type:Boolean,default:!1},tag:{type:String,default:"div"},buttonId:{type:String,default:""},title:{type:String,default:""},titleItemClass:{type:[String,Array,Object],default:null},titleLinkClass:{type:[String,Array,Object],default:null},headHtml:{type:String,default:null},disabled:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},href:{type:String,default:"#",deprecated:Qf},lazy:{type:Boolean,default:!1}},data:function(){return{localActive:this.active&&!this.disabled,show:!1}},computed:{tabClasses:function(){return[{active:this.localActive,disabled:this.disabled,"card-body":this.bvTabs.card&&!this.noBody},this.localActive?this.bvTabs.activeTabClass:null]},controlledBy:function(){return this.buttonId||this.safeId("__BV_tab_button__")},computedNoFade:function(){return!this.bvTabs.fade},computedLazy:function(){return this.bvTabs.lazy||this.lazy},_isTab:function(){return!0}},watch:{localActive:function(t,e){this.$emit("update:active",t)},active:function(t,e){t!==e&&(t?this.activate():this.deactivate()||this.$emit("update:active",this.localActive))},disabled:function(t,e){t!==e&&t&&this.localActive&&this.bvTabs.firstTab&&(this.localActive=!1,this.bvTabs.firstTab())}},mounted:function(){this.registerTab(),this.show=this.localActive,this.href&&"#"!==this.href&&u("b-tab: ".concat(Qf))},updated:function(){this.hasNormalizedSlot("title")&&this.bvTabs.updateButton&&this.bvTabs.updateButton(this)},destroyed:function(){this.unregisterTab()},methods:{registerTab:function(){this.bvTabs.registerTab&&this.bvTabs.registerTab(this)},unregisterTab:function(){this.bvTabs.unregisterTab&&this.bvTabs.unregisterTab(this)},activate:function(){return!(!this.bvTabs.activateTab||this.disabled)&&this.bvTabs.activateTab(this)},deactivate:function(){return!(!this.bvTabs.deactivateTab||!this.localActive)&&this.bvTabs.deactivateTab(this)}},render:function(t){var e=t(this.tag,{ref:"panel",staticClass:"tab-pane",class:this.tabClasses,directives:[{name:"show",rawName:"v-show",value:this.localActive,expression:"localActive"}],attrs:{role:"tabpanel",id:this.safeId(),tabindex:this.localActive&&!this.bvTabs.noKeyNav?"-1":null,"aria-hidden":this.localActive?"false":"true","aria-labelledby":this.controlledBy||null}},[this.localActive||!this.computedLazy?this.normalizeSlot("default"):t()]);return t(ke,{props:{mode:"out-in",noFade:this.computedNoFade}},[e])}}),tp=mt({components:{BTabs:Jf,BTab:Zf}}),ep=n("2b88"),np="BToaster",rp={name:{type:String,required:!0},ariaLive:{type:String,default:function(){return Ot(np,"ariaLive")}},ariaAtomic:{type:String,default:function(){return Ot(np,"ariaAtomic")}},role:{type:String,default:function(){return Ot(np,"role")}}},ip=i.extend({data:function(){return{name:"b-toaster"}},methods:{onAfterEnter:function(t){var e=this;Bt(function(){Zt(t,"".concat(e.name,"-enter-to"))})}},render:function(t){return t("transition-group",{props:{tag:"div",name:this.name},on:{afterEnter:this.onAfterEnter}},this.$slots.default)}}),op=i.extend({name:np,props:rp,data:function(){return{doRender:!1,dead:!1,staticName:this.name}},beforeMount:function(){var t=this;this.staticName=this.name,ep["Wormhole"].hasTarget(this.staticName)?(u("b-toaster: A <portal-target> with name '".concat(this.name,"' already exists in the document.")),this.dead=!0):(this.doRender=!0,this.$once("hook:beforeDestroy",function(){t.$root.$emit("bv::toaster::destroyed",t.staticName)}))},destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},render:function(t){var e=t("div",{class:["d-none",{"b-dead-toaster":this.dead}]});if(this.doRender){var n=t(ep["PortalTarget"],{staticClass:"b-toaster-slot",props:{name:this.staticName,multiple:!0,tag:"div",slim:!1,transition:ip}});e=t("div",{staticClass:"b-toaster",class:[this.staticName],attrs:{id:this.staticName,role:this.role||null,"aria-live":this.ariaLive,"aria-atomic":this.ariaAtomic}},[n])}return e}});function sp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ap(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sp(n,!0).forEach(function(e){lp(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sp(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function lp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cp="BToast",up=1e3,dp={passive:!0,capture:!1},hp={id:{type:String,default:null},title:{type:String,default:null},toaster:{type:String,default:function(){return Ot(cp,"toaster")}},visible:{type:Boolean,default:!1},variant:{type:String,default:function(){return Ot(cp,"variant")}},isStatus:{type:Boolean,default:!1},appendToast:{type:Boolean,default:!1},noAutoHide:{type:Boolean,default:!1},autoHideDelay:{type:[Number,String],default:function(){return Ot(cp,"autoHideDelay")}},noCloseButton:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noHoverPause:{type:Boolean,default:!1},solid:{type:Boolean,default:!1},toastClass:{type:[String,Object,Array],default:function(){return Ot(cp,"toastClass")}},headerClass:{type:[String,Object,Array],default:function(){return Ot(cp,"headerClass")}},bodyClass:{type:[String,Object,Array],default:function(){return Ot(cp,"bodyClass")}},href:{type:String,default:null},to:{type:[String,Object],default:null},static:{type:Boolean,default:!1}},fp=i.extend({name:cp,mixins:[Mi,Ui,Ce],inheritAttrs:!1,model:{prop:"visible",event:"change"},props:hp,data:function(){return{isMounted:!1,doRender:!1,localShow:!1,isTransitioning:!1,isHiding:!1,order:0,timer:null,dismissStarted:0,resumeDismiss:0}},computed:{bToastClasses:function(){return lp({"b-toast-solid":this.solid,"b-toast-append":this.appendToast,"b-toast-prepend":!this.appendToast},"b-toast-".concat(this.variant),this.variant)},slotScope:function(){return{hide:this.hide}},computedDuration:function(){return Math.max(parseInt(this.autoHideDelay,10)||0,up)},computedToaster:function(){return String(this.toaster)},transitionHandlers:function(){return{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,afterLeave:this.onAfterLeave}}},watch:{visible:function(t){t?this.show():this.hide()},localShow:function(t){t!==this.visible&&this.$emit("change",t)},toaster:function(t){var e=this;this.$nextTick(function(){return e.ensureToaster})},static:function(t){t&&this.localShow&&this.ensureToaster()}},mounted:function(){var t=this;this.isMounted=!0,this.$nextTick(function(){t.visible&&Bt(function(){t.show()})}),this.listenOnRoot("bv::show::toast",function(e){e===t.safeId()&&t.show()}),this.listenOnRoot("bv::hide::toast",function(e){e&&e!==t.safeId()||t.hide()}),this.listenOnRoot("bv::toaster::destroyed",function(e){e===t.computedToaster&&t.hide()})},beforeDestroy:function(){this.clearDismissTimer()},methods:{show:function(){var t=this;if(!this.localShow){this.ensureToaster();var e=this.buildEvent("show");this.emitEvent(e),this.dismissStarted=this.resumeDismiss=0,this.order=Date.now()*(this.appendToast?1:-1),this.isHiding=!1,this.doRender=!0,this.$nextTick(function(){Bt(function(){t.localShow=!0})})}},hide:function(){var t=this;if(this.localShow){var e=this.buildEvent("hide");this.emitEvent(e),this.setHoverHandler(!1),this.dismissStarted=this.resumeDismiss=0,this.clearDismissTimer(),this.isHiding=!0,Bt(function(){t.localShow=!1})}},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Ao(t,ap({cancelable:!1,target:this.$el||null,relatedTarget:null},e,{vueTarget:this,componentId:this.safeId()}))},emitEvent:function(t){var e=t.type;this.$root.$emit("bv::toast:".concat(e),t),this.$emit(e,t)},ensureToaster:function(){if(!this.static&&!ep["Wormhole"].hasTarget(this.computedToaster)){var t=document.createElement("div");document.body.appendChild(t);var e=new op({parent:this.$root,propsData:{name:this.computedToaster}});e.$mount(t)}},startDismissTimer:function(){this.clearDismissTimer(),this.noAutoHide||(this.timer=setTimeout(this.hide,this.resumeDismiss||this.computedDuration),this.dismissStarted=Date.now(),this.resumeDismiss=0)},clearDismissTimer:function(){clearTimeout(this.timer),this.timer=null},setHoverHandler:function(t){var e=t?$t:Vt,n=this.$refs["b-toast"];e(n,"mouseenter",this.onPause,dp),e(n,"mouseleave",this.onUnPause,dp)},onPause:function(t){if(!this.noAutoHide&&!this.noHoverPause&&this.timer&&!this.resumeDismiss){var e=Date.now()-this.dismissStarted;e>0&&(this.clearDismissTimer(),this.resumeDismiss=Math.max(this.computedDuration-e,up))}},onUnPause:function(t){this.noAutoHide||this.noHoverPause||!this.resumeDismiss?this.resumeDismiss=this.dismissStarted=0:this.startDismissTimer()},onLinkClick:function(){var t=this;this.$nextTick(function(){Bt(function(){t.hide()})})},onBeforeEnter:function(){this.isTransitioning=!0},onAfterEnter:function(){this.isTransitioning=!1;var t=this.buildEvent("shown");this.emitEvent(t),this.startDismissTimer(),this.setHoverHandler(!0)},onBeforeLeave:function(){this.isTransitioning=!0},onAfterLeave:function(){this.isTransitioning=!1,this.order=0,this.resumeDismiss=this.dismissStarted=0;var t=this.buildEvent("hidden");this.emitEvent(t),this.doRender=!1},makeToast:function(t){var e=this,n=[],r=this.normalizeSlot("toast-title",this.slotScope);r?n.push(r):this.title&&n.push(t("strong",{staticClass:"mr-2"},this.title)),this.noCloseButton||n.push(t(Pe,{staticClass:"ml-auto mb-1",on:{click:function(t){e.hide()}}}));var i=t();n.length>0&&(i=t("header",{staticClass:"toast-header",class:this.headerClass},n));var o=this.href||this.to,s=t(o?cn:"div",{staticClass:"toast-body",class:this.bodyClass,props:o?{to:this.to,href:this.href}:{},on:o?{click:this.onLinkClick}:{}},[this.normalizeSlot("default",this.slotScope)||t()]),a=t("div",{key:"toast-".concat(this._uid),ref:"toast",staticClass:"toast",class:this.toastClass,attrs:ap({},this.$attrs,{tabindex:"0",id:this.safeId()})},[i,s]);return a}},render:function(t){if(!this.doRender||!this.isMounted)return t();var e="b-toast-".concat(this._uid);return t(ep["Portal"],{props:{name:e,to:this.computedToaster,order:this.order,slim:!0,disabled:this.static}},[t("div",{key:e,ref:"b-toast",staticClass:"b-toast",class:this.bToastClasses,attrs:{id:this.safeId("_toast_outer"),role:this.isHiding?null:this.isStatus?"status":"alert","aria-live":this.isHiding?null:this.isStatus?"polite":"assertive","aria-atomic":this.isHiding?null:"true"}},[t(ke,{props:{noFade:this.noFade},on:this.transitionHandlers},[this.localShow?this.makeToast(t):t()])])])}});function pp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gp(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)}}function mp(t,e,n){return e&&gp(t.prototype,e),n&&gp(t,n),t}function vp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function bp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vp(n,!0).forEach(function(e){yp(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vp(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function yp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wp(t){return xp(t)||_p(t)||kp()}function kp(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _p(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function xp(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}var Cp="$bvToast",Sp="_bv__toast",Tp=["id"].concat(wp(k(E(hp,["static","visible"])))),Op={toastContent:"default",title:"toast-title"},Pp=function(t){return Tp.reduce(function(e,n){return G(t[n])||(e[n]=t[n]),e},{})},Ap=function(t){var e=t.extend({name:"BToastPop",extends:fp,destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},mounted:function(){var t=this,e=function(){t.localShow=!1,t.doRender=!1,t.$nextTick(function(){t.$nextTick(function(){Bt(function(){t.$destroy()})})})};this.$parent.$once("hook:destroyed",e),this.$once("hidden",e),this.listenOnRoot("bv::toaster::destroyed",function(n){n===t.toaster&&e()})}}),n=function(t,n){if(!a(Cp)){var r=new e({parent:n,propsData:bp({},Pp(Ot("BToast")||{}),{},E(t,k(Op)),{static:!1,visible:!0})});k(Op).forEach(function(e){var i=t[e];G(i)||("title"===e&&Q(i)&&(i=[n.$createElement("strong",{class:"mr-2"},i)]),r.$slots[Op[e]]=p(i))});var i=document.createElement("div");document.body.appendChild(i),r.$mount(i)}},r=function(){function t(e){pp(this,t),y(this,{_vm:e,_root:e.$root}),_(this,{_vm:M(),_root:M()})}return mp(t,[{key:"toast",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t&&!a(Cp)&&n(bp({},Pp(e),{toastContent:t}),this._vm)}},{key:"show",value:function(t){t&&this._root.$emit("bv::show::toast",t)}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._root.$emit("bv::hide::toast",t)}}]),t}();t.mixin({beforeCreate:function(){this[Sp]=new r(this)}}),t.prototype.hasOwnProperty(Cp)||x(t.prototype,Cp,{get:function(){return this&&this[Sp]||s("'".concat(Cp,"' must be accessed from a Vue instance 'this' context")),this[Sp]}})},Ep=mt({plugins:{plugin:Ap}}),Mp=mt({components:{BToast:fp,BToaster:op},plugins:{BVToastPlugin:Ep}}),Ip="BTooltip",Np=i.extend({name:Ip,mixins:[rh,Ce],props:{title:{type:String,default:""},triggers:{type:[String,Array],default:"hover focus"},placement:{type:String,default:"top"},fallbackPlacement:{type:[String,Array],default:"flip",validator:function(t){return h(t)||f(["flip","clockwise","counterclockwise"],t)}},variant:{type:String,default:function(){return Ot(Ip,"variant")}},customClass:{type:String,default:function(){return Ot(Ip,"customClass")}},delay:{type:[Number,Object,String],default:function(){return Ot(Ip,"delay")}},boundary:{type:[String,xo],default:function(){return Ot(Ip,"boundary")}},boundaryPadding:{type:Number,default:function(){return Ot(Ip,"boundaryPadding")}}},methods:{createToolpop:function(){var t=this.getTarget();return t?this._toolpop=new Md(t,this.getConfig(),this):(this._toolpop=null,u("b-tooltip: 'target' element not found!")),this._toolpop}},render:function(t){return t("div",{class:["d-none"],style:{display:"none"},attrs:{"aria-hidden":!0}},[t("div",{ref:"title"},this.normalizeSlot("default"))])}});function jp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Dp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jp(n,!0).forEach(function(e){Lp(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jp(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Lp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Bp="__BV_ToolTip__",Rp={focus:!0,hover:!0,click:!0,blur:!0},Fp=/^html$/,$p=/^nofade$/i,Vp=/^(auto|top(left|right)?|bottom(left|right)?|left(top|bottom)?|right(top|bottom)?)$/,zp=/^(window|viewport|scrollParent)$/,Hp=/^d\d+$/,Wp=/^o-?\d+$/,Up=/^v-.+$/,qp=function(t){var e="BTooltip",n={delay:Ot(e,"delay"),boundary:String(Ot(e,"boundary")),boundaryPadding:parseInt(Ot(e,"boundaryPadding"),10)||0,variant:Ot(e,"variant"),customClass:Ot(e,"customClass")};Q(t.value)?n.title=t.value:X(t.value)?n.title=t.value:P(t.value)&&(n=Dp({},n,{},t.value)),t.arg&&(n.container="#".concat(t.arg)),k(t.modifiers).forEach(function(t){if(Fp.test(t))n.html=!0;else if($p.test(t))n.animation=!1;else if(Vp.test(t))n.placement=t;else if(zp.test(t))n.boundary=t;else if(Hp.test(t)){var e=parseInt(t.slice(1),10)||0;e&&(n.delay=e)}else if(Wp.test(t)){var r=parseInt(t.slice(1),10)||0;r&&(n.offset=r)}else Up.test(t)&&(n.variant=t.slice(2)||null)});var r={},i=Q(n.trigger)?n.trigger.trim().split(/\s+/):[];return i.forEach(function(t){Rp[t]&&(r[t]=!0)}),k(Rp).forEach(function(e){t.modifiers[e]&&(r[e]=!0)}),n.trigger=k(r).join(" "),"blur"===n.trigger&&(n.trigger="focus"),n.trigger||delete n.trigger,n},Gp=function(t,e,n){if(o["j"])if(Co["a"]){var r=qp(e);t[Bp]?t[Bp].updateConfig(r):t[Bp]=new Md(t,r,n.context)}else u("v-b-tooltip: Popper.js is required for ToolTips to work")},Yp=function(t){t[Bp]&&(t[Bp].destroy(),t[Bp]=null,delete t[Bp])},Kp={bind:function(t,e,n){Gp(t,e,n)},inserted:function(t,e,n){Gp(t,e,n)},update:function(t,e,n){e.value!==e.oldValue&&Gp(t,e,n)},componentUpdated:function(t,e,n){e.value!==e.oldValue&&Gp(t,e,n)},unbind:function(t){Yp(t)}},Xp=mt({components:{BTooltip:Np},directives:{VBTooltip:Kp}}),Jp=mt({plugins:{AlertPlugin:De,BadgePlugin:vn,BreadcrumbPlugin:In,ButtonPlugin:Xn,ButtonGroupPlugin:tr,ButtonToolbarPlugin:or,CardPlugin:xi,CarouselPlugin:Wi,CollapsePlugin:ko,DropdownPlugin:ps,EmbedPlugin:bs,FormPlugin:js,FormGroupPlugin:aa,FormCheckboxPlugin:wa,FormRadioPlugin:xa,FormInputPlugin:Ia,FormTextareaPlugin:Ba,FormFilePlugin:Va,FormSelectPlugin:qa,ImagePlugin:Ga,InputGroupPlugin:ml,JumbotronPlugin:xl,LayoutPlugin:Pl,LinkPlugin:Al,ListGroupPlugin:Vl,MediaPlugin:Kl,ModalPlugin:Kc,NavPlugin:bu,NavbarPlugin:Ru,PaginationPlugin:ed,PaginationNavPlugin:od,PopoverPlugin:xh,ProgressPlugin:Ph,SpinnerPlugin:Ih,TablePlugin:Wf,TabsPlugin:tp,ToastPlugin:Mp,TooltipPlugin:Xp}}),Qp=mt({directives:{VBModal:Ec}}),Zp=mt({directives:{VBPopover:_h}});function tg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function eg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tg(n,!0).forEach(function(e){ng(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tg(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ng(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ig(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)}}function og(t,e,n){return e&&ig(t.prototype,e),n&&ig(t,n),t}var sg="v-b-scrollspy",ag="bv::scrollspy::activate",lg={element:"body",offset:10,method:"auto",throttle:75},cg={element:"(string|element|component)",offset:"number",method:"string",throttle:"number"},ug={DROPDOWN_ITEM:"dropdown-item",ACTIVE:"active"},dg={ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown, .dropup",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},hg={OFFSET:"offset",POSITION:"position"},fg=/^.*(#[^#]+)$/,pg=["webkitTransitionEnd","transitionend","otransitionend","oTransitionEnd"],gg={passive:!0,capture:!1},mg=function(t){return O(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()},vg=function(t,e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r],o=e[r],s=o&&zt(o)?"element":mg(o);s=o&&o._isVue?"component":s,new RegExp(i).test(s)||u("".concat(t,': Option "').concat(r,'" provided type "').concat(s,'" but expected type "').concat(i,'"'))}},bg=function(){function t(e,n,r){rg(this,t),this.$el=e,this.$scroller=null,this.$selector=[dg.NAV_LINKS,dg.LIST_ITEMS,dg.DROPDOWN_ITEMS].join(","),this.$offsets=[],this.$targets=[],this.$activeTarget=null,this.$scrollHeight=0,this.$resizeTimeout=null,this.$obs_scroller=null,this.$obs_targets=null,this.$root=r||null,this.$config=null,this.updateConfig(n)}return og(t,[{key:"updateConfig",value:function(t,e){this.$scroller&&(this.unlisten(),this.$scroller=null);var n=eg({},this.constructor.Default,{},t);if(e&&(this.$root=e),vg(this.constructor.Name,n,this.constructor.DefaultType),this.$config=n,this.$root){var r=this;this.$root.$nextTick(function(){r.listen()})}else this.listen()}},{key:"dispose",value:function(){this.unlisten(),clearTimeout(this.$resizeTimeout),this.$resizeTimeout=null,this.$el=null,this.$config=null,this.$scroller=null,this.$selector=null,this.$offsets=null,this.$targets=null,this.$activeTarget=null,this.$scrollHeight=null}},{key:"listen",value:function(){var t=this,e=this.getScroller();e&&"BODY"!==e.tagName&&$t(e,"scroll",this,gg),$t(window,"scroll",this,gg),$t(window,"resize",this,gg),$t(window,"orientationchange",this,gg),pg.forEach(function(e){$t(window,e,t,gg)}),this.setObservers(!0),this.handleEvent("refresh")}},{key:"unlisten",value:function(){var t=this,e=this.getScroller();this.setObservers(!1),e&&"BODY"!==e.tagName&&Vt(e,"scroll",this,gg),Vt(window,"scroll",this,gg),Vt(window,"resize",this,gg),Vt(window,"orientationchange",this,gg),pg.forEach(function(e){Vt(window,e,t,gg)})}},{key:"setObservers",value:function(t){var e=this;this.$obs_scroller&&(this.$obs_scroller.disconnect(),this.$obs_scroller=null),this.$obs_targets&&(this.$obs_targets.disconnect(),this.$obs_targets=null),t&&(this.$obs_targets=Ei(this.$el,function(){e.handleEvent("mutation")},{subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]}),this.$obs_scroller=Ei(this.getScroller(),function(){e.handleEvent("mutation")},{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["id","style","class"]}))}},{key:"handleEvent",value:function(t){var e=Q(t)?t:t.type,n=this,r=function(){n.$resizeTimeout||(n.$resizeTimeout=setTimeout(function(){n.refresh(),n.process(),n.$resizeTimeout=null},n.$config.throttle))};"scroll"===e?(this.$obs_scroller||this.listen(),this.process()):/(resize|orientationchange|mutation|refresh)/.test(e)&&r()}},{key:"refresh",value:function(){var t=this,e=this.getScroller();if(e){var n=e!==e.window?hg.POSITION:hg.OFFSET,r="auto"===this.$config.method?n:this.$config.method,i=r===hg.POSITION?ce:le,o=r===hg.POSITION?this.getScrollTop():0;return this.$offsets=[],this.$targets=[],this.$scrollHeight=this.getScrollHeight(),qt(this.$selector,this.$el).map(function(t){return re(t,"href")}).filter(function(t){return t&&fg.test(t||"")}).map(function(t){var n=t.replace(fg,"$1").trim();if(!n)return null;var r=Gt(n,e);return r&&Ht(r)?{offset:parseInt(i(r).top,10)+o,target:n}:null}).filter(Boolean).sort(function(t,e){return t.offset-e.offset}).reduce(function(e,n){return e[n.target]||(t.$offsets.push(n.offset),t.$targets.push(n.target),e[n.target]=!0),e},{}),this}}},{key:"process",value:function(){var t=this.getScrollTop()+this.$config.offset,e=this.getScrollHeight(),n=this.$config.offset+e-this.getOffsetHeight();if(this.$scrollHeight!==e&&this.refresh(),t>=n){var r=this.$targets[this.$targets.length-1];this.$activeTarget!==r&&this.activate(r)}else{if(this.$activeTarget&&t<this.$offsets[0]&&this.$offsets[0]>0)return this.$activeTarget=null,void this.clear();for(var i=this.$offsets.length;i--;){var o=this.$activeTarget!==this.$targets[i]&&t>=this.$offsets[i]&&(G(this.$offsets[i+1])||t<this.$offsets[i+1]);o&&this.activate(this.$targets[i])}}}},{key:"getScroller",value:function(){if(this.$scroller)return this.$scroller;var t=this.$config.element;return t?(zt(t.$el)?t=t.$el:Q(t)&&(t=Gt(t)),t?(this.$scroller="BODY"===t.tagName?window:t,this.$scroller):null):null}},{key:"getScrollTop",value:function(){var t=this.getScroller();return t===window?t.pageYOffset:t.scrollTop}},{key:"getScrollHeight",value:function(){return this.getScroller().scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"getOffsetHeight",value:function(){var t=this.getScroller();return t===window?window.innerHeight:oe(t).height}},{key:"activate",value:function(t){var e=this;this.$activeTarget=t,this.clear();var n=qt(this.$selector.split(",").map(function(e){return"".concat(e,'[href$="').concat(t,'"]')}).join(","),this.$el);n.forEach(function(t){if(te(t,ug.DROPDOWN_ITEM)){var n=Kt(dg.DROPDOWN,t);n&&e.setActiveState(Gt(dg.DROPDOWN_TOGGLE,n),!0),e.setActiveState(t,!0)}else{e.setActiveState(t,!0),Yt(t.parentElement,dg.NAV_ITEMS)&&e.setActiveState(t.parentElement,!0);var r=t;while(r){r=Kt(dg.NAV_LIST_GROUP,r);var i=r?r.previousElementSibling:null;i&&Yt(i,"".concat(dg.NAV_LINKS,", ").concat(dg.LIST_ITEMS))&&e.setActiveState(i,!0),i&&Yt(i,dg.NAV_ITEMS)&&(e.setActiveState(Gt(dg.NAV_LINKS,i),!0),e.setActiveState(i,!0))}}}),n&&n.length>0&&this.$root&&this.$root.$emit(ag,t,n)}},{key:"clear",value:function(){var t=this;qt("".concat(this.$selector,", ").concat(dg.NAV_ITEMS),this.$el).filter(function(t){return te(t,ug.ACTIVE)}).forEach(function(e){return t.setActiveState(e,!1)})}},{key:"setActiveState",value:function(t,e){t&&(e?Qt(t,ug.ACTIVE):Zt(t,ug.ACTIVE))}}],[{key:"Name",get:function(){return sg}},{key:"Default",get:function(){return lg}},{key:"DefaultType",get:function(){return cg}}]),t}(),yg=bg,wg="__BV_ScrollSpy__",kg=function(t){var e={};return t.arg&&(e.element="#".concat(t.arg)),k(t.modifiers).forEach(function(t){/^\d+$/.test(t)?e.offset=parseInt(t,10):/^(auto|position|offset)$/.test(t)&&(e.method=t)}),Q(t.value)?e.element=t.value:Z(t.value)?e.offset=Math.round(t.value):P(t.value)&&k(t.value).filter(function(t){return Boolean(yg.DefaultType[t])}).forEach(function(n){e[n]=t.value[n]}),e},_g=function(t,e,n){if(o["j"]){var r=kg(e);t[wg]?t[wg].updateConfig(r,n.context.$root):t[wg]=new yg(t,r,n.context.$root)}},xg=function(t){t[wg]&&(t[wg].dispose(),t[wg]=null,delete t[wg])},Cg={bind:function(t,e,n){_g(t,e,n)},inserted:function(t,e,n){_g(t,e,n)},update:function(t,e,n){e.value!==e.oldValue&&_g(t,e,n)},componentUpdated:function(t,e,n){e.value!==e.oldValue&&_g(t,e,n)},unbind:function(t){xg(t)}},Sg=mt({directives:{VBScrollspy:Cg}}),Tg=mt({directives:{VBToggle:wo}}),Og=mt({directives:{VBTooltip:Kp}}),Pg=mt({plugins:{VBModalPlugin:Qp,VBPopoverPlugin:Zp,VBScrollspyPlugin:Sg,VBTogglePlugin:Tg,VBTooltipPlugin:Og}}),Ag=gt({plugins:{componentsPlugin:Jp,directivesPlugin:Pg}}),Eg={install:Ag,setConfig:ut};e["a"]=Eg},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"63b6":function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("d864"),s=n("35e8"),a=n("07e3"),l="prototype",c=function(t,e,n){var u,d,h,f=t&c.F,p=t&c.G,g=t&c.S,m=t&c.P,v=t&c.B,b=t&c.W,y=p?i:i[e]||(i[e]={}),w=y[l],k=p?r:g?r[e]:(r[e]||{})[l];for(u in p&&(n=e),n)d=!f&&k&&void 0!==k[u],d&&a(y,u)||(h=d?k[u]:n[u],y[u]=p&&"function"!=typeof k[u]?n[u]:v&&d?o(h,r):b&&k[u]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[l]=t[l],e}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[u]=h,t&c.R&&w&&!w[u]&&s(w,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"656e":function(t,e,n){"use strict";var r=n("79aa");function i(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=r(e),this.reject=r(n)}t.exports.f=function(t){return new i(t)}},6718:function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("b8e3"),s=n("ccb9"),a=n("d9f6").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},6762:function(t,e,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67bb":function(t,e,n){t.exports=n("f921")},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"696e":function(t,e,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),t.exports=n("584a").Promise},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"69d3":function(t,e,n){n("6718")("asyncIterator")},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(t,e,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6b54":function(t,e,n){"use strict";n("3846");var r=n("cb7c"),i=n("0bfb"),o=n("9e1e"),s="toString",a=/./[s],l=function(t){n("2aba")(RegExp.prototype,s,t,!0)};n("79e5")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?l(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):a.name!=s&&l(function(){return a.call(this)})},"6c1c":function(t,e,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),s=n("5168")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<a.length;l++){var c=a[l],u=r[c],d=u&&u.prototype;d&&!d[s]&&i(d,s,c),o[c]=o.Array}},"71c1":function(t,e,n){var r=n("3a38"),i=n("25eb");t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),l=r(n),c=a.length;return l<0||l>=c?t?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):o:t?a.slice(l,l+2):s-56320+(o-55296<<10)+65536)}}},7333:function(t,e,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),s=n("4bf8"),a=n("626a"),l=Object.assign;t.exports=!l||n("79e5")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r})?function(t,e){var n=s(t),l=arguments.length,c=1,u=i.f,d=o.f;while(l>c){var h,f=a(arguments[c++]),p=u?r(f).concat(u(f)):r(f),g=p.length,m=0;while(g>m)d.call(f,h=p[m++])&&(n[h]=f[h])}return n}:l},7445:function(t,e,n){var r=n("63b6"),i=n("5d6b");r(r.G+r.F*(parseInt!=i),{parseInt:i})},7514:function(t,e,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o="find",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},"75fc":function(t,e,n){"use strict";var r=n("a745"),i=n.n(r);function o(t){if(i()(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}var s=n("774e"),a=n.n(s),l=n("c8bb"),c=n.n(l);function u(t){if(c()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return a()(t)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function h(t){return o(t)||u(t)||d()}n.d(e,"a",function(){return h})},7618:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("5d58"),i=n.n(r),o=n("67bb"),s=n.n(o);function a(t){return a="function"===typeof s.a&&"symbol"===typeof i.a?function(t){return typeof t}:function(t){return t&&"function"===typeof s.a&&t.constructor===s.a&&t!==s.a.prototype?"symbol":typeof t},a(t)}function l(t){return l="function"===typeof s.a&&"symbol"===a(i.a)?function(t){return a(t)}:function(t){return t&&"function"===typeof s.a&&t.constructor===s.a&&t!==s.a.prototype?"symbol":a(t)},l(t)}},"765d":function(t,e,n){n("6718")("observable")},"768b":function(t,e,n){"use strict";var r=n("a745"),i=n.n(r);function o(t){if(i()(t))return t}var s=n("5d73"),a=n.n(s);function l(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,l=a()(t);!(r=(s=l.next()).done);r=!0)if(n.push(s.value),e&&n.length===e)break}catch(c){i=!0,o=c}finally{try{r||null==l["return"]||l["return"]()}finally{if(i)throw o}}return n}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function u(t,e){return o(t)||l(t,e)||c()}n.d(e,"a",function(){return u})},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(t,e,n){t.exports=n("d2d5")},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"795b":function(t,e,n){t.exports=n("696e")},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a56":function(t,e,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),s=n("2b4c")("species");t.exports=function(t){var e=r[t];o&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},"7a77":function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},"7aac":function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b00":function(t,e,n){(function(t){t(n("56b3"))})(function(t){"use strict";function e(t){for(var e={},n=0;n<t.length;++n)e[t[n].toLowerCase()]=!0;return e}t.defineMode("css",function(e,n){var r=n.inline;n.propertyKeywords||(n=t.resolveMode("text/css"));var i,o,s=e.indentUnit,a=n.tokenHooks,l=n.documentTypes||{},c=n.mediaTypes||{},u=n.mediaFeatures||{},d=n.mediaValueKeywords||{},h=n.propertyKeywords||{},f=n.nonStandardPropertyKeywords||{},p=n.fontProperties||{},g=n.counterDescriptors||{},m=n.colorKeywords||{},v=n.valueKeywords||{},b=n.allowNested,y=n.lineComment,w=!0===n.supportsAtComponent;function k(t,e){return i=e,t}function _(t,e){var n=t.next();if(a[n]){var r=a[n](t,e);if(!1!==r)return r}return"@"==n?(t.eatWhile(/[\w\\\-]/),k("def",t.current())):"="==n||("~"==n||"|"==n)&&t.eat("=")?k(null,"compare"):'"'==n||"'"==n?(e.tokenize=x(n),e.tokenize(t,e)):"#"==n?(t.eatWhile(/[\w\\\-]/),k("atom","hash")):"!"==n?(t.match(/^\s*\w*/),k("keyword","important")):/\d/.test(n)||"."==n&&t.eat(/\d/)?(t.eatWhile(/[\w.%]/),k("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?k(null,"select-op"):"."==n&&t.match(/^-?[_a-z][_a-z0-9-]*/i)?k("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?k(null,n):t.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(t.current().toLowerCase())&&(e.tokenize=C),k("variable callee","variable")):/[\w\\\-]/.test(n)?(t.eatWhile(/[\w\\\-]/),k("property","word")):k(null,null):/[\d.]/.test(t.peek())?(t.eatWhile(/[\w.%]/),k("number","unit")):t.match(/^-[\w\\\-]*/)?(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?k("variable-2","variable-definition"):k("variable-2","variable")):t.match(/^\w+-/)?k("meta","meta"):void 0}function x(t){return function(e,n){var r,i=!1;while(null!=(r=e.next())){if(r==t&&!i){")"==t&&e.backUp(1);break}i=!i&&"\\"==r}return(r==t||!i&&")"!=t)&&(n.tokenize=null),k("string","string")}}function C(t,e){return t.next(),t.match(/\s*[\"\')]/,!1)?e.tokenize=null:e.tokenize=x(")"),k(null,"(")}function S(t,e,n){this.type=t,this.indent=e,this.prev=n}function T(t,e,n,r){return t.context=new S(n,e.indentation()+(!1===r?0:s),t.context),n}function O(t){return t.context.prev&&(t.context=t.context.prev),t.context.type}function P(t,e,n){return M[n.context.type](t,e,n)}function A(t,e,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return P(t,e,n)}function E(t){var e=t.current().toLowerCase();o=v.hasOwnProperty(e)?"atom":m.hasOwnProperty(e)?"keyword":"variable"}var M={top:function(t,e,n){if("{"==t)return T(n,e,"block");if("}"==t&&n.context.prev)return O(n);if(w&&/@component/i.test(t))return T(n,e,"atComponentBlock");if(/^@(-moz-)?document$/i.test(t))return T(n,e,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(t))return T(n,e,"atBlock");if(/^@(font-face|counter-style)/i.test(t))return n.stateArg=t,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(t))return"keyframes";if(t&&"@"==t.charAt(0))return T(n,e,"at");if("hash"==t)o="builtin";else if("word"==t)o="tag";else{if("variable-definition"==t)return"maybeprop";if("interpolation"==t)return T(n,e,"interpolation");if(":"==t)return"pseudo";if(b&&"("==t)return T(n,e,"parens")}return n.context.type},block:function(t,e,n){if("word"==t){var r=e.current().toLowerCase();return h.hasOwnProperty(r)?(o="property","maybeprop"):f.hasOwnProperty(r)?(o="string-2","maybeprop"):b?(o=e.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return"meta"==t?"block":b||"hash"!=t&&"qualifier"!=t?M.top(t,e,n):(o="error","block")},maybeprop:function(t,e,n){return":"==t?T(n,e,"prop"):P(t,e,n)},prop:function(t,e,n){if(";"==t)return O(n);if("{"==t&&b)return T(n,e,"propBlock");if("}"==t||"{"==t)return A(t,e,n);if("("==t)return T(n,e,"parens");if("hash"!=t||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(e.current())){if("word"==t)E(e);else if("interpolation"==t)return T(n,e,"interpolation")}else o+=" error";return"prop"},propBlock:function(t,e,n){return"}"==t?O(n):"word"==t?(o="property","maybeprop"):n.context.type},parens:function(t,e,n){return"{"==t||"}"==t?A(t,e,n):")"==t?O(n):"("==t?T(n,e,"parens"):"interpolation"==t?T(n,e,"interpolation"):("word"==t&&E(e),"parens")},pseudo:function(t,e,n){return"meta"==t?"pseudo":"word"==t?(o="variable-3",n.context.type):P(t,e,n)},documentTypes:function(t,e,n){return"word"==t&&l.hasOwnProperty(e.current())?(o="tag",n.context.type):M.atBlock(t,e,n)},atBlock:function(t,e,n){if("("==t)return T(n,e,"atBlock_parens");if("}"==t||";"==t)return A(t,e,n);if("{"==t)return O(n)&&T(n,e,b?"block":"top");if("interpolation"==t)return T(n,e,"interpolation");if("word"==t){var r=e.current().toLowerCase();o="only"==r||"not"==r||"and"==r||"or"==r?"keyword":c.hasOwnProperty(r)?"attribute":u.hasOwnProperty(r)?"property":d.hasOwnProperty(r)?"keyword":h.hasOwnProperty(r)?"property":f.hasOwnProperty(r)?"string-2":v.hasOwnProperty(r)?"atom":m.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(t,e,n){return"}"==t?A(t,e,n):"{"==t?O(n)&&T(n,e,b?"block":"top",!1):("word"==t&&(o="error"),n.context.type)},atBlock_parens:function(t,e,n){return")"==t?O(n):"{"==t||"}"==t?A(t,e,n,2):M.atBlock(t,e,n)},restricted_atBlock_before:function(t,e,n){return"{"==t?T(n,e,"restricted_atBlock"):"word"==t&&"@counter-style"==n.stateArg?(o="variable","restricted_atBlock_before"):P(t,e,n)},restricted_atBlock:function(t,e,n){return"}"==t?(n.stateArg=null,O(n)):"word"==t?(o="@font-face"==n.stateArg&&!p.hasOwnProperty(e.current().toLowerCase())||"@counter-style"==n.stateArg&&!g.hasOwnProperty(e.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(t,e,n){return"word"==t?(o="variable","keyframes"):"{"==t?T(n,e,"top"):P(t,e,n)},at:function(t,e,n){return";"==t?O(n):"{"==t||"}"==t?A(t,e,n):("word"==t?o="tag":"hash"==t&&(o="builtin"),"at")},interpolation:function(t,e,n){return"}"==t?O(n):"{"==t||";"==t?A(t,e,n):("word"==t?o="variable":"variable"!=t&&"("!=t&&")"!=t&&(o="error"),"interpolation")}};return{startState:function(t){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new S(r?"block":"top",t||0,null)}},token:function(t,e){if(!e.tokenize&&t.eatSpace())return null;var n=(e.tokenize||_)(t,e);return n&&"object"==typeof n&&(i=n[1],n=n[0]),o=n,"comment"!=i&&(e.state=M[e.state](i,t,e)),o},indent:function(t,e){var n=t.context,r=e&&e.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-s)):(n=n.prev,i=n.indent)),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:y,fold:"brace"}});var n=["domain","regexp","url","url-prefix"],r=e(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=e(i),s=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],a=e(s),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],c=e(l),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],d=e(u),h=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],f=e(h),p=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],g=e(p),m=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],v=e(m),b=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],y=e(b),w=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],k=e(w),_=n.concat(i).concat(s).concat(l).concat(u).concat(h).concat(b).concat(w);function x(t,e){var n,r=!1;while(null!=(n=t.next())){if(r&&"/"==n){e.tokenize=null;break}r="*"==n}return["comment","comment"]}t.registerHelper("hintWords","css",_),t.defineMIME("text/css",{documentTypes:r,mediaTypes:o,mediaFeatures:a,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:f,fontProperties:g,counterDescriptors:v,colorKeywords:y,valueKeywords:k,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=x,x(t,e))}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:a,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:f,colorKeywords:y,valueKeywords:k,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=x,x(t,e)):["operator","operator"]},":":function(t){return!!t.match(/\s*\{/,!1)&&[null,null]},$:function(t){return t.match(/^[\w-]+/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(t){return!!t.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),t.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:a,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:f,colorKeywords:y,valueKeywords:k,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=x,x(t,e)):["operator","operator"]},"@":function(t){return t.eat("{")?[null,"interpolation"]:!t.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),t.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:o,mediaFeatures:a,propertyKeywords:d,nonStandardPropertyKeywords:f,fontProperties:g,counterDescriptors:v,colorKeywords:y,valueKeywords:k,supportsAtComponent:!0,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=x,x(t,e))}},name:"css",helperType:"gss"})})},"7be7":function(t,e,n){n("0a90"),t.exports=n("584a").parseFloat},"7cd6":function(t,e,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"7d7b":function(t,e,n){var r=n("e4ae"),i=n("7cd6");t.exports=n("584a").getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},"7e90":function(t,e,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){i(t);var n,s=o(e),a=s.length,l=0;while(a>l)r.f(t,n=s[l++],e[n]);return t}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in i||n("9e1e")&&r(i,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8079:function(t,e,n){var r=n("7726"),i=n("1991").set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,l="process"==n("2d95")(s);t.exports=function(){var t,e,n,c=function(){var r,i;l&&(r=s.domain)&&r.exit();while(t){i=t.fn,t=t.next;try{i()}catch(o){throw t?n():e=void 0,o}}e=void 0,r&&r.enter()};if(l)n=function(){s.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);n=function(){u.then(c)}}else n=function(){i.call(r,c)};else{var d=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"83a1":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},8436:function(t,e){t.exports=function(){}},"84f2":function(t,e){t.exports={}},"85f2":function(t,e,n){t.exports=n("454f")},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8aae":function(t,e,n){n("32a6"),t.exports=n("584a").Object.keys},"8b97":function(t,e,n){var r=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},"8df4":function(t,e,n){"use strict";var r=n("7a77");function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t,e=new i(function(e){t=e});return{token:e,cancel:t}},t.exports=i},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(t,e,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),s={};n("35e8")(s,n("5168")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},"8f94":function(t,e,n){!function(e,r){t.exports=r(n("56b3"))}(0,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=3)}([function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=window.CodeMirror||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},writable:!0,configurable:!0}),e.default={name:"codemirror",data:function(){return{content:"",codemirror:null,cminstance:null}},props:{code:String,value:String,marker:Function,unseenLines:Array,name:{type:String,default:"codemirror"},placeholder:{type:String,default:""},merge:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{}}},globalEvents:{type:Array,default:function(){return[]}}},watch:{options:{deep:!0,handler:function(t){for(var e in t)this.cminstance.setOption(e,t[e])}},merge:function(){this.$nextTick(this.switchMerge)},code:function(t){this.handerCodeChange(t)},value:function(t){this.handerCodeChange(t)}},methods:{initialize:function(){var t=this,e=Object.assign({},this.globalOptions,this.options);this.merge?(this.codemirror=o.MergeView(this.$refs.mergeview,e),this.cminstance=this.codemirror.edit):(this.codemirror=o.fromTextArea(this.$refs.textarea,e),this.cminstance=this.codemirror,this.cminstance.setValue(this.code||this.value||this.content)),this.cminstance.on("change",function(e){t.content=e.getValue(),t.$emit&&t.$emit("input",t.content)});var n={};["scroll","changes","beforeChange","cursorActivity","keyHandled","inputRead","electricInput","beforeSelectionChange","viewportChange","swapDoc","gutterClick","gutterContextMenu","focus","blur","refresh","optionChange","scrollCursorIntoView","update"].concat(this.events).concat(this.globalEvents).filter(function(t){return!n[t]&&(n[t]=!0)}).forEach(function(e){t.cminstance.on(e,function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t.$emit.apply(t,[e].concat(r));var o=e.replace(/([A-Z])/g,"-$1").toLowerCase();o!==e&&t.$emit.apply(t,[o].concat(r))})}),this.$emit("ready",this.codemirror),this.unseenLineMarkers(),this.refresh()},refresh:function(){var t=this;this.$nextTick(function(){t.cminstance.refresh()})},destroy:function(){var t=this.cminstance.doc.cm.getWrapperElement();t&&t.remove&&t.remove()},handerCodeChange:function(t){if(t!==this.cminstance.getValue()){var e=this.cminstance.getScrollInfo();this.cminstance.setValue(t),this.content=t,this.cminstance.scrollTo(e.left,e.top)}this.unseenLineMarkers()},unseenLineMarkers:function(){var t=this;void 0!==this.unseenLines&&void 0!==this.marker&&this.unseenLines.forEach(function(e){var n=t.cminstance.lineInfo(e);t.cminstance.setGutterMarker(e,"breakpoints",n.gutterMarkers?null:t.marker())})},switchMerge:function(){var t=this.cminstance.doc.history,e=this.cminstance.doc.cleanGeneration;this.options.value=this.cminstance.getValue(),this.destroy(),this.initialize(),this.cminstance.doc.history=t,this.cminstance.doc.cleanGeneration=e}},mounted:function(){this.initialize()},beforeDestroy:function(){this.destroy()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n.n(r);for(var o in r)["default","default"].indexOf(o)<0&&function(t){n.d(e,t,function(){return r[t]})}(o);var s=n(5),a=n(4),l=a(i.a,s.a,!1,null,null,null);e.default=l.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.codemirror=e.CodeMirror=void 0;var i=n(0),o=r(i),s=n(2),a=r(s),l=window.CodeMirror||o.default,c=function(t,e){e&&(e.options&&(a.default.props.globalOptions.default=function(){return e.options}),e.events&&(a.default.props.globalEvents.default=function(){return e.events})),t.component(a.default.name,a.default)},u={CodeMirror:l,codemirror:a.default,install:c};e.default=u,e.CodeMirror=l,e.codemirror=a.default,e.install=c},function(t,e){t.exports=function(t,e,n,r,i,o){var s,a=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(s=t,a=t.default);var c,u="function"==typeof a?a.options:a;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):r&&(c=r),c){var d=u.functional,h=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),h(t,e)}):u.beforeCreate=h?[].concat(h,c):[c]}return{esModule:s,exports:a,options:u}}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-codemirror",class:{merge:t.merge}},[t.merge?n("div",{ref:"mergeview"}):n("textarea",{ref:"textarea",attrs:{name:t.name,placeholder:t.placeholder}})])},i=[],o={render:r,staticRenderFns:i};e.a=o}])})},9003:function(t,e,n){var r=n("6b4c");t.exports=Array.isArray||function(t){return"Array"==r(t)}},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},9138:function(t,e,n){t.exports=n("35e8")},"938d":function(t,e,n){"use strict";(function(t){n.d(e,"i",function(){return r}),n.d(e,"b",function(){return i}),n.d(e,"g",function(){return s}),n.d(e,"d",function(){return a}),n.d(e,"j",function(){return l}),n.d(e,"k",function(){return u}),n.d(e,"e",function(){return d}),n.d(e,"h",function(){return h}),n.d(e,"f",function(){return f}),n.d(e,"c",function(){return p}),n.d(e,"a",function(){return m});var r="undefined"!==typeof window,i="undefined"!==typeof document,o="undefined"!==typeof navigator,s="undefined"!==typeof Promise,a="undefined"!==typeof MutationObserver||"undefined"!==typeof WebKitMutationObserver||"undefined"!==typeof MozMutationObserver,l=r&&i&&o,c=l?window.navigator.userAgent.toLowerCase():"",u=c.indexOf("jsdom")>0,d=(/msie|trident/.test(c),function(){var t=!1;if(l)try{var e={get passive(){t=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(n){t=!1}return t}()),h=l&&("ontouchstart"in document.documentElement||navigator.maxTouchPoints>0),f=l&&Boolean(window.PointerEvent||window.MSPointerEvent),p=l&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype,g=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r="undefined"!==typeof t&&t?Object({NODE_ENV:"production",BASE_URL:""})||!1:{};return e?r[e]||n:r},m=function(){return g("BOOTSTRAP_VUE_NO_WARN")}}).call(this,n("4362"))},"95d5":function(t,e,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");t.exports=n("584a").isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(r(e))}},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",c="object"===typeof t,u=e.regeneratorRuntime;if(u)c&&(t.exports=u);else{u=e.regeneratorRuntime=c?t.exports:{},u.wrap=w;var d="suspendedStart",h="suspendedYield",f="executing",p="completed",g={},m={};m[s]=function(){return this};var v=Object.getPrototypeOf,b=v&&v(v(I([])));b&&b!==r&&i.call(b,s)&&(m=b);var y=C.prototype=_.prototype=Object.create(m);x.prototype=y.constructor=C,C.constructor=x,C[l]=x.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,l in t||(t[l]="GeneratorFunction")),t.prototype=Object.create(y),t},u.awrap=function(t){return{__await:t}},S(T.prototype),T.prototype[a]=function(){return this},u.AsyncIterator=T,u.async=function(t,e,n,r){var i=new T(w(t,e,n,r));return u.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},S(y),y[l]="Generator",y[s]=function(){return this},y.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=I,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return a.type="throw",a.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),c=i.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.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&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},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),g},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),E(n),g}},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;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function w(t,e,n,r){var i=e&&e.prototype instanceof _?e:_,o=Object.create(i.prototype),s=new M(r||[]);return o._invoke=O(t,n,s),o}function k(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function _(){}function x(){}function C(){}function S(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function T(t){function e(n,r,o,s){var a=k(t[n],t,r);if("throw"!==a.type){var l=a.arg,c=l.value;return c&&"object"===typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,o,s)},function(t){e("throw",t,o,s)}):Promise.resolve(c).then(function(t){l.value=t,o(l)},function(t){return e("throw",t,o,s)})}s(a.arg)}var n;function r(t,r){function i(){return new Promise(function(n,i){e(t,r,n,i)})}return n=n?n.then(i,i):i()}this._invoke=r}function O(t,e,n){var r=d;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return N()}n.method=i,n.arg=o;while(1){var s=n.delegate;if(s){var a=P(s,n);if(a){if(a===g)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=k(t,e,n);if("normal"===l.type){if(r=n.done?p:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}function P(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,P(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=k(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function A(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(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 r=-1,o=function e(){while(++r<t.length)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},9744:function(t,e,n){"use strict";var r=n("4588"),i=n("be13");t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9b6c":function(t,e){t.exports=function(t){return t=t.toLowerCase(),t.charAt(0).toUpperCase()+t.substring(1)},t.exports.words=function(t){return t.toLowerCase().replace(/(^|[^a-zA-Z\u00C0-\u017F'])([a-zA-Z\u00C0-\u017F])/g,function(t){return t.toUpperCase()})}},"9c60":function(t,e,n){var r=n("63b6"),i=n("13c8")(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(t,e,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),s=n("5559")("IE_PROTO"),a=function(){},l="prototype",c=function(){var t,e=n("1ec9")("iframe"),r=o.length,i="<",s=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+s+"document.F=Object"+i+"/script"+s),t.close(),c=t.F;while(r--)delete c[l][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[l]=r(t),n=new a,a[l]=null,n[s]=t):n=c(),void 0===e?n:i(n,e)}},a1ce:function(t,e,n){var r=n("63b6"),i=n("25eb"),o=n("294c"),s=n("e692"),a="["+s+"]",l="​…",c=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),d=function(t,e,n){var i={},a=o(function(){return!!s[t]()||l[t]()!=l}),c=i[t]=a?e(h):s[t];n&&(i[n]=c),r(r.P+r.F*a,"String",i)},h=d.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(u,"")),t};t.exports=d},a21f:function(t,e,n){var r=n("584a"),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},a22a:function(t,e,n){var r=n("d864"),i=n("b0dc"),o=n("3702"),s=n("e4ae"),a=n("b447"),l=n("7cd6"),c={},u={};e=t.exports=function(t,e,n,d,h){var f,p,g,m,v=h?function(){return t}:l(t),b=r(n,d,e?2:1),y=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(f=a(t.length);f>y;y++)if(m=e?b(s(p=t[y])[0],p[1]):b(t[y]),m===c||m===u)return m}else for(g=v.call(t);!(p=g.next()).done;)if(m=i(g,b,p.value,e),m===c||m===u)return m};e.BREAK=c,e.RETURN=u},a25f:function(t,e,n){var r=n("7726"),i=r.navigator;t.exports=i&&i.userAgent||""},a481:function(t,e,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),s=n("4588"),a=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,g){return[function(r,i){var o=t(this),s=void 0==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=g(n,t,this,e);if(i.done)return i.value;var d=r(t),h=String(this),f="function"===typeof e;f||(e=String(e));var v=d.global;if(v){var b=d.unicode;d.lastIndex=0}var y=[];while(1){var w=l(d,h);if(null===w)break;if(y.push(w),!v)break;var k=String(w[0]);""===k&&(d.lastIndex=a(h,o(d.lastIndex),b))}for(var _="",x=0,C=0;C<y.length;C++){w=y[C];for(var S=String(w[0]),T=c(u(s(w.index),h.length),0),O=[],P=1;P<w.length;P++)O.push(p(w[P]));var A=w.groups;if(f){var E=[S].concat(O,T,h);void 0!==A&&E.push(A);var M=String(e.apply(void 0,E))}else M=m(S,h,T,O,A,e);T>=x&&(_+=h.slice(x,T)+M,x=T+S.length)}return _+h.slice(x)}];function m(t,e,r,o,s,a){var l=r+t.length,c=o.length,u=f;return void 0!==s&&(s=i(s),u=h),n.call(a,u,function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(l);case"<":a=s[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>c){var h=d(u/10);return 0===h?n:h<=c?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):n}a=o[u-1]}return void 0===a?"":a})}})},a4a1:function(t,e,n){(function(t,n){n(e)})(0,function(t){"use strict";
/*!
   * perfect-scrollbar v1.4.0
   * (c) 2018 Hyunje Jun
   * @license MIT
   */function e(t){return getComputedStyle(t)}function n(t,e){for(var n in e){var r=e[n];"number"===typeof r&&(r+="px"),t.style[n]=r}return t}function r(t){var e=document.createElement("div");return e.className=t,e}var i="undefined"!==typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function o(t,e){if(!i)throw new Error("No element matching method supported");return i.call(t,e)}function s(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function a(t,e){return Array.prototype.filter.call(t.children,function(t){return o(t,e)})}var l={main:"ps",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},c={x:null,y:null};function u(t,e){var n=t.element.classList,r=l.state.scrolling(e);n.contains(r)?clearTimeout(c[e]):n.add(r)}function d(t,e){c[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(l.state.scrolling(e))},t.settings.scrollingThreshold)}function h(t,e){u(t,e),d(t,e)}var f=function(t){this.element=t,this.handlers={}},p={isEmpty:{configurable:!0}};f.prototype.bind=function(t,e){"undefined"===typeof this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},f.prototype.unbind=function(t,e){var n=this;this.handlers[t]=this.handlers[t].filter(function(r){return!(!e||r===e)||(n.element.removeEventListener(t,r,!1),!1)})},f.prototype.unbindAll=function(){var t=this;for(var e in t.handlers)t.unbind(e)},p.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(f.prototype,p);var g=function(){this.eventElements=[]};function m(t){if("function"===typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}g.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new f(t),this.eventElements.push(e)),e},g.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},g.prototype.unbind=function(t,e,n){var r=this.eventElement(t);r.unbind(e,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},g.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},g.prototype.once=function(t,e,n){var r=this.eventElement(t),i=function(t){r.unbind(e,i),n(t)};r.bind(e,i)};var v=function(t,e,n,r,i){var o;if(void 0===r&&(r=!0),void 0===i&&(i=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}b(t,n,o,r,i)};function b(t,e,n,r,i){var o=n[0],s=n[1],a=n[2],l=n[3],c=n[4],u=n[5];void 0===r&&(r=!0),void 0===i&&(i=!1);var d=t.element;t.reach[l]=null,d[a]<1&&(t.reach[l]="start"),d[a]>t[o]-t[s]-1&&(t.reach[l]="end"),e&&(d.dispatchEvent(m("ps-scroll-"+l)),e<0?d.dispatchEvent(m("ps-scroll-"+c)):e>0&&d.dispatchEvent(m("ps-scroll-"+u)),r&&h(t,l)),t.reach[l]&&(e||i)&&d.dispatchEvent(m("ps-"+l+"-reach-"+t.reach[l]))}function y(t){return parseInt(t,10)||0}function w(t){return o(t,"input,[contenteditable]")||o(t,"select,[contenteditable]")||o(t,"textarea,[contenteditable]")||o(t,"button,[contenteditable]")}function k(t){var n=e(t);return y(n.width)+y(n.paddingLeft)+y(n.paddingRight)+y(n.borderLeftWidth)+y(n.borderRightWidth)}var _={isWebKit:"undefined"!==typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!==typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!==typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!==typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},x=function(t){var e=t.element,n=Math.floor(e.scrollTop);t.containerWidth=e.clientWidth,t.containerHeight=e.clientHeight,t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(a(e,l.element.rail("x")).forEach(function(t){return s(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(a(e,l.element.rail("y")).forEach(function(t){return s(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=C(t,y(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=y((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=C(t,y(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=y(n*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),S(e,t),t.scrollbarXActive?e.classList.add(l.state.active("x")):(e.classList.remove(l.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=0),t.scrollbarYActive?e.classList.add(l.state.active("y")):(e.classList.remove(l.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)};function C(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function S(t,e){var r={width:e.railXWidth},i=Math.floor(t.scrollTop);e.isRtl?r.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:r.left=t.scrollLeft,e.isScrollbarXUsingBottom?r.bottom=e.scrollbarXBottom-i:r.top=e.scrollbarXTop+i,n(e.scrollbarXRail,r);var o={top:i,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?o.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth:o.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?o.left=e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:o.left=e.scrollbarYLeft+t.scrollLeft,n(e.scrollbarYRail,o),n(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),n(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}var T=function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var n=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top,r=n>t.scrollbarYTop?1:-1;t.element.scrollTop+=r*t.containerHeight,x(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var n=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left,r=n>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=r*t.containerWidth,x(t),e.stopPropagation()})},O=function(t){P(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),P(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])};function P(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],c=e[6],h=e[7],f=e[8],p=t.element,g=null,m=null,v=null;function b(e){p[c]=g+v*(e[i]-m),u(t,h),x(t),e.stopPropagation(),e.preventDefault()}function y(){d(t,h),t[f].classList.remove(l.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",b)}t.event.bind(t[s],"mousedown",function(e){g=p[c],m=e[i],v=(t[r]-t[n])/(t[o]-t[a]),t.event.bind(t.ownerDocument,"mousemove",b),t.event.once(t.ownerDocument,"mouseup",y),t[f].classList.add(l.state.clicking),e.stopPropagation(),e.preventDefault()})}var A=function(t){var e=t.element,n=function(){return o(e,":hover")},r=function(){return o(t.scrollbarX,":focus")||o(t.scrollbarY,":focus")};function i(n,r){var i=Math.floor(e.scrollTop);if(0===n){if(!t.scrollbarYActive)return!1;if(0===i&&r>0||i>=t.contentHeight-t.containerHeight&&r<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===r){if(!t.scrollbarXActive)return!1;if(0===o&&n<0||o>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}t.event.bind(t.ownerDocument,"keydown",function(o){if(!(o.isDefaultPrevented&&o.isDefaultPrevented()||o.defaultPrevented)&&(n()||r())){var s=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(s){if("IFRAME"===s.tagName)s=s.contentDocument.activeElement;else while(s.shadowRoot)s=s.shadowRoot.activeElement;if(w(s))return}var a=0,l=0;switch(o.which){case 37:a=o.metaKey?-t.contentWidth:o.altKey?-t.containerWidth:-30;break;case 38:l=o.metaKey?t.contentHeight:o.altKey?t.containerHeight:30;break;case 39:a=o.metaKey?t.contentWidth:o.altKey?t.containerWidth:30;break;case 40:l=o.metaKey?-t.contentHeight:o.altKey?-t.containerHeight:-30;break;case 32:l=o.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:l=t.containerHeight;break;case 34:l=-t.containerHeight;break;case 36:l=t.contentHeight;break;case 35:l=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==a||t.settings.suppressScrollY&&0!==l||(e.scrollTop-=l,e.scrollLeft+=a,x(t),i(a,l)&&o.preventDefault())}})},E=function(t){var n=t.element;function r(e,r){var i,o=Math.floor(n.scrollTop),s=0===n.scrollTop,a=o+n.offsetHeight===n.scrollHeight,l=0===n.scrollLeft,c=n.scrollLeft+n.offsetWidth===n.scrollWidth;return i=Math.abs(r)>Math.abs(e)?s||a:l||c,!i||!t.settings.wheelPropagation}function i(t){var e=t.deltaX,n=-1*t.deltaY;return"undefined"!==typeof e&&"undefined"!==typeof n||(e=-1*t.wheelDeltaX/6,n=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,n*=10),e!==e&&n!==n&&(e=0,n=t.wheelDelta),t.shiftKey?[-n,-e]:[e,n]}function o(t,r,i){if(!_.isWebKit&&n.querySelector("select:focus"))return!0;if(!n.contains(t))return!1;var o=t;while(o&&o!==n){if(o.classList.contains(l.element.consuming))return!0;var s=e(o),a=[s.overflow,s.overflowX,s.overflowY].join("");if(a.match(/(scroll|auto)/)){var c=o.scrollHeight-o.clientHeight;if(c>0&&!(0===o.scrollTop&&i>0)&&!(o.scrollTop===c&&i<0))return!0;var u=o.scrollWidth-o.clientWidth;if(u>0&&!(0===o.scrollLeft&&r<0)&&!(o.scrollLeft===u&&r>0))return!0}o=o.parentNode}return!1}function s(e){var s=i(e),a=s[0],l=s[1];if(!o(e.target,a,l)){var c=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(l?n.scrollTop-=l*t.settings.wheelSpeed:n.scrollTop+=a*t.settings.wheelSpeed,c=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(a?n.scrollLeft+=a*t.settings.wheelSpeed:n.scrollLeft-=l*t.settings.wheelSpeed,c=!0):(n.scrollTop-=l*t.settings.wheelSpeed,n.scrollLeft+=a*t.settings.wheelSpeed),x(t),c=c||r(a,l),c&&!e.ctrlKey&&(e.stopPropagation(),e.preventDefault())}}"undefined"!==typeof window.onwheel?t.event.bind(n,"wheel",s):"undefined"!==typeof window.onmousewheel&&t.event.bind(n,"mousewheel",s)},M=function(t){if(_.supportsTouch||_.supportsIePointer){var n=t.element,r={},i=0,o={},s=null;_.supportsTouch?(t.event.bind(n,"touchstart",h),t.event.bind(n,"touchmove",p),t.event.bind(n,"touchend",g)):_.supportsIePointer&&(window.PointerEvent?(t.event.bind(n,"pointerdown",h),t.event.bind(n,"pointermove",p),t.event.bind(n,"pointerup",g)):window.MSPointerEvent&&(t.event.bind(n,"MSPointerDown",h),t.event.bind(n,"MSPointerMove",p),t.event.bind(n,"MSPointerUp",g)))}function a(e,r){var i=Math.floor(n.scrollTop),o=n.scrollLeft,s=Math.abs(e),a=Math.abs(r);if(a>s){if(r<0&&i===t.contentHeight-t.containerHeight||r>0&&0===i)return 0===window.scrollY&&r>0&&_.isChrome}else if(s>a&&(e<0&&o===t.contentWidth-t.containerWidth||e>0&&0===o))return!0;return!0}function c(e,r){n.scrollTop-=r,n.scrollLeft-=e,x(t)}function u(t){return t.targetTouches?t.targetTouches[0]:t}function d(t){return(!t.pointerType||"pen"!==t.pointerType||0!==t.buttons)&&(!(!t.targetTouches||1!==t.targetTouches.length)||!(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function h(t){if(d(t)){var e=u(t);r.pageX=e.pageX,r.pageY=e.pageY,i=(new Date).getTime(),null!==s&&clearInterval(s)}}function f(t,r,i){if(!n.contains(t))return!1;var o=t;while(o&&o!==n){if(o.classList.contains(l.element.consuming))return!0;var s=e(o),a=[s.overflow,s.overflowX,s.overflowY].join("");if(a.match(/(scroll|auto)/)){var c=o.scrollHeight-o.clientHeight;if(c>0&&!(0===o.scrollTop&&i>0)&&!(o.scrollTop===c&&i<0))return!0;var u=o.scrollLeft-o.clientWidth;if(u>0&&!(0===o.scrollLeft&&r<0)&&!(o.scrollLeft===u&&r>0))return!0}o=o.parentNode}return!1}function p(t){if(d(t)){var e=u(t),n={pageX:e.pageX,pageY:e.pageY},s=n.pageX-r.pageX,l=n.pageY-r.pageY;if(f(t.target,s,l))return;c(s,l),r=n;var h=(new Date).getTime(),p=h-i;p>0&&(o.x=s/p,o.y=l/p,i=h),a(s,l)&&t.preventDefault()}}function g(){t.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){t.isInitialized?clearInterval(s):o.x||o.y?Math.abs(o.x)<.01&&Math.abs(o.y)<.01?clearInterval(s):(c(30*o.x,30*o.y),o.x*=.8,o.y*=.8):clearInterval(s)},10))}},I=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},N={"click-rail":T,"drag-thumb":O,keyboard:A,wheel:E,touch:M},j=function(t,i){var o=this;if(void 0===i&&(i={}),"string"===typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var s in this.element=t,t.classList.add(l.main),this.settings=I(),i)o.settings[s]=i[s];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var a=function(){return t.classList.add(l.state.focus)},c=function(){return t.classList.remove(l.state.focus)};this.isRtl="rtl"===e(t).direction,this.isNegativeScroll=function(){var e=t.scrollLeft,n=null;return t.scrollLeft=-1,n=t.scrollLeft<0,t.scrollLeft=e,n}(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new g,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=r(l.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=r(l.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",c),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var u=e(this.scrollbarXRail);this.scrollbarXBottom=parseInt(u.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=y(u.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=y(u.borderLeftWidth)+y(u.borderRightWidth),n(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=y(u.marginLeft)+y(u.marginRight),n(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=r(l.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=r(l.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",c),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var d=e(this.scrollbarYRail);this.scrollbarYRight=parseInt(d.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=y(d.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?k(this.scrollbarY):null,this.railBorderYWidth=y(d.borderTopWidth)+y(d.borderBottomWidth),n(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=y(d.marginTop)+y(d.marginBottom),n(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return N[t](o)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return o.onScroll(t)}),x(this)};j.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,n(this.scrollbarXRail,{display:"block"}),n(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=y(e(this.scrollbarXRail).marginLeft)+y(e(this.scrollbarXRail).marginRight),this.railYMarginHeight=y(e(this.scrollbarYRail).marginTop)+y(e(this.scrollbarYRail).marginBottom),n(this.scrollbarXRail,{display:"none"}),n(this.scrollbarYRail,{display:"none"}),x(this),v(this,"top",0,!1,!0),v(this,"left",0,!1,!0),n(this.scrollbarXRail,{display:""}),n(this.scrollbarYRail,{display:""}))},j.prototype.onScroll=function(t){this.isAlive&&(x(this),v(this,"top",this.element.scrollTop-this.lastScrollTop),v(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},j.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),s(this.scrollbarX),s(this.scrollbarY),s(this.scrollbarXRail),s(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},j.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};var D={name:"PerfectScrollbar",props:{options:{type:Object,required:!1,default:function(){}},tag:{type:String,required:!1,default:"div"}},data:function(){return{ps:null}},mounted:function(){this.ps&&this.$isServer||(this.ps=new j(this.$refs.container,this.options))},updated:function(){this.update()},beforeDestroy:function(){this.destroy()},methods:{update:function(){this.ps&&this.ps.update()},destroy:function(){this.ps&&(this.ps.destroy(),this.ps=null)}},render:function(t){return t(this.tag,{ref:"container",on:this.$listeners},this.$slots.default)}};function L(t,e){e&&(e.name&&"string"===typeof e.name&&(D.name=e.name),e.options&&"object"===typeof e.options&&(D.props.options.default=function(){return e.options}),e.tag&&"string"===typeof e.tag&&(D.props.tag.default=e.tag)),t.component(D.name,D)}t.install=L,t.PerfectScrollbar=D,t.default=L,Object.defineProperty(t,"__esModule",{value:!0})})},a4bb:function(t,e,n){t.exports=n("8aae")},a5b8:function(t,e,n){"use strict";var r=n("d8e8");function i(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=r(e),this.reject=r(n)}t.exports.f=function(t){return new i(t)}},a745:function(t,e,n){t.exports=n("f410")},a7be:function(t,e,n){},a925:function(t,e,n){"use strict";
/*!
 * vue-i18n v8.9.0 
 * (c) 2019 kazuya kawaguchi
 * Released under the MIT License.
 */function r(t,e){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function i(t){return null!==t&&"object"===typeof t}var o=Object.prototype.toString,s="[object Object]";function a(t){return o.call(t)===s}function l(t){return null===t||void 0===t}function c(){var t=[],e=arguments.length;while(e--)t[e]=arguments[e];var n=null,r=null;return 1===t.length?i(t[0])||Array.isArray(t[0])?r=t[0]:"string"===typeof t[0]&&(n=t[0]):2===t.length&&("string"===typeof t[0]&&(n=t[0]),(i(t[1])||Array.isArray(t[1]))&&(r=t[1])),{locale:n,params:r}}function u(t){return JSON.parse(JSON.stringify(t))}function d(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var h=Object.prototype.hasOwnProperty;function f(t,e){return h.call(t,e)}function p(t){for(var e=arguments,n=Object(t),r=1;r<arguments.length;r++){var o=e[r];if(void 0!==o&&null!==o){var s=void 0;for(s in o)f(o,s)&&(i(o[s])?n[s]=p(n[s],o[s]):n[s]=o[s])}}return n}function g(t,e){if(t===e)return!0;var n=i(t),r=i(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var o=Array.isArray(t),s=Array.isArray(e);if(o&&s)return t.length===e.length&&t.every(function(t,n){return g(t,e[n])});if(o||s)return!1;var a=Object.keys(t),l=Object.keys(e);return a.length===l.length&&a.every(function(n){return g(t[n],e[n])})}catch(c){return!1}}function m(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[t,r.locale,r._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){var n=[],r=arguments.length-2;while(r-- >0)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[t,i.locale,i._getMessages(),this,e].concat(n))},t.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t){var e,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},t.prototype.$n=function(t){var e,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(e=this.$i18n).n.apply(e,[t].concat(n))}}var v,b={beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n)if(t.i18n instanceof lt){if(t.__i18n)try{var e={};t.__i18n.forEach(function(t){e=p(e,JSON.parse(t))}),Object.keys(e).forEach(function(n){t.i18n.mergeLocaleMessage(n,e[n])})}catch(r){0}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData(),this._i18n.subscribeDataChanging(this),this._subscribing=!0}else if(a(t.i18n)){if(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof lt&&(t.i18n.root=this.$root,t.i18n.formatter=this.$root.$i18n.formatter,t.i18n.fallbackLocale=this.$root.$i18n.fallbackLocale,t.i18n.silentTranslationWarn=this.$root.$i18n.silentTranslationWarn,t.i18n.silentFallbackWarn=this.$root.$i18n.silentFallbackWarn,t.i18n.pluralizationRules=this.$root.$i18n.pluralizationRules,t.i18n.preserveDirectiveContent=this.$root.$i18n.preserveDirectiveContent),t.__i18n)try{var n={};t.__i18n.forEach(function(t){n=p(n,JSON.parse(t))}),t.i18n.messages=n}catch(r){0}this._i18n=new lt(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),this._i18n.subscribeDataChanging(this),this._subscribing=!0,(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale())}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof lt?(this._i18n=this.$root.$i18n,this._i18n.subscribeDataChanging(this),this._subscribing=!0):t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof lt&&(this._i18n=t.parent.$i18n,this._i18n.subscribeDataChanging(this),this._subscribing=!0)},beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick(function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher),t._i18n=null})}}},y={name:"i18n",functional:!0,props:{tag:{type:String,default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var n=e.props,r=e.data,i=e.children,o=e.parent,s=o.$i18n;if(i=(i||[]).filter(function(t){return t.tag||(t.text=t.text.trim())}),!s)return i;var a=n.path,l=n.locale,c={},u=n.places||{},d=(Array.isArray(u)?u.length:Object.keys(u).length,i.every(function(t){if(t.data&&t.data.attrs){var e=t.data.attrs.place;return"undefined"!==typeof e&&""!==e}}));return Array.isArray(u)?u.forEach(function(t,e){c[e]=t}):Object.keys(u).forEach(function(t){c[t]=u[t]}),i.forEach(function(t,e){var n=d?""+t.data.attrs.place:""+e;c[n]=t}),t(n.tag,r,s.i(a,l,c))}};function w(t,e,n){x(t,n)&&S(t,e,n)}function k(t,e,n,r){if(x(t,n)){var i=n.context.$i18n;C(t,n)&&g(e.value,e.oldValue)&&g(t._localeMessage,i.getLocaleMessage(i.locale))||S(t,e,n)}}function _(t,e,n,i){var o=n.context;if(o){var s=n.context.$i18n||{};e.modifiers.preserve||s.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t["_vt"],t._locale=void 0,delete t["_locale"],t._localeMessage=void 0,delete t["_localeMessage"]}else r("Vue instance does not exists in VNode context")}function x(t,e){var n=e.context;return n?!!n.$i18n||(r("VueI18n instance does not exists in Vue instance"),!1):(r("Vue instance does not exists in VNode context"),!1)}function C(t,e){var n=e.context;return t._locale===n.$i18n.locale}function S(t,e,n){var i,o,s=e.value,a=T(s),l=a.path,c=a.locale,u=a.args,d=a.choice;if(l||c||u)if(l){var h=n.context;t._vt=t.textContent=d?(i=h.$i18n).tc.apply(i,[l,d].concat(O(c,u))):(o=h.$i18n).t.apply(o,[l].concat(O(c,u))),t._locale=h.$i18n.locale,t._localeMessage=h.$i18n.getLocaleMessage(h.$i18n.locale)}else r("`path` is required in v-t directive");else r("value type not supported")}function T(t){var e,n,r,i;return"string"===typeof t?e=t:a(t)&&(e=t.path,n=t.locale,r=t.args,i=t.choice),{path:e,locale:n,args:r,choice:i}}function O(t,e){var n=[];return t&&n.push(t),e&&(Array.isArray(e)||a(e))&&n.push(e),n}function P(t){P.installed=!0,v=t;v.version&&Number(v.version.split(".")[0]);m(v),v.mixin(b),v.directive("t",{bind:w,update:k,unbind:_}),v.component(y.name,y);var e=v.config.optionMergeStrategies;e.i18n=function(t,e){return void 0===e?t:e}}var A=function(){this._caches=Object.create(null)};A.prototype.interpolate=function(t,e){if(!e)return[t];var n=this._caches[t];return n||(n=I(t),this._caches[t]=n),N(n,e)};var E=/^(?:\d)+/,M=/^(?:\w)+/;function I(t){var e=[],n=0,r="";while(n<t.length){var i=t[n++];if("{"===i){r&&e.push({type:"text",value:r}),r="";var o="";i=t[n++];while(void 0!==i&&"}"!==i)o+=i,i=t[n++];var s="}"===i,a=E.test(o)?"list":s&&M.test(o)?"named":"unknown";e.push({value:o,type:a})}else"%"===i?"{"!==t[n]&&(r+=i):r+=i}return r&&e.push({type:"text",value:r}),e}function N(t,e){var n=[],r=0,o=Array.isArray(e)?"list":i(e)?"named":"unknown";if("unknown"===o)return n;while(r<t.length){var s=t[r];switch(s.type){case"text":n.push(s.value);break;case"list":n.push(e[parseInt(s.value,10)]);break;case"named":"named"===o&&n.push(e[s.value]);break;case"unknown":0;break}r++}return n}var j=0,D=1,L=2,B=3,R=0,F=1,$=2,V=3,z=4,H=5,W=6,U=7,q=8,G=[];G[R]={ws:[R],ident:[V,j],"[":[z],eof:[U]},G[F]={ws:[F],".":[$],"[":[z],eof:[U]},G[$]={ws:[$],ident:[V,j],0:[V,j],number:[V,j]},G[V]={ident:[V,j],0:[V,j],number:[V,j],ws:[F,D],".":[$,D],"[":[z,D],eof:[U,D]},G[z]={"'":[H,j],'"':[W,j],"[":[z,L],"]":[F,B],eof:q,else:[z,j]},G[H]={"'":[z,j],eof:q,else:[H,j]},G[W]={'"':[z,j],eof:q,else:[W,j]};var Y=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function K(t){return Y.test(t)}function X(t){var e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e!==n||34!==e&&39!==e?t:t.slice(1,-1)}function J(t){if(void 0===t||null===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function Q(t){var e=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(K(e)?X(e):"*"+e)}function Z(t){var e,n,r,i,o,s,a,l=[],c=-1,u=R,d=0,h=[];function f(){var e=t[c+1];if(u===H&&"'"===e||u===W&&'"'===e)return c++,r="\\"+e,h[j](),!0}h[D]=function(){void 0!==n&&(l.push(n),n=void 0)},h[j]=function(){void 0===n?n=r:n+=r},h[L]=function(){h[j](),d++},h[B]=function(){if(d>0)d--,u=z,h[j]();else{if(d=0,n=Q(n),!1===n)return!1;h[D]()}};while(null!==u)if(c++,e=t[c],"\\"!==e||!f()){if(i=J(e),a=G[u],o=a[i]||a["else"]||q,o===q)return;if(u=o[0],s=h[o[1]],s&&(r=o[2],r=void 0===r?e:r,!1===s()))return;if(u===U)return l}}var tt=function(){this._cache=Object.create(null)};tt.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=Z(t),e&&(this._cache[t]=e)),e||[]},tt.prototype.getPathValue=function(t,e){if(!i(t))return null;var n=this.parsePath(e);if(0===n.length)return null;var r=n.length,o=t,s=0;while(s<r){var a=o[n[s]];if(void 0===a)return null;o=a,s++}return o};var et,nt=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher"],rt=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,it=/^@(?:\.([a-z]+))?:/,ot=/[()]/g,st={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()}},at=new A,lt=function(t){var e=this;void 0===t&&(t={}),!v&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var n=t.locale||"en-US",r=t.fallbackLocale||"en-US",i=t.messages||{},o=t.dateTimeFormats||{},s=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||at,this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&!!t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new tt,this._dataListeners=[],this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._exist=function(t,n){return!(!t||!n)&&(!l(e._path.getPathValue(t,n))||!!t[n])},this._initVM({locale:n,fallbackLocale:r,messages:i,dateTimeFormats:o,numberFormats:s})},ct={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0}};lt.prototype._initVM=function(t){var e=v.config.silent;v.config.silent=!0,this._vm=new v({data:t}),v.config.silent=e},lt.prototype.destroyVM=function(){this._vm.$destroy()},lt.prototype.subscribeDataChanging=function(t){this._dataListeners.push(t)},lt.prototype.unsubscribeDataChanging=function(t){d(this._dataListeners,t)},lt.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",function(){var e=t._dataListeners.length;while(e--)v.nextTick(function(){t._dataListeners[e]&&t._dataListeners[e].$forceUpdate()})},{deep:!0})},lt.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",function(e){t.$set(t,"locale",e),t.$forceUpdate()},{immediate:!0})},ct.vm.get=function(){return this._vm},ct.messages.get=function(){return u(this._getMessages())},ct.dateTimeFormats.get=function(){return u(this._getDateTimeFormats())},ct.numberFormats.get=function(){return u(this._getNumberFormats())},ct.availableLocales.get=function(){return Object.keys(this.messages).sort()},ct.locale.get=function(){return this._vm.locale},ct.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},ct.fallbackLocale.get=function(){return this._vm.fallbackLocale},ct.fallbackLocale.set=function(t){this._vm.$set(this._vm,"fallbackLocale",t)},ct.missing.get=function(){return this._missing},ct.missing.set=function(t){this._missing=t},ct.formatter.get=function(){return this._formatter},ct.formatter.set=function(t){this._formatter=t},ct.silentTranslationWarn.get=function(){return this._silentTranslationWarn},ct.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},ct.silentFallbackWarn.get=function(){return this._silentFallbackWarn},ct.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},ct.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},ct.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},lt.prototype._getMessages=function(){return this._vm.messages},lt.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},lt.prototype._getNumberFormats=function(){return this._vm.numberFormats},lt.prototype._warnDefault=function(t,e,n,r,i){if(!l(n))return n;if(this._missing){var o=this._missing.apply(null,[t,e,r,i]);if("string"===typeof o)return o}else 0;return e},lt.prototype._isFallbackRoot=function(t){return!t&&!l(this._root)&&this._fallbackRoot},lt.prototype._isSilentFallback=function(t){return this._silentFallbackWarn&&(this._isFallbackRoot()||t!==this.fallbackLocale)},lt.prototype._interpolate=function(t,e,n,r,i,o,s){if(!e)return null;var c,u=this._path.getPathValue(e,n);if(Array.isArray(u)||a(u))return u;if(l(u)){if(!a(e))return null;if(c=e[n],"string"!==typeof c)return null}else{if("string"!==typeof u)return null;c=u}return(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(t,e,c,r,"raw",o,s)),this._render(c,i,o,n)},lt.prototype._link=function(t,e,n,r,i,o,s){var a=this,l=n,c=l.match(rt);for(var u in c)if(c.hasOwnProperty(u)){var d=c[u],h=d.match(it),f=h[0],p=h[1],g=d.replace(f,"").replace(ot,"");if(s.includes(g))return l;s.push(g);var m=a._interpolate(t,e,g,r,"raw"===i?"string":i,"raw"===i?void 0:o,s);if(a._isFallbackRoot(m)){if(!a._root)throw Error("unexpected error");var v=a._root.$i18n;m=v._translate(v._getMessages(),v.locale,v.fallbackLocale,g,r,i,o)}m=a._warnDefault(t,g,m,r,Array.isArray(o)?o:[o]),st.hasOwnProperty(p)&&(m=st[p](m)),s.pop(),l=m?l.replace(d,m):l}return l},lt.prototype._render=function(t,e,n,r){var i=this._formatter.interpolate(t,n,r);return i||(i=at.interpolate(t,n,r)),"string"===e?i.join(""):i},lt.prototype._translate=function(t,e,n,r,i,o,s){var a=this._interpolate(e,t[e],r,i,o,s,[r]);return l(a)?(a=this._interpolate(n,t[n],r,i,o,s,[r]),l(a)?null:a):a},lt.prototype._t=function(t,e,n,r){var i,o=[],s=arguments.length-4;while(s-- >0)o[s]=arguments[s+4];if(!t)return"";var a=c.apply(void 0,o),l=a.locale||e,u=this._translate(n,l,this.fallbackLocale,t,r,"string",a.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[t].concat(o))}return this._warnDefault(l,t,u,r,o)},lt.prototype.t=function(t){var e,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(n))},lt.prototype._i=function(t,e,n,r,i){var o=this._translate(n,e,this.fallbackLocale,t,r,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,i)}return this._warnDefault(e,t,o,r,[i])},lt.prototype.i=function(t,e,n){return t?("string"!==typeof e&&(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""},lt.prototype._tc=function(t,e,n,r,i){var o,s=[],a=arguments.length-5;while(a-- >0)s[a]=arguments[a+5];if(!t)return"";void 0===i&&(i=1);var l={count:i,n:i},u=c.apply(void 0,s);return u.params=Object.assign(l,u.params),s=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((o=this)._t.apply(o,[t,e,n,r].concat(s)),i)},lt.prototype.fetchChoice=function(t,e){if(!t&&"string"!==typeof t)return null;var n=t.split("|");return e=this.getChoiceIndex(e,n.length),n[e]?n[e].trim():t},lt.prototype.getChoiceIndex=function(t,e){var n=function(t,e){return t=Math.abs(t),2===e?t?t>1?1:0:1:t?Math.min(t,2):0};return this.locale in this.pluralizationRules?this.pluralizationRules[this.locale].apply(this,[t,e]):n(t,e)},lt.prototype.tc=function(t,e){var n,r=[],i=arguments.length-2;while(i-- >0)r[i]=arguments[i+2];return(n=this)._tc.apply(n,[t,this.locale,this._getMessages(),null,e].concat(r))},lt.prototype._te=function(t,e,n){var r=[],i=arguments.length-3;while(i-- >0)r[i]=arguments[i+3];var o=c.apply(void 0,r).locale||e;return this._exist(n[o],t)},lt.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},lt.prototype.getLocaleMessage=function(t){return u(this._vm.messages[t]||{})},lt.prototype.setLocaleMessage=function(t,e){this._vm.$set(this._vm.messages,t,e)},lt.prototype.mergeLocaleMessage=function(t,e){this._vm.$set(this._vm.messages,t,p(this._vm.messages[t]||{},e))},lt.prototype.getDateTimeFormat=function(t){return u(this._vm.dateTimeFormats[t]||{})},lt.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e)},lt.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,p(this._vm.dateTimeFormats[t]||{},e))},lt.prototype._localizeDateTime=function(t,e,n,r,i){var o=e,s=r[o];if((l(s)||l(s[i]))&&(o=n,s=r[o]),l(s)||l(s[i]))return null;var a=s[i],c=o+"__"+i,u=this._dateTimeFormatters[c];return u||(u=this._dateTimeFormatters[c]=new Intl.DateTimeFormat(o,a)),u.format(t)},lt.prototype._d=function(t,e,n){if(!n)return new Intl.DateTimeFormat(e).format(t);var r=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(t,n,e)}return r||""},lt.prototype.d=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var r=this.locale,o=null;return 1===e.length?"string"===typeof e[0]?o=e[0]:i(e[0])&&(e[0].locale&&(r=e[0].locale),e[0].key&&(o=e[0].key)):2===e.length&&("string"===typeof e[0]&&(o=e[0]),"string"===typeof e[1]&&(r=e[1])),this._d(t,r,o)},lt.prototype.getNumberFormat=function(t){return u(this._vm.numberFormats[t]||{})},lt.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e)},lt.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,p(this._vm.numberFormats[t]||{},e))},lt.prototype._localizeNumber=function(t,e,n,r,i,o){var s=e,a=r[s];if((l(a)||l(a[i]))&&(s=n,a=r[s]),l(a)||l(a[i]))return null;var c,u=a[i];if(o)c=new Intl.NumberFormat(s,Object.assign({},u,o));else{var d=s+"__"+i;c=this._numberFormatters[d],c||(c=this._numberFormatters[d]=new Intl.NumberFormat(s,u))}return c.format(t)},lt.prototype._n=function(t,e,n,r){if(!lt.availabilities.numberFormat)return"";if(!n){var i=r?new Intl.NumberFormat(e,r):new Intl.NumberFormat(e);return i.format(t)}var o=this._localizeNumber(t,e,this.fallbackLocale,this._getNumberFormats(),n,r);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(t,Object.assign({},{key:n,locale:e},r))}return o||""},lt.prototype.n=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var r=this.locale,o=null,s=null;return 1===e.length?"string"===typeof e[0]?o=e[0]:i(e[0])&&(e[0].locale&&(r=e[0].locale),e[0].key&&(o=e[0].key),s=Object.keys(e[0]).reduce(function(t,n){var r;return nt.includes(n)?Object.assign({},t,(r={},r[n]=e[0][n],r)):t},null)):2===e.length&&("string"===typeof e[0]&&(o=e[0]),"string"===typeof e[1]&&(r=e[1])),this._n(t,r,o,s)},Object.defineProperties(lt.prototype,ct),Object.defineProperty(lt,"availabilities",{get:function(){if(!et){var t="undefined"!==typeof Intl;et={dateTimeFormat:t&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:t&&"undefined"!==typeof Intl.NumberFormat}}return et}}),lt.install=P,lt.version="8.9.0",e["a"]=lt},aa77:function(t,e,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),s=n("fdef"),a="["+s+"]",l="​…",c=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),d=function(t,e,n){var i={},a=o(function(){return!!s[t]()||l[t]()!=l}),c=i[t]=a?e(h):s[t];n&&(i[n]=c),r(r.P+r.F*a,"String",i)},h=d.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(u,"")),t};t.exports=d},aae3:function(t,e,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},aba2:function(t,e,n){var r=n("e53d"),i=n("4178").set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,l="process"==n("6b4c")(s);t.exports=function(){var t,e,n,c=function(){var r,i;l&&(r=s.domain)&&r.exit();while(t){i=t.fn,t=t.next;try{i()}catch(o){throw t?n():e=void 0,o}}e=void 0,r&&r.enter()};if(l)n=function(){s.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);n=function(){u.then(c)}}else n=function(){i.call(r,c)};else{var d=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),s=n("7726"),a=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),h=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(f),g=0;g<p.length;g++){var m,v=p[g],b=f[v],y=s[v],w=y&&y.prototype;if(w&&(w[u]||a(w,u,h),w[d]||a(w,d,v),l[v]=h,b))for(m in r)w[m]||o(w,m,r[m],!0)}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0c5:function(t,e,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b0dc:function(t,e,n){var r=n("e4ae");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(s){var o=t["return"];throw void 0!==o&&r(o.call(t)),s}}},b447:function(t,e,n){var r=n("3a38"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},b50d:function(t,e,n){"use strict";var r=n("c532"),i=n("467f"),o=n("30b5"),s=n("c3456"),a=n("3934"),l=n("2d83");t.exports=function(t){return new Promise(function(e,c){var u=t.data,d=t.headers;r.isFormData(u)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",p=t.auth.password||"";d.Authorization="Basic "+btoa(f+":"+p)}if(h.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?h.response:h.responseText,o={data:r,status:h.status,statusText:h.statusText,headers:n,config:t,request:h};i(e,c,o),h=null}},h.onerror=function(){c(l("Network Error",t,null,h)),h=null},h.ontimeout=function(){c(l("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=n("7aac"),m=(t.withCredentials||a(t.url))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;m&&(d[t.xsrfHeaderName]=m)}if("setRequestHeader"in h&&r.forEach(d,function(t,e){"undefined"===typeof u&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)}),t.withCredentials&&(h.withCredentials=!0),t.responseType)try{h.responseType=t.responseType}catch(v){if("json"!==t.responseType)throw v}"function"===typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){h&&(h.abort(),c(t),h=null)}),void 0===u&&(u=null),h.send(u)})}},b606:function(t,e,n){n("9c60"),t.exports=n("584a").Object.entries},b6fc:function(t,e,n){},b8e3:function(t,e){t.exports=!0},b9e9:function(t,e,n){n("7445"),t.exports=n("584a").parseInt},bc13:function(t,e,n){var r=n("e53d"),i=r.navigator;t.exports=i&&i.userAgent||""},bc3a:function(t,e,n){t.exports=n("cee4")},bcaa:function(t,e,n){var r=n("cb7c"),i=n("d3f4"),o=n("a5b8");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),s=n.resolve;return s(e),n.promise}},bd86:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("85f2"),i=n.n(r);function o(t,e,n){return e in t?i()(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},bf0b:function(t,e,n){var r=n("355d"),i=n("aebd"),o=n("36c3"),s=n("1bc3"),a=n("07e3"),l=n("794b"),c=Object.getOwnPropertyDescriptor;e.f=n("8e60")?c:function(t,e){if(t=o(t),e=s(e,!0),l)try{return c(t,e)}catch(n){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},bf90:function(t,e,n){var r=n("36c3"),i=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},c207:function(t,e){},c345:function(t,e,n){!function(e,n){t.exports=n()}("undefined"!=typeof self&&self,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=22)}([function(t,e){function n(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){function r(t){for(var e=0;e<t.length;e++){var n=t[e],r=u[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(o(n.parts[i]));u[n.id]={id:n.id,refs:1,parts:s}}}}function i(){var t=document.createElement("style");return t.type="text/css",d.appendChild(t),t}function o(t){var e,n,r=document.querySelector("style["+v+'~="'+t.id+'"]');if(r){if(p)return g;r.parentNode.removeChild(r)}if(b){var o=f++;r=h||(h=i()),e=s.bind(null,r,o,!1),n=s.bind(null,r,o,!0)}else r=i(),e=a.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}function s(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function a(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),m.ssrId&&t.setAttribute(v,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(26),u={},d=l&&(document.head||document.getElementsByTagName("head")[0]),h=null,f=0,p=!1,g=function(){},m=null,v="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n,i){p=n,m=i||{};var o=c(t,e);return r(o),function(e){for(var n=[],i=0;i<o.length;i++){var s=o[i],a=u[s.id];a.refs--,n.push(a)}e?(o=c(t,e),r(o)):o=[];for(i=0;i<n.length;i++){a=n[i];if(0===a.refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete u[a.id]}}}};var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e,n,r,i,o){var s,a=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(s=t,a=t.default);var c,u="function"==typeof a?a.options:a;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):r&&(c=r),c){var d=u.functional,h=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),h(t,e)}):u.beforeCreate=h?[].concat(h,c):[c]}return{esModule:s,exports:a,options:u}}},function(t,e,n){"use strict";function r(t,e){var n,r=t&&t.a;!(n=t&&t.hsl?(0,o.default)(t.hsl):t&&t.hex&&t.hex.length>0?(0,o.default)(t.hex):(0,o.default)(t))||void 0!==n._a&&null!==n._a||n.setAlpha(r||1);var i=n.toHsl(),s=n.toHsv();return 0===i.s&&(s.h=i.h=t.h||t.hsl&&t.hsl.h||e||0),{hsl:i,hex:n.toHexString().toUpperCase(),hex8:n.toHex8String().toUpperCase(),rgba:n.toRgb(),hsv:s,oldHue:t.h||e||i.h,source:t.source,a:t.a||n.getAlpha()}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(27),o=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={props:["value"],data:function(){return{val:r(this.value)}},computed:{colors:{get:function(){return this.val},set:function(t){this.val=t,this.$emit("input",t)}}},watch:{value:function(t){this.val=r(t)}},methods:{colorChange:function(t,e){this.oldHue=this.colors.hsl.h,this.colors=r(t,e||this.oldHue)},isValidHex:function(t){return(0,o.default)(t).isValid()},simpleCheckForValidColor:function(t){for(var e=["r","g","b","a","h","s","l","v"],n=0,r=0,i=0;i<e.length;i++){var o=e[i];t[o]&&(n++,isNaN(t[o])||r++)}if(n===r)return t},paletteUpperCase:function(t){return t.map(function(t){return t.toUpperCase()})},isTransparent:function(t){return 0===(0,o.default)(t).getAlpha()}}}},function(t,e,n){"use strict";function r(t){l||n(28)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var a=n(30),l=!1,c=n(2),u=r,d=c(o.a,a.a,!1,u,null,null);d.options.__file="src/components/common/EditableInput.vue",e.default=d.exports},function(t,e,n){"use strict";function r(t){l||n(43)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var a=n(45),l=!1,c=n(2),u=r,d=c(o.a,a.a,!1,u,null,null);d.options.__file="src/components/common/Hue.vue",e.default=d.exports},function(t,e,n){"use strict";function r(t){l||n(55)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var a=n(60),l=!1,c=n(2),u=r,d=c(o.a,a.a,!1,u,null,null);d.options.__file="src/components/common/Saturation.vue",e.default=d.exports},function(t,e,n){"use strict";function r(t){l||n(61)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var a=n(66),l=!1,c=n(2),u=r,d=c(o.a,a.a,!1,u,null,null);d.options.__file="src/components/common/Alpha.vue",e.default=d.exports},function(t,e,n){"use strict";function r(t){l||n(63)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var a=n(65),l=!1,c=n(2),u=r,d=c(o.a,a.a,!1,u,null,null);d.options.__file="src/components/common/Checkboard.vue",e.default=d.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=r(i),s=n(4),a=r(s),l=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];e.default={name:"Compact",mixins:[o.default],props:{palette:{type:Array,default:function(){return l}}},components:{"ed-in":a.default},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(t){this.colorChange({hex:t,source:"hex"})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get:function(){return this.value},set:function(t){if(!(void 0!==this.max&&+t>this.max))return t;this.$refs.input.value=this.max}},labelId:function(){return"input__label__"+this.label+"__"+Math.random().toString().slice(2,5)},labelSpanText:function(){return this.labelText||this.label}},methods:{update:function(t){this.handleChange(t.target.value)},handleChange:function(t){var e={};e[this.label]=t,void 0===e.hex&&void 0===e["#"]?this.$emit("change",e):t.length>5&&this.$emit("change",e)},handleKeyDown:function(t){var e=this.val,n=Number(e);if(n){var r=this.arrowOffset||1;38===t.keyCode&&(e=n+r,this.handleChange(e),t.preventDefault()),40===t.keyCode&&(e=n-r,this.handleChange(e),t.preventDefault())}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];e.default={name:"Grayscale",mixins:[i.default],props:{palette:{type:Array,default:function(){return o}}},components:{},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(t){this.colorChange({hex:t,source:"hex"})}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),o=r(i),s=n(3),a=r(s);e.default={name:"Material",mixins:[a.default],components:{"ed-in":o.default},methods:{onChange:function(t){t&&(t.hex?this.isValidHex(t.hex)&&this.colorChange({hex:t.hex,source:"hex"}):(t.r||t.g||t.b)&&this.colorChange({r:t.r||this.colors.rgba.r,g:t.g||this.colors.rgba.g,b:t.b||this.colors.rgba.b,a:t.a||this.colors.rgba.a,source:"rgba"}))}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=r(i),s=n(5),a=r(s);e.default={name:"Slider",mixins:[o.default],props:{swatches:{type:Array,default:function(){return[".80",".65",".50",".35",".20"]}}},components:{hue:a.default},computed:{activeOffset:function(){var t=this.swatches.includes("0"),e=this.swatches.includes("1"),n=this.colors.hsl;return Math.round(100*n.s)/100==.5?Math.round(100*n.l)/100:t&&0===n.l?0:e&&1===n.l?1:-1}},methods:{hueChange:function(t){this.colorChange(t)},handleSwClick:function(t,e){this.colorChange({h:this.colors.hsl.h,s:.5,l:e,source:"hsl"})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data:function(){return{oldHue:0,pullDirection:""}},computed:{colors:function(){var t=this.value.hsl.h;return 0!==t&&t-this.oldHue>0&&(this.pullDirection="right"),0!==t&&t-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=t,this.value},directionClass:function(){return{"vc-hue--horizontal":"horizontal"===this.direction,"vc-hue--vertical":"vertical"===this.direction}},pointerTop:function(){return"vertical"===this.direction?0===this.colors.hsl.h&&"right"===this.pullDirection?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft:function(){return"vertical"===this.direction?0:0===this.colors.hsl.h&&"right"===this.pullDirection?"100%":100*this.colors.hsl.h/360+"%"}},methods:{handleChange:function(t,e){!e&&t.preventDefault();var n,r,i=this.$refs.container,o=i.clientWidth,s=i.clientHeight,a=i.getBoundingClientRect().left+window.pageXOffset,l=i.getBoundingClientRect().top+window.pageYOffset,c=t.pageX||(t.touches?t.touches[0].pageX:0),u=t.pageY||(t.touches?t.touches[0].pageY:0),d=c-a,h=u-l;"vertical"===this.direction?(h<0?n=360:h>s?n=0:(r=-100*h/s+100,n=360*r/100),this.colors.hsl.h!==n&&this.$emit("change",{h:n,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(d<0?n=0:d>o?n=360:(r=100*d/o,n=360*r/100),this.colors.hsl.h!==n&&this.$emit("change",{h:n,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))},handleMouseDown:function(t){this.handleChange(t,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(t){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(50),o=r(i),s=n(3),a=r(s),l=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","blueGrey","black"],c=["900","700","500","300","100"],u=function(){var t=[];return l.forEach(function(e){var n=[];"black"===e.toLowerCase()||"white"===e.toLowerCase()?n=n.concat(["#000000","#FFFFFF"]):c.forEach(function(t){var r=o.default[e][t];n.push(r.toUpperCase())}),t.push(n)}),t}();e.default={name:"Swatches",mixins:[a.default],props:{palette:{type:Array,default:function(){return u}}},computed:{pick:function(){return this.colors.hex}},methods:{equal:function(t){return t.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(t){this.colorChange({hex:t,source:"hex"})}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=r(i),s=n(4),a=r(s),l=n(6),c=r(l),u=n(5),d=r(u),h=n(7),f=r(h);e.default={name:"Photoshop",mixins:[o.default],props:{head:{type:String,default:"Color Picker"},disableFields:{type:Boolean,default:!1},hasResetButton:{type:Boolean,default:!1},acceptLabel:{type:String,default:"OK"},cancelLabel:{type:String,default:"Cancel"},resetLabel:{type:String,default:"Reset"},newLabel:{type:String,default:"new"},currentLabel:{type:String,default:"current"}},components:{saturation:c.default,hue:d.default,alpha:f.default,"ed-in":a.default},data:function(){return{currentColor:"#FFF"}},computed:{hsv:function(){var t=this.colors.hsv;return{h:t.h.toFixed(),s:(100*t.s).toFixed(),v:(100*t.v).toFixed()}},hex:function(){var t=this.colors.hex;return t&&t.replace("#","")}},created:function(){this.currentColor=this.colors.hex},methods:{childChange:function(t){this.colorChange(t)},inputChange:function(t){t&&(t["#"]?this.isValidHex(t["#"])&&this.colorChange({hex:t["#"],source:"hex"}):t.r||t.g||t.b||t.a?this.colorChange({r:t.r||this.colors.rgba.r,g:t.g||this.colors.rgba.g,b:t.b||this.colors.rgba.b,a:t.a||this.colors.rgba.a,source:"rgba"}):(t.h||t.s||t.v)&&this.colorChange({h:t.h||this.colors.hsv.h,s:t.s/100||this.colors.hsv.s,v:t.v/100||this.colors.hsv.v,source:"hsv"}))},clickCurrentColor:function(){this.colorChange({hex:this.currentColor,source:"hex"})},handleAccept:function(){this.$emit("ok")},handleCancel:function(){this.$emit("cancel")},handleReset:function(){this.$emit("reset")}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(57),o=r(i),s=n(58),a=r(s);e.default={name:"Saturation",props:{value:Object},computed:{colors:function(){return this.value},bgColor:function(){return"hsl("+this.colors.hsv.h+", 100%, 50%)"},pointerTop:function(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft:function(){return 100*this.colors.hsv.s+"%"}},methods:{throttle:(0,a.default)(function(t,e){t(e)},20,{leading:!0,trailing:!1}),handleChange:function(t,e){!e&&t.preventDefault();var n=this.$refs.container,r=n.clientWidth,i=n.clientHeight,s=n.getBoundingClientRect().left+window.pageXOffset,a=n.getBoundingClientRect().top+window.pageYOffset,l=t.pageX||(t.touches?t.touches[0].pageX:0),c=t.pageY||(t.touches?t.touches[0].pageY:0),u=(0,o.default)(l-s,0,r),d=(0,o.default)(c-a,0,i),h=u/r,f=(0,o.default)(-d/i+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:h,v:f,a:this.colors.hsv.a,source:"hsva"})},onChange:function(t){this.$emit("change",t)},handleMouseDown:function(t){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(t){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(8),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"Alpha",props:{value:Object,onChange:Function},components:{checkboard:i.default},computed:{colors:function(){return this.value},gradientColor:function(){var t=this.colors.rgba,e=[t.r,t.g,t.b].join(",");return"linear-gradient(to right, rgba("+e+", 0) 0%, rgba("+e+", 1) 100%)"}},methods:{handleChange:function(t,e){!e&&t.preventDefault();var n,r=this.$refs.container,i=r.clientWidth,o=r.getBoundingClientRect().left+window.pageXOffset,s=t.pageX||(t.touches?t.touches[0].pageX:0),a=s-o;n=a<0?0:a>i?1:Math.round(100*a/i)/100,this.colors.a!==n&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:n,source:"rgba"})},handleMouseDown:function(t){this.handleChange(t,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(t,e,n){"use strict";function r(t,e,n){if("undefined"==typeof document)return null;var r=document.createElement("canvas");r.width=r.height=2*n;var i=r.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,r.width,r.height),i.fillStyle=e,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),r.toDataURL()):null}function i(t,e,n){var i=t+","+e+","+n;if(o[i])return o[i];var s=r(t,e,n);return o[i]=s,s}Object.defineProperty(e,"__esModule",{value:!0});var o={};e.default={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle:function(){return{"background-image":"url("+i(this.white,this.grey,this.size)+")"}}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=r(i),s=n(4),a=r(s),l=n(6),c=r(l),u=n(5),d=r(u),h=n(7),f=r(h),p=n(8),g=r(p),m=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF","rgba(0,0,0,0)"];e.default={name:"Sketch",mixins:[o.default],components:{saturation:c.default,hue:d.default,alpha:f.default,"ed-in":a.default,checkboard:g.default},props:{presetColors:{type:Array,default:function(){return m}},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},computed:{hex:function(){var t=void 0;return t=this.colors.a<1?this.colors.hex8:this.colors.hex,t.replace("#","")},activeColor:function(){var t=this.colors.rgba;return"rgba("+[t.r,t.g,t.b,t.a].join(",")+")"}},methods:{handlePreset:function(t){this.colorChange({hex:t,source:"hex"})},childChange:function(t){this.colorChange(t)},inputChange:function(t){t&&(t.hex?this.isValidHex(t.hex)&&this.colorChange({hex:t.hex,source:"hex"}):(t.r||t.g||t.b||t.a)&&this.colorChange({r:t.r||this.colors.rgba.r,g:t.g||this.colors.rgba.g,b:t.b||this.colors.rgba.b,a:t.a||this.colors.rgba.a,source:"rgba"}))}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=r(i),s=n(4),a=r(s),l=n(6),c=r(l),u=n(5),d=r(u),h=n(7),f=r(h),p=n(8),g=r(p);e.default={name:"Chrome",mixins:[o.default],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},components:{saturation:c.default,hue:d.default,alpha:f.default,"ed-in":a.default,checkboard:g.default},data:function(){return{fieldsIndex:0,highlight:!1}},computed:{hsl:function(){var t=this.colors.hsl,e=t.h,n=t.s,r=t.l;return{h:e.toFixed(),s:(100*n).toFixed()+"%",l:(100*r).toFixed()+"%"}},activeColor:function(){var t=this.colors.rgba;return"rgba("+[t.r,t.g,t.b,t.a].join(",")+")"},hasAlpha:function(){return this.colors.a<1}},methods:{childChange:function(t){this.colorChange(t)},inputChange:function(t){if(t)if(t.hex)this.isValidHex(t.hex)&&this.colorChange({hex:t.hex,source:"hex"});else if(t.r||t.g||t.b||t.a)this.colorChange({r:t.r||this.colors.rgba.r,g:t.g||this.colors.rgba.g,b:t.b||this.colors.rgba.b,a:t.a||this.colors.rgba.a,source:"rgba"});else if(t.h||t.s||t.l){var e=t.s?t.s.replace("%","")/100:this.colors.hsl.s,n=t.l?t.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:t.h||this.colors.hsl.h,s:e,l:n,source:"hsl"})}},toggleViews:function(){this.fieldsIndex>=2?this.fieldsIndex=0:this.fieldsIndex++},showHighlight:function(){this.highlight=!0},hideHighlight:function(){this.highlight=!1}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(23),o=r(i),s=n(32),a=r(s),l=n(36),c=r(l),u=n(40),d=r(u),h=n(47),f=r(h),p=n(52),g=r(p),m=n(68),v=r(m),b=n(72),y=r(b),w=n(7),k=r(w),_=n(8),x=r(_),C=n(4),S=r(C),T=n(5),O=r(T),P=n(6),A=r(P),E=n(3),M=r(E),I={version:"2.7.0",Compact:o.default,Grayscale:a.default,Material:c.default,Slider:d.default,Swatches:f.default,Photoshop:g.default,Sketch:v.default,Chrome:y.default,Alpha:k.default,Checkboard:x.default,EditableInput:S.default,Hue:O.default,Saturation:A.default,ColorMixin:M.default};t.exports=I},function(t,e,n){"use strict";function r(t){l||n(24)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(9),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var a=n(31),l=!1,c=n(2),u=r,d=c(o.a,a.a,!1,u,null,null);d.options.__file="src/components/Compact.vue",e.default=d.exports},function(t,e,n){var r=n(25);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("6ce8a5a8",r,!1,{})},function(t,e,n){e=t.exports=n(0)(!1),e.push([t.i,"\n.vc-compact {\n  padding-top: 5px;\n  padding-left: 5px;\n  width: 240px;\n  border-radius: 2px;\n  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);\n  background-color: #fff;\n}\n.vc-compact-colors {\n  overflow: hidden;\n  padding: 0;\n  margin: 0;\n}\n.vc-compact-color-item {\n  list-style: none;\n  width: 15px;\n  height: 15px;\n  float: left;\n  margin-right: 5px;\n  margin-bottom: 5px;\n  position: relative;\n  cursor: pointer;\n}\n.vc-compact-color-item--white {\n  box-shadow: inset 0 0 0 1px #ddd;\n}\n.vc-compact-color-item--white .vc-compact-dot {\n  background: #000;\n}\n.vc-compact-dot {\n  position: absolute;\n  top: 5px;\n  right: 5px;\n  bottom: 5px;\n  left: 5px;\n  border-radius: 50%;\n  opacity: 1;\n  background: #fff;\n}\n",""])},function(t,e){t.exports=function(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=o[0],a=o[1],l=o[2],c=o[3],u={id:t+":"+i,css:a,media:l,sourceMap:c};r[s]?r[s].parts.push(u):n.push(r[s]={id:s,parts:[u]})}return n}},function(t,e,n){var r;!function(i){function o(t,e){if(t=t||"",e=e||{},t instanceof o)return t;if(!(this instanceof o))return new o(t,e);var n=s(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=W(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=W(this._r)),this._g<1&&(this._g=W(this._g)),this._b<1&&(this._b=W(this._b)),this._ok=n.ok,this._tc_id=H++}function s(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,l=!1;return"string"==typeof t&&(t=F(t)),"object"==typeof t&&(R(t.r)&&R(t.g)&&R(t.b)?(e=a(t.r,t.g,t.b),s=!0,l="%"===String(t.r).substr(-1)?"prgb":"rgb"):R(t.h)&&R(t.s)&&R(t.v)?(r=D(t.s),i=D(t.v),e=d(t.h,r,i),s=!0,l="hsv"):R(t.h)&&R(t.s)&&R(t.l)&&(r=D(t.s),o=D(t.l),e=c(t.h,r,o),s=!0,l="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=P(n),{ok:s,format:t.format||l,r:U(255,q(e.r,0)),g:U(255,q(e.g,0)),b:U(255,q(e.b,0)),a:n}}function a(t,e,n){return{r:255*A(t,255),g:255*A(e,255),b:255*A(n,255)}}function l(t,e,n){t=A(t,255),e=A(e,255),n=A(n,255);var r,i,o=q(t,e,n),s=U(t,e,n),a=(o+s)/2;if(o==s)r=i=0;else{var l=o-s;switch(i=a>.5?l/(2-o-s):l/(o+s),o){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:i,l:a}}function c(t,e,n){function r(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}var i,o,s;if(t=A(t,360),e=A(e,100),n=A(n,100),0===e)i=o=s=n;else{var a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=r(l,a,t+1/3),o=r(l,a,t),s=r(l,a,t-1/3)}return{r:255*i,g:255*o,b:255*s}}function u(t,e,n){t=A(t,255),e=A(e,255),n=A(n,255);var r,i,o=q(t,e,n),s=U(t,e,n),a=o,l=o-s;if(i=0===o?0:l/o,o==s)r=0;else{switch(o){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:i,v:a}}function d(t,e,n){t=6*A(t,360),e=A(e,100),n=A(n,100);var r=i.floor(t),o=t-r,s=n*(1-e),a=n*(1-o*e),l=n*(1-(1-o)*e),c=r%6;return{r:255*[n,a,s,s,l,n][c],g:255*[l,n,n,a,s,s][c],b:255*[s,s,l,n,n,a][c]}}function h(t,e,n,r){var i=[j(W(t).toString(16)),j(W(e).toString(16)),j(W(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function f(t,e,n,r,i){var o=[j(W(t).toString(16)),j(W(e).toString(16)),j(W(n).toString(16)),j(L(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function p(t,e,n,r){return[j(L(r)),j(W(t).toString(16)),j(W(e).toString(16)),j(W(n).toString(16))].join("")}function g(t,e){e=0===e?0:e||10;var n=o(t).toHsl();return n.s-=e/100,n.s=E(n.s),o(n)}function m(t,e){e=0===e?0:e||10;var n=o(t).toHsl();return n.s+=e/100,n.s=E(n.s),o(n)}function v(t){return o(t).desaturate(100)}function b(t,e){e=0===e?0:e||10;var n=o(t).toHsl();return n.l+=e/100,n.l=E(n.l),o(n)}function y(t,e){e=0===e?0:e||10;var n=o(t).toRgb();return n.r=q(0,U(255,n.r-W(-e/100*255))),n.g=q(0,U(255,n.g-W(-e/100*255))),n.b=q(0,U(255,n.b-W(-e/100*255))),o(n)}function w(t,e){e=0===e?0:e||10;var n=o(t).toHsl();return n.l-=e/100,n.l=E(n.l),o(n)}function k(t,e){var n=o(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,o(n)}function _(t){var e=o(t).toHsl();return e.h=(e.h+180)%360,o(e)}function x(t){var e=o(t).toHsl(),n=e.h;return[o(t),o({h:(n+120)%360,s:e.s,l:e.l}),o({h:(n+240)%360,s:e.s,l:e.l})]}function C(t){var e=o(t).toHsl(),n=e.h;return[o(t),o({h:(n+90)%360,s:e.s,l:e.l}),o({h:(n+180)%360,s:e.s,l:e.l}),o({h:(n+270)%360,s:e.s,l:e.l})]}function S(t){var e=o(t).toHsl(),n=e.h;return[o(t),o({h:(n+72)%360,s:e.s,l:e.l}),o({h:(n+216)%360,s:e.s,l:e.l})]}function T(t,e,n){e=e||6,n=n||30;var r=o(t).toHsl(),i=360/n,s=[o(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,s.push(o(r));return s}function O(t,e){e=e||6;for(var n=o(t).toHsv(),r=n.h,i=n.s,s=n.v,a=[],l=1/e;e--;)a.push(o({h:r,s:i,v:s})),s=(s+l)%1;return a}function P(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function A(t,e){I(t)&&(t="100%");var n=N(t);return t=U(e,q(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),i.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function E(t){return U(1,q(0,t))}function M(t){return parseInt(t,16)}function I(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)}function N(t){return"string"==typeof t&&-1!=t.indexOf("%")}function j(t){return 1==t.length?"0"+t:""+t}function D(t){return t<=1&&(t=100*t+"%"),t}function L(t){return i.round(255*parseFloat(t)).toString(16)}function B(t){return M(t)/255}function R(t){return!!X.CSS_UNIT.exec(t)}function F(t){t=t.replace(V,"").replace(z,"").toLowerCase();var e,n=!1;if(Y[t])t=Y[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=X.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=X.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=X.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=X.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=X.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=X.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=X.hex8.exec(t))?{r:M(e[1]),g:M(e[2]),b:M(e[3]),a:B(e[4]),format:n?"name":"hex8"}:(e=X.hex6.exec(t))?{r:M(e[1]),g:M(e[2]),b:M(e[3]),format:n?"name":"hex"}:(e=X.hex4.exec(t))?{r:M(e[1]+""+e[1]),g:M(e[2]+""+e[2]),b:M(e[3]+""+e[3]),a:B(e[4]+""+e[4]),format:n?"name":"hex8"}:!!(e=X.hex3.exec(t))&&{r:M(e[1]+""+e[1]),g:M(e[2]+""+e[2]),b:M(e[3]+""+e[3]),format:n?"name":"hex"}}function $(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:e,size:n}}var V=/^\s+/,z=/\s+$/,H=0,W=i.round,U=i.min,q=i.max,G=i.random;o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r,o,s,a=this.toRgb();return t=a.r/255,e=a.g/255,n=a.b/255,r=t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4),o=e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4),s=n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4),.2126*r+.7152*o+.0722*s},setAlpha:function(t){return this._a=P(t),this._roundA=W(100*this._a)/100,this},toHsv:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=u(this._r,this._g,this._b),e=W(360*t.h),n=W(100*t.s),r=W(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=l(this._r,this._g,this._b),e=W(360*t.h),n=W(100*t.s),r=W(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return f(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:W(this._r),g:W(this._g),b:W(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+W(this._r)+", "+W(this._g)+", "+W(this._b)+")":"rgba("+W(this._r)+", "+W(this._g)+", "+W(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:W(100*A(this._r,255))+"%",g:W(100*A(this._g,255))+"%",b:W(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+W(100*A(this._r,255))+"%, "+W(100*A(this._g,255))+"%, "+W(100*A(this._b,255))+"%)":"rgba("+W(100*A(this._r,255))+"%, "+W(100*A(this._g,255))+"%, "+W(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(K[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+p(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=o(t);n="#"+p(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return o(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(x,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},o.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:D(t[r]));t=n}return o(t,e)},o.equals=function(t,e){return!(!t||!e)&&o(t).toRgbString()==o(e).toRgbString()},o.random=function(){return o.fromRatio({r:G(),g:G(),b:G()})},o.mix=function(t,e,n){n=0===n?0:n||50;var r=o(t).toRgb(),i=o(e).toRgb(),s=n/100;return o({r:(i.r-r.r)*s+r.r,g:(i.g-r.g)*s+r.g,b:(i.b-r.b)*s+r.b,a:(i.a-r.a)*s+r.a})},o.readability=function(t,e){var n=o(t),r=o(e);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},o.isReadable=function(t,e,n){var r,i,s=o.readability(t,e);switch(i=!1,r=$(n),r.level+r.size){case"AAsmall":case"AAAlarge":i=s>=4.5;break;case"AAlarge":i=s>=3;break;case"AAAsmall":i=s>=7}return i},o.mostReadable=function(t,e,n){var r,i,s,a,l=null,c=0;n=n||{},i=n.includeFallbackColors,s=n.level,a=n.size;for(var u=0;u<e.length;u++)(r=o.readability(t,e[u]))>c&&(c=r,l=o(e[u]));return o.isReadable(t,l,{level:s,size:a})||!i?l:(n.includeFallbackColors=!1,o.mostReadable(t,["#fff","#000"],n))};var Y=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},K=o.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(Y),X=function(){var t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",e="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+e),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+e),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+e),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();void 0!==t&&t.exports?t.exports=o:void 0!==(r=function(){return o}.call(e,n,e,t))&&(t.exports=r)}(Math)},function(t,e,n){var r=n(29);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("0f73e73c",r,!1,{})},function(t,e,n){e=t.exports=n(0)(!1),e.push([t.i,"\n.vc-editable-input {\n  position: relative;\n}\n.vc-input__input {\n  padding: 0;\n  border: 0;\n  outline: none;\n}\n.vc-input__label {\n  text-transform: capitalize;\n}\n",""])},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vc-editable-input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],ref:"input",staticClass:"vc-input__input",attrs:{"aria-labelledby":t.labelId},domProps:{value:t.val},on:{keydown:t.handleKeyDown,input:[function(e){e.target.composing||(t.val=e.target.value)},t.update]}}),t._v(" "),n("span",{staticClass:"vc-input__label",attrs:{for:t.label,id:t.labelId}},[t._v(t._s(t.labelSpanText))]),t._v(" "),n("span",{staticClass:"vc-input__desc"},[t._v(t._s(t.desc))])])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};e.a=o},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vc-compact",attrs:{role:"application","aria-label":"Compact color picker"}},[n("ul",{staticClass:"vc-compact-colors",attrs:{role:"listbox"}},t._l(t.paletteUpperCase(t.palette),function(e){return n("li",{key:e,staticClass:"vc-compact-color-item",class:{"vc-compact-color-item--white":"#FFFFFF"===e},style:{background:e},attrs:{role:"option","aria-label":"color:"+e,"aria-selected":e===t.pick},on:{click:function(n){t.handlerClick(e)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e===t.pick,expression:"c === pick"}],staticClass:"vc-compact-dot"})])}))])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};e.a=o},function(t,e,n){"use strict";function r(t){l||n(33)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var a=n(35),l=!1,c=n(2),u=r,d=c(o.a,a.a,!1,u,null,null);d.options.__file="src/components/Grayscale.vue",e.default=d.exports},function(t,e,n){var r=n(34);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("21ddbb74",r,!1,{})},function(t,e,n){e=t.exports=n(0)(!1),e.push([t.i,"\n.vc-grayscale {\n  width: 125px;\n  border-radius: 2px;\n  box-shadow: 0 2px 15px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.16);\n  background-color: #fff;\n}\n.vc-grayscale-colors {\n  border-radius: 2px;\n  overflow: hidden;\n  padding: 0;\n  margin: 0;\n}\n.vc-grayscale-color-item {\n  list-style: none;\n  width: 25px;\n  height: 25px;\n  float: left;\n  position: relative;\n  cursor: pointer;\n}\n.vc-grayscale-color-item--white .vc-grayscale-dot {\n  background: #000;\n}\n.vc-grayscale-dot {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  width: 6px;\n  height: 6px;\n  margin: -3px 0 0 -2px;\n  border-radius: 50%;\n  opacity: 1;\n  background: #fff;\n}\n",""])},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vc-grayscale",attrs:{role:"application","aria-label":"Grayscale color picker"}},[n("ul",{staticClass:"vc-grayscale-colors",attrs:{role:"listbox"}},t._l(t.paletteUpperCase(t.palette),function(e){return n("li",{key:e,staticClass:"vc-grayscale-color-item",class:{"vc-grayscale-color-item--white":"#FFFFFF"==e},style:{background:e},attrs:{role:"option","aria-label":"Color:"+e,"aria-selected":e===t.pick},on:{click:function(n){t.handlerClick(e)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e===t.pick,expression:"c === pick"}],staticClass:"vc-grayscale-dot"})])}))])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};e.a=o},function(t,e,n){"use strict";function r(t){l||n(37)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var a=n(39),l=!1,c=n(2),u=r,d=c(o.a,a.a,!1,u,null,null);d.options.__file="src/components/Material.vue",e.default=d.exports},function(t,e,n){var r=n(38);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("1ff3af73",r,!1,{})},function(t,e,n){e=t.exports=n(0)(!1),e.push([t.i,'\n.vc-material {\n  width: 98px;\n  height: 98px;\n  padding: 16px;\n  font-family: "Roboto";\n  position: relative;\n  border-radius: 2px;\n  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);\n  background-color: #fff;\n}\n.vc-material .vc-input__input {\n  width: 100%;\n  margin-top: 12px;\n  font-size: 15px;\n  color: #333;\n  height: 30px;\n}\n.vc-material .vc-input__label {\n  position: absolute;\n  top: 0;\n  left: 0;\n  font-size: 11px;\n  color: #999;\n  text-transform: capitalize;\n}\n.vc-material-hex {\n  border-bottom-width: 2px;\n  border-bottom-style: solid;\n}\n.vc-material-split {\n  display: flex;\n  margin-right: -10px;\n  padding-top: 11px;\n}\n.vc-material-third {\n  flex: 1;\n  padding-right: 10px;\n}\n',""])},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vc-material",attrs:{role:"application","aria-label":"Material color picker"}},[n("ed-in",{staticClass:"vc-material-hex",style:{borderColor:t.colors.hex},attrs:{label:"hex"},on:{change:t.onChange},model:{value:t.colors.hex,callback:function(e){t.$set(t.colors,"hex",e)},expression:"colors.hex"}}),t._v(" "),n("div",{staticClass:"vc-material-split"},[n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"r"},on:{change:t.onChange},model:{value:t.colors.rgba.r,callback:function(e){t.$set(t.colors.rgba,"r",e)},expression:"colors.rgba.r"}})],1),t._v(" "),n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"g"},on:{change:t.onChange},model:{value:t.colors.rgba.g,callback:function(e){t.$set(t.colors.rgba,"g",e)},expression:"colors.rgba.g"}})],1),t._v(" "),n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"b"},on:{change:t.onChange},model:{value:t.colors.rgba.b,callback:function(e){t.$set(t.colors.rgba,"b",e)},expression:"colors.rgba.b"}})],1)])],1)},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};e.a=o},function(t,e,n){"use strict";function r(t){l||n(41)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var a=n(46),l=!1,c=n(2),u=r,d=c(o.a,a.a,!1,u,null,null);d.options.__file="src/components/Slider.vue",e.default=d.exports},function(t,e,n){var r=n(42);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("7982aa43",r,!1,{})},function(t,e,n){e=t.exports=n(0)(!1),e.push([t.i,"\n.vc-slider {\n  position: relative;\n  width: 410px;\n}\n.vc-slider-hue-warp {\n  height: 12px;\n  position: relative;\n}\n.vc-slider-hue-warp .vc-hue-picker {\n  width: 14px;\n  height: 14px;\n  border-radius: 6px;\n  transform: translate(-7px, -2px);\n  background-color: rgb(248, 248, 248);\n  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n}\n.vc-slider-swatches {\n  display: flex;\n  margin-top: 20px;\n}\n.vc-slider-swatch {\n  margin-right: 1px;\n  flex: 1;\n  width: 20%;\n}\n.vc-slider-swatch:first-child {\n  margin-right: 1px;\n}\n.vc-slider-swatch:first-child .vc-slider-swatch-picker {\n  border-radius: 2px 0px 0px 2px;\n}\n.vc-slider-swatch:last-child {\n  margin-right: 0;\n}\n.vc-slider-swatch:last-child .vc-slider-swatch-picker {\n  border-radius: 0px 2px 2px 0px;\n}\n.vc-slider-swatch-picker {\n  cursor: pointer;\n  height: 12px;\n}\n.vc-slider-swatch-picker--active {\n  transform: scaleY(1.8);\n  border-radius: 3.6px/2px;\n}\n.vc-slider-swatch-picker--white {\n  box-shadow: inset 0 0 0 1px #ddd;\n}\n.vc-slider-swatch-picker--active.vc-slider-swatch-picker--white {\n  box-shadow: inset 0 0 0 0.6px #ddd;\n}\n",""])},function(t,e,n){var r=n(44);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("7c5f1a1c",r,!1,{})},function(t,e,n){e=t.exports=n(0)(!1),e.push([t.i,"\n.vc-hue {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  border-radius: 2px;\n}\n.vc-hue--horizontal {\n  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n}\n.vc-hue--vertical {\n  background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n}\n.vc-hue-container {\n  cursor: pointer;\n  margin: 0 2px;\n  position: relative;\n  height: 100%;\n}\n.vc-hue-pointer {\n  z-index: 2;\n  position: absolute;\n}\n.vc-hue-picker {\n  cursor: pointer;\n  margin-top: 1px;\n  width: 4px;\n  border-radius: 1px;\n  height: 8px;\n  box-shadow: 0 0 2px rgba(0, 0, 0, .6);\n  background: #fff;\n  transform: translateX(-2px) ;\n}\n",""])},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vc-hue",t.directionClass]},[n("div",{ref:"container",staticClass:"vc-hue-container",attrs:{role:"slider","aria-valuenow":t.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360"},on:{mousedown:t.handleMouseDown,touchmove:t.handleChange,touchstart:t.handleChange}},[n("div",{staticClass:"vc-hue-pointer",style:{top:t.pointerTop,left:t.pointerLeft},attrs:{role:"presentation"}},[n("div",{staticClass:"vc-hue-picker"})])])])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};e.a=o},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vc-slider",attrs:{role:"application","aria-label":"Slider color picker"}},[n("div",{staticClass:"vc-slider-hue-warp"},[n("hue",{on:{change:t.hueChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1),t._v(" "),n("div",{staticClass:"vc-slider-swatches",attrs:{role:"group"}},t._l(t.swatches,function(e,r){return n("div",{key:r,staticClass:"vc-slider-swatch",attrs:{"data-index":r,"aria-label":"color:"+t.colors.hex,role:"button"},on:{click:function(n){t.handleSwClick(r,e)}}},[n("div",{staticClass:"vc-slider-swatch-picker",class:{"vc-slider-swatch-picker--active":e==t.activeOffset,"vc-slider-swatch-picker--white":"1"===e},style:{background:"hsl("+t.colors.hsl.h+", 50%, "+100*e+"%)"}})])}))])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};e.a=o},function(t,e,n){"use strict";function r(t){l||n(48)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(15),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var a=n(51),l=!1,c=n(2),u=r,d=c(o.a,a.a,!1,u,null,null);d.options.__file="src/components/Swatches.vue",e.default=d.exports},function(t,e,n){var r=n(49);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("10f839a2",r,!1,{})},function(t,e,n){e=t.exports=n(0)(!1),e.push([t.i,"\n.vc-swatches {\n  width: 320px;\n  height: 240px;\n  overflow-y: scroll;\n  background-color: #fff;\n  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);\n}\n.vc-swatches-box {\n  padding: 16px 0 6px 16px;\n  overflow: hidden;\n}\n.vc-swatches-color-group {\n  padding-bottom: 10px;\n  width: 40px;\n  float: left;\n  margin-right: 10px;\n}\n.vc-swatches-color-it {\n  box-sizing: border-box;\n  width: 40px;\n  height: 24px;\n  cursor: pointer;\n  background: #880e4f;\n  margin-bottom: 1px;\n  overflow: hidden;\n  -ms-border-radius: 2px 2px 0 0;\n  -moz-border-radius: 2px 2px 0 0;\n  -o-border-radius: 2px 2px 0 0;\n  -webkit-border-radius: 2px 2px 0 0;\n  border-radius: 2px 2px 0 0;\n}\n.vc-swatches-color--white {\n  border: 1px solid #DDD;\n}\n.vc-swatches-pick {\n  fill: rgb(255, 255, 255);\n  margin-left: 8px;\n  display: block;\n}\n.vc-swatches-color--white .vc-swatches-pick {\n  fill: rgb(51, 51, 51);\n}\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"red",function(){return r}),n.d(e,"pink",function(){return i}),n.d(e,"purple",function(){return o}),n.d(e,"deepPurple",function(){return s}),n.d(e,"indigo",function(){return a}),n.d(e,"blue",function(){return l}),n.d(e,"lightBlue",function(){return c}),n.d(e,"cyan",function(){return u}),n.d(e,"teal",function(){return d}),n.d(e,"green",function(){return h}),n.d(e,"lightGreen",function(){return f}),n.d(e,"lime",function(){return p}),n.d(e,"yellow",function(){return g}),n.d(e,"amber",function(){return m}),n.d(e,"orange",function(){return v}),n.d(e,"deepOrange",function(){return b}),n.d(e,"brown",function(){return y}),n.d(e,"grey",function(){return w}),n.d(e,"blueGrey",function(){return k}),n.d(e,"darkText",function(){return _}),n.d(e,"lightText",function(){return x}),n.d(e,"darkIcons",function(){return C}),n.d(e,"lightIcons",function(){return S}),n.d(e,"white",function(){return T}),n.d(e,"black",function(){return O});var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},i={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},o={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},s={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},a={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},l={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},c={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},u={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},d={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},h={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},f={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},p={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},g={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},m={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},b={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},y={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},w={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},k={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},_={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},x={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},C={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},S={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},T="#ffffff",O="#000000";e.default={red:r,pink:i,purple:o,deepPurple:s,indigo:a,blue:l,lightBlue:c,cyan:u,teal:d,green:h,lightGreen:f,lime:p,yellow:g,amber:m,orange:v,deepOrange:b,brown:y,grey:w,blueGrey:k,darkText:_,lightText:x,darkIcons:C,lightIcons:S,white:T,black:O}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vc-swatches",attrs:{role:"application","aria-label":"Swatches color picker","data-pick":t.pick}},[n("div",{staticClass:"vc-swatches-box",attrs:{role:"listbox"}},t._l(t.palette,function(e,r){return n("div",{key:r,staticClass:"vc-swatches-color-group"},t._l(e,function(e){return n("div",{key:e,class:["vc-swatches-color-it",{"vc-swatches-color--white":"#FFFFFF"===e}],style:{background:e},attrs:{role:"option","aria-label":"Color:"+e,"aria-selected":t.equal(e),"data-color":e},on:{click:function(n){t.handlerClick(e)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.equal(e),expression:"equal(c)"}],staticClass:"vc-swatches-pick"},[n("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}})])])])}))}))])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};e.a=o},function(t,e,n){"use strict";function r(t){l||n(53)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(16),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var a=n(67),l=!1,c=n(2),u=r,d=c(o.a,a.a,!1,u,null,null);d.options.__file="src/components/Photoshop.vue",e.default=d.exports},function(t,e,n){var r=n(54);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("080365d4",r,!1,{})},function(t,e,n){e=t.exports=n(0)(!1),e.push([t.i,'\n.vc-photoshop {\n  background: #DCDCDC;\n  border-radius: 4px;\n  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15);\n  box-sizing: initial;\n  width: 513px;\n  font-family: Roboto;\n}\n.vc-photoshop__disable-fields {\n  width: 390px;\n}\n.vc-ps-head {\n  background-image: linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%);\n  border-bottom: 1px solid #B1B1B1;\n  box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02);\n  height: 23px;\n  line-height: 24px;\n  border-radius: 4px 4px 0 0;\n  font-size: 13px;\n  color: #4D4D4D;\n  text-align: center;\n}\n.vc-ps-body {\n  padding: 15px;\n  display: flex;\n}\n.vc-ps-saturation-wrap {\n  width: 256px;\n  height: 256px;\n  position: relative;\n  border: 2px solid #B3B3B3;\n  border-bottom: 2px solid #F0F0F0;\n  overflow: hidden;\n}\n.vc-ps-saturation-wrap .vc-saturation-circle {\n  width: 12px;\n  height: 12px;\n}\n.vc-ps-hue-wrap {\n  position: relative;\n  height: 256px;\n  width: 19px;\n  margin-left: 10px;\n  border: 2px solid #B3B3B3;\n  border-bottom: 2px solid #F0F0F0;\n}\n.vc-ps-hue-pointer {\n  position: relative;\n}\n.vc-ps-hue-pointer--left,\n.vc-ps-hue-pointer--right {\n  position: absolute;\n  width: 0;\n  height: 0;\n  border-style: solid;\n  border-width: 5px 0 5px 8px;\n  border-color: transparent transparent transparent #555;\n}\n.vc-ps-hue-pointer--left:after,\n.vc-ps-hue-pointer--right:after {\n  content: "";\n  width: 0;\n  height: 0;\n  border-style: solid;\n  border-width: 4px 0 4px 6px;\n  border-color: transparent transparent transparent #fff;\n  position: absolute;\n  top: 1px;\n  left: 1px;\n  transform: translate(-8px, -5px);\n}\n.vc-ps-hue-pointer--left {\n  transform: translate(-13px, -4px);\n}\n.vc-ps-hue-pointer--right {\n  transform: translate(20px, -4px) rotate(180deg);\n}\n.vc-ps-controls {\n  width: 180px;\n  margin-left: 10px;\n  display: flex;\n}\n.vc-ps-controls__disable-fields {\n  width: auto;\n}\n.vc-ps-actions {\n  margin-left: 20px;\n  flex: 1;\n}\n.vc-ps-ac-btn {\n  cursor: pointer;\n  background-image: linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%);\n  border: 1px solid #878787;\n  border-radius: 2px;\n  height: 20px;\n  box-shadow: 0 1px 0 0 #EAEAEA;\n  font-size: 14px;\n  color: #000;\n  line-height: 20px;\n  text-align: center;\n  margin-bottom: 10px;\n}\n.vc-ps-previews {\n  width: 60px;\n}\n.vc-ps-previews__swatches {\n  border: 1px solid #B3B3B3;\n  border-bottom: 1px solid #F0F0F0;\n  margin-bottom: 2px;\n  margin-top: 1px;\n}\n.vc-ps-previews__pr-color {\n  height: 34px;\n  box-shadow: inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000;\n}\n.vc-ps-previews__label {\n  font-size: 14px;\n  color: #000;\n  text-align: center;\n}\n.vc-ps-fields {\n  padding-top: 5px;\n  padding-bottom: 9px;\n  width: 80px;\n  position: relative;\n}\n.vc-ps-fields .vc-input__input {\n  margin-left: 40%;\n  width: 40%;\n  height: 18px;\n  border: 1px solid #888888;\n  box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;\n  margin-bottom: 5px;\n  font-size: 13px;\n  padding-left: 3px;\n  margin-right: 10px;\n}\n.vc-ps-fields .vc-input__label, .vc-ps-fields .vc-input__desc {\n  top: 0;\n  text-transform: uppercase;\n  font-size: 13px;\n  height: 18px;\n  line-height: 22px;\n  position: absolute;\n}\n.vc-ps-fields .vc-input__label {\n  left: 0;\n  width: 34px;\n}\n.vc-ps-fields .vc-input__desc {\n  right: 0;\n  width: 0;\n}\n.vc-ps-fields__divider {\n  height: 5px;\n}\n.vc-ps-fields__hex .vc-input__input {\n  margin-left: 20%;\n  width: 80%;\n  height: 18px;\n  border: 1px solid #888888;\n  box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;\n  margin-bottom: 6px;\n  font-size: 13px;\n  padding-left: 3px;\n}\n.vc-ps-fields__hex .vc-input__label {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 14px;\n  text-transform: uppercase;\n  font-size: 13px;\n  height: 18px;\n  line-height: 22px;\n}\n',""])},function(t,e,n){var r=n(56);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("b5380e52",r,!1,{})},function(t,e,n){e=t.exports=n(0)(!1),e.push([t.i,"\n.vc-saturation,\n.vc-saturation--white,\n.vc-saturation--black {\n  cursor: pointer;\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n}\n.vc-saturation--white {\n  background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n}\n.vc-saturation--black {\n  background: linear-gradient(to top, #000, rgba(0,0,0,0));\n}\n.vc-saturation-pointer {\n  cursor: pointer;\n  position: absolute;\n}\n.vc-saturation-circle {\n  cursor: head;\n  width: 4px;\n  height: 4px;\n  box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 0 0 1px 2px rgba(0,0,0,.4);\n  border-radius: 50%;\n  transform: translate(-2px, -2px);\n}\n",""])},function(t,e){function n(t,e,n){return e<n?t<e?e:t>n?n:t:t<n?n:t>e?e:t}t.exports=n},function(t,e,n){(function(e){function n(t,e,n){function r(e){var n=g,r=m;return g=m=void 0,C=e,b=t.apply(r,n)}function o(t){return C=t,y=setTimeout(u,e),S?r(t):b}function s(t){var n=t-w,r=t-C,i=e-n;return T?_(i,v-r):i}function c(t){var n=t-w,r=t-C;return void 0===w||n>=e||n<0||T&&r>=v}function u(){var t=x();if(c(t))return d(t);y=setTimeout(u,s(t))}function d(t){return y=void 0,O&&g?r(t):(g=m=void 0,b)}function h(){void 0!==y&&clearTimeout(y),C=0,g=w=m=y=void 0}function f(){return void 0===y?b:d(x())}function p(){var t=x(),n=c(t);if(g=arguments,m=this,w=t,n){if(void 0===y)return o(w);if(T)return y=setTimeout(u,e),r(w)}return void 0===y&&(y=setTimeout(u,e)),b}var g,m,v,b,y,w,C=0,S=!1,T=!1,O=!0;if("function"!=typeof t)throw new TypeError(l);return e=a(e)||0,i(n)&&(S=!!n.leading,T="maxWait"in n,v=T?k(a(n.maxWait)||0,e):v,O="trailing"in n?!!n.trailing:O),p.cancel=h,p.flush=f,p}function r(t,e,r){var o=!0,s=!0;if("function"!=typeof t)throw new TypeError(l);return i(r)&&(o="leading"in r?!!r.leading:o,s="trailing"in r?!!r.trailing:s),n(t,e,{leading:o,maxWait:e,trailing:s})}function i(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function o(t){return!!t&&"object"==typeof t}function s(t){return"symbol"==typeof t||o(t)&&w.call(t)==u}function a(t){if("number"==typeof t)return t;if(s(t))return c;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=t.replace(d,"");var n=f.test(t);return n||p.test(t)?g(t.slice(2),n?2:8):h.test(t)?c:+t}var l="Expected a function",c=NaN,u="[object Symbol]",d=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,p=/^0o[0-7]+$/i,g=parseInt,m="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,b=m||v||Function("return this")(),y=Object.prototype,w=y.toString,k=Math.max,_=Math.min,x=function(){return b.Date.now()};t.exports=r}).call(e,n(59))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"container",staticClass:"vc-saturation",style:{background:t.bgColor},on:{mousedown:t.handleMouseDown,touchmove:t.handleChange,touchstart:t.handleChange}},[n("div",{staticClass:"vc-saturation--white"}),t._v(" "),n("div",{staticClass:"vc-saturation--black"}),t._v(" "),n("div",{staticClass:"vc-saturation-pointer",style:{top:t.pointerTop,left:t.pointerLeft}},[n("div",{staticClass:"vc-saturation-circle"})])])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};e.a=o},function(t,e,n){var r=n(62);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("4dc1b086",r,!1,{})},function(t,e,n){e=t.exports=n(0)(!1),e.push([t.i,"\n.vc-alpha {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n}\n.vc-alpha-checkboard-wrap {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  overflow: hidden;\n}\n.vc-alpha-gradient {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n}\n.vc-alpha-container {\n  cursor: pointer;\n  position: relative;\n  z-index: 2;\n  height: 100%;\n  margin: 0 3px;\n}\n.vc-alpha-pointer {\n  z-index: 2;\n  position: absolute;\n}\n.vc-alpha-picker {\n  cursor: pointer;\n  width: 4px;\n  border-radius: 1px;\n  height: 8px;\n  box-shadow: 0 0 2px rgba(0, 0, 0, .6);\n  background: #fff;\n  margin-top: 1px;\n  transform: translateX(-2px);\n}\n",""])},function(t,e,n){var r=n(64);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("7e15c05b",r,!1,{})},function(t,e,n){e=t.exports=n(0)(!1),e.push([t.i,"\n.vc-checkerboard {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  background-size: contain;\n}\n",""])},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"vc-checkerboard",style:t.bgStyle})},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};e.a=o},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vc-alpha"},[n("div",{staticClass:"vc-alpha-checkboard-wrap"},[n("checkboard")],1),t._v(" "),n("div",{staticClass:"vc-alpha-gradient",style:{background:t.gradientColor}}),t._v(" "),n("div",{ref:"container",staticClass:"vc-alpha-container",on:{mousedown:t.handleMouseDown,touchmove:t.handleChange,touchstart:t.handleChange}},[n("div",{staticClass:"vc-alpha-pointer",style:{left:100*t.colors.a+"%"}},[n("div",{staticClass:"vc-alpha-picker"})])])])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};e.a=o},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vc-photoshop",t.disableFields?"vc-photoshop__disable-fields":""],attrs:{role:"application","aria-label":"PhotoShop color picker"}},[n("div",{staticClass:"vc-ps-head",attrs:{role:"heading"}},[t._v(t._s(t.head))]),t._v(" "),n("div",{staticClass:"vc-ps-body"},[n("div",{staticClass:"vc-ps-saturation-wrap"},[n("saturation",{on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1),t._v(" "),n("div",{staticClass:"vc-ps-hue-wrap"},[n("hue",{attrs:{direction:"vertical"},on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}},[n("div",{staticClass:"vc-ps-hue-pointer"},[n("i",{staticClass:"vc-ps-hue-pointer--left"}),n("i",{staticClass:"vc-ps-hue-pointer--right"})])])],1),t._v(" "),n("div",{class:["vc-ps-controls",t.disableFields?"vc-ps-controls__disable-fields":""]},[n("div",{staticClass:"vc-ps-previews"},[n("div",{staticClass:"vc-ps-previews__label"},[t._v(t._s(t.newLabel))]),t._v(" "),n("div",{staticClass:"vc-ps-previews__swatches"},[n("div",{staticClass:"vc-ps-previews__pr-color",style:{background:t.colors.hex},attrs:{"aria-label":"New color is "+t.colors.hex}}),t._v(" "),n("div",{staticClass:"vc-ps-previews__pr-color",style:{background:t.currentColor},attrs:{"aria-label":"Current color is "+t.currentColor},on:{click:t.clickCurrentColor}})]),t._v(" "),n("div",{staticClass:"vc-ps-previews__label"},[t._v(t._s(t.currentLabel))])]),t._v(" "),t.disableFields?t._e():n("div",{staticClass:"vc-ps-actions"},[n("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":t.acceptLabel},on:{click:t.handleAccept}},[t._v(t._s(t.acceptLabel))]),t._v(" "),n("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":t.cancelLabel},on:{click:t.handleCancel}},[t._v(t._s(t.cancelLabel))]),t._v(" "),n("div",{staticClass:"vc-ps-fields"},[n("ed-in",{attrs:{label:"h",desc:"°",value:t.hsv.h},on:{change:t.inputChange}}),t._v(" "),n("ed-in",{attrs:{label:"s",desc:"%",value:t.hsv.s,max:100},on:{change:t.inputChange}}),t._v(" "),n("ed-in",{attrs:{label:"v",desc:"%",value:t.hsv.v,max:100},on:{change:t.inputChange}}),t._v(" "),n("div",{staticClass:"vc-ps-fields__divider"}),t._v(" "),n("ed-in",{attrs:{label:"r",value:t.colors.rgba.r},on:{change:t.inputChange}}),t._v(" "),n("ed-in",{attrs:{label:"g",value:t.colors.rgba.g},on:{change:t.inputChange}}),t._v(" "),n("ed-in",{attrs:{label:"b",value:t.colors.rgba.b},on:{change:t.inputChange}}),t._v(" "),n("div",{staticClass:"vc-ps-fields__divider"}),t._v(" "),n("ed-in",{staticClass:"vc-ps-fields__hex",attrs:{label:"#",value:t.hex},on:{change:t.inputChange}})],1),t._v(" "),t.hasResetButton?n("div",{staticClass:"vc-ps-ac-btn",attrs:{"aria-label":"reset"},on:{click:t.handleReset}},[t._v(t._s(t.resetLabel))]):t._e()])])])])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};e.a=o},function(t,e,n){"use strict";function r(t){l||n(69)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(20),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var a=n(71),l=!1,c=n(2),u=r,d=c(o.a,a.a,!1,u,null,null);d.options.__file="src/components/Sketch.vue",e.default=d.exports},function(t,e,n){var r=n(70);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("612c6604",r,!1,{})},function(t,e,n){e=t.exports=n(0)(!1),e.push([t.i,"\n.vc-sketch {\n  position: relative;\n  width: 200px;\n  padding: 10px 10px 0;\n  box-sizing: initial;\n  background: #fff;\n  border-radius: 4px;\n  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 8px 16px rgba(0, 0, 0, .15);\n}\n.vc-sketch-saturation-wrap {\n  width: 100%;\n  padding-bottom: 75%;\n  position: relative;\n  overflow: hidden;\n}\n.vc-sketch-controls {\n  display: flex;\n}\n.vc-sketch-sliders {\n  padding: 4px 0;\n  flex: 1;\n}\n.vc-sketch-sliders .vc-hue,\n.vc-sketch-sliders .vc-alpha-gradient {\n  border-radius: 2px;\n}\n.vc-sketch-hue-wrap {\n  position: relative;\n  height: 10px;\n}\n.vc-sketch-alpha-wrap {\n  position: relative;\n  height: 10px;\n  margin-top: 4px;\n  overflow: hidden;\n}\n.vc-sketch-color-wrap {\n  width: 24px;\n  height: 24px;\n  position: relative;\n  margin-top: 4px;\n  margin-left: 4px;\n  border-radius: 3px;\n}\n.vc-sketch-active-color {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  border-radius: 2px;\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), inset 0 0 4px rgba(0, 0, 0, .25);\n  z-index: 2;\n}\n.vc-sketch-color-wrap .vc-checkerboard {\n  background-size: auto;\n}\n.vc-sketch-field {\n  display: flex;\n  padding-top: 4px;\n}\n.vc-sketch-field .vc-input__input {\n  width: 90%;\n  padding: 4px 0 3px 10%;\n  border: none;\n  box-shadow: inset 0 0 0 1px #ccc;\n  font-size: 10px;\n}\n.vc-sketch-field .vc-input__label {\n  display: block;\n  text-align: center;\n  font-size: 11px;\n  color: #222;\n  padding-top: 3px;\n  padding-bottom: 4px;\n  text-transform: capitalize;\n}\n.vc-sketch-field--single {\n  flex: 1;\n  padding-left: 6px;\n}\n.vc-sketch-field--double {\n  flex: 2;\n}\n.vc-sketch-presets {\n  margin-right: -10px;\n  margin-left: -10px;\n  padding-left: 10px;\n  padding-top: 10px;\n  border-top: 1px solid #eee;\n}\n.vc-sketch-presets-color {\n  border-radius: 3px;\n  overflow: hidden;\n  position: relative;\n  display: inline-block;\n  margin: 0 10px 10px 0;\n  vertical-align: top;\n  cursor: pointer;\n  width: 16px;\n  height: 16px;\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);\n}\n.vc-sketch-presets-color .vc-checkerboard {\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);\n  border-radius: 3px;\n}\n.vc-sketch__disable-alpha .vc-sketch-color-wrap {\n  height: 10px;\n}\n",""])},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vc-sketch",t.disableAlpha?"vc-sketch__disable-alpha":""],attrs:{role:"application","aria-label":"Sketch color picker"}},[n("div",{staticClass:"vc-sketch-saturation-wrap"},[n("saturation",{on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1),t._v(" "),n("div",{staticClass:"vc-sketch-controls"},[n("div",{staticClass:"vc-sketch-sliders"},[n("div",{staticClass:"vc-sketch-hue-wrap"},[n("hue",{on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-sketch-alpha-wrap"},[n("alpha",{on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1)]),t._v(" "),n("div",{staticClass:"vc-sketch-color-wrap"},[n("div",{staticClass:"vc-sketch-active-color",style:{background:t.activeColor},attrs:{"aria-label":"Current color is "+t.activeColor}}),t._v(" "),n("checkboard")],1)]),t._v(" "),t.disableFields?t._e():n("div",{staticClass:"vc-sketch-field"},[n("div",{staticClass:"vc-sketch-field--double"},[n("ed-in",{attrs:{label:"hex",value:t.hex},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"r",value:t.colors.rgba.r},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"g",value:t.colors.rgba.g},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"b",value:t.colors.rgba.b},on:{change:t.inputChange}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"a",value:t.colors.a,"arrow-offset":.01,max:1},on:{change:t.inputChange}})],1)]),t._v(" "),n("div",{staticClass:"vc-sketch-presets",attrs:{role:"group","aria-label":"A color preset, pick one to set as current color"}},[t._l(t.presetColors,function(e){return[t.isTransparent(e)?n("div",{key:e,staticClass:"vc-sketch-presets-color",attrs:{"aria-label":"Color:"+e},on:{click:function(n){t.handlePreset(e)}}},[n("checkboard")],1):n("div",{key:e,staticClass:"vc-sketch-presets-color",style:{background:e},attrs:{"aria-label":"Color:"+e},on:{click:function(n){t.handlePreset(e)}}})]})],2)])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};e.a=o},function(t,e,n){"use strict";function r(t){l||n(73)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(21),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var a=n(75),l=!1,c=n(2),u=r,d=c(o.a,a.a,!1,u,null,null);d.options.__file="src/components/Chrome.vue",e.default=d.exports},function(t,e,n){var r=n(74);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("1cd16048",r,!1,{})},function(t,e,n){e=t.exports=n(0)(!1),e.push([t.i,"\n.vc-chrome {\n  background: #fff;\n  border-radius: 2px;\n  box-shadow: 0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3);\n  box-sizing: initial;\n  width: 225px;\n  font-family: Menlo;\n  background-color: #fff;\n}\n.vc-chrome-controls {\n  display: flex;\n}\n.vc-chrome-color-wrap {\n  position: relative;\n  width: 36px;\n}\n.vc-chrome-active-color {\n  position: relative;\n  width: 30px;\n  height: 30px;\n  border-radius: 15px;\n  overflow: hidden;\n  z-index: 1;\n}\n.vc-chrome-color-wrap .vc-checkerboard {\n  width: 30px;\n  height: 30px;\n  border-radius: 15px;\n  background-size: auto;\n}\n.vc-chrome-sliders {\n  flex: 1;\n}\n.vc-chrome-fields-wrap {\n  display: flex;\n  padding-top: 16px;\n}\n.vc-chrome-fields {\n  display: flex;\n  margin-left: -6px;\n  flex: 1;\n}\n.vc-chrome-field {\n  padding-left: 6px;\n  width: 100%;\n}\n.vc-chrome-toggle-btn {\n  width: 32px;\n  text-align: right;\n  position: relative;\n}\n.vc-chrome-toggle-icon {\n  margin-right: -4px;\n  margin-top: 12px;\n  cursor: pointer;\n  position: relative;\n  z-index: 2;\n}\n.vc-chrome-toggle-icon-highlight {\n  position: absolute;\n  width: 24px;\n  height: 28px;\n  background: #eee;\n  border-radius: 4px;\n  top: 10px;\n  left: 12px;\n}\n.vc-chrome-hue-wrap {\n  position: relative;\n  height: 10px;\n  margin-bottom: 8px;\n}\n.vc-chrome-alpha-wrap {\n  position: relative;\n  height: 10px;\n}\n.vc-chrome-hue-wrap .vc-hue {\n  border-radius: 2px;\n}\n.vc-chrome-alpha-wrap .vc-alpha-gradient {\n  border-radius: 2px;\n}\n.vc-chrome-hue-wrap .vc-hue-picker, .vc-chrome-alpha-wrap .vc-alpha-picker {\n  width: 12px;\n  height: 12px;\n  border-radius: 6px;\n  transform: translate(-6px, -2px);\n  background-color: rgb(248, 248, 248);\n  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n}\n.vc-chrome-body {\n  padding: 16px 16px 12px;\n  background-color: #fff;\n}\n.vc-chrome-saturation-wrap {\n  width: 100%;\n  padding-bottom: 55%;\n  position: relative;\n  border-radius: 2px 2px 0 0;\n  overflow: hidden;\n}\n.vc-chrome-saturation-wrap .vc-saturation-circle {\n  width: 12px;\n  height: 12px;\n}\n.vc-chrome-fields .vc-input__input {\n  font-size: 11px;\n  color: #333;\n  width: 100%;\n  border-radius: 2px;\n  border: none;\n  box-shadow: inset 0 0 0 1px #dadada;\n  height: 21px;\n  text-align: center;\n}\n.vc-chrome-fields .vc-input__label {\n  text-transform: uppercase;\n  font-size: 11px;\n  line-height: 11px;\n  color: #969696;\n  text-align: center;\n  display: block;\n  margin-top: 12px;\n}\n.vc-chrome__disable-alpha .vc-chrome-active-color {\n  width: 18px;\n  height: 18px;\n}\n.vc-chrome__disable-alpha .vc-chrome-color-wrap {\n  width: 30px;\n}\n.vc-chrome__disable-alpha .vc-chrome-hue-wrap {\n  margin-top: 4px;\n  margin-bottom: 4px;\n}\n",""])},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vc-chrome",t.disableAlpha?"vc-chrome__disable-alpha":""],attrs:{role:"application","aria-label":"Chrome color picker"}},[n("div",{staticClass:"vc-chrome-saturation-wrap"},[n("saturation",{on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-body"},[n("div",{staticClass:"vc-chrome-controls"},[n("div",{staticClass:"vc-chrome-color-wrap"},[n("div",{staticClass:"vc-chrome-active-color",style:{background:t.activeColor},attrs:{"aria-label":"current color is "+t.colors.hex}}),t._v(" "),t.disableAlpha?t._e():n("checkboard")],1),t._v(" "),n("div",{staticClass:"vc-chrome-sliders"},[n("div",{staticClass:"vc-chrome-hue-wrap"},[n("hue",{on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-chrome-alpha-wrap"},[n("alpha",{on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1)])]),t._v(" "),t.disableFields?t._e():n("div",{staticClass:"vc-chrome-fields-wrap"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0===t.fieldsIndex,expression:"fieldsIndex === 0"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[t.hasAlpha?t._e():n("ed-in",{attrs:{label:"hex",value:t.colors.hex},on:{change:t.inputChange}}),t._v(" "),t.hasAlpha?n("ed-in",{attrs:{label:"hex",value:t.colors.hex8},on:{change:t.inputChange}}):t._e()],1)]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:1===t.fieldsIndex,expression:"fieldsIndex === 1"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"r",value:t.colors.rgba.r},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"g",value:t.colors.rgba.g},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"b",value:t.colors.rgba.b},on:{change:t.inputChange}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"a",value:t.colors.a,"arrow-offset":.01,max:1},on:{change:t.inputChange}})],1)]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:2===t.fieldsIndex,expression:"fieldsIndex === 2"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"h",value:t.hsl.h},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"s",value:t.hsl.s},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"l",value:t.hsl.l},on:{change:t.inputChange}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"a",value:t.colors.a,"arrow-offset":.01,max:1},on:{change:t.inputChange}})],1)]),t._v(" "),n("div",{staticClass:"vc-chrome-toggle-btn",attrs:{role:"button","aria-label":"Change another color definition"},on:{click:t.toggleViews}},[n("div",{staticClass:"vc-chrome-toggle-icon"},[n("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"},on:{mouseover:t.showHighlight,mouseenter:t.showHighlight,mouseout:t.hideHighlight}},[n("path",{attrs:{fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}})])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.highlight,expression:"highlight"}],staticClass:"vc-chrome-toggle-icon-highlight"})])])])])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};e.a=o}])})},c3456:function(t,e,n){"use strict";var r=n("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,s={};return t?(r.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}}),s):s}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,s){var a,l=r(e),c=i(l.length),u=o(s,c);if(t&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),s=n("36c3");t.exports=n("30f1")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(t,e,n){var r=n("e6f3"),i=n("1691");t.exports=Object.keys||function(t){return r(t,i)}},c401:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},c532:function(t,e,n){"use strict";var r=n("1d2b"),i=n("c7ce"),o=Object.prototype.toString;function s(t){return"[object Array]"===o.call(t)}function a(t){return"[object ArrayBuffer]"===o.call(t)}function l(t){return"undefined"!==typeof FormData&&t instanceof FormData}function c(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function u(t){return"string"===typeof t}function d(t){return"number"===typeof t}function h(t){return"undefined"===typeof t}function f(t){return null!==t&&"object"===typeof t}function p(t){return"[object Date]"===o.call(t)}function g(t){return"[object File]"===o.call(t)}function m(t){return"[object Blob]"===o.call(t)}function v(t){return"[object Function]"===o.call(t)}function b(t){return f(t)&&v(t.pipe)}function y(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function w(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function k(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function _(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),s(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function x(){var t={};function e(e,n){"object"===typeof t[n]&&"object"===typeof e?t[n]=x(t[n],e):t[n]=e}for(var n=0,r=arguments.length;n<r;n++)_(arguments[n],e);return t}function C(t,e,n){return _(e,function(e,i){t[i]=n&&"function"===typeof e?r(e,n):e}),t}t.exports={isArray:s,isArrayBuffer:a,isBuffer:i,isFormData:l,isArrayBufferView:c,isString:u,isNumber:d,isObject:f,isUndefined:h,isDate:p,isFile:g,isBlob:m,isFunction:v,isStream:b,isURLSearchParams:y,isStandardBrowserEnv:k,forEach:_,merge:x,extend:C,trim:w}},c5f6:function(t,e,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),s=n("5dbc"),a=n("6a99"),l=n("79e5"),c=n("9093").f,u=n("11e9").f,d=n("86cc").f,h=n("aa77").trim,f="Number",p=r[f],g=p,m=p.prototype,v=o(n("2aeb")(m))==f,b="trim"in String.prototype,y=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=b?e.trim():h(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var s,l=e.slice(2),c=0,u=l.length;c<u;c++)if(s=l.charCodeAt(c),s<48||s>i)return NaN;return parseInt(l,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(v?l(function(){m.valueOf.call(n)}):o(n)!=f)?s(new g(y(e)),n,p):y(e)};for(var w,k=n("9e1e")?c(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;k.length>_;_++)i(g,w=k[_])&&!i(p,w)&&d(p,w,u(g,w));p.prototype=m,m.constructor=p,n("2aba")(r,f,p)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c7ce:function(t,e){
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
t.exports=function(t){return null!=t&&null!=t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},c8af:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c8bb:function(t,e,n){t.exports=n("54a1")},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),s=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ccb9:function(t,e,n){e.f=n("5168")},cd1c:function(t,e,n){var r=n("e853");t.exports=function(t,e){return new(r(t))(e)}},cd78:function(t,e,n){var r=n("e4ae"),i=n("f772"),o=n("656e");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),s=n.resolve;return s(e),n.promise}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),s=n("613b")("IE_PROTO");t.exports=function(t,e){var n,a=i(t),l=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);while(e.length>l)r(a,n=e[l++])&&(~o(c,n)||c.push(n));return c}},ce7e:function(t,e,n){var r=n("63b6"),i=n("584a"),o=n("294c");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},cebc:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("268f"),i=n.n(r),o=n("e265"),s=n.n(o),a=n("a4bb"),l=n.n(a),c=n("bd86");function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=l()(n);"function"===typeof s.a&&(r=r.concat(s()(n).filter(function(t){return i()(n,t).enumerable}))),r.forEach(function(e){Object(c["a"])(t,e,n[e])})}return t}},cee4:function(t,e,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),s=n("2444");function a(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var l=a(s);l.Axios=o,l.create=function(t){return a(r.merge(s,t))},l.Cancel=n("7a77"),l.CancelToken=n("8df4"),l.isCancel=n("2e67"),l.all=function(t){return Promise.all(t)},l.spread=n("0df6"),t.exports=l,t.exports.default=l},d2c8:function(t,e,n){var r=n("aae3"),i=n("be13");t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},d2d5:function(t,e,n){n("1654"),n("549b"),t.exports=n("584a").Array.from},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d5e0:function(t,e,n){(function(t){t(n("56b3"))})(function(t){"use strict";var e={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},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",function(r,i){var o,s,a=r.indentUnit,l={},c=i.htmlMode?e:n;for(var u in c)l[u]=c[u];for(var u in i)l[u]=i[u];function d(t,e){function n(n){return e.tokenize=n,n(t,e)}var r,i=t.next();return"<"==i?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(p("atom","]]>")):null:t.match("--")?n(p("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(g(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=p("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",e.tokenize=h,"tag bracket"):"&"==i?(r=t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"),r?"atom":"error"):(t.eatWhile(/[^&<]/),null)}function h(t,e){var n=t.next();if(">"==n||"/"==n&&t.eat(">"))return e.tokenize=d,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){e.tokenize=d,e.state=y,e.tagName=e.tagStart=null;var r=e.tokenize(t,e);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(e.tokenize=f(n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(t){var e=function(e,n){while(!e.eol())if(e.next()==t){n.tokenize=h;break}return"string"};return e.isInAttribute=!0,e}function p(t,e){return function(n,r){while(!n.eol()){if(n.match(e)){r.tokenize=d;break}n.next()}return t}}function g(t){return function(e,n){var r;while(null!=(r=e.next())){if("<"==r)return n.tokenize=g(t+1),n.tokenize(e,n);if(">"==r){if(1==t){n.tokenize=d;break}return n.tokenize=g(t-1),n.tokenize(e,n)}}return"meta"}}function m(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function v(t){t.context&&(t.context=t.context.prev)}function b(t,e){var n;while(1){if(!t.context)return;if(n=t.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(e))return;v(t)}}function y(t,e,n){return"openTag"==t?(n.tagStart=e.column(),w):"closeTag"==t?k:y}function w(t,e,n){return"word"==t?(n.tagName=e.current(),s="tag",C):l.allowMissingTagName&&"endTag"==t?(s="tag bracket",C(t,e,n)):(s="error",w)}function k(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&v(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(s="tag",_):(s="tag error",x)}return l.allowMissingTagName&&"endTag"==t?(s="tag bracket",_(t,e,n)):(s="error",x)}function _(t,e,n){return"endTag"!=t?(s="error",_):(v(n),y)}function x(t,e,n){return s="error",_(t,e,n)}function C(t,e,n){if("word"==t)return s="attribute",S;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(r)?b(n,r):(b(n,r),n.context=new m(n,r,i==n.indented)),y}return s="error",C}function S(t,e,n){return"equals"==t?T:(l.allowMissing||(s="error"),C(t,e,n))}function T(t,e,n){return"string"==t?O:"word"==t&&l.allowUnquoted?(s="string",C):(s="error",C(t,e,n))}function O(t,e,n){return"string"==t?O:C(t,e,n)}return d.isInText=!0,{startState:function(t){var e={tokenize:d,state:y,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;o=null;var n=e.tokenize(t,e);return(n||o)&&"comment"!=n&&(s=null,e.state=e.state(o||n,t,e),s&&(n="error"==s?n+" error":s)),n},indent:function(e,n,r){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+a;if(i&&i.noIndent)return t.Pass;if(e.tokenize!=h&&e.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+a*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])while(i){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(o)while(i){var s=l.contextGrabbers[i.tagName];if(!s||!s.hasOwnProperty(o[2]))break;i=i.prev}while(i&&i.prev&&!i.startOfLine)i=i.prev;return i?i.indent+a:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==T&&(t.state=C)}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})})},d69f:function(t,e,n){(function(t){t(n("56b3"),n("d5e0"),n("f9d4"),n("7b00"))})(function(t){"use strict";var e={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function n(t,e,n){var r=t.current(),i=r.search(e);return i>-1?t.backUp(r.length-i):r.match(/<\/?$/)&&(t.backUp(r.length),t.match(e,!1)||t.match(r)),n}var r={};function i(t){var e=r[t];return e||(r[t]=new RegExp("\\s+"+t+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function o(t,e){var n=t.match(i(e));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function s(t,e){return new RegExp((e?"^":"")+"</s*"+t+"s*>","i")}function a(t,e){for(var n in t)for(var r=e[n]||(e[n]=[]),i=t[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}function l(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(!r[0]||r[1].test(o(e,r[0])))return r[2]}}t.defineMode("htmlmixed",function(r,i){var o=t.getMode(r,{name:"xml",htmlMode:!0,multilineTagIndentFactor:i.multilineTagIndentFactor,multilineTagIndentPastTag:i.multilineTagIndentPastTag}),c={},u=i&&i.tags,d=i&&i.scriptTypes;if(a(e,c),u&&a(u,c),d)for(var h=d.length-1;h>=0;h--)c.script.unshift(["type",d[h].matches,d[h].mode]);function f(e,i){var a,u=o.token(e,i.htmlState),d=/\btag\b/.test(u);if(d&&!/[<>\s\/]/.test(e.current())&&(a=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&c.hasOwnProperty(a))i.inTag=a+" ";else if(i.inTag&&d&&/>$/.test(e.current())){var h=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var p=">"==e.current()&&l(c[h[1]],h[2]),g=t.getMode(r,p),m=s(h[1],!0),v=s(h[1],!1);i.token=function(t,e){return t.match(m,!1)?(e.token=f,e.localState=e.localMode=null,null):n(t,v,e.localMode.token(t,e.localState))},i.localMode=g,i.localState=t.startState(g,o.indent(i.htmlState,"",""))}else i.inTag&&(i.inTag+=e.current(),e.eol()&&(i.inTag+=" "));return u}return{startState:function(){var e=t.startState(o);return{token:f,inTag:null,localMode:null,localState:null,htmlState:e}},copyState:function(e){var n;return e.localState&&(n=t.copyState(e.localMode,e.localState)),{token:e.token,inTag:e.inTag,localMode:e.localMode,localState:n,htmlState:t.copyState(o,e.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(e,n,r){return!e.localMode||/^\s*<\//.test(n)?o.indent(e.htmlState,n,r):e.localMode.indent?e.localMode.indent(e.localState,n,r):t.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||o}}}},"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")})},d864:function(t,e,n){var r=n("79aa");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},d8d6:function(t,e,n){n("1654"),n("6c1c"),t.exports=n("ccb9").f("iterator")},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d9f6:function(t,e,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),s=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",s=i[o]||(i[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dcbc:function(t,e,n){var r=n("2aba");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(t){return r.exec(t).slice(1)};function o(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var s=i>=0?arguments[i]:t.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,r="/"===s.charAt(0))}return e=n(o(e.split("/"),function(t){return!!t}),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),i="/"===s(t,-1);return t=n(o(t.split("/"),function(t){return!!t}),!r).join("/"),t||r||(t="."),t&&i&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(o(t,function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),s=Math.min(i.length,o.length),a=s,l=0;l<s;l++)if(i[l]!==o[l]){a=l;break}var c=[];for(l=a;l<i.length;l++)c.push("..");return c=c.concat(o.slice(a)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){var e=i(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},e.basename=function(t,e){var n=i(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){return i(t)[3]};var s="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e265:function(t,e,n){t.exports=n("ed33")},e4ae:function(t,e,n){var r=n("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e692:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},e6f3:function(t,e,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),s=n("5559")("IE_PROTO");t.exports=function(t,e){var n,a=i(t),l=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);while(e.length>l)r(a,n=e[l++])&&(~o(c,n)||c.push(n));return c}},e814:function(t,e,n){t.exports=n("b9e9")},e853:function(t,e,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&(e=e[o],null===e&&(e=void 0))),void 0===e?Array:e}},ebd6:function(t,e,n){var r=n("cb7c"),i=n("d8e8"),o=n("2b4c")("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[o])?e:i(n)}},ebfd:function(t,e,n){var r=n("62a0")("meta"),i=n("f772"),o=n("07e3"),s=n("d9f6").f,a=0,l=Object.isExtensible||function(){return!0},c=!n("294c")(function(){return l(Object.preventExtensions({}))}),u=function(t){s(t,r,{value:{i:"O"+ ++a,w:{}}})},d=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[r].i},h=function(t,e){if(!o(t,r)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[r].w},f=function(t){return c&&p.NEED&&l(t)&&!o(t,r)&&u(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},ed33:function(t,e,n){n("014b"),t.exports=n("584a").Object.getOwnPropertySymbols},f0bd:function(t,e,n){"use strict";(function(t){for(
/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.15.0
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
var n="undefined"!==typeof window&&"undefined"!==typeof document,r=["Edge","Trident","Firefox"],i=0,o=0;o<r.length;o+=1)if(n&&navigator.userAgent.indexOf(r[o])>=0){i=1;break}function s(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function a(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},i))}}var l=n&&window.Promise,c=l?s:a;function u(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function d(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView,r=n.getComputedStyle(t,null);return e?r[e]:r}function h(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function f(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=d(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:f(h(t))}var p=n&&!(!window.MSInputMethodContext||!document.documentMode),g=n&&/MSIE 10/.test(navigator.userAgent);function m(t){return 11===t?p:10===t?g:p||g}function v(t){if(!t)return document.documentElement;var e=m(10)?document.body:null,n=t.offsetParent||null;while(n===e&&t.nextElementSibling)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===d(n,"position")?v(n):n:t?t.ownerDocument.documentElement:document.documentElement}function b(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||v(t.firstElementChild)===t)}function y(t){return null!==t.parentNode?y(t.parentNode):t}function w(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var s=o.commonAncestorContainer;if(t!==s&&e!==s||r.contains(i))return b(s)?s:v(s);var a=y(t);return a.host?w(a.host,e):w(t,y(e).host)}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var i=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||i;return o[n]}return t[n]}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=k(e,"top"),i=k(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}function x(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+r+"Width"],10)}function C(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],m(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function S(t){var e=t.body,n=t.documentElement,r=m(10)&&getComputedStyle(n);return{height:C("Height",e,n,r),width:C("Width",e,n,r)}}var T=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},O=function(){function t(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)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),P=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},A=Object.assign||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};function E(t){return A({},t,{right:t.left+t.width,bottom:t.top+t.height})}function M(t){var e={};try{if(m(10)){e=t.getBoundingClientRect();var n=k(t,"top"),r=k(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(h){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?S(t.ownerDocument):{},s=o.width||t.clientWidth||i.right-i.left,a=o.height||t.clientHeight||i.bottom-i.top,l=t.offsetWidth-s,c=t.offsetHeight-a;if(l||c){var u=d(t);l-=x(u,"x"),c-=x(u,"y"),i.width-=l,i.height-=c}return E(i)}function I(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(10),i="HTML"===e.nodeName,o=M(t),s=M(e),a=f(t),l=d(e),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=E({top:o.top-s.top-c,left:o.left-s.left-u,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var p=parseFloat(l.marginTop,10),g=parseFloat(l.marginLeft,10);h.top-=c-p,h.bottom-=c-p,h.left-=u-g,h.right-=u-g,h.marginTop=p,h.marginLeft=g}return(r&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(h=_(h,e)),h}function N(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=I(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:k(n),a=e?0:k(n,"left"),l={top:s-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:i,height:o};return E(l)}function j(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===d(t,"position"))return!0;var n=h(t);return!!n&&j(n)}function D(t){if(!t||!t.parentElement||m())return document.documentElement;var e=t.parentElement;while(e&&"none"===d(e,"transform"))e=e.parentElement;return e||document.documentElement}function L(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},s=i?D(t):w(t,e);if("viewport"===r)o=N(s,i);else{var a=void 0;"scrollParent"===r?(a=f(h(e)),"BODY"===a.nodeName&&(a=t.ownerDocument.documentElement)):a="window"===r?t.ownerDocument.documentElement:r;var l=I(a,s,i);if("HTML"!==a.nodeName||j(s))o=l;else{var c=S(t.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}n=n||0;var p="number"===typeof n;return o.left+=p?n:n.left||0,o.top+=p?n:n.top||0,o.right-=p?n:n.right||0,o.bottom-=p?n:n.bottom||0,o}function B(t){var e=t.width,n=t.height;return e*n}function R(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=L(n,r,o,i),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map(function(t){return A({key:t},a[t],{area:B(a[t])})}).sort(function(t,e){return e.area-t.area}),c=l.filter(function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=t.split("-")[1];return u+(d?"-"+d:"")}function F(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?D(e):w(e,n);return I(n,i,r)}function $(t){var e=t.ownerDocument.defaultView,n=e.getComputedStyle(t),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:t.offsetWidth+i,height:t.offsetHeight+r};return o}function V(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function z(t,e,n){n=n.split("-")[0];var r=$(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[s]=e[s]+e[l]/2-r[l]/2,i[a]=n===a?e[a]-r[c]:e[V(a)],i}function H(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function W(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var r=H(t,function(t){return t[e]===n});return t.indexOf(r)}function U(t,e,n){var r=void 0===n?t:t.slice(0,W(t,"name",n));return r.forEach(function(t){t["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t["function"]||t.fn;t.enabled&&u(n)&&(e.offsets.popper=E(e.offsets.popper),e.offsets.reference=E(e.offsets.reference),e=n(e,t))}),e}function q(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=F(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=R(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=z(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=U(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function G(t,e){return t.some(function(t){var n=t.name,r=t.enabled;return r&&n===e})}function Y(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?""+i+n:t;if("undefined"!==typeof document.body.style[o])return o}return null}function K(){return this.state.isDestroyed=!0,G(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Y("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function X(t){var e=t.ownerDocument;return e?e.defaultView:window}function J(t,e,n,r){var i="BODY"===t.nodeName,o=i?t.ownerDocument.defaultView:t;o.addEventListener(e,n,{passive:!0}),i||J(f(o.parentNode),e,n,r),r.push(o)}function Q(t,e,n,r){n.updateBound=r,X(t).addEventListener("resize",n.updateBound,{passive:!0});var i=f(t);return J(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Z(){this.state.eventsEnabled||(this.state=Q(this.reference,this.options,this.state,this.scheduleUpdate))}function tt(t,e){return X(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function et(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=tt(this.reference,this.state))}function nt(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function rt(t,e){Object.keys(e).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&nt(e[n])&&(r="px"),t.style[n]=e[n]+r})}function it(t,e){Object.keys(e).forEach(function(n){var r=e[n];!1!==r?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function ot(t){return rt(t.instance.popper,t.styles),it(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&rt(t.arrowElement,t.arrowStyles),t}function st(t,e,n,r,i){var o=F(i,e,t,n.positionFixed),s=R(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),rt(e,{position:n.positionFixed?"fixed":"absolute"}),n}function at(t,e){var n=t.offsets,r=n.popper,i=n.reference,o=Math.round,s=Math.floor,a=function(t){return t},l=o(i.width),c=o(r.width),u=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),h=l%2===c%2,f=l%2===1&&c%2===1,p=e?u||d||h?o:s:a,g=e?o:a;return{left:p(f&&!d&&e?r.left-1:r.left),top:g(r.top),bottom:g(r.bottom),right:p(r.right)}}var lt=n&&/Firefox/i.test(navigator.userAgent);function ct(t,e){var n=e.x,r=e.y,i=t.offsets.popper,o=H(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==o?o:e.gpuAcceleration,a=v(t.instance.popper),l=M(a),c={position:i.position},u=at(t,window.devicePixelRatio<2||!lt),d="bottom"===n?"top":"bottom",h="right"===r?"left":"right",f=Y("transform"),p=void 0,g=void 0;if(g="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,s&&f)c[f]="translate3d("+p+"px, "+g+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var m="bottom"===d?-1:1,b="right"===h?-1:1;c[d]=g*m,c[h]=p*b,c.willChange=d+", "+h}var y={"x-placement":t.placement};return t.attributes=A({},y,t.attributes),t.styles=A({},c,t.styles),t.arrowStyles=A({},t.offsets.arrow,t.arrowStyles),t}function ut(t,e,n){var r=H(t,function(t){var n=t.name;return n===e}),i=!!r&&t.some(function(t){return t.name===n&&t.enabled&&t.order<r.order});if(!i){var o="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function dt(t,e){var n;if(!ut(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"===typeof r){if(r=t.instance.popper.querySelector(r),!r)return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",h=u.toLowerCase(),f=l?"left":"top",p=l?"bottom":"right",g=$(r)[c];a[p]-g<s[h]&&(t.offsets.popper[h]-=s[h]-(a[p]-g)),a[h]+g>s[p]&&(t.offsets.popper[h]+=a[h]+g-s[p]),t.offsets.popper=E(t.offsets.popper);var m=a[h]+a[c]/2-g/2,v=d(t.instance.popper),b=parseFloat(v["margin"+u],10),y=parseFloat(v["border"+u+"Width"],10),w=m-t.offsets.popper[h]-b-y;return w=Math.max(Math.min(s[c]-g,w),0),t.arrowElement=r,t.offsets.arrow=(n={},P(n,h,Math.round(w)),P(n,f,""),n),t}function ht(t){return"end"===t?"start":"start"===t?"end":t}var ft=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],pt=ft.slice(3);function gt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=pt.indexOf(t),r=pt.slice(n+1).concat(pt.slice(0,n));return e?r.reverse():r}var mt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function vt(t,e){if(G(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=L(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=V(r),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case mt.FLIP:s=[r,i];break;case mt.CLOCKWISE:s=gt(r);break;case mt.COUNTERCLOCKWISE:s=gt(r,!0);break;default:s=e.behavior}return s.forEach(function(a,l){if(r!==a||s.length===l+1)return t;r=t.placement.split("-")[0],i=V(r);var c=t.offsets.popper,u=t.offsets.reference,d=Math.floor,h="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),f=d(c.left)<d(n.left),p=d(c.right)>d(n.right),g=d(c.top)<d(n.top),m=d(c.bottom)>d(n.bottom),v="left"===r&&f||"right"===r&&p||"top"===r&&g||"bottom"===r&&m,b=-1!==["top","bottom"].indexOf(r),y=!!e.flipVariations&&(b&&"start"===o&&f||b&&"end"===o&&p||!b&&"start"===o&&g||!b&&"end"===o&&m),w=!!e.flipVariationsByContent&&(b&&"start"===o&&p||b&&"end"===o&&f||!b&&"start"===o&&m||!b&&"end"===o&&g),k=y||w;(h||v||k)&&(t.flipped=!0,(h||v)&&(r=s[l+1]),k&&(o=ht(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=A({},t.offsets.popper,z(t.instance.popper,t.offsets.reference,t.placement)),t=U(t.instance.modifiers,t,"flip"))}),t}function bt(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(i),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<o(r[l])&&(t.offsets.popper[l]=o(r[l])-n[c]),n[l]>o(r[a])&&(t.offsets.popper[l]=o(r[a])),t}function yt(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],s=i[2];if(!o)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=r}var l=E(a);return l[e]/100*o}if("vh"===s||"vw"===s){var c=void 0;return c="vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*o}return o}function wt(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),s=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=s.indexOf(H(s,function(t){return-1!==t.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return c=c.map(function(t,r){var i=(1===r?!o:o)?"height":"width",s=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)},[]).map(function(t){return yt(t,i,e,n)})}),c.forEach(function(t,e){t.forEach(function(n,r){nt(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))})}),i}function kt(t,e){var n=e.offset,r=t.placement,i=t.offsets,o=i.popper,s=i.reference,a=r.split("-")[0],l=void 0;return l=nt(+n)?[+n,0]:wt(n,o,s,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t}function _t(t,e){var n=e.boundariesElement||v(t.instance.popper);t.instance.reference===n&&(n=v(n));var r=Y("transform"),i=t.instance.popper.style,o=i.top,s=i.left,a=i[r];i.top="",i.left="",i[r]="";var l=L(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=s,i[r]=a,e.boundaries=l;var c=e.priority,u=t.offsets.popper,d={primary:function(t){var n=u[t];return u[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(u[t],l[t])),P({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=u[n];return u[t]>l[t]&&!e.escapeWithReference&&(r=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),P({},n,r)}};return c.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=A({},u,d[e](t))}),t.offsets.popper=u,t}function xt(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,s=i.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:P({},l,o[l]),end:P({},l,o[l]+o[c]-s[c])};t.offsets.popper=A({},s,u[r])}return t}function Ct(t){if(!ut(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=H(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function St(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=o[n]-(a?i[s?"width":"height"]:0),t.placement=V(e),t.offsets.popper=E(i),t}var Tt={shift:{order:100,enabled:!0,fn:xt},offset:{order:200,enabled:!0,fn:kt,offset:0},preventOverflow:{order:300,enabled:!0,fn:_t,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:bt},arrow:{order:500,enabled:!0,fn:dt,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:vt,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:St},hide:{order:800,enabled:!0,fn:Ct},computeStyle:{order:850,enabled:!0,fn:ct,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:ot,onLoad:st,gpuAcceleration:void 0}},Ot={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Tt},Pt=function(){function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};T(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=c(this.update.bind(this)),this.options=A({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(A({},t.Defaults.modifiers,i.modifiers)).forEach(function(e){r.options.modifiers[e]=A({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return A({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&u(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return O(t,[{key:"update",value:function(){return q.call(this)}},{key:"destroy",value:function(){return K.call(this)}},{key:"enableEventListeners",value:function(){return Z.call(this)}},{key:"disableEventListeners",value:function(){return et.call(this)}}]),t}();Pt.Utils=("undefined"!==typeof window?window:t).PopperUtils,Pt.placements=ft,Pt.Defaults=Ot,e["a"]=Pt}).call(this,n("c8ba"))},f201:function(t,e,n){var r=n("e4ae"),i=n("79aa"),o=n("5168")("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[o])?e:i(n)}},f410:function(t,e,n){n("1af6"),t.exports=n("584a").Array.isArray},f499:function(t,e,n){t.exports=n("a21f")},f605:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},f6b4:function(t,e,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},f6b9:function(t,e,n){},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},f921:function(t,e,n){n("014b"),n("c207"),n("69d3"),n("765d"),t.exports=n("584a").Symbol},f9d4:function(t,e,n){(function(t){t(n("56b3"))})(function(t){"use strict";t.defineMode("javascript",function(e,n){var r,i,o=e.indentUnit,s=n.statementIndent,a=n.jsonld,l=n.json||a,c=n.typescript,u=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),n=t("keyword b"),r=t("keyword c"),i=t("keyword d"),o=t("operator"),s={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:t("new"),delete:r,void:r,throw:r,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:o,typeof:o,instanceof:o,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:t("this"),class:t("class"),super:t("atom"),yield:r,export:t("export"),import:t("import"),extends:r,await:r}}(),h=/[+\-*&%=<>!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(t){var e,n=!1,r=!1;while(null!=(e=t.next())){if(!n){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}n=!n&&"\\"==e}}function g(t,e,n){return r=t,i=n,e}function m(t,e){var n=t.next();if('"'==n||"'"==n)return e.tokenize=v(n),e.tokenize(t,e);if("."==n&&t.match(/^\d+(?:[eE][+\-]?\d+)?/))return g("number","number");if("."==n&&t.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if("="==n&&t.eat(">"))return g("=>","operator");if("0"==n&&t.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return g("number","number");if(/\d/.test(n))return t.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),g("number","number");if("/"==n)return t.eat("*")?(e.tokenize=b,b(t,e)):t.eat("/")?(t.skipToEnd(),g("comment","comment")):Zt(t,e,1)?(p(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g("regexp","string-2")):(t.eat("="),g("operator","operator",t.current()));if("`"==n)return e.tokenize=y,y(t,e);if("#"==n)return t.skipToEnd(),g("error","error");if(h.test(n))return">"==n&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=n&&"="!=n||t.eat("="):/[<>*+\-]/.test(n)&&(t.eat(n),">"==n&&t.eat(n))),g("operator","operator",t.current());if(u.test(n)){t.eatWhile(u);var r=t.current();if("."!=e.lastType){if(d.propertyIsEnumerable(r)){var i=d[r];return g(i.type,i.style,r)}if("async"==r&&t.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",r)}return g("variable","variable",r)}}function v(t){return function(e,n){var r,i=!1;if(a&&"@"==e.peek()&&e.match(f))return n.tokenize=m,g("jsonld-keyword","meta");while(null!=(r=e.next())){if(r==t&&!i)break;i=!i&&"\\"==r}return i||(n.tokenize=m),g("string","string")}}function b(t,e){var n,r=!1;while(n=t.next()){if("/"==n&&r){e.tokenize=m;break}r="*"==n}return g("comment","comment")}function y(t,e){var n,r=!1;while(null!=(n=t.next())){if(!r&&("`"==n||"$"==n&&t.eat("{"))){e.tokenize=m;break}r=!r&&"\\"==n}return g("quasi","string-2",t.current())}var w="([{}])";function k(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var n=t.string.indexOf("=>",t.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,n));r&&(n=r.index)}for(var i=0,o=!1,s=n-1;s>=0;--s){var a=t.string.charAt(s),l=w.indexOf(a);if(l>=0&&l<3){if(!i){++s;break}if(0==--i){"("==a&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(u.test(a))o=!0;else{if(/["'\/]/.test(a))return;if(o&&!i){++s;break}}}o&&!i&&(e.fatArrowAt=s)}}var _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function x(t,e,n,r,i,o){this.indented=t,this.column=e,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function C(t,e){for(var n=t.localVars;n;n=n.next)if(n.name==e)return!0;for(var r=t.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==e)return!0}function S(t,e,n,r,i){var o=t.cc;T.state=t,T.stream=i,T.marked=null,T.cc=o,T.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);while(1){var s=o.length?o.pop():l?W:z;if(s(n,r)){while(o.length&&o[o.length-1].lex)o.pop()();return T.marked?T.marked:"variable"==n&&C(t,r)?"variable-2":e}}}var T={state:null,column:null,marked:null,cc:null};function O(){for(var t=arguments.length-1;t>=0;t--)T.cc.push(arguments[t])}function P(){return O.apply(null,arguments),!0}function A(t,e){for(var n=e;n;n=n.next)if(n.name==t)return!0;return!1}function E(t){var e=T.state;if(T.marked="def",e.context)if("var"==e.lexical.info&&e.context&&e.context.block){var r=M(t,e.context);if(null!=r)return void(e.context=r)}else if(!A(t,e.localVars))return void(e.localVars=new j(t,e.localVars));n.globalVars&&!A(t,e.globalVars)&&(e.globalVars=new j(t,e.globalVars))}function M(t,e){if(e){if(e.block){var n=M(t,e.prev);return n?n==e.prev?e:new N(n,e.vars,!0):null}return A(t,e.vars)?e:new N(e.prev,new j(t,e.vars),!1)}return null}function I(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function N(t,e,n){this.prev=t,this.vars=e,this.block=n}function j(t,e){this.name=t,this.next=e}var D=new j("this",new j("arguments",null));function L(){T.state.context=new N(T.state.context,T.state.localVars,!1),T.state.localVars=D}function B(){T.state.context=new N(T.state.context,T.state.localVars,!0),T.state.localVars=null}function R(){T.state.localVars=T.state.context.vars,T.state.context=T.state.context.prev}function F(t,e){var n=function(){var n=T.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new x(r,T.stream.column(),t,null,n.lexical,e)};return n.lex=!0,n}function $(){var t=T.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function V(t){function e(n){return n==t?P():";"==t||"}"==n||")"==n||"]"==n?O():P(e)}return e}function z(t,e){return"var"==t?P(F("vardef",e),xt,V(";"),$):"keyword a"==t?P(F("form"),q,z,$):"keyword b"==t?P(F("form"),z,$):"keyword d"==t?T.stream.match(/^\s*$/,!1)?P():P(F("stat"),Y,V(";"),$):"debugger"==t?P(V(";")):"{"==t?P(F("}"),B,dt,$,R):";"==t?P():"if"==t?("else"==T.state.lexical.info&&T.state.cc[T.state.cc.length-1]==$&&T.state.cc.pop()(),P(F("form"),q,z,$,At)):"function"==t?P(Nt):"for"==t?P(F("form"),Et,z,$):"class"==t||c&&"interface"==e?(T.marked="keyword",P(F("form","class"==t?t:e),Rt,$)):"variable"==t?c&&"declare"==e?(T.marked="keyword",P(z)):c&&("module"==e||"enum"==e||"type"==e)&&T.stream.match(/^\s*\w/,!1)?(T.marked="keyword","enum"==e?P(Xt):"type"==e?P(Dt,V("operator"),gt,V(";")):P(F("form"),Ct,V("{"),F("}"),dt,$,$)):c&&"namespace"==e?(T.marked="keyword",P(F("form"),W,z,$)):c&&"abstract"==e?(T.marked="keyword",P(z)):P(F("stat"),it):"switch"==t?P(F("form"),q,V("{"),F("}","switch"),B,dt,$,$,R):"case"==t?P(W,V(":")):"default"==t?P(V(":")):"catch"==t?P(F("form"),L,H,z,$,R):"export"==t?P(F("stat"),zt,$):"import"==t?P(F("stat"),Wt,$):"async"==t?P(z):"@"==e?P(W,z):O(F("stat"),W,V(";"),$)}function H(t){if("("==t)return P(Lt,V(")"))}function W(t,e){return G(t,e,!1)}function U(t,e){return G(t,e,!0)}function q(t){return"("!=t?O():P(F(")"),W,V(")"),$)}function G(t,e,n){if(T.state.fatArrowAt==T.stream.start){var r=n?tt:Z;if("("==t)return P(L,F(")"),ct(Lt,")"),$,V("=>"),r,R);if("variable"==t)return O(L,Ct,V("=>"),r,R)}var i=n?X:K;return _.hasOwnProperty(t)?P(i):"function"==t?P(Nt,i):"class"==t||c&&"interface"==e?(T.marked="keyword",P(F("form"),Bt,$)):"keyword c"==t||"async"==t?P(n?U:W):"("==t?P(F(")"),Y,V(")"),$,i):"operator"==t||"spread"==t?P(n?U:W):"["==t?P(F("]"),Kt,$,i):"{"==t?ut(st,"}",null,i):"quasi"==t?O(J,i):"new"==t?P(et(n)):"import"==t?P(W):P()}function Y(t){return t.match(/[;\}\)\],]/)?O():O(W)}function K(t,e){return","==t?P(W):X(t,e,!1)}function X(t,e,n){var r=0==n?K:X,i=0==n?W:U;return"=>"==t?P(L,n?tt:Z,R):"operator"==t?/\+\+|--/.test(e)||c&&"!"==e?P(r):c&&"<"==e&&T.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?P(F(">"),ct(gt,">"),$,r):"?"==e?P(W,V(":"),i):P(i):"quasi"==t?O(J,r):";"!=t?"("==t?ut(U,")","call",r):"."==t?P(ot,r):"["==t?P(F("]"),Y,V("]"),$,r):c&&"as"==e?(T.marked="keyword",P(gt,r)):"regexp"==t?(T.state.lastType=T.marked="operator",T.stream.backUp(T.stream.pos-T.stream.start-1),P(i)):void 0:void 0}function J(t,e){return"quasi"!=t?O():"${"!=e.slice(e.length-2)?P(J):P(W,Q)}function Q(t){if("}"==t)return T.marked="string-2",T.state.tokenize=y,P(J)}function Z(t){return k(T.stream,T.state),O("{"==t?z:W)}function tt(t){return k(T.stream,T.state),O("{"==t?z:U)}function et(t){return function(e){return"."==e?P(t?rt:nt):"variable"==e&&c?P(wt,t?X:K):O(t?U:W)}}function nt(t,e){if("target"==e)return T.marked="keyword",P(K)}function rt(t,e){if("target"==e)return T.marked="keyword",P(X)}function it(t){return":"==t?P($,z):O(K,V(";"),$)}function ot(t){if("variable"==t)return T.marked="property",P()}function st(t,e){return"async"==t?(T.marked="property",P(st)):"variable"==t||"keyword"==T.style?(T.marked="property","get"==e||"set"==e?P(at):(c&&T.state.fatArrowAt==T.stream.start&&(n=T.stream.match(/^\s*:\s*/,!1))&&(T.state.fatArrowAt=T.stream.pos+n[0].length),P(lt))):"number"==t||"string"==t?(T.marked=a?"property":T.style+" property",P(lt)):"jsonld-keyword"==t?P(lt):c&&I(e)?(T.marked="keyword",P(st)):"["==t?P(W,ht,V("]"),lt):"spread"==t?P(U,lt):"*"==e?(T.marked="keyword",P(st)):":"==t?O(lt):void 0;var n}function at(t){return"variable"!=t?O(lt):(T.marked="property",P(Nt))}function lt(t){return":"==t?P(U):"("==t?O(Nt):void 0}function ct(t,e,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var s=T.state.lexical;return"call"==s.info&&(s.pos=(s.pos||0)+1),P(function(n,r){return n==e||r==e?O():O(t)},r)}return i==e||o==e?P():n&&n.indexOf(";")>-1?O(t):P(V(e))}return function(n,i){return n==e||i==e?P():O(t,r)}}function ut(t,e,n){for(var r=3;r<arguments.length;r++)T.cc.push(arguments[r]);return P(F(e,n),ct(t,e),$)}function dt(t){return"}"==t?P():O(z,dt)}function ht(t,e){if(c){if(":"==t||"in"==e)return P(gt);if("?"==e)return P(ht)}}function ft(t){if(c&&":"==t)return T.stream.match(/^\s*\w+\s+is\b/,!1)?P(W,pt,gt):P(gt)}function pt(t,e){if("is"==e)return T.marked="keyword",P()}function gt(t,e){return"keyof"==e||"typeof"==e||"infer"==e?(T.marked="keyword",P("typeof"==e?U:gt)):"variable"==t||"void"==e?(T.marked="type",P(yt)):"|"==e||"&"==e?P(gt):"string"==t||"number"==t||"atom"==t?P(yt):"["==t?P(F("]"),ct(gt,"]",","),$,yt):"{"==t?P(F("}"),ct(vt,"}",",;"),$,yt):"("==t?P(ct(bt,")"),mt,yt):"<"==t?P(ct(gt,">"),gt):void 0}function mt(t){if("=>"==t)return P(gt)}function vt(t,e){return"variable"==t||"keyword"==T.style?(T.marked="property",P(vt)):"?"==e||"number"==t||"string"==t?P(vt):":"==t?P(gt):"["==t?P(V("variable"),ht,V("]"),vt):"("==t?O(jt,vt):void 0}function bt(t,e){return"variable"==t&&T.stream.match(/^\s*[?:]/,!1)||"?"==e?P(bt):":"==t?P(gt):"spread"==t?P(bt):O(gt)}function yt(t,e){return"<"==e?P(F(">"),ct(gt,">"),$,yt):"|"==e||"."==t||"&"==e?P(gt):"["==t?P(gt,V("]"),yt):"extends"==e||"implements"==e?(T.marked="keyword",P(gt)):"?"==e?P(gt,V(":"),gt):void 0}function wt(t,e){if("<"==e)return P(F(">"),ct(gt,">"),$,yt)}function kt(){return O(gt,_t)}function _t(t,e){if("="==e)return P(gt)}function xt(t,e){return"enum"==e?(T.marked="keyword",P(Xt)):O(Ct,ht,Ot,Pt)}function Ct(t,e){return c&&I(e)?(T.marked="keyword",P(Ct)):"variable"==t?(E(e),P()):"spread"==t?P(Ct):"["==t?ut(Tt,"]"):"{"==t?ut(St,"}"):void 0}function St(t,e){return"variable"!=t||T.stream.match(/^\s*:/,!1)?("variable"==t&&(T.marked="property"),"spread"==t?P(Ct):"}"==t?O():"["==t?P(W,V("]"),V(":"),St):P(V(":"),Ct,Ot)):(E(e),P(Ot))}function Tt(){return O(Ct,Ot)}function Ot(t,e){if("="==e)return P(U)}function Pt(t){if(","==t)return P(xt)}function At(t,e){if("keyword b"==t&&"else"==e)return P(F("form","else"),z,$)}function Et(t,e){return"await"==e?P(Et):"("==t?P(F(")"),Mt,$):void 0}function Mt(t){return"var"==t?P(xt,It):"variable"==t?P(It):O(It)}function It(t,e){return")"==t?P():";"==t?P(It):"in"==e||"of"==e?(T.marked="keyword",P(W,It)):O(W,It)}function Nt(t,e){return"*"==e?(T.marked="keyword",P(Nt)):"variable"==t?(E(e),P(Nt)):"("==t?P(L,F(")"),ct(Lt,")"),$,ft,z,R):c&&"<"==e?P(F(">"),ct(kt,">"),$,Nt):void 0}function jt(t,e){return"*"==e?(T.marked="keyword",P(jt)):"variable"==t?(E(e),P(jt)):"("==t?P(L,F(")"),ct(Lt,")"),$,ft,R):c&&"<"==e?P(F(">"),ct(kt,">"),$,jt):void 0}function Dt(t,e){return"keyword"==t||"variable"==t?(T.marked="type",P(Dt)):"<"==e?P(F(">"),ct(kt,">"),$):void 0}function Lt(t,e){return"@"==e&&P(W,Lt),"spread"==t?P(Lt):c&&I(e)?(T.marked="keyword",P(Lt)):c&&"this"==t?P(ht,Ot):O(Ct,ht,Ot)}function Bt(t,e){return"variable"==t?Rt(t,e):Ft(t,e)}function Rt(t,e){if("variable"==t)return E(e),P(Ft)}function Ft(t,e){return"<"==e?P(F(">"),ct(kt,">"),$,Ft):"extends"==e||"implements"==e||c&&","==t?("implements"==e&&(T.marked="keyword"),P(c?gt:W,Ft)):"{"==t?P(F("}"),$t,$):void 0}function $t(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||c&&I(e))&&T.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(T.marked="keyword",P($t)):"variable"==t||"keyword"==T.style?(T.marked="property",P(c?Vt:Nt,$t)):"number"==t||"string"==t?P(c?Vt:Nt,$t):"["==t?P(W,ht,V("]"),c?Vt:Nt,$t):"*"==e?(T.marked="keyword",P($t)):c&&"("==t?O(jt,$t):";"==t||","==t?P($t):"}"==t?P():"@"==e?P(W,$t):void 0}function Vt(t,e){if("?"==e)return P(Vt);if(":"==t)return P(gt,Ot);if("="==e)return P(U);var n=T.state.lexical.prev,r=n&&"interface"==n.info;return O(r?jt:Nt)}function zt(t,e){return"*"==e?(T.marked="keyword",P(Yt,V(";"))):"default"==e?(T.marked="keyword",P(W,V(";"))):"{"==t?P(ct(Ht,"}"),Yt,V(";")):O(z)}function Ht(t,e){return"as"==e?(T.marked="keyword",P(V("variable"))):"variable"==t?O(U,Ht):void 0}function Wt(t){return"string"==t?P():"("==t?O(W):O(Ut,qt,Yt)}function Ut(t,e){return"{"==t?ut(Ut,"}"):("variable"==t&&E(e),"*"==e&&(T.marked="keyword"),P(Gt))}function qt(t){if(","==t)return P(Ut,qt)}function Gt(t,e){if("as"==e)return T.marked="keyword",P(Ut)}function Yt(t,e){if("from"==e)return T.marked="keyword",P(W)}function Kt(t){return"]"==t?P():O(ct(U,"]"))}function Xt(){return O(F("form"),Ct,V("{"),F("}"),ct(Jt,"}"),$,$)}function Jt(){return O(Ct,Ot)}function Qt(t,e){return"operator"==t.lastType||","==t.lastType||h.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}function Zt(t,e,n){return e.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(n||0)))}return R.lex=!0,$.lex=!0,{startState:function(t){var e={tokenize:m,lastType:"sof",cc:[],lexical:new x((t||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new N(null,null,!1),indented:t||0};return n.globalVars&&"object"==typeof n.globalVars&&(e.globalVars=n.globalVars),e},token:function(t,e){if(t.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=t.indentation(),k(t,e)),e.tokenize!=b&&t.eatSpace())return null;var n=e.tokenize(t,e);return"comment"==r?n:(e.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",S(e,n,r,i,t))},indent:function(e,r){if(e.tokenize==b)return t.Pass;if(e.tokenize!=m)return 0;var i,a=r&&r.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(r))for(var c=e.cc.length-1;c>=0;--c){var u=e.cc[c];if(u==$)l=l.prev;else if(u!=At)break}while(("stat"==l.type||"form"==l.type)&&("}"==a||(i=e.cc[e.cc.length-1])&&(i==K||i==X)&&!/^[,\.=+\-*:?[\(]/.test(r)))l=l.prev;s&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,h=a==d;return"vardef"==d?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==d&&"{"==a?l.indented:"form"==d?l.indented+o:"stat"==d?l.indented+(Qt(e,r)?s||o:0):"switch"!=l.info||h||0==n.doubleIndentSwitch?l.align?l.column+(h?0:1):l.indented+(h?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:a,jsonMode:l,expressionAllowed:Zt,skipExpression:function(t){var e=t.cc[t.cc.length-1];e!=W&&e!=U||t.cc.pop()}}}),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb3d:function(t,e,n){
/*!
 * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md.
 */
!function(t){t.en=Object.assign(t.en||{},{a:"Cannot upload file:",b:"Bold",c:"Italic",d:"Insert image or file",e:"Block quote",f:"Choose heading",g:"Heading",h:"image widget",i:"Insert image",j:"Full size image",k:"Side image",l:"Left aligned image",m:"Centered image",n:"Right aligned image",o:"Numbered List",p:"Bulleted List",q:"Enter image caption",r:"Upload failed",s:"Insert table",t:"Header column",u:"Insert column left",v:"Insert column right",w:"Delete column",x:"Column",y:"Header row",z:"Insert row below",aa:"Insert row above",ab:"Delete row",ac:"Row",ad:"Merge cell up",ae:"Merge cell right",af:"Merge cell down",ag:"Merge cell left",ah:"Split cell vertically",ai:"Split cell horizontally",aj:"Merge cells",ak:"media widget",al:"Insert media",am:"The URL must not be empty.",an:"This media URL is not supported.",ao:"Link",ap:"Could not obtain resized image URL.",aq:"Selecting resized image failed",ar:"Could not insert image at the current position.",as:"Inserting image failed",at:"Upload in progress",au:"Open in a new tab",av:"Downloadable",aw:"Save",ax:"Cancel",ay:"Paste the media URL in the input.",az:"Tip: Paste the URL into the content to embed faster.",ba:"Media URL",bb:"Unlink",bc:"Edit link",bd:"Open link in new tab",be:"This link has no URL",bf:"Link URL",bg:"Undo",bh:"Redo",bi:"Rich Text Editor",bj:"%0 of %1",bk:"Previous",bl:"Next",bm:"Change image text alternative",bn:"Paragraph",bo:"Heading 1",bp:"Heading 2",bq:"Heading 3",br:"Heading 4",bs:"Heading 5",bt:"Heading 6",bu:"Rich Text Editor, %0",bv:"Text alternative"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),function(e,n){t.exports=n()}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=123)}([function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o});const r="https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html";class i extends Error{constructor(t,e,n){t=o(t),n&&(t+=" "+JSON.stringify(n)),super(t),this.name="CKEditorError",this.context=e,this.data=n}is(t){return"CKEditorError"===t}}function o(t){const e=t.match(/^([^:]+):/);return e?t+` Read more: ${r}#error-${e[1]}\n`:t}},function(t,e,n){"use strict";var r=n(0);const i={error(t,e){console.error(Object(r.a)(t),e)},warn(t,e){console.warn(Object(r.a)(t),e)}};e.a=i},function(t,e,n){var r={},i=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),o=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),s=null,a=0,l=[],c=n(47);function u(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=r[i.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](i.parts[s]);for(;s<i.parts.length;s++)o.parts.push(m(i.parts[s],e))}else{var a=[];for(s=0;s<i.parts.length;s++)a.push(m(i.parts[s],e));r[i.id]={id:i.id,refs:1,parts:a}}}}function d(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],s=e.base?o[0]+e.base:o[0],a={css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}function h(t,e){var n=o(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=l[l.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),l.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=o(t.insertAt.before,n);n.insertBefore(e,i)}}function f(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=l.indexOf(t);e>=0&&l.splice(e,1)}function p(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){return n.nc}();r&&(t.attrs.nonce=r)}return g(e,t.attrs),h(t,e),e}function g(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function m(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var l=a++;n=s||(s=p(e)),r=b.bind(null,n,l,!1),i=b.bind(null,n,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),h(t,e),e}(e),r=function(t,e,n){var r=n.css,i=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(r=c(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var s=new Blob([r],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,n,e),i=function(){f(n),n.href&&URL.revokeObjectURL(n.href)}):(n=p(e),r=function(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){f(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=i()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=d(t,e);return u(n,e),function(t){for(var i=[],o=0;o<n.length;o++){var s=n[o];(a=r[s.id]).refs--,i.push(a)}for(t&&u(d(t,e),e),o=0;o<i.length;o++){var a;if(0===(a=i[o]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete r[a.id]}}}};var v=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function b(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=v(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}},,function(t,e,n){"use strict";var r=n(10),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();e.a=o},function(t,n,r){"use strict";(function(t){var i=r(10),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o&&i.a.process,l=function(){try{var t=s&&s.require&&s.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();n.a=l}).call(this,r(12)(t))},function(t,n,r){"use strict";(function(t){var i=r(4),o=r(18),s=e&&!e.nodeType&&e,a=s&&"object"==typeof t&&t&&!t.nodeType&&t,l=a&&a.exports===s?i.a.Buffer:void 0,c=(l?l.isBuffer:void 0)||o.a;n.a=c}).call(this,r(12)(t))},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.591 10.177l4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>'},function(t,e,n){"use strict";(function(t){var e=n(1),r=n(20);const i="object"==typeof window?window:t;i.CKEDITOR_VERSION?e.a.error("ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated."):i.CKEDITOR_VERSION=r.a}).call(this,n(16))},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(16))},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm0 3V6h5.674v1.5zm0 3V9h5.674v1.5zm0 3V12h5.674v1.5zm8.5-6V12h6V7.5h-6zM9.682 6h7.636c.377 0 .682.407.682.91v5.68c0 .503-.305.91-.682.91H9.682c-.377 0-.682-.407-.682-.91V6.91c0-.503.305-.91.682-.91zM2 16.5V15h16v1.5z"/></svg>'},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm2.5 3V12h11V7.5h-11zM4.061 6H15.94c.586 0 1.061.407 1.061.91v5.68c0 .503-.475.91-1.061.91H4.06c-.585 0-1.06-.407-1.06-.91V6.91C3 6.406 3.475 6 4.061 6zM2 16.5V15h16v1.5z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M18 4.5V3H2v1.5h16zm0 3V6h-5.674v1.5H18zm0 3V9h-5.674v1.5H18zm0 3V12h-5.674v1.5H18zm-8.5-6V12h-6V7.5h6zm.818-1.5H2.682C2.305 6 2 6.407 2 6.91v5.68c0 .503.305.91.682.91h7.636c.377 0 .682-.407.682-.91V6.91c0-.503-.305-.91-.682-.91zM18 16.5V15H2v1.5h16z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm4.5 3V12h7V7.5h-7zM5.758 6h8.484c.419 0 .758.407.758.91v5.681c0 .502-.34.909-.758.909H5.758c-.419 0-.758-.407-.758-.91V6.91c0-.503.34-.91.758-.91zM2 16.5V15h16v1.5z"/></svg>'},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(100);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e,n){"use strict";e.a=function(){return!1}},function(t,n,r){"use strict";(function(t){var i=r(4),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?i.a.Buffer:void 0,l=a?a.allocUnsafe:void 0;n.a=function(t,e){if(e)return t.slice();var n=t.length,r=l?l(n):new t.constructor(n);return t.copy(r),r}}).call(this,r(12)(t))},function(t){t.exports=JSON.parse('{"a":"12.3.1"}')},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.042 9.367l2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M14.958 9.367l-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.586 14.633l.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z" /></svg>\n'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>\n'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22L2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21l-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><rect rx="4"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562l-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.3 17.37l-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506L13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5L9.375 17H19v1.5H8z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18.68 2.53c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.08c0-.58-.01-.55.6-.55h17.38zM15.77 14.5v-10H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 6.677a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V6.676z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>'},function(t,e){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>'},function(t,e,n){var r=n(46);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-placeholder:before,.ck .ck-placeholder:before{content:attr(data-placeholder);pointer-events:none;cursor:text;color:var(--ck-color-engine-placeholder-text)}"},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(t,e,n){var r=n(49);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{box-sizing:border-box;width:auto;height:auto;position:static}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999);--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border:#47a4f5;--ck-color-focus-shadow:rgba(119,186,248,0.5);--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#5c5c5c;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-upload-infinite-background:rgba(0,0,0,0.1);--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none;word-wrap:break-word}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}"},function(t,e,n){var r=n(51);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}"},function(t,e,n){var r=n(53);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(t,e,n){var r=n(55);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}"},function(t,e,n){var r=n(57);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row wrap;align-items:center}.ck.ck-toolbar.ck-toolbar_vertical{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating{flex-wrap:nowrap}.ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar__newline{display:block;width:100%}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar>:last-child{margin-right:0}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar__separator{align-self:stretch;width:1px;margin-top:0;margin-bottom:0;background:var(--ck-color-toolbar-border)}.ck.ck-toolbar__newline{margin:0}"},function(t,e,n){var r=n(59);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}"},function(t,e,n){var r=n(61);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}"},function(t,e,n){var r=n(63);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports='.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck-tooltip .ck-tooltip__text{display:inline-block}.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0}.ck.ck-tooltip.ck-tooltip_s{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_n{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{border-style:solid;left:50%}.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s}'},function(t,e,n){var r=n(65);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button .ck-button__label,.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button .ck-button__label,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;border-color:transparent}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}.ck.ck-button.ck-button_with-text .ck-button__icon,a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(-1*var(--ck-spacing-small));margin-right:var(--ck-spacing-small)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}"},function(t,e,n){var r=n(67);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;font-style:italic;border-left:5px solid #ccc}"},function(t,e,n){var r=n(69);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck .ck-widget.ck-widget_with-selection-handler{position:relative}.ck .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler{visibility:hidden;position:absolute}.ck .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handler.ck-widget_selected .ck-widget__selection-handler,.ck .ck-widget.ck-widget_with-selection-handler:hover .ck-widget__selection-handler{visibility:visible}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck-editor__editable>.ck-widget.ck-widget_with-selection-handler:first-child,.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handler:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}.ck .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handler.ck-widget_selected .ck-widget__selection-handler,.ck .ck-widget.ck-widget_with-selection-handler.ck-widget_selected:hover .ck-widget__selection-handler{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handler.ck-widget_selected .ck-widget__selection-handler .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handler.ck-widget_selected:hover .ck-widget__selection-handler .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handler:hover .ck-widget__selection-handler{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected .ck-widget__selection-handler,.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected .ck-widget__selection-handler:hover,.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover .ck-widget__selection-handler,.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover .ck-widget__selection-handler:hover{background:var(--ck-color-widget-blurred-border)}.ck-editor__editable.ck-read-only .ck-widget{--ck-widget-outline-thickness:0}"},function(t,e,n){var r=n(71);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-labeled-input .ck-labeled-input__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-input .ck-labeled-input__status_error{color:var(--ck-color-base-error)}"},function(t,e,n){var r=n(73);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{box-shadow:var(--ck-inner-shadow),0 0;background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition-property:box-shadow,border;transition:.2s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),var(--ck-inner-shadow)}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}"},function(t,e,n){var r=n(75);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-input{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-input{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}.ck.ck-text-alternative-form{padding:var(--ck-spacing-standard)}.ck.ck-text-alternative-form:focus{outline:none}.ck.ck-text-alternative-form>:not(:first-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-text-alternative-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-text-alternative-form .ck-labeled-input{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-text-alternative-form .ck-labeled-input .ck-input-text{min-width:0;width:100%}.ck.ck-text-alternative-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);margin-left:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}.ck.ck-text-alternative-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(t,e,n){var r=n(77);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}'},function(t,e,n){var r=n(79);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}"},function(t,e,n){var r=n(81);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}"},function(t,e,n){var r=n(83);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck-content .image{clear:both;text-align:center;margin:1em 0}.ck-content .image>img{display:block;margin:0 auto;max-width:100%}"},function(t,e,n){var r=n(85);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck-content .image{position:relative;overflow:hidden}.ck-content .image .ck-progress-bar{position:absolute;top:0;left:0}:root{--ck-image-upload-progress-line-width:30px}.ck-content .image.ck-appear{animation:fadeIn .7s}.ck-content .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}"},function(t,e,n){var r=n(87);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}'},function(t,e,n){var r=n(89);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports='.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}'},function(t,e,n){var r=n(91);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block;will-change:transform}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{transform:translate3d(0,100%,0)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}:root{--ck-dropdown-arrow-size:calc(0.5*var(--ck-icon-size))}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);width:var(--ck-dropdown-arrow-size);margin-left:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}"},function(t,e,n){var r=n(93);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;border:0;padding:calc(0.2*var(--ck-line-height-base)*var(--ck-font-size-base)) calc(0.4*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(1.2*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:hover:not(ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}"},function(t,e,n){var r=n(95);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px}.ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(2*var(--ck-spacing-large))}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto;transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(0.5*var(--ck-border-radius))}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(1.3846153847em)}"},function(t,e,n){var r=n(97);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-toolbar-dropdown .ck-toolbar{flex-wrap:nowrap}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}"},function(t,e,n){var r=n(99);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}"},function(t,e){t.exports=".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}"},function(t,e,n){var r=n(102);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck-content .image>figcaption{color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}"},function(t,e,n){var r=n(104);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-align-center,.ck-content .image-style-align-left,.ck-content .image-style-align-right,.ck-content .image-style-side{max-width:50%}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}"},function(t,e,n){var r=n(106);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}"},function(t,e,n){var r=n(108);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-input{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form{padding:var(--ck-spacing-standard)}.ck.ck-link-form:focus{outline:none}.ck.ck-link-form>:not(:first-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-form .ck-labeled-input{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-form .ck-labeled-input .ck-input-text{min-width:0;width:100%}.ck.ck-link-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);margin-left:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}.ck.ck-link-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-input{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-input .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}.ck.ck-link-form_layout-vertical .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin-left:0}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}"},function(t,e,n){var r=n(110);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions{padding:var(--ck-spacing-standard)}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions:focus{outline:none}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);margin-left:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):first-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(t,e,n){var r=n(112);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports='.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(3*var(--ck-spacing-standard));background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJNMjEyLjk4MyAyNDguNDk1bC0zNi45NTIgMzYuOTUzdi44MTJhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwIDAtMi43NjQtMy45IDM3LjU3NSAzNy41NzUgMCAwIDAtLjk4OS0xLjQ0IDM1LjEyNyAzNS4xMjcgMCAwIDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM5LTUuMjM4di0xLjA0NXoiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c8,#b900b4,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}'},function(t,e,n){var r=n(114);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-input{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-input{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}.ck.ck-media-form{padding:var(--ck-spacing-standard)}.ck.ck-media-form:focus{outline:none}.ck.ck-media-form>:not(:first-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-media-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-media-form .ck-labeled-input{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-media-form .ck-labeled-input .ck-input-text{min-width:0;width:100%}.ck.ck-media-form .ck-labeled-input .ck-labeled-input__error{white-space:normal}.ck.ck-media-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);margin-left:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}.ck.ck-media-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(t,e,n){var r=n(116);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}"},function(t,e,n){var r=n(118);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=":root{--ck-color-table-focused-cell-background:#f5fafe}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}"},function(t,e,n){var r=n(120);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=":root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px;--ck-insert-table-dropdown-box-border-color:#bfbfbf;--ck-insert-table-dropdown-box-border-active-color:#53a0e4;--ck-insert-table-dropdown-box-active-background:#c7e5ff}.ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-insert-table-dropdown-box-border-color);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-insert-table-dropdown-box-border-active-color);background:var(--ck-insert-table-dropdown-box-active-background)}"},function(t,e,n){var r=n(122);"string"==typeof r&&(r=[[t.i,r,""]]);var i={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports=".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border-color:#d9d9d9}.ck-content .table table th{font-weight:700;background:#fafafa}"},function(t,e,n){"use strict";n.r(e);var r=n(4),i=r.a.Symbol,o=Object.prototype,s=o.hasOwnProperty,a=o.toString,l=i?i.toStringTag:void 0,c=function(t){var e=s.call(t,l),n=t[l];try{t[l]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[l]=n:delete t[l]),i},u=Object.prototype.toString,d=function(t){return u.call(t)},h="[object Null]",f="[object Undefined]",p=i?i.toStringTag:void 0,g=function(t){return null==t?void 0===t?f:h:p&&p in Object(t)?c(t):d(t)},m=function(t,e){return function(n){return t(e(n))}},v=m(Object.getPrototypeOf,Object),b=function(t){return null!=t&&"object"==typeof t},y="[object Object]",w=Function.prototype,k=Object.prototype,_=w.toString,x=k.hasOwnProperty,C=_.call(Object),S=function(t){if(!b(t)||g(t)!=y)return!1;var e=v(t);if(null===e)return!0;var n=x.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&_.call(n)==C},T=function(){this.__data__=[],this.size=0},O=function(t,e){return t===e||t!=t&&e!=e},P=function(t,e){for(var n=t.length;n--;)if(O(t[n][0],e))return n;return-1},A=Array.prototype.splice,E=function(t){var e=this.__data__,n=P(e,t);return!(n<0||(n==e.length-1?e.pop():A.call(e,n,1),--this.size,0))},M=function(t){var e=this.__data__,n=P(e,t);return n<0?void 0:e[n][1]},I=function(t){return P(this.__data__,t)>-1},N=function(t,e){var n=this.__data__,r=P(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function j(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])}}j.prototype.clear=T,j.prototype.delete=E,j.prototype.get=M,j.prototype.has=I,j.prototype.set=N;var D=j,L=function(){this.__data__=new D,this.size=0},B=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},R=function(t){return this.__data__.get(t)},F=function(t){return this.__data__.has(t)},$=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},V="[object AsyncFunction]",z="[object Function]",H="[object GeneratorFunction]",W="[object Proxy]",U=function(t){if(!$(t))return!1;var e=g(t);return e==z||e==H||e==V||e==W},q=r.a["__core-js_shared__"],G=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Y=function(t){return!!G&&G in t},K=Function.prototype.toString,X=function(t){if(null!=t){try{return K.call(t)}catch(t){}try{return t+""}catch(t){}}return""},J=/^\[object .+?Constructor\]$/,Q=Function.prototype,Z=Object.prototype,tt=Q.toString,et=Z.hasOwnProperty,nt=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=function(t){return!(!$(t)||Y(t))&&(U(t)?nt:J).test(X(t))},it=function(t,e){return null==t?void 0:t[e]},ot=function(t,e){var n=it(t,e);return rt(n)?n:void 0},st=ot(r.a,"Map"),at=ot(Object,"create"),lt=function(){this.__data__=at?at(null):{},this.size=0},ct=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ut="__lodash_hash_undefined__",dt=Object.prototype.hasOwnProperty,ht=function(t){var e=this.__data__;if(at){var n=e[t];return n===ut?void 0:n}return dt.call(e,t)?e[t]:void 0},ft=Object.prototype.hasOwnProperty,pt=function(t){var e=this.__data__;return at?void 0!==e[t]:ft.call(e,t)},gt="__lodash_hash_undefined__",mt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=at&&void 0===e?gt:e,this};function vt(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])}}vt.prototype.clear=lt,vt.prototype.delete=ct,vt.prototype.get=ht,vt.prototype.has=pt,vt.prototype.set=mt;var bt=vt,yt=function(){this.size=0,this.__data__={hash:new bt,map:new(st||D),string:new bt}},wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},kt=function(t,e){var n=t.__data__;return wt(e)?n["string"==typeof e?"string":"hash"]:n.map},_t=function(t){var e=kt(this,t).delete(t);return this.size-=e?1:0,e},xt=function(t){return kt(this,t).get(t)},Ct=function(t){return kt(this,t).has(t)},St=function(t,e){var n=kt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Tt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Tt.prototype.clear=yt,Tt.prototype.delete=_t,Tt.prototype.get=xt,Tt.prototype.has=Ct,Tt.prototype.set=St;var Ot=Tt,Pt=200,At=function(t,e){var n=this.__data__;if(n instanceof D){var r=n.__data__;if(!st||r.length<Pt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ot(r)}return n.set(t,e),this.size=n.size,this};function Et(t){var e=this.__data__=new D(t);this.size=e.size}Et.prototype.clear=L,Et.prototype.delete=B,Et.prototype.get=R,Et.prototype.has=F,Et.prototype.set=At;var Mt=Et,It=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},Nt=function(){try{var t=ot(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),jt=function(t,e,n){"__proto__"==e&&Nt?Nt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},Dt=Object.prototype.hasOwnProperty,Lt=function(t,e,n){var r=t[e];Dt.call(t,e)&&O(r,n)&&(void 0!==n||e in t)||jt(t,e,n)},Bt=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=r?r(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),i?jt(n,a,l):Lt(n,a,l)}return n},Rt=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},Ft="[object Arguments]",$t=function(t){return b(t)&&g(t)==Ft},Vt=Object.prototype,zt=Vt.hasOwnProperty,Ht=Vt.propertyIsEnumerable,Wt=$t(function(){return arguments}())?$t:function(t){return b(t)&&zt.call(t,"callee")&&!Ht.call(t,"callee")},Ut=Array.isArray,qt=n(6),Gt=9007199254740991,Yt=/^(?:0|[1-9]\d*)$/,Kt=function(t,e){var n=typeof t;return!!(e=null==e?Gt:e)&&("number"==n||"symbol"!=n&&Yt.test(t))&&t>-1&&t%1==0&&t<e},Xt=9007199254740991,Jt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Xt},Qt={};Qt["[object Float32Array]"]=Qt["[object Float64Array]"]=Qt["[object Int8Array]"]=Qt["[object Int16Array]"]=Qt["[object Int32Array]"]=Qt["[object Uint8Array]"]=Qt["[object Uint8ClampedArray]"]=Qt["[object Uint16Array]"]=Qt["[object Uint32Array]"]=!0,Qt["[object Arguments]"]=Qt["[object Array]"]=Qt["[object ArrayBuffer]"]=Qt["[object Boolean]"]=Qt["[object DataView]"]=Qt["[object Date]"]=Qt["[object Error]"]=Qt["[object Function]"]=Qt["[object Map]"]=Qt["[object Number]"]=Qt["[object Object]"]=Qt["[object RegExp]"]=Qt["[object Set]"]=Qt["[object String]"]=Qt["[object WeakMap]"]=!1;var Zt=function(t){return b(t)&&Jt(t.length)&&!!Qt[g(t)]},te=function(t){return function(e){return t(e)}},ee=n(5),ne=ee.a&&ee.a.isTypedArray,re=ne?te(ne):Zt,ie=Object.prototype.hasOwnProperty,oe=function(t,e){var n=Ut(t),r=!n&&Wt(t),i=!n&&!r&&Object(qt.a)(t),o=!n&&!r&&!i&&re(t),s=n||r||i||o,a=s?Rt(t.length,String):[],l=a.length;for(var c in t)!e&&!ie.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Kt(c,l))||a.push(c);return a},se=Object.prototype,ae=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||se)},le=m(Object.keys,Object),ce=Object.prototype.hasOwnProperty,ue=function(t){if(!ae(t))return le(t);var e=[];for(var n in Object(t))ce.call(t,n)&&"constructor"!=n&&e.push(n);return e},de=function(t){return null!=t&&Jt(t.length)&&!U(t)},he=function(t){return de(t)?oe(t):ue(t)},fe=function(t,e){return t&&Bt(e,he(e),t)},pe=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},ge=Object.prototype.hasOwnProperty,me=function(t){if(!$(t))return pe(t);var e=ae(t),n=[];for(var r in t)("constructor"!=r||!e&&ge.call(t,r))&&n.push(r);return n},ve=function(t){return de(t)?oe(t,!0):me(t)},be=function(t,e){return t&&Bt(e,ve(e),t)},ye=n(19),we=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},ke=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o},_e=function(){return[]},xe=Object.prototype.propertyIsEnumerable,Ce=Object.getOwnPropertySymbols,Se=Ce?function(t){return null==t?[]:(t=Object(t),ke(Ce(t),function(e){return xe.call(t,e)}))}:_e,Te=function(t,e){return Bt(t,Se(t),e)},Oe=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},Pe=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Oe(e,Se(t)),t=v(t);return e}:_e,Ae=function(t,e){return Bt(t,Pe(t),e)},Ee=function(t,e,n){var r=e(t);return Ut(t)?r:Oe(r,n(t))},Me=function(t){return Ee(t,he,Se)},Ie=function(t){return Ee(t,ve,Pe)},Ne=ot(r.a,"DataView"),je=ot(r.a,"Promise"),De=ot(r.a,"Set"),Le=ot(r.a,"WeakMap"),Be=X(Ne),Re=X(st),Fe=X(je),$e=X(De),Ve=X(Le),ze=g;(Ne&&"[object DataView]"!=ze(new Ne(new ArrayBuffer(1)))||st&&"[object Map]"!=ze(new st)||je&&"[object Promise]"!=ze(je.resolve())||De&&"[object Set]"!=ze(new De)||Le&&"[object WeakMap]"!=ze(new Le))&&(ze=function(t){var e=g(t),n="[object Object]"==e?t.constructor:void 0,r=n?X(n):"";if(r)switch(r){case Be:return"[object DataView]";case Re:return"[object Map]";case Fe:return"[object Promise]";case $e:return"[object Set]";case Ve:return"[object WeakMap]"}return e});var He=ze,We=Object.prototype.hasOwnProperty,Ue=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&We.call(t,"index")&&(n.index=t.index,n.input=t.input),n},qe=r.a.Uint8Array,Ge=function(t){var e=new t.constructor(t.byteLength);return new qe(e).set(new qe(t)),e},Ye=function(t,e){var n=e?Ge(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)},Ke=/\w*$/,Xe=function(t){var e=new t.constructor(t.source,Ke.exec(t));return e.lastIndex=t.lastIndex,e},Je=i?i.prototype:void 0,Qe=Je?Je.valueOf:void 0,Ze=function(t){return Qe?Object(Qe.call(t)):{}},tn=function(t,e){var n=e?Ge(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},en="[object Boolean]",nn="[object Date]",rn="[object Map]",on="[object Number]",sn="[object RegExp]",an="[object Set]",ln="[object String]",cn="[object Symbol]",un="[object ArrayBuffer]",dn="[object DataView]",hn="[object Float32Array]",fn="[object Float64Array]",pn="[object Int8Array]",gn="[object Int16Array]",mn="[object Int32Array]",vn="[object Uint8Array]",bn="[object Uint8ClampedArray]",yn="[object Uint16Array]",wn="[object Uint32Array]",kn=function(t,e,n){var r=t.constructor;switch(e){case un:return Ge(t);case en:case nn:return new r(+t);case dn:return Ye(t,n);case hn:case fn:case pn:case gn:case mn:case vn:case bn:case yn:case wn:return tn(t,n);case rn:return new r;case on:case ln:return new r(t);case sn:return Xe(t);case an:return new r;case cn:return Ze(t)}},_n=Object.create,xn=function(){function t(){}return function(e){if(!$(e))return{};if(_n)return _n(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Cn=function(t){return"function"!=typeof t.constructor||ae(t)?{}:xn(v(t))},Sn="[object Map]",Tn=function(t){return b(t)&&He(t)==Sn},On=ee.a&&ee.a.isMap,Pn=On?te(On):Tn,An="[object Set]",En=function(t){return b(t)&&He(t)==An},Mn=ee.a&&ee.a.isSet,In=Mn?te(Mn):En,Nn=1,jn=2,Dn=4,Ln="[object Arguments]",Bn="[object Function]",Rn="[object GeneratorFunction]",Fn="[object Object]",$n={};$n[Ln]=$n["[object Array]"]=$n["[object ArrayBuffer]"]=$n["[object DataView]"]=$n["[object Boolean]"]=$n["[object Date]"]=$n["[object Float32Array]"]=$n["[object Float64Array]"]=$n["[object Int8Array]"]=$n["[object Int16Array]"]=$n["[object Int32Array]"]=$n["[object Map]"]=$n["[object Number]"]=$n[Fn]=$n["[object RegExp]"]=$n["[object Set]"]=$n["[object String]"]=$n["[object Symbol]"]=$n["[object Uint8Array]"]=$n["[object Uint8ClampedArray]"]=$n["[object Uint16Array]"]=$n["[object Uint32Array]"]=!0,$n["[object Error]"]=$n[Bn]=$n["[object WeakMap]"]=!1;var Vn=function t(e,n,r,i,o,s){var a,l=n&Nn,c=n&jn,u=n&Dn;if(r&&(a=o?r(e,i,o,s):r(e)),void 0!==a)return a;if(!$(e))return e;var d=Ut(e);if(d){if(a=Ue(e),!l)return we(e,a)}else{var h=He(e),f=h==Bn||h==Rn;if(Object(qt.a)(e))return Object(ye.a)(e,l);if(h==Fn||h==Ln||f&&!o){if(a=c||f?{}:Cn(e),!l)return c?Ae(e,be(a,e)):Te(e,fe(a,e))}else{if(!$n[h])return o?e:{};a=kn(e,h,l)}}s||(s=new Mt);var p=s.get(e);if(p)return p;if(s.set(e,a),In(e))return e.forEach(function(i){a.add(t(i,n,r,i,e,s))}),a;if(Pn(e))return e.forEach(function(i,o){a.set(o,t(i,n,r,o,e,s))}),a;var g=u?c?Ie:Me:c?keysIn:he,m=d?void 0:g(e);return It(m||e,function(i,o){m&&(i=e[o=i]),Lt(a,o,t(i,n,r,o,e,s))}),a},zn=1,Hn=4,Wn=function(t,e){return Vn(t,zn|Hn,e="function"==typeof e?e:void 0)},Un=function(t){return b(t)&&1===t.nodeType&&!S(t)};class qn{constructor(t,e){this._config={},e&&this.define(e),t&&this._setObjectToTarget(this._config,t)}set(t,e){this._setToTarget(this._config,t,e)}define(t,e){this._setToTarget(this._config,t,e,!0)}get(t){return this._getFromSource(this._config,t)}_setToTarget(t,e,n,r=!1){if(S(e))return void this._setObjectToTarget(t,e,r);const i=e.split(".");e=i.pop();for(const o of i)S(t[o])||(t[o]={}),t=t[o];if(S(n))return S(t[e])||(t[e]={}),t=t[e],void this._setObjectToTarget(t,n,r);r&&void 0!==t[e]||(t[e]=n)}_getFromSource(t,e){const n=e.split(".");e=n.pop();for(const r of n){if(!S(t[r])){t=null;break}t=t[r]}return t?function(t){return Wn(t,Gn)}(t[e]):void 0}_setObjectToTarget(t,e,n){Object.keys(e).forEach(r=>{this._setToTarget(t,r,e[r],n)})}}function Gn(t){return Un(t)?t:void 0}var Yn=n(0),Kn=function(){return function t(){t.called=!0}};class Xn{constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=Kn(),this.off=Kn()}}function Jn(){let t="e";for(let e=0;e<8;e++)t+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return t}var Qn={get(t){return"number"!=typeof t?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};n(9);const Zn=Symbol("listeningTo"),tr=Symbol("emitterId");var er={on(t,e,n={}){this.listenTo(this,t,e,n)},once(t,e,n){let r=!1;this.listenTo(this,t,function(t,...n){r||(r=!0,t.off(),e.call(this,t,...n))},n)},off(t,e){this.stopListening(this,t,e)},listenTo(t,e,n,r={}){let i,o;this[Zn]||(this[Zn]={});const s=this[Zn];rr(t)||nr(t);const a=rr(t);(i=s[a])||(i=s[a]={emitter:t,callbacks:{}}),(o=i.callbacks[e])||(o=i.callbacks[e]=[]),o.push(n),function(t,e){const n=ir(t);if(n[e])return;let r=e,i=null;const o=[];for(;""!==r&&!n[r];)n[r]={callbacks:[],childEvents:[]},o.push(n[r]),i&&n[r].childEvents.push(i),i=r,r=r.substr(0,r.lastIndexOf(":"));if(""!==r){for(const t of o)t.callbacks=n[r].callbacks.slice();n[r].childEvents.push(i)}}(t,e);const l=or(t,e),c=Qn.get(r.priority),u={callback:n,priority:c};for(const d of l){let t=!1;for(let e=0;e<d.length;e++)if(d[e].priority<c){d.splice(e,0,u),t=!0;break}t||d.push(u)}},stopListening(t,e,n){const r=this[Zn];let i=t&&rr(t);const o=r&&i&&r[i],s=o&&e&&o.callbacks[e];if(!(!r||t&&!o||e&&!s))if(n)ar(t,e,n);else if(s){for(;n=s.pop();)ar(t,e,n);delete o.callbacks[e]}else if(o){for(e in o.callbacks)this.stopListening(t,e);delete r[i]}else{for(i in r)this.stopListening(r[i].emitter);delete this[Zn]}},fire(t,...e){const n=t instanceof Xn?t:new Xn(this,t),r=n.name;let i=function t(e,n){let r;return e._events&&(r=e._events[n])&&r.callbacks.length?r.callbacks:n.indexOf(":")>-1?t(e,n.substr(0,n.lastIndexOf(":"))):null}(this,r);if(n.path.push(this),i){const t=[n,...e];i=Array.from(i);for(let e=0;e<i.length&&(i[e].callback.apply(this,t),n.off.called&&(delete n.off.called,ar(this,r,i[e].callback)),!n.stop.called);e++);}if(this._delegations){const t=this._delegations.get(r),i=this._delegations.get("*");t&&sr(t,n,e),i&&sr(i,n,e)}return n.return},delegate(...t){return{to:(e,n)=>{this._delegations||(this._delegations=new Map),t.forEach(t=>{const r=this._delegations.get(t);r?r.set(e,n):this._delegations.set(t,new Map([[e,n]]))})}}},stopDelegating(t,e){if(this._delegations)if(t)if(e){const n=this._delegations.get(t);n&&n.delete(e)}else this._delegations.delete(t);else this._delegations.clear()}};function nr(t,e){t[tr]||(t[tr]=e||Jn())}function rr(t){return t[tr]}function ir(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function or(t,e){const n=ir(t)[e];if(!n)return[];let r=[n.callbacks];for(let i=0;i<n.childEvents.length;i++){const e=or(t,n.childEvents[i]);r=r.concat(e)}return r}function sr(t,e,n){for(let[r,i]of t){i?"function"==typeof i&&(i=i(e.name)):i=e.name;const t=new Xn(e.source,i);t.path=[...e.path],r.fire(t,...n)}}function ar(t,e,n){const r=or(t,e);for(const i of r)for(let t=0;t<i.length;t++)i[t].callback==n&&(i.splice(t,1),t--)}function lr(t,...e){e.forEach(e=>{Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)).forEach(n=>{if(n in t.prototype)return;const r=Object.getOwnPropertyDescriptor(e,n);r.enumerable=!1,Object.defineProperty(t.prototype,n,r)})})}function cr(t,e){const n=Math.min(t.length,e.length);for(let r=0;r<n;r++)if(t[r]!=e[r])return r;return t.length==e.length?"same":t.length<e.length?"prefix":"extension"}var ur=4,dr=function(t){return Vn(t,ur)};class hr{constructor(){this.parent=null}get index(){let t;if(!this.parent)return null;if(-1==(t=this.parent.getChildIndex(this)))throw new Yn.b("view-node-not-found-in-parent: The node's parent does not contain this node.",this);return t}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}get document(){return this.parent instanceof hr?this.parent.document:null}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.index),e=e.parent;return t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),r=t.getAncestors(e);let i=0;for(;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),r=cr(e,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return e[r]<n[r]}}isAfter(t){return this!=t&&this.root===t.root&&!this.isBefore(t)}_remove(){this.parent._removeChildren(this.index)}_fireChange(t,e){this.fire("change:"+t,e),this.parent&&this.parent._fireChange(t,e)}toJSON(){const t=dr(this);return delete t.parent,t}is(t){return"node"==t}}lr(hr,er);class fr extends hr{constructor(t){super(),this._textData=t}is(t){return"text"==t||super.is(t)}get data(){return this._textData}get _data(){return this.data}set _data(t){this._fireChange("text",this),this._textData=t}isSimilar(t){return t instanceof fr&&(this===t||this.data===t.data)}_clone(){return new fr(this.data)}}class pr{constructor(t,e,n){if(this.textNode=t,e<0||e>t.data.length)throw new Yn.b("view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(n<0||e+n>t.data.length)throw new Yn.b("view-textproxy-wrong-length: Given length value is incorrect.",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(t){return"textProxy"==t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this.textNode:this.parent;for(;null!==n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}function gr(t){const e=new Map;for(const n in t)e.set(n,t[n]);return e}function mr(t){return!(!t||!t[Symbol.iterator])}class vr{constructor(...t){this._patterns=[],this.add(...t)}add(...t){for(let e of t)("string"==typeof e||e instanceof RegExp)&&(e={name:e}),e.classes&&("string"==typeof e.classes||e.classes instanceof RegExp)&&(e.classes=[e.classes]),this._patterns.push(e)}match(...t){for(const e of t)for(const t of this._patterns){const n=br(e,t);if(n)return{element:e,pattern:t,match:n}}return null}matchAll(...t){const e=[];for(const n of t)for(const t of this._patterns){const r=br(n,t);r&&e.push({element:n,pattern:t,match:r})}return e.length>0?e:null}getElementName(){if(1!==this._patterns.length)return null;const t=this._patterns[0],e=t.name;return"function"==typeof t||!e||e instanceof RegExp?null:e}}function br(t,e){if("function"==typeof e)return e(t);const n={};return e.name&&(n.name=function(t,e){return t instanceof RegExp?t.test(e):t===e}(e.name,t.name),!n.name)?null:e.attributes&&(n.attributes=function(t,e){const n=[];for(const r in t){const i=t[r];if(!e.hasAttribute(r))return null;{const t=e.getAttribute(r);if(!0===i)n.push(r);else if(i instanceof RegExp){if(!i.test(t))return null;n.push(r)}else{if(t!==i)return null;n.push(r)}}}return n}(e.attributes,t),!n.attributes)?null:!(e.classes&&(n.classes=function(t,e){const n=[];for(const r of t)if(r instanceof RegExp){const t=e.getClassNames();for(const e of t)r.test(e)&&n.push(e);if(0===n.length)return null}else{if(!e.hasClass(r))return null;n.push(r)}return n}(e.classes,t),!n.classes))&&!(e.styles&&(n.styles=function(t,e){const n=[];for(const r in t){const i=t[r];if(!e.hasStyle(r))return null;{const t=e.getStyle(r);if(i instanceof RegExp){if(!i.test(t))return null;n.push(r)}else{if(t!==i)return null;n.push(r)}}}return n}(e.styles,t),!n.styles))&&n}class yr extends hr{constructor(t,e,n){if(super(),this.name=t,this._attrs=function(t){t=S(t)?gr(t):new Map(t);for(const[e,n]of t)null===n?t.delete(e):"string"!=typeof n&&t.set(e,String(n));return t}(e),this._children=[],n&&this._insertChild(0,n),this._classes=new Set,this._attrs.has("class")){const t=this._attrs.get("class");kr(this._classes,t),this._attrs.delete("class")}this._styles=new Map,this._attrs.has("style")&&(wr(this._styles,this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}is(t,e=null){return e?"element"==t&&e==this.name:"element"==t||t==this.name||super.is(t)}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.size>0&&(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.size>0&&(yield["style",this.getAttribute("style")])}getAttribute(t){if("class"==t)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"!=t)return this._attrs.get(t);if(this._styles.size>0){let t="";for(const[e,n]of this._styles)t+=`${e}:${n};`;return t}}hasAttribute(t){return"class"==t?this._classes.size>0:"style"==t?this._styles.size>0:this._attrs.has(t)}isSimilar(t){if(!(t instanceof yr))return!1;if(this===t)return!0;if(this.name!=t.name)return!1;if(this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;for(const[e,n]of this._attrs)if(!t._attrs.has(e)||t._attrs.get(e)!==n)return!1;for(const e of this._classes)if(!t._classes.has(e))return!1;for(const[e,n]of this._styles)if(!t._styles.has(e)||t._styles.get(e)!==n)return!1;return!0}hasClass(...t){for(const e of t)if(!this._classes.has(e))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(t){return this._styles.get(t)}getStyleNames(){return this._styles.keys()}hasStyle(...t){for(const e of t)if(!this._styles.has(e))return!1;return!0}findAncestor(...t){const e=new vr(...t);let n=this.parent;for(;n;){if(e.match(n))return n;n=n.parent}return null}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const t=Array.from(this._classes).sort().join(","),e=Array.from(this._styles).map(t=>`${t[0]}:${t[1]}`).sort().join(";"),n=Array.from(this._attrs).map(t=>`${t[0]}="${t[1]}"`).sort().join(" ");return this.name+(""==t?"":` class="${t}"`)+(""==e?"":` style="${e}"`)+(""==n?"":` ${n}`)}_clone(t=!1){const e=[];if(t)for(const r of this.getChildren())e.push(r._clone(t));const n=new this.constructor(this.name,this._attrs,e);return n._classes=new Set(this._classes),n._styles=new Map(this._styles),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n}_appendChild(t){return this._insertChild(this.childCount,t)}_insertChild(t,e){this._fireChange("children",this);let n=0;const r=function(t){return"string"==typeof t?[new fr(t)]:(mr(t)||(t=[t]),Array.from(t).map(t=>"string"==typeof t?new fr(t):t instanceof pr?new fr(t.data):t))}(e);for(const i of r)null!==i.parent&&i._remove(),i.parent=this,this._children.splice(t,0,i),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}_setAttribute(t,e){e=String(e),this._fireChange("attributes",this),"class"==t?kr(this._classes,e):"style"==t?wr(this._styles,e):this._attrs.set(t,e)}_removeAttribute(t){return this._fireChange("attributes",this),"class"==t?this._classes.size>0&&(this._classes.clear(),!0):"style"==t?this._styles.size>0&&(this._styles.clear(),!0):this._attrs.delete(t)}_addClass(t){this._fireChange("attributes",this),(t=Array.isArray(t)?t:[t]).forEach(t=>this._classes.add(t))}_removeClass(t){this._fireChange("attributes",this),(t=Array.isArray(t)?t:[t]).forEach(t=>this._classes.delete(t))}_setStyle(t,e){if(this._fireChange("attributes",this),S(t)){const e=Object.keys(t);for(const n of e)this._styles.set(n,t[n])}else this._styles.set(t,e)}_removeStyle(t){this._fireChange("attributes",this),(t=Array.isArray(t)?t:[t]).forEach(t=>this._styles.delete(t))}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}function wr(t,e){let n=null,r=0,i=0,o=null;if(t.clear(),""!==e){";"!=e.charAt(e.length-1)&&(e+=";");for(let s=0;s<e.length;s++){const a=e.charAt(s);if(null===n)switch(a){case":":o||(o=e.substr(r,s-r),i=s+1);break;case'"':case"'":n=a;break;case";":{const n=e.substr(i,s-i);o&&t.set(o.trim(),n.trim()),o=null,r=s+1;break}}else a===n&&(n=null)}}}function kr(t,e){const n=e.split(/\s+/);t.clear(),n.forEach(e=>t.add(e))}class _r extends yr{constructor(t,e,n){super(t,e,n),this.getFillerOffset=xr}is(t,e=null){return e?"containerElement"==t&&e==this.name||super.is(t,e):"containerElement"==t||super.is(t)}}function xr(){const t=[...this.getChildren()],e=t[this.childCount-1];if(e&&e.is("element","br"))return this.childCount;for(const n of t)if(!n.is("uiElement"))return null;return this.childCount}var Cr=function(t){return t},Sr=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)},Tr=Math.max,Or=function(t,e,n){return e=Tr(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Tr(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(s),Sr(t,this,a)}},Pr=function(t){return function(){return t}},Ar=Nt?function(t,e){return Nt(t,"toString",{configurable:!0,enumerable:!1,value:Pr(e),writable:!0})}:Cr,Er=800,Mr=16,Ir=Date.now,Nr=function(t){var e=0,n=0;return function(){var r=Ir(),i=Mr-(r-n);if(n=r,i>0){if(++e>=Er)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Ar),jr=function(t,e){return Nr(Or(t,e,Cr),t+"")},Dr=function(t,e,n){if(!$(n))return!1;var r=typeof e;return!!("number"==r?de(n)&&Kt(e,n.length):"string"==r&&e in n)&&O(n[e],t)},Lr=function(t){return jr(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,s&&Dr(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,o)}return e})}(function(t,e){Bt(e,ve(e),t)});const Br=Symbol("observableProperties"),Rr=Symbol("boundObservables"),Fr=Symbol("boundProperties"),$r={set(t,e){if($(t))return void Object.keys(t).forEach(e=>{this.set(e,t[e])},this);zr(this);const n=this[Br];if(t in this&&!n.has(t))throw new Yn.b("observable-set-cannot-override: Cannot override an existing property.",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n.get(t),set(e){const r=n.get(t);let i=this.fire("set:"+t,t,e,r);void 0===i&&(i=e),r===i&&n.has(t)||(n.set(t,i),this.fire("change:"+t,t,i,r))}}),this[t]=e},bind(...t){if(!t.length||!Ur(t))throw new Yn.b("observable-bind-wrong-properties: All properties must be strings.",this);if(new Set(t).size!==t.length)throw new Yn.b("observable-bind-duplicate-properties: Properties must be unique.",this);zr(this);const e=this[Fr];t.forEach(t=>{if(e.has(t))throw new Yn.b("observable-bind-rebind: Cannot bind the same property more that once.",this)});const n=new Map;return t.forEach(t=>{const r={property:t,to:[]};e.set(t,r),n.set(t,r)}),{to:Hr,toMany:Wr,_observable:this,_bindProperties:t,_to:[],_bindings:n}},unbind(...t){if(!(Br in this))return;const e=this[Fr],n=this[Rr];if(t.length){if(!Ur(t))throw new Yn.b("observable-unbind-wrong-properties: Properties must be strings.",this);t.forEach(t=>{const r=e.get(t);if(!r)return;let i,o,s,a;r.to.forEach(t=>{i=t[0],o=t[1],s=n.get(i),(a=s[o]).delete(r),a.size||delete s[o],Object.keys(s).length||(n.delete(i),this.stopListening(i,"change"))}),e.delete(t)})}else n.forEach((t,e)=>{this.stopListening(e,"change")}),n.clear(),e.clear()},decorate(t){const e=this[t];if(!e)throw new Yn.b("observablemixin-cannot-decorate-undefined: Cannot decorate an undefined method.",this,{object:this,methodName:t});this.on(t,(t,n)=>{t.return=e.apply(this,n)}),this[t]=function(...e){return this.fire(t,e)}}};Lr($r,er);var Vr=$r;function zr(t){Br in t||(Object.defineProperty(t,Br,{value:new Map}),Object.defineProperty(t,Rr,{value:new Map}),Object.defineProperty(t,Fr,{value:new Map}))}function Hr(...t){const e=function(...t){if(!t.length)throw new Yn.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);const e={to:[]};let n;return"function"==typeof t[t.length-1]&&(e.callback=t.pop()),t.forEach(t=>{if("string"==typeof t)n.properties.push(t);else{if("object"!=typeof t)throw new Yn.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);n={observable:t,properties:[]},e.to.push(n)}}),e}(...t),n=Array.from(this._bindings.keys()),r=n.length;if(!e.callback&&e.to.length>1)throw new Yn.b("observable-bind-to-no-callback: Binding multiple observables only possible with callback.",this);if(r>1&&e.callback)throw new Yn.b("observable-bind-to-extra-callback: Cannot bind multiple properties and use a callback in one binding.",this);e.to.forEach(t=>{if(t.properties.length&&t.properties.length!==r)throw new Yn.b("observable-bind-to-properties-length: The number of properties must match.",this);t.properties.length||(t.properties=this._bindProperties)}),this._to=e.to,e.callback&&(this._bindings.get(n[0]).callback=e.callback),function(t,e){e.forEach(e=>{const n=t[Rr];let r;n.get(e.observable)||t.listenTo(e.observable,"change",(i,o)=>{(r=n.get(e.observable)[o])&&r.forEach(e=>{qr(t,e.property)})})})}(this._observable,this._to),function(t){let e;t._bindings.forEach((n,r)=>{t._to.forEach(i=>{e=i.properties[n.callback?0:t._bindProperties.indexOf(r)],n.to.push([i.observable,e]),function(t,e,n,r){const i=t[Rr],o=i.get(n),s=o||{};s[r]||(s[r]=new Set),s[r].add(e),o||i.set(n,s)}(t._observable,n,i.observable,e)})})}(this),this._bindProperties.forEach(t=>{qr(this._observable,t)})}function Wr(t,e,n){if(this._bindings.size>1)throw new Yn.b("observable-bind-to-many-not-one-binding: Cannot bind multiple properties with toMany().",this);this.to(...function(t,e){const n=t.map(t=>[t,e]);return Array.prototype.concat.apply([],n)}(t,e),n)}function Ur(t){return t.every(t=>"string"==typeof t)}function qr(t,e){const n=t[Fr].get(e);let r;r=n.callback?n.callback.apply(t,n.to.map(t=>t[0][t[1]])):(r=n.to[0])[0][r[1]],t.hasOwnProperty(e)?t[e]=r:t.set(e,r)}const Gr=Symbol("document");class Yr extends _r{constructor(t,e,n){super(t,e,n),this.set("isReadOnly",!1),this.set("isFocused",!1)}is(t,e=null){return e?"editableElement"==t&&e==this.name||super.is(t,e):"editableElement"==t||super.is(t)}destroy(){this.stopListening()}get document(){return this.getCustomProperty(Gr)}set _document(t){if(this.getCustomProperty(Gr))throw new Yn.b("view-editableelement-document-already-set: View document is already set.",this);this._setCustomProperty(Gr,t),this.bind("isReadOnly").to(t),this.bind("isFocused").to(t,"isFocused",e=>e&&t.selection.editableElement==this),this.listenTo(t.selection,"change",()=>{this.isFocused=t.isFocused&&t.selection.editableElement==this})}}lr(Yr,Vr);const Kr=Symbol("rootName");class Xr extends Yr{constructor(t){super(t),this.rootName="main"}is(t,e=null){return e?"rootElement"==t&&e==this.name||super.is(t,e):"rootElement"==t||super.is(t)}get rootName(){return this.getCustomProperty(Kr)}set rootName(t){this._setCustomProperty(Kr,t)}set _name(t){this.name=t}}class Jr{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new Yn.b("view-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new Yn.b("view-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this.position=Qr._createAt(t.startPosition):this.position=Qr._createAt(t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(t){let e,n,r;do{r=this.position,({done:e,value:n}=this.next())}while(!e&&t(n));e||(this.position=r)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&t.offset===n.childCount)return{done:!0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};let r;if(n instanceof fr){if(t.isAtEnd)return this.position=Qr._createAfter(n),this._next();r=n.data[t.offset]}else r=n.getChild(t.offset);if(r instanceof yr)return this.shallow?t.offset++:t=new Qr(r,0),this.position=t,this._formatReturnValue("elementStart",r,e,t,1);if(r instanceof fr){if(this.singleCharacters)return t=new Qr(r,0),this.position=t,this._next();{let n,i=r.data.length;return r==this._boundaryEndParent?(i=this.boundaries.end.offset,n=new pr(r,0,i),t=Qr._createAfter(n)):(n=new pr(r,0,r.data.length),t.offset++),this.position=t,this._formatReturnValue("text",n,e,t,i)}}if("string"==typeof r){let r;r=this.singleCharacters?1:(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset;const i=new pr(n,t.offset,r);return t.offset+=r,this.position=t,this._formatReturnValue("text",i,e,t,r)}return t=Qr._createAfter(n),this.position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,e,t)}_previous(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&0===t.offset)return{done:!0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};let r;if(n instanceof fr){if(t.isAtStart)return this.position=Qr._createBefore(n),this._previous();r=n.data[t.offset-1]}else r=n.getChild(t.offset-1);if(r instanceof yr)return this.shallow?(t.offset--,this.position=t,this._formatReturnValue("elementStart",r,e,t,1)):(t=new Qr(r,r.childCount),this.position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",r,e,t));if(r instanceof fr){if(this.singleCharacters)return t=new Qr(r,r.data.length),this.position=t,this._previous();{let n,i=r.data.length;if(r==this._boundaryStartParent){const e=this.boundaries.start.offset;i=(n=new pr(r,e,r.data.length-e)).data.length,t=Qr._createBefore(n)}else n=new pr(r,0,r.data.length),t.offset--;return this.position=t,this._formatReturnValue("text",n,e,t,i)}}if("string"==typeof r){let r;if(this.singleCharacters)r=1;else{const e=n===this._boundaryStartParent?this.boundaries.start.offset:0;r=t.offset-e}t.offset-=r;const i=new pr(n,t.offset,r);return this.position=t,this._formatReturnValue("text",i,e,t,r)}return t=Qr._createBefore(n),this.position=t,this._formatReturnValue("elementStart",n,e,t,1)}_formatReturnValue(t,e,n,r,i){return e instanceof pr&&(e.offsetInText+e.data.length==e.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=Qr._createAfter(e.textNode):(r=Qr._createAfter(e.textNode),this.position=r)),0===e.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=Qr._createBefore(e.textNode):(r=Qr._createBefore(e.textNode),this.position=r))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:r,length:i}}}}class Qr{constructor(t,e){this.parent=t,this.offset=e}get nodeAfter(){return this.parent.is("text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const t=this.parent.is("text")?this.parent.data.length:this.parent.childCount;return this.offset===t}get root(){return this.parent.root}get editableElement(){let t=this.parent;for(;!(t instanceof Yr);){if(!t.parent)return null;t=t.parent}return t}getShiftedBy(t){const e=Qr._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new Jr(e);return n.skip(t),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let r=0;for(;e[r]==n[r]&&e[r];)r++;return 0===r?null:e[r-1]}isEqual(t){return this.parent==t.parent&&this.offset==t.offset}isBefore(t){return"before"==this.compareWith(t)}isAfter(t){return"after"==this.compareWith(t)}compareWith(t){if(this.root!==t.root)return"different";if(this.isEqual(t))return"same";const e=this.parent.is("node")?this.parent.getPath():[],n=t.parent.is("node")?t.parent.getPath():[];e.push(this.offset),n.push(t.offset);const r=cr(e,n);switch(r){case"prefix":return"before";case"extension":return"after";default:return e[r]<n[r]?"before":"after"}}getWalker(t={}){return t.startPosition=this,new Jr(t)}clone(){return new Qr(this.parent,this.offset)}static _createAt(t,e){if(t instanceof Qr)return new this(t.parent,t.offset);{const n=t;if("end"==e)e=n.is("text")?n.data.length:n.childCount;else{if("before"==e)return this._createBefore(n);if("after"==e)return this._createAfter(n);if(0!==e&&!e)throw new Yn.b("view-createPositionAt-offset-required: View#createPositionAt() requires the offset when the first parameter is a view item.",n)}return new Qr(n,e)}}static _createAfter(t){if(t.is("textProxy"))return new Qr(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new Yn.b("view-position-after-root: You can not make position after root.",t,{root:t});return new Qr(t.parent,t.index+1)}static _createBefore(t){if(t.is("textProxy"))return new Qr(t.textNode,t.offsetInText);if(!t.parent)throw new Yn.b("view-position-before-root: You can not make position before root.",t,{root:t});return new Qr(t.parent,t.index)}}class Zr{constructor(t,e=null){this.start=t.clone(),this.end=e?e.clone():t.clone()}*[Symbol.iterator](){yield*new Jr({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let t=this.start.getLastMatchingPosition(ti,{direction:"backward"}),e=this.end.getLastMatchingPosition(ti);return t.parent.is("text")&&t.isAtStart&&(t=Qr._createBefore(t.parent)),e.parent.is("text")&&e.isAtEnd&&(e=Qr._createAfter(e.parent)),new Zr(t,e)}getTrimmed(){let t=this.start.getLastMatchingPosition(ti);if(t.isAfter(this.end)||t.isEqual(this.end))return new Zr(t,t);let e=this.end.getLastMatchingPosition(ti,{direction:"backward"});const n=t.nodeAfter,r=e.nodeBefore;return n&&n.is("text")&&(t=new Qr(n,0)),r&&r.is("text")&&(e=new Qr(r,r.data.length)),new Zr(t,e)}isEqual(t){return this==t||this.start.isEqual(t.start)&&this.end.isEqual(t.end)}containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end)}containsRange(t,e=!1){t.isCollapsed&&(e=!1);const n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),r=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&r}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new Zr(this.start,t.start)),this.containsPosition(t.end)&&e.push(new Zr(t.end,this.end))):e.push(this.clone()),e}getIntersection(t){if(this.isIntersecting(t)){let e=this.start,n=this.end;return this.containsPosition(t.start)&&(e=t.start),this.containsPosition(t.end)&&(n=t.end),new Zr(e,n)}return null}getWalker(t={}){return t.boundaries=this,new Jr(t)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}clone(){return new Zr(this.start,this.end)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new Jr(t);for(const n of e)yield n.item}*getPositions(t={}){t.boundaries=this;const e=new Jr(t);yield e.position;for(const n of e)yield n.nextPosition}isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}static _createFromParentsAndOffsets(t,e,n,r){return new this(new Qr(t,e),new Qr(n,r))}static _createFromPositionAndShift(t,e){const n=t,r=t.getShiftedBy(e);return e>0?new this(n,r):new this(r,n)}static _createIn(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}static _createOn(t){const e=t.is("textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(Qr._createBefore(t),e)}}function ti(t){return!(!t.item.is("attributeElement")&&!t.item.is("uiElement"))}function ei(t){let e=0;for(const n of t)e++;return e}class ni{constructor(t=null,e,n){this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(t,e,n)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone()}get focus(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.start:t.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const t of this._ranges)yield t.clone()}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?t.clone():null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?t.clone():null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}isEqual(t){if(this.isFake!=t.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=t.fakeSelectionLabel)return!1;if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const r of t._ranges)if(e.isEqual(r)){n=!0;break}if(!n)return!1}return!0}isSimilar(t){if(this.isBackward!=t.isBackward)return!1;const e=ei(this.getRanges());if(e!=ei(t.getRanges()))return!1;if(0==e)return!0;for(let n of this.getRanges()){n=n.getTrimmed();let e=!1;for(let r of t.getRanges())if(r=r.getTrimmed(),n.start.isEqual(r.start)&&n.end.isEqual(r.end)){e=!0;break}if(!e)return!1}return!0}getSelectedElement(){if(1!==this.rangeCount)return null;const t=this.getFirstRange();let e=t.start.nodeAfter,n=t.end.nodeBefore;return t.start.parent.is("text")&&t.start.isAtEnd&&t.start.parent.nextSibling&&(e=t.start.parent.nextSibling),t.end.parent.is("text")&&t.end.isAtStart&&t.end.parent.previousSibling&&(n=t.end.parent.previousSibling),e instanceof yr&&e==n?e:null}setTo(t,e,n){if(null===t)this._setRanges([]),this._setFakeOptions(e);else if(t instanceof ni||t instanceof ri)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof Zr)this._setRanges([t],e&&e.backward),this._setFakeOptions(e);else if(t instanceof Qr)this._setRanges([new Zr(t)]),this._setFakeOptions(e);else if(t instanceof hr){const r=!!n&&!!n.backward;let i;if(void 0===e)throw new Yn.b("view-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",this);i="in"==e?Zr._createIn(t):"on"==e?Zr._createOn(t):new Zr(Qr._createAt(t,e)),this._setRanges([i],r),this._setFakeOptions(n)}else{if(!mr(t))throw new Yn.b("view-selection-setTo-not-selectable: Cannot set selection to given place.",this);this._setRanges(t,e&&e.backward),this._setFakeOptions(e)}this.fire("change")}setFocus(t,e){if(null===this.anchor)throw new Yn.b("view-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",this);const n=Qr._createAt(t,e);if("same"==n.compareWith(this.focus))return;const r=this.anchor;this._ranges.pop(),"before"==n.compareWith(r)?this._addRange(new Zr(n,r),!0):this._addRange(new Zr(r,n)),this.fire("change")}is(t){return"selection"==t}_setRanges(t,e=!1){t=Array.from(t),this._ranges=[];for(const n of t)this._addRange(n);this._lastRangeBackward=!!e}_setFakeOptions(t={}){this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}_addRange(t,e=!1){if(!(t instanceof Zr))throw new Yn.b("view-selection-add-range-not-range: Selection range set to an object that is not an instance of view.Range",this);this._pushRange(t),this._lastRangeBackward=!!e}_pushRange(t){for(const e of this._ranges)if(t.isIntersecting(e))throw new Yn.b("view-selection-range-intersects: Trying to add a range that intersects with another range from selection.",this,{addedRange:t,intersectingRange:e});this._ranges.push(new Zr(t.start,t.end))}}lr(ni,er);class ri{constructor(t=null,e,n){this._selection=new ni,this._selection.delegate("change").to(this),this._selection.setTo(t,e,n)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(t){return this._selection.isEqual(t)}isSimilar(t){return this._selection.isSimilar(t)}is(t){return"selection"==t||"documentSelection"==t}_setTo(t,e,n){this._selection.setTo(t,e,n)}_setFocus(t,e){this._selection.setFocus(t,e)}}lr(ri,er);class ii{constructor(t={}){this._items=[],this._itemMap=new Map,this._idProperty=t.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[]}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,e){let n;const r=this._idProperty;if(r in t){if("string"!=typeof(n=t[r]))throw new Yn.b("collection-add-invalid-id",this);if(this.get(n))throw new Yn.b("collection-add-item-already-exists",this)}else t[r]=n=Jn();if(void 0===e)e=this._items.length;else if(e>this._items.length||e<0)throw new Yn.b("collection-add-item-invalid-index",this);return this._items.splice(e,0,t),this._itemMap.set(n,t),this.fire("add",t,e),this}get(t){let e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new Yn.b("collection-get-invalid-arg: Index or id must be given.",this);e=this._items[t]}return e||null}has(t){if("string"==typeof t)return this._itemMap.has(t);{const e=t[this._idProperty];return this._itemMap.has(e)}}getIndex(t){let e;return e="string"==typeof t?this._itemMap.get(t):t,this._items.indexOf(e)}remove(t){let e,n,r,i=!1;const o=this._idProperty;if("string"==typeof t?(n=t,i=!(r=this._itemMap.get(n)),r&&(e=this._items.indexOf(r))):"number"==typeof t?(e=t,i=!(r=this._items[e]),r&&(n=r[o])):(n=(r=t)[o],i=-1==(e=this._items.indexOf(r))||!this._itemMap.get(n)),i)throw new Yn.b("collection-remove-404: Item not found.",this);this._items.splice(e,1),this._itemMap.delete(n);const s=this._bindToInternalToExternalMap.get(r);return this._bindToInternalToExternalMap.delete(r),this._bindToExternalToInternalMap.delete(s),this.fire("remove",r,e),r}map(t,e){return this._items.map(t,e)}find(t,e){return this._items.find(t,e)}filter(t,e){return this._items.filter(t,e)}clear(){for(this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);this.length;)this.remove(0)}bindTo(t){if(this._bindToCollection)throw new Yn.b("collection-bind-to-rebind: The collection cannot be bound more than once.",this);return this._bindToCollection=t,{as:t=>{this._setUpBindToBinding(e=>new t(e))},using:t=>{"function"==typeof t?this._setUpBindToBinding(e=>t(e)):this._setUpBindToBinding(e=>e[t])}}}_setUpBindToBinding(t){const e=this._bindToCollection,n=(n,r,i)=>{const o=e._bindToCollection==this,s=e._bindToInternalToExternalMap.get(r);if(o&&s)this._bindToExternalToInternalMap.set(r,s),this._bindToInternalToExternalMap.set(s,r);else{const n=t(r);if(!n)return void this._skippedIndexesFromExternal.push(i);let o=i;for(const t of this._skippedIndexesFromExternal)i>t&&o--;for(const t of e._skippedIndexesFromExternal)o>=t&&o++;this._bindToExternalToInternalMap.set(r,n),this._bindToInternalToExternalMap.set(n,r),this.add(n,o);for(let t=0;t<e._skippedIndexesFromExternal.length;t++)o<=e._skippedIndexesFromExternal[t]&&e._skippedIndexesFromExternal[t]++}};for(const r of e)n(0,r,e.getIndex(r));this.listenTo(e,"add",n),this.listenTo(e,"remove",(t,e,n)=>{const r=this._bindToExternalToInternalMap.get(e);r&&this.remove(r),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((t,e)=>(n<e&&t.push(e-1),n>e&&t.push(e),t),[])})}[Symbol.iterator](){return this._items[Symbol.iterator]()}}lr(ii,er);class oi{constructor(){this.selection=new ri,this.roots=new ii({idProperty:"rootName"}),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(t="main"){return this.roots.get(t)}registerPostFixer(t){this._postFixers.add(t)}destroy(){this.roots.map(t=>t.destroy()),this.stopListening()}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(e=n(t))break}while(e)}}lr(oi,Vr);const si=10;class ai extends yr{constructor(t,e,n){super(t,e,n),this.getFillerOffset=li,this._priority=si,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new Yn.b("attribute-element-get-elements-with-same-id-no-id: Cannot get elements with the same id for an attribute element without id.",this);return new Set(this._clonesGroup)}is(t,e=null){return e?"attributeElement"==t&&e==this.name||super.is(t,e):"attributeElement"==t||super.is(t)}isSimilar(t){return null!==this.id||null!==t.id?this.id===t.id:super.isSimilar(t)&&this.priority==t.priority}_clone(t){const e=super._clone(t);return e._priority=this._priority,e._id=this._id,e}}function li(){if(ci(this))return null;let t=this.parent;for(;t&&t.is("attributeElement");){if(ci(t)>1)return null;t=t.parent}return!t||ci(t)>1?null:this.childCount}function ci(t){return Array.from(t.getChildren()).filter(t=>!t.is("uiElement")).length}ai.DEFAULT_PRIORITY=si;class ui extends yr{constructor(t,e,n){super(t,e,n),this.getFillerOffset=di}is(t,e=null){return e?"emptyElement"==t&&e==this.name||super.is(t,e):"emptyElement"==t||super.is(t)}_insertChild(t,e){if(e&&(e instanceof hr||Array.from(e).length>0))throw new Yn.b("view-emptyelement-cannot-add: Cannot add child nodes to EmptyElement instance.",[this,e])}}function di(){return null}const hi=navigator.userAgent.toLowerCase();var fi={isMac:function(t){return t.indexOf("macintosh")>-1}(hi),isEdge:function(t){return!!t.match(/edge\/(\d+.?\d*)/)}(hi),isGecko:function(t){return!!t.match(/gecko\/\d+/)}(hi),isSafari:function(t){return t.indexOf(" applewebkit/")>-1&&-1===t.indexOf("chrome")}(hi),isAndroid:function(t){return t.indexOf("android")>-1}(hi)};const pi={"⌘":"ctrl","⇧":"shift","⌥":"alt"},gi={ctrl:"⌘",shift:"⇧",alt:"⌥"},mi=function(){const t={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448};for(let e=65;e<=90;e++){const n=String.fromCharCode(e);t[n.toLowerCase()]=e}for(let e=48;e<=57;e++)t[e-48]=e;for(let e=112;e<=123;e++)t["f"+(e-111)]=e;return t}();function vi(t){let e;if("string"==typeof t){if(!(e=mi[t.toLowerCase()]))throw new Yn.b("keyboard-unknown-key: Unknown key name.",null,{key:t})}else e=t.keyCode+(t.altKey?mi.alt:0)+(t.ctrlKey?mi.ctrl:0)+(t.shiftKey?mi.shift:0);return e}function bi(t){return"string"==typeof t&&(t=yi(t)),t.map(t=>"string"==typeof t?vi(t):t).reduce((t,e)=>e+t,0)}function yi(t){return t.split(/\s*\+\s*/)}class wi extends yr{constructor(t,e,n){super(t,e,n),this.getFillerOffset=_i}is(t,e=null){return e?"uiElement"==t&&e==this.name||super.is(t,e):"uiElement"==t||super.is(t)}_insertChild(t,e){if(e&&(e instanceof hr||Array.from(e).length>0))throw new Yn.b("view-uielement-cannot-add: Cannot add child nodes to UIElement instance.",this)}render(t){return this.toDomElement(t)}toDomElement(t){const e=t.createElement(this.name);for(const n of this.getAttributeKeys())e.setAttribute(n,this.getAttribute(n));return e}}function ki(t){t.document.on("keydown",(e,n)=>(function(t,e,n){if(e.keyCode==mi.arrowright){const t=e.domTarget.ownerDocument.defaultView.getSelection(),r=1==t.rangeCount&&t.getRangeAt(0).collapsed;if(r||e.shiftKey){const e=t.focusNode,i=t.focusOffset,o=n.domPositionToView(e,i);if(null===o)return;let s=!1;const a=o.getLastMatchingPosition(t=>(t.item.is("uiElement")&&(s=!0),!(!t.item.is("uiElement")&&!t.item.is("attributeElement"))));if(s){const e=n.viewPositionToDom(a);r?t.collapse(e.parent,e.offset):t.extend(e.parent,e.offset)}}}})(0,n,t.domConverter))}function _i(){return null}class xi{constructor(t){this._children=[],t&&this._insertChild(0,t)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(t){return"documentFragment"==t}_appendChild(t){return this._insertChild(this.childCount,t)}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(t,e){this._fireChange("children",this);let n=0;const r=function(t){return"string"==typeof t?[new fr(t)]:(mr(t)||(t=[t]),Array.from(t).map(t=>"string"==typeof t?new fr(t):t instanceof pr?new fr(t.data):t))}(e);for(const i of r)null!==i.parent&&i._remove(),i.parent=this,this._children.splice(t,0,i),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}_fireChange(t,e){this.fire("change:"+t,e)}}lr(xi,er);class Ci{constructor(t){this.document=t,this._cloneGroups=new Map}setSelection(t,e,n){this.document.selection._setTo(t,e,n)}setSelectionFocus(t,e){this.document.selection._setFocus(t,e)}createText(t){return new fr(t)}createAttributeElement(t,e,n={}){const r=new ai(t,e);return n.priority&&(r._priority=n.priority),n.id&&(r._id=n.id),r}createContainerElement(t,e){return new _r(t,e)}createEditableElement(t,e){const n=new Yr(t,e);return n._document=this.document,n}createEmptyElement(t,e){return new ui(t,e)}createUIElement(t,e,n){const r=new wi(t,e);return n&&(r.render=n),r}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){S(t)&&void 0===n&&(n=e),n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}breakAttributes(t){return t instanceof Qr?this._breakAttributes(t):this._breakAttributesRange(t)}breakContainer(t){const e=t.parent;if(!e.is("containerElement"))throw new Yn.b("view-writer-break-non-container-element: Trying to break an element which is not a container element.",this.document);if(!e.parent)throw new Yn.b("view-writer-break-root: Trying to break root element.",this.document);if(t.isAtStart)return Qr._createBefore(e);if(!t.isAtEnd){const n=e._clone(!1);this.insert(Qr._createAfter(e),n);const r=new Zr(t,Qr._createAt(e,"end")),i=new Qr(n,0);this.move(r,i)}return Qr._createAfter(e)}mergeAttributes(t){const e=t.offset,n=t.parent;if(n.is("text"))return t;if(n.is("attributeElement")&&0===n.childCount){const t=n.parent,e=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new Qr(t,e))}const r=n.getChild(e-1),i=n.getChild(e);if(!r||!i)return t;if(r.is("text")&&i.is("text"))return Ai(r,i);if(r.is("attributeElement")&&i.is("attributeElement")&&r.isSimilar(i)){const t=r.childCount;return r._appendChild(i.getChildren()),i._remove(),this._removeFromClonedElementsGroup(i),this.mergeAttributes(new Qr(r,t))}return t}mergeContainers(t){const e=t.nodeBefore,n=t.nodeAfter;if(!(e&&n&&e.is("containerElement")&&n.is("containerElement")))throw new Yn.b("view-writer-merge-containers-invalid-position: Element before and after given position cannot be merged.",this.document);const r=e.getChild(e.childCount-1),i=r instanceof fr?Qr._createAt(r,"end"):Qr._createAt(e,"end");return this.move(Zr._createIn(n),Qr._createAt(e,"end")),this.remove(Zr._createOn(n)),i}insert(t,e){(function t(e,n){for(const r of e){if(!Ei.some(t=>r instanceof t))throw new Yn.b("view-writer-insert-invalid-node",n);r.is("text")||t(r.getChildren(),n)}})(e=mr(e)?[...e]:[e],this.document);const n=Si(t);if(!n)throw new Yn.b("view-writer-invalid-position-container",this.document);const r=this._breakAttributes(t,!0),i=n._insertChild(r.offset,e);for(const a of e)this._addToClonedElementsGroup(a);const o=r.getShiftedBy(i),s=this.mergeAttributes(r);if(0===i)return new Zr(s,s);{s.isEqual(r)||o.offset--;const t=this.mergeAttributes(o);return new Zr(s,t)}}remove(t){const e=t instanceof Zr?t:Zr._createOn(t);if(Ii(e,this.document),e.isCollapsed)return new xi;const{start:n,end:r}=this._breakAttributesRange(e,!0),i=n.parent,o=r.offset-n.offset,s=i._removeChildren(n.offset,o);for(const l of s)this._removeFromClonedElementsGroup(l);const a=this.mergeAttributes(n);return e.start=a,e.end=a.clone(),new xi(s)}clear(t,e){Ii(t,this.document);const n=t.getWalker({direction:"backward",ignoreElementEnd:!0});for(const r of n){const n=r.item;let i;if(n.is("element")&&e.isSimilar(n))i=Zr._createOn(n);else if(!r.nextPosition.isAfter(t.start)&&n.is("textProxy")){const t=n.getAncestors().find(t=>t.is("element")&&e.isSimilar(t));t&&(i=Zr._createIn(t))}i&&(i.end.isAfter(t.end)&&(i.end=t.end),i.start.isBefore(t.start)&&(i.start=t.start),this.remove(i))}}move(t,e){let n;if(e.isAfter(t.end)){const r=(e=this._breakAttributes(e,!0)).parent,i=r.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=r.childCount-i}else n=this.remove(t);return this.insert(e,n)}wrap(t,e){if(!(e instanceof ai))throw new Yn.b("view-writer-wrap-invalid-attribute",this.document);if(Ii(t,this.document),t.isCollapsed){let n=t.start;n.parent.is("element")&&!function(t){return Array.from(t.getChildren()).some(t=>!t.is("uiElement"))}(n.parent)&&(n=n.getLastMatchingPosition(t=>t.item.is("uiElement"))),n=this._wrapPosition(n,e);const r=this.document.selection;return r.isCollapsed&&r.getFirstPosition().isEqual(t.start)&&this.setSelection(n),new Zr(n)}return this._wrapRange(t,e)}unwrap(t,e){if(!(e instanceof ai))throw new Yn.b("view-writer-unwrap-invalid-attribute",this.document);if(Ii(t,this.document),t.isCollapsed)return t;const{start:n,end:r}=this._breakAttributesRange(t,!0),i=n.parent,o=this._unwrapChildren(i,n.offset,r.offset,e),s=this.mergeAttributes(o.start);s.isEqual(o.start)||o.end.offset--;const a=this.mergeAttributes(o.end);return new Zr(s,a)}rename(t,e){const n=new _r(t,e.getAttributes());return this.insert(Qr._createAfter(e),n),this.move(Zr._createIn(e),Qr._createAt(n,0)),this.remove(Zr._createOn(e)),n}clearClonedElementsGroup(t){this._cloneGroups.delete(t)}createPositionAt(t,e){return Qr._createAt(t,e)}createPositionAfter(t){return Qr._createAfter(t)}createPositionBefore(t){return Qr._createBefore(t)}createRange(t,e){return new Zr(t,e)}createRangeOn(t){return Zr._createOn(t)}createRangeIn(t){return Zr._createIn(t)}createSelection(t,e,n){return new ni(t,e,n)}_wrapChildren(t,e,n,r){let i=e;const o=[];for(;i<n;){const e=t.getChild(i),n=e.is("text"),s=e.is("attributeElement"),a=e.is("emptyElement"),l=e.is("uiElement");if(s&&this._wrapAttributeElement(r,e))o.push(new Qr(t,i));else if(n||a||l||s&&Ti(r,e)){const n=r._clone();e._remove(),n._appendChild(e),t._insertChild(i,n),this._addToClonedElementsGroup(n),o.push(new Qr(t,i))}else s&&this._wrapChildren(e,0,e.childCount,r);i++}let s=0;for(const a of o)a.offset-=s,a.offset!=e&&(this.mergeAttributes(a).isEqual(a)||(s++,n--));return Zr._createFromParentsAndOffsets(t,e,t,n)}_unwrapChildren(t,e,n,r){let i=e;const o=[];for(;i<n;){const e=t.getChild(i);if(e.is("attributeElement"))if(e.isSimilar(r)){const r=e.getChildren(),s=e.childCount;e._remove(),t._insertChild(i,r),this._removeFromClonedElementsGroup(e),o.push(new Qr(t,i),new Qr(t,i+s)),i+=s,n+=s-1}else this._unwrapAttributeElement(r,e)?(o.push(new Qr(t,i),new Qr(t,i+1)),i++):(this._unwrapChildren(e,0,e.childCount,r),i++);else i++}let s=0;for(const a of o)a.offset-=s,a.offset!=e&&a.offset!=n&&(this.mergeAttributes(a).isEqual(a)||(s++,n--));return Zr._createFromParentsAndOffsets(t,e,t,n)}_wrapRange(t,e){const{start:n,end:r}=this._breakAttributesRange(t,!0),i=n.parent,o=this._wrapChildren(i,n.offset,r.offset,e),s=this.mergeAttributes(o.start);s.isEqual(o.start)||o.end.offset--;const a=this.mergeAttributes(o.end);return new Zr(s,a)}_wrapPosition(t,e){if(e.isSimilar(t.parent))return Oi(t.clone());t.parent.is("text")&&(t=Pi(t));const n=this.createAttributeElement();n._priority=Number.POSITIVE_INFINITY,n.isSimilar=(()=>!1),t.parent._insertChild(t.offset,n);const r=new Zr(t,t.getShiftedBy(1));this.wrap(r,e);const i=new Qr(n.parent,n.index);n._remove();const o=i.nodeBefore,s=i.nodeAfter;return o instanceof fr&&s instanceof fr?Ai(o,s):Oi(i)}_wrapAttributeElement(t,e){if(!Ni(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&e.hasAttribute(n)&&e.getAttribute(n)!==t.getAttribute(n))return!1;for(const n of t.getStyleNames())if(e.hasStyle(n)&&e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&(e.hasAttribute(n)||this.setAttribute(n,t.getAttribute(n),e));for(const n of t.getStyleNames())e.hasStyle(n)||this.setStyle(n,t.getStyle(n),e);for(const n of t.getClassNames())e.hasClass(n)||this.addClass(n,e);return!0}_unwrapAttributeElement(t,e){if(!Ni(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&(!e.hasAttribute(n)||e.getAttribute(n)!==t.getAttribute(n)))return!1;if(!e.hasClass(...t.getClassNames()))return!1;for(const n of t.getStyleNames())if(!e.hasStyle(n)||e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&this.removeAttribute(n,e);return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0}_breakAttributesRange(t,e=!1){const n=t.start,r=t.end;if(Ii(t,this.document),t.isCollapsed){const n=this._breakAttributes(t.start,e);return new Zr(n,n)}const i=this._breakAttributes(r,e),o=i.parent.childCount,s=this._breakAttributes(n,e);return i.offset+=i.parent.childCount-o,new Zr(s,i)}_breakAttributes(t,e=!1){const n=t.offset,r=t.parent;if(t.parent.is("emptyElement"))throw new Yn.b("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new Yn.b("view-writer-cannot-break-ui-element",this.document);if(!e&&r.is("text")&&Mi(r.parent))return t.clone();if(Mi(r))return t.clone();if(r.is("text"))return this._breakAttributes(Pi(t),e);if(n==r.childCount){const t=new Qr(r.parent,r.index+1);return this._breakAttributes(t,e)}if(0===n){const t=new Qr(r.parent,r.index);return this._breakAttributes(t,e)}{const t=r.index+1,i=r._clone();r.parent._insertChild(t,i),this._addToClonedElementsGroup(i);const o=r.childCount-n,s=r._removeChildren(n,o);i._appendChild(s);const a=new Qr(r.parent,t);return this._breakAttributes(a,e)}}_addToClonedElementsGroup(t){if(!t.root.is("rootElement"))return;if(t.is("element"))for(const r of t.getChildren())this._addToClonedElementsGroup(r);const e=t.id;if(!e)return;let n=this._cloneGroups.get(e);n||(n=new Set,this._cloneGroups.set(e,n)),n.add(t),t._clonesGroup=n}_removeFromClonedElementsGroup(t){if(t.is("element"))for(const r of t.getChildren())this._removeFromClonedElementsGroup(r);const e=t.id;if(!e)return;const n=this._cloneGroups.get(e);n&&n.delete(t)}}function Si(t){let e=t.parent;for(;!Mi(e);){if(!e)return;e=e.parent}return e}function Ti(t,e){return t.priority<e.priority||!(t.priority>e.priority)&&t.getIdentity()<e.getIdentity()}function Oi(t){const e=t.nodeBefore;if(e&&e.is("text"))return new Qr(e,e.data.length);const n=t.nodeAfter;return n&&n.is("text")?new Qr(n,0):t}function Pi(t){if(t.offset==t.parent.data.length)return new Qr(t.parent.parent,t.parent.index+1);if(0===t.offset)return new Qr(t.parent.parent,t.parent.index);const e=t.parent.data.slice(t.offset);return t.parent._data=t.parent.data.slice(0,t.offset),t.parent.parent._insertChild(t.parent.index+1,new fr(e)),new Qr(t.parent.parent,t.parent.index+1)}function Ai(t,e){const n=t.data.length;return t._data+=e.data,e._remove(),new Qr(t,n)}const Ei=[fr,ai,_r,ui,wi];function Mi(t){return t&&(t.is("containerElement")||t.is("documentFragment"))}function Ii(t,e){const n=Si(t.start),r=Si(t.end);if(!n||!r||n!==r)throw new Yn.b("view-writer-invalid-range-container",e)}function Ni(t,e){return null===t.id&&null===e.id}function ji(t){return"[object Text]"==Object.prototype.toString.call(t)}const Di=t=>{const e=t.createElement("br");return e.dataset.ckeFiller=!0,e},Li=t=>t.createTextNode(" "),Bi=7;let Ri="";for(let Av=0;Av<Bi;Av++)Ri+="​";function Fi(t){return ji(t)&&t.data.substr(0,Bi)===Ri}function $i(t){return t.data.length==Bi&&Fi(t)}function Vi(t){return Fi(t)?t.data.slice(Bi):t.data}const zi=new WeakMap;function Hi(t,e){let n=zi.get(e);return n||(n=e(window.document),zi.set(e,n)),t.isEqualNode(n)}function Wi(t,e){if(e.keyCode==mi.arrowleft){const t=e.domTarget.ownerDocument.defaultView.getSelection();if(1==t.rangeCount&&t.getRangeAt(0).collapsed){const e=t.getRangeAt(0).startContainer,n=t.getRangeAt(0).startOffset;Fi(e)&&n<=Bi&&t.collapse(e,0)}}}function Ui(t,e,n,r=!1){n=n||function(t,e){return t===e},Array.isArray(t)||(t=Array.from(t)),Array.isArray(e)||(e=Array.from(e));const i=function(t,e,n){const r=qi(t,e,n);if(-1===r)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const i=Gi(t,r),o=Gi(e,r),s=qi(i,o,n),a=t.length-s,l=e.length-s;return{firstIndex:r,lastIndexOld:a,lastIndexNew:l}}(t,e,n);return r?function(t,e){const{firstIndex:n,lastIndexOld:r,lastIndexNew:i}=t;if(-1===n)return Array(e).fill("equal");let o=[];return n>0&&(o=o.concat(Array(n).fill("equal"))),i-n>0&&(o=o.concat(Array(i-n).fill("insert"))),r-n>0&&(o=o.concat(Array(r-n).fill("delete"))),i<e&&(o=o.concat(Array(e-i).fill("equal"))),o}(i,e.length):function(t,e){const n=[],{firstIndex:r,lastIndexOld:i,lastIndexNew:o}=e;return o-r>0&&n.push({index:r,type:"insert",values:t.slice(r,o)}),i-r>0&&n.push({index:r+(o-r),type:"delete",howMany:i-r}),n}(e,i)}function qi(t,e,n){for(let r=0;r<Math.max(t.length,e.length);r++)if(void 0===t[r]||void 0===e[r]||!n(t[r],e[r]))return r;return-1}function Gi(t,e){return t.slice(e).reverse()}function Yi(t,e,n){n=n||function(t,e){return t===e};const r=t.length,i=e.length;if(r>200||i>200||r+i>300)return Yi.fastDiff(t,e,n,!0);let o,s;if(i<r){const n=t;t=e,e=n,o="delete",s="insert"}else o="insert",s="delete";const a=t.length,l=e.length,c=l-a,u={},d={};function h(r){const i=(void 0!==d[r-1]?d[r-1]:-1)+1,c=void 0!==d[r+1]?d[r+1]:-1,h=i>c?-1:1;u[r+h]&&(u[r]=u[r+h].slice(0)),u[r]||(u[r]=[]),u[r].push(i>c?o:s);let f=Math.max(i,c),p=f-r;for(;p<a&&f<l&&n(t[p],e[f]);)p++,f++,u[r].push("equal");return f}let f,p=0;do{for(f=-p;f<c;f++)d[f]=h(f);for(f=c+p;f>c;f--)d[f]=h(f);d[c]=h(c),p++}while(d[c]!==l);return u[c].slice(1)}function Ki(t,e,n){t.insertBefore(n,t.childNodes[e]||null)}function Xi(t){const e=t.parentNode;e&&e.removeChild(t)}function Ji(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}Yi.fastDiff=Ui;class Qi{constructor(t,e){this.domDocuments=new Set,this.domConverter=t,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=e,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(t,e){if("text"===t)this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if("attributes"===t)this.markedAttributes.add(e);else{if("children"!==t)throw new Yn.b("view-renderer-unknown-type: Unknown type passed to Renderer.markToSync.",this);this.markedChildren.add(e)}}}render(){let t;for(const e of this.markedChildren)this._updateChildrenMappings(e);this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?t=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(t=this.selection.getFirstPosition(),this.markedChildren.add(t.parent));for(const e of this.markedAttributes)this._updateAttrs(e);for(const e of this.markedChildren)this._updateChildren(e,{inlineFillerPosition:t});for(const e of this.markedTexts)!this.markedChildren.has(e.parent)&&this.domConverter.mapViewToDom(e.parent)&&this._updateText(e,{inlineFillerPosition:t});if(t){const e=this.domConverter.viewPositionToDom(t),n=e.parent.ownerDocument;Fi(e.parent)?this._inlineFiller=e.parent:this._inlineFiller=Zi(n,e.parent,e.offset)}else this._inlineFiller=null;this._updateSelection(),this._updateFocus(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=this.domConverter.mapViewToDom(t).childNodes,r=Array.from(this.domConverter.viewChildrenToDom(t,e.ownerDocument,{withChildren:!1})),i=this._diffNodeLists(n,r),o=this._findReplaceActions(i,n,r);if(-1!==o.indexOf("replace")){const e={equal:0,insert:0,delete:0};for(const i of o)if("replace"===i){const i=e.equal+e.insert,o=e.equal+e.delete,s=t.getChild(i);s&&!s.is("uiElement")&&this._updateElementMappings(s,n[o]),Xi(r[i]),e.equal++}else e[i]++}}_updateElementMappings(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}_getInlineFillerPosition(){const t=this.selection.getFirstPosition();return t.parent.is("text")?Qr._createBefore(this.selection.getFirstPosition().parent):t}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&ji(e.parent)&&Fi(e.parent))}_removeInlineFiller(){const t=this._inlineFiller;if(!Fi(t))throw new Yn.b("view-renderer-filler-was-lost: The inline filler node was lost.",this);$i(t)?t.parentNode.removeChild(t):t.data=t.data.substr(Bi),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root))return!1;if(!e.is("element"))return!1;if(!function(t){if("false"==t.getAttribute("contenteditable"))return!1;const e=t.findAncestor(t=>t.hasAttribute("contenteditable"));return!e||"true"==e.getAttribute("contenteditable")}(e))return!1;if(n===e.getFillerOffset())return!1;const r=t.nodeBefore,i=t.nodeAfter;return!(r instanceof fr||i instanceof fr)}_updateText(t,e){const n=this.domConverter.findCorrespondingDomText(t),r=this.domConverter.viewToDom(t,n.ownerDocument),i=n.data;let o=r.data;const s=e.inlineFillerPosition;if(s&&s.parent==t.parent&&s.offset==t.index&&(o=Ri+o),i!=o){const t=Ui(i,o);for(const e of t)"insert"===e.type?n.insertData(e.index,e.values.join("")):n.deleteData(e.index,e.howMany)}}_updateAttrs(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.attributes).map(t=>t.name),r=t.getAttributeKeys();for(const i of r)e.setAttribute(i,t.getAttribute(i));for(const i of n)t.hasAttribute(i)||e.removeAttribute(i)}_updateChildren(t,e){const n=this.domConverter.mapViewToDom(t);if(!n)return;const r=e.inlineFillerPosition,i=this.domConverter.mapViewToDom(t).childNodes,o=Array.from(this.domConverter.viewChildrenToDom(t,n.ownerDocument,{bind:!0,inlineFillerPosition:r}));r&&r.parent===t&&Zi(n.ownerDocument,o,r.offset);const s=this._diffNodeLists(i,o);let a=0;const l=new Set;for(const c of s)"insert"===c?(Ki(n,a,o[a]),a++):"delete"===c?(l.add(i[a]),Xi(i[a])):(this._markDescendantTextToSync(this.domConverter.domToView(o[a])),a++);for(const c of l)c.parentNode||this.domConverter.unbindDomElement(c)}_diffNodeLists(t,e){return Yi(t=function(t,e){const n=Array.from(t);return 0!=n.length&&e?(n[n.length-1]==e&&n.pop(),n):n}(t,this._fakeSelectionContainer),e,function(t,e,n){return e===n||(ji(e)&&ji(n)?e.data===n.data:!(!Hi(e,t)||!Hi(n,t)))}.bind(null,this.domConverter.blockFiller))}_findReplaceActions(t,e,n){if(-1===t.indexOf("insert")||-1===t.indexOf("delete"))return t;let r=[],i=[],o=[];const s={equal:0,insert:0,delete:0};for(const a of t)"insert"===a?o.push(n[s.equal+s.insert]):"delete"===a?i.push(e[s.equal+s.delete]):((r=r.concat(Yi(i,o,to).map(t=>"equal"===t?"replace":t))).push("equal"),i=[],o=[]),s[a]++;return r.concat(Yi(i,o,to).map(t=>"equal"===t?"replace":t))}_markDescendantTextToSync(t){if(t)if(t.is("text"))this.markedTexts.add(t);else if(t.is("element"))for(const e of t.getChildren())this._markDescendantTextToSync(e)}_updateSelection(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const t=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&t&&(this.selection.isFake?this._updateFakeSelection(t):(this._removeFakeSelection(),this._updateDomSelection(t)))}_updateFakeSelection(t){const e=t.ownerDocument;let n=this._fakeSelectionContainer;n||(this._fakeSelectionContainer=n=e.createElement("div"),Object.assign(n.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),n.textContent=" "),n.parentElement&&n.parentElement==t||t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";const r=e.getSelection(),i=e.createRange();r.removeAllRanges(),i.selectNodeContents(n),r.addRange(i),this.domConverter.bindFakeSelection(n,this.selection)}_updateDomSelection(t){const e=t.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(e))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),r=this.domConverter.viewPositionToDom(this.selection.focus);t.focus(),e.collapse(n.parent,n.offset),e.extend(r.parent,r.offset),fi.isGecko&&function(t,e){const n=t.parent;if(n.nodeType!=Node.ELEMENT_NODE||t.offset!=n.childNodes.length-1)return;const r=n.childNodes[t.offset];r&&"BR"==r.tagName&&e.addRange(e.getRangeAt(0))}(r,e)}_domSelectionNeedsUpdate(t){if(!this.domConverter.isDomSelectionCorrect(t))return!0;const e=t&&this.domConverter.domSelectionToView(t);return(!e||!this.selection.isEqual(e))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(e))}_removeDomSelection(){for(const t of this.domDocuments)if(t.getSelection().rangeCount){const e=t.activeElement,n=this.domConverter.mapDomToView(e);e&&n&&t.getSelection().removeAllRanges()}}_removeFakeSelection(){const t=this._fakeSelectionContainer;t&&t.remove()}_updateFocus(){if(this.isFocused){const t=this.selection.editableElement;t&&this.domConverter.focus(t)}}}function Zi(t,e,n){const r=e instanceof Array?e:e.childNodes,i=r[n];if(ji(i))return i.data=Ri+i.data,i;{const i=t.createTextNode(Ri);return Array.isArray(e)?r.splice(n,0,i):Ki(e,n,i),i}}function to(t,e){return Ji(t)&&Ji(e)&&!ji(t)&&!ji(e)&&t.tagName.toLowerCase()===e.tagName.toLowerCase()}lr(Qi,Vr);var eo={window:window,document:document};function no(t){let e=0;for(;t.previousSibling;)t=t.previousSibling,e++;return e}function ro(t){const e=[];for(;t&&t.nodeType!=Node.DOCUMENT_NODE;)e.unshift(t),t=t.parentNode;return e}class io{constructor(t={}){this.blockFiller=t.blockFiller||Di,this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6"],this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}bindFakeSelection(t,e){this._fakeSelectionMapping.set(t,new ni(e))}fakeSelectionToView(t){return this._fakeSelectionMapping.get(t)}bindElements(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}unbindDomElement(t){const e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);for(const e of Array.from(t.childNodes))this.unbindDomElement(e)}}bindDocumentFragments(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}viewToDom(t,e,n={}){if(t.is("text")){const n=this._processDataFromViewText(t);return e.createTextNode(n)}{if(this.mapViewToDom(t))return this.mapViewToDom(t);let r;if(t.is("documentFragment"))r=e.createDocumentFragment(),n.bind&&this.bindDocumentFragments(r,t);else{if(t.is("uiElement"))return r=t.render(e),n.bind&&this.bindElements(r,t),r;r=e.createElement(t.name),n.bind&&this.bindElements(r,t);for(const e of t.getAttributeKeys())r.setAttribute(e,t.getAttribute(e))}if(n.withChildren||void 0===n.withChildren)for(const i of this.viewChildrenToDom(t,e,n))r.appendChild(i);return r}}*viewChildrenToDom(t,e,n={}){const r=t.getFillerOffset&&t.getFillerOffset();let i=0;for(const o of t.getChildren())r===i&&(yield this.blockFiller(e)),yield this.viewToDom(o,e,n),i++;r===i&&(yield this.blockFiller(e))}viewRangeToDom(t){const e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),r=document.createRange();return r.setStart(e.parent,e.offset),r.setEnd(n.parent,n.offset),r}viewPositionToDom(t){const e=t.parent;if(e.is("text")){const n=this.findCorrespondingDomText(e);if(!n)return null;let r=t.offset;return Fi(n)&&(r+=Bi),{parent:n,offset:r}}{let n,r,i;if(0===t.offset){if(!(n=this.mapViewToDom(e)))return null;i=n.childNodes[0]}else{const e=t.nodeBefore;if(!(r=e.is("text")?this.findCorrespondingDomText(e):this.mapViewToDom(t.nodeBefore)))return null;n=r.parentNode,i=r.nextSibling}return ji(i)&&Fi(i)?{parent:i,offset:Bi}:{parent:n,offset:r?no(r)+1:0}}}domToView(t,e={}){if(Hi(t,this.blockFiller))return null;const n=this.getParentUIElement(t,this._domToViewMapping);if(n)return n;if(ji(t)){if($i(t))return null;{const e=this._processDataFromDomText(t);return""===e?null:new fr(e)}}if(this.isComment(t))return null;{if(this.mapDomToView(t))return this.mapDomToView(t);let n;if(this.isDocumentFragment(t))n=new xi,e.bind&&this.bindDocumentFragments(t,n);else{const r=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();n=new yr(r),e.bind&&this.bindElements(t,n);const i=t.attributes;for(let t=i.length-1;t>=0;t--)n._setAttribute(i[t].name,i[t].value)}if(e.withChildren||void 0===e.withChildren)for(const r of this.domChildrenToView(t,e))n._appendChild(r);return n}}*domChildrenToView(t,e={}){for(let n=0;n<t.childNodes.length;n++){const r=t.childNodes[n],i=this.domToView(r,e);null!==i&&(yield i)}}domSelectionToView(t){if(1===t.rangeCount){let e=t.getRangeAt(0).startContainer;ji(e)&&(e=e.parentNode);const n=this.fakeSelectionToView(e);if(n)return n}const e=this.isDomSelectionBackward(t),n=[];for(let r=0;r<t.rangeCount;r++){const e=t.getRangeAt(r),i=this.domRangeToView(e);i&&n.push(i)}return new ni(n,{backward:e})}domRangeToView(t){const e=this.domPositionToView(t.startContainer,t.startOffset),n=this.domPositionToView(t.endContainer,t.endOffset);return e&&n?new Zr(e,n):null}domPositionToView(t,e){if(Hi(t,this.blockFiller))return this.domPositionToView(t.parentNode,no(t));const n=this.mapDomToView(t);if(n&&n.is("uiElement"))return Qr._createBefore(n);if(ji(t)){if($i(t))return this.domPositionToView(t.parentNode,no(t));const n=this.findCorrespondingViewText(t);let r=e;return n?(Fi(t)&&(r=(r-=Bi)<0?0:r),new Qr(n,r)):null}if(0===e){const e=this.mapDomToView(t);if(e)return new Qr(e,0)}else{const n=t.childNodes[e-1],r=ji(n)?this.findCorrespondingViewText(n):this.mapDomToView(n);if(r&&r.parent)return new Qr(r.parent,r.index+1)}return null}mapDomToView(t){return this.getParentUIElement(t)||this._domToViewMapping.get(t)}findCorrespondingViewText(t){if($i(t))return null;const e=this.getParentUIElement(t);if(e)return e;const n=t.previousSibling;if(n){if(!this.isElement(n))return null;const t=this.mapDomToView(n);if(t)return t.nextSibling instanceof fr?t.nextSibling:null}else{const e=this.mapDomToView(t.parentNode);if(e){const t=e.getChild(0);return t instanceof fr?t:null}}return null}mapViewToDom(t){return this._viewToDomMapping.get(t)}findCorrespondingDomText(t){const e=t.previousSibling;return e&&this.mapViewToDom(e)?this.mapViewToDom(e).nextSibling:!e&&t.parent&&this.mapViewToDom(t.parent)?this.mapViewToDom(t.parent).childNodes[0]:null}focus(t){const e=this.mapViewToDom(t);if(e&&e.ownerDocument.activeElement!==e){const{scrollX:t,scrollY:n}=eo.window,r=[];so(e,t=>{const{scrollLeft:e,scrollTop:n}=t;r.push([e,n])}),e.focus(),so(e,t=>{const[e,n]=r.shift();t.scrollLeft=e,t.scrollTop=n}),eo.window.scrollTo(t,n)}}isElement(t){return t&&t.nodeType==Node.ELEMENT_NODE}isDocumentFragment(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isComment(t){return t&&t.nodeType==Node.COMMENT_NODE}isDomSelectionBackward(t){if(t.isCollapsed)return!1;const e=document.createRange();e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset);const n=e.collapsed;return e.detach(),n}getParentUIElement(t){const e=ro(t);for(e.pop();e.length;){const t=e.pop(),n=this._domToViewMapping.get(t);if(n&&n.is("uiElement"))return n}return null}isDomSelectionCorrect(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset)}_isDomSelectionPositionCorrect(t,e){if(ji(t)&&Fi(t)&&e<Bi)return!1;if(this.isElement(t)&&Fi(t.childNodes[e]))return!1;const n=this.mapDomToView(t);return!n||!n.is("uiElement")}_processDataFromViewText(t){let e=t.data;if(t.getAncestors().some(t=>this.preElements.includes(t.name)))return e;if(" "==e.charAt(0)){const n=this._getTouchingViewTextNode(t,!1);(!n||!this._nodeEndsWithSpace(n))&&n||(e=" "+e.substr(1))}if(" "==e.charAt(e.length-1)){const n=this._getTouchingViewTextNode(t,!0);" "!=e.charAt(e.length-2)&&n&&" "!=n.data.charAt(0)||(e=e.substr(0,e.length-1)+" ")}return e.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(t){if(t.getAncestors().some(t=>this.preElements.includes(t.name)))return!1;const e=this._processDataFromViewText(t);return" "==e.charAt(e.length-1)}_processDataFromDomText(t){let e=t.data;if(oo(t,this.preElements))return Vi(t);e=e.replace(/[ \n\t\r]{1,}/g," ");const n=this._getTouchingInlineDomNode(t,!1),r=this._getTouchingInlineDomNode(t,!0),i=this._checkShouldLeftTrimDomText(n),o=this._checkShouldRightTrimDomText(t,r);return i&&(e=e.replace(/^ /,"")),o&&(e=e.replace(/ $/,"")),e=(e=Vi(new Text(e))).replace(/ \u00A0/g,"  "),(/( |\u00A0)\u00A0$/.test(e)||!r||r.data&&" "==r.data.charAt(0))&&(e=e.replace(/\u00A0$/," ")),i&&(e=e.replace(/^\u00A0/," ")),e}_checkShouldLeftTrimDomText(t){return!t||!!Un(t)||/[^\S\u00A0]/.test(t.data.charAt(t.data.length-1))}_checkShouldRightTrimDomText(t,e){return!e&&!Fi(t)}_getTouchingViewTextNode(t,e){const n=new Jr({startPosition:e?Qr._createAfter(t):Qr._createBefore(t),direction:e?"forward":"backward"});for(const r of n){if(r.item.is("containerElement"))return null;if(r.item.is("br"))return null;if(r.item.is("textProxy"))return r.item}return null}_getTouchingInlineDomNode(t,e){if(!t.parentNode)return null;const n=e?"nextNode":"previousNode",r=t.ownerDocument,i=ro(t)[0],o=r.createTreeWalker(i,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:t=>ji(t)?NodeFilter.FILTER_ACCEPT:"BR"==t.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});o.currentNode=t;const s=o[n]();if(null!==s){const e=function(t,e){const n=ro(t),r=ro(e);let i=0;for(;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}(t,s);if(e&&!oo(t,this.blockElements,e)&&!oo(s,this.blockElements,e))return s}return null}}function oo(t,e,n){let r=ro(t);return n&&(r=r.slice(r.indexOf(n)+1)),r.some(t=>t.tagName&&e.includes(t.tagName.toLowerCase()))}function so(t,e){for(;t&&t!=eo.document;)e(t),t=t.parentNode}function ao(t){const e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e}var lo=Lr({},er,{listenTo(t,...e){if(Ji(t)||ao(t)){const n=this._getProxyEmitter(t)||new co(t);n.attach(...e),t=n}er.listenTo.call(this,t,...e)},stopListening(t,e,n){if(Ji(t)||ao(t)){const e=this._getProxyEmitter(t);if(!e)return;t=e}er.stopListening.call(this,t,e,n),t instanceof co&&t.detach(e)},_getProxyEmitter(t){return function(t,e){return t[Zn]&&t[Zn][e]?t[Zn][e].emitter:null}(this,uo(t))}});class co{constructor(t){nr(this,uo(t)),this._domNode=t}}function uo(t){return t["data-ck-expando"]||(t["data-ck-expando"]=Jn())}Lr(co.prototype,er,{attach(t,e,n={}){if(this._domListeners&&this._domListeners[t])return;const r=this._createDomListener(t,!!n.useCapture);this._domNode.addEventListener(t,r,!!n.useCapture),this._domListeners||(this._domListeners={}),this._domListeners[t]=r},detach(t){let e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()},_createDomListener(t,e){const n=e=>{this.fire(t,e)};return n.removeListener=(()=>{this._domNode.removeEventListener(t,n,e),delete this._domListeners[t]}),n}});class ho{constructor(t){this.view=t,this.document=t.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}}lr(ho,lo);var fo="__lodash_hash_undefined__",po=function(t){return this.__data__.set(t,fo),this},go=function(t){return this.__data__.has(t)};function mo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ot;++e<n;)this.add(t[e])}mo.prototype.add=mo.prototype.push=po,mo.prototype.has=go;var vo=mo,bo=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},yo=function(t,e){return t.has(e)},wo=1,ko=2,_o=function(t,e,n,r,i,o){var s=n&wo,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(t);if(c&&o.get(e))return c==e;var u=-1,d=!0,h=n&ko?new vo:void 0;for(o.set(t,e),o.set(e,t);++u<a;){var f=t[u],p=e[u];if(r)var g=s?r(p,f,u,e,t,o):r(f,p,u,t,e,o);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!bo(e,function(t,e){if(!yo(h,e)&&(f===t||i(f,t,n,r,o)))return h.push(e)})){d=!1;break}}else if(f!==p&&!i(f,p,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d},xo=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n},Co=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n},So=1,To=2,Oo="[object Boolean]",Po="[object Date]",Ao="[object Error]",Eo="[object Map]",Mo="[object Number]",Io="[object RegExp]",No="[object Set]",jo="[object String]",Do="[object Symbol]",Lo="[object ArrayBuffer]",Bo="[object DataView]",Ro=i?i.prototype:void 0,Fo=Ro?Ro.valueOf:void 0,$o=function(t,e,n,r,i,o,s){switch(n){case Bo:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Lo:return!(t.byteLength!=e.byteLength||!o(new qe(t),new qe(e)));case Oo:case Po:case Mo:return O(+t,+e);case Ao:return t.name==e.name&&t.message==e.message;case Io:case jo:return t==e+"";case Eo:var a=xo;case No:var l=r&So;if(a||(a=Co),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;r|=To,s.set(t,e);var u=_o(a(t),a(e),r,i,o,s);return s.delete(t),u;case Do:if(Fo)return Fo.call(t)==Fo.call(e)}return!1},Vo=1,zo=Object.prototype.hasOwnProperty,Ho=function(t,e,n,r,i,o){var s=n&Vo,a=Me(t),l=a.length;if(l!=Me(e).length&&!s)return!1;for(var c=l;c--;){var u=a[c];if(!(s?u in e:zo.call(e,u)))return!1}var d=o.get(t);if(d&&o.get(e))return d==e;var h=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<l;){var p=t[u=a[c]],g=e[u];if(r)var m=s?r(g,p,u,e,t,o):r(p,g,u,t,e,o);if(!(void 0===m?p===g||i(p,g,n,r,o):m)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var v=t.constructor,b=e.constructor;v!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b)&&(h=!1)}return o.delete(t),o.delete(e),h},Wo=1,Uo="[object Arguments]",qo="[object Array]",Go="[object Object]",Yo=Object.prototype.hasOwnProperty,Ko=function(t,e,n,r,i,o){var s=Ut(t),a=Ut(e),l=s?qo:He(t),c=a?qo:He(e),u=(l=l==Uo?Go:l)==Go,d=(c=c==Uo?Go:c)==Go,h=l==c;if(h&&Object(qt.a)(t)){if(!Object(qt.a)(e))return!1;s=!0,u=!1}if(h&&!u)return o||(o=new Mt),s||re(t)?_o(t,e,n,r,i,o):$o(t,e,l,n,r,i,o);if(!(n&Wo)){var f=u&&Yo.call(t,"__wrapped__"),p=d&&Yo.call(e,"__wrapped__");if(f||p){var g=f?t.value():t,m=p?e.value():e;return o||(o=new Mt),i(g,m,n,r,o)}}return!!h&&(o||(o=new Mt),Ho(t,e,n,r,i,o))},Xo=function t(e,n,r,i,o){return e===n||(null==e||null==n||!b(e)&&!b(n)?e!=e&&n!=n:Ko(e,n,r,i,t,o))},Jo=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?Xo(t,e,void 0,n):!!r};class Qo extends ho{constructor(t){super(t),this._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},this.domConverter=t.domConverter,this.renderer=t._renderer,this._domElements=[],this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(t){this._domElements.push(t),this.isEnabled&&this._mutationObserver.observe(t,this._config)}enable(){super.enable();for(const t of this._domElements)this._mutationObserver.observe(t,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(t){if(0===t.length)return;const e=this.domConverter,n=new Map,r=new Set;for(const l of t)if("childList"===l.type){const t=e.mapDomToView(l.target);if(t&&t.is("uiElement"))continue;t&&!this._isBogusBrMutation(l)&&r.add(t)}for(const l of t){const t=e.mapDomToView(l.target);if((!t||!t.is("uiElement"))&&"characterData"===l.type){const t=e.findCorrespondingViewText(l.target);t&&!r.has(t.parent)?n.set(t,{type:"text",oldText:t.data,newText:Vi(l.target),node:t}):!t&&Fi(l.target)&&r.add(e.mapDomToView(l.target.parentNode))}}const i=[];for(const l of n.values())this.renderer.markToSync("text",l.node),i.push(l);for(const l of r){const t=e.mapViewToDom(l),n=Array.from(l.getChildren()),r=Array.from(e.domChildrenToView(t,{withChildren:!1}));Jo(n,r,a)||(this.renderer.markToSync("children",l),i.push({type:"children",oldChildren:n,newChildren:r,node:l}))}const o=t[0].target.ownerDocument.getSelection();let s=null;if(o&&o.anchorNode){const t=e.domPositionToView(o.anchorNode,o.anchorOffset),n=e.domPositionToView(o.focusNode,o.focusOffset);t&&n&&(s=new ni(t)).setFocus(n)}function a(t,e){if(!Array.isArray(t))return t===e||!(!t.is("text")||!e.is("text"))&&t.data===e.data}this.document.fire("mutations",i,s),this.view.forceRender()}_isBogusBrMutation(t){let e=null;return null===t.nextSibling&&0===t.removedNodes.length&&1==t.addedNodes.length&&(e=this.domConverter.domToView(t.addedNodes[0],{withChildren:!1})),e&&e.is("element","br")}}class Zo{constructor(t,e,n){this.view=t,this.document=t.document,this.domEvent=e,this.domTarget=e.target,Lr(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class ts extends ho{constructor(t){super(t),this.useCapture=!1}observe(t){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(e=>{this.listenTo(t,e,(t,e)=>{this.isEnabled&&this.onDomEvent(e)},{useCapture:this.useCapture})})}fire(t,e,n){this.isEnabled&&this.document.fire(t,new Zo(this.view,e,n))}}class es extends ts{constructor(t){super(t),this.domEventType=["keydown","keyup"]}onDomEvent(t){this.fire(t.type,t,{keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey||t.metaKey,shiftKey:t.shiftKey,get keystroke(){return vi(this)}})}}var ns=function(){return r.a.Date.now()},rs="[object Symbol]",is=function(t){return"symbol"==typeof t||b(t)&&g(t)==rs},os=NaN,ss=/^\s+|\s+$/g,as=/^[-+]0x[0-9a-f]+$/i,ls=/^0b[01]+$/i,cs=/^0o[0-7]+$/i,us=parseInt,ds=function(t){if("number"==typeof t)return t;if(is(t))return os;if($(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=$(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(ss,"");var n=ls.test(t);return n||cs.test(t)?us(t.slice(2),n?2:8):as.test(t)?os:+t},hs="Expected a function",fs=Math.max,ps=Math.min,gs=function(t,e,n){var r,i,o,s,a,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError(hs);function f(e){var n=r,o=i;return r=i=void 0,c=e,s=t.apply(o,n)}function p(t){var n=t-l;return void 0===l||n>=e||n<0||d&&t-c>=o}function g(){var t=ns();if(p(t))return m(t);a=setTimeout(g,function(t){var n=e-(t-l);return d?ps(n,o-(t-c)):n}(t))}function m(t){return a=void 0,h&&r?f(t):(r=i=void 0,s)}function v(){var t=ns(),n=p(t);if(r=arguments,i=this,l=t,n){if(void 0===a)return function(t){return c=t,a=setTimeout(g,e),u?f(t):s}(l);if(d)return a=setTimeout(g,e),f(l)}return void 0===a&&(a=setTimeout(g,e)),s}return e=ds(e)||0,$(n)&&(u=!!n.leading,o=(d="maxWait"in n)?fs(ds(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=i=a=void 0},v.flush=function(){return void 0===a?s:m(ns())},v};class ms extends ho{constructor(t){super(t),this._fireSelectionChangeDoneDebounced=gs(t=>this.document.fire("selectionChangeDone",t),200)}observe(){const t=this.document;t.on("keydown",(e,n)=>{t.selection.isFake&&function(t){return t==mi.arrowright||t==mi.arrowleft||t==mi.arrowup||t==mi.arrowdown}(n.keyCode)&&this.isEnabled&&(n.preventDefault(),this._handleSelectionMove(n.keyCode))},{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(t){const e=this.document.selection,n=new ni(e.getRanges(),{backward:e.isBackward,fake:!1});t!=mi.arrowleft&&t!=mi.arrowup||n.setTo(n.getFirstPosition()),t!=mi.arrowright&&t!=mi.arrowdown||n.setTo(n.getLastPosition());const r={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}var vs=n(1);class bs extends ho{constructor(t){super(t),this.mutationObserver=t.getObserver(Qo),this.selection=this.document.selection,this.domConverter=t.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=gs(t=>this.document.fire("selectionChangeDone",t),200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._loopbackCounter=0}observe(t){const e=t.ownerDocument;this._documents.has(e)||(this.listenTo(e,"selectionchange",()=>{this._handleSelectionChange(e)}),this._documents.add(e))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionChange(t){if(!this.isEnabled||!this.document.isFocused&&!this.document.isReadOnly)return;this.mutationObserver.flush();const e=t.defaultView.getSelection(),n=this.domConverter.domSelectionToView(e);if(!this.selection.isEqual(n)||!this.domConverter.isDomSelectionCorrect(e))if(++this._loopbackCounter>60)vs.a.warn("selectionchange-infinite-loop: Selection change observer detected an infinite rendering loop.");else if(this.selection.isSimilar(n))this.view.forceRender();else{const t={oldSelection:this.selection,newSelection:n,domSelection:e};this.document.fire("selectionChange",t),this._fireSelectionChangeDoneDebounced(t)}}_clearInfiniteLoop(){this._loopbackCounter=0}}class ys extends ts{constructor(t){super(t),this.domEventType=["focus","blur"],this.useCapture=!0;const e=this.document;e.on("focus",()=>{e.isFocused=!0,this._renderTimeoutId=setTimeout(()=>t.forceRender(),50)}),e.on("blur",(n,r)=>{const i=e.selection.editableElement;null!==i&&i!==r.target||(e.isFocused=!1,t.forceRender())})}onDomEvent(t){this.fire(t.type,t)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class ws extends ts{constructor(t){super(t),this.domEventType=["compositionstart","compositionupdate","compositionend"];const e=this.document;e.on("compositionstart",()=>{e.isComposing=!0}),e.on("compositionend",()=>{e.isComposing=!1})}onDomEvent(t){this.fire(t.type,t)}}class ks extends ts{constructor(t){super(t),this.domEventType=["beforeinput"]}onDomEvent(t){this.fire(t.type,t)}}function _s(t){return"[object Range]"==Object.prototype.toString.apply(t)}function xs(t){const e=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(e.borderTopWidth,10),right:parseInt(e.borderRightWidth,10),bottom:parseInt(e.borderBottomWidth,10),left:parseInt(e.borderLeftWidth,10)}}const Cs=["top","right","bottom","left","width","height"];class Ss{constructor(t){const e=_s(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),Un(t)||e){const n=e?t.startContainer:t;n.ownerDocument&&n.ownerDocument.body.contains(n)||vs.a.warn("rect-source-not-in-dom: The source of this rect does not belong to any rendered DOM tree.",{source:t}),Ts(this,e?Ss.getDomRangeRects(t)[0]:t.getBoundingClientRect())}else if(ao(t)){const{innerWidth:e,innerHeight:n}=t;Ts(this,{top:0,right:e,bottom:n,left:0,width:e,height:n})}else Ts(this,t)}clone(){return new Ss(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left)};return e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0?null:new Ss(e)}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(!Os(t)){let n=t.parentNode||t.commonAncestorContainer;for(;n&&!Os(n);){const t=new Ss(n),r=e.getIntersection(t);if(!r)return null;r.getArea()<e.getArea()&&(e=r),n=n.parentNode}}return e}isEqual(t){for(const e of Cs)if(this[e]!==t[e])return!1;return!0}contains(t){const e=this.getIntersection(t);return!(!e||!e.isEqual(t))}excludeScrollbarsAndBorders(){const t=this._source;let e,n;if(ao(t))e=t.innerWidth-t.document.documentElement.clientWidth,n=t.innerHeight-t.document.documentElement.clientHeight;else{const r=xs(this._source);e=t.offsetWidth-t.clientWidth,n=t.offsetHeight-t.clientHeight,this.moveBy(r.left,r.top)}return this.width-=e,this.right-=e,this.height-=n,this.bottom-=n,this}static getDomRangeRects(t){const e=[],n=Array.from(t.getClientRects());if(n.length)for(const r of n)e.push(new Ss(r));else{let n=t.startContainer;ji(n)&&(n=n.parentNode);const r=new Ss(n.getBoundingClientRect());r.right=r.left,r.width=0,e.push(r)}return e}}function Ts(t,e){for(const n of Cs)t[n]=e[n]}function Os(t){return!!Un(t)&&t===t.ownerDocument.body}function Ps({target:t,viewportOffset:e=0}){const n=Ds(t);let r=n,i=null;for(;r;){let o;Es(o=Ls(r==n?t:i),()=>Bs(t,r));const s=Bs(t,r);if(As(r,s,e),r.parent!=r){if(i=r.frameElement,r=r.parent,!i)return}else r=null}}function As(t,e,n){const r=e.clone().moveBy(0,n),i=e.clone().moveBy(0,-n),o=new Ss(t).excludeScrollbarsAndBorders();if(![i,r].every(t=>o.contains(t))){let{scrollX:s,scrollY:a}=t;Is(i,o)?a-=o.top-e.top+n:Ms(r,o)&&(a+=e.bottom-o.bottom+n),Ns(e,o)?s-=o.left-e.left+n:js(e,o)&&(s+=e.right-o.right+n),t.scrollTo(s,a)}}function Es(t,e){const n=Ds(t);let r,i;for(;t!=n.document.body;)i=e(),(r=new Ss(t).excludeScrollbarsAndBorders()).contains(i)||(Is(i,r)?t.scrollTop-=r.top-i.top:Ms(i,r)&&(t.scrollTop+=i.bottom-r.bottom),Ns(i,r)?t.scrollLeft-=r.left-i.left:js(i,r)&&(t.scrollLeft+=i.right-r.right)),t=t.parentNode}function Ms(t,e){return t.bottom>e.bottom}function Is(t,e){return t.top<e.top}function Ns(t,e){return t.left<e.left}function js(t,e){return t.right>e.right}function Ds(t){return _s(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView}function Ls(t){if(_s(t)){let e=t.commonAncestorContainer;return ji(e)&&(e=e.parentNode),e}return t.parentNode}function Bs(t,e){const n=Ds(t),r=new Ss(t);if(n===e)return r;{let t=n;for(;t!=e;){const e=t.frameElement,n=new Ss(e).excludeScrollbarsAndBorders();r.moveBy(n.left,n.top),t=t.parent}}return r}Object.assign({},{scrollViewportToShowTarget:Ps,scrollAncestorsToShowTarget:function(t){Es(Ls(t),()=>new Ss(t))}});class Rs{constructor(){this.document=new oi,this.domConverter=new io,this.domRoots=new Map,this.set("isRenderingInProgress",!1),this._renderer=new Qi(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new Ci(this.document),this.addObserver(Qo),this.addObserver(bs),this.addObserver(ys),this.addObserver(es),this.addObserver(ms),this.addObserver(ws),fi.isAndroid&&this.addObserver(ks),function(t){t.document.on("keydown",Wi)}(this),ki(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0})}attachDomRoot(t,e="main"){const n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();const r={};for(const{name:o,value:s}of Array.from(t.attributes))r[o]=s,"class"===o?this._writer.addClass(s.split(" "),n):this._writer.setAttribute(o,s,n);this._initialDomRootAttributes.set(t,r);const i=()=>{this._writer.setAttribute("contenteditable",!n.isReadOnly,n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};i(),this.domRoots.set(e,t),this.domConverter.bindElements(t,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(t.ownerDocument),n.on("change:children",(t,e)=>this._renderer.markToSync("children",e)),n.on("change:attributes",(t,e)=>this._renderer.markToSync("attributes",e)),n.on("change:text",(t,e)=>this._renderer.markToSync("text",e)),n.on("change:isReadOnly",()=>this.change(i)),n.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const o of this._observers.values())o.observe(t,e)}detachDomRoot(t){const e=this.domRoots.get(t);Array.from(e.attributes).forEach(({name:t})=>e.removeAttribute(t));const n=this._initialDomRootAttributes.get(e);for(const r in n)e.setAttribute(r,n[r]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e)}getDomRoot(t="main"){return this.domRoots.get(t)}addObserver(t){let e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);for(const[n,r]of this.domRoots)e.observe(r,n);return e.enable(),e}getObserver(t){return this._observers.get(t)}disableObservers(){for(const t of this._observers.values())t.disable()}enableObservers(){for(const t of this._observers.values())t.enable()}scrollToTheSelection(){const t=this.document.selection.getFirstRange();t&&Ps({target:this.domConverter.viewRangeToDom(t),viewportOffset:20})}focus(){if(!this.document.isFocused){const t=this.document.selection.editableElement;t?(this.domConverter.focus(t),this.forceRender()):vs.a.warn("view-focus-no-selection: There is no selection in any editable to focus.")}}change(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new Yn.b("cannot-change-view-tree: Attempting to make changes to the view when it is in an incorrect state: rendering or post-fixers are in progress. This may cause some unexpected behavior and inconsistency between the DOM and the view.",this);if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;const e=t(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),e}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.change(()=>{})}destroy(){for(const t of this._observers.values())t.destroy();this.document.destroy(),this.stopListening()}createPositionAt(t,e){return Qr._createAt(t,e)}createPositionAfter(t){return Qr._createAfter(t)}createPositionBefore(t){return Qr._createBefore(t)}createRange(t,e){return new Zr(t,e)}createRangeOn(t){return Zr._createOn(t)}createRangeIn(t){return Zr._createIn(t)}createSelection(t,e,n){return new ni(t,e,n)}_disableRendering(t){this._renderingDisabled=t,0==t&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}function Fs(t){return S(t)?gr(t):new Map(t)}lr(Rs,Vr);class $s{constructor(t){this.parent=null,this._attrs=Fs(t)}get index(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new Yn.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return t}get startOffset(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildStartOffset(this)))throw new Yn.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return t}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}get document(){return this.root==this?null:this.root.document||null}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),r=t.getAncestors(e);let i=0;for(;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),r=cr(e,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return e[r]<n[r]}}isAfter(t){return this!=t&&this.root===t.root&&!this.isBefore(t)}hasAttribute(t){return this._attrs.has(t)}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const t={};return this._attrs.size&&(t.attributes=Array.from(this._attrs).reduce((t,e)=>(t[e[0]]=e[1],t),{})),t}_clone(){return new $s(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(t,e){this._attrs.set(t,e)}_setAttributesTo(t){this._attrs=Fs(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}is(t){return"node"==t}}class Vs extends $s{constructor(t,e){super(e),this._data=t||""}get offsetSize(){return this.data.length}get data(){return this._data}is(t){return"text"==t||super.is(t)}toJSON(){const t=super.toJSON();return t.data=this.data,t}_clone(){return new Vs(this.data,this.getAttributes())}static fromJSON(t){return new Vs(t.data,t.attributes)}}class zs{constructor(t,e,n){if(this.textNode=t,e<0||e>t.offsetSize)throw new Yn.b("model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(n<0||e+n>t.offsetSize)throw new Yn.b("model-textproxy-wrong-length: Given length value is incorrect.",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(t){return"textProxy"==t}getPath(){const t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}hasAttribute(t){return this.textNode.hasAttribute(t)}getAttribute(t){return this.textNode.getAttribute(t)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}class Hs{constructor(t){this._nodes=[],t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((t,e)=>t+e.offsetSize,0)}getNode(t){return this._nodes[t]||null}getNodeIndex(t){const e=this._nodes.indexOf(t);return-1==e?null:e}getNodeStartOffset(t){const e=this.getNodeIndex(t);return null===e?null:this._nodes.slice(0,e).reduce((t,e)=>t+e.offsetSize,0)}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];if(!e)throw new Yn.b("model-nodelist-index-out-of-bounds: Given index cannot be found in the node list.",this);return this.getNodeStartOffset(e)}offsetToIndex(t){let e=0;for(const n of this._nodes){if(t>=e&&t<e+n.offsetSize)return this.getNodeIndex(n);e+=n.offsetSize}if(e!=t)throw new Yn.b("model-nodelist-offset-out-of-bounds: Given offset cannot be found in the node list.",this,{offset:t,nodeList:this});return this.length}_insertNodes(t,e){for(const n of e)if(!(n instanceof $s))throw new Yn.b("model-nodelist-insertNodes-not-node: Trying to insert an object which is not a Node instance.",this);this._nodes.splice(t,0,...e)}_removeNodes(t,e=1){return this._nodes.splice(t,e)}toJSON(){return this._nodes.map(t=>t.toJSON())}}class Ws extends $s{constructor(t,e,n){super(e),this.name=t,this._children=new Hs,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}is(t,e=null){return e?"element"==t&&e==this.name:"element"==t||t==this.name||super.is(t)}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}offsetToIndex(t){return this._children.offsetToIndex(t)}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}toJSON(){const t=super.toJSON();if(t.name=this.name,this._children.length>0){t.children=[];for(const e of this._children)t.children.push(e.toJSON())}return t}_clone(t=!1){const e=t?Array.from(this._children).map(t=>t._clone(!0)):null;return new Ws(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){return"string"==typeof t?[new Vs(t)]:(mr(t)||(t=[t]),Array.from(t).map(t=>"string"==typeof t?new Vs(t):t instanceof zs?new Vs(t.data,t.getAttributes()):t))}(e);for(const r of n)null!==r.parent&&r._remove(),r.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const r of n)r.parent=null;return n}static fromJSON(t){let e=null;if(t.children){e=[];for(const n of t.children)n.name?e.push(Ws.fromJSON(n)):e.push(Vs.fromJSON(n))}return new Ws(t.name,t.attributes,e)}}class Us{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new Yn.b("model-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);const e=t.direction||"forward";if("forward"!=e&&"backward"!=e)throw new Yn.b("model-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",t,{direction:e});this.direction=e,this.boundaries=t.boundaries||null,t.startPosition?this.position=t.startPosition.clone():this.position=Ys._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(t){let e,n,r,i;do{r=this.position,i=this._visitedParent,({done:e,value:n}=this.next())}while(!e&&t(n));e||(this.position=r,this._visitedParent=i)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&e.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0};const r=e.textNode?e.textNode:e.nodeAfter;if(r instanceof Ws)return this.shallow?e.offset++:(e.path.push(0),this._visitedParent=r),this.position=e,qs("elementStart",r,t,e,1);if(r instanceof Vs){let i;if(this.singleCharacters)i=1;else{let t=r.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<t&&(t=this.boundaries.end.offset),i=t-e.offset}const o=e.offset-r.startOffset,s=new zs(r,o,i);return e.offset+=i,this.position=e,qs("text",s,t,e,i)}return e.path.pop(),e.offset++,this.position=e,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():qs("elementEnd",n,t,e)}_previous(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===e.offset)return{done:!0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0};const r=e.textNode?e.textNode:e.nodeBefore;if(r instanceof Ws)return e.offset--,this.shallow?(this.position=e,qs("elementStart",r,t,e,1)):(e.path.push(r.maxOffset),this.position=e,this._visitedParent=r,this.ignoreElementEnd?this._previous():qs("elementEnd",r,t,e));if(r instanceof Vs){let i;if(this.singleCharacters)i=1;else{let t=r.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>t&&(t=this.boundaries.start.offset),i=e.offset-t}const o=e.offset-r.startOffset,s=new zs(r,o-i,i);return e.offset-=i,this.position=e,qs("text",s,t,e,i)}return e.path.pop(),this.position=e,this._visitedParent=n.parent,qs("elementStart",n,t,e,1)}}function qs(t,e,n,r,i){return{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:r,length:i}}}var Gs=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};class Ys{constructor(t,e,n="toNone"){if(!t.is("element")&&!t.is("documentFragment"))throw new Yn.b("model-position-root-invalid: Position root invalid.",t);if(!(e instanceof Array)||0===e.length)throw new Yn.b("model-position-path-incorrect: Position path must be an array with at least one item.",t,{path:e});e=t.getPath().concat(e),t=t.root,this.root=t,this.path=e,this.stickiness=n}get offset(){return Gs(this.path)}set offset(t){this.path[this.path.length-1]=t}get parent(){let t=this.root;for(let e=0;e<this.path.length-1;e++)t=t.getChild(t.offsetToIndex(this.path[e]));return t}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){const t=this.parent.getChild(this.index);return t instanceof Vs&&t.startOffset<this.offset?t:null}get nodeAfter(){return null===this.textNode?this.parent.getChild(this.index):null}get nodeBefore(){return null===this.textNode?this.parent.getChild(this.index-1):null}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(t){if(this.root!=t.root)return"different";const e=cr(this.path,t.path);switch(e){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[e]<t.path[e]?"before":"after"}}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new Us(e);return n.skip(t),n.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonPath(t){if(this.root!=t.root)return[];const e=cr(this.path,t.path),n="string"==typeof e?Math.min(this.path.length,t.path.length):e;return this.path.slice(0,n)}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let r=0;for(;e[r]==n[r]&&e[r];)r++;return 0===r?null:e[r-1]}getShiftedBy(t){const e=this.clone(),n=e.offset+t;return e.offset=n<0?0:n,e}isAfter(t){return"after"==this.compareWith(t)}isBefore(t){return"before"==this.compareWith(t)}isEqual(t){return"same"==this.compareWith(t)}isTouching(t){let e=null,n=null;switch(this.compareWith(t)){case"same":return!0;case"before":e=Ys._createAt(this),n=Ys._createAt(t);break;case"after":e=Ys._createAt(t),n=Ys._createAt(this);break;default:return!1}let r=e.parent;for(;e.path.length+n.path.length;){if(e.isEqual(n))return!0;if(e.path.length>n.path.length){if(e.offset!==r.maxOffset)return!1;e.path=e.path.slice(0,-1),r=r.parent,e.offset++}else{if(0!==n.offset)return!1;n.path=n.path.slice(0,-1)}}}hasSameParentAs(t){return this.root===t.root&&"same"==cr(this.getParentPath(),t.getParentPath())}getTransformedByOperation(t){let e;switch(t.type){case"insert":e=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":e=this._getTransformedByMoveOperation(t);break;case"split":e=this._getTransformedBySplitOperation(t);break;case"merge":e=this._getTransformedByMergeOperation(t);break;default:e=Ys._createAt(this)}return e}_getTransformedByInsertOperation(t){return this._getTransformedByInsertion(t.position,t.howMany)}_getTransformedByMoveOperation(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}_getTransformedBySplitOperation(t){const e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1)}_getTransformedByMergeOperation(t){const e=t.movedRange;let n;return e.containsPosition(this)||e.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?Ys._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}_getTransformedByDeletion(t,e){const n=Ys._createAt(this);if(this.root!=t.root)return n;if("same"==cr(t.getParentPath(),this.getParentPath())){if(t.offset<this.offset){if(t.offset+e>this.offset)return null;n.offset-=e}}else if("prefix"==cr(t.getParentPath(),this.getParentPath())){const r=t.path.length-1;if(t.offset<=this.path[r]){if(t.offset+e>this.path[r])return null;n.path[r]-=e}}return n}_getTransformedByInsertion(t,e){const n=Ys._createAt(this);if(this.root!=t.root)return n;if("same"==cr(t.getParentPath(),this.getParentPath()))(t.offset<this.offset||t.offset==this.offset&&"toPrevious"!=this.stickiness)&&(n.offset+=e);else if("prefix"==cr(t.getParentPath(),this.getParentPath())){const r=t.path.length-1;t.offset<=this.path[r]&&(n.path[r]+=e)}return n}_getTransformedByMove(t,e,n){if(e=e._getTransformedByDeletion(t,n),t.isEqual(e))return Ys._createAt(this);const r=this._getTransformedByDeletion(t,n);return null===r||t.isEqual(this)&&"toNext"==this.stickiness||t.getShiftedBy(n).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(t,e):r._getTransformedByInsertion(e,n)}_getCombined(t,e){const n=t.path.length-1,r=Ys._createAt(e);return r.stickiness=this.stickiness,r.offset=r.offset+this.path[n]-t.offset,r.path=r.path.concat(this.path.slice(n+1)),r}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(t,e,n="toNone"){if(t instanceof Ys)return new Ys(t.root,t.path,t.stickiness);{const r=t;if("end"==e)e=r.maxOffset;else{if("before"==e)return this._createBefore(r,n);if("after"==e)return this._createAfter(r,n);if(0!==e&&!e)throw new Yn.b("model-createPositionAt-offset-required: Model#createPositionAt() requires the offset when the first parameter is a model item.",[this,t])}if(!r.is("element")&&!r.is("documentFragment"))throw new Yn.b("model-position-parent-incorrect: Position parent have to be a element or document fragment.",[this,t]);const i=r.getPath();return i.push(e),new this(r.root,i,n)}}static _createAfter(t,e){if(!t.parent)throw new Yn.b("model-position-after-root: You cannot make a position after root.",[this,t],{root:t});return this._createAt(t.parent,t.endOffset,e)}static _createBefore(t,e){if(!t.parent)throw new Yn.b("model-position-before-root: You cannot make a position before root.",t,{root:t});return this._createAt(t.parent,t.startOffset,e)}static fromJSON(t,e){if("$graveyard"===t.root){const n=new Ys(e.graveyard,t.path);return n.stickiness=t.stickiness,n}if(!e.getRoot(t.root))throw new Yn.b("model-position-fromjson-no-root: Cannot create position for document. Root with specified name does not exist.",e,{rootName:t.root});return new Ys(e.getRoot(t.root),t.path,t.stickiness)}}class Ks{constructor(t,e=null){this.start=Ys._createAt(t),this.end=e?Ys._createAt(e):Ys._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new Us({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return"same"==cr(this.start.getParentPath(),this.end.getParentPath())}get root(){return this.start.root}containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end)}containsRange(t,e=!1){t.isCollapsed&&(e=!1);const n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),r=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&r}containsItem(t){const e=Ys._createBefore(t);return this.containsPosition(e)||this.start.isEqual(e)}isEqual(t){return this.start.isEqual(t.start)&&this.end.isEqual(t.end)}isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new Ks(this.start,t.start)),this.containsPosition(t.end)&&e.push(new Ks(t.end,this.end))):e.push(new Ks(this.start,this.end)),e}getIntersection(t){if(this.isIntersecting(t)){let e=this.start,n=this.end;return this.containsPosition(t.start)&&(e=t.start),this.containsPosition(t.end)&&(n=t.end),new Ks(e,n)}return null}getMinimalFlatRanges(){const t=[],e=this.start.getCommonPath(this.end).length,n=Ys._createAt(this.start);let r=n.parent;for(;n.path.length>e+1;){const e=r.maxOffset-n.offset;0!==e&&t.push(new Ks(n,n.getShiftedBy(e))),n.path=n.path.slice(0,-1),n.offset++,r=r.parent}for(;n.path.length<=this.end.path.length;){const e=this.end.path[n.path.length-1],r=e-n.offset;0!==r&&t.push(new Ks(n,n.getShiftedBy(r))),n.offset=e,n.path.push(0)}return t}getWalker(t={}){return t.boundaries=this,new Us(t)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new Us(t);for(const n of e)yield n.item}*getPositions(t={}){t.boundaries=this;const e=new Us(t);yield e.position;for(const n of e)yield n.nextPosition}getTransformedByOperation(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new Ks(this.start,this.end)]}getTransformedByOperations(t){const e=[new Ks(this.start,this.end)];for(const n of t)for(let t=0;t<e.length;t++){const r=e[t].getTransformedByOperation(n);e.splice(t,1,...r),t+=r.length-1}for(let n=0;n<e.length;n++){const t=e[n];for(let r=n+1;r<e.length;r++){const n=e[r];(t.containsRange(n)||n.containsRange(t)||t.isEqual(n))&&e.splice(r,1)}}return e}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(t,e=!1){return this._getTransformedByInsertion(t.position,t.howMany,e)}_getTransformedByMoveOperation(t,e=!1){const n=t.sourcePosition,r=t.howMany,i=t.targetPosition;return this._getTransformedByMove(n,i,r,e)}_getTransformedBySplitOperation(t){const e=this.start._getTransformedBySplitOperation(t);let n=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(n=this.end.getShiftedBy(1)),e.root!=n.root&&(n=this.end.getShiftedBy(-1)),new Ks(e,n)}_getTransformedByMergeOperation(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new Ks(this.start);let e=this.start._getTransformedByMergeOperation(t),n=this.end._getTransformedByMergeOperation(t);return e.root!=n.root&&(n=this.end.getShiftedBy(-1)),e.isAfter(n)?(t.sourcePosition.isBefore(t.targetPosition)?(e=Ys._createAt(n)).offset=0:(t.deletionPosition.isEqual(e)||(n=t.deletionPosition),e=t.targetPosition),new Ks(e,n)):new Ks(e,n)}_getTransformedByInsertion(t,e,n=!1){if(n&&this.containsPosition(t))return[new Ks(this.start,t),new Ks(t.getShiftedBy(e),this.end._getTransformedByInsertion(t,e))];{const n=new Ks(this.start,this.end);return n.start=n.start._getTransformedByInsertion(t,e),n.end=n.end._getTransformedByInsertion(t,e),[n]}}_getTransformedByMove(t,e,n,r=!1){if(this.isCollapsed){const r=this.start._getTransformedByMove(t,e,n);return[new Ks(r)]}const i=Ks._createFromPositionAndShift(t,n),o=e._getTransformedByDeletion(t,n);if(this.containsPosition(e)&&!r&&(i.containsPosition(this.start)||i.containsPosition(this.end))){const r=this.start._getTransformedByMove(t,e,n),i=this.end._getTransformedByMove(t,e,n);return[new Ks(r,i)]}let s;const a=this.getDifference(i);let l=null;const c=this.getIntersection(i);if(1==a.length?l=new Ks(a[0].start._getTransformedByDeletion(t,n),a[0].end._getTransformedByDeletion(t,n)):2==a.length&&(l=new Ks(this.start,this.end._getTransformedByDeletion(t,n))),s=l?l._getTransformedByInsertion(o,n,null!==c||r):[],c){const t=new Ks(c.start._getCombined(i.start,o),c.end._getCombined(i.start,o));2==s.length?s.splice(1,0,t):s.push(t)}return s}_getTransformedByDeletion(t,e){let n=this.start._getTransformedByDeletion(t,e),r=this.end._getTransformedByDeletion(t,e);return null==n&&null==r?null:(null==n&&(n=t),null==r&&(r=t),new Ks(n,r))}static _createFromPositionAndShift(t,e){const n=t,r=t.getShiftedBy(e);return e>0?new this(n,r):new this(r,n)}static _createIn(t){return new this(Ys._createAt(t,0),Ys._createAt(t,t.maxOffset))}static _createOn(t){return this._createFromPositionAndShift(Ys._createBefore(t),t.offsetSize)}static _createFromRanges(t){if(0===t.length)throw new Yn.b("range-create-from-ranges-empty-array: At least one range has to be passed.",null);if(1==t.length)return t[0].clone();const e=t[0];t.sort((t,e)=>t.start.isAfter(e.start)?1:-1);const n=t.indexOf(e),r=new this(e.start,e.end);if(n>0)for(let i=n-1;t[i].end.isEqual(r.start);i++)r.start=Ys._createAt(t[i].start);for(let i=n+1;i<t.length&&t[i].start.isEqual(r.end);i++)r.end=Ys._createAt(t[i].end);return r}static fromJSON(t,e){return new this(Ys.fromJSON(t.start,e),Ys.fromJSON(t.end,e))}}class Xs{constructor(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this.on("modelToViewPosition",(t,e)=>{if(e.viewPosition)return;const n=this._modelToViewMapping.get(e.modelPosition.parent);e.viewPosition=this._findPositionIn(n,e.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(t,e)=>{if(e.modelPosition)return;const n=this.findMappedViewAncestor(e.viewPosition),r=this._viewToModelMapping.get(n),i=this._toModelOffset(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=Ys._createAt(r,i)},{priority:"low"})}bindElements(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t)}unbindViewElement(t){const e=this.toModelElement(t);this._viewToModelMapping.delete(t),this._modelToViewMapping.get(e)==t&&this._modelToViewMapping.delete(e)}unbindModelElement(t){const e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e)}bindElementToMarker(t,e){const n=this._markerNameToElements.get(e)||new Set;n.add(t),this._markerNameToElements.set(e,n)}unbindElementsFromMarkerName(t){this._markerNameToElements.delete(t)}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map}toModelElement(t){return this._viewToModelMapping.get(t)}toViewElement(t){return this._modelToViewMapping.get(t)}toModelRange(t){return new Ks(this.toModelPosition(t.start),this.toModelPosition(t.end))}toViewRange(t){return new Zr(this.toViewPosition(t.start),this.toViewPosition(t.end))}toModelPosition(t){const e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}toViewPosition(t,e={isPhantom:!1}){const n={modelPosition:t,mapper:this,isPhantom:e.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(t){const e=this._markerNameToElements.get(t);if(!e)return null;const n=new Set;for(const r of e)if(r.is("attributeElement"))for(const t of r.getElementsWithSameId())n.add(t);else n.add(r);return n}registerViewToModelLength(t,e){this._viewToModelLengthCallbacks.set(t,e)}findMappedViewAncestor(t){let e=t.parent;for(;!this._viewToModelMapping.has(e);)e=e.parent;return e}_toModelOffset(t,e,n){if(n!=t)return this._toModelOffset(t.parent,t.index,n)+this._toModelOffset(t,e,t);if(t.is("text"))return e;let r=0;for(let i=0;i<e;i++)r+=this.getModelLength(t.getChild(i));return r}getModelLength(t){if(this._viewToModelLengthCallbacks.get(t.name))return this._viewToModelLengthCallbacks.get(t.name)(t);if(this._viewToModelMapping.has(t))return 1;if(t.is("text"))return t.data.length;if(t.is("uiElement"))return 0;{let e=0;for(const n of t.getChildren())e+=this.getModelLength(n);return e}}_findPositionIn(t,e){let n,r=0,i=0,o=0;if(t.is("text"))return new Qr(t,e);for(;i<e;)n=t.getChild(o),i+=r=this.getModelLength(n),o++;return i==e?this._moveViewPositionToTextNode(new Qr(t,o)):this._findPositionIn(n,e-(i-r))}_moveViewPositionToTextNode(t){const e=t.nodeBefore,n=t.nodeAfter;return e instanceof fr?new Qr(e,e.data.length):n instanceof fr?new Qr(n,0):t}}lr(Xs,er);class Js{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(t,e){e=Qs(e),t instanceof zs&&(t=this._getSymbolForTextProxy(t)),this._consumable.has(t)||this._consumable.set(t,new Map),this._consumable.get(t).set(e,!0)}consume(t,e){return e=Qs(e),t instanceof zs&&(t=this._getSymbolForTextProxy(t)),!!this.test(t,e)&&(this._consumable.get(t).set(e,!1),!0)}test(t,e){e=Qs(e),t instanceof zs&&(t=this._getSymbolForTextProxy(t));const n=this._consumable.get(t);if(void 0===n)return null;const r=n.get(e);return void 0===r?null:r}revert(t,e){e=Qs(e),t instanceof zs&&(t=this._getSymbolForTextProxy(t));const n=this.test(t,e);return!1===n?(this._consumable.get(t).set(e,!0),!0):!0!==n&&null}_getSymbolForTextProxy(t){let e=null;const n=this._textProxyRegistry.get(t.startOffset);if(n){const r=n.get(t.endOffset);r&&(e=r.get(t.parent))}return e||(e=this._addSymbolForTextProxy(t.startOffset,t.endOffset,t.parent)),e}_addSymbolForTextProxy(t,e,n){const r=Symbol("textProxySymbol");let i,o;return(i=this._textProxyRegistry.get(t))||(i=new Map,this._textProxyRegistry.set(t,i)),(o=i.get(e))||(o=new Map,i.set(e,o)),o.set(n,r),r}}function Qs(t){const e=t.split(":");return e.length>1?e[0]+":"+e[1]:e[0]}class Zs{constructor(t={}){this.conversionApi=Lr({dispatcher:this},t)}convertChanges(t,e){for(const n of t.getMarkersToRemove())this.convertMarkerRemove(n.name,n.range,e);for(const n of t.getChanges())"insert"==n.type?this.convertInsert(Ks._createFromPositionAndShift(n.position,n.length),e):"remove"==n.type?this.convertRemove(n.position,n.length,n.name,e):this.convertAttribute(n.range,n.attributeKey,n.attributeOldValue,n.attributeNewValue,e);for(const n of t.getMarkersToAdd())this.convertMarkerAdd(n.name,n.range,e)}convertInsert(t,e){this.conversionApi.writer=e,this.conversionApi.consumable=this._createInsertConsumable(t);for(const n of t){const t=n.item,e={item:t,range:Ks._createFromPositionAndShift(n.previousPosition,n.length)};this._testAndFire("insert",e);for(const n of t.getAttributeKeys())e.attributeKey=n,e.attributeOldValue=null,e.attributeNewValue=t.getAttribute(n),this._testAndFire(`attribute:${n}`,e)}this._clearConversionApi()}convertRemove(t,e,n,r){this.conversionApi.writer=r,this.fire("remove:"+n,{position:t,length:e},this.conversionApi),this._clearConversionApi()}convertAttribute(t,e,n,r,i){this.conversionApi.writer=i,this.conversionApi.consumable=this._createConsumableForRange(t,`attribute:${e}`);for(const o of t){const t={item:o.item,range:Ks._createFromPositionAndShift(o.previousPosition,o.length),attributeKey:e,attributeOldValue:n,attributeNewValue:r};this._testAndFire(`attribute:${e}`,t)}this._clearConversionApi()}convertSelection(t,e,n){const r=Array.from(e.getMarkersAtPosition(t.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(t,r),this.fire("selection",{selection:t},this.conversionApi),t.isCollapsed){for(const e of r){const n=e.getRange();if(!ta(t.getFirstPosition(),e,this.conversionApi.mapper))continue;const r={item:t,markerName:e.name,markerRange:n};this.conversionApi.consumable.test(t,"addMarker:"+e.name)&&this.fire("addMarker:"+e.name,r,this.conversionApi)}for(const e of t.getAttributeKeys()){const n={item:t,range:t.getFirstRange(),attributeKey:e,attributeOldValue:null,attributeNewValue:t.getAttribute(e)};this.conversionApi.consumable.test(t,"attribute:"+n.attributeKey)&&this.fire("attribute:"+n.attributeKey+":$text",n,this.conversionApi)}this._clearConversionApi()}}convertMarkerAdd(t,e,n){if(!e.root.document||"$graveyard"==e.root.rootName)return;this.conversionApi.writer=n;const r="addMarker:"+t,i=new Js;if(i.add(e,r),this.conversionApi.consumable=i,this.fire(r,{markerName:t,markerRange:e},this.conversionApi),i.test(e,r)){this.conversionApi.consumable=this._createConsumableForRange(e,r);for(const n of e.getItems()){if(!this.conversionApi.consumable.test(n,r))continue;const i={item:n,range:Ks._createOn(n),markerName:t,markerRange:e};this.fire(r,i,this.conversionApi)}this._clearConversionApi()}}convertMarkerRemove(t,e,n){e.root.document&&"$graveyard"!=e.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+t,{markerName:t,markerRange:e},this.conversionApi),this._clearConversionApi())}_createInsertConsumable(t){const e=new Js;for(const n of t){const t=n.item;e.add(t,"insert");for(const n of t.getAttributeKeys())e.add(t,"attribute:"+n)}return e}_createConsumableForRange(t,e){const n=new Js;for(const r of t.getItems())n.add(r,e);return n}_createSelectionConsumable(t,e){const n=new Js;n.add(t,"selection");for(const r of e)n.add(t,"addMarker:"+r.name);for(const r of t.getAttributeKeys())n.add(t,"attribute:"+r);return n}_testAndFire(t,e){if(!this.conversionApi.consumable.test(e.item,t))return;const n=e.item.name||"$text";this.fire(t+":"+n,e,this.conversionApi)}_clearConversionApi(){delete this.conversionApi.writer,delete this.conversionApi.consumable}}function ta(t,e,n){const r=e.getRange(),i=Array.from(t.getAncestors());return i.shift(),i.reverse(),!i.some(t=>{if(r.containsItem(t))return!!n.toViewElement(t).getCustomProperty("addHighlight")})}lr(Zs,er);class ea{constructor(t,e,n){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,t&&this.setTo(t,e,n)}get anchor(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.end:t.start}return null}get focus(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.start:t.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(t){if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const r of t._ranges)if(e.isEqual(r)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const t of this._ranges)yield new Ks(t.start,t.end)}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?new Ks(t.start,t.end):null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?new Ks(t.start,t.end):null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}setTo(t,e,n){if(null===t)this._setRanges([]);else if(t instanceof ea)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof Ks)this._setRanges([t],!!e&&!!e.backward);else if(t instanceof Ys)this._setRanges([new Ks(t)]);else if(t instanceof $s){const r=!!n&&!!n.backward;let i;if("in"==e)i=Ks._createIn(t);else if("on"==e)i=Ks._createOn(t);else{if(void 0===e)throw new Yn.b("model-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",[this,t]);i=new Ks(Ys._createAt(t,e))}this._setRanges([i],r)}else{if(!mr(t))throw new Yn.b("model-selection-setTo-not-selectable: Cannot set the selection to the given place.",[this,t]);this._setRanges(t,e&&!!e.backward)}}_setRanges(t,e=!1){const n=(t=Array.from(t)).some(e=>{if(!(e instanceof Ks))throw new Yn.b("model-selection-set-ranges-not-range: Selection range set to an object that is not an instance of model.Range.",[this,t]);return this._ranges.every(t=>!t.isEqual(e))});if(t.length!==this._ranges.length||n){this._removeAllRanges();for(const e of t)this._pushRange(e);this._lastRangeBackward=!!e,this.fire("change:range",{directChange:!0})}}setFocus(t,e){if(null===this.anchor)throw new Yn.b("model-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",[this,t]);const n=Ys._createAt(t,e);if("same"==n.compareWith(this.focus))return;const r=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(r)?(this._pushRange(new Ks(n,r)),this._lastRangeBackward=!0):(this._pushRange(new Ks(r,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(t){return this._attrs.has(t)}removeAttribute(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}setAttribute(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}getSelectedElement(){if(1!==this.rangeCount)return null;const t=this.getFirstRange(),e=t.start.nodeAfter,n=t.end.nodeBefore;return e instanceof Ws&&e==n?e:null}is(t){return"selection"==t}*getSelectedBlocks(){const t=new WeakSet;for(const e of this.getRanges()){const n=ra(e.start,t);n&&(yield n);for(const i of e.getWalker())"elementEnd"==i.type&&na(i.item,t)&&(yield i.item);const r=ra(e.end,t);r&&!e.end.isTouching(Ys._createAt(r,0))&&(yield r)}}*getTopMostBlocks(){const t=Array.from(this.getSelectedBlocks());for(const e of t){const n=ia(e);n&&t.includes(n)||(yield e)}}containsEntireContent(t=this.anchor.root){const e=Ys._createAt(t,0),n=Ys._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(t){this._checkRange(t),this._ranges.push(new Ks(t.start,t.end))}_checkRange(t){for(let e=0;e<this._ranges.length;e++)if(t.isIntersecting(this._ranges[e]))throw new Yn.b("model-selection-range-intersects: Trying to add a range that intersects with another range in the selection.",[this,t],{addedRange:t,intersectingRange:this._ranges[e]})}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function na(t,e){return!e.has(t)&&(e.add(t),t.document.model.schema.isBlock(t)&&t.parent)}function ra(t,e){const n=t.parent.document.model.schema,r=t.parent.getAncestors({parentFirst:!0,includeSelf:!0});let i=!1;const o=r.find(t=>!i&&!(i=n.isLimit(t))&&na(t,e));return r.forEach(t=>e.add(t)),o}function ia(t){const e=t.document.model.schema;let n=t.parent;for(;n;){if(e.isBlock(n))return n;n=n.parent}}lr(ea,er);class oa extends Ks{constructor(t,e){super(t,e),function(){this.listenTo(this.root.document.model,"applyOperation",(t,e)=>{const n=e[0];n.isDocumentOperation&&function(t){const e=this.getTransformedByOperation(t),n=Ks._createFromRanges(e),r=!n.isEqual(this),i=function(t,e){switch(e.type){case"insert":return t.containsPosition(e.position);case"move":case"remove":case"reinsert":case"merge":return t.containsPosition(e.sourcePosition)||t.start.isEqual(e.sourcePosition)||t.containsPosition(e.targetPosition);case"split":return t.containsPosition(e.splitPosition)||t.containsPosition(e.insertionPosition)}return!1}(this,t);let o=null;if(r){"$graveyard"==n.root.rootName&&(o="remove"==t.type?t.sourcePosition:t.deletionPosition);const e=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",e,{deletionPosition:o})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:o})}.call(this,n)},{priority:"low"})}.call(this)}detach(){this.stopListening()}toRange(){return new Ks(this.start,this.end)}static fromRange(t){return new oa(t.start,t.end)}}lr(oa,er);const sa="selection:";class aa{constructor(t){this._selection=new la(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getTopMostBlocks(){return this._selection.getTopMostBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(t){return this._selection.containsEntireContent(t)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(t){return this._selection.getAttribute(t)}hasAttribute(t){return this._selection.hasAttribute(t)}refresh(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}is(t){return"selection"==t||"documentSelection"==t}_setFocus(t,e){this._selection.setFocus(t,e)}_setTo(t,e,n){this._selection.setTo(t,e,n)}_setAttribute(t,e){this._selection.setAttribute(t,e)}_removeAttribute(t){this._selection.removeAttribute(t)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(t){this._selection.restoreGravity(t)}static _getStoreAttributeKey(t){return sa+t}static _isStoreAttributeKey(t){return t.startsWith(sa)}}lr(aa,er);class la extends ea{constructor(t){super(),this.markers=new ii({idProperty:"name"}),this._model=t.model,this._document=t,this._attributePriority=new Map,this._fixGraveyardRangesData=[],this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this.listenTo(this._model,"applyOperation",(t,e)=>{const n=e[0];if(n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type){for(;this._fixGraveyardRangesData.length;){const{liveRange:t,sourcePosition:e}=this._fixGraveyardRangesData.shift();this._fixGraveyardSelection(t,e)}this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1}))}},{priority:"lowest"}),this.on("change:range",()=>{for(const t of this.getRanges())if(!this._document._validateSelectionRange(t))throw new Yn.b("document-selection-wrong-position: Range from document selection starts or ends at incorrect position.",this,{range:t})}),this.listenTo(this._model.markers,"update",()=>this._updateMarkers()),this.listenTo(this._document,"change",(t,e)=>{!function(t,e){const n=t.document.differ;for(const r of n.getChanges()){if("insert"!=r.type)continue;const n=r.position.parent,i=r.length===n.maxOffset;i&&t.enqueueChange(e,t=>{const e=Array.from(n.getAttributeKeys()).filter(t=>t.startsWith(sa));for(const r of e)t.removeAttribute(r,n)})}}(this._model,e)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let t=0;t<this._ranges.length;t++)this._ranges[t].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(t,e,n){super.setTo(t,e,n),this._updateAttributes(!0)}setFocus(t,e){super.setFocus(t,e),this._updateAttributes(!0)}setAttribute(t,e){if(this._setAttribute(t,e)){const e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}removeAttribute(t){if(this._removeAttribute(t)){const e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}overrideGravity(){const t=Jn();return this._overriddenGravityRegister.add(t),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),t}restoreGravity(t){if(!this._overriddenGravityRegister.has(t))throw new Yn.b("document-selection-gravity-wrong-restore: Attempting to restore the selection gravity for an unknown UID.",this,{uid:t});this._overriddenGravityRegister.delete(t),this.isGravityOverridden||this._updateAttributes(!0)}_popRange(){this._ranges.pop().detach()}_pushRange(t){const e=this._prepareRange(t);e&&this._ranges.push(e)}_prepareRange(t){if(this._checkRange(t),t.root==this._document.graveyard)return void vs.a.warn("model-selection-range-in-graveyard: Trying to add a Range that is in the graveyard root. Range rejected.");const e=oa.fromRange(t);return e.on("change:range",(t,n,r)=>{this._hasChangedRange=!0,e.root==this._document.graveyard&&this._fixGraveyardRangesData.push({liveRange:e,sourcePosition:r.deletionPosition})}),e}_updateMarkers(){const t=[];for(const e of this._model.markers){const n=e.getRange();for(const r of this.getRanges())n.containsRange(r,!r.isCollapsed)&&t.push(e)}for(const e of t)this.markers.has(e)||this.markers.add(e);for(const e of Array.from(this.markers))t.includes(e)||this.markers.remove(e)}_updateAttributes(t){const e=Fs(this._getSurroundingAttributes()),n=Fs(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else for(const[i,o]of this._attributePriority)"low"==o&&(this._attrs.delete(i),this._attributePriority.delete(i));this._setAttributesTo(e);const r=[];for(const[i,o]of this.getAttributes())n.has(i)&&n.get(i)===o||r.push(i);for(const[i]of n)this.hasAttribute(i)||r.push(i);r.length>0&&this.fire("change:attribute",{attributeKeys:r,directChange:!1})}_setAttribute(t,e,n=!0){const r=n?"normal":"low";return("low"!=r||"normal"!=this._attributePriority.get(t))&&super.getAttribute(t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,r),!0)}_removeAttribute(t,e=!0){const n=e?"normal":"low";return("low"!=n||"normal"!=this._attributePriority.get(t))&&(this._attributePriority.set(t,n),!!super.hasAttribute(t)&&(this._attrs.delete(t),!0))}_setAttributesTo(t){const e=new Set;for(const[n,r]of this.getAttributes())t.get(n)!==r&&this._removeAttribute(n,!1);for(const[n,r]of t)this._setAttribute(n,r,!1)&&e.add(n);return e}*_getStoredAttributes(){const t=this.getFirstPosition().parent;if(this.isCollapsed&&t.isEmpty)for(const e of t.getAttributeKeys())e.startsWith(sa)&&(yield[e.substr(sa.length),t.getAttribute(e)])}_getSurroundingAttributes(){const t=this.getFirstPosition(),e=this._model.schema;let n=null;if(this.isCollapsed){const e=t.textNode?t.textNode:t.nodeBefore,r=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=ca(e)),n||(n=ca(r)),!this.isGravityOverridden&&!n){let t=e;for(;t&&!n;)n=ca(t=t.previousSibling)}if(!n){let t=r;for(;t&&!n;)n=ca(t=t.nextSibling)}n||(n=this._getStoredAttributes())}else{const t=this.getFirstRange();for(const r of t){if(r.item.is("element")&&e.isObject(r.item))break;if("text"==r.type){n=r.item.getAttributes();break}}}return n}_fixGraveyardSelection(t,e){const n=e.clone(),r=this._model.schema.getNearestSelectionRange(n),i=this._ranges.indexOf(t);if(this._ranges.splice(i,1),t.detach(),r){const t=this._prepareRange(r);this._ranges.splice(i,0,t)}}}function ca(t){return t instanceof zs||t instanceof Vs?t.getAttributes():null}class ua{constructor(t){this._dispatchers=t}add(t){for(const e of this._dispatchers)t(e);return this}}var da=1,ha=4,fa=function(t){return Vn(t,da|ha)};class pa extends ua{elementToElement(t){return this.add(function(t){return(t=fa(t)).view=ma(t.view,"container"),e=>{e.on("insert:"+t.model,function(t){return(e,n,r)=>{const i=t(n.item,r.writer);if(!i)return;if(!r.consumable.consume(n.item,"insert"))return;const o=r.mapper.toViewPosition(n.range.start);r.mapper.bindElements(n.item,i),r.writer.insert(o,i)}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}attributeToElement(t){return this.add(function(t){let e="attribute:"+((t=fa(t)).model.key?t.model.key:t.model);if(t.model.name&&(e+=":"+t.model.name),t.model.values)for(const r of t.model.values)t.view[r]=ma(t.view[r],"attribute");else t.view=ma(t.view,"attribute");const n=va(t);return r=>{r.on(e,function(t){return(e,n,r)=>{const i=t(n.attributeOldValue,r.writer),o=t(n.attributeNewValue,r.writer);if(!i&&!o)return;if(!r.consumable.consume(n.item,e.name))return;const s=r.writer,a=s.document.selection;if(n.item instanceof ea||n.item instanceof aa)s.wrap(a.getFirstRange(),o);else{let t=r.mapper.toViewRange(n.range);null!==n.attributeOldValue&&i&&(t=s.unwrap(t,i)),null!==n.attributeNewValue&&o&&s.wrap(t,o)}}}(n),{priority:t.converterPriority||"normal"})}}(t))}attributeToAttribute(t){return this.add(function(t){let e="attribute:"+((t=fa(t)).model.key?t.model.key:t.model);if(t.model.name&&(e+=":"+t.model.name),t.model.values)for(const r of t.model.values)t.view[r]=ba(t.view[r]);else t.view=ba(t.view);const n=va(t);return r=>{r.on(e,function(t){return(e,n,r)=>{const i=t(n.attributeOldValue,n),o=t(n.attributeNewValue,n);if(!i&&!o)return;if(!r.consumable.consume(n.item,e.name))return;const s=r.mapper.toViewElement(n.item),a=r.writer;if(s){if(null!==n.attributeOldValue&&i)if("class"==i.key){const t=Array.isArray(i.value)?i.value:[i.value];for(const e of t)a.removeClass(e,s)}else if("style"==i.key){const t=Object.keys(i.value);for(const e of t)a.removeStyle(e,s)}else a.removeAttribute(i.key,s);if(null!==n.attributeNewValue&&o)if("class"==o.key){const t=Array.isArray(o.value)?o.value:[o.value];for(const e of t)a.addClass(e,s)}else if("style"==o.key){const t=Object.keys(o.value);for(const e of t)a.setStyle(e,o.value[e],s)}else a.setAttribute(o.key,o.value,s)}else vs.a.warn("conversion-attribute-to-attribute-on-text: Trying to convert text node's attribute with attribute-to-attribute converter.")}}(n),{priority:t.converterPriority||"normal"})}}(t))}markerToElement(t){return this.add(function(t){return(t=fa(t)).view=ma(t.view,"ui"),e=>{e.on("addMarker:"+t.model,function(t){return(e,n,r)=>{n.isOpening=!0;const i=t(n,r.writer);n.isOpening=!1;const o=t(n,r.writer);if(!i||!o)return;const s=n.markerRange;if(s.isCollapsed&&!r.consumable.consume(s,e.name))return;for(const t of s)if(!r.consumable.consume(t.item,e.name))return;const a=r.mapper,l=r.writer;l.insert(a.toViewPosition(s.start),i),r.mapper.bindElementToMarker(i,n.markerName),s.isCollapsed||(l.insert(a.toViewPosition(s.end),o),r.mapper.bindElementToMarker(o,n.markerName)),e.stop()}}(t.view),{priority:t.converterPriority||"normal"}),e.on("removeMarker:"+t.model,(t.view,(t,e,n)=>{const r=n.mapper.markerNameToElements(e.markerName);if(r){n.mapper.unbindElementsFromMarkerName(e.markerName);for(const t of r)n.writer.clear(n.writer.createRangeOn(t),t);n.writer.clearClonedElementsGroup(e.markerName),t.stop()}}),{priority:t.converterPriority||"normal"})}}(t))}markerToHighlight(t){return this.add(function(t){return e=>{e.on("addMarker:"+t.model,function(t){return(e,n,r)=>{if(!n.item)return;if(!(n.item instanceof ea||n.item instanceof aa||n.item.is("textProxy")))return;const i=ya(t,n,r);if(!i)return;if(!r.consumable.consume(n.item,e.name))return;const o=ga(i),s=r.writer,a=s.document.selection;if(n.item instanceof ea||n.item instanceof aa)s.wrap(a.getFirstRange(),o,a);else{const t=r.mapper.toViewRange(n.range),e=s.wrap(t,o);for(const i of e.getItems())if(i.is("attributeElement")&&i.isSimilar(o)){r.mapper.bindElementToMarker(i,n.markerName);break}}}}(t.view),{priority:t.converterPriority||"normal"}),e.on("addMarker:"+t.model,function(t){return(e,n,r)=>{if(!n.item)return;if(!(n.item instanceof Ws))return;const i=ya(t,n,r);if(!i)return;if(!r.consumable.test(n.item,e.name))return;const o=r.mapper.toViewElement(n.item);if(o&&o.getCustomProperty("addHighlight")){r.consumable.consume(n.item,e.name);for(const t of Ks._createIn(n.item))r.consumable.consume(t.item,e.name);o.getCustomProperty("addHighlight")(o,i,r.writer),r.mapper.bindElementToMarker(o,n.markerName)}}}(t.view),{priority:t.converterPriority||"normal"}),e.on("removeMarker:"+t.model,function(t){return(e,n,r)=>{if(n.markerRange.isCollapsed)return;const i=ya(t,n,r);if(!i)return;const o=ga(i),s=r.mapper.markerNameToElements(n.markerName);if(s){r.mapper.unbindElementsFromMarkerName(n.markerName);for(const t of s)t.is("attributeElement")?r.writer.unwrap(r.writer.createRangeOn(t),o):t.getCustomProperty("removeHighlight")(t,i.id,r.writer);r.writer.clearClonedElementsGroup(n.markerName),e.stop()}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}}function ga(t){const e=new ai("span",t.attributes);return t.classes&&e._addClass(t.classes),t.priority&&(e._priority=t.priority),e._id=t.id,e}function ma(t,e){return"function"==typeof t?t:(n,r)=>(function(t,e,n){let r;"string"==typeof t&&(t={name:t});const i=Object.assign({},t.attributes);if("container"==n)r=e.createContainerElement(t.name,i);else if("attribute"==n){const n={priority:t.priority||ai.DEFAULT_PRIORITY};r=e.createAttributeElement(t.name,i,n)}else r=e.createUIElement(t.name,i);if(t.styles){const n=Object.keys(t.styles);for(const i of n)e.setStyle(i,t.styles[i],r)}if(t.classes){const n=t.classes;if("string"==typeof n)e.addClass(n,r);else for(const t of n)e.addClass(t,r)}return r})(t,r,e)}function va(t){return t.model.values?(e,n)=>{const r=t.view[e];return r?r(e,n):null}:t.view}function ba(t){return"string"==typeof t?e=>({key:t,value:e}):"object"==typeof t?t.value?()=>t:e=>({key:t.key,value:e}):t}function ya(t,e,n){const r="function"==typeof t?t(e,n):t;return r?(r.priority||(r.priority=10),r.id||(r.id=e.markerName),r):null}class wa extends ua{elementToElement(t){return this.add(ka(t))}elementToAttribute(t){return this.add(function(t){xa(t=fa(t));const e=Ca(t,!1),n=_a(t),r=n?"element:"+n:"element";return n=>{n.on(r,e,{priority:t.converterPriority||"low"})}}(t))}attributeToAttribute(t){return this.add(function(t){let e=null;("string"==typeof(t=fa(t)).view||t.view.key)&&(e=function(t){"string"==typeof t.view&&(t.view={key:t.view});const e=t.view.key;let n;if("class"==e||"style"==e){const r="class"==e?"classes":"styles";n={[r]:t.view.value}}else{const r=void 0===t.view.value?/[\s\S]*/:t.view.value;n={attributes:{[e]:r}}}return t.view.name&&(n.name=t.view.name),t.view=n,e}(t)),xa(t,e);const n=Ca(t,!0);return e=>{e.on("element",n,{priority:t.converterPriority||"low"})}}(t))}elementToMarker(t){return this.add(function(t){return function(t){const e=t.model;t.model=((t,n)=>{const r="string"==typeof e?e:e(t);return n.createElement("$marker",{"data-name":r})})}(t=fa(t)),ka(t)}(t))}}function ka(t){const e=function(t){const e=t.view?new vr(t.view):null;return(n,r,i)=>{let o={};if(e){const t=e.match(r.viewItem);if(!t)return;o=t.match}o.name=!0;const s=function(t,e,n){return t instanceof Function?t(e,n):n.createElement(t)}(t.model,r.viewItem,i.writer);if(!s)return;if(!i.consumable.test(r.viewItem,o))return;const a=i.splitToAllowedParent(s,r.modelCursor);if(!a)return;i.writer.insert(s,a.position),i.convertChildren(r.viewItem,i.writer.createPositionAt(s,0)),i.consumable.consume(r.viewItem,o);const l=i.getSplitParts(s);r.modelRange=new Ks(i.writer.createPositionBefore(s),i.writer.createPositionAfter(l[l.length-1])),a.cursorParent?r.modelCursor=i.writer.createPositionAt(a.cursorParent,0):r.modelCursor=r.modelRange.end}}(t=fa(t)),n=_a(t),r=n?"element:"+n:"element";return n=>{n.on(r,e,{priority:t.converterPriority||"normal"})}}function _a(t){return"string"==typeof t.view?t.view:"object"==typeof t.view&&"string"==typeof t.view.name?t.view.name:null}function xa(t,e=null){const n=null===e||(t=>t.getAttribute(e)),r="object"!=typeof t.model?t.model:t.model.key,i="object"!=typeof t.model||void 0===t.model.value?n:t.model.value;t.model={key:r,value:i}}function Ca(t,e){const n=new vr(t.view);return(r,i,o)=>{const s=n.match(i.viewItem);if(!s)return;const a=t.model.key,l="function"==typeof t.model.value?t.model.value(i.viewItem):t.model.value;null!==l&&(function(t){return!("object"==typeof t.view&&!_a(t))&&(!t.view.classes&&!t.view.attributes&&!t.view.styles)}(t)?s.match.name=!0:delete s.match.name,o.consumable.test(i.viewItem,s.match)&&(i.modelRange||(i=Object.assign(i,o.convertChildren(i.viewItem,i.modelCursor))),function(t,e,n,r){let i=!1;for(const o of Array.from(t.getItems({shallow:n})))r.schema.checkAttribute(o,e.key)&&(r.writer.setAttribute(e.key,e.value,o),i=!0);return i}(i.modelRange,{key:a,value:l},e,o)&&o.consumable.consume(i.viewItem,s.match)))}}class Sa{constructor(t){this.model=t,this.view=new Rs,this.mapper=new Xs,this.downcastDispatcher=new Zs({mapper:this.mapper});const e=this.model.document,n=e.selection,r=this.model.markers;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(e,"change",()=>{this.view.change(t=>{this.downcastDispatcher.convertChanges(e.differ,t),this.downcastDispatcher.convertSelection(n,r,t)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(t,e){return(n,r)=>{const i=r.newSelection,o=new ea,s=[];for(const t of i.getRanges())s.push(e.toModelRange(t));o.setTo(s,{backward:i.isBackward}),o.isEqual(t.document.selection)||t.change(t=>{t.setSelection(o)})}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(t,e,n)=>{if(!n.consumable.consume(e.item,"insert"))return;const r=n.writer,i=n.mapper.toViewPosition(e.range.start),o=r.createText(e.item.data);r.insert(i,o)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(t,e,n)=>{const r=n.mapper.toViewPosition(e.position),i=e.position.getShiftedBy(e.length),o=n.mapper.toViewPosition(i,{isPhantom:!0}),s=n.writer.createRange(r,o),a=n.writer.remove(s.getTrimmed());for(const l of n.writer.createRangeIn(a).getItems())n.mapper.unbindViewElement(l)},{priority:"low"}),this.downcastDispatcher.on("selection",(t,e,n)=>{const r=n.writer,i=r.document.selection;for(const o of i.getRanges())o.isCollapsed&&o.end.parent.document&&n.writer.mergeAttributes(o.start);r.setSelection(null)},{priority:"low"}),this.downcastDispatcher.on("selection",(t,e,n)=>{const r=e.selection;if(r.isCollapsed)return;if(!n.consumable.consume(r,"selection"))return;const i=[];for(const o of r.getRanges()){const t=n.mapper.toViewRange(o);i.push(t)}n.writer.setSelection(i,{backward:r.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(t,e,n)=>{const r=e.selection;if(!r.isCollapsed)return;if(!n.consumable.consume(r,"selection"))return;const i=n.writer,o=r.getFirstPosition(),s=n.mapper.toViewPosition(o),a=i.breakAttributes(s);i.setSelection(a)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(t=>{if("$graveyard"==t.rootName)return null;const e=new Xr(t.name);return e.rootName=t.rootName,e._document=this.view.document,this.mapper.bindElements(t,e),e})}destroy(){this.view.destroy(),this.stopListening()}}lr(Sa,Vr);class Ta{constructor(t,e=[]){this._editor=t,this._availablePlugins=new Map,this._plugins=new Map;for(const n of e)this._availablePlugins.set(n,n),n.pluginName&&this._availablePlugins.set(n.pluginName,n)}*[Symbol.iterator](){for(const t of this._plugins)"function"==typeof t[0]&&(yield t)}get(t){const e=this._plugins.get(t);if(!e){const e="plugincollection-plugin-not-loaded: The requested plugin is not loaded.";let n=t;throw"function"==typeof t&&(n=t.pluginName||t.name),new Yn.b(e,this._editor,{plugin:n})}return e}has(t){return this._plugins.has(t)}init(t,e=[]){const n=this,r=this._editor,i=new Set,o=[],s=h(t),a=h(e),l=function(t){const e=[];for(const n of t)d(n)||e.push(n);return e.length?e:null}(t);if(l){const t="plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.";return vs.a.error(t,{plugins:l}),Promise.reject(new Yn.b(t,this._editor,{plugins:l}))}return Promise.all(s.map(c)).then(()=>u(o,"init")).then(()=>u(o,"afterInit")).then(()=>o);function c(t){if(!a.includes(t)&&!n._plugins.has(t)&&!i.has(t))return function(t){return new Promise(s=>{i.add(t),t.requires&&t.requires.forEach(n=>{const i=d(n);if(e.includes(i))throw new Yn.b("plugincollection-required: Cannot load a plugin because one of its dependencies is listed inthe `removePlugins` option.",r,{plugin:i,requiredBy:t});c(i)});const a=new t(r);n._add(t,a),o.push(a),s()})}(t).catch(e=>{throw vs.a.error("plugincollection-load: It was not possible to load the plugin.",{plugin:t}),e})}function u(t,e){return t.reduce((t,n)=>n[e]?t.then(n[e].bind(n)):t,Promise.resolve())}function d(t){return"function"==typeof t?t:n._availablePlugins.get(t)}function h(t){return t.map(t=>d(t)).filter(t=>!!t)}}destroy(){const t=Array.from(this).map(([,t])=>t).filter(t=>"function"==typeof t.destroy).map(t=>t.destroy());return Promise.all(t)}_add(t,e){this._plugins.set(t,e);const n=t.pluginName;n&&(this._plugins.has(n)?vs.a.warn("plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.",{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t}):this._plugins.set(n,e))}}lr(Ta,er);class Oa{constructor(){this._commands=new Map}add(t,e){this._commands.set(t,e)}get(t){return this._commands.get(t)}execute(t,...e){const n=this.get(t);if(!n)throw new Yn.b("commandcollection-command-not-found: Command does not exist.",this,{commandName:t});n.execute(...e)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const t of this.commands())t.destroy()}}function Pa(t,e){const n=Object.keys(window.CKEDITOR_TRANSLATIONS).length;return 1===n&&(t=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]),0!==n&&function(t,e){return t in window.CKEDITOR_TRANSLATIONS&&e in window.CKEDITOR_TRANSLATIONS[t]}(t,e)?window.CKEDITOR_TRANSLATIONS[t][e].replace(/ \[context: [^\]]+\]$/,""):e.replace(/ \[context: [^\]]+\]$/,"")}window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});class Aa{constructor(t){this.language=t||"en",this.t=((...t)=>this._t(...t))}_t(t,e){let n=Pa(this.language,t);return e&&(n=n.replace(/%(\d+)/g,(t,n)=>n<e.length?e[n]:t)),n}}class Ea{constructor(){this._consumables=new Map}add(t,e){let n;t.is("text")||t.is("documentFragment")?this._consumables.set(t,!0):(this._consumables.has(t)?n=this._consumables.get(t):(n=new Ma,this._consumables.set(t,n)),n.add(e))}test(t,e){const n=this._consumables.get(t);return void 0===n?null:t.is("text")||t.is("documentFragment")?n:n.test(e)}consume(t,e){return!!this.test(t,e)&&(t.is("text")||t.is("documentFragment")?this._consumables.set(t,!1):this._consumables.get(t).consume(e),!0)}revert(t,e){const n=this._consumables.get(t);void 0!==n&&(t.is("text")||t.is("documentFragment")?this._consumables.set(t,!0):n.revert(e))}static consumablesFromElement(t){const e={name:!0,attributes:[],classes:[],styles:[]},n=t.getAttributeKeys();for(const o of n)"style"!=o&&"class"!=o&&e.attributes.push(o);const r=t.getClassNames();for(const o of r)e.classes.push(o);const i=t.getStyleNames();for(const o of i)e.styles.push(o);return e}static createFrom(t,e){if(e||(e=new Ea),t.is("text"))return e.add(t),e;t.is("element")&&e.add(t,Ea.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);for(const n of t.getChildren())e=Ea.createFrom(n,e);return e}}class Ma{constructor(){this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(t){t.name&&(this._canConsumeName=!0);for(const e in this._consumables)e in t&&this._add(e,t[e])}test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(const e in this._consumables)if(e in t){const n=this._test(e,t[e]);if(!0!==n)return n}return!0}consume(t){t.name&&(this._canConsumeName=!1);for(const e in this._consumables)e in t&&this._consume(e,t[e])}revert(t){t.name&&(this._canConsumeName=!0);for(const e in this._consumables)e in t&&this._revert(e,t[e])}_add(t,e){const n=Ut(e)?e:[e],r=this._consumables[t];for(const i of n){if("attributes"===t&&("class"===i||"style"===i))throw new Yn.b("viewconsumable-invalid-attribute: Classes and styles should be handled separately.",this);r.set(i,!0)}}_test(t,e){const n=Ut(e)?e:[e],r=this._consumables[t];for(const i of n)if("attributes"!==t||"class"!==i&&"style"!==i){const t=r.get(i);if(void 0===t)return null;if(!t)return!1}else{const t="class"==i?"classes":"styles",e=this._test(t,[...this._consumables[t].keys()]);if(!0!==e)return e}return!0}_consume(t,e){const n=Ut(e)?e:[e],r=this._consumables[t];for(const i of n)if("attributes"!==t||"class"!==i&&"style"!==i)r.set(i,!1);else{const t="class"==i?"classes":"styles";this._consume(t,[...this._consumables[t].keys()])}}_revert(t,e){const n=Ut(e)?e:[e],r=this._consumables[t];for(const i of n)if("attributes"!==t||"class"!==i&&"style"!==i)!1===r.get(i)&&r.set(i,!0);else{const t="class"==i?"classes":"styles";this._revert(t,[...this._consumables[t].keys()])}}}class Ia{constructor(){this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(t,e)=>{e[0]=new Na(e[0])},{priority:"highest"}),this.on("checkChild",(t,e)=>{e[0]=new Na(e[0]),e[1]=this.getDefinition(e[1])},{priority:"highest"})}register(t,e){if(this._sourceDefinitions[t])throw new Yn.b("schema-cannot-register-item-twice: A single item cannot be registered twice in the schema.",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache()}extend(t,e){if(!this._sourceDefinitions[t])throw new Yn.b("schema-cannot-extend-missing-item: Cannot extend an item which was not registered yet.",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(t){let e;return e="string"==typeof t?t:t.is&&(t.is("text")||t.is("textProxy"))?"$text":t.name,this.getDefinitions()[e]}isRegistered(t){return!!this.getDefinition(t)}isBlock(t){const e=this.getDefinition(t);return!(!e||!e.isBlock)}isLimit(t){const e=this.getDefinition(t);return!!e&&!(!e.isLimit&&!e.isObject)}isObject(t){const e=this.getDefinition(t);return!(!e||!e.isObject)}isInline(t){const e=this.getDefinition(t);return!(!e||!e.isInline)}checkChild(t,e){return!!e&&this._checkContextMatch(e,t)}checkAttribute(t,e){const n=this.getDefinition(t.last);return!!n&&n.allowAttributes.includes(e)}checkMerge(t,e=null){if(t instanceof Ys){const e=t.nodeBefore,n=t.nodeAfter;if(!(e instanceof Ws))throw new Yn.b("schema-check-merge-no-element-before: The node before the merge position must be an element.",this);if(!(n instanceof Ws))throw new Yn.b("schema-check-merge-no-element-after: The node after the merge position must be an element.",this);return this.checkMerge(e,n)}for(const n of e.getChildren())if(!this.checkChild(t,n))return!1;return!0}addChildCheck(t){this.on("checkChild",(e,[n,r])=>{if(!r)return;const i=t(n,r);"boolean"==typeof i&&(e.stop(),e.return=i)},{priority:"high"})}addAttributeCheck(t){this.on("checkAttribute",(e,[n,r])=>{const i=t(n,r);"boolean"==typeof i&&(e.stop(),e.return=i)},{priority:"high"})}setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}getAttributeProperties(t){return this._attributeProperties[t]||{}}getLimitElement(t){let e;for(e=t instanceof Ys?t.parent:(t instanceof Ks?[t]:Array.from(t.getRanges())).reduce((t,e)=>{const n=e.getCommonAncestor();return t?t.getCommonAncestor(n,{includeSelf:!0}):n},null);!this.isLimit(e)&&e.parent;)e=e.parent;return e}checkAttributeInSelection(t,e){if(t.isCollapsed){const n=[...t.getFirstPosition().getAncestors(),new Vs("",t.getAttributes())];return this.checkAttribute(n,e)}{const n=t.getRanges();for(const t of n)for(const n of t)if(this.checkAttribute(n.item,e))return!0}return!1}*getValidRanges(t,e){t=function*(t){for(const e of t)yield*e.getMinimalFlatRanges()}(t);for(const n of t)yield*this._getValidRangesForRange(n,e)}getNearestSelectionRange(t,e="both"){if(this.checkChild(t,"$text"))return new Ks(t);let n,r;"both"!=e&&"backward"!=e||(n=new Us({startPosition:t,direction:"backward"})),"both"!=e&&"forward"!=e||(r=new Us({startPosition:t}));for(const i of function*(t,e){let n=!1;for(;!n;){if(n=!0,t){const e=t.next();e.done||(n=!1,yield{walker:t,value:e.value})}if(e){const t=e.next();t.done||(n=!1,yield{walker:e,value:t.value})}}}(n,r)){const t=i.walker==n?"elementEnd":"elementStart",e=i.value;if(e.type==t&&this.isObject(e.item))return Ks._createOn(e.item);if(this.checkChild(e.nextPosition,"$text"))return new Ks(e.nextPosition)}return null}findAllowedParent(t,e){let n=t.parent;for(;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent}return null}removeDisallowedAttributes(t,e){for(const n of t){for(const t of n.getAttributeKeys())this.checkAttribute(n,t)||e.removeAttribute(t,n);n.is("element")&&this.removeDisallowedAttributes(n.getChildren(),e)}}createContext(t){return new Na(t)}_clearCache(){this._compiledDefinitions=null}_compile(){const t={},e=this._sourceDefinitions,n=Object.keys(e);for(const r of n)t[r]=ja(e[r],r);for(const r of n)Da(t,r);for(const r of n)La(t,r);for(const r of n)Ba(t,r),Ra(t,r);for(const r of n)Fa(t,r),$a(t,r);this._compiledDefinitions=t}_checkContextMatch(t,e,n=e.length-1){const r=e.getItem(n);if(t.allowIn.includes(r.name)){if(0==n)return!0;{const t=this.getDefinition(r);return this._checkContextMatch(t,e,n-1)}}return!1}*_getValidRangesForRange(t,e){let n=t.start,r=t.start;for(const i of t.getItems({shallow:!0}))i.is("element")&&(yield*this._getValidRangesForRange(Ks._createIn(i),e)),this.checkAttribute(i,e)||(n.isEqual(r)||(yield new Ks(n,r)),n=Ys._createAfter(i)),r=Ys._createAfter(i);n.isEqual(r)||(yield new Ks(n,r))}}lr(Ia,Vr);class Na{constructor(t){if(t instanceof Na)return t;"string"==typeof t?t=[t]:Array.isArray(t)||(t=t.getAncestors({includeSelf:!0})),t[0]&&"string"!=typeof t[0]&&t[0].is("documentFragment")&&t.shift(),this._items=t.map(Ha)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(t){const e=new Na([t]);return e._items=[...this._items,...e._items],e}getItem(t){return this._items[t]}*getNames(){yield*this._items.map(t=>t.name)}endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t)}}function ja(t,e){const n={name:e,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(t,e){for(const n of t){const t=Object.keys(n).filter(t=>t.startsWith("is"));for(const r of t)e[r]=n[r]}}(t,n),Va(t,n,"allowIn"),Va(t,n,"allowContentOf"),Va(t,n,"allowWhere"),Va(t,n,"allowAttributes"),Va(t,n,"allowAttributesOf"),Va(t,n,"inheritTypesFrom"),function(t,e){for(const n of t){const t=n.inheritAllFrom;t&&(e.allowContentOf.push(t),e.allowWhere.push(t),e.allowAttributesOf.push(t),e.inheritTypesFrom.push(t))}}(t,n),n}function Da(t,e){for(const n of t[e].allowContentOf)t[n]&&za(t,n).forEach(t=>{t.allowIn.push(e)});delete t[e].allowContentOf}function La(t,e){for(const n of t[e].allowWhere){const r=t[n];if(r){const n=r.allowIn;t[e].allowIn.push(...n)}}delete t[e].allowWhere}function Ba(t,e){for(const n of t[e].allowAttributesOf){const r=t[n];if(r){const n=r.allowAttributes;t[e].allowAttributes.push(...n)}}delete t[e].allowAttributesOf}function Ra(t,e){const n=t[e];for(const r of n.inheritTypesFrom){const e=t[r];if(e){const t=Object.keys(e).filter(t=>t.startsWith("is"));for(const r of t)r in n||(n[r]=e[r])}}delete n.inheritTypesFrom}function Fa(t,e){const n=t[e],r=n.allowIn.filter(e=>t[e]);n.allowIn=Array.from(new Set(r))}function $a(t,e){const n=t[e];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function Va(t,e,n){for(const r of t)"string"==typeof r[n]?e[n].push(r[n]):Array.isArray(r[n])&&e[n].push(...r[n])}function za(t,e){const n=t[e];return function(t){return Object.keys(t).map(e=>t[e])}(t).filter(t=>t.allowIn.includes(n.name))}function Ha(t){return"string"==typeof t?{name:t,*getAttributeKeys(){},getAttribute(){}}:{name:t.is("element")?t.name:"$text",*getAttributeKeys(){yield*t.getAttributeKeys()},getAttribute:e=>t.getAttribute(e)}}class Wa{constructor(t={}){this._splitParts=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},t),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}convert(t,e,n=["$root"]){this.fire("viewCleanup",t),this._modelCursor=function(t,e){let n;for(const r of new Na(t)){const t={};for(const e of r.getAttributeKeys())t[e]=r.getAttribute(e);const i=e.createElement(r.name,t);n&&e.append(i,n),n=Ys._createAt(i,0)}return n}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=Ea.createFrom(t),this.conversionApi.store={};const{modelRange:r}=this._convertItem(t,this._modelCursor),i=e.createDocumentFragment();if(r){this._removeEmptyElements();for(const t of Array.from(this._modelCursor.parent.getChildren()))e.append(t,i);i.markers=function(t,e){const n=new Set,r=new Map,i=Ks._createIn(t).getItems();for(const o of i)"$marker"==o.name&&n.add(o);for(const o of n){const t=o.getAttribute("data-name"),n=e.createPositionBefore(o);r.has(t)?r.get(t).end=n.clone():r.set(t,new Ks(n.clone())),e.remove(o)}return r}(i,e)}return this._modelCursor=null,this._splitParts.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,i}_convertItem(t,e){const n=Object.assign({viewItem:t,modelCursor:e,modelRange:null});if(t.is("element")?this.fire("element:"+t.name,n,this.conversionApi):t.is("text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof Ks))throw new Yn.b("view-conversion-dispatcher-incorrect-result: Incorrect conversion result was dropped.",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(t,e){const n=new Ks(e);let r=e;for(const i of Array.from(t.getChildren())){const t=this._convertItem(i,r);t.modelRange instanceof Ks&&(n.end=t.modelRange.end,r=t.modelCursor)}return{modelRange:n,modelCursor:r}}_splitToAllowedParent(t,e){const n=this.conversionApi.schema.findAllowedParent(e,t);if(!n)return null;if(n===e.parent)return{position:e};if(this._modelCursor.parent.getAncestors().includes(n))return null;const r=this.conversionApi.writer.split(e,n),i=[];for(const o of r.range.getWalker())if("elementEnd"==o.type)i.push(o.item);else{const t=i.pop(),e=o.item;this._registerSplitPair(t,e)}return{position:r.position,cursorParent:r.range.end.parent}}_registerSplitPair(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);const n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e)}_getSplitParts(t){return this._splitParts.has(t)?this._splitParts.get(t):[t]}_removeEmptyElements(){let t=!1;for(const e of this._splitParts.keys())e.isEmpty&&(this.conversionApi.writer.remove(e),this._splitParts.delete(e),t=!0);t&&this._removeEmptyElements()}}lr(Wa,er);class Ua{constructor(t,e){this.model=t,this.processor=e,this.mapper=new Xs,this.downcastDispatcher=new Zs({mapper:this.mapper}),this.downcastDispatcher.on("insert:$text",(t,e,n)=>{if(!n.consumable.consume(e.item,"insert"))return;const r=n.writer,i=n.mapper.toViewPosition(e.range.start),o=r.createText(e.item.data);r.insert(i,o)},{priority:"lowest"}),this.upcastDispatcher=new Wa({schema:t.schema}),this.upcastDispatcher.on("text",(t,e,n)=>{if(n.schema.checkChild(e.modelCursor,"$text")&&n.consumable.consume(e.viewItem)){const t=n.writer.createText(e.viewItem.data);n.writer.insert(t,e.modelCursor),e.modelRange=Ks._createFromPositionAndShift(e.modelCursor,t.offsetSize),e.modelCursor=e.modelRange.end}},{priority:"lowest"}),this.upcastDispatcher.on("element",(t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:r}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=r}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:r}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=r}},{priority:"lowest"}),this.decorate("init"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"})}get(t){const{rootName:e="main",trim:n="empty"}=t||{};if(!this._checkIfRootsExists([e]))throw new Yn.b("datacontroller-get-non-existent-root: Attempting to get data from a non-existing root.",this);const r=this.model.document.getRoot(e);return"empty"!==n||this.model.hasContent(r,{ignoreWhitespaces:!0})?this.stringify(r):""}stringify(t){const e=this.toView(t);return this.processor.toData(e)}toView(t){this.mapper.clearBindings();const e=Ks._createIn(t),n=new xi,r=new Ci(new oi);if(this.mapper.bindElements(t,n),this.downcastDispatcher.convertInsert(e,r),!t.is("documentFragment")){const e=function(t){const e=[],n=t.root.document;if(!n)return[];const r=Ks._createIn(t);for(const i of n.model.markers){const t=r.getIntersection(i.getRange());t&&e.push([i.name,t])}return e}(t);for(const[t,n]of e)this.downcastDispatcher.convertMarkerAdd(t,n,r)}return n}init(t){if(this.model.document.version)throw new Yn.b("datacontroller-init-document-not-empty: Trying to set initial data to not empty document.",this);let e={};if("string"==typeof t?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new Yn.b("datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.",this);return this.model.enqueueChange("transparent",t=>{for(const n of Object.keys(e)){const r=this.model.document.getRoot(n);t.insert(this.parse(e[n],r),r,0)}}),Promise.resolve()}set(t){let e={};if("string"==typeof t?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new Yn.b("datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.",this);this.model.enqueueChange("transparent",t=>{t.setSelection(null),t.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const n of Object.keys(e)){const r=this.model.document.getRoot(n);t.remove(t.createRangeIn(r)),t.insert(this.parse(e[n],r),r,0)}})}parse(t,e="$root"){const n=this.processor.toView(t);return this.toModel(n,e)}toModel(t,e="$root"){return this.model.change(n=>this.upcastDispatcher.convert(t,n,e))}destroy(){this.stopListening()}_checkIfRootsExists(t){for(const e of t)if(!this.model.document.getRootNames().includes(e))return!1;return!0}}lr(Ua,Vr);class qa{constructor(t,e){this._helpers=new Map,this._downcast=Array.isArray(t)?t:[t],this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Array.isArray(e)?e:[e],this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(t,e){const n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new Yn.b("conversion-add-alias-dispatcher-not-registered: Trying to register and alias for a dispatcher that nas not been registered.",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}for(t){if(!this._helpers.has(t))throw new Yn.b("conversion-for-unknown-group: Trying to add a converter to an unknown dispatchers group.",this);return this._helpers.get(t)}elementToElement(t){this.for("downcast").elementToElement(t);for(const{model:e,view:n}of Ga(t))this.for("upcast").elementToElement({model:e,view:n,converterPriority:t.converterPriority})}attributeToElement(t){this.for("downcast").attributeToElement(t);for(const{model:e,view:n}of Ga(t))this.for("upcast").elementToAttribute({view:n,model:e,converterPriority:t.converterPriority})}attributeToAttribute(t){this.for("downcast").attributeToAttribute(t);for(const{model:e,view:n}of Ga(t))this.for("upcast").attributeToAttribute({view:n,model:e})}_createConversionHelpers({name:t,dispatchers:e,isDowncast:n}){if(this._helpers.has(t))throw new Yn.b("conversion-group-exists: Trying to register a group name that has already been registered.",this);const r=n?new pa(e):new wa(e);this._helpers.set(t,r)}}function*Ga(t){if(t.model.values)for(const e of t.model.values)yield*Ya({key:t.model.key,value:e},t.view[e],t.upcastAlso?t.upcastAlso[e]:void 0);else yield*Ya(t.model,t.view,t.upcastAlso)}function*Ya(t,e,n){if(yield{model:t,view:e},n){n=Array.isArray(n)?n:[n];for(const e of n)yield{model:t,view:e}}}class Ka{constructor(t="default"){this.operations=[],this.type=t}get baseVersion(){for(const t of this.operations)if(null!==t.baseVersion)return t.baseVersion;return null}addOperation(t){return t.batch=this,this.operations.push(t),t}}class Xa{constructor(t){this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}static get className(){return"Operation"}static fromJSON(t){return new this(t.baseVersion)}}class Ja{constructor(t){this.markers=new Map,this._children=new Hs,t&&this._insertChild(0,t)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(t){return"documentFragment"==t}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}getPath(){return[]}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}offsetToIndex(t){return this._children.offsetToIndex(t)}toJSON(){const t=[];for(const e of this._children)t.push(e.toJSON());return t}static fromJSON(t){const e=[];for(const n of t)n.name?e.push(Ws.fromJSON(n)):e.push(Vs.fromJSON(n));return new Ja(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){return"string"==typeof t?[new Vs(t)]:(mr(t)||(t=[t]),Array.from(t).map(t=>"string"==typeof t?new Vs(t):t instanceof zs?new Vs(t.data,t.getAttributes()):t))}(e);for(const r of n)null!==r.parent&&r._remove(),r.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const r of n)r.parent=null;return n}}function Qa(t,e){const n=(e=el(e)).reduce((t,e)=>t+e.offsetSize,0),r=t.parent;rl(t);const i=t.index;return r._insertChild(i,e),nl(r,i+e.length),nl(r,i),new Ks(t,t.getShiftedBy(n))}function Za(t){if(!t.isFlat)throw new Yn.b("operation-utils-remove-range-not-flat: Trying to remove a range which starts and ends in different element.",this);const e=t.start.parent;rl(t.start),rl(t.end);const n=e._removeChildren(t.start.index,t.end.index-t.start.index);return nl(e,t.start.index),n}function tl(t,e){if(!t.isFlat)throw new Yn.b("operation-utils-move-range-not-flat: Trying to move a range which starts and ends in different element.",this);const n=Za(t);return Qa(e=e._getTransformedByDeletion(t.start,t.end.offset-t.start.offset),n)}function el(t){const e=[];t instanceof Array||(t=[t]);for(let n=0;n<t.length;n++)if("string"==typeof t[n])e.push(new Vs(t[n]));else if(t[n]instanceof zs)e.push(new Vs(t[n].data,t[n].getAttributes()));else if(t[n]instanceof Ja||t[n]instanceof Hs)for(const r of t[n])e.push(r);else t[n]instanceof $s&&e.push(t[n]);for(let n=1;n<e.length;n++){const t=e[n],r=e[n-1];t instanceof Vs&&r instanceof Vs&&il(t,r)&&(e.splice(n-1,2,new Vs(r.data+t.data,r.getAttributes())),n--)}return e}function nl(t,e){const n=t.getChild(e-1),r=t.getChild(e);if(n&&r&&n.is("text")&&r.is("text")&&il(n,r)){const i=new Vs(n.data+r.data,n.getAttributes());t._removeChildren(e-1,2),t._insertChild(e-1,i)}}function rl(t){const e=t.textNode,n=t.parent;if(e){const r=t.offset-e.startOffset,i=e.index;n._removeChildren(i,1);const o=new Vs(e.data.substr(0,r),e.getAttributes()),s=new Vs(e.data.substr(r),e.getAttributes());n._insertChild(i,[o,s])}}function il(t,e){const n=t.getAttributes(),r=e.getAttributes();for(const i of n){if(i[1]!==e.getAttribute(i[0]))return!1;r.next()}return r.next().done}var ol=function(t,e){return Xo(t,e)};class sl extends Xa{constructor(t,e,n,r,i){super(i),this.range=t.clone(),this.key=e,this.oldValue=void 0===n?null:n,this.newValue=void 0===r?null:r}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}clone(){return new sl(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new sl(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const t=super.toJSON();return t.range=this.range.toJSON(),t}_validate(){if(!this.range.isFlat)throw new Yn.b("attribute-operation-range-not-flat: The range to change is not flat.",this);for(const t of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!ol(t.getAttribute(this.key),this.oldValue))throw new Yn.b("attribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",this,{item:t,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&t.hasAttribute(this.key))throw new Yn.b("attribute-operation-attribute-exists: The attribute with given key already exists.",this,{node:t,key:this.key})}}_execute(){ol(this.oldValue,this.newValue)||function(t,e,n){rl(t.start),rl(t.end);for(const r of t.getItems({shallow:!0})){const t=r.is("textProxy")?r.textNode:r;null!==n?t._setAttribute(e,n):t._removeAttribute(e),nl(t.parent,t.index)}nl(t.end.parent,t.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(t,e){return new sl(Ks.fromJSON(t.range,e),t.key,t.oldValue,t.newValue,t.baseVersion)}}class al extends Xa{constructor(t,e){super(null),this.sourcePosition=t.clone(),this.howMany=e}get type(){return"detach"}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t}_validate(){if(this.sourcePosition.root.document)throw new Yn.b("detach-operation-on-document-node: Cannot detach document node.",this)}_execute(){Za(Ks._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class ll extends Xa{constructor(t,e,n,r){super(r),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toNext",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const t=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,t,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent,n=this.sourcePosition.offset,r=this.targetPosition.offset;if(!t||!e)throw new Yn.b("move-operation-position-invalid: Source position or target position is invalid.",this);if(n+this.howMany>t.maxOffset)throw new Yn.b("move-operation-nodes-do-not-exist: The nodes which should be moved do not exist.",this);if(t===e&&n<r&&r<n+this.howMany)throw new Yn.b("move-operation-range-into-itself: Trying to move a range of nodes to the inside of that range.",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==cr(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){const t=this.sourcePosition.path.length-1;if(this.targetPosition.path[t]>=n&&this.targetPosition.path[t]<n+this.howMany)throw new Yn.b("move-operation-node-into-itself: Trying to move a range of nodes into one of nodes from that range.",this)}}_execute(){tl(Ks._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t.targetPosition=this.targetPosition.toJSON(),t}static get className(){return"MoveOperation"}static fromJSON(t,e){const n=Ys.fromJSON(t.sourcePosition,e),r=Ys.fromJSON(t.targetPosition,e);return new this(n,t.howMany,r,t.baseVersion)}}class cl extends Xa{constructor(t,e,n){super(n),this.position=t.clone(),this.position.stickiness="toNone",this.nodes=new Hs(el(e)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}clone(){const t=new Hs([...this.nodes].map(t=>t._clone(!0))),e=new cl(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const t=this.position.root.document.graveyard,e=new Ys(t,[0]);return new ll(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffset<this.position.offset)throw new Yn.b("insert-operation-position-invalid: Insertion position is invalid.",this)}_execute(){const t=this.nodes;this.nodes=new Hs([...t].map(t=>t._clone(!0))),Qa(this.position,t)}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}static get className(){return"InsertOperation"}static fromJSON(t,e){const n=[];for(const i of t.nodes)i.name?n.push(Ws.fromJSON(i)):n.push(Vs.fromJSON(i));const r=new cl(Ys.fromJSON(t.position,e),n,t.baseVersion);return r.shouldReceiveAttributes=t.shouldReceiveAttributes,r}}class ul extends Xa{constructor(t,e,n,r,i,o){super(o),this.name=t,this.oldRange=e?e.clone():null,this.newRange=n?n.clone():null,this.affectsData=i,this._markers=r}get type(){return"marker"}clone(){return new ul(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new ul(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){const t=this.newRange?"_set":"_remove";this._markers[t](this.name,this.newRange,!0,this.affectsData)}toJSON(){const t=super.toJSON();return this.oldRange&&(t.oldRange=this.oldRange.toJSON()),this.newRange&&(t.newRange=this.newRange.toJSON()),delete t._markers,t}static get className(){return"MarkerOperation"}static fromJSON(t,e){return new ul(t.name,t.oldRange?Ks.fromJSON(t.oldRange,e):null,t.newRange?Ks.fromJSON(t.newRange,e):null,e.model.markers,t.affectsData,t.baseVersion)}}class dl extends Xa{constructor(t,e,n,r){super(r),this.position=t,this.position.stickiness="toNext",this.oldName=e,this.newName=n}get type(){return"rename"}clone(){return new dl(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new dl(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const t=this.position.nodeAfter;if(!(t instanceof Ws))throw new Yn.b("rename-operation-wrong-position: Given position is invalid or node after it is not an instance of Element.",this);if(t.name!==this.oldName)throw new Yn.b("rename-operation-wrong-name: Element to change has different name than operation's old name.",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t}static get className(){return"RenameOperation"}static fromJSON(t,e){return new dl(Ys.fromJSON(t.position,e),t.oldName,t.newName,t.baseVersion)}}class hl extends Xa{constructor(t,e,n,r,i){super(i),this.root=t,this.key=e,this.oldValue=n,this.newValue=r}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new hl(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new hl(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new Yn.b("rootattribute-operation-not-a-root: The element to change is not a root element.",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new Yn.b("rootattribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new Yn.b("rootattribute-operation-attribute-exists: The attribute with given key already exists.",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const t=super.toJSON();return t.root=this.root.toJSON(),t}static get className(){return"RootAttributeOperation"}static fromJSON(t,e){if(!e.getRoot(t.root))throw new Yn.b("rootattribute-operation-fromjson-no-root: Cannot create RootAttributeOperation. Root with specified name does not exist.",this,{rootName:t.root});return new hl(e.getRoot(t.root),t.key,t.oldValue,t.newValue,t.baseVersion)}}class fl extends Xa{constructor(t,e,n,r,i){super(i),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=r.clone()}get type(){return"merge"}get deletionPosition(){return new Ys(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const t=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Ks(this.sourcePosition,t)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.targetPosition._getTransformedByMergeOperation(this),e=this.sourcePosition.path.slice(0,-1),n=new Ys(this.sourcePosition.root,e)._getTransformedByMergeOperation(this),r=new pl(t,this.howMany,this.graveyardPosition,this.baseVersion+1);return r.insertionPosition=n,r}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent;if(!(t&&t.is("element")&&t.parent))throw new Yn.b("merge-operation-source-position-invalid: Merge source position is invalid.",this);if(!(e&&e.is("element")&&e.parent))throw new Yn.b("merge-operation-target-position-invalid: Merge target position is invalid.",this);if(this.howMany!=t.maxOffset)throw new Yn.b("merge-operation-how-many-invalid: Merge operation specifies wrong number of nodes to move.",this)}_execute(){const t=this.sourcePosition.parent;tl(Ks._createIn(t),this.targetPosition),tl(Ks._createOn(t),this.graveyardPosition)}toJSON(){const t=super.toJSON();return t.sourcePosition=t.sourcePosition.toJSON(),t.targetPosition=t.targetPosition.toJSON(),t.graveyardPosition=t.graveyardPosition.toJSON(),t}static get className(){return"MergeOperation"}static fromJSON(t,e){const n=Ys.fromJSON(t.sourcePosition,e),r=Ys.fromJSON(t.targetPosition,e),i=Ys.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,r,i,t.baseVersion)}}class pl extends Xa{constructor(t,e,n,r){super(r),this.splitPosition=t.clone(),this.splitPosition.stickiness="toNext",this.howMany=e,this.insertionPosition=pl.getInsertionPosition(t),this.insertionPosition.stickiness="toNone",this.graveyardPosition=n?n.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const t=this.insertionPosition.path.slice();return t.push(0),new Ys(this.insertionPosition.root,t)}get movedRange(){const t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Ks(this.splitPosition,t)}clone(){const t=new this.constructor(this.splitPosition,this.howMany,this.graveyardPosition,this.baseVersion);return t.insertionPosition=this.insertionPosition,t}getReversed(){const t=this.splitPosition.root.document.graveyard,e=new Ys(t,[0]);return new fl(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){const t=this.splitPosition.parent,e=this.splitPosition.offset;if(!t||t.maxOffset<e)throw new Yn.b("split-operation-position-invalid: Split position is invalid.",this);if(!t.parent)throw new Yn.b("split-operation-split-in-root: Cannot split root element.",this);if(this.howMany!=t.maxOffset-this.splitPosition.offset)throw new Yn.b("split-operation-how-many-invalid: Split operation specifies wrong number of nodes to move.",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new Yn.b("split-operation-graveyard-position-invalid: Graveyard position invalid.",this)}_execute(){const t=this.splitPosition.parent;if(this.graveyardPosition)tl(Ks._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const e=t._clone();Qa(this.insertionPosition,e)}tl(new Ks(Ys._createAt(t,this.splitPosition.offset),Ys._createAt(t,t.maxOffset)),this.moveTargetPosition)}toJSON(){const t=super.toJSON();return t.splitPosition=this.splitPosition.toJSON(),t.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(t.graveyardPosition=this.graveyardPosition.toJSON()),t}static get className(){return"SplitOperation"}static getInsertionPosition(t){const e=t.path.slice(0,-1);return e[e.length-1]++,new Ys(t.root,e)}static fromJSON(t,e){const n=Ys.fromJSON(t.splitPosition,e),r=Ys.fromJSON(t.insertionPosition,e),i=t.graveyardPosition?Ys.fromJSON(t.graveyardPosition,e):null,o=new this(n,t.howMany,i,t.baseVersion);return o.insertionPosition=r,o}}class gl extends Ws{constructor(t,e,n="main"){super(e),this._doc=t,this.rootName=n}get document(){return this._doc}is(t,e){return e?"rootElement"==t&&e==this.name||super.is(t,e):"rootElement"==t||super.is(t)}toJSON(){return this.rootName}}class ml{constructor(t,e){this.model=t,this.batch=e}createText(t,e){return new Vs(t,e)}createElement(t,e){return new Ws(t,e)}createDocumentFragment(){return new Ja}insert(t,e,n=0){if(this._assertWriterUsedCorrectly(),t instanceof Vs&&""==t.data)return;const r=Ys._createAt(e,n);if(t.parent){if(kl(t.root,r.root))return void this.move(Ks._createOn(t),r);if(t.root.document)throw new Yn.b("model-writer-insert-forbidden-move: Cannot move a node from a document to a different tree. It is forbidden to move a node that was already in a document outside of it.",this);this.remove(t)}const i=r.root.document?r.root.document.version:null,o=new cl(r,t,i);if(t instanceof Vs&&(o.shouldReceiveAttributes=!0),this.batch.addOperation(o),this.model.applyOperation(o),t instanceof Ja)for(const[s,a]of t.markers){const t=Ys._createAt(a.root,0),e={range:new Ks(a.start._getCombined(t,r),a.end._getCombined(t,r)),usingOperation:!0,affectsData:!0};this.model.markers.has(s)?this.updateMarker(s,e):this.addMarker(s,e)}}insertText(t,e,n,r){e instanceof Ja||e instanceof Ws||e instanceof Ys?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,r)}insertElement(t,e,n,r){e instanceof Ja||e instanceof Ws||e instanceof Ys?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,r)}append(t,e){this.insert(t,e,"end")}appendText(t,e,n){e instanceof Ja||e instanceof Ws?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}appendElement(t,e,n){e instanceof Ja||e instanceof Ws?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}setAttribute(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof Ks){const r=n.getMinimalFlatRanges();for(const n of r)vl(this,t,e,n)}else bl(this,t,e,n)}setAttributes(t,e){for(const[n,r]of Fs(t))this.setAttribute(n,r,e)}removeAttribute(t,e){if(this._assertWriterUsedCorrectly(),e instanceof Ks){const n=e.getMinimalFlatRanges();for(const e of n)vl(this,t,null,e)}else bl(this,t,null,e)}clearAttributes(t){this._assertWriterUsedCorrectly();const e=t=>{for(const e of t.getAttributeKeys())this.removeAttribute(e,t)};if(t instanceof Ks)for(const n of t.getItems())e(n);else e(t)}move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof Ks))throw new Yn.b("writer-move-invalid-range: Invalid range to move.",this);if(!t.isFlat)throw new Yn.b("writer-move-range-not-flat: Range to move is not flat.",this);const r=Ys._createAt(e,n);if(r.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!kl(t.root,r.root))throw new Yn.b("writer-move-different-document: Range is going to be moved between different documents.",this);const i=t.root.document?t.root.document.version:null,o=new ll(t.start,t.end.offset-t.start.offset,r,i);this.batch.addOperation(o),this.model.applyOperation(o)}remove(t){this._assertWriterUsedCorrectly();const e=(t instanceof Ks?t:Ks._createOn(t)).getMinimalFlatRanges().reverse();for(const n of e)this._addOperationForAffectedMarkers("move",n),wl(n.start,n.end.offset-n.start.offset,this.batch,this.model)}merge(t){this._assertWriterUsedCorrectly();const e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof Ws))throw new Yn.b("writer-merge-no-element-before: Node before merge position must be an element.",this);if(!(n instanceof Ws))throw new Yn.b("writer-merge-no-element-after: Node after merge position must be an element.",this);t.root.document?this._merge(t):this._mergeDetached(t)}createPositionFromPath(t,e,n){return this.model.createPositionFromPath(t,e,n)}createPositionAt(t,e){return this.model.createPositionAt(t,e)}createPositionAfter(t){return this.model.createPositionAfter(t)}createPositionBefore(t){return this.model.createPositionBefore(t)}createRange(t,e){return this.model.createRange(t,e)}createRangeIn(t){return this.model.createRangeIn(t)}createRangeOn(t){return this.model.createRangeOn(t)}createSelection(t,e,n){return this.model.createSelection(t,e,n)}_mergeDetached(t){const e=t.nodeBefore,n=t.nodeAfter;this.move(Ks._createIn(n),Ys._createAt(e,"end")),this.remove(n)}_merge(t){const e=Ys._createAt(t.nodeBefore,"end"),n=Ys._createAt(t.nodeAfter,0),r=t.root.document.graveyard,i=new Ys(r,[0]),o=t.root.document.version,s=new fl(n,t.nodeAfter.maxOffset,e,i,o);this.batch.addOperation(s),this.model.applyOperation(s)}rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof Ws))throw new Yn.b("writer-rename-not-element-instance: Trying to rename an object which is not an instance of Element.",this);const n=t.root.document?t.root.document.version:null,r=new dl(Ys._createBefore(t),t.name,e,n);this.batch.addOperation(r),this.model.applyOperation(r)}split(t,e){this._assertWriterUsedCorrectly();let n,r,i=t.parent;if(!i.parent)throw new Yn.b("writer-split-element-no-parent: Element with no parent can not be split.",this);if(e||(e=i.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new Yn.b("writer-split-invalid-limit-element: Limit element is not a position ancestor.",this);do{const e=i.root.document?i.root.document.version:null,o=i.maxOffset-t.offset,s=new pl(t,o,null,e);this.batch.addOperation(s),this.model.applyOperation(s),n||r||(n=i,r=t.parent.nextSibling),i=(t=this.createPositionAfter(t.parent)).parent}while(i!==e);return{position:t,range:new Ks(Ys._createAt(n,"end"),Ys._createAt(r,0))}}wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new Yn.b("writer-wrap-range-not-flat: Range to wrap is not flat.",this);const n=e instanceof Ws?e:new Ws(e);if(n.childCount>0)throw new Yn.b("writer-wrap-element-not-empty: Element to wrap with is not empty.",this);if(null!==n.parent)throw new Yn.b("writer-wrap-element-attached: Element to wrap with is already attached to tree model.",this);this.insert(n,t.start);const r=new Ks(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(r,Ys._createAt(n,0))}unwrap(t){if(this._assertWriterUsedCorrectly(),null===t.parent)throw new Yn.b("writer-unwrap-element-no-parent: Trying to unwrap an element which has no parent.",this);this.move(Ks._createIn(t),this.createPositionAfter(t)),this.remove(t)}addMarker(t,e){if(this._assertWriterUsedCorrectly(),!e||"boolean"!=typeof e.usingOperation)throw new Yn.b("writer-addMarker-no-usingOperation: The options.usingOperation parameter is required when adding a new marker.",this);const n=e.usingOperation,r=e.range,i=void 0!==e.affectsData&&e.affectsData;if(this.model.markers.has(t))throw new Yn.b("writer-addMarker-marker-exists: Marker with provided name already exists.",this);if(!r)throw new Yn.b("writer-addMarker-no-range: Range parameter is required when adding a new marker.",this);return n?(yl(this,t,null,r,i),this.model.markers.get(t)):this.model.markers._set(t,r,n,i)}updateMarker(t,e){this._assertWriterUsedCorrectly();const n="string"==typeof t?t:t.name,r=this.model.markers.get(n);if(!r)throw new Yn.b("writer-updateMarker-marker-not-exists: Marker with provided name does not exists.",this);if(!e)return void this.model.markers._refresh(r);const i="boolean"==typeof e.usingOperation,o="boolean"==typeof e.affectsData,s=o?e.affectsData:r.affectsData;if(!i&&!e.range&&!o)throw new Yn.b("writer-updateMarker-wrong-options: One of the options is required - provide range, usingOperations or affectsData.",this);const a=r.getRange(),l=e.range?e.range:a;i&&e.usingOperation!==r.managedUsingOperations?e.usingOperation?yl(this,n,null,l,s):(yl(this,n,a,null,s),this.model.markers._set(n,l,void 0,s)):r.managedUsingOperations?yl(this,n,a,l,s):this.model.markers._set(n,l,void 0,s)}removeMarker(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?t:t.name;if(!this.model.markers.has(e))throw new Yn.b("writer-removeMarker-no-marker: Trying to remove marker which does not exist.",this);const n=this.model.markers.get(e);n.managedUsingOperations?yl(this,e,n.getRange(),null,n.affectsData):this.model.markers._remove(e)}setSelection(t,e,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(t,e,n)}setSelectionFocus(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e)}setSelectionAttribute(t,e){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._setSelectionAttribute(t,e);else for(const[n,r]of Fs(t))this._setSelectionAttribute(n,r)}removeSelectionAttribute(t){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._removeSelectionAttribute(t);else for(const e of t)this._removeSelectionAttribute(e)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(t){this.model.document.selection._restoreGravity(t)}_setSelectionAttribute(t,e){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const r=aa._getStoreAttributeKey(t);this.setAttribute(r,e,n.anchor.parent)}n._setAttribute(t,e)}_removeSelectionAttribute(t){const e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){const n=aa._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new Yn.b("writer-incorrect-use: Trying to use a writer outside the change() block.",this)}_addOperationForAffectedMarkers(t,e){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const r=n.getRange();let i=!1;if("move"==t)i=e.containsPosition(r.start)||e.start.isEqual(r.start)||e.containsPosition(r.end)||e.end.isEqual(r.end);else{const t=e.nodeBefore,n=e.nodeAfter,o=r.start.parent==t&&r.start.isAtEnd,s=r.end.parent==n&&0==r.end.offset,a=r.end.nodeAfter==n,l=r.start.nodeAfter==n;i=o||s||a||l}i&&this.updateMarker(n.name,{range:r})}}}function vl(t,e,n,r){const i=t.model,o=i.document;let s,a,l,c=r.start;for(const d of r.getWalker({shallow:!0}))l=d.item.getAttribute(e),s&&a!=l&&(a!=n&&u(),c=s),s=d.nextPosition,a=l;function u(){const r=new Ks(c,s),l=r.root.document?o.version:null,u=new sl(r,e,a,n,l);t.batch.addOperation(u),i.applyOperation(u)}s instanceof Ys&&s!=c&&a!=n&&u()}function bl(t,e,n,r){const i=t.model,o=i.document,s=r.getAttribute(e);let a,l;if(s!=n){if(r.root===r){const t=r.document?o.version:null;l=new hl(r,e,s,n,t)}else{const i=(a=new Ks(Ys._createBefore(r),t.createPositionAfter(r))).root.document?o.version:null;l=new sl(a,e,s,n,i)}t.batch.addOperation(l),i.applyOperation(l)}}function yl(t,e,n,r,i){const o=t.model,s=o.document,a=new ul(e,n,r,o.markers,i,s.version);t.batch.addOperation(a),o.applyOperation(a)}function wl(t,e,n,r){let i;if(t.root.document){const n=r.document,o=new Ys(n.graveyard,[0]);i=new ll(t,e,o,n.version)}else i=new al(t,e);n.addOperation(i),r.applyOperation(i)}function kl(t,e){return t===e||t instanceof gl&&e instanceof gl}class _l{constructor(t){this._markerCollection=t,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}bufferOperation(t){switch(t.type){case"insert":if(this._isInInsertedElement(t.position.parent))return;this._markInsert(t.position.parent,t.position.offset,t.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const e of t.range.getItems())this._isInInsertedElement(e.parent)||this._markAttribute(e);break;case"remove":case"move":case"reinsert":{if(t.sourcePosition.isEqual(t.targetPosition)||t.sourcePosition.getShiftedBy(t.howMany).isEqual(t.targetPosition))return;const e=this._isInInsertedElement(t.sourcePosition.parent),n=this._isInInsertedElement(t.targetPosition.parent);e||this._markRemove(t.sourcePosition.parent,t.sourcePosition.offset,t.howMany),n||this._markInsert(t.targetPosition.parent,t.getMovedRangeStart().offset,t.howMany);break}case"rename":{if(this._isInInsertedElement(t.position.parent))return;this._markRemove(t.position.parent,t.position.offset,1),this._markInsert(t.position.parent,t.position.offset,1);const e=Ks._createFromPositionAndShift(t.position,1);for(const t of this._markerCollection.getMarkersIntersectingRange(e)){const e=t.getRange();this.bufferMarkerChange(t.name,e,e,t.affectsData)}break}case"split":{const e=t.splitPosition.parent;this._isInInsertedElement(e)||this._markRemove(e,t.splitPosition.offset,t.howMany),this._isInInsertedElement(t.insertionPosition.parent)||this._markInsert(t.insertionPosition.parent,t.insertionPosition.offset,1),t.graveyardPosition&&this._markRemove(t.graveyardPosition.parent,t.graveyardPosition.offset,1);break}case"merge":{const e=t.sourcePosition.parent;this._isInInsertedElement(e.parent)||this._markRemove(e.parent,e.startOffset,1);const n=t.graveyardPosition.parent;this._markInsert(n,t.graveyardPosition.offset,1);const r=t.targetPosition.parent;this._isInInsertedElement(r)||this._markInsert(r,t.targetPosition.offset,e.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(t,e,n,r){const i=this._changedMarkers.get(t);i?(i.newRange=n,i.affectsData=r,null==i.oldRange&&null==i.newRange&&this._changedMarkers.delete(t)):this._changedMarkers.set(t,{oldRange:e,newRange:n,affectsData:r})}getMarkersToRemove(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.oldRange&&t.push({name:e,range:n.oldRange});return t}getMarkersToAdd(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.newRange&&t.push({name:e,range:n.newRange});return t}getChangedMarkers(){return Array.from(this._changedMarkers).map(t=>({name:t[0],data:{oldRange:t[1].oldRange,newRange:t[1].newRange}}))}hasDataChanges(){for(const[,t]of this._changedMarkers)if(t.affectsData)return!0;return this._changesInElement.size>0}getChanges(t={includeChangesInGraveyard:!1}){if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();const e=[];for(const n of this._changesInElement.keys()){const t=this._changesInElement.get(n).sort((t,e)=>t.offset===e.offset?t.type!=e.type?"remove"==t.type?-1:1:0:t.offset<e.offset?-1:1),r=this._elementSnapshots.get(n),i=xl(n.getChildren()),o=Cl(r.length,t);let s=0,a=0;for(const l of o)if("i"===l)e.push(this._getInsertDiff(n,s,i[s].name)),s++;else if("r"===l)e.push(this._getRemoveDiff(n,s,r[a].name)),a++;else if("a"===l){const t=i[s].attributes,o=r[a].attributes;let l;if("$text"==i[s].name)l=new Ks(Ys._createAt(n,s),Ys._createAt(n,s+1));else{const t=n.offsetToIndex(s);l=new Ks(Ys._createAt(n,s),Ys._createAt(n.getChild(t),0))}e.push(...this._getAttributesDiff(l,o,t)),s++,a++}else s++,a++}e.sort((t,e)=>t.position.root!=e.position.root?t.position.root.rootName<e.position.root.rootName?-1:1:t.position.isEqual(e.position)?t.changeCount-e.changeCount:t.position.isBefore(e.position)?-1:1);for(let n=1;n<e.length;n++){const t=e[n-1],r=e[n],i="remove"==t.type&&"remove"==r.type&&"$text"==t.name&&"$text"==r.name&&t.position.isEqual(r.position),o="insert"==t.type&&"insert"==r.type&&"$text"==t.name&&"$text"==r.name&&t.position.parent==r.position.parent&&t.position.offset+t.length==r.position.offset,s="attribute"==t.type&&"attribute"==r.type&&t.position.parent==r.position.parent&&t.range.isFlat&&r.range.isFlat&&t.position.offset+t.length==r.position.offset&&t.attributeKey==r.attributeKey&&t.attributeOldValue==r.attributeOldValue&&t.attributeNewValue==r.attributeNewValue;(i||o||s)&&(e[n-1].length++,s&&(e[n-1].range.end=e[n-1].range.end.getShiftedBy(1)),e.splice(n,1),n--)}for(const n of e)delete n.changeCount,"attribute"==n.type&&(delete n.position,delete n.length);return this._changeCount=0,this._cachedChangesWithGraveyard=e.slice(),this._cachedChanges=e.slice().filter(Sl),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard:this._cachedChanges}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._cachedChanges=null}_markInsert(t,e,n){const r={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,r)}_markRemove(t,e,n){const r={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,r),this._removeAllNestedChanges(t,e,n)}_markAttribute(t){const e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}_markChange(t,e){this._makeSnapshot(t);const n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(let r=0;r<n.length;r++)n[r].howMany<1&&(n.splice(r,1),r--)}_getChangesForElement(t){let e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e}_makeSnapshot(t){this._elementSnapshots.has(t)||this._elementSnapshots.set(t,xl(t.getChildren()))}_handleChange(t,e){t.nodesToHandle=t.howMany;for(const n of e){const r=t.offset+t.howMany,i=n.offset+n.howMany;if("insert"==t.type&&("insert"==n.type&&(t.offset<=n.offset?n.offset+=t.howMany:t.offset<i&&(n.howMany+=t.nodesToHandle,t.nodesToHandle=0)),"remove"==n.type&&t.offset<n.offset&&(n.offset+=t.howMany),"attribute"==n.type))if(t.offset<=n.offset)n.offset+=t.howMany;else if(t.offset<i){const i=n.howMany;n.howMany=t.offset-n.offset,e.unshift({type:"attribute",offset:r,howMany:i-n.howMany,count:this._changeCount++})}if("remove"==t.type){if("insert"==n.type)if(r<=n.offset)n.offset-=t.howMany;else if(r<=i)if(t.offset<n.offset){const e=r-n.offset;n.offset=t.offset,n.howMany-=e,t.nodesToHandle-=e}else n.howMany-=t.nodesToHandle,t.nodesToHandle=0;else if(t.offset<=n.offset)t.nodesToHandle-=n.howMany,n.howMany=0;else if(t.offset<i){const e=i-t.offset;n.howMany-=e,t.nodesToHandle-=e}if("remove"==n.type&&(r<=n.offset?n.offset-=t.howMany:t.offset<n.offset&&(t.nodesToHandle+=n.howMany,n.howMany=0)),"attribute"==n.type)if(r<=n.offset)n.offset-=t.howMany;else if(t.offset<n.offset){const e=r-n.offset;n.offset=t.offset,n.howMany-=e}else if(t.offset<i)if(r<=i){const r=n.howMany;n.howMany=t.offset-n.offset;const i=r-n.howMany-t.nodesToHandle;e.unshift({type:"attribute",offset:t.offset,howMany:i,count:this._changeCount++})}else n.howMany-=i-t.offset}if("attribute"==t.type){if("insert"==n.type)if(t.offset<n.offset&&r>n.offset){if(r>i){const t={type:"attribute",offset:i,howMany:r-i,count:this._changeCount++};this._handleChange(t,e),e.push(t)}t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=n.offset&&t.offset<i&&(r>i?(t.nodesToHandle=r-i,t.offset=i):t.nodesToHandle=0);if("remove"==n.type&&t.offset<n.offset&&r>n.offset){const i={type:"attribute",offset:n.offset,howMany:r-n.offset,count:this._changeCount++};this._handleChange(i,e),e.push(i),t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}"attribute"==n.type&&(t.offset>=n.offset&&r<=i?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=n.offset&&r>=i&&(n.howMany=0))}}t.howMany=t.nodesToHandle,delete t.nodesToHandle}_getInsertDiff(t,e,n){return{type:"insert",position:Ys._createAt(t,e),name:n,length:1,changeCount:this._changeCount++}}_getRemoveDiff(t,e,n){return{type:"remove",position:Ys._createAt(t,e),name:n,length:1,changeCount:this._changeCount++}}_getAttributesDiff(t,e,n){const r=[];n=new Map(n);for(const[i,o]of e){const e=n.has(i)?n.get(i):null;e!==o&&r.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:i,attributeOldValue:o,attributeNewValue:e,changeCount:this._changeCount++}),n.delete(i)}for(const[i,o]of n)r.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:i,attributeOldValue:null,attributeNewValue:o,changeCount:this._changeCount++});return r}_isInInsertedElement(t){const e=t.parent;if(!e)return!1;const n=this._changesInElement.get(e),r=t.startOffset;if(n)for(const i of n)if("insert"==i.type&&r>=i.offset&&r<i.offset+i.howMany)return!0;return this._isInInsertedElement(e)}_removeAllNestedChanges(t,e,n){const r=new Ks(Ys._createAt(t,e),Ys._createAt(t,e+n));for(const i of r.getItems({shallow:!0}))i.is("element")&&(this._elementSnapshots.delete(i),this._changesInElement.delete(i),this._removeAllNestedChanges(i,0,i.maxOffset))}}function xl(t){const e=[];for(const n of t)if(n.is("text"))for(let t=0;t<n.data.length;t++)e.push({name:"$text",attributes:new Map(n.getAttributes())});else e.push({name:n.name,attributes:new Map(n.getAttributes())});return e}function Cl(t,e){const n=[];let r=0,i=0;for(const o of e)o.offset>r&&(n.push(..."e".repeat(o.offset-r).split("")),i+=o.offset-r),"insert"==o.type?(n.push(..."i".repeat(o.howMany).split("")),r=o.offset+o.howMany):"remove"==o.type?(n.push(..."r".repeat(o.howMany).split("")),r=o.offset,i+=o.howMany):(n.push(..."a".repeat(o.howMany).split("")),r=o.offset+o.howMany,i+=o.howMany);return i<t&&n.push(..."e".repeat(t-i).split("")),n}function Sl(t){const e=t.position&&"$graveyard"==t.position.root.rootName,n=t.range&&"$graveyard"==t.range.root.rootName;return!e&&!n}class Tl{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set}addOperation(t){this._operations.includes(t)||this._operations.push(t)}getOperations(t=0,e=Number.POSITIVE_INFINITY){return t<0?[]:this._operations.slice(t,e)}getOperation(t){return this._operations[t]}setOperationAsUndone(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}isUndoingOperation(t){return this._undoPairs.has(t)}isUndoneOperation(t){return this._undoneOperations.has(t)}getUndoneOperation(t){return this._undoPairs.get(t)}}function Ol(t,e){return function(t){return!!t&&1==t.length&&/[\ud800-\udbff]/.test(t)}(t.charAt(e-1))&&function(t){return!!t&&1==t.length&&/[\udc00-\udfff]/.test(t)}(t.charAt(e))}function Pl(t,e){return function(t){return!!t&&1==t.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(t)}(t.charAt(e))}const Al="$graveyard";class El{constructor(t){this.model=t,this.version=0,this.history=new Tl(this),this.selection=new aa(this),this.roots=new ii({idProperty:"rootName"}),this.differ=new _l(t.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",Al),this.listenTo(t,"applyOperation",(t,e)=>{const n=e[0];if(n.isDocumentOperation&&n.baseVersion!==this.version)throw new Yn.b("model-document-applyOperation-wrong-version: Only operations with matching versions can be applied.",this,{operation:n})},{priority:"highest"}),this.listenTo(t,"applyOperation",(t,e)=>{const n=e[0];n.isDocumentOperation&&this.differ.bufferOperation(n)},{priority:"high"}),this.listenTo(t,"applyOperation",(t,e)=>{const n=e[0];n.isDocumentOperation&&(this.version++,this.history.addOperation(n))},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(t.markers,"update",(t,e,n,r)=>{this.differ.bufferMarkerChange(e.name,n,r,e.affectsData),null===n&&e.on("change",(t,n)=>{this.differ.bufferMarkerChange(e.name,n,e.getRange(),e.affectsData)})})}get graveyard(){return this.getRoot(Al)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new Yn.b("model-document-createRoot-name-exists: Root with specified name already exists.",this,{name:e});const n=new gl(this,t,e);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(t="main"){return this.roots.get(t)}getRootNames(){return Array.from(this.roots,t=>t.rootName).filter(t=>t!=Al)}registerPostFixer(t){this._postFixers.add(t)}toJSON(){const t=dr(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}_handleChangeBlock(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const t of this.roots)if(t!==this.graveyard)return t;return this.graveyard}_getDefaultRange(){const t=this._getDefaultRoot(),e=this.model,n=e.schema,r=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(r)||e.createRange(r)}_validateSelectionRange(t){return Ml(t.start)&&Ml(t.end)}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(this.selection.refresh(),e=n(t))break}while(e)}}function Ml(t){const e=t.textNode;if(e){const n=e.data,r=t.offset-e.startOffset;return!Ol(n,r)&&!Pl(n,r)}return!0}lr(El,er);class Il{constructor(){this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(t){return this._markers.has(t)}get(t){return this._markers.get(t)||null}_set(t,e,n=!1,r=!1){const i=t instanceof Nl?t.name:t,o=this._markers.get(i);if(o){const t=o.getRange();let s=!1;return t.isEqual(e)||(o._attachLiveRange(oa.fromRange(e)),s=!0),n!=o.managedUsingOperations&&(o._managedUsingOperations=n,s=!0),"boolean"==typeof r&&r!=o.affectsData&&(o._affectsData=r,s=!0),s&&this.fire("update:"+i,o,t,e),o}const s=oa.fromRange(e),a=new Nl(i,s,n,r);return this._markers.set(i,a),this.fire("update:"+i,a,null,e),a}_remove(t){const e=t instanceof Nl?t.name:t,n=this._markers.get(e);return!!n&&(this._markers.delete(e),this.fire("update:"+e,n,n.getRange(),null),this._destroyMarker(n),!0)}_refresh(t){const e=t instanceof Nl?t.name:t,n=this._markers.get(e);if(!n)throw new Yn.b("markercollection-refresh-marker-not-exists: Marker with provided name does not exists.",this);const r=n.getRange();this.fire("update:"+e,n,r,r,n.managedUsingOperations,n.affectsData)}*getMarkersAtPosition(t){for(const e of this)e.getRange().containsPosition(t)&&(yield e)}*getMarkersIntersectingRange(t){for(const e of this)null!==e.getRange().getIntersection(t)&&(yield e)}destroy(){for(const t of this._markers.values())this._destroyMarker(t);this._markers=null,this.stopListening()}*getMarkersGroup(t){for(const e of this._markers.values())e.name.startsWith(t+":")&&(yield e)}_destroyMarker(t){t.stopListening(),t._detachLiveRange()}}lr(Il,er);class Nl{constructor(t,e,n,r){this.name=t,this._liveRange=this._attachLiveRange(e),this._managedUsingOperations=n,this._affectsData=r}get managedUsingOperations(){if(!this._liveRange)throw new Yn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new Yn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._affectsData}getStart(){if(!this._liveRange)throw new Yn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new Yn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new Yn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.toRange()}_attachLiveRange(t){return this._liveRange&&this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}lr(Nl,er);class jl extends Ys{constructor(t,e,n="toNone"){if(super(t,e,n),!this.root.is("rootElement"))throw new Yn.b("model-liveposition-root-not-rootelement: LivePosition's root has to be an instance of RootElement.",t);(function(){this.listenTo(this.root.document.model,"applyOperation",(t,e)=>{const n=e[0];n.isDocumentOperation&&function(t){const e=this.getTransformedByOperation(t);if(!this.isEqual(e)){const t=this.toPosition();this.path=e.path,this.root=e.root,this.fire("change",t)}}.call(this,n)},{priority:"low"})}).call(this)}detach(){this.stopListening()}toPosition(){return new Ys(this.root,this.path.slice(),this.stickiness)}static fromPosition(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}lr(jl,er);class Dl{constructor(t,e,n){this.model=t,this.writer=e,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}handleNodes(t,e){t=Array.from(t);for(let n=0;n<t.length;n++){const r=t[n];this._handleNode(r,{isFirst:0===n&&e.isFirst,isLast:n===t.length-1&&e.isLast})}this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}getSelectionRange(){return this.nodeToSelect?Ks._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Ks(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(t,e){this.schema.isObject(t)?this._handleObject(t,e):this._checkAndSplitToAllowedPosition(t,e)?(this._insert(t),this._mergeSiblingsOf(t,e)):this._handleDisallowedNode(t,e)}_handleObject(t,e){this._checkAndSplitToAllowedPosition(t)?this._insert(t):this._tryAutoparagraphing(t,e)}_handleDisallowedNode(t,e){t.is("element")?this.handleNodes(t.getChildren(),e):this._tryAutoparagraphing(t,e)}_insert(t){if(!this.schema.checkChild(this.position,t))return void vs.a.error("insertcontent-wrong-position: The node cannot be inserted on the given position.",{node:t,position:this.position});const e=jl.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this.writer.insert(t,this.position),this.position=e.toPosition(),e.detach(),this.schema.isObject(t)&&!this.schema.checkChild(this.position,"$text")?this.nodeToSelect=t:this.nodeToSelect=null,this._filterAttributesOf.push(t)}_setAffectedBoundaries(t){this._affectedStart||(this._affectedStart=jl.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=jl.fromPosition(t,"toNext"))}_mergeSiblingsOf(t,e){if(!(t instanceof Ws))return;const n=this._canMergeLeft(t,e),r=this._canMergeRight(t,e),i=jl._createBefore(t);i.stickiness="toNext";const o=jl._createAfter(t);if(o.stickiness="toNext",n){const t=jl.fromPosition(this.position);t.stickiness="toNext",this._affectedStart.isEqual(i)&&(this._affectedStart.detach(),this._affectedStart=jl._createAt(i.nodeBefore,"end","toPrevious")),this.writer.merge(i),i.isEqual(this._affectedEnd)&&e.isLast&&(this._affectedEnd.detach(),this._affectedEnd=jl._createAt(i.nodeBefore,"end","toNext")),this.position=t.toPosition(),t.detach()}if(r){this.position.isEqual(o)||vs.a.error("insertcontent-wrong-position-on-merge: The insertion position should equal the merge position"),this.position=Ys._createAt(o.nodeBefore,"end");const t=jl.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(o)&&(this._affectedEnd.detach(),this._affectedEnd=jl._createAt(o.nodeBefore,"end","toNext")),this.writer.merge(o),o.getShiftedBy(-1).isEqual(this._affectedStart)&&e.isFirst&&(this._affectedStart.detach(),this._affectedStart=jl._createAt(o.nodeBefore,0,"toPrevious")),this.position=t.toPosition(),t.detach()}(n||r)&&this._filterAttributesOf.push(this.position.parent),i.detach(),o.detach()}_canMergeLeft(t,e){const n=t.previousSibling;return e.isFirst&&n instanceof Ws&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(n,t)}_canMergeRight(t,e){const n=t.nextSibling;return e.isLast&&n instanceof Ws&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(t,n)}_tryAutoparagraphing(t,e){const n=this.writer.createElement("paragraph");this._getAllowedIn(n,this.position.parent)&&this.schema.checkChild(n,t)&&(n._appendChild(t),this._handleNode(n,e))}_checkAndSplitToAllowedPosition(t){const e=this._getAllowedIn(t,this.position.parent);if(!e)return!1;for(;e!=this.position.parent;){if(this.schema.isLimit(this.position.parent))return!1;if(this.position.isAtStart){const t=this.position.parent;this.position=this.writer.createPositionBefore(t),t.isEmpty&&t.parent===e&&this.writer.remove(t)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const t=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=t,this.canMergeWith.add(this.position.nodeAfter)}}return!0}_getAllowedIn(t,e){return this.schema.checkChild(e,t)?e:e.parent?this._getAllowedIn(t,e.parent):null}}function Ll(t,e,n={}){if(e.isCollapsed)return;const r=e.getFirstRange();if("$graveyard"==r.root.rootName)return;const i=t.schema;t.change(t=>{if(!n.doNotResetEntireContent&&function(t,e){const n=t.getLimitElement(e);if(!e.containsEntireContent(n))return!1;const r=e.getFirstRange();return r.start.parent!=r.end.parent&&t.checkChild(n,"paragraph")}(i,e))return void function(t,e){const n=t.model.schema.getLimitElement(e);t.remove(t.createRangeIn(n)),Bl(t,t.createPositionAt(n,0),e)}(t,e);const o=r.start,s=jl.fromPosition(r.end,"toNext");if(r.start.isTouching(r.end)||t.remove(r),n.leaveUnmerged||(function t(e,n,r){const i=n.parent,o=r.parent;if(i!=o&&!e.model.schema.isLimit(i)&&!e.model.schema.isLimit(o)&&function(t,e,n){const r=new Ks(t,e);for(const i of r.getWalker())if(n.isLimit(i.item))return!1;return!0}(n,r,e.model.schema)){for(n=e.createPositionAfter(i),r=e.createPositionBefore(o),r.isEqual(n)||e.insert(o,n),e.merge(n);r.parent.isEmpty;){const t=r.parent;r=e.createPositionBefore(t),e.remove(t)}t(e,n,r)}}(t,o,s),i.removeDisallowedAttributes(o.parent.getChildren(),t)),Rl(t,e,o),function(t,e){const n=t.checkChild(e,"$text"),r=t.checkChild(e,"paragraph");return!n&&r}(i,o)){const r=i.getNearestSelectionRange(o);n.doNotAutoparagraph&&r?Rl(t,e,r):Bl(t,o,e)}s.detach()})}function Bl(t,e,n){const r=t.createElement("paragraph");t.insert(r,e),Rl(t,n,t.createPositionAt(r,0))}function Rl(t,e,n){e instanceof aa?t.setSelection(n):e.setTo(n)}const Fl=' ,.?!:;"-()';function $l(t,e,n={}){const r=t.schema,i="backward"!=n.direction,o=n.unit?n.unit:"character",s=e.focus,a=new Us({boundaries:function(t,e){const n=t.root,r=Ys._createAt(n,e?"end":0);return e?new Ks(t,r):new Ks(r,t)}(s,i),singleCharacters:!0,direction:i?"forward":"backward"}),l={walker:a,schema:r,isForward:i,unit:o};let c;for(;c=a.next();){if(c.done)return;const n=Vl(l,c.value);if(n)return void(e instanceof aa?t.change(t=>{t.setSelectionFocus(n)}):e.setFocus(n))}}function Vl(t,e){if("text"==e.type)return"word"===t.unit?function(t,e){let n=t.position.textNode;if(n){let r=t.position.offset-n.startOffset;for(;!zl(n.data,r,e)&&!Hl(n,r,e);){t.next();const i=e?t.position.nodeAfter:t.position.nodeBefore;if(i&&i.is("text")){const r=i.data.charAt(e?0:i.data.length-1);Fl.includes(r)||(t.next(),n=t.position.textNode)}r=t.position.offset-n.startOffset}}return t.position}(t.walker,t.isForward):function(t,e){const n=t.position.textNode;if(n){const r=n.data;let i=t.position.offset-n.startOffset;for(;Ol(r,i)||"character"==e&&Pl(r,i);)t.next(),i=t.position.offset-n.startOffset}return t.position}(t.walker,t.unit,t.isForward);if(e.type==(t.isForward?"elementStart":"elementEnd")){if(t.schema.isObject(e.item))return Ys._createAt(e.item,t.isForward?"after":"before");if(t.schema.checkChild(e.nextPosition,"$text"))return e.nextPosition}else{if(t.schema.isLimit(e.item))return void t.walker.skip(()=>!0);if(t.schema.checkChild(e.nextPosition,"$text"))return e.nextPosition}}function zl(t,e,n){const r=e+(n?0:-1);return Fl.includes(t.charAt(r))}function Hl(t,e,n){return e===(n?t.endOffset:0)}function Wl(t,e){const n=[];Array.from(t.getItems({direction:"backward"})).map(t=>e.createRangeOn(t)).filter(e=>{return(e.start.isAfter(t.start)||e.start.isEqual(t.start))&&(e.end.isBefore(t.end)||e.end.isEqual(t.end))}).forEach(t=>{n.push(t.start.parent),e.remove(t)}),n.forEach(t=>{let n=t;for(;n.parent&&n.isEmpty;){const t=e.createRangeOn(n);n=n.parent,e.remove(t)}})}function Ul(t){t.document.registerPostFixer(e=>(function(t,e){const n=e.document.selection,r=e.schema,i=[];let o=!1;for(const s of n.getRanges()){const t=ql(s,r);t?(i.push(t),o=!0):i.push(s)}if(o){let e=i;if(i.length>1){const t=i[0].start,n=i[i.length-1].end;e=[new Ks(t,n)]}t.setSelection(e,{backward:n.isBackward})}})(e,t))}function ql(t,e){return t.isCollapsed?function(t,e){const n=t.start,r=e.getNearestSelectionRange(n);if(!r)return null;const i=r.start;return n.isEqual(i)?null:i.nodeAfter&&e.isLimit(i.nodeAfter)?new Ks(i,Ys._createAfter(i.nodeAfter)):new Ks(i)}(t,e):function(t,e){const n=t.start,r=t.end,i=e.checkChild(n,"$text"),o=e.checkChild(r,"$text"),s=e.getLimitElement(n),a=e.getLimitElement(r);if(s===a){if(i&&o)return null;if(function(t,e,n){const r=t.nodeAfter&&!n.isLimit(t.nodeAfter)||n.checkChild(t,"$text"),i=e.nodeBefore&&!n.isLimit(e.nodeBefore)||n.checkChild(e,"$text");return r||i}(n,r,e)){const t=n.nodeAfter&&e.isObject(n.nodeAfter),i=t?null:e.getNearestSelectionRange(n,"forward"),o=r.nodeBefore&&e.isObject(r.nodeBefore),s=o?null:e.getNearestSelectionRange(r,"backward"),a=i?i.start:n,l=s?s.start:r;return new Ks(a,l)}}const l=s&&!s.is("rootElement"),c=a&&!a.is("rootElement");if(l||c){const t=n.nodeAfter&&r.nodeBefore&&n.nodeAfter.parent===r.nodeBefore.parent,i=l&&(!t||!Yl(n.nodeAfter,e)),o=c&&(!t||!Yl(r.nodeBefore,e));let u=n,d=r;return i&&(u=Ys._createBefore(Gl(s,e))),o&&(d=Ys._createAfter(Gl(a,e))),new Ks(u,d)}return null}(t,e)}function Gl(t,e){let n=t,r=n;for(;e.isLimit(r)&&r.parent;)n=r,r=r.parent;return n}function Yl(t,e){return t&&e.isObject(t)}class Kl{constructor(){this.markers=new Il,this.document=new El(this),this.schema=new Ia,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(t=>this.decorate(t)),this.on("applyOperation",(t,e)=>{e[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",isLimit:!0}),this.schema.extend("$text",{allowIn:"$clipboardHolder"}),this.schema.register("$marker"),this.schema.addChildCheck((t,e)=>{if("$marker"===e.name)return!0}),Ul(this)}change(t){return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Ka,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}enqueueChange(t,e){"string"==typeof t?t=new Ka(t):"function"==typeof t&&(e=t,t=new Ka),this._pendingChanges.push({batch:t,callback:e}),1==this._pendingChanges.length&&this._runPendingChanges()}applyOperation(t){t._execute()}insertContent(t,e,n){return function(t,e,n,r){return t.change(i=>{let o;const s=(o=n?n instanceof ea||n instanceof aa?n:i.createSelection(n,r):t.document.selection).getFirstPosition();o.isCollapsed||t.deleteContent(o,{doNotAutoparagraph:!0});const a=new Dl(t,i,s);let l;l=e.is("documentFragment")?e.getChildren():[e],a.handleNodes(l,{isFirst:!0,isLast:!0});const c=a.getSelectionRange();c?o instanceof aa?i.setSelection(c):o.setTo(c):vs.a.warn("insertcontent-no-range: Cannot determine a proper selection range after insertion.");const u=a.getAffectedRange()||t.createRange(s);return a.destroy(),u})}(this,t,e,n)}deleteContent(t,e){Ll(this,t,e)}modifySelection(t,e){$l(this,t,e)}getSelectedContent(t){return function(t,e){return t.change(t=>{const n=t.createDocumentFragment(),r=e.getFirstRange();if(!r||r.isCollapsed)return n;const i=r.start.root,o=r.start.getCommonPath(r.end),s=i.getNodeByPath(o);let a;const l=(a=r.start.parent==r.end.parent?r:t.createRange(t.createPositionAt(s,r.start.path[o.length]),t.createPositionAt(s,r.end.path[o.length]+1))).end.offset-a.start.offset;for(const e of a.getItems({shallow:!0}))e.is("textProxy")?t.appendText(e.data,e.getAttributes(),n):t.append(e._clone(!0),n);if(a!=r){const e=r._getTransformedByMove(a.start,t.createPositionAt(n,0),l)[0],i=t.createRange(t.createPositionAt(n,0),e.start);Wl(t.createRange(e.end,t.createPositionAt(n,"end")),t),Wl(i,t)}return n})}(this,t)}hasContent(t,e){const n=t instanceof Ws?Ks._createIn(t):t;if(n.isCollapsed)return!1;for(const i of this.markers.getMarkersIntersectingRange(n))if(i.affectsData)return!0;const{ignoreWhitespaces:r=!1}=e||{};for(const i of n.getItems())if(i.is("textProxy")){if(!r)return!0;if(-1!==i.data.search(/\S/))return!0}else if(this.schema.isObject(i))return!0;return!1}createPositionFromPath(t,e,n){return new Ys(t,e,n)}createPositionAt(t,e){return Ys._createAt(t,e)}createPositionAfter(t){return Ys._createAfter(t)}createPositionBefore(t){return Ys._createBefore(t)}createRange(t,e){return new Ks(t,e)}createRangeIn(t){return Ks._createIn(t)}createRangeOn(t){return Ks._createOn(t)}createSelection(t,e,n){return new ea(t,e,n)}createBatch(t){return new Ka(t)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const t=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){const e=this._pendingChanges[0].batch;this._currentWriter=new ml(this,e);const n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),t}}lr(Kl,Vr);class Xl{constructor(){this._listener=Object.create(lo)}listenTo(t){this._listener.listenTo(t,"keydown",(t,e)=>{this._listener.fire("_keydown:"+vi(e),e)})}set(t,e,n={}){const r=bi(t),i=n.priority;this._listener.listenTo(this._listener,"_keydown:"+r,(t,n)=>{e(n,()=>{n.preventDefault(),n.stopPropagation(),t.stop()}),t.return=!0},{priority:i})}press(t){return!!this._listener.fire("_keydown:"+vi(t),t)}destroy(){this._listener.stopListening()}}class Jl extends Xl{constructor(t){super(),this.editor=t}set(t,e,n={}){if("string"==typeof e){const t=e;e=((e,n)=>{this.editor.execute(t),n()})}super.set(t,e,n)}}class Ql{constructor(t){const e=this.constructor.builtinPlugins;this.config=new qn(t,this.constructor.defaultConfig),this.config.define("plugins",e),this.plugins=new Ta(this,e),this.commands=new Oa,this.locale=new Aa(this.config.get("language")),this.t=this.locale.t,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.set("isReadOnly",!1),this.model=new Kl,this.data=new Ua(this.model),this.editing=new Sa(this.model),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new qa([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Jl(this),this.keystrokes.listenTo(this.editing.view.document)}initPlugins(){const t=this.config,e=t.get("plugins")||[],n=t.get("removePlugins")||[],r=t.get("extraPlugins")||[];return this.plugins.init(e.concat(r),n)}destroy(){let t=Promise.resolve();return"initializing"==this.state&&(t=new Promise(t=>this.once("ready",t))),t.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()})}execute(...t){this.commands.execute(...t)}}lr(Ql,Vr);var Zl={setData(t){this.data.set(t)},getData(t){return this.data.get(t)}},tc={updateSourceElement(){if(!this.sourceElement)throw new Yn.b("editor-missing-sourceelement: Cannot update the source element of a detached editor.",this);!function(t,e){t instanceof HTMLTextAreaElement&&(t.value=e),t.innerHTML=e}(this.sourceElement,this.data.get())}};class ec{getHtml(t){const e=document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}class nc{constructor(){this._domParser=new DOMParser,this._domConverter=new io({blockFiller:Li}),this._htmlWriter=new ec}toData(t){const e=this._domConverter.viewToDom(t,document);return this._htmlWriter.getHtml(e)}toView(t){const e=this._toDom(t);return this._domConverter.domToView(e)}_toDom(t){const e=this._domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),r=e.body.childNodes;for(;r.length>0;)n.appendChild(r[0]);return n}}class rc{constructor(t){this.editor=t,this._components=new Map}*names(){for(const t of this._components.values())yield t.originalName}add(t,e){if(this.has(t))throw new Yn.b("componentfactory-item-exists: The item already exists in the component factory.",this,{name:t});this._components.set(ic(t),{callback:e,originalName:t})}create(t){if(!this.has(t))throw new Yn.b("componentfactory-item-missing: The required component is not registered in the factory.",this,{name:t});return this._components.get(ic(t)).callback(this.editor.locale)}has(t){return this._components.has(ic(t))}}function ic(t){return String(t).toLowerCase()}class oc{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(t){if(this._elements.has(t))throw new Yn.b("focusTracker-add-element-already-exist",this);this.listenTo(t,"focus",()=>this._focus(t),{useCapture:!0}),this.listenTo(t,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(t)}remove(t){t===this.focusedElement&&this._blur(t),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}destroy(){this.stopListening()}_focus(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}lr(oc,lo),lr(oc,Vr);class sc{constructor(t){this.editor=t,this.componentFactory=new rc(t),this.focusTracker=new oc,this._editableElementsMap=new Map,this.listenTo(t.editing.view.document,"layoutChanged",()=>this.update())}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy();for(const t of this._editableElementsMap.values())t.ckeditorInstance=null;this._editableElementsMap=new Map}setEditableElement(t,e){this._editableElementsMap.set(t,e),e.ckeditorInstance=this.editor}getEditableElement(t="main"){return this._editableElementsMap.get(t)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){return vs.a.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}lr(sc,er),n(45);const ac=new WeakMap;function lc(t){const{view:e,element:n,text:r,isDirectHost:i=!0}=t,o=e.document;ac.has(o)||(ac.set(o,new Map),o.registerPostFixer(t=>uc(o,t))),ac.get(o).set(n,{text:r,isDirectHost:i}),e.change(t=>uc(o,t))}function cc(t,e){return!!e.hasClass("ck-placeholder")&&(t.removeClass("ck-placeholder",e),!0)}function uc(t,e){const n=ac.get(t);let r=!1;for(const[i,o]of n)dc(e,i,o)&&(r=!0);return r}function dc(t,e,n){const{text:r,isDirectHost:i}=n,o=i?e:function(t){if(1===t.childCount){const e=t.getChild(0);if(e.is("element")&&!e.is("uiElement"))return e}return null}(e);let s=!1;return!!o&&(n.hostElement=o,o.getAttribute("data-placeholder")!==r&&(t.setAttribute("data-placeholder",r,o),s=!0),function(t){const e=t.document;if(!e)return!1;const n=!Array.from(t.getChildren()).some(t=>!t.is("uiElement"));if(!e.isFocused&&n)return!0;const r=e.selection.anchor;return!(!n||!r||r.parent===t)}(o)?function(t,e){return!e.hasClass("ck-placeholder")&&(t.addClass("ck-placeholder",e),!0)}(t,o)&&(s=!0):cc(t,o)&&(s=!0),s)}class hc{constructor(){this._replacedElements=[]}replace(t,e){this._replacedElements.push({element:t,newElement:e}),t.style.display="none",e&&t.parentNode.insertBefore(e,t.nextSibling)}restore(){this._replacedElements.forEach(({element:t,newElement:e})=>{t.style.display="",e&&e.remove()}),this._replacedElements=[]}}class fc extends sc{constructor(t,e){super(t),this.view=e,this._toolbarConfig=function(t){return Array.isArray(t)?{items:t}:t?Object.assign({items:[]},t):{items:[]}}(t.config.get("toolbar")),this._elementReplacer=new hc}get element(){return this.view.element}init(t){const e=this.editor,n=this.view,r=e.editing.view,i=n.editable,o=r.document.getRoot();i.name=o.rootName,n.render();const s=i.element;this.setEditableElement(i.name,s),this.focusTracker.add(s),n.editable.bind("isFocused").to(this.focusTracker),r.attachDomRoot(s),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){const t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy(),super.destroy()}_initToolbar(){const t=this.editor,e=this.view,n=t.editing.view;e.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),e.stickyPanel.limiterElement=e.element,this._toolbarConfig.viewportTopOffset&&(e.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),e.toolbar.fillFromConfig(this._toolbarConfig.items,this.componentFactory),function({origin:t,originKeystrokeHandler:e,originFocusTracker:n,toolbar:r,beforeFocus:i,afterBlur:o}){n.add(r.element),e.set("Alt+F10",(t,e)=>{n.isFocused&&!r.focusTracker.isFocused&&(i&&i(),r.focus(),e())}),r.keystrokes.set("Esc",(e,n)=>{r.focusTracker.isFocused&&(t.focus(),o&&o(),n())})}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:t.keystrokes,toolbar:e.toolbar})}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),r=t.sourceElement,i=t.config.get("placeholder")||r&&"textarea"===r.tagName.toLowerCase()&&r.getAttribute("placeholder");i&&lc({view:e,element:n,text:i,isDirectHost:!1})}}class pc extends ii{constructor(t){super({idProperty:"viewUid"}),this.on("add",(t,e,n)=>{e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[n])}),this.on("remove",(t,e)=>{e.element&&this._parentElement&&e.element.remove()}),this.locale=t,this._parentElement=null}destroy(){this.map(t=>t.destroy())}setParent(t){this._parentElement=t}delegate(...t){if(!t.length||!function(t){return t.every(t=>"string"==typeof t)}(t))throw new Yn.b("ui-viewcollection-delegate-wrong-events: All event names must be strings.",this);return{to:e=>{for(const n of this)for(const r of t)n.delegate(r).to(e);this.on("add",(n,r)=>{for(const i of t)r.delegate(i).to(e)}),this.on("remove",(n,r)=>{for(const i of t)r.stopDelegating(i,e)})}}}}const gc="http://www.w3.org/1999/xhtml";class mc{constructor(t){Object.assign(this,Sc(Cc(t))),this._isRendered=!1,this._revertData=null}render(){const t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}apply(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,isApplying:!0,revertData:this._revertData}),t}revert(t){if(!this._revertData)throw new Yn.b("ui-template-revert-not-applied: Attempting to revert a template which has not been applied yet.",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){yield*function*t(e){if(e.children)for(const n of e.children)Ec(n)?yield n:Mc(n)&&(yield*t(n))}(this)}static bind(t,e){return{to:(n,r)=>new bc({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:r}),if:(n,r,i)=>new yc({observable:t,emitter:e,attribute:n,valueIfTrue:r,callback:i})}}static extend(t,e){t._isRendered&&vs.a.warn("template-extend-render: Attempting to extend a template which has already been rendered."),function t(e,n){if(n.attributes&&(e.attributes||(e.attributes={}),Pc(e.attributes,n.attributes)),n.eventListeners&&(e.eventListeners||(e.eventListeners={}),Pc(e.eventListeners,n.eventListeners)),n.text&&e.text.push(...n.text),n.children&&n.children.length){if(e.children.length!=n.children.length)throw new Yn.b("ui-template-extend-children-mismatch: The number of children in extended definition does not match.",e);let r=0;for(const i of n.children)t(e.children[r++],i)}}(t,Sc(Cc(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text)throw new Yn.b('ui-template-wrong-syntax: Node definition must have either "tag" or "text" when rendering a new Node.',this);return this.text?this._renderText(t):this._renderElement(t)}_renderElement(t){let e=t.node;return e||(e=t.node=document.createElementNS(this.ns||gc,this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}_renderText(t){let e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),wc(this.text)?this._bindToObservable({schema:this.text,updater:function(t){return{set(e){t.textContent=e},remove(){t.textContent=""}}}(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){let e,n,r,i;if(!this.attributes)return;const o=t.node,s=t.revertData;for(e in this.attributes)if(r=o.getAttribute(e),n=this.attributes[e],s&&(s.attributes[e]=r),i=$(n[0])&&n[0].ns?n[0].ns:null,wc(n)){const a=i?n[0].value:n;s&&Nc(e)&&a.unshift(r),this._bindToObservable({schema:a,updater:_c(o,e,i),data:t})}else"style"==e&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],t):(s&&r&&Nc(e)&&n.unshift(r),Ac(n=n.map(t=>t&&t.value||t).reduce((t,e)=>t.concat(e),[]).reduce(Oc,""))||o.setAttributeNS(i,e,n))}_renderStyleAttribute(t,e){const n=e.node;for(const r in t){const i=t[r];wc(i)?this._bindToObservable({schema:[i],updater:xc(n,r),data:e}):n.style[r]=i}}_renderElementChildren(t){const e=t.node,n=t.intoFragment?document.createDocumentFragment():e,r=t.isApplying;let i=0;for(const o of this.children)if(Ic(o)){if(!r){o.setParent(e);for(const t of o)n.appendChild(t.element)}}else if(Ec(o))r||(o.isRendered||o.render(),n.appendChild(o.element));else if(Ji(o))n.appendChild(o);else if(r){const e={children:[],bindings:[],attributes:{}};t.revertData.children.push(e),o._renderNode({node:n.childNodes[i++],isApplying:!0,revertData:e})}else n.appendChild(o.render());t.intoFragment&&e.appendChild(n)}_setUpListeners(t){if(this.eventListeners)for(const e in this.eventListeners){const n=this.eventListeners[e].map(n=>{const[r,i]=e.split("@");return n.activateDomEventListener(r,i,t)});t.revertData&&t.revertData.bindings.push(n)}}_bindToObservable({schema:t,updater:e,data:n}){const r=n.revertData;kc(t,e,n);const i=t.filter(t=>!Ac(t)).filter(t=>t.observable).map(r=>r.activateAttributeListener(t,e,n));r&&r.bindings.push(i)}_revertTemplateFromNode(t,e){for(const n of e.bindings)for(const t of n)t();if(e.text)t.textContent=e.text;else{for(const n in e.attributes){const r=e.attributes[n];null===r?t.removeAttribute(n):t.setAttribute(n,r)}for(let n=0;n<e.children.length;++n)this._revertTemplateFromNode(t.childNodes[n],e.children[n])}}}lr(mc,er);class vc{constructor(t){Object.assign(this,t)}getValue(t){const e=this.observable[this.attribute];return this.callback?this.callback(e,t):e}activateAttributeListener(t,e,n){const r=()=>kc(t,e,n);return this.emitter.listenTo(this.observable,"change:"+this.attribute,r),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,r)}}}class bc extends vc{activateDomEventListener(t,e,n){const r=(t,n)=>{e&&!n.target.matches(e)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(n):this.observable.fire(this.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,t,r),()=>{this.emitter.stopListening(n.node,t,r)}}}class yc extends vc{getValue(t){return!Ac(super.getValue(t))&&(this.valueIfTrue||!0)}}function wc(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some(wc):t instanceof vc)}function kc(t,e,{node:n}){let r=function(t,e){return t.map(t=>t instanceof vc?t.getValue(e):t)}(t,n);Ac(r=1==t.length&&t[0]instanceof yc?r[0]:r.reduce(Oc,""))?e.remove():e.set(r)}function _c(t,e,n){return{set(r){t.setAttributeNS(n,e,r)},remove(){t.removeAttributeNS(n,e)}}}function xc(t,e){return{set(n){t.style[e]=n},remove(){t.style[e]=null}}}function Cc(t){return Wn(t,t=>{if(t&&(t instanceof vc||Mc(t)||Ec(t)||Ic(t)))return t})}function Sc(t){if("string"==typeof t?t=function(t){return{text:[t]}}(t):t.text&&function(t){Array.isArray(t.text)||(t.text=[t.text])}(t),t.on&&(t.eventListeners=function(t){for(const e in t)Tc(t,e);return t}(t.on),delete t.on),!t.text){t.attributes&&function(t){for(const e in t)t[e].value&&(t[e].value=[].concat(t[e].value)),Tc(t,e)}(t.attributes);const e=[];if(t.children)if(Ic(t.children))e.push(t.children);else for(const n of t.children)Mc(n)||Ec(n)||Ji(n)?e.push(n):e.push(new mc(n));t.children=e}return t}function Tc(t,e){Array.isArray(t[e])||(t[e]=[t[e]])}function Oc(t,e){return Ac(e)?t:Ac(t)?e:`${t} ${e}`}function Pc(t,e){for(const n in e)t[n]?t[n].push(...e[n]):t[n]=e[n]}function Ac(t){return!t&&0!==t}function Ec(t){return t instanceof jc}function Mc(t){return t instanceof mc}function Ic(t){return t instanceof pc}function Nc(t){return"class"==t||"style"==t}n(48);class jc{constructor(t){this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new ii,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(e,n)=>{n.locale=t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=mc.bind(this,this)}createCollection(){const t=new pc;return this._viewCollections.add(t),t}registerChild(t){mr(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){mr(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new mc(t)}extendTemplate(t){mc.extend(this.template,t)}render(){if(this.isRendered)throw new Yn.b("ui-view-render-already-rendered: This View has already been rendered.",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(t=>t.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}lr(jc,lo),lr(jc,Vr),n(50);class Dc extends jc{constructor(t){super(t),this.body=this.createCollection()}render(){super.render(),this._renderBodyCollection()}destroy(){return this._bodyCollectionContainer.remove(),super.destroy()}_renderBodyCollection(){const t=this._bodyCollectionContainer=new mc({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"]},children:this.body}).render();document.body.appendChild(t)}}n(52);class Lc extends jc{constructor(t){super(t),this.set("text"),this.set("for");const e=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],for:e.to("for")},children:[{text:e.to("text")}]})}}class Bc extends Dc{constructor(t){super(t);const e=Jn();this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:"ltr",lang:t.language,"aria-labelledby":`ck-editor__aria-label_${e}`},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(t){const e=this.t,n=new Lc;return n.text=e("bi"),n.extendTemplate({attributes:{id:`ck-editor__aria-label_${t}`,class:"ck-voice-label"}}),n}}class Rc extends jc{constructor(t,e,n){super(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"]}}),this.name=null,this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=e}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const t=this._editingView;function e(e){t.change(n=>{const r=t.document.getRoot(e.name);n.addClass(e.isFocused?"ck-focused":"ck-blurred",r),n.removeClass(e.isFocused?"ck-blurred":"ck-focused",r)})}t.isRenderingInProgress?function n(r){t.once("change:isRenderingInProgress",(t,i,o)=>{o?n(r):e(r)})}(this):e(this)}}class Fc extends Rc{constructor(t,e,n){super(t,e,n),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const t=this._editingView,e=this.t;t.change(n=>{const r=t.document.getRoot(this.name);n.setAttribute("aria-label",e("bu",[this.name]),r)})}}function $c(t){return e=>e+t}n(54);const Vc=$c("px");class zc extends jc{constructor(t){super(t);const e=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new mc({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:e.to("isSticky",t=>t?"block":"none"),height:e.to("isSticky",t=>t?Vc(this._panelRect.height):null)}}}).render(),this._contentPanel=new mc({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",e.if("isSticky","ck-sticky-panel__content_sticky"),e.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:e.to("isSticky",t=>t?Vc(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:e.to("_hasViewportTopOffset",t=>t?Vc(this.viewportTopOffset):null),bottom:e.to("_isStickyToTheLimiter",t=>t?Vc(this.limiterBottomOffset):null),marginLeft:e.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(eo.window,"scroll",()=>{this._checkIfShouldBeSticky()}),this.listenTo(this,"change:isActive",()=>{this._checkIfShouldBeSticky()})}_checkIfShouldBeSticky(){const t=this._panelRect=this._contentPanel.getBoundingClientRect();let e;this.limiterElement?(e=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&e.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<e.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=e.bottom<t.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:Vc(-eo.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}class Hc{constructor(t){if(Object.assign(this,t),t.actions&&t.keystrokeHandler)for(const e in t.actions){let n=t.actions[e];"string"==typeof n&&(n=[n]);for(const r of n)t.keystrokeHandler.set(r,(t,n)=>{this[e](),n()})}}get first(){return this.focusables.find(Wc)||null}get last(){return this.focusables.filter(Wc).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((e,n)=>{const r=e.element===this.focusTracker.focusedElement;return r&&(t=n),r}),t)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(t){t&&t.focus()}_getFocusableItem(t){const e=this.current,n=this.focusables.length;if(!n)return null;if(null===e)return this[1===t?"first":"last"];let r=(e+n+t)%n;do{const e=this.focusables.get(r);if(Wc(e))return e;r=(r+n+t)%n}while(r!==e);return null}}function Wc(t){return!(!t.focus||"none"==eo.window.getComputedStyle(t.element).display)}class Uc extends jc{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}n(56);class qc extends jc{constructor(t){super(t);const e=this.bindTemplate;this.items=this.createCollection(),this.focusTracker=new oc,this.keystrokes=new Xl,this.set("isVertical",!1),this.set("class"),this._focusCycler=new Hc({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["arrowleft","arrowup"],focusNext:["arrowright","arrowdown"]}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar",e.if("isVertical","ck-toolbar_vertical"),e.to("class")]},children:this.items,on:{mousedown:function(t){return t.bindTemplate.to(e=>{e.target===t.element&&e.preventDefault()})}(this)}})}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",(t,e)=>{this.focusTracker.add(e.element)}),this.items.on("remove",(t,e)=>{this.focusTracker.remove(e.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(t,e){t.map(t=>{"|"==t?this.items.add(new Uc):e.has(t)?this.items.add(e.create(t)):vs.a.warn("toolbarview-item-unavailable: The requested toolbar item is unavailable.",{name:t})})}}n(58);class Gc extends Bc{constructor(t,e){super(t),this.stickyPanel=new zc(t),this.toolbar=new qc(t),this.editable=new Fc(t,e)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Yc extends Ql{constructor(t,e){super(e),Un(t)&&(this.sourceElement=t),this.data.processor=new nc,this.model.document.createRoot(),this.ui=new fc(this,new Gc(this.locale,this.editing.view)),function(t){if(!U(t.updateSourceElement))throw new Yn.b("attachtoform-missing-elementapi-interface: Editor passed to attachToForm() must implement ElementApi.",t);const e=t.sourceElement;if(e&&"textarea"===e.tagName.toLowerCase()&&e.form){let n;const r=e.form,i=()=>t.updateSourceElement();U(r.submit)&&(n=r.submit,r.submit=(()=>{i(),n.apply(r)})),r.addEventListener("submit",i),t.on("destroy",()=>{r.removeEventListener("submit",i),n&&(r.submit=n)})}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(t,e={}){return new Promise(n=>{const r=new this(t,e);n(r.initPlugins().then(()=>r.ui.init(Un(t)?t:null)).then(()=>{if(!Un(t)&&e.initialData)throw new Yn.b("editor-create-initial-data: The config.initialData option cannot be used together with initial data passed in Editor.create().",null);const n=e.initialData||function(t){return Un(t)?function(t){return t instanceof HTMLTextAreaElement?t.value:t.innerHTML}(t):t}(t);return r.data.init(n)}).then(()=>r.fire("ready")).then(()=>r))})}}lr(Yc,Zl),lr(Yc,tc);class Kc{constructor(t){this.editor=t}destroy(){this.stopListening()}}lr(Kc,Vr);class Xc{constructor(t){this.files=function(t){const e=t.files?Array.from(t.files):[],n=t.items?Array.from(t.items):[];return e.length?e:n.filter(t=>"file"===t.kind).map(t=>t.getAsFile())}(t),this._native=t}get types(){return this._native.types}getData(t){return this._native.getData(t)}setData(t,e){this._native.setData(t,e)}}class Jc extends ts{constructor(t){super(t);const e=this.document;function n(t,n){n.preventDefault();const r=n.dropRange?[n.dropRange]:Array.from(e.selection.getRanges()),i=new Xn(e,"clipboardInput");e.fire(i,{dataTransfer:n.dataTransfer,targetRanges:r}),i.stop.called&&n.stopPropagation()}this.domEventType=["paste","copy","cut","drop","dragover"],this.listenTo(e,"paste",n,{priority:"low"}),this.listenTo(e,"drop",n,{priority:"low"})}onDomEvent(t){const e={dataTransfer:new Xc(t.clipboardData?t.clipboardData:t.dataTransfer)};"drop"==t.type&&(e.dropRange=function(t,e){const n=e.target.ownerDocument,r=e.clientX,i=e.clientY;let o;return n.caretRangeFromPoint&&n.caretRangeFromPoint(r,i)?o=n.caretRangeFromPoint(r,i):e.rangeParent&&((o=n.createRange()).setStart(e.rangeParent,e.rangeOffset),o.collapse(!0)),o?t.domConverter.domRangeToView(o):t.document.selection.getFirstRange()}(this.view,t)),this.fire(t.type,t,e)}}const Qc=["figcaption","li"];class Zc extends Kc{static get pluginName(){return"Clipboard"}init(){const t=this.editor,e=t.model.document,n=t.editing.view,r=n.document;function i(n,i){const o=i.dataTransfer;i.preventDefault();const s=t.data.toView(t.model.getSelectedContent(e.selection));r.fire("clipboardOutput",{dataTransfer:o,content:s,method:n.name})}this._htmlDataProcessor=new nc,n.addObserver(Jc),this.listenTo(r,"clipboardInput",e=>{t.isReadOnly&&e.stop()},{priority:"highest"}),this.listenTo(r,"clipboardInput",(t,e)=>{const r=e.dataTransfer;let i="";r.getData("text/html")?i=function(t){return t.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(t,e)=>1==e.length?" ":e)}(r.getData("text/html")):r.getData("text/plain")&&(i=function(t){return(t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"</p><p>").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).indexOf("</p><p>")>-1&&(t=`<p>${t}</p>`),t}(r.getData("text/plain"))),i=this._htmlDataProcessor.toView(i),this.fire("inputTransformation",{content:i,dataTransfer:r}),n.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(t,e)=>{if(!e.content.isEmpty){const t=this.editor.data,n=this.editor.model,r=t.toModel(e.content,"$clipboardHolder");if(0==r.childCount)return;n.insertContent(r)}},{priority:"low"}),this.listenTo(r,"copy",i,{priority:"low"}),this.listenTo(r,"cut",(e,n)=>{t.isReadOnly?n.preventDefault():i(e,n)},{priority:"low"}),this.listenTo(r,"clipboardOutput",(n,r)=>{r.content.isEmpty||(r.dataTransfer.setData("text/html",this._htmlDataProcessor.toData(r.content)),r.dataTransfer.setData("text/plain",function t(e){let n="";if(e.is("text")||e.is("textProxy"))n=e.data;else if(e.is("img")&&e.hasAttribute("alt"))n=e.getAttribute("alt");else{let r=null;for(const i of e.getChildren()){const e=t(i);r&&(r.is("containerElement")||i.is("containerElement"))&&(Qc.includes(r.name)||Qc.includes(i.name)?n+="\n":n+="\n\n"),n+=e,r=i}}return n}(r.content))),"cut"==r.method&&t.model.deleteContent(e.selection)},{priority:"low"})}}class tu{constructor(t){this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.on("execute",t=>{this.isEnabled||t.stop()},{priority:"high"}),this.listenTo(t,"change:isReadOnly",(t,e,n)=>{n?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})}refresh(){this.isEnabled=!0}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",eu,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",eu),this.refresh())}execute(){}destroy(){this.stopListening()}}function eu(t){t.return=!1,t.stop()}lr(tu,Vr);class nu extends tu{execute(){const t=this.editor.model,e=t.document;t.change(n=>{!function(t,e,n,r){const i=n.isCollapsed,o=n.getFirstRange(),s=o.start.parent,a=o.end.parent;if(r.isLimit(s)||r.isLimit(a))i||s!=a||t.deleteContent(n);else if(i)ru(e,o.start);else{const r=!(o.start.isAtStart&&o.end.isAtEnd),i=s==a;t.deleteContent(n,{leaveUnmerged:r}),r&&(i?ru(e,n.focus):e.setSelection(a,0))}}(this.editor.model,n,e.selection,t.schema),this.fire("afterExecute",{writer:n})})}}function ru(t,e){t.split(e),t.setSelection(e.parent.nextSibling,0)}class iu extends ho{constructor(t){super(t);const e=this.document;e.on("keydown",(t,n)=>{if(this.isEnabled&&n.keyCode==mi.enter){let r;e.once("enter",t=>r=t,{priority:"highest"}),e.fire("enter",new Zo(e,n.domEvent,{isSoft:n.shiftKey})),r&&r.stop.called&&t.stop()}})}observe(){}}class ou extends Kc{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document;e.addObserver(iu),t.commands.add("enter",new nu(t)),this.listenTo(n,"enter",(n,r)=>{r.preventDefault(),r.isSoft||(t.execute("enter"),e.scrollToTheSelection())},{priority:"low"})}}class su extends tu{execute(){const t=this.editor.model,e=t.document;t.change(n=>{!function(t,e,n){const r=n.isCollapsed,i=n.getFirstRange(),o=i.start.parent,s=i.end.parent,a=o==s;if(r)au(e,i.end);else{const r=!(i.start.isAtStart&&i.end.isAtEnd);t.deleteContent(n,{leaveUnmerged:r}),a?au(e,n.focus):r&&e.setSelection(s,0)}}(t,n,e.selection),this.fire("afterExecute",{writer:n})})}refresh(){const t=this.editor.model,e=t.document;this.isEnabled=function(t,e){if(e.rangeCount>1)return!1;const n=e.anchor;if(!n||!t.checkChild(n,"softBreak"))return!1;const r=e.getFirstRange(),i=r.start.parent,o=r.end.parent;return!lu(i,t)&&!lu(o,t)||i===o}(t.schema,e.selection)}}function au(t,e){const n=t.createElement("softBreak");t.insert(n,e),t.setSelection(n,"after")}function lu(t,e){return!t.is("rootElement")&&(e.isLimit(t)||lu(t.parent,e))}class cu extends Kc{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,e=t.model.schema,n=t.conversion,r=t.editing.view,i=r.document;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(t,e)=>e.createEmptyElement("br")}),r.addObserver(iu),t.commands.add("shiftEnter",new su(t)),this.listenTo(i,"enter",(e,n)=>{n.preventDefault(),n.isSoft&&(t.execute("shiftEnter"),r.scrollToTheSelection())},{priority:"low"})}}class uu{constructor(t,e=20){this.model=t,this.size=0,this.limit=e,this.isLocked=!1,this._changeCallback=((t,e)=>{"transparent"!=e.type&&e!==this._batch&&this._reset(!0)}),this._selectionChangeCallback=(()=>{this._reset()}),this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch()),this._batch}input(t){this.size+=t,this.size>=this.limit&&this._reset(!0)}lock(){this.isLocked=!0}unlock(){this.isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(t){this.isLocked&&!t||(this._batch=null,this.size=0)}}class du extends tu{constructor(t,e){super(t),this._buffer=new uu(t.model,e)}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(t={}){const e=this.editor.model,n=e.document,r=t.text||"",i=r.length,o=t.range||n.selection.getFirstRange(),s=t.resultRange;e.enqueueChange(this._buffer.batch,t=>{const a=o.isCollapsed;this._buffer.lock(),e.deleteContent(e.createSelection(o)),r&&e.insertContent(t.createText(r,n.selection.getAttributes()),o.start),s?t.setSelection(s):a&&t.setSelection(o.start.getShiftedBy(i)),this._buffer.unlock(),this._buffer.input(i)})}}function hu(t){let e=null;const n=t.model,r=t.editing.view,i=t.commands.get("input");function o(t){const o=n.document,a=r.document.isComposing,l=e&&e.isEqual(o.selection);e=null,i.isEnabled&&(function(t){return!!t.ctrlKey||fu.includes(t.keyCode)}(t)||o.selection.isCollapsed||a&&229===t.keyCode||!a&&229===t.keyCode&&l||s())}function s(){const t=i.buffer;t.lock(),n.enqueueChange(t.batch,()=>{n.deleteContent(n.document.selection)}),t.unlock()}fi.isAndroid?r.document.on("beforeinput",(t,e)=>o(e),{priority:"lowest"}):r.document.on("keydown",(t,e)=>o(e),{priority:"lowest"}),r.document.on("compositionstart",function(){const t=n.document,e=1!==t.selection.rangeCount||t.selection.getFirstRange().isFlat;t.selection.isCollapsed||e||s()},{priority:"lowest"}),r.document.on("compositionend",()=>{e=n.createSelection(n.document.selection)},{priority:"lowest"})}const fu=[vi("arrowUp"),vi("arrowRight"),vi("arrowDown"),vi("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255];for(let Av=112;Av<=135;Av++)fu.push(Av);function pu(t){if(t.newChildren.length-t.oldChildren.length!=1)return;const e=function(t,e){const n=[];let r,i=0;return t.forEach(t=>{"equal"==t?(o(),i++):"insert"==t?(s("insert")?r.values.push(e[i]):(o(),r={type:"insert",index:i,values:[e[i]]}),i++):s("delete")?r.howMany++:(o(),r={type:"delete",index:i,howMany:1})}),o(),n;function o(){r&&(n.push(r),r=null)}function s(t){return r&&r.type==t}}(Yi(t.oldChildren,t.newChildren,gu),t.newChildren);if(e.length>1)return;const n=e[0];return n.values[0]&&n.values[0].is("text")?n:void 0}function gu(t,e){return t&&t.is("text")&&e&&e.is("text")?t.data===e.data:t===e}class mu{constructor(t){this.editor=t,this.editing=this.editor.editing}handle(t,e){if(function(t){if(0==t.length)return!1;for(const e of t)if("children"===e.type&&!pu(e))return!0;return!1}(t))this._handleContainerChildrenMutations(t,e);else for(const n of t)this._handleTextMutation(n,e),this._handleTextNodeInsertion(n)}_handleContainerChildrenMutations(t,e){const n=function(t){const e=t.map(t=>t.node).reduce((t,e)=>t.getCommonAncestor(e,{includeSelf:!0}));if(e)return e.getAncestors({includeSelf:!0,parentFirst:!0}).find(t=>t.is("containerElement")||t.is("rootElement"))}(t);if(!n)return;const r=this.editor.editing.view.domConverter.mapViewToDom(n),i=new io,o=this.editor.data.toModel(i.domToView(r)).getChild(0),s=this.editor.editing.mapper.toModelElement(n);if(!s)return;const a=Array.from(o.getChildren()),l=Array.from(s.getChildren()),c=a[a.length-1],u=l[l.length-1];c&&c.is("softBreak")&&u&&!u.is("softBreak")&&a.pop();const d=this.editor.model.schema;if(!vu(a,d)||!vu(l,d))return;const h=a.map(t=>t.is("text")?t.data:"@").join("").replace(/\u00A0/g," "),f=l.map(t=>t.is("text")?t.data:"@").join("").replace(/\u00A0/g," ");if(f===h)return;const p=Yi(f,h),{firstChangeAt:g,insertions:m,deletions:v}=bu(p);let b=null;e&&(b=this.editing.mapper.toModelRange(e.getFirstRange()));const y=h.substr(g,m),w=this.editor.model.createRange(this.editor.model.createPositionAt(s,g),this.editor.model.createPositionAt(s,g+v));this.editor.execute("input",{text:y,range:w,resultRange:b})}_handleTextMutation(t,e){if("text"!=t.type)return;const n=t.newText.replace(/\u00A0/g," "),r=t.oldText.replace(/\u00A0/g," ");if(r===n)return;const i=Yi(r,n),{firstChangeAt:o,insertions:s,deletions:a}=bu(i);let l=null;e&&(l=this.editing.mapper.toModelRange(e.getFirstRange()));const c=this.editing.view.createPositionAt(t.node,o),u=this.editing.mapper.toModelPosition(c),d=this.editor.model.createRange(u,u.getShiftedBy(a)),h=n.substr(o,s);this.editor.execute("input",{text:h,range:d,resultRange:l})}_handleTextNodeInsertion(t){if("children"!=t.type)return;const e=pu(t),n=this.editing.view.createPositionAt(t.node,e.index),r=this.editing.mapper.toModelPosition(n),i=e.values[0].data;this.editor.execute("input",{text:i.replace(/\u00A0/g," "),range:this.editor.model.createRange(r)})}}function vu(t,e){return t.every(t=>e.isInline(t))}function bu(t){let e=null,n=null;for(let o=0;o<t.length;o++)"equal"!=t[o]&&(e=null===e?o:e,n=o);let r=0,i=0;for(let o=e;o<=n;o++)"insert"!=t[o]&&r++,"delete"!=t[o]&&i++;return{insertions:i,deletions:r,firstChangeAt:e}}class yu extends Kc{static get pluginName(){return"Input"}init(){const t=this.editor,e=new du(t,t.config.get("typing.undoStep")||20);t.commands.add("input",e),hu(t),function(t){t.editing.view.document.on("mutations",(e,n,r)=>{new mu(t).handle(n,r)})}(t)}}class wu extends tu{constructor(t,e){super(t),this.direction=e,this._buffer=new uu(t.model,t.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(t={}){const e=this.editor.model,n=e.document;e.enqueueChange(this._buffer.batch,r=>{this._buffer.lock();const i=r.createSelection(t.selection||n.selection),o=i.isCollapsed;if(i.isCollapsed&&e.modifySelection(i,{direction:this.direction,unit:t.unit}),this._shouldEntireContentBeReplacedWithParagraph(t.sequence||1))return void this._replaceEntireContentWithParagraph(r);if(i.isCollapsed)return;let s=0;i.getFirstRange().getMinimalFlatRanges().forEach(t=>{s+=ei(t.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),e.deleteContent(i,{doNotResetEntireContent:o}),this._buffer.input(s),r.setSelection(i),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;const e=this.editor.model,n=e.document.selection,r=e.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(r))return!1;if(!e.schema.checkChild(r,"paragraph"))return!1;const i=r.getChild(0);return!i||"paragraph"!==i.name}_replaceEntireContentWithParagraph(t){const e=this.editor.model,n=e.document.selection,r=e.schema.getLimitElement(n),i=t.createElement("paragraph");t.remove(t.createRangeIn(r)),t.insert(i,r),t.setSelection(i,0)}}class ku extends ho{constructor(t){super(t);const e=t.document;let n=0;function r(t,n,r){let i;e.once("delete",t=>i=t,{priority:Number.POSITIVE_INFINITY}),e.fire("delete",new Zo(e,n,r)),i&&i.stop.called&&t.stop()}e.on("keyup",(t,e)=>{e.keyCode!=mi.delete&&e.keyCode!=mi.backspace||(n=0)}),e.on("keydown",(t,e)=>{const i={};if(e.keyCode==mi.delete)i.direction="forward",i.unit="character";else{if(e.keyCode!=mi.backspace)return;i.direction="backward",i.unit="codePoint"}const o=fi.isMac?e.altKey:e.ctrlKey;i.unit=o?"word":i.unit,i.sequence=++n,r(t,e.domEvent,i)}),fi.isAndroid&&e.on("beforeinput",(e,n)=>{if("deleteContentBackward"!=n.domEvent.inputType)return;const i={unit:"codepoint",direction:"backward",sequence:1},o=n.domTarget.ownerDocument.defaultView.getSelection();o.anchorNode==o.focusNode&&o.anchorOffset+1!=o.focusOffset&&(i.selectionToRemove=t.domConverter.domSelectionToView(o)),r(e,n.domEvent,i)})}observe(){}}class _u extends Kc{static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document;if(e.addObserver(ku),t.commands.add("forwardDelete",new wu(t,"forward")),t.commands.add("delete",new wu(t,"backward")),this.listenTo(n,"delete",(n,r)=>{const i={unit:r.unit,sequence:r.sequence};if(r.selectionToRemove){const e=t.model.createSelection(),n=[];for(const i of r.selectionToRemove.getRanges())n.push(t.editing.mapper.toModelRange(i));e.setTo(n),i.selection=e}t.execute("forward"==r.direction?"forwardDelete":"delete",i),r.preventDefault(),e.scrollToTheSelection()}),fi.isAndroid){let t=null;this.listenTo(n,"delete",(e,n)=>{const r=n.domTarget.ownerDocument.defaultView.getSelection();t={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}},{priority:"lowest"}),this.listenTo(n,"keyup",(e,n)=>{const r=n.domTarget.ownerDocument.defaultView.getSelection();r.collapse(t.anchorNode,t.anchorOffset),r.extend(t.focusNode,t.focusOffset),t=null})}}}class xu extends Kc{static get requires(){return[yu,_u]}static get pluginName(){return"Typing"}}class Cu extends Xa{get type(){return"noop"}clone(){return new Cu(this.baseVersion)}getReversed(){return new Cu(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}const Su=new Map;function Tu(t,e,n){let r=Su.get(t);r||(r=new Map,Su.set(t,r)),r.set(e,n)}function Ou(t){return[t]}function Pu(t,e,n={}){const r=function(t,e){const n=Su.get(t);return n&&n.has(e)?n.get(e):Ou}(t.constructor,e.constructor);try{return r(t=t.clone(),e,n)}catch(r){throw vs.a.error("Error during operation transformation!",r.message),vs.a.error("Transformed operation",t),vs.a.error("Operation transformed by",e),vs.a.error("context.aIsStrong",n.aIsStrong),vs.a.error("context.aWasUndone",n.aWasUndone),vs.a.error("context.bWasUndone",n.bWasUndone),vs.a.error("context.abRelation",n.abRelation),vs.a.error("context.baRelation",n.baRelation),r}}function Au(t,e,n){if(t=t.slice(),e=e.slice(),0==t.length||0==e.length)return{operationsA:t,operationsB:e};const r=new WeakMap;for(const a of t)r.set(a,0);const i={nextBaseVersionA:t[t.length-1].baseVersion+1,nextBaseVersionB:e[e.length-1].baseVersion+1,originalOperationsACount:t.length,originalOperationsBCount:e.length},o=new Eu(n.document,n.useRelations,n.forceWeakRemove);o.setOriginalOperations(t),o.setOriginalOperations(e);let s=0;for(;s<t.length;){const n=t[s],i=r.get(n);if(i==e.length){s++;continue}const a=e[i],l=Pu(n,a,o.getContext(n,a,!0)),c=Pu(a,n,o.getContext(a,n,!1));o.updateRelation(n,a),o.setOriginalOperations(l,n),o.setOriginalOperations(c,a);for(const t of l)r.set(t,i+c.length);t.splice(s,1,...l),e.splice(i,1,...c)}if(n.padWithNoOps){const n=t.length-i.originalOperationsACount,r=e.length-i.originalOperationsBCount;Iu(t,r-n),Iu(e,n-r)}return Mu(t,i.nextBaseVersionB),Mu(e,i.nextBaseVersionA),{operationsA:t,operationsB:e}}class Eu{constructor(t,e,n=!1){this._history=t.history,this._useRelations=e,this._forceWeakRemove=!!n,this._originalOperations=new Map,this._relations=new Map}setOriginalOperations(t,e=null){const n=e?this._originalOperations.get(e):null;for(const r of t)this._originalOperations.set(r,n||r)}updateRelation(t,e){switch(t.constructor){case ll:switch(e.constructor){case fl:t.targetPosition.isEqual(e.sourcePosition)||e.movedRange.containsPosition(t.targetPosition)?this._setRelation(t,e,"insertAtSource"):t.targetPosition.isEqual(e.deletionPosition)?this._setRelation(t,e,"insertBetween"):t.targetPosition.isAfter(e.sourcePosition)&&this._setRelation(t,e,"moveTargetAfter");break;case ll:t.targetPosition.isEqual(e.sourcePosition)||t.targetPosition.isBefore(e.sourcePosition)?this._setRelation(t,e,"insertBefore"):this._setRelation(t,e,"insertAfter")}break;case pl:switch(e.constructor){case fl:t.splitPosition.isBefore(e.sourcePosition)&&this._setRelation(t,e,"splitBefore");break;case ll:(t.splitPosition.isEqual(e.sourcePosition)||t.splitPosition.isBefore(e.sourcePosition))&&this._setRelation(t,e,"splitBefore")}break;case fl:switch(e.constructor){case fl:t.targetPosition.isEqual(e.sourcePosition)||this._setRelation(t,e,"mergeTargetNotMoved"),t.sourcePosition.isEqual(e.targetPosition)&&this._setRelation(t,e,"mergeSourceNotMoved"),t.sourcePosition.isEqual(e.sourcePosition)&&this._setRelation(t,e,"mergeSameElement");break;case pl:t.sourcePosition.isEqual(e.splitPosition)&&this._setRelation(t,e,"splitAtSource")}break;case ul:{const n=t.newRange;if(!n)return;switch(e.constructor){case ll:{const r=Ks._createFromPositionAndShift(e.sourcePosition,e.howMany),i=r.containsPosition(n.start)||r.start.isEqual(n.start),o=r.containsPosition(n.end)||r.end.isEqual(n.end);!i&&!o||r.containsRange(n)||this._setRelation(t,e,{side:i?"left":"right",path:i?n.start.path.slice():n.end.path.slice()});break}case fl:{const r=n.start.isEqual(e.targetPosition),i=n.start.isEqual(e.deletionPosition),o=n.end.isEqual(e.deletionPosition),s=n.end.isEqual(e.sourcePosition);(r||i||o||s)&&this._setRelation(t,e,{wasInLeftElement:r,wasStartBeforeMergedElement:i,wasEndBeforeMergedElement:o,wasInRightElement:s});break}}break}}}getContext(t,e,n){return{aIsStrong:n,aWasUndone:this._wasUndone(t),bWasUndone:this._wasUndone(e),abRelation:this._useRelations?this._getRelation(t,e):null,baRelation:this._useRelations?this._getRelation(e,t):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(t){const e=this._originalOperations.get(t);return e.wasUndone||this._history.isUndoneOperation(e)}_getRelation(t,e){const n=this._originalOperations.get(e),r=this._history.getUndoneOperation(n);if(!r)return null;const i=this._originalOperations.get(t),o=this._relations.get(i);return o&&o.get(r)||null}_setRelation(t,e,n){const r=this._originalOperations.get(t),i=this._originalOperations.get(e);let o=this._relations.get(r);o||(o=new Map,this._relations.set(r,o)),o.set(i,n)}}function Mu(t,e){for(const n of t)n.baseVersion=e++}function Iu(t,e){for(let n=0;n<e;n++)t.push(new Cu(0))}function Nu(t,e,n){const r=t.nodes.getNode(0).getAttribute(e);if(r==n)return null;const i=new Ks(t.position,t.position.getShiftedBy(t.howMany));return new sl(i,e,r,n,0)}function ju(t,e){return null===t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany)}function Du(t,e){const n=[];for(let r=0;r<t.length;r++){const i=t[r],o=new ll(i.start,i.end.offset-i.start.offset,e,0);n.push(o);for(let e=r+1;e<t.length;e++)t[e]=t[e]._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)[0];e=e._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)}return n}Tu(sl,sl,(t,e,n)=>{if(t.key===e.key){const r=t.range.getDifference(e.range).map(e=>new sl(e,t.key,t.oldValue,t.newValue,0)),i=t.range.getIntersection(e.range);return i&&n.aIsStrong&&r.push(new sl(i,e.key,e.newValue,t.newValue,0)),0==r.length?[new Cu(0)]:r}return[t]}),Tu(sl,cl,(t,e)=>{if(t.range.start.hasSameParentAs(e.position)&&t.range.containsPosition(e.position)){const n=t.range._getTransformedByInsertion(e.position,e.howMany,!e.shouldReceiveAttributes).map(e=>new sl(e,t.key,t.oldValue,t.newValue,t.baseVersion));if(e.shouldReceiveAttributes){const r=Nu(e,t.key,t.oldValue);r&&n.unshift(r)}return n}return t.range=t.range._getTransformedByInsertion(e.position,e.howMany,!1)[0],[t]}),Tu(sl,fl,(t,e)=>{const n=[];t.range.start.hasSameParentAs(e.deletionPosition)&&(t.range.containsPosition(e.deletionPosition)||t.range.start.isEqual(e.deletionPosition))&&n.push(Ks._createFromPositionAndShift(e.graveyardPosition,1));const r=t.range._getTransformedByMergeOperation(e);return r.isCollapsed||n.push(r),n.map(e=>new sl(e,t.key,t.oldValue,t.newValue,t.baseVersion))}),Tu(sl,ll,(t,e)=>{return function(t,e){const n=Ks._createFromPositionAndShift(e.sourcePosition,e.howMany);let r=null,i=[];n.containsRange(t,!0)?r=t:t.start.hasSameParentAs(n.start)?(i=t.getDifference(n),r=t.getIntersection(n)):i=[t];const o=[];for(let s of i){s=s._getTransformedByDeletion(e.sourcePosition,e.howMany);const t=e.getMovedRangeStart(),n=s.start.hasSameParentAs(t);s=s._getTransformedByInsertion(t,e.howMany,n),o.push(...s)}return r&&o.push(r._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,!1)[0]),o}(t.range,e).map(e=>new sl(e,t.key,t.oldValue,t.newValue,t.baseVersion))}),Tu(sl,pl,(t,e)=>{if(t.range.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.range.end.offset++,[t];if(t.range.start.hasSameParentAs(e.splitPosition)&&t.range.containsPosition(e.splitPosition)){const n=t.clone();return n.range=new Ks(e.moveTargetPosition.clone(),t.range.end._getCombined(e.splitPosition,e.moveTargetPosition)),t.range.end=e.splitPosition.clone(),t.range.end.stickiness="toPrevious",[t,n]}return t.range=t.range._getTransformedBySplitOperation(e),[t]}),Tu(cl,sl,(t,e)=>{const n=[t];if(t.shouldReceiveAttributes&&t.position.hasSameParentAs(e.range.start)&&e.range.containsPosition(t.position)){const r=Nu(t,e.key,e.newValue);r&&n.push(r)}return n}),Tu(cl,cl,(t,e,n)=>t.position.isEqual(e.position)&&n.aIsStrong?[t]:(t.position=t.position._getTransformedByInsertOperation(e),[t])),Tu(cl,ll,(t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t])),Tu(cl,pl,(t,e)=>(t.position=t.position._getTransformedBySplitOperation(e),[t])),Tu(cl,fl,(t,e)=>(t.position=t.position._getTransformedByMergeOperation(e),[t])),Tu(ul,cl,(t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByInsertOperation(e)[0]),t.newRange&&(t.newRange=t.newRange._getTransformedByInsertOperation(e)[0]),[t])),Tu(ul,ul,(t,e,n)=>{if(t.name==e.name){if(!n.aIsStrong)return[new Cu(0)];t.oldRange=e.newRange?e.newRange.clone():null}return[t]}),Tu(ul,fl,(t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByMergeOperation(e)),t.newRange&&(t.newRange=t.newRange._getTransformedByMergeOperation(e)),[t])),Tu(ul,ll,(t,e,n)=>{if(t.oldRange&&(t.oldRange=Ks._createFromRanges(t.oldRange._getTransformedByMoveOperation(e))),t.newRange){if(n.abRelation){const r=Ks._createFromRanges(t.newRange._getTransformedByMoveOperation(e));if("left"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.start))return t.newRange.start.path=n.abRelation.path,t.newRange.end=r.end,[t];if("right"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.end))return t.newRange.start=r.start,t.newRange.end.path=n.abRelation.path,[t]}t.newRange=Ks._createFromRanges(t.newRange._getTransformedByMoveOperation(e))}return[t]}),Tu(ul,pl,(t,e,n)=>{if(t.oldRange&&(t.oldRange=t.oldRange._getTransformedBySplitOperation(e)),t.newRange){if(n.abRelation){const r=t.newRange._getTransformedBySplitOperation(e);return t.newRange.start.isEqual(e.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?t.newRange.start=Ys._createAt(e.insertionPosition):t.newRange.start.isEqual(e.splitPosition)&&!n.abRelation.wasInLeftElement&&(t.newRange.start=Ys._createAt(e.moveTargetPosition)),t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasInRightElement?t.newRange.end=Ys._createAt(e.moveTargetPosition):t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?t.newRange.end=Ys._createAt(e.insertionPosition):t.newRange.end=r.end,[t]}t.newRange=t.newRange._getTransformedBySplitOperation(e)}return[t]}),Tu(fl,cl,(t,e)=>(t.sourcePosition.hasSameParentAs(e.position)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByInsertOperation(e),t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e),[t])),Tu(fl,fl,(t,e,n)=>{if(t.sourcePosition.isEqual(e.sourcePosition)&&t.targetPosition.isEqual(e.targetPosition)){if(n.bWasUndone){const n=e.graveyardPosition.path.slice();return n.push(0),t.sourcePosition=new Ys(e.graveyardPosition.root,n),t.howMany=0,[t]}return[new Cu(0)]}if(t.sourcePosition.isEqual(e.sourcePosition)&&!t.targetPosition.isEqual(e.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){const r="$graveyard"==t.targetPosition.root.rootName,i="$graveyard"==e.targetPosition.root.rootName;if(i&&!r||(!r||i)&&n.aIsStrong){const n=e.targetPosition._getTransformedByMergeOperation(e),r=t.targetPosition._getTransformedByMergeOperation(e);return[new ll(n,t.howMany,r,0)]}return[new Cu(0)]}return t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMergeOperation(e),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),t.graveyardPosition.isEqual(e.graveyardPosition)&&n.aIsStrong||(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]}),Tu(fl,ll,(t,e,n)=>{const r=Ks._createFromPositionAndShift(e.sourcePosition,e.howMany);return"remove"==e.type&&!n.bWasUndone&&!n.forceWeakRemove&&t.deletionPosition.hasSameParentAs(e.sourcePosition)&&r.containsPosition(t.sourcePosition)?[new Cu(0)]:(t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition.hasSameParentAs(e.sourcePosition)&&(t.howMany-=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMoveOperation(e),t.targetPosition=t.targetPosition._getTransformedByMoveOperation(e),t.graveyardPosition.isEqual(e.targetPosition)||(t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)),[t])}),Tu(fl,pl,(t,e,n)=>{if(e.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByDeletion(e.graveyardPosition,1),t.deletionPosition.isEqual(e.graveyardPosition)&&(t.howMany=e.howMany)),t.targetPosition.isEqual(e.splitPosition)){const r=0!=e.howMany,i=e.graveyardPosition&&t.deletionPosition.isEqual(e.graveyardPosition);if(r||i||"mergeTargetNotMoved"==n.abRelation)return t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),[t]}if(t.sourcePosition.isEqual(e.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return t.howMany=0,t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t];if("mergeSameElement"==n.abRelation||t.sourcePosition.offset>0)return t.sourcePosition=e.moveTargetPosition.clone(),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]}return t.sourcePosition.hasSameParentAs(e.splitPosition)&&(t.howMany=e.splitPosition.offset),t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]}),Tu(ll,cl,(t,e)=>{const n=Ks._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByInsertOperation(e,!1)[0];return t.sourcePosition=n.start,t.howMany=n.end.offset-n.start.offset,t.targetPosition.isEqual(e.position)||(t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e)),[t]}),Tu(ll,ll,(t,e,n)=>{const r=Ks._createFromPositionAndShift(t.sourcePosition,t.howMany),i=Ks._createFromPositionAndShift(e.sourcePosition,e.howMany);let o,s=n.aIsStrong,a=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?a=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(a=!1),o=t.targetPosition.isEqual(e.targetPosition)&&a?t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany):t.targetPosition._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),ju(t,e)&&ju(e,t))return[e.getReversed()];if(r.containsPosition(e.targetPosition)&&r.containsRange(i,!0))return r.start=r.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),r.end=r.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Du([r],o);if(i.containsPosition(t.targetPosition)&&i.containsRange(r,!0))return r.start=r.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),r.end=r.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),Du([r],o);const l=cr(t.sourcePosition.getParentPath(),e.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return r.start=r.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),r.end=r.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Du([r],o);"remove"!=t.type||"remove"==e.type||n.aWasUndone||n.forceWeakRemove?"remove"==t.type||"remove"!=e.type||n.bWasUndone||n.forceWeakRemove||(s=!1):s=!0;const c=[],u=r.getDifference(i);for(const h of u){h.start=h.start._getTransformedByDeletion(e.sourcePosition,e.howMany),h.end=h.end._getTransformedByDeletion(e.sourcePosition,e.howMany);const t="same"==cr(h.start.getParentPath(),e.getMovedRangeStart().getParentPath()),n=h._getTransformedByInsertion(e.getMovedRangeStart(),e.howMany,t);c.push(...n)}const d=r.getIntersection(i);return null!==d&&s&&(d.start=d.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),d.end=d.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),0===c.length?c.push(d):1==c.length?i.start.isBefore(r.start)||i.start.isEqual(r.start)?c.unshift(d):c.push(d):c.splice(1,0,d)),0===c.length?[new Cu(t.baseVersion)]:Du(c,o)}),Tu(ll,pl,(t,e,n)=>{let r=t.targetPosition.clone();t.targetPosition.isEqual(e.insertionPosition)&&e.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(r=t.targetPosition._getTransformedBySplitOperation(e));const i=Ks._createFromPositionAndShift(t.sourcePosition,t.howMany);if(i.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.howMany++,t.targetPosition=r,[t];if(i.start.hasSameParentAs(e.splitPosition)&&i.containsPosition(e.splitPosition)){let t=new Ks(e.splitPosition,i.end);return t=t._getTransformedBySplitOperation(e),Du([new Ks(i.start,e.splitPosition),t],r)}t.targetPosition.isEqual(e.splitPosition)&&"insertAtSource"==n.abRelation&&(r=e.moveTargetPosition),t.targetPosition.isEqual(e.insertionPosition)&&"insertBetween"==n.abRelation&&(r=t.targetPosition);const o=[i._getTransformedBySplitOperation(e)];if(e.graveyardPosition){const r=i.start.isEqual(e.graveyardPosition)||i.containsPosition(e.graveyardPosition);t.howMany>1&&r&&!n.aWasUndone&&o.push(Ks._createFromPositionAndShift(e.insertionPosition,1))}return Du(o,r)}),Tu(ll,fl,(t,e,n)=>{const r=Ks._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.deletionPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.sourcePosition))if("remove"!=t.type||n.forceWeakRemove){if(1==t.howMany)return n.bWasUndone?(t.sourcePosition=e.graveyardPosition.clone(),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]):[new Cu(0)]}else if(!n.aWasUndone){const n=[];let r=e.graveyardPosition.clone(),i=e.targetPosition._getTransformedByMergeOperation(e);t.howMany>1&&(n.push(new ll(t.sourcePosition,t.howMany-1,t.targetPosition,0)),r=r._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1),i=i._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1));const o=e.deletionPosition._getCombined(t.sourcePosition,t.targetPosition),s=new ll(r,1,o,0),a=s.getMovedRangeStart().path.slice();a.push(0);const l=new Ys(s.targetPosition.root,a);i=i._getTransformedByMove(r,o,1);const c=new ll(i,e.howMany,l,0);return n.push(s),n.push(c),n}const i=Ks._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByMergeOperation(e);return t.sourcePosition=i.start,t.howMany=i.end.offset-i.start.offset,t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]}),Tu(dl,cl,(t,e)=>(t.position=t.position._getTransformedByInsertOperation(e),[t])),Tu(dl,fl,(t,e)=>t.position.isEqual(e.deletionPosition)?(t.position=e.graveyardPosition.clone(),t.position.stickiness="toNext",[t]):(t.position=t.position._getTransformedByMergeOperation(e),[t])),Tu(dl,ll,(t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t])),Tu(dl,dl,(t,e,n)=>{if(t.position.isEqual(e.position)){if(!n.aIsStrong)return[new Cu(0)];t.oldName=e.newName}return[t]}),Tu(dl,pl,(t,e)=>{return"same"!=cr(t.position.path,e.splitPosition.getParentPath())||e.graveyardPosition?(t.position=t.position._getTransformedBySplitOperation(e),[t]):[t,new dl(t.position.getShiftedBy(1),t.oldName,t.newName,0)]}),Tu(hl,hl,(t,e,n)=>{if(t.root===e.root&&t.key===e.key){if(!n.aIsStrong||t.newValue===e.newValue)return[new Cu(0)];t.oldValue=e.newValue}return[t]}),Tu(pl,cl,(t,e)=>(t.splitPosition.hasSameParentAs(e.position)&&t.splitPosition.offset<e.position.offset&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByInsertOperation(e),t.insertionPosition=pl.getInsertionPosition(t.splitPosition),[t])),Tu(pl,fl,(t,e,n)=>{if(!t.graveyardPosition&&!n.bWasUndone&&t.splitPosition.hasSameParentAs(e.sourcePosition)){const n=e.graveyardPosition.path.slice();n.push(0);const r=new Ys(e.graveyardPosition.root,n),i=pl.getInsertionPosition(new Ys(e.graveyardPosition.root,n)),o=new pl(r,0,null,0);return o.insertionPosition=i,t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=pl.getInsertionPosition(t.splitPosition),t.graveyardPosition=o.insertionPosition.clone(),t.graveyardPosition.stickiness="toNext",[o,t]}return t.splitPosition.hasSameParentAs(e.deletionPosition)&&!t.splitPosition.isAfter(e.deletionPosition)&&t.howMany--,t.splitPosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=pl.getInsertionPosition(t.splitPosition),t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]}),Tu(pl,ll,(t,e,n)=>{const r=Ks._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.graveyardPosition){const i=r.start.isEqual(t.graveyardPosition)||r.containsPosition(t.graveyardPosition);if(!n.bWasUndone&&i){const n=t.splitPosition._getTransformedByMoveOperation(e),r=t.graveyardPosition._getTransformedByMoveOperation(e),i=r.path.slice();i.push(0);const o=new Ys(r.root,i);return[new ll(n,t.howMany,o,0)]}t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)}if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&r.containsPosition(t.splitPosition)){const n=e.howMany-(t.splitPosition.offset-e.sourcePosition.offset);return t.howMany-=n,t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany),t.splitPosition=e.sourcePosition.clone(),t.insertionPosition=pl.getInsertionPosition(t.splitPosition),[t]}return!t.splitPosition.isEqual(e.targetPosition)||"insertAtSource"!=n.baRelation&&"splitBefore"!=n.abRelation?(e.sourcePosition.isEqual(e.targetPosition)||(t.splitPosition.hasSameParentAs(e.sourcePosition)&&t.splitPosition.offset<=e.sourcePosition.offset&&(t.howMany-=e.howMany),t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany)),t.splitPosition.stickiness="toNone",t.splitPosition=t.splitPosition._getTransformedByMoveOperation(e),t.splitPosition.stickiness="toNext",t.graveyardPosition?t.insertionPosition=t.insertionPosition._getTransformedByMoveOperation(e):t.insertionPosition=pl.getInsertionPosition(t.splitPosition),[t]):(t.howMany+=e.howMany,t.splitPosition=t.splitPosition._getTransformedByDeletion(e.sourcePosition,e.howMany),t.insertionPosition=pl.getInsertionPosition(t.splitPosition),[t])}),Tu(pl,pl,(t,e,n)=>{if(t.splitPosition.isEqual(e.splitPosition)){if(!t.graveyardPosition&&!e.graveyardPosition)return[new Cu(0)];if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition))return[new Cu(0)];if("splitBefore"==n.abRelation)return t.howMany=0,t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e),[t]}if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition)){const r="$graveyard"==t.splitPosition.root.rootName,i="$graveyard"==e.splitPosition.root.rootName;if(i&&!r||(!r||i)&&n.aIsStrong){const n=[];return e.howMany&&n.push(new ll(e.moveTargetPosition,e.howMany,e.splitPosition,0)),t.howMany&&n.push(new ll(t.splitPosition,t.howMany,t.moveTargetPosition,0)),n}return[new Cu(0)]}if(t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e)),t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.abRelation)return t.howMany++,[t];if(e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.baRelation){const n=e.insertionPosition.path.slice();n.push(0);const r=new Ys(e.insertionPosition.root,n);return[t,new ll(t.insertionPosition,1,r,0)]}return t.splitPosition.hasSameParentAs(e.splitPosition)&&t.splitPosition.offset<e.splitPosition.offset&&(t.howMany-=e.howMany),t.splitPosition=t.splitPosition._getTransformedBySplitOperation(e),t.insertionPosition=pl.getInsertionPosition(t.splitPosition),[t]});class Lu extends tu{constructor(t){super(t),this._stack=[],this._createdBatches=new WeakSet,this.refresh()}refresh(){this.isEnabled=this._stack.length>0}addBatch(t){const e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,n){const r=this.editor.model,i=r.document,o=[];for(const s of t){const t=Bu(s,n).find(t=>t.start.root!=i.graveyard);t&&o.push(t)}o.length&&r.change(t=>{t.setSelection(o,{backward:e})})}_undo(t,e){const n=this.editor.model,r=n.document;this._createdBatches.add(e);const i=t.operations.slice().filter(t=>t.isDocumentOperation);i.reverse();for(const o of i){const t=o.baseVersion+1,i=Array.from(r.history.getOperations(t)),s=Au([o.getReversed()],i,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const a of s)e.addOperation(a),n.applyOperation(a),r.history.setOperationAsUndone(o,a)}}}function Bu(t,e){const n=t.getTransformedByOperations(e);n.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let r=1;r<n.length;r++){const t=n[r-1],e=n[r];t.end.isTouching(e.start)&&(t.end=e.end,n.splice(r,1),r--)}return n}class Ru extends Lu{execute(t=null){const e=t?this._stack.findIndex(e=>e.batch==t):this._stack.length-1,n=this._stack.splice(e,1)[0],r=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(r,()=>{this._undo(n.batch,r);const t=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,t),this.fire("revert",n.batch,r)}),this.refresh()}}class Fu extends Lu{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(e,()=>{const n=t.batch.operations[t.batch.operations.length-1].baseVersion+1,r=this.editor.model.document.history.getOperations(n);this._restoreSelection(t.selection.ranges,t.selection.isBackward,r),this._undo(t.batch,e)}),this.refresh()}}class $u extends Kc{constructor(t){super(t),this._batchRegistry=new WeakSet}init(){const t=this.editor;this._undoCommand=new Ru(t),this._redoCommand=new Fu(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(t,e)=>{const n=e[0];if(!n.isDocumentOperation)return;const r=n.batch,i=this._redoCommand._createdBatches.has(r),o=this._undoCommand._createdBatches.has(r);this._batchRegistry.has(r)||"transparent"==r.type&&!i&&!o||(i?this._undoCommand.addBatch(r):o||(this._undoCommand.addBatch(r),this._redoCommand.clearStack()),this._batchRegistry.add(r))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(t,e,n)=>{this._redoCommand.addBatch(n)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}n(60);class Vu extends jc{constructor(){super();const t=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:t.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const t=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),e=t.getAttribute("viewBox");for(e&&(this.viewBox=e),this.element.innerHTML="";t.childNodes.length>0;)this.element.appendChild(t.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(t=>{t.style.fill=this.fillColor})}}n(62);class zu extends jc{constructor(t){super(t),this.set("text",""),this.set("position","s");const e=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",e.to("position",t=>"ck-tooltip_"+t),e.if("text","ck-hidden",t=>!t.trim())]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:e.to("text")}]}]})}}n(64);class Hu extends jc{constructor(t){super(t);const e=this.bindTemplate,n=Jn();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.tooltipView=this._createTooltipView(),this.labelView=this._createLabelView(n),this.iconView=new Vu,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this)),this.setTemplate({tag:"button",attributes:{class:["ck","ck-button",e.to("class"),e.if("isEnabled","ck-disabled",t=>!t),e.if("isVisible","ck-hidden",t=>!t),e.to("isOn",t=>t?"ck-on":"ck-off"),e.if("withText","ck-button_with-text")],type:e.to("type",t=>t||"button"),tabindex:e.to("tabindex"),"aria-labelledby":`ck-editor__aria-label_${n}`,"aria-disabled":e.if("isEnabled",!0,t=>!t),"aria-pressed":e.if("isOn",!0)},children:this.children,on:{mousedown:e.to(t=>{t.preventDefault()}),click:e.to(t=>{this.isEnabled?this.fire("execute"):t.preventDefault()})}})}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView)}focus(){this.element.focus()}_createTooltipView(){const t=new zu;return t.bind("text").to(this,"_tooltipString"),t.bind("position").to(this,"tooltipPosition"),t}_createLabelView(t){const e=new jc,n=this.bindTemplate;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:`ck-editor__aria-label_${t}`},children:[{text:this.bindTemplate.to("label")}]}),e}_getTooltipString(t,e,n){return t?"string"==typeof t?t:(n&&(n=function(t){return fi.isMac?yi(t).map(t=>gi[t.toLowerCase()]||t).reduce((t,e)=>t.slice(-1)in pi?t+e:t+"+"+e):t}(n)),t instanceof Function?t(e,n):`${e}${n?` (${n})`:""}`):""}}var Wu=n(21),Uu=n.n(Wu),qu=n(22),Gu=n.n(qu);class Yu extends Kc{init(){const t=this.editor.t;this._addButton("undo",t("bg"),"CTRL+Z",Uu.a),this._addButton("redo",t("bh"),"CTRL+Y",Gu.a)}_addButton(t,e,n,r){const i=this.editor;i.ui.componentFactory.add(t,o=>{const s=i.commands.get(t),a=new Hu(o);return a.set({label:e,icon:r,keystroke:n,tooltip:!0}),a.bind("isEnabled").to(s,"isEnabled"),this.listenTo(a,"execute",()=>i.execute(t)),a})}}class Ku extends Kc{static get requires(){return[$u,Yu]}static get pluginName(){return"Undo"}}class Xu extends Kc{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new ii({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(t){if("string"!=typeof t)throw new Yn.b("pendingactions-add-invalid-message: The message must be a string.",this);const e=Object.create(Vr);return e.set("message",t),this._actions.add(e),this.hasAny=!0,e}remove(t){this._actions.remove(t),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}class Ju{constructor(){const t=new window.FileReader;this._reader=t,this.set("loaded",0),t.onprogress=(t=>{this.loaded=t.loaded})}get error(){return this._reader.error}read(t){const e=this._reader;return this.total=t.size,new Promise((n,r)=>{e.onload=(()=>{n(e.result)}),e.onerror=(()=>{r("error")}),e.onabort=(()=>{r("aborted")}),this._reader.readAsDataURL(t)})}abort(){this._reader.abort()}}lr(Ju,Vr);class Qu extends Kc{static get pluginName(){return"FileRepository"}static get requires(){return[Xu]}init(){this.loaders=new ii,this.loaders.on("add",()=>this._updatePendingAction()),this.loaders.on("remove",()=>this._updatePendingAction()),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(t,e)=>e?t/e*100:0)}getLoader(t){return this._loadersMap.get(t)||null}createLoader(t){if(!this.createUploadAdapter)return vs.a.error("filerepository-no-upload-adapter: Upload adapter is not defined."),null;const e=new Zu(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(e),this._loadersMap.set(t,e),t instanceof Promise&&e.file.then(t=>{this._loadersMap.set(t,e)}),e.file.catch(()=>{}),e.on("change:uploaded",()=>{let t=0;for(const e of this.loaders)t+=e.uploaded;this.uploaded=t}),e.on("change:uploadTotal",()=>{let t=0;for(const e of this.loaders)e.uploadTotal&&(t+=e.uploadTotal);this.uploadTotal=t}),e}destroyLoader(t){const e=t instanceof Zu?t:this.getLoader(t);e._destroy(),this.loaders.remove(e),this._loadersMap.forEach((t,n)=>{t===e&&this._loadersMap.delete(n)})}_updatePendingAction(){const t=this.editor.plugins.get(Xu);if(this.loaders.length){if(!this._pendingAction){const e=this.editor.t,n=t=>`${e("at")} ${parseInt(t)}%.`;this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}lr(Qu,Vr);class Zu{constructor(t,e){this.id=Jn(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new Ju,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(t,e)=>e?t/e*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(t=>this._filePromiseWrapper?t:null):Promise.resolve(null)}read(){if("idle"!=this.status)throw new Yn.b("filerepository-read-wrong-status: You cannot call read if the status is different than idle.",this);return this.status="reading",this._filePromiseWrapper.promise.then(t=>this._reader.read(t)).then(t=>(this.status="idle",t)).catch(t=>{if("aborted"===t)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:t})}upload(){if("idle"!=this.status)throw new Yn.b("filerepository-upload-wrong-status: You cannot call upload if the status is different than idle.",this);return this.status="uploading",this._filePromiseWrapper.promise.then(()=>this._adapter.upload()).then(t=>(this.uploadResponse=t,this.status="idle",t)).catch(t=>{if("aborted"===this.status)throw"aborted";throw this.status="error",t})}abort(){const t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==t?this._reader.abort():"uploading"==t&&this._adapter.abort&&this._adapter.abort():this._filePromiseWrapper.rejecter("aborted"),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.data=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(t){const e={};return e.promise=new Promise((n,r)=>{e.resolver=n,e.rejecter=r,e.isFulfilled=!1,t.then(t=>{e.isFulfilled=!0,n(t)}).catch(t=>{e.isFulfilled=!0,r(t)})}),e}}lr(Zu,Vr);const td="ckCsrfToken",ed=40,nd="abcdefghijklmnopqrstuvwxyz0123456789";function rd(){let t=function(t){t=t.toLowerCase();const e=document.cookie.split(";");for(const n of e){const e=n.split("="),r=decodeURIComponent(e[0].trim().toLowerCase());if(r===t)return decodeURIComponent(e[1])}return null}(td);return t&&t.length==ed||(t=function(t){let e="";const n=new Uint8Array(t);window.crypto.getRandomValues(n);for(let r=0;r<n.length;r++){const t=nd.charAt(n[r]%nd.length);e+=Math.random()>.5?t.toUpperCase():t}return e}(ed),function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+";path=/"}(td,t)),t}class id extends Kc{static get requires(){return[Qu]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const t=this.editor.config.get("ckfinder.uploadUrl");t&&(this.editor.plugins.get(Qu).createUploadAdapter=(e=>new od(e,t,this.editor.t)))}}class od{constructor(t,e,n){this.loader=t,this.url=e,this.t=n}upload(){return this.loader.file.then(t=>new Promise((e,n)=>{this._initRequest(),this._initListeners(e,n,t),this._sendRequest(t)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const t=this.xhr=new XMLHttpRequest;t.open("POST",this.url,!0),t.responseType="json"}_initListeners(t,e,n){const r=this.xhr,i=this.loader,o=(0,this.t)("a")+` ${n.name}.`;r.addEventListener("error",()=>e(o)),r.addEventListener("abort",()=>e()),r.addEventListener("load",()=>{const n=r.response;if(!n||!n.uploaded)return e(n&&n.error&&n.error.message?n.error.message:o);t({default:n.url})}),r.upload&&r.upload.addEventListener("progress",t=>{t.lengthComputable&&(i.uploadTotal=t.total,i.uploaded=t.loaded)})}_sendRequest(t){const e=new FormData;e.append("upload",t),e.append("ckCsrfToken",rd()),this.xhr.send(e)}}class sd{constructor(t,e,n){let r,i=null;"function"==typeof n?r=n:(i=t.commands.get(n),r=(()=>{t.execute(n)})),t.model.document.on("change",(n,o)=>{if(i&&!i.isEnabled)return;if("transparent"==o.type)return;const s=Array.from(t.model.document.differ.getChanges()),a=s[0];if(1!=s.length||"insert"!==a.type||"$text"!=a.name||1!=a.length)return;const l=a.position.textNode||a.position.nodeAfter;if(!l.parent.is("paragraph"))return;const c=e.exec(l.data);c&&t.model.enqueueChange(t=>{const e=t.createPositionAt(l.parent,0),n=t.createPositionAt(l.parent,c[0].length),i=new oa(e,n);!1!==r({match:c})&&t.remove(i),i.detach()})})}}class ad{constructor(t,e,n){let r,i,o,s;e instanceof RegExp?r=e:o=e,"string"==typeof n?i=n:s=n,o=o||(t=>{let e;const n=[],i=[];for(;null!==(e=r.exec(t))&&!(e&&e.length<4);){let{index:t,1:r,2:o,3:s}=e;const a=r+o+s,l=[t+=e[0].length-a.length,t+r.length],c=[t+r.length+o.length,t+r.length+o.length+s.length];n.push(l),n.push(c),i.push([t+r.length,t+r.length+o.length])}return{remove:n,format:i}}),s=s||((e,n)=>{const r=t.model.schema.getValidRanges(n,i);for(const t of r)e.setAttribute(i,!0,t);e.removeSelectionAttribute(i)}),t.model.document.on("change",(e,n)=>{if("transparent"==n.type)return;const r=t.model.document.selection;if(!r.isCollapsed)return;const i=Array.from(t.model.document.differ.getChanges()),a=i[0];if(1!=i.length||"insert"!==a.type||"$text"!=a.name||1!=a.length)return;const l=r.focus.parent,c=function(t){return Array.from(t.getChildren()).reduce((t,e)=>t+e.data,"")}(l).slice(0,r.focus.offset),u=o(c),d=ld(l,u.format,t.model),h=ld(l,u.remove,t.model);d.length&&h.length&&t.model.enqueueChange(t=>{if(!1!==s(t,d))for(const e of h.reverse())t.remove(e)})})}}function ld(t,e,n){return e.filter(t=>void 0!==t[0]&&void 0!==t[1]).map(e=>n.createRange(n.createPositionAt(t,e[0]),n.createPositionAt(t,e[1])))}function cd(t,e){return(n,r)=>{if(!t.commands.get(e).isEnabled)return!1;const i=t.model.schema.getValidRanges(r,e);for(const t of i)n.setAttribute(e,!0,t);n.removeSelectionAttribute(e)}}class ud extends tu{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,r=void 0===t.forceValue?!this.value:t.forceValue;e.change(t=>{if(n.isCollapsed)r?t.setSelectionAttribute(this.attributeKey,!0):t.removeSelectionAttribute(this.attributeKey);else{const i=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const e of i)r?t.setAttribute(this.attributeKey,r,e):t.removeAttribute(this.attributeKey,e)}})}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const r of n.getRanges())for(const t of r.getItems())if(e.checkAttribute(t,this.attributeKey))return t.hasAttribute(this.attributeKey);return!1}}const dd="bold";class hd extends Kc{init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:dd}),t.model.schema.setAttributeProperties(dd,{isFormatting:!0}),t.conversion.attributeToElement({model:dd,view:"strong",upcastAlso:["b",{styles:{"font-weight":"bold"}}]}),t.commands.add(dd,new ud(t,dd)),t.keystrokes.set("CTRL+B",dd)}}var fd=n(23),pd=n.n(fd);const gd="bold";class md extends Kc{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(gd,n=>{const r=t.commands.get(gd),i=new Hu(n);return i.set({label:e("b"),icon:pd.a,keystroke:"CTRL+B",tooltip:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(i,"execute",()=>t.execute(gd)),i})}}const vd="italic";class bd extends Kc{init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:vd}),t.model.schema.setAttributeProperties(vd,{isFormatting:!0}),t.conversion.attributeToElement({model:vd,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(vd,new ud(t,vd)),t.keystrokes.set("CTRL+I",vd)}}var yd=n(24),wd=n.n(yd);const kd="italic";class _d extends Kc{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(kd,n=>{const r=t.commands.get(kd),i=new Hu(n);return i.set({label:e("c"),icon:wd.a,keystroke:"CTRL+I",tooltip:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(i,"execute",()=>t.execute(kd)),i})}}function xd(t){const e=t.next();return e.done?null:e.value}class Cd extends tu{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,r=e.document.selection,i=Array.from(r.getTopMostBlocks()),o=void 0===t.forceValue?!this.value:t.forceValue;e.change(t=>{if(o){const e=i.filter(t=>Sd(t)||Od(n,t));this._applyQuote(t,e)}else this._removeQuote(t,i.filter(Sd))})}_getValue(){const t=xd(this.editor.model.document.selection.getTopMostBlocks());return!(!t||!Sd(t))}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=xd(t.getSelectedBlocks());return!!n&&Od(e,n)}_removeQuote(t,e){Td(t,e).reverse().forEach(e=>{if(e.start.isAtStart&&e.end.isAtEnd)return void t.unwrap(e.start.parent);if(e.start.isAtStart){const n=t.createPositionBefore(e.start.parent);return void t.move(e,n)}e.end.isAtEnd||t.split(e.end);const n=t.createPositionAfter(e.end.parent);t.move(e,n)})}_applyQuote(t,e){const n=[];Td(t,e).reverse().forEach(e=>{let r=Sd(e.start);r||(r=t.createElement("blockQuote"),t.wrap(e,r)),n.push(r)}),n.reverse().reduce((e,n)=>e.nextSibling==n?(t.merge(t.createPositionAfter(e)),e):n)}}function Sd(t){return"blockQuote"==t.parent.name?t.parent:null}function Td(t,e){let n,r=0;const i=[];for(;r<e.length;){const o=e[r],s=e[r+1];n||(n=t.createPositionBefore(o)),s&&o.nextSibling==s||(i.push(t.createRange(n,t.createPositionAfter(o))),n=null),r++}return i}function Od(t,e){const n=t.checkChild(e.parent,"blockQuote"),r=t.checkChild(["$root","blockQuote"],e);return n&&r}class Pd extends Kc{init(){const t=this.editor,e=t.model.schema;t.commands.add("blockQuote",new Cd(t)),e.register("blockQuote",{allowWhere:"$block",allowContentOf:"$root"}),e.addChildCheck((t,e)=>{if(t.endsWith("blockQuote")&&"blockQuote"==e.name)return!1}),t.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),t.model.document.registerPostFixer(n=>{const r=t.model.document.differ.getChanges();for(const t of r)if("insert"==t.type){const r=t.position.nodeAfter;if(!r)continue;if(r.is("blockQuote")&&r.isEmpty)return n.remove(r),!0;if(r.is("blockQuote")&&!e.checkChild(t.position,r))return n.unwrap(r),!0;if(r.is("element")){const t=n.createRangeIn(r);for(const r of t.getItems())if(r.is("blockQuote")&&!e.checkChild(n.createPositionBefore(r),r))return n.unwrap(r),!0}}else if("remove"==t.type){const e=t.position.parent;if(e.is("blockQuote")&&e.isEmpty)return n.remove(e),!0}return!1})}afterInit(){const t=this.editor.commands.get("blockQuote");this.listenTo(this.editor.editing.view.document,"enter",(e,n)=>{const r=this.editor.model.document,i=r.selection.getLastPosition().parent;r.selection.isCollapsed&&i.isEmpty&&t.value&&(this.editor.execute("blockQuote"),this.editor.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())})}}var Ad=n(25),Ed=n.n(Ad);n(66);class Md extends Kc{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("blockQuote",n=>{const r=t.commands.get("blockQuote"),i=new Hu(n);return i.set({label:e("e"),icon:Ed.a,tooltip:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(i,"execute",()=>t.execute("blockQuote")),i})}}var Id=n(26),Nd=n.n(Id);class jd extends Kc{static get pluginName(){return"CKFinderUI"}init(){const t=this.editor,e=t.ui.componentFactory,n=t.t;e.add("ckfinder",e=>{const r=t.commands.get("ckfinder"),i=new Hu(e);return i.set({label:n("d"),icon:Nd.a,tooltip:!0}),i.bind("isEnabled").to(r),i.on("execute",()=>{t.execute("ckfinder"),t.editing.view.focus()}),i})}}class Dd extends Kc{static get pluginName(){return"Notification"}init(){this.on("show:warning",(t,e)=>{window.alert(e.message)},{priority:"lowest"})}showSuccess(t,e={}){this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}showInfo(t,e={}){this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}showWarning(t,e={}){this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}_showNotification(t){const e=`show:${t.type}`+(t.namespace?`:${t.namespace}`:"");this.fire(e,{message:t.message,type:t.type,title:t.title||""})}}class Ld extends tu{constructor(t){super(t),this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const t=this.editor.commands.get("imageUpload"),e=this.editor.commands.get("link");this.isEnabled=t&&e&&(t.isEnabled||e.isEnabled)}execute(){const t=this.editor,e=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=e&&"modal"!=e)throw new Yn.b('ckfinder-unknown-openerMethod: The openerMethod config option must by "popup" or "modal".',t);const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;const r=n.onInit;n.language||(n.language=t.locale.language),n.onInit=(e=>{r&&r(),e.on("files:choose",n=>{const r=n.data.files.toArray(),i=r.filter(t=>!t.isImage()),o=r.filter(t=>t.isImage());for(const e of i)t.execute("link",e.getUrl());const s=[];for(const t of o){const n=t.getUrl();s.push(n||e.request("file:getProxyUrl",{file:t}))}s.length&&Bd(t,s)}),e.on("file:choose:resizedImage",e=>{const n=e.data.resizedUrl;if(n)Bd(t,[n]);else{const e=t.plugins.get("Notification"),n=t.locale.t;e.showWarning(n("ap"),{title:n("aq"),namespace:"ckfinder"})}})}),window.CKFinder[e](n)}}function Bd(t,e){if(t.commands.get("imageUpload").isEnabled)t.execute("imageInsert",{source:e});else{const e=t.plugins.get("Notification"),n=t.locale.t;e.showWarning(n("ar"),{title:n("as"),namespace:"ckfinder"})}}class Rd extends Kc{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Dd]}init(){const t=this.editor;t.commands.add("ckfinder",new Ld(t))}}const Fd=/^data:(\S*?);base64,/;class $d{constructor(t,e,n){if(!t)throw new Yn.b("fileuploader-missing-file: File must be provided as the first argument",null);if(!e)throw new Yn.b("fileuploader-missing-token: Token must be provided as the second argument.",null);if(!n)throw new Yn.b("fileuploader-missing-api-address: Api address must be provided as the third argument.",null);this.file=function(t){if("string"!=typeof t)return!1;const e=t.match(Fd);return!(!e||!e.length)}(t)?function(t,e=512){try{const n=t.match(Fd)[1],r=atob(t.replace(Fd,"")),i=[];for(let t=0;t<r.length;t+=e){const n=r.slice(t,t+e),o=new Array(n.length);for(let t=0;t<n.length;t++)o[t]=n.charCodeAt(t);i.push(new Uint8Array(o))}return new Blob(i,{type:n})}catch(t){throw new Yn.b("fileuploader-decoding-image-data-error: Problem with decoding Base64 image data.",null)}}(t):t,this._token=e,this._apiAddress=n}onProgress(t){return this.on("progress",(e,n)=>t(n)),this}onError(t){return this.once("error",(e,n)=>t(n)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const t=new XMLHttpRequest;t.open("POST",this._apiAddress),t.setRequestHeader("Authorization",this._token.value),t.responseType="json",this.xhr=t}_attachXHRListeners(){const t=this,e=this.xhr;function n(e){return()=>t.fire("error",e)}e.addEventListener("error",n("Network Error")),e.addEventListener("abort",n("Abort")),e.upload&&e.upload.addEventListener("progress",t=>{t.lengthComputable&&this.fire("progress",{total:t.total,uploaded:t.loaded})}),e.addEventListener("load",()=>{const t=e.status,n=e.response;if(t<200||t>299)return this.fire("error",n.message||n.error)})}_sendRequest(){const t=new FormData,e=this.xhr;return t.append("file",this.file),new Promise((n,r)=>{e.addEventListener("load",()=>{const t=e.status,i=e.response;return t<200||t>299?i.message?r(new Yn.b("fileuploader-uploading-data-failed: Uploading file failed.",this,{message:i.message})):r(i.error):n(i)}),e.addEventListener("error",()=>r(new Error("Network Error"))),e.addEventListener("abort",()=>r(new Error("Abort"))),e.send(t)})}}lr($d,er);const Vd={refreshInterval:36e5,autoRefresh:!0};class zd{constructor(t,e=Vd){if(!t)throw new Yn.b("token-missing-token-url: A `tokenUrl` must be provided as the first constructor argument.",this);this.set("value",e.initValue),this._refresh="function"==typeof t?t:()=>(function(t){return new Promise((e,n)=>{const r=new XMLHttpRequest;r.open("GET",t),r.addEventListener("load",()=>{const t=r.status,i=r.response;return t<200||t>299?n(new Yn.b("token-cannot-download-new-token: Cannot download new token from the provided url.",null)):e(i)}),r.addEventListener("error",()=>n(new Error("Network Error"))),r.addEventListener("abort",()=>n(new Error("Abort"))),r.send()})})(t),this._options=Object.assign({},Vd,e)}init(){return new Promise((t,e)=>{this._options.autoRefresh&&this._startRefreshing(),this.value?t(this):this._refreshToken().then(t).catch(e)})}_refreshToken(){return this._refresh().then(t=>this.set("value",t)).then(()=>this)}destroy(){this._stopRefreshing()}_startRefreshing(){this._refreshInterval=setInterval(()=>this._refreshToken(),this._options.refreshInterval)}_stopRefreshing(){clearInterval(this._refreshInterval)}static create(t,e=Vd){return new zd(t,e).init()}}lr(zd,Vr);var Hd=zd;class Wd extends Kc{static get pluginName(){return"CloudServices"}init(){const t=this.editor.config.get("cloudServices")||{};for(const e in t)this[e]=t[e];if(this.tokenUrl)return this.token=new Wd.Token(this.tokenUrl),this.token.init();this.token=null}}Wd.Token=Hd;class Ud extends Kc{static get requires(){return[Qu,Wd]}init(){const t=this.editor,e=t.plugins.get(Wd),n=e.token,r=e.uploadUrl;n&&(this._uploadGateway=new Ud._UploadGateway(n,r),t.plugins.get(Qu).createUploadAdapter=(t=>new qd(this._uploadGateway,t)))}}class qd{constructor(t,e){this.uploadGateway=t,this.loader=e}upload(){return this.loader.file.then(t=>(this.fileUploader=this.uploadGateway.upload(t),this.fileUploader.on("progress",(t,e)=>{this.loader.uploadTotal=e.total,this.loader.uploaded=e.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}Ud._UploadGateway=class{constructor(t,e){if(!t)throw new Yn.b("uploadgateway-missing-token: Token must be provided.",null);if(!e)throw new Yn.b("uploadgateway-missing-api-address: Api address must be provided.",null);this._token=t,this._apiAddress=e}upload(t){return new $d(t,this._token,this._apiAddress)}};class Gd extends ho{constructor(t){super(t),this._observedElements=new Set}observe(t,e){this.document.getRoot(e).on("change:children",(e,n)=>{this.view.once("render",()=>this._updateObservedElements(t,n))})}_updateObservedElements(t,e){if(!e.is("element")||e.is("attributeElement"))return;const n=this.view.domConverter.mapViewToDom(e);if(n){for(const t of n.querySelectorAll("img"))this._observedElements.has(t)||(this.listenTo(t,"load",(t,e)=>this._fireEvents(e)),this._observedElements.add(t));for(const e of this._observedElements)t.contains(e)||(this.stopListening(e),this._observedElements.delete(e))}}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}destroy(){this._observedElements.clear(),super.destroy()}}function Yd(t){return n=>{n.on(`attribute:${t}:image`,e)};function e(t,e,n){if(!n.consumable.consume(e.item,t.name))return;const r=n.writer,i=n.mapper.toViewElement(e.item).getChild(0);null!==e.attributeNewValue?r.setAttribute(e.attributeKey,e.attributeNewValue,i):r.removeAttribute(e.attributeKey,i)}}class Kd{constructor(){this._stack=[]}add(t,e){const n=this._stack,r=n[0];this._insertDescriptor(t);const i=n[0];r===i||Xd(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:e})}remove(t,e){const n=this._stack,r=n[0];this._removeDescriptor(t);const i=n[0];r===i||Xd(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex(e=>e.id===t.id);if(Xd(t,e[n]))return;n>-1&&e.splice(n,1);let r=0;for(;e[r]&&Jd(e[r],t);)r++;e.splice(r,0,t)}_removeDescriptor(t){const e=this._stack,n=e.findIndex(e=>e.id===t);n>-1&&e.splice(n,1)}}function Xd(t,e){return t&&e&&t.priority==e.priority&&Qd(t.classes)==Qd(e.classes)}function Jd(t,e){return t.priority>e.priority||!(t.priority<e.priority)&&Qd(t.classes)>Qd(e.classes)}function Qd(t){return Array.isArray(t)?t.sort().join(","):t}lr(Kd,er);var Zd=n(27),th=n.n(Zd);const eh="ck-widget",nh="ck-widget_selected";function rh(t){return!!t.is("element")&&!!t.getCustomProperty("widget")}function ih(t,e,n={}){return fi.isEdge||e.setAttribute("contenteditable","false",t),e.addClass(eh,t),e.setCustomProperty("widget",!0,t),t.getFillerOffset=lh,n.label&&function(t,e,n){n.setCustomProperty("widgetLabel",e,t)}(t,n.label,e),n.hasSelectionHandler&&function(t,e){const n=e.createUIElement("div",{class:"ck ck-widget__selection-handler"},function(t){const e=this.toDomElement(t),n=new Vu;return n.set("content",th.a),n.render(),e.appendChild(n.element),e});e.insert(e.createPositionAt(t,0),n),e.addClass(["ck-widget_with-selection-handler"],t)}(t,e),function(t,e,n,r){const i=new Kd;i.on("change:top",(e,i)=>{i.oldDescriptor&&r(t,i.oldDescriptor,i.writer),i.newDescriptor&&n(t,i.newDescriptor,i.writer)}),e.setCustomProperty("addHighlight",(t,e,n)=>i.add(e,n),t),e.setCustomProperty("removeHighlight",(t,e,n)=>i.remove(e,n),t)}(t,e,(t,e,n)=>n.addClass(r(e.classes),t),(t,e,n)=>n.removeClass(r(e.classes),t)),t;function r(t){return Array.isArray(t)?t:[t]}}function oh(t){const e=t.getCustomProperty("widgetLabel");return e?"function"==typeof e?e():e:""}function sh(t,e){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],t),fi.isEdge||(e.setAttribute("contenteditable",t.isReadOnly?"false":"true",t),t.on("change:isReadOnly",(n,r,i)=>{e.setAttribute("contenteditable",i?"false":"true",t)})),t.on("change:isFocused",(n,r,i)=>{i?e.addClass("ck-editor__nested-editable_focused",t):e.removeClass("ck-editor__nested-editable_focused",t)}),t}function ah(t,e){const n=t.getSelectedElement();if(n&&e.schema.isBlock(n))return e.createPositionAfter(n);const r=t.getSelectedBlocks().next().value;if(r){if(r.isEmpty)return e.createPositionAt(r,0);const n=e.createPositionAfter(r);return t.focus.isTouching(n)?n:e.createPositionBefore(r)}return t.focus}function lh(){return null}function ch(t){const e=t.getSelectedElement();return e&&function(t){return!!t.getCustomProperty("image")&&rh(t)}(e)?e:null}function uh(t){return!!t&&t.is("image")}function dh(t,e,n={}){const r=t.createElement("image",n),i=ah(e.document.selection,e);e.insertContent(r,i),r.parent&&t.setSelection(r,"on")}function hh(t){const e=t.schema,n=t.document.selection;return function(t,e,n){const r=function(t,e){const n=ah(t,e).parent;return n.isEmpty&&!n.is("$root")?n.parent:n}(t,n);return e.checkChild(r,"image")}(n,e,t)&&!function(t,e){const n=t.getSelectedElement();return n&&e.isObject(n)}(n,e)&&function(t){return[...t.focus.getAncestors()].every(t=>!t.is("image"))}(n)}class fh extends tu{refresh(){this.isEnabled=hh(this.editor.model)}execute(t){const e=this.editor.model;e.change(n=>{const r=Array.isArray(t.source)?t.source:[t.source];for(const t of r)dh(n,e,{src:t})})}}class ph extends Kc{init(){const t=this.editor,e=t.model.schema,n=t.t,r=t.conversion;t.editing.view.addObserver(Gd),e.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),r.for("dataDowncast").elementToElement({model:"image",view:(t,e)=>gh(e)}),r.for("editingDowncast").elementToElement({model:"image",view:(t,e)=>(function(t,e,n){return e.setCustomProperty("image",!0,t),ih(t,e,{label:function(){const e=t.getChild(0).getAttribute("alt");return e?`${e} ${n}`:n}})})(gh(e),e,n("h"))}),r.for("downcast").add(Yd("src")).add(Yd("alt")).add(function(){return e=>{e.on("attribute:srcset:image",t)};function t(t,e,n){if(!n.consumable.consume(e.item,t.name))return;const r=n.writer,i=n.mapper.toViewElement(e.item).getChild(0);if(null===e.attributeNewValue){const t=e.attributeOldValue;t.data&&(r.removeAttribute("srcset",i),r.removeAttribute("sizes",i),t.width&&r.removeAttribute("width",i))}else{const t=e.attributeNewValue;t.data&&(r.setAttribute("srcset",t.data,i),r.setAttribute("sizes","100vw",i),t.width&&r.setAttribute("width",t.width,i))}}}()),r.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:(t,e)=>e.createElement("image",{src:t.getAttribute("src")})}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:t=>{const e={data:t.getAttribute("srcset")};return t.hasAttribute("width")&&(e.width=t.getAttribute("width")),e}}}).add(function(){return e=>{e.on("element:figure",t)};function t(t,e,n){if(!n.consumable.test(e.viewItem,{name:!0,classes:"image"}))return;const r=Array.from(e.viewItem.getChildren()).find(t=>t.is("img"));if(!r||!r.hasAttribute("src")||!n.consumable.test(r,{name:!0}))return;const i=n.convertItem(r,e.modelCursor),o=xd(i.modelRange.getItems());o&&(n.convertChildren(e.viewItem,n.writer.createPositionAt(o,0)),e.modelRange=i.modelRange,e.modelCursor=i.modelCursor)}}()),t.commands.add("imageInsert",new fh(t))}}function gh(t){const e=t.createEmptyElement("img"),n=t.createContainerElement("figure",{class:"image"});return t.insert(t.createPositionAt(n,0),e),n}class mh extends ts{constructor(t){super(t),this.domEventType="mousedown"}onDomEvent(t){this.fire(t.type,t)}}n(68);const vh=bi("Ctrl+A");class bh extends Kc{static get pluginName(){return"Widget"}init(){const t=this.editor.editing.view,e=t.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(t,e,n)=>{this._clearPreviouslySelectedWidgets(n.writer);const r=n.writer,i=r.document.selection,o=i.getSelectedElement();let s=null;for(const a of i.getRanges())for(const t of a){const e=t.item;rh(e)&&!yh(e,s)&&(r.addClass(nh,e),this._previouslySelected.add(e),s=e,e==o&&r.setSelection(i.getRanges(),{fake:!0,label:oh(o)}))}},{priority:"low"}),t.addObserver(mh),this.listenTo(e,"mousedown",(...t)=>this._onMousedown(...t)),this.listenTo(e,"keydown",(...t)=>this._onKeydown(...t),{priority:"high"}),this.listenTo(e,"delete",(t,e)=>{this._handleDelete("forward"==e.direction)&&(e.preventDefault(),t.stop())},{priority:"high"})}_onMousedown(t,e){const n=this.editor,r=n.editing.view,i=r.document;let o=e.target;if(function(t){for(;t;){if(t.is("editableElement")&&!t.is("rootElement"))return!0;if(rh(t))return!1;t=t.parent}return!1}(o)){if(fi.isSafari&&e.domEvent.detail>=3){const t=n.editing.mapper.toModelElement(o);this.editor.model.change(n=>{e.preventDefault(),n.setSelection(t,"in")})}return}if(!rh(o)&&!(o=o.findAncestor(rh)))return;e.preventDefault(),i.isFocused||r.focus();const s=n.editing.mapper.toModelElement(o);this._setSelectionOverElement(s)}_onKeydown(t,e){const n=e.keyCode,r=n==mi.arrowdown||n==mi.arrowright;let i=!1;!function(t){return t==mi.arrowright||t==mi.arrowleft||t==mi.arrowup||t==mi.arrowdown}(n)?function(t){return vi(t)==vh}(e)?i=this._selectAllNestedEditableContent()||this._selectAllContent():n===mi.enter&&(i=this._handleEnterKey(e.shiftKey)):i=this._handleArrowKeys(r),i&&(e.preventDefault(),t.stop())}_handleDelete(t){if(this.editor.isReadOnly)return;const e=this.editor.model.document.selection;if(!e.isCollapsed)return;const n=this._getObjectElementNextToSelection(t);return n?(this.editor.model.change(t=>{let r=e.anchor.parent;for(;r.isEmpty;){const e=r;r=e.parent,t.remove(e)}this._setSelectionOverElement(n)}),!0):void 0}_handleArrowKeys(t){const e=this.editor.model,n=e.schema,r=e.document.selection,i=r.getSelectedElement();if(i&&n.isObject(i)){const i=t?r.getLastPosition():r.getFirstPosition(),o=n.getNearestSelectionRange(i,t?"forward":"backward");return o&&e.change(t=>{t.setSelection(o)}),!0}if(!r.isCollapsed)return;const o=this._getObjectElementNextToSelection(t);return o&&n.isObject(o)?(this._setSelectionOverElement(o),!0):void 0}_handleEnterKey(t){const e=this.editor.model,n=e.document.selection.getSelectedElement();if(function(t,e){return t&&e.isObject(t)&&!e.isInline(t)}(n,e.schema))return e.change(r=>{let i=r.createPositionAt(n,t?"before":"after");const o=r.createElement("paragraph");if(e.schema.isBlock(n.parent)){const t=e.schema.findAllowedParent(i,o);i=r.split(i,t).position}r.insert(o,i),r.setSelection(o,"in")}),!0}_selectAllNestedEditableContent(){const t=this.editor.model,e=t.document.selection,n=t.schema.getLimitElement(e);return e.getFirstRange().root!=n&&(t.change(t=>{t.setSelection(t.createRangeIn(n))}),!0)}_selectAllContent(){const t=this.editor.model,e=this.editor.editing,n=e.view.document.selection.getSelectedElement();if(n&&rh(n)){const r=e.mapper.toModelElement(n.parent);return t.change(t=>{t.setSelection(t.createRangeIn(r))}),!0}return!1}_setSelectionOverElement(t){this.editor.model.change(e=>{e.setSelection(e.createRangeOn(t))})}_getObjectElementNextToSelection(t){const e=this.editor.model,n=e.schema,r=e.document.selection,i=e.createSelection(r);e.modifySelection(i,{direction:t?"forward":"backward"});const o=t?i.focus.nodeBefore:i.focus.nodeAfter;return o&&n.isObject(o)?o:null}_clearPreviouslySelectedWidgets(t){for(const e of this._previouslySelected)t.removeClass(nh,e);this._previouslySelected.clear()}}function yh(t,e){return!!e&&Array.from(t.getAncestors()).includes(e)}class wh extends tu{refresh(){const t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=uh(t),uh(t)&&t.hasAttribute("alt")?this.value=t.getAttribute("alt"):this.value=!1}execute(t){const e=this.editor.model,n=e.document.selection.getSelectedElement();e.change(e=>{e.setAttribute("alt",t.newValue,n)})}}class kh extends Kc{init(){this.editor.commands.add("imageTextAlternative",new wh(this.editor))}}function _h({emitter:t,activator:e,callback:n,contextElements:r}){t.listenTo(document,"mousedown",(t,{target:i})=>{if(e()){for(const t of r)if(t.contains(i))return;n()}})}n(70);class xh extends jc{constructor(t,e){super(t);const n=`ck-input-${Jn()}`,r=`ck-status-${Jn()}`;this.set("label"),this.set("value"),this.set("isReadOnly",!1),this.set("errorText",null),this.set("infoText",null),this.labelView=this._createLabelView(n),this.inputView=this._createInputView(e,n,r),this.statusView=this._createStatusView(r),this.bind("_statusText").to(this,"errorText",this,"infoText",(t,e)=>t||e);const i=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-input",i.if("isReadOnly","ck-disabled")]},children:[this.labelView,this.inputView,this.statusView]})}_createLabelView(t){const e=new Lc(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}_createInputView(t,e,n){const r=new t(this.locale,n);return r.id=e,r.ariaDescribedById=n,r.bind("value").to(this),r.bind("isReadOnly").to(this),r.bind("hasError").to(this,"errorText",t=>!!t),r.on("input",()=>{this.errorText=null}),r}_createStatusView(t){const e=new jc(this.locale),n=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-input__status",n.if("errorText","ck-labeled-input__status_error"),n.if("_statusText","ck-hidden",t=>!t)],id:t},children:[{text:n.to("_statusText")}]}),e}select(){this.inputView.select()}focus(){this.inputView.focus()}}n(72);class Ch extends jc{constructor(t){super(t),this.set("value"),this.set("id"),this.set("placeholder"),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById");const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",e.if("hasError","ck-error")],id:e.to("id"),placeholder:e.to("placeholder"),readonly:e.to("isReadOnly"),"aria-invalid":e.if("hasError",!0),"aria-describedby":e.to("ariaDescribedById")},on:{input:e.to("input")}})}render(){super.render();const t=t=>{this.element.value=t||0===t?t:""};t(this.value),this.on("change:value",(e,n,r)=>{t(r)})}select(){this.element.select()}focus(){this.element.focus()}}function Sh({view:t}){t.listenTo(t.element,"submit",(e,n)=>{n.preventDefault(),t.fire("submit")},{useCapture:!0})}var Th=n(7),Oh=n.n(Th),Ph=n(8),Ah=n.n(Ph);n(74);class Eh extends jc{constructor(t){super(t);const e=this.locale.t;this.focusTracker=new oc,this.keystrokes=new Xl,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("aw"),Oh.a,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("ax"),Ah.a,"ck-button-cancel","cancel"),this._focusables=new pc,this._focusCycler=new Hc({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),Sh({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)})}_createButton(t,e,n,r){const i=new Hu(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}_createLabeledInputView(){const t=this.locale.t,e=new xh(this.locale,Ch);return e.label=t("bv"),e.inputView.placeholder=t("bv"),e}}function Mh({element:t,target:e,positions:n,limiter:r,fitInViewport:i}){U(e)&&(e=e()),U(r)&&(r=r());const o=function(t){for(;t&&"html"!=t.tagName.toLowerCase();){if("static"!=eo.window.getComputedStyle(t).position)return t;t=t.parentElement}return null}(t.parentElement),s=new Ss(t),a=new Ss(e);let l,c;if(r||i){const t=r&&new Ss(r).getVisible(),e=i&&new Ss(eo.window);[c,l]=function(t,e,n,r,i){let o,s,a=0,l=0;const c=n.getArea();return t.some(t=>{const[u,d]=Ih(t,e,n);let h,f;if(r)if(i){const t=r.getIntersection(i);h=t?t.getIntersectionArea(d):0}else h=r.getIntersectionArea(d);function p(){l=f,a=h,o=d,s=u}return i&&(f=i.getIntersectionArea(d)),i&&!r?f>l&&p():!i&&r?h>a&&p():f>l&&h>=a?p():f>=l&&h>a&&p(),h===c}),o?[s,o]:null}(n,a,s,t,e)||Ih(n[0],a,s)}else[c,l]=Ih(n[0],a,s);let{left:u,top:d}=Nh(l);if(o){const t=Nh(new Ss(o)),e=xs(o);u-=t.left,d-=t.top,u+=o.scrollLeft,d+=o.scrollTop,u-=e.left,d-=e.top}return{left:u,top:d,name:c}}function Ih(t,e,n){const{left:r,top:i,name:o}=t(e,n);return[o,n.clone().moveTo(r,i)]}function Nh({left:t,top:e}){const{scrollX:n,scrollY:r}=eo.window;return{left:t+n,top:e+r}}n(76);const jh=$c("px"),Dh=eo.document.body;class Lh extends jc{constructor(t){super(t);const e=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class"),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",e.to("position",t=>`ck-balloon-panel_${t}`),e.if("isVisible","ck-balloon-panel_visible"),e.if("withArrow","ck-balloon-panel_with-arrow"),e.to("class")],style:{top:e.to("top",jh),left:e.to("left",jh)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(t){this.show();const e=Lh.defaultPositions,n=Object.assign({},{element:this.element,positions:[e.southArrowNorth,e.southArrowNorthWest,e.southArrowNorthEast,e.northArrowSouth,e.northArrowSouthWest,e.northArrowSouthEast],limiter:Dh,fitInViewport:!0},t),r=Lh._getOptimalPosition(n),i=parseInt(r.left),o=parseInt(r.top),s=r.name;Object.assign(this,{top:o,left:i,position:s})}pin(t){this.unpin(),this._pinWhenIsVisibleCallback=(()=>{this.isVisible?this._startPinning(t):this._stopPinning()}),this._startPinning(t),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(t){this.attachTo(t);const e=Bh(t.target),n=t.limiter?Bh(t.limiter):Dh;this.listenTo(eo.document,"scroll",(r,i)=>{const o=i.target,s=e&&o.contains(e),a=n&&o.contains(n);!s&&!a&&e&&n||this.attachTo(t)},{useCapture:!0}),this.listenTo(eo.window,"resize",()=>{this.attachTo(t)})}_stopPinning(){this.stopListening(eo.document,"scroll"),this.stopListening(eo.window,"resize")}}function Bh(t){return Un(t)?t:_s(t)?t.commonAncestorContainer:"function"==typeof t?Bh(t()):null}function Rh(t,e){return t.top-e.height-Lh.arrowVerticalOffset}function Fh(t){return t.bottom+Lh.arrowVerticalOffset}Lh.arrowHorizontalOffset=25,Lh.arrowVerticalOffset=10,Lh._getOptimalPosition=Mh,Lh.defaultPositions={northArrowSouth:(t,e)=>({top:Rh(t,e),left:t.left+t.width/2-e.width/2,name:"arrow_s"}),northArrowSouthEast:(t,e)=>({top:Rh(t,e),left:t.left+t.width/2-e.width+Lh.arrowHorizontalOffset,name:"arrow_se"}),northArrowSouthWest:(t,e)=>({top:Rh(t,e),left:t.left+t.width/2-Lh.arrowHorizontalOffset,name:"arrow_sw"}),northWestArrowSouth:(t,e)=>({top:Rh(t,e),left:t.left-e.width/2,name:"arrow_s"}),northWestArrowSouthWest:(t,e)=>({top:Rh(t,e),left:t.left-Lh.arrowHorizontalOffset,name:"arrow_sw"}),northWestArrowSouthEast:(t,e)=>({top:Rh(t,e),left:t.left-e.width+Lh.arrowHorizontalOffset,name:"arrow_se"}),northEastArrowSouth:(t,e)=>({top:Rh(t,e),left:t.right-e.width/2,name:"arrow_s"}),northEastArrowSouthEast:(t,e)=>({top:Rh(t,e),left:t.right-e.width+Lh.arrowHorizontalOffset,name:"arrow_se"}),northEastArrowSouthWest:(t,e)=>({top:Rh(t,e),left:t.right-Lh.arrowHorizontalOffset,name:"arrow_sw"}),southArrowNorth:(t,e)=>({top:Fh(t),left:t.left+t.width/2-e.width/2,name:"arrow_n"}),southArrowNorthEast:(t,e)=>({top:Fh(t),left:t.left+t.width/2-e.width+Lh.arrowHorizontalOffset,name:"arrow_ne"}),southArrowNorthWest:(t,e)=>({top:Fh(t),left:t.left+t.width/2-Lh.arrowHorizontalOffset,name:"arrow_nw"}),southWestArrowNorth:(t,e)=>({top:Fh(t),left:t.left-e.width/2,name:"arrow_n"}),southWestArrowNorthWest:(t,e)=>({top:Fh(t),left:t.left-Lh.arrowHorizontalOffset,name:"arrow_nw"}),southWestArrowNorthEast:(t,e)=>({top:Fh(t),left:t.left-e.width+Lh.arrowHorizontalOffset,name:"arrow_ne"}),southEastArrowNorth:(t,e)=>({top:Fh(t),left:t.right-e.width/2,name:"arrow_n"}),southEastArrowNorthEast:(t,e)=>({top:Fh(t),left:t.right-e.width+Lh.arrowHorizontalOffset,name:"arrow_ne"}),southEastArrowNorthWest:(t,e)=>({top:Fh(t),left:t.right-Lh.arrowHorizontalOffset,name:"arrow_nw"})};var $h=n(28),Vh=n.n($h),zh=n(29),Hh=n.n(zh);n(78),n(80);const Wh=$c("px");class Uh extends Kc{static get pluginName(){return"ContextualBalloon"}constructor(t){super(t),this.positionLimiter=(()=>{const t=this.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null}),this.set("visibleView",null),this.view=new Lh(t.locale),t.ui.view.body.add(this.view),t.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}hasView(t){return Array.from(this._viewToStack.keys()).includes(t)}add(t){if(this.hasView(t.view))throw new Yn.b("contextualballoon-add-view-exist: Cannot add configuration of the same view twice.",[this,t]);const e=t.stackId||"main";if(!this._idToStack.has(e))return this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!t.singleViewMode||this.showStack(e));const n=this._idToStack.get(e);t.singleViewMode&&this.showStack(e),n.set(t.view,t),this._viewToStack.set(t.view,n),n===this._visibleStack&&this._showView(t)}remove(t){if(!this.hasView(t))throw new Yn.b("contextualballoon-remove-view-not-exist: Cannot remove the configuration of a non-existent view.",[this,t]);const e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(1===e.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),1===e.size?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}updatePosition(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(t){this.visibleStack=t;const e=this._idToStack.get(t);if(!e)throw new Yn.b("contextualballoon-showstack-stack-not-exist: Cannot show a stack that does not exist.",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(t){return Array.from(this._idToStack.entries()).find(e=>e[1]===t)[0]}_showNextStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}_showPrevStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}_createRotatorView(){const t=new qh(this.editor.locale),e=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(t,e)=>!e&&t>1),t.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(t,n)=>{if(n<2)return"";const r=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return e("bj",[r,n])}),t.buttonNextView.on("execute",()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),t.buttonPrevView.on("execute",()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),t}_createFakePanelsView(){const t=new Gh(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(t,e)=>{return!e&&t>=2?Math.min(t-1,2):0}),t.listenTo(this.view,"change:top",()=>t.updatePosition()),t.listenTo(this.view,"change:left",()=>t.updatePosition()),this.editor.ui.view.body.add(t),t}_showView({view:t,balloonClassName:e="",withArrow:n=!0,singleViewMode:r=!1}){this.view.class=e,this.view.withArrow=n,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),r&&(this._singleViewMode=!0)}_getBalloonPosition(){let t=Array.from(this._visibleStack.values()).pop().position;return t&&!t.limiter&&(t=Object.assign({},t,{limiter:this.positionLimiter})),t}}class qh extends jc{constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new oc,this.buttonPrevView=this._createButtonView(e("bk"),Vh.a),this.buttonNextView=this._createButtonView(e("bl"),Hh.a),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",t=>t?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}showView(t){this.hideView(),this.content.add(t)}hideView(){this.content.clear()}_createButtonView(t,e){const n=new Hu(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}class Gh extends jc{constructor(t,e){super(t);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=e,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",t=>t?"":"ck-hidden")],style:{top:n.to("top",Wh),left:n.to("left",Wh),width:n.to("width",Wh),height:n.to("height",Wh)}},children:this.content}),this.on("change:numberOfPanels",(t,e,n,r)=>{n>r?this._addPanels(n-r):this._removePanels(r-n),this.updatePosition()})}_addPanels(t){for(;t--;){const t=new jc;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}_removePanels(t){for(;t--;){const t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:t,left:e}=this._balloonPanelView,{width:n,height:r}=new Ss(this._balloonPanelView.element);Object.assign(this,{top:t,left:e,width:n,height:r})}}}var Yh=n(30),Kh=n.n(Yh);function Xh(t){const e=t.editing.view,n=Lh.defaultPositions;return{target:e.domConverter.viewToDom(e.document.selection.getSelectedElement()),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}class Jh extends Kc{static get requires(){return[Uh]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton(),this._createForm()}destroy(){super.destroy(),this._form.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",n=>{const r=t.commands.get("imageTextAlternative"),i=new Hu(n);return i.set({label:e("bm"),icon:Kh.a,tooltip:!0}),i.bind("isEnabled").to(r,"isEnabled"),this.listenTo(i,"execute",()=>this._showForm()),i})}_createForm(){const t=this.editor,e=t.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new Eh(t.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{t.execute("imageTextAlternative",{newValue:this._form.labeledInput.inputView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(t,e)=>{this._hideForm(!0),e()}),this.listenTo(t.ui,"update",()=>{ch(e.selection)?this._isVisible&&function(t){const e=t.plugins.get("ContextualBalloon");if(ch(t.editing.view.document.selection)){const n=Xh(t);e.updatePosition(n)}}(t):this._hideForm(!0)}),_h({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;const t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._balloon.hasView(this._form)||this._balloon.add({view:this._form,position:Xh(t)}),n.value=n.inputView.element.value=e.value||"",this._form.labeledInput.select()}_hideForm(t){this._isVisible&&(this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView==this._form}}class Qh extends Kc{static get requires(){return[kh,Jh]}static get pluginName(){return"ImageTextAlternative"}}n(82);class Zh extends Kc{static get requires(){return[ph,bh,Qh]}static get pluginName(){return"Image"}}class tf extends jc{constructor(t){super(t),this.buttonView=new Hu(t),this._fileInputView=new ef(t),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class ef extends jc{constructor(t){super(t),this.set("acceptedType"),this.set("allowMultipleFiles",!1);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}var nf=n(31),rf=n.n(nf);function of(t){return/^image\/(jpeg|png|gif|bmp)$/.test(t.type)}function sf(t){return new Promise((e,n)=>{const r=t.getAttribute("src");fetch(r).then(t=>t.blob()).then(t=>{const i=function(t,e){return t.type?t.type:e.match(/data:(image\/\w+);base64/)?e.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}(t,r),o=function(t,e,n){try{return new File([t],e,{type:n})}catch(t){return null}}(t,`image.${i.replace("image/","")}`,i);o?e(o):n()}).catch(n)})}class af extends Kc{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageUpload",n=>{const r=new tf(n),i=t.commands.get("imageUpload");return r.set({acceptedType:"image/*",allowMultipleFiles:!0}),r.buttonView.set({label:e("i"),icon:rf.a,tooltip:!0}),r.buttonView.bind("isEnabled").to(i),r.on("done",(e,n)=>{const r=Array.from(n).filter(of);r.length&&t.execute("imageUpload",{file:r})}),r})}}var lf=n(32),cf=n.n(lf);n(84),n(86),n(88);class uf extends Kc{constructor(t){super(t),this.placeholder="data:image/svg+xml;utf8,"+encodeURIComponent(cf.a)}init(){this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",(...t)=>this.uploadStatusChange(...t))}uploadStatusChange(t,e,n){const r=this.editor,i=e.item,o=i.getAttribute("uploadId");if(!n.consumable.consume(e.item,t.name))return;const s=r.plugins.get(Qu),a=o?e.attributeNewValue:null,l=this.placeholder,c=r.editing.mapper.toViewElement(i),u=n.writer;if("reading"==a)return df(c,u),void hf(l,c,u);if("uploading"==a){const t=s.loaders.get(o);return df(c,u),void(t?(ff(c,u),function(t,e,n,r){const i=function(t){const e=t.createUIElement("div",{class:"ck-progress-bar"});return t.setCustomProperty("progressBar",!0,e),e}(e);e.insert(e.createPositionAt(t,"end"),i),n.on("change:uploadedPercent",(t,e,n)=>{r.change(t=>{t.setStyle("width",n+"%",i)})})}(c,u,t,r.editing.view)):hf(l,c,u))}"complete"==a&&s.loaders.get(o)&&!fi.isEdge&&function(t,e,n){const r=e.createUIElement("div",{class:"ck-image-upload-complete-icon"});e.insert(e.createPositionAt(t,"end"),r),setTimeout(()=>{n.change(t=>t.remove(t.createRangeOn(r)))},3e3)}(c,u,r.editing.view),function(t,e){gf(t,e,"progressBar")}(c,u),ff(c,u),function(t,e){e.removeClass("ck-appear",t)}(c,u)}}function df(t,e){t.hasClass("ck-appear")||e.addClass("ck-appear",t)}function hf(t,e,n){e.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",e);const r=e.getChild(0);r.getAttribute("src")!==t&&n.setAttribute("src",t,r),pf(e,"placeholder")||n.insert(n.createPositionAfter(r),function(t){const e=t.createUIElement("div",{class:"ck-upload-placeholder-loader"});return t.setCustomProperty("placeholder",!0,e),e}(n))}function ff(t,e){t.hasClass("ck-image-upload-placeholder")&&e.removeClass("ck-image-upload-placeholder",t),gf(t,e,"placeholder")}function pf(t,e){for(const n of t.getChildren())if(n.getCustomProperty(e))return n}function gf(t,e,n){const r=pf(t,n);r&&e.remove(e.createRangeOn(r))}class mf{createDocumentFragment(t){return new xi(t)}createElement(t,e,n){return new yr(t,e,n)}createText(t){return new fr(t)}clone(t,e=!1){return t._clone(e)}appendChild(t,e){return e._appendChild(t)}insertChild(t,e,n){return n._insertChild(t,e)}removeChildren(t,e,n){return n._removeChildren(t,e)}remove(t){const e=t.parent;return e?this.removeChildren(e.getChildIndex(t),1,e):[]}replace(t,e){const n=t.parent;if(n){const r=n.getChildIndex(t);return this.removeChildren(r,1,n),this.insertChild(r,e,n),!0}return!1}rename(t,e){const n=new yr(t,e.getAttributes(),e.getChildren());return this.replace(e,n)?n:null}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){S(t)&&void 0===n&&(n=e),n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}createPositionAt(t,e){return Qr._createAt(t,e)}createPositionAfter(t){return Qr._createAfter(t)}createPositionBefore(t){return Qr._createBefore(t)}createRange(t,e){return new Zr(t,e)}createRangeOn(t){return Zr._createOn(t)}createRangeIn(t){return Zr._createIn(t)}createSelection(t,e,n){return new ni(t,e,n)}}class vf extends tu{refresh(){this.isEnabled=hh(this.editor.model)}execute(t){const e=this.editor,n=e.model,r=e.plugins.get(Qu);n.change(e=>{const i=Array.isArray(t.file)?t.file:[t.file];for(const t of i)bf(e,n,r,t)})}}function bf(t,e,n,r){const i=n.createLoader(r);i&&dh(t,e,{uploadId:i.id})}class yf extends Kc{static get requires(){return[Qu,Dd]}init(){const t=this.editor,e=t.model.document,n=t.model.schema,r=t.conversion,i=t.plugins.get(Qu);n.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),t.commands.add("imageUpload",new vf(t)),r.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(e,n)=>{if(function(t){return Array.from(t.types).includes("text/html")&&""!==t.getData("text/html")}(n.dataTransfer))return;const r=Array.from(n.dataTransfer.files).filter(t=>!!t&&of(t)),i=n.targetRanges.map(e=>t.editing.mapper.toModelRange(e));t.model.change(n=>{n.setSelection(i),r.length&&(e.stop(),t.model.enqueueChange("default",()=>{t.execute("imageUpload",{file:r})}))})}),t.plugins.has("Clipboard")&&this.listenTo(t.plugins.get("Clipboard"),"inputTransformation",(e,n)=>{const r=Array.from(t.editing.view.createRangeIn(n.content)).filter(t=>(function(t){return!(!t.is("element","img")||!t.getAttribute("src"))&&(t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||t.getAttribute("src").match(/^blob:/g))})(t.item)&&!t.item.getAttribute("uploadProcessed")).map(t=>({promise:sf(t.item),imageElement:t.item}));if(!r.length)return;const o=new mf;for(const t of r){o.setAttribute("uploadProcessed",!0,t.imageElement);const e=i.createLoader(t.promise);e&&(o.setAttribute("src","",t.imageElement),o.setAttribute("uploadId",e.id,t.imageElement))}}),t.editing.view.document.on("dragover",(t,e)=>{e.preventDefault()}),e.on("change",()=>{const t=e.differ.getChanges({includeChangesInGraveyard:!0});for(const e of t)if("insert"==e.type&&"image"==e.name){const t=e.position.nodeAfter,n="$graveyard"==e.position.root.rootName,r=t.getAttribute("uploadId");if(!r)continue;const o=i.loaders.get(r);if(!o)continue;n?o.abort():"idle"==o.status&&this._readAndUpload(o,t)}})}_readAndUpload(t,e){const n=this.editor,r=n.model,i=n.locale.t,o=n.plugins.get(Qu),s=n.plugins.get(Dd);return r.enqueueChange("transparent",t=>{t.setAttribute("uploadStatus","reading",e)}),t.read().then(i=>{const o=n.editing.mapper.toViewElement(e).getChild(0),s=t.upload();return n.editing.view.change(t=>{t.setAttribute("src",i,o)}),r.enqueueChange("transparent",t=>{t.setAttribute("uploadStatus","uploading",e)}),s}).then(t=>{r.enqueueChange("transparent",n=>{n.setAttributes({uploadStatus:"complete",src:t.default},e),this._parseAndSetSrcsetAttributeOnImage(t,e,n)}),a()}).catch(n=>{if("error"!==t.status&&"aborted"!==t.status)throw n;"error"==t.status&&n&&s.showWarning(n,{title:i("r"),namespace:"upload"}),a(),r.enqueueChange("transparent",t=>{t.remove(e)})});function a(){r.enqueueChange("transparent",t=>{t.removeAttribute("uploadId",e),t.removeAttribute("uploadStatus",e)}),o.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnImage(t,e,n){let r=0;const i=Object.keys(t).filter(t=>{const e=parseInt(t,10);if(!isNaN(e))return r=Math.max(r,e),!0}).map(e=>`${t[e]} ${e}w`).join(", ");""!=i&&n.setAttribute("srcset",{data:i,width:r},e)}}class wf extends Kc{static get pluginName(){return"ImageUpload"}static get requires(){return[yf,af,uf]}}class kf extends tu{refresh(){const t=this.editor.model,e=xd(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("paragraph"),this.isEnabled=!!e&&_f(e,t.schema)}execute(t={}){const e=this.editor.model,n=e.document;e.change(r=>{const i=(t.selection||n.selection).getSelectedBlocks();for(const t of i)!t.is("paragraph")&&_f(t,e.schema)&&r.rename(t,"paragraph")})}}function _f(t,e){return e.checkChild(t.parent,"paragraph")&&!e.isObject(t)}class xf extends Kc{static get pluginName(){return"Paragraph"}init(){const t=this.editor,e=t.model,n=t.data;t.commands.add("paragraph",new kf(t)),e.schema.register("paragraph",{inheritAllFrom:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:(t,e)=>xf.paragraphLikeElements.has(t.name)?t.isEmpty?null:e.createElement("paragraph"):null,converterPriority:"low"}),n.upcastDispatcher.on("element",(t,e,n)=>{n.consumable.test(e.viewItem,{name:e.viewItem.name})&&Sf(e.viewItem,e.modelCursor,n.schema)&&Object.assign(e,Cf(e.viewItem,e.modelCursor,n))},{priority:"low"}),n.upcastDispatcher.on("text",(t,e,n)=>{e.modelRange||Sf(e.viewItem,e.modelCursor,n.schema)&&Object.assign(e,Cf(e.viewItem,e.modelCursor,n))},{priority:"lowest"}),e.document.registerPostFixer(t=>this._autoparagraphEmptyRoots(t)),t.data.on("ready",()=>{e.enqueueChange("transparent",t=>this._autoparagraphEmptyRoots(t))},{priority:"lowest"})}_autoparagraphEmptyRoots(t){const e=this.editor.model;for(const n of e.document.getRootNames()){const r=e.document.getRoot(n);if(r.isEmpty&&"$graveyard"!=r.rootName&&e.schema.checkChild(r,"paragraph"))return t.insertElement("paragraph",r),!0}}}function Cf(t,e,n){const r=n.writer.createElement("paragraph");return n.writer.insert(r,e),n.convertItem(t,n.writer.createPositionAt(r,0))}function Sf(t,e,n){const r=n.createContext(e);return!!n.checkChild(r,"paragraph")&&!!n.checkChild(r.push("paragraph"),t)}xf.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td"]);class Tf extends tu{constructor(t,e){super(t),this.modelElements=e}refresh(){const t=xd(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some(e=>Of(t,e,this.editor.model.schema))}execute(t){const e=this.editor.model,n=e.document,r=t.value;e.change(t=>{const i=Array.from(n.selection.getSelectedBlocks()).filter(t=>Of(t,r,e.schema));for(const e of i)e.is(r)||t.rename(e,r)})}}function Of(t,e,n){return n.checkChild(t.parent,e)&&!n.isObject(t)}const Pf="paragraph";class Af extends Kc{constructor(t){super(t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[xf]}init(){const t=this.editor,e=t.config.get("heading.options"),n=[];for(const r of e)r.model!==Pf&&(t.model.schema.register(r.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(r),n.push(r.model));this._addDefaultH1Conversion(t),t.commands.add("heading",new Tf(t,n))}afterInit(){const t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",(e,r)=>{const i=t.model.document.selection.getFirstPosition().parent;n.some(t=>i.is(t.model))&&!i.is(Pf)&&0===i.childCount&&r.writer.rename(i,Pf)})}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Qn.get("low")+1})}}class Ef{constructor(t,e){e&&Lr(this,e),t&&this.set(t)}}lr(Ef,Vr);class Mf extends jc{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",e.to("position",t=>`ck-dropdown__panel_${t}`),e.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:e.to(t=>t.preventDefault())}})}focus(){this.children.length&&this.children.first.focus()}focusLast(){if(this.children.length){const t=this.children.last;"function"==typeof t.focusLast?t.focusLast():t.focus()}}}n(90);class If extends jc{constructor(t,e,n){super(t);const r=this.bindTemplate;this.buttonView=e,this.panelView=n,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("panelPosition","auto"),this.focusTracker=new oc,this.keystrokes=new Xl,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",r.to("class"),r.if("isEnabled","ck-disabled",t=>!t)]},children:[e,n]}),e.extendTemplate({attributes:{class:["ck-dropdown__button"]}})}render(){super.render(),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",()=>{if(this.isOpen)if("auto"===this.panelPosition){const t=If.defaultPanelPositions;this.panelView.position=Mh({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:[t.southEast,t.southWest,t.northEast,t.northWest]}).name}else this.panelView.position=this.panelPosition}),this.keystrokes.listenTo(this.element),this.focusTracker.add(this.element);const t=(t,e)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,e())};this.keystrokes.set("arrowdown",(t,e)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,e())}),this.keystrokes.set("arrowright",(t,e)=>{this.isOpen&&e()}),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}focus(){this.buttonView.focus()}}If.defaultPanelPositions={southEast:t=>({top:t.bottom,left:t.left,name:"se"}),southWest:(t,e)=>({top:t.bottom,left:t.left-e.width+t.width,name:"sw"}),northEast:(t,e)=>({top:t.top-e.height,left:t.left,name:"ne"}),northWest:(t,e)=>({top:t.bottom-e.height,left:t.left-e.width+t.width,name:"nw"})};var Nf=n(33),jf=n.n(Nf);class Df extends Hu{constructor(t){super(t),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const t=new Vu;return t.content=jf.a,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}n(92);class Lf extends jc{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new oc,this.keystrokes=new Xl,this._focusCycler=new Hc({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",(t,e)=>{this.focusTracker.add(e.element)}),this.items.on("remove",(t,e)=>{this.focusTracker.remove(e.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class Bf extends jc{constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:this.children})}focus(){this.children.first.focus()}}class Rf extends jc{constructor(t){super(t),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}n(94);class Ff extends Hu{constructor(t){super(t),this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const t=new jc;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}function $f(t,e=Df){const n=new e(t),r=new Mf(t),i=new If(t,n,r);return n.bind("isEnabled").to(i),n instanceof Df?n.bind("isOn").to(i,"isOpen"):n.arrowView.bind("isOn").to(i,"isOpen"),function(t){(function(t){t.on("render",()=>{_h({emitter:t,activator:()=>t.isOpen,callback:()=>{t.isOpen=!1},contextElements:[t.element]})})})(t),function(t){t.on("execute",e=>{e.source instanceof Ff||(t.isOpen=!1)})}(t),function(t){t.keystrokes.set("arrowdown",(e,n)=>{t.isOpen&&(t.panelView.focus(),n())}),t.keystrokes.set("arrowup",(e,n)=>{t.isOpen&&(t.panelView.focusLast(),n())})}(t)}(i),i}function Vf(t,e){const n=t.locale,r=t.listView=new Lf(n);r.items.bindTo(e).using(({type:t,model:e})=>{if("separator"===t)return new Rf(n);if("button"===t||"switchbutton"===t){const r=new Bf(n);let i;return(i="button"===t?new Hu(n):new Ff(n)).bind(...Object.keys(e)).to(e),i.delegate("execute").to(r),r.children.add(i),r}}),t.panelView.children.add(r),r.items.delegate("execute").to(t)}n(96),n(98),n(17);class zf extends Kc{init(){const t=this.editor,e=t.t,n=function(t){const e=t.t,n={Paragraph:e("bn"),"Heading 1":e("bo"),"Heading 2":e("bp"),"Heading 3":e("bq"),"Heading 4":e("br"),"Heading 5":e("bs"),"Heading 6":e("bt")};return t.config.get("heading.options").map(t=>{const e=n[t.title];return e&&e!=t.title&&(t.title=e),t})}(t),r=e("f"),i=e("g");t.ui.componentFactory.add("heading",e=>{const o={},s=new ii,a=t.commands.get("heading"),l=t.commands.get("paragraph"),c=[a];for(const t of n){const e={type:"button",model:new Ef({label:t.title,class:t.class,withText:!0})};"paragraph"===t.model?(e.model.bind("isOn").to(l,"value"),e.model.set("commandName","paragraph"),c.push(l)):(e.model.bind("isOn").to(a,"value",e=>e===t.model),e.model.set({commandName:"heading",commandValue:t.model})),s.add(e),o[t.model]=t.title}const u=$f(e);return Vf(u,s),u.buttonView.set({isOn:!1,withText:!0,tooltip:i}),u.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),u.bind("isEnabled").toMany(c,"isEnabled",(...t)=>t.some(t=>t)),u.buttonView.bind("label").to(a,"value",l,"value",(t,e)=>{const n=t||e&&"paragraph";return o[n]?o[n]:r}),this.listenTo(u,"execute",e=>{t.execute(e.source.commandName,e.source.commandValue?{value:e.source.commandValue}:void 0),t.editing.view.focus()}),u})}}function Hf(t){for(const e of t.getChildren())if(e&&e.is("caption"))return e;return null}function Wf(t){const e=t.parent;return"figcaption"==t.name&&e&&"figure"==e.name&&e.hasClass("image")?{name:!0}:null}class Uf extends Kc{init(){const t=this.editor,e=t.editing.view,n=t.model.schema,r=t.data,i=t.editing,o=t.t;n.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),t.model.document.registerPostFixer(t=>this._insertMissingModelCaptionElement(t)),t.conversion.for("upcast").elementToElement({view:Wf,model:"caption"}),r.downcastDispatcher.on("insert:caption",qf(t=>t.createContainerElement("figcaption"),!1));const s=function(t,e){return n=>{const r=n.createEditableElement("figcaption");return n.setCustomProperty("imageCaption",!0,r),lc({view:t,element:r,text:e}),sh(r,n)}}(e,o("q"));i.downcastDispatcher.on("insert:caption",qf(s)),i.downcastDispatcher.on("insert",this._fixCaptionVisibility(t=>t.item),{priority:"high"}),i.downcastDispatcher.on("remove",this._fixCaptionVisibility(t=>t.position.parent),{priority:"high"}),e.document.registerPostFixer(t=>this._updateCaptionVisibility(t))}_updateCaptionVisibility(t){const e=this.editor.editing.mapper,n=this._lastSelectedCaption;let r;const i=this.editor.model.document.selection,o=i.getSelectedElement();if(o&&o.is("image")){const t=Hf(o);r=e.toViewElement(t)}const s=Gf(i.getFirstPosition().parent);if(s&&(r=e.toViewElement(s)),r)return n?n===r?Kf(r,t):(Yf(n,t),this._lastSelectedCaption=r,Kf(r,t)):(this._lastSelectedCaption=r,Kf(r,t));if(n){const e=Yf(n,t);return this._lastSelectedCaption=null,e}return!1}_fixCaptionVisibility(t){return(e,n,r)=>{const i=Gf(t(n)),o=this.editor.editing.mapper,s=r.writer;if(i){const t=o.toViewElement(i);t&&(i.childCount?s.removeClass("ck-hidden",t):s.addClass("ck-hidden",t))}}}_insertMissingModelCaptionElement(t){const e=this.editor.model,n=e.document.differ.getChanges(),r=[];for(const i of n)if("insert"==i.type&&"$text"!=i.name){const t=i.position.nodeAfter;if(t.is("image")&&!Hf(t)&&r.push(t),!t.is("image")&&t.childCount)for(const n of e.createRangeIn(t).getItems())n.is("image")&&!Hf(n)&&r.push(n)}for(const i of r)t.appendElement("caption",i);return!!r.length}}function qf(t,e=!0){return(n,r,i)=>{const o=r.item;if((o.childCount||e)&&uh(o.parent)){if(!i.consumable.consume(r.item,"insert"))return;const e=i.mapper.toViewElement(r.range.start.parent),n=t(i.writer),s=i.writer;o.childCount||s.addClass("ck-hidden",n),function(t,e,n,r){const i=r.writer.createPositionAt(n,"end");r.writer.insert(i,t),r.mapper.bindElements(e,t)}(n,r.item,e,i)}}}function Gf(t){const e=t.getAncestors({includeSelf:!0}).find(t=>"caption"==t.name);return e&&e.parent&&"image"==e.parent.name?e:null}function Yf(t,e){return!t.childCount&&!t.hasClass("ck-hidden")&&(e.addClass("ck-hidden",t),!0)}function Kf(t,e){return!!t.hasClass("ck-hidden")&&(e.removeClass("ck-hidden",t),!0)}n(101);class Xf extends tu{constructor(t,e){super(t),this.defaultStyle=!1,this.styles=e.reduce((t,e)=>(t[e.name]=e,e.isDefault&&(this.defaultStyle=e.name),t),{})}refresh(){const t=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=uh(t),t)if(t.hasAttribute("imageStyle")){const e=t.getAttribute("imageStyle");this.value=!!this.styles[e]&&e}else this.value=this.defaultStyle;else this.value=!1}execute(t){const e=t.value,n=this.editor.model,r=n.document.selection.getSelectedElement();n.change(t=>{this.styles[e].isDefault?t.removeAttribute("imageStyle",r):t.setAttribute("imageStyle",e,r)})}}function Jf(t,e){for(const n of e)if(n.name===t)return n}var Qf=n(13),Zf=n.n(Qf),tp=n(14),ep=n.n(tp),np=n(15),rp=n.n(np),ip=n(11),op=n.n(ip);const sp={full:{name:"full",title:"Full size image",icon:Zf.a,isDefault:!0},side:{name:"side",title:"Side image",icon:op.a,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:ep.a,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:rp.a,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:op.a,className:"image-style-align-right"}},ap={full:Zf.a,left:ep.a,right:op.a,center:rp.a};function lp(t=[]){return t.map(cp)}function cp(t){if("string"==typeof t){const e=t;sp[e]?t=Object.assign({},sp[e]):(vs.a.warn("image-style-not-found: There is no such image style of given name.",{name:e}),t={name:e})}else if(sp[t.name]){const e=sp[t.name],n=Object.assign({},t);for(const r in e)t.hasOwnProperty(r)||(n[r]=e[r]);t=n}return"string"==typeof t.icon&&ap[t.icon]&&(t.icon=ap[t.icon]),t}class up extends Kc{static get pluginName(){return"ImageStyleEditing"}init(){const t=this.editor,e=t.model.schema,n=t.data,r=t.editing;t.config.define("image.styles",["full","side"]);const i=lp(t.config.get("image.styles"));e.extend("image",{allowAttributes:"imageStyle"});const o=function(t){return(e,n,r)=>{if(!r.consumable.consume(n.item,e.name))return;const i=Jf(n.attributeNewValue,t),o=Jf(n.attributeOldValue,t),s=r.mapper.toViewElement(n.item),a=r.writer;o&&a.removeClass(o.className,s),i&&a.addClass(i.className,s)}}(i);r.downcastDispatcher.on("attribute:imageStyle:image",o),n.downcastDispatcher.on("attribute:imageStyle:image",o),n.upcastDispatcher.on("element:figure",function(t){const e=t.filter(t=>!t.isDefault);return(t,n,r)=>{if(!n.modelRange)return;const i=n.viewItem,o=xd(n.modelRange.getItems());if(r.schema.checkAttribute(o,"imageStyle"))for(const s of e)r.consumable.consume(i,{classes:s.className})&&r.writer.setAttribute("imageStyle",s.name,o)}}(i),{priority:"low"}),t.commands.add("imageStyle",new Xf(t,i))}}n(103);class dp extends Kc{static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Full size image":t("j"),"Side image":t("k"),"Left aligned image":t("l"),"Centered image":t("m"),"Right aligned image":t("n")}}init(){const t=function(t,e){for(const n of t)e[n.title]&&(n.title=e[n.title]);return t}(lp(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles);for(const e of t)this._createButton(e)}_createButton(t){const e=this.editor,n=`imageStyle:${t.name}`;e.ui.componentFactory.add(n,n=>{const r=e.commands.get("imageStyle"),i=new Hu(n);return i.set({label:t.title,icon:t.icon,tooltip:!0}),i.bind("isEnabled").to(r,"isEnabled"),i.bind("isOn").to(r,"value",e=>e===t.name),this.listenTo(i,"execute",()=>e.execute("imageStyle",{value:t.name})),i})}}class hp extends Kc{static get requires(){return[Uh]}static get pluginName(){return"WidgetToolbarRepository"}init(){const t=this.editor;if(t.plugins.has("BalloonToolbar")){const e=t.plugins.get("BalloonToolbar");this.listenTo(e,"show",e=>{(function(t){const e=t.getSelectedElement();return!(!e||!rh(e))})(t.editing.view.document.selection)&&e.stop()},{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.listenTo(t.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(t.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const t of this._toolbarDefinitions.values())t.view.destroy()}register(t,{items:e,getRelatedElement:n,balloonClassName:r="ck-toolbar-container"}){const i=this.editor,o=new qc;if(this._toolbarDefinitions.has(t))throw new Yn.b("widget-toolbar-duplicated: Toolbar with the given id was already added.",this,{toolbarId:t});o.fillFromConfig(e,i.ui.componentFactory),this._toolbarDefinitions.set(t,{view:o,getRelatedElement:n,balloonClassName:r})}_updateToolbarsVisibility(){let t=0,e=null,n=null;for(const r of this._toolbarDefinitions.values()){const i=r.getRelatedElement(this.editor.editing.view.document.selection);if(this.editor.ui.focusTracker.isFocused)if(i){const o=i.getAncestors().length;o>t&&(t=o,e=i,n=r)}else this._isToolbarInBalloon(r)&&this._hideToolbar(r);else this._isToolbarVisible(r)&&this._hideToolbar(r)}n&&this._showToolbar(n,e)}_hideToolbar(t){this._balloon.remove(t.view)}_showToolbar(t,e){this._isToolbarVisible(t)?function(t,e){const n=t.plugins.get("ContextualBalloon"),r=fp(t,e);n.updatePosition(r)}(this.editor,e):this._isToolbarInBalloon(t)||this._balloon.add({view:t.view,position:fp(this.editor,e),balloonClassName:t.balloonClassName})}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function fp(t,e){const n=t.editing.view,r=Lh.defaultPositions;return{target:n.domConverter.mapViewToDom(e),positions:[r.northArrowSouth,r.northArrowSouthWest,r.northArrowSouthEast,r.southArrowNorth,r.southArrowNorthWest,r.southArrowNorthEast]}}function pp(t,e,n){return n.createRange(gp(t,e,!0,n),gp(t,e,!1,n))}function gp(t,e,n,r){let i=t.textNode||(n?t.nodeBefore:t.nodeAfter),o=null;for(;i&&i.getAttribute("linkHref")==e;)o=i,i=n?i.previousSibling:i.nextSibling;return o?r.createPositionAt(o,n?"before":"after"):t}class mp extends tu{constructor(t){super(t),this.manualDecorators=new ii}restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document;this.value=e.selection.getAttribute("linkHref");for(const n of this.manualDecorators)n.value=this._getDecoratorStateFromModel(n.id);this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"linkHref")}execute(t,e={}){const n=this.editor.model,r=n.document.selection,i=[],o=[];for(const s in e)e[s]?i.push(s):o.push(s);n.change(e=>{if(r.isCollapsed){const s=r.getFirstPosition();if(r.hasAttribute("linkHref")){const a=pp(s,r.getAttribute("linkHref"),n);e.setAttribute("linkHref",t,a),i.forEach(t=>{e.setAttribute(t,!0,a)}),o.forEach(t=>{e.removeAttribute(t,a)}),e.setSelection(a)}else if(""!==t){const o=Fs(r.getAttributes());o.set("linkHref",t),i.forEach(t=>{o.set(t,!0)});const a=e.createText(t,o);n.insertContent(a,s),e.setSelection(e.createRangeOn(a))}}else{const s=n.schema.getValidRanges(r.getRanges(),"linkHref");for(const n of s)e.setAttribute("linkHref",t,n),i.forEach(t=>{e.setAttribute(t,!0,n)}),o.forEach(t=>{e.removeAttribute(t,n)})}})}_getDecoratorStateFromModel(t){return this.editor.model.document.selection.getAttribute(t)||!1}}class vp extends tu{refresh(){this.isEnabled=this.editor.model.document.selection.hasAttribute("linkHref")}execute(){const t=this.editor,e=this.editor.model,n=e.document.selection,r=t.commands.get("link");e.change(t=>{const i=n.isCollapsed?[pp(n.getFirstPosition(),n.getAttribute("linkHref"),e)]:n.getRanges();for(const e of i)if(t.removeAttribute("linkHref",e),r)for(const n of r.manualDecorators)t.removeAttribute(n.id,e)})}}var bp=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o},yp=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:bp(t,e,n)},wp=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),kp=function(t){return wp.test(t)},_p=function(t){return t.split("")},xp="[\\ud800-\\udfff]",Cp="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Sp="\\ud83c[\\udffb-\\udfff]",Tp="[^\\ud800-\\udfff]",Op="(?:\\ud83c[\\udde6-\\uddff]){2}",Pp="[\\ud800-\\udbff][\\udc00-\\udfff]",Ap="(?:"+Cp+"|"+Sp+")?",Ep="[\\ufe0e\\ufe0f]?"+Ap+"(?:\\u200d(?:"+[Tp,Op,Pp].join("|")+")[\\ufe0e\\ufe0f]?"+Ap+")*",Mp="(?:"+[Tp+Cp+"?",Cp,Op,Pp,xp].join("|")+")",Ip=RegExp(Sp+"(?="+Sp+")|"+Mp+Ep,"g"),Np=function(t){return t.match(Ip)||[]},jp=function(t){return kp(t)?Np(t):_p(t)},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},Lp=1/0,Bp=i?i.prototype:void 0,Rp=Bp?Bp.toString:void 0,Fp=function t(e){if("string"==typeof e)return e;if(Ut(e))return Dp(e,t)+"";if(is(e))return Rp?Rp.call(e):"";var n=e+"";return"0"==n&&1/e==-Lp?"-0":n},$p=function(t){return null==t?"":Fp(t)},Vp=function(t){return function(e){e=$p(e);var n=kp(e)?jp(e):void 0,r=n?n[0]:e.charAt(0),i=n?yp(n,1).join(""):e.slice(1);return r[t]()+i}}("toUpperCase");const zp=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Hp=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function Wp(t,e){const n=e.createAttributeElement("a",{href:t},{priority:5});return e.setCustomProperty("link",!0,n),n}function Up(t){return function(t){return t.replace(zp,"").match(Hp)}(t=String(t))?t:"#"}class qp{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach(t=>this._definitions.add(t)):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",(t,e,n)=>{if(!n.consumable.test(e.item,"attribute:linkHref"))return;const r=n.writer,i=r.document.selection;for(const o of this._definitions){const t=r.createAttributeElement("a",o.attributes,{priority:5});r.setCustomProperty("link",!0,t),o.callback(e.attributeNewValue)?e.item.is("selection")?r.wrap(i.getFirstRange(),t):r.wrap(n.mapper.toViewRange(e.range),t):r.unwrap(n.mapper.toViewRange(e.range),t)}},{priority:"high"})}}}class Gp{constructor({id:t,label:e,attributes:n}){this.id=t,this.set("value"),this.label=e,this.attributes=n}}lr(Gp,Vr);class Yp{constructor(t,e,n){this.model=t,this.attribute=n,this._modelSelection=t.document.selection,this._overrideUid=null,this._isNextGravityRestorationSkipped=!1,e.listenTo(this._modelSelection,"change:range",(t,e)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!e.directChange&&Kp(this._modelSelection.getFirstPosition(),n)||this._restoreGravity())})}handleForwardMovement(t,e){const n=this.attribute;if(!(this._isGravityOverridden||t.isAtStart&&this._hasSelectionAttribute))return Qp(t,n)&&this._hasSelectionAttribute?(this._preventCaretMovement(e),this._removeSelectionAttribute(),!0):Xp(t,n)?(this._preventCaretMovement(e),this._overrideGravity(),!0):Jp(t,n)&&this._hasSelectionAttribute?(this._preventCaretMovement(e),this._overrideGravity(),!0):void 0}handleBackwardMovement(t,e){const n=this.attribute;return this._isGravityOverridden?Qp(t,n)&&this._hasSelectionAttribute?(this._preventCaretMovement(e),this._restoreGravity(),this._removeSelectionAttribute(),!0):(this._preventCaretMovement(e),this._restoreGravity(),t.isAtStart&&this._removeSelectionAttribute(),!0):Qp(t,n)&&!this._hasSelectionAttribute?(this._preventCaretMovement(e),this._setSelectionAttributeFromTheNodeBefore(t),!0):t.isAtEnd&&Jp(t,n)?this._hasSelectionAttribute?void(Zp(t,n)&&(this._skipNextAutomaticGravityRestoration(),this._overrideGravity())):(this._preventCaretMovement(e),this._setSelectionAttributeFromTheNodeBefore(t),!0):t.isAtStart?this._hasSelectionAttribute?(this._removeSelectionAttribute(),this._preventCaretMovement(e),!0):void 0:void(Zp(t,n)&&(this._skipNextAutomaticGravityRestoration(),this._overrideGravity()))}get _isGravityOverridden(){return!!this._overrideUid}get _hasSelectionAttribute(){return this._modelSelection.hasAttribute(this.attribute)}_overrideGravity(){this._overrideUid=this.model.change(t=>t.overrideSelectionGravity())}_restoreGravity(){this.model.change(t=>{t.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}_preventCaretMovement(t){t.preventDefault()}_removeSelectionAttribute(){this.model.change(t=>{t.removeSelectionAttribute(this.attribute)})}_setSelectionAttributeFromTheNodeBefore(t){const e=this.attribute;this.model.change(n=>{n.setSelectionAttribute(this.attribute,t.nodeBefore.getAttribute(e))})}_skipNextAutomaticGravityRestoration(){this._isNextGravityRestorationSkipped=!0}}function Kp(t,e){return Xp(t,e)||Jp(t,e)}function Xp(t,e){const{nodeBefore:n,nodeAfter:r}=t,i=!!n&&n.hasAttribute(e);return!!r&&r.hasAttribute(e)&&(!i||n.getAttribute(e)!==r.getAttribute(e))}function Jp(t,e){const{nodeBefore:n,nodeAfter:r}=t,i=!!n&&n.hasAttribute(e),o=!!r&&r.hasAttribute(e);return i&&(!o||n.getAttribute(e)!==r.getAttribute(e))}function Qp(t,e){const{nodeBefore:n,nodeAfter:r}=t,i=!!n&&n.hasAttribute(e);if(r&&r.hasAttribute(e)&&i)return r.getAttribute(e)!==n.getAttribute(e)}function Zp(t,e){return Kp(t.getShiftedBy(-1),e)}n(105);const tg="ck-link_selected",eg="automatic",ng="manual",rg=/^(https?:)?\/\//;class ig extends Kc{constructor(t){super(t),t.config.define("link",{addTargetToExternalLinks:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Wp}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(t,e)=>Wp(Up(t),e)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:t=>t.getAttribute("href")}}),t.commands.add("link",new mp(t)),t.commands.add("unlink",new vp(t));const e=function(t,e){const n={"Open in a new tab":t("au"),Downloadable:t("av")};return e.forEach(t=>(t.label&&n[t.label]&&(t.label=n[t.label]),t)),e}(t.t,function(t){const e=[];if(t)for(const[n,r]of Object.entries(t)){const t=Object.assign({},r,{id:`link${Vp(n)}`});e.push(t)}return e}(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter(t=>t.mode===eg)),this._enableManualDecorators(e.filter(t=>t.mode===ng)),function(t,e,n,r){const i=new Yp(e,n,r),o=e.document.selection;n.listenTo(t.document,"keydown",(t,e)=>{if(!o.isCollapsed)return;if(e.shiftKey||e.altKey||e.ctrlKey)return;const n=e.keyCode==mi.arrowright,r=e.keyCode==mi.arrowleft;if(!n&&!r)return;const s=o.getFirstPosition();let a;(a=n?i.handleForwardMovement(s,e):i.handleBackwardMovement(s,e))&&t.stop()},{priority:Qn.get("high")+1})}(t.editing.view,t.model,this,"linkHref"),this._setupLinkHighlight()}_enableAutomaticDecorators(t){const e=this.editor,n=new qp;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:eg,callback:t=>rg.test(t),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach(t=>{e.model.schema.extend("$text",{allowAttributes:t.id}),n.add(new Gp(t)),e.conversion.for("downcast").attributeToElement({model:t.id,view:(e,r)=>{if(e){const e=n.get(t.id).attributes,i=r.createAttributeElement("a",e,{priority:5});return r.setCustomProperty("link",!0,i),i}}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:n.get(t.id).attributes},model:{key:t.id}})})}_setupLinkHighlight(){const t=this.editor,e=t.editing.view,n=new Set;e.document.registerPostFixer(e=>{const r=t.model.document.selection;if(r.hasAttribute("linkHref")){const i=pp(r.getFirstPosition(),r.getAttribute("linkHref"),t.model),o=t.editing.mapper.toViewRange(i);for(const t of o.getItems())t.is("a")&&(e.addClass(tg,t),n.add(t))}}),t.conversion.for("editingDowncast").add(t=>{function r(){e.change(t=>{for(const e of n.values())t.removeClass(tg,e),n.delete(e)})}t.on("insert",r,{priority:"highest"}),t.on("remove",r,{priority:"highest"}),t.on("attribute",r,{priority:"highest"}),t.on("selection",r,{priority:"highest"})})}}class og extends ts{constructor(t){super(t),this.domEventType="click"}onDomEvent(t){this.fire(t.type,t)}}n(107);class sg extends jc{constructor(t,e=[]){super(t);const n=t.t;this.focusTracker=new oc,this.keystrokes=new Xl,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("aw"),Oh.a,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("ax"),Ah.a,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e),this._focusables=new pc,this._focusCycler=new Hc({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const r=["ck","ck-link-form"];e.length&&r.push("ck-link-form_layout-vertical"),this.setTemplate({tag:"form",attributes:{class:r,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((t,e)=>(t[e.name]=e.isOn,t),{})}render(){super.render(),Sh({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const t=this.locale.t,e=new xh(this.locale,Ch);return e.label=t("bf"),e.inputView.placeholder="https://example.com",e}_createButton(t,e,n,r){const i=new Hu(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t){const t=new Ff(this.locale);t.set({name:n.id,label:n.label,withText:!0}),t.bind("isOn").to(n,"value"),t.on("execute",()=>{n.set("value",!t.isOn)}),e.add(t)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const t=new jc;t.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(t=>({tag:"li",children:[t],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(t)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}var ag=n(34),lg=n.n(ag),cg=n(35),ug=n.n(cg);n(109);class dg extends jc{constructor(t){super(t);const e=t.t;this.focusTracker=new oc,this.keystrokes=new Xl,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(e("bb"),lg.a,"unlink"),this.editButtonView=this._createButton(e("bc"),ug.a,"edit"),this.set("href"),this._focusables=new pc,this._focusCycler=new Hc({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const r=new Hu(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.delegate("execute").to(this,n),r}_createPreviewButton(){const t=new Hu(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("bd")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",t=>t&&Up(t)),target:"_blank"}}),t.bind("label").to(this,"href",t=>t||n("be")),t.bind("isEnabled").to(this,"href",t=>!!t),t.template.tag="a",t.template.eventListeners={},t}}var hg=n(36),fg=n.n(hg);const pg="Ctrl+K";class gg extends Kc{static get requires(){return[Uh]}static get pluginName(){return"LinkUI"}init(){const t=this.editor;t.editing.view.addObserver(og),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=t.plugins.get(Uh),this._createToolbarLinkButton(),this._enableUserBalloonInteractions()}destroy(){super.destroy(),this.formView.destroy()}_createActionsView(){const t=this.editor,e=new dg(t.locale),n=t.commands.get("link"),r=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(r),this.listenTo(e,"edit",()=>{this._addFormView()}),this.listenTo(e,"unlink",()=>{t.execute("unlink"),this._hideUI()}),e.keystrokes.set("Esc",(t,e)=>{this._hideUI(),e()}),e.keystrokes.set(pg,(t,e)=>{this._addFormView(),e()}),e}_createFormView(){const t=this.editor,e=t.commands.get("link"),n=new sg(t.locale,e.manualDecorators);return n.urlInputView.bind("value").to(e,"value"),n.urlInputView.bind("isReadOnly").to(e,"isEnabled",t=>!t),n.saveButtonView.bind("isEnabled").to(e),this.listenTo(n,"submit",()=>{t.execute("link",n.urlInputView.inputView.element.value,n.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(n,"cancel",()=>{this._closeFormView()}),n.keystrokes.set("Esc",(t,e)=>{this._closeFormView(),e()}),n}_createToolbarLinkButton(){const t=this.editor,e=t.commands.get("link"),n=t.t;t.keystrokes.set(pg,(t,n)=>{n(),e.isEnabled&&this._showUI(!0)}),t.ui.componentFactory.add("link",t=>{const r=new Hu(t);return r.isEnabled=!0,r.label=n("ao"),r.icon=fg.a,r.keystroke=pg,r.tooltip=!0,r.bind("isOn","isEnabled").to(e,"value","isEnabled"),this.listenTo(r,"execute",()=>this._showUI(!0)),r})}_enableUserBalloonInteractions(){const t=this.editor.editing.view.document;this.listenTo(t,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),this.editor.keystrokes.set("Tab",(t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())},{priority:"high"}),this.editor.keystrokes.set("Esc",(t,e)=>{this._isUIVisible&&(this._hideUI(),e())}),_h({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this._isFormInPanel)return;const t=this.editor.commands.get("link");this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.select(),this.formView.urlInputView.inputView.element.value=t.value||""}_closeFormView(){const t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus())}_showUI(t=!1){this.editor.commands.get("link").isEnabled&&(this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI())}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView)}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedLinkElement(),r=i();function i(){return e.selection.focus.getAncestors().reverse().find(t=>t.is("element"))}this.listenTo(t.ui,"update",()=>{const t=this._getSelectedLinkElement(),e=i();n&&!t||!n&&e!==r?this._hideUI():this._balloon.updatePosition(this._getBalloonPositionData()),n=t,r=e})}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,e=t.document,n=this._getSelectedLinkElement();return{target:n?t.domConverter.mapViewToDom(n):t.domConverter.viewRangeToDom(e.selection.getFirstRange())}}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection;if(e.isCollapsed)return mg(e.getFirstPosition());{const n=e.getFirstRange().getTrimmed(),r=mg(n.start),i=mg(n.end);return r&&r==i&&t.createRangeIn(r).getTrimmed().isEqual(n)?r:null}}}function mg(t){return t.getAncestors().find(t=>(function(t){return t.is("attributeElement")&&!!t.getCustomProperty("link")})(t))}class vg extends tu{constructor(t,e){super(t),this.type="bulleted"==e?"bulleted":"numbered"}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=t.document,n=Array.from(e.selection.getSelectedBlocks()).filter(e=>yg(e,t.schema)),r=!0===this.value;t.change(t=>{if(r){let e=n[n.length-1].nextSibling,r=Number.POSITIVE_INFINITY,i=[];for(;e&&"listItem"==e.name&&0!==e.getAttribute("listIndent");){const t=e.getAttribute("listIndent");t<r&&(r=t);const n=t-r;i.push({element:e,listIndent:n}),e=e.nextSibling}i=i.reverse();for(const n of i)t.setAttribute("listIndent",n.listIndent,n.element)}if(!r){let t=Number.POSITIVE_INFINITY;for(const e of n)e.is("listItem")&&e.getAttribute("listIndent")<t&&(t=e.getAttribute("listIndent"));bg(n,!0,t=0===t?1:t),bg(n,!1,t)}for(const e of n.reverse())r&&"listItem"==e.name?t.rename(e,"paragraph"):r||"listItem"==e.name?r||"listItem"!=e.name||e.getAttribute("listType")==this.type||t.setAttribute("listType",this.type,e):(t.setAttributes({listType:this.type,listIndent:0},e),t.rename(e,"listItem"))})}_getValue(){const t=xd(this.editor.model.document.selection.getSelectedBlocks());return!!t&&t.is("listItem")&&t.getAttribute("listType")==this.type}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=xd(t.getSelectedBlocks());return!!n&&yg(n,e)}}function bg(t,e,n){const r=e?t[0]:t[t.length-1];if(r.is("listItem")){let i=r[e?"previousSibling":"nextSibling"],o=r.getAttribute("listIndent");for(;i&&i.is("listItem")&&i.getAttribute("listIndent")>=n;)o>i.getAttribute("listIndent")&&(o=i.getAttribute("listIndent")),i.getAttribute("listIndent")==o&&t[e?"unshift":"push"](i),i=i[e?"previousSibling":"nextSibling"]}}function yg(t,e){return e.checkChild(t.parent,"listItem")&&!e.isObject(t)}class wg extends tu{constructor(t,e){super(t),this._indentBy="forward"==e?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=t.document;let n=Array.from(e.selection.getSelectedBlocks());t.change(t=>{const e=n[n.length-1];let r=e.nextSibling;for(;r&&"listItem"==r.name&&r.getAttribute("listIndent")>e.getAttribute("listIndent");)n.push(r),r=r.nextSibling;this._indentBy<0&&(n=n.reverse());for(const i of n){const e=i.getAttribute("listIndent")+this._indentBy;e<0?t.rename(i,"paragraph"):t.setAttribute("listIndent",e,i)}})}_checkEnabled(){const t=xd(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("listItem"))return!1;if(this._indentBy>0){const e=t.getAttribute("listIndent"),n=t.getAttribute("listType");let r=t.previousSibling;for(;r&&r.is("listItem")&&r.getAttribute("listIndent")>=e;){if(r.getAttribute("listIndent")==e)return r.getAttribute("listType")==n;r=r.previousSibling}return!1}return!0}}function kg(){const t=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||t?0:xr.call(this)}function _g(t){return(e,n,r)=>{const i=r.consumable;if(!i.test(n.item,"insert")||!i.test(n.item,"attribute:listType")||!i.test(n.item,"attribute:listIndent"))return;i.consume(n.item,"insert"),i.consume(n.item,"attribute:listType"),i.consume(n.item,"attribute:listIndent");const o=n.item;Lg(o,function(t,e){const n=e.mapper,r=e.writer,i="numbered"==t.getAttribute("listType")?"ol":"ul",o=function(t){const e=t.createContainerElement("li");return e.getFillerOffset=kg,e}(r),s=r.createContainerElement(i,null);return r.insert(r.createPositionAt(s,0),o),n.bindElements(t,o),o}(o,r),r,t)}}function xg(t){return(e,n,r)=>{const i=r.mapper.toViewPosition(n.position).getLastMatchingPosition(t=>!t.item.is("li")).nodeAfter,o=r.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));const s=i.parent,a=s.previousSibling,l=o.createRangeOn(s),c=o.remove(l);a&&a.nextSibling&&Dg(o,a,a.nextSibling),Bg(r.mapper.toModelElement(i).getAttribute("listIndent")+1,n.position,l.start,i,r,t);for(const t of o.createRangeIn(c).getItems())r.mapper.unbindViewElement(t);e.stop()}}function Cg(t,e,n){if(!n.consumable.consume(e.item,"attribute:listType"))return;const r=n.mapper.toViewElement(e.item),i=n.writer;i.breakContainer(i.createPositionBefore(r)),i.breakContainer(i.createPositionAfter(r));let o=r.parent;const s="numbered"==e.attributeNewValue?"ol":"ul";Dg(i,o=i.rename(s,o),o.nextSibling),Dg(i,o.previousSibling,o);for(const a of e.item.getChildren())n.consumable.consume(a,"insert")}function Sg(t){return(e,n,r)=>{if(!r.consumable.consume(n.item,"attribute:listIndent"))return;const i=r.mapper.toViewElement(n.item),o=r.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));const s=i.parent,a=s.previousSibling,l=o.createRangeOn(s);o.remove(l),a&&a.nextSibling&&Dg(o,a,a.nextSibling),Bg(n.attributeOldValue+1,n.range.start,l.start,i,r,t),Lg(n.item,i,r,t);for(const t of n.item.getChildren())r.consumable.consume(t,"insert")}}function Tg(t,e,n){if("listItem"!=e.item.name){let t=n.mapper.toViewPosition(e.range.start);const r=n.writer,i=[];for(;("ul"==t.parent.name||"ol"==t.parent.name)&&"li"==(t=r.breakContainer(t)).parent.name;){const e=t,n=r.createPositionAt(t.parent,"end");if(!e.isEqual(n)){const t=r.remove(r.createRange(e,n));i.push(t)}t=r.createPositionAfter(t.parent)}if(i.length>0){for(let e=0;e<i.length;e++){const n=t.nodeBefore;if(t=r.insert(t,i[e]).end,e>0){const e=Dg(r,n,n.nextSibling);e&&e.parent==n&&t.offset--}}Dg(r,t.nodeBefore,t.nodeAfter)}}}function Og(t,e,n){const r=n.mapper.toViewPosition(e.position),i=r.nodeBefore,o=r.nodeAfter;Dg(n.writer,i,o)}function Pg(t,e,n){if(n.consumable.consume(e.viewItem,{name:!0})){const t=n.writer,r=this.conversionApi.store,i=t.createElement("listItem");r.indent=r.indent||0,t.setAttribute("listIndent",r.indent,i);const o=e.viewItem.parent&&"ol"==e.viewItem.parent.name?"numbered":"bulleted";t.setAttribute("listType",o,i),r.indent++;const s=n.splitToAllowedParent(i,e.modelCursor);if(!s)return;t.insert(i,s.position);const a=function(t,e,n){const{writer:r,schema:i}=n;let o=r.createPositionAfter(t);for(const s of e)if("ul"==s.name||"ol"==s.name)o=n.convertItem(s,o).modelCursor;else{const e=n.convertItem(s,r.createPositionAt(t,"end")),a=e.modelRange.start.nodeAfter,l=a&&a.is("element")&&!i.checkChild(t,a.name);l&&(t=e.modelCursor.parent.is("listItem")?e.modelCursor.parent:Ng(e.modelCursor),o=r.createPositionAfter(t))}return o}(i,e.viewItem.getChildren(),n);r.indent--,e.modelRange=t.createRange(e.modelCursor,a),s.cursorParent?e.modelCursor=t.createPositionAt(s.cursorParent,0):e.modelCursor=e.modelRange.end}}function Ag(t,e,n){if(n.consumable.test(e.viewItem,{name:!0})){const t=Array.from(e.viewItem.getChildren());for(const e of t)e.is("li")||e._remove()}}function Eg(t,e,n){if(n.consumable.test(e.viewItem,{name:!0})){if(0===e.viewItem.childCount)return;const t=[...e.viewItem.getChildren()];let n=!1,r=!0;for(const e of t)!n||e.is("ul")||e.is("ol")||e._remove(),e.is("text")?(r&&(e._data=e.data.replace(/^\s+/,"")),(!e.nextSibling||e.nextSibling.is("ul")||e.nextSibling.is("ol"))&&(e._data=e.data.replace(/\s+$/,""))):(e.is("ul")||e.is("ol"))&&(n=!0),r=!1}}function Mg(t){return(e,n)=>{if(n.isPhantom)return;const r=n.modelPosition.nodeBefore;if(r&&r.is("listItem")){const e=n.mapper.toViewElement(r),i=e.getAncestors().find(t=>t.is("ul")||t.is("ol")),o=t.createPositionAt(e,0).getWalker();for(const t of o){if("elementStart"==t.type&&t.item.is("li")){n.viewPosition=t.previousPosition;break}if("elementEnd"==t.type&&t.item==i){n.viewPosition=t.nextPosition;break}}}}}function Ig(t,[e,n]){let r,i=e.is("documentFragment")?e.getChild(0):e;if(r=n?this.createSelection(n):this.document.selection,i&&i.is("listItem")){const t=r.getFirstPosition();let e=null;if(t.parent.is("listItem")?e=t.parent:t.nodeBefore&&t.nodeBefore.is("listItem")&&(e=t.nodeBefore),e){const t=e.getAttribute("listIndent");if(t>0)for(;i&&i.is("listItem");)i._setAttribute("listIndent",i.getAttribute("listIndent")+t),i=i.nextSibling}}}function Ng(t){const e=new Us({startPosition:t});let n;do{n=e.next()}while(!n.value.item.is("listItem"));return n.value.item}function jg(t,e){const n=!!e.sameIndent,r=!!e.smallerIndent,i=e.listIndent;let o=t;for(;o&&"listItem"==o.name;){const t=o.getAttribute("listIndent");if(n&&i==t||r&&i>t)return o;o=o.previousSibling}return null}function Dg(t,e,n){return e&&n&&("ul"==e.name||"ol"==e.name)&&e.name==n.name?t.mergeContainers(t.createPositionAfter(e)):null}function Lg(t,e,n,r){const i=e.parent,o=n.mapper,s=n.writer;let a=o.toViewPosition(r.createPositionBefore(t));const l=jg(t.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:t.getAttribute("listIndent")}),c=t.previousSibling;if(l&&l.getAttribute("listIndent")==t.getAttribute("listIndent")){const t=o.toViewElement(l);a=s.breakContainer(s.createPositionAfter(t))}else a=c&&"listItem"==c.name?o.toViewPosition(r.createPositionAt(c,"end")):o.toViewPosition(r.createPositionBefore(t));if(a=Rg(a),s.insert(a,i),c&&"listItem"==c.name){const t=o.toViewElement(c),n=s.createRange(s.createPositionAt(t,0),a).getWalker({ignoreElementEnd:!0});for(const r of n)if(r.item.is("li")){const t=s.breakContainer(s.createPositionBefore(r.item)),i=r.item.parent,o=s.createPositionAt(e,"end");Dg(s,o.nodeBefore,o.nodeAfter),s.move(s.createRangeOn(i),o),n.position=t}}else{const n=i.nextSibling;if(n&&(n.is("ul")||n.is("ol"))){let r=null;for(const e of n.getChildren()){const n=o.toModelElement(e);if(!(n&&n.getAttribute("listIndent")>t.getAttribute("listIndent")))break;r=e}r&&(s.breakContainer(s.createPositionAfter(r)),s.move(s.createRangeOn(r.parent),s.createPositionAt(e,"end")))}}Dg(s,i,i.nextSibling),Dg(s,i.previousSibling,i)}function Bg(t,e,n,r,i,o){const s=jg(e.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:t,foo:"b"}),a=i.mapper,l=i.writer,c=s?s.getAttribute("listIndent"):null;let u;if(s)if(c==t){const t=a.toViewElement(s).parent;u=l.createPositionAfter(t)}else{const t=o.createPositionAt(s,"end");u=a.toViewPosition(t)}else u=n;u=Rg(u);for(const d of[...r.getChildren()])(d.is("ul")||d.is("ol"))&&(u=l.move(l.createRangeOn(d),u).end,Dg(l,d,d.nextSibling),Dg(l,d.previousSibling,d))}function Rg(t){return t.getLastMatchingPosition(t=>t.item.is("uiElement"))}class Fg extends Kc{static get requires(){return[xf]}init(){const t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const e=t.data,n=t.editing;t.model.document.registerPostFixer(e=>(function(t,e){const n=t.document.differ.getChanges(),r=new Map;let i=!1;for(const l of n)if("insert"==l.type&&"listItem"==l.name)o(l.position);else if("insert"==l.type&&"listItem"!=l.name){if("$text"!=l.name){const t=l.position.nodeAfter;t.hasAttribute("listIndent")&&(e.removeAttribute("listIndent",t),i=!0),t.hasAttribute("listType")&&(e.removeAttribute("listType",t),i=!0)}o(l.position.getShiftedBy(l.length))}else"remove"==l.type&&"listItem"==l.name?o(l.position):"attribute"==l.type&&"listIndent"==l.attributeKey?o(l.range.start):"attribute"==l.type&&"listType"==l.attributeKey&&o(l.range.start);for(const l of r.values())s(l),a(l);return i;function o(t){const e=t.nodeBefore;if(e&&e.is("listItem")){let n=e;if(r.has(n))return;for(;n.previousSibling&&n.previousSibling.is("listItem");)if(n=n.previousSibling,r.has(n))return;r.set(t.nodeBefore,n)}else{const e=t.nodeAfter;e&&e.is("listItem")&&r.set(e,e)}}function s(t){let n=0,r=null;for(;t&&t.is("listItem");){const o=t.getAttribute("listIndent");if(o>n){let s;null===r?(r=o-n,s=n):(r>o&&(r=o),s=o-r),e.setAttribute("listIndent",s,t),i=!0}else r=null,n=t.getAttribute("listIndent")+1;t=t.nextSibling}}function a(t){let n=[],r=null;for(;t&&t.is("listItem");){const o=t.getAttribute("listIndent");if(r&&r.getAttribute("listIndent")>o&&(n=n.slice(0,o+1)),0!=o)if(n[o]){const r=n[o];t.getAttribute("listType")!=r&&(e.setAttribute("listType",r,t),i=!0)}else n[o]=t.getAttribute("listType");r=t,t=t.nextSibling}}})(t.model,e)),n.mapper.registerViewToModelLength("li",$g),e.mapper.registerViewToModelLength("li",$g),n.mapper.on("modelToViewPosition",Mg(n.view)),n.mapper.on("viewToModelPosition",function(t){return(e,n)=>{const r=n.viewPosition,i=r.parent,o=n.mapper;if("ul"==i.name||"ol"==i.name){if(r.isAtEnd){const e=o.toModelElement(r.nodeBefore),i=o.getModelLength(r.nodeBefore);n.modelPosition=t.createPositionBefore(e).getShiftedBy(i)}else{const e=o.toModelElement(r.nodeAfter);n.modelPosition=t.createPositionBefore(e)}e.stop()}else if("li"==i.name&&r.nodeBefore&&("ul"==r.nodeBefore.name||"ol"==r.nodeBefore.name)){const s=o.toModelElement(i);let a=1,l=r.nodeBefore;for(;l&&(l.is("ul")||l.is("ol"));)a+=o.getModelLength(l),l=l.previousSibling;n.modelPosition=t.createPositionBefore(s).getShiftedBy(a),e.stop()}}}(t.model)),e.mapper.on("modelToViewPosition",Mg(n.view)),n.downcastDispatcher.on("insert",Tg,{priority:"high"}),n.downcastDispatcher.on("insert:listItem",_g(t.model)),e.downcastDispatcher.on("insert",Tg,{priority:"high"}),e.downcastDispatcher.on("insert:listItem",_g(t.model)),n.downcastDispatcher.on("attribute:listType:listItem",Cg),e.downcastDispatcher.on("attribute:listType:listItem",Cg),n.downcastDispatcher.on("attribute:listIndent:listItem",Sg(t.model)),e.downcastDispatcher.on("attribute:listIndent:listItem",Sg(t.model)),n.downcastDispatcher.on("remove:listItem",xg(t.model)),n.downcastDispatcher.on("remove",Og,{priority:"low"}),e.downcastDispatcher.on("remove:listItem",xg(t.model)),e.downcastDispatcher.on("remove",Og,{priority:"low"}),e.upcastDispatcher.on("element:ul",Ag,{priority:"high"}),e.upcastDispatcher.on("element:ol",Ag,{priority:"high"}),e.upcastDispatcher.on("element:li",Eg,{priority:"high"}),e.upcastDispatcher.on("element:li",Pg),t.model.on("insertContent",Ig,{priority:"high"}),t.commands.add("numberedList",new vg(t,"numbered")),t.commands.add("bulletedList",new vg(t,"bulleted")),t.commands.add("indentList",new wg(t,"forward")),t.commands.add("outdentList",new wg(t,"backward"));const r=this.editor.editing.view.document;this.listenTo(r,"enter",(t,e)=>{const n=this.editor.model.document,r=n.selection.getLastPosition().parent;n.selection.isCollapsed&&"listItem"==r.name&&r.isEmpty&&(this.editor.execute("outdentList"),e.preventDefault(),t.stop())}),this.listenTo(r,"delete",(t,e)=>{if("backward"!==e.direction)return;const n=this.editor.model.document.selection;if(!n.isCollapsed)return;const r=n.getFirstPosition();if(!r.isAtStart)return;const i=r.parent;"listItem"===i.name&&(i.previousSibling&&"listItem"===i.previousSibling.name||(this.editor.execute("outdentList"),e.preventDefault(),t.stop()))},{priority:"high"});const i=t=>(e,n)=>{this.editor.commands.get(t).isEnabled&&(this.editor.execute(t),n())};t.keystrokes.set("Tab",i("indentList")),t.keystrokes.set("Shift+Tab",i("outdentList"))}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"))}}function $g(t){let e=1;for(const n of t.getChildren())if("ul"==n.name||"ol"==n.name)for(const t of n.getChildren())e+=$g(t);return e}var Vg=n(37),zg=n.n(Vg),Hg=n(38),Wg=n.n(Hg);class Ug extends Kc{init(){const t=this.editor.t;this._addButton("numberedList",t("o"),zg.a),this._addButton("bulletedList",t("p"),Wg.a)}_addButton(t,e,n){const r=this.editor;r.ui.componentFactory.add(t,i=>{const o=r.commands.get(t),s=new Hu(i);return s.set({label:e,icon:n,tooltip:!0}),s.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(s,"execute",()=>r.execute(t)),s})}}function qg(t,e){return t=>{t.on("attribute:url:media",n)};function n(n,r,i){if(!i.consumable.consume(r.item,n.name))return;const o=r.attributeNewValue,s=i.writer,a=i.mapper.toViewElement(r.item);s.remove(s.createRangeIn(a));const l=t.getMediaViewElement(s,o,e);s.insert(s.createPositionAt(a,0),l)}}function Gg(t,e,n,r){const i=t.createContainerElement("figure",{class:"media"});return i.getFillerOffset=Xg,t.insert(t.createPositionAt(i,0),e.getMediaViewElement(t,n,r)),i}function Yg(t){const e=t.getSelectedElement();return e&&e.is("media")?e:null}function Kg(t,e,n){t.change(r=>{const i=r.createElement("media",{url:e});t.insertContent(i,n),r.setSelection(i,"on")})}function Xg(){return null}class Jg extends tu{refresh(){const t=this.editor.model,e=t.document.selection,n=t.schema,r=e.getFirstPosition(),i=Yg(e);let o=r.parent;o!=o.root&&(o=o.parent),this.value=i?i.getAttribute("url"):null,this.isEnabled=n.checkChild(o,"media")}execute(t){const e=this.editor.model,n=e.document.selection,r=Yg(n);if(r)e.change(e=>{e.setAttribute("url",t,r)});else{const r=ah(n,e);Kg(e,t,r)}}}var Qg=n(39),Zg=n.n(Qg);const tm="0 0 64 42";class em{constructor(t,e){const n=e.providers,r=e.extraProviders||[],i=new Set(e.removeProviders),o=n.concat(r).filter(t=>{const e=t.name;return e?!i.has(e):(vs.a.warn("media-embed-no-provider-name: The configured media provider has no name and cannot be used.",{provider:t}),!1)});this.locale=t,this.providerDefinitions=o}hasMedia(t){return!!this._getMedia(t)}getMediaViewElement(t,e,n){return this._getMedia(e).getViewElement(t,n)}_getMedia(t){if(!t)return new nm(this.locale);t=t.trim();for(const e of this.providerDefinitions){const n=e.html;let r=e.url;Array.isArray(r)||(r=[r]);for(const e of r){const r=this._getUrlMatches(t,e);if(r)return new nm(this.locale,t,r,n)}}return null}_getUrlMatches(t,e){let n=t.match(e);if(n)return n;let r=t.replace(/^https?:\/\//,"");return(n=r.match(e))?n:(n=(r=r.replace(/^www\./,"")).match(e))||null}}class nm{constructor(t,e,n,r){this.url=this._getValidUrl(e),this._t=t.t,this._match=n,this._previewRenderer=r}getViewElement(t,e){const n={};if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),e.renderForEditingView&&(n.class="ck-media__wrapper");const r=this._getPreviewHtml(e);return t.createUIElement("div",n,function(t){const e=this.toDomElement(t);return e.innerHTML=r,e})}return this.url&&(n.url=this.url),t.createEmptyElement("oembed",n)}_getPreviewHtml(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const t=new zu,e=new Vu;return t.text=this._t("Open media in new tab"),e.content=Zg.a,e.viewBox=tm,new mc({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[e]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},t]}]}).render().outerHTML}_getValidUrl(t){return t?t.match(/^https?/)?t:"https://"+t:null}}n(111);class rm extends Kc{static get pluginName(){return"MediaEmbedEditing"}constructor(t){super(t),t.config.define("mediaEmbed",{providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:t=>{return'<div style="position: relative; padding-bottom: 100%; height: 0; ">'+`<iframe src="https://www.dailymotion.com/embed/video/${t[1]}" `+'style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>'}},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:t=>{return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;">'+`<iframe src="https://open.spotify.com/embed/${t[1]}" `+'style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>'}},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:t=>{return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;">'+`<iframe src="https://www.youtube.com/embed/${t[1]}" `+'style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>'}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^\/]+\/[^\/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^\/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^\/]+\/(\d+)/,/^vimeo\.com\/groups\/[^\/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^\/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:t=>{return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;">'+`<iframe src="https://player.vimeo.com/video/${t[1]}" `+'style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>'}},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:/^google\.com\/maps/},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new em(t.locale,t.config.get("mediaEmbed"))}init(){const t=this.editor,e=t.model.schema,n=t.t,r=t.conversion,i=t.config.get("mediaEmbed.previewsInData"),o=this.registry;t.commands.add("mediaEmbed",new Jg(t)),e.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),r.for("dataDowncast").elementToElement({model:"media",view:(t,e)=>{const n=t.getAttribute("url");return Gg(e,o,n,{renderMediaPreview:n&&i})}}),r.for("dataDowncast").add(qg(o,{renderMediaPreview:i})),r.for("editingDowncast").elementToElement({model:"media",view:(t,e)=>{const r=t.getAttribute("url");return function(t,e,n){return e.setCustomProperty("media",!0,t),ih(t,e,{label:n})}(Gg(e,o,r,{renderForEditingView:!0}),e,n("ak"))}}),r.for("editingDowncast").add(qg(o,{renderForEditingView:!0})),r.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:(t,e)=>{const n=t.getAttribute("url");if(o.hasMedia(n))return e.createElement("media",{url:n})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(t,e)=>{const n=t.getAttribute("data-oembed-url");if(o.hasMedia(n))return e.createElement("media",{url:n})}})}}const im=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:\/?#[\]@!$&'()*+,;=]+$/;class om extends Kc{static get requires(){return[Zc,Ku]}static get pluginName(){return"AutoMediaEmbed"}constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}init(){const t=this.editor,e=t.model.document;this.listenTo(t.plugins.get(Zc),"inputTransformation",()=>{const t=e.selection.getFirstRange(),n=jl.fromPosition(t.start);n.stickiness="toPrevious";const r=jl.fromPosition(t.end);r.stickiness="toNext",e.once("change:data",()=>{this._embedMediaBetweenPositions(n,r),n.detach(),r.detach()},{priority:"high"})}),t.commands.get("undo").on("execute",()=>{this._timeoutId&&(eo.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(t,e){const n=this.editor,r=n.plugins.get(rm).registry,i=new oa(t,e),o=i.getWalker({ignoreElementEnd:!0});let s="";for(const a of o)a.item.is("textProxy")&&(s+=a.item.data);(s=s.trim()).match(im)&&r.hasMedia(s)&&n.commands.get("mediaEmbed").isEnabled&&(this._positionToInsert=jl.fromPosition(t),this._timeoutId=eo.window.setTimeout(()=>{n.model.change(t=>{let e;this._timeoutId=null,t.remove(i),"$graveyard"!==this._positionToInsert.root.rootName&&(e=this._positionToInsert),Kg(n.model,s,e),this._positionToInsert.detach(),this._positionToInsert=null})},100))}}n(113);class sm extends jc{constructor(t,e){super(e);const n=e.t;this.focusTracker=new oc,this.keystrokes=new Xl,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("aw"),Oh.a,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("ax"),Ah.a,"ck-button-cancel","cancel"),this._focusables=new pc,this._focusCycler=new Hc({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),Sh({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t),this.listenTo(this.urlInputView.element,"selectstart",(t,e)=>{e.stopPropagation()},{priority:"high"})}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.inputView.element.value.trim()}set url(t){this.urlInputView.inputView.element.value=t.trim()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new xh(this.locale,Ch),n=e.inputView;return this._urlInputViewInfoDefault=t("ay"),this._urlInputViewInfoTip=t("az"),e.label=t("ba"),e.infoText=this._urlInputViewInfoDefault,n.placeholder="https://example.com",n.on("input",()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault}),e}_createButton(t,e,n,r){const i=new Hu(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}}var am=n(40),lm=n.n(am);class cm extends Kc{static get requires(){return[rm]}static get pluginName(){return"MediaEmbedUI"}init(){const t=this.editor,e=t.commands.get("mediaEmbed"),n=t.plugins.get(rm).registry;this.form=new sm(function(t,e){return[e=>{if(!e.url.length)return t("am")},n=>{if(!e.hasMedia(n.url))return t("an")}]}(t.t,n),t.locale),t.ui.componentFactory.add("mediaEmbed",n=>{const r=$f(n);return this._setUpDropdown(r,this.form,e,t),this._setUpForm(this.form,r,e),r})}_setUpDropdown(t,e,n){const r=this.editor,i=r.t,o=t.buttonView;function s(){r.editing.view.focus(),t.isOpen=!1}t.bind("isEnabled").to(n),t.panelView.children.add(e),o.set({label:i("al"),icon:lm.a,tooltip:!0}),o.on("open",()=>{e.url=n.value||"",e.urlInputView.select(),e.focus()},{priority:"low"}),t.on("submit",()=>{e.isValid()&&(r.execute("mediaEmbed",e.url),s())}),t.on("change:isOpen",()=>e.resetFormStatus()),t.on("cancel",()=>s())}_setUpForm(t,e,n){t.delegate("submit","cancel").to(e),t.urlInputView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",t=>!t),t.saveButtonView.bind("isEnabled").to(n)}}function um(t){return t.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(t,e)=>1===e.length?" ":Array(e.length+1).join("  ").substr(0,e.length))}function dm(t){const e=new DOMParser,n=function(t){return um(um(t)).replace(/(<span style=['"]mso-spacerun:yes['"]>[\s]*?)[\r\n]+(\s*<\/span>)/g,"$1$2").replace(/<span style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/ <\//g," </").replace(/ <o:p><\/o:p>/g," <o:p></o:p>").replace(/>(\s*[\r\n]\s*)</g,"><")}(function(t){const e=t.match(/<\/body>(.*?)(<\/html>|$)/);return e&&e[1]&&(t=t.slice(0,e.index)+t.slice(e.index).replace(e[1],"")),t}(t=t.replace(/<!--\[if gte vml 1]>/g,""))),r=e.parseFromString(n,"text/html");!function(t){t.querySelectorAll("span[style*=spacerun]").forEach(t=>{const e=t.childNodes[0].data.length;t.innerHTML=Array(e+1).join("  ").substr(0,e)})}(r);const i=r.body.innerHTML,o=function(t){const e=new io({blockFiller:Li}),n=t.createDocumentFragment(),r=t.body.childNodes;for(;r.length>0;)n.appendChild(r[0]);return e.domToView(n)}(r),s=function(t){const e=[],n=[],r=Array.from(t.getElementsByTagName("style"));for(const i of r)i.sheet&&i.sheet.cssRules&&i.sheet.cssRules.length&&(e.push(i.sheet),n.push(i.innerHTML));return{styles:e,stylesString:n.join(" ")}}(r);return{body:o,bodyString:i,styles:s.styles,stylesString:s.stylesString}}function hm(t,e){if(!t.childCount)return;const n=new mf,r=function(t,e){const n=e.createRangeIn(t),r=new vr({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),i=[];for(const o of n)if("elementStart"===o.type&&r.match(o.item)){const t=fm(o.item);i.push({element:o.item,id:t.id,order:t.order,indent:t.indent})}return i}(t,n);if(!r.length)return;let i=null;r.forEach((t,o)=>{if(!i||function(t,e){if(t.id!==e.id)return!0;const n=e.element.previousSibling;return!n||!n.is("ul")&&!n.is("ol")}(r[o-1],t)){const r=function(t,e){const n=/mso-level-number-format:([^;]*);/gi,r=new RegExp(`@list l${t.id}:level${t.indent}\\s*({[^}]*)`,"gi").exec(e);let i="decimal";if(r&&r[1]){const t=n.exec(r[1]);t&&t[1]&&(i=t[1].trim())}return{type:"bullet"!==i&&"image"!==i?"ol":"ul",style:i}}(t,e);i=function(t,e,n){const r=new yr(t.type),i=e.parent.getChildIndex(e);return n.insertChild(i,r,e.parent),r}(r,t.element,n)}const s=function(t,e){return function(t,e){const n=new vr({name:"span",styles:{"mso-list":"Ignore"}}),r=e.createRangeIn(t);for(const i of r)"elementStart"===i.type&&n.match(i.item)&&e.remove(i.item)}(t,e),e.rename("li",t)}(t.element,n);n.appendChild(s,i)})}function fm(t){const e={},n=t.getStyle("mso-list");return n&&(e.id=parseInt(n.match(/(^|\s+)l(\d+)/i)[2]),e.order=parseInt(n.match(/\s*lfo(\d+)/i)[1]),e.indent=parseInt(n.match(/\s*level(\d+)/i)[1])),e}function pm(t,e){if(!t.childCount)return;const n=new mf;!function(t,e,n){const r=n.createRangeIn(e),i=new vr({name:"img"}),o=[];for(const s of r)if(i.match(s.item)){const e=s.item,n=e.getAttribute("v:shapes")?e.getAttribute("v:shapes").split(" "):[];n.length&&n.every(e=>t.indexOf(e)>-1)?o.push(e):e.getAttribute("src")||o.push(e)}for(const s of o)n.remove(s)}(function(t,e){const n=e.createRangeIn(t),r=new vr({name:/v:(.+)/}),i=[];for(const o of n){const t=o.item,e=t.previousSibling&&t.previousSibling.name||null;r.match(t)&&t.getAttribute("o:gfxdata")&&"v:shapetype"!==e&&i.push(o.item.getAttribute("id"))}return i}(t,n),t,n),function(t,e){const n=e.createRangeIn(t),r=new vr({name:/v:(.+)/}),i=[];for(const o of n)r.match(o.item)&&i.push(o.item);for(const o of i)e.remove(o)}(t,n);const r=function(t,e){const n=e.createRangeIn(t),r=new vr({name:"img"}),i=[];for(const o of n)r.match(o.item)&&o.item.getAttribute("src").startsWith("file://")&&i.push(o.item);return i}(t,n);r.length&&function(t,e,n){if(t.length===e.length)for(let r=0;r<t.length;r++){const i=`data:${e[r].type};base64,${gm(e[r].hex)}`;n.setAttribute("src",i,t[r])}}(r,function(t){if(!t)return[];const e=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+e.source+"))([\\da-fA-F\\s]+)\\}","g"),r=t.match(n),i=[];if(r)for(const o of r){let t=!1;o.includes("\\pngblip")?t="image/png":o.includes("\\jpegblip")&&(t="image/jpeg"),t&&i.push({hex:o.replace(e,"").replace(/[^\da-fA-F]/g,""),type:t})}return i}(e),n)}function gm(t){return btoa(t.match(/\w{2}/g).map(t=>String.fromCharCode(parseInt(t,16))).join(""))}function mm(t,e){let n=e.parent;for(;n;){if(n.name===t)return n;n=n.parent}}function vm(t,e,n,r,i=1){e>i?r.setAttribute(t,e,n):r.removeAttribute(t,n)}function bm(t,e,n={}){const r=t.createElement("tableCell",n);t.insertElement("paragraph",r),t.insert(r,e)}function ym(){return t=>{t.on("element:table",(t,e,n)=>{const r=e.viewItem;if(!n.consumable.test(r,{name:!0}))return;const{rows:i,headingRows:o,headingColumns:s}=function(t){const e={headingRows:0,headingColumns:0},n=[],r=[];let i;for(const o of Array.from(t.getChildren()))if("tbody"===o.name||"thead"===o.name||"tfoot"===o.name){"thead"!==o.name||i||(i=o);const t=Array.from(o.getChildren()).filter(t=>t.is("element","tr"));for(const o of t)if("thead"===o.parent.name&&o.parent===i)e.headingRows++,n.push(o);else{r.push(o);const t=km(o);t>e.headingColumns&&(e.headingColumns=t)}}return e.rows=[...n,...r],e}(r),a={};s&&(a.headingColumns=s),o&&(a.headingRows=o);const l=n.writer.createElement("table",a),c=n.splitToAllowedParent(l,e.modelCursor);if(c){if(n.writer.insert(l,c.position),n.consumable.consume(r,{name:!0}),i.length)i.forEach(t=>n.convertItem(t,n.writer.createPositionAt(l,"end")));else{const t=n.writer.createElement("tableRow");n.writer.insert(t,n.writer.createPositionAt(l,"end")),bm(n.writer,n.writer.createPositionAt(t,"end"))}e.modelRange=n.writer.createRange(n.writer.createPositionBefore(l),n.writer.createPositionAfter(l)),c.cursorParent?e.modelCursor=n.writer.createPositionAt(c.cursorParent,0):e.modelCursor=e.modelRange.end}})}}function wm(t){return e=>{e.on(`element:${t}`,(t,e,n)=>{const r=e.viewItem;if(!n.consumable.test(r,{name:!0}))return;const i=n.writer.createElement("tableCell"),o=n.splitToAllowedParent(i,e.modelCursor);if(!o)return;n.writer.insert(i,o.position),n.consumable.consume(r,{name:!0});const s=n.writer.createPositionAt(i,0);n.convertChildren(r,s),i.childCount||n.writer.insertElement("paragraph",s),e.modelRange=n.writer.createRange(n.writer.createPositionBefore(i),n.writer.createPositionAfter(i)),e.modelCursor=e.modelRange.end})}}function km(t){let e=0,n=0;const r=Array.from(t.getChildren()).filter(t=>"th"===t.name||"td"===t.name);for(;n<r.length&&"th"===r[n].name;){const t=r[n];e+=parseInt(t.getAttribute("colspan")||1),n++}return e}n(115);class _m{constructor(t,e={}){this.table=t,this.startRow=e.startRow||0,this.endRow="number"==typeof e.endRow?e.endRow:void 0,this.includeSpanned=!!e.includeSpanned,this.column="number"==typeof e.column?e.column:void 0,this._skipRows=new Set,this._row=0,this._column=0,this._cell=0,this._spannedCells=new Map}[Symbol.iterator](){return this}next(){const t=this.table.getChild(this._row);if(!t||this._isOverEndRow())return{done:!0};if(this._isSpanned(this._row,this._column)){const t=this._column,e=this._formatOutValue(void 0,t);return this._column++,!this.includeSpanned||this._shouldSkipRow()||this._shouldSkipColumn(t,1)?this.next():e}const e=t.getChild(this._cell);if(!e)return this._row++,this._column=0,this._cell=0,this.next();const n=parseInt(e.getAttribute("colspan")||1),r=parseInt(e.getAttribute("rowspan")||1);(n>1||r>1)&&this._recordSpans(this._row,this._column,r,n);const i=this._column,o=this._formatOutValue(e,i,r,n);return this._column++,this._cell++,this._shouldSkipRow()||this._shouldSkipColumn(i,n)?this.next():o}skipRow(t){this._skipRows.add(t)}_isOverEndRow(){return void 0!==this.endRow&&this._row>this.endRow}_formatOutValue(t,e,n=1,r=1){return{done:!1,value:{cell:t,row:this._row,column:e,rowspan:n,colspan:r,cellIndex:this._cell}}}_shouldSkipRow(){const t=this._row<this.startRow,e=this._skipRows.has(this._row);return t||e}_shouldSkipColumn(t,e){if(void 0===this.column)return!1;const n=t===this.column,r=t<this.column&&t+e>this.column;return!n&&!r}_isSpanned(t,e){return!!this._spannedCells.has(t)&&this._spannedCells.get(t).has(e)}_recordSpans(t,e,n,r){for(let i=e+1;i<=e+r-1;i++)this._markSpannedCell(t,i);for(let i=t+1;i<t+n;i++)for(let t=e;t<=e+r-1;t++)this._markSpannedCell(i,t)}_markSpannedCell(t,e){this._spannedCells.has(t)||this._spannedCells.set(t,new Map),this._spannedCells.get(t).set(e,!0)}}function xm(t){return!!t.getCustomProperty("table")&&rh(t)}function Cm(t){const e=t.getSelectedElement();return e&&xm(e)?e:null}function Sm(t){const e=mm("table",t.getFirstPosition());return e&&xm(e.parent)?e.parent:null}function Tm(t={}){return e=>e.on("insert:table",(e,n,r)=>{const i=n.item;if(!r.consumable.consume(i,"insert"))return;r.consumable.consume(i,"attribute:headingRows:table"),r.consumable.consume(i,"attribute:headingColumns:table");const o=t&&t.asWidget,s=r.writer.createContainerElement("figure",{class:"table"}),a=r.writer.createContainerElement("table");let l;r.writer.insert(r.writer.createPositionAt(s,0),a),o&&(l=function(t,e){return e.setCustomProperty("table",!0,t),ih(t,e,{hasSelectionHandler:!0})}(s,r.writer));const c=new _m(i),u={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0},d=new Map;for(const f of c){const{row:e,cell:n}=f,o=Bm(Lm(e,u),a,r),s=i.getChild(e),l=d.get(e)||jm(s,e,o,r);d.set(e,l),r.consumable.consume(n,"insert"),Nm(f,u,r.writer.createPositionAt(l,"end"),r,t)}const h=r.mapper.toViewPosition(n.range.start);r.mapper.bindElements(i,o?l:s),r.writer.insert(h,o?l:s)})}function Om(t={}){return e=>e.on("insert:tableRow",(e,n,r)=>{const i=n.item;if(!r.consumable.consume(i,"insert"))return;const o=i.parent,s=Vm(r.mapper.toViewElement(o)),a=o.getChildIndex(i),l=new _m(o,{startRow:a,endRow:a}),c={headingRows:o.getAttribute("headingRows")||0,headingColumns:o.getAttribute("headingColumns")||0},u=new Map;for(const d of l){const e=Bm(Lm(a,c),s,r),n=u.get(a)||jm(i,a,e,r);u.set(a,n),r.consumable.consume(d.cell,"insert"),Nm(d,c,r.writer.createPositionAt(n,"end"),r,t)}})}function Pm(t={}){return e=>e.on("insert:tableCell",(e,n,r)=>{const i=n.item;if(!r.consumable.consume(i,"insert"))return;const o=i.parent,s=o.parent,a=s.getChildIndex(o),l=new _m(s,{startRow:a,endRow:a}),c={headingRows:s.getAttribute("headingRows")||0,headingColumns:s.getAttribute("headingColumns")||0};for(const u of l)if(u.cell===i){const e=r.mapper.toViewElement(o);return void Nm(u,c,r.writer.createPositionAt(e,o.getChildIndex(i)),r,t)}})}function Am(t={}){const e=!!t.asWidget;return t=>t.on("attribute:headingRows:table",(t,n,r)=>{const i=n.item;if(!r.consumable.consume(n.item,t.name))return;const o=Vm(r.mapper.toViewElement(i)),s=n.attributeOldValue,a=n.attributeNewValue;if(a>s){const t=Array.from(i.getChildren()).filter(({index:t})=>l(t,s-1,a));$m(t,Bm("thead",o,r),r,"end");for(const n of t)for(const t of n.getChildren())Mm(t,"th",r,e);Fm("tbody",o,r)}else{$m(Array.from(i.getChildren()).filter(({index:t})=>l(t,a-1,s)).reverse(),Bm("tbody",o,r),r,0);const t=new _m(i,{startRow:a?a-1:a,endRow:s-1}),n={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0};for(const i of t)Im(i,n,r,e);Fm("thead",o,r)}function l(t,e,n){return t>e&&t<n}})}function Em(t={}){const e=!!t.asWidget;return t=>t.on("attribute:headingColumns:table",(t,n,r)=>{const i=n.item;if(!r.consumable.consume(n.item,t.name))return;const o={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0},s=n.attributeOldValue,a=n.attributeNewValue,l=(s>a?s:a)-1;for(const c of new _m(i))c.column>l||Im(c,o,r,e)})}function Mm(t,e,n,r){const i=n.writer,o=n.mapper.toViewElement(t);if(!o)return;let s;r?(s=sh(i.createEditableElement(e,o.getAttributes()),i),i.insert(i.createPositionAfter(o),s),i.move(i.createRangeIn(o),i.createPositionAt(s,0)),i.remove(i.createRangeOn(o))):s=i.rename(e,o),n.mapper.bindElements(t,s)}function Im(t,e,n,r){const{cell:i}=t,o=Dm(t,e),s=n.mapper.toViewElement(i);s&&s.name!==o&&Mm(i,o,n,r)}function Nm(t,e,n,r,i){const o=i&&i.asWidget,s=Dm(t,e),a=o?sh(r.writer.createEditableElement(s),r.writer):r.writer.createContainerElement(s),l=t.cell,c=l.getChild(0),u=1===l.childCount&&"paragraph"===c.name;if(r.writer.insert(n,a),u&&!function(t){return!![...t.getAttributeKeys()].length}(c)){const t=l.getChild(0),e=r.writer.createPositionAt(a,"end");if(r.consumable.consume(t,"insert"),i.asWidget){const n=r.writer.createContainerElement("span");r.mapper.bindElements(t,n),r.writer.insert(e,n),r.mapper.bindElements(l,a)}else r.mapper.bindElements(l,a),r.mapper.bindElements(t,a)}else r.mapper.bindElements(l,a)}function jm(t,e,n,r){r.consumable.consume(t,"insert");const i=r.writer.createContainerElement("tr");r.mapper.bindElements(t,i);const o=t.parent.getAttribute("headingRows")||0,s=o>0&&e>=o?e-o:e,a=r.writer.createPositionAt(n,s);return r.writer.insert(a,i),i}function Dm(t,e){const{row:n,column:r}=t,{headingColumns:i,headingRows:o}=e;return o&&o>n?"th":i&&i>r?"th":"td"}function Lm(t,e){return t<e.headingRows?"thead":"tbody"}function Bm(t,e,n){const r=Rm(t,e);return r||function(t,e,n){const r=n.writer.createContainerElement(t),i=n.writer.createPositionAt(e,"tbody"==t?"end":0);return n.writer.insert(i,r),r}(t,e,n)}function Rm(t,e){for(const n of e.getChildren())if(n.name==t)return n}function Fm(t,e,n){const r=Rm(t,e);r&&0===r.childCount&&n.writer.remove(n.writer.createRangeOn(r))}function $m(t,e,n,r){for(const i of t){const t=n.mapper.toViewElement(i);t&&n.writer.move(n.writer.createRangeOn(t),n.writer.createPositionAt(e,r))}}function Vm(t){for(const e of t.getChildren())if("table"===e.name)return e}class zm extends tu{refresh(){const t=this.editor.model,e=t.document.selection,n=t.schema,r=function(t){const e=t.parent;return e===e.root?e:e.parent}(e.getFirstPosition());this.isEnabled=n.checkChild(r,"table")}execute(t={}){const e=this.editor.model,n=e.document.selection,r=this.editor.plugins.get("TableUtils"),i=parseInt(t.rows)||2,o=parseInt(t.columns)||2,s=ah(n,e);e.change(t=>{const n=r.createTable(t,i,o);e.insertContent(n,s),t.setSelection(t.createPositionAt(n.getNodeByPath([0,0,0]),0))})}}class Hm extends tu{constructor(t,e={}){super(t),this.order=e.order||"below"}refresh(){const t=mm("table",this.editor.model.document.selection.getFirstPosition());this.isEnabled=!!t}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),r=mm("tableCell",e.getFirstPosition()).parent,i=r.parent,o=i.getChildIndex(r),s="below"===this.order?o+1:o;n.insertRows(i,{rows:1,at:s})}}class Wm extends tu{constructor(t,e={}){super(t),this.order=e.order||"right"}refresh(){const t=mm("table",this.editor.model.document.selection.getFirstPosition());this.isEnabled=!!t}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),r=mm("tableCell",e.getFirstPosition()),i=r.parent.parent,{column:o}=n.getCellLocation(r),s="right"===this.order?o+1:o;n.insertColumns(i,{columns:1,at:s})}}class Um extends tu{constructor(t,e={}){super(t),this.direction=e.direction||"horizontally"}refresh(){const t=mm("tableCell",this.editor.model.document.selection.getFirstPosition());this.isEnabled=!!t}execute(){const t=mm("tableCell",this.editor.model.document.selection.getFirstPosition()),e="horizontally"===this.direction,n=this.editor.plugins.get("TableUtils");e?n.splitCellHorizontally(t,2):n.splitCellVertically(t,2)}}class qm extends tu{constructor(t,e){super(t),this.direction=e.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const t=this._getMergeableCell();this.isEnabled=!!t,this.value=t}execute(){const t=this.editor.model,e=mm("tableCell",t.document.selection.getFirstPosition()),n=this.value,r=this.direction;t.change(t=>{const i="right"==r||"down"==r,o=i?e:n,s=i?n:e,a=s.parent;!function(t,e,n){Gm(t)||(Gm(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end"))),n.remove(t)}(s,o,t);const l=this.isHorizontal?"colspan":"rowspan",c=parseInt(e.getAttribute(l)||1),u=parseInt(n.getAttribute(l)||1);t.setAttribute(l,c+u,o),t.setSelection(t.createRangeIn(o)),a.childCount||function(t,e){const n=t.parent,r=n.getChildIndex(t);for(const{cell:i,row:o,rowspan:s}of new _m(n,{endRow:r})){const t=o+s-1>=r;t&&vm("rowspan",s-1,i,e)}e.remove(t)}(a,t)})}_getMergeableCell(){const t=mm("tableCell",this.editor.model.document.selection.getFirstPosition());if(!t)return;const e=this.editor.plugins.get("TableUtils"),n=this.isHorizontal?function(t,e,n){const r="right"==e?t.nextSibling:t.previousSibling;if(!r)return;const i="right"==e?t:r,o="right"==e?r:t,{column:s}=n.getCellLocation(i),{column:a}=n.getCellLocation(o),l=parseInt(i.getAttribute("colspan")||1);return s+l===a?r:void 0}(t,this.direction,e):function(t,e){const n=t.parent,r=n.parent,i=r.getChildIndex(n);if("down"==e&&i===r.childCount-1||"up"==e&&0===i)return;const o=parseInt(t.getAttribute("rowspan")||1),s=r.getAttribute("headingRows")||0;if(s&&("down"==e&&i+o===s||"up"==e&&i===s))return;const a=parseInt(t.getAttribute("rowspan")||1),l="down"==e?i+a:i,c=[...new _m(r,{endRow:l})],u=c.find(e=>e.cell===t).column,d=c.find(({row:t,rowspan:n,column:r})=>r===u&&("down"==e?t===l:l===t+n));return d&&d.cell}(t,this.direction);if(!n)return;const r=this.isHorizontal?"rowspan":"colspan",i=parseInt(t.getAttribute(r)||1);return parseInt(n.getAttribute(r)||1)===i?n:void 0}}function Gm(t){return 1==t.childCount&&t.getChild(0).is("paragraph")&&t.getChild(0).isEmpty}class Ym extends tu{refresh(){const t=mm("tableCell",this.editor.model.document.selection.getFirstPosition());this.isEnabled=!!t&&t.parent.parent.childCount>1}execute(){const t=this.editor.model,e=mm("tableCell",t.document.selection.getFirstPosition()).parent,n=e.parent,r=n.getChildIndex(e),i=n.getAttribute("headingRows")||0;t.change(t=>{i&&r<=i&&vm("headingRows",i-1,n,t,0);const o=[...new _m(n,{endRow:r})],s=new Map;o.filter(({row:t,rowspan:e})=>t===r&&e>1).forEach(({column:t,cell:e,rowspan:n})=>s.set(t,{cell:e,rowspanToSet:n-1})),o.filter(({row:t,rowspan:e})=>t<=r-1&&t+e>r).forEach(({cell:e,rowspan:n})=>vm("rowspan",n-1,e,t));const a=r+1,l=new _m(n,{includeSpanned:!0,startRow:a,endRow:a});let c;for(const{row:e,column:r,cell:i}of[...l])if(s.has(r)){const{cell:i,rowspanToSet:o}=s.get(r),a=c?t.createPositionAfter(c):t.createPositionAt(n.getChild(e),0);t.move(t.createRangeOn(i),a),vm("rowspan",o,i,t),c=i}else c=i;t.remove(e)})}}class Km extends tu{refresh(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),r=mm("tableCell",e.getFirstPosition());this.isEnabled=!!r&&n.getColumns(r.parent.parent)>1}execute(){const t=this.editor.model,e=mm("tableCell",t.document.selection.getFirstPosition()),n=e.parent,r=n.parent,i=r.getAttribute("headingColumns")||0,o=r.getChildIndex(n),s=[...new _m(r)],a=s.find(t=>t.cell===e).column;t.change(t=>{i&&o<=i&&t.setAttribute("headingColumns",i-1,r);for(const{cell:e,column:n,colspan:r}of s)n<=a&&r>1&&n+r>a?vm("colspan",r-1,e,t):n===a&&t.remove(e)})}}class Xm extends tu{refresh(){const t=mm("tableCell",this.editor.model.document.selection.getFirstPosition()),e=!!t;this.isEnabled=e,this.value=e&&this._isInHeading(t,t.parent.parent)}execute(){const t=this.editor.model,e=mm("tableCell",t.document.selection.getFirstPosition()).parent,n=e.parent,r=n.getAttribute("headingRows")||0,i=e.index,o=r>i?i:i+1;t.change(t=>{if(o){const e=function(t,e,n){const r=[],i=new _m(t,{startRow:e>n?n:0,endRow:e-1});for(const{row:o,rowspan:s,cell:a}of i)s>1&&o+s>e&&r.push(a);return r}(n,o,r);for(const n of e)Jm(n,o,t)}vm("headingRows",o,n,t,0)})}_isInHeading(t,e){const n=parseInt(e.getAttribute("headingRows")||0);return!!n&&t.parent.index<n}}function Jm(t,e,n){const r=t.parent,i=r.parent,o=e-r.index,s={},a=parseInt(t.getAttribute("rowspan"))-o;a>1&&(s.rowspan=a);const l=i.getChildIndex(r),c=l+o,u=[...new _m(i,{startRow:l,endRow:c,includeSpanned:!0})];let d;for(const{row:h,column:f,cell:p,colspan:g,cellIndex:m}of u)if(p===t&&(d=f,g>1&&(s.colspan=g)),void 0!==d&&d===f&&h===c){const t=i.getChild(h);bm(n,n.createPositionAt(t,m),s)}vm("rowspan",o,t,n)}class Qm extends tu{refresh(){const t=mm("tableCell",this.editor.model.document.selection.getFirstPosition()),e=!!t;this.isEnabled=e,this.value=e&&this._isInHeading(t,t.parent.parent)}execute(){const t=this.editor.model,e=t.document.selection,n=this.editor.plugins.get("TableUtils"),r=mm("tableCell",e.getFirstPosition().parent),i=r.parent.parent,o=parseInt(i.getAttribute("headingColumns")||0),{column:s}=n.getCellLocation(r),a=o>s?s:s+1;t.change(t=>{vm("headingColumns",a,i,t,0)})}_isInHeading(t,e){const n=parseInt(e.getAttribute("headingColumns")||0),r=this.editor.plugins.get("TableUtils"),{column:i}=r.getCellLocation(t);return!!n&&i<n}}class Zm extends Kc{static get pluginName(){return"TableUtils"}getCellLocation(t){const e=t.parent,n=e.parent,r=n.getChildIndex(e),i=new _m(n,{startRow:r,endRow:r});for(const{cell:o,row:s,column:a}of i)if(o===t)return{row:s,column:a}}createTable(t,e,n){const r=t.createElement("table");return tv(t,r,0,e,n),r}insertRows(t,e={}){const n=this.editor.model,r=e.at||0,i=e.rows||1;n.change(e=>{const n=t.getAttribute("headingRows")||0;if(n>r&&e.setAttribute("headingRows",n+i,t),0===r||r===t.childCount)return void tv(e,t,r,i,this.getColumns(t));const o=new _m(t,{endRow:r});let s=0;for(const{row:t,rowspan:a,colspan:l,cell:c}of o)t<r&&t+a>r&&e.setAttribute("rowspan",a+i,c),t===r&&(s+=l);tv(e,t,r,i,s)})}insertColumns(t,e={}){const n=this.editor.model,r=e.at||0,i=e.columns||1;n.change(e=>{const n=t.getAttribute("headingColumns");r<n&&e.setAttribute("headingColumns",n+i,t);const o=this.getColumns(t);if(0===r||o===r){for(const n of t.getChildren())ev(i,e,e.createPositionAt(n,r?"end":0));return}const s=new _m(t,{column:r,includeSpanned:!0});for(const{row:a,column:l,cell:c,colspan:u,rowspan:d,cellIndex:h}of s)if(l!==r){if(e.setAttribute("colspan",u+i,c),s.skipRow(a),d>1)for(let t=a+1;t<a+d;t++)s.skipRow(t)}else{const n=e.createPositionAt(t.getChild(a),h);ev(i,e,n)}})}splitCellVertically(t,e=2){const n=this.editor.model,r=t.parent.parent,i=parseInt(t.getAttribute("rowspan")||1),o=parseInt(t.getAttribute("colspan")||1);n.change(n=>{if(o>1){const{newCellsSpan:r,updatedSpan:s}=nv(o,e);vm("colspan",s,t,n);const a={};r>1&&(a.colspan=r),i>1&&(a.rowspan=i),ev(o>e?e-1:o-1,n,n.createPositionAfter(t),a)}if(o<e){const s=e-o,a=[...new _m(r)],{column:l}=a.find(({cell:e})=>e===t),c=a.filter(({cell:e,colspan:n,column:r})=>{return e!==t&&r===l||r<l&&r+n>l});for(const{cell:t,colspan:e}of c)n.setAttribute("colspan",e+s,t);const u={};i>1&&(u.rowspan=i),ev(s,n,n.createPositionAfter(t),u);const d=r.getAttribute("headingColumns")||0;d>l&&vm("headingColumns",d+s,r,n)}})}splitCellHorizontally(t,e=2){const n=this.editor.model,r=t.parent,i=r.parent,o=i.getChildIndex(r),s=parseInt(t.getAttribute("rowspan")||1),a=parseInt(t.getAttribute("colspan")||1);n.change(n=>{if(s>1){const r=[...new _m(i,{startRow:o,endRow:o+s-1,includeSpanned:!0})],{newCellsSpan:l,updatedSpan:c}=nv(s,e);vm("rowspan",c,t,n);const{column:u}=r.find(({cell:e})=>e===t),d={};l>1&&(d.rowspan=l),a>1&&(d.colspan=a);for(const{column:t,row:e,cellIndex:s}of r)e>=o+c&&t===u&&(e+o+c)%l==0&&ev(1,n,n.createPositionAt(i.getChild(e),s),d)}if(s<e){const r=e-s,l=[...new _m(i,{startRow:0,endRow:o})];for(const{cell:e,rowspan:i,row:s}of l)if(e!==t&&s+i>o){const t=i+r;n.setAttribute("rowspan",t,e)}const c={};a>1&&(c.colspan=a),tv(n,i,o+1,r,1,c);const u=i.getAttribute("headingRows")||0;u>o&&vm("headingRows",u+r,i,n)}})}getColumns(t){return[...t.getChild(0).getChildren()].reduce((t,e)=>{return t+parseInt(e.getAttribute("colspan")||1)},0)}}function tv(t,e,n,r,i,o={}){for(let s=0;s<r;s++){const r=t.createElement("tableRow");t.insert(r,e,n),ev(i,t,t.createPositionAt(r,"end"),o)}}function ev(t,e,n,r={}){for(let i=0;i<t;i++)bm(e,n,r)}function nv(t,e){if(t<e)return{newCellsSpan:1,updatedSpan:1};const n=Math.floor(t/e);return{newCellsSpan:n,updatedSpan:t-n*e+n}}function rv(t){t.document.registerPostFixer(e=>(function(t,e){const n=e.document.differ.getChanges();let r=!1;const i=new Set;for(const o of n){let e;"table"==o.name&&"insert"==o.type&&(e=o.position.nodeAfter),"tableRow"!=o.name&&"tableCell"!=o.name||(e=mm("table",o.position)),sv(o)&&(e=mm("table",o.range.start)),e&&!i.has(e)&&(r=iv(e,t)||r,r=ov(e,t)||r,i.add(e))}return r})(e,t))}function iv(t,e){let n=!1;const r=function(t){const e=parseInt(t.getAttribute("headingRows")||0),n=t.childCount,r=[];for(const{row:i,rowspan:o,cell:s}of new _m(t)){if(o<2)continue;const t=i<e,a=t?e:n;if(i+o>a){const t=a-i;r.push({cell:s,rowspan:t})}}return r}(t);if(r.length){n=!0;for(const t of r)vm("rowspan",t.rowspan,t.cell,e,1)}return n}function ov(t,e){let n=!1;const r=function(t){const e={};for(const{row:n}of new _m(t,{includeSpanned:!0}))e[n]||(e[n]=0),e[n]+=1;return e}(t),i=r[0];if(!Object.values(r).every(t=>t===i)){const i=Object.values(r).reduce((t,e)=>e>t?e:t,0);for(const[o,s]of Object.entries(r)){const r=i-s;if(r){for(let n=0;n<r;n++)bm(e,e.createPositionAt(t.getChild(o),"end"));n=!0}}}return n}function sv(t){const e="attribute"===t.type,n=t.attributeKey;return e&&("headingRows"===n||"colspan"===n||"rowspan"===n)}function av(t){t.document.registerPostFixer(e=>(function(t,e){const n=e.document.differ.getChanges();let r=!1;for(const i of n)"remove"==i.type&&i.position.parent.is("tableCell")&&(r=uv(i.position.parent,t)||r),"insert"==i.type&&("table"==i.name&&(r=lv(i.position.nodeAfter,t)||r),"tableRow"==i.name&&(r=cv(i.position.nodeAfter,t)||r),"tableCell"==i.name&&(r=uv(i.position.nodeAfter,t)||r));return r})(e,t))}function lv(t,e){let n=!1;for(const r of t.getChildren())n=cv(r,e)||n;return n}function cv(t,e){let n=!1;for(const r of t.getChildren())n=uv(r,e)||n;return n}function uv(t,e){if(0==t.childCount)return e.insertElement("paragraph",t),!0;const n=Array.from(t.getChildren()).filter(t=>t.is("text"));for(const r of n)e.wrap(e.createRangeOn(r),"paragraph");return!!n.length}function dv(t,e){e.view.document.registerPostFixer(n=>(function(t,e,n,r){let i=!1;const o=function(t){const e=Array.from(t._renderer.markedAttributes).filter(t=>!!t.parent).filter(fv).filter(t=>pv(t.parent)),n=Array.from(t._renderer.markedChildren).filter(t=>!!t.parent).filter(pv).reduce((t,e)=>{const n=Array.from(e.getChildren()).filter(fv);return[...t,...n]},[]);return[...e,...n]}(r);for(const s of o)i=hv(s,n,t)||i;return i&&function(t){const e=t.anchor,n=t.focus;return t.rangeCount&&(!e.root.is("rootElement")||!n.root.is("rootElement"))}(r.document.selection)&&function(t,e,n){const r=Array.from(t.getRanges()).map(t=>e.toViewRange(t));n.setSelection(r,{backward:t.isBackward})}(e.document.selection,n,t),i})(n,t,e.mapper,e.view))}function hv(t,e,n){if(!t.root.is("rootElement"))return!1;const r=e.toModelElement(t),i=function(t,e){const n=t.childCount>1,r=!![...e.getAttributes()].length;return n||r?"p":"span"}(r.parent,r);if(t.name!==i){e.unbindViewElement(t);const o=n.rename(i,t);return e.bindElements(r,o),!0}return!1}function fv(t){return t.is("p")||t.is("span")}function pv(t){return t.is("td")||t.is("th")}n(117);class gv extends Kc{init(){const t=this.editor,e=t.model,n=e.schema,r=t.conversion;n.register("table",{allowWhere:"$block",allowAttributes:["headingRows","headingColumns"],isLimit:!0,isObject:!0,isBlock:!0}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0}),n.extend("$block",{allowIn:"tableCell"}),n.addChildCheck((t,e)=>{if("table"==e.name&&Array.from(t.getNames()).includes("table"))return!1}),r.for("upcast").add(ym()),r.for("editingDowncast").add(Tm({asWidget:!0})),r.for("dataDowncast").add(Tm()),r.for("upcast").elementToElement({model:"tableRow",view:"tr"}),r.for("editingDowncast").add(Om({asWidget:!0})),r.for("dataDowncast").add(Om()),r.for("downcast").add(t=>t.on("remove:tableRow",(t,e,n)=>{t.stop();const r=n.writer,i=n.mapper,o=i.toViewPosition(e.position).getLastMatchingPosition(t=>!t.item.is("tr")).nodeAfter,s=o.parent,a=r.createRangeOn(o),l=r.remove(a);for(const c of r.createRangeIn(l).getItems())i.unbindViewElement(c);s.childCount||r.remove(r.createRangeOn(s))},{priority:"higher"})),r.for("upcast").add(wm("td")),r.for("upcast").add(wm("th")),r.for("editingDowncast").add(Pm({asWidget:!0})),r.for("dataDowncast").add(Pm()),r.attributeToAttribute({model:"colspan",view:"colspan"}),r.attributeToAttribute({model:"rowspan",view:"rowspan"}),r.for("editingDowncast").add(Em({asWidget:!0})),r.for("dataDowncast").add(Em()),r.for("editingDowncast").add(Am({asWidget:!0})),r.for("dataDowncast").add(Am()),dv(t.model,t.editing),t.commands.add("insertTable",new zm(t)),t.commands.add("insertTableRowAbove",new Hm(t,{order:"above"})),t.commands.add("insertTableRowBelow",new Hm(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new Wm(t,{order:"left"})),t.commands.add("insertTableColumnRight",new Wm(t,{order:"right"})),t.commands.add("removeTableRow",new Ym(t)),t.commands.add("removeTableColumn",new Km(t)),t.commands.add("splitTableCellVertically",new Um(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new Um(t,{direction:"horizontally"})),t.commands.add("mergeTableCellRight",new qm(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new qm(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new qm(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new qm(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new Qm(t)),t.commands.add("setTableRowHeader",new Xm(t)),rv(e),av(e),this.editor.keystrokes.set("Tab",(...t)=>this._handleTabOnSelectedTable(...t),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"})}static get requires(){return[Zm]}_handleTabOnSelectedTable(t,e){const n=this.editor,r=n.model.document.selection;if(!r.isCollapsed&&1===r.rangeCount&&r.getFirstRange().isFlat){const t=r.getSelectedElement();if(!t||!t.is("table"))return;e(),n.model.change(e=>{e.setSelection(e.createRangeIn(t.getChild(0).getChild(0)))})}}_getTabHandler(t){const e=this.editor;return(n,r)=>{const i=mm("tableCell",e.model.document.selection.getFirstPosition());if(!i)return;r();const o=i.parent,s=o.parent,a=s.getChildIndex(o),l=o.getChildIndex(i),c=0===l;if(!t&&c&&0===a)return;const u=l===o.childCount-1,d=a===s.childCount-1;if(t&&d&&u&&(e.execute("insertTableRowBelow"),a===s.childCount-1))return;let h;if(t&&u){const t=s.getChild(a+1);h=t.getChild(0)}else if(!t&&c){const t=s.getChild(a-1);h=t.getChild(t.childCount-1)}else h=o.getChild(l+(t?1:-1));e.model.change(t=>{t.setSelection(t.createRangeIn(h))})}}}n(119);class mv extends jc{constructor(t){super(t);const e=this.bindTemplate;this.items=this.createCollection(),this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(t,e)=>`${e} x ${t}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},children:this.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:e.to("label")}]}],on:{mousedown:e.to(t=>{t.preventDefault()}),click:e.to(()=>{this.fire("execute")})}});for(let n=0;n<100;n++){const t=new vv;t.on("over",()=>{const t=Math.floor(n/10),e=n%10;this.set("rows",t+1),this.set("columns",e+1)}),this.items.add(t)}this.on("change:columns",()=>{this._highlightGridBoxes()}),this.on("change:rows",()=>{this._highlightGridBoxes()})}focus(){}focusLast(){}_highlightGridBoxes(){const t=this.rows,e=this.columns;this.items.map((n,r)=>{const i=Math.floor(r/10)<t&&r%10<e;n.set("isOn",i)})}}class vv extends jc{constructor(t){super(t);const e=this.bindTemplate;this.set("isOn",!1),this.setTemplate({tag:"div",attributes:{class:["ck-insert-table-dropdown-grid-box",e.if("isOn","ck-on")]},on:{mouseover:e.to("over")}})}}var bv=n(41),yv=n.n(bv),wv=n(42),kv=n.n(wv),_v=n(43),xv=n.n(_v),Cv=n(44),Sv=n.n(Cv);class Tv extends Kc{init(){const t=this.editor,e=this.editor.t;t.ui.componentFactory.add("insertTable",n=>{const r=t.commands.get("insertTable"),i=$f(n);i.bind("isEnabled").to(r),i.buttonView.set({icon:yv.a,label:e("s"),tooltip:!0});const o=new mv(n);return i.panelView.children.add(o),o.delegate("execute").to(i),i.buttonView.on("open",()=>{o.rows=0,o.columns=0}),i.on("execute",()=>{t.execute("insertTable",{rows:o.rows,columns:o.columns}),t.editing.view.focus()}),i}),t.ui.componentFactory.add("tableColumn",t=>{const n=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:e("t"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableColumnLeft",label:e("u")}},{type:"button",model:{commandName:"insertTableColumnRight",label:e("v")}},{type:"button",model:{commandName:"removeTableColumn",label:e("w")}}];return this._prepareDropdown(e("x"),kv.a,n,t)}),t.ui.componentFactory.add("tableRow",t=>{const n=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:e("y"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowBelow",label:e("z")}},{type:"button",model:{commandName:"insertTableRowAbove",label:e("aa")}},{type:"button",model:{commandName:"removeTableRow",label:e("ab")}}];return this._prepareDropdown(e("ac"),xv.a,n,t)}),t.ui.componentFactory.add("mergeTableCells",t=>{const n=[{type:"button",model:{commandName:"mergeTableCellUp",label:e("ad")}},{type:"button",model:{commandName:"mergeTableCellRight",label:e("ae")}},{type:"button",model:{commandName:"mergeTableCellDown",label:e("af")}},{type:"button",model:{commandName:"mergeTableCellLeft",label:e("ag")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:e("ah")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:e("ai")}}];return this._prepareDropdown(e("aj"),Sv.a,n,t)})}_prepareDropdown(t,e,n,r){const i=this.editor,o=$f(r),s=[],a=new ii;for(const l of n)Ov(l,i,s,a);return Vf(o,a),o.buttonView.set({label:t,icon:e,tooltip:!0}),o.bind("isEnabled").toMany(s,"isEnabled",(...t)=>t.some(t=>t)),this.listenTo(o,"execute",t=>{i.execute(t.source.commandName),i.editing.view.focus()}),o}}function Ov(t,e,n,r){const i=t.model=new Ef(t.model),{commandName:o,bindIsOn:s}=t.model;if("separator"!==t.type){const t=e.commands.get(o);n.push(t),i.set({commandName:o}),i.bind("isEnabled").to(t),s&&i.bind("isOn").to(t,"value")}i.set({withText:!0}),r.add(t)}n(121),n.d(e,"default",function(){return Pv});class Pv extends Yc{}Pv.builtinPlugins=[class extends Kc{static get requires(){return[Zc,ou,cu,xu,Ku]}static get pluginName(){return"Essentials"}},id,class extends Kc{static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats()}_addListAutoformats(){const t=this.editor.commands;t.get("bulletedList")&&new sd(this.editor,/^[*-]\s$/,"bulletedList"),t.get("numberedList")&&new sd(this.editor,/^1[.|)]\s$/,"numberedList")}_addBasicStylesAutoformats(){const t=this.editor.commands;if(t.get("bold")){const t=cd(this.editor,"bold");new ad(this.editor,/(\*\*)([^*]+)(\*\*)$/g,t),new ad(this.editor,/(__)([^_]+)(__)$/g,t)}if(t.get("italic")){const t=cd(this.editor,"italic");new ad(this.editor,/(?:^|[^*])(\*)([^*_]+)(\*)$/g,t),new ad(this.editor,/(?:^|[^_])(_)([^_]+)(_)$/g,t)}if(t.get("code")){const t=cd(this.editor,"code");new ad(this.editor,/(`)([^`]+)(`)$/g,t)}}_addHeadingAutoformats(){const t=this.editor.commands.get("heading");t&&t.modelElements.filter(t=>t.match(/^heading[1-6]$/)).forEach(e=>{const n=e[7],r=new RegExp(`^(#{${n}})\\s$`);new sd(this.editor,r,()=>{if(!t.isEnabled)return!1;this.editor.execute("heading",{value:e})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&new sd(this.editor,/^>\s$/,"blockQuote")}},class extends Kc{static get requires(){return[hd,md]}static get pluginName(){return"Bold"}},class extends Kc{static get requires(){return[bd,_d]}static get pluginName(){return"Italic"}},class extends Kc{static get requires(){return[Pd,Md]}static get pluginName(){return"BlockQuote"}},class extends Kc{static get pluginName(){return"CKFinder"}static get requires(){return[Rd,jd,id]}},class extends Kc{static get requires(){return[Ud,Zh,wf]}static get pluginName(){return"EasyImage"}},class extends Kc{static get requires(){return[Af,zf]}static get pluginName(){return"Heading"}},Zh,class extends Kc{static get requires(){return[Uf]}static get pluginName(){return"ImageCaption"}},class extends Kc{static get requires(){return[up,dp]}static get pluginName(){return"ImageStyle"}},class extends Kc{static get requires(){return[hp]}static get pluginName(){return"ImageToolbar"}afterInit(){const t=this.editor;t.plugins.get(hp).register("image",{items:t.config.get("image.toolbar")||[],getRelatedElement:ch})}},wf,class extends Kc{static get requires(){return[ig,gg]}static get pluginName(){return"Link"}},class extends Kc{static get requires(){return[Fg,Ug]}static get pluginName(){return"List"}},class extends Kc{static get requires(){return[rm,cm,om,bh]}static get pluginName(){return"MediaEmbed"}},xf,class extends Kc{static get pluginName(){return"PasteFromOffice"}init(){const t=this.editor;this.listenTo(t.plugins.get("Clipboard"),"inputTransformation",(t,e)=>{const n=e.dataTransfer.getData("text/html");!0!==e.pasteFromOfficeProcessed&&function(t){return!(!t||!t.match(/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/gi)&&!t.match(/xmlns:o="urn:schemas-microsoft-com/gi))}(n)&&(e.content=this._normalizeWordInput(n,e.dataTransfer),e.pasteFromOfficeProcessed=!0)},{priority:"high"})}_normalizeWordInput(t,e){const{body:n,stylesString:r}=dm(t);return hm(n,r),pm(n,e.getData("text/rtf")),n}},class extends Kc{static get requires(){return[gv,Tv,bh]}static get pluginName(){return"Table"}},class extends Kc{static get requires(){return[hp]}static get pluginName(){return"TableToolbar"}afterInit(){const t=this.editor,e=t.plugins.get(hp),n=t.config.get("table.contentToolbar"),r=t.config.get("table.tableToolbar");n&&e.register("tableContent",{items:n,getRelatedElement:Sm}),r&&e.register("table",{items:r,getRelatedElement:Cm})}}],Pv.defaultConfig={toolbar:{items:["heading","|","bold","italic","link","bulletedList","numberedList","imageUpload","blockQuote","insertTable","mediaEmbed","undo","redo"]},image:{toolbar:["imageStyle:full","imageStyle:side","|","imageTextAlternative"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},language:"en"}}]).default})},fde4:function(t,e,n){n("bf90");var r=n("584a").Object;t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-vendors.95579fce.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit